diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/100.1d14ca44a3cc8849349f.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/100.1d14ca44a3cc8849349f.js new file mode 100644 index 0000000000000000000000000000000000000000..7327c9aab1dde6ac5776e477d4ee30e78383f8f0 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/100.1d14ca44a3cc8849349f.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[100,5338,2957],{5338:(a,e,t)=>{var p;var r=t(86672);if(true){e.H=r.createRoot;p=r.hydrateRoot}else{var o}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1039.3fe94e87219c0ed159d3.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1039.3fe94e87219c0ed159d3.js new file mode 100644 index 0000000000000000000000000000000000000000..043513c1490790717b8cd8ab809efa86bc785309 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1039.3fe94e87219c0ed159d3.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1039],{71471:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.VERSION=void 0;e.VERSION="3.2.2"},29796:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var o=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.HandlerList=void 0;var i=r(82776);var a=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.register=function(t){return this.add(t,t.priority)};e.prototype.unregister=function(t){this.remove(t)};e.prototype.handlesDocument=function(t){var e,r;try{for(var n=o(this),i=n.next();!i.done;i=n.next()){var a=i.value;var u=a.item;if(u.handlesDocument(t)){return u}}}catch(s){e={error:s}}finally{try{if(i&&!i.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}throw new Error("Can't find handler for document")};e.prototype.document=function(t,e){if(e===void 0){e=null}return this.handlesDocument(t).create(t,e)};return e}(i.PrioritizedList);e.HandlerList=a},81039:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.mathjax=void 0;var n=r(71471);var o=r(29796);var i=r(9841);e.mathjax={version:n.VERSION,handlers:new o.HandlerList,document:function(t,r){return e.mathjax.handlers.document(t,r)},handleRetriesFor:i.handleRetriesFor,retryAfter:i.retryAfter,asyncLoad:null}},82776:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.PrioritizedList=void 0;var r=function(){function t(){this.items=[];this.items=[]}t.prototype[Symbol.iterator]=function(){var t=0;var e=this.items;return{next:function(){return{value:e[t++],done:t>e.length}}}};t.prototype.add=function(e,r){if(r===void 0){r=t.DEFAULTPRIORITY}var n=this.items.length;do{n--}while(n>=0&&r=0&&this.items[e].item!==t);if(e>=0){this.items.splice(e,1)}};t.DEFAULTPRIORITY=5;return t}();e.PrioritizedList=r},9841:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.retryAfter=e.handleRetriesFor=void 0;function r(t){return new Promise((function e(r,n){try{r(t())}catch(o){if(o.retry&&o.retry instanceof Promise){o.retry.then((function(){return e(r,n)})).catch((function(t){return n(t)}))}else if(o.restart&&o.restart.isCallback){MathJax.Callback.After((function(){return e(r,n)}),o.restart)}else{n(o)}}}))}e.handleRetriesFor=r;function n(t){var e=new Error("MathJax retry");e.retry=t;throw e}e.retryAfter=n}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1219.b5630aa3a46050fddc27.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1219.b5630aa3a46050fddc27.js new file mode 100644 index 0000000000000000000000000000000000000000..25845f3cd0408838886eb9fb66f3aede3de87c44 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1219.b5630aa3a46050fddc27.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1219],{81219:function(u){(function(D,e){true?u.exports=e():0})(this,(function(){"use strict";function u(u,D){return D={exports:{}},u(D,D.exports),D.exports}var D=u((function(u){var D=u.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number"){__g=D}}));var e=u((function(u){var D=u.exports={version:"2.6.5"};if(typeof __e=="number"){__e=D}}));var r=e.version;var t=function(u){return typeof u==="object"?u!==null:typeof u==="function"};var n=function(u){if(!t(u)){throw TypeError(u+" is not an object!")}return u};var F=function(u){try{return!!u()}catch(D){return true}};var C=!F((function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}));var A=D.document;var i=t(A)&&t(A.createElement);var a=function(u){return i?A.createElement(u):{}};var E=!C&&!F((function(){return Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a!=7}));var o=function(u,D){if(!t(u)){return u}var e,r;if(D&&typeof(e=u.toString)=="function"&&!t(r=e.call(u))){return r}if(typeof(e=u.valueOf)=="function"&&!t(r=e.call(u))){return r}if(!D&&typeof(e=u.toString)=="function"&&!t(r=e.call(u))){return r}throw TypeError("Can't convert object to primitive value")};var c=Object.defineProperty;var f=C?Object.defineProperty:function u(D,e,r){n(D);e=o(e,true);n(r);if(E){try{return c(D,e,r)}catch(t){}}if("get"in r||"set"in r){throw TypeError("Accessors not supported!")}if("value"in r){D[e]=r.value}return D};var B={f};var s=function(u,D){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:D}};var l=C?function(u,D,e){return B.f(u,D,s(1,e))}:function(u,D,e){u[D]=e;return u};var v={}.hasOwnProperty;var d=function(u,D){return v.call(u,D)};var p=0;var h=Math.random();var g=function(u){return"Symbol(".concat(u===undefined?"":u,")_",(++p+h).toString(36))};var m=false;var y=u((function(u){var r="__core-js_shared__";var t=D[r]||(D[r]={});(u.exports=function(u,D){return t[u]||(t[u]=D!==undefined?D:{})})("versions",[]).push({version:e.version,mode:m?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}));var w=y("native-function-to-string",Function.toString);var b=u((function(u){var r=g("src");var t="toString";var n=(""+w).split(t);e.inspectSource=function(u){return w.call(u)};(u.exports=function(u,e,t,F){var C=typeof t=="function";if(C){d(t,"name")||l(t,"name",e)}if(u[e]===t){return}if(C){d(t,r)||l(t,r,u[e]?""+u[e]:n.join(String(e)))}if(u===D){u[e]=t}else if(!F){delete u[e];l(u,e,t)}else if(u[e]){u[e]=t}else{l(u,e,t)}})(Function.prototype,t,(function u(){return typeof this=="function"&&this[r]||w.call(this)}))}));var S=function(u){if(typeof u!="function"){throw TypeError(u+" is not a function!")}return u};var x=function(u,D,e){S(u);if(D===undefined){return u}switch(e){case 1:return function(e){return u.call(D,e)};case 2:return function(e,r){return u.call(D,e,r)};case 3:return function(e,r,t){return u.call(D,e,r,t)}}return function(){return u.apply(D,arguments)}};var N="prototype";var P=function(u,r,t){var n=u&P.F;var F=u&P.G;var C=u&P.S;var A=u&P.P;var i=u&P.B;var a=F?D:C?D[r]||(D[r]={}):(D[r]||{})[N];var E=F?e:e[r]||(e[r]={});var o=E[N]||(E[N]={});var c,f,B,s;if(F){t=r}for(c in t){f=!n&&a&&a[c]!==undefined;B=(f?a:t)[c];s=i&&f?x(B,D):A&&typeof B=="function"?x(Function.call,B):B;if(a){b(a,c,B,u&P.U)}if(E[c]!=B){l(E,c,s)}if(A&&o[c]!=B){o[c]=B}}};D.core=e;P.F=1;P.G=2;P.S=4;P.P=8;P.B=16;P.W=32;P.U=64;P.R=128;var _=P;var I=Math.ceil;var O=Math.floor;var j=function(u){return isNaN(u=+u)?0:(u>0?O:I)(u)};var k=function(u){if(u==undefined){throw TypeError("Can't call method on "+u)}return u};var V=function(u){return function(D,e){var r=String(k(D));var t=j(e);var n=r.length;var F,C;if(t<0||t>=n){return u?"":undefined}F=r.charCodeAt(t);return F<55296||F>56319||t+1===n||(C=r.charCodeAt(t+1))<56320||C>57343?u?r.charAt(t):F:u?r.slice(t,t+2):(F-55296<<10)+(C-56320)+65536}};var M=V(false);_(_.P,"String",{codePointAt:function u(D){return M(this,D)}});var J=e.String.codePointAt;var L=Math.max;var T=Math.min;var z=function(u,D){u=j(u);return u<0?L(u+D,0):T(u,D)};var H=String.fromCharCode;var $=String.fromCodePoint;_(_.S+_.F*(!!$&&$.length!=1),"String",{fromCodePoint:function u(D){var e=arguments;var r=[];var t=arguments.length;var n=0;var F;while(t>n){F=+e[n++];if(z(F,1114111)!==F){throw RangeError(F+" is not a valid code point")}r.push(F<65536?H(F):H(((F-=65536)>>10)+55296,F%1024+56320))}return r.join("")}});var R=e.String.fromCodePoint;var G=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;var U=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;var Z=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;var q={Space_Separator:G,ID_Start:U,ID_Continue:Z};var W={isSpaceSeparator:function u(D){return typeof D==="string"&&q.Space_Separator.test(D)},isIdStartChar:function u(D){return typeof D==="string"&&(D>="a"&&D<="z"||D>="A"&&D<="Z"||D==="$"||D==="_"||q.ID_Start.test(D))},isIdContinueChar:function u(D){return typeof D==="string"&&(D>="a"&&D<="z"||D>="A"&&D<="Z"||D>="0"&&D<="9"||D==="$"||D==="_"||D==="‌"||D==="‍"||q.ID_Continue.test(D))},isDigit:function u(D){return typeof D==="string"&&/[0-9]/.test(D)},isHexDigit:function u(D){return typeof D==="string"&&/[0-9A-Fa-f]/.test(D)}};var X;var K;var Q;var Y;var uu;var Du;var eu;var ru;var tu;var nu=function u(D,e){X=String(D);K="start";Q=[];Y=0;uu=1;Du=0;eu=undefined;ru=undefined;tu=undefined;do{eu=ou();hu[K]()}while(eu.type!=="eof");if(typeof e==="function"){return Fu({"":tu},"",e)}return tu};function Fu(u,D,e){var r=u[D];if(r!=null&&typeof r==="object"){if(Array.isArray(r)){for(var t=0;t0){var e=cu();if(!W.isHexDigit(e)){throw yu(fu())}u+=fu()}return String.fromCodePoint(parseInt(u,16))}var hu={start:function u(){if(eu.type==="eof"){throw wu()}gu()},beforePropertyName:function u(){switch(eu.type){case"identifier":case"string":ru=eu.value;K="afterPropertyName";return;case"punctuator":mu();return;case"eof":throw wu()}},afterPropertyName:function u(){if(eu.type==="eof"){throw wu()}K="beforePropertyValue"},beforePropertyValue:function u(){if(eu.type==="eof"){throw wu()}gu()},beforeArrayValue:function u(){if(eu.type==="eof"){throw wu()}if(eu.type==="punctuator"&&eu.value==="]"){mu();return}gu()},afterPropertyValue:function u(){if(eu.type==="eof"){throw wu()}switch(eu.value){case",":K="beforePropertyName";return;case"}":mu()}},afterArrayValue:function u(){if(eu.type==="eof"){throw wu()}switch(eu.value){case",":K="beforeArrayValue";return;case"]":mu()}},end:function u(){}};function gu(){var u;switch(eu.type){case"punctuator":switch(eu.value){case"{":u={};break;case"[":u=[];break}break;case"null":case"boolean":case"numeric":case"string":u=eu.value;break}if(tu===undefined){tu=u}else{var D=Q[Q.length-1];if(Array.isArray(D)){D.push(u)}else{Object.defineProperty(D,ru,{value:u,writable:true,enumerable:true,configurable:true})}}if(u!==null&&typeof u==="object"){Q.push(u);if(Array.isArray(u)){K="beforeArrayValue"}else{K="beforePropertyName"}}else{var e=Q[Q.length-1];if(e==null){K="end"}else if(Array.isArray(e)){K="afterArrayValue"}else{K="afterPropertyValue"}}}function mu(){Q.pop();var u=Q[Q.length-1];if(u==null){K="end"}else if(Array.isArray(u)){K="afterArrayValue"}else{K="afterPropertyValue"}}function yu(u){if(u===undefined){return Nu("JSON5: invalid end of input at "+uu+":"+Du)}return Nu("JSON5: invalid character '"+xu(u)+"' at "+uu+":"+Du)}function wu(){return Nu("JSON5: invalid end of input at "+uu+":"+Du)}function bu(){Du-=5;return Nu("JSON5: invalid identifier character at "+uu+":"+Du)}function Su(u){console.warn("JSON5: '"+xu(u)+"' in strings is not valid ECMAScript; consider escaping")}function xu(u){var D={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(D[u]){return D[u]}if(u<" "){var e=u.charCodeAt(0).toString(16);return"\\x"+("00"+e).substring(e.length)}return u}function Nu(u){var D=new SyntaxError(u);D.lineNumber=uu;D.columnNumber=Du;return D}var Pu=function u(D,e,r){var t=[];var n="";var F;var C;var A="";var i;if(e!=null&&typeof e==="object"&&!Array.isArray(e)){r=e.space;i=e.quote;e=e.replacer}if(typeof e==="function"){C=e}else if(Array.isArray(e)){F=[];for(var a=0,E=e;a0){r=Math.min(10,Math.floor(r));A=" ".substr(0,r)}}else if(typeof r==="string"){A=r.substr(0,10)}return f("",{"":D});function f(u,D){var e=D[u];if(e!=null){if(typeof e.toJSON5==="function"){e=e.toJSON5(u)}else if(typeof e.toJSON==="function"){e=e.toJSON(u)}}if(C){e=C.call(D,u,e)}if(e instanceof Number){e=Number(e)}else if(e instanceof String){e=String(e)}else if(e instanceof Boolean){e=e.valueOf()}switch(e){case null:return"null";case true:return"true";case false:return"false"}if(typeof e==="string"){return B(e,false)}if(typeof e==="number"){return String(e)}if(typeof e==="object"){return Array.isArray(e)?v(e):s(e)}return undefined}function B(u){var D={"'":.1,'"':.2};var e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};var r="";for(var t=0;t=0){throw TypeError("Converting circular structure to JSON5")}t.push(u);var D=n;n=n+A;var e=F||Object.keys(u);var r=[];for(var C=0,i=e;C=0){throw TypeError("Converting circular structure to JSON5")}t.push(u);var D=n;n=n+A;var e=[];for(var r=0;r{p.d(a,{createPieServices:()=>t.f});var t=p(62409);var c=p(74888)}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1495.13603dd823bbf5eb08b3.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1495.13603dd823bbf5eb08b3.js new file mode 100644 index 0000000000000000000000000000000000000000..62f220228bf6c9a06acdbc313884e74d486f5117 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1495.13603dd823bbf5eb08b3.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1495],{21495:(e,t,O)=>{O.r(t);O.d(t,{autoCloseTags:()=>D,completeFromSchema:()=>Z,xml:()=>I,xmlLanguage:()=>q});var n=O(27421);var r=O(45145);const a=1,l=2,s=3,o=4,i=5,y=35,c=36,p=37,u=11,$=13;function f(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function g(e){return e==9||e==10||e==13||e==32}let S=null,m=null,d=0;function h(e,t){let O=e.pos+t;if(m==e&&d==O)return S;while(g(e.peek(t)))t++;let n="";for(;;){let O=e.peek(t);if(!f(O))break;n+=String.fromCharCode(O);t++}m=e;d=O;return S=n||null}function v(e,t){this.name=e;this.parent=t;this.hash=t?t.hash:0;for(let O=0;O{if(e.next!=60)return;e.advance();if(e.next==47){e.advance();let O=h(e,0);if(!O)return e.acceptToken(i);if(t.context&&O==t.context.name)return e.acceptToken(l);for(let n=t.context;n;n=n.parent)if(n.name==O)return e.acceptToken(s,-2);e.acceptToken(o)}else if(e.next!=33&&e.next!=63){return e.acceptToken(a)}}),{contextual:true});function _(e,t){return new n.Lu((O=>{for(let n=0,r=0;;r++){if(O.next<0){if(r)O.acceptToken(e);break}if(O.next==t.charCodeAt(n)){n++;if(n==t.length){if(r>=t.length)O.acceptToken(e,1-t.length);break}}else{n=O.next==t.charCodeAt(0)?1:0}O.advance()}}))}const C=_(y,"--\x3e");const b=_(c,"?>");const w=_(p,"]]>");const W=(0,r.styleTags)({Text:r.tags.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":r.tags.angleBracket,TagName:r.tags.tagName,"MismatchedCloseTag/Tagname":[r.tags.tagName,r.tags.invalid],AttributeName:r.tags.attributeName,AttributeValue:r.tags.attributeValue,Is:r.tags.definitionOperator,"EntityReference CharacterReference":r.tags.character,Comment:r.tags.blockComment,ProcessingInst:r.tags.processingInstruction,DoctypeDecl:r.tags.documentMeta,Cdata:r.tags.special(r.tags.string)});const V=n.U1.deserialize({version:14,states:",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6z-E6zOOOP1G.x1G.xOOOS-E6{-E6{OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'jO!bO,59eOOOO-E6w-E6wO'xOpO1G.uO'xOpO1G.uOOOP1G.u1G.uO(QOpO7+$fOOOP7+$f7+$fO(YO!bO<`#X;'S%y;'S;=`&_<%lO%yX>eV{WOr%ysv%yw#T%y#T#U>z#U;'S%y;'S;=`&_<%lO%yX?PV{WOr%ysv%yw#h%y#h#i?f#i;'S%y;'S;=`&_<%lO%yX?kV{WOr%ysv%yw#T%y#T#Ue.from<=O&&e.to>=O));let r=n&&n.getChild("AttributeName");return r?e.sliceString(r.from,r.to):""}function R(e){for(let t=e&&e.parent;t;t=t.parent)if(t.name=="Element")return t;return null}function Y(e,t){var O;let n=(0,x.syntaxTree)(e).resolveInner(t,-1),r=null;for(let a=n;!r&&a.parent;a=a.parent)if(a.name=="OpenTag"||a.name=="CloseTag"||a.name=="SelfClosingTag"||a.name=="MismatchedCloseTag")r=a;if(r&&(r.to>t||r.lastChild.type.isError)){let e=r.parent;if(n.name=="TagName")return r.name=="CloseTag"||r.name=="MismatchedCloseTag"?{type:"closeTag",from:n.from,context:e}:{type:"openTag",from:n.from,context:R(e)};if(n.name=="AttributeName")return{type:"attrName",from:n.from,context:r};if(n.name=="AttributeValue")return{type:"attrValue",from:n.from,context:r};let O=n==r||n.name=="Attribute"?n.childBefore(t):n;if((O===null||O===void 0?void 0:O.name)=="StartTag")return{type:"openTag",from:t,context:R(e)};if((O===null||O===void 0?void 0:O.name)=="StartCloseTag"&&O.to<=t)return{type:"closeTag",from:t,context:e};if((O===null||O===void 0?void 0:O.name)=="Is")return{type:"attrValue",from:t,context:r};if(O)return{type:"attrName",from:t,context:r};return null}else if(n.name=="StartCloseTag"){return{type:"closeTag",from:t,context:n.parent}}while(n.parent&&n.to==t&&!((O=n.lastChild)===null||O===void 0?void 0:O.type.isError))n=n.parent;if(n.name=="Element"||n.name=="Text"||n.name=="Document")return{type:"tag",from:t,context:n.name=="Element"?n:R(n)};return null}class j{constructor(e,t,O){this.attrs=t;this.attrValues=O;this.children=[];this.name=e.name;this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name});this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name});this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"",boost:2});this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"});this.text=e.textContent?e.textContent.map((e=>({label:e,type:"text"}))):[]}}const z=/^[:\-\.\w\u00b7-\uffff]*$/;function A(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function N(e){return typeof e=="string"?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function Z(e,t){let O=[],n=[];let r=Object.create(null);for(let o of t){let e=A(o);O.push(e);if(o.global)n.push(e);if(o.values)r[o.name]=o.values.map(N)}let a=[],l=[];let s=Object.create(null);for(let o of e){let e=n,t=r;if(o.attributes)e=e.concat(o.attributes.map((e=>{if(typeof e=="string")return O.find((t=>t.label==e))||{label:e,type:"property"};if(e.values){if(t==r)t=Object.create(t);t[e.name]=e.values.map(N)}return A(e)})));let i=new j(o,e,t);s[i.name]=i;a.push(i);if(o.top)l.push(i)}if(!l.length)l=a;for(let o=0;o{var t;let{doc:O}=e.state,o=Y(e.state,e.pos);if(!o||o.type=="tag"&&!e.explicit)return null;let{type:i,from:y,context:c}=o;if(i=="openTag"){let e=l;let t=E(O,c);if(t){let O=s[t];e=(O===null||O===void 0?void 0:O.children)||a}return{from:y,options:e.map((e=>e.completion)),validFor:z}}else if(i=="closeTag"){let n=E(O,c);return n?{from:y,to:e.pos+(O.sliceString(e.pos,e.pos+1)==">"?1:0),options:[((t=s[n])===null||t===void 0?void 0:t.closeNameCompletion)||{label:n+">",type:"type"}],validFor:z}:null}else if(i=="attrName"){let e=s[k(O,c)];return{from:y,options:(e===null||e===void 0?void 0:e.attrs)||n,validFor:z}}else if(i=="attrValue"){let t=G(O,c,y);if(!t)return null;let n=s[k(O,c)];let a=((n===null||n===void 0?void 0:n.attrValues)||r)[t];if(!a||!a.length)return null;return{from:y,to:e.pos+(O.sliceString(e.pos,e.pos+1)=='"'?1:0),options:a,validFor:/^"[^"]*"?$/}}else if(i=="tag"){let t=E(O,c),n=s[t];let r=[],o=c&&c.lastChild;if(t&&(!o||o.name!="CloseTag"||k(O,o)!=t))r.push(n?n.closeCompletion:{label:"",type:"type",boost:2});let i=r.concat(((n===null||n===void 0?void 0:n.children)||(c?a:l)).map((e=>e.openCompletion)));if(c&&(n===null||n===void 0?void 0:n.text.length)){let t=c.firstChild;if(t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos)))i=i.concat(n.text)}return{from:y,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else{return null}}}const q=x.LRLanguage.define({name:"xml",parser:V.configure({props:[x.indentNodeProp.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),x.foldNodeProp.add({Element(e){let t=e.firstChild,O=e.lastChild;if(!t||t.name!="OpenTag")return null;return{from:t.to,to:O.name=="CloseTag"?O.from:e.to}}}),x.bracketMatchingHandle.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}});function I(e={}){let t=[q.data.of({autocomplete:Z(e.elements||[],e.attributes||[])})];if(e.autoCloseTags!==false)t.push(D);return new x.LanguageSupport(q,t)}function U(e,t,O=e.length){if(!t)return"";let n=t.firstChild;let r=n&&n.getChild("TagName");return r?e.sliceString(r.from,Math.min(r.to,O)):""}const D=Q.EditorView.inputHandler.of(((e,t,O,n,r)=>{if(e.composing||e.state.readOnly||t!=O||n!=">"&&n!="/"||!q.isActiveAt(e.state,t,-1))return false;let a=r(),{state:l}=a;let s=l.changeByRange((e=>{var t,O,r;let{head:a}=e;let s=l.doc.sliceString(a-1,a)==n;let o=(0,x.syntaxTree)(l).resolveInner(a,-1),i;if(s&&n==">"&&o.name=="EndTag"){let n=o.parent;if(((O=(t=n.parent)===null||t===void 0?void 0:t.lastChild)===null||O===void 0?void 0:O.name)!="CloseTag"&&(i=U(l.doc,n.parent,a))){let t=a+(l.doc.sliceString(a,a+1)===">"?1:0);let O=``;return{range:e,changes:{from:a,to:t,insert:O}}}}else if(s&&n=="/"&&o.name=="StartCloseTag"){let e=o.parent;if(o.from==a-2&&((r=e.lastChild)===null||r===void 0?void 0:r.name)!="CloseTag"&&(i=U(l.doc,e,a))){let e=a+(l.doc.sliceString(a,a+1)===">"?1:0);let t=`${i}>`;return{range:X.EditorSelection.cursor(a+t.length,-1),changes:{from:a,to:e,insert:t}}}}return{range:e}}));if(s.changes.empty)return false;e.dispatch([a,l.update(s,{userEvent:"input.complete",scrollIntoView:true})]);return true}))}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1673.b0ee25168543434bdbca.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1673.b0ee25168543434bdbca.js new file mode 100644 index 0000000000000000000000000000000000000000..8510e630d6149e4fce51efb25b00bcccbe8a2ebd --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1673.b0ee25168543434bdbca.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1673],{92952:function(c,t,e){var i=this&&this.__extends||function(){var c=function(t,e){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,t){c.__proto__=t}||function(c,t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))c[e]=t[e]};return c(t,e)};return function(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();var f=this&&this.__assign||function(){f=Object.assign||function(c){for(var t,e=1,i=arguments.length;e=c.length)c=void 0;return{value:c&&c[i++],done:!c}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(c,t){var e=typeof Symbol==="function"&&c[Symbol.iterator];if(!e)return c;var i=e.call(c),f,r=[],s;try{while((t===void 0||t-- >0)&&!(f=i.next()).done)r.push(f.value)}catch(a){s={error:a}}finally{try{if(f&&!f.done&&(e=i["return"]))e.call(i)}finally{if(s)throw s.error}}return r};Object.defineProperty(t,"__esModule",{value:true});t.AddCSS=t.CHTMLFontData=void 0;var n=e(30861);var l=e(60854);var d=e(86810);s(e(30861),t);var S=function(c){i(t,c);function t(){var t=c!==null&&c.apply(this,arguments)||this;t.charUsage=new l.Usage;t.delimUsage=new l.Usage;return t}t.charOptions=function(t,e){return c.charOptions.call(this,t,e)};t.prototype.adaptiveCSS=function(c){this.options.adaptiveCSS=c};t.prototype.clearCache=function(){if(this.options.adaptiveCSS){this.charUsage.clear();this.delimUsage.clear()}};t.prototype.createVariant=function(t,e,i){if(e===void 0){e=null}if(i===void 0){i=null}c.prototype.createVariant.call(this,t,e,i);var f=this.constructor;this.variant[t].classes=f.defaultVariantClasses[t];this.variant[t].letter=f.defaultVariantLetters[t]};t.prototype.defineChars=function(e,i){var f,r;c.prototype.defineChars.call(this,e,i);var s=this.variant[e].letter;try{for(var o=a(Object.keys(i)),n=o.next();!n.done;n=o.next()){var l=n.value;var d=t.charOptions(i,parseInt(l));if(d.f===undefined){d.f=s}}}catch(S){f={error:S}}finally{try{if(n&&!n.done&&(r=o.return))r.call(o)}finally{if(f)throw f.error}}};Object.defineProperty(t.prototype,"styles",{get:function(){var c=this.constructor;var t=f({},c.defaultStyles);this.addFontURLs(t,c.defaultFonts,this.options.fontURL);if(this.options.adaptiveCSS){this.updateStyles(t)}else{this.allStyles(t)}return t},enumerable:false,configurable:true});t.prototype.updateStyles=function(c){var t,e,i,f;try{for(var r=a(this.delimUsage.update()),s=r.next();!s.done;s=r.next()){var n=s.value;this.addDelimiterStyles(c,n,this.delimiters[n])}}catch(p){t={error:p}}finally{try{if(s&&!s.done&&(e=r.return))e.call(r)}finally{if(t)throw t.error}}try{for(var l=a(this.charUsage.update()),d=l.next();!d.done;d=l.next()){var S=o(d.value,2),u=S[0],n=S[1];var h=this.variant[u];this.addCharStyles(c,h.letter,n,h.chars[n])}}catch(B){i={error:B}}finally{try{if(d&&!d.done&&(f=l.return))f.call(l)}finally{if(i)throw i.error}}return c};t.prototype.allStyles=function(c){var t,e,i,f,r,s;try{for(var o=a(Object.keys(this.delimiters)),n=o.next();!n.done;n=o.next()){var l=n.value;var d=parseInt(l);this.addDelimiterStyles(c,d,this.delimiters[d])}}catch(y){t={error:y}}finally{try{if(n&&!n.done&&(e=o.return))e.call(o)}finally{if(t)throw t.error}}try{for(var S=a(Object.keys(this.variant)),u=S.next();!u.done;u=S.next()){var h=u.value;var p=this.variant[h];var B=p.letter;try{for(var v=(r=void 0,a(Object.keys(p.chars))),m=v.next();!m.done;m=v.next()){var l=m.value;var d=parseInt(l);var k=p.chars[d];if((k[3]||{}).smp)continue;if(k.length<4){k[3]={}}this.addCharStyles(c,B,d,k)}}catch(I){r={error:I}}finally{try{if(m&&!m.done&&(s=v.return))s.call(v)}finally{if(r)throw r.error}}}}catch(A){i={error:A}}finally{try{if(u&&!u.done&&(f=S.return))f.call(S)}finally{if(i)throw i.error}}};t.prototype.addFontURLs=function(c,t,e){var i,r;try{for(var s=a(Object.keys(t)),o=s.next();!o.done;o=s.next()){var n=o.value;var l=f({},t[n]);l.src=l.src.replace(/%%URL%%/,e);c[n]=l}}catch(d){i={error:d}}finally{try{if(o&&!o.done&&(r=s.return))r.call(s)}finally{if(i)throw i.error}}};t.prototype.addDelimiterStyles=function(c,t,e){var i=this.charSelector(t);if(e.c&&e.c!==t){i=this.charSelector(e.c);c[".mjx-stretched mjx-c"+i+"::before"]={content:this.charContent(e.c)}}if(!e.stretch)return;if(e.dir===1){this.addDelimiterVStyles(c,i,e)}else{this.addDelimiterHStyles(c,i,e)}};t.prototype.addDelimiterVStyles=function(c,t,e){var i=e.HDW;var f=o(e.stretch,4),r=f[0],s=f[1],a=f[2],n=f[3];var l=this.addDelimiterVPart(c,t,"beg",r,i);this.addDelimiterVPart(c,t,"ext",s,i);var d=this.addDelimiterVPart(c,t,"end",a,i);var S={};if(n){var u=this.addDelimiterVPart(c,t,"mid",n,i);S.height="50%";c["mjx-stretchy-v"+t+" > mjx-mid"]={"margin-top":this.em(-u/2),"margin-bottom":this.em(-u/2)}}if(l){S["border-top-width"]=this.em0(l-.03)}if(d){S["border-bottom-width"]=this.em0(d-.03);c["mjx-stretchy-v"+t+" > mjx-end"]={"margin-top":this.em(-d)}}if(Object.keys(S).length){c["mjx-stretchy-v"+t+" > mjx-ext"]=S}};t.prototype.addDelimiterVPart=function(c,t,e,i,f){if(!i)return 0;var r=this.getDelimiterData(i);var s=(f[2]-r[2])/2;var a={content:this.charContent(i)};if(e!=="ext"){a.padding=this.padding(r,s)}else{a.width=this.em0(f[2]);if(s){a["padding-left"]=this.em0(s)}}c["mjx-stretchy-v"+t+" mjx-"+e+" mjx-c::before"]=a;return r[0]+r[1]};t.prototype.addDelimiterHStyles=function(c,t,e){var i=o(e.stretch,4),f=i[0],r=i[1],s=i[2],a=i[3];var n=e.HDW;this.addDelimiterHPart(c,t,"beg",f,n);this.addDelimiterHPart(c,t,"ext",r,n);this.addDelimiterHPart(c,t,"end",s,n);if(a){this.addDelimiterHPart(c,t,"mid",a,n);c["mjx-stretchy-h"+t+" > mjx-ext"]={width:"50%"}}};t.prototype.addDelimiterHPart=function(c,t,e,i,f){if(!i)return;var r=this.getDelimiterData(i);var s=r[3];var a={content:s&&s.c?'"'+s.c+'"':this.charContent(i)};a.padding=this.padding(f,0,-f[2]);c["mjx-stretchy-h"+t+" mjx-"+e+" mjx-c::before"]=a};t.prototype.addCharStyles=function(c,t,e,i){var f=i[3];var r=f.f!==undefined?f.f:t;var s="mjx-c"+this.charSelector(e)+(r?".TEX-"+r:"");c[s+"::before"]={padding:this.padding(i,0,f.ic||0),content:f.c!=null?'"'+f.c+'"':this.charContent(e)}};t.prototype.getDelimiterData=function(c){return this.getChar("-smallop",c)};t.prototype.em=function(c){return(0,d.em)(c)};t.prototype.em0=function(c){return(0,d.em)(Math.max(0,c))};t.prototype.padding=function(c,t,e){var i=o(c,3),f=i[0],r=i[1],s=i[2];if(t===void 0){t=0}if(e===void 0){e=0}return[f,s+e,r,t].map(this.em0).join(" ")};t.prototype.charContent=function(c){return'"'+(c>=32&&c<=126&&c!==34&&c!==39&&c!==92?String.fromCharCode(c):"\\"+c.toString(16).toUpperCase())+'"'};t.prototype.charSelector=function(c){return".mjx-c"+c.toString(16).toUpperCase()};t.OPTIONS=f(f({},n.FontData.OPTIONS),{fontURL:"js/output/chtml/fonts/tex-woff-v2"});t.JAX="CHTML";t.defaultVariantClasses={};t.defaultVariantLetters={};t.defaultStyles={"mjx-c::before":{display:"block",width:0}};t.defaultFonts={"@font-face /* 0 */":{"font-family":"MJXZERO",src:'url("%%URL%%/MathJax_Zero.woff") format("woff")'}};return t}(n.FontData);t.CHTMLFontData=S;function u(c,t){var e,i;try{for(var f=a(Object.keys(t)),r=f.next();!r.done;r=f.next()){var s=r.value;var o=parseInt(s);Object.assign(n.FontData.charOptions(c,o),t[o])}}catch(l){e={error:l}}finally{try{if(r&&!r.done&&(i=f.return))i.call(f)}finally{if(e)throw e.error}}return c}t.AddCSS=u},60854:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Usage=void 0;var e=function(){function c(){this.used=new Set;this.needsUpdate=[]}c.prototype.add=function(c){var t=JSON.stringify(c);if(!this.used.has(t)){this.needsUpdate.push(c)}this.used.add(t)};c.prototype.has=function(c){return this.used.has(JSON.stringify(c))};c.prototype.clear=function(){this.used.clear();this.needsUpdate=[]};c.prototype.update=function(){var c=this.needsUpdate;this.needsUpdate=[];return c};return c}();t.Usage=e},1673:function(c,t,e){var i=this&&this.__extends||function(){var c=function(t,e){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,t){c.__proto__=t}||function(c,t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))c[e]=t[e]};return c(t,e)};return function(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();var f=this&&this.__assign||function(){f=Object.assign||function(c){for(var t,e=1,i=arguments.length;e{Object.defineProperty(t,"__esModule",{value:true});t.boldItalic=void 0;var i=e(92952);var f=e(51091);t.boldItalic=(0,i.AddCSS)(f.boldItalic,{305:{f:"B"},567:{f:"B"},8260:{c:"/"},8710:{c:"\\394"},10744:{c:"/"}})},78451:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.bold=void 0;var i=e(92952);var f=e(95746);t.bold=(0,i.AddCSS)(f.bold,{183:{c:"\\22C5"},305:{f:""},567:{f:""},697:{c:"\\2032"},8194:{c:""},8195:{c:""},8196:{c:""},8197:{c:""},8198:{c:""},8201:{c:""},8202:{c:""},8213:{c:"\\2014"},8214:{c:"\\2225"},8215:{c:"_"},8226:{c:"\\2219"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8254:{c:"\\2C9"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8407:{c:"\\2192",f:"VB"},8602:{c:"\\2190\\338"},8603:{c:"\\2192\\338"},8622:{c:"\\2194\\338"},8653:{c:"\\21D0\\338"},8654:{c:"\\21D4\\338"},8655:{c:"\\21D2\\338"},8708:{c:"\\2203\\338"},8710:{c:"\\394"},8716:{c:"\\220B\\338"},8740:{c:"\\2223\\338"},8742:{c:"\\2225\\338"},8769:{c:"\\223C\\338"},8772:{c:"\\2243\\338"},8775:{c:"\\2245\\338"},8777:{c:"\\2248\\338"},8802:{c:"\\2261\\338"},8813:{c:"\\224D\\338"},8814:{c:"<\\338"},8815:{c:">\\338"},8816:{c:"\\2264\\338"},8817:{c:"\\2265\\338"},8832:{c:"\\227A\\338"},8833:{c:"\\227B\\338"},8836:{c:"\\2282\\338"},8837:{c:"\\2283\\338"},8840:{c:"\\2286\\338"},8841:{c:"\\2287\\338"},8876:{c:"\\22A2\\338"},8877:{c:"\\22A8\\338"},8930:{c:"\\2291\\338"},8931:{c:"\\2292\\338"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9653:{c:"\\25B3"},9663:{c:"\\25BD"},10072:{c:"\\2223"},10744:{c:"/",f:"BI"},10799:{c:"\\D7"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},18018:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.doubleStruck=void 0;var i=e(32249);Object.defineProperty(t,"doubleStruck",{enumerable:true,get:function(){return i.doubleStruck}})},74141:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.frakturBold=void 0;var i=e(92952);var f=e(45600);t.frakturBold=(0,i.AddCSS)(f.frakturBold,{8260:{c:"/"}})},3785:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.fraktur=void 0;var i=e(92952);var f=e(59534);t.fraktur=(0,i.AddCSS)(f.fraktur,{8260:{c:"/"}})},74868:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.italic=void 0;var i=e(92952);var f=e(14141);t.italic=(0,i.AddCSS)(f.italic,{47:{f:"I"},989:{c:"\\E008",f:"A"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/",f:"I"},8710:{c:"\\394",f:"I"},10744:{c:"/",f:"I"}})},87434:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.largeop=void 0;var i=e(92952);var f=e(63969);t.largeop=(0,i.AddCSS)(f.largeop,{8214:{f:"S1"},8260:{c:"/"},8593:{f:"S1"},8595:{f:"S1"},8657:{f:"S1"},8659:{f:"S1"},8739:{f:"S1"},8741:{f:"S1"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9168:{f:"S1"},10072:{c:"\\2223",f:"S1"},10764:{c:"\\222C\\222C"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},82621:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.monospace=void 0;var i=e(92952);var f=e(58626);t.monospace=(0,i.AddCSS)(f.monospace,{697:{c:"\\2032"},913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8215:{c:"_"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8710:{c:"\\394"}})},56979:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.normal=void 0;var i=e(92952);var f=e(25190);t.normal=(0,i.AddCSS)(f.normal,{163:{f:"MI"},165:{f:"A"},174:{f:"A"},183:{c:"\\22C5"},240:{f:"A"},697:{c:"\\2032"},913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8192:{c:""},8193:{c:""},8194:{c:""},8195:{c:""},8196:{c:""},8197:{c:""},8198:{c:""},8201:{c:""},8202:{c:""},8203:{c:""},8204:{c:""},8213:{c:"\\2014"},8214:{c:"\\2225"},8215:{c:"_"},8226:{c:"\\2219"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8245:{f:"A"},8246:{c:"\\2035\\2035",f:"A"},8247:{c:"\\2035\\2035\\2035",f:"A"},8254:{c:"\\2C9"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8288:{c:""},8289:{c:""},8290:{c:""},8291:{c:""},8292:{c:""},8407:{c:"\\2192",f:"V"},8450:{c:"C",f:"A"},8459:{c:"H",f:"SC"},8460:{c:"H",f:"FR"},8461:{c:"H",f:"A"},8462:{c:"h",f:"I"},8463:{f:"A"},8464:{c:"I",f:"SC"},8465:{c:"I",f:"FR"},8466:{c:"L",f:"SC"},8469:{c:"N",f:"A"},8473:{c:"P",f:"A"},8474:{c:"Q",f:"A"},8475:{c:"R",f:"SC"},8476:{c:"R",f:"FR"},8477:{c:"R",f:"A"},8484:{c:"Z",f:"A"},8486:{c:"\\3A9"},8487:{f:"A"},8488:{c:"Z",f:"FR"},8492:{c:"B",f:"SC"},8493:{c:"C",f:"FR"},8496:{c:"E",f:"SC"},8497:{c:"F",f:"SC"},8498:{f:"A"},8499:{c:"M",f:"SC"},8502:{f:"A"},8503:{f:"A"},8504:{f:"A"},8513:{f:"A"},8602:{f:"A"},8603:{f:"A"},8606:{f:"A"},8608:{f:"A"},8610:{f:"A"},8611:{f:"A"},8619:{f:"A"},8620:{f:"A"},8621:{f:"A"},8622:{f:"A"},8624:{f:"A"},8625:{f:"A"},8630:{f:"A"},8631:{f:"A"},8634:{f:"A"},8635:{f:"A"},8638:{f:"A"},8639:{f:"A"},8642:{f:"A"},8643:{f:"A"},8644:{f:"A"},8646:{f:"A"},8647:{f:"A"},8648:{f:"A"},8649:{f:"A"},8650:{f:"A"},8651:{f:"A"},8653:{f:"A"},8654:{f:"A"},8655:{f:"A"},8666:{f:"A"},8667:{f:"A"},8669:{f:"A"},8672:{f:"A"},8674:{f:"A"},8705:{f:"A"},8708:{c:"\\2203\\338"},8710:{c:"\\394"},8716:{c:"\\220B\\338"},8717:{f:"A"},8719:{f:"S1"},8720:{f:"S1"},8721:{f:"S1"},8724:{f:"A"},8737:{f:"A"},8738:{f:"A"},8740:{f:"A"},8742:{f:"A"},8748:{f:"S1"},8749:{f:"S1"},8750:{f:"S1"},8756:{f:"A"},8757:{f:"A"},8765:{f:"A"},8769:{f:"A"},8770:{f:"A"},8772:{c:"\\2243\\338"},8775:{c:"\\2246",f:"A"},8777:{c:"\\2248\\338"},8778:{f:"A"},8782:{f:"A"},8783:{f:"A"},8785:{f:"A"},8786:{f:"A"},8787:{f:"A"},8790:{f:"A"},8791:{f:"A"},8796:{f:"A"},8802:{c:"\\2261\\338"},8806:{f:"A"},8807:{f:"A"},8808:{f:"A"},8809:{f:"A"},8812:{f:"A"},8813:{c:"\\224D\\338"},8814:{f:"A"},8815:{f:"A"},8816:{f:"A"},8817:{f:"A"},8818:{f:"A"},8819:{f:"A"},8820:{c:"\\2272\\338"},8821:{c:"\\2273\\338"},8822:{f:"A"},8823:{f:"A"},8824:{c:"\\2276\\338"},8825:{c:"\\2277\\338"},8828:{f:"A"},8829:{f:"A"},8830:{f:"A"},8831:{f:"A"},8832:{f:"A"},8833:{f:"A"},8836:{c:"\\2282\\338"},8837:{c:"\\2283\\338"},8840:{f:"A"},8841:{f:"A"},8842:{f:"A"},8843:{f:"A"},8847:{f:"A"},8848:{f:"A"},8858:{f:"A"},8859:{f:"A"},8861:{f:"A"},8862:{f:"A"},8863:{f:"A"},8864:{f:"A"},8865:{f:"A"},8873:{f:"A"},8874:{f:"A"},8876:{f:"A"},8877:{f:"A"},8878:{f:"A"},8879:{f:"A"},8882:{f:"A"},8883:{f:"A"},8884:{f:"A"},8885:{f:"A"},8888:{f:"A"},8890:{f:"A"},8891:{f:"A"},8892:{f:"A"},8896:{f:"S1"},8897:{f:"S1"},8898:{f:"S1"},8899:{f:"S1"},8903:{f:"A"},8905:{f:"A"},8906:{f:"A"},8907:{f:"A"},8908:{f:"A"},8909:{f:"A"},8910:{f:"A"},8911:{f:"A"},8912:{f:"A"},8913:{f:"A"},8914:{f:"A"},8915:{f:"A"},8916:{f:"A"},8918:{f:"A"},8919:{f:"A"},8920:{f:"A"},8921:{f:"A"},8922:{f:"A"},8923:{f:"A"},8926:{f:"A"},8927:{f:"A"},8928:{f:"A"},8929:{f:"A"},8930:{c:"\\2291\\338"},8931:{c:"\\2292\\338"},8934:{f:"A"},8935:{f:"A"},8936:{f:"A"},8937:{f:"A"},8938:{f:"A"},8939:{f:"A"},8940:{f:"A"},8941:{f:"A"},8965:{c:"\\22BC",f:"A"},8966:{c:"\\2A5E",f:"A"},8988:{c:"\\250C",f:"A"},8989:{c:"\\2510",f:"A"},8990:{c:"\\2514",f:"A"},8991:{c:"\\2518",f:"A"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9168:{f:"S1"},9416:{f:"A"},9484:{f:"A"},9488:{f:"A"},9492:{f:"A"},9496:{f:"A"},9585:{f:"A"},9586:{f:"A"},9632:{f:"A"},9633:{f:"A"},9642:{c:"\\25A0",f:"A"},9650:{f:"A"},9652:{c:"\\25B2",f:"A"},9653:{c:"\\25B3"},9654:{f:"A"},9656:{c:"\\25B6",f:"A"},9660:{f:"A"},9662:{c:"\\25BC",f:"A"},9663:{c:"\\25BD"},9664:{f:"A"},9666:{c:"\\25C0",f:"A"},9674:{f:"A"},9723:{c:"\\25A1",f:"A"},9724:{c:"\\25A0",f:"A"},9733:{f:"A"},10003:{f:"A"},10016:{f:"A"},10072:{c:"\\2223"},10731:{f:"A"},10744:{c:"/",f:"I"},10752:{f:"S1"},10753:{f:"S1"},10754:{f:"S1"},10756:{f:"S1"},10758:{f:"S1"},10764:{c:"\\222C\\222C",f:"S1"},10799:{c:"\\D7"},10846:{f:"A"},10877:{f:"A"},10878:{f:"A"},10885:{f:"A"},10886:{f:"A"},10887:{f:"A"},10888:{f:"A"},10889:{f:"A"},10890:{f:"A"},10891:{f:"A"},10892:{f:"A"},10901:{f:"A"},10902:{f:"A"},10933:{f:"A"},10934:{f:"A"},10935:{f:"A"},10936:{f:"A"},10937:{f:"A"},10938:{f:"A"},10949:{f:"A"},10950:{f:"A"},10955:{f:"A"},10956:{f:"A"},12296:{c:"\\27E8"},12297:{c:"\\27E9"},57350:{f:"A"},57351:{f:"A"},57352:{f:"A"},57353:{f:"A"},57356:{f:"A"},57357:{f:"A"},57358:{f:"A"},57359:{f:"A"},57360:{f:"A"},57361:{f:"A"},57366:{f:"A"},57367:{f:"A"},57368:{f:"A"},57369:{f:"A"},57370:{f:"A"},57371:{f:"A"},119808:{c:"A",f:"B"},119809:{c:"B",f:"B"},119810:{c:"C",f:"B"},119811:{c:"D",f:"B"},119812:{c:"E",f:"B"},119813:{c:"F",f:"B"},119814:{c:"G",f:"B"},119815:{c:"H",f:"B"},119816:{c:"I",f:"B"},119817:{c:"J",f:"B"},119818:{c:"K",f:"B"},119819:{c:"L",f:"B"},119820:{c:"M",f:"B"},119821:{c:"N",f:"B"},119822:{c:"O",f:"B"},119823:{c:"P",f:"B"},119824:{c:"Q",f:"B"},119825:{c:"R",f:"B"},119826:{c:"S",f:"B"},119827:{c:"T",f:"B"},119828:{c:"U",f:"B"},119829:{c:"V",f:"B"},119830:{c:"W",f:"B"},119831:{c:"X",f:"B"},119832:{c:"Y",f:"B"},119833:{c:"Z",f:"B"},119834:{c:"a",f:"B"},119835:{c:"b",f:"B"},119836:{c:"c",f:"B"},119837:{c:"d",f:"B"},119838:{c:"e",f:"B"},119839:{c:"f",f:"B"},119840:{c:"g",f:"B"},119841:{c:"h",f:"B"},119842:{c:"i",f:"B"},119843:{c:"j",f:"B"},119844:{c:"k",f:"B"},119845:{c:"l",f:"B"},119846:{c:"m",f:"B"},119847:{c:"n",f:"B"},119848:{c:"o",f:"B"},119849:{c:"p",f:"B"},119850:{c:"q",f:"B"},119851:{c:"r",f:"B"},119852:{c:"s",f:"B"},119853:{c:"t",f:"B"},119854:{c:"u",f:"B"},119855:{c:"v",f:"B"},119856:{c:"w",f:"B"},119857:{c:"x",f:"B"},119858:{c:"y",f:"B"},119859:{c:"z",f:"B"},119860:{c:"A",f:"I"},119861:{c:"B",f:"I"},119862:{c:"C",f:"I"},119863:{c:"D",f:"I"},119864:{c:"E",f:"I"},119865:{c:"F",f:"I"},119866:{c:"G",f:"I"},119867:{c:"H",f:"I"},119868:{c:"I",f:"I"},119869:{c:"J",f:"I"},119870:{c:"K",f:"I"},119871:{c:"L",f:"I"},119872:{c:"M",f:"I"},119873:{c:"N",f:"I"},119874:{c:"O",f:"I"},119875:{c:"P",f:"I"},119876:{c:"Q",f:"I"},119877:{c:"R",f:"I"},119878:{c:"S",f:"I"},119879:{c:"T",f:"I"},119880:{c:"U",f:"I"},119881:{c:"V",f:"I"},119882:{c:"W",f:"I"},119883:{c:"X",f:"I"},119884:{c:"Y",f:"I"},119885:{c:"Z",f:"I"},119886:{c:"a",f:"I"},119887:{c:"b",f:"I"},119888:{c:"c",f:"I"},119889:{c:"d",f:"I"},119890:{c:"e",f:"I"},119891:{c:"f",f:"I"},119892:{c:"g",f:"I"},119894:{c:"i",f:"I"},119895:{c:"j",f:"I"},119896:{c:"k",f:"I"},119897:{c:"l",f:"I"},119898:{c:"m",f:"I"},119899:{c:"n",f:"I"},119900:{c:"o",f:"I"},119901:{c:"p",f:"I"},119902:{c:"q",f:"I"},119903:{c:"r",f:"I"},119904:{c:"s",f:"I"},119905:{c:"t",f:"I"},119906:{c:"u",f:"I"},119907:{c:"v",f:"I"},119908:{c:"w",f:"I"},119909:{c:"x",f:"I"},119910:{c:"y",f:"I"},119911:{c:"z",f:"I"},119912:{c:"A",f:"BI"},119913:{c:"B",f:"BI"},119914:{c:"C",f:"BI"},119915:{c:"D",f:"BI"},119916:{c:"E",f:"BI"},119917:{c:"F",f:"BI"},119918:{c:"G",f:"BI"},119919:{c:"H",f:"BI"},119920:{c:"I",f:"BI"},119921:{c:"J",f:"BI"},119922:{c:"K",f:"BI"},119923:{c:"L",f:"BI"},119924:{c:"M",f:"BI"},119925:{c:"N",f:"BI"},119926:{c:"O",f:"BI"},119927:{c:"P",f:"BI"},119928:{c:"Q",f:"BI"},119929:{c:"R",f:"BI"},119930:{c:"S",f:"BI"},119931:{c:"T",f:"BI"},119932:{c:"U",f:"BI"},119933:{c:"V",f:"BI"},119934:{c:"W",f:"BI"},119935:{c:"X",f:"BI"},119936:{c:"Y",f:"BI"},119937:{c:"Z",f:"BI"},119938:{c:"a",f:"BI"},119939:{c:"b",f:"BI"},119940:{c:"c",f:"BI"},119941:{c:"d",f:"BI"},119942:{c:"e",f:"BI"},119943:{c:"f",f:"BI"},119944:{c:"g",f:"BI"},119945:{c:"h",f:"BI"},119946:{c:"i",f:"BI"},119947:{c:"j",f:"BI"},119948:{c:"k",f:"BI"},119949:{c:"l",f:"BI"},119950:{c:"m",f:"BI"},119951:{c:"n",f:"BI"},119952:{c:"o",f:"BI"},119953:{c:"p",f:"BI"},119954:{c:"q",f:"BI"},119955:{c:"r",f:"BI"},119956:{c:"s",f:"BI"},119957:{c:"t",f:"BI"},119958:{c:"u",f:"BI"},119959:{c:"v",f:"BI"},119960:{c:"w",f:"BI"},119961:{c:"x",f:"BI"},119962:{c:"y",f:"BI"},119963:{c:"z",f:"BI"},119964:{c:"A",f:"SC"},119966:{c:"C",f:"SC"},119967:{c:"D",f:"SC"},119970:{c:"G",f:"SC"},119973:{c:"J",f:"SC"},119974:{c:"K",f:"SC"},119977:{c:"N",f:"SC"},119978:{c:"O",f:"SC"},119979:{c:"P",f:"SC"},119980:{c:"Q",f:"SC"},119982:{c:"S",f:"SC"},119983:{c:"T",f:"SC"},119984:{c:"U",f:"SC"},119985:{c:"V",f:"SC"},119986:{c:"W",f:"SC"},119987:{c:"X",f:"SC"},119988:{c:"Y",f:"SC"},119989:{c:"Z",f:"SC"},120068:{c:"A",f:"FR"},120069:{c:"B",f:"FR"},120071:{c:"D",f:"FR"},120072:{c:"E",f:"FR"},120073:{c:"F",f:"FR"},120074:{c:"G",f:"FR"},120077:{c:"J",f:"FR"},120078:{c:"K",f:"FR"},120079:{c:"L",f:"FR"},120080:{c:"M",f:"FR"},120081:{c:"N",f:"FR"},120082:{c:"O",f:"FR"},120083:{c:"P",f:"FR"},120084:{c:"Q",f:"FR"},120086:{c:"S",f:"FR"},120087:{c:"T",f:"FR"},120088:{c:"U",f:"FR"},120089:{c:"V",f:"FR"},120090:{c:"W",f:"FR"},120091:{c:"X",f:"FR"},120092:{c:"Y",f:"FR"},120094:{c:"a",f:"FR"},120095:{c:"b",f:"FR"},120096:{c:"c",f:"FR"},120097:{c:"d",f:"FR"},120098:{c:"e",f:"FR"},120099:{c:"f",f:"FR"},120100:{c:"g",f:"FR"},120101:{c:"h",f:"FR"},120102:{c:"i",f:"FR"},120103:{c:"j",f:"FR"},120104:{c:"k",f:"FR"},120105:{c:"l",f:"FR"},120106:{c:"m",f:"FR"},120107:{c:"n",f:"FR"},120108:{c:"o",f:"FR"},120109:{c:"p",f:"FR"},120110:{c:"q",f:"FR"},120111:{c:"r",f:"FR"},120112:{c:"s",f:"FR"},120113:{c:"t",f:"FR"},120114:{c:"u",f:"FR"},120115:{c:"v",f:"FR"},120116:{c:"w",f:"FR"},120117:{c:"x",f:"FR"},120118:{c:"y",f:"FR"},120119:{c:"z",f:"FR"},120120:{c:"A",f:"A"},120121:{c:"B",f:"A"},120123:{c:"D",f:"A"},120124:{c:"E",f:"A"},120125:{c:"F",f:"A"},120126:{c:"G",f:"A"},120128:{c:"I",f:"A"},120129:{c:"J",f:"A"},120130:{c:"K",f:"A"},120131:{c:"L",f:"A"},120132:{c:"M",f:"A"},120134:{c:"O",f:"A"},120138:{c:"S",f:"A"},120139:{c:"T",f:"A"},120140:{c:"U",f:"A"},120141:{c:"V",f:"A"},120142:{c:"W",f:"A"},120143:{c:"X",f:"A"},120144:{c:"Y",f:"A"},120172:{c:"A",f:"FRB"},120173:{c:"B",f:"FRB"},120174:{c:"C",f:"FRB"},120175:{c:"D",f:"FRB"},120176:{c:"E",f:"FRB"},120177:{c:"F",f:"FRB"},120178:{c:"G",f:"FRB"},120179:{c:"H",f:"FRB"},120180:{c:"I",f:"FRB"},120181:{c:"J",f:"FRB"},120182:{c:"K",f:"FRB"},120183:{c:"L",f:"FRB"},120184:{c:"M",f:"FRB"},120185:{c:"N",f:"FRB"},120186:{c:"O",f:"FRB"},120187:{c:"P",f:"FRB"},120188:{c:"Q",f:"FRB"},120189:{c:"R",f:"FRB"},120190:{c:"S",f:"FRB"},120191:{c:"T",f:"FRB"},120192:{c:"U",f:"FRB"},120193:{c:"V",f:"FRB"},120194:{c:"W",f:"FRB"},120195:{c:"X",f:"FRB"},120196:{c:"Y",f:"FRB"},120197:{c:"Z",f:"FRB"},120198:{c:"a",f:"FRB"},120199:{c:"b",f:"FRB"},120200:{c:"c",f:"FRB"},120201:{c:"d",f:"FRB"},120202:{c:"e",f:"FRB"},120203:{c:"f",f:"FRB"},120204:{c:"g",f:"FRB"},120205:{c:"h",f:"FRB"},120206:{c:"i",f:"FRB"},120207:{c:"j",f:"FRB"},120208:{c:"k",f:"FRB"},120209:{c:"l",f:"FRB"},120210:{c:"m",f:"FRB"},120211:{c:"n",f:"FRB"},120212:{c:"o",f:"FRB"},120213:{c:"p",f:"FRB"},120214:{c:"q",f:"FRB"},120215:{c:"r",f:"FRB"},120216:{c:"s",f:"FRB"},120217:{c:"t",f:"FRB"},120218:{c:"u",f:"FRB"},120219:{c:"v",f:"FRB"},120220:{c:"w",f:"FRB"},120221:{c:"x",f:"FRB"},120222:{c:"y",f:"FRB"},120223:{c:"z",f:"FRB"},120224:{c:"A",f:"SS"},120225:{c:"B",f:"SS"},120226:{c:"C",f:"SS"},120227:{c:"D",f:"SS"},120228:{c:"E",f:"SS"},120229:{c:"F",f:"SS"},120230:{c:"G",f:"SS"},120231:{c:"H",f:"SS"},120232:{c:"I",f:"SS"},120233:{c:"J",f:"SS"},120234:{c:"K",f:"SS"},120235:{c:"L",f:"SS"},120236:{c:"M",f:"SS"},120237:{c:"N",f:"SS"},120238:{c:"O",f:"SS"},120239:{c:"P",f:"SS"},120240:{c:"Q",f:"SS"},120241:{c:"R",f:"SS"},120242:{c:"S",f:"SS"},120243:{c:"T",f:"SS"},120244:{c:"U",f:"SS"},120245:{c:"V",f:"SS"},120246:{c:"W",f:"SS"},120247:{c:"X",f:"SS"},120248:{c:"Y",f:"SS"},120249:{c:"Z",f:"SS"},120250:{c:"a",f:"SS"},120251:{c:"b",f:"SS"},120252:{c:"c",f:"SS"},120253:{c:"d",f:"SS"},120254:{c:"e",f:"SS"},120255:{c:"f",f:"SS"},120256:{c:"g",f:"SS"},120257:{c:"h",f:"SS"},120258:{c:"i",f:"SS"},120259:{c:"j",f:"SS"},120260:{c:"k",f:"SS"},120261:{c:"l",f:"SS"},120262:{c:"m",f:"SS"},120263:{c:"n",f:"SS"},120264:{c:"o",f:"SS"},120265:{c:"p",f:"SS"},120266:{c:"q",f:"SS"},120267:{c:"r",f:"SS"},120268:{c:"s",f:"SS"},120269:{c:"t",f:"SS"},120270:{c:"u",f:"SS"},120271:{c:"v",f:"SS"},120272:{c:"w",f:"SS"},120273:{c:"x",f:"SS"},120274:{c:"y",f:"SS"},120275:{c:"z",f:"SS"},120276:{c:"A",f:"SSB"},120277:{c:"B",f:"SSB"},120278:{c:"C",f:"SSB"},120279:{c:"D",f:"SSB"},120280:{c:"E",f:"SSB"},120281:{c:"F",f:"SSB"},120282:{c:"G",f:"SSB"},120283:{c:"H",f:"SSB"},120284:{c:"I",f:"SSB"},120285:{c:"J",f:"SSB"},120286:{c:"K",f:"SSB"},120287:{c:"L",f:"SSB"},120288:{c:"M",f:"SSB"},120289:{c:"N",f:"SSB"},120290:{c:"O",f:"SSB"},120291:{c:"P",f:"SSB"},120292:{c:"Q",f:"SSB"},120293:{c:"R",f:"SSB"},120294:{c:"S",f:"SSB"},120295:{c:"T",f:"SSB"},120296:{c:"U",f:"SSB"},120297:{c:"V",f:"SSB"},120298:{c:"W",f:"SSB"},120299:{c:"X",f:"SSB"},120300:{c:"Y",f:"SSB"},120301:{c:"Z",f:"SSB"},120302:{c:"a",f:"SSB"},120303:{c:"b",f:"SSB"},120304:{c:"c",f:"SSB"},120305:{c:"d",f:"SSB"},120306:{c:"e",f:"SSB"},120307:{c:"f",f:"SSB"},120308:{c:"g",f:"SSB"},120309:{c:"h",f:"SSB"},120310:{c:"i",f:"SSB"},120311:{c:"j",f:"SSB"},120312:{c:"k",f:"SSB"},120313:{c:"l",f:"SSB"},120314:{c:"m",f:"SSB"},120315:{c:"n",f:"SSB"},120316:{c:"o",f:"SSB"},120317:{c:"p",f:"SSB"},120318:{c:"q",f:"SSB"},120319:{c:"r",f:"SSB"},120320:{c:"s",f:"SSB"},120321:{c:"t",f:"SSB"},120322:{c:"u",f:"SSB"},120323:{c:"v",f:"SSB"},120324:{c:"w",f:"SSB"},120325:{c:"x",f:"SSB"},120326:{c:"y",f:"SSB"},120327:{c:"z",f:"SSB"},120328:{c:"A",f:"SSI"},120329:{c:"B",f:"SSI"},120330:{c:"C",f:"SSI"},120331:{c:"D",f:"SSI"},120332:{c:"E",f:"SSI"},120333:{c:"F",f:"SSI"},120334:{c:"G",f:"SSI"},120335:{c:"H",f:"SSI"},120336:{c:"I",f:"SSI"},120337:{c:"J",f:"SSI"},120338:{c:"K",f:"SSI"},120339:{c:"L",f:"SSI"},120340:{c:"M",f:"SSI"},120341:{c:"N",f:"SSI"},120342:{c:"O",f:"SSI"},120343:{c:"P",f:"SSI"},120344:{c:"Q",f:"SSI"},120345:{c:"R",f:"SSI"},120346:{c:"S",f:"SSI"},120347:{c:"T",f:"SSI"},120348:{c:"U",f:"SSI"},120349:{c:"V",f:"SSI"},120350:{c:"W",f:"SSI"},120351:{c:"X",f:"SSI"},120352:{c:"Y",f:"SSI"},120353:{c:"Z",f:"SSI"},120354:{c:"a",f:"SSI"},120355:{c:"b",f:"SSI"},120356:{c:"c",f:"SSI"},120357:{c:"d",f:"SSI"},120358:{c:"e",f:"SSI"},120359:{c:"f",f:"SSI"},120360:{c:"g",f:"SSI"},120361:{c:"h",f:"SSI"},120362:{c:"i",f:"SSI"},120363:{c:"j",f:"SSI"},120364:{c:"k",f:"SSI"},120365:{c:"l",f:"SSI"},120366:{c:"m",f:"SSI"},120367:{c:"n",f:"SSI"},120368:{c:"o",f:"SSI"},120369:{c:"p",f:"SSI"},120370:{c:"q",f:"SSI"},120371:{c:"r",f:"SSI"},120372:{c:"s",f:"SSI"},120373:{c:"t",f:"SSI"},120374:{c:"u",f:"SSI"},120375:{c:"v",f:"SSI"},120376:{c:"w",f:"SSI"},120377:{c:"x",f:"SSI"},120378:{c:"y",f:"SSI"},120379:{c:"z",f:"SSI"},120432:{c:"A",f:"T"},120433:{c:"B",f:"T"},120434:{c:"C",f:"T"},120435:{c:"D",f:"T"},120436:{c:"E",f:"T"},120437:{c:"F",f:"T"},120438:{c:"G",f:"T"},120439:{c:"H",f:"T"},120440:{c:"I",f:"T"},120441:{c:"J",f:"T"},120442:{c:"K",f:"T"},120443:{c:"L",f:"T"},120444:{c:"M",f:"T"},120445:{c:"N",f:"T"},120446:{c:"O",f:"T"},120447:{c:"P",f:"T"},120448:{c:"Q",f:"T"},120449:{c:"R",f:"T"},120450:{c:"S",f:"T"},120451:{c:"T",f:"T"},120452:{c:"U",f:"T"},120453:{c:"V",f:"T"},120454:{c:"W",f:"T"},120455:{c:"X",f:"T"},120456:{c:"Y",f:"T"},120457:{c:"Z",f:"T"},120458:{c:"a",f:"T"},120459:{c:"b",f:"T"},120460:{c:"c",f:"T"},120461:{c:"d",f:"T"},120462:{c:"e",f:"T"},120463:{c:"f",f:"T"},120464:{c:"g",f:"T"},120465:{c:"h",f:"T"},120466:{c:"i",f:"T"},120467:{c:"j",f:"T"},120468:{c:"k",f:"T"},120469:{c:"l",f:"T"},120470:{c:"m",f:"T"},120471:{c:"n",f:"T"},120472:{c:"o",f:"T"},120473:{c:"p",f:"T"},120474:{c:"q",f:"T"},120475:{c:"r",f:"T"},120476:{c:"s",f:"T"},120477:{c:"t",f:"T"},120478:{c:"u",f:"T"},120479:{c:"v",f:"T"},120480:{c:"w",f:"T"},120481:{c:"x",f:"T"},120482:{c:"y",f:"T"},120483:{c:"z",f:"T"},120488:{c:"A",f:"B"},120489:{c:"B",f:"B"},120490:{c:"\\393",f:"B"},120491:{c:"\\394",f:"B"},120492:{c:"E",f:"B"},120493:{c:"Z",f:"B"},120494:{c:"H",f:"B"},120495:{c:"\\398",f:"B"},120496:{c:"I",f:"B"},120497:{c:"K",f:"B"},120498:{c:"\\39B",f:"B"},120499:{c:"M",f:"B"},120500:{c:"N",f:"B"},120501:{c:"\\39E",f:"B"},120502:{c:"O",f:"B"},120503:{c:"\\3A0",f:"B"},120504:{c:"P",f:"B"},120506:{c:"\\3A3",f:"B"},120507:{c:"T",f:"B"},120508:{c:"\\3A5",f:"B"},120509:{c:"\\3A6",f:"B"},120510:{c:"X",f:"B"},120511:{c:"\\3A8",f:"B"},120512:{c:"\\3A9",f:"B"},120513:{c:"\\2207",f:"B"},120546:{c:"A",f:"I"},120547:{c:"B",f:"I"},120548:{c:"\\393",f:"I"},120549:{c:"\\394",f:"I"},120550:{c:"E",f:"I"},120551:{c:"Z",f:"I"},120552:{c:"H",f:"I"},120553:{c:"\\398",f:"I"},120554:{c:"I",f:"I"},120555:{c:"K",f:"I"},120556:{c:"\\39B",f:"I"},120557:{c:"M",f:"I"},120558:{c:"N",f:"I"},120559:{c:"\\39E",f:"I"},120560:{c:"O",f:"I"},120561:{c:"\\3A0",f:"I"},120562:{c:"P",f:"I"},120564:{c:"\\3A3",f:"I"},120565:{c:"T",f:"I"},120566:{c:"\\3A5",f:"I"},120567:{c:"\\3A6",f:"I"},120568:{c:"X",f:"I"},120569:{c:"\\3A8",f:"I"},120570:{c:"\\3A9",f:"I"},120572:{c:"\\3B1",f:"I"},120573:{c:"\\3B2",f:"I"},120574:{c:"\\3B3",f:"I"},120575:{c:"\\3B4",f:"I"},120576:{c:"\\3B5",f:"I"},120577:{c:"\\3B6",f:"I"},120578:{c:"\\3B7",f:"I"},120579:{c:"\\3B8",f:"I"},120580:{c:"\\3B9",f:"I"},120581:{c:"\\3BA",f:"I"},120582:{c:"\\3BB",f:"I"},120583:{c:"\\3BC",f:"I"},120584:{c:"\\3BD",f:"I"},120585:{c:"\\3BE",f:"I"},120586:{c:"\\3BF",f:"I"},120587:{c:"\\3C0",f:"I"},120588:{c:"\\3C1",f:"I"},120589:{c:"\\3C2",f:"I"},120590:{c:"\\3C3",f:"I"},120591:{c:"\\3C4",f:"I"},120592:{c:"\\3C5",f:"I"},120593:{c:"\\3C6",f:"I"},120594:{c:"\\3C7",f:"I"},120595:{c:"\\3C8",f:"I"},120596:{c:"\\3C9",f:"I"},120597:{c:"\\2202"},120598:{c:"\\3F5",f:"I"},120599:{c:"\\3D1",f:"I"},120600:{c:"\\E009",f:"A"},120601:{c:"\\3D5",f:"I"},120602:{c:"\\3F1",f:"I"},120603:{c:"\\3D6",f:"I"},120604:{c:"A",f:"BI"},120605:{c:"B",f:"BI"},120606:{c:"\\393",f:"BI"},120607:{c:"\\394",f:"BI"},120608:{c:"E",f:"BI"},120609:{c:"Z",f:"BI"},120610:{c:"H",f:"BI"},120611:{c:"\\398",f:"BI"},120612:{c:"I",f:"BI"},120613:{c:"K",f:"BI"},120614:{c:"\\39B",f:"BI"},120615:{c:"M",f:"BI"},120616:{c:"N",f:"BI"},120617:{c:"\\39E",f:"BI"},120618:{c:"O",f:"BI"},120619:{c:"\\3A0",f:"BI"},120620:{c:"P",f:"BI"},120622:{c:"\\3A3",f:"BI"},120623:{c:"T",f:"BI"},120624:{c:"\\3A5",f:"BI"},120625:{c:"\\3A6",f:"BI"},120626:{c:"X",f:"BI"},120627:{c:"\\3A8",f:"BI"},120628:{c:"\\3A9",f:"BI"},120630:{c:"\\3B1",f:"BI"},120631:{c:"\\3B2",f:"BI"},120632:{c:"\\3B3",f:"BI"},120633:{c:"\\3B4",f:"BI"},120634:{c:"\\3B5",f:"BI"},120635:{c:"\\3B6",f:"BI"},120636:{c:"\\3B7",f:"BI"},120637:{c:"\\3B8",f:"BI"},120638:{c:"\\3B9",f:"BI"},120639:{c:"\\3BA",f:"BI"},120640:{c:"\\3BB",f:"BI"},120641:{c:"\\3BC",f:"BI"},120642:{c:"\\3BD",f:"BI"},120643:{c:"\\3BE",f:"BI"},120644:{c:"\\3BF",f:"BI"},120645:{c:"\\3C0",f:"BI"},120646:{c:"\\3C1",f:"BI"},120647:{c:"\\3C2",f:"BI"},120648:{c:"\\3C3",f:"BI"},120649:{c:"\\3C4",f:"BI"},120650:{c:"\\3C5",f:"BI"},120651:{c:"\\3C6",f:"BI"},120652:{c:"\\3C7",f:"BI"},120653:{c:"\\3C8",f:"BI"},120654:{c:"\\3C9",f:"BI"},120655:{c:"\\2202",f:"B"},120656:{c:"\\3F5",f:"BI"},120657:{c:"\\3D1",f:"BI"},120658:{c:"\\E009",f:"A"},120659:{c:"\\3D5",f:"BI"},120660:{c:"\\3F1",f:"BI"},120661:{c:"\\3D6",f:"BI"},120662:{c:"A",f:"SSB"},120663:{c:"B",f:"SSB"},120664:{c:"\\393",f:"SSB"},120665:{c:"\\394",f:"SSB"},120666:{c:"E",f:"SSB"},120667:{c:"Z",f:"SSB"},120668:{c:"H",f:"SSB"},120669:{c:"\\398",f:"SSB"},120670:{c:"I",f:"SSB"},120671:{c:"K",f:"SSB"},120672:{c:"\\39B",f:"SSB"},120673:{c:"M",f:"SSB"},120674:{c:"N",f:"SSB"},120675:{c:"\\39E",f:"SSB"},120676:{c:"O",f:"SSB"},120677:{c:"\\3A0",f:"SSB"},120678:{c:"P",f:"SSB"},120680:{c:"\\3A3",f:"SSB"},120681:{c:"T",f:"SSB"},120682:{c:"\\3A5",f:"SSB"},120683:{c:"\\3A6",f:"SSB"},120684:{c:"X",f:"SSB"},120685:{c:"\\3A8",f:"SSB"},120686:{c:"\\3A9",f:"SSB"},120782:{c:"0",f:"B"},120783:{c:"1",f:"B"},120784:{c:"2",f:"B"},120785:{c:"3",f:"B"},120786:{c:"4",f:"B"},120787:{c:"5",f:"B"},120788:{c:"6",f:"B"},120789:{c:"7",f:"B"},120790:{c:"8",f:"B"},120791:{c:"9",f:"B"},120802:{c:"0",f:"SS"},120803:{c:"1",f:"SS"},120804:{c:"2",f:"SS"},120805:{c:"3",f:"SS"},120806:{c:"4",f:"SS"},120807:{c:"5",f:"SS"},120808:{c:"6",f:"SS"},120809:{c:"7",f:"SS"},120810:{c:"8",f:"SS"},120811:{c:"9",f:"SS"},120812:{c:"0",f:"SSB"},120813:{c:"1",f:"SSB"},120814:{c:"2",f:"SSB"},120815:{c:"3",f:"SSB"},120816:{c:"4",f:"SSB"},120817:{c:"5",f:"SSB"},120818:{c:"6",f:"SSB"},120819:{c:"7",f:"SSB"},120820:{c:"8",f:"SSB"},120821:{c:"9",f:"SSB"},120822:{c:"0",f:"T"},120823:{c:"1",f:"T"},120824:{c:"2",f:"T"},120825:{c:"3",f:"T"},120826:{c:"4",f:"T"},120827:{c:"5",f:"T"},120828:{c:"6",f:"T"},120829:{c:"7",f:"T"},120830:{c:"8",f:"T"},120831:{c:"9",f:"T"}})},83356:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifBoldItalic=void 0;var i=e(92952);var f=e(47033);t.sansSerifBoldItalic=(0,i.AddCSS)(f.sansSerifBoldItalic,{305:{f:"SSB"},567:{f:"SSB"}})},11211:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifBold=void 0;var i=e(92952);var f=e(94872);t.sansSerifBold=(0,i.AddCSS)(f.sansSerifBold,{8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}})},76316:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifItalic=void 0;var i=e(92952);var f=e(9255);t.sansSerifItalic=(0,i.AddCSS)(f.sansSerifItalic,{913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}})},16651:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerif=void 0;var i=e(92952);var f=e(83366);t.sansSerif=(0,i.AddCSS)(f.sansSerif,{913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}})},56755:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.scriptBold=void 0;var i=e(21616);Object.defineProperty(t,"scriptBold",{enumerable:true,get:function(){return i.scriptBold}})},45491:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.script=void 0;var i=e(24062);Object.defineProperty(t,"script",{enumerable:true,get:function(){return i.script}})},7598:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.smallop=void 0;var i=e(92952);var f=e(22578);t.smallop=(0,i.AddCSS)(f.smallop,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},10072:{c:"\\2223"},10764:{c:"\\222C\\222C"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},83085:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texCalligraphicBold=void 0;var i=e(92952);var f=e(70286);t.texCalligraphicBold=(0,i.AddCSS)(f.texCalligraphicBold,{305:{f:"B"},567:{f:"B"}})},74681:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texCalligraphic=void 0;var i=e(57552);Object.defineProperty(t,"texCalligraphic",{enumerable:true,get:function(){return i.texCalligraphic}})},91611:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texMathit=void 0;var i=e(24398);Object.defineProperty(t,"texMathit",{enumerable:true,get:function(){return i.texMathit}})},56848:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texOldstyleBold=void 0;var i=e(20628);Object.defineProperty(t,"texOldstyleBold",{enumerable:true,get:function(){return i.texOldstyleBold}})},74878:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texOldstyle=void 0;var i=e(41855);Object.defineProperty(t,"texOldstyle",{enumerable:true,get:function(){return i.texOldstyle}})},99652:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texSize3=void 0;var i=e(92952);var f=e(75431);t.texSize3=(0,i.AddCSS)(f.texSize3,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},39729:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texSize4=void 0;var i=e(92952);var f=e(98278);t.texSize4=(0,i.AddCSS)(f.texSize4,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},12296:{c:"\\27E8"},12297:{c:"\\27E9"},57685:{c:"\\E153\\E152"},57686:{c:"\\E151\\E150"}})},82599:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texVariant=void 0;var i=e(92952);var f=e(90456);t.texVariant=(0,i.AddCSS)(f.texVariant,{1008:{c:"\\E009"},8463:{f:""},8740:{c:"\\E006"},8742:{c:"\\E007"},8808:{c:"\\E00C"},8809:{c:"\\E00D"},8816:{c:"\\E011"},8817:{c:"\\E00E"},8840:{c:"\\E016"},8841:{c:"\\E018"},8842:{c:"\\E01A"},8843:{c:"\\E01B"},10887:{c:"\\E010"},10888:{c:"\\E00F"},10955:{c:"\\E017"},10956:{c:"\\E019"}})},30861:function(c,t,e){var i=this&&this.__assign||function(){i=Object.assign||function(c){for(var t,e=1,i=arguments.length;e0)&&!(f=i.next()).done)r.push(f.value)}catch(a){s={error:a}}finally{try{if(f&&!f.done&&(e=i["return"]))e.call(i)}finally{if(s)throw s.error}}return r};var r=this&&this.__spreadArray||function(c,t,e){if(e||arguments.length===2)for(var i=0,f=t.length,r;i=c.length)c=void 0;return{value:c&&c[i++],done:!c}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.FontData=t.NOSTRETCH=t.H=t.V=void 0;var a=e(34981);t.V=1;t.H=2;t.NOSTRETCH={dir:0};var o=function(){function c(c){var t,e,o,n;if(c===void 0){c=null}this.variant={};this.delimiters={};this.cssFontMap={};this.remapChars={};this.skewIcFactor=.75;var l=this.constructor;this.options=(0,a.userOptions)((0,a.defaultOptions)({},l.OPTIONS),c);this.params=i({},l.defaultParams);this.sizeVariants=r([],f(l.defaultSizeVariants),false);this.stretchVariants=r([],f(l.defaultStretchVariants),false);this.cssFontMap=i({},l.defaultCssFonts);try{for(var d=s(Object.keys(this.cssFontMap)),S=d.next();!S.done;S=d.next()){var u=S.value;if(this.cssFontMap[u][0]==="unknown"){this.cssFontMap[u][0]=this.options.unknownFamily}}}catch(v){t={error:v}}finally{try{if(S&&!S.done&&(e=d.return))e.call(d)}finally{if(t)throw t.error}}this.cssFamilyPrefix=l.defaultCssFamilyPrefix;this.createVariants(l.defaultVariants);this.defineDelimiters(l.defaultDelimiters);try{for(var h=s(Object.keys(l.defaultChars)),p=h.next();!p.done;p=h.next()){var B=p.value;this.defineChars(B,l.defaultChars[B])}}catch(m){o={error:m}}finally{try{if(p&&!p.done&&(n=h.return))n.call(h)}finally{if(o)throw o.error}}this.defineRemap("accent",l.defaultAccentMap);this.defineRemap("mo",l.defaultMoMap);this.defineRemap("mn",l.defaultMnMap)}c.charOptions=function(c,t){var e=c[t];if(e.length===3){e[3]={}}return e[3]};Object.defineProperty(c.prototype,"styles",{get:function(){return this._styles},set:function(c){this._styles=c},enumerable:false,configurable:true});c.prototype.createVariant=function(c,t,e){if(t===void 0){t=null}if(e===void 0){e=null}var i={linked:[],chars:t?Object.create(this.variant[t].chars):{}};if(e&&this.variant[e]){Object.assign(i.chars,this.variant[e].chars);this.variant[e].linked.push(i.chars);i.chars=Object.create(i.chars)}this.remapSmpChars(i.chars,c);this.variant[c]=i};c.prototype.remapSmpChars=function(c,t){var e,i,r,a;var o=this.constructor;if(o.VariantSmp[t]){var n=o.SmpRemap;var l=[null,null,o.SmpRemapGreekU,o.SmpRemapGreekL];try{for(var d=s(o.SmpRanges),S=d.next();!S.done;S=d.next()){var u=f(S.value,3),h=u[0],p=u[1],B=u[2];var v=o.VariantSmp[t][h];if(!v)continue;for(var m=p;m<=B;m++){if(m===930)continue;var k=v+m-p;c[m]=this.smpChar(n[k]||k)}if(l[h]){try{for(var y=(r=void 0,s(Object.keys(l[h]).map((function(c){return parseInt(c)})))),I=y.next();!I.done;I=y.next()){var m=I.value;c[m]=this.smpChar(v+l[h][m])}}catch(A){r={error:A}}finally{try{if(I&&!I.done&&(a=y.return))a.call(y)}finally{if(r)throw r.error}}}}}catch(b){e={error:b}}finally{try{if(S&&!S.done&&(i=d.return))i.call(d)}finally{if(e)throw e.error}}}if(t==="bold"){c[988]=this.smpChar(120778);c[989]=this.smpChar(120779)}};c.prototype.smpChar=function(c){return[,,,{smp:c}]};c.prototype.createVariants=function(c){var t,e;try{for(var i=s(c),f=i.next();!f.done;f=i.next()){var r=f.value;this.createVariant(r[0],r[1],r[2])}}catch(a){t={error:a}}finally{try{if(f&&!f.done&&(e=i.return))e.call(i)}finally{if(t)throw t.error}}};c.prototype.defineChars=function(c,t){var e,i;var f=this.variant[c];Object.assign(f.chars,t);try{for(var r=s(f.linked),a=r.next();!a.done;a=r.next()){var o=a.value;Object.assign(o,t)}}catch(n){e={error:n}}finally{try{if(a&&!a.done&&(i=r.return))i.call(r)}finally{if(e)throw e.error}}};c.prototype.defineDelimiters=function(c){Object.assign(this.delimiters,c)};c.prototype.defineRemap=function(c,t){if(!this.remapChars.hasOwnProperty(c)){this.remapChars[c]={}}Object.assign(this.remapChars[c],t)};c.prototype.getDelimiter=function(c){return this.delimiters[c]};c.prototype.getSizeVariant=function(c,t){if(this.delimiters[c].variants){t=this.delimiters[c].variants[t]}return this.sizeVariants[t]};c.prototype.getStretchVariant=function(c,t){return this.stretchVariants[this.delimiters[c].stretchv?this.delimiters[c].stretchv[t]:0]};c.prototype.getChar=function(c,t){return this.variant[c].chars[t]};c.prototype.getVariant=function(c){return this.variant[c]};c.prototype.getCssFont=function(c){return this.cssFontMap[c]||["serif",false,false]};c.prototype.getFamily=function(c){return this.cssFamilyPrefix?this.cssFamilyPrefix+", "+c:c};c.prototype.getRemappedChar=function(c,t){var e=this.remapChars[c]||{};return e[t]};c.OPTIONS={unknownFamily:"serif"};c.JAX="common";c.NAME="";c.defaultVariants=[["normal"],["bold","normal"],["italic","normal"],["bold-italic","italic","bold"],["double-struck","bold"],["fraktur","normal"],["bold-fraktur","bold","fraktur"],["script","italic"],["bold-script","bold-italic","script"],["sans-serif","normal"],["bold-sans-serif","bold","sans-serif"],["sans-serif-italic","italic","sans-serif"],["sans-serif-bold-italic","bold-italic","bold-sans-serif"],["monospace","normal"]];c.defaultCssFonts={normal:["unknown",false,false],bold:["unknown",false,true],italic:["unknown",true,false],"bold-italic":["unknown",true,true],"double-struck":["unknown",false,true],fraktur:["unknown",false,false],"bold-fraktur":["unknown",false,true],script:["cursive",false,false],"bold-script":["cursive",false,true],"sans-serif":["sans-serif",false,false],"bold-sans-serif":["sans-serif",false,true],"sans-serif-italic":["sans-serif",true,false],"sans-serif-bold-italic":["sans-serif",true,true],monospace:["monospace",false,false]};c.defaultCssFamilyPrefix="";c.VariantSmp={bold:[119808,119834,120488,120514,120782],italic:[119860,119886,120546,120572],"bold-italic":[119912,119938,120604,120630],script:[119964,119990],"bold-script":[120016,120042],fraktur:[120068,120094],"double-struck":[120120,120146,,,120792],"bold-fraktur":[120172,120198],"sans-serif":[120224,120250,,,120802],"bold-sans-serif":[120276,120302,120662,120688,120812],"sans-serif-italic":[120328,120354],"sans-serif-bold-italic":[120380,120406,120720,120746],monospace:[120432,120458,,,120822]};c.SmpRanges=[[0,65,90],[1,97,122],[2,913,937],[3,945,969],[4,48,57]];c.SmpRemap={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484};c.SmpRemapGreekU={8711:25,1012:17};c.SmpRemapGreekL={977:27,981:29,982:31,1008:28,1009:30,1013:26,8706:25};c.defaultAccentMap={768:"ˋ",769:"ˊ",770:"ˆ",771:"˜",772:"ˉ",774:"˘",775:"˙",776:"¨",778:"˚",780:"ˇ",8594:"⃗",8242:"'",8243:"''",8244:"'''",8245:"`",8246:"``",8247:"```",8279:"''''",8400:"↼",8401:"⇀",8406:"←",8417:"↔",8432:"*",8411:"...",8412:"....",8428:"⇁",8429:"↽",8430:"←",8431:"→"};c.defaultMoMap={45:"−"};c.defaultMnMap={45:"−"};c.defaultParams={x_height:.442,quad:1,num1:.676,num2:.394,num3:.444,denom1:.686,denom2:.345,sup1:.413,sup2:.363,sup3:.289,sub1:.15,sub2:.247,sup_drop:.386,sub_drop:.05,delim1:2.39,delim2:1,axis_height:.25,rule_thickness:.06,big_op_spacing1:.111,big_op_spacing2:.167,big_op_spacing3:.2,big_op_spacing4:.6,big_op_spacing5:.1,surd_height:.075,scriptspace:.05,nulldelimiterspace:.12,delimiterfactor:901,delimitershortfall:.3,min_rule_thickness:1.25,separation_factor:1.75,extra_ic:.033};c.defaultDelimiters={};c.defaultChars={};c.defaultSizeVariants=[];c.defaultStretchVariants=[];return c}();t.FontData=o},6382:function(c,t){var e=this&&this.__extends||function(){var c=function(t,e){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,t){c.__proto__=t}||function(c,t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))c[e]=t[e]};return c(t,e)};return function(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();var i=this&&this.__assign||function(){i=Object.assign||function(c){for(var t,e=1,i=arguments.length;e0)&&!(f=i.next()).done)r.push(f.value)}catch(a){s={error:a}}finally{try{if(f&&!f.done&&(e=i["return"]))e.call(i)}finally{if(s)throw s.error}}return r};var r=this&&this.__spreadArray||function(c,t,e){if(e||arguments.length===2)for(var i=0,f=t.length,r;i{Object.defineProperty(t,"__esModule",{value:true});t.boldItalic=void 0;t.boldItalic={47:[.711,.21,.894],305:[.452,.008,.394,{sk:.0319}],567:[.451,.201,.439,{sk:.0958}],8260:[.711,.21,.894],8710:[.711,0,.958,{sk:.192}],10744:[.711,.21,.894]}},95746:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.bold=void 0;t.bold={33:[.705,0,.35],34:[.694,-.329,.603],35:[.694,.193,.958],36:[.75,.056,.575],37:[.75,.056,.958],38:[.705,.011,.894],39:[.694,-.329,.319],40:[.75,.249,.447],41:[.75,.249,.447],42:[.75,-.306,.575],43:[.633,.131,.894],44:[.171,.194,.319],45:[.278,-.166,.383],46:[.171,0,.319],47:[.75,.25,.575],58:[.444,0,.319],59:[.444,.194,.319],60:[.587,.085,.894],61:[.393,-.109,.894],62:[.587,.085,.894],63:[.7,0,.543],64:[.699,.006,.894],91:[.75,.25,.319],92:[.75,.25,.575],93:[.75,.25,.319],94:[.694,-.52,.575],95:[-.01,.061,.575],96:[.706,-.503,.575],123:[.75,.25,.575],124:[.75,.249,.319],125:[.75,.25,.575],126:[.344,-.202,.575],168:[.695,-.535,.575],172:[.371,-.061,.767],175:[.607,-.54,.575],176:[.702,-.536,.575],177:[.728,.035,.894],180:[.706,-.503,.575],183:[.336,-.166,.319],215:[.53,.028,.894],247:[.597,.096,.894],305:[.442,0,.278,{sk:.0278}],567:[.442,.205,.306,{sk:.0833}],697:[.563,-.033,.344],710:[.694,-.52,.575],711:[.66,-.515,.575],713:[.607,-.54,.575],714:[.706,-.503,.575],715:[.706,-.503,.575],728:[.694,-.5,.575],729:[.695,-.525,.575],730:[.702,-.536,.575],732:[.694,-.552,.575],768:[.706,-.503,0],769:[.706,-.503,0],770:[.694,-.52,0],771:[.694,-.552,0],772:[.607,-.54,0],774:[.694,-.5,0],775:[.695,-.525,0],776:[.695,-.535,0],778:[.702,-.536,0],779:[.714,-.511,0],780:[.66,-.515,0],824:[.711,.21,0],8194:[0,0,.5],8195:[0,0,.999],8196:[0,0,.333],8197:[0,0,.25],8198:[0,0,.167],8201:[0,0,.167],8202:[0,0,.083],8211:[.3,-.249,.575],8212:[.3,-.249,1.15],8213:[.3,-.249,1.15],8214:[.75,.248,.575],8215:[-.01,.061,.575],8216:[.694,-.329,.319],8217:[.694,-.329,.319],8220:[.694,-.329,.603],8221:[.694,-.329,.603],8224:[.702,.211,.511],8225:[.702,.202,.511],8226:[.474,-.028,.575],8230:[.171,0,1.295],8242:[.563,-.033,.344],8243:[.563,0,.688],8244:[.563,0,1.032],8254:[.607,-.54,.575],8260:[.75,.25,.575],8279:[.563,0,1.376],8407:[.723,-.513,.575],8463:[.694,.008,.668,{sk:-.0319}],8467:[.702,.019,.474,{sk:.128}],8472:[.461,.21,.74],8501:[.694,0,.703],8592:[.518,.017,1.15],8593:[.694,.193,.575],8594:[.518,.017,1.15],8595:[.694,.194,.575],8596:[.518,.017,1.15],8597:[.767,.267,.575],8598:[.724,.194,1.15],8599:[.724,.193,1.15],8600:[.694,.224,1.15],8601:[.694,.224,1.15],8602:[.711,.21,1.15],8603:[.711,.21,1.15],8614:[.518,.017,1.15],8617:[.518,.017,1.282],8618:[.518,.017,1.282],8622:[.711,.21,1.15],8636:[.518,-.22,1.15],8637:[.281,.017,1.15],8640:[.518,-.22,1.15],8641:[.281,.017,1.15],8652:[.718,.017,1.15],8653:[.711,.21,1.15],8654:[.711,.21,1.15],8655:[.711,.21,1.15],8656:[.547,.046,1.15],8657:[.694,.193,.703],8658:[.547,.046,1.15],8659:[.694,.194,.703],8660:[.547,.046,1.15],8661:[.767,.267,.703],8704:[.694,.016,.639],8707:[.694,0,.639],8708:[.711,.21,.639],8709:[.767,.073,.575],8710:[.698,0,.958],8712:[.587,.086,.767],8713:[.711,.21,.767],8715:[.587,.086,.767],8716:[.711,.21,.767],8722:[.281,-.221,.894],8723:[.537,.227,.894],8725:[.75,.25,.575],8726:[.75,.25,.575],8727:[.472,-.028,.575],8728:[.474,-.028,.575],8729:[.474,-.028,.575],8730:[.82,.18,.958,{ic:.03}],8733:[.451,.008,.894],8734:[.452,.008,1.15],8736:[.714,0,.722],8739:[.75,.249,.319],8740:[.75,.249,.319],8741:[.75,.248,.575],8742:[.75,.248,.575],8743:[.604,.017,.767],8744:[.604,.016,.767],8745:[.603,.016,.767],8746:[.604,.016,.767],8747:[.711,.211,.569,{ic:.063}],8764:[.391,-.109,.894],8768:[.583,.082,.319],8769:[.711,.21,.894],8771:[.502,0,.894],8772:[.711,.21,.894],8773:[.638,.027,.894],8775:[.711,.21,.894],8776:[.524,-.032,.894],8777:[.711,.21,.894],8781:[.533,.032,.894],8784:[.721,-.109,.894],8800:[.711,.21,.894],8801:[.505,0,.894],8802:[.711,.21,.894],8804:[.697,.199,.894],8805:[.697,.199,.894],8810:[.617,.116,1.15],8811:[.618,.116,1.15],8813:[.711,.21,.894],8814:[.711,.21,.894],8815:[.711,.21,.894],8816:[.711,.21,.894],8817:[.711,.21,.894],8826:[.585,.086,.894],8827:[.586,.086,.894],8832:[.711,.21,.894],8833:[.711,.21,.894],8834:[.587,.085,.894],8835:[.587,.086,.894],8836:[.711,.21,.894],8837:[.711,.21,.894],8838:[.697,.199,.894],8839:[.697,.199,.894],8840:[.711,.21,.894],8841:[.711,.21,.894],8846:[.604,.016,.767],8849:[.697,.199,.894],8850:[.697,.199,.894],8851:[.604,0,.767],8852:[.604,0,.767],8853:[.632,.132,.894],8854:[.632,.132,.894],8855:[.632,.132,.894],8856:[.632,.132,.894],8857:[.632,.132,.894],8866:[.693,0,.703],8867:[.693,0,.703],8868:[.694,0,.894],8869:[.693,0,.894],8872:[.75,.249,.974],8876:[.711,.21,.703],8877:[.75,.249,.974],8900:[.523,.021,.575],8901:[.336,-.166,.319],8902:[.502,0,.575],8904:[.54,.039,1],8930:[.711,.21,.894],8931:[.711,.21,.894],8942:[.951,.029,.319],8943:[.336,-.166,1.295],8945:[.871,-.101,1.323],8968:[.75,.248,.511],8969:[.75,.248,.511],8970:[.749,.248,.511],8971:[.749,.248,.511],8994:[.405,-.108,1.15],8995:[.392,-.126,1.15],9001:[.75,.249,.447],9002:[.75,.249,.447],9651:[.711,0,1.022],9653:[.711,0,1.022],9657:[.54,.039,.575],9661:[.5,.21,1.022],9663:[.5,.21,1.022],9667:[.539,.038,.575],9711:[.711,.211,1.15],9824:[.719,.129,.894],9825:[.711,.024,.894],9826:[.719,.154,.894],9827:[.719,.129,.894],9837:[.75,.017,.447],9838:[.741,.223,.447],9839:[.724,.224,.447],10072:[.75,.249,.319],10216:[.75,.249,.447],10217:[.75,.249,.447],10229:[.518,.017,1.805],10230:[.518,.017,1.833],10231:[.518,.017,2.126],10232:[.547,.046,1.868],10233:[.547,.046,1.87],10234:[.547,.046,2.126],10236:[.518,.017,1.833],10744:[.711,.21,.894],10799:[.53,.028,.894],10815:[.686,0,.9],10927:[.696,.199,.894],10928:[.697,.199,.894],12296:[.75,.249,.447],12297:[.75,.249,.447]}},6987:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.delimiters=t.VSIZES=t.HDW3=t.HDW2=t.HDW1=void 0;var i=e(30861);t.HDW1=[.75,.25,.875];t.HDW2=[.85,.349,.667];t.HDW3=[.583,.082,.5];t.VSIZES=[1,1.2,1.8,2.4,3];var f={c:47,dir:i.V,sizes:t.VSIZES};var r={c:175,dir:i.H,sizes:[.5],stretch:[0,175],HDW:[.59,-.544,.5]};var s={c:710,dir:i.H,sizes:[.5,.556,1,1.444,1.889]};var a={c:732,dir:i.H,sizes:[.5,.556,1,1.444,1.889]};var o={c:8211,dir:i.H,sizes:[.5],stretch:[0,8211],HDW:[.285,-.248,.5]};var n={c:8592,dir:i.H,sizes:[1],stretch:[8592,8722],HDW:t.HDW3};var l={c:8594,dir:i.H,sizes:[1],stretch:[0,8722,8594],HDW:t.HDW3};var d={c:8596,dir:i.H,sizes:[1],stretch:[8592,8722,8594],HDW:t.HDW3};var S={c:8612,dir:i.H,stretch:[8592,8722,8739],HDW:t.HDW3,min:1.278};var u={c:8614,dir:i.H,sizes:[1],stretch:[8739,8722,8594],HDW:t.HDW3};var h={c:8656,dir:i.H,sizes:[1],stretch:[8656,61],HDW:t.HDW3};var p={c:8658,dir:i.H,sizes:[1],stretch:[0,61,8658],HDW:t.HDW3};var B={c:8660,dir:i.H,sizes:[1],stretch:[8656,61,8658],HDW:t.HDW3};var v={c:8722,dir:i.H,sizes:[.778],stretch:[0,8722],HDW:t.HDW3};var m={c:8739,dir:i.V,sizes:[1],stretch:[0,8739],HDW:[.627,.015,.333]};var k={c:9180,dir:i.H,sizes:[.778,1],schar:[8994,8994],variants:[5,0],stretch:[57680,57684,57681],HDW:[.32,.2,.5]};var y={c:9181,dir:i.H,sizes:[.778,1],schar:[8995,8995],variants:[5,0],stretch:[57682,57684,57683],HDW:[.32,.2,.5]};var I={c:9182,dir:i.H,stretch:[57680,57684,57681,57685],HDW:[.32,.2,.5],min:1.8};var A={c:9183,dir:i.H,stretch:[57682,57684,57683,57686],HDW:[.32,.2,.5],min:1.8};var b={c:10216,dir:i.V,sizes:t.VSIZES};var x={c:10217,dir:i.V,sizes:t.VSIZES};var M={c:10502,dir:i.H,stretch:[8656,61,8739],HDW:t.HDW3,min:1.278};var _={c:10503,dir:i.H,stretch:[8872,61,8658],HDW:t.HDW3,min:1.278};t.delimiters={40:{dir:i.V,sizes:t.VSIZES,stretch:[9115,9116,9117],HDW:[.85,.349,.875]},41:{dir:i.V,sizes:t.VSIZES,stretch:[9118,9119,9120],HDW:[.85,.349,.875]},45:v,47:f,61:{dir:i.H,sizes:[.778],stretch:[0,61],HDW:t.HDW3},91:{dir:i.V,sizes:t.VSIZES,stretch:[9121,9122,9123],HDW:t.HDW2},92:{dir:i.V,sizes:t.VSIZES},93:{dir:i.V,sizes:t.VSIZES,stretch:[9124,9125,9126],HDW:t.HDW2},94:s,95:o,123:{dir:i.V,sizes:t.VSIZES,stretch:[9127,9130,9129,9128],HDW:[.85,.349,.889]},124:{dir:i.V,sizes:[1],stretch:[0,8739],HDW:[.75,.25,.333]},125:{dir:i.V,sizes:t.VSIZES,stretch:[9131,9130,9133,9132],HDW:[.85,.349,.889]},126:a,175:r,710:s,713:r,732:a,770:s,771:a,818:o,8211:o,8212:o,8213:o,8214:{dir:i.V,sizes:[.602,1],schar:[0,8741],variants:[1,0],stretch:[0,8741],HDW:[.602,0,.556]},8215:o,8254:r,8407:l,8592:n,8593:{dir:i.V,sizes:[.888],stretch:[8593,9168],HDW:[.6,0,.667]},8594:l,8595:{dir:i.V,sizes:[.888],stretch:[0,9168,8595],HDW:[.6,0,.667]},8596:d,8597:{dir:i.V,sizes:[1.044],stretch:[8593,9168,8595],HDW:t.HDW1},8606:{dir:i.H,sizes:[1],stretch:[8606,8722],HDW:t.HDW3},8608:{dir:i.H,sizes:[1],stretch:[0,8722,8608],HDW:t.HDW3},8612:S,8613:{dir:i.V,stretch:[8593,9168,8869],HDW:t.HDW1,min:1.555},8614:u,8615:{dir:i.V,stretch:[8868,9168,8595],HDW:t.HDW1,min:1.555},8624:{dir:i.V,sizes:[.722],stretch:[8624,9168],HDW:t.HDW1},8625:{dir:i.V,sizes:[.722],stretch:[8625,9168],HDW:t.HDW1},8636:{dir:i.H,sizes:[1],stretch:[8636,8722],HDW:t.HDW3},8637:{dir:i.H,sizes:[1],stretch:[8637,8722],HDW:t.HDW3},8638:{dir:i.V,sizes:[.888],stretch:[8638,9168],HDW:t.HDW1},8639:{dir:i.V,sizes:[.888],stretch:[8639,9168],HDW:t.HDW1},8640:{dir:i.H,sizes:[1],stretch:[0,8722,8640],HDW:t.HDW3},8641:{dir:i.H,sizes:[1],stretch:[0,8722,8641],HDW:t.HDW3},8642:{dir:i.V,sizes:[.888],stretch:[0,9168,8642],HDW:t.HDW1},8643:{dir:i.V,sizes:[.888],stretch:[0,9168,8643],HDW:t.HDW1},8656:h,8657:{dir:i.V,sizes:[.888],stretch:[8657,8214],HDW:[.599,0,.778]},8658:p,8659:{dir:i.V,sizes:[.888],stretch:[0,8214,8659],HDW:[.6,0,.778]},8660:B,8661:{dir:i.V,sizes:[1.044],stretch:[8657,8214,8659],HDW:[.75,.25,.778]},8666:{dir:i.H,sizes:[1],stretch:[8666,8801],HDW:[.464,-.036,.5]},8667:{dir:i.H,sizes:[1],stretch:[0,8801,8667],HDW:[.464,-.036,.5]},8722:v,8725:f,8730:{dir:i.V,sizes:t.VSIZES,stretch:[57345,57344,9143],fullExt:[.65,2.3],HDW:[.85,.35,1.056]},8739:m,8741:{dir:i.V,sizes:[1],stretch:[0,8741],HDW:[.627,.015,.556]},8968:{dir:i.V,sizes:t.VSIZES,stretch:[9121,9122],HDW:t.HDW2},8969:{dir:i.V,sizes:t.VSIZES,stretch:[9124,9125],HDW:t.HDW2},8970:{dir:i.V,sizes:t.VSIZES,stretch:[0,9122,9123],HDW:t.HDW2},8971:{dir:i.V,sizes:t.VSIZES,stretch:[0,9125,9126],HDW:t.HDW2},8978:k,8994:k,8995:y,9001:b,9002:x,9130:{dir:i.V,sizes:[.32],stretch:[9130,9130,9130],HDW:[.29,.015,.889]},9135:o,9136:{dir:i.V,sizes:[.989],stretch:[9127,9130,9133],HDW:[.75,.25,.889]},9137:{dir:i.V,sizes:[.989],stretch:[9131,9130,9129],HDW:[.75,.25,.889]},9140:{dir:i.H,stretch:[9484,8722,9488],HDW:t.HDW3,min:1},9141:{dir:i.H,stretch:[9492,8722,9496],HDW:t.HDW3,min:1},9168:{dir:i.V,sizes:[.602,1],schar:[0,8739],variants:[1,0],stretch:[0,8739],HDW:[.602,0,.333]},9180:k,9181:y,9182:I,9183:A,9184:{dir:i.H,stretch:[714,713,715],HDW:[.59,-.544,.5],min:1},9185:{dir:i.H,stretch:[715,713,714],HDW:[.59,-.544,.5],min:1},9472:o,10072:m,10216:b,10217:x,10222:{dir:i.V,sizes:[.989],stretch:[9127,9130,9129],HDW:[.75,.25,.889]},10223:{dir:i.V,sizes:[.989],stretch:[9131,9130,9133],HDW:[.75,.25,.889]},10229:n,10230:l,10231:d,10232:h,10233:p,10234:B,10235:S,10236:u,10237:M,10238:_,10502:M,10503:_,10574:{dir:i.H,stretch:[8636,8722,8640],HDW:t.HDW3,min:2},10575:{dir:i.V,stretch:[8638,9168,8642],HDW:t.HDW1,min:1.776},10576:{dir:i.H,stretch:[8637,8722,8641],HDW:t.HDW3,min:2},10577:{dir:i.V,stretch:[8639,9168,8643],HDW:t.HDW1,min:.5},10586:{dir:i.H,stretch:[8636,8722,8739],HDW:t.HDW3,min:1.278},10587:{dir:i.H,stretch:[8739,8722,8640],HDW:t.HDW3,min:1.278},10588:{dir:i.V,stretch:[8638,9168,8869],HDW:t.HDW1,min:1.556},10589:{dir:i.V,stretch:[8868,9168,8642],HDW:t.HDW1,min:1.556},10590:{dir:i.H,stretch:[8637,8722,8739],HDW:t.HDW3,min:1.278},10591:{dir:i.H,stretch:[8739,8722,8641],HDW:t.HDW3,min:1.278},10592:{dir:i.V,stretch:[8639,9168,8869],HDW:t.HDW1,min:1.776},10593:{dir:i.V,stretch:[8868,9168,8643],HDW:t.HDW1,min:1.776},12296:b,12297:x,65079:I,65080:A}},32249:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.doubleStruck=void 0;t.doubleStruck={}},45600:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.frakturBold=void 0;t.frakturBold={33:[.689,.012,.349],34:[.695,-.432,.254],38:[.696,.016,.871],39:[.695,-.436,.25],40:[.737,.186,.459],41:[.735,.187,.459],42:[.692,-.449,.328],43:[.598,.082,.893],44:[.107,.191,.328],45:[.275,-.236,.893],46:[.102,.015,.328],47:[.721,.182,.593],48:[.501,.012,.593],49:[.489,0,.593],50:[.491,0,.593],51:[.487,.193,.593],52:[.495,.196,.593],53:[.481,.19,.593],54:[.704,.012,.593],55:[.479,.197,.593],56:[.714,.005,.593],57:[.487,.195,.593],58:[.457,.012,.255],59:[.458,.19,.255],61:[.343,-.168,.582],63:[.697,.014,.428],91:[.74,.13,.257],93:[.738,.132,.257],94:[.734,-.452,.59],8216:[.708,-.411,.254],8217:[.692,-.394,.254],8260:[.721,.182,.593],58113:[.63,.027,.587],58114:[.693,.212,.394,{ic:.014}],58115:[.681,.219,.387],58116:[.473,.212,.593],58117:[.684,.027,.393],58120:[.679,.22,.981],58121:[.717,.137,.727]}},59534:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.fraktur=void 0;t.fraktur={33:[.689,.012,.296],34:[.695,-.432,.215],38:[.698,.011,.738],39:[.695,-.436,.212],40:[.737,.186,.389],41:[.735,.187,.389],42:[.692,-.449,.278],43:[.598,.082,.756],44:[.107,.191,.278],45:[.275,-.236,.756],46:[.102,.015,.278],47:[.721,.182,.502],48:[.492,.013,.502],49:[.468,0,.502],50:[.474,0,.502],51:[.473,.182,.502],52:[.476,.191,.502],53:[.458,.184,.502],54:[.7,.013,.502],55:[.468,.181,.502],56:[.705,.01,.502],57:[.469,.182,.502],58:[.457,.012,.216],59:[.458,.189,.216],61:[.368,-.132,.756],63:[.693,.011,.362],91:[.74,.13,.278],93:[.738,.131,.278],94:[.734,-.452,.5],8216:[.708,-.41,.215],8217:[.692,-.395,.215],8260:[.721,.182,.502],58112:[.683,.032,.497],58113:[.616,.03,.498],58114:[.68,.215,.333],58115:[.679,.224,.329],58116:[.471,.214,.503],58117:[.686,.02,.333],58118:[.577,.021,.334,{ic:.013}],58119:[.475,.022,.501,{ic:.013}]}},14141:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.italic=void 0;t.italic={33:[.716,0,.307,{ic:.073}],34:[.694,-.379,.514,{ic:.024}],35:[.694,.194,.818,{ic:.01}],37:[.75,.056,.818,{ic:.029}],38:[.716,.022,.767,{ic:.035}],39:[.694,-.379,.307,{ic:.07}],40:[.75,.25,.409,{ic:.108}],41:[.75,.25,.409],42:[.75,-.32,.511,{ic:.073}],43:[.557,.057,.767],44:[.121,.194,.307],45:[.251,-.18,.358],46:[.121,0,.307],47:[.716,.215,.778],48:[.665,.021,.511,{ic:.051}],49:[.666,0,.511],50:[.666,.022,.511,{ic:.04}],51:[.666,.022,.511,{ic:.051}],52:[.666,.194,.511],53:[.666,.022,.511,{ic:.056}],54:[.665,.022,.511,{ic:.054}],55:[.666,.022,.511,{ic:.123}],56:[.666,.021,.511,{ic:.042}],57:[.666,.022,.511,{ic:.042}],58:[.431,0,.307],59:[.431,.194,.307],61:[.367,-.133,.767],63:[.716,0,.511,{ic:.04}],64:[.705,.011,.767,{ic:.022}],91:[.75,.25,.307,{ic:.139}],93:[.75,.25,.307,{ic:.052}],94:[.694,-.527,.511,{ic:.017}],95:[-.025,.062,.511,{ic:.043}],126:[.318,-.208,.511,{ic:.06}],305:[.441,.01,.307,{ic:.033}],567:[.442,.204,.332],768:[.697,-.5,0],769:[.697,-.5,0,{ic:.039}],770:[.694,-.527,0,{ic:.017}],771:[.668,-.558,0,{ic:.06}],772:[.589,-.544,0,{ic:.054}],774:[.694,-.515,0,{ic:.062}],775:[.669,-.548,0],776:[.669,-.554,0,{ic:.045}],778:[.716,-.542,0],779:[.697,-.503,0,{ic:.065}],780:[.638,-.502,0,{ic:.029}],989:[.605,.085,.778],8211:[.285,-.248,.511,{ic:.043}],8212:[.285,-.248,1.022,{ic:.016}],8213:[.285,-.248,1.022,{ic:.016}],8215:[-.025,.062,.511,{ic:.043}],8216:[.694,-.379,.307,{ic:.055}],8217:[.694,-.379,.307,{ic:.07}],8220:[.694,-.379,.514,{ic:.092}],8221:[.694,-.379,.514,{ic:.024}],8260:[.716,.215,.778],8463:[.695,.013,.54,{ic:.022}],8710:[.716,0,.833,{sk:.167}],10744:[.716,.215,.778]}},63969:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.largeop=void 0;t.largeop={40:[1.15,.649,.597],41:[1.15,.649,.597],47:[1.15,.649,.811],91:[1.15,.649,.472],92:[1.15,.649,.811],93:[1.15,.649,.472],123:[1.15,.649,.667],125:[1.15,.649,.667],710:[.772,-.565,1],732:[.75,-.611,1],770:[.772,-.565,0],771:[.75,-.611,0],8214:[.602,0,.778],8260:[1.15,.649,.811],8593:[.6,0,.667],8595:[.6,0,.667],8657:[.599,0,.778],8659:[.6,0,.778],8719:[.95,.45,1.278],8720:[.95,.45,1.278],8721:[.95,.45,1.444],8730:[1.15,.65,1,{ic:.02}],8739:[.627,.015,.333],8741:[.627,.015,.556],8747:[1.36,.862,.556,{ic:.388}],8748:[1.36,.862,1.084,{ic:.388}],8749:[1.36,.862,1.592,{ic:.388}],8750:[1.36,.862,.556,{ic:.388}],8896:[.95,.45,1.111],8897:[.95,.45,1.111],8898:[.949,.45,1.111],8899:[.95,.449,1.111],8968:[1.15,.649,.528],8969:[1.15,.649,.528],8970:[1.15,.649,.528],8971:[1.15,.649,.528],9001:[1.15,.649,.611],9002:[1.15,.649,.611],9168:[.602,0,.667],10072:[.627,.015,.333],10216:[1.15,.649,.611],10217:[1.15,.649,.611],10752:[.949,.449,1.511],10753:[.949,.449,1.511],10754:[.949,.449,1.511],10756:[.95,.449,1.111],10758:[.95,.45,1.111],10764:[1.36,.862,2.168,{ic:.388}],12296:[1.15,.649,.611],12297:[1.15,.649,.611]}},58626:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.monospace=void 0;t.monospace={32:[0,0,.525],33:[.622,0,.525],34:[.623,-.333,.525],35:[.611,0,.525],36:[.694,.082,.525],37:[.694,.083,.525],38:[.622,.011,.525],39:[.611,-.287,.525],40:[.694,.082,.525],41:[.694,.082,.525],42:[.52,-.09,.525],43:[.531,-.081,.525],44:[.14,.139,.525],45:[.341,-.271,.525],46:[.14,0,.525],47:[.694,.083,.525],58:[.431,0,.525],59:[.431,.139,.525],60:[.557,-.055,.525],61:[.417,-.195,.525],62:[.557,-.055,.525],63:[.617,0,.525],64:[.617,.006,.525],91:[.694,.082,.525],92:[.694,.083,.525],93:[.694,.082,.525],94:[.611,-.46,.525],95:[-.025,.095,.525],96:[.681,-.357,.525],123:[.694,.083,.525],124:[.694,.082,.525],125:[.694,.083,.525],126:[.611,-.466,.525],127:[.612,-.519,.525],160:[0,0,.525],305:[.431,0,.525],567:[.431,.228,.525],697:[.623,-.334,.525],768:[.611,-.485,0],769:[.611,-.485,0],770:[.611,-.46,0],771:[.611,-.466,0],772:[.577,-.5,0],774:[.611,-.504,0],776:[.612,-.519,0],778:[.619,-.499,0],780:[.577,-.449,0],913:[.623,0,.525],914:[.611,0,.525],915:[.611,0,.525],916:[.623,0,.525],917:[.611,0,.525],918:[.611,0,.525],919:[.611,0,.525],920:[.621,.01,.525],921:[.611,0,.525],922:[.611,0,.525],923:[.623,0,.525],924:[.611,0,.525],925:[.611,0,.525],926:[.611,0,.525],927:[.621,.01,.525],928:[.611,0,.525],929:[.611,0,.525],931:[.611,0,.525],932:[.611,0,.525],933:[.622,0,.525],934:[.611,0,.525],935:[.611,0,.525],936:[.611,0,.525],937:[.622,0,.525],8215:[-.025,.095,.525],8242:[.623,-.334,.525],8243:[.623,0,1.05],8244:[.623,0,1.575],8260:[.694,.083,.525],8279:[.623,0,2.1],8710:[.623,0,.525]}},25190:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.normal=void 0;t.normal={32:[0,0,.25],33:[.716,0,.278],34:[.694,-.379,.5],35:[.694,.194,.833],36:[.75,.056,.5],37:[.75,.056,.833],38:[.716,.022,.778],39:[.694,-.379,.278],40:[.75,.25,.389],41:[.75,.25,.389],42:[.75,-.32,.5],43:[.583,.082,.778],44:[.121,.194,.278],45:[.252,-.179,.333],46:[.12,0,.278],47:[.75,.25,.5],48:[.666,.022,.5],49:[.666,0,.5],50:[.666,0,.5],51:[.665,.022,.5],52:[.677,0,.5],53:[.666,.022,.5],54:[.666,.022,.5],55:[.676,.022,.5],56:[.666,.022,.5],57:[.666,.022,.5],58:[.43,0,.278],59:[.43,.194,.278],60:[.54,.04,.778],61:[.583,.082,.778],62:[.54,.04,.778],63:[.705,0,.472],64:[.705,.011,.778],65:[.716,0,.75],66:[.683,0,.708],67:[.705,.021,.722],68:[.683,0,.764],69:[.68,0,.681],70:[.68,0,.653],71:[.705,.022,.785],72:[.683,0,.75],73:[.683,0,.361],74:[.683,.022,.514],75:[.683,0,.778],76:[.683,0,.625],77:[.683,0,.917],78:[.683,0,.75],79:[.705,.022,.778],80:[.683,0,.681],81:[.705,.193,.778],82:[.683,.022,.736],83:[.705,.022,.556],84:[.677,0,.722],85:[.683,.022,.75],86:[.683,.022,.75],87:[.683,.022,1.028],88:[.683,0,.75],89:[.683,0,.75],90:[.683,0,.611],91:[.75,.25,.278],92:[.75,.25,.5],93:[.75,.25,.278],94:[.694,-.531,.5],95:[-.025,.062,.5],96:[.699,-.505,.5],97:[.448,.011,.5],98:[.694,.011,.556],99:[.448,.011,.444],100:[.694,.011,.556],101:[.448,.011,.444],102:[.705,0,.306,{ic:.066}],103:[.453,.206,.5],104:[.694,0,.556],105:[.669,0,.278],106:[.669,.205,.306],107:[.694,0,.528],108:[.694,0,.278],109:[.442,0,.833],110:[.442,0,.556],111:[.448,.01,.5],112:[.442,.194,.556],113:[.442,.194,.528],114:[.442,0,.392],115:[.448,.011,.394],116:[.615,.01,.389],117:[.442,.011,.556],118:[.431,.011,.528],119:[.431,.011,.722],120:[.431,0,.528],121:[.431,.204,.528],122:[.431,0,.444],123:[.75,.25,.5],124:[.75,.249,.278],125:[.75,.25,.5],126:[.318,-.215,.5],160:[0,0,.25],163:[.714,.011,.769],165:[.683,0,.75],168:[.669,-.554,.5],172:[.356,-.089,.667],174:[.709,.175,.947],175:[.59,-.544,.5],176:[.715,-.542,.5],177:[.666,0,.778],180:[.699,-.505,.5],183:[.31,-.19,.278],215:[.491,-.009,.778],240:[.749,.021,.556],247:[.537,.036,.778],305:[.442,0,.278,{sk:.0278}],567:[.442,.205,.306,{sk:.0833}],697:[.56,-.043,.275],710:[.694,-.531,.5],711:[.644,-.513,.5],713:[.59,-.544,.5],714:[.699,-.505,.5],715:[.699,-.505,.5],728:[.694,-.515,.5],729:[.669,-.549,.5],730:[.715,-.542,.5],732:[.668,-.565,.5],768:[.699,-.505,0],769:[.699,-.505,0],770:[.694,-.531,0],771:[.668,-.565,0],772:[.59,-.544,0],774:[.694,-.515,0],775:[.669,-.549,0],776:[.669,-.554,0],778:[.715,-.542,0],779:[.701,-.51,0],780:[.644,-.513,0],824:[.716,.215,0],913:[.716,0,.75],914:[.683,0,.708],915:[.68,0,.625],916:[.716,0,.833],917:[.68,0,.681],918:[.683,0,.611],919:[.683,0,.75],920:[.705,.022,.778],921:[.683,0,.361],922:[.683,0,.778],923:[.716,0,.694],924:[.683,0,.917],925:[.683,0,.75],926:[.677,0,.667],927:[.705,.022,.778],928:[.68,0,.75],929:[.683,0,.681],931:[.683,0,.722],932:[.677,0,.722],933:[.705,0,.778],934:[.683,0,.722],935:[.683,0,.75],936:[.683,0,.778],937:[.704,0,.722],8192:[0,0,.5],8193:[0,0,1],8194:[0,0,.5],8195:[0,0,1],8196:[0,0,.333],8197:[0,0,.25],8198:[0,0,.167],8201:[0,0,.167],8202:[0,0,.1],8203:[0,0,0],8204:[0,0,0],8211:[.285,-.248,.5],8212:[.285,-.248,1],8213:[.285,-.248,1],8214:[.75,.25,.5],8215:[-.025,.062,.5],8216:[.694,-.379,.278],8217:[.694,-.379,.278],8220:[.694,-.379,.5],8221:[.694,-.379,.5],8224:[.705,.216,.444],8225:[.705,.205,.444],8226:[.444,-.055,.5],8230:[.12,0,1.172],8242:[.56,-.043,.275],8243:[.56,0,.55],8244:[.56,0,.825],8245:[.56,-.043,.275],8246:[.56,0,.55],8247:[.56,0,.825],8254:[.59,-.544,.5],8260:[.75,.25,.5],8279:[.56,0,1.1],8288:[0,0,0],8289:[0,0,0],8290:[0,0,0],8291:[0,0,0],8292:[0,0,0],8407:[.714,-.516,.5],8450:[.702,.019,.722],8459:[.717,.036,.969,{ic:.272,sk:.333}],8460:[.666,.133,.72],8461:[.683,0,.778],8462:[.694,.011,.576,{sk:-.0278}],8463:[.695,.013,.54,{ic:.022}],8464:[.717,.017,.809,{ic:.137,sk:.333}],8465:[.686,.026,.554],8466:[.717,.017,.874,{ic:.161,sk:.306}],8467:[.705,.02,.417,{sk:.111}],8469:[.683,.02,.722],8472:[.453,.216,.636,{sk:.111}],8473:[.683,0,.611],8474:[.701,.181,.778],8475:[.717,.017,.85,{ic:.037,sk:.194}],8476:[.686,.026,.828],8477:[.683,0,.722],8484:[.683,0,.667],8486:[.704,0,.722],8487:[.684,.022,.722],8488:[.729,.139,.602],8492:[.708,.028,.908,{ic:.02,sk:.194}],8493:[.685,.024,.613],8496:[.707,.008,.562,{ic:.156,sk:.139}],8497:[.735,.036,.895,{ic:.095,sk:.222}],8498:[.695,0,.556],8499:[.721,.05,1.08,{ic:.136,sk:.444}],8501:[.694,0,.611],8502:[.763,.021,.667,{ic:.02}],8503:[.764,.043,.444],8504:[.764,.043,.667],8513:[.705,.023,.639],8592:[.511,.011,1],8593:[.694,.193,.5],8594:[.511,.011,1],8595:[.694,.194,.5],8596:[.511,.011,1],8597:[.772,.272,.5],8598:[.72,.195,1],8599:[.72,.195,1],8600:[.695,.22,1],8601:[.695,.22,1],8602:[.437,-.06,1],8603:[.437,-.06,1],8606:[.417,-.083,1],8608:[.417,-.083,1],8610:[.417,-.083,1.111],8611:[.417,-.083,1.111],8614:[.511,.011,1],8617:[.511,.011,1.126],8618:[.511,.011,1.126],8619:[.575,.041,1],8620:[.575,.041,1],8621:[.417,-.083,1.389],8622:[.437,-.06,1],8624:[.722,0,.5],8625:[.722,0,.5],8630:[.461,0,1],8631:[.46,0,1],8634:[.65,.083,.778],8635:[.65,.083,.778],8636:[.511,-.23,1],8637:[.27,.011,1],8638:[.694,.194,.417],8639:[.694,.194,.417],8640:[.511,-.23,1],8641:[.27,.011,1],8642:[.694,.194,.417],8643:[.694,.194,.417],8644:[.667,0,1],8646:[.667,0,1],8647:[.583,.083,1],8648:[.694,.193,.833],8649:[.583,.083,1],8650:[.694,.194,.833],8651:[.514,.014,1],8652:[.671,.011,1],8653:[.534,.035,1],8654:[.534,.037,1],8655:[.534,.035,1],8656:[.525,.024,1],8657:[.694,.194,.611],8658:[.525,.024,1],8659:[.694,.194,.611],8660:[.526,.025,1],8661:[.772,.272,.611],8666:[.611,.111,1],8667:[.611,.111,1],8669:[.417,-.083,1],8672:[.437,-.064,1.334],8674:[.437,-.064,1.334],8704:[.694,.022,.556],8705:[.846,.021,.5],8706:[.715,.022,.531,{ic:.035,sk:.0833}],8707:[.694,0,.556],8708:[.716,.215,.556],8709:[.772,.078,.5],8710:[.716,0,.833],8711:[.683,.033,.833],8712:[.54,.04,.667],8713:[.716,.215,.667],8715:[.54,.04,.667],8716:[.716,.215,.667],8717:[.44,0,.429,{ic:.027}],8719:[.75,.25,.944],8720:[.75,.25,.944],8721:[.75,.25,1.056],8722:[.583,.082,.778],8723:[.5,.166,.778],8724:[.766,.093,.778],8725:[.75,.25,.5],8726:[.75,.25,.5],8727:[.465,-.035,.5],8728:[.444,-.055,.5],8729:[.444,-.055,.5],8730:[.8,.2,.833,{ic:.02}],8733:[.442,.011,.778],8734:[.442,.011,1],8736:[.694,0,.722],8737:[.714,.02,.722],8738:[.551,.051,.722],8739:[.75,.249,.278],8740:[.75,.252,.278,{ic:.019}],8741:[.75,.25,.5],8742:[.75,.25,.5,{ic:.018}],8743:[.598,.022,.667],8744:[.598,.022,.667],8745:[.598,.022,.667],8746:[.598,.022,.667],8747:[.716,.216,.417,{ic:.055}],8748:[.805,.306,.819,{ic:.138}],8749:[.805,.306,1.166,{ic:.138}],8750:[.805,.306,.472,{ic:.138}],8756:[.471,.082,.667],8757:[.471,.082,.667],8764:[.367,-.133,.778],8765:[.367,-.133,.778],8768:[.583,.083,.278],8769:[.467,-.032,.778],8770:[.463,-.034,.778],8771:[.464,-.036,.778],8772:[.716,.215,.778],8773:[.589,-.022,.778],8775:[.652,.155,.778],8776:[.483,-.055,.778],8777:[.716,.215,.778],8778:[.579,.039,.778],8781:[.484,-.016,.778],8782:[.492,-.008,.778],8783:[.492,-.133,.778],8784:[.67,-.133,.778],8785:[.609,.108,.778],8786:[.601,.101,.778],8787:[.601,.102,.778],8790:[.367,-.133,.778],8791:[.721,-.133,.778],8796:[.859,-.133,.778],8800:[.716,.215,.778],8801:[.464,-.036,.778],8802:[.716,.215,.778],8804:[.636,.138,.778],8805:[.636,.138,.778],8806:[.753,.175,.778],8807:[.753,.175,.778],8808:[.752,.286,.778],8809:[.752,.286,.778],8810:[.568,.067,1],8811:[.567,.067,1],8812:[.75,.25,.5],8813:[.716,.215,.778],8814:[.708,.209,.778],8815:[.708,.209,.778],8816:[.801,.303,.778],8817:[.801,.303,.778],8818:[.732,.228,.778],8819:[.732,.228,.778],8820:[.732,.228,.778],8821:[.732,.228,.778],8822:[.681,.253,.778],8823:[.681,.253,.778],8824:[.716,.253,.778],8825:[.716,.253,.778],8826:[.539,.041,.778],8827:[.539,.041,.778],8828:[.58,.153,.778],8829:[.58,.154,.778],8830:[.732,.228,.778],8831:[.732,.228,.778],8832:[.705,.208,.778],8833:[.705,.208,.778],8834:[.54,.04,.778],8835:[.54,.04,.778],8836:[.716,.215,.778],8837:[.716,.215,.778],8838:[.636,.138,.778],8839:[.636,.138,.778],8840:[.801,.303,.778],8841:[.801,.303,.778],8842:[.635,.241,.778],8843:[.635,.241,.778],8846:[.598,.022,.667],8847:[.539,.041,.778],8848:[.539,.041,.778],8849:[.636,.138,.778],8850:[.636,.138,.778],8851:[.598,0,.667],8852:[.598,0,.667],8853:[.583,.083,.778],8854:[.583,.083,.778],8855:[.583,.083,.778],8856:[.583,.083,.778],8857:[.583,.083,.778],8858:[.582,.082,.778],8859:[.582,.082,.778],8861:[.582,.082,.778],8862:[.689,0,.778],8863:[.689,0,.778],8864:[.689,0,.778],8865:[.689,0,.778],8866:[.694,0,.611],8867:[.694,0,.611],8868:[.668,0,.778],8869:[.668,0,.778],8872:[.75,.249,.867],8873:[.694,0,.722],8874:[.694,0,.889],8876:[.695,0,.611],8877:[.695,0,.611],8878:[.695,0,.722],8879:[.695,0,.722],8882:[.539,.041,.778],8883:[.539,.041,.778],8884:[.636,.138,.778],8885:[.636,.138,.778],8888:[.408,-.092,1.111],8890:[.431,.212,.556],8891:[.716,0,.611],8892:[.716,0,.611],8896:[.75,.249,.833],8897:[.75,.249,.833],8898:[.75,.249,.833],8899:[.75,.249,.833],8900:[.488,-.012,.5],8901:[.31,-.19,.278],8902:[.486,-.016,.5],8903:[.545,.044,.778],8904:[.505,.005,.9],8905:[.492,-.008,.778],8906:[.492,-.008,.778],8907:[.694,.022,.778],8908:[.694,.022,.778],8909:[.464,-.036,.778],8910:[.578,.021,.76],8911:[.578,.022,.76],8912:[.54,.04,.778],8913:[.54,.04,.778],8914:[.598,.022,.667],8915:[.598,.022,.667],8916:[.736,.022,.667],8918:[.541,.041,.778],8919:[.541,.041,.778],8920:[.568,.067,1.333],8921:[.568,.067,1.333],8922:[.886,.386,.778],8923:[.886,.386,.778],8926:[.734,0,.778],8927:[.734,0,.778],8928:[.801,.303,.778],8929:[.801,.303,.778],8930:[.716,.215,.778],8931:[.716,.215,.778],8934:[.73,.359,.778],8935:[.73,.359,.778],8936:[.73,.359,.778],8937:[.73,.359,.778],8938:[.706,.208,.778],8939:[.706,.208,.778],8940:[.802,.303,.778],8941:[.801,.303,.778],8942:[1.3,.03,.278],8943:[.31,-.19,1.172],8945:[1.52,-.1,1.282],8965:[.716,0,.611],8966:[.813,.097,.611],8968:[.75,.25,.444],8969:[.75,.25,.444],8970:[.75,.25,.444],8971:[.75,.25,.444],8988:[.694,-.306,.5],8989:[.694,-.306,.5],8990:[.366,.022,.5],8991:[.366,.022,.5],8994:[.388,-.122,1],8995:[.378,-.134,1],9001:[.75,.25,.389],9002:[.75,.25,.389],9136:[.744,.244,.412],9137:[.744,.244,.412],9168:[.602,0,.667],9416:[.709,.175,.902],9484:[.694,-.306,.5],9488:[.694,-.306,.5],9492:[.366,.022,.5],9496:[.366,.022,.5],9585:[.694,.195,.889],9586:[.694,.195,.889],9632:[.689,0,.778],9633:[.689,0,.778],9642:[.689,0,.778],9650:[.575,.02,.722],9651:[.716,0,.889],9652:[.575,.02,.722],9653:[.716,0,.889],9654:[.539,.041,.778],9656:[.539,.041,.778],9657:[.505,.005,.5],9660:[.576,.019,.722],9661:[.5,.215,.889],9662:[.576,.019,.722],9663:[.5,.215,.889],9664:[.539,.041,.778],9666:[.539,.041,.778],9667:[.505,.005,.5],9674:[.716,.132,.667],9711:[.715,.215,1],9723:[.689,0,.778],9724:[.689,0,.778],9733:[.694,.111,.944],9824:[.727,.13,.778],9825:[.716,.033,.778],9826:[.727,.162,.778],9827:[.726,.13,.778],9837:[.75,.022,.389],9838:[.734,.223,.389],9839:[.723,.223,.389],10003:[.706,.034,.833],10016:[.716,.022,.833],10072:[.75,.249,.278],10216:[.75,.25,.389],10217:[.75,.25,.389],10222:[.744,.244,.412],10223:[.744,.244,.412],10229:[.511,.011,1.609],10230:[.511,.011,1.638],10231:[.511,.011,1.859],10232:[.525,.024,1.609],10233:[.525,.024,1.638],10234:[.525,.024,1.858],10236:[.511,.011,1.638],10731:[.716,.132,.667],10744:[.716,.215,.778],10752:[.75,.25,1.111],10753:[.75,.25,1.111],10754:[.75,.25,1.111],10756:[.75,.249,.833],10758:[.75,.249,.833],10764:[.805,.306,1.638,{ic:.138}],10799:[.491,-.009,.778],10815:[.683,0,.75],10846:[.813,.097,.611],10877:[.636,.138,.778],10878:[.636,.138,.778],10885:[.762,.29,.778],10886:[.762,.29,.778],10887:[.635,.241,.778],10888:[.635,.241,.778],10889:[.761,.387,.778],10890:[.761,.387,.778],10891:[1.003,.463,.778],10892:[1.003,.463,.778],10901:[.636,.138,.778],10902:[.636,.138,.778],10927:[.636,.138,.778],10928:[.636,.138,.778],10933:[.752,.286,.778],10934:[.752,.286,.778],10935:[.761,.294,.778],10936:[.761,.294,.778],10937:[.761,.337,.778],10938:[.761,.337,.778],10949:[.753,.215,.778],10950:[.753,.215,.778],10955:[.783,.385,.778],10956:[.783,.385,.778],12296:[.75,.25,.389],12297:[.75,.25,.389],57350:[.43,.023,.222,{ic:.018}],57351:[.431,.024,.389,{ic:.018}],57352:[.605,.085,.778],57353:[.434,.006,.667,{ic:.067}],57356:[.752,.284,.778],57357:[.752,.284,.778],57358:[.919,.421,.778],57359:[.801,.303,.778],57360:[.801,.303,.778],57361:[.919,.421,.778],57366:[.828,.33,.778],57367:[.752,.332,.778],57368:[.828,.33,.778],57369:[.752,.333,.778],57370:[.634,.255,.778],57371:[.634,.254,.778],119808:[.698,0,.869],119809:[.686,0,.818],119810:[.697,.011,.831],119811:[.686,0,.882],119812:[.68,0,.756],119813:[.68,0,.724],119814:[.697,.01,.904],119815:[.686,0,.9],119816:[.686,0,.436],119817:[.686,.011,.594],119818:[.686,0,.901],119819:[.686,0,.692],119820:[.686,0,1.092],119821:[.686,0,.9],119822:[.696,.01,.864],119823:[.686,0,.786],119824:[.696,.193,.864],119825:[.686,.011,.862],119826:[.697,.011,.639],119827:[.675,0,.8],119828:[.686,.011,.885],119829:[.686,.007,.869],119830:[.686,.007,1.189],119831:[.686,0,.869],119832:[.686,0,.869],119833:[.686,0,.703],119834:[.453,.006,.559],119835:[.694,.006,.639],119836:[.453,.006,.511],119837:[.694,.006,.639],119838:[.452,.006,.527],119839:[.7,0,.351,{ic:.101}],119840:[.455,.201,.575],119841:[.694,0,.639],119842:[.695,0,.319],119843:[.695,.2,.351],119844:[.694,0,.607],119845:[.694,0,.319],119846:[.45,0,.958],119847:[.45,0,.639],119848:[.452,.005,.575],119849:[.45,.194,.639],119850:[.45,.194,.607],119851:[.45,0,.474],119852:[.453,.006,.454],119853:[.635,.005,.447],119854:[.45,.006,.639],119855:[.444,0,.607],119856:[.444,0,.831],119857:[.444,0,.607],119858:[.444,.2,.607],119859:[.444,0,.511],119860:[.716,0,.75,{sk:.139}],119861:[.683,0,.759,{sk:.0833}],119862:[.705,.022,.715,{ic:.045,sk:.0833}],119863:[.683,0,.828,{sk:.0556}],119864:[.68,0,.738,{ic:.026,sk:.0833}],119865:[.68,0,.643,{ic:.106,sk:.0833}],119866:[.705,.022,.786,{sk:.0833}],119867:[.683,0,.831,{ic:.057,sk:.0556}],119868:[.683,0,.44,{ic:.064,sk:.111}],119869:[.683,.022,.555,{ic:.078,sk:.167}],119870:[.683,0,.849,{ic:.04,sk:.0556}],119871:[.683,0,.681,{sk:.0278}],119872:[.683,0,.97,{ic:.081,sk:.0833}],119873:[.683,0,.803,{ic:.085,sk:.0833}],119874:[.704,.022,.763,{sk:.0833}],119875:[.683,0,.642,{ic:.109,sk:.0833}],119876:[.704,.194,.791,{sk:.0833}],119877:[.683,.021,.759,{sk:.0833}],119878:[.705,.022,.613,{ic:.032,sk:.0833}],119879:[.677,0,.584,{ic:.12,sk:.0833}],119880:[.683,.022,.683,{ic:.084,sk:.0278}],119881:[.683,.022,.583,{ic:.186}],119882:[.683,.022,.944,{ic:.104}],119883:[.683,0,.828,{ic:.024,sk:.0833}],119884:[.683,0,.581,{ic:.182}],119885:[.683,0,.683,{ic:.04,sk:.0833}],119886:[.441,.01,.529],119887:[.694,.011,.429],119888:[.442,.011,.433,{sk:.0556}],119889:[.694,.01,.52,{sk:.167}],119890:[.442,.011,.466,{sk:.0556}],119891:[.705,.205,.49,{ic:.06,sk:.167}],119892:[.442,.205,.477,{sk:.0278}],119894:[.661,.011,.345],119895:[.661,.204,.412],119896:[.694,.011,.521],119897:[.694,.011,.298,{sk:.0833}],119898:[.442,.011,.878],119899:[.442,.011,.6],119900:[.441,.011,.485,{sk:.0556}],119901:[.442,.194,.503,{sk:.0833}],119902:[.442,.194,.446,{ic:.014,sk:.0833}],119903:[.442,.011,.451,{sk:.0556}],119904:[.442,.01,.469,{sk:.0556}],119905:[.626,.011,.361,{sk:.0833}],119906:[.442,.011,.572,{sk:.0278}],119907:[.443,.011,.485,{sk:.0278}],119908:[.443,.011,.716,{sk:.0833}],119909:[.442,.011,.572,{sk:.0278}],119910:[.442,.205,.49,{sk:.0556}],119911:[.442,.011,.465,{sk:.0556}],119912:[.711,0,.869,{sk:.16}],119913:[.686,0,.866,{sk:.0958}],119914:[.703,.017,.817,{ic:.038,sk:.0958}],119915:[.686,0,.938,{sk:.0639}],119916:[.68,0,.81,{ic:.015,sk:.0958}],119917:[.68,0,.689,{ic:.12,sk:.0958}],119918:[.703,.016,.887,{sk:.0958}],119919:[.686,0,.982,{ic:.045,sk:.0639}],119920:[.686,0,.511,{ic:.062,sk:.128}],119921:[.686,.017,.631,{ic:.063,sk:.192}],119922:[.686,0,.971,{ic:.032,sk:.0639}],119923:[.686,0,.756,{sk:.0319}],119924:[.686,0,1.142,{ic:.077,sk:.0958}],119925:[.686,0,.95,{ic:.077,sk:.0958}],119926:[.703,.017,.837,{sk:.0958}],119927:[.686,0,.723,{ic:.124,sk:.0958}],119928:[.703,.194,.869,{sk:.0958}],119929:[.686,.017,.872,{sk:.0958}],119930:[.703,.017,.693,{ic:.021,sk:.0958}],119931:[.675,0,.637,{ic:.135,sk:.0958}],119932:[.686,.016,.8,{ic:.077,sk:.0319}],119933:[.686,.016,.678,{ic:.208}],119934:[.686,.017,1.093,{ic:.114}],119935:[.686,0,.947,{sk:.0958}],119936:[.686,0,.675,{ic:.201}],119937:[.686,0,.773,{ic:.032,sk:.0958}],119938:[.452,.008,.633],119939:[.694,.008,.521],119940:[.451,.008,.513,{sk:.0639}],119941:[.694,.008,.61,{sk:.192}],119942:[.452,.008,.554,{sk:.0639}],119943:[.701,.201,.568,{ic:.056,sk:.192}],119944:[.452,.202,.545,{sk:.0319}],119945:[.694,.008,.668,{sk:-.0319}],119946:[.694,.008,.405],119947:[.694,.202,.471],119948:[.694,.008,.604],119949:[.694,.008,.348,{sk:.0958}],119950:[.452,.008,1.032],119951:[.452,.008,.713],119952:[.452,.008,.585,{sk:.0639}],119953:[.452,.194,.601,{sk:.0958}],119954:[.452,.194,.542,{sk:.0958}],119955:[.452,.008,.529,{sk:.0639}],119956:[.451,.008,.531,{sk:.0639}],119957:[.643,.007,.415,{sk:.0958}],119958:[.452,.008,.681,{sk:.0319}],119959:[.453,.008,.567,{sk:.0319}],119960:[.453,.008,.831,{sk:.0958}],119961:[.452,.008,.659,{sk:.0319}],119962:[.452,.202,.59,{sk:.0639}],119963:[.452,.008,.555,{sk:.0639}],119964:[.717,.008,.803,{ic:.213,sk:.389}],119966:[.728,.026,.666,{ic:.153,sk:.278}],119967:[.708,.031,.774,{ic:.081,sk:.111}],119970:[.717,.037,.61,{ic:.128,sk:.25}],119973:[.717,.314,1.052,{ic:.081,sk:.417}],119974:[.717,.037,.914,{ic:.29,sk:.361}],119977:[.726,.036,.902,{ic:.306,sk:.389}],119978:[.707,.008,.738,{ic:.067,sk:.167}],119979:[.716,.037,1.013,{ic:.018,sk:.222}],119980:[.717,.017,.883,{sk:.278}],119982:[.708,.036,.868,{ic:.148,sk:.333}],119983:[.735,.037,.747,{ic:.249,sk:.222}],119984:[.717,.017,.8,{ic:.16,sk:.25}],119985:[.717,.017,.622,{ic:.228,sk:.222}],119986:[.717,.017,.805,{ic:.221,sk:.25}],119987:[.717,.017,.944,{ic:.187,sk:.278}],119988:[.716,.017,.71,{ic:.249,sk:.194}],119989:[.717,.016,.821,{ic:.211,sk:.306}],120068:[.696,.026,.718],120069:[.691,.027,.884],120071:[.685,.027,.832],120072:[.685,.024,.663],120073:[.686,.153,.611],120074:[.69,.026,.785],120077:[.686,.139,.552],120078:[.68,.027,.668,{ic:.014}],120079:[.686,.026,.666],120080:[.692,.027,1.05],120081:[.686,.025,.832],120082:[.729,.027,.827],120083:[.692,.218,.828],120084:[.729,.069,.827],120086:[.692,.027,.829],120087:[.701,.027,.669],120088:[.697,.027,.646,{ic:.019}],120089:[.686,.026,.831],120090:[.686,.027,1.046],120091:[.688,.027,.719],120092:[.686,.218,.833],120094:[.47,.035,.5],120095:[.685,.031,.513],120096:[.466,.029,.389],120097:[.609,.033,.499],120098:[.467,.03,.401],120099:[.681,.221,.326],120100:[.47,.209,.504],120101:[.688,.205,.521],120102:[.673,.02,.279],120103:[.672,.208,.281],120104:[.689,.025,.389],120105:[.685,.02,.28],120106:[.475,.026,.767],120107:[.475,.022,.527],120108:[.48,.028,.489],120109:[.541,.212,.5],120110:[.479,.219,.489],120111:[.474,.021,.389],120112:[.478,.029,.443],120113:[.64,.02,.333,{ic:.015}],120114:[.474,.023,.517],120115:[.53,.028,.512],120116:[.532,.028,.774],120117:[.472,.188,.389],120118:[.528,.218,.499],120119:[.471,.214,.391],120120:[.701,0,.722],120121:[.683,0,.667],120123:[.683,0,.722],120124:[.683,0,.667],120125:[.683,0,.611],120126:[.702,.019,.778],120128:[.683,0,.389],120129:[.683,.077,.5],120130:[.683,0,.778],120131:[.683,0,.667],120132:[.683,0,.944],120134:[.701,.019,.778],120138:[.702,.012,.556],120139:[.683,0,.667],120140:[.683,.019,.722],120141:[.683,.02,.722],120142:[.683,.019,1],120143:[.683,0,.722],120144:[.683,0,.722],120172:[.686,.031,.847],120173:[.684,.031,1.044],120174:[.676,.032,.723],120175:[.683,.029,.982],120176:[.686,.029,.783],120177:[.684,.146,.722],120178:[.687,.029,.927],120179:[.683,.126,.851],120180:[.681,.025,.655],120181:[.68,.141,.652],120182:[.681,.026,.789,{ic:.017}],120183:[.683,.028,.786],120184:[.683,.032,1.239],120185:[.679,.03,.983],120186:[.726,.03,.976],120187:[.688,.223,.977],120188:[.726,.083,.976],120189:[.688,.028,.978],120190:[.685,.031,.978],120191:[.686,.03,.79,{ic:.012}],120192:[.688,.039,.851,{ic:.02}],120193:[.685,.029,.982],120194:[.683,.03,1.235],120195:[.681,.035,.849],120196:[.688,.214,.984],120197:[.677,.148,.711],120198:[.472,.032,.603],120199:[.69,.032,.59],120200:[.473,.026,.464],120201:[.632,.028,.589],120202:[.471,.027,.472],120203:[.687,.222,.388],120204:[.472,.208,.595],120205:[.687,.207,.615],120206:[.686,.025,.331],120207:[.682,.203,.332],120208:[.682,.025,.464],120209:[.681,.024,.337],120210:[.476,.031,.921],120211:[.473,.028,.654],120212:[.482,.034,.609],120213:[.557,.207,.604],120214:[.485,.211,.596],120215:[.472,.026,.46],120216:[.479,.034,.523],120217:[.648,.027,.393,{ic:.014}],120218:[.472,.032,.589,{ic:.014}],120219:[.546,.027,.604],120220:[.549,.032,.918],120221:[.471,.188,.459],120222:[.557,.221,.589],120223:[.471,.214,.461],120224:[.694,0,.667],120225:[.694,0,.667],120226:[.705,.011,.639],120227:[.694,0,.722],120228:[.691,0,.597],120229:[.691,0,.569],120230:[.704,.011,.667],120231:[.694,0,.708],120232:[.694,0,.278],120233:[.694,.022,.472],120234:[.694,0,.694],120235:[.694,0,.542],120236:[.694,0,.875],120237:[.694,0,.708],120238:[.715,.022,.736],120239:[.694,0,.639],120240:[.715,.125,.736],120241:[.694,0,.646],120242:[.716,.022,.556],120243:[.688,0,.681],120244:[.694,.022,.688],120245:[.694,0,.667],120246:[.694,0,.944],120247:[.694,0,.667],120248:[.694,0,.667],120249:[.694,0,.611],120250:[.46,.01,.481],120251:[.694,.011,.517],120252:[.46,.01,.444],120253:[.694,.01,.517],120254:[.461,.01,.444],120255:[.705,0,.306,{ic:.041}],120256:[.455,.206,.5],120257:[.694,0,.517],120258:[.68,0,.239],120259:[.68,.205,.267],120260:[.694,0,.489],120261:[.694,0,.239],120262:[.455,0,.794],120263:[.455,0,.517],120264:[.46,.01,.5],120265:[.455,.194,.517],120266:[.455,.194,.517],120267:[.455,0,.342],120268:[.46,.01,.383],120269:[.571,.01,.361],120270:[.444,.01,.517],120271:[.444,0,.461],120272:[.444,0,.683],120273:[.444,0,.461],120274:[.444,.204,.461],120275:[.444,0,.435],120276:[.694,0,.733],120277:[.694,0,.733],120278:[.704,.011,.703],120279:[.694,0,.794],120280:[.691,0,.642],120281:[.691,0,.611],120282:[.705,.011,.733],120283:[.694,0,.794],120284:[.694,0,.331],120285:[.694,.022,.519],120286:[.694,0,.764],120287:[.694,0,.581],120288:[.694,0,.978],120289:[.694,0,.794],120290:[.716,.022,.794],120291:[.694,0,.703],120292:[.716,.106,.794],120293:[.694,0,.703],120294:[.716,.022,.611],120295:[.688,0,.733],120296:[.694,.022,.764],120297:[.694,0,.733],120298:[.694,0,1.039],120299:[.694,0,.733],120300:[.694,0,.733],120301:[.694,0,.672],120302:[.475,.011,.525],120303:[.694,.01,.561],120304:[.475,.011,.489],120305:[.694,.011,.561],120306:[.474,.01,.511],120307:[.705,0,.336,{ic:.045}],120308:[.469,.206,.55],120309:[.694,0,.561],120310:[.695,0,.256],120311:[.695,.205,.286],120312:[.694,0,.531],120313:[.694,0,.256],120314:[.469,0,.867],120315:[.468,0,.561],120316:[.474,.011,.55],120317:[.469,.194,.561],120318:[.469,.194,.561],120319:[.469,0,.372],120320:[.474,.01,.422],120321:[.589,.01,.404],120322:[.458,.011,.561],120323:[.458,0,.5],120324:[.458,0,.744],120325:[.458,0,.5],120326:[.458,.205,.5],120327:[.458,0,.476],120328:[.694,0,.667],120329:[.694,0,.667,{ic:.029}],120330:[.705,.01,.639,{ic:.08}],120331:[.694,0,.722,{ic:.025}],120332:[.691,0,.597,{ic:.091}],120333:[.691,0,.569,{ic:.104}],120334:[.705,.011,.667,{ic:.063}],120335:[.694,0,.708,{ic:.06}],120336:[.694,0,.278,{ic:.06}],120337:[.694,.022,.472,{ic:.063}],120338:[.694,0,.694,{ic:.091}],120339:[.694,0,.542],120340:[.694,0,.875,{ic:.054}],120341:[.694,0,.708,{ic:.058}],120342:[.716,.022,.736,{ic:.027}],120343:[.694,0,.639,{ic:.051}],120344:[.716,.125,.736,{ic:.027}],120345:[.694,0,.646,{ic:.052}],120346:[.716,.022,.556,{ic:.053}],120347:[.688,0,.681,{ic:.109}],120348:[.694,.022,.688,{ic:.059}],120349:[.694,0,.667,{ic:.132}],120350:[.694,0,.944,{ic:.132}],120351:[.694,0,.667,{ic:.091}],120352:[.694,0,.667,{ic:.143}],120353:[.694,0,.611,{ic:.091}],120354:[.461,.01,.481],120355:[.694,.011,.517,{ic:.022}],120356:[.46,.011,.444,{ic:.055}],120357:[.694,.01,.517,{ic:.071}],120358:[.46,.011,.444,{ic:.028}],120359:[.705,0,.306,{ic:.188}],120360:[.455,.206,.5,{ic:.068}],120361:[.694,0,.517],120362:[.68,0,.239,{ic:.076}],120363:[.68,.204,.267,{ic:.069}],120364:[.694,0,.489,{ic:.054}],120365:[.694,0,.239,{ic:.072}],120366:[.455,0,.794],120367:[.454,0,.517],120368:[.461,.011,.5,{ic:.023}],120369:[.455,.194,.517,{ic:.021}],120370:[.455,.194,.517,{ic:.021}],120371:[.455,0,.342,{ic:.082}],120372:[.461,.011,.383,{ic:.053}],120373:[.571,.011,.361,{ic:.049}],120374:[.444,.01,.517,{ic:.02}],120375:[.444,0,.461,{ic:.079}],120376:[.444,0,.683,{ic:.079}],120377:[.444,0,.461,{ic:.076}],120378:[.444,.205,.461,{ic:.079}],120379:[.444,0,.435,{ic:.059}],120432:[.623,0,.525],120433:[.611,0,.525],120434:[.622,.011,.525],120435:[.611,0,.525],120436:[.611,0,.525],120437:[.611,0,.525],120438:[.622,.011,.525],120439:[.611,0,.525],120440:[.611,0,.525],120441:[.611,.011,.525],120442:[.611,0,.525],120443:[.611,0,.525],120444:[.611,0,.525],120445:[.611,0,.525],120446:[.621,.01,.525],120447:[.611,0,.525],120448:[.621,.138,.525],120449:[.611,.011,.525],120450:[.622,.011,.525],120451:[.611,0,.525],120452:[.611,.011,.525],120453:[.611,.007,.525],120454:[.611,.007,.525],120455:[.611,0,.525],120456:[.611,0,.525],120457:[.611,0,.525],120458:[.439,.006,.525],120459:[.611,.006,.525],120460:[.44,.006,.525],120461:[.611,.006,.525],120462:[.44,.006,.525],120463:[.617,0,.525],120464:[.442,.229,.525],120465:[.611,0,.525],120466:[.612,0,.525],120467:[.612,.228,.525],120468:[.611,0,.525],120469:[.611,0,.525],120470:[.436,0,.525,{ic:.011}],120471:[.436,0,.525],120472:[.44,.006,.525],120473:[.437,.221,.525],120474:[.437,.221,.525,{ic:.02}],120475:[.437,0,.525],120476:[.44,.006,.525],120477:[.554,.006,.525],120478:[.431,.005,.525],120479:[.431,0,.525],120480:[.431,0,.525],120481:[.431,0,.525],120482:[.431,.228,.525],120483:[.431,0,.525],120488:[.698,0,.869],120489:[.686,0,.818],120490:[.68,0,.692],120491:[.698,0,.958],120492:[.68,0,.756],120493:[.686,0,.703],120494:[.686,0,.9],120495:[.696,.01,.894],120496:[.686,0,.436],120497:[.686,0,.901],120498:[.698,0,.806],120499:[.686,0,1.092],120500:[.686,0,.9],120501:[.675,0,.767],120502:[.696,.01,.864],120503:[.68,0,.9],120504:[.686,0,.786],120506:[.686,0,.831],120507:[.675,0,.8],120508:[.697,0,.894],120509:[.686,0,.831],120510:[.686,0,.869],120511:[.686,0,.894],120512:[.696,0,.831],120513:[.686,.024,.958],120546:[.716,0,.75,{sk:.139}],120547:[.683,0,.759,{sk:.0833}],120548:[.68,0,.615,{ic:.106,sk:.0833}],120549:[.716,0,.833,{sk:.167}],120550:[.68,0,.738,{ic:.026,sk:.0833}],120551:[.683,0,.683,{ic:.04,sk:.0833}],120552:[.683,0,.831,{ic:.057,sk:.0556}],120553:[.704,.022,.763,{sk:.0833}],120554:[.683,0,.44,{ic:.064,sk:.111}],120555:[.683,0,.849,{ic:.04,sk:.0556}],120556:[.716,0,.694,{sk:.167}],120557:[.683,0,.97,{ic:.081,sk:.0833}],120558:[.683,0,.803,{ic:.085,sk:.0833}],120559:[.677,0,.742,{ic:.035,sk:.0833}],120560:[.704,.022,.763,{sk:.0833}],120561:[.68,0,.831,{ic:.056,sk:.0556}],120562:[.683,0,.642,{ic:.109,sk:.0833}],120564:[.683,0,.78,{ic:.026,sk:.0833}],120565:[.677,0,.584,{ic:.12,sk:.0833}],120566:[.705,0,.583,{ic:.117,sk:.0556}],120567:[.683,0,.667,{sk:.0833}],120568:[.683,0,.828,{ic:.024,sk:.0833}],120569:[.683,0,.612,{ic:.08,sk:.0556}],120570:[.704,0,.772,{ic:.014,sk:.0833}],120572:[.442,.011,.64,{sk:.0278}],120573:[.705,.194,.566,{sk:.0833}],120574:[.441,.216,.518,{ic:.025}],120575:[.717,.01,.444,{sk:.0556}],120576:[.452,.022,.466,{sk:.0833}],120577:[.704,.204,.438,{ic:.033,sk:.0833}],120578:[.442,.216,.497,{sk:.0556}],120579:[.705,.01,.469,{sk:.0833}],120580:[.442,.01,.354,{sk:.0556}],120581:[.442,.011,.576],120582:[.694,.012,.583],120583:[.442,.216,.603,{sk:.0278}],120584:[.442,0,.494,{ic:.036,sk:.0278}],120585:[.704,.205,.438,{sk:.111}],120586:[.441,.011,.485,{sk:.0556}],120587:[.431,.011,.57],120588:[.442,.216,.517,{sk:.0833}],120589:[.442,.107,.363,{ic:.042,sk:.0833}],120590:[.431,.011,.571],120591:[.431,.013,.437,{ic:.08,sk:.0278}],120592:[.443,.01,.54,{sk:.0278}],120593:[.442,.218,.654,{sk:.0833}],120594:[.442,.204,.626,{sk:.0556}],120595:[.694,.205,.651,{sk:.111}],120596:[.443,.011,.622],120597:[.715,.022,.531,{ic:.035,sk:.0833}],120598:[.431,.011,.406,{sk:.0556}],120599:[.705,.011,.591,{sk:.0833}],120600:[.434,.006,.667,{ic:.067}],120601:[.694,.205,.596,{sk:.0833}],120602:[.442,.194,.517,{sk:.0833}],120603:[.431,.01,.828],120604:[.711,0,.869,{sk:.16}],120605:[.686,0,.866,{sk:.0958}],120606:[.68,0,.657,{ic:.12,sk:.0958}],120607:[.711,0,.958,{sk:.192}],120608:[.68,0,.81,{ic:.015,sk:.0958}],120609:[.686,0,.773,{ic:.032,sk:.0958}],120610:[.686,0,.982,{ic:.045,sk:.0639}],120611:[.702,.017,.867,{sk:.0958}],120612:[.686,0,.511,{ic:.062,sk:.128}],120613:[.686,0,.971,{ic:.032,sk:.0639}],120614:[.711,0,.806,{sk:.192}],120615:[.686,0,1.142,{ic:.077,sk:.0958}],120616:[.686,0,.95,{ic:.077,sk:.0958}],120617:[.675,0,.841,{ic:.026,sk:.0958}],120618:[.703,.017,.837,{sk:.0958}],120619:[.68,0,.982,{ic:.044,sk:.0639}],120620:[.686,0,.723,{ic:.124,sk:.0958}],120622:[.686,0,.885,{ic:.017,sk:.0958}],120623:[.675,0,.637,{ic:.135,sk:.0958}],120624:[.703,0,.671,{ic:.131,sk:.0639}],120625:[.686,0,.767,{sk:.0958}],120626:[.686,0,.947,{sk:.0958}],120627:[.686,0,.714,{ic:.076,sk:.0639}],120628:[.703,0,.879,{sk:.0958}],120630:[.452,.008,.761,{sk:.0319}],120631:[.701,.194,.66,{sk:.0958}],120632:[.451,.211,.59,{ic:.027}],120633:[.725,.008,.522,{sk:.0639}],120634:[.461,.017,.529,{sk:.0958}],120635:[.711,.202,.508,{ic:.013,sk:.0958}],120636:[.452,.211,.6,{sk:.0639}],120637:[.702,.008,.562,{sk:.0958}],120638:[.452,.008,.412,{sk:.0639}],120639:[.452,.008,.668],120640:[.694,.013,.671],120641:[.452,.211,.708,{sk:.0319}],120642:[.452,0,.577,{ic:.031,sk:.0319}],120643:[.711,.201,.508,{sk:.128}],120644:[.452,.008,.585,{sk:.0639}],120645:[.444,.008,.682],120646:[.451,.211,.612,{sk:.0958}],120647:[.451,.105,.424,{ic:.033,sk:.0958}],120648:[.444,.008,.686],120649:[.444,.013,.521,{ic:.089,sk:.0319}],120650:[.453,.008,.631,{sk:.0319}],120651:[.452,.216,.747,{sk:.0958}],120652:[.452,.201,.718,{sk:.0639}],120653:[.694,.202,.758,{sk:.128}],120654:[.453,.008,.718],120655:[.71,.017,.628,{ic:.029,sk:.0958}],120656:[.444,.007,.483,{sk:.0639}],120657:[.701,.008,.692,{sk:.0958}],120658:[.434,.006,.667,{ic:.067}],120659:[.694,.202,.712,{sk:.0958}],120660:[.451,.194,.612,{sk:.0958}],120661:[.444,.008,.975],120662:[.694,0,.733],120663:[.694,0,.733],120664:[.691,0,.581],120665:[.694,0,.917],120666:[.691,0,.642],120667:[.694,0,.672],120668:[.694,0,.794],120669:[.716,.022,.856],120670:[.694,0,.331],120671:[.694,0,.764],120672:[.694,0,.672],120673:[.694,0,.978],120674:[.694,0,.794],120675:[.688,0,.733],120676:[.716,.022,.794],120677:[.691,0,.794],120678:[.694,0,.703],120680:[.694,0,.794],120681:[.688,0,.733],120682:[.715,0,.856],120683:[.694,0,.794],120684:[.694,0,.733],120685:[.694,0,.856],120686:[.716,0,.794],120782:[.654,.01,.575],120783:[.655,0,.575],120784:[.654,0,.575],120785:[.655,.011,.575],120786:[.656,0,.575],120787:[.655,.011,.575],120788:[.655,.011,.575],120789:[.676,.011,.575],120790:[.654,.011,.575],120791:[.654,.011,.575],120802:[.678,.022,.5],120803:[.678,0,.5],120804:[.677,0,.5],120805:[.678,.022,.5],120806:[.656,0,.5],120807:[.656,.021,.5],120808:[.677,.022,.5],120809:[.656,.011,.5],120810:[.678,.022,.5],120811:[.677,.022,.5],120812:[.715,.022,.55],120813:[.716,0,.55],120814:[.716,0,.55],120815:[.716,.022,.55],120816:[.694,0,.55],120817:[.694,.022,.55],120818:[.716,.022,.55],120819:[.695,.011,.55],120820:[.715,.022,.55],120821:[.716,.022,.55],120822:[.621,.01,.525],120823:[.622,0,.525],120824:[.622,0,.525],120825:[.622,.011,.525],120826:[.624,0,.525],120827:[.611,.01,.525],120828:[.622,.011,.525],120829:[.627,.01,.525],120830:[.621,.01,.525],120831:[.622,.011,.525]}},47033:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifBoldItalic=void 0;t.sansSerifBoldItalic={305:[.458,0,.256],567:[.458,.205,.286]}},94872:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifBold=void 0;t.sansSerifBold={33:[.694,0,.367],34:[.694,-.442,.558],35:[.694,.193,.917],36:[.75,.056,.55],37:[.75,.056,1.029],38:[.716,.022,.831],39:[.694,-.442,.306],40:[.75,.249,.428],41:[.75,.25,.428],42:[.75,-.293,.55],43:[.617,.116,.856],44:[.146,.106,.306],45:[.273,-.186,.367],46:[.146,0,.306],47:[.75,.249,.55],58:[.458,0,.306],59:[.458,.106,.306],61:[.407,-.094,.856],63:[.705,0,.519],64:[.704,.011,.733],91:[.75,.25,.343],93:[.75,.25,.343],94:[.694,-.537,.55],95:[-.023,.11,.55],126:[.344,-.198,.55],305:[.458,0,.256],567:[.458,.205,.286],768:[.694,-.537,0],769:[.694,-.537,0],770:[.694,-.537,0],771:[.694,-.548,0],772:[.66,-.56,0],774:[.694,-.552,0],775:[.695,-.596,0],776:[.695,-.595,0],778:[.694,-.538,0],779:[.694,-.537,0],780:[.657,-.5,0],8211:[.327,-.24,.55],8212:[.327,-.24,1.1],8213:[.327,-.24,1.1],8215:[-.023,.11,.55],8216:[.694,-.443,.306],8217:[.694,-.442,.306],8220:[.694,-.443,.558],8221:[.694,-.442,.558],8260:[.75,.249,.55],8710:[.694,0,.917]}},9255:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifItalic=void 0;t.sansSerifItalic={33:[.694,0,.319,{ic:.036}],34:[.694,-.471,.5],35:[.694,.194,.833,{ic:.018}],36:[.75,.056,.5,{ic:.065}],37:[.75,.056,.833],38:[.716,.022,.758],39:[.694,-.471,.278,{ic:.057}],40:[.75,.25,.389,{ic:.102}],41:[.75,.25,.389],42:[.75,-.306,.5,{ic:.068}],43:[.583,.083,.778],44:[.098,.125,.278],45:[.259,-.186,.333],46:[.098,0,.278],47:[.75,.25,.5,{ic:.1}],48:[.678,.022,.5,{ic:.049}],49:[.678,0,.5],50:[.678,0,.5,{ic:.051}],51:[.678,.022,.5,{ic:.044}],52:[.656,0,.5,{ic:.021}],53:[.656,.022,.5,{ic:.055}],54:[.678,.022,.5,{ic:.048}],55:[.656,.011,.5,{ic:.096}],56:[.678,.022,.5,{ic:.054}],57:[.677,.022,.5,{ic:.045}],58:[.444,0,.278],59:[.444,.125,.278],61:[.37,-.13,.778,{ic:.018}],63:[.704,0,.472,{ic:.064}],64:[.705,.01,.667,{ic:.04}],91:[.75,.25,.289,{ic:.136}],93:[.75,.25,.289,{ic:.064}],94:[.694,-.527,.5,{ic:.033}],95:[-.038,.114,.5,{ic:.065}],126:[.327,-.193,.5,{ic:.06}],305:[.444,0,.239,{ic:.019}],567:[.444,.204,.267,{ic:.019}],768:[.694,-.527,0],769:[.694,-.527,0,{ic:.063}],770:[.694,-.527,0,{ic:.033}],771:[.677,-.543,0,{ic:.06}],772:[.631,-.552,0,{ic:.064}],774:[.694,-.508,0,{ic:.073}],775:[.68,-.576,0],776:[.68,-.582,0,{ic:.04}],778:[.693,-.527,0],779:[.694,-.527,0,{ic:.063}],780:[.654,-.487,0,{ic:.06}],913:[.694,0,.667],914:[.694,0,.667,{ic:.029}],915:[.691,0,.542,{ic:.104}],916:[.694,0,.833],917:[.691,0,.597,{ic:.091}],918:[.694,0,.611,{ic:.091}],919:[.694,0,.708,{ic:.06}],920:[.715,.022,.778,{ic:.026}],921:[.694,0,.278,{ic:.06}],922:[.694,0,.694,{ic:.091}],923:[.694,0,.611],924:[.694,0,.875,{ic:.054}],925:[.694,0,.708,{ic:.058}],926:[.688,0,.667,{ic:.098}],927:[.716,.022,.736,{ic:.027}],928:[.691,0,.708,{ic:.06}],929:[.694,0,.639,{ic:.051}],931:[.694,0,.722,{ic:.091}],932:[.688,0,.681,{ic:.109}],933:[.716,0,.778,{ic:.065}],934:[.694,0,.722,{ic:.021}],935:[.694,0,.667,{ic:.091}],936:[.694,0,.778,{ic:.076}],937:[.716,0,.722,{ic:.047}],8211:[.312,-.236,.5,{ic:.065}],8212:[.312,-.236,1,{ic:.065}],8213:[.312,-.236,1,{ic:.065}],8215:[-.038,.114,.5,{ic:.065}],8216:[.694,-.471,.278,{ic:.058}],8217:[.694,-.471,.278,{ic:.057}],8220:[.694,-.471,.5,{ic:.114}],8221:[.694,-.471,.5],8260:[.75,.25,.5,{ic:.1}],8710:[.694,0,.833]}},83366:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerif=void 0;t.sansSerif={33:[.694,0,.319],34:[.694,-.471,.5],35:[.694,.194,.833],36:[.75,.056,.5],37:[.75,.056,.833],38:[.716,.022,.758],39:[.694,-.471,.278],40:[.75,.25,.389],41:[.75,.25,.389],42:[.75,-.306,.5],43:[.583,.082,.778],44:[.098,.125,.278],45:[.259,-.186,.333],46:[.098,0,.278],47:[.75,.25,.5],58:[.444,0,.278],59:[.444,.125,.278],61:[.37,-.13,.778],63:[.704,0,.472],64:[.704,.011,.667],91:[.75,.25,.289],93:[.75,.25,.289],94:[.694,-.527,.5],95:[-.038,.114,.5],126:[.327,-.193,.5],305:[.444,0,.239],567:[.444,.205,.267],768:[.694,-.527,0],769:[.694,-.527,0],770:[.694,-.527,0],771:[.677,-.543,0],772:[.631,-.552,0],774:[.694,-.508,0],775:[.68,-.576,0],776:[.68,-.582,0],778:[.694,-.527,0],779:[.694,-.527,0],780:[.654,-.487,0],913:[.694,0,.667],914:[.694,0,.667],915:[.691,0,.542],916:[.694,0,.833],917:[.691,0,.597],918:[.694,0,.611],919:[.694,0,.708],920:[.716,.021,.778],921:[.694,0,.278],922:[.694,0,.694],923:[.694,0,.611],924:[.694,0,.875],925:[.694,0,.708],926:[.688,0,.667],927:[.715,.022,.736],928:[.691,0,.708],929:[.694,0,.639],931:[.694,0,.722],932:[.688,0,.681],933:[.716,0,.778],934:[.694,0,.722],935:[.694,0,.667],936:[.694,0,.778],937:[.716,0,.722],8211:[.312,-.236,.5],8212:[.312,-.236,1],8213:[.312,-.236,1],8215:[-.038,.114,.5],8216:[.694,-.471,.278],8217:[.694,-.471,.278],8220:[.694,-.471,.5],8221:[.694,-.471,.5],8260:[.75,.25,.5],8710:[.694,0,.833]}},21616:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.scriptBold=void 0;t.scriptBold={}},24062:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.script=void 0;t.script={}},22578:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.smallop=void 0;t.smallop={40:[.85,.349,.458],41:[.85,.349,.458],47:[.85,.349,.578],91:[.85,.349,.417],92:[.85,.349,.578],93:[.85,.349,.417],123:[.85,.349,.583],125:[.85,.349,.583],710:[.744,-.551,.556],732:[.722,-.597,.556],770:[.744,-.551,0],771:[.722,-.597,0],8214:[.602,0,.778],8260:[.85,.349,.578],8593:[.6,0,.667],8595:[.6,0,.667],8657:[.599,0,.778],8659:[.6,0,.778],8719:[.75,.25,.944],8720:[.75,.25,.944],8721:[.75,.25,1.056],8730:[.85,.35,1,{ic:.02}],8739:[.627,.015,.333],8741:[.627,.015,.556],8747:[.805,.306,.472,{ic:.138}],8748:[.805,.306,.819,{ic:.138}],8749:[.805,.306,1.166,{ic:.138}],8750:[.805,.306,.472,{ic:.138}],8896:[.75,.249,.833],8897:[.75,.249,.833],8898:[.75,.249,.833],8899:[.75,.249,.833],8968:[.85,.349,.472],8969:[.85,.349,.472],8970:[.85,.349,.472],8971:[.85,.349,.472],9001:[.85,.35,.472],9002:[.85,.35,.472],9168:[.602,0,.667],10072:[.627,.015,.333],10216:[.85,.35,.472],10217:[.85,.35,.472],10752:[.75,.25,1.111],10753:[.75,.25,1.111],10754:[.75,.25,1.111],10756:[.75,.249,.833],10758:[.75,.249,.833],10764:[.805,.306,1.638,{ic:.138}],12296:[.85,.35,.472],12297:[.85,.35,.472]}},70286:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texCalligraphicBold=void 0;t.texCalligraphicBold={65:[.751,.049,.921,{ic:.068,sk:.224}],66:[.705,.017,.748,{sk:.16}],67:[.703,.02,.613,{sk:.16}],68:[.686,0,.892,{sk:.0958}],69:[.703,.016,.607,{ic:.02,sk:.128}],70:[.686,.03,.814,{ic:.116,sk:.128}],71:[.703,.113,.682,{sk:.128}],72:[.686,.048,.987,{sk:.128}],73:[.686,0,.642,{ic:.104,sk:.0319}],74:[.686,.114,.779,{ic:.158,sk:.192}],75:[.703,.017,.871,{sk:.0639}],76:[.703,.017,.788,{sk:.16}],77:[.703,.049,1.378,{sk:.16}],78:[.84,.049,.937,{ic:.168,sk:.0958}],79:[.703,.017,.906,{sk:.128}],80:[.686,.067,.81,{ic:.036,sk:.0958}],81:[.703,.146,.939,{sk:.128}],82:[.686,.017,.99,{sk:.0958}],83:[.703,.016,.696,{ic:.025,sk:.16}],84:[.72,.069,.644,{ic:.303,sk:.0319}],85:[.686,.024,.715,{ic:.056,sk:.0958}],86:[.686,.077,.737,{ic:.037,sk:.0319}],87:[.686,.077,1.169,{ic:.037,sk:.0958}],88:[.686,0,.817,{ic:.089,sk:.16}],89:[.686,.164,.759,{ic:.038,sk:.0958}],90:[.686,0,.818,{ic:.035,sk:.16}],305:[.452,.008,.394,{sk:.0319}],567:[.451,.201,.439,{sk:.0958}]}},57552:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texCalligraphic=void 0;t.texCalligraphic={65:[.728,.05,.798,{ic:.021,sk:.194}],66:[.705,.022,.657,{sk:.139}],67:[.705,.025,.527,{sk:.139}],68:[.683,0,.771,{sk:.0833}],69:[.705,.022,.528,{ic:.036,sk:.111}],70:[.683,.032,.719,{ic:.11,sk:.111}],71:[.704,.119,.595,{sk:.111}],72:[.683,.048,.845,{sk:.111}],73:[.683,0,.545,{ic:.097,sk:.0278}],74:[.683,.119,.678,{ic:.161,sk:.167}],75:[.705,.022,.762,{sk:.0556}],76:[.705,.022,.69,{sk:.139}],77:[.705,.05,1.201,{sk:.139}],78:[.789,.05,.82,{ic:.159,sk:.0833}],79:[.705,.022,.796,{sk:.111}],80:[.683,.057,.696,{ic:.037,sk:.0833}],81:[.705,.131,.817,{sk:.111}],82:[.682,.022,.848,{sk:.0833}],83:[.705,.022,.606,{ic:.036,sk:.139}],84:[.717,.068,.545,{ic:.288,sk:.0278}],85:[.683,.028,.626,{ic:.061,sk:.0833}],86:[.683,.052,.613,{ic:.045,sk:.0278}],87:[.683,.053,.988,{ic:.046,sk:.0833}],88:[.683,0,.713,{ic:.094,sk:.139}],89:[.683,.143,.668,{ic:.046,sk:.0833}],90:[.683,0,.725,{ic:.042,sk:.139}]}},24398:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texMathit=void 0;t.texMathit={65:[.716,0,.743],66:[.683,0,.704],67:[.705,.021,.716],68:[.683,0,.755],69:[.68,0,.678],70:[.68,0,.653],71:[.705,.022,.774],72:[.683,0,.743],73:[.683,0,.386],74:[.683,.021,.525],75:[.683,0,.769],76:[.683,0,.627],77:[.683,0,.897],78:[.683,0,.743],79:[.704,.022,.767],80:[.683,0,.678],81:[.704,.194,.767],82:[.683,.022,.729],83:[.705,.022,.562],84:[.677,0,.716],85:[.683,.022,.743],86:[.683,.022,.743],87:[.683,.022,.999],88:[.683,0,.743],89:[.683,0,.743],90:[.683,0,.613],97:[.442,.011,.511],98:[.694,.011,.46],99:[.441,.01,.46],100:[.694,.011,.511],101:[.442,.01,.46],102:[.705,.204,.307],103:[.442,.205,.46],104:[.694,.011,.511],105:[.656,.01,.307],106:[.656,.204,.307],107:[.694,.011,.46],108:[.694,.011,.256],109:[.442,.011,.818],110:[.442,.011,.562],111:[.442,.011,.511],112:[.442,.194,.511],113:[.442,.194,.46],114:[.442,.011,.422],115:[.442,.011,.409],116:[.626,.011,.332],117:[.441,.011,.537],118:[.443,.01,.46],119:[.443,.011,.664],120:[.442,.011,.464],121:[.441,.205,.486],122:[.442,.011,.409]}},20628:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texOldstyleBold=void 0;t.texOldstyleBold={48:[.46,.017,.575],49:[.461,0,.575],50:[.46,0,.575],51:[.461,.211,.575],52:[.469,.194,.575],53:[.461,.211,.575],54:[.66,.017,.575],55:[.476,.211,.575],56:[.661,.017,.575],57:[.461,.21,.575],65:[.751,.049,.921,{ic:.068,sk:.224}],66:[.705,.017,.748,{sk:.16}],67:[.703,.02,.613,{sk:.16}],68:[.686,0,.892,{sk:.0958}],69:[.703,.016,.607,{ic:.02,sk:.128}],70:[.686,.03,.814,{ic:.116,sk:.128}],71:[.703,.113,.682,{sk:.128}],72:[.686,.048,.987,{sk:.128}],73:[.686,0,.642,{ic:.104,sk:.0319}],74:[.686,.114,.779,{ic:.158,sk:.192}],75:[.703,.017,.871,{sk:.0639}],76:[.703,.017,.788,{sk:.16}],77:[.703,.049,1.378,{sk:.16}],78:[.84,.049,.937,{ic:.168,sk:.0958}],79:[.703,.017,.906,{sk:.128}],80:[.686,.067,.81,{ic:.036,sk:.0958}],81:[.703,.146,.939,{sk:.128}],82:[.686,.017,.99,{sk:.0958}],83:[.703,.016,.696,{ic:.025,sk:.16}],84:[.72,.069,.644,{ic:.303,sk:.0319}],85:[.686,.024,.715,{ic:.056,sk:.0958}],86:[.686,.077,.737,{ic:.037,sk:.0319}],87:[.686,.077,1.169,{ic:.037,sk:.0958}],88:[.686,0,.817,{ic:.089,sk:.16}],89:[.686,.164,.759,{ic:.038,sk:.0958}],90:[.686,0,.818,{ic:.035,sk:.16}]}},41855:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texOldstyle=void 0;t.texOldstyle={48:[.452,.022,.5],49:[.453,0,.5],50:[.453,0,.5],51:[.452,.216,.5],52:[.464,.194,.5],53:[.453,.216,.5],54:[.665,.022,.5],55:[.463,.216,.5],56:[.666,.021,.5],57:[.453,.216,.5],65:[.728,.05,.798,{ic:.021,sk:.194}],66:[.705,.022,.657,{sk:.139}],67:[.705,.025,.527,{sk:.139}],68:[.683,0,.771,{sk:.0833}],69:[.705,.022,.528,{ic:.036,sk:.111}],70:[.683,.032,.719,{ic:.11,sk:.111}],71:[.704,.119,.595,{sk:.111}],72:[.683,.048,.845,{sk:.111}],73:[.683,0,.545,{ic:.097,sk:.0278}],74:[.683,.119,.678,{ic:.161,sk:.167}],75:[.705,.022,.762,{sk:.0556}],76:[.705,.022,.69,{sk:.139}],77:[.705,.05,1.201,{sk:.139}],78:[.789,.05,.82,{ic:.159,sk:.0833}],79:[.705,.022,.796,{sk:.111}],80:[.683,.057,.696,{ic:.037,sk:.0833}],81:[.705,.131,.817,{sk:.111}],82:[.682,.022,.848,{sk:.0833}],83:[.705,.022,.606,{ic:.036,sk:.139}],84:[.717,.068,.545,{ic:.288,sk:.0278}],85:[.683,.028,.626,{ic:.061,sk:.0833}],86:[.683,.052,.613,{ic:.045,sk:.0278}],87:[.683,.053,.988,{ic:.046,sk:.0833}],88:[.683,0,.713,{ic:.094,sk:.139}],89:[.683,.143,.668,{ic:.046,sk:.0833}],90:[.683,0,.725,{ic:.042,sk:.139}]}},75431:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texSize3=void 0;t.texSize3={40:[1.45,.949,.736],41:[1.45,.949,.736],47:[1.45,.949,1.044],91:[1.45,.949,.528],92:[1.45,.949,1.044],93:[1.45,.949,.528],123:[1.45,.949,.75],125:[1.45,.949,.75],710:[.772,-.564,1.444],732:[.749,-.61,1.444],770:[.772,-.564,0],771:[.749,-.61,0],8260:[1.45,.949,1.044],8730:[1.45,.95,1,{ic:.02}],8968:[1.45,.949,.583],8969:[1.45,.949,.583],8970:[1.45,.949,.583],8971:[1.45,.949,.583],9001:[1.45,.95,.75],9002:[1.45,.949,.75],10216:[1.45,.95,.75],10217:[1.45,.949,.75],12296:[1.45,.95,.75],12297:[1.45,.949,.75]}},98278:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texSize4=void 0;t.texSize4={40:[1.75,1.249,.792],41:[1.75,1.249,.792],47:[1.75,1.249,1.278],91:[1.75,1.249,.583],92:[1.75,1.249,1.278],93:[1.75,1.249,.583],123:[1.75,1.249,.806],125:[1.75,1.249,.806],710:[.845,-.561,1.889,{ic:.013}],732:[.823,-.583,1.889],770:[.845,-.561,0,{ic:.013}],771:[.823,-.583,0],8260:[1.75,1.249,1.278],8730:[1.75,1.25,1,{ic:.02}],8968:[1.75,1.249,.639],8969:[1.75,1.249,.639],8970:[1.75,1.249,.639],8971:[1.75,1.249,.639],9001:[1.75,1.248,.806],9002:[1.75,1.248,.806],9115:[1.154,.655,.875],9116:[.61,.01,.875],9117:[1.165,.644,.875],9118:[1.154,.655,.875],9119:[.61,.01,.875],9120:[1.165,.644,.875],9121:[1.154,.645,.667],9122:[.602,0,.667],9123:[1.155,.644,.667],9124:[1.154,.645,.667],9125:[.602,0,.667],9126:[1.155,.644,.667],9127:[.899,.01,.889],9128:[1.16,.66,.889],9129:[.01,.899,.889],9130:[.29,.015,.889],9131:[.899,.01,.889],9132:[1.16,.66,.889],9133:[.01,.899,.889],9143:[.935,.885,1.056],10216:[1.75,1.248,.806],10217:[1.75,1.248,.806],12296:[1.75,1.248,.806],12297:[1.75,1.248,.806],57344:[.625,.014,1.056],57345:[.605,.014,1.056,{ic:.02}],57680:[.12,.213,.45,{ic:.01}],57681:[.12,.213,.45,{ic:.024}],57682:[.333,0,.45,{ic:.01}],57683:[.333,0,.45,{ic:.024}],57684:[.32,.2,.4,{ic:.01}],57685:[.333,0,.9,{ic:.01}],57686:[.12,.213,.9,{ic:.01}]}},90456:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texVariant=void 0;t.texVariant={710:[.845,-.561,2.333,{ic:.013}],732:[.899,-.628,2.333],770:[.845,-.561,0,{ic:.013}],771:[.899,-.628,0],1008:[.434,.006,.667,{ic:.067}],8463:[.695,.013,.54,{ic:.022}],8592:[.437,-.064,.5],8594:[.437,-.064,.5],8652:[.514,.014,1],8708:[.86,.166,.556],8709:[.587,0,.778],8722:[.27,-.23,.5],8726:[.43,.023,.778],8733:[.472,-.028,.778],8739:[.43,.023,.222],8740:[.43,.023,.222,{ic:.018}],8741:[.431,.023,.389],8742:[.431,.024,.389,{ic:.018}],8764:[.365,-.132,.778],8776:[.481,-.05,.778],8808:[.752,.284,.778],8809:[.752,.284,.778],8816:[.919,.421,.778],8817:[.919,.421,.778],8840:[.828,.33,.778],8841:[.828,.33,.778],8842:[.634,.255,.778],8843:[.634,.254,.778],8872:[.694,0,.611],8901:[.189,0,.278],8994:[.378,-.122,.778],8995:[.378,-.143,.778],9651:[.575,.02,.722],9661:[.576,.019,.722],10887:[.801,.303,.778],10888:[.801,.303,.778],10955:[.752,.332,.778],10956:[.752,.333,.778]}},86810:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.px=t.emRounded=t.em=t.percent=t.length2em=t.MATHSPACE=t.RELUNITS=t.UNITS=t.BIGDIMEN=void 0;t.BIGDIMEN=1e6;t.UNITS={px:1,in:96,cm:96/2.54,mm:96/25.4};t.RELUNITS={em:1,ex:.431,pt:1/10,pc:12/10,mu:1/18};t.MATHSPACE={veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18,thin:.04,medium:.06,thick:.1,normal:1,big:2,small:1/Math.sqrt(2),infinity:t.BIGDIMEN};function e(c,e,i,f){if(e===void 0){e=0}if(i===void 0){i=1}if(f===void 0){f=16}if(typeof c!=="string"){c=String(c)}if(c===""||c==null){return e}if(t.MATHSPACE[c]){return t.MATHSPACE[c]}var r=c.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!r){return e}var s=parseFloat(r[1]||"1"),a=r[2];if(t.UNITS.hasOwnProperty(a)){return s*t.UNITS[a]/f/i}if(t.RELUNITS.hasOwnProperty(a)){return s*t.RELUNITS[a]}if(a==="%"){return s/100*e}return s*e}t.length2em=e;function i(c){return(100*c).toFixed(1).replace(/\.?0+$/,"")+"%"}t.percent=i;function f(c){if(Math.abs(c)<.001)return"0";return c.toFixed(3).replace(/\.?0+$/,"")+"em"}t.em=f;function r(c,t){if(t===void 0){t=16}c=(Math.round(c*t)+.05)/t;if(Math.abs(c)<.001)return"0em";return c.toFixed(3).replace(/\.?0+$/,"")+"em"}t.emRounded=r;function s(c,e,i){if(e===void 0){e=-t.BIGDIMEN}if(i===void 0){i=16}c*=i;if(e&&c{!function(t,n){true?e.exports=n():0}(self,(()=>(()=>{"use strict";var e={6:(e,t)=>{function n(e){try{const t=new URL(e),n=t.password&&t.username?`${t.protocol}//${t.username}:${t.password}@${t.host}`:t.username?`${t.protocol}//${t.username}@${t.host}`:`${t.protocol}//${t.host}`;return e.toLocaleLowerCase().startsWith(n.toLocaleLowerCase())}catch(e){return!1}}Object.defineProperty(t,"__esModule",{value:!0}),t.LinkComputer=t.WebLinkProvider=void 0,t.WebLinkProvider=class{constructor(e,t,n,r={}){this._terminal=e,this._regex=t,this._handler=n,this._options=r}provideLinks(e,t){const n=r.computeLink(e,this._regex,this._terminal,this._handler);t(this._addCallbacks(n))}_addCallbacks(e){return e.map((e=>(e.leave=this._options.leave,e.hover=(t,n)=>{if(this._options.hover){const{range:r}=e;this._options.hover(t,n,r)}},e)))}};class r{static computeLink(e,t,i,o){const s=new RegExp(t.source,(t.flags||"")+"g"),[a,l]=r._getWindowedLineStrings(e-1,i),c=a.join("");let p;const d=[];for(;p=s.exec(c);){const e=p[0];if(!n(e))continue;const[t,s]=r._mapStrIdx(i,l,0,p.index),[a,c]=r._mapStrIdx(i,t,s,e.length);if(-1===t||-1===s||-1===a||-1===c)continue;const h={start:{x:s+1,y:t+1},end:{x:c,y:a+1}};d.push({range:h,text:e,activate:o})}return d}static _getWindowedLineStrings(e,t){let n,r=e,i=e,o=0,s="";const a=[];if(n=t.buffer.active.getLine(e)){const e=n.translateToString(!0);if(n.isWrapped&&" "!==e[0]){for(o=0;(n=t.buffer.active.getLine(--r))&&o<2048&&(s=n.translateToString(!0),o+=s.length,a.push(s),n.isWrapped&&-1===s.indexOf(" ")););a.reverse()}for(a.push(e),o=0;(n=t.buffer.active.getLine(++i))&&n.isWrapped&&o<2048&&(s=n.translateToString(!0),o+=s.length,a.push(s),-1===s.indexOf(" ")););}return[a,r]}static _mapStrIdx(e,t,n,r){const i=e.buffer.active,o=i.getNullCell();let s=n;for(;r;){const e=i.getLine(t);if(!e)return[-1,-1];for(let n=s;n{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.WebLinksAddon=void 0;const t=n(6),i=/(https?|HTTPS?):[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function o(e,t){const n=window.open();if(n){try{n.opener=null}catch{}n.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}e.WebLinksAddon=class{constructor(e=o,t={}){this._handler=e,this._options=t}activate(e){this._terminal=e;const n=this._options,r=n.urlRegex||i;this._linkProvider=this._terminal.registerLinkProvider(new t.WebLinkProvider(this._terminal,r,this._handler,n))}dispose(){this._linkProvider?.dispose()}}})(),r})()))}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1834.7445ad0c82371ac40737.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1834.7445ad0c82371ac40737.js new file mode 100644 index 0000000000000000000000000000000000000000..014fe29122f42bcc046373c4daf26e58446061ed --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1834.7445ad0c82371ac40737.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1834],{11834:(e,t,r)=>{r.r(t);r.d(t,{asciiArmor:()=>s});function a(e){var t=e.match(/^\s*\S/);e.skipToEnd();return t?"error":null}const s={name:"asciiarmor",token:function(e,t){var r;if(t.state=="top"){if(e.sol()&&(r=e.match(/^-----BEGIN (.*)?-----\s*$/))){t.state="headers";t.type=r[1];return"tag"}return a(e)}else if(t.state=="headers"){if(e.sol()&&e.match(/^\w+:/)){t.state="header";return"atom"}else{var s=a(e);if(s)t.state="body";return s}}else if(t.state=="header"){e.skipToEnd();t.state="headers";return"string"}else if(t.state=="body"){if(e.sol()&&(r=e.match(/^-----END (.*)?-----\s*$/))){if(r[1]!=t.type)return"error";t.state="end";return"tag"}else{if(e.eatWhile(/[A-Za-z0-9+\/=]/)){return null}else{e.next();return"error"}}}else if(t.state=="end"){return a(e)}},blankLine:function(e){if(e.state=="headers")e.state="body"},startState:function(){return{state:"top",type:null}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1887.56f83f163a18c61efb16.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1887.56f83f163a18c61efb16.js new file mode 100644 index 0000000000000000000000000000000000000000..7e8c3e789a6e20a1d8a23cd843cf61063a774a64 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1887.56f83f163a18c61efb16.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1887],{81887:(e,t,r)=>{r.r(t);r.d(t,{eiffel:()=>s});function n(e){var t={};for(var r=0,n=e.length;r>"]);function u(e,t,r){r.tokenize.push(e);return e(t,r)}function l(e,t){if(e.eatSpace())return null;var r=e.next();if(r=='"'||r=="'"){return u(o(r,"string"),e,t)}else if(r=="-"&&e.eat("-")){e.skipToEnd();return"comment"}else if(r==":"&&e.eat("=")){return"operator"}else if(/[0-9]/.test(r)){e.eatWhile(/[xXbBCc0-9\.]/);e.eat(/[\?\!]/);return"variable"}else if(/[a-zA-Z_0-9]/.test(r)){e.eatWhile(/[a-zA-Z_0-9]/);e.eat(/[\?\!]/);return"variable"}else if(/[=+\-\/*^%<>~]/.test(r)){e.eatWhile(/[=+\-\/*^%<>~]/);return"operator"}else{return null}}function o(e,t,r){return function(n,a){var i=false,u;while((u=n.next())!=null){if(u==e&&(r||!i)){a.tokenize.pop();break}i=!i&&u=="%"}return t}}const s={name:"eiffel",startState:function(){return{tokenize:[l]}},token:function(e,t){var r=t.tokenize[t.tokenize.length-1](e,t);if(r=="variable"){var n=e.current();r=a.propertyIsEnumerable(e.current())?"keyword":i.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(n)?"tag":/^0[bB][0-1]+$/g.test(n)?"number":/^0[cC][0-7]+$/g.test(n)?"number":/^0[xX][a-fA-F0-9]+$/g.test(n)?"number":/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(n)?"number":/^[0-9]+$/g.test(n)?"number":"variable"}return r},languageData:{commentTokens:{line:"--"}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1954.f1c519cb1415c7da3e8c.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1954.f1c519cb1415c7da3e8c.js new file mode 100644 index 0000000000000000000000000000000000000000..90006b7ffccef76fef3d8174d089dec1a84ec9ee --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1954.f1c519cb1415c7da3e8c.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1954],{21954:(e,r,o)=>{o.r(r);o.d(r,{fSharp:()=>n,oCaml:()=>i,sml:()=>d});function t(e){var r={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"};var o=e.extraWords||{};for(var t in o){if(o.hasOwnProperty(t)){r[t]=e.extraWords[t]}}var i=[];for(var n in r){i.push(n)}function d(o,t){var i=o.next();if(i==='"'){t.tokenize=w;return t.tokenize(o,t)}if(i==="{"){if(o.eat("|")){t.longString=true;t.tokenize=l;return t.tokenize(o,t)}}if(i==="("){if(o.match(/^\*(?!\))/)){t.commentLevel++;t.tokenize=k;return t.tokenize(o,t)}}if(i==="~"||i==="?"){o.eatWhile(/\w/);return"variableName.special"}if(i==="`"){o.eatWhile(/\w/);return"quote"}if(i==="/"&&e.slashComments&&o.eat("/")){o.skipToEnd();return"comment"}if(/\d/.test(i)){if(i==="0"&&o.eat(/[bB]/)){o.eatWhile(/[01]/)}if(i==="0"&&o.eat(/[xX]/)){o.eatWhile(/[0-9a-fA-F]/)}if(i==="0"&&o.eat(/[oO]/)){o.eatWhile(/[0-7]/)}else{o.eatWhile(/[\d_]/);if(o.eat(".")){o.eatWhile(/[\d]/)}if(o.eat(/[eE]/)){o.eatWhile(/[\d\-+]/)}}return"number"}if(/[+\-*&%=<>!?|@\.~:]/.test(i)){return"operator"}if(/[\w\xa1-\uffff]/.test(i)){o.eatWhile(/[\w\xa1-\uffff]/);var n=o.current();return r.hasOwnProperty(n)?r[n]:"variable"}return null}function w(e,r){var o,t=false,i=false;while((o=e.next())!=null){if(o==='"'&&!i){t=true;break}i=!i&&o==="\\"}if(t&&!i){r.tokenize=d}return"string"}function k(e,r){var o,t;while(r.commentLevel>0&&(t=e.next())!=null){if(o==="("&&t==="*")r.commentLevel++;if(o==="*"&&t===")")r.commentLevel--;o=t}if(r.commentLevel<=0){r.tokenize=d}return"comment"}function l(e,r){var o,t;while(r.longString&&(t=e.next())!=null){if(o==="|"&&t==="}")r.longString=false;o=t}if(!r.longString){r.tokenize=d}return"string"}return{startState:function(){return{tokenize:d,commentLevel:0,longString:false}},token:function(e,r){if(e.eatSpace())return null;return r.tokenize(e,r)},languageData:{autocomplete:i,commentTokens:{line:e.slashComments?"//":undefined,block:{open:"(*",close:"*)"}}}}}const i=t({name:"ocaml",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}});const n=t({name:"fsharp",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:true});const d=t({name:"sml",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:true})}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1962.6a7da74e809b70d5200d.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1962.6a7da74e809b70d5200d.js new file mode 100644 index 0000000000000000000000000000000000000000..3e7497290d96eef46e2772f0dab8d09986b66f0b --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1962.6a7da74e809b70d5200d.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1962],{91962:(e,t,a)=>{a.r(t);a.d(t,{autoCloseTags:()=>ze,html:()=>Je,htmlCompletionSource:()=>Re,htmlCompletionSourceWith:()=>We,htmlLanguage:()=>Ue,htmlPlain:()=>je});var n=a(27421);var l=a(45145);var r=a(66575);const s=54,o=1,u=55,O=2,i=56,p=3,c=4,d=5,f=6,h=7,m=8,S=9,g=10,P=11,x=12,b=13,V=57,v=14,_=58,y=20,T=22,q=23,w=24,$=26,Q=27,X=28,A=31,C=34,k=36,Y=37,M=0,B=1;const G={area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true,menuitem:true};const E={dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true};const Z={dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}};function D(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function R(e){return e==9||e==10||e==13||e==32}let W=null,H=null,N=0;function I(e,t){let a=e.pos+t;if(N==a&&H==e)return W;let n=e.peek(t);while(R(n))n=e.peek(++t);let l="";for(;;){if(!D(n))break;l+=String.fromCharCode(n);n=e.peek(++t)}H=e;N=a;return W=l?l.toLowerCase():n==L||n==z?undefined:null}const j=60,U=62,J=47,L=63,z=33,F=45;function K(e,t){this.name=e;this.parent=t;this.hash=t?t.hash:0;for(let a=0;a-1?new K(I(n,1)||"",e):e},reduce(e,t){return t==y&&e?e.parent:e},reuse(e,t,a,n){let l=t.type.id;return l==f||l==k?new K(I(n,1)||"",e):e},hash(e){return e?e.hash:0},strict:false});const ae=new n.Lu(((e,t)=>{if(e.next!=j){if(e.next<0&&t.context)e.acceptToken(V);return}e.advance();let a=e.next==J;if(a)e.advance();let n=I(e,0);if(n===undefined)return;if(!n)return e.acceptToken(a?v:f);let l=t.context?t.context.name:null;if(a){if(n==l)return e.acceptToken(P);if(l&&E[l])return e.acceptToken(V,-2);if(t.dialectEnabled(M))return e.acceptToken(x);for(let e=t.context;e;e=e.parent)if(e.name==n)return;e.acceptToken(b)}else{if(n=="script")return e.acceptToken(h);if(n=="style")return e.acceptToken(m);if(n=="textarea")return e.acceptToken(S);if(G.hasOwnProperty(n))return e.acceptToken(g);if(l&&Z[l]&&Z[l][n])e.acceptToken(V,-1);else e.acceptToken(f)}}),{contextual:true});const ne=new n.Lu((e=>{for(let t=0,a=0;;a++){if(e.next<0){if(a)e.acceptToken(_);break}if(e.next==F){t++}else if(e.next==U&&t>=2){if(a>3)e.acceptToken(_,-2);break}else{t=0}e.advance()}}));function le(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return true;return false}const re=new n.Lu(((e,t)=>{if(e.next==J&&e.peek(1)==U){let a=t.dialectEnabled(B)||le(t.context);e.acceptToken(a?d:c,2)}else if(e.next==U){e.acceptToken(c,1)}}));function se(e,t,a){let l=2+e.length;return new n.Lu((n=>{for(let r=0,s=0,o=0;;o++){if(n.next<0){if(o)n.acceptToken(t);break}if(r==0&&n.next==j||r==1&&n.next==J||r>=2&&rs)n.acceptToken(t,-s);else n.acceptToken(a,-(s-2));break}else if((n.next==10||n.next==13)&&o){n.acceptToken(t,1);break}else{r=s=0}n.advance()}}))}const oe=se("script",s,o);const ue=se("style",u,O);const Oe=se("textarea",i,p);const ie=(0,l.styleTags)({"Text RawText":l.tags.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":l.tags.angleBracket,TagName:l.tags.tagName,"MismatchedCloseTag/TagName":[l.tags.tagName,l.tags.invalid],AttributeName:l.tags.attributeName,"AttributeValue UnquotedAttributeValue":l.tags.attributeValue,Is:l.tags.definitionOperator,"EntityReference CharacterReference":l.tags.character,Comment:l.tags.blockComment,ProcessingInst:l.tags.processingInstruction,DoctypeDecl:l.tags.documentMeta});const pe=n.U1.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:te,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[ie],skippedNodes:[0],repeatNodeCount:9,tokenData:"#%g!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs4ysv-_vw5iwxJ^x}-_}!OKP!O!P-_!P!Q$q!Q![-_![!]!!O!]!^-_!^!_!&W!_!`#$o!`!a&X!a!c-_!c!}!!O!}#R-_#R#S!!O#S#T3V#T#o!!O#o#s-_#s$f$q$f%W-_%W%o!!O%o%p-_%p&a!!O&a&b-_&b1p!!O1p4U-_4U4d!!O4d4e-_4e$IS!!O$IS$I`-_$I`$Ib!!O$Ib$Kh-_$Kh%#t!!O%#t&/x-_&/x&Et!!O&Et&FV-_&FV;'S!!O;'S;:j!&Q;:j;=`4s<%l?&r-_?&r?Ah!!O?Ah?BY$q?BY?Mn!!O?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pT`POv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!cpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({W`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!a`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!a`!cpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYkWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]``P!a`!cp!^^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_1n!_!a&X!a#S-_#S#T3V#T#s-_#s$f$q$f;'S-_;'S;=`4s<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/echSkWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!^!_0p!a#S/^#S#T0p#T#s/^#s$f+P$f;'S/^;'S;=`1h<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0uXhSqr0psw0px!P0p!Q!_0p!a#s0p$f;'S0p;'S;=`1b<%l?Ah0p?BY?Mn0pS1eP;=`<%l0p[1kP;=`<%l/^!U1wbhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!U3SP;=`<%l1n!V3bchS`P!a`!cpOq&Xqr3Vrs&}sv3Vvw0pwx(tx!P3V!P!Q&X!Q!^3V!^!_1n!_!a&X!a#s3V#s$f&X$f;'S3V;'S;=`4m<%l?Ah3V?Ah?BY&X?BY?Mn3V?MnO&X!V4pP;=`<%l3V!_4vP;=`<%l-_!Z5SV!`h`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_5rjhSkWc!ROX7dXZ8qZ[7d[^8q^p7dqr:crs8qst@Ttw:cwx8qx!P:c!P!Q7d!Q!]:c!]!^/^!^!_=p!_!a8q!a#S:c#S#T=p#T#s:c#s$f7d$f;'S:c;'S;=`?}<%l?Ah:c?Ah?BY7d?BY?Mn:c?MnO7d!Z7ibkWOX7dXZ8qZ[7d[^8q^p7dqr7drs8qst+Ptw7dwx8qx!]7d!]!^9f!^!a8q!a#S7d#S#T8q#T;'S7d;'S;=`:]<%lO7d!R8tVOp8qqs8qt!]8q!]!^9Z!^;'S8q;'S;=`9`<%lO8q!R9`Oa!R!R9cP;=`<%l8q!Z9mYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z:`P;=`<%l7d!_:jjhSkWOX7dXZ8qZ[7d[^8q^p7dqr:crs8qst/^tw:cwx8qx!P:c!P!Q7d!Q!]:c!]!^<[!^!_=p!_!a8q!a#S:c#S#T=p#T#s:c#s$f7d$f;'S:c;'S;=`?}<%l?Ah:c?Ah?BY7d?BY?Mn:c?MnO7d!_b#d#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!>kdhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#V1n#V#W!?y#W#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!@SdhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#h1n#h#i!Ab#i#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!AkdhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#m1n#m#n!By#n#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!CSdhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#d1n#d#e!Db#e#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!DkdhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#X1n#X#Y!5]#Y#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!FSchS!a`!cpOq!G_qr!Eyrs!HUsv!Eyvw!Ncwx!Jvx!P!Ey!P!Q!G_!Q!_!Ey!_!a!G_!a!b##T!b#s!Ey#s$f!G_$f;'S!Ey;'S;=`#$i<%l?Ah!Ey?Ah?BY!G_?BY?Mn!Ey?MnO!G_!R!GfY!a`!cpOr!G_rs!HUsv!G_vw!Hpwx!Jvx!a!G_!a!b!Lv!b;'S!G_;'S;=`!N]<%lO!G_q!HZV!cpOv!HUvx!Hpx!a!HU!a!b!Iq!b;'S!HU;'S;=`!Jp<%lO!HUP!HsTO!a!Hp!a!b!IS!b;'S!Hp;'S;=`!Ik<%lO!HpP!IVTO!`!Hp!`!a!If!a;'S!Hp;'S;=`!Ik<%lO!HpP!IkOxPP!InP;=`<%l!Hpq!IvV!cpOv!HUvx!Hpx!`!HU!`!a!J]!a;'S!HU;'S;=`!Jp<%lO!HUq!JdS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!JsP;=`<%l!HUa!J{X!a`Or!Jvrs!Hpsv!Jvvw!Hpw!a!Jv!a!b!Kh!b;'S!Jv;'S;=`!Lp<%lO!Jva!KmX!a`Or!Jvrs!Hpsv!Jvvw!Hpw!`!Jv!`!a!LY!a;'S!Jv;'S;=`!Lp<%lO!Jva!LaT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!LsP;=`<%l!Jv!R!L}Y!a`!cpOr!G_rs!HUsv!G_vw!Hpwx!Jvx!`!G_!`!a!Mm!a;'S!G_;'S;=`!N]<%lO!G_!R!MvV!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!N`P;=`<%l!G_T!NhbhSOq!Hpqr!Ncrs!Hpsw!Ncwx!Hpx!P!Nc!P!Q!Hp!Q!_!Nc!_!a!Hp!a!b# p!b#s!Nc#s$f!Hp$f;'S!Nc;'S;=`#!}<%l?Ah!Nc?Ah?BY!Hp?BY?Mn!Nc?MnO!HpT# ubhSOq!Hpqr!Ncrs!Hpsw!Ncwx!Hpx!P!Nc!P!Q!Hp!Q!_!Nc!_!`!Hp!`!a!If!a#s!Nc#s$f!Hp$f;'S!Nc;'S;=`#!}<%l?Ah!Nc?Ah?BY!Hp?BY?Mn!Nc?MnO!HpT##QP;=`<%l!Nc!V##^chS!a`!cpOq!G_qr!Eyrs!HUsv!Eyvw!Ncwx!Jvx!P!Ey!P!Q!G_!Q!_!Ey!_!`!G_!`!a!Mm!a#s!Ey#s$f!G_$f;'S!Ey;'S;=`#$i<%l?Ah!Ey?Ah?BY!G_?BY?Mn!Ey?MnO!G_!V#$lP;=`<%l!Ey!V#$zXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[oe,ue,Oe,re,ae,ne,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:485},tokenPrec:487});function ce(e,t){let a=Object.create(null);for(let n of e.getChildren(q)){let e=n.getChild(w),l=n.getChild($)||n.getChild(Q);if(e)a[t.read(e.from,e.to)]=!l?"":l.type.id==$?t.read(l.from+1,l.to-1):t.read(l.from,l.to)}return a}function de(e,t){let a=e.getChild(T);return a?t.read(a.from,a.to):" "}function fe(e,t,a){let n;for(let l of a){if(!l.attrs||l.attrs(n||(n=ce(e.node.parent.firstChild,t))))return{parser:l.parser}}return null}function he(e=[],t=[]){let a=[],n=[],l=[],s=[];for(let r of e){let e=r.tag=="script"?a:r.tag=="style"?n:r.tag=="textarea"?l:s;e.push(r)}let o=t.length?Object.create(null):null;for(let r of t)(o[r.name]||(o[r.name]=[])).push(r);return(0,r.parseMixed)(((e,t)=>{let r=e.type.id;if(r==X)return fe(e,t,a);if(r==A)return fe(e,t,n);if(r==C)return fe(e,t,l);if(r==k&&s.length){let a=e.node,n=de(a,t),l;for(let r of s){if(r.tag==n&&(!r.attrs||r.attrs(l||(l=ce(a,t))))){let t=a.parent.lastChild;return{parser:r.parser,overlay:[{from:e.to,to:t.type.id==Y?t.from:a.parent.to}]}}}}if(o&&r==q){let a=e.node,n;if(n=a.firstChild){let e=o[t.read(n.from,n.to)];if(e)for(let n of e){if(n.tagName&&n.tagName!=de(a.parent,t))continue;let e=a.lastChild;if(e.type.id==$){let t=e.from+1;let a=e.lastChild,l=e.to-(a&&a.isError?0:1);if(l>t)return{parser:n.parser,overlay:[{from:t,to:l}]}}else if(e.type.id==Q){return{parser:n.parser,overlay:[{from:e.from,to:e.to}]}}}}}return null}))}var me=a(37425);var Se=a(88103);var ge=a(22819);var Pe=a(71674);var xe=a(4452);const be=["_blank","_self","_top","_parent"];const Ve=["ascii","utf-8","utf-16","latin1","latin1"];const ve=["get","post","put","delete"];const _e=["application/x-www-form-urlencoded","multipart/form-data","text/plain"];const ye=["true","false"];const Te={};const qe={a:{attrs:{href:null,ping:null,type:null,media:null,target:be,hreflang:null}},abbr:Te,address:Te,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Te,aside:Te,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Te,base:{attrs:{href:null,target:be}},bdi:Te,bdo:Te,blockquote:{attrs:{cite:null}},body:Te,br:Te,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:_e,formmethod:ve,formnovalidate:["novalidate"],formtarget:be,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Te,center:Te,cite:Te,code:Te,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Te,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Te,div:Te,dl:Te,dt:Te,em:Te,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Te,figure:Te,footer:Te,form:{attrs:{action:null,name:null,"accept-charset":Ve,autocomplete:["on","off"],enctype:_e,method:ve,novalidate:["novalidate"],target:be}},h1:Te,h2:Te,h3:Te,h4:Te,h5:Te,h6:Te,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Te,hgroup:Te,hr:Te,html:{attrs:{manifest:null}},i:Te,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:_e,formmethod:ve,formnovalidate:["novalidate"],formtarget:be,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Te,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Te,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Te,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Ve,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Te,noscript:Te,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Te,param:{attrs:{name:null,value:null}},pre:Te,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Te,rt:Te,ruby:Te,samp:Te,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Ve}},section:Te,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Te,source:{attrs:{src:null,type:null,media:null}},span:Te,strong:Te,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Te,summary:Te,sup:Te,table:Te,tbody:Te,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Te,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Te,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Te,time:{attrs:{datetime:null}},title:Te,tr:Te,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Te,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Te};const we={accesskey:null,class:null,contenteditable:ye,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:ye,autocorrect:ye,autocapitalize:ye,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":ye,"aria-autocomplete":["inline","list","both","none"],"aria-busy":ye,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":ye,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":ye,"aria-hidden":ye,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":ye,"aria-multiselectable":ye,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":ye,"aria-relevant":null,"aria-required":ye,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null};const $e=("beforeunload copy cut dragstart dragover dragleave dragenter dragend "+"drag paste focus blur change click load mousedown mouseenter mouseleave "+"mouseup keydown keyup resize scroll unload").split(" ").map((e=>"on"+e));for(let Fe of $e)we[Fe]=null;class Qe{constructor(e,t){this.tags=Object.assign(Object.assign({},qe),e);this.globalAttrs=Object.assign(Object.assign({},we),t);this.allTags=Object.keys(this.tags);this.globalAttrNames=Object.keys(this.globalAttrs)}}Qe.default=new Qe;function Xe(e,t,a=e.length){if(!t)return"";let n=t.firstChild;let l=n&&n.getChild("TagName");return l?e.sliceString(l.from,Math.min(l.to,a)):""}function Ae(e,t=false){for(;e;e=e.parent)if(e.name=="Element"){if(t)t=false;else return e}return null}function Ce(e,t,a){let n=a.tags[Xe(e,Ae(t))];return(n===null||n===void 0?void 0:n.children)||a.allTags}function ke(e,t){let a=[];for(let n=Ae(t);n&&!n.type.isTop;n=Ae(n.parent)){let l=Xe(e,n);if(l&&n.lastChild.name=="CloseTag")break;if(l&&a.indexOf(l)<0&&(t.name=="EndTag"||t.from>=n.firstChild.to))a.push(l)}return a}const Ye=/^[:\-\.\w\u00b7-\uffff]*$/;function Me(e,t,a,n,l){let r=/\s*>/.test(e.sliceDoc(l,l+5))?"":">";let s=Ae(a,true);return{from:n,to:l,options:Ce(e.doc,s,t).map((e=>({label:e,type:"type"}))).concat(ke(e.doc,a).map(((e,t)=>({label:"/"+e,apply:"/"+e+r,type:"type",boost:99-t})))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Be(e,t,a,n){let l=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:a,to:n,options:ke(e.doc,t).map(((e,t)=>({label:e,apply:e+l,type:"type",boost:99-t}))),validFor:Ye}}function Ge(e,t,a,n){let l=[],r=0;for(let s of Ce(e.doc,a,t))l.push({label:"<"+s,type:"type"});for(let s of ke(e.doc,a))l.push({label:"",type:"type",boost:99-r++});return{from:n,to:n,options:l,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function Ee(e,t,a,n,l){let r=Ae(a),s=r?t.tags[Xe(e.doc,r)]:null;let o=s&&s.attrs?Object.keys(s.attrs):[];let u=s&&s.globalAttrs===false?o:o.length?o.concat(t.globalAttrNames):t.globalAttrNames;return{from:n,to:l,options:u.map((e=>({label:e,type:"property"}))),validFor:Ye}}function Ze(e,t,a,n,l){var r;let s=(r=a.parent)===null||r===void 0?void 0:r.getChild("AttributeName");let o=[],u=undefined;if(s){let r=e.sliceDoc(s.from,s.to);let O=t.globalAttrs[r];if(!O){let n=Ae(a),l=n?t.tags[Xe(e.doc,n)]:null;O=(l===null||l===void 0?void 0:l.attrs)&&l.attrs[r]}if(O){let t=e.sliceDoc(n,l).toLowerCase(),a='"',r='"';if(/^['"]/.test(t)){u=t[0]=='"'?/^[^"]*$/:/^[^']*$/;a="";r=e.sliceDoc(l,l+1)==t[0]?"":t[0];t=t.slice(1);n++}else{u=/^[^\s<>='"]*$/}for(let e of O)o.push({label:e,apply:a+e+r,type:"constant"})}}return{from:n,to:l,options:o,validFor:u}}function De(e,t){let{state:a,pos:n}=t,l=(0,xe.syntaxTree)(a).resolveInner(n,-1),r=l.resolve(n);for(let s=n,o;r==l&&(o=l.childBefore(s));){let e=o.lastChild;if(!e||!e.type.isError||e.fromDe(n,e)}const He=Se.javascriptLanguage.parser.configure({top:"SingleExpression"});const Ne=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:Se.typescriptLanguage.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:Se.jsxLanguage.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:Se.tsxLanguage.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:He},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Se.javascriptLanguage.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:me.cssLanguage.parser}];const Ie=[{name:"style",parser:me.cssLanguage.parser.configure({top:"Styles"})}].concat($e.map((e=>({name:e,parser:Se.javascriptLanguage.parser}))));const je=xe.LRLanguage.define({name:"html",parser:pe.configure({props:[xe.indentNodeProp.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);if(e.node.to<=e.pos+t[0].length)return e.continue();return e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}});const Ue=je.configure({wrap:he(Ne,Ie)});function Je(e={}){let t="",a;if(e.matchClosingTags===false)t="noMatch";if(e.selfClosingTags===true)t=(t?t+" ":"")+"selfClosing";if(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)a=he((e.nestedLanguages||[]).concat(Ne),(e.nestedAttributes||[]).concat(Ie));let n=a?je.configure({wrap:a,dialect:t}):t?Ue.configure({dialect:t}):Ue;return new xe.LanguageSupport(n,[Ue.data.of({autocomplete:We(e)}),e.autoCloseTags!==false?ze:[],(0,Se.javascript)().support,(0,me.css)().support])}const Le=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));const ze=ge.EditorView.inputHandler.of(((e,t,a,n,l)=>{if(e.composing||e.state.readOnly||t!=a||n!=">"&&n!="/"||!Ue.isActiveAt(e.state,t,-1))return false;let r=l(),{state:s}=r;let o=s.changeByRange((e=>{var t,a,l;let r=s.doc.sliceString(e.from-1,e.to)==n;let{head:o}=e,u=(0,xe.syntaxTree)(s).resolveInner(o,-1),O;if(r&&n==">"&&u.name=="EndTag"){let n=u.parent;if(((a=(t=n.parent)===null||t===void 0?void 0:t.lastChild)===null||a===void 0?void 0:a.name)!="CloseTag"&&(O=Xe(s.doc,n.parent,o))&&!Le.has(O)){let t=o+(s.doc.sliceString(o,o+1)===">"?1:0);let a=``;return{range:e,changes:{from:o,to:t,insert:a}}}}else if(r&&n=="/"&&u.name=="IncompleteCloseTag"){let e=u.parent;if(u.from==o-2&&((l=e.lastChild)===null||l===void 0?void 0:l.name)!="CloseTag"&&(O=Xe(s.doc,e,o))&&!Le.has(O)){let e=o+(s.doc.sliceString(o,o+1)===">"?1:0);let t=`${O}>`;return{range:Pe.EditorSelection.cursor(o+t.length,-1),changes:{from:o,to:e,insert:t}}}}return{range:e}}));if(o.changes.empty)return false;e.dispatch([r,s.update(o,{userEvent:"input.complete",scrollIntoView:true})]);return true}))}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1cb1c39ea642f26a4dfe.woff b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1cb1c39ea642f26a4dfe.woff new file mode 100644 index 0000000000000000000000000000000000000000..c28398e49210c7d03050f715fb5e5fd3cc1c39e5 Binary files /dev/null and b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/1cb1c39ea642f26a4dfe.woff differ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2023.59b30086fbeff6d17e3b.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2023.59b30086fbeff6d17e3b.js new file mode 100644 index 0000000000000000000000000000000000000000..dc27e7cc7c31cea366940849e7a138350912f3b4 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2023.59b30086fbeff6d17e3b.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2023],{27574:(e,t,s)=>{s.d(t,{A:()=>a});var i=s(57991);var r=s(63221);const n=(e,t)=>i.A.lang.round(r.A.parse(e)[t]);const a=n},15051:(e,t,s)=>{s.d(t,{A:()=>n,P:()=>a});var i=s(75905);var r=s(24982);var n=(0,i.K2)(((e,t)=>{let s;if(t==="sandbox"){s=(0,r.Ltv)("#i"+e)}const i=t==="sandbox"?(0,r.Ltv)(s.nodes()[0].contentDocument.body):(0,r.Ltv)("body");const n=i.select(`[id="${e}"]`);return n}),"getDiagramElement");var a=(0,i.K2)(((e,t,s,r)=>{e.attr("class",s);const{width:n,height:a,x:l,y:c}=u(e,t);(0,i.a$)(e,a,n,r);const h=o(l,c,n,a,t);e.attr("viewBox",h);i.Rm.debug(`viewBox configured: ${h} with padding: ${t}`)}),"setupViewPortForSVG");var u=(0,i.K2)(((e,t)=>{const s=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:s.width+t*2,height:s.height+t*2,x:s.x,y:s.y}}),"calculateDimensionsWithPadding");var o=(0,i.K2)(((e,t,s,i,r)=>`${e-r} ${t-r} ${s} ${i}`),"createViewBox")},52023:(e,t,s)=>{s.d(t,{diagram:()=>_});var i=s(97366);var r=s(15051);var n=s(94065);var a=s(33416);var u=s(94746);var o=s(20778);var l=s(57590);var c=s(68232);var h=s(76261);var d=s(96049);var p=s(75905);var f=s(24982);var b=s(27574);var k=s(3635);var g="flowchart-";var A=class{constructor(){this.vertexCounter=0;this.config=(0,p.D7)();this.vertices=new Map;this.edges=[];this.classes=new Map;this.subGraphs=[];this.subGraphLookup=new Map;this.tooltips=new Map;this.subCount=0;this.firstGraphFlag=true;this.secCount=-1;this.posCrossRef=[];this.funs=[];this.setAccTitle=p.SV;this.setAccDescription=p.EI;this.setDiagramTitle=p.ke;this.getAccTitle=p.iN;this.getAccDescription=p.m7;this.getDiagramTitle=p.ab;this.funs.push(this.setupToolTips.bind(this));this.addVertex=this.addVertex.bind(this);this.firstGraph=this.firstGraph.bind(this);this.setDirection=this.setDirection.bind(this);this.addSubGraph=this.addSubGraph.bind(this);this.addLink=this.addLink.bind(this);this.setLink=this.setLink.bind(this);this.updateLink=this.updateLink.bind(this);this.addClass=this.addClass.bind(this);this.setClass=this.setClass.bind(this);this.destructLink=this.destructLink.bind(this);this.setClickEvent=this.setClickEvent.bind(this);this.setTooltip=this.setTooltip.bind(this);this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this);this.setClickFun=this.setClickFun.bind(this);this.bindFunctions=this.bindFunctions.bind(this);this.lex={firstGraph:this.firstGraph.bind(this)};this.clear();this.setGen("gen-2")}static{(0,p.K2)(this,"FlowDB")}sanitizeText(e){return p.Y2.sanitizeText(e,this.config)}lookUpDomId(e){for(const t of this.vertices.values()){if(t.id===e){return t.domId}}return e}addVertex(e,t,s,r,n,a,u={},l){if(!e||e.trim().length===0){return}let c;if(l!==void 0){let e;if(!l.includes("\n")){e="{\n"+l+"\n}"}else{e=l+"\n"}c=(0,i.H)(e,{schema:i.r})}const h=this.edges.find((t=>t.id===e));if(h){const e=c;if(e?.animate!==void 0){h.animate=e.animate}if(e?.animation!==void 0){h.animation=e.animation}return}let d;let f=this.vertices.get(e);if(f===void 0){f={id:e,labelType:"text",domId:g+e+"-"+this.vertexCounter,styles:[],classes:[]};this.vertices.set(e,f)}this.vertexCounter++;if(t!==void 0){this.config=(0,p.D7)();d=this.sanitizeText(t.text.trim());f.labelType=t.type;if(d.startsWith('"')&&d.endsWith('"')){d=d.substring(1,d.length-1)}f.text=d}else{if(f.text===void 0){f.text=e}}if(s!==void 0){f.type=s}if(r!==void 0&&r!==null){r.forEach((e=>{f.styles.push(e)}))}if(n!==void 0&&n!==null){n.forEach((e=>{f.classes.push(e)}))}if(a!==void 0){f.dir=a}if(f.props===void 0){f.props=u}else if(u!==void 0){Object.assign(f.props,u)}if(c!==void 0){if(c.shape){if(c.shape!==c.shape.toLowerCase()||c.shape.includes("_")){throw new Error(`No such shape: ${c.shape}. Shape names should be lowercase.`)}else if(!(0,o.aP)(c.shape)){throw new Error(`No such shape: ${c.shape}.`)}f.type=c?.shape}if(c?.label){f.text=c?.label}if(c?.icon){f.icon=c?.icon;if(!c.label?.trim()&&f.text===e){f.text=""}}if(c?.form){f.form=c?.form}if(c?.pos){f.pos=c?.pos}if(c?.img){f.img=c?.img;if(!c.label?.trim()&&f.text===e){f.text=""}}if(c?.constraint){f.constraint=c.constraint}if(c.w){f.assetWidth=Number(c.w)}if(c.h){f.assetHeight=Number(c.h)}}}addSingleLink(e,t,s,i){const r=e;const n=t;const a={start:r,end:n,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:false,interpolate:this.edges.defaultInterpolate};p.Rm.info("abc78 Got edge...",a);const u=s.text;if(u!==void 0){a.text=this.sanitizeText(u.text.trim());if(a.text.startsWith('"')&&a.text.endsWith('"')){a.text=a.text.substring(1,a.text.length-1)}a.labelType=u.type}if(s!==void 0){a.type=s.type;a.stroke=s.stroke;a.length=s.length>10?10:s.length}if(i&&!this.edges.some((e=>e.id===i))){a.id=i;a.isUserDefinedId=true}else{const e=this.edges.filter((e=>e.start===a.start&&e.end===a.end));if(e.length===0){a.id=(0,d.rY)(a.start,a.end,{counter:0,prefix:"L"})}else{a.id=(0,d.rY)(a.start,a.end,{counter:e.length+1,prefix:"L"})}}if(this.edges.length<(this.config.maxEdges??500)){p.Rm.info("Pushing edge...");this.edges.push(a)}else{throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.\n\nInitialize mermaid with maxEdges set to a higher number to allow more edges.\nYou cannot set this config via configuration inside the diagram as it is a secure config.\nYou have to call mermaid.initialize.`)}}isLinkData(e){return e!==null&&typeof e==="object"&&"id"in e&&typeof e.id==="string"}addLink(e,t,s){const i=this.isLinkData(s)?s.id.replace("@",""):void 0;p.Rm.info("addLink",e,t,i);for(const r of e){for(const n of t){const a=r===e[e.length-1];const u=n===t[0];if(a&&u){this.addSingleLink(r,n,s,i)}else{this.addSingleLink(r,n,s,void 0)}}}}updateLinkInterpolate(e,t){e.forEach((e=>{if(e==="default"){this.edges.defaultInterpolate=t}else{this.edges[e].interpolate=t}}))}updateLink(e,t){e.forEach((e=>{if(typeof e==="number"&&e>=this.edges.length){throw new Error(`The index ${e} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`)}if(e==="default"){this.edges.defaultStyle=t}else{this.edges[e].style=t;if((this.edges[e]?.style?.length??0)>0&&!this.edges[e]?.style?.some((e=>e?.startsWith("fill")))){this.edges[e]?.style?.push("fill:none")}}}))}addClass(e,t){const s=t.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach((e=>{let t=this.classes.get(e);if(t===void 0){t={id:e,styles:[],textStyles:[]};this.classes.set(e,t)}if(s!==void 0&&s!==null){s.forEach((e=>{if(/color/.exec(e)){const s=e.replace("fill","bgFill");t.textStyles.push(s)}t.styles.push(e)}))}}))}setDirection(e){this.direction=e;if(/.*/.exec(this.direction)){this.direction="LR"}if(/.*v/.exec(this.direction)){this.direction="TB"}if(this.direction==="TD"){this.direction="TB"}}setClass(e,t){for(const s of e.split(",")){const e=this.vertices.get(s);if(e){e.classes.push(t)}const i=this.edges.find((e=>e.id===s));if(i){i.classes.push(t)}const r=this.subGraphLookup.get(s);if(r){r.classes.push(t)}}}setTooltip(e,t){if(t===void 0){return}t=this.sanitizeText(t);for(const s of e.split(",")){this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(s):s,t)}}setClickFun(e,t,s){const i=this.lookUpDomId(e);if((0,p.D7)().securityLevel!=="loose"){return}if(t===void 0){return}let r=[];if(typeof s==="string"){r=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e{const e=document.querySelector(`[id="${i}"]`);if(e!==null){e.addEventListener("click",(()=>{d._K.runFunc(t,...r)}),false)}}))}}setLink(e,t,s){e.split(",").forEach((e=>{const i=this.vertices.get(e);if(i!==void 0){i.link=d._K.formatUrl(t,this.config);i.linkTarget=s}}));this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,t,s){e.split(",").forEach((e=>{this.setClickFun(e,t,s)}));this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach((t=>{t(e)}))}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let t=(0,f.Ltv)(".mermaidTooltip");if((t._groups||t)[0][0]===null){t=(0,f.Ltv)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)}const s=(0,f.Ltv)(e).select("svg");const i=s.selectAll("g.node");i.on("mouseover",(e=>{const s=(0,f.Ltv)(e.currentTarget);const i=s.attr("title");if(i===null){return}const r=e.currentTarget?.getBoundingClientRect();t.transition().duration(200).style("opacity",".9");t.text(s.attr("title")).style("left",window.scrollX+r.left+(r.right-r.left)/2+"px").style("top",window.scrollY+r.bottom+"px");t.html(t.html().replace(/<br\/>/g,"
"));s.classed("hover",true)})).on("mouseout",(e=>{t.transition().duration(500).style("opacity",0);const s=(0,f.Ltv)(e.currentTarget);s.classed("hover",false)}))}clear(e="gen-2"){this.vertices=new Map;this.classes=new Map;this.edges=[];this.funs=[this.setupToolTips.bind(this)];this.subGraphs=[];this.subGraphLookup=new Map;this.subCount=0;this.tooltips=new Map;this.firstGraphFlag=true;this.version=e;this.config=(0,p.D7)();(0,p.IU)()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,t,s){let i=e.text.trim();let r=s.text;if(e===s&&/\s/.exec(s.text)){i=void 0}const n=(0,p.K2)((e=>{const t={boolean:{},number:{},string:{}};const s=[];let i;const r=e.filter((function(e){const r=typeof e;if(e.stmt&&e.stmt==="dir"){i=e.value;return false}if(e.trim()===""){return false}if(r in t){return t[r].hasOwnProperty(e)?false:t[r][e]=true}else{return s.includes(e)?false:s.push(e)}}));return{nodeList:r,dir:i}}),"uniq");const{nodeList:a,dir:u}=n(t.flat());if(this.version==="gen-1"){for(let e=0;e2e3){return{result:false,count:0}}this.posCrossRef[this.secCount]=t;if(this.subGraphs[t].id===e){return{result:true,count:0}}let i=0;let r=1;while(i=0){const s=this.indexNodes2(e,t);if(s.result){return{result:true,count:r+s.count}}else{r=r+s.count}}i=i+1}return{result:false,count:r}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){this.secCount=-1;if(this.subGraphs.length>0){this.indexNodes2("none",this.subGraphs.length-1)}}getSubGraphs(){return this.subGraphs}firstGraph(){if(this.firstGraphFlag){this.firstGraphFlag=false;return true}return false}destructStartLink(e){let t=e.trim();let s="arrow_open";switch(t[0]){case"<":s="arrow_point";t=t.slice(1);break;case"x":s="arrow_cross";t=t.slice(1);break;case"o":s="arrow_circle";t=t.slice(1);break}let i="normal";if(t.includes("=")){i="thick"}if(t.includes(".")){i="dotted"}return{type:s,stroke:i}}countChar(e,t){const s=t.length;let i=0;for(let r=0;r":i="arrow_point";if(t.startsWith("<")){i="double_"+i;s=s.slice(1)}break;case"o":i="arrow_circle";if(t.startsWith("o")){i="double_"+i;s=s.slice(1)}break}let r="normal";let n=s.length-1;if(s.startsWith("=")){r="thick"}if(s.startsWith("~")){r="invisible"}const a=this.countChar(".",s);if(a){r="dotted";n=a}return{type:i,stroke:r,length:n}}destructLink(e,t){const s=this.destructEndLink(e);let i;if(t){i=this.destructStartLink(t);if(i.stroke!==s.stroke){return{type:"INVALID",stroke:"INVALID"}}if(i.type==="arrow_open"){i.type=s.type}else{if(i.type!==s.type){return{type:"INVALID",stroke:"INVALID"}}i.type="double_"+i.type}if(i.type==="double_arrow"){i.type="double_arrow_point"}i.length=s.length;return i}return s}exists(e,t){for(const s of e){if(s.nodes.includes(t)){return true}}return false}makeUniq(e,t){const s=[];e.nodes.forEach(((i,r)=>{if(!this.exists(t,i)){s.push(e.nodes[r])}}));return{nodes:s}}getTypeFromVertex(e){if(e.img){return"imageSquare"}if(e.icon){if(e.form==="circle"){return"iconCircle"}if(e.form==="square"){return"iconSquare"}if(e.form==="rounded"){return"iconRounded"}return"icon"}switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,t){return e.find((e=>e.id===t))}destructEdgeType(e){let t="none";let s="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":s=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":t=e.replace("double_","");s=t;break}return{arrowTypeStart:t,arrowTypeEnd:s}}addNodeFromVertex(e,t,s,i,r,n){const a=s.get(e.id);const u=i.get(e.id)??false;const o=this.findNode(t,e.id);if(o){o.cssStyles=e.styles;o.cssCompiledStyles=this.getCompiledStyles(e.classes);o.cssClasses=e.classes.join(" ")}else{const s={id:e.id,label:e.text,labelStyle:"",parentId:a,padding:r.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:n,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};if(u){t.push({...s,isGroup:true,shape:"rect"})}else{t.push({...s,isGroup:false,shape:this.getTypeFromVertex(e)})}}}getCompiledStyles(e){let t=[];for(const s of e){const e=this.classes.get(s);if(e?.styles){t=[...t,...e.styles??[]].map((e=>e.trim()))}if(e?.textStyles){t=[...t,...e.textStyles??[]].map((e=>e.trim()))}}return t}getData(){const e=(0,p.D7)();const t=[];const s=[];const i=this.getSubGraphs();const r=new Map;const n=new Map;for(let o=i.length-1;o>=0;o--){const e=i[o];if(e.nodes.length>0){n.set(e.id,true)}for(const t of e.nodes){r.set(t,e.id)}}for(let o=i.length-1;o>=0;o--){const s=i[o];t.push({id:s.id,label:s.title,labelStyle:"",parentId:r.get(s.id),padding:8,cssCompiledStyles:this.getCompiledStyles(s.classes),cssClasses:s.classes.join(" "),shape:"rect",dir:s.dir,isGroup:true,look:e.look})}const a=this.getVertices();a.forEach((s=>{this.addNodeFromVertex(s,t,r,n,e,e.look||"classic")}));const u=this.getEdges();u.forEach(((t,i)=>{const{arrowTypeStart:r,arrowTypeEnd:n}=this.destructEdgeType(t.type);const a=[...u.defaultStyle??[]];if(t.style){a.push(...t.style)}const o={id:(0,d.rY)(t.start,t.end,{counter:i,prefix:"L"},t.id),isUserDefinedId:t.isUserDefinedId,start:t.start,end:t.end,type:t.type??"normal",label:t.text,labelpos:"c",thickness:t.stroke,minlen:t.length,classes:t?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:t?.stroke==="invisible"||t?.type==="arrow_open"?"none":r,arrowTypeEnd:t?.stroke==="invisible"||t?.type==="arrow_open"?"none":n,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(t.classes),labelStyle:a,style:a,pattern:t.stroke,look:e.look,animate:t.animate,animation:t.animation,curve:t.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};s.push(o)}));return{nodes:t,edges:s,other:{},config:e}}defaultConfig(){return p.ME.flowchart}};var y=(0,p.K2)((function(e,t){return t.db.getClasses()}),"getClasses");var m=(0,p.K2)((async function(e,t,s,i){p.Rm.info("REF0:");p.Rm.info("Drawing state diagram (v2)",t);const{securityLevel:a,flowchart:u,layout:o}=(0,p.D7)();let l;if(a==="sandbox"){l=(0,f.Ltv)("#i"+t)}const c=a==="sandbox"?l.nodes()[0].contentDocument:document;p.Rm.debug("Before getData: ");const h=i.db.getData();p.Rm.debug("Data: ",h);const b=(0,r.A)(t,a);const k=i.db.getDirection();h.type=i.type;h.layoutAlgorithm=(0,n.q7)(o);if(h.layoutAlgorithm==="dagre"&&o==="elk"){p.Rm.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback.")}h.direction=k;h.nodeSpacing=u?.nodeSpacing||50;h.rankSpacing=u?.rankSpacing||50;h.markers=["point","circle","cross"];h.diagramId=t;p.Rm.debug("REF1:",h);await(0,n.XX)(h,b);const g=h.config.flowchart?.diagramPadding??8;d._K.insertTitle(b,"flowchartTitleText",u?.titleTopMargin||0,i.db.getDiagramTitle());(0,r.P)(b,g,"flowchart",u?.useMaxWidth||false);for(const r of h.nodes){const e=(0,f.Ltv)(`#${t} [id="${r.id}"]`);if(!e||!r.link){continue}const s=c.createElementNS("http://www.w3.org/2000/svg","a");s.setAttributeNS("http://www.w3.org/2000/svg","class",r.cssClasses);s.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener");if(a==="sandbox"){s.setAttributeNS("http://www.w3.org/2000/svg","target","_top")}else if(r.linkTarget){s.setAttributeNS("http://www.w3.org/2000/svg","target",r.linkTarget)}const i=e.insert((function(){return s}),":first-child");const n=e.select(".label-container");if(n){i.append((function(){return n.node()}))}const u=e.select(".label");if(u){i.append((function(){return u.node()}))}}}),"draw");var E={getClasses:y,draw:m};var x=function(){var e=(0,p.K2)((function(e,t,s,i){for(s=s||{},i=e.length;i--;s[e[i]]=t);return s}),"o"),t=[1,4],s=[1,3],i=[1,5],r=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],n=[2,2],a=[1,13],u=[1,14],o=[1,15],l=[1,16],c=[1,23],h=[1,25],d=[1,26],f=[1,27],b=[1,49],k=[1,48],g=[1,29],A=[1,30],y=[1,31],m=[1,32],E=[1,33],x=[1,44],C=[1,46],D=[1,42],S=[1,47],T=[1,43],v=[1,50],F=[1,45],_=[1,51],B=[1,52],w=[1,34],L=[1,35],$=[1,36],I=[1,37],R=[1,57],N=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],P=[1,61],G=[1,60],K=[1,62],O=[8,9,11,75,77,78],V=[1,78],M=[1,91],U=[1,96],W=[1,95],j=[1,92],Y=[1,88],z=[1,94],X=[1,90],H=[1,97],q=[1,93],Q=[1,98],Z=[1,89],J=[8,9,10,11,40,75,77,78],ee=[8,9,10,11,40,46,75,77,78],te=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],se=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],ie=[44,60,89,102,105,106,109,111,114,115,116],re=[1,121],ne=[1,122],ae=[1,124],ue=[1,123],oe=[44,60,62,74,89,102,105,106,109,111,114,115,116],le=[1,133],ce=[1,147],he=[1,148],de=[1,149],pe=[1,150],fe=[1,135],be=[1,137],ke=[1,141],ge=[1,142],Ae=[1,143],ye=[1,144],me=[1,145],Ee=[1,146],xe=[1,151],Ce=[1,152],De=[1,131],Se=[1,132],Te=[1,139],ve=[1,134],Fe=[1,138],_e=[1,136],Be=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124],we=[1,154],Le=[1,156],$e=[8,9,11],Ie=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],Re=[1,176],Ne=[1,172],Pe=[1,173],Ge=[1,177],Ke=[1,174],Oe=[1,175],Ve=[77,116,119],Me=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Ue=[10,106],We=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],je=[1,247],Ye=[1,245],ze=[1,249],Xe=[1,243],He=[1,244],qe=[1,246],Qe=[1,248],Ze=[1,250],Je=[1,268],et=[8,9,11,106],tt=[8,9,10,11,60,84,105,106,109,110,111,112];var st={trace:(0,p.K2)((function e(){}),"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1]],performAction:(0,p.K2)((function e(t,s,i,r,n,a,u){var o=a.length-1;switch(n){case 2:this.$=[];break;case 3:if(!Array.isArray(a[o])||a[o].length>0){a[o-1].push(a[o])}this.$=a[o-1];break;case 4:case 183:this.$=a[o];break;case 11:r.setDirection("TB");this.$="TB";break;case 12:r.setDirection(a[o-1]);this.$=a[o-1];break;case 27:this.$=a[o-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=r.addSubGraph(a[o-6],a[o-1],a[o-4]);break;case 34:this.$=r.addSubGraph(a[o-3],a[o-1],a[o-3]);break;case 35:this.$=r.addSubGraph(void 0,a[o-1],void 0);break;case 37:this.$=a[o].trim();r.setAccTitle(this.$);break;case 38:case 39:this.$=a[o].trim();r.setAccDescription(this.$);break;case 43:this.$=a[o-1]+a[o];break;case 44:this.$=a[o];break;case 45:r.addVertex(a[o-1][a[o-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[o]);r.addLink(a[o-3].stmt,a[o-1],a[o-2]);this.$={stmt:a[o-1],nodes:a[o-1].concat(a[o-3].nodes)};break;case 46:r.addLink(a[o-2].stmt,a[o],a[o-1]);this.$={stmt:a[o],nodes:a[o].concat(a[o-2].nodes)};break;case 47:r.addLink(a[o-3].stmt,a[o-1],a[o-2]);this.$={stmt:a[o-1],nodes:a[o-1].concat(a[o-3].nodes)};break;case 48:this.$={stmt:a[o-1],nodes:a[o-1]};break;case 49:r.addVertex(a[o-1][a[o-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[o]);this.$={stmt:a[o-1],nodes:a[o-1],shapeData:a[o]};break;case 50:this.$={stmt:a[o],nodes:a[o]};break;case 51:this.$=[a[o]];break;case 52:r.addVertex(a[o-5][a[o-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,a[o-4]);this.$=a[o-5].concat(a[o]);break;case 53:this.$=a[o-4].concat(a[o]);break;case 54:this.$=a[o];break;case 55:this.$=a[o-2];r.setClass(a[o-2],a[o]);break;case 56:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"square");break;case 57:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"doublecircle");break;case 58:this.$=a[o-5];r.addVertex(a[o-5],a[o-2],"circle");break;case 59:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"ellipse");break;case 60:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"stadium");break;case 61:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"subroutine");break;case 62:this.$=a[o-7];r.addVertex(a[o-7],a[o-1],"rect",void 0,void 0,void 0,Object.fromEntries([[a[o-5],a[o-3]]]));break;case 63:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"cylinder");break;case 64:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"round");break;case 65:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"diamond");break;case 66:this.$=a[o-5];r.addVertex(a[o-5],a[o-2],"hexagon");break;case 67:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"odd");break;case 68:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"trapezoid");break;case 69:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"inv_trapezoid");break;case 70:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"lean_right");break;case 71:this.$=a[o-3];r.addVertex(a[o-3],a[o-1],"lean_left");break;case 72:this.$=a[o];r.addVertex(a[o]);break;case 73:a[o-1].text=a[o];this.$=a[o-1];break;case 74:case 75:a[o-2].text=a[o-1];this.$=a[o-2];break;case 76:this.$=a[o];break;case 77:var l=r.destructLink(a[o],a[o-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[o-1]};break;case 78:var l=r.destructLink(a[o],a[o-2]);this.$={type:l.type,stroke:l.stroke,length:l.length,text:a[o-1],id:a[o-3]};break;case 79:this.$={text:a[o],type:"text"};break;case 80:this.$={text:a[o-1].text+""+a[o],type:a[o-1].type};break;case 81:this.$={text:a[o],type:"string"};break;case 82:this.$={text:a[o],type:"markdown"};break;case 83:var l=r.destructLink(a[o]);this.$={type:l.type,stroke:l.stroke,length:l.length};break;case 84:var l=r.destructLink(a[o]);this.$={type:l.type,stroke:l.stroke,length:l.length,id:a[o-1]};break;case 85:this.$=a[o-1];break;case 86:this.$={text:a[o],type:"text"};break;case 87:this.$={text:a[o-1].text+""+a[o],type:a[o-1].type};break;case 88:this.$={text:a[o],type:"string"};break;case 89:case 104:this.$={text:a[o],type:"markdown"};break;case 101:this.$={text:a[o],type:"text"};break;case 102:this.$={text:a[o-1].text+""+a[o],type:a[o-1].type};break;case 103:this.$={text:a[o],type:"text"};break;case 105:this.$=a[o-4];r.addClass(a[o-2],a[o]);break;case 106:this.$=a[o-4];r.setClass(a[o-2],a[o]);break;case 107:case 115:this.$=a[o-1];r.setClickEvent(a[o-1],a[o]);break;case 108:case 116:this.$=a[o-3];r.setClickEvent(a[o-3],a[o-2]);r.setTooltip(a[o-3],a[o]);break;case 109:this.$=a[o-2];r.setClickEvent(a[o-2],a[o-1],a[o]);break;case 110:this.$=a[o-4];r.setClickEvent(a[o-4],a[o-3],a[o-2]);r.setTooltip(a[o-4],a[o]);break;case 111:this.$=a[o-2];r.setLink(a[o-2],a[o]);break;case 112:this.$=a[o-4];r.setLink(a[o-4],a[o-2]);r.setTooltip(a[o-4],a[o]);break;case 113:this.$=a[o-4];r.setLink(a[o-4],a[o-2],a[o]);break;case 114:this.$=a[o-6];r.setLink(a[o-6],a[o-4],a[o]);r.setTooltip(a[o-6],a[o-2]);break;case 117:this.$=a[o-1];r.setLink(a[o-1],a[o]);break;case 118:this.$=a[o-3];r.setLink(a[o-3],a[o-2]);r.setTooltip(a[o-3],a[o]);break;case 119:this.$=a[o-3];r.setLink(a[o-3],a[o-2],a[o]);break;case 120:this.$=a[o-5];r.setLink(a[o-5],a[o-4],a[o]);r.setTooltip(a[o-5],a[o-2]);break;case 121:this.$=a[o-4];r.addVertex(a[o-2],void 0,void 0,a[o]);break;case 122:this.$=a[o-4];r.updateLink([a[o-2]],a[o]);break;case 123:this.$=a[o-4];r.updateLink(a[o-2],a[o]);break;case 124:this.$=a[o-8];r.updateLinkInterpolate([a[o-6]],a[o-2]);r.updateLink([a[o-6]],a[o]);break;case 125:this.$=a[o-8];r.updateLinkInterpolate(a[o-6],a[o-2]);r.updateLink(a[o-6],a[o]);break;case 126:this.$=a[o-6];r.updateLinkInterpolate([a[o-4]],a[o]);break;case 127:this.$=a[o-6];r.updateLinkInterpolate(a[o-4],a[o]);break;case 128:case 130:this.$=[a[o]];break;case 129:case 131:a[o-2].push(a[o]);this.$=a[o-2];break;case 133:this.$=a[o-1]+a[o];break;case 181:this.$=a[o];break;case 182:this.$=a[o-1]+""+a[o];break;case 184:this.$=a[o-1]+""+a[o];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break}}),"anonymous"),table:[{3:1,4:2,9:t,10:s,12:i},{1:[3]},e(r,n,{5:6}),{4:7,9:t,10:s,12:i},{4:8,9:t,10:s,12:i},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:a,9:u,10:o,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:c,33:24,34:h,36:d,38:f,42:28,43:38,44:b,45:39,47:40,60:k,84:g,85:A,86:y,87:m,88:E,89:x,102:C,105:D,106:S,109:T,111:v,113:41,114:F,115:_,116:B,121:w,122:L,123:$,124:I},e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),{8:[1,54],9:[1,55],10:R,15:53,18:56},e(N,[2,3]),e(N,[2,4]),e(N,[2,5]),e(N,[2,6]),e(N,[2,7]),e(N,[2,8]),{8:P,9:G,11:K,21:58,41:59,72:63,75:[1,64],77:[1,66],78:[1,65]},{8:P,9:G,11:K,21:67},{8:P,9:G,11:K,21:68},{8:P,9:G,11:K,21:69},{8:P,9:G,11:K,21:70},{8:P,9:G,11:K,21:71},{8:P,9:G,10:[1,72],11:K,21:73},e(N,[2,36]),{35:[1,74]},{37:[1,75]},e(N,[2,39]),e(O,[2,50],{18:76,39:77,10:R,40:V}),{10:[1,79]},{10:[1,80]},{10:[1,81]},{10:[1,82]},{14:M,44:U,60:W,80:[1,86],89:j,95:[1,83],97:[1,84],101:85,105:Y,106:z,109:X,111:H,114:q,115:Q,116:Z,120:87},e(N,[2,185]),e(N,[2,186]),e(N,[2,187]),e(N,[2,188]),e(J,[2,51]),e(J,[2,54],{46:[1,99]}),e(ee,[2,72],{113:112,29:[1,100],44:b,48:[1,101],50:[1,102],52:[1,103],54:[1,104],56:[1,105],58:[1,106],60:k,63:[1,107],65:[1,108],67:[1,109],68:[1,110],70:[1,111],89:x,102:C,105:D,106:S,109:T,111:v,114:F,115:_,116:B}),e(te,[2,181]),e(te,[2,142]),e(te,[2,143]),e(te,[2,144]),e(te,[2,145]),e(te,[2,146]),e(te,[2,147]),e(te,[2,148]),e(te,[2,149]),e(te,[2,150]),e(te,[2,151]),e(te,[2,152]),e(r,[2,12]),e(r,[2,18]),e(r,[2,19]),{9:[1,113]},e(se,[2,26],{18:114,10:R}),e(N,[2,27]),{42:115,43:38,44:b,45:39,47:40,60:k,89:x,102:C,105:D,106:S,109:T,111:v,113:41,114:F,115:_,116:B},e(N,[2,40]),e(N,[2,41]),e(N,[2,42]),e(ie,[2,76],{73:116,62:[1,118],74:[1,117]}),{76:119,79:120,80:re,81:ne,116:ae,119:ue},{75:[1,125],77:[1,126]},e(oe,[2,83]),e(N,[2,28]),e(N,[2,29]),e(N,[2,30]),e(N,[2,31]),e(N,[2,32]),{10:le,12:ce,14:he,27:de,28:127,32:pe,44:fe,60:be,75:ke,80:[1,129],81:[1,130],83:140,84:ge,85:Ae,86:ye,87:me,88:Ee,89:xe,90:Ce,91:128,105:De,109:Se,111:Te,114:ve,115:Fe,116:_e},e(Be,n,{5:153}),e(N,[2,37]),e(N,[2,38]),e(O,[2,48],{44:we}),e(O,[2,49],{18:155,10:R,40:Le}),e(J,[2,44]),{44:b,47:157,60:k,89:x,102:C,105:D,106:S,109:T,111:v,113:41,114:F,115:_,116:B},{102:[1,158],103:159,105:[1,160]},{44:b,47:161,60:k,89:x,102:C,105:D,106:S,109:T,111:v,113:41,114:F,115:_,116:B},{44:b,47:162,60:k,89:x,102:C,105:D,106:S,109:T,111:v,113:41,114:F,115:_,116:B},e($e,[2,107],{10:[1,163],96:[1,164]}),{80:[1,165]},e($e,[2,115],{120:167,10:[1,166],14:M,44:U,60:W,89:j,105:Y,106:z,109:X,111:H,114:q,115:Q,116:Z}),e($e,[2,117],{10:[1,168]}),e(Ie,[2,183]),e(Ie,[2,170]),e(Ie,[2,171]),e(Ie,[2,172]),e(Ie,[2,173]),e(Ie,[2,174]),e(Ie,[2,175]),e(Ie,[2,176]),e(Ie,[2,177]),e(Ie,[2,178]),e(Ie,[2,179]),e(Ie,[2,180]),{44:b,47:169,60:k,89:x,102:C,105:D,106:S,109:T,111:v,113:41,114:F,115:_,116:B},{30:170,67:Re,80:Ne,81:Pe,82:171,116:Ge,117:Ke,118:Oe},{30:178,67:Re,80:Ne,81:Pe,82:171,116:Ge,117:Ke,118:Oe},{30:180,50:[1,179],67:Re,80:Ne,81:Pe,82:171,116:Ge,117:Ke,118:Oe},{30:181,67:Re,80:Ne,81:Pe,82:171,116:Ge,117:Ke,118:Oe},{30:182,67:Re,80:Ne,81:Pe,82:171,116:Ge,117:Ke,118:Oe},{30:183,67:Re,80:Ne,81:Pe,82:171,116:Ge,117:Ke,118:Oe},{109:[1,184]},{30:185,67:Re,80:Ne,81:Pe,82:171,116:Ge,117:Ke,118:Oe},{30:186,65:[1,187],67:Re,80:Ne,81:Pe,82:171,116:Ge,117:Ke,118:Oe},{30:188,67:Re,80:Ne,81:Pe,82:171,116:Ge,117:Ke,118:Oe},{30:189,67:Re,80:Ne,81:Pe,82:171,116:Ge,117:Ke,118:Oe},{30:190,67:Re,80:Ne,81:Pe,82:171,116:Ge,117:Ke,118:Oe},e(te,[2,182]),e(r,[2,20]),e(se,[2,25]),e(O,[2,46],{39:191,18:192,10:R,40:V}),e(ie,[2,73],{10:[1,193]}),{10:[1,194]},{30:195,67:Re,80:Ne,81:Pe,82:171,116:Ge,117:Ke,118:Oe},{77:[1,196],79:197,116:ae,119:ue},e(Ve,[2,79]),e(Ve,[2,81]),e(Ve,[2,82]),e(Ve,[2,168]),e(Ve,[2,169]),{76:198,79:120,80:re,81:ne,116:ae,119:ue},e(oe,[2,84]),{8:P,9:G,10:le,11:K,12:ce,14:he,21:200,27:de,29:[1,199],32:pe,44:fe,60:be,75:ke,83:140,84:ge,85:Ae,86:ye,87:me,88:Ee,89:xe,90:Ce,91:201,105:De,109:Se,111:Te,114:ve,115:Fe,116:_e},e(Me,[2,101]),e(Me,[2,103]),e(Me,[2,104]),e(Me,[2,157]),e(Me,[2,158]),e(Me,[2,159]),e(Me,[2,160]),e(Me,[2,161]),e(Me,[2,162]),e(Me,[2,163]),e(Me,[2,164]),e(Me,[2,165]),e(Me,[2,166]),e(Me,[2,167]),e(Me,[2,90]),e(Me,[2,91]),e(Me,[2,92]),e(Me,[2,93]),e(Me,[2,94]),e(Me,[2,95]),e(Me,[2,96]),e(Me,[2,97]),e(Me,[2,98]),e(Me,[2,99]),e(Me,[2,100]),{6:11,7:12,8:a,9:u,10:o,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:c,32:[1,202],33:24,34:h,36:d,38:f,42:28,43:38,44:b,45:39,47:40,60:k,84:g,85:A,86:y,87:m,88:E,89:x,102:C,105:D,106:S,109:T,111:v,113:41,114:F,115:_,116:B,121:w,122:L,123:$,124:I},{10:R,18:203},{44:[1,204]},e(J,[2,43]),{10:[1,205],44:b,60:k,89:x,102:C,105:D,106:S,109:T,111:v,113:112,114:F,115:_,116:B},{10:[1,206]},{10:[1,207],106:[1,208]},e(Ue,[2,128]),{10:[1,209],44:b,60:k,89:x,102:C,105:D,106:S,109:T,111:v,113:112,114:F,115:_,116:B},{10:[1,210],44:b,60:k,89:x,102:C,105:D,106:S,109:T,111:v,113:112,114:F,115:_,116:B},{80:[1,211]},e($e,[2,109],{10:[1,212]}),e($e,[2,111],{10:[1,213]}),{80:[1,214]},e(Ie,[2,184]),{80:[1,215],98:[1,216]},e(J,[2,55],{113:112,44:b,60:k,89:x,102:C,105:D,106:S,109:T,111:v,114:F,115:_,116:B}),{31:[1,217],67:Re,82:218,116:Ge,117:Ke,118:Oe},e(We,[2,86]),e(We,[2,88]),e(We,[2,89]),e(We,[2,153]),e(We,[2,154]),e(We,[2,155]),e(We,[2,156]),{49:[1,219],67:Re,82:218,116:Ge,117:Ke,118:Oe},{30:220,67:Re,80:Ne,81:Pe,82:171,116:Ge,117:Ke,118:Oe},{51:[1,221],67:Re,82:218,116:Ge,117:Ke,118:Oe},{53:[1,222],67:Re,82:218,116:Ge,117:Ke,118:Oe},{55:[1,223],67:Re,82:218,116:Ge,117:Ke,118:Oe},{57:[1,224],67:Re,82:218,116:Ge,117:Ke,118:Oe},{60:[1,225]},{64:[1,226],67:Re,82:218,116:Ge,117:Ke,118:Oe},{66:[1,227],67:Re,82:218,116:Ge,117:Ke,118:Oe},{30:228,67:Re,80:Ne,81:Pe,82:171,116:Ge,117:Ke,118:Oe},{31:[1,229],67:Re,82:218,116:Ge,117:Ke,118:Oe},{67:Re,69:[1,230],71:[1,231],82:218,116:Ge,117:Ke,118:Oe},{67:Re,69:[1,233],71:[1,232],82:218,116:Ge,117:Ke,118:Oe},e(O,[2,45],{18:155,10:R,40:Le}),e(O,[2,47],{44:we}),e(ie,[2,75]),e(ie,[2,74]),{62:[1,234],67:Re,82:218,116:Ge,117:Ke,118:Oe},e(ie,[2,77]),e(Ve,[2,80]),{77:[1,235],79:197,116:ae,119:ue},{30:236,67:Re,80:Ne,81:Pe,82:171,116:Ge,117:Ke,118:Oe},e(Be,n,{5:237}),e(Me,[2,102]),e(N,[2,35]),{43:238,44:b,45:39,47:40,60:k,89:x,102:C,105:D,106:S,109:T,111:v,113:41,114:F,115:_,116:B},{10:R,18:239},{10:je,60:Ye,84:ze,92:240,105:Xe,107:241,108:242,109:He,110:qe,111:Qe,112:Ze},{10:je,60:Ye,84:ze,92:251,104:[1,252],105:Xe,107:241,108:242,109:He,110:qe,111:Qe,112:Ze},{10:je,60:Ye,84:ze,92:253,104:[1,254],105:Xe,107:241,108:242,109:He,110:qe,111:Qe,112:Ze},{105:[1,255]},{10:je,60:Ye,84:ze,92:256,105:Xe,107:241,108:242,109:He,110:qe,111:Qe,112:Ze},{44:b,47:257,60:k,89:x,102:C,105:D,106:S,109:T,111:v,113:41,114:F,115:_,116:B},e($e,[2,108]),{80:[1,258]},{80:[1,259],98:[1,260]},e($e,[2,116]),e($e,[2,118],{10:[1,261]}),e($e,[2,119]),e(ee,[2,56]),e(We,[2,87]),e(ee,[2,57]),{51:[1,262],67:Re,82:218,116:Ge,117:Ke,118:Oe},e(ee,[2,64]),e(ee,[2,59]),e(ee,[2,60]),e(ee,[2,61]),{109:[1,263]},e(ee,[2,63]),e(ee,[2,65]),{66:[1,264],67:Re,82:218,116:Ge,117:Ke,118:Oe},e(ee,[2,67]),e(ee,[2,68]),e(ee,[2,70]),e(ee,[2,69]),e(ee,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(ie,[2,78]),{31:[1,265],67:Re,82:218,116:Ge,117:Ke,118:Oe},{6:11,7:12,8:a,9:u,10:o,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:c,32:[1,266],33:24,34:h,36:d,38:f,42:28,43:38,44:b,45:39,47:40,60:k,84:g,85:A,86:y,87:m,88:E,89:x,102:C,105:D,106:S,109:T,111:v,113:41,114:F,115:_,116:B,121:w,122:L,123:$,124:I},e(J,[2,53]),{43:267,44:b,45:39,47:40,60:k,89:x,102:C,105:D,106:S,109:T,111:v,113:41,114:F,115:_,116:B},e($e,[2,121],{106:Je}),e(et,[2,130],{108:269,10:je,60:Ye,84:ze,105:Xe,109:He,110:qe,111:Qe,112:Ze}),e(tt,[2,132]),e(tt,[2,134]),e(tt,[2,135]),e(tt,[2,136]),e(tt,[2,137]),e(tt,[2,138]),e(tt,[2,139]),e(tt,[2,140]),e(tt,[2,141]),e($e,[2,122],{106:Je}),{10:[1,270]},e($e,[2,123],{106:Je}),{10:[1,271]},e(Ue,[2,129]),e($e,[2,105],{106:Je}),e($e,[2,106],{113:112,44:b,60:k,89:x,102:C,105:D,106:S,109:T,111:v,114:F,115:_,116:B}),e($e,[2,110]),e($e,[2,112],{10:[1,272]}),e($e,[2,113]),{98:[1,273]},{51:[1,274]},{62:[1,275]},{66:[1,276]},{8:P,9:G,11:K,21:277},e(N,[2,34]),e(J,[2,52]),{10:je,60:Ye,84:ze,105:Xe,107:278,108:242,109:He,110:qe,111:Qe,112:Ze},e(tt,[2,133]),{14:M,44:U,60:W,89:j,101:279,105:Y,106:z,109:X,111:H,114:q,115:Q,116:Z,120:87},{14:M,44:U,60:W,89:j,101:280,105:Y,106:z,109:X,111:H,114:q,115:Q,116:Z,120:87},{98:[1,281]},e($e,[2,120]),e(ee,[2,58]),{30:282,67:Re,80:Ne,81:Pe,82:171,116:Ge,117:Ke,118:Oe},e(ee,[2,66]),e(Be,n,{5:283}),e(et,[2,131],{108:269,10:je,60:Ye,84:ze,105:Xe,109:He,110:qe,111:Qe,112:Ze}),e($e,[2,126],{120:167,10:[1,284],14:M,44:U,60:W,89:j,105:Y,106:z,109:X,111:H,114:q,115:Q,116:Z}),e($e,[2,127],{120:167,10:[1,285],14:M,44:U,60:W,89:j,105:Y,106:z,109:X,111:H,114:q,115:Q,116:Z}),e($e,[2,114]),{31:[1,286],67:Re,82:218,116:Ge,117:Ke,118:Oe},{6:11,7:12,8:a,9:u,10:o,11:l,20:17,22:18,23:19,24:20,25:21,26:22,27:c,32:[1,287],33:24,34:h,36:d,38:f,42:28,43:38,44:b,45:39,47:40,60:k,84:g,85:A,86:y,87:m,88:E,89:x,102:C,105:D,106:S,109:T,111:v,113:41,114:F,115:_,116:B,121:w,122:L,123:$,124:I},{10:je,60:Ye,84:ze,92:288,105:Xe,107:241,108:242,109:He,110:qe,111:Qe,112:Ze},{10:je,60:Ye,84:ze,92:289,105:Xe,107:241,108:242,109:He,110:qe,111:Qe,112:Ze},e(ee,[2,62]),e(N,[2,33]),e($e,[2,124],{106:Je}),e($e,[2,125],{106:Je})],defaultActions:{},parseError:(0,p.K2)((function e(t,s){if(s.recoverable){this.trace(t)}else{var i=new Error(t);i.hash=s;throw i}}),"parseError"),parse:(0,p.K2)((function e(t){var s=this,i=[0],r=[],n=[null],a=[],u=this.table,o="",l=0,c=0,h=0,d=2,f=1;var b=a.slice.call(arguments,1);var k=Object.create(this.lexer);var g={yy:{}};for(var A in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,A)){g.yy[A]=this.yy[A]}}k.setInput(t,g.yy);g.yy.lexer=k;g.yy.parser=this;if(typeof k.yylloc=="undefined"){k.yylloc={}}var y=k.yylloc;a.push(y);var m=k.options&&k.options.ranges;if(typeof g.yy.parseError==="function"){this.parseError=g.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function E(e){i.length=i.length-2*e;n.length=n.length-e;a.length=a.length-e}(0,p.K2)(E,"popStack");function x(){var e;e=r.pop()||k.lex()||f;if(typeof e!=="number"){if(e instanceof Array){r=e;e=r.pop()}e=s.symbols_[e]||e}return e}(0,p.K2)(x,"lex");var C,D,S,T,v,F,_={},B,w,L,$;while(true){S=i[i.length-1];if(this.defaultActions[S]){T=this.defaultActions[S]}else{if(C===null||typeof C=="undefined"){C=x()}T=u[S]&&u[S][C]}if(typeof T==="undefined"||!T.length||!T[0]){var I="";$=[];for(B in u[S]){if(this.terminals_[B]&&B>d){$.push("'"+this.terminals_[B]+"'")}}if(k.showPosition){I="Parse error on line "+(l+1)+":\n"+k.showPosition()+"\nExpecting "+$.join(", ")+", got '"+(this.terminals_[C]||C)+"'"}else{I="Parse error on line "+(l+1)+": Unexpected "+(C==f?"end of input":"'"+(this.terminals_[C]||C)+"'")}this.parseError(I,{text:k.match,token:this.terminals_[C]||C,line:k.yylineno,loc:y,expected:$})}if(T[0]instanceof Array&&T.length>1){throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+C)}switch(T[0]){case 1:i.push(C);n.push(k.yytext);a.push(k.yylloc);i.push(T[1]);C=null;if(!D){c=k.yyleng;o=k.yytext;l=k.yylineno;y=k.yylloc;if(h>0){h--}}else{C=D;D=null}break;case 2:w=this.productions_[T[1]][1];_.$=n[n.length-w];_._$={first_line:a[a.length-(w||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(w||1)].first_column,last_column:a[a.length-1].last_column};if(m){_._$.range=[a[a.length-(w||1)].range[0],a[a.length-1].range[1]]}F=this.performAction.apply(_,[o,c,l,g.yy,T[1],n,a].concat(b));if(typeof F!=="undefined"){return F}if(w){i=i.slice(0,-1*w*2);n=n.slice(0,-1*w);a=a.slice(0,-1*w)}i.push(this.productions_[T[1]][0]);n.push(_.$);a.push(_._$);L=u[i[i.length-2]][i[i.length-1]];i.push(L);break;case 3:return true}}return true}),"parse")};var it=function(){var e={EOF:1,parseError:(0,p.K2)((function e(t,s){if(this.yy.parser){this.yy.parser.parseError(t,s)}else{throw new Error(t)}}),"parseError"),setInput:(0,p.K2)((function(e,t){this.yy=t||this.yy||{};this._input=e;this._more=this._backtrack=this.done=false;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};if(this.options.ranges){this.yylloc.range=[0,0]}this.offset=0;return this}),"setInput"),input:(0,p.K2)((function(){var e=this._input[0];this.yytext+=e;this.yyleng++;this.offset++;this.match+=e;this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);if(t){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges){this.yylloc.range[1]++}this._input=this._input.slice(1);return e}),"input"),unput:(0,p.K2)((function(e){var t=e.length;var s=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);if(s.length-1){this.yylineno-=s.length-1}var r=this.yylloc.range;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-t};if(this.options.ranges){this.yylloc.range=[r[0],r[0]+this.yyleng-t]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,p.K2)((function(){this._more=true;return this}),"more"),reject:(0,p.K2)((function(){if(this.options.backtrack_lexer){this._backtrack=true}else{return 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})}return this}),"reject"),less:(0,p.K2)((function(e){this.unput(this.match.slice(e))}),"less"),pastInput:(0,p.K2)((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,p.K2)((function(){var e=this.match;if(e.length<20){e+=this._input.substr(0,20-e.length)}return(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,p.K2)((function(){var e=this.pastInput();var t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"}),"showPosition"),test_match:(0,p.K2)((function(e,t){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};if(this.options.ranges){r.yylloc.range=this.yylloc.range.slice(0)}}i=e[0].match(/(?:\r\n?|\n).*/g);if(i){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;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._backtrack=false;this._input=this._input.slice(e[0].length);this.matched+=e[0];s=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(s){return s}else if(this._backtrack){for(var n in r){this[n]=r[n]}return false}return false}),"test_match"),next:(0,p.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var e,t,s,i;if(!this._more){this.yytext="";this.match=""}var r=this._currentRules();for(var n=0;nt[0].length)){t=s;i=n;if(this.options.backtrack_lexer){e=this.test_match(s,r[n]);if(e!==false){return e}else if(this._backtrack){t=false;continue}else{return false}}else if(!this.options.flex){break}}}if(t){e=this.test_match(t,r[i]);if(e!==false){return e}return false}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}}),"next"),lex:(0,p.K2)((function e(){var t=this.next();if(t){return t}else{return this.lex()}}),"lex"),begin:(0,p.K2)((function e(t){this.conditionStack.push(t)}),"begin"),popState:(0,p.K2)((function e(){var t=this.conditionStack.length-1;if(t>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,p.K2)((function e(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules}else{return this.conditions["INITIAL"].rules}}),"_currentRules"),topState:(0,p.K2)((function e(t){t=this.conditionStack.length-1-Math.abs(t||0);if(t>=0){return this.conditionStack[t]}else{return"INITIAL"}}),"topState"),pushState:(0,p.K2)((function e(t){this.begin(t)}),"pushState"),stateStackSize:(0,p.K2)((function e(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:(0,p.K2)((function e(t,s,i,r){var n=r;switch(i){case 0:this.begin("acc_title");return 34;break;case 1:this.popState();return"acc_title_value";break;case 2:this.begin("acc_descr");return 36;break;case 3:this.popState();return"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";break;case 7:this.pushState("shapeData");s.yytext="";return 40;break;case 8:this.pushState("shapeDataStr");return 40;break;case 9:this.popState();return 40;break;case 10:const e=/\n\s*/g;s.yytext=s.yytext.replace(e,"
");return 40;break;case 11:return 40;break;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState();this.begin("callbackargs");break;case 16:return 95;break;case 17:this.popState();break;case 18:return 96;break;case 19:return"MD_STR";break;case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";break;case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;break;case 26:return 102;break;case 27:return 85;break;case 28:return 104;break;case 29:return 86;break;case 30:return 87;break;case 31:return 97;break;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;break;case 35:if(t.lex.firstGraph()){this.begin("dir")}return 12;break;case 36:if(t.lex.firstGraph()){this.begin("dir")}return 12;break;case 37:if(t.lex.firstGraph()){this.begin("dir")}return 12;break;case 38:return 27;break;case 39:return 32;break;case 40:return 98;break;case 41:return 98;break;case 42:return 98;break;case 43:return 98;break;case 44:this.popState();return 13;break;case 45:this.popState();return 14;break;case 46:this.popState();return 14;break;case 47:this.popState();return 14;break;case 48:this.popState();return 14;break;case 49:this.popState();return 14;break;case 50:this.popState();return 14;break;case 51:this.popState();return 14;break;case 52:this.popState();return 14;break;case 53:this.popState();return 14;break;case 54:this.popState();return 14;break;case 55:return 121;break;case 56:return 122;break;case 57:return 123;break;case 58:return 124;break;case 59:return 78;break;case 60:return 105;break;case 61:return 111;break;case 62:return 46;break;case 63:return 60;break;case 64:return 44;break;case 65:return 8;break;case 66:return 106;break;case 67:return 115;break;case 68:this.popState();return 77;break;case 69:this.pushState("edgeText");return 75;break;case 70:return 119;break;case 71:this.popState();return 77;break;case 72:this.pushState("thickEdgeText");return 75;break;case 73:return 119;break;case 74:this.popState();return 77;break;case 75:this.pushState("dottedEdgeText");return 75;break;case 76:return 119;break;case 77:return 77;break;case 78:this.popState();return 53;break;case 79:return"TEXT";break;case 80:this.pushState("ellipseText");return 52;break;case 81:this.popState();return 55;break;case 82:this.pushState("text");return 54;break;case 83:this.popState();return 57;break;case 84:this.pushState("text");return 56;break;case 85:return 58;break;case 86:this.pushState("text");return 67;break;case 87:this.popState();return 64;break;case 88:this.pushState("text");return 63;break;case 89:this.popState();return 49;break;case 90:this.pushState("text");return 48;break;case 91:this.popState();return 69;break;case 92:this.popState();return 71;break;case 93:return 117;break;case 94:this.pushState("trapText");return 68;break;case 95:this.pushState("trapText");return 70;break;case 96:return 118;break;case 97:return 67;break;case 98:return 90;break;case 99:return"SEP";break;case 100:return 89;break;case 101:return 115;break;case 102:return 111;break;case 103:return 44;break;case 104:return 109;break;case 105:return 114;break;case 106:return 116;break;case 107:this.popState();return 62;break;case 108:this.pushState("text");return 62;break;case 109:this.popState();return 51;break;case 110:this.pushState("text");return 50;break;case 111:this.popState();return 31;break;case 112:this.pushState("text");return 29;break;case 113:this.popState();return 66;break;case 114:this.pushState("text");return 65;break;case 115:return"TEXT";break;case 116:return"QUOTE";break;case 117:return 9;break;case 118:return 10;break;case 119:return 11;break}}),"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},shapeDataStr:{rules:[9,10,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},shapeData:{rules:[8,11,12,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},callbackargs:{rules:[17,18,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},callbackname:{rules:[14,15,16,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},href:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},click:{rules:[21,24,33,34,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},dottedEdgeText:{rules:[21,24,74,76,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},thickEdgeText:{rules:[21,24,71,73,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},edgeText:{rules:[21,24,68,70,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},trapText:{rules:[21,24,77,80,82,84,88,90,91,92,93,94,95,108,110,112,114],inclusive:false},ellipseText:{rules:[21,24,77,78,79,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},text:{rules:[21,24,77,80,81,82,83,84,87,88,89,90,94,95,107,108,109,110,111,112,113,114,115],inclusive:false},vertex:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},acc_descr_multiline:{rules:[5,6,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},acc_descr:{rules:[3,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},acc_title:{rules:[1,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},md_string:{rules:[19,20,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},string:{rules:[21,22,23,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:false},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,71,72,74,75,77,80,82,84,85,86,88,90,94,95,96,97,98,99,100,101,102,103,104,105,106,108,110,112,114,116,117,118,119],inclusive:true}}};return e}();st.lexer=it;function rt(){this.yy={}}(0,p.K2)(rt,"Parser");rt.prototype=st;st.Parser=rt;return new rt}();x.parser=x;var C=x;var D=Object.assign({},C);D.parse=e=>{const t=e.replace(/}\s*\n/g,"}\n");return C.parse(t)};var S=D;var T=(0,p.K2)(((e,t)=>{const s=b.A;const i=s(e,"r");const r=s(e,"g");const n=s(e,"b");return k.A(i,r,n,t)}),"fade");var v=(0,p.K2)((e=>`.label {\n font-family: ${e.fontFamily};\n color: ${e.nodeTextColor||e.textColor};\n }\n .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span {\n color: ${e.titleColor};\n }\n .cluster-label span p {\n background-color: transparent;\n }\n\n .label text,span {\n fill: ${e.nodeTextColor||e.textColor};\n color: ${e.nodeTextColor||e.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .katex path {\n fill: #000;\n stroke: #000;\n stroke-width: 1px;\n }\n\n .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n\n .root .anchor path {\n fill: ${e.lineColor} !important;\n stroke-width: 0;\n stroke: ${e.lineColor};\n }\n\n .arrowheadPath {\n fill: ${e.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${e.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${e.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${T(e.edgeLabelBackground,.5)};\n // background-color:\n }\n\n .cluster rect {\n fill: ${e.clusterBkg};\n stroke: ${e.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span {\n color: ${e.titleColor};\n }\n /* .cluster div {\n color: ${e.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${e.fontFamily};\n font-size: 12px;\n background: ${e.tertiaryColor};\n border: 1px solid ${e.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n }\n\n rect.text {\n fill: none;\n stroke-width: 0;\n }\n\n .icon-shape, .image-shape {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n padding: 2px;\n }\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n`),"getStyles");var F=v;var _={parser:S,get db(){return new A},renderer:E,styles:F,init:(0,p.K2)((e=>{if(!e.flowchart){e.flowchart={}}if(e.layout){(0,p.XV)({layout:e.layout})}e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute;(0,p.XV)({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})}),"init")}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2211.3123543dcc217549bbb0.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2211.3123543dcc217549bbb0.js new file mode 100644 index 0000000000000000000000000000000000000000..871fd4dee4ddd6a00f81cc9304817d190206ecf6 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2211.3123543dcc217549bbb0.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2211],{82211:(e,r,n)=>{n.d(r,{Zp:()=>Qt});var t=n(69769);var i=n(92911);var o=0;function a(e){var r=++o;return(0,i.A)(e)+r}const u=a;var s=n(33659);var d=n(74033);var f=n(8937);var c=Math.ceil,v=Math.max;function h(e,r,n,t){var i=-1,o=v(c((r-e)/(n||1)),0),a=Array(o);while(o--){a[t?o:++i]=e;e+=n}return a}const l=h;var g=n(31943);var p=n(52712);function A(e){return function(r,n,t){if(t&&typeof t!="number"&&(0,g.A)(r,n,t)){n=t=undefined}r=(0,p.A)(r);if(n===undefined){n=r;r=0}else{n=(0,p.A)(n)}t=t===undefined?r0;--u){a=r[u].dequeue();if(a){t=t.concat(P(e,r,n,a,true));break}}}}return t}function P(e,r,n,i,o){var a=o?[]:undefined;t.A(e.inEdges(i.v),(function(t){var i=e.edge(t);var u=e.node(t.v);if(o){a.push({v:t.v,w:t.w})}u.out-=i;C(r,n,u)}));t.A(e.outEdges(i.v),(function(t){var i=e.edge(t);var o=t.w;var a=e.node(o);a["in"]-=i;C(r,n,a)}));e.removeNode(i.v);return a}function j(e,r){var n=new y.T;var i=0;var o=0;t.A(e.nodes(),(function(e){n.setNode(e,{v:e,in:0,out:0})}));t.A(e.edges(),(function(e){var t=n.edge(e.v,e.w)||0;var a=r(e);var u=t+a;n.setEdge(e.v,e.w,u);o=Math.max(o,n.node(e.v).out+=a);i=Math.max(i,n.node(e.w)["in"]+=a)}));var a=m(o+i+3).map((function(){return new E}));var u=i+1;t.A(n.nodes(),(function(e){C(a,u,n.node(e))}));return{graph:n,buckets:a,zeroIdx:u}}function C(e,r,n){if(!n.out){e[0].enqueue(n)}else if(!n["in"]){e[e.length-1].enqueue(n)}else{e[n.out-n["in"]+r].enqueue(n)}}function T(e){var r=e.graph().acyclicer==="greedy"?x(e,n(e)):L(e);t.A(r,(function(r){var n=e.edge(r);e.removeEdge(r);n.forwardName=r.name;n.reversed=true;e.setEdge(r.w,r.v,n,u("rev"))}));function n(e){return function(r){return e.edge(r).weight}}}function L(e){var r=[];var n={};var i={};function o(a){if(Object.prototype.hasOwnProperty.call(i,a)){return}i[a]=true;n[a]=true;t.A(e.outEdges(a),(function(e){if(Object.prototype.hasOwnProperty.call(n,e.w)){r.push(e)}else{o(e.w)}}));delete n[a]}t.A(e.nodes(),o);return r}function M(e){t.A(e.edges(),(function(r){var n=e.edge(r);if(n.reversed){e.removeEdge(r);var t=n.forwardName;delete n.reversed;delete n.forwardName;e.setEdge(r.w,r.v,n,t)}}))}var R=n(96901);var F=n(44835);var S=n(78307);function D(e,r){return(0,F.A)(e,r,(function(r,n){return(0,S.A)(e,n)}))}const V=D;var G=n(27401);var Y=n(4596);function z(e){return(0,Y.A)((0,G.A)(e,undefined,d.A),e+"")}const B=z;var q=B((function(e,r){return e==null?{}:V(e,r)}));const $=q;var Q=n(38693);var J=n(95852);function W(e,r){return e>r}const Z=W;var H=n(63077);function K(e){return e&&e.length?(0,J.A)(e,H.A,Z):undefined}const U=K;var X=n(80359);var ee=n(48657);var re=n(27477);var ne=n(1121);function te(e,r){var n={};r=(0,ne.A)(r,3);(0,re.A)(e,(function(e,t,i){(0,ee.A)(n,t,r(e,t,i))}));return n}const ie=te;var oe=n(89523);var ae=n(963);var ue=n(2850);var se=n(24606);var de=function(){return se.A.Date.now()};const fe=de;function ce(e,r,n,t){var i;do{i=u(t)}while(e.hasNode(i));n.dummy=r;e.setNode(i,n);return i}function ve(e){var r=(new y.T).setGraph(e.graph());t.A(e.nodes(),(function(n){r.setNode(n,e.node(n))}));t.A(e.edges(),(function(n){var t=r.edge(n.v,n.w)||{weight:0,minlen:1};var i=e.edge(n);r.setEdge(n.v,n.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}));return r}function he(e){var r=new y.T({multigraph:e.isMultigraph()}).setGraph(e.graph());t.A(e.nodes(),(function(n){if(!e.children(n).length){r.setNode(n,e.node(n))}}));t.A(e.edges(),(function(n){r.setEdge(n,e.edge(n))}));return r}function le(e){var r=_.map(e.nodes(),(function(r){var n={};_.forEach(e.outEdges(r),(function(r){n[r.w]=(n[r.w]||0)+e.edge(r).weight}));return n}));return _.zipObject(e.nodes(),r)}function ge(e){var r=_.map(e.nodes(),(function(r){var n={};_.forEach(e.inEdges(r),(function(r){n[r.v]=(n[r.v]||0)+e.edge(r).weight}));return n}));return _.zipObject(e.nodes(),r)}function pe(e,r){var n=e.x;var t=e.y;var i=r.x-n;var o=r.y-t;var a=e.width/2;var u=e.height/2;if(!i&&!o){throw new Error("Not possible to find intersection inside of the rectangle")}var s,d;if(Math.abs(o)*a>Math.abs(i)*u){if(o<0){u=-u}s=u*i/o;d=u}else{if(i<0){a=-a}s=a;d=a*o/i}return{x:n+s,y:t+d}}function Ae(e){var r=f.A(m(ye(e)+1),(function(){return[]}));t.A(e.nodes(),(function(n){var t=e.node(n);var i=t.rank;if(!oe.A(i)){r[i][t.order]=n}}));return r}function we(e){var r=ae.A(f.A(e.nodes(),(function(r){return e.node(r).rank})));t.A(e.nodes(),(function(n){var t=e.node(n);if(ue.A(t,"rank")){t.rank-=r}}))}function be(e){var r=ae.A(f.A(e.nodes(),(function(r){return e.node(r).rank})));var n=[];t.A(e.nodes(),(function(t){var i=e.node(t).rank-r;if(!n[i]){n[i]=[]}n[i].push(t)}));var i=0;var o=e.graph().nodeRankFactor;t.A(n,(function(r,n){if(oe.A(r)&&n%o!==0){--i}else if(i){t.A(r,(function(r){e.node(r).rank+=i}))}}))}function me(e,r,n,t){var i={width:0,height:0};if(arguments.length>=4){i.rank=n;i.order=t}return ce(e,"border",i,r)}function ye(e){return U(f.A(e.nodes(),(function(r){var n=e.node(r).rank;if(!oe.A(n)){return n}})))}function _e(e,r){var n={lhs:[],rhs:[]};t.A(e,(function(e){if(r(e)){n.lhs.push(e)}else{n.rhs.push(e)}}));return n}function Ee(e,r){var n=fe();try{return r()}finally{console.log(e+" time: "+(fe()-n)+"ms")}}function Oe(e,r){return r()}function ke(e){function r(n){var i=e.children(n);var o=e.node(n);if(i.length){t.A(i,r)}if(Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[];o.borderRight=[];for(var a=o.minRank,u=o.maxRank+1;a0){a=o.removeMin();u=i[a];if(u.distance===Number.POSITIVE_INFINITY){break}t(a).forEach(s)}return i}function Ue(e,r,n){return _.transform(e.nodes(),(function(t,i){t[i]=dijkstra(e,i,r,n)}),{})}var Xe=s.A(1);function er(e,r,n){return rr(e,r||Xe,n||function(r){return e.outEdges(r)})}function rr(e,r,n){var t={};var i=e.nodes();i.forEach((function(e){t[e]={};t[e][e]={distance:0};i.forEach((function(r){if(e!==r){t[e][r]={distance:Number.POSITIVE_INFINITY}}}));n(e).forEach((function(n){var i=n.v===e?n.w:n.v;var o=r(n);t[e][i]={distance:o,predecessor:e}}))}));i.forEach((function(e){var r=t[e];i.forEach((function(n){var o=t[n];i.forEach((function(n){var t=o[e];var i=r[n];var a=o[n];var u=t.distance+i.distance;if(u0){o=i.removeMin();if(Object.prototype.hasOwnProperty.call(t,o)){n.setEdge(o,t[o])}else if(u){throw new Error("Input graph is not connected: "+e)}else{u=true}e.nodeEdges(o).forEach(a)}return n}tn.initLowLimValues=sn;tn.initCutValues=on;tn.calcCutValue=un;tn.leaveEdge=fn;tn.enterEdge=cn;tn.exchangeEdges=vn;function tn(e){e=ve(e);Ye(e);var r=Be(e);sn(r);on(r,e);var n,t;while(n=fn(r)){t=cn(r,e,n);vn(r,e,n,t)}}function on(e,r){var n=Xr(e,e.nodes());n=n.slice(0,n.length-1);t.A(n,(function(n){an(e,r,n)}))}function an(e,r,n){var t=e.node(n);var i=t.parent;e.edge(n,i).cutvalue=un(e,r,n)}function un(e,r,n){var i=e.node(n);var o=i.parent;var a=true;var u=r.edge(n,o);var s=0;if(!u){a=false;u=r.edge(o,n)}s=u.weight;t.A(r.nodeEdges(n),(function(t){var i=t.v===n,u=i?t.w:t.v;if(u!==o){var d=i===a,f=r.edge(t).weight;s+=d?f:-f;if(ln(e,n,u)){var c=e.edge(n,u).cutvalue;s+=d?-c:c}}}));return s}function sn(e,r){if(arguments.length<2){r=e.nodes()[0]}dn(e,{},1,r)}function dn(e,r,n,i,o){var a=n;var u=e.node(i);r[i]=true;t.A(e.neighbors(i),(function(t){if(!Object.prototype.hasOwnProperty.call(r,t)){n=dn(e,r,n,t,i)}}));u.low=a;u.lim=n++;if(o){u.parent=o}else{delete u.parent}return n}function fn(e){return Je.A(e.edges(),(function(r){return e.edge(r).cutvalue<0}))}function cn(e,r,n){var t=n.v;var i=n.w;if(!r.hasEdge(t,i)){t=n.w;i=n.v}var o=e.node(t);var a=e.node(i);var u=o;var s=false;if(o.lim>a.lim){u=a;s=true}var d=We.A(r.edges(),(function(r){return s===gn(e,e.node(r.v),u)&&s!==gn(e,e.node(r.w),u)}));return Ge(d,(function(e){return ze(r,e)}))}function vn(e,r,n,t){var i=n.v;var o=n.w;e.removeEdge(i,o);e.setEdge(t.v,t.w,{});sn(e);on(e,r);hn(e,r)}function hn(e,r){var n=Je.A(e.nodes(),(function(e){return!r.node(e).parent}));var i=en(e,n);i=i.slice(1);t.A(i,(function(n){var t=e.node(n).parent,i=r.edge(n,t),o=false;if(!i){i=r.edge(t,n);o=true}r.node(n).rank=r.node(t).rank+(o?i.minlen:-i.minlen)}))}function ln(e,r,n){return e.hasEdge(r,n)}function gn(e,r,n){return n.low<=r.lim&&r.lim<=n.lim}function pn(e){switch(e.graph().ranker){case"network-simplex":bn(e);break;case"tight-tree":wn(e);break;case"longest-path":An(e);break;default:bn(e)}}var An=Ye;function wn(e){Ye(e);Be(e)}function bn(e){tn(e)}var mn=n(44882);var yn=n(65339);function _n(e){var r=ce(e,"root",{},"_root");var n=On(e);var i=U(mn.A(n))-1;var o=2*i+1;e.graph().nestingRoot=r;t.A(e.edges(),(function(r){e.edge(r).minlen*=o}));var a=kn(e)+1;t.A(e.children(),(function(t){En(e,r,o,a,i,n,t)}));e.graph().nodeRankFactor=o}function En(e,r,n,i,o,a,u){var s=e.children(u);if(!s.length){if(u!==r){e.setEdge(r,u,{weight:0,minlen:n})}return}var d=me(e,"_bt");var f=me(e,"_bb");var c=e.node(u);e.setParent(d,u);c.borderTop=d;e.setParent(f,u);c.borderBottom=f;t.A(s,(function(t){En(e,r,n,i,o,a,t);var s=e.node(t);var c=s.borderTop?s.borderTop:t;var v=s.borderBottom?s.borderBottom:t;var h=s.borderTop?i:2*i;var l=c!==v?1:o-a[u]+1;e.setEdge(d,c,{weight:h,minlen:l,nestingEdge:true});e.setEdge(v,f,{weight:h,minlen:l,nestingEdge:true})}));if(!e.parent(u)){e.setEdge(r,d,{weight:0,minlen:o+a[u]})}}function On(e){var r={};function n(i,o){var a=e.children(i);if(a&&a.length){t.A(a,(function(e){n(e,o+1)}))}r[i]=o}t.A(e.children(),(function(e){n(e,1)}));return r}function kn(e){return yn.A(e.edges(),(function(r,n){return r+e.edge(n).weight}),0)}function Nn(e){var r=e.graph();e.removeNode(r.nestingRoot);delete r.nestingRoot;t.A(e.edges(),(function(r){var n=e.edge(r);if(n.nestingEdge){e.removeEdge(r)}}))}var xn=n(59386);var In=1,Pn=4;function jn(e){return(0,xn.A)(e,In|Pn)}const Cn=jn;function Tn(e,r,n){var i={},o;t.A(n,(function(n){var t=e.parent(n),a,u;while(t){a=e.parent(t);if(a){u=i[a];i[a]=t}else{u=o;o=t}if(u&&u!==t){r.setEdge(u,t);return}t=a}}))}function Ln(e,r,n){var i=Mn(e),o=new y.T({compound:true}).setGraph({root:i}).setDefaultNodeLabel((function(r){return e.node(r)}));t.A(e.nodes(),(function(a){var u=e.node(a),s=e.parent(a);if(u.rank===r||u.minRank<=r&&r<=u.maxRank){o.setNode(a);o.setParent(a,s||i);t.A(e[n](a),(function(r){var n=r.v===a?r.w:r.v,t=o.edge(n,a),i=!oe.A(t)?t.weight:0;o.setEdge(n,a,{weight:e.edge(r).weight+i})}));if(Object.prototype.hasOwnProperty.call(u,"minRank")){o.setNode(a,{borderLeft:u.borderLeft[r],borderRight:u.borderRight[r]})}}}));return o}function Mn(e){var r;while(e.hasNode(r=u("_root")));return r}var Rn=n(16542);function Fn(e,r,n){var t=-1,i=e.length,o=r.length,a={};while(++tr||o&&a&&s&&!u&&!d||t&&a&&s||!n&&s||!i){return 1}if(!t&&!o&&!d&&e=u){return s}var d=n[t];return s*(d=="desc"?-1:1)}}return e.index-r.index}const Kn=Hn;function Un(e,r,n){if(r.length){r=(0,Yn.A)(r,(function(e){if((0,Hr.A)(e)){return function(r){return(0,zn.A)(r,e.length===1?e[0]:e)}}return e}))}else{r=[H.A]}var t=-1;r=(0,Yn.A)(r,(0,Qn.A)(ne.A));var i=(0,Bn.A)(e,(function(e,n,i){var o=(0,Yn.A)(r,(function(r){return r(e)}));return{criteria:o,index:++t,value:e}}));return $n(i,(function(e,r){return Kn(e,r,n)}))}const Xn=Un;var et=n(55881);var rt=(0,et.A)((function(e,r){if(e==null){return[]}var n=r.length;if(n>1&&(0,g.A)(e,r[0],r[1])){r=[]}else if(n>2&&(0,g.A)(r[0],r[1],r[2])){r=[r[0]]}return Xn(e,(0,Gn.A)(r,1),[])}));const nt=rt;function tt(e,r){var n=0;for(var t=1;t0){if(r%2){n+=s[r+1]}r=r-1>>1;s[r]+=e.weight}c+=e.weight*n})));return c}function ot(e){var r={};var n=We.A(e.nodes(),(function(r){return!e.children(r).length}));var i=U(f.A(n,(function(r){return e.node(r).rank})));var o=f.A(m(i+1),(function(){return[]}));function a(n){if(ue.A(r,n))return;r[n]=true;var i=e.node(n);o[i.rank].push(n);t.A(e.successors(n),a)}var u=nt(n,(function(r){return e.node(r).rank}));t.A(u,a);return o}function at(e,r){return f.A(r,(function(r){var n=e.inEdges(r);if(!n.length){return{v:r}}else{var t=yn.A(n,(function(r,n){var t=e.edge(n),i=e.node(n.v);return{sum:r.sum+t.weight*i.order,weight:r.weight+t.weight}}),{sum:0,weight:0});return{v:r,barycenter:t.sum/t.weight,weight:t.weight}}}))}function ut(e,r){var n={};t.A(e,(function(e,r){var t=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:r};if(!oe.A(e.barycenter)){t.barycenter=e.barycenter;t.weight=e.weight}}));t.A(r.edges(),(function(e){var r=n[e.v];var t=n[e.w];if(!oe.A(r)&&!oe.A(t)){t.indegree++;r.out.push(n[e.w])}}));var i=We.A(n,(function(e){return!e.indegree}));return st(i)}function st(e){var r=[];function n(e){return function(r){if(r.merged){return}if(oe.A(r.barycenter)||oe.A(e.barycenter)||r.barycenter>=e.barycenter){dt(e,r)}}}function i(r){return function(n){n["in"].push(r);if(--n.indegree===0){e.push(n)}}}while(e.length){var o=e.pop();r.push(o);t.A(o["in"].reverse(),n(o));t.A(o.out,i(o))}return f.A(We.A(r,(function(e){return!e.merged})),(function(e){return $(e,["vs","i","barycenter","weight"])}))}function dt(e,r){var n=0;var t=0;if(e.weight){n+=e.barycenter*e.weight;t+=e.weight}if(r.weight){n+=r.barycenter*r.weight;t+=r.weight}e.vs=r.vs.concat(e.vs);e.barycenter=n/t;e.weight=t;e.i=Math.min(r.i,e.i);r.merged=true}function ft(e,r){var n=_e(e,(function(e){return Object.prototype.hasOwnProperty.call(e,"barycenter")}));var i=n.lhs,o=nt(n.rhs,(function(e){return-e.i})),a=[],u=0,s=0,f=0;i.sort(vt(!!r));f=ct(a,o,f);t.A(i,(function(e){f+=e.vs.length;a.push(e.vs);u+=e.barycenter*e.weight;s+=e.weight;f=ct(a,o,f)}));var c={vs:d.A(a)};if(s){c.barycenter=u/s;c.weight=s}return c}function ct(e,r,n){var t;while(r.length&&(t=X.A(r)).i<=n){r.pop();e.push(t.vs);n++}return n}function vt(e){return function(r,n){if(r.barycentern.barycenter){return 1}return!e?r.i-n.i:n.i-r.i}}function ht(e,r,n,i){var o=e.children(r);var a=e.node(r);var u=a?a.borderLeft:undefined;var s=a?a.borderRight:undefined;var f={};if(u){o=We.A(o,(function(e){return e!==u&&e!==s}))}var c=at(e,o);t.A(c,(function(r){if(e.children(r.v).length){var t=ht(e,r.v,n,i);f[r.v]=t;if(Object.prototype.hasOwnProperty.call(t,"barycenter")){gt(r,t)}}}));var v=ut(c,n);lt(v,f);var h=ft(v,i);if(u){h.vs=d.A([u,h.vs,s]);if(e.predecessors(u).length){var l=e.node(e.predecessors(u)[0]),g=e.node(e.predecessors(s)[0]);if(!Object.prototype.hasOwnProperty.call(h,"barycenter")){h.barycenter=0;h.weight=0}h.barycenter=(h.barycenter*h.weight+l.order+g.order)/(h.weight+2);h.weight+=2}}return h}function lt(e,r){t.A(e,(function(e){e.vs=d.A(e.vs.map((function(e){if(r[e]){return r[e].vs}return e})))}))}function gt(e,r){if(!oe.A(e.barycenter)){e.barycenter=(e.barycenter*e.weight+r.barycenter*r.weight)/(e.weight+r.weight);e.weight+=r.weight}else{e.barycenter=r.barycenter;e.weight=r.weight}}function pt(e){var r=ye(e),n=At(e,m(1,r+1),"inEdges"),t=At(e,m(r-1,-1,-1),"outEdges");var i=ot(e);bt(e,i);var o=Number.POSITIVE_INFINITY,a;for(var u=0,s=0;s<4;++u,++s){wt(u%2?n:t,u%4>=2);i=Ae(e);var d=tt(e,i);if(da||u>r[s].lim));d=s;s=t;while((s=e.parent(s))!==d){o.push(s)}return{path:i.concat(o.reverse()),lca:d}}function _t(e){var r={};var n=0;function i(o){var a=n;t.A(e.children(o),i);r[o]={low:a,lim:n++}}t.A(e.children(),i);return r}var Et=n(76253);function Ot(e,r){return e&&(0,re.A)(e,(0,Et.A)(r))}const kt=Ot;var Nt=n(40283);var xt=n(13839);function It(e,r){return e==null?e:(0,Nt.A)(e,(0,Et.A)(r),xt.A)}const Pt=It;function jt(e,r){var n={};function i(r,i){var o=0,a=0,u=r.length,s=X.A(i);t.A(i,(function(r,d){var f=Tt(e,r),c=f?e.node(f).order:u;if(f||r===s){t.A(i.slice(a,d+1),(function(r){t.A(e.predecessors(r),(function(t){var i=e.node(t),a=i.order;if((au)){Lt(n,r,s)}}))}}))}function o(r,n){var o=-1,a,u=0;t.A(n,(function(t,s){if(e.node(t).dummy==="border"){var d=e.predecessors(t);if(d.length){a=e.node(d[0]).order;i(n,u,s,o,a);u=s;o=a}}i(n,u,n.length,a,r.length)}));return n}yn.A(r,o);return n}function Tt(e,r){if(e.node(r).dummy){return Je.A(e.predecessors(r),(function(r){return e.node(r).dummy}))}}function Lt(e,r,n){if(r>n){var t=r;r=n;n=t}var i=e[r];if(!i){e[r]=i={}}i[n]=true}function Mt(e,r,n){if(r>n){var t=r;r=n;n=t}return!!e[r]&&Object.prototype.hasOwnProperty.call(e[r],n)}function Rt(e,r,n,i){var o={},a={},u={};t.A(r,(function(e){t.A(e,(function(e,r){o[e]=e;a[e]=e;u[e]=r}))}));t.A(r,(function(e){var r=-1;t.A(e,(function(e){var t=i(e);if(t.length){t=nt(t,(function(e){return u[e]}));var s=(t.length-1)/2;for(var d=Math.floor(s),f=Math.ceil(s);d<=f;++d){var c=t[d];if(a[e]===e&&r{var r=n(" buildLayoutGraph",(()=>ti(e)));n(" runLayout",(()=>Jt(r,n)));n(" updateInputGraph",(()=>Wt(e,r)))}))}function Jt(e,r){r(" makeSpaceForEdgeLabels",(()=>ii(e)));r(" removeSelfEdges",(()=>hi(e)));r(" acyclic",(()=>T(e)));r(" nestingGraph.run",(()=>_n(e)));r(" rank",(()=>pn(he(e))));r(" injectEdgeLabelProxies",(()=>oi(e)));r(" removeEmptyRanks",(()=>be(e)));r(" nestingGraph.cleanup",(()=>Nn(e)));r(" normalizeRanks",(()=>we(e)));r(" assignRankMinMax",(()=>ai(e)));r(" removeEdgeLabelProxies",(()=>ui(e)));r(" normalize.run",(()=>Re(e)));r(" parentDummyChains",(()=>mt(e)));r(" addBorderSegments",(()=>ke(e)));r(" order",(()=>pt(e)));r(" insertSelfEdges",(()=>li(e)));r(" adjustCoordinateSystem",(()=>xe(e)));r(" position",(()=>qt(e)));r(" positionSelfEdges",(()=>gi(e)));r(" removeBorderNodes",(()=>vi(e)));r(" normalize.undo",(()=>Se(e)));r(" fixupEdgeLabelCoords",(()=>fi(e)));r(" undoCoordinateSystem",(()=>Ie(e)));r(" translateGraph",(()=>si(e)));r(" assignNodeIntersects",(()=>di(e)));r(" reversePoints",(()=>ci(e)));r(" acyclic.undo",(()=>M(e)))}function Wt(e,r){t.A(e.nodes(),(function(n){var t=e.node(n);var i=r.node(n);if(t){t.x=i.x;t.y=i.y;if(r.children(n).length){t.width=i.width;t.height=i.height}}}));t.A(e.edges(),(function(n){var t=e.edge(n);var i=r.edge(n);t.points=i.points;if(Object.prototype.hasOwnProperty.call(i,"x")){t.x=i.x;t.y=i.y}}));e.graph().width=r.graph().width;e.graph().height=r.graph().height}var Zt=["nodesep","edgesep","ranksep","marginx","marginy"];var Ht={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"};var Kt=["acyclicer","ranker","rankdir","align"];var Ut=["width","height"];var Xt={width:0,height:0};var ei=["minlen","weight","width","height","labeloffset"];var ri={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"};var ni=["labelpos"];function ti(e){var r=new y.T({multigraph:true,compound:true});var n=Ai(e.graph());r.setGraph(R.A({},Ht,pi(n,Zt),$(n,Kt)));t.A(e.nodes(),(function(n){var t=Ai(e.node(n));r.setNode(n,Q.A(pi(t,Ut),Xt));r.setParent(n,e.parent(n))}));t.A(e.edges(),(function(n){var t=Ai(e.edge(n));r.setEdge(n,R.A({},ri,pi(t,ei),$(t,ni)))}));return r}function ii(e){var r=e.graph();r.ranksep/=2;t.A(e.edges(),(function(n){var t=e.edge(n);t.minlen*=2;if(t.labelpos.toLowerCase()!=="c"){if(r.rankdir==="TB"||r.rankdir==="BT"){t.width+=t.labeloffset}else{t.height+=t.labeloffset}}}))}function oi(e){t.A(e.edges(),(function(r){var n=e.edge(r);if(n.width&&n.height){var t=e.node(r.v);var i=e.node(r.w);var o={rank:(i.rank-t.rank)/2+t.rank,e:r};ce(e,"edge-proxy",o,"_ep")}}))}function ai(e){var r=0;t.A(e.nodes(),(function(n){var t=e.node(n);if(t.borderTop){t.minRank=e.node(t.borderTop).rank;t.maxRank=e.node(t.borderBottom).rank;r=U(r,t.maxRank)}}));e.graph().maxRank=r}function ui(e){t.A(e.nodes(),(function(r){var n=e.node(r);if(n.dummy==="edge-proxy"){e.edge(n.e).labelRank=n.rank;e.removeNode(r)}}))}function si(e){var r=Number.POSITIVE_INFINITY;var n=0;var i=Number.POSITIVE_INFINITY;var o=0;var a=e.graph();var u=a.marginx||0;var s=a.marginy||0;function d(e){var t=e.x;var a=e.y;var u=e.width;var s=e.height;r=Math.min(r,t-u/2);n=Math.max(n,t+u/2);i=Math.min(i,a-s/2);o=Math.max(o,a+s/2)}t.A(e.nodes(),(function(r){d(e.node(r))}));t.A(e.edges(),(function(r){var n=e.edge(r);if(Object.prototype.hasOwnProperty.call(n,"x")){d(n)}}));r-=u;i-=s;t.A(e.nodes(),(function(n){var t=e.node(n);t.x-=r;t.y-=i}));t.A(e.edges(),(function(n){var o=e.edge(n);t.A(o.points,(function(e){e.x-=r;e.y-=i}));if(Object.prototype.hasOwnProperty.call(o,"x")){o.x-=r}if(Object.prototype.hasOwnProperty.call(o,"y")){o.y-=i}}));a.width=n-r+u;a.height=o-i+s}function di(e){t.A(e.edges(),(function(r){var n=e.edge(r);var t=e.node(r.v);var i=e.node(r.w);var o,a;if(!n.points){n.points=[];o=i;a=t}else{o=n.points[0];a=n.points[n.points.length-1]}n.points.unshift(pe(t,o));n.points.push(pe(i,a))}))}function fi(e){t.A(e.edges(),(function(r){var n=e.edge(r);if(Object.prototype.hasOwnProperty.call(n,"x")){if(n.labelpos==="l"||n.labelpos==="r"){n.width-=n.labeloffset}switch(n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}}}))}function ci(e){t.A(e.edges(),(function(r){var n=e.edge(r);if(n.reversed){n.points.reverse()}}))}function vi(e){t.A(e.nodes(),(function(r){if(e.children(r).length){var n=e.node(r);var t=e.node(n.borderTop);var i=e.node(n.borderBottom);var o=e.node(X.A(n.borderLeft));var a=e.node(X.A(n.borderRight));n.width=Math.abs(a.x-o.x);n.height=Math.abs(i.y-t.y);n.x=o.x+n.width/2;n.y=t.y+n.height/2}}));t.A(e.nodes(),(function(r){if(e.node(r).dummy==="border"){e.removeNode(r)}}))}function hi(e){t.A(e.edges(),(function(r){if(r.v===r.w){var n=e.node(r.v);if(!n.selfEdges){n.selfEdges=[]}n.selfEdges.push({e:r,label:e.edge(r)});e.removeEdge(r)}}))}function li(e){var r=Ae(e);t.A(r,(function(r){var n=0;t.A(r,(function(r,i){var o=e.node(r);o.order=i+n;t.A(o.selfEdges,(function(r){ce(e,"selfedge",{width:r.label.width,height:r.label.height,rank:o.rank,order:i+ ++n,e:r.e,label:r.label},"_se")}));delete o.selfEdges}))}))}function gi(e){t.A(e.nodes(),(function(r){var n=e.node(r);if(n.dummy==="selfedge"){var t=e.node(n.e.v);var i=t.x+t.width/2;var o=t.y;var a=n.x-i;var u=t.height/2;e.setEdge(n.e,n.label);e.removeNode(r);n.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}];n.label.x=n.x;n.label.y=n.y}}))}function pi(e,r){return ie($(e,r),Number)}function Ai(e){var r={};t.A(e,(function(e,n){r[n.toLowerCase()]=e}));return r}},65791:(e,r,n)=>{n.d(r,{T:()=>y});var t=n(33659);var i=n(58807);var o=n(37947);var a=n(97133);var u=n(74650);var s=n(69769);var d=n(89523);var f=n(62040);var c=n(55881);var v=n(19363);var h=n(10654);var l=(0,c.A)((function(e){return(0,v.A)((0,f.A)(e,1,h.A,true))}));const g=l;var p=n(44882);var A=n(65339);var w="\0";var b="\0";var m="";class y{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:true;this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:false;this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:false;this._label=undefined;this._defaultNodeLabelFn=t.A(undefined);this._defaultEdgeLabelFn=t.A(undefined);this._nodes={};if(this._isCompound){this._parent={};this._children={};this._children[b]={}}this._in={};this._preds={};this._out={};this._sucs={};this._edgeObjs={};this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){this._label=e;return this}graph(){return this._label}setDefaultNodeLabel(e){if(!i.A(e)){e=t.A(e)}this._defaultNodeLabelFn=e;return this}nodeCount(){return this._nodeCount}nodes(){return o.A(this._nodes)}sources(){var e=this;return a.A(this.nodes(),(function(r){return u.A(e._in[r])}))}sinks(){var e=this;return a.A(this.nodes(),(function(r){return u.A(e._out[r])}))}setNodes(e,r){var n=arguments;var t=this;s.A(e,(function(e){if(n.length>1){t.setNode(e,r)}else{t.setNode(e)}}));return this}setNode(e,r){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){if(arguments.length>1){this._nodes[e]=r}return this}this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e);if(this._isCompound){this._parent[e]=b;this._children[e]={};this._children[b][e]=true}this._in[e]={};this._preds[e]={};this._out[e]={};this._sucs[e]={};++this._nodeCount;return this}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var r=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e];if(this._isCompound){this._removeFromParentsChildList(e);delete this._parent[e];s.A(this.children(e),(e=>{this.setParent(e)}));delete this._children[e]}s.A(o.A(this._in[e]),r);delete this._in[e];delete this._preds[e];s.A(o.A(this._out[e]),r);delete this._out[e];delete this._sucs[e];--this._nodeCount}return this}setParent(e,r){if(!this._isCompound){throw new Error("Cannot set parent in a non-compound graph")}if(d.A(r)){r=b}else{r+="";for(var n=r;!d.A(n);n=this.parent(n)){if(n===e){throw new Error("Setting "+r+" as parent of "+e+" would create a cycle")}}this.setNode(r)}this.setNode(e);this._removeFromParentsChildList(e);this._parent[e]=r;this._children[r][e]=true;return this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==b){return r}}}children(e){if(d.A(e)){e=b}if(this._isCompound){var r=this._children[e];if(r){return o.A(r)}}else if(e===b){return this.nodes()}else if(this.hasNode(e)){return[]}}predecessors(e){var r=this._preds[e];if(r){return o.A(r)}}successors(e){var r=this._sucs[e];if(r){return o.A(r)}}neighbors(e){var r=this.predecessors(e);if(r){return g(r,this.successors(e))}}isLeaf(e){var r;if(this.isDirected()){r=this.successors(e)}else{r=this.neighbors(e)}return r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;s.A(this._nodes,(function(n,t){if(e(t)){r.setNode(t,n)}}));s.A(this._edgeObjs,(function(e){if(r.hasNode(e.v)&&r.hasNode(e.w)){r.setEdge(e,n.edge(e))}}));var t={};function i(e){var o=n.parent(e);if(o===undefined||r.hasNode(o)){t[e]=o;return o}else if(o in t){return t[o]}else{return i(o)}}if(this._isCompound){s.A(r.nodes(),(function(e){r.setParent(e,i(e))}))}return r}setDefaultEdgeLabel(e){if(!i.A(e)){e=t.A(e)}this._defaultEdgeLabelFn=e;return this}edgeCount(){return this._edgeCount}edges(){return p.A(this._edgeObjs)}setPath(e,r){var n=this;var t=arguments;A.A(e,(function(e,i){if(t.length>1){n.setEdge(e,i,r)}else{n.setEdge(e,i)}return i}));return this}setEdge(){var e,r,n,t;var i=false;var o=arguments[0];if(typeof o==="object"&&o!==null&&"v"in o){e=o.v;r=o.w;n=o.name;if(arguments.length===2){t=arguments[1];i=true}}else{e=o;r=arguments[1];n=arguments[3];if(arguments.length>2){t=arguments[2];i=true}}e=""+e;r=""+r;if(!d.A(n)){n=""+n}var a=O(this._isDirected,e,r,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,a)){if(i){this._edgeLabels[a]=t}return this}if(!d.A(n)&&!this._isMultigraph){throw new Error("Cannot set a named edge when isMultigraph = false")}this.setNode(e);this.setNode(r);this._edgeLabels[a]=i?t:this._defaultEdgeLabelFn(e,r,n);var u=k(this._isDirected,e,r,n);e=u.v;r=u.w;Object.freeze(u);this._edgeObjs[a]=u;_(this._preds[r],e);_(this._sucs[e],r);this._in[r][a]=u;this._out[e][a]=u;this._edgeCount++;return this}edge(e,r,n){var t=arguments.length===1?N(this._isDirected,arguments[0]):O(this._isDirected,e,r,n);return this._edgeLabels[t]}hasEdge(e,r,n){var t=arguments.length===1?N(this._isDirected,arguments[0]):O(this._isDirected,e,r,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,t)}removeEdge(e,r,n){var t=arguments.length===1?N(this._isDirected,arguments[0]):O(this._isDirected,e,r,n);var i=this._edgeObjs[t];if(i){e=i.v;r=i.w;delete this._edgeLabels[t];delete this._edgeObjs[t];E(this._preds[r],e);E(this._sucs[e],r);delete this._in[r][t];delete this._out[e][t];this._edgeCount--}return this}inEdges(e,r){var n=this._in[e];if(n){var t=p.A(n);if(!r){return t}return a.A(t,(function(e){return e.v===r}))}}outEdges(e,r){var n=this._out[e];if(n){var t=p.A(n);if(!r){return t}return a.A(t,(function(e){return e.w===r}))}}nodeEdges(e,r){var n=this.inEdges(e,r);if(n){return n.concat(this.outEdges(e,r))}}}y.prototype._nodeCount=0;y.prototype._edgeCount=0;function _(e,r){if(e[r]){e[r]++}else{e[r]=1}}function E(e,r){if(! --e[r]){delete e[r]}}function O(e,r,n,t){var i=""+r;var o=""+n;if(!e&&i>o){var a=i;i=o;o=a}return i+m+o+m+(d.A(t)?w:t)}function k(e,r,n,t){var i=""+r;var o=""+n;if(!e&&i>o){var a=i;i=o;o=a}var u={v:i,w:o};if(t){u.name=t}return u}function N(e,r){return O(e,r.v,r.w,r.name)}},84416:(e,r,n)=>{n.d(r,{T:()=>t.T});var t=n(65791);const i="2.1.9-pre"},95852:(e,r,n)=>{n.d(r,{A:()=>o});var t=n(62579);function i(e,r,n){var i=-1,o=e.length;while(++i{n.d(r,{A:()=>i});function t(e,r){return e{n.d(r,{A:()=>a});var t=n(15912);var i=n(21585);function o(e,r){var n=-1,o=(0,i.A)(e)?Array(e.length):[];(0,t.A)(e,(function(e,t,i){o[++n]=r(e,t,i)}));return o}const a=o},44835:(e,r,n)=>{n.d(r,{A:()=>v});var t=n(22883);var i=n(16542);var o=n(65900);var a=n(78912);var u=n(85356);var s=n(43512);function d(e,r,n,t){if(!(0,u.A)(e)){return e}r=(0,o.A)(r,e);var d=-1,f=r.length,c=f-1,v=e;while(v!=null&&++d{n.d(r,{A:()=>f});var t=n(55881);var i=n(24461);var o=n(31943);var a=n(13839);var u=Object.prototype;var s=u.hasOwnProperty;var d=(0,t.A)((function(e,r){e=Object(e);var n=-1;var t=r.length;var d=t>2?r[2]:undefined;if(d&&(0,o.A)(r[0],r[1],d)){t=1}while(++n{n.d(r,{A:()=>l});var t=n(1121);var i=n(21585);var o=n(37947);function a(e){return function(r,n,a){var u=Object(r);if(!(0,i.A)(r)){var s=(0,t.A)(n,3);r=(0,o.A)(r);n=function(e){return s(u[e],e,u)}}var d=e(r,n,a);return d>-1?u[s?r[d]:d]:undefined}}const u=a;var s=n(97314);var d=n(29914);var f=Math.max;function c(e,r,n){var i=e==null?0:e.length;if(!i){return-1}var o=n==null?0:(0,d.A)(n);if(o<0){o=f(i+o,0)}return(0,s.A)(e,(0,t.A)(r,3),o)}const v=c;var h=u(v);const l=h},74033:(e,r,n)=>{n.d(r,{A:()=>o});var t=n(62040);function i(e){var r=e==null?0:e.length;return r?(0,t.A)(e,1):[]}const o=i},2850:(e,r,n)=>{n.d(r,{A:()=>d});var t=Object.prototype;var i=t.hasOwnProperty;function o(e,r){return e!=null&&i.call(e,r)}const a=o;var u=n(64491);function s(e,r){return e!=null&&(0,u.A)(e,r,a)}const d=s},86378:(e,r,n)=>{n.d(r,{A:()=>s});var t=n(64128);var i=n(39990);var o=n(53315);var a="[object String]";function u(e){return typeof e=="string"||!(0,i.A)(e)&&(0,o.A)(e)&&(0,t.A)(e)==a}const s=u},80359:(e,r,n)=>{n.d(r,{A:()=>i});function t(e){var r=e==null?0:e.length;return r?e[r-1]:undefined}const i=t},8937:(e,r,n)=>{n.d(r,{A:()=>s});var t=n(98519);var i=n(1121);var o=n(97457);var a=n(39990);function u(e,r){var n=(0,a.A)(e)?t.A:o.A;return n(e,(0,i.A)(r,3))}const s=u},963:(e,r,n)=>{n.d(r,{A:()=>u});var t=n(95852);var i=n(51135);var o=n(63077);function a(e){return e&&e.length?(0,t.A)(e,o.A,i.A):undefined}const u=a},52712:(e,r,n)=>{n.d(r,{A:()=>y});var t=/\s/;function i(e){var r=e.length;while(r--&&t.test(e.charAt(r))){}return r}const o=i;var a=/^\s+/;function u(e){return e?e.slice(0,o(e)+1).replace(a,""):e}const s=u;var d=n(85356);var f=n(62579);var c=0/0;var v=/^[-+]0x[0-9a-f]+$/i;var h=/^0b[01]+$/i;var l=/^0o[0-7]+$/i;var g=parseInt;function p(e){if(typeof e=="number"){return e}if((0,f.A)(e)){return c}if((0,d.A)(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=(0,d.A)(r)?r+"":r}if(typeof e!="string"){return e===0?e:+e}e=s(e);var n=h.test(e);return n||l.test(e)?g(e.slice(2),n?2:8):v.test(e)?c:+e}const A=p;var w=1/0,b=17976931348623157e292;function m(e){if(!e){return e===0?e:0}e=A(e);if(e===w||e===-w){var r=e<0?-1:1;return r*b}return e===e?e:0}const y=m},29914:(e,r,n)=>{n.d(r,{A:()=>o});var t=n(52712);function i(e){var r=(0,t.A)(e),n=r%1;return r===r?n?r-n:r:0}const o=i}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/227.6bd3154334bb91c5ca1c.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/227.6bd3154334bb91c5ca1c.js new file mode 100644 index 0000000000000000000000000000000000000000..718fd8a97830766b0f70154e07fb71dcb4e1aa0d --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/227.6bd3154334bb91c5ca1c.js @@ -0,0 +1,2 @@ +/*! For license information please see 227.6bd3154334bb91c5ca1c.js.LICENSE.txt */ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[227],{69119:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0;e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;e.htmlCtrlEntityRegex=/&(newline|tab);/gi;e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;e.urlSchemeRegex=/^.+(:|:)/gim;e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;e.relativeFirstCharacters=[".","/"];e.BLANK_URL="about:blank"},16750:(t,e,r)=>{"use strict";var i;i={value:true};e.J=void 0;var a=r(69119);function n(t){return a.relativeFirstCharacters.indexOf(t[0])>-1}function o(t){var e=t.replace(a.ctrlCharactersRegex,"");return e.replace(a.htmlEntitiesRegex,(function(t,e){return String.fromCharCode(e)}))}function s(t){return URL.canParse(t)}function l(t){try{return decodeURIComponent(t)}catch(e){return t}}function c(t){if(!t){return a.BLANK_URL}var e;var r=l(t.trim());do{r=o(r).replace(a.htmlCtrlEntityRegex,"").replace(a.ctrlCharactersRegex,"").replace(a.whitespaceEscapeCharsRegex,"").trim();r=l(r);e=r.match(a.ctrlCharactersRegex)||r.match(a.htmlEntitiesRegex)||r.match(a.htmlCtrlEntityRegex)||r.match(a.whitespaceEscapeCharsRegex)}while(e&&e.length>0);var i=r;if(!i){return a.BLANK_URL}if(n(i)){return i}var c=i.trimStart();var h=c.match(a.urlSchemeRegex);if(!h){return i}var d=h[0].toLowerCase().trim();if(a.invalidProtocolRegex.test(d)){return a.BLANK_URL}var u=c.replace(/\\/g,"/");if(d==="mailto:"||d.includes("://")){return u}if(d==="http:"||d==="https:"){if(!s(u)){return a.BLANK_URL}var f=new URL(u);f.protocol=f.protocol.toLowerCase();f.hostname=f.hostname.toLowerCase();return f.toString()}return u}e.J=c},74353:function(t){!function(e,r){true?t.exports=r():0}(this,(function(){"use strict";var t=1e3,e=6e4,r=36e5,i="millisecond",a="second",n="minute",o="hour",s="day",l="week",c="month",h="quarter",d="year",u="date",f="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},y=function(t,e,r){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(r)+t},b={s:y,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),i=Math.floor(r/60),a=r%60;return(e<=0?"+":"-")+y(i,2,"0")+":"+y(a,2,"0")},m:function t(e,r){if(e.date()1)return t(o[0])}else{var s=e.name;C[s]=e,a=s}return!i&&a&&(x=a),a||!i&&x},S=function(t,e){if(k(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new T(r)},A=b;A.l=w,A.i=k,A.w=function(t,e){return S(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var T=function(){function m(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[v]=!0}var y=m.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(A.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(p);if(i){var a=i[2]-1||0,n=(i[7]||"0").substring(0,3);return r?new Date(Date.UTC(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)):new Date(i[1],a,i[3]||1,i[4]||0,i[5]||0,i[6]||0,n)}}return new Date(e)}(t),this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return A},y.isValid=function(){return!(this.$d.toString()===f)},y.isSame=function(t,e){var r=S(t);return this.startOf(e)<=r&&r<=this.endOf(e)},y.isAfter=function(t,e){return S(t){"use strict";r.d(e,{A:()=>ot});const{entries:i,setPrototypeOf:a,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:s}=Object;let{freeze:l,seal:c,create:h}=Object;let{apply:d,construct:u}=typeof Reflect!=="undefined"&&Reflect;if(!l){l=function t(e){return e}}if(!c){c=function t(e){return e}}if(!d){d=function t(e,r,i){return e.apply(r,i)}}if(!u){u=function t(e,r){return new e(...r)}}const f=B(Array.prototype.forEach);const p=B(Array.prototype.lastIndexOf);const g=B(Array.prototype.pop);const m=B(Array.prototype.push);const y=B(Array.prototype.splice);const b=B(String.prototype.toLowerCase);const x=B(String.prototype.toString);const C=B(String.prototype.match);const v=B(String.prototype.replace);const k=B(String.prototype.indexOf);const w=B(String.prototype.trim);const S=B(Object.prototype.hasOwnProperty);const A=B(RegExp.prototype.test);const T=L(TypeError);function B(t){return function(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a2&&arguments[2]!==undefined?arguments[2]:b;if(a){a(t,null)}let i=e.length;while(i--){let a=e[i];if(typeof a==="string"){const t=r(a);if(t!==a){if(!n(e)){e[i]=t}a=t}}t[a]=true}return t}function _(t){for(let e=0;e/gm);const Y=c(/\$\{[\w\W]*/gm);const U=c(/^data-[\-\w.\u00B7-\uFFFF]+$/);const G=c(/^aria-[\-\w]+$/);const V=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i);const X=c(/^(?:\w+script|data):/i);const Z=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g);const J=c(/^html$/i);const Q=c(/^[a-z][.\w]*(-[.\w]+)+$/i);var tt=Object.freeze({__proto__:null,ARIA_ATTR:G,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:Q,DATA_ATTR:U,DOCTYPE_NAME:J,ERB_EXPR:H,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:X,MUSTACHE_EXPR:j,TMPLIT_EXPR:Y});const et={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12};const rt=function t(){return typeof window==="undefined"?null:window};const it=function t(e,r){if(typeof e!=="object"||typeof e.createPolicy!=="function"){return null}let i=null;const a="data-tt-policy-suffix";if(r&&r.hasAttribute(a)){i=r.getAttribute(a)}const n="dompurify"+(i?"#"+i:"");try{return e.createPolicy(n,{createHTML(t){return t},createScriptURL(t){return t}})}catch(o){console.warn("TrustedTypes policy "+n+" could not be created.");return null}};const at=function t(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function nt(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:rt();const e=t=>nt(t);e.version="3.2.4";e.removed=[];if(!t||!t.document||t.document.nodeType!==et.document||!t.Element){e.isSupported=false;return e}let{document:r}=t;const a=r;const n=a.currentScript;const{DocumentFragment:o,HTMLTemplateElement:s,Node:c,Element:d,NodeFilter:u,NamedNodeMap:B=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:L,DOMParser:_,trustedTypes:j}=t;const H=d.prototype;const Y=$(H,"cloneNode");const U=$(H,"remove");const G=$(H,"nextSibling");const X=$(H,"childNodes");const Z=$(H,"parentNode");if(typeof s==="function"){const t=r.createElement("template");if(t.content&&t.content.ownerDocument){r=t.content.ownerDocument}}let Q;let ot="";const{implementation:st,createNodeIterator:lt,createDocumentFragment:ct,getElementsByTagName:ht}=r;const{importNode:dt}=a;let ut=at();e.isSupported=typeof i==="function"&&typeof Z==="function"&&st&&st.createHTMLDocument!==undefined;const{MUSTACHE_EXPR:ft,ERB_EXPR:pt,TMPLIT_EXPR:gt,DATA_ATTR:mt,ARIA_ATTR:yt,IS_SCRIPT_OR_DATA:bt,ATTR_WHITESPACE:xt,CUSTOM_ELEMENT:Ct}=tt;let{IS_ALLOWED_URI:vt}=tt;let kt=null;const wt=M({},[...E,...O,...D,...K,...P]);let St=null;const At=M({},[...z,...q,...N,...W]);let Tt=Object.seal(h(null,{tagNameCheck:{writable:true,configurable:false,enumerable:true,value:null},attributeNameCheck:{writable:true,configurable:false,enumerable:true,value:null},allowCustomizedBuiltInElements:{writable:true,configurable:false,enumerable:true,value:false}}));let Bt=null;let Lt=null;let Mt=true;let _t=true;let Ft=false;let $t=true;let Et=false;let Ot=true;let Dt=false;let It=false;let Kt=false;let Rt=false;let Pt=false;let zt=false;let qt=true;let Nt=false;const Wt="user-content-";let jt=true;let Ht=false;let Yt={};let Ut=null;const Gt=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Vt=null;const Xt=M({},["audio","video","img","source","image","track"]);let Zt=null;const Jt=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]);const Qt="http://www.w3.org/1998/Math/MathML";const te="http://www.w3.org/2000/svg";const ee="http://www.w3.org/1999/xhtml";let re=ee;let ie=false;let ae=null;const ne=M({},[Qt,te,ee],x);let oe=M({},["mi","mo","mn","ms","mtext"]);let se=M({},["annotation-xml"]);const le=M({},["title","style","font","a","script"]);let ce=null;const he=["application/xhtml+xml","text/html"];const de="text/html";let ue=null;let fe=null;const pe=r.createElement("form");const ge=function t(e){return e instanceof RegExp||e instanceof Function};const me=function t(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(fe&&fe===e){return}if(!e||typeof e!=="object"){e={}}e=F(e);ce=he.indexOf(e.PARSER_MEDIA_TYPE)===-1?de:e.PARSER_MEDIA_TYPE;ue=ce==="application/xhtml+xml"?x:b;kt=S(e,"ALLOWED_TAGS")?M({},e.ALLOWED_TAGS,ue):wt;St=S(e,"ALLOWED_ATTR")?M({},e.ALLOWED_ATTR,ue):At;ae=S(e,"ALLOWED_NAMESPACES")?M({},e.ALLOWED_NAMESPACES,x):ne;Zt=S(e,"ADD_URI_SAFE_ATTR")?M(F(Jt),e.ADD_URI_SAFE_ATTR,ue):Jt;Vt=S(e,"ADD_DATA_URI_TAGS")?M(F(Xt),e.ADD_DATA_URI_TAGS,ue):Xt;Ut=S(e,"FORBID_CONTENTS")?M({},e.FORBID_CONTENTS,ue):Gt;Bt=S(e,"FORBID_TAGS")?M({},e.FORBID_TAGS,ue):{};Lt=S(e,"FORBID_ATTR")?M({},e.FORBID_ATTR,ue):{};Yt=S(e,"USE_PROFILES")?e.USE_PROFILES:false;Mt=e.ALLOW_ARIA_ATTR!==false;_t=e.ALLOW_DATA_ATTR!==false;Ft=e.ALLOW_UNKNOWN_PROTOCOLS||false;$t=e.ALLOW_SELF_CLOSE_IN_ATTR!==false;Et=e.SAFE_FOR_TEMPLATES||false;Ot=e.SAFE_FOR_XML!==false;Dt=e.WHOLE_DOCUMENT||false;Rt=e.RETURN_DOM||false;Pt=e.RETURN_DOM_FRAGMENT||false;zt=e.RETURN_TRUSTED_TYPE||false;Kt=e.FORCE_BODY||false;qt=e.SANITIZE_DOM!==false;Nt=e.SANITIZE_NAMED_PROPS||false;jt=e.KEEP_CONTENT!==false;Ht=e.IN_PLACE||false;vt=e.ALLOWED_URI_REGEXP||V;re=e.NAMESPACE||ee;oe=e.MATHML_TEXT_INTEGRATION_POINTS||oe;se=e.HTML_INTEGRATION_POINTS||se;Tt=e.CUSTOM_ELEMENT_HANDLING||{};if(e.CUSTOM_ELEMENT_HANDLING&&ge(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)){Tt.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck}if(e.CUSTOM_ELEMENT_HANDLING&&ge(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)){Tt.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck}if(e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==="boolean"){Tt.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements}if(Et){_t=false}if(Pt){Rt=true}if(Yt){kt=M({},P);St=[];if(Yt.html===true){M(kt,E);M(St,z)}if(Yt.svg===true){M(kt,O);M(St,q);M(St,W)}if(Yt.svgFilters===true){M(kt,D);M(St,q);M(St,W)}if(Yt.mathMl===true){M(kt,K);M(St,N);M(St,W)}}if(e.ADD_TAGS){if(kt===wt){kt=F(kt)}M(kt,e.ADD_TAGS,ue)}if(e.ADD_ATTR){if(St===At){St=F(St)}M(St,e.ADD_ATTR,ue)}if(e.ADD_URI_SAFE_ATTR){M(Zt,e.ADD_URI_SAFE_ATTR,ue)}if(e.FORBID_CONTENTS){if(Ut===Gt){Ut=F(Ut)}M(Ut,e.FORBID_CONTENTS,ue)}if(jt){kt["#text"]=true}if(Dt){M(kt,["html","head","body"])}if(kt.table){M(kt,["tbody"]);delete Bt.tbody}if(e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=="function"){throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.')}if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=="function"){throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.')}Q=e.TRUSTED_TYPES_POLICY;ot=Q.createHTML("")}else{if(Q===undefined){Q=it(j,n)}if(Q!==null&&typeof ot==="string"){ot=Q.createHTML("")}}if(l){l(e)}fe=e};const ye=M({},[...O,...D,...I]);const be=M({},[...K,...R]);const xe=function t(e){let r=Z(e);if(!r||!r.tagName){r={namespaceURI:re,tagName:"template"}}const i=b(e.tagName);const a=b(r.tagName);if(!ae[e.namespaceURI]){return false}if(e.namespaceURI===te){if(r.namespaceURI===ee){return i==="svg"}if(r.namespaceURI===Qt){return i==="svg"&&(a==="annotation-xml"||oe[a])}return Boolean(ye[i])}if(e.namespaceURI===Qt){if(r.namespaceURI===ee){return i==="math"}if(r.namespaceURI===te){return i==="math"&&se[a]}return Boolean(be[i])}if(e.namespaceURI===ee){if(r.namespaceURI===te&&!se[a]){return false}if(r.namespaceURI===Qt&&!oe[a]){return false}return!be[i]&&(le[i]||!ye[i])}if(ce==="application/xhtml+xml"&&ae[e.namespaceURI]){return true}return false};const Ce=function t(r){m(e.removed,{element:r});try{Z(r).removeChild(r)}catch(i){U(r)}};const ve=function t(r,i){try{m(e.removed,{attribute:i.getAttributeNode(r),from:i})}catch(a){m(e.removed,{attribute:null,from:i})}i.removeAttribute(r);if(r==="is"){if(Rt||Pt){try{Ce(i)}catch(a){}}else{try{i.setAttribute(r,"")}catch(a){}}}};const ke=function t(e){let i=null;let a=null;if(Kt){e=""+e}else{const t=C(e,/^[\r\n\t ]+/);a=t&&t[0]}if(ce==="application/xhtml+xml"&&re===ee){e=''+e+""}const n=Q?Q.createHTML(e):e;if(re===ee){try{i=(new _).parseFromString(n,ce)}catch(s){}}if(!i||!i.documentElement){i=st.createDocument(re,"template",null);try{i.documentElement.innerHTML=ie?ot:n}catch(s){}}const o=i.body||i.documentElement;if(e&&a){o.insertBefore(r.createTextNode(a),o.childNodes[0]||null)}if(re===ee){return ht.call(i,Dt?"html":"body")[0]}return Dt?i.documentElement:o};const we=function t(e){return lt.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)};const Se=function t(e){return e instanceof L&&(typeof e.nodeName!=="string"||typeof e.textContent!=="string"||typeof e.removeChild!=="function"||!(e.attributes instanceof B)||typeof e.removeAttribute!=="function"||typeof e.setAttribute!=="function"||typeof e.namespaceURI!=="string"||typeof e.insertBefore!=="function"||typeof e.hasChildNodes!=="function")};const Ae=function t(e){return typeof c==="function"&&e instanceof c};function Te(t,r,i){f(t,(t=>{t.call(e,r,i,fe)}))}const Be=function t(r){let i=null;Te(ut.beforeSanitizeElements,r,null);if(Se(r)){Ce(r);return true}const a=ue(r.nodeName);Te(ut.uponSanitizeElement,r,{tagName:a,allowedTags:kt});if(r.hasChildNodes()&&!Ae(r.firstElementChild)&&A(/<[/\w]/g,r.innerHTML)&&A(/<[/\w]/g,r.textContent)){Ce(r);return true}if(r.nodeType===et.progressingInstruction){Ce(r);return true}if(Ot&&r.nodeType===et.comment&&A(/<[/\w]/g,r.data)){Ce(r);return true}if(!kt[a]||Bt[a]){if(!Bt[a]&&Me(a)){if(Tt.tagNameCheck instanceof RegExp&&A(Tt.tagNameCheck,a)){return false}if(Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(a)){return false}}if(jt&&!Ut[a]){const t=Z(r)||r.parentNode;const e=X(r)||r.childNodes;if(e&&t){const i=e.length;for(let a=i-1;a>=0;--a){const i=Y(e[a],true);i.__removalCount=(r.__removalCount||0)+1;t.insertBefore(i,G(r))}}}Ce(r);return true}if(r instanceof d&&!xe(r)){Ce(r);return true}if((a==="noscript"||a==="noembed"||a==="noframes")&&A(/<\/no(script|embed|frames)/i,r.innerHTML)){Ce(r);return true}if(Et&&r.nodeType===et.text){i=r.textContent;f([ft,pt,gt],(t=>{i=v(i,t," ")}));if(r.textContent!==i){m(e.removed,{element:r.cloneNode()});r.textContent=i}}Te(ut.afterSanitizeElements,r,null);return false};const Le=function t(e,i,a){if(qt&&(i==="id"||i==="name")&&(a in r||a in pe)){return false}if(_t&&!Lt[i]&&A(mt,i));else if(Mt&&A(yt,i));else if(!St[i]||Lt[i]){if(Me(e)&&(Tt.tagNameCheck instanceof RegExp&&A(Tt.tagNameCheck,e)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(e))&&(Tt.attributeNameCheck instanceof RegExp&&A(Tt.attributeNameCheck,i)||Tt.attributeNameCheck instanceof Function&&Tt.attributeNameCheck(i))||i==="is"&&Tt.allowCustomizedBuiltInElements&&(Tt.tagNameCheck instanceof RegExp&&A(Tt.tagNameCheck,a)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(a)));else{return false}}else if(Zt[i]);else if(A(vt,v(a,xt,"")));else if((i==="src"||i==="xlink:href"||i==="href")&&e!=="script"&&k(a,"data:")===0&&Vt[e]);else if(Ft&&!A(bt,v(a,xt,"")));else if(a){return false}else;return true};const Me=function t(e){return e!=="annotation-xml"&&C(e,Ct)};const _e=function t(r){Te(ut.beforeSanitizeAttributes,r,null);const{attributes:i}=r;if(!i||Se(r)){return}const a={attrName:"",attrValue:"",keepAttr:true,allowedAttributes:St,forceKeepAttr:undefined};let n=i.length;while(n--){const t=i[n];const{name:s,namespaceURI:l,value:c}=t;const h=ue(s);let d=s==="value"?c:w(c);a.attrName=h;a.attrValue=d;a.keepAttr=true;a.forceKeepAttr=undefined;Te(ut.uponSanitizeAttribute,r,a);d=a.attrValue;if(Nt&&(h==="id"||h==="name")){ve(s,r);d=Wt+d}if(Ot&&A(/((--!?|])>)|<\/(style|title)/i,d)){ve(s,r);continue}if(a.forceKeepAttr){continue}ve(s,r);if(!a.keepAttr){continue}if(!$t&&A(/\/>/i,d)){ve(s,r);continue}if(Et){f([ft,pt,gt],(t=>{d=v(d,t," ")}))}const u=ue(r.nodeName);if(!Le(u,h,d)){continue}if(Q&&typeof j==="object"&&typeof j.getAttributeType==="function"){if(l);else{switch(j.getAttributeType(u,h)){case"TrustedHTML":{d=Q.createHTML(d);break}case"TrustedScriptURL":{d=Q.createScriptURL(d);break}}}}try{if(l){r.setAttributeNS(l,s,d)}else{r.setAttribute(s,d)}if(Se(r)){Ce(r)}else{g(e.removed)}}catch(o){}}Te(ut.afterSanitizeAttributes,r,null)};const Fe=function t(e){let r=null;const i=we(e);Te(ut.beforeSanitizeShadowDOM,e,null);while(r=i.nextNode()){Te(ut.uponSanitizeShadowNode,r,null);Be(r);_e(r);if(r.content instanceof o){t(r.content)}}Te(ut.afterSanitizeShadowDOM,e,null)};e.sanitize=function(t){let r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let i=null;let n=null;let s=null;let l=null;ie=!t;if(ie){t="\x3c!--\x3e"}if(typeof t!=="string"&&!Ae(t)){if(typeof t.toString==="function"){t=t.toString();if(typeof t!=="string"){throw T("dirty is not a string, aborting")}}else{throw T("toString is not a function")}}if(!e.isSupported){return t}if(!It){me(r)}e.removed=[];if(typeof t==="string"){Ht=false}if(Ht){if(t.nodeName){const e=ue(t.nodeName);if(!kt[e]||Bt[e]){throw T("root node is forbidden and cannot be sanitized in-place")}}}else if(t instanceof c){i=ke("\x3c!----\x3e");n=i.ownerDocument.importNode(t,true);if(n.nodeType===et.element&&n.nodeName==="BODY"){i=n}else if(n.nodeName==="HTML"){i=n}else{i.appendChild(n)}}else{if(!Rt&&!Et&&!Dt&&t.indexOf("<")===-1){return Q&&zt?Q.createHTML(t):t}i=ke(t);if(!i){return Rt?null:zt?ot:""}}if(i&&Kt){Ce(i.firstChild)}const h=we(Ht?t:i);while(s=h.nextNode()){Be(s);_e(s);if(s.content instanceof o){Fe(s.content)}}if(Ht){return t}if(Rt){if(Pt){l=ct.call(i.ownerDocument);while(i.firstChild){l.appendChild(i.firstChild)}}else{l=i}if(St.shadowroot||St.shadowrootmode){l=dt.call(a,l,true)}return l}let d=Dt?i.outerHTML:i.innerHTML;if(Dt&&kt["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&A(J,i.ownerDocument.doctype.name)){d="\n"+d}if(Et){f([ft,pt,gt],(t=>{d=v(d,t," ")}))}return Q&&zt?Q.createHTML(d):d};e.setConfig=function(){let t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};me(t);It=true};e.clearConfig=function(){fe=null;It=false};e.isValidAttribute=function(t,e,r){if(!fe){me({})}const i=ue(t);const a=ue(e);return Le(i,a,r)};e.addHook=function(t,e){if(typeof e!=="function"){return}m(ut[t],e)};e.removeHook=function(t,e){if(e!==undefined){const r=p(ut[t],e);return r===-1?undefined:y(ut[t],r,1)[0]}return g(ut[t])};e.removeHooks=function(t){ut[t]=[]};e.removeAllHooks=function(){ut=at()};return e}var ot=nt()},25e3:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(57991);var a=r(59773);class n{constructor(){this.type=a.Z.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=a.Z.ALL}is(t){return this.type===t}}const o=n;class s{constructor(t,e){this.color=e;this.changed=false;this.data=t;this.type=new o}set(t,e){this.color=e;this.changed=false;this.data=t;this.type.type=a.Z.ALL;return this}_ensureHSL(){const t=this.data;const{h:e,s:r,l:a}=t;if(e===undefined)t.h=i.A.channel.rgb2hsl(t,"h");if(r===undefined)t.s=i.A.channel.rgb2hsl(t,"s");if(a===undefined)t.l=i.A.channel.rgb2hsl(t,"l")}_ensureRGB(){const t=this.data;const{r:e,g:r,b:a}=t;if(e===undefined)t.r=i.A.channel.hsl2rgb(t,"r");if(r===undefined)t.g=i.A.channel.hsl2rgb(t,"g");if(a===undefined)t.b=i.A.channel.hsl2rgb(t,"b")}get r(){const t=this.data;const e=t.r;if(!this.type.is(a.Z.HSL)&&e!==undefined)return e;this._ensureHSL();return i.A.channel.hsl2rgb(t,"r")}get g(){const t=this.data;const e=t.g;if(!this.type.is(a.Z.HSL)&&e!==undefined)return e;this._ensureHSL();return i.A.channel.hsl2rgb(t,"g")}get b(){const t=this.data;const e=t.b;if(!this.type.is(a.Z.HSL)&&e!==undefined)return e;this._ensureHSL();return i.A.channel.hsl2rgb(t,"b")}get h(){const t=this.data;const e=t.h;if(!this.type.is(a.Z.RGB)&&e!==undefined)return e;this._ensureRGB();return i.A.channel.rgb2hsl(t,"h")}get s(){const t=this.data;const e=t.s;if(!this.type.is(a.Z.RGB)&&e!==undefined)return e;this._ensureRGB();return i.A.channel.rgb2hsl(t,"s")}get l(){const t=this.data;const e=t.l;if(!this.type.is(a.Z.RGB)&&e!==undefined)return e;this._ensureRGB();return i.A.channel.rgb2hsl(t,"l")}get a(){return this.data.a}set r(t){this.type.set(a.Z.RGB);this.changed=true;this.data.r=t}set g(t){this.type.set(a.Z.RGB);this.changed=true;this.data.g=t}set b(t){this.type.set(a.Z.RGB);this.changed=true;this.data.b=t}set h(t){this.type.set(a.Z.HSL);this.changed=true;this.data.h=t}set s(t){this.type.set(a.Z.HSL);this.changed=true;this.data.s=t}set l(t){this.type.set(a.Z.HSL);this.changed=true;this.data.l=t}set a(t){this.changed=true;this.data.a=t}}const l=s;const c=new l({r:0,g:0,b:0,a:0},"transparent");const h=c},63221:(t,e,r)=>{"use strict";r.d(e,{A:()=>g});var i=r(25e3);var a=r(59773);const n={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(n.re);if(!e)return;const r=e[1];const a=parseInt(r,16);const o=r.length;const s=o%4===0;const l=o>4;const c=l?1:17;const h=l?8:4;const d=s?0:-1;const u=l?255:15;return i.A.set({r:(a>>h*(d+3)&u)*c,g:(a>>h*(d+2)&u)*c,b:(a>>h*(d+1)&u)*c,a:s?(a&u)*c/255:1},t)},stringify:t=>{const{r:e,g:r,b:i,a:n}=t;if(n<1){return`#${a.Y[Math.round(e)]}${a.Y[Math.round(r)]}${a.Y[Math.round(i)]}${a.Y[Math.round(n*255)]}`}else{return`#${a.Y[Math.round(e)]}${a.Y[Math.round(r)]}${a.Y[Math.round(i)]}`}}};const o=n;var s=r(57991);const l={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(l.hueRe);if(e){const[,t,r]=e;switch(r){case"grad":return s.A.channel.clamp.h(parseFloat(t)*.9);case"rad":return s.A.channel.clamp.h(parseFloat(t)*180/Math.PI);case"turn":return s.A.channel.clamp.h(parseFloat(t)*360)}}return s.A.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(l.re);if(!r)return;const[,a,n,o,c,h]=r;return i.A.set({h:l._hue2deg(a),s:s.A.channel.clamp.s(parseFloat(n)),l:s.A.channel.clamp.l(parseFloat(o)),a:c?s.A.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{h:e,s:r,l:i,a}=t;if(a<1){return`hsla(${s.A.lang.round(e)}, ${s.A.lang.round(r)}%, ${s.A.lang.round(i)}%, ${a})`}else{return`hsl(${s.A.lang.round(e)}, ${s.A.lang.round(r)}%, ${s.A.lang.round(i)}%)`}}};const c=l;const h={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=h.colors[t];if(!e)return;return o.parse(e)},stringify:t=>{const e=o.stringify(t);for(const r in h.colors){if(h.colors[r]===e)return r}return}};const d=h;const u={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(u.re);if(!r)return;const[,a,n,o,l,c,h,d,f]=r;return i.A.set({r:s.A.channel.clamp.r(n?parseFloat(a)*2.55:parseFloat(a)),g:s.A.channel.clamp.g(l?parseFloat(o)*2.55:parseFloat(o)),b:s.A.channel.clamp.b(h?parseFloat(c)*2.55:parseFloat(c)),a:d?s.A.channel.clamp.a(f?parseFloat(d)/100:parseFloat(d)):1},t)},stringify:t=>{const{r:e,g:r,b:i,a}=t;if(a<1){return`rgba(${s.A.lang.round(e)}, ${s.A.lang.round(r)}, ${s.A.lang.round(i)}, ${s.A.lang.round(a)})`}else{return`rgb(${s.A.lang.round(e)}, ${s.A.lang.round(r)}, ${s.A.lang.round(i)})`}}};const f=u;const p={format:{keyword:d,hex:o,rgb:f,rgba:f,hsl:c,hsla:c},parse:t=>{if(typeof t!=="string")return t;const e=o.parse(t)||f.parse(t)||c.parse(t)||d.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>{if(!t.changed&&t.color)return t.color;if(t.type.is(a.Z.HSL)||t.data.r===undefined){return c.stringify(t)}else if(t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)){return f.stringify(t)}else{return o.stringify(t)}}};const g=p},59773:(t,e,r)=>{"use strict";r.d(e,{Y:()=>a,Z:()=>n});var i=r(57991);const a={};for(let o=0;o<=255;o++)a[o]=i.A.unit.dec2hex(o);const n={ALL:0,RGB:1,HSL:2}},42198:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(57991);var a=r(63221);const n=(t,e,r)=>{const n=a.A.parse(t);const o=n[e];const s=i.A.channel.clamp[e](o+r);if(o!==s)n[e]=s;return a.A.stringify(n)};const o=n},69745:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(57991);var a=r(63221);const n=(t,e)=>{const r=a.A.parse(t);for(const a in e){r[a]=i.A.channel.clamp[a](e[a])}return a.A.stringify(r)};const o=n},48750:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=r(42198);const a=(t,e)=>(0,i.A)(t,"l",-e);const n=a},63170:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(57991);var a=r(63221);const n=t=>{const{r:e,g:r,b:n}=a.A.parse(t);const o=.2126*i.A.channel.toLinear(e)+.7152*i.A.channel.toLinear(r)+.0722*i.A.channel.toLinear(n);return i.A.lang.round(o)};const o=n;const s=t=>o(t)>=.5;const l=s;const c=t=>!l(t);const h=c},77470:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=r(42198);const a=(t,e)=>(0,i.A)(t,"l",e);const n=a},3635:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var i=r(57991);var a=r(25e3);var n=r(63221);var o=r(69745);const s=(t,e,r=0,s=1)=>{if(typeof t!=="number")return(0,o.A)(t,{a:e});const l=a.A.set({r:i.A.channel.clamp.r(t),g:i.A.channel.clamp.g(e),b:i.A.channel.clamp.b(r),a:i.A.channel.clamp.a(s)});return n.A.stringify(l)};const l=s},57991:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});const i={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>{if(r<0)r+=1;if(r>1)r-=1;if(r<1/6)return t+(e-t)*6*r;if(r<1/2)return e;if(r<2/3)return t+(e-t)*(2/3-r)*6;return t},hsl2rgb:({h:t,s:e,l:r},a)=>{if(!e)return r*2.55;t/=360;e/=100;r/=100;const n=r<.5?r*(1+e):r+e-r*e;const o=2*r-n;switch(a){case"r":return i.hue2rgb(o,n,t+1/3)*255;case"g":return i.hue2rgb(o,n,t)*255;case"b":return i.hue2rgb(o,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},i)=>{t/=255;e/=255;r/=255;const a=Math.max(t,e,r);const n=Math.min(t,e,r);const o=(a+n)/2;if(i==="l")return o*100;if(a===n)return 0;const s=a-n;const l=o>.5?s/(2-a-n):s/(a+n);if(i==="s")return l*100;switch(a){case t:return((e-r)/s+(e{if(e>r)return Math.min(e,Math.max(r,t));return Math.min(r,Math.max(e,t))},round:t=>Math.round(t*1e10)/1e10};const o=n;const s={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}};const l=s;const c={channel:a,lang:o,unit:l};const h=c},54951:(t,e,r)=>{"use strict";r.d(e,{A:()=>x});function i(){this.__data__=[];this.size=0}const a=i;var n=r(24461);function o(t,e){var r=t.length;while(r--){if((0,n.A)(t[r][0],e)){return r}}return-1}const s=o;var l=Array.prototype;var c=l.splice;function h(t){var e=this.__data__,r=s(e,t);if(r<0){return false}var i=e.length-1;if(r==i){e.pop()}else{c.call(e,r,1)}--this.size;return true}const d=h;function u(t){var e=this.__data__,r=s(e,t);return r<0?undefined:e[r][1]}const f=u;function p(t){return s(this.__data__,t)>-1}const g=p;function m(t,e){var r=this.__data__,i=s(r,t);if(i<0){++this.size;r.push([t,e])}else{r[i][1]=e}return this}const y=m;function b(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e{"use strict";r.d(e,{A:()=>o});var i=r(39023);var a=r(24606);var n=(0,i.A)(a.A,"Map");const o=n},9883:(t,e,r)=>{"use strict";r.d(e,{A:()=>q});var i=r(39023);var a=(0,i.A)(Object,"create");const n=a;function o(){this.__data__=n?n(null):{};this.size=0}const s=o;function l(t){var e=this.has(t)&&delete this.__data__[t];this.size-=e?1:0;return e}const c=l;var h="__lodash_hash_undefined__";var d=Object.prototype;var u=d.hasOwnProperty;function f(t){var e=this.__data__;if(n){var r=e[t];return r===h?undefined:r}return u.call(e,t)?e[t]:undefined}const p=f;var g=Object.prototype;var m=g.hasOwnProperty;function y(t){var e=this.__data__;return n?e[t]!==undefined:m.call(e,t)}const b=y;var x="__lodash_hash_undefined__";function C(t,e){var r=this.__data__;this.size+=this.has(t)?0:1;r[t]=n&&e===undefined?x:e;return this}const v=C;function k(t){var e=-1,r=t==null?0:t.length;this.clear();while(++e{"use strict";r.d(e,{A:()=>o});var i=r(39023);var a=r(24606);var n=(0,i.A)(a.A,"Set");const o=n},28478:(t,e,r)=>{"use strict";r.d(e,{A:()=>b});var i=r(54951);function a(){this.__data__=new i.A;this.size=0}const n=a;function o(t){var e=this.__data__,r=e["delete"](t);this.size=e.size;return r}const s=o;function l(t){return this.__data__.get(t)}const c=l;function h(t){return this.__data__.has(t)}const d=h;var u=r(51482);var f=r(9883);var p=200;function g(t,e){var r=this.__data__;if(r instanceof i.A){var a=r.__data__;if(!u.A||a.length{"use strict";r.d(e,{A:()=>n});var i=r(24606);var a=i.A.Symbol;const n=a},92615:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=r(24606);var a=i.A.Uint8Array;const n=a},74578:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});function i(t,e){var r=-1,i=Array(t);while(++r{"use strict";r.d(e,{A:()=>l});var i=r(48657);var a=r(24461);var n=Object.prototype;var o=n.hasOwnProperty;function s(t,e,r){var n=t[e];if(!(o.call(t,e)&&(0,a.A)(n,r))||r===undefined&&!(e in t)){(0,i.A)(t,e,r)}}const l=s},48657:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=r(51348);function a(t,e,r){if(e=="__proto__"&&i.A){(0,i.A)(t,e,{configurable:true,enumerable:true,value:r,writable:true})}else{t[e]=r}}const n=a},40283:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});function i(t){return function(e,r,i){var a=-1,n=Object(e),o=i(e),s=o.length;while(s--){var l=o[t?s:++a];if(r(n[l],l,n)===false){break}}return e}}const a=i;var n=a();const o=n},64128:(t,e,r)=>{"use strict";r.d(e,{A:()=>b});var i=r(38066);var a=Object.prototype;var n=a.hasOwnProperty;var o=a.toString;var s=i.A?i.A.toStringTag:undefined;function l(t){var e=n.call(t,s),r=t[s];try{t[s]=undefined;var i=true}catch(l){}var a=o.call(t);if(i){if(e){t[s]=r}else{delete t[s]}}return a}const c=l;var h=Object.prototype;var d=h.toString;function u(t){return d.call(t)}const f=u;var p="[object Null]",g="[object Undefined]";var m=i.A?i.A.toStringTag:undefined;function y(t){if(t==null){return t===undefined?g:p}return m&&m in Object(t)?c(t):f(t)}const b=y},30568:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(690);var a=r(24630);var n=(0,a.A)(Object.keys,Object);const o=n;var s=Object.prototype;var l=s.hasOwnProperty;function c(t){if(!(0,i.A)(t)){return o(t)}var e=[];for(var r in Object(t)){if(l.call(t,r)&&r!="constructor"){e.push(r)}}return e}const h=c},55881:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var i=r(63077);var a=r(27401);var n=r(4596);function o(t,e){return(0,n.A)((0,a.A)(t,e,i.A),t+"")}const s=o},26132:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});function i(t){return function(e){return t(e)}}const a=i},53458:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=r(92615);function a(t){var e=new t.constructor(t.byteLength);new i.A(e).set(new i.A(t));return e}const n=a},65963:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(24606);t=r.hmd(t);var a=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var n=a&&"object"=="object"&&t&&!t.nodeType&&t;var o=n&&n.exports===a;var s=o?i.A.Buffer:undefined,l=s?s.allocUnsafe:undefined;function c(t,e){if(e){return t.slice()}var r=t.length,i=l?l(r):new t.constructor(r);t.copy(i);return i}const h=c},93672:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=r(53458);function a(t,e){var r=e?(0,i.A)(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}const n=a},91810:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});function i(t,e){var r=-1,i=t.length;e||(e=Array(i));while(++r{"use strict";r.d(e,{A:()=>o});var i=r(16542);var a=r(48657);function n(t,e,r,n){var o=!r;r||(r={});var s=-1,l=e.length;while(++s{"use strict";r.d(e,{A:()=>o});var i=r(55881);var a=r(31943);function n(t){return(0,i.A)((function(e,r){var i=-1,n=r.length,o=n>1?r[n-1]:undefined,s=n>2?r[2]:undefined;o=t.length>3&&typeof o=="function"?(n--,o):undefined;if(s&&(0,a.A)(r[0],r[1],s)){o=n<3?undefined:o;n=1}e=Object(e);while(++i{"use strict";r.d(e,{A:()=>n});var i=r(39023);var a=function(){try{var t=(0,i.A)(Object,"defineProperty");t({},"",{});return t}catch(e){}}();const n=a},7767:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var i=typeof r.g=="object"&&r.g&&r.g.Object===Object&&r.g;const a=i},39023:(t,e,r)=>{"use strict";r.d(e,{A:()=>S});var i=r(58807);var a=r(24606);var n=a.A["__core-js_shared__"];const o=n;var s=function(){var t=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function l(t){return!!s&&s in t}const c=l;var h=r(85356);var d=r(62210);var u=/[\\^$.*+?()[\]{}|]/g;var f=/^\[object .+?Constructor\]$/;var p=Function.prototype,g=Object.prototype;var m=p.toString;var y=g.hasOwnProperty;var b=RegExp("^"+m.call(y).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function x(t){if(!(0,h.A)(t)||c(t)){return false}var e=(0,i.A)(t)?b:f;return e.test((0,d.A)(t))}const C=x;function v(t,e){return t==null?undefined:t[e]}const k=v;function w(t,e){var r=k(t,e);return C(r)?r:undefined}const S=w},86848:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=r(24630);var a=(0,i.A)(Object.getPrototypeOf,Object);const n=a},88753:(t,e,r)=>{"use strict";r.d(e,{A:()=>B});var i=r(39023);var a=r(24606);var n=(0,i.A)(a.A,"DataView");const o=n;var s=r(51482);var l=(0,i.A)(a.A,"Promise");const c=l;var h=r(88224);var d=(0,i.A)(a.A,"WeakMap");const u=d;var f=r(64128);var p=r(62210);var g="[object Map]",m="[object Object]",y="[object Promise]",b="[object Set]",x="[object WeakMap]";var C="[object DataView]";var v=(0,p.A)(o),k=(0,p.A)(s.A),w=(0,p.A)(c),S=(0,p.A)(h.A),A=(0,p.A)(u);var T=f.A;if(o&&T(new o(new ArrayBuffer(1)))!=C||s.A&&T(new s.A)!=g||c&&T(c.resolve())!=y||h.A&&T(new h.A)!=b||u&&T(new u)!=x){T=function(t){var e=(0,f.A)(t),r=e==m?t.constructor:undefined,i=r?(0,p.A)(r):"";if(i){switch(i){case v:return C;case k:return g;case w:return y;case S:return b;case A:return x}}return e}}const B=T},92768:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(85356);var a=Object.create;var n=function(){function t(){}return function(e){if(!(0,i.A)(e)){return{}}if(a){return a(e)}t.prototype=e;var r=new t;t.prototype=undefined;return r}}();const o=n;var s=r(86848);var l=r(690);function c(t){return typeof t.constructor=="function"&&!(0,l.A)(t)?o((0,s.A)(t)):{}}const h=c},78912:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=9007199254740991;var a=/^(?:0|[1-9]\d*)$/;function n(t,e){var r=typeof t;e=e==null?i:e;return!!e&&(r=="number"||r!="symbol"&&a.test(t))&&(t>-1&&t%1==0&&t{"use strict";r.d(e,{A:()=>l});var i=r(24461);var a=r(21585);var n=r(78912);var o=r(85356);function s(t,e,r){if(!(0,o.A)(r)){return false}var s=typeof e;if(s=="number"?(0,a.A)(r)&&(0,n.A)(e,r.length):s=="string"&&e in r){return(0,i.A)(r[e],t)}return false}const l=s},690:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=Object.prototype;function a(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||i;return t===r}const n=a},89986:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var i=r(7767);t=r.hmd(t);var a=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var n=a&&"object"=="object"&&t&&!t.nodeType&&t;var o=n&&n.exports===a;var s=o&&i.A.process;var l=function(){try{var t=n&&n.require&&n.require("util").types;if(t){return t}return s&&s.binding&&s.binding("util")}catch(e){}}();const c=l},24630:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});function i(t,e){return function(r){return t(e(r))}}const a=i},27401:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});function i(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}const a=i;var n=Math.max;function o(t,e,r){e=n(e===undefined?t.length-1:e,0);return function(){var i=arguments,o=-1,s=n(i.length-e,0),l=Array(s);while(++o{"use strict";r.d(e,{A:()=>o});var i=r(7767);var a=typeof self=="object"&&self&&self.Object===Object&&self;var n=i.A||a||Function("return this")();const o=n},4596:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var i=r(33659);var a=r(51348);var n=r(63077);var o=!a.A?n.A:function(t,e){return(0,a.A)(t,"toString",{configurable:true,enumerable:false,value:(0,i.A)(e),writable:true})};const s=o;var l=800,c=16;var h=Date.now;function d(t){var e=0,r=0;return function(){var i=h(),a=c-(i-r);r=i;if(a>0){if(++e>=l){return arguments[0]}}else{e=0}return t.apply(undefined,arguments)}}const u=d;var f=u(s);const p=f},62210:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=Function.prototype;var a=i.toString;function n(t){if(t!=null){try{return a.call(t)}catch(e){}try{return t+""}catch(e){}}return""}const o=n},33659:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});function i(t){return function(){return t}}const a=i},24461:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});function i(t,e){return t===e||t!==t&&e!==e}const a=i},63077:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});function i(t){return t}const a=i},71528:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var i=r(64128);var a=r(53315);var n="[object Arguments]";function o(t){return(0,a.A)(t)&&(0,i.A)(t)==n}const s=o;var l=Object.prototype;var c=l.hasOwnProperty;var h=l.propertyIsEnumerable;var d=s(function(){return arguments}())?s:function(t){return(0,a.A)(t)&&c.call(t,"callee")&&!h.call(t,"callee")};const u=d},39990:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var i=Array.isArray;const a=i},21585:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(58807);var a=r(43627);function n(t){return t!=null&&(0,a.A)(t.length)&&!(0,i.A)(t)}const o=n},10654:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(21585);var a=r(53315);function n(t){return(0,a.A)(t)&&(0,i.A)(t)}const o=n},50895:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var i=r(24606);function a(){return false}const n=a;t=r.hmd(t);var o=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var s=o&&"object"=="object"&&t&&!t.nodeType&&t;var l=s&&s.exports===o;var c=l?i.A.Buffer:undefined;var h=c?c.isBuffer:undefined;var d=h||n;const u=d},74650:(t,e,r)=>{"use strict";r.d(e,{A:()=>m});var i=r(30568);var a=r(88753);var n=r(71528);var o=r(39990);var s=r(21585);var l=r(50895);var c=r(690);var h=r(82818);var d="[object Map]",u="[object Set]";var f=Object.prototype;var p=f.hasOwnProperty;function g(t){if(t==null){return true}if((0,s.A)(t)&&((0,o.A)(t)||typeof t=="string"||typeof t.splice=="function"||(0,l.A)(t)||(0,h.A)(t)||(0,n.A)(t))){return!t.length}var e=(0,a.A)(t);if(e==d||e==u){return!t.size}if((0,c.A)(t)){return!(0,i.A)(t).length}for(var r in t){if(p.call(t,r)){return false}}return true}const m=g},58807:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var i=r(64128);var a=r(85356);var n="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function c(t){if(!(0,a.A)(t)){return false}var e=(0,i.A)(t);return e==o||e==s||e==n||e==l}const h=c},43627:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});var i=9007199254740991;function a(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=i}const n=a},85356:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});function i(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}const a=i},53315:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});function i(t){return t!=null&&typeof t=="object"}const a=i},82818:(t,e,r)=>{"use strict";r.d(e,{A:()=>K});var i=r(64128);var a=r(43627);var n=r(53315);var o="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",h="[object Error]",d="[object Function]",u="[object Map]",f="[object Number]",p="[object Object]",g="[object RegExp]",m="[object Set]",y="[object String]",b="[object WeakMap]";var x="[object ArrayBuffer]",C="[object DataView]",v="[object Float32Array]",k="[object Float64Array]",w="[object Int8Array]",S="[object Int16Array]",A="[object Int32Array]",T="[object Uint8Array]",B="[object Uint8ClampedArray]",L="[object Uint16Array]",M="[object Uint32Array]";var _={};_[v]=_[k]=_[w]=_[S]=_[A]=_[T]=_[B]=_[L]=_[M]=true;_[o]=_[s]=_[x]=_[l]=_[C]=_[c]=_[h]=_[d]=_[u]=_[f]=_[p]=_[g]=_[m]=_[y]=_[b]=false;function F(t){return(0,n.A)(t)&&(0,a.A)(t.length)&&!!_[(0,i.A)(t)]}const $=F;var E=r(26132);var O=r(89986);var D=O.A&&O.A.isTypedArray;var I=D?(0,E.A)(D):$;const K=I},13839:(t,e,r)=>{"use strict";r.d(e,{A:()=>p});var i=r(74578);var a=r(85356);var n=r(690);function o(t){var e=[];if(t!=null){for(var r in Object(t)){e.push(r)}}return e}const s=o;var l=Object.prototype;var c=l.hasOwnProperty;function h(t){if(!(0,a.A)(t)){return s(t)}var e=(0,n.A)(t),r=[];for(var i in t){if(!(i=="constructor"&&(e||!c.call(t,i)))){r.push(i)}}return r}const d=h;var u=r(21585);function f(t){return(0,u.A)(t)?(0,i.A)(t,true):d(t)}const p=f},307:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var i=r(9883);var a="Expected a function";function n(t,e){if(typeof t!="function"||e!=null&&typeof e!="function"){throw new TypeError(a)}var r=function(){var i=arguments,a=e?e.apply(this,i):i[0],n=r.cache;if(n.has(a)){return n.get(a)}var o=t.apply(this,i);r.cache=n.set(a,o)||n;return o};r.cache=new(n.Cache||i.A);return r}n.Cache=i.A;const o=n},96901:(t,e,r)=>{"use strict";r.d(e,{A:()=>W});var i=r(28478);var a=r(48657);var n=r(24461);function o(t,e,r){if(r!==undefined&&!(0,n.A)(t[e],r)||r===undefined&&!(e in t)){(0,a.A)(t,e,r)}}const s=o;var l=r(40283);var c=r(65963);var h=r(93672);var d=r(91810);var u=r(92768);var f=r(71528);var p=r(39990);var g=r(10654);var m=r(50895);var y=r(58807);var b=r(85356);var x=r(64128);var C=r(86848);var v=r(53315);var k="[object Object]";var w=Function.prototype,S=Object.prototype;var A=w.toString;var T=S.hasOwnProperty;var B=A.call(Object);function L(t){if(!(0,v.A)(t)||(0,x.A)(t)!=k){return false}var e=(0,C.A)(t);if(e===null){return true}var r=T.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&A.call(r)==B}const M=L;var _=r(82818);function F(t,e){if(e==="constructor"&&typeof t[e]==="function"){return}if(e=="__proto__"){return}return t[e]}const $=F;var E=r(376);var O=r(13839);function D(t){return(0,E.A)(t,(0,O.A)(t))}const I=D;function K(t,e,r,i,a,n,o){var l=$(t,r),x=$(e,r),C=o.get(x);if(C){s(t,r,C);return}var v=n?n(l,x,r+"",t,e,o):undefined;var k=v===undefined;if(k){var w=(0,p.A)(x),S=!w&&(0,m.A)(x),A=!w&&!S&&(0,_.A)(x);v=x;if(w||S||A){if((0,p.A)(l)){v=l}else if((0,g.A)(l)){v=(0,d.A)(l)}else if(S){k=false;v=(0,c.A)(x,true)}else if(A){k=false;v=(0,h.A)(x,true)}else{v=[]}}else if(M(x)||(0,f.A)(x)){v=l;if((0,f.A)(l)){v=I(l)}else if(!(0,b.A)(l)||(0,y.A)(l)){v=(0,u.A)(x)}}else{k=false}}if(k){o.set(x,v);a(v,x,i,n,o);o["delete"](x)}s(t,r,v)}const R=K;function P(t,e,r,a,n){if(t===e){return}(0,l.A)(e,(function(o,l){n||(n=new i.A);if((0,b.A)(o)){R(t,e,l,r,P,a,n)}else{var c=a?a($(t,l),o,l+"",t,e,n):undefined;if(c===undefined){c=o}s(t,l,c)}}),O.A)}const z=P;var q=r(56280);var N=(0,q.A)((function(t,e,r){z(t,e,r)}));const W=N},59357:(t,e,r)=>{"use strict";r.d(e,{n:()=>i});var i={name:"mermaid",version:"11.6.0",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.0.4","@iconify/utils":"^2.1.33","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.11",dayjs:"^1.11.13",dompurify:"^3.2.4",katex:"^0.16.9",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^15.0.7",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.2","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",chokidar:"^4.0.3",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.0.2",jison:"^0.4.18","js-base64":"^3.7.7",jsdom:"^26.0.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.2",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0",typedoc:"^0.27.8","typedoc-plugin-markdown":"^4.4.2",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}}},97366:(t,e,r)=>{"use strict";r.d(e,{H:()=>ti,r:()=>Qr});var i=r(75905);function a(t){return typeof t==="undefined"||t===null}(0,i.K2)(a,"isNothing");function n(t){return typeof t==="object"&&t!==null}(0,i.K2)(n,"isObject");function o(t){if(Array.isArray(t))return t;else if(a(t))return[];return[t]}(0,i.K2)(o,"toArray");function s(t,e){var r,i,a,n;if(e){n=Object.keys(e);for(r=0,i=n.length;rs){n=" ... ";e=i-s+n.length}if(r-i>s){o=" ...";r=i+s-o.length}return{str:n+t.slice(e,r).replace(/\t/g,"→")+o,pos:i-e+n.length}}(0,i.K2)(C,"getLine");function v(t,e){return m.repeat(" ",e-t.length)+t}(0,i.K2)(v,"padStart");function k(t,e){e=Object.create(e||null);if(!t.buffer)return null;if(!e.maxLength)e.maxLength=79;if(typeof e.indent!=="number")e.indent=1;if(typeof e.linesBefore!=="number")e.linesBefore=3;if(typeof e.linesAfter!=="number")e.linesAfter=2;var r=/\r?\n|\r|\0/g;var i=[0];var a=[];var n;var o=-1;while(n=r.exec(t.buffer)){a.push(n.index);i.push(n.index+n[0].length);if(t.position<=n.index&&o<0){o=i.length-2}}if(o<0)o=i.length-1;var s="",l,c;var h=Math.min(t.line+e.linesAfter,a.length).toString().length;var d=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore;l++){if(o-l<0)break;c=C(t.buffer,i[o-l],a[o-l],t.position-(i[o]-i[o-l]),d);s=m.repeat(" ",e.indent)+v((t.line-l+1).toString(),h)+" | "+c.str+"\n"+s}c=C(t.buffer,i[o],a[o],t.position,d);s+=m.repeat(" ",e.indent)+v((t.line+1).toString(),h)+" | "+c.str+"\n";s+=m.repeat("-",e.indent+h+3+c.pos)+"^\n";for(l=1;l<=e.linesAfter;l++){if(o+l>=a.length)break;c=C(t.buffer,i[o+l],a[o+l],t.position-(i[o]-i[o+l]),d);s+=m.repeat(" ",e.indent)+v((t.line+l+1).toString(),h)+" | "+c.str+"\n"}return s.replace(/\n$/,"")}(0,i.K2)(k,"makeSnippet");var w=k;var S=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var A=["scalar","sequence","mapping"];function T(t){var e={};if(t!==null){Object.keys(t).forEach((function(r){t[r].forEach((function(t){e[String(t)]=r}))}))}return e}(0,i.K2)(T,"compileStyleAliases");function B(t,e){e=e||{};Object.keys(e).forEach((function(e){if(S.indexOf(e)===-1){throw new x('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}}));this.options=e;this.tag=t;this.kind=e["kind"]||null;this.resolve=e["resolve"]||function(){return true};this.construct=e["construct"]||function(t){return t};this.instanceOf=e["instanceOf"]||null;this.predicate=e["predicate"]||null;this.represent=e["represent"]||null;this.representName=e["representName"]||null;this.defaultStyle=e["defaultStyle"]||null;this.multi=e["multi"]||false;this.styleAliases=T(e["styleAliases"]||null);if(A.indexOf(this.kind)===-1){throw new x('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}}(0,i.K2)(B,"Type$1");var L=B;function M(t,e){var r=[];t[e].forEach((function(t){var e=r.length;r.forEach((function(r,i){if(r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi){e=i}}));r[e]=t}));return r}(0,i.K2)(M,"compileList");function _(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function a(e){if(e.multi){t.multi[e.kind].push(e);t.multi["fallback"].push(e)}else{t[e.kind][e.tag]=t["fallback"][e.tag]=e}}(0,i.K2)(a,"collectType");for(e=0,r=arguments.length;e=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)}),"binary"),octal:(0,i.K2)((function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)}),"octal"),decimal:(0,i.K2)((function(t){return t.toString(10)}),"decimal"),hexadecimal:(0,i.K2)((function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}),"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}});var J=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Q(t){if(t===null)return false;if(!J.test(t)||t[t.length-1]==="_"){return false}return true}(0,i.K2)(Q,"resolveYamlFloat");function tt(t){var e,r;e=t.replace(/_/g,"").toLowerCase();r=e[0]==="-"?-1:1;if("+-".indexOf(e[0])>=0){e=e.slice(1)}if(e===".inf"){return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(e===".nan"){return NaN}return r*parseFloat(e,10)}(0,i.K2)(tt,"constructYamlFloat");var et=/^[-+]?[0-9]+e/;function rt(t,e){var r;if(isNaN(t)){switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===t){switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===t){switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(m.isNegativeZero(t)){return"-0.0"}r=t.toString(10);return et.test(r)?r.replace("e",".e"):r}(0,i.K2)(rt,"representYamlFloat");function it(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||m.isNegativeZero(t))}(0,i.K2)(it,"isFloat");var at=new L("tag:yaml.org,2002:float",{kind:"scalar",resolve:Q,construct:tt,predicate:it,represent:rt,defaultStyle:"lowercase"});var nt=I.extend({implicit:[z,j,Z,at]});var ot=nt;var st=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");var lt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function ct(t){if(t===null)return false;if(st.exec(t)!==null)return true;if(lt.exec(t)!==null)return true;return false}(0,i.K2)(ct,"resolveYamlTimestamp");function ht(t){var e,r,i,a,n,o,s,l=0,c=null,h,d,u;e=st.exec(t);if(e===null)e=lt.exec(t);if(e===null)throw new Error("Date resolve error");r=+e[1];i=+e[2]-1;a=+e[3];if(!e[4]){return new Date(Date.UTC(r,i,a))}n=+e[4];o=+e[5];s=+e[6];if(e[7]){l=e[7].slice(0,3);while(l.length<3){l+="0"}l=+l}if(e[9]){h=+e[10];d=+(e[11]||0);c=(h*60+d)*6e4;if(e[9]==="-")c=-c}u=new Date(Date.UTC(r,i,a,n,o,s,l));if(c)u.setTime(u.getTime()-c);return u}(0,i.K2)(ht,"constructYamlTimestamp");function dt(t){return t.toISOString()}(0,i.K2)(dt,"representYamlTimestamp");var ut=new L("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ct,construct:ht,instanceOf:Date,represent:dt});function ft(t){return t==="<<"||t===null}(0,i.K2)(ft,"resolveYamlMerge");var pt=new L("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ft});var gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function mt(t){if(t===null)return false;var e,r,i=0,a=t.length,n=gt;for(r=0;r64)continue;if(e<0)return false;i+=6}return i%8===0}(0,i.K2)(mt,"resolveYamlBinary");function yt(t){var e,r,i=t.replace(/[\r\n=]/g,""),a=i.length,n=gt,o=0,s=[];for(e=0;e>16&255);s.push(o>>8&255);s.push(o&255)}o=o<<6|n.indexOf(i.charAt(e))}r=a%4*6;if(r===0){s.push(o>>16&255);s.push(o>>8&255);s.push(o&255)}else if(r===18){s.push(o>>10&255);s.push(o>>2&255)}else if(r===12){s.push(o>>4&255)}return new Uint8Array(s)}(0,i.K2)(yt,"constructYamlBinary");function bt(t){var e="",r=0,i,a,n=t.length,o=gt;for(i=0;i>18&63];e+=o[r>>12&63];e+=o[r>>6&63];e+=o[r&63]}r=(r<<8)+t[i]}a=n%3;if(a===0){e+=o[r>>18&63];e+=o[r>>12&63];e+=o[r>>6&63];e+=o[r&63]}else if(a===2){e+=o[r>>10&63];e+=o[r>>4&63];e+=o[r<<2&63];e+=o[64]}else if(a===1){e+=o[r>>2&63];e+=o[r<<4&63];e+=o[64];e+=o[64]}return e}(0,i.K2)(bt,"representYamlBinary");function xt(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}(0,i.K2)(xt,"isBinary");var Ct=new L("tag:yaml.org,2002:binary",{kind:"scalar",resolve:mt,construct:yt,predicate:xt,represent:bt});var vt=Object.prototype.hasOwnProperty;var kt=Object.prototype.toString;function wt(t){if(t===null)return true;var e=[],r,i,a,n,o,s=t;for(r=0,i=s.length;r>10)+55296,(t-65536&1023)+56320)}(0,i.K2)(ie,"charFromCodepoint");var ae=new Array(256);var ne=new Array(256);for(oe=0;oe<256;oe++){ae[oe]=re(oe)?1:0;ne[oe]=re(oe)}var oe;function se(t,e){this.input=t;this.filename=e["filename"]||null;this.schema=e["schema"]||Ot;this.onWarning=e["onWarning"]||null;this.legacy=e["legacy"]||false;this.json=e["json"]||false;this.listener=e["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=t.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}(0,i.K2)(se,"State$1");function le(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};r.snippet=w(r);return new x(e,r)}(0,i.K2)(le,"generateError");function ce(t,e){throw le(t,e)}(0,i.K2)(ce,"throwError");function he(t,e){if(t.onWarning){t.onWarning.call(null,le(t,e))}}(0,i.K2)(he,"throwWarning");var de={YAML:(0,i.K2)((function t(e,r,i){var a,n,o;if(e.version!==null){ce(e,"duplication of %YAML directive")}if(i.length!==1){ce(e,"YAML directive accepts exactly one argument")}a=/^([0-9]+)\.([0-9]+)$/.exec(i[0]);if(a===null){ce(e,"ill-formed argument of the YAML directive")}n=parseInt(a[1],10);o=parseInt(a[2],10);if(n!==1){ce(e,"unacceptable YAML version of the document")}e.version=i[0];e.checkLineBreaks=o<2;if(o!==1&&o!==2){he(e,"unsupported YAML version of the document")}}),"handleYamlDirective"),TAG:(0,i.K2)((function t(e,r,i){var a,n;if(i.length!==2){ce(e,"TAG directive accepts exactly two arguments")}a=i[0];n=i[1];if(!Yt.test(a)){ce(e,"ill-formed tag handle (first argument) of the TAG directive")}if(Dt.call(e.tagMap,a)){ce(e,'there is a previously declared suffix for "'+a+'" tag handle')}if(!Ut.test(n)){ce(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{n=decodeURIComponent(n)}catch(o){ce(e,"tag prefix is malformed: "+n)}e.tagMap[a]=n}),"handleTagDirective")};function ue(t,e,r,i){var a,n,o,s;if(e1){t.result+=m.repeat("\n",e-1)}}(0,i.K2)(be,"writeFoldedLines");function xe(t,e,r){var i,a,n,o,s,l,c,h,d=t.kind,u=t.result,f;f=t.input.charCodeAt(t.position);if(Zt(f)||Jt(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96){return false}if(f===63||f===45){a=t.input.charCodeAt(t.position+1);if(Zt(a)||r&&Jt(a)){return false}}t.kind="scalar";t.result="";n=o=t.position;s=false;while(f!==0){if(f===58){a=t.input.charCodeAt(t.position+1);if(Zt(a)||r&&Jt(a)){break}}else if(f===35){i=t.input.charCodeAt(t.position-1);if(Zt(i)){break}}else if(t.position===t.lineStart&&ye(t)||r&&Jt(f)){break}else if(Vt(f)){l=t.line;c=t.lineStart;h=t.lineIndent;me(t,false,-1);if(t.lineIndent>=e){s=true;f=t.input.charCodeAt(t.position);continue}else{t.position=o;t.line=l;t.lineStart=c;t.lineIndent=h;break}}if(s){ue(t,n,o,false);be(t,t.line-l);n=o=t.position;s=false}if(!Xt(f)){o=t.position+1}f=t.input.charCodeAt(++t.position)}ue(t,n,o,false);if(t.result){return true}t.kind=d;t.result=u;return false}(0,i.K2)(xe,"readPlainScalar");function Ce(t,e){var r,i,a;r=t.input.charCodeAt(t.position);if(r!==39){return false}t.kind="scalar";t.result="";t.position++;i=a=t.position;while((r=t.input.charCodeAt(t.position))!==0){if(r===39){ue(t,i,t.position,true);r=t.input.charCodeAt(++t.position);if(r===39){i=t.position;t.position++;a=t.position}else{return true}}else if(Vt(r)){ue(t,i,a,true);be(t,me(t,false,e));i=a=t.position}else if(t.position===t.lineStart&&ye(t)){ce(t,"unexpected end of the document within a single quoted scalar")}else{t.position++;a=t.position}}ce(t,"unexpected end of the stream within a single quoted scalar")}(0,i.K2)(Ce,"readSingleQuotedScalar");function ve(t,e){var r,i,a,n,o,s;s=t.input.charCodeAt(t.position);if(s!==34){return false}t.kind="scalar";t.result="";t.position++;r=i=t.position;while((s=t.input.charCodeAt(t.position))!==0){if(s===34){ue(t,r,t.position,true);t.position++;return true}else if(s===92){ue(t,r,t.position,true);s=t.input.charCodeAt(++t.position);if(Vt(s)){me(t,false,e)}else if(s<256&&ae[s]){t.result+=ne[s];t.position++}else if((o=te(s))>0){a=o;n=0;for(;a>0;a--){s=t.input.charCodeAt(++t.position);if((o=Qt(s))>=0){n=(n<<4)+o}else{ce(t,"expected hexadecimal character")}}t.result+=ie(n);t.position++}else{ce(t,"unknown escape sequence")}r=i=t.position}else if(Vt(s)){ue(t,r,i,true);be(t,me(t,false,e));r=i=t.position}else if(t.position===t.lineStart&&ye(t)){ce(t,"unexpected end of the document within a double quoted scalar")}else{t.position++;i=t.position}}ce(t,"unexpected end of the stream within a double quoted scalar")}(0,i.K2)(ve,"readDoubleQuotedScalar");function ke(t,e){var r=true,i,a,n,o=t.tag,s,l=t.anchor,c,h,d,u,f,p=Object.create(null),g,m,y,b;b=t.input.charCodeAt(t.position);if(b===91){h=93;f=false;s=[]}else if(b===123){h=125;f=true;s={}}else{return false}if(t.anchor!==null){t.anchorMap[t.anchor]=s}b=t.input.charCodeAt(++t.position);while(b!==0){me(t,true,e);b=t.input.charCodeAt(t.position);if(b===h){t.position++;t.tag=o;t.anchor=l;t.kind=f?"mapping":"sequence";t.result=s;return true}else if(!r){ce(t,"missed comma between flow collection entries")}else if(b===44){ce(t,"expected the node content, but found ','")}m=g=y=null;d=u=false;if(b===63){c=t.input.charCodeAt(t.position+1);if(Zt(c)){d=u=true;t.position++;me(t,true,e)}}i=t.line;a=t.lineStart;n=t.position;Me(t,e,It,false,true);m=t.tag;g=t.result;me(t,true,e);b=t.input.charCodeAt(t.position);if((u||t.line===i)&&b===58){d=true;b=t.input.charCodeAt(++t.position);me(t,true,e);Me(t,e,It,false,true);y=t.result}if(f){pe(t,s,p,m,g,y,i,a,n)}else if(d){s.push(pe(t,null,p,m,g,y,i,a,n))}else{s.push(g)}me(t,true,e);b=t.input.charCodeAt(t.position);if(b===44){r=true;b=t.input.charCodeAt(++t.position)}else{r=false}}ce(t,"unexpected end of the stream within a flow collection")}(0,i.K2)(ke,"readFlowCollection");function we(t,e){var r,i,a=zt,n=false,o=false,s=e,l=0,c=false,h,d;d=t.input.charCodeAt(t.position);if(d===124){i=false}else if(d===62){i=true}else{return false}t.kind="scalar";t.result="";while(d!==0){d=t.input.charCodeAt(++t.position);if(d===43||d===45){if(zt===a){a=d===43?Nt:qt}else{ce(t,"repeat of a chomping mode identifier")}}else if((h=ee(d))>=0){if(h===0){ce(t,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!o){s=e+h-1;o=true}else{ce(t,"repeat of an indentation width identifier")}}else{break}}if(Xt(d)){do{d=t.input.charCodeAt(++t.position)}while(Xt(d));if(d===35){do{d=t.input.charCodeAt(++t.position)}while(!Vt(d)&&d!==0)}}while(d!==0){ge(t);t.lineIndent=0;d=t.input.charCodeAt(t.position);while((!o||t.lineIndents){s=t.lineIndent}if(Vt(d)){l++;continue}if(t.lineIndente)&&l!==0){ce(t,"bad indentation of a sequence entry")}else if(t.lineIndente){if(m){o=t.line;s=t.lineStart;l=t.position}if(Me(t,e,Pt,true,a)){if(m){p=t.result}else{g=t.result}}if(!m){pe(t,d,u,f,p,g,o,s,l);f=p=g=null}me(t,true,-1);b=t.input.charCodeAt(t.position)}if((t.line===n||t.lineIndent>e)&&b!==0){ce(t,"bad indentation of a mapping entry")}else if(t.lineIndente){l=1}else if(t.lineIndent===e){l=0}else if(t.lineIndente){l=1}else if(t.lineIndent===e){l=0}else if(t.lineIndent tag; it should be "scalar", not "'+t.kind+'"')}for(d=0,u=t.implicitTypes.length;d")}if(t.result!==null&&p.kind!==t.kind){ce(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+p.kind+'", not "'+t.kind+'"')}if(!p.resolve(t.result,t.tag)){ce(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}else{t.result=p.construct(t.result,t.tag);if(t.anchor!==null){t.anchorMap[t.anchor]=t.result}}}if(t.listener!==null){t.listener("close",t)}return t.tag!==null||t.anchor!==null||h}(0,i.K2)(Me,"composeNode");function _e(t){var e=t.position,r,i,a,n=false,o;t.version=null;t.checkLineBreaks=t.legacy;t.tagMap=Object.create(null);t.anchorMap=Object.create(null);while((o=t.input.charCodeAt(t.position))!==0){me(t,true,-1);o=t.input.charCodeAt(t.position);if(t.lineIndent>0||o!==37){break}n=true;o=t.input.charCodeAt(++t.position);r=t.position;while(o!==0&&!Zt(o)){o=t.input.charCodeAt(++t.position)}i=t.input.slice(r,t.position);a=[];if(i.length<1){ce(t,"directive name must not be less than one character in length")}while(o!==0){while(Xt(o)){o=t.input.charCodeAt(++t.position)}if(o===35){do{o=t.input.charCodeAt(++t.position)}while(o!==0&&!Vt(o));break}if(Vt(o))break;r=t.position;while(o!==0&&!Zt(o)){o=t.input.charCodeAt(++t.position)}a.push(t.input.slice(r,t.position))}if(o!==0)ge(t);if(Dt.call(de,i)){de[i](t,i,a)}else{he(t,'unknown document directive "'+i+'"')}}me(t,true,-1);if(t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45){t.position+=3;me(t,true,-1)}else if(n){ce(t,"directives end mark is expected")}Me(t,t.lineIndent-1,Pt,false,true);me(t,true,-1);if(t.checkLineBreaks&&jt.test(t.input.slice(e,t.position))){he(t,"non-ASCII line breaks are interpreted as content")}t.documents.push(t.result);if(t.position===t.lineStart&&ye(t)){if(t.input.charCodeAt(t.position)===46){t.position+=3;me(t,true,-1)}return}if(t.position=55296&&r<=56319&&e+1=56320&&i<=57343){return(r-55296)*1024+i-56320+65536}}return r}(0,i.K2)(Br,"codePointAt");function Lr(t){var e=/^\n* /;return e.test(t)}(0,i.K2)(Lr,"needIndentIndicator");var Mr=1;var _r=2;var Fr=3;var $r=4;var Er=5;function Or(t,e,r,i,a,n,o,s){var l;var c=0;var h=null;var d=false;var u=false;var f=i!==-1;var p=-1;var g=Ar(Br(t,0))&&Tr(Br(t,t.length-1));if(e||o){for(l=0;l=65536?l+=2:l++){c=Br(t,l);if(!kr(c)){return Er}g=g&&Sr(c,h,s);h=c}}else{for(l=0;l=65536?l+=2:l++){c=Br(t,l);if(c===qe){d=true;if(f){u=u||l-p-1>i&&t[p+1]!==" ";p=l}}else if(!kr(c)){return Er}g=g&&Sr(c,h,s);h=c}u=u||f&&(l-p-1>i&&t[p+1]!==" ")}if(!d&&!u){if(g&&!o&&!a(t)){return Mr}return n===mr?Er:_r}if(r>9&&Lr(t)){return Er}if(!o){return u?$r:Fr}return n===mr?Er:_r}(0,i.K2)(Or,"chooseScalarStyle");function Dr(t,e,r,a,n){t.dump=function(){if(e.length===0){return t.quotingType===mr?'""':"''"}if(!t.noCompatMode){if(dr.indexOf(e)!==-1||ur.test(e)){return t.quotingType===mr?'"'+e+'"':"'"+e+"'"}}var o=t.indent*Math.max(1,r);var s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-o);var l=a||t.flowLevel>-1&&r>=t.flowLevel;function c(e){return Cr(t,e)}(0,i.K2)(c,"testAmbiguity");switch(Or(e,l,t.indent,s,c,t.quotingType,t.forceQuotes&&!a,n)){case Mr:return e;case _r:return"'"+e.replace(/'/g,"''")+"'";case Fr:return"|"+Ir(e,t.indent)+Kr(br(e,o));case $r:return">"+Ir(e,t.indent)+Kr(br(Rr(e,s),o));case Er:return'"'+zr(e)+'"';default:throw new x("impossible error: invalid scalar style")}}()}(0,i.K2)(Dr,"writeScalar");function Ir(t,e){var r=Lr(t)?String(e):"";var i=t[t.length-1]==="\n";var a=i&&(t[t.length-2]==="\n"||t==="\n");var n=a?"+":i?"":"-";return r+n+"\n"}(0,i.K2)(Ir,"blockHeader");function Kr(t){return t[t.length-1]==="\n"?t.slice(0,-1):t}(0,i.K2)(Kr,"dropEndingNewline");function Rr(t,e){var r=/(\n+)([^\n]*)/g;var i=function(){var i=t.indexOf("\n");i=i!==-1?i:t.length;r.lastIndex=i;return Pr(t.slice(0,i),e)}();var a=t[0]==="\n"||t[0]===" ";var n;var o;while(o=r.exec(t)){var s=o[1],l=o[2];n=l[0]===" ";i+=s+(!a&&!n&&l!==""?"\n":"")+Pr(l,e);a=n}return i}(0,i.K2)(Rr,"foldString");function Pr(t,e){if(t===""||t[0]===" ")return t;var r=/ [^ ]/g;var i;var a=0,n,o=0,s=0;var l="";while(i=r.exec(t)){s=i.index;if(s-a>e){n=o>a?o:s;l+="\n"+t.slice(a,n);a=n+1}o=s}l+="\n";if(t.length-a>e&&o>a){l+=t.slice(a,o)+"\n"+t.slice(o+1)}else{l+=t.slice(a)}return l.slice(1)}(0,i.K2)(Pr,"foldLine");function zr(t){var e="";var r=0;var i;for(var a=0;a=65536?a+=2:a++){r=Br(t,a);i=hr[r];if(!i&&kr(r)){e+=t[a];if(r>=65536)e+=t[a+1]}else{e+=i||pr(r)}}return e}(0,i.K2)(zr,"escapeString");function qr(t,e,r){var i="",a=t.tag,n,o,s;for(n=0,o=r.length;n1024)h+="? ";h+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" ");if(!Yr(t,e,c,false,false)){continue}h+=t.dump;i+=h}t.tag=a;t.dump="{"+i+"}"}(0,i.K2)(Wr,"writeFlowMapping");function jr(t,e,r,i){var a="",n=t.tag,o=Object.keys(r),s,l,c,h,d,u;if(t.sortKeys===true){o.sort()}else if(typeof t.sortKeys==="function"){o.sort(t.sortKeys)}else if(t.sortKeys){throw new x("sortKeys must be a boolean or a function")}for(s=0,l=o.length;s1024;if(d){if(t.dump&&qe===t.dump.charCodeAt(0)){u+="?"}else{u+="? "}}u+=t.dump;if(d){u+=xr(t,e)}if(!Yr(t,e+1,h,true,d)){continue}if(t.dump&&qe===t.dump.charCodeAt(0)){u+=":"}else{u+=": "}u+=t.dump;a+=u}t.tag=n;t.dump=a||"{}"}(0,i.K2)(jr,"writeBlockMapping");function Hr(t,e,r){var i,a,n,o,s,l;a=r?t.explicitTypes:t.implicitTypes;for(n=0,o=a.length;n tag resolver accepts not "'+l+'" style')}t.dump=i}return true}}return false}(0,i.K2)(Hr,"detectType");function Yr(t,e,r,i,a,n,o){t.tag=null;t.dump=r;if(!Hr(t,r,false)){Hr(t,r,true)}var s=Ke.call(t.dump);var l=i;var c;if(i){i=t.flowLevel<0||t.flowLevel>e}var h=s==="[object Object]"||s==="[object Array]",d,u;if(h){d=t.duplicates.indexOf(r);u=d!==-1}if(t.tag!==null&&t.tag!=="?"||u||t.indent!==2&&e>0){a=false}if(u&&t.usedDuplicates[d]){t.dump="*ref_"+d}else{if(h&&u&&!t.usedDuplicates[d]){t.usedDuplicates[d]=true}if(s==="[object Object]"){if(i&&Object.keys(t.dump).length!==0){jr(t,e,t.dump,a);if(u){t.dump="&ref_"+d+t.dump}}else{Wr(t,e,t.dump);if(u){t.dump="&ref_"+d+" "+t.dump}}}else if(s==="[object Array]"){if(i&&t.dump.length!==0){if(t.noArrayIndent&&!o&&e>0){Nr(t,e-1,t.dump,a)}else{Nr(t,e,t.dump,a)}if(u){t.dump="&ref_"+d+t.dump}}else{qr(t,e,t.dump);if(u){t.dump="&ref_"+d+" "+t.dump}}}else if(s==="[object String]"){if(t.tag!=="?"){Dr(t,t.dump,e,n,l)}}else if(s==="[object Undefined]"){return false}else{if(t.skipInvalid)return false;throw new x("unacceptable kind of an object to dump "+s)}if(t.tag!==null&&t.tag!=="?"){c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21");if(t.tag[0]==="!"){c="!"+c}else if(c.slice(0,18)==="tag:yaml.org,2002:"){c="!!"+c.slice(18)}else{c="!<"+c+">"}t.dump=c+" "+t.dump}}return true}(0,i.K2)(Yr,"writeNode");function Ur(t,e){var r=[],i=[],a,n;Gr(t,r,i);for(a=0,n=i.length;a{"use strict";r.d(e,{D:()=>n});var i=r(75905);var a=r(24982);var n=(0,i.K2)((t=>{const{securityLevel:e}=(0,i.D7)();let r=(0,a.Ltv)("body");if(e==="sandbox"){const e=(0,a.Ltv)(`#i${t}`);const i=e.node()?.contentDocument??document;r=(0,a.Ltv)(i.body)}const n=r.select(`#${t}`);return n}),"selectSvgElement")},76261:(t,e,r)=>{"use strict";r.d(e,{GZ:()=>A,W6:()=>v,hE:()=>S});var i=r(96049);var a=r(75905);var n=r(24982);var o=r(14507);var s=r.n(o);var l=r(60513);function c(t,{markdownAutoWrap:e}){const r=t.replace(//g,"\n");const i=r.replace(/\n{2,}/g,"\n");const a=(0,l.T)(i);if(e===false){return a.replace(/ /g," ")}return a}(0,a.K2)(c,"preprocessMarkdown");function h(t,e={}){const r=c(t,e);const i=o.marked.lexer(r);const n=[[]];let s=0;function l(t,e="normal"){if(t.type==="text"){const r=t.text.split("\n");r.forEach(((t,r)=>{if(r!==0){s++;n.push([])}t.split(" ").forEach((t=>{t=t.replace(/'/g,`'`);if(t){n[s].push({content:t,type:e})}}))}))}else if(t.type==="strong"||t.type==="em"){t.tokens.forEach((e=>{l(e,t.type)}))}else if(t.type==="html"){n[s].push({content:t.text,type:"normal"})}}(0,a.K2)(l,"processNode");i.forEach((t=>{if(t.type==="paragraph"){t.tokens?.forEach((t=>{l(t)}))}else if(t.type==="html"){n[s].push({content:t.text,type:"normal"})}}));return n}(0,a.K2)(h,"markdownToLines");function d(t,{markdownAutoWrap:e}={}){const r=o.marked.lexer(t);function i(t){if(t.type==="text"){if(e===false){return t.text.replace(/\n */g,"
").replace(/ /g," ")}return t.text.replace(/\n */g,"
")}else if(t.type==="strong"){return`${t.tokens?.map(i).join("")}`}else if(t.type==="em"){return`${t.tokens?.map(i).join("")}`}else if(t.type==="paragraph"){return`

${t.tokens?.map(i).join("")}

`}else if(t.type==="space"){return""}else if(t.type==="html"){return`${t.text}`}else if(t.type==="escape"){return t.text}return`Unsupported markdown: ${t.type}`}(0,a.K2)(i,"output");return r.map(i).join("")}(0,a.K2)(d,"markdownToHTML");function u(t){if(Intl.Segmenter){return[...(new Intl.Segmenter).segment(t)].map((t=>t.segment))}return[...t]}(0,a.K2)(u,"splitTextToChars");function f(t,e){const r=u(e.content);return p(t,[],r,e.type)}(0,a.K2)(f,"splitWordToFitWidth");function p(t,e,r,i){if(r.length===0){return[{content:e.join(""),type:i},{content:"",type:i}]}const[a,...n]=r;const o=[...e,a];if(t([{content:o.join(""),type:i}])){return p(t,o,n,i)}if(e.length===0&&a){e.push(a);r.shift()}return[{content:e.join(""),type:i},{content:r.join(""),type:i}]}(0,a.K2)(p,"splitWordToFitWidthRecursion");function g(t,e){if(t.some((({content:t})=>t.includes("\n")))){throw new Error("splitLineToFitWidth does not support newlines in the line")}return m(t,e)}(0,a.K2)(g,"splitLineToFitWidth");function m(t,e,r=[],i=[]){if(t.length===0){if(i.length>0){r.push(i)}return r.length>0?r:[]}let a="";if(t[0].content===" "){a=" ";t.shift()}const n=t.shift()??{content:" ",type:"normal"};const o=[...i];if(a!==""){o.push({content:a,type:"normal"})}o.push(n);if(e(o)){return m(t,e,r,o)}if(i.length>0){r.push(i);t.unshift(n)}else if(n.content){const[i,a]=f(e,n);r.push([i]);if(a.content){t.unshift(a)}}return m(t,e,r)}(0,a.K2)(m,"splitLineToFitWidthRecursion");function y(t,e){if(e){t.attr("style",e)}}(0,a.K2)(y,"applyStyle");async function b(t,e,r,i,n=false){const o=t.append("foreignObject");o.attr("width",`${10*r}px`);o.attr("height",`${10*r}px`);const s=o.append("xhtml:div");let l=e.label;if(e.label&&(0,a.Wi)(e.label)){l=await(0,a.VJ)(e.label.replace(a.Y2.lineBreakRegex,"\n"),(0,a.D7)())}const c=e.isNode?"nodeLabel":"edgeLabel";const h=s.append("span");h.html(l);y(h,e.labelStyle);h.attr("class",`${c} ${i}`);y(s,e.labelStyle);s.style("display","table-cell");s.style("white-space","nowrap");s.style("line-height","1.5");s.style("max-width",r+"px");s.style("text-align","center");s.attr("xmlns","http://www.w3.org/1999/xhtml");if(n){s.attr("class","labelBkg")}let d=s.node().getBoundingClientRect();if(d.width===r){s.style("display","table");s.style("white-space","break-spaces");s.style("width",r+"px");d=s.node().getBoundingClientRect()}return o.node()}(0,a.K2)(b,"addHtmlSpan");function x(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}(0,a.K2)(x,"createTspan");function C(t,e,r){const i=t.append("text");const a=x(i,1,e);w(a,r);const n=a.node().getComputedTextLength();i.remove();return n}(0,a.K2)(C,"computeWidthOfText");function v(t,e,r){const i=t.append("text");const a=x(i,1,e);w(a,[{content:r,type:"normal"}]);const n=a.node()?.getBoundingClientRect();if(n){i.remove()}return n}(0,a.K2)(v,"computeDimensionOfText");function k(t,e,r,i=false){const n=1.1;const o=e.append("g");const s=o.insert("rect").attr("class","background").attr("style","stroke: none");const l=o.append("text").attr("y","-10.1");let c=0;for(const h of r){const e=(0,a.K2)((e=>C(o,n,e)<=t),"checkWidth");const r=e(h)?[h]:g(h,e);for(const t of r){const e=x(l,c,n);w(e,t);c++}}if(i){const t=l.node().getBBox();const e=2;s.attr("x",t.x-e).attr("y",t.y-e).attr("width",t.width+2*e).attr("height",t.height+2*e);return o.node()}else{return l.node()}}(0,a.K2)(k,"createFormattedText");function w(t,e){t.text("");e.forEach(((e,r)=>{const i=t.append("tspan").attr("font-style",e.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",e.type==="strong"?"bold":"normal");if(r===0){i.text(e.content)}else{i.text(" "+e.content)}}))}(0,a.K2)(w,"updateTextContentAndStyles");function S(t){return t.replace(/fa[bklrs]?:fa-[\w-]+/g,(t=>``))}(0,a.K2)(S,"replaceIconSubstring");var A=(0,a.K2)((async(t,e="",{style:r="",isTitle:o=false,classes:s="",useHtmlLabels:l=true,isNode:c=true,width:u=200,addSvgBackground:f=false}={},p)=>{a.Rm.debug("XYZ createText",e,r,o,s,l,c,"addSvgBackground: ",f);if(l){const n=d(e,p);const o=S((0,i.Sm)(n));const l=e.replace(/\\\\/g,"\\");const h={isNode:c,label:(0,a.Wi)(e)?l:o,labelStyle:r.replace("fill:","color:")};const g=await b(t,h,u,s,f);return g}else{const i=e.replace(//g,"
");const a=h(i.replace("
","
"),p);const o=k(u,t,a,e?f:false);if(c){if(/stroke:/.exec(r)){r=r.replace("stroke:","lineColor:")}const t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,n.Ltv)(o).attr("style",t)}else{const t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,n.Ltv)(o).select("rect").attr("style",t.replace(/background:/g,"fill:"));const e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,n.Ltv)(o).select("text").attr("style",e)}return o}}),"createText")},68232:(t,e,r)=>{"use strict";r.d(e,{WY:()=>I,pC:()=>O,Gc:()=>F});var i=r(75905);const a=/^[a-z0-9]+(-[a-z0-9]+)*$/;const n=(t,e,r,i="")=>{const a=t.split(":");if(t.slice(0,1)==="@"){if(a.length<2||a.length>3){return null}i=a.shift().slice(1)}if(a.length>3||!a.length){return null}if(a.length>1){const t=a.pop();const r=a.pop();const n={provider:a.length>0?a[0]:i,prefix:r,name:t};return e&&!o(n)?null:n}const n=a[0];const s=n.split("-");if(s.length>1){const t={provider:i,prefix:s.shift(),name:s.join("-")};return e&&!o(t)?null:t}if(r&&i===""){const t={provider:i,prefix:"",name:n};return e&&!o(t,r)?null:t}return null};const o=(t,e)=>{if(!t){return false}return!!((e&&t.prefix===""||!!t.prefix)&&!!t.name)};const s=Object.freeze({left:0,top:0,width:16,height:16});const l=Object.freeze({rotate:0,vFlip:false,hFlip:false});const c=Object.freeze({...s,...l});const h=Object.freeze({...c,body:"",hidden:false});function d(t,e){const r={};if(!t.hFlip!==!e.hFlip){r.hFlip=true}if(!t.vFlip!==!e.vFlip){r.vFlip=true}const i=((t.rotate||0)+(e.rotate||0))%4;if(i){r.rotate=i}return r}function u(t,e){const r=d(t,e);for(const i in h){if(i in l){if(i in t&&!(i in r)){r[i]=l[i]}}else if(i in e){r[i]=e[i]}else if(i in t){r[i]=t[i]}}return r}function f(t,e){const r=t.icons;const i=t.aliases||Object.create(null);const a=Object.create(null);function n(t){if(r[t]){return a[t]=[]}if(!(t in a)){a[t]=null;const e=i[t]&&i[t].parent;const r=e&&n(e);if(r){a[t]=[e].concat(r)}}return a[t]}(e||Object.keys(r).concat(Object.keys(i))).forEach(n);return a}function p(t,e,r){const i=t.icons;const a=t.aliases||Object.create(null);let n={};function o(t){n=u(i[t]||a[t],n)}o(e);r.forEach(o);return u(t,n)}function g(t,e){if(t.icons[e]){return p(t,e,[])}const r=f(t,[e])[e];return r?p(t,e,r):null}const m=Object.freeze({width:null,height:null});const y=Object.freeze({...m,...l});const b=/(-?[0-9.]*[0-9]+[0-9.]*)/g;const x=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function C(t,e,r){if(e===1){return t}r=r||100;if(typeof t==="number"){return Math.ceil(t*e*r)/r}if(typeof t!=="string"){return t}const i=t.split(b);if(i===null||!i.length){return t}const a=[];let n=i.shift();let o=x.test(n);while(true){if(o){const t=parseFloat(n);if(isNaN(t)){a.push(n)}else{a.push(Math.ceil(t*e*r)/r)}}else{a.push(n)}n=i.shift();if(n===void 0){return a.join("")}o=!o}}function v(t,e="defs"){let r="";const i=t.indexOf("<"+e);while(i>=0){const a=t.indexOf(">",i);const n=t.indexOf("",n);if(o===-1){break}r+=t.slice(a+1,n).trim();t=t.slice(0,i).trim()+t.slice(o+1)}return{defs:r,content:t}}function k(t,e){return t?""+t+""+e:e}function w(t,e,r){const i=v(t);return k(i.defs,e+i.content+r)}const S=t=>t==="unset"||t==="undefined"||t==="none";function A(t,e){const r={...c,...t};const i={...y,...e};const a={left:r.left,top:r.top,width:r.width,height:r.height};let n=r.body;[r,i].forEach((t=>{const e=[];const r=t.hFlip;const i=t.vFlip;let o=t.rotate;if(r){if(i){o+=2}else{e.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")");e.push("scale(-1 1)");a.top=a.left=0}}else if(i){e.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")");e.push("scale(1 -1)");a.top=a.left=0}let s;if(o<0){o-=Math.floor(o/4)*4}o=o%4;switch(o){case 1:s=a.height/2+a.top;e.unshift("rotate(90 "+s.toString()+" "+s.toString()+")");break;case 2:e.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:s=a.width/2+a.left;e.unshift("rotate(-90 "+s.toString()+" "+s.toString()+")");break}if(o%2===1){if(a.left!==a.top){s=a.left;a.left=a.top;a.top=s}if(a.width!==a.height){s=a.width;a.width=a.height;a.height=s}}if(e.length){n=w(n,'',"")}}));const o=i.width;const s=i.height;const l=a.width;const h=a.height;let d;let u;if(o===null){u=s===null?"1em":s==="auto"?h:s;d=C(u,l/h)}else{d=o==="auto"?l:o;u=s===null?C(d,h/l):s==="auto"?h:s}const f={};const p=(t,e)=>{if(!S(e)){f[t]=e.toString()}};p("width",d);p("height",u);const g=[a.left,a.top,l,h];f.viewBox=g.join(" ");return{attributes:f,viewBox:g,body:n}}function T(t,e){let r=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in e){r+=" "+i+'="'+e[i]+'"'}return'"+t+""}const B=/\sid="(\S+)"/g;const L="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let M=0;function _(t,e=L){const r=[];let i;while(i=B.exec(t)){r.push(i[1])}if(!r.length){return t}const a="suffix"+(Math.random()*16777216|Date.now()).toString(16);r.forEach((r=>{const i=typeof e==="function"?e(r):e+(M++).toString();const n=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+n+')([")]|\\.[a-z])',"g"),"$1"+i+a+"$3")}));t=t.replace(new RegExp(a,"g"),"");return t}var F={body:'?',height:80,width:80};var $=new Map;var E=new Map;var O=(0,i.K2)((t=>{for(const e of t){if(!e.name){throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.')}i.Rm.debug("Registering icon pack:",e.name);if("loader"in e){E.set(e.name,e.loader)}else if("icons"in e){$.set(e.name,e.icons)}else{i.Rm.error("Invalid icon loader:",e);throw new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}}}),"registerIconPacks");var D=(0,i.K2)((async(t,e)=>{const r=n(t,true,e!==void 0);if(!r){throw new Error(`Invalid icon name: ${t}`)}const a=r.prefix||e;if(!a){throw new Error(`Icon name must contain a prefix: ${t}`)}let o=$.get(a);if(!o){const t=E.get(a);if(!t){throw new Error(`Icon set not found: ${r.prefix}`)}try{const e=await t();o={...e,prefix:a};$.set(a,o)}catch(l){i.Rm.error(l);throw new Error(`Failed to load icon set: ${r.prefix}`)}}const s=g(o,r.name);if(!s){throw new Error(`Icon not found: ${t}`)}return s}),"getRegisteredIconData");var I=(0,i.K2)((async(t,e)=>{let r;try{r=await D(t,e?.fallbackPrefix)}catch(o){i.Rm.error(o);r=F}const a=A(r,e);const n=T(_(a.body),a.attributes);return n}),"getIconSVG")},20778:(t,e,r)=>{"use strict";r.d(e,{DA:()=>k,IU:()=>P,KX:()=>B,U:()=>R,U7:()=>Ee,U_:()=>De,Zk:()=>h,aP:()=>_e,gh:()=>Oe,lC:()=>u,on:()=>$e});var i=r(57590);var a=r(68232);var n=r(76261);var o=r(96049);var s=r(75905);var l=r(24982);var c=r(52274);var h=(0,s.K2)((async(t,e,r)=>{let i;const a=e.useHtmlLabels||(0,s._3)((0,s.D7)()?.htmlLabels);if(!r){i="node default"}else{i=r}const c=t.insert("g").attr("class",i).attr("id",e.domId||e.id);const h=c.insert("g").attr("class","label").attr("style",(0,o.KL)(e.labelStyle));let d;if(e.label===void 0){d=""}else{d=typeof e.label==="string"?e.label:e.label[0]}const u=await(0,n.GZ)(h,(0,s.jZ)((0,o.Sm)(d),(0,s.D7)()),{useHtmlLabels:a,width:e.width||(0,s.D7)().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img});let f=u.getBBox();const p=(e?.padding??0)/2;if(a){const t=u.children[0];const e=(0,l.Ltv)(u);const r=t.getElementsByTagName("img");if(r){const t=d.replace(/]*>/g,"").trim()==="";await Promise.all([...r].map((e=>new Promise((r=>{function i(){e.style.display="flex";e.style.flexDirection="column";if(t){const t=(0,s.D7)().fontSize?(0,s.D7)().fontSize:window.getComputedStyle(document.body).fontSize;const r=5;const[i=s.UI.fontSize]=(0,o.I5)(t);const a=i*r+"px";e.style.minWidth=a;e.style.maxWidth=a}else{e.style.width="100%"}r(e)}(0,s.K2)(i,"setupImage");setTimeout((()=>{if(e.complete){i()}}));e.addEventListener("error",i);e.addEventListener("load",i)})))))}f=t.getBoundingClientRect();e.attr("width",f.width);e.attr("height",f.height)}if(a){h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")")}else{h.attr("transform","translate(0, "+-f.height/2+")")}if(e.centerLabel){h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")")}h.insert("rect",":first-child");return{shapeSvg:c,bbox:f,halfPadding:p,label:h}}),"labelHelper");var d=(0,s.K2)((async(t,e,r)=>{const i=r.useHtmlLabels||(0,s._3)((0,s.D7)()?.flowchart?.htmlLabels);const a=t.insert("g").attr("class","label").attr("style",r.labelStyle||"");const c=await(0,n.GZ)(a,(0,s.jZ)((0,o.Sm)(e),(0,s.D7)()),{useHtmlLabels:i,width:r.width||(0,s.D7)()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let h=c.getBBox();const d=r.padding/2;if((0,s._3)((0,s.D7)()?.flowchart?.htmlLabels)){const t=c.children[0];const e=(0,l.Ltv)(c);h=t.getBoundingClientRect();e.attr("width",h.width);e.attr("height",h.height)}if(i){a.attr("transform","translate("+-h.width/2+", "+-h.height/2+")")}else{a.attr("transform","translate(0, "+-h.height/2+")")}if(r.centerLabel){a.attr("transform","translate("+-h.width/2+", "+-h.height/2+")")}a.insert("rect",":first-child");return{shapeSvg:t,bbox:h,halfPadding:d,label:a}}),"insertLabel");var u=(0,s.K2)(((t,e)=>{const r=e.node().getBBox();t.width=r.width;t.height=r.height}),"updateNodeBounds");var f=(0,s.K2)(((t,e)=>(t.look==="handDrawn"?"rough-node":"node")+" "+t.cssClasses+" "+(e||"")),"getNodeClasses");function p(t){const e=t.map(((t,e)=>`${e===0?"M":"L"}${t.x},${t.y}`));e.push("Z");return e.join(" ")}(0,s.K2)(p,"createPathFromPoints");function g(t,e,r,i,a,n){const o=[];const s=50;const l=r-t;const c=i-e;const h=l/n;const d=2*Math.PI/h;const u=e+c/2;for(let f=0;f<=s;f++){const e=f/s;const r=t+e*l;const i=u+a*Math.sin(d*(r-t));o.push({x:r,y:i})}return o}(0,s.K2)(g,"generateFullSineWavePoints");function m(t,e,r,i,a,n){const o=[];const s=a*Math.PI/180;const l=n*Math.PI/180;const c=l-s;const h=c/(i-1);for(let d=0;d{var r=t.x;var i=t.y;var a=e.x-r;var n=e.y-i;var o=t.width/2;var s=t.height/2;var l,c;if(Math.abs(n)*o>Math.abs(a)*s){if(n<0){s=-s}l=n===0?0:s*a/n;c=s}else{if(a<0){o=-o}l=o;c=a===0?0:o*n/a}return{x:r+l,y:i+c}}),"intersectRect");var b=y;function x(t,e){if(e){t.attr("style",e)}}(0,s.K2)(x,"applyStyle");async function C(t){const e=(0,l.Ltv)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject"));const r=e.append("xhtml:div");let i=t.label;if(t.label&&(0,s.Wi)(t.label)){i=await(0,s.VJ)(t.label.replace(s.Y2.lineBreakRegex,"\n"),(0,s.D7)())}const a=t.isNode?"nodeLabel":"edgeLabel";r.html('"+i+"");x(r,t.labelStyle);r.style("display","inline-block");r.style("padding-right","1px");r.style("white-space","nowrap");r.attr("xmlns","http://www.w3.org/1999/xhtml");return e.node()}(0,s.K2)(C,"addHtmlLabel");var v=(0,s.K2)((async(t,e,r,i)=>{let a=t||"";if(typeof a==="object"){a=a[0]}if((0,s._3)((0,s.D7)().flowchart.htmlLabels)){a=a.replace(/\\n|\n/g,"
");s.Rm.info("vertexText"+a);const t={isNode:i,label:(0,o.Sm)(a).replace(/fa[blrs]?:fa-[\w-]+/g,(t=>``)),labelStyle:e?e.replace("fill:","color:"):e};let r=await C(t);return r}else{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let i=[];if(typeof a==="string"){i=a.split(/\\n|\n|/gi)}else if(Array.isArray(a)){i=a}else{i=[]}for(const e of i){const i=document.createElementNS("http://www.w3.org/2000/svg","tspan");i.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");i.setAttribute("dy","1em");i.setAttribute("x","0");if(r){i.setAttribute("class","title-row")}else{i.setAttribute("class","row")}i.textContent=e.trim();t.appendChild(i)}return t}}),"createLabel");var k=v;var w=(0,s.K2)(((t,e,r,i,a)=>["M",t+a,e,"H",t+r-a,"A",a,a,0,0,1,t+r,e+a,"V",e+i-a,"A",a,a,0,0,1,t+r-a,e+i,"H",t+a,"A",a,a,0,0,1,t,e+i-a,"V",e+a,"A",a,a,0,0,1,t+a,e,"Z"].join(" ")),"createRoundedRectPathD");var S=(0,s.K2)((t=>{const{handDrawnSeed:e}=(0,s.D7)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}}),"solidStateFill");var A=(0,s.K2)((t=>{const e=T([...t.cssCompiledStyles||[],...t.cssStyles||[]]);return{stylesMap:e,stylesArray:[...e]}}),"compileStyles");var T=(0,s.K2)((t=>{const e=new Map;t.forEach((t=>{const[r,i]=t.split(":");e.set(r.trim(),i?.trim())}));return e}),"styles2Map");var B=(0,s.K2)((t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens"),"isLabelStyle");var L=(0,s.K2)((t=>{const{stylesArray:e}=A(t);const r=[];const i=[];const a=[];const n=[];e.forEach((t=>{const e=t[0];if(B(e)){r.push(t.join(":")+" !important")}else{i.push(t.join(":")+" !important");if(e.includes("stroke")){a.push(t.join(":")+" !important")}if(e==="fill"){n.push(t.join(":")+" !important")}}}));return{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:e,borderStyles:a,backgroundStyles:n}}),"styles2String");var M=(0,s.K2)(((t,e)=>{const{themeVariables:r,handDrawnSeed:i}=(0,s.D7)();const{nodeBorder:a,mainBkg:n}=r;const{stylesMap:o}=A(t);const l=Object.assign({roughness:.7,fill:o.get("fill")||n,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||a,seed:i,strokeWidth:o.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0]},e);return l}),"userNodeOverrides");var _=(0,s.K2)((async(t,e)=>{s.Rm.info("Creating subgraph rect for ",e.id,e);const r=(0,s.D7)();const{themeVariables:a,handDrawnSeed:o}=r;const{clusterBkg:h,clusterBorder:d}=a;const{labelStyles:u,nodeStyles:f,borderStyles:p,backgroundStyles:g}=L(e);const m=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look);const y=(0,s._3)(r.flowchart.htmlLabels);const x=m.insert("g").attr("class","cluster-label ");const C=await(0,n.GZ)(x,e.label,{style:e.labelStyle,useHtmlLabels:y,isNode:true});let v=C.getBBox();if((0,s._3)(r.flowchart.htmlLabels)){const t=C.children[0];const e=(0,l.Ltv)(C);v=t.getBoundingClientRect();e.attr("width",v.width);e.attr("height",v.height)}const k=e.width<=v.width+e.padding?v.width+e.padding:e.width;if(e.width<=v.width+e.padding){e.diff=(k-e.width)/2-e.padding}else{e.diff=-e.padding}const S=e.height;const A=e.x-k/2;const T=e.y-S/2;s.Rm.trace("Data ",e,JSON.stringify(e));let B;if(e.look==="handDrawn"){const t=c.A.svg(m);const r=M(e,{roughness:.7,fill:h,stroke:d,fillWeight:3,seed:o});const i=t.path(w(A,T,k,S,0),r);B=m.insert((()=>{s.Rm.debug("Rough node insert CXC",i);return i}),":first-child");B.select("path:nth-child(2)").attr("style",p.join(";"));B.select("path").attr("style",g.join(";").replace("fill","stroke"))}else{B=m.insert("rect",":first-child");B.attr("style",f).attr("rx",e.rx).attr("ry",e.ry).attr("x",A).attr("y",T).attr("width",k).attr("height",S)}const{subGraphTitleTopMargin:_}=(0,i.O)(r);x.attr("transform",`translate(${e.x-v.width/2}, ${e.y-e.height/2+_})`);if(u){const t=x.select("span");if(t){t.attr("style",u)}}const F=B.node().getBBox();e.offsetX=0;e.width=F.width;e.height=F.height;e.offsetY=v.height-e.padding/2;e.intersect=function(t){return b(e,t)};return{cluster:m,labelBBox:v}}),"rect");var F=(0,s.K2)(((t,e)=>{const r=t.insert("g").attr("class","note-cluster").attr("id",e.id);const i=r.insert("rect",":first-child");const a=0*e.padding;const n=a/2;i.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-n).attr("y",e.y-e.height/2-n).attr("width",e.width+a).attr("height",e.height+a).attr("fill","none");const o=i.node().getBBox();e.width=o.width;e.height=o.height;e.intersect=function(t){return b(e,t)};return{cluster:r,labelBBox:{width:0,height:0}}}),"noteGroup");var $=(0,s.K2)((async(t,e)=>{const r=(0,s.D7)();const{themeVariables:i,handDrawnSeed:a}=r;const{altBackground:n,compositeBackground:o,compositeTitleBackground:h,nodeBorder:d}=i;const u=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look);const f=u.insert("g",":first-child");const p=u.insert("g").attr("class","cluster-label");let g=u.append("rect");const m=p.node().appendChild(await k(e.label,e.labelStyle,void 0,true));let y=m.getBBox();if((0,s._3)(r.flowchart.htmlLabels)){const t=m.children[0];const e=(0,l.Ltv)(m);y=t.getBoundingClientRect();e.attr("width",y.width);e.attr("height",y.height)}const x=0*e.padding;const C=x/2;const v=(e.width<=y.width+e.padding?y.width+e.padding:e.width)+x;if(e.width<=y.width+e.padding){e.diff=(v-e.width)/2-e.padding}else{e.diff=-e.padding}const S=e.height+x;const A=e.height+x-y.height-6;const T=e.x-v/2;const B=e.y-S/2;e.width=v;const L=e.y-e.height/2-C+y.height+2;let M;if(e.look==="handDrawn"){const t=e.cssClasses.includes("statediagram-cluster-alt");const r=c.A.svg(u);const i=e.rx||e.ry?r.path(w(T,B,v,S,10),{roughness:.7,fill:h,fillStyle:"solid",stroke:d,seed:a}):r.rectangle(T,B,v,S,{seed:a});M=u.insert((()=>i),":first-child");const s=r.rectangle(T,L,v,A,{fill:t?n:o,fillStyle:t?"hachure":"solid",stroke:d,seed:a});M=u.insert((()=>i),":first-child");g=u.insert((()=>s))}else{M=f.insert("rect",":first-child");const t="outer";M.attr("class",t).attr("x",T).attr("y",B).attr("width",v).attr("height",S).attr("data-look",e.look);g.attr("class","inner").attr("x",T).attr("y",L).attr("width",v).attr("height",A)}p.attr("transform",`translate(${e.x-y.width/2}, ${B+1-((0,s._3)(r.flowchart.htmlLabels)?0:3)})`);const _=M.node().getBBox();e.height=_.height;e.offsetX=0;e.offsetY=y.height-e.padding/2;e.labelBBox=y;e.intersect=function(t){return b(e,t)};return{cluster:u,labelBBox:y}}),"roundedWithTitle");var E=(0,s.K2)((async(t,e)=>{s.Rm.info("Creating subgraph rect for ",e.id,e);const r=(0,s.D7)();const{themeVariables:a,handDrawnSeed:o}=r;const{clusterBkg:h,clusterBorder:d}=a;const{labelStyles:u,nodeStyles:f,borderStyles:p,backgroundStyles:g}=L(e);const m=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look);const y=(0,s._3)(r.flowchart.htmlLabels);const x=m.insert("g").attr("class","cluster-label ");const C=await(0,n.GZ)(x,e.label,{style:e.labelStyle,useHtmlLabels:y,isNode:true,width:e.width});let v=C.getBBox();if((0,s._3)(r.flowchart.htmlLabels)){const t=C.children[0];const e=(0,l.Ltv)(C);v=t.getBoundingClientRect();e.attr("width",v.width);e.attr("height",v.height)}const k=e.width<=v.width+e.padding?v.width+e.padding:e.width;if(e.width<=v.width+e.padding){e.diff=(k-e.width)/2-e.padding}else{e.diff=-e.padding}const S=e.height;const A=e.x-k/2;const T=e.y-S/2;s.Rm.trace("Data ",e,JSON.stringify(e));let B;if(e.look==="handDrawn"){const t=c.A.svg(m);const r=M(e,{roughness:.7,fill:h,stroke:d,fillWeight:4,seed:o});const i=t.path(w(A,T,k,S,e.rx),r);B=m.insert((()=>{s.Rm.debug("Rough node insert CXC",i);return i}),":first-child");B.select("path:nth-child(2)").attr("style",p.join(";"));B.select("path").attr("style",g.join(";").replace("fill","stroke"))}else{B=m.insert("rect",":first-child");B.attr("style",f).attr("rx",e.rx).attr("ry",e.ry).attr("x",A).attr("y",T).attr("width",k).attr("height",S)}const{subGraphTitleTopMargin:_}=(0,i.O)(r);x.attr("transform",`translate(${e.x-v.width/2}, ${e.y-e.height/2+_})`);if(u){const t=x.select("span");if(t){t.attr("style",u)}}const F=B.node().getBBox();e.offsetX=0;e.width=F.width;e.height=F.height;e.offsetY=v.height-e.padding/2;e.intersect=function(t){return b(e,t)};return{cluster:m,labelBBox:v}}),"kanbanSection");var O=(0,s.K2)(((t,e)=>{const r=(0,s.D7)();const{themeVariables:i,handDrawnSeed:a}=r;const{nodeBorder:n}=i;const o=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look);const l=o.insert("g",":first-child");const h=0*e.padding;const d=e.width+h;e.diff=-e.padding;const u=e.height+h;const f=e.x-d/2;const p=e.y-u/2;e.width=d;let g;if(e.look==="handDrawn"){const t=c.A.svg(o);const e=t.rectangle(f,p,d,u,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:n,seed:a});g=o.insert((()=>e),":first-child")}else{g=l.insert("rect",":first-child");const t="divider";g.attr("class",t).attr("x",f).attr("y",p).attr("width",d).attr("height",u).attr("data-look",e.look)}const m=g.node().getBBox();e.height=m.height;e.offsetX=0;e.offsetY=0;e.intersect=function(t){return b(e,t)};return{cluster:o,labelBBox:{}}}),"divider");var D=_;var I={rect:_,squareRect:D,roundedWithTitle:$,noteGroup:F,divider:O,kanbanSection:E};var K=new Map;var R=(0,s.K2)((async(t,e)=>{const r=e.shape||"rect";const i=await I[r](t,e);K.set(e.id,i);return i}),"insertCluster");var P=(0,s.K2)((()=>{K=new Map}),"clear");function z(t,e){return t.intersect(e)}(0,s.K2)(z,"intersectNode");var q=z;function N(t,e,r,i){var a=t.x;var n=t.y;var o=a-i.x;var s=n-i.y;var l=Math.sqrt(e*e*s*s+r*r*o*o);var c=Math.abs(e*r*o/l);if(i.x0}(0,s.K2)(U,"sameSign");var G=Y;function V(t,e,r){let i=t.x;let a=t.y;let n=[];let o=Number.POSITIVE_INFINITY;let s=Number.POSITIVE_INFINITY;if(typeof e.forEach==="function"){e.forEach((function(t){o=Math.min(o,t.x);s=Math.min(s,t.y)}))}else{o=Math.min(o,e.x);s=Math.min(s,e.y)}let l=i-t.width/2-o;let c=a-t.height/2-s;for(let h=0;h1){n.sort((function(t,e){let i=t.x-r.x;let a=t.y-r.y;let n=Math.sqrt(i*i+a*a);let o=e.x-r.x;let s=e.y-r.y;let l=Math.sqrt(o*o+s*s);return ng),":first-child");m.attr("class","anchor").attr("style",(0,o.KL)(h));u(e,m);e.intersect=function(t){s.Rm.info("Circle intersect",e,l,t);return Z.circle(e,l,t)};return n}(0,s.K2)(J,"anchor");function Q(t,e,r,i,a,n,o){const s=20;const l=(t+r)/2;const c=(e+i)/2;const h=Math.atan2(i-e,r-t);const d=(r-t)/2;const u=(i-e)/2;const f=d/a;const p=u/n;const g=Math.sqrt(f**2+p**2);if(g>1){throw new Error("The given radii are too small to create an arc between the points.")}const m=Math.sqrt(1-g**2);const y=l+m*n*Math.sin(h)*(o?-1:1);const b=c-m*a*Math.cos(h)*(o?-1:1);const x=Math.atan2((e-b)/n,(t-y)/a);const C=Math.atan2((i-b)/n,(r-y)/a);let v=C-x;if(o&&v<0){v+=2*Math.PI}if(!o&&v>0){v-=2*Math.PI}const k=[];for(let w=0;wC),":first-child");v.attr("class","basic label-container");if(g&&e.look!=="handDrawn"){v.selectAll("path").attr("style",g)}if(i&&e.look!=="handDrawn"){v.selectAll("path").attr("style",i)}v.attr("transform",`translate(${d/2}, 0)`);u(e,v);e.intersect=function(t){const r=Z.polygon(e,m,t);return r};return a}(0,s.K2)(tt,"bowTieRect");function et(t,e,r,i){return t.insert("polygon",":first-child").attr("points",i.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}(0,s.K2)(et,"insertPolygonShape");async function rt(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n}=await h(t,e,f(e));const o=n.height+e.padding;const s=12;const l=n.width+e.padding+s;const d=0;const g=l;const m=-o;const y=0;const b=[{x:d+s,y:m},{x:g,y:m},{x:g,y},{x:d,y},{x:d,y:m+s},{x:d+s,y:m}];let x;const{cssStyles:C}=e;if(e.look==="handDrawn"){const t=c.A.svg(a);const r=M(e,{});const i=p(b);const n=t.path(i,r);x=a.insert((()=>n),":first-child").attr("transform",`translate(${-l/2}, ${o/2})`);if(C){x.attr("style",C)}}else{x=et(a,l,o,b)}if(i){x.attr("style",i)}u(e,x);e.intersect=function(t){return Z.polygon(e,b,t)};return a}(0,s.K2)(rt,"card");function it(t,e){const{nodeStyles:r}=L(e);e.label="";const i=t.insert("g").attr("class",f(e)).attr("id",e.domId??e.id);const{cssStyles:a}=e;const n=Math.max(28,e.width??0);const o=[{x:0,y:n/2},{x:n/2,y:0},{x:0,y:-n/2},{x:-n/2,y:0}];const s=c.A.svg(i);const l=M(e,{});if(e.look!=="handDrawn"){l.roughness=0;l.fillStyle="solid"}const h=p(o);const d=s.path(h,l);const u=i.insert((()=>d),":first-child");if(a&&e.look!=="handDrawn"){u.selectAll("path").attr("style",a)}if(r&&e.look!=="handDrawn"){u.selectAll("path").attr("style",r)}e.width=28;e.height=28;e.intersect=function(t){return Z.polygon(e,o,t)};return i}(0,s.K2)(it,"choice");async function at(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,halfPadding:l}=await h(t,e,f(e));const d=n.width/2+l;let p;const{cssStyles:g}=e;if(e.look==="handDrawn"){const t=c.A.svg(a);const r=M(e,{});const i=t.circle(0,0,d*2,r);p=a.insert((()=>i),":first-child");p.attr("class","basic label-container").attr("style",(0,o.KL)(g))}else{p=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",i).attr("r",d).attr("cx",0).attr("cy",0)}u(e,p);e.intersect=function(t){s.Rm.info("Circle intersect",e,d,t);return Z.circle(e,d,t)};return a}(0,s.K2)(at,"circle");function nt(t){const e=Math.cos(Math.PI/4);const r=Math.sin(Math.PI/4);const i=t*2;const a={x:i/2*e,y:i/2*r};const n={x:-(i/2)*e,y:i/2*r};const o={x:-(i/2)*e,y:-(i/2)*r};const s={x:i/2*e,y:-(i/2)*r};return`M ${n.x},${n.y} L ${s.x},${s.y}\n M ${a.x},${a.y} L ${o.x},${o.y}`}(0,s.K2)(nt,"createLine");function ot(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;e.label="";const a=t.insert("g").attr("class",f(e)).attr("id",e.domId??e.id);const n=Math.max(30,e?.width??0);const{cssStyles:o}=e;const l=c.A.svg(a);const h=M(e,{});if(e.look!=="handDrawn"){h.roughness=0;h.fillStyle="solid"}const d=l.circle(0,0,n*2,h);const p=nt(n);const g=l.path(p,h);const m=a.insert((()=>d),":first-child");m.insert((()=>g));if(o&&e.look!=="handDrawn"){m.selectAll("path").attr("style",o)}if(i&&e.look!=="handDrawn"){m.selectAll("path").attr("style",i)}u(e,m);e.intersect=function(t){s.Rm.info("crossedCircle intersect",e,{radius:n,point:t});const r=Z.circle(e,n,t);return r};return a}(0,s.K2)(ot,"crossedCircle");function st(t,e,r,i=100,a=0,n=180){const o=[];const s=a*Math.PI/180;const l=n*Math.PI/180;const c=l-s;const h=c/(i-1);for(let d=0;dS),":first-child").attr("stroke-opacity",0);A.insert((()=>k),":first-child");A.attr("class","text");if(g&&e.look!=="handDrawn"){A.selectAll("path").attr("style",g)}if(i&&e.look!=="handDrawn"){A.selectAll("path").attr("style",i)}A.attr("transform",`translate(${d}, 0)`);o.attr("transform",`translate(${-s/2+d-(n.x-(n.left??0))},${-l/2+(e.padding??0)/2-(n.y-(n.top??0))})`);u(e,A);e.intersect=function(t){const r=Z.polygon(e,y,t);return r};return a}(0,s.K2)(lt,"curlyBraceLeft");function ct(t,e,r,i=100,a=0,n=180){const o=[];const s=a*Math.PI/180;const l=n*Math.PI/180;const c=l-s;const h=c/(i-1);for(let d=0;dS),":first-child").attr("stroke-opacity",0);A.insert((()=>k),":first-child");A.attr("class","text");if(g&&e.look!=="handDrawn"){A.selectAll("path").attr("style",g)}if(i&&e.look!=="handDrawn"){A.selectAll("path").attr("style",i)}A.attr("transform",`translate(${-d}, 0)`);o.attr("transform",`translate(${-s/2+(e.padding??0)/2-(n.x-(n.left??0))},${-l/2+(e.padding??0)/2-(n.y-(n.top??0))})`);u(e,A);e.intersect=function(t){const r=Z.polygon(e,y,t);return r};return a}(0,s.K2)(ht,"curlyBraceRight");function dt(t,e,r,i=100,a=0,n=180){const o=[];const s=a*Math.PI/180;const l=n*Math.PI/180;const c=l-s;const h=c/(i-1);for(let d=0;d_),":first-child").attr("stroke-opacity",0);F.insert((()=>w),":first-child");F.insert((()=>T),":first-child");F.attr("class","text");if(g&&e.look!=="handDrawn"){F.selectAll("path").attr("style",g)}if(i&&e.look!=="handDrawn"){F.selectAll("path").attr("style",i)}F.attr("transform",`translate(${d-d/4}, 0)`);o.attr("transform",`translate(${-s/2+(e.padding??0)/2-(n.x-(n.left??0))},${-l/2+(e.padding??0)/2-(n.y-(n.top??0))})`);u(e,F);e.intersect=function(t){const r=Z.polygon(e,b,t);return r};return a}(0,s.K2)(ut,"curlyBraces");async function ft(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n}=await h(t,e,f(e));const o=80,s=20;const l=Math.max(o,(n.width+(e.padding??0)*2)*1.25,e?.width??0);const d=Math.max(s,n.height+(e.padding??0)*2,e?.height??0);const g=d/2;const{cssStyles:y}=e;const b=c.A.svg(a);const x=M(e,{});if(e.look!=="handDrawn"){x.roughness=0;x.fillStyle="solid"}const C=l,v=d;const k=C-g;const w=v/4;const S=[{x:k,y:0},{x:w,y:0},{x:0,y:v/2},{x:w,y:v},{x:k,y:v},...m(-k,-v/2,g,50,270,90)];const A=p(S);const T=b.path(A,x);const B=a.insert((()=>T),":first-child");B.attr("class","basic label-container");if(y&&e.look!=="handDrawn"){B.selectChildren("path").attr("style",y)}if(i&&e.look!=="handDrawn"){B.selectChildren("path").attr("style",i)}B.attr("transform",`translate(${-l/2}, ${-d/2})`);u(e,B);e.intersect=function(t){const r=Z.polygon(e,S,t);return r};return a}(0,s.K2)(ft,"curvedTrapezoid");var pt=(0,s.K2)(((t,e,r,i,a,n)=>[`M${t},${e+n}`,`a${a},${n} 0,0,0 ${r},0`,`a${a},${n} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${n} 0,0,0 ${r},0`,`l0,${-i}`].join(" ")),"createCylinderPathD");var gt=(0,s.K2)(((t,e,r,i,a,n)=>[`M${t},${e+n}`,`M${t+r},${e+n}`,`a${a},${n} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${n} 0,0,0 ${r},0`,`l0,${-i}`].join(" ")),"createOuterCylinderPathD");var mt=(0,s.K2)(((t,e,r,i,a,n)=>[`M${t-r/2},${-i/2}`,`a${a},${n} 0,0,0 ${r},0`].join(" ")),"createInnerCylinderPathD");async function yt(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await h(t,e,f(e));const l=Math.max(n.width+e.padding,e.width??0);const d=l/2;const p=d/(2.5+l/50);const g=Math.max(n.height+p+e.padding,e.height??0);let m;const{cssStyles:y}=e;if(e.look==="handDrawn"){const t=c.A.svg(a);const r=gt(0,0,l,g,d,p);const i=mt(0,p,l,g,d,p);const n=t.path(r,M(e,{}));const o=t.path(i,M(e,{fill:"none"}));m=a.insert((()=>o),":first-child");m=a.insert((()=>n),":first-child");m.attr("class","basic label-container");if(y){m.attr("style",y)}}else{const t=pt(0,0,l,g,d,p);m=a.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,o.KL)(y)).attr("style",i)}m.attr("label-offset-y",p);m.attr("transform",`translate(${-l/2}, ${-(g/2+p)})`);u(e,m);s.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)+(e.padding??0)/1.5-(n.y-(n.top??0))})`);e.intersect=function(t){const r=Z.rect(e,t);const i=r.x-(e.x??0);if(d!=0&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-p)){let a=p*p*(1-i*i/(d*d));if(a>0){a=Math.sqrt(a)}a=p-a;if(t.y-(e.y??0)>0){a=-a}r.y+=a}return r};return a}(0,s.K2)(yt,"cylinder");async function bt(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,label:o}=await h(t,e,f(e));const s=n.width+e.padding;const l=n.height+e.padding;const d=l*.2;const p=-s/2;const g=-l/2-d/2;const{cssStyles:m}=e;const y=c.A.svg(a);const b=M(e,{});if(e.look!=="handDrawn"){b.roughness=0;b.fillStyle="solid"}const x=[{x:p,y:g+d},{x:-p,y:g+d},{x:-p,y:-g},{x:p,y:-g},{x:p,y:g},{x:-p,y:g},{x:-p,y:g+d}];const C=y.polygon(x.map((t=>[t.x,t.y])),b);const v=a.insert((()=>C),":first-child");v.attr("class","basic label-container");if(m&&e.look!=="handDrawn"){v.selectAll("path").attr("style",m)}if(i&&e.look!=="handDrawn"){v.selectAll("path").attr("style",i)}o.attr("transform",`translate(${p+(e.padding??0)/2-(n.x-(n.left??0))}, ${g+d+(e.padding??0)/2-(n.y-(n.top??0))})`);u(e,v);e.intersect=function(t){const r=Z.rect(e,t);return r};return a}(0,s.K2)(bt,"dividedRectangle");async function xt(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,halfPadding:l}=await h(t,e,f(e));const d=5;const p=n.width/2+l+d;const g=n.width/2+l;let m;const{cssStyles:y}=e;if(e.look==="handDrawn"){const t=c.A.svg(a);const r=M(e,{roughness:.2,strokeWidth:2.5});const i=M(e,{roughness:.2,strokeWidth:1.5});const n=t.circle(0,0,p*2,r);const s=t.circle(0,0,g*2,i);m=a.insert("g",":first-child");m.attr("class",(0,o.KL)(e.cssClasses)).attr("style",(0,o.KL)(y));m.node()?.appendChild(n);m.node()?.appendChild(s)}else{m=a.insert("g",":first-child");const t=m.insert("circle",":first-child");const e=m.insert("circle");m.attr("class","basic label-container").attr("style",i);t.attr("class","outer-circle").attr("style",i).attr("r",p).attr("cx",0).attr("cy",0);e.attr("class","inner-circle").attr("style",i).attr("r",g).attr("cx",0).attr("cy",0)}u(e,m);e.intersect=function(t){s.Rm.info("DoubleCircle intersect",e,p,t);return Z.circle(e,p,t)};return a}(0,s.K2)(xt,"doublecircle");function Ct(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:a}=L(e);e.label="";e.labelStyle=i;const n=t.insert("g").attr("class",f(e)).attr("id",e.domId??e.id);const o=7;const{cssStyles:l}=e;const h=c.A.svg(n);const{nodeBorder:d}=r;const p=M(e,{fillStyle:"solid"});if(e.look!=="handDrawn"){p.roughness=0}const g=h.circle(0,0,o*2,p);const m=n.insert((()=>g),":first-child");m.selectAll("path").attr("style",`fill: ${d} !important;`);if(l&&l.length>0&&e.look!=="handDrawn"){m.selectAll("path").attr("style",l)}if(a&&e.look!=="handDrawn"){m.selectAll("path").attr("style",a)}u(e,m);e.intersect=function(t){s.Rm.info("filledCircle intersect",e,{radius:o,point:t});const r=Z.circle(e,o,t);return r};return n}(0,s.K2)(Ct,"filledCircle");async function vt(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,label:o}=await h(t,e,f(e));const l=n.width+(e.padding??0);const d=l+n.height;const g=l+n.height;const m=[{x:0,y:-d},{x:g,y:-d},{x:g/2,y:0}];const{cssStyles:y}=e;const b=c.A.svg(a);const x=M(e,{});if(e.look!=="handDrawn"){x.roughness=0;x.fillStyle="solid"}const C=p(m);const v=b.path(C,x);const k=a.insert((()=>v),":first-child").attr("transform",`translate(${-d/2}, ${d/2})`);if(y&&e.look!=="handDrawn"){k.selectChildren("path").attr("style",y)}if(i&&e.look!=="handDrawn"){k.selectChildren("path").attr("style",i)}e.width=l;e.height=d;u(e,k);o.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${-d/2+(e.padding??0)/2+(n.y-(n.top??0))})`);e.intersect=function(t){s.Rm.info("Triangle intersect",e,m,t);return Z.polygon(e,m,t)};return a}(0,s.K2)(vt,"flippedTriangle");function kt(t,e,{dir:r,config:{state:i,themeVariables:a}}){const{nodeStyles:n}=L(e);e.label="";const o=t.insert("g").attr("class",f(e)).attr("id",e.domId??e.id);const{cssStyles:s}=e;let l=Math.max(70,e?.width??0);let h=Math.max(10,e?.height??0);if(r==="LR"){l=Math.max(10,e?.width??0);h=Math.max(70,e?.height??0)}const d=-1*l/2;const p=-1*h/2;const g=c.A.svg(o);const m=M(e,{stroke:a.lineColor,fill:a.lineColor});if(e.look!=="handDrawn"){m.roughness=0;m.fillStyle="solid"}const y=g.rectangle(d,p,l,h,m);const b=o.insert((()=>y),":first-child");if(s&&e.look!=="handDrawn"){b.selectAll("path").attr("style",s)}if(n&&e.look!=="handDrawn"){b.selectAll("path").attr("style",n)}u(e,b);const x=i?.padding??0;if(e.width&&e.height){e.width+=x/2||0;e.height+=x/2||0}e.intersect=function(t){return Z.rect(e,t)};return o}(0,s.K2)(kt,"forkJoin");async function wt(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const a=80,n=50;const{shapeSvg:o,bbox:l}=await h(t,e,f(e));const d=Math.max(a,l.width+(e.padding??0)*2,e?.width??0);const g=Math.max(n,l.height+(e.padding??0)*2,e?.height??0);const y=g/2;const{cssStyles:b}=e;const x=c.A.svg(o);const C=M(e,{});if(e.look!=="handDrawn"){C.roughness=0;C.fillStyle="solid"}const v=[{x:-d/2,y:-g/2},{x:d/2-y,y:-g/2},...m(-d/2+y,0,y,50,90,270),{x:d/2-y,y:g/2},{x:-d/2,y:g/2}];const k=p(v);const w=x.path(k,C);const S=o.insert((()=>w),":first-child");S.attr("class","basic label-container");if(b&&e.look!=="handDrawn"){S.selectChildren("path").attr("style",b)}if(i&&e.look!=="handDrawn"){S.selectChildren("path").attr("style",i)}u(e,S);e.intersect=function(t){s.Rm.info("Pill intersect",e,{radius:y,point:t});const r=Z.polygon(e,v,t);return r};return o}(0,s.K2)(wt,"halfRoundedRectangle");var St=(0,s.K2)(((t,e,r,i,a)=>[`M${t+a},${e}`,`L${t+r-a},${e}`,`L${t+r},${e-i/2}`,`L${t+r-a},${e-i}`,`L${t+a},${e-i}`,`L${t},${e-i/2}`,"Z"].join(" ")),"createHexagonPathD");async function At(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n}=await h(t,e,f(e));const o=4;const s=n.height+e.padding;const l=s/o;const d=n.width+2*l+e.padding;const p=[{x:l,y:0},{x:d-l,y:0},{x:d,y:-s/2},{x:d-l,y:-s},{x:l,y:-s},{x:0,y:-s/2}];let g;const{cssStyles:m}=e;if(e.look==="handDrawn"){const t=c.A.svg(a);const r=M(e,{});const i=St(0,0,d,s,l);const n=t.path(i,r);g=a.insert((()=>n),":first-child").attr("transform",`translate(${-d/2}, ${s/2})`);if(m){g.attr("style",m)}}else{g=et(a,d,s,p)}if(i){g.attr("style",i)}e.width=d;e.height=s;u(e,g);e.intersect=function(t){return Z.polygon(e,p,t)};return a}(0,s.K2)(At,"hexagon");async function Tt(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.label="";e.labelStyle=r;const{shapeSvg:a}=await h(t,e,f(e));const n=Math.max(30,e?.width??0);const o=Math.max(30,e?.height??0);const{cssStyles:l}=e;const d=c.A.svg(a);const g=M(e,{});if(e.look!=="handDrawn"){g.roughness=0;g.fillStyle="solid"}const m=[{x:0,y:0},{x:n,y:0},{x:0,y:o},{x:n,y:o}];const y=p(m);const b=d.path(y,g);const x=a.insert((()=>b),":first-child");x.attr("class","basic label-container");if(l&&e.look!=="handDrawn"){x.selectChildren("path").attr("style",l)}if(i&&e.look!=="handDrawn"){x.selectChildren("path").attr("style",i)}x.attr("transform",`translate(${-n/2}, ${-o/2})`);u(e,x);e.intersect=function(t){s.Rm.info("Pill intersect",e,{points:m});const r=Z.polygon(e,m,t);return r};return a}(0,s.K2)(Tt,"hourglass");async function Bt(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=L(e);e.labelStyle=n;const o=e.assetHeight??48;const l=e.assetWidth??48;const d=Math.max(o,l);const f=i?.wrappingWidth;e.width=Math.max(d,f??0);const{shapeSvg:p,bbox:g,label:m}=await h(t,e,"icon-shape default");const y=e.pos==="t";const b=d;const x=d;const{nodeBorder:C}=r;const{stylesMap:v}=A(e);const k=-x/2;const w=-b/2;const S=e.label?8:0;const T=c.A.svg(p);const B=M(e,{stroke:"none",fill:"none"});if(e.look!=="handDrawn"){B.roughness=0;B.fillStyle="solid"}const _=T.rectangle(k,w,x,b,B);const F=Math.max(x,g.width);const $=b+g.height+S;const E=T.rectangle(-F/2,-$/2,F,$,{...B,fill:"transparent",stroke:"none"});const O=p.insert((()=>_),":first-child");const D=p.insert((()=>E));if(e.icon){const t=p.append("g");t.html(`${await(0,a.WY)(e.icon,{height:d,width:d,fallbackPrefix:""})}`);const r=t.node().getBBox();const i=r.width;const n=r.height;const o=r.x;const s=r.y;t.attr("transform",`translate(${-i/2-o},${y?g.height/2+S/2-n/2-s:-g.height/2-S/2-n/2-s})`);t.attr("style",`color: ${v.get("stroke")??C};`)}m.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${y?-$/2:$/2-g.height})`);O.attr("transform",`translate(${0},${y?g.height/2+S/2:-g.height/2-S/2})`);u(e,D);e.intersect=function(t){s.Rm.info("iconSquare intersect",e,t);if(!e.label){return Z.rect(e,t)}const r=e.x??0;const i=e.y??0;const a=e.height??0;let n=[];if(y){n=[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+S},{x:r+x/2,y:i-a/2+g.height+S},{x:r+x/2,y:i+a/2},{x:r-x/2,y:i+a/2},{x:r-x/2,y:i-a/2+g.height+S},{x:r-g.width/2,y:i-a/2+g.height+S}]}else{n=[{x:r-x/2,y:i-a/2},{x:r+x/2,y:i-a/2},{x:r+x/2,y:i-a/2+b},{x:r+g.width/2,y:i-a/2+b},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+b},{x:r-x/2,y:i-a/2+b}]}const o=Z.polygon(e,n,t);return o};return p}(0,s.K2)(Bt,"icon");async function Lt(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=L(e);e.labelStyle=n;const o=e.assetHeight??48;const l=e.assetWidth??48;const d=Math.max(o,l);const f=i?.wrappingWidth;e.width=Math.max(d,f??0);const{shapeSvg:p,bbox:g,label:m}=await h(t,e,"icon-shape default");const y=20;const b=e.label?8:0;const x=e.pos==="t";const{nodeBorder:C,mainBkg:v}=r;const{stylesMap:k}=A(e);const w=c.A.svg(p);const S=M(e,{});if(e.look!=="handDrawn"){S.roughness=0;S.fillStyle="solid"}const T=k.get("fill");S.stroke=T??v;const B=p.append("g");if(e.icon){B.html(`${await(0,a.WY)(e.icon,{height:d,width:d,fallbackPrefix:""})}`)}const _=B.node().getBBox();const F=_.width;const $=_.height;const E=_.x;const O=_.y;const D=Math.max(F,$)*Math.SQRT2+y*2;const I=w.circle(0,0,D,S);const K=Math.max(D,g.width);const R=D+g.height+b;const P=w.rectangle(-K/2,-R/2,K,R,{...S,fill:"transparent",stroke:"none"});const z=p.insert((()=>I),":first-child");const q=p.insert((()=>P));B.attr("transform",`translate(${-F/2-E},${x?g.height/2+b/2-$/2-O:-g.height/2-b/2-$/2-O})`);B.attr("style",`color: ${k.get("stroke")??C};`);m.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${x?-R/2:R/2-g.height})`);z.attr("transform",`translate(${0},${x?g.height/2+b/2:-g.height/2-b/2})`);u(e,q);e.intersect=function(t){s.Rm.info("iconSquare intersect",e,t);const r=Z.rect(e,t);return r};return p}(0,s.K2)(Lt,"iconCircle");async function Mt(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=L(e);e.labelStyle=n;const o=e.assetHeight??48;const l=e.assetWidth??48;const d=Math.max(o,l);const f=i?.wrappingWidth;e.width=Math.max(d,f??0);const{shapeSvg:p,bbox:g,halfPadding:m,label:y}=await h(t,e,"icon-shape default");const b=e.pos==="t";const x=d+m*2;const C=d+m*2;const{nodeBorder:v,mainBkg:k}=r;const{stylesMap:S}=A(e);const T=-C/2;const B=-x/2;const _=e.label?8:0;const F=c.A.svg(p);const $=M(e,{});if(e.look!=="handDrawn"){$.roughness=0;$.fillStyle="solid"}const E=S.get("fill");$.stroke=E??k;const O=F.path(w(T,B,C,x,5),$);const D=Math.max(C,g.width);const I=x+g.height+_;const K=F.rectangle(-D/2,-I/2,D,I,{...$,fill:"transparent",stroke:"none"});const R=p.insert((()=>O),":first-child").attr("class","icon-shape2");const P=p.insert((()=>K));if(e.icon){const t=p.append("g");t.html(`${await(0,a.WY)(e.icon,{height:d,width:d,fallbackPrefix:""})}`);const r=t.node().getBBox();const i=r.width;const n=r.height;const o=r.x;const s=r.y;t.attr("transform",`translate(${-i/2-o},${b?g.height/2+_/2-n/2-s:-g.height/2-_/2-n/2-s})`);t.attr("style",`color: ${S.get("stroke")??v};`)}y.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${b?-I/2:I/2-g.height})`);R.attr("transform",`translate(${0},${b?g.height/2+_/2:-g.height/2-_/2})`);u(e,P);e.intersect=function(t){s.Rm.info("iconSquare intersect",e,t);if(!e.label){return Z.rect(e,t)}const r=e.x??0;const i=e.y??0;const a=e.height??0;let n=[];if(b){n=[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+_},{x:r+C/2,y:i-a/2+g.height+_},{x:r+C/2,y:i+a/2},{x:r-C/2,y:i+a/2},{x:r-C/2,y:i-a/2+g.height+_},{x:r-g.width/2,y:i-a/2+g.height+_}]}else{n=[{x:r-C/2,y:i-a/2},{x:r+C/2,y:i-a/2},{x:r+C/2,y:i-a/2+x},{x:r+g.width/2,y:i-a/2+x},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+x},{x:r-C/2,y:i-a/2+x}]}const o=Z.polygon(e,n,t);return o};return p}(0,s.K2)(Mt,"iconRounded");async function _t(t,e,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=L(e);e.labelStyle=n;const o=e.assetHeight??48;const l=e.assetWidth??48;const d=Math.max(o,l);const f=i?.wrappingWidth;e.width=Math.max(d,f??0);const{shapeSvg:p,bbox:g,halfPadding:m,label:y}=await h(t,e,"icon-shape default");const b=e.pos==="t";const x=d+m*2;const C=d+m*2;const{nodeBorder:v,mainBkg:k}=r;const{stylesMap:S}=A(e);const T=-C/2;const B=-x/2;const _=e.label?8:0;const F=c.A.svg(p);const $=M(e,{});if(e.look!=="handDrawn"){$.roughness=0;$.fillStyle="solid"}const E=S.get("fill");$.stroke=E??k;const O=F.path(w(T,B,C,x,.1),$);const D=Math.max(C,g.width);const I=x+g.height+_;const K=F.rectangle(-D/2,-I/2,D,I,{...$,fill:"transparent",stroke:"none"});const R=p.insert((()=>O),":first-child");const P=p.insert((()=>K));if(e.icon){const t=p.append("g");t.html(`${await(0,a.WY)(e.icon,{height:d,width:d,fallbackPrefix:""})}`);const r=t.node().getBBox();const i=r.width;const n=r.height;const o=r.x;const s=r.y;t.attr("transform",`translate(${-i/2-o},${b?g.height/2+_/2-n/2-s:-g.height/2-_/2-n/2-s})`);t.attr("style",`color: ${S.get("stroke")??v};`)}y.attr("transform",`translate(${-g.width/2-(g.x-(g.left??0))},${b?-I/2:I/2-g.height})`);R.attr("transform",`translate(${0},${b?g.height/2+_/2:-g.height/2-_/2})`);u(e,P);e.intersect=function(t){s.Rm.info("iconSquare intersect",e,t);if(!e.label){return Z.rect(e,t)}const r=e.x??0;const i=e.y??0;const a=e.height??0;let n=[];if(b){n=[{x:r-g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2},{x:r+g.width/2,y:i-a/2+g.height+_},{x:r+C/2,y:i-a/2+g.height+_},{x:r+C/2,y:i+a/2},{x:r-C/2,y:i+a/2},{x:r-C/2,y:i-a/2+g.height+_},{x:r-g.width/2,y:i-a/2+g.height+_}]}else{n=[{x:r-C/2,y:i-a/2},{x:r+C/2,y:i-a/2},{x:r+C/2,y:i-a/2+x},{x:r+g.width/2,y:i-a/2+x},{x:r+g.width/2/2,y:i+a/2},{x:r-g.width/2,y:i+a/2},{x:r-g.width/2,y:i-a/2+x},{x:r-C/2,y:i-a/2+x}]}const o=Z.polygon(e,n,t);return o};return p}(0,s.K2)(_t,"iconSquare");async function Ft(t,e,{config:{flowchart:r}}){const i=new Image;i.src=e?.img??"";await i.decode();const a=Number(i.naturalWidth.toString().replace("px",""));const n=Number(i.naturalHeight.toString().replace("px",""));e.imageAspectRatio=a/n;const{labelStyles:o}=L(e);e.labelStyle=o;const l=r?.wrappingWidth;e.defaultWidth=r?.wrappingWidth;const d=Math.max(e.label?l??0:0,e?.assetWidth??a);const f=e.constraint==="on"?e?.assetHeight?e.assetHeight*e.imageAspectRatio:d:d;const p=e.constraint==="on"?f/e.imageAspectRatio:e?.assetHeight??n;e.width=Math.max(f,l??0);const{shapeSvg:g,bbox:m,label:y}=await h(t,e,"image-shape default");const b=e.pos==="t";const x=-f/2;const C=-p/2;const v=e.label?8:0;const k=c.A.svg(g);const w=M(e,{});if(e.look!=="handDrawn"){w.roughness=0;w.fillStyle="solid"}const S=k.rectangle(x,C,f,p,w);const A=Math.max(f,m.width);const T=p+m.height+v;const B=k.rectangle(-A/2,-T/2,A,T,{...w,fill:"none",stroke:"none"});const _=g.insert((()=>S),":first-child");const F=g.insert((()=>B));if(e.img){const t=g.append("image");t.attr("href",e.img);t.attr("width",f);t.attr("height",p);t.attr("preserveAspectRatio","none");t.attr("transform",`translate(${-f/2},${b?T/2-p:-T/2})`)}y.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${b?-p/2-m.height/2-v/2:p/2-m.height/2+v/2})`);_.attr("transform",`translate(${0},${b?m.height/2+v/2:-m.height/2-v/2})`);u(e,F);e.intersect=function(t){s.Rm.info("iconSquare intersect",e,t);if(!e.label){return Z.rect(e,t)}const r=e.x??0;const i=e.y??0;const a=e.height??0;let n=[];if(b){n=[{x:r-m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2},{x:r+m.width/2,y:i-a/2+m.height+v},{x:r+f/2,y:i-a/2+m.height+v},{x:r+f/2,y:i+a/2},{x:r-f/2,y:i+a/2},{x:r-f/2,y:i-a/2+m.height+v},{x:r-m.width/2,y:i-a/2+m.height+v}]}else{n=[{x:r-f/2,y:i-a/2},{x:r+f/2,y:i-a/2},{x:r+f/2,y:i-a/2+p},{x:r+m.width/2,y:i-a/2+p},{x:r+m.width/2/2,y:i+a/2},{x:r-m.width/2,y:i+a/2},{x:r-m.width/2,y:i-a/2+p},{x:r-f/2,y:i-a/2+p}]}const o=Z.polygon(e,n,t);return o};return g}(0,s.K2)(Ft,"imageSquare");async function $t(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n}=await h(t,e,f(e));const o=Math.max(n.width+(e.padding??0)*2,e?.width??0);const s=Math.max(n.height+(e.padding??0)*2,e?.height??0);const l=[{x:0,y:0},{x:o,y:0},{x:o+3*s/6,y:-s},{x:-3*s/6,y:-s}];let d;const{cssStyles:g}=e;if(e.look==="handDrawn"){const t=c.A.svg(a);const r=M(e,{});const i=p(l);const n=t.path(i,r);d=a.insert((()=>n),":first-child").attr("transform",`translate(${-o/2}, ${s/2})`);if(g){d.attr("style",g)}}else{d=et(a,o,s,l)}if(i){d.attr("style",i)}e.width=o;e.height=s;u(e,d);e.intersect=function(t){return Z.polygon(e,l,t)};return a}(0,s.K2)($t,"inv_trapezoid");async function Et(t,e,r){const{labelStyles:i,nodeStyles:a}=L(e);e.labelStyle=i;const{shapeSvg:n,bbox:s}=await h(t,e,f(e));const l=Math.max(s.width+r.labelPaddingX*2,e?.width||0);const d=Math.max(s.height+r.labelPaddingY*2,e?.height||0);const p=-l/2;const g=-d/2;let m;let{rx:y,ry:b}=e;const{cssStyles:x}=e;if(r?.rx&&r.ry){y=r.rx;b=r.ry}if(e.look==="handDrawn"){const t=c.A.svg(n);const r=M(e,{});const i=y||b?t.path(w(p,g,l,d,y||0),r):t.rectangle(p,g,l,d,r);m=n.insert((()=>i),":first-child");m.attr("class","basic label-container").attr("style",(0,o.KL)(x))}else{m=n.insert("rect",":first-child");m.attr("class","basic label-container").attr("style",a).attr("rx",(0,o.KL)(y)).attr("ry",(0,o.KL)(b)).attr("x",p).attr("y",g).attr("width",l).attr("height",d)}u(e,m);e.intersect=function(t){return Z.rect(e,t)};return n}(0,s.K2)(Et,"drawRect");async function Ot(t,e){const{shapeSvg:r,bbox:i,label:a}=await h(t,e,"label");const n=r.insert("rect",":first-child");const o=.1;const s=.1;n.attr("width",o).attr("height",s);r.attr("class","label edgeLabel");a.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`);u(e,n);e.intersect=function(t){return Z.rect(e,t)};return r}(0,s.K2)(Ot,"labelRect");async function Dt(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n}=await h(t,e,f(e));const o=Math.max(n.width+(e.padding??0),e?.width??0);const s=Math.max(n.height+(e.padding??0),e?.height??0);const l=[{x:0,y:0},{x:o+3*s/6,y:0},{x:o,y:-s},{x:-(3*s)/6,y:-s}];let d;const{cssStyles:g}=e;if(e.look==="handDrawn"){const t=c.A.svg(a);const r=M(e,{});const i=p(l);const n=t.path(i,r);d=a.insert((()=>n),":first-child").attr("transform",`translate(${-o/2}, ${s/2})`);if(g){d.attr("style",g)}}else{d=et(a,o,s,l)}if(i){d.attr("style",i)}e.width=o;e.height=s;u(e,d);e.intersect=function(t){return Z.polygon(e,l,t)};return a}(0,s.K2)(Dt,"lean_left");async function It(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n}=await h(t,e,f(e));const o=Math.max(n.width+(e.padding??0),e?.width??0);const s=Math.max(n.height+(e.padding??0),e?.height??0);const l=[{x:-3*s/6,y:0},{x:o,y:0},{x:o+3*s/6,y:-s},{x:0,y:-s}];let d;const{cssStyles:g}=e;if(e.look==="handDrawn"){const t=c.A.svg(a);const r=M(e,{});const i=p(l);const n=t.path(i,r);d=a.insert((()=>n),":first-child").attr("transform",`translate(${-o/2}, ${s/2})`);if(g){d.attr("style",g)}}else{d=et(a,o,s,l)}if(i){d.attr("style",i)}e.width=o;e.height=s;u(e,d);e.intersect=function(t){return Z.polygon(e,l,t)};return a}(0,s.K2)(It,"lean_right");function Kt(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.label="";e.labelStyle=r;const a=t.insert("g").attr("class",f(e)).attr("id",e.domId??e.id);const{cssStyles:n}=e;const o=Math.max(35,e?.width??0);const l=Math.max(35,e?.height??0);const h=7;const d=[{x:o,y:0},{x:0,y:l+h/2},{x:o-2*h,y:l+h/2},{x:0,y:2*l},{x:o,y:l-h/2},{x:2*h,y:l-h/2}];const g=c.A.svg(a);const m=M(e,{});if(e.look!=="handDrawn"){m.roughness=0;m.fillStyle="solid"}const y=p(d);const b=g.path(y,m);const x=a.insert((()=>b),":first-child");if(n&&e.look!=="handDrawn"){x.selectAll("path").attr("style",n)}if(i&&e.look!=="handDrawn"){x.selectAll("path").attr("style",i)}x.attr("transform",`translate(-${o/2},${-l})`);u(e,x);e.intersect=function(t){s.Rm.info("lightningBolt intersect",e,t);const r=Z.polygon(e,d,t);return r};return a}(0,s.K2)(Kt,"lightningBolt");var Rt=(0,s.K2)(((t,e,r,i,a,n,o)=>[`M${t},${e+n}`,`a${a},${n} 0,0,0 ${r},0`,`a${a},${n} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${n} 0,0,0 ${r},0`,`l0,${-i}`,`M${t},${e+n+o}`,`a${a},${n} 0,0,0 ${r},0`].join(" ")),"createCylinderPathD");var Pt=(0,s.K2)(((t,e,r,i,a,n,o)=>[`M${t},${e+n}`,`M${t+r},${e+n}`,`a${a},${n} 0,0,0 ${-r},0`,`l0,${i}`,`a${a},${n} 0,0,0 ${r},0`,`l0,${-i}`,`M${t},${e+n+o}`,`a${a},${n} 0,0,0 ${r},0`].join(" ")),"createOuterCylinderPathD");var zt=(0,s.K2)(((t,e,r,i,a,n)=>[`M${t-r/2},${-i/2}`,`a${a},${n} 0,0,0 ${r},0`].join(" ")),"createInnerCylinderPathD");async function qt(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await h(t,e,f(e));const l=Math.max(n.width+(e.padding??0),e.width??0);const d=l/2;const p=d/(2.5+l/50);const g=Math.max(n.height+p+(e.padding??0),e.height??0);const m=g*.1;let y;const{cssStyles:b}=e;if(e.look==="handDrawn"){const t=c.A.svg(a);const r=Pt(0,0,l,g,d,p,m);const i=zt(0,p,l,g,d,p);const n=M(e,{});const o=t.path(r,n);const s=t.path(i,n);const h=a.insert((()=>s),":first-child");h.attr("class","line");y=a.insert((()=>o),":first-child");y.attr("class","basic label-container");if(b){y.attr("style",b)}}else{const t=Rt(0,0,l,g,d,p,m);y=a.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,o.KL)(b)).attr("style",i)}y.attr("label-offset-y",p);y.attr("transform",`translate(${-l/2}, ${-(g/2+p)})`);u(e,y);s.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)+p-(n.y-(n.top??0))})`);e.intersect=function(t){const r=Z.rect(e,t);const i=r.x-(e.x??0);if(d!=0&&(Math.abs(i)<(e.width??0)/2||Math.abs(i)==(e.width??0)/2&&Math.abs(r.y-(e.y??0))>(e.height??0)/2-p)){let a=p*p*(1-i*i/(d*d));if(a>0){a=Math.sqrt(a)}a=p-a;if(t.y-(e.y??0)>0){a=-a}r.y+=a}return r};return a}(0,s.K2)(qt,"linedCylinder");async function Nt(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,label:o}=await h(t,e,f(e));const s=Math.max(n.width+(e.padding??0)*2,e?.width??0);const l=Math.max(n.height+(e.padding??0)*2,e?.height??0);const d=l/4;const p=l+d;const{cssStyles:m}=e;const y=c.A.svg(a);const b=M(e,{});if(e.look!=="handDrawn"){b.roughness=0;b.fillStyle="solid"}const x=[{x:-s/2-s/2*.1,y:-p/2},{x:-s/2-s/2*.1,y:p/2},...g(-s/2-s/2*.1,p/2,s/2+s/2*.1,p/2,d,.8),{x:s/2+s/2*.1,y:-p/2},{x:-s/2-s/2*.1,y:-p/2},{x:-s/2,y:-p/2},{x:-s/2,y:p/2*1.1},{x:-s/2,y:-p/2}];const C=y.polygon(x.map((t=>[t.x,t.y])),b);const v=a.insert((()=>C),":first-child");v.attr("class","basic label-container");if(m&&e.look!=="handDrawn"){v.selectAll("path").attr("style",m)}if(i&&e.look!=="handDrawn"){v.selectAll("path").attr("style",i)}v.attr("transform",`translate(0,${-d/2})`);o.attr("transform",`translate(${-s/2+(e.padding??0)+s/2*.1/2-(n.x-(n.left??0))},${-l/2+(e.padding??0)-d/2-(n.y-(n.top??0))})`);u(e,v);e.intersect=function(t){const r=Z.polygon(e,x,t);return r};return a}(0,s.K2)(Nt,"linedWaveEdgedRect");async function Wt(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,label:o}=await h(t,e,f(e));const s=Math.max(n.width+(e.padding??0)*2,e?.width??0);const l=Math.max(n.height+(e.padding??0)*2,e?.height??0);const d=5;const g=-s/2;const m=-l/2;const{cssStyles:y}=e;const b=c.A.svg(a);const x=M(e,{});const C=[{x:g-d,y:m+d},{x:g-d,y:m+l+d},{x:g+s-d,y:m+l+d},{x:g+s-d,y:m+l},{x:g+s,y:m+l},{x:g+s,y:m+l-d},{x:g+s+d,y:m+l-d},{x:g+s+d,y:m-d},{x:g+d,y:m-d},{x:g+d,y:m},{x:g,y:m},{x:g,y:m+d}];const v=[{x:g,y:m+d},{x:g+s-d,y:m+d},{x:g+s-d,y:m+l},{x:g+s,y:m+l},{x:g+s,y:m},{x:g,y:m}];if(e.look!=="handDrawn"){x.roughness=0;x.fillStyle="solid"}const k=p(C);const w=b.path(k,x);const S=p(v);const A=b.path(S,{...x,fill:"none"});const T=a.insert((()=>A),":first-child");T.insert((()=>w),":first-child");T.attr("class","basic label-container");if(y&&e.look!=="handDrawn"){T.selectAll("path").attr("style",y)}if(i&&e.look!=="handDrawn"){T.selectAll("path").attr("style",i)}o.attr("transform",`translate(${-(n.width/2)-d-(n.x-(n.left??0))}, ${-(n.height/2)+d-(n.y-(n.top??0))})`);u(e,T);e.intersect=function(t){const r=Z.polygon(e,C,t);return r};return a}(0,s.K2)(Wt,"multiRect");async function jt(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,label:o}=await h(t,e,f(e));const s=Math.max(n.width+(e.padding??0)*2,e?.width??0);const l=Math.max(n.height+(e.padding??0)*2,e?.height??0);const d=l/4;const m=l+d;const y=-s/2;const b=-m/2;const x=5;const{cssStyles:C}=e;const v=g(y-x,b+m+x,y+s-x,b+m+x,d,.8);const k=v?.[v.length-1];const w=[{x:y-x,y:b+x},{x:y-x,y:b+m+x},...v,{x:y+s-x,y:k.y-x},{x:y+s,y:k.y-x},{x:y+s,y:k.y-2*x},{x:y+s+x,y:k.y-2*x},{x:y+s+x,y:b-x},{x:y+x,y:b-x},{x:y+x,y:b},{x:y,y:b},{x:y,y:b+x}];const S=[{x:y,y:b+x},{x:y+s-x,y:b+x},{x:y+s-x,y:k.y-x},{x:y+s,y:k.y-x},{x:y+s,y:b},{x:y,y:b}];const A=c.A.svg(a);const T=M(e,{});if(e.look!=="handDrawn"){T.roughness=0;T.fillStyle="solid"}const B=p(w);const _=A.path(B,T);const F=p(S);const $=A.path(F,T);const E=a.insert((()=>_),":first-child");E.insert((()=>$));E.attr("class","basic label-container");if(C&&e.look!=="handDrawn"){E.selectAll("path").attr("style",C)}if(i&&e.look!=="handDrawn"){E.selectAll("path").attr("style",i)}E.attr("transform",`translate(0,${-d/2})`);o.attr("transform",`translate(${-(n.width/2)-x-(n.x-(n.left??0))}, ${-(n.height/2)+x-d/2-(n.y-(n.top??0))})`);u(e,E);e.intersect=function(t){const r=Z.polygon(e,w,t);return r};return a}(0,s.K2)(jt,"multiWaveEdgedRectangle");async function Ht(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:a}=L(e);e.labelStyle=i;const n=e.useHtmlLabels||(0,s.zj)().flowchart?.htmlLabels!==false;if(!n){e.centerLabel=true}const{shapeSvg:o,bbox:l}=await h(t,e,f(e));const d=Math.max(l.width+(e.padding??0)*2,e?.width??0);const p=Math.max(l.height+(e.padding??0)*2,e?.height??0);const g=-d/2;const m=-p/2;const{cssStyles:y}=e;const b=c.A.svg(o);const x=M(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});if(e.look!=="handDrawn"){x.roughness=0;x.fillStyle="solid"}const C=b.rectangle(g,m,d,p,x);const v=o.insert((()=>C),":first-child");v.attr("class","basic label-container");if(y&&e.look!=="handDrawn"){v.selectAll("path").attr("style",y)}if(a&&e.look!=="handDrawn"){v.selectAll("path").attr("style",a)}u(e,v);e.intersect=function(t){return Z.rect(e,t)};return o}(0,s.K2)(Ht,"note");var Yt=(0,s.K2)(((t,e,r)=>[`M${t+r/2},${e}`,`L${t+r},${e-r/2}`,`L${t+r/2},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" ")),"createDecisionBoxPathD");async function Ut(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n}=await h(t,e,f(e));const o=n.width+e.padding;const l=n.height+e.padding;const d=o+l;const p=[{x:d/2,y:0},{x:d,y:-d/2},{x:d/2,y:-d},{x:0,y:-d/2}];let g;const{cssStyles:m}=e;if(e.look==="handDrawn"){const t=c.A.svg(a);const r=M(e,{});const i=Yt(0,0,d);const n=t.path(i,r);g=a.insert((()=>n),":first-child").attr("transform",`translate(${-d/2}, ${d/2})`);if(m){g.attr("style",m)}}else{g=et(a,d,d,p)}if(i){g.attr("style",i)}u(e,g);e.intersect=function(t){s.Rm.debug("APA12 Intersect called SPLIT\npoint:",t,"\nnode:\n",e,"\nres:",Z.polygon(e,p,t));return Z.polygon(e,p,t)};return a}(0,s.K2)(Ut,"question");async function Gt(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,label:o}=await h(t,e,f(e));const s=Math.max(n.width+(e.padding??0),e?.width??0);const l=Math.max(n.height+(e.padding??0),e?.height??0);const d=-s/2;const g=-l/2;const m=g/2;const y=[{x:d+m,y:g},{x:d,y:0},{x:d+m,y:-g},{x:-d,y:-g},{x:-d,y:g}];const{cssStyles:b}=e;const x=c.A.svg(a);const C=M(e,{});if(e.look!=="handDrawn"){C.roughness=0;C.fillStyle="solid"}const v=p(y);const k=x.path(v,C);const w=a.insert((()=>k),":first-child");w.attr("class","basic label-container");if(b&&e.look!=="handDrawn"){w.selectAll("path").attr("style",b)}if(i&&e.look!=="handDrawn"){w.selectAll("path").attr("style",i)}w.attr("transform",`translate(${-m/2},0)`);o.attr("transform",`translate(${-m/2-n.width/2-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`);u(e,w);e.intersect=function(t){return Z.polygon(e,y,t)};return a}(0,s.K2)(Gt,"rect_left_inv_arrow");async function Vt(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;let a;if(!e.cssClasses){a="node default"}else{a="node "+e.cssClasses}const n=t.insert("g").attr("class",a).attr("id",e.domId||e.id);const o=n.insert("g");const h=n.insert("g").attr("class","label").attr("style",i);const d=e.description;const f=e.label;const p=h.node().appendChild(await k(f,e.labelStyle,true,true));let g={width:0,height:0};if((0,s._3)((0,s.D7)()?.flowchart?.htmlLabels)){const t=p.children[0];const e=(0,l.Ltv)(p);g=t.getBoundingClientRect();e.attr("width",g.width);e.attr("height",g.height)}s.Rm.info("Text 2",d);const m=d||[];const y=p.getBBox();const b=h.node().appendChild(await k(m.join?m.join("
"):m,e.labelStyle,true,true));const x=b.children[0];const C=(0,l.Ltv)(b);g=x.getBoundingClientRect();C.attr("width",g.width);C.attr("height",g.height);const v=(e.padding||0)/2;(0,l.Ltv)(b).attr("transform","translate( "+(g.width>y.width?0:(y.width-g.width)/2)+", "+(y.height+v+5)+")");(0,l.Ltv)(p).attr("transform","translate( "+(g.width{s.Rm.debug("Rough node insert CXC",i);return a}),":first-child");_=n.insert((()=>{s.Rm.debug("Rough node insert CXC",i);return i}),":first-child")}else{_=o.insert("rect",":first-child");F=o.insert("line");_.attr("class","outer title-state").attr("style",i).attr("x",-g.width/2-v).attr("y",-g.height/2-v).attr("width",g.width+(e.padding||0)).attr("height",g.height+(e.padding||0));F.attr("class","divider").attr("x1",-g.width/2-v).attr("x2",g.width/2+v).attr("y1",-g.height/2-v+y.height+v).attr("y2",-g.height/2-v+y.height+v)}u(e,_);e.intersect=function(t){return Z.rect(e,t)};return n}(0,s.K2)(Vt,"rectWithTitle");async function Xt(t,e){const r={rx:5,ry:5,classes:"",labelPaddingX:(e?.padding||0)*1,labelPaddingY:(e?.padding||0)*1};return Et(t,e,r)}(0,s.K2)(Xt,"roundedRect");async function Zt(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,label:s}=await h(t,e,f(e));const l=e?.padding??0;const d=Math.max(n.width+(e.padding??0)*2,e?.width??0);const p=Math.max(n.height+(e.padding??0)*2,e?.height??0);const g=-n.width/2-l;const m=-n.height/2-l;const{cssStyles:y}=e;const b=c.A.svg(a);const x=M(e,{});if(e.look!=="handDrawn"){x.roughness=0;x.fillStyle="solid"}const C=[{x:g,y:m},{x:g+d+8,y:m},{x:g+d+8,y:m+p},{x:g-8,y:m+p},{x:g-8,y:m},{x:g,y:m},{x:g,y:m+p}];const v=b.polygon(C.map((t=>[t.x,t.y])),x);const k=a.insert((()=>v),":first-child");k.attr("class","basic label-container").attr("style",(0,o.KL)(y));if(i&&e.look!=="handDrawn"){k.selectAll("path").attr("style",i)}if(y&&e.look!=="handDrawn"){k.selectAll("path").attr("style",i)}s.attr("transform",`translate(${-d/2+4+(e.padding??0)-(n.x-(n.left??0))},${-p/2+(e.padding??0)-(n.y-(n.top??0))})`);u(e,k);e.intersect=function(t){return Z.rect(e,t)};return a}(0,s.K2)(Zt,"shadedProcess");async function Jt(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,label:o}=await h(t,e,f(e));const s=Math.max(n.width+(e.padding??0)*2,e?.width??0);const l=Math.max(n.height+(e.padding??0)*2,e?.height??0);const d=-s/2;const g=-l/2;const{cssStyles:m}=e;const y=c.A.svg(a);const b=M(e,{});if(e.look!=="handDrawn"){b.roughness=0;b.fillStyle="solid"}const x=[{x:d,y:g},{x:d,y:g+l},{x:d+s,y:g+l},{x:d+s,y:g-l/2}];const C=p(x);const v=y.path(C,b);const k=a.insert((()=>v),":first-child");k.attr("class","basic label-container");if(m&&e.look!=="handDrawn"){k.selectChildren("path").attr("style",m)}if(i&&e.look!=="handDrawn"){k.selectChildren("path").attr("style",i)}k.attr("transform",`translate(0, ${l/4})`);o.attr("transform",`translate(${-s/2+(e.padding??0)-(n.x-(n.left??0))}, ${-l/4+(e.padding??0)-(n.y-(n.top??0))})`);u(e,k);e.intersect=function(t){const r=Z.polygon(e,x,t);return r};return a}(0,s.K2)(Jt,"slopedRect");async function Qt(t,e){const r={rx:0,ry:0,classes:"",labelPaddingX:(e?.padding||0)*2,labelPaddingY:(e?.padding||0)*1};return Et(t,e,r)}(0,s.K2)(Qt,"squareRect");async function te(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n}=await h(t,e,f(e));const s=n.height+e.padding;const l=n.width+s/4+e.padding;let d;const{cssStyles:p}=e;if(e.look==="handDrawn"){const t=c.A.svg(a);const r=M(e,{});const i=w(-l/2,-s/2,l,s,s/2);const n=t.path(i,r);d=a.insert((()=>n),":first-child");d.attr("class","basic label-container").attr("style",(0,o.KL)(p))}else{d=a.insert("rect",":first-child");d.attr("class","basic label-container").attr("style",i).attr("rx",s/2).attr("ry",s/2).attr("x",-l/2).attr("y",-s/2).attr("width",l).attr("height",s)}u(e,d);e.intersect=function(t){return Z.rect(e,t)};return a}(0,s.K2)(te,"stadium");async function ee(t,e){const r={rx:5,ry:5,classes:"flowchart-node"};return Et(t,e,r)}(0,s.K2)(ee,"state");function re(t,e,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:a}=L(e);e.labelStyle=i;const{cssStyles:n}=e;const{lineColor:o,stateBorder:s,nodeBorder:l}=r;const h=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);const d=c.A.svg(h);const f=M(e,{});if(e.look!=="handDrawn"){f.roughness=0;f.fillStyle="solid"}const p=d.circle(0,0,14,{...f,stroke:o,strokeWidth:2});const g=s??l;const m=d.circle(0,0,5,{...f,fill:g,stroke:g,strokeWidth:2,fillStyle:"solid"});const y=h.insert((()=>p),":first-child");y.insert((()=>m));if(n){y.selectAll("path").attr("style",n)}if(a){y.selectAll("path").attr("style",a)}u(e,y);e.intersect=function(t){return Z.circle(e,7,t)};return h}(0,s.K2)(re,"stateEnd");function ie(t,e,{config:{themeVariables:r}}){const{lineColor:i}=r;const a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let n;if(e.look==="handDrawn"){const t=c.A.svg(a);const e=t.circle(0,0,14,S(i));n=a.insert((()=>e));n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else{n=a.insert("circle",":first-child");n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}u(e,n);e.intersect=function(t){return Z.circle(e,7,t)};return a}(0,s.K2)(ie,"stateStart");async function ae(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n}=await h(t,e,f(e));const s=(e?.padding||0)/2;const l=n.width+e.padding;const d=n.height+e.padding;const p=-n.width/2-s;const g=-n.height/2-s;const m=[{x:0,y:0},{x:l,y:0},{x:l,y:-d},{x:0,y:-d},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-d},{x:-8,y:-d},{x:-8,y:0}];if(e.look==="handDrawn"){const t=c.A.svg(a);const r=M(e,{});const i=t.rectangle(p-8,g,l+16,d,r);const n=t.line(p,g,p,g+d,r);const s=t.line(p+l,g,p+l,g+d,r);a.insert((()=>n),":first-child");a.insert((()=>s),":first-child");const h=a.insert((()=>i),":first-child");const{cssStyles:f}=e;h.attr("class","basic label-container").attr("style",(0,o.KL)(f));u(e,h)}else{const t=et(a,l,d,m);if(i){t.attr("style",i)}u(e,t)}e.intersect=function(t){return Z.polygon(e,m,t)};return a}(0,s.K2)(ae,"subroutine");async function ne(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n}=await h(t,e,f(e));const o=Math.max(n.width+(e.padding??0)*2,e?.width??0);const s=Math.max(n.height+(e.padding??0)*2,e?.height??0);const l=-o/2;const d=-s/2;const g=.2*s;const m=.2*s;const{cssStyles:y}=e;const b=c.A.svg(a);const x=M(e,{});const C=[{x:l-g/2,y:d},{x:l+o+g/2,y:d},{x:l+o+g/2,y:d+s},{x:l-g/2,y:d+s}];const v=[{x:l+o-g/2,y:d+s},{x:l+o+g/2,y:d+s},{x:l+o+g/2,y:d+s-m}];if(e.look!=="handDrawn"){x.roughness=0;x.fillStyle="solid"}const k=p(C);const w=b.path(k,x);const S=p(v);const A=b.path(S,{...x,fillStyle:"solid"});const T=a.insert((()=>A),":first-child");T.insert((()=>w),":first-child");T.attr("class","basic label-container");if(y&&e.look!=="handDrawn"){T.selectAll("path").attr("style",y)}if(i&&e.look!=="handDrawn"){T.selectAll("path").attr("style",i)}u(e,T);e.intersect=function(t){const r=Z.polygon(e,C,t);return r};return a}(0,s.K2)(ne,"taggedRect");async function oe(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,label:o}=await h(t,e,f(e));const s=Math.max(n.width+(e.padding??0)*2,e?.width??0);const l=Math.max(n.height+(e.padding??0)*2,e?.height??0);const d=l/4;const m=.2*s;const y=.2*l;const b=l+d;const{cssStyles:x}=e;const C=c.A.svg(a);const v=M(e,{});if(e.look!=="handDrawn"){v.roughness=0;v.fillStyle="solid"}const k=[{x:-s/2-s/2*.1,y:b/2},...g(-s/2-s/2*.1,b/2,s/2+s/2*.1,b/2,d,.8),{x:s/2+s/2*.1,y:-b/2},{x:-s/2-s/2*.1,y:-b/2}];const w=-s/2+s/2*.1;const S=-b/2-y*.4;const A=[{x:w+s-m,y:(S+l)*1.4},{x:w+s,y:S+l-y},{x:w+s,y:(S+l)*.9},...g(w+s,(S+l)*1.3,w+s-m,(S+l)*1.5,-l*.03,.5)];const T=p(k);const B=C.path(T,v);const _=p(A);const F=C.path(_,{...v,fillStyle:"solid"});const $=a.insert((()=>F),":first-child");$.insert((()=>B),":first-child");$.attr("class","basic label-container");if(x&&e.look!=="handDrawn"){$.selectAll("path").attr("style",x)}if(i&&e.look!=="handDrawn"){$.selectAll("path").attr("style",i)}$.attr("transform",`translate(0,${-d/2})`);o.attr("transform",`translate(${-s/2+(e.padding??0)-(n.x-(n.left??0))},${-l/2+(e.padding??0)-d/2-(n.y-(n.top??0))})`);u(e,$);e.intersect=function(t){const r=Z.polygon(e,k,t);return r};return a}(0,s.K2)(oe,"taggedWaveEdgedRectangle");async function se(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n}=await h(t,e,f(e));const o=Math.max(n.width+e.padding,e?.width||0);const s=Math.max(n.height+e.padding,e?.height||0);const l=-o/2;const c=-s/2;const d=a.insert("rect",":first-child");d.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",l).attr("y",c).attr("width",o).attr("height",s);u(e,d);e.intersect=function(t){return Z.rect(e,t)};return a}(0,s.K2)(se,"text");var le=(0,s.K2)(((t,e,r,i,a,n)=>`M${t},${e}\n a${a},${n} 0,0,1 ${0},${-i}\n l${r},${0}\n a${a},${n} 0,0,1 ${0},${i}\n M${r},${-i}\n a${a},${n} 0,0,0 ${0},${i}\n l${-r},${0}`),"createCylinderPathD");var ce=(0,s.K2)(((t,e,r,i,a,n)=>[`M${t},${e}`,`M${t+r},${e}`,`a${a},${n} 0,0,0 ${0},${-i}`,`l${-r},0`,`a${a},${n} 0,0,0 ${0},${i}`,`l${r},0`].join(" ")),"createOuterCylinderPathD");var he=(0,s.K2)(((t,e,r,i,a,n)=>[`M${t+r/2},${-i/2}`,`a${a},${n} 0,0,0 0,${i}`].join(" ")),"createInnerCylinderPathD");async function de(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,label:s,halfPadding:l}=await h(t,e,f(e));const d=e.look==="neo"?l*2:l;const p=n.height+d;const g=p/2;const m=g/(2.5+p/50);const y=n.width+m+d;const{cssStyles:b}=e;let x;if(e.look==="handDrawn"){const t=c.A.svg(a);const r=ce(0,0,y,p,m,g);const i=he(0,0,y,p,m,g);const n=t.path(r,M(e,{}));const o=t.path(i,M(e,{fill:"none"}));x=a.insert((()=>o),":first-child");x=a.insert((()=>n),":first-child");x.attr("class","basic label-container");if(b){x.attr("style",b)}}else{const t=le(0,0,y,p,m,g);x=a.insert("path",":first-child").attr("d",t).attr("class","basic label-container").attr("style",(0,o.KL)(b)).attr("style",i);x.attr("class","basic label-container");if(b){x.selectAll("path").attr("style",b)}if(i){x.selectAll("path").attr("style",i)}}x.attr("label-offset-x",m);x.attr("transform",`translate(${-y/2}, ${p/2} )`);s.attr("transform",`translate(${-(n.width/2)-m-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`);u(e,x);e.intersect=function(t){const r=Z.rect(e,t);const i=r.y-(e.y??0);if(g!=0&&(Math.abs(i)<(e.height??0)/2||Math.abs(i)==(e.height??0)/2&&Math.abs(r.x-(e.x??0))>(e.width??0)/2-m)){let a=m*m*(1-i*i/(g*g));if(a!=0){a=Math.sqrt(Math.abs(a))}a=m-a;if(t.x-(e.x??0)>0){a=-a}r.x+=a}return r};return a}(0,s.K2)(de,"tiltedCylinder");async function ue(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n}=await h(t,e,f(e));const o=n.width+e.padding;const s=n.height+e.padding;const l=[{x:-3*s/6,y:0},{x:o+3*s/6,y:0},{x:o,y:-s},{x:0,y:-s}];let d;const{cssStyles:g}=e;if(e.look==="handDrawn"){const t=c.A.svg(a);const r=M(e,{});const i=p(l);const n=t.path(i,r);d=a.insert((()=>n),":first-child").attr("transform",`translate(${-o/2}, ${s/2})`);if(g){d.attr("style",g)}}else{d=et(a,o,s,l)}if(i){d.attr("style",i)}e.width=o;e.height=s;u(e,d);e.intersect=function(t){return Z.polygon(e,l,t)};return a}(0,s.K2)(ue,"trapezoid");async function fe(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n}=await h(t,e,f(e));const o=60,s=20;const l=Math.max(o,n.width+(e.padding??0)*2,e?.width??0);const d=Math.max(s,n.height+(e.padding??0)*2,e?.height??0);const{cssStyles:g}=e;const m=c.A.svg(a);const y=M(e,{});if(e.look!=="handDrawn"){y.roughness=0;y.fillStyle="solid"}const b=[{x:-l/2*.8,y:-d/2},{x:l/2*.8,y:-d/2},{x:l/2,y:-d/2*.6},{x:l/2,y:d/2},{x:-l/2,y:d/2},{x:-l/2,y:-d/2*.6}];const x=p(b);const C=m.path(x,y);const v=a.insert((()=>C),":first-child");v.attr("class","basic label-container");if(g&&e.look!=="handDrawn"){v.selectChildren("path").attr("style",g)}if(i&&e.look!=="handDrawn"){v.selectChildren("path").attr("style",i)}u(e,v);e.intersect=function(t){const r=Z.polygon(e,b,t);return r};return a}(0,s.K2)(fe,"trapezoidalPentagon");async function pe(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,label:o}=await h(t,e,f(e));const l=(0,s._3)((0,s.D7)().flowchart?.htmlLabels);const d=n.width+(e.padding??0);const g=d+n.height;const m=d+n.height;const y=[{x:0,y:0},{x:m,y:0},{x:m/2,y:-g}];const{cssStyles:b}=e;const x=c.A.svg(a);const C=M(e,{});if(e.look!=="handDrawn"){C.roughness=0;C.fillStyle="solid"}const v=p(y);const k=x.path(v,C);const w=a.insert((()=>k),":first-child").attr("transform",`translate(${-g/2}, ${g/2})`);if(b&&e.look!=="handDrawn"){w.selectChildren("path").attr("style",b)}if(i&&e.look!=="handDrawn"){w.selectChildren("path").attr("style",i)}e.width=d;e.height=g;u(e,w);o.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${g/2-(n.height+(e.padding??0)/(l?2:1)-(n.y-(n.top??0)))})`);e.intersect=function(t){s.Rm.info("Triangle intersect",e,y,t);return Z.polygon(e,y,t)};return a}(0,s.K2)(pe,"triangle");async function ge(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,label:o}=await h(t,e,f(e));const s=Math.max(n.width+(e.padding??0)*2,e?.width??0);const l=Math.max(n.height+(e.padding??0)*2,e?.height??0);const d=l/8;const m=l+d;const{cssStyles:y}=e;const b=70;const x=b-s;const C=x>0?x/2:0;const v=c.A.svg(a);const k=M(e,{});if(e.look!=="handDrawn"){k.roughness=0;k.fillStyle="solid"}const w=[{x:-s/2-C,y:m/2},...g(-s/2-C,m/2,s/2+C,m/2,d,.8),{x:s/2+C,y:-m/2},{x:-s/2-C,y:-m/2}];const S=p(w);const A=v.path(S,k);const T=a.insert((()=>A),":first-child");T.attr("class","basic label-container");if(y&&e.look!=="handDrawn"){T.selectAll("path").attr("style",y)}if(i&&e.look!=="handDrawn"){T.selectAll("path").attr("style",i)}T.attr("transform",`translate(0,${-d/2})`);o.attr("transform",`translate(${-s/2+(e.padding??0)-(n.x-(n.left??0))},${-l/2+(e.padding??0)-d-(n.y-(n.top??0))})`);u(e,T);e.intersect=function(t){const r=Z.polygon(e,w,t);return r};return a}(0,s.K2)(ge,"waveEdgedRectangle");async function me(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n}=await h(t,e,f(e));const o=100;const s=50;const l=Math.max(n.width+(e.padding??0)*2,e?.width??0);const d=Math.max(n.height+(e.padding??0)*2,e?.height??0);const m=l/d;let y=l;let b=d;if(y>b*m){b=y/m}else{y=b*m}y=Math.max(y,o);b=Math.max(b,s);const x=Math.min(b*.2,b/4);const C=b+x*2;const{cssStyles:v}=e;const k=c.A.svg(a);const w=M(e,{});if(e.look!=="handDrawn"){w.roughness=0;w.fillStyle="solid"}const S=[{x:-y/2,y:C/2},...g(-y/2,C/2,y/2,C/2,x,1),{x:y/2,y:-C/2},...g(y/2,-C/2,-y/2,-C/2,x,-1)];const A=p(S);const T=k.path(A,w);const B=a.insert((()=>T),":first-child");B.attr("class","basic label-container");if(v&&e.look!=="handDrawn"){B.selectAll("path").attr("style",v)}if(i&&e.look!=="handDrawn"){B.selectAll("path").attr("style",i)}u(e,B);e.intersect=function(t){const r=Z.polygon(e,S,t);return r};return a}(0,s.K2)(me,"waveRectangle");async function ye(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const{shapeSvg:a,bbox:n,label:o}=await h(t,e,f(e));const s=Math.max(n.width+(e.padding??0)*2,e?.width??0);const l=Math.max(n.height+(e.padding??0)*2,e?.height??0);const d=5;const p=-s/2;const g=-l/2;const{cssStyles:m}=e;const y=c.A.svg(a);const b=M(e,{});const x=[{x:p-d,y:g-d},{x:p-d,y:g+l},{x:p+s,y:g+l},{x:p+s,y:g-d}];const C=`M${p-d},${g-d} L${p+s},${g-d} L${p+s},${g+l} L${p-d},${g+l} L${p-d},${g-d}\n M${p-d},${g} L${p+s},${g}\n M${p},${g-d} L${p},${g+l}`;if(e.look!=="handDrawn"){b.roughness=0;b.fillStyle="solid"}const v=y.path(C,b);const k=a.insert((()=>v),":first-child");k.attr("transform",`translate(${d/2}, ${d/2})`);k.attr("class","basic label-container");if(m&&e.look!=="handDrawn"){k.selectAll("path").attr("style",m)}if(i&&e.look!=="handDrawn"){k.selectAll("path").attr("style",i)}o.attr("transform",`translate(${-(n.width/2)+d/2-(n.x-(n.left??0))}, ${-(n.height/2)+d/2-(n.y-(n.top??0))})`);u(e,k);e.intersect=function(t){const r=Z.polygon(e,x,t);return r};return a}(0,s.K2)(ye,"windowPane");async function be(t,e){const r=e;if(r.alias){e.label=r.alias}if(e.look==="handDrawn"){const{themeVariables:r}=(0,s.zj)();const{background:i}=r;const a={...e,id:e.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${i}`]};await be(t,a)}const i=(0,s.zj)();e.useHtmlLabels=i.htmlLabels;let a=i.er?.diagramPadding??10;let n=i.er?.entityPadding??6;const{cssStyles:h}=e;const{labelStyles:d}=L(e);if(r.attributes.length===0&&e.label){const r={rx:0,ry:0,labelPaddingX:a,labelPaddingY:a*1.5,classes:""};if((0,o.Un)(e.label,i)+r.labelPaddingX*20){const t=m.width+a*2-(x+C+v+k);x+=t/A;C+=t/A;if(v>0){v+=t/A}if(k>0){k+=t/A}}const B=x+C+v+k;const _=c.A.svg(g);const F=M(e,{});if(e.look!=="handDrawn"){F.roughness=0;F.fillStyle="solid"}const $=Math.max(T.width+a*2,e?.width||0,B);const E=Math.max(T.height+(b[0]||y)+n,e?.height||0);const O=-$/2;const D=-E/2;g.selectAll("g:not(:first-child)").each(((t,e,r)=>{const i=(0,l.Ltv)(r[e]);const o=i.attr("transform");let s=0;let c=0;if(o){const t=RegExp(/translate\(([^,]+),([^)]+)\)/);const e=t.exec(o);if(e){s=parseFloat(e[1]);c=parseFloat(e[2]);if(i.attr("class").includes("attribute-name")){s+=x}else if(i.attr("class").includes("attribute-keys")){s+=x+C}else if(i.attr("class").includes("attribute-comment")){s+=x+C+v}}}i.attr("transform",`translate(${O+a/2+s}, ${c+D+m.height+n/2})`)}));g.select(".name").attr("transform","translate("+-m.width/2+", "+(D+n/2)+")");const I=_.rectangle(O,D,$,E,F);const K=g.insert((()=>I),":first-child").attr("style",h.join(""));const{themeVariables:R}=(0,s.zj)();const{rowEven:P,rowOdd:z,nodeBorder:q}=R;b.push(0);for(const[o,s]of b.entries()){if(o===0&&b.length>1){continue}const t=o%2===0&&s!==0;const e=_.rectangle(O,m.height+D+s,$,m.height,{...F,fill:t?P:z,stroke:q});g.insert((()=>e),"g.label").attr("style",h.join("")).attr("class",`row-rect-${o%2===0?"even":"odd"}`)}let N=_.line(O,m.height+D,$+O,m.height+D,F);g.insert((()=>N)).attr("class","divider");N=_.line(x+O,m.height+D,x+O,E+D,F);g.insert((()=>N)).attr("class","divider");if(w){N=_.line(x+C+O,m.height+D,x+C+O,E+D,F);g.insert((()=>N)).attr("class","divider")}if(S){N=_.line(x+C+v+O,m.height+D,x+C+v+O,E+D,F);g.insert((()=>N)).attr("class","divider")}for(const o of b){N=_.line(O,m.height+D+o,$+O,m.height+D+o,F);g.insert((()=>N)).attr("class","divider")}u(e,K);e.intersect=function(t){return Z.rect(e,t)};return g}(0,s.K2)(be,"erBox");async function xe(t,e,r,i=0,a=0,c=[],h=""){const d=t.insert("g").attr("class",`label ${c.join(" ")}`).attr("transform",`translate(${i}, ${a})`).attr("style",h);if(e!==(0,s.QO)(e)){e=(0,s.QO)(e);e=e.replaceAll("<","<").replaceAll(">",">")}const u=d.node().appendChild(await(0,n.GZ)(d,e,{width:(0,o.Un)(e,r)+100,style:h,useHtmlLabels:r.htmlLabels},r));if(e.includes("<")||e.includes(">")){let t=u.children[0];t.textContent=t.textContent.replaceAll("<","<").replaceAll(">",">");while(t.childNodes[0]){t=t.childNodes[0];t.textContent=t.textContent.replaceAll("<","<").replaceAll(">",">")}}let f=u.getBBox();if((0,s._3)(r.htmlLabels)){const t=u.children[0];t.style.textAlign="start";const e=(0,l.Ltv)(u);f=t.getBoundingClientRect();e.attr("width",f.width);e.attr("height",f.height)}return f}(0,s.K2)(xe,"addText");async function Ce(t,e,r,i,a=r.class.padding??12){const n=!i?3:0;const o=t.insert("g").attr("class",f(e)).attr("id",e.domId||e.id);let s=null;let l=null;let c=null;let h=null;let d=0;let u=0;let p=0;s=o.insert("g").attr("class","annotation-group text");if(e.annotations.length>0){const t=e.annotations[0];await ve(s,{text:`«${t}»`},0);const r=s.node().getBBox();d=r.height}l=o.insert("g").attr("class","label-group text");await ve(l,e,0,["font-weight: bolder"]);const g=l.node().getBBox();u=g.height;c=o.insert("g").attr("class","members-group text");let m=0;for(const f of e.members){const t=await ve(c,f,m,[f.parseClassifier()]);m+=t+n}p=c.node().getBBox().height;if(p<=0){p=a/2}h=o.insert("g").attr("class","methods-group text");let y=0;for(const f of e.methods){const t=await ve(h,f,y,[f.parseClassifier()]);y+=t+n}let b=o.node().getBBox();if(s!==null){const t=s.node().getBBox();s.attr("transform",`translate(${-t.width/2})`)}l.attr("transform",`translate(${-g.width/2}, ${d})`);b=o.node().getBBox();c.attr("transform",`translate(${0}, ${d+u+a*2})`);b=o.node().getBBox();h.attr("transform",`translate(${0}, ${d+u+(p?p+a*4:a*2)})`);b=o.node().getBBox();return{shapeSvg:o,bbox:b}}(0,s.K2)(Ce,"textHelper");async function ve(t,e,r,i=[]){const a=t.insert("g").attr("class","label").attr("style",i.join("; "));const c=(0,s.zj)();let h="useHtmlLabels"in e?e.useHtmlLabels:(0,s._3)(c.htmlLabels)??true;let d="";if("text"in e){d=e.text}else{d=e.label}if(!h&&d.startsWith("\\")){d=d.substring(1)}if((0,s.Wi)(d)){h=true}const u=await(0,n.GZ)(a,(0,s.oB)((0,o.Sm)(d)),{width:(0,o.Un)(d,c)+50,classes:"markdown-node-label",useHtmlLabels:h},c);let f;let p=1;if(!h){if(i.includes("font-weight: bolder")){(0,l.Ltv)(u).selectAll("tspan").attr("font-weight","")}p=u.children.length;const t=u.children[0];if(u.textContent===""||u.textContent.includes(">")){t.textContent=d[0]+d.substring(1).replaceAll(">",">").replaceAll("<","<").trim();const e=d[1]===" ";if(e){t.textContent=t.textContent[0]+" "+t.textContent.substring(1)}}if(t.textContent==="undefined"){t.textContent=""}f=u.getBBox()}else{const t=u.children[0];const e=(0,l.Ltv)(u);p=t.innerHTML.split("
").length;if(t.innerHTML.includes("")){p+=t.innerHTML.split("").length-1}const r=t.getElementsByTagName("img");if(r){const t=d.replace(/]*>/g,"").trim()==="";await Promise.all([...r].map((e=>new Promise((r=>{function i(){e.style.display="flex";e.style.flexDirection="column";if(t){const t=c.fontSize?.toString()??window.getComputedStyle(document.body).fontSize;const r=5;const i=parseInt(t,10)*r+"px";e.style.minWidth=i;e.style.maxWidth=i}else{e.style.width="100%"}r(e)}(0,s.K2)(i,"setupImage");setTimeout((()=>{if(e.complete){i()}}));e.addEventListener("error",i);e.addEventListener("load",i)})))))}f=t.getBoundingClientRect();e.attr("width",f.width);e.attr("height",f.height)}a.attr("transform","translate(0,"+(-f.height/(2*p)+r)+")");return f.height}(0,s.K2)(ve,"addText");async function ke(t,e){const r=(0,s.D7)();const i=r.class.padding??12;const a=i;const n=e.useHtmlLabels??(0,s._3)(r.htmlLabels)??true;const o=e;o.annotations=o.annotations??[];o.members=o.members??[];o.methods=o.methods??[];const{shapeSvg:h,bbox:d}=await Ce(t,e,r,n,a);const{labelStyles:f,nodeStyles:p}=L(e);e.labelStyle=f;e.cssStyles=o.styles||"";const g=o.styles?.join(";")||p||"";if(!e.cssStyles){e.cssStyles=g.replaceAll("!important","").split(";")}const m=o.members.length===0&&o.methods.length===0&&!r.class?.hideEmptyMembersBox;const y=c.A.svg(h);const b=M(e,{});if(e.look!=="handDrawn"){b.roughness=0;b.fillStyle="solid"}const x=d.width;let C=d.height;if(o.members.length===0&&o.methods.length===0){C+=a}else if(o.members.length>0&&o.methods.length===0){C+=a*2}const v=-x/2;const k=-C/2;const w=y.rectangle(v-i,k-i-(m?i:o.members.length===0&&o.methods.length===0?-i/2:0),x+2*i,C+2*i+(m?i*2:o.members.length===0&&o.methods.length===0?-i:0),b);const S=h.insert((()=>w),":first-child");S.attr("class","basic label-container");const A=S.node().getBBox();h.selectAll(".text").each(((t,e,r)=>{const a=(0,l.Ltv)(r[e]);const s=a.attr("transform");let c=0;if(s){const t=RegExp(/translate\(([^,]+),([^)]+)\)/);const e=t.exec(s);if(e){c=parseFloat(e[2])}}let d=c+k+i-(m?i:o.members.length===0&&o.methods.length===0?-i/2:0);if(!n){d-=4}let u=v;if(a.attr("class").includes("label-group")||a.attr("class").includes("annotation-group")){u=-a.node()?.getBBox().width/2||0;h.selectAll("text").each((function(t,e,r){if(window.getComputedStyle(r[e]).textAnchor==="middle"){u=0}}))}a.attr("transform",`translate(${u}, ${d})`)}));const T=h.select(".annotation-group").node().getBBox().height-(m?i/2:0)||0;const B=h.select(".label-group").node().getBBox().height-(m?i/2:0)||0;const _=h.select(".members-group").node().getBBox().height-(m?i/2:0)||0;if(o.members.length>0||o.methods.length>0||m){const t=y.line(A.x,T+B+k+i,A.x+A.width,T+B+k+i,b);const e=h.insert((()=>t));e.attr("class","divider").attr("style",g)}if(m||o.members.length>0||o.methods.length>0){const t=y.line(A.x,T+B+_+k+a*2+i,A.x+A.width,T+B+_+k+i+a*2,b);const e=h.insert((()=>t));e.attr("class","divider").attr("style",g)}if(o.look!=="handDrawn"){h.selectAll("path").attr("style",g)}S.select(":nth-child(2)").attr("style",g);h.selectAll(".divider").select("path").attr("style",g);if(e.labelStyle){h.selectAll("span").attr("style",e.labelStyle)}else{h.selectAll("span").attr("style",g)}if(!n){const t=RegExp(/color\s*:\s*([^;]*)/);const e=t.exec(g);if(e){const t=e[0].replace("color","fill");h.selectAll("tspan").attr("style",t)}else if(f){const e=t.exec(f);if(e){const t=e[0].replace("color","fill");h.selectAll("tspan").attr("style",t)}}}u(e,S);e.intersect=function(t){return Z.rect(e,t)};return h}(0,s.K2)(ke,"classBox");async function we(t,e){const{labelStyles:r,nodeStyles:i}=L(e);e.labelStyle=r;const a=e;const n=e;const o=20;const s=20;const h="verifyMethod"in e;const d=f(e);const p=t.insert("g").attr("class",d).attr("id",e.domId??e.id);let g;if(h){g=await Se(p,`<<${a.type}>>`,0,e.labelStyle)}else{g=await Se(p,"<<Element>>",0,e.labelStyle)}let m=g;const y=await Se(p,a.name,m,e.labelStyle+"; font-weight: bold;");m+=y+s;if(h){const t=await Se(p,`${a.requirementId?`Id: ${a.requirementId}`:""}`,m,e.labelStyle);m+=t;const r=await Se(p,`${a.text?`Text: ${a.text}`:""}`,m,e.labelStyle);m+=r;const i=await Se(p,`${a.risk?`Risk: ${a.risk}`:""}`,m,e.labelStyle);m+=i;await Se(p,`${a.verifyMethod?`Verification: ${a.verifyMethod}`:""}`,m,e.labelStyle)}else{const t=await Se(p,`${n.type?`Type: ${n.type}`:""}`,m,e.labelStyle);m+=t;await Se(p,`${n.docRef?`Doc Ref: ${n.docRef}`:""}`,m,e.labelStyle)}const b=(p.node()?.getBBox().width??200)+o;const x=(p.node()?.getBBox().height??200)+o;const C=-b/2;const v=-x/2;const k=c.A.svg(p);const w=M(e,{});if(e.look!=="handDrawn"){w.roughness=0;w.fillStyle="solid"}const S=k.rectangle(C,v,b,x,w);const A=p.insert((()=>S),":first-child");A.attr("class","basic label-container").attr("style",i);p.selectAll(".label").each(((t,e,r)=>{const i=(0,l.Ltv)(r[e]);const a=i.attr("transform");let n=0;let s=0;if(a){const t=RegExp(/translate\(([^,]+),([^)]+)\)/);const e=t.exec(a);if(e){n=parseFloat(e[1]);s=parseFloat(e[2])}}const c=s-x/2;let h=C+o/2;if(e===0||e===1){h=n}i.attr("transform",`translate(${h}, ${c+o})`)}));if(m>g+y+s){const t=k.line(C,v+g+y+s,C+b,v+g+y+s,w);const e=p.insert((()=>t));e.attr("style",i)}u(e,A);e.intersect=function(t){return Z.rect(e,t)};return p}(0,s.K2)(we,"requirementBox");async function Se(t,e,r,i=""){if(e===""){return 0}const a=t.insert("g").attr("class","label").attr("style",i);const c=(0,s.D7)();const h=c.htmlLabels??true;const d=await(0,n.GZ)(a,(0,s.oB)((0,o.Sm)(e)),{width:(0,o.Un)(e,c)+50,classes:"markdown-node-label",useHtmlLabels:h,style:i},c);let u;if(!h){const t=d.children[0];for(const e of t.children){e.textContent=e.textContent.replaceAll(">",">").replaceAll("<","<");if(i){e.setAttribute("style",i)}}u=d.getBBox();u.height+=6}else{const t=d.children[0];const e=(0,l.Ltv)(d);u=t.getBoundingClientRect();e.attr("width",u.width);e.attr("height",u.height)}a.attr("transform",`translate(${-u.width/2},${-u.height/2+r})`);return u.height}(0,s.K2)(Se,"addText");var Ae=(0,s.K2)((t=>{switch(t){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}}),"colorFromPriority");async function Te(t,e,{config:r}){const{labelStyles:i,nodeStyles:a}=L(e);e.labelStyle=i||"";const n=10;const o=e.width;e.width=(e.width??200)-10;const{shapeSvg:s,bbox:l,label:p}=await h(t,e,f(e));const g=e.padding||10;let m="";let y;if("ticket"in e&&e.ticket&&r?.kanban?.ticketBaseUrl){m=r?.kanban?.ticketBaseUrl.replace("#TICKET#",e.ticket);y=s.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",m).attr("target","_blank")}const b={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:false};let x,C;if(y){({label:x,bbox:C}=await d(y,"ticket"in e&&e.ticket||"",b))}else{({label:x,bbox:C}=await d(s,"ticket"in e&&e.ticket||"",b))}const{label:v,bbox:k}=await d(s,"assigned"in e&&e.assigned||"",b);e.width=o;const S=10;const A=e?.width||0;const T=Math.max(C.height,k.height)/2;const B=Math.max(l.height+S*2,e?.height||0)+T;const _=-A/2;const F=-B/2;p.attr("transform","translate("+(g-A/2)+", "+(-T-l.height/2)+")");x.attr("transform","translate("+(g-A/2)+", "+(-T+l.height/2)+")");v.attr("transform","translate("+(g+A/2-k.width-2*n)+", "+(-T+l.height/2)+")");let $;const{rx:E,ry:O}=e;const{cssStyles:D}=e;if(e.look==="handDrawn"){const t=c.A.svg(s);const r=M(e,{});const i=E||O?t.path(w(_,F,A,B,E||0),r):t.rectangle(_,F,A,B,r);$=s.insert((()=>i),":first-child");$.attr("class","basic label-container").attr("style",D?D:null)}else{$=s.insert("rect",":first-child");$.attr("class","basic label-container __APA__").attr("style",a).attr("rx",E??5).attr("ry",O??5).attr("x",_).attr("y",F).attr("width",A).attr("height",B);const t="priority"in e&&e.priority;if(t){const e=s.append("line");const r=_+2;const i=F+Math.floor((E??0)/2);const a=F+B-Math.floor((E??0)/2);e.attr("x1",r).attr("y1",i).attr("x2",r).attr("y2",a).attr("stroke-width","4").attr("stroke",Ae(t))}}u(e,$);e.height=B;e.intersect=function(t){return Z.rect(e,t)};return s}(0,s.K2)(Te,"kanbanItem");var Be=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Qt},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Xt},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:te},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:ae},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:yt},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:at},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:Ut},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:At},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:It},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Dt},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:ue},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:$t},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:xt},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:se},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:rt},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Zt},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:ie},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:re},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:kt},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Tt},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:lt},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:ht},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:ut},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Kt},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:ge},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:wt},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:de},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:qt},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:ft},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:bt},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:pe},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:ye},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Ct},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:fe},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:vt},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Jt},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:jt},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Wt},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:tt},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:ot},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:oe},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:ne},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:me},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Gt},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Nt}];var Le=(0,s.K2)((()=>{const t={state:ee,choice:it,note:Ht,rectWithTitle:Vt,labelRect:Ot,iconSquare:_t,iconCircle:Lt,icon:Bt,iconRounded:Mt,imageSquare:Ft,anchor:J,kanbanItem:Te,classBox:ke,erBox:be,requirementBox:we};const e=[...Object.entries(t),...Be.flatMap((t=>{const e=[t.shortName,..."aliases"in t?t.aliases:[],..."internalAliases"in t?t.internalAliases:[]];return e.map((e=>[e,t.handler]))}))];return Object.fromEntries(e)}),"generateShapeMap");var Me=Le();function _e(t){return t in Me}(0,s.K2)(_e,"isValidShape");var Fe=new Map;async function $e(t,e,r){let i;let a;if(e.shape==="rect"){if(e.rx&&e.ry){e.shape="roundedRect"}else{e.shape="squareRect"}}const n=e.shape?Me[e.shape]:void 0;if(!n){throw new Error(`No such shape: ${e.shape}. Please check your syntax.`)}if(e.link){let o;if(r.config.securityLevel==="sandbox"){o="_top"}else if(e.linkTarget){o=e.linkTarget||"_blank"}i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",o??null);a=await n(i,e,r)}else{a=await n(t,e,r);i=a}if(e.tooltip){a.attr("title",e.tooltip)}Fe.set(e.id,i);if(e.haveCallback){i.attr("class",i.attr("class")+" clickable")}return i}(0,s.K2)($e,"insertNode");var Ee=(0,s.K2)(((t,e)=>{Fe.set(e.id,t)}),"setNodeElem");var Oe=(0,s.K2)((()=>{Fe.clear()}),"clear");var De=(0,s.K2)((t=>{const e=Fe.get(t.id);s.Rm.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=8;const i=t.diff||0;if(t.clusterNode){e.attr("transform","translate("+(t.x+i-t.width/2)+", "+(t.y-t.height/2-r)+")")}else{e.attr("transform","translate("+t.x+", "+t.y+")")}return i}),"positionNode")},33416:(t,e,r)=>{"use strict";r.d(e,{IU:()=>m,Jo:()=>B,T_:()=>C,g0:()=>H,jP:()=>b});var i=r(94746);var a=r(20778);var n=r(57590);var o=r(76261);var s=r(96049);var l=r(75905);var c=r(24982);var h=r(52274);var d=(0,l.K2)(((t,e,r,i,a,n)=>{if(e.arrowTypeStart){f(t,"start",e.arrowTypeStart,r,i,a,n)}if(e.arrowTypeEnd){f(t,"end",e.arrowTypeEnd,r,i,a,n)}}),"addEdgeMarkers");var u={arrow_cross:{type:"cross",fill:false},arrow_point:{type:"point",fill:true},arrow_barb:{type:"barb",fill:true},arrow_circle:{type:"circle",fill:false},aggregation:{type:"aggregation",fill:false},extension:{type:"extension",fill:false},composition:{type:"composition",fill:true},dependency:{type:"dependency",fill:true},lollipop:{type:"lollipop",fill:false},only_one:{type:"onlyOne",fill:false},zero_or_one:{type:"zeroOrOne",fill:false},one_or_more:{type:"oneOrMore",fill:false},zero_or_more:{type:"zeroOrMore",fill:false},requirement_arrow:{type:"requirement_arrow",fill:false},requirement_contains:{type:"requirement_contains",fill:false}};var f=(0,l.K2)(((t,e,r,i,a,n,o)=>{const s=u[r];if(!s){l.Rm.warn(`Unknown arrow type: ${r}`);return}const c=s.type;const h=e==="start"?"Start":"End";const d=`${a}_${n}-${c}${h}`;if(o&&o.trim()!==""){const r=o.replace(/[^\dA-Za-z]/g,"_");const a=`${d}_${r}`;if(!document.getElementById(a)){const t=document.getElementById(d);if(t){const e=t.cloneNode(true);e.id=a;const r=e.querySelectorAll("path, circle, line");r.forEach((t=>{t.setAttribute("stroke",o);if(s.fill){t.setAttribute("fill",o)}}));t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${i}#${a})`)}else{t.attr(`marker-${e}`,`url(${i}#${d})`)}}),"addEdgeMarker");var p=new Map;var g=new Map;var m=(0,l.K2)((()=>{p.clear();g.clear()}),"clear");var y=(0,l.K2)((t=>{let e=t?t.reduce(((t,e)=>t+";"+e),""):"";return e}),"getLabelStyles");var b=(0,l.K2)((async(t,e)=>{let r=(0,l._3)((0,l.D7)().flowchart.htmlLabels);const i=await(0,o.GZ)(t,e.label,{style:y(e.labelStyle),useHtmlLabels:r,addSvgBackground:true,isNode:false});l.Rm.info("abc82",e,e.labelType);const n=t.insert("g").attr("class","edgeLabel");const s=n.insert("g").attr("class","label");s.node().appendChild(i);let h=i.getBBox();if(r){const t=i.children[0];const e=(0,c.Ltv)(i);h=t.getBoundingClientRect();e.attr("width",h.width);e.attr("height",h.height)}s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")");p.set(e.id,n);e.width=h.width;e.height=h.height;let d;if(e.startLabelLeft){const r=await(0,a.DA)(e.startLabelLeft,y(e.labelStyle));const i=t.insert("g").attr("class","edgeTerminals");const n=i.insert("g").attr("class","inner");d=n.node().appendChild(r);const o=r.getBBox();n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")");if(!g.get(e.id)){g.set(e.id,{})}g.get(e.id).startLeft=i;x(d,e.startLabelLeft)}if(e.startLabelRight){const r=await(0,a.DA)(e.startLabelRight,y(e.labelStyle));const i=t.insert("g").attr("class","edgeTerminals");const n=i.insert("g").attr("class","inner");d=i.node().appendChild(r);n.node().appendChild(r);const o=r.getBBox();n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")");if(!g.get(e.id)){g.set(e.id,{})}g.get(e.id).startRight=i;x(d,e.startLabelRight)}if(e.endLabelLeft){const r=await(0,a.DA)(e.endLabelLeft,y(e.labelStyle));const i=t.insert("g").attr("class","edgeTerminals");const n=i.insert("g").attr("class","inner");d=n.node().appendChild(r);const o=r.getBBox();n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")");i.node().appendChild(r);if(!g.get(e.id)){g.set(e.id,{})}g.get(e.id).endLeft=i;x(d,e.endLabelLeft)}if(e.endLabelRight){const r=await(0,a.DA)(e.endLabelRight,y(e.labelStyle));const i=t.insert("g").attr("class","edgeTerminals");const n=i.insert("g").attr("class","inner");d=n.node().appendChild(r);const o=r.getBBox();n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")");i.node().appendChild(r);if(!g.get(e.id)){g.set(e.id,{})}g.get(e.id).endRight=i;x(d,e.endLabelRight)}return i}),"insertEdgeLabel");function x(t,e){if((0,l.D7)().flowchart.htmlLabels&&t){t.style.width=e.length*9+"px";t.style.height="12px"}}(0,l.K2)(x,"setTerminalWidth");var C=(0,l.K2)(((t,e)=>{l.Rm.debug("Moving label abc88 ",t.id,t.label,p.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath;const i=(0,l.D7)();const{subGraphTitleTotalMargin:a}=(0,n.O)(i);if(t.label){const i=p.get(t.id);let n=t.x;let o=t.y;if(r){const i=s._K.calcLabelPosition(r);l.Rm.debug("Moving label "+t.label+" from (",n,",",o,") to (",i.x,",",i.y,") abc88");if(e.updatedPath){n=i.x;o=i.y}}i.attr("transform",`translate(${n}, ${o+a/2})`)}if(t.startLabelLeft){const e=g.get(t.id).startLeft;let i=t.x;let a=t.y;if(r){const e=s._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);i=e.x;a=e.y}e.attr("transform",`translate(${i}, ${a})`)}if(t.startLabelRight){const e=g.get(t.id).startRight;let i=t.x;let a=t.y;if(r){const e=s._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);i=e.x;a=e.y}e.attr("transform",`translate(${i}, ${a})`)}if(t.endLabelLeft){const e=g.get(t.id).endLeft;let i=t.x;let a=t.y;if(r){const e=s._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);i=e.x;a=e.y}e.attr("transform",`translate(${i}, ${a})`)}if(t.endLabelRight){const e=g.get(t.id).endRight;let i=t.x;let a=t.y;if(r){const e=s._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);i=e.x;a=e.y}e.attr("transform",`translate(${i}, ${a})`)}}),"positionEdgeLabel");var v=(0,l.K2)(((t,e)=>{const r=t.x;const i=t.y;const a=Math.abs(e.x-r);const n=Math.abs(e.y-i);const o=t.width/2;const s=t.height/2;return a>=o||n>=s}),"outsideNode");var k=(0,l.K2)(((t,e,r)=>{l.Rm.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(r)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const i=t.x;const a=t.y;const n=Math.abs(i-r.x);const o=t.width/2;let s=r.xMath.abs(i-e.x)*c){let t=r.y{l.Rm.warn("abc88 cutPathAtIntersect",t,e);let r=[];let i=t[0];let a=false;t.forEach((t=>{l.Rm.info("abc88 checking point",t,e);if(!v(e,t)&&!a){const n=k(e,i,t);l.Rm.debug("abc88 inside",t,i,n);l.Rm.debug("abc88 intersection",n,e);let o=false;r.forEach((t=>{o=o||t.x===n.x&&t.y===n.y}));if(!r.some((t=>t.x===n.x&&t.y===n.y))){r.push(n)}else{l.Rm.warn("abc88 no intersect",n,r)}a=true}else{l.Rm.warn("abc88 outside",t,i);i=t;if(!a){r.push(t)}}}));l.Rm.debug("returning points",r);return r}),"cutPathAtIntersect");function S(t){const e=[];const r=[];for(let i=1;i5&&Math.abs(n.y-a.y)>5){e.push(n);r.push(i)}else if(a.y===n.y&&n.x===o.x&&Math.abs(n.x-a.x)>5&&Math.abs(n.y-o.y)>5){e.push(n);r.push(i)}}return{cornerPoints:e,cornerPointPositions:r}}(0,l.K2)(S,"extractCornerPoints");var A=(0,l.K2)((function(t,e,r){const i=e.x-t.x;const a=e.y-t.y;const n=Math.sqrt(i*i+a*a);const o=r/n;return{x:e.x-o*i,y:e.y-o*a}}),"findAdjacentPoint");var T=(0,l.K2)((function(t){const{cornerPointPositions:e}=S(t);const r=[];for(let i=0;i10&&Math.abs(a.y-e.y)>=10){l.Rm.debug("Corner point fixing",Math.abs(a.x-e.x),Math.abs(a.y-e.y));const t=5;if(n.x===o.x){u={x:c<0?o.x-t+d:o.x+t-d,y:h<0?o.y-d:o.y+d}}else{u={x:c<0?o.x-d:o.x+d,y:h<0?o.y-t+d:o.y+t-d}}}else{l.Rm.debug("Corner point skipping fixing",Math.abs(a.x-e.x),Math.abs(a.y-e.y))}r.push(u,s)}else{r.push(t[i])}}return r}),"fixCorners");var B=(0,l.K2)((function(t,e,r,n,o,s,u){const{handDrawnSeed:f}=(0,l.D7)();let p=e.points;let g=false;const m=o;var y=s;const b=[];for(const i in e.cssCompiledStyles){if((0,a.KX)(i)){continue}b.push(e.cssCompiledStyles[i])}if(y.intersect&&m.intersect){p=p.slice(1,e.points.length-1);p.unshift(m.intersect(p[0]));l.Rm.debug("Last point APA12",e.start,"--\x3e",e.end,p[p.length-1],y,y.intersect(p[p.length-1]));p.push(y.intersect(p[p.length-1]))}if(e.toCluster){l.Rm.info("to cluster abc88",r.get(e.toCluster));p=w(e.points,r.get(e.toCluster).node);g=true}if(e.fromCluster){l.Rm.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(p,null,2));p=w(p.reverse(),r.get(e.fromCluster).node).reverse();g=true}let x=p.filter((t=>!Number.isNaN(t.y)));x=T(x);let C=c.qrM;C=c.lUB;switch(e.curve){case"linear":C=c.lUB;break;case"basis":C=c.qrM;break;case"cardinal":C=c.y8u;break;case"bumpX":C=c.Wi0;break;case"bumpY":C=c.PGM;break;case"catmullRom":C=c.oDi;break;case"monotoneX":C=c.nVG;break;case"monotoneY":C=c.uxU;break;case"natural":C=c.Xf2;break;case"step":C=c.GZz;break;case"stepAfter":C=c.UPb;break;case"stepBefore":C=c.dyv;break;default:C=c.qrM}const{x:v,y:k}=(0,i.R)(e);const S=(0,c.n8j)().x(v).y(k).curve(C);let A;switch(e.thickness){case"normal":A="edge-thickness-normal";break;case"thick":A="edge-thickness-thick";break;case"invisible":A="edge-thickness-invisible";break;default:A="edge-thickness-normal"}switch(e.pattern){case"solid":A+=" edge-pattern-solid";break;case"dotted":A+=" edge-pattern-dotted";break;case"dashed":A+=" edge-pattern-dashed";break;default:A+=" edge-pattern-solid"}let B;let L=S(x);const M=Array.isArray(e.style)?e.style:[e.style];let _=M.find((t=>t?.startsWith("stroke:")));if(e.look==="handDrawn"){const r=h.A.svg(t);Object.assign([],x);const i=r.path(L,{roughness:.3,seed:f});A+=" transition";B=(0,c.Ltv)(i).select("path").attr("id",e.id).attr("class"," "+A+(e.classes?" "+e.classes:"")).attr("style",M?M.reduce(((t,e)=>t+";"+e),""):"");let a=B.attr("d");B.attr("d",a);t.node().appendChild(B.node())}else{const r=b.join(";");const i=M?M.reduce(((t,e)=>t+e+";"),""):"";let a="";if(e.animate){a=" edge-animation-fast"}if(e.animation){a=" edge-animation-"+e.animation}const n=r?r+";"+i+";":i;B=t.append("path").attr("d",L).attr("id",e.id).attr("class"," "+A+(e.classes?" "+e.classes:"")+(a??"")).attr("style",n);_=n.match(/stroke:([^;]+)/)?.[1]}let F="";if((0,l.D7)().flowchart.arrowMarkerAbsolute||(0,l.D7)().state.arrowMarkerAbsolute){F=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search;F=F.replace(/\(/g,"\\(").replace(/\)/g,"\\)")}l.Rm.info("arrowTypeStart",e.arrowTypeStart);l.Rm.info("arrowTypeEnd",e.arrowTypeEnd);d(B,e,F,u,n,_);let $={};if(g){$.updatedPath=p}$.originalPath=e.points;return $}),"insertEdge");var L=(0,l.K2)(((t,e,r,i)=>{e.forEach((e=>{j[e](t,r,i)}))}),"insertMarkers");var M=(0,l.K2)(((t,e,r)=>{l.Rm.trace("Making markers for ",r);t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z");t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")}),"extension");var _=(0,l.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z");t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"composition");var F=(0,l.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z");t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"aggregation");var $=(0,l.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z");t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}),"dependency");var E=(0,l.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6);t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)}),"lollipop");var O=(0,l.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0");t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")}),"point");var D=(0,l.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0");t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")}),"circle");var I=(0,l.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0");t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")}),"cross");var K=(0,l.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}),"barb");var R=(0,l.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18");t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")}),"only_one");var P=(0,l.K2)(((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6);i.append("path").attr("d","M9,0 L9,18");const a=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6);a.append("path").attr("d","M21,0 L21,18")}),"zero_or_one");var z=(0,l.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27");t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")}),"one_or_more");var q=(0,l.K2)(((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6);i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const a=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6);a.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")}),"zero_or_more");var N=(0,l.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0\n L20,10\n M20,10\n L0,20`)}),"requirement_arrow");var W=(0,l.K2)(((t,e,r)=>{const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none");i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10);i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)}),"requirement_contains");var j={extension:M,composition:_,aggregation:F,dependency:$,lollipop:E,point:O,circle:D,cross:I,barb:K,only_one:R,zero_or_one:P,one_or_more:z,zero_or_more:q,requirement_arrow:N,requirement_contains:W};var H=L},57590:(t,e,r)=>{"use strict";r.d(e,{O:()=>a});var i=r(75905);var a=(0,i.K2)((({flowchart:t})=>{const e=t?.subGraphTitleMargin?.top??0;const r=t?.subGraphTitleMargin?.bottom??0;const i=e+r;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}}),"getSubGraphTitleMargins")},96049:(t,e,r)=>{"use strict";r.d(e,{$C:()=>B,$t:()=>W,C4:()=>H,I5:()=>N,Ib:()=>g,KL:()=>G,Sm:()=>Y,Un:()=>D,_K:()=>j,bH:()=>$,dq:()=>z,pe:()=>l,rY:()=>U,ru:()=>O,sM:()=>A,vU:()=>f,yT:()=>M});var i=r(75905);var a=r(16750);var n=r(24982);var o=r(307);var s=r(96901);var l="​";var c={curveBasis:n.qrM,curveBasisClosed:n.Yu4,curveBasisOpen:n.IA3,curveBumpX:n.Wi0,curveBumpY:n.PGM,curveBundle:n.OEq,curveCardinalClosed:n.olC,curveCardinalOpen:n.IrU,curveCardinal:n.y8u,curveCatmullRomClosed:n.Q7f,curveCatmullRomOpen:n.cVp,curveCatmullRom:n.oDi,curveLinear:n.lUB,curveLinearClosed:n.Lx9,curveMonotoneX:n.nVG,curveMonotoneY:n.uxU,curveNatural:n.Xf2,curveStep:n.GZz,curveStepAfter:n.UPb,curveStepBefore:n.dyv};var h=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi;var d=(0,i.K2)((function(t,e){const r=u(t,/(?:init\b)|(?:initialize\b)/);let a={};if(Array.isArray(r)){const t=r.map((t=>t.args));(0,i.$i)(t);a=(0,i.hH)(a,[...t])}else{a=r.args}if(!a){return}let n=(0,i.Ch)(t,e);const o="config";if(a[o]!==void 0){if(n==="flowchart-v2"){n="flowchart"}a[n]=a[o];delete a[o]}return a}),"detectInit");var u=(0,i.K2)((function(t,e=null){try{const r=new RegExp(`[%]{2}(?![{]${h.source})(?=[}][%]{2}).*\n`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"');i.Rm.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let a;const n=[];while((a=i.DB.exec(t))!==null){if(a.index===i.DB.lastIndex){i.DB.lastIndex++}if(a&&!e||e&&a[1]?.match(e)||e&&a[2]?.match(e)){const t=a[1]?a[1]:a[2];const e=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;n.push({type:t,args:e})}}if(n.length===0){return{type:t,args:null}}return n.length===1?n[0]:n}catch(r){i.Rm.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`);return{type:void 0,args:null}}}),"detectDirective");var f=(0,i.K2)((function(t){return t.replace(i.DB,"")}),"removeDirectives");var p=(0,i.K2)((function(t,e){for(const[r,i]of e.entries()){if(i.match(t)){return r}}return-1}),"isSubstringInArray");function g(t,e){if(!t){return e}const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return c[r]??e}(0,i.K2)(g,"interpolateToCurve");function m(t,e){const r=t.trim();if(!r){return void 0}if(e.securityLevel!=="loose"){return(0,a.J)(r)}return r}(0,i.K2)(m,"formatUrl");var y=(0,i.K2)(((t,...e)=>{const r=t.split(".");const a=r.length-1;const n=r[a];let o=window;for(let s=0;s{r+=b(t,e);e=t}));const i=r/2;return k(t,i)}(0,i.K2)(x,"traverseEdge");function C(t){if(t.length===1){return t[0]}return x(t)}(0,i.K2)(C,"calcLabelPosition");var v=(0,i.K2)(((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r}),"roundNumber");var k=(0,i.K2)(((t,e)=>{let r=void 0;let i=e;for(const a of t){if(r){const t=b(a,r);if(t===0){return r}if(t=1){return{x:a.x,y:a.y}}if(e>0&&e<1){return{x:v((1-e)*r.x+e*a.x,5),y:v((1-e)*r.y+e*a.y,5)}}}}r=a}throw new Error("Could not find a suitable point for the given distance")}),"calculatePoint");var w=(0,i.K2)(((t,e,r)=>{i.Rm.info(`our points ${JSON.stringify(e)}`);if(e[0]!==r){e=e.reverse()}const a=25;const n=k(e,a);const o=t?10:5;const s=Math.atan2(e[0].y-n.y,e[0].x-n.x);const l={x:0,y:0};l.x=Math.sin(s)*o+(e[0].x+n.x)/2;l.y=-Math.cos(s)*o+(e[0].y+n.y)/2;return l}),"calcCardinalityPosition");function S(t,e,r){const a=structuredClone(r);i.Rm.info("our points",a);if(e!=="start_left"&&e!=="start_right"){a.reverse()}const n=25+t;const o=k(a,n);const s=10+t*.5;const l=Math.atan2(a[0].y-o.y,a[0].x-o.x);const c={x:0,y:0};if(e==="start_left"){c.x=Math.sin(l+Math.PI)*s+(a[0].x+o.x)/2;c.y=-Math.cos(l+Math.PI)*s+(a[0].y+o.y)/2}else if(e==="end_right"){c.x=Math.sin(l-Math.PI)*s+(a[0].x+o.x)/2-5;c.y=-Math.cos(l-Math.PI)*s+(a[0].y+o.y)/2-5}else if(e==="end_left"){c.x=Math.sin(l)*s+(a[0].x+o.x)/2-5;c.y=-Math.cos(l)*s+(a[0].y+o.y)/2-5}else{c.x=Math.sin(l)*s+(a[0].x+o.x)/2;c.y=-Math.cos(l)*s+(a[0].y+o.y)/2}return c}(0,i.K2)(S,"calcTerminalLabelPosition");function A(t){let e="";let r="";for(const i of t){if(i!==void 0){if(i.startsWith("color:")||i.startsWith("text-align:")){r=r+i+";"}else{e=e+i+";"}}}return{style:e,labelStyle:r}}(0,i.K2)(A,"getStylesFromArray");var T=0;var B=(0,i.K2)((()=>{T++;return"id-"+Math.random().toString(36).substr(2,12)+"-"+T}),"generateId");function L(t){let e="";const r="0123456789abcdef";const i=r.length;for(let a=0;aL(t.length)),"random");var _=(0,i.K2)((function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}}),"getTextObj");var F=(0,i.K2)((function(t,e){const r=e.text.replace(i.Y2.lineBreakRegex," ");const[,a]=N(e.fontSize);const n=t.append("text");n.attr("x",e.x);n.attr("y",e.y);n.style("text-anchor",e.anchor);n.style("font-family",e.fontFamily);n.style("font-size",a);n.style("font-weight",e.fontWeight);n.attr("fill",e.fill);if(e.class!==void 0){n.attr("class",e.class)}const o=n.append("tspan");o.attr("x",e.x+e.textMargin*2);o.attr("fill",e.fill);o.text(r);return n}),"drawSimpleText");var $=(0,o.A)(((t,e,r)=>{if(!t){return t}r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},r);if(i.Y2.lineBreakRegex.test(t)){return t}const a=t.split(" ").filter(Boolean);const n=[];let o="";a.forEach(((t,i)=>{const s=D(`${t} `,r);const l=D(o,r);if(s>e){const{hyphenatedStrings:i,remainingWord:a}=E(t,e,"-",r);n.push(o,...i);o=a}else if(l+s>=e){n.push(o);o=t}else{o=[o,t].filter(Boolean).join(" ")}const c=i+1;const h=c===a.length;if(h){n.push(o)}}));return n.filter((t=>t!=="")).join(r.joinWith)}),((t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`));var E=(0,o.A)(((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const a=[...t];const n=[];let o="";a.forEach(((t,s)=>{const l=`${o}${t}`;const c=D(l,i);if(c>=e){const t=s+1;const e=a.length===t;const i=`${l}${r}`;n.push(e?l:i);o=""}else{o=l}}));return{hyphenatedStrings:n,remainingWord:o}}),((t,e,r="-",i)=>`${t}${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`));function O(t,e){return I(t,e).height}(0,i.K2)(O,"calculateTextHeight");function D(t,e){return I(t,e).width}(0,i.K2)(D,"calculateTextWidth");var I=(0,o.A)(((t,e)=>{const{fontSize:r=12,fontFamily:a="Arial",fontWeight:o=400}=e;if(!t){return{width:0,height:0}}const[,s]=N(r);const c=["sans-serif",a];const h=t.split(i.Y2.lineBreakRegex);const d=[];const u=(0,n.Ltv)("body");if(!u.remove){return{width:0,height:0,lineHeight:0}}const f=u.append("svg");for(const i of c){let t=0;const e={width:0,height:0,lineHeight:0};for(const r of h){const a=_();a.text=r||l;const n=F(f,a).style("font-size",s).style("font-weight",o).style("font-family",i);const c=(n._groups||n)[0][0].getBBox();if(c.width===0&&c.height===0){throw new Error("svg element not in render tree")}e.width=Math.round(Math.max(e.width,c.width));t=Math.round(c.height);e.height+=t;e.lineHeight=Math.round(Math.max(e.lineHeight,t))}d.push(e)}f.remove();const p=isNaN(d[1].height)||isNaN(d[1].width)||isNaN(d[1].lineHeight)||d[0].height>d[1].height&&d[0].width>d[1].width&&d[0].lineHeight>d[1].lineHeight?0:1;return d[p]}),((t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`));var K=class{constructor(t=false,e){this.count=0;this.count=e?e.length:0;this.next=t?()=>this.count++:()=>Date.now()}static{(0,i.K2)(this,"InitIDGenerator")}};var R;var P=(0,i.K2)((function(t){R=R||document.createElement("div");t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";");R.innerHTML=t;return unescape(R.textContent)}),"entityDecode");function z(t){return"str"in t}(0,i.K2)(z,"isDetailedError");var q=(0,i.K2)(((t,e,r,i)=>{if(!i){return}const a=t.node()?.getBBox();if(!a){return}t.append("text").text(i).attr("text-anchor","middle").attr("x",a.x+a.width/2).attr("y",-r).attr("class",e)}),"insertTitle");var N=(0,i.K2)((t=>{if(typeof t==="number"){return[t,t+"px"]}const e=parseInt(t??"",10);if(Number.isNaN(e)){return[void 0,void 0]}else if(t===String(e)){return[e,t+"px"]}else{return[e,t]}}),"parseFontSize");function W(t,e){return(0,s.A)({},t,e)}(0,i.K2)(W,"cleanAndMerge");var j={assignWithDepth:i.hH,wrapLabel:$,calculateTextHeight:O,calculateTextWidth:D,calculateTextDimensions:I,cleanAndMerge:W,detectInit:d,detectDirective:u,isSubstringInArray:p,interpolateToCurve:g,calcLabelPosition:C,calcCardinalityPosition:w,calcTerminalLabelPosition:S,formatUrl:m,getStylesFromArray:A,generateId:B,random:M,runFunc:y,entityDecode:P,insertTitle:q,parseFontSize:N,InitIDGenerator:K};var H=(0,i.K2)((function(t){let e=t;e=e.replace(/style.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)}));e=e.replace(/classDef.*:\S*#.*;/g,(function(t){return t.substring(0,t.length-1)}));e=e.replace(/#\w+;/g,(function(t){const e=t.substring(1,t.length-1);const r=/^\+?\d+$/.test(e);if(r){return"fl°°"+e+"¶ß"}else{return"fl°"+e+"¶ß"}}));return e}),"encodeEntities");var Y=(0,i.K2)((function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")}),"decodeEntities");var U=(0,i.K2)(((t,e,{counter:r=0,prefix:i,suffix:a},n)=>{if(n){return n}return`${i?`${i}_`:""}${t}_${e}_${r}${a?`_${a}`:""}`}),"getEdgeId");function G(t){return t??null}(0,i.K2)(G,"handleUndefinedAttr")},94065:(t,e,r)=>{"use strict";r.d(e,{XX:()=>d,q7:()=>u,sO:()=>c});var i=r(33416);var a=r(20778);var n=r(96049);var o=r(75905);var s={common:o.Y2,getConfig:o.zj,insertCluster:a.U,insertEdge:i.Jo,insertEdgeLabel:i.jP,insertMarkers:i.g0,insertNode:a.on,interpolateToCurve:n.Ib,labelHelper:a.Zk,log:o.Rm,positionEdgeLabel:i.T_};var l={};var c=(0,o.K2)((t=>{for(const e of t){l[e.name]=e}}),"registerLayoutLoaders");var h=(0,o.K2)((()=>{c([{name:"dagre",loader:(0,o.K2)((async()=>await Promise.all([r.e(1838),r.e(2211),r.e(6974)]).then(r.bind(r,66974))),"loader")}])}),"registerDefaultLayoutLoaders");h();var d=(0,o.K2)((async(t,e)=>{if(!(t.layoutAlgorithm in l)){throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`)}const r=l[t.layoutAlgorithm];const i=await r.loader();return i.render(t,e,s,{algorithm:r.algorithm})}),"render");var u=(0,o.K2)(((t="",{fallback:e="dagre"}={})=>{if(t in l){return t}if(e in l){o.Rm.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`);return e}throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)}),"getRegisteredLayoutAlgorithm")},94746:(t,e,r)=>{"use strict";r.d(e,{R:()=>s});var i=r(75905);var a={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function n(t,e){if(t===void 0||e===void 0){return{angle:0,deltaX:0,deltaY:0}}t=o(t);e=o(e);const[r,i]=[t.x,t.y];const[a,n]=[e.x,e.y];const s=a-r;const l=n-i;return{angle:Math.atan(l/s),deltaX:s,deltaY:l}}(0,i.K2)(n,"calculateDeltaAndAngle");var o=(0,i.K2)((t=>{if(Array.isArray(t)){return{x:t[0],y:t[1]}}return t}),"pointTransformer");var s=(0,i.K2)((t=>({x:(0,i.K2)((function(e,r,i){let s=0;const l=o(i[0]).x=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){const{angle:e,deltaX:r}=n(i[i.length-1],i[i.length-2]);s=a[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}const c=Math.abs(o(e).x-o(i[i.length-1]).x);const h=Math.abs(o(e).y-o(i[i.length-1]).y);const d=Math.abs(o(e).x-o(i[0]).x);const u=Math.abs(o(e).y-o(i[0]).y);const f=a[t.arrowTypeStart];const p=a[t.arrowTypeEnd];const g=1;if(c0&&h0&&u=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(a,t.arrowTypeEnd)){const{angle:e,deltaY:r}=n(i[i.length-1],i[i.length-2]);s=a[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}const c=Math.abs(o(e).y-o(i[i.length-1]).y);const h=Math.abs(o(e).x-o(i[i.length-1]).x);const d=Math.abs(o(e).y-o(i[0]).y);const u=Math.abs(o(e).x-o(i[0]).x);const f=a[t.arrowTypeStart];const p=a[t.arrowTypeEnd];const g=1;if(c0&&h0&&u{t("should calculate the angle and deltas between two points",(()=>{e(n([0,0],[0,1])).toStrictEqual({angle:1.5707963267948966,deltaX:0,deltaY:1});e(n([1,0],[0,-1])).toStrictEqual({angle:.7853981633974483,deltaX:-1,deltaY:-1});e(n({x:1,y:0},[0,-1])).toStrictEqual({angle:.7853981633974483,deltaX:-1,deltaY:-1});e(n({x:1,y:0},{x:1,y:0})).toStrictEqual({angle:NaN,deltaX:0,deltaY:0})}));t("should calculate the angle and deltas if one point in undefined",(()=>{e(n(void 0,[0,1])).toStrictEqual({angle:0,deltaX:0,deltaY:0});e(n([0,1],void 0)).toStrictEqual({angle:0,deltaX:0,deltaY:0})}))}))}},75905:(t,e,r)=>{"use strict";r.d(e,{C0:()=>L,VA:()=>C,K2:()=>x,xA:()=>mt,hH:()=>D,Dl:()=>Ht,IU:()=>se,Wt:()=>re,Y2:()=>Ut,a$:()=>Xt,sb:()=>it,ME:()=>be,UI:()=>tt,Ch:()=>_,mW:()=>M,DB:()=>T,_3:()=>Dt,EJ:()=>A,m7:()=>de,iN:()=>ce,zj:()=>pt,D7:()=>me,Gs:()=>Se,J$:()=>E,ab:()=>fe,Q2:()=>ut,P$:()=>j,Wi:()=>jt,H1:()=>kt,Rm:()=>k,QO:()=>Rt,Js:()=>we,Xd:()=>F,VJ:()=>Yt,cL:()=>yt,$i:()=>et,jZ:()=>Lt,oB:()=>xe,wZ:()=>ht,EI:()=>he,SV:()=>le,Nk:()=>ft,XV:()=>ye,ke:()=>ue,He:()=>w,UU:()=>ct,ot:()=>Zt,mj:()=>Ce,tM:()=>ee,H$:()=>V,B6:()=>dt});var i=r(74353);var a=r.n(i);var n=r(63221);var o=r(69745);const s=(t,e)=>{const r=n.A.parse(t);const i={};for(const a in e){if(!e[a])continue;i[a]=r[a]+e[a]}return(0,o.A)(t,i)};const l=s;var c=r(3635);const h=(t,e,r=50)=>{const{r:i,g:a,b:o,a:s}=n.A.parse(t);const{r:l,g:h,b:d,a:u}=n.A.parse(e);const f=r/100;const p=f*2-1;const g=s-u;const m=p*g===-1?p:(p+g)/(1+p*g);const y=(m+1)/2;const b=1-y;const x=i*y+l*b;const C=a*y+h*b;const v=o*y+d*b;const k=s*f+u*(1-f);return(0,c.A)(x,C,v,k)};const d=h;const u=(t,e=100)=>{const r=n.A.parse(t);r.r=255-r.r;r.g=255-r.g;r.b=255-r.b;return d(r,t,e)};const f=u;var p=r(48750);var g=r(77470);var m=r(63170);var y=r(84997);var b=Object.defineProperty;var x=(t,e)=>b(t,"name",{value:e,configurable:true});var C=(t,e)=>{for(var r in e)b(t,r,{get:e[r],enumerable:true})};var v={trace:0,debug:1,info:2,warn:3,error:4,fatal:5};var k={trace:x(((...t)=>{}),"trace"),debug:x(((...t)=>{}),"debug"),info:x(((...t)=>{}),"info"),warn:x(((...t)=>{}),"warn"),error:x(((...t)=>{}),"error"),fatal:x(((...t)=>{}),"fatal")};var w=x((function(t="fatal"){let e=v.fatal;if(typeof t==="string"){if(t.toLowerCase()in v){e=v[t]}}else if(typeof t==="number"){e=t}k.trace=()=>{};k.debug=()=>{};k.info=()=>{};k.warn=()=>{};k.error=()=>{};k.fatal=()=>{};if(e<=v.fatal){k.fatal=console.error?console.error.bind(console,S("FATAL"),"color: orange"):console.log.bind(console,"",S("FATAL"))}if(e<=v.error){k.error=console.error?console.error.bind(console,S("ERROR"),"color: orange"):console.log.bind(console,"",S("ERROR"))}if(e<=v.warn){k.warn=console.warn?console.warn.bind(console,S("WARN"),"color: orange"):console.log.bind(console,``,S("WARN"))}if(e<=v.info){k.info=console.info?console.info.bind(console,S("INFO"),"color: lightblue"):console.log.bind(console,"",S("INFO"))}if(e<=v.debug){k.debug=console.debug?console.debug.bind(console,S("DEBUG"),"color: lightgreen"):console.log.bind(console,"",S("DEBUG"))}if(e<=v.trace){k.trace=console.debug?console.debug.bind(console,S("TRACE"),"color: lightgreen"):console.log.bind(console,"",S("TRACE"))}}),"setLogLevel");var S=x((t=>{const e=a()().format("ss.SSS");return`%c${e} : ${t} : `}),"format");var A=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;var T=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi;var B=/\s*%%.*\n/gm;var L=class extends Error{static{x(this,"UnknownDiagramError")}constructor(t){super(t);this.name="UnknownDiagramError"}};var M={};var _=x((function(t,e){t=t.replace(A,"").replace(T,"").replace(B,"\n");for(const[r,{detector:i}]of Object.entries(M)){const a=i(t,e);if(a){return r}}throw new L(`No diagram type detected matching given configuration for text: ${t}`)}),"detectType");var F=x(((...t)=>{for(const{id:e,detector:r,loader:i}of t){$(e,r,i)}}),"registerLazyLoadedDiagrams");var $=x(((t,e,r)=>{if(M[t]){k.warn(`Detector with key ${t} already exists. Overwriting.`)}M[t]={detector:e,loader:r};k.debug(`Detector with key ${t} added${r?" with loader":""}`)}),"addDetector");var E=x((t=>M[t].loader),"getDiagramLoader");var O=x(((t,e,{depth:r=2,clobber:i=false}={})=>{const a={depth:r,clobber:i};if(Array.isArray(e)&&!Array.isArray(t)){e.forEach((e=>O(t,e,a)));return t}else if(Array.isArray(e)&&Array.isArray(t)){e.forEach((e=>{if(!t.includes(e)){t.push(e)}}));return t}if(t===void 0||r<=0){if(t!==void 0&&t!==null&&typeof t==="object"&&typeof e==="object"){return Object.assign(t,e)}else{return e}}if(e!==void 0&&typeof t==="object"&&typeof e==="object"){Object.keys(e).forEach((a=>{if(typeof e[a]==="object"&&(t[a]===void 0||typeof t[a]==="object")){if(t[a]===void 0){t[a]=Array.isArray(e[a])?[]:{}}t[a]=O(t[a],e[a],{depth:r-1,clobber:i})}else if(i||typeof t[a]!=="object"&&typeof e[a]!=="object"){t[a]=e[a]}}))}return t}),"assignWithDepth");var D=O;var I="#ffffff";var K="#f2f2f2";var R=x(((t,e)=>e?l(t,{s:-40,l:10}):l(t,{s:-40,l:-10})),"mkBorder");var P=class{static{x(this,"Theme")}constructor(){this.background="#f4f4f4";this.primaryColor="#fff4dd";this.noteBkgColor="#fff5ad";this.noteTextColor="#333";this.THEME_COLOR_LIMIT=12;this.fontFamily='"trebuchet ms", verdana, arial, sans-serif';this.fontSize="16px"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333");this.secondaryColor=this.secondaryColor||l(this.primaryColor,{h:-120});this.tertiaryColor=this.tertiaryColor||l(this.primaryColor,{h:180,l:5});this.primaryBorderColor=this.primaryBorderColor||R(this.primaryColor,this.darkMode);this.secondaryBorderColor=this.secondaryBorderColor||R(this.secondaryColor,this.darkMode);this.tertiaryBorderColor=this.tertiaryBorderColor||R(this.tertiaryColor,this.darkMode);this.noteBorderColor=this.noteBorderColor||R(this.noteBkgColor,this.darkMode);this.noteBkgColor=this.noteBkgColor||"#fff5ad";this.noteTextColor=this.noteTextColor||"#333";this.secondaryTextColor=this.secondaryTextColor||f(this.secondaryColor);this.tertiaryTextColor=this.tertiaryTextColor||f(this.tertiaryColor);this.lineColor=this.lineColor||f(this.background);this.arrowheadColor=this.arrowheadColor||f(this.background);this.textColor=this.textColor||this.primaryTextColor;this.border2=this.border2||this.tertiaryBorderColor;this.nodeBkg=this.nodeBkg||this.primaryColor;this.mainBkg=this.mainBkg||this.primaryColor;this.nodeBorder=this.nodeBorder||this.primaryBorderColor;this.clusterBkg=this.clusterBkg||this.tertiaryColor;this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor;this.defaultLinkColor=this.defaultLinkColor||this.lineColor;this.titleColor=this.titleColor||this.tertiaryTextColor;this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?(0,p.A)(this.secondaryColor,30):this.secondaryColor);this.nodeTextColor=this.nodeTextColor||this.primaryTextColor;this.actorBorder=this.actorBorder||this.primaryBorderColor;this.actorBkg=this.actorBkg||this.mainBkg;this.actorTextColor=this.actorTextColor||this.primaryTextColor;this.actorLineColor=this.actorLineColor||this.actorBorder;this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg;this.signalColor=this.signalColor||this.textColor;this.signalTextColor=this.signalTextColor||this.textColor;this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder;this.labelTextColor=this.labelTextColor||this.actorTextColor;this.loopTextColor=this.loopTextColor||this.actorTextColor;this.activationBorderColor=this.activationBorderColor||(0,p.A)(this.secondaryColor,10);this.activationBkgColor=this.activationBkgColor||this.secondaryColor;this.sequenceNumberColor=this.sequenceNumberColor||f(this.lineColor);this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor;this.altSectionBkgColor=this.altSectionBkgColor||"white";this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor;this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor;this.excludeBkgColor=this.excludeBkgColor||"#eeeeee";this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor;this.taskBkgColor=this.taskBkgColor||this.primaryColor;this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor;this.activeTaskBkgColor=this.activeTaskBkgColor||(0,g.A)(this.primaryColor,23);this.gridColor=this.gridColor||"lightgrey";this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey";this.doneTaskBorderColor=this.doneTaskBorderColor||"grey";this.critBorderColor=this.critBorderColor||"#ff8888";this.critBkgColor=this.critBkgColor||"red";this.todayLineColor=this.todayLineColor||"red";this.taskTextColor=this.taskTextColor||this.textColor;this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor;this.taskTextLightColor=this.taskTextLightColor||this.textColor;this.taskTextColor=this.taskTextColor||this.primaryTextColor;this.taskTextDarkColor=this.taskTextDarkColor||this.textColor;this.taskTextClickableColor=this.taskTextClickableColor||"#003163";this.personBorder=this.personBorder||this.primaryBorderColor;this.personBkg=this.personBkg||this.mainBkg;if(this.darkMode){this.rowOdd=this.rowOdd||(0,p.A)(this.mainBkg,5)||"#ffffff";this.rowEven=this.rowEven||(0,p.A)(this.mainBkg,10)}else{this.rowOdd=this.rowOdd||(0,g.A)(this.mainBkg,75)||"#ffffff";this.rowEven=this.rowEven||(0,g.A)(this.mainBkg,5)}this.transitionColor=this.transitionColor||this.lineColor;this.transitionLabelColor=this.transitionLabelColor||this.textColor;this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor;this.stateBkg=this.stateBkg||this.mainBkg;this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg;this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor;this.altBackground=this.altBackground||this.tertiaryColor;this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg;this.compositeBorder=this.compositeBorder||this.nodeBorder;this.innerEndBackground=this.nodeBorder;this.errorBkgColor=this.errorBkgColor||this.tertiaryColor;this.errorTextColor=this.errorTextColor||this.tertiaryTextColor;this.transitionColor=this.transitionColor||this.lineColor;this.specialStateColor=this.lineColor;this.cScale0=this.cScale0||this.primaryColor;this.cScale1=this.cScale1||this.secondaryColor;this.cScale2=this.cScale2||this.tertiaryColor;this.cScale3=this.cScale3||l(this.primaryColor,{h:30});this.cScale4=this.cScale4||l(this.primaryColor,{h:60});this.cScale5=this.cScale5||l(this.primaryColor,{h:90});this.cScale6=this.cScale6||l(this.primaryColor,{h:120});this.cScale7=this.cScale7||l(this.primaryColor,{h:150});this.cScale8=this.cScale8||l(this.primaryColor,{h:210,l:150});this.cScale9=this.cScale9||l(this.primaryColor,{h:270});this.cScale10=this.cScale10||l(this.primaryColor,{h:300});this.cScale11=this.cScale11||l(this.primaryColor,{h:330});if(this.darkMode){for(let t=0;t{this[e]=t[e]}));this.updateColors();e.forEach((e=>{this[e]=t[e]}))}};var z=x((t=>{const e=new P;e.calculate(t);return e}),"getThemeVariables");var q=class{static{x(this,"Theme")}constructor(){this.background="#333";this.primaryColor="#1f2020";this.secondaryColor=(0,g.A)(this.primaryColor,16);this.tertiaryColor=l(this.primaryColor,{h:-160});this.primaryBorderColor=f(this.background);this.secondaryBorderColor=R(this.secondaryColor,this.darkMode);this.tertiaryBorderColor=R(this.tertiaryColor,this.darkMode);this.primaryTextColor=f(this.primaryColor);this.secondaryTextColor=f(this.secondaryColor);this.tertiaryTextColor=f(this.tertiaryColor);this.lineColor=f(this.background);this.textColor=f(this.background);this.mainBkg="#1f2020";this.secondBkg="calculated";this.mainContrastColor="lightgrey";this.darkTextColor=(0,g.A)(f("#323D47"),10);this.lineColor="calculated";this.border1="#ccc";this.border2=(0,c.A)(255,255,255,.25);this.arrowheadColor="calculated";this.fontFamily='"trebuchet ms", verdana, arial, sans-serif';this.fontSize="16px";this.labelBackground="#181818";this.textColor="#ccc";this.THEME_COLOR_LIMIT=12;this.nodeBkg="calculated";this.nodeBorder="calculated";this.clusterBkg="calculated";this.clusterBorder="calculated";this.defaultLinkColor="calculated";this.titleColor="#F9FFFE";this.edgeLabelBackground="calculated";this.actorBorder="calculated";this.actorBkg="calculated";this.actorTextColor="calculated";this.actorLineColor="calculated";this.signalColor="calculated";this.signalTextColor="calculated";this.labelBoxBkgColor="calculated";this.labelBoxBorderColor="calculated";this.labelTextColor="calculated";this.loopTextColor="calculated";this.noteBorderColor="calculated";this.noteBkgColor="#fff5ad";this.noteTextColor="calculated";this.activationBorderColor="calculated";this.activationBkgColor="calculated";this.sequenceNumberColor="black";this.sectionBkgColor=(0,p.A)("#EAE8D9",30);this.altSectionBkgColor="calculated";this.sectionBkgColor2="#EAE8D9";this.excludeBkgColor=(0,p.A)(this.sectionBkgColor,10);this.taskBorderColor=(0,c.A)(255,255,255,70);this.taskBkgColor="calculated";this.taskTextColor="calculated";this.taskTextLightColor="calculated";this.taskTextOutsideColor="calculated";this.taskTextClickableColor="#003163";this.activeTaskBorderColor=(0,c.A)(255,255,255,50);this.activeTaskBkgColor="#81B1DB";this.gridColor="calculated";this.doneTaskBkgColor="calculated";this.doneTaskBorderColor="grey";this.critBorderColor="#E83737";this.critBkgColor="#E83737";this.taskTextDarkColor="calculated";this.todayLineColor="#DB5757";this.personBorder=this.primaryBorderColor;this.personBkg=this.mainBkg;this.archEdgeColor="calculated";this.archEdgeArrowColor="calculated";this.archEdgeWidth="3";this.archGroupBorderColor=this.primaryBorderColor;this.archGroupBorderWidth="2px";this.rowOdd=this.rowOdd||(0,g.A)(this.mainBkg,5)||"#ffffff";this.rowEven=this.rowEven||(0,p.A)(this.mainBkg,10);this.labelColor="calculated";this.errorBkgColor="#a44141";this.errorTextColor="#ddd"}updateColors(){this.secondBkg=(0,g.A)(this.mainBkg,16);this.lineColor=this.mainContrastColor;this.arrowheadColor=this.mainContrastColor;this.nodeBkg=this.mainBkg;this.nodeBorder=this.border1;this.clusterBkg=this.secondBkg;this.clusterBorder=this.border2;this.defaultLinkColor=this.lineColor;this.edgeLabelBackground=(0,g.A)(this.labelBackground,25);this.actorBorder=this.border1;this.actorBkg=this.mainBkg;this.actorTextColor=this.mainContrastColor;this.actorLineColor=this.actorBorder;this.signalColor=this.mainContrastColor;this.signalTextColor=this.mainContrastColor;this.labelBoxBkgColor=this.actorBkg;this.labelBoxBorderColor=this.actorBorder;this.labelTextColor=this.mainContrastColor;this.loopTextColor=this.mainContrastColor;this.noteBorderColor=this.secondaryBorderColor;this.noteBkgColor=this.secondBkg;this.noteTextColor=this.secondaryTextColor;this.activationBorderColor=this.border1;this.activationBkgColor=this.secondBkg;this.altSectionBkgColor=this.background;this.taskBkgColor=(0,g.A)(this.mainBkg,23);this.taskTextColor=this.darkTextColor;this.taskTextLightColor=this.mainContrastColor;this.taskTextOutsideColor=this.taskTextLightColor;this.gridColor=this.mainContrastColor;this.doneTaskBkgColor=this.mainContrastColor;this.taskTextDarkColor=this.darkTextColor;this.archEdgeColor=this.lineColor;this.archEdgeArrowColor=this.lineColor;this.transitionColor=this.transitionColor||this.lineColor;this.transitionLabelColor=this.transitionLabelColor||this.textColor;this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor;this.stateBkg=this.stateBkg||this.mainBkg;this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg;this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor;this.altBackground=this.altBackground||"#555";this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg;this.compositeBorder=this.compositeBorder||this.nodeBorder;this.innerEndBackground=this.primaryBorderColor;this.specialStateColor="#f4f4f4";this.errorBkgColor=this.errorBkgColor||this.tertiaryColor;this.errorTextColor=this.errorTextColor||this.tertiaryTextColor;this.fillType0=this.primaryColor;this.fillType1=this.secondaryColor;this.fillType2=l(this.primaryColor,{h:64});this.fillType3=l(this.secondaryColor,{h:64});this.fillType4=l(this.primaryColor,{h:-64});this.fillType5=l(this.secondaryColor,{h:-64});this.fillType6=l(this.primaryColor,{h:128});this.fillType7=l(this.secondaryColor,{h:128});this.cScale1=this.cScale1||"#0b0000";this.cScale2=this.cScale2||"#4d1037";this.cScale3=this.cScale3||"#3f5258";this.cScale4=this.cScale4||"#4f2f1b";this.cScale5=this.cScale5||"#6e0a0a";this.cScale6=this.cScale6||"#3b0048";this.cScale7=this.cScale7||"#995a01";this.cScale8=this.cScale8||"#154706";this.cScale9=this.cScale9||"#161722";this.cScale10=this.cScale10||"#00296f";this.cScale11=this.cScale11||"#01629c";this.cScale12=this.cScale12||"#010029";this.cScale0=this.cScale0||this.primaryColor;this.cScale1=this.cScale1||this.secondaryColor;this.cScale2=this.cScale2||this.tertiaryColor;this.cScale3=this.cScale3||l(this.primaryColor,{h:30});this.cScale4=this.cScale4||l(this.primaryColor,{h:60});this.cScale5=this.cScale5||l(this.primaryColor,{h:90});this.cScale6=this.cScale6||l(this.primaryColor,{h:120});this.cScale7=this.cScale7||l(this.primaryColor,{h:150});this.cScale8=this.cScale8||l(this.primaryColor,{h:210});this.cScale9=this.cScale9||l(this.primaryColor,{h:270});this.cScale10=this.cScale10||l(this.primaryColor,{h:300});this.cScale11=this.cScale11||l(this.primaryColor,{h:330});for(let t=0;t{this[e]=t[e]}));this.updateColors();e.forEach((e=>{this[e]=t[e]}))}};var N=x((t=>{const e=new q;e.calculate(t);return e}),"getThemeVariables");var W=class{static{x(this,"Theme")}constructor(){this.background="#f4f4f4";this.primaryColor="#ECECFF";this.secondaryColor=l(this.primaryColor,{h:120});this.secondaryColor="#ffffde";this.tertiaryColor=l(this.primaryColor,{h:-160});this.primaryBorderColor=R(this.primaryColor,this.darkMode);this.secondaryBorderColor=R(this.secondaryColor,this.darkMode);this.tertiaryBorderColor=R(this.tertiaryColor,this.darkMode);this.primaryTextColor=f(this.primaryColor);this.secondaryTextColor=f(this.secondaryColor);this.tertiaryTextColor=f(this.tertiaryColor);this.lineColor=f(this.background);this.textColor=f(this.background);this.background="white";this.mainBkg="#ECECFF";this.secondBkg="#ffffde";this.lineColor="#333333";this.border1="#9370DB";this.border2="#aaaa33";this.arrowheadColor="#333333";this.fontFamily='"trebuchet ms", verdana, arial, sans-serif';this.fontSize="16px";this.labelBackground="rgba(232,232,232, 0.8)";this.textColor="#333";this.THEME_COLOR_LIMIT=12;this.nodeBkg="calculated";this.nodeBorder="calculated";this.clusterBkg="calculated";this.clusterBorder="calculated";this.defaultLinkColor="calculated";this.titleColor="calculated";this.edgeLabelBackground="calculated";this.actorBorder="calculated";this.actorBkg="calculated";this.actorTextColor="black";this.actorLineColor="calculated";this.signalColor="calculated";this.signalTextColor="calculated";this.labelBoxBkgColor="calculated";this.labelBoxBorderColor="calculated";this.labelTextColor="calculated";this.loopTextColor="calculated";this.noteBorderColor="calculated";this.noteBkgColor="#fff5ad";this.noteTextColor="calculated";this.activationBorderColor="#666";this.activationBkgColor="#f4f4f4";this.sequenceNumberColor="white";this.sectionBkgColor="calculated";this.altSectionBkgColor="calculated";this.sectionBkgColor2="calculated";this.excludeBkgColor="#eeeeee";this.taskBorderColor="calculated";this.taskBkgColor="calculated";this.taskTextLightColor="calculated";this.taskTextColor=this.taskTextLightColor;this.taskTextDarkColor="calculated";this.taskTextOutsideColor=this.taskTextDarkColor;this.taskTextClickableColor="calculated";this.activeTaskBorderColor="calculated";this.activeTaskBkgColor="calculated";this.gridColor="calculated";this.doneTaskBkgColor="calculated";this.doneTaskBorderColor="calculated";this.critBorderColor="calculated";this.critBkgColor="calculated";this.todayLineColor="calculated";this.sectionBkgColor=(0,c.A)(102,102,255,.49);this.altSectionBkgColor="white";this.sectionBkgColor2="#fff400";this.taskBorderColor="#534fbc";this.taskBkgColor="#8a90dd";this.taskTextLightColor="white";this.taskTextColor="calculated";this.taskTextDarkColor="black";this.taskTextOutsideColor="calculated";this.taskTextClickableColor="#003163";this.activeTaskBorderColor="#534fbc";this.activeTaskBkgColor="#bfc7ff";this.gridColor="lightgrey";this.doneTaskBkgColor="lightgrey";this.doneTaskBorderColor="grey";this.critBorderColor="#ff8888";this.critBkgColor="red";this.todayLineColor="red";this.personBorder=this.primaryBorderColor;this.personBkg=this.mainBkg;this.archEdgeColor="calculated";this.archEdgeArrowColor="calculated";this.archEdgeWidth="3";this.archGroupBorderColor=this.primaryBorderColor;this.archGroupBorderWidth="2px";this.rowOdd="calculated";this.rowEven="calculated";this.labelColor="black";this.errorBkgColor="#552222";this.errorTextColor="#552222";this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor;this.cScale1=this.cScale1||this.secondaryColor;this.cScale2=this.cScale2||this.tertiaryColor;this.cScale3=this.cScale3||l(this.primaryColor,{h:30});this.cScale4=this.cScale4||l(this.primaryColor,{h:60});this.cScale5=this.cScale5||l(this.primaryColor,{h:90});this.cScale6=this.cScale6||l(this.primaryColor,{h:120});this.cScale7=this.cScale7||l(this.primaryColor,{h:150});this.cScale8=this.cScale8||l(this.primaryColor,{h:210});this.cScale9=this.cScale9||l(this.primaryColor,{h:270});this.cScale10=this.cScale10||l(this.primaryColor,{h:300});this.cScale11=this.cScale11||l(this.primaryColor,{h:330});this["cScalePeer1"]=this["cScalePeer1"]||(0,p.A)(this.secondaryColor,45);this["cScalePeer2"]=this["cScalePeer2"]||(0,p.A)(this.tertiaryColor,40);for(let t=0;t{if(this[t]==="calculated"){this[t]=void 0}}));if(typeof t!=="object"){this.updateColors();return}const e=Object.keys(t);e.forEach((e=>{this[e]=t[e]}));this.updateColors();e.forEach((e=>{this[e]=t[e]}))}};var j=x((t=>{const e=new W;e.calculate(t);return e}),"getThemeVariables");var H=class{static{x(this,"Theme")}constructor(){this.background="#f4f4f4";this.primaryColor="#cde498";this.secondaryColor="#cdffb2";this.background="white";this.mainBkg="#cde498";this.secondBkg="#cdffb2";this.lineColor="green";this.border1="#13540c";this.border2="#6eaa49";this.arrowheadColor="green";this.fontFamily='"trebuchet ms", verdana, arial, sans-serif';this.fontSize="16px";this.tertiaryColor=(0,g.A)("#cde498",10);this.primaryBorderColor=R(this.primaryColor,this.darkMode);this.secondaryBorderColor=R(this.secondaryColor,this.darkMode);this.tertiaryBorderColor=R(this.tertiaryColor,this.darkMode);this.primaryTextColor=f(this.primaryColor);this.secondaryTextColor=f(this.secondaryColor);this.tertiaryTextColor=f(this.primaryColor);this.lineColor=f(this.background);this.textColor=f(this.background);this.THEME_COLOR_LIMIT=12;this.nodeBkg="calculated";this.nodeBorder="calculated";this.clusterBkg="calculated";this.clusterBorder="calculated";this.defaultLinkColor="calculated";this.titleColor="#333";this.edgeLabelBackground="#e8e8e8";this.actorBorder="calculated";this.actorBkg="calculated";this.actorTextColor="black";this.actorLineColor="calculated";this.signalColor="#333";this.signalTextColor="#333";this.labelBoxBkgColor="calculated";this.labelBoxBorderColor="#326932";this.labelTextColor="calculated";this.loopTextColor="calculated";this.noteBorderColor="calculated";this.noteBkgColor="#fff5ad";this.noteTextColor="calculated";this.activationBorderColor="#666";this.activationBkgColor="#f4f4f4";this.sequenceNumberColor="white";this.sectionBkgColor="#6eaa49";this.altSectionBkgColor="white";this.sectionBkgColor2="#6eaa49";this.excludeBkgColor="#eeeeee";this.taskBorderColor="calculated";this.taskBkgColor="#487e3a";this.taskTextLightColor="white";this.taskTextColor="calculated";this.taskTextDarkColor="black";this.taskTextOutsideColor="calculated";this.taskTextClickableColor="#003163";this.activeTaskBorderColor="calculated";this.activeTaskBkgColor="calculated";this.gridColor="lightgrey";this.doneTaskBkgColor="lightgrey";this.doneTaskBorderColor="grey";this.critBorderColor="#ff8888";this.critBkgColor="red";this.todayLineColor="red";this.personBorder=this.primaryBorderColor;this.personBkg=this.mainBkg;this.archEdgeColor="calculated";this.archEdgeArrowColor="calculated";this.archEdgeWidth="3";this.archGroupBorderColor=this.primaryBorderColor;this.archGroupBorderWidth="2px";this.labelColor="black";this.errorBkgColor="#552222";this.errorTextColor="#552222"}updateColors(){this.actorBorder=(0,p.A)(this.mainBkg,20);this.actorBkg=this.mainBkg;this.labelBoxBkgColor=this.actorBkg;this.labelTextColor=this.actorTextColor;this.loopTextColor=this.actorTextColor;this.noteBorderColor=this.border2;this.noteTextColor=this.actorTextColor;this.actorLineColor=this.actorBorder;this.cScale0=this.cScale0||this.primaryColor;this.cScale1=this.cScale1||this.secondaryColor;this.cScale2=this.cScale2||this.tertiaryColor;this.cScale3=this.cScale3||l(this.primaryColor,{h:30});this.cScale4=this.cScale4||l(this.primaryColor,{h:60});this.cScale5=this.cScale5||l(this.primaryColor,{h:90});this.cScale6=this.cScale6||l(this.primaryColor,{h:120});this.cScale7=this.cScale7||l(this.primaryColor,{h:150});this.cScale8=this.cScale8||l(this.primaryColor,{h:210});this.cScale9=this.cScale9||l(this.primaryColor,{h:270});this.cScale10=this.cScale10||l(this.primaryColor,{h:300});this.cScale11=this.cScale11||l(this.primaryColor,{h:330});this["cScalePeer1"]=this["cScalePeer1"]||(0,p.A)(this.secondaryColor,45);this["cScalePeer2"]=this["cScalePeer2"]||(0,p.A)(this.tertiaryColor,40);for(let t=0;t{this[e]=t[e]}));this.updateColors();e.forEach((e=>{this[e]=t[e]}))}};var Y=x((t=>{const e=new H;e.calculate(t);return e}),"getThemeVariables");var U=class{static{x(this,"Theme")}constructor(){this.primaryColor="#eee";this.contrast="#707070";this.secondaryColor=(0,g.A)(this.contrast,55);this.background="#ffffff";this.tertiaryColor=l(this.primaryColor,{h:-160});this.primaryBorderColor=R(this.primaryColor,this.darkMode);this.secondaryBorderColor=R(this.secondaryColor,this.darkMode);this.tertiaryBorderColor=R(this.tertiaryColor,this.darkMode);this.primaryTextColor=f(this.primaryColor);this.secondaryTextColor=f(this.secondaryColor);this.tertiaryTextColor=f(this.tertiaryColor);this.lineColor=f(this.background);this.textColor=f(this.background);this.mainBkg="#eee";this.secondBkg="calculated";this.lineColor="#666";this.border1="#999";this.border2="calculated";this.note="#ffa";this.text="#333";this.critical="#d42";this.done="#bbb";this.arrowheadColor="#333333";this.fontFamily='"trebuchet ms", verdana, arial, sans-serif';this.fontSize="16px";this.THEME_COLOR_LIMIT=12;this.nodeBkg="calculated";this.nodeBorder="calculated";this.clusterBkg="calculated";this.clusterBorder="calculated";this.defaultLinkColor="calculated";this.titleColor="calculated";this.edgeLabelBackground="white";this.actorBorder="calculated";this.actorBkg="calculated";this.actorTextColor="calculated";this.actorLineColor=this.actorBorder;this.signalColor="calculated";this.signalTextColor="calculated";this.labelBoxBkgColor="calculated";this.labelBoxBorderColor="calculated";this.labelTextColor="calculated";this.loopTextColor="calculated";this.noteBorderColor="calculated";this.noteBkgColor="calculated";this.noteTextColor="calculated";this.activationBorderColor="#666";this.activationBkgColor="#f4f4f4";this.sequenceNumberColor="white";this.sectionBkgColor="calculated";this.altSectionBkgColor="white";this.sectionBkgColor2="calculated";this.excludeBkgColor="#eeeeee";this.taskBorderColor="calculated";this.taskBkgColor="calculated";this.taskTextLightColor="white";this.taskTextColor="calculated";this.taskTextDarkColor="calculated";this.taskTextOutsideColor="calculated";this.taskTextClickableColor="#003163";this.activeTaskBorderColor="calculated";this.activeTaskBkgColor="calculated";this.gridColor="calculated";this.doneTaskBkgColor="calculated";this.doneTaskBorderColor="calculated";this.critBkgColor="calculated";this.critBorderColor="calculated";this.todayLineColor="calculated";this.personBorder=this.primaryBorderColor;this.personBkg=this.mainBkg;this.archEdgeColor="calculated";this.archEdgeArrowColor="calculated";this.archEdgeWidth="3";this.archGroupBorderColor=this.primaryBorderColor;this.archGroupBorderWidth="2px";this.rowOdd=this.rowOdd||(0,g.A)(this.mainBkg,75)||"#ffffff";this.rowEven=this.rowEven||"#f4f4f4";this.labelColor="black";this.errorBkgColor="#552222";this.errorTextColor="#552222"}updateColors(){this.secondBkg=(0,g.A)(this.contrast,55);this.border2=this.contrast;this.actorBorder=(0,g.A)(this.border1,23);this.actorBkg=this.mainBkg;this.actorTextColor=this.text;this.actorLineColor=this.actorBorder;this.signalColor=this.text;this.signalTextColor=this.text;this.labelBoxBkgColor=this.actorBkg;this.labelBoxBorderColor=this.actorBorder;this.labelTextColor=this.text;this.loopTextColor=this.text;this.noteBorderColor="#999";this.noteBkgColor="#666";this.noteTextColor="#fff";this.cScale0=this.cScale0||"#555";this.cScale1=this.cScale1||"#F4F4F4";this.cScale2=this.cScale2||"#555";this.cScale3=this.cScale3||"#BBB";this.cScale4=this.cScale4||"#777";this.cScale5=this.cScale5||"#999";this.cScale6=this.cScale6||"#DDD";this.cScale7=this.cScale7||"#FFF";this.cScale8=this.cScale8||"#DDD";this.cScale9=this.cScale9||"#BBB";this.cScale10=this.cScale10||"#999";this.cScale11=this.cScale11||"#777";for(let t=0;t{this[e]=t[e]}));this.updateColors();e.forEach((e=>{this[e]=t[e]}))}};var G=x((t=>{const e=new U;e.calculate(t);return e}),"getThemeVariables");var V={base:{getThemeVariables:z},dark:{getThemeVariables:N},default:{getThemeVariables:j},forest:{getThemeVariables:Y},neutral:{getThemeVariables:G}};var X={flowchart:{useMaxWidth:true,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:true,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:true,hideUnusedParticipants:false,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:true,forceMenus:false,bottomMarginAdj:1,rightAngles:false,showSequenceNumbers:false,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:false,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:true,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:false,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:true,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:false,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:true,titleTopMargin:25,arrowMarkerAbsolute:false,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:false,hideEmptyMembersBox:false},state:{useMaxWidth:true,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:true,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:true,textPosition:.75},quadrantChart:{useMaxWidth:true,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:true,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:true,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:true,labelFontSize:14,labelPadding:5,showTitle:true,titleFontSize:16,titlePadding:5,showTick:true,tickLength:5,tickWidth:2,showAxisLine:true,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:true,labelFontSize:14,labelPadding:5,showTitle:true,titleFontSize:16,titlePadding:5,showTick:true,tickLength:5,tickWidth:2,showAxisLine:true,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:true,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:true,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:true,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:true,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:false,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:false},gitGraph:{useMaxWidth:true,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:true,showBranches:true,rotateCommitLabel:true,parallelCommits:false,arrowMarkerAbsolute:false},c4:{useMaxWidth:true,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:true,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:true,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:true,prefix:"",suffix:""},block:{useMaxWidth:true,padding:8},packet:{useMaxWidth:true,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:true,paddingX:5,paddingY:5},architecture:{useMaxWidth:true,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:true,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:false,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:true,arrowMarkerAbsolute:false,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:false,forceLegacyMathML:false,deterministicIds:false,fontSize:16,markdownAutoWrap:true,suppressErrorRendering:false};var Z={...X,deterministicIDSeed:void 0,elk:{mergeEdges:false,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:V.default.getThemeVariables(),sequence:{...X.sequence,messageFont:x((function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}),"messageFont"),noteFont:x((function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}}),"noteFont"),actorFont:x((function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}),"actorFont")},class:{hideEmptyMembersBox:false},gantt:{...X.gantt,tickInterval:void 0,useWidth:void 0},c4:{...X.c4,useWidth:void 0,personFont:x((function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}}),"personFont"),external_personFont:x((function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}}),"external_personFont"),systemFont:x((function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}}),"systemFont"),external_systemFont:x((function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}}),"external_systemFont"),system_dbFont:x((function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}}),"system_dbFont"),external_system_dbFont:x((function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}}),"external_system_dbFont"),system_queueFont:x((function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}}),"system_queueFont"),external_system_queueFont:x((function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}}),"external_system_queueFont"),containerFont:x((function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}}),"containerFont"),external_containerFont:x((function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}}),"external_containerFont"),container_dbFont:x((function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}}),"container_dbFont"),external_container_dbFont:x((function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}}),"external_container_dbFont"),container_queueFont:x((function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}}),"container_queueFont"),external_container_queueFont:x((function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}}),"external_container_queueFont"),componentFont:x((function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}}),"componentFont"),external_componentFont:x((function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}}),"external_componentFont"),component_dbFont:x((function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}}),"component_dbFont"),external_component_dbFont:x((function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}}),"external_component_dbFont"),component_queueFont:x((function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}}),"component_queueFont"),external_component_queueFont:x((function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}}),"external_component_queueFont"),boundaryFont:x((function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}}),"boundaryFont"),messageFont:x((function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}),"messageFont")},pie:{...X.pie,useWidth:984},xyChart:{...X.xyChart,useWidth:void 0},requirement:{...X.requirement,useWidth:void 0},packet:{...X.packet},radar:{...X.radar}};var J=x(((t,e="")=>Object.keys(t).reduce(((r,i)=>{if(Array.isArray(t[i])){return r}else if(typeof t[i]==="object"&&t[i]!==null){return[...r,e+i,...J(t[i],"")]}return[...r,e+i]}),[])),"keyify");var Q=new Set(J(Z,""));var tt=Z;var et=x((t=>{k.debug("sanitizeDirective called with",t);if(typeof t!=="object"||t==null){return}if(Array.isArray(t)){t.forEach((t=>et(t)));return}for(const e of Object.keys(t)){k.debug("Checking key",e);if(e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Q.has(e)||t[e]==null){k.debug("sanitize deleting key: ",e);delete t[e];continue}if(typeof t[e]==="object"){k.debug("sanitizing object",e);et(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r){if(e.includes(i)){k.debug("sanitizing css option",e);t[e]=rt(t[e])}}}if(t.themeVariables){for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];if(r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)){t.themeVariables[e]=""}}}k.debug("After sanitization",t)}),"sanitizeDirective");var rt=x((t=>{let e=0;let r=0;for(const i of t){if(e{let r=D({},t);let i={};for(const a of e){gt(a);i=D(i,a)}r=D(r,i);if(i.theme&&i.theme in V){const t=D({},nt);const e=D(t.themeVariables||{},i.themeVariables);if(r.theme&&r.theme in V){r.themeVariables=V[r.theme].getThemeVariables(e)}}st=r;vt(st);return st}),"updateCurrentConfig");var ct=x((t=>{at=D({},it);at=D(at,t);if(t.theme&&V[t.theme]){at.themeVariables=V[t.theme].getThemeVariables(t.themeVariables)}lt(at,ot);return at}),"setSiteConfig");var ht=x((t=>{nt=D({},t)}),"saveConfigFromInitialize");var dt=x((t=>{at=D(at,t);lt(at,ot);return at}),"updateSiteConfig");var ut=x((()=>D({},at)),"getSiteConfig");var ft=x((t=>{vt(t);D(st,t);return pt()}),"setConfig");var pt=x((()=>D({},st)),"getConfig");var gt=x((t=>{if(!t){return}["secure",...at.secure??[]].forEach((e=>{if(Object.hasOwn(t,e)){k.debug(`Denied attempt to modify a secure key ${e}`,t[e]);delete t[e]}}));Object.keys(t).forEach((e=>{if(e.startsWith("__")){delete t[e]}}));Object.keys(t).forEach((e=>{if(typeof t[e]==="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))){delete t[e]}if(typeof t[e]==="object"){gt(t[e])}}))}),"sanitize");var mt=x((t=>{et(t);if(t.fontFamily&&!t.themeVariables?.fontFamily){t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}}ot.push(t);lt(at,ot)}),"addDirective");var yt=x(((t=at)=>{ot=[];lt(t,ot)}),"reset");var bt={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."};var xt={};var Ct=x((t=>{if(xt[t]){return}k.warn(bt[t]);xt[t]=true}),"issueWarning");var vt=x((t=>{if(!t){return}if(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup){Ct("LAZY_LOAD_DEPRECATED")}}),"checkConfig");var kt=//gi;var wt=x((t=>{if(!t){return[""]}const e=Et(t).replace(/\\n/g,"#br#");return e.split("#br#")}),"getRows");var St=(()=>{let t=false;return()=>{if(!t){At();t=true}}})();function At(){const t="data-temp-href-target";y.A.addHook("beforeSanitizeAttributes",(e=>{if(e instanceof Element&&e.tagName==="A"&&e.hasAttribute("target")){e.setAttribute(t,e.getAttribute("target")??"")}}));y.A.addHook("afterSanitizeAttributes",(e=>{if(e instanceof Element&&e.tagName==="A"&&e.hasAttribute(t)){e.setAttribute("target",e.getAttribute(t)??"");e.removeAttribute(t);if(e.getAttribute("target")==="_blank"){e.setAttribute("rel","noopener")}}}))}x(At,"setupDompurifyHooks");var Tt=x((t=>{St();const e=y.A.sanitize(t);return e}),"removeScript");var Bt=x(((t,e)=>{if(e.flowchart?.htmlLabels!==false){const r=e.securityLevel;if(r==="antiscript"||r==="strict"){t=Tt(t)}else if(r!=="loose"){t=Et(t);t=t.replace(//g,">");t=t.replace(/=/g,"=");t=$t(t)}}return t}),"sanitizeMore");var Lt=x(((t,e)=>{if(!t){return t}if(e.dompurifyConfig){t=y.A.sanitize(Bt(t,e),e.dompurifyConfig).toString()}else{t=y.A.sanitize(Bt(t,e),{FORBID_TAGS:["style"]}).toString()}return t}),"sanitizeText");var Mt=x(((t,e)=>{if(typeof t==="string"){return Lt(t,e)}return t.flat().map((t=>Lt(t,e)))}),"sanitizeTextOrArray");var _t=x((t=>kt.test(t)),"hasBreaks");var Ft=x((t=>t.split(kt)),"splitBreaks");var $t=x((t=>t.replace(/#br#/g,"
")),"placeholderToBreak");var Et=x((t=>t.replace(kt,"#br#")),"breakToPlaceholder");var Ot=x((t=>{let e="";if(t){e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search;e=e.replaceAll(/\(/g,"\\(");e=e.replaceAll(/\)/g,"\\)")}return e}),"getUrl");var Dt=x((t=>t===false||["false","null","0"].includes(String(t).trim().toLowerCase())?false:true),"evaluate");var It=x((function(...t){const e=t.filter((t=>!isNaN(t)));return Math.max(...e)}),"getMax");var Kt=x((function(...t){const e=t.filter((t=>!isNaN(t)));return Math.min(...e)}),"getMin");var Rt=x((function(t){const e=t.split(/(,)/);const r=[];for(let i=0;i0&&i+1Math.max(0,t.split(e).length-1)),"countOccurrence");var zt=x(((t,e)=>{const r=Pt(t,"~");const i=Pt(e,"~");return r===1&&i===1}),"shouldCombineSets");var qt=x((t=>{const e=Pt(t,"~");let r=false;if(e<=1){return t}if(e%2!==0&&t.startsWith("~")){t=t.substring(1);r=true}const i=[...t];let a=i.indexOf("~");let n=i.lastIndexOf("~");while(a!==-1&&n!==-1&&a!==n){i[a]="<";i[n]=">";a=i.indexOf("~");n=i.lastIndexOf("~")}if(r){i.unshift("~")}return i.join("")}),"processSet");var Nt=x((()=>window.MathMLElement!==void 0),"isMathMLSupported");var Wt=/\$\$(.*)\$\$/g;var jt=x((t=>(t.match(Wt)?.length??0)>0),"hasKatex");var Ht=x((async(t,e)=>{t=await Yt(t,e);const r=document.createElement("div");r.innerHTML=t;r.id="katex-temp";r.style.visibility="hidden";r.style.position="absolute";r.style.top="0";const i=document.querySelector("body");i?.insertAdjacentElement("beforeend",r);const a={width:r.clientWidth,height:r.clientHeight};r.remove();return a}),"calculateMathMLDimensions");var Yt=x((async(t,e)=>{if(!jt(t)){return t}if(!(Nt()||e.legacyMathML||e.forceLegacyMathML)){return t.replace(Wt,"MathML is unsupported in this environment.")}const{default:i}=await r.e(5489).then(r.bind(r,25489));const a=e.forceLegacyMathML||!Nt()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(kt).map((t=>jt(t)?`
${t}
`:`
${t}
`)).join("").replace(Wt,((t,e)=>i.renderToString(e,{throwOnError:true,displayMode:true,output:a}).replace(/\n/g," ").replace(//g,"")))}),"renderKatex");var Ut={getRows:wt,sanitizeText:Lt,sanitizeTextOrArray:Mt,hasBreaks:_t,splitBreaks:Ft,lineBreakRegex:kt,removeScript:Tt,getUrl:Ot,evaluate:Dt,getMax:It,getMin:Kt};var Gt=x((function(t,e){for(let r of e){t.attr(r[0],r[1])}}),"d3Attrs");var Vt=x((function(t,e,r){let i=new Map;if(r){i.set("width","100%");i.set("style",`max-width: ${e}px;`)}else{i.set("height",t);i.set("width",e)}return i}),"calculateSvgSizeAttrs");var Xt=x((function(t,e,r,i){const a=Vt(e,r,i);Gt(t,a)}),"configureSvgSize");var Zt=x((function(t,e,r,i){const a=e.node().getBBox();const n=a.width;const o=a.height;k.info(`SVG bounds: ${n}x${o}`,a);let s=0;let l=0;k.info(`Graph bounds: ${s}x${l}`,t);s=n+r*2;l=o+r*2;k.info(`Calculated bounds: ${s}x${l}`);Xt(e,l,s,i);const c=`${a.x-r} ${a.y-r} ${a.width+2*r} ${a.height+2*r}`;e.attr("viewBox",c)}),"setupGraphViewbox");var Jt={};var Qt=x(((t,e,r)=>{let i="";if(t in Jt&&Jt[t]){i=Jt[t](r)}else{k.warn(`No theme found for ${t}`)}return` & {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n fill: ${r.textColor}\n }\n @keyframes edge-animation-frame {\n from {\n stroke-dashoffset: 0;\n }\n }\n @keyframes dash {\n to {\n stroke-dashoffset: 0;\n }\n }\n & .edge-animation-slow {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 50s linear infinite;\n stroke-linecap: round;\n }\n & .edge-animation-fast {\n stroke-dasharray: 9,5 !important;\n stroke-dashoffset: 900;\n animation: dash 20s linear infinite;\n stroke-linecap: round;\n }\n /* Classes common for multiple diagrams */\n\n & .error-icon {\n fill: ${r.errorBkgColor};\n }\n & .error-text {\n fill: ${r.errorTextColor};\n stroke: ${r.errorTextColor};\n }\n\n & .edge-thickness-normal {\n stroke-width: 1px;\n }\n & .edge-thickness-thick {\n stroke-width: 3.5px\n }\n & .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n & .edge-thickness-invisible {\n stroke-width: 0;\n fill: none;\n }\n & .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n & .marker {\n fill: ${r.lineColor};\n stroke: ${r.lineColor};\n }\n & .marker.cross {\n stroke: ${r.lineColor};\n }\n\n & svg {\n font-family: ${r.fontFamily};\n font-size: ${r.fontSize};\n }\n & p {\n margin: 0\n }\n\n ${i}\n\n ${e}\n`}),"getStyles");var te=x(((t,e)=>{if(e!==void 0){Jt[t]=e}}),"addStylesForDiagram");var ee=Qt;var re={};C(re,{clear:()=>se,getAccDescription:()=>de,getAccTitle:()=>ce,getDiagramTitle:()=>fe,setAccDescription:()=>he,setAccTitle:()=>le,setDiagramTitle:()=>ue});var ie="";var ae="";var ne="";var oe=x((t=>Lt(t,pt())),"sanitizeText");var se=x((()=>{ie="";ne="";ae=""}),"clear");var le=x((t=>{ie=oe(t).replace(/^\s+/g,"")}),"setAccTitle");var ce=x((()=>ie),"getAccTitle");var he=x((t=>{ne=oe(t).replace(/\n\s+/g,"\n")}),"setAccDescription");var de=x((()=>ne),"getAccDescription");var ue=x((t=>{ae=oe(t)}),"setDiagramTitle");var fe=x((()=>ae),"getDiagramTitle");var pe=k;var ge=w;var me=pt;var ye=ft;var be=it;var xe=x((t=>Lt(t,me())),"sanitizeText");var Ce=Zt;var ve=x((()=>re),"getCommonDb");var ke={};var we=x(((t,e,r)=>{if(ke[t]){pe.warn(`Diagram with id ${t} already registered. Overwriting.`)}ke[t]=e;if(r){$(t,r)}te(t,e.styles);e.injectUtils?.(pe,ge,me,xe,Ce,ve(),(()=>{}))}),"registerDiagram");var Se=x((t=>{if(t in ke){return ke[t]}throw new Ae(t)}),"getDiagram");var Ae=class extends Error{static{x(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}},90227:(t,e,r)=>{"use strict";r.r(e);r.d(e,{default:()=>la});var i=r(97366);var a=r(94065);var n=r(33416);var o=r(94746);var s=r(20778);var l=r(57590);var c=r(68232);var h=r(76261);var d=r(96049);var u=r(59357);var f=r(93113);var p=r(75905);var g=r(60513);var m=r(24982);var y="-ms-";var b="-moz-";var x="-webkit-";var C="comm";var v="rule";var k="decl";var w="@page";var S="@media";var A="@import";var T="@charset";var B="@viewport";var L="@supports";var M="@document";var _="@namespace";var F="@keyframes";var $="@font-face";var E="@counter-style";var O="@font-feature-values";var D="@layer";var I="@scope";var K=Math.abs;var R=String.fromCharCode;var P=Object.assign;function z(t,e){return H(t,0)^45?(((e<<2^H(t,0))<<2^H(t,1))<<2^H(t,2))<<2^H(t,3):0}function q(t){return t.trim()}function N(t,e){return(t=e.exec(t))?t[0]:t}function W(t,e,r){return t.replace(e,r)}function j(t,e,r){return t.indexOf(e,r)}function H(t,e){return t.charCodeAt(e)|0}function Y(t,e,r){return t.slice(e,r)}function U(t){return t.length}function G(t){return t.length}function V(t,e){return e.push(t),t}function X(t,e){return t.map(e).join("")}function Z(t,e){return t.filter((function(t){return!N(t,e)}))}function J(t,e){var r="";for(var i=0;i0?H(nt,--it):0;if(et--,at===10)et=1,tt--;return at}function dt(){at=it2||gt(at)>3?"":" "}function vt(t){while(dt())switch(gt(at)){case 0:append(At(it-1),t);break;case 2:append(bt(at),t);break;default:append(from(at),t)}return t}function kt(t,e){while(--e&&dt())if(at<48||at>102||at>57&&at<65||at>70&&at<97)break;return pt(t,ft()+(e<6&&ut()==32&&dt()==32))}function wt(t){while(dt())switch(at){case t:return it;case 34:case 39:if(t!==34&&t!==39)wt(at);break;case 40:if(t===41)wt(t);break;case 92:dt();break}return it}function St(t,e){while(dt())if(t+at===47+10)break;else if(t+at===42+42&&ut()===47)break;return"/*"+pt(e,it-1)+"*"+R(t===47?t:dt())}function At(t){while(!gt(ut()))dt();return pt(t,it)}function Tt(t){return yt(Bt("",null,null,null,[""],t=mt(t),0,[0],t))}function Bt(t,e,r,i,a,n,o,s,l){var c=0;var h=0;var d=o;var u=0;var f=0;var p=0;var g=1;var m=1;var y=1;var b=0;var x="";var C=a;var v=n;var k=i;var w=x;while(m)switch(p=b,b=dt()){case 40:if(p!=108&&H(w,d-1)==58){if(j(w+=W(bt(b),"&","&\f"),"&\f",K(c?s[c-1]:0))!=-1)y=-1;break}case 34:case 39:case 91:w+=bt(b);break;case 9:case 10:case 13:case 32:w+=Ct(p);break;case 92:w+=kt(ft()-1,7);continue;case 47:switch(ut()){case 42:case 47:V(Mt(St(dt(),ft()),e,r,l),l);if((gt(p||1)==5||gt(ut()||1)==5)&&U(w)&&Y(w,-1,void 0)!==" ")w+=" ";break;default:w+="/"}break;case 123*g:s[c++]=U(w)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+h:if(y==-1)w=W(w,/\f/g,"");if(f>0&&(U(w)-d||g===0&&p===47))V(f>32?_t(w+";",i,r,d-1,l):_t(W(w," ","")+";",i,r,d-2,l),l);break;case 59:w+=";";default:V(k=Lt(w,e,r,c,h,a,s,x,C=[],v=[],d,n),n);if(b===123)if(h===0)Bt(w,e,k,k,C,n,d,s,v);else{switch(u){case 99:if(H(w,3)===110)break;case 108:if(H(w,2)===97)break;default:h=0;case 100:case 109:case 115:}if(h)Bt(t,k,k,i&&V(Lt(t,k,k,0,0,a,s,x,a,C=[],d,v),v),a,v,d,s,i?C:v);else Bt(w,k,k,k,[""],v,0,s,v)}}c=h=f=0,g=y=1,x=w="",d=o;break;case 58:d=1+U(w),f=p;default:if(g<1)if(b==123)--g;else if(b==125&&g++==0&&ht()==125)continue;switch(w+=R(b),b*g){case 38:y=h>0?1:(w+="\f",-1);break;case 44:s[c++]=(U(w)-1)*y,y=1;break;case 64:if(ut()===45)w+=bt(dt());u=ut(),h=d=U(x=w+=At(ft())),b++;break;case 45:if(p===45&&U(w)==2)g=0}}return n}function Lt(t,e,r,i,a,n,o,s,l,c,h,d){var u=a-1;var f=a===0?n:[""];var p=G(f);for(var g=0,m=0,y=0;g0?f[b]+" "+x:W(x,/&\f/g,f[b])))l[y++]=C;return ot(t,e,r,a===0?v:s,l,c,h,d)}function Mt(t,e,r,i){return ot(t,e,r,C,R(ct()),Y(t,2,-2),0,i)}function _t(t,e,r,i,a){return ot(t,e,r,k,Y(t,0,i),Y(t,i+1,-1),i,a)}var Ft=r(84997);var $t=r(74650);var Et="c4";var Ot=(0,p.K2)((t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t)),"detector");var Dt=(0,p.K2)((async()=>{const{diagram:t}=await r.e(1912).then(r.bind(r,71912));return{id:Et,diagram:t}}),"loader");var It={id:Et,detector:Ot,loader:Dt};var Kt=It;var Rt="flowchart";var Pt=(0,p.K2)(((t,e)=>{if(e?.flowchart?.defaultRenderer==="dagre-wrapper"||e?.flowchart?.defaultRenderer==="elk"){return false}return/^\s*graph/.test(t)}),"detector");var zt=(0,p.K2)((async()=>{const{diagram:t}=await r.e(2023).then(r.bind(r,52023));return{id:Rt,diagram:t}}),"loader");var qt={id:Rt,detector:Pt,loader:zt};var Nt=qt;var Wt="flowchart-v2";var jt=(0,p.K2)(((t,e)=>{if(e?.flowchart?.defaultRenderer==="dagre-d3"){return false}if(e?.flowchart?.defaultRenderer==="elk"){e.layout="elk"}if(/^\s*graph/.test(t)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"){return true}return/^\s*flowchart/.test(t)}),"detector");var Ht=(0,p.K2)((async()=>{const{diagram:t}=await r.e(2023).then(r.bind(r,52023));return{id:Wt,diagram:t}}),"loader");var Yt={id:Wt,detector:jt,loader:Ht};var Ut=Yt;var Gt="er";var Vt=(0,p.K2)((t=>/^\s*erDiagram/.test(t)),"detector");var Xt=(0,p.K2)((async()=>{const{diagram:t}=await r.e(805).then(r.bind(r,70805));return{id:Gt,diagram:t}}),"loader");var Zt={id:Gt,detector:Vt,loader:Xt};var Jt=Zt;var Qt="gitGraph";var te=(0,p.K2)((t=>/^\s*gitGraph/.test(t)),"detector");var ee=(0,p.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1838),r.e(4010),r.e(9890)]).then(r.bind(r,99890));return{id:Qt,diagram:t}}),"loader");var re={id:Qt,detector:te,loader:ee};var ie=re;var ae="gantt";var ne=(0,p.K2)((t=>/^\s*gantt/.test(t)),"detector");var oe=(0,p.K2)((async()=>{const{diagram:t}=await r.e(9572).then(r.bind(r,87191));return{id:ae,diagram:t}}),"loader");var se={id:ae,detector:ne,loader:oe};var le=se;var ce="info";var he=(0,p.K2)((t=>/^\s*info/.test(t)),"detector");var de=(0,p.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1838),r.e(4010),r.e(8537)]).then(r.bind(r,98537));return{id:ce,diagram:t}}),"loader");var ue={id:ce,detector:he,loader:de};var fe="pie";var pe=(0,p.K2)((t=>/^\s*pie/.test(t)),"detector");var ge=(0,p.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1838),r.e(4010),r.e(649)]).then(r.bind(r,70649));return{id:fe,diagram:t}}),"loader");var me={id:fe,detector:pe,loader:ge};var ye="quadrantChart";var be=(0,p.K2)((t=>/^\s*quadrantChart/.test(t)),"detector");var xe=(0,p.K2)((async()=>{const{diagram:t}=await r.e(4311).then(r.bind(r,4311));return{id:ye,diagram:t}}),"loader");var Ce={id:ye,detector:be,loader:xe};var ve=Ce;var ke="xychart";var we=(0,p.K2)((t=>/^\s*xychart-beta/.test(t)),"detector");var Se=(0,p.K2)((async()=>{const{diagram:t}=await r.e(9881).then(r.bind(r,79881));return{id:ke,diagram:t}}),"loader");var Ae={id:ke,detector:we,loader:Se};var Te=Ae;var Be="requirement";var Le=(0,p.K2)((t=>/^\s*requirement(Diagram)?/.test(t)),"detector");var Me=(0,p.K2)((async()=>{const{diagram:t}=await r.e(580).then(r.bind(r,90580));return{id:Be,diagram:t}}),"loader");var _e={id:Be,detector:Le,loader:Me};var Fe=_e;var $e="sequence";var Ee=(0,p.K2)((t=>/^\s*sequenceDiagram/.test(t)),"detector");var Oe=(0,p.K2)((async()=>{const{diagram:t}=await r.e(8038).then(r.bind(r,38038));return{id:$e,diagram:t}}),"loader");var De={id:$e,detector:Ee,loader:Oe};var Ie=De;var Ke="class";var Re=(0,p.K2)(((t,e)=>{if(e?.class?.defaultRenderer==="dagre-wrapper"){return false}return/^\s*classDiagram/.test(t)}),"detector");var Pe=(0,p.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1359),r.e(3048)]).then(r.bind(r,53048));return{id:Ke,diagram:t}}),"loader");var ze={id:Ke,detector:Re,loader:Pe};var qe=ze;var Ne="classDiagram";var We=(0,p.K2)(((t,e)=>{if(/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"){return true}return/^\s*classDiagram-v2/.test(t)}),"detector");var je=(0,p.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1359),r.e(874)]).then(r.bind(r,874));return{id:Ne,diagram:t}}),"loader");var He={id:Ne,detector:We,loader:je};var Ye=He;var Ue="state";var Ge=(0,p.K2)(((t,e)=>{if(e?.state?.defaultRenderer==="dagre-wrapper"){return false}return/^\s*stateDiagram/.test(t)}),"detector");var Ve=(0,p.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1838),r.e(2211),r.e(8855),r.e(8391)]).then(r.bind(r,78391));return{id:Ue,diagram:t}}),"loader");var Xe={id:Ue,detector:Ge,loader:Ve};var Ze=Xe;var Je="stateDiagram";var Qe=(0,p.K2)(((t,e)=>{if(/^\s*stateDiagram-v2/.test(t)){return true}if(/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"){return true}return false}),"detector");var tr=(0,p.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(8855),r.e(6779)]).then(r.bind(r,16779));return{id:Je,diagram:t}}),"loader");var er={id:Je,detector:Qe,loader:tr};var rr=er;var ir="journey";var ar=(0,p.K2)((t=>/^\s*journey/.test(t)),"detector");var nr=(0,p.K2)((async()=>{const{diagram:t}=await r.e(5135).then(r.bind(r,85135));return{id:ir,diagram:t}}),"loader");var or={id:ir,detector:ar,loader:nr};var sr=or;var lr=(0,p.K2)(((t,e,r)=>{p.Rm.debug("rendering svg for syntax error\n");const i=(0,f.D)(e);const a=i.append("g");i.attr("viewBox","0 0 2412 512");(0,p.a$)(i,100,512,true);a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z");a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z");a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z");a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z");a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z");a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z");a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text");a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)}),"draw");var cr={draw:lr};var hr=cr;var dr={db:{},renderer:cr,parser:{parse:(0,p.K2)((()=>{}),"parse")}};var ur=dr;var fr="flowchart-elk";var pr=(0,p.K2)(((t,e={})=>{if(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&e?.flowchart?.defaultRenderer==="elk"){e.layout="elk";return true}return false}),"detector");var gr=(0,p.K2)((async()=>{const{diagram:t}=await r.e(2023).then(r.bind(r,52023));return{id:fr,diagram:t}}),"loader");var mr={id:fr,detector:pr,loader:gr};var yr=mr;var br="timeline";var xr=(0,p.K2)((t=>/^\s*timeline/.test(t)),"detector");var Cr=(0,p.K2)((async()=>{const{diagram:t}=await r.e(6214).then(r.bind(r,26214));return{id:br,diagram:t}}),"loader");var vr={id:br,detector:xr,loader:Cr};var kr=vr;var wr="mindmap";var Sr=(0,p.K2)((t=>/^\s*mindmap/.test(t)),"detector");var Ar=(0,p.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(8786),r.e(8915)]).then(r.bind(r,18915));return{id:wr,diagram:t}}),"loader");var Tr={id:wr,detector:Sr,loader:Ar};var Br=Tr;var Lr="kanban";var Mr=(0,p.K2)((t=>/^\s*kanban/.test(t)),"detector");var _r=(0,p.K2)((async()=>{const{diagram:t}=await r.e(4982).then(r.bind(r,4982));return{id:Lr,diagram:t}}),"loader");var Fr={id:Lr,detector:Mr,loader:_r};var $r=Fr;var Er="sankey";var Or=(0,p.K2)((t=>/^\s*sankey-beta/.test(t)),"detector");var Dr=(0,p.K2)((async()=>{const{diagram:t}=await r.e(3358).then(r.bind(r,33358));return{id:Er,diagram:t}}),"loader");var Ir={id:Er,detector:Or,loader:Dr};var Kr=Ir;var Rr="packet";var Pr=(0,p.K2)((t=>/^\s*packet-beta/.test(t)),"detector");var zr=(0,p.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1838),r.e(4010),r.e(2550)]).then(r.bind(r,92550));return{id:Rr,diagram:t}}),"loader");var qr={id:Rr,detector:Pr,loader:zr};var Nr="radar";var Wr=(0,p.K2)((t=>/^\s*radar-beta/.test(t)),"detector");var jr=(0,p.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1838),r.e(4010),r.e(898)]).then(r.bind(r,80898));return{id:Nr,diagram:t}}),"loader");var Hr={id:Nr,detector:Wr,loader:jr};var Yr="block";var Ur=(0,p.K2)((t=>/^\s*block-beta/.test(t)),"detector");var Gr=(0,p.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1838),r.e(6364)]).then(r.bind(r,46364));return{id:Yr,diagram:t}}),"loader");var Vr={id:Yr,detector:Ur,loader:Gr};var Xr=Vr;var Zr="architecture";var Jr=(0,p.K2)((t=>/^\s*architecture/.test(t)),"detector");var Qr=(0,p.K2)((async()=>{const{diagram:t}=await Promise.all([r.e(1838),r.e(4010),r.e(8786),r.e(7371)]).then(r.bind(r,17371));return{id:Zr,diagram:t}}),"loader");var ti={id:Zr,detector:Jr,loader:Qr};var ei=ti;var ri=false;var ii=(0,p.K2)((()=>{if(ri){return}ri=true;(0,p.Js)("error",ur,(t=>t.toLowerCase().trim()==="error"));(0,p.Js)("---",{db:{clear:(0,p.K2)((()=>{}),"clear")},styles:{},renderer:{draw:(0,p.K2)((()=>{}),"draw")},parser:{parse:(0,p.K2)((()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}),"parse")},init:(0,p.K2)((()=>null),"init")},(t=>t.toLowerCase().trimStart().startsWith("---")));(0,p.Xd)(Kt,$r,Ye,qe,Jt,le,ue,me,Fe,Ie,yr,Ut,Nt,Br,kr,ie,rr,Ze,sr,ve,Kr,qr,Te,Xr,ei,Hr)}),"addDiagrams");var ai=(0,p.K2)((async()=>{p.Rm.debug(`Loading registered diagrams`);const t=await Promise.allSettled(Object.entries(p.mW).map((async([t,{detector:e,loader:r}])=>{if(r){try{(0,p.Gs)(t)}catch{try{const{diagram:t,id:i}=await r();(0,p.Js)(i,t,e)}catch(i){p.Rm.error(`Failed to load external diagram with key ${t}. Removing from detectors.`);delete p.mW[t];throw i}}}})));const e=t.filter((t=>t.status==="rejected"));if(e.length>0){p.Rm.error(`Failed to load ${e.length} external diagrams`);for(const t of e){p.Rm.error(t)}throw new Error(`Failed to load ${e.length} external diagrams`)}}),"loadRegisteredDiagrams");var ni="graphics-document document";function oi(t,e){t.attr("role",ni);if(e!==""){t.attr("aria-roledescription",e)}}(0,p.K2)(oi,"setA11yDiagramInfo");function si(t,e,r,i){if(t.insert===void 0){return}if(r){const e=`chart-desc-${i}`;t.attr("aria-describedby",e);t.insert("desc",":first-child").attr("id",e).text(r)}if(e){const r=`chart-title-${i}`;t.attr("aria-labelledby",r);t.insert("title",":first-child").attr("id",r).text(e)}}(0,p.K2)(si,"addSVGa11yTitleDescription");var li=class t{constructor(t,e,r,i,a){this.type=t;this.text=e;this.db=r;this.parser=i;this.renderer=a}static{(0,p.K2)(this,"Diagram")}static async fromText(e,r={}){const i=(0,p.zj)();const a=(0,p.Ch)(e,i);e=(0,d.C4)(e)+"\n";try{(0,p.Gs)(a)}catch{const t=(0,p.J$)(a);if(!t){throw new p.C0(`Diagram ${a} not found.`)}const{id:e,diagram:r}=await t();(0,p.Js)(e,r)}const{db:n,parser:o,renderer:s,init:l}=(0,p.Gs)(a);if(o.parser){o.parser.yy=n}n.clear?.();l?.(i);if(r.title){n.setDiagramTitle?.(r.title)}await o.parse(e);return new t(a,e,n,o,s)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}};var ci=[];var hi=(0,p.K2)((()=>{ci.forEach((t=>{t()}));ci=[]}),"attachFunctions");var di=(0,p.K2)((t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart()),"cleanupComments");function ui(t){const e=t.match(p.EJ);if(!e){return{text:t,metadata:{}}}let r=(0,i.H)(e[1],{schema:i.r})??{};r=typeof r==="object"&&!Array.isArray(r)?r:{};const a={};if(r.displayMode){a.displayMode=r.displayMode.toString()}if(r.title){a.title=r.title.toString()}if(r.config){a.config=r.config}return{text:t.slice(e[0].length),metadata:a}}(0,p.K2)(ui,"extractFrontMatter");var fi=(0,p.K2)((t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,((t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"))),"cleanupText");var pi=(0,p.K2)((t=>{const{text:e,metadata:r}=ui(t);const{displayMode:i,title:a,config:n={}}=r;if(i){if(!n.gantt){n.gantt={}}n.gantt.displayMode=i}return{title:a,config:n,text:e}}),"processFrontmatter");var gi=(0,p.K2)((t=>{const e=d._K.detectInit(t)??{};const r=d._K.detectDirective(t,"wrap");if(Array.isArray(r)){e.wrap=r.some((({type:t})=>t==="wrap"))}else if(r?.type==="wrap"){e.wrap=true}return{text:(0,d.vU)(t),directive:e}}),"processDirectives");function mi(t){const e=fi(t);const r=pi(e);const i=gi(r.text);const a=(0,d.$t)(r.config,i.directive);t=di(i.text);return{code:t,title:r.title,config:a}}(0,p.K2)(mi,"preprocessDiagram");function yi(t){const e=(new TextEncoder).encode(t);const r=Array.from(e,(t=>String.fromCodePoint(t))).join("");return btoa(r)}(0,p.K2)(yi,"toBase64");var bi=5e4;var xi="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa";var Ci="sandbox";var vi="loose";var ki="http://www.w3.org/2000/svg";var wi="http://www.w3.org/1999/xlink";var Si="http://www.w3.org/1999/xhtml";var Ai="100%";var Ti="100%";var Bi="border:0;margin:0;";var Li="margin:0";var Mi="allow-top-navigation-by-user-activation allow-popups";var _i='The "iframe" tag is not supported by your browser.';var Fi=["foreignobject"];var $i=["dominant-baseline"];function Ei(t){const e=mi(t);(0,p.cL)();(0,p.xA)(e.config??{});return e}(0,p.K2)(Ei,"processAndSetConfigs");async function Oi(t,e){ii();try{const{code:e,config:r}=Ei(t);const i=await Hi(e);return{diagramType:i.type,config:r}}catch(r){if(e?.suppressErrors){return false}throw r}}(0,p.K2)(Oi,"parse");var Di=(0,p.K2)(((t,e,r=[])=>`\n.${t} ${e} { ${r.join(" !important; ")} !important; }`),"cssImportantStyles");var Ii=(0,p.K2)(((t,e=new Map)=>{let r="";if(t.themeCSS!==void 0){r+=`\n${t.themeCSS}`}if(t.fontFamily!==void 0){r+=`\n:root { --mermaid-font-family: ${t.fontFamily}}`}if(t.altFontFamily!==void 0){r+=`\n:root { --mermaid-alt-font-family: ${t.altFontFamily}}`}if(e instanceof Map){const i=t.htmlLabels??t.flowchart?.htmlLabels;const a=["> *","span"];const n=["rect","polygon","ellipse","circle","path"];const o=i?a:n;e.forEach((t=>{if(!(0,$t.A)(t.styles)){o.forEach((e=>{r+=Di(t.id,e,t.styles)}))}if(!(0,$t.A)(t.textStyles)){r+=Di(t.id,"tspan",(t?.textStyles||[]).map((t=>t.replace("color","fill"))))}}))}return r}),"createCssStyles");var Ki=(0,p.K2)(((t,e,r,i)=>{const a=Ii(t,r);const n=(0,p.tM)(e,a,t.themeVariables);return J(Tt(`${i}{${n}}`),Q)}),"createUserStyles");var Ri=(0,p.K2)(((t="",e,r)=>{let i=t;if(!r&&!e){i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')}i=(0,d.Sm)(i);i=i.replace(/
/g,"
");return i}),"cleanUpSvgCode");var Pi=(0,p.K2)(((t="",e)=>{const r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":Ti;const i=yi(`${t}`);return``}),"putIntoIFrame");var zi=(0,p.K2)(((t,e,r,i,a)=>{const n=t.append("div");n.attr("id",r);if(i){n.attr("style",i)}const o=n.append("svg").attr("id",e).attr("width","100%").attr("xmlns",ki);if(a){o.attr("xmlns:xlink",a)}o.append("g");return t}),"appendDivSvgG");function qi(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,p.K2)(qi,"sandboxedIframe");var Ni=(0,p.K2)(((t,e,r,i)=>{t.getElementById(e)?.remove();t.getElementById(r)?.remove();t.getElementById(i)?.remove()}),"removeExistingElements");var Wi=(0,p.K2)((async function(t,e,r){ii();const i=Ei(e);e=i.code;const a=(0,p.zj)();p.Rm.debug(a);if(e.length>(a?.maxTextSize??bi)){e=xi}const n="#"+t;const o="i"+t;const s="#"+o;const l="d"+t;const c="#"+l;const h=(0,p.K2)((()=>{const t=f?s:c;const e=(0,m.Ltv)(t).node();if(e&&"remove"in e){e.remove()}}),"removeTempElements");let d=(0,m.Ltv)("body");const f=a.securityLevel===Ci;const g=a.securityLevel===vi;const y=a.fontFamily;if(r!==void 0){if(r){r.innerHTML=""}if(f){const t=qi((0,m.Ltv)(r),o);d=(0,m.Ltv)(t.nodes()[0].contentDocument.body);d.node().style.margin=0}else{d=(0,m.Ltv)(r)}zi(d,t,l,`font-family: ${y}`,wi)}else{Ni(document,t,l,o);if(f){const t=qi((0,m.Ltv)("body"),o);d=(0,m.Ltv)(t.nodes()[0].contentDocument.body);d.node().style.margin=0}else{d=(0,m.Ltv)("body")}zi(d,t,l)}let b;let x;try{b=await li.fromText(e,{title:i.title})}catch(F){if(a.suppressErrorRendering){h();throw F}b=await li.fromText("error");x=F}const C=d.select(c).node();const v=b.type;const k=C.firstChild;const w=k.firstChild;const S=b.renderer.getClasses?.(e,b);const A=Ki(a,v,S,n);const T=document.createElement("style");T.innerHTML=A;k.insertBefore(T,w);try{await b.renderer.draw(e,t,u.n.version,b)}catch($){if(a.suppressErrorRendering){h()}else{hr.draw(e,t,u.n.version)}throw $}const B=d.select(`${c} svg`);const L=b.db.getAccTitle?.();const M=b.db.getAccDescription?.();Yi(v,B,L,M);d.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",Si);let _=d.select(c).node().innerHTML;p.Rm.debug("config.arrowMarkerAbsolute",a.arrowMarkerAbsolute);_=Ri(_,f,(0,p._3)(a.arrowMarkerAbsolute));if(f){const t=d.select(c+" svg").node();_=Pi(_,t)}else if(!g){_=Ft.A.sanitize(_,{ADD_TAGS:Fi,ADD_ATTR:$i,HTML_INTEGRATION_POINTS:{foreignobject:true}})}hi();if(x){throw x}h();return{diagramType:v,svg:_,bindFunctions:b.db.bindFunctions}}),"render");function ji(t={}){const e=(0,p.hH)({},t);if(e?.fontFamily&&!e.themeVariables?.fontFamily){if(!e.themeVariables){e.themeVariables={}}e.themeVariables.fontFamily=e.fontFamily}(0,p.wZ)(e);if(e?.theme&&e.theme in p.H$){e.themeVariables=p.H$[e.theme].getThemeVariables(e.themeVariables)}else if(e){e.themeVariables=p.H$.default.getThemeVariables(e.themeVariables)}const r=typeof e==="object"?(0,p.UU)(e):(0,p.Q2)();(0,p.He)(r.logLevel);ii()}(0,p.K2)(ji,"initialize");var Hi=(0,p.K2)(((t,e={})=>{const{code:r}=mi(t);return li.fromText(r,e)}),"getDiagramFromText");function Yi(t,e,r,i){oi(e,t);si(e,r,i,e.attr("id"))}(0,p.K2)(Yi,"addA11yInfo");var Ui=Object.freeze({render:Wi,parse:Oi,getDiagramFromText:Hi,initialize:ji,getConfig:p.zj,setConfig:p.Nk,getSiteConfig:p.Q2,updateSiteConfig:p.B6,reset:(0,p.K2)((()=>{(0,p.cL)()}),"reset"),globalReset:(0,p.K2)((()=>{(0,p.cL)(p.sb)}),"globalReset"),defaultConfig:p.sb});(0,p.He)((0,p.zj)().logLevel);(0,p.cL)((0,p.zj)());var Gi=(0,p.K2)(((t,e,r)=>{p.Rm.warn(t);if((0,d.dq)(t)){if(r){r(t.str,t.hash)}e.push({...t,message:t.str,error:t})}else{if(r){r(t)}if(t instanceof Error){e.push({str:t.message,message:t.message,hash:t.name,error:t})}}}),"handleError");var Vi=(0,p.K2)((async function(t={querySelector:".mermaid"}){try{await Xi(t)}catch(e){if((0,d.dq)(e)){p.Rm.error(e.str)}if(sa.parseError){sa.parseError(e)}if(!t.suppressErrors){p.Rm.error("Use the suppressErrors option to suppress these errors");throw e}}}),"run");var Xi=(0,p.K2)((async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const i=Ui.getConfig();p.Rm.debug(`${!t?"No ":""}Callback function found`);let a;if(r){a=r}else if(e){a=document.querySelectorAll(e)}else{throw new Error("Nodes and querySelector are both undefined")}p.Rm.debug(`Found ${a.length} diagrams`);if(i?.startOnLoad!==void 0){p.Rm.debug("Start On Load: "+i?.startOnLoad);Ui.updateSiteConfig({startOnLoad:i?.startOnLoad})}const n=new d._K.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let o;const s=[];for(const c of Array.from(a)){p.Rm.info("Rendering diagram: "+c.id);if(c.getAttribute("data-processed")){continue}c.setAttribute("data-processed","true");const e=`mermaid-${n.next()}`;o=c.innerHTML;o=(0,g.T)(d._K.entityDecode(o)).trim().replace(//gi,"
");const r=d._K.detectInit(o);if(r){p.Rm.debug("Detected early reinit: ",r)}try{const{svg:r,bindFunctions:i}=await oa(e,o,c);c.innerHTML=r;if(t){await t(e)}if(i){i(c)}}catch(l){Gi(l,s,sa.parseError)}}if(s.length>0){throw s[0]}}),"runThrowsErrors");var Zi=(0,p.K2)((function(t){Ui.initialize(t)}),"initialize");var Ji=(0,p.K2)((async function(t,e,r){p.Rm.warn("mermaid.init is deprecated. Please use run instead.");if(t){Zi(t)}const i={postRenderCallback:r,querySelector:".mermaid"};if(typeof e==="string"){i.querySelector=e}else if(e){if(e instanceof HTMLElement){i.nodes=[e]}else{i.nodes=e}}await Vi(i)}),"init");var Qi=(0,p.K2)((async(t,{lazyLoad:e=true}={})=>{ii();(0,p.Xd)(...t);if(e===false){await ai()}}),"registerExternalDiagrams");var ta=(0,p.K2)((function(){if(sa.startOnLoad){const{startOnLoad:t}=Ui.getConfig();if(t){sa.run().catch((t=>p.Rm.error("Mermaid failed to initialize",t)))}}}),"contentLoaded");if(typeof document!=="undefined"){window.addEventListener("load",ta,false)}var ea=(0,p.K2)((function(t){sa.parseError=t}),"setParseErrorHandler");var ra=[];var ia=false;var aa=(0,p.K2)((async()=>{if(ia){return}ia=true;while(ra.length>0){const e=ra.shift();if(e){try{await e()}catch(t){p.Rm.error("Error executing queue",t)}}}ia=false}),"executeQueue");var na=(0,p.K2)((async(t,e)=>new Promise(((r,i)=>{const a=(0,p.K2)((()=>new Promise(((a,n)=>{Ui.parse(t,e).then((t=>{a(t);r(t)}),(t=>{p.Rm.error("Error parsing",t);sa.parseError?.(t);n(t);i(t)}))}))),"performCall");ra.push(a);aa().catch(i)}))),"parse");var oa=(0,p.K2)(((t,e,r)=>new Promise(((i,a)=>{const n=(0,p.K2)((()=>new Promise(((n,o)=>{Ui.render(t,e,r).then((t=>{n(t);i(t)}),(t=>{p.Rm.error("Error parsing",t);sa.parseError?.(t);o(t);a(t)}))}))),"performCall");ra.push(n);aa().catch(a)}))),"render");var sa={startOnLoad:true,mermaidAPI:Ui,parse:na,render:oa,init:Ji,run:Vi,registerExternalDiagrams:Qi,registerLayoutLoaders:a.sO,initialize:Zi,parseError:void 0,contentLoaded:ta,setParseErrorHandler:ea,detectType:p.Ch,registerIconPacks:c.pC};var la=sa},52274:(t,e,r)=>{"use strict";r.d(e,{A:()=>lt});function i(t,e,r){if(t&&t.length){const[i,a]=e,n=Math.PI/180*r,o=Math.cos(n),s=Math.sin(n);for(const e of t){const[t,r]=e;e[0]=(t-i)*o-(r-a)*s+i,e[1]=(t-i)*s+(r-a)*o+a}}}function a(t,e){return t[0]===e[0]&&t[1]===e[1]}function n(t,e,r,n=1){const o=r,s=Math.max(e,.1),l=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,c=[0,0];if(o)for(const a of l)i(a,c,o);const h=function(t,e,r){const i=[];for(const h of t){const t=[...h];a(t[0],t[t.length-1])||t.push([t[0][0],t[0][1]]),t.length>2&&i.push(t)}const n=[];e=Math.max(e,.1);const o=[];for(const a of i)for(let t=0;tt.ymine.ymin?1:t.xe.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax))),!o.length)return n;let s=[],l=o[0].ymin,c=0;for(;s.length||o.length;){if(o.length){let t=-1;for(let e=0;el);e++)t=e;o.splice(0,t+1).forEach((t=>{s.push({s:l,edge:t})}))}if(s=s.filter((t=>!(t.edge.ymax<=l))),s.sort(((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x))),(1!==r||c%e==0)&&s.length>1)for(let t=0;t=s.length)break;const r=s[t].edge,i=s[e].edge;n.push([[Math.round(r.x),l],[Math.round(i.x),l]])}l+=r,s.forEach((t=>{t.edge.x=t.edge.x+r*t.edge.islope})),c++}return n}(l,s,n);if(o){for(const t of l)i(t,c,-o);!function(t,e,r){const a=[];t.forEach((t=>a.push(...t))),i(a,e,r)}(h,c,-o)}return h}function o(t,e){var r;const i=e.hachureAngle+90;let a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.round(Math.max(a,.1));let o=1;return e.roughness>=1&&((null===(r=e.randomizer)||void 0===r?void 0:r.next())||Math.random())>.7&&(o=a),n(t,a,i,o||1)}class s{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){const r=o(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){const r=[];for(const i of t)r.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],e));return r}}function l(t){const e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class c extends s{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth),r=Math.max(r,.1);const i=o(t,Object.assign({},e,{hachureGap:r})),a=Math.PI/180*e.hachureAngle,n=[],s=.5*r*Math.cos(a),c=.5*r*Math.sin(a);for(const[o,h]of i)l([o,h])&&n.push([[o[0]-s,o[1]+c],[...h]],[[o[0]+s,o[1]-c],[...h]]);return{type:"fillSketch",ops:this.renderLines(n,e)}}}class h extends s{fillPolygons(t,e){const r=this._fillPolygons(t,e),i=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),a=this._fillPolygons(t,i);return r.ops=r.ops.concat(a.ops),r}}class d{constructor(t){this.helper=t}fillPolygons(t,e){const r=o(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){const r=[];let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.max(i,.1);let a=e.fillWeight;a<0&&(a=e.strokeWidth/2);const n=i/4;for(const o of t){const t=l(o),s=t/i,c=Math.ceil(s)-1,h=t-c*i,d=(o[0][0]+o[1][0])/2-i/4,u=Math.min(o[0][1],o[1][1]);for(let o=0;o{const n=l(t),o=Math.floor(n/(r+i)),s=(n+i-o*(r+i))/2;let c=t[0],h=t[1];c[0]>h[0]&&(c=t[1],h=t[0]);const d=Math.atan((h[1]-c[1])/(h[0]-c[0]));for(let l=0;l{const a=l(t),n=Math.round(a/(2*e));let o=t[0],s=t[1];o[0]>s[0]&&(o=t[1],s=t[0]);const c=Math.atan((s[1]-o[1])/(s[0]-o[0]));for(let l=0;li%2?t+r:t+e));n.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":n.push({key:"Q",data:[...s]}),e=s[2],r=s[3];break;case"q":{const t=s.map(((t,i)=>i%2?t+r:t+e));n.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":n.push({key:"A",data:[...s]}),e=s[5],r=s[6];break;case"a":e+=s[5],r+=s[6],n.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,r]});break;case"H":n.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],n.push({key:"H",data:[e]});break;case"V":n.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],n.push({key:"V",data:[r]});break;case"S":n.push({key:"S",data:[...s]}),e=s[2],r=s[3];break;case"s":{const t=s.map(((t,i)=>i%2?t+r:t+e));n.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":n.push({key:"T",data:[...s]}),e=s[0],r=s[1];break;case"t":e+=s[0],r+=s[1],n.push({key:"T",data:[e,r]});break;case"Z":case"z":n.push({key:"Z",data:[]}),e=i,r=a}return n}function w(t){const e=[];let r="",i=0,a=0,n=0,o=0,s=0,l=0;for(const{key:c,data:h}of t){switch(c){case"M":e.push({key:"M",data:[...h]}),[i,a]=h,[n,o]=h;break;case"C":e.push({key:"C",data:[...h]}),i=h[4],a=h[5],s=h[2],l=h[3];break;case"L":e.push({key:"L",data:[...h]}),[i,a]=h;break;case"H":i=h[0],e.push({key:"L",data:[i,a]});break;case"V":a=h[0],e.push({key:"L",data:[i,a]});break;case"S":{let t=0,n=0;"C"===r||"S"===r?(t=i+(i-s),n=a+(a-l)):(t=i,n=a),e.push({key:"C",data:[t,n,...h]}),s=h[0],l=h[1],i=h[2],a=h[3];break}case"T":{const[t,n]=h;let o=0,c=0;"Q"===r||"T"===r?(o=i+(i-s),c=a+(a-l)):(o=i,c=a);const d=i+2*(o-i)/3,u=a+2*(c-a)/3,f=t+2*(o-t)/3,p=n+2*(c-n)/3;e.push({key:"C",data:[d,u,f,p,t,n]}),s=o,l=c,i=t,a=n;break}case"Q":{const[t,r,n,o]=h,c=i+2*(t-i)/3,d=a+2*(r-a)/3,u=n+2*(t-n)/3,f=o+2*(r-o)/3;e.push({key:"C",data:[c,d,u,f,n,o]}),s=t,l=r,i=n,a=o;break}case"A":{const t=Math.abs(h[0]),r=Math.abs(h[1]),n=h[2],o=h[3],s=h[4],l=h[5],c=h[6];if(0===t||0===r)e.push({key:"C",data:[i,a,l,c,l,c]}),i=l,a=c;else if(i!==l||a!==c){A(i,a,l,c,t,r,n,o,s).forEach((function(t){e.push({key:"C",data:t})})),i=l,a=c}break}case"Z":e.push({key:"Z",data:[]}),i=n,a=o}r=c}return e}function S(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function A(t,e,r,i,a,n,o,s,l,c){const h=(d=o,Math.PI*d/180);var d;let u=[],f=0,p=0,g=0,m=0;if(c)[f,p,g,m]=c;else{[t,e]=S(t,e,-h),[r,i]=S(r,i,-h);const o=(t-r)/2,c=(e-i)/2;let d=o*o/(a*a)+c*c/(n*n);d>1&&(d=Math.sqrt(d),a*=d,n*=d);const u=a*a,y=n*n,b=u*y-u*c*c-y*o*o,x=u*c*c+y*o*o,C=(s===l?-1:1)*Math.sqrt(Math.abs(b/x));g=C*a*c/n+(t+r)/2,m=C*-n*o/a+(e+i)/2,f=Math.asin(parseFloat(((e-m)/n).toFixed(9))),p=Math.asin(parseFloat(((i-m)/n).toFixed(9))),tp&&(f-=2*Math.PI),!l&&p>f&&(p-=2*Math.PI)}let y=p-f;if(Math.abs(y)>120*Math.PI/180){const t=p,e=r,s=i;p=l&&p>f?f+120*Math.PI/180*1:f+120*Math.PI/180*-1,u=A(r=g+a*Math.cos(p),i=m+n*Math.sin(p),e,s,a,n,o,0,l,[p,t,g,m])}y=p-f;const b=Math.cos(f),x=Math.sin(f),C=Math.cos(p),v=Math.sin(p),k=Math.tan(y/4),w=4/3*a*k,T=4/3*n*k,B=[t,e],L=[t+w*x,e-T*b],M=[r+w*v,i-T*C],_=[r,i];if(L[0]=2*B[0]-L[0],L[1]=2*B[1]-L[1],c)return[L,M,_].concat(u);{u=[L,M,_].concat(u);const t=[];for(let e=0;e2){const a=[];for(let e=0;e2*Math.PI&&(f=0,p=2*Math.PI);const g=2*Math.PI/l.curveStepCount,m=Math.min(g/2,(p-f)/2),y=Y(m,c,h,d,u,f,p,1,l);if(!l.disableMultiStroke){const t=Y(m,c,h,d,u,f,p,1.5,l);y.push(...t)}return o&&(s?y.push(...q(c,h,c+d*Math.cos(f),h+u*Math.sin(f),l),...q(c,h,c+d*Math.cos(p),h+u*Math.sin(p),l)):y.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+d*Math.cos(f),h+u*Math.sin(f)]})),{type:"path",ops:y}}function O(t,e){const r=w(k(v(t))),i=[];let a=[0,0],n=[0,0];for(const{key:o,data:s}of r)switch(o){case"M":n=[s[0],s[1]],a=[s[0],s[1]];break;case"L":i.push(...q(n[0],n[1],s[0],s[1],e)),n=[s[0],s[1]];break;case"C":{const[t,r,a,o,l,c]=s;i.push(...U(t,r,a,o,l,c,n,e)),n=[l,c];break}case"Z":i.push(...q(n[0],n[1],a[0],a[1],e)),n=[a[0],a[1]]}return{type:"path",ops:i}}function D(t,e){const r=[];for(const i of t)if(i.length){const t=e.maxRandomnessOffset||0,a=i.length;if(a>2){r.push({op:"move",data:[i[0][0]+z(t,e),i[0][1]+z(t,e)]});for(let n=1;n500?.4:-.0016668*l+1.233334;let h=a.maxRandomnessOffset||0;h*h*100>s&&(h=l/10);const d=h/2,u=.2+.2*R(a);let f=a.bowing*a.maxRandomnessOffset*(i-e)/200,p=a.bowing*a.maxRandomnessOffset*(t-r)/200;f=z(f,a,c),p=z(p,a,c);const g=[],m=()=>z(d,a,c),y=()=>z(h,a,c),b=a.preserveVertices;return n&&(o?g.push({op:"move",data:[t+(b?0:m()),e+(b?0:m())]}):g.push({op:"move",data:[t+(b?0:z(h,a,c)),e+(b?0:z(h,a,c))]})),o?g.push({op:"bcurveTo",data:[f+t+(r-t)*u+m(),p+e+(i-e)*u+m(),f+t+2*(r-t)*u+m(),p+e+2*(i-e)*u+m(),r+(b?0:m()),i+(b?0:m())]}):g.push({op:"bcurveTo",data:[f+t+(r-t)*u+y(),p+e+(i-e)*u+y(),f+t+2*(r-t)*u+y(),p+e+2*(i-e)*u+y(),r+(b?0:y()),i+(b?0:y())]}),g}function W(t,e,r){if(!t.length)return[];const i=[];i.push([t[0][0]+z(e,r),t[0][1]+z(e,r)]),i.push([t[0][0]+z(e,r),t[0][1]+z(e,r)]);for(let a=1;a3){const n=[],o=1-r.curveTightness;a.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+21&&a.push(r)}else a.push(r);a.push(t[e+3])}else{const i=.5,n=t[e+0],o=t[e+1],s=t[e+2],l=t[e+3],c=J(n,o,i),h=J(o,s,i),d=J(s,l,i),u=J(c,h,i),f=J(h,d,i),p=J(u,f,i);Q([n,c,u,p],0,r,a),Q([p,f,d,l],0,r,a)}var n,o;return a}function tt(t,e){return et(t,0,t.length,e)}function et(t,e,r,i,a){const n=a||[],o=t[e],s=t[r-1];let l=0,c=1;for(let h=e+1;hl&&(l=e,c=h)}return Math.sqrt(l)>i?(et(t,e,c+1,i,n),et(t,c,r,i,n)):(n.length||n.push(o),n.push(s)),n}function rt(t,e=.15,r){const i=[],a=(t.length-1)/3;for(let n=0;n0?et(i,0,i.length,r):i}const it="none";class at{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,i,a){const n=this._o(a);return this._d("line",[B(t,e,r,i,n)],n)}rectangle(t,e,r,i,a){const n=this._o(a),o=[],s=M(t,e,r,i,n);if(n.fill){const a=[[t,e],[t+r,e],[t+r,e+i],[t,e+i]];"solid"===n.fillStyle?o.push(D([a],n)):o.push(I([a],n))}return n.stroke!==it&&o.push(s),this._d("rectangle",o,n)}ellipse(t,e,r,i,a){const n=this._o(a),o=[],s=F(r,i,n),l=$(t,e,n,s);if(n.fill)if("solid"===n.fillStyle){const r=$(t,e,n,s).opset;r.type="fillPath",o.push(r)}else o.push(I([l.estimatedPoints],n));return n.stroke!==it&&o.push(l.opset),this._d("ellipse",o,n)}circle(t,e,r,i){const a=this.ellipse(t,e,r,r,i);return a.shape="circle",a}linearPath(t,e){const r=this._o(e);return this._d("linearPath",[L(t,!1,r)],r)}arc(t,e,r,i,a,n,o=!1,s){const l=this._o(s),c=[],h=E(t,e,r,i,a,n,o,!0,l);if(o&&l.fill)if("solid"===l.fillStyle){const o=Object.assign({},l);o.disableMultiStroke=!0;const s=E(t,e,r,i,a,n,!0,!1,o);s.type="fillPath",c.push(s)}else c.push(function(t,e,r,i,a,n,o){const s=t,l=e;let c=Math.abs(r/2),h=Math.abs(i/2);c+=z(.01*c,o),h+=z(.01*h,o);let d=a,u=n;for(;d<0;)d+=2*Math.PI,u+=2*Math.PI;u-d>2*Math.PI&&(d=0,u=2*Math.PI);const f=(u-d)/o.curveStepCount,p=[];for(let g=d;g<=u;g+=f)p.push([s+c*Math.cos(g),l+h*Math.sin(g)]);return p.push([s+c*Math.cos(u),l+h*Math.sin(u)]),p.push([s,l]),I([p],o)}(t,e,r,i,a,n,l));return l.stroke!==it&&c.push(h),this._d("arc",c,l)}curve(t,e){const r=this._o(e),i=[],a=_(t,r);if(r.fill&&r.fill!==it)if("solid"===r.fillStyle){const e=_(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{const e=[],a=t;if(a.length){const t="number"==typeof a[0][0]?[a]:a;for(const i of t)i.length<3?e.push(...i):3===i.length?e.push(...rt(V([i[0],i[0],i[1],i[2]]),10,(1+r.roughness)/2)):e.push(...rt(V(i),10,(1+r.roughness)/2))}e.length&&i.push(I([e],r))}return r.stroke!==it&&i.push(a),this._d("curve",i,r)}polygon(t,e){const r=this._o(e),i=[],a=L(t,!0,r);return r.fill&&("solid"===r.fillStyle?i.push(D([t],r)):i.push(I([t],r))),r.stroke!==it&&i.push(a),this._d("polygon",i,r)}path(t,e){const r=this._o(e),i=[];if(!t)return this._d("path",i,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const a=r.fill&&"transparent"!==r.fill&&r.fill!==it,n=r.stroke!==it,o=!!(r.simplification&&r.simplification<1),s=function(t,e,r){const i=w(k(v(t))),a=[];let n=[],o=[0,0],s=[];const l=()=>{s.length>=4&&n.push(...rt(s,e)),s=[]},c=()=>{l(),n.length&&(a.push(n),n=[])};for(const{key:d,data:u}of i)switch(d){case"M":c(),o=[u[0],u[1]],n.push(o);break;case"L":l(),n.push([u[0],u[1]]);break;case"C":if(!s.length){const t=n.length?n[n.length-1]:o;s.push([t[0],t[1]])}s.push([u[0],u[1]]),s.push([u[2],u[3]]),s.push([u[4],u[5]]);break;case"Z":l(),n.push([o[0],o[1]])}if(c(),!r)return a;const h=[];for(const d of a){const t=tt(d,r);t.length&&h.push(t)}return h}(t,1,o?4-4*(r.simplification||1):(1+r.roughness)/2),l=O(t,r);if(a)if("solid"===r.fillStyle)if(1===s.length){const e=O(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else i.push(D(s,r));else i.push(I(s,r));return n&&(o?s.forEach((t=>{i.push(L(t,!1,r))})):i.push(l)),this._d("path",i,r)}opsToPath(t,e){let r="";for(const i of t.ops){const t="number"==typeof e&&e>=0?i.data.map((t=>+t.toFixed(e))):i.data;switch(i.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){const e=t.sets||[],r=t.options||this.defaultOptions,i=[];for(const a of e){let t=null;switch(a.type){case"path":t={d:this.opsToPath(a),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:it};break;case"fillPath":t={d:this.opsToPath(a),stroke:it,strokeWidth:0,fill:r.fill||it};break;case"fillSketch":t=this.fillSketch(a,r)}t&&i.push(t)}return i}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||it,strokeWidth:r,fill:it}}_mergedShape(t){return t.filter(((t,e)=>0===e||"move"!==t.op))}}class nt{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new at(e)}draw(t){const e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(const n of e)switch(n.type){case"path":i.save(),i.strokeStyle="none"===r.stroke?"transparent":r.stroke,i.lineWidth=r.strokeWidth,r.strokeLineDash&&i.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(i.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(i,n,a),i.restore();break;case"fillPath":{i.save(),i.fillStyle=r.fill||"";const e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(i,n,a,e),i.restore();break}case"fillSketch":this.fillSketch(i,n,r)}}fillSketch(t,e,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=i,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,i="nonzero"){t.beginPath();for(const a of e.ops){const e="number"==typeof r&&r>=0?a.data.map((t=>+t.toFixed(r))):a.data;switch(a.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(i):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,i,a){const n=this.gen.line(t,e,r,i,a);return this.draw(n),n}rectangle(t,e,r,i,a){const n=this.gen.rectangle(t,e,r,i,a);return this.draw(n),n}ellipse(t,e,r,i,a){const n=this.gen.ellipse(t,e,r,i,a);return this.draw(n),n}circle(t,e,r,i){const a=this.gen.circle(t,e,r,i);return this.draw(a),a}linearPath(t,e){const r=this.gen.linearPath(t,e);return this.draw(r),r}polygon(t,e){const r=this.gen.polygon(t,e);return this.draw(r),r}arc(t,e,r,i,a,n,o=!1,s){const l=this.gen.arc(t,e,r,i,a,n,o,s);return this.draw(l),l}curve(t,e){const r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){const r=this.gen.path(t,e);return this.draw(r),r}}const ot="http://www.w3.org/2000/svg";class st{constructor(t,e){this.svg=t,this.gen=new at(e)}draw(t){const e=t.sets||[],r=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,a=i.createElementNS(ot,"g"),n=t.options.fixedDecimalPlaceDigits;for(const o of e){let e=null;switch(o.type){case"path":e=i.createElementNS(ot,"path"),e.setAttribute("d",this.opsToPath(o,n)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":e=i.createElementNS(ot,"path"),e.setAttribute("d",this.opsToPath(o,n)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(i,o,r)}e&&a.appendChild(e)}return a}fillSketch(t,e,r){let i=r.fillWeight;i<0&&(i=r.strokeWidth/2);const a=t.createElementNS(ot,"path");return a.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),a.setAttribute("stroke",r.fill||""),a.setAttribute("stroke-width",i+""),a.setAttribute("fill","none"),r.fillLineDash&&a.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,i,a){const n=this.gen.line(t,e,r,i,a);return this.draw(n)}rectangle(t,e,r,i,a){const n=this.gen.rectangle(t,e,r,i,a);return this.draw(n)}ellipse(t,e,r,i,a){const n=this.gen.ellipse(t,e,r,i,a);return this.draw(n)}circle(t,e,r,i){const a=this.gen.circle(t,e,r,i);return this.draw(a)}linearPath(t,e){const r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){const r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,i,a,n,o=!1,s){const l=this.gen.arc(t,e,r,i,a,n,o,s);return this.draw(l)}curve(t,e){const r=this.gen.curve(t,e);return this.draw(r)}path(t,e){const r=this.gen.path(t,e);return this.draw(r)}}var lt={canvas:(t,e)=>new nt(t,e),svg:(t,e)=>new st(t,e),generator:t=>new at(t),newSeed:()=>at.newSeed()}},60513:(t,e,r)=>{"use strict";r.d(e,{T:()=>i});function i(t){var e=[];for(var r=1;r{i.r(t);i.d(t,{ARIAGlobalStatesAndProperties:()=>je,Accordion:()=>qe,AccordionExpandMode:()=>Be,AccordionItem:()=>He,Anchor:()=>_e,AnchoredRegion:()=>Os,Avatar:()=>Ms,Badge:()=>Hs,BaseProgress:()=>zr,Breadcrumb:()=>Bs,BreadcrumbItem:()=>zs,Button:()=>Qs,Calendar:()=>eo,CalendarTitleTemplate:()=>ho,Card:()=>go,CheckableFormAssociated:()=>Gs,Checkbox:()=>wo,Combobox:()=>Zo,ComboboxAutocomplete:()=>Qo,ComponentPresentation:()=>Se,Container:()=>U,ContainerConfiguration:()=>V,ContainerImpl:()=>ge,DI:()=>q,DataGrid:()=>lo,DataGridCell:()=>ro,DataGridCellTypes:()=>io,DataGridRow:()=>ao,DataGridRowTypes:()=>so,DateFormatter:()=>Js,DefaultComponentPresentation:()=>Ae,DefaultResolver:()=>H,DelegatesARIAButton:()=>Zs,DelegatesARIACombobox:()=>Jo,DelegatesARIALink:()=>Ke,DelegatesARIAListbox:()=>Wo,DelegatesARIAListboxOption:()=>_o,DelegatesARIASearch:()=>ea,DelegatesARIASelect:()=>oa,DelegatesARIATextbox:()=>Fr,DelegatesARIAToolbar:()=>Ha,DesignSystem:()=>Pn,DesignToken:()=>Dn,Dialog:()=>qn,Disclosure:()=>Gn,Divider:()=>Zn,DividerRole:()=>Qn,ElementDisambiguation:()=>Sn,FactoryImpl:()=>de,Flipper:()=>tr,FlipperDirection:()=>Jn,FlyoutPosBottom:()=>Rs,FlyoutPosBottomFill:()=>As,FlyoutPosTallest:()=>Ds,FlyoutPosTallestFill:()=>Fs,FlyoutPosTop:()=>Es,FlyoutPosTopFill:()=>Ss,FormAssociated:()=>Ws,FoundationElement:()=>Fe,FoundationElementRegistry:()=>Me,GenerateHeaderOptions:()=>to,HorizontalScroll:()=>Wr,Listbox:()=>Ko,ListboxElement:()=>sr,ListboxOption:()=>jo,MatchMediaBehavior:()=>Ka,MatchMediaStyleSheetBehavior:()=>Wa,Menu:()=>Tr,MenuItem:()=>kr,MenuItemRole:()=>wr,NumberField:()=>Pr,Picker:()=>br,PickerList:()=>lr,PickerListItem:()=>hr,PickerMenu:()=>nr,PickerMenuOption:()=>ar,PropertyStyleSheetBehavior:()=>Qa,Radio:()=>Kr,RadioGroup:()=>qr,Registration:()=>xe,ResolverBuilder:()=>M,ResolverImpl:()=>re,Search:()=>Jr,Select:()=>sa,SelectPosition:()=>Go,ServiceLocator:()=>j,Skeleton:()=>aa,Slider:()=>va,SliderLabel:()=>ca,SliderMode:()=>ma,StartEnd:()=>o,Switch:()=>Ca,Tab:()=>Ia,TabPanel:()=>wa,Tabs:()=>Ta,TabsOrientation:()=>Oa,TextArea:()=>Aa,TextAreaResize:()=>Ea,TextField:()=>Ar,TextFieldType:()=>Sr,Toolbar:()=>Pa,Tooltip:()=>Na,TooltipPosition:()=>za,TreeItem:()=>Ua,TreeView:()=>_a,accordionItemTemplate:()=>d,accordionTemplate:()=>Ve,all:()=>J,anchorTemplate:()=>Ue,anchoredRegionTemplate:()=>We,applyMixins:()=>Pe,avatarTemplate:()=>Ls,badgeTemplate:()=>Ps,breadcrumbItemTemplate:()=>Vs,breadcrumbTemplate:()=>Ns,buttonTemplate:()=>qs,calendarCellTemplate:()=>uo,calendarRowTemplate:()=>po,calendarTemplate:()=>vo,calendarWeekdayTemplate:()=>co,cardTemplate:()=>bo,checkboxTemplate:()=>yo,comboboxTemplate:()=>en,composedContains:()=>dn,composedParent:()=>ln,darkModeStylesheetBehavior:()=>Xa,dataGridCellTemplate:()=>an,dataGridRowTemplate:()=>rn,dataGridTemplate:()=>sn,dialogTemplate:()=>Nn,disabledCursor:()=>Za,disclosureTemplate:()=>Wn,display:()=>el,dividerTemplate:()=>Xn,endSlotTemplate:()=>n,endTemplate:()=>a,flipperTemplate:()=>er,focusVisible:()=>tl,forcedColorsStylesheetBehavior:()=>Ga,getDirection:()=>Is,hidden:()=>Ja,horizontalScrollTemplate:()=>Gr,ignore:()=>ie,inject:()=>K,interactiveCalendarGridTemplate:()=>fo,isListboxOption:()=>Uo,isTreeItemElement:()=>qa,lazy:()=>ee,lightModeStylesheetBehavior:()=>Ya,listboxOptionTemplate:()=>ir,listboxTemplate:()=>or,menuItemTemplate:()=>Ir,menuTemplate:()=>Or,newInstanceForScope:()=>se,newInstanceOf:()=>oe,noninteractiveCalendarTemplate:()=>mo,numberFieldTemplate:()=>Er,optional:()=>te,pickerListItemTemplate:()=>xr,pickerListTemplate:()=>Cr,pickerMenuOptionTemplate:()=>yr,pickerMenuTemplate:()=>gr,pickerTemplate:()=>pr,progressRingTemplate:()=>Vr,progressTemplate:()=>Nr,radioGroupTemplate:()=>Br,radioTemplate:()=>Ur,reflectAttributes:()=>Kn,roleForMenuItem:()=>$r,searchTemplate:()=>Yr,selectTemplate:()=>na,singleton:()=>Q,skeletonTemplate:()=>ra,sliderLabelTemplate:()=>la,sliderTemplate:()=>ua,startSlotTemplate:()=>r,startTemplate:()=>l,supportsElementInternals:()=>_s,switchTemplate:()=>ba,tabPanelTemplate:()=>xa,tabTemplate:()=>$a,tabsTemplate:()=>ka,textAreaTemplate:()=>Ra,textFieldTemplate:()=>Fa,toolbarTemplate:()=>La,tooltipTemplate:()=>Va,transient:()=>G,treeItemTemplate:()=>Ba,treeViewTemplate:()=>ja,validateKey:()=>we,whitespaceFilter:()=>Xr});var s=i(29690);class o{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}}const n=(e,t)=>(0,s.html)` + t.end?"end":void 0} + > + + ${t.end||""} + + +`;const r=(e,t)=>(0,s.html)` + + + ${t.start||""} + + +`;const a=(0,s.html)` + + + +`;const l=(0,s.html)` + + + +`;const d=(e,t)=>(0,s.html)` + +`;var h=function(e,t){h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)if(t.hasOwnProperty(i))e[i]=t[i]};return h(e,t)};function c(e,t){h(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}var u=function(){u=Object.assign||function e(t){for(var i,s=1,o=arguments.length;s=0;a--)if(r=e[a])n=(o<3?r(n):o>3?r(t,i,n):r(t,i))||n;return o>3&&n&&Object.defineProperty(t,i,n),n}function m(e,t){return function(i,s){t(i,s,e)}}function v(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)}function b(e,t,i,s){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function r(e){try{l(s.next(e))}catch(t){n(t)}}function a(e){try{l(s["throw"](e))}catch(t){n(t)}}function l(e){e.done?i(e.value):o(e.value).then(r,a)}l((s=s.apply(e,t||[])).next())}))}function g(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},s,o,n,r;return r={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function a(e){return function(t){return l([e,t])}}function l(r){if(s)throw new TypeError("Generator is already executing.");while(i)try{if(s=1,o&&(n=r[0]&2?o["return"]:r[0]?o["throw"]||((n=o["return"])&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;if(o=0,n)r=[r[0]&2,n.value];switch(r[0]){case 0:case 1:n=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;o=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!n||r[1]>n[0]&&r[1]=e.length)e=void 0;return{value:e&&e[s++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(e,t){var i=typeof Symbol==="function"&&e[Symbol.iterator];if(!i)return e;var s=i.call(e),o,n=[],r;try{while((t===void 0||t-- >0)&&!(o=s.next()).done)n.push(o.value)}catch(a){r={error:a}}finally{try{if(o&&!o.done&&(i=s["return"]))i.call(s)}finally{if(r)throw r.error}}return n}function $(){for(var e=[],t=0;t1||a(e,t)}))}}function a(e,t){try{l(s[e](t))}catch(i){c(n[0][3],i)}}function l(e){e.value instanceof k?Promise.resolve(e.value.v).then(d,h):c(n[0][2],e)}function d(e){a("next",e)}function h(e){a("throw",e)}function c(e,t){if(e(t),n.shift(),n.length)a(n[0][0],n[0][1])}}function T(e){var t,i;return t={},s("next"),s("throw",(function(e){throw e})),s("return"),t[Symbol.iterator]=function(){return this},t;function s(s,o){t[s]=e[s]?function(t){return(i=!i)?{value:k(e[s](t)),done:s==="return"}:o?o(t):t}:o}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],i;return t?t.call(e):(e=typeof x==="function"?x(e):e[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(t){i[t]=e[t]&&function(i){return new Promise((function(s,n){i=e[t](i),o(s,n,i.done,i.value)}))}}function o(e,t,i,s){Promise.resolve(s).then((function(t){e({value:t,done:i})}),t)}}function R(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e}function D(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)if(Object.hasOwnProperty.call(e,i))t[i]=e[i];t.default=e;return t}function S(e){return e&&e.__esModule?e:{default:e}}function A(e,t){if(!t.has(e)){throw new TypeError("attempted to get private field on non-instance")}return t.get(e)}function F(e,t,i){if(!t.has(e)){throw new TypeError("attempted to set private field on non-instance")}t.set(e,i);return i}const L=new Map;if(!("metadata"in Reflect)){Reflect.metadata=function(e,t){return function(i){Reflect.defineMetadata(e,t,i)}};Reflect.defineMetadata=function(e,t,i){let s=L.get(i);if(s===void 0){L.set(i,s=new Map)}s.set(e,t)};Reflect.getOwnMetadata=function(e,t){const i=L.get(t);if(i!==void 0){return i.get(e)}return void 0}}class M{constructor(e,t){this.container=e;this.key=t}instance(e){return this.registerResolver(0,e)}singleton(e){return this.registerResolver(1,e)}transient(e){return this.registerResolver(2,e)}callback(e){return this.registerResolver(3,e)}cachedCallback(e){return this.registerResolver(3,Ce(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,t){const{container:i,key:s}=this;this.container=this.key=void 0;return i.registerResolver(s,new re(s,e,t))}}function P(e){const t=e.slice();const i=Object.keys(e);const s=i.length;let o;for(let n=0;nnull,responsibleForOwnerRequests:false,defaultResolver:H.singleton})});const z=new Map;function N(e){return t=>Reflect.getOwnMetadata(e,t)}let B=null;const q=Object.freeze({createContainer(e){return new ge(null,Object.assign({},V.default,e))},findResponsibleContainer(e){const t=e.$$container$$;if(t&&t.responsibleForOwnerRequests){return t}return q.findParentContainer(e)},findParentContainer(e){const t=new CustomEvent(ve,{bubbles:true,composed:true,cancelable:true,detail:{container:void 0}});e.dispatchEvent(t);return t.detail.container||q.getOrCreateDOMContainer()},getOrCreateDOMContainer(e,t){if(!e){return B||(B=new ge(null,Object.assign({},V.default,t,{parentLocator:()=>null})))}return e.$$container$$||new ge(e,Object.assign({},V.default,t,{parentLocator:q.findParentContainer}))},getDesignParamtypes:N("design:paramtypes"),getAnnotationParamtypes:N("di:paramtypes"),getOrCreateAnnotationParamTypes(e){let t=this.getAnnotationParamtypes(e);if(t===void 0){Reflect.defineMetadata("di:paramtypes",t=[],e)}return t},getDependencies(e){let t=z.get(e);if(t===void 0){const i=e.inject;if(i===void 0){const i=q.getDesignParamtypes(e);const s=q.getAnnotationParamtypes(e);if(i===void 0){if(s===void 0){const i=Object.getPrototypeOf(e);if(typeof i==="function"&&i!==Function.prototype){t=P(q.getDependencies(i))}else{t=[]}}else{t=P(s)}}else if(s===void 0){t=P(i)}else{t=P(i);let e=s.length;let o;for(let i=0;i{const o=q.findResponsibleContainer(this);const r=o.get(i);const a=this[n];if(r!==a){this[n]=e;s.notify(t)}};s.subscribe({handleChange:o},"isConnected")}}return e}})},createInterface(e,t){const i=typeof e==="function"?e:t;const s=typeof e==="string"?e:e&&"friendlyName"in e?e.friendlyName||Ie:Ie;const o=typeof e==="string"?false:e&&"respectConnection"in e?e.respectConnection||false:false;const n=function(e,t,i){if(e==null||new.target!==undefined){throw new Error(`No registration for interface: '${n.friendlyName}'`)}if(t){q.defineProperty(e,t,n,o)}else{const t=q.getOrCreateAnnotationParamTypes(e);t[i]=n}};n.$isInterface=true;n.friendlyName=s==null?"(anonymous)":s;if(i!=null){n.register=function(e,t){return i(new M(e,t!==null&&t!==void 0?t:n))}}n.toString=function e(){return`InterfaceSymbol<${n.friendlyName}>`};return n},inject(...e){return function(t,i,s){if(typeof s==="number"){const i=q.getOrCreateAnnotationParamTypes(t);const o=e[0];if(o!==void 0){i[s]=o}}else if(i){q.defineProperty(t,i,e[0])}else{const i=s?q.getOrCreateAnnotationParamTypes(s.value):q.getOrCreateAnnotationParamTypes(t);let o;for(let t=0;ti.getAll(e,s)));const ee=_(((e,t,i)=>()=>i.get(e)));const te=_(((e,t,i)=>{if(i.has(e,true)){return i.get(e)}else{return undefined}}));function ie(e,t,i){q.inject(ie)(e,t,i)}ie.$isResolver=true;ie.resolve=()=>undefined;const se=_(((e,t,i)=>{const s=ne(e,t);const o=new re(e,0,s);i.registerResolver(e,o);return s}));const oe=_(((e,t,i)=>ne(e,t)));function ne(e,t){return t.getFactory(e).construct(t)}class re{constructor(e,t,i){this.key=e;this.strategy=t;this.state=i;this.resolving=false}get $isResolver(){return true}register(e){return e.registerResolver(this.key,this)}resolve(e,t){switch(this.strategy){case 0:return this.state;case 1:{if(this.resolving){throw new Error(`Cyclic dependency found: ${this.state.name}`)}this.resolving=true;this.state=e.getFactory(this.state).construct(t);this.strategy=0;this.resolving=false;return this.state}case 2:{const i=e.getFactory(this.state);if(i===null){throw new Error(`Resolver for ${String(this.key)} returned a null factory`)}return i.construct(t)}case 3:return this.state(e,t,this);case 4:return this.state[0].resolve(e,t);case 5:return t.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(e){var t,i,s;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return(s=(i=(t=e.getResolver(this.state))===null||t===void 0?void 0:t.getFactory)===null||i===void 0?void 0:i.call(t,e))!==null&&s!==void 0?s:null;default:return null}}}function ae(e){return this.get(e)}function le(e,t){return t(e)}class de{constructor(e,t){this.Type=e;this.dependencies=t;this.transformers=null}construct(e,t){let i;if(t===void 0){i=new this.Type(...this.dependencies.map(ae,e))}else{i=new this.Type(...this.dependencies.map(ae,e),...t)}if(this.transformers==null){return i}return this.transformers.reduce(le,i)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}}const he={$isResolver:true,resolve(e,t){return t}};function ce(e){return typeof e.register==="function"}function ue(e){return ce(e)&&typeof e.registerInRequestor==="boolean"}function pe(e){return ue(e)&&e.registerInRequestor}function fe(e){return e.prototype!==void 0}const me=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]);const ve="__DI_LOCATE_PARENT__";const be=new Map;class ge{constructor(e,t){this.owner=e;this.config=t;this._parent=void 0;this.registerDepth=0;this.context=null;if(e!==null){e.$$container$$=this}this.resolvers=new Map;this.resolvers.set(U,he);if(e instanceof Node){e.addEventListener(ve,(e=>{if(e.composedPath()[0]!==this.owner){e.detail.container=this;e.stopImmediatePropagation()}}))}}get parent(){if(this._parent===void 0){this._parent=this.config.parentLocator(this.owner)}return this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(e,...t){this.context=e;this.register(...t);this.context=null;return this}register(...e){if(++this.registerDepth===100){throw new Error("Unable to autoregister dependency")}let t;let i;let s;let o;let n;const r=this.context;for(let a=0,l=e.length;athis}))}jitRegister(e,t){if(typeof e!=="function"){throw new Error(`Attempted to jitRegister something that is not a constructor: '${e}'. Did you forget to register this dependency?`)}if(me.has(e.name)){throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`)}if(ce(e)){const i=e.register(t);if(!(i instanceof Object)||i.resolve==null){const i=t.resolvers.get(e);if(i!=void 0){return i}throw new Error("A valid resolver was not returned from the static register method")}return i}else if(e.$isInterface){throw new Error(`Attempted to jitRegister an interface: ${e.friendlyName}`)}else{const i=this.config.defaultResolver(e,t);t.resolvers.set(e,i);return i}}}const ye=new WeakMap;function Ce(e){return function(t,i,s){if(ye.has(s)){return ye.get(s)}const o=e(t,i,s);ye.set(s,o);return o}}const xe=Object.freeze({instance(e,t){return new re(e,0,t)},singleton(e,t){return new re(e,1,t)},transient(e,t){return new re(e,2,t)},callback(e,t){return new re(e,3,t)},cachedCallback(e,t){return new re(e,3,Ce(t))},aliasTo(e,t){return new re(t,5,e)}});function we(e){if(e===null||e===void 0){throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}}function $e(e,t,i){if(e instanceof re&&e.strategy===4){const s=e.state;let o=s.length;const n=new Array(o);while(o--){n[o]=s[o].resolve(t,i)}return n}return[e.resolve(t,i)]}const Ie="(anonymous)";function ke(e){return typeof e==="object"&&e!==null||typeof e==="function"}const Oe=function(){const e=new WeakMap;let t=false;let i="";let s=0;return function(o){t=e.get(o);if(t===void 0){i=o.toString();s=i.length;t=s>=29&&s<=100&&i.charCodeAt(s-1)===125&&i.charCodeAt(s-2)<=32&&i.charCodeAt(s-3)===93&&i.charCodeAt(s-4)===101&&i.charCodeAt(s-5)===100&&i.charCodeAt(s-6)===111&&i.charCodeAt(s-7)===99&&i.charCodeAt(s-8)===32&&i.charCodeAt(s-9)===101&&i.charCodeAt(s-10)===118&&i.charCodeAt(s-11)===105&&i.charCodeAt(s-12)===116&&i.charCodeAt(s-13)===97&&i.charCodeAt(s-14)===110&&i.charCodeAt(s-15)===88;e.set(o,t)}return t}}();const Te={};function Ee(e){switch(typeof e){case"number":return e>=0&&(e|0)===e;case"string":{const t=Te[e];if(t!==void 0){return t}const i=e.length;if(i===0){return Te[e]=false}let s=0;for(let o=0;o1||s<48||s>57){return Te[e]=false}}return Te[e]=true}default:return false}}function Re(e){return`${e.toLowerCase()}:presentation`}const De=new Map;const Se=Object.freeze({define(e,t,i){const s=Re(e);const o=De.get(s);if(o===void 0){De.set(s,t)}else{De.set(s,false)}i.register(xe.instance(s,t))},forTag(e,t){const i=Re(e);const s=De.get(i);if(s===false){const e=q.findResponsibleContainer(t);return e.get(i)}return s||null}});class Ae{constructor(e,t){this.template=e||null;this.styles=t===void 0?null:Array.isArray(t)?s.ElementStyles.create(t):t instanceof s.ElementStyles?t:s.ElementStyles.create([t])}applyTo(e){const t=e.$fastController;if(t.template===null){t.template=this.template}if(t.styles===null){t.styles=this.styles}}}class Fe extends s.FASTElement{constructor(){super(...arguments);this._presentation=void 0}get $presentation(){if(this._presentation===void 0){this._presentation=Se.forTag(this.tagName,this)}return this._presentation}templateChanged(){if(this.template!==undefined){this.$fastController.template=this.template}}stylesChanged(){if(this.styles!==undefined){this.$fastController.styles=this.styles}}connectedCallback(){if(this.$presentation!==null){this.$presentation.applyTo(this)}super.connectedCallback()}static compose(e){return(t={})=>new Me(this===Fe?class extends Fe{}:this,e,t)}}f([s.observable],Fe.prototype,"template",void 0);f([s.observable],Fe.prototype,"styles",void 0);function Le(e,t,i){if(typeof e==="function"){return e(t,i)}return e}class Me{constructor(e,t,i){this.type=e;this.elementDefinition=t;this.overrideDefinition=i;this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(e,t){const i=this.definition;const s=this.overrideDefinition;const o=i.prefix||t.elementPrefix;const n=`${o}-${i.baseName}`;t.tryDefineElement({name:n,type:this.type,baseClass:this.elementDefinition.baseClass,callback:e=>{const t=new Ae(Le(i.template,e,i),Le(i.styles,e,i));e.definePresentation(t);let o=Le(i.shadowOptions,e,i);if(e.shadowRootMode){if(o){if(!s.shadowOptions){o.mode=e.shadowRootMode}}else if(o!==null){o={mode:e.shadowRootMode}}}e.defineElement({elementOptions:Le(i.elementOptions,e,i),shadowOptions:o,attributes:Le(i.attributes,e,i)})}})}}function Pe(e,...t){const i=s.AttributeConfiguration.locate(e);t.forEach((t=>{Object.getOwnPropertyNames(t.prototype).forEach((i=>{if(i!=="constructor"){Object.defineProperty(e.prototype,i,Object.getOwnPropertyDescriptor(t.prototype,i))}}));const o=s.AttributeConfiguration.locate(t);o.forEach((e=>i.push(e)))}))}class He extends Fe{constructor(){super(...arguments);this.headinglevel=2;this.expanded=false;this.clickHandler=e=>{this.expanded=!this.expanded;this.change()};this.change=()=>{this.$emit("change")}}}f([(0,s.attr)({attribute:"heading-level",mode:"fromView",converter:s.nullableNumberConverter})],He.prototype,"headinglevel",void 0);f([(0,s.attr)({mode:"boolean"})],He.prototype,"expanded",void 0);f([s.attr],He.prototype,"id",void 0);Pe(He,o);const Ve=(e,t)=>(0,s.html)` + +`;var ze=i(74291);var Ne=i(83021);const Be={single:"single",multi:"multi"};class qe extends Fe{constructor(){super(...arguments);this.expandmode=Be.multi;this.activeItemIndex=0;this.change=()=>{this.$emit("change",this.activeid)};this.setItems=()=>{var e;if(this.accordionItems.length===0){return}this.accordionIds=this.getItemIds();this.accordionItems.forEach(((e,t)=>{if(e instanceof He){e.addEventListener("change",this.activeItemChange);if(this.isSingleExpandMode()){this.activeItemIndex!==t?e.expanded=false:e.expanded=true}}const i=this.accordionIds[t];e.setAttribute("id",typeof i!=="string"?`accordion-${t+1}`:i);this.activeid=this.accordionIds[this.activeItemIndex];e.addEventListener("keydown",this.handleItemKeyDown);e.addEventListener("focus",this.handleItemFocus)}));if(this.isSingleExpandMode()){const t=(e=this.findExpandedItem())!==null&&e!==void 0?e:this.accordionItems[0];t.setAttribute("aria-disabled","true")}};this.removeItemListeners=e=>{e.forEach(((e,t)=>{e.removeEventListener("change",this.activeItemChange);e.removeEventListener("keydown",this.handleItemKeyDown);e.removeEventListener("focus",this.handleItemFocus)}))};this.activeItemChange=e=>{if(e.defaultPrevented||e.target!==e.currentTarget){return}e.preventDefault();const t=e.target;this.activeid=t.getAttribute("id");if(this.isSingleExpandMode()){this.resetItems();t.expanded=true;t.setAttribute("aria-disabled","true");this.accordionItems.forEach((e=>{if(!e.hasAttribute("disabled")&&e.id!==this.activeid){e.removeAttribute("aria-disabled")}}))}this.activeItemIndex=Array.from(this.accordionItems).indexOf(t);this.change()};this.handleItemKeyDown=e=>{if(e.target!==e.currentTarget){return}this.accordionIds=this.getItemIds();switch(e.key){case ze.I5:e.preventDefault();this.adjust(-1);break;case ze.HX:e.preventDefault();this.adjust(1);break;case ze.Tg:this.activeItemIndex=0;this.focusItem();break;case ze.FM:this.activeItemIndex=this.accordionItems.length-1;this.focusItem();break}};this.handleItemFocus=e=>{if(e.target===e.currentTarget){const t=e.target;const i=this.activeItemIndex=Array.from(this.accordionItems).indexOf(t);if(this.activeItemIndex!==i&&i!==-1){this.activeItemIndex=i;this.activeid=this.accordionIds[this.activeItemIndex]}}}}accordionItemsChanged(e,t){if(this.$fastController.isConnected){this.removeItemListeners(e);this.setItems()}}findExpandedItem(){for(let e=0;e{e.expanded=false}))}getItemIds(){return this.accordionItems.map((e=>e.getAttribute("id")))}isSingleExpandMode(){return this.expandmode===Be.single}adjust(e){this.activeItemIndex=(0,Ne.Vf)(0,this.accordionItems.length-1,this.activeItemIndex+e);this.focusItem()}focusItem(){const e=this.accordionItems[this.activeItemIndex];if(e instanceof He){e.expandbutton.focus()}}}f([(0,s.attr)({attribute:"expand-mode"})],qe.prototype,"expandmode",void 0);f([s.observable],qe.prototype,"accordionItems",void 0);const Ue=(e,t)=>(0,s.html)` + + ${r(e,t)} + + + + ${n(e,t)} + +`;class je{}f([(0,s.attr)({attribute:"aria-atomic"})],je.prototype,"ariaAtomic",void 0);f([(0,s.attr)({attribute:"aria-busy"})],je.prototype,"ariaBusy",void 0);f([(0,s.attr)({attribute:"aria-controls"})],je.prototype,"ariaControls",void 0);f([(0,s.attr)({attribute:"aria-current"})],je.prototype,"ariaCurrent",void 0);f([(0,s.attr)({attribute:"aria-describedby"})],je.prototype,"ariaDescribedby",void 0);f([(0,s.attr)({attribute:"aria-details"})],je.prototype,"ariaDetails",void 0);f([(0,s.attr)({attribute:"aria-disabled"})],je.prototype,"ariaDisabled",void 0);f([(0,s.attr)({attribute:"aria-errormessage"})],je.prototype,"ariaErrormessage",void 0);f([(0,s.attr)({attribute:"aria-flowto"})],je.prototype,"ariaFlowto",void 0);f([(0,s.attr)({attribute:"aria-haspopup"})],je.prototype,"ariaHaspopup",void 0);f([(0,s.attr)({attribute:"aria-hidden"})],je.prototype,"ariaHidden",void 0);f([(0,s.attr)({attribute:"aria-invalid"})],je.prototype,"ariaInvalid",void 0);f([(0,s.attr)({attribute:"aria-keyshortcuts"})],je.prototype,"ariaKeyshortcuts",void 0);f([(0,s.attr)({attribute:"aria-label"})],je.prototype,"ariaLabel",void 0);f([(0,s.attr)({attribute:"aria-labelledby"})],je.prototype,"ariaLabelledby",void 0);f([(0,s.attr)({attribute:"aria-live"})],je.prototype,"ariaLive",void 0);f([(0,s.attr)({attribute:"aria-owns"})],je.prototype,"ariaOwns",void 0);f([(0,s.attr)({attribute:"aria-relevant"})],je.prototype,"ariaRelevant",void 0);f([(0,s.attr)({attribute:"aria-roledescription"})],je.prototype,"ariaRoledescription",void 0);class _e extends Fe{constructor(){super(...arguments);this.handleUnsupportedDelegatesFocus=()=>{var e;if(window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&((e=this.$fastController.definition.shadowOptions)===null||e===void 0?void 0:e.delegatesFocus)){this.focus=()=>{var e;(e=this.control)===null||e===void 0?void 0:e.focus()}}}}connectedCallback(){super.connectedCallback();this.handleUnsupportedDelegatesFocus()}}f([s.attr],_e.prototype,"download",void 0);f([s.attr],_e.prototype,"href",void 0);f([s.attr],_e.prototype,"hreflang",void 0);f([s.attr],_e.prototype,"ping",void 0);f([s.attr],_e.prototype,"referrerpolicy",void 0);f([s.attr],_e.prototype,"rel",void 0);f([s.attr],_e.prototype,"target",void 0);f([s.attr],_e.prototype,"type",void 0);f([s.observable],_e.prototype,"defaultSlottedContent",void 0);class Ke{}f([(0,s.attr)({attribute:"aria-expanded"})],Ke.prototype,"ariaExpanded",void 0);Pe(Ke,je);Pe(_e,o,Ke);const We=(e,t)=>(0,s.html)` + +`;var Ge=i(30086);const Xe="abort";const Ye="afterprint";const Qe="animationcancel";const Ze="animationend";const Je="animationiteration";const et="animationstart";const tt="appinstalled";const it="beforeprint";const st="beforeunload";const ot="beginEvent";const nt="blocked";const rt="blur";const at="canplay";const lt="canplaythrough";const dt="change";const ht="chargingchange";const ct="chargingtimechange";const ut="click";const pt="close";const ft="complete";const mt="compositionend";const vt="compositionstart";const bt="compositionupdate";const gt="contextmenu";const yt="copy";const Ct="cut";const xt="dblclick";const wt="devicechange";const $t="devicemotion";const It="deviceorientation";const kt="dischargingtimechange";const Ot="drag";const Tt="dragend";const Et="dragenter";const Rt="dragleave";const Dt="dragover";const St="dragstart";const At="drop";const Ft="durationchange";const Lt="emptied";const Mt="ended";const Pt="endevent";const Ht="error";const Vt="focus";const zt="focusin";const Nt="focusout";const Bt="fullscreenchange";const qt="fullscreenerror";const Ut="gamepadconnected";const jt="gamepaddisconnected";const _t="gotpointercapture";const Kt="hashchange";const Wt="lostpointercapture";const Gt="input";const Xt="invalid";const Yt="keydown";const Qt="keyup";const Zt="levelchange";const Jt="load";const ei="loadeddata";const ti="loadedmetadata";const ii="loadend";const si="loadstart";const oi="message";const ni="messageerror";const ri="mousedown";const ai="mouseenter";const li="mouseleave";const di="mousemove";const hi="mouseout";const ci="mouseover";const ui="mouseup";const pi="notificationclick";const fi="offline";const mi="online";const vi="open";const bi="orientationchange";const gi="pagehide";const yi="pageshow";const Ci="paste";const xi="pause";const wi="pointercancel";const $i="pointerdown";const Ii="pointerenter";const ki="pointerleave";const Oi="pointerlockchange";const Ti="pointerlockerror";const Ei="pointermove";const Ri="pointerout";const Di="pointerover";const Si="pointerup";const Ai="play";const Fi="playing";const Li="popstate";const Mi="progress";const Pi="push";const Hi="pushsubscriptionchange";const Vi="ratechange";const zi="readystatechange";const Ni="repeatevent";const Bi="reset";const qi="resize";const Ui="resourcetimingbufferfull";const ji="scroll";const _i="seeked";const Ki="seeking";const Wi="select";const Gi="show";const Xi="slotchange";const Yi="stalled";const Qi="start";const Zi="storage";const Ji="submit";const es="success";const ts="suspend";const is="SVGAbort";const ss="SVGError";const os="SVGLoad";const ns="SVGResize";const rs="SVGScroll";const as="SVGUnload";const ls="SVGZoom";const ds="timeout";const hs="timeupdate";const cs="touchcancel";const us="touchend";const ps="touchmove";const fs="touchstart";const ms="transitionend";const vs="unload";const bs="upgradeneeded";const gs="userproximity";const ys="versionchange";const Cs="visibilitychange";const xs="volumechange";const ws="waiting";const $s="wheel";const Is=e=>{const t=e.closest("[dir]");return t!==null&&t.dir==="rtl"?Ge.O.rtl:Ge.O.ltr};class ks{constructor(){this.intersectionDetector=null;this.observedElements=new Map;this.requestPosition=(e,t)=>{var i;if(this.intersectionDetector===null){return}if(this.observedElements.has(e)){(i=this.observedElements.get(e))===null||i===void 0?void 0:i.push(t);return}this.observedElements.set(e,[t]);this.intersectionDetector.observe(e)};this.cancelRequestPosition=(e,t)=>{const i=this.observedElements.get(e);if(i!==undefined){const e=i.indexOf(t);if(e!==-1){i.splice(e,1)}}};this.initializeIntersectionDetector=()=>{if(!s.$global.IntersectionObserver){return}this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]})};this.handleIntersection=e=>{if(this.intersectionDetector===null){return}const t=[];const i=[];e.forEach((e=>{var s;(s=this.intersectionDetector)===null||s===void 0?void 0:s.unobserve(e.target);const o=this.observedElements.get(e.target);if(o!==undefined){o.forEach((s=>{let o=t.indexOf(s);if(o===-1){o=t.length;t.push(s);i.push([])}i[o].push(e)}));this.observedElements.delete(e.target)}}));t.forEach(((e,t)=>{e(i[t])}))};this.initializeIntersectionDetector()}}class Os extends Fe{constructor(){super(...arguments);this.anchor="";this.viewport="";this.horizontalPositioningMode="uncontrolled";this.horizontalDefaultPosition="unset";this.horizontalViewportLock=false;this.horizontalInset=false;this.horizontalScaling="content";this.verticalPositioningMode="uncontrolled";this.verticalDefaultPosition="unset";this.verticalViewportLock=false;this.verticalInset=false;this.verticalScaling="content";this.fixedPlacement=false;this.autoUpdateMode="anchor";this.anchorElement=null;this.viewportElement=null;this.initialLayoutComplete=false;this.resizeDetector=null;this.baseHorizontalOffset=0;this.baseVerticalOffset=0;this.pendingPositioningUpdate=false;this.pendingReset=false;this.currentDirection=Ge.O.ltr;this.regionVisible=false;this.forceUpdate=false;this.updateThreshold=.5;this.update=()=>{if(!this.pendingPositioningUpdate){this.requestPositionUpdates()}};this.startObservers=()=>{this.stopObservers();if(this.anchorElement===null){return}this.requestPositionUpdates();if(this.resizeDetector!==null){this.resizeDetector.observe(this.anchorElement);this.resizeDetector.observe(this)}};this.requestPositionUpdates=()=>{if(this.anchorElement===null||this.pendingPositioningUpdate){return}Os.intersectionService.requestPosition(this,this.handleIntersection);Os.intersectionService.requestPosition(this.anchorElement,this.handleIntersection);if(this.viewportElement!==null){Os.intersectionService.requestPosition(this.viewportElement,this.handleIntersection)}this.pendingPositioningUpdate=true};this.stopObservers=()=>{if(this.pendingPositioningUpdate){this.pendingPositioningUpdate=false;Os.intersectionService.cancelRequestPosition(this,this.handleIntersection);if(this.anchorElement!==null){Os.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection)}if(this.viewportElement!==null){Os.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)}}if(this.resizeDetector!==null){this.resizeDetector.disconnect()}};this.getViewport=()=>{if(typeof this.viewport!=="string"||this.viewport===""){return document.documentElement}return document.getElementById(this.viewport)};this.getAnchor=()=>document.getElementById(this.anchor);this.handleIntersection=e=>{if(!this.pendingPositioningUpdate){return}this.pendingPositioningUpdate=false;if(!this.applyIntersectionEntries(e)){return}this.updateLayout()};this.applyIntersectionEntries=e=>{const t=e.find((e=>e.target===this));const i=e.find((e=>e.target===this.anchorElement));const s=e.find((e=>e.target===this.viewportElement));if(t===undefined||s===undefined||i===undefined){return false}if(!this.regionVisible||this.forceUpdate||this.regionRect===undefined||this.anchorRect===undefined||this.viewportRect===undefined||this.isRectDifferent(this.anchorRect,i.boundingClientRect)||this.isRectDifferent(this.viewportRect,s.boundingClientRect)||this.isRectDifferent(this.regionRect,t.boundingClientRect)){this.regionRect=t.boundingClientRect;this.anchorRect=i.boundingClientRect;if(this.viewportElement===document.documentElement){this.viewportRect=new DOMRectReadOnly(s.boundingClientRect.x+document.documentElement.scrollLeft,s.boundingClientRect.y+document.documentElement.scrollTop,s.boundingClientRect.width,s.boundingClientRect.height)}else{this.viewportRect=s.boundingClientRect}this.updateRegionOffset();this.forceUpdate=false;return true}return false};this.updateRegionOffset=()=>{if(this.anchorRect&&this.regionRect){this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset);this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset)}};this.isRectDifferent=(e,t)=>{if(Math.abs(e.top-t.top)>this.updateThreshold||Math.abs(e.right-t.right)>this.updateThreshold||Math.abs(e.bottom-t.bottom)>this.updateThreshold||Math.abs(e.left-t.left)>this.updateThreshold){return true}return false};this.handleResize=e=>{this.update()};this.reset=()=>{if(!this.pendingReset){return}this.pendingReset=false;if(this.anchorElement===null){this.anchorElement=this.getAnchor()}if(this.viewportElement===null){this.viewportElement=this.getViewport()}this.currentDirection=Is(this);this.startObservers()};this.updateLayout=()=>{let e=undefined;let t=undefined;if(this.horizontalPositioningMode!=="uncontrolled"){const e=this.getPositioningOptions(this.horizontalInset);if(this.horizontalDefaultPosition==="center"){t="center"}else if(this.horizontalDefaultPosition!=="unset"){let e=this.horizontalDefaultPosition;if(e==="start"||e==="end"){const t=Is(this);if(t!==this.currentDirection){this.currentDirection=t;this.initialize();return}if(this.currentDirection===Ge.O.ltr){e=e==="start"?"left":"right"}else{e=e==="start"?"right":"left"}}switch(e){case"left":t=this.horizontalInset?"insetStart":"start";break;case"right":t=this.horizontalInset?"insetEnd":"end";break}}const i=this.horizontalThreshold!==undefined?this.horizontalThreshold:this.regionRect!==undefined?this.regionRect.width:0;const s=this.anchorRect!==undefined?this.anchorRect.left:0;const o=this.anchorRect!==undefined?this.anchorRect.right:0;const n=this.anchorRect!==undefined?this.anchorRect.width:0;const r=this.viewportRect!==undefined?this.viewportRect.left:0;const a=this.viewportRect!==undefined?this.viewportRect.right:0;if(t===undefined||!(this.horizontalPositioningMode==="locktodefault")&&this.getAvailableSpace(t,s,o,n,r,a)this.getAvailableSpace(e[1],s,o,n,r,a)?e[0]:e[1]}}if(this.verticalPositioningMode!=="uncontrolled"){const t=this.getPositioningOptions(this.verticalInset);if(this.verticalDefaultPosition==="center"){e="center"}else if(this.verticalDefaultPosition!=="unset"){switch(this.verticalDefaultPosition){case"top":e=this.verticalInset?"insetStart":"start";break;case"bottom":e=this.verticalInset?"insetEnd":"end";break}}const i=this.verticalThreshold!==undefined?this.verticalThreshold:this.regionRect!==undefined?this.regionRect.height:0;const s=this.anchorRect!==undefined?this.anchorRect.top:0;const o=this.anchorRect!==undefined?this.anchorRect.bottom:0;const n=this.anchorRect!==undefined?this.anchorRect.height:0;const r=this.viewportRect!==undefined?this.viewportRect.top:0;const a=this.viewportRect!==undefined?this.viewportRect.bottom:0;if(e===undefined||!(this.verticalPositioningMode==="locktodefault")&&this.getAvailableSpace(e,s,o,n,r,a)this.getAvailableSpace(t[1],s,o,n,r,a)?t[0]:t[1]}}const i=this.getNextRegionDimension(t,e);const s=this.horizontalPosition!==t||this.verticalPosition!==e;this.setHorizontalPosition(t,i);this.setVerticalPosition(e,i);this.updateRegionStyle();if(!this.initialLayoutComplete){this.initialLayoutComplete=true;this.requestPositionUpdates();return}if(!this.regionVisible){this.regionVisible=true;this.style.removeProperty("pointer-events");this.style.removeProperty("opacity");this.classList.toggle("loaded",true);this.$emit("loaded",this,{bubbles:false})}this.updatePositionClasses();if(s){this.$emit("positionchange",this,{bubbles:false})}};this.updateRegionStyle=()=>{this.style.width=this.regionWidth;this.style.height=this.regionHeight;this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`};this.updatePositionClasses=()=>{this.classList.toggle("top",this.verticalPosition==="start");this.classList.toggle("bottom",this.verticalPosition==="end");this.classList.toggle("inset-top",this.verticalPosition==="insetStart");this.classList.toggle("inset-bottom",this.verticalPosition==="insetEnd");this.classList.toggle("vertical-center",this.verticalPosition==="center");this.classList.toggle("left",this.horizontalPosition==="start");this.classList.toggle("right",this.horizontalPosition==="end");this.classList.toggle("inset-left",this.horizontalPosition==="insetStart");this.classList.toggle("inset-right",this.horizontalPosition==="insetEnd");this.classList.toggle("horizontal-center",this.horizontalPosition==="center")};this.setHorizontalPosition=(e,t)=>{if(e===undefined||this.regionRect===undefined||this.anchorRect===undefined||this.viewportRect===undefined){return}let i=0;switch(this.horizontalScaling){case"anchor":case"fill":i=this.horizontalViewportLock?this.viewportRect.width:t.width;this.regionWidth=`${i}px`;break;case"content":i=this.regionRect.width;this.regionWidth="unset";break}let s=0;switch(e){case"start":this.translateX=this.baseHorizontalOffset-i;if(this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right){this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right)}break;case"insetStart":this.translateX=this.baseHorizontalOffset-i+this.anchorRect.width;if(this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right){this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right)}break;case"insetEnd":this.translateX=this.baseHorizontalOffset;if(this.horizontalViewportLock&&this.anchorRect.leftthis.viewportRect.right)){this.translateX=this.translateX-(e-this.viewportRect.left)}else if(t>this.viewportRect.right&&!(e{if(e===undefined||this.regionRect===undefined||this.anchorRect===undefined||this.viewportRect===undefined){return}let i=0;switch(this.verticalScaling){case"anchor":case"fill":i=this.verticalViewportLock?this.viewportRect.height:t.height;this.regionHeight=`${i}px`;break;case"content":i=this.regionRect.height;this.regionHeight="unset";break}let s=0;switch(e){case"start":this.translateY=this.baseVerticalOffset-i;if(this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom){this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom)}break;case"insetStart":this.translateY=this.baseVerticalOffset-i+this.anchorRect.height;if(this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom){this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom)}break;case"insetEnd":this.translateY=this.baseVerticalOffset;if(this.verticalViewportLock&&this.anchorRect.topthis.viewportRect.bottom)){this.translateY=this.translateY-(e-this.viewportRect.top)}else if(t>this.viewportRect.bottom&&!(e{if(e){return["insetStart","insetEnd"]}return["start","end"]};this.getAvailableSpace=(e,t,i,s,o,n)=>{const r=t-o;const a=n-(t+s);switch(e){case"start":return r;case"insetStart":return r+s;case"insetEnd":return a+s;case"end":return a;case"center":return Math.min(r,a)*2+s}};this.getNextRegionDimension=(e,t)=>{const i={height:this.regionRect!==undefined?this.regionRect.height:0,width:this.regionRect!==undefined?this.regionRect.width:0};if(e!==undefined&&this.horizontalScaling==="fill"){i.width=this.getAvailableSpace(e,this.anchorRect!==undefined?this.anchorRect.left:0,this.anchorRect!==undefined?this.anchorRect.right:0,this.anchorRect!==undefined?this.anchorRect.width:0,this.viewportRect!==undefined?this.viewportRect.left:0,this.viewportRect!==undefined?this.viewportRect.right:0)}else if(this.horizontalScaling==="anchor"){i.width=this.anchorRect!==undefined?this.anchorRect.width:0}if(t!==undefined&&this.verticalScaling==="fill"){i.height=this.getAvailableSpace(t,this.anchorRect!==undefined?this.anchorRect.top:0,this.anchorRect!==undefined?this.anchorRect.bottom:0,this.anchorRect!==undefined?this.anchorRect.height:0,this.viewportRect!==undefined?this.viewportRect.top:0,this.viewportRect!==undefined?this.viewportRect.bottom:0)}else if(this.verticalScaling==="anchor"){i.height=this.anchorRect!==undefined?this.anchorRect.height:0}return i};this.startAutoUpdateEventListeners=()=>{window.addEventListener(qi,this.update,{passive:true});window.addEventListener(ji,this.update,{passive:true,capture:true});if(this.resizeDetector!==null&&this.viewportElement!==null){this.resizeDetector.observe(this.viewportElement)}};this.stopAutoUpdateEventListeners=()=>{window.removeEventListener(qi,this.update);window.removeEventListener(ji,this.update);if(this.resizeDetector!==null&&this.viewportElement!==null){this.resizeDetector.unobserve(this.viewportElement)}}}anchorChanged(){if(this.initialLayoutComplete){this.anchorElement=this.getAnchor()}}viewportChanged(){if(this.initialLayoutComplete){this.viewportElement=this.getViewport()}}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){if(this.$fastController.isConnected&&this.initialLayoutComplete){this.initialize()}}autoUpdateModeChanged(e,t){if(this.$fastController.isConnected&&this.initialLayoutComplete){if(e==="auto"){this.stopAutoUpdateEventListeners()}if(t==="auto"){this.startAutoUpdateEventListeners()}}}anchorElementChanged(){this.requestReset()}viewportElementChanged(){if(this.$fastController.isConnected&&this.initialLayoutComplete){this.initialize()}}connectedCallback(){super.connectedCallback();if(this.autoUpdateMode==="auto"){this.startAutoUpdateEventListeners()}this.initialize()}disconnectedCallback(){super.disconnectedCallback();if(this.autoUpdateMode==="auto"){this.stopAutoUpdateEventListeners()}this.stopObservers();this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){if(this.resizeDetector!==null){this.resizeDetector.disconnect();this.resizeDetector=null}}initializeResizeDetector(){this.disconnectResizeDetector();this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){if(this.$fastController.isConnected&&this.initialLayoutComplete){this.forceUpdate=true;this.update()}}initialize(){this.initializeResizeDetector();if(this.anchorElement===null){this.anchorElement=this.getAnchor()}this.requestReset()}requestReset(){if(this.$fastController.isConnected&&this.pendingReset===false){this.setInitialState();s.DOM.queueUpdate((()=>this.reset()));this.pendingReset=true}}setInitialState(){this.initialLayoutComplete=false;this.regionVisible=false;this.translateX=0;this.translateY=0;this.baseHorizontalOffset=0;this.baseVerticalOffset=0;this.viewportRect=undefined;this.regionRect=undefined;this.anchorRect=undefined;this.verticalPosition=undefined;this.horizontalPosition=undefined;this.style.opacity="0";this.style.pointerEvents="none";this.forceUpdate=false;this.style.position=this.fixedPlacement?"fixed":"absolute";this.updatePositionClasses();this.updateRegionStyle()}}Os.intersectionService=new ks;f([s.attr],Os.prototype,"anchor",void 0);f([s.attr],Os.prototype,"viewport",void 0);f([(0,s.attr)({attribute:"horizontal-positioning-mode"})],Os.prototype,"horizontalPositioningMode",void 0);f([(0,s.attr)({attribute:"horizontal-default-position"})],Os.prototype,"horizontalDefaultPosition",void 0);f([(0,s.attr)({attribute:"horizontal-viewport-lock",mode:"boolean"})],Os.prototype,"horizontalViewportLock",void 0);f([(0,s.attr)({attribute:"horizontal-inset",mode:"boolean"})],Os.prototype,"horizontalInset",void 0);f([(0,s.attr)({attribute:"horizontal-threshold"})],Os.prototype,"horizontalThreshold",void 0);f([(0,s.attr)({attribute:"horizontal-scaling"})],Os.prototype,"horizontalScaling",void 0);f([(0,s.attr)({attribute:"vertical-positioning-mode"})],Os.prototype,"verticalPositioningMode",void 0);f([(0,s.attr)({attribute:"vertical-default-position"})],Os.prototype,"verticalDefaultPosition",void 0);f([(0,s.attr)({attribute:"vertical-viewport-lock",mode:"boolean"})],Os.prototype,"verticalViewportLock",void 0);f([(0,s.attr)({attribute:"vertical-inset",mode:"boolean"})],Os.prototype,"verticalInset",void 0);f([(0,s.attr)({attribute:"vertical-threshold"})],Os.prototype,"verticalThreshold",void 0);f([(0,s.attr)({attribute:"vertical-scaling"})],Os.prototype,"verticalScaling",void 0);f([(0,s.attr)({attribute:"fixed-placement",mode:"boolean"})],Os.prototype,"fixedPlacement",void 0);f([(0,s.attr)({attribute:"auto-update-mode"})],Os.prototype,"autoUpdateMode",void 0);f([s.observable],Os.prototype,"anchorElement",void 0);f([s.observable],Os.prototype,"viewportElement",void 0);f([s.observable],Os.prototype,"initialLayoutComplete",void 0);const Ts={horizontalDefaultPosition:"center",horizontalPositioningMode:"locktodefault",horizontalInset:false,horizontalScaling:"anchor"};const Es=Object.assign(Object.assign({},Ts),{verticalDefaultPosition:"top",verticalPositioningMode:"locktodefault",verticalInset:false,verticalScaling:"content"});const Rs=Object.assign(Object.assign({},Ts),{verticalDefaultPosition:"bottom",verticalPositioningMode:"locktodefault",verticalInset:false,verticalScaling:"content"});const Ds=Object.assign(Object.assign({},Ts),{verticalPositioningMode:"dynamic",verticalInset:false,verticalScaling:"content"});const Ss=Object.assign(Object.assign({},Es),{verticalScaling:"fill"});const As=Object.assign(Object.assign({},Rs),{verticalScaling:"fill"});const Fs=Object.assign(Object.assign({},Ds),{verticalScaling:"fill"});const Ls=(e,t)=>(0,s.html)` + + +`;class Ms extends Fe{connectedCallback(){super.connectedCallback();if(!this.shape){this.shape="circle"}}}f([s.attr],Ms.prototype,"fill",void 0);f([s.attr],Ms.prototype,"color",void 0);f([s.attr],Ms.prototype,"link",void 0);f([s.attr],Ms.prototype,"shape",void 0);const Ps=(e,t)=>(0,s.html)` + +`;class Hs extends Fe{constructor(){super(...arguments);this.generateBadgeStyle=()=>{if(!this.fill&&!this.color){return}const e=`background-color: var(--badge-fill-${this.fill});`;const t=`color: var(--badge-color-${this.color});`;if(this.fill&&!this.color){return e}else if(this.color&&!this.fill){return t}else{return`${t} ${e}`}}}}f([(0,s.attr)({attribute:"fill"})],Hs.prototype,"fill",void 0);f([(0,s.attr)({attribute:"color"})],Hs.prototype,"color",void 0);f([(0,s.attr)({mode:"boolean"})],Hs.prototype,"circular",void 0);const Vs=(e,t)=>(0,s.html)` +
+ ${(0,s.when)((e=>e.href&&e.href.length>0),(0,s.html)` + ${Ue(e,t)} + `)} + ${(0,s.when)((e=>!e.href),(0,s.html)` + ${r(e,t)} + + ${n(e,t)} + `)} + ${(0,s.when)((e=>e.separator),(0,s.html)` + + `)} +
+`;class zs extends _e{constructor(){super(...arguments);this.separator=true}}f([s.observable],zs.prototype,"separator",void 0);Pe(zs,o,Ke);const Ns=(e,t)=>(0,s.html)` + +`;class Bs extends Fe{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(this.slottedBreadcrumbItems===undefined||this.slottedBreadcrumbItems.length===0){return}const e=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.slottedBreadcrumbItems.forEach((t=>{const i=t===e;this.setItemSeparator(t,i);this.setAriaCurrent(t,i)}))}}setItemSeparator(e,t){if(e instanceof zs){e.separator=!t}}findChildWithHref(e){var t,i;if(e.childElementCount>0){return e.querySelector("a[href]")}else if((t=e.shadowRoot)===null||t===void 0?void 0:t.childElementCount){return(i=e.shadowRoot)===null||i===void 0?void 0:i.querySelector("a[href]")}else return null}setAriaCurrent(e,t){const i=this.findChildWithHref(e);if(i===null&&e.hasAttribute("href")&&e instanceof zs){t?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current")}else if(i!==null){t?i.setAttribute("aria-current","page"):i.removeAttribute("aria-current")}}}f([s.observable],Bs.prototype,"slottedBreadcrumbItems",void 0);const qs=(e,t)=>(0,s.html)` + +`;const Us="form-associated-proxy";const js="ElementInternals";const _s=js in window&&"setFormValue"in window[js].prototype;const Ks=new WeakMap;function Ws(e){const t=class extends e{constructor(...e){super(...e);this.dirtyValue=false;this.disabled=false;this.proxyEventsToBlock=["change","click"];this.proxyInitialized=false;this.required=false;this.initialValue=this.initialValue||"";if(!this.elementInternals){this.formResetCallback=this.formResetCallback.bind(this)}}static get formAssociated(){return _s}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals){return Object.freeze(Array.from(this.elementInternals.labels))}else if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){const e=this.proxy.labels;const t=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`));const i=e?t.concat(Array.from(e)):t;return Object.freeze(i)}else{return s.emptyArray}}valueChanged(e,t){this.dirtyValue=true;if(this.proxy instanceof HTMLElement){this.proxy.value=this.value}this.currentValue=this.value;this.setFormValue(this.value);this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(e,t){if(!this.dirtyValue){this.value=this.initialValue;this.dirtyValue=false}}disabledChanged(e,t){if(this.proxy instanceof HTMLElement){this.proxy.disabled=this.disabled}s.DOM.queueUpdate((()=>this.classList.toggle("disabled",this.disabled)))}nameChanged(e,t){if(this.proxy instanceof HTMLElement){this.proxy.name=this.name}}requiredChanged(e,t){if(this.proxy instanceof HTMLElement){this.proxy.required=this.required}s.DOM.queueUpdate((()=>this.classList.toggle("required",this.required)));this.validate()}get elementInternals(){if(!_s){return null}let e=Ks.get(this);if(!e){e=this.attachInternals();Ks.set(this,e)}return e}connectedCallback(){super.connectedCallback();this.addEventListener("keypress",this._keypressHandler);if(!this.value){this.value=this.initialValue;this.dirtyValue=false}if(!this.elementInternals){this.attachProxy();if(this.form){this.form.addEventListener("reset",this.formResetCallback)}}}disconnectedCallback(){super.disconnectedCallback();this.proxyEventsToBlock.forEach((e=>this.proxy.removeEventListener(e,this.stopPropagation)));if(!this.elementInternals&&this.form){this.form.removeEventListener("reset",this.formResetCallback)}}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(e,t,i){if(this.elementInternals){this.elementInternals.setValidity(e,t,i)}else if(typeof t==="string"){this.proxy.setCustomValidity(t)}}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.initialValue;this.dirtyValue=false}attachProxy(){var e;if(!this.proxyInitialized){this.proxyInitialized=true;this.proxy.style.display="none";this.proxyEventsToBlock.forEach((e=>this.proxy.addEventListener(e,this.stopPropagation)));this.proxy.disabled=this.disabled;this.proxy.required=this.required;if(typeof this.name==="string"){this.proxy.name=this.name}if(typeof this.value==="string"){this.proxy.value=this.value}this.proxy.setAttribute("slot",Us);this.proxySlot=document.createElement("slot");this.proxySlot.setAttribute("name",Us)}(e=this.shadowRoot)===null||e===void 0?void 0:e.appendChild(this.proxySlot);this.appendChild(this.proxy)}detachProxy(){var e;this.removeChild(this.proxy);(e=this.shadowRoot)===null||e===void 0?void 0:e.removeChild(this.proxySlot)}validate(e){if(this.proxy instanceof HTMLElement){this.setValidity(this.proxy.validity,this.proxy.validationMessage,e)}}setFormValue(e,t){if(this.elementInternals){this.elementInternals.setFormValue(e,t||e)}}_keypressHandler(e){switch(e.key){case ze.Mm:if(this.form instanceof HTMLFormElement){const e=this.form.querySelector("[type=submit]");e===null||e===void 0?void 0:e.click()}break}}stopPropagation(e){e.stopPropagation()}};(0,s.attr)({mode:"boolean"})(t.prototype,"disabled");(0,s.attr)({mode:"fromView",attribute:"value"})(t.prototype,"initialValue");(0,s.attr)({attribute:"current-value"})(t.prototype,"currentValue");(0,s.attr)(t.prototype,"name");(0,s.attr)({mode:"boolean"})(t.prototype,"required");(0,s.observable)(t.prototype,"value");return t}function Gs(e){class t extends(Ws(e)){}class i extends t{constructor(...e){super(e);this.dirtyChecked=false;this.checkedAttribute=false;this.checked=false;this.dirtyChecked=false}checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){if(!this.dirtyChecked){this.checked=this.defaultChecked;this.dirtyChecked=false}}checkedChanged(e,t){if(!this.dirtyChecked){this.dirtyChecked=true}this.currentChecked=this.checked;this.updateForm();if(this.proxy instanceof HTMLInputElement){this.proxy.checked=this.checked}if(e!==undefined){this.$emit("change")}this.validate()}currentCheckedChanged(e,t){this.checked=this.currentChecked}updateForm(){const e=this.checked?this.value:null;this.setFormValue(e,e)}connectedCallback(){super.connectedCallback();this.updateForm()}formResetCallback(){super.formResetCallback();this.checked=!!this.checkedAttribute;this.dirtyChecked=false}}(0,s.attr)({attribute:"checked",mode:"boolean"})(i.prototype,"checkedAttribute");(0,s.attr)({attribute:"current-checked",converter:s.booleanConverter})(i.prototype,"currentChecked");(0,s.observable)(i.prototype,"defaultChecked");(0,s.observable)(i.prototype,"checked");return i}class Xs extends Fe{}class Ys extends(Ws(Xs)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}class Qs extends Ys{constructor(){super(...arguments);this.handleClick=e=>{var t;if(this.disabled&&((t=this.defaultSlottedContent)===null||t===void 0?void 0:t.length)<=1){e.stopPropagation()}};this.handleSubmission=()=>{if(!this.form){return}const e=this.proxy.isConnected;if(!e){this.attachProxy()}typeof this.form.requestSubmit==="function"?this.form.requestSubmit(this.proxy):this.proxy.click();if(!e){this.detachProxy()}};this.handleFormReset=()=>{var e;(e=this.form)===null||e===void 0?void 0:e.reset()};this.handleUnsupportedDelegatesFocus=()=>{var e;if(window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&((e=this.$fastController.definition.shadowOptions)===null||e===void 0?void 0:e.delegatesFocus)){this.focus=()=>{this.control.focus()}}}}formactionChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.formAction=this.formaction}}formenctypeChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.formEnctype=this.formenctype}}formmethodChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.formMethod=this.formmethod}}formnovalidateChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.formNoValidate=this.formnovalidate}}formtargetChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.formTarget=this.formtarget}}typeChanged(e,t){if(this.proxy instanceof HTMLInputElement){this.proxy.type=this.type}t==="submit"&&this.addEventListener("click",this.handleSubmission);e==="submit"&&this.removeEventListener("click",this.handleSubmission);t==="reset"&&this.addEventListener("click",this.handleFormReset);e==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var e;super.connectedCallback();this.proxy.setAttribute("type",this.type);this.handleUnsupportedDelegatesFocus();const t=Array.from((e=this.control)===null||e===void 0?void 0:e.children);if(t){t.forEach((e=>{e.addEventListener("click",this.handleClick)}))}}disconnectedCallback(){var e;super.disconnectedCallback();const t=Array.from((e=this.control)===null||e===void 0?void 0:e.children);if(t){t.forEach((e=>{e.removeEventListener("click",this.handleClick)}))}}}f([(0,s.attr)({mode:"boolean"})],Qs.prototype,"autofocus",void 0);f([(0,s.attr)({attribute:"form"})],Qs.prototype,"formId",void 0);f([s.attr],Qs.prototype,"formaction",void 0);f([s.attr],Qs.prototype,"formenctype",void 0);f([s.attr],Qs.prototype,"formmethod",void 0);f([(0,s.attr)({mode:"boolean"})],Qs.prototype,"formnovalidate",void 0);f([s.attr],Qs.prototype,"formtarget",void 0);f([s.attr],Qs.prototype,"type",void 0);f([s.observable],Qs.prototype,"defaultSlottedContent",void 0);class Zs{}f([(0,s.attr)({attribute:"aria-expanded"})],Zs.prototype,"ariaExpanded",void 0);f([(0,s.attr)({attribute:"aria-pressed"})],Zs.prototype,"ariaPressed",void 0);Pe(Zs,je);Pe(Qs,o,Zs);class Js{constructor(e){this.dayFormat="numeric";this.weekdayFormat="long";this.monthFormat="long";this.yearFormat="numeric";this.date=new Date;if(e){for(const t in e){const i=e[t];if(t==="date"){this.date=this.getDateObject(i)}else{this[t]=i}}}}getDateObject(e){if(typeof e==="string"){const t=e.split(/[/-]/);if(t.length<3){return new Date}return new Date(parseInt(t[2],10),parseInt(t[0],10)-1,parseInt(t[1],10))}else if("day"in e&&"month"in e&&"year"in e){const{day:t,month:i,year:s}=e;return new Date(s,i-1,t)}return e}getDate(e=this.date,t={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},i=this.locale){const s=this.getDateObject(e);if(!s.getTime()){return""}const o=Object.assign({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},t);return new Intl.DateTimeFormat(i,o).format(s)}getDay(e=this.date.getDate(),t=this.dayFormat,i=this.locale){return this.getDate({month:1,day:e,year:2020},{day:t},i)}getMonth(e=this.date.getMonth()+1,t=this.monthFormat,i=this.locale){return this.getDate({month:e,day:2,year:2020},{month:t},i)}getYear(e=this.date.getFullYear(),t=this.yearFormat,i=this.locale){return this.getDate({month:2,day:2,year:e},{year:t},i)}getWeekday(e=0,t=this.weekdayFormat,i=this.locale){const s=`1-${e+1}-2017`;return this.getDate(s,{weekday:t},i)}getWeekdays(e=this.weekdayFormat,t=this.locale){return Array(7).fill(null).map(((i,s)=>this.getWeekday(s,e,t)))}}class eo extends Fe{constructor(){super(...arguments);this.dateFormatter=new Js;this.readonly=false;this.locale="en-US";this.month=(new Date).getMonth()+1;this.year=(new Date).getFullYear();this.dayFormat="numeric";this.weekdayFormat="short";this.monthFormat="long";this.yearFormat="numeric";this.minWeeks=0;this.disabledDates="";this.selectedDates="";this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(e=this.month,t=this.year){const i=e=>new Date(e.getFullYear(),e.getMonth(),1).getDay();const s=e=>{const t=new Date(e.getFullYear(),e.getMonth()+1,1);return new Date(t.getTime()-this.oneDayInMs).getDate()};const o=new Date(t,e-1);const n=new Date(t,e);const r=new Date(t,e-2);return{length:s(o),month:e,start:i(o),year:t,previous:{length:s(r),month:r.getMonth()+1,start:i(r),year:r.getFullYear()},next:{length:s(n),month:n.getMonth()+1,start:i(n),year:n.getFullYear()}}}getDays(e=this.getMonthInfo(),t=this.minWeeks){t=t>10?10:t;const{start:i,length:s,previous:o,next:n}=e;const r=[];let a=1-i;while(as?n:e;const l=a<1?o.length+a:a>s?a-s:a;const d=`${t}-${l}-${i}`;const h=this.dateInString(d,this.disabledDates);const c=this.dateInString(d,this.selectedDates);const u={day:l,month:t,year:i,disabled:h,selected:c};const p=r[r.length-1];if(r.length===0||p.length%7===0){r.push([u])}else{p.push(u)}a++}return r}dateInString(e,t){const i=t.split(",").map((e=>e.trim()));e=typeof e==="string"?e:`${e.getMonth()+1}-${e.getDate()}-${e.getFullYear()}`;return i.some((t=>t===e))}getDayClassNames(e,t){const{day:i,month:s,year:o,disabled:n,selected:r}=e;const a=t===`${s}-${i}-${o}`;const l=this.month!==s;return["day",a&&"today",l&&"inactive",n&&"disabled",r&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){const e=this.dateFormatter.getWeekdays().map((e=>({text:e})));if(this.weekdayFormat!=="long"){const t=this.dateFormatter.getWeekdays("long");e.forEach(((e,i)=>{e.abbr=t[i]}))}return e}handleDateSelect(e,t){e.preventDefault;this.$emit("dateselected",t)}handleKeydown(e,t){if(e.key===ze.Mm){this.handleDateSelect(e,t)}return true}}f([(0,s.attr)({mode:"boolean"})],eo.prototype,"readonly",void 0);f([s.attr],eo.prototype,"locale",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],eo.prototype,"month",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],eo.prototype,"year",void 0);f([(0,s.attr)({attribute:"day-format",mode:"fromView"})],eo.prototype,"dayFormat",void 0);f([(0,s.attr)({attribute:"weekday-format",mode:"fromView"})],eo.prototype,"weekdayFormat",void 0);f([(0,s.attr)({attribute:"month-format",mode:"fromView"})],eo.prototype,"monthFormat",void 0);f([(0,s.attr)({attribute:"year-format",mode:"fromView"})],eo.prototype,"yearFormat",void 0);f([(0,s.attr)({attribute:"min-weeks",converter:s.nullableNumberConverter})],eo.prototype,"minWeeks",void 0);f([(0,s.attr)({attribute:"disabled-dates"})],eo.prototype,"disabledDates",void 0);f([(0,s.attr)({attribute:"selected-dates"})],eo.prototype,"selectedDates",void 0);const to={none:"none",default:"default",sticky:"sticky"};const io={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"};const so={default:"default",header:"header",stickyHeader:"sticky-header"};const oo=(0,s.html)` + +`;const no=(0,s.html)` + +`;class ro extends Fe{constructor(){super(...arguments);this.cellType=io.default;this.rowData=null;this.columnDefinition=null;this.isActiveCell=false;this.customCellView=null;this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){if(this.$fastController.isConnected){this.updateCellView()}}gridColumnChanged(){if(this.$fastController.isConnected){this.updateCellStyle()}}columnDefinitionChanged(e,t){if(this.$fastController.isConnected){this.updateCellView()}}connectedCallback(){var e;super.connectedCallback();this.addEventListener(zt,this.handleFocusin);this.addEventListener(Nt,this.handleFocusout);this.addEventListener(Yt,this.handleKeydown);this.style.gridColumn=`${((e=this.columnDefinition)===null||e===void 0?void 0:e.gridColumn)===undefined?0:this.columnDefinition.gridColumn}`;this.updateCellView();this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback();this.removeEventListener(zt,this.handleFocusin);this.removeEventListener(Nt,this.handleFocusout);this.removeEventListener(Yt,this.handleKeydown);this.disconnectCellView()}handleFocusin(e){if(this.isActiveCell){return}this.isActiveCell=true;switch(this.cellType){case io.columnHeader:if(this.columnDefinition!==null&&this.columnDefinition.headerCellInternalFocusQueue!==true&&typeof this.columnDefinition.headerCellFocusTargetCallback==="function"){const e=this.columnDefinition.headerCellFocusTargetCallback(this);if(e!==null){e.focus()}}break;default:if(this.columnDefinition!==null&&this.columnDefinition.cellInternalFocusQueue!==true&&typeof this.columnDefinition.cellFocusTargetCallback==="function"){const e=this.columnDefinition.cellFocusTargetCallback(this);if(e!==null){e.focus()}}break}this.$emit("cell-focused",this)}handleFocusout(e){if(this!==document.activeElement&&!this.contains(document.activeElement)){this.isActiveCell=false}}handleKeydown(e){if(e.defaultPrevented||this.columnDefinition===null||this.cellType===io.default&&this.columnDefinition.cellInternalFocusQueue!==true||this.cellType===io.columnHeader&&this.columnDefinition.headerCellInternalFocusQueue!==true){return}switch(e.key){case ze.Mm:case ze.Ac:if(this.contains(document.activeElement)&&document.activeElement!==this){return}switch(this.cellType){case io.columnHeader:if(this.columnDefinition.headerCellFocusTargetCallback!==undefined){const t=this.columnDefinition.headerCellFocusTargetCallback(this);if(t!==null){t.focus()}e.preventDefault()}break;default:if(this.columnDefinition.cellFocusTargetCallback!==undefined){const t=this.columnDefinition.cellFocusTargetCallback(this);if(t!==null){t.focus()}e.preventDefault()}break}break;case ze.F9:if(this.contains(document.activeElement)&&document.activeElement!==this){this.focus();e.preventDefault()}break}}updateCellView(){this.disconnectCellView();if(this.columnDefinition===null){return}switch(this.cellType){case io.columnHeader:if(this.columnDefinition.headerCellTemplate!==undefined){this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this)}else{this.customCellView=no.render(this,this)}break;case undefined:case io.rowHeader:case io.default:if(this.columnDefinition.cellTemplate!==undefined){this.customCellView=this.columnDefinition.cellTemplate.render(this,this)}else{this.customCellView=oo.render(this,this)}break}}disconnectCellView(){if(this.customCellView!==null){this.customCellView.dispose();this.customCellView=null}}}f([(0,s.attr)({attribute:"cell-type"})],ro.prototype,"cellType",void 0);f([(0,s.attr)({attribute:"grid-column"})],ro.prototype,"gridColumn",void 0);f([s.observable],ro.prototype,"rowData",void 0);f([s.observable],ro.prototype,"columnDefinition",void 0);class ao extends Fe{constructor(){super(...arguments);this.rowType=so.default;this.rowData=null;this.columnDefinitions=null;this.isActiveRow=false;this.cellsRepeatBehavior=null;this.cellsPlaceholder=null;this.focusColumnIndex=0;this.refocusOnLoad=false;this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){if(this.$fastController.isConnected){this.updateRowStyle()}}rowTypeChanged(){if(this.$fastController.isConnected){this.updateItemTemplate()}}rowDataChanged(){if(this.rowData!==null&&this.isActiveRow){this.refocusOnLoad=true;return}}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback();if(this.cellsRepeatBehavior===null){this.cellsPlaceholder=document.createComment("");this.appendChild(this.cellsPlaceholder);this.updateItemTemplate();this.cellsRepeatBehavior=new s.RepeatDirective((e=>e.columnDefinitions),(e=>e.activeCellItemTemplate),{positioning:true}).createBehavior(this.cellsPlaceholder);this.$fastController.addBehaviors([this.cellsRepeatBehavior])}this.addEventListener("cell-focused",this.handleCellFocus);this.addEventListener(Nt,this.handleFocusout);this.addEventListener(Yt,this.handleKeydown);this.updateRowStyle();if(this.refocusOnLoad){this.refocusOnLoad=false;if(this.cellElements.length>this.focusColumnIndex){this.cellElements[this.focusColumnIndex].focus()}}}disconnectedCallback(){super.disconnectedCallback();this.removeEventListener("cell-focused",this.handleCellFocus);this.removeEventListener(Nt,this.handleFocusout);this.removeEventListener(Yt,this.handleKeydown)}handleFocusout(e){if(!this.contains(e.target)){this.isActiveRow=false;this.focusColumnIndex=0}}handleCellFocus(e){this.isActiveRow=true;this.focusColumnIndex=this.cellElements.indexOf(e.target);this.$emit("row-focused",this)}handleKeydown(e){if(e.defaultPrevented){return}let t=0;switch(e.key){case ze.kT:t=Math.max(0,this.focusColumnIndex-1);this.cellElements[t].focus();e.preventDefault();break;case ze.bb:t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1);this.cellElements[t].focus();e.preventDefault();break;case ze.Tg:if(!e.ctrlKey){this.cellElements[0].focus();e.preventDefault()}break;case ze.FM:if(!e.ctrlKey){this.cellElements[this.cellElements.length-1].focus();e.preventDefault()}break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===so.default&&this.cellItemTemplate!==undefined?this.cellItemTemplate:this.rowType===so.default&&this.cellItemTemplate===undefined?this.defaultCellItemTemplate:this.headerCellItemTemplate!==undefined?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}}f([(0,s.attr)({attribute:"grid-template-columns"})],ao.prototype,"gridTemplateColumns",void 0);f([(0,s.attr)({attribute:"row-type"})],ao.prototype,"rowType",void 0);f([s.observable],ao.prototype,"rowData",void 0);f([s.observable],ao.prototype,"columnDefinitions",void 0);f([s.observable],ao.prototype,"cellItemTemplate",void 0);f([s.observable],ao.prototype,"headerCellItemTemplate",void 0);f([s.observable],ao.prototype,"rowIndex",void 0);f([s.observable],ao.prototype,"isActiveRow",void 0);f([s.observable],ao.prototype,"activeCellItemTemplate",void 0);f([s.observable],ao.prototype,"defaultCellItemTemplate",void 0);f([s.observable],ao.prototype,"defaultHeaderCellItemTemplate",void 0);f([s.observable],ao.prototype,"cellElements",void 0);class lo extends Fe{constructor(){super();this.noTabbing=false;this.generateHeader=to.default;this.rowsData=[];this.columnDefinitions=null;this.focusRowIndex=0;this.focusColumnIndex=0;this.rowsPlaceholder=null;this.generatedHeader=null;this.isUpdatingFocus=false;this.pendingFocusUpdate=false;this.rowindexUpdateQueued=false;this.columnDefinitionsStale=true;this.generatedGridTemplateColumns="";this.focusOnCell=(e,t,i)=>{if(this.rowElements.length===0){this.focusRowIndex=0;this.focusColumnIndex=0;return}const s=Math.max(0,Math.min(this.rowElements.length-1,e));const o=this.rowElements[s];const n=o.querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]');const r=Math.max(0,Math.min(n.length-1,t));const a=n[r];if(i&&this.scrollHeight!==this.clientHeight&&(s0||s>this.focusRowIndex&&this.scrollTop{if(e&&e.length){e.forEach((e=>{e.addedNodes.forEach((e=>{if(e.nodeType===1&&e.getAttribute("role")==="row"){e.columnDefinitions=this.columnDefinitions}}))}));this.queueRowIndexUpdate()}};this.queueRowIndexUpdate=()=>{if(!this.rowindexUpdateQueued){this.rowindexUpdateQueued=true;s.DOM.queueUpdate(this.updateRowIndexes)}};this.updateRowIndexes=()=>{let e=this.gridTemplateColumns;if(e===undefined){if(this.generatedGridTemplateColumns===""&&this.rowElements.length>0){const e=this.rowElements[0];this.generatedGridTemplateColumns=new Array(e.cellElements.length).fill("1fr").join(" ")}e=this.generatedGridTemplateColumns}this.rowElements.forEach(((t,i)=>{const s=t;s.rowIndex=i;s.gridTemplateColumns=e;if(this.columnDefinitionsStale){s.columnDefinitions=this.columnDefinitions}}));this.rowindexUpdateQueued=false;this.columnDefinitionsStale=false}}static generateTemplateColumns(e){let t="";e.forEach((e=>{t=`${t}${t===""?"":" "}${"1fr"}`}));return t}noTabbingChanged(){if(this.$fastController.isConnected){if(this.noTabbing){this.setAttribute("tabIndex","-1")}else{this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0")}}}generateHeaderChanged(){if(this.$fastController.isConnected){this.toggleGeneratedHeader()}}gridTemplateColumnsChanged(){if(this.$fastController.isConnected){this.updateRowIndexes()}}rowsDataChanged(){if(this.columnDefinitions===null&&this.rowsData.length>0){this.columnDefinitions=lo.generateColumns(this.rowsData[0])}if(this.$fastController.isConnected){this.toggleGeneratedHeader()}}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns="";return}this.generatedGridTemplateColumns=lo.generateTemplateColumns(this.columnDefinitions);if(this.$fastController.isConnected){this.columnDefinitionsStale=true;this.queueRowIndexUpdate()}}headerCellItemTemplateChanged(){if(this.$fastController.isConnected){if(this.generatedHeader!==null){this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate}}}focusRowIndexChanged(){if(this.$fastController.isConnected){this.queueFocusUpdate()}}focusColumnIndexChanged(){if(this.$fastController.isConnected){this.queueFocusUpdate()}}connectedCallback(){super.connectedCallback();if(this.rowItemTemplate===undefined){this.rowItemTemplate=this.defaultRowItemTemplate}this.rowsPlaceholder=document.createComment("");this.appendChild(this.rowsPlaceholder);this.toggleGeneratedHeader();this.rowsRepeatBehavior=new s.RepeatDirective((e=>e.rowsData),(e=>e.rowItemTemplate),{positioning:true}).createBehavior(this.rowsPlaceholder);this.$fastController.addBehaviors([this.rowsRepeatBehavior]);this.addEventListener("row-focused",this.handleRowFocus);this.addEventListener(Vt,this.handleFocus);this.addEventListener(Yt,this.handleKeydown);this.addEventListener(Nt,this.handleFocusOut);this.observer=new MutationObserver(this.onChildListChange);this.observer.observe(this,{childList:true});if(this.noTabbing){this.setAttribute("tabindex","-1")}s.DOM.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback();this.removeEventListener("row-focused",this.handleRowFocus);this.removeEventListener(Vt,this.handleFocus);this.removeEventListener(Yt,this.handleKeydown);this.removeEventListener(Nt,this.handleFocusOut);this.observer.disconnect();this.rowsPlaceholder=null;this.generatedHeader=null}handleRowFocus(e){this.isUpdatingFocus=true;const t=e.target;this.focusRowIndex=this.rowElements.indexOf(t);this.focusColumnIndex=t.focusColumnIndex;this.setAttribute("tabIndex","-1");this.isUpdatingFocus=false}handleFocus(e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,true)}handleFocusOut(e){if(e.relatedTarget===null||!this.contains(e.relatedTarget)){this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}}handleKeydown(e){if(e.defaultPrevented){return}let t;const i=this.rowElements.length-1;const s=this.offsetHeight+this.scrollTop;const o=this.rowElements[i];switch(e.key){case ze.I5:e.preventDefault();this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,true);break;case ze.HX:e.preventDefault();this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,true);break;case ze.oK:e.preventDefault();if(this.rowElements.length===0){this.focusOnCell(0,0,false);break}if(this.focusRowIndex===0){this.focusOnCell(0,this.focusColumnIndex,false);return}t=this.focusRowIndex-1;for(t;t>=0;t--){const e=this.rowElements[t];if(e.offsetTop=i||o.offsetTop+o.offsetHeight<=s){this.focusOnCell(i,this.focusColumnIndex,false);return}t=this.focusRowIndex+1;for(t;t<=i;t++){const e=this.rowElements[t];if(e.offsetTop+e.offsetHeight>s){let t=0;if(this.generateHeader===to.sticky&&this.generatedHeader!==null){t=this.generatedHeader.clientHeight}this.scrollTop=e.offsetTop-t;break}}this.focusOnCell(t,this.focusColumnIndex,false);break;case ze.Tg:if(e.ctrlKey){e.preventDefault();this.focusOnCell(0,0,true)}break;case ze.FM:if(e.ctrlKey&&this.columnDefinitions!==null){e.preventDefault();this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,true)}break}}queueFocusUpdate(){if(this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)){return}if(this.pendingFocusUpdate===false){this.pendingFocusUpdate=true;s.DOM.queueUpdate((()=>this.updateFocus()))}}updateFocus(){this.pendingFocusUpdate=false;this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,true)}toggleGeneratedHeader(){if(this.generatedHeader!==null){this.removeChild(this.generatedHeader);this.generatedHeader=null}if(this.generateHeader!==to.none&&this.rowsData.length>0){const e=document.createElement(this.rowElementTag);this.generatedHeader=e;this.generatedHeader.columnDefinitions=this.columnDefinitions;this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns;this.generatedHeader.rowType=this.generateHeader===to.sticky?so.stickyHeader:so.header;if(this.firstChild!==null||this.rowsPlaceholder!==null){this.insertBefore(e,this.firstChild!==null?this.firstChild:this.rowsPlaceholder)}return}}}lo.generateColumns=e=>Object.getOwnPropertyNames(e).map(((e,t)=>({columnDataKey:e,gridColumn:`${t}`})));f([(0,s.attr)({attribute:"no-tabbing",mode:"boolean"})],lo.prototype,"noTabbing",void 0);f([(0,s.attr)({attribute:"generate-header"})],lo.prototype,"generateHeader",void 0);f([(0,s.attr)({attribute:"grid-template-columns"})],lo.prototype,"gridTemplateColumns",void 0);f([s.observable],lo.prototype,"rowsData",void 0);f([s.observable],lo.prototype,"columnDefinitions",void 0);f([s.observable],lo.prototype,"rowItemTemplate",void 0);f([s.observable],lo.prototype,"cellItemTemplate",void 0);f([s.observable],lo.prototype,"headerCellItemTemplate",void 0);f([s.observable],lo.prototype,"focusRowIndex",void 0);f([s.observable],lo.prototype,"focusColumnIndex",void 0);f([s.observable],lo.prototype,"defaultRowItemTemplate",void 0);f([s.observable],lo.prototype,"rowElementTag",void 0);f([s.observable],lo.prototype,"rowElements",void 0);const ho=(0,s.html)` +
+ + ${e=>e.dateFormatter.getMonth(e.month)} + + ${e=>e.dateFormatter.getYear(e.year)} +
+`;const co=e=>{const t=e.tagFor(ro);return(0,s.html)` + <${t} + class="week-day" + part="week-day" + tabindex="-1" + grid-column="${(e,t)=>t.index+1}" + abbr="${e=>e.abbr}" + > + ${e=>e.text} + + `};const uo=(e,t)=>{const i=e.tagFor(ro);return(0,s.html)` + <${i} + class="${(e,i)=>i.parentContext.parent.getDayClassNames(e,t)}" + part="day" + tabindex="-1" + role="gridcell" + grid-column="${(e,t)=>t.index+1}" + @click="${(e,t)=>t.parentContext.parent.handleDateSelect(t.event,e)}" + @keydown="${(e,t)=>t.parentContext.parent.handleKeydown(t.event,e)}" + aria-label="${(e,t)=>t.parentContext.parent.dateFormatter.getDate(`${e.month}-${e.day}-${e.year}`,{month:"long",day:"numeric"})}" + > +
+ ${(e,t)=>t.parentContext.parent.dateFormatter.getDay(e.day)} +
+ + + `};const po=(e,t)=>{const i=e.tagFor(ao);return(0,s.html)` + <${i} + class="week" + part="week" + role="row" + role-type="default" + grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr" + > + ${(0,s.repeat)((e=>e),uo(e,t),{positioning:true})} + + `};const fo=(e,t)=>{const i=e.tagFor(lo);const o=e.tagFor(ao);return(0,s.html)` + <${i} class="days interact" part="days" generate-header="none"> + <${o} + class="week-days" + part="week-days" + role="row" + row-type="header" + grid-template-columns="1fr 1fr 1fr 1fr 1fr 1fr 1fr" + > + ${(0,s.repeat)((e=>e.getWeekdayText()),co(e),{positioning:true})} + + ${(0,s.repeat)((e=>e.getDays()),po(e,t))} + +`};const mo=e=>(0,s.html)` +
+
+ ${(0,s.repeat)((e=>e.getWeekdayText()),(0,s.html)` +
+ ${e=>e.text} +
+ `)} +
+ ${(0,s.repeat)((e=>e.getDays()),(0,s.html)` +
+ ${(0,s.repeat)((e=>e),(0,s.html)` +
+
+ ${(e,t)=>t.parentContext.parent.dateFormatter.getDay(e.day)} +
+ +
+ `)} +
+ `)} +
+ `;const vo=(e,t)=>{var i;const o=new Date;const n=`${o.getMonth()+1}-${o.getDate()}-${o.getFullYear()}`;return(0,s.html)` + + `};const bo=(e,t)=>(0,s.html)` + +`;class go extends Fe{}const yo=(e,t)=>(0,s.html)` + +`;class Co extends Fe{}class xo extends(Gs(Co)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}class wo extends xo{constructor(){super();this.initialValue="on";this.indeterminate=false;this.keypressHandler=e=>{if(this.readOnly){return}switch(e.key){case ze.gG:if(this.indeterminate){this.indeterminate=false}this.checked=!this.checked;break}};this.clickHandler=e=>{if(!this.disabled&&!this.readOnly){if(this.indeterminate){this.indeterminate=false}this.checked=!this.checked}};this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.readOnly=this.readOnly}}}f([(0,s.attr)({attribute:"readonly",mode:"boolean"})],wo.prototype,"readOnly",void 0);f([s.observable],wo.prototype,"defaultSlottedNodes",void 0);f([s.observable],wo.prototype,"indeterminate",void 0);let $o=0;function Io(e=""){return`${e}${$o++}`}function ko(e,...t){return e.replace(/{(\d+)}/g,(function(e,i){if(i>=t.length){return e}const s=t[i];if(typeof s!=="number"&&!s){return""}return s}))}function Oo(e,t,i=0){if(!e||!t){return false}return e.substr(i,t.length)===t}function To(e){return!e||!e.trim()}function Eo(e){let t=`${e}`.replace(new RegExp(/[-_]+/,"g")," ").replace(new RegExp(/[^\w\s]/,"g"),"").replace(/^\s+|\s+$|\s+(?=\s)/g,"").replace(new RegExp(/\s+(.)(\w*)/,"g"),((e,t,i)=>`${t.toUpperCase()+i.toLowerCase()}`)).replace(new RegExp(/\w/),(e=>e.toUpperCase()));let i=0;for(let s=0;s1){t=`${t.charAt(0).toUpperCase()}${t.slice(1,i-1).toLowerCase()}`+t.slice(i-1)}return t}function Ro(e){const t=`${e.charAt(0).toLowerCase()}${e.slice(1)}`;return t.replace(/([A-Z]|[0-9])/g,(function(e,t){return`-${t.toLowerCase()}`}))}function Do(e,t){let i=e.length;while(i--){if(t(e[i],i,e)){return i}}return-1}function So(){return!!(typeof window!=="undefined"&&window.document&&window.document.createElement)}function Ao(...e){return e.every((e=>e instanceof HTMLElement))}function Fo(e,t){if(!e||!t||!Ao(e)){return}const i=Array.from(e.querySelectorAll(t));return i.filter((e=>e.offsetParent!==null))}function Lo(e){return e===null?null:e.which||e.keyCode||e.charCode}function Mo(){const e=document.querySelector('meta[property="csp-nonce"]');if(e){return e.getAttribute("content")}else{return null}}let Po;function Ho(){if(typeof Po==="boolean"){return Po}if(!So()){Po=false;return Po}const e=document.createElement("style");const t=Mo();if(t!==null){e.setAttribute("nonce",t)}document.head.appendChild(e);try{e.sheet.insertRule("foo:focus-visible {color:inherit}",0);Po=true}catch(i){Po=false}finally{document.head.removeChild(e)}return Po}let Vo;function zo(){if(typeof Vo==="boolean"){return Vo}try{Vo=CSS.supports("display","grid")}catch(e){Vo=false}return Vo}function No(){return canUseDOM()&&(window.matchMedia("(forced-colors: none)").matches||window.matchMedia("(forced-colors: active)").matches)}function Bo(){Vo=undefined;Po=undefined}const qo=null&&No;function Uo(e){return Ao(e)&&(e.getAttribute("role")==="option"||e instanceof HTMLOptionElement)}class jo extends Fe{constructor(e,t,i,s){super();this.defaultSelected=false;this.dirtySelected=false;this.selected=this.defaultSelected;this.dirtyValue=false;if(e){this.textContent=e}if(t){this.initialValue=t}if(i){this.defaultSelected=i}if(s){this.selected=s}this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected);this.proxy.disabled=this.disabled}checkedChanged(e,t){if(typeof t==="boolean"){this.ariaChecked=t?"true":"false";return}this.ariaChecked=null}contentChanged(e,t){if(this.proxy instanceof HTMLOptionElement){this.proxy.textContent=this.textContent}this.$emit("contentchange",null,{bubbles:true})}defaultSelectedChanged(){if(!this.dirtySelected){this.selected=this.defaultSelected;if(this.proxy instanceof HTMLOptionElement){this.proxy.selected=this.defaultSelected}}}disabledChanged(e,t){this.ariaDisabled=this.disabled?"true":"false";if(this.proxy instanceof HTMLOptionElement){this.proxy.disabled=this.disabled}}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute;if(this.proxy instanceof HTMLOptionElement){this.proxy.defaultSelected=this.defaultSelected}}selectedChanged(){this.ariaSelected=this.selected?"true":"false";if(!this.dirtySelected){this.dirtySelected=true}if(this.proxy instanceof HTMLOptionElement){this.proxy.selected=this.selected}}initialValueChanged(e,t){if(!this.dirtyValue){this.value=this.initialValue;this.dirtyValue=false}}get label(){var e;return(e=this.value)!==null&&e!==void 0?e:this.text}get text(){var e,t;return(t=(e=this.textContent)===null||e===void 0?void 0:e.replace(/\s+/g," ").trim())!==null&&t!==void 0?t:""}set value(e){const t=`${e!==null&&e!==void 0?e:""}`;this._value=t;this.dirtyValue=true;if(this.proxy instanceof HTMLOptionElement){this.proxy.value=t}s.Observable.notify(this,"value")}get value(){var e;s.Observable.track(this,"value");return(e=this._value)!==null&&e!==void 0?e:this.text}get form(){return this.proxy?this.proxy.form:null}}f([s.observable],jo.prototype,"checked",void 0);f([s.observable],jo.prototype,"content",void 0);f([s.observable],jo.prototype,"defaultSelected",void 0);f([(0,s.attr)({mode:"boolean"})],jo.prototype,"disabled",void 0);f([(0,s.attr)({attribute:"selected",mode:"boolean"})],jo.prototype,"selectedAttribute",void 0);f([s.observable],jo.prototype,"selected",void 0);f([(0,s.attr)({attribute:"value",mode:"fromView"})],jo.prototype,"initialValue",void 0);class _o{}f([s.observable],_o.prototype,"ariaChecked",void 0);f([s.observable],_o.prototype,"ariaPosInSet",void 0);f([s.observable],_o.prototype,"ariaSelected",void 0);f([s.observable],_o.prototype,"ariaSetSize",void 0);Pe(_o,je);Pe(jo,o,_o);class Ko extends Fe{constructor(){super(...arguments);this._options=[];this.selectedIndex=-1;this.selectedOptions=[];this.shouldSkipFocus=false;this.typeaheadBuffer="";this.typeaheadExpired=true;this.typeaheadTimeout=-1}get firstSelectedOption(){var e;return(e=this.selectedOptions[0])!==null&&e!==void 0?e:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every((e=>e.disabled))}get length(){var e,t;return(t=(e=this.options)===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0}get options(){s.Observable.track(this,"options");return this._options}set options(e){this._options=e;s.Observable.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(e){this.typeaheadExpired=e}clickHandler(e){const t=e.target.closest(`option,[role=option]`);if(t&&!t.disabled){this.selectedIndex=this.options.indexOf(t);return true}}focusAndScrollOptionIntoView(e=this.firstSelectedOption){if(this.contains(document.activeElement)&&e!==null){e.focus();requestAnimationFrame((()=>{e.scrollIntoView({block:"nearest"})}))}}focusinHandler(e){if(!this.shouldSkipFocus&&e.target===e.currentTarget){this.setSelectedOptions();this.focusAndScrollOptionIntoView()}this.shouldSkipFocus=false}getTypeaheadMatches(){const e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&");const t=new RegExp(`^${e}`,"gi");return this.options.filter((e=>e.text.trim().match(t)))}getSelectableIndex(e=this.selectedIndex,t){const i=e>t?-1:e!e&&!t.disabled&&i!e&&!t.disabled&&i>s?t:e),o);break}}return this.options.indexOf(o)}handleChange(e,t){switch(t){case"selected":{if(Ko.slottedOptionFilter(e)){this.selectedIndex=this.options.indexOf(e)}this.setSelectedOptions();break}}}handleTypeAhead(e){if(this.typeaheadTimeout){window.clearTimeout(this.typeaheadTimeout)}this.typeaheadTimeout=window.setTimeout((()=>this.typeaheadExpired=true),Ko.TYPE_AHEAD_TIMEOUT_MS);if(e.length>1){return}this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${e}`}keydownHandler(e){if(this.disabled){return true}this.shouldSkipFocus=false;const t=e.key;switch(t){case ze.Tg:{if(!e.shiftKey){e.preventDefault();this.selectFirstOption()}break}case ze.HX:{if(!e.shiftKey){e.preventDefault();this.selectNextOption()}break}case ze.I5:{if(!e.shiftKey){e.preventDefault();this.selectPreviousOption()}break}case ze.FM:{e.preventDefault();this.selectLastOption();break}case ze.J9:{this.focusAndScrollOptionIntoView();return true}case ze.Mm:case ze.F9:{return true}case ze.gG:{if(this.typeaheadExpired){return true}}default:{if(t.length===1){this.handleTypeAhead(`${t}`)}return true}}}mousedownHandler(e){this.shouldSkipFocus=!this.contains(document.activeElement);return true}multipleChanged(e,t){this.ariaMultiSelectable=t?"true":null}selectedIndexChanged(e,t){var i;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(((i=this.options[this.selectedIndex])===null||i===void 0?void 0:i.disabled)&&typeof e==="number"){const i=this.getSelectableIndex(e,t);const s=i>-1?i:e;this.selectedIndex=s;if(t===s){this.selectedIndexChanged(t,s)}return}this.setSelectedOptions()}selectedOptionsChanged(e,t){var i;const o=t.filter(Ko.slottedOptionFilter);(i=this.options)===null||i===void 0?void 0:i.forEach((e=>{const t=s.Observable.getNotifier(e);t.unsubscribe(this,"selected");e.selected=o.includes(e);t.subscribe(this,"selected")}))}selectFirstOption(){var e,t;if(!this.disabled){this.selectedIndex=(t=(e=this.options)===null||e===void 0?void 0:e.findIndex((e=>!e.disabled)))!==null&&t!==void 0?t:-1}}selectLastOption(){if(!this.disabled){this.selectedIndex=Do(this.options,(e=>!e.disabled))}}selectNextOption(){if(!this.disabled&&this.selectedIndex0){this.selectedIndex=this.selectedIndex-1}}setDefaultSelectedOption(){var e,t;this.selectedIndex=(t=(e=this.options)===null||e===void 0?void 0:e.findIndex((e=>e.defaultSelected)))!==null&&t!==void 0?t:-1}setSelectedOptions(){var e,t,i;if((e=this.options)===null||e===void 0?void 0:e.length){this.selectedOptions=[this.options[this.selectedIndex]];this.ariaActiveDescendant=(i=(t=this.firstSelectedOption)===null||t===void 0?void 0:t.id)!==null&&i!==void 0?i:"";this.focusAndScrollOptionIntoView()}}slottedOptionsChanged(e,t){this.options=t.reduce(((e,t)=>{if(Uo(t)){e.push(t)}return e}),[]);const i=`${this.options.length}`;this.options.forEach(((e,t)=>{if(!e.id){e.id=Io("option-")}e.ariaPosInSet=`${t+1}`;e.ariaSetSize=i}));if(this.$fastController.isConnected){this.setSelectedOptions();this.setDefaultSelectedOption()}}typeaheadBufferChanged(e,t){if(this.$fastController.isConnected){const e=this.getTypeaheadMatches();if(e.length){const t=this.options.indexOf(e[0]);if(t>-1){this.selectedIndex=t}}this.typeaheadExpired=false}}}Ko.slottedOptionFilter=e=>Uo(e)&&!e.hidden;Ko.TYPE_AHEAD_TIMEOUT_MS=1e3;f([(0,s.attr)({mode:"boolean"})],Ko.prototype,"disabled",void 0);f([s.observable],Ko.prototype,"selectedIndex",void 0);f([s.observable],Ko.prototype,"selectedOptions",void 0);f([s.observable],Ko.prototype,"slottedOptions",void 0);f([s.observable],Ko.prototype,"typeaheadBuffer",void 0);class Wo{}f([s.observable],Wo.prototype,"ariaActiveDescendant",void 0);f([s.observable],Wo.prototype,"ariaDisabled",void 0);f([s.observable],Wo.prototype,"ariaExpanded",void 0);f([s.observable],Wo.prototype,"ariaMultiSelectable",void 0);Pe(Wo,je);Pe(Ko,Wo);const Go={above:"above",below:"below"};class Xo extends Ko{}class Yo extends(Ws(Xo)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}const Qo={inline:"inline",list:"list",both:"both",none:"none"};class Zo extends Yo{constructor(){super(...arguments);this._value="";this.filteredOptions=[];this.filter="";this.forcedPosition=false;this.listboxId=Io("listbox-");this.maxHeight=0;this.open=false}formResetCallback(){super.formResetCallback();this.setDefaultSelectedOption();this.updateValue()}validate(){super.validate(this.control)}get isAutocompleteInline(){return this.autocomplete===Qo.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===Qo.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===Qo.both}openChanged(){if(this.open){this.ariaControls=this.listboxId;this.ariaExpanded="true";this.setPositioning();this.focusAndScrollOptionIntoView();s.DOM.queueUpdate((()=>this.focus()));return}this.ariaControls="";this.ariaExpanded="false"}get options(){s.Observable.track(this,"options");return this.filteredOptions.length?this.filteredOptions:this._options}set options(e){this._options=e;s.Observable.notify(this,"options")}placeholderChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.placeholder=this.placeholder}}positionChanged(e,t){this.positionAttribute=t;this.setPositioning()}get value(){s.Observable.track(this,"value");return this._value}set value(e){var t,i,o;const n=`${this._value}`;if(this.$fastController.isConnected&&this.options){const s=this.options.findIndex((t=>t.text.toLowerCase()===e.toLowerCase()));const n=(t=this.options[this.selectedIndex])===null||t===void 0?void 0:t.text;const r=(i=this.options[s])===null||i===void 0?void 0:i.text;this.selectedIndex=n!==r?s:this.selectedIndex;e=((o=this.firstSelectedOption)===null||o===void 0?void 0:o.text)||e}if(n!==e){this._value=e;super.valueChanged(n,e);s.Observable.notify(this,"value")}}clickHandler(e){if(this.disabled){return}if(this.open){const t=e.target.closest(`option,[role=option]`);if(!t||t.disabled){return}this.selectedOptions=[t];this.control.value=t.text;this.clearSelectionRange();this.updateValue(true)}this.open=!this.open;if(this.open){this.control.focus()}return true}connectedCallback(){super.connectedCallback();this.forcedPosition=!!this.positionAttribute;if(this.value){this.initialValue=this.value}}disabledChanged(e,t){if(super.disabledChanged){super.disabledChanged(e,t)}this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){if(!this.autocomplete||this.autocomplete===Qo.none){this.filter=""}const e=this.filter.toLowerCase();this.filteredOptions=this._options.filter((e=>e.text.toLowerCase().startsWith(this.filter.toLowerCase())));if(this.isAutocompleteList){if(!this.filteredOptions.length&&!e){this.filteredOptions=this._options}this._options.forEach((e=>{e.hidden=!this.filteredOptions.includes(e)}))}}focusAndScrollOptionIntoView(){if(this.contains(document.activeElement)){this.control.focus();if(this.firstSelectedOption){requestAnimationFrame((()=>{var e;(e=this.firstSelectedOption)===null||e===void 0?void 0:e.scrollIntoView({block:"nearest"})}))}}}focusoutHandler(e){this.syncValue();if(!this.open){return true}const t=e.relatedTarget;if(this.isSameNode(t)){this.focus();return}if(!this.options||!this.options.includes(t)){this.open=false}}inputHandler(e){this.filter=this.control.value;this.filterOptions();if(!this.isAutocompleteInline){this.selectedIndex=this.options.map((e=>e.text)).indexOf(this.control.value)}if(e.inputType.includes("deleteContent")||!this.filter.length){return true}if(this.isAutocompleteList&&!this.open){this.open=true}if(this.isAutocompleteInline){if(this.filteredOptions.length){this.selectedOptions=[this.filteredOptions[0]];this.selectedIndex=this.options.indexOf(this.firstSelectedOption);this.setInlineSelection()}else{this.selectedIndex=-1}}return}keydownHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey){return true}switch(t){case"Enter":{this.syncValue();if(this.isAutocompleteInline){this.filter=this.value}this.open=false;this.clearSelectionRange();break}case"Escape":{if(!this.isAutocompleteInline){this.selectedIndex=-1}if(this.open){this.open=false;break}this.value="";this.control.value="";this.filter="";this.filterOptions();break}case"Tab":{this.setInputToSelection();if(!this.open){return true}e.preventDefault();this.open=false;break}case"ArrowUp":case"ArrowDown":{this.filterOptions();if(!this.open){this.open=true;break}if(this.filteredOptions.length>0){super.keydownHandler(e)}if(this.isAutocompleteInline){this.setInlineSelection()}break}default:{return true}}}keyupHandler(e){const t=e.key;switch(t){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":{this.filter=this.control.value;this.selectedIndex=-1;this.filterOptions();break}}}selectedIndexChanged(e,t){if(this.$fastController.isConnected){t=(0,Ne.AB)(-1,this.options.length-1,t);if(t!==this.selectedIndex){this.selectedIndex=t;return}super.selectedIndexChanged(e,t)}}selectPreviousOption(){if(!this.disabled&&this.selectedIndex>=0){this.selectedIndex=this.selectedIndex-1}}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const e=this.options.findIndex((e=>e.getAttribute("selected")!==null||e.selected));this.selectedIndex=e;if(!this.dirtyValue&&this.firstSelectedOption){this.value=this.firstSelectedOption.text}this.setSelectedOptions()}}setInputToSelection(){if(this.firstSelectedOption){this.control.value=this.firstSelectedOption.text;this.control.focus()}}setInlineSelection(){if(this.firstSelectedOption){this.setInputToSelection();this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward")}}syncValue(){var e;const t=this.selectedIndex>-1?(e=this.firstSelectedOption)===null||e===void 0?void 0:e.text:this.control.value;this.updateValue(this.value!==t)}setPositioning(){const e=this.getBoundingClientRect();const t=window.innerHeight;const i=t-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>i?Go.above:Go.below;this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position;this.maxHeight=this.position===Go.above?~~e.top:~~i}selectedOptionsChanged(e,t){if(this.$fastController.isConnected){this._options.forEach((e=>{e.selected=t.includes(e)}))}}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t);this.updateValue()}updateValue(e){var t;if(this.$fastController.isConnected){this.value=((t=this.firstSelectedOption)===null||t===void 0?void 0:t.text)||this.control.value;this.control.value=this.value}if(e){this.$emit("change")}}clearSelectionRange(){const e=this.control.value.length;this.control.setSelectionRange(e,e)}}f([(0,s.attr)({attribute:"autocomplete",mode:"fromView"})],Zo.prototype,"autocomplete",void 0);f([s.observable],Zo.prototype,"maxHeight",void 0);f([(0,s.attr)({attribute:"open",mode:"boolean"})],Zo.prototype,"open",void 0);f([s.attr],Zo.prototype,"placeholder",void 0);f([(0,s.attr)({attribute:"position"})],Zo.prototype,"positionAttribute",void 0);f([s.observable],Zo.prototype,"position",void 0);class Jo{}f([s.observable],Jo.prototype,"ariaAutoComplete",void 0);f([s.observable],Jo.prototype,"ariaControls",void 0);Pe(Jo,Wo);Pe(Zo,o,Jo);const en=(e,t)=>(0,s.html)` + +`;function tn(e){const t=e.tagFor(ao);return(0,s.html)` + <${t} + :rowData="${e=>e}" + :cellItemTemplate="${(e,t)=>t.parent.cellItemTemplate}" + :headerCellItemTemplate="${(e,t)=>t.parent.headerCellItemTemplate}" + > +`}const sn=(e,t)=>{const i=tn(e);const o=e.tagFor(ao);return(0,s.html)` + + `};function on(e){const t=e.tagFor(ro);return(0,s.html)` + <${t} + cell-type="${e=>e.isRowHeader?"rowheader":undefined}" + grid-column="${(e,t)=>t.index+1}" + :rowData="${(e,t)=>t.parent.rowData}" + :columnDefinition="${e=>e}" + > +`}function nn(e){const t=e.tagFor(ro);return(0,s.html)` + <${t} + cell-type="columnheader" + grid-column="${(e,t)=>t.index+1}" + :columnDefinition="${e=>e}" + > +`}const rn=(e,t)=>{const i=on(e);const o=nn(e);return(0,s.html)` + + `};const an=(e,t)=>(0,s.html)` + + `;function ln(e){const t=e.parentElement;if(t){return t}else{const t=e.getRootNode();if(t.host instanceof HTMLElement){return t.host}}return null}function dn(e,t){let i=t;while(i!==null){if(i===e){return true}i=ln(i)}return false}const hn=document.createElement("div");function cn(e){return e instanceof s.FASTElement}class un{setProperty(e,t){s.DOM.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){s.DOM.queueUpdate((()=>this.target.removeProperty(e)))}}class pn extends un{constructor(e){super();const t=new CSSStyleSheet;this.target=t.cssRules[t.insertRule(":host{}")].style;e.$fastController.addStyles(s.ElementStyles.create([t]))}}class fn extends un{constructor(){super();const e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style;document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}}class mn extends un{constructor(){super();this.style=document.createElement("style");document.head.appendChild(this.style);const{sheet:e}=this.style;if(e){const t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}}class vn{constructor(e){this.store=new Map;this.target=null;const t=e.$fastController;this.style=document.createElement("style");t.addStyles(this.style);s.Observable.getNotifier(t).subscribe(this,"isConnected");this.handleChange(t,"isConnected")}targetChanged(){if(this.target!==null){for(const[e,t]of this.store.entries()){this.target.setProperty(e,t)}}}setProperty(e,t){this.store.set(e,t);s.DOM.queueUpdate((()=>{if(this.target!==null){this.target.setProperty(e,t)}}))}removeProperty(e){this.store.delete(e);s.DOM.queueUpdate((()=>{if(this.target!==null){this.target.removeProperty(e)}}))}handleChange(e,t){const{sheet:i}=this.style;if(i){const e=i.insertRule(":host{}",i.cssRules.length);this.target=i.cssRules[e].style}else{this.target=null}}}f([s.observable],vn.prototype,"target",void 0);class bn{constructor(e){this.target=e.style}setProperty(e,t){s.DOM.queueUpdate((()=>this.target.setProperty(e,t)))}removeProperty(e){s.DOM.queueUpdate((()=>this.target.removeProperty(e)))}}class gn{setProperty(e,t){gn.properties[e]=t;for(const i of gn.roots.values()){xn.getOrCreate(gn.normalizeRoot(i)).setProperty(e,t)}}removeProperty(e){delete gn.properties[e];for(const t of gn.roots.values()){xn.getOrCreate(gn.normalizeRoot(t)).removeProperty(e)}}static registerRoot(e){const{roots:t}=gn;if(!t.has(e)){t.add(e);const i=xn.getOrCreate(this.normalizeRoot(e));for(const e in gn.properties){i.setProperty(e,gn.properties[e])}}}static unregisterRoot(e){const{roots:t}=gn;if(t.has(e)){t.delete(e);const i=xn.getOrCreate(gn.normalizeRoot(e));for(const e in gn.properties){i.removeProperty(e)}}}static normalizeRoot(e){return e===hn?document:e}}gn.roots=new Set;gn.properties={};const yn=new WeakMap;const Cn=s.DOM.supportsAdoptedStyleSheets?pn:vn;const xn=Object.freeze({getOrCreate(e){if(yn.has(e)){return yn.get(e)}let t;if(e===hn){t=new gn}else if(e instanceof Document){t=s.DOM.supportsAdoptedStyleSheets?new fn:new mn}else if(cn(e)){t=new Cn(e)}else{t=new bn(e)}yn.set(e,t);return t}});class wn extends s.CSSDirective{constructor(e){super();this.subscribers=new WeakMap;this._appliedTo=new Set;this.name=e.name;if(e.cssCustomPropertyName!==null){this.cssCustomProperty=`--${e.cssCustomPropertyName}`;this.cssVar=`var(${this.cssCustomProperty})`}this.id=wn.uniqueId();wn.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new wn({name:typeof e==="string"?e:e.name,cssCustomPropertyName:typeof e==="string"?e:e.cssCustomPropertyName===void 0?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return typeof e.cssCustomProperty==="string"}static isDerivedDesignTokenValue(e){return typeof e==="function"}static getTokenById(e){return wn.tokensById.get(e)}getOrCreateSubscriberSet(e=this){return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}createCSS(){return this.cssVar||""}getValueFor(e){const t=En.getOrCreate(e).get(this);if(t!==undefined){return t}throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${e} or an ancestor of ${e}.`)}setValueFor(e,t){this._appliedTo.add(e);if(t instanceof wn){t=this.alias(t)}En.getOrCreate(e).set(this,t);return this}deleteValueFor(e){this._appliedTo.delete(e);if(En.existsFor(e)){En.getOrCreate(e).delete(this)}return this}withDefault(e){this.setValueFor(hn,e);return this}subscribe(e,t){const i=this.getOrCreateSubscriberSet(t);if(t&&!En.existsFor(t)){En.getOrCreate(t)}if(!i.has(e)){i.add(e)}}unsubscribe(e,t){const i=this.subscribers.get(t||this);if(i&&i.has(e)){i.delete(e)}}notify(e){const t=Object.freeze({token:this,target:e});if(this.subscribers.has(this)){this.subscribers.get(this).forEach((e=>e.handleChange(t)))}if(this.subscribers.has(e)){this.subscribers.get(e).forEach((e=>e.handleChange(t)))}}alias(e){return t=>e.getValueFor(t)}}wn.uniqueId=(()=>{let e=0;return()=>{e++;return e.toString(16)}})();wn.tokensById=new Map;class $n{startReflection(e,t){e.subscribe(this,t);this.handleChange({token:e,target:t})}stopReflection(e,t){e.unsubscribe(this,t);this.remove(e,t)}handleChange(e){const{token:t,target:i}=e;this.add(t,i)}add(e,t){xn.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(En.getOrCreate(t).get(e)))}remove(e,t){xn.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&typeof e.createCSS==="function"?e.createCSS():e}}class In{constructor(e,t,i){this.source=e;this.token=t;this.node=i;this.dependencies=new Set;this.observer=s.Observable.binding(e,this,false);this.observer.handleChange=this.observer.call;this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,s.defaultExecutionContext))}}class kn{constructor(){this.values=new Map}set(e,t){if(this.values.get(e)!==t){this.values.set(e,t);s.Observable.getNotifier(this).notify(e.id)}}get(e){s.Observable.track(this,e.id);return this.values.get(e)}delete(e){this.values.delete(e)}all(){return this.values.entries()}}const On=new WeakMap;const Tn=new WeakMap;class En{constructor(e){this.target=e;this.store=new kn;this.children=[];this.assignedValues=new Map;this.reflecting=new Set;this.bindingObservers=new Map;this.tokenValueChangeHandler={handleChange:(e,t)=>{const i=wn.getTokenById(t);if(i){i.notify(this.target);if(wn.isCSSDesignToken(i)){const t=this.parent;const s=this.isReflecting(i);if(t){const o=t.get(i);const n=e.get(i);if(o!==n&&!s){this.reflectToCSS(i)}else if(o===n&&s){this.stopReflectToCSS(i)}}else if(!s){this.reflectToCSS(i)}}}}};On.set(e,this);s.Observable.getNotifier(this.store).subscribe(this.tokenValueChangeHandler);if(e instanceof s.FASTElement){e.$fastController.addBehaviors([this])}else if(e.isConnected){this.bind()}}static getOrCreate(e){return On.get(e)||new En(e)}static existsFor(e){return On.has(e)}static findParent(e){if(!(hn===e.target)){let t=ln(e.target);while(t!==null){if(On.has(t)){return On.get(t)}t=ln(t)}return En.getOrCreate(hn)}return null}static findClosestAssignedNode(e,t){let i=t;do{if(i.has(e)){return i}i=i.parent?i.parent:i.target!==hn?En.getOrCreate(hn):null}while(i!==null);return null}get parent(){return Tn.get(this)||null}has(e){return this.assignedValues.has(e)}get(e){const t=this.store.get(e);if(t!==undefined){return t}const i=this.getRaw(e);if(i!==undefined){this.hydrate(e,i);return this.get(e)}}getRaw(e){var t;if(this.assignedValues.has(e)){return this.assignedValues.get(e)}return(t=En.findClosestAssignedNode(e,this))===null||t===void 0?void 0:t.getRaw(e)}set(e,t){if(wn.isDerivedDesignTokenValue(this.assignedValues.get(e))){this.tearDownBindingObserver(e)}this.assignedValues.set(e,t);if(wn.isDerivedDesignTokenValue(t)){this.setupBindingObserver(e,t)}else{this.store.set(e,t)}}delete(e){this.assignedValues.delete(e);this.tearDownBindingObserver(e);const t=this.getRaw(e);if(t){this.hydrate(e,t)}else{this.store.delete(e)}}bind(){const e=En.findParent(this);if(e){e.appendChild(this)}for(const t of this.assignedValues.keys()){t.notify(this.target)}}unbind(){if(this.parent){const e=Tn.get(this);e.removeChild(this)}}appendChild(e){if(e.parent){Tn.get(e).removeChild(e)}const t=this.children.filter((t=>e.contains(t)));Tn.set(e,this);this.children.push(e);t.forEach((t=>e.appendChild(t)));s.Observable.getNotifier(this.store).subscribe(e);for(const[i,s]of this.store.all()){e.hydrate(i,this.bindingObservers.has(i)?this.getRaw(i):s)}}removeChild(e){const t=this.children.indexOf(e);if(t!==-1){this.children.splice(t,1)}s.Observable.getNotifier(this.store).unsubscribe(e);return e.parent===this?Tn.delete(e):false}contains(e){return dn(this.target,e.target)}reflectToCSS(e){if(!this.isReflecting(e)){this.reflecting.add(e);En.cssCustomPropertyReflector.startReflection(e,this.target)}}stopReflectToCSS(e){if(this.isReflecting(e)){this.reflecting.delete(e);En.cssCustomPropertyReflector.stopReflection(e,this.target)}}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){const i=wn.getTokenById(t);if(!i){return}this.hydrate(i,this.getRaw(i))}hydrate(e,t){if(!this.has(e)){const i=this.bindingObservers.get(e);if(wn.isDerivedDesignTokenValue(t)){if(i){if(i.source!==t){this.tearDownBindingObserver(e);this.setupBindingObserver(e,t)}}else{this.setupBindingObserver(e,t)}}else{if(i){this.tearDownBindingObserver(e)}this.store.set(e,t)}}}setupBindingObserver(e,t){const i=new In(t,e,this);this.bindingObservers.set(e,i);return i}tearDownBindingObserver(e){if(this.bindingObservers.has(e)){this.bindingObservers.get(e).disconnect();this.bindingObservers.delete(e);return true}return false}}En.cssCustomPropertyReflector=new $n;f([s.observable],En.prototype,"children",void 0);function Rn(e){return wn.from(e)}const Dn=Object.freeze({create:Rn,notifyConnection(e){if(!e.isConnected||!En.existsFor(e)){return false}En.getOrCreate(e).bind();return true},notifyDisconnection(e){if(e.isConnected||!En.existsFor(e)){return false}En.getOrCreate(e).unbind();return true},registerRoot(e=hn){gn.registerRoot(e)},unregisterRoot(e=hn){gn.unregisterRoot(e)}});const Sn=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()});const An=new Map;const Fn=new Map;let Ln=null;const Mn=q.createInterface((e=>e.cachedCallback((e=>{if(Ln===null){Ln=new Vn(null,e)}return Ln}))));const Pn=Object.freeze({tagFor(e){return Fn.get(e)},responsibleFor(e){const t=e.$$designSystem$$;if(t){return t}const i=q.findResponsibleContainer(e);return i.get(Mn)},getOrCreate(e){if(!e){if(Ln===null){Ln=q.getOrCreateDOMContainer().get(Mn)}return Ln}const t=e.$$designSystem$$;if(t){return t}const i=q.getOrCreateDOMContainer(e);if(i.has(Mn,false)){return i.get(Mn)}else{const t=new Vn(e,i);i.register(xe.instance(Mn,t));return t}}});function Hn(e,t,i){if(typeof e==="string"){return{name:e,type:t,callback:i}}else{return e}}class Vn{constructor(e,t){this.owner=e;this.container=t;this.designTokensInitialized=false;this.prefix="fast";this.shadowRootMode=undefined;this.disambiguate=()=>Sn.definitionCallbackOnly;if(e!==null){e.$$designSystem$$=this}}withPrefix(e){this.prefix=e;return this}withShadowRootMode(e){this.shadowRootMode=e;return this}withElementDisambiguation(e){this.disambiguate=e;return this}withDesignTokenRoot(e){this.designTokenRoot=e;return this}register(...e){const t=this.container;const i=[];const s=this.disambiguate;const o=this.shadowRootMode;const n={elementPrefix:this.prefix,tryDefineElement(e,n,r){const a=Hn(e,n,r);const{name:l,callback:d,baseClass:h}=a;let{type:c}=a;let u=l;let p=An.get(u);let f=true;while(p){const e=s(u,c,p);switch(e){case Sn.ignoreDuplicate:return;case Sn.definitionCallbackOnly:f=false;p=void 0;break;default:u=e;p=An.get(u);break}}if(f){if(Fn.has(c)||c===Fe){c=class extends c{}}An.set(u,c);Fn.set(c,u);if(h){Fn.set(h,u)}}i.push(new zn(t,u,c,o,d,f))}};if(!this.designTokensInitialized){this.designTokensInitialized=true;if(this.designTokenRoot!==null){Dn.registerRoot(this.designTokenRoot)}}t.registerWithContext(n,...e);for(const r of i){r.callback(r);if(r.willDefine&&r.definition!==null){r.definition.define()}}return this}}class zn{constructor(e,t,i,s,o,n){this.container=e;this.name=t;this.type=i;this.shadowRootMode=s;this.callback=o;this.willDefine=n;this.definition=null}definePresentation(e){Se.define(this.name,e,this.container)}defineElement(e){this.definition=new s.FASTElementDefinition(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return Pn.tagFor(e)}}const Nn=(e,t)=>(0,s.html)` +
+ ${(0,s.when)((e=>e.modal),(0,s.html)` + + `)} + +
+`;var Bn=i(49054);class qn extends Fe{constructor(){super(...arguments);this.modal=true;this.hidden=false;this.trapFocus=true;this.trapFocusChanged=()=>{if(this.$fastController.isConnected){this.updateTrapFocus()}};this.isTrappingFocus=false;this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&!this.hidden){switch(e.key){case ze.F9:this.dismiss();e.preventDefault();break;case ze.J9:this.handleTabKeyDown(e);break}}};this.handleDocumentFocus=e=>{if(!e.defaultPrevented&&this.shouldForceFocus(e.target)){this.focusFirstElement();e.preventDefault()}};this.handleTabKeyDown=e=>{if(!this.trapFocus||this.hidden){return}const t=this.getTabQueueBounds();if(t.length===0){return}if(t.length===1){t[0].focus();e.preventDefault();return}if(e.shiftKey&&e.target===t[0]){t[t.length-1].focus();e.preventDefault()}else if(!e.shiftKey&&e.target===t[t.length-1]){t[0].focus();e.preventDefault()}return};this.getTabQueueBounds=()=>{const e=[];return qn.reduceTabbableItems(e,this)};this.focusFirstElement=()=>{const e=this.getTabQueueBounds();if(e.length>0){e[0].focus()}else{if(this.dialog instanceof HTMLElement){this.dialog.focus()}}};this.shouldForceFocus=e=>this.isTrappingFocus&&!this.contains(e);this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden;this.updateTrapFocus=e=>{const t=e===undefined?this.shouldTrapFocus():e;if(t&&!this.isTrappingFocus){this.isTrappingFocus=true;document.addEventListener("focusin",this.handleDocumentFocus);s.DOM.queueUpdate((()=>{if(this.shouldForceFocus(document.activeElement)){this.focusFirstElement()}}))}else if(!t&&this.isTrappingFocus){this.isTrappingFocus=false;document.removeEventListener("focusin",this.handleDocumentFocus)}}}dismiss(){this.$emit("dismiss");this.$emit("cancel")}show(){this.hidden=false}hide(){this.hidden=true;this.$emit("close")}connectedCallback(){super.connectedCallback();document.addEventListener("keydown",this.handleDocumentKeydown);this.notifier=s.Observable.getNotifier(this);this.notifier.subscribe(this,"hidden");this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback();document.removeEventListener("keydown",this.handleDocumentKeydown);this.updateTrapFocus(false);this.notifier.unsubscribe(this,"hidden")}handleChange(e,t){switch(t){case"hidden":this.updateTrapFocus();break;default:break}}static reduceTabbableItems(e,t){if(t.getAttribute("tabindex")==="-1"){return e}if((0,Bn.AO)(t)||qn.isFocusableFastElement(t)&&qn.hasTabbableShadow(t)){e.push(t);return e}if(t.childElementCount){return e.concat(Array.from(t.children).reduce(qn.reduceTabbableItems,[]))}return e}static isFocusableFastElement(e){var t,i;return!!((i=(t=e.$fastController)===null||t===void 0?void 0:t.definition.shadowOptions)===null||i===void 0?void 0:i.delegatesFocus)}static hasTabbableShadow(e){var t,i;return Array.from((i=(t=e.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("*"))!==null&&i!==void 0?i:[]).some((e=>(0,Bn.AO)(e)))}}f([(0,s.attr)({mode:"boolean"})],qn.prototype,"modal",void 0);f([(0,s.attr)({mode:"boolean"})],qn.prototype,"hidden",void 0);f([(0,s.attr)({attribute:"trap-focus",mode:"boolean"})],qn.prototype,"trapFocus",void 0);f([(0,s.attr)({attribute:"aria-describedby"})],qn.prototype,"ariaDescribedby",void 0);f([(0,s.attr)({attribute:"aria-labelledby"})],qn.prototype,"ariaLabelledby",void 0);f([(0,s.attr)({attribute:"aria-label"})],qn.prototype,"ariaLabel",void 0);const Un=new MutationObserver((e=>{for(const t of e){jn.getOrCreateFor(t.target).notify(t.attributeName)}}));class jn extends s.SubscriberSet{constructor(e){super(e);this.watchedAttributes=new Set;jn.subscriberCache.set(e,this)}subscribe(e){super.subscribe(e);if(!this.watchedAttributes.has(e.attributes)){this.watchedAttributes.add(e.attributes);this.observe()}}unsubscribe(e){super.unsubscribe(e);if(this.watchedAttributes.has(e.attributes)){this.watchedAttributes.delete(e.attributes);this.observe()}}static getOrCreateFor(e){return this.subscriberCache.get(e)||new jn(e)}observe(){const e=[];for(const t of this.watchedAttributes.values()){for(let i=0;i(0,s.html)` +
+ + + ${e=>e.title} + + +
+
+`;class Gn extends Fe{connectedCallback(){super.connectedCallback();this.setup()}disconnectedCallback(){super.disconnectedCallback();this.details.removeEventListener("toggle",this.onToggle)}show(){this.details.open=true}hide(){this.details.open=false}toggle(){this.details.open=!this.details.open}setup(){this.onToggle=this.onToggle.bind(this);this.details.addEventListener("toggle",this.onToggle);if(this.expanded){this.show()}}onToggle(){this.expanded=this.details.open;this.$emit("toggle")}}f([(0,s.attr)({mode:"boolean"})],Gn.prototype,"expanded",void 0);f([s.attr],Gn.prototype,"title",void 0);const Xn=(e,t)=>(0,s.html)` + +`;var Yn=i(67002);const Qn={separator:"separator",presentation:"presentation"};class Zn extends Fe{constructor(){super(...arguments);this.role=Qn.separator;this.orientation=Yn.t.horizontal}}f([s.attr],Zn.prototype,"role",void 0);f([s.attr],Zn.prototype,"orientation",void 0);const Jn={next:"next",previous:"previous"};const er=(e,t)=>(0,s.html)` + +`;class tr extends Fe{constructor(){super(...arguments);this.hiddenFromAT=true;this.direction=Jn.next}keyupHandler(e){if(!this.hiddenFromAT){const t=e.key;if(t==="Enter"||t==="Space"){this.$emit("click",e)}if(t==="Escape"){this.blur()}}}}f([(0,s.attr)({mode:"boolean"})],tr.prototype,"disabled",void 0);f([(0,s.attr)({attribute:"aria-hidden",converter:s.booleanConverter})],tr.prototype,"hiddenFromAT",void 0);f([s.attr],tr.prototype,"direction",void 0);const ir=(e,t)=>(0,s.html)` + +`;class sr extends Ko{constructor(){super(...arguments);this.activeIndex=-1;this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var e;return(e=this.options)===null||e===void 0?void 0:e.filter((e=>e.checked))}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(e,t){var i,s;this.ariaActiveDescendant=(s=(i=this.options[t])===null||i===void 0?void 0:i.id)!==null&&s!==void 0?s:"";this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple){return}const e=this.activeOption;if(e){e.checked=true}}checkFirstOption(e=false){if(e){if(this.rangeStartIndex===-1){this.rangeStartIndex=this.activeIndex+1}this.options.forEach(((e,t)=>{e.checked=(0,Ne.r4)(t,this.rangeStartIndex)}))}else{this.uncheckAllOptions()}this.activeIndex=0;this.checkActiveIndex()}checkLastOption(e=false){if(e){if(this.rangeStartIndex===-1){this.rangeStartIndex=this.activeIndex}this.options.forEach(((e,t)=>{e.checked=(0,Ne.r4)(t,this.rangeStartIndex,this.options.length)}))}else{this.uncheckAllOptions()}this.activeIndex=this.options.length-1;this.checkActiveIndex()}connectedCallback(){super.connectedCallback();this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler);super.disconnectedCallback()}checkNextOption(e=false){if(e){if(this.rangeStartIndex===-1){this.rangeStartIndex=this.activeIndex}this.options.forEach(((e,t)=>{e.checked=(0,Ne.r4)(t,this.rangeStartIndex,this.activeIndex+1)}))}else{this.uncheckAllOptions()}this.activeIndex+=this.activeIndex{e.checked=(0,Ne.r4)(t,this.activeIndex,this.rangeStartIndex)}))}else{this.uncheckAllOptions()}this.activeIndex-=this.activeIndex>0?1:0;this.checkActiveIndex()}clickHandler(e){var t;if(!this.multiple){return super.clickHandler(e)}const i=(t=e.target)===null||t===void 0?void 0:t.closest(`[role=option]`);if(!i||i.disabled){return}this.uncheckAllOptions();this.activeIndex=this.options.indexOf(i);this.checkActiveIndex();this.toggleSelectedForAllCheckedOptions();return true}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(e){if(!this.multiple){return super.focusinHandler(e)}if(!this.shouldSkipFocus&&e.target===e.currentTarget){this.uncheckAllOptions();if(this.activeIndex===-1){this.activeIndex=this.firstSelectedOptionIndex!==-1?this.firstSelectedOptionIndex:0}this.checkActiveIndex();this.setSelectedOptions();this.focusAndScrollOptionIntoView()}this.shouldSkipFocus=false}focusoutHandler(e){if(this.multiple){this.uncheckAllOptions()}}keydownHandler(e){if(!this.multiple){return super.keydownHandler(e)}if(this.disabled){return true}const{key:t,shiftKey:i}=e;this.shouldSkipFocus=false;switch(t){case ze.Tg:{this.checkFirstOption(i);return}case ze.HX:{this.checkNextOption(i);return}case ze.I5:{this.checkPreviousOption(i);return}case ze.FM:{this.checkLastOption(i);return}case ze.J9:{this.focusAndScrollOptionIntoView();return true}case ze.F9:{this.uncheckAllOptions();this.checkActiveIndex();return true}case ze.gG:{e.preventDefault();if(this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}}default:{if(t.length===1){this.handleTypeAhead(`${t}`)}return true}}}mousedownHandler(e){if(e.offsetX>=0&&e.offsetX<=this.scrollWidth){return super.mousedownHandler(e)}}multipleChanged(e,t){var i;this.ariaMultiSelectable=t?"true":null;(i=this.options)===null||i===void 0?void 0:i.forEach((e=>{e.checked=t?false:undefined}));this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}if(this.$fastController.isConnected&&this.options){this.selectedOptions=this.options.filter((e=>e.selected));this.focusAndScrollOptionIntoView()}}sizeChanged(e,t){var i;const o=Math.max(0,parseInt((i=t===null||t===void 0?void 0:t.toFixed())!==null&&i!==void 0?i:"",10));if(o!==t){s.DOM.queueUpdate((()=>{this.size=o}))}}toggleSelectedForAllCheckedOptions(){const e=this.checkedOptions.filter((e=>!e.disabled));const t=!e.every((e=>e.selected));e.forEach((e=>e.selected=t));this.selectedIndex=this.options.indexOf(e[e.length-1]);this.setSelectedOptions()}typeaheadBufferChanged(e,t){if(!this.multiple){super.typeaheadBufferChanged(e,t);return}if(this.$fastController.isConnected){const e=this.getTypeaheadMatches();const t=this.options.indexOf(e[0]);if(t>-1){this.activeIndex=t;this.uncheckAllOptions();this.checkActiveIndex()}this.typeAheadExpired=false}}uncheckAllOptions(e=false){this.options.forEach((e=>e.checked=this.multiple?false:undefined));if(!e){this.rangeStartIndex=-1}}}f([s.observable],sr.prototype,"activeIndex",void 0);f([(0,s.attr)({mode:"boolean"})],sr.prototype,"multiple",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],sr.prototype,"size",void 0);const or=(e,t)=>(0,s.html)` + +`;class nr extends Fe{constructor(){super(...arguments);this.optionElements=[]}menuElementsChanged(){this.updateOptions()}headerElementsChanged(){this.updateOptions()}footerElementsChanged(){this.updateOptions()}updateOptions(){this.optionElements.splice(0,this.optionElements.length);this.addSlottedListItems(this.headerElements);this.addSlottedListItems(this.menuElements);this.addSlottedListItems(this.footerElements);this.$emit("optionsupdated",{bubbles:false})}addSlottedListItems(e){if(e===undefined){return}e.forEach((e=>{if(e.nodeType===1&&e.getAttribute("role")==="listitem"){e.id=e.id||Io("option-");this.optionElements.push(e)}}))}}f([s.observable],nr.prototype,"menuElements",void 0);f([s.observable],nr.prototype,"headerElements",void 0);f([s.observable],nr.prototype,"footerElements",void 0);f([s.observable],nr.prototype,"suggestionsAvailableText",void 0);const rr=(0,s.html)` + +`;class ar extends Fe{contentsTemplateChanged(){if(this.$fastController.isConnected){this.updateView()}}connectedCallback(){super.connectedCallback();this.updateView()}disconnectedCallback(){super.disconnectedCallback();this.disconnectView()}handleClick(e){if(e.defaultPrevented){return false}this.handleInvoked();return false}handleInvoked(){this.$emit("pickeroptioninvoked")}updateView(){var e,t;this.disconnectView();this.customView=(t=(e=this.contentsTemplate)===null||e===void 0?void 0:e.render(this,this))!==null&&t!==void 0?t:rr.render(this,this)}disconnectView(){var e;(e=this.customView)===null||e===void 0?void 0:e.dispose();this.customView=undefined}}f([(0,s.attr)({attribute:"value"})],ar.prototype,"value",void 0);f([s.observable],ar.prototype,"contentsTemplate",void 0);class lr extends Fe{}const dr=(0,s.html)` + +`;class hr extends Fe{contentsTemplateChanged(){if(this.$fastController.isConnected){this.updateView()}}connectedCallback(){super.connectedCallback();this.updateView()}disconnectedCallback(){this.disconnectView();super.disconnectedCallback()}handleKeyDown(e){if(e.defaultPrevented){return false}if(e.key===ze.Mm){this.handleInvoke();return false}return true}handleClick(e){if(!e.defaultPrevented){this.handleInvoke()}return false}handleInvoke(){this.$emit("pickeriteminvoked")}updateView(){var e,t;this.disconnectView();this.customView=(t=(e=this.contentsTemplate)===null||e===void 0?void 0:e.render(this,this))!==null&&t!==void 0?t:dr.render(this,this)}disconnectView(){var e;(e=this.customView)===null||e===void 0?void 0:e.dispose();this.customView=undefined}}f([(0,s.attr)({attribute:"value"})],hr.prototype,"value",void 0);f([s.observable],hr.prototype,"contentsTemplate",void 0);function cr(e){const t=e.tagFor(hr);return(0,s.html)` + <${t} + value="${e=>e}" + :contentsTemplate="${(e,t)=>t.parent.listItemContentsTemplate}" + > + + `}function ur(e){const t=e.tagFor(ar);return(0,s.html)` + <${t} + value="${e=>e}" + :contentsTemplate="${(e,t)=>t.parent.menuOptionContentsTemplate}" + > + + `}const pr=(e,t)=>{const i=e.tagFor(Os);const o=e.tagFor(nr);const n=e.tagFor(lr);const r=e.tagFor(lr);const a=cr(e);const l=ur(e);return(0,s.html)` + + `};class fr extends Fe{}class mr extends(Ws(fr)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}const vr=(0,s.html)` + +`;class br extends mr{constructor(){super(...arguments);this.selection="";this.filterSelected=true;this.filterQuery=true;this.noSuggestionsText="No suggestions available";this.suggestionsAvailableText="Suggestions available";this.loadingText="Loading suggestions";this.menuPlacement="bottom-fill";this.showLoading=false;this.optionsList=[];this.filteredOptionsList=[];this.flyoutOpen=false;this.menuFocusIndex=-1;this.showNoOptions=false;this.selectedItems=[];this.inputElementView=null;this.handleTextInput=e=>{this.query=this.inputElement.value};this.handleInputClick=e=>{e.preventDefault();this.toggleFlyout(true)};this.setRegionProps=()=>{if(!this.flyoutOpen){return}if(this.region===null||this.region===undefined){s.DOM.queueUpdate(this.setRegionProps);return}this.region.anchorElement=this.inputElement};this.configLookup={top:Es,bottom:Rs,tallest:Ds,"top-fill":Ss,"bottom-fill":As,"tallest-fill":Fs}}selectionChanged(){if(this.$fastController.isConnected){this.handleSelectionChange();if(this.proxy instanceof HTMLInputElement){this.proxy.value=this.selection;this.validate()}}}optionsChanged(){this.optionsList=this.options.split(",").map((e=>e.trim())).filter((e=>e!==""))}menuPlacementChanged(){if(this.$fastController.isConnected){this.updateMenuConfig()}}showLoadingChanged(){if(this.$fastController.isConnected){s.DOM.queueUpdate((()=>{this.setFocusedOption(0)}))}}listItemTemplateChanged(){this.updateListItemTemplate()}defaultListItemTemplateChanged(){this.updateListItemTemplate()}menuOptionTemplateChanged(){this.updateOptionTemplate()}defaultMenuOptionTemplateChanged(){this.updateOptionTemplate()}optionsListChanged(){this.updateFilteredOptions()}queryChanged(){if(this.$fastController.isConnected){if(this.inputElement.value!==this.query){this.inputElement.value=this.query}this.updateFilteredOptions();this.$emit("querychange",{bubbles:false})}}filteredOptionsListChanged(){if(this.$fastController.isConnected){this.showNoOptions=this.filteredOptionsList.length===0&&this.menuElement.querySelectorAll('[role="listitem"]').length===0;this.setFocusedOption(this.showNoOptions?-1:0)}}flyoutOpenChanged(){if(this.flyoutOpen){s.DOM.queueUpdate(this.setRegionProps);this.$emit("menuopening",{bubbles:false})}else{this.$emit("menuclosing",{bubbles:false})}}showNoOptionsChanged(){if(this.$fastController.isConnected){s.DOM.queueUpdate((()=>{this.setFocusedOption(0)}))}}connectedCallback(){super.connectedCallback();this.listElement=document.createElement(this.selectedListTag);this.appendChild(this.listElement);this.itemsPlaceholderElement=document.createComment("");this.listElement.append(this.itemsPlaceholderElement);this.inputElementView=vr.render(this,this.listElement);const e=this.menuTag.toUpperCase();this.menuElement=Array.from(this.children).find((t=>t.tagName===e));if(this.menuElement===undefined){this.menuElement=document.createElement(this.menuTag);this.appendChild(this.menuElement)}if(this.menuElement.id===""){this.menuElement.id=Io("listbox-")}this.menuId=this.menuElement.id;this.optionsPlaceholder=document.createComment("");this.menuElement.append(this.optionsPlaceholder);this.updateMenuConfig();s.DOM.queueUpdate((()=>this.initialize()))}disconnectedCallback(){super.disconnectedCallback();this.toggleFlyout(false);this.inputElement.removeEventListener("input",this.handleTextInput);this.inputElement.removeEventListener("click",this.handleInputClick);if(this.inputElementView!==null){this.inputElementView.dispose();this.inputElementView=null}}focus(){this.inputElement.focus()}initialize(){this.updateListItemTemplate();this.updateOptionTemplate();this.itemsRepeatBehavior=new s.RepeatDirective((e=>e.selectedItems),(e=>e.activeListItemTemplate),{positioning:true}).createBehavior(this.itemsPlaceholderElement);this.inputElement.addEventListener("input",this.handleTextInput);this.inputElement.addEventListener("click",this.handleInputClick);this.$fastController.addBehaviors([this.itemsRepeatBehavior]);this.menuElement.suggestionsAvailableText=this.suggestionsAvailableText;this.menuElement.addEventListener("optionsupdated",this.handleMenuOptionsUpdated);this.optionsRepeatBehavior=new s.RepeatDirective((e=>e.filteredOptionsList),(e=>e.activeMenuOptionTemplate),{positioning:true}).createBehavior(this.optionsPlaceholder);this.$fastController.addBehaviors([this.optionsRepeatBehavior]);this.handleSelectionChange()}toggleFlyout(e){if(this.flyoutOpen===e){return}if(e&&document.activeElement===this.inputElement){this.flyoutOpen=e;s.DOM.queueUpdate((()=>{if(this.menuElement!==undefined){this.setFocusedOption(0)}else{this.disableMenu()}}));return}this.flyoutOpen=false;this.disableMenu();return}handleMenuOptionsUpdated(e){e.preventDefault();if(this.flyoutOpen){this.setFocusedOption(0)}}handleKeyDown(e){if(e.defaultPrevented){return false}switch(e.key){case ze.HX:{if(!this.flyoutOpen){this.toggleFlyout(true)}else{const e=this.flyoutOpen?Math.min(this.menuFocusIndex+1,this.menuElement.optionElements.length-1):0;this.setFocusedOption(e)}return false}case ze.I5:{if(!this.flyoutOpen){this.toggleFlyout(true)}else{const e=this.flyoutOpen?Math.max(this.menuFocusIndex-1,0):0;this.setFocusedOption(e)}return false}case ze.F9:{this.toggleFlyout(false);return false}case ze.Mm:{if(this.menuFocusIndex!==-1&&this.menuElement.optionElements.length>this.menuFocusIndex){this.menuElement.optionElements[this.menuFocusIndex].click()}return false}case ze.bb:{if(document.activeElement!==this.inputElement){this.incrementFocusedItem(1);return false}return true}case ze.kT:{if(this.inputElement.selectionStart===0){this.incrementFocusedItem(-1);return false}return true}case ze.De:case ze.R9:{if(document.activeElement===null){return true}if(document.activeElement===this.inputElement){if(this.inputElement.selectionStart===0){this.selection=this.selectedItems.slice(0,this.selectedItems.length-1).toString();this.toggleFlyout(false);return false}return true}const e=Array.from(this.listElement.children);const t=e.indexOf(document.activeElement);if(t>-1){this.selection=this.selectedItems.splice(t,1).toString();s.DOM.queueUpdate((()=>{e[Math.min(e.length,t)].focus()}));return false}return true}}this.toggleFlyout(true);return true}handleFocusIn(e){return false}handleFocusOut(e){if(this.menuElement===undefined||!this.menuElement.contains(e.relatedTarget)){this.toggleFlyout(false)}return false}handleSelectionChange(){if(this.selectedItems.toString()===this.selection){return}this.selectedItems=this.selection===""?[]:this.selection.split(",");this.updateFilteredOptions();s.DOM.queueUpdate((()=>{this.checkMaxItems()}));this.$emit("selectionchange",{bubbles:false})}handleRegionLoaded(e){s.DOM.queueUpdate((()=>{this.setFocusedOption(0);this.$emit("menuloaded",{bubbles:false})}))}checkMaxItems(){if(this.inputElement===undefined){return}if(this.maxSelected!==undefined&&this.selectedItems.length>=this.maxSelected){if(document.activeElement===this.inputElement){const e=Array.from(this.listElement.querySelectorAll("[role='listitem']"));e[e.length-1].focus()}this.inputElement.hidden=true}else{this.inputElement.hidden=false}}handleItemInvoke(e){if(e.defaultPrevented){return false}if(e.target instanceof hr){const t=Array.from(this.listElement.querySelectorAll("[role='listitem']"));const i=t.indexOf(e.target);if(i!==-1){const e=this.selectedItems.slice();e.splice(i,1);this.selection=e.toString();s.DOM.queueUpdate((()=>this.incrementFocusedItem(0)))}return false}return true}handleOptionInvoke(e){if(e.defaultPrevented){return false}if(e.target instanceof ar){if(e.target.value!==undefined){this.selection=`${this.selection}${this.selection===""?"":","}${e.target.value}`}this.inputElement.value="";this.query="";this.inputElement.focus();this.toggleFlyout(false);return false}return true}incrementFocusedItem(e){if(this.selectedItems.length===0){this.inputElement.focus();return}const t=Array.from(this.listElement.querySelectorAll("[role='listitem']"));if(document.activeElement!==null){let i=t.indexOf(document.activeElement);if(i===-1){i=t.length}const s=Math.min(t.length,Math.max(0,i+e));if(s===t.length){if(this.maxSelected!==undefined&&this.selectedItems.length>=this.maxSelected){t[s-1].focus()}else{this.inputElement.focus()}}else{t[s].focus()}}}disableMenu(){var e,t,i;this.menuFocusIndex=-1;this.menuFocusOptionId=undefined;(e=this.inputElement)===null||e===void 0?void 0:e.removeAttribute("aria-activedescendant");(t=this.inputElement)===null||t===void 0?void 0:t.removeAttribute("aria-owns");(i=this.inputElement)===null||i===void 0?void 0:i.removeAttribute("aria-expanded")}setFocusedOption(e){if(!this.flyoutOpen||e===-1||this.showNoOptions||this.showLoading){this.disableMenu();return}if(this.menuElement.optionElements.length===0){return}this.menuElement.optionElements.forEach((e=>{e.setAttribute("aria-selected","false")}));this.menuFocusIndex=e;if(this.menuFocusIndex>this.menuElement.optionElements.length-1){this.menuFocusIndex=this.menuElement.optionElements.length-1}this.menuFocusOptionId=this.menuElement.optionElements[this.menuFocusIndex].id;this.inputElement.setAttribute("aria-owns",this.menuId);this.inputElement.setAttribute("aria-expanded","true");this.inputElement.setAttribute("aria-activedescendant",this.menuFocusOptionId);const t=this.menuElement.optionElements[this.menuFocusIndex];t.setAttribute("aria-selected","true");this.menuElement.scrollTo(0,t.offsetTop)}updateListItemTemplate(){var e;this.activeListItemTemplate=(e=this.listItemTemplate)!==null&&e!==void 0?e:this.defaultListItemTemplate}updateOptionTemplate(){var e;this.activeMenuOptionTemplate=(e=this.menuOptionTemplate)!==null&&e!==void 0?e:this.defaultMenuOptionTemplate}updateFilteredOptions(){this.filteredOptionsList=this.optionsList.slice(0);if(this.filterSelected){this.filteredOptionsList=this.filteredOptionsList.filter((e=>this.selectedItems.indexOf(e)===-1))}if(this.filterQuery&&this.query!==""&&this.query!==undefined){this.filteredOptionsList=this.filteredOptionsList.filter((e=>e.indexOf(this.query)!==-1))}}updateMenuConfig(){let e=this.configLookup[this.menuPlacement];if(e===null){e=As}this.menuConfig=Object.assign(Object.assign({},e),{autoUpdateMode:"auto",fixedPlacement:true,horizontalViewportLock:false,verticalViewportLock:false})}}f([(0,s.attr)({attribute:"selection"})],br.prototype,"selection",void 0);f([(0,s.attr)({attribute:"options"})],br.prototype,"options",void 0);f([(0,s.attr)({attribute:"filter-selected",mode:"boolean"})],br.prototype,"filterSelected",void 0);f([(0,s.attr)({attribute:"filter-query",mode:"boolean"})],br.prototype,"filterQuery",void 0);f([(0,s.attr)({attribute:"max-selected"})],br.prototype,"maxSelected",void 0);f([(0,s.attr)({attribute:"no-suggestions-text"})],br.prototype,"noSuggestionsText",void 0);f([(0,s.attr)({attribute:"suggestions-available-text"})],br.prototype,"suggestionsAvailableText",void 0);f([(0,s.attr)({attribute:"loading-text"})],br.prototype,"loadingText",void 0);f([(0,s.attr)({attribute:"label"})],br.prototype,"label",void 0);f([(0,s.attr)({attribute:"labelledby"})],br.prototype,"labelledBy",void 0);f([(0,s.attr)({attribute:"placeholder"})],br.prototype,"placeholder",void 0);f([(0,s.attr)({attribute:"menu-placement"})],br.prototype,"menuPlacement",void 0);f([s.observable],br.prototype,"showLoading",void 0);f([s.observable],br.prototype,"listItemTemplate",void 0);f([s.observable],br.prototype,"defaultListItemTemplate",void 0);f([s.observable],br.prototype,"activeListItemTemplate",void 0);f([s.observable],br.prototype,"menuOptionTemplate",void 0);f([s.observable],br.prototype,"defaultMenuOptionTemplate",void 0);f([s.observable],br.prototype,"activeMenuOptionTemplate",void 0);f([s.observable],br.prototype,"listItemContentsTemplate",void 0);f([s.observable],br.prototype,"menuOptionContentsTemplate",void 0);f([s.observable],br.prototype,"optionsList",void 0);f([s.observable],br.prototype,"query",void 0);f([s.observable],br.prototype,"filteredOptionsList",void 0);f([s.observable],br.prototype,"flyoutOpen",void 0);f([s.observable],br.prototype,"menuId",void 0);f([s.observable],br.prototype,"selectedListTag",void 0);f([s.observable],br.prototype,"menuTag",void 0);f([s.observable],br.prototype,"menuFocusIndex",void 0);f([s.observable],br.prototype,"menuFocusOptionId",void 0);f([s.observable],br.prototype,"showNoOptions",void 0);f([s.observable],br.prototype,"menuConfig",void 0);f([s.observable],br.prototype,"selectedItems",void 0);const gr=(e,t)=>(0,s.html)` + + `;const yr=(e,t)=>(0,s.html)` + + `;const Cr=(e,t)=>(0,s.html)` + + `;const xr=(e,t)=>(0,s.html)` + + `;const wr={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"};const $r={[wr.menuitem]:"menuitem",[wr.menuitemcheckbox]:"menuitemcheckbox",[wr.menuitemradio]:"menuitemradio"};const Ir=(e,t)=>(0,s.html)` + +`;class kr extends Fe{constructor(){super(...arguments);this.role=wr.menuitem;this.hasSubmenu=false;this.currentDirection=Ge.O.ltr;this.focusSubmenuOnLoad=false;this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented){return false}switch(e.key){case ze.Mm:case ze.gG:this.invoke();return false;case ze.bb:this.expandAndFocus();return false;case ze.kT:if(this.expanded){this.expanded=false;this.focus();return false}}return true};this.handleMenuItemClick=e=>{if(e.defaultPrevented||this.disabled){return false}this.invoke();return false};this.submenuLoaded=()=>{if(!this.focusSubmenuOnLoad){return}this.focusSubmenuOnLoad=false;if(this.hasSubmenu){this.submenu.focus();this.setAttribute("tabindex","-1")}};this.handleMouseOver=e=>{if(this.disabled||!this.hasSubmenu||this.expanded){return false}this.expanded=true;return false};this.handleMouseOut=e=>{if(!this.expanded||this.contains(document.activeElement)){return false}this.expanded=false;return false};this.expandAndFocus=()=>{if(!this.hasSubmenu){return}this.focusSubmenuOnLoad=true;this.expanded=true};this.invoke=()=>{if(this.disabled){return}switch(this.role){case wr.menuitemcheckbox:this.checked=!this.checked;break;case wr.menuitem:this.updateSubmenu();if(this.hasSubmenu){this.expandAndFocus()}else{this.$emit("change")}break;case wr.menuitemradio:if(!this.checked){this.checked=true}break}};this.updateSubmenu=()=>{this.submenu=this.domChildren().find((e=>e.getAttribute("role")==="menu"));this.hasSubmenu=this.submenu===undefined?false:true}}expandedChanged(e){if(this.$fastController.isConnected){if(this.submenu===undefined){return}if(this.expanded===false){this.submenu.collapseExpandedItem()}else{this.currentDirection=Is(this)}this.$emit("expanded-change",this,{bubbles:false})}}checkedChanged(e,t){if(this.$fastController.isConnected){this.$emit("change")}}connectedCallback(){super.connectedCallback();s.DOM.queueUpdate((()=>{this.updateSubmenu()}));if(!this.startColumnCount){this.startColumnCount=1}this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback();this.submenu=undefined;if(this.observer!==undefined){this.observer.disconnect();this.observer=undefined}}domChildren(){return Array.from(this.children).filter((e=>!e.hasAttribute("hidden")))}}f([(0,s.attr)({mode:"boolean"})],kr.prototype,"disabled",void 0);f([(0,s.attr)({mode:"boolean"})],kr.prototype,"expanded",void 0);f([s.observable],kr.prototype,"startColumnCount",void 0);f([s.attr],kr.prototype,"role",void 0);f([(0,s.attr)({mode:"boolean"})],kr.prototype,"checked",void 0);f([s.observable],kr.prototype,"submenuRegion",void 0);f([s.observable],kr.prototype,"hasSubmenu",void 0);f([s.observable],kr.prototype,"currentDirection",void 0);f([s.observable],kr.prototype,"submenu",void 0);Pe(kr,o);const Or=(e,t)=>(0,s.html)` + +`;class Tr extends Fe{constructor(){super(...arguments);this.expandedItem=null;this.focusIndex=-1;this.isNestedMenu=()=>this.parentElement!==null&&Ao(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem";this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==undefined){this.collapseExpandedItem();const e=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1");this.menuItems[e].setAttribute("tabindex","0");this.focusIndex=e}};this.handleItemFocus=e=>{const t=e.target;if(this.menuItems!==undefined&&t!==this.menuItems[this.focusIndex]){this.menuItems[this.focusIndex].setAttribute("tabindex","-1");this.focusIndex=this.menuItems.indexOf(t);t.setAttribute("tabindex","0")}};this.handleExpandedChanged=e=>{if(e.defaultPrevented||e.target===null||this.menuItems===undefined||this.menuItems.indexOf(e.target)<0){return}e.preventDefault();const t=e.target;if(this.expandedItem!==null&&t===this.expandedItem&&t.expanded===false){this.expandedItem=null;return}if(t.expanded){if(this.expandedItem!==null&&this.expandedItem!==t){this.expandedItem.expanded=false}this.menuItems[this.focusIndex].setAttribute("tabindex","-1");this.expandedItem=t;this.focusIndex=this.menuItems.indexOf(t);t.setAttribute("tabindex","0")}};this.removeItemListeners=()=>{if(this.menuItems!==undefined){this.menuItems.forEach((e=>{e.removeEventListener("expanded-change",this.handleExpandedChanged);e.removeEventListener("focus",this.handleItemFocus)}))}};this.setItems=()=>{const e=this.domChildren();this.removeItemListeners();this.menuItems=e;const t=this.menuItems.filter(this.isMenuItemElement);if(t.length){this.focusIndex=0}function i(e){const t=e.getAttribute("role");const i=e.querySelector("[slot=start]");if(t!==wr.menuitem&&i===null){return 1}else if(t===wr.menuitem&&i!==null){return 1}else if(t!==wr.menuitem&&i!==null){return 2}else{return 0}}const s=t.reduce(((e,t)=>{const s=i(t);return e>s?e:s}),0);t.forEach(((e,t)=>{e.setAttribute("tabindex",t===0?"0":"-1");e.addEventListener("expanded-change",this.handleExpandedChanged);e.addEventListener("focus",this.handleItemFocus);if(e instanceof kr){e.startColumnCount=s}}))};this.changeHandler=e=>{if(this.menuItems===undefined){return}const t=e.target;const i=this.menuItems.indexOf(t);if(i===-1){return}if(t.role==="menuitemradio"&&t.checked===true){for(let t=i-1;t>=0;--t){const e=this.menuItems[t];const i=e.getAttribute("role");if(i===wr.menuitemradio){e.checked=false}if(i==="separator"){break}}const e=this.menuItems.length-1;for(let t=i+1;t<=e;++t){const e=this.menuItems[t];const i=e.getAttribute("role");if(i===wr.menuitemradio){e.checked=false}if(i==="separator"){break}}}};this.isMenuItemElement=e=>Ao(e)&&Tr.focusableElementRoles.hasOwnProperty(e.getAttribute("role"));this.isFocusableElement=e=>this.isMenuItemElement(e)}itemsChanged(e,t){if(this.$fastController.isConnected&&this.menuItems!==undefined){this.setItems()}}connectedCallback(){super.connectedCallback();s.DOM.queueUpdate((()=>{this.setItems()}));this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback();this.removeItemListeners();this.menuItems=undefined;this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){if(this.expandedItem!==null){this.expandedItem.expanded=false;this.expandedItem=null}}handleMenuKeyDown(e){if(e.defaultPrevented||this.menuItems===undefined){return}switch(e.key){case ze.HX:this.setFocus(this.focusIndex+1,1);return;case ze.I5:this.setFocus(this.focusIndex-1,-1);return;case ze.FM:this.setFocus(this.menuItems.length-1,-1);return;case ze.Tg:this.setFocus(0,1);return;default:return true}}domChildren(){return Array.from(this.children).filter((e=>!e.hasAttribute("hidden")))}setFocus(e,t){if(this.menuItems===undefined){return}while(e>=0&&e-1&&this.menuItems.length>=this.focusIndex-1){this.menuItems[this.focusIndex].setAttribute("tabindex","-1")}this.focusIndex=e;i.setAttribute("tabindex","0");i.focus();break}e+=t}}}Tr.focusableElementRoles=$r;f([s.observable],Tr.prototype,"items",void 0);const Er=(e,t)=>(0,s.html)` + +`;class Rr extends Fe{}class Dr extends(Ws(Rr)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}const Sr={email:"email",password:"password",tel:"tel",text:"text",url:"url"};class Ar extends Dr{constructor(){super(...arguments);this.type=Sr.text}readOnlyChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.readOnly=this.readOnly;this.validate()}}autofocusChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.autofocus=this.autofocus;this.validate()}}placeholderChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.placeholder=this.placeholder}}typeChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.type=this.type;this.validate()}}listChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.setAttribute("list",this.list);this.validate()}}maxlengthChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.maxLength=this.maxlength;this.validate()}}minlengthChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.minLength=this.minlength;this.validate()}}patternChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.pattern=this.pattern;this.validate()}}sizeChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.size=this.size}}spellcheckChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.spellcheck=this.spellcheck}}connectedCallback(){super.connectedCallback();this.proxy.setAttribute("type",this.type);this.validate();if(this.autofocus){s.DOM.queueUpdate((()=>{this.focus()}))}}select(){this.control.select();this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}f([(0,s.attr)({attribute:"readonly",mode:"boolean"})],Ar.prototype,"readOnly",void 0);f([(0,s.attr)({mode:"boolean"})],Ar.prototype,"autofocus",void 0);f([s.attr],Ar.prototype,"placeholder",void 0);f([s.attr],Ar.prototype,"type",void 0);f([s.attr],Ar.prototype,"list",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Ar.prototype,"maxlength",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Ar.prototype,"minlength",void 0);f([s.attr],Ar.prototype,"pattern",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Ar.prototype,"size",void 0);f([(0,s.attr)({mode:"boolean"})],Ar.prototype,"spellcheck",void 0);f([s.observable],Ar.prototype,"defaultSlottedNodes",void 0);class Fr{}Pe(Fr,je);Pe(Ar,o,Fr);class Lr extends Fe{}class Mr extends(Ws(Lr)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}class Pr extends Mr{constructor(){super(...arguments);this.hideStep=false;this.step=1;this.isUserInput=false}maxChanged(e,t){var i;this.max=Math.max(t,(i=this.min)!==null&&i!==void 0?i:t);const s=Math.min(this.min,this.max);if(this.min!==undefined&&this.min!==s){this.min=s}this.value=this.getValidValue(this.value)}minChanged(e,t){var i;this.min=Math.min(t,(i=this.max)!==null&&i!==void 0?i:t);const s=Math.max(this.min,this.max);if(this.max!==undefined&&this.max!==s){this.max=s}this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){this.value=this.getValidValue(t);if(t!==this.value){return}if(this.control&&!this.isUserInput){this.control.value=this.value}super.valueChanged(e,this.value);if(e!==undefined&&!this.isUserInput){this.$emit("input");this.$emit("change")}this.isUserInput=false}validate(){super.validate(this.control)}getValidValue(e){var t,i;let s=parseFloat(parseFloat(e).toPrecision(12));if(isNaN(s)){s=""}else{s=Math.min(s,(t=this.max)!==null&&t!==void 0?t:s);s=Math.max(s,(i=this.min)!==null&&i!==void 0?i:s).toString()}return s}stepUp(){const e=parseFloat(this.value);const t=!isNaN(e)?e+this.step:this.min>0?this.min:this.max<0?this.max:!this.min?this.step:0;this.value=t.toString()}stepDown(){const e=parseFloat(this.value);const t=!isNaN(e)?e-this.step:this.min>0?this.min:this.max<0?this.max:!this.min?0-this.step:0;this.value=t.toString()}connectedCallback(){super.connectedCallback();this.proxy.setAttribute("type","number");this.validate();this.control.value=this.value;if(this.autofocus){s.DOM.queueUpdate((()=>{this.focus()}))}}select(){this.control.select();this.$emit("select")}handleTextInput(){this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,"");this.isUserInput=true;this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(e){const t=e.key;switch(t){case ze.I5:this.stepUp();return false;case ze.HX:this.stepDown();return false}return true}handleBlur(){this.control.value=this.value}}f([(0,s.attr)({attribute:"readonly",mode:"boolean"})],Pr.prototype,"readOnly",void 0);f([(0,s.attr)({mode:"boolean"})],Pr.prototype,"autofocus",void 0);f([(0,s.attr)({attribute:"hide-step",mode:"boolean"})],Pr.prototype,"hideStep",void 0);f([s.attr],Pr.prototype,"placeholder",void 0);f([s.attr],Pr.prototype,"list",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Pr.prototype,"maxlength",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Pr.prototype,"minlength",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Pr.prototype,"size",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Pr.prototype,"step",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Pr.prototype,"max",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Pr.prototype,"min",void 0);f([s.observable],Pr.prototype,"defaultSlottedNodes",void 0);Pe(Pr,o,Fr);const Hr=44;const Vr=(e,t)=>(0,s.html)` + +`;class zr extends Fe{constructor(){super(...arguments);this.percentComplete=0}valueChanged(){if(this.$fastController.isConnected){this.updatePercentComplete()}}minChanged(){if(this.$fastController.isConnected){this.updatePercentComplete()}}maxChanged(){if(this.$fastController.isConnected){this.updatePercentComplete()}}connectedCallback(){super.connectedCallback();this.updatePercentComplete()}updatePercentComplete(){const e=typeof this.min==="number"?this.min:0;const t=typeof this.max==="number"?this.max:100;const i=typeof this.value==="number"?this.value:0;const s=t-e;this.percentComplete=s===0?0:Math.fround((i-e)/s*100)}}f([(0,s.attr)({converter:s.nullableNumberConverter})],zr.prototype,"value",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],zr.prototype,"min",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],zr.prototype,"max",void 0);f([(0,s.attr)({mode:"boolean"})],zr.prototype,"paused",void 0);f([s.observable],zr.prototype,"percentComplete",void 0);const Nr=(e,t)=>(0,s.html)` + +`;const Br=(e,t)=>(0,s.html)` + +`;class qr extends Fe{constructor(){super(...arguments);this.orientation=Yn.t.horizontal;this.radioChangeHandler=e=>{const t=e.target;if(t.checked){this.slottedRadioButtons.forEach((e=>{if(e!==t){e.checked=false;if(!this.isInsideFoundationToolbar){e.setAttribute("tabindex","-1")}}}));this.selectedRadio=t;this.value=t.value;t.setAttribute("tabindex","0");this.focusedRadio=t}e.stopPropagation()};this.moveToRadioByIndex=(e,t)=>{const i=e[t];if(!this.isInsideToolbar){i.setAttribute("tabindex","0");if(i.readOnly){this.slottedRadioButtons.forEach((e=>{if(e!==i){e.setAttribute("tabindex","-1")}}))}else{i.checked=true;this.selectedRadio=i}}this.focusedRadio=i;i.focus()};this.moveRightOffGroup=()=>{var e;(e=this.nextElementSibling)===null||e===void 0?void 0:e.focus()};this.moveLeftOffGroup=()=>{var e;(e=this.previousElementSibling)===null||e===void 0?void 0:e.focus()};this.focusOutHandler=e=>{const t=this.slottedRadioButtons;const i=e.target;const s=i!==null?t.indexOf(i):0;const o=this.focusedRadio?t.indexOf(this.focusedRadio):-1;if(o===0&&s===o||o===t.length-1&&o===s){if(!this.selectedRadio){this.focusedRadio=t[0];this.focusedRadio.setAttribute("tabindex","0");t.forEach((e=>{if(e!==this.focusedRadio){e.setAttribute("tabindex","-1")}}))}else{this.focusedRadio=this.selectedRadio;if(!this.isInsideFoundationToolbar){this.selectedRadio.setAttribute("tabindex","0");t.forEach((e=>{if(e!==this.selectedRadio){e.setAttribute("tabindex","-1")}}))}}}return true};this.clickHandler=e=>{const t=e.target;if(t){const e=this.slottedRadioButtons;if(t.checked||e.indexOf(t)===0){t.setAttribute("tabindex","0");this.selectedRadio=t}else{t.setAttribute("tabindex","-1");this.selectedRadio=null}this.focusedRadio=t}e.preventDefault()};this.shouldMoveOffGroupToTheRight=(e,t,i)=>e===t.length&&this.isInsideToolbar&&i===ze.bb;this.shouldMoveOffGroupToTheLeft=(e,t)=>{const i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0;return i<0&&this.isInsideToolbar&&t===ze.kT};this.checkFocusedRadio=()=>{if(this.focusedRadio!==null&&!this.focusedRadio.readOnly&&!this.focusedRadio.checked){this.focusedRadio.checked=true;this.focusedRadio.setAttribute("tabindex","0");this.focusedRadio.focus();this.selectedRadio=this.focusedRadio}};this.moveRight=e=>{const t=this.slottedRadioButtons;let i=0;i=this.focusedRadio?t.indexOf(this.focusedRadio)+1:1;if(this.shouldMoveOffGroupToTheRight(i,t,e.key)){this.moveRightOffGroup();return}else if(i===t.length){i=0}while(i1){if(!t[i].disabled){this.moveToRadioByIndex(t,i);break}else if(this.focusedRadio&&i===t.indexOf(this.focusedRadio)){break}else if(i+1>=t.length){if(this.isInsideToolbar){break}else{i=0}}else{i+=1}}};this.moveLeft=e=>{const t=this.slottedRadioButtons;let i=0;i=this.focusedRadio?t.indexOf(this.focusedRadio)-1:0;i=i<0?t.length-1:i;if(this.shouldMoveOffGroupToTheLeft(t,e.key)){this.moveLeftOffGroup();return}while(i>=0&&t.length>1){if(!t[i].disabled){this.moveToRadioByIndex(t,i);break}else if(this.focusedRadio&&i===t.indexOf(this.focusedRadio)){break}else if(i-1<0){i=t.length-1}else{i-=1}}};this.keydownHandler=e=>{const t=e.key;if(t in ze.Is&&this.isInsideFoundationToolbar){return true}switch(t){case ze.Mm:{this.checkFocusedRadio();break}case ze.bb:case ze.HX:{if(this.direction===Ge.O.ltr){this.moveRight(e)}else{this.moveLeft(e)}break}case ze.kT:case ze.I5:{if(this.direction===Ge.O.ltr){this.moveLeft(e)}else{this.moveRight(e)}break}default:{return true}}}}readOnlyChanged(){if(this.slottedRadioButtons!==undefined){this.slottedRadioButtons.forEach((e=>{if(this.readOnly){e.readOnly=true}else{e.readOnly=false}}))}}disabledChanged(){if(this.slottedRadioButtons!==undefined){this.slottedRadioButtons.forEach((e=>{if(this.disabled){e.disabled=true}else{e.disabled=false}}))}}nameChanged(){if(this.slottedRadioButtons){this.slottedRadioButtons.forEach((e=>{e.setAttribute("name",this.name)}))}}valueChanged(){if(this.slottedRadioButtons){this.slottedRadioButtons.forEach((e=>{if(e.value===this.value){e.checked=true;this.selectedRadio=e}}))}this.$emit("change")}slottedRadioButtonsChanged(e,t){if(this.slottedRadioButtons&&this.slottedRadioButtons.length>0){this.setupRadioButtons()}}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var e;return(e=this.parentToolbar)!==null&&e!==void 0?e:false}get isInsideFoundationToolbar(){var e;return!!((e=this.parentToolbar)===null||e===void 0?void 0:e["$fastController"])}connectedCallback(){super.connectedCallback();this.direction=Is(this);this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach((e=>{e.removeEventListener("change",this.radioChangeHandler)}))}setupRadioButtons(){const e=this.slottedRadioButtons.filter((e=>e.hasAttribute("checked")));const t=e?e.length:0;if(t>1){const i=e[t-1];i.checked=true}let i=false;this.slottedRadioButtons.forEach((e=>{if(this.name!==undefined){e.setAttribute("name",this.name)}if(this.disabled){e.disabled=true}if(this.readOnly){e.readOnly=true}if(this.value&&this.value===e.value){this.selectedRadio=e;this.focusedRadio=e;e.checked=true;e.setAttribute("tabindex","0");i=true}else{if(!this.isInsideFoundationToolbar){e.setAttribute("tabindex","-1")}e.checked=false}e.addEventListener("change",this.radioChangeHandler)}));if(this.value===undefined&&this.slottedRadioButtons.length>0){const e=this.slottedRadioButtons.filter((e=>e.hasAttribute("checked")));const t=e!==null?e.length:0;if(t>0&&!i){const i=e[t-1];i.checked=true;this.focusedRadio=i;i.setAttribute("tabindex","0")}else{this.slottedRadioButtons[0].setAttribute("tabindex","0");this.focusedRadio=this.slottedRadioButtons[0]}}}}f([(0,s.attr)({attribute:"readonly",mode:"boolean"})],qr.prototype,"readOnly",void 0);f([(0,s.attr)({attribute:"disabled",mode:"boolean"})],qr.prototype,"disabled",void 0);f([s.attr],qr.prototype,"name",void 0);f([s.attr],qr.prototype,"value",void 0);f([s.attr],qr.prototype,"orientation",void 0);f([s.observable],qr.prototype,"childItems",void 0);f([s.observable],qr.prototype,"slottedRadioButtons",void 0);const Ur=(e,t)=>(0,s.html)` + +`;class jr extends Fe{}class _r extends(Gs(jr)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}class Kr extends _r{constructor(){super();this.initialValue="on";this.keypressHandler=e=>{switch(e.key){case ze.gG:if(!this.checked&&!this.readOnly){this.checked=true}return}return true};this.proxy.setAttribute("type","radio")}readOnlyChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.readOnly=this.readOnly}}defaultCheckedChanged(){var e;if(this.$fastController.isConnected&&!this.dirtyChecked){if(!this.isInsideRadioGroup()){this.checked=(e=this.defaultChecked)!==null&&e!==void 0?e:false;this.dirtyChecked=false}}}connectedCallback(){var e,t;super.connectedCallback();this.validate();if(((e=this.parentElement)===null||e===void 0?void 0:e.getAttribute("role"))!=="radiogroup"&&this.getAttribute("tabindex")===null){if(!this.disabled){this.setAttribute("tabindex","0")}}if(this.checkedAttribute){if(!this.dirtyChecked){if(!this.isInsideRadioGroup()){this.checked=(t=this.defaultChecked)!==null&&t!==void 0?t:false;this.dirtyChecked=false}}}}isInsideRadioGroup(){const e=this.closest("[role=radiogroup]");return e!==null}clickHandler(e){if(!this.disabled&&!this.readOnly&&!this.checked){this.checked=true}}}f([(0,s.attr)({attribute:"readonly",mode:"boolean"})],Kr.prototype,"readOnly",void 0);f([s.observable],Kr.prototype,"name",void 0);f([s.observable],Kr.prototype,"defaultSlottedNodes",void 0);class Wr extends Fe{constructor(){super(...arguments);this.framesPerSecond=60;this.updatingItems=false;this.speed=600;this.easing="ease-in-out";this.flippersHiddenFromAT=false;this.scrolling=false;this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(e,t){if(this.scrollContainer){const e=this.scrolling==true?"scrollstart":"scrollend";this.$emit(e,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback();this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector();super.disconnectedCallback()}scrollItemsChanged(e,t){if(t&&!this.updatingItems){s.DOM.queueUpdate((()=>this.setStops()))}}disconnectResizeDetector(){if(this.resizeDetector){this.resizeDetector.disconnect();this.resizeDetector=null}}initializeResizeDetector(){this.disconnectResizeDetector();this.resizeDetector=new window.ResizeObserver(this.resized.bind(this));this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=true;const e=this.scrollItems.reduce(((e,t)=>{if(t instanceof HTMLSlotElement){return e.concat(t.assignedElements())}e.push(t);return e}),[]);this.scrollItems=e;this.updatingItems=false}setStops(){this.updateScrollStops();const{scrollContainer:e}=this;const{scrollLeft:t}=e;const{width:i,left:s}=e.getBoundingClientRect();this.width=i;let o=0;let n=this.scrollItems.map(((e,i)=>{const{left:n,width:r}=e.getBoundingClientRect();const a=Math.round(n+t-s);const l=Math.round(a+r);if(this.isRtl){return-l}o=l;return i===0?0:a})).concat(o);n=this.fixScrollMisalign(n);n.sort(((e,t)=>Math.abs(e)-Math.abs(t)));this.scrollStops=n;this.setFlippers()}validateStops(e=true){const t=()=>!!this.scrollStops.find((e=>e>0));if(!t()&&e){this.setStops()}return t()}fixScrollMisalign(e){if(this.isRtl&&e.some((e=>e>0))){e.sort(((e,t)=>t-e));const t=e[0];e=e.map((e=>e-t))}return e}setFlippers(){var e,t;const i=this.scrollContainer.scrollLeft;(e=this.previousFlipperContainer)===null||e===void 0?void 0:e.classList.toggle("disabled",i===0);if(this.scrollStops){const e=Math.abs(this.scrollStops[this.scrollStops.length-1]);(t=this.nextFlipperContainer)===null||t===void 0?void 0:t.classList.toggle("disabled",this.validateStops(false)&&Math.abs(i)+this.width>=e)}}scrollInView(e,t=0,i){var s;if(typeof e!=="number"&&e){e=this.scrollItems.findIndex((t=>t===e||t.contains(e)))}if(e!==undefined){i=i!==null&&i!==void 0?i:t;const{scrollContainer:o,scrollStops:n,scrollItems:r}=this;const{scrollLeft:a}=this.scrollContainer;const{width:l}=o.getBoundingClientRect();const d=n[e];const{width:h}=r[e].getBoundingClientRect();const c=d+h;const u=a+t>d;if(u||a+l-iu?t-e:e-t));const o=(s=e.find((e=>u?e+tc)))!==null&&s!==void 0?s:0;this.scrollToPosition(o)}}}keyupHandler(e){const t=e.key;switch(t){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext();break}}scrollToPrevious(){this.validateStops();const e=this.scrollContainer.scrollLeft;const t=this.scrollStops.findIndex(((t,i)=>t>=e&&(this.isRtl||i===this.scrollStops.length-1||this.scrollStops[i+1]>e)));const i=Math.abs(this.scrollStops[t+1]);let s=this.scrollStops.findIndex((e=>Math.abs(e)+this.width>i));if(s>=t||s===-1){s=t>0?t-1:0}this.scrollToPosition(this.scrollStops[s],e)}scrollToNext(){this.validateStops();const e=this.scrollContainer.scrollLeft;const t=this.scrollStops.findIndex((t=>Math.abs(t)>=Math.abs(e)));const i=this.scrollStops.findIndex((t=>Math.abs(e)+this.width<=Math.abs(t)));let s=t;if(i>t+2){s=i-2}else if(t{if(t&&t.target!==t.currentTarget){return}this.content.style.setProperty("transition-duration","0s");this.content.style.removeProperty("transform");this.scrollContainer.style.setProperty("scroll-behavior","auto");this.scrollContainer.scrollLeft=e;this.setFlippers();this.content.removeEventListener("transitionend",n);this.scrolling=false};if(o===0){n();return}this.content.addEventListener("transitionend",n);const r=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth;let a=this.scrollContainer.scrollLeft-Math.min(e,r);if(this.isRtl){a=this.scrollContainer.scrollLeft+Math.min(Math.abs(e),r)}this.content.style.setProperty("transition-property","transform");this.content.style.setProperty("transition-timing-function",this.easing);this.content.style.setProperty("transform",`translateX(${a}px)`)}resized(){if(this.resizeTimeout){this.resizeTimeout=clearTimeout(this.resizeTimeout)}this.resizeTimeout=setTimeout((()=>{this.width=this.scrollContainer.offsetWidth;this.setFlippers()}),this.frameTime)}scrolled(){if(this.scrollTimeout){this.scrollTimeout=clearTimeout(this.scrollTimeout)}this.scrollTimeout=setTimeout((()=>{this.setFlippers()}),this.frameTime)}}f([(0,s.attr)({converter:s.nullableNumberConverter})],Wr.prototype,"speed",void 0);f([s.attr],Wr.prototype,"duration",void 0);f([s.attr],Wr.prototype,"easing",void 0);f([(0,s.attr)({attribute:"flippers-hidden-from-at",converter:s.booleanConverter})],Wr.prototype,"flippersHiddenFromAT",void 0);f([s.observable],Wr.prototype,"scrolling",void 0);f([s.observable],Wr.prototype,"scrollItems",void 0);f([(0,s.attr)({attribute:"view"})],Wr.prototype,"view",void 0);const Gr=(e,t)=>{var i,o;return(0,s.html)` + +`};function Xr(e,t,i){return e.nodeType!==Node.TEXT_NODE?true:typeof e.nodeValue==="string"&&!!e.nodeValue.trim().length}const Yr=(e,t)=>(0,s.html)` + +`;class Qr extends Fe{}class Zr extends(Ws(Qr)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}class Jr extends Zr{readOnlyChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.readOnly=this.readOnly;this.validate()}}autofocusChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.autofocus=this.autofocus;this.validate()}}placeholderChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.placeholder=this.placeholder}}listChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.setAttribute("list",this.list);this.validate()}}maxlengthChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.maxLength=this.maxlength;this.validate()}}minlengthChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.minLength=this.minlength;this.validate()}}patternChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.pattern=this.pattern;this.validate()}}sizeChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.size=this.size}}spellcheckChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.spellcheck=this.spellcheck}}connectedCallback(){super.connectedCallback();this.validate();if(this.autofocus){s.DOM.queueUpdate((()=>{this.focus()}))}}validate(){super.validate(this.control)}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="";this.control.focus();this.handleChange()}handleChange(){this.$emit("change")}}f([(0,s.attr)({attribute:"readonly",mode:"boolean"})],Jr.prototype,"readOnly",void 0);f([(0,s.attr)({mode:"boolean"})],Jr.prototype,"autofocus",void 0);f([s.attr],Jr.prototype,"placeholder",void 0);f([s.attr],Jr.prototype,"list",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Jr.prototype,"maxlength",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Jr.prototype,"minlength",void 0);f([s.attr],Jr.prototype,"pattern",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Jr.prototype,"size",void 0);f([(0,s.attr)({mode:"boolean"})],Jr.prototype,"spellcheck",void 0);f([s.observable],Jr.prototype,"defaultSlottedNodes",void 0);class ea{}Pe(ea,je);Pe(Jr,o,ea);class ta extends sr{}class ia extends(Ws(ta)){constructor(){super(...arguments);this.proxy=document.createElement("select")}}class sa extends ia{constructor(){super(...arguments);this.open=false;this.forcedPosition=false;this.listboxId=Io("listbox-");this.maxHeight=0}openChanged(e,t){if(!this.collapsible){return}if(this.open){this.ariaControls=this.listboxId;this.ariaExpanded="true";this.setPositioning();this.focusAndScrollOptionIntoView();this.indexWhenOpened=this.selectedIndex;s.DOM.queueUpdate((()=>this.focus()));return}this.ariaControls="";this.ariaExpanded="false"}get collapsible(){return!(this.multiple||typeof this.size==="number")}get value(){s.Observable.track(this,"value");return this._value}set value(e){var t,i,o,n,r,a,l;const d=`${this._value}`;if((t=this._options)===null||t===void 0?void 0:t.length){const t=this._options.findIndex((t=>t.value===e));const s=(o=(i=this._options[this.selectedIndex])===null||i===void 0?void 0:i.value)!==null&&o!==void 0?o:null;const d=(r=(n=this._options[t])===null||n===void 0?void 0:n.value)!==null&&r!==void 0?r:null;if(t===-1||s!==d){e="";this.selectedIndex=t}e=(l=(a=this.firstSelectedOption)===null||a===void 0?void 0:a.value)!==null&&l!==void 0?l:e}if(d!==e){this._value=e;super.valueChanged(d,e);s.Observable.notify(this,"value");this.updateDisplayValue()}}updateValue(e){var t,i;if(this.$fastController.isConnected){this.value=(i=(t=this.firstSelectedOption)===null||t===void 0?void 0:t.value)!==null&&i!==void 0?i:""}if(e){this.$emit("input");this.$emit("change",this,{bubbles:true,composed:undefined})}}selectedIndexChanged(e,t){super.selectedIndexChanged(e,t);this.updateValue()}positionChanged(e,t){this.positionAttribute=t;this.setPositioning()}setPositioning(){const e=this.getBoundingClientRect();const t=window.innerHeight;const i=t-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>i?Go.above:Go.below;this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position;this.maxHeight=this.position===Go.above?~~e.top:~~i}get displayValue(){var e,t;s.Observable.track(this,"displayValue");return(t=(e=this.firstSelectedOption)===null||e===void 0?void 0:e.text)!==null&&t!==void 0?t:""}disabledChanged(e,t){if(super.disabledChanged){super.disabledChanged(e,t)}this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions();super.setDefaultSelectedOption();if(this.selectedIndex===-1){this.selectedIndex=0}}clickHandler(e){if(this.disabled){return}if(this.open){const t=e.target.closest(`option,[role=option]`);if(t&&t.disabled){return}}super.clickHandler(e);this.open=this.collapsible&&!this.open;if(!this.open&&this.indexWhenOpened!==this.selectedIndex){this.updateValue(true)}return true}focusoutHandler(e){var t;super.focusoutHandler(e);if(!this.open){return true}const i=e.relatedTarget;if(this.isSameNode(i)){this.focus();return}if(!((t=this.options)===null||t===void 0?void 0:t.includes(i))){this.open=false;if(this.indexWhenOpened!==this.selectedIndex){this.updateValue(true)}}}handleChange(e,t){super.handleChange(e,t);if(t==="value"){this.updateValue()}}slottedOptionsChanged(e,t){this.options.forEach((e=>{const t=s.Observable.getNotifier(e);t.unsubscribe(this,"value")}));super.slottedOptionsChanged(e,t);this.options.forEach((e=>{const t=s.Observable.getNotifier(e);t.subscribe(this,"value")}));this.setProxyOptions();this.updateValue()}mousedownHandler(e){var t;if(e.offsetX>=0&&e.offsetX<=((t=this.listbox)===null||t===void 0?void 0:t.scrollWidth)){return super.mousedownHandler(e)}return this.collapsible}multipleChanged(e,t){super.multipleChanged(e,t);if(this.proxy){this.proxy.multiple=t}}selectedOptionsChanged(e,t){var i;super.selectedOptionsChanged(e,t);(i=this.options)===null||i===void 0?void 0:i.forEach(((e,t)=>{var i;const s=(i=this.proxy)===null||i===void 0?void 0:i.options.item(t);if(s){s.selected=e.selected}}))}setDefaultSelectedOption(){var e;const t=(e=this.options)!==null&&e!==void 0?e:Array.from(this.children).filter(Ko.slottedOptionFilter);const i=t===null||t===void 0?void 0:t.findIndex((e=>e.hasAttribute("selected")||e.selected||e.value===this.value));if(i!==-1){this.selectedIndex=i;return}this.selectedIndex=0}setProxyOptions(){if(this.proxy instanceof HTMLSelectElement&&this.options){this.proxy.options.length=0;this.options.forEach((e=>{const t=e.proxy||(e instanceof HTMLOptionElement?e.cloneNode():null);if(t){this.proxy.options.add(t)}}))}}keydownHandler(e){super.keydownHandler(e);const t=e.key||e.key.charCodeAt(0);switch(t){case ze.gG:{e.preventDefault();if(this.collapsible&&this.typeAheadExpired){this.open=!this.open}break}case ze.Tg:case ze.FM:{e.preventDefault();break}case ze.Mm:{e.preventDefault();this.open=!this.open;break}case ze.F9:{if(this.collapsible&&this.open){e.preventDefault();this.open=false}break}case ze.J9:{if(this.collapsible&&this.open){e.preventDefault();this.open=false}return true}}if(!this.open&&this.indexWhenOpened!==this.selectedIndex){this.updateValue(true);this.indexWhenOpened=this.selectedIndex}return!(t===ze.HX||t===ze.I5)}connectedCallback(){super.connectedCallback();this.forcedPosition=!!this.positionAttribute;this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue);super.disconnectedCallback()}sizeChanged(e,t){super.sizeChanged(e,t);if(this.proxy){this.proxy.size=t}}updateDisplayValue(){if(this.collapsible){s.Observable.notify(this,"displayValue")}}}f([(0,s.attr)({attribute:"open",mode:"boolean"})],sa.prototype,"open",void 0);f([s.volatile],sa.prototype,"collapsible",null);f([s.observable],sa.prototype,"control",void 0);f([(0,s.attr)({attribute:"position"})],sa.prototype,"positionAttribute",void 0);f([s.observable],sa.prototype,"position",void 0);f([s.observable],sa.prototype,"maxHeight",void 0);class oa{}f([s.observable],oa.prototype,"ariaControls",void 0);Pe(oa,Wo);Pe(sa,o,oa);const na=(e,t)=>(0,s.html)` + +`;const ra=(e,t)=>(0,s.html)` + +`;class aa extends Fe{constructor(){super(...arguments);this.shape="rect"}}f([s.attr],aa.prototype,"fill",void 0);f([s.attr],aa.prototype,"shape",void 0);f([s.attr],aa.prototype,"pattern",void 0);f([(0,s.attr)({mode:"boolean"})],aa.prototype,"shimmer",void 0);const la=(e,t)=>(0,s.html)` + +`;function da(e,t,i,s){let o=(0,Ne.AB)(0,1,(e-t)/(i-t));if(s===Ge.O.rtl){o=1-o}return o}const ha={min:0,max:0,direction:Ge.O.ltr,orientation:Yn.t.horizontal,disabled:false};class ca extends Fe{constructor(){super(...arguments);this.hideMark=false;this.sliderDirection=Ge.O.ltr;this.getSliderConfiguration=()=>{if(!this.isSliderConfig(this.parentNode)){this.sliderDirection=ha.direction||Ge.O.ltr;this.sliderOrientation=ha.orientation||Yn.t.horizontal;this.sliderMaxPosition=ha.max;this.sliderMinPosition=ha.min}else{const e=this.parentNode;const{min:t,max:i,direction:s,orientation:o,disabled:n}=e;if(n!==undefined){this.disabled=n}this.sliderDirection=s||Ge.O.ltr;this.sliderOrientation=o||Yn.t.horizontal;this.sliderMaxPosition=i;this.sliderMinPosition=t}};this.positionAsStyle=()=>{const e=this.sliderDirection?this.sliderDirection:Ge.O.ltr;const t=da(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition));let i=Math.round((1-t)*100);let s=Math.round(t*100);if(Number.isNaN(s)&&Number.isNaN(i)){i=50;s=50}if(this.sliderOrientation===Yn.t.horizontal){return e===Ge.O.rtl?`right: ${s}%; left: ${i}%;`:`left: ${s}%; right: ${i}%;`}else{return`top: ${s}%; bottom: ${i}%;`}}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){void 0}connectedCallback(){super.connectedCallback();this.getSliderConfiguration();this.positionStyle=this.positionAsStyle();this.notifier=s.Observable.getNotifier(this.parentNode);this.notifier.subscribe(this,"orientation");this.notifier.subscribe(this,"direction");this.notifier.subscribe(this,"max");this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback();this.notifier.unsubscribe(this,"orientation");this.notifier.unsubscribe(this,"direction");this.notifier.unsubscribe(this,"max");this.notifier.unsubscribe(this,"min")}handleChange(e,t){switch(t){case"direction":this.sliderDirection=e.direction;break;case"orientation":this.sliderOrientation=e.orientation;break;case"max":this.sliderMaxPosition=e.max;break;case"min":this.sliderMinPosition=e.min;break;default:break}this.positionStyle=this.positionAsStyle()}isSliderConfig(e){return e.max!==undefined&&e.min!==undefined}}f([s.observable],ca.prototype,"positionStyle",void 0);f([s.attr],ca.prototype,"position",void 0);f([(0,s.attr)({attribute:"hide-mark",mode:"boolean"})],ca.prototype,"hideMark",void 0);f([(0,s.attr)({attribute:"disabled",mode:"boolean"})],ca.prototype,"disabled",void 0);f([s.observable],ca.prototype,"sliderOrientation",void 0);f([s.observable],ca.prototype,"sliderMinPosition",void 0);f([s.observable],ca.prototype,"sliderMaxPosition",void 0);f([s.observable],ca.prototype,"sliderDirection",void 0);const ua=(e,t)=>(0,s.html)` + +`;class pa extends Fe{}class fa extends(Ws(pa)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}const ma={singleValue:"single-value"};class va extends fa{constructor(){super(...arguments);this.direction=Ge.O.ltr;this.isDragging=false;this.trackWidth=0;this.trackMinWidth=0;this.trackHeight=0;this.trackLeft=0;this.trackMinHeight=0;this.valueTextFormatter=()=>null;this.min=0;this.max=10;this.step=1;this.orientation=Yn.t.horizontal;this.mode=ma.singleValue;this.keypressHandler=e=>{if(this.readOnly){return}if(e.key===ze.Tg){e.preventDefault();this.value=`${this.min}`}else if(e.key===ze.FM){e.preventDefault();this.value=`${this.max}`}else if(!e.shiftKey){switch(e.key){case ze.bb:case ze.I5:e.preventDefault();this.increment();break;case ze.kT:case ze.HX:e.preventDefault();this.decrement();break}}};this.setupTrackConstraints=()=>{const e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth;this.trackMinWidth=this.track.clientLeft;this.trackHeight=e.bottom;this.trackMinHeight=e.top;this.trackLeft=this.getBoundingClientRect().left;if(this.trackWidth===0){this.trackWidth=1}};this.setupListeners=(e=false)=>{const t=`${e?"remove":"add"}EventListener`;this[t]("keydown",this.keypressHandler);this[t]("mousedown",this.handleMouseDown);this.thumb[t]("mousedown",this.handleThumbMouseDown,{passive:true});this.thumb[t]("touchstart",this.handleThumbMouseDown,{passive:true});if(e){this.handleMouseDown(null);this.handleThumbMouseDown(null)}};this.initialValue="";this.handleThumbMouseDown=e=>{if(e){if(this.readOnly||this.disabled||e.defaultPrevented){return}e.target.focus()}const t=`${e!==null?"add":"remove"}EventListener`;window[t]("mouseup",this.handleWindowMouseUp);window[t]("mousemove",this.handleMouseMove,{passive:true});window[t]("touchmove",this.handleMouseMove,{passive:true});window[t]("touchend",this.handleWindowMouseUp);this.isDragging=e!==null};this.handleMouseMove=e=>{if(this.readOnly||this.disabled||e.defaultPrevented){return}const t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e;const i=this.orientation===Yn.t.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(i)}`};this.calculateNewValue=e=>{const t=da(e,this.orientation===Yn.t.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===Yn.t.horizontal?this.trackWidth:this.trackHeight,this.direction);const i=(this.max-this.min)*t+this.min;return this.convertToConstrainedValue(i)};this.handleWindowMouseUp=e=>{this.stopDragging()};this.stopDragging=()=>{this.isDragging=false;this.handleMouseDown(null);this.handleThumbMouseDown(null)};this.handleMouseDown=e=>{const t=`${e!==null?"add":"remove"}EventListener`;if(e===null||!this.disabled&&!this.readOnly){window[t]("mouseup",this.handleWindowMouseUp);window.document[t]("mouseleave",this.handleWindowMouseUp);window[t]("mousemove",this.handleMouseMove);if(e){e.preventDefault();this.setupTrackConstraints();e.target.focus();const t=this.orientation===Yn.t.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(t)}`}}};this.convertToConstrainedValue=e=>{if(isNaN(e)){e=this.min}let t=e-this.min;const i=Math.round(t/this.step);const s=t-i*(this.stepMultiplier*this.step)/this.stepMultiplier;t=s>=Number(this.step)/2?t-s+Number(this.step):t-s;return t+this.min}}readOnlyChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.readOnly=this.readOnly}}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){super.valueChanged(e,t);if(this.$fastController.isConnected){this.setThumbPositionForOrientation(this.direction)}this.$emit("change")}minChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.min=`${this.min}`}this.validate()}maxChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.max=`${this.max}`}this.validate()}stepChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.step=`${this.step}`}this.updateStepMultiplier();this.validate()}orientationChanged(){if(this.$fastController.isConnected){this.setThumbPositionForOrientation(this.direction)}}connectedCallback(){super.connectedCallback();this.proxy.setAttribute("type","range");this.direction=Is(this);this.updateStepMultiplier();this.setupTrackConstraints();this.setupListeners();this.setupDefaultValue();this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(true)}increment(){const e=this.direction!==Ge.O.rtl&&this.orientation!==Yn.t.vertical?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step);const t=this.convertToConstrainedValue(e);const i=tNumber(this.min)?`${t}`:`${this.min}`;this.value=i}setThumbPositionForOrientation(e){const t=da(Number(this.value),Number(this.min),Number(this.max),e);const i=(1-t)*100;if(this.orientation===Yn.t.horizontal){this.position=this.isDragging?`right: ${i}%; transition: none;`:`right: ${i}%; transition: all 0.2s ease;`}else{this.position=this.isDragging?`bottom: ${i}%; transition: none;`:`bottom: ${i}%; transition: all 0.2s ease;`}}updateStepMultiplier(){const e=this.step+"";const t=!!(this.step%1)?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.max+this.min)/2)}`}setupDefaultValue(){if(typeof this.value==="string"){if(this.value.length===0){this.initialValue=this.midpoint}else{const e=parseFloat(this.value);if(!Number.isNaN(e)&&(ethis.max)){this.value=this.midpoint}}}}}f([(0,s.attr)({attribute:"readonly",mode:"boolean"})],va.prototype,"readOnly",void 0);f([s.observable],va.prototype,"direction",void 0);f([s.observable],va.prototype,"isDragging",void 0);f([s.observable],va.prototype,"position",void 0);f([s.observable],va.prototype,"trackWidth",void 0);f([s.observable],va.prototype,"trackMinWidth",void 0);f([s.observable],va.prototype,"trackHeight",void 0);f([s.observable],va.prototype,"trackLeft",void 0);f([s.observable],va.prototype,"trackMinHeight",void 0);f([s.observable],va.prototype,"valueTextFormatter",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],va.prototype,"min",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],va.prototype,"max",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],va.prototype,"step",void 0);f([s.attr],va.prototype,"orientation",void 0);f([s.attr],va.prototype,"mode",void 0);const ba=(e,t)=>(0,s.html)` + +`;class ga extends Fe{}class ya extends(Gs(ga)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}class Ca extends ya{constructor(){super();this.initialValue="on";this.keypressHandler=e=>{if(this.readOnly){return}switch(e.key){case ze.Mm:case ze.gG:this.checked=!this.checked;break}};this.clickHandler=e=>{if(!this.disabled&&!this.readOnly){this.checked=!this.checked}};this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.readOnly=this.readOnly}this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedChanged(e,t){super.checkedChanged(e,t);this.checked?this.classList.add("checked"):this.classList.remove("checked")}}f([(0,s.attr)({attribute:"readonly",mode:"boolean"})],Ca.prototype,"readOnly",void 0);f([s.observable],Ca.prototype,"defaultSlottedNodes",void 0);const xa=(e,t)=>(0,s.html)` + +`;class wa extends Fe{}const $a=(e,t)=>(0,s.html)` + +`;class Ia extends Fe{}f([(0,s.attr)({mode:"boolean"})],Ia.prototype,"disabled",void 0);const ka=(e,t)=>(0,s.html)` + +`;const Oa={vertical:"vertical",horizontal:"horizontal"};class Ta extends Fe{constructor(){super(...arguments);this.orientation=Oa.horizontal;this.activeindicator=true;this.showActiveIndicator=true;this.prevActiveTabIndex=0;this.activeTabIndex=0;this.ticking=false;this.change=()=>{this.$emit("change",this.activetab)};this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true";this.isHiddenElement=e=>e.hasAttribute("hidden");this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e);this.setTabs=()=>{const e="gridColumn";const t="gridRow";const i=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex();this.showActiveIndicator=false;this.tabs.forEach(((s,o)=>{if(s.slot==="tab"){const e=this.activeTabIndex===o&&this.isFocusableElement(s);if(this.activeindicator&&this.isFocusableElement(s)){this.showActiveIndicator=true}const t=this.tabIds[o];const i=this.tabpanelIds[o];s.setAttribute("id",t);s.setAttribute("aria-selected",e?"true":"false");s.setAttribute("aria-controls",i);s.addEventListener("click",this.handleTabClick);s.addEventListener("keydown",this.handleTabKeyDown);s.setAttribute("tabindex",e?"0":"-1");if(e){this.activetab=s;this.activeid=t}}s.style[e]="";s.style[t]="";s.style[i]=`${o+1}`;!this.isHorizontal()?s.classList.add("vertical"):s.classList.remove("vertical")}))};this.setTabPanels=()=>{this.tabpanels.forEach(((e,t)=>{const i=this.tabIds[t];const s=this.tabpanelIds[t];e.setAttribute("id",s);e.setAttribute("aria-labelledby",i);this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")}))};this.handleTabClick=e=>{const t=e.currentTarget;if(t.nodeType===1&&this.isFocusableElement(t)){this.prevActiveTabIndex=this.activeTabIndex;this.activeTabIndex=this.tabs.indexOf(t);this.setComponent()}};this.handleTabKeyDown=e=>{if(this.isHorizontal()){switch(e.key){case ze.kT:e.preventDefault();this.adjustBackward(e);break;case ze.bb:e.preventDefault();this.adjustForward(e);break}}else{switch(e.key){case ze.I5:e.preventDefault();this.adjustBackward(e);break;case ze.HX:e.preventDefault();this.adjustForward(e);break}}switch(e.key){case ze.Tg:e.preventDefault();this.adjust(-this.activeTabIndex);break;case ze.FM:e.preventDefault();this.adjust(this.tabs.length-this.activeTabIndex-1);break}};this.adjustForward=e=>{const t=this.tabs;let i=0;i=this.activetab?t.indexOf(this.activetab)+1:1;if(i===t.length){i=0}while(i1){if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else if(this.activetab&&i===t.indexOf(this.activetab)){break}else if(i+1>=t.length){i=0}else{i+=1}}};this.adjustBackward=e=>{const t=this.tabs;let i=0;i=this.activetab?t.indexOf(this.activetab)-1:0;i=i<0?t.length-1:i;while(i>=0&&t.length>1){if(this.isFocusableElement(t[i])){this.moveToTabByIndex(t,i);break}else if(i-1<0){i=t.length-1}else{i-=1}}};this.moveToTabByIndex=(e,t)=>{const i=e[t];this.activetab=i;this.prevActiveTabIndex=this.activeTabIndex;this.activeTabIndex=t;i.focus();this.setComponent()}}orientationChanged(){if(this.$fastController.isConnected){this.setTabs();this.setTabPanels();this.handleActiveIndicatorPosition()}}activeidChanged(e,t){if(this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length){this.prevActiveTabIndex=this.tabs.findIndex((t=>t.id===e));this.setTabs();this.setTabPanels();this.handleActiveIndicatorPosition()}}tabsChanged(){if(this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length){this.tabIds=this.getTabIds();this.tabpanelIds=this.getTabPanelIds();this.setTabs();this.setTabPanels();this.handleActiveIndicatorPosition()}}tabpanelsChanged(){if(this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length){this.tabIds=this.getTabIds();this.tabpanelIds=this.getTabPanelIds();this.setTabs();this.setTabPanels();this.handleActiveIndicatorPosition()}}getActiveIndex(){const e=this.activeid;if(e!==undefined){return this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid)}else{return 0}}getTabIds(){return this.tabs.map((e=>{var t;return(t=e.getAttribute("id"))!==null&&t!==void 0?t:`tab-${Io()}`}))}getTabPanelIds(){return this.tabpanels.map((e=>{var t;return(t=e.getAttribute("id"))!==null&&t!==void 0?t:`panel-${Io()}`}))}setComponent(){if(this.activeTabIndex!==this.prevActiveTabIndex){this.activeid=this.tabIds[this.activeTabIndex];this.focusTab();this.change()}}isHorizontal(){return this.orientation===Oa.horizontal}handleActiveIndicatorPosition(){if(this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex){if(this.ticking){this.ticking=false}else{this.ticking=true;this.animateActiveIndicator()}}}animateActiveIndicator(){this.ticking=true;const e=this.isHorizontal()?"gridColumn":"gridRow";const t=this.isHorizontal()?"translateX":"translateY";const i=this.isHorizontal()?"offsetLeft":"offsetTop";const s=this.activeIndicatorRef[i];this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`;const o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[e]=`${this.prevActiveTabIndex+1}`;const n=o-s;this.activeIndicatorRef.style.transform=`${t}(${n}px)`;this.activeIndicatorRef.classList.add("activeIndicatorTransition");this.activeIndicatorRef.addEventListener("transitionend",(()=>{this.ticking=false;this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`;this.activeIndicatorRef.style.transform=`${t}(0px)`;this.activeIndicatorRef.classList.remove("activeIndicatorTransition")}))}adjust(e){const t=this.tabs.filter((e=>this.isFocusableElement(e)));const i=t.indexOf(this.activetab);const s=(0,Ne.AB)(0,t.length-1,i+e);const o=this.tabs.indexOf(t[s]);if(o>-1){this.moveToTabByIndex(this.tabs,o)}}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback();this.tabIds=this.getTabIds();this.tabpanelIds=this.getTabPanelIds();this.activeTabIndex=this.getActiveIndex()}}f([s.attr],Ta.prototype,"orientation",void 0);f([s.attr],Ta.prototype,"activeid",void 0);f([s.observable],Ta.prototype,"tabs",void 0);f([s.observable],Ta.prototype,"tabpanels",void 0);f([(0,s.attr)({mode:"boolean"})],Ta.prototype,"activeindicator",void 0);f([s.observable],Ta.prototype,"activeIndicatorRef",void 0);f([s.observable],Ta.prototype,"showActiveIndicator",void 0);Pe(Ta,o);const Ea={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"};const Ra=(e,t)=>(0,s.html)` + +`;class Da extends Fe{}class Sa extends(Ws(Da)){constructor(){super(...arguments);this.proxy=document.createElement("textarea")}}class Aa extends Sa{constructor(){super(...arguments);this.resize=Ea.none;this.cols=20;this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){if(this.proxy instanceof HTMLTextAreaElement){this.proxy.readOnly=this.readOnly}}autofocusChanged(){if(this.proxy instanceof HTMLTextAreaElement){this.proxy.autofocus=this.autofocus}}listChanged(){if(this.proxy instanceof HTMLTextAreaElement){this.proxy.setAttribute("list",this.list)}}maxlengthChanged(){if(this.proxy instanceof HTMLTextAreaElement){this.proxy.maxLength=this.maxlength}}minlengthChanged(){if(this.proxy instanceof HTMLTextAreaElement){this.proxy.minLength=this.minlength}}spellcheckChanged(){if(this.proxy instanceof HTMLTextAreaElement){this.proxy.spellcheck=this.spellcheck}}select(){this.control.select();this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}}f([(0,s.attr)({mode:"boolean"})],Aa.prototype,"readOnly",void 0);f([s.attr],Aa.prototype,"resize",void 0);f([(0,s.attr)({mode:"boolean"})],Aa.prototype,"autofocus",void 0);f([(0,s.attr)({attribute:"form"})],Aa.prototype,"formId",void 0);f([s.attr],Aa.prototype,"list",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Aa.prototype,"maxlength",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter})],Aa.prototype,"minlength",void 0);f([s.attr],Aa.prototype,"name",void 0);f([s.attr],Aa.prototype,"placeholder",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter,mode:"fromView"})],Aa.prototype,"cols",void 0);f([(0,s.attr)({converter:s.nullableNumberConverter,mode:"fromView"})],Aa.prototype,"rows",void 0);f([(0,s.attr)({mode:"boolean"})],Aa.prototype,"spellcheck",void 0);f([s.observable],Aa.prototype,"defaultSlottedNodes",void 0);Pe(Aa,Fr);const Fa=(e,t)=>(0,s.html)` + +`;const La=(e,t)=>(0,s.html)` + +`;const Ma=Object.freeze({[ze.Is.ArrowUp]:{[Yn.t.vertical]:-1},[ze.Is.ArrowDown]:{[Yn.t.vertical]:1},[ze.Is.ArrowLeft]:{[Yn.t.horizontal]:{[Ge.O.ltr]:-1,[Ge.O.rtl]:1}},[ze.Is.ArrowRight]:{[Yn.t.horizontal]:{[Ge.O.ltr]:1,[Ge.O.rtl]:-1}}});class Pa extends Fe{constructor(){super(...arguments);this._activeIndex=0;this.direction=Ge.O.ltr;this.orientation=Yn.t.horizontal}get activeIndex(){s.Observable.track(this,"activeIndex");return this._activeIndex}set activeIndex(e){if(this.$fastController.isConnected){this._activeIndex=(0,Ne.AB)(0,this.focusableElements.length-1,e);s.Observable.notify(this,"activeIndex")}}slottedItemsChanged(){if(this.$fastController.isConnected){this.reduceFocusableElements()}}mouseDownHandler(e){var t;const i=(t=this.focusableElements)===null||t===void 0?void 0:t.findIndex((t=>t.contains(e.target)));if(i>-1&&this.activeIndex!==i){this.setFocusedElement(i)}return true}childItemsChanged(e,t){if(this.$fastController.isConnected){this.reduceFocusableElements()}}connectedCallback(){super.connectedCallback();this.direction=Is(this)}focusinHandler(e){const t=e.relatedTarget;if(!t||this.contains(t)){return}this.setFocusedElement()}getDirectionalIncrementer(e){var t,i,s,o,n;return(n=(s=(i=(t=Ma[e])===null||t===void 0?void 0:t[this.orientation])===null||i===void 0?void 0:i[this.direction])!==null&&s!==void 0?s:(o=Ma[e])===null||o===void 0?void 0:o[this.orientation])!==null&&n!==void 0?n:0}keydownHandler(e){const t=e.key;if(!(t in ze.Is)||e.defaultPrevented||e.shiftKey){return true}const i=this.getDirectionalIncrementer(t);if(!i){return!e.target.closest("[role=radiogroup]")}const s=this.activeIndex+i;if(this.focusableElements[s]){e.preventDefault()}this.setFocusedElement(s);return true}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){var e;const t=(e=this.focusableElements)===null||e===void 0?void 0:e[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(Pa.reduceFocusableItems,[]);const i=this.focusableElements.indexOf(t);this.activeIndex=Math.max(0,i);this.setFocusableElements()}setFocusedElement(e=this.activeIndex){var t;this.activeIndex=e;this.setFocusableElements();(t=this.focusableElements[this.activeIndex])===null||t===void 0?void 0:t.focus()}static reduceFocusableItems(e,t){var i,s,o,n;const r=t.getAttribute("role")==="radio";const a=(s=(i=t.$fastController)===null||i===void 0?void 0:i.definition.shadowOptions)===null||s===void 0?void 0:s.delegatesFocus;const l=Array.from((n=(o=t.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("*"))!==null&&n!==void 0?n:[]).some((e=>(0,Bn.tp)(e)));if(!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")&&((0,Bn.tp)(t)||r||a||l)){e.push(t);return e}if(t.childElementCount){return e.concat(Array.from(t.children).reduce(Pa.reduceFocusableItems,[]))}return e}setFocusableElements(){if(this.$fastController.isConnected&&this.focusableElements.length>0){this.focusableElements.forEach(((e,t)=>{e.tabIndex=this.activeIndex===t?0:-1}))}}}f([s.observable],Pa.prototype,"direction",void 0);f([s.attr],Pa.prototype,"orientation",void 0);f([s.observable],Pa.prototype,"slottedItems",void 0);f([s.observable],Pa.prototype,"slottedLabel",void 0);f([s.observable],Pa.prototype,"childItems",void 0);class Ha{}f([(0,s.attr)({attribute:"aria-labelledby"})],Ha.prototype,"ariaLabelledby",void 0);f([(0,s.attr)({attribute:"aria-label"})],Ha.prototype,"ariaLabel",void 0);Pe(Ha,je);Pe(Pa,o,Ha);const Va=(e,t)=>(0,s.html)` + ${(0,s.when)((e=>e.tooltipVisible),(0,s.html)` + <${e.tagFor(Os)} + fixed-placement="true" + auto-update-mode="${e=>e.autoUpdateMode}" + vertical-positioning-mode="${e=>e.verticalPositioningMode}" + vertical-default-position="${e=>e.verticalDefaultPosition}" + vertical-inset="${e=>e.verticalInset}" + vertical-scaling="${e=>e.verticalScaling}" + horizontal-positioning-mode="${e=>e.horizontalPositioningMode}" + horizontal-default-position="${e=>e.horizontalDefaultPosition}" + horizontal-scaling="${e=>e.horizontalScaling}" + horizontal-inset="${e=>e.horizontalInset}" + vertical-viewport-lock="${e=>e.horizontalViewportLock}" + horizontal-viewport-lock="${e=>e.verticalViewportLock}" + dir="${e=>e.currentDirection}" + ${(0,s.ref)("region")} + > + + + `)} + `;const za={top:"top",right:"right",bottom:"bottom",left:"left",start:"start",end:"end",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",topStart:"top-start",topEnd:"top-end",bottomStart:"bottom-start",bottomEnd:"bottom-end"};class Na extends Fe{constructor(){super(...arguments);this.anchor="";this.delay=300;this.autoUpdateMode="anchor";this.anchorElement=null;this.viewportElement=null;this.verticalPositioningMode="dynamic";this.horizontalPositioningMode="dynamic";this.horizontalInset="false";this.verticalInset="false";this.horizontalScaling="content";this.verticalScaling="content";this.verticalDefaultPosition=undefined;this.horizontalDefaultPosition=undefined;this.tooltipVisible=false;this.currentDirection=Ge.O.ltr;this.showDelayTimer=null;this.hideDelayTimer=null;this.isAnchorHoveredFocused=false;this.isRegionHovered=false;this.handlePositionChange=e=>{this.classList.toggle("top",this.region.verticalPosition==="start");this.classList.toggle("bottom",this.region.verticalPosition==="end");this.classList.toggle("inset-top",this.region.verticalPosition==="insetStart");this.classList.toggle("inset-bottom",this.region.verticalPosition==="insetEnd");this.classList.toggle("center-vertical",this.region.verticalPosition==="center");this.classList.toggle("left",this.region.horizontalPosition==="start");this.classList.toggle("right",this.region.horizontalPosition==="end");this.classList.toggle("inset-left",this.region.horizontalPosition==="insetStart");this.classList.toggle("inset-right",this.region.horizontalPosition==="insetEnd");this.classList.toggle("center-horizontal",this.region.horizontalPosition==="center")};this.handleRegionMouseOver=e=>{this.isRegionHovered=true};this.handleRegionMouseOut=e=>{this.isRegionHovered=false;this.startHideDelayTimer()};this.handleAnchorMouseOver=e=>{if(this.tooltipVisible){this.isAnchorHoveredFocused=true;return}this.startShowDelayTimer()};this.handleAnchorMouseOut=e=>{this.isAnchorHoveredFocused=false;this.clearShowDelayTimer();this.startHideDelayTimer()};this.handleAnchorFocusIn=e=>{this.startShowDelayTimer()};this.handleAnchorFocusOut=e=>{this.isAnchorHoveredFocused=false;this.clearShowDelayTimer();this.startHideDelayTimer()};this.startHideDelayTimer=()=>{this.clearHideDelayTimer();if(!this.tooltipVisible){return}this.hideDelayTimer=window.setTimeout((()=>{this.updateTooltipVisibility()}),60)};this.clearHideDelayTimer=()=>{if(this.hideDelayTimer!==null){clearTimeout(this.hideDelayTimer);this.hideDelayTimer=null}};this.startShowDelayTimer=()=>{if(this.isAnchorHoveredFocused){return}if(this.delay>1){if(this.showDelayTimer===null)this.showDelayTimer=window.setTimeout((()=>{this.startHover()}),this.delay);return}this.startHover()};this.startHover=()=>{this.isAnchorHoveredFocused=true;this.updateTooltipVisibility()};this.clearShowDelayTimer=()=>{if(this.showDelayTimer!==null){clearTimeout(this.showDelayTimer);this.showDelayTimer=null}};this.getAnchor=()=>{const e=this.getRootNode();if(e instanceof ShadowRoot){return e.getElementById(this.anchor)}return document.getElementById(this.anchor)};this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&this.tooltipVisible){switch(e.key){case ze.F9:this.isAnchorHoveredFocused=false;this.updateTooltipVisibility();this.$emit("dismiss");break}}};this.updateTooltipVisibility=()=>{if(this.visible===false){this.hideTooltip()}else if(this.visible===true){this.showTooltip();return}else{if(this.isAnchorHoveredFocused||this.isRegionHovered){this.showTooltip();return}this.hideTooltip()}};this.showTooltip=()=>{if(this.tooltipVisible){return}this.currentDirection=Is(this);this.tooltipVisible=true;document.addEventListener("keydown",this.handleDocumentKeydown);s.DOM.queueUpdate(this.setRegionProps)};this.hideTooltip=()=>{if(!this.tooltipVisible){return}this.clearHideDelayTimer();if(this.region!==null&&this.region!==undefined){this.region.removeEventListener("positionchange",this.handlePositionChange);this.region.viewportElement=null;this.region.anchorElement=null;this.region.removeEventListener("mouseover",this.handleRegionMouseOver);this.region.removeEventListener("mouseout",this.handleRegionMouseOut)}document.removeEventListener("keydown",this.handleDocumentKeydown);this.tooltipVisible=false};this.setRegionProps=()=>{if(!this.tooltipVisible){return}this.region.viewportElement=this.viewportElement;this.region.anchorElement=this.anchorElement;this.region.addEventListener("positionchange",this.handlePositionChange);this.region.addEventListener("mouseover",this.handleRegionMouseOver,{passive:true});this.region.addEventListener("mouseout",this.handleRegionMouseOut,{passive:true})}}visibleChanged(){if(this.$fastController.isConnected){this.updateTooltipVisibility();this.updateLayout()}}anchorChanged(){if(this.$fastController.isConnected){this.anchorElement=this.getAnchor()}}positionChanged(){if(this.$fastController.isConnected){this.updateLayout()}}anchorElementChanged(e){if(this.$fastController.isConnected){if(e!==null&&e!==undefined){e.removeEventListener("mouseover",this.handleAnchorMouseOver);e.removeEventListener("mouseout",this.handleAnchorMouseOut);e.removeEventListener("focusin",this.handleAnchorFocusIn);e.removeEventListener("focusout",this.handleAnchorFocusOut)}if(this.anchorElement!==null&&this.anchorElement!==undefined){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:true});this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:true});this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:true});this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:true});const e=this.anchorElement.id;if(this.anchorElement.parentElement!==null){this.anchorElement.parentElement.querySelectorAll(":hover").forEach((t=>{if(t.id===e){this.startShowDelayTimer()}}))}}if(this.region!==null&&this.region!==undefined&&this.tooltipVisible){this.region.anchorElement=this.anchorElement}this.updateLayout()}}viewportElementChanged(){if(this.region!==null&&this.region!==undefined){this.region.viewportElement=this.viewportElement}this.updateLayout()}connectedCallback(){super.connectedCallback();this.anchorElement=this.getAnchor();this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip();this.clearShowDelayTimer();this.clearHideDelayTimer();super.disconnectedCallback()}updateLayout(){this.verticalPositioningMode="locktodefault";this.horizontalPositioningMode="locktodefault";switch(this.position){case za.top:case za.bottom:this.verticalDefaultPosition=this.position;this.horizontalDefaultPosition="center";break;case za.right:case za.left:case za.start:case za.end:this.verticalDefaultPosition="center";this.horizontalDefaultPosition=this.position;break;case za.topLeft:this.verticalDefaultPosition="top";this.horizontalDefaultPosition="left";break;case za.topRight:this.verticalDefaultPosition="top";this.horizontalDefaultPosition="right";break;case za.bottomLeft:this.verticalDefaultPosition="bottom";this.horizontalDefaultPosition="left";break;case za.bottomRight:this.verticalDefaultPosition="bottom";this.horizontalDefaultPosition="right";break;case za.topStart:this.verticalDefaultPosition="top";this.horizontalDefaultPosition="start";break;case za.topEnd:this.verticalDefaultPosition="top";this.horizontalDefaultPosition="end";break;case za.bottomStart:this.verticalDefaultPosition="bottom";this.horizontalDefaultPosition="start";break;case za.bottomEnd:this.verticalDefaultPosition="bottom";this.horizontalDefaultPosition="end";break;default:this.verticalPositioningMode="dynamic";this.horizontalPositioningMode="dynamic";this.verticalDefaultPosition=void 0;this.horizontalDefaultPosition="center";break}}}f([(0,s.attr)({mode:"boolean"})],Na.prototype,"visible",void 0);f([s.attr],Na.prototype,"anchor",void 0);f([s.attr],Na.prototype,"delay",void 0);f([s.attr],Na.prototype,"position",void 0);f([(0,s.attr)({attribute:"auto-update-mode"})],Na.prototype,"autoUpdateMode",void 0);f([(0,s.attr)({attribute:"horizontal-viewport-lock"})],Na.prototype,"horizontalViewportLock",void 0);f([(0,s.attr)({attribute:"vertical-viewport-lock"})],Na.prototype,"verticalViewportLock",void 0);f([s.observable],Na.prototype,"anchorElement",void 0);f([s.observable],Na.prototype,"viewportElement",void 0);f([s.observable],Na.prototype,"verticalPositioningMode",void 0);f([s.observable],Na.prototype,"horizontalPositioningMode",void 0);f([s.observable],Na.prototype,"horizontalInset",void 0);f([s.observable],Na.prototype,"verticalInset",void 0);f([s.observable],Na.prototype,"horizontalScaling",void 0);f([s.observable],Na.prototype,"verticalScaling",void 0);f([s.observable],Na.prototype,"verticalDefaultPosition",void 0);f([s.observable],Na.prototype,"horizontalDefaultPosition",void 0);f([s.observable],Na.prototype,"tooltipVisible",void 0);f([s.observable],Na.prototype,"currentDirection",void 0);const Ba=(e,t)=>(0,s.html)` + +`;function qa(e){return Ao(e)&&e.getAttribute("role")==="treeitem"}class Ua extends Fe{constructor(){super(...arguments);this.expanded=false;this.focusable=false;this.isNestedItem=()=>qa(this.parentElement);this.handleExpandCollapseButtonClick=e=>{if(!this.disabled&&!e.defaultPrevented){this.expanded=!this.expanded}};this.handleFocus=e=>{this.setAttribute("tabindex","0")};this.handleBlur=e=>{this.setAttribute("tabindex","-1")}}expandedChanged(){if(this.$fastController.isConnected){this.$emit("expanded-change",this)}}selectedChanged(){if(this.$fastController.isConnected){this.$emit("selected-change",this)}}itemsChanged(e,t){if(this.$fastController.isConnected){this.items.forEach((e=>{if(qa(e)){e.nested=true}}))}}static focusItem(e){e.focusable=true;e.focus()}childItemLength(){const e=this.childItems.filter((e=>qa(e)));return e?e.length:0}}f([(0,s.attr)({mode:"boolean"})],Ua.prototype,"expanded",void 0);f([(0,s.attr)({mode:"boolean"})],Ua.prototype,"selected",void 0);f([(0,s.attr)({mode:"boolean"})],Ua.prototype,"disabled",void 0);f([s.observable],Ua.prototype,"focusable",void 0);f([s.observable],Ua.prototype,"childItems",void 0);f([s.observable],Ua.prototype,"items",void 0);f([s.observable],Ua.prototype,"nested",void 0);f([s.observable],Ua.prototype,"renderCollapsedChildren",void 0);Pe(Ua,o);const ja=(e,t)=>(0,s.html)` + +`;class _a extends Fe{constructor(){super(...arguments);this.currentFocused=null;this.handleFocus=e=>{if(this.slottedTreeItems.length<1){return}if(e.target===this){if(this.currentFocused===null){this.currentFocused=this.getValidFocusableItem()}if(this.currentFocused!==null){Ua.focusItem(this.currentFocused)}return}if(this.contains(e.target)){this.setAttribute("tabindex","-1");this.currentFocused=e.target}};this.handleBlur=e=>{if(e.target instanceof HTMLElement&&(e.relatedTarget===null||!this.contains(e.relatedTarget))){this.setAttribute("tabindex","0")}};this.handleKeyDown=e=>{if(e.defaultPrevented){return}if(this.slottedTreeItems.length<1){return true}const t=this.getVisibleNodes();switch(e.key){case ze.Tg:if(t.length){Ua.focusItem(t[0])}return;case ze.FM:if(t.length){Ua.focusItem(t[t.length-1])}return;case ze.kT:if(e.target&&this.isFocusableElement(e.target)){const t=e.target;if(t instanceof Ua&&t.childItemLength()>0&&t.expanded){t.expanded=false}else if(t instanceof Ua&&t.parentElement instanceof Ua){Ua.focusItem(t.parentElement)}}return false;case ze.bb:if(e.target&&this.isFocusableElement(e.target)){const t=e.target;if(t instanceof Ua&&t.childItemLength()>0&&!t.expanded){t.expanded=true}else if(t instanceof Ua&&t.childItemLength()>0){this.focusNextNode(1,e.target)}}return;case ze.HX:if(e.target&&this.isFocusableElement(e.target)){this.focusNextNode(1,e.target)}return;case ze.I5:if(e.target&&this.isFocusableElement(e.target)){this.focusNextNode(-1,e.target)}return;case ze.Mm:this.handleClick(e);return}return true};this.handleSelectedChange=e=>{if(e.defaultPrevented){return}if(!(e.target instanceof Element)||!qa(e.target)){return true}const t=e.target;if(t.selected){if(this.currentSelected&&this.currentSelected!==t){this.currentSelected.selected=false}this.currentSelected=t}else if(!t.selected&&this.currentSelected===t){this.currentSelected=null}return};this.setItems=()=>{const e=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=e;if(this.currentFocused===null||!this.contains(this.currentFocused)){this.currentFocused=this.getValidFocusableItem()}this.nested=this.checkForNestedItems();const t=this.getVisibleNodes();t.forEach((e=>{if(qa(e)){e.nested=this.nested}}))};this.isFocusableElement=e=>qa(e);this.isSelectedElement=e=>e.selected}slottedTreeItemsChanged(){if(this.$fastController.isConnected){this.setItems()}}connectedCallback(){super.connectedCallback();this.setAttribute("tabindex","0");s.DOM.queueUpdate((()=>{this.setItems()}))}handleClick(e){if(e.defaultPrevented){return}if(!(e.target instanceof Element)||!qa(e.target)){return true}const t=e.target;if(!t.disabled){t.selected=!t.selected}return}focusNextNode(e,t){const i=this.getVisibleNodes();if(!i){return}const s=i[i.indexOf(t)+e];if(Ao(s)){Ua.focusItem(s)}}getValidFocusableItem(){const e=this.getVisibleNodes();let t=e.findIndex(this.isSelectedElement);if(t===-1){t=e.findIndex(this.isFocusableElement)}if(t!==-1){return e[t]}return null}checkForNestedItems(){return this.slottedTreeItems.some((e=>qa(e)&&e.querySelector("[role='treeitem']")))}getVisibleNodes(){return Fo(this,"[role='treeitem']")||[]}}f([(0,s.attr)({attribute:"render-collapsed-nodes"})],_a.prototype,"renderCollapsedNodes",void 0);f([s.observable],_a.prototype,"currentSelected",void 0);f([s.observable],_a.prototype,"slottedTreeItems",void 0);class Ka{constructor(e){this.listenerCache=new WeakMap;this.query=e}bind(e){const{query:t}=this;const i=this.constructListener(e);i.bind(t)();t.addListener(i);this.listenerCache.set(e,i)}unbind(e){const t=this.listenerCache.get(e);if(t){this.query.removeListener(t);this.listenerCache.delete(e)}}}class Wa extends Ka{constructor(e,t){super(e);this.styles=t}static with(e){return t=>new Wa(e,t)}constructListener(e){let t=false;const i=this.styles;return function s(){const{matches:o}=this;if(o&&!t){e.$fastController.addStyles(i);t=o}else if(!o&&t){e.$fastController.removeStyles(i);t=o}}}unbind(e){super.unbind(e);e.$fastController.removeStyles(this.styles)}}const Ga=Wa.with(window.matchMedia("(forced-colors)"));const Xa=Wa.with(window.matchMedia("(prefers-color-scheme: dark)"));const Ya=Wa.with(window.matchMedia("(prefers-color-scheme: light)"));class Qa{constructor(e,t,i){this.propertyName=e;this.value=t;this.styles=i}bind(e){s.Observable.getNotifier(e).subscribe(this,this.propertyName);this.handleChange(e,this.propertyName)}unbind(e){s.Observable.getNotifier(e).unsubscribe(this,this.propertyName);e.$fastController.removeStyles(this.styles)}handleChange(e,t){if(e[t]===this.value){e.$fastController.addStyles(this.styles)}else{e.$fastController.removeStyles(this.styles)}}}const Za="not-allowed";const Ja=`:host([hidden]){display:none}`;function el(e){return`${Ja}:host{display:${e}}`}const tl=Ho()?"focus-visible":"focus"}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/232.5419cbec68e3fd0cf431.js.LICENSE.txt b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/232.5419cbec68e3fd0cf431.js.LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..c18ab1d93b2fc57c416607c6e61c93c115208722 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/232.5419cbec68e3fd0cf431.js.LICENSE.txt @@ -0,0 +1,14 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/246.326a6482593e8a7bcd58.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/246.326a6482593e8a7bcd58.js new file mode 100644 index 0000000000000000000000000000000000000000..389f06174917ecc8a5c8fff5b342a1d6e943b463 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/246.326a6482593e8a7bcd58.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[246],{30246:(e,t,n)=>{n.r(t);n.d(t,{dtd:()=>f});var r;function l(e,t){r=t;return e}function a(e,t){var n=e.next();if(n=="<"&&e.eat("!")){if(e.eatWhile(/[\-]/)){t.tokenize=i;return i(e,t)}else if(e.eatWhile(/[\w]/))return l("keyword","doindent")}else if(n=="<"&&e.eat("?")){t.tokenize=s("meta","?>");return l("meta",n)}else if(n=="#"&&e.eatWhile(/[\w]/))return l("atom","tag");else if(n=="|")return l("keyword","separator");else if(n.match(/[\(\)\[\]\-\.,\+\?>]/))return l(null,n);else if(n.match(/[\[\]]/))return l("rule",n);else if(n=='"'||n=="'"){t.tokenize=u(n);return t.tokenize(e,t)}else if(e.eatWhile(/[a-zA-Z\?\+\d]/)){var r=e.current();if(r.substr(r.length-1,r.length).match(/\?|\+/)!==null)e.backUp(1);return l("tag","tag")}else if(n=="%"||n=="*")return l("number","number");else{e.eatWhile(/[\w\\\-_%.{,]/);return l(null,null)}}function i(e,t){var n=0,r;while((r=e.next())!=null){if(n>=2&&r==">"){t.tokenize=a;break}n=r=="-"?n+1:0}return l("comment","comment")}function u(e){return function(t,n){var r=false,i;while((i=t.next())!=null){if(i==e&&!r){n.tokenize=a;break}r=!r&&i=="\\"}return l("string","tag")}}function s(e,t){return function(n,r){while(!n.eol()){if(n.match(t)){r.tokenize=a;break}n.next()}return e}}const f={name:"dtd",startState:function(){return{tokenize:a,baseIndent:0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;var n=t.tokenize(e,t);var l=t.stack[t.stack.length-1];if(e.current()=="["||r==="doindent"||r=="[")t.stack.push("rule");else if(r==="endtag")t.stack[t.stack.length-1]="endtag";else if(e.current()=="]"||r=="]"||r==">"&&l=="rule")t.stack.pop();else if(r=="[")t.stack.push("[");return n},indent:function(e,t,n){var l=e.stack.length;if(t.charAt(0)==="]")l--;else if(t.substr(t.length-1,t.length)===">"){if(t.substr(0,1)==="<"){}else if(r=="doindent"&&t.length>1){}else if(r=="doindent")l--;else if(r==">"&&t.length>1){}else if(r=="tag"&&t!==">"){}else if(r=="tag"&&e.stack[e.stack.length-1]=="rule")l--;else if(r=="tag")l++;else if(t===">"&&e.stack[e.stack.length-1]=="rule"&&r===">")l--;else if(t===">"&&e.stack[e.stack.length-1]=="rule"){}else if(t.substr(0,1)!=="<"&&t.substr(0,1)===">")l=l-1;else if(t===">"){}else l=l-1;if(r==null||r=="]")l--}return e.baseIndent+l*n.unit},languageData:{indentOnInput:/^\s*[\]>]$/}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2467.4227742ac4b60289f222.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2467.4227742ac4b60289f222.js new file mode 100644 index 0000000000000000000000000000000000000000..b92148cb8dee51dfb0ea1b11c7a2d59cb3b26869 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2467.4227742ac4b60289f222.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2467],{2467:(e,t,r)=>{r.r(t);r.d(t,{velocity:()=>p});function n(e){var t={},r=e.split(" ");for(var n=0;n!?:\/|]/;function o(e,t,r){t.tokenize=r;return r(e,t)}function u(e,t){var r=t.beforeParams;t.beforeParams=false;var n=e.next();if(n=="'"&&!t.inString&&t.inParams){t.lastTokenWasBuiltin=false;return o(e,t,f(n))}else if(n=='"'){t.lastTokenWasBuiltin=false;if(t.inString){t.inString=false;return"string"}else if(t.inParams)return o(e,t,f(n))}else if(/[\[\]{}\(\),;\.]/.test(n)){if(n=="("&&r)t.inParams=true;else if(n==")"){t.inParams=false;t.lastTokenWasBuiltin=true}return null}else if(/\d/.test(n)){t.lastTokenWasBuiltin=false;e.eatWhile(/[\w\.]/);return"number"}else if(n=="#"&&e.eat("*")){t.lastTokenWasBuiltin=false;return o(e,t,c)}else if(n=="#"&&e.match(/ *\[ *\[/)){t.lastTokenWasBuiltin=false;return o(e,t,k)}else if(n=="#"&&e.eat("#")){t.lastTokenWasBuiltin=false;e.skipToEnd();return"comment"}else if(n=="$"){e.eat("!");e.eatWhile(/[\w\d\$_\.{}-]/);if(s&&s.propertyIsEnumerable(e.current())){return"keyword"}else{t.lastTokenWasBuiltin=true;t.beforeParams=true;return"builtin"}}else if(l.test(n)){t.lastTokenWasBuiltin=false;e.eatWhile(l);return"operator"}else{e.eatWhile(/[\w\$_{}@]/);var u=e.current();if(a&&a.propertyIsEnumerable(u))return"keyword";if(i&&i.propertyIsEnumerable(u)||e.current().match(/^#@?[a-z0-9_]+ *$/i)&&e.peek()=="("&&!(i&&i.propertyIsEnumerable(u.toLowerCase()))){t.beforeParams=true;t.lastTokenWasBuiltin=false;return"keyword"}if(t.inString){t.lastTokenWasBuiltin=false;return"string"}if(e.pos>u.length&&e.string.charAt(e.pos-u.length-1)=="."&&t.lastTokenWasBuiltin)return"builtin";t.lastTokenWasBuiltin=false;return null}}function f(e){return function(t,r){var n=false,a,i=false;while((a=t.next())!=null){if(a==e&&!n){i=true;break}if(e=='"'&&t.peek()=="$"&&!n){r.inString=true;i=true;break}n=!n&&a=="\\"}if(i)r.tokenize=u;return"string"}}function c(e,t){var r=false,n;while(n=e.next()){if(n=="#"&&r){t.tokenize=u;break}r=n=="*"}return"comment"}function k(e,t){var r=0,n;while(n=e.next()){if(n=="#"&&r==2){t.tokenize=u;break}if(n=="]")r++;else if(n!=" ")r=0}return"meta"}const p={name:"velocity",startState:function(){return{tokenize:u,beforeParams:false,inParams:false,inString:false,lastTokenWasBuiltin:false}},token:function(e,t){if(e.eatSpace())return null;return t.tokenize(e,t)},languageData:{commentTokens:{line:"##",block:{open:"#*",close:"*#"}}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2470.e58bd49a2dbca8f0ca07.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2470.e58bd49a2dbca8f0ca07.js new file mode 100644 index 0000000000000000000000000000000000000000..e971aea674300694613ada7d2b63c3b4f0e01d25 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2470.e58bd49a2dbca8f0ca07.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2470],{67901:(t,e,r)=>{var n=1/0;var o="[object Symbol]";var u=/[&<>"'`]/g,a=RegExp(u.source);var c={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};var p=typeof r.g=="object"&&r.g&&r.g.Object===Object&&r.g;var f=typeof self=="object"&&self&&self.Object===Object&&self;var l=p||f||Function("return this")();function i(t){return function(e){return t==null?undefined:t[e]}}var b=i(c);var s=Object.prototype;var v=s.toString;var y=l.Symbol;var j=y?y.prototype:undefined,g=j?j.toString:undefined;function d(t){if(typeof t=="string"){return t}if(O(t)){return g?g.call(t):""}var e=t+"";return e=="0"&&1/t==-n?"-0":e}function _(t){return!!t&&typeof t=="object"}function O(t){return typeof t=="symbol"||_(t)&&v.call(t)==o}function h(t){return t==null?"":d(t)}function k(t){t=h(t);return t&&a.test(t)?t.replace(u,b):t}t.exports=k}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2550.75fcaa650ffac405c0dc.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2550.75fcaa650ffac405c0dc.js new file mode 100644 index 0000000000000000000000000000000000000000..d2414e3c1ac7591ef91700b5cc3cfb29e9300dae --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2550.75fcaa650ffac405c0dc.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2550],{19163:(t,e,a)=>{a.d(e,{S:()=>n});var r=a(75905);function n(t,e){if(t.accDescr){e.setAccDescription?.(t.accDescr)}if(t.accTitle){e.setAccTitle?.(t.accTitle)}if(t.title){e.setDiagramTitle?.(t.title)}}(0,r.K2)(n,"populateCommonDb")},92550:(t,e,a)=>{a.d(e,{diagram:()=>B});var r=a(19163);var n=a(96049);var o=a(93113);var l=a(75905);var i=a(24010);var c={packet:[]};var s=structuredClone(c);var d=l.UI.packet;var p=(0,l.K2)((()=>{const t=(0,n.$t)({...d,...(0,l.zj)().packet});if(t.showBits){t.paddingY+=10}return t}),"getConfig");var k=(0,l.K2)((()=>s.packet),"getPacket");var b=(0,l.K2)((t=>{if(t.length>0){s.packet.push(t)}}),"pushWord");var g=(0,l.K2)((()=>{(0,l.IU)();s=structuredClone(c)}),"clear");var f={pushWord:b,getPacket:k,getConfig:p,clear:g,setAccTitle:l.SV,getAccTitle:l.iN,setDiagramTitle:l.ke,getDiagramTitle:l.ab,getAccDescription:l.m7,setAccDescription:l.EI};var h=1e4;var u=(0,l.K2)((t=>{(0,r.S)(t,f);let e=-1;let a=[];let n=1;const{bitsPerRow:o}=f.getConfig();for(let{start:r,end:i,label:c}of t.blocks){if(i&&i{if(t.end===void 0){t.end=t.start}if(t.start>t.end){throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`)}if(t.end+1<=e*a){return[t,void 0]}return[{start:t.start,end:e*a-1,label:t.label},{start:e*a,end:t.end,label:t.label}]}),"getNextFittingBlock");var $={parse:(0,l.K2)((async t=>{const e=await(0,i.qg)("packet",t);l.Rm.debug(e);u(e)}),"parse")};var w=(0,l.K2)(((t,e,a,r)=>{const n=r.db;const i=n.getConfig();const{rowHeight:c,paddingY:s,bitWidth:d,bitsPerRow:p}=i;const k=n.getPacket();const b=n.getDiagramTitle();const g=c+s;const f=g*(k.length+1)-(b?0:c);const h=d*p+2;const u=(0,o.D)(e);u.attr("viewbox",`0 0 ${h} ${f}`);(0,l.a$)(u,f,h,i.useMaxWidth);for(const[o,l]of k.entries()){x(u,l,o,i)}u.append("text").text(b).attr("x",h/2).attr("y",f-g/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")}),"draw");var x=(0,l.K2)(((t,e,a,{rowHeight:r,paddingX:n,paddingY:o,bitWidth:l,bitsPerRow:i,showBits:c})=>{const s=t.append("g");const d=a*(r+o)+o;for(const p of e){const t=p.start%i*l+1;const e=(p.end-p.start+1)*l-n;s.append("rect").attr("x",t).attr("y",d).attr("width",e).attr("height",r).attr("class","packetBlock");s.append("text").attr("x",t+e/2).attr("y",d+r/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(p.label);if(!c){continue}const a=p.end===p.start;const o=d-2;s.append("text").attr("x",t+(a?e/2:0)).attr("y",o).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",a?"middle":"start").text(p.start);if(!a){s.append("text").attr("x",t+e).attr("y",o).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(p.end)}}}),"drawWord");var m={draw:w};var y={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"};var C=(0,l.K2)((({packet:t}={})=>{const e=(0,n.$t)(y,t);return`\n\t.packetByte {\n\t\tfont-size: ${e.byteFontSize};\n\t}\n\t.packetByte.start {\n\t\tfill: ${e.startByteColor};\n\t}\n\t.packetByte.end {\n\t\tfill: ${e.endByteColor};\n\t}\n\t.packetLabel {\n\t\tfill: ${e.labelColor};\n\t\tfont-size: ${e.labelFontSize};\n\t}\n\t.packetTitle {\n\t\tfill: ${e.titleColor};\n\t\tfont-size: ${e.titleFontSize};\n\t}\n\t.packetBlock {\n\t\tstroke: ${e.blockStrokeColor};\n\t\tstroke-width: ${e.blockStrokeWidth};\n\t\tfill: ${e.blockFillColor};\n\t}\n\t`}),"styles");var B={parser:$,db:f,renderer:m,styles:C}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2590.99e505d19b964439aa31.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2590.99e505d19b964439aa31.js new file mode 100644 index 0000000000000000000000000000000000000000..6148d2294beae4eecd87b3642b3523288fc992a5 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2590.99e505d19b964439aa31.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2590],{62590:(e,t,s)=>{s.r(t);s.d(t,{$global:()=>i,AttachedBehaviorHTMLDirective:()=>T,AttributeConfiguration:()=>oe,AttributeDefinition:()=>ae,BindingBehavior:()=>L,CSSDirective:()=>we,ChildrenBehavior:()=>ht,Controller:()=>me,DOM:()=>p,ElementStyles:()=>X,ExecutionContext:()=>x,FAST:()=>r,FASTElement:()=>Ce,FASTElementDefinition:()=>pe,HTMLBindingDirective:()=>E,HTMLDirective:()=>S,HTMLView:()=>W,Observable:()=>v,PropertyChangeNotifier:()=>b,RefBehavior:()=>Ue,RepeatBehavior:()=>tt,RepeatDirective:()=>st,SlottedBehavior:()=>ot,SubscriberSet:()=>g,TargetedHTMLDirective:()=>B,ViewTemplate:()=>G,attr:()=>ce,booleanConverter:()=>le,children:()=>at,compileTemplate:()=>Q,createMetadataLocator:()=>l,css:()=>Be,cssPartial:()=>Oe,customElement:()=>xe,defaultExecutionContext:()=>w,elements:()=>nt,emptyArray:()=>o,enableArrayObservation:()=>Qe,html:()=>K,nullableNumberConverter:()=>he,observable:()=>m,ref:()=>We,repeat:()=>it,slotted:()=>lt,volatile:()=>y,when:()=>Xe});const i=function(){if(typeof globalThis!=="undefined"){return globalThis}if(typeof s.g!=="undefined"){return s.g}if(typeof self!=="undefined"){return self}if(typeof window!=="undefined"){return window}try{return new Function("return this")()}catch(e){return{}}}();if(i.trustedTypes===void 0){i.trustedTypes={createPolicy:(e,t)=>t}}const n={configurable:false,enumerable:false,writable:false};if(i.FAST===void 0){Reflect.defineProperty(i,"FAST",Object.assign({value:Object.create(null)},n))}const r=i.FAST;if(r.getById===void 0){const e=Object.create(null);Reflect.defineProperty(r,"getById",Object.assign({value(t,s){let i=e[t];if(i===void 0){i=s?e[t]=s():null}return i}},n))}const o=Object.freeze([]);function l(){const e=new WeakMap;return function(t){let s=e.get(t);if(s===void 0){let i=Reflect.getPrototypeOf(t);while(s===void 0&&i!==null){s=e.get(i);i=Reflect.getPrototypeOf(i)}s=s===void 0?[]:s.slice(0);e.set(t,s)}return s}}const h=i.FAST.getById(1,(()=>{const e=[];const t=[];function s(){if(t.length){throw t.shift()}}function n(e){try{e.call()}catch(i){t.push(i);setTimeout(s,0)}}function r(){const t=1024;let s=0;while(st){for(let t=0,i=e.length-s;te});let c=a;const u=`fast-${Math.random().toString(36).substring(2,8)}`;const d=`${u}{`;const f=`}${u}`;const p=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(c!==a){throw new Error("The HTML policy can only be set once.")}c=e},createHTML(e){return c.createHTML(e)},isMarker(e){return e&&e.nodeType===8&&e.data.startsWith(u)},extractDirectiveIndexFromMarker(e){return parseInt(e.data.replace(`${u}:`,""))},createInterpolationPlaceholder(e){return`${d}${e}${f}`},createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(e){return`\x3c!--${u}:${e}--\x3e`},queueUpdate:h.enqueue,processUpdates:h.process,nextUpdate(){return new Promise(h.enqueue)},setAttribute(e,t,s){if(s===null||s===undefined){e.removeAttribute(t)}else{e.setAttribute(t,s)}},setBooleanAttribute(e,t,s){s?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;t!==null;t=e.firstChild){e.removeChild(t)}},createTemplateWalker(e){return document.createTreeWalker(e,133,null,false)}});class g{constructor(e,t){this.sub1=void 0;this.sub2=void 0;this.spillover=void 0;this.source=e;this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){const t=this.spillover;if(t===void 0){if(this.has(e)){return}if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e];this.sub1=void 0;this.sub2=void 0}else{const s=t.indexOf(e);if(s===-1){t.push(e)}}}unsubscribe(e){const t=this.spillover;if(t===void 0){if(this.sub1===e){this.sub1=void 0}else if(this.sub2===e){this.sub2=void 0}}else{const s=t.indexOf(e);if(s!==-1){t.splice(s,1)}}}notify(e){const t=this.spillover;const s=this.source;if(t===void 0){const t=this.sub1;const i=this.sub2;if(t!==void 0){t.handleChange(s,e)}if(i!==void 0){i.handleChange(s,e)}}else{for(let i=0,n=t.length;i{const e=/(:|&&|\|\||if)/;const t=new WeakMap;const s=p.queueUpdate;let i=void 0;let n=e=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function r(e){let s=e.$fastController||t.get(e);if(s===void 0){if(Array.isArray(e)){s=n(e)}else{t.set(e,s=new b(e))}}return s}const o=l();class h{constructor(e){this.name=e;this.field=`_${e}`;this.callback=`${e}Changed`}getValue(e){if(i!==void 0){i.watch(e,this.name)}return e[this.field]}setValue(e,t){const s=this.field;const i=e[s];if(i!==t){e[s]=t;const n=e[this.callback];if(typeof n==="function"){n.call(e,i,t)}r(e).notify(this.name)}}}class a extends g{constructor(e,t,s=false){super(e,t);this.binding=e;this.isVolatileBinding=s;this.needsRefresh=true;this.needsQueue=true;this.first=this;this.last=null;this.propertySource=void 0;this.propertyName=void 0;this.notifier=void 0;this.next=void 0}observe(e,t){if(this.needsRefresh&&this.last!==null){this.disconnect()}const s=i;i=this.needsRefresh?this:void 0;this.needsRefresh=this.isVolatileBinding;const n=this.binding(e,t);i=s;return n}disconnect(){if(this.last!==null){let e=this.first;while(e!==void 0){e.notifier.unsubscribe(this,e.propertyName);e=e.next}this.last=null;this.needsRefresh=this.needsQueue=true}}watch(e,t){const s=this.last;const n=r(e);const o=s===null?this.first:{};o.propertySource=e;o.propertyName=t;o.notifier=n;n.subscribe(this,t);if(s!==null){if(!this.needsRefresh){let t;i=void 0;t=s.propertySource[s.propertyName];i=this;if(e===t){this.needsRefresh=true}}s.next=o}this.last=o}handleChange(){if(this.needsQueue){this.needsQueue=false;s(this)}}call(){if(this.last!==null){this.needsQueue=true;this.notify(this)}}records(){let e=this.first;return{next:()=>{const t=e;if(t===undefined){return{value:void 0,done:true}}else{e=e.next;return{value:t,done:false}}},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(e){n=e},getNotifier:r,track(e,t){if(i!==void 0){i.watch(e,t)}},trackVolatile(){if(i!==void 0){i.needsRefresh=true}},notify(e,t){r(e).notify(t)},defineProperty(e,t){if(typeof t==="string"){t=new h(t)}o(e).push(t);Reflect.defineProperty(e,t.name,{enumerable:true,get:function(){return t.getValue(this)},set:function(e){t.setValue(this,e)}})},getAccessors:o,binding(e,t,s=this.isVolatileBinding(e)){return new a(e,t,s)},isVolatileBinding(t){return e.test(t.toString())}})}));function m(e,t){v.defineProperty(e,t)}function y(e,t,s){return Object.assign({},s,{get:function(){v.trackVolatile();return s.get.apply(this)}})}const C=r.getById(3,(()=>{let e=null;return{get(){return e},set(t){e=t}}}));class x{constructor(){this.index=0;this.length=0;this.parent=null;this.parentContext=null}get event(){return C.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){C.set(e)}}v.defineProperty(x.prototype,"index");v.defineProperty(x.prototype,"length");const w=Object.seal(new x);class S{constructor(){this.targetIndex=0}}class B extends S{constructor(){super(...arguments);this.createPlaceholder=p.createInterpolationPlaceholder}}class T extends S{constructor(e,t,s){super();this.name=e;this.behavior=t;this.options=s}createPlaceholder(e){return p.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}function O(e,t){this.source=e;this.context=t;if(this.bindingObserver===null){this.bindingObserver=v.binding(this.binding,this,this.isBindingVolatile)}this.updateTarget(this.bindingObserver.observe(e,t))}function A(e,t){this.source=e;this.context=t;this.target.addEventListener(this.targetName,this)}function N(){this.bindingObserver.disconnect();this.source=null;this.context=null}function k(){this.bindingObserver.disconnect();this.source=null;this.context=null;const e=this.target.$fastView;if(e!==void 0&&e.isComposed){e.unbind();e.needsBindOnly=true}}function V(){this.target.removeEventListener(this.targetName,this);this.source=null;this.context=null}function $(e){p.setAttribute(this.target,this.targetName,e)}function F(e){p.setBooleanAttribute(this.target,this.targetName,e)}function _(e){if(e===null||e===undefined){e=""}if(e.create){this.target.textContent="";let t=this.target.$fastView;if(t===void 0){t=e.create()}else{if(this.target.$fastTemplate!==e){if(t.isComposed){t.remove();t.unbind()}t=e.create()}}if(!t.isComposed){t.isComposed=true;t.bind(this.source,this.context);t.insertBefore(this.target);this.target.$fastView=t;this.target.$fastTemplate=e}else if(t.needsBindOnly){t.needsBindOnly=false;t.bind(this.source,this.context)}}else{const t=this.target.$fastView;if(t!==void 0&&t.isComposed){t.isComposed=false;t.remove();if(t.needsBindOnly){t.needsBindOnly=false}else{t.unbind()}}this.target.textContent=e}}function I(e){this.target[this.targetName]=e}function M(e){const t=this.classVersions||Object.create(null);const s=this.target;let i=this.version||0;if(e!==null&&e!==undefined&&e.length){const n=e.split(/\s+/);for(let e=0,r=n.length;ep.createHTML(e(t,s))}break;case"?":this.cleanedTargetName=e.substr(1);this.updateTarget=F;break;case"@":this.cleanedTargetName=e.substr(1);this.bind=A;this.unbind=V;break;default:this.cleanedTargetName=e;if(e==="class"){this.updateTarget=M}break}}targetAtContent(){this.updateTarget=_;this.unbind=k}createBehavior(e){return new L(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}}class L{constructor(e,t,s,i,n,r,o){this.source=null;this.context=null;this.bindingObserver=null;this.target=e;this.binding=t;this.isBindingVolatile=s;this.bind=i;this.unbind=n;this.updateTarget=r;this.targetName=o}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){x.setEvent(e);const t=this.binding(this.source,this.context);x.setEvent(null);if(t!==true){e.preventDefault()}}}let P=null;class j{addFactory(e){e.targetIndex=this.targetIndex;this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent();this.addFactory(e)}reset(){this.behaviorFactories=[];this.targetIndex=-1}release(){P=this}static borrow(e){const t=P||new j;t.directives=e;t.reset();P=null;return t}}function R(e){if(e.length===1){return e[0]}let t;const s=e.length;const i=e.map((e=>{if(typeof e==="string"){return()=>e}t=e.targetName||t;return e.binding}));const n=(e,t)=>{let n="";for(let r=0;rl));a.targetName=o.name}}else{a=R(h)}if(a!==null){t.removeAttributeNode(o);n--;r--;e.addFactory(a)}}}function q(e,t,s){const i=z(e,t.textContent);if(i!==null){let n=t;for(let r=0,o=i.length;r0}const t=this.fragment.cloneNode(true);const s=this.viewBehaviorFactories;const i=new Array(this.behaviorCount);const n=p.createTemplateWalker(t);let r=0;let o=this.targetOffset;let l=n.nextNode();for(let h=s.length;r=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function K(e,...t){const s=[];let i="";for(let n=0,r=e.length-1;ne}if(typeof o==="function"){o=new E(o)}if(o instanceof B){const e=J.exec(r);if(e!==null){o.targetName=e[2]}}if(o instanceof S){i+=o.createPlaceholder(s.length);s.push(o)}else{i+=o}}i+=e[e.length-1];return new G(i,s)}class X{constructor(){this.targets=new WeakSet}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){this.behaviors=this.behaviors===null?e:this.behaviors.concat(e);return this}}X.create=(()=>{if(p.supportsAdoptedStyleSheets){const e=new Map;return t=>new se(t,e)}return e=>new re(e)})();function Y(e){return e.map((e=>e instanceof X?Y(e.styles):[e])).reduce(((e,t)=>e.concat(t)),[])}function Z(e){return e.map((e=>e instanceof X?e.behaviors:null)).reduce(((e,t)=>{if(t===null){return e}if(e===null){e=[]}return e.concat(t)}),null)}let ee=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]};let te=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter((e=>t.indexOf(e)===-1))};if(p.supportsAdoptedStyleSheets){try{document.adoptedStyleSheets.push();document.adoptedStyleSheets.splice();ee=(e,t)=>{e.adoptedStyleSheets.push(...t)};te=(e,t)=>{for(const s of t){const t=e.adoptedStyleSheets.indexOf(s);if(t!==-1){e.adoptedStyleSheets.splice(t,1)}}}}catch(ct){}}class se extends X{constructor(e,t){super();this.styles=e;this.styleSheetCache=t;this._styleSheets=void 0;this.behaviors=Z(e)}get styleSheets(){if(this._styleSheets===void 0){const e=this.styles;const t=this.styleSheetCache;this._styleSheets=Y(e).map((e=>{if(e instanceof CSSStyleSheet){return e}let s=t.get(e);if(s===void 0){s=new CSSStyleSheet;s.replaceSync(e);t.set(e,s)}return s}))}return this._styleSheets}addStylesTo(e){ee(e,this.styleSheets);super.addStylesTo(e)}removeStylesFrom(e){te(e,this.styleSheets);super.removeStylesFrom(e)}}let ie=0;function ne(){return`fast-style-class-${++ie}`}class re extends X{constructor(e){super();this.styles=e;this.behaviors=null;this.behaviors=Z(e);this.styleSheets=Y(e);this.styleClass=ne()}addStylesTo(e){const t=this.styleSheets;const s=this.styleClass;e=this.normalizeTarget(e);for(let i=0;i{s.add(e);const i=e[this.fieldName];switch(t){case"reflect":const t=this.converter;p.setAttribute(e,this.attribute,t!==void 0?t.toView(i):i);break;case"boolean":p.setBooleanAttribute(e,this.attribute,i);break}s.delete(e)}))}static collect(e,...t){const s=[];t.push(oe.locate(e));for(let i=0,n=t.length;i1){s.property=t}oe.locate(e.constructor).push(s)}if(arguments.length>1){s={};i(e,t);return}s=e===void 0?{}:e;return i}const ue={mode:"open"};const de={};const fe=r.getById(4,(()=>{const e=new Map;return Object.freeze({register(t){if(e.has(t.type)){return false}e.set(t.type,t);return true},getByType(t){return e.get(t)}})}));class pe{constructor(e,t=e.definition){if(typeof t==="string"){t={name:t}}this.type=e;this.name=t.name;this.template=t.template;const s=ae.collect(e,t.attributes);const i=new Array(s.length);const n={};const r={};for(let o=0,l=s.length;o0){const t=this.boundObservables=Object.create(null);for(let s=0,n=i.length;s{if(typeof t==="string"){this.css+=t}else{e.push(t)}return e}),[]);if(s.length){this.styles=X.create(s)}}createBehavior(){return this}createCSS(){return this.css}bind(e){if(this.styles){e.$fastController.addStyles(this.styles)}if(this.behaviors.length){e.$fastController.addBehaviors(this.behaviors)}}unbind(e){if(this.styles){e.$fastController.removeStyles(this.styles)}if(this.behaviors.length){e.$fastController.removeBehaviors(this.behaviors)}}}function Oe(e,...t){const{styles:s,behaviors:i}=Se(e,t);return new Te(s,i)}function Ae(e,t,s){return{index:e,removed:t,addedCount:s}}const Ne=0;const ke=1;const Ve=2;const $e=3;function Fe(e,t,s,i,n,r){const o=r-n+1;const l=s-t+1;const h=new Array(o);let a;let c;for(let u=0;u0||s>0){if(t===0){n.push(Ve);s--;continue}if(s===0){n.push($e);t--;continue}const r=e[t-1][s-1];const o=e[t-1][s];const l=e[t][s-1];let h;if(o=0){e.splice(l,1);l--;o-=t.addedCount-t.removed.length;n.addedCount+=t.addedCount-s;const i=n.removed.length+t.removed.length-s;if(!n.addedCount&&!i){r=true}else{let e=t.removed;if(n.indext.index+t.addedCount){const s=n.removed.slice(t.index+t.addedCount-n.index);Pe.apply(e,s)}n.removed=e;if(t.indexi){s=i-e.addedCount}else if(s<0){s=i+e.removed.length+s-e.addedCount}if(s<0){s=0}e.index=s;return e}class qe extends g{constructor(e){super(e);this.oldCollection=void 0;this.splices=void 0;this.needsQueue=true;this.call=this.flush;Reflect.defineProperty(e,"$fastController",{value:this,enumerable:false})}subscribe(e){this.flush();super.subscribe(e)}addSplice(e){if(this.splices===void 0){this.splices=[e]}else{this.splices.push(e)}if(this.needsQueue){this.needsQueue=false;p.queueUpdate(this)}}reset(e){this.oldCollection=e;if(this.needsQueue){this.needsQueue=false;p.queueUpdate(this)}}flush(){const e=this.splices;const t=this.oldCollection;if(e===void 0&&t===void 0){return}this.needsQueue=true;this.splices=void 0;this.oldCollection=void 0;const s=t===void 0?He(this.source,e):Le(this.source,0,this.source.length,t,0,t.length);this.notify(s)}}function Qe(){if(ze){return}ze=true;v.setArrayObserverFactory((e=>new qe(e)));const e=Array.prototype;if(e.$fastPatch){return}Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:false});const t=e.pop;const s=e.push;const i=e.reverse;const n=e.shift;const r=e.sort;const o=e.splice;const l=e.unshift;e.pop=function(){const e=this.length>0;const s=t.apply(this,arguments);const i=this.$fastController;if(i!==void 0&&e){i.addSplice(Ae(this.length,[s],0))}return s};e.push=function(){const e=s.apply(this,arguments);const t=this.$fastController;if(t!==void 0){t.addSplice(De(Ae(this.length-arguments.length,[],arguments.length),this))}return e};e.reverse=function(){let e;const t=this.$fastController;if(t!==void 0){t.flush();e=this.slice()}const s=i.apply(this,arguments);if(t!==void 0){t.reset(e)}return s};e.shift=function(){const e=this.length>0;const t=n.apply(this,arguments);const s=this.$fastController;if(s!==void 0&&e){s.addSplice(Ae(0,[t],0))}return t};e.sort=function(){let e;const t=this.$fastController;if(t!==void 0){t.flush();e=this.slice()}const s=r.apply(this,arguments);if(t!==void 0){t.reset(e)}return s};e.splice=function(){const e=o.apply(this,arguments);const t=this.$fastController;if(t!==void 0){t.addSplice(De(Ae(+arguments[0],e,arguments.length>2?arguments.length-2:0),this))}return e};e.unshift=function(){const e=l.apply(this,arguments);const t=this.$fastController;if(t!==void 0){t.addSplice(De(Ae(0,[],arguments.length),this))}return e}}class Ue{constructor(e,t){this.target=e;this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}function We(e){return new T("fast-ref",Ue,e)}const Ge=e=>typeof e==="function";const Je=()=>null;function Ke(e){return e===undefined?Je:Ge(e)?e:()=>e}function Xe(e,t,s){const i=Ge(e)?e:()=>e;const n=Ke(t);const r=Ke(s);return(e,t)=>i(e,t)?n(e,t):r(e,t)}const Ye=Object.freeze({positioning:false,recycle:true});function Ze(e,t,s,i){e.bind(t[s],i)}function et(e,t,s,i){const n=Object.create(i);n.index=s;n.length=t.length;e.bind(t[s],n)}class tt{constructor(e,t,s,i,n,r){this.location=e;this.itemsBinding=t;this.templateBinding=i;this.options=r;this.source=null;this.views=[];this.items=null;this.itemsObserver=null;this.originalContext=void 0;this.childContext=void 0;this.bindView=Ze;this.itemsBindingObserver=v.binding(t,this,s);this.templateBindingObserver=v.binding(i,this,n);if(r.positioning){this.bindView=et}}bind(e,t){this.source=e;this.originalContext=t;this.childContext=Object.create(t);this.childContext.parent=e;this.childContext.parentContext=this.originalContext;this.items=this.itemsBindingObserver.observe(e,this.originalContext);this.template=this.templateBindingObserver.observe(e,this.originalContext);this.observeItems(true);this.refreshAllViews()}unbind(){this.source=null;this.items=null;if(this.itemsObserver!==null){this.itemsObserver.unsubscribe(this)}this.unbindAllViews();this.itemsBindingObserver.disconnect();this.templateBindingObserver.disconnect()}handleChange(e,t){if(e===this.itemsBinding){this.items=this.itemsBindingObserver.observe(this.source,this.originalContext);this.observeItems();this.refreshAllViews()}else if(e===this.templateBinding){this.template=this.templateBindingObserver.observe(this.source,this.originalContext);this.refreshAllViews(true)}else{this.updateViews(t)}}observeItems(e=false){if(!this.items){this.items=o;return}const t=this.itemsObserver;const s=this.itemsObserver=v.getNotifier(this.items);const i=t!==s;if(i&&t!==null){t.unsubscribe(this)}if(i||e){s.subscribe(this)}}updateViews(e){const t=this.childContext;const s=this.views;const i=this.bindView;const n=this.items;const r=this.template;const o=this.options.recycle;const l=[];let h=0;let a=0;for(let c=0,u=e.length;c0){if(f<=v&&b.length>0){u=b[f];f++}else{u=l[h];h++}a--}else{u=r.create()}s.splice(p,0,u);i(u,n,p,t);u.insertBefore(c)}if(b[f]){l.push(...b.slice(f))}}for(let c=h,u=l.length;ct;return new st(e,i,Object.assign(Object.assign({},Ye),s))}function nt(e){if(e){return function(t,s,i){return t.nodeType===1&&t.matches(e)}}return function(e,t,s){return e.nodeType===1}}class rt{constructor(e,t){this.target=e;this.options=t;this.source=null}bind(e){const t=this.options.property;this.shouldUpdate=v.getAccessors(e).some((e=>e.name===t));this.source=e;this.updateTarget(this.computeNodes());if(this.shouldUpdate){this.observe()}}unbind(){this.updateTarget(o);this.source=null;if(this.shouldUpdate){this.disconnect()}}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();if(this.options.filter!==void 0){e=e.filter(this.options.filter)}return e}updateTarget(e){this.source[this.options.property]=e}}class ot extends rt{constructor(e,t){super(e,t)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}function lt(e){if(typeof e==="string"){e={property:e}}return new T("fast-slotted",ot,e)}class ht extends rt{constructor(e,t){super(e,t);this.observer=null;t.childList=true}observe(){if(this.observer===null){this.observer=new MutationObserver(this.handleEvent.bind(this))}this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){if("subtree"in this.options){return Array.from(this.target.querySelectorAll(this.options.selector))}return Array.from(this.target.childNodes)}}function at(e){if(typeof e==="string"){e={property:e}}return new T("fast-children",ht,e)}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2601.367168ef0bb1b13c3b83.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2601.367168ef0bb1b13c3b83.js new file mode 100644 index 0000000000000000000000000000000000000000..859aabcc409110b91f8139b0a08b35da81e1ec4f --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2601.367168ef0bb1b13c3b83.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2601],{24982:(t,n,e)=>{e.d(n,{JLW:()=>Xr.A,l78:()=>g,tlR:()=>_,qrM:()=>ti.Ay,Yu4:()=>Qr.A,IA3:()=>$r.A,Wi0:()=>ri,PGM:()=>ii,OEq:()=>ui.A,y8u:()=>li.Ay,olC:()=>ai.A,IrU:()=>si.A,oDi:()=>hi.A,Q7f:()=>ci.A,cVp:()=>fi.A,lUB:()=>vi.A,Lx9:()=>pi.A,nVG:()=>di.G,uxU:()=>di.N,Xf2:()=>yi.A,GZz:()=>_i.Ay,UPb:()=>_i.Ps,dyv:()=>_i.Ko,bEH:()=>Pr.interpolateHcl,n8j:()=>qr.A,T9B:()=>r.A,jkA:()=>i.A,rLf:()=>Jr,WH:()=>Dr,m4Y:()=>Lr.A,UMr:()=>Ir.A,w7C:()=>Or.A,zt:()=>Yr,Ltv:()=>Rr,UAC:()=>bi.UA,DCK:()=>zi.DC,TUC:()=>xi.TU,Agd:()=>Ai.Ag,t6C:()=>mi.y,wXd:()=>wi.wX,ABi:()=>xi.AB,Ui6:()=>ki.Ui,rGn:()=>xi.rG,ucG:()=>gi.R,YPH:()=>xi.YP,Mol:()=>xi.Mo,PGu:()=>xi.PG,GuW:()=>xi.Gu});var r=e(21671);var i=e(44317);function o(t){return t}var u=1,a=2,s=3,l=4,c=1e-6;function f(t){return"translate("+t+",0)"}function h(t){return"translate(0,"+t+")"}function p(t){return n=>+t(n)}function v(t,n){n=Math.max(0,t.bandwidth()-n*2)/2;if(t.round())n=Math.round(n);return e=>+t(e)+n}function d(){return!this.__axis}function y(t,n){var e=[],r=null,i=null,y=6,_=6,m=3,g=typeof window!=="undefined"&&window.devicePixelRatio>1?0:.5,w=t===u||t===l?-1:1,A=t===l||t===a?"x":"y",b=t===u||t===s?f:h;function x(f){var h=r==null?n.ticks?n.ticks.apply(n,e):n.domain():r,x=i==null?n.tickFormat?n.tickFormat.apply(n,e):o:i,k=Math.max(y,0)+m,z=n.range(),M=+z[0]+g,E=+z[z.length-1]+g,T=(n.bandwidth?v:p)(n.copy(),g),C=f.selection?f.selection():f,S=C.selectAll(".domain").data([null]),N=C.selectAll(".tick").data(h,n).order(),P=N.exit(),V=N.enter().append("g").attr("class","tick"),B=N.select("line"),I=N.select("text");S=S.merge(S.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor"));N=N.merge(V);B=B.merge(V.append("line").attr("stroke","currentColor").attr(A+"2",w*y));I=I.merge(V.append("text").attr("fill","currentColor").attr(A,w*k).attr("dy",t===u?"0em":t===s?"0.71em":"0.32em"));if(f!==C){S=S.transition(f);N=N.transition(f);B=B.transition(f);I=I.transition(f);P=P.transition(f).attr("opacity",c).attr("transform",(function(t){return isFinite(t=T(t))?b(t+g):this.getAttribute("transform")}));V.attr("opacity",c).attr("transform",(function(t){var n=this.parentNode.__axis;return b((n&&isFinite(n=n(t))?n:T(t))+g)}))}P.remove();S.attr("d",t===l||t===a?_?"M"+w*_+","+M+"H"+g+"V"+E+"H"+w*_:"M"+g+","+M+"V"+E:_?"M"+M+","+w*_+"V"+g+"H"+E+"V"+w*_:"M"+M+","+g+"H"+E);N.attr("opacity",1).attr("transform",(function(t){return b(T(t)+g)}));B.attr(A+"2",w*y);I.attr(A,w*k).text(x);C.filter(d).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===a?"start":t===l?"end":"middle");C.each((function(){this.__axis=T}))}x.scale=function(t){return arguments.length?(n=t,x):n};x.ticks=function(){return e=Array.from(arguments),x};x.tickArguments=function(t){return arguments.length?(e=t==null?[]:Array.from(t),x):e.slice()};x.tickValues=function(t){return arguments.length?(r=t==null?null:Array.from(t),x):r&&r.slice()};x.tickFormat=function(t){return arguments.length?(i=t,x):i};x.tickSize=function(t){return arguments.length?(y=_=+t,x):y};x.tickSizeInner=function(t){return arguments.length?(y=+t,x):y};x.tickSizeOuter=function(t){return arguments.length?(_=+t,x):_};x.tickPadding=function(t){return arguments.length?(m=+t,x):m};x.offset=function(t){return arguments.length?(g=+t,x):g};return x}function _(t){return y(u,t)}function m(t){return y(a,t)}function g(t){return y(s,t)}function w(t){return y(l,t)}function A(){}function b(t){return t==null?A:function(){return this.querySelector(t)}}function x(t){if(typeof t!=="function")t=b(t);for(var n=this._groups,e=n.length,r=new Array(e),i=0;i=g)g=m+1;while(!(A=y[g])&&++g=0;){if(u=r[i]){if(o&&u.compareDocumentPosition(o)^4)o.parentNode.insertBefore(u,o);o=u}}}return this}function $(t){if(!t)t=tt;function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}for(var e=this._groups,r=e.length,i=new Array(r),o=0;on?1:t>=n?0:NaN}function nt(){var t=arguments[0];arguments[0]=this;t.apply(null,arguments);return this}function et(){return Array.from(this)}function rt(){for(var t=this._groups,n=0,e=t.length;n=0&&(n=t.slice(0,e))!=="xmlns")t=t.slice(e+1);return st.hasOwnProperty(n)?{space:st[n],local:t}:t}function ct(t){return function(){this.removeAttribute(t)}}function ft(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ht(t,n){return function(){this.setAttribute(t,n)}}function pt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function vt(t,n){return function(){var e=n.apply(this,arguments);if(e==null)this.removeAttribute(t);else this.setAttribute(t,e)}}function dt(t,n){return function(){var e=n.apply(this,arguments);if(e==null)this.removeAttributeNS(t.space,t.local);else this.setAttributeNS(t.space,t.local,e)}}function yt(t,n){var e=lt(t);if(arguments.length<2){var r=this.node();return e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}return this.each((n==null?e.local?ft:ct:typeof n==="function"?e.local?dt:vt:e.local?pt:ht)(e,n))}function _t(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function mt(t){return function(){this.style.removeProperty(t)}}function gt(t,n,e){return function(){this.style.setProperty(t,n,e)}}function wt(t,n,e){return function(){var r=n.apply(this,arguments);if(r==null)this.style.removeProperty(t);else this.style.setProperty(t,r,e)}}function At(t,n,e){return arguments.length>1?this.each((n==null?mt:typeof n==="function"?wt:gt)(t,n,e==null?"":e)):bt(this.node(),t)}function bt(t,n){return t.style.getPropertyValue(n)||_t(t).getComputedStyle(t,null).getPropertyValue(n)}function xt(t){return function(){delete this[t]}}function kt(t,n){return function(){this[t]=n}}function zt(t,n){return function(){var e=n.apply(this,arguments);if(e==null)delete this[t];else this[t]=e}}function Mt(t,n){return arguments.length>1?this.each((n==null?xt:typeof n==="function"?zt:kt)(t,n)):this.node()[t]}function Et(t){return t.trim().split(/^|\s+/)}function Tt(t){return t.classList||new Ct(t)}function Ct(t){this._node=t;this._names=Et(t.getAttribute("class")||"")}Ct.prototype={add:function(t){var n=this._names.indexOf(t);if(n<0){this._names.push(t);this._node.setAttribute("class",this._names.join(" "))}},remove:function(t){var n=this._names.indexOf(t);if(n>=0){this._names.splice(n,1);this._node.setAttribute("class",this._names.join(" "))}},contains:function(t){return this._names.indexOf(t)>=0}};function St(t,n){var e=Tt(t),r=-1,i=n.length;while(++r=0)n=t.slice(e+1),t=t.slice(0,e);return{type:t,name:n}}))}function ln(t){return function(){var n=this.__on;if(!n)return;for(var e=0,r=-1,i=n.length,o;e{r.stop();t(e+n)}),n,e);return r}var zn=(0,bn.A)("start","end","cancel","interrupt");var Mn=[];var En=0;var Tn=1;var Cn=2;var Sn=3;var Nn=4;var Pn=5;var Vn=6;function Bn(t,n,e,r,i,o){var u=t.__transition;if(!u)t.__transition={};else if(e in u)return;Gn(t,e,{name:n,index:r,group:i,on:zn,tween:Mn,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:En})}function In(t,n){var e=Un(t,n);if(e.state>En)throw new Error("too late; already scheduled");return e}function Dn(t,n){var e=Un(t,n);if(e.state>Sn)throw new Error("too late; already running");return e}function Un(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Gn(t,n,e){var r=t.__transition,i;r[n]=e;e.timer=(0,xn.O1)(o,0,e.time);function o(t){e.state=Tn;e.timer.restart(u,e.delay,e.time);if(e.delay<=t)u(t-e.delay)}function u(o){var l,c,f,h;if(e.state!==Tn)return s();for(l in r){h=r[l];if(h.name!==e.name)continue;if(h.state===Sn)return kn(u);if(h.state===Nn){h.state=Vn;h.timer.stop();h.on.call("interrupt",t,t.__data__,h.index,h.group);delete r[l]}else if(+lCn&&r.state=0)t=t.slice(0,n);return!t||t==="start"}))}function be(t,n,e){var r,i,o=Ae(n)?In:Dn;return function(){var u=o(this,t),a=u.on;if(a!==r)(i=(r=a).copy()).on(n,e);u.on=i}}function xe(t,n){var e=this._id;return arguments.length<2?Un(this.node(),e).on.on(t):this.each(be(e,t,n))}function ke(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;if(n)n.removeChild(this)}}function ze(){return this.on("end.remove",ke(this._id))}function Me(t){var n=this._name,e=this._id;if(typeof t!=="function")t=b(t);for(var r=this._groups,i=r.length,o=new Array(i),u=0;u{const n=t.identifier;t=pointer(t,r);t.point0=t.slice();t.identifier=n;return t}));interrupt(r);var B=c(r,arguments,true).beforestart();if(o==="overlay"){if(v)C=true;const e=[V[0],V[1]||V[0]];h.selection=v=[[y=t===vr?d:cr(e[0][0],e[1][0]),g=t===pr?m:cr(e[0][1],e[1][1])],[b=t===vr?A:lr(e[0][0],e[1][0]),z=t===pr?k:lr(e[0][1],e[1][1])]];if(V.length>1)L(n)}else{y=v[0][0];g=v[0][1];b=v[1][0];z=v[1][1]}_=y;w=g;x=b;M=z;var I=select(r).attr("pointer-events","none");var D=I.selectAll(".overlay").attr("cursor",yr[o]);if(n.touches){B.moved=G;B.ended=O}else{var U=select(n.view).on("mousemove.brush",G,true).on("mouseup.brush",O,true);if(i)U.on("keydown.brush",H,true).on("keyup.brush",Y,true);dragDisable(n.view)}l.call(r);B.start(n,u.name);function G(t){for(const n of t.changedTouches||[t]){for(const t of V)if(t.identifier===n.identifier)t.cur=pointer(n,r)}if(S&&!N&&!P&&V.length===1){const t=V[0];if(sr(t.cur[0]-t[0])>sr(t.cur[1]-t[1]))P=true;else N=true}for(const n of V)if(n.cur)n[0]=n.cur[0],n[1]=n.cur[1];C=true;noevent(t);L(t)}function L(t){const n=V[0],e=n.point0;var i;E=n[0]-e[0];T=n[1]-e[1];switch(u){case or:case ir:{if(s)E=lr(d-y,cr(A-b,E)),_=y+E,x=b+E;if(f)T=lr(m-g,cr(k-z,T)),w=g+T,M=z+T;break}case ur:{if(V[1]){if(s)_=lr(d,cr(A,V[0][0])),x=lr(d,cr(A,V[1][0])),s=1;if(f)w=lr(m,cr(k,V[0][1])),M=lr(m,cr(k,V[1][1])),f=1}else{if(s<0)E=lr(d-y,cr(A-y,E)),_=y+E,x=b;else if(s>0)E=lr(d-b,cr(A-b,E)),_=y,x=b+E;if(f<0)T=lr(m-g,cr(k-g,T)),w=g+T,M=z;else if(f>0)T=lr(m-z,cr(k-z,T)),w=g,M=z+T}break}case ar:{if(s)_=lr(d,cr(A,y-E*s)),x=lr(d,cr(A,b+E*s));if(f)w=lr(m,cr(k,g-T*f)),M=lr(m,cr(k,z+T*f));break}}if(x<_){s*=-1;i=y,y=b,b=i;i=_,_=x,x=i;if(o in _r)D.attr("cursor",yr[o=_r[o]])}if(M0)y=_-E;if(f<0)z=M-T;else if(f>0)g=w-T;u=or;D.attr("cursor",yr.selection);L(t)}break}default:return}noevent(t)}function Y(t){switch(t.keyCode){case 16:{if(S){N=P=S=false;L(t)}break}case 18:{if(u===ar){if(s<0)b=x;else if(s>0)y=_;if(f<0)z=M;else if(f>0)g=w;u=ur;L(t)}break}case 32:{if(u===or){if(t.altKey){if(s)b=x-E*s,y=_+E*s;if(f)z=M-T*f,g=w+T*f;u=ar}else{if(s<0)b=x;else if(s>0)y=_;if(f<0)z=M;else if(f>0)g=w;u=ur}D.attr("cursor",yr[o]);L(t)}break}default:return}noevent(t)}}function p(t){c(this,arguments).moved(t)}function v(t){c(this,arguments).ended(t)}function d(){var e=this.__brush||{selection:null};e.extent=hr(n.apply(this,arguments));e.dim=t;return e}s.extent=function(t){return arguments.length?(n=typeof t==="function"?t:constant(hr(t)),s):n};s.filter=function(t){return arguments.length?(e=typeof t==="function"?t:constant(!!t),s):e};s.touchable=function(t){return arguments.length?(r=typeof t==="function"?t:constant(!!t),s):r};s.handleSize=function(t){return arguments.length?(u=+t,s):u};s.keyModifiers=function(t){return arguments.length?(i=!!t,s):i};s.on=function(){var t=o.on.apply(o,arguments);return t===o?s:t};return s}var Pr=e(67360);var Vr=e(18312);var Br=e(25758);var Ir=e(16527);function Dr(){var t=(0,Ir.A)().unknown(undefined),n=t.domain,e=t.range,r=0,i=1,o,u,a=false,s=0,l=0,c=.5;delete t.unknown;function f(){var t=n().length,f=it?1:n>=t?0:NaN}function Wr(t){return t}var Zr=e(98247);function Jr(){var t=Wr,n=Fr,e=null,r=(0,jr.A)(0),i=(0,jr.A)(Zr.FA),o=(0,jr.A)(0);function u(u){var a,s=(u=(0,Kr.A)(u)).length,l,c,f=0,h=new Array(s),p=new Array(s),v=+r.apply(this,arguments),d=Math.min(Zr.FA,Math.max(-Zr.FA,i.apply(this,arguments)-v)),y,_=Math.min(Math.abs(d)/s,o.apply(this,arguments)),m=_*(d<0?-1:1),g;for(a=0;a0){f+=g}}if(n!=null)h.sort((function(t,e){return n(p[t],p[e])}));else if(e!=null)h.sort((function(t,n){return e(u[t],u[n])}));for(a=0,c=f?(d-s*m)/f:0;a0?g*c:0)+m,p[l]={data:u[l],index:a,value:g,startAngle:v,endAngle:y,padAngle:_}}return p}u.value=function(n){return arguments.length?(t=typeof n==="function"?n:(0,jr.A)(+n),u):t};u.sortValues=function(t){return arguments.length?(n=t,e=null,u):n};u.sort=function(t){return arguments.length?(e=t,n=null,u):e};u.startAngle=function(t){return arguments.length?(r=typeof t==="function"?t:(0,jr.A)(+t),u):r};u.endAngle=function(t){return arguments.length?(i=typeof t==="function"?t:(0,jr.A)(+t),u):i};u.padAngle=function(t){return arguments.length?(o=typeof t==="function"?t:(0,jr.A)(+t),u):o};return u}var Qr=e(82456);var $r=e(69683);var ti=e(24363);class ni{constructor(t,n){this._context=t;this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line}point(t,n){t=+t,n=+n;switch(this._point){case 0:{this._point=1;if(this._line)this._context.lineTo(t,n);else this._context.moveTo(t,n);break}case 1:this._point=2;default:{if(this._x)this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n);else this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}class ei{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){t=+t,n=+n;if(this._point===0){this._point=1}else{const e=pointRadial(this._x0,this._y0);const r=pointRadial(this._x0,this._y0=(this._y0+n)/2);const i=pointRadial(t,this._y0);const o=pointRadial(t,n);this._context.moveTo(...e);this._context.bezierCurveTo(...r,...i,...o)}this._x0=t,this._y0=n}}function ri(t){return new ni(t,true)}function ii(t){return new ni(t,false)}function oi(t){return new ei(t)}var ui=e(54545);var ai=e(13893);var si=e(46457);var li=e(43793);var ci=e(25633);var fi=e(13309);var hi=e(76413);var pi=e(43272);var vi=e(71228);var di=e(67694);var yi=e(29944);var _i=e(79011);var mi=e(26530);var gi=e(61147);var wi=e(23383);var Ai=e(9017);var bi=e(20293);var xi=e(61779);var ki=e(77849);var zi=e(82692);function Mi(t,n,e){this.k=t;this.x=n;this.y=e}Mi.prototype={constructor:Mi,scale:function(t){return t===1?this:new Mi(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new Mi(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Ei=new Mi(1,0,0);Ti.prototype=Mi.prototype;function Ti(t){while(!t.__zoom)if(!(t=t.parentNode))return Ei;return t.__zoom}function Ci(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Si(){var t=this;if(t instanceof SVGElement){t=t.ownerSVGElement||t;if(t.hasAttribute("viewBox")){t=t.viewBox.baseVal;return[[t.x,t.y],[t.x+t.width,t.y+t.height]]}return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}return[[0,0],[t.clientWidth,t.clientHeight]]}function Ni(){return this.__zoom||identity}function Pi(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Vi(){return navigator.maxTouchPoints||"ontouchstart"in this}function Bi(t,n,e){var r=t.invertX(n[0][0])-e[0][0],i=t.invertX(n[1][0])-e[1][0],o=t.invertY(n[0][1])-e[0][1],u=t.invertY(n[1][1])-e[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),u>o?(o+u)/2:Math.min(0,o)||Math.max(0,u))}function Ii(){var t=Ci,n=Si,e=Bi,r=Pi,i=Vi,o=[0,Infinity],u=[[-Infinity,-Infinity],[Infinity,Infinity]],a=250,s=interpolateZoom,l=dispatch("start","zoom","end"),c,f,h,p=500,v=150,d=0,y=10;function _(t){t.property("__zoom",Ni).on("wheel.zoom",k,{passive:false}).on("mousedown.zoom",z).on("dblclick.zoom",M).filter(i).on("touchstart.zoom",E).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",C).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}_.transform=function(t,n,e,r){var i=t.selection?t.selection():t;i.property("__zoom",Ni);if(t!==i){A(t,n,e,r)}else{i.interrupt().each((function(){b(this,arguments).event(r).start().zoom(null,typeof n==="function"?n.apply(this,arguments):n).end()}))}};_.scaleBy=function(t,n,e,r){_.scaleTo(t,(function(){var t=this.__zoom.k,e=typeof n==="function"?n.apply(this,arguments):n;return t*e}),e,r)};_.scaleTo=function(t,r,i,o){_.transform(t,(function(){var t=n.apply(this,arguments),o=this.__zoom,a=i==null?w(t):typeof i==="function"?i.apply(this,arguments):i,s=o.invert(a),l=typeof r==="function"?r.apply(this,arguments):r;return e(g(m(o,l),a,s),t,u)}),i,o)};_.translateBy=function(t,r,i,o){_.transform(t,(function(){return e(this.__zoom.translate(typeof r==="function"?r.apply(this,arguments):r,typeof i==="function"?i.apply(this,arguments):i),n.apply(this,arguments),u)}),null,o)};_.translateTo=function(t,r,i,o,a){_.transform(t,(function(){var t=n.apply(this,arguments),a=this.__zoom,s=o==null?w(t):typeof o==="function"?o.apply(this,arguments):o;return e(identity.translate(s[0],s[1]).scale(a.k).translate(typeof r==="function"?-r.apply(this,arguments):-r,typeof i==="function"?-i.apply(this,arguments):-i),t,u)}),o,a)};function m(t,n){n=Math.max(o[0],Math.min(o[1],n));return n===t.k?t:new Transform(n,t.x,t.y)}function g(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new Transform(t.k,r,i)}function w(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function A(t,e,r,i){t.on("start.zoom",(function(){b(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){b(this,arguments).event(i).end()})).tween("zoom",(function(){var t=this,o=arguments,u=b(t,o).event(i),a=n.apply(t,o),l=r==null?w(a):typeof r==="function"?r.apply(t,o):r,c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),f=t.__zoom,h=typeof e==="function"?e.apply(t,o):e,p=s(f.invert(l).concat(c/f.k),h.invert(l).concat(c/h.k));return function(t){if(t===1)t=h;else{var n=p(t),e=c/n[2];t=new Transform(e,l[0]-n[0]*e,l[1]-n[1]*e)}u.zoom(null,t)}}))}function b(t,n,e){return!e&&t.__zooming||new x(t,n)}function x(t,e){this.that=t;this.args=e;this.active=0;this.sourceEvent=null;this.extent=n.apply(t,e);this.taps=0}x.prototype={event:function(t){if(t)this.sourceEvent=t;return this},start:function(){if(++this.active===1){this.that.__zooming=this;this.emit("start")}return this},zoom:function(t,n){if(this.mouse&&t!=="mouse")this.mouse[1]=n.invert(this.mouse[0]);if(this.touch0&&t!=="touch")this.touch0[1]=n.invert(this.touch0[0]);if(this.touch1&&t!=="touch")this.touch1[1]=n.invert(this.touch1[0]);this.that.__zoom=n;this.emit("zoom");return this},end:function(){if(--this.active===0){delete this.that.__zooming;this.emit("end")}return this},emit:function(t){var n=select(this.that).datum();l.call(t,this.that,new ZoomEvent(t,{sourceEvent:this.sourceEvent,target:_,type:t,transform:this.that.__zoom,dispatch:l}),n)}};function k(n,...i){if(!t.apply(this,arguments))return;var a=b(this,i).event(n),s=this.__zoom,l=Math.max(o[0],Math.min(o[1],s.k*Math.pow(2,r.apply(this,arguments)))),c=pointer(n);if(a.wheel){if(a.mouse[0][0]!==c[0]||a.mouse[0][1]!==c[1]){a.mouse[1]=s.invert(a.mouse[0]=c)}clearTimeout(a.wheel)}else if(s.k===l)return;else{a.mouse=[c,s.invert(c)];interrupt(this);a.start()}noevent(n);a.wheel=setTimeout(f,v);a.zoom("mouse",e(g(m(s,l),a.mouse[0],a.mouse[1]),a.extent,u));function f(){a.wheel=null;a.end()}}function z(n,...r){if(h||!t.apply(this,arguments))return;var i=n.currentTarget,o=b(this,r,true).event(n),a=select(n.view).on("mousemove.zoom",f,true).on("mouseup.zoom",p,true),s=pointer(n,i),l=n.clientX,c=n.clientY;dragDisable(n.view);nopropagation(n);o.mouse=[s,this.__zoom.invert(s)];interrupt(this);o.start();function f(t){noevent(t);if(!o.moved){var n=t.clientX-l,r=t.clientY-c;o.moved=n*n+r*r>d}o.event(t).zoom("mouse",e(g(o.that.__zoom,o.mouse[0]=pointer(t,i),o.mouse[1]),o.extent,u))}function p(t){a.on("mousemove.zoom mouseup.zoom",null);dragEnable(t.view,o.moved);noevent(t);o.event(t).end()}}function M(r,...i){if(!t.apply(this,arguments))return;var o=this.__zoom,s=pointer(r.changedTouches?r.changedTouches[0]:r,this),l=o.invert(s),c=o.k*(r.shiftKey?.5:2),f=e(g(m(o,c),s,l),n.apply(this,i),u);noevent(r);if(a>0)select(this).transition().duration(a).call(A,f,s,r);else select(this).call(_.transform,f,s,r)}function E(n,...e){if(!t.apply(this,arguments))return;var r=n.touches,i=r.length,o=b(this,e,n.changedTouches.length===i).event(n),u,a,s,l;nopropagation(n);for(a=0;a{e=r.nmd(e);var n=200;var s="__lodash_hash_undefined__";var i=800,o=16;var a=9007199254740991;var c="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",l="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Function]",g="[object GeneratorFunction]",m="[object Map]",y="[object Number]",b="[object Null]",v="[object Object]",_="[object Proxy]",w="[object RegExp]",T="[object Set]",E="[object String]",S="[object Undefined]",k="[object WeakMap]";var C="[object ArrayBuffer]",R="[object DataView]",M="[object Float32Array]",j="[object Float64Array]",O="[object Int8Array]",P="[object Int16Array]",N="[object Int32Array]",x="[object Uint8Array]",L="[object Uint8ClampedArray]",q="[object Uint16Array]",A="[object Uint32Array]";var $=/[\\^$.*+?()[\]{}|]/g;var D=/^\[object .+?Constructor\]$/;var z=/^(?:0|[1-9]\d*)$/;var I={};I[M]=I[j]=I[O]=I[P]=I[N]=I[x]=I[L]=I[q]=I[A]=true;I[c]=I[u]=I[C]=I[l]=I[R]=I[d]=I[h]=I[p]=I[m]=I[y]=I[v]=I[w]=I[T]=I[E]=I[k]=false;var B=typeof r.g=="object"&&r.g&&r.g.Object===Object&&r.g;var W=typeof self=="object"&&self&&self.Object===Object&&self;var U=B||W||Function("return this")();var F=true&&t&&!t.nodeType&&t;var J=F&&"object"=="object"&&e&&!e.nodeType&&e;var V=J&&J.exports===F;var H=V&&B.process;var G=function(){try{var e=J&&J.require&&J.require("util").types;if(e){return e}return H&&H.binding&&H.binding("util")}catch(t){}}();var K=G&&G.isTypedArray;function Q(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function X(e,t){var r=-1,n=Array(e);while(++r-1}function De(e,t){var r=this.__data__,n=et(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}xe.prototype.clear=Le;xe.prototype["delete"]=qe;xe.prototype.get=Ae;xe.prototype.has=$e;xe.prototype.set=De;function ze(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t1?r[s-1]:undefined,o=s>2?r[2]:undefined;i=e.length>3&&typeof i=="function"?(s--,i):undefined;if(o&&St(r[0],r[1],o)){i=s<3?undefined:i;s=1}t=Object(t);while(++n-1&&e%1==0&&e0){if(++t>=i){return arguments[0]}}else{t=0}return e.apply(undefined,arguments)}}function Lt(e){if(e!=null){try{return ie.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function qt(e,t){return e===t||e!==e&&t!==t}var At=st(function(){return arguments}())?st:function(e){return Ft(e)&&oe.call(e,"callee")&&!ye.call(e,"callee")};var $t=Array.isArray;function Dt(e){return e!=null&&Wt(e.length)&&!Bt(e)}function zt(e){return Ft(e)&&Dt(e)}var It=we||Yt;function Bt(e){if(!Ut(e)){return false}var t=nt(e);return t==p||t==g||t==f||t==_}function Wt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=a}function Ut(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ft(e){return e!=null&&typeof e=="object"}function Jt(e){if(!Ft(e)||nt(e)!=v){return false}var t=ge(e);if(t===null){return true}var r=oe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ie.call(r)==ue}var Vt=K?Y(K):ot;function Ht(e){return mt(e,Gt(e))}function Gt(e){return Dt(e)?Xe(e,true):at(e)}var Kt=yt((function(e,t,r,n){ct(e,t,r,n)}));function Qt(e){return function(){return e}}function Xt(e){return e}function Yt(){return false}e.exports=Kt},76439:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0;const i=r(54615);i.default.install();const o=r(53281);s(r(53281),t);class a extends o.AbstractMessageReader{constructor(e){super();this._onData=new o.Emitter;this._messageListener=e=>{this._onData.fire(e.data)};e.addEventListener("error",(e=>this.fireError(e)));e.onmessage=this._messageListener}listen(e){return this._onData.event(e)}}t.BrowserMessageReader=a;class c extends o.AbstractMessageWriter{constructor(e){super();this.port=e;this.errorCount=0;e.addEventListener("error",(e=>this.fireError(e)))}write(e){try{this.port.postMessage(e);return Promise.resolve()}catch(t){this.handleError(t,e);return Promise.reject(t)}}handleError(e,t){this.errorCount++;this.fireError(e,t,this.errorCount)}end(){}}t.BrowserMessageWriter=c;function u(e,t,r,n){if(r===undefined){r=o.NullLogger}if(o.ConnectionStrategy.is(n)){n={connectionStrategy:n}}return(0,o.createMessageConnection)(e,t,r,n)}t.createMessageConnection=u},54615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(53281);class s extends n.AbstractMessageBuffer{constructor(e="utf-8"){super(e);this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return s.emptyBuffer}fromString(e,t){return(new TextEncoder).encode(e)}toString(e,t){if(t==="ascii"){return this.asciiDecoder.decode(e)}else{return new TextDecoder(t).decode(e)}}asNative(e,t){if(t===undefined){return e}else{return e.slice(0,t)}}allocNative(e){return new Uint8Array(e)}}s.emptyBuffer=new Uint8Array(0);class i{constructor(e){this.socket=e;this._onData=new n.Emitter;this._messageListener=e=>{const t=e.data;t.arrayBuffer().then((e=>{this._onData.fire(new Uint8Array(e))}),(()=>{(0,n.RAL)().console.error(`Converting blob to array buffer failed.`)}))};this.socket.addEventListener("message",this._messageListener)}onClose(e){this.socket.addEventListener("close",e);return n.Disposable.create((()=>this.socket.removeEventListener("close",e)))}onError(e){this.socket.addEventListener("error",e);return n.Disposable.create((()=>this.socket.removeEventListener("error",e)))}onEnd(e){this.socket.addEventListener("end",e);return n.Disposable.create((()=>this.socket.removeEventListener("end",e)))}onData(e){return this._onData.event(e)}}class o{constructor(e){this.socket=e}onClose(e){this.socket.addEventListener("close",e);return n.Disposable.create((()=>this.socket.removeEventListener("close",e)))}onError(e){this.socket.addEventListener("error",e);return n.Disposable.create((()=>this.socket.removeEventListener("error",e)))}onEnd(e){this.socket.addEventListener("end",e);return n.Disposable.create((()=>this.socket.removeEventListener("end",e)))}write(e,t){if(typeof e==="string"){if(t!==undefined&&t!=="utf-8"){throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t}`)}this.socket.send(e)}else{this.socket.send(e)}return Promise.resolve()}end(){this.socket.close()}}const a=new TextEncoder;const c=Object.freeze({messageBuffer:Object.freeze({create:e=>new s(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{if(t.charset!=="utf-8"){throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`)}return Promise.resolve(a.encode(JSON.stringify(e,undefined,0)))}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{if(!(e instanceof Uint8Array)){throw new Error(`In a Browser environments only Uint8Arrays are supported.`)}return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))}})}),stream:Object.freeze({asReadableStream:e=>new i(e),asWritableStream:e=>new o(e)}),console,timer:Object.freeze({setTimeout(e,t,...r){const n=setTimeout(e,t,...r);return{dispose:()=>clearTimeout(n)}},setImmediate(e,...t){const r=setTimeout(e,0,...t);return{dispose:()=>clearTimeout(r)}},setInterval(e,t,...r){const n=setInterval(e,t,...r);return{dispose:()=>clearInterval(n)}}})});function u(){return c}(function(e){function t(){n.RAL.install(c)}e.install=t})(u||(u={}));t["default"]=u},53281:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.AbstractMessageBuffer=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0;t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=void 0;const n=r(96177);Object.defineProperty(t,"Message",{enumerable:true,get:function(){return n.Message}});Object.defineProperty(t,"RequestType",{enumerable:true,get:function(){return n.RequestType}});Object.defineProperty(t,"RequestType0",{enumerable:true,get:function(){return n.RequestType0}});Object.defineProperty(t,"RequestType1",{enumerable:true,get:function(){return n.RequestType1}});Object.defineProperty(t,"RequestType2",{enumerable:true,get:function(){return n.RequestType2}});Object.defineProperty(t,"RequestType3",{enumerable:true,get:function(){return n.RequestType3}});Object.defineProperty(t,"RequestType4",{enumerable:true,get:function(){return n.RequestType4}});Object.defineProperty(t,"RequestType5",{enumerable:true,get:function(){return n.RequestType5}});Object.defineProperty(t,"RequestType6",{enumerable:true,get:function(){return n.RequestType6}});Object.defineProperty(t,"RequestType7",{enumerable:true,get:function(){return n.RequestType7}});Object.defineProperty(t,"RequestType8",{enumerable:true,get:function(){return n.RequestType8}});Object.defineProperty(t,"RequestType9",{enumerable:true,get:function(){return n.RequestType9}});Object.defineProperty(t,"ResponseError",{enumerable:true,get:function(){return n.ResponseError}});Object.defineProperty(t,"ErrorCodes",{enumerable:true,get:function(){return n.ErrorCodes}});Object.defineProperty(t,"NotificationType",{enumerable:true,get:function(){return n.NotificationType}});Object.defineProperty(t,"NotificationType0",{enumerable:true,get:function(){return n.NotificationType0}});Object.defineProperty(t,"NotificationType1",{enumerable:true,get:function(){return n.NotificationType1}});Object.defineProperty(t,"NotificationType2",{enumerable:true,get:function(){return n.NotificationType2}});Object.defineProperty(t,"NotificationType3",{enumerable:true,get:function(){return n.NotificationType3}});Object.defineProperty(t,"NotificationType4",{enumerable:true,get:function(){return n.NotificationType4}});Object.defineProperty(t,"NotificationType5",{enumerable:true,get:function(){return n.NotificationType5}});Object.defineProperty(t,"NotificationType6",{enumerable:true,get:function(){return n.NotificationType6}});Object.defineProperty(t,"NotificationType7",{enumerable:true,get:function(){return n.NotificationType7}});Object.defineProperty(t,"NotificationType8",{enumerable:true,get:function(){return n.NotificationType8}});Object.defineProperty(t,"NotificationType9",{enumerable:true,get:function(){return n.NotificationType9}});Object.defineProperty(t,"ParameterStructures",{enumerable:true,get:function(){return n.ParameterStructures}});const s=r(93352);Object.defineProperty(t,"LinkedMap",{enumerable:true,get:function(){return s.LinkedMap}});Object.defineProperty(t,"LRUCache",{enumerable:true,get:function(){return s.LRUCache}});Object.defineProperty(t,"Touch",{enumerable:true,get:function(){return s.Touch}});const i=r(34019);Object.defineProperty(t,"Disposable",{enumerable:true,get:function(){return i.Disposable}});const o=r(62676);Object.defineProperty(t,"Event",{enumerable:true,get:function(){return o.Event}});Object.defineProperty(t,"Emitter",{enumerable:true,get:function(){return o.Emitter}});const a=r(59850);Object.defineProperty(t,"CancellationTokenSource",{enumerable:true,get:function(){return a.CancellationTokenSource}});Object.defineProperty(t,"CancellationToken",{enumerable:true,get:function(){return a.CancellationToken}});const c=r(74996);Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:true,get:function(){return c.SharedArraySenderStrategy}});Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:true,get:function(){return c.SharedArrayReceiverStrategy}});const u=r(59085);Object.defineProperty(t,"MessageReader",{enumerable:true,get:function(){return u.MessageReader}});Object.defineProperty(t,"AbstractMessageReader",{enumerable:true,get:function(){return u.AbstractMessageReader}});Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:true,get:function(){return u.ReadableStreamMessageReader}});const f=r(23193);Object.defineProperty(t,"MessageWriter",{enumerable:true,get:function(){return f.MessageWriter}});Object.defineProperty(t,"AbstractMessageWriter",{enumerable:true,get:function(){return f.AbstractMessageWriter}});Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:true,get:function(){return f.WriteableStreamMessageWriter}});const l=r(89244);Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:true,get:function(){return l.AbstractMessageBuffer}});const d=r(90577);Object.defineProperty(t,"ConnectionStrategy",{enumerable:true,get:function(){return d.ConnectionStrategy}});Object.defineProperty(t,"ConnectionOptions",{enumerable:true,get:function(){return d.ConnectionOptions}});Object.defineProperty(t,"NullLogger",{enumerable:true,get:function(){return d.NullLogger}});Object.defineProperty(t,"createMessageConnection",{enumerable:true,get:function(){return d.createMessageConnection}});Object.defineProperty(t,"ProgressToken",{enumerable:true,get:function(){return d.ProgressToken}});Object.defineProperty(t,"ProgressType",{enumerable:true,get:function(){return d.ProgressType}});Object.defineProperty(t,"Trace",{enumerable:true,get:function(){return d.Trace}});Object.defineProperty(t,"TraceValues",{enumerable:true,get:function(){return d.TraceValues}});Object.defineProperty(t,"TraceFormat",{enumerable:true,get:function(){return d.TraceFormat}});Object.defineProperty(t,"SetTraceNotification",{enumerable:true,get:function(){return d.SetTraceNotification}});Object.defineProperty(t,"LogTraceNotification",{enumerable:true,get:function(){return d.LogTraceNotification}});Object.defineProperty(t,"ConnectionErrors",{enumerable:true,get:function(){return d.ConnectionErrors}});Object.defineProperty(t,"ConnectionError",{enumerable:true,get:function(){return d.ConnectionError}});Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:true,get:function(){return d.CancellationReceiverStrategy}});Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:true,get:function(){return d.CancellationSenderStrategy}});Object.defineProperty(t,"CancellationStrategy",{enumerable:true,get:function(){return d.CancellationStrategy}});Object.defineProperty(t,"MessageStrategy",{enumerable:true,get:function(){return d.MessageStrategy}});const h=r(69590);t.RAL=h.default},59850:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CancellationTokenSource=t.CancellationToken=void 0;const n=r(69590);const s=r(78585);const i=r(62676);var o;(function(e){e.None=Object.freeze({isCancellationRequested:false,onCancellationRequested:i.Event.None});e.Cancelled=Object.freeze({isCancellationRequested:true,onCancellationRequested:i.Event.None});function t(t){const r=t;return r&&(r===e.None||r===e.Cancelled||s.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(o||(t.CancellationToken=o={}));const a=Object.freeze((function(e,t){const r=(0,n.default)().timer.setTimeout(e.bind(t),0);return{dispose(){r.dispose()}}}));class c{constructor(){this._isCancelled=false}cancel(){if(!this._isCancelled){this._isCancelled=true;if(this._emitter){this._emitter.fire(undefined);this.dispose()}}}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){if(this._isCancelled){return a}if(!this._emitter){this._emitter=new i.Emitter}return this._emitter.event}dispose(){if(this._emitter){this._emitter.dispose();this._emitter=undefined}}}class u{get token(){if(!this._token){this._token=new c}return this._token}cancel(){if(!this._token){this._token=o.Cancelled}else{this._token.cancel()}}dispose(){if(!this._token){this._token=o.None}else if(this._token instanceof c){this._token.dispose()}}}t.CancellationTokenSource=u},90577:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createMessageConnection=t.ConnectionOptions=t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.RequestCancellationReceiverStrategy=t.IdCancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0;const n=r(69590);const s=r(78585);const i=r(96177);const o=r(93352);const a=r(62676);const c=r(59850);var u;(function(e){e.type=new i.NotificationType("$/cancelRequest")})(u||(u={}));var f;(function(e){function t(e){return typeof e==="string"||typeof e==="number"}e.is=t})(f||(t.ProgressToken=f={}));var l;(function(e){e.type=new i.NotificationType("$/progress")})(l||(l={}));class d{constructor(){}}t.ProgressType=d;var h;(function(e){function t(e){return s.func(e)}e.is=t})(h||(h={}));t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var p;(function(e){e[e["Off"]=0]="Off";e[e["Messages"]=1]="Messages";e[e["Compact"]=2]="Compact";e[e["Verbose"]=3]="Verbose"})(p||(t.Trace=p={}));var g;(function(e){e.Off="off";e.Messages="messages";e.Compact="compact";e.Verbose="verbose"})(g||(t.TraceValues=g={}));(function(e){function t(t){if(!s.string(t)){return e.Off}t=t.toLowerCase();switch(t){case"off":return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose;default:return e.Off}}e.fromString=t;function r(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}e.toString=r})(p||(t.Trace=p={}));var m;(function(e){e["Text"]="text";e["JSON"]="json"})(m||(t.TraceFormat=m={}));(function(e){function t(t){if(!s.string(t)){return e.Text}t=t.toLowerCase();if(t==="json"){return e.JSON}else{return e.Text}}e.fromString=t})(m||(t.TraceFormat=m={}));var y;(function(e){e.type=new i.NotificationType("$/setTrace")})(y||(t.SetTraceNotification=y={}));var b;(function(e){e.type=new i.NotificationType("$/logTrace")})(b||(t.LogTraceNotification=b={}));var v;(function(e){e[e["Closed"]=1]="Closed";e[e["Disposed"]=2]="Disposed";e[e["AlreadyListening"]=3]="AlreadyListening"})(v||(t.ConnectionErrors=v={}));class _ extends Error{constructor(e,t){super(t);this.code=e;Object.setPrototypeOf(this,_.prototype)}}t.ConnectionError=_;var w;(function(e){function t(e){const t=e;return t&&s.func(t.cancelUndispatched)}e.is=t})(w||(t.ConnectionStrategy=w={}));var T;(function(e){function t(e){const t=e;return t&&(t.kind===undefined||t.kind==="id")&&s.func(t.createCancellationTokenSource)&&(t.dispose===undefined||s.func(t.dispose))}e.is=t})(T||(t.IdCancellationReceiverStrategy=T={}));var E;(function(e){function t(e){const t=e;return t&&t.kind==="request"&&s.func(t.createCancellationTokenSource)&&(t.dispose===undefined||s.func(t.dispose))}e.is=t})(E||(t.RequestCancellationReceiverStrategy=E={}));var S;(function(e){e.Message=Object.freeze({createCancellationTokenSource(e){return new c.CancellationTokenSource}});function t(e){return T.is(e)||E.is(e)}e.is=t})(S||(t.CancellationReceiverStrategy=S={}));var k;(function(e){e.Message=Object.freeze({sendCancellation(e,t){return e.sendNotification(u.type,{id:t})},cleanup(e){}});function t(e){const t=e;return t&&s.func(t.sendCancellation)&&s.func(t.cleanup)}e.is=t})(k||(t.CancellationSenderStrategy=k={}));var C;(function(e){e.Message=Object.freeze({receiver:S.Message,sender:k.Message});function t(e){const t=e;return t&&S.is(t.receiver)&&k.is(t.sender)}e.is=t})(C||(t.CancellationStrategy=C={}));var R;(function(e){function t(e){const t=e;return t&&s.func(t.handleMessage)}e.is=t})(R||(t.MessageStrategy=R={}));var M;(function(e){function t(e){const t=e;return t&&(C.is(t.cancellationStrategy)||w.is(t.connectionStrategy)||R.is(t.messageStrategy))}e.is=t})(M||(t.ConnectionOptions=M={}));var j;(function(e){e[e["New"]=1]="New";e[e["Listening"]=2]="Listening";e[e["Closed"]=3]="Closed";e[e["Disposed"]=4]="Disposed"})(j||(j={}));function O(e,r,d,g){const w=d!==undefined?d:t.NullLogger;let E=0;let S=0;let k=0;const M="2.0";let O=undefined;const P=new Map;let N=undefined;const x=new Map;const L=new Map;let q;let A=new o.LinkedMap;let $=new Map;let D=new Set;let z=new Map;let I=p.Off;let B=m.Text;let W;let U=j.New;const F=new a.Emitter;const J=new a.Emitter;const V=new a.Emitter;const H=new a.Emitter;const G=new a.Emitter;const K=g&&g.cancellationStrategy?g.cancellationStrategy:C.Message;function Q(e){if(e===null){throw new Error(`Can't send requests with id null since the response can't be correlated.`)}return"req-"+e.toString()}function X(e){if(e===null){return"res-unknown-"+(++k).toString()}else{return"res-"+e.toString()}}function Y(){return"not-"+(++S).toString()}function Z(e,t){if(i.Message.isRequest(t)){e.set(Q(t.id),t)}else if(i.Message.isResponse(t)){e.set(X(t.id),t)}else{e.set(Y(),t)}}function ee(e){return undefined}function te(){return U===j.Listening}function re(){return U===j.Closed}function ne(){return U===j.Disposed}function se(){if(U===j.New||U===j.Listening){U=j.Closed;J.fire(undefined)}}function ie(e){F.fire([e,undefined,undefined])}function oe(e){F.fire(e)}e.onClose(se);e.onError(ie);r.onClose(se);r.onError(oe);function ae(){if(q||A.size===0){return}q=(0,n.default)().timer.setImmediate((()=>{q=undefined;ue()}))}function ce(e){if(i.Message.isRequest(e)){le(e)}else if(i.Message.isNotification(e)){he(e)}else if(i.Message.isResponse(e)){de(e)}else{pe(e)}}function ue(){if(A.size===0){return}const e=A.shift();try{const t=g?.messageStrategy;if(R.is(t)){t.handleMessage(e,ce)}else{ce(e)}}finally{ae()}}const fe=e=>{try{if(i.Message.isNotification(e)&&e.method===u.type.method){const t=e.params.id;const n=Q(t);const s=A.get(n);if(i.Message.isRequest(s)){const i=g?.connectionStrategy;const o=i&&i.cancelUndispatched?i.cancelUndispatched(s,ee):ee(s);if(o&&(o.error!==undefined||o.result!==undefined)){A.delete(n);z.delete(t);o.id=s.id;be(o,e.method,Date.now());r.write(o).catch((()=>w.error(`Sending response for canceled message failed.`)));return}}const o=z.get(t);if(o!==undefined){o.cancel();_e(e);return}else{D.add(t)}}Z(A,e)}finally{ae()}};function le(e){if(ne()){return}function t(t,n,s){const o={jsonrpc:M,id:e.id};if(t instanceof i.ResponseError){o.error=t.toJson()}else{o.result=t===undefined?null:t}be(o,n,s);r.write(o).catch((()=>w.error(`Sending response failed.`)))}function n(t,n,s){const i={jsonrpc:M,id:e.id,error:t.toJson()};be(i,n,s);r.write(i).catch((()=>w.error(`Sending response failed.`)))}function o(t,n,s){if(t===undefined){t=null}const i={jsonrpc:M,id:e.id,result:t};be(i,n,s);r.write(i).catch((()=>w.error(`Sending response failed.`)))}ve(e);const a=P.get(e.method);let c;let u;if(a){c=a.type;u=a.handler}const f=Date.now();if(u||O){const r=e.id??String(Date.now());const a=T.is(K.receiver)?K.receiver.createCancellationTokenSource(r):K.receiver.createCancellationTokenSource(e);if(e.id!==null&&D.has(e.id)){a.cancel()}if(e.id!==null){z.set(r,a)}try{let l;if(u){if(e.params===undefined){if(c!==undefined&&c.numberOfParams!==0){n(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${e.method} defines ${c.numberOfParams} params but received none.`),e.method,f);return}l=u(a.token)}else if(Array.isArray(e.params)){if(c!==undefined&&c.parameterStructures===i.ParameterStructures.byName){n(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,f);return}l=u(...e.params,a.token)}else{if(c!==undefined&&c.parameterStructures===i.ParameterStructures.byPosition){n(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,f);return}l=u(e.params,a.token)}}else if(O){l=O(e.method,e.params,a.token)}const d=l;if(!l){z.delete(r);o(l,e.method,f)}else if(d.then){d.then((n=>{z.delete(r);t(n,e.method,f)}),(t=>{z.delete(r);if(t instanceof i.ResponseError){n(t,e.method,f)}else if(t&&s.string(t.message)){n(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,f)}else{n(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,f)}}))}else{z.delete(r);t(l,e.method,f)}}catch(l){z.delete(r);if(l instanceof i.ResponseError){t(l,e.method,f)}else if(l&&s.string(l.message)){n(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${l.message}`),e.method,f)}else{n(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,f)}}}else{n(new i.ResponseError(i.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,f)}}function de(e){if(ne()){return}if(e.id===null){if(e.error){w.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,undefined,4)}`)}else{w.error(`Received response message without id. No further error information provided.`)}}else{const r=e.id;const n=$.get(r);we(e,n);if(n!==undefined){$.delete(r);try{if(e.error){const t=e.error;n.reject(new i.ResponseError(t.code,t.message,t.data))}else if(e.result!==undefined){n.resolve(e.result)}else{throw new Error("Should never happen.")}}catch(t){if(t.message){w.error(`Response handler '${n.method}' failed with message: ${t.message}`)}else{w.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}}function he(e){if(ne()){return}let t=undefined;let r;if(e.method===u.type.method){const t=e.params.id;D.delete(t);_e(e);return}else{const n=x.get(e.method);if(n){r=n.handler;t=n.type}}if(r||N){try{_e(e);if(r){if(e.params===undefined){if(t!==undefined){if(t.numberOfParams!==0&&t.parameterStructures!==i.ParameterStructures.byName){w.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`)}}r()}else if(Array.isArray(e.params)){const n=e.params;if(e.method===l.type.method&&n.length===2&&f.is(n[0])){r({token:n[0],value:n[1]})}else{if(t!==undefined){if(t.parameterStructures===i.ParameterStructures.byName){w.error(`Notification ${e.method} defines parameters by name but received parameters by position`)}if(t.numberOfParams!==e.params.length){w.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${n.length} arguments`)}}r(...n)}}else{if(t!==undefined&&t.parameterStructures===i.ParameterStructures.byPosition){w.error(`Notification ${e.method} defines parameters by position but received parameters by name`)}r(e.params)}}else if(N){N(e.method,e.params)}}catch(n){if(n.message){w.error(`Notification handler '${e.method}' failed with message: ${n.message}`)}else{w.error(`Notification handler '${e.method}' failed unexpectedly.`)}}}else{V.fire(e)}}function pe(e){if(!e){w.error("Received empty message.");return}w.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(s.string(t.id)||s.number(t.id)){const e=t.id;const r=$.get(e);if(r){r.reject(new Error("The received response has neither a result nor an error property."))}}}function ge(e){if(e===undefined||e===null){return undefined}switch(I){case p.Verbose:return JSON.stringify(e,null,4);case p.Compact:return JSON.stringify(e);default:return undefined}}function me(e){if(I===p.Off||!W){return}if(B===m.Text){let t=undefined;if((I===p.Verbose||I===p.Compact)&&e.params){t=`Params: ${ge(e.params)}\n\n`}W.log(`Sending request '${e.method} - (${e.id})'.`,t)}else{Te("send-request",e)}}function ye(e){if(I===p.Off||!W){return}if(B===m.Text){let t=undefined;if(I===p.Verbose||I===p.Compact){if(e.params){t=`Params: ${ge(e.params)}\n\n`}else{t="No parameters provided.\n\n"}}W.log(`Sending notification '${e.method}'.`,t)}else{Te("send-notification",e)}}function be(e,t,r){if(I===p.Off||!W){return}if(B===m.Text){let n=undefined;if(I===p.Verbose||I===p.Compact){if(e.error&&e.error.data){n=`Error data: ${ge(e.error.data)}\n\n`}else{if(e.result){n=`Result: ${ge(e.result)}\n\n`}else if(e.error===undefined){n="No result returned.\n\n"}}}W.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-r}ms`,n)}else{Te("send-response",e)}}function ve(e){if(I===p.Off||!W){return}if(B===m.Text){let t=undefined;if((I===p.Verbose||I===p.Compact)&&e.params){t=`Params: ${ge(e.params)}\n\n`}W.log(`Received request '${e.method} - (${e.id})'.`,t)}else{Te("receive-request",e)}}function _e(e){if(I===p.Off||!W||e.method===b.type.method){return}if(B===m.Text){let t=undefined;if(I===p.Verbose||I===p.Compact){if(e.params){t=`Params: ${ge(e.params)}\n\n`}else{t="No parameters provided.\n\n"}}W.log(`Received notification '${e.method}'.`,t)}else{Te("receive-notification",e)}}function we(e,t){if(I===p.Off||!W){return}if(B===m.Text){let r=undefined;if(I===p.Verbose||I===p.Compact){if(e.error&&e.error.data){r=`Error data: ${ge(e.error.data)}\n\n`}else{if(e.result){r=`Result: ${ge(e.result)}\n\n`}else if(e.error===undefined){r="No result returned.\n\n"}}}if(t){const n=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";W.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${n}`,r)}else{W.log(`Received response ${e.id} without active response promise.`,r)}}else{Te("receive-response",e)}}function Te(e,t){if(!W||I===p.Off){return}const r={isLSPMessage:true,type:e,message:t,timestamp:Date.now()};W.log(r)}function Ee(){if(re()){throw new _(v.Closed,"Connection is closed.")}if(ne()){throw new _(v.Disposed,"Connection is disposed.")}}function Se(){if(te()){throw new _(v.AlreadyListening,"Connection is already listening")}}function ke(){if(!te()){throw new Error("Call listen() first.")}}function Ce(e){if(e===undefined){return null}else{return e}}function Re(e){if(e===null){return undefined}else{return e}}function Me(e){return e!==undefined&&e!==null&&!Array.isArray(e)&&typeof e==="object"}function je(e,t){switch(e){case i.ParameterStructures.auto:if(Me(t)){return Re(t)}else{return[Ce(t)]}case i.ParameterStructures.byName:if(!Me(t)){throw new Error(`Received parameters by name but param is not an object literal.`)}return Re(t);case i.ParameterStructures.byPosition:return[Ce(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function Oe(e,t){let r;const n=e.numberOfParams;switch(n){case 0:r=undefined;break;case 1:r=je(e.parameterStructures,t[0]);break;default:r=[];for(let e=0;e{Ee();let n;let o;if(s.string(e)){n=e;const r=t[0];let s=0;let a=i.ParameterStructures.auto;if(i.ParameterStructures.is(r)){s=1;a=r}let c=t.length;const u=c-s;switch(u){case 0:o=undefined;break;case 1:o=je(a,t[s]);break;default:if(a===i.ParameterStructures.byName){throw new Error(`Received ${u} parameters for 'by Name' notification parameter structure.`)}o=t.slice(s,c).map((e=>Ce(e)));break}}else{const r=t;n=e.method;o=Oe(e,r)}const a={jsonrpc:M,method:n,params:o};ye(a);return r.write(a).catch((e=>{w.error(`Sending notification failed.`);throw e}))},onNotification:(e,t)=>{Ee();let r;if(s.func(e)){N=e}else if(t){if(s.string(e)){r=e;x.set(e,{type:undefined,handler:t})}else{r=e.method;x.set(e.method,{type:e,handler:t})}}return{dispose:()=>{if(r!==undefined){x.delete(r)}else{N=undefined}}}},onProgress:(e,t,r)=>{if(L.has(t)){throw new Error(`Progress handler for token ${t} already registered`)}L.set(t,r);return{dispose:()=>{L.delete(t)}}},sendProgress:(e,t,r)=>Pe.sendNotification(l.type,{token:t,value:r}),onUnhandledProgress:H.event,sendRequest:(e,...t)=>{Ee();ke();let n;let o;let a=undefined;if(s.string(e)){n=e;const r=t[0];const s=t[t.length-1];let u=0;let f=i.ParameterStructures.auto;if(i.ParameterStructures.is(r)){u=1;f=r}let l=t.length;if(c.CancellationToken.is(s)){l=l-1;a=s}const d=l-u;switch(d){case 0:o=undefined;break;case 1:o=je(f,t[u]);break;default:if(f===i.ParameterStructures.byName){throw new Error(`Received ${d} parameters for 'by Name' request parameter structure.`)}o=t.slice(u,l).map((e=>Ce(e)));break}}else{const r=t;n=e.method;o=Oe(e,r);const s=e.numberOfParams;a=c.CancellationToken.is(r[s])?r[s]:undefined}const u=E++;let f;if(a){f=a.onCancellationRequested((()=>{const e=K.sender.sendCancellation(Pe,u);if(e===undefined){w.log(`Received no promise from cancellation strategy when cancelling id ${u}`);return Promise.resolve()}else{return e.catch((()=>{w.log(`Sending cancellation messages for id ${u} failed`)}))}}))}const l={jsonrpc:M,id:u,method:n,params:o};me(l);if(typeof K.sender.enableCancellation==="function"){K.sender.enableCancellation(l)}return new Promise((async(e,t)=>{const s=t=>{e(t);K.sender.cleanup(u);f?.dispose()};const o=e=>{t(e);K.sender.cleanup(u);f?.dispose()};const a={method:n,timerStart:Date.now(),resolve:s,reject:o};try{await r.write(l);$.set(u,a)}catch(c){w.error(`Sending request failed.`);a.reject(new i.ResponseError(i.ErrorCodes.MessageWriteError,c.message?c.message:"Unknown reason"));throw c}}))},onRequest:(e,t)=>{Ee();let r=null;if(h.is(e)){r=undefined;O=e}else if(s.string(e)){r=null;if(t!==undefined){r=e;P.set(e,{handler:t,type:undefined})}}else{if(t!==undefined){r=e.method;P.set(e.method,{type:e,handler:t})}}return{dispose:()=>{if(r===null){return}if(r!==undefined){P.delete(r)}else{O=undefined}}}},hasPendingResponse:()=>$.size>0,trace:async(e,t,r)=>{let n=false;let i=m.Text;if(r!==undefined){if(s.boolean(r)){n=r}else{n=r.sendNotification||false;i=r.traceFormat||m.Text}}I=e;B=i;if(I===p.Off){W=undefined}else{W=t}if(n&&!re()&&!ne()){await Pe.sendNotification(y.type,{value:p.toString(e)})}},onError:F.event,onClose:J.event,onUnhandledNotification:V.event,onDispose:G.event,end:()=>{r.end()},dispose:()=>{if(ne()){return}U=j.Disposed;G.fire(undefined);const t=new i.ResponseError(i.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const e of $.values()){e.reject(t)}$=new Map;z=new Map;D=new Set;A=new o.LinkedMap;if(s.func(r.dispose)){r.dispose()}if(s.func(e.dispose)){e.dispose()}},listen:()=>{Ee();Se();U=j.Listening;e.listen(fe)},inspect:()=>{(0,n.default)().console.log("inspect")}};Pe.onNotification(b.type,(e=>{if(I===p.Off||!W){return}const t=I===p.Verbose||I===p.Compact;W.log(e.message,t?e.verbose:undefined)}));Pe.onNotification(l.type,(e=>{const t=L.get(e.token);if(t){t(e.value)}else{H.fire(e)}}));return Pe}t.createMessageConnection=O},34019:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Disposable=void 0;var r;(function(e){function t(e){return{dispose:e}}e.create=t})(r||(t.Disposable=r={}))},62676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Emitter=t.Event=void 0;const n=r(69590);var s;(function(e){const t={dispose(){}};e.None=function(){return t}})(s||(t.Event=s={}));class i{add(e,t=null,r){if(!this._callbacks){this._callbacks=[];this._contexts=[]}this._callbacks.push(e);this._contexts.push(t);if(Array.isArray(r)){r.push({dispose:()=>this.remove(e,t)})}}remove(e,t=null){if(!this._callbacks){return}let r=false;for(let n=0,s=this._callbacks.length;n{if(!this._callbacks){this._callbacks=new i}if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()){this._options.onFirstListenerAdd(this)}this._callbacks.add(e,t);const n={dispose:()=>{if(!this._callbacks){return}this._callbacks.remove(e,t);n.dispose=o._noop;if(this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()){this._options.onLastListenerRemove(this)}}};if(Array.isArray(r)){r.push(n)}return n}}return this._event}fire(e){if(this._callbacks){this._callbacks.invoke.call(this._callbacks,e)}}dispose(){if(this._callbacks){this._callbacks.dispose();this._callbacks=undefined}}}t.Emitter=o;o._noop=function(){}},78585:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0;function r(e){return e===true||e===false}t.boolean=r;function n(e){return typeof e==="string"||e instanceof String}t.string=n;function s(e){return typeof e==="number"||e instanceof Number}t.number=s;function i(e){return e instanceof Error}t.error=i;function o(e){return typeof e==="function"}t.func=o;function a(e){return Array.isArray(e)}t.array=a;function c(e){return a(e)&&e.every((e=>n(e)))}t.stringArray=c},93352:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.LRUCache=t.LinkedMap=t.Touch=void 0;var n;(function(e){e.None=0;e.First=1;e.AsOld=e.First;e.Last=2;e.AsNew=e.Last})(n||(t.Touch=n={}));class s{constructor(){this[r]="LinkedMap";this._map=new Map;this._head=undefined;this._tail=undefined;this._size=0;this._state=0}clear(){this._map.clear();this._head=undefined;this._tail=undefined;this._size=0;this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=n.None){const r=this._map.get(e);if(!r){return undefined}if(t!==n.None){this.touch(r,t)}return r.value}set(e,t,r=n.None){let s=this._map.get(e);if(s){s.value=t;if(r!==n.None){this.touch(s,r)}}else{s={key:e,value:t,next:undefined,previous:undefined};switch(r){case n.None:this.addItemLast(s);break;case n.First:this.addItemFirst(s);break;case n.Last:this.addItemLast(s);break;default:this.addItemLast(s);break}this._map.set(e,s);this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(!t){return undefined}this._map.delete(e);this.removeItem(t);this._size--;return t.value}shift(){if(!this._head&&!this._tail){return undefined}if(!this._head||!this._tail){throw new Error("Invalid list")}const e=this._head;this._map.delete(e.key);this.removeItem(e);this._size--;return e.value}forEach(e,t){const r=this._state;let n=this._head;while(n){if(t){e.bind(t)(n.value,n.key,this)}else{e(n.value,n.key,this)}if(this._state!==r){throw new Error(`LinkedMap got modified during iteration.`)}n=n.next}}keys(){const e=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e){throw new Error(`LinkedMap got modified during iteration.`)}if(t){const e={value:t.key,done:false};t=t.next;return e}else{return{value:undefined,done:true}}}};return r}values(){const e=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e){throw new Error(`LinkedMap got modified during iteration.`)}if(t){const e={value:t.value,done:false};t=t.next;return e}else{return{value:undefined,done:true}}}};return r}entries(){const e=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e){throw new Error(`LinkedMap got modified during iteration.`)}if(t){const e={value:[t.key,t.value],done:false};t=t.next;return e}else{return{value:undefined,done:true}}}};return r}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size){return}if(e===0){this.clear();return}let t=this._head;let r=this.size;while(t&&r>e){this._map.delete(t.key);t=t.next;r--}this._head=t;this._size=r;if(t){t.previous=undefined}this._state++}addItemFirst(e){if(!this._head&&!this._tail){this._tail=e}else if(!this._head){throw new Error("Invalid list")}else{e.next=this._head;this._head.previous=e}this._head=e;this._state++}addItemLast(e){if(!this._head&&!this._tail){this._head=e}else if(!this._tail){throw new Error("Invalid list")}else{e.previous=this._tail;this._tail.next=e}this._tail=e;this._state++}removeItem(e){if(e===this._head&&e===this._tail){this._head=undefined;this._tail=undefined}else if(e===this._head){if(!e.next){throw new Error("Invalid list")}e.next.previous=undefined;this._head=e.next}else if(e===this._tail){if(!e.previous){throw new Error("Invalid list")}e.previous.next=undefined;this._tail=e.previous}else{const t=e.next;const r=e.previous;if(!t||!r){throw new Error("Invalid list")}t.previous=r;r.next=t}e.next=undefined;e.previous=undefined;this._state++}touch(e,t){if(!this._head||!this._tail){throw new Error("Invalid list")}if(t!==n.First&&t!==n.Last){return}if(t===n.First){if(e===this._head){return}const t=e.next;const r=e.previous;if(e===this._tail){r.next=undefined;this._tail=r}else{t.previous=r;r.next=t}e.previous=undefined;e.next=this._head;this._head.previous=e;this._head=e;this._state++}else if(t===n.Last){if(e===this._tail){return}const t=e.next;const r=e.previous;if(e===this._head){t.previous=undefined;this._head=t}else{t.previous=r;r.next=t}e.next=undefined;e.previous=this._tail;this._tail.next=e;this._tail=e;this._state++}}toJSON(){const e=[];this.forEach(((t,r)=>{e.push([r,t])}));return e}fromJSON(e){this.clear();for(const[t,r]of e){this.set(t,r)}}}t.LinkedMap=s;class i extends s{constructor(e,t=1){super();this._limit=e;this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e;this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1);this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){super.set(e,t,n.Last);this.checkTrim();return this}checkTrim(){if(this.size>this._limit){this.trimOld(Math.round(this._limit*this._ratio))}}}t.LRUCache=i},89244:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbstractMessageBuffer=void 0;const r=13;const n=10;const s="\r\n";class i{constructor(e="utf-8"){this._encoding=e;this._chunks=[];this._totalLength=0}get encoding(){return this._encoding}append(e){const t=typeof e==="string"?this.fromString(e,this._encoding):e;this._chunks.push(t);this._totalLength+=t.byteLength}tryReadHeaders(e=false){if(this._chunks.length===0){return undefined}let t=0;let i=0;let o=0;let a=0;e:while(ithis._totalLength){throw new Error(`Cannot read so many bytes!`)}if(this._chunks[0].byteLength===e){const t=this._chunks[0];this._chunks.shift();this._totalLength-=e;return this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0];const r=this.asNative(t,e);this._chunks[0]=t.slice(e);this._totalLength-=e;return r}const t=this.allocNative(e);let r=0;let n=0;while(e>0){const s=this._chunks[n];if(s.byteLength>e){const i=s.slice(0,e);t.set(i,r);r+=e;this._chunks[n]=s.slice(e);this._totalLength-=e;e-=e}else{t.set(s,r);r+=s.byteLength;this._chunks.shift();this._totalLength-=s.byteLength;e-=s.byteLength}}return t}}t.AbstractMessageBuffer=i},59085:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;const n=r(69590);const s=r(78585);const i=r(62676);const o=r(94323);var a;(function(e){function t(e){let t=e;return t&&s.func(t.listen)&&s.func(t.dispose)&&s.func(t.onError)&&s.func(t.onClose)&&s.func(t.onPartialMessage)}e.is=t})(a||(t.MessageReader=a={}));class c{constructor(){this.errorEmitter=new i.Emitter;this.closeEmitter=new i.Emitter;this.partialMessageEmitter=new i.Emitter}dispose(){this.errorEmitter.dispose();this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(undefined)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){if(e instanceof Error){return e}else{return new Error(`Reader received error. Reason: ${s.string(e.message)?e.message:"unknown"}`)}}}t.AbstractMessageReader=c;var u;(function(e){function t(e){let t;let r;let s;const i=new Map;let o;const a=new Map;if(e===undefined||typeof e==="string"){t=e??"utf-8"}else{t=e.charset??"utf-8";if(e.contentDecoder!==undefined){s=e.contentDecoder;i.set(s.name,s)}if(e.contentDecoders!==undefined){for(const t of e.contentDecoders){i.set(t.name,t)}}if(e.contentTypeDecoder!==undefined){o=e.contentTypeDecoder;a.set(o.name,o)}if(e.contentTypeDecoders!==undefined){for(const t of e.contentTypeDecoders){a.set(t.name,t)}}}if(o===undefined){o=(0,n.default)().applicationJson.decoder;a.set(o.name,o)}return{charset:t,contentDecoder:s,contentDecoders:i,contentTypeDecoder:o,contentTypeDecoders:a}}e.fromOptions=t})(u||(u={}));class f extends c{constructor(e,t){super();this.readable=e;this.options=u.fromOptions(t);this.buffer=(0,n.default)().messageBuffer.create(this.options.charset);this._partialMessageTimeout=1e4;this.nextMessageLength=-1;this.messageToken=0;this.readSemaphore=new o.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1;this.messageToken=0;this.partialMessageTimer=undefined;this.callback=e;const t=this.readable.onData((e=>{this.onData(e)}));this.readable.onError((e=>this.fireError(e)));this.readable.onClose((()=>this.fireClose()));return t}onData(e){try{this.buffer.append(e);while(true){if(this.nextMessageLength===-1){const e=this.buffer.tryReadHeaders(true);if(!e){return}const t=e.get("content-length");if(!t){this.fireError(new Error(`Header must provide a Content-Length property.\n${JSON.stringify(Object.fromEntries(e))}`));return}const r=parseInt(t);if(isNaN(r)){this.fireError(new Error(`Content-Length value must be a number. Got ${t}`));return}this.nextMessageLength=r}const e=this.buffer.tryReadBody(this.nextMessageLength);if(e===undefined){this.setPartialMessageTimer();return}this.clearPartialMessageTimer();this.nextMessageLength=-1;this.readSemaphore.lock((async()=>{const t=this.options.contentDecoder!==undefined?await this.options.contentDecoder.decode(e):e;const r=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(r)})).catch((e=>{this.fireError(e)}))}}catch(t){this.fireError(t)}}clearPartialMessageTimer(){if(this.partialMessageTimer){this.partialMessageTimer.dispose();this.partialMessageTimer=undefined}}setPartialMessageTimer(){this.clearPartialMessageTimer();if(this._partialMessageTimeout<=0){return}this.partialMessageTimer=(0,n.default)().timer.setTimeout(((e,t)=>{this.partialMessageTimer=undefined;if(e===this.messageToken){this.firePartialMessage({messageToken:e,waitingTime:t});this.setPartialMessageTimer()}}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout)}}t.ReadableStreamMessageReader=f},23193:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;const n=r(69590);const s=r(78585);const i=r(94323);const o=r(62676);const a="Content-Length: ";const c="\r\n";var u;(function(e){function t(e){let t=e;return t&&s.func(t.dispose)&&s.func(t.onClose)&&s.func(t.onError)&&s.func(t.write)}e.is=t})(u||(t.MessageWriter=u={}));class f{constructor(){this.errorEmitter=new o.Emitter;this.closeEmitter=new o.Emitter}dispose(){this.errorEmitter.dispose();this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,r){this.errorEmitter.fire([this.asError(e),t,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(undefined)}asError(e){if(e instanceof Error){return e}else{return new Error(`Writer received error. Reason: ${s.string(e.message)?e.message:"unknown"}`)}}}t.AbstractMessageWriter=f;var l;(function(e){function t(e){if(e===undefined||typeof e==="string"){return{charset:e??"utf-8",contentTypeEncoder:(0,n.default)().applicationJson.encoder}}else{return{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,n.default)().applicationJson.encoder}}}e.fromOptions=t})(l||(l={}));class d extends f{constructor(e,t){super();this.writable=e;this.options=l.fromOptions(t);this.errorCount=0;this.writeSemaphore=new i.Semaphore(1);this.writable.onError((e=>this.fireError(e)));this.writable.onClose((()=>this.fireClose()))}async write(e){return this.writeSemaphore.lock((async()=>{const t=this.options.contentTypeEncoder.encode(e,this.options).then((e=>{if(this.options.contentEncoder!==undefined){return this.options.contentEncoder.encode(e)}else{return e}}));return t.then((t=>{const r=[];r.push(a,t.byteLength.toString(),c);r.push(c);return this.doWrite(e,r,t)}),(e=>{this.fireError(e);throw e}))}))}async doWrite(e,t,r){try{await this.writable.write(t.join(""),"ascii");return this.writable.write(r)}catch(n){this.handleError(n,e);return Promise.reject(n)}}handleError(e,t){this.errorCount++;this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}t.WriteableStreamMessageWriter=d},96177:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;const n=r(78585);var s;(function(e){e.ParseError=-32700;e.InvalidRequest=-32600;e.MethodNotFound=-32601;e.InvalidParams=-32602;e.InternalError=-32603;e.jsonrpcReservedErrorRangeStart=-32099;e.serverErrorStart=-32099;e.MessageWriteError=-32099;e.MessageReadError=-32098;e.PendingResponseRejected=-32097;e.ConnectionInactive=-32096;e.ServerNotInitialized=-32002;e.UnknownErrorCode=-32001;e.jsonrpcReservedErrorRangeEnd=-32e3;e.serverErrorEnd=-32e3})(s||(t.ErrorCodes=s={}));class i extends Error{constructor(e,t,r){super(t);this.code=n.number(e)?e:s.UnknownErrorCode;this.data=r;Object.setPrototypeOf(this,i.prototype)}toJson(){const e={code:this.code,message:this.message};if(this.data!==undefined){e.data=this.data}return e}}t.ResponseError=i;class o{constructor(e){this.kind=e}static is(e){return e===o.auto||e===o.byName||e===o.byPosition}toString(){return this.kind}}t.ParameterStructures=o;o.auto=new o("auto");o.byPosition=new o("byPosition");o.byName=new o("byName");class a{constructor(e,t){this.method=e;this.numberOfParams=t}get parameterStructures(){return o.auto}}t.AbstractMessageSignature=a;class c extends a{constructor(e){super(e,0)}}t.RequestType0=c;class u extends a{constructor(e,t=o.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}t.RequestType=u;class f extends a{constructor(e,t=o.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}t.RequestType1=f;class l extends a{constructor(e){super(e,2)}}t.RequestType2=l;class d extends a{constructor(e){super(e,3)}}t.RequestType3=d;class h extends a{constructor(e){super(e,4)}}t.RequestType4=h;class p extends a{constructor(e){super(e,5)}}t.RequestType5=p;class g extends a{constructor(e){super(e,6)}}t.RequestType6=g;class m extends a{constructor(e){super(e,7)}}t.RequestType7=m;class y extends a{constructor(e){super(e,8)}}t.RequestType8=y;class b extends a{constructor(e){super(e,9)}}t.RequestType9=b;class v extends a{constructor(e,t=o.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}t.NotificationType=v;class _ extends a{constructor(e){super(e,0)}}t.NotificationType0=_;class w extends a{constructor(e,t=o.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}t.NotificationType1=w;class T extends a{constructor(e){super(e,2)}}t.NotificationType2=T;class E extends a{constructor(e){super(e,3)}}t.NotificationType3=E;class S extends a{constructor(e){super(e,4)}}t.NotificationType4=S;class k extends a{constructor(e){super(e,5)}}t.NotificationType5=k;class C extends a{constructor(e){super(e,6)}}t.NotificationType6=C;class R extends a{constructor(e){super(e,7)}}t.NotificationType7=R;class M extends a{constructor(e){super(e,8)}}t.NotificationType8=M;class j extends a{constructor(e){super(e,9)}}t.NotificationType9=j;var O;(function(e){function t(e){const t=e;return t&&n.string(t.method)&&(n.string(t.id)||n.number(t.id))}e.isRequest=t;function r(e){const t=e;return t&&n.string(t.method)&&e.id===void 0}e.isNotification=r;function s(e){const t=e;return t&&(t.result!==void 0||!!t.error)&&(n.string(t.id)||n.number(t.id)||t.id===null)}e.isResponse=s})(O||(t.Message=O={}))},69590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});let r;function n(){if(r===undefined){throw new Error(`No runtime abstraction layer installed`)}return r}(function(e){function t(e){if(e===undefined){throw new Error(`No runtime abstraction layer provided`)}r=e}e.install=t})(n||(n={}));t["default"]=n},94323:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Semaphore=void 0;const n=r(69590);class s{constructor(e=1){if(e<=0){throw new Error("Capacity must be greater than 0")}this._capacity=e;this._active=0;this._waiting=[]}lock(e){return new Promise(((t,r)=>{this._waiting.push({thunk:e,resolve:t,reject:r});this.runNext()}))}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity){return}(0,n.default)().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(this._waiting.length===0||this._active===this._capacity){return}const e=this._waiting.shift();this._active++;if(this._active>this._capacity){throw new Error(`To many thunks active`)}try{const t=e.thunk();if(t instanceof Promise){t.then((t=>{this._active--;e.resolve(t);this.runNext()}),(t=>{this._active--;e.reject(t);this.runNext()}))}else{this._active--;e.resolve(t);this.runNext()}}catch(t){this._active--;e.reject(t);this.runNext()}}}t.Semaphore=s},74996:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;const n=r(59850);var s;(function(e){e.Continue=0;e.Cancelled=1})(s||(s={}));class i{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null){return}const t=new SharedArrayBuffer(4);const r=new Int32Array(t,0,1);r[0]=s.Continue;this.buffers.set(e.id,t);e.$cancellationData=t}async sendCancellation(e,t){const r=this.buffers.get(t);if(r===undefined){return}const n=new Int32Array(r,0,1);Atomics.store(n,0,s.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}}t.SharedArraySenderStrategy=i;class o{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===s.Cancelled}get onCancellationRequested(){throw new Error(`Cancellation over SharedArrayBuffer doesn't support cancellation events`)}}class a{constructor(e){this.token=new o(e)}cancel(){}dispose(){}}class c{constructor(){this.kind="request"}createCancellationTokenSource(e){const t=e.$cancellationData;if(t===undefined){return new n.CancellationTokenSource}return new a(t)}}t.SharedArrayReceiverStrategy=c},96092:(e,t,r)=>{"use strict";r.d(t,{ConsoleLogger:()=>l,listen:()=>d});var n=r(76439);var s=r(96177);class i{constructor(){this.disposables=[]}dispose(){while(this.disposables.length!==0){this.disposables.pop().dispose()}}push(e){const t=this.disposables;t.push(e);return{dispose(){const r=t.indexOf(e);if(r!==-1){t.splice(r,1)}}}}}var o=r(59085);class a extends o.AbstractMessageReader{constructor(e){super();this.socket=e;this.state="initial";this.events=[];this.socket.onMessage((e=>this.readMessage(e)));this.socket.onError((e=>this.fireError(e)));this.socket.onClose(((e,t)=>{if(e!==1e3){const r={name:""+e,message:`Error during socket reconnect: code = ${e}, reason = ${t}`};this.fireError(r)}this.fireClose()}))}listen(e){if(this.state==="initial"){this.state="listening";this.callback=e;while(this.events.length!==0){const e=this.events.pop();if(e.message){this.readMessage(e.message)}else if(e.error){this.fireError(e.error)}else{this.fireClose()}}}return{dispose:()=>{if(this.callback===e){this.callback=undefined}}}}readMessage(e){if(this.state==="initial"){this.events.splice(0,0,{message:e})}else if(this.state==="listening"){const t=JSON.parse(e);this.callback(t)}}fireError(e){if(this.state==="initial"){this.events.splice(0,0,{error:e})}else if(this.state==="listening"){super.fireError(e)}}fireClose(){if(this.state==="initial"){this.events.splice(0,0,{})}else if(this.state==="listening"){super.fireClose()}this.state="closed"}}var c=r(23193);class u extends c.AbstractMessageWriter{constructor(e){super();this.socket=e;this.errorCount=0}end(){}async write(e){try{const t=JSON.stringify(e);this.socket.send(t)}catch(t){this.errorCount++;this.fireError(t,e,this.errorCount)}}}function f(e,t){const r=new a(e);const s=new u(e);const i=(0,n.createMessageConnection)(r,s,t);i.onClose((()=>i.dispose()));return i}class l{error(e){console.error(e)}warn(e){console.warn(e)}info(e){console.info(e)}log(e){console.log(e)}debug(e){console.debug(e)}}function d(e){const{webSocket:t,onConnection:r}=e;const n=e.logger||new l;t.onopen=()=>{const e=h(t);const s=f(e,n);r(s)}}function h(e){return{send:t=>e.send(t),onMessage:t=>{e.onmessage=e=>t(e.data)},onError:t=>{e.onerror=e=>{if("message"in e){t(e.message)}}},onClose:t=>{e.onclose=e=>t(e.code,e.reason)},dispose:()=>e.close()}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/26683bf201fb258a2237.woff b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/26683bf201fb258a2237.woff new file mode 100644 index 0000000000000000000000000000000000000000..eb66c4617f4772e838453ff7403b87cc0c51b86f Binary files /dev/null and b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/26683bf201fb258a2237.woff differ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2729.cafaf0caf2c0c83ac9fe.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2729.cafaf0caf2c0c83ac9fe.js new file mode 100644 index 0000000000000000000000000000000000000000..689bf773e9f0d67cf728af0935ee5b9fe2a1c9f0 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2729.cafaf0caf2c0c83ac9fe.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2729],{22729:(O,e,t)=>{t.r(e);t.d(e,{json:()=>c,jsonLanguage:()=>i,jsonParseLinter:()=>P});var r=t(27421);var a=t(45145);const n=(0,a.styleTags)({String:a.tags.string,Number:a.tags.number,"True False":a.tags.bool,PropertyName:a.tags.propertyName,Null:a.tags.null,",":a.tags.separator,"[ ]":a.tags.squareBracket,"{ }":a.tags.brace});const s=r.U1.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[n],skippedNodes:[0],repeatNodeCount:2,tokenData:"(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]Oc~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOe~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOh~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOg~~&rO]~~&wO[~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOW~~(pOV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});var o=t(4452);const P=()=>O=>{try{JSON.parse(O.state.doc.toString())}catch(e){if(!(e instanceof SyntaxError))throw e;const t=Q(e,O.state.doc);return[{from:t,message:e.message,severity:"error",to:t}]}return[]};function Q(O,e){let t;if(t=O.message.match(/at position (\d+)/))return Math.min(+t[1],e.length);if(t=O.message.match(/at line (\d+) column (\d+)/))return Math.min(e.line(+t[1]).from+ +t[2]-1,e.length);return 0}const i=o.LRLanguage.define({name:"json",parser:s.configure({props:[o.indentNodeProp.add({Object:(0,o.continuedIndent)({except:/^\s*\}/}),Array:(0,o.continuedIndent)({except:/^\s*\]/})}),o.foldNodeProp.add({"Object Array":o.foldInside})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function c(){return new o.LanguageSupport(i)}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2957.bc5eb9549a0b15c44916.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2957.bc5eb9549a0b15c44916.js new file mode 100644 index 0000000000000000000000000000000000000000..ae8a828bc722873e8f4f00838ffff593c45ad1f4 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/2957.bc5eb9549a0b15c44916.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2957,5338,100],{5338:(a,e,t)=>{var p;var r=t(86672);if(true){e.H=r.createRoot;p=r.hydrateRoot}else{var o}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3112.0757b31e24c5334fda73.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3112.0757b31e24c5334fda73.js new file mode 100644 index 0000000000000000000000000000000000000000..81788da1a64eedbb1e635833f2cef701635f115d --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3112.0757b31e24c5334fda73.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3112],{3112:(r,t,n)=>{n.r(t);n.d(t,{http:()=>f});function e(r,t){r.skipToEnd();t.cur=s;return"error"}function u(r,t){if(r.match(/^HTTP\/\d\.\d/)){t.cur=c;return"keyword"}else if(r.match(/^[A-Z]+/)&&/[ \t]/.test(r.peek())){t.cur=o;return"keyword"}else{return e(r,t)}}function c(r,t){var n=r.match(/^\d+/);if(!n)return e(r,t);t.cur=i;var u=Number(n[0]);if(u>=100&&u<400){return"atom"}else{return"error"}}function i(r,t){r.skipToEnd();t.cur=s;return null}function o(r,t){r.eatWhile(/\S/);t.cur=a;return"string.special"}function a(r,t){if(r.match(/^HTTP\/\d\.\d$/)){t.cur=s;return"keyword"}else{return e(r,t)}}function s(r){if(r.sol()&&!r.eat(/[ \t]/)){if(r.match(/^.*?:/)){return"atom"}else{r.skipToEnd();return"error"}}else{r.skipToEnd();return"string"}}function l(r){r.skipToEnd();return null}const f={name:"http",token:function(r,t){var n=t.cur;if(n!=s&&n!=l&&r.eatSpace())return null;return n(r,t)},blankLine:function(r){r.cur=l},startState:function(){return{cur:u}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3122.fed5688acdcf6ff6aa6b.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3122.fed5688acdcf6ff6aa6b.js new file mode 100644 index 0000000000000000000000000000000000000000..93874cb77a1721595922e6a7dcd4ad68f9ed9436 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3122.fed5688acdcf6ff6aa6b.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3122],{63122:(a,e,p)=>{p.d(e,{createPacketServices:()=>t.$});var t=p(69602);var c=p(74888)}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3282.8e9b6237394295ee9232.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3282.8e9b6237394295ee9232.js new file mode 100644 index 0000000000000000000000000000000000000000..434c4c50c7c5dd2d19f02647edccbecbcee27110 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3282.8e9b6237394295ee9232.js @@ -0,0 +1,7 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3282],{63282:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const s=r(4042);const n=r(63763);const o=r(36653);const a=r(72079);const i=["/properties"];const c="http://json-schema.org/draft-07/schema";class u extends s.default{_addVocabularies(){super._addVocabularies();n.default.forEach((e=>this.addVocabulary(e)));if(this.opts.discriminator)this.addKeyword(o.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();if(!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,i):a;this.addMetaSchema(e,c,false);this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:undefined)}}t.Ajv=u;e.exports=t=u;e.exports.Ajv=u;Object.defineProperty(t,"__esModule",{value:true});t["default"]=u;var d=r(62586);Object.defineProperty(t,"KeywordCxt",{enumerable:true,get:function(){return d.KeywordCxt}});var l=r(99029);Object.defineProperty(t,"_",{enumerable:true,get:function(){return l._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return l.str}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return l.stringify}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return l.nil}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return l.Name}});Object.defineProperty(t,"CodeGen",{enumerable:true,get:function(){return l.CodeGen}});var f=r(13558);Object.defineProperty(t,"ValidationError",{enumerable:true,get:function(){return f.default}});var h=r(34551);Object.defineProperty(t,"MissingRefError",{enumerable:true,get:function(){return h.default}})},41520:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r;t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class s extends r{constructor(e){super();if(!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return false}get names(){return{[this.str]:1}}}t.Name=s;class n extends r{constructor(e){super();this._items=typeof e==="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return false;const e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce(((e,t)=>{if(t instanceof s)e[t.str]=(e[t.str]||0)+1;return e}),{})}}t._Code=n;t.nil=new n("");function o(e,...t){const r=[e[0]];let s=0;while(s{Object.defineProperty(t,"__esModule",{value:true});t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const s=r(41520);const n=r(57845);var o=r(41520);Object.defineProperty(t,"_",{enumerable:true,get:function(){return o._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return o.str}});Object.defineProperty(t,"strConcat",{enumerable:true,get:function(){return o.strConcat}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return o.nil}});Object.defineProperty(t,"getProperty",{enumerable:true,get:function(){return o.getProperty}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return o.stringify}});Object.defineProperty(t,"regexpCode",{enumerable:true,get:function(){return o.regexpCode}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return o.Name}});var a=r(57845);Object.defineProperty(t,"Scope",{enumerable:true,get:function(){return a.Scope}});Object.defineProperty(t,"ValueScope",{enumerable:true,get:function(){return a.ValueScope}});Object.defineProperty(t,"ValueScopeName",{enumerable:true,get:function(){return a.ValueScopeName}});Object.defineProperty(t,"varKinds",{enumerable:true,get:function(){return a.varKinds}});t.operators={GT:new s._Code(">"),GTE:new s._Code(">="),LT:new s._Code("<"),LTE:new s._Code("<="),EQ:new s._Code("==="),NEQ:new s._Code("!=="),NOT:new s._Code("!"),OR:new s._Code("||"),AND:new s._Code("&&"),ADD:new s._Code("+")};class i{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends i{constructor(e,t,r){super();this.varKind=e;this.name=t;this.rhs=r}render({es5:e,_n:t}){const r=e?n.varKinds.var:this.varKind;const s=this.rhs===undefined?"":` = ${this.rhs}`;return`${r} ${this.name}${s};`+t}optimizeNames(e,t){if(!e[this.name.str])return;if(this.rhs)this.rhs=x(this.rhs,e,t);return this}get names(){return this.rhs instanceof s._CodeOrName?this.rhs.names:{}}}class u extends i{constructor(e,t,r){super();this.lhs=e;this.rhs=t;this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(this.lhs instanceof s.Name&&!e[this.lhs.str]&&!this.sideEffects)return;this.rhs=x(this.rhs,e,t);return this}get names(){const e=this.lhs instanceof s.Name?{}:{...this.lhs.names};return I(e,this.rhs)}}class d extends u{constructor(e,t,r,s){super(e,r,s);this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class l extends i{constructor(e){super();this.label=e;this.names={}}render({_n:e}){return`${this.label}:`+e}}class f extends i{constructor(e){super();this.label=e;this.names={}}render({_n:e}){const t=this.label?` ${this.label}`:"";return`break${t};`+e}}class h extends i{constructor(e){super();this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends i{constructor(e){super();this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:undefined}optimizeNames(e,t){this.code=x(this.code,e,t);return this}get names(){return this.code instanceof s._CodeOrName?this.code.names:{}}}class m extends i{constructor(e=[]){super();this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;while(t--){const r=e[t].optimizeNodes();if(Array.isArray(r))e.splice(t,1,...r);else if(r)e[t]=r;else e.splice(t,1)}return e.length>0?this:undefined}optimizeNames(e,t){const{nodes:r}=this;let s=r.length;while(s--){const n=r[s];if(n.optimizeNames(e,t))continue;T(e,n.names);r.splice(s,1)}return r.length>0?this:undefined}get names(){return this.nodes.reduce(((e,t)=>C(e,t.names)),{})}}class y extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends m{}class $ extends y{}$.kind="else";class v extends y{constructor(e,t){super(t);this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);if(this.else)t+="else "+this.else.render(e);return t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(e===true)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new $(e):e}if(t){if(e===false)return t instanceof v?t:t.nodes;if(this.nodes.length)return this;return new v(R(e),t instanceof v?[t]:t.nodes)}if(e===false||!this.nodes.length)return undefined;return this}optimizeNames(e,t){var r;this.else=(r=this.else)===null||r===void 0?void 0:r.optimizeNames(e,t);if(!(super.optimizeNames(e,t)||this.else))return;this.condition=x(this.condition,e,t);return this}get names(){const e=super.names;I(e,this.condition);if(this.else)C(e,this.else.names);return e}}v.kind="if";class _ extends y{}_.kind="for";class w extends _{constructor(e){super();this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(!super.optimizeNames(e,t))return;this.iteration=x(this.iteration,e,t);return this}get names(){return C(super.names,this.iteration.names)}}class b extends _{constructor(e,t,r,s){super();this.varKind=e;this.name=t;this.from=r;this.to=s}render(e){const t=e.es5?n.varKinds.var:this.varKind;const{name:r,from:s,to:o}=this;return`for(${t} ${r}=${s}; ${r}<${o}; ${r}++)`+super.render(e)}get names(){const e=I(super.names,this.from);return I(e,this.to)}}class P extends _{constructor(e,t,r,s){super();this.loop=e;this.varKind=t;this.name=r;this.iterable=s}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(!super.optimizeNames(e,t))return;this.iterable=x(this.iterable,e,t);return this}get names(){return C(super.names,this.iterable.names)}}class E extends y{constructor(e,t,r){super();this.name=e;this.args=t;this.async=r}render(e){const t=this.async?"async ":"";return`${t}function ${this.name}(${this.args})`+super.render(e)}}E.kind="func";class S extends m{render(e){return"return "+super.render(e)}}S.kind="return";class k extends y{render(e){let t="try"+super.render(e);if(this.catch)t+=this.catch.render(e);if(this.finally)t+=this.finally.render(e);return t}optimizeNodes(){var e,t;super.optimizeNodes();(e=this.catch)===null||e===void 0?void 0:e.optimizeNodes();(t=this.finally)===null||t===void 0?void 0:t.optimizeNodes();return this}optimizeNames(e,t){var r,s;super.optimizeNames(e,t);(r=this.catch)===null||r===void 0?void 0:r.optimizeNames(e,t);(s=this.finally)===null||s===void 0?void 0:s.optimizeNames(e,t);return this}get names(){const e=super.names;if(this.catch)C(e,this.catch.names);if(this.finally)C(e,this.finally.names);return e}}class N extends y{constructor(e){super();this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}N.kind="catch";class j extends y{render(e){return"finally"+super.render(e)}}j.kind="finally";class O{constructor(e,t={}){this._values={};this._blockStarts=[];this._constants={};this.opts={...t,_n:t.lines?"\n":""};this._extScope=e;this._scope=new n.Scope({parent:e});this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);const s=this._values[r.prefix]||(this._values[r.prefix]=new Set);s.add(r);return r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,s){const n=this._scope.toName(t);if(r!==undefined&&s)this._constants[n.str]=r;this._leafNode(new c(e,n,r));return n}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new u(e,t,r))}add(e,r){return this._leafNode(new d(e,t.operators.ADD,r))}code(e){if(typeof e=="function")e();else if(e!==s.nil)this._leafNode(new p(e));return this}object(...e){const t=["{"];for(const[r,n]of e){if(t.length>1)t.push(",");t.push(r);if(r!==n||this.opts.es5){t.push(":");(0,s.addCodeArg)(t,n)}}t.push("}");return new s._Code(t)}if(e,t,r){this._blockNode(new v(e));if(t&&r){this.code(t).else().code(r).endIf()}else if(t){this.code(t).endIf()}else if(r){throw new Error('CodeGen: "else" body without "then" body')}return this}elseIf(e){return this._elseNode(new v(e))}else(){return this._elseNode(new $)}endIf(){return this._endBlockNode(v,$)}_for(e,t){this._blockNode(e);if(t)this.code(t).endFor();return this}for(e,t){return this._for(new w(e),t)}forRange(e,t,r,s,o=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const a=this._scope.toName(e);return this._for(new b(o,a,t,r),(()=>s(a)))}forOf(e,t,r,o=n.varKinds.const){const a=this._scope.toName(e);if(this.opts.es5){const e=t instanceof s.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,s._)`${e}.length`,(t=>{this.var(a,(0,s._)`${e}[${t}]`);r(a)}))}return this._for(new P("of",o,a,t),(()=>r(a)))}forIn(e,t,r,o=(this.opts.es5?n.varKinds.var:n.varKinds.const)){if(this.opts.ownProperties){return this.forOf(e,(0,s._)`Object.keys(${t})`,r)}const a=this._scope.toName(e);return this._for(new P("in",o,a,t),(()=>r(a)))}endFor(){return this._endBlockNode(_)}label(e){return this._leafNode(new l(e))}break(e){return this._leafNode(new f(e))}return(e){const t=new S;this._blockNode(t);this.code(e);if(t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const s=new k;this._blockNode(s);this.code(e);if(t){const e=this.name("e");this._currNode=s.catch=new N(e);t(e)}if(r){this._currNode=s.finally=new j;this.code(r)}return this._endBlockNode(N,j)}throw(e){return this._leafNode(new h(e))}block(e,t){this._blockStarts.push(this._nodes.length);if(e)this.code(e).endBlock(t);return this}endBlock(e){const t=this._blockStarts.pop();if(t===undefined)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||e!==undefined&&r!==e){throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`)}this._nodes.length=t;return this}func(e,t=s.nil,r,n){this._blockNode(new E(e,t,r));if(n)this.code(n).endFunc();return this}endFunc(){return this._endBlockNode(E)}optimize(e=1){while(e-- >0){this._root.optimizeNodes();this._root.optimizeNames(this._root.names,this._constants)}}_leafNode(e){this._currNode.nodes.push(e);return this}_blockNode(e){this._currNode.nodes.push(e);this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t){this._nodes.pop();return this}throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof v)){throw new Error('CodeGen: "else" without "if"')}this._currNode=t.else=e;return this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}}t.CodeGen=O;function C(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function I(e,t){return t instanceof s._CodeOrName?C(e,t.names):e}function x(e,t,r){if(e instanceof s.Name)return n(e);if(!o(e))return e;return new s._Code(e._items.reduce(((e,t)=>{if(t instanceof s.Name)t=n(t);if(t instanceof s._Code)e.push(...t._items);else e.push(t);return e}),[]));function n(e){const s=r[e.str];if(s===undefined||t[e.str]!==1)return e;delete t[e.str];return s}function o(e){return e instanceof s._Code&&e._items.some((e=>e instanceof s.Name&&t[e.str]===1&&r[e.str]!==undefined))}}function T(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function R(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,s._)`!${q(e)}`}t.not=R;const M=z(t.operators.AND);function A(...e){return e.reduce(M)}t.and=A;const D=z(t.operators.OR);function V(...e){return e.reduce(D)}t.or=V;function z(e){return(t,r)=>t===s.nil?r:r===s.nil?t:(0,s._)`${q(t)} ${e} ${q(r)}`}function q(e){return e instanceof s.Name?e:(0,s._)`(${e})`}},57845:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const s=r(41520);class n extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`);this.value=e.value}}var o;(function(e){e[e["Started"]=0]="Started";e[e["Completed"]=1]="Completed"})(o||(t.UsedValueState=o={}));t.varKinds={const:new s.Name("const"),let:new s.Name("let"),var:new s.Name("var")};class a{constructor({prefixes:e,parent:t}={}){this._names={};this._prefixes=e;this._parent=t}toName(e){return e instanceof s.Name?e:this.name(e)}name(e){return new s.Name(this._newName(e))}_newName(e){const t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){var t,r;if(((r=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||r===void 0?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e)){throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`)}return this._names[e]={prefix:e,index:0}}}t.Scope=a;class i extends s.Name{constructor(e,t){super(t);this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e;this.scopePath=(0,s._)`.${new s.Name(t)}[${r}]`}}t.ValueScopeName=i;const c=(0,s._)`\n`;class u extends a{constructor(e){super(e);this._values={};this._scope=e.scope;this.opts={...e,_n:e.lines?c:s.nil}}get(){return this._scope}name(e){return new i(e,this._newName(e))}value(e,t){var r;if(t.ref===undefined)throw new Error("CodeGen: ref must be passed in value");const s=this.toName(e);const{prefix:n}=s;const o=(r=t.key)!==null&&r!==void 0?r:t.ref;let a=this._values[n];if(a){const e=a.get(o);if(e)return e}else{a=this._values[n]=new Map}a.set(o,s);const i=this._scope[n]||(this._scope[n]=[]);const c=i.length;i[c]=t.ref;s.setValue(t,{property:n,itemIndex:c});return s}getValue(e,t){const r=this._values[e];if(!r)return;return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(t.scopePath===undefined)throw new Error(`CodeGen: name "${t}" has no value`);return(0,s._)`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(e.value===undefined)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(e,r,a={},i){let c=s.nil;for(const u in e){const d=e[u];if(!d)continue;const l=a[u]=a[u]||new Map;d.forEach((e=>{if(l.has(e))return;l.set(e,o.Started);let a=r(e);if(a){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;c=(0,s._)`${c}${r} ${e} = ${a};${this.opts._n}`}else if(a=i===null||i===void 0?void 0:i(e)){c=(0,s._)`${c}${a}${this.opts._n}`}else{throw new n(e)}l.set(e,o.Completed)}))}return c}}t.ValueScope=u},48708:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const s=r(99029);const n=r(94227);const o=r(42023);t.keywordError={message:({keyword:e})=>(0,s.str)`must pass "${e}" keyword validation`};t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,s.str)`"${e}" keyword must be ${t} ($data)`:(0,s.str)`"${e}" keyword is invalid ($data)`};function a(e,r=t.keywordError,n,o){const{it:a}=e;const{gen:i,compositeRule:c,allErrors:u}=a;const f=h(e,r,n);if(o!==null&&o!==void 0?o:c||u){d(i,f)}else{l(a,(0,s._)`[${f}]`)}}t.reportError=a;function i(e,r=t.keywordError,s){const{it:n}=e;const{gen:a,compositeRule:i,allErrors:c}=n;const u=h(e,r,s);d(a,u);if(!(i||c)){l(n,o.default.vErrors)}}t.reportExtraError=i;function c(e,t){e.assign(o.default.errors,t);e.if((0,s._)`${o.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign((0,s._)`${o.default.vErrors}.length`,t)),(()=>e.assign(o.default.vErrors,null)))))}t.resetErrorsCount=c;function u({gen:e,keyword:t,schemaValue:r,data:n,errsCount:a,it:i}){if(a===undefined)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",a,o.default.errors,(a=>{e.const(c,(0,s._)`${o.default.vErrors}[${a}]`);e.if((0,s._)`${c}.instancePath === undefined`,(()=>e.assign((0,s._)`${c}.instancePath`,(0,s.strConcat)(o.default.instancePath,i.errorPath))));e.assign((0,s._)`${c}.schemaPath`,(0,s.str)`${i.errSchemaPath}/${t}`);if(i.opts.verbose){e.assign((0,s._)`${c}.schema`,r);e.assign((0,s._)`${c}.data`,n)}}))}t.extendErrors=u;function d(e,t){const r=e.const("err",t);e.if((0,s._)`${o.default.vErrors} === null`,(()=>e.assign(o.default.vErrors,(0,s._)`[${r}]`)),(0,s._)`${o.default.vErrors}.push(${r})`);e.code((0,s._)`${o.default.errors}++`)}function l(e,t){const{gen:r,validateName:n,schemaEnv:o}=e;if(o.$async){r.throw((0,s._)`new ${e.ValidationError}(${t})`)}else{r.assign((0,s._)`${n}.errors`,t);r.return(false)}}const f={keyword:new s.Name("keyword"),schemaPath:new s.Name("schemaPath"),params:new s.Name("params"),propertyName:new s.Name("propertyName"),message:new s.Name("message"),schema:new s.Name("schema"),parentSchema:new s.Name("parentSchema")};function h(e,t,r){const{createErrors:n}=e.it;if(n===false)return(0,s._)`{}`;return p(e,t,r)}function p(e,t,r={}){const{gen:s,it:n}=e;const o=[m(n,r),y(e,r)];g(e,t,o);return s.object(...o)}function m({errorPath:e},{instancePath:t}){const r=t?(0,s.str)`${e}${(0,n.getErrorPath)(t,n.Type.Str)}`:e;return[o.default.instancePath,(0,s.strConcat)(o.default.instancePath,r)]}function y({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:o}){let a=o?t:(0,s.str)`${t}/${e}`;if(r){a=(0,s.str)`${a}${(0,n.getErrorPath)(r,n.Type.Str)}`}return[f.schemaPath,a]}function g(e,{params:t,message:r},n){const{keyword:a,data:i,schemaValue:c,it:u}=e;const{opts:d,propertyName:l,topSchemaRef:h,schemaPath:p}=u;n.push([f.keyword,a],[f.params,typeof t=="function"?t(e):t||(0,s._)`{}`]);if(d.messages){n.push([f.message,typeof r=="function"?r(e):r])}if(d.verbose){n.push([f.schema,c],[f.parentSchema,(0,s._)`${h}${p}`],[o.default.data,i])}if(l)n.push([f.propertyName,l])}},73835:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const s=r(99029);const n=r(13558);const o=r(42023);const a=r(66939);const i=r(94227);const c=r(62586);class u{constructor(e){var t;this.refs={};this.dynamicAnchors={};let r;if(typeof e.schema=="object")r=e.schema;this.schema=e.schema;this.schemaId=e.schemaId;this.root=e.root||this;this.baseId=(t=e.baseId)!==null&&t!==void 0?t:(0,a.normalizeId)(r===null||r===void 0?void 0:r[e.schemaId||"$id"]);this.schemaPath=e.schemaPath;this.localRefs=e.localRefs;this.meta=e.meta;this.$async=r===null||r===void 0?void 0:r.$async;this.refs={}}}t.SchemaEnv=u;function d(e){const t=h.call(this,e);if(t)return t;const r=(0,a.getFullPath)(this.opts.uriResolver,e.root.baseId);const{es5:i,lines:u}=this.opts.code;const{ownProperties:d}=this.opts;const l=new s.CodeGen(this.scope,{es5:i,lines:u,ownProperties:d});let f;if(e.$async){f=l.scopeValue("Error",{ref:n.default,code:(0,s._)`require("ajv/dist/runtime/validation_error").default`})}const p=l.scopeName("validate");e.validateName=p;const m={gen:l,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[s.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",this.opts.code.source===true?{ref:e.schema,code:(0,s.stringify)(e.schema)}:{ref:e.schema}),validateName:p,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:s.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,s._)`""`,opts:this.opts,self:this};let y;try{this._compilations.add(e);(0,c.validateFunctionCode)(m);l.optimize(this.opts.code.optimize);const t=l.toString();y=`${l.scopeRefs(o.default.scope)}return ${t}`;if(this.opts.code.process)y=this.opts.code.process(y,e);const r=new Function(`${o.default.self}`,`${o.default.scope}`,y);const n=r(this,this.scope.get());this.scope.value(p,{ref:n});n.errors=null;n.schema=e.schema;n.schemaEnv=e;if(e.$async)n.$async=true;if(this.opts.code.source===true){n.source={validateName:p,validateCode:t,scopeValues:l._values}}if(this.opts.unevaluated){const{props:e,items:t}=m;n.evaluated={props:e instanceof s.Name?undefined:e,items:t instanceof s.Name?undefined:t,dynamicProps:e instanceof s.Name,dynamicItems:t instanceof s.Name};if(n.source)n.source.evaluated=(0,s.stringify)(n.evaluated)}e.validate=n;return e}catch(g){delete e.validate;delete e.validateName;if(y)this.logger.error("Error compiling schema, function code:",y);throw g}finally{this._compilations.delete(e)}}t.compileSchema=d;function l(e,t,r){var s;r=(0,a.resolveUrl)(this.opts.uriResolver,t,r);const n=e.refs[r];if(n)return n;let o=m.call(this,e,r);if(o===undefined){const n=(s=e.localRefs)===null||s===void 0?void 0:s[r];const{schemaId:a}=this.opts;if(n)o=new u({schema:n,schemaId:a,root:e,baseId:t})}if(o===undefined)return;return e.refs[r]=f.call(this,o)}t.resolveRef=l;function f(e){if((0,a.inlineRef)(e.schema,this.opts.inlineRefs))return e.schema;return e.validate?e:d.call(this,e)}function h(e){for(const t of this._compilations){if(p(t,e))return t}}t.getCompilingSchema=h;function p(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function m(e,t){let r;while(typeof(r=this.refs[t])=="string")t=r;return r||this.schemas[t]||y.call(this,e,t)}function y(e,t){const r=this.opts.uriResolver.parse(t);const s=(0,a._getFullPath)(this.opts.uriResolver,r);let n=(0,a.getFullPath)(this.opts.uriResolver,e.baseId,undefined);if(Object.keys(e.schema).length>0&&s===n){return $.call(this,r,e)}const o=(0,a.normalizeId)(s);const i=this.refs[o]||this.schemas[o];if(typeof i=="string"){const t=y.call(this,e,i);if(typeof(t===null||t===void 0?void 0:t.schema)!=="object")return;return $.call(this,r,t)}if(typeof(i===null||i===void 0?void 0:i.schema)!=="object")return;if(!i.validate)d.call(this,i);if(o===(0,a.normalizeId)(t)){const{schema:t}=i;const{schemaId:r}=this.opts;const s=t[r];if(s)n=(0,a.resolveUrl)(this.opts.uriResolver,n,s);return new u({schema:t,schemaId:r,root:e,baseId:n})}return $.call(this,r,i)}t.resolveSchema=y;const g=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function $(e,{baseId:t,schema:r,root:s}){var n;if(((n=e.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(const u of e.fragment.slice(1).split("/")){if(typeof r==="boolean")return;const e=r[(0,i.unescapeFragment)(u)];if(e===undefined)return;r=e;const s=typeof r==="object"&&r[this.opts.schemaId];if(!g.has(u)&&s){t=(0,a.resolveUrl)(this.opts.uriResolver,t,s)}}let o;if(typeof r!="boolean"&&r.$ref&&!(0,i.schemaHasRulesButRef)(r,this.RULES)){const e=(0,a.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=y.call(this,s,e)}const{schemaId:c}=this.opts;o=o||new u({schema:r,schemaId:c,root:s,baseId:t});if(o.schema!==o.root.schema)return o;return undefined}},42023:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n={data:new s.Name("data"),valCxt:new s.Name("valCxt"),instancePath:new s.Name("instancePath"),parentData:new s.Name("parentData"),parentDataProperty:new s.Name("parentDataProperty"),rootData:new s.Name("rootData"),dynamicAnchors:new s.Name("dynamicAnchors"),vErrors:new s.Name("vErrors"),errors:new s.Name("errors"),this:new s.Name("this"),self:new s.Name("self"),scope:new s.Name("scope"),json:new s.Name("json"),jsonPos:new s.Name("jsonPos"),jsonLen:new s.Name("jsonLen"),jsonPart:new s.Name("jsonPart")};t["default"]=n},34551:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(66939);class n extends Error{constructor(e,t,r,n){super(n||`can't resolve reference ${r} from id ${t}`);this.missingRef=(0,s.resolveUrl)(e,t,r);this.missingSchema=(0,s.normalizeId)((0,s.getFullPath)(e,this.missingRef))}}t["default"]=n},66939:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const s=r(94227);const n=r(32017);const o=r(7106);const a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(e,t=true){if(typeof e=="boolean")return true;if(t===true)return!u(e);if(!t)return false;return d(e)<=t}t.inlineRef=i;const c=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function u(e){for(const t in e){if(c.has(t))return true;const r=e[t];if(Array.isArray(r)&&r.some(u))return true;if(typeof r=="object"&&u(r))return true}return false}function d(e){let t=0;for(const r in e){if(r==="$ref")return Infinity;t++;if(a.has(r))continue;if(typeof e[r]=="object"){(0,s.eachItem)(e[r],(e=>t+=d(e)))}if(t===Infinity)return Infinity}return t}function l(e,t="",r){if(r!==false)t=p(t);const s=e.parse(t);return f(e,s)}t.getFullPath=l;function f(e,t){const r=e.serialize(t);return r.split("#")[0]+"#"}t._getFullPath=f;const h=/#\/?$/;function p(e){return e?e.replace(h,""):""}t.normalizeId=p;function m(e,t,r){r=p(r);return e.resolve(t,r)}t.resolveUrl=m;const y=/^[a-z_][-a-z0-9._]*$/i;function g(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:s}=this.opts;const a=p(e[r]||t);const i={"":a};const c=l(s,a,false);const u={};const d=new Set;o(e,{allKeys:true},((e,t,s,n)=>{if(n===undefined)return;const o=c+t;let a=i[n];if(typeof e[r]=="string")a=l.call(this,e[r]);m.call(this,e.$anchor);m.call(this,e.$dynamicAnchor);i[t]=a;function l(t){const r=this.opts.uriResolver.resolve;t=p(a?r(a,t):t);if(d.has(t))throw h(t);d.add(t);let s=this.refs[t];if(typeof s=="string")s=this.refs[s];if(typeof s=="object"){f(e,s.schema,t)}else if(t!==p(o)){if(t[0]==="#"){f(e,u[t],t);u[t]=e}else{this.refs[t]=o}}return t}function m(e){if(typeof e=="string"){if(!y.test(e))throw new Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}}));return u;function f(e,t,r){if(t!==undefined&&!n(e,t))throw h(r)}function h(e){return new Error(`reference "${e}" resolves to more than one schema`)}}t.getSchemaRefs=g},10396:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRules=t.isJSONType=void 0;const r=["string","number","integer","boolean","null","object","array"];const s=new Set(r);function n(e){return typeof e=="string"&&s.has(e)}t.isJSONType=n;function o(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:true,boolean:true,null:true},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}t.getRules=o},94227:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const s=r(99029);const n=r(41520);function o(e){const t={};for(const r of e)t[r]=true;return t}t.toHash=o;function a(e,t){if(typeof t=="boolean")return t;if(Object.keys(t).length===0)return true;i(e,t);return!c(t,e.self.RULES.all)}t.alwaysValidSchema=a;function i(e,t=e.schema){const{opts:r,self:s}=e;if(!r.strictSchema)return;if(typeof t==="boolean")return;const n=s.RULES.keywords;for(const o in t){if(!n[o])P(e,`unknown keyword: "${o}"`)}}t.checkUnknownRules=i;function c(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(t[r])return true;return false}t.schemaHasRules=c;function u(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(r!=="$ref"&&t.all[r])return true;return false}t.schemaHasRulesButRef=u;function d({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,s._)`${r}`}return(0,s._)`${e}${t}${(0,s.getProperty)(n)}`}t.schemaRefOrVal=d;function l(e){return p(decodeURIComponent(e))}t.unescapeFragment=l;function f(e){return encodeURIComponent(h(e))}t.escapeFragment=f;function h(e){if(typeof e=="number")return`${e}`;return e.replace(/~/g,"~0").replace(/\//g,"~1")}t.escapeJsonPointer=h;function p(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}t.unescapeJsonPointer=p;function m(e,t){if(Array.isArray(e)){for(const r of e)t(r)}else{t(e)}}t.eachItem=m;function y({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,a,i,c)=>{const u=i===undefined?a:i instanceof s.Name?(a instanceof s.Name?e(o,a,i):t(o,a,i),i):a instanceof s.Name?(t(o,i,a),a):r(a,i);return c===s.Name&&!(u instanceof s.Name)?n(o,u):u}}t.mergeEvaluated={props:y({mergeNames:(e,t,r)=>e.if((0,s._)`${r} !== true && ${t} !== undefined`,(()=>{e.if((0,s._)`${t} === true`,(()=>e.assign(r,true)),(()=>e.assign(r,(0,s._)`${r} || {}`).code((0,s._)`Object.assign(${r}, ${t})`)))})),mergeToName:(e,t,r)=>e.if((0,s._)`${r} !== true`,(()=>{if(t===true){e.assign(r,true)}else{e.assign(r,(0,s._)`${r} || {}`);$(e,r,t)}})),mergeValues:(e,t)=>e===true?true:{...e,...t},resultToName:g}),items:y({mergeNames:(e,t,r)=>e.if((0,s._)`${r} !== true && ${t} !== undefined`,(()=>e.assign(r,(0,s._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`))),mergeToName:(e,t,r)=>e.if((0,s._)`${r} !== true`,(()=>e.assign(r,t===true?true:(0,s._)`${r} > ${t} ? ${r} : ${t}`))),mergeValues:(e,t)=>e===true?true:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function g(e,t){if(t===true)return e.var("props",true);const r=e.var("props",(0,s._)`{}`);if(t!==undefined)$(e,r,t);return r}t.evaluatedPropsToName=g;function $(e,t,r){Object.keys(r).forEach((r=>e.assign((0,s._)`${t}${(0,s.getProperty)(r)}`,true)))}t.setEvaluated=$;const v={};function _(e,t){return e.scopeValue("func",{ref:t,code:v[t.code]||(v[t.code]=new n._Code(t.code))})}t.useFunc=_;var w;(function(e){e[e["Num"]=0]="Num";e[e["Str"]=1]="Str"})(w||(t.Type=w={}));function b(e,t,r){if(e instanceof s.Name){const n=t===w.Num;return r?n?(0,s._)`"[" + ${e} + "]"`:(0,s._)`"['" + ${e} + "']"`:n?(0,s._)`"/" + ${e}`:(0,s._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,s.getProperty)(e).toString():"/"+h(e)}t.getErrorPath=b;function P(e,t,r=e.opts.strictSchema){if(!r)return;t=`strict mode: ${t}`;if(r===true)throw new Error(t);e.self.logger.warn(t)}t.checkStrictMode=P},7887:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0;function r({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==true&&s(e,n)}t.schemaHasRulesForType=r;function s(e,t){return t.rules.some((t=>n(e,t)))}t.shouldUseGroup=s;function n(e,t){var r;return e[t.keyword]!==undefined||((r=t.definition.implements)===null||r===void 0?void 0:r.some((t=>e[t]!==undefined)))}t.shouldUseRule=n},28727:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const s=r(48708);const n=r(99029);const o=r(42023);const a={message:"boolean schema is false"};function i(e){const{gen:t,schema:r,validateName:s}=e;if(r===false){u(e,false)}else if(typeof r=="object"&&r.$async===true){t.return(o.default.data)}else{t.assign((0,n._)`${s}.errors`,null);t.return(true)}}t.topBoolOrEmptySchema=i;function c(e,t){const{gen:r,schema:s}=e;if(s===false){r.var(t,false);u(e)}else{r.var(t,true)}}t.boolOrEmptySchema=c;function u(e,t){const{gen:r,data:n}=e;const o={gen:r,keyword:"false schema",data:n,schema:false,schemaCode:false,schemaValue:false,params:{},it:e};(0,s.reportError)(o,a,undefined,t)}},10208:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const s=r(10396);const n=r(7887);const o=r(48708);const a=r(99029);const i=r(94227);var c;(function(e){e[e["Correct"]=0]="Correct";e[e["Wrong"]=1]="Wrong"})(c||(t.DataType=c={}));function u(e){const t=d(e.type);const r=t.includes("null");if(r){if(e.nullable===false)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==undefined){throw new Error('"nullable" cannot be used without "type"')}if(e.nullable===true)t.push("null")}return t}t.getSchemaTypes=u;function d(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(s.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}t.getJSONTypes=d;function l(e,t){const{gen:r,data:s,opts:o}=e;const a=h(t,o.coerceTypes);const i=t.length>0&&!(a.length===0&&t.length===1&&(0,n.schemaHasRulesForType)(e,t[0]));if(i){const n=g(t,s,o.strictNumbers,c.Wrong);r.if(n,(()=>{if(a.length)p(e,t,a);else v(e)}))}return i}t.coerceAndCheckDataType=l;const f=new Set(["string","number","integer","boolean","null"]);function h(e,t){return t?e.filter((e=>f.has(e)||t==="array"&&e==="array")):[]}function p(e,t,r){const{gen:s,data:n,opts:o}=e;const i=s.let("dataType",(0,a._)`typeof ${n}`);const c=s.let("coerced",(0,a._)`undefined`);if(o.coerceTypes==="array"){s.if((0,a._)`${i} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,(()=>s.assign(n,(0,a._)`${n}[0]`).assign(i,(0,a._)`typeof ${n}`).if(g(t,n,o.strictNumbers),(()=>s.assign(c,n)))))}s.if((0,a._)`${c} !== undefined`);for(const a of r){if(f.has(a)||a==="array"&&o.coerceTypes==="array"){u(a)}}s.else();v(e);s.endIf();s.if((0,a._)`${c} !== undefined`,(()=>{s.assign(n,c);m(e,c)}));function u(e){switch(e){case"string":s.elseIf((0,a._)`${i} == "number" || ${i} == "boolean"`).assign(c,(0,a._)`"" + ${n}`).elseIf((0,a._)`${n} === null`).assign(c,(0,a._)`""`);return;case"number":s.elseIf((0,a._)`${i} == "boolean" || ${n} === null + || (${i} == "string" && ${n} && ${n} == +${n})`).assign(c,(0,a._)`+${n}`);return;case"integer":s.elseIf((0,a._)`${i} === "boolean" || ${n} === null + || (${i} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(c,(0,a._)`+${n}`);return;case"boolean":s.elseIf((0,a._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(c,false).elseIf((0,a._)`${n} === "true" || ${n} === 1`).assign(c,true);return;case"null":s.elseIf((0,a._)`${n} === "" || ${n} === 0 || ${n} === false`);s.assign(c,null);return;case"array":s.elseIf((0,a._)`${i} === "string" || ${i} === "number" + || ${i} === "boolean" || ${n} === null`).assign(c,(0,a._)`[${n}]`)}}}function m({gen:e,parentData:t,parentDataProperty:r},s){e.if((0,a._)`${t} !== undefined`,(()=>e.assign((0,a._)`${t}[${r}]`,s)))}function y(e,t,r,s=c.Correct){const n=s===c.Correct?a.operators.EQ:a.operators.NEQ;let o;switch(e){case"null":return(0,a._)`${t} ${n} null`;case"array":o=(0,a._)`Array.isArray(${t})`;break;case"object":o=(0,a._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=i((0,a._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=i();break;default:return(0,a._)`typeof ${t} ${n} ${e}`}return s===c.Correct?o:(0,a.not)(o);function i(e=a.nil){return(0,a.and)((0,a._)`typeof ${t} == "number"`,e,r?(0,a._)`isFinite(${t})`:a.nil)}}t.checkDataType=y;function g(e,t,r,s){if(e.length===1){return y(e[0],t,r,s)}let n;const o=(0,i.toHash)(e);if(o.array&&o.object){const e=(0,a._)`typeof ${t} != "object"`;n=o.null?e:(0,a._)`!${t} || ${e}`;delete o.null;delete o.array;delete o.object}else{n=a.nil}if(o.number)delete o.integer;for(const i in o)n=(0,a.and)(n,y(i,t,r,s));return n}t.checkDataTypes=g;const $={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,a._)`{type: ${e}}`:(0,a._)`{type: ${t}}`};function v(e){const t=_(e);(0,o.reportError)(t,$)}t.reportTypeError=v;function _(e){const{gen:t,data:r,schema:s}=e;const n=(0,i.schemaRefOrVal)(e,s,"type");return{gen:t,keyword:"type",data:r,schema:s.type,schemaCode:n,schemaValue:n,parentSchema:s,params:{},it:e}}},7870:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.assignDefaults=void 0;const s=r(99029);const n=r(94227);function o(e,t){const{properties:r,items:s}=e.schema;if(t==="object"&&r){for(const t in r){a(e,t,r[t].default)}}else if(t==="array"&&Array.isArray(s)){s.forEach(((t,r)=>a(e,r,t.default)))}}t.assignDefaults=o;function a(e,t,r){const{gen:o,compositeRule:a,data:i,opts:c}=e;if(r===undefined)return;const u=(0,s._)`${i}${(0,s.getProperty)(t)}`;if(a){(0,n.checkStrictMode)(e,`default is ignored for: ${u}`);return}let d=(0,s._)`${u} === undefined`;if(c.useDefaults==="empty"){d=(0,s._)`${d} || ${u} === null || ${u} === ""`}o.if(d,(0,s._)`${u} = ${(0,s.stringify)(r)}`)}},62586:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const s=r(28727);const n=r(10208);const o=r(7887);const a=r(10208);const i=r(7870);const c=r(33673);const u=r(24495);const d=r(99029);const l=r(42023);const f=r(66939);const h=r(94227);const p=r(48708);function m(e){if(E(e)){k(e);if(P(e)){v(e);return}}y(e,(()=>(0,s.topBoolOrEmptySchema)(e)))}t.validateFunctionCode=m;function y({gen:e,validateName:t,schema:r,schemaEnv:s,opts:n},o){if(n.code.es5){e.func(t,(0,d._)`${l.default.data}, ${l.default.valCxt}`,s.$async,(()=>{e.code((0,d._)`"use strict"; ${w(r,n)}`);$(e,n);e.code(o)}))}else{e.func(t,(0,d._)`${l.default.data}, ${g(n)}`,s.$async,(()=>e.code(w(r,n)).code(o)))}}function g(e){return(0,d._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?(0,d._)`, ${l.default.dynamicAnchors}={}`:d.nil}}={}`}function $(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,(0,d._)`${l.default.valCxt}.${l.default.instancePath}`);e.var(l.default.parentData,(0,d._)`${l.default.valCxt}.${l.default.parentData}`);e.var(l.default.parentDataProperty,(0,d._)`${l.default.valCxt}.${l.default.parentDataProperty}`);e.var(l.default.rootData,(0,d._)`${l.default.valCxt}.${l.default.rootData}`);if(t.dynamicRef)e.var(l.default.dynamicAnchors,(0,d._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,(0,d._)`""`);e.var(l.default.parentData,(0,d._)`undefined`);e.var(l.default.parentDataProperty,(0,d._)`undefined`);e.var(l.default.rootData,l.default.data);if(t.dynamicRef)e.var(l.default.dynamicAnchors,(0,d._)`{}`)}))}function v(e){const{schema:t,opts:r,gen:s}=e;y(e,(()=>{if(r.$comment&&t.$comment)x(e);O(e);s.let(l.default.vErrors,null);s.let(l.default.errors,0);if(r.unevaluated)_(e);N(e);T(e)}));return}function _(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,d._)`${r}.evaluated`);t.if((0,d._)`${e.evaluated}.dynamicProps`,(()=>t.assign((0,d._)`${e.evaluated}.props`,(0,d._)`undefined`)));t.if((0,d._)`${e.evaluated}.dynamicItems`,(()=>t.assign((0,d._)`${e.evaluated}.items`,(0,d._)`undefined`)))}function w(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,d._)`/*# sourceURL=${r} */`:d.nil}function b(e,t){if(E(e)){k(e);if(P(e)){S(e,t);return}}(0,s.boolOrEmptySchema)(e,t)}function P({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return true;return false}function E(e){return typeof e.schema!="boolean"}function S(e,t){const{schema:r,gen:s,opts:n}=e;if(n.$comment&&r.$comment)x(e);C(e);I(e);const o=s.const("_errs",l.default.errors);N(e,o);s.var(t,(0,d._)`${o} === ${l.default.errors}`)}function k(e){(0,h.checkUnknownRules)(e);j(e)}function N(e,t){if(e.opts.jtd)return M(e,[],false,t);const r=(0,n.getSchemaTypes)(e.schema);const s=(0,n.coerceAndCheckDataType)(e,r);M(e,r,!s,t)}function j(e){const{schema:t,errSchemaPath:r,opts:s,self:n}=e;if(t.$ref&&s.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(t,n.RULES)){n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}}function O(e){const{schema:t,opts:r}=e;if(t.default!==undefined&&r.useDefaults&&r.strictSchema){(0,h.checkStrictMode)(e,"default is ignored in the schema root")}}function C(e){const t=e.schema[e.opts.schemaId];if(t)e.baseId=(0,f.resolveUrl)(e.opts.uriResolver,e.baseId,t)}function I(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function x({gen:e,schemaEnv:t,schema:r,errSchemaPath:s,opts:n}){const o=r.$comment;if(n.$comment===true){e.code((0,d._)`${l.default.self}.logger.log(${o})`)}else if(typeof n.$comment=="function"){const r=(0,d.str)`${s}/$comment`;const n=e.scopeValue("root",{ref:t.root});e.code((0,d._)`${l.default.self}.opts.$comment(${o}, ${r}, ${n}.schema)`)}}function T(e){const{gen:t,schemaEnv:r,validateName:s,ValidationError:n,opts:o}=e;if(r.$async){t.if((0,d._)`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw((0,d._)`new ${n}(${l.default.vErrors})`)))}else{t.assign((0,d._)`${s}.errors`,l.default.vErrors);if(o.unevaluated)R(e);t.return((0,d._)`${l.default.errors} === 0`)}}function R({gen:e,evaluated:t,props:r,items:s}){if(r instanceof d.Name)e.assign((0,d._)`${t}.props`,r);if(s instanceof d.Name)e.assign((0,d._)`${t}.items`,s)}function M(e,t,r,s){const{gen:n,schema:i,data:c,allErrors:u,opts:f,self:p}=e;const{RULES:m}=p;if(i.$ref&&(f.ignoreKeywordsWithRef||!(0,h.schemaHasRulesButRef)(i,m))){n.block((()=>H(e,"$ref",m.all.$ref.definition)));return}if(!f.jtd)D(e,t);n.block((()=>{for(const e of m.rules)y(e);y(m.post)}));function y(h){if(!(0,o.shouldUseGroup)(i,h))return;if(h.type){n.if((0,a.checkDataType)(h.type,c,f.strictNumbers));A(e,h);if(t.length===1&&t[0]===h.type&&r){n.else();(0,a.reportTypeError)(e)}n.endIf()}else{A(e,h)}if(!u)n.if((0,d._)`${l.default.errors} === ${s||0}`)}}function A(e,t){const{gen:r,schema:s,opts:{useDefaults:n}}=e;if(n)(0,i.assignDefaults)(e,t.type);r.block((()=>{for(const r of t.rules){if((0,o.shouldUseRule)(s,r)){H(e,r.keyword,r.definition,t.type)}}}))}function D(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;V(e,t);if(!e.opts.allowUnionTypes)z(e,t);q(e,e.dataTypes)}function V(e,t){if(!t.length)return;if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach((t=>{if(!K(e.dataTypes,t)){F(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}}));L(e,t)}function z(e,t){if(t.length>1&&!(t.length===2&&t.includes("null"))){F(e,"use allowUnionTypes to allow union type keyword")}}function q(e,t){const r=e.self.RULES.all;for(const s in r){const n=r[s];if(typeof n=="object"&&(0,o.shouldUseRule)(e.schema,n)){const{type:r}=n.definition;if(r.length&&!r.some((e=>U(t,e)))){F(e,`missing type "${r.join(",")}" for keyword "${s}"`)}}}}function U(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function K(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function L(e,t){const r=[];for(const s of e.dataTypes){if(K(t,s))r.push(s);else if(t.includes("integer")&&s==="number")r.push("integer")}e.dataTypes=r}function F(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`;(0,h.checkStrictMode)(e,t,e.opts.strictTypes)}class G{constructor(e,t,r){(0,c.validateKeywordUsage)(e,t,r);this.gen=e.gen;this.allErrors=e.allErrors;this.keyword=r;this.data=e.data;this.schema=e.schema[r];this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data;this.schemaValue=(0,h.schemaRefOrVal)(e,this.schema,r,this.$data);this.schemaType=t.schemaType;this.parentSchema=e.schema;this.params={};this.it=e;this.def=t;if(this.$data){this.schemaCode=e.gen.const("vSchema",W(this.$data,e))}else{this.schemaCode=this.schemaValue;if(!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined)){throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`)}}if("code"in t?t.trackErrors:t.errors!==false){this.errsCount=e.gen.const("_errs",l.default.errors)}}result(e,t,r){this.failResult((0,d.not)(e),t,r)}failResult(e,t,r){this.gen.if(e);if(r)r();else this.error();if(t){this.gen.else();t();if(this.allErrors)this.gen.endIf()}else{if(this.allErrors)this.gen.endIf();else this.gen.else()}}pass(e,t){this.failResult((0,d.not)(e),undefined,t)}fail(e){if(e===undefined){this.error();if(!this.allErrors)this.gen.if(false);return}this.gen.if(e);this.error();if(this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail((0,d._)`${t} !== undefined && (${(0,d.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t){this.setParams(t);this._error(e,r);this.setParams({});return}this._error(e,r)}_error(e,t){(e?p.reportExtraError:p.reportError)(this,this.def.error,t)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(this.errsCount===undefined)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(e){if(!this.allErrors)this.gen.if(e)}setParams(e,t){if(t)Object.assign(this.params,e);else this.params=e}block$data(e,t,r=d.nil){this.gen.block((()=>{this.check$data(e,r);t()}))}check$data(e=d.nil,t=d.nil){if(!this.$data)return;const{gen:r,schemaCode:s,schemaType:n,def:o}=this;r.if((0,d.or)((0,d._)`${s} === undefined`,t));if(e!==d.nil)r.assign(e,true);if(n.length||o.validateSchema){r.elseIf(this.invalid$data());this.$dataError();if(e!==d.nil)r.assign(e,false)}r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:s,it:n}=this;return(0,d.or)(o(),i());function o(){if(r.length){if(!(t instanceof d.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return(0,d._)`${(0,a.checkDataTypes)(e,t,n.opts.strictNumbers,a.DataType.Wrong)}`}return d.nil}function i(){if(s.validateSchema){const r=e.scopeValue("validate$data",{ref:s.validateSchema});return(0,d._)`!${r}(${t})`}return d.nil}}subschema(e,t){const r=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(r,this.it,e);(0,u.extendSubschemaMode)(r,e);const s={...this.it,...r,items:undefined,props:undefined};b(s,t);return s}mergeEvaluated(e,t){const{it:r,gen:s}=this;if(!r.opts.unevaluated)return;if(r.props!==true&&e.props!==undefined){r.props=h.mergeEvaluated.props(s,e.props,r.props,t)}if(r.items!==true&&e.items!==undefined){r.items=h.mergeEvaluated.items(s,e.items,r.items,t)}}mergeValidEvaluated(e,t){const{it:r,gen:s}=this;if(r.opts.unevaluated&&(r.props!==true||r.items!==true)){s.if(t,(()=>this.mergeEvaluated(e,d.Name)));return true}}}t.KeywordCxt=G;function H(e,t,r,s){const n=new G(e,r,t);if("code"in r){r.code(n,s)}else if(n.$data&&r.validate){(0,c.funcKeywordCode)(n,r)}else if("macro"in r){(0,c.macroKeywordCode)(n,r)}else if(r.compile||r.validate){(0,c.funcKeywordCode)(n,r)}}const J=/^\/(?:[^~]|~0|~1)*$/;const B=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function W(e,{dataLevel:t,dataNames:r,dataPathArr:s}){let n;let o;if(e==="")return l.default.rootData;if(e[0]==="/"){if(!J.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);n=e;o=l.default.rootData}else{const a=B.exec(e);if(!a)throw new Error(`Invalid JSON-pointer: ${e}`);const i=+a[1];n=a[2];if(n==="#"){if(i>=t)throw new Error(c("property/index",i));return s[t-i]}if(i>t)throw new Error(c("data",i));o=r[t-i];if(!n)return o}let a=o;const i=n.split("/");for(const u of i){if(u){o=(0,d._)`${o}${(0,d.getProperty)((0,h.unescapeJsonPointer)(u))}`;a=(0,d._)`${a} && ${o}`}}return a;function c(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=W},33673:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const s=r(99029);const n=r(42023);const o=r(15765);const a=r(48708);function i(e,t){const{gen:r,keyword:n,schema:o,parentSchema:a,it:i}=e;const c=t.macro.call(i.self,o,a,i);const u=f(r,n,c);if(i.opts.validateSchema!==false)i.self.validateSchema(c,true);const d=r.name("valid");e.subschema({schema:c,schemaPath:s.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:true},d);e.pass(d,(()=>e.error(true)))}t.macroKeywordCode=i;function c(e,t){var r;const{gen:a,keyword:i,schema:c,parentSchema:h,$data:p,it:m}=e;l(m,t);const y=!p&&t.compile?t.compile.call(m.self,c,h,m):t.validate;const g=f(a,i,y);const $=a.let("valid");e.block$data($,v);e.ok((r=t.valid)!==null&&r!==void 0?r:$);function v(){if(t.errors===false){b();if(t.modifying)u(e);P((()=>e.error()))}else{const r=t.async?_():w();if(t.modifying)u(e);P((()=>d(e,r)))}}function _(){const e=a.let("ruleErrs",null);a.try((()=>b((0,s._)`await `)),(t=>a.assign($,false).if((0,s._)`${t} instanceof ${m.ValidationError}`,(()=>a.assign(e,(0,s._)`${t}.errors`)),(()=>a.throw(t)))));return e}function w(){const e=(0,s._)`${g}.errors`;a.assign(e,null);b(s.nil);return e}function b(r=(t.async?(0,s._)`await `:s.nil)){const i=m.opts.passContext?n.default.this:n.default.self;const c=!("compile"in t&&!p||t.schema===false);a.assign($,(0,s._)`${r}${(0,o.callValidateCode)(e,g,i,c)}`,t.modifying)}function P(e){var r;a.if((0,s.not)((r=t.valid)!==null&&r!==void 0?r:$),e)}}t.funcKeywordCode=c;function u(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,(()=>t.assign(r,(0,s._)`${n.parentData}[${n.parentDataProperty}]`)))}function d(e,t){const{gen:r}=e;r.if((0,s._)`Array.isArray(${t})`,(()=>{r.assign(n.default.vErrors,(0,s._)`${n.default.vErrors} === null ? ${t} : ${n.default.vErrors}.concat(${t})`).assign(n.default.errors,(0,s._)`${n.default.vErrors}.length`);(0,a.extendErrors)(e)}),(()=>e.error()))}function l({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function f(e,t,r){if(r===undefined)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,s.stringify)(r)})}function h(e,t,r=false){return!t.length||t.some((t=>t==="array"?Array.isArray(e):t==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==t||r&&typeof e=="undefined"))}t.validSchemaType=h;function p({schema:e,opts:t,self:r,errSchemaPath:s},n,o){if(Array.isArray(n.keyword)?!n.keyword.includes(o):n.keyword!==o){throw new Error("ajv implementation error")}const a=n.dependencies;if(a===null||a===void 0?void 0:a.some((t=>!Object.prototype.hasOwnProperty.call(e,t)))){throw new Error(`parent schema must have dependencies of ${o}: ${a.join(",")}`)}if(n.validateSchema){const a=n.validateSchema(e[o]);if(!a){const e=`keyword "${o}" value is invalid at path "${s}": `+r.errorsText(n.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(e);else throw new Error(e)}}}t.validateKeywordUsage=p},24495:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const s=r(99029);const n=r(94227);function o(e,{keyword:t,schemaProp:r,schema:o,schemaPath:a,errSchemaPath:i,topSchemaRef:c}){if(t!==undefined&&o!==undefined){throw new Error('both "keyword" and "schema" passed, only one allowed')}if(t!==undefined){const o=e.schema[t];return r===undefined?{schema:o,schemaPath:(0,s._)`${e.schemaPath}${(0,s.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[r],schemaPath:(0,s._)`${e.schemaPath}${(0,s.getProperty)(t)}${(0,s.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,n.escapeFragment)(r)}`}}if(o!==undefined){if(a===undefined||i===undefined||c===undefined){throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"')}return{schema:o,schemaPath:a,topSchemaRef:c,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}t.getSubschema=o;function a(e,t,{dataProp:r,dataPropType:o,data:a,dataTypes:i,propertyName:c}){if(a!==undefined&&r!==undefined){throw new Error('both "data" and "dataProp" passed, only one allowed')}const{gen:u}=t;if(r!==undefined){const{errorPath:a,dataPathArr:i,opts:c}=t;const l=u.let("data",(0,s._)`${t.data}${(0,s.getProperty)(r)}`,true);d(l);e.errorPath=(0,s.str)`${a}${(0,n.getErrorPath)(r,o,c.jsPropertySyntax)}`;e.parentDataProperty=(0,s._)`${r}`;e.dataPathArr=[...i,e.parentDataProperty]}if(a!==undefined){const t=a instanceof s.Name?a:u.let("data",a,true);d(t);if(c!==undefined)e.propertyName=c}if(i)e.dataTypes=i;function d(r){e.data=r;e.dataLevel=t.dataLevel+1;e.dataTypes=[];t.definedProperties=new Set;e.parentData=t.data;e.dataNames=[...t.dataNames,r]}}t.extendSubschemaData=a;function i(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:s,createErrors:n,allErrors:o}){if(s!==undefined)e.compositeRule=s;if(n!==undefined)e.createErrors=n;if(o!==undefined)e.allErrors=o;e.jtdDiscriminator=t;e.jtdMetadata=r}t.extendSubschemaMode=i},4042:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var s=r(62586);Object.defineProperty(t,"KeywordCxt",{enumerable:true,get:function(){return s.KeywordCxt}});var n=r(99029);Object.defineProperty(t,"_",{enumerable:true,get:function(){return n._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return n.str}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return n.stringify}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return n.nil}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return n.Name}});Object.defineProperty(t,"CodeGen",{enumerable:true,get:function(){return n.CodeGen}});const o=r(13558);const a=r(34551);const i=r(10396);const c=r(73835);const u=r(99029);const d=r(66939);const l=r(10208);const f=r(94227);const h=r(63837);const p=r(55944);const m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"];const g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]);const $={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."};const v={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};const _=200;function w(e){var t,r,s,n,o,a,i,c,u,d,l,f,h,y,g,$,v,w,b,P,E,S,k,N,j;const O=e.strict;const C=(t=e.code)===null||t===void 0?void 0:t.optimize;const I=C===true||C===undefined?1:C||0;const x=(s=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&s!==void 0?s:m;const T=(n=e.uriResolver)!==null&&n!==void 0?n:p.default;return{strictSchema:(a=(o=e.strictSchema)!==null&&o!==void 0?o:O)!==null&&a!==void 0?a:true,strictNumbers:(c=(i=e.strictNumbers)!==null&&i!==void 0?i:O)!==null&&c!==void 0?c:true,strictTypes:(d=(u=e.strictTypes)!==null&&u!==void 0?u:O)!==null&&d!==void 0?d:"log",strictTuples:(f=(l=e.strictTuples)!==null&&l!==void 0?l:O)!==null&&f!==void 0?f:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:O)!==null&&y!==void 0?y:false,code:e.code?{...e.code,optimize:I,regExp:x}:{optimize:I,regExp:x},loopRequired:(g=e.loopRequired)!==null&&g!==void 0?g:_,loopEnum:($=e.loopEnum)!==null&&$!==void 0?$:_,meta:(v=e.meta)!==null&&v!==void 0?v:true,messages:(w=e.messages)!==null&&w!==void 0?w:true,inlineRefs:(b=e.inlineRefs)!==null&&b!==void 0?b:true,schemaId:(P=e.schemaId)!==null&&P!==void 0?P:"$id",addUsedSchema:(E=e.addUsedSchema)!==null&&E!==void 0?E:true,validateSchema:(S=e.validateSchema)!==null&&S!==void 0?S:true,validateFormats:(k=e.validateFormats)!==null&&k!==void 0?k:true,unicodeRegExp:(N=e.unicodeRegExp)!==null&&N!==void 0?N:true,int32range:(j=e.int32range)!==null&&j!==void 0?j:true,uriResolver:T}}class b{constructor(e={}){this.schemas={};this.refs={};this.formats={};this._compilations=new Set;this._loading={};this._cache=new Map;e=this.opts={...e,...w(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:g,es5:t,lines:r});this.logger=C(e.logger);const s=e.validateFormats;e.validateFormats=false;this.RULES=(0,i.getRules)();P.call(this,$,e,"NOT SUPPORTED");P.call(this,v,e,"DEPRECATED","warn");this._metaOpts=j.call(this);if(e.formats)k.call(this);this._addVocabularies();this._addDefaultMetaSchema();if(e.keywords)N.call(this,e.keywords);if(typeof e.meta=="object")this.addMetaSchema(e.meta);S.call(this);e.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let s=h;if(r==="id"){s={...h};s.id=s.$id;delete s.$id}if(t&&e)this.addMetaSchema(s,s[r],false)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[t]||e:undefined}validate(e,t){let r;if(typeof e=="string"){r=this.getSchema(e);if(!r)throw new Error(`no schema with key or ref "${e}"`)}else{r=this.compile(e)}const s=r(t);if(!("$async"in r))this.errors=r.errors;return s}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if(typeof this.opts.loadSchema!="function"){throw new Error("options.loadSchema should be a function")}const{loadSchema:r}=this.opts;return s.call(this,e,t);async function s(e,t){await n.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||o.call(this,r)}async function n(e){if(e&&!this.getSchema(e)){await s.call(this,{$ref:e},true)}}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;i.call(this,t);await c.call(this,t.missingSchema);return o.call(this,e)}}function i({missingSchema:e,missingRef:t}){if(this.refs[e]){throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}}async function c(e){const r=await u.call(this,e);if(!this.refs[e])await n.call(this,r.$schema);if(!this.refs[e])this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,s=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,undefined,r,s);return this}let n;if(typeof e==="object"){const{schemaId:t}=this.opts;n=e[t];if(n!==undefined&&typeof n!="string"){throw new Error(`schema ${t} must be string`)}}t=(0,d.normalizeId)(t||n);this._checkUnique(t);this.schemas[t]=this._addSchema(e,r,t,s,true);return this}addMetaSchema(e,t,r=this.opts.validateSchema){this.addSchema(e,t,true,r);return this}validateSchema(e,t){if(typeof e=="boolean")return true;let r;r=e.$schema;if(r!==undefined&&typeof r!="string"){throw new Error("$schema must be a string")}r=r||this.opts.defaultMeta||this.defaultMeta();if(!r){this.logger.warn("meta-schema not available");this.errors=null;return true}const s=this.validate(r,e);if(!s&&t){const e="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(e);else throw new Error(e)}return s}getSchema(e){let t;while(typeof(t=E.call(this,e))=="string")e=t;if(t===undefined){const{schemaId:r}=this.opts;const s=new c.SchemaEnv({schema:{},schemaId:r});t=c.resolveSchema.call(this,s,e);if(!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp){this._removeAllSchemas(this.schemas,e);this._removeAllSchemas(this.refs,e);return this}switch(typeof e){case"undefined":this._removeAllSchemas(this.schemas);this._removeAllSchemas(this.refs);this._cache.clear();return this;case"string":{const t=E.call(this,e);if(typeof t=="object")this._cache.delete(t.schema);delete this.schemas[e];delete this.refs[e];return this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];if(r){r=(0,d.normalizeId)(r);delete this.schemas[r];delete this.refs[r]}return this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if(typeof e=="string"){r=e;if(typeof t=="object"){this.logger.warn("these parameters are deprecated, see docs for addKeyword");t.keyword=r}}else if(typeof e=="object"&&t===undefined){t=e;r=t.keyword;if(Array.isArray(r)&&!r.length){throw new Error("addKeywords: keyword must be string or non-empty array")}}else{throw new Error("invalid addKeywords parameters")}x.call(this,r,t);if(!t){(0,f.eachItem)(r,(e=>T.call(this,e)));return this}M.call(this,t);const s={...t,type:(0,l.getJSONTypes)(t.type),schemaType:(0,l.getJSONTypes)(t.schemaType)};(0,f.eachItem)(r,s.type.length===0?e=>T.call(this,e,s):e=>s.type.forEach((t=>T.call(this,e,s,t))));return this}getKeyword(e){const t=this.RULES.all[e];return typeof t=="object"?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e];delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));if(t>=0)r.rules.splice(t,1)}return this}addFormat(e,t){if(typeof t=="string")t=new RegExp(t);this.formats[e]=t;return this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){if(!e||e.length===0)return"No errors";return e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r))}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const s of t){const t=s.split("/").slice(1);let n=e;for(const e of t)n=n[e];for(const e in r){const t=r[e];if(typeof t!="object")continue;const{$data:s}=t.definition;const o=n[e];if(s&&o)n[e]=D(o)}}return e}_removeAllSchemas(e,t){for(const r in e){const s=e[r];if(!t||t.test(r)){if(typeof s=="string"){delete e[r]}else if(s&&!s.meta){this._cache.delete(s.schema);delete e[r]}}}}_addSchema(e,t,r,s=this.opts.validateSchema,n=this.opts.addUsedSchema){let o;const{schemaId:a}=this.opts;if(typeof e=="object"){o=e[a]}else{if(this.opts.jtd)throw new Error("schema must be object");else if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let i=this._cache.get(e);if(i!==undefined)return i;r=(0,d.normalizeId)(o||r);const u=d.getSchemaRefs.call(this,e,r);i=new c.SchemaEnv({schema:e,schemaId:a,meta:t,baseId:r,localRefs:u});this._cache.set(i.schema,i);if(n&&!r.startsWith("#")){if(r)this._checkUnique(r);this.refs[r]=i}if(s)this.validateSchema(e,true);return i}_checkUnique(e){if(this.schemas[e]||this.refs[e]){throw new Error(`schema with key or id "${e}" already exists`)}}_compileSchemaEnv(e){if(e.meta)this._compileMetaSchema(e);else c.compileSchema.call(this,e);if(!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}b.ValidationError=o.default;b.MissingRefError=a.default;t["default"]=b;function P(e,t,r,s="error"){for(const n in e){const o=n;if(o in t)this.logger[s](`${r}: option ${n}. ${e[o]}`)}}function E(e){e=(0,d.normalizeId)(e);return this.schemas[e]||this.refs[e]}function S(){const e=this.opts.schemas;if(!e)return;if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function k(){for(const e in this.opts.formats){const t=this.opts.formats[e];if(t)this.addFormat(e,t)}}function N(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];if(!r.keyword)r.keyword=t;this.addKeyword(r)}}function j(){const e={...this.opts};for(const t of y)delete e[t];return e}const O={log(){},warn(){},error(){}};function C(e){if(e===false)return O;if(e===undefined)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}const I=/^[a-z_$][a-z0-9_$:-]*$/i;function x(e,t){const{RULES:r}=this;(0,f.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!I.test(e))throw new Error(`Keyword ${e} has invalid name`)}));if(!t)return;if(t.$data&&!("code"in t||"validate"in t)){throw new Error('$data keyword must have "code" or "validate" function')}}function T(e,t,r){var s;const n=t===null||t===void 0?void 0:t.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let a=n?o.post:o.rules.find((({type:e})=>e===r));if(!a){a={type:r,rules:[]};o.rules.push(a)}o.keywords[e]=true;if(!t)return;const i={keyword:e,definition:{...t,type:(0,l.getJSONTypes)(t.type),schemaType:(0,l.getJSONTypes)(t.schemaType)}};if(t.before)R.call(this,a,i,t.before);else a.rules.push(i);o.all[e]=i;(s=t.implements)===null||s===void 0?void 0:s.forEach((e=>this.addKeyword(e)))}function R(e,t,r){const s=e.rules.findIndex((e=>e.keyword===r));if(s>=0){e.rules.splice(s,0,t)}else{e.rules.push(t);this.logger.warn(`rule ${r} is not defined`)}}function M(e){let{metaSchema:t}=e;if(t===undefined)return;if(e.$data&&this.opts.$data)t=D(t);e.validateSchema=this.compile(t,true)}const A={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function D(e){return{anyOf:[e,A]}}},76250:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(32017);s.code='require("ajv/dist/runtime/equal").default';t["default"]=s},53853:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});function r(e){const t=e.length;let r=0;let s=0;let n;while(s=55296&&n<=56319&&s{Object.defineProperty(t,"__esModule",{value:true});const s=r(74488);s.code='require("ajv/dist/runtime/uri").default';t["default"]=s},13558:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});class r extends Error{constructor(e){super("validation failed");this.errors=e;this.ajv=this.validation=true}}t["default"]=r},15457:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.validateAdditionalItems=void 0;const s=r(99029);const n=r(94227);const o={message:({params:{len:e}})=>(0,s.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,s._)`{limit: ${e}}`};const a={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:o,code(e){const{parentSchema:t,it:r}=e;const{items:s}=t;if(!Array.isArray(s)){(0,n.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(e,s)}};function i(e,t){const{gen:r,schema:o,data:a,keyword:i,it:c}=e;c.items=true;const u=r.const("len",(0,s._)`${a}.length`);if(o===false){e.setParams({len:t.length});e.pass((0,s._)`${u} <= ${t.length}`)}else if(typeof o=="object"&&!(0,n.alwaysValidSchema)(c,o)){const n=r.var("valid",(0,s._)`${u} <= ${t.length}`);r.if((0,s.not)(n),(()=>d(n)));e.ok(n)}function d(o){r.forRange("i",t.length,u,(t=>{e.subschema({keyword:i,dataProp:t,dataPropType:n.Type.Num},o);if(!c.allErrors)r.if((0,s.not)(o),(()=>r.break()))}))}}t.validateAdditionalItems=i;t["default"]=a},38660:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(15765);const n=r(99029);const o=r(42023);const a=r(94227);const i={message:"must NOT have additional properties",params:({params:e})=>(0,n._)`{additionalProperty: ${e.additionalProperty}}`};const c={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:true,trackErrors:true,error:i,code(e){const{gen:t,schema:r,parentSchema:i,data:c,errsCount:u,it:d}=e;if(!u)throw new Error("ajv implementation error");const{allErrors:l,opts:f}=d;d.props=true;if(f.removeAdditional!=="all"&&(0,a.alwaysValidSchema)(d,r))return;const h=(0,s.allSchemaProperties)(i.properties);const p=(0,s.allSchemaProperties)(i.patternProperties);m();e.ok((0,n._)`${u} === ${o.default.errors}`);function m(){t.forIn("key",c,(e=>{if(!h.length&&!p.length)$(e);else t.if(y(e),(()=>$(e)))}))}function y(r){let o;if(h.length>8){const e=(0,a.schemaRefOrVal)(d,i.properties,"properties");o=(0,s.isOwnProperty)(t,e,r)}else if(h.length){o=(0,n.or)(...h.map((e=>(0,n._)`${r} === ${e}`)))}else{o=n.nil}if(p.length){o=(0,n.or)(o,...p.map((t=>(0,n._)`${(0,s.usePattern)(e,t)}.test(${r})`)))}return(0,n.not)(o)}function g(e){t.code((0,n._)`delete ${c}[${e}]`)}function $(s){if(f.removeAdditional==="all"||f.removeAdditional&&r===false){g(s);return}if(r===false){e.setParams({additionalProperty:s});e.error();if(!l)t.break();return}if(typeof r=="object"&&!(0,a.alwaysValidSchema)(d,r)){const r=t.name("valid");if(f.removeAdditional==="failing"){v(s,r,false);t.if((0,n.not)(r),(()=>{e.reset();g(s)}))}else{v(s,r);if(!l)t.if((0,n.not)(r),(()=>t.break()))}}}function v(t,r,s){const n={keyword:"additionalProperties",dataProp:t,dataPropType:a.Type.Str};if(s===false){Object.assign(n,{compositeRule:true,createErrors:false,allErrors:false})}e.subschema(n,r)}}};t["default"]=c},15844:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(94227);const n={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach(((t,r)=>{if((0,s.alwaysValidSchema)(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o);e.mergeEvaluated(a)}))}};t["default"]=n},16505:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(15765);const n={keyword:"anyOf",schemaType:"array",trackErrors:true,code:s.validateUnion,error:{message:"must match a schema in anyOf"}};t["default"]=n},12661:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(94227);const o={message:({params:{min:e,max:t}})=>t===undefined?(0,s.str)`must contain at least ${e} valid item(s)`:(0,s.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===undefined?(0,s._)`{minContains: ${e}}`:(0,s._)`{minContains: ${e}, maxContains: ${t}}`};const a={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:true,error:o,code(e){const{gen:t,schema:r,parentSchema:o,data:a,it:i}=e;let c;let u;const{minContains:d,maxContains:l}=o;if(i.opts.next){c=d===undefined?1:d;u=l}else{c=1}const f=t.const("len",(0,s._)`${a}.length`);e.setParams({min:c,max:u});if(u===undefined&&c===0){(0,n.checkStrictMode)(i,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(u!==undefined&&c>u){(0,n.checkStrictMode)(i,`"minContains" > "maxContains" is always invalid`);e.fail();return}if((0,n.alwaysValidSchema)(i,r)){let t=(0,s._)`${f} >= ${c}`;if(u!==undefined)t=(0,s._)`${t} && ${f} <= ${u}`;e.pass(t);return}i.items=true;const h=t.name("valid");if(u===undefined&&c===1){m(h,(()=>t.if(h,(()=>t.break()))))}else if(c===0){t.let(h,true);if(u!==undefined)t.if((0,s._)`${a}.length > 0`,p)}else{t.let(h,false);p()}e.result(h,(()=>e.reset()));function p(){const e=t.name("_valid");const r=t.let("count",0);m(e,(()=>t.if(e,(()=>y(r)))))}function m(r,s){t.forRange("i",0,f,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:n.Type.Num,compositeRule:true},r);s()}))}function y(e){t.code((0,s._)`${e}++`);if(u===undefined){t.if((0,s._)`${e} >= ${c}`,(()=>t.assign(h,true).break()))}else{t.if((0,s._)`${e} > ${u}`,(()=>t.assign(h,false).break()));if(c===1)t.assign(h,true);else t.if((0,s._)`${e} >= ${c}`,(()=>t.assign(h,true)))}}}};t["default"]=a},83025:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const s=r(99029);const n=r(94227);const o=r(15765);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const n=t===1?"property":"properties";return(0,s.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,s._)`{property: ${e}, + missingProperty: ${n}, + depsCount: ${t}, + deps: ${r}}`};const a={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=i(e);c(e,t);u(e,r)}};function i({schema:e}){const t={};const r={};for(const s in e){if(s==="__proto__")continue;const n=Array.isArray(e[s])?t:r;n[s]=e[s]}return[t,r]}function c(e,t=e.schema){const{gen:r,data:n,it:a}=e;if(Object.keys(t).length===0)return;const i=r.let("missing");for(const c in t){const u=t[c];if(u.length===0)continue;const d=(0,o.propertyInData)(r,n,c,a.opts.ownProperties);e.setParams({property:c,depsCount:u.length,deps:u.join(", ")});if(a.allErrors){r.if(d,(()=>{for(const t of u){(0,o.checkReportMissingProp)(e,t)}}))}else{r.if((0,s._)`${d} && (${(0,o.checkMissingProp)(e,u,i)})`);(0,o.reportMissingProp)(e,i);r.else()}}}t.validatePropertyDeps=c;function u(e,t=e.schema){const{gen:r,data:s,keyword:a,it:i}=e;const c=r.name("valid");for(const u in t){if((0,n.alwaysValidSchema)(i,t[u]))continue;r.if((0,o.propertyInData)(r,s,u,i.opts.ownProperties),(()=>{const t=e.subschema({keyword:a,schemaProp:u},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,true)));e.ok(c)}}t.validateSchemaDeps=u;t["default"]=a},1239:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(94227);const o={message:({params:e})=>(0,s.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,s._)`{failingKeyword: ${e.ifClause}}`};const a={keyword:"if",schemaType:["object","boolean"],trackErrors:true,error:o,code(e){const{gen:t,parentSchema:r,it:o}=e;if(r.then===undefined&&r.else===undefined){(0,n.checkStrictMode)(o,'"if" without "then" and "else" is ignored')}const a=i(o,"then");const c=i(o,"else");if(!a&&!c)return;const u=t.let("valid",true);const d=t.name("_valid");l();e.reset();if(a&&c){const r=t.let("ifClause");e.setParams({ifClause:r});t.if(d,f("then",r),f("else",r))}else if(a){t.if(d,f("then"))}else{t.if((0,s.not)(d),f("else"))}e.pass(u,(()=>e.error(true)));function l(){const t=e.subschema({keyword:"if",compositeRule:true,createErrors:false,allErrors:false},d);e.mergeEvaluated(t)}function f(r,n){return()=>{const o=e.subschema({keyword:r},d);t.assign(u,d);e.mergeValidEvaluated(o,u);if(n)t.assign(n,(0,s._)`${r}`);else e.setParams({ifClause:r})}}}};function i(e,t){const r=e.schema[t];return r!==undefined&&!(0,n.alwaysValidSchema)(e,r)}t["default"]=a},56378:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(15457);const n=r(65354);const o=r(20494);const a=r(93966);const i=r(12661);const c=r(83025);const u=r(19713);const d=r(38660);const l=r(40117);const f=r(45333);const h=r(57923);const p=r(16505);const m=r(96163);const y=r(15844);const g=r(1239);const $=r(14426);function v(e=false){const t=[h.default,p.default,m.default,y.default,g.default,$.default,u.default,d.default,c.default,l.default,f.default];if(e)t.push(n.default,a.default);else t.push(s.default,o.default);t.push(i.default);return t}t["default"]=v},20494:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.validateTuple=void 0;const s=r(99029);const n=r(94227);const o=r(15765);const a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return i(e,"additionalItems",t);r.items=true;if((0,n.alwaysValidSchema)(r,t))return;e.ok((0,o.validateArray)(e))}};function i(e,t,r=e.schema){const{gen:o,parentSchema:a,data:i,keyword:c,it:u}=e;f(a);if(u.opts.unevaluated&&r.length&&u.items!==true){u.items=n.mergeEvaluated.items(o,r.length,u.items)}const d=o.name("valid");const l=o.const("len",(0,s._)`${i}.length`);r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(u,t))return;o.if((0,s._)`${l} > ${r}`,(()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},d)));e.ok(d)}));function f(e){const{opts:s,errSchemaPath:o}=u;const a=r.length;const i=a===e.minItems&&(a===e.maxItems||e[t]===false);if(s.strictTuples&&!i){const e=`"${c}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,n.checkStrictMode)(u,e,s.strictTuples)}}}t.validateTuple=i;t["default"]=a},93966:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(94227);const o=r(15765);const a=r(15457);const i={message:({params:{len:e}})=>(0,s.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,s._)`{limit: ${e}}`};const c={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:i,code(e){const{schema:t,parentSchema:r,it:s}=e;const{prefixItems:i}=r;s.items=true;if((0,n.alwaysValidSchema)(s,t))return;if(i)(0,a.validateAdditionalItems)(e,i);else e.ok((0,o.validateArray)(e))}};t["default"]=c},57923:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(94227);const n={keyword:"not",schemaType:["object","boolean"],trackErrors:true,code(e){const{gen:t,schema:r,it:n}=e;if((0,s.alwaysValidSchema)(n,r)){e.fail();return}const o=t.name("valid");e.subschema({keyword:"not",compositeRule:true,createErrors:false,allErrors:false},o);e.failResult(o,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t["default"]=n},96163:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(94227);const o={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,s._)`{passingSchemas: ${e.passing}}`};const a={keyword:"oneOf",schemaType:"array",trackErrors:true,error:o,code(e){const{gen:t,schema:r,parentSchema:o,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(a.opts.discriminator&&o.discriminator)return;const i=r;const c=t.let("valid",false);const u=t.let("passing",null);const d=t.name("_valid");e.setParams({passing:u});t.block(l);e.result(c,(()=>e.reset()),(()=>e.error(true)));function l(){i.forEach(((r,o)=>{let i;if((0,n.alwaysValidSchema)(a,r)){t.var(d,true)}else{i=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:true},d)}if(o>0){t.if((0,s._)`${d} && ${c}`).assign(c,false).assign(u,(0,s._)`[${u}, ${o}]`).else()}t.if(d,(()=>{t.assign(c,true);t.assign(u,o);if(i)e.mergeEvaluated(i,s.Name)}))}))}}};t["default"]=a},45333:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(15765);const n=r(99029);const o=r(94227);const a=r(94227);const i={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:i,parentSchema:c,it:u}=e;const{opts:d}=u;const l=(0,s.allSchemaProperties)(r);const f=l.filter((e=>(0,o.alwaysValidSchema)(u,r[e])));if(l.length===0||f.length===l.length&&(!u.opts.unevaluated||u.props===true)){return}const h=d.strictSchema&&!d.allowMatchingProperties&&c.properties;const p=t.name("valid");if(u.props!==true&&!(u.props instanceof n.Name)){u.props=(0,a.evaluatedPropsToName)(t,u.props)}const{props:m}=u;y();function y(){for(const e of l){if(h)g(e);if(u.allErrors){$(e)}else{t.var(p,true);$(e);t.if(p)}}}function g(e){for(const t in h){if(new RegExp(e).test(t)){(0,o.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}}}function $(r){t.forIn("key",i,(o=>{t.if((0,n._)`${(0,s.usePattern)(e,r)}.test(${o})`,(()=>{const s=f.includes(r);if(!s){e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:o,dataPropType:a.Type.Str},p)}if(u.opts.unevaluated&&m!==true){t.assign((0,n._)`${m}[${o}]`,true)}else if(!s&&!u.allErrors){t.if((0,n.not)(p),(()=>t.break()))}}))}))}}};t["default"]=i},65354:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(20494);const n={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,s.validateTuple)(e,"items")};t["default"]=n},40117:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(62586);const n=r(15765);const o=r(94227);const a=r(38660);const i={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:i,data:c,it:u}=e;if(u.opts.removeAdditional==="all"&&i.additionalProperties===undefined){a.default.code(new s.KeywordCxt(u,a.default,"additionalProperties"))}const d=(0,n.allSchemaProperties)(r);for(const s of d){u.definedProperties.add(s)}if(u.opts.unevaluated&&d.length&&u.props!==true){u.props=o.mergeEvaluated.props(t,(0,o.toHash)(d),u.props)}const l=d.filter((e=>!(0,o.alwaysValidSchema)(u,r[e])));if(l.length===0)return;const f=t.name("valid");for(const s of l){if(h(s)){p(s)}else{t.if((0,n.propertyInData)(t,c,s,u.opts.ownProperties));p(s);if(!u.allErrors)t.else().var(f,true);t.endIf()}e.it.definedProperties.add(s);e.ok(f)}function h(e){return u.opts.useDefaults&&!u.compositeRule&&r[e].default!==undefined}function p(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t["default"]=i},19713:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(94227);const o={message:"property name must be valid",params:({params:e})=>(0,s._)`{propertyName: ${e.propertyName}}`};const a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:o,code(e){const{gen:t,schema:r,data:o,it:a}=e;if((0,n.alwaysValidSchema)(a,r))return;const i=t.name("valid");t.forIn("key",o,(r=>{e.setParams({propertyName:r});e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:true},i);t.if((0,s.not)(i),(()=>{e.error(true);if(!a.allErrors)t.break()}))}));e.ok(i)}};t["default"]=a},14426:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(94227);const n={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){if(t.if===undefined)(0,s.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t["default"]=n},15765:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const s=r(99029);const n=r(94227);const o=r(42023);const a=r(94227);function i(e,t){const{gen:r,data:n,it:o}=e;r.if(h(r,n,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:(0,s._)`${t}`},true);e.error()}))}t.checkReportMissingProp=i;function c({gen:e,data:t,it:{opts:r}},n,o){return(0,s.or)(...n.map((n=>(0,s.and)(h(e,t,n,r.ownProperties),(0,s._)`${o} = ${n}`))))}t.checkMissingProp=c;function u(e,t){e.setParams({missingProperty:t},true);e.error()}t.reportMissingProp=u;function d(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,s._)`Object.prototype.hasOwnProperty`})}t.hasPropFunc=d;function l(e,t,r){return(0,s._)`${d(e)}.call(${t}, ${r})`}t.isOwnProperty=l;function f(e,t,r,n){const o=(0,s._)`${t}${(0,s.getProperty)(r)} !== undefined`;return n?(0,s._)`${o} && ${l(e,t,r)}`:o}t.propertyInData=f;function h(e,t,r,n){const o=(0,s._)`${t}${(0,s.getProperty)(r)} === undefined`;return n?(0,s.or)(o,(0,s.not)(l(e,t,r))):o}t.noPropertyInData=h;function p(e){return e?Object.keys(e).filter((e=>e!=="__proto__")):[]}t.allSchemaProperties=p;function m(e,t){return p(t).filter((r=>!(0,n.alwaysValidSchema)(e,t[r])))}t.schemaProperties=m;function y({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:a,errorPath:i},it:c},u,d,l){const f=l?(0,s._)`${e}, ${t}, ${n}${a}`:t;const h=[[o.default.instancePath,(0,s.strConcat)(o.default.instancePath,i)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];if(c.opts.dynamicRef)h.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const p=(0,s._)`${f}, ${r.object(...h)}`;return d!==s.nil?(0,s._)`${u}.call(${d}, ${p})`:(0,s._)`${u}(${p})`}t.callValidateCode=y;const g=(0,s._)`new RegExp`;function $({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"";const{regExp:o}=t.code;const i=o(r,n);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,s._)`${o.code==="new RegExp"?g:(0,a.useFunc)(e,o)}(${r}, ${n})`})}t.usePattern=$;function v(e){const{gen:t,data:r,keyword:o,it:a}=e;const i=t.name("valid");if(a.allErrors){const e=t.let("valid",true);c((()=>t.assign(e,false)));return e}t.var(i,true);c((()=>t.break()));return i;function c(a){const c=t.const("len",(0,s._)`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:o,dataProp:r,dataPropType:n.Type.Num},i);t.if((0,s.not)(i),a)}))}}t.validateArray=v;function _(e){const{gen:t,schema:r,keyword:o,it:a}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=r.some((e=>(0,n.alwaysValidSchema)(a,e)));if(i&&!a.opts.unevaluated)return;const c=t.let("valid",false);const u=t.name("_valid");t.block((()=>r.forEach(((r,n)=>{const a=e.subschema({keyword:o,schemaProp:n,compositeRule:true},u);t.assign(c,(0,s._)`${c} || ${u}`);const i=e.mergeValidEvaluated(a,u);if(!i)t.if((0,s.not)(c))}))));e.result(c,(()=>e.reset()),(()=>e.error(true)))}t.validateUnion=_},83463:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t["default"]=r},72128:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(83463);const n=r(13693);const o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",s.default,n.default];t["default"]=o},13693:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.callRef=t.getValidate=void 0;const s=r(34551);const n=r(15765);const o=r(99029);const a=r(42023);const i=r(73835);const c=r(94227);const u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e;const{baseId:a,schemaEnv:c,validateName:u,opts:f,self:h}=n;const{root:p}=c;if((r==="#"||r==="#/")&&a===p.baseId)return y();const m=i.resolveRef.call(h,p,a,r);if(m===undefined)throw new s.default(n.opts.uriResolver,a,r);if(m instanceof i.SchemaEnv)return g(m);return $(m);function y(){if(c===p)return l(e,u,c,c.$async);const r=t.scopeValue("root",{ref:p});return l(e,(0,o._)`${r}.validate`,p,p.$async)}function g(t){const r=d(e,t);l(e,r,t,t.$async)}function $(s){const n=t.scopeValue("schema",f.code.source===true?{ref:s,code:(0,o.stringify)(s)}:{ref:s});const a=t.name("valid");const i=e.subschema({schema:s,dataTypes:[],schemaPath:o.nil,topSchemaRef:n,errSchemaPath:r},a);e.mergeEvaluated(i);e.ok(a)}}};function d(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,o._)`${r.scopeValue("wrapper",{ref:t})}.validate`}t.getValidate=d;function l(e,t,r,s){const{gen:i,it:u}=e;const{allErrors:d,schemaEnv:l,opts:f}=u;const h=f.passContext?a.default.this:o.nil;if(s)p();else m();function p(){if(!l.$async)throw new Error("async schema referenced by sync schema");const r=i.let("valid");i.try((()=>{i.code((0,o._)`await ${(0,n.callValidateCode)(e,t,h)}`);g(t);if(!d)i.assign(r,true)}),(e=>{i.if((0,o._)`!(${e} instanceof ${u.ValidationError})`,(()=>i.throw(e)));y(e);if(!d)i.assign(r,false)}));e.ok(r)}function m(){e.result((0,n.callValidateCode)(e,t,h),(()=>g(t)),(()=>y(t)))}function y(e){const t=(0,o._)`${e}.errors`;i.assign(a.default.vErrors,(0,o._)`${a.default.vErrors} === null ? ${t} : ${a.default.vErrors}.concat(${t})`);i.assign(a.default.errors,(0,o._)`${a.default.vErrors}.length`)}function g(e){var t;if(!u.opts.unevaluated)return;const s=(t=r===null||r===void 0?void 0:r.validate)===null||t===void 0?void 0:t.evaluated;if(u.props!==true){if(s&&!s.dynamicProps){if(s.props!==undefined){u.props=c.mergeEvaluated.props(i,s.props,u.props)}}else{const t=i.var("props",(0,o._)`${e}.evaluated.props`);u.props=c.mergeEvaluated.props(i,t,u.props,o.Name)}}if(u.items!==true){if(s&&!s.dynamicItems){if(s.items!==undefined){u.items=c.mergeEvaluated.items(i,s.items,u.items)}}else{const t=i.var("items",(0,o._)`${e}.evaluated.items`);u.items=c.mergeEvaluated.items(i,t,u.items,o.Name)}}}}t.callRef=l;t["default"]=u},36653:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(97652);const o=r(73835);const a=r(34551);const i=r(94227);const c={message:({params:{discrError:e,tagName:t}})=>e===n.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,s._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};const u={keyword:"discriminator",type:"object",schemaType:"object",error:c,code(e){const{gen:t,data:r,schema:c,parentSchema:u,it:d}=e;const{oneOf:l}=u;if(!d.opts.discriminator){throw new Error("discriminator: requires discriminator option")}const f=c.propertyName;if(typeof f!="string")throw new Error("discriminator: requires propertyName");if(c.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");const h=t.let("valid",false);const p=t.const("tag",(0,s._)`${r}${(0,s.getProperty)(f)}`);t.if((0,s._)`typeof ${p} == "string"`,(()=>m()),(()=>e.error(false,{discrError:n.DiscrError.Tag,tag:p,tagName:f})));e.ok(h);function m(){const r=g();t.if(false);for(const e in r){t.elseIf((0,s._)`${p} === ${e}`);t.assign(h,y(r[e]))}t.else();e.error(false,{discrError:n.DiscrError.Mapping,tag:p,tagName:f});t.endIf()}function y(r){const n=t.name("valid");const o=e.subschema({keyword:"oneOf",schemaProp:r},n);e.mergeEvaluated(o,s.Name);return n}function g(){var e;const t={};const r=n(u);let s=true;for(let u=0;u{Object.defineProperty(t,"__esModule",{value:true});t.DiscrError=void 0;var r;(function(e){e["Tag"]="tag";e["Mapping"]="mapping"})(r||(t.DiscrError=r={}))},63763:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(72128);const n=r(67060);const o=r(56378);const a=r(97532);const i=r(69857);const c=[s.default,n.default,(0,o.default)(),a.default,i.metadataVocabulary,i.contentVocabulary];t["default"]=c},94737:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n={message:({schemaCode:e})=>(0,s.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,s._)`{format: ${e}}`};const o={keyword:"format",type:["number","string"],schemaType:"string",$data:true,error:n,code(e,t){const{gen:r,data:n,$data:o,schema:a,schemaCode:i,it:c}=e;const{opts:u,errSchemaPath:d,schemaEnv:l,self:f}=c;if(!u.validateFormats)return;if(o)h();else p();function h(){const o=r.scopeValue("formats",{ref:f.formats,code:u.code.formats});const a=r.const("fDef",(0,s._)`${o}[${i}]`);const c=r.let("fType");const d=r.let("format");r.if((0,s._)`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(c,(0,s._)`${a}.type || "string"`).assign(d,(0,s._)`${a}.validate`)),(()=>r.assign(c,(0,s._)`"string"`).assign(d,a)));e.fail$data((0,s.or)(h(),p()));function h(){if(u.strictSchema===false)return s.nil;return(0,s._)`${i} && !${d}`}function p(){const e=l.$async?(0,s._)`(${a}.async ? await ${d}(${n}) : ${d}(${n}))`:(0,s._)`${d}(${n})`;const r=(0,s._)`(typeof ${d} == "function" ? ${e} : ${d}.test(${n}))`;return(0,s._)`${d} && ${d} !== true && ${c} === ${t} && !${r}`}}function p(){const o=f.formats[a];if(!o){p();return}if(o===true)return;const[i,c,h]=m(o);if(i===t)e.pass(y());function p(){if(u.strictSchema===false){f.logger.warn(e());return}throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${d}"`}}function m(e){const t=e instanceof RegExp?(0,s.regexpCode)(e):u.code.formats?(0,s._)`${u.code.formats}${(0,s.getProperty)(a)}`:undefined;const n=r.scopeValue("formats",{key:a,ref:e,code:t});if(typeof e=="object"&&!(e instanceof RegExp)){return[e.type||"string",e.validate,(0,s._)`${n}.validate`]}return["string",e,n]}function y(){if(typeof o=="object"&&!(o instanceof RegExp)&&o.async){if(!l.$async)throw new Error("async format in sync schema");return(0,s._)`await ${h}(${n})`}return typeof c=="function"?(0,s._)`${h}(${n})`:(0,s._)`${h}.test(${n})`}}}};t["default"]=o},97532:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(94737);const n=[s.default];t["default"]=n},69857:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.contentVocabulary=t.metadataVocabulary=void 0;t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},27935:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(94227);const o=r(76250);const a={message:"must be equal to constant",params:({schemaCode:e})=>(0,s._)`{allowedValue: ${e}}`};const i={keyword:"const",$data:true,error:a,code(e){const{gen:t,data:r,$data:a,schemaCode:i,schema:c}=e;if(a||c&&typeof c=="object"){e.fail$data((0,s._)`!${(0,n.useFunc)(t,o.default)}(${r}, ${i})`)}else{e.fail((0,s._)`${c} !== ${r}`)}}};t["default"]=i},28643:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(94227);const o=r(76250);const a={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,s._)`{allowedValues: ${e}}`};const i={keyword:"enum",schemaType:"array",$data:true,error:a,code(e){const{gen:t,data:r,$data:a,schema:i,schemaCode:c,it:u}=e;if(!a&&i.length===0)throw new Error("enum must have non-empty array");const d=i.length>=u.opts.loopEnum;let l;const f=()=>l!==null&&l!==void 0?l:l=(0,n.useFunc)(t,o.default);let h;if(d||a){h=t.let("valid");e.block$data(h,p)}else{if(!Array.isArray(i))throw new Error("ajv implementation error");const e=t.const("vSchema",c);h=(0,s.or)(...i.map(((t,r)=>m(e,r))))}e.pass(h);function p(){t.assign(h,false);t.forOf("v",c,(e=>t.if((0,s._)`${f()}(${r}, ${e})`,(()=>t.assign(h,true).break()))))}function m(e,t){const n=i[t];return typeof n==="object"&&n!==null?(0,s._)`${f()}(${r}, ${e}[${t}])`:(0,s._)`${r} === ${n}`}}};t["default"]=i},67060:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(75882);const n=r(63439);const o=r(77307);const a=r(90422);const i=r(34486);const c=r(34003);const u=r(61163);const d=r(60617);const l=r(27935);const f=r(28643);const h=[s.default,n.default,o.default,a.default,i.default,c.default,u.default,d.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,f.default];t["default"]=h},61163:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,s.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,s._)`{limit: ${e}}`};const o={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:true,error:n,code(e){const{keyword:t,data:r,schemaCode:n}=e;const o=t==="maxItems"?s.operators.GT:s.operators.LT;e.fail$data((0,s._)`${r}.length ${o} ${n}`)}};t["default"]=o},77307:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=r(94227);const o=r(53853);const a={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,s.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,s._)`{limit: ${e}}`};const i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:true,error:a,code(e){const{keyword:t,data:r,schemaCode:a,it:i}=e;const c=t==="maxLength"?s.operators.GT:s.operators.LT;const u=i.opts.unicode===false?(0,s._)`${r}.length`:(0,s._)`${(0,n.useFunc)(e.gen,o.default)}(${r})`;e.fail$data((0,s._)`${u} ${c} ${a}`)}};t["default"]=i},75882:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n=s.operators;const o={maximum:{okStr:"<=",ok:n.LTE,fail:n.GT},minimum:{okStr:">=",ok:n.GTE,fail:n.LT},exclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},exclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}};const a={message:({keyword:e,schemaCode:t})=>(0,s.str)`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,s._)`{comparison: ${o[e].okStr}, limit: ${t}}`};const i={keyword:Object.keys(o),type:"number",schemaType:"number",$data:true,error:a,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,s._)`${r} ${o[t].fail} ${n} || isNaN(${r})`)}};t["default"]=i},34486:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,s.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,s._)`{limit: ${e}}`};const o={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:true,error:n,code(e){const{keyword:t,data:r,schemaCode:n}=e;const o=t==="maxProperties"?s.operators.GT:s.operators.LT;e.fail$data((0,s._)`Object.keys(${r}).length ${o} ${n}`)}};t["default"]=o},63439:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(99029);const n={message:({schemaCode:e})=>(0,s.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,s._)`{multipleOf: ${e}}`};const o={keyword:"multipleOf",type:"number",schemaType:"number",$data:true,error:n,code(e){const{gen:t,data:r,schemaCode:n,it:o}=e;const a=o.opts.multipleOfPrecision;const i=t.let("res");const c=a?(0,s._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,s._)`${i} !== parseInt(${i})`;e.fail$data((0,s._)`(${n} === 0 || (${i} = ${r}/${n}, ${c}))`)}};t["default"]=o},90422:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(15765);const n=r(99029);const o={message:({schemaCode:e})=>(0,n.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,n._)`{pattern: ${e}}`};const a={keyword:"pattern",type:"string",schemaType:"string",$data:true,error:o,code(e){const{data:t,$data:r,schema:o,schemaCode:a,it:i}=e;const c=i.opts.unicodeRegExp?"u":"";const u=r?(0,n._)`(new RegExp(${a}, ${c}))`:(0,s.usePattern)(e,o);e.fail$data((0,n._)`!${u}.test(${t})`)}};t["default"]=a},34003:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(15765);const n=r(99029);const o=r(94227);const a={message:({params:{missingProperty:e}})=>(0,n.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,n._)`{missingProperty: ${e}}`};const i={keyword:"required",type:"object",schemaType:"array",$data:true,error:a,code(e){const{gen:t,schema:r,schemaCode:a,data:i,$data:c,it:u}=e;const{opts:d}=u;if(!c&&r.length===0)return;const l=r.length>=d.loopRequired;if(u.allErrors)f();else h();if(d.strictRequired){const t=e.parentSchema.properties;const{definedProperties:s}=e.it;for(const e of r){if((t===null||t===void 0?void 0:t[e])===undefined&&!s.has(e)){const t=u.schemaEnv.baseId+u.errSchemaPath;const r=`required property "${e}" is not defined at "${t}" (strictRequired)`;(0,o.checkStrictMode)(u,r,u.opts.strictRequired)}}}function f(){if(l||c){e.block$data(n.nil,p)}else{for(const t of r){(0,s.checkReportMissingProp)(e,t)}}}function h(){const n=t.let("missing");if(l||c){const r=t.let("valid",true);e.block$data(r,(()=>m(n,r)));e.ok(r)}else{t.if((0,s.checkMissingProp)(e,r,n));(0,s.reportMissingProp)(e,n);t.else()}}function p(){t.forOf("prop",a,(r=>{e.setParams({missingProperty:r});t.if((0,s.noPropertyInData)(t,i,r,d.ownProperties),(()=>e.error()))}))}function m(r,o){e.setParams({missingProperty:r});t.forOf(r,a,(()=>{t.assign(o,(0,s.propertyInData)(t,i,r,d.ownProperties));t.if((0,n.not)(o),(()=>{e.error();t.break()}))}),n.nil)}}};t["default"]=i},60617:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});const s=r(10208);const n=r(99029);const o=r(94227);const a=r(76250);const i={message:({params:{i:e,j:t}})=>(0,n.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,n._)`{i: ${e}, j: ${t}}`};const c={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:true,error:i,code(e){const{gen:t,data:r,$data:i,schema:c,parentSchema:u,schemaCode:d,it:l}=e;if(!i&&!c)return;const f=t.let("valid");const h=u.items?(0,s.getSchemaTypes)(u.items):[];e.block$data(f,p,(0,n._)`${d} === false`);e.ok(f);function p(){const s=t.let("i",(0,n._)`${r}.length`);const o=t.let("j");e.setParams({i:s,j:o});t.assign(f,true);t.if((0,n._)`${s} > 1`,(()=>(m()?y:g)(s,o)))}function m(){return h.length>0&&!h.some((e=>e==="object"||e==="array"))}function y(o,a){const i=t.name("item");const c=(0,s.checkDataTypes)(h,i,l.opts.strictNumbers,s.DataType.Wrong);const u=t.const("indices",(0,n._)`{}`);t.for((0,n._)`;${o}--;`,(()=>{t.let(i,(0,n._)`${r}[${o}]`);t.if(c,(0,n._)`continue`);if(h.length>1)t.if((0,n._)`typeof ${i} == "string"`,(0,n._)`${i} += "_"`);t.if((0,n._)`typeof ${u}[${i}] == "number"`,(()=>{t.assign(a,(0,n._)`${u}[${i}]`);e.error();t.assign(f,false).break()})).code((0,n._)`${u}[${i}] = ${o}`)}))}function g(s,i){const c=(0,o.useFunc)(t,a.default);const u=t.name("outer");t.label(u).for((0,n._)`;${s}--;`,(()=>t.for((0,n._)`${i} = ${s}; ${i}--;`,(()=>t.if((0,n._)`${c}(${r}[${s}], ${r}[${i}])`,(()=>{e.error();t.assign(f,false).break(u)}))))))}}};t["default"]=c},32017:e=>{e.exports=function e(t,r){if(t===r)return true;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return false;var s,n,o;if(Array.isArray(t)){s=t.length;if(s!=r.length)return false;for(n=s;n--!==0;)if(!e(t[n],r[n]))return false;return true}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();o=Object.keys(t);s=o.length;if(s!==Object.keys(r).length)return false;for(n=s;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[n]))return false;for(n=s;n--!==0;){var a=o[n];if(!e(t[a],r[a]))return false}return true}return t!==t&&r!==r}},74488:(e,t,r)=>{const{normalizeIPv6:s,normalizeIPv4:n,removeDotSegments:o,recomposeAuthority:a,normalizeComponentEncoding:i}=r(9245);const c=r(49884);function u(e,t){if(typeof e==="string"){e=h(g(e,t),t)}else if(typeof e==="object"){e=g(h(e,t),t)}return e}function d(e,t,r){const s=Object.assign({scheme:"null"},r);const n=l(g(e,s),g(t,s),s,true);return h(n,{...s,skipEscape:true})}function l(e,t,r,s){const n={};if(!s){e=g(h(e,r),r);t=g(h(t,r),r)}r=r||{};if(!r.tolerant&&t.scheme){n.scheme=t.scheme;n.userinfo=t.userinfo;n.host=t.host;n.port=t.port;n.path=o(t.path||"");n.query=t.query}else{if(t.userinfo!==undefined||t.host!==undefined||t.port!==undefined){n.userinfo=t.userinfo;n.host=t.host;n.port=t.port;n.path=o(t.path||"");n.query=t.query}else{if(!t.path){n.path=e.path;if(t.query!==undefined){n.query=t.query}else{n.query=e.query}}else{if(t.path.charAt(0)==="/"){n.path=o(t.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){n.path="/"+t.path}else if(!e.path){n.path=t.path}else{n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path}n.path=o(n.path)}n.query=t.query}n.userinfo=e.userinfo;n.host=e.host;n.port=e.port}n.scheme=e.scheme}n.fragment=t.fragment;return n}function f(e,t,r){if(typeof e==="string"){e=unescape(e);e=h(i(g(e,r),true),{...r,skipEscape:true})}else if(typeof e==="object"){e=h(i(e,true),{...r,skipEscape:true})}if(typeof t==="string"){t=unescape(t);t=h(i(g(t,r),true),{...r,skipEscape:true})}else if(typeof t==="object"){t=h(i(t,true),{...r,skipEscape:true})}return e.toLowerCase()===t.toLowerCase()}function h(e,t){const r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""};const s=Object.assign({},t);const n=[];const i=c[(s.scheme||r.scheme||"").toLowerCase()];if(i&&i.serialize)i.serialize(r,s);if(r.path!==undefined){if(!s.skipEscape){r.path=escape(r.path);if(r.scheme!==undefined){r.path=r.path.split("%3A").join(":")}}else{r.path=unescape(r.path)}}if(s.reference!=="suffix"&&r.scheme){n.push(r.scheme,":")}const u=a(r);if(u!==undefined){if(s.reference!=="suffix"){n.push("//")}n.push(u);if(r.path&&r.path.charAt(0)!=="/"){n.push("/")}}if(r.path!==undefined){let e=r.path;if(!s.absolutePath&&(!i||!i.absolutePath)){e=o(e)}if(u===undefined){e=e.replace(/^\/\//u,"/%2F")}n.push(e)}if(r.query!==undefined){n.push("?",r.query)}if(r.fragment!==undefined){n.push("#",r.fragment)}return n.join("")}const p=Array.from({length:127},((e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t))));function m(e){let t=0;for(let r=0,s=e.length;r126||p[t]){return true}}return false}const y=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function g(e,t){const r=Object.assign({},t);const o={scheme:undefined,userinfo:undefined,host:"",port:undefined,path:"",query:undefined,fragment:undefined};const a=e.indexOf("%")!==-1;let i=false;if(r.reference==="suffix")e=(r.scheme?r.scheme+":":"")+"//"+e;const u=e.match(y);if(u){o.scheme=u[1];o.userinfo=u[3];o.host=u[4];o.port=parseInt(u[5],10);o.path=u[6]||"";o.query=u[7];o.fragment=u[8];if(isNaN(o.port)){o.port=u[5]}if(o.host){const e=n(o.host);if(e.isIPV4===false){const t=s(e.host);o.host=t.host.toLowerCase();i=t.isIPV6}else{o.host=e.host;i=true}}if(o.scheme===undefined&&o.userinfo===undefined&&o.host===undefined&&o.port===undefined&&o.query===undefined&&!o.path){o.reference="same-document"}else if(o.scheme===undefined){o.reference="relative"}else if(o.fragment===undefined){o.reference="absolute"}else{o.reference="uri"}if(r.reference&&r.reference!=="suffix"&&r.reference!==o.reference){o.error=o.error||"URI is not a "+r.reference+" reference."}const e=c[(r.scheme||o.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!e||!e.unicodeSupport)){if(o.host&&(r.domainHost||e&&e.domainHost)&&i===false&&m(o.host)){try{o.host=URL.domainToASCII(o.host.toLowerCase())}catch(d){o.error=o.error||"Host's domain name can not be converted to ASCII: "+d}}}if(!e||e&&!e.skipNormalize){if(a&&o.scheme!==undefined){o.scheme=unescape(o.scheme)}if(a&&o.host!==undefined){o.host=unescape(o.host)}if(o.path){o.path=escape(unescape(o.path))}if(o.fragment){o.fragment=encodeURI(decodeURIComponent(o.fragment))}}if(e&&e.parse){e.parse(o,r)}}else{o.error=o.error||"URI can not be parsed."}return o}const $={SCHEMES:c,normalize:u,resolve:d,resolveComponents:l,equal:f,serialize:h,parse:g};e.exports=$;e.exports["default"]=$;e.exports.fastUri=$},49884:e=>{const t=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu;const r=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function s(e){return typeof e.secure==="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}function n(e){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e}function o(e){const t=String(e.scheme).toLowerCase()==="https";if(e.port===(t?443:80)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}function a(e){e.secure=s(e);e.resourceName=(e.path||"/")+(e.query?"?"+e.query:"");e.path=undefined;e.query=undefined;return e}function i(e){if(e.port===(s(e)?443:80)||e.port===""){e.port=undefined}if(typeof e.secure==="boolean"){e.scheme=e.secure?"wss":"ws";e.secure=undefined}if(e.resourceName){const[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:undefined;e.query=r;e.resourceName=undefined}e.fragment=undefined;return e}function c(e,t){if(!e.path){e.error="URN can not be parsed";return e}const s=e.path.match(r);if(s){const r=t.scheme||e.scheme||"urn";e.nid=s[1].toLowerCase();e.nss=s[2];const n=`${r}:${t.nid||e.nid}`;const o=$[n];e.path=undefined;if(o){e=o.parse(e,t)}}else{e.error=e.error||"URN can not be parsed."}return e}function u(e,t){const r=t.scheme||e.scheme||"urn";const s=e.nid.toLowerCase();const n=`${r}:${t.nid||s}`;const o=$[n];if(o){e=o.serialize(e,t)}const a=e;const i=e.nss;a.path=`${s||t.nid}:${i}`;t.skipEscape=true;return a}function d(e,r){const s=e;s.uuid=s.nss;s.nss=undefined;if(!r.tolerant&&(!s.uuid||!t.test(s.uuid))){s.error=s.error||"UUID is not valid."}return s}function l(e){const t=e;t.nss=(e.uuid||"").toLowerCase();return t}const f={scheme:"http",domainHost:true,parse:n,serialize:o};const h={scheme:"https",domainHost:f.domainHost,parse:n,serialize:o};const p={scheme:"ws",domainHost:true,parse:a,serialize:i};const m={scheme:"wss",domainHost:p.domainHost,parse:p.parse,serialize:p.serialize};const y={scheme:"urn",parse:c,serialize:u,skipNormalize:true};const g={scheme:"urn:uuid",parse:d,serialize:l,skipNormalize:true};const $={http:f,https:h,ws:p,wss:m,urn:y,"urn:uuid":g};e.exports=$},54249:e=>{const t={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};e.exports={HEX:t}},9245:(e,t,r)=>{const{HEX:s}=r(54249);const n=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;function o(e){if(d(e,".")<3){return{host:e,isIPV4:false}}const t=e.match(n)||[];const[r]=t;if(r){return{host:u(r,"."),isIPV4:true}}else{return{host:e,isIPV4:false}}}function a(e,t=false){let r="";let n=true;for(const o of e){if(s[o]===undefined)return undefined;if(o!=="0"&&n===true)n=false;if(!n)r+=o}if(t&&r.length===0)r="0";return r}function i(e){let t=0;const r={error:false,address:"",zone:""};const s=[];const n=[];let o=false;let i=false;let c=false;function u(){if(n.length){if(o===false){const e=a(n);if(e!==undefined){s.push(e)}else{r.error=true;return false}}n.length=0}return true}for(let a=0;a7){r.error=true;break}if(a-1>=0&&e[a-1]===":"){i=true}continue}else if(d==="%"){if(!u()){break}o=true}else{n.push(d);continue}}if(n.length){if(o){r.zone=n.join("")}else if(c){s.push(n.join(""))}else{s.push(a(n))}}r.address=s.join("");return r}function c(e){if(d(e,":")<2){return{host:e,isIPV6:false}}const t=i(e);if(!t.error){let e=t.address;let r=t.address;if(t.zone){e+="%"+t.zone;r+="%25"+t.zone}return{host:e,escapedHost:r,isIPV6:true}}else{return{host:e,isIPV6:false}}}function u(e,t){let r="";let s=true;const n=e.length;for(let o=0;o{var t=e.exports=function(e,t,s){if(typeof t=="function"){s=t;t={}}s=t.cb||s;var n=typeof s=="function"?s:s.pre||function(){};var o=s.post||function(){};r(t,n,o,e,"",e)};t.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true,if:true,then:true,else:true};t.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};t.propsKeywords={$defs:true,definitions:true,properties:true,patternProperties:true,dependencies:true};t.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function r(e,n,o,a,i,c,u,d,l,f){if(a&&typeof a=="object"&&!Array.isArray(a)){n(a,i,c,u,d,l,f);for(var h in a){var p=a[h];if(Array.isArray(p)){if(h in t.arrayKeywords){for(var m=0;m{e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},72079:e=>{e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3303.b5596c0715d2d58332fb.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3303.b5596c0715d2d58332fb.js new file mode 100644 index 0000000000000000000000000000000000000000..e93952488426aacbc11043f8223a83cd10c237bc --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3303.b5596c0715d2d58332fb.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3303],{73303:(e,t,n)=>{n.r(t);n.d(t,{protobuf:()=>p});function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var a=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"];var i=r(a);var u=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");function o(e){if(e.eatSpace())return null;if(e.match("//")){e.skipToEnd();return"comment"}if(e.match(/^[0-9\.+-]/,false)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}if(e.match(/^"([^"]|(""))*"/)){return"string"}if(e.match(/^'([^']|(''))*'/)){return"string"}if(e.match(i)){return"keyword"}if(e.match(u)){return"variable"}e.next();return null}const p={name:"protobuf",token:o,languageData:{autocomplete:a}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3358.7ba73a6804155b619b44.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3358.7ba73a6804155b619b44.js new file mode 100644 index 0000000000000000000000000000000000000000..5bfc502b566c0816c8c58f65c73c51427b9fea30 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/3358.7ba73a6804155b619b44.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3358],{33358:(t,e,n)=>{n.d(e,{diagram:()=>pt});var i=n(75905);var r=n(24982);function s(t,e){let n;if(e===undefined){for(const e of t){if(e!=null&&(n>e||n===undefined&&e>=e)){n=e}}}else{let i=-1;for(let r of t){if((r=e(r,++i,t))!=null&&(n>r||n===undefined&&r>=r)){n=r}}}return n}function o(t){return t.target.depth}function a(t){return t.depth}function l(t,e){return e-1-t.height}function c(t,e){return t.sourceLinks.length?t.depth:e-1}function h(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?s(t.sourceLinks,o)-1:0}function u(t,e){let n=0;if(e===undefined){for(let e of t){if(e=+e){n+=e}}}else{let i=-1;for(let r of t){if(r=+e(r,++i,t)){n+=r}}}return n}function f(t,e){let n;if(e===undefined){for(const e of t){if(e!=null&&(n=e)){n=e}}}else{let i=-1;for(let r of t){if((r=e(r,++i,t))!=null&&(n=r)){n=r}}}return n}function y(t){return function(){return t}}function d(t,e){return g(t.source,e.source)||t.index-e.index}function p(t,e){return g(t.target,e.target)||t.index-e.index}function g(t,e){return t.y0-e.y0}function _(t){return t.value}function k(t){return t.index}function x(t){return t.nodes}function m(t){return t.links}function v(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function b({nodes:t}){for(const e of t){let t=e.y0;let n=t;for(const i of e.sourceLinks){i.y0=t+i.width/2;t+=i.width}for(const i of e.targetLinks){i.y1=n+i.width/2;n+=i.width}}}function w(){let t=0,e=0,n=1,i=1;let r=24;let o=8,a;let l=k;let h=c;let w;let L;let S=x;let E=m;let K=6;function A(){const t={nodes:S.apply(null,arguments),links:E.apply(null,arguments)};M(t);I(t);T(t);C(t);P(t);b(t);return t}A.update=function(t){b(t);return t};A.nodeId=function(t){return arguments.length?(l=typeof t==="function"?t:y(t),A):l};A.nodeAlign=function(t){return arguments.length?(h=typeof t==="function"?t:y(t),A):h};A.nodeSort=function(t){return arguments.length?(w=t,A):w};A.nodeWidth=function(t){return arguments.length?(r=+t,A):r};A.nodePadding=function(t){return arguments.length?(o=a=+t,A):o};A.nodes=function(t){return arguments.length?(S=typeof t==="function"?t:y(t),A):S};A.links=function(t){return arguments.length?(E=typeof t==="function"?t:y(t),A):E};A.linkSort=function(t){return arguments.length?(L=t,A):L};A.size=function(r){return arguments.length?(t=e=0,n=+r[0],i=+r[1],A):[n-t,i-e]};A.extent=function(r){return arguments.length?(t=+r[0][0],n=+r[1][0],e=+r[0][1],i=+r[1][1],A):[[t,e],[n,i]]};A.iterations=function(t){return arguments.length?(K=+t,A):K};function M({nodes:t,links:e}){for(const[i,r]of t.entries()){r.index=i;r.sourceLinks=[];r.targetLinks=[]}const n=new Map(t.map(((e,n)=>[l(e,n,t),e])));for(const[i,r]of e.entries()){r.index=i;let{source:t,target:e}=r;if(typeof t!=="object")t=r.source=v(n,t);if(typeof e!=="object")e=r.target=v(n,e);t.sourceLinks.push(r);e.targetLinks.push(r)}if(L!=null){for(const{sourceLinks:e,targetLinks:n}of t){e.sort(L);n.sort(L)}}}function I({nodes:t}){for(const e of t){e.value=e.fixedValue===undefined?Math.max(u(e.sourceLinks,_),u(e.targetLinks,_)):e.fixedValue}}function T({nodes:t}){const e=t.length;let n=new Set(t);let i=new Set;let r=0;while(n.size){for(const t of n){t.depth=r;for(const{target:e}of t.sourceLinks){i.add(e)}}if(++r>e)throw new Error("circular link");n=i;i=new Set}}function C({nodes:t}){const e=t.length;let n=new Set(t);let i=new Set;let r=0;while(n.size){for(const t of n){t.height=r;for(const{source:e}of t.targetLinks){i.add(e)}}if(++r>e)throw new Error("circular link");n=i;i=new Set}}function D({nodes:e}){const i=f(e,(t=>t.depth))+1;const s=(n-t-r)/(i-1);const o=new Array(i);for(const n of e){const e=Math.max(0,Math.min(i-1,Math.floor(h.call(null,n,i))));n.layer=e;n.x0=t+e*s;n.x1=n.x0+r;if(o[e])o[e].push(n);else o[e]=[n]}if(w)for(const t of o){t.sort(w)}return o}function N(t){const n=s(t,(t=>(i-e-(t.length-1)*a)/u(t,_)));for(const r of t){let t=e;for(const e of r){e.y0=t;e.y1=t+e.value*n;t=e.y1+a;for(const t of e.sourceLinks){t.width=t.value*n}}t=(i-t+a)/(r.length+1);for(let e=0;et.length))-1));N(n);for(let e=0;e0))continue;let r=(n/i-t.y0)*e;t.y0+=r;t.y1+=r;F(t)}if(w===undefined)r.sort(g);j(r,n)}}function $(t,e,n){for(let i=t.length,r=i-2;r>=0;--r){const i=t[r];for(const t of i){let n=0;let i=0;for(const{target:e,value:s}of t.sourceLinks){let r=s*(e.layer-t.layer);n+=G(t,e)*r;i+=r}if(!(i>0))continue;let r=(n/i-t.y0)*e;t.y0+=r;t.y1+=r;F(t)}if(w===undefined)i.sort(g);j(i,n)}}function j(t,n){const r=t.length>>1;const s=t[r];U(t,s.y0-a,r-1,n);z(t,s.y1+a,r+1,n);U(t,i,t.length-1,n);z(t,e,0,n)}function z(t,e,n,i){for(;n1e-6)r.y0+=s,r.y1+=s;e=r.y1+a}}function U(t,e,n,i){for(;n>=0;--n){const r=t[n];const s=(r.y1-e)*i;if(s>1e-6)r.y0-=s,r.y1-=s;e=r.y0-a}}function F({sourceLinks:t,targetLinks:e}){if(L===undefined){for(const{source:{sourceLinks:t}}of e){t.sort(p)}for(const{target:{targetLinks:e}}of t){e.sort(d)}}}function R(t){if(L===undefined){for(const{sourceLinks:e,targetLinks:n}of t){e.sort(p);n.sort(d)}}}function W(t,e){let n=t.y0-(t.sourceLinks.length-1)*a/2;for(const{target:i,width:r}of t.sourceLinks){if(i===e)break;n+=r+a}for(const{source:i,width:r}of e.targetLinks){if(i===t)break;n-=r}return n}function G(t,e){let n=e.y0-(e.targetLinks.length-1)*a/2;for(const{source:i,width:r}of e.targetLinks){if(i===t)break;n+=r+a}for(const{target:i,width:r}of t.sourceLinks){if(i===e)break;n-=r}return n}return A}var L=Math.PI,S=2*L,E=1e-6,K=S-E;function A(){this._x0=this._y0=this._x1=this._y1=null;this._=""}function M(){return new A}A.prototype=M.prototype={constructor:A,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){if(this._x1!==null){this._x1=this._x0,this._y1=this._y0;this._+="Z"}},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,s){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+s)},arcTo:function(t,e,n,i,r){t=+t,e=+e,n=+n,i=+i,r=+r;var s=this._x1,o=this._y1,a=n-t,l=i-e,c=s-t,h=o-e,u=c*c+h*h;if(r<0)throw new Error("negative radius: "+r);if(this._x1===null){this._+="M"+(this._x1=t)+","+(this._y1=e)}else if(!(u>E));else if(!(Math.abs(h*a-l*c)>E)||!r){this._+="L"+(this._x1=t)+","+(this._y1=e)}else{var f=n-s,y=i-o,d=a*a+l*l,p=f*f+y*y,g=Math.sqrt(d),_=Math.sqrt(u),k=r*Math.tan((L-Math.acos((d+u-p)/(2*g*_)))/2),x=k/_,m=k/g;if(Math.abs(x-1)>E){this._+="L"+(t+x*c)+","+(e+x*h)}this._+="A"+r+","+r+",0,0,"+ +(h*f>c*y)+","+(this._x1=t+m*a)+","+(this._y1=e+m*l)}},arc:function(t,e,n,i,r,s){t=+t,e=+e,n=+n,s=!!s;var o=n*Math.cos(i),a=n*Math.sin(i),l=t+o,c=e+a,h=1^s,u=s?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);if(this._x1===null){this._+="M"+l+","+c}else if(Math.abs(this._x1-l)>E||Math.abs(this._y1-c)>E){this._+="L"+l+","+c}if(!n)return;if(u<0)u=u%S+S;if(u>K){this._+="A"+n+","+n+",0,1,"+h+","+(t-o)+","+(e-a)+"A"+n+","+n+",0,1,"+h+","+(this._x1=l)+","+(this._y1=c)}else if(u>E){this._+="A"+n+","+n+",0,"+ +(u>=L)+","+h+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))}},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};const I=M;var T=Array.prototype.slice;function C(t){return function e(){return t}}function D(t){return t[0]}function N(t){return t[1]}function P(t){return t.source}function O(t){return t.target}function $(t){var e=P,n=O,i=D,r=N,s=null;function o(){var o,a=T.call(arguments),l=e.apply(this,a),c=n.apply(this,a);if(!s)s=o=I();t(s,+i.apply(this,(a[0]=l,a)),+r.apply(this,a),+i.apply(this,(a[0]=c,a)),+r.apply(this,a));if(o)return s=null,o+""||null}o.source=function(t){return arguments.length?(e=t,o):e};o.target=function(t){return arguments.length?(n=t,o):n};o.x=function(t){return arguments.length?(i=typeof t==="function"?t:C(+t),o):i};o.y=function(t){return arguments.length?(r=typeof t==="function"?t:C(+t),o):r};o.context=function(t){return arguments.length?(s=t==null?null:t,o):s};return o}function j(t,e,n,i,r){t.moveTo(e,n);t.bezierCurveTo(e=(e+i)/2,n,e,r,i,r)}function z(t,e,n,i,r){t.moveTo(e,n);t.bezierCurveTo(e,n=(n+r)/2,i,n,i,r)}function U(t,e,n,i,r){var s=pointRadial(e,n),o=pointRadial(e,n=(n+r)/2),a=pointRadial(i,n),l=pointRadial(i,r);t.moveTo(s[0],s[1]);t.bezierCurveTo(o[0],o[1],a[0],a[1],l[0],l[1])}function F(){return $(j)}function R(){return $(z)}function W(){var t=$(U);t.angle=t.x,delete t.x;t.radius=t.y,delete t.y;return t}function G(t){return[t.source.x1,t.y0]}function V(t){return[t.target.x0,t.y1]}function X(){return F().source(G).target(V)}var Y=function(){var t=(0,i.K2)((function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n}),"o"),e=[1,9],n=[1,10],r=[1,5,10,12];var s={trace:(0,i.K2)((function t(){}),"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:(0,i.K2)((function t(e,n,i,r,s,o,a){var l=o.length-1;switch(s){case 7:const t=r.findOrCreateNode(o[l-4].trim().replaceAll('""','"'));const e=r.findOrCreateNode(o[l-2].trim().replaceAll('""','"'));const n=parseFloat(o[l].trim());r.addLink(t,e,n);break;case 8:case 9:case 11:this.$=o[l];break;case 10:this.$=o[l-1];break}}),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:e,20:n},{1:[2,6],7:11,10:[1,12]},t(n,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(r,[2,8]),t(r,[2,9]),{19:[1,16]},t(r,[2,11]),{1:[2,1]},{1:[2,5]},t(n,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:e,20:n},{15:18,16:7,17:8,18:e,20:n},{18:[1,19]},t(n,[2,3]),{12:[1,20]},t(r,[2,10]),{15:21,16:7,17:8,18:e,20:n},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:(0,i.K2)((function t(e,n){if(n.recoverable){this.trace(e)}else{var i=new Error(e);i.hash=n;throw i}}),"parseError"),parse:(0,i.K2)((function t(e){var n=this,r=[0],s=[],o=[null],a=[],l=this.table,c="",h=0,u=0,f=0,y=2,d=1;var p=a.slice.call(arguments,1);var g=Object.create(this.lexer);var _={yy:{}};for(var k in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,k)){_.yy[k]=this.yy[k]}}g.setInput(e,_.yy);_.yy.lexer=g;_.yy.parser=this;if(typeof g.yylloc=="undefined"){g.yylloc={}}var x=g.yylloc;a.push(x);var m=g.options&&g.options.ranges;if(typeof _.yy.parseError==="function"){this.parseError=_.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function v(t){r.length=r.length-2*t;o.length=o.length-t;a.length=a.length-t}(0,i.K2)(v,"popStack");function b(){var t;t=s.pop()||g.lex()||d;if(typeof t!=="number"){if(t instanceof Array){s=t;t=s.pop()}t=n.symbols_[t]||t}return t}(0,i.K2)(b,"lex");var w,L,S,E,K,A,M={},I,T,C,D;while(true){S=r[r.length-1];if(this.defaultActions[S]){E=this.defaultActions[S]}else{if(w===null||typeof w=="undefined"){w=b()}E=l[S]&&l[S][w]}if(typeof E==="undefined"||!E.length||!E[0]){var N="";D=[];for(I in l[S]){if(this.terminals_[I]&&I>y){D.push("'"+this.terminals_[I]+"'")}}if(g.showPosition){N="Parse error on line "+(h+1)+":\n"+g.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[w]||w)+"'"}else{N="Parse error on line "+(h+1)+": Unexpected "+(w==d?"end of input":"'"+(this.terminals_[w]||w)+"'")}this.parseError(N,{text:g.match,token:this.terminals_[w]||w,line:g.yylineno,loc:x,expected:D})}if(E[0]instanceof Array&&E.length>1){throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+w)}switch(E[0]){case 1:r.push(w);o.push(g.yytext);a.push(g.yylloc);r.push(E[1]);w=null;if(!L){u=g.yyleng;c=g.yytext;h=g.yylineno;x=g.yylloc;if(f>0){f--}}else{w=L;L=null}break;case 2:T=this.productions_[E[1]][1];M.$=o[o.length-T];M._$={first_line:a[a.length-(T||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(T||1)].first_column,last_column:a[a.length-1].last_column};if(m){M._$.range=[a[a.length-(T||1)].range[0],a[a.length-1].range[1]]}A=this.performAction.apply(M,[c,u,h,_.yy,E[1],o,a].concat(p));if(typeof A!=="undefined"){return A}if(T){r=r.slice(0,-1*T*2);o=o.slice(0,-1*T);a=a.slice(0,-1*T)}r.push(this.productions_[E[1]][0]);o.push(M.$);a.push(M._$);C=l[r[r.length-2]][r[r.length-1]];r.push(C);break;case 3:return true}}return true}),"parse")};var o=function(){var t={EOF:1,parseError:(0,i.K2)((function t(e,n){if(this.yy.parser){this.yy.parser.parseError(e,n)}else{throw new Error(e)}}),"parseError"),setInput:(0,i.K2)((function(t,e){this.yy=e||this.yy||{};this._input=t;this._more=this._backtrack=this.done=false;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};if(this.options.ranges){this.yylloc.range=[0,0]}this.offset=0;return this}),"setInput"),input:(0,i.K2)((function(){var t=this._input[0];this.yytext+=t;this.yyleng++;this.offset++;this.match+=t;this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);if(e){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges){this.yylloc.range[1]++}this._input=this._input.slice(1);return t}),"input"),unput:(0,i.K2)((function(t){var e=t.length;var n=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);if(n.length-1){this.yylineno-=n.length-1}var r=this.yylloc.range;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-e};if(this.options.ranges){this.yylloc.range=[r[0],r[0]+this.yyleng-e]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,i.K2)((function(){this._more=true;return this}),"more"),reject:(0,i.K2)((function(){if(this.options.backtrack_lexer){this._backtrack=true}else{return 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})}return this}),"reject"),less:(0,i.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,i.K2)((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,i.K2)((function(){var t=this.match;if(t.length<20){t+=this._input.substr(0,20-t.length)}return(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,i.K2)((function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,i.K2)((function(t,e){var n,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};if(this.options.ranges){r.yylloc.range=this.yylloc.range.slice(0)}}i=t[0].match(/(?:\r\n?|\n).*/g);if(i){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;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._backtrack=false;this._input=this._input.slice(t[0].length);this.matched+=t[0];n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(n){return n}else if(this._backtrack){for(var s in r){this[s]=r[s]}return false}return false}),"test_match"),next:(0,i.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var t,e,n,i;if(!this._more){this.yytext="";this.match=""}var r=this._currentRules();for(var s=0;se[0].length)){e=n;i=s;if(this.options.backtrack_lexer){t=this.test_match(n,r[s]);if(t!==false){return t}else if(this._backtrack){e=false;continue}else{return false}}else if(!this.options.flex){break}}}if(e){t=this.test_match(e,r[i]);if(t!==false){return t}return false}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}}),"next"),lex:(0,i.K2)((function t(){var e=this.next();if(e){return e}else{return this.lex()}}),"lex"),begin:(0,i.K2)((function t(e){this.conditionStack.push(e)}),"begin"),popState:(0,i.K2)((function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,i.K2)((function t(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules}else{return this.conditions["INITIAL"].rules}}),"_currentRules"),topState:(0,i.K2)((function t(e){e=this.conditionStack.length-1-Math.abs(e||0);if(e>=0){return this.conditionStack[e]}else{return"INITIAL"}}),"topState"),pushState:(0,i.K2)((function t(e){this.begin(e)}),"pushState"),stateStackSize:(0,i.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,i.K2)((function t(e,n,i,r){var s=r;switch(i){case 0:this.pushState("csv");return 4;break;case 1:return 10;break;case 2:return 5;break;case 3:return 12;break;case 4:this.pushState("escaped_text");return 18;break;case 5:return 20;break;case 6:this.popState("escaped_text");return 18;break;case 7:return 19;break}}),"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[1,2,3,4,5,6,7],inclusive:false},escaped_text:{rules:[6,7],inclusive:false},INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:true}}};return t}();s.lexer=o;function a(){this.yy={}}(0,i.K2)(a,"Parser");a.prototype=s;s.Parser=a;return new a}();Y.parser=Y;var q=Y;var Q=[];var B=[];var Z=new Map;var H=(0,i.K2)((()=>{Q=[];B=[];Z=new Map;(0,i.IU)()}),"clear");var J=class{constructor(t,e,n=0){this.source=t;this.target=e;this.value=n}static{(0,i.K2)(this,"SankeyLink")}};var tt=(0,i.K2)(((t,e,n)=>{Q.push(new J(t,e,n))}),"addLink");var et=class{constructor(t){this.ID=t}static{(0,i.K2)(this,"SankeyNode")}};var nt=(0,i.K2)((t=>{t=i.Y2.sanitizeText(t,(0,i.D7)());let e=Z.get(t);if(e===void 0){e=new et(t);Z.set(t,e);B.push(e)}return e}),"findOrCreateNode");var it=(0,i.K2)((()=>B),"getNodes");var rt=(0,i.K2)((()=>Q),"getLinks");var st=(0,i.K2)((()=>({nodes:B.map((t=>({id:t.ID}))),links:Q.map((t=>({source:t.source.ID,target:t.target.ID,value:t.value})))})),"getGraph");var ot={nodesMap:Z,getConfig:(0,i.K2)((()=>(0,i.D7)().sankey),"getConfig"),getNodes:it,getLinks:rt,getGraph:st,addLink:tt,findOrCreateNode:nt,getAccTitle:i.iN,setAccTitle:i.SV,getAccDescription:i.m7,setAccDescription:i.EI,getDiagramTitle:i.ab,setDiagramTitle:i.ke,clear:H};var at=class t{static{(0,i.K2)(this,"Uid")}static{this.count=0}static next(e){return new t(e+ ++t.count)}constructor(t){this.id=t;this.href=`#${t}`}toString(){return"url("+this.href+")"}};var lt={left:a,right:l,center:h,justify:c};var ct=(0,i.K2)((function(t,e,n,s){const{securityLevel:o,sankey:a}=(0,i.D7)();const l=i.ME.sankey;let c;if(o==="sandbox"){c=(0,r.Ltv)("#i"+e)}const h=o==="sandbox"?(0,r.Ltv)(c.nodes()[0].contentDocument.body):(0,r.Ltv)("body");const u=o==="sandbox"?h.select(`[id="${e}"]`):(0,r.Ltv)(`[id="${e}"]`);const f=a?.width??l.width;const y=a?.height??l.width;const d=a?.useMaxWidth??l.useMaxWidth;const p=a?.nodeAlignment??l.nodeAlignment;const g=a?.prefix??l.prefix;const _=a?.suffix??l.suffix;const k=a?.showValues??l.showValues;const x=s.db.getGraph();const m=lt[p];const v=10;const b=w().nodeId((t=>t.id)).nodeWidth(v).nodePadding(10+(k?15:0)).nodeAlign(m).extent([[0,0],[f,y]]);b(x);const L=(0,r.UMr)(r.zt);u.append("g").attr("class","nodes").selectAll(".node").data(x.nodes).join("g").attr("class","node").attr("id",(t=>(t.uid=at.next("node-")).id)).attr("transform",(function(t){return"translate("+t.x0+","+t.y0+")"})).attr("x",(t=>t.x0)).attr("y",(t=>t.y0)).append("rect").attr("height",(t=>t.y1-t.y0)).attr("width",(t=>t.x1-t.x0)).attr("fill",(t=>L(t.id)));const S=(0,i.K2)((({id:t,value:e})=>{if(!k){return t}return`${t}\n${g}${Math.round(e*100)/100}${_}`}),"getText");u.append("g").attr("class","node-labels").attr("font-size",14).selectAll("text").data(x.nodes).join("text").attr("x",(t=>t.x0(t.y1+t.y0)/2)).attr("dy",`${k?"0":"0.35"}em`).attr("text-anchor",(t=>t.x0(t.uid=at.next("linearGradient-")).id)).attr("gradientUnits","userSpaceOnUse").attr("x1",(t=>t.source.x1)).attr("x2",(t=>t.target.x0));t.append("stop").attr("offset","0%").attr("stop-color",(t=>L(t.source.id)));t.append("stop").attr("offset","100%").attr("stop-color",(t=>L(t.target.id)))}let A;switch(K){case"gradient":A=(0,i.K2)((t=>t.uid),"coloring");break;case"source":A=(0,i.K2)((t=>L(t.source.id)),"coloring");break;case"target":A=(0,i.K2)((t=>L(t.target.id)),"coloring");break;default:A=K}E.append("path").attr("d",X()).attr("stroke",A).attr("stroke-width",(t=>Math.max(1,t.width)));(0,i.ot)(void 0,u,0,d)}),"draw");var ht={draw:ct};var ut=(0,i.K2)((t=>{const e=t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,"\n").trim();return e}),"prepareTextForParsing");var ft=(0,i.K2)((t=>`.label {\n font-family: ${t.fontFamily};\n }`),"getStyles");var yt=ft;var dt=q.parse.bind(q);q.parse=t=>dt(ut(t));var pt={styles:yt,parser:q,db:ot,renderer:ht}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/339.380593b40d8d41150a4e.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/339.380593b40d8d41150a4e.js new file mode 100644 index 0000000000000000000000000000000000000000..f79dfa6c70e6011a5de26fa66e461eaf6c03972f --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/339.380593b40d8d41150a4e.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[339],{70339:(e,t,n)=>{n.r(t);n.d(t,{nsis:()=>r});var i=n(47228);const r=(0,i.I)({start:[{regex:/(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,token:"number"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/`(?:[^\\`]|\\.)*`?/,token:"string"},{regex:/^\s*(?:\!(addincludedir|addplugindir|appendfile|assert|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i,token:"keyword"},{regex:/^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i,token:"keyword",indent:true},{regex:/^\s*(?:\!(else|endif|macroend))\b/i,token:"keyword",dedent:true},{regex:/^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Target|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i,token:"keyword"},{regex:/^\s*(?:Function|PageEx|Section(?:Group)?)\b/i,token:"keyword",indent:true},{regex:/^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i,token:"keyword",dedent:true},{regex:/\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i,token:"atom"},{regex:/\b(?:admin|all|amd64-unicode|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|x-86-(ansi|unicode)|zlib)\b/i,token:"builtin"},{regex:/\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:2|3|4|5|Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i,token:"variable-2",indent:true},{regex:/\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i,token:"variable-2",dedent:true},{regex:/\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i,token:"variable-2",dedent:true},{regex:/\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i,token:"variable-2",dedent:true},{regex:/\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i,token:"variable",dedent:true},{regex:/\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i,token:"keyword",dedent:true},{regex:/\$\{(?:RunningX64)\}/i,token:"variable",dedent:true},{regex:/\$\{(?:Disable|Enable)X64FSRedirection\}/i,token:"keyword",dedent:true},{regex:/(#|;).*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/\$\w[\w\.]*/,token:"variable"},{regex:/\${[\!\w\.:-]+}/,token:"variableName.constant"},{regex:/\$\([\!\w\.:-]+\)/,token:"atom"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],languageData:{name:"nsis",indentOnInput:/^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i,commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}})},47228:(e,t,n)=>{n.d(t,{I:()=>i});function i(e){r(e,"start");var t={},n=e.languageData||{},i=false;for(var o in e)if(o!=n&&e.hasOwnProperty(o)){var a=t[o]=[],S=e[o];for(var c=0;c2&&a.token&&typeof a.token!="string"){n.pending=[];for(var d=2;d-1)return null;var r=n.indent.length-1,o=e[n.state];e:for(;;){for(var a=0;a{var n=e(56110),o=e(9325);var a=n(o,"DataView");r.exports=a},21549:(r,t,e)=>{var n=e(22032),o=e(63862),a=e(66721),i=e(12749),u=e(35749);function s(r){var t=-1,e=r==null?0:r.length;this.clear();while(++t{var n=e(63702),o=e(70080),a=e(24739),i=e(48655),u=e(31175);function s(r){var t=-1,e=r==null?0:r.length;this.clear();while(++t{var n=e(56110),o=e(9325);var a=n(o,"Map");r.exports=a},53661:(r,t,e)=>{var n=e(63040),o=e(17670),a=e(90289),i=e(4509),u=e(72949);function s(r){var t=-1,e=r==null?0:r.length;this.clear();while(++t{var n=e(56110),o=e(9325);var a=n(o,"Promise");r.exports=a},76545:(r,t,e)=>{var n=e(56110),o=e(9325);var a=n(o,"Set");r.exports=a},37217:(r,t,e)=>{var n=e(80079),o=e(51420),a=e(90938),i=e(63605),u=e(29817),s=e(80945);function c(r){var t=this.__data__=new n(r);this.size=t.size}c.prototype.clear=o;c.prototype["delete"]=a;c.prototype.get=i;c.prototype.has=u;c.prototype.set=s;r.exports=c},51873:(r,t,e)=>{var n=e(9325);var o=n.Symbol;r.exports=o},37828:(r,t,e)=>{var n=e(9325);var o=n.Uint8Array;r.exports=o},28303:(r,t,e)=>{var n=e(56110),o=e(9325);var a=n(o,"WeakMap");r.exports=a},79770:r=>{function t(r,t){var e=-1,n=r==null?0:r.length,o=0,a=[];while(++e{var n=e(78096),o=e(72428),a=e(56449),i=e(3656),u=e(30361),s=e(37167);var c=Object.prototype;var p=c.hasOwnProperty;function v(r,t){var e=a(r),c=!e&&o(r),v=!e&&!c&&i(r),f=!e&&!c&&!v&&s(r),l=e||c||v||f,h=l?n(r.length,String):[],y=h.length;for(var _ in r){if((t||p.call(r,_))&&!(l&&(_=="length"||v&&(_=="offset"||_=="parent")||f&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||u(_,y)))){h.push(_)}}return h}r.exports=v},34932:r=>{function t(r,t){var e=-1,n=r==null?0:r.length,o=Array(n);while(++e{function t(r,t){var e=-1,n=t.length,o=r.length;while(++e{var n=e(75288);function o(r,t){var e=r.length;while(e--){if(n(r[e][0],t)){return e}}return-1}r.exports=o},47422:(r,t,e)=>{var n=e(31769),o=e(77797);function a(r,t){t=n(t,r);var e=0,a=t.length;while(r!=null&&e{var n=e(14528),o=e(56449);function a(r,t,e){var a=t(r);return o(r)?a:n(a,e(r))}r.exports=a},72552:(r,t,e)=>{var n=e(51873),o=e(659),a=e(59350);var i="[object Null]",u="[object Undefined]";var s=n?n.toStringTag:undefined;function c(r){if(r==null){return r===undefined?u:i}return s&&s in Object(r)?o(r):a(r)}r.exports=c},27534:(r,t,e)=>{var n=e(72552),o=e(40346);var a="[object Arguments]";function i(r){return o(r)&&n(r)==a}r.exports=i},45083:(r,t,e)=>{var n=e(1882),o=e(87296),a=e(23805),i=e(47473);var u=/[\\^$.*+?()[\]{}|]/g;var s=/^\[object .+?Constructor\]$/;var c=Function.prototype,p=Object.prototype;var v=c.toString;var f=p.hasOwnProperty;var l=RegExp("^"+v.call(f).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(r){if(!a(r)||o(r)){return false}var t=n(r)?l:s;return t.test(i(r))}r.exports=h},4901:(r,t,e)=>{var n=e(72552),o=e(30294),a=e(40346);var i="[object Arguments]",u="[object Array]",s="[object Boolean]",c="[object Date]",p="[object Error]",v="[object Function]",f="[object Map]",l="[object Number]",h="[object Object]",y="[object RegExp]",_="[object Set]",b="[object String]",x="[object WeakMap]";var d="[object ArrayBuffer]",j="[object DataView]",g="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",A="[object Int32Array]",z="[object Uint8Array]",S="[object Uint8ClampedArray]",P="[object Uint16Array]",k="[object Uint32Array]";var $={};$[g]=$[w]=$[O]=$[m]=$[A]=$[z]=$[S]=$[P]=$[k]=true;$[i]=$[u]=$[d]=$[s]=$[j]=$[c]=$[p]=$[v]=$[f]=$[l]=$[h]=$[y]=$[_]=$[b]=$[x]=false;function F(r){return a(r)&&o(r.length)&&!!$[n(r)]}r.exports=F},88984:(r,t,e)=>{var n=e(55527),o=e(3650);var a=Object.prototype;var i=a.hasOwnProperty;function u(r){if(!n(r)){return o(r)}var t=[];for(var e in Object(r)){if(i.call(r,e)&&e!="constructor"){t.push(e)}}return t}r.exports=u},78096:r=>{function t(r,t){var e=-1,n=Array(r);while(++e{var n=e(51873),o=e(34932),a=e(56449),i=e(44394);var u=1/0;var s=n?n.prototype:undefined,c=s?s.toString:undefined;function p(r){if(typeof r=="string"){return r}if(a(r)){return o(r,p)+""}if(i(r)){return c?c.call(r):""}var t=r+"";return t=="0"&&1/r==-u?"-0":t}r.exports=p},27301:r=>{function t(r){return function(t){return r(t)}}r.exports=t},31769:(r,t,e)=>{var n=e(56449),o=e(28586),a=e(61802),i=e(13222);function u(r,t){if(n(r)){return r}return o(r,t)?[r]:a(i(r))}r.exports=u},55481:(r,t,e)=>{var n=e(9325);var o=n["__core-js_shared__"];r.exports=o},34840:(r,t,e)=>{var n=typeof e.g=="object"&&e.g&&e.g.Object===Object&&e.g;r.exports=n},50002:(r,t,e)=>{var n=e(82199),o=e(4664),a=e(95950);function i(r){return n(r,a,o)}r.exports=i},12651:(r,t,e)=>{var n=e(74218);function o(r,t){var e=r.__data__;return n(t)?e[typeof t=="string"?"string":"hash"]:e.map}r.exports=o},56110:(r,t,e)=>{var n=e(45083),o=e(10392);function a(r,t){var e=o(r,t);return n(e)?e:undefined}r.exports=a},659:(r,t,e)=>{var n=e(51873);var o=Object.prototype;var a=o.hasOwnProperty;var i=o.toString;var u=n?n.toStringTag:undefined;function s(r){var t=a.call(r,u),e=r[u];try{r[u]=undefined;var n=true}catch(s){}var o=i.call(r);if(n){if(t){r[u]=e}else{delete r[u]}}return o}r.exports=s},4664:(r,t,e)=>{var n=e(79770),o=e(63345);var a=Object.prototype;var i=a.propertyIsEnumerable;var u=Object.getOwnPropertySymbols;var s=!u?o:function(r){if(r==null){return[]}r=Object(r);return n(u(r),(function(t){return i.call(r,t)}))};r.exports=s},5861:(r,t,e)=>{var n=e(55580),o=e(68223),a=e(32804),i=e(76545),u=e(28303),s=e(72552),c=e(47473);var p="[object Map]",v="[object Object]",f="[object Promise]",l="[object Set]",h="[object WeakMap]";var y="[object DataView]";var _=c(n),b=c(o),x=c(a),d=c(i),j=c(u);var g=s;if(n&&g(new n(new ArrayBuffer(1)))!=y||o&&g(new o)!=p||a&&g(a.resolve())!=f||i&&g(new i)!=l||u&&g(new u)!=h){g=function(r){var t=s(r),e=t==v?r.constructor:undefined,n=e?c(e):"";if(n){switch(n){case _:return y;case b:return p;case x:return f;case d:return l;case j:return h}}return t}}r.exports=g},10392:r=>{function t(r,t){return r==null?undefined:r[t]}r.exports=t},22032:(r,t,e)=>{var n=e(81042);function o(){this.__data__=n?n(null):{};this.size=0}r.exports=o},63862:r=>{function t(r){var t=this.has(r)&&delete this.__data__[r];this.size-=t?1:0;return t}r.exports=t},66721:(r,t,e)=>{var n=e(81042);var o="__lodash_hash_undefined__";var a=Object.prototype;var i=a.hasOwnProperty;function u(r){var t=this.__data__;if(n){var e=t[r];return e===o?undefined:e}return i.call(t,r)?t[r]:undefined}r.exports=u},12749:(r,t,e)=>{var n=e(81042);var o=Object.prototype;var a=o.hasOwnProperty;function i(r){var t=this.__data__;return n?t[r]!==undefined:a.call(t,r)}r.exports=i},35749:(r,t,e)=>{var n=e(81042);var o="__lodash_hash_undefined__";function a(r,t){var e=this.__data__;this.size+=this.has(r)?0:1;e[r]=n&&t===undefined?o:t;return this}r.exports=a},30361:r=>{var t=9007199254740991;var e=/^(?:0|[1-9]\d*)$/;function n(r,n){var o=typeof r;n=n==null?t:n;return!!n&&(o=="number"||o!="symbol"&&e.test(r))&&(r>-1&&r%1==0&&r{var n=e(56449),o=e(44394);var a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function u(r,t){if(n(r)){return false}var e=typeof r;if(e=="number"||e=="symbol"||e=="boolean"||r==null||o(r)){return true}return i.test(r)||!a.test(r)||t!=null&&r in Object(t)}r.exports=u},74218:r=>{function t(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}r.exports=t},87296:(r,t,e)=>{var n=e(55481);var o=function(){var r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function a(r){return!!o&&o in r}r.exports=a},55527:r=>{var t=Object.prototype;function e(r){var e=r&&r.constructor,n=typeof e=="function"&&e.prototype||t;return r===n}r.exports=e},63702:r=>{function t(){this.__data__=[];this.size=0}r.exports=t},70080:(r,t,e)=>{var n=e(26025);var o=Array.prototype;var a=o.splice;function i(r){var t=this.__data__,e=n(t,r);if(e<0){return false}var o=t.length-1;if(e==o){t.pop()}else{a.call(t,e,1)}--this.size;return true}r.exports=i},24739:(r,t,e)=>{var n=e(26025);function o(r){var t=this.__data__,e=n(t,r);return e<0?undefined:t[e][1]}r.exports=o},48655:(r,t,e)=>{var n=e(26025);function o(r){return n(this.__data__,r)>-1}r.exports=o},31175:(r,t,e)=>{var n=e(26025);function o(r,t){var e=this.__data__,o=n(e,r);if(o<0){++this.size;e.push([r,t])}else{e[o][1]=t}return this}r.exports=o},63040:(r,t,e)=>{var n=e(21549),o=e(80079),a=e(68223);function i(){this.size=0;this.__data__={hash:new n,map:new(a||o),string:new n}}r.exports=i},17670:(r,t,e)=>{var n=e(12651);function o(r){var t=n(this,r)["delete"](r);this.size-=t?1:0;return t}r.exports=o},90289:(r,t,e)=>{var n=e(12651);function o(r){return n(this,r).get(r)}r.exports=o},4509:(r,t,e)=>{var n=e(12651);function o(r){return n(this,r).has(r)}r.exports=o},72949:(r,t,e)=>{var n=e(12651);function o(r,t){var e=n(this,r),o=e.size;e.set(r,t);this.size+=e.size==o?0:1;return this}r.exports=o},62224:(r,t,e)=>{var n=e(50104);var o=500;function a(r){var t=n(r,(function(r){if(e.size===o){e.clear()}return r}));var e=t.cache;return t}r.exports=a},81042:(r,t,e)=>{var n=e(56110);var o=n(Object,"create");r.exports=o},3650:(r,t,e)=>{var n=e(74335);var o=n(Object.keys,Object);r.exports=o},86009:(r,t,e)=>{r=e.nmd(r);var n=e(34840);var o=true&&t&&!t.nodeType&&t;var a=o&&"object"=="object"&&r&&!r.nodeType&&r;var i=a&&a.exports===o;var u=i&&n.process;var s=function(){try{var r=a&&a.require&&a.require("util").types;if(r){return r}return u&&u.binding&&u.binding("util")}catch(t){}}();r.exports=s},59350:r=>{var t=Object.prototype;var e=t.toString;function n(r){return e.call(r)}r.exports=n},74335:r=>{function t(r,t){return function(e){return r(t(e))}}r.exports=t},9325:(r,t,e)=>{var n=e(34840);var o=typeof self=="object"&&self&&self.Object===Object&&self;var a=n||o||Function("return this")();r.exports=a},51420:(r,t,e)=>{var n=e(80079);function o(){this.__data__=new n;this.size=0}r.exports=o},90938:r=>{function t(r){var t=this.__data__,e=t["delete"](r);this.size=t.size;return e}r.exports=t},63605:r=>{function t(r){return this.__data__.get(r)}r.exports=t},29817:r=>{function t(r){return this.__data__.has(r)}r.exports=t},80945:(r,t,e)=>{var n=e(80079),o=e(68223),a=e(53661);var i=200;function u(r,t){var e=this.__data__;if(e instanceof n){var u=e.__data__;if(!o||u.length{var n=e(62224);var o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var a=/\\(\\)?/g;var i=n((function(r){var t=[];if(r.charCodeAt(0)===46){t.push("")}r.replace(o,(function(r,e,n,o){t.push(n?o.replace(a,"$1"):e||r)}));return t}));r.exports=i},77797:(r,t,e)=>{var n=e(44394);var o=1/0;function a(r){if(typeof r=="string"||n(r)){return r}var t=r+"";return t=="0"&&1/r==-o?"-0":t}r.exports=a},47473:r=>{var t=Function.prototype;var e=t.toString;function n(r){if(r!=null){try{return e.call(r)}catch(t){}try{return r+""}catch(t){}}return""}r.exports=n},75288:r=>{function t(r,t){return r===t||r!==r&&t!==t}r.exports=t},58156:(r,t,e)=>{var n=e(47422);function o(r,t,e){var o=r==null?undefined:n(r,t);return o===undefined?e:o}r.exports=o},72428:(r,t,e)=>{var n=e(27534),o=e(40346);var a=Object.prototype;var i=a.hasOwnProperty;var u=a.propertyIsEnumerable;var s=n(function(){return arguments}())?n:function(r){return o(r)&&i.call(r,"callee")&&!u.call(r,"callee")};r.exports=s},56449:r=>{var t=Array.isArray;r.exports=t},64894:(r,t,e)=>{var n=e(1882),o=e(30294);function a(r){return r!=null&&o(r.length)&&!n(r)}r.exports=a},3656:(r,t,e)=>{r=e.nmd(r);var n=e(9325),o=e(89935);var a=true&&t&&!t.nodeType&&t;var i=a&&"object"=="object"&&r&&!r.nodeType&&r;var u=i&&i.exports===a;var s=u?n.Buffer:undefined;var c=s?s.isBuffer:undefined;var p=c||o;r.exports=p},1882:(r,t,e)=>{var n=e(72552),o=e(23805);var a="[object AsyncFunction]",i="[object Function]",u="[object GeneratorFunction]",s="[object Proxy]";function c(r){if(!o(r)){return false}var t=n(r);return t==i||t==u||t==a||t==s}r.exports=c},30294:r=>{var t=9007199254740991;function e(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=t}r.exports=e},23805:r=>{function t(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}r.exports=t},40346:r=>{function t(r){return r!=null&&typeof r=="object"}r.exports=t},44394:(r,t,e)=>{var n=e(72552),o=e(40346);var a="[object Symbol]";function i(r){return typeof r=="symbol"||o(r)&&n(r)==a}r.exports=i},37167:(r,t,e)=>{var n=e(4901),o=e(27301),a=e(86009);var i=a&&a.isTypedArray;var u=i?o(i):n;r.exports=u},95950:(r,t,e)=>{var n=e(70695),o=e(88984),a=e(64894);function i(r){return a(r)?n(r):o(r)}r.exports=i},50104:(r,t,e)=>{var n=e(53661);var o="Expected a function";function a(r,t){if(typeof r!="function"||t!=null&&typeof t!="function"){throw new TypeError(o)}var e=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=e.cache;if(a.has(o)){return a.get(o)}var i=r.apply(this,n);e.cache=a.set(o,i)||a;return i};e.cache=new(a.Cache||n);return e}a.Cache=n;r.exports=a},63345:r=>{function t(){return[]}r.exports=t},89935:r=>{function t(){return false}r.exports=t},13222:(r,t,e)=>{var n=e(77556);function o(r){return r==null?"":n(r)}r.exports=o}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4053.4945facc348478fd59f4.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4053.4945facc348478fd59f4.js new file mode 100644 index 0000000000000000000000000000000000000000..1122a6394ada9c5817ccf14b316bc8135a9ee7c2 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4053.4945facc348478fd59f4.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4053],{34053:(t,a,r)=>{r.r(a);r.d(a,{troff:()=>i});var n={};function e(t){if(t.eatSpace())return null;var a=t.sol();var r=t.next();if(r==="\\"){if(t.match("fB")||t.match("fR")||t.match("fI")||t.match("u")||t.match("d")||t.match("%")||t.match("&")){return"string"}if(t.match("m[")){t.skipTo("]");t.next();return"string"}if(t.match("s+")||t.match("s-")){t.eatWhile(/[\d-]/);return"string"}if(t.match("(")||t.match("*(")){t.eatWhile(/[\w-]/);return"string"}return"string"}if(a&&(r==="."||r==="'")){if(t.eat("\\")&&t.eat('"')){t.skipToEnd();return"comment"}}if(a&&r==="."){if(t.match("B ")||t.match("I ")||t.match("R ")){return"attribute"}if(t.match("TH ")||t.match("SH ")||t.match("SS ")||t.match("HP ")){t.skipToEnd();return"quote"}if(t.match(/[A-Z]/)&&t.match(/[A-Z]/)||t.match(/[a-z]/)&&t.match(/[a-z]/)){return"attribute"}}t.eatWhile(/[\w-]/);var e=t.current();return n.hasOwnProperty(e)?n[e]:null}function c(t,a){return(a.tokens[0]||e)(t,a)}const i={name:"troff",startState:function(){return{tokens:[]}},token:function(t,a){return c(t,a)}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4090.2a98aa0f94d11a8709c5.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4090.2a98aa0f94d11a8709c5.js new file mode 100644 index 0000000000000000000000000000000000000000..c4f6f154d3f0c2963c8ca40e8ab695df0a7d6c07 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4090.2a98aa0f94d11a8709c5.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4090],{63380:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.AbstractOutputJax=void 0;var i=r(34981);var n=r(43899);var o=function(){function t(t){if(t===void 0){t={}}this.adaptor=null;var e=this.constructor;this.options=(0,i.userOptions)((0,i.defaultOptions)({},e.OPTIONS),t);this.postFilters=new n.FunctionList}Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:false,configurable:true});t.prototype.setAdaptor=function(t){this.adaptor=t};t.prototype.initialize=function(){};t.prototype.reset=function(){var t=[];for(var e=0;e{Object.defineProperty(e,"__esModule",{value:true});e.AbstractWrapper=void 0;var r=function(){function t(t,e){this.factory=t;this.node=e}Object.defineProperty(t.prototype,"kind",{get:function(){return this.node.kind},enumerable:false,configurable:true});t.prototype.wrap=function(t){return this.factory.wrap(t)};return t}();e.AbstractWrapper=r},49294:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTML=void 0;var h=r(12222);var c=r(14454);var u=r(59550);var f=r(60854);var p=r(1673);var d=s(r(86810));var y=r(41278);var v=function(t){i(e,t);function e(e){if(e===void 0){e=null}var r=t.call(this,e,u.CHTMLWrapperFactory,p.TeXFont)||this;r.chtmlStyles=null;r.font.adaptiveCSS(r.options.adaptiveCSS);r.wrapperUsage=new f.Usage;return r}e.prototype.escaped=function(t,e){this.setDocument(e);return this.html("span",{},[this.text(t.math)])};e.prototype.styleSheet=function(r){if(this.chtmlStyles){if(this.options.adaptiveCSS){var i=new c.CssStyles;this.addWrapperStyles(i);this.updateFontStyles(i);this.adaptor.insertRules(this.chtmlStyles,i.getStyleRules())}return this.chtmlStyles}var n=this.chtmlStyles=t.prototype.styleSheet.call(this,r);this.adaptor.setAttribute(n,"id",e.STYLESHEETID);this.wrapperUsage.update();return n};e.prototype.updateFontStyles=function(t){t.addStyles(this.font.updateStyles({}))};e.prototype.addWrapperStyles=function(e){var r,i;if(!this.options.adaptiveCSS){t.prototype.addWrapperStyles.call(this,e);return}try{for(var n=l(this.wrapperUsage.update()),o=n.next();!o.done;o=n.next()){var a=o.value;var s=this.factory.getNodeClass(a);s&&this.addClassStyles(s,e)}}catch(h){r={error:h}}finally{try{if(o&&!o.done&&(i=n.return))i.call(n)}finally{if(r)throw r.error}}};e.prototype.addClassStyles=function(e,r){var i;var n=e;if(n.autoStyle&&n.kind!=="unknown"){r.addStyles((i={},i["mjx-"+n.kind]={display:"inline-block","text-align":"left"},i))}this.wrapperUsage.add(n.kind);t.prototype.addClassStyles.call(this,e,r)};e.prototype.processMath=function(t,e){this.factory.wrap(t).toCHTML(e)};e.prototype.clearCache=function(){this.cssStyles.clear();this.font.clearCache();this.wrapperUsage.clear();this.chtmlStyles=null};e.prototype.reset=function(){this.clearCache()};e.prototype.unknownText=function(t,e,r){if(r===void 0){r=null}var i={};var n=100/this.math.metrics.scale;if(n!==100){i["font-size"]=this.fixed(n,1)+"%";i.padding=d.em(75/n)+" 0 "+d.em(20/n)+" 0"}if(e!=="-explicitFont"){var o=(0,y.unicodeChars)(t);if(o.length!==1||o[0]<119808||o[0]>120831){this.cssFontStyles(this.font.getCssFont(e),i)}}if(r!==null){var a=this.math.metrics;i.width=Math.round(r*a.em*a.scale)+"px"}return this.html("mjx-utext",{variant:e,style:i},[this.text(t)])};e.prototype.measureTextNode=function(t){var e=this.adaptor;var r=e.clone(t);e.setStyle(r,"font-family",e.getStyle(r,"font-family").replace(/MJXZERO, /g,""));var i={position:"absolute","white-space":"nowrap"};var n=this.html("mjx-measure-text",{style:i},[r]);e.append(e.parent(this.math.start.node),this.container);e.append(this.container,n);var o=e.nodeSize(r,this.math.metrics.em)[0]/this.math.metrics.scale;e.remove(this.container);e.remove(n);return{w:o,h:.75,d:.2}};e.NAME="CHTML";e.OPTIONS=n(n({},h.CommonOutputJax.OPTIONS),{adaptiveCSS:true,matchFontHeight:true});e.commonStyles={'mjx-container[jax="CHTML"]':{"line-height":0},'mjx-container [space="1"]':{"margin-left":".111em"},'mjx-container [space="2"]':{"margin-left":".167em"},'mjx-container [space="3"]':{"margin-left":".222em"},'mjx-container [space="4"]':{"margin-left":".278em"},'mjx-container [space="5"]':{"margin-left":".333em"},'mjx-container [rspace="1"]':{"margin-right":".111em"},'mjx-container [rspace="2"]':{"margin-right":".167em"},'mjx-container [rspace="3"]':{"margin-right":".222em"},'mjx-container [rspace="4"]':{"margin-right":".278em"},'mjx-container [rspace="5"]':{"margin-right":".333em"},'mjx-container [size="s"]':{"font-size":"70.7%"},'mjx-container [size="ss"]':{"font-size":"50%"},'mjx-container [size="Tn"]':{"font-size":"60%"},'mjx-container [size="sm"]':{"font-size":"85%"},'mjx-container [size="lg"]':{"font-size":"120%"},'mjx-container [size="Lg"]':{"font-size":"144%"},'mjx-container [size="LG"]':{"font-size":"173%"},'mjx-container [size="hg"]':{"font-size":"207%"},'mjx-container [size="HG"]':{"font-size":"249%"},'mjx-container [width="full"]':{width:"100%"},"mjx-box":{display:"inline-block"},"mjx-block":{display:"block"},"mjx-itable":{display:"inline-table"},"mjx-row":{display:"table-row"},"mjx-row > *":{display:"table-cell"},"mjx-mtext":{display:"inline-block"},"mjx-mstyle":{display:"inline-block"},"mjx-merror":{display:"inline-block",color:"red","background-color":"yellow"},"mjx-mphantom":{visibility:"hidden"},"_::-webkit-full-page-media, _:future, :root mjx-container":{"will-change":"opacity"}};e.STYLESHEETID="MJX-CHTML-styles";return e}(h.CommonOutputJax);e.CHTML=v},85475:function(t,e,r){var i=this&&this.__createBinding||(Object.create?function(t,e,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(e,r);if(!n||("get"in n?!e.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,i,n)}:function(t,e,r,i){if(i===undefined)i=r;t[i]=e[r]});var n=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))i(e,t,r);n(e,t);return e};var a=this&&this.__exportStar||function(t,e){for(var r in t)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r))i(e,t,r)};var s=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.Arrow=e.DiagonalArrow=e.DiagonalStrike=e.Border2=e.Border=e.RenderElement=void 0;var l=o(r(37626));a(r(37626),e);var h=function(t,e){if(e===void 0){e=""}return function(r,i){var n=r.adjustBorder(r.html("mjx-"+t));if(e){var o=r.getOffset(e);if(r.thickness!==l.THICKNESS||o){var a="translate".concat(e,"(").concat(r.em(r.thickness/2-o),")");r.adaptor.setStyle(n,"transform",a)}}r.adaptor.append(r.chtml,n)}};e.RenderElement=h;var c=function(t){return l.CommonBorder((function(e,r){e.adaptor.setStyle(r,"border-"+t,e.em(e.thickness)+" solid")}))(t)};e.Border=c;var u=function(t,e,r){return l.CommonBorder2((function(t,i){var n=t.em(t.thickness)+" solid";t.adaptor.setStyle(i,"border-"+e,n);t.adaptor.setStyle(i,"border-"+r,n)}))(t,e,r)};e.Border2=u;var f=function(t,e){return l.CommonDiagonalStrike((function(t){return function(r,i){var n=r.getBBox(),o=n.w,a=n.h,l=n.d;var h=s(r.getArgMod(o,a+l),2),c=h[0],u=h[1];var f=e*r.thickness/2;var p=r.adjustBorder(r.html(t,{style:{width:r.em(u),transform:"rotate("+r.fixed(-e*c)+"rad) translateY("+f+"em)"}}));r.adaptor.append(r.chtml,p)}}))(t)};e.DiagonalStrike=f;var p=function(t){return l.CommonDiagonalArrow((function(t,e){t.adaptor.append(t.chtml,e)}))(t)};e.DiagonalArrow=p;var d=function(t){return l.CommonArrow((function(t,e){t.adaptor.append(t.chtml,e)}))(t)};e.Arrow=d},44614:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__createBinding||(Object.create?function(t,e,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(e,r);if(!n||("get"in n?!e.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,i,n)}:function(t,e,r,i){if(i===undefined)i=r;t[i]=e[r]});var o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))n(e,t,r);o(e,t);return e};var s=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var l=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var h;Object.defineProperty(e,"__esModule",{value:true});e.CHTMLWrapper=e.SPACE=e.FONTSIZE=void 0;var c=a(r(86810));var u=r(85677);var f=r(58340);e.FONTSIZE={"70.7%":"s","70%":"s","50%":"ss","60%":"Tn","85%":"sm","120%":"lg","144%":"Lg","173%":"LG","207%":"hg","249%":"HG"};e.SPACE=(h={},h[c.em(2/18)]="1",h[c.em(3/18)]="2",h[c.em(4/18)]="3",h[c.em(5/18)]="4",h[c.em(6/18)]="5",h);var p=function(t){i(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;e.chtml=null;return e}r.prototype.toCHTML=function(t){var e,r;var i=this.standardCHTMLnode(t);try{for(var n=s(this.childNodes),o=n.next();!o.done;o=n.next()){var a=o.value;a.toCHTML(i)}}catch(l){e={error:l}}finally{try{if(o&&!o.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}};r.prototype.standardCHTMLnode=function(t){this.markUsed();var e=this.createCHTMLnode(t);this.handleStyles();this.handleVariant();this.handleScale();this.handleColor();this.handleSpace();this.handleAttributes();this.handlePWidth();return e};r.prototype.markUsed=function(){this.jax.wrapperUsage.add(this.kind)};r.prototype.createCHTMLnode=function(t){var e=this.node.attributes.get("href");if(e){t=this.adaptor.append(t,this.html("a",{href:e}))}this.chtml=this.adaptor.append(t,this.html("mjx-"+this.node.kind));return this.chtml};r.prototype.handleStyles=function(){if(!this.styles)return;var t=this.styles.cssText;if(t){this.adaptor.setAttribute(this.chtml,"style",t);var e=this.styles.get("font-family");if(e){this.adaptor.setStyle(this.chtml,"font-family","MJXZERO, "+e)}}};r.prototype.handleVariant=function(){if(this.node.isToken&&this.variant!=="-explicitFont"){this.adaptor.setAttribute(this.chtml,"class",(this.font.getVariant(this.variant)||this.font.getVariant("normal")).classes)}};r.prototype.handleScale=function(){this.setScale(this.chtml,this.bbox.rscale)};r.prototype.setScale=function(t,r){var i=Math.abs(r-1)<.001?1:r;if(t&&i!==1){var n=this.percent(i);if(e.FONTSIZE[n]){this.adaptor.setAttribute(t,"size",e.FONTSIZE[n])}else{this.adaptor.setStyle(t,"fontSize",n)}}return t};r.prototype.handleSpace=function(){var t,r;try{for(var i=s([[this.bbox.L,"space","marginLeft"],[this.bbox.R,"rspace","marginRight"]]),n=i.next();!n.done;n=i.next()){var o=n.value;var a=l(o,3),h=a[0],c=a[1],u=a[2];if(h){var f=this.em(h);if(e.SPACE[f]){this.adaptor.setAttribute(this.chtml,c,e.SPACE[f])}else{this.adaptor.setStyle(this.chtml,u,f)}}}}catch(p){t={error:p}}finally{try{if(n&&!n.done&&(r=i.return))r.call(i)}finally{if(t)throw t.error}}};r.prototype.handleColor=function(){var t=this.node.attributes;var e=t.getExplicit("mathcolor");var r=t.getExplicit("color");var i=t.getExplicit("mathbackground");var n=t.getExplicit("background");if(e||r){this.adaptor.setStyle(this.chtml,"color",e||r)}if(i||n){this.adaptor.setStyle(this.chtml,"backgroundColor",i||n)}};r.prototype.handleAttributes=function(){var t,e,i,n;var o=this.node.attributes;var a=o.getAllDefaults();var l=r.skipAttributes;try{for(var h=s(o.getExplicitNames()),c=h.next();!c.done;c=h.next()){var u=c.value;if(l[u]===false||!(u in a)&&!l[u]&&!this.adaptor.hasAttribute(this.chtml,u)){this.adaptor.setAttribute(this.chtml,u,o.getExplicit(u))}}}catch(v){t={error:v}}finally{try{if(c&&!c.done&&(e=h.return))e.call(h)}finally{if(t)throw t.error}}if(o.get("class")){var f=o.get("class").trim().split(/ +/);try{for(var p=s(f),d=p.next();!d.done;d=p.next()){var y=d.value;this.adaptor.addClass(this.chtml,y)}}catch(m){i={error:m}}finally{try{if(d&&!d.done&&(n=p.return))n.call(p)}finally{if(i)throw i.error}}}};r.prototype.handlePWidth=function(){if(this.bbox.pwidth){if(this.bbox.pwidth===f.BBox.fullWidth){this.adaptor.setAttribute(this.chtml,"width","full")}else{this.adaptor.setStyle(this.chtml,"width",this.bbox.pwidth)}}};r.prototype.setIndent=function(t,e,r){var i=this.adaptor;if(e==="center"||e==="left"){var n=this.getBBox().L;i.setStyle(t,"margin-left",this.em(r+n))}if(e==="center"||e==="right"){var o=this.getBBox().R;i.setStyle(t,"margin-right",this.em(-r+o))}};r.prototype.drawBBox=function(){var t=this.getBBox(),e=t.w,r=t.h,i=t.d,n=t.R;var o=this.html("mjx-box",{style:{opacity:.25,"margin-left":this.em(-e-n)}},[this.html("mjx-box",{style:{height:this.em(r),width:this.em(e),"background-color":"red"}}),this.html("mjx-box",{style:{height:this.em(i),width:this.em(e),"margin-left":this.em(-e),"vertical-align":this.em(-i),"background-color":"green"}})]);var a=this.chtml||this.parent.chtml;var s=this.adaptor.getAttribute(a,"size");if(s){this.adaptor.setAttribute(o,"size",s)}var l=this.adaptor.getStyle(a,"fontSize");if(l){this.adaptor.setStyle(o,"fontSize",l)}this.adaptor.append(this.adaptor.parent(a),o);this.adaptor.setStyle(a,"backgroundColor","#FFEE00")};r.prototype.html=function(t,e,r){if(e===void 0){e={}}if(r===void 0){r=[]}return this.jax.html(t,e,r)};r.prototype.text=function(t){return this.jax.text(t)};r.prototype.char=function(t){return this.font.charSelector(t).substr(1)};r.kind="unknown";r.autoStyle=true;return r}(u.CommonWrapper);e.CHTMLWrapper=p},59550:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLWrapperFactory=void 0;var n=r(36483);var o=r(3917);var a=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.defaultNodes=o.CHTMLWrappers;return e}(n.CommonWrapperFactory);e.CHTMLWrapperFactory=a},3917:(t,e,r)=>{var i;Object.defineProperty(e,"__esModule",{value:true});e.CHTMLWrappers=void 0;var n=r(44614);var o=r(64474);var a=r(2742);var s=r(20480);var l=r(19255);var h=r(3428);var c=r(79150);var u=r(91007);var f=r(38655);var p=r(2696);var d=r(34021);var y=r(91122);var v=r(79901);var m=r(55715);var b=r(55501);var g=r(21279);var x=r(49821);var w=r(84642);var _=r(46605);var M=r(42731);var j=r(71937);var C=r(1835);var S=r(96672);var O=r(29107);var T=r(61118);var B=r(13219);e.CHTMLWrappers=(i={},i[o.CHTMLmath.kind]=o.CHTMLmath,i[d.CHTMLmrow.kind]=d.CHTMLmrow,i[d.CHTMLinferredMrow.kind]=d.CHTMLinferredMrow,i[a.CHTMLmi.kind]=a.CHTMLmi,i[s.CHTMLmo.kind]=s.CHTMLmo,i[l.CHTMLmn.kind]=l.CHTMLmn,i[h.CHTMLms.kind]=h.CHTMLms,i[c.CHTMLmtext.kind]=c.CHTMLmtext,i[u.CHTMLmspace.kind]=u.CHTMLmspace,i[f.CHTMLmpadded.kind]=f.CHTMLmpadded,i[p.CHTMLmenclose.kind]=p.CHTMLmenclose,i[v.CHTMLmfrac.kind]=v.CHTMLmfrac,i[m.CHTMLmsqrt.kind]=m.CHTMLmsqrt,i[b.CHTMLmroot.kind]=b.CHTMLmroot,i[g.CHTMLmsub.kind]=g.CHTMLmsub,i[g.CHTMLmsup.kind]=g.CHTMLmsup,i[g.CHTMLmsubsup.kind]=g.CHTMLmsubsup,i[x.CHTMLmunder.kind]=x.CHTMLmunder,i[x.CHTMLmover.kind]=x.CHTMLmover,i[x.CHTMLmunderover.kind]=x.CHTMLmunderover,i[w.CHTMLmmultiscripts.kind]=w.CHTMLmmultiscripts,i[y.CHTMLmfenced.kind]=y.CHTMLmfenced,i[_.CHTMLmtable.kind]=_.CHTMLmtable,i[M.CHTMLmtr.kind]=M.CHTMLmtr,i[M.CHTMLmlabeledtr.kind]=M.CHTMLmlabeledtr,i[j.CHTMLmtd.kind]=j.CHTMLmtd,i[C.CHTMLmaction.kind]=C.CHTMLmaction,i[S.CHTMLmglyph.kind]=S.CHTMLmglyph,i[O.CHTMLsemantics.kind]=O.CHTMLsemantics,i[O.CHTMLannotation.kind]=O.CHTMLannotation,i[O.CHTMLannotationXML.kind]=O.CHTMLannotationXML,i[O.CHTMLxml.kind]=O.CHTMLxml,i[T.CHTMLTeXAtom.kind]=T.CHTMLTeXAtom,i[B.CHTMLTextNode.kind]=B.CHTMLTextNode,i[n.CHTMLWrapper.kind]=n.CHTMLWrapper,i)},61118:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLTeXAtom=void 0;var n=r(44614);var o=r(65735);var a=r(54517);var s=r(80747);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);this.adaptor.setAttribute(this.chtml,"texclass",s.TEXCLASSNAMES[this.node.texClass]);if(this.node.texClass===s.TEXCLASS.VCENTER){var r=this.childNodes[0].getBBox();var i=r.h,n=r.d;var o=this.font.params.axis_height;var a=(i+n)/2+o-i;this.adaptor.setStyle(this.chtml,"verticalAlign",this.em(a))}};e.kind=a.TeXAtom.prototype.kind;return e}((0,o.CommonTeXAtomMixin)(n.CHTMLWrapper));e.CHTMLTeXAtom=l},13219:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLTextNode=void 0;var o=r(80747);var a=r(44614);var s=r(87120);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e,r;this.markUsed();var i=this.adaptor;var o=this.parent.variant;var a=this.node.getText();if(a.length===0)return;if(o==="-explicitFont"){i.append(t,this.jax.unknownText(a,o,this.getBBox().w))}else{var s=this.remappedText(a,o);try{for(var l=n(s),h=l.next();!h.done;h=l.next()){var c=h.value;var u=this.getVariantChar(o,c)[3];var f=u.f?" TEX-"+u.f:"";var p=u.unknown?this.jax.unknownText(String.fromCodePoint(c),o):this.html("mjx-c",{class:this.char(c)+f});i.append(t,p);!u.unknown&&this.font.charUsage.add([o,c])}}catch(d){e={error:d}}finally{try{if(h&&!h.done&&(r=l.return))r.call(l)}finally{if(e)throw e.error}}}};e.kind=o.TextNode.prototype.kind;e.autoStyle=false;e.styles={"mjx-c":{display:"inline-block"},"mjx-utext":{display:"inline-block",padding:".75em 0 .2em 0"}};return e}((0,s.CommonTextNodeMixin)(a.CHTMLWrapper));e.CHTMLTextNode=l},1835:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmaction=void 0;var n=r(44614);var o=r(55210);var a=r(55210);var s=r(36528);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.standardCHTMLnode(t);var r=this.selected;r.toCHTML(e);this.action(this,this.data)};e.prototype.setEventHandler=function(t,e){this.chtml.addEventListener(t,e)};e.kind=s.MmlMaction.prototype.kind;e.styles={"mjx-maction":{position:"relative"},"mjx-maction > mjx-tool":{display:"none",position:"absolute",bottom:0,right:0,width:0,height:0,"z-index":500},"mjx-tool > mjx-tip":{display:"inline-block",padding:".2em",border:"1px solid #888","font-size":"70%","background-color":"#F8F8F8",color:"black","box-shadow":"2px 2px 5px #AAAAAA"},"mjx-maction[toggle]":{cursor:"pointer"},"mjx-status":{display:"block",position:"fixed",left:"1em",bottom:"1em","min-width":"25%",padding:".2em .4em",border:"1px solid #888","font-size":"90%","background-color":"#F8F8F8",color:"black"}};e.actions=new Map([["toggle",[function(t,e){t.adaptor.setAttribute(t.chtml,"toggle",t.node.attributes.get("selection"));var r=t.factory.jax.math;var i=t.factory.jax.document;var n=t.node;t.setEventHandler("click",(function(t){if(!r.end.node){r.start.node=r.end.node=r.typesetRoot;r.start.n=r.end.n=0}n.nextToggleSelection();r.rerender(i);t.stopPropagation()}))},{}]],["tooltip",[function(t,e){var r=t.childNodes[1];if(!r)return;if(r.node.isKind("mtext")){var i=r.node.getText();t.adaptor.setAttribute(t.chtml,"title",i)}else{var n=t.adaptor;var o=n.append(t.chtml,t.html("mjx-tool",{style:{bottom:t.em(-t.dy),right:t.em(-t.dx)}},[t.html("mjx-tip")]));r.toCHTML(n.firstChild(o));t.setEventHandler("mouseover",(function(r){e.stopTimers(t,e);var i=setTimeout((function(){return n.setStyle(o,"display","block")}),e.postDelay);e.hoverTimer.set(t,i);r.stopPropagation()}));t.setEventHandler("mouseout",(function(r){e.stopTimers(t,e);var i=setTimeout((function(){return n.setStyle(o,"display","")}),e.clearDelay);e.clearTimer.set(t,i);r.stopPropagation()}))}},a.TooltipData]],["statusline",[function(t,e){var r=t.childNodes[1];if(!r)return;if(r.node.isKind("mtext")){var i=t.adaptor;var n=r.node.getText();i.setAttribute(t.chtml,"statusline",n);t.setEventHandler("mouseover",(function(r){if(e.status===null){var o=i.body(i.document);e.status=i.append(o,t.html("mjx-status",{},[t.text(n)]))}r.stopPropagation()}));t.setEventHandler("mouseout",(function(t){if(e.status){i.remove(e.status);e.status=null}t.stopPropagation()}))}},{status:null}]]]);return e}((0,o.CommonMactionMixin)(n.CHTMLWrapper));e.CHTMLmaction=l},64474:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmath=void 0;var o=r(44614);var a=r(67493);var s=r(31859);var l=r(58340);var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);var r=this.chtml;var i=this.adaptor;var n=this.node.attributes.get("display")==="block";if(n){i.setAttribute(r,"display","true");i.setAttribute(e,"display","true");this.handleDisplay(e)}else{this.handleInline(e)}i.addClass(r,"MJX-TEX")};e.prototype.handleDisplay=function(t){var e=this.adaptor;var r=n(this.getAlignShift(),2),i=r[0],o=r[1];if(i!=="center"){e.setAttribute(t,"justify",i)}if(this.bbox.pwidth===l.BBox.fullWidth){e.setAttribute(t,"width","full");if(this.jax.table){var a=this.jax.table.getOuterBBox(),s=a.L,h=a.w,c=a.R;if(i==="right"){c=Math.max(c||-o,-o)}else if(i==="left"){s=Math.max(s||o,o)}else if(i==="center"){h+=2*Math.abs(o)}var u=this.em(Math.max(0,s+h+c));e.setStyle(t,"min-width",u);e.setStyle(this.jax.table.chtml,"min-width",u)}}else{this.setIndent(this.chtml,i,o)}};e.prototype.handleInline=function(t){var e=this.adaptor;var r=e.getStyle(this.chtml,"margin-right");if(r){e.setStyle(this.chtml,"margin-right","");e.setStyle(t,"margin-right",r);e.setStyle(t,"width","0")}};e.prototype.setChildPWidths=function(e,r,i){if(r===void 0){r=null}if(i===void 0){i=true}return this.parent?t.prototype.setChildPWidths.call(this,e,r,i):false};e.kind=s.MmlMath.prototype.kind;e.styles={"mjx-math":{"line-height":0,"text-align":"left","text-indent":0,"font-style":"normal","font-weight":"normal","font-size":"100%","font-size-adjust":"none","letter-spacing":"normal","border-collapse":"collapse","word-wrap":"normal","word-spacing":"normal","white-space":"nowrap",direction:"ltr",padding:"1px 0"},'mjx-container[jax="CHTML"][display="true"]':{display:"block","text-align":"center",margin:"1em 0"},'mjx-container[jax="CHTML"][display="true"][width="full"]':{display:"flex"},'mjx-container[jax="CHTML"][display="true"] mjx-math':{padding:0},'mjx-container[jax="CHTML"][justify="left"]':{"text-align":"left"},'mjx-container[jax="CHTML"][justify="right"]':{"text-align":"right"}};return e}((0,a.CommonMathMixin)(o.CHTMLWrapper));e.CHTMLmath=h},2696:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__createBinding||(Object.create?function(t,e,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(e,r);if(!n||("get"in n?!e.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,i,n)}:function(t,e,r,i){if(i===undefined)i=r;t[i]=e[r]});var o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))n(e,t,r);o(e,t);return e};var s=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var l=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmenclose=void 0;var h=r(44614);var c=r(9503);var u=a(r(85475));var f=r(38085);var p=r(86810);function d(t,e){return Math.atan2(t,e).toFixed(3).replace(/\.?0+$/,"")}var y=d(u.ARROWDX,u.ARROWY);var v=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e,r,i,n;var o=this.adaptor;var a=this.standardCHTMLnode(t);var l=o.append(a,this.html("mjx-box"));if(this.renderChild){this.renderChild(this,l)}else{this.childNodes[0].toCHTML(l)}try{for(var h=s(Object.keys(this.notations)),c=h.next();!c.done;c=h.next()){var f=c.value;var p=this.notations[f];!p.renderChild&&p.renderer(this,l)}}catch(g){e={error:g}}finally{try{if(c&&!c.done&&(r=h.return))r.call(h)}finally{if(e)throw e.error}}var d=this.getPadding();try{for(var y=s(u.sideNames),v=y.next();!v.done;v=y.next()){var m=v.value;var b=u.sideIndex[m];d[b]>0&&o.setStyle(l,"padding-"+m,this.em(d[b]))}}catch(x){i={error:x}}finally{try{if(v&&!v.done&&(n=y.return))n.call(y)}finally{if(i)throw i.error}}};e.prototype.arrow=function(t,e,r,i,n){if(i===void 0){i=""}if(n===void 0){n=0}var o=this.getBBox().w;var a={width:this.em(t)};if(o!==t){a.left=this.em((o-t)/2)}if(e){a.transform="rotate("+this.fixed(e)+"rad)"}var s=this.html("mjx-arrow",{style:a},[this.html("mjx-aline"),this.html("mjx-rthead"),this.html("mjx-rbhead")]);if(r){this.adaptor.append(s,this.html("mjx-lthead"));this.adaptor.append(s,this.html("mjx-lbhead"));this.adaptor.setAttribute(s,"double","true")}this.adjustArrow(s,r);this.moveArrow(s,i,n);return s};e.prototype.adjustArrow=function(t,e){var r=this;var i=this.thickness;var n=this.arrowhead;if(n.x===u.ARROWX&&n.y===u.ARROWY&&n.dx===u.ARROWDX&&i===u.THICKNESS)return;var o=l([i*n.x,i*n.y].map((function(t){return r.em(t)})),2),a=o[0],s=o[1];var h=d(n.dx,n.y);var c=l(this.adaptor.childNodes(t),5),f=c[0],p=c[1],y=c[2],v=c[3],m=c[4];this.adjustHead(p,[s,"0","1px",a],h);this.adjustHead(y,["1px","0",s,a],"-"+h);this.adjustHead(v,[s,a,"1px","0"],"-"+h);this.adjustHead(m,["1px",a,s,"0"],h);this.adjustLine(f,i,n.x,e)};e.prototype.adjustHead=function(t,e,r){if(t){this.adaptor.setStyle(t,"border-width",e.join(" "));this.adaptor.setStyle(t,"transform","skewX("+r+"rad)")}};e.prototype.adjustLine=function(t,e,r,i){this.adaptor.setStyle(t,"borderTop",this.em(e)+" solid");this.adaptor.setStyle(t,"top",this.em(-e/2));this.adaptor.setStyle(t,"right",this.em(e*(r-1)));if(i){this.adaptor.setStyle(t,"left",this.em(e*(r-1)))}};e.prototype.moveArrow=function(t,e,r){if(!r)return;var i=this.adaptor.getStyle(t,"transform");this.adaptor.setStyle(t,"transform","translate".concat(e,"(").concat(this.em(-r),")").concat(i?" "+i:""))};e.prototype.adjustBorder=function(t){if(this.thickness!==u.THICKNESS){this.adaptor.setStyle(t,"borderWidth",this.em(this.thickness))}return t};e.prototype.adjustThickness=function(t){if(this.thickness!==u.THICKNESS){this.adaptor.setStyle(t,"strokeWidth",this.fixed(this.thickness))}return t};e.prototype.fixed=function(t,e){if(e===void 0){e=3}if(Math.abs(t)<6e-4){return"0"}return t.toFixed(e).replace(/\.?0+$/,"")};e.prototype.em=function(e){return t.prototype.em.call(this,e)};e.kind=f.MmlMenclose.prototype.kind;e.styles={"mjx-menclose":{position:"relative"},"mjx-menclose > mjx-dstrike":{display:"inline-block",left:0,top:0,position:"absolute","border-top":u.SOLID,"transform-origin":"top left"},"mjx-menclose > mjx-ustrike":{display:"inline-block",left:0,bottom:0,position:"absolute","border-top":u.SOLID,"transform-origin":"bottom left"},"mjx-menclose > mjx-hstrike":{"border-top":u.SOLID,position:"absolute",left:0,right:0,bottom:"50%",transform:"translateY("+(0,p.em)(u.THICKNESS/2)+")"},"mjx-menclose > mjx-vstrike":{"border-left":u.SOLID,position:"absolute",top:0,bottom:0,right:"50%",transform:"translateX("+(0,p.em)(u.THICKNESS/2)+")"},"mjx-menclose > mjx-rbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:u.SOLID,"border-radius":(0,p.em)(u.THICKNESS+u.PADDING)},"mjx-menclose > mjx-cbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:u.SOLID,"border-radius":"50%"},"mjx-menclose > mjx-arrow":{position:"absolute",left:0,bottom:"50%",height:0,width:0},"mjx-menclose > mjx-arrow > *":{display:"block",position:"absolute","transform-origin":"bottom","border-left":(0,p.em)(u.THICKNESS*u.ARROWX)+" solid","border-right":0,"box-sizing":"border-box"},"mjx-menclose > mjx-arrow > mjx-aline":{left:0,top:(0,p.em)(-u.THICKNESS/2),right:(0,p.em)(u.THICKNESS*(u.ARROWX-1)),height:0,"border-top":(0,p.em)(u.THICKNESS)+" solid","border-left":0},"mjx-menclose > mjx-arrow[double] > mjx-aline":{left:(0,p.em)(u.THICKNESS*(u.ARROWX-1)),height:0},"mjx-menclose > mjx-arrow > mjx-rthead":{transform:"skewX("+y+"rad)",right:0,bottom:"-1px","border-bottom":"1px solid transparent","border-top":(0,p.em)(u.THICKNESS*u.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-rbhead":{transform:"skewX(-"+y+"rad)","transform-origin":"top",right:0,top:"-1px","border-top":"1px solid transparent","border-bottom":(0,p.em)(u.THICKNESS*u.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lthead":{transform:"skewX(-"+y+"rad)",left:0,bottom:"-1px","border-left":0,"border-right":(0,p.em)(u.THICKNESS*u.ARROWX)+" solid","border-bottom":"1px solid transparent","border-top":(0,p.em)(u.THICKNESS*u.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lbhead":{transform:"skewX("+y+"rad)","transform-origin":"top",left:0,top:"-1px","border-left":0,"border-right":(0,p.em)(u.THICKNESS*u.ARROWX)+" solid","border-top":"1px solid transparent","border-bottom":(0,p.em)(u.THICKNESS*u.ARROWY)+" solid transparent"},"mjx-menclose > dbox":{position:"absolute",top:0,bottom:0,left:(0,p.em)(-1.5*u.PADDING),width:(0,p.em)(3*u.PADDING),border:(0,p.em)(u.THICKNESS)+" solid","border-radius":"50%","clip-path":"inset(0 0 0 "+(0,p.em)(1.5*u.PADDING)+")","box-sizing":"border-box"}};e.notations=new Map([u.Border("top"),u.Border("right"),u.Border("bottom"),u.Border("left"),u.Border2("actuarial","top","right"),u.Border2("madruwb","bottom","right"),u.DiagonalStrike("up",1),u.DiagonalStrike("down",-1),["horizontalstrike",{renderer:u.RenderElement("hstrike","Y"),bbox:function(t){return[0,t.padding,0,t.padding]}}],["verticalstrike",{renderer:u.RenderElement("vstrike","X"),bbox:function(t){return[t.padding,0,t.padding,0]}}],["box",{renderer:function(t,e){t.adaptor.setStyle(e,"border",t.em(t.thickness)+" solid")},bbox:u.fullBBox,border:u.fullBorder,remove:"left right top bottom"}],["roundedbox",{renderer:u.RenderElement("rbox"),bbox:u.fullBBox}],["circle",{renderer:u.RenderElement("cbox"),bbox:u.fullBBox}],["phasorangle",{renderer:function(t,e){var r=t.getBBox(),i=r.h,n=r.d;var o=l(t.getArgMod(1.75*t.padding,i+n),2),a=o[0],s=o[1];var h=t.thickness*Math.sin(a)*.9;t.adaptor.setStyle(e,"border-bottom",t.em(t.thickness)+" solid");var c=t.adjustBorder(t.html("mjx-ustrike",{style:{width:t.em(s),transform:"translateX("+t.em(h)+") rotate("+t.fixed(-a)+"rad)"}}));t.adaptor.append(t.chtml,c)},bbox:function(t){var e=t.padding/2;var r=t.thickness;return[2*e,e,e+r,3*e+r]},border:function(t){return[0,0,t.thickness,0]},remove:"bottom"}],u.Arrow("up"),u.Arrow("down"),u.Arrow("left"),u.Arrow("right"),u.Arrow("updown"),u.Arrow("leftright"),u.DiagonalArrow("updiagonal"),u.DiagonalArrow("northeast"),u.DiagonalArrow("southeast"),u.DiagonalArrow("northwest"),u.DiagonalArrow("southwest"),u.DiagonalArrow("northeastsouthwest"),u.DiagonalArrow("northwestsoutheast"),["longdiv",{renderer:function(t,e){var r=t.adaptor;r.setStyle(e,"border-top",t.em(t.thickness)+" solid");var i=r.append(t.chtml,t.html("dbox"));var n=t.thickness;var o=t.padding;if(n!==u.THICKNESS){r.setStyle(i,"border-width",t.em(n))}if(o!==u.PADDING){r.setStyle(i,"left",t.em(-1.5*o));r.setStyle(i,"width",t.em(3*o));r.setStyle(i,"clip-path","inset(0 0 0 "+t.em(1.5*o)+")")}},bbox:function(t){var e=t.padding;var r=t.thickness;return[e+r,e,e,2*e+r/2]}}],["radical",{renderer:function(t,e){t.msqrt.toCHTML(e);var r=t.sqrtTRBL();t.adaptor.setStyle(t.msqrt.chtml,"margin",r.map((function(e){return t.em(-e)})).join(" "))},init:function(t){t.msqrt=t.createMsqrt(t.childNodes[0])},bbox:function(t){return t.sqrtTRBL()},renderChild:true}]]);return e}((0,c.CommonMencloseMixin)(h.CHTMLWrapper));e.CHTMLmenclose=v},91122:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmfenced=void 0;var n=r(44614);var o=r(36639);var a=r(54453);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.standardCHTMLnode(t);this.mrow.toCHTML(e)};e.kind=a.MmlMfenced.prototype.kind;return e}((0,o.CommonMfencedMixin)(n.CHTMLWrapper));e.CHTMLmfenced=s},79901:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__assign||function(){n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r *":{"font-size":"2000%"},"mjx-dbox":{display:"block","font-size":"5%"},"mjx-num":{display:"block","text-align":"center"},"mjx-den":{display:"block","text-align":"center"},"mjx-mfrac[bevelled] > mjx-num":{display:"inline-block"},"mjx-mfrac[bevelled] > mjx-den":{display:"inline-block"},'mjx-den[align="right"], mjx-num[align="right"]':{"text-align":"right"},'mjx-den[align="left"], mjx-num[align="left"]':{"text-align":"left"},"mjx-nstrut":{display:"inline-block",height:".054em",width:0,"vertical-align":"-.054em"},'mjx-nstrut[type="d"]':{height:".217em","vertical-align":"-.217em"},"mjx-dstrut":{display:"inline-block",height:".505em",width:0},'mjx-dstrut[type="d"]':{height:".726em"},"mjx-line":{display:"block","box-sizing":"border-box","min-height":"1px",height:".06em","border-top":".06em solid",margin:".06em -.1em",overflow:"hidden"},'mjx-line[type="d"]':{margin:".18em -.1em"}};return e}((0,a.CommonMfracMixin)(o.CHTMLWrapper));e.CHTMLmfrac=l},96672:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmglyph=void 0;var n=r(44614);var o=r(28656);var a=r(64906);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.standardCHTMLnode(t);if(this.charWrapper){this.charWrapper.toCHTML(e);return}var r=this.node.attributes.getList("src","alt"),i=r.src,n=r.alt;var o={width:this.em(this.width),height:this.em(this.height)};if(this.valign){o.verticalAlign=this.em(this.valign)}var a=this.html("img",{src:i,style:o,alt:n,title:n});this.adaptor.append(e,a)};e.kind=a.MmlMglyph.prototype.kind;e.styles={"mjx-mglyph > img":{display:"inline-block",border:0,padding:0}};return e}((0,o.CommonMglyphMixin)(n.CHTMLWrapper));e.CHTMLmglyph=s},2742:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmi=void 0;var n=r(44614);var o=r(54073);var a=r(32175);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=a.MmlMi.prototype.kind;return e}((0,o.CommonMiMixin)(n.CHTMLWrapper));e.CHTMLmi=s},84642:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmmultiscripts=void 0;var o=r(21279);var a=r(86539);var s=r(10093);var l=r(41278);var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.standardCHTMLnode(t);var r=this.scriptData;var i=this.node.getProperty("scriptalign")||"right left";var o=n((0,l.split)(i+" "+i),2),a=o[0],s=o[1];var h=this.combinePrePost(r.sub,r.psub);var c=this.combinePrePost(r.sup,r.psup);var u=n(this.getUVQ(h,c),2),f=u[0],p=u[1];if(r.numPrescripts){var d=this.addScripts(f,-p,true,r.psub,r.psup,this.firstPrescript,r.numPrescripts);a!=="right"&&this.adaptor.setAttribute(d,"script-align",a)}this.childNodes[0].toCHTML(e);if(r.numScripts){var d=this.addScripts(f,-p,false,r.sub,r.sup,1,r.numScripts);s!=="left"&&this.adaptor.setAttribute(d,"script-align",s)}};e.prototype.addScripts=function(t,e,r,i,n,o,a){var s=this.adaptor;var l=t-n.d+(e-i.h);var h=t<0&&e===0?i.h+t:t;var c=l>0?{style:{height:this.em(l)}}:{};var u=h?{style:{"vertical-align":this.em(h)}}:{};var f=this.html("mjx-row");var p=this.html("mjx-row",c);var d=this.html("mjx-row");var y="mjx-"+(r?"pre":"")+"scripts";var v=o+2*a;while(o mjx-row > mjx-cell":{"text-align":"right"},'[script-align="left"] > mjx-row > mjx-cell':{"text-align":"left"},'[script-align="center"] > mjx-row > mjx-cell':{"text-align":"center"},'[script-align="right"] > mjx-row > mjx-cell':{"text-align":"right"}};return e}((0,a.CommonMmultiscriptsMixin)(o.CHTMLmsubsup));e.CHTMLmmultiscripts=h},19255:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmn=void 0;var n=r(44614);var o=r(53228);var a=r(94318);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=a.MmlMn.prototype.kind;return e}((0,o.CommonMnMixin)(n.CHTMLWrapper));e.CHTMLmn=s},20480:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmo=void 0;var o=r(44614);var a=r(61331);var s=r(38669);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e,r;var i=this.node.attributes;var o=i.get("symmetric")&&this.stretch.dir!==2;var a=this.stretch.dir!==0;if(a&&this.size===null){this.getStretchedVariant([])}var s=this.standardCHTMLnode(t);if(a&&this.size<0){this.stretchHTML(s)}else{if(o||i.get("largeop")){var l=this.em(this.getCenterOffset());if(l!=="0"){this.adaptor.setStyle(s,"verticalAlign",l)}}if(this.node.getProperty("mathaccent")){this.adaptor.setStyle(s,"width","0");this.adaptor.setStyle(s,"margin-left",this.em(this.getAccentOffset()))}try{for(var h=n(this.childNodes),c=h.next();!c.done;c=h.next()){var u=c.value;u.toCHTML(s)}}catch(f){e={error:f}}finally{try{if(c&&!c.done&&(r=h.return))r.call(h)}finally{if(e)throw e.error}}}};e.prototype.stretchHTML=function(t){var e=this.getText().codePointAt(0);this.font.delimUsage.add(e);this.childNodes[0].markUsed();var r=this.stretch;var i=r.stretch;var n=[];if(i[0]){n.push(this.html("mjx-beg",{},[this.html("mjx-c")]))}n.push(this.html("mjx-ext",{},[this.html("mjx-c")]));if(i.length===4){n.push(this.html("mjx-mid",{},[this.html("mjx-c")]),this.html("mjx-ext",{},[this.html("mjx-c")]))}if(i[2]){n.push(this.html("mjx-end",{},[this.html("mjx-c")]))}var o={};var s=this.bbox,l=s.h,h=s.d,c=s.w;if(r.dir===1){n.push(this.html("mjx-mark"));o.height=this.em(l+h);o.verticalAlign=this.em(-h)}else{o.width=this.em(c)}var u=a.DirectionVH[r.dir];var f={class:this.char(r.c||e),style:o};var p=this.html("mjx-stretchy-"+u,f,n);this.adaptor.append(t,p)};e.kind=s.MmlMo.prototype.kind;e.styles={"mjx-stretchy-h":{display:"inline-table",width:"100%"},"mjx-stretchy-h > *":{display:"table-cell",width:0},"mjx-stretchy-h > * > mjx-c":{display:"inline-block",transform:"scalex(1.0000001)"},"mjx-stretchy-h > * > mjx-c::before":{display:"inline-block",width:"initial"},"mjx-stretchy-h > mjx-ext":{"/* IE */ overflow":"hidden","/* others */ overflow":"clip visible",width:"100%"},"mjx-stretchy-h > mjx-ext > mjx-c::before":{transform:"scalex(500)"},"mjx-stretchy-h > mjx-ext > mjx-c":{width:0},"mjx-stretchy-h > mjx-beg > mjx-c":{"margin-right":"-.1em"},"mjx-stretchy-h > mjx-end > mjx-c":{"margin-left":"-.1em"},"mjx-stretchy-v":{display:"inline-block"},"mjx-stretchy-v > *":{display:"block"},"mjx-stretchy-v > mjx-beg":{height:0},"mjx-stretchy-v > mjx-end > mjx-c":{display:"block"},"mjx-stretchy-v > * > mjx-c":{transform:"scaley(1.0000001)","transform-origin":"left center",overflow:"hidden"},"mjx-stretchy-v > mjx-ext":{display:"block",height:"100%","box-sizing":"border-box",border:"0px solid transparent","/* IE */ overflow":"hidden","/* others */ overflow":"visible clip"},"mjx-stretchy-v > mjx-ext > mjx-c::before":{width:"initial","box-sizing":"border-box"},"mjx-stretchy-v > mjx-ext > mjx-c":{transform:"scaleY(500) translateY(.075em)",overflow:"visible"},"mjx-mark":{display:"inline-block",height:"0px"}};return e}((0,a.CommonMoMixin)(o.CHTMLWrapper));e.CHTMLmo=l},38655:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmpadded=void 0;var a=r(44614);var s=r(95522);var l=r(10900);var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e,r;var i=this.standardCHTMLnode(t);var a=[];var s={};var l=n(this.getDimens(),9),h=l[2],c=l[3],u=l[4],f=l[5],p=l[6],d=l[7],y=l[8];if(f){s.width=this.em(h+f)}if(c||u){s.margin=this.em(c)+" 0 "+this.em(u)}if(p+y||d){s.position="relative";var v=this.html("mjx-rbox",{style:{left:this.em(p+y),top:this.em(-d),"max-width":s.width}});if(p+y&&this.childNodes[0].getBBox().pwidth){this.adaptor.setAttribute(v,"width","full");this.adaptor.setStyle(v,"left",this.em(p))}a.push(v)}i=this.adaptor.append(i,this.html("mjx-block",{style:s},a));try{for(var m=o(this.childNodes),b=m.next();!b.done;b=m.next()){var g=b.value;g.toCHTML(a[0]||i)}}catch(x){e={error:x}}finally{try{if(b&&!b.done&&(r=m.return))r.call(m)}finally{if(e)throw e.error}}};e.kind=l.MmlMpadded.prototype.kind;e.styles={"mjx-mpadded":{display:"inline-block"},"mjx-rbox":{display:"inline-block",position:"relative"}};return e}((0,s.CommonMpaddedMixin)(a.CHTMLWrapper));e.CHTMLmpadded=h},55501:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmroot=void 0;var o=r(55715);var a=r(23692);var s=r(96778);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.addRoot=function(t,e,r,i){e.toCHTML(t);var o=n(this.getRootDimens(r,i),3),a=o[0],s=o[1],l=o[2];this.adaptor.setStyle(t,"verticalAlign",this.em(s));this.adaptor.setStyle(t,"width",this.em(a));if(l){this.adaptor.setStyle(this.adaptor.firstChild(t),"paddingLeft",this.em(l))}};e.kind=s.MmlMroot.prototype.kind;return e}((0,a.CommonMrootMixin)(o.CHTMLmsqrt));e.CHTMLmroot=l},34021:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLinferredMrow=e.CHTMLmrow=void 0;var o=r(44614);var a=r(54114);var s=r(54114);var l=r(81364);var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e,r;var i=this.node.isInferred?this.chtml=t:this.standardCHTMLnode(t);var o=false;try{for(var a=n(this.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value;l.toCHTML(i);if(l.bbox.w<0){o=true}}}catch(c){e={error:c}}finally{try{if(s&&!s.done&&(r=a.return))r.call(a)}finally{if(e)throw e.error}}if(o){var h=this.getBBox().w;if(h){this.adaptor.setStyle(i,"width",this.em(Math.max(0,h)));if(h<0){this.adaptor.setStyle(i,"marginRight",this.em(h))}}}};e.kind=l.MmlMrow.prototype.kind;return e}((0,a.CommonMrowMixin)(o.CHTMLWrapper));e.CHTMLmrow=h;var c=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=l.MmlInferredMrow.prototype.kind;return e}((0,s.CommonInferredMrowMixin)(h));e.CHTMLinferredMrow=c},3428:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLms=void 0;var n=r(44614);var o=r(95151);var a=r(68313);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=a.MmlMs.prototype.kind;return e}((0,o.CommonMsMixin)(n.CHTMLWrapper));e.CHTMLms=s},91007:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmspace=void 0;var n=r(44614);var o=r(9572);var a=r(74394);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.standardCHTMLnode(t);var r=this.getBBox(),i=r.w,n=r.h,o=r.d;if(i<0){this.adaptor.setStyle(e,"marginRight",this.em(i));i=0}if(i){this.adaptor.setStyle(e,"width",this.em(i))}n=Math.max(0,n+o);if(n){this.adaptor.setStyle(e,"height",this.em(Math.max(0,n)))}if(o){this.adaptor.setStyle(e,"verticalAlign",this.em(-o))}};e.kind=a.MmlMspace.prototype.kind;return e}((0,o.CommonMspaceMixin)(n.CHTMLWrapper));e.CHTMLmspace=s},55715:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmsqrt=void 0;var o=r(44614);var a=r(33206);var s=r(24208);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.childNodes[this.surd];var r=this.childNodes[this.base];var i=e.getBBox();var o=r.getOuterBBox();var a=n(this.getPQ(i),2),s=a[1];var l=this.font.params.rule_thickness;var h=o.h+s+l;var c=this.standardCHTMLnode(t);var u,f,p,d;if(this.root!=null){p=this.adaptor.append(c,this.html("mjx-root"));d=this.childNodes[this.root]}var y=this.adaptor.append(c,this.html("mjx-sqrt",{},[u=this.html("mjx-surd"),f=this.html("mjx-box",{style:{paddingTop:this.em(s)}})]));this.addRoot(p,d,i,h);e.toCHTML(u);r.toCHTML(f);if(e.size<0){this.adaptor.addClass(y,"mjx-tall")}};e.prototype.addRoot=function(t,e,r,i){};e.kind=s.MmlMsqrt.prototype.kind;e.styles={"mjx-root":{display:"inline-block","white-space":"nowrap"},"mjx-surd":{display:"inline-block","vertical-align":"top"},"mjx-sqrt":{display:"inline-block","padding-top":".07em"},"mjx-sqrt > mjx-box":{"border-top":".07em solid"},"mjx-sqrt.mjx-tall > mjx-box":{"padding-left":".3em","margin-left":"-.3em"}};return e}((0,a.CommonMsqrtMixin)(o.CHTMLWrapper));e.CHTMLmsqrt=l},21279:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmsubsup=e.CHTMLmsup=e.CHTMLmsub=void 0;var o=r(98526);var a=r(64418);var s=r(64418);var l=r(64418);var h=r(12560);var c=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=h.MmlMsub.prototype.kind;return e}((0,a.CommonMsubMixin)(o.CHTMLscriptbase));e.CHTMLmsub=c;var u=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=h.MmlMsup.prototype.kind;return e}((0,s.CommonMsupMixin)(o.CHTMLscriptbase));e.CHTMLmsup=u;var f=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.adaptor;var r=this.standardCHTMLnode(t);var i=n([this.baseChild,this.supChild,this.subChild],3),o=i[0],a=i[1],s=i[2];var l=n(this.getUVQ(),3),h=l[1],c=l[2];var u={"vertical-align":this.em(h)};o.toCHTML(r);var f=e.append(r,this.html("mjx-script",{style:u}));a.toCHTML(f);e.append(f,this.html("mjx-spacer",{style:{"margin-top":this.em(c)}}));s.toCHTML(f);var p=this.getAdjustedIc();if(p){e.setStyle(a.chtml,"marginLeft",this.em(p/a.bbox.rscale))}if(this.baseRemoveIc){e.setStyle(f,"marginLeft",this.em(-this.baseIc))}};e.kind=h.MmlMsubsup.prototype.kind;e.styles={"mjx-script":{display:"inline-block","padding-right":".05em","padding-left":".033em"},"mjx-script > mjx-spacer":{display:"block"}};return e}((0,l.CommonMsubsupMixin)(o.CHTMLscriptbase));e.CHTMLmsubsup=f},46605:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmtable=void 0;var a=r(44614);var s=r(70078);var l=r(7840);var h=r(41278);var c=function(t){i(e,t);function e(e,r,i){if(i===void 0){i=null}var n=t.call(this,e,r,i)||this;n.itable=n.html("mjx-itable");n.labels=n.html("mjx-itable");return n}e.prototype.getAlignShift=function(){var e=t.prototype.getAlignShift.call(this);if(!this.isTop){e[1]=0}return e};e.prototype.toCHTML=function(t){var e,r;var i=this.standardCHTMLnode(t);this.adaptor.append(i,this.html("mjx-table",{},[this.itable]));try{for(var o=n(this.childNodes),a=o.next();!a.done;a=o.next()){var s=a.value;s.toCHTML(this.itable)}}catch(l){e={error:l}}finally{try{if(a&&!a.done&&(r=o.return))r.call(o)}finally{if(e)throw e.error}}this.padRows();this.handleColumnSpacing();this.handleColumnLines();this.handleColumnWidths();this.handleRowSpacing();this.handleRowLines();this.handleRowHeights();this.handleFrame();this.handleWidth();this.handleLabels();this.handleAlign();this.handleJustify();this.shiftColor()};e.prototype.shiftColor=function(){var t=this.adaptor;var e=t.getStyle(this.chtml,"backgroundColor");if(e){t.setStyle(this.chtml,"backgroundColor","");t.setStyle(this.itable,"backgroundColor",e)}};e.prototype.padRows=function(){var t,e;var r=this.adaptor;try{for(var i=n(r.childNodes(this.itable)),o=i.next();!o.done;o=i.next()){var a=o.value;while(r.childNodes(a).length1&&y!=="0.4em"||s&&u===1){this.adaptor.setStyle(m,"paddingLeft",y)}if(u1&&f!=="0.215em"||s&&l===1){this.adaptor.setStyle(v.chtml,"paddingTop",f)}if(l mjx-itable":{"vertical-align":"middle","text-align":"left","box-sizing":"border-box"},"mjx-labels > mjx-itable":{position:"absolute",top:0},'mjx-mtable[justify="left"]':{"text-align":"left"},'mjx-mtable[justify="right"]':{"text-align":"right"},'mjx-mtable[justify="left"][side="left"]':{"padding-right":"0 ! important"},'mjx-mtable[justify="left"][side="right"]':{"padding-left":"0 ! important"},'mjx-mtable[justify="right"][side="left"]':{"padding-right":"0 ! important"},'mjx-mtable[justify="right"][side="right"]':{"padding-left":"0 ! important"},"mjx-mtable[align]":{"vertical-align":"baseline"},'mjx-mtable[align="top"] > mjx-table':{"vertical-align":"top"},'mjx-mtable[align="bottom"] > mjx-table':{"vertical-align":"bottom"},'mjx-mtable[side="right"] mjx-labels':{"min-width":"100%"}};return e}((0,s.CommonMtableMixin)(a.CHTMLWrapper));e.CHTMLmtable=c},71937:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmtd=void 0;var n=r(44614);var o=r(8256);var a=r(94826);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);var r=this.node.attributes.get("rowalign");var i=this.node.attributes.get("columnalign");var n=this.parent.node.attributes.get("rowalign");if(r!==n){this.adaptor.setAttribute(this.chtml,"rowalign",r)}if(i!=="center"&&(this.parent.kind!=="mlabeledtr"||this!==this.parent.childNodes[0]||i!==this.parent.parent.node.attributes.get("side"))){this.adaptor.setStyle(this.chtml,"textAlign",i)}if(this.parent.parent.node.getProperty("useHeight")){this.adaptor.append(this.chtml,this.html("mjx-tstrut"))}};e.kind=a.MmlMtd.prototype.kind;e.styles={"mjx-mtd":{display:"table-cell","text-align":"center",padding:".215em .4em"},"mjx-mtd:first-child":{"padding-left":0},"mjx-mtd:last-child":{"padding-right":0},"mjx-mtable > * > mjx-itable > *:first-child > mjx-mtd":{"padding-top":0},"mjx-mtable > * > mjx-itable > *:last-child > mjx-mtd":{"padding-bottom":0},"mjx-tstrut":{display:"inline-block",height:"1em","vertical-align":"-.25em"},'mjx-labels[align="left"] > mjx-mtr > mjx-mtd':{"text-align":"left"},'mjx-labels[align="right"] > mjx-mtr > mjx-mtd':{"text-align":"right"},"mjx-mtd[extra]":{padding:0},'mjx-mtd[rowalign="top"]':{"vertical-align":"top"},'mjx-mtd[rowalign="center"]':{"vertical-align":"middle"},'mjx-mtd[rowalign="bottom"]':{"vertical-align":"bottom"},'mjx-mtd[rowalign="baseline"]':{"vertical-align":"baseline"},'mjx-mtd[rowalign="axis"]':{"vertical-align":".25em"}};return e}((0,o.CommonMtdMixin)(n.CHTMLWrapper));e.CHTMLmtd=s},79150:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmtext=void 0;var n=r(44614);var o=r(58267);var a=r(48765);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=a.MmlMtext.prototype.kind;return e}((0,o.CommonMtextMixin)(n.CHTMLWrapper));e.CHTMLmtext=s},42731:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmlabeledtr=e.CHTMLmtr=void 0;var n=r(44614);var o=r(8518);var a=r(8518);var s=r(79516);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);var r=this.node.attributes.get("rowalign");if(r!=="baseline"){this.adaptor.setAttribute(this.chtml,"rowalign",r)}};e.kind=s.MmlMtr.prototype.kind;e.styles={"mjx-mtr":{display:"table-row"},'mjx-mtr[rowalign="top"] > mjx-mtd':{"vertical-align":"top"},'mjx-mtr[rowalign="center"] > mjx-mtd':{"vertical-align":"middle"},'mjx-mtr[rowalign="bottom"] > mjx-mtd':{"vertical-align":"bottom"},'mjx-mtr[rowalign="baseline"] > mjx-mtd':{"vertical-align":"baseline"},'mjx-mtr[rowalign="axis"] > mjx-mtd':{"vertical-align":".25em"}};return e}((0,o.CommonMtrMixin)(n.CHTMLWrapper));e.CHTMLmtr=l;var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);var r=this.adaptor.firstChild(this.chtml);if(r){this.adaptor.remove(r);var i=this.node.attributes.get("rowalign");var n=i!=="baseline"&&i!=="axis"?{rowalign:i}:{};var o=this.html("mjx-mtr",n,[r]);this.adaptor.append(this.parent.labels,o)}};e.prototype.markUsed=function(){t.prototype.markUsed.call(this);this.jax.wrapperUsage.add(l.kind)};e.kind=s.MmlMlabeledtr.prototype.kind;e.styles={"mjx-mlabeledtr":{display:"table-row"},'mjx-mlabeledtr[rowalign="top"] > mjx-mtd':{"vertical-align":"top"},'mjx-mlabeledtr[rowalign="center"] > mjx-mtd':{"vertical-align":"middle"},'mjx-mlabeledtr[rowalign="bottom"] > mjx-mtd':{"vertical-align":"bottom"},'mjx-mlabeledtr[rowalign="baseline"] > mjx-mtd':{"vertical-align":"baseline"},'mjx-mlabeledtr[rowalign="axis"] > mjx-mtd':{"vertical-align":".25em"}};return e}((0,a.CommonMlabeledtrMixin)(l));e.CHTMLmlabeledtr=h},49821:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmunderover=e.CHTMLmover=e.CHTMLmunder=void 0;var n=r(21279);var o=r(62358);var a=r(62358);var s=r(62358);var l=r(46072);var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){if(this.hasMovableLimits()){t.prototype.toCHTML.call(this,e);this.adaptor.setAttribute(this.chtml,"limits","false");return}this.chtml=this.standardCHTMLnode(e);var r=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-row")),this.html("mjx-base"));var i=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-row")),this.html("mjx-under"));this.baseChild.toCHTML(r);this.scriptChild.toCHTML(i);var n=this.baseChild.getOuterBBox();var o=this.scriptChild.getOuterBBox();var a=this.getUnderKV(n,o)[0];var s=this.isLineBelow?0:this.getDelta(true);this.adaptor.setStyle(i,"paddingTop",this.em(a));this.setDeltaW([r,i],this.getDeltaW([n,o],[0,-s]));this.adjustUnderDepth(i,o)};e.kind=l.MmlMunder.prototype.kind;e.styles={"mjx-over":{"text-align":"left"},'mjx-munder:not([limits="false"])':{display:"inline-table"},"mjx-munder > mjx-row":{"text-align":"left"},"mjx-under":{"padding-bottom":".1em"}};return e}((0,o.CommonMunderMixin)(n.CHTMLmsub));e.CHTMLmunder=h;var c=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){if(this.hasMovableLimits()){t.prototype.toCHTML.call(this,e);this.adaptor.setAttribute(this.chtml,"limits","false");return}this.chtml=this.standardCHTMLnode(e);var r=this.adaptor.append(this.chtml,this.html("mjx-over"));var i=this.adaptor.append(this.chtml,this.html("mjx-base"));this.scriptChild.toCHTML(r);this.baseChild.toCHTML(i);var n=this.scriptChild.getOuterBBox();var o=this.baseChild.getOuterBBox();this.adjustBaseHeight(i,o);var a=this.getOverKU(o,n)[0];var s=this.isLineAbove?0:this.getDelta();this.adaptor.setStyle(r,"paddingBottom",this.em(a));this.setDeltaW([i,r],this.getDeltaW([o,n],[0,s]));this.adjustOverDepth(r,n)};e.kind=l.MmlMover.prototype.kind;e.styles={'mjx-mover:not([limits="false"])':{"padding-top":".1em"},'mjx-mover:not([limits="false"]) > *':{display:"block","text-align":"left"}};return e}((0,a.CommonMoverMixin)(n.CHTMLmsup));e.CHTMLmover=c;var u=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){if(this.hasMovableLimits()){t.prototype.toCHTML.call(this,e);this.adaptor.setAttribute(this.chtml,"limits","false");return}this.chtml=this.standardCHTMLnode(e);var r=this.adaptor.append(this.chtml,this.html("mjx-over"));var i=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-box")),this.html("mjx-munder"));var n=this.adaptor.append(this.adaptor.append(i,this.html("mjx-row")),this.html("mjx-base"));var o=this.adaptor.append(this.adaptor.append(i,this.html("mjx-row")),this.html("mjx-under"));this.overChild.toCHTML(r);this.baseChild.toCHTML(n);this.underChild.toCHTML(o);var a=this.overChild.getOuterBBox();var s=this.baseChild.getOuterBBox();var l=this.underChild.getOuterBBox();this.adjustBaseHeight(n,s);var h=this.getOverKU(s,a)[0];var c=this.getUnderKV(s,l)[0];var u=this.getDelta();this.adaptor.setStyle(r,"paddingBottom",this.em(h));this.adaptor.setStyle(o,"paddingTop",this.em(c));this.setDeltaW([n,o,r],this.getDeltaW([s,l,a],[0,this.isLineBelow?0:-u,this.isLineAbove?0:u]));this.adjustOverDepth(r,a);this.adjustUnderDepth(o,l)};e.prototype.markUsed=function(){t.prototype.markUsed.call(this);this.jax.wrapperUsage.add(n.CHTMLmsubsup.kind)};e.kind=l.MmlMunderover.prototype.kind;e.styles={'mjx-munderover:not([limits="false"])':{"padding-top":".1em"},'mjx-munderover:not([limits="false"]) > *':{display:"block"}};return e}((0,s.CommonMunderoverMixin)(n.CHTMLmsubsup));e.CHTMLmunderover=u},98526:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLscriptbase=void 0;var a=r(44614);var s=r(82197);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){this.chtml=this.standardCHTMLnode(t);var e=n(this.getOffset(),2),r=e[0],i=e[1];var o=r-(this.baseRemoveIc?this.baseIc:0);var a={"vertical-align":this.em(i)};if(o){a["margin-left"]=this.em(o)}this.baseChild.toCHTML(this.chtml);this.scriptChild.toCHTML(this.adaptor.append(this.chtml,this.html("mjx-script",{style:a})))};e.prototype.setDeltaW=function(t,e){for(var r=0;r=0)return;this.adaptor.setStyle(t,"marginBottom",this.em(e.d*e.rscale))};e.prototype.adjustUnderDepth=function(t,e){var r,i;if(e.d>=0)return;var n=this.adaptor;var a=this.em(e.d);var s=this.html("mjx-box",{style:{"margin-bottom":a,"vertical-align":a}});try{for(var l=o(n.childNodes(n.firstChild(t))),h=l.next();!h.done;h=l.next()){var c=h.value;n.append(s,c)}}catch(u){r={error:u}}finally{try{if(h&&!h.done&&(i=l.return))i.call(l)}finally{if(r)throw r.error}}n.append(n.firstChild(t),s)};e.prototype.adjustBaseHeight=function(t,e){if(this.node.attributes.get("accent")){var r=this.font.params.x_height*e.scale;if(e.h0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CommonArrow=e.CommonDiagonalArrow=e.CommonDiagonalStrike=e.CommonBorder2=e.CommonBorder=e.arrowBBox=e.diagonalArrowDef=e.arrowDef=e.arrowBBoxW=e.arrowBBoxHD=e.arrowHead=e.fullBorder=e.fullPadding=e.fullBBox=e.sideNames=e.sideIndex=e.SOLID=e.PADDING=e.THICKNESS=e.ARROWY=e.ARROWDX=e.ARROWX=void 0;e.ARROWX=4,e.ARROWDX=1,e.ARROWY=2;e.THICKNESS=.067;e.PADDING=.2;e.SOLID=e.THICKNESS+"em solid";e.sideIndex={top:0,right:1,bottom:2,left:3};e.sideNames=Object.keys(e.sideIndex);e.fullBBox=function(t){return new Array(4).fill(t.thickness+t.padding)};e.fullPadding=function(t){return new Array(4).fill(t.padding)};e.fullBorder=function(t){return new Array(4).fill(t.thickness)};var i=function(t){return Math.max(t.padding,t.thickness*(t.arrowhead.x+t.arrowhead.dx+1))};e.arrowHead=i;var n=function(t,e){if(t.childNodes[0]){var r=t.childNodes[0].getBBox(),i=r.h,n=r.d;e[0]=e[2]=Math.max(0,t.thickness*t.arrowhead.y-(i+n)/2)}return e};e.arrowBBoxHD=n;var o=function(t,e){if(t.childNodes[0]){var r=t.childNodes[0].getBBox().w;e[1]=e[3]=Math.max(0,t.thickness*t.arrowhead.y-r/2)}return e};e.arrowBBoxW=o;e.arrowDef={up:[-Math.PI/2,false,true,"verticalstrike"],down:[Math.PI/2,false,true,"verticakstrike"],right:[0,false,false,"horizontalstrike"],left:[Math.PI,false,false,"horizontalstrike"],updown:[Math.PI/2,true,true,"verticalstrike uparrow downarrow"],leftright:[0,true,false,"horizontalstrike leftarrow rightarrow"]};e.diagonalArrowDef={updiagonal:[-1,0,false,"updiagonalstrike northeastarrow"],northeast:[-1,0,false,"updiagonalstrike updiagonalarrow"],southeast:[1,0,false,"downdiagonalstrike"],northwest:[1,Math.PI,false,"downdiagonalstrike"],southwest:[-1,Math.PI,false,"updiagonalstrike"],northeastsouthwest:[-1,0,true,"updiagonalstrike northeastarrow updiagonalarrow southwestarrow"],northwestsoutheast:[1,0,true,"downdiagonalstrike northwestarrow southeastarrow"]};e.arrowBBox={up:function(t){return(0,e.arrowBBoxW)(t,[(0,e.arrowHead)(t),0,t.padding,0])},down:function(t){return(0,e.arrowBBoxW)(t,[t.padding,0,(0,e.arrowHead)(t),0])},right:function(t){return(0,e.arrowBBoxHD)(t,[0,(0,e.arrowHead)(t),0,t.padding])},left:function(t){return(0,e.arrowBBoxHD)(t,[0,t.padding,0,(0,e.arrowHead)(t)])},updown:function(t){return(0,e.arrowBBoxW)(t,[(0,e.arrowHead)(t),0,(0,e.arrowHead)(t),0])},leftright:function(t){return(0,e.arrowBBoxHD)(t,[0,(0,e.arrowHead)(t),0,(0,e.arrowHead)(t)])}};var a=function(t){return function(r){var i=e.sideIndex[r];return[r,{renderer:t,bbox:function(t){var e=[0,0,0,0];e[i]=t.thickness+t.padding;return e},border:function(t){var e=[0,0,0,0];e[i]=t.thickness;return e}}]}};e.CommonBorder=a;var s=function(t){return function(r,i,n){var o=e.sideIndex[i];var a=e.sideIndex[n];return[r,{renderer:t,bbox:function(t){var e=t.thickness+t.padding;var r=[0,0,0,0];r[o]=r[a]=e;return r},border:function(t){var e=[0,0,0,0];e[o]=e[a]=t.thickness;return e},remove:i+" "+n}]}};e.CommonBorder2=s;var l=function(t){return function(r){var i="mjx-"+r.charAt(0)+"strike";return[r+"diagonalstrike",{renderer:t(i),bbox:e.fullBBox}]}};e.CommonDiagonalStrike=l;var h=function(t){return function(i){var n=r(e.diagonalArrowDef[i],4),o=n[0],a=n[1],s=n[2],l=n[3];return[i+"arrow",{renderer:function(e,i){var n=r(e.arrowAW(),2),l=n[0],h=n[1];var c=e.arrow(h,o*(l-a),s);t(e,c)},bbox:function(t){var e=t.arrowData(),i=e.a,n=e.x,o=e.y;var a=r([t.arrowhead.x,t.arrowhead.y,t.arrowhead.dx],3),s=a[0],l=a[1],h=a[2];var c=r(t.getArgMod(s+h,l),2),u=c[0],f=c[1];var p=o+(u>i?t.thickness*f*Math.sin(u-i):0);var d=n+(u>Math.PI/2-i?t.thickness*f*Math.sin(u+i-Math.PI/2):0);return[p,d,p,d]},remove:l}]}};e.CommonDiagonalArrow=h;var c=function(t){return function(i){var n=r(e.arrowDef[i],4),o=n[0],a=n[1],s=n[2],l=n[3];return[i+"arrow",{renderer:function(e,i){var n=e.getBBox(),l=n.w,h=n.h,c=n.d;var u=r(s?[h+c,"X"]:[l,"Y"],2),f=u[0],p=u[1];var d=e.getOffset(p);var y=e.arrow(f,o,a,p,d);t(e,y)},bbox:e.arrowBBox[i],remove:l}]}};e.CommonArrow=c},12222:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__assign||function(){n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var a=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonOutputJax=void 0;var s=r(63380);var l=r(24971);var h=r(34981);var c=r(86810);var u=r(24161);var f=r(14454);var p=function(t){i(e,t);function e(e,r,i){if(e===void 0){e=null}if(r===void 0){r=null}if(i===void 0){i=null}var n=this;var a=o((0,h.separateOptions)(e,i.OPTIONS),2),s=a[0],l=a[1];n=t.call(this,s)||this;n.factory=n.options.wrapperFactory||new r;n.factory.jax=n;n.cssStyles=n.options.cssStyles||new f.CssStyles;n.font=n.options.font||new i(l);n.unknownCache=new Map;return n}e.prototype.typeset=function(t,e){this.setDocument(e);var r=this.createNode();this.toDOM(t,r,e);return r};e.prototype.createNode=function(){var t=this.constructor.NAME;return this.html("mjx-container",{class:"MathJax",jax:t})};e.prototype.setScale=function(t){var e=this.math.metrics.scale*this.options.scale;if(e!==1){this.adaptor.setStyle(t,"fontSize",(0,c.percent)(e))}};e.prototype.toDOM=function(t,e,r){if(r===void 0){r=null}this.setDocument(r);this.math=t;this.pxPerEm=t.metrics.ex/this.font.params.x_height;t.root.setTeXclass(null);this.setScale(e);this.nodeMap=new Map;this.container=e;this.processMath(t.root,e);this.nodeMap=null;this.executeFilters(this.postFilters,t,r,e)};e.prototype.getBBox=function(t,e){this.setDocument(e);this.math=t;t.root.setTeXclass(null);this.nodeMap=new Map;var r=this.factory.wrap(t.root).getOuterBBox();this.nodeMap=null;return r};e.prototype.getMetrics=function(t){var e,r;this.setDocument(t);var i=this.adaptor;var n=this.getMetricMaps(t);try{for(var o=a(t.math),s=o.next();!s.done;s=o.next()){var h=s.value;var c=i.parent(h.start.node);if(h.state()=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var l=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var h=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i600?"bold":"normal"}if(i.family){r=this.explicitVariant(i.family,i.weight,i.style)}else{if(this.node.getProperty("variantForm"))r="-tex-variant";r=(e.BOLDVARIANTS[i.weight]||{})[r]||r;r=(e.ITALICVARIANTS[i.style]||{})[r]||r}}this.variant=r};e.prototype.explicitVariant=function(t,e,r){var i=this.styles;if(!i)i=this.styles=new d.Styles;i.set("fontFamily",t);if(e)i.set("fontWeight",e);if(r)i.set("fontStyle",r);return"-explicitFont"};e.prototype.getScale=function(){var t=1,e=this.parent;var r=e?e.bbox.scale:1;var i=this.node.attributes;var n=Math.min(i.get("scriptlevel"),2);var o=i.get("fontsize");var a=this.node.isToken||this.node.isKind("mstyle")?i.get("mathsize"):i.getInherited("mathsize");if(n!==0){t=Math.pow(i.get("scriptsizemultiplier"),n);var s=this.length2em(i.get("scriptminsize"),.8,1);if(t0;this.bbox.L=i.isSet("lspace")?Math.max(0,this.length2em(i.get("lspace"))):b(n,t.lspace);this.bbox.R=i.isSet("rspace")?Math.max(0,this.length2em(i.get("rspace"))):b(n,t.rspace);var o=r.childIndex(e);if(o===0)return;var a=r.childNodes[o-1];if(!a.isEmbellished)return;var s=this.jax.nodeMap.get(a).getBBox();if(s.R){this.bbox.L=Math.max(0,this.bbox.L-s.R)}};e.prototype.getTeXSpacing=function(t,e){if(!e){var r=this.node.texSpacing();if(r){this.bbox.L=this.length2em(r)}}if(t||e){var i=this.node.coreMO().attributes;if(i.isSet("lspace")){this.bbox.L=Math.max(0,this.length2em(i.get("lspace")))}if(i.isSet("rspace")){this.bbox.R=Math.max(0,this.length2em(i.get("rspace")))}}};e.prototype.isTopEmbellished=function(){return this.node.isEmbellished&&!(this.node.parent&&this.node.parent.isEmbellished)};e.prototype.core=function(){return this.jax.nodeMap.get(this.node.core())};e.prototype.coreMO=function(){return this.jax.nodeMap.get(this.node.coreMO())};e.prototype.getText=function(){var t,e;var r="";if(this.node.isToken){try{for(var i=s(this.node.childNodes),n=i.next();!n.done;n=i.next()){var o=n.value;if(o instanceof u.TextNode){r+=o.getText()}}}catch(a){t={error:a}}finally{try{if(n&&!n.done&&(e=i.return))e.call(i)}finally{if(t)throw t.error}}}return r};e.prototype.canStretch=function(t){this.stretch=v.NOSTRETCH;if(this.node.isEmbellished){var e=this.core();if(e&&e.node!==this.node){if(e.canStretch(t)){this.stretch=e.stretch}}}return this.stretch.dir!==0};e.prototype.getAlignShift=function(){var t;var e=(t=this.node.attributes).getList.apply(t,h([],l(u.indentAttributes),false)),r=e.indentalign,i=e.indentshift,n=e.indentalignfirst,o=e.indentshiftfirst;if(n!=="indentalign"){r=n}if(r==="auto"){r=this.jax.options.displayAlign}if(o!=="indentshift"){i=o}if(i==="auto"){i=this.jax.options.displayIndent;if(r==="right"&&!i.match(/^\s*0[a-z]*\s*$/)){i=("-"+i.trim()).replace(/^--/,"")}}var a=this.length2em(i,this.metrics.containerWidth);return[r,a]};e.prototype.getAlignX=function(t,e,r){return r==="right"?t-(e.w+e.R)*e.rscale:r==="left"?e.L*e.rscale:(t-e.w*e.rscale)/2};e.prototype.getAlignY=function(t,e,r,i,n){return n==="top"?t-r:n==="bottom"?i-e:n==="center"?(t-r-(e-i))/2:0};e.prototype.getWrapWidth=function(t){return this.childNodes[t].getBBox().w};e.prototype.getChildAlign=function(t){return"left"};e.prototype.percent=function(t){return p.percent(t)};e.prototype.em=function(t){return p.em(t)};e.prototype.px=function(t,e){if(e===void 0){e=-p.BIGDIMEN}return p.px(t,e,this.metrics.em)};e.prototype.length2em=function(t,e,r){if(e===void 0){e=1}if(r===void 0){r=null}if(r===null){r=this.bbox.scale}return p.length2em(t,e,r,this.jax.pxPerEm)};e.prototype.unicodeChars=function(t,e){if(e===void 0){e=this.variant}var r=(0,f.unicodeChars)(t);var i=this.font.getVariant(e);if(i&&i.chars){var n=i.chars;r=r.map((function(t){return((n[t]||[])[3]||{}).smp||t}))}return r};e.prototype.remapChars=function(t){return t};e.prototype.mmlText=function(t){return this.node.factory.create("text").setText(t)};e.prototype.mmlNode=function(t,e,r){if(e===void 0){e={}}if(r===void 0){r=[]}return this.node.factory.create(t,e,r)};e.prototype.createMo=function(t){var e=this.node.factory;var r=e.create("text").setText(t);var i=e.create("mo",{stretchy:true},[r]);i.inheritAttributesFrom(this.node);var n=this.wrap(i);n.parent=this;return n};e.prototype.getVariantChar=function(t,e){var r=this.font.getChar(t,e)||[0,0,0,{unknown:true}];if(r.length===3){r[3]={}}return r};e.kind="unknown";e.styles={};e.removeStyles=["fontSize","fontFamily","fontWeight","fontStyle","fontVariant","font"];e.skipAttributes={fontfamily:true,fontsize:true,fontweight:true,fontstyle:true,color:true,background:true,class:true,href:true,style:true,xmlns:true};e.BOLDVARIANTS={bold:{normal:"bold",italic:"bold-italic",fraktur:"bold-fraktur",script:"bold-script","sans-serif":"bold-sans-serif","sans-serif-italic":"sans-serif-bold-italic"},normal:{bold:"normal","bold-italic":"italic","bold-fraktur":"fraktur","bold-script":"script","bold-sans-serif":"sans-serif","sans-serif-bold-italic":"sans-serif-italic"}};e.ITALICVARIANTS={italic:{normal:"italic",bold:"bold-italic","sans-serif":"sans-serif-italic","bold-sans-serif":"sans-serif-bold-italic"},normal:{italic:"normal","bold-italic":"bold","sans-serif-italic":"sans-serif","sans-serif-bold-italic":"bold-sans-serif"}};return e}(c.AbstractWrapper);e.CommonWrapper=g},36483:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonWrapperFactory=void 0;var n=r(49294);var o=function(t){i(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.jax=null;return e}Object.defineProperty(e.prototype,"Wrappers",{get:function(){return this.node},enumerable:false,configurable:true});e.defaultNodes={};return e}(n.AbstractWrapperFactory);e.CommonWrapperFactory=o},65735:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonTeXAtomMixin=void 0;var n=r(80747);function o(t){return function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.computeBBox=function(e,r){if(r===void 0){r=false}t.prototype.computeBBox.call(this,e,r);if(this.childNodes[0]&&this.childNodes[0].bbox.ic){e.ic=this.childNodes[0].bbox.ic}if(this.node.texClass===n.TEXCLASS.VCENTER){var i=e.h,o=e.d;var a=this.font.params.axis_height;var s=(i+o)/2+a-i;e.h+=s;e.d-=s}};return e}(t)}e.CommonTeXAtomMixin=o},87120:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var i=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CommonTextNodeMixin=void 0;function o(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.computeBBox=function(t,e){var r,o;if(e===void 0){e=false}var a=this.parent.variant;var s=this.node.getText();if(a==="-explicitFont"){var l=this.jax.getFontData(this.parent.styles);var h=this.jax.measureText(s,a,l),c=h.w,u=h.h,f=h.d;t.h=u;t.d=f;t.w=c}else{var p=this.remappedText(s,a);t.empty();try{for(var d=i(p),y=d.next();!y.done;y=d.next()){var v=y.value;var m=n(this.getVariantChar(a,v),4),u=m[0],f=m[1],c=m[2],b=m[3];if(b.unknown){var g=this.jax.measureText(String.fromCodePoint(v),a);c=g.w;u=g.h;f=g.d}t.w+=c;if(u>t.h)t.h=u;if(f>t.d)t.d=f;t.ic=b.ic||0;t.sk=b.sk||0;t.dx=b.dx||0}}catch(x){r={error:x}}finally{try{if(y&&!y.done&&(o=d.return))o.call(d)}finally{if(r)throw r.error}}if(p.length>1){t.sk=0}t.clean()}};e.prototype.remappedText=function(t,e){var r=this.parent.stretch.c;return r?[r]:this.parent.remapChars(this.unicodeChars(t,e))};e.prototype.getStyles=function(){};e.prototype.getVariant=function(){};e.prototype.getScale=function(){};e.prototype.getSpace=function(){};return e}(t)}e.CommonTextNodeMixin=o},55210:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var l=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonMencloseMixin=void 0;var c=a(r(37626));var u=r(41278);function f(t){return function(t){i(e,t);function e(){var e=[];for(var r=0;r.001?a:0};e.prototype.getArgMod=function(t,e){return[Math.atan2(e,t),Math.sqrt(t*t+e*e)]};e.prototype.arrow=function(t,e,r,i,n){if(i===void 0){i=""}if(n===void 0){n=0}return null};e.prototype.arrowData=function(){var t=s([this.padding,this.thickness],2),e=t[0],r=t[1];var i=r*(this.arrowhead.x+Math.max(1,this.arrowhead.dx));var n=this.childNodes[0].getBBox(),o=n.h,a=n.d,l=n.w;var h=o+a;var c=Math.sqrt(h*h+l*l);var u=Math.max(e,i*l/c);var f=Math.max(e,i*h/c);var p=s(this.getArgMod(l+2*u,h+2*f),2),d=p[0],y=p[1];return{a:d,W:y,x:u,y:f}};e.prototype.arrowAW=function(){var t=this.childNodes[0].getBBox(),e=t.h,r=t.d,i=t.w;var n=s(this.TRBL,4),o=n[0],a=n[1],l=n[2],h=n[3];return this.getArgMod(h+i+a,o+e+r+l)};e.prototype.createMsqrt=function(t){var e=this.node.factory;var r=e.create("msqrt");r.inheritAttributesFrom(this.node);r.childNodes[0]=t.node;var i=this.wrap(r);i.parent=this;return i};e.prototype.sqrtTRBL=function(){var t=this.msqrt.getBBox();var e=this.msqrt.childNodes[0].getBBox();return[t.h-e.h,0,t.d-e.d,t.w-e.w]};return e}(t)}e.CommonMencloseMixin=f},36639:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonMfencedMixin=void 0;function a(t){return function(t){r(e,t);function e(){var e=[];for(var r=0;r0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonMmultiscriptsMixin=e.ScriptNames=e.NextScript=void 0;var s=r(58340);e.NextScript={base:"subList",subList:"supList",supList:"subList",psubList:"psupList",psupList:"psubList"};e.ScriptNames=["sup","sup","psup","psub"];function l(t){return function(t){i(r,t);function r(){var e=[];for(var r=0;re.length){e.push(s.BBox.empty())}};r.prototype.combineBBoxLists=function(t,e,r,i){for(var o=0;ot.h)t.h=l;if(h>t.d)t.d=h;if(f>e.h)e.h=f;if(p>e.d)e.d=p}};r.prototype.getScaledWHD=function(t){var e=t.w,r=t.h,i=t.d,n=t.rscale;return[e*n,r*n,i*n]};r.prototype.getUVQ=function(e,r){var i;if(!this.UVQ){var o=n([0,0,0],3),a=o[0],s=o[1],l=o[2];if(e.h===0&&e.d===0){a=this.getU()}else if(r.h===0&&r.d===0){a=-this.getV()}else{i=n(t.prototype.getUVQ.call(this,e,r),3),a=i[0],s=i[1],l=i[2]}this.UVQ=[a,s,l]}return this.UVQ};return r}(t)}e.CommonMmultiscriptsMixin=l},53228:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonMnMixin=void 0;function i(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.remapChars=function(t){if(t.length){var e=this.font.getRemappedChar("mn",t[0]);if(e){var r=this.unicodeChars(e,this.variant);if(r.length===1){t[0]=r[0]}else{t=r.concat(t.slice(1))}}}return t};return e}(t)}e.CommonMnMixin=i},61331:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__assign||function(){n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var a=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var l;Object.defineProperty(e,"__esModule",{value:true});e.CommonMoMixin=e.DirectionVH=void 0;var h=r(58340);var c=r(41278);var u=r(30861);e.DirectionVH=(l={},l[1]="v",l[2]="h",l);function f(t){return function(t){i(e,t);function e(){var e=[];for(var r=0;r=0)){t.w=0}};e.prototype.protoBBox=function(e){var r=this.stretch.dir!==0;if(r&&this.size===null){this.getStretchedVariant([0])}if(r&&this.size<0)return;t.prototype.computeBBox.call(this,e);this.copySkewIC(e)};e.prototype.getAccentOffset=function(){var t=h.BBox.empty();this.protoBBox(t);return-t.w/2};e.prototype.getCenterOffset=function(e){if(e===void 0){e=null}if(!e){e=h.BBox.empty();t.prototype.computeBBox.call(this,e)}return(e.h+e.d)/2+this.font.params.axis_height-e.h};e.prototype.getVariant=function(){if(this.node.attributes.get("largeop")){this.variant=this.node.attributes.get("displaystyle")?"-largeop":"-smallop";return}if(!this.node.attributes.getExplicit("mathvariant")&&this.node.getProperty("pseudoscript")===false){this.variant="-tex-variant";return}t.prototype.getVariant.call(this)};e.prototype.canStretch=function(t){if(this.stretch.dir!==0){return this.stretch.dir===t}var e=this.node.attributes;if(!e.get("stretchy"))return false;var r=this.getText();if(Array.from(r).length!==1)return false;var i=this.font.getDelimiter(r.codePointAt(0));this.stretch=i&&i.dir===t?i:u.NOSTRETCH;return this.stretch.dir!==0};e.prototype.getStretchedVariant=function(t,e){var r,i;if(e===void 0){e=false}if(this.stretch.dir!==0){var o=this.getWH(t);var a=this.getSize("minsize",0);var l=this.getSize("maxsize",Infinity);var h=this.node.getProperty("mathaccent");o=Math.max(a,Math.min(l,o));var c=this.font.params.delimiterfactor/1e3;var u=this.font.params.delimitershortfall;var f=a||e?o:h?Math.min(o/c,o+u):Math.max(o*c,o-u);var p=this.stretch;var d=p.c||this.getText().codePointAt(0);var y=0;if(p.sizes){try{for(var v=s(p.sizes),m=v.next();!m.done;m=v.next()){var b=m.value;if(b>=f){if(h&&y){y--}this.variant=this.font.getSizeVariant(d,y);this.size=y;if(p.schar&&p.schar[y]){this.stretch=n(n({},this.stretch),{c:p.schar[y]})}return}y++}}catch(g){r={error:g}}finally{try{if(m&&!m.done&&(i=v.return))i.call(v)}finally{if(r)throw r.error}}}if(p.stretch){this.size=-1;this.invalidateBBox();this.getStretchBBox(t,this.checkExtendedHeight(o,p),p)}else{this.variant=this.font.getSizeVariant(d,y-1);this.size=y-1}}};e.prototype.getSize=function(t,e){var r=this.node.attributes;if(r.isSet(t)){e=this.length2em(r.get(t),1,1)}return e};e.prototype.getWH=function(t){if(t.length===0)return 0;if(t.length===1)return t[0];var e=o(t,2),r=e[0],i=e[1];var n=this.font.params.axis_height;return this.node.attributes.get("symmetric")?2*Math.max(r-n,i+n):r+i};e.prototype.getStretchBBox=function(t,e,r){var i;if(r.hasOwnProperty("min")&&r.min>e){e=r.min}var n=o(r.HDW,3),a=n[0],s=n[1],l=n[2];if(this.stretch.dir===1){i=o(this.getBaseline(t,e,r),2),a=i[0],s=i[1]}else{l=e}this.bbox.h=a;this.bbox.d=s;this.bbox.w=l};e.prototype.getBaseline=function(t,e,r){var i=t.length===2&&t[0]+t[1]===e;var n=this.node.attributes.get("symmetric");var a=o(i?t:[e,0],2),s=a[0],l=a[1];var h=o([s+l,0],2),c=h[0],u=h[1];if(n){var f=this.font.params.axis_height;if(i){c=2*Math.max(s-f,l+f)}u=c/2-f}else if(i){u=l}else{var p=o(r.HDW||[.75,.25],2),d=p[0],y=p[1];u=y*(c/(d+y))}return[c-u,u]};e.prototype.checkExtendedHeight=function(t,e){if(e.fullExt){var r=o(e.fullExt,2),i=r[0],n=r[1];var a=Math.ceil(Math.max(0,t-n)/i);t=n+a*i}return t};e.prototype.remapChars=function(t){var e=this.node.getProperty("primes");if(e){return(0,c.unicodeChars)(e)}if(t.length===1){var r=this.node.coreParent().parent;var i=this.isAccent&&!r.isKind("mrow");var n=i?"accent":"mo";var o=this.font.getRemappedChar(n,t[0]);if(o){t=this.unicodeChars(o,this.variant)}}return t};return e}(t)}e.CommonMoMixin=f},95522:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CommonMpaddedMixin=void 0;function n(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.getDimens=function(){var t=this.node.attributes.getList("width","height","depth","lspace","voffset");var e=this.childNodes[0].getBBox();var r=e.w,i=e.h,n=e.d;var o=r,a=i,s=n,l=0,h=0,c=0;if(t.width!=="")r=this.dimen(t.width,e,"w",0);if(t.height!=="")i=this.dimen(t.height,e,"h",0);if(t.depth!=="")n=this.dimen(t.depth,e,"d",0);if(t.voffset!=="")h=this.dimen(t.voffset,e);if(t.lspace!=="")l=this.dimen(t.lspace,e);var u=this.node.attributes.get("data-align");if(u){c=this.getAlignX(r,e,u)}return[a,s,o,i-a,n-s,r-o,l,h,c]};e.prototype.dimen=function(t,e,r,i){if(r===void 0){r=""}if(i===void 0){i=null}t=String(t);var n=t.match(/width|height|depth/);var o=n?e[n[0].charAt(0)]:r?e[r]:0;var a=this.length2em(t,o)||0;if(t.match(/^[-+]/)&&r){a+=o}if(i!=null){a=Math.max(i,a)}return a};e.prototype.computeBBox=function(t,e){if(e===void 0){e=false}var r=i(this.getDimens(),6),n=r[0],o=r[1],a=r[2],s=r[3],l=r[4],h=r[5];t.w=a+h;t.h=n+s;t.d=o+l;this.setChildPWidths(e,t.w)};e.prototype.getWrapWidth=function(t){return this.getBBox().w};e.prototype.getChildAlign=function(t){return this.node.attributes.get("data-align")||"left"};return e}(t)}e.CommonMpaddedMixin=n},23692:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonMrootMixin=void 0;function i(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"surd",{get:function(){return 2},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"root",{get:function(){return 1},enumerable:false,configurable:true});e.prototype.combineRootBBox=function(t,e,r){var i=this.childNodes[this.root].getOuterBBox();var n=this.getRootDimens(e,r)[1];t.combine(i,0,n)};e.prototype.getRootDimens=function(t,e){var r=this.childNodes[this.surd];var i=this.childNodes[this.root].getOuterBBox();var n=(r.size<0?.5:.6)*t.w;var o=i.w,a=i.rscale;var s=Math.max(o,n/a);var l=Math.max(0,s-o);var h=this.rootHeight(i,t,r.size,e);var c=s*a-n;return[c,h,l]};e.prototype.rootHeight=function(t,e,r,i){var n=e.h+e.d;var o=(r<0?1.9:.55*n)-(n-i);return o+Math.max(0,t.d*t.rscale)};return e}(t)}e.CommonMrootMixin=i},54114:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonInferredMrowMixin=e.CommonMrowMixin=void 0;var s=r(58340);function l(t){return function(t){i(e,t);function e(){var e,r;var i=[];for(var l=0;l1){var p=0,d=0;var y=u>1&&u===f;try{for(var v=a(this.childNodes),m=v.next();!m.done;m=v.next()){var c=m.value;var b=c.stretch.dir===0;if(y||b){var g=c.getOuterBBox(b),x=g.h,w=g.d,_=g.rscale;x*=_;w*=_;if(x>p)p=x;if(w>d)d=w}}}catch(S){r={error:S}}finally{try{if(m&&!m.done&&(i=v.return))i.call(v)}finally{if(r)throw r.error}}try{for(var M=a(s),j=M.next();!j.done;j=M.next()){var c=j.value;c.coreMO().getStretchedVariant([p,d])}}catch(O){n={error:O}}finally{try{if(j&&!j.done&&(o=M.return))o.call(M)}finally{if(n)throw n.error}}}};return e}(t)}e.CommonMrowMixin=l;function h(t){return function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.getScale=function(){this.bbox.scale=this.parent.bbox.scale;this.bbox.rscale=1};return e}(t)}e.CommonInferredMrowMixin=h},95151:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;ithis.surdH?(t.h+t.d-(this.surdH-2*e-r/2))/2:e+r/4;return[r,i]};e.prototype.getRootDimens=function(t,e){return[0,0,0,0]};return e}(t)}e.CommonMsqrtMixin=s},64418:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CommonMsubsupMixin=e.CommonMsupMixin=e.CommonMsubMixin=void 0;function n(t){var e;return e=function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.sub]},enumerable:false,configurable:true});e.prototype.getOffset=function(){return[0,-this.getV()]};return e}(t),e.useIC=false,e}e.CommonMsubMixin=n;function o(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.sup]},enumerable:false,configurable:true});e.prototype.getOffset=function(){var t=this.getAdjustedIc()-(this.baseRemoveIc?0:this.baseIc);return[t,this.getU()]};return e}(t)}e.CommonMsupMixin=o;function a(t){var e;return e=function(t){r(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.UVQ=null;return e}Object.defineProperty(e.prototype,"subChild",{get:function(){return this.childNodes[this.node.sub]},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"supChild",{get:function(){return this.childNodes[this.node.sup]},enumerable:false,configurable:true});e.prototype.computeBBox=function(t,e){if(e===void 0){e=false}var r=this.baseChild.getOuterBBox();var n=i([this.subChild.getOuterBBox(),this.supChild.getOuterBBox()],2),o=n[0],a=n[1];t.empty();t.append(r);var s=this.getBaseWidth();var l=this.getAdjustedIc();var h=i(this.getUVQ(),2),c=h[0],u=h[1];t.combine(o,s,u);t.combine(a,s+l,c);t.w+=this.font.params.scriptspace;t.clean();this.setChildPWidths(e)};e.prototype.getUVQ=function(t,e){if(t===void 0){t=this.subChild.getOuterBBox()}if(e===void 0){e=this.supChild.getOuterBBox()}var r=this.baseCore.getOuterBBox();if(this.UVQ)return this.UVQ;var n=this.font.params;var o=3*n.rule_thickness;var a=this.length2em(this.node.attributes.get("subscriptshift"),n.sub2);var s=this.baseCharZero(r.d*this.baseScale+n.sub_drop*t.rscale);var l=i([this.getU(),Math.max(s,a)],2),h=l[0],c=l[1];var u=h-e.d*e.rscale-(t.h*t.rscale-c);if(u0){h+=f;c-=f}}h=Math.max(this.length2em(this.node.attributes.get("superscriptshift"),h),h);c=Math.max(this.length2em(this.node.attributes.get("subscriptshift"),c),c);u=h-e.d*e.rscale-(t.h*t.rscale-c);this.UVQ=[h,-c,u];return this.UVQ};return e}(t),e.useIC=false,e}e.CommonMsubsupMixin=a},70078:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonMtableMixin=void 0;var s=r(58340);var l=r(41278);var h=r(19468);function c(t){return function(t){i(e,t);function e(){var e=[];for(var r=0;r1){if(e===null){e=0;var m=y>1&&y===v;try{for(var b=a(this.tableRows),g=b.next();!g.done;g=b.next()){var f=g.value;var p=f.getChild(t);if(p){var d=p.childNodes[0];var x=d.stretch.dir===0;if(m||x){var w=d.getBBox(x).w;if(w>e){e=w}}}}}catch(C){n={error:C}}finally{try{if(g&&!g.done&&(o=b.return))o.call(b)}finally{if(n)throw n.error}}}try{for(var _=a(h),M=_.next();!M.done;M=_.next()){var d=M.value;d.coreMO().getStretchedVariant([e])}}catch(S){s={error:S}}finally{try{if(M&&!M.done&&(l=_.return))l.call(_)}finally{if(s)throw s.error}}}};e.prototype.getTableData=function(){if(this.data){return this.data}var t=new Array(this.numRows).fill(0);var e=new Array(this.numRows).fill(0);var r=new Array(this.numCols).fill(0);var i=new Array(this.numRows);var n=new Array(this.numRows);var o=[0];var a=this.tableRows;for(var s=0;sn[r])n[r]=h;if(c>o[r])o[r]=c;if(p>s)s=p;if(a&&u>a[e])a[e]=u;return s};e.prototype.extendHD=function(t,e,r,i){var n=(i-(e[t]+r[t]))/2;if(n<1e-5)return;e[t]+=n;r[t]+=n};e.prototype.recordPWidthCell=function(t,e){if(t.childNodes[0]&&t.childNodes[0].getBBox().pwidth){this.pwidthCells.push([t,e])}};e.prototype.computeBBox=function(t,e){if(e===void 0){e=false}var r=this.getTableData(),i=r.H,o=r.D;var a,s;if(this.node.attributes.get("equalrows")){var c=this.getEqualRowHeight();a=(0,h.sum)([].concat(this.rLines,this.rSpace))+c*this.numRows}else{a=(0,h.sum)(i.concat(o,this.rLines,this.rSpace))}a+=2*(this.fLine+this.fSpace[1]);var u=this.getComputedWidths();s=(0,h.sum)(u.concat(this.cLines,this.cSpace))+2*(this.fLine+this.fSpace[0]);var f=this.node.attributes.get("width");if(f!=="auto"){s=Math.max(this.length2em(f,0)+2*this.fLine,s)}var p=n(this.getBBoxHD(a),2),d=p[0],y=p[1];t.h=d;t.d=y;t.w=s;var v=n(this.getBBoxLR(),2),m=v[0],b=v[1];t.L=m;t.R=b;if(!(0,l.isPercent)(f)){this.setColumnPWidths()}};e.prototype.setChildPWidths=function(t,e,r){var i=this.node.attributes.get("width");if(!(0,l.isPercent)(i))return false;if(!this.hasLabels){this.bbox.pwidth="";this.container.bbox.pwidth=""}var n=this.bbox,o=n.w,a=n.L,s=n.R;var c=this.node.attributes.get("data-width-includes-label");var u=Math.max(o,this.length2em(i,Math.max(e,a+o+s)))-(c?a+s:0);var f=this.node.attributes.get("equalcolumns")?Array(this.numCols).fill(this.percent(1/Math.max(1,this.numCols))):this.getColumnAttributes("columnwidth",0);this.cWidths=this.getColumnWidthsFixed(f,u);var p=this.getComputedWidths();this.pWidth=(0,h.sum)(p.concat(this.cLines,this.cSpace))+2*(this.fLine+this.fSpace[0]);if(this.isTop){this.bbox.w=this.pWidth}this.setColumnPWidths();if(this.pWidth!==o){this.parent.invalidateBBox()}return this.pWidth!==o};e.prototype.setColumnPWidths=function(){var t,e;var r=this.cWidths;try{for(var i=a(this.pwidthCells),o=i.next();!o.done;o=i.next()){var s=n(o.value,2),l=s[0],h=s[1];if(l.setChildPWidths(false,r[h])){l.invalidateBBox();l.getBBox()}}}catch(c){t={error:c}}finally{try{if(o&&!o.done&&(e=i.return))e.call(i)}finally{if(t)throw t.error}}};e.prototype.getBBoxHD=function(t){var e=n(this.getAlignmentRow(),2),r=e[0],i=e[1];if(i===null){var o=this.font.params.axis_height;var a=t/2;var s={top:[0,t],center:[a,a],bottom:[t,0],baseline:[a,a],axis:[a+o,a-o]};return s[r]||[a,a]}else{var l=this.getVerticalPosition(i,r);return[l,t-l]}};e.prototype.getBBoxLR=function(){if(this.hasLabels){var t=this.node.attributes;var e=t.get("side");var r=n(this.getPadAlignShift(e),2),i=r[0],o=r[1];var a=this.hasLabels&&!!t.get("data-width-includes-label");if(a&&this.frame&&this.fSpace[0]){i-=this.fSpace[0]}return o==="center"&&!a?[i,i]:e==="left"?[i,0]:[0,i]}return[0,0]};e.prototype.getPadAlignShift=function(t){var e=this.getTableData().L;var r=this.length2em(this.node.attributes.get("minlabelspacing"));var i=e+r;var o=n(this.styles==null?["",""]:[this.styles.get("padding-left"),this.styles.get("padding-right")],2),a=o[0],s=o[1];if(a||s){i=Math.max(i,this.length2em(a||"0"),this.length2em(s||"0"))}var l=n(this.getAlignShift(),2),h=l[0],c=l[1];if(h===t){c=t==="left"?Math.max(i,c)-i:Math.min(-i,c)+i}return[i,h,c]};e.prototype.getAlignShift=function(){return this.isTop?t.prototype.getAlignShift.call(this):[this.container.getChildAlign(this.containerI),0]};e.prototype.getWidth=function(){return this.pWidth||this.getBBox().w};e.prototype.getEqualRowHeight=function(){var t=this.getTableData(),e=t.H,r=t.D;var i=Array.from(e.keys()).map((function(t){return e[t]+r[t]}));return Math.max.apply(Math,i)};e.prototype.getComputedWidths=function(){var t=this;var e=this.getTableData().W;var r=Array.from(e.keys()).map((function(r){return typeof t.cWidths[r]==="number"?t.cWidths[r]:e[r]}));if(this.node.attributes.get("equalcolumns")){r=Array(r.length).fill((0,h.max)(r))}return r};e.prototype.getColumnWidths=function(){var t=this.node.attributes.get("width");if(this.node.attributes.get("equalcolumns")){return this.getEqualColumns(t)}var e=this.getColumnAttributes("columnwidth",0);if(t==="auto"){return this.getColumnWidthsAuto(e)}if((0,l.isPercent)(t)){return this.getColumnWidthsPercent(e)}return this.getColumnWidthsFixed(e,this.length2em(t))};e.prototype.getEqualColumns=function(t){var e=Math.max(1,this.numCols);var r;if(t==="auto"){var i=this.getTableData().W;r=(0,h.max)(i)}else if((0,l.isPercent)(t)){r=this.percent(1/e)}else{var n=(0,h.sum)([].concat(this.cLines,this.cSpace))+2*this.fSpace[0];r=Math.max(0,this.length2em(t)-n)/e}return Array(this.numCols).fill(r)};e.prototype.getColumnWidthsAuto=function(t){var e=this;return t.map((function(t){if(t==="auto"||t==="fit")return null;if((0,l.isPercent)(t))return t;return e.length2em(t)}))};e.prototype.getColumnWidthsPercent=function(t){var e=this;var r=t.indexOf("fit")>=0;var i=(r?this.getTableData():{W:null}).W;return Array.from(t.keys()).map((function(n){var o=t[n];if(o==="fit")return null;if(o==="auto")return r?i[n]:null;if((0,l.isPercent)(o))return o;return e.length2em(o)}))};e.prototype.getColumnWidthsFixed=function(t,e){var r=this;var i=Array.from(t.keys());var n=i.filter((function(e){return t[e]==="fit"}));var o=i.filter((function(e){return t[e]==="auto"}));var a=n.length||o.length;var s=(a?this.getTableData():{W:null}).W;var l=e-(0,h.sum)([].concat(this.cLines,this.cSpace))-2*this.fSpace[0];var c=l;i.forEach((function(e){var i=t[e];c-=i==="fit"||i==="auto"?s[e]:r.length2em(i,l)}));var u=a&&c>0?c/a:0;return i.map((function(e){var i=t[e];if(i==="fit")return s[e]+u;if(i==="auto")return s[e]+(n.length===0?u:0);return r.length2em(i,l)}))};e.prototype.getVerticalPosition=function(t,e){var r=this.node.attributes.get("equalrows");var i=this.getTableData(),o=i.H,a=i.D;var s=r?this.getEqualRowHeight():0;var l=this.getRowHalfSpacing();var h=this.fLine;for(var c=0;cthis.numRows?null:i-1]};e.prototype.getColumnAttributes=function(t,e){if(e===void 0){e=1}var r=this.numCols-e;var i=this.getAttributeArray(t);if(i.length===0)return null;while(i.lengthr){i.splice(r)}return i};e.prototype.getRowAttributes=function(t,e){if(e===void 0){e=1}var r=this.numRows-e;var i=this.getAttributeArray(t);if(i.length===0)return null;while(i.lengthr){i.splice(r)}return i};e.prototype.getAttributeArray=function(t){var e=this.node.attributes.get(t);if(!e)return[this.node.attributes.getDefault(t)];return(0,l.split)(e)};e.prototype.addEm=function(t,e){var r=this;if(e===void 0){e=1}if(!t)return null;return t.map((function(t){return r.em(t/e)}))};e.prototype.convertLengths=function(t){var e=this;if(!t)return null;return t.map((function(t){return e.length2em(t)}))};return e}(t)}e.CommonMtableMixin=c},8256:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonMtdMixin=void 0;function i(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return false},enumerable:false,configurable:true});e.prototype.invalidateBBox=function(){this.bboxComputed=false};e.prototype.getWrapWidth=function(t){var e=this.parent.parent;var r=this.parent;var i=this.node.childPosition()-(r.labeled?1:0);return typeof e.cWidths[i]==="number"?e.cWidths[i]:e.getTableData().W[i]};e.prototype.getChildAlign=function(t){return this.node.attributes.get("columnalign")};return e}(t)}e.CommonMtdMixin=i},58267:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonMtextMixin=void 0;function i(t){var e;return e=function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.getVariant=function(){var e=this.jax.options;var r=this.jax.math.outputData;var i=(!!r.merrorFamily||!!e.merrorFont)&&this.node.Parent.isKind("merror");if(!!r.mtextFamily||!!e.mtextFont||i){var n=this.node.attributes.get("mathvariant");var o=this.constructor.INHERITFONTS[n]||this.jax.font.getCssFont(n);var a=o[0]||(i?r.merrorFamily||e.merrorFont:r.mtextFamily||e.mtextFont);this.variant=this.explicitVariant(a,o[2]?"bold":"",o[1]?"italic":"");return}t.prototype.getVariant.call(this)};return e}(t),e.INHERITFONTS={normal:["",false,false],bold:["",false,true],italic:["",true,false],"bold-italic":["",true,true]},e}e.CommonMtextMixin=i},8518:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var i=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonMlabeledtrMixin=e.CommonMtrMixin=void 0;function n(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"numCells",{get:function(){return this.childNodes.length},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"labeled",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"tableCells",{get:function(){return this.childNodes},enumerable:false,configurable:true});e.prototype.getChild=function(t){return this.childNodes[t]};e.prototype.getChildBBoxes=function(){return this.childNodes.map((function(t){return t.getBBox()}))};e.prototype.stretchChildren=function(t){var e,r,n,o,a,s;if(t===void 0){t=null}var l=[];var h=this.labeled?this.childNodes.slice(1):this.childNodes;try{for(var c=i(h),u=c.next();!u.done;u=c.next()){var f=u.value;var p=f.childNodes[0];if(p.canStretch(1)){l.push(p)}}}catch(O){e={error:O}}finally{try{if(u&&!u.done&&(r=c.return))r.call(c)}finally{if(e)throw e.error}}var d=l.length;var y=this.childNodes.length;if(d&&y>1){if(t===null){var v=0,m=0;var b=d>1&&d===y;try{for(var g=i(h),x=g.next();!x.done;x=g.next()){var f=x.value;var p=f.childNodes[0];var w=p.stretch.dir===0;if(b||w){var _=p.getBBox(w),M=_.h,j=_.d;if(M>v){v=M}if(j>m){m=j}}}}catch(T){n={error:T}}finally{try{if(x&&!x.done&&(o=g.return))o.call(g)}finally{if(n)throw n.error}}t=[v,m]}try{for(var C=i(l),S=C.next();!S.done;S=C.next()){var p=S.value;p.coreMO().getStretchedVariant(t)}}catch(B){a={error:B}}finally{try{if(S&&!S.done&&(s=C.return))s.call(C)}finally{if(a)throw a.error}}}};return e}(t)}e.CommonMtrMixin=n;function o(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"numCells",{get:function(){return Math.max(0,this.childNodes.length-1)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"labeled",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"tableCells",{get:function(){return this.childNodes.slice(1)},enumerable:false,configurable:true});e.prototype.getChild=function(t){return this.childNodes[t+1]};e.prototype.getChildBBoxes=function(){return this.childNodes.slice(1).map((function(t){return t.getBBox()}))};return e}(t)}e.CommonMlabeledtrMixin=o},62358:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonScriptbaseMixin=void 0;var s=r(80747);function l(t){var e;return e=function(t){i(e,t);function e(){var e=[];for(var r=0;r1){var p=0;var d=u>1&&u===f;try{for(var y=a(this.childNodes),v=y.next();!v.done;v=y.next()){var c=v.value;var m=c.stretch.dir===0;if(d||m){var b=c.getOuterBBox(m),g=b.w,x=b.rscale;if(g*x>p)p=g*x}}}catch(j){r={error:j}}finally{try{if(v&&!v.done&&(i=y.return))i.call(y)}finally{if(r)throw r.error}}try{for(var w=a(s),_=w.next();!_.done;_=w.next()){var c=_.value;c.coreMO().getStretchedVariant([p/c.bbox.rscale])}}catch(C){n={error:C}}finally{try{if(_&&!_.done&&(o=w.return))o.call(w)}finally{if(n)throw n.error}}}};return e}(t),e.useIC=true,e}e.CommonScriptbaseMixin=l},32482:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonSemanticsMixin=void 0;function i(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.computeBBox=function(t,e){if(e===void 0){e=false}if(this.childNodes.length){var r=this.childNodes[0].getBBox(),i=r.w,n=r.h,o=r.d;t.w=i;t.h=n;t.d=o}};return e}(t)}e.CommonSemanticsMixin=i},58340:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.BBox=void 0;var i=r(86810);var n=function(){function t(t){if(t===void 0){t={w:0,h:-i.BIGDIMEN,d:-i.BIGDIMEN}}this.w=t.w||0;this.h="h"in t?t.h:-i.BIGDIMEN;this.d="d"in t?t.d:-i.BIGDIMEN;this.L=this.R=this.ic=this.sk=this.dx=0;this.scale=this.rscale=1;this.pwidth=""}t.zero=function(){return new t({h:0,d:0,w:0})};t.empty=function(){return new t};t.prototype.empty=function(){this.w=0;this.h=this.d=-i.BIGDIMEN;return this};t.prototype.clean=function(){if(this.w===-i.BIGDIMEN)this.w=0;if(this.h===-i.BIGDIMEN)this.h=0;if(this.d===-i.BIGDIMEN)this.d=0};t.prototype.rescale=function(t){this.w*=t;this.h*=t;this.d*=t};t.prototype.combine=function(t,e,r){if(e===void 0){e=0}if(r===void 0){r=0}var i=t.rscale;var n=e+i*(t.w+t.L+t.R);var o=r+i*t.h;var a=i*t.d-r;if(n>this.w)this.w=n;if(o>this.h)this.h=o;if(a>this.d)this.d=a};t.prototype.append=function(t){var e=t.rscale;this.w+=e*(t.w+t.L+t.R);if(e*t.h>this.h){this.h=e*t.h}if(e*t.d>this.d){this.d=e*t.d}};t.prototype.updateFrom=function(t){this.h=t.h;this.d=t.d;this.w=t.w;if(t.pwidth){this.pwidth=t.pwidth}};t.fullWidth="100%";t.StyleAdjust=[["borderTopWidth","h"],["borderRightWidth","w"],["borderBottomWidth","d"],["borderLeftWidth","w",0],["paddingTop","h"],["paddingRight","w"],["paddingBottom","d"],["paddingLeft","w",0]];return t}();e.BBox=n},43899:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var a=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i{Object.defineProperty(e,"__esModule",{value:true});e.PrioritizedList=void 0;var r=function(){function t(){this.items=[];this.items=[]}t.prototype[Symbol.iterator]=function(){var t=0;var e=this.items;return{next:function(){return{value:e[t++],done:t>e.length}}}};t.prototype.add=function(e,r){if(r===void 0){r=t.DEFAULTPRIORITY}var i=this.items.length;do{i--}while(i>=0&&r=0&&this.items[e].item!==t);if(e>=0){this.items.splice(e,1)}};t.DEFAULTPRIORITY=5;return t}();e.PrioritizedList=r},14454:function(t,e){var r=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CssStyles=void 0;var i=function(){function t(t){if(t===void 0){t=null}this.styles={};this.addStyles(t)}Object.defineProperty(t.prototype,"cssText",{get:function(){return this.getStyleString()},enumerable:false,configurable:true});t.prototype.addStyles=function(t){var e,i;if(!t)return;try{for(var n=r(Object.keys(t)),o=n.next();!o.done;o=n.next()){var a=o.value;if(!this.styles[a]){this.styles[a]={}}Object.assign(this.styles[a],t[a])}}catch(s){e={error:s}}finally{try{if(o&&!o.done&&(i=n.return))i.call(n)}finally{if(e)throw e.error}}};t.prototype.removeStyles=function(){var t,e;var i=[];for(var n=0;n=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i1){e.shift();r.push(e.shift())}return r}function l(t){var e,i;var n=s(this.styles[t]);if(n.length===0){n.push("")}if(n.length===1){n.push(n[0])}if(n.length===2){n.push(n[0])}if(n.length===3){n.push(n[1])}try{for(var o=r(g.connect[t].children),a=o.next();!a.done;a=o.next()){var l=a.value;this.setStyle(this.childName(t,l),n.shift())}}catch(h){e={error:h}}finally{try{if(a&&!a.done&&(i=o.return))i.call(o)}finally{if(e)throw e.error}}}function h(t){var e,i;var n=g.connect[t].children;var o=[];try{for(var a=r(n),s=a.next();!s.done;s=a.next()){var l=s.value;var h=this.styles[t+"-"+l];if(!h){delete this.styles[t];return}o.push(h)}}catch(c){e={error:c}}finally{try{if(s&&!s.done&&(i=a.return))i.call(a)}finally{if(e)throw e.error}}if(o[3]===o[1]){o.pop();if(o[2]===o[0]){o.pop();if(o[1]===o[0]){o.pop()}}}this.styles[t]=o.join(" ")}function c(t){var e,i;try{for(var n=r(g.connect[t].children),o=n.next();!o.done;o=n.next()){var a=o.value;this.setStyle(this.childName(t,a),this.styles[t])}}catch(s){e={error:s}}finally{try{if(o&&!o.done&&(i=n.return))i.call(n)}finally{if(e)throw e.error}}}function u(t){var e,o;var a=n([],i(g.connect[t].children),false);var s=this.styles[this.childName(t,a.shift())];try{for(var l=r(a),h=l.next();!h.done;h=l.next()){var c=h.value;if(this.styles[this.childName(t,c)]!==s){delete this.styles[t];return}}}catch(u){e={error:u}}finally{try{if(h&&!h.done&&(o=l.return))o.call(l)}finally{if(e)throw e.error}}this.styles[t]=s}var f={width:/^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/,style:/^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/};function p(t){var e,i,n,o;var a={width:"",style:"",color:""};try{for(var l=r(s(this.styles[t])),h=l.next();!h.done;h=l.next()){var c=h.value;if(c.match(f.width)&&a.width===""){a.width=c}else if(c.match(f.style)&&a.style===""){a.style=c}else{a.color=c}}}catch(y){e={error:y}}finally{try{if(h&&!h.done&&(i=l.return))i.call(l)}finally{if(e)throw e.error}}try{for(var u=r(g.connect[t].children),p=u.next();!p.done;p=u.next()){var d=p.value;this.setStyle(this.childName(t,d),a[d])}}catch(v){n={error:v}}finally{try{if(p&&!p.done&&(o=u.return))o.call(u)}finally{if(n)throw n.error}}}function d(t){var e,i;var n=[];try{for(var o=r(g.connect[t].children),a=o.next();!a.done;a=o.next()){var s=a.value;var l=this.styles[this.childName(t,s)];if(l){n.push(l)}}}catch(h){e={error:h}}finally{try{if(a&&!a.done&&(i=o.return))i.call(o)}finally{if(e)throw e.error}}if(n.length){this.styles[t]=n.join(" ")}else{delete this.styles[t]}}var y={style:/^(?:normal|italic|oblique|inherit|initial|unset)$/,variant:new RegExp("^(?:"+["normal|none","inherit|initial|unset","common-ligatures|no-common-ligatures","discretionary-ligatures|no-discretionary-ligatures","historical-ligatures|no-historical-ligatures","contextual|no-contextual","(?:stylistic|character-variant|swash|ornaments|annotation)\\([^)]*\\)","small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","lining-nums|oldstyle-nums|proportional-nums|tabular-nums","diagonal-fractions|stacked-fractions","ordinal|slashed-zero","jis78|jis83|jis90|jis04|simplified|traditional","full-width|proportional-width","ruby"].join("|")+")$"),weight:/^(?:normal|bold|bolder|lighter|[1-9]00|inherit|initial|unset)$/,stretch:new RegExp("^(?:"+["normal","(?:(?:ultra|extra|semi)-)?condensed","(?:(?:semi|extra|ulta)-)?expanded","inherit|initial|unset"].join("|")+")$"),size:new RegExp("^(?:"+["xx-small|x-small|small|medium|large|x-large|xx-large|larger|smaller","[d.]+%|[d.]+[a-z]+","inherit|initial|unset"].join("|")+")"+"(?:/(?:normal|[d.+](?:%|[a-z]+)?))?$")};function v(t){var e,n,o,a;var l=s(this.styles[t]);var h={style:"",variant:[],weight:"",stretch:"",size:"",family:"","line-height":""};try{for(var c=r(l),u=c.next();!u.done;u=c.next()){var f=u.value;h.family=f;try{for(var p=(o=void 0,r(Object.keys(y))),d=p.next();!d.done;d=p.next()){var v=d.value;if((Array.isArray(h[v])||h[v]==="")&&f.match(y[v])){if(v==="size"){var b=i(f.split(/\//),2),g=b[0],x=b[1];h[v]=g;if(x){h["line-height"]=x}}else if(h.size===""){if(Array.isArray(h[v])){h[v].push(f)}else{h[v]=f}}}}}catch(w){o={error:w}}finally{try{if(d&&!d.done&&(a=p.return))a.call(p)}finally{if(o)throw o.error}}}}catch(_){e={error:_}}finally{try{if(u&&!u.done&&(n=c.return))n.call(c)}finally{if(e)throw e.error}}m(t,h);delete this.styles[t]}function m(t,e){var i,n;try{for(var o=r(g.connect[t].children),a=o.next();!a.done;a=o.next()){var s=a.value;var l=this.childName(t,s);if(Array.isArray(e[s])){var h=e[s];if(h.length){this.styles[l]=h.join(" ")}}else if(e[s]!==""){this.styles[l]=e[s]}}}catch(c){i={error:c}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(i)throw i.error}}}function b(t){}var g=function(){function t(t){if(t===void 0){t=""}this.parse(t)}Object.defineProperty(t.prototype,"cssText",{get:function(){var t,e;var i=[];try{for(var n=r(Object.keys(this.styles)),o=n.next();!o.done;o=n.next()){var a=o.value;var s=this.parentName(a);if(!this.styles[s]){i.push(a+": "+this.styles[a]+";")}}}catch(l){t={error:l}}finally{try{if(o&&!o.done&&(e=n.return))e.call(n)}finally{if(t)throw t.error}}return i.join(" ")},enumerable:false,configurable:true});t.prototype.set=function(e,r){e=this.normalizeName(e);this.setStyle(e,r);if(t.connect[e]&&!t.connect[e].combine){this.combineChildren(e);delete this.styles[e]}while(e.match(/-/)){e=this.parentName(e);if(!t.connect[e])break;t.connect[e].combine.call(this,e)}};t.prototype.get=function(t){t=this.normalizeName(t);return this.styles.hasOwnProperty(t)?this.styles[t]:""};t.prototype.setStyle=function(e,r){this.styles[e]=r;if(t.connect[e]&&t.connect[e].children){t.connect[e].split.call(this,e)}if(r===""){delete this.styles[e]}};t.prototype.combineChildren=function(e){var i,n;var o=this.parentName(e);try{for(var a=r(t.connect[e].children),s=a.next();!s.done;s=a.next()){var l=s.value;var h=this.childName(o,l);t.connect[h].combine.call(this,h)}}catch(c){i={error:c}}finally{try{if(s&&!s.done&&(n=a.return))n.call(a)}finally{if(i)throw i.error}}};t.prototype.parentName=function(t){var e=t.replace(/-[^-]*$/,"");return t===e?"":e};t.prototype.childName=function(e,r){if(r.match(/-/)){return r}if(t.connect[e]&&!t.connect[e].combine){r+=e.replace(/.*-/,"-");e=this.parentName(e)}return e+"-"+r};t.prototype.normalizeName=function(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}))};t.prototype.parse=function(t){if(t===void 0){t=""}var e=this.constructor.pattern;this.styles={};var r=t.replace(e.comment,"").split(e.style);while(r.length>1){var n=i(r.splice(0,3),3),o=n[0],a=n[1],s=n[2];if(o.match(/[^\s\n]/))return;this.set(a,s)}};t.pattern={style:/([-a-z]+)[\s\n]*:[\s\n]*((?:'[^']*'|"[^"]*"|\n|.)*?)[\s\n]*(?:;|$)/g,comment:/\/\*[^]*?\*\//g};t.connect={padding:{children:o,split:l,combine:h},border:{children:o,split:c,combine:u},"border-top":{children:a,split:p,combine:d},"border-right":{children:a,split:p,combine:d},"border-bottom":{children:a,split:p,combine:d},"border-left":{children:a,split:p,combine:d},"border-width":{children:o,split:l,combine:null},"border-style":{children:o,split:l,combine:null},"border-color":{children:o,split:l,combine:null},font:{children:["style","variant","weight","stretch","line-height","size","family"],split:v,combine:b}};return t}();e.Styles=g},19468:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.max=e.sum=void 0;function r(t){return t.reduce((function(t,e){return t+e}),0)}e.sum=r;function i(t){return t.reduce((function(t,e){return Math.max(t,e)}),0)}e.max=i}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4323.b2bd8a329a81d30ed039.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4323.b2bd8a329a81d30ed039.js new file mode 100644 index 0000000000000000000000000000000000000000..96d37f490f4e6f341825eadcefe63176b2634dd3 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4323.b2bd8a329a81d30ed039.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4323],{24323:(r,e,t)=>{t.r(e);t.d(e,{rpmChanges:()=>c,rpmSpec:()=>m});var a=/^-+$/;var n=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /;var i=/^[\w+.-]+@[\w.-]+/;const c={name:"rpmchanges",token:function(r){if(r.sol()){if(r.match(a)){return"tag"}if(r.match(n)){return"tag"}}if(r.match(i)){return"string"}r.next();return null}};var o=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/;var p=/^[a-zA-Z0-9()]+:/;var l=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/;var u=/^%(ifnarch|ifarch|if)/;var s=/^%(else|endif)/;var f=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;const m={name:"rpmspec",startState:function(){return{controlFlow:false,macroParameters:false,section:false}},token:function(r,e){var t=r.peek();if(t=="#"){r.skipToEnd();return"comment"}if(r.sol()){if(r.match(p)){return"header"}if(r.match(l)){return"atom"}}if(r.match(/^\$\w+/)){return"def"}if(r.match(/^\$\{\w+\}/)){return"def"}if(r.match(s)){return"keyword"}if(r.match(u)){e.controlFlow=true;return"keyword"}if(e.controlFlow){if(r.match(f)){return"operator"}if(r.match(/^(\d+)/)){return"number"}if(r.eol()){e.controlFlow=false}}if(r.match(o)){if(r.eol()){e.controlFlow=false}return"number"}if(r.match(/^%[\w]+/)){if(r.match("(")){e.macroParameters=true}return"keyword"}if(e.macroParameters){if(r.match(/^\d+/)){return"number"}if(r.match(")")){e.macroParameters=false;return"keyword"}}if(r.match(/^%\{\??[\w \-\:\!]+\}/)){if(r.eol()){e.controlFlow=false}return"def"}r.next();return null}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4372.645626a2452c190dbb22.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4372.645626a2452c190dbb22.js new file mode 100644 index 0000000000000000000000000000000000000000..ef386adfaf46c11b444e22591ac2a6d7e12d5f1c --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4372.645626a2452c190dbb22.js @@ -0,0 +1,2 @@ +/*! For license information please see 4372.645626a2452c190dbb22.js.LICENSE.txt */ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4372],{14372:(e,t,n)=>{n.r(t);n.d(t,{tlv:()=>d,verilog:()=>a});function i(e){var t=e.statementIndentUnit,n=e.dontAlignCalls,i=e.noIndentKeywords||[],a=e.multiLineStrings,r=e.hooks||{};function l(e){var t={},n=e.split(" ");for(var i=0;i=0)return l}var o=e.context,s=i&&i.charAt(0);if(o.type=="statement"&&s=="}")o=o.prev;var c=false;var f=i.match(h);if(f)c=B(f[0],o.type);if(o.type=="statement")return o.indented+(s=="{"?0:t||a.unit);else if(g.test(o.type)&&o.align&&!n)return o.column+(c?0:1);else if(o.type==")"&&!c)return o.indented+(t||a.unit);else return o.indented+(c?0:a.unit)},languageData:{indentOnInput:q(),commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}const a=i({});var r={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"contentSeparator","/":"property","/-":"property","@":"variableName.special","@-":"variableName.special","@++":"variableName.special","@+=":"variableName.special","@+=-":"variableName.special","@--":"variableName.special","@-=":"variableName.special","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable","**":"variable","\\":"keyword",'"':"comment"};var l={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"};var o=3;var s=false;var c=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/;var f=/^[! ] */;var u=/^\/[\/\*]/;const d=i({hooks:{electricInput:false,token:function(e,t){var n=undefined;var i;if(e.sol()&&!t.tlvInBlockComment){if(e.peek()=="\\"){n="def";e.skipToEnd();if(e.string.match(/\\SV/)){t.tlvCodeActive=false}else if(e.string.match(/\\TLV/)){t.tlvCodeActive=true}}if(t.tlvCodeActive&&e.pos==0&&t.indented==0&&(i=e.match(f,false))){t.indented=i[0].length}var a=t.indented;var d=a/o;if(d<=t.tlvIndentationStyle.length){var m=e.string.length==a;var p=d*o;if(p0)){t.tlvIndentationStyle[d]=l[h];if(s){t.statementComment=false}d++}}}if(!m){while(t.tlvIndentationStyle.length>d){t.tlvIndentationStyle.pop()}}}t.tlvNextIndent=a}if(t.tlvCodeActive){var g=false;if(s){g=e.peek()!=" "&&n===undefined&&!t.tlvInBlockComment&&e.column()==t.tlvIndentationStyle.length*o;if(g){if(t.statementComment){g=false}t.statementComment=e.match(u,false)}}var i;if(n!==undefined){}else if(t.tlvInBlockComment){if(e.match(/^.*?\*\//)){t.tlvInBlockComment=false;if(s&&!e.eol()){t.statementComment=false}}else{e.skipToEnd()}n="comment"}else if((i=e.match(u))&&!t.tlvInBlockComment){if(i[0]=="//"){e.skipToEnd()}else{t.tlvInBlockComment=true}n="comment"}else if(i=e.match(c)){var k=i[1];var y=i[2];if(r.hasOwnProperty(k)&&(y.length>0||e.eol())){n=r[k]}else{e.backUp(e.current().length-1)}}else if(e.match(/^\t+/)){n="invalid"}else if(e.match(/^[\[\]{}\(\);\:]+/)){n="meta"}else if(i=e.match(/^[mM]4([\+_])?[\w\d_]*/)){n=i[1]=="+"?"keyword.special":"keyword"}else if(e.match(/^ +/)){if(e.eol()){n="error"}}else if(e.match(/^[\w\d_]+/)){n="number"}else{e.next()}}else{if(e.match(/^[mM]4([\w\d_]*)/)){n="keyword"}}return n},indent:function(e){return e.tlvCodeActive==true?e.tlvNextIndent:-1},startState:function(e){e.tlvIndentationStyle=[];e.tlvCodeActive=true;e.tlvNextIndent=-1;e.tlvInBlockComment=false;if(s){e.statementComment=false}}}})}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4484.e1d2565d1a3daa5fe5f1.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4484.e1d2565d1a3daa5fe5f1.js new file mode 100644 index 0000000000000000000000000000000000000000..618afdb5a3e9ecc1fdd10b230c7796062e45dc54 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4484.e1d2565d1a3daa5fe5f1.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4484],{34484:(e,t,n)=>{n.r(t);n.d(t,{xQuery:()=>z});var r=function(){function e(e){return{type:e,style:"keyword"}}var t=e("operator"),n={type:"atom",style:"atom"},r={type:"punctuation",style:null},a={type:"axis_specifier",style:"qualifier"};var i={",":r};var s=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"];for(var o=0,l=s.length;o",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"];for(var o=0,l=c.length;o\"\'\/?]/))g+=y;return a(e,t,c(g,f))}else if(n=="{"){b(t,{type:"codeblock"});return null}else if(n=="}"){w(t);return null}else if(d(t)){if(n==">")return"tag";else if(n=="/"&&e.eat(">")){w(t);return"tag"}else return"variable"}else if(/\d/.test(n)){e.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/);return"atom"}else if(n==="("&&e.eat(":")){b(t,{type:"comment"});return a(e,t,s)}else if(!o&&(n==='"'||n==="'"))return l(e,t,n);else if(n==="$"){return a(e,t,u)}else if(n===":"&&e.eat("=")){return"keyword"}else if(n==="("){b(t,{type:"paren"});return null}else if(n===")"){w(t);return null}else if(n==="["){b(t,{type:"bracket"});return null}else if(n==="]"){w(t);return null}else{var k=r.propertyIsEnumerable(n)&&r[n];if(o&&n==='"')while(e.next()!=='"'){}if(o&&n==="'")while(e.next()!=="'"){}if(!k)e.eatWhile(/[\w\$_-]/);var z=e.eat(":");if(!e.eat(":")&&z){e.eatWhile(/[\w\$_-]/)}if(e.match(/^[ \t]*\(/,false)){i=true}var I=e.current();k=r.propertyIsEnumerable(I)&&r[I];if(i&&!k)k={type:"function_call",style:"def"};if(h(t)){w(t);return"variable"}if(I=="element"||I=="attribute"||k.type=="axis_specifier")b(t,{type:"xmlconstructor"});return k?k.style:"variable"}}function s(e,t){var n=false,r=false,a=0,i;while(i=e.next()){if(i==")"&&n){if(a>0)a--;else{w(t);break}}else if(i==":"&&r){a++}n=i==":";r=i=="("}return"comment"}function o(e,t){return function(n,r){var a;while(a=n.next()){if(a==e){w(r);if(t)r.tokenize=t;break}else if(n.match("{",false)&&g(r)){b(r,{type:"codeblock"});r.tokenize=i;return"string"}}return"string"}}function l(e,t,n,r){let i=o(n,r);b(t,{type:"string",name:n,tokenize:i});return a(e,t,i)}function u(e,t){var n=/[\w\$_-]/;if(e.eat('"')){while(e.next()!=='"'){}e.eat(":")}else{e.eatWhile(n);if(!e.match(":=",false))e.eat(":")}e.eatWhile(n);t.tokenize=i;return"variable"}function c(e,t){return function(n,r){n.eatSpace();if(t&&n.eat(">")){w(r);r.tokenize=i;return"tag"}if(!n.eat("/"))b(r,{type:"tag",name:e,tokenize:i});if(!n.eat(">")){r.tokenize=f;return"tag"}else{r.tokenize=i}return"tag"}}function f(e,t){var n=e.next();if(n=="/"&&e.eat(">")){if(g(t))w(t);if(d(t))w(t);return"tag"}if(n==">"){if(g(t))w(t);return"tag"}if(n=="=")return null;if(n=='"'||n=="'")return l(e,t,n,f);if(!g(t))b(t,{type:"attribute",tokenize:f});e.eat(/[a-zA-Z_:]/);e.eatWhile(/[-a-zA-Z0-9_:.]/);e.eatSpace();if(e.match(">",false)||e.match("/",false)){w(t);t.tokenize=i}return"attribute"}function p(e,t){var n;while(n=e.next()){if(n=="-"&&e.match("->",true)){t.tokenize=i;return"comment"}}}function m(e,t){var n;while(n=e.next()){if(n=="]"&&e.match("]",true)){t.tokenize=i;return"comment"}}}function x(e,t){var n;while(n=e.next()){if(n=="?"&&e.match(">",true)){t.tokenize=i;return"processingInstruction"}}}function d(e){return k(e,"tag")}function g(e){return k(e,"attribute")}function h(e){return k(e,"xmlconstructor")}function y(e){return k(e,"string")}function v(e){if(e.current()==='"')return e.match(/^[^\"]+\"\:/,false);else if(e.current()==="'")return e.match(/^[^\"]+\'\:/,false);else return false}function k(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function b(e,t){e.stack.push(t)}function w(e){e.stack.pop();var t=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=t||i}const z={name:"xquery",startState:function(){return{tokenize:i,cc:[],stack:[]}},token:function(e,t){if(e.eatSpace())return null;var n=t.tokenize(e,t);return n},languageData:{commentTokens:{block:{open:"(:",close:":)"}}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4611.bd2b768223b0cd570834.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4611.bd2b768223b0cd570834.js new file mode 100644 index 0000000000000000000000000000000000000000..4be8f1b60fb1932d5eef0b205938fc36070fcd62 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4611.bd2b768223b0cd570834.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4611],{64611:(e,t,i)=>{i.r(t);i.d(t,{textile:()=>m});var n={addition:"inserted",attributes:"propertyName",bold:"strong",cite:"keyword",code:"monospace",definitionList:"list",deletion:"deleted",div:"punctuation",em:"emphasis",footnote:"variable",footCite:"qualifier",header:"heading",html:"comment",image:"atom",italic:"emphasis",link:"link",linkDefinition:"link",list1:"list",list2:"list.special",list3:"list",notextile:"string.special",pre:"operator",p:"content",quote:"bracket",span:"quote",specialChar:"character",strong:"strong",sub:"content.special",sup:"content.special",table:"variableName.special",tableHeading:"operator"};function a(e,t){t.mode=d.newLayout;t.tableHeading=false;if(t.layoutType==="definitionList"&&t.spanningLayout&&e.match(p("definitionListEnd"),false))t.spanningLayout=false}function r(e,t,i){if(i==="_"){if(e.eat("_"))return l(e,t,"italic",/__/,2);else return l(e,t,"em",/_/,1)}if(i==="*"){if(e.eat("*")){return l(e,t,"bold",/\*\*/,2)}return l(e,t,"strong",/\*/,1)}if(i==="["){if(e.match(/\d+\]/))t.footCite=true;return s(t)}if(i==="("){var a=e.match(/^(r|tm|c)\)/);if(a)return n.specialChar}if(i==="<"&&e.match(/(\w+)[^>]+>[^<]+<\/\1>/))return n.html;if(i==="?"&&e.eat("?"))return l(e,t,"cite",/\?\?/,2);if(i==="="&&e.eat("="))return l(e,t,"notextile",/==/,2);if(i==="-"&&!e.eat("-"))return l(e,t,"deletion",/-/,1);if(i==="+")return l(e,t,"addition",/\+/,1);if(i==="~")return l(e,t,"sub",/~/,1);if(i==="^")return l(e,t,"sup",/\^/,1);if(i==="%")return l(e,t,"span",/%/,1);if(i==="@")return l(e,t,"code",/@/,1);if(i==="!"){var r=l(e,t,"image",/(?:\([^\)]+\))?!/,1);e.match(/^:\S+/);return r}return s(t)}function l(e,t,i,n,a){var r=e.pos>a?e.string.charAt(e.pos-a-1):null;var l=e.peek();if(t[i]){if((!l||/\W/.test(l))&&r&&/\S/.test(r)){var o=s(t);t[i]=false;return o}}else if((!r||/\W/.test(r))&&l&&/\S/.test(l)&&e.match(new RegExp("^.*\\S"+n.source+"(?:\\W|$)"),false)){t[i]=true;t.mode=d.attributes}return s(t)}function s(e){var t=o(e);if(t)return t;var i=[];if(e.layoutType)i.push(n[e.layoutType]);i=i.concat(u(e,"addition","bold","cite","code","deletion","em","footCite","image","italic","link","span","strong","sub","sup","table","tableHeading"));if(e.layoutType==="header")i.push(n.header+"-"+e.header);return i.length?i.join(" "):null}function o(e){var t=e.layoutType;switch(t){case"notextile":case"code":case"pre":return n[t];default:if(e.notextile)return n.notextile+(t?" "+n[t]:"");return null}}function u(e){var t=[];for(var i=1;i]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(e){switch(e){case"drawTable":return f.makeRe("^",f.single.drawTable,"$");case"html":return f.makeRe("^",f.single.html,"(?:",f.single.html,")*","$");case"linkDefinition":return f.makeRe("^",f.single.linkDefinition,"$");case"listLayout":return f.makeRe("^",f.single.list,p("allAttributes"),"*\\s+");case"tableCellAttributes":return f.makeRe("^",f.choiceRe(f.single.tableCellAttributes,p("allAttributes")),"+\\.");case"type":return f.makeRe("^",p("allTypes"));case"typeLayout":return f.makeRe("^",p("allTypes"),p("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return f.makeRe("^",p("allAttributes"),"+");case"allTypes":return f.choiceRe(f.single.div,f.single.foot,f.single.header,f.single.bc,f.single.bq,f.single.notextile,f.single.pre,f.single.table,f.single.para);case"allAttributes":return f.choiceRe(f.attributes.selector,f.attributes.css,f.attributes.lang,f.attributes.align,f.attributes.pad);default:return f.makeRe("^",f.single[e])}},makeRe:function(){var e="";for(var t=0;t{"use strict";var t=function e(t){return r(t)&&!i(t)};function r(e){return!!e&&typeof e==="object"}function i(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||o(e)}var n=typeof Symbol==="function"&&Symbol.for;var s=n?Symbol.for("react.element"):60103;function o(e){return e.$$typeof===s}function a(e){return Array.isArray(e)?[]:{}}function l(e,t){return t.clone!==false&&t.isMergeableObject(e)?g(a(e),e,t):e}function c(e,t,r){return e.concat(t).map((function(e){return l(e,r)}))}function u(e,t){if(!t.customMerge){return g}var r=t.customMerge(e);return typeof r==="function"?r:g}function f(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}function h(e){return Object.keys(e).concat(f(e))}function p(e,t){try{return t in e}catch(r){return false}}function d(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function m(e,t,r){var i={};if(r.isMergeableObject(e)){h(e).forEach((function(t){i[t]=l(e[t],r)}))}h(t).forEach((function(n){if(d(e,n)){return}if(p(e,n)&&r.isMergeableObject(t[n])){i[n]=u(n,r)(e[n],t[n],r)}else{i[n]=l(t[n],r)}}));return i}function g(e,r,i){i=i||{};i.arrayMerge=i.arrayMerge||c;i.isMergeableObject=i.isMergeableObject||t;i.cloneUnlessOtherwiseSpecified=l;var n=Array.isArray(r);var s=Array.isArray(e);var o=n===s;if(!o){return l(r,i)}else if(n){return i.arrayMerge(e,r,i)}else{return m(e,r,i)}}g.all=function e(t,r){if(!Array.isArray(t)){throw new Error("first argument should be an array")}return t.reduce((function(e,t){return g(e,t,r)}),{})};var y=g;e.exports=y},94460:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.attributeNames=t.elementNames=void 0;t.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(e){return[e.toLowerCase(),e]})));t.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(e){return[e.toLowerCase(),e]})))},53806:function(e,t,r){"use strict";var i=this&&this.__assign||function(){i=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0){n+=d(e.children,t)}if(t.xmlMode||!p.has(e.name)){n+="")}}return n}function v(e){return"<".concat(e.data,">")}function w(e,t){var r;var i=e.data||"";if(((r=t.encodeEntities)!==null&&r!==void 0?r:t.decodeEntities)!==false&&!(!t.xmlMode&&e.parent&&u.has(e.parent.name))){i=t.xmlMode||t.encodeEntities!=="utf8"?(0,l.encodeXML)(i):(0,l.escapeText)(i)}return i}function x(e){return"")}function T(e){return"\x3c!--".concat(e.data,"--\x3e")}},16243:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.decodeXML=t.decodeHTMLStrict=t.decodeHTML=t.determineBranch=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var n=i(r(72834));t.htmlDecodeTree=n.default;var s=i(r(91518));t.xmlDecodeTree=s.default;var o=i(r(78873));t.decodeCodePoint=o.default;var a=r(78873);Object.defineProperty(t,"replaceCodePoint",{enumerable:true,get:function(){return a.replaceCodePoint}});Object.defineProperty(t,"fromCodePoint",{enumerable:true,get:function(){return a.fromCodePoint}});var l;(function(e){e[e["NUM"]=35]="NUM";e[e["SEMI"]=59]="SEMI";e[e["ZERO"]=48]="ZERO";e[e["NINE"]=57]="NINE";e[e["LOWER_A"]=97]="LOWER_A";e[e["LOWER_F"]=102]="LOWER_F";e[e["LOWER_X"]=120]="LOWER_X";e[e["To_LOWER_BIT"]=32]="To_LOWER_BIT"})(l||(l={}));var c;(function(e){e[e["VALUE_LENGTH"]=49152]="VALUE_LENGTH";e[e["BRANCH_LENGTH"]=16256]="BRANCH_LENGTH";e[e["JUMP_TABLE"]=127]="JUMP_TABLE"})(c=t.BinTrieFlags||(t.BinTrieFlags={}));function u(e){return function t(r,i){var n="";var s=0;var a=0;while((a=r.indexOf("&",a))>=0){n+=r.slice(s,a);s=a;a+=1;if(r.charCodeAt(a)===l.NUM){var u=a+1;var h=10;var p=r.charCodeAt(u);if((p|l.To_LOWER_BIT)===l.LOWER_X){h=16;a+=1;u+=1}do{p=r.charCodeAt(++a)}while(p>=l.ZERO&&p<=l.NINE||h===16&&(p|l.To_LOWER_BIT)>=l.LOWER_A&&(p|l.To_LOWER_BIT)<=l.LOWER_F);if(u!==a){var d=r.substring(u,a);var m=parseInt(d,h);if(r.charCodeAt(a)===l.SEMI){a+=1}else if(i){continue}n+=(0,o.default)(m);s=a}continue}var g=0;var y=1;var b=0;var v=e[b];for(;a>14)-1;if(x===0)break;b+=x}}if(g!==0){var x=(e[g]&c.VALUE_LENGTH)>>14;n+=x===1?String.fromCharCode(e[g]&~c.VALUE_LENGTH):x===2?String.fromCharCode(e[g+1]):String.fromCharCode(e[g+1],e[g+2]);s=a-y+1}}return n+r.slice(s)}}function f(e,t,r,i){var n=(t&c.BRANCH_LENGTH)>>7;var s=t&c.JUMP_TABLE;if(n===0){return s!==0&&i===s?r:-1}if(s){var o=i-s;return o<0||o>=n?-1:e[r+o]-1}var a=r;var l=a+n-1;while(a<=l){var u=a+l>>>1;var f=e[u];if(fi){l=u-1}else{return e[u+n]}}return-1}t.determineBranch=f;var h=u(n.default);var p=u(s.default);function d(e){return h(e,false)}t.decodeHTML=d;function m(e){return h(e,true)}t.decodeHTMLStrict=m;function g(e){return p(e,true)}t.decodeXML=g},78873:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.replaceCodePoint=t.fromCodePoint=void 0;var i=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(r=String.fromCodePoint)!==null&&r!==void 0?r:function(e){var t="";if(e>65535){e-=65536;t+=String.fromCharCode(e>>>10&1023|55296);e=56320|e&1023}t+=String.fromCharCode(e);return t};function n(e){var t;if(e>=55296&&e<=57343||e>1114111){return 65533}return(t=i.get(e))!==null&&t!==void 0?t:e}t.replaceCodePoint=n;function s(e){return(0,t.fromCodePoint)(n(e))}t["default"]=s},46095:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.encodeNonAsciiHTML=t.encodeHTML=void 0;var n=i(r(97195));var s=r(53590);var o=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function a(e){return c(o,e)}t.encodeHTML=a;function l(e){return c(s.xmlReplacer,e)}t.encodeNonAsciiHTML=l;function c(e,t){var r="";var i=0;var o;while((o=e.exec(t))!==null){var a=o.index;r+=t.substring(i,a);var l=t.charCodeAt(a);var c=n.default.get(l);if(typeof c==="object"){if(a+1{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0;t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var r=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(e,t){return e.codePointAt(t)}:function(e,t){return(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)};function i(e){var i="";var n=0;var s;while((s=t.xmlReplacer.exec(e))!==null){var o=s.index;var a=e.charCodeAt(o);var l=r.get(a);if(l!==undefined){i+=e.substring(n,o)+l;n=o+1}else{i+="".concat(e.substring(n,o),"&#x").concat((0,t.getCodePoint)(e,o).toString(16),";");n=t.xmlReplacer.lastIndex+=Number((a&64512)===55296)}}return i+e.substr(n)}t.encodeXML=i;t.escape=i;function n(e,t){return function r(i){var n;var s=0;var o="";while(n=e.exec(i)){if(s!==n.index){o+=i.substring(s,n.index)}o+=t.get(n[0].charCodeAt(0));s=n.index+1}return o+i.substring(s)}}t.escapeUTF8=n(/[&<>'"]/g,r);t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]]));t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},72834:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(e){return e.charCodeAt(0)})))},91518:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)})))},97195:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function r(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.DecodingMode=t.EntityLevel=void 0;var i=r(16243);var n=r(46095);var s=r(53590);var o;(function(e){e[e["XML"]=0]="XML";e[e["HTML"]=1]="HTML"})(o=t.EntityLevel||(t.EntityLevel={}));var a;(function(e){e[e["Legacy"]=0]="Legacy";e[e["Strict"]=1]="Strict"})(a=t.DecodingMode||(t.DecodingMode={}));var l;(function(e){e[e["UTF8"]=0]="UTF8";e[e["ASCII"]=1]="ASCII";e[e["Extensive"]=2]="Extensive";e[e["Attribute"]=3]="Attribute";e[e["Text"]=4]="Text"})(l=t.EncodingMode||(t.EncodingMode={}));function c(e,t){if(t===void 0){t=o.XML}var r=typeof t==="number"?{level:t}:t;if(r.level===o.HTML){if(r.mode===a.Strict){return(0,i.decodeHTMLStrict)(e)}return(0,i.decodeHTML)(e)}return(0,i.decodeXML)(e)}t.decode=c;function u(e,t){if(t===void 0){t=o.XML}var r=typeof t==="number"?{level:t}:t;if(r.level===o.HTML){if(r.mode===a.Legacy){return(0,i.decodeHTML)(e)}return(0,i.decodeHTMLStrict)(e)}return(0,i.decodeXML)(e)}t.decodeStrict=u;function f(e,t){if(t===void 0){t=o.XML}var r=typeof t==="number"?{level:t}:t;if(r.mode===l.UTF8)return(0,s.escapeUTF8)(e);if(r.mode===l.Attribute)return(0,s.escapeAttribute)(e);if(r.mode===l.Text)return(0,s.escapeText)(e);if(r.level===o.HTML){if(r.mode===l.ASCII){return(0,n.encodeNonAsciiHTML)(e)}return(0,n.encodeHTML)(e)}return(0,s.encodeXML)(e)}t.encode=f;var h=r(53590);Object.defineProperty(t,"encodeXML",{enumerable:true,get:function(){return h.encodeXML}});Object.defineProperty(t,"escape",{enumerable:true,get:function(){return h.escape}});Object.defineProperty(t,"escapeUTF8",{enumerable:true,get:function(){return h.escapeUTF8}});Object.defineProperty(t,"escapeAttribute",{enumerable:true,get:function(){return h.escapeAttribute}});Object.defineProperty(t,"escapeText",{enumerable:true,get:function(){return h.escapeText}});var p=r(46095);Object.defineProperty(t,"encodeHTML",{enumerable:true,get:function(){return p.encodeHTML}});Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:true,get:function(){return p.encodeNonAsciiHTML}});Object.defineProperty(t,"encodeHTML4",{enumerable:true,get:function(){return p.encodeHTML}});Object.defineProperty(t,"encodeHTML5",{enumerable:true,get:function(){return p.encodeHTML}});var d=r(16243);Object.defineProperty(t,"decodeXML",{enumerable:true,get:function(){return d.decodeXML}});Object.defineProperty(t,"decodeHTML",{enumerable:true,get:function(){return d.decodeHTML}});Object.defineProperty(t,"decodeHTMLStrict",{enumerable:true,get:function(){return d.decodeHTMLStrict}});Object.defineProperty(t,"decodeHTML4",{enumerable:true,get:function(){return d.decodeHTML}});Object.defineProperty(t,"decodeHTML5",{enumerable:true,get:function(){return d.decodeHTML}});Object.defineProperty(t,"decodeHTML4Strict",{enumerable:true,get:function(){return d.decodeHTMLStrict}});Object.defineProperty(t,"decodeHTML5Strict",{enumerable:true,get:function(){return d.decodeHTMLStrict}});Object.defineProperty(t,"decodeXMLStrict",{enumerable:true,get:function(){return d.decodeXML}})},45413:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var r;(function(e){e["Root"]="root";e["Text"]="text";e["Directive"]="directive";e["Comment"]="comment";e["Script"]="script";e["Style"]="style";e["Tag"]="tag";e["CDATA"]="cdata";e["Doctype"]="doctype"})(r=t.ElementType||(t.ElementType={}));function i(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style}t.isTag=i;t.Root=r.Root;t.Text=r.Text;t.Directive=r.Directive;t.Comment=r.Comment;t.Script=r.Script;t.Style=r.Style;t.Tag=r.Tag;t.CDATA=r.CDATA;t.Doctype=r.Doctype},52834:e=>{"use strict";e.exports=e=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},11724:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,n)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))i(t,e,r);n(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.Parser=void 0;var o=s(r(57918));var a=r(66032);var l=new Set(["input","option","optgroup","select","button","datalist","textarea"]);var c=new Set(["p"]);var u=new Set(["thead","tbody"]);var f=new Set(["dd","dt"]);var h=new Set(["rt","rp"]);var p=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",c],["h1",c],["h2",c],["h3",c],["h4",c],["h5",c],["h6",c],["select",l],["input",l],["output",l],["button",l],["datalist",l],["textarea",l],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",f],["dt",f],["address",c],["article",c],["aside",c],["blockquote",c],["details",c],["div",c],["dl",c],["fieldset",c],["figcaption",c],["figure",c],["footer",c],["form",c],["header",c],["hr",c],["main",c],["nav",c],["ol",c],["pre",c],["section",c],["table",c],["ul",c],["rt",h],["rp",h],["tbody",u],["tfoot",u]]);var d=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);var m=new Set(["math","svg"]);var g=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]);var y=/\s|\//;var b=function(){function e(e,t){if(t===void 0){t={}}var r,i,n,s,a;this.options=t;this.startIndex=0;this.endIndex=0;this.openTagStart=0;this.tagname="";this.attribname="";this.attribvalue="";this.attribs=null;this.stack=[];this.foreignContext=[];this.buffers=[];this.bufferOffset=0;this.writeIndex=0;this.ended=false;this.cbs=e!==null&&e!==void 0?e:{};this.lowerCaseTagNames=(r=t.lowerCaseTags)!==null&&r!==void 0?r:!t.xmlMode;this.lowerCaseAttributeNames=(i=t.lowerCaseAttributeNames)!==null&&i!==void 0?i:!t.xmlMode;this.tokenizer=new((n=t.Tokenizer)!==null&&n!==void 0?n:o.default)(this.options,this);(a=(s=this.cbs).onparserinit)===null||a===void 0?void 0:a.call(s,this)}e.prototype.ontext=function(e,t){var r,i;var n=this.getSlice(e,t);this.endIndex=t-1;(i=(r=this.cbs).ontext)===null||i===void 0?void 0:i.call(r,n);this.startIndex=t};e.prototype.ontextentity=function(e){var t,r;var i=this.tokenizer.getSectionStart();this.endIndex=i-1;(r=(t=this.cbs).ontext)===null||r===void 0?void 0:r.call(t,(0,a.fromCodePoint)(e));this.startIndex=i};e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&d.has(e)};e.prototype.onopentagname=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.lowerCaseTagNames){r=r.toLowerCase()}this.emitOpenTag(r)};e.prototype.emitOpenTag=function(e){var t,r,i,n;this.openTagStart=this.startIndex;this.tagname=e;var s=!this.options.xmlMode&&p.get(e);if(s){while(this.stack.length>0&&s.has(this.stack[this.stack.length-1])){var o=this.stack.pop();(r=(t=this.cbs).onclosetag)===null||r===void 0?void 0:r.call(t,o,true)}}if(!this.isVoidElement(e)){this.stack.push(e);if(m.has(e)){this.foreignContext.push(true)}else if(g.has(e)){this.foreignContext.push(false)}}(n=(i=this.cbs).onopentagname)===null||n===void 0?void 0:n.call(i,e);if(this.cbs.onopentag)this.attribs={}};e.prototype.endOpenTag=function(e){var t,r;this.startIndex=this.openTagStart;if(this.attribs){(r=(t=this.cbs).onopentag)===null||r===void 0?void 0:r.call(t,this.tagname,this.attribs,e);this.attribs=null}if(this.cbs.onclosetag&&this.isVoidElement(this.tagname)){this.cbs.onclosetag(this.tagname,true)}this.tagname=""};e.prototype.onopentagend=function(e){this.endIndex=e;this.endOpenTag(false);this.startIndex=e+1};e.prototype.onclosetag=function(e,t){var r,i,n,s,o,a;this.endIndex=t;var l=this.getSlice(e,t);if(this.lowerCaseTagNames){l=l.toLowerCase()}if(m.has(l)||g.has(l)){this.foreignContext.pop()}if(!this.isVoidElement(l)){var c=this.stack.lastIndexOf(l);if(c!==-1){if(this.cbs.onclosetag){var u=this.stack.length-c;while(u--){this.cbs.onclosetag(this.stack.pop(),u!==0)}}else this.stack.length=c}else if(!this.options.xmlMode&&l==="p"){this.emitOpenTag("p");this.closeCurrentTag(true)}}else if(!this.options.xmlMode&&l==="br"){(i=(r=this.cbs).onopentagname)===null||i===void 0?void 0:i.call(r,"br");(s=(n=this.cbs).onopentag)===null||s===void 0?void 0:s.call(n,"br",{},true);(a=(o=this.cbs).onclosetag)===null||a===void 0?void 0:a.call(o,"br",false)}this.startIndex=t+1};e.prototype.onselfclosingtag=function(e){this.endIndex=e;if(this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]){this.closeCurrentTag(false);this.startIndex=e+1}else{this.onopentagend(e)}};e.prototype.closeCurrentTag=function(e){var t,r;var i=this.tagname;this.endOpenTag(e);if(this.stack[this.stack.length-1]===i){(r=(t=this.cbs).onclosetag)===null||r===void 0?void 0:r.call(t,i,!e);this.stack.pop()}};e.prototype.onattribname=function(e,t){this.startIndex=e;var r=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r};e.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)};e.prototype.onattribentity=function(e){this.attribvalue+=(0,a.fromCodePoint)(e)};e.prototype.onattribend=function(e,t){var r,i;this.endIndex=t;(i=(r=this.cbs).onattribute)===null||i===void 0?void 0:i.call(r,this.attribname,this.attribvalue,e===o.QuoteType.Double?'"':e===o.QuoteType.Single?"'":e===o.QuoteType.NoValue?undefined:null);if(this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)){this.attribs[this.attribname]=this.attribvalue}this.attribvalue=""};e.prototype.getInstructionName=function(e){var t=e.search(y);var r=t<0?e:e.substr(0,t);if(this.lowerCaseTagNames){r=r.toLowerCase()}return r};e.prototype.ondeclaration=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(r);this.cbs.onprocessinginstruction("!".concat(i),"!".concat(r))}this.startIndex=t+1};e.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(r);this.cbs.onprocessinginstruction("?".concat(i),"?".concat(r))}this.startIndex=t+1};e.prototype.oncomment=function(e,t,r){var i,n,s,o;this.endIndex=t;(n=(i=this.cbs).oncomment)===null||n===void 0?void 0:n.call(i,this.getSlice(e,t-r));(o=(s=this.cbs).oncommentend)===null||o===void 0?void 0:o.call(s);this.startIndex=t+1};e.prototype.oncdata=function(e,t,r){var i,n,s,o,a,l,c,u,f,h;this.endIndex=t;var p=this.getSlice(e,t-r);if(this.options.xmlMode||this.options.recognizeCDATA){(n=(i=this.cbs).oncdatastart)===null||n===void 0?void 0:n.call(i);(o=(s=this.cbs).ontext)===null||o===void 0?void 0:o.call(s,p);(l=(a=this.cbs).oncdataend)===null||l===void 0?void 0:l.call(a)}else{(u=(c=this.cbs).oncomment)===null||u===void 0?void 0:u.call(c,"[CDATA[".concat(p,"]]"));(h=(f=this.cbs).oncommentend)===null||h===void 0?void 0:h.call(f)}this.startIndex=t+1};e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],true));}(t=(e=this.cbs).onend)===null||t===void 0?void 0:t.call(e)};e.prototype.reset=function(){var e,t,r,i;(t=(e=this.cbs).onreset)===null||t===void 0?void 0:t.call(e);this.tokenizer.reset();this.tagname="";this.attribname="";this.attribs=null;this.stack.length=0;this.startIndex=0;this.endIndex=0;(i=(r=this.cbs).onparserinit)===null||i===void 0?void 0:i.call(r,this);this.buffers.length=0;this.bufferOffset=0;this.writeIndex=0;this.ended=false};e.prototype.parseComplete=function(e){this.reset();this.end(e)};e.prototype.getSlice=function(e,t){while(e-this.bufferOffset>=this.buffers[0].length){this.shiftBuffer()}var r=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);while(t-this.bufferOffset>this.buffers[0].length){this.shiftBuffer();r+=this.buffers[0].slice(0,t-this.bufferOffset)}return r};e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length;this.writeIndex--;this.buffers.shift()};e.prototype.write=function(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0?void 0:r.call(t,new Error(".write() after done!"));return}this.buffers.push(e);if(this.tokenizer.running){this.tokenizer.write(e);this.writeIndex++}};e.prototype.end=function(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0?void 0:r.call(t,Error(".end() after done!"));return}if(e)this.write(e);this.ended=true;this.tokenizer.end()};e.prototype.pause=function(){this.tokenizer.pause()};e.prototype.resume=function(){this.tokenizer.resume();while(this.tokenizer.running&&this.writeIndex{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.QuoteType=void 0;var i=r(66032);var n;(function(e){e[e["Tab"]=9]="Tab";e[e["NewLine"]=10]="NewLine";e[e["FormFeed"]=12]="FormFeed";e[e["CarriageReturn"]=13]="CarriageReturn";e[e["Space"]=32]="Space";e[e["ExclamationMark"]=33]="ExclamationMark";e[e["Num"]=35]="Num";e[e["Amp"]=38]="Amp";e[e["SingleQuote"]=39]="SingleQuote";e[e["DoubleQuote"]=34]="DoubleQuote";e[e["Dash"]=45]="Dash";e[e["Slash"]=47]="Slash";e[e["Zero"]=48]="Zero";e[e["Nine"]=57]="Nine";e[e["Semi"]=59]="Semi";e[e["Lt"]=60]="Lt";e[e["Eq"]=61]="Eq";e[e["Gt"]=62]="Gt";e[e["Questionmark"]=63]="Questionmark";e[e["UpperA"]=65]="UpperA";e[e["LowerA"]=97]="LowerA";e[e["UpperF"]=70]="UpperF";e[e["LowerF"]=102]="LowerF";e[e["UpperZ"]=90]="UpperZ";e[e["LowerZ"]=122]="LowerZ";e[e["LowerX"]=120]="LowerX";e[e["OpeningSquareBracket"]=91]="OpeningSquareBracket"})(n||(n={}));var s;(function(e){e[e["Text"]=1]="Text";e[e["BeforeTagName"]=2]="BeforeTagName";e[e["InTagName"]=3]="InTagName";e[e["InSelfClosingTag"]=4]="InSelfClosingTag";e[e["BeforeClosingTagName"]=5]="BeforeClosingTagName";e[e["InClosingTagName"]=6]="InClosingTagName";e[e["AfterClosingTagName"]=7]="AfterClosingTagName";e[e["BeforeAttributeName"]=8]="BeforeAttributeName";e[e["InAttributeName"]=9]="InAttributeName";e[e["AfterAttributeName"]=10]="AfterAttributeName";e[e["BeforeAttributeValue"]=11]="BeforeAttributeValue";e[e["InAttributeValueDq"]=12]="InAttributeValueDq";e[e["InAttributeValueSq"]=13]="InAttributeValueSq";e[e["InAttributeValueNq"]=14]="InAttributeValueNq";e[e["BeforeDeclaration"]=15]="BeforeDeclaration";e[e["InDeclaration"]=16]="InDeclaration";e[e["InProcessingInstruction"]=17]="InProcessingInstruction";e[e["BeforeComment"]=18]="BeforeComment";e[e["CDATASequence"]=19]="CDATASequence";e[e["InSpecialComment"]=20]="InSpecialComment";e[e["InCommentLike"]=21]="InCommentLike";e[e["BeforeSpecialS"]=22]="BeforeSpecialS";e[e["SpecialStartSequence"]=23]="SpecialStartSequence";e[e["InSpecialTag"]=24]="InSpecialTag";e[e["BeforeEntity"]=25]="BeforeEntity";e[e["BeforeNumericEntity"]=26]="BeforeNumericEntity";e[e["InNamedEntity"]=27]="InNamedEntity";e[e["InNumericEntity"]=28]="InNumericEntity";e[e["InHexEntity"]=29]="InHexEntity"})(s||(s={}));function o(e){return e===n.Space||e===n.NewLine||e===n.Tab||e===n.FormFeed||e===n.CarriageReturn}function a(e){return e===n.Slash||e===n.Gt||o(e)}function l(e){return e>=n.Zero&&e<=n.Nine}function c(e){return e>=n.LowerA&&e<=n.LowerZ||e>=n.UpperA&&e<=n.UpperZ}function u(e){return e>=n.UpperA&&e<=n.UpperF||e>=n.LowerA&&e<=n.LowerF}var f;(function(e){e[e["NoValue"]=0]="NoValue";e[e["Unquoted"]=1]="Unquoted";e[e["Single"]=2]="Single";e[e["Double"]=3]="Double"})(f=t.QuoteType||(t.QuoteType={}));var h={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};var p=function(){function e(e,t){var r=e.xmlMode,n=r===void 0?false:r,o=e.decodeEntities,a=o===void 0?true:o;this.cbs=t;this.state=s.Text;this.buffer="";this.sectionStart=0;this.index=0;this.baseState=s.Text;this.isSpecial=false;this.running=true;this.offset=0;this.sequenceIndex=0;this.trieIndex=0;this.trieCurrent=0;this.entityResult=0;this.entityExcess=0;this.xmlMode=n;this.decodeEntities=a;this.entityTrie=n?i.xmlDecodeTree:i.htmlDecodeTree}e.prototype.reset=function(){this.state=s.Text;this.buffer="";this.sectionStart=0;this.index=0;this.baseState=s.Text;this.currentSequence=undefined;this.running=true;this.offset=0};e.prototype.write=function(e){this.offset+=this.buffer.length;this.buffer=e;this.parse()};e.prototype.end=function(){if(this.running)this.finish()};e.prototype.pause=function(){this.running=false};e.prototype.resume=function(){this.running=true;if(this.indexthis.sectionStart){this.cbs.ontext(this.sectionStart,this.index)}this.state=s.BeforeTagName;this.sectionStart=this.index}else if(this.decodeEntities&&e===n.Amp){this.state=s.BeforeEntity}};e.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length;var r=t?a(e):(e|32)===this.currentSequence[this.sequenceIndex];if(!r){this.isSpecial=false}else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0;this.state=s.InTagName;this.stateInTagName(e)};e.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===n.Gt||o(e)){var t=this.index-this.currentSequence.length;if(this.sectionStart>14)-1;if(!this.allowLegacyEntity()&&e!==n.Semi){this.trieIndex+=r}else{var s=this.index-this.entityExcess+1;if(s>this.sectionStart){this.emitPartial(this.sectionStart,s)}this.entityResult=this.trieIndex;this.trieIndex+=r;this.entityExcess=0;this.sectionStart=this.index+1;if(r===0){this.emitNamedEntity()}}}};e.prototype.emitNamedEntity=function(){this.state=this.baseState;if(this.entityResult===0){return}var e=(this.entityTrie[this.entityResult]&i.BinTrieFlags.VALUE_LENGTH)>>14;switch(e){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~i.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);this.emitCodePoint(this.entityTrie[this.entityResult+2])}}};e.prototype.stateBeforeNumericEntity=function(e){if((e|32)===n.LowerX){this.entityExcess++;this.state=s.InHexEntity}else{this.state=s.InNumericEntity;this.stateInNumericEntity(e)}};e.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1;var r=t+2+Number(this.state===s.InHexEntity);if(r!==this.index){if(t>this.sectionStart){this.emitPartial(this.sectionStart,t)}this.sectionStart=this.index+Number(e);this.emitCodePoint((0,i.replaceCodePoint)(this.entityResult))}this.state=this.baseState};e.prototype.stateInNumericEntity=function(e){if(e===n.Semi){this.emitNumericEntity(true)}else if(l(e)){this.entityResult=this.entityResult*10+(e-n.Zero);this.entityExcess++}else{if(this.allowLegacyEntity()){this.emitNumericEntity(false)}else{this.state=this.baseState}this.index--}};e.prototype.stateInHexEntity=function(e){if(e===n.Semi){this.emitNumericEntity(true)}else if(l(e)){this.entityResult=this.entityResult*16+(e-n.Zero);this.entityExcess++}else if(u(e)){this.entityResult=this.entityResult*16+((e|32)-n.LowerA+10);this.entityExcess++}else{if(this.allowLegacyEntity()){this.emitNumericEntity(false)}else{this.state=this.baseState}this.index--}};e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===s.Text||this.baseState===s.InSpecialTag)};e.prototype.cleanup=function(){if(this.running&&this.sectionStart!==this.index){if(this.state===s.Text||this.state===s.InSpecialTag&&this.sequenceIndex===0){this.cbs.ontext(this.sectionStart,this.index);this.sectionStart=this.index}else if(this.state===s.InAttributeValueDq||this.state===s.InAttributeValueSq||this.state===s.InAttributeValueNq){this.cbs.onattribdata(this.sectionStart,this.index);this.sectionStart=this.index}}};e.prototype.shouldContinue=function(){return this.index0?this.children[this.children.length-1]:null},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:false,configurable:true});return t}(o);t.NodeWithChildren=f;var h=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.type=s.ElementType.CDATA;return t}Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:false,configurable:true});return t}(f);t.CDATA=h;var p=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.type=s.ElementType.Root;return t}Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:false,configurable:true});return t}(f);t.Document=p;var d=function(e){i(t,e);function t(t,r,i,n){if(i===void 0){i=[]}if(n===void 0){n=t==="script"?s.ElementType.Script:t==="style"?s.ElementType.Style:s.ElementType.Tag}var o=e.call(this,i)||this;o.name=t;o.attribs=r;o.type=n;return o}Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,i;return{name:t,value:e.attribs[t],namespace:(r=e["x-attribsNamespace"])===null||r===void 0?void 0:r[t],prefix:(i=e["x-attribsPrefix"])===null||i===void 0?void 0:i[t]}}))},enumerable:false,configurable:true});return t}(f);t.Element=d;function m(e){return(0,s.isTag)(e)}t.isTag=m;function g(e){return e.type===s.ElementType.CDATA}t.isCDATA=g;function y(e){return e.type===s.ElementType.Text}t.isText=y;function b(e){return e.type===s.ElementType.Comment}t.isComment=b;function v(e){return e.type===s.ElementType.Directive}t.isDirective=v;function w(e){return e.type===s.ElementType.Root}t.isDocument=w;function x(e){return Object.prototype.hasOwnProperty.call(e,"children")}t.hasChildren=x;function T(e,t){if(t===void 0){t=false}var r;if(y(e)){r=new l(e.data)}else if(b(e)){r=new c(e.data)}else if(m(e)){var i=t?E(e.children):[];var s=new d(e.name,n({},e.attribs),i);i.forEach((function(e){return e.parent=s}));if(e.namespace!=null){s.namespace=e.namespace}if(e["x-attribsNamespace"]){s["x-attribsNamespace"]=n({},e["x-attribsNamespace"])}if(e["x-attribsPrefix"]){s["x-attribsPrefix"]=n({},e["x-attribsPrefix"])}r=s}else if(g(e)){var i=t?E(e.children):[];var o=new h(i);i.forEach((function(e){return e.parent=o}));r=o}else if(w(e)){var i=t?E(e.children):[];var a=new p(i);i.forEach((function(e){return e.parent=a}));if(e["x-mode"]){a["x-mode"]=e["x-mode"]}r=a}else if(v(e)){var f=new u(e.name,e.data);if(e["x-name"]!=null){f["x-name"]=e["x-name"];f["x-publicId"]=e["x-publicId"];f["x-systemId"]=e["x-systemId"]}r=f}else{throw new Error("Not implemented yet: ".concat(e.type))}r.startIndex=e.startIndex;r.endIndex=e.endIndex;if(e.sourceCodeLocation!=null){r.sourceCodeLocation=e.sourceCodeLocation}return r}t.cloneNode=T;function E(e){var t=e.map((function(e){return T(e,true)}));for(var r=1;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getFeed=void 0;var i=r(65247);var n=r(86851);function s(e){var t=f(d,e);return!t?null:t.name==="feed"?o(t):a(t)}t.getFeed=s;function o(e){var t;var r=e.children;var i={type:"atom",items:(0,n.getElementsByTagName)("entry",r).map((function(e){var t;var r=e.children;var i={media:u(r)};p(i,"id","id",r);p(i,"title","title",r);var n=(t=f("link",r))===null||t===void 0?void 0:t.attribs["href"];if(n){i.link=n}var s=h("summary",r)||h("content",r);if(s){i.description=s}var o=h("updated",r);if(o){i.pubDate=new Date(o)}return i}))};p(i,"id","id",r);p(i,"title","title",r);var s=(t=f("link",r))===null||t===void 0?void 0:t.attribs["href"];if(s){i.link=s}p(i,"description","subtitle",r);var o=h("updated",r);if(o){i.updated=new Date(o)}p(i,"author","email",r,true);return i}function a(e){var t,r;var i=(r=(t=f("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&r!==void 0?r:[];var s={type:e.name.substr(0,3),id:"",items:(0,n.getElementsByTagName)("item",e.children).map((function(e){var t=e.children;var r={media:u(t)};p(r,"id","guid",t);p(r,"title","title",t);p(r,"link","link",t);p(r,"description","description",t);var i=h("pubDate",t);if(i)r.pubDate=new Date(i);return r}))};p(s,"title","title",i);p(s,"link","link",i);p(s,"description","description",i);var o=h("lastBuildDate",i);if(o){s.updated=new Date(o)}p(s,"author","managingEditor",i,true);return s}var l=["url","type","lang"];var c=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function u(e){return(0,n.getElementsByTagName)("media:content",e).map((function(e){var t=e.attribs;var r={medium:t["medium"],isDefault:!!t["isDefault"]};for(var i=0,n=l;i{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uniqueSort=t.compareDocumentPosition=t.DocumentPosition=t.removeSubsets=void 0;var i=r(66443);function n(e){var t=e.length;while(--t>=0){var r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(var i=r.parent;i;i=i.parent){if(e.includes(i)){e.splice(t,1);break}}}return e}t.removeSubsets=n;var s;(function(e){e[e["DISCONNECTED"]=1]="DISCONNECTED";e[e["PRECEDING"]=2]="PRECEDING";e[e["FOLLOWING"]=4]="FOLLOWING";e[e["CONTAINS"]=8]="CONTAINS";e[e["CONTAINED_BY"]=16]="CONTAINED_BY"})(s=t.DocumentPosition||(t.DocumentPosition={}));function o(e,t){var r=[];var n=[];if(e===t){return 0}var o=(0,i.hasChildren)(e)?e:e.parent;while(o){r.unshift(o);o=o.parent}o=(0,i.hasChildren)(t)?t:t.parent;while(o){n.unshift(o);o=o.parent}var a=Math.min(r.length,n.length);var l=0;while(lu.indexOf(h)){if(c===t){return s.FOLLOWING|s.CONTAINED_BY}return s.FOLLOWING}if(c===e){return s.PRECEDING|s.CONTAINS}return s.PRECEDING}t.compareDocumentPosition=o;function a(e){e=e.filter((function(e,t,r){return!r.includes(e,t+1)}));e.sort((function(e,t){var r=o(e,t);if(r&s.PRECEDING){return-1}else if(r&s.FOLLOWING){return 1}return 0}));return e}t.uniqueSort=a},43970:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,n)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var n=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))i(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0;n(r(65247),t);n(r(21840),t);n(r(27049),t);n(r(28620),t);n(r(86851),t);n(r(89891),t);n(r(48115),t);var s=r(66443);Object.defineProperty(t,"isTag",{enumerable:true,get:function(){return s.isTag}});Object.defineProperty(t,"isCDATA",{enumerable:true,get:function(){return s.isCDATA}});Object.defineProperty(t,"isText",{enumerable:true,get:function(){return s.isText}});Object.defineProperty(t,"isComment",{enumerable:true,get:function(){return s.isComment}});Object.defineProperty(t,"isDocument",{enumerable:true,get:function(){return s.isDocument}});Object.defineProperty(t,"hasChildren",{enumerable:true,get:function(){return s.hasChildren}})},86851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var i=r(66443);var n=r(28620);var s={tag_name:function(e){if(typeof e==="function"){return function(t){return(0,i.isTag)(t)&&e(t.name)}}else if(e==="*"){return i.isTag}return function(t){return(0,i.isTag)(t)&&t.name===e}},tag_type:function(e){if(typeof e==="function"){return function(t){return e(t.type)}}return function(t){return t.type===e}},tag_contains:function(e){if(typeof e==="function"){return function(t){return(0,i.isText)(t)&&e(t.data)}}return function(t){return(0,i.isText)(t)&&t.data===e}}};function o(e,t){if(typeof t==="function"){return function(r){return(0,i.isTag)(r)&&t(r.attribs[e])}}return function(r){return(0,i.isTag)(r)&&r.attribs[e]===t}}function a(e,t){return function(r){return e(r)||t(r)}}function l(e){var t=Object.keys(e).map((function(t){var r=e[t];return Object.prototype.hasOwnProperty.call(s,t)?s[t](r):o(t,r)}));return t.length===0?null:t.reduce(a)}function c(e,t){var r=l(e);return r?r(t):true}t.testElement=c;function u(e,t,r,i){if(i===void 0){i=Infinity}var s=l(e);return s?(0,n.filter)(s,t,r,i):[]}t.getElements=u;function f(e,t,r){if(r===void 0){r=true}if(!Array.isArray(t))t=[t];return(0,n.findOne)(o("id",e),t,r)}t.getElementById=f;function h(e,t,r,i){if(r===void 0){r=true}if(i===void 0){i=Infinity}return(0,n.filter)(s["tag_name"](e),t,r,i)}t.getElementsByTagName=h;function p(e,t,r,i){if(r===void 0){r=true}if(i===void 0){i=Infinity}return(0,n.filter)(s["tag_type"](e),t,r,i)}t.getElementsByTagType=p},27049:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0;function r(e){if(e.prev)e.prev.next=e.next;if(e.next)e.next.prev=e.prev;if(e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}t.removeElement=r;function i(e,t){var r=t.prev=e.prev;if(r){r.next=t}var i=t.next=e.next;if(i){i.prev=t}var n=t.parent=e.parent;if(n){var s=n.children;s[s.lastIndexOf(e)]=t;e.parent=null}}t.replaceElement=i;function n(e,t){r(t);t.next=null;t.parent=e;if(e.children.push(t)>1){var i=e.children[e.children.length-2];i.next=t;t.prev=i}else{t.prev=null}}t.appendChild=n;function s(e,t){r(t);var i=e.parent;var n=e.next;t.next=n;t.prev=e;e.next=t;t.parent=i;if(n){n.prev=t;if(i){var s=i.children;s.splice(s.lastIndexOf(n),0,t)}}else if(i){i.children.push(t)}}t.append=s;function o(e,t){r(t);t.parent=e;t.prev=null;if(e.children.unshift(t)!==1){var i=e.children[1];i.prev=t;t.next=i}else{t.next=null}}t.prependChild=o;function a(e,t){r(t);var i=e.parent;if(i){var n=i.children;n.splice(n.indexOf(e),0,t)}if(e.prev){e.prev.next=t}t.parent=i;t.prev=e.prev;t.next=e;e.prev=t}t.prepend=a},28620:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var i=r(66443);function n(e,t,r,i){if(r===void 0){r=true}if(i===void 0){i=Infinity}if(!Array.isArray(t))t=[t];return s(e,t,r,i)}t.filter=n;function s(e,t,r,n){var o=[];for(var a=0,l=t;a0){var u=s(e,c.children,r,n);o.push.apply(o,u);n-=u.length;if(n<=0)break}}return o}t.find=s;function o(e,t){return t.find(e)}t.findOneChild=o;function a(e,t,r){if(r===void 0){r=true}var n=null;for(var s=0;s0){n=a(e,o.children,true)}}return n}t.findOne=a;function l(e,t){return t.some((function(t){return(0,i.isTag)(t)&&(e(t)||t.children.length>0&&l(e,t.children))}))}t.existsOne=l;function c(e,t){var r;var n=[];var s=t.filter(i.isTag);var o;while(o=s.shift()){var a=(r=o.children)===null||r===void 0?void 0:r.filter(i.isTag);if(a&&a.length>0){s.unshift.apply(s,a)}if(e(o))n.push(o)}return n}t.findAll=c},65247:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var n=r(66443);var s=i(r(53806));var o=r(45413);function a(e,t){return(0,s.default)(e,t)}t.getOuterHTML=a;function l(e,t){return(0,n.hasChildren)(e)?e.children.map((function(e){return a(e,t)})).join(""):""}t.getInnerHTML=l;function c(e){if(Array.isArray(e))return e.map(c).join("");if((0,n.isTag)(e))return e.name==="br"?"\n":c(e.children);if((0,n.isCDATA)(e))return c(e.children);if((0,n.isText)(e))return e.data;return""}t.getText=c;function u(e){if(Array.isArray(e))return e.map(u).join("");if((0,n.hasChildren)(e)&&!(0,n.isComment)(e)){return u(e.children)}if((0,n.isText)(e))return e.data;return""}t.textContent=u;function f(e){if(Array.isArray(e))return e.map(f).join("");if((0,n.hasChildren)(e)&&(e.type===o.ElementType.Tag||(0,n.isCDATA)(e))){return f(e.children)}if((0,n.isText)(e))return e.data;return""}t.innerText=f},21840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var i=r(66443);function n(e){return(0,i.hasChildren)(e)?e.children:[]}t.getChildren=n;function s(e){return e.parent||null}t.getParent=s;function o(e){var t,r;var i=s(e);if(i!=null)return n(i);var o=[e];var a=e.prev,l=e.next;while(a!=null){o.unshift(a);t=a,a=t.prev}while(l!=null){o.push(l);r=l,l=r.next}return o}t.getSiblings=o;function a(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}t.getAttributeValue=a;function l(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}t.hasAttrib=l;function c(e){return e.name}t.getName=c;function u(e){var t;var r=e.next;while(r!==null&&!(0,i.isTag)(r))t=r,r=t.next;return r}t.nextElementSibling=u;function f(e){var t;var r=e.prev;while(r!==null&&!(0,i.isTag)(r))t=r,r=t.prev;return r}t.prevElementSibling=f},66032:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.decodeXML=t.decodeHTMLStrict=t.decodeHTML=t.determineBranch=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var n=i(r(46125));t.htmlDecodeTree=n.default;var s=i(r(12715));t.xmlDecodeTree=s.default;var o=i(r(95390));t.decodeCodePoint=o.default;var a=r(95390);Object.defineProperty(t,"replaceCodePoint",{enumerable:true,get:function(){return a.replaceCodePoint}});Object.defineProperty(t,"fromCodePoint",{enumerable:true,get:function(){return a.fromCodePoint}});var l;(function(e){e[e["NUM"]=35]="NUM";e[e["SEMI"]=59]="SEMI";e[e["ZERO"]=48]="ZERO";e[e["NINE"]=57]="NINE";e[e["LOWER_A"]=97]="LOWER_A";e[e["LOWER_F"]=102]="LOWER_F";e[e["LOWER_X"]=120]="LOWER_X";e[e["To_LOWER_BIT"]=32]="To_LOWER_BIT"})(l||(l={}));var c;(function(e){e[e["VALUE_LENGTH"]=49152]="VALUE_LENGTH";e[e["BRANCH_LENGTH"]=16256]="BRANCH_LENGTH";e[e["JUMP_TABLE"]=127]="JUMP_TABLE"})(c=t.BinTrieFlags||(t.BinTrieFlags={}));function u(e){return function t(r,i){var n="";var s=0;var a=0;while((a=r.indexOf("&",a))>=0){n+=r.slice(s,a);s=a;a+=1;if(r.charCodeAt(a)===l.NUM){var u=a+1;var h=10;var p=r.charCodeAt(u);if((p|l.To_LOWER_BIT)===l.LOWER_X){h=16;a+=1;u+=1}do{p=r.charCodeAt(++a)}while(p>=l.ZERO&&p<=l.NINE||h===16&&(p|l.To_LOWER_BIT)>=l.LOWER_A&&(p|l.To_LOWER_BIT)<=l.LOWER_F);if(u!==a){var d=r.substring(u,a);var m=parseInt(d,h);if(r.charCodeAt(a)===l.SEMI){a+=1}else if(i){continue}n+=(0,o.default)(m);s=a}continue}var g=0;var y=1;var b=0;var v=e[b];for(;a>14)-1;if(x===0)break;b+=x}}if(g!==0){var x=(e[g]&c.VALUE_LENGTH)>>14;n+=x===1?String.fromCharCode(e[g]&~c.VALUE_LENGTH):x===2?String.fromCharCode(e[g+1]):String.fromCharCode(e[g+1],e[g+2]);s=a-y+1}}return n+r.slice(s)}}function f(e,t,r,i){var n=(t&c.BRANCH_LENGTH)>>7;var s=t&c.JUMP_TABLE;if(n===0){return s!==0&&i===s?r:-1}if(s){var o=i-s;return o<0||o>=n?-1:e[r+o]-1}var a=r;var l=a+n-1;while(a<=l){var u=a+l>>>1;var f=e[u];if(fi){l=u-1}else{return e[u+n]}}return-1}t.determineBranch=f;var h=u(n.default);var p=u(s.default);function d(e){return h(e,false)}t.decodeHTML=d;function m(e){return h(e,true)}t.decodeHTMLStrict=m;function g(e){return p(e,true)}t.decodeXML=g},95390:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.replaceCodePoint=t.fromCodePoint=void 0;var i=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(r=String.fromCodePoint)!==null&&r!==void 0?r:function(e){var t="";if(e>65535){e-=65536;t+=String.fromCharCode(e>>>10&1023|55296);e=56320|e&1023}t+=String.fromCharCode(e);return t};function n(e){var t;if(e>=55296&&e<=57343||e>1114111){return 65533}return(t=i.get(e))!==null&&t!==void 0?t:e}t.replaceCodePoint=n;function s(e){return(0,t.fromCodePoint)(n(e))}t["default"]=s},46125:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(e){return e.charCodeAt(0)})))},12715:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)})))},78682:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function r(e){return Object.prototype.toString.call(e)==="[object Object]"}function i(e){var t,i;if(r(e)===false)return false;t=e.constructor;if(t===undefined)return true;i=t.prototype;if(r(i)===false)return false;if(i.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=i},29466:function(e,t){var r,i,n;(function(s,o){if(true){!(i=[],r=o,n=typeof r==="function"?r.apply(t,i):r,n!==undefined&&(e.exports=n))}else{}})(this,(function(){return function(e){function t(e){return e===" "||e==="\t"||e==="\n"||e==="\f"||e==="\r"}function r(t){var r,i=t.exec(e.substring(m));if(i){r=i[0];m+=r.length;return r}}var i=e.length,n=/^[ \t\n\r\u000c]+/,s=/^[, \t\n\r\u000c]+/,o=/^[^ \t\n\r\u000c]+/,a=/[,]+$/,l=/^\d+$/,c=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,u,f,h,p,d,m=0,g=[];while(true){r(s);if(m>=i){return g}u=r(o);f=[];if(u.slice(-1)===","){u=u.replace(a,"");b()}else{y()}}function y(){r(n);h="";p="in descriptor";while(true){d=e.charAt(m);if(p==="in descriptor"){if(t(d)){if(h){f.push(h);h="";p="after descriptor"}}else if(d===","){m+=1;if(h){f.push(h)}b();return}else if(d==="("){h=h+d;p="in parens"}else if(d===""){if(h){f.push(h)}b();return}else{h=h+d}}else if(p==="in parens"){if(d===")"){h=h+d;p="in descriptor"}else if(d===""){f.push(h);b();return}else{h=h+d}}else if(p==="after descriptor"){if(t(d)){}else if(d===""){b();return}else{p="in descriptor";m-=1}}m+=1}}function b(){var t=false,r,i,n,s,o={},a,h,p,d,m;for(s=0;s{var t=String;var r=function(){return{isColorSupported:false,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=r();e.exports.createColors=r},40396:(e,t,r)=>{"use strict";let i=r(77793);class n extends i{constructor(e){super(e);this.type="atrule"}append(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...e)}prepend(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...e)}}e.exports=n;n.default=n;i.registerAtRule(n)},49371:(e,t,r)=>{"use strict";let i=r(63152);class n extends i{constructor(e){super(e);this.type="comment"}}e.exports=n;n.default=n},77793:(e,t,r)=>{"use strict";let{isClean:i,my:n}=r(84151);let s=r(35238);let o=r(49371);let a=r(63152);let l,c,u,f;function h(e){return e.map((e=>{if(e.nodes)e.nodes=h(e.nodes);delete e.source;return e}))}function p(e){e[i]=false;if(e.proxyOf.nodes){for(let t of e.proxyOf.nodes){p(t)}}}class d extends a{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}this.markDirty();return this}cleanRaws(e){super.cleanRaws(e);if(this.nodes){for(let t of this.nodes)t.cleanRaws(e)}}each(e){if(!this.proxyOf.nodes)return undefined;let t=this.getIterator();let r,i;while(this.indexes[t]e[t](...r.map((e=>{if(typeof e==="function"){return(t,r)=>e(t.toProxy(),r)}else{return e}})))}else if(t==="every"||t==="some"){return r=>e[t](((e,...t)=>r(e.toProxy(),...t)))}else if(t==="root"){return()=>e.root().toProxy()}else if(t==="nodes"){return e.nodes.map((e=>e.toProxy()))}else if(t==="first"||t==="last"){return e[t].toProxy()}else{return e[t]}},set(e,t,r){if(e[t]===r)return true;e[t]=r;if(t==="name"||t==="params"||t==="selector"){e.markDirty()}return true}}}index(e){if(typeof e==="number")return e;if(e.proxyOf)e=e.proxyOf;return this.proxyOf.nodes.indexOf(e)}insertAfter(e,t){let r=this.index(e);let i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let s of i)this.proxyOf.nodes.splice(r+1,0,s);let n;for(let s in this.indexes){n=this.indexes[s];if(r{if(!e[n])d.rebuild(e);e=e.proxyOf;if(e.parent)e.parent.removeChild(e);if(e[i])p(e);if(typeof e.raws.before==="undefined"){if(t&&typeof t.raws.before!=="undefined"){e.raws.before=t.raws.before.replace(/\S/g,"")}}e.parent=this.proxyOf;return e}));return r}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes){this.indexes[t]=this.indexes[t]+e.length}}this.markDirty();return this}push(e){e.parent=this;this.proxyOf.nodes.push(e);return this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=undefined;this.proxyOf.nodes=[];this.markDirty();return this}removeChild(e){e=this.index(e);this.proxyOf.nodes[e].parent=undefined;this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes){t=this.indexes[r];if(t>=e){this.indexes[r]=t-1}}this.markDirty();return this}replaceValues(e,t,r){if(!r){r=t;t={}}this.walkDecls((i=>{if(t.props&&!t.props.includes(i.prop))return;if(t.fast&&!i.value.includes(t.fast))return;i.value=i.value.replace(e,r)}));this.markDirty();return this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{let i;try{i=e(t,r)}catch(n){throw t.addToError(n)}if(i!==false&&t.walk){i=t.walk(e)}return i}))}walkAtRules(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="atrule"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,i)=>{if(r.type==="atrule"&&e.test(r.name)){return t(r,i)}}))}return this.walk(((r,i)=>{if(r.type==="atrule"&&r.name===e){return t(r,i)}}))}walkComments(e){return this.walk(((t,r)=>{if(t.type==="comment"){return e(t,r)}}))}walkDecls(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="decl"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,i)=>{if(r.type==="decl"&&e.test(r.prop)){return t(r,i)}}))}return this.walk(((r,i)=>{if(r.type==="decl"&&r.prop===e){return t(r,i)}}))}walkRules(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="rule"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,i)=>{if(r.type==="rule"&&e.test(r.selector)){return t(r,i)}}))}return this.walk(((r,i)=>{if(r.type==="rule"&&r.selector===e){return t(r,i)}}))}get first(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}d.registerParse=e=>{l=e};d.registerRule=e=>{c=e};d.registerAtRule=e=>{u=e};d.registerRoot=e=>{f=e};e.exports=d;d.default=d;d.rebuild=e=>{if(e.type==="atrule"){Object.setPrototypeOf(e,u.prototype)}else if(e.type==="rule"){Object.setPrototypeOf(e,c.prototype)}else if(e.type==="decl"){Object.setPrototypeOf(e,s.prototype)}else if(e.type==="comment"){Object.setPrototypeOf(e,o.prototype)}else if(e.type==="root"){Object.setPrototypeOf(e,f.prototype)}e[n]=true;if(e.nodes){e.nodes.forEach((e=>{d.rebuild(e)}))}}},53614:(e,t,r)=>{"use strict";let i=r(48633);let n=r(49746);class s extends Error{constructor(e,t,r,i,n,o){super(e);this.name="CssSyntaxError";this.reason=e;if(n){this.file=n}if(i){this.source=i}if(o){this.plugin=o}if(typeof t!=="undefined"&&typeof r!=="undefined"){if(typeof t==="number"){this.line=t;this.column=r}else{this.line=t.line;this.column=t.column;this.endLine=r.line;this.endColumn=r.column}}this.setMessage();if(Error.captureStackTrace){Error.captureStackTrace(this,s)}}setMessage(){this.message=this.plugin?this.plugin+": ":"";this.message+=this.file?this.file:"";if(typeof this.line!=="undefined"){this.message+=":"+this.line+":"+this.column}this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;if(e==null)e=i.isColorSupported;if(n){if(e)t=n(t)}let r=t.split(/\r?\n/);let s=Math.max(this.line-3,0);let o=Math.min(this.line+2,r.length);let a=String(o).length;let l,c;if(e){let{bold:e,gray:t,red:r}=i.createColors(true);l=t=>e(r(t));c=e=>t(e)}else{l=c=e=>e}return r.slice(s,o).map(((e,t)=>{let r=s+1+t;let i=" "+(" "+r).slice(-a)+" | ";if(r===this.line){let t=c(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+c(i)+e+"\n "+t+l("^")}return" "+c(i)+e})).join("\n")}toString(){let e=this.showSourceCode();if(e){e="\n\n"+e+"\n"}return this.name+": "+this.message+e}}e.exports=s;s.default=s},35238:(e,t,r)=>{"use strict";let i=r(63152);class n extends i{constructor(e){if(e&&typeof e.value!=="undefined"&&typeof e.value!=="string"){e={...e,value:String(e.value)}}super(e);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}e.exports=n;n.default=n},40145:(e,t,r)=>{"use strict";let i=r(77793);let n,s;class o extends i{constructor(e){super({type:"document",...e});if(!this.nodes){this.nodes=[]}}toResult(e={}){let t=new n(new s,this,e);return t.stringify()}}o.registerLazyResult=e=>{n=e};o.registerProcessor=e=>{s=e};e.exports=o;o.default=o},33438:(e,t,r)=>{"use strict";let i=r(35238);let n=r(93878);let s=r(49371);let o=r(40396);let a=r(61106);let l=r(25644);let c=r(61534);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:r,...f}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:a.prototype};if(r.map){r.map={...r.map,__proto__:n.prototype}}t.push(r)}}if(f.nodes){f.nodes=e.nodes.map((e=>u(e,t)))}if(f.source){let{inputId:e,...r}=f.source;f.source=r;if(e!=null){f.source.input=t[e]}}if(f.type==="root"){return new l(f)}else if(f.type==="decl"){return new i(f)}else if(f.type==="rule"){return new c(f)}else if(f.type==="comment"){return new s(f)}else if(f.type==="atrule"){return new o(f)}else{throw new Error("Unknown node type: "+e.type)}}e.exports=u;u.default=u},61106:(e,t,r)=>{"use strict";let{SourceMapConsumer:i,SourceMapGenerator:n}=r(21866);let{fileURLToPath:s,pathToFileURL:o}=r(52739);let{isAbsolute:a,resolve:l}=r(197);let{nanoid:c}=r(95042);let u=r(49746);let f=r(53614);let h=r(93878);let p=Symbol("fromOffsetCache");let d=Boolean(i&&n);let m=Boolean(l&&a);class g{constructor(e,t={}){if(e===null||typeof e==="undefined"||typeof e==="object"&&!e.toString){throw new Error(`PostCSS received ${e} instead of CSS string`)}this.css=e.toString();if(this.css[0]==="\ufeff"||this.css[0]==="￾"){this.hasBOM=true;this.css=this.css.slice(1)}else{this.hasBOM=false}if(t.from){if(!m||/^\w+:\/\//.test(t.from)||a(t.from)){this.file=t.from}else{this.file=l(t.from)}}if(m&&d){let e=new h(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;if(!this.file&&t)this.file=this.mapResolve(t)}}if(!this.file){this.id=""}if(this.map)this.map.file=this.from}error(e,t,r,i={}){let n,s,a;if(t&&typeof t==="object"){let e=t;let i=r;if(typeof e.offset==="number"){let i=this.fromOffset(e.offset);t=i.line;r=i.col}else{t=e.line;r=e.column}if(typeof i.offset==="number"){let e=this.fromOffset(i.offset);s=e.line;a=e.col}else{s=i.line;a=i.column}}else if(!r){let e=this.fromOffset(t);t=e.line;r=e.col}let l=this.origin(t,r,s,a);if(l){n=new f(e,l.endLine===undefined?l.line:{column:l.column,line:l.line},l.endLine===undefined?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,i.plugin)}else{n=new f(e,s===undefined?t:{column:r,line:t},s===undefined?r:{column:a,line:s},this.css,this.file,i.plugin)}n.input={column:r,endColumn:a,endLine:s,line:t,source:this.css};if(this.file){if(o){n.input.url=o(this.file).toString()}n.input.file=this.file}return n}fromOffset(e){let t,r;if(!this[p]){let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let i=0,n=e.length;i=t){i=r.length-1}else{let t=r.length-2;let n;while(i>1);if(e=r[n+1]){i=n+1}else{i=n;break}}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){if(/^\w+:\/\//.test(e)){return e}return l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return false;let n=this.map.consumer();let l=n.originalPositionFor({column:t,line:e});if(!l.source)return false;let c;if(typeof r==="number"){c=n.originalPositionFor({column:i,line:r})}let u;if(a(l.source)){u=o(l.source)}else{u=new URL(l.source,this.map.consumer().sourceRoot||o(this.map.mapFile))}let f={column:l.column,endColumn:c&&c.column,endLine:c&&c.line,line:l.line,url:u.toString()};if(u.protocol==="file:"){if(s){f.file=s(u)}else{throw new Error(`file: protocol is not available in this PostCSS build`)}}let h=n.sourceContentFor(l.source);if(h)f.source=h;return f}toJSON(){let e={};for(let t of["hasBOM","css","file","id"]){if(this[t]!=null){e[t]=this[t]}}if(this.map){e.map={...this.map};if(e.map.consumerCache){e.map.consumerCache=undefined}}return e}get from(){return this.file||this.id}}e.exports=g;g.default=g;if(u&&u.registerInput){u.registerInput(g)}},96966:(e,t,r)=>{"use strict";let{isClean:i,my:n}=r(84151);let s=r(13604);let o=r(83303);let a=r(77793);let l=r(40145);let c=r(6156);let u=r(33717);let f=r(69577);let h=r(25644);const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"};const d={AtRule:true,AtRuleExit:true,Comment:true,CommentExit:true,Declaration:true,DeclarationExit:true,Document:true,DocumentExit:true,Once:true,OnceExit:true,postcssPlugin:true,prepare:true,Root:true,RootExit:true,Rule:true,RuleExit:true};const m={Once:true,postcssPlugin:true,prepare:true};const g=0;function y(e){return typeof e==="object"&&typeof e.then==="function"}function b(e){let t=false;let r=p[e.type];if(e.type==="decl"){t=e.prop.toLowerCase()}else if(e.type==="atrule"){t=e.name.toLowerCase()}if(t&&e.append){return[r,r+"-"+t,g,r+"Exit",r+"Exit-"+t]}else if(t){return[r,r+"-"+t,r+"Exit",r+"Exit-"+t]}else if(e.append){return[r,g,r+"Exit"]}else{return[r,r+"Exit"]}}function v(e){let t;if(e.type==="document"){t=["Document",g,"DocumentExit"]}else if(e.type==="root"){t=["Root",g,"RootExit"]}else{t=b(e)}return{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function w(e){e[i]=false;if(e.nodes)e.nodes.forEach((e=>w(e)));return e}let x={};class T{constructor(e,t,r){this.stringified=false;this.processed=false;let i;if(typeof t==="object"&&t!==null&&(t.type==="root"||t.type==="document")){i=w(t)}else if(t instanceof T||t instanceof u){i=w(t.root);if(t.map){if(typeof r.map==="undefined")r.map={};if(!r.map.inline)r.map.inline=false;r.map.prev=t.map}}else{let e=f;if(r.syntax)e=r.syntax.parse;if(r.parser)e=r.parser;if(e.parse)e=e.parse;try{i=e(t,r)}catch(s){this.processed=true;this.error=s}if(i&&!i[n]){a.rebuild(i)}}this.result=new u(e,i,r);this.helpers={...x,postcss:x,result:this.result};this.plugins=this.processor.plugins.map((e=>{if(typeof e==="object"&&e.prepare){return{...e,...e.prepare(this.result)}}else{return e}}))}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing){this.processing=this.runAsync()}return this.processing}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t)t.addToError(e);this.error=e;if(e.name==="CssSyntaxError"&&!e.plugin){e.plugin=r.postcssPlugin;e.setMessage()}else if(r.postcssVersion){if(false){}}}catch(i){if(console&&console.error)console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{if(!this.listeners[t])this.listeners[t]=[];this.listeners[t].push([e,r])};for(let t of this.plugins){if(typeof t==="object"){for(let r in t){if(!d[r]&&/^[A-Z]/.test(r)){throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. `+`Try to update PostCSS (${this.processor.version} now).`)}if(!m[r]){if(typeof t[r]==="object"){for(let i in t[r]){if(i==="*"){e(t,r,t[r][i])}else{e(t,r+"-"+i.toLowerCase(),t[r][i])}}}else if(typeof t[r]==="function"){e(t,r,t[r])}}}}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let r=0;r0){let e=this.visitTick(r);if(y(e)){try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}}if(this.listeners.OnceExit){for(let[r,i]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let t=e.nodes.map((e=>i(e,this.helpers)));await Promise.all(t)}else{await i(e,this.helpers)}}catch(t){throw this.handleError(t)}}}}this.processed=true;return this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));if(y(t[0])){return Promise.all(t)}return t}return e.Once(this.result.root,this.helpers)}else if(typeof e==="function"){return e(this.result.root,this.result)}}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=true;this.sync();let e=this.result.opts;let t=o;if(e.syntax)t=e.syntax.stringify;if(e.stringifier)t=e.stringifier;if(t.stringify)t=t.stringify;let r=new s(t,this.result.root,this.result.opts);let i=r.generate();this.result.css=i[0];this.result.map=i[1];return this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;this.processed=true;if(this.processing){throw this.getAsyncError()}for(let e of this.plugins){let t=this.runOnRoot(e);if(y(t)){throw this.getAsyncError()}}this.prepareVisitors();if(this.hasListener){let e=this.result.root;while(!e[i]){e[i]=true;this.walkSync(e)}if(this.listeners.OnceExit){if(e.type==="document"){for(let t of e.nodes){this.visitSync(this.listeners.OnceExit,t)}}else{this.visitSync(this.listeners.OnceExit,e)}}}return this.result}then(e,t){if(false){}return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[i,n]of e){this.result.lastPlugin=i;let e;try{e=n(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent){return true}if(y(e)){throw this.getAsyncError()}}}visitTick(e){let t=e[e.length-1];let{node:r,visitors:n}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&t.visitorIndex{if(!e[i])this.walkSync(e)}))}}else{let t=this.listeners[r];if(t){if(this.visitSync(t,e.toProxy()))return}}}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}T.registerPostcss=e=>{x=e};e.exports=T;T.default=T;h.registerLazyResult(T);l.registerLazyResult(T)},81752:e=>{"use strict";let t={comma(e){return t.split(e,[","],true)},space(e){let r=[" ","\n","\t"];return t.split(e,r)},split(e,t,r){let i=[];let n="";let s=false;let o=0;let a=false;let l="";let c=false;for(let u of e){if(c){c=false}else if(u==="\\"){c=true}else if(a){if(u===l){a=false}}else if(u==='"'||u==="'"){a=true;l=u}else if(u==="("){o+=1}else if(u===")"){if(o>0)o-=1}else if(o===0){if(t.includes(u))s=true}if(s){if(n!=="")i.push(n.trim());n="";s=false}else{n+=u}}if(r||n!=="")i.push(n.trim());return i}};e.exports=t;t.default=t},13604:(e,t,r)=>{"use strict";let{SourceMapConsumer:i,SourceMapGenerator:n}=r(21866);let{dirname:s,relative:o,resolve:a,sep:l}=r(197);let{pathToFileURL:c}=r(52739);let u=r(61106);let f=Boolean(i&&n);let h=Boolean(s&&a&&o&&l);class p{constructor(e,t,r,i){this.stringify=e;this.mapOpts=r.map||{};this.root=t;this.opts=r;this.css=i;this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute;this.memoizedFileURLs=new Map;this.memoizedPaths=new Map;this.memoizedURLs=new Map}addAnnotation(){let e;if(this.isInline()){e="data:application/json;base64,"+this.toBase64(this.map.toString())}else if(typeof this.mapOpts.annotation==="string"){e=this.mapOpts.annotation}else if(typeof this.mapOpts.annotation==="function"){e=this.mapOpts.annotation(this.opts.to,this.root)}else{e=this.outputFile()+".map"}let t="\n";if(this.css.includes("\r\n"))t="\r\n";this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file));let r=e.root||s(e.file);let n;if(this.mapOpts.sourcesContent===false){n=new i(e.text);if(n.sourcesContent){n.sourcesContent=n.sourcesContent.map((()=>null))}}else{n=e.consumer()}this.map.applySourceMap(n,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation===false)return;if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--){e=this.root.nodes[t];if(e.type!=="comment")continue;if(e.text.indexOf("# sourceMappingURL=")===0){this.root.removeChild(t)}}}else if(this.css){this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,"")}}generate(){this.clearAnnotation();if(h&&f&&this.isMap()){return this.generateMap()}else{let e="";this.stringify(this.root,(t=>{e+=t}));return[e]}}generateMap(){if(this.root){this.generateString()}else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile();this.map=n.fromSourceMap(e)}else{this.map=new n({file:this.outputFile()});this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""})}if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline()){return[this.css]}else{return[this.css,this.map]}}generateString(){this.css="";this.map=new n({file:this.outputFile()});let e=1;let t=1;let r="";let i={generated:{column:0,line:0},original:{column:0,line:0},source:""};let s,o;this.stringify(this.root,((n,a,l)=>{this.css+=n;if(a&&l!=="end"){i.generated.line=e;i.generated.column=t-1;if(a.source&&a.source.start){i.source=this.sourcePath(a);i.original.line=a.source.start.line;i.original.column=a.source.start.column-1;this.map.addMapping(i)}else{i.source=r;i.original.line=1;i.original.column=0;this.map.addMapping(i)}}s=n.match(/\n/g);if(s){e+=s.length;o=n.lastIndexOf("\n");t=n.length-o}else{t+=n.length}if(a&&l!=="start"){let n=a.parent||{raws:{}};let s=a.type==="decl"||a.type==="atrule"&&!a.nodes;if(!s||a!==n.last||n.raws.semicolon){if(a.source&&a.source.end){i.source=this.sourcePath(a);i.original.line=a.source.end.line;i.original.column=a.source.end.column-1;i.generated.line=e;i.generated.column=t-2;this.map.addMapping(i)}else{i.source=r;i.original.line=1;i.original.column=0;i.generated.line=e;i.generated.column=t-1;this.map.addMapping(i)}}}}))}isAnnotation(){if(this.isInline()){return true}if(typeof this.mapOpts.annotation!=="undefined"){return this.mapOpts.annotation}if(this.previous().length){return this.previous().some((e=>e.annotation))}return true}isInline(){if(typeof this.mapOpts.inline!=="undefined"){return this.mapOpts.inline}let e=this.mapOpts.annotation;if(typeof e!=="undefined"&&e!==true){return false}if(this.previous().length){return this.previous().some((e=>e.inline))}return true}isMap(){if(typeof this.opts.map!=="undefined"){return!!this.opts.map}return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent!=="undefined"){return this.mapOpts.sourcesContent}if(this.previous().length){return this.previous().some((e=>e.withContent()))}return true}outputFile(){if(this.opts.to){return this.path(this.opts.to)}else if(this.opts.from){return this.path(this.opts.from)}else{return"to.css"}}path(e){if(this.mapOpts.absolute)return e;if(e.charCodeAt(0)===60)return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?s(this.opts.to):".";if(typeof this.mapOpts.annotation==="string"){r=s(a(r,this.mapOpts.annotation))}let i=o(r,e);this.memoizedPaths.set(e,i);return i}previous(){if(!this.previousMaps){this.previousMaps=[];if(this.root){this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;if(!this.previousMaps.includes(t)){this.previousMaps.push(t)}}}))}else{let e=new u(this.css,this.opts);if(e.map)this.previousMaps.push(e.map)}}return this.previousMaps}setSourcesContent(){let e={};if(this.root){this.root.walk((t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=true;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}}))}else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(e,this.css)}}sourcePath(e){if(this.mapOpts.from){return this.toUrl(this.mapOpts.from)}else if(this.usesFileUrls){return this.toFileUrl(e.source.input.from)}else{return this.toUrl(this.path(e.source.input.from))}}toBase64(e){if(Buffer){return Buffer.from(e).toString("base64")}else{return window.btoa(unescape(encodeURIComponent(e)))}}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();this.memoizedFileURLs.set(e,t);return t}else{throw new Error("`map.absolute` option is not available in this PostCSS build")}}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;if(l==="\\"){e=e.replace(/\\/g,"/")}let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);this.memoizedURLs.set(e,r);return r}}e.exports=p},84211:(e,t,r)=>{"use strict";let i=r(13604);let n=r(83303);let s=r(6156);let o=r(69577);const a=r(33717);class l{constructor(e,t,r){t=t.toString();this.stringified=false;this._processor=e;this._css=t;this._opts=r;this._map=undefined;let s;let o=n;this.result=new a(this._processor,s,this._opts);this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let c=new i(o,s,this._opts,t);if(c.isMap()){let[e,t]=c.generate();if(e){this.result.css=e}if(t){this.result.map=t}}}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){if(false){}return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root){return this._root}let e;let t=o;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error){throw this.error}else{this._root=e;return e}}get[Symbol.toStringTag](){return"NoWorkResult"}}e.exports=l;l.default=l},63152:(e,t,r)=>{"use strict";let{isClean:i,my:n}=r(84151);let s=r(53614);let o=r(47668);let a=r(83303);function l(e,t){let r=new e.constructor;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)){continue}if(i==="proxyCache")continue;let n=e[i];let s=typeof n;if(i==="parent"&&s==="object"){if(t)r[i]=t}else if(i==="source"){r[i]=n}else if(Array.isArray(n)){r[i]=n.map((e=>l(e,r)))}else{if(s==="object"&&n!==null)n=l(n);r[i]=n}}return r}class c{constructor(e={}){this.raws={};this[i]=false;this[n]=true;for(let t in e){if(t==="nodes"){this.nodes=[];for(let r of e[t]){if(typeof r.clone==="function"){this.append(r.clone())}else{this.append(r)}}}else{this[t]=e[t]}}}addToError(e){e.postcssNode=this;if(e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){this.parent.insertAfter(this,e);return this}assign(e={}){for(let t in e){this[t]=e[t]}return this}before(e){this.parent.insertBefore(this,e);return this}cleanRaws(e){delete this.raws.before;delete this.raws.after;if(!e)delete this.raws.between}clone(e={}){let t=l(this);for(let r in e){t[r]=e[r]}return t}cloneAfter(e={}){let t=this.clone(e);this.parent.insertAfter(this,t);return t}cloneBefore(e={}){let t=this.clone(e);this.parent.insertBefore(this,t);return t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new s(e)}getProxyProcessor(){return{get(e,t){if(t==="proxyOf"){return e}else if(t==="root"){return()=>e.root().toProxy()}else{return e[t]}},set(e,t,r){if(e[t]===r)return true;e[t]=r;if(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text"){e.markDirty()}return true}}}markDirty(){if(this[i]){this[i]=false;let e=this;while(e=e.parent){e[i]=false}}}next(){if(!this.parent)return undefined;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index){r=this.positionInside(e.index,t)}else if(e.word){t=this.toString();let i=t.indexOf(e.word);if(i!==-1)r=this.positionInside(i,t)}return r}positionInside(e,t){let r=t||this.toString();let i=this.source.start.column;let n=this.source.start.line;for(let s=0;s{if(typeof e==="object"&&e.toJSON){return e.toJSON(null,t)}else{return e}}))}else if(typeof e==="object"&&e.toJSON){r[s]=e.toJSON(null,t)}else if(s==="source"){let i=t.get(e.input);if(i==null){i=n;t.set(e.input,n);n++}r[s]={end:e.end,inputId:i,start:e.start}}else{r[s]=e}}if(i){r.inputs=[...t.keys()].map((e=>e.toJSON()))}return r}toProxy(){if(!this.proxyCache){this.proxyCache=new Proxy(this,this.getProxyProcessor())}return this.proxyCache}toString(e=a){if(e.stringify)e=e.stringify;let t="";e(this,(e=>{t+=e}));return t}warn(e,t,r){let i={node:this};for(let n in r)i[n]=r[n];return e.warn(t,i)}get proxyOf(){return this}}e.exports=c;c.default=c},69577:(e,t,r)=>{"use strict";let i=r(77793);let n=r(68339);let s=r(61106);function o(e,t){let r=new s(e,t);let i=new n(r);try{i.parse()}catch(o){if(false){}throw o}return i.root}e.exports=o;o.default=o;i.registerParse(o)},68339:(e,t,r)=>{"use strict";let i=r(35238);let n=r(45781);let s=r(49371);let o=r(40396);let a=r(25644);let l=r(61534);const c={empty:true,space:true};function u(e){for(let t=e.length-1;t>=0;t--){let r=e[t];let i=r[3]||r[2];if(i)return i}}class f{constructor(e){this.input=e;this.root=new a;this.current=this.root;this.spaces="";this.semicolon=false;this.customProperty=false;this.createTokenizer();this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new o;t.name=e[1].slice(1);if(t.name===""){this.unnamedAtrule(t,e)}this.init(t,e[2]);let r;let i;let n;let s=false;let a=false;let l=[];let c=[];while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();r=e[0];if(r==="("||r==="["){c.push(r==="("?")":"]")}else if(r==="{"&&c.length>0){c.push("}")}else if(r===c[c.length-1]){c.pop()}if(c.length===0){if(r===";"){t.source.end=this.getPosition(e[2]);t.source.end.offset++;this.semicolon=true;break}else if(r==="{"){a=true;break}else if(r==="}"){if(l.length>0){n=l.length-1;i=l[n];while(i&&i[0]==="space"){i=l[--n]}if(i){t.source.end=this.getPosition(i[3]||i[2]);t.source.end.offset++}}this.end(e);break}else{l.push(e)}}else{l.push(e)}if(this.tokenizer.endOfFile()){s=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(l);if(l.length){t.raws.afterName=this.spacesAndCommentsFromStart(l);this.raw(t,"params",l);if(s){e=l[l.length-1];t.source.end=this.getPosition(e[3]||e[2]);t.source.end.offset++;this.spaces=t.raws.between;t.raws.between=""}}else{t.raws.afterName="";t.params=""}if(a){t.nodes=[];this.current=t}}checkMissedSemicolon(e){let t=this.colon(e);if(t===false)return;let r=0;let i;for(let n=t-1;n>=0;n--){i=e[n];if(i[0]!=="space"){r+=1;if(r===2)break}}throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0;let r,i,n;for(let[s,o]of e.entries()){r=o;i=r[0];if(i==="("){t+=1}if(i===")"){t-=1}if(t===0&&i===":"){if(!n){this.doubleColon(r)}else if(n[0]==="word"&&n[1]==="progid"){continue}else{return s}}n=r}return false}comment(e){let t=new s;this.init(t,e[2]);t.source.end=this.getPosition(e[3]||e[2]);t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r)){t.text="";t.raws.left=r;t.raws.right=""}else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2];t.raws.left=e[1];t.raws.right=e[3]}}createTokenizer(){this.tokenizer=n(this.input)}decl(e,t){let r=new i;this.init(r,e[0][2]);let n=e[e.length-1];if(n[0]===";"){this.semicolon=true;e.pop()}r.source.end=this.getPosition(n[3]||n[2]||u(e));r.source.end.offset++;while(e[0][0]!=="word"){if(e.length===1)this.unknownWord(e);r.raws.before+=e.shift()[1]}r.source.start=this.getPosition(e[0][2]);r.prop="";while(e.length){let t=e[0][0];if(t===":"||t==="space"||t==="comment"){break}r.prop+=e.shift()[1]}r.raws.between="";let s;while(e.length){s=e.shift();if(s[0]===":"){r.raws.between+=s[1];break}else{if(s[0]==="word"&&/\w/.test(s[1])){this.unknownWord([s])}r.raws.between+=s[1]}}if(r.prop[0]==="_"||r.prop[0]==="*"){r.raws.before+=r.prop[0];r.prop=r.prop.slice(1)}let o=[];let a;while(e.length){a=e[0][0];if(a!=="space"&&a!=="comment")break;o.push(e.shift())}this.precheckMissedSemicolon(e);for(let i=e.length-1;i>=0;i--){s=e[i];if(s[1].toLowerCase()==="!important"){r.important=true;let t=this.stringFrom(e,i);t=this.spacesFromEnd(e)+t;if(t!==" !important")r.raws.important=t;break}else if(s[1].toLowerCase()==="important"){let t=e.slice(0);let n="";for(let e=i;e>0;e--){let r=t[e][0];if(n.trim().indexOf("!")===0&&r!=="space"){break}n=t.pop()[1]+n}if(n.trim().indexOf("!")===0){r.important=true;r.raws.important=n;e=t}}if(s[0]!=="space"&&s[0]!=="comment"){break}}let l=e.some((e=>e[0]!=="space"&&e[0]!=="comment"));if(l){r.raws.between+=o.map((e=>e[1])).join("");o=[]}this.raw(r,"value",o.concat(e),t);if(r.value.includes(":")&&!t){this.checkMissedSemicolon(e)}}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new l;this.init(t,e[2]);t.selector="";t.raws.between="";this.current=t}end(e){if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.semicolon=false;this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.spaces="";if(this.current.parent){this.current.source.end=this.getPosition(e[2]);this.current.source.end.offset++;this.current=this.current.parent}else{this.unexpectedClose(e)}}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){this.spaces+=e[1];if(this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];if(e&&e.type==="rule"&&!e.raws.ownSemicolon){e.raws.ownSemicolon=this.spaces;this.spaces=""}}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e);e.source={input:this.input,start:this.getPosition(t)};e.raws.before=this.spaces;this.spaces="";if(e.type!=="comment")this.semicolon=false}other(e){let t=false;let r=null;let i=false;let n=null;let s=[];let o=e[1].startsWith("--");let a=[];let l=e;while(l){r=l[0];a.push(l);if(r==="("||r==="["){if(!n)n=l;s.push(r==="("?")":"]")}else if(o&&i&&r==="{"){if(!n)n=l;s.push("}")}else if(s.length===0){if(r===";"){if(i){this.decl(a,o);return}else{break}}else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop());t=true;break}else if(r===":"){i=true}}else if(r===s[s.length-1]){s.pop();if(s.length===0)n=null}l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())t=true;if(s.length>0)this.unclosedBracket(n);if(t&&i){if(!o){while(a.length){l=a[a.length-1][0];if(l!=="space"&&l!=="comment")break;this.tokenizer.back(a.pop())}}this.decl(a,o)}else{this.unknownWord(a)}}parse(){let e;while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();switch(e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let n,s;let o=r.length;let a="";let l=true;let u,f;for(let h=0;he+t[1]),"");e.raws[t]={raw:i,value:a}}e[t]=a}rule(e){e.pop();let t=new l;this.init(t,e[0][2]);t.raws.between=this.spacesAndCommentsFromEnd(e);this.raw(t,"selector",e);this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";while(e.length){t=e[e.length-1][0];if(t!=="space"&&t!=="comment")break;r=e.pop()[1]+r}return r}spacesAndCommentsFromStart(e){let t;let r="";while(e.length){t=e[0][0];if(t!=="space"&&t!=="comment")break;r+=e.shift()[1]}return r}spacesFromEnd(e){let t;let r="";while(e.length){t=e[e.length-1][0];if(t!=="space")break;r=e.pop()[1]+r}return r}stringFrom(e,t){let r="";for(let i=t;i{"use strict";var i=r(65606);let n=r(53614);let s=r(35238);let o=r(96966);let a=r(77793);let l=r(96846);let c=r(83303);let u=r(33438);let f=r(40145);let h=r(60038);let p=r(49371);let d=r(40396);let m=r(33717);let g=r(61106);let y=r(69577);let b=r(81752);let v=r(61534);let w=r(25644);let x=r(63152);function T(...e){if(e.length===1&&Array.isArray(e[0])){e=e[0]}return new l(e)}T.plugin=function e(t,r){let n=false;function s(...e){if(console&&console.warn&&!n){n=true;console.warn(t+": postcss.plugin was deprecated. Migration guide:\n"+"https://evilmartians.com/chronicles/postcss-8-plugin-migration");if(i.env.LANG&&i.env.LANG.startsWith("cn")){console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\n"+"https://www.w3ctech.com/topic/2226")}}let s=r(...e);s.postcssPlugin=t;s.postcssVersion=(new l).version;return s}let o;Object.defineProperty(s,"postcss",{get(){if(!o)o=s();return o}});s.process=function(e,t,r){return T([s(r)]).process(e,t)};return s};T.stringify=c;T.parse=y;T.fromJSON=u;T.list=b;T.comment=e=>new p(e);T.atRule=e=>new d(e);T.decl=e=>new s(e);T.rule=e=>new v(e);T.root=e=>new w(e);T.document=e=>new f(e);T.CssSyntaxError=n;T.Declaration=s;T.Container=a;T.Processor=l;T.Document=f;T.Comment=p;T.Warning=h;T.AtRule=d;T.Result=m;T.Input=g;T.Rule=v;T.Root=w;T.Node=x;o.registerPostcss(T);e.exports=T;T.default=T},93878:(e,t,r)=>{"use strict";let{SourceMapConsumer:i,SourceMapGenerator:n}=r(21866);let{existsSync:s,readFileSync:o}=r(19977);let{dirname:a,join:l}=r(197);function c(e){if(Buffer){return Buffer.from(e,"base64").toString()}else{return window.atob(e)}}class u{constructor(e,t){if(t.map===false)return;this.loadAnnotation(e);this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:undefined;let i=this.loadMap(t.from,r);if(!this.mapFile&&t.from){this.mapFile=t.from}if(this.mapFile)this.root=a(this.mapFile);if(i)this.text=i}consumer(){if(!this.consumerCache){this.consumerCache=new i(this.text)}return this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/;let r=/^data:application\/json;base64,/;let i=/^data:application\/json;charset=utf-?8,/;let n=/^data:application\/json,/;if(i.test(e)||n.test(e)){return decodeURIComponent(e.substr(RegExp.lastMatch.length))}if(t.test(e)||r.test(e)){return c(e.substr(RegExp.lastMatch.length))}let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){if(typeof e!=="object")return false;return typeof e.mappings==="string"||typeof e._mappings==="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop());let i=e.indexOf("*/",r);if(r>-1&&i>-1){this.annotation=this.getAnnotationURL(e.substring(r,i))}}loadFile(e){this.root=a(e);if(s(e)){this.mapFile=e;return o(e,"utf-8").toString().trim()}}loadMap(e,t){if(t===false)return false;if(t){if(typeof t==="string"){return t}else if(typeof t==="function"){let r=t(e);if(r){let e=this.loadFile(r);if(!e){throw new Error("Unable to load previous source map: "+r.toString())}return e}}else if(t instanceof i){return n.fromSourceMap(t).toString()}else if(t instanceof n){return t.toString()}else if(this.isMap(t)){return JSON.stringify(t)}else{throw new Error("Unsupported previous source map format: "+t.toString())}}else if(this.inline){return this.decodeInline(this.annotation)}else if(this.annotation){let t=this.annotation;if(e)t=l(a(e),t);return this.loadFile(t)}}startWith(e,t){if(!e)return false;return e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=u;u.default=u},96846:(e,t,r)=>{"use strict";let i=r(84211);let n=r(96966);let s=r(40145);let o=r(25644);class a{constructor(e=[]){this.version="8.4.31";this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e){if(r.postcss===true){r=r()}else if(r.postcss){r=r.postcss}if(typeof r==="object"&&Array.isArray(r.plugins)){t=t.concat(r.plugins)}else if(typeof r==="object"&&r.postcssPlugin){t.push(r)}else if(typeof r==="function"){t.push(r)}else if(typeof r==="object"&&(r.parse||r.stringify)){if(false){}}else{throw new Error(r+" is not a PostCSS plugin")}}return t}process(e,t={}){if(this.plugins.length===0&&typeof t.parser==="undefined"&&typeof t.stringifier==="undefined"&&typeof t.syntax==="undefined"){return new i(this,e,t)}else{return new n(this,e,t)}}use(e){this.plugins=this.plugins.concat(this.normalize([e]));return this}}e.exports=a;a.default=a;o.registerProcessor(a);s.registerProcessor(a)},33717:(e,t,r)=>{"use strict";let i=r(60038);class n{constructor(e,t,r){this.processor=e;this.messages=[];this.root=t;this.opts=r;this.css=undefined;this.map=undefined}toString(){return this.css}warn(e,t={}){if(!t.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin){t.plugin=this.lastPlugin.postcssPlugin}}let r=new i(e,t);this.messages.push(r);return r}warnings(){return this.messages.filter((e=>e.type==="warning"))}get content(){return this.css}}e.exports=n;n.default=n},25644:(e,t,r)=>{"use strict";let i=r(77793);let n,s;class o extends i{constructor(e){super(e);this.type="root";if(!this.nodes)this.nodes=[]}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend"){if(this.nodes.length>1){t.raws.before=this.nodes[1].raws.before}else{delete t.raws.before}}else if(this.first!==t){for(let e of i){e.raws.before=t.raws.before}}}return i}removeChild(e,t){let r=this.index(e);if(!t&&r===0&&this.nodes.length>1){this.nodes[1].raws.before=this.nodes[r].raws.before}return super.removeChild(e)}toResult(e={}){let t=new n(new s,this,e);return t.stringify()}}o.registerLazyResult=e=>{n=e};o.registerProcessor=e=>{s=e};e.exports=o;o.default=o;i.registerRoot(o)},61534:(e,t,r)=>{"use strict";let i=r(77793);let n=r(81752);class s extends i{constructor(e){super(e);this.type="rule";if(!this.nodes)this.nodes=[]}get selectors(){return n.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null;let r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}e.exports=s;s.default=s;i.registerRule(s)},47668:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function r(e){return e[0].toUpperCase()+e.slice(1)}class i{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name;let i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!=="undefined"){r+=e.raws.afterName}else if(i){r+=" "}if(e.nodes){this.block(e,r+i)}else{let n=(e.raws.between||"")+(t?";":"");this.builder(r+i+n,e)}}beforeAfter(e,t){let r;if(e.type==="decl"){r=this.raw(e,null,"beforeDecl")}else if(e.type==="comment"){r=this.raw(e,null,"beforeComment")}else if(t==="before"){r=this.raw(e,null,"beforeRule")}else{r=this.raw(e,null,"beforeClose")}let i=e.parent;let n=0;while(i&&i.type!=="root"){n+=1;i=i.parent}if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length){for(let e=0;e0){if(e.nodes[t].type!=="comment")break;t-=1}let r=this.raw(e,"semicolon");for(let i=0;i{s=e.raws[i];if(typeof s!=="undefined")return false}))}}if(typeof s==="undefined")s=t[n];a.rawCache[n]=s;return s}rawBeforeClose(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length>0){if(typeof e.raws.after!=="undefined"){t=e.raws.after;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawBeforeComment(e,t){let r;e.walkComments((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeDecl")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeDecl(e,t){let r;e.walkDecls((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeRule")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeOpen(e){let t;e.walk((e=>{if(e.type!=="decl"){t=e.raws.between;if(typeof t!=="undefined")return false}}));return t}rawBeforeRule(e){let t;e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)){if(typeof r.raws.before!=="undefined"){t=r.raws.before;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawColon(e){let t;e.walkDecls((e=>{if(typeof e.raws.between!=="undefined"){t=e.raws.between.replace(/[^\s:]/g,"");return false}}));return t}rawEmptyBody(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length===0){t=e.raws.after;if(typeof t!=="undefined")return false}}));return t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;e.walk((r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e){if(typeof r.raws.before!=="undefined"){let e=r.raws.before.split("\n");t=e[e.length-1];t=t.replace(/\S/g,"");return false}}}));return t}rawSemicolon(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length&&e.last.type==="decl"){t=e.raws.semicolon;if(typeof t!=="undefined")return false}}));return t}rawValue(e,t){let r=e[t];let i=e.raws[t];if(i&&i.value===r){return i.raw}return r}root(e){this.body(e);if(e.raws.after)this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector"));if(e.raws.ownSemicolon){this.builder(e.raws.ownSemicolon,e,"end")}}stringify(e,t){if(!this[e.type]){throw new Error("Unknown AST node type "+e.type+". "+"Maybe you need to change PostCSS stringifier.")}this[e.type](e,t)}}e.exports=i;i.default=i},83303:(e,t,r)=>{"use strict";let i=r(47668);function n(e,t){let r=new i(t);r.stringify(e)}e.exports=n;n.default=n},84151:e=>{"use strict";e.exports.isClean=Symbol("isClean");e.exports.my=Symbol("my")},45781:e=>{"use strict";const t="'".charCodeAt(0);const r='"'.charCodeAt(0);const i="\\".charCodeAt(0);const n="/".charCodeAt(0);const s="\n".charCodeAt(0);const o=" ".charCodeAt(0);const a="\f".charCodeAt(0);const l="\t".charCodeAt(0);const c="\r".charCodeAt(0);const u="[".charCodeAt(0);const f="]".charCodeAt(0);const h="(".charCodeAt(0);const p=")".charCodeAt(0);const d="{".charCodeAt(0);const m="}".charCodeAt(0);const g=";".charCodeAt(0);const y="*".charCodeAt(0);const b=":".charCodeAt(0);const v="@".charCodeAt(0);const w=/[\t\n\f\r "#'()/;[\\\]{}]/g;const x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;const T=/.[\r\n"'(/\\]/;const E=/[\da-f]/i;e.exports=function e(S,A={}){let C=S.css.valueOf();let k=A.ignoreErrors;let O,q,I,L,D;let N,P,M,B,R;let j=C.length;let _=0;let U=[];let H=[];function V(){return _}function F(e){throw S.error("Unclosed "+e,_)}function G(){return H.length===0&&_>=j}function z(e){if(H.length)return H.pop();if(_>=j)return;let S=e?e.ignoreUnclosed:false;O=C.charCodeAt(_);switch(O){case s:case o:case l:case c:case a:{q=_;do{q+=1;O=C.charCodeAt(q)}while(O===o||O===s||O===l||O===c||O===a);R=["space",C.slice(_,q)];_=q-1;break}case u:case f:case d:case m:case b:case g:case p:{let e=String.fromCharCode(O);R=[e,e,_];break}case h:{M=U.length?U.pop()[1]:"";B=C.charCodeAt(_+1);if(M==="url"&&B!==t&&B!==r&&B!==o&&B!==s&&B!==l&&B!==a&&B!==c){q=_;do{N=false;q=C.indexOf(")",q+1);if(q===-1){if(k||S){q=_;break}else{F("bracket")}}P=q;while(C.charCodeAt(P-1)===i){P-=1;N=!N}}while(N);R=["brackets",C.slice(_,q+1),_,q];_=q}else{q=C.indexOf(")",_+1);L=C.slice(_,q+1);if(q===-1||T.test(L)){R=["(","(",_]}else{R=["brackets",L,_,q];_=q}}break}case t:case r:{I=O===t?"'":'"';q=_;do{N=false;q=C.indexOf(I,q+1);if(q===-1){if(k||S){q=_+1;break}else{F("string")}}P=q;while(C.charCodeAt(P-1)===i){P-=1;N=!N}}while(N);R=["string",C.slice(_,q+1),_,q];_=q;break}case v:{w.lastIndex=_+1;w.test(C);if(w.lastIndex===0){q=C.length-1}else{q=w.lastIndex-2}R=["at-word",C.slice(_,q+1),_,q];_=q;break}case i:{q=_;D=true;while(C.charCodeAt(q+1)===i){q+=1;D=!D}O=C.charCodeAt(q+1);if(D&&O!==n&&O!==o&&O!==s&&O!==l&&O!==c&&O!==a){q+=1;if(E.test(C.charAt(q))){while(E.test(C.charAt(q+1))){q+=1}if(C.charCodeAt(q+1)===o){q+=1}}}R=["word",C.slice(_,q+1),_,q];_=q;break}default:{if(O===n&&C.charCodeAt(_+1)===y){q=C.indexOf("*/",_+2)+1;if(q===0){if(k||S){q=C.length}else{F("comment")}}R=["comment",C.slice(_,q+1),_,q];_=q}else{x.lastIndex=_+1;x.test(C);if(x.lastIndex===0){q=C.length-1}else{q=x.lastIndex-2}R=["word",C.slice(_,q+1),_,q];U.push(R);_=q}break}}_++;return R}function W(e){H.push(e)}return{back:W,endOfFile:G,nextToken:z,position:V}}},6156:e=>{"use strict";let t={};e.exports=function e(r){if(t[r])return;t[r]=true;if(typeof console!=="undefined"&&console.warn){console.warn(r)}}},60038:e=>{"use strict";class t{constructor(e,t={}){this.type="warning";this.text=e;if(t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line;this.column=e.start.column;this.endLine=e.end.line;this.endColumn=e.end.column}for(let r in t)this[r]=t[r]}toString(){if(this.node){return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message}if(this.plugin){return this.plugin+": "+this.text}return this.text}}e.exports=t;t.default=t},65606:e=>{var t=e.exports={};var r;var i;function n(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){r=setTimeout}else{r=n}}catch(e){r=n}try{if(typeof clearTimeout==="function"){i=clearTimeout}else{i=s}}catch(e){i=s}})();function o(e){if(r===setTimeout){return setTimeout(e,0)}if((r===n||!r)&&setTimeout){r=setTimeout;return setTimeout(e,0)}try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function a(e){if(i===clearTimeout){return clearTimeout(e)}if((i===s||!i)&&clearTimeout){i=clearTimeout;return clearTimeout(e)}try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}var l=[];var c=false;var u;var f=-1;function h(){if(!c||!u){return}c=false;if(u.length){l=u.concat(l)}else{f=-1}if(l.length){p()}}function p(){if(c){return}var e=o(h);c=true;var t=l.length;while(t){u=l;l=[];while(++f1){for(var r=1;r{const i=r(78659);const n=r(52834);const{isPlainObject:s}=r(78682);const o=r(14744);const a=r(29466);const{parse:l}=r(12895);const c=["img","audio","video","picture","svg","object","map","iframe","embed"];const u=["script","style"];function f(e,t){if(e){Object.keys(e).forEach((function(r){t(e[r],r)}))}}function h(e,t){return{}.hasOwnProperty.call(e,t)}function p(e,t){const r=[];f(e,(function(e){if(t(e)){r.push(e)}}));return r}function d(e){for(const t in e){if(h(e,t)){return false}}return true}function m(e){return e.map((function(e){if(!e.url){throw new Error("URL missing")}return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")})).join(", ")}e.exports=y;const g=/^[^\0\t\n\f\r /<=>]+$/;function y(e,t,r){if(e==null){return""}if(typeof e==="number"){e=e.toString()}let v="";let w="";function x(e,t){const r=this;this.tag=e;this.attribs=t||{};this.tagPosition=v.length;this.text="";this.mediaChildren=[];this.updateParentNodeText=function(){if(D.length){const e=D[D.length-1];e.text+=r.text}};this.updateParentNodeMediaChildren=function(){if(D.length&&c.includes(this.tag)){const e=D[D.length-1];e.mediaChildren.push(this.tag)}}}t=Object.assign({},y.defaults,t);t.parser=Object.assign({},b,t.parser);const T=function(e){return t.allowedTags===false||(t.allowedTags||[]).indexOf(e)>-1};u.forEach((function(e){if(T(e)&&!t.allowVulnerableTags){console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}}));const E=t.nonTextTags||["script","style","textarea","option"];let S;let A;if(t.allowedAttributes){S={};A={};f(t.allowedAttributes,(function(e,t){S[t]=[];const r=[];e.forEach((function(e){if(typeof e==="string"&&e.indexOf("*")>=0){r.push(n(e).replace(/\\\*/g,".*"))}else{S[t].push(e)}}));if(r.length){A[t]=new RegExp("^("+r.join("|")+")$")}}))}const C={};const k={};const O={};f(t.allowedClasses,(function(e,t){if(S){if(!h(S,t)){S[t]=[]}S[t].push("class")}C[t]=e;if(Array.isArray(e)){const r=[];C[t]=[];O[t]=[];e.forEach((function(e){if(typeof e==="string"&&e.indexOf("*")>=0){r.push(n(e).replace(/\\\*/g,".*"))}else if(e instanceof RegExp){O[t].push(e)}else{C[t].push(e)}}));if(r.length){k[t]=new RegExp("^("+r.join("|")+")$")}}}));const q={};let I;f(t.transformTags,(function(e,t){let r;if(typeof e==="function"){r=e}else if(typeof e==="string"){r=y.simpleTransform(e)}if(t==="*"){I=r}else{q[t]=r}}));let L;let D;let N;let P;let M;let B;let R=false;_();const j=new i.Parser({onopentag:function(e,r){if(t.enforceHtmlBoundary&&e==="html"){_()}if(M){B++;return}const i=new x(e,r);D.push(i);let n=false;const c=!!i.text;let u;if(h(q,e)){u=q[e](e,r);i.attribs=r=u.attribs;if(u.text!==undefined){i.innerText=u.text}if(e!==u.tagName){i.name=e=u.tagName;P[L]=u.tagName}}if(I){u=I(e,r);i.attribs=r=u.attribs;if(e!==u.tagName){i.name=e=u.tagName;P[L]=u.tagName}}if(!T(e)||t.disallowedTagsMode==="recursiveEscape"&&!d(N)||t.nestingLimit!=null&&L>=t.nestingLimit){n=true;N[L]=true;if(t.disallowedTagsMode==="discard"){if(E.indexOf(e)!==-1){M=true;B=1}}N[L]=true}L++;if(n){if(t.disallowedTagsMode==="discard"){return}w=v;v=""}v+="<"+e;if(e==="script"){if(t.allowedScriptHostnames||t.allowedScriptDomains){i.innerText=""}}if(!S||h(S,e)||S["*"]){f(r,(function(r,n){if(!g.test(n)){delete i.attribs[n];return}if(r===""&&!t.allowedEmptyAttributes.includes(n)&&(t.nonBooleanAttributes.includes(n)||t.nonBooleanAttributes.includes("*"))){delete i.attribs[n];return}let c=false;if(!S||h(S,e)&&S[e].indexOf(n)!==-1||S["*"]&&S["*"].indexOf(n)!==-1||h(A,e)&&A[e].test(n)||A["*"]&&A["*"].test(n)){c=true}else if(S&&S[e]){for(const t of S[e]){if(s(t)&&t.name&&t.name===n){c=true;let e="";if(t.multiple===true){const i=r.split(" ");for(const r of i){if(t.values.indexOf(r)!==-1){if(e===""){e=r}else{e+=" "+r}}}}else if(t.values.indexOf(r)>=0){e=r}r=e}}}if(c){if(t.allowedSchemesAppliedToAttributes.indexOf(n)!==-1){if(H(e,r)){delete i.attribs[n];return}}if(e==="script"&&n==="src"){let e=true;try{const i=V(r);if(t.allowedScriptHostnames||t.allowedScriptDomains){const r=(t.allowedScriptHostnames||[]).find((function(e){return e===i.url.hostname}));const n=(t.allowedScriptDomains||[]).find((function(e){return i.url.hostname===e||i.url.hostname.endsWith(`.${e}`)}));e=r||n}}catch(u){e=false}if(!e){delete i.attribs[n];return}}if(e==="iframe"&&n==="src"){let e=true;try{const i=V(r);if(i.isRelativeUrl){e=h(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains}else if(t.allowedIframeHostnames||t.allowedIframeDomains){const r=(t.allowedIframeHostnames||[]).find((function(e){return e===i.url.hostname}));const n=(t.allowedIframeDomains||[]).find((function(e){return i.url.hostname===e||i.url.hostname.endsWith(`.${e}`)}));e=r||n}}catch(u){e=false}if(!e){delete i.attribs[n];return}}if(n==="srcset"){try{let e=a(r);e.forEach((function(e){if(H("srcset",e.url)){e.evil=true}}));e=p(e,(function(e){return!e.evil}));if(!e.length){delete i.attribs[n];return}else{r=m(p(e,(function(e){return!e.evil})));i.attribs[n]=r}}catch(u){delete i.attribs[n];return}}if(n==="class"){const t=C[e];const s=C["*"];const a=k[e];const l=O[e];const c=k["*"];const u=[a,c].concat(l).filter((function(e){return e}));if(t&&s){r=W(r,o(t,s),u)}else{r=W(r,t||s,u)}if(!r.length){delete i.attribs[n];return}}if(n==="style"){if(t.parseStyleAttributes){try{const s=l(e+" {"+r+"}",{map:false});const o=F(s,t.allowedStyles);r=G(o);if(r.length===0){delete i.attribs[n];return}}catch(u){if(typeof window!=="undefined"){console.warn('Failed to parse "'+e+" {"+r+"}"+"\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547")}delete i.attribs[n];return}}else if(t.allowedStyles){throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}}v+=" "+n;if(r&&r.length){v+='="'+U(r,true)+'"'}else if(t.allowedEmptyAttributes.includes(n)){v+='=""'}}else{delete i.attribs[n]}}))}if(t.selfClosing.indexOf(e)!==-1){v+=" />"}else{v+=">";if(i.innerText&&!c&&!t.textFilter){v+=U(i.innerText);R=true}}if(n){v=w+U(v);w=""}},ontext:function(e){if(M){return}const r=D[D.length-1];let i;if(r){i=r.tag;e=r.innerText!==undefined?r.innerText:e}if(t.disallowedTagsMode==="discard"&&(i==="script"||i==="style")){v+=e}else{const r=U(e,false);if(t.textFilter&&!R){v+=t.textFilter(r,i)}else if(!R){v+=r}}if(D.length){const t=D[D.length-1];t.text+=e}},onclosetag:function(e,r){if(M){B--;if(!B){M=false}else{return}}const i=D.pop();if(!i){return}if(i.tag!==e){D.push(i);return}M=t.enforceHtmlBoundary?e==="html":false;L--;const n=N[L];if(n){delete N[L];if(t.disallowedTagsMode==="discard"){i.updateParentNodeText();return}w=v;v=""}if(P[L]){e=P[L];delete P[L]}if(t.exclusiveFilter&&t.exclusiveFilter(i)){v=v.substr(0,i.tagPosition);return}i.updateParentNodeMediaChildren();i.updateParentNodeText();if(t.selfClosing.indexOf(e)!==-1||r&&!T(e)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0){if(n){v=w;w=""}return}v+="";if(n){v=w+U(v);w=""}R=false}},t.parser);j.write(e);j.end();return v;function _(){v="";L=0;D=[];N={};P={};M=false;B=0}function U(e,r){if(typeof e!=="string"){e=e+""}if(t.parser.decodeEntities){e=e.replace(/&/g,"&").replace(//g,">");if(r){e=e.replace(/"/g,""")}}e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">");if(r){e=e.replace(/"/g,""")}return e}function H(e,r){r=r.replace(/[\x00-\x20]+/g,"");while(true){const e=r.indexOf("\x3c!--");if(e===-1){break}const t=r.indexOf("--\x3e",e+4);if(t===-1){break}r=r.substring(0,e)+r.substring(t+3)}const i=r.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!i){if(r.match(/^[/\\]{2}/)){return!t.allowProtocolRelative}return false}const n=i[1].toLowerCase();if(h(t.allowedSchemesByTag,e)){return t.allowedSchemesByTag[e].indexOf(n)===-1}return!t.allowedSchemes||t.allowedSchemes.indexOf(n)===-1}function V(e){e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//");if(e.startsWith("relative:")){throw new Error("relative: exploit attempt")}let t="relative://relative-site";for(let n=0;n<100;n++){t+=`/${n}`}const r=new URL(e,t);const i=r&&r.hostname==="relative-site"&&r.protocol==="relative:";return{isRelativeUrl:i,url:r}}function F(e,t){if(!t){return e}const r=e.nodes[0];let i;if(t[r.selector]&&t["*"]){i=o(t[r.selector],t["*"])}else{i=t[r.selector]||t["*"]}if(i){e.nodes[0].nodes=r.nodes.reduce(z(i),[])}return e}function G(e){return e.nodes[0].nodes.reduce((function(e,t){e.push(`${t.prop}:${t.value}${t.important?" !important":""}`);return e}),[]).join(";")}function z(e){return function(t,r){if(h(e,r.prop)){const i=e[r.prop].some((function(e){return e.test(r.value)}));if(i){t.push(r)}}return t}}function W(e,t,r){if(!t){return e}e=e.split(/\s+/);return e.filter((function(e){return t.indexOf(e)!==-1||r.some((function(t){return t.test(e)}))})).join(" ")}}const b={decodeEntities:true};y.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:true,enforceHtmlBoundary:false,parseStyleAttributes:true};y.simpleTransform=function(e,t,r){r=r===undefined?true:r;t=t||{};return function(i,n){let s;if(r){for(s in t){n[s]=t[s]}}else{n=t}return{tagName:e,attribs:n}}}},95042:e=>{let t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let r=(e,t=21)=>(r=t)=>{let i="";let n=r|0;while(n--){i+=e[Math.random()*e.length|0]}return i};let i=(e=21)=>{let r="";let i=e|0;while(i--){r+=t[Math.random()*64|0]}return r};e.exports={nanoid:i,customAlphabet:r}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4797.3740ef47b224a11a7fab.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4797.3740ef47b224a11a7fab.js new file mode 100644 index 0000000000000000000000000000000000000000..e988d50ee58b43bdb7e696b7e039428cb3275862 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4797.3740ef47b224a11a7fab.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4797],{14797:(e,t,n)=>{n.r(t);n.d(t,{commonLisp:()=>p});var r=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/;var l=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/;var i=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/;var o=/[^\s'`,@()\[\]";]/;var a;function s(e){var t;while(t=e.next()){if(t=="\\")e.next();else if(!o.test(t)){e.backUp(1);break}}return e.current()}function c(e,t){if(e.eatSpace()){a="ws";return null}if(e.match(i))return"number";var n=e.next();if(n=="\\")n=e.next();if(n=='"')return(t.tokenize=u)(e,t);else if(n=="("){a="open";return"bracket"}else if(n==")"){a="close";return"bracket"}else if(n==";"){e.skipToEnd();a="ws";return"comment"}else if(/['`,@]/.test(n))return null;else if(n=="|"){if(e.skipTo("|")){e.next();return"variableName"}else{e.skipToEnd();return"error"}}else if(n=="#"){var n=e.next();if(n=="("){a="open";return"bracket"}else if(/[+\-=\.']/.test(n))return null;else if(/\d/.test(n)&&e.match(/^\d*#/))return null;else if(n=="|")return(t.tokenize=f)(e,t);else if(n==":"){s(e);return"meta"}else if(n=="\\"){e.next();s(e);return"string.special"}else return"error"}else{var o=s(e);if(o==".")return null;a="symbol";if(o=="nil"||o=="t"||o.charAt(0)==":")return"atom";if(t.lastType=="open"&&(r.test(o)||l.test(o)))return"keyword";if(o.charAt(0)=="&")return"variableName.special";return"variableName"}}function u(e,t){var n=false,r;while(r=e.next()){if(r=='"'&&!n){t.tokenize=c;break}n=!n&&r=="\\"}return"string"}function f(e,t){var n,r;while(n=e.next()){if(n=="#"&&r=="|"){t.tokenize=c;break}r=n}a="ws";return"comment"}const p={name:"commonlisp",startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:c}},token:function(e,t){if(e.sol()&&typeof t.ctx.indentTo!="number")t.ctx.indentTo=t.ctx.start+1;a=null;var n=t.tokenize(e,t);if(a!="ws"){if(t.ctx.indentTo==null){if(a=="symbol"&&l.test(e.current()))t.ctx.indentTo=t.ctx.start+e.indentUnit;else t.ctx.indentTo="next"}else if(t.ctx.indentTo=="next"){t.ctx.indentTo=e.column()}t.lastType=a}if(a=="open")t.ctx={prev:t.ctx,start:e.column(),indentTo:null};else if(a=="close")t.ctx=t.ctx.prev||t.ctx;return n},indent:function(e){var t=e.ctx.indentTo;return typeof t=="number"?t:e.ctx.start+1},languageData:{commentTokens:{line:";;",block:{open:"#|",close:"|#"}},closeBrackets:{brackets:["(","[","{",'"']}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/481e39042508ae313a60.woff b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/481e39042508ae313a60.woff new file mode 100644 index 0000000000000000000000000000000000000000..d8998099f38a0913f9db8ec42dfe8938aaf93605 Binary files /dev/null and b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/481e39042508ae313a60.woff differ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4855.29e8dc6982ba4873487d.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4855.29e8dc6982ba4873487d.js new file mode 100644 index 0000000000000000000000000000000000000000..6302f6542f8c4172706fc214f9b329a3c1006fd3 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4855.29e8dc6982ba4873487d.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4855],{34855:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,i=arguments.length;r0)&&!(o=i.next()).done)n.push(o.value)}catch(s){a={error:s}}finally{try{if(o&&!o.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return n};var a=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,o=e.length,n;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.AssistiveMmlHandler=e.AssistiveMmlMathDocumentMixin=e.AssistiveMmlMathItemMixin=e.LimitedMmlVisitor=void 0;var l=r(24971);var u=r(14347);var c=r(34981);var p=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.getAttributes=function(e){return t.prototype.getAttributes.call(this,e).replace(/ ?id=".*?"/,"")};return e}(u.SerializedMmlVisitor);e.LimitedMmlVisitor=p;(0,l.newState)("ASSISTIVEMML",153);function f(t){return function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.assistiveMml=function(t,e){if(e===void 0){e=false}if(this.state()>=l.STATE.ASSISTIVEMML)return;if(!this.isEscaped&&(t.options.enableAssistiveMml||e)){var r=t.adaptor;var i=t.toMML(this.root).replace(/\n */g,"").replace(//g,"");var o=r.firstChild(r.body(r.parse(i,"text/html")));var n=r.node("mjx-assistive-mml",{unselectable:"on",display:this.display?"block":"inline"},[o]);r.setAttribute(r.firstChild(this.typesetRoot),"aria-hidden","true");r.setStyle(this.typesetRoot,"position","relative");r.append(this.typesetRoot,n)}this.state(l.STATE.ASSISTIVEMML)};return e}(t)}e.AssistiveMmlMathItemMixin=f;function v(t){var e;return e=function(t){i(e,t);function e(){var e=[];for(var r=0;r=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),o,n=[],a;try{while((e===void 0||e-- >0)&&!(o=i.next()).done)n.push(o.value)}catch(s){a={error:s}}finally{try{if(o&&!o.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return n};Object.defineProperty(e,"__esModule",{value:true});e.SerializedMmlVisitor=e.toEntity=e.DATAMJX=void 0;var a=r(76677);var s=r(80747);var l=r(32175);e.DATAMJX="data-mjx-";var u=function(t){return"&#x"+t.codePointAt(0).toString(16).toUpperCase()+";"};e.toEntity=u;var c=function(t){i(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}r.prototype.visitTree=function(t){return this.visitNode(t,"")};r.prototype.visitTextNode=function(t,e){return this.quoteHTML(t.getText())};r.prototype.visitXMLNode=function(t,e){return e+t.getSerializedXML()};r.prototype.visitInferredMrowNode=function(t,e){var r,i;var n=[];try{for(var a=o(t.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value;n.push(this.visitNode(l,e))}}catch(u){r={error:u}}finally{try{if(s&&!s.done&&(i=a.return))i.call(a)}finally{if(r)throw r.error}}return n.join("\n")};r.prototype.visitTeXAtomNode=function(t,e){var r=this.childNodeMml(t,e+" ","\n");var i=e+""+(r.match(/\S/)?"\n"+r+e:"")+"
";return i};r.prototype.visitAnnotationNode=function(t,e){return e+""+this.childNodeMml(t,"","")+""};r.prototype.visitDefault=function(t,e){var r=t.kind;var i=n(t.isToken||t.childNodes.length===0?["",""]:["\n",e],2),o=i[0],a=i[1];var s=this.childNodeMml(t,e+" ",o);return e+"<"+r+this.getAttributes(t)+">"+(s.match(/\S/)?o+s+a:"")+""};r.prototype.childNodeMml=function(t,e,r){var i,n;var a="";try{for(var s=o(t.childNodes),l=s.next();!l.done;l=s.next()){var u=l.value;a+=this.visitNode(u,e)+r}}catch(c){i={error:c}}finally{try{if(l&&!l.done&&(n=s.return))n.call(s)}finally{if(i)throw i.error}}return a};r.prototype.getAttributes=function(t){var e,r;var i=[];var n=this.constructor.defaultAttributes[t.kind]||{};var a=Object.assign({},n,this.getDataAttributes(t),t.attributes.getAllAttributes());var s=this.constructor.variants;if(a.hasOwnProperty("mathvariant")&&s.hasOwnProperty(a.mathvariant)){a.mathvariant=s[a.mathvariant]}try{for(var l=o(Object.keys(a)),u=l.next();!u.done;u=l.next()){var c=u.value;var p=String(a[c]);if(p===undefined)continue;i.push(c+'="'+this.quoteHTML(p)+'"')}}catch(f){e={error:f}}finally{try{if(u&&!u.done&&(r=l.return))r.call(l)}finally{if(e)throw e.error}}return i.length?" "+i.join(" "):""};r.prototype.getDataAttributes=function(t){var e={};var r=t.attributes.getExplicit("mathvariant");var i=this.constructor.variants;r&&i.hasOwnProperty(r)&&this.setDataAttribute(e,"variant",r);t.getProperty("variantForm")&&this.setDataAttribute(e,"alternate","1");t.getProperty("pseudoscript")&&this.setDataAttribute(e,"pseudoscript","true");t.getProperty("autoOP")===false&&this.setDataAttribute(e,"auto-op","false");var o=t.getProperty("scriptalign");o&&this.setDataAttribute(e,"script-align",o);var n=t.getProperty("texClass");if(n!==undefined){var a=true;if(n===s.TEXCLASS.OP&&t.isKind("mi")){var u=t.getText();a=!(u.length>1&&u.match(l.MmlMi.operatorName))}a&&this.setDataAttribute(e,"texclass",n<0?"NONE":s.TEXCLASSNAMES[n])}t.getProperty("scriptlevel")&&t.getProperty("useHeight")===false&&this.setDataAttribute(e,"smallmatrix","true");return e};r.prototype.setDataAttribute=function(t,r,i){t[e.DATAMJX+r]=i};r.prototype.quoteHTML=function(t){return t.replace(/&/g,"&").replace(//g,">").replace(/\"/g,""").replace(/[\uD800-\uDBFF]./g,e.toEntity).replace(/[\u0080-\uD7FF\uE000-\uFFFF]/g,e.toEntity)};r.variants={"-tex-calligraphic":"script","-tex-bold-calligraphic":"bold-script","-tex-oldstyle":"normal","-tex-bold-oldstyle":"bold","-tex-mathit":"italic"};r.defaultAttributes={math:{xmlns:"http://www.w3.org/1998/Math/MathML"}};return r}(a.MmlVisitor);e.SerializedMmlVisitor=c},34167:function(t,e,r){var i=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),o,n=[],a;try{while((e===void 0||e-- >0)&&!(o=i.next()).done)n.push(o.value)}catch(s){a={error:s}}finally{try{if(o&&!o.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return n};var n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,o=e.length,n;i{i.r(t);i.d(t,{RegExpCursor:()=>u,SearchCursor:()=>a,SearchQuery:()=>I,closeSearchPanel:()=>de,findNext:()=>ie,findPrevious:()=>re,getSearchQuery:()=>U,gotoLine:()=>w,highlightSelectionMatches:()=>k,openSearchPanel:()=>fe,replaceAll:()=>le,replaceNext:()=>oe,search:()=>V,searchKeymap:()=>pe,searchPanelOpen:()=>J,selectMatches:()=>ne,selectNextOccurrence:()=>F,selectSelectionMatches:()=>se,setSearchQuery:()=>K});var r=i(22819);var n=i(71674);function s(){var e=arguments[0];if(typeof e=="string")e=document.createElement(e);var t=1,i=arguments[1];if(i&&typeof i=="object"&&i.nodeType==null&&!Array.isArray(i)){for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r)){var n=i[r];if(typeof n=="string")e.setAttribute(r,n);else if(n!=null)e[r]=n}t++}for(;te.normalize("NFKD"):e=>e;class a{constructor(e,t,i=0,r=e.length,n,s){this.test=s;this.value={from:0,to:0};this.done=false;this.matches=[];this.buffer="";this.bufferPos=0;this.iter=e.iterRange(i,r);this.bufferStart=i;this.normalize=n?e=>n(l(e)):l;this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){this.bufferStart+=this.buffer.length;this.iter.next();if(this.iter.done)return-1;this.bufferPos=0;this.buffer=this.iter.value}return(0,n.codePointAt)(this.buffer,this.bufferPos)}next(){while(this.matches.length)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0){this.done=true;return this}let t=(0,n.fromCodePoint)(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=(0,n.codePointSize)(e);let r=this.normalize(t);if(r.length)for(let n=0,s=i;;n++){let e=r.charCodeAt(n);let o=this.match(e,s,this.bufferPos+this.bufferStart);if(n==r.length-1){if(o){this.value=o;return this}break}if(s==i&&nthis.to)this.curLine=this.curLine.slice(0,this.to-this.curLineStart);this.iter.next()}}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1;if(this.curLineStart>this.to)this.curLine="";else this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let i=this.curLineStart+t.index,r=i+t[0].length;this.matchPos=g(this.text,r+(i==r?1:0));if(i==this.curLineStart+this.curLine.length)this.nextLine();if((ithis.value.to)&&(!this.test||this.test(i,r,t))){this.value={from:i,to:r,match:t};return this}e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=i||r.to<=t){let r=new d(t,e.sliceString(t,i));f.set(e,r);return r}if(r.from==t&&r.to==i)return r;let{text:n,from:s}=r;if(s>t){n=e.sliceString(t,s)+n;s=t}if(r.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from;let t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e){this.re.lastIndex=e+1;t=this.re.exec(this.flat.text)}if(t){let e=this.flat.from+t.index,i=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,i,t))){this.value={from:e,to:i,match:t};this.matchPos=g(this.text,i+(e==i?1:0));return this}}if(this.flat.to==this.to){this.done=true;return this}this.flat=d.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}if(typeof Symbol!="undefined"){u.prototype[Symbol.iterator]=p.prototype[Symbol.iterator]=function(){return this}}function m(e){try{new RegExp(e,h);return true}catch(t){return false}}function g(e,t){if(t>=e.length)return t;let i=e.lineAt(t),r;while(t=56320&&r<57344)t++;return t}function v(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number);let i=s("input",{class:"cm-textfield",name:"line",value:t});let o=s("form",{class:"cm-gotoLine",onkeydown:t=>{if(t.keyCode==27){t.preventDefault();e.dispatch({effects:x.of(false)});e.focus()}else if(t.keyCode==13){t.preventDefault();l()}},onsubmit:e=>{e.preventDefault();l()}},s("label",e.state.phrase("Go to line"),": ",i)," ",s("button",{class:"cm-button",type:"submit"},e.state.phrase("go")),s("button",{name:"close",onclick:()=>{e.dispatch({effects:x.of(false)});e.focus()},"aria-label":e.state.phrase("close"),type:"button"},["×"]));function l(){let t=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(i.value);if(!t)return;let{state:s}=e,o=s.doc.lineAt(s.selection.main.head);let[,l,a,c,h]=t;let u=c?+c.slice(1):0;let f=a?+a:o.number;if(a&&h){let e=f/100;if(l)e=e*(l=="-"?-1:1)+o.number/s.doc.lines;f=Math.round(s.doc.lines*e)}else if(a&&l){f=f*(l=="-"?-1:1)+o.number}let d=s.doc.line(Math.max(1,Math.min(s.doc.lines,f)));let p=n.EditorSelection.cursor(d.from+Math.max(0,Math.min(u,d.length)));e.dispatch({effects:[x.of(false),r.EditorView.scrollIntoView(p.from,{y:"center"})],selection:p});e.focus()}return{dom:o}}const x=n.StateEffect.define();const y=n.StateField.define({create(){return true},update(e,t){for(let i of t.effects)if(i.is(x))e=i.value;return e},provide:e=>r.showPanel.from(e,(e=>e?v:null))});const w=e=>{let t=(0,r.getPanel)(e,v);if(!t){let i=[x.of(true)];if(e.state.field(y,false)==null)i.push(n.StateEffect.appendConfig.of([y,b]));e.dispatch({effects:i});t=(0,r.getPanel)(e,v)}if(t)t.dom.querySelector("input").select();return true};const b=r.EditorView.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}});const S={highlightWordAroundCursor:false,minSelectionLength:1,maxMatches:100,wholeWords:false};const C=n.Facet.define({combine(e){return(0,n.combineConfig)(e,S,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function k(e){let t=[P,L];if(e)t.push(C.of(e));return t}const M=r.Decoration.mark({class:"cm-selectionMatch"});const E=r.Decoration.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function q(e,t,i,r){return(i==0||e(t.sliceDoc(i-1,i))!=n.CharCategory.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=n.CharCategory.Word)}function D(e,t,i,r){return e(t.sliceDoc(i,i+1))==n.CharCategory.Word&&e(t.sliceDoc(r-1,r))==n.CharCategory.Word}const L=r.ViewPlugin.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){if(e.selectionSet||e.docChanged||e.viewportChanged)this.decorations=this.getDeco(e.view)}getDeco(e){let t=e.state.facet(C);let{state:i}=e,n=i.selection;if(n.ranges.length>1)return r.Decoration.none;let s=n.main,o,l=null;if(s.empty){if(!t.highlightWordAroundCursor)return r.Decoration.none;let e=i.wordAt(s.head);if(!e)return r.Decoration.none;l=i.charCategorizer(s.head);o=i.sliceDoc(e.from,e.to)}else{let e=s.to-s.from;if(e200)return r.Decoration.none;if(t.wholeWords){o=i.sliceDoc(s.from,s.to);l=i.charCategorizer(s.head);if(!(q(l,i,s.from,s.to)&&D(l,i,s.from,s.to)))return r.Decoration.none}else{o=i.sliceDoc(s.from,s.to);if(!o)return r.Decoration.none}}let c=[];for(let h of e.visibleRanges){let e=new a(i.doc,o,h.from,h.to);while(!e.next().done){let{from:n,to:o}=e.value;if(!l||q(l,i,n,o)){if(s.empty&&n<=s.from&&o>=s.to)c.push(E.range(n,o));else if(n>=s.to||o<=s.from)c.push(M.range(n,o));if(c.length>t.maxMatches)return r.Decoration.none}}}return r.Decoration.set(c)}},{decorations:e=>e.decorations});const P=r.EditorView.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});const A=({state:e,dispatch:t})=>{let{selection:i}=e;let r=n.EditorSelection.create(i.ranges.map((t=>e.wordAt(t.head)||n.EditorSelection.cursor(t.head))),i.mainIndex);if(r.eq(i))return false;t(e.update({selection:r}));return true};function W(e,t){let{main:i,ranges:r}=e.selection;let n=e.wordAt(i.head),s=n&&n.from==i.from&&n.to==i.to;for(let o=false,l=new a(e.doc,t,r[r.length-1].to);;){l.next();if(l.done){if(o)return null;l=new a(e.doc,t,0,Math.max(0,r[r.length-1].from-1));o=true}else{if(o&&r.some((e=>e.from==l.value.from)))continue;if(s){let t=e.wordAt(l.value.from);if(!t||t.from!=l.value.from||t.to!=l.value.to)continue}return l.value}}}const F=({state:e,dispatch:t})=>{let{ranges:i}=e.selection;if(i.some((e=>e.from===e.to)))return A({state:e,dispatch:t});let s=e.sliceDoc(i[0].from,i[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=s)))return false;let o=W(e,s);if(!o)return false;t(e.update({selection:e.selection.addRange(n.EditorSelection.range(o.from,o.to),false),effects:r.EditorView.scrollIntoView(o.to)}));return true};const R=n.Facet.define({combine(e){return(0,n.combineConfig)(e,{top:false,caseSensitive:false,literal:false,regexp:false,wholeWord:false,createPanel:e=>new me(e),scrollToMatch:e=>r.EditorView.scrollIntoView(e)})}});function V(e){return e?[R.of(e),be]:be}class I{constructor(e){this.search=e.search;this.caseSensitive=!!e.caseSensitive;this.literal=!!e.literal;this.regexp=!!e.regexp;this.replace=e.replace||"";this.valid=!!this.search&&(!this.regexp||m(this.search));this.unquoted=this.unquote(this.search);this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>t=="n"?"\n":t=="r"?"\r":t=="t"?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new B(this):new $(this)}getCursor(e,t=0,i){let r=e.doc?e:n.EditorState.create({doc:e});if(i==null)i=r.doc.length;return this.regexp?_(this,r,t,i):O(this,r,t,i)}}class z{constructor(e){this.spec=e}}function O(e,t,i,r){return new a(t.doc,e.unquoted,i,r,e.caseSensitive?undefined:e=>e.toLowerCase(),e.wholeWord?T(t.doc,t.charCategorizer(t.selection.main.head)):undefined)}function T(e,t){return(i,r,s,o)=>{if(o>i||o+s.length=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let n=O(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));while(!n.next().done)r(n.value.from,n.value.to)}}function _(e,t,i,r){return new u(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?j(t.charCategorizer(t.selection.main.head)):undefined},i,r)}function N(e,t){return e.slice((0,n.findClusterBreak)(e,t,false),t)}function Q(e,t){return e.slice(t,(0,n.findClusterBreak)(e,t))}function j(e){return(t,i,r)=>!r[0].length||(e(N(r.input,r.index))!=n.CharCategory.Word||e(Q(r.input,r.index))!=n.CharCategory.Word)&&(e(Q(r.input,r.index+r[0].length))!=n.CharCategory.Word||e(N(r.input,r.index+r[0].length))!=n.CharCategory.Word)}class B extends z{nextMatch(e,t,i){let r=_(this.spec,e,i,e.doc.length).next();if(r.done)r=_(this.spec,e,0,t).next();return r.done?null:r.value}prevMatchInRange(e,t,i){for(let r=1;;r++){let n=Math.max(t,i-r*1e4);let s=_(this.spec,e,n,i),o=null;while(!s.next().done)o=s.value;if(o&&(n==t||o.from>n+10))return o;if(n==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,((t,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let r=i.length;r>0;r--){let t=+i.slice(0,r);if(t>0&&t=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let n=_(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));while(!n.next().done)r(n.value.from,n.value.to)}}const K=n.StateEffect.define();const G=n.StateEffect.define();const H=n.StateField.define({create(e){return new X(ce(e).create(),null)},update(e,t){for(let i of t.effects){if(i.is(K))e=new X(i.value.create(),e.panel);else if(i.is(G))e=new X(e.query,i.value?ae:null)}return e},provide:e=>r.showPanel.from(e,(e=>e.panel))});function U(e){let t=e.field(H,false);return t?t.query.spec:ce(e)}function J(e){var t;return((t=e.field(H,false))===null||t===void 0?void 0:t.panel)!=null}class X{constructor(e,t){this.query=e;this.panel=t}}const Y=r.Decoration.mark({class:"cm-searchMatch"}),Z=r.Decoration.mark({class:"cm-searchMatch cm-searchMatch-selected"});const ee=r.ViewPlugin.fromClass(class{constructor(e){this.view=e;this.decorations=this.highlight(e.state.field(H))}update(e){let t=e.state.field(H);if(t!=e.startState.field(H)||e.docChanged||e.selectionSet||e.viewportChanged)this.decorations=this.highlight(t)}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return r.Decoration.none;let{view:i}=this;let s=new n.RangeSetBuilder;for(let r=0,n=i.visibleRanges,o=n.length;rn[r+1].from-2*250)l=n[++r].to;e.highlight(i.state,t,l,((e,t)=>{let r=i.state.selection.ranges.some((i=>i.from==e&&i.to==t));s.add(e,t,r?Z:Y)}))}return s.finish()}},{decorations:e=>e.decorations});function te(e){return t=>{let i=t.state.field(H,false);return i&&i.query.spec.valid?e(t,i):fe(t)}}const ie=te(((e,{query:t})=>{let{to:i}=e.state.selection.main;let r=t.nextMatch(e.state,i,i);if(!r)return false;let s=n.EditorSelection.single(r.from,r.to);let o=e.state.facet(R);e.dispatch({selection:s,effects:[ye(e,r),o.scrollToMatch(s.main,e)],userEvent:"select.search"});ue(e);return true}));const re=te(((e,{query:t})=>{let{state:i}=e,{from:r}=i.selection.main;let s=t.prevMatch(i,r,r);if(!s)return false;let o=n.EditorSelection.single(s.from,s.to);let l=e.state.facet(R);e.dispatch({selection:o,effects:[ye(e,s),l.scrollToMatch(o.main,e)],userEvent:"select.search"});ue(e);return true}));const ne=te(((e,{query:t})=>{let i=t.matchAll(e.state,1e3);if(!i||!i.length)return false;e.dispatch({selection:n.EditorSelection.create(i.map((e=>n.EditorSelection.range(e.from,e.to)))),userEvent:"select.search.matches"});return true}));const se=({state:e,dispatch:t})=>{let i=e.selection;if(i.ranges.length>1||i.main.empty)return false;let{from:r,to:s}=i.main;let o=[],l=0;for(let c=new a(e.doc,e.sliceDoc(r,s));!c.next().done;){if(o.length>1e3)return false;if(c.value.from==r)l=o.length;o.push(n.EditorSelection.range(c.value.from,c.value.to))}t(e.update({selection:n.EditorSelection.create(o,l),userEvent:"select.search.matches"}));return true};const oe=te(((e,{query:t})=>{let{state:i}=e,{from:s,to:o}=i.selection.main;if(i.readOnly)return false;let l=t.nextMatch(i,s,s);if(!l)return false;let a=l;let c=[],h,u;let f=[];if(a.from==s&&a.to==o){u=i.toText(t.getReplacement(a));c.push({from:a.from,to:a.to,insert:u});a=t.nextMatch(i,a.from,a.to);f.push(r.EditorView.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(s).number)+"."))}if(a){let t=c.length==0||c[0].from>=l.to?0:l.to-l.from-u.length;h=n.EditorSelection.single(a.from-t,a.to-t);f.push(ye(e,a));f.push(i.facet(R).scrollToMatch(h.main,e))}e.dispatch({changes:c,selection:h,effects:f,userEvent:"input.replace"});return true}));const le=te(((e,{query:t})=>{if(e.state.readOnly)return false;let i=t.matchAll(e.state,1e9).map((e=>{let{from:i,to:r}=e;return{from:i,to:r,insert:t.getReplacement(e)}}));if(!i.length)return false;let n=e.state.phrase("replaced $ matches",i.length)+".";e.dispatch({changes:i,effects:r.EditorView.announce.of(n),userEvent:"input.replace.all"});return true}));function ae(e){return e.state.facet(R).createPanel(e)}function ce(e,t){var i,r,n,s,o;let l=e.selection.main;let a=l.empty||l.to>l.from+100?"":e.sliceDoc(l.from,l.to);if(t&&!a)return t;let c=e.facet(R);return new I({search:((i=t===null||t===void 0?void 0:t.literal)!==null&&i!==void 0?i:c.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:(r=t===null||t===void 0?void 0:t.caseSensitive)!==null&&r!==void 0?r:c.caseSensitive,literal:(n=t===null||t===void 0?void 0:t.literal)!==null&&n!==void 0?n:c.literal,regexp:(s=t===null||t===void 0?void 0:t.regexp)!==null&&s!==void 0?s:c.regexp,wholeWord:(o=t===null||t===void 0?void 0:t.wholeWord)!==null&&o!==void 0?o:c.wholeWord})}function he(e){let t=(0,r.getPanel)(e,ae);return t&&t.dom.querySelector("[main-field]")}function ue(e){let t=he(e);if(t&&t==e.root.activeElement)t.select()}const fe=e=>{let t=e.state.field(H,false);if(t&&t.panel){let i=he(e);if(i&&i!=e.root.activeElement){let r=ce(e.state,t.query.spec);if(r.valid)e.dispatch({effects:K.of(r)});i.focus();i.select()}}else{e.dispatch({effects:[G.of(true),t?K.of(ce(e.state,t.query.spec)):n.StateEffect.appendConfig.of(be)]})}return true};const de=e=>{let t=e.state.field(H,false);if(!t||!t.panel)return false;let i=(0,r.getPanel)(e,ae);if(i&&i.dom.contains(e.root.activeElement))e.focus();e.dispatch({effects:G.of(false)});return true};const pe=[{key:"Mod-f",run:fe,scope:"editor search-panel"},{key:"F3",run:ie,shift:re,scope:"editor search-panel",preventDefault:true},{key:"Mod-g",run:ie,shift:re,scope:"editor search-panel",preventDefault:true},{key:"Escape",run:de,scope:"editor search-panel"},{key:"Mod-Shift-l",run:se},{key:"Mod-Alt-g",run:w},{key:"Mod-d",run:F,preventDefault:true}];class me{constructor(e){this.view=e;let t=this.query=e.state.field(H).query.spec;this.commit=this.commit.bind(this);this.searchField=s("input",{value:t.search,placeholder:ge(e,"Find"),"aria-label":ge(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit});this.replaceField=s("input",{value:t.replace,placeholder:ge(e,"Replace"),"aria-label":ge(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit});this.caseField=s("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit});this.reField=s("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit});this.wordField=s("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function i(e,t,i){return s("button",{class:"cm-button",name:e,onclick:t,type:"button"},i)}this.dom=s("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,i("next",(()=>ie(e)),[ge(e,"next")]),i("prev",(()=>re(e)),[ge(e,"previous")]),i("select",(()=>ne(e)),[ge(e,"all")]),s("label",null,[this.caseField,ge(e,"match case")]),s("label",null,[this.reField,ge(e,"regexp")]),s("label",null,[this.wordField,ge(e,"by word")]),...e.state.readOnly?[]:[s("br"),this.replaceField,i("replace",(()=>oe(e)),[ge(e,"replace")]),i("replaceAll",(()=>le(e)),[ge(e,"replace all")])],s("button",{name:"close",onclick:()=>de(e),"aria-label":ge(e,"close"),type:"button"},["×"])])}commit(){let e=new I({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});if(!e.eq(this.query)){this.query=e;this.view.dispatch({effects:K.of(e)})}}keydown(e){if((0,r.runScopeHandlers)(this.view,e,"search-panel")){e.preventDefault()}else if(e.keyCode==13&&e.target==this.searchField){e.preventDefault();(e.shiftKey?re:ie)(this.view)}else if(e.keyCode==13&&e.target==this.replaceField){e.preventDefault();oe(this.view)}}update(e){for(let t of e.transactions)for(let e of t.effects){if(e.is(K)&&!e.value.eq(this.query))this.setQuery(e.value)}}setQuery(e){this.query=e;this.searchField.value=e.search;this.replaceField.value=e.replace;this.caseField.checked=e.caseSensitive;this.reField.checked=e.regexp;this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(R).top}}function ge(e,t){return e.state.phrase(t)}const ve=30;const xe=/[\s\.,:;?!]/;function ye(e,{from:t,to:i}){let n=e.state.doc.lineAt(t),s=e.state.doc.lineAt(i).to;let o=Math.max(n.from,t-ve),l=Math.min(s,i+ve);let a=e.state.sliceDoc(o,l);if(o!=n.from){for(let e=0;ea.length-ve;e--)if(!xe.test(a[e-1])&&xe.test(a[e])){a=a.slice(0,e);break}}return r.EditorView.announce.of(`${e.state.phrase("current match")}. ${a} ${e.state.phrase("on line")} ${n.number}.`)}const we=r.EditorView.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}});const be=[H,n.Prec.low(ee),we]}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4981.eed4ddb90566e90e3df4.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4981.eed4ddb90566e90e3df4.js new file mode 100644 index 0000000000000000000000000000000000000000..134e5f6c7083b12d597c6db92a551abe4a667bd4 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/4981.eed4ddb90566e90e3df4.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4981],{34981:function(r,e){var t=this&&this.__values||function(r){var e=typeof Symbol==="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length==="number")return{next:function(){if(r&&n>=r.length)r=void 0;return{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__read||function(r,e){var t=typeof Symbol==="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,a=[],i;try{while((e===void 0||e-- >0)&&!(o=n.next()).done)a.push(o.value)}catch(l){i={error:l}}finally{try{if(o&&!o.done&&(t=n["return"]))t.call(n)}finally{if(i)throw i.error}}return a};var o=this&&this.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,a;n{e.d(n,{t:()=>o});const o={horizontal:"horizontal",vertical:"vertical"}},74291:(t,n,e)=>{e.d(n,{Ac:()=>Dt,De:()=>xt,F9:()=>kt,FM:()=>At,HX:()=>bt,I5:()=>Pt,Is:()=>Mt,J9:()=>Ct,Mm:()=>Et,R9:()=>Tt,Tg:()=>Rt,bb:()=>St,f_:()=>Nt,gG:()=>It,kT:()=>yt,oK:()=>Lt});var o;(function(t){t[t["alt"]=18]="alt";t[t["arrowDown"]=40]="arrowDown";t[t["arrowLeft"]=37]="arrowLeft";t[t["arrowRight"]=39]="arrowRight";t[t["arrowUp"]=38]="arrowUp";t[t["back"]=8]="back";t[t["backSlash"]=220]="backSlash";t[t["break"]=19]="break";t[t["capsLock"]=20]="capsLock";t[t["closeBracket"]=221]="closeBracket";t[t["colon"]=186]="colon";t[t["colon2"]=59]="colon2";t[t["comma"]=188]="comma";t[t["ctrl"]=17]="ctrl";t[t["delete"]=46]="delete";t[t["end"]=35]="end";t[t["enter"]=13]="enter";t[t["equals"]=187]="equals";t[t["equals2"]=61]="equals2";t[t["equals3"]=107]="equals3";t[t["escape"]=27]="escape";t[t["forwardSlash"]=191]="forwardSlash";t[t["function1"]=112]="function1";t[t["function10"]=121]="function10";t[t["function11"]=122]="function11";t[t["function12"]=123]="function12";t[t["function2"]=113]="function2";t[t["function3"]=114]="function3";t[t["function4"]=115]="function4";t[t["function5"]=116]="function5";t[t["function6"]=117]="function6";t[t["function7"]=118]="function7";t[t["function8"]=119]="function8";t[t["function9"]=120]="function9";t[t["home"]=36]="home";t[t["insert"]=45]="insert";t[t["menu"]=93]="menu";t[t["minus"]=189]="minus";t[t["minus2"]=109]="minus2";t[t["numLock"]=144]="numLock";t[t["numPad0"]=96]="numPad0";t[t["numPad1"]=97]="numPad1";t[t["numPad2"]=98]="numPad2";t[t["numPad3"]=99]="numPad3";t[t["numPad4"]=100]="numPad4";t[t["numPad5"]=101]="numPad5";t[t["numPad6"]=102]="numPad6";t[t["numPad7"]=103]="numPad7";t[t["numPad8"]=104]="numPad8";t[t["numPad9"]=105]="numPad9";t[t["numPadDivide"]=111]="numPadDivide";t[t["numPadDot"]=110]="numPadDot";t[t["numPadMinus"]=109]="numPadMinus";t[t["numPadMultiply"]=106]="numPadMultiply";t[t["numPadPlus"]=107]="numPadPlus";t[t["openBracket"]=219]="openBracket";t[t["pageDown"]=34]="pageDown";t[t["pageUp"]=33]="pageUp";t[t["period"]=190]="period";t[t["print"]=44]="print";t[t["quote"]=222]="quote";t[t["scrollLock"]=145]="scrollLock";t[t["shift"]=16]="shift";t[t["space"]=32]="space";t[t["tab"]=9]="tab";t[t["tilde"]=192]="tilde";t[t["windowsLeft"]=91]="windowsLeft";t[t["windowsOpera"]=219]="windowsOpera";t[t["windowsRight"]=92]="windowsRight"})(o||(o={}));const r=18;const a=40;const c=37;const i=39;const s=38;const u=8;const l=220;const d=19;const f=20;const p=221;const m=186;const h=59;const v=188;const w=17;const g=46;const b=35;const y=13;const S=187;const P=61;const E=107;const k=27;const R=191;const A=112;const D=121;const N=122;const L=123;const I=113;const C=114;const T=115;const x=116;const M=117;const U=118;const O=119;const q=120;const B=36;const F=45;const _=93;const j=189;const z=109;const G=144;const H=96;const V=97;const X=98;const $=99;const J=100;const K=101;const Y=102;const Q=103;const W=104;const Z=105;const tt=111;const nt=110;const et=109;const ot=106;const rt=107;const at=219;const ct=34;const it=33;const st=190;const ut=44;const lt=222;const dt=145;const ft=16;const pt=32;const mt=9;const ht=192;const vt=91;const wt=219;const gt=92;const bt="ArrowDown";const yt="ArrowLeft";const St="ArrowRight";const Pt="ArrowUp";const Et="Enter";const kt="Escape";const Rt="Home";const At="End";const Dt="F2";const Nt="PageDown";const Lt="PageUp";const It=" ";const Ct="Tab";const Tt="Backspace";const xt="Delete";const Mt={ArrowDown:bt,ArrowLeft:yt,ArrowRight:St,ArrowUp:Pt}},30086:(t,n,e)=>{e.d(n,{O:()=>o});var o;(function(t){t["ltr"]="ltr";t["rtl"]="rtl"})(o||(o={}))},83021:(t,n,e)=>{e.d(n,{AB:()=>r,Vf:()=>o,r4:()=>a});function o(t,n,e){if(en){return t}return e}function r(t,n,e){return Math.min(Math.max(e,t),n)}function a(t,n,e=0){[n,e]=[n,e].sort(((t,n)=>t-n));return n<=t&&t{e.d(n,{AO:()=>N,tp:()=>I});var o=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"];var r=o.join(",");var a=typeof Element==="undefined";var c=a?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;var i=!a&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument};var s=function t(n,e,o){var a=Array.prototype.slice.apply(n.querySelectorAll(r));if(e&&c.call(n,r)){a.unshift(n)}a=a.filter(o);return a};var u=function t(n,e,o){var a=[];var i=Array.from(n);while(i.length){var s=i.shift();if(s.tagName==="SLOT"){var u=s.assignedElements();var l=u.length?u:s.children;var d=t(l,true,o);if(o.flatten){a.push.apply(a,d)}else{a.push({scope:s,candidates:d})}}else{var f=c.call(s,r);if(f&&o.filter(s)&&(e||!n.includes(s))){a.push(s)}var p=s.shadowRoot||typeof o.getShadowRoot==="function"&&o.getShadowRoot(s);var m=!o.shadowRootFilter||o.shadowRootFilter(s);if(p&&m){var h=t(p===true?s.children:p.children,true,o);if(o.flatten){a.push.apply(a,h)}else{a.push({scope:s,candidates:h})}}else{i.unshift.apply(i,s.children)}}}return a};var l=function t(n,e){if(n.tabIndex<0){if((e||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||n.isContentEditable)&&isNaN(parseInt(n.getAttribute("tabindex"),10))){return 0}}return n.tabIndex};var d=function t(n,e){return n.tabIndex===e.tabIndex?n.documentOrder-e.documentOrder:n.tabIndex-e.tabIndex};var f=function t(n){return n.tagName==="INPUT"};var p=function t(n){return f(n)&&n.type==="hidden"};var m=function t(n){var e=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some((function(t){return t.tagName==="SUMMARY"}));return e};var h=function t(n,e){for(var o=0;osummary:first-of-type");var s=a?n.parentElement:n;if(c.call(s,"details:not([open]) *")){return true}var u=i(n).host;var l=(u===null||u===void 0?void 0:u.ownerDocument.contains(u))||n.ownerDocument.contains(n);if(!o||o==="full"){if(typeof r==="function"){var d=n;while(n){var f=n.parentElement;var p=i(n);if(f&&!f.shadowRoot&&r(f)===true){return b(n)}else if(n.assignedSlot){n=n.assignedSlot}else if(!f&&p!==n.ownerDocument){n=p.host}else{n=f}}n=d}if(l){return!n.getClientRects().length}}else if(o==="non-zero-area"){return b(n)}return false};var S=function t(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName)){var e=n.parentElement;while(e){if(e.tagName==="FIELDSET"&&e.disabled){for(var o=0;o=0){return true}return false};var R=function t(n){var e=[];var o=[];n.forEach((function(n,r){var a=!!n.scope;var c=a?n.scope:n;var i=l(c,a);var s=a?t(n.candidates):c;if(i===0){a?e.push.apply(e,s):e.push(c)}else{o.push({documentOrder:r,tabIndex:i,item:n,isScope:a,content:s})}}));return o.sort(d).reduce((function(t,n){n.isScope?t.push.apply(t,n.content):t.push(n.content);return t}),[]).concat(e)};var A=function t(n,e){e=e||{};var o;if(e.getShadowRoot){o=u([n],e.includeContainer,{filter:E.bind(null,e),flatten:false,getShadowRoot:e.getShadowRoot,shadowRootFilter:k})}else{o=s(n,e.includeContainer,E.bind(null,e))}return R(o)};var D=function t(n,e){e=e||{};var o;if(e.getShadowRoot){o=u([n],e.includeContainer,{filter:P.bind(null,e),flatten:true,getShadowRoot:e.getShadowRoot})}else{o=s(n,e.includeContainer,P.bind(null,e))}return o};var N=function t(n,e){e=e||{};if(!n){throw new Error("No node provided")}if(c.call(n,r)===false){return false}return E(e,n)};var L=o.concat("iframe").join(",");var I=function t(n,e){e=e||{};if(!n){throw new Error("No node provided")}if(c.call(n,L)===false){return false}return P(e,n)}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5338.38c32bdfb0695f9b501f.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5338.38c32bdfb0695f9b501f.js new file mode 100644 index 0000000000000000000000000000000000000000..9cb3cd10ade42ec026990311fea38f7a8d7f0d83 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5338.38c32bdfb0695f9b501f.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5338,2957,100],{5338:(a,e,t)=>{var p;var r=t(86672);if(true){e.H=r.createRoot;p=r.hydrateRoot}else{var o}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5489.7fab44eac7538297b164.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5489.7fab44eac7538297b164.js new file mode 100644 index 0000000000000000000000000000000000000000..71123a9f5832687b9d3d31c14ffd4e275b9bf3a7 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5489.7fab44eac7538297b164.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5489],{25489:(e,t,r)=>{r.d(t,{default:()=>vn});class a{constructor(e,t,r){this.lexer=void 0;this.start=void 0;this.end=void 0;this.lexer=e;this.start=t;this.end=r}static range(e,t){if(!t){return e&&e.loc}else if(!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer){return null}else{return new a(e.loc.lexer,e.loc.start,t.loc.end)}}}class i{constructor(e,t){this.text=void 0;this.loc=void 0;this.noexpand=void 0;this.treatAsRelax=void 0;this.text=e;this.loc=t}range(e,t){return new i(t,a.range(this,e))}}class n{constructor(e,t){this.name=void 0;this.position=void 0;this.length=void 0;this.rawMessage=void 0;var r="KaTeX parse error: "+e;var a;var i;var s=t&&t.loc;if(s&&s.start<=s.end){var o=s.lexer.input;a=s.start;i=s.end;if(a===o.length){r+=" at end of input: "}else{r+=" at position "+(a+1)+": "}var l=o.slice(a,i).replace(/[^]/g,"$&̲");var h;if(a>15){h="…"+o.slice(a-15,a)}else{h=o.slice(0,a)}var u;if(i+15":">","<":"<",'"':""","'":"'"};var m=/[&><"']/g;function c(e){return String(e).replace(m,(e=>u[e]))}var p=function e(t){if(t.type==="ordgroup"){if(t.body.length===1){return e(t.body[0])}else{return t}}else if(t.type==="color"){if(t.body.length===1){return e(t.body[0])}else{return t}}else if(t.type==="font"){return e(t.body)}else{return t}};var d=function e(t){var r=p(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"};var f=function e(t){if(!t){throw new Error("Expected non-null, but got "+String(t))}return t};var v=function e(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);if(!r){return"_relative"}if(r[2]!==":"){return null}if(!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])){return null}return r[1].toLowerCase()};var g={contains:s,deflt:o,escape:c,hyphenate:h,getBaseElem:p,isCharacterBox:d,protocolFromUrl:v};var b={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in "+"display style (so \\int and \\sum are large, for example), and "+"centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:true,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) ins"+"tead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' "+"(no #). This option determines the color of errors rendered by the "+"-t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use "+"multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>{t.push(e);return t}},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines,"+" `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, "+"`\\hdashline`, `\\underline`, `\\overline`, and the borders of "+"`\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, "+"instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an "+"error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:false},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:Infinity,description:"If non-zero, all user-specified sizes, e.g. in "+"\\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, "+"elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified "+"number, to prevent e.g. infinite macro loops. If set to Infinity, "+"the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?Infinity:parseInt(e)},globalGroup:{type:"boolean",cli:false}};function y(e){if(e.default){return e.default}var t=e.type;var r=Array.isArray(t)?t[0]:t;if(typeof r!=="string"){return r.enum[0]}switch(r){case"boolean":return false;case"string":return"";case"number":return 0;case"object":return{}}}class x{constructor(e){this.displayMode=void 0;this.output=void 0;this.leqno=void 0;this.fleqn=void 0;this.throwOnError=void 0;this.errorColor=void 0;this.macros=void 0;this.minRuleThickness=void 0;this.colorIsTextColor=void 0;this.strict=void 0;this.trust=void 0;this.maxSize=void 0;this.maxExpand=void 0;this.globalGroup=void 0;e=e||{};for(var t in b){if(b.hasOwnProperty(t)){var r=b[t];this[t]=e[t]!==undefined?r.processor?r.processor(e[t]):e[t]:y(r)}}}reportNonstrict(e,t,r){var a=this.strict;if(typeof a==="function"){a=a(e,t,r)}if(!a||a==="ignore"){return}else if(a===true||a==="error"){throw new n("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),r)}else if(a==="warn"){typeof console!=="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]"))}else{typeof console!=="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,r){var a=this.strict;if(typeof a==="function"){try{a=a(e,t,r)}catch(i){a="error"}}if(!a||a==="ignore"){return false}else if(a===true||a==="error"){return true}else if(a==="warn"){typeof console!=="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]"));return false}else{typeof console!=="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+t+" ["+e+"]"));return false}}isTrusted(e){if(e.url&&!e.protocol){var t=g.protocolFromUrl(e.url);if(t==null){return false}e.protocol=t}var r=typeof this.trust==="function"?this.trust(e):this.trust;return Boolean(r)}}class w{constructor(e,t,r){this.id=void 0;this.size=void 0;this.cramped=void 0;this.id=e;this.size=t;this.cramped=r}sup(){return N[q[this.id]]}sub(){return N[I[this.id]]}fracNum(){return N[R[this.id]]}fracDen(){return N[H[this.id]]}cramp(){return N[O[this.id]]}text(){return N[E[this.id]]}isTight(){return this.size>=2}}var k=0;var S=1;var M=2;var z=3;var A=4;var T=5;var B=6;var C=7;var N=[new w(k,0,false),new w(S,0,true),new w(M,1,false),new w(z,1,true),new w(A,2,false),new w(T,2,true),new w(B,3,false),new w(C,3,true)];var q=[A,T,A,T,B,C,B,C];var I=[T,T,T,T,C,C,C,C];var R=[M,z,A,T,B,C,B,C];var H=[z,z,T,T,C,C,C,C];var O=[S,S,z,z,T,T,C,C];var E=[k,S,M,z,M,z,M,z];var L={DISPLAY:N[k],TEXT:N[M],SCRIPT:N[A],SCRIPTSCRIPT:N[B]};var D=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function V(e){for(var t=0;t=i[0]&&e<=i[1]){return r.name}}}return null}var P=[];D.forEach((e=>e.blocks.forEach((e=>P.push(...e)))));function F(e){for(var t=0;t=P[t]&&e<=P[t+1]){return true}}return false}var G=80;var U=function e(t,r){return"M95,"+(622+t+r)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+t/2.075+" -"+t+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+t)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"};var Y=function e(t,r){return"M263,"+(601+t+r)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+t/2.084+" -"+t+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+t)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"};var X=function e(t,r){return"M983 "+(10+t+r)+"\nl"+t/3.13+" -"+t+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+t)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"};var W=function e(t,r){return"M424,"+(2398+t+r)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+t/4.223+" -"+t+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+t)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+t)+" "+r+"\nh400000v"+(40+t)+"h-400000z"};var _=function e(t,r){return"M473,"+(2713+t+r)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+t/5.298+" -"+t+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+t)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"};var j=function e(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"};var $=function e(t,r,a){var i=a-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+"\nH742v"+i+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+r+"H400000v"+(40+t)+"H742z"};var Z=function e(t,r,a){r=1e3*r;var i="";switch(t){case"sqrtMain":i=U(r,G);break;case"sqrtSize1":i=Y(r,G);break;case"sqrtSize2":i=X(r,G);break;case"sqrtSize3":i=W(r,G);break;case"sqrtSize4":i=_(r,G);break;case"sqrtTall":i=$(r,G,a)}return i};var K=function e(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}};var J={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};var Q=function e(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+" v1759 h347 v-84\nH403z M403 1759 V0 H319 V1759 v"+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+" v1759 H0 v84 H347z\nM347 1759 V0 H263 V1759 v"+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-r+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-r+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M188 15 H145 v585 v"+r+" v585 h43z\nM367 15 v585 v"+r+" v585 c2.667,10,9.667,15,21,15\nc10,0,16.667,-5,20,-15 v-585 v"+-r+" v-585 c-2.667,-10,-9.667,-15,-21,-15\nc-10,0,-16.667,5,-20,15z M410 15 H367 v585 v"+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+" v1715 h263 v84 H319z\nMM319 602 V0 H403 V602 v"+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+" v1799 H0 v-84 H319z\nMM319 602 V0 H403 V602 v"+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+" v602 h84z\nM403 1759 V0 H319 V1759 v"+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+" v602 h84z\nM347 1759 V0 h-84 V1759 v"+r+" v602 h84z";case"lparen":return"M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1\nc-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,\n-36,557 l0,"+(r+84)+"c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,\n949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9\nc0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,\n-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189\nl0,-"+(r+92)+"c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,\n-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z";case"rparen":return"M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,\n63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5\nc11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,"+(r+9)+"\nc-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664\nc-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11\nc0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17\nc242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558\nl0,-"+(r+144)+"c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,\n-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z";default:throw new Error("Unknown stretchy delimiter.")}};class ee{constructor(e){this.children=void 0;this.classes=void 0;this.height=void 0;this.depth=void 0;this.maxFontSize=void 0;this.style=void 0;this.children=e;this.classes=[];this.height=0;this.depth=0;this.maxFontSize=0;this.style={}}hasClass(e){return g.contains(this.classes,e)}toNode(){var e=document.createDocumentFragment();for(var t=0;te.toText();return this.children.map(e).join("")}}var te={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}};var re={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]};var ae={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function ie(e,t){te[e]=t}function ne(e,t,r){if(!te[t]){throw new Error("Font metrics not found for font: "+t+".")}var a=e.charCodeAt(0);var i=te[t][a];if(!i&&e[0]in ae){a=ae[e[0]].charCodeAt(0);i=te[t][a]}if(!i&&r==="text"){if(F(a)){i=te[t][77]}}if(i){return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}}var se={};function oe(e){var t;if(e>=5){t=0}else if(e>=3){t=1}else{t=2}if(!se[t]){var r=se[t]={cssEmPerMu:re.quad[t]/18};for(var a in re){if(re.hasOwnProperty(a)){r[a]=re[a][t]}}}return se[t]}var le=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]];var he=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488];var ue=function e(t,r){return r.size<2?t:le[t-1][r.size-1]};class me{constructor(e){this.style=void 0;this.color=void 0;this.size=void 0;this.textSize=void 0;this.phantom=void 0;this.font=void 0;this.fontFamily=void 0;this.fontWeight=void 0;this.fontShape=void 0;this.sizeMultiplier=void 0;this.maxSize=void 0;this.minRuleThickness=void 0;this._fontMetrics=void 0;this.style=e.style;this.color=e.color;this.size=e.size||me.BASESIZE;this.textSize=e.textSize||this.size;this.phantom=!!e.phantom;this.font=e.font||"";this.fontFamily=e.fontFamily||"";this.fontWeight=e.fontWeight||"";this.fontShape=e.fontShape||"";this.sizeMultiplier=he[this.size-1];this.maxSize=e.maxSize;this.minRuleThickness=e.minRuleThickness;this._fontMetrics=undefined}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e){if(e.hasOwnProperty(r)){t[r]=e[r]}}return new me(t)}havingStyle(e){if(this.style===e){return this}else{return this.extend({style:e,size:ue(this.textSize,e)})}}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){if(this.size===e&&this.textSize===e){return this}else{return this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:he[e-1]})}}havingBaseStyle(e){e=e||this.style.text();var t=ue(me.BASESIZE,e);if(this.size===t&&this.textSize===me.BASESIZE&&this.style===e){return this}else{return this.extend({style:e,size:t})}}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:true})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){if(e.size!==this.size){return["sizing","reset-size"+e.size,"size"+this.size]}else{return[]}}baseSizingClasses(){if(this.size!==me.BASESIZE){return["sizing","reset-size"+this.size,"size"+me.BASESIZE]}else{return[]}}fontMetrics(){if(!this._fontMetrics){this._fontMetrics=oe(this.size)}return this._fontMetrics}getColor(){if(this.phantom){return"transparent"}else{return this.color}}}me.BASESIZE=6;var ce={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800};var pe={ex:true,em:true,mu:true};var de=function e(t){if(typeof t!=="string"){t=t.unit}return t in ce||t in pe||t==="ex"};var fe=function e(t,r){var a;if(t.unit in ce){a=ce[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier}else if(t.unit==="mu"){a=r.fontMetrics().cssEmPerMu}else{var i;if(r.style.isTight()){i=r.havingStyle(r.style.text())}else{i=r}if(t.unit==="ex"){a=i.fontMetrics().xHeight}else if(t.unit==="em"){a=i.fontMetrics().quad}else{throw new n("Invalid unit: '"+t.unit+"'")}if(i!==r){a*=i.sizeMultiplier/r.sizeMultiplier}}return Math.min(t.number*a,r.maxSize)};var ve=function e(t){return+t.toFixed(4)+"em"};var ge=function e(t){return t.filter((e=>e)).join(" ")};var be=function e(t,r,a){this.classes=t||[];this.attributes={};this.height=0;this.depth=0;this.maxFontSize=0;this.style=a||{};if(r){if(r.style.isTight()){this.classes.push("mtight")}var i=r.getColor();if(i){this.style.color=i}}};var ye=function e(t){var r=document.createElement(t);r.className=ge(this.classes);for(var a in this.style){if(this.style.hasOwnProperty(a)){r.style[a]=this.style[a]}}for(var i in this.attributes){if(this.attributes.hasOwnProperty(i)){r.setAttribute(i,this.attributes[i])}}for(var n=0;n/=\x00-\x1f]/;var we=function e(t){var r="<"+t;if(this.classes.length){r+=' class="'+g.escape(ge(this.classes))+'"'}var a="";for(var i in this.style){if(this.style.hasOwnProperty(i)){a+=g.hyphenate(i)+":"+this.style[i]+";"}}if(a){r+=' style="'+g.escape(a)+'"'}for(var s in this.attributes){if(this.attributes.hasOwnProperty(s)){if(xe.test(s)){throw new n("Invalid attribute name '"+s+"'")}r+=" "+s+'="'+g.escape(this.attributes[s])+'"'}}r+=">";for(var o=0;o";return r};class ke{constructor(e,t,r,a){this.children=void 0;this.attributes=void 0;this.classes=void 0;this.height=void 0;this.depth=void 0;this.width=void 0;this.maxFontSize=void 0;this.style=void 0;be.call(this,e,r,a);this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return g.contains(this.classes,e)}toNode(){return ye.call(this,"span")}toMarkup(){return we.call(this,"span")}}class Se{constructor(e,t,r,a){this.children=void 0;this.attributes=void 0;this.classes=void 0;this.height=void 0;this.depth=void 0;this.maxFontSize=void 0;this.style=void 0;be.call(this,t,a);this.children=r||[];this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return g.contains(this.classes,e)}toNode(){return ye.call(this,"a")}toMarkup(){return we.call(this,"a")}}class Me{constructor(e,t,r){this.src=void 0;this.alt=void 0;this.classes=void 0;this.height=void 0;this.depth=void 0;this.maxFontSize=void 0;this.style=void 0;this.alt=t;this.src=e;this.classes=["mord"];this.style=r}hasClass(e){return g.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src;e.alt=this.alt;e.className="mord";for(var t in this.style){if(this.style.hasOwnProperty(t)){e.style[t]=this.style[t]}}return e}toMarkup(){var e=''+g.escape(this.alt)+'0){t=document.createElement("span");t.style.marginRight=ve(this.italic)}if(this.classes.length>0){t=t||document.createElement("span");t.className=ge(this.classes)}for(var r in this.style){if(this.style.hasOwnProperty(r)){t=t||document.createElement("span");t.style[r]=this.style[r]}}if(t){t.appendChild(e);return t}else{return e}}toMarkup(){var e=false;var t="0){r+="margin-right:"+this.italic+"em;"}for(var a in this.style){if(this.style.hasOwnProperty(a)){r+=g.hyphenate(a)+":"+this.style[a]+";"}}if(r){e=true;t+=' style="'+g.escape(r)+'"'}var i=g.escape(this.text);if(e){t+=">";t+=i;t+="";return t}else{return i}}}class Te{constructor(e,t){this.children=void 0;this.attributes=void 0;this.children=e||[];this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg";var t=document.createElementNS(e,"svg");for(var r in this.attributes){if(Object.prototype.hasOwnProperty.call(this.attributes,r)){t.setAttribute(r,this.attributes[r])}}for(var a=0;a";return e}}class Be{constructor(e,t){this.pathName=void 0;this.alternate=void 0;this.pathName=e;this.alternate=t}toNode(){var e="http://www.w3.org/2000/svg";var t=document.createElementNS(e,"path");if(this.alternate){t.setAttribute("d",this.alternate)}else{t.setAttribute("d",J[this.pathName])}return t}toMarkup(){if(this.alternate){return''}else{return''}}}class Ce{constructor(e){this.attributes=void 0;this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg";var t=document.createElementNS(e,"line");for(var r in this.attributes){if(Object.prototype.hasOwnProperty.call(this.attributes,r)){t.setAttribute(r,this.attributes[r])}}return t}toMarkup(){var e=" but got "+String(e)+".")}}var Ie={bin:1,close:1,inner:1,open:1,punct:1,rel:1};var Re={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};var He={math:{},text:{}};function Oe(e,t,r,a,i,n){He[e][i]={font:t,group:r,replace:a};if(n&&a){He[e][a]=He[e][i]}}var Ee="math";var Le="text";var De="main";var Ve="ams";var Pe="accent-token";var Fe="bin";var Ge="close";var Ue="inner";var Ye="mathord";var Xe="op-token";var We="open";var _e="punct";var je="rel";var $e="spacing";var Ze="textord";Oe(Ee,De,je,"≡","\\equiv",true);Oe(Ee,De,je,"≺","\\prec",true);Oe(Ee,De,je,"≻","\\succ",true);Oe(Ee,De,je,"∼","\\sim",true);Oe(Ee,De,je,"⊥","\\perp");Oe(Ee,De,je,"⪯","\\preceq",true);Oe(Ee,De,je,"⪰","\\succeq",true);Oe(Ee,De,je,"≃","\\simeq",true);Oe(Ee,De,je,"∣","\\mid",true);Oe(Ee,De,je,"≪","\\ll",true);Oe(Ee,De,je,"≫","\\gg",true);Oe(Ee,De,je,"≍","\\asymp",true);Oe(Ee,De,je,"∥","\\parallel");Oe(Ee,De,je,"⋈","\\bowtie",true);Oe(Ee,De,je,"⌣","\\smile",true);Oe(Ee,De,je,"⊑","\\sqsubseteq",true);Oe(Ee,De,je,"⊒","\\sqsupseteq",true);Oe(Ee,De,je,"≐","\\doteq",true);Oe(Ee,De,je,"⌢","\\frown",true);Oe(Ee,De,je,"∋","\\ni",true);Oe(Ee,De,je,"∝","\\propto",true);Oe(Ee,De,je,"⊢","\\vdash",true);Oe(Ee,De,je,"⊣","\\dashv",true);Oe(Ee,De,je,"∋","\\owns");Oe(Ee,De,_e,".","\\ldotp");Oe(Ee,De,_e,"⋅","\\cdotp");Oe(Ee,De,Ze,"#","\\#");Oe(Le,De,Ze,"#","\\#");Oe(Ee,De,Ze,"&","\\&");Oe(Le,De,Ze,"&","\\&");Oe(Ee,De,Ze,"ℵ","\\aleph",true);Oe(Ee,De,Ze,"∀","\\forall",true);Oe(Ee,De,Ze,"ℏ","\\hbar",true);Oe(Ee,De,Ze,"∃","\\exists",true);Oe(Ee,De,Ze,"∇","\\nabla",true);Oe(Ee,De,Ze,"♭","\\flat",true);Oe(Ee,De,Ze,"ℓ","\\ell",true);Oe(Ee,De,Ze,"♮","\\natural",true);Oe(Ee,De,Ze,"♣","\\clubsuit",true);Oe(Ee,De,Ze,"℘","\\wp",true);Oe(Ee,De,Ze,"♯","\\sharp",true);Oe(Ee,De,Ze,"♢","\\diamondsuit",true);Oe(Ee,De,Ze,"ℜ","\\Re",true);Oe(Ee,De,Ze,"♡","\\heartsuit",true);Oe(Ee,De,Ze,"ℑ","\\Im",true);Oe(Ee,De,Ze,"♠","\\spadesuit",true);Oe(Ee,De,Ze,"§","\\S",true);Oe(Le,De,Ze,"§","\\S");Oe(Ee,De,Ze,"¶","\\P",true);Oe(Le,De,Ze,"¶","\\P");Oe(Ee,De,Ze,"†","\\dag");Oe(Le,De,Ze,"†","\\dag");Oe(Le,De,Ze,"†","\\textdagger");Oe(Ee,De,Ze,"‡","\\ddag");Oe(Le,De,Ze,"‡","\\ddag");Oe(Le,De,Ze,"‡","\\textdaggerdbl");Oe(Ee,De,Ge,"⎱","\\rmoustache",true);Oe(Ee,De,We,"⎰","\\lmoustache",true);Oe(Ee,De,Ge,"⟯","\\rgroup",true);Oe(Ee,De,We,"⟮","\\lgroup",true);Oe(Ee,De,Fe,"∓","\\mp",true);Oe(Ee,De,Fe,"⊖","\\ominus",true);Oe(Ee,De,Fe,"⊎","\\uplus",true);Oe(Ee,De,Fe,"⊓","\\sqcap",true);Oe(Ee,De,Fe,"∗","\\ast");Oe(Ee,De,Fe,"⊔","\\sqcup",true);Oe(Ee,De,Fe,"◯","\\bigcirc",true);Oe(Ee,De,Fe,"∙","\\bullet",true);Oe(Ee,De,Fe,"‡","\\ddagger");Oe(Ee,De,Fe,"≀","\\wr",true);Oe(Ee,De,Fe,"⨿","\\amalg");Oe(Ee,De,Fe,"&","\\And");Oe(Ee,De,je,"⟵","\\longleftarrow",true);Oe(Ee,De,je,"⇐","\\Leftarrow",true);Oe(Ee,De,je,"⟸","\\Longleftarrow",true);Oe(Ee,De,je,"⟶","\\longrightarrow",true);Oe(Ee,De,je,"⇒","\\Rightarrow",true);Oe(Ee,De,je,"⟹","\\Longrightarrow",true);Oe(Ee,De,je,"↔","\\leftrightarrow",true);Oe(Ee,De,je,"⟷","\\longleftrightarrow",true);Oe(Ee,De,je,"⇔","\\Leftrightarrow",true);Oe(Ee,De,je,"⟺","\\Longleftrightarrow",true);Oe(Ee,De,je,"↦","\\mapsto",true);Oe(Ee,De,je,"⟼","\\longmapsto",true);Oe(Ee,De,je,"↗","\\nearrow",true);Oe(Ee,De,je,"↩","\\hookleftarrow",true);Oe(Ee,De,je,"↪","\\hookrightarrow",true);Oe(Ee,De,je,"↘","\\searrow",true);Oe(Ee,De,je,"↼","\\leftharpoonup",true);Oe(Ee,De,je,"⇀","\\rightharpoonup",true);Oe(Ee,De,je,"↙","\\swarrow",true);Oe(Ee,De,je,"↽","\\leftharpoondown",true);Oe(Ee,De,je,"⇁","\\rightharpoondown",true);Oe(Ee,De,je,"↖","\\nwarrow",true);Oe(Ee,De,je,"⇌","\\rightleftharpoons",true);Oe(Ee,Ve,je,"≮","\\nless",true);Oe(Ee,Ve,je,"","\\@nleqslant");Oe(Ee,Ve,je,"","\\@nleqq");Oe(Ee,Ve,je,"⪇","\\lneq",true);Oe(Ee,Ve,je,"≨","\\lneqq",true);Oe(Ee,Ve,je,"","\\@lvertneqq");Oe(Ee,Ve,je,"⋦","\\lnsim",true);Oe(Ee,Ve,je,"⪉","\\lnapprox",true);Oe(Ee,Ve,je,"⊀","\\nprec",true);Oe(Ee,Ve,je,"⋠","\\npreceq",true);Oe(Ee,Ve,je,"⋨","\\precnsim",true);Oe(Ee,Ve,je,"⪹","\\precnapprox",true);Oe(Ee,Ve,je,"≁","\\nsim",true);Oe(Ee,Ve,je,"","\\@nshortmid");Oe(Ee,Ve,je,"∤","\\nmid",true);Oe(Ee,Ve,je,"⊬","\\nvdash",true);Oe(Ee,Ve,je,"⊭","\\nvDash",true);Oe(Ee,Ve,je,"⋪","\\ntriangleleft");Oe(Ee,Ve,je,"⋬","\\ntrianglelefteq",true);Oe(Ee,Ve,je,"⊊","\\subsetneq",true);Oe(Ee,Ve,je,"","\\@varsubsetneq");Oe(Ee,Ve,je,"⫋","\\subsetneqq",true);Oe(Ee,Ve,je,"","\\@varsubsetneqq");Oe(Ee,Ve,je,"≯","\\ngtr",true);Oe(Ee,Ve,je,"","\\@ngeqslant");Oe(Ee,Ve,je,"","\\@ngeqq");Oe(Ee,Ve,je,"⪈","\\gneq",true);Oe(Ee,Ve,je,"≩","\\gneqq",true);Oe(Ee,Ve,je,"","\\@gvertneqq");Oe(Ee,Ve,je,"⋧","\\gnsim",true);Oe(Ee,Ve,je,"⪊","\\gnapprox",true);Oe(Ee,Ve,je,"⊁","\\nsucc",true);Oe(Ee,Ve,je,"⋡","\\nsucceq",true);Oe(Ee,Ve,je,"⋩","\\succnsim",true);Oe(Ee,Ve,je,"⪺","\\succnapprox",true);Oe(Ee,Ve,je,"≆","\\ncong",true);Oe(Ee,Ve,je,"","\\@nshortparallel");Oe(Ee,Ve,je,"∦","\\nparallel",true);Oe(Ee,Ve,je,"⊯","\\nVDash",true);Oe(Ee,Ve,je,"⋫","\\ntriangleright");Oe(Ee,Ve,je,"⋭","\\ntrianglerighteq",true);Oe(Ee,Ve,je,"","\\@nsupseteqq");Oe(Ee,Ve,je,"⊋","\\supsetneq",true);Oe(Ee,Ve,je,"","\\@varsupsetneq");Oe(Ee,Ve,je,"⫌","\\supsetneqq",true);Oe(Ee,Ve,je,"","\\@varsupsetneqq");Oe(Ee,Ve,je,"⊮","\\nVdash",true);Oe(Ee,Ve,je,"⪵","\\precneqq",true);Oe(Ee,Ve,je,"⪶","\\succneqq",true);Oe(Ee,Ve,je,"","\\@nsubseteqq");Oe(Ee,Ve,Fe,"⊴","\\unlhd");Oe(Ee,Ve,Fe,"⊵","\\unrhd");Oe(Ee,Ve,je,"↚","\\nleftarrow",true);Oe(Ee,Ve,je,"↛","\\nrightarrow",true);Oe(Ee,Ve,je,"⇍","\\nLeftarrow",true);Oe(Ee,Ve,je,"⇏","\\nRightarrow",true);Oe(Ee,Ve,je,"↮","\\nleftrightarrow",true);Oe(Ee,Ve,je,"⇎","\\nLeftrightarrow",true);Oe(Ee,Ve,je,"△","\\vartriangle");Oe(Ee,Ve,Ze,"ℏ","\\hslash");Oe(Ee,Ve,Ze,"▽","\\triangledown");Oe(Ee,Ve,Ze,"◊","\\lozenge");Oe(Ee,Ve,Ze,"Ⓢ","\\circledS");Oe(Ee,Ve,Ze,"®","\\circledR");Oe(Le,Ve,Ze,"®","\\circledR");Oe(Ee,Ve,Ze,"∡","\\measuredangle",true);Oe(Ee,Ve,Ze,"∄","\\nexists");Oe(Ee,Ve,Ze,"℧","\\mho");Oe(Ee,Ve,Ze,"Ⅎ","\\Finv",true);Oe(Ee,Ve,Ze,"⅁","\\Game",true);Oe(Ee,Ve,Ze,"‵","\\backprime");Oe(Ee,Ve,Ze,"▲","\\blacktriangle");Oe(Ee,Ve,Ze,"▼","\\blacktriangledown");Oe(Ee,Ve,Ze,"■","\\blacksquare");Oe(Ee,Ve,Ze,"⧫","\\blacklozenge");Oe(Ee,Ve,Ze,"★","\\bigstar");Oe(Ee,Ve,Ze,"∢","\\sphericalangle",true);Oe(Ee,Ve,Ze,"∁","\\complement",true);Oe(Ee,Ve,Ze,"ð","\\eth",true);Oe(Le,De,Ze,"ð","ð");Oe(Ee,Ve,Ze,"╱","\\diagup");Oe(Ee,Ve,Ze,"╲","\\diagdown");Oe(Ee,Ve,Ze,"□","\\square");Oe(Ee,Ve,Ze,"□","\\Box");Oe(Ee,Ve,Ze,"◊","\\Diamond");Oe(Ee,Ve,Ze,"¥","\\yen",true);Oe(Le,Ve,Ze,"¥","\\yen",true);Oe(Ee,Ve,Ze,"✓","\\checkmark",true);Oe(Le,Ve,Ze,"✓","\\checkmark");Oe(Ee,Ve,Ze,"ℶ","\\beth",true);Oe(Ee,Ve,Ze,"ℸ","\\daleth",true);Oe(Ee,Ve,Ze,"ℷ","\\gimel",true);Oe(Ee,Ve,Ze,"ϝ","\\digamma",true);Oe(Ee,Ve,Ze,"ϰ","\\varkappa");Oe(Ee,Ve,We,"┌","\\@ulcorner",true);Oe(Ee,Ve,Ge,"┐","\\@urcorner",true);Oe(Ee,Ve,We,"└","\\@llcorner",true);Oe(Ee,Ve,Ge,"┘","\\@lrcorner",true);Oe(Ee,Ve,je,"≦","\\leqq",true);Oe(Ee,Ve,je,"⩽","\\leqslant",true);Oe(Ee,Ve,je,"⪕","\\eqslantless",true);Oe(Ee,Ve,je,"≲","\\lesssim",true);Oe(Ee,Ve,je,"⪅","\\lessapprox",true);Oe(Ee,Ve,je,"≊","\\approxeq",true);Oe(Ee,Ve,Fe,"⋖","\\lessdot");Oe(Ee,Ve,je,"⋘","\\lll",true);Oe(Ee,Ve,je,"≶","\\lessgtr",true);Oe(Ee,Ve,je,"⋚","\\lesseqgtr",true);Oe(Ee,Ve,je,"⪋","\\lesseqqgtr",true);Oe(Ee,Ve,je,"≑","\\doteqdot");Oe(Ee,Ve,je,"≓","\\risingdotseq",true);Oe(Ee,Ve,je,"≒","\\fallingdotseq",true);Oe(Ee,Ve,je,"∽","\\backsim",true);Oe(Ee,Ve,je,"⋍","\\backsimeq",true);Oe(Ee,Ve,je,"⫅","\\subseteqq",true);Oe(Ee,Ve,je,"⋐","\\Subset",true);Oe(Ee,Ve,je,"⊏","\\sqsubset",true);Oe(Ee,Ve,je,"≼","\\preccurlyeq",true);Oe(Ee,Ve,je,"⋞","\\curlyeqprec",true);Oe(Ee,Ve,je,"≾","\\precsim",true);Oe(Ee,Ve,je,"⪷","\\precapprox",true);Oe(Ee,Ve,je,"⊲","\\vartriangleleft");Oe(Ee,Ve,je,"⊴","\\trianglelefteq");Oe(Ee,Ve,je,"⊨","\\vDash",true);Oe(Ee,Ve,je,"⊪","\\Vvdash",true);Oe(Ee,Ve,je,"⌣","\\smallsmile");Oe(Ee,Ve,je,"⌢","\\smallfrown");Oe(Ee,Ve,je,"≏","\\bumpeq",true);Oe(Ee,Ve,je,"≎","\\Bumpeq",true);Oe(Ee,Ve,je,"≧","\\geqq",true);Oe(Ee,Ve,je,"⩾","\\geqslant",true);Oe(Ee,Ve,je,"⪖","\\eqslantgtr",true);Oe(Ee,Ve,je,"≳","\\gtrsim",true);Oe(Ee,Ve,je,"⪆","\\gtrapprox",true);Oe(Ee,Ve,Fe,"⋗","\\gtrdot");Oe(Ee,Ve,je,"⋙","\\ggg",true);Oe(Ee,Ve,je,"≷","\\gtrless",true);Oe(Ee,Ve,je,"⋛","\\gtreqless",true);Oe(Ee,Ve,je,"⪌","\\gtreqqless",true);Oe(Ee,Ve,je,"≖","\\eqcirc",true);Oe(Ee,Ve,je,"≗","\\circeq",true);Oe(Ee,Ve,je,"≜","\\triangleq",true);Oe(Ee,Ve,je,"∼","\\thicksim");Oe(Ee,Ve,je,"≈","\\thickapprox");Oe(Ee,Ve,je,"⫆","\\supseteqq",true);Oe(Ee,Ve,je,"⋑","\\Supset",true);Oe(Ee,Ve,je,"⊐","\\sqsupset",true);Oe(Ee,Ve,je,"≽","\\succcurlyeq",true);Oe(Ee,Ve,je,"⋟","\\curlyeqsucc",true);Oe(Ee,Ve,je,"≿","\\succsim",true);Oe(Ee,Ve,je,"⪸","\\succapprox",true);Oe(Ee,Ve,je,"⊳","\\vartriangleright");Oe(Ee,Ve,je,"⊵","\\trianglerighteq");Oe(Ee,Ve,je,"⊩","\\Vdash",true);Oe(Ee,Ve,je,"∣","\\shortmid");Oe(Ee,Ve,je,"∥","\\shortparallel");Oe(Ee,Ve,je,"≬","\\between",true);Oe(Ee,Ve,je,"⋔","\\pitchfork",true);Oe(Ee,Ve,je,"∝","\\varpropto");Oe(Ee,Ve,je,"◀","\\blacktriangleleft");Oe(Ee,Ve,je,"∴","\\therefore",true);Oe(Ee,Ve,je,"∍","\\backepsilon");Oe(Ee,Ve,je,"▶","\\blacktriangleright");Oe(Ee,Ve,je,"∵","\\because",true);Oe(Ee,Ve,je,"⋘","\\llless");Oe(Ee,Ve,je,"⋙","\\gggtr");Oe(Ee,Ve,Fe,"⊲","\\lhd");Oe(Ee,Ve,Fe,"⊳","\\rhd");Oe(Ee,Ve,je,"≂","\\eqsim",true);Oe(Ee,De,je,"⋈","\\Join");Oe(Ee,Ve,je,"≑","\\Doteq",true);Oe(Ee,Ve,Fe,"∔","\\dotplus",true);Oe(Ee,Ve,Fe,"∖","\\smallsetminus");Oe(Ee,Ve,Fe,"⋒","\\Cap",true);Oe(Ee,Ve,Fe,"⋓","\\Cup",true);Oe(Ee,Ve,Fe,"⩞","\\doublebarwedge",true);Oe(Ee,Ve,Fe,"⊟","\\boxminus",true);Oe(Ee,Ve,Fe,"⊞","\\boxplus",true);Oe(Ee,Ve,Fe,"⋇","\\divideontimes",true);Oe(Ee,Ve,Fe,"⋉","\\ltimes",true);Oe(Ee,Ve,Fe,"⋊","\\rtimes",true);Oe(Ee,Ve,Fe,"⋋","\\leftthreetimes",true);Oe(Ee,Ve,Fe,"⋌","\\rightthreetimes",true);Oe(Ee,Ve,Fe,"⋏","\\curlywedge",true);Oe(Ee,Ve,Fe,"⋎","\\curlyvee",true);Oe(Ee,Ve,Fe,"⊝","\\circleddash",true);Oe(Ee,Ve,Fe,"⊛","\\circledast",true);Oe(Ee,Ve,Fe,"⋅","\\centerdot");Oe(Ee,Ve,Fe,"⊺","\\intercal",true);Oe(Ee,Ve,Fe,"⋒","\\doublecap");Oe(Ee,Ve,Fe,"⋓","\\doublecup");Oe(Ee,Ve,Fe,"⊠","\\boxtimes",true);Oe(Ee,Ve,je,"⇢","\\dashrightarrow",true);Oe(Ee,Ve,je,"⇠","\\dashleftarrow",true);Oe(Ee,Ve,je,"⇇","\\leftleftarrows",true);Oe(Ee,Ve,je,"⇆","\\leftrightarrows",true);Oe(Ee,Ve,je,"⇚","\\Lleftarrow",true);Oe(Ee,Ve,je,"↞","\\twoheadleftarrow",true);Oe(Ee,Ve,je,"↢","\\leftarrowtail",true);Oe(Ee,Ve,je,"↫","\\looparrowleft",true);Oe(Ee,Ve,je,"⇋","\\leftrightharpoons",true);Oe(Ee,Ve,je,"↶","\\curvearrowleft",true);Oe(Ee,Ve,je,"↺","\\circlearrowleft",true);Oe(Ee,Ve,je,"↰","\\Lsh",true);Oe(Ee,Ve,je,"⇈","\\upuparrows",true);Oe(Ee,Ve,je,"↿","\\upharpoonleft",true);Oe(Ee,Ve,je,"⇃","\\downharpoonleft",true);Oe(Ee,De,je,"⊶","\\origof",true);Oe(Ee,De,je,"⊷","\\imageof",true);Oe(Ee,Ve,je,"⊸","\\multimap",true);Oe(Ee,Ve,je,"↭","\\leftrightsquigarrow",true);Oe(Ee,Ve,je,"⇉","\\rightrightarrows",true);Oe(Ee,Ve,je,"⇄","\\rightleftarrows",true);Oe(Ee,Ve,je,"↠","\\twoheadrightarrow",true);Oe(Ee,Ve,je,"↣","\\rightarrowtail",true);Oe(Ee,Ve,je,"↬","\\looparrowright",true);Oe(Ee,Ve,je,"↷","\\curvearrowright",true);Oe(Ee,Ve,je,"↻","\\circlearrowright",true);Oe(Ee,Ve,je,"↱","\\Rsh",true);Oe(Ee,Ve,je,"⇊","\\downdownarrows",true);Oe(Ee,Ve,je,"↾","\\upharpoonright",true);Oe(Ee,Ve,je,"⇂","\\downharpoonright",true);Oe(Ee,Ve,je,"⇝","\\rightsquigarrow",true);Oe(Ee,Ve,je,"⇝","\\leadsto");Oe(Ee,Ve,je,"⇛","\\Rrightarrow",true);Oe(Ee,Ve,je,"↾","\\restriction");Oe(Ee,De,Ze,"‘","`");Oe(Ee,De,Ze,"$","\\$");Oe(Le,De,Ze,"$","\\$");Oe(Le,De,Ze,"$","\\textdollar");Oe(Ee,De,Ze,"%","\\%");Oe(Le,De,Ze,"%","\\%");Oe(Ee,De,Ze,"_","\\_");Oe(Le,De,Ze,"_","\\_");Oe(Le,De,Ze,"_","\\textunderscore");Oe(Ee,De,Ze,"∠","\\angle",true);Oe(Ee,De,Ze,"∞","\\infty",true);Oe(Ee,De,Ze,"′","\\prime");Oe(Ee,De,Ze,"△","\\triangle");Oe(Ee,De,Ze,"Γ","\\Gamma",true);Oe(Ee,De,Ze,"Δ","\\Delta",true);Oe(Ee,De,Ze,"Θ","\\Theta",true);Oe(Ee,De,Ze,"Λ","\\Lambda",true);Oe(Ee,De,Ze,"Ξ","\\Xi",true);Oe(Ee,De,Ze,"Π","\\Pi",true);Oe(Ee,De,Ze,"Σ","\\Sigma",true);Oe(Ee,De,Ze,"Υ","\\Upsilon",true);Oe(Ee,De,Ze,"Φ","\\Phi",true);Oe(Ee,De,Ze,"Ψ","\\Psi",true);Oe(Ee,De,Ze,"Ω","\\Omega",true);Oe(Ee,De,Ze,"A","Α");Oe(Ee,De,Ze,"B","Β");Oe(Ee,De,Ze,"E","Ε");Oe(Ee,De,Ze,"Z","Ζ");Oe(Ee,De,Ze,"H","Η");Oe(Ee,De,Ze,"I","Ι");Oe(Ee,De,Ze,"K","Κ");Oe(Ee,De,Ze,"M","Μ");Oe(Ee,De,Ze,"N","Ν");Oe(Ee,De,Ze,"O","Ο");Oe(Ee,De,Ze,"P","Ρ");Oe(Ee,De,Ze,"T","Τ");Oe(Ee,De,Ze,"X","Χ");Oe(Ee,De,Ze,"¬","\\neg",true);Oe(Ee,De,Ze,"¬","\\lnot");Oe(Ee,De,Ze,"⊤","\\top");Oe(Ee,De,Ze,"⊥","\\bot");Oe(Ee,De,Ze,"∅","\\emptyset");Oe(Ee,Ve,Ze,"∅","\\varnothing");Oe(Ee,De,Ye,"α","\\alpha",true);Oe(Ee,De,Ye,"β","\\beta",true);Oe(Ee,De,Ye,"γ","\\gamma",true);Oe(Ee,De,Ye,"δ","\\delta",true);Oe(Ee,De,Ye,"ϵ","\\epsilon",true);Oe(Ee,De,Ye,"ζ","\\zeta",true);Oe(Ee,De,Ye,"η","\\eta",true);Oe(Ee,De,Ye,"θ","\\theta",true);Oe(Ee,De,Ye,"ι","\\iota",true);Oe(Ee,De,Ye,"κ","\\kappa",true);Oe(Ee,De,Ye,"λ","\\lambda",true);Oe(Ee,De,Ye,"μ","\\mu",true);Oe(Ee,De,Ye,"ν","\\nu",true);Oe(Ee,De,Ye,"ξ","\\xi",true);Oe(Ee,De,Ye,"ο","\\omicron",true);Oe(Ee,De,Ye,"π","\\pi",true);Oe(Ee,De,Ye,"ρ","\\rho",true);Oe(Ee,De,Ye,"σ","\\sigma",true);Oe(Ee,De,Ye,"τ","\\tau",true);Oe(Ee,De,Ye,"υ","\\upsilon",true);Oe(Ee,De,Ye,"ϕ","\\phi",true);Oe(Ee,De,Ye,"χ","\\chi",true);Oe(Ee,De,Ye,"ψ","\\psi",true);Oe(Ee,De,Ye,"ω","\\omega",true);Oe(Ee,De,Ye,"ε","\\varepsilon",true);Oe(Ee,De,Ye,"ϑ","\\vartheta",true);Oe(Ee,De,Ye,"ϖ","\\varpi",true);Oe(Ee,De,Ye,"ϱ","\\varrho",true);Oe(Ee,De,Ye,"ς","\\varsigma",true);Oe(Ee,De,Ye,"φ","\\varphi",true);Oe(Ee,De,Fe,"∗","*",true);Oe(Ee,De,Fe,"+","+");Oe(Ee,De,Fe,"−","-",true);Oe(Ee,De,Fe,"⋅","\\cdot",true);Oe(Ee,De,Fe,"∘","\\circ",true);Oe(Ee,De,Fe,"÷","\\div",true);Oe(Ee,De,Fe,"±","\\pm",true);Oe(Ee,De,Fe,"×","\\times",true);Oe(Ee,De,Fe,"∩","\\cap",true);Oe(Ee,De,Fe,"∪","\\cup",true);Oe(Ee,De,Fe,"∖","\\setminus",true);Oe(Ee,De,Fe,"∧","\\land");Oe(Ee,De,Fe,"∨","\\lor");Oe(Ee,De,Fe,"∧","\\wedge",true);Oe(Ee,De,Fe,"∨","\\vee",true);Oe(Ee,De,Ze,"√","\\surd");Oe(Ee,De,We,"⟨","\\langle",true);Oe(Ee,De,We,"∣","\\lvert");Oe(Ee,De,We,"∥","\\lVert");Oe(Ee,De,Ge,"?","?");Oe(Ee,De,Ge,"!","!");Oe(Ee,De,Ge,"⟩","\\rangle",true);Oe(Ee,De,Ge,"∣","\\rvert");Oe(Ee,De,Ge,"∥","\\rVert");Oe(Ee,De,je,"=","=");Oe(Ee,De,je,":",":");Oe(Ee,De,je,"≈","\\approx",true);Oe(Ee,De,je,"≅","\\cong",true);Oe(Ee,De,je,"≥","\\ge");Oe(Ee,De,je,"≥","\\geq",true);Oe(Ee,De,je,"←","\\gets");Oe(Ee,De,je,">","\\gt",true);Oe(Ee,De,je,"∈","\\in",true);Oe(Ee,De,je,"","\\@not");Oe(Ee,De,je,"⊂","\\subset",true);Oe(Ee,De,je,"⊃","\\supset",true);Oe(Ee,De,je,"⊆","\\subseteq",true);Oe(Ee,De,je,"⊇","\\supseteq",true);Oe(Ee,Ve,je,"⊈","\\nsubseteq",true);Oe(Ee,Ve,je,"⊉","\\nsupseteq",true);Oe(Ee,De,je,"⊨","\\models");Oe(Ee,De,je,"←","\\leftarrow",true);Oe(Ee,De,je,"≤","\\le");Oe(Ee,De,je,"≤","\\leq",true);Oe(Ee,De,je,"<","\\lt",true);Oe(Ee,De,je,"→","\\rightarrow",true);Oe(Ee,De,je,"→","\\to");Oe(Ee,Ve,je,"≱","\\ngeq",true);Oe(Ee,Ve,je,"≰","\\nleq",true);Oe(Ee,De,$e," ","\\ ");Oe(Ee,De,$e," ","\\space");Oe(Ee,De,$e," ","\\nobreakspace");Oe(Le,De,$e," ","\\ ");Oe(Le,De,$e," "," ");Oe(Le,De,$e," ","\\space");Oe(Le,De,$e," ","\\nobreakspace");Oe(Ee,De,$e,null,"\\nobreak");Oe(Ee,De,$e,null,"\\allowbreak");Oe(Ee,De,_e,",",",");Oe(Ee,De,_e,";",";");Oe(Ee,Ve,Fe,"⊼","\\barwedge",true);Oe(Ee,Ve,Fe,"⊻","\\veebar",true);Oe(Ee,De,Fe,"⊙","\\odot",true);Oe(Ee,De,Fe,"⊕","\\oplus",true);Oe(Ee,De,Fe,"⊗","\\otimes",true);Oe(Ee,De,Ze,"∂","\\partial",true);Oe(Ee,De,Fe,"⊘","\\oslash",true);Oe(Ee,Ve,Fe,"⊚","\\circledcirc",true);Oe(Ee,Ve,Fe,"⊡","\\boxdot",true);Oe(Ee,De,Fe,"△","\\bigtriangleup");Oe(Ee,De,Fe,"▽","\\bigtriangledown");Oe(Ee,De,Fe,"†","\\dagger");Oe(Ee,De,Fe,"⋄","\\diamond");Oe(Ee,De,Fe,"⋆","\\star");Oe(Ee,De,Fe,"◃","\\triangleleft");Oe(Ee,De,Fe,"▹","\\triangleright");Oe(Ee,De,We,"{","\\{");Oe(Le,De,Ze,"{","\\{");Oe(Le,De,Ze,"{","\\textbraceleft");Oe(Ee,De,Ge,"}","\\}");Oe(Le,De,Ze,"}","\\}");Oe(Le,De,Ze,"}","\\textbraceright");Oe(Ee,De,We,"{","\\lbrace");Oe(Ee,De,Ge,"}","\\rbrace");Oe(Ee,De,We,"[","\\lbrack",true);Oe(Le,De,Ze,"[","\\lbrack",true);Oe(Ee,De,Ge,"]","\\rbrack",true);Oe(Le,De,Ze,"]","\\rbrack",true);Oe(Ee,De,We,"(","\\lparen",true);Oe(Ee,De,Ge,")","\\rparen",true);Oe(Le,De,Ze,"<","\\textless",true);Oe(Le,De,Ze,">","\\textgreater",true);Oe(Ee,De,We,"⌊","\\lfloor",true);Oe(Ee,De,Ge,"⌋","\\rfloor",true);Oe(Ee,De,We,"⌈","\\lceil",true);Oe(Ee,De,Ge,"⌉","\\rceil",true);Oe(Ee,De,Ze,"\\","\\backslash");Oe(Ee,De,Ze,"∣","|");Oe(Ee,De,Ze,"∣","\\vert");Oe(Le,De,Ze,"|","\\textbar",true);Oe(Ee,De,Ze,"∥","\\|");Oe(Ee,De,Ze,"∥","\\Vert");Oe(Le,De,Ze,"∥","\\textbardbl");Oe(Le,De,Ze,"~","\\textasciitilde");Oe(Le,De,Ze,"\\","\\textbackslash");Oe(Le,De,Ze,"^","\\textasciicircum");Oe(Ee,De,je,"↑","\\uparrow",true);Oe(Ee,De,je,"⇑","\\Uparrow",true);Oe(Ee,De,je,"↓","\\downarrow",true);Oe(Ee,De,je,"⇓","\\Downarrow",true);Oe(Ee,De,je,"↕","\\updownarrow",true);Oe(Ee,De,je,"⇕","\\Updownarrow",true);Oe(Ee,De,Xe,"∐","\\coprod");Oe(Ee,De,Xe,"⋁","\\bigvee");Oe(Ee,De,Xe,"⋀","\\bigwedge");Oe(Ee,De,Xe,"⨄","\\biguplus");Oe(Ee,De,Xe,"⋂","\\bigcap");Oe(Ee,De,Xe,"⋃","\\bigcup");Oe(Ee,De,Xe,"∫","\\int");Oe(Ee,De,Xe,"∫","\\intop");Oe(Ee,De,Xe,"∬","\\iint");Oe(Ee,De,Xe,"∭","\\iiint");Oe(Ee,De,Xe,"∏","\\prod");Oe(Ee,De,Xe,"∑","\\sum");Oe(Ee,De,Xe,"⨂","\\bigotimes");Oe(Ee,De,Xe,"⨁","\\bigoplus");Oe(Ee,De,Xe,"⨀","\\bigodot");Oe(Ee,De,Xe,"∮","\\oint");Oe(Ee,De,Xe,"∯","\\oiint");Oe(Ee,De,Xe,"∰","\\oiiint");Oe(Ee,De,Xe,"⨆","\\bigsqcup");Oe(Ee,De,Xe,"∫","\\smallint");Oe(Le,De,Ue,"…","\\textellipsis");Oe(Ee,De,Ue,"…","\\mathellipsis");Oe(Le,De,Ue,"…","\\ldots",true);Oe(Ee,De,Ue,"…","\\ldots",true);Oe(Ee,De,Ue,"⋯","\\@cdots",true);Oe(Ee,De,Ue,"⋱","\\ddots",true);Oe(Ee,De,Ze,"⋮","\\varvdots");Oe(Le,De,Ze,"⋮","\\varvdots");Oe(Ee,De,Pe,"ˊ","\\acute");Oe(Ee,De,Pe,"ˋ","\\grave");Oe(Ee,De,Pe,"¨","\\ddot");Oe(Ee,De,Pe,"~","\\tilde");Oe(Ee,De,Pe,"ˉ","\\bar");Oe(Ee,De,Pe,"˘","\\breve");Oe(Ee,De,Pe,"ˇ","\\check");Oe(Ee,De,Pe,"^","\\hat");Oe(Ee,De,Pe,"⃗","\\vec");Oe(Ee,De,Pe,"˙","\\dot");Oe(Ee,De,Pe,"˚","\\mathring");Oe(Ee,De,Ye,"","\\@imath");Oe(Ee,De,Ye,"","\\@jmath");Oe(Ee,De,Ze,"ı","ı");Oe(Ee,De,Ze,"ȷ","ȷ");Oe(Le,De,Ze,"ı","\\i",true);Oe(Le,De,Ze,"ȷ","\\j",true);Oe(Le,De,Ze,"ß","\\ss",true);Oe(Le,De,Ze,"æ","\\ae",true);Oe(Le,De,Ze,"œ","\\oe",true);Oe(Le,De,Ze,"ø","\\o",true);Oe(Le,De,Ze,"Æ","\\AE",true);Oe(Le,De,Ze,"Œ","\\OE",true);Oe(Le,De,Ze,"Ø","\\O",true);Oe(Le,De,Pe,"ˊ","\\'");Oe(Le,De,Pe,"ˋ","\\`");Oe(Le,De,Pe,"ˆ","\\^");Oe(Le,De,Pe,"˜","\\~");Oe(Le,De,Pe,"ˉ","\\=");Oe(Le,De,Pe,"˘","\\u");Oe(Le,De,Pe,"˙","\\.");Oe(Le,De,Pe,"¸","\\c");Oe(Le,De,Pe,"˚","\\r");Oe(Le,De,Pe,"ˇ","\\v");Oe(Le,De,Pe,"¨",'\\"');Oe(Le,De,Pe,"˝","\\H");Oe(Le,De,Pe,"◯","\\textcircled");var Ke={"--":true,"---":true,"``":true,"''":true};Oe(Le,De,Ze,"–","--",true);Oe(Le,De,Ze,"–","\\textendash");Oe(Le,De,Ze,"—","---",true);Oe(Le,De,Ze,"—","\\textemdash");Oe(Le,De,Ze,"‘","`",true);Oe(Le,De,Ze,"‘","\\textquoteleft");Oe(Le,De,Ze,"’","'",true);Oe(Le,De,Ze,"’","\\textquoteright");Oe(Le,De,Ze,"“","``",true);Oe(Le,De,Ze,"“","\\textquotedblleft");Oe(Le,De,Ze,"”","''",true);Oe(Le,De,Ze,"”","\\textquotedblright");Oe(Ee,De,Ze,"°","\\degree",true);Oe(Le,De,Ze,"°","\\degree");Oe(Le,De,Ze,"°","\\textdegree",true);Oe(Ee,De,Ze,"£","\\pounds");Oe(Ee,De,Ze,"£","\\mathsterling",true);Oe(Le,De,Ze,"£","\\pounds");Oe(Le,De,Ze,"£","\\textsterling",true);Oe(Ee,Ve,Ze,"✠","\\maltese");Oe(Le,Ve,Ze,"✠","\\maltese");var Je='0123456789/@."';for(var Qe=0;Qe0){return yt(n,h,i,r,s.concat(u))}else if(l){var m;var c;if(l==="boldsymbol"){var p=wt(n,i,r,s,a);m=p.fontName;c=[p.fontClass]}else if(o){m=Et[l].fontName;c=[l]}else{m=Ot(l,r.fontWeight,r.fontShape);c=[l,r.fontWeight,r.fontShape]}if(bt(n,m,i).metrics){return yt(n,m,i,r,s.concat(c))}else if(Ke.hasOwnProperty(n)&&m.slice(0,10)==="Typewriter"){var d=[];for(var f=0;f{if(ge(e.classes)!==ge(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize){return false}if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord"){return false}}for(var a in e.style){if(e.style.hasOwnProperty(a)&&e.style[a]!==t.style[a]){return false}}for(var i in t.style){if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i]){return false}}return true};var Mt=e=>{for(var t=0;tr){r=s.height}if(s.depth>a){a=s.depth}if(s.maxFontSize>i){i=s.maxFontSize}}t.height=r;t.depth=a;t.maxFontSize=i};var At=function e(t,r,a,i){var n=new ke(t,r,a,i);zt(n);return n};var Tt=(e,t,r,a)=>new ke(e,t,r,a);var Bt=function e(t,r,a){var i=At([t],[],r);i.height=Math.max(a||r.fontMetrics().defaultRuleThickness,r.minRuleThickness);i.style.borderBottomWidth=ve(i.height);i.maxFontSize=1;return i};var Ct=function e(t,r,a,i){var n=new Se(t,r,a,i);zt(n);return n};var Nt=function e(t){var r=new ee(t);zt(r);return r};var qt=function e(t,r){if(t instanceof ee){return At([],[t],r)}return t};var It=function e(t){if(t.positionType==="individualShift"){var r=t.children;var a=[r[0]];var i=-r[0].shift-r[0].elem.depth;var n=i;for(var s=1;s{var r=At(["mspace"],[],t);var a=fe(e,t);r.style.marginRight=ve(a);return r};var Ot=function e(t,r,a){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var n;if(r==="textbf"&&a==="textit"){n="BoldItalic"}else if(r==="textbf"){n="Bold"}else if(r==="textit"){n="Italic"}else{n="Regular"}return i+"-"+n};var Et={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}};var Lt={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]};var Dt=function e(t,r){var[a,i,n]=Lt[t];var s=new Be(a);var o=new Te([s],{width:ve(i),height:ve(n),style:"width:"+ve(i),viewBox:"0 0 "+1e3*i+" "+1e3*n,preserveAspectRatio:"xMinYMin"});var l=Tt(["overlay"],[o],r);l.height=n;l.style.height=ve(n);l.style.width=ve(i);return l};var Vt={fontMap:Et,makeSymbol:yt,mathsym:xt,makeSpan:At,makeSvgSpan:Tt,makeLineSpan:Bt,makeAnchor:Ct,makeFragment:Nt,wrapFragment:qt,makeVList:Rt,makeOrd:kt,makeGlue:Ht,staticSvg:Dt,svgData:Lt,tryCombineChars:Mt};var Pt={number:3,unit:"mu"};var Ft={number:4,unit:"mu"};var Gt={number:5,unit:"mu"};var Ut={mord:{mop:Pt,mbin:Ft,mrel:Gt,minner:Pt},mop:{mord:Pt,mop:Pt,mrel:Gt,minner:Pt},mbin:{mord:Ft,mop:Ft,mopen:Ft,minner:Ft},mrel:{mord:Gt,mop:Gt,mopen:Gt,minner:Gt},mopen:{},mclose:{mop:Pt,mbin:Ft,mrel:Gt,minner:Pt},mpunct:{mord:Pt,mop:Pt,mrel:Gt,mopen:Pt,mclose:Pt,mpunct:Pt,minner:Pt},minner:{mord:Pt,mop:Pt,mbin:Ft,mrel:Gt,mopen:Pt,mpunct:Pt,minner:Pt}};var Yt={mord:{mop:Pt},mop:{mord:Pt,mop:Pt},mbin:{},mrel:{},mopen:{},mclose:{mop:Pt},mpunct:{},minner:{mop:Pt}};var Xt={};var Wt={};var _t={};function jt(e){var{type:t,names:r,props:a,handler:i,htmlBuilder:n,mathmlBuilder:s}=e;var o={type:t,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===undefined?true:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:i};for(var l=0;l{var r=t.classes[0];var a=e.classes[0];if(r==="mbin"&&g.contains(er,a)){t.classes[0]="mord"}else if(a==="mbin"&&g.contains(Qt,r)){e.classes[0]="mord"}}),{node:m},c,p);ir(n,((e,t)=>{var r=or(t);var a=or(e);var i=r&&a?e.hasClass("mtight")?Yt[r][a]:Ut[r][a]:null;if(i){return Vt.makeGlue(i,h)}}),{node:m},c,p);return n};var ir=function e(t,r,a,i,n){if(i){t.push(i)}var s=0;for(;sr=>{t.splice(e+1,0,r);s++})(s)}if(i){t.pop()}};var nr=function e(t){if(t instanceof ee||t instanceof Se||t instanceof ke&&t.hasClass("enclosing")){return t}return null};var sr=function e(t,r){var a=nr(t);if(a){var i=a.children;if(i.length){if(r==="right"){return e(i[i.length-1],"right")}else if(r==="left"){return e(i[0],"left")}}}return t};var or=function e(t,r){if(!t){return null}if(r){t=sr(t,r)}return rr[t.classes[0]]||null};var lr=function e(t,r){var a=["nulldelimiter"].concat(t.baseSizingClasses());return Jt(r.concat(a))};var hr=function e(t,r,a){if(!t){return Jt()}if(Wt[t.type]){var i=Wt[t.type](t,r);if(a&&r.size!==a.size){i=Jt(r.sizingClasses(a),[i],r);var s=r.sizeMultiplier/a.sizeMultiplier;i.height*=s;i.depth*=s}return i}else{throw new n("Got group of unknown type: '"+t.type+"'")}};function ur(e,t){var r=Jt(["base"],e,t);var a=Jt(["strut"]);a.style.height=ve(r.height+r.depth);if(r.depth){a.style.verticalAlign=ve(-r.depth)}r.children.unshift(a);return r}function mr(e,t){var r=null;if(e.length===1&&e[0].type==="tag"){r=e[0].tag;e=e[0].body}var a=ar(e,t,"root");var i;if(a.length===2&&a[1].hasClass("tag")){i=a.pop()}var n=[];var s=[];for(var o=0;o0){n.push(ur(s,t));s=[]}n.push(a[o])}}if(s.length>0){n.push(ur(s,t))}var h;if(r){h=ur(ar(r,t,true));h.classes=["tag"];n.push(h)}else if(i){n.push(i)}var u=Jt(["katex-html"],n);u.setAttribute("aria-hidden","true");if(h){var m=h.children[0];m.style.height=ve(u.height+u.depth);if(u.depth){m.style.verticalAlign=ve(-u.depth)}}return u}function cr(e){return new ee(e)}class pr{constructor(e,t,r){this.type=void 0;this.attributes=void 0;this.children=void 0;this.classes=void 0;this.type=e;this.attributes={};this.children=t||[];this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes){if(Object.prototype.hasOwnProperty.call(this.attributes,t)){e.setAttribute(t,this.attributes[t])}}if(this.classes.length>0){e.className=ge(this.classes)}for(var r=0;r0){e+=' class ="'+g.escape(ge(this.classes))+'"'}e+=">";for(var r=0;r";return e}toText(){return this.children.map((e=>e.toText())).join("")}}class dr{constructor(e){this.text=void 0;this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return g.escape(this.toText())}toText(){return this.text}}class fr{constructor(e){this.width=void 0;this.character=void 0;this.width=e;if(e>=.05555&&e<=.05556){this.character=" "}else if(e>=.1666&&e<=.1667){this.character=" "}else if(e>=.2222&&e<=.2223){this.character=" "}else if(e>=.2777&&e<=.2778){this.character="  "}else if(e>=-.05556&&e<=-.05555){this.character=" ⁣"}else if(e>=-.1667&&e<=-.1666){this.character=" ⁣"}else if(e>=-.2223&&e<=-.2222){this.character=" ⁣"}else if(e>=-.2778&&e<=-.2777){this.character=" ⁣"}else{this.character=null}}toNode(){if(this.character){return document.createTextNode(this.character)}else{var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");e.setAttribute("width",ve(this.width));return e}}toMarkup(){if(this.character){return""+this.character+""}else{return''}}toText(){if(this.character){return this.character}else{return" "}}}var vr={MathNode:pr,TextNode:dr,SpaceNode:fr,newDocumentFragment:cr};var gr=function e(t,r,a){if(He[r][t]&&He[r][t].replace&&t.charCodeAt(0)!==55349&&!(Ke.hasOwnProperty(t)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))){t=He[r][t].replace}return new vr.TextNode(t)};var br=function e(t){if(t.length===1){return t[0]}else{return new vr.MathNode("mrow",t)}};var yr=function e(t,r){if(r.fontFamily==="texttt"){return"monospace"}else if(r.fontFamily==="textsf"){if(r.fontShape==="textit"&&r.fontWeight==="textbf"){return"sans-serif-bold-italic"}else if(r.fontShape==="textit"){return"sans-serif-italic"}else if(r.fontWeight==="textbf"){return"bold-sans-serif"}else{return"sans-serif"}}else if(r.fontShape==="textit"&&r.fontWeight==="textbf"){return"bold-italic"}else if(r.fontShape==="textit"){return"italic"}else if(r.fontWeight==="textbf"){return"bold"}var a=r.font;if(!a||a==="mathnormal"){return null}var i=t.mode;if(a==="mathit"){return"italic"}else if(a==="boldsymbol"){return t.type==="textord"?"bold":"bold-italic"}else if(a==="mathbf"){return"bold"}else if(a==="mathbb"){return"double-struck"}else if(a==="mathsfit"){return"sans-serif-italic"}else if(a==="mathfrak"){return"fraktur"}else if(a==="mathscr"||a==="mathcal"){return"script"}else if(a==="mathsf"){return"sans-serif"}else if(a==="mathtt"){return"monospace"}var n=t.text;if(g.contains(["\\imath","\\jmath"],n)){return null}if(He[i][n]&&He[i][n].replace){n=He[i][n].replace}var s=Vt.fontMap[a].fontName;if(ne(n,s,i)){return Vt.fontMap[a].variant}return null};function xr(e){if(!e){return false}if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof dr&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof dr&&r.text===","}else{return false}}var wr=function e(t,r,a){if(t.length===1){var i=Sr(t[0],r);if(a&&i instanceof pr&&i.type==="mo"){i.setAttribute("lspace","0em");i.setAttribute("rspace","0em")}return[i]}var n=[];var s;for(var o=0;o=1&&(s.type==="mn"||xr(s))){var h=l.children[0];if(h instanceof pr&&h.type==="mn"){h.children=[...s.children,...h.children];n.pop()}}else if(s.type==="mi"&&s.children.length===1){var u=s.children[0];if(u instanceof dr&&u.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var m=l.children[0];if(m instanceof dr&&m.text.length>0){m.text=m.text.slice(0,1)+"̸"+m.text.slice(1);n.pop()}}}}n.push(l);s=l}return n};var kr=function e(t,r,a){return br(wr(t,r,a))};var Sr=function e(t,r){if(!t){return new vr.MathNode("mrow")}if(_t[t.type]){var a=_t[t.type](t,r);return a}else{throw new n("Got group of unknown type: '"+t.type+"'")}};function Mr(e,t,r,a,i){var n=wr(e,r);var s;if(n.length===1&&n[0]instanceof pr&&g.contains(["mrow","mtable"],n[0].type)){s=n[0]}else{s=new vr.MathNode("mrow",n)}var o=new vr.MathNode("annotation",[new vr.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var l=new vr.MathNode("semantics",[s,o]);var h=new vr.MathNode("math",[l]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");if(a){h.setAttribute("display","block")}var u=i?"katex":"katex-mathml";return Vt.makeSpan([u],[h])}var zr=function e(t){return new me({style:t.displayMode?L.DISPLAY:L.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})};var Ar=function e(t,r){if(r.displayMode){var a=["katex-display"];if(r.leqno){a.push("leqno")}if(r.fleqn){a.push("fleqn")}t=Vt.makeSpan(a,[t])}return t};var Tr=function e(t,r,a){var i=zr(a);var n;if(a.output==="mathml"){return Mr(t,r,i,a.displayMode,true)}else if(a.output==="html"){var s=mr(t,i);n=Vt.makeSpan(["katex"],[s])}else{var o=Mr(t,r,i,a.displayMode,false);var l=mr(t,i);n=Vt.makeSpan(["katex"],[o,l])}return Ar(n,a)};var Br=function e(t,r,a){var i=zr(a);var n=mr(t,i);var s=Vt.makeSpan(["katex"],[n]);return Ar(s,a)};var Cr={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="};var Nr=function e(t){var r=new vr.MathNode("mo",[new vr.TextNode(Cr[t.replace(/^\\/,"")])]);r.setAttribute("stretchy","true");return r};var qr={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]};var Ir=function e(t){if(t.type==="ordgroup"){return t.body.length}else{return 1}};var Rr=function e(t,r){function a(){var e=4e5;var a=t.label.slice(1);if(g.contains(["widehat","widecheck","widetilde","utilde"],a)){var i=t;var n=Ir(i.base);var s;var o;var l;if(n>5){if(a==="widehat"||a==="widecheck"){s=420;e=2364;l=.42;o=a+"4"}else{s=312;e=2340;l=.34;o="tilde4"}}else{var h=[1,1,2,2,3,3][n];if(a==="widehat"||a==="widecheck"){e=[0,1062,2364,2364,2364][h];s=[0,239,300,360,420][h];l=[0,.24,.3,.3,.36,.42][h];o=a+h}else{e=[0,600,1033,2339,2340][h];s=[0,260,286,306,312][h];l=[0,.26,.286,.3,.306,.34][h];o="tilde"+h}}var u=new Be(o);var m=new Te([u],{width:"100%",height:ve(l),viewBox:"0 0 "+e+" "+s,preserveAspectRatio:"none"});return{span:Vt.makeSvgSpan([],[m],r),minWidth:0,height:l}}else{var c=[];var p=qr[a];var[d,f,v]=p;var b=v/1e3;var y=d.length;var x;var w;if(y===1){var k=p[3];x=["hide-tail"];w=[k]}else if(y===2){x=["halfarrow-left","halfarrow-right"];w=["xMinYMin","xMaxYMin"]}else if(y===3){x=["brace-left","brace-center","brace-right"];w=["xMinYMin","xMidYMin","xMaxYMin"]}else{throw new Error("Correct katexImagesData or update code here to support\n "+y+" children.")}for(var S=0;S0){i.style.minWidth=ve(n)}return i};var Hr=function e(t,r,a,i,n){var s;var o=t.height+t.depth+a+i;if(/fbox|color|angl/.test(r)){s=Vt.makeSpan(["stretchy",r],[],n);if(r==="fbox"){var l=n.color&&n.getColor();if(l){s.style.borderColor=l}}}else{var h=[];if(/^[bx]cancel$/.test(r)){h.push(new Ce({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"}))}if(/^x?cancel$/.test(r)){h.push(new Ce({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}))}var u=new Te(h,{width:"100%",height:ve(o)});s=Vt.makeSvgSpan([],[u],n)}s.height=o;s.style.height=ve(o);return s};var Or={encloseSpan:Hr,mathMLnode:Nr,svgSpan:Rr};function Er(e,t){if(!e||e.type!==t){throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)))}return e}function Lr(e){var t=Dr(e);if(!t){throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)))}return t}function Dr(e){if(e&&(e.type==="atom"||Re.hasOwnProperty(e.type))){return e}return null}var Vr=(e,t)=>{var r;var a;var i;if(e&&e.type==="supsub"){a=Er(e.base,"accent");r=a.base;e.base=r;i=qe(hr(e,t));e.base=a}else{a=Er(e,"accent");r=a.base}var n=hr(r,t.havingCrampedStyle());var s=a.isShifty&&g.isCharacterBox(r);var o=0;if(s){var l=g.getBaseElem(r);var h=hr(l,t.havingCrampedStyle());o=Ne(h).skew}var u=a.label==="\\c";var m=u?n.height+n.depth:Math.min(n.height,t.fontMetrics().xHeight);var c;if(!a.isStretchy){var p;var d;if(a.label==="\\vec"){p=Vt.staticSvg("vec",t);d=Vt.svgData.vec[1]}else{p=Vt.makeOrd({mode:a.mode,text:a.label},t,"textord");p=Ne(p);p.italic=0;d=p.width;if(u){m+=p.depth}}c=Vt.makeSpan(["accent-body"],[p]);var f=a.label==="\\textcircled";if(f){c.classes.push("accent-full");m=n.height}var v=o;if(!f){v-=d/2}c.style.left=ve(v);if(a.label==="\\textcircled"){c.style.top=".2em"}c=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:-m},{type:"elem",elem:c}]},t)}else{c=Or.svgSpan(a,t);c=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+ve(2*o)+")",marginLeft:ve(2*o)}:undefined}]},t)}var b=Vt.makeSpan(["mord","accent"],[c],t);if(i){i.children[0]=b;i.height=Math.max(b.height,i.height);i.classes[0]="mord";return i}else{return b}};var Pr=(e,t)=>{var r=e.isStretchy?Or.mathMLnode(e.label):new vr.MathNode("mo",[gr(e.label,e.mode)]);var a=new vr.MathNode("mover",[Sr(e.base,t),r]);a.setAttribute("accent","true");return a};var Fr=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((e=>"\\"+e)).join("|"));jt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=Zt(t[0]);var a=!Fr.test(e.funcName);var i=!a||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:i,base:r}},htmlBuilder:Vr,mathmlBuilder:Pr});jt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:true,allowedInMath:true,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0];var a=e.parser.mode;if(a==="math"){e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode");a="text"}return{type:"accent",mode:a,label:e.funcName,isStretchy:false,isShifty:true,base:r}},htmlBuilder:Vr,mathmlBuilder:Pr});jt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e;var i=t[0];return{type:"accentUnder",mode:r.mode,label:a,base:i}},htmlBuilder:(e,t)=>{var r=hr(e.base,t);var a=Or.svgSpan(e,t);var i=e.label==="\\utilde"?.12:0;var n=Vt.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:r}]},t);return Vt.makeSpan(["mord","accentunder"],[n],t)},mathmlBuilder:(e,t)=>{var r=Or.mathMLnode(e.label);var a=new vr.MathNode("munder",[Sr(e.base,t),r]);a.setAttribute("accentunder","true");return a}});var Gr=e=>{var t=new vr.MathNode("mpadded",e?[e]:[]);t.setAttribute("width","+0.6em");t.setAttribute("lspace","0.3em");return t};jt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a,funcName:i}=e;return{type:"xArrow",mode:a.mode,label:i,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style;var a=t.havingStyle(r.sup());var i=Vt.wrapFragment(hr(e.body,a,t),t);var n=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(n+"-arrow-pad");var s;if(e.below){a=t.havingStyle(r.sub());s=Vt.wrapFragment(hr(e.below,a,t),t);s.classes.push(n+"-arrow-pad")}var o=Or.svgSpan(e,t);var l=-t.fontMetrics().axisHeight+.5*o.height;var h=-t.fontMetrics().axisHeight-.5*o.height-.111;if(i.depth>.25||e.label==="\\xleftequilibrium"){h-=i.depth}var u;if(s){var m=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;u=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:m}]},t)}else{u=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:h},{type:"elem",elem:o,shift:l}]},t)}u.children[0].children[0].children[1].classes.push("svg-align");return Vt.makeSpan(["mrel","x-arrow"],[u],t)},mathmlBuilder(e,t){var r=Or.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(e.body){var i=Gr(Sr(e.body,t));if(e.below){var n=Gr(Sr(e.below,t));a=new vr.MathNode("munderover",[r,n,i])}else{a=new vr.MathNode("mover",[r,i])}}else if(e.below){var s=Gr(Sr(e.below,t));a=new vr.MathNode("munder",[r,s])}else{a=Gr();a=new vr.MathNode("mover",[r,a])}return a}});var Ur=Vt.makeSpan;function Yr(e,t){var r=ar(e.body,t,true);return Ur([e.mclass],r,t)}function Xr(e,t){var r;var a=wr(e.body,t);if(e.mclass==="minner"){r=new vr.MathNode("mpadded",a)}else if(e.mclass==="mord"){if(e.isCharacterBox){r=a[0];r.type="mi"}else{r=new vr.MathNode("mi",a)}}else{if(e.isCharacterBox){r=a[0];r.type="mo"}else{r=new vr.MathNode("mo",a)}if(e.mclass==="mbin"){r.attributes.lspace="0.22em";r.attributes.rspace="0.22em"}else if(e.mclass==="mpunct"){r.attributes.lspace="0em";r.attributes.rspace="0.17em"}else if(e.mclass==="mopen"||e.mclass==="mclose"){r.attributes.lspace="0em";r.attributes.rspace="0em"}else if(e.mclass==="minner"){r.attributes.lspace="0.0556em";r.attributes.width="+0.1111em"}}return r}jt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:true},handler(e,t){var{parser:r,funcName:a}=e;var i=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:Kt(i),isCharacterBox:g.isCharacterBox(i)}},htmlBuilder:Yr,mathmlBuilder:Xr});var Wr=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;if(t.type==="atom"&&(t.family==="bin"||t.family==="rel")){return"m"+t.family}else{return"mord"}};jt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Wr(t[0]),body:Kt(t[1]),isCharacterBox:g.isCharacterBox(t[1])}}});jt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:a}=e;var i=t[1];var n=t[0];var s;if(a!=="\\stackrel"){s=Wr(i)}else{s="mrel"}var o={type:"op",mode:i.mode,limits:true,alwaysHandleSupSub:true,parentIsSupSub:false,symbol:false,suppressBaseShift:a!=="\\stackrel",body:Kt(i)};var l={type:"supsub",mode:n.mode,base:o,sup:a==="\\underset"?null:n,sub:a==="\\underset"?n:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:g.isCharacterBox(l)}},htmlBuilder:Yr,mathmlBuilder:Xr});jt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:true},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Wr(t[0]),body:Kt(t[0])}},htmlBuilder(e,t){var r=ar(e.body,t,true);var a=Vt.makeSpan([e.mclass],r,t);a.style.textShadow="0.02em 0.01em 0.04px";return a},mathmlBuilder(e,t){var r=wr(e.body,t);var a=new vr.MathNode("mstyle",r);a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px");return a}});var _r={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"};var jr=()=>({type:"styling",body:[],mode:"math",style:"display"});var $r=e=>e.type==="textord"&&e.text==="@";var Zr=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Kr(e,t,r){var a=_r[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(a,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=r.callFunction("\\\\cdleft",[t[0]],[]);var n={type:"atom",text:a,mode:"math",family:"rel"};var s=r.callFunction("\\Big",[n],[]);var o=r.callFunction("\\\\cdright",[t[1]],[]);var l={type:"ordgroup",mode:"math",body:[i,s,o]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Jr(e){var t=[];e.gullet.beginGroup();e.gullet.macros.set("\\cr","\\\\\\relax");e.gullet.beginGroup();while(true){t.push(e.parseExpression(false,"\\\\"));e.gullet.endGroup();e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\"){e.consume()}else if(r==="\\end"){if(t[t.length-1].length===0){t.pop()}break}else{throw new n("Expected \\\\ or \\cr or \\end",e.nextToken)}}var a=[];var i=[a];for(var s=0;s-1);else if("<>AV".indexOf(u)>-1){for(var c=0;c<2;c++){var p=true;for(var d=h+1;dAV=|." after @',o[h])}var f=Kr(u,m,e);var v={type:"styling",body:[f],mode:"math",style:"display"};a.push(v);l=jr()}}if(s%2===0){a.push(l)}else{a.shift()}a=[];i.push(a)}e.gullet.endGroup();e.gullet.endGroup();var g=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:true,rowGaps:[null],cols:g,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}jt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup());var a=Vt.wrapFragment(hr(e.label,r,t),t);a.classes.push("cd-label-"+e.side);a.style.bottom=ve(.8-a.depth);a.height=0;a.depth=0;return a},mathmlBuilder(e,t){var r=new vr.MathNode("mrow",[Sr(e.label,t)]);r=new vr.MathNode("mpadded",[r]);r.setAttribute("width","0");if(e.side==="left"){r.setAttribute("lspace","-1width")}r.setAttribute("voffset","0.7em");r=new vr.MathNode("mstyle",[r]);r.setAttribute("displaystyle","false");r.setAttribute("scriptlevel","1");return r}});jt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Vt.wrapFragment(hr(e.fragment,t),t);r.classes.push("cd-vert-arrow");return r},mathmlBuilder(e,t){return new vr.MathNode("mrow",[Sr(e.fragment,t)])}});jt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:true},handler(e,t){var{parser:r}=e;var a=Er(t[0],"ordgroup");var i=a.body;var s="";for(var o=0;o=1114111){throw new n("\\@char with invalid code point "+s)}else if(h<=65535){u=String.fromCharCode(h)}else{h-=65536;u=String.fromCharCode((h>>10)+55296,(h&1023)+56320)}return{type:"textord",mode:r.mode,text:u}}});var Qr=(e,t)=>{var r=ar(e.body,t.withColor(e.color),false);return Vt.makeFragment(r)};var ea=(e,t)=>{var r=wr(e.body,t.withColor(e.color));var a=new vr.MathNode("mstyle",r);a.setAttribute("mathcolor",e.color);return a};jt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:true,argTypes:["color","original"]},handler(e,t){var{parser:r}=e;var a=Er(t[0],"color-token").color;var i=t[1];return{type:"color",mode:r.mode,color:a,body:Kt(i)}},htmlBuilder:Qr,mathmlBuilder:ea});jt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:true,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:a}=e;var i=Er(t[0],"color-token").color;r.gullet.macros.set("\\current@color",i);var n=r.parseExpression(true,a);return{type:"color",mode:r.mode,color:i,body:n}},htmlBuilder:Qr,mathmlBuilder:ea});jt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:true},handler(e,t,r){var{parser:a}=e;var i=a.gullet.future().text==="["?a.parseSizeGroup(true):null;var n=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline "+"does nothing in display mode");return{type:"cr",mode:a.mode,newLine:n,size:i&&Er(i,"size").value}},htmlBuilder(e,t){var r=Vt.makeSpan(["mspace"],[],t);if(e.newLine){r.classes.push("newline");if(e.size){r.style.marginTop=ve(fe(e.size,t))}}return r},mathmlBuilder(e,t){var r=new vr.MathNode("mspace");if(e.newLine){r.setAttribute("linebreak","newline");if(e.size){r.setAttribute("height",ve(fe(e.size,t)))}}return r}});var ta={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"};var ra=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t)){throw new n("Expected a control sequence",e)}return t};var aa=e=>{var t=e.gullet.popToken();if(t.text==="="){t=e.gullet.popToken();if(t.text===" "){t=e.gullet.popToken()}}return t};var ia=(e,t,r,a)=>{var i=e.gullet.macros.get(r.text);if(i==null){r.noexpand=true;i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}}e.gullet.macros.set(t,i,a)};jt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:true},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var a=t.fetch();if(ta[a.text]){if(r==="\\global"||r==="\\\\globallong"){a.text=ta[a.text]}return Er(t.parseFunction(),"internal")}throw new n("Invalid token after macro prefix",a)}});jt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:true,primitive:true},handler(e){var{parser:t,funcName:r}=e;var a=t.gullet.popToken();var i=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i)){throw new n("Expected a control sequence",a)}var s=0;var o;var l=[[]];while(t.gullet.future().text!=="{"){a=t.gullet.popToken();if(a.text==="#"){if(t.gullet.future().text==="{"){o=t.gullet.future();l[s].push("{");break}a=t.gullet.popToken();if(!/^[1-9]$/.test(a.text)){throw new n('Invalid argument number "'+a.text+'"')}if(parseInt(a.text)!==s+1){throw new n('Argument number "'+a.text+'" out of order')}s++;l.push([])}else if(a.text==="EOF"){throw new n("Expected a macro definition")}else{l[s].push(a.text)}}var{tokens:h}=t.gullet.consumeArg();if(o){h.unshift(o)}if(r==="\\edef"||r==="\\xdef"){h=t.gullet.expandTokens(h);h.reverse()}t.gullet.macros.set(i,{tokens:h,numArgs:s,delimiters:l},r===ta[r]);return{type:"internal",mode:t.mode}}});jt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:true,primitive:true},handler(e){var{parser:t,funcName:r}=e;var a=ra(t.gullet.popToken());t.gullet.consumeSpaces();var i=aa(t);ia(t,a,i,r==="\\\\globallet");return{type:"internal",mode:t.mode}}});jt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:true,primitive:true},handler(e){var{parser:t,funcName:r}=e;var a=ra(t.gullet.popToken());var i=t.gullet.popToken();var n=t.gullet.popToken();ia(t,a,n,r==="\\\\globalfuture");t.gullet.pushToken(n);t.gullet.pushToken(i);return{type:"internal",mode:t.mode}}});var na=function e(t,r,a){var i=He.math[t]&&He.math[t].replace;var n=ne(i||t,r,a);if(!n){throw new Error("Unsupported symbol "+t+" and font size "+r+".")}return n};var sa=function e(t,r,a,i){var n=a.havingBaseStyle(r);var s=Vt.makeSpan(i.concat(n.sizingClasses(a)),[t],a);var o=n.sizeMultiplier/a.sizeMultiplier;s.height*=o;s.depth*=o;s.maxFontSize=n.sizeMultiplier;return s};var oa=function e(t,r,a){var i=r.havingBaseStyle(a);var n=(1-r.sizeMultiplier/i.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter");t.style.top=ve(n);t.height-=n;t.depth+=n};var la=function e(t,r,a,i,n,s){var o=Vt.makeSymbol(t,"Main-Regular",n,i);var l=sa(o,r,i,s);if(a){oa(l,i,r)}return l};var ha=function e(t,r,a,i){return Vt.makeSymbol(t,"Size"+r+"-Regular",a,i)};var ua=function e(t,r,a,i,n,s){var o=ha(t,r,n,i);var l=sa(Vt.makeSpan(["delimsizing","size"+r],[o],i),L.TEXT,i,s);if(a){oa(l,i,L.TEXT)}return l};var ma=function e(t,r,a){var i;if(r==="Size1-Regular"){i="delim-size1"}else{i="delim-size4"}var n=Vt.makeSpan(["delimsizinginner",i],[Vt.makeSpan([],[Vt.makeSymbol(t,r,a)])]);return{type:"elem",elem:n}};var ca=function e(t,r,a){var i=te["Size4-Regular"][t.charCodeAt(0)]?te["Size4-Regular"][t.charCodeAt(0)][4]:te["Size1-Regular"][t.charCodeAt(0)][4];var n=new Be("inner",K(t,Math.round(1e3*r)));var s=new Te([n],{width:ve(i),height:ve(r),style:"width:"+ve(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"});var o=Vt.makeSvgSpan([],[s],a);o.height=r;o.style.height=ve(r);o.style.width=ve(i);return{type:"elem",elem:o}};var pa=.008;var da={type:"kern",size:-1*pa};var fa=["|","\\lvert","\\rvert","\\vert"];var va=["\\|","\\lVert","\\rVert","\\Vert"];var ga=function e(t,r,a,i,n,s){var o;var l;var h;var u;var m="";var c=0;o=h=u=t;l=null;var p="Size1-Regular";if(t==="\\uparrow"){h=u="⏐"}else if(t==="\\Uparrow"){h=u="‖"}else if(t==="\\downarrow"){o=h="⏐"}else if(t==="\\Downarrow"){o=h="‖"}else if(t==="\\updownarrow"){o="\\uparrow";h="⏐";u="\\downarrow"}else if(t==="\\Updownarrow"){o="\\Uparrow";h="‖";u="\\Downarrow"}else if(g.contains(fa,t)){h="∣";m="vert";c=333}else if(g.contains(va,t)){h="∥";m="doublevert";c=556}else if(t==="["||t==="\\lbrack"){o="⎡";h="⎢";u="⎣";p="Size4-Regular";m="lbrack";c=667}else if(t==="]"||t==="\\rbrack"){o="⎤";h="⎥";u="⎦";p="Size4-Regular";m="rbrack";c=667}else if(t==="\\lfloor"||t==="⌊"){h=o="⎢";u="⎣";p="Size4-Regular";m="lfloor";c=667}else if(t==="\\lceil"||t==="⌈"){o="⎡";h=u="⎢";p="Size4-Regular";m="lceil";c=667}else if(t==="\\rfloor"||t==="⌋"){h=o="⎥";u="⎦";p="Size4-Regular";m="rfloor";c=667}else if(t==="\\rceil"||t==="⌉"){o="⎤";h=u="⎥";p="Size4-Regular";m="rceil";c=667}else if(t==="("||t==="\\lparen"){o="⎛";h="⎜";u="⎝";p="Size4-Regular";m="lparen";c=875}else if(t===")"||t==="\\rparen"){o="⎞";h="⎟";u="⎠";p="Size4-Regular";m="rparen";c=875}else if(t==="\\{"||t==="\\lbrace"){o="⎧";l="⎨";u="⎩";h="⎪";p="Size4-Regular"}else if(t==="\\}"||t==="\\rbrace"){o="⎫";l="⎬";u="⎭";h="⎪";p="Size4-Regular"}else if(t==="\\lgroup"||t==="⟮"){o="⎧";u="⎩";h="⎪";p="Size4-Regular"}else if(t==="\\rgroup"||t==="⟯"){o="⎫";u="⎭";h="⎪";p="Size4-Regular"}else if(t==="\\lmoustache"||t==="⎰"){o="⎧";u="⎭";h="⎪";p="Size4-Regular"}else if(t==="\\rmoustache"||t==="⎱"){o="⎫";u="⎩";h="⎪";p="Size4-Regular"}var d=na(o,p,n);var f=d.height+d.depth;var v=na(h,p,n);var b=v.height+v.depth;var y=na(u,p,n);var x=y.height+y.depth;var w=0;var k=1;if(l!==null){var S=na(l,p,n);w=S.height+S.depth;k=2}var M=f+x+w;var z=Math.max(0,Math.ceil((r-M)/(k*b)));var A=M+z*k*b;var T=i.fontMetrics().axisHeight;if(a){T*=i.sizeMultiplier}var B=A/2-T;var C=[];if(m.length>0){var N=A-f-x;var q=Math.round(A*1e3);var I=Q(m,Math.round(N*1e3));var R=new Be(m,I);var H=(c/1e3).toFixed(3)+"em";var O=(q/1e3).toFixed(3)+"em";var E=new Te([R],{width:H,height:O,viewBox:"0 0 "+c+" "+q});var D=Vt.makeSvgSpan([],[E],i);D.height=q/1e3;D.style.width=H;D.style.height=O;C.push({type:"elem",elem:D})}else{C.push(ma(u,p,n));C.push(da);if(l===null){var V=A-f-x+2*pa;C.push(ca(h,V,i))}else{var P=(A-f-x-w)/2+2*pa;C.push(ca(h,P,i));C.push(da);C.push(ma(l,p,n));C.push(da);C.push(ca(h,P,i))}C.push(da);C.push(ma(o,p,n))}var F=i.havingBaseStyle(L.TEXT);var G=Vt.makeVList({positionType:"bottom",positionData:B,children:C},F);return sa(Vt.makeSpan(["delimsizing","mult"],[G],F),L.TEXT,i,s)};var ba=80;var ya=.08;var xa=function e(t,r,a,i,n){var s=Z(t,i,a);var o=new Be(t,s);var l=new Te([o],{width:"400em",height:ve(r),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return Vt.makeSvgSpan(["hide-tail"],[l],n)};var wa=function e(t,r){var a=r.havingBaseSizing();var i=qa("\\surd",t*a.sizeMultiplier,Ca,a);var n=a.sizeMultiplier;var s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness);var o;var l=0;var h=0;var u=0;var m;if(i.type==="small"){u=1e3+1e3*s+ba;if(t<1){n=1}else if(t<1.4){n=.7}l=(1+s+ya)/n;h=(1+s)/n;o=xa("sqrtMain",l,u,s,r);o.style.minWidth="0.853em";m=.833/n}else if(i.type==="large"){u=(1e3+ba)*za[i.size];h=(za[i.size]+s)/n;l=(za[i.size]+s+ya)/n;o=xa("sqrtSize"+i.size,l,u,s,r);o.style.minWidth="1.02em";m=1/n}else{l=t+s+ya;h=t+s;u=Math.floor(1e3*t+s)+ba;o=xa("sqrtTall",l,u,s,r);o.style.minWidth="0.742em";m=1.056}o.height=h;o.style.height=ve(l);return{span:o,advanceWidth:m,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*n}};var ka=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"];var Sa=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"];var Ma=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"];var za=[0,1.2,1.8,2.4,3];var Aa=function e(t,r,a,i,s){if(t==="<"||t==="\\lt"||t==="⟨"){t="\\langle"}else if(t===">"||t==="\\gt"||t==="⟩"){t="\\rangle"}if(g.contains(ka,t)||g.contains(Ma,t)){return ua(t,r,false,a,i,s)}else if(g.contains(Sa,t)){return ga(t,za[r],false,a,i,s)}else{throw new n("Illegal delimiter: '"+t+"'")}};var Ta=[{type:"small",style:L.SCRIPTSCRIPT},{type:"small",style:L.SCRIPT},{type:"small",style:L.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}];var Ba=[{type:"small",style:L.SCRIPTSCRIPT},{type:"small",style:L.SCRIPT},{type:"small",style:L.TEXT},{type:"stack"}];var Ca=[{type:"small",style:L.SCRIPTSCRIPT},{type:"small",style:L.SCRIPT},{type:"small",style:L.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];var Na=function e(t){if(t.type==="small"){return"Main-Regular"}else if(t.type==="large"){return"Size"+t.size+"-Regular"}else if(t.type==="stack"){return"Size4-Regular"}else{throw new Error("Add support for delim type '"+t.type+"' here.")}};var qa=function e(t,r,a,i){var n=Math.min(2,3-i.style.size);for(var s=n;sr){return a[s]}}return a[a.length-1]};var Ia=function e(t,r,a,i,n,s){if(t==="<"||t==="\\lt"||t==="⟨"){t="\\langle"}else if(t===">"||t==="\\gt"||t==="⟩"){t="\\rangle"}var o;if(g.contains(Ma,t)){o=Ta}else if(g.contains(ka,t)){o=Ca}else{o=Ba}var l=qa(t,r,o,i);if(l.type==="small"){return la(t,l.style,a,i,n,s)}else if(l.type==="large"){return ua(t,l.size,a,i,n,s)}else{return ga(t,r,a,i,n,s)}};var Ra=function e(t,r,a,i,n,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier;var l=901;var h=5/i.fontMetrics().ptPerEm;var u=Math.max(r-o,a+o);var m=Math.max(u/500*l,2*u-h);return Ia(t,m,true,i,n,s)};var Ha={sqrtImage:wa,sizedDelim:Aa,sizeToMaxHeight:za,customSizedDelim:Ia,leftRightDelim:Ra};var Oa={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}};var Ea=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function La(e,t){var r=Dr(e);if(r&&g.contains(Ea,r.text)){return r}else if(r){throw new n("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e)}else{throw new n("Invalid delimiter type '"+e.type+"'",e)}}jt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=La(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Oa[e.funcName].size,mclass:Oa[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>{if(e.delim==="."){return Vt.makeSpan([e.mclass])}return Ha.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:e=>{var t=[];if(e.delim!=="."){t.push(gr(e.delim,e.mode))}var r=new vr.MathNode("mo",t);if(e.mclass==="mopen"||e.mclass==="mclose"){r.setAttribute("fence","true")}else{r.setAttribute("fence","false")}r.setAttribute("stretchy","true");var a=ve(Ha.sizeToMaxHeight[e.size]);r.setAttribute("minsize",a);r.setAttribute("maxsize",a);return r}});function Da(e){if(!e.body){throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}}jt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:true},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!=="string"){throw new n("\\current@color set to non-string in \\right")}return{type:"leftright-right",mode:e.parser.mode,delim:La(t[0],e).text,color:r}}});jt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:true},handler:(e,t)=>{var r=La(t[0],e);var a=e.parser;++a.leftrightDepth;var i=a.parseExpression(false);--a.leftrightDepth;a.expect("\\right",false);var n=Er(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:i,left:r.text,right:n.delim,rightColor:n.color}},htmlBuilder:(e,t)=>{Da(e);var r=ar(e.body,t,true,["mopen","mclose"]);var a=0;var i=0;var n=false;for(var s=0;s{Da(e);var r=wr(e.body,t);if(e.left!=="."){var a=new vr.MathNode("mo",[gr(e.left,e.mode)]);a.setAttribute("fence","true");r.unshift(a)}if(e.right!=="."){var i=new vr.MathNode("mo",[gr(e.right,e.mode)]);i.setAttribute("fence","true");if(e.rightColor){i.setAttribute("mathcolor",e.rightColor)}r.push(i)}return br(r)}});jt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:true},handler:(e,t)=>{var r=La(t[0],e);if(!e.parser.leftrightDepth){throw new n("\\middle without preceding \\left",r)}return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim==="."){r=lr(t,[])}else{r=Ha.sizedDelim(e.delim,1,t,e.mode,[]);var a={delim:e.delim,options:t};r.isMiddle=a}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?gr("|","text"):gr(e.delim,e.mode);var a=new vr.MathNode("mo",[r]);a.setAttribute("fence","true");a.setAttribute("lspace","0.05em");a.setAttribute("rspace","0.05em");return a}});var Va=(e,t)=>{var r=Vt.wrapFragment(hr(e.body,t),t);var a=e.label.slice(1);var i=t.sizeMultiplier;var n;var s=0;var o=g.isCharacterBox(e.body);if(a==="sout"){n=Vt.makeSpan(["stretchy","sout"]);n.height=t.fontMetrics().defaultRuleThickness/i;s=-.5*t.fontMetrics().xHeight}else if(a==="phase"){var l=fe({number:.6,unit:"pt"},t);var h=fe({number:.35,unit:"ex"},t);var u=t.havingBaseSizing();i=i/u.sizeMultiplier;var m=r.height+r.depth+l+h;r.style.paddingLeft=ve(m/2+l);var c=Math.floor(1e3*m*i);var p=j(c);var d=new Te([new Be("phase",p)],{width:"400em",height:ve(c/1e3),viewBox:"0 0 400000 "+c,preserveAspectRatio:"xMinYMin slice"});n=Vt.makeSvgSpan(["hide-tail"],[d],t);n.style.height=ve(m);s=r.depth+l+h}else{if(/cancel/.test(a)){if(!o){r.classes.push("cancel-pad")}}else if(a==="angl"){r.classes.push("anglpad")}else{r.classes.push("boxpad")}var f=0;var v=0;var b=0;if(/box/.test(a)){b=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);f=t.fontMetrics().fboxsep+(a==="colorbox"?0:b);v=f}else if(a==="angl"){b=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness);f=4*b;v=Math.max(0,.25-r.depth)}else{f=o?.2:0;v=f}n=Or.encloseSpan(r,a,f,v,t);if(/fbox|boxed|fcolorbox/.test(a)){n.style.borderStyle="solid";n.style.borderWidth=ve(b)}else if(a==="angl"&&b!==.049){n.style.borderTopWidth=ve(b);n.style.borderRightWidth=ve(b)}s=r.depth+v;if(e.backgroundColor){n.style.backgroundColor=e.backgroundColor;if(e.borderColor){n.style.borderColor=e.borderColor}}}var y;if(e.backgroundColor){y=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:s},{type:"elem",elem:r,shift:0}]},t)}else{var x=/cancel|phase/.test(a)?["svg-align"]:[];y=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:n,shift:s,wrapperClasses:x}]},t)}if(/cancel/.test(a)){y.height=r.height;y.depth=r.depth}if(/cancel/.test(a)&&!o){return Vt.makeSpan(["mord","cancel-lap"],[y],t)}else{return Vt.makeSpan(["mord"],[y],t)}};var Pa=(e,t)=>{var r=0;var a=new vr.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Sr(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm;a.setAttribute("width","+"+2*r+"pt");a.setAttribute("height","+"+2*r+"pt");a.setAttribute("lspace",r+"pt");a.setAttribute("voffset",r+"pt");if(e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}if(e.backgroundColor){a.setAttribute("mathbackground",e.backgroundColor)}return a};jt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:true,argTypes:["color","text"]},handler(e,t,r){var{parser:a,funcName:i}=e;var n=Er(t[0],"color-token").color;var s=t[1];return{type:"enclose",mode:a.mode,label:i,backgroundColor:n,body:s}},htmlBuilder:Va,mathmlBuilder:Pa});jt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:true,argTypes:["color","color","text"]},handler(e,t,r){var{parser:a,funcName:i}=e;var n=Er(t[0],"color-token").color;var s=Er(t[1],"color-token").color;var o=t[2];return{type:"enclose",mode:a.mode,label:i,backgroundColor:s,borderColor:n,body:o}},htmlBuilder:Va,mathmlBuilder:Pa});jt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:true},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});jt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;var i=t[0];return{type:"enclose",mode:r.mode,label:a,body:i}},htmlBuilder:Va,mathmlBuilder:Pa});jt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:false},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var Fa={};function Ga(e){var{type:t,names:r,props:a,handler:i,htmlBuilder:n,mathmlBuilder:s}=e;var o={type:t,numArgs:a.numArgs||0,allowedInText:false,numOptionalArgs:0,handler:i};for(var l=0;l{var t=e.parser.settings;if(!t.displayMode){throw new n("{"+e.envName+"} can be used only in"+" display mode.")}};function _a(e){if(e.indexOf("ed")===-1){return e.indexOf("*")===-1}}function ja(e,t,r){var{hskipBeforeAndAfter:a,addJot:s,cols:o,arraystretch:l,colSeparationType:h,autoTag:u,singleRow:m,emptySingleRow:c,maxNumCols:p,leqno:d}=t;e.gullet.beginGroup();if(!m){e.gullet.macros.set("\\cr","\\\\\\relax")}if(!l){var f=e.gullet.expandMacroAsText("\\arraystretch");if(f==null){l=1}else{l=parseFloat(f);if(!l||l<0){throw new n("Invalid \\arraystretch: "+f)}}}e.gullet.beginGroup();var v=[];var g=[v];var b=[];var y=[];var x=u!=null?[]:undefined;function w(){if(u){e.gullet.macros.set("\\@eqnsw","1",true)}}function k(){if(x){if(e.gullet.macros.get("\\df@tag")){x.push(e.subparse([new i("\\df@tag")]));e.gullet.macros.set("\\df@tag",undefined,true)}else{x.push(Boolean(u)&&e.gullet.macros.get("\\@eqnsw")==="1")}}}w();y.push(Xa(e));while(true){var S=e.parseExpression(false,m?"\\end":"\\\\");e.gullet.endGroup();e.gullet.beginGroup();S={type:"ordgroup",mode:e.mode,body:S};if(r){S={type:"styling",mode:e.mode,style:r,body:[S]}}v.push(S);var M=e.fetch().text;if(M==="&"){if(p&&v.length===p){if(m||h){throw new n("Too many tab characters: &",e.nextToken)}else{e.settings.reportNonstrict("textEnv","Too few columns "+"specified in the {array} column argument.")}}e.consume()}else if(M==="\\end"){k();if(v.length===1&&S.type==="styling"&&S.body[0].body.length===0&&(g.length>1||!c)){g.pop()}if(y.length0){w+=.25}u.push({pos:w,isDashed:e[t]})}}k(o[0]);for(a=0;a0){C+=x;if(ze))){for(a=0;a=l){continue}var W=void 0;if(i>0||t.hskipBeforeAndAfter){W=g.deflt(F.pregap,p);if(W!==0){R=Vt.makeSpan(["arraycolsep"],[]);R.style.width=ve(W);I.push(R)}}var _=[];for(a=0;a0){var K=Vt.makeLineSpan("hline",r,m);var J=Vt.makeLineSpan("hdashline",r,m);var Q=[{type:"elem",elem:h,shift:0}];while(u.length>0){var ee=u.pop();var te=ee.pos-N;if(ee.isDashed){Q.push({type:"elem",elem:J,shift:te})}else{Q.push({type:"elem",elem:K,shift:te})}}h=Vt.makeVList({positionType:"individualShift",children:Q},r)}if(O.length===0){return Vt.makeSpan(["mord"],[h],r)}else{var re=Vt.makeVList({positionType:"individualShift",children:O},r);re=Vt.makeSpan(["tag"],[re],r);return Vt.makeFragment([h,re])}};var Ka={c:"center ",l:"left ",r:"right "};var Ja=function e(t,r){var a=[];var i=new vr.MathNode("mtd",[],["mtr-glue"]);var n=new vr.MathNode("mtd",[],["mml-eqn-num"]);for(var s=0;s0){var d=t.cols;var f="";var v=false;var g=0;var b=d.length;if(d[0].type==="separator"){c+="top ";g=1}if(d[d.length-1].type==="separator"){c+="bottom ";b-=1}for(var y=g;y0?"left ":"";c+=M[M.length-1].length>0?"right ":"";for(var z=1;z-1?"alignat":"align";var s=t.envName==="split";var o=ja(t.parser,{cols:a,addJot:true,autoTag:s?undefined:_a(t.envName),emptySingleRow:true,colSeparationType:i,maxNumCols:s?2:undefined,leqno:t.parser.settings.leqno},"display");var l;var h=0;var u={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){var m="";for(var c=0;c0&&d){g=1}a[f]={type:"align",align:v,pregap:g,postgap:0}}o.colSeparationType=d?"align":"alignat";return o};Ga({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Dr(t[0]);var a=r?[t[0]]:Er(t[0],"ordgroup").body;var i=a.map((function(e){var t=Lr(e);var r=t.text;if("lcr".indexOf(r)!==-1){return{type:"align",align:r}}else if(r==="|"){return{type:"separator",separator:"|"}}else if(r===":"){return{type:"separator",separator:":"}}throw new n("Unknown column alignment: "+r,e)}));var s={cols:i,hskipBeforeAndAfter:true,maxNumCols:i.length};return ja(e.parser,s,$a(e.envName))},htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")];var r="c";var a={hskipBeforeAndAfter:false,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;i.consumeSpaces();if(i.fetch().text==="["){i.consume();i.consumeSpaces();r=i.fetch().text;if("lcr".indexOf(r)===-1){throw new n("Expected l or c or r",i.nextToken)}i.consume();i.consumeSpaces();i.expect("]");i.consume();a.cols=[{type:"align",align:r}]}}var s=ja(e.parser,a,$a(e.envName));var o=Math.max(0,...s.body.map((e=>e.length)));s.cols=new Array(o).fill({type:"align",align:r});return t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:undefined}:s},htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5};var r=ja(e.parser,t,"script");r.colSeparationType="small";return r},htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Dr(t[0]);var a=r?[t[0]]:Er(t[0],"ordgroup").body;var i=a.map((function(e){var t=Lr(e);var r=t.text;if("lc".indexOf(r)!==-1){return{type:"align",align:r}}throw new n("Unknown column alignment: "+r,e)}));if(i.length>1){throw new n("{subarray} can contain only one column")}var s={cols:i,hskipBeforeAndAfter:false,arraystretch:.5};s=ja(e.parser,s,"script");if(s.body.length>0&&s.body[0].length>1){throw new n("{subarray} can contain only one column")}return s},htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]};var r=ja(e.parser,t,$a(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:undefined}},htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Qa,htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){if(g.contains(["gather","gather*"],e.envName)){Wa(e)}var t={cols:[{type:"align",align:"c"}],addJot:true,colSeparationType:"gather",autoTag:_a(e.envName),emptySingleRow:true,leqno:e.parser.settings.leqno};return ja(e.parser,t,"display")},htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Qa,htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Wa(e);var t={autoTag:_a(e.envName),emptySingleRow:true,singleRow:true,maxNumCols:1,leqno:e.parser.settings.leqno};return ja(e.parser,t,"display")},htmlBuilder:Za,mathmlBuilder:Ja});Ga({type:"array",names:["CD"],props:{numArgs:0},handler(e){Wa(e);return Jr(e.parser)},htmlBuilder:Za,mathmlBuilder:Ja});Ya("\\nonumber","\\gdef\\@eqnsw{0}");Ya("\\notag","\\nonumber");jt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:true,allowedInMath:true},handler(e,t){throw new n(e.funcName+" valid only within array environment")}});var ei=Fa;jt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:a}=e;var i=t[0];if(i.type!=="ordgroup"){throw new n("Invalid environment name",i)}var s="";for(var o=0;o{var r=e.font;var a=t.withFont(r);return hr(e.body,a)};var ri=(e,t)=>{var r=e.font;var a=t.withFont(r);return Sr(e.body,a)};var ai={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};jt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:true},handler:(e,t)=>{var{parser:r,funcName:a}=e;var i=Zt(t[0]);var n=a;if(n in ai){n=ai[n]}return{type:"font",mode:r.mode,font:n.slice(1),body:i}},htmlBuilder:ti,mathmlBuilder:ri});jt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e;var a=t[0];var i=g.isCharacterBox(a);return{type:"mclass",mode:r.mode,mclass:Wr(a),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:a}],isCharacterBox:i}}});jt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:true},handler:(e,t)=>{var{parser:r,funcName:a,breakOnTokenText:i}=e;var{mode:n}=r;var s=r.parseExpression(true,i);var o="math"+a.slice(1);return{type:"font",mode:n,font:o,body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:ti,mathmlBuilder:ri});var ii=(e,t)=>{var r=t;if(e==="display"){r=r.id>=L.SCRIPT.id?r.text():L.DISPLAY}else if(e==="text"&&r.size===L.DISPLAY.size){r=L.TEXT}else if(e==="script"){r=L.SCRIPT}else if(e==="scriptscript"){r=L.SCRIPTSCRIPT}return r};var ni=(e,t)=>{var r=ii(e.size,t.style);var a=r.fracNum();var i=r.fracDen();var n;n=t.havingStyle(a);var s=hr(e.numer,n,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm;var l=3.5/t.fontMetrics().ptPerEm;s.height=s.height0){d=3*c}else{d=7*c}f=t.fontMetrics().denom1}else{if(m>0){p=t.fontMetrics().num2;d=c}else{p=t.fontMetrics().num3;d=3*c}f=t.fontMetrics().denom2}var v;if(!u){var g=p-s.depth-(h.height-f);if(g{var r=new vr.MathNode("mfrac",[Sr(e.numer,t),Sr(e.denom,t)]);if(!e.hasBarLine){r.setAttribute("linethickness","0px")}else if(e.barSize){var a=fe(e.barSize,t);r.setAttribute("linethickness",ve(a))}var i=ii(e.size,t.style);if(i.size!==t.style.size){r=new vr.MathNode("mstyle",[r]);var n=i.size===L.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",n);r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new vr.MathNode("mo",[new vr.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true");s.push(o)}s.push(r);if(e.rightDelim!=null){var l=new vr.MathNode("mo",[new vr.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true");s.push(l)}return br(s)}return r};jt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:true},handler:(e,t)=>{var{parser:r,funcName:a}=e;var i=t[0];var n=t[1];var s;var o=null;var l=null;var h="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":s=true;break;case"\\\\atopfrac":s=false;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=false;o="(";l=")";break;case"\\\\bracefrac":s=false;o="\\{";l="\\}";break;case"\\\\brackfrac":s=false;o="[";l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text";break}return{type:"genfrac",mode:r.mode,continued:false,numer:i,denom:n,hasBarLine:s,leftDelim:o,rightDelim:l,size:h,barSize:null}},htmlBuilder:ni,mathmlBuilder:si});jt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:a}=e;var i=t[0];var n=t[1];return{type:"genfrac",mode:r.mode,continued:true,numer:i,denom:n,hasBarLine:true,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});jt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:true},handler(e){var{parser:t,funcName:r,token:a}=e;var i;switch(r){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:a}}});var oi=["display","text","script","scriptscript"];var li=function e(t){var r=null;if(t.length>0){r=t;r=r==="."?null:r}return r};jt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:true,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e;var a=t[4];var i=t[5];var n=Zt(t[0]);var s=n.type==="atom"&&n.family==="open"?li(n.text):null;var o=Zt(t[1]);var l=o.type==="atom"&&o.family==="close"?li(o.text):null;var h=Er(t[2],"size");var u;var m=null;if(h.isBlank){u=true}else{m=h.value;u=m.number>0}var c="auto";var p=t[3];if(p.type==="ordgroup"){if(p.body.length>0){var d=Er(p.body[0],"textord");c=oi[Number(d.text)]}}else{p=Er(p,"textord");c=oi[Number(p.text)]}return{type:"genfrac",mode:r.mode,numer:a,denom:i,continued:false,hasBarLine:u,barSize:m,leftDelim:s,rightDelim:l,size:c}},htmlBuilder:ni,mathmlBuilder:si});jt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:true},handler(e,t){var{parser:r,funcName:a,token:i}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Er(t[0],"size").value,token:i}}});jt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:a}=e;var i=t[0];var n=f(Er(t[1],"infix").size);var s=t[2];var o=n.number>0;return{type:"genfrac",mode:r.mode,numer:i,denom:s,continued:false,hasBarLine:o,barSize:n,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:ni,mathmlBuilder:si});var hi=(e,t)=>{var r=t.style;var a;var i;if(e.type==="supsub"){a=e.sup?hr(e.sup,t.havingStyle(r.sup()),t):hr(e.sub,t.havingStyle(r.sub()),t);i=Er(e.base,"horizBrace")}else{i=Er(e,"horizBrace")}var n=hr(i.base,t.havingBaseStyle(L.DISPLAY));var s=Or.svgSpan(i,t);var o;if(i.isOver){o=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:.1},{type:"elem",elem:s}]},t);o.children[0].children[0].children[1].classes.push("svg-align")}else{o=Vt.makeVList({positionType:"bottom",positionData:n.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:n}]},t);o.children[0].children[0].children[0].classes.push("svg-align")}if(a){var l=Vt.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);if(i.isOver){o=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:a}]},t)}else{o=Vt.makeVList({positionType:"bottom",positionData:l.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}}return Vt.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)};var ui=(e,t)=>{var r=Or.mathMLnode(e.label);return new vr.MathNode(e.isOver?"mover":"munder",[Sr(e.base,t),r])};jt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"horizBrace",mode:r.mode,label:a,isOver:/^\\over/.test(a),base:t[0]}},htmlBuilder:hi,mathmlBuilder:ui});jt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:true},handler:(e,t)=>{var{parser:r}=e;var a=t[1];var i=Er(t[0],"url").url;if(!r.settings.isTrusted({command:"\\href",url:i})){return r.formatUnsupportedCmd("\\href")}return{type:"href",mode:r.mode,href:i,body:Kt(a)}},htmlBuilder:(e,t)=>{var r=ar(e.body,t,false);return Vt.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=kr(e.body,t);if(!(r instanceof pr)){r=new pr("mrow",[r])}r.setAttribute("href",e.href);return r}});jt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:true},handler:(e,t)=>{var{parser:r}=e;var a=Er(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a})){return r.formatUnsupportedCmd("\\url")}var i=[];for(var n=0;n{var{parser:r,funcName:a,token:i}=e;var s=Er(t[0],"raw").string;var o=t[1];if(r.settings.strict){r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode")}var l;var h={};switch(a){case"\\htmlClass":h.class=s;l={command:"\\htmlClass",class:s};break;case"\\htmlId":h.id=s;l={command:"\\htmlId",id:s};break;case"\\htmlStyle":h.style=s;l={command:"\\htmlStyle",style:s};break;case"\\htmlData":{var u=s.split(",");for(var m=0;m{var r=ar(e.body,t,false);var a=["enclosing"];if(e.attributes.class){a.push(...e.attributes.class.trim().split(/\s+/))}var i=Vt.makeSpan(a,r,t);for(var n in e.attributes){if(n!=="class"&&e.attributes.hasOwnProperty(n)){i.setAttribute(n,e.attributes[n])}}return i},mathmlBuilder:(e,t)=>kr(e.body,t)});jt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:true},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Kt(t[0]),mathml:Kt(t[1])}},htmlBuilder:(e,t)=>{var r=ar(e.html,t,false);return Vt.makeFragment(r)},mathmlBuilder:(e,t)=>kr(e.mathml,t)});var mi=function e(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t)){return{number:+t,unit:"bp"}}else{var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r){throw new n("Invalid size: '"+t+"' in \\includegraphics")}var a={number:+(r[1]+r[2]),unit:r[3]};if(!de(a)){throw new n("Invalid unit: '"+a.unit+"' in \\includegraphics.")}return a}};jt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:false},handler:(e,t,r)=>{var{parser:a}=e;var i={number:0,unit:"em"};var s={number:.9,unit:"em"};var o={number:0,unit:"em"};var l="";if(r[0]){var h=Er(r[0],"raw").string;var u=h.split(",");for(var m=0;m{var r=fe(e.height,t);var a=0;if(e.totalheight.number>0){a=fe(e.totalheight,t)-r}var i=0;if(e.width.number>0){i=fe(e.width,t)}var n={height:ve(r+a)};if(i>0){n.width=ve(i)}if(a>0){n.verticalAlign=ve(-a)}var s=new Me(e.src,e.alt,n);s.height=r;s.depth=a;return s},mathmlBuilder:(e,t)=>{var r=new vr.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var a=fe(e.height,t);var i=0;if(e.totalheight.number>0){i=fe(e.totalheight,t)-a;r.setAttribute("valign",ve(-i))}r.setAttribute("height",ve(a+i));if(e.width.number>0){var n=fe(e.width,t);r.setAttribute("width",ve(n))}r.setAttribute("src",e.src);return r}});jt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:true,allowedInText:true},handler(e,t){var{parser:r,funcName:a}=e;var i=Er(t[0],"size");if(r.settings.strict){var n=a[1]==="m";var s=i.value.unit==="mu";if(n){if(!s){r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+i.value.unit+" units"))}if(r.mode!=="math"){r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")}}else{if(s){r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}}}return{type:"kern",mode:r.mode,dimension:i.value}},htmlBuilder(e,t){return Vt.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=fe(e.dimension,t);return new vr.SpaceNode(r)}});jt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:true},handler:(e,t)=>{var{parser:r,funcName:a}=e;var i=t[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:i}},htmlBuilder:(e,t)=>{var r;if(e.alignment==="clap"){r=Vt.makeSpan([],[hr(e.body,t)]);r=Vt.makeSpan(["inner"],[r],t)}else{r=Vt.makeSpan(["inner"],[hr(e.body,t)])}var a=Vt.makeSpan(["fix"],[]);var i=Vt.makeSpan([e.alignment],[r,a],t);var n=Vt.makeSpan(["strut"]);n.style.height=ve(i.height+i.depth);if(i.depth){n.style.verticalAlign=ve(-i.depth)}i.children.unshift(n);i=Vt.makeSpan(["thinbox"],[i],t);return Vt.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new vr.MathNode("mpadded",[Sr(e.body,t)]);if(e.alignment!=="rlap"){var a=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",a+"width")}r.setAttribute("width","0px");return r}});jt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:true,allowedInMath:false},handler(e,t){var{funcName:r,parser:a}=e;var i=a.mode;a.switchMode("math");var n=r==="\\("?"\\)":"$";var s=a.parseExpression(false,n);a.expect(n);a.switchMode(i);return{type:"styling",mode:a.mode,style:"text",body:s}}});jt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:true,allowedInMath:false},handler(e,t){throw new n("Mismatched "+e.funcName)}});var ci=(e,t)=>{switch(t.style.size){case L.DISPLAY.size:return e.display;case L.TEXT.size:return e.text;case L.SCRIPT.size:return e.script;case L.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};jt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:true},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Kt(t[0]),text:Kt(t[1]),script:Kt(t[2]),scriptscript:Kt(t[3])}},htmlBuilder:(e,t)=>{var r=ci(e,t);var a=ar(r,t,false);return Vt.makeFragment(a)},mathmlBuilder:(e,t)=>{var r=ci(e,t);return kr(r,t)}});var pi=(e,t,r,a,i,n,s)=>{e=Vt.makeSpan([],[e]);var o=r&&g.isCharacterBox(r);var l;var h;if(t){var u=hr(t,a.havingStyle(i.sup()),a);h={elem:u,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-u.depth)}}if(r){var m=hr(r,a.havingStyle(i.sub()),a);l={elem:m,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-m.height)}}var c;if(h&&l){var p=a.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;c=Vt.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:ve(-n)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:ve(n)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else if(l){var d=e.height-s;c=Vt.makeVList({positionType:"top",positionData:d,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:ve(-n)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},a)}else if(h){var f=e.depth+s;c=Vt.makeVList({positionType:"bottom",positionData:f,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:ve(n)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]},a)}else{return e}var v=[c];if(l&&n!==0&&!o){var b=Vt.makeSpan(["mspace"],[],a);b.style.marginRight=ve(n);v.unshift(b)}return Vt.makeSpan(["mop","op-limits"],v,a)};var di=["\\smallint"];var fi=(e,t)=>{var r;var a;var i=false;var n;if(e.type==="supsub"){r=e.sup;a=e.sub;n=Er(e.base,"op");i=true}else{n=Er(e,"op")}var s=t.style;var o=false;if(s.size===L.DISPLAY.size&&n.symbol&&!g.contains(di,n.name)){o=true}var l;if(n.symbol){var h=o?"Size2-Regular":"Size1-Regular";var u="";if(n.name==="\\oiint"||n.name==="\\oiiint"){u=n.name.slice(1);n.name=u==="oiint"?"\\iint":"\\iiint"}l=Vt.makeSymbol(n.name,h,"math",t,["mop","op-symbol",o?"large-op":"small-op"]);if(u.length>0){var m=l.italic;var c=Vt.staticSvg(u+"Size"+(o?"2":"1"),t);l=Vt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:c,shift:o?.08:0}]},t);n.name="\\"+u;l.classes.unshift("mop");l.italic=m}}else if(n.body){var p=ar(n.body,t,true);if(p.length===1&&p[0]instanceof Ae){l=p[0];l.classes[0]="mop"}else{l=Vt.makeSpan(["mop"],p,t)}}else{var d=[];for(var f=1;f{var r;if(e.symbol){r=new pr("mo",[gr(e.name,e.mode)]);if(g.contains(di,e.name)){r.setAttribute("largeop","false")}}else if(e.body){r=new pr("mo",wr(e.body,t))}else{r=new pr("mi",[new dr(e.name.slice(1))]);var a=new pr("mo",[gr("⁡","text")]);if(e.parentIsSupSub){r=new pr("mrow",[r,a])}else{r=cr([r,a])}}return r};var gi={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};jt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:a}=e;var i=a;if(i.length===1){i=gi[i]}return{type:"op",mode:r.mode,limits:true,parentIsSupSub:false,symbol:true,name:i}},htmlBuilder:fi,mathmlBuilder:vi});jt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:true},handler:(e,t)=>{var{parser:r}=e;var a=t[0];return{type:"op",mode:r.mode,limits:false,parentIsSupSub:false,symbol:false,body:Kt(a)}},htmlBuilder:fi,mathmlBuilder:vi});var bi={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};jt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:false,parentIsSupSub:false,symbol:false,name:r}},htmlBuilder:fi,mathmlBuilder:vi});jt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:true,parentIsSupSub:false,symbol:false,name:r}},htmlBuilder:fi,mathmlBuilder:vi});jt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;var a=r;if(a.length===1){a=bi[a]}return{type:"op",mode:t.mode,limits:false,parentIsSupSub:false,symbol:true,name:a}},htmlBuilder:fi,mathmlBuilder:vi});var yi=(e,t)=>{var r;var a;var i=false;var n;if(e.type==="supsub"){r=e.sup;a=e.sub;n=Er(e.base,"operatorname");i=true}else{n=Er(e,"operatorname")}var s;if(n.body.length>0){var o=n.body.map((e=>{var t=e.text;if(typeof t==="string"){return{type:"textord",mode:e.mode,text:t}}else{return e}}));var l=ar(o,t.withFont("mathrm"),true);for(var h=0;h{var r=wr(e.body,t.withFont("mathrm"));var a=true;for(var i=0;ie.toText())).join("");r=[new vr.TextNode(o)]}var l=new vr.MathNode("mi",r);l.setAttribute("mathvariant","normal");var h=new vr.MathNode("mo",[gr("⁡","text")]);if(e.parentIsSupSub){return new vr.MathNode("mrow",[l,h])}else{return vr.newDocumentFragment([l,h])}};jt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e;var i=t[0];return{type:"operatorname",mode:r.mode,body:Kt(i),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:false,parentIsSupSub:false}},htmlBuilder:yi,mathmlBuilder:xi});Ya("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");$t({type:"ordgroup",htmlBuilder(e,t){if(e.semisimple){return Vt.makeFragment(ar(e.body,t,false))}return Vt.makeSpan(["mord"],ar(e.body,t,true),t)},mathmlBuilder(e,t){return kr(e.body,t,true)}});jt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e;var a=t[0];return{type:"overline",mode:r.mode,body:a}},htmlBuilder(e,t){var r=hr(e.body,t.havingCrampedStyle());var a=Vt.makeLineSpan("overline-line",t);var i=t.fontMetrics().defaultRuleThickness;var n=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:a},{type:"kern",size:i}]},t);return Vt.makeSpan(["mord","overline"],[n],t)},mathmlBuilder(e,t){var r=new vr.MathNode("mo",[new vr.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new vr.MathNode("mover",[Sr(e.body,t),r]);a.setAttribute("accent","true");return a}});jt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:true},handler:(e,t)=>{var{parser:r}=e;var a=t[0];return{type:"phantom",mode:r.mode,body:Kt(a)}},htmlBuilder:(e,t)=>{var r=ar(e.body,t.withPhantom(),false);return Vt.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=wr(e.body,t);return new vr.MathNode("mphantom",r)}});jt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:true},handler:(e,t)=>{var{parser:r}=e;var a=t[0];return{type:"hphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=Vt.makeSpan([],[hr(e.body,t.withPhantom())]);r.height=0;r.depth=0;if(r.children){for(var a=0;a{var r=wr(Kt(e.body),t);var a=new vr.MathNode("mphantom",r);var i=new vr.MathNode("mpadded",[a]);i.setAttribute("height","0px");i.setAttribute("depth","0px");return i}});jt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:true},handler:(e,t)=>{var{parser:r}=e;var a=t[0];return{type:"vphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=Vt.makeSpan(["inner"],[hr(e.body,t.withPhantom())]);var a=Vt.makeSpan(["fix"],[]);return Vt.makeSpan(["mord","rlap"],[r,a],t)},mathmlBuilder:(e,t)=>{var r=wr(Kt(e.body),t);var a=new vr.MathNode("mphantom",r);var i=new vr.MathNode("mpadded",[a]);i.setAttribute("width","0px");return i}});jt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:true},handler(e,t){var{parser:r}=e;var a=Er(t[0],"size").value;var i=t[1];return{type:"raisebox",mode:r.mode,dy:a,body:i}},htmlBuilder(e,t){var r=hr(e.body,t);var a=fe(e.dy,t);return Vt.makeVList({positionType:"shift",positionData:-a,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new vr.MathNode("mpadded",[Sr(e.body,t)]);var a=e.dy.number+e.dy.unit;r.setAttribute("voffset",a);return r}});jt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:true},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});jt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:true,allowedInMath:true,argTypes:["size","size","size"]},handler(e,t,r){var{parser:a}=e;var i=r[0];var n=Er(t[0],"size");var s=Er(t[1],"size");return{type:"rule",mode:a.mode,shift:i&&Er(i,"size").value,width:n.value,height:s.value}},htmlBuilder(e,t){var r=Vt.makeSpan(["mord","rule"],[],t);var a=fe(e.width,t);var i=fe(e.height,t);var n=e.shift?fe(e.shift,t):0;r.style.borderRightWidth=ve(a);r.style.borderTopWidth=ve(i);r.style.bottom=ve(n);r.width=a;r.height=i+n;r.depth=-n;r.maxFontSize=i*1.125*t.sizeMultiplier;return r},mathmlBuilder(e,t){var r=fe(e.width,t);var a=fe(e.height,t);var i=e.shift?fe(e.shift,t):0;var n=t.color&&t.getColor()||"black";var s=new vr.MathNode("mspace");s.setAttribute("mathbackground",n);s.setAttribute("width",ve(r));s.setAttribute("height",ve(a));var o=new vr.MathNode("mpadded",[s]);if(i>=0){o.setAttribute("height",ve(i))}else{o.setAttribute("height",ve(i));o.setAttribute("depth",ve(-i))}o.setAttribute("voffset",ve(i));return o}});function wi(e,t,r){var a=ar(e,t,false);var i=t.sizeMultiplier/r.sizeMultiplier;for(var n=0;n{var r=t.havingSize(e.size);return wi(e.body,r,t)};jt({type:"sizing",names:ki,props:{numArgs:0,allowedInText:true},handler:(e,t)=>{var{breakOnTokenText:r,funcName:a,parser:i}=e;var n=i.parseExpression(false,r);return{type:"sizing",mode:i.mode,size:ki.indexOf(a)+1,body:n}},htmlBuilder:Si,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size);var a=wr(e.body,r);var i=new vr.MathNode("mstyle",a);i.setAttribute("mathsize",ve(r.sizeMultiplier));return i}});jt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:true},handler:(e,t,r)=>{var{parser:a}=e;var i=false;var n=false;var s=r[0]&&Er(r[0],"ordgroup");if(s){var o="";for(var l=0;l{var r=Vt.makeSpan([],[hr(e.body,t)]);if(!e.smashHeight&&!e.smashDepth){return r}if(e.smashHeight){r.height=0;if(r.children){for(var a=0;a{var r=new vr.MathNode("mpadded",[Sr(e.body,t)]);if(e.smashHeight){r.setAttribute("height","0px")}if(e.smashDepth){r.setAttribute("depth","0px")}return r}});jt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a}=e;var i=r[0];var n=t[0];return{type:"sqrt",mode:a.mode,body:n,index:i}},htmlBuilder(e,t){var r=hr(e.body,t.havingCrampedStyle());if(r.height===0){r.height=t.fontMetrics().xHeight}r=Vt.wrapFragment(r,t);var a=t.fontMetrics();var i=a.defaultRuleThickness;var n=i;if(t.style.idr.height+r.depth+s){s=(s+m-r.height-r.depth)/2}var c=l.height-r.height-s-h;r.style.paddingLeft=ve(u);var p=Vt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+c)},{type:"elem",elem:l},{type:"kern",size:h}]},t);if(!e.index){return Vt.makeSpan(["mord","sqrt"],[p],t)}else{var d=t.havingStyle(L.SCRIPTSCRIPT);var f=hr(e.index,d,t);var v=.6*(p.height-p.depth);var g=Vt.makeVList({positionType:"shift",positionData:-v,children:[{type:"elem",elem:f}]},t);var b=Vt.makeSpan(["root"],[g]);return Vt.makeSpan(["mord","sqrt"],[b,p],t)}},mathmlBuilder(e,t){var{body:r,index:a}=e;return a?new vr.MathNode("mroot",[Sr(r,t),Sr(a,t)]):new vr.MathNode("msqrt",[Sr(r,t)])}});var Mi={display:L.DISPLAY,text:L.TEXT,script:L.SCRIPT,scriptscript:L.SCRIPTSCRIPT};jt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:true,primitive:true},handler(e,t){var{breakOnTokenText:r,funcName:a,parser:i}=e;var n=i.parseExpression(true,r);var s=a.slice(1,a.length-5);return{type:"styling",mode:i.mode,style:s,body:n}},htmlBuilder(e,t){var r=Mi[e.style];var a=t.havingStyle(r).withFont("");return wi(e.body,a,t)},mathmlBuilder(e,t){var r=Mi[e.style];var a=t.havingStyle(r);var i=wr(e.body,a);var n=new vr.MathNode("mstyle",i);var s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]};var o=s[e.style];n.setAttribute("scriptlevel",o[0]);n.setAttribute("displaystyle",o[1]);return n}});var zi=function e(t,r){var a=t.base;if(!a){return null}else if(a.type==="op"){var i=a.limits&&(r.style.size===L.DISPLAY.size||a.alwaysHandleSupSub);return i?fi:null}else if(a.type==="operatorname"){var n=a.alwaysHandleSupSub&&(r.style.size===L.DISPLAY.size||a.limits);return n?yi:null}else if(a.type==="accent"){return g.isCharacterBox(a.base)?Vr:null}else if(a.type==="horizBrace"){var s=!t.sub;return s===a.isOver?hi:null}else{return null}};$t({type:"supsub",htmlBuilder(e,t){var r=zi(e,t);if(r){return r(e,t)}var{base:a,sup:i,sub:n}=e;var s=hr(a,t);var o;var l;var h=t.fontMetrics();var u=0;var m=0;var c=a&&g.isCharacterBox(a);if(i){var p=t.havingStyle(t.style.sup());o=hr(i,p,t);if(!c){u=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/t.sizeMultiplier}}if(n){var d=t.havingStyle(t.style.sub());l=hr(n,d,t);if(!c){m=s.depth+d.fontMetrics().subDrop*d.sizeMultiplier/t.sizeMultiplier}}var f;if(t.style===L.DISPLAY){f=h.sup1}else if(t.style.cramped){f=h.sup3}else{f=h.sup2}var v=t.sizeMultiplier;var b=ve(.5/h.ptPerEm/v);var y=null;if(l){var x=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(s instanceof Ae||x){y=ve(-s.italic)}}var w;if(o&&l){u=Math.max(u,f,o.depth+.25*h.xHeight);m=Math.max(m,h.sub2);var k=h.defaultRuleThickness;var S=4*k;if(u-o.depth-(l.height-m)0){u+=M;m-=M}}var z=[{type:"elem",elem:l,shift:m,marginRight:b,marginLeft:y},{type:"elem",elem:o,shift:-u,marginRight:b}];w=Vt.makeVList({positionType:"individualShift",children:z},t)}else if(l){m=Math.max(m,h.sub1,l.height-.8*h.xHeight);var A=[{type:"elem",elem:l,marginLeft:y,marginRight:b}];w=Vt.makeVList({positionType:"shift",positionData:m,children:A},t)}else if(o){u=Math.max(u,f,o.depth+.25*h.xHeight);w=Vt.makeVList({positionType:"shift",positionData:-u,children:[{type:"elem",elem:o,marginRight:b}]},t)}else{throw new Error("supsub must have either sup or sub.")}var T=or(s,"right")||"mord";return Vt.makeSpan([T],[s,Vt.makeSpan(["msupsub"],[w])],t)},mathmlBuilder(e,t){var r=false;var a;var i;if(e.base&&e.base.type==="horizBrace"){i=!!e.sup;if(i===e.base.isOver){r=true;a=e.base.isOver}}if(e.base&&(e.base.type==="op"||e.base.type==="operatorname")){e.base.parentIsSupSub=true}var n=[Sr(e.base,t)];if(e.sub){n.push(Sr(e.sub,t))}if(e.sup){n.push(Sr(e.sup,t))}var s;if(r){s=a?"mover":"munder"}else if(!e.sub){var o=e.base;if(o&&o.type==="op"&&o.limits&&(t.style===L.DISPLAY||o.alwaysHandleSupSub)){s="mover"}else if(o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===L.DISPLAY)){s="mover"}else{s="msup"}}else if(!e.sup){var l=e.base;if(l&&l.type==="op"&&l.limits&&(t.style===L.DISPLAY||l.alwaysHandleSupSub)){s="munder"}else if(l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===L.DISPLAY)){s="munder"}else{s="msub"}}else{var h=e.base;if(h&&h.type==="op"&&h.limits&&t.style===L.DISPLAY){s="munderover"}else if(h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(t.style===L.DISPLAY||h.limits)){s="munderover"}else{s="msubsup"}}return new vr.MathNode(s,n)}});$t({type:"atom",htmlBuilder(e,t){return Vt.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new vr.MathNode("mo",[gr(e.text,e.mode)]);if(e.family==="bin"){var a=yr(e,t);if(a==="bold-italic"){r.setAttribute("mathvariant",a)}}else if(e.family==="punct"){r.setAttribute("separator","true")}else if(e.family==="open"||e.family==="close"){r.setAttribute("stretchy","false")}return r}});var Ai={mi:"italic",mn:"normal",mtext:"normal"};$t({type:"mathord",htmlBuilder(e,t){return Vt.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new vr.MathNode("mi",[gr(e.text,e.mode,t)]);var a=yr(e,t)||"italic";if(a!==Ai[r.type]){r.setAttribute("mathvariant",a)}return r}});$t({type:"textord",htmlBuilder(e,t){return Vt.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=gr(e.text,e.mode,t);var a=yr(e,t)||"normal";var i;if(e.mode==="text"){i=new vr.MathNode("mtext",[r])}else if(/[0-9]/.test(e.text)){i=new vr.MathNode("mn",[r])}else if(e.text==="\\prime"){i=new vr.MathNode("mo",[r])}else{i=new vr.MathNode("mi",[r])}if(a!==Ai[i.type]){i.setAttribute("mathvariant",a)}return i}});var Ti={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"};var Bi={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};$t({type:"spacing",htmlBuilder(e,t){if(Bi.hasOwnProperty(e.text)){var r=Bi[e.text].className||"";if(e.mode==="text"){var a=Vt.makeOrd(e,t,"textord");a.classes.push(r);return a}else{return Vt.makeSpan(["mspace",r],[Vt.mathsym(e.text,e.mode,t)],t)}}else if(Ti.hasOwnProperty(e.text)){return Vt.makeSpan(["mspace",Ti[e.text]],[],t)}else{throw new n('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(Bi.hasOwnProperty(e.text)){r=new vr.MathNode("mtext",[new vr.TextNode(" ")])}else if(Ti.hasOwnProperty(e.text)){return new vr.MathNode("mspace")}else{throw new n('Unknown type of space "'+e.text+'"')}return r}});var Ci=()=>{var e=new vr.MathNode("mtd",[]);e.setAttribute("width","50%");return e};$t({type:"tag",mathmlBuilder(e,t){var r=new vr.MathNode("mtable",[new vr.MathNode("mtr",[Ci(),new vr.MathNode("mtd",[kr(e.body,t)]),Ci(),new vr.MathNode("mtd",[kr(e.tag,t)])])]);r.setAttribute("width","100%");return r}});var Ni={"\\text":undefined,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"};var qi={"\\textbf":"textbf","\\textmd":"textmd"};var Ii={"\\textit":"textit","\\textup":"textup"};var Ri=(e,t)=>{var r=e.font;if(!r){return t}else if(Ni[r]){return t.withTextFontFamily(Ni[r])}else if(qi[r]){return t.withTextFontWeight(qi[r])}else if(r==="\\emph"){return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}return t.withTextFontShape(Ii[r])};jt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:true,allowedInText:true},handler(e,t){var{parser:r,funcName:a}=e;var i=t[0];return{type:"text",mode:r.mode,body:Kt(i),font:a}},htmlBuilder(e,t){var r=Ri(e,t);var a=ar(e.body,r,true);return Vt.makeSpan(["mord","text"],a,r)},mathmlBuilder(e,t){var r=Ri(e,t);return kr(e.body,r)}});jt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:true},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=hr(e.body,t);var a=Vt.makeLineSpan("underline-line",t);var i=t.fontMetrics().defaultRuleThickness;var n=Vt.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:i},{type:"elem",elem:a},{type:"kern",size:3*i},{type:"elem",elem:r}]},t);return Vt.makeSpan(["mord","underline"],[n],t)},mathmlBuilder(e,t){var r=new vr.MathNode("mo",[new vr.TextNode("‾")]);r.setAttribute("stretchy","true");var a=new vr.MathNode("munder",[Sr(e.body,t),r]);a.setAttribute("accentunder","true");return a}});jt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:false},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=hr(e.body,t);var a=t.fontMetrics().axisHeight;var i=.5*(r.height-a-(r.depth+a));return Vt.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new vr.MathNode("mpadded",[Sr(e.body,t)],["vcenter"])}});jt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:true},handler(e,t,r){throw new n("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){var r=Hi(e);var a=[];var i=t.havingStyle(t.style.text());for(var n=0;ne.body.replace(/ /g,e.star?"␣":" ");var Oi=Xt;var Ei="[ \r\n\t]";var Li="\\\\[a-zA-Z@]+";var Di="\\\\[^\ud800-\udfff]";var Vi="("+Li+")"+Ei+"*";var Pi="\\\\(\n|[ \r\t]+\n?)[ \r\t]*";var Fi="[̀-ͯ]";var Gi=new RegExp(Fi+"+$");var Ui="("+Ei+"+)|"+(Pi+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Fi+"*")+"|[\ud800-\udbff][\udc00-\udfff]"+(Fi+"*")+"|\\\\verb\\*([^]).*?\\4"+"|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Vi)+("|"+Di+")");class Yi{constructor(e,t){this.input=void 0;this.settings=void 0;this.tokenRegex=void 0;this.catcodes=void 0;this.input=e;this.settings=t;this.tokenRegex=new RegExp(Ui,"g");this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input;var t=this.tokenRegex.lastIndex;if(t===e.length){return new i("EOF",new a(this,t,t))}var r=this.tokenRegex.exec(e);if(r===null||r.index!==t){throw new n("Unexpected character: '"+e[t]+"'",new i(e[t],new a(this,t,t+1)))}var s=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[s]===14){var o=e.indexOf("\n",this.tokenRegex.lastIndex);if(o===-1){this.tokenRegex.lastIndex=e.length;this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would "+"fail because of commenting the end of math mode (e.g. $)")}else{this.tokenRegex.lastIndex=o+1}return this.lex()}return new i(s,new a(this,t,this.tokenRegex.lastIndex))}}class Xi{constructor(e,t){if(e===void 0){e={}}if(t===void 0){t={}}this.current=void 0;this.builtins=void 0;this.undefStack=void 0;this.current=t;this.builtins=e;this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0){throw new n("Unbalanced namespace destruction: attempt "+"to pop global namespace; please report this as a bug")}var e=this.undefStack.pop();for(var t in e){if(e.hasOwnProperty(t)){if(e[t]==null){delete this.current[t]}else{this.current[t]=e[t]}}}}endGroups(){while(this.undefStack.length>0){this.endGroup()}}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){if(this.current.hasOwnProperty(e)){return this.current[e]}else{return this.builtins[e]}}set(e,t,r){if(r===void 0){r=false}if(r){for(var a=0;a0){this.undefStack[this.undefStack.length-1][e]=t}}else{var i=this.undefStack[this.undefStack.length-1];if(i&&!i.hasOwnProperty(e)){i[e]=this.current[e]}}if(t==null){delete this.current[e]}else{this.current[e]=t}}}var Wi=Ua;Ya("\\noexpand",(function(e){var t=e.popToken();if(e.isExpandable(t.text)){t.noexpand=true;t.treatAsRelax=true}return{tokens:[t],numArgs:0}}));Ya("\\expandafter",(function(e){var t=e.popToken();e.expandOnce(true);return{tokens:[t],numArgs:0}}));Ya("\\@firstoftwo",(function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}}));Ya("\\@secondoftwo",(function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}}));Ya("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();if(t[0].length===1&&t[0][0].text===r.text){return{tokens:t[1],numArgs:0}}else{return{tokens:t[2],numArgs:0}}}));Ya("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");Ya("\\TextOrMath",(function(e){var t=e.consumeArgs(2);if(e.mode==="text"){return{tokens:t[0],numArgs:0}}else{return{tokens:t[1],numArgs:0}}}));var _i={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Ya("\\char",(function(e){var t=e.popToken();var r;var a="";if(t.text==="'"){r=8;t=e.popToken()}else if(t.text==='"'){r=16;t=e.popToken()}else if(t.text==="`"){t=e.popToken();if(t.text[0]==="\\"){a=t.text.charCodeAt(1)}else if(t.text==="EOF"){throw new n("\\char` missing argument")}else{a=t.text.charCodeAt(0)}}else{r=10}if(r){a=_i[t.text];if(a==null||a>=r){throw new n("Invalid base-"+r+" digit "+t.text)}var i;while((i=_i[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1){throw new n("\\newcommand's first argument must be a macro name")}var s=i[0].text;var o=e.isDefined(s);if(o&&!t){throw new n("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"))}if(!o&&!r){throw new n("\\renewcommand{"+s+"} when command "+s+" "+"does not yet exist; use \\newcommand")}var l=0;i=e.consumeArg().tokens;if(i.length===1&&i[0].text==="["){var h="";var u=e.expandNextToken();while(u.text!=="]"&&u.text!=="EOF"){h+=u.text;u=e.expandNextToken()}if(!h.match(/^\s*[0-9]+\s*$/)){throw new n("Invalid number of arguments: "+h)}l=parseInt(h);i=e.consumeArg().tokens}if(!(o&&a)){e.macros.set(s,{tokens:i,numArgs:l})}return""};Ya("\\newcommand",(e=>ji(e,false,true,false)));Ya("\\renewcommand",(e=>ji(e,true,false,false)));Ya("\\providecommand",(e=>ji(e,true,true,true)));Ya("\\message",(e=>{var t=e.consumeArgs(1)[0];console.log(t.reverse().map((e=>e.text)).join(""));return""}));Ya("\\errmessage",(e=>{var t=e.consumeArgs(1)[0];console.error(t.reverse().map((e=>e.text)).join(""));return""}));Ya("\\show",(e=>{var t=e.popToken();var r=t.text;console.log(t,e.macros.get(r),Oi[r],He.math[r],He.text[r]);return""}));Ya("\\bgroup","{");Ya("\\egroup","}");Ya("~","\\nobreakspace");Ya("\\lq","`");Ya("\\rq","'");Ya("\\aa","\\r a");Ya("\\AA","\\r A");Ya("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");Ya("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");Ya("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");Ya("ℬ","\\mathscr{B}");Ya("ℰ","\\mathscr{E}");Ya("ℱ","\\mathscr{F}");Ya("ℋ","\\mathscr{H}");Ya("ℐ","\\mathscr{I}");Ya("ℒ","\\mathscr{L}");Ya("ℳ","\\mathscr{M}");Ya("ℛ","\\mathscr{R}");Ya("ℭ","\\mathfrak{C}");Ya("ℌ","\\mathfrak{H}");Ya("ℨ","\\mathfrak{Z}");Ya("\\Bbbk","\\Bbb{k}");Ya("·","\\cdotp");Ya("\\llap","\\mathllap{\\textrm{#1}}");Ya("\\rlap","\\mathrlap{\\textrm{#1}}");Ya("\\clap","\\mathclap{\\textrm{#1}}");Ya("\\mathstrut","\\vphantom{(}");Ya("\\underbar","\\underline{\\text{#1}}");Ya("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');Ya("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");Ya("\\ne","\\neq");Ya("≠","\\neq");Ya("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}"+"{\\mathrel{\\char`∉}}");Ya("∉","\\notin");Ya("≘","\\html@mathml{"+"\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}"+"}{\\mathrel{\\char`≘}}");Ya("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");Ya("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");Ya("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}"+"{\\mathrel{\\char`≛}}");Ya("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}"+"{\\mathrel{\\char`≝}}");Ya("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}"+"{\\mathrel{\\char`≞}}");Ya("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");Ya("⟂","\\perp");Ya("‼","\\mathclose{!\\mkern-0.8mu!}");Ya("∌","\\notni");Ya("⌜","\\ulcorner");Ya("⌝","\\urcorner");Ya("⌞","\\llcorner");Ya("⌟","\\lrcorner");Ya("©","\\copyright");Ya("®","\\textregistered");Ya("️","\\textregistered");Ya("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');Ya("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');Ya("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');Ya("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');Ya("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");Ya("⋮","\\vdots");Ya("\\varGamma","\\mathit{\\Gamma}");Ya("\\varDelta","\\mathit{\\Delta}");Ya("\\varTheta","\\mathit{\\Theta}");Ya("\\varLambda","\\mathit{\\Lambda}");Ya("\\varXi","\\mathit{\\Xi}");Ya("\\varPi","\\mathit{\\Pi}");Ya("\\varSigma","\\mathit{\\Sigma}");Ya("\\varUpsilon","\\mathit{\\Upsilon}");Ya("\\varPhi","\\mathit{\\Phi}");Ya("\\varPsi","\\mathit{\\Psi}");Ya("\\varOmega","\\mathit{\\Omega}");Ya("\\substack","\\begin{subarray}{c}#1\\end{subarray}");Ya("\\colon","\\nobreak\\mskip2mu\\mathpunct{}"+"\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");Ya("\\boxed","\\fbox{$\\displaystyle{#1}$}");Ya("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");Ya("\\implies","\\DOTSB\\;\\Longrightarrow\\;");Ya("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");Ya("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");Ya("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var $i={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Ya("\\dots",(function(e){var t="\\dotso";var r=e.expandAfterFuture().text;if(r in $i){t=$i[r]}else if(r.slice(0,4)==="\\not"){t="\\dotsb"}else if(r in He.math){if(g.contains(["bin","rel"],He.math[r].group)){t="\\dotsb"}}return t}));var Zi={")":true,"]":true,"\\rbrack":true,"\\}":true,"\\rbrace":true,"\\rangle":true,"\\rceil":true,"\\rfloor":true,"\\rgroup":true,"\\rmoustache":true,"\\right":true,"\\bigr":true,"\\biggr":true,"\\Bigr":true,"\\Biggr":true,$:true,";":true,".":true,",":true};Ya("\\dotso",(function(e){var t=e.future().text;if(t in Zi){return"\\ldots\\,"}else{return"\\ldots"}}));Ya("\\dotsc",(function(e){var t=e.future().text;if(t in Zi&&t!==","){return"\\ldots\\,"}else{return"\\ldots"}}));Ya("\\cdots",(function(e){var t=e.future().text;if(t in Zi){return"\\@cdots\\,"}else{return"\\@cdots"}}));Ya("\\dotsb","\\cdots");Ya("\\dotsm","\\cdots");Ya("\\dotsi","\\!\\cdots");Ya("\\dotsx","\\ldots\\,");Ya("\\DOTSI","\\relax");Ya("\\DOTSB","\\relax");Ya("\\DOTSX","\\relax");Ya("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Ya("\\,","\\tmspace+{3mu}{.1667em}");Ya("\\thinspace","\\,");Ya("\\>","\\mskip{4mu}");Ya("\\:","\\tmspace+{4mu}{.2222em}");Ya("\\medspace","\\:");Ya("\\;","\\tmspace+{5mu}{.2777em}");Ya("\\thickspace","\\;");Ya("\\!","\\tmspace-{3mu}{.1667em}");Ya("\\negthinspace","\\!");Ya("\\negmedspace","\\tmspace-{4mu}{.2222em}");Ya("\\negthickspace","\\tmspace-{5mu}{.277em}");Ya("\\enspace","\\kern.5em ");Ya("\\enskip","\\hskip.5em\\relax");Ya("\\quad","\\hskip1em\\relax");Ya("\\qquad","\\hskip2em\\relax");Ya("\\tag","\\@ifstar\\tag@literal\\tag@paren");Ya("\\tag@paren","\\tag@literal{({#1})}");Ya("\\tag@literal",(e=>{if(e.macros.get("\\df@tag")){throw new n("Multiple \\tag")}return"\\gdef\\df@tag{\\text{#1}}"}));Ya("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"+"\\mathbin{\\rm mod}"+"\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Ya("\\pod","\\allowbreak"+"\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Ya("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Ya("\\mod","\\allowbreak"+"\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}"+"{\\rm mod}\\,\\,#1");Ya("\\newline","\\\\\\relax");Ya("\\TeX","\\textrm{\\html@mathml{"+"T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX"+"}{TeX}}");var Ki=ve(te["Main-Regular"]["T".charCodeAt(0)][1]-.7*te["Main-Regular"]["A".charCodeAt(0)][1]);Ya("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Ki+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Ya("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Ki+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");Ya("\\hspace","\\@ifstar\\@hspacer\\@hspace");Ya("\\@hspace","\\hskip #1\\relax");Ya("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");Ya("\\ordinarycolon",":");Ya("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");Ya("\\dblcolon","\\html@mathml{"+"\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}"+'{\\mathop{\\char"2237}}');Ya("\\coloneqq","\\html@mathml{"+"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}"+'{\\mathop{\\char"2254}}');Ya("\\Coloneqq","\\html@mathml{"+"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}"+'{\\mathop{\\char"2237\\char"3d}}');Ya("\\coloneq","\\html@mathml{"+"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}"+'{\\mathop{\\char"3a\\char"2212}}');Ya("\\Coloneq","\\html@mathml{"+"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}"+'{\\mathop{\\char"2237\\char"2212}}');Ya("\\eqqcolon","\\html@mathml{"+"\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}"+'{\\mathop{\\char"2255}}');Ya("\\Eqqcolon","\\html@mathml{"+"\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}"+'{\\mathop{\\char"3d\\char"2237}}');Ya("\\eqcolon","\\html@mathml{"+"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}"+'{\\mathop{\\char"2239}}');Ya("\\Eqcolon","\\html@mathml{"+"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}"+'{\\mathop{\\char"2212\\char"2237}}');Ya("\\colonapprox","\\html@mathml{"+"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}"+'{\\mathop{\\char"3a\\char"2248}}');Ya("\\Colonapprox","\\html@mathml{"+"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}"+'{\\mathop{\\char"2237\\char"2248}}');Ya("\\colonsim","\\html@mathml{"+"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}"+'{\\mathop{\\char"3a\\char"223c}}');Ya("\\Colonsim","\\html@mathml{"+"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}"+'{\\mathop{\\char"2237\\char"223c}}');Ya("∷","\\dblcolon");Ya("∹","\\eqcolon");Ya("≔","\\coloneqq");Ya("≕","\\eqqcolon");Ya("⩴","\\Coloneqq");Ya("\\ratio","\\vcentcolon");Ya("\\coloncolon","\\dblcolon");Ya("\\colonequals","\\coloneqq");Ya("\\coloncolonequals","\\Coloneqq");Ya("\\equalscolon","\\eqqcolon");Ya("\\equalscoloncolon","\\Eqqcolon");Ya("\\colonminus","\\coloneq");Ya("\\coloncolonminus","\\Coloneq");Ya("\\minuscolon","\\eqcolon");Ya("\\minuscoloncolon","\\Eqcolon");Ya("\\coloncolonapprox","\\Colonapprox");Ya("\\coloncolonsim","\\Colonsim");Ya("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ya("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ya("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Ya("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");Ya("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");Ya("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");Ya("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");Ya("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");Ya("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");Ya("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");Ya("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");Ya("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");Ya("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");Ya("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");Ya("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");Ya("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");Ya("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");Ya("\\nleqq","\\html@mathml{\\@nleqq}{≰}");Ya("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");Ya("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");Ya("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");Ya("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");Ya("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");Ya("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");Ya("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");Ya("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");Ya("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");Ya("\\imath","\\html@mathml{\\@imath}{ı}");Ya("\\jmath","\\html@mathml{\\@jmath}{ȷ}");Ya("\\llbracket","\\html@mathml{"+"\\mathopen{[\\mkern-3.2mu[}}"+"{\\mathopen{\\char`⟦}}");Ya("\\rrbracket","\\html@mathml{"+"\\mathclose{]\\mkern-3.2mu]}}"+"{\\mathclose{\\char`⟧}}");Ya("⟦","\\llbracket");Ya("⟧","\\rrbracket");Ya("\\lBrace","\\html@mathml{"+"\\mathopen{\\{\\mkern-3.2mu[}}"+"{\\mathopen{\\char`⦃}}");Ya("\\rBrace","\\html@mathml{"+"\\mathclose{]\\mkern-3.2mu\\}}}"+"{\\mathclose{\\char`⦄}}");Ya("⦃","\\lBrace");Ya("⦄","\\rBrace");Ya("\\minuso","\\mathbin{\\html@mathml{"+"{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}"+"{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}"+"{\\char`⦵}}");Ya("⦵","\\minuso");Ya("\\darr","\\downarrow");Ya("\\dArr","\\Downarrow");Ya("\\Darr","\\Downarrow");Ya("\\lang","\\langle");Ya("\\rang","\\rangle");Ya("\\uarr","\\uparrow");Ya("\\uArr","\\Uparrow");Ya("\\Uarr","\\Uparrow");Ya("\\N","\\mathbb{N}");Ya("\\R","\\mathbb{R}");Ya("\\Z","\\mathbb{Z}");Ya("\\alef","\\aleph");Ya("\\alefsym","\\aleph");Ya("\\Alpha","\\mathrm{A}");Ya("\\Beta","\\mathrm{B}");Ya("\\bull","\\bullet");Ya("\\Chi","\\mathrm{X}");Ya("\\clubs","\\clubsuit");Ya("\\cnums","\\mathbb{C}");Ya("\\Complex","\\mathbb{C}");Ya("\\Dagger","\\ddagger");Ya("\\diamonds","\\diamondsuit");Ya("\\empty","\\emptyset");Ya("\\Epsilon","\\mathrm{E}");Ya("\\Eta","\\mathrm{H}");Ya("\\exist","\\exists");Ya("\\harr","\\leftrightarrow");Ya("\\hArr","\\Leftrightarrow");Ya("\\Harr","\\Leftrightarrow");Ya("\\hearts","\\heartsuit");Ya("\\image","\\Im");Ya("\\infin","\\infty");Ya("\\Iota","\\mathrm{I}");Ya("\\isin","\\in");Ya("\\Kappa","\\mathrm{K}");Ya("\\larr","\\leftarrow");Ya("\\lArr","\\Leftarrow");Ya("\\Larr","\\Leftarrow");Ya("\\lrarr","\\leftrightarrow");Ya("\\lrArr","\\Leftrightarrow");Ya("\\Lrarr","\\Leftrightarrow");Ya("\\Mu","\\mathrm{M}");Ya("\\natnums","\\mathbb{N}");Ya("\\Nu","\\mathrm{N}");Ya("\\Omicron","\\mathrm{O}");Ya("\\plusmn","\\pm");Ya("\\rarr","\\rightarrow");Ya("\\rArr","\\Rightarrow");Ya("\\Rarr","\\Rightarrow");Ya("\\real","\\Re");Ya("\\reals","\\mathbb{R}");Ya("\\Reals","\\mathbb{R}");Ya("\\Rho","\\mathrm{P}");Ya("\\sdot","\\cdot");Ya("\\sect","\\S");Ya("\\spades","\\spadesuit");Ya("\\sub","\\subset");Ya("\\sube","\\subseteq");Ya("\\supe","\\supseteq");Ya("\\Tau","\\mathrm{T}");Ya("\\thetasym","\\vartheta");Ya("\\weierp","\\wp");Ya("\\Zeta","\\mathrm{Z}");Ya("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");Ya("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");Ya("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");Ya("\\bra","\\mathinner{\\langle{#1}|}");Ya("\\ket","\\mathinner{|{#1}\\rangle}");Ya("\\braket","\\mathinner{\\langle{#1}\\rangle}");Ya("\\Bra","\\left\\langle#1\\right|");Ya("\\Ket","\\left|#1\\right\\rangle");var Ji=e=>t=>{var r=t.consumeArg().tokens;var a=t.consumeArg().tokens;var i=t.consumeArg().tokens;var n=t.consumeArg().tokens;var s=t.macros.get("|");var o=t.macros.get("\\|");t.macros.beginGroup();var l=t=>r=>{if(e){r.macros.set("|",s);if(i.length){r.macros.set("\\|",o)}}var n=t;if(!t&&i.length){var l=r.future();if(l.text==="|"){r.popToken();n=true}}return{tokens:n?i:a,numArgs:0}};t.macros.set("|",l(false));if(i.length){t.macros.set("\\|",l(true))}var h=t.consumeArg().tokens;var u=t.expandTokens([...n,...h,...r]);t.macros.endGroup();return{tokens:u.reverse(),numArgs:0}};Ya("\\bra@ket",Ji(false));Ya("\\bra@set",Ji(true));Ya("\\Braket","\\bra@ket{\\left\\langle}"+"{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");Ya("\\Set","\\bra@set{\\left\\{\\:}"+"{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");Ya("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");Ya("\\angln","{\\angl n}");Ya("\\blue","\\textcolor{##6495ed}{#1}");Ya("\\orange","\\textcolor{##ffa500}{#1}");Ya("\\pink","\\textcolor{##ff00af}{#1}");Ya("\\red","\\textcolor{##df0030}{#1}");Ya("\\green","\\textcolor{##28ae7b}{#1}");Ya("\\gray","\\textcolor{gray}{#1}");Ya("\\purple","\\textcolor{##9d38bd}{#1}");Ya("\\blueA","\\textcolor{##ccfaff}{#1}");Ya("\\blueB","\\textcolor{##80f6ff}{#1}");Ya("\\blueC","\\textcolor{##63d9ea}{#1}");Ya("\\blueD","\\textcolor{##11accd}{#1}");Ya("\\blueE","\\textcolor{##0c7f99}{#1}");Ya("\\tealA","\\textcolor{##94fff5}{#1}");Ya("\\tealB","\\textcolor{##26edd5}{#1}");Ya("\\tealC","\\textcolor{##01d1c1}{#1}");Ya("\\tealD","\\textcolor{##01a995}{#1}");Ya("\\tealE","\\textcolor{##208170}{#1}");Ya("\\greenA","\\textcolor{##b6ffb0}{#1}");Ya("\\greenB","\\textcolor{##8af281}{#1}");Ya("\\greenC","\\textcolor{##74cf70}{#1}");Ya("\\greenD","\\textcolor{##1fab54}{#1}");Ya("\\greenE","\\textcolor{##0d923f}{#1}");Ya("\\goldA","\\textcolor{##ffd0a9}{#1}");Ya("\\goldB","\\textcolor{##ffbb71}{#1}");Ya("\\goldC","\\textcolor{##ff9c39}{#1}");Ya("\\goldD","\\textcolor{##e07d10}{#1}");Ya("\\goldE","\\textcolor{##a75a05}{#1}");Ya("\\redA","\\textcolor{##fca9a9}{#1}");Ya("\\redB","\\textcolor{##ff8482}{#1}");Ya("\\redC","\\textcolor{##f9685d}{#1}");Ya("\\redD","\\textcolor{##e84d39}{#1}");Ya("\\redE","\\textcolor{##bc2612}{#1}");Ya("\\maroonA","\\textcolor{##ffbde0}{#1}");Ya("\\maroonB","\\textcolor{##ff92c6}{#1}");Ya("\\maroonC","\\textcolor{##ed5fa6}{#1}");Ya("\\maroonD","\\textcolor{##ca337c}{#1}");Ya("\\maroonE","\\textcolor{##9e034e}{#1}");Ya("\\purpleA","\\textcolor{##ddd7ff}{#1}");Ya("\\purpleB","\\textcolor{##c6b9fc}{#1}");Ya("\\purpleC","\\textcolor{##aa87ff}{#1}");Ya("\\purpleD","\\textcolor{##7854ab}{#1}");Ya("\\purpleE","\\textcolor{##543b78}{#1}");Ya("\\mintA","\\textcolor{##f5f9e8}{#1}");Ya("\\mintB","\\textcolor{##edf2df}{#1}");Ya("\\mintC","\\textcolor{##e0e5cc}{#1}");Ya("\\grayA","\\textcolor{##f6f7f7}{#1}");Ya("\\grayB","\\textcolor{##f0f1f2}{#1}");Ya("\\grayC","\\textcolor{##e3e5e6}{#1}");Ya("\\grayD","\\textcolor{##d6d8da}{#1}");Ya("\\grayE","\\textcolor{##babec2}{#1}");Ya("\\grayF","\\textcolor{##888d93}{#1}");Ya("\\grayG","\\textcolor{##626569}{#1}");Ya("\\grayH","\\textcolor{##3b3e40}{#1}");Ya("\\grayI","\\textcolor{##21242c}{#1}");Ya("\\kaBlue","\\textcolor{##314453}{#1}");Ya("\\kaGreen","\\textcolor{##71B307}{#1}");var Qi={"^":true,_:true,"\\limits":true,"\\nolimits":true};class en{constructor(e,t,r){this.settings=void 0;this.expansionCount=void 0;this.lexer=void 0;this.macros=void 0;this.stack=void 0;this.mode=void 0;this.settings=t;this.expansionCount=0;this.feed(e);this.macros=new Xi(Wi,t.macros);this.mode=r;this.stack=[]}feed(e){this.lexer=new Yi(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){if(this.stack.length===0){this.pushToken(this.lexer.lex())}return this.stack[this.stack.length-1]}popToken(){this.future();return this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t;var r;var a;if(e){this.consumeSpaces();if(this.future().text!=="["){return null}t=this.popToken();({tokens:a,end:r}=this.consumeArg(["]"]))}else{({tokens:a,start:t,end:r}=this.consumeArg())}this.pushToken(new i("EOF",r.loc));this.pushTokens(a);return t.range(r,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" "){this.stack.pop()}else{break}}}consumeArg(e){var t=[];var r=e&&e.length>0;if(!r){this.consumeSpaces()}var a=this.future();var i;var s=0;var o=0;do{i=this.popToken();t.push(i);if(i.text==="{"){++s}else if(i.text==="}"){--s;if(s===-1){throw new n("Extra }",i)}}else if(i.text==="EOF"){throw new n("Unexpected end of input in a macro argument"+", expected '"+(e&&r?e[o]:"}")+"'",i)}if(e&&r){if((s===0||s===1&&e[o]==="{")&&i.text===e[o]){++o;if(o===e.length){t.splice(-o,o);break}}else{o=0}}}while(s!==0||r);if(a.text==="{"&&t[t.length-1].text==="}"){t.pop();t.shift()}t.reverse();return{tokens:t,start:a,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1){throw new n("The length of delimiters doesn't match the number of args!")}var r=t[0];for(var a=0;athis.settings.maxExpand){throw new n("Too many expansions: infinite loop or "+"need to increase maxExpand setting")}}expandOnce(e){var t=this.popToken();var r=t.text;var a=!t.noexpand?this._getExpansion(r):null;if(a==null||e&&a.unexpandable){if(e&&a==null&&r[0]==="\\"&&!this.isDefined(r)){throw new n("Undefined control sequence: "+r)}this.pushToken(t);return false}this.countExpansion(1);var i=a.tokens;var s=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){i=i.slice();for(var o=i.length-1;o>=0;--o){var l=i[o];if(l.text==="#"){if(o===0){throw new n("Incomplete placeholder at end of macro body",l)}l=i[--o];if(l.text==="#"){i.splice(o+1,1)}else if(/^[1-9]$/.test(l.text)){i.splice(o,2,...s[+l.text-1])}else{throw new n("Not a valid argument number",l)}}}}this.pushTokens(i);return i.length}expandAfterFuture(){this.expandOnce();return this.future()}expandNextToken(){for(;;){if(this.expandOnce()===false){var e=this.stack.pop();if(e.treatAsRelax){e.text="\\relax"}return e}}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new i(e)]):undefined}expandTokens(e){var t=[];var r=this.stack.length;this.pushTokens(e);while(this.stack.length>r){if(this.expandOnce(true)===false){var a=this.stack.pop();if(a.treatAsRelax){a.noexpand=false;a.treatAsRelax=false}t.push(a)}}this.countExpansion(t.length);return t}expandMacroAsText(e){var t=this.expandMacro(e);if(t){return t.map((e=>e.text)).join("")}else{return t}}_getExpansion(e){var t=this.macros.get(e);if(t==null){return t}if(e.length===1){var r=this.lexer.catcodes[e];if(r!=null&&r!==13){return}}var a=typeof t==="function"?t(this):t;if(typeof a==="string"){var i=0;if(a.indexOf("#")!==-1){var n=a.replace(/##/g,"");while(n.indexOf("#"+(i+1))!==-1){++i}}var s=new Yi(a,this.settings);var o=[];var l=s.lex();while(l.text!=="EOF"){o.push(l);l=s.lex()}o.reverse();var h={tokens:o,numArgs:i};return h}return a}isDefined(e){return this.macros.has(e)||Oi.hasOwnProperty(e)||He.math.hasOwnProperty(e)||He.text.hasOwnProperty(e)||Qi.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t==="string"||typeof t==="function"||!t.unexpandable:Oi.hasOwnProperty(e)&&!Oi[e].primitive}}var tn=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/;var rn=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"});var an={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}};var nn={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class sn{constructor(e,t){this.mode=void 0;this.gullet=void 0;this.settings=void 0;this.leftrightDepth=void 0;this.nextToken=void 0;this.mode="math";this.gullet=new en(e,t,this.mode);this.settings=t;this.leftrightDepth=0}expect(e,t){if(t===void 0){t=true}if(this.fetch().text!==e){throw new n("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch())}if(t){this.consume()}}consume(){this.nextToken=null}fetch(){if(this.nextToken==null){this.nextToken=this.gullet.expandNextToken()}return this.nextToken}switchMode(e){this.mode=e;this.gullet.switchMode(e)}parse(){if(!this.settings.globalGroup){this.gullet.beginGroup()}if(this.settings.colorIsTextColor){this.gullet.macros.set("\\color","\\textcolor")}try{var e=this.parseExpression(false);this.expect("EOF");if(!this.settings.globalGroup){this.gullet.endGroup()}return e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume();this.gullet.pushToken(new i("}"));this.gullet.pushTokens(e);var r=this.parseExpression(false);this.expect("}");this.nextToken=t;return r}parseExpression(e,t){var r=[];while(true){if(this.mode==="math"){this.consumeSpaces()}var a=this.fetch();if(sn.endOfExpression.indexOf(a.text)!==-1){break}if(t&&a.text===t){break}if(e&&Oi[a.text]&&Oi[a.text].infix){break}var i=this.parseAtom(t);if(!i){break}else if(i.type==="internal"){continue}r.push(i)}if(this.mode==="text"){this.formLigatures(r)}return this.handleInfixNodes(r)}handleInfixNodes(e){var t=-1;var r;for(var a=0;a=0){this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in '+"math mode",e)}var l=He[this.mode][t].group;var h=a.range(e);var u;if(Ie.hasOwnProperty(l)){var m=l;u={type:"atom",mode:this.mode,family:m,loc:h,text:t}}else{u={type:l,mode:this.mode,loc:h,text:t}}o=u}else if(t.charCodeAt(0)>=128){if(this.settings.strict){if(!F(t.charCodeAt(0))){this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'"'+(" ("+t.charCodeAt(0)+")"),e)}else if(this.mode==="math"){this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e)}}o={type:"textord",mode:"text",loc:a.range(e),text:t}}else{return null}this.consume();if(s){for(var c=0;c{r.r(t);r.d(t,{cassandra:()=>b,esper:()=>k,gpSQL:()=>x,gql:()=>v,hive:()=>_,mariaDB:()=>g,msSQL:()=>m,mySQL:()=>p,pgSQL:()=>y,plSQL:()=>f,sparkSQL:()=>w,sql:()=>a,sqlite:()=>h,standardSQL:()=>d});function a(e){var t=e.client||{},r=e.atoms||{false:true,true:true,null:true},a=e.builtin||c(u),i=e.keywords||c(l),n=e.operatorChars||/^[*+\-%<>!=&|~^\/]/,s=e.support||{},o=e.hooks||{},d=e.dateSQL||{date:true,time:true,timestamp:true},m=e.backslashStringEscapes!==false,p=e.brackets||/^[\{}\(\)\[\]]/,g=e.punctuation||/^[;.,:]/;function h(e,l){var c=e.next();if(o[c]){var u=o[c](e,l);if(u!==false)return u}if(s.hexNumber&&(c=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||(c=="x"||c=="X")&&e.match(/^'[0-9a-fA-F]*'/))){return"number"}else if(s.binaryNumber&&((c=="b"||c=="B")&&e.match(/^'[01]+'/)||c=="0"&&e.match(/^b[01]*/))){return"number"}else if(c.charCodeAt(0)>47&&c.charCodeAt(0)<58){e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/);s.decimallessFloat&&e.match(/^\.(?!\.)/);return"number"}else if(c=="?"&&(e.eatSpace()||e.eol()||e.eat(";"))){return"macroName"}else if(c=="'"||c=='"'&&s.doubleQuote){l.tokenize=b(c);return l.tokenize(e,l)}else if((s.nCharCast&&(c=="n"||c=="N")||s.charsetCast&&c=="_"&&e.match(/[a-z][a-z0-9]*/i))&&(e.peek()=="'"||e.peek()=='"')){return"keyword"}else if(s.escapeConstant&&(c=="e"||c=="E")&&(e.peek()=="'"||e.peek()=='"'&&s.doubleQuote)){l.tokenize=function(e,t){return(t.tokenize=b(e.next(),true))(e,t)};return"keyword"}else if(s.commentSlashSlash&&c=="/"&&e.eat("/")){e.skipToEnd();return"comment"}else if(s.commentHash&&c=="#"||c=="-"&&e.eat("-")&&(!s.commentSpaceRequired||e.eat(" "))){e.skipToEnd();return"comment"}else if(c=="/"&&e.eat("*")){l.tokenize=f(1);return l.tokenize(e,l)}else if(c=="."){if(s.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(e.match(/^\.+/))return null;if(s.ODBCdotTable&&e.match(/^[\w\d_$#]+/))return"type"}else if(n.test(c)){e.eatWhile(n);return"operator"}else if(p.test(c)){return"bracket"}else if(g.test(c)){e.eatWhile(g);return"punctuation"}else if(c=="{"&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/))){return"number"}else{e.eatWhile(/^[_\w\d]/);var m=e.current().toLowerCase();if(d.hasOwnProperty(m)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/)))return"number";if(r.hasOwnProperty(m))return"atom";if(a.hasOwnProperty(m))return"type";if(i.hasOwnProperty(m))return"keyword";if(t.hasOwnProperty(m))return"builtin";return null}}function b(e,t){return function(r,a){var i=false,n;while((n=r.next())!=null){if(n==e&&!i){a.tokenize=h;break}i=(m||t)&&!i&&n=="\\"}return"string"}}function f(e){return function(t,r){var a=t.match(/^.*?(\/\*|\*\/)/);if(!a)t.skipToEnd();else if(a[1]=="/*")r.tokenize=f(e+1);else if(e>1)r.tokenize=f(e-1);else r.tokenize=h;return"comment"}}function _(e,t,r){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:r}}function y(e){e.indent=e.context.indent;e.context=e.context.prev}return{name:"sql",startState:function(){return{tokenize:h,context:null}},token:function(e,t){if(e.sol()){if(t.context&&t.context.align==null)t.context.align=false}if(t.tokenize==h&&e.eatSpace())return null;var r=t.tokenize(e,t);if(r=="comment")return r;if(t.context&&t.context.align==null)t.context.align=true;var a=e.current();if(a=="(")_(e,t,")");else if(a=="[")_(e,t,"]");else if(t.context&&t.context.type==a)y(t);return r},indent:function(e,t,r){var a=e.context;if(!a)return null;var i=t.charAt(0)==a.type;if(a.align)return a.col+(i?0:1);else return a.indent+(i?0:r.unit)},languageData:{commentTokens:{line:s.commentSlashSlash?"//":s.commentHash?"#":"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}}}function i(e){var t;while((t=e.next())!=null){if(t=="`"&&!e.eat("`"))return"string.special"}e.backUp(e.current().length-1);return e.eatWhile(/\w/)?"string.special":null}function n(e){var t;while((t=e.next())!=null){if(t=='"'&&!e.eat('"'))return"string.special"}e.backUp(e.current().length-1);return e.eatWhile(/\w/)?"string.special":null}function s(e){if(e.eat("@")){e.match("session.");e.match("local.");e.match("global.")}if(e.eat("'")){e.match(/^.*'/);return"string.special"}else if(e.eat('"')){e.match(/^.*"/);return"string.special"}else if(e.eat("`")){e.match(/^.*`/);return"string.special"}else if(e.match(/^[0-9a-zA-Z$\.\_]+/)){return"string.special"}return null}function o(e){if(e.eat("N")){return"atom"}return e.match(/^[a-zA-Z.#!?]/)?"string.special":null}var l="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function c(e){var t={},r=e.split(" ");for(var a=0;a!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:false,dateSQL:c("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":s}});const p=a({client:c("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:c(l+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:c("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:c("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:c("date time timestamp"),support:c("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":s,"`":i,"\\":o}});const g=a({client:c("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:c(l+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:c("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:c("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:c("date time timestamp"),support:c("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":s,"`":i,"\\":o}});const h=a({client:c("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:c(l+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:c("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:c("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:c("date time timestamp datetime"),support:c("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":s,":":s,"?":s,$:s,'"':n,"`":i}});const b=a({client:{},keywords:c("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:c("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:c("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:c("commentSlashSlash decimallessFloat"),hooks:{}});const f=a({client:c("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:c("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:c("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:c("date time timestamp"),support:c("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")});const _=a({keywords:c("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:c("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:c("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:c("date timestamp"),support:c("ODBCdotTable doubleQuote binaryNumber hexNumber")});const y=a({client:c("source"),keywords:c(l+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:c("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:c("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:false,dateSQL:c("date time timestamp"),support:c("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")});const v=a({keywords:c("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:c("false true"),builtin:c("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/});const x=a({client:c("source"),keywords:c("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:c("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:c("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:c("date time timestamp"),support:c("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")});const w=a({keywords:c("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:c("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:c("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:c("date time timestamp"),support:c("ODBCdotTable doubleQuote zerolessFloat")});const k=a({client:c("source"),keywords:c("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:c("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:c("time"),support:c("decimallessFloat zerolessFloat binaryNumber hexNumber")})}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5847.930208c25e45ecf30657.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5847.930208c25e45ecf30657.js new file mode 100644 index 0000000000000000000000000000000000000000..49c434b3f4fe2252e4bee0f9fd350732695fc619 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5847.930208c25e45ecf30657.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5847],{85847:(e,_,I)=>{I.r(_);I.d(_,{ntriples:()=>t});var R={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function r(e,_){var I=e.location;var r;if(I==R.PRE_SUBJECT&&_=="<")r=R.WRITING_SUB_URI;else if(I==R.PRE_SUBJECT&&_=="_")r=R.WRITING_BNODE_URI;else if(I==R.PRE_PRED&&_=="<")r=R.WRITING_PRED_URI;else if(I==R.PRE_OBJ&&_=="<")r=R.WRITING_OBJ_URI;else if(I==R.PRE_OBJ&&_=="_")r=R.WRITING_OBJ_BNODE;else if(I==R.PRE_OBJ&&_=='"')r=R.WRITING_OBJ_LITERAL;else if(I==R.WRITING_SUB_URI&&_==">")r=R.PRE_PRED;else if(I==R.WRITING_BNODE_URI&&_==" ")r=R.PRE_PRED;else if(I==R.WRITING_PRED_URI&&_==">")r=R.PRE_OBJ;else if(I==R.WRITING_OBJ_URI&&_==">")r=R.POST_OBJ;else if(I==R.WRITING_OBJ_BNODE&&_==" ")r=R.POST_OBJ;else if(I==R.WRITING_OBJ_LITERAL&&_=='"')r=R.POST_OBJ;else if(I==R.WRITING_LIT_LANG&&_==" ")r=R.POST_OBJ;else if(I==R.WRITING_LIT_TYPE&&_==">")r=R.POST_OBJ;else if(I==R.WRITING_OBJ_LITERAL&&_=="@")r=R.WRITING_LIT_LANG;else if(I==R.WRITING_OBJ_LITERAL&&_=="^")r=R.WRITING_LIT_TYPE;else if(_==" "&&(I==R.PRE_SUBJECT||I==R.PRE_PRED||I==R.PRE_OBJ||I==R.POST_OBJ))r=I;else if(I==R.POST_OBJ&&_==".")r=R.PRE_SUBJECT;else r=R.ERROR;e.location=r}const t={name:"ntriples",startState:function(){return{location:R.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(e,_){var I=e.next();if(I=="<"){r(_,I);var R="";e.eatWhile((function(e){if(e!="#"&&e!=">"){R+=e;return true}return false}));_.uris.push(R);if(e.match("#",false))return"variable";e.next();r(_,">");return"variable"}if(I=="#"){var t="";e.eatWhile((function(e){if(e!=">"&&e!=" "){t+=e;return true}return false}));_.anchors.push(t);return"url"}if(I==">"){r(_,">");return"variable"}if(I=="_"){r(_,I);var i="";e.eatWhile((function(e){if(e!=" "){i+=e;return true}return false}));_.bnodes.push(i);e.next();r(_," ");return"builtin"}if(I=='"'){r(_,I);e.eatWhile((function(e){return e!='"'}));e.next();if(e.peek()!="@"&&e.peek()!="^"){r(_,'"')}return"string"}if(I=="@"){r(_,"@");var n="";e.eatWhile((function(e){if(e!=" "){n+=e;return true}return false}));_.langs.push(n);e.next();r(_," ");return"string.special"}if(I=="^"){e.next();r(_,"^");var T="";e.eatWhile((function(e){if(e!=">"){T+=e;return true}return false}));_.types.push(T);e.next();r(_,">");return"variable"}if(I==" "){r(_,I)}if(I=="."){r(_,I)}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5929.d561797f8259994ecdd8.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5929.d561797f8259994ecdd8.js new file mode 100644 index 0000000000000000000000000000000000000000..68d11aa9c0ebb6dcae1112852359ec23d7fdf6a8 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/5929.d561797f8259994ecdd8.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5929],{25929:(e,t,n)=>{n.r(t);n.d(t,{asn1:()=>a});function r(e){var t={},n=e.split(" ");for(var r=0;r{n.r(t);n.d(t,{smalltalk:()=>h});var a=/[+\-\/\\*~<>=@%|&?!.,:;^]/;var i=/true|false|nil|self|super|thisContext/;var r=function(e,t){this.next=e;this.parent=t};var s=function(e,t,n){this.name=e;this.context=t;this.eos=n};var l=function(){this.context=new r(o,null);this.expectVariable=true;this.indentation=0;this.userIndentationDelta=0};l.prototype.userIndent=function(e,t){this.userIndentationDelta=e>0?e/t-this.indentation:0};var o=function(e,t,n){var l=new s(null,t,false);var o=e.next();if(o==='"'){l=u(e,new r(u,t))}else if(o==="'"){l=c(e,new r(c,t))}else if(o==="#"){if(e.peek()==="'"){e.next();l=f(e,new r(f,t))}else{if(e.eatWhile(/[^\s.{}\[\]()]/))l.name="string.special";else l.name="meta"}}else if(o==="$"){if(e.next()==="<"){e.eatWhile(/[^\s>]/);e.next()}l.name="string.special"}else if(o==="|"&&n.expectVariable){l.context=new r(p,t)}else if(/[\[\]{}()]/.test(o)){l.name="bracket";l.eos=/[\[{(]/.test(o);if(o==="["){n.indentation++}else if(o==="]"){n.indentation=Math.max(0,n.indentation-1)}}else if(a.test(o)){e.eatWhile(a);l.name="operator";l.eos=o!==";"}else if(/\d/.test(o)){e.eatWhile(/[\w\d]/);l.name="number"}else if(/[\w_]/.test(o)){e.eatWhile(/[\w\d_]/);l.name=n.expectVariable?i.test(e.current())?"keyword":"variable":null}else{l.eos=n.expectVariable}return l};var u=function(e,t){e.eatWhile(/[^"]/);return new s("comment",e.eat('"')?t.parent:t,true)};var c=function(e,t){e.eatWhile(/[^']/);return new s("string",e.eat("'")?t.parent:t,false)};var f=function(e,t){e.eatWhile(/[^']/);return new s("string.special",e.eat("'")?t.parent:t,false)};var p=function(e,t){var n=new s(null,t,false);var a=e.next();if(a==="|"){n.context=t.parent;n.eos=true}else{e.eatWhile(/[^|]/);n.name="variable"}return n};const h={name:"smalltalk",startState:function(){return new l},token:function(e,t){t.userIndent(e.indentation(),e.indentUnit);if(e.eatSpace()){return null}var n=t.context.next(e,t.context,t);t.context=n.context;t.expectVariable=n.eos;return n.name},blankLine:function(e,t){e.userIndent(0,t)},indent:function(e,t,n){var a=e.context.next===o&&t&&t.charAt(0)==="]"?-1:e.userIndentationDelta;return(e.indentation+a)*n.unit},languageData:{indentOnInput:/^\s*\]$/}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6060.52dca011e9f2f279fc5e.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6060.52dca011e9f2f279fc5e.js new file mode 100644 index 0000000000000000000000000000000000000000..0bee75c7d868a3aea2112ffa65ae601d73f1c9ba --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6060.52dca011e9f2f279fc5e.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6060],{56060:(e,a,n)=>{n.r(a);n.d(a,{gherkin:()=>i});const i={name:"gherkin",startState:function(){return{lineNumber:0,tableHeaderLine:false,allowFeature:true,allowBackground:false,allowScenario:false,allowSteps:false,allowPlaceholders:false,allowMultilineArgument:false,inMultilineString:false,inMultilineTable:false,inKeywordLine:false}},token:function(e,a){if(e.sol()){a.lineNumber++;a.inKeywordLine=false;if(a.inMultilineTable){a.tableHeaderLine=false;if(!e.match(/\s*\|/,false)){a.allowMultilineArgument=false;a.inMultilineTable=false}}}e.eatSpace();if(a.allowMultilineArgument){if(a.inMultilineString){if(e.match('"""')){a.inMultilineString=false;a.allowMultilineArgument=false}else{e.match(/.*/)}return"string"}if(a.inMultilineTable){if(e.match(/\|\s*/)){return"bracket"}else{e.match(/[^\|]*/);return a.tableHeaderLine?"header":"string"}}if(e.match('"""')){a.inMultilineString=true;return"string"}else if(e.match("|")){a.inMultilineTable=true;a.tableHeaderLine=true;return"bracket"}}if(e.match(/#.*/)){return"comment"}else if(!a.inKeywordLine&&e.match(/@\S+/)){return"tag"}else if(!a.inKeywordLine&&a.allowFeature&&e.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)){a.allowScenario=true;a.allowBackground=true;a.allowPlaceholders=false;a.allowSteps=false;a.allowMultilineArgument=false;a.inKeywordLine=true;return"keyword"}else if(!a.inKeywordLine&&a.allowBackground&&e.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/)){a.allowPlaceholders=false;a.allowSteps=true;a.allowBackground=false;a.allowMultilineArgument=false;a.inKeywordLine=true;return"keyword"}else if(!a.inKeywordLine&&a.allowScenario&&e.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)){a.allowPlaceholders=true;a.allowSteps=true;a.allowMultilineArgument=false;a.inKeywordLine=true;return"keyword"}else if(a.allowScenario&&e.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/)){a.allowPlaceholders=false;a.allowSteps=true;a.allowBackground=false;a.allowMultilineArgument=true;return"keyword"}else if(!a.inKeywordLine&&a.allowScenario&&e.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/)){a.allowPlaceholders=false;a.allowSteps=true;a.allowBackground=false;a.allowMultilineArgument=false;a.inKeywordLine=true;return"keyword"}else if(!a.inKeywordLine&&a.allowSteps&&e.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/)){a.inStep=true;a.allowPlaceholders=true;a.allowMultilineArgument=true;a.inKeywordLine=true;return"keyword"}else if(e.match(/"[^"]*"?/)){return"string"}else if(a.allowPlaceholders&&e.match(/<[^>]*>?/)){return"variable"}else{e.next();e.eatWhile(/[^@"<#]/);return null}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6214.617de47747c5a9b19ef7.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6214.617de47747c5a9b19ef7.js new file mode 100644 index 0000000000000000000000000000000000000000..2e4134e9d9ec97b54fd20455e061988673b96c21 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6214.617de47747c5a9b19ef7.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6214],{26214:(t,e,n)=>{n.d(e,{diagram:()=>X});var i=n(75905);var r=n(24982);var s=n(63170);var a=n(77470);var o=n(48750);var c=function(){var t=(0,i.K2)((function(t,e,n,i){for(n=n||{},i=t.length;i--;n[t[i]]=e);return n}),"o"),e=[6,8,10,11,12,14,16,17,20,21],n=[1,9],r=[1,10],s=[1,11],a=[1,12],o=[1,13],c=[1,16],l=[1,17];var h={trace:(0,i.K2)((function t(){}),"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:(0,i.K2)((function t(e,n,i,r,s,a,o){var c=a.length-1;switch(s){case 1:return a[c-1];break;case 2:this.$=[];break;case 3:a[c-1].push(a[c]);this.$=a[c-1];break;case 4:case 5:this.$=a[c];break;case 6:case 7:this.$=[];break;case 8:r.getCommonDb().setDiagramTitle(a[c].substr(6));this.$=a[c].substr(6);break;case 9:this.$=a[c].trim();r.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=a[c].trim();r.getCommonDb().setAccDescription(this.$);break;case 12:r.addSection(a[c].substr(8));this.$=a[c].substr(8);break;case 15:r.addTask(a[c],0,"");this.$=a[c];break;case 16:r.addEvent(a[c].substr(2));this.$=a[c];break}}),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:n,12:r,14:s,16:a,17:o,18:14,19:15,20:c,21:l},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:18,11:n,12:r,14:s,16:a,17:o,18:14,19:15,20:c,21:l},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,19]},{15:[1,20]},t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),t(e,[2,4]),t(e,[2,9]),t(e,[2,10])],defaultActions:{},parseError:(0,i.K2)((function t(e,n){if(n.recoverable){this.trace(e)}else{var i=new Error(e);i.hash=n;throw i}}),"parseError"),parse:(0,i.K2)((function t(e){var n=this,r=[0],s=[],a=[null],o=[],c=this.table,l="",h=0,d=0,u=0,p=2,f=1;var y=o.slice.call(arguments,1);var g=Object.create(this.lexer);var m={yy:{}};for(var x in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,x)){m.yy[x]=this.yy[x]}}g.setInput(e,m.yy);m.yy.lexer=g;m.yy.parser=this;if(typeof g.yylloc=="undefined"){g.yylloc={}}var b=g.yylloc;o.push(b);var k=g.options&&g.options.ranges;if(typeof m.yy.parseError==="function"){this.parseError=m.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function v(t){r.length=r.length-2*t;a.length=a.length-t;o.length=o.length-t}(0,i.K2)(v,"popStack");function _(){var t;t=s.pop()||g.lex()||f;if(typeof t!=="number"){if(t instanceof Array){s=t;t=s.pop()}t=n.symbols_[t]||t}return t}(0,i.K2)(_,"lex");var w,K,S,$,E,T,I={},R,A,L,M;while(true){S=r[r.length-1];if(this.defaultActions[S]){$=this.defaultActions[S]}else{if(w===null||typeof w=="undefined"){w=_()}$=c[S]&&c[S][w]}if(typeof $==="undefined"||!$.length||!$[0]){var C="";M=[];for(R in c[S]){if(this.terminals_[R]&&R>p){M.push("'"+this.terminals_[R]+"'")}}if(g.showPosition){C="Parse error on line "+(h+1)+":\n"+g.showPosition()+"\nExpecting "+M.join(", ")+", got '"+(this.terminals_[w]||w)+"'"}else{C="Parse error on line "+(h+1)+": Unexpected "+(w==f?"end of input":"'"+(this.terminals_[w]||w)+"'")}this.parseError(C,{text:g.match,token:this.terminals_[w]||w,line:g.yylineno,loc:b,expected:M})}if($[0]instanceof Array&&$.length>1){throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+w)}switch($[0]){case 1:r.push(w);a.push(g.yytext);o.push(g.yylloc);r.push($[1]);w=null;if(!K){d=g.yyleng;l=g.yytext;h=g.yylineno;b=g.yylloc;if(u>0){u--}}else{w=K;K=null}break;case 2:A=this.productions_[$[1]][1];I.$=a[a.length-A];I._$={first_line:o[o.length-(A||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(A||1)].first_column,last_column:o[o.length-1].last_column};if(k){I._$.range=[o[o.length-(A||1)].range[0],o[o.length-1].range[1]]}T=this.performAction.apply(I,[l,d,h,m.yy,$[1],a,o].concat(y));if(typeof T!=="undefined"){return T}if(A){r=r.slice(0,-1*A*2);a=a.slice(0,-1*A);o=o.slice(0,-1*A)}r.push(this.productions_[$[1]][0]);a.push(I.$);o.push(I._$);L=c[r[r.length-2]][r[r.length-1]];r.push(L);break;case 3:return true}}return true}),"parse")};var d=function(){var t={EOF:1,parseError:(0,i.K2)((function t(e,n){if(this.yy.parser){this.yy.parser.parseError(e,n)}else{throw new Error(e)}}),"parseError"),setInput:(0,i.K2)((function(t,e){this.yy=e||this.yy||{};this._input=t;this._more=this._backtrack=this.done=false;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};if(this.options.ranges){this.yylloc.range=[0,0]}this.offset=0;return this}),"setInput"),input:(0,i.K2)((function(){var t=this._input[0];this.yytext+=t;this.yyleng++;this.offset++;this.match+=t;this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);if(e){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges){this.yylloc.range[1]++}this._input=this._input.slice(1);return t}),"input"),unput:(0,i.K2)((function(t){var e=t.length;var n=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);if(n.length-1){this.yylineno-=n.length-1}var r=this.yylloc.range;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-e};if(this.options.ranges){this.yylloc.range=[r[0],r[0]+this.yyleng-e]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,i.K2)((function(){this._more=true;return this}),"more"),reject:(0,i.K2)((function(){if(this.options.backtrack_lexer){this._backtrack=true}else{return 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})}return this}),"reject"),less:(0,i.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,i.K2)((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,i.K2)((function(){var t=this.match;if(t.length<20){t+=this._input.substr(0,20-t.length)}return(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,i.K2)((function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,i.K2)((function(t,e){var n,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};if(this.options.ranges){r.yylloc.range=this.yylloc.range.slice(0)}}i=t[0].match(/(?:\r\n?|\n).*/g);if(i){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;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._backtrack=false;this._input=this._input.slice(t[0].length);this.matched+=t[0];n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(n){return n}else if(this._backtrack){for(var s in r){this[s]=r[s]}return false}return false}),"test_match"),next:(0,i.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var t,e,n,i;if(!this._more){this.yytext="";this.match=""}var r=this._currentRules();for(var s=0;se[0].length)){e=n;i=s;if(this.options.backtrack_lexer){t=this.test_match(n,r[s]);if(t!==false){return t}else if(this._backtrack){e=false;continue}else{return false}}else if(!this.options.flex){break}}}if(e){t=this.test_match(e,r[i]);if(t!==false){return t}return false}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}}),"next"),lex:(0,i.K2)((function t(){var e=this.next();if(e){return e}else{return this.lex()}}),"lex"),begin:(0,i.K2)((function t(e){this.conditionStack.push(e)}),"begin"),popState:(0,i.K2)((function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,i.K2)((function t(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules}else{return this.conditions["INITIAL"].rules}}),"_currentRules"),topState:(0,i.K2)((function t(e){e=this.conditionStack.length-1-Math.abs(e||0);if(e>=0){return this.conditionStack[e]}else{return"INITIAL"}}),"topState"),pushState:(0,i.K2)((function t(e){this.begin(e)}),"pushState"),stateStackSize:(0,i.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{"case-insensitive":true},performAction:(0,i.K2)((function t(e,n,i,r){var s=r;switch(i){case 0:break;case 1:break;case 2:return 10;break;case 3:break;case 4:break;case 5:return 4;break;case 6:return 11;break;case 7:this.begin("acc_title");return 12;break;case 8:this.popState();return"acc_title_value";break;case 9:this.begin("acc_descr");return 14;break;case 10:this.popState();return"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";break;case 14:return 17;break;case 15:return 21;break;case 16:return 20;break;case 17:return 6;break;case 18:return"INVALID";break}}),"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s[^:\n]+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:false},acc_descr:{rules:[10],inclusive:false},acc_title:{rules:[8],inclusive:false},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:true}}};return t}();h.lexer=d;function u(){this.yy={}}(0,i.K2)(u,"Parser");u.prototype=h;h.Parser=u;return new u}();c.parser=c;var l=c;var h={};(0,i.VA)(h,{addEvent:()=>_,addSection:()=>x,addTask:()=>v,addTaskOrg:()=>w,clear:()=>m,default:()=>S,getCommonDb:()=>g,getSections:()=>b,getTasks:()=>k});var d="";var u=0;var p=[];var f=[];var y=[];var g=(0,i.K2)((()=>i.Wt),"getCommonDb");var m=(0,i.K2)((function(){p.length=0;f.length=0;d="";y.length=0;(0,i.IU)()}),"clear");var x=(0,i.K2)((function(t){d=t;p.push(t)}),"addSection");var b=(0,i.K2)((function(){return p}),"getSections");var k=(0,i.K2)((function(){let t=K();const e=100;let n=0;while(!t&&nt.id===u-1));e.events.push(t)}),"addEvent");var w=(0,i.K2)((function(t){const e={section:d,type:d,description:t,task:t,classes:[]};f.push(e)}),"addTaskOrg");var K=(0,i.K2)((function(){const t=(0,i.K2)((function(t){return y[t].processed}),"compileTask");let e=true;for(const[n,i]of y.entries()){t(n);e=e&&i.processed}return e}),"compileTasks");var S={clear:m,getCommonDb:g,addSection:x,getSections:b,getTasks:k,addTask:v,addTaskOrg:w,addEvent:_};var $=12;var E=(0,i.K2)((function(t,e){const n=t.append("rect");n.attr("x",e.x);n.attr("y",e.y);n.attr("fill",e.fill);n.attr("stroke",e.stroke);n.attr("width",e.width);n.attr("height",e.height);n.attr("rx",e.rx);n.attr("ry",e.ry);if(e.class!==void 0){n.attr("class",e.class)}return n}),"drawRect");var T=(0,i.K2)((function(t,e){const n=15;const s=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",n).attr("stroke-width",2).attr("overflow","visible");const a=t.append("g");a.append("circle").attr("cx",e.cx-n/3).attr("cy",e.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");a.append("circle").attr("cx",e.cx+n/3).attr("cy",e.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function o(t){const i=(0,r.JLW)().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(n/2).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}(0,i.K2)(o,"smile");function c(t){const i=(0,r.JLW)().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(n/2).outerRadius(n/2.2);t.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}(0,i.K2)(c,"sad");function l(t){t.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(0,i.K2)(l,"ambivalent");if(e.score>3){o(a)}else if(e.score<3){c(a)}else{l(a)}return s}),"drawFace");var I=(0,i.K2)((function(t,e){const n=t.append("circle");n.attr("cx",e.cx);n.attr("cy",e.cy);n.attr("class","actor-"+e.pos);n.attr("fill",e.fill);n.attr("stroke",e.stroke);n.attr("r",e.r);if(n.class!==void 0){n.attr("class",n.class)}if(e.title!==void 0){n.append("title").text(e.title)}return n}),"drawCircle");var R=(0,i.K2)((function(t,e){const n=e.text.replace(//gi," ");const i=t.append("text");i.attr("x",e.x);i.attr("y",e.y);i.attr("class","legend");i.style("text-anchor",e.anchor);if(e.class!==void 0){i.attr("class",e.class)}const r=i.append("tspan");r.attr("x",e.x+e.textMargin*2);r.text(n);return i}),"drawText");var A=(0,i.K2)((function(t,e){function n(t,e,n,i,r){return t+","+e+" "+(t+n)+","+e+" "+(t+n)+","+(e+i-r)+" "+(t+n-r*1.2)+","+(e+i)+" "+t+","+(e+i)}(0,i.K2)(n,"genPoints");const r=t.append("polygon");r.attr("points",n(e.x,e.y,50,20,7));r.attr("class","labelBox");e.y=e.y+e.labelMargin;e.x=e.x+.5*e.labelMargin;R(t,e)}),"drawLabel");var L=(0,i.K2)((function(t,e,n){const i=t.append("g");const r=H();r.x=e.x;r.y=e.y;r.fill=e.fill;r.width=n.width;r.height=n.height;r.class="journey-section section-type-"+e.num;r.rx=3;r.ry=3;E(i,r);O(n)(e.text,i,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},n,e.colour)}),"drawSection");var M=-1;var C=(0,i.K2)((function(t,e,n){const i=e.x+n.width/2;const r=t.append("g");M++;const s=300+5*30;r.append("line").attr("id","task"+M).attr("x1",i).attr("y1",e.y).attr("x2",i).attr("y2",s).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666");T(r,{cx:i,cy:300+(5-e.score)*30,score:e.score});const a=H();a.x=e.x;a.y=e.y;a.fill=e.fill;a.width=n.width;a.height=n.height;a.class="task task-type-"+e.num;a.rx=3;a.ry=3;E(r,a);O(n)(e.task,r,a.x,a.y,a.width,a.height,{class:"task"},n,e.colour)}),"drawTask");var N=(0,i.K2)((function(t,e){const n=E(t,{x:e.startx,y:e.starty,width:e.stopx-e.startx,height:e.stopy-e.starty,fill:e.fill,class:"rect"});n.lower()}),"drawBackgroundRect");var P=(0,i.K2)((function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}}),"getTextObj");var H=(0,i.K2)((function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}}),"getNoteRect");var O=function(){function t(t,e,n,i,s,a,o,c){const l=e.append("text").attr("x",n+s/2).attr("y",i+a/2+5).style("font-color",c).style("text-anchor","middle").text(t);r(l,o)}(0,i.K2)(t,"byText");function e(t,e,n,i,s,a,o,c,l){const{taskFontSize:h,taskFontFamily:d}=c;const u=t.split(//gi);for(let p=0;p)/).reverse(),i,s=[],a=1.1,o=t.attr("y"),c=parseFloat(t.attr("dy")),l=t.text(null).append("tspan").attr("x",0).attr("y",o).attr("dy",c+"em");for(let r=0;re||i==="
"){s.pop();l.text(s.join(" ").trim());if(i==="
"){s=[""]}else{s=[i]}l=t.append("tspan").attr("x",0).attr("y",o).attr("dy",a+"em").text(i)}}}))}(0,i.K2)(D,"wrap");var z=(0,i.K2)((function(t,e,n,i){const r=n%$-1;const s=t.append("g");e.section=r;s.attr("class",(e.class?e.class+" ":"")+"timeline-node "+("section-"+r));const a=s.append("g");const o=s.append("g");const c=o.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(D,e.width);const l=c.node().getBBox();const h=i.fontSize?.replace?i.fontSize.replace("px",""):i.fontSize;e.height=l.height+h*1.1*.5+e.padding;e.height=Math.max(e.height,e.maxHeight);e.width=e.width+2*e.padding;o.attr("transform","translate("+e.width/2+", "+e.padding/2+")");B(a,e,r,i);return e}),"drawNode");var W=(0,i.K2)((function(t,e,n){const i=t.append("g");const r=i.append("text").text(e.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(D,e.width);const s=r.node().getBBox();const a=n.fontSize?.replace?n.fontSize.replace("px",""):n.fontSize;i.remove();return s.height+a*1.1*.5+e.padding}),"getVirtualNodeHeight");var B=(0,i.K2)((function(t,e,n){const i=5;t.append("path").attr("id","node-"+e.id).attr("class","node-bkg node-"+e.type).attr("d",`M0 ${e.height-i} v${-e.height+2*i} q0,-5 5,-5 h${e.width-2*i} q5,0 5,5 v${e.height-i} H0 Z`);t.append("line").attr("class","node-line-"+n).attr("x1",0).attr("y1",e.height).attr("x2",e.width).attr("y2",e.height)}),"defaultBkg");var F={drawRect:E,drawCircle:I,drawSection:L,drawText:R,drawLabel:A,drawTask:C,drawBackgroundRect:N,getTextObj:P,getNoteRect:H,initGraphics:j,drawNode:z,getVirtualNodeHeight:W};var V=(0,i.K2)((function(t,e,n,s){const a=(0,i.D7)();const o=a.leftMargin??50;i.Rm.debug("timeline",s.db);const c=a.securityLevel;let l;if(c==="sandbox"){l=(0,r.Ltv)("#i"+e)}const h=c==="sandbox"?(0,r.Ltv)(l.nodes()[0].contentDocument.body):(0,r.Ltv)("body");const d=h.select("#"+e);d.append("g");const u=s.db.getTasks();const p=s.db.getCommonDb().getDiagramTitle();i.Rm.debug("task",u);F.initGraphics(d);const f=s.db.getSections();i.Rm.debug("sections",f);let y=0;let g=0;let m=0;let x=0;let b=50+o;let k=50;x=50;let v=0;let _=true;f.forEach((function(t){const e={number:v,descr:t,section:v,width:150,padding:20,maxHeight:y};const n=F.getVirtualNodeHeight(d,e,a);i.Rm.debug("sectionHeight before draw",n);y=Math.max(y,n+20)}));let w=0;let K=0;i.Rm.debug("tasks.length",u.length);for(const[r,E]of u.entries()){const t={number:r,descr:E,section:E.section,width:150,padding:20,maxHeight:g};const e=F.getVirtualNodeHeight(d,t,a);i.Rm.debug("taskHeight before draw",e);g=Math.max(g,e+20);w=Math.max(w,E.events.length);let n=0;for(const i of E.events){const t={descr:i,section:E.section,number:E.section,width:150,padding:20,maxHeight:50};n+=F.getVirtualNodeHeight(d,t,a)}K=Math.max(K,n)}i.Rm.debug("maxSectionHeight before draw",y);i.Rm.debug("maxTaskHeight before draw",g);if(f&&f.length>0){f.forEach((t=>{const e=u.filter((e=>e.section===t));const n={number:v,descr:t,section:v,width:200*Math.max(e.length,1)-50,padding:20,maxHeight:y};i.Rm.debug("sectionNode",n);const r=d.append("g");const s=F.drawNode(r,n,v,a);i.Rm.debug("sectionNode output",s);r.attr("transform",`translate(${b}, ${x})`);k+=y+50;if(e.length>0){G(d,e,v,b,k,g,a,w,K,y,false)}b+=200*Math.max(e.length,1);k=x;v++}))}else{_=false;G(d,u,v,b,k,g,a,w,K,y,true)}const S=d.node().getBBox();i.Rm.debug("bounds",S);if(p){d.append("text").text(p).attr("x",S.width/2-o).attr("font-size","4ex").attr("font-weight","bold").attr("y",20)}m=_?y+g+150:g+100;const $=d.append("g").attr("class","lineWrapper");$.append("line").attr("x1",o).attr("y1",m).attr("x2",S.width+3*o).attr("y2",m).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");(0,i.ot)(void 0,d,a.timeline?.padding??50,a.timeline?.useMaxWidth??false)}),"draw");var G=(0,i.K2)((function(t,e,n,r,s,a,o,c,l,h,d){for(const u of e){const e={descr:u.task,section:n,number:n,width:150,padding:20,maxHeight:a};i.Rm.debug("taskNode",e);const c=t.append("g").attr("class","taskWrapper");const p=F.drawNode(c,e,n,o);const f=p.height;i.Rm.debug("taskHeight after draw",f);c.attr("transform",`translate(${r}, ${s})`);a=Math.max(a,f);if(u.events){const e=t.append("g").attr("class","lineWrapper");let i=a;s+=100;i=i+U(t,u.events,n,r,s,o);s-=100;e.append("line").attr("x1",r+190/2).attr("y1",s+a).attr("x2",r+190/2).attr("y2",s+a+(d?a:h)+l+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}r=r+200;if(d&&!o.timeline?.disableMulticolor){n++}}s=s-10}),"drawTasks");var U=(0,i.K2)((function(t,e,n,r,s,a){let o=0;const c=s;s=s+100;for(const l of e){const e={descr:l,section:n,number:n,width:150,padding:20,maxHeight:50};i.Rm.debug("eventNode",e);const c=t.append("g").attr("class","eventWrapper");const h=F.drawNode(c,e,n,a);const d=h.height;o=o+d;c.attr("transform",`translate(${r}, ${s})`);s=s+10+d}s=c;return o}),"drawEvents");var q={setConf:(0,i.K2)((()=>{}),"setConf"),draw:V};var J=(0,i.K2)((t=>{let e="";for(let n=0;n`\n .edge {\n stroke-width: 3;\n }\n ${J(t)}\n .section-root rect, .section-root path, .section-root circle {\n fill: ${t.git0};\n }\n .section-root text {\n fill: ${t.gitBranchLabel0};\n }\n .icon-container {\n height:100%;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .edge {\n fill: none;\n }\n .eventWrapper {\n filter: brightness(120%);\n }\n`),"getStyles");var Z=Y;var X={db:h,renderer:q,parser:l,styles:Z}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6275.e99f9312900c481b467d.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6275.e99f9312900c481b467d.js new file mode 100644 index 0000000000000000000000000000000000000000..dbb8330352236a739f97b659c8e75b121ff8e47b --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6275.e99f9312900c481b467d.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6275],{24971:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.newState=e.STATE=e.AbstractMathItem=e.protoItem=void 0;function r(t,e,r,n,o,i,s){if(s===void 0){s=null}var a={open:t,math:e,close:r,n,start:{n:o},end:{n:i},display:s};return a}e.protoItem=r;var n=function(){function t(t,r,n,o,i){if(n===void 0){n=true}if(o===void 0){o={i:0,n:0,delim:""}}if(i===void 0){i={i:0,n:0,delim:""}}this.root=null;this.typesetRoot=null;this.metrics={};this.inputData={};this.outputData={};this._state=e.STATE.UNPROCESSED;this.math=t;this.inputJax=r;this.display=n;this.start=o;this.end=i;this.root=null;this.typesetRoot=null;this.metrics={};this.inputData={};this.outputData={}}Object.defineProperty(t.prototype,"isEscaped",{get:function(){return this.display===null},enumerable:false,configurable:true});t.prototype.render=function(t){t.renderActions.renderMath(this,t)};t.prototype.rerender=function(t,r){if(r===void 0){r=e.STATE.RERENDER}if(this.state()>=r){this.state(r-1)}t.renderActions.renderMath(this,t,r)};t.prototype.convert=function(t,r){if(r===void 0){r=e.STATE.LAST}t.renderActions.renderConvert(this,t,r)};t.prototype.compile=function(t){if(this.state()=e.STATE.INSERTED){this.removeFromDocument(r)}if(t=e.STATE.TYPESET){this.outputData={}}if(t=e.STATE.COMPILED){this.inputData={}}this._state=t}return this._state};t.prototype.reset=function(t){if(t===void 0){t=false}this.state(e.STATE.UNPROCESSED,t)};return t}();e.AbstractMathItem=n;e.STATE={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4};function o(t,r){if(t in e.STATE){throw Error("State "+t+" already exists")}e.STATE[t]=r}e.newState=o},54517:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;rthis.childNodes.length){t=1}this.attributes.set("selection",t)};e.defaults=o(o({},i.AbstractMmlNode.defaults),{actiontype:"toggle",selection:1});return e}(i.AbstractMmlNode);e.MmlMaction=s},31859:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.MmlMfenced=void 0;var s=r(80747);var a=function(t){n(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.texclass=s.TEXCLASS.INNER;e.separators=[];e.open=null;e.close=null;return e}Object.defineProperty(e.prototype,"kind",{get:function(){return"mfenced"},enumerable:false,configurable:true});e.prototype.setTeXclass=function(t){this.getPrevClass(t);if(this.open){t=this.open.setTeXclass(t)}if(this.childNodes[0]){t=this.childNodes[0].setTeXclass(t)}for(var e=1,r=this.childNodes.length;e=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.MmlMfrac=void 0;var s=r(80747);var a=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"kind",{get:function(){return"mfrac"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"arity",{get:function(){return 2},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return true},enumerable:false,configurable:true});e.prototype.setTeXclass=function(t){var e,r;this.getPrevClass(t);try{for(var n=i(this.childNodes),o=n.next();!o.done;o=n.next()){var s=o.value;s.setTeXclass(null)}}catch(a){e={error:a}}finally{try{if(o&&!o.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}return this};e.prototype.setChildInheritedAttributes=function(t,e,r,n){if(!e||r>0){r++}this.childNodes[0].setInheritedAttributes(t,false,r,n);this.childNodes[1].setInheritedAttributes(t,false,r,true)};e.defaults=o(o({},s.AbstractMmlBaseNode.defaults),{linethickness:"medium",numalign:"center",denomalign:"center",bevelled:false});return e}(s.AbstractMmlBaseNode);e.MmlMfrac=a},64906:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r1&&r.match(e.operatorName)&&this.attributes.get("mathvariant")==="normal"&&this.getProperty("autoOP")===undefined&&this.getProperty("texClass")===undefined){this.texClass=i.TEXCLASS.OP;this.setProperty("autoOP",true)}return this};e.defaults=o({},i.AbstractMmlTokenNode.defaults);e.operatorName=/^[a-z][a-z0-9]*$/i;e.singleCharacter=/^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/;return e}(i.AbstractMmlTokenNode);e.MmlMi=s},10093:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.MmlInferredMrow=e.MmlMrow=void 0;var s=r(80747);var a=function(t){n(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e._core=null;return e}Object.defineProperty(e.prototype,"kind",{get:function(){return"mrow"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isSpacelike",{get:function(){var t,e;try{for(var r=i(this.childNodes),n=r.next();!n.done;n=r.next()){var o=n.value;if(!o.isSpacelike){return false}}}catch(s){t={error:s}}finally{try{if(n&&!n.done&&(e=r.return))e.call(r)}finally{if(t)throw t.error}}return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isEmbellished",{get:function(){var t,e;var r=false;var n=0;try{for(var o=i(this.childNodes),s=o.next();!s.done;s=o.next()){var a=s.value;if(a){if(a.isEmbellished){if(r){return false}r=true;this._core=n}else if(!a.isSpacelike){return false}}n++}}catch(l){t={error:l}}finally{try{if(s&&!s.done&&(e=o.return))e.call(o)}finally{if(t)throw t.error}}return r},enumerable:false,configurable:true});e.prototype.core=function(){if(!this.isEmbellished||this._core==null){return this}return this.childNodes[this._core]};e.prototype.coreMO=function(){if(!this.isEmbellished||this._core==null){return this}return this.childNodes[this._core].coreMO()};e.prototype.nonSpaceLength=function(){var t,e;var r=0;try{for(var n=i(this.childNodes),o=n.next();!o.done;o=n.next()){var s=o.value;if(s&&!s.isSpacelike){r++}}}catch(a){t={error:a}}finally{try{if(o&&!o.done&&(e=n.return))e.call(n)}finally{if(t)throw t.error}}return r};e.prototype.firstNonSpace=function(){var t,e;try{for(var r=i(this.childNodes),n=r.next();!n.done;n=r.next()){var o=n.value;if(o&&!o.isSpacelike){return o}}}catch(s){t={error:s}}finally{try{if(n&&!n.done&&(e=r.return))e.call(r)}finally{if(t)throw t.error}}return null};e.prototype.lastNonSpace=function(){var t=this.childNodes.length;while(--t>=0){var e=this.childNodes[t];if(e&&!e.isSpacelike){return e}}return null};e.prototype.setTeXclass=function(t){var e,r,n,o;if(this.getProperty("open")!=null||this.getProperty("close")!=null){this.getPrevClass(t);t=null;try{for(var a=i(this.childNodes),l=a.next();!l.done;l=a.next()){var u=l.value;t=u.setTeXclass(t)}}catch(p){e={error:p}}finally{try{if(l&&!l.done&&(r=a.return))r.call(a)}finally{if(e)throw e.error}}if(this.texClass==null){this.texClass=s.TEXCLASS.INNER}}else{try{for(var c=i(this.childNodes),f=c.next();!f.done;f=c.next()){var u=f.value;t=u.setTeXclass(t)}}catch(h){n={error:h}}finally{try{if(f&&!f.done&&(o=c.return))o.call(c)}finally{if(n)throw n.error}}if(this.childNodes[0]){this.updateTeXclass(this.childNodes[0])}}return t};e.defaults=o({},s.AbstractMmlNode.defaults);return e}(s.AbstractMmlNode);e.MmlMrow=a;var l=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"kind",{get:function(){return"inferredMrow"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isInferred",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"notParent",{get:function(){return true},enumerable:false,configurable:true});e.prototype.toString=function(){return"["+this.childNodes.join(",")+"]"};e.defaults=a.defaults;return e}(a);e.MmlInferredMrow=l},68313:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.MmlMtable=void 0;var s=r(80747);var a=r(41278);var l=function(t){n(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.properties={useHeight:true};e.texclass=s.TEXCLASS.ORD;return e}Object.defineProperty(e.prototype,"kind",{get:function(){return"mtable"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return true},enumerable:false,configurable:true});e.prototype.setInheritedAttributes=function(e,r,n,o){var a,l;try{for(var u=i(s.indentAttributes),c=u.next();!c.done;c=u.next()){var f=c.value;if(e[f]){this.attributes.setInherited(f,e[f][1])}if(this.attributes.getExplicit(f)!==undefined){delete this.attributes.getAllAttributes()[f]}}}catch(p){a={error:p}}finally{try{if(c&&!c.done&&(l=u.return))l.call(u)}finally{if(a)throw a.error}}t.prototype.setInheritedAttributes.call(this,e,r,n,o)};e.prototype.setChildInheritedAttributes=function(t,e,r,n){var o,s,l,u;try{for(var c=i(this.childNodes),f=c.next();!f.done;f=c.next()){var p=f.value;if(!p.isKind("mtr")){this.replaceChild(this.factory.create("mtr"),p).appendChild(p)}}}catch(v){o={error:v}}finally{try{if(f&&!f.done&&(s=c.return))s.call(c)}finally{if(o)throw o.error}}r=this.getProperty("scriptlevel")||r;e=!!(this.attributes.getExplicit("displaystyle")||this.attributes.getDefault("displaystyle"));t=this.addInheritedAttributes(t,{columnalign:this.attributes.get("columnalign"),rowalign:"center"});var h=this.attributes.getExplicit("data-cramped");var d=(0,a.split)(this.attributes.get("rowalign"));try{for(var y=i(this.childNodes),b=y.next();!b.done;b=y.next()){var p=b.value;t.rowalign[1]=d.shift()||t.rowalign[1];p.setInheritedAttributes(t,e,r,!!h)}}catch(g){l={error:g}}finally{try{if(b&&!b.done&&(u=y.return))u.call(y)}finally{if(l)throw l.error}}};e.prototype.verifyChildren=function(e){var r=null;var n=this.factory;for(var o=0;o=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.MmlMlabeledtr=e.MmlMtr=void 0;var s=r(80747);var a=r(98128);var l=r(41278);var u=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"kind",{get:function(){return"mtr"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return true},enumerable:false,configurable:true});e.prototype.setChildInheritedAttributes=function(t,e,r,n){var o,s,a,u;try{for(var c=i(this.childNodes),f=c.next();!f.done;f=c.next()){var p=f.value;if(!p.isKind("mtd")){this.replaceChild(this.factory.create("mtd"),p).appendChild(p)}}}catch(b){o={error:b}}finally{try{if(f&&!f.done&&(s=c.return))s.call(c)}finally{if(o)throw o.error}}var h=(0,l.split)(this.attributes.get("columnalign"));if(this.arity===1){h.unshift(this.parent.attributes.get("side"))}t=this.addInheritedAttributes(t,{rowalign:this.attributes.get("rowalign"),columnalign:"center"});try{for(var d=i(this.childNodes),y=d.next();!y.done;y=d.next()){var p=y.value;t.columnalign[1]=h.shift()||t.columnalign[1];p.setInheritedAttributes(t,e,r,n)}}catch(v){a={error:v}}finally{try{if(y&&!y.done&&(u=d.return))u.call(d)}finally{if(a)throw a.error}}};e.prototype.verifyChildren=function(e){var r,n;if(this.parent&&!this.parent.isKind("mtable")){this.mError(this.kind+" can only be a child of an mtable",e,true);return}try{for(var o=i(this.childNodes),s=o.next();!s.done;s=o.next()){var a=s.value;if(!a.isKind("mtd")){var l=this.replaceChild(this.factory.create("mtd"),a);l.appendChild(a);if(!e["fixMtables"]){a.mError("Children of "+this.kind+" must be mtd",e)}}}}catch(u){r={error:u}}finally{try{if(s&&!s.done&&(n=o.return))n.call(o)}finally{if(r)throw r.error}}t.prototype.verifyChildren.call(this,e)};e.prototype.setTeXclass=function(t){var e,r;this.getPrevClass(t);try{for(var n=i(this.childNodes),o=n.next();!o.done;o=n.next()){var s=o.value;s.setTeXclass(null)}}catch(a){e={error:a}}finally{try{if(o&&!o.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}return this};e.defaults=o(o({},s.AbstractMmlNode.defaults),{rowalign:a.INHERIT,columnalign:a.INHERIT,groupalign:a.INHERIT});return e}(s.AbstractMmlNode);e.MmlMtr=u;var c=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"kind",{get:function(){return"mlabeledtr"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"arity",{get:function(){return 1},enumerable:false,configurable:true});return e}(u);e.MmlMlabeledtr=c},46072:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{while((e===void 0||e-- >0)&&!(o=n.next()).done)i.push(o.value)}catch(a){s={error:a}}finally{try{if(o&&!o.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return i};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n{r.d(e,{T:()=>w});var a=r(33659);var s=r(58807);var i=r(37947);var n=r(97133);var o=r(74650);var l=r(69769);var c=r(89523);var h=r(62040);var d=r(55881);var u=r(19363);var g=r(10654);var p=(0,d.A)((function(t){return(0,u.A)((0,h.A)(t,1,g.A,true))}));const y=p;var f=r(44882);var b=r(65339);var x="\0";var m="\0";var k="";class w{constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:true;this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:false;this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:false;this._label=undefined;this._defaultNodeLabelFn=a.A(undefined);this._defaultEdgeLabelFn=a.A(undefined);this._nodes={};if(this._isCompound){this._parent={};this._children={};this._children[m]={}}this._in={};this._preds={};this._out={};this._sucs={};this._edgeObjs={};this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){this._label=t;return this}graph(){return this._label}setDefaultNodeLabel(t){if(!s.A(t)){t=a.A(t)}this._defaultNodeLabelFn=t;return this}nodeCount(){return this._nodeCount}nodes(){return i.A(this._nodes)}sources(){var t=this;return n.A(this.nodes(),(function(e){return o.A(t._in[e])}))}sinks(){var t=this;return n.A(this.nodes(),(function(e){return o.A(t._out[e])}))}setNodes(t,e){var r=arguments;var a=this;l.A(t,(function(t){if(r.length>1){a.setNode(t,e)}else{a.setNode(t)}}));return this}setNode(t,e){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){if(arguments.length>1){this._nodes[t]=e}return this}this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t);if(this._isCompound){this._parent[t]=m;this._children[t]={};this._children[m][t]=true}this._in[t]={};this._preds[t]={};this._out[t]={};this._sucs[t]={};++this._nodeCount;return this}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=t=>this.removeEdge(this._edgeObjs[t]);delete this._nodes[t];if(this._isCompound){this._removeFromParentsChildList(t);delete this._parent[t];l.A(this.children(t),(t=>{this.setParent(t)}));delete this._children[t]}l.A(i.A(this._in[t]),e);delete this._in[t];delete this._preds[t];l.A(i.A(this._out[t]),e);delete this._out[t];delete this._sucs[t];--this._nodeCount}return this}setParent(t,e){if(!this._isCompound){throw new Error("Cannot set parent in a non-compound graph")}if(c.A(e)){e=m}else{e+="";for(var r=e;!c.A(r);r=this.parent(r)){if(r===t){throw new Error("Setting "+e+" as parent of "+t+" would create a cycle")}}this.setNode(e)}this.setNode(t);this._removeFromParentsChildList(t);this._parent[t]=e;this._children[e][t]=true;return this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if(e!==m){return e}}}children(t){if(c.A(t)){t=m}if(this._isCompound){var e=this._children[t];if(e){return i.A(e)}}else if(t===m){return this.nodes()}else if(this.hasNode(t)){return[]}}predecessors(t){var e=this._preds[t];if(e){return i.A(e)}}successors(t){var e=this._sucs[t];if(e){return i.A(e)}}neighbors(t){var e=this.predecessors(t);if(e){return y(e,this.successors(t))}}isLeaf(t){var e;if(this.isDirected()){e=this.successors(t)}else{e=this.neighbors(t)}return e.length===0}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;l.A(this._nodes,(function(r,a){if(t(a)){e.setNode(a,r)}}));l.A(this._edgeObjs,(function(t){if(e.hasNode(t.v)&&e.hasNode(t.w)){e.setEdge(t,r.edge(t))}}));var a={};function s(t){var i=r.parent(t);if(i===undefined||e.hasNode(i)){a[t]=i;return i}else if(i in a){return a[i]}else{return s(i)}}if(this._isCompound){l.A(e.nodes(),(function(t){e.setParent(t,s(t))}))}return e}setDefaultEdgeLabel(t){if(!s.A(t)){t=a.A(t)}this._defaultEdgeLabelFn=t;return this}edgeCount(){return this._edgeCount}edges(){return f.A(this._edgeObjs)}setPath(t,e){var r=this;var a=arguments;b.A(t,(function(t,s){if(a.length>1){r.setEdge(t,s,e)}else{r.setEdge(t,s)}return s}));return this}setEdge(){var t,e,r,a;var s=false;var i=arguments[0];if(typeof i==="object"&&i!==null&&"v"in i){t=i.v;e=i.w;r=i.name;if(arguments.length===2){a=arguments[1];s=true}}else{t=i;e=arguments[1];r=arguments[3];if(arguments.length>2){a=arguments[2];s=true}}t=""+t;e=""+e;if(!c.A(r)){r=""+r}var n=v(this._isDirected,t,e,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,n)){if(s){this._edgeLabels[n]=a}return this}if(!c.A(r)&&!this._isMultigraph){throw new Error("Cannot set a named edge when isMultigraph = false")}this.setNode(t);this.setNode(e);this._edgeLabels[n]=s?a:this._defaultEdgeLabelFn(t,e,r);var o=S(this._isDirected,t,e,r);t=o.v;e=o.w;Object.freeze(o);this._edgeObjs[n]=o;L(this._preds[e],t);L(this._sucs[t],e);this._in[e][n]=o;this._out[t][n]=o;this._edgeCount++;return this}edge(t,e,r){var a=arguments.length===1?E(this._isDirected,arguments[0]):v(this._isDirected,t,e,r);return this._edgeLabels[a]}hasEdge(t,e,r){var a=arguments.length===1?E(this._isDirected,arguments[0]):v(this._isDirected,t,e,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,a)}removeEdge(t,e,r){var a=arguments.length===1?E(this._isDirected,arguments[0]):v(this._isDirected,t,e,r);var s=this._edgeObjs[a];if(s){t=s.v;e=s.w;delete this._edgeLabels[a];delete this._edgeObjs[a];_(this._preds[e],t);_(this._sucs[t],e);delete this._in[e][a];delete this._out[t][a];this._edgeCount--}return this}inEdges(t,e){var r=this._in[t];if(r){var a=f.A(r);if(!e){return a}return n.A(a,(function(t){return t.v===e}))}}outEdges(t,e){var r=this._out[t];if(r){var a=f.A(r);if(!e){return a}return n.A(a,(function(t){return t.w===e}))}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r){return r.concat(this.outEdges(t,e))}}}w.prototype._nodeCount=0;w.prototype._edgeCount=0;function L(t,e){if(t[e]){t[e]++}else{t[e]=1}}function _(t,e){if(! --t[e]){delete t[e]}}function v(t,e,r,a){var s=""+e;var i=""+r;if(!t&&s>i){var n=s;s=i;i=n}return s+k+i+k+(c.A(a)?x:a)}function S(t,e,r,a){var s=""+e;var i=""+r;if(!t&&s>i){var n=s;s=i;i=n}var o={v:s,w:i};if(a){o.name=a}return o}function E(t,e){return v(t,e.v,e.w,e.name)}},84416:(t,e,r)=>{r.d(e,{T:()=>a.T});var a=r(65791);const s="2.1.9-pre"},27574:(t,e,r)=>{r.d(e,{A:()=>n});var a=r(57991);var s=r(63221);const i=(t,e)=>a.A.lang.round(s.A.parse(t)[e]);const n=i},97134:(t,e,r)=>{r.d(e,{A:()=>n});var a=r(59386);var s=4;function i(t){return(0,a.A)(t,s)}const n=i},46364:(t,e,r)=>{r.d(e,{diagram:()=>Me});var a=r(94746);var s=r(57590);var i=r(76261);var n=r(96049);var o=r(75905);var l=r(97134);var c=r(27574);var h=r(3635);var d=r(24982);var u=r(84416);var g=function(){var t=(0,o.K2)((function(t,e,r,a){for(r=r||{},a=t.length;a--;r[t[a]]=e);return r}),"o"),e=[1,7],r=[1,13],a=[1,14],s=[1,15],i=[1,19],n=[1,16],l=[1,17],c=[1,18],h=[8,30],d=[8,21,28,29,30,31,32,40,44,47],u=[1,23],g=[1,24],p=[8,15,16,21,28,29,30,31,32,40,44,47],y=[8,15,16,21,27,28,29,30,31,32,40,44,47],f=[1,49];var b={trace:(0,o.K2)((function t(){}),"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:(0,o.K2)((function t(e,r,a,s,i,n,o){var l=n.length-1;switch(i){case 4:s.getLogger().debug("Rule: separator (NL) ");break;case 5:s.getLogger().debug("Rule: separator (Space) ");break;case 6:s.getLogger().debug("Rule: separator (EOF) ");break;case 7:s.getLogger().debug("Rule: hierarchy: ",n[l-1]);s.setHierarchy(n[l-1]);break;case 8:s.getLogger().debug("Stop NL ");break;case 9:s.getLogger().debug("Stop EOF ");break;case 10:s.getLogger().debug("Stop NL2 ");break;case 11:s.getLogger().debug("Stop EOF2 ");break;case 12:s.getLogger().debug("Rule: statement: ",n[l]);typeof n[l].length==="number"?this.$=n[l]:this.$=[n[l]];break;case 13:s.getLogger().debug("Rule: statement #2: ",n[l-1]);this.$=[n[l-1]].concat(n[l]);break;case 14:s.getLogger().debug("Rule: link: ",n[l],e);this.$={edgeTypeStr:n[l],label:""};break;case 15:s.getLogger().debug("Rule: LABEL link: ",n[l-3],n[l-1],n[l]);this.$={edgeTypeStr:n[l],label:n[l-1]};break;case 18:const t=parseInt(n[l]);const r=s.generateId();this.$={id:r,type:"space",label:"",width:t,children:[]};break;case 23:s.getLogger().debug("Rule: (nodeStatement link node) ",n[l-2],n[l-1],n[l]," typestr: ",n[l-1].edgeTypeStr);const a=s.edgeStrToEdgeData(n[l-1].edgeTypeStr);this.$=[{id:n[l-2].id,label:n[l-2].label,type:n[l-2].type,directions:n[l-2].directions},{id:n[l-2].id+"-"+n[l].id,start:n[l-2].id,end:n[l].id,label:n[l-1].label,type:"edge",directions:n[l].directions,arrowTypeEnd:a,arrowTypeStart:"arrow_open"},{id:n[l].id,label:n[l].label,type:s.typeStr2Type(n[l].typeStr),directions:n[l].directions}];break;case 24:s.getLogger().debug("Rule: nodeStatement (abc88 node size) ",n[l-1],n[l]);this.$={id:n[l-1].id,label:n[l-1].label,type:s.typeStr2Type(n[l-1].typeStr),directions:n[l-1].directions,widthInColumns:parseInt(n[l],10)};break;case 25:s.getLogger().debug("Rule: nodeStatement (node) ",n[l]);this.$={id:n[l].id,label:n[l].label,type:s.typeStr2Type(n[l].typeStr),directions:n[l].directions,widthInColumns:1};break;case 26:s.getLogger().debug("APA123",this?this:"na");s.getLogger().debug("COLUMNS: ",n[l]);this.$={type:"column-setting",columns:n[l]==="auto"?-1:parseInt(n[l])};break;case 27:s.getLogger().debug("Rule: id-block statement : ",n[l-2],n[l-1]);const i=s.generateId();this.$={...n[l-2],type:"composite",children:n[l-1]};break;case 28:s.getLogger().debug("Rule: blockStatement : ",n[l-2],n[l-1],n[l]);const o=s.generateId();this.$={id:o,type:"composite",label:"",children:n[l-1]};break;case 29:s.getLogger().debug("Rule: node (NODE_ID separator): ",n[l]);this.$={id:n[l]};break;case 30:s.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",n[l-1],n[l]);this.$={id:n[l-1],label:n[l].label,typeStr:n[l].typeStr,directions:n[l].directions};break;case 31:s.getLogger().debug("Rule: dirList: ",n[l]);this.$=[n[l]];break;case 32:s.getLogger().debug("Rule: dirList: ",n[l-1],n[l]);this.$=[n[l-1]].concat(n[l]);break;case 33:s.getLogger().debug("Rule: nodeShapeNLabel: ",n[l-2],n[l-1],n[l]);this.$={typeStr:n[l-2]+n[l],label:n[l-1]};break;case 34:s.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",n[l-3],n[l-2]," #3:",n[l-1],n[l]);this.$={typeStr:n[l-3]+n[l],label:n[l-2],directions:n[l-1]};break;case 35:case 36:this.$={type:"classDef",id:n[l-1].trim(),css:n[l].trim()};break;case 37:this.$={type:"applyClass",id:n[l-1].trim(),styleClass:n[l].trim()};break;case 38:this.$={type:"applyStyles",id:n[l-1].trim(),stylesStr:n[l].trim()};break}}),"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:r,29:a,31:s,32:i,40:n,44:l,47:c},{8:[1,20]},t(h,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:e,28:r,29:a,31:s,32:i,40:n,44:l,47:c}),t(d,[2,16],{14:22,15:u,16:g}),t(d,[2,17]),t(d,[2,18]),t(d,[2,19]),t(d,[2,20]),t(d,[2,21]),t(d,[2,22]),t(p,[2,25],{27:[1,25]}),t(d,[2,26]),{19:26,26:12,32:i},{11:27,13:4,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:r,29:a,31:s,32:i,40:n,44:l,47:c},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},t(y,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},t(h,[2,13]),{26:35,32:i},{32:[2,14]},{17:[1,36]},t(p,[2,24]),{11:37,13:4,14:22,15:u,16:g,19:5,20:6,21:e,22:8,23:9,24:10,25:11,26:12,28:r,29:a,31:s,32:i,40:n,44:l,47:c},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},t(y,[2,30]),{18:[1,43]},{18:[1,44]},t(p,[2,23]),{18:[1,45]},{30:[1,46]},t(d,[2,28]),t(d,[2,35]),t(d,[2,36]),t(d,[2,37]),t(d,[2,38]),{37:[1,47]},{34:48,35:f},{15:[1,50]},t(d,[2,27]),t(y,[2,33]),{39:[1,51]},{34:52,35:f,39:[2,31]},{32:[2,15]},t(y,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:(0,o.K2)((function t(e,r){if(r.recoverable){this.trace(e)}else{var a=new Error(e);a.hash=r;throw a}}),"parseError"),parse:(0,o.K2)((function t(e){var r=this,a=[0],s=[],i=[null],n=[],l=this.table,c="",h=0,d=0,u=0,g=2,p=1;var y=n.slice.call(arguments,1);var f=Object.create(this.lexer);var b={yy:{}};for(var x in this.yy){if(Object.prototype.hasOwnProperty.call(this.yy,x)){b.yy[x]=this.yy[x]}}f.setInput(e,b.yy);b.yy.lexer=f;b.yy.parser=this;if(typeof f.yylloc=="undefined"){f.yylloc={}}var m=f.yylloc;n.push(m);var k=f.options&&f.options.ranges;if(typeof b.yy.parseError==="function"){this.parseError=b.yy.parseError}else{this.parseError=Object.getPrototypeOf(this).parseError}function w(t){a.length=a.length-2*t;i.length=i.length-t;n.length=n.length-t}(0,o.K2)(w,"popStack");function L(){var t;t=s.pop()||f.lex()||p;if(typeof t!=="number"){if(t instanceof Array){s=t;t=s.pop()}t=r.symbols_[t]||t}return t}(0,o.K2)(L,"lex");var _,v,S,E,D,N,K={},R,C,T,$;while(true){S=a[a.length-1];if(this.defaultActions[S]){E=this.defaultActions[S]}else{if(_===null||typeof _=="undefined"){_=L()}E=l[S]&&l[S][_]}if(typeof E==="undefined"||!E.length||!E[0]){var A="";$=[];for(R in l[S]){if(this.terminals_[R]&&R>g){$.push("'"+this.terminals_[R]+"'")}}if(f.showPosition){A="Parse error on line "+(h+1)+":\n"+f.showPosition()+"\nExpecting "+$.join(", ")+", got '"+(this.terminals_[_]||_)+"'"}else{A="Parse error on line "+(h+1)+": Unexpected "+(_==p?"end of input":"'"+(this.terminals_[_]||_)+"'")}this.parseError(A,{text:f.match,token:this.terminals_[_]||_,line:f.yylineno,loc:m,expected:$})}if(E[0]instanceof Array&&E.length>1){throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+_)}switch(E[0]){case 1:a.push(_);i.push(f.yytext);n.push(f.yylloc);a.push(E[1]);_=null;if(!v){d=f.yyleng;c=f.yytext;h=f.yylineno;m=f.yylloc;if(u>0){u--}}else{_=v;v=null}break;case 2:C=this.productions_[E[1]][1];K.$=i[i.length-C];K._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column};if(k){K._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]}N=this.performAction.apply(K,[c,d,h,b.yy,E[1],i,n].concat(y));if(typeof N!=="undefined"){return N}if(C){a=a.slice(0,-1*C*2);i=i.slice(0,-1*C);n=n.slice(0,-1*C)}a.push(this.productions_[E[1]][0]);i.push(K.$);n.push(K._$);T=l[a[a.length-2]][a[a.length-1]];a.push(T);break;case 3:return true}}return true}),"parse")};var x=function(){var t={EOF:1,parseError:(0,o.K2)((function t(e,r){if(this.yy.parser){this.yy.parser.parseError(e,r)}else{throw new Error(e)}}),"parseError"),setInput:(0,o.K2)((function(t,e){this.yy=e||this.yy||{};this._input=t;this._more=this._backtrack=this.done=false;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};if(this.options.ranges){this.yylloc.range=[0,0]}this.offset=0;return this}),"setInput"),input:(0,o.K2)((function(){var t=this._input[0];this.yytext+=t;this.yyleng++;this.offset++;this.match+=t;this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);if(e){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges){this.yylloc.range[1]++}this._input=this._input.slice(1);return t}),"input"),unput:(0,o.K2)((function(t){var e=t.length;var r=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 a=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);if(r.length-1){this.yylineno-=r.length-1}var s=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-e};if(this.options.ranges){this.yylloc.range=[s[0],s[0]+this.yyleng-e]}this.yyleng=this.yytext.length;return this}),"unput"),more:(0,o.K2)((function(){this._more=true;return this}),"more"),reject:(0,o.K2)((function(){if(this.options.backtrack_lexer){this._backtrack=true}else{return 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})}return this}),"reject"),less:(0,o.K2)((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:(0,o.K2)((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,o.K2)((function(){var t=this.match;if(t.length<20){t+=this._input.substr(0,20-t.length)}return(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:(0,o.K2)((function(){var t=this.pastInput();var e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:(0,o.K2)((function(t,e){var r,a,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};if(this.options.ranges){s.yylloc.range=this.yylloc.range.slice(0)}}a=t[0].match(/(?:\r\n?|\n).*/g);if(a){this.yylineno+=a.length}this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.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;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._backtrack=false;this._input=this._input.slice(t[0].length);this.matched+=t[0];r=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input){this.done=false}if(r){return r}else if(this._backtrack){for(var i in s){this[i]=s[i]}return false}return false}),"test_match"),next:(0,o.K2)((function(){if(this.done){return this.EOF}if(!this._input){this.done=true}var t,e,r,a;if(!this._more){this.yytext="";this.match=""}var s=this._currentRules();for(var i=0;ie[0].length)){e=r;a=i;if(this.options.backtrack_lexer){t=this.test_match(r,s[i]);if(t!==false){return t}else if(this._backtrack){e=false;continue}else{return false}}else if(!this.options.flex){break}}}if(e){t=this.test_match(e,s[a]);if(t!==false){return t}return false}if(this._input===""){return this.EOF}else{return this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}}),"next"),lex:(0,o.K2)((function t(){var e=this.next();if(e){return e}else{return this.lex()}}),"lex"),begin:(0,o.K2)((function t(e){this.conditionStack.push(e)}),"begin"),popState:(0,o.K2)((function t(){var e=this.conditionStack.length-1;if(e>0){return this.conditionStack.pop()}else{return this.conditionStack[0]}}),"popState"),_currentRules:(0,o.K2)((function t(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules}else{return this.conditions["INITIAL"].rules}}),"_currentRules"),topState:(0,o.K2)((function t(e){e=this.conditionStack.length-1-Math.abs(e||0);if(e>=0){return this.conditionStack[e]}else{return"INITIAL"}}),"topState"),pushState:(0,o.K2)((function t(e){this.begin(e)}),"pushState"),stateStackSize:(0,o.K2)((function t(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:(0,o.K2)((function t(e,r,a,s){var i=s;switch(a){case 0:return 10;break;case 1:e.getLogger().debug("Found space-block");return 31;break;case 2:e.getLogger().debug("Found nl-block");return 31;break;case 3:e.getLogger().debug("Found space-block");return 29;break;case 4:e.getLogger().debug(".",r.yytext);break;case 5:e.getLogger().debug("_",r.yytext);break;case 6:return 5;break;case 7:r.yytext=-1;return 28;break;case 8:r.yytext=r.yytext.replace(/columns\s+/,"");e.getLogger().debug("COLUMNS (LEX)",r.yytext);return 28;break;case 9:this.pushState("md_string");break;case 10:return"MD_STR";break;case 11:this.popState();break;case 12:this.pushState("string");break;case 13:e.getLogger().debug("LEX: POPPING STR:",r.yytext);this.popState();break;case 14:e.getLogger().debug("LEX: STR end:",r.yytext);return"STR";break;case 15:r.yytext=r.yytext.replace(/space\:/,"");e.getLogger().debug("SPACE NUM (LEX)",r.yytext);return 21;break;case 16:r.yytext="1";e.getLogger().debug("COLUMNS (LEX)",r.yytext);return 21;break;case 17:return 43;break;case 18:return"LINKSTYLE";break;case 19:return"INTERPOLATE";break;case 20:this.pushState("CLASSDEF");return 40;break;case 21:this.popState();this.pushState("CLASSDEFID");return"DEFAULT_CLASSDEF_ID";break;case 22:this.popState();this.pushState("CLASSDEFID");return 41;break;case 23:this.popState();return 42;break;case 24:this.pushState("CLASS");return 44;break;case 25:this.popState();this.pushState("CLASS_STYLE");return 45;break;case 26:this.popState();return 46;break;case 27:this.pushState("STYLE_STMNT");return 47;break;case 28:this.popState();this.pushState("STYLE_DEFINITION");return 48;break;case 29:this.popState();return 49;break;case 30:this.pushState("acc_title");return"acc_title";break;case 31:this.popState();return"acc_title_value";break;case 32:this.pushState("acc_descr");return"acc_descr";break;case 33:this.popState();return"acc_descr_value";break;case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";break;case 37:return 30;break;case 38:this.popState();e.getLogger().debug("Lex: ((");return"NODE_DEND";break;case 39:this.popState();e.getLogger().debug("Lex: ((");return"NODE_DEND";break;case 40:this.popState();e.getLogger().debug("Lex: ))");return"NODE_DEND";break;case 41:this.popState();e.getLogger().debug("Lex: ((");return"NODE_DEND";break;case 42:this.popState();e.getLogger().debug("Lex: ((");return"NODE_DEND";break;case 43:this.popState();e.getLogger().debug("Lex: (-");return"NODE_DEND";break;case 44:this.popState();e.getLogger().debug("Lex: -)");return"NODE_DEND";break;case 45:this.popState();e.getLogger().debug("Lex: ((");return"NODE_DEND";break;case 46:this.popState();e.getLogger().debug("Lex: ]]");return"NODE_DEND";break;case 47:this.popState();e.getLogger().debug("Lex: (");return"NODE_DEND";break;case 48:this.popState();e.getLogger().debug("Lex: ])");return"NODE_DEND";break;case 49:this.popState();e.getLogger().debug("Lex: /]");return"NODE_DEND";break;case 50:this.popState();e.getLogger().debug("Lex: /]");return"NODE_DEND";break;case 51:this.popState();e.getLogger().debug("Lex: )]");return"NODE_DEND";break;case 52:this.popState();e.getLogger().debug("Lex: )");return"NODE_DEND";break;case 53:this.popState();e.getLogger().debug("Lex: ]>");return"NODE_DEND";break;case 54:this.popState();e.getLogger().debug("Lex: ]");return"NODE_DEND";break;case 55:e.getLogger().debug("Lexa: -)");this.pushState("NODE");return 36;break;case 56:e.getLogger().debug("Lexa: (-");this.pushState("NODE");return 36;break;case 57:e.getLogger().debug("Lexa: ))");this.pushState("NODE");return 36;break;case 58:e.getLogger().debug("Lexa: )");this.pushState("NODE");return 36;break;case 59:e.getLogger().debug("Lex: (((");this.pushState("NODE");return 36;break;case 60:e.getLogger().debug("Lexa: )");this.pushState("NODE");return 36;break;case 61:e.getLogger().debug("Lexa: )");this.pushState("NODE");return 36;break;case 62:e.getLogger().debug("Lexa: )");this.pushState("NODE");return 36;break;case 63:e.getLogger().debug("Lexc: >");this.pushState("NODE");return 36;break;case 64:e.getLogger().debug("Lexa: ([");this.pushState("NODE");return 36;break;case 65:e.getLogger().debug("Lexa: )");this.pushState("NODE");return 36;break;case 66:this.pushState("NODE");return 36;break;case 67:this.pushState("NODE");return 36;break;case 68:this.pushState("NODE");return 36;break;case 69:this.pushState("NODE");return 36;break;case 70:this.pushState("NODE");return 36;break;case 71:this.pushState("NODE");return 36;break;case 72:this.pushState("NODE");return 36;break;case 73:e.getLogger().debug("Lexa: [");this.pushState("NODE");return 36;break;case 74:this.pushState("BLOCK_ARROW");e.getLogger().debug("LEX ARR START");return 38;break;case 75:e.getLogger().debug("Lex: NODE_ID",r.yytext);return 32;break;case 76:e.getLogger().debug("Lex: EOF",r.yytext);return 8;break;case 77:this.pushState("md_string");break;case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";break;case 80:this.popState();break;case 81:e.getLogger().debug("Lex: Starting string");this.pushState("string");break;case 82:e.getLogger().debug("LEX ARR: Starting string");this.pushState("string");break;case 83:e.getLogger().debug("LEX: NODE_DESCR:",r.yytext);return"NODE_DESCR";break;case 84:e.getLogger().debug("LEX POPPING");this.popState();break;case 85:e.getLogger().debug("Lex: =>BAE");this.pushState("ARROW_DIR");break;case 86:r.yytext=r.yytext.replace(/^,\s*/,"");e.getLogger().debug("Lex (right): dir:",r.yytext);return"DIR";break;case 87:r.yytext=r.yytext.replace(/^,\s*/,"");e.getLogger().debug("Lex (left):",r.yytext);return"DIR";break;case 88:r.yytext=r.yytext.replace(/^,\s*/,"");e.getLogger().debug("Lex (x):",r.yytext);return"DIR";break;case 89:r.yytext=r.yytext.replace(/^,\s*/,"");e.getLogger().debug("Lex (y):",r.yytext);return"DIR";break;case 90:r.yytext=r.yytext.replace(/^,\s*/,"");e.getLogger().debug("Lex (up):",r.yytext);return"DIR";break;case 91:r.yytext=r.yytext.replace(/^,\s*/,"");e.getLogger().debug("Lex (down):",r.yytext);return"DIR";break;case 92:r.yytext="]>";e.getLogger().debug("Lex (ARROW_DIR end):",r.yytext);this.popState();this.popState();return"BLOCK_ARROW_END";break;case 93:e.getLogger().debug("Lex: LINK","#"+r.yytext+"#");return 15;break;case 94:e.getLogger().debug("Lex: LINK",r.yytext);return 15;break;case 95:e.getLogger().debug("Lex: LINK",r.yytext);return 15;break;case 96:e.getLogger().debug("Lex: LINK",r.yytext);return 15;break;case 97:e.getLogger().debug("Lex: START_LINK",r.yytext);this.pushState("LLABEL");return 16;break;case 98:e.getLogger().debug("Lex: START_LINK",r.yytext);this.pushState("LLABEL");return 16;break;case 99:e.getLogger().debug("Lex: START_LINK",r.yytext);this.pushState("LLABEL");return 16;break;case 100:this.pushState("md_string");break;case 101:e.getLogger().debug("Lex: Starting string");this.pushState("string");return"LINK_LABEL";break;case 102:this.popState();e.getLogger().debug("Lex: LINK","#"+r.yytext+"#");return 15;break;case 103:this.popState();e.getLogger().debug("Lex: LINK",r.yytext);return 15;break;case 104:this.popState();e.getLogger().debug("Lex: LINK",r.yytext);return 15;break;case 105:e.getLogger().debug("Lex: COLON",r.yytext);r.yytext=r.yytext.slice(1);return 27;break}}),"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:false},STYLE_STMNT:{rules:[28],inclusive:false},CLASSDEFID:{rules:[23],inclusive:false},CLASSDEF:{rules:[21,22],inclusive:false},CLASS_STYLE:{rules:[26],inclusive:false},CLASS:{rules:[25],inclusive:false},LLABEL:{rules:[100,101,102,103,104],inclusive:false},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:false},BLOCK_ARROW:{rules:[77,82,85],inclusive:false},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:false},md_string:{rules:[10,11,79,80],inclusive:false},space:{rules:[],inclusive:false},string:{rules:[13,14,83,84],inclusive:false},acc_descr_multiline:{rules:[35,36],inclusive:false},acc_descr:{rules:[33],inclusive:false},acc_title:{rules:[31],inclusive:false},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:true}}};return t}();b.lexer=x;function m(){this.yy={}}(0,o.K2)(m,"Parser");m.prototype=b;b.Parser=m;return new m}();g.parser=g;var p=g;var y=new Map;var f=[];var b=new Map;var x="color";var m="fill";var k="bgFill";var w=",";var L=(0,o.D7)();var _=new Map;var v=(0,o.K2)((t=>o.Y2.sanitizeText(t,L)),"sanitizeText");var S=(0,o.K2)((function(t,e=""){let r=_.get(t);if(!r){r={id:t,styles:[],textStyles:[]};_.set(t,r)}if(e!==void 0&&e!==null){e.split(w).forEach((t=>{const e=t.replace(/([^;]*);/,"$1").trim();if(RegExp(x).exec(t)){const t=e.replace(m,k);const a=t.replace(x,m);r.textStyles.push(a)}r.styles.push(e)}))}}),"addStyleClass");var E=(0,o.K2)((function(t,e=""){const r=y.get(t);if(e!==void 0&&e!==null){r.styles=e.split(w)}}),"addStyle2Node");var D=(0,o.K2)((function(t,e){t.split(",").forEach((function(t){let r=y.get(t);if(r===void 0){const e=t.trim();r={id:e,type:"na",children:[]};y.set(e,r)}if(!r.classes){r.classes=[]}r.classes.push(e)}))}),"setCssClass");var N=(0,o.K2)(((t,e)=>{const r=t.flat();const a=[];for(const s of r){if(s.label){s.label=v(s.label)}if(s.type==="classDef"){S(s.id,s.css);continue}if(s.type==="applyClass"){D(s.id,s?.styleClass??"");continue}if(s.type==="applyStyles"){if(s?.stylesStr){E(s.id,s?.stylesStr)}continue}if(s.type==="column-setting"){e.columns=s.columns??-1}else if(s.type==="edge"){const t=(b.get(s.id)??0)+1;b.set(s.id,t);s.id=t+"-"+s.id;f.push(s)}else{if(!s.label){if(s.type==="composite"){s.label=""}else{s.label=s.id}}const t=y.get(s.id);if(t===void 0){y.set(s.id,s)}else{if(s.type!=="na"){t.type=s.type}if(s.label!==s.id){t.label=s.label}}if(s.children){N(s.children,s)}if(s.type==="space"){const t=s.width??1;for(let e=0;e{o.Rm.debug("Clear called");(0,o.IU)();R={id:"root",type:"composite",children:[],columns:-1};y=new Map([["root",R]]);K=[];_=new Map;f=[];b=new Map}),"clear");function T(t){o.Rm.debug("typeStr2Type",t);switch(t){case"[]":return"square";case"()":o.Rm.debug("we have a round");return"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}(0,o.K2)(T,"typeStr2Type");function $(t){o.Rm.debug("typeStr2Type",t);switch(t){case"==":return"thick";default:return"normal"}}(0,o.K2)($,"edgeTypeStr2Type");function A(t){switch(t.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}(0,o.K2)(A,"edgeStrToEdgeData");var O=0;var I=(0,o.K2)((()=>{O++;return"id-"+Math.random().toString(36).substr(2,12)+"-"+O}),"generateId");var B=(0,o.K2)((t=>{R.children=t;N(t,R);K=R.children}),"setHierarchy");var z=(0,o.K2)((t=>{const e=y.get(t);if(!e){return-1}if(e.columns){return e.columns}if(!e.children){return-1}return e.children.length}),"getColumns");var M=(0,o.K2)((()=>[...y.values()]),"getBlocksFlat");var P=(0,o.K2)((()=>K||[]),"getBlocks");var Y=(0,o.K2)((()=>f),"getEdges");var j=(0,o.K2)((t=>y.get(t)),"getBlock");var F=(0,o.K2)((t=>{y.set(t.id,t)}),"setBlock");var W=(0,o.K2)((()=>console),"getLogger");var X=(0,o.K2)((function(){return _}),"getClasses");var H={getConfig:(0,o.K2)((()=>(0,o.zj)().block),"getConfig"),typeStr2Type:T,edgeTypeStr2Type:$,edgeStrToEdgeData:A,getLogger:W,getBlocksFlat:M,getBlocks:P,getEdges:Y,setHierarchy:B,getBlock:j,setBlock:F,getColumns:z,getClasses:X,clear:C,generateId:I};var U=H;var Z=(0,o.K2)(((t,e)=>{const r=c.A;const a=r(t,"r");const s=r(t,"g");const i=r(t,"b");return h.A(a,s,i,e)}),"fade");var q=(0,o.K2)((t=>`.label {\n font-family: ${t.fontFamily};\n color: ${t.nodeTextColor||t.textColor};\n }\n .cluster-label text {\n fill: ${t.titleColor};\n }\n .cluster-label span,p {\n color: ${t.titleColor};\n }\n\n\n\n .label text,span,p {\n fill: ${t.nodeTextColor||t.textColor};\n color: ${t.nodeTextColor||t.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${t.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${t.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${t.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${t.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${t.edgeLabelBackground};\n fill: ${t.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${Z(t.edgeLabelBackground,.5)};\n // background-color:\n }\n\n .node .cluster {\n // fill: ${Z(t.mainBkg,.5)};\n fill: ${Z(t.clusterBkg,.5)};\n stroke: ${Z(t.clusterBorder,.2)};\n box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${t.titleColor};\n }\n\n .cluster span,p {\n color: ${t.titleColor};\n }\n /* .cluster div {\n color: ${t.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${t.fontFamily};\n font-size: 12px;\n background: ${t.tertiaryColor};\n border: 1px solid ${t.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n }\n`),"getStyles");var G=q;var J=(0,o.K2)(((t,e,r,a)=>{e.forEach((e=>{ot[e](t,r,a)}))}),"insertMarkers");var V=(0,o.K2)(((t,e,r)=>{o.Rm.trace("Making markers for ",r);t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z");t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")}),"extension");var Q=(0,o.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z");t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"composition");var tt=(0,o.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z");t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"aggregation");var et=(0,o.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z");t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}),"dependency");var rt=(0,o.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6);t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)}),"lollipop");var at=(0,o.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0");t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")}),"point");var st=(0,o.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0");t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")}),"circle");var it=(0,o.K2)(((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0");t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")}),"cross");var nt=(0,o.K2)(((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}),"barb");var ot={extension:V,composition:Q,aggregation:tt,dependency:et,lollipop:rt,point:at,circle:st,cross:it,barb:nt};var lt=J;var ct=(0,o.D7)()?.block?.padding??8;function ht(t,e){if(t===0||!Number.isInteger(t)){throw new Error("Columns must be an integer !== 0.")}if(e<0||!Number.isInteger(e)){throw new Error("Position must be a non-negative integer."+e)}if(t<0){return{px:e,py:0}}if(t===1){return{px:0,py:e}}const r=e%t;const a=Math.floor(e/t);return{px:r,py:a}}(0,o.K2)(ht,"calculateBlockPosition");var dt=(0,o.K2)((t=>{let e=0;let r=0;for(const a of t.children){const{width:s,height:i,x:n,y:l}=a.size??{width:0,height:0,x:0,y:0};o.Rm.debug("getMaxChildSize abc95 child:",a.id,"width:",s,"height:",i,"x:",n,"y:",l,a.type);if(a.type==="space"){continue}if(s>e){e=s/(t.widthInColumns??1)}if(i>r){r=i}}return{width:e,height:r}}),"getMaxChildSize");function ut(t,e,r=0,a=0){o.Rm.debug("setBlockSizes abc95 (start)",t.id,t?.size?.x,"block width =",t?.size,"sieblingWidth",r);if(!t?.size?.width){t.size={width:r,height:a,x:0,y:0}}let s=0;let i=0;if(t.children?.length>0){for(const r of t.children){ut(r,e)}const n=dt(t);s=n.width;i=n.height;o.Rm.debug("setBlockSizes abc95 maxWidth of",t.id,":s children is ",s,i);for(const e of t.children){if(e.size){o.Rm.debug(`abc95 Setting size of children of ${t.id} id=${e.id} ${s} ${i} ${JSON.stringify(e.size)}`);e.size.width=s*(e.widthInColumns??1)+ct*((e.widthInColumns??1)-1);e.size.height=i;e.size.x=0;e.size.y=0;o.Rm.debug(`abc95 updating size of ${t.id} children child:${e.id} maxWidth:${s} maxHeight:${i}`)}}for(const r of t.children){ut(r,e,s,i)}const l=t.columns??-1;let c=0;for(const e of t.children){c+=e.widthInColumns??1}let h=t.children.length;if(l>0&&l0?Math.min(t.children.length,l):t.children.length;if(e>0){const r=(u-e*ct-ct)/e;o.Rm.debug("abc95 (growing to fit) width",t.id,u,t.size?.width,r);for(const e of t.children){if(e.size){e.size.width=r}}}}t.size={width:u,height:g,x:0,y:0}}o.Rm.debug("setBlockSizes abc94 (done)",t.id,t?.size?.x,t?.size?.width,t?.size?.y,t?.size?.height)}(0,o.K2)(ut,"setBlockSizes");function gt(t,e){o.Rm.debug(`abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`);const r=t.columns??-1;o.Rm.debug("layoutBlocks columns abc95",t.id,"=>",r,t);if(t.children&&t.children.length>0){const a=t?.children[0]?.size?.width??0;const s=t.children.length*a+(t.children.length-1)*ct;o.Rm.debug("widthOfChildren 88",s,"posX");let i=0;o.Rm.debug("abc91 block?.size?.x",t.id,t?.size?.x);let n=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-ct;let l=0;for(const c of t.children){const a=t;if(!c.size){continue}const{width:s,height:h}=c.size;const{px:d,py:u}=ht(r,i);if(u!=l){l=u;n=t?.size?.x?t?.size?.x+(-t?.size?.width/2||0):-ct;o.Rm.debug("New row in layout for block",t.id," and child ",c.id,l)}o.Rm.debug(`abc89 layout blocks (child) id: ${c.id} Pos: ${i} (px, py) ${d},${u} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${s}${ct}`);if(a.size){const t=s/2;c.size.x=n+ct+t;o.Rm.debug(`abc91 layout blocks (calc) px, pyid:${c.id} startingPos=X${n} new startingPosX${c.size.x} ${t} padding=${ct} width=${s} halfWidth=${t} => x:${c.size.x} y:${c.size.y} ${c.widthInColumns} (width * (child?.w || 1)) / 2 ${s*(c?.widthInColumns??1)/2}`);n=c.size.x+t;c.size.y=a.size.y-a.size.height/2+u*(h+ct)+h/2+ct;o.Rm.debug(`abc88 layout blocks (calc) px, pyid:${c.id}startingPosX${n}${ct}${t}=>x:${c.size.x}y:${c.size.y}${c.widthInColumns}(width * (child?.w || 1)) / 2${s*(c?.widthInColumns??1)/2}`)}if(c.children){gt(c,e)}i+=c?.widthInColumns??1;o.Rm.debug("abc88 columnsPos",c,i)}}o.Rm.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`)}(0,o.K2)(gt,"layoutBlocks");function pt(t,{minX:e,minY:r,maxX:a,maxY:s}={minX:0,minY:0,maxX:0,maxY:0}){if(t.size&&t.id!=="root"){const{x:i,y:n,width:o,height:l}=t.size;if(i-o/2a){a=i+o/2}if(n+l/2>s){s=n+l/2}}if(t.children){for(const i of t.children){({minX:e,minY:r,maxX:a,maxY:s}=pt(i,{minX:e,minY:r,maxX:a,maxY:s}))}}return{minX:e,minY:r,maxX:a,maxY:s}}(0,o.K2)(pt,"findBounds");function yt(t){const e=t.getBlock("root");if(!e){return}ut(e,t,0,0);gt(e,t);o.Rm.debug("getBlocks",JSON.stringify(e,null,2));const{minX:r,minY:a,maxX:s,maxY:i}=pt(e);const n=i-a;const l=s-r;return{x:r,y:a,width:l,height:n}}(0,o.K2)(yt,"layout");function ft(t,e){if(e){t.attr("style",e)}}(0,o.K2)(ft,"applyStyle");function bt(t){const e=(0,d.Ltv)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject"));const r=e.append("xhtml:div");const a=t.label;const s=t.isNode?"nodeLabel":"edgeLabel";const i=r.append("span");i.html(a);ft(i,t.labelStyle);i.attr("class",s);ft(r,t.labelStyle);r.style("display","inline-block");r.style("white-space","nowrap");r.attr("xmlns","http://www.w3.org/1999/xhtml");return e.node()}(0,o.K2)(bt,"addHtmlLabel");var xt=(0,o.K2)(((t,e,r,a)=>{let s=t||"";if(typeof s==="object"){s=s[0]}if((0,o._3)((0,o.D7)().flowchart.htmlLabels)){s=s.replace(/\\n|\n/g,"
");o.Rm.debug("vertexText"+s);const t={isNode:a,label:(0,i.hE)((0,n.Sm)(s)),labelStyle:e.replace("fill:","color:")};let r=bt(t);return r}else{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));let a=[];if(typeof s==="string"){a=s.split(/\\n|\n|/gi)}else if(Array.isArray(s)){a=s}else{a=[]}for(const e of a){const a=document.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");a.setAttribute("dy","1em");a.setAttribute("x","0");if(r){a.setAttribute("class","title-row")}else{a.setAttribute("class","row")}a.textContent=e.trim();t.appendChild(a)}return t}}),"createLabel");var mt=xt;var kt=(0,o.K2)(((t,e,r,a,s)=>{if(e.arrowTypeStart){Lt(t,"start",e.arrowTypeStart,r,a,s)}if(e.arrowTypeEnd){Lt(t,"end",e.arrowTypeEnd,r,a,s)}}),"addEdgeMarkers");var wt={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"};var Lt=(0,o.K2)(((t,e,r,a,s,i)=>{const n=wt[r];if(!n){o.Rm.warn(`Unknown arrow type: ${r}`);return}const l=e==="start"?"Start":"End";t.attr(`marker-${e}`,`url(${a}#${s}_${i}-${n}${l})`)}),"addEdgeMarker");var _t={};var vt={};var St=(0,o.K2)(((t,e)=>{const r=(0,o.D7)();const a=(0,o._3)(r.flowchart.htmlLabels);const s=e.labelType==="markdown"?(0,i.GZ)(t,e.label,{style:e.labelStyle,useHtmlLabels:a,addSvgBackground:true},r):mt(e.label,e.labelStyle);const n=t.insert("g").attr("class","edgeLabel");const l=n.insert("g").attr("class","label");l.node().appendChild(s);let c=s.getBBox();if(a){const t=s.children[0];const e=(0,d.Ltv)(s);c=t.getBoundingClientRect();e.attr("width",c.width);e.attr("height",c.height)}l.attr("transform","translate("+-c.width/2+", "+-c.height/2+")");_t[e.id]=n;e.width=c.width;e.height=c.height;let h;if(e.startLabelLeft){const r=mt(e.startLabelLeft,e.labelStyle);const a=t.insert("g").attr("class","edgeTerminals");const s=a.insert("g").attr("class","inner");h=s.node().appendChild(r);const i=r.getBBox();s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")");if(!vt[e.id]){vt[e.id]={}}vt[e.id].startLeft=a;Et(h,e.startLabelLeft)}if(e.startLabelRight){const r=mt(e.startLabelRight,e.labelStyle);const a=t.insert("g").attr("class","edgeTerminals");const s=a.insert("g").attr("class","inner");h=a.node().appendChild(r);s.node().appendChild(r);const i=r.getBBox();s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")");if(!vt[e.id]){vt[e.id]={}}vt[e.id].startRight=a;Et(h,e.startLabelRight)}if(e.endLabelLeft){const r=mt(e.endLabelLeft,e.labelStyle);const a=t.insert("g").attr("class","edgeTerminals");const s=a.insert("g").attr("class","inner");h=s.node().appendChild(r);const i=r.getBBox();s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")");a.node().appendChild(r);if(!vt[e.id]){vt[e.id]={}}vt[e.id].endLeft=a;Et(h,e.endLabelLeft)}if(e.endLabelRight){const r=mt(e.endLabelRight,e.labelStyle);const a=t.insert("g").attr("class","edgeTerminals");const s=a.insert("g").attr("class","inner");h=s.node().appendChild(r);const i=r.getBBox();s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")");a.node().appendChild(r);if(!vt[e.id]){vt[e.id]={}}vt[e.id].endRight=a;Et(h,e.endLabelRight)}return s}),"insertEdgeLabel");function Et(t,e){if((0,o.D7)().flowchart.htmlLabels&&t){t.style.width=e.length*9+"px";t.style.height="12px"}}(0,o.K2)(Et,"setTerminalWidth");var Dt=(0,o.K2)(((t,e)=>{o.Rm.debug("Moving label abc88 ",t.id,t.label,_t[t.id],e);let r=e.updatedPath?e.updatedPath:e.originalPath;const a=(0,o.D7)();const{subGraphTitleTotalMargin:i}=(0,s.O)(a);if(t.label){const a=_t[t.id];let s=t.x;let l=t.y;if(r){const a=n._K.calcLabelPosition(r);o.Rm.debug("Moving label "+t.label+" from (",s,",",l,") to (",a.x,",",a.y,") abc88");if(e.updatedPath){s=a.x;l=a.y}}a.attr("transform",`translate(${s}, ${l+i/2})`)}if(t.startLabelLeft){const e=vt[t.id].startLeft;let a=t.x;let s=t.y;if(r){const e=n._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);a=e.x;s=e.y}e.attr("transform",`translate(${a}, ${s})`)}if(t.startLabelRight){const e=vt[t.id].startRight;let a=t.x;let s=t.y;if(r){const e=n._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);a=e.x;s=e.y}e.attr("transform",`translate(${a}, ${s})`)}if(t.endLabelLeft){const e=vt[t.id].endLeft;let a=t.x;let s=t.y;if(r){const e=n._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);a=e.x;s=e.y}e.attr("transform",`translate(${a}, ${s})`)}if(t.endLabelRight){const e=vt[t.id].endRight;let a=t.x;let s=t.y;if(r){const e=n._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);a=e.x;s=e.y}e.attr("transform",`translate(${a}, ${s})`)}}),"positionEdgeLabel");var Nt=(0,o.K2)(((t,e)=>{const r=t.x;const a=t.y;const s=Math.abs(e.x-r);const i=Math.abs(e.y-a);const n=t.width/2;const o=t.height/2;if(s>=n||i>=o){return true}return false}),"outsideNode");var Kt=(0,o.K2)(((t,e,r)=>{o.Rm.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(r)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const a=t.x;const s=t.y;const i=Math.abs(a-r.x);const n=t.width/2;let l=r.xMath.abs(a-e.x)*c){let t=r.y{o.Rm.debug("abc88 cutPathAtIntersect",t,e);let r=[];let a=t[0];let s=false;t.forEach((t=>{if(!Nt(e,t)&&!s){const i=Kt(e,a,t);let n=false;r.forEach((t=>{n=n||t.x===i.x&&t.y===i.y}));if(!r.some((t=>t.x===i.x&&t.y===i.y))){r.push(i)}s=true}else{a=t;if(!s){r.push(t)}}}));return r}),"cutPathAtIntersect");var Ct=(0,o.K2)((function(t,e,r,s,i,n,l){let c=r.points;o.Rm.debug("abc88 InsertEdge: edge=",r,"e=",e);let h=false;const u=n.node(e.v);var g=n.node(e.w);if(g?.intersect&&u?.intersect){c=c.slice(1,r.points.length-1);c.unshift(u.intersect(c[0]));c.push(g.intersect(c[c.length-1]))}if(r.toCluster){o.Rm.debug("to cluster abc88",s[r.toCluster]);c=Rt(r.points,s[r.toCluster].node);h=true}if(r.fromCluster){o.Rm.debug("from cluster abc88",s[r.fromCluster]);c=Rt(c.reverse(),s[r.fromCluster].node).reverse();h=true}const p=c.filter((t=>!Number.isNaN(t.y)));let y=d.qrM;if(r.curve&&(i==="graph"||i==="flowchart")){y=r.curve}const{x:f,y:b}=(0,a.R)(r);const x=(0,d.n8j)().x(f).y(b).curve(y);let m;switch(r.thickness){case"normal":m="edge-thickness-normal";break;case"thick":m="edge-thickness-thick";break;case"invisible":m="edge-thickness-thick";break;default:m=""}switch(r.pattern){case"solid":m+=" edge-pattern-solid";break;case"dotted":m+=" edge-pattern-dotted";break;case"dashed":m+=" edge-pattern-dashed";break}const k=t.append("path").attr("d",x(p)).attr("id",r.id).attr("class"," "+m+(r.classes?" "+r.classes:"")).attr("style",r.style);let w="";if((0,o.D7)().flowchart.arrowMarkerAbsolute||(0,o.D7)().state.arrowMarkerAbsolute){w=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search;w=w.replace(/\(/g,"\\(");w=w.replace(/\)/g,"\\)")}kt(k,r,w,l,i);let L={};if(h){L.updatedPath=c}L.originalPath=r.points;return L}),"insertEdge");var Tt=(0,o.K2)((t=>{const e=new Set;for(const r of t){switch(r){case"x":e.add("right");e.add("left");break;case"y":e.add("up");e.add("down");break;default:e.add(r);break}}return e}),"expandAndDeduplicateDirections");var $t=(0,o.K2)(((t,e,r)=>{const a=Tt(t);const s=2;const i=e.height+2*r.padding;const n=i/s;const o=e.width+2*n+r.padding;const l=r.padding/2;if(a.has("right")&&a.has("left")&&a.has("up")&&a.has("down")){return[{x:0,y:0},{x:n,y:0},{x:o/2,y:2*l},{x:o-n,y:0},{x:o,y:0},{x:o,y:-i/3},{x:o+2*l,y:-i/2},{x:o,y:-2*i/3},{x:o,y:-i},{x:o-n,y:-i},{x:o/2,y:-i-2*l},{x:n,y:-i},{x:0,y:-i},{x:0,y:-2*i/3},{x:-2*l,y:-i/2},{x:0,y:-i/3}]}if(a.has("right")&&a.has("left")&&a.has("up")){return[{x:n,y:0},{x:o-n,y:0},{x:o,y:-i/2},{x:o-n,y:-i},{x:n,y:-i},{x:0,y:-i/2}]}if(a.has("right")&&a.has("left")&&a.has("down")){return[{x:0,y:0},{x:n,y:-i},{x:o-n,y:-i},{x:o,y:0}]}if(a.has("right")&&a.has("up")&&a.has("down")){return[{x:0,y:0},{x:o,y:-n},{x:o,y:-i+n},{x:0,y:-i}]}if(a.has("left")&&a.has("up")&&a.has("down")){return[{x:o,y:0},{x:0,y:-n},{x:0,y:-i+n},{x:o,y:-i}]}if(a.has("right")&&a.has("left")){return[{x:n,y:0},{x:n,y:-l},{x:o-n,y:-l},{x:o-n,y:0},{x:o,y:-i/2},{x:o-n,y:-i},{x:o-n,y:-i+l},{x:n,y:-i+l},{x:n,y:-i},{x:0,y:-i/2}]}if(a.has("up")&&a.has("down")){return[{x:o/2,y:0},{x:0,y:-l},{x:n,y:-l},{x:n,y:-i+l},{x:0,y:-i+l},{x:o/2,y:-i},{x:o,y:-i+l},{x:o-n,y:-i+l},{x:o-n,y:-l},{x:o,y:-l}]}if(a.has("right")&&a.has("up")){return[{x:0,y:0},{x:o,y:-n},{x:0,y:-i}]}if(a.has("right")&&a.has("down")){return[{x:0,y:0},{x:o,y:0},{x:0,y:-i}]}if(a.has("left")&&a.has("up")){return[{x:o,y:0},{x:0,y:-n},{x:o,y:-i}]}if(a.has("left")&&a.has("down")){return[{x:o,y:0},{x:0,y:0},{x:o,y:-i}]}if(a.has("right")){return[{x:n,y:-l},{x:n,y:-l},{x:o-n,y:-l},{x:o-n,y:0},{x:o,y:-i/2},{x:o-n,y:-i},{x:o-n,y:-i+l},{x:n,y:-i+l},{x:n,y:-i+l}]}if(a.has("left")){return[{x:n,y:0},{x:n,y:-l},{x:o-n,y:-l},{x:o-n,y:-i+l},{x:n,y:-i+l},{x:n,y:-i},{x:0,y:-i/2}]}if(a.has("up")){return[{x:n,y:-l},{x:n,y:-i+l},{x:0,y:-i+l},{x:o/2,y:-i},{x:o,y:-i+l},{x:o-n,y:-i+l},{x:o-n,y:-l}]}if(a.has("down")){return[{x:o/2,y:0},{x:0,y:-l},{x:n,y:-l},{x:n,y:-i+l},{x:o-n,y:-i+l},{x:o-n,y:-l},{x:o,y:-l}]}return[{x:0,y:0}]}),"getArrowPoints");function At(t,e){return t.intersect(e)}(0,o.K2)(At,"intersectNode");var Ot=At;function It(t,e,r,a){var s=t.x;var i=t.y;var n=s-a.x;var o=i-a.y;var l=Math.sqrt(e*e*o*o+r*r*n*n);var c=Math.abs(e*r*n/l);if(a.x0}(0,o.K2)(Yt,"sameSign");var jt=Pt;var Ft=Wt;function Wt(t,e,r){var a=t.x;var s=t.y;var i=[];var n=Number.POSITIVE_INFINITY;var o=Number.POSITIVE_INFINITY;if(typeof e.forEach==="function"){e.forEach((function(t){n=Math.min(n,t.x);o=Math.min(o,t.y)}))}else{n=Math.min(n,e.x);o=Math.min(o,e.y)}var l=a-t.width/2-n;var c=s-t.height/2-o;for(var h=0;h1){i.sort((function(t,e){var a=t.x-r.x;var s=t.y-r.y;var i=Math.sqrt(a*a+s*s);var n=e.x-r.x;var o=e.y-r.y;var l=Math.sqrt(n*n+o*o);return i{var r=t.x;var a=t.y;var s=e.x-r;var i=e.y-a;var n=t.width/2;var o=t.height/2;var l,c;if(Math.abs(i)*n>Math.abs(s)*o){if(i<0){o=-o}l=i===0?0:o*s/i;c=o}else{if(s<0){n=-n}l=n;c=s===0?0:n*i/s}return{x:r+l,y:a+c}}),"intersectRect");var Ht=Xt;var Ut={node:Ot,circle:Mt,ellipse:Bt,polygon:Ft,rect:Ht};var Zt=(0,o.K2)((async(t,e,r,a)=>{const s=(0,o.D7)();let l;const c=e.useHtmlLabels||(0,o._3)(s.flowchart.htmlLabels);if(!r){l="node default"}else{l=r}const h=t.insert("g").attr("class",l).attr("id",e.domId||e.id);const u=h.insert("g").attr("class","label").attr("style",e.labelStyle);let g;if(e.labelText===void 0){g=""}else{g=typeof e.labelText==="string"?e.labelText:e.labelText[0]}const p=u.node();let y;if(e.labelType==="markdown"){y=(0,i.GZ)(u,(0,o.jZ)((0,n.Sm)(g),s),{useHtmlLabels:c,width:e.width||s.flowchart.wrappingWidth,classes:"markdown-node-label"},s)}else{y=p.appendChild(mt((0,o.jZ)((0,n.Sm)(g),s),e.labelStyle,false,a))}let f=y.getBBox();const b=e.padding/2;if((0,o._3)(s.flowchart.htmlLabels)){const t=y.children[0];const e=(0,d.Ltv)(y);const r=t.getElementsByTagName("img");if(r){const t=g.replace(/]*>/g,"").trim()==="";await Promise.all([...r].map((e=>new Promise((r=>{function a(){e.style.display="flex";e.style.flexDirection="column";if(t){const t=s.fontSize?s.fontSize:window.getComputedStyle(document.body).fontSize;const r=5;const a=parseInt(t,10)*r+"px";e.style.minWidth=a;e.style.maxWidth=a}else{e.style.width="100%"}r(e)}(0,o.K2)(a,"setupImage");setTimeout((()=>{if(e.complete){a()}}));e.addEventListener("error",a);e.addEventListener("load",a)})))))}f=t.getBoundingClientRect();e.attr("width",f.width);e.attr("height",f.height)}if(c){u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")")}else{u.attr("transform","translate(0, "+-f.height/2+")")}if(e.centerLabel){u.attr("transform","translate("+-f.width/2+", "+-f.height/2+")")}u.insert("rect",":first-child");return{shapeSvg:h,bbox:f,halfPadding:b,label:u}}),"labelHelper");var qt=(0,o.K2)(((t,e)=>{const r=e.node().getBBox();t.width=r.width;t.height=r.height}),"updateNodeBounds");function Gt(t,e,r,a){return t.insert("polygon",":first-child").attr("points",a.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}(0,o.K2)(Gt,"insertPolygonShape");var Jt=(0,o.K2)((async(t,e)=>{const r=e.useHtmlLabels||(0,o.D7)().flowchart.htmlLabels;if(!r){e.centerLabel=true}const{shapeSvg:a,bbox:s,halfPadding:i}=await Zt(t,e,"node "+e.classes,true);o.Rm.info("Classes = ",e.classes);const n=a.insert("rect",":first-child");n.attr("rx",e.rx).attr("ry",e.ry).attr("x",-s.width/2-i).attr("y",-s.height/2-i).attr("width",s.width+e.padding).attr("height",s.height+e.padding);qt(e,n);e.intersect=function(t){return Ut.rect(e,t)};return a}),"note");var Vt=Jt;var Qt=(0,o.K2)((t=>{if(t){return" "+t}return""}),"formatClass");var te=(0,o.K2)(((t,e)=>`${e?e:"node default"}${Qt(t.classes)} ${Qt(t.class)}`),"getClassesFromNode");var ee=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Zt(t,e,te(e,void 0),true);const s=a.width+e.padding;const i=a.height+e.padding;const n=s+i;const l=[{x:n/2,y:0},{x:n,y:-n/2},{x:n/2,y:-n},{x:0,y:-n/2}];o.Rm.info("Question main (Circle)");const c=Gt(r,n,n,l);c.attr("style",e.style);qt(e,c);e.intersect=function(t){o.Rm.warn("Intersect called");return Ut.polygon(e,l,t)};return r}),"question");var re=(0,o.K2)(((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);const a=28;const s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}];const i=r.insert("polygon",":first-child").attr("points",s.map((function(t){return t.x+","+t.y})).join(" "));i.attr("class","state-start").attr("r",7).attr("width",28).attr("height",28);e.width=28;e.height=28;e.intersect=function(t){return Ut.circle(e,14,t)};return r}),"choice");var ae=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Zt(t,e,te(e,void 0),true);const s=4;const i=a.height+e.padding;const n=i/s;const o=a.width+2*n+e.padding;const l=[{x:n,y:0},{x:o-n,y:0},{x:o,y:-i/2},{x:o-n,y:-i},{x:n,y:-i},{x:0,y:-i/2}];const c=Gt(r,o,i,l);c.attr("style",e.style);qt(e,c);e.intersect=function(t){return Ut.polygon(e,l,t)};return r}),"hexagon");var se=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Zt(t,e,void 0,true);const s=2;const i=a.height+2*e.padding;const n=i/s;const o=a.width+2*n+e.padding;const l=$t(e.directions,a,e);const c=Gt(r,o,i,l);c.attr("style",e.style);qt(e,c);e.intersect=function(t){return Ut.polygon(e,l,t)};return r}),"block_arrow");var ie=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Zt(t,e,te(e,void 0),true);const s=a.width+e.padding;const i=a.height+e.padding;const n=[{x:-i/2,y:0},{x:s,y:0},{x:s,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}];const o=Gt(r,s,i,n);o.attr("style",e.style);e.width=s+i;e.height=i;e.intersect=function(t){return Ut.polygon(e,n,t)};return r}),"rect_left_inv_arrow");var ne=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Zt(t,e,te(e),true);const s=a.width+e.padding;const i=a.height+e.padding;const n=[{x:-2*i/6,y:0},{x:s-i/6,y:0},{x:s+2*i/6,y:-i},{x:i/6,y:-i}];const o=Gt(r,s,i,n);o.attr("style",e.style);qt(e,o);e.intersect=function(t){return Ut.polygon(e,n,t)};return r}),"lean_right");var oe=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Zt(t,e,te(e,void 0),true);const s=a.width+e.padding;const i=a.height+e.padding;const n=[{x:2*i/6,y:0},{x:s+i/6,y:0},{x:s-2*i/6,y:-i},{x:-i/6,y:-i}];const o=Gt(r,s,i,n);o.attr("style",e.style);qt(e,o);e.intersect=function(t){return Ut.polygon(e,n,t)};return r}),"lean_left");var le=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Zt(t,e,te(e,void 0),true);const s=a.width+e.padding;const i=a.height+e.padding;const n=[{x:-2*i/6,y:0},{x:s+2*i/6,y:0},{x:s-i/6,y:-i},{x:i/6,y:-i}];const o=Gt(r,s,i,n);o.attr("style",e.style);qt(e,o);e.intersect=function(t){return Ut.polygon(e,n,t)};return r}),"trapezoid");var ce=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Zt(t,e,te(e,void 0),true);const s=a.width+e.padding;const i=a.height+e.padding;const n=[{x:i/6,y:0},{x:s-i/6,y:0},{x:s+2*i/6,y:-i},{x:-2*i/6,y:-i}];const o=Gt(r,s,i,n);o.attr("style",e.style);qt(e,o);e.intersect=function(t){return Ut.polygon(e,n,t)};return r}),"inv_trapezoid");var he=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Zt(t,e,te(e,void 0),true);const s=a.width+e.padding;const i=a.height+e.padding;const n=[{x:0,y:0},{x:s+i/2,y:0},{x:s,y:-i/2},{x:s+i/2,y:-i},{x:0,y:-i}];const o=Gt(r,s,i,n);o.attr("style",e.style);qt(e,o);e.intersect=function(t){return Ut.polygon(e,n,t)};return r}),"rect_right_inv_arrow");var de=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Zt(t,e,te(e,void 0),true);const s=a.width+e.padding;const i=s/2;const n=i/(2.5+s/50);const o=a.height+n+e.padding;const l="M 0,"+n+" a "+i+","+n+" 0,0,0 "+s+" 0 a "+i+","+n+" 0,0,0 "+-s+" 0 l 0,"+o+" a "+i+","+n+" 0,0,0 "+s+" 0 l 0,"+-o;const c=r.attr("label-offset-y",n).insert("path",":first-child").attr("style",e.style).attr("d",l).attr("transform","translate("+-s/2+","+-(o/2+n)+")");qt(e,c);e.intersect=function(t){const r=Ut.rect(e,t);const a=r.x-e.x;if(i!=0&&(Math.abs(a)e.height/2-n)){let s=n*n*(1-a*a/(i*i));if(s!=0){s=Math.sqrt(s)}s=n-s;if(t.y-e.y>0){s=-s}r.y+=s}return r};return r}),"cylinder");var ue=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Zt(t,e,"node "+e.classes+" "+e.class,true);const i=r.insert("rect",":first-child");const n=e.positioned?e.width:a.width+e.padding;const l=e.positioned?e.height:a.height+e.padding;const c=e.positioned?-n/2:-a.width/2-s;const h=e.positioned?-l/2:-a.height/2-s;i.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",c).attr("y",h).attr("width",n).attr("height",l);if(e.props){const t=new Set(Object.keys(e.props));if(e.props.borders){ye(i,e.props.borders,n,l);t.delete("borders")}t.forEach((t=>{o.Rm.warn(`Unknown node property ${t}`)}))}qt(e,i);e.intersect=function(t){return Ut.rect(e,t)};return r}),"rect");var ge=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Zt(t,e,"node "+e.classes,true);const i=r.insert("rect",":first-child");const n=e.positioned?e.width:a.width+e.padding;const l=e.positioned?e.height:a.height+e.padding;const c=e.positioned?-n/2:-a.width/2-s;const h=e.positioned?-l/2:-a.height/2-s;i.attr("class","basic cluster composite label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",c).attr("y",h).attr("width",n).attr("height",l);if(e.props){const t=new Set(Object.keys(e.props));if(e.props.borders){ye(i,e.props.borders,n,l);t.delete("borders")}t.forEach((t=>{o.Rm.warn(`Unknown node property ${t}`)}))}qt(e,i);e.intersect=function(t){return Ut.rect(e,t)};return r}),"composite");var pe=(0,o.K2)((async(t,e)=>{const{shapeSvg:r}=await Zt(t,e,"label",true);o.Rm.trace("Classes = ",e.class);const a=r.insert("rect",":first-child");const s=0;const i=0;a.attr("width",s).attr("height",i);r.attr("class","label edgeLabel");if(e.props){const t=new Set(Object.keys(e.props));if(e.props.borders){ye(a,e.props.borders,s,i);t.delete("borders")}t.forEach((t=>{o.Rm.warn(`Unknown node property ${t}`)}))}qt(e,a);e.intersect=function(t){return Ut.rect(e,t)};return r}),"labelRect");function ye(t,e,r,a){const s=[];const i=(0,o.K2)((t=>{s.push(t,0)}),"addBorder");const n=(0,o.K2)((t=>{s.push(0,t)}),"skipBorder");if(e.includes("t")){o.Rm.debug("add top border");i(r)}else{n(r)}if(e.includes("r")){o.Rm.debug("add right border");i(a)}else{n(a)}if(e.includes("b")){o.Rm.debug("add bottom border");i(r)}else{n(r)}if(e.includes("l")){o.Rm.debug("add left border");i(a)}else{n(a)}t.attr("stroke-dasharray",s.join(" "))}(0,o.K2)(ye,"applyNodePropertyBorders");var fe=(0,o.K2)(((t,e)=>{let r;if(!e.classes){r="node default"}else{r="node "+e.classes}const a=t.insert("g").attr("class",r).attr("id",e.domId||e.id);const s=a.insert("rect",":first-child");const i=a.insert("line");const n=a.insert("g").attr("class","label");const l=e.labelText.flat?e.labelText.flat():e.labelText;let c="";if(typeof l==="object"){c=l[0]}else{c=l}o.Rm.info("Label text abc79",c,l,typeof l==="object");const h=n.node().appendChild(mt(c,e.labelStyle,true,true));let u={width:0,height:0};if((0,o._3)((0,o.D7)().flowchart.htmlLabels)){const t=h.children[0];const e=(0,d.Ltv)(h);u=t.getBoundingClientRect();e.attr("width",u.width);e.attr("height",u.height)}o.Rm.info("Text 2",l);const g=l.slice(1,l.length);let p=h.getBBox();const y=n.node().appendChild(mt(g.join?g.join("
"):g,e.labelStyle,true,true));if((0,o._3)((0,o.D7)().flowchart.htmlLabels)){const t=y.children[0];const e=(0,d.Ltv)(y);u=t.getBoundingClientRect();e.attr("width",u.width);e.attr("height",u.height)}const f=e.padding/2;(0,d.Ltv)(y).attr("transform","translate( "+(u.width>p.width?0:(p.width-u.width)/2)+", "+(p.height+f+5)+")");(0,d.Ltv)(h).attr("transform","translate( "+(u.width{const{shapeSvg:r,bbox:a}=await Zt(t,e,te(e,void 0),true);const s=a.height+e.padding;const i=a.width+s/4+e.padding;const n=r.insert("rect",":first-child").attr("style",e.style).attr("rx",s/2).attr("ry",s/2).attr("x",-i/2).attr("y",-s/2).attr("width",i).attr("height",s);qt(e,n);e.intersect=function(t){return Ut.rect(e,t)};return r}),"stadium");var xe=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Zt(t,e,te(e,void 0),true);const i=r.insert("circle",":first-child");i.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",a.width/2+s).attr("width",a.width+e.padding).attr("height",a.height+e.padding);o.Rm.info("Circle main");qt(e,i);e.intersect=function(t){o.Rm.info("Circle intersect",e,a.width/2+s,t);return Ut.circle(e,a.width/2+s,t)};return r}),"circle");var me=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a,halfPadding:s}=await Zt(t,e,te(e,void 0),true);const i=5;const n=r.insert("g",":first-child");const l=n.insert("circle");const c=n.insert("circle");n.attr("class",e.class);l.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",a.width/2+s+i).attr("width",a.width+e.padding+i*2).attr("height",a.height+e.padding+i*2);c.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",a.width/2+s).attr("width",a.width+e.padding).attr("height",a.height+e.padding);o.Rm.info("DoubleCircle main");qt(e,l);e.intersect=function(t){o.Rm.info("DoubleCircle intersect",e,a.width/2+s+i,t);return Ut.circle(e,a.width/2+s+i,t)};return r}),"doublecircle");var ke=(0,o.K2)((async(t,e)=>{const{shapeSvg:r,bbox:a}=await Zt(t,e,te(e,void 0),true);const s=a.width+e.padding;const i=a.height+e.padding;const n=[{x:0,y:0},{x:s,y:0},{x:s,y:-i},{x:0,y:-i},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-i},{x:-8,y:-i},{x:-8,y:0}];const o=Gt(r,s,i,n);o.attr("style",e.style);qt(e,o);e.intersect=function(t){return Ut.polygon(e,n,t)};return r}),"subroutine");var we=(0,o.K2)(((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);const a=r.insert("circle",":first-child");a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);qt(e,a);e.intersect=function(t){return Ut.circle(e,7,t)};return r}),"start");var Le=(0,o.K2)(((t,e,r)=>{const a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let s=70;let i=10;if(r==="LR"){s=10;i=70}const n=a.append("rect").attr("x",-1*s/2).attr("y",-1*i/2).attr("width",s).attr("height",i).attr("class","fork-join");qt(e,n);e.height=e.height+e.padding/2;e.width=e.width+e.padding/2;e.intersect=function(t){return Ut.rect(e,t)};return a}),"forkJoin");var _e=(0,o.K2)(((t,e)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);const a=r.insert("circle",":first-child");const s=r.insert("circle",":first-child");s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);a.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10);qt(e,s);e.intersect=function(t){return Ut.circle(e,7,t)};return r}),"end");var ve=(0,o.K2)(((t,e)=>{const r=e.padding/2;const a=4;const s=8;let i;if(!e.classes){i="node default"}else{i="node "+e.classes}const n=t.insert("g").attr("class",i).attr("id",e.domId||e.id);const l=n.insert("rect",":first-child");const c=n.insert("line");const h=n.insert("line");let u=0;let g=a;const p=n.insert("g").attr("class","label");let y=0;const f=e.classData.annotations?.[0];const b=e.classData.annotations[0]?"«"+e.classData.annotations[0]+"»":"";const x=p.node().appendChild(mt(b,e.labelStyle,true,true));let m=x.getBBox();if((0,o._3)((0,o.D7)().flowchart.htmlLabels)){const t=x.children[0];const e=(0,d.Ltv)(x);m=t.getBoundingClientRect();e.attr("width",m.width);e.attr("height",m.height)}if(e.classData.annotations[0]){g+=m.height+a;u+=m.width}let k=e.classData.label;if(e.classData.type!==void 0&&e.classData.type!==""){if((0,o.D7)().flowchart.htmlLabels){k+="<"+e.classData.type+">"}else{k+="<"+e.classData.type+">"}}const w=p.node().appendChild(mt(k,e.labelStyle,true,true));(0,d.Ltv)(w).attr("class","classTitle");let L=w.getBBox();if((0,o._3)((0,o.D7)().flowchart.htmlLabels)){const t=w.children[0];const e=(0,d.Ltv)(w);L=t.getBoundingClientRect();e.attr("width",L.width);e.attr("height",L.height)}g+=L.height+a;if(L.width>u){u=L.width}const _=[];e.classData.members.forEach((t=>{const r=t.getDisplayDetails();let s=r.displayText;if((0,o.D7)().flowchart.htmlLabels){s=s.replace(//g,">")}const i=p.node().appendChild(mt(s,r.cssStyle?r.cssStyle:e.labelStyle,true,true));let n=i.getBBox();if((0,o._3)((0,o.D7)().flowchart.htmlLabels)){const t=i.children[0];const e=(0,d.Ltv)(i);n=t.getBoundingClientRect();e.attr("width",n.width);e.attr("height",n.height)}if(n.width>u){u=n.width}g+=n.height+a;_.push(i)}));g+=s;const v=[];e.classData.methods.forEach((t=>{const r=t.getDisplayDetails();let s=r.displayText;if((0,o.D7)().flowchart.htmlLabels){s=s.replace(//g,">")}const i=p.node().appendChild(mt(s,r.cssStyle?r.cssStyle:e.labelStyle,true,true));let n=i.getBBox();if((0,o._3)((0,o.D7)().flowchart.htmlLabels)){const t=i.children[0];const e=(0,d.Ltv)(i);n=t.getBoundingClientRect();e.attr("width",n.width);e.attr("height",n.height)}if(n.width>u){u=n.width}g+=n.height+a;v.push(i)}));g+=s;if(f){let t=(u-m.width)/2;(0,d.Ltv)(x).attr("transform","translate( "+(-1*u/2+t)+", "+-1*g/2+")");y=m.height+a}let S=(u-L.width)/2;(0,d.Ltv)(w).attr("transform","translate( "+(-1*u/2+S)+", "+(-1*g/2+y)+")");y+=L.height+a;c.attr("class","divider").attr("x1",-u/2-r).attr("x2",u/2+r).attr("y1",-g/2-r+s+y).attr("y2",-g/2-r+s+y);y+=s;_.forEach((t=>{(0,d.Ltv)(t).attr("transform","translate( "+-u/2+", "+(-1*g/2+y+s/2)+")");const e=t?.getBBox();y+=(e?.height??0)+a}));y+=s;h.attr("class","divider").attr("x1",-u/2-r).attr("x2",u/2+r).attr("y1",-g/2-r+s+y).attr("y2",-g/2-r+s+y);y+=s;v.forEach((t=>{(0,d.Ltv)(t).attr("transform","translate( "+-u/2+", "+(-1*g/2+y)+")");const e=t?.getBBox();y+=(e?.height??0)+a}));l.attr("style",e.style).attr("class","outer title-state").attr("x",-u/2-r).attr("y",-(g/2)-r).attr("width",u+e.padding).attr("height",g+e.padding);qt(e,l);e.intersect=function(t){return Ut.rect(e,t)};return n}),"class_box");var Se={rhombus:ee,composite:ge,question:ee,rect:ue,labelRect:pe,rectWithTitle:fe,choice:re,circle:xe,doublecircle:me,stadium:be,hexagon:ae,block_arrow:se,rect_left_inv_arrow:ie,lean_right:ne,lean_left:oe,trapezoid:le,inv_trapezoid:ce,rect_right_inv_arrow:he,cylinder:de,start:we,end:_e,note:Vt,subroutine:ke,fork:Le,join:Le,class_box:ve};var Ee={};var De=(0,o.K2)((async(t,e,r)=>{let a;let s;if(e.link){let i;if((0,o.D7)().securityLevel==="sandbox"){i="_top"}else if(e.linkTarget){i=e.linkTarget||"_blank"}a=t.insert("svg:a").attr("xlink:href",e.link).attr("target",i);s=await Se[e.shape](a,e,r)}else{s=await Se[e.shape](t,e,r);a=s}if(e.tooltip){s.attr("title",e.tooltip)}if(e.class){s.attr("class","node default "+e.class)}Ee[e.id]=a;if(e.haveCallback){Ee[e.id].attr("class",Ee[e.id].attr("class")+" clickable")}return a}),"insertNode");var Ne=(0,o.K2)((t=>{const e=Ee[t.id];o.Rm.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=8;const a=t.diff||0;if(t.clusterNode){e.attr("transform","translate("+(t.x+a-t.width/2)+", "+(t.y-t.height/2-r)+")")}else{e.attr("transform","translate("+t.x+", "+t.y+")")}return a}),"positionNode");function Ke(t,e,r=false){const a=t;let s="default";if((a?.classes?.length||0)>0){s=(a?.classes??[]).join(" ")}s=s+" flowchart-label";let i=0;let l="";let c;switch(a.type){case"round":i=5;l="rect";break;case"composite":i=0;l="composite";c=0;break;case"square":l="rect";break;case"diamond":l="question";break;case"hexagon":l="hexagon";break;case"block_arrow":l="block_arrow";break;case"odd":l="rect_left_inv_arrow";break;case"lean_right":l="lean_right";break;case"lean_left":l="lean_left";break;case"trapezoid":l="trapezoid";break;case"inv_trapezoid":l="inv_trapezoid";break;case"rect_left_inv_arrow":l="rect_left_inv_arrow";break;case"circle":l="circle";break;case"ellipse":l="ellipse";break;case"stadium":l="stadium";break;case"subroutine":l="subroutine";break;case"cylinder":l="cylinder";break;case"group":l="rect";break;case"doublecircle":l="doublecircle";break;default:l="rect"}const h=(0,n.sM)(a?.styles??[]);const d=a.label;const u=a.size??{width:0,height:0,x:0,y:0};const g={labelStyle:h.labelStyle,shape:l,labelText:d,rx:i,ry:i,class:s,style:h.style,id:a.id,directions:a.directions,width:u.width,height:u.height,x:u.x,y:u.y,positioned:r,intersect:void 0,type:a.type,padding:c??(0,o.zj)()?.block?.padding??0};return g}(0,o.K2)(Ke,"getNodeFromBlock");async function Re(t,e,r){const a=Ke(e,r,false);if(a.type==="group"){return}const s=(0,o.zj)();const i=await De(t,a,{config:s});const n=i.node().getBBox();const l=r.getBlock(a.id);l.size={width:n.width,height:n.height,x:0,y:0,node:i};r.setBlock(l);i.remove()}(0,o.K2)(Re,"calculateBlockSize");async function Ce(t,e,r){const a=Ke(e,r,true);const s=r.getBlock(a.id);if(s.type!=="space"){const r=(0,o.zj)();await De(t,a,{config:r});e.intersect=a?.intersect;Ne(a)}}(0,o.K2)(Ce,"insertBlockPositioned");async function Te(t,e,r,a){for(const s of e){await a(t,s,r);if(s.children){await Te(t,s.children,r,a)}}}(0,o.K2)(Te,"performOperations");async function $e(t,e,r){await Te(t,e,r,Re)}(0,o.K2)($e,"calculateBlockSizes");async function Ae(t,e,r){await Te(t,e,r,Ce)}(0,o.K2)(Ae,"insertBlocks");async function Oe(t,e,r,a,s){const i=new u.T({multigraph:true,compound:true});i.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const n of r){if(n.size){i.setNode(n.id,{width:n.size.width,height:n.size.height,intersect:n.intersect})}}for(const n of e){if(n.start&&n.end){const e=a.getBlock(n.start);const r=a.getBlock(n.end);if(e?.size&&r?.size){const a=e.size;const o=r.size;const l=[{x:a.x,y:a.y},{x:a.x+(o.x-a.x)/2,y:a.y+(o.y-a.y)/2},{x:o.x,y:o.y}];Ct(t,{v:n.start,w:n.end,name:n.id},{...n,arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:l,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",i,s);if(n.label){await St(t,{...n,label:n.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:n.arrowTypeEnd,arrowTypeStart:n.arrowTypeStart,points:l,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"});Dt({...n,x:l[1].x,y:l[1].y},{originalPath:l})}}}}}(0,o.K2)(Oe,"insertEdges");var Ie=(0,o.K2)((function(t,e){return e.db.getClasses()}),"getClasses");var Be=(0,o.K2)((async function(t,e,r,a){const{securityLevel:s,block:i}=(0,o.zj)();const n=a.db;let l;if(s==="sandbox"){l=(0,d.Ltv)("#i"+e)}const c=s==="sandbox"?(0,d.Ltv)(l.nodes()[0].contentDocument.body):(0,d.Ltv)("body");const h=s==="sandbox"?c.select(`[id="${e}"]`):(0,d.Ltv)(`[id="${e}"]`);const u=["point","circle","cross"];lt(h,u,a.type,e);const g=n.getBlocks();const p=n.getBlocksFlat();const y=n.getEdges();const f=h.insert("g").attr("class","block");await $e(f,g,n);const b=yt(n);await Ae(f,g,n);await Oe(f,y,p,n,e);if(b){const t=b;const e=Math.max(1,Math.round(.125*(t.width/t.height)));const r=t.height+e+10;const a=t.width+10;const{useMaxWidth:s}=i;(0,o.a$)(h,r,a,!!s);o.Rm.debug("Here Bounds",b,t);h.attr("viewBox",`${t.x-5} ${t.y-5} ${t.width+10} ${t.height+10}`)}}),"draw");var ze={draw:Be,getClasses:Ie};var Me={parser:p,db:U,renderer:ze,styles:G}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6439.1723c0b3882bf535486e.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6439.1723c0b3882bf535486e.js new file mode 100644 index 0000000000000000000000000000000000000000..7dbf67465404b3b2ea99851a023c154c30d6358a --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6439.1723c0b3882bf535486e.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6439],{16439:(n,e,t)=>{"use strict";t.r(e);t.d(e,{render:()=>s});var r=t(21148);var i=t(24982);var a=t(62954);var c=t.n(a);var u=(0,r.K)(((n,e,{parentById:t})=>{const r=new Set;let i=n;if(n===e){return t[n]||"root"}while(i){r.add(i);if(i===e){return i}i=t[i]}i=e;while(i){if(r.has(i)){return i}i=t[i]}return"root"}),"findCommonAncestor");var s=(0,r.K)((async(n,e,{common:t,getConfig:a,insertCluster:s,insertEdge:o,insertEdgeLabel:f,insertMarkers:h,insertNode:l,interpolateToCurve:b,labelHelper:w,log:d,positionEdgeLabel:g},{algorithm:v})=>{const p={};const m={};const k=(0,r.K)((async(n,e,t,r)=>{const i={width:0,height:0};const c=a();if(!r.isGroup){const t={...r};e.children.push(t);p[r.id]=t;const i=await l(n,r,{config:c,dir:r.dir});const a=i.node().getBBox();t.domId=i;t.width=a.width;t.height=a.height}else{const a={...r,children:[]};e.children.push(a);p[r.id]=a;await y(n,t,a,r.id);if(r.label){const{shapeSvg:e,bbox:t}=await w(n,r,void 0,true);i.width=t.width;i.wrappingWidth=c.flowchart.wrappingWidth;i.height=t.height-2;i.labelNode=e.node();e.remove()}else{i.width=0;i.height=0}a.labelData=i;a.domId=n}}),"addVertex");const y=(0,r.K)((async function(n,e,t,r){const i=e.filter((n=>n?.parentId===r));d.info("addVertices APA12",i,r);await Promise.all(i.map((async r=>{await k(n,t,e,r)})));return t}),"addVertices");const M=(0,r.K)((async(n,e,t,r,i,a)=>{await Promise.all(t.map((async function(t){if(t){p[t.id]=t;p[t.id].offset={posX:t.x+n,posY:t.y+e,x:n,y:e,depth:a,width:Math.max(t.width,t.labels?t.labels[0]?.width||0:0),height:t.height};if(t.isGroup){d.debug("Id abc88 subgraph = ",t.id,t.x,t.y,t.labelData);const n=i.insert("g").attr("class","subgraph");const e=JSON.parse(JSON.stringify(t));e.x=t.offset.posX+t.width/2;e.y=t.offset.posY+t.height/2;e.width=Math.max(e.width,t.labelData.width);await s(n,e);d.debug("Id (UIO)= ",t.id,t.width,t.shape,t.labels)}else{d.info("Id NODE = ",t.id,t.x,t.y,n,e,t.domId.node(),`translate(${t.x+n+t.width/2}, ${t.y+e+t.height/2})`);t.domId.attr("transform",`translate(${t.x+n+t.width/2}, ${t.y+e+t.height/2})`)}}})));await Promise.all(t.map((async function(t){if(t?.isGroup){await M(n+t.x,e+t.y,t.children,r,i,a+1)}})))}),"drawNodes");const T=(0,r.K)((n=>{const e={parentById:{},childrenById:{}};const t=n.filter((n=>n.isGroup));d.info("Subgraphs - ",t);t.forEach((t=>{const r=n.filter((n=>n.parentId===t.id));r.forEach((n=>{e.parentById[n.id]=t.id;if(e.childrenById[t.id]===void 0){e.childrenById[t.id]=[]}e.childrenById[t.id].push(n)}))}));t.forEach((function(n){const t={id:n.id};if(e.parentById[n.id]!==void 0){t.parent=e.parentById[n.id]}}));return e}),"addSubGraphs");const j=(0,r.K)((n=>{const e=n.start;const t=n.end;const r=e;const i=t;const a=p[n.start.id];const c=p[n.end.id];if(!a||!c){return{source:e,target:t}}return{source:e,target:t,sourceId:r,targetId:i}}),"getEdgeStartEndPoint");const E=(0,r.K)((function(n,e,t){const r=u(n,e,t);if(r===void 0||r==="root"){return{x:0,y:0}}const i=p[r].offset;return{x:i.posX,y:i.posY}}),"calcOffset");const S=(0,r.K)((async function(n,e,r){d.info("abc78 DAGA edges = ",n);const c=n.edges;const u=r.insert("g").attr("class","edgeLabels");const s={};const o=n.direction||"DOWN";let h;let l;await Promise.all(c.map((async function(n){const r=n.id;if(s[r]===void 0){s[r]=0;d.info("abc78 new entry",r,s[r])}else{s[r]++;d.info("abc78 new entry",r,s[r])}const w=r+"_"+s[r];n.id=w;d.info("abc78 new link id to be used is",r,w,s[r]);const g="LS_"+n.start;const v="LE_"+n.end;const p={style:"",labelStyle:""};p.minlen=n.length||1;n.text=n.label;if(n.type==="arrow_open"){p.arrowhead="none"}else{p.arrowhead="normal"}p.arrowTypeStart="arrow_open";p.arrowTypeEnd="arrow_open";switch(n.type){case"double_arrow_cross":p.arrowTypeStart="arrow_cross";case"arrow_cross":p.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":p.arrowTypeStart="arrow_point";case"arrow_point":p.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":p.arrowTypeStart="arrow_circle";case"arrow_circle":p.arrowTypeEnd="arrow_circle";break}let m="";let k="";p.startLabelRight=n.startLabelRight;p.endLabelLeft=n.endLabelLeft;switch(n.stroke){case"normal":m="fill:none;";if(h!==void 0){m=h}if(l!==void 0){k=l}p.thickness="normal";p.pattern="solid";break;case"dotted":p.thickness="normal";p.pattern="dotted";p.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":p.thickness="thick";p.pattern="solid";p.style="stroke-width: 3.5px;fill:none;";break}p.style=p.style+=m;p.labelStyle=p.labelStyle+=k;const y=a();if(n.interpolate!==void 0){p.curve=b(n.interpolate,i.lUB)}else if(c.defaultInterpolate!==void 0){p.curve=b(c.defaultInterpolate,i.lUB)}else{p.curve=b(y.curve,i.lUB)}if(n.text===void 0){if(n.style!==void 0){p.arrowheadStyle="fill: #333"}}else{p.arrowheadStyle="fill: #333";p.labelpos="c"}p.labelType=n.labelType;p.label=(n?.text||"").replace(t.lineBreakRegex,"\n");if(n.style===void 0){p.style=p.style||"stroke: #333; stroke-width: 1.5px;fill:none;"}p.labelStyle=p.labelStyle.replace("color:","fill:");p.id=w;p.classes="flowchart-link "+g+" "+v;const M=await f(u,p);const{source:T,target:E,sourceId:S,targetId:P}=j(n,o);d.debug("abc78 source and target",T,E);e.edges.push({id:"e"+n.start+n.end,...n,sources:[T],targets:[E],sourceId:S,targetId:P,labelEl:M,labels:[{width:p.width,height:p.height,orgWidth:p.width,orgHeight:p.height,text:p.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:p})})));return e}),"addEdges");function P(n){switch(n){case"LR":return"RIGHT";case"RL":return"LEFT";case"TB":return"DOWN";case"BT":return"UP";default:return"DOWN"}}(0,r.K)(P,"dir2ElkDirection");function C(n,e){const t=p[n];if(!t){return}if(t?.layoutOptions===void 0){t.layoutOptions={}}t.layoutOptions["elk.hierarchyHandling"]="INCLUDE_CHILDREN";if(t.id!==e){C(t.parentId,e)}}(0,r.K)(C,"setIncludeChildrenPolicy");function I(n,e,t,r){d.debug("UIO intersectLine",n,e,t,r);const i=e.y-n.y;const a=n.x-e.x;const c=e.x*n.y-n.x*e.y;const u=i*t.x+a*t.y+c;const s=i*r.x+a*r.y+c;const o=1e-6;if(u!==0&&s!==0&&O(u,s)){return}const f=r.y-t.y;const h=t.x-r.x;const l=r.x*t.y-t.x*r.y;const b=f*n.x+h*n.y+l;const w=f*e.x+h*e.y+l;if(Math.abs(b)0}(0,r.K)(O,"sameSign");const A=(0,r.K)(((n,e,t)=>{const r=n.x;const i=n.y;const a=n.width;const c=n.height;const u=[{x:r,y:i-c/2},{x:r+a/2,y:i},{x:r,y:i+c/2},{x:r-a/2,y:i}];d.debug(`APA16 diamondIntersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(t)}\n node-bounds : x:${n.x} y:${n.y} w:${n.width} h:${n.height}`,JSON.stringify(u));const s=[];let o=Number.POSITIVE_INFINITY;let f=Number.POSITIVE_INFINITY;u.forEach((function(n){o=Math.min(o,n.x);f=Math.min(f,n.y)}));const h=r-a/2-o;const l=i-c/2-f;for(let b=0;b1){s.sort((function(n,t){const r=n.x-e.x;const i=n.y-e.y;const a=Math.sqrt(r*r+i*i);const c=t.x-e.x;const u=t.y-e.y;const s=Math.sqrt(c*c+u*u);return a{d.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(e)}\n insidePoint : ${JSON.stringify(t)}\n node : x:${n.x} y:${n.y} w:${n.width} h:${n.height}`);const r=n.x;const i=n.y;const a=Math.abs(r-t.x);const c=n.width/2;let u=t.xMath.abs(r-e.x)*s){const n=t.y{const t=n.x;const r=n.y;const i=Math.abs(e.x-t);const a=Math.abs(e.y-r);const c=n.width/2;const u=n.height/2;if(i>=c||a>=u){return true}return false}),"outsideNode");const $=(0,r.K)(((n,e,t)=>{d.debug("APA18 cutPathAtIntersect Points:",n,"node:",e,"isDiamond",t);const r=[];let i=n[0];let a=false;n.forEach((n=>{if(!N(e,n)&&!a){let c;if(t){const t=A(e,i,n);const r=Math.sqrt((i.x-t.x)**2+(i.y-t.y)**2);if(r>1){c=t}}if(!c){c=L(e,i,n)}let u=false;r.forEach((n=>{u=u||n.x===c.x&&n.y===c.y}));if(!r.some((n=>n.x===c.x&&n.y===c.y))){r.push(c)}else{d.debug("abc88 no intersect",c,r)}a=true}else{d.debug("abc88 outside",n,i,r);i=n;if(!a){r.push(n)}}}));return r}),"cutPathAtIntersect");const D=new(c());const x=e.select("g");h(x,n.markers,n.type,n.diagramId);let R={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","elk.algorithm":v,"nodePlacement.strategy":n.config.elk?.nodePlacementStrategy,"elk.layered.mergeEdges":n.config.elk?.mergeEdges,"elk.direction":"DOWN","spacing.baseValue":35,"elk.layered.unnecessaryBendpoints":true,"elk.layered.cycleBreaking.strategy":n.config.elk?.cycleBreakingStrategy},children:[],edges:[]};d.info("Drawing flowchart using v4 renderer",D);const K=n.direction||"DOWN";R.layoutOptions["elk.direction"]=P(K);const F=T(n.nodes);const _=e.insert("g").attr("class","subgraphs");const B=e.insert("g").attr("class","nodes");R=await y(B,n.nodes,R);const H=e.insert("g").attr("class","edges edgePaths");R=await S(n,R,e);const U=n.nodes;U.forEach((e=>{const t=p[e.id];if(F.childrenById[t.id]!==void 0){t.labels=[{text:t.label,width:t?.labelData?.width||50,height:t?.labelData?.height||50},t.width=t.width+2*t.padding,d.debug("UIO node label",t?.labelData?.width,t.padding)];t.layoutOptions={"spacing.baseValue":30,"nodeLabels.placement":"[H_CENTER V_TOP, INSIDE]"};if(t.dir){t.layoutOptions={...t.layoutOptions,"elk.algorithm":v,"elk.direction":P(t.dir),"nodePlacement.strategy":n.config.elk?.nodePlacementStrategy,"elk.layered.mergeEdges":n.config.elk?.mergeEdges,"elk.hierarchyHandling":"SEPARATE_CHILDREN"}}delete t.x;delete t.y;delete t.width;delete t.height}}));R.edges.forEach((n=>{const e=n.sources[0];const t=n.targets[0];if(p[e].parentId!==p[t].parentId){const n=u(e,t,F);C(e,n);C(t,n)}}));const G=await D.layout(R);await M(0,0,G.children,e,_,0);G.edges?.map((e=>{const t=p[e.sources[0]];const r=F[e.sources[0]];const i=p[e.targets[0]];const a=e.start;const c=e.end;const u=E(a,c,F);d.debug("APA18 offset",u,a," ==> ",c,"edge:",e,"cluster:",r,t);if(e.sections){const r=e.sections[0].startPoint;const a=e.sections[0].endPoint;const c=e.sections[0].bendPoints?e.sections[0].bendPoints:[];const s=c.map((n=>({x:n.x+u.x,y:n.y+u.y})));e.points=[{x:r.x+u.x,y:r.y+u.y},...s,{x:a.x+u.x,y:a.y+u.y}];let f=t.width;let h=i.width;if(t.isGroup){const n=t.domId.node().getBBox();f=Math.max(t.width,t.labels[0].width+t.padding);d.debug("UIO width",t.id,t.with,"bbox.width=",n.width,"lw=",t.labels[0].width,"node:",t.width,"SW = ",f)}if(i.isGroup){const n=i.domId.node().getBBox();h=Math.max(i.width,i.labels[0].width+i.padding);d.debug("UIO width",t.id,t.with,n.width,"EW = ",h,"HTML:",t.innerHTML)}if(t.shape==="diamond"||t.shape==="diam"){e.points.unshift({x:t.offset.posX+t.width/2,y:t.offset.posY+t.height/2})}if(i.shape==="diamond"||i.shape==="diam"){e.points.push({x:i.offset.posX+i.width/2,y:i.offset.posY+i.height/2})}e.points=$(e.points.reverse(),{x:t.offset.posX+t.width/2,y:t.offset.posY+t.height/2,width:f,height:t.height,padding:t.padding},t.shape==="diamond"||t.shape==="diam").reverse();e.points=$(e.points,{x:i.offset.posX+i.width/2,y:i.offset.posY+i.height/2,width:h,height:i.height,padding:i.padding},i.shape==="diamond"||i.shape==="diam");const l=o(H,e,m,n.type,t,i,n.diagramId);d.info("APA12 edge points after insert",JSON.stringify(e.points));e.x=e.labels[0].x+u.x+e.labels[0].width/2;e.y=e.labels[0].y+u.y+e.labels[0].height/2;g(e,l)}}))}),"render")},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 s=undefined;if(!u&&s)return require(c,!0);if(a)return a(c,!0);var o=new Error("Cannot find module '"+c+"'");throw o.code="MODULE_NOT_FOUND",o}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;c0&&arguments[0]!==undefined?arguments[0]:{},r=t.defaultLayoutOptions,a=r===undefined?{}:r,u=t.algorithms,s=u===undefined?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:u,o=t.workerFactory,f=t.workerUrl;i(this,n);this.defaultLayoutOptions=a;this.initialized=false;if(typeof f==="undefined"&&typeof o==="undefined"){throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.")}var h=o;if(typeof f!=="undefined"&&typeof o==="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:s}).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,s=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:s}})}},{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(){if(this.worker)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){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,s;function o(){}function f(){}function h(){}function l(){}function b(){}function w(){}function d(){}function g(){}function v(){}function p(){}function m(){}function k(){}function y(){}function M(){}function T(){}function j(){}function E(){}function S(){}function P(){}function C(){}function I(){}function O(){}function A(){}function L(){}function N(){}function $(){}function D(){}function x(){}function R(){}function K(){}function F(){}function _(){}function B(){}function H(){}function U(){}function G(){}function q(){}function X(){}function V(){}function z(){}function W(){}function Q(){}function J(){}function Y(){}function Z(){}function nn(){}function en(){}function tn(){}function rn(){}function an(){}function cn(){}function un(){}function sn(){}function on(){}function fn(){}function hn(){}function ln(){}function bn(){}function wn(){}function dn(){}function gn(){}function vn(){}function pn(){}function mn(){}function kn(){}function yn(){}function Mn(){}function Tn(){}function jn(){}function En(){}function Sn(){}function Pn(){}function Cn(){}function In(){}function On(){}function An(){}function Ln(){}function Nn(){}function $n(){}function Dn(){}function xn(){}function Rn(){}function Kn(){}function Fn(){}function _n(){}function Bn(){}function Hn(){}function Un(){}function Gn(){}function qn(){}function Xn(){}function Vn(){}function zn(){}function Wn(){}function Qn(){}function Jn(){}function Yn(){}function Zn(){}function ne(){}function ee(){}function te(){}function re(){}function ie(){}function ae(){}function ce(){}function ue(){}function se(){}function oe(){}function fe(){}function he(){}function le(){}function be(){}function we(){}function de(){}function ge(){}function ve(){}function pe(){}function me(){}function ke(){}function ye(){}function Me(){}function Te(){}function je(){}function Ee(){}function Se(){}function Pe(){}function Ce(){}function Ie(){}function Oe(){}function Ae(){}function Le(){}function Ne(){}function $e(){}function De(){}function xe(){}function Re(){}function Ke(){}function Fe(){}function _e(){}function Be(){}function He(){}function Ue(){}function Ge(){}function qe(){}function Xe(){}function Ve(){}function ze(){}function We(){}function Qe(){}function Je(){}function Ye(){}function Ze(){}function nt(){}function et(){}function tt(){}function rt(){}function it(){}function at(){}function ct(){}function ut(){}function st(){}function ot(){}function ft(){}function ht(){}function lt(){}function bt(){}function wt(){}function dt(){}function gt(){}function vt(){}function pt(){}function mt(){}function kt(){}function yt(){}function Mt(){}function Tt(){}function jt(){}function Et(){}function St(){}function Pt(){}function Ct(){}function It(){}function Ot(){}function At(){}function Lt(){}function Nt(){}function $t(){}function Dt(){}function xt(){}function Rt(){}function Kt(){}function Ft(){}function _t(){}function Bt(){}function Ht(){}function Ut(){}function Gt(){}function qt(){}function Xt(){}function Vt(){}function zt(){}function Wt(){}function Qt(){}function Jt(){}function Yt(){}function Zt(){}function nr(){}function er(){}function tr(){}function rr(){}function ir(){}function ar(){}function cr(){}function ur(){}function sr(){}function or(){}function fr(){}function hr(){}function lr(){}function br(){}function wr(){}function dr(){}function gr(){}function vr(){}function pr(){}function mr(){}function kr(){}function yr(){}function Mr(){}function Tr(){}function jr(){}function Er(){}function Sr(){}function Pr(){}function Cr(){}function Ir(){}function Or(){}function Ar(){}function Lr(){}function Nr(){}function $r(){}function Dr(){}function xr(){}function Rr(){}function Kr(){}function Fr(){}function _r(){}function Br(){}function Hr(){}function Ur(){}function Gr(){}function qr(){}function Xr(){}function Vr(){}function zr(){}function Wr(){}function Qr(){}function Jr(){}function Yr(){}function Zr(){}function ni(){}function ei(){}function ti(){}function ri(){}function ii(){}function ai(){}function ci(){}function ui(){}function si(){}function oi(){}function fi(){}function hi(){}function li(){}function bi(){}function wi(){}function di(){}function gi(){}function vi(){}function pi(){}function mi(){}function ki(){}function yi(){}function Mi(){}function Ti(){}function ji(){}function Ei(){}function Si(){}function Pi(){}function Ci(){}function Ii(){}function Oi(){}function Ai(){}function Li(){}function Ni(){}function $i(){}function Di(){}function xi(){}function Ri(){}function Ki(){}function Fi(){}function _i(){}function Bi(){}function Hi(){}function Ui(){}function Gi(){}function qi(){}function Xi(){}function Vi(){}function zi(){}function Wi(){}function Qi(){}function Ji(){}function Yi(){}function Zi(){}function na(){}function ea(){}function ta(){}function ra(){}function ia(){}function aa(){}function ca(){}function ua(){}function sa(){}function oa(){}function fa(){}function ha(){}function la(){}function ba(){}function wa(){}function da(){}function ga(){}function va(){}function pa(){}function ma(){}function ka(){}function ya(){}function Ma(){}function Ta(){}function ja(){}function Ea(){}function Sa(){}function Pa(){}function Ca(){}function Ia(){}function Oa(){}function Aa(){}function La(){}function Na(){}function $a(){}function Da(){}function xa(){}function Ra(){}function Ka(){}function Fa(){}function _a(){}function Ba(){}function Ha(){}function Ua(){}function Ga(){}function qa(){}function Xa(){}function Va(){}function za(){}function Wa(){}function Qa(){}function Ja(){}function Ya(){}function Za(){}function nc(){}function ec(){}function tc(){}function rc(){}function ic(){}function ac(){}function cc(){}function uc(){}function sc(){}function oc(){}function fc(){}function hc(){}function lc(){}function bc(){}function wc(){}function dc(){}function gc(){}function vc(){}function pc(){}function mc(){}function kc(){}function yc(){}function Mc(){}function Tc(){}function jc(){}function Ec(){}function Sc(){}function Pc(){}function Cc(){}function Ic(){}function Oc(){}function Ac(){}function Lc(){}function Nc(){}function $c(){}function Dc(){}function xc(){}function Rc(){}function Kc(){}function Fc(){}function _c(){}function Bc(){}function Hc(){}function Uc(){}function Gc(){}function qc(){}function Xc(){}function Vc(){}function zc(){}function Wc(){}function Qc(){}function Jc(){}function Yc(){}function Zc(){}function nu(){}function eu(){}function tu(){}function ru(){}function iu(){}function au(){}function cu(){}function uu(){}function su(){}function ou(){}function fu(){}function hu(){}function lu(){}function bu(){}function wu(){}function du(){}function gu(){}function vu(){}function pu(){}function mu(){}function ku(){}function yu(){}function Mu(){}function Tu(){}function ju(){}function Eu(){}function Su(){}function Pu(){}function Cu(){}function Iu(){}function Ou(){}function Au(){}function Lu(){}function Nu(){}function $u(){}function Du(){}function xu(){}function Ru(){}function Ku(){}function Fu(){}function _u(){}function Bu(){}function Hu(){}function Uu(){}function Gu(){}function qu(){}function Xu(){}function Vu(){}function zu(){}function Wu(){}function Qu(){}function Ju(){}function Yu(){}function Zu(){}function ns(){}function es(){}function ts(){}function rs(){}function is(){}function as(){}function cs(){}function us(){}function ss(){}function os(){}function fs(){}function hs(){}function ls(){}function bs(){}function ws(){}function ds(){}function gs(){}function vs(){}function ps(){}function ms(){}function ks(){}function ys(){}function Ms(){}function Ts(){}function js(){}function Es(){}function Ss(){}function Ps(){}function Cs(){}function Is(){}function Os(){}function As(){}function Ls(){}function Ns(){}function $s(){}function Ds(){}function xs(){}function Rs(){}function Ks(){}function Fs(){}function _s(){}function Bs(){}function Hs(){}function Us(){}function Gs(){}function qs(){}function Xs(){}function Vs(){}function zs(){}function Ws(){}function Qs(){}function Js(){}function Ys(){}function Zs(){}function no(){}function eo(){}function to(){}function ro(){}function io(){}function ao(){}function co(){}function uo(){}function so(){}function oo(){}function fo(){}function ho(){}function lo(){}function bo(){}function wo(){}function go(){}function vo(){}function po(){}function mo(){}function ko(){}function yo(){}function Mo(){}function To(){}function jo(){}function Eo(){}function So(){}function Po(){}function Co(){}function Io(){}function Oo(){}function Ao(){}function Lo(){}function No(){}function $o(){}function Do(){}function xo(){}function Ro(){}function Ko(){}function Fo(){}function _o(){}function Bo(){}function Ho(){}function Uo(){}function Go(){}function qo(){}function Xo(){}function Vo(){}function zo(){}function Wo(){}function Qo(){}function Jo(){}function Yo(){}function Zo(){}function nf(){}function ef(){}function tf(){}function rf(){}function af(){}function cf(){}function uf(){}function sf(){}function of(){}function ff(){}function hf(){}function lf(){}function bf(){}function wf(){}function df(){}function gf(){}function vf(){}function pf(){}function mf(){}function kf(){}function yf(){}function Mf(){}function Tf(){}function jf(){}function Ef(){}function Sf(){}function Pf(){}function Cf(){}function If(){}function Of(){}function Af(){}function Lf(){}function Nf(){}function $f(){}function Df(){}function xf(){}function Rf(){}function Kf(){}function Ff(){}function _f(){}function Bf(){}function Hf(){}function Uf(){}function Gf(){}function qf(){}function Xf(){}function Vf(){}function zf(){}function Wf(){}function Qf(){}function Jf(){}function Yf(){}function Zf(){}function nh(){}function eh(){}function th(){}function rh(){}function ih(){}function ah(){}function ch(){}function uh(){}function sh(){}function oh(){}function fh(){}function hh(){}function lh(){}function bh(){}function wh(){}function dh(){}function gh(){}function vh(){}function ph(){}function mh(){}function kh(){}function yh(){}function Mh(){}function Th(){}function jh(){}function Eh(){}function Sh(){}function Ph(){}function Ch(){}function Ih(){}function Oh(){}function Ah(){}function Lh(){}function Nh(){}function $h(){}function Dh(){}function xh(){}function Rh(){}function Kh(){}function Fh(){}function _h(){}function Bh(){}function Hh(n){}function Uh(n){}function Gh(){yy()}function qh(){ZS()}function Xh(){PEn()}function Vh(){Mbn()}function zh(){oyn()}function Wh(){lOn()}function Qh(){oGn()}function Jh(){Sjn()}function Yh(){Xjn()}function Zh(){nP()}function nl(){VB()}function el(){eP()}function tl(){Lsn()}function rl(){G7()}function il(){Ocn()}function al(){r2()}function cl(){Lcn()}function ul(){znn()}function sl(){e2()}function ol(){Nln()}function fl(){$cn()}function hl(){Ncn()}function ll(){f6()}function bl(){Dcn()}function wl(){IIn()}function dl(){rP()}function gl(){ZYn()}function vl(){IYn()}function pl(){xcn()}function ml(){$sn()}function kl(){i2()}function yl(){Ljn()}function Ml(){c2()}function Tl(){kUn()}function jl(){uDn()}function El(){can()}function Sl(){Udn()}function Pl(){eqn()}function Cl(){u3()}function Il(){aan()}function Ol(){OHn()}function Al(){IOn()}function Ll(){$Hn()}function Nl(){A_n()}function $l(){gIn()}function Dl(){bBn()}function xl(){IMn()}function Rl(){lB()}function Kl(){Aen()}function Fl(){vIn()}function _l(){JYn()}function Bl(){$ln()}function Hl(){nmn()}function Ul(){Dsn()}function Gl(){cXn()}function ql(){jGn()}function Xl(n){cJ(n)}function Vl(n){this.a=n}function zl(n){this.a=n}function Wl(n){this.a=n}function Ql(n){this.a=n}function Jl(n){this.a=n}function Yl(n){this.a=n}function Zl(n){this.a=n}function nb(n){this.a=n}function eb(n){this.a=n}function tb(n){this.a=n}function rb(n){this.a=n}function ib(n){this.a=n}function ab(n){this.a=n}function cb(n){this.a=n}function ub(n){this.a=n}function sb(n){this.a=n}function ob(n){this.a=n}function fb(n){this.a=n}function hb(n){this.a=n}function lb(n){this.a=n}function bb(n){this.a=n}function wb(n){this.a=n}function db(n){this.b=n}function gb(n){this.c=n}function vb(n){this.a=n}function pb(n){this.a=n}function mb(n){this.a=n}function kb(n){this.a=n}function yb(n){this.a=n}function Mb(n){this.a=n}function Tb(n){this.a=n}function jb(n){this.a=n}function Eb(n){this.a=n}function Sb(n){this.a=n}function Pb(n){this.a=n}function Cb(n){this.a=n}function Ib(n){this.a=n}function Ob(n){this.a=n}function Ab(n){this.a=n}function Lb(n){this.a=n}function Nb(n){this.a=n}function $b(){this.a=[]}function Db(n,e){n.a=e}function xb(n,e){n.a=e}function Rb(n,e){n.b=e}function Kb(n,e){n.b=e}function Fb(n,e){n.b=e}function _b(n,e){n.j=e}function Bb(n,e){n.g=e}function Hb(n,e){n.i=e}function Ub(n,e){n.c=e}function Gb(n,e){n.c=e}function qb(n,e){n.d=e}function Xb(n,e){n.d=e}function Vb(n,e){n.k=e}function zb(n,e){n.c=e}function Wb(n,e){n.c=e}function Qb(n,e){n.a=e}function Jb(n,e){n.a=e}function Yb(n,e){n.f=e}function Zb(n,e){n.a=e}function nw(n,e){n.b=e}function ew(n,e){n.d=e}function tw(n,e){n.i=e}function rw(n,e){n.o=e}function iw(n,e){n.r=e}function aw(n,e){n.a=e}function cw(n,e){n.b=e}function uw(n,e){n.e=e}function sw(n,e){n.f=e}function ow(n,e){n.g=e}function fw(n,e){n.e=e}function hw(n,e){n.f=e}function lw(n,e){n.f=e}function bw(n,e){n.a=e}function ww(n,e){n.b=e}function dw(n,e){n.n=e}function gw(n,e){n.a=e}function vw(n,e){n.c=e}function pw(n,e){n.c=e}function mw(n,e){n.c=e}function kw(n,e){n.a=e}function yw(n,e){n.a=e}function Mw(n,e){n.d=e}function Tw(n,e){n.d=e}function jw(n,e){n.e=e}function Ew(n,e){n.e=e}function Sw(n,e){n.g=e}function Pw(n,e){n.f=e}function Cw(n,e){n.j=e}function Iw(n,e){n.a=e}function Ow(n,e){n.a=e}function Aw(n,e){n.b=e}function Lw(n){n.b=n.a}function Nw(n){n.c=n.d.d}function $w(n){this.a=n}function Dw(n){this.a=n}function xw(n){this.a=n}function Rw(n){this.a=n}function Kw(n){this.a=n}function Fw(n){this.a=n}function _w(n){this.a=n}function Bw(n){this.a=n}function Hw(n){this.a=n}function Uw(n){this.a=n}function Gw(n){this.a=n}function qw(n){this.a=n}function Xw(n){this.a=n}function Vw(n){this.a=n}function zw(n){this.b=n}function Ww(n){this.b=n}function Qw(n){this.b=n}function Jw(n){this.a=n}function Yw(n){this.a=n}function Zw(n){this.c=n}function nd(n){this.c=n}function ed(n){this.c=n}function td(n){this.d=n}function rd(n){this.a=n}function id(n){this.a=n}function ad(n){this.a=n}function cd(n){this.a=n}function ud(n){this.a=n}function sd(n){this.a=n}function od(n){this.a=n}function fd(n){this.a=n}function hd(n){this.a=n}function ld(n){this.a=n}function bd(n){this.a=n}function wd(n){this.a=n}function dd(n){this.a=n}function gd(n){this.a=n}function vd(n){this.a=n}function pd(n){this.a=n}function md(n){this.a=n}function kd(n){this.a=n}function yd(n){this.a=n}function Md(n){this.a=n}function Td(n){this.a=n}function jd(n){this.a=n}function Ed(n){this.a=n}function Sd(n){this.a=n}function Pd(n){this.a=n}function Cd(n){this.a=n}function Id(n){this.a=n}function Od(n){this.a=n}function Ad(n){this.a=n}function Ld(n){this.a=n}function Nd(n){this.a=n}function $d(n){this.a=n}function Dd(n){this.a=n}function xd(n){this.a=n}function Rd(n){this.a=n}function Kd(n){this.a=n}function Fd(n){this.a=n}function _d(n){this.a=n}function Bd(n){this.a=n}function Hd(n){this.a=n}function Ud(n){this.a=n}function Gd(n){this.a=n}function qd(n){this.a=n}function Xd(n){this.a=n}function Vd(n){this.a=n}function zd(n){this.a=n}function Wd(n){this.a=n}function Qd(n){this.a=n}function Jd(n){this.e=n}function Yd(n){this.a=n}function Zd(n){this.a=n}function ng(n){this.a=n}function eg(n){this.a=n}function tg(n){this.a=n}function rg(n){this.a=n}function ig(n){this.a=n}function ag(n){this.a=n}function cg(n){this.a=n}function ug(n){this.a=n}function sg(n){this.a=n}function og(n){this.a=n}function fg(n){this.a=n}function hg(n){this.a=n}function lg(n){this.a=n}function bg(n){this.a=n}function wg(n){this.a=n}function dg(n){this.a=n}function gg(n){this.a=n}function vg(n){this.a=n}function pg(n){this.a=n}function mg(n){this.a=n}function kg(n){this.a=n}function yg(n){this.a=n}function Mg(n){this.a=n}function Tg(n){this.a=n}function jg(n){this.a=n}function Eg(n){this.a=n}function Sg(n){this.a=n}function Pg(n){this.a=n}function Cg(n){this.a=n}function Ig(n){this.a=n}function Og(n){this.a=n}function Ag(n){this.a=n}function Lg(n){this.a=n}function Ng(n){this.a=n}function $g(n){this.a=n}function Dg(n){this.a=n}function xg(n){this.a=n}function Rg(n){this.a=n}function Kg(n){this.a=n}function Fg(n){this.a=n}function _g(n){this.a=n}function Bg(n){this.a=n}function Hg(n){this.a=n}function Ug(n){this.a=n}function Gg(n){this.a=n}function qg(n){this.a=n}function Xg(n){this.a=n}function Vg(n){this.a=n}function zg(n){this.a=n}function Wg(n){this.a=n}function Qg(n){this.a=n}function Jg(n){this.a=n}function Yg(n){this.c=n}function Zg(n){this.b=n}function nv(n){this.a=n}function ev(n){this.a=n}function tv(n){this.a=n}function rv(n){this.a=n}function iv(n){this.a=n}function av(n){this.a=n}function cv(n){this.a=n}function uv(n){this.a=n}function sv(n){this.a=n}function ov(n){this.a=n}function fv(n){this.a=n}function hv(n){this.a=n}function lv(n){this.a=n}function bv(n){this.a=n}function wv(n){this.a=n}function dv(n){this.a=n}function gv(n){this.a=n}function vv(n){this.a=n}function pv(n){this.a=n}function mv(n){this.a=n}function kv(n){this.a=n}function yv(n){this.a=n}function Mv(n){this.a=n}function Tv(n){this.a=n}function jv(n){this.a=n}function Ev(n){this.a=n}function Sv(n){this.a=n}function Pv(n){this.a=n}function Cv(n){this.a=n}function Iv(n){this.a=n}function Ov(n){this.a=n}function Av(n){this.a=n}function Lv(n){this.a=n}function Nv(n){this.a=n}function $v(n){this.a=n}function Dv(n){this.a=n}function xv(n){this.a=n}function Rv(n){this.a=n}function Kv(n){this.a=n}function Fv(n){this.a=n}function _v(n){this.a=n}function Bv(n){this.a=n}function Hv(n){this.a=n}function Uv(n){this.a=n}function Gv(n){this.a=n}function qv(n){this.a=n}function Xv(n){this.a=n}function Vv(n){this.a=n}function zv(n){this.a=n}function Wv(n){this.a=n}function Qv(n){this.a=n}function Jv(n){this.a=n}function Yv(n){this.a=n}function Zv(n){this.a=n}function np(n){this.a=n}function ep(n){this.a=n}function tp(n){this.f=n}function rp(n){this.a=n}function ip(n){this.a=n}function ap(n){this.a=n}function cp(n){this.a=n}function up(n){this.a=n}function sp(n){this.a=n}function op(n){this.a=n}function fp(n){this.a=n}function hp(n){this.a=n}function lp(n){this.a=n}function bp(n){this.a=n}function wp(n){this.a=n}function dp(n){this.a=n}function gp(n){this.a=n}function vp(n){this.a=n}function pp(n){this.a=n}function mp(n){this.a=n}function kp(n){this.a=n}function yp(n){this.a=n}function Mp(n){this.a=n}function Tp(n){this.a=n}function jp(n){this.a=n}function Ep(n){this.a=n}function Sp(n){this.a=n}function Pp(n){this.a=n}function Cp(n){this.a=n}function Ip(n){this.a=n}function Op(n){this.a=n}function Ap(n){this.a=n}function Lp(n){this.a=n}function Np(n){this.b=n}function $p(n){this.a=n}function Dp(n){this.a=n}function xp(n){this.a=n}function Rp(n){this.a=n}function Kp(n){this.a=n}function Fp(n){this.a=n}function _p(n){this.a=n}function Bp(n){this.b=n}function Hp(n){this.a=n}function Up(n){this.a=n}function Gp(n){this.a=n}function qp(n){this.a=n}function Xp(n){this.c=n}function Vp(n){this.e=n}function zp(n){this.a=n}function Wp(n){this.a=n}function Qp(n){this.a=n}function Jp(n){this.d=n}function Yp(n){this.a=n}function Zp(n){this.a=n}function nm(n){this.a=n}function em(n){this.e=n}function tm(){this.a=0}function rm(){Fz(this)}function im(){$N(this)}function am(){JQ(this)}function cm(){Hh(this)}function um(){this.c=oat}function sm(n,e){n.b+=e}function om(n,e){e.Wb(n)}function fm(n){return n.a}function hm(n){return n.a}function lm(n){return n.a}function bm(n){return n.a}function wm(n){return n.a}function dm(n){return n.e}function gm(){return null}function vm(){return null}function pm(){Tj();BJn()}function mm(n){n.b.Of(n.e)}function km(n){n.b=new oT}function ym(n,e){n.b=e-n.b}function Mm(n,e){n.a=e-n.a}function Tm(n,e){n.push(e)}function jm(n,e){n.sort(e)}function Em(n,e){e.jd(n.a)}function Sm(n,e){KLn(e,n)}function Pm(n,e,t){n.Yd(t,e)}function Cm(n,e){n.e=e;e.b=n}function Im(n){wB();this.a=n}function Om(n){wB();this.a=n}function Am(n){wB();this.a=n}function Lm(n){iQ();this.a=n}function Nm(n){OZ();Qfe.le(n)}function $m(){$m=O;new rm}function Dm(){jx.call(this)}function xm(){jx.call(this)}function Rm(){Dm.call(this)}function Km(){Dm.call(this)}function Fm(){Dm.call(this)}function _m(){Dm.call(this)}function Bm(){Dm.call(this)}function Hm(){Dm.call(this)}function Um(){Dm.call(this)}function Gm(){Dm.call(this)}function qm(){Dm.call(this)}function Xm(){Dm.call(this)}function Vm(){Dm.call(this)}function zm(){this.a=this}function Wm(){this.Bb|=256}function Qm(){this.b=new dL}function Jm(n,e){n.length=e}function Ym(n,e){ED(n.a,e)}function Zm(n,e){ROn(n.c,e)}function nk(n,e){Gz(n.b,e)}function ek(n,e){pMn(n.a,e)}function tk(n,e){Zdn(n.a,e)}function rk(n,e){Pon(n.e,e)}function ik(n){N$n(n.c,n.b)}function ak(n,e){n.kc().Nb(e)}function ck(n){this.a=xgn(n)}function uk(){this.a=new rm}function sk(){this.a=new rm}function ok(){this.a=new dS}function fk(){this.a=new im}function hk(){this.a=new im}function lk(){this.a=new im}function bk(){this.a=new En}function wk(){this.a=new y7}function dk(){this.a=new ve}function gk(){this.a=new Z0}function vk(){this.a=new KF}function pk(){this.a=new im}function mk(){this.a=new im}function kk(){this.a=new im}function yk(){this.a=new im}function Mk(){this.d=new im}function Tk(){this.a=new s4}function jk(){this.a=new uk}function Ek(){this.a=new rm}function Sk(){this.b=new rm}function Pk(){this.b=new im}function Ck(){this.e=new im}function Ik(){this.a=new wl}function Ok(){this.d=new im}function Ak(){XZ.call(this)}function Lk(){XZ.call(this)}function Nk(){im.call(this)}function $k(){Rm.call(this)}function Dk(){fk.call(this)}function xk(){VF.call(this)}function Rk(){yk.call(this)}function Kk(){cm.call(this)}function Fk(){Kk.call(this)}function _k(){cm.call(this)}function Bk(){_k.call(this)}function Hk(){ly.call(this)}function Uk(){ly.call(this)}function Gk(){ly.call(this)}function qk(){dy.call(this)}function Xk(){ao.call(this)}function Vk(){ao.call(this)}function zk(){vS.call(this)}function Wk(){my.call(this)}function Qk(){my.call(this)}function Jk(){rm.call(this)}function Yk(){rm.call(this)}function Zk(){rm.call(this)}function ny(){Ucn.call(this)}function ey(){uk.call(this)}function ty(){Wm.call(this)}function ry(){FD.call(this)}function iy(){rm.call(this)}function ay(){FD.call(this)}function cy(){rm.call(this)}function uy(){rm.call(this)}function sy(){Mo.call(this)}function oy(){sy.call(this)}function fy(){Mo.call(this)}function hy(){Fh.call(this)}function ly(){this.a=new uk}function by(){this.a=new rm}function wy(){this.a=new im}function dy(){this.a=new rm}function gy(){this.a=new vS}function vy(){this.j=new im}function py(){this.a=new Yj}function my(){this.a=new yo}function ky(){this.a=new Fu}function yy(){yy=O;Tce=new f}function My(){My=O;ase=new Ey}function Ty(){Ty=O;sse=new jy}function jy(){sb.call(this,"")}function Ey(){sb.call(this,"")}function Sy(n){xin.call(this,n)}function Py(n){xin.call(this,n)}function Cy(n){eb.call(this,n)}function Iy(n){VE.call(this,n)}function Oy(n){VE.call(this,n)}function Ay(n){Iy.call(this,n)}function Ly(n){Iy.call(this,n)}function Ny(n){Iy.call(this,n)}function $y(n){f8.call(this,n)}function Dy(n){f8.call(this,n)}function xy(n){U_.call(this,n)}function Ry(n){JE.call(this,n)}function Ky(n){nS.call(this,n)}function Fy(n){nS.call(this,n)}function _y(n){nS.call(this,n)}function By(n){fOn.call(this,n)}function Hy(n){By.call(this,n)}function Uy(n){zV.call(this,n)}function Gy(n){Uy.call(this,n)}function qy(){Nb.call(this,{})}function Xy(){Xy=O;mhe=new C}function Vy(){Vy=O;Eoe=new J$}function zy(){zy=O;_fe=new o}function Wy(){Wy=O;zfe=new M}function Qy(){Qy=O;che=new E}function Jy(n){zD();this.a=n}function Yy(n){Nsn();this.a=n}function Zy(n){oV();this.f=n}function nM(n){oV();this.f=n}function eM(n){hB();this.a=n}function tM(n){n.b=null;n.c=0}function rM(n,e){n.e=e;SFn(n,e)}function iM(n,e){n.a=e;nLn(n)}function aM(n,e,t){n.a[e.g]=t}function cM(n,e,t){aSn(t,n,e)}function uM(n,e){G_(e.i,n.n)}function sM(n,e){Sln(n).Cd(e)}function oM(n,e){n.a.ec().Mc(e)}function fM(n,e){return n.g-e.g}function hM(n,e){return n*n/e}function lM(n){return cJ(n),n}function bM(n){return cJ(n),n}function wM(n){return cJ(n),n}function dM(n){return new Lb(n)}function gM(n){return new eQ(n)}function vM(n){return cJ(n),n}function pM(n){return cJ(n),n}function mM(n){Uy.call(this,n)}function kM(n){Uy.call(this,n)}function yM(n){Uy.call(this,n)}function MM(n){zV.call(this,n)}function TM(n){Uy.call(this,n)}function jM(n){Uy.call(this,n)}function EM(n){Uy.call(this,n)}function SM(n){Uy.call(this,n)}function PM(n){Uy.call(this,n)}function CM(n){Uy.call(this,n)}function IM(n){Uy.call(this,n)}function OM(n){Uy.call(this,n)}function AM(n){Uy.call(this,n)}function LM(n){Uy.call(this,n)}function NM(n){Uy.call(this,n)}function $M(n){cJ(n);this.a=n}function DM(n){dln(n);return n}function xM(n){Yz(n,n.length)}function RM(n){return n.b==n.c}function KM(n){return!!n&&n.b}function FM(n){return!!n&&n.k}function _M(n){return!!n&&n.j}function BM(n,e,t){n.c.Ef(e,t)}function HM(n,e){n.be(e);e.ae(n)}function UM(n){wB();this.a=nQ(n)}function GM(){this.a=TK(nQ(MZn))}function qM(){throw dm(new Um)}function XM(){throw dm(new Um)}function VM(){throw dm(new Um)}function zM(){throw dm(new Um)}function WM(){throw dm(new Um)}function QM(){throw dm(new Um)}function JM(){JM=O;!!(OZ(),Qfe)}function YM(){Fw.call(this,"")}function ZM(){Fw.call(this,"")}function nT(){Fw.call(this,"")}function eT(){Fw.call(this,"")}function tT(n){kM.call(this,n)}function rT(n){kM.call(this,n)}function iT(n){jM.call(this,n)}function aT(n){Qw.call(this,n)}function cT(n){aT.call(this,n)}function uT(n){yx.call(this,n)}function sT(n){eR.call(this,n,0)}function oT(){R2.call(this,12,3)}function fT(n,e){return X0(n,e)}function hT(n,e){return Ren(n,e)}function lT(n,e){return n.a-e.a}function bT(n,e){return n.a-e.a}function wT(n,e){return n.a-e.a}function dT(n,e){return e in n.a}function gT(n){return n.a?n.b:0}function vT(n){return n.a?n.b:0}function pT(n,e,t){e.Cd(n.a[t])}function mT(n,e,t){e.Pe(n.a[t])}function kT(n,e){n.b=new uN(e)}function yT(n,e){n.b=e;return n}function MT(n,e){n.c=e;return n}function TT(n,e){n.f=e;return n}function jT(n,e){n.g=e;return n}function ET(n,e){n.a=e;return n}function ST(n,e){n.f=e;return n}function PT(n,e){n.k=e;return n}function CT(n,e){n.a=e;return n}function IT(n,e){n.e=e;return n}function OT(n,e){n.e=e;return n}function AT(n,e){n.f=e;return n}function LT(n,e){n.b=true;n.d=e}function NT(n,e){return n.b-e.b}function $T(n,e){return n.g-e.g}function DT(n,e){return n?0:e-1}function xT(n,e){return n?0:e-1}function RT(n,e){return n?e-1:0}function KT(n,e){return n.s-e.s}function FT(n,e){return e.rg(n)}function _T(n,e){n.b=e;return n}function BT(n,e){n.a=e;return n}function HT(n,e){n.c=e;return n}function UT(n,e){n.d=e;return n}function GT(n,e){n.e=e;return n}function qT(n,e){n.f=e;return n}function XT(n,e){n.a=e;return n}function VT(n,e){n.b=e;return n}function zT(n,e){n.c=e;return n}function WT(n,e){n.c=e;return n}function QT(n,e){n.b=e;return n}function JT(n,e){n.d=e;return n}function YT(n,e){n.e=e;return n}function ZT(n,e){n.f=e;return n}function nj(n,e){n.g=e;return n}function ej(n,e){n.a=e;return n}function tj(n,e){n.i=e;return n}function rj(n,e){n.j=e;return n}function ij(n,e){IIn();l2(e,n)}function aj(n,e,t){hV(n.a,e,t)}function cj(n){rB.call(this,n)}function uj(n){kvn.call(this,n)}function sj(n){CY.call(this,n)}function oj(n){CY.call(this,n)}function fj(n){_in.call(this,n)}function hj(n){VY.call(this,n)}function lj(n){VY.call(this,n)}function bj(){A$.call(this,"")}function wj(){this.a=0;this.b=0}function dj(){this.b=0;this.a=0}function gj(n,e){n.b=0;Nan(n,e)}function vj(n,e){n.k=e;return n}function pj(n,e){n.j=e;return n}function mj(n,e){n.c=e;n.b=true}function kj(){kj=O;twe=uPn()}function yj(){yj=O;X7e=xEn()}function Mj(){Mj=O;W7e=ZPn()}function Tj(){Tj=O;rtt=hcn()}function jj(){jj=O;Frt=REn()}function Ej(){Ej=O;uot=KEn()}function Sj(){Sj=O;sot=QAn()}function Pj(n){return n.e&&n.e()}function Cj(n){return n.l|n.m<<22}function Ij(n,e){return n.c._b(e)}function Oj(n,e){return zwn(n.b,e)}function Aj(n){return!n?null:n.d}function Lj(n){return!n?null:n.g}function Nj(n){return!n?null:n.i}function $j(n){jK(n);return n.o}function Dj(n,e){n.a+=e;return n}function xj(n,e){n.a+=e;return n}function Rj(n,e){n.a+=e;return n}function Kj(n,e){n.a+=e;return n}function Fj(n,e){while(n.Bd(e));}function _j(n){this.a=new wS(n)}function Bj(){throw dm(new Um)}function Hj(){throw dm(new Um)}function Uj(){throw dm(new Um)}function Gj(){throw dm(new Um)}function qj(){throw dm(new Um)}function Xj(){throw dm(new Um)}function Vj(n){this.a=new VV(n)}function zj(){this.a=new TKn(HQe)}function Wj(){this.b=new TKn(hVe)}function Qj(){this.a=new TKn(EYe)}function Jj(){this.b=new TKn(K1e)}function Yj(){this.b=new TKn(K1e)}function Zj(n){this.a=0;this.b=n}function nE(n){NQn();bYn(this,n)}function eE(n){WQ(n);return n.a}function tE(n){return n.b!=n.d.c}function rE(n,e){return n.d[e.p]}function iE(n,e){return jFn(n,e)}function aE(n,e,t){n.splice(e,t)}function cE(n,e){while(n.Re(e));}function uE(n){n.c?L_n(n):N_n(n)}function sE(){throw dm(new Um)}function oE(){throw dm(new Um)}function fE(){throw dm(new Um)}function hE(){throw dm(new Um)}function lE(){throw dm(new Um)}function bE(){throw dm(new Um)}function wE(){throw dm(new Um)}function dE(){throw dm(new Um)}function gE(){throw dm(new Um)}function vE(){throw dm(new Um)}function pE(){throw dm(new Xm)}function mE(){throw dm(new Xm)}function kE(n){this.a=new yE(n)}function yE(n){iun(this,n,gOn())}function ME(n){return!n||GQ(n)}function TE(n){return Hft[n]!=-1}function jE(){qfe!=0&&(qfe=0);Vfe=-1}function EE(){wce==null&&(wce=[])}function SE(n,e){HD.call(this,n,e)}function PE(n,e){SE.call(this,n,e)}function CE(n,e){this.a=n;this.b=e}function IE(n,e){this.a=n;this.b=e}function OE(n,e){this.a=n;this.b=e}function AE(n,e){this.a=n;this.b=e}function LE(n,e){this.a=n;this.b=e}function NE(n,e){this.a=n;this.b=e}function $E(n,e){this.a=n;this.b=e}function DE(n,e){this.e=n;this.d=e}function xE(n,e){this.b=n;this.c=e}function RE(n,e){this.b=n;this.a=e}function KE(n,e){this.b=n;this.a=e}function FE(n,e){this.b=n;this.a=e}function _E(n,e){this.b=n;this.a=e}function BE(n,e){this.a=n;this.b=e}function HE(n,e){this.a=n;this.b=e}function UE(n,e){this.a=n;this.f=e}function GE(n,e){this.g=n;this.i=e}function qE(n,e){this.f=n;this.g=e}function XE(n,e){this.b=n;this.c=e}function VE(n){GD(n.dc());this.c=n}function zE(n,e){this.a=n;this.b=e}function WE(n,e){this.a=n;this.b=e}function QE(n){this.a=bG(nQ(n),15)}function JE(n){this.a=bG(nQ(n),15)}function YE(n){this.a=bG(nQ(n),85)}function ZE(n){this.b=bG(nQ(n),85)}function nS(n){this.b=bG(nQ(n),51)}function eS(){this.q=new t.Date}function tS(n,e){this.a=n;this.b=e}function rS(n,e){return Lz(n.b,e)}function iS(n,e){return n.b.Hc(e)}function aS(n,e){return n.b.Ic(e)}function cS(n,e){return n.b.Qc(e)}function uS(n,e){return n.b.Hc(e)}function sS(n,e){return n.c.uc(e)}function oS(n,e){return bdn(n.c,e)}function fS(n,e){return n.a._b(e)}function hS(n,e){return n>e&&e0}function FP(n,e){return kwn(n,e)<0}function _P(n,e){return HX(n.a,e)}function BP(n,e){z0.call(this,n,e)}function HP(n){aQ();U_.call(this,n)}function UP(n,e){YX(n,n.length,e)}function GP(n,e){kW(n,n.length,e)}function qP(n,e){return n.a.get(e)}function XP(n,e){return Lz(n.e,e)}function VP(n){return cJ(n),false}function zP(n){this.a=bG(nQ(n),229)}function WP(n){d3.call(this,n,21)}function QP(n,e){qE.call(this,n,e)}function JP(n,e){qE.call(this,n,e)}function YP(n,e){this.b=n;this.a=e}function ZP(n,e){this.d=n;this.e=e}function nC(n,e){this.a=n;this.b=e}function eC(n,e){this.a=n;this.b=e}function tC(n,e){this.a=n;this.b=e}function rC(n,e){this.a=n;this.b=e}function iC(n,e){this.a=n;this.b=e}function aC(n,e){this.b=n;this.a=e}function cC(n,e){this.b=n;this.a=e}function uC(n,e){qE.call(this,n,e)}function sC(n,e){qE.call(this,n,e)}function oC(n,e){qE.call(this,n,e)}function fC(n,e){qE.call(this,n,e)}function hC(n,e){qE.call(this,n,e)}function lC(n,e){qE.call(this,n,e)}function bC(n,e){qE.call(this,n,e)}function wC(n,e){this.b=n;this.a=e}function dC(n,e){qE.call(this,n,e)}function gC(n,e){this.b=n;this.a=e}function vC(n,e){qE.call(this,n,e)}function pC(n,e){this.b=n;this.a=e}function mC(n,e){qE.call(this,n,e)}function kC(n,e){qE.call(this,n,e)}function yC(n,e){qE.call(this,n,e)}function MC(n,e,t){n.splice(e,0,t)}function TC(n,e,t){n.Mb(t)&&e.Cd(t)}function jC(n,e,t){e.Pe(n.a.Ye(t))}function EC(n,e,t){e.Dd(n.a.Ze(t))}function SC(n,e,t){e.Cd(n.a.Kb(t))}function PC(n,e){return Fx(n.c,e)}function CC(n,e){return Fx(n.e,e)}function IC(n,e){qE.call(this,n,e)}function OC(n,e){qE.call(this,n,e)}function AC(n,e){qE.call(this,n,e)}function LC(n,e){qE.call(this,n,e)}function NC(n,e){qE.call(this,n,e)}function $C(n,e){qE.call(this,n,e)}function DC(n,e){this.a=n;this.b=e}function xC(n,e){this.a=n;this.b=e}function RC(n,e){this.a=n;this.b=e}function KC(n,e){this.a=n;this.b=e}function FC(n,e){this.a=n;this.b=e}function _C(n,e){this.a=n;this.b=e}function BC(n,e){this.b=n;this.a=e}function HC(n,e){this.b=n;this.a=e}function UC(n,e){this.b=n;this.a=e}function GC(n,e){this.c=n;this.d=e}function qC(n,e){this.e=n;this.d=e}function XC(n,e){this.a=n;this.b=e}function VC(n,e){this.a=n;this.b=e}function zC(n,e){this.a=n;this.b=e}function WC(n,e){this.b=n;this.a=e}function QC(n,e){this.b=e;this.c=n}function JC(n,e){qE.call(this,n,e)}function YC(n,e){qE.call(this,n,e)}function ZC(n,e){qE.call(this,n,e)}function nI(n,e){qE.call(this,n,e)}function eI(n,e){qE.call(this,n,e)}function tI(n,e){qE.call(this,n,e)}function rI(n,e){qE.call(this,n,e)}function iI(n,e){qE.call(this,n,e)}function aI(n,e){qE.call(this,n,e)}function cI(n,e){qE.call(this,n,e)}function uI(n,e){qE.call(this,n,e)}function sI(n,e){qE.call(this,n,e)}function oI(n,e){qE.call(this,n,e)}function fI(n,e){qE.call(this,n,e)}function hI(n,e){qE.call(this,n,e)}function lI(n,e){qE.call(this,n,e)}function bI(n,e){qE.call(this,n,e)}function wI(n,e){qE.call(this,n,e)}function dI(n,e){qE.call(this,n,e)}function gI(n,e){qE.call(this,n,e)}function vI(n,e){qE.call(this,n,e)}function pI(n,e){qE.call(this,n,e)}function mI(n,e){qE.call(this,n,e)}function kI(n,e){qE.call(this,n,e)}function yI(n,e){qE.call(this,n,e)}function MI(n,e){qE.call(this,n,e)}function TI(n,e){qE.call(this,n,e)}function jI(n,e){qE.call(this,n,e)}function EI(n,e){qE.call(this,n,e)}function SI(n,e){qE.call(this,n,e)}function PI(n,e){qE.call(this,n,e)}function CI(n,e){qE.call(this,n,e)}function II(n,e){qE.call(this,n,e)}function OI(n,e){this.b=n;this.a=e}function AI(n,e){qE.call(this,n,e)}function LI(n,e){this.a=n;this.b=e}function NI(n,e){this.a=n;this.b=e}function $I(n,e){this.a=n;this.b=e}function DI(n,e){qE.call(this,n,e)}function xI(n,e){qE.call(this,n,e)}function RI(n,e){this.a=n;this.b=e}function KI(n,e){LU();return e!=n}function FI(n){PK(n.a);return n.b}function _I(n){U$n(n,n.c);return n}function BI(){kj();return new twe}function HI(){zB();this.a=new BF}function UI(){lFn();this.a=new uk}function GI(){u2();this.b=new uk}function qI(n,e){this.b=n;this.d=e}function XI(n,e){this.a=n;this.b=e}function VI(n,e){this.a=n;this.b=e}function zI(n,e){this.a=n;this.b=e}function WI(n,e){this.b=n;this.a=e}function QI(n,e){qE.call(this,n,e)}function JI(n,e){qE.call(this,n,e)}function YI(n,e){qE.call(this,n,e)}function ZI(n,e){qE.call(this,n,e)}function nO(n,e){qE.call(this,n,e)}function eO(n,e){qE.call(this,n,e)}function tO(n,e){qE.call(this,n,e)}function rO(n,e){qE.call(this,n,e)}function iO(n,e){qE.call(this,n,e)}function aO(n,e){qE.call(this,n,e)}function cO(n,e){qE.call(this,n,e)}function uO(n,e){qE.call(this,n,e)}function sO(n,e){qE.call(this,n,e)}function oO(n,e){qE.call(this,n,e)}function fO(n,e){qE.call(this,n,e)}function hO(n,e){qE.call(this,n,e)}function lO(n,e){qE.call(this,n,e)}function bO(n,e){qE.call(this,n,e)}function wO(n,e){qE.call(this,n,e)}function dO(n,e){qE.call(this,n,e)}function gO(n,e){qE.call(this,n,e)}function vO(n,e){qE.call(this,n,e)}function pO(n,e){qE.call(this,n,e)}function mO(n,e){qE.call(this,n,e)}function kO(n,e){this.b=n;this.a=e}function yO(n,e){this.b=n;this.a=e}function MO(n,e){this.b=n;this.a=e}function TO(n,e){this.b=n;this.a=e}function jO(n,e){this.a=n;this.b=e}function EO(n,e){this.a=n;this.b=e}function SO(n,e){this.a=n;this.b=e}function PO(n,e){this.a=n;this.b=e}function CO(n,e){qE.call(this,n,e)}function IO(n,e){qE.call(this,n,e)}function OO(n,e){qE.call(this,n,e)}function AO(n,e){qE.call(this,n,e)}function LO(n,e){qE.call(this,n,e)}function NO(n,e){qE.call(this,n,e)}function $O(n,e){qE.call(this,n,e)}function DO(n,e){qE.call(this,n,e)}function xO(n,e){qE.call(this,n,e)}function RO(n,e){qE.call(this,n,e)}function KO(n,e){qE.call(this,n,e)}function FO(n,e){qE.call(this,n,e)}function _O(n,e){qE.call(this,n,e)}function BO(n,e){qE.call(this,n,e)}function HO(n,e){qE.call(this,n,e)}function UO(n,e){qE.call(this,n,e)}function GO(n,e){qE.call(this,n,e)}function qO(n,e){qE.call(this,n,e)}function XO(n,e){qE.call(this,n,e)}function VO(n,e){qE.call(this,n,e)}function zO(n,e){this.a=n;this.b=e}function WO(n,e){this.a=n;this.b=e}function QO(n,e){this.a=n;this.b=e}function JO(n,e){this.a=n;this.b=e}function YO(n,e){this.a=n;this.b=e}function ZO(n,e){this.a=n;this.b=e}function nA(n,e){this.a=n;this.b=e}function eA(n,e){this.a=n;this.b=e}function tA(n,e){this.a=n;this.b=e}function rA(n,e){this.a=n;this.b=e}function iA(n,e){this.a=n;this.b=e}function aA(n,e){this.a=n;this.b=e}function cA(n,e){this.a=n;this.b=e}function uA(n,e){this.b=n;this.a=e}function sA(n,e){this.b=n;this.a=e}function oA(n,e){this.b=n;this.a=e}function fA(n,e){this.b=n;this.a=e}function hA(n,e){this.a=n;this.b=e}function lA(n,e){this.a=n;this.b=e}function bA(n,e){qE.call(this,n,e)}function wA(n,e){this.a=n;this.b=e}function dA(n,e){this.a=n;this.b=e}function gA(n,e){qE.call(this,n,e)}function vA(n,e){this.f=n;this.c=e}function pA(n,e){return Fx(n.g,e)}function mA(n,e){return Fx(e.b,n)}function kA(n,e){return Spn(n.a,e)}function yA(n,e){return-n.b.af(e)}function MA(n,e){!!n&&jJ(Zet,n,e)}function TA(n,e){n.i=null;vun(n,e)}function jA(n,e,t){PSn(e,IAn(n,t))}function EA(n,e,t){PSn(e,IAn(n,t))}function SA(n,e){XRn(n.a,bG(e,58))}function PA(n,e){htn(n.a,bG(e,12))}function CA(n,e){this.a=n;this.b=e}function IA(n,e){this.a=n;this.b=e}function OA(n,e){this.a=n;this.b=e}function AA(n,e){this.a=n;this.b=e}function LA(n,e){this.a=n;this.b=e}function NA(n,e){this.d=n;this.b=e}function $A(n,e){this.e=n;this.a=e}function DA(n,e){this.b=n;this.c=e}function xA(n,e){this.i=n;this.g=e}function RA(n,e){this.d=n;this.e=e}function KA(n,e){$rn(new _D(n),e)}function FA(n){return Epn(n.c,n.b)}function _A(n){return!n?null:n.md()}function BA(n){return n==null?null:n}function HA(n){return typeof n===gZn}function UA(n){return typeof n===wZn}function GA(n){return typeof n===dZn}function qA(n,e){return kwn(n,e)==0}function XA(n,e){return kwn(n,e)>=0}function VA(n,e){return kwn(n,e)!=0}function zA(n,e){return ion(n.Kc(),e)}function WA(n,e){return n.Rd().Xb(e)}function QA(n){pvn(n);return n.d.gc()}function JA(n){Gq(n==null);return n}function YA(n,e){n.a+=""+e;return n}function ZA(n,e){n.a+=""+e;return n}function nL(n,e){n.a+=""+e;return n}function eL(n,e){n.a+=""+e;return n}function tL(n,e){n.a+=""+e;return n}function rL(n,e){return n.a+=""+e,n}function iL(n){return""+(cJ(n),n)}function aL(n){Fz(this);Bsn(this,n)}function cL(){t2();uV.call(this)}function uL(n,e){XV.call(this,n,e)}function sL(n,e){XV.call(this,n,e)}function oL(n,e){XV.call(this,n,e)}function fL(n,e){w8(n,e,n.c.b,n.c)}function hL(n,e){w8(n,e,n.a,n.a.a)}function lL(n){b3(n,0);return null}function bL(){this.b=0;this.a=false}function wL(){this.b=0;this.a=false}function dL(){this.b=new wS(lin(12))}function gL(){gL=O;nme=xbn(Kkn())}function vL(){vL=O;hCe=xbn(pKn())}function pL(){pL=O;hze=xbn(bon())}function mL(){mL=O;$m();the=new rm}function kL(n){n.a=0;n.b=0;return n}function yL(n,e){n.a=e.g+1;return n}function ML(n,e){m_.call(this,n,e)}function TL(n,e){bF.call(this,n,e)}function jL(n,e){xA.call(this,n,e)}function EL(n,e){Yx.call(this,n,e)}function SL(n,e){ifn.call(this,n,e)}function PL(n,e){CP();jJ(Qtt,n,e)}function CL(n,e){n.q.setTime(n6(e))}function IL(n){t.clearTimeout(n)}function OL(n){return nQ(n),new sN(n)}function AL(n,e){return BA(n)===BA(e)}function LL(n,e){return n.a.a.a.cc(e)}function NL(n,e){return o1(n.a,0,e)}function $L(n){return IW(bG(n,74))}function DL(n){return c0((cJ(n),n))}function xL(n){return c0((cJ(n),n))}function RL(n){return M$(n.l,n.m,n.h)}function KL(n,e){return k$(n.a,e.a)}function FL(n,e){return oW(n.a,e.a)}function _L(n,e){return bgn(n.a,e.a)}function BL(n,e){return n.indexOf(e)}function HL(n,e){return n.j[e.p]==2}function UL(n,e){return n==e?0:n?1:-1}function GL(n){return n<10?"0"+n:""+n}function qL(n){return typeof n===dZn}function XL(n){return n==DTe||n==KTe}function VL(n){return n==DTe||n==xTe}function zL(n,e){return k$(n.g,e.g)}function WL(n){return Ctn(n.b.b,n,0)}function QL(){vX.call(this,0,0,0,0)}function JL(){cd.call(this,new b8)}function YL(n,e){Ken(n,0,n.length,e)}function ZL(n,e){ED(n.a,e);return e}function nN(n,e){WB();return e.a+=n}function eN(n,e){WB();return e.a+=n}function tN(n,e){WB();return e.c+=n}function rN(n,e){ED(n.c,e);return n}function iN(n,e){yon(n.a,e);return n}function aN(n){this.a=BI();this.b=n}function cN(n){this.a=BI();this.b=n}function uN(n){this.a=n.a;this.b=n.b}function sN(n){this.a=n;Gh.call(this)}function oN(n){this.a=n;Gh.call(this)}function fN(){yY.call(this,0,0,0,0)}function hN(n){return yon(new mJ,n)}function lN(n){return BJ(bG(n,123))}function bN(n){return n.vh()&&n.wh()}function wN(n){return n!=M8e&&n!=T8e}function dN(n){return n==o5e||n==f5e}function gN(n){return n==l5e||n==s5e}function vN(n){return n==_Be||n==FBe}function pN(n,e){return k$(n.g,e.g)}function mN(n,e){return new ifn(e,n)}function kN(n,e){return new ifn(e,n)}function yN(n){return aG(n.b.Kc(),n.a)}function MN(n,e){wbn(n,e);Dan(n,n.D)}function TN(n,e,t){Aan(n,e);Man(n,t)}function jN(n,e,t){Ean(n,e);jan(n,t)}function EN(n,e,t){San(n,e);Pan(n,t)}function SN(n,e,t){Tan(n,e);Ian(n,t)}function PN(n,e,t){Can(n,e);Oan(n,t)}function CN(n,e,t){xK.call(this,n,e,t)}function IN(n){vA.call(this,n,true)}function ON(){QP.call(this,"Tail",3)}function AN(){QP.call(this,"Head",1)}function LN(n){fHn();Xsn.call(this,n)}function NN(n){vX.call(this,n,n,n,n)}function $N(n){n.c=$nn(kce,jZn,1,0,5,1)}function DN(n){n.b&&wXn(n);return n.a}function xN(n){n.b&&wXn(n);return n.c}function RN(n,e){if(Sde){return}n.b=e}function KN(n,e){return n[n.length]=e}function FN(n,e){return n[n.length]=e}function _N(n,e){return Oin(e,d0(n))}function BN(n,e){return Oin(e,d0(n))}function HN(n,e){return Ecn(zW(n.d),e)}function UN(n,e){return Ecn(zW(n.g),e)}function GN(n,e){return Ecn(zW(n.j),e)}function qN(n,e){bF.call(this,n.b,e)}function XN(n,e){cen(Y5(n.a),j2(e))}function VN(n,e){cen(xtn(n.a),E2(e))}function zN(n,e,t){EN(t,t.i+n,t.j+e)}function WN(n,e,t){bQ(n.c[e.g],e.g,t)}function QN(n,e,t){bG(n.c,71).Gi(e,t)}function JN(n,e,t){bQ(n,e,t);return t}function YN(n){Lin(n.Sf(),new Dd(n))}function ZN(n){return n!=null?Vun(n):0}function n$(n){return n==null?0:Vun(n)}function e$(n){eZn();em.call(this,n)}function t$(n){this.a=n;nG.call(this,n)}function r$(){r$=O;t.Math.log(2)}function i$(){i$=O;Fat=(EP(),lnt)}function a$(){a$=O;Vqe=new ovn(j5e)}function c$(){c$=O;new u$;new im}function u$(){new rm;new rm;new rm}function s$(){throw dm(new CM(sce))}function o$(){throw dm(new CM(sce))}function f$(){throw dm(new CM(oce))}function h$(){throw dm(new CM(oce))}function l$(n){this.a=n;ZE.call(this,n)}function b$(n){this.a=n;ZE.call(this,n)}function w$(n,e){iQ();this.a=n;this.b=e}function d$(n,e){nQ(e);bY(n).Jc(new p)}function g$(n,e){zX(n.c,n.c.length,e)}function v$(n){return n.ae?1:0}function y$(n,e){return kwn(n,e)>0?n:e}function M$(n,e,t){return{l:n,m:e,h:t}}function T$(n,e){n.a!=null&&PA(e,n.a)}function j$(n){f2(n,null);b2(n,null)}function E$(n,e,t){return jJ(n.g,t,e)}function S$(n,e,t){return hmn(e,t,n.c)}function P$(n,e,t){return jJ(n.k,t,e)}function C$(n,e,t){yWn(n,e,t);return t}function I$(n,e){a2();return e.n.b+=n}function O$(n){VZ.call(this);this.b=n}function A$(n){RF.call(this);this.a=n}function L$(){QP.call(this,"Range",2)}function N$(n){this.b=n;this.a=new im}function $$(n){this.b=new ce;this.a=n}function D$(n){n.a=new H;n.c=new H}function x$(n){n.a=new rm;n.d=new rm}function R$(n){w2(n,null);d2(n,null)}function K$(n,e){return EWn(n.a,e,null)}function F$(n,e){return jJ(n.a,e.a,e)}function _$(n){return new PO(n.a,n.b)}function B$(n){return new PO(n.c,n.d)}function H$(n){return new PO(n.c,n.d)}function U$(n,e){return ozn(n.c,n.b,e)}function G$(n,e){return n!=null&&Oyn(n,e)}function q$(n,e){return rhn(n.Kc(),e)!=-1}function X$(n){return n.Ob()?n.Pb():null}function V$(n){this.b=(dZ(),new Zw(n))}function z$(n){this.a=n;rm.call(this)}function W$(){Yx.call(this,null,null)}function Q$(){Zx.call(this,null,null)}function J$(){qE.call(this,"INSTANCE",0)}function Y$(){GEn();this.a=new TKn(sTe)}function Z$(n){return Tmn(n,0,n.length)}function nD(n,e){return new ux(n.Kc(),e)}function eD(n,e){return n.a.Bc(e)!=null}function tD(n,e){NVn(n);n.Gc(bG(e,15))}function rD(n,e,t){n.c.bd(e,bG(t,136))}function iD(n,e,t){n.c.Ui(e,bG(t,136))}function aD(n,e){if(n.c){fq(e);X1(e)}}function cD(n,e){n.q.setHours(e);$qn(n,e)}function uD(n,e){UR(e,n.a.a.a,n.a.a.b)}function sD(n,e,t,r){bQ(n.a[e.g],t.g,r)}function oD(n,e,t){return n.a[e.g][t.g]}function fD(n,e){return n.e[e.c.p][e.p]}function hD(n,e){return n.c[e.c.p][e.p]}function lD(n,e){return n.a[e.c.p][e.p]}function bD(n,e){return n.j[e.p]=lRn(e)}function wD(n,e){return n.a.Bc(e)!=null}function dD(n,e){return bM(MK(e.a))<=n}function gD(n,e){return bM(MK(e.a))>=n}function vD(n,e){return o7(n.f,e.Pg())}function pD(n,e){return n.a*e.a+n.b*e.b}function mD(n,e){return n.a0?e/(n*n):e*100}function IR(n,e){return n>0?e*e/n:e*e*100}function OR(n,e){return bG(hrn(n.a,e),34)}function AR(n,e){IIn();return zNn(n,e.e,e)}function LR(n,e,t){iP();return t.Mg(n,e)}function NR(n){can();return n.e.a+n.f.a/2}function $R(n,e,t){can();return t.e.a-n*e}function DR(n){can();return n.e.b+n.f.b/2}function xR(n,e,t){can();return t.e.b-n*e}function RR(n){n.d=new pR(n);n.e=new rm}function KR(){this.a=new U1;this.b=new U1}function FR(n){this.c=n;this.a=1;this.b=1}function _R(n){hYn();km(this);this.Ff(n)}function BR(n,e,t){Aen();n.pf(e)&&t.Cd(n)}function HR(n,e,t){return ED(e,Bvn(n,t))}function UR(n,e,t){n.a+=e;n.b+=t;return n}function GR(n,e,t){n.a*=e;n.b*=t;return n}function qR(n,e){n.a=e.a;n.b=e.b;return n}function XR(n){n.a=-n.a;n.b=-n.b;return n}function VR(n,e,t){n.a-=e;n.b-=t;return n}function zR(n){vS.call(this);kcn(this,n)}function WR(){qE.call(this,"GROW_TREE",0)}function QR(){qE.call(this,"POLYOMINO",0)}function JR(n,e,t){ven.call(this,n,e,t,2)}function YR(n,e,t){Fdn(Y5(n.a),e,j2(t))}function ZR(n,e){IP();Yx.call(this,n,e)}function nK(n,e){OP();Zx.call(this,n,e)}function eK(n,e){OP();nK.call(this,n,e)}function tK(n,e){OP();Zx.call(this,n,e)}function rK(n,e){return n.c.Fc(bG(e,136))}function iK(n,e,t){Fdn(xtn(n.a),e,E2(t))}function aK(n){this.c=n;San(n,0);Pan(n,0)}function cK(n,e){i$();DX.call(this,n,e)}function uK(n,e){i$();cK.call(this,n,e)}function sK(n,e){i$();cK.call(this,n,e)}function oK(n,e){i$();DX.call(this,n,e)}function fK(n,e){i$();sK.call(this,n,e)}function hK(n,e){i$();oK.call(this,n,e)}function lK(n,e){i$();DX.call(this,n,e)}function bK(n,e,t){return e.zl(n.e,n.c,t)}function wK(n,e,t){return e.Al(n.e,n.c,t)}function dK(n,e,t){return eVn(Rtn(n,e),t)}function gK(n,e){return Twn(n.e,bG(e,54))}function vK(n){return n==null?null:xQn(n)}function pK(n){return n==null?null:TOn(n)}function mK(n){return n==null?null:fvn(n)}function kK(n){return n==null?null:fvn(n)}function yK(n){Gq(n==null||UA(n));return n}function MK(n){Gq(n==null||GA(n));return n}function TK(n){Gq(n==null||HA(n));return n}function jK(n){if(n.o!=null){return}hxn(n)}function EK(n){if(!n){throw dm(new _m)}}function SK(n){if(!n){throw dm(new Km)}}function PK(n){if(!n){throw dm(new Xm)}}function CK(n){if(!n){throw dm(new Bm)}}function IK(n){if(!n){throw dm(new Gm)}}function OK(){OK=O;Gtt=new Wk;new Qk}function AK(){AK=O;FQe=new Np("root")}function LK(){Ucn.call(this);this.Bb|=S0n}function NK(n,e){this.d=n;Nw(this);this.b=e}function $K(n,e){Gnn.call(this,n);this.a=e}function DK(n,e){Gnn.call(this,n);this.a=e}function xK(n,e,t){x7.call(this,n,e,t,null)}function RK(n,e,t){x7.call(this,n,e,t,null)}function KK(n,e){this.c=n;DE.call(this,n,e)}function FK(n,e){this.a=n;KK.call(this,n,e)}function _K(n){this.q=new t.Date(n6(n))}function BK(n){if(n>8){return 0}return n+1}function HK(n,e){if(Sde){return}ED(n.a,e)}function UK(n,e){nP();return Ion(e.d.i,n)}function GK(n,e){Lsn();return new lHn(e,n)}function qK(n,e,t){return n.Ne(e,t)<=0?t:e}function XK(n,e,t){return n.Ne(e,t)<=0?e:t}function VK(n,e){return bG(hrn(n.b,e),143)}function zK(n,e){return bG(hrn(n.c,e),233)}function WK(n){return bG(Yq(n.a,n.b),294)}function QK(n){return new PO(n.c,n.d+n.a)}function JK(n){return(cJ(n),n)?1231:1237}function YK(n){return a2(),vN(bG(n,203))}function ZK(){ZK=O;ame=ygn((emn(),b9e))}function nF(n,e){e.a?nDn(n,e):wD(n.a,e.b)}function eF(n,e,t){++n.j;n.tj();xnn(n,e,t)}function tF(n,e,t){++n.j;n.qj(e,n.Zi(e,t))}function rF(n,e,t){var r;r=n.fd(e);r.Rb(t)}function iF(n,e,t){t=FUn(n,e,6,t);return t}function aF(n,e,t){t=FUn(n,e,3,t);return t}function cF(n,e,t){t=FUn(n,e,9,t);return t}function uF(n,e){i1(e,z2n);n.f=e;return n}function sF(n,e){return(e&pZn)%n.d.length}function oF(n,e,t){return gXn(n.c,n.b,e,t)}function fF(n,e){this.c=n;_in.call(this,e)}function hF(n,e){this.a=n;Bp.call(this,e)}function lF(n,e){this.a=n;Bp.call(this,e)}function bF(n,e){Np.call(this,n);this.a=e}function wF(n,e){Xp.call(this,n);this.a=e}function dF(n,e){Xp.call(this,n);this.a=e}function gF(n){wpn.call(this,0,0);this.f=n}function vF(n,e,t){n.a+=Tmn(e,0,t);return n}function pF(n){!n.a&&(n.a=new P);return n.a}function mF(n,e){var t;t=n.e;n.e=e;return t}function kF(n,e){var t;t=e;return!!n.Fe(t)}function yF(n,e){Qx();return n==e?0:n?1:-1}function MF(n,e){n.a.bd(n.b,e);++n.b;n.c=-1}function TF(n){n.b?TF(n.b):n.f.c.zc(n.e,n.d)}function jF(n){Fz(n.e);n.d.b=n.d;n.d.a=n.d}function EF(n,e,t){jS();Db(n,e.Ve(n.a,t))}function SF(n,e,t){return zz(n,bG(e,22),t)}function PF(n,e){return hT(new Array(e),n)}function CF(n){return MV(_V(n,32))^MV(n)}function IF(n){return String.fromCharCode(n)}function OF(n){return n==null?null:n.message}function AF(n,e,t){return n.apply(e,t);var r}function LF(n,e){var t;t=n[H0n];t.call(n,e)}function NF(n,e){var t;t=n[H0n];t.call(n,e)}function $F(n,e){nP();return!Ion(e.d.i,n)}function DF(n,e,t,r){vX.call(this,n,e,t,r)}function xF(){VF.call(this);this.a=new wj}function RF(){this.n=new wj;this.o=new wj}function KF(){this.b=new wj;this.c=new im}function FF(){this.a=new im;this.b=new im}function _F(){this.a=new ve;this.b=new Qm}function BF(){this.b=new b8;this.a=new b8}function HF(){this.b=new uk;this.a=new uk}function UF(){this.b=new rm;this.a=new rm}function GF(){this.b=new Wj;this.a=new Pc}function qF(){this.a=new dl;this.b=new la}function XF(){this.a=new im;this.d=new im}function VF(){this.n=new _k;this.i=new fN}function zF(n){this.a=(Tcn(n,d1n),new H7(n))}function WF(n){this.a=(Tcn(n,d1n),new H7(n))}function QF(n){return n<100?null:new fj(n)}function JF(n,e){return n.n.a=(cJ(e),e)+10}function YF(n,e){return n.n.a=(cJ(e),e)+10}function ZF(n,e){return e==n||wSn(TRn(e),n)}function n_(n,e){return jJ(n.a,e,"")==null}function e_(n,e){var t;t=e.qi(n.a);return t}function t_(n,e){n.a+=e.a;n.b+=e.b;return n}function r_(n,e){n.a-=e.a;n.b-=e.b;return n}function i_(n){Jm(n.j.c,0);n.a=-1;return n}function a_(n,e,t){t=FUn(n,e,11,t);return t}function c_(n,e,t){t!=null&&Jcn(e,yTn(n,t))}function u_(n,e,t){t!=null&&Ycn(e,yTn(n,t))}function s_(n,e,t,r){gz.call(this,n,e,t,r)}function o_(n,e,t,r){gz.call(this,n,e,t,r)}function f_(n,e,t,r){o_.call(this,n,e,t,r)}function h_(n,e,t,r){mz.call(this,n,e,t,r)}function l_(n,e,t,r){mz.call(this,n,e,t,r)}function b_(n,e,t,r){mz.call(this,n,e,t,r)}function w_(n,e,t,r){l_.call(this,n,e,t,r)}function d_(n,e,t,r){l_.call(this,n,e,t,r)}function g_(n,e,t,r){b_.call(this,n,e,t,r)}function v_(n,e,t,r){d_.call(this,n,e,t,r)}function p_(n,e,t,r){Ez.call(this,n,e,t,r)}function m_(n,e){kM.call(this,_re+n+Xte+e)}function k_(n,e){return n.jk().wi().ri(n,e)}function y_(n,e){return n.jk().wi().ti(n,e)}function M_(n,e){return cJ(n),BA(n)===BA(e)}function T_(n,e){return cJ(n),BA(n)===BA(e)}function j_(n,e){return n.b.Bd(new eC(n,e))}function E_(n,e){return n.b.Bd(new tC(n,e))}function S_(n,e){return n.b.Bd(new rC(n,e))}function P_(n,e){return n.e=bG(n.d.Kb(e),159)}function C_(n,e,t){return n.lastIndexOf(e,t)}function I_(n,e,t){return bgn(n[e.a],n[t.a])}function O_(n,e){return Ehn(e,(IYn(),YKe),n)}function A_(n,e){return k$(e.a.d.p,n.a.d.p)}function L_(n,e){return k$(n.a.d.p,e.a.d.p)}function N_(n,e){return bgn(n.c-n.s,e.c-e.s)}function $_(n,e){return bgn(n.b.e.a,e.b.e.a)}function D_(n,e){return bgn(n.c.e.a,e.c.e.a)}function x_(n){return!n.c?-1:Ctn(n.c.a,n,0)}function R_(n){return n==p8e||n==k8e||n==m8e}function K_(n,e){this.c=n;eW.call(this,n,e)}function F_(n,e,t){this.a=n;eR.call(this,e,t)}function __(n){this.c=n;oL.call(this,JZn,0)}function B_(n,e,t){this.c=e;this.b=t;this.a=n}function H_(n){LU();this.d=n;this.a=new KD}function U_(n){wB();this.a=(dZ(),new aT(n))}function G_(n,e){dN(n.f)?txn(n,e):mCn(n,e)}function q_(n,e){wG.call(this,n,n.length,e)}function X_(n,e){if(Sde){return}!!e&&(n.d=e)}function V_(n,e){return G$(e,15)&&W_n(n.c,e)}function z_(n,e,t){return bG(n.c,71).Wk(e,t)}function W_(n,e,t){return bG(n.c,71).Xk(e,t)}function Q_(n,e,t){return bK(n,bG(e,343),t)}function J_(n,e,t){return wK(n,bG(e,343),t)}function Y_(n,e,t){return SPn(n,bG(e,343),t)}function Z_(n,e,t){return GCn(n,bG(e,343),t)}function nB(n,e){return e==null?null:Jwn(n.b,e)}function eB(n){return GA(n)?(cJ(n),n):n.ue()}function tB(n){return!isNaN(n)&&!isFinite(n)}function rB(n){D$(this);XY(this);esn(this,n)}function iB(n){$N(this);kG(this.c,0,n.Pc())}function aB(n,e,t){this.a=n;this.b=e;this.c=t}function cB(n,e,t){this.a=n;this.b=e;this.c=t}function uB(n,e,t){this.d=n;this.b=t;this.a=e}function sB(n){this.a=n;pS();Xon(Date.now())}function oB(n){RQ(n.a);Rnn(n.c,n.b);n.b=null}function fB(){fB=O;wwe=new U;dwe=new G}function hB(){hB=O;jtt=$nn(kce,jZn,1,0,5,1)}function lB(){lB=O;bit=$nn(kce,jZn,1,0,5,1)}function bB(){bB=O;vit=$nn(kce,jZn,1,0,5,1)}function wB(){wB=O;new Im((dZ(),dZ(),lbe))}function dB(n){Hen();return Gan((Ben(),hde),n)}function gB(n){Sbn();return Gan((pnn(),Dde),n)}function vB(n){qkn();return Gan((E8(),yve),n)}function pB(n){Jrn();return Gan((S8(),Eve),n)}function mB(n){nBn();return Gan((bfn(),qve),n)}function kB(n){ran();return Gan((gnn(),upe),n)}function yB(n){Uen();return Gan((dnn(),gpe),n)}function MB(n){rrn();return Gan((vnn(),Ppe),n)}function TB(n){tZn();return Gan((gL(),nme),n)}function jB(n){ufn();return Gan((qen(),kme),n)}function EB(n){jyn();return Gan((Ven(),Xme),n)}function SB(n){Tyn();return Gan((Xen(),jke),n)}function PB(n){XS();return Gan((o6(),Oke),n)}function CB(n){Yrn();return Gan((P8(),xye),n)}function IB(n){trn();return Gan((mnn(),GMe),n)}function OB(n){bIn();return Gan((Frn(),oTe),n)}function AB(n){Jfn();return Gan((Wen(),_Te),n)}function LB(n){zmn();return Gan((zen(),bje),n)}function NB(n,e){if(!n){throw dm(new jM(e))}}function $B(n){if(!n){throw dm(new EM(SZn))}}function DB(n,e){if(n!=e){throw dm(new Gm)}}function xB(n,e,t){this.a=n;this.b=e;this.c=t}function RB(n,e,t){this.a=n;this.b=e;this.c=t}function KB(n,e,t){this.a=n;this.b=e;this.c=t}function FB(n,e,t){this.b=n;this.a=e;this.c=t}function _B(n,e,t){this.b=n;this.c=e;this.a=t}function BB(n,e,t){this.a=n;this.b=e;this.c=t}function HB(n,e,t){this.e=e;this.b=n;this.d=t}function UB(n,e,t){this.b=n;this.a=e;this.c=t}function GB(n,e,t){jS();n.a.Yd(e,t);return e}function qB(n){var e;e=new Sn;e.e=n;return e}function XB(n){var e;e=new Mk;e.b=n;return e}function VB(){VB=O;_Se=new Ft;BSe=new _t}function zB(){zB=O;qCe=new br;GCe=new wr}function WB(){WB=O;$Oe=new Ti;DOe=new ji}function QB(n){yun();return Gan((Q7(),VAe),n)}function JB(n){YYn();return Gan((vL(),hCe),n)}function YB(n){Wfn();return Gan((Jen(),_Ce),n)}function ZB(n){Qfn();return Gan((Qen(),EAe),n)}function nH(n){yPn();return Gan((_rn(),RAe),n)}function eH(n){d_n();return Gan((lon(),gLe),n)}function tH(n){jAn();return Gan((uan(),wNe),n)}function rH(n){V7();return Gan(($8(),pNe),n)}function iH(n){Icn();return Gan((z7(),TNe),n)}function aH(n){ocn();return Gan((W7(),CNe),n)}function cH(n){Emn();return Gan((Brn(),DNe),n)}function uH(n){Zrn();return Gan((O8(),FNe),n)}function sH(n){HIn();return Gan((fan(),p$e),n)}function oH(n){o_n();return Gan((Ohn(),O$e),n)}function fH(n){sfn();return Gan((Y7(),D$e),n)}function hH(n){irn();return Gan((Z7(),_$e),n)}function lH(n){r5();return Gan((I8(),G$e),n)}function bH(n){OSn();return Gan((oan(),f$e),n)}function wH(n){Lhn();return Gan((J7(),GNe),n)}function dH(n){cOn();return Gan((san(),YNe),n)}function gH(n){ntn();return Gan((A8(),t$e),n)}function vH(n){Wvn();return Gan((Urn(),exe),n)}function pH(n){PKn();return Gan((ffn(),NBe),n)}function mH(n){Nwn();return Gan((nnn(),KBe),n)}function kH(n){rMn();return Gan((Yen(),GBe),n)}function yH(n){Myn();return Gan((Hrn(),JBe),n)}function MH(n){CHn();return Gan((Ahn(),oHe),n)}function TH(n){Smn();return Gan((Zen(),dHe),n)}function jH(n){arn();return Gan((L8(),mHe),n)}function EH(n){fcn();return Gan((rnn(),jHe),n)}function SH(n){son();return Gan((enn(),IHe),n)}function PH(n){Aln();return Gan((tnn(),$He),n)}function CH(n){Ebn();return Gan((inn(),_He),n)}function IH(n){scn();return Gan((ann(),qHe),n)}function OH(n){Yfn();return Gan((cnn(),QHe),n)}function AH(n){ucn();return Gan((wnn(),YUe),n)}function LH(n){i5();return Gan((N8(),AGe),n)}function NH(n){p0();return Gan((R8(),Oqe),n)}function $H(n){m0();return Gan((K8(),$qe),n)}function DH(n){q7();return Gan((F8(),TXe),n)}function xH(n){v0();return Gan((_8(),JXe),n)}function RH(n){Njn();return Gan((wtn(),lVe),n)}function KH(n){DHn();return Gan((pL(),hze),n)}function FH(n){Lln();return Gan((unn(),Sze),n)}function _H(n){Tbn();return Gan((btn(),WWe),n)}function BH(n){s3();return Gan((D8(),ZWe),n)}function HH(n){Mun();return Gan((x8(),UQe),n)}function UH(n){YPn();return Gan((Grn(),nJe),n)}function GH(n){jbn();return Gan((snn(),pJe),n)}function qH(n){Len();return Gan((B8(),bJe),n)}function XH(n){kTn();return Gan((ltn(),oYe),n)}function VH(n){uon();return Gan((onn(),wYe),n)}function zH(n){tmn();return Gan((fnn(),SYe),n)}function WH(n){iMn();return Gan((hnn(),$Ye),n)}function QH(n){Xgn();return Gan((lnn(),YYe),n)}function JH(n){h9();return Gan((H8(),ZZe),n)}function YH(n){xsn();return Gan((C8(),ASe),n)}function ZH(n){YIn();return Gan((han(),cEe),n)}function nU(n){ktn();return Gan((bnn(),c1e),n)}function eU(n){ofn();return Gan((U8(),w1e),n)}function tU(n){qRn();return Gan((qrn(),E1e),n)}function rU(n){aP();return Gan((F6(),q1e),n)}function iU(n){Hdn();return Gan((ynn(),F1e),n)}function aU(n){cP();return Gan((_6(),z1e),n)}function cU(n){X7();return Gan((G8(),Y1e),n)}function uU(n){MOn();return Gan((Xrn(),a0e),n)}function sU(n){uP();return Gan((B6(),V0e),n)}function oU(n){Zfn();return Gan((q8(),J0e),n)}function fU(n){Hkn();return Gan((zrn(),y3e),n)}function hU(n){vAn();return Gan((fon(),A3e),n)}function lU(n){aMn();return Gan((lan(),G3e),n)}function bU(n){iPn();return Gan((ban(),l4e),n)}function wU(n){Bdn();return Gan((Vrn(),w5e),n)}function dU(n){ian();return Gan((Mnn(),m5e),n)}function gU(n){qgn();return Gan((dtn(),E5e),n)}function vU(n){HCn();return Gan((wan(),N5e),n)}function pU(n){Dwn();return Gan((knn(),V5e),n)}function mU(n){xjn();return Gan((gtn(),Z5e),n)}function kU(n){ZDn();return Gan((lfn(),f8e),n)}function yU(n){Zkn();return Gan((Wrn(),v8e),n)}function MU(n){FPn();return Gan((dan(),E8e),n)}function TU(n){uNn();return Gan((gan(),N8e),n)}function jU(n){UQn();return Gan((Qrn(),t9e),n)}function EU(n){emn();return Gan((vtn(),d9e),n)}function SU(n){hUn();return Gan((hfn(),S9e),n)}function PU(n){$wn();return Gan((Tnn(),A9e),n)}function CU(n,e){return(cJ(n),n)+(cJ(e),e)}function IU(n){NU();return Gan((X8(),R9e),n)}function OU(n){Qvn();return Gan((ptn(),V9e),n)}function AU(n){Oln();return Gan((mtn(),k7e),n)}function LU(){LU=O;bGe=(UQn(),n9e);wGe=$8e}function NU(){NU=O;L9e=new Lq;N9e=new yz}function $U(n){!n.e&&(n.e=new im);return n.e}function DU(n,e){this.c=n;this.a=e;this.b=e-n}function xU(n,e,t){this.a=n;this.b=e;this.c=t}function RU(n,e,t){this.a=n;this.b=e;this.c=t}function KU(n,e,t){this.a=n;this.b=e;this.c=t}function FU(n,e,t){this.a=n;this.b=e;this.c=t}function _U(n,e,t){this.a=n;this.b=e;this.c=t}function BU(n,e,t){this.a=n;this.b=e;this.c=t}function HU(n,e,t){this.e=n;this.a=e;this.c=t}function UU(n,e,t){i$();q1.call(this,n,e,t)}function GU(n,e,t){i$();NQ.call(this,n,e,t)}function qU(n,e,t){i$();NQ.call(this,n,e,t)}function XU(n,e,t){i$();NQ.call(this,n,e,t)}function VU(n,e,t){i$();GU.call(this,n,e,t)}function zU(n,e,t){i$();GU.call(this,n,e,t)}function WU(n,e,t){i$();zU.call(this,n,e,t)}function QU(n,e,t){i$();qU.call(this,n,e,t)}function JU(n,e,t){i$();XU.call(this,n,e,t)}function YU(n){vX.call(this,n.d,n.c,n.a,n.b)}function ZU(n){vX.call(this,n.d,n.c,n.a,n.b)}function nG(n){this.d=n;Nw(this);this.b=OV(n.d)}function eG(n){oDn();return Gan((hon(),Het),n)}function tG(n,e){nQ(n);nQ(e);return new IE(n,e)}function rG(n,e){nQ(n);nQ(e);return new nq(n,e)}function iG(n,e){nQ(n);nQ(e);return new eq(n,e)}function aG(n,e){nQ(n);nQ(e);return new _E(n,e)}function cG(n){PK(n.b!=0);return Rin(n,n.a.a)}function uG(n){PK(n.b!=0);return Rin(n,n.c.b)}function sG(n){!n.c&&(n.c=new Uo);return n.c}function oG(n){var e;e=new im;frn(e,n);return e}function fG(n){var e;e=new uk;frn(e,n);return e}function hG(n){var e;e=new ok;Gun(e,n);return e}function lG(n){var e;e=new vS;Gun(e,n);return e}function bG(n,e){Gq(n==null||Oyn(n,e));return n}function wG(n,e,t){qV.call(this,e,t);this.a=n}function dG(n,e){this.c=n;this.b=e;this.a=false}function gG(){this.a=";,;";this.b="";this.c=""}function vG(n,e,t){this.b=n;uL.call(this,e,t)}function pG(n,e,t){this.c=n;ZP.call(this,e,t)}function mG(n,e,t){GC.call(this,n,e);this.b=t}function kG(n,e,t){p$n(t,0,n,e,t.length,false)}function yG(n,e,t,r,i){n.b=e;n.c=t;n.d=r;n.a=i}function MG(n,e,t,r,i){n.d=e;n.c=t;n.a=r;n.b=i}function TG(n,e){if(e){n.b=e;n.a=(WQ(e),e.a)}}function jG(n,e){if(!n){throw dm(new jM(e))}}function EG(n,e){if(!n){throw dm(new EM(e))}}function SG(n,e){if(!n){throw dm(new yM(e))}}function PG(n,e){rP();return k$(n.d.p,e.d.p)}function CG(n,e){can();return bgn(n.e.b,e.e.b)}function IG(n,e){can();return bgn(n.e.a,e.e.a)}function OG(n,e){return k$(mq(n.d),mq(e.d))}function AG(n,e){return!!e&&FQ(n,e.d)?e:null}function LG(n,e){return e==(UQn(),n9e)?n.c:n.d}function NG(n){return Oon(Rz(qL(n)?Won(n):n))}function $G(n){return new PO(n.c+n.b,n.d+n.a)}function DG(n){return n!=null&&!Tvn(n,urt,srt)}function xG(n,e){return(vdn(n)<<4|vdn(e))&$1n}function RG(n,e,t,r,i){n.c=e;n.d=t;n.b=r;n.a=i}function KG(n){var e,t;e=n.b;t=n.c;n.b=t;n.c=e}function FG(n){var e,t;t=n.d;e=n.a;n.d=e;n.a=t}function _G(n,e){var t;t=n.c;tun(n,e);return t}function BG(n,e){e<0?n.g=-1:n.g=e;return n}function HG(n,e){Xin(n);n.a*=e;n.b*=e;return n}function UG(n,e,t){Din.call(this,e,t);this.d=n}function GG(n,e,t){RA.call(this,n,e);this.c=t}function qG(n,e,t){RA.call(this,n,e);this.c=t}function XG(n){bB();Mo.call(this);this.ci(n)}function VG(){K7();DQ.call(this,(PP(),Ort))}function zG(n){eZn();++Tht;return new $X(0,n)}function WG(){WG=O;Gst=(dZ(),new Jw(hae))}function QG(){QG=O;new Wyn((Ty(),sse),(My(),ase))}function JG(){JG=O;rle=$nn(tle,XZn,17,256,0,1)}function YG(){this.b=bM(MK(tyn((oGn(),iMe))))}function ZG(n){this.b=n;this.a=PV(this.b.a).Od()}function nq(n,e){this.b=n;this.a=e;Gh.call(this)}function eq(n,e){this.a=n;this.b=e;Gh.call(this)}function tq(n,e,t){this.a=n;jL.call(this,e,t)}function rq(n,e,t){this.a=n;jL.call(this,e,t)}function iq(n,e,t){var r;r=new eQ(t);ain(n,e,r)}function aq(n,e,t){var r;r=n[e];n[e]=t;return r}function cq(n){var e;e=n.slice();return Ren(e,n)}function uq(n){var e;e=n.n;return n.a.b+e.d+e.a}function sq(n){var e;e=n.n;return n.e.b+e.d+e.a}function oq(n){var e;e=n.n;return n.e.a+e.b+e.c}function fq(n){n.a.b=n.b;n.b.a=n.a;n.a=n.b=null}function hq(n,e){w8(n,e,n.c.b,n.c);return true}function lq(n){if(n.a){return n.a}return wY(n)}function bq(n){vZ();return pIn(n)==H0(yIn(n))}function wq(n){vZ();return yIn(n)==H0(pIn(n))}function dq(n,e){return NEn(n,new GC(e.a,e.b))}function gq(n,e){return CJ(),$Mn(n,e),new pJ(n,e)}function vq(n,e){return n.c=e){throw dm(new $k)}}function nz(n,e){return fdn(n,(cJ(e),new bd(e)))}function ez(n,e){return fdn(n,(cJ(e),new wd(e)))}function tz(n,e,t){return XYn(n,bG(e,12),bG(t,12))}function rz(n){return Rsn(),bG(n,12).g.c.length!=0}function iz(n){return Rsn(),bG(n,12).e.c.length!=0}function az(n,e){Lsn();return bgn(e.a.o.a,n.a.o.a)}function cz(n,e){(e.Bb&Wee)!=0&&!n.a.o&&(n.a.o=e)}function uz(n,e){e.Ug("General 'Rotator",1);vQn(n)}function sz(n,e,t){e.qf(t,bM(MK(fQ(n.b,t)))*n.a)}function oz(n,e,t){v_n();return Qsn(n,e)&&Qsn(n,t)}function fz(n){uNn();return!n.Hc(C8e)&&!n.Hc(O8e)}function hz(n){if(n.e){return C7(n.e)}return null}function lz(n){if(qL(n)){return""+n}return U_n(n)}function bz(n){var e;e=n;while(e.f){e=e.f}return e}function wz(n,e,t){bQ(e,0,aX(e[0],t[0]));return e}function dz(n,e,t,r){var i;i=n.i;i.i=e;i.a=t;i.b=r}function gz(n,e,t,r){PD.call(this,n,e,t);this.b=r}function vz(n,e,t,r,i){pen.call(this,n,e,t,r,i,-1)}function pz(n,e,t,r,i){men.call(this,n,e,t,r,i,-1)}function mz(n,e,t,r){GG.call(this,n,e,t);this.b=r}function kz(n){vA.call(this,n,false);this.a=false}function yz(){XO.call(this,"LOOKAHEAD_LAYOUT",1)}function Mz(n){this.b=n;iR.call(this,n);QD(this)}function Tz(n){this.b=n;cR.call(this,n);JD(this)}function jz(n,e,t){this.a=n;s_.call(this,e,t,5,6)}function Ez(n,e,t,r){this.b=n;PD.call(this,e,t,r)}function Sz(n,e){this.b=n;gb.call(this,n.b);this.a=e}function Pz(n){this.a=Gyn(n.a);this.b=new iB(n.b)}function Cz(n,e){iQ();zE.call(this,n,_wn(new $M(e)))}function Iz(n,e){eZn();++Tht;return new LQ(n,e,0)}function Oz(n,e){eZn();++Tht;return new LQ(6,n,e)}function Az(n,e){cJ(e);while(n.Ob()){e.Cd(n.Pb())}}function Lz(n,e){return HA(e)?xZ(n,e):!!GX(n.f,e)}function Nz(n,e){return e.Vh()?Twn(n.b,bG(e,54)):e}function $z(n,e){return T_(n.substr(0,e.length),e)}function Dz(n){return new GV(new rx(n.a.length,n.a))}function xz(n){return new PO(n.c+n.b/2,n.d+n.a/2)}function Rz(n){return M$(~n.l&f0n,~n.m&f0n,~n.h&h0n)}function Kz(n){return typeof n===bZn||typeof n===vZn}function Fz(n){n.f=new aN(n);n.i=new cN(n);++n.g}function _z(n){if(!n){throw dm(new Xm)}return n.d}function Bz(n){var e;e=Hhn(n);PK(e!=null);return e}function Hz(n){var e;e=wgn(n);PK(e!=null);return e}function Uz(n,e){var t;t=n.a.gc();u7(e,t);return t-e}function Gz(n,e){var t;t=n.a.zc(e,n);return t==null}function qz(n,e){return n.a.zc(e,(Qx(),Bhe))==null}function Xz(n){return new gX(null,lW(n,n.length))}function Vz(n,e,t){return VXn(n,bG(e,42),bG(t,176))}function zz(n,e,t){Pun(n.a,e);return aq(n.b,e.g,t)}function Wz(n,e,t){ZV(t,n.a.c.length);r9(n.a,t,e)}function Qz(n,e,t,r){bbn(e,t,n.length);Jz(n,e,t,r)}function Jz(n,e,t,r){var i;for(i=e;i0?t.Math.log(n/e):-100}function oW(n,e){return kwn(n,e)<0?-1:kwn(n,e)>0?1:0}function fW(n,e){tD(n,G$(e,160)?e:bG(e,2036).Rl())}function hW(n,e){if(n==null){throw dm(new PM(e))}}function lW(n,e){return Fin(e,n.length),new Aq(n,e)}function bW(n,e){if(!e){return false}return esn(n,e)}function wW(){Vy();return zfn(fT(Soe,1),g1n,549,0,[Eoe])}function dW(n){return n.e==0?n:new Zz(-n.e,n.d,n.a)}function gW(n,e){return bgn(n.c.c+n.c.b,e.c.c+e.c.b)}function vW(n,e){w8(n.d,e,n.b.b,n.b);++n.a;n.c=null}function pW(n,e){!n.c?ED(n.b,e):pW(n.c,e);return n}function mW(n,e,t){var r;r=brn(n,e);n8(n,e,t);return r}function kW(n,e,t){var r;for(r=0;r=n.g}function bQ(n,e,t){SK(t==null||fGn(n,t));return n[e]=t}function wQ(n,e){w3(e,n.length+1);return n.substr(e)}function dQ(n,e){cJ(e);while(n.c=n){return new TS}return cun(n-1)}function VQ(n){if(!n.a&&!!n.c){return n.c.b}return n.a}function zQ(n){if(G$(n,616)){return n}return new u0(n)}function WQ(n){if(!n.c){jgn(n);n.d=true}else{WQ(n.c)}}function QQ(n){if(!n.c){n.d=true;bKn(n)}else{n.c.$e()}}function JQ(n){n.b=false;n.c=false;n.d=false;n.a=false}function YQ(n){var e,t;e=n.c.i.c;t=n.d.i.c;return e==t}function ZQ(n,e){var t;t=n.Ih(e);t>=0?n.ki(t):YLn(n,e)}function nJ(n,e){n.c<0||n.b.b0){n=n<<1|(n<0?1:0)}return n}function NJ(n,e){var t;t=new pQ(n);Tm(e.c,t);return t}function $J(n,e){n.u.Hc((uNn(),C8e))&&jNn(n,e);Enn(n,e)}function DJ(n,e){return BA(n)===BA(e)||n!=null&&bdn(n,e)}function xJ(n,e){return HX(n.a,e)?n.b[bG(e,22).g]:null}function RJ(){XS();return zfn(fT(Ike,1),g1n,489,0,[Cke])}function KJ(){aP();return zfn(fT(G1e,1),g1n,490,0,[U1e])}function FJ(){cP();return zfn(fT(V1e,1),g1n,558,0,[X1e])}function _J(){uP();return zfn(fT(X0e,1),g1n,539,0,[q0e])}function BJ(n){!n.n&&(n.n=new gz(unt,n,1,7));return n.n}function HJ(n){!n.c&&(n.c=new gz(ont,n,9,9));return n.c}function UJ(n){!n.c&&(n.c=new g_(B7e,n,5,8));return n.c}function GJ(n){!n.b&&(n.b=new g_(B7e,n,4,7));return n.b}function qJ(n){n.j.c.length=0;lY(n.c);i_(n.a);return n}function XJ(n){n.e==lae&&Ew(n,hkn(n.g,n.b));return n.e}function VJ(n){n.f==lae&&Pw(n,cEn(n.g,n.b));return n.f}function zJ(n,e,t,r){_on(n,e,t,false);Mdn(n,r);return n}function WJ(n,e){this.b=n;eW.call(this,n,e);QD(this)}function QJ(n,e){this.b=n;K_.call(this,n,e);JD(this)}function JJ(n){this.d=n;this.a=this.d.b;this.b=this.d.c}function YJ(n,e){this.b=n;this.c=e;this.a=new gS(this.b)}function ZJ(n,e){w3(e,n.length);return n.charCodeAt(e)}function nY(n,e){Ign(n,bM(Fan(e,"x")),bM(Fan(e,"y")))}function eY(n,e){Ign(n,bM(Fan(e,"x")),bM(Fan(e,"y")))}function tY(n,e){jgn(n);return new gX(n,new stn(e,n.a))}function rY(n,e){jgn(n);return new gX(n,new g7(e,n.a))}function iY(n,e){jgn(n);return new $K(n,new w7(e,n.a))}function aY(n,e){jgn(n);return new DK(n,new d7(e,n.a))}function cY(n,e){return new PZ(bG(nQ(n),50),bG(nQ(e),50))}function uY(n,e){return bgn(n.d.c+n.d.b/2,e.d.c+e.d.b/2)}function sY(n,e,t){t.a?Pan(n,e.b-n.f/2):San(n,e.a-n.g/2)}function oY(n,e){return bgn(n.g.c+n.g.b/2,e.g.c+e.g.b/2)}function fY(n,e){QS();return bgn((cJ(n),n),(cJ(e),e))}function hY(n){return n!=null&&iS(hrt,n.toLowerCase())}function lY(n){var e;for(e=n.Kc();e.Ob();){e.Pb();e.Qb()}}function bY(n){var e;e=n.b;!e&&(n.b=e=new rb(n));return e}function wY(n){var e;e=fun(n);if(e){return e}return null}function dY(n,e){var t,r;t=n/e;r=c0(t);t>r&&++r;return r}function gY(n,e,t){var r;r=bG(n.d.Kb(t),159);!!r&&r.Nb(e)}function vY(n,e,t){UXn(n.a,t);Ifn(t);ODn(n.b,t);PVn(e,t)}function pY(n,e,t,r){this.a=n;this.c=e;this.b=t;this.d=r}function mY(n,e,t,r){this.c=n;this.b=e;this.a=t;this.d=r}function kY(n,e,t,r){this.c=n;this.b=e;this.d=t;this.a=r}function yY(n,e,t,r){this.c=n;this.d=e;this.b=t;this.a=r}function MY(n,e,t,r){this.a=n;this.d=e;this.c=t;this.b=r}function TY(n,e,t,r){this.a=n;this.e=e;this.d=t;this.c=r}function jY(n,e,t,r){this.a=n;this.c=e;this.d=t;this.b=r}function EY(n,e,t){this.a=A1n;this.d=n;this.b=e;this.c=t}function SY(n,e,t,r){qE.call(this,n,e);this.a=t;this.b=r}function PY(n,e){this.d=(cJ(n),n);this.a=16449;this.c=e}function CY(n){this.a=new im;this.e=$nn(Ght,XZn,53,n,0,2)}function IY(n){n.Ug("No crossing minimization",1);n.Vg()}function OY(){Uy.call(this,"There is no more element.")}function AY(n,e,t,r){this.a=n;this.b=e;this.c=t;this.d=r}function LY(n,e,t,r){this.a=n;this.b=e;this.c=t;this.d=r}function NY(n,e,t,r){this.e=n;this.a=e;this.c=t;this.d=r}function $Y(n,e,t,r){this.a=n;this.c=e;this.d=t;this.b=r}function DY(n,e,t,r){i$();v7.call(this,e,t,r);this.a=n}function xY(n,e,t,r){i$();v7.call(this,e,t,r);this.a=n}function RY(n,e,t){var r,i;r=uJn(n);i=e.ti(t,r);return i}function KY(n){var e,t;t=(e=new um,e);zin(t,n);return t}function FY(n){var e,t;t=(e=new um,e);PIn(t,n);return t}function _Y(n,e){var t;t=fQ(n.f,e);eon(e,t);return null}function BY(n){!n.b&&(n.b=new gz(H7e,n,12,3));return n.b}function HY(n){Gq(n==null||Kz(n)&&!(n.Tm===I));return n}function UY(n){if(n.n){n.e!==j1n&&n.je();n.j=null}return n}function GY(n){pvn(n.d);if(n.d.d!=n.c){throw dm(new Gm)}}function qY(n){PK(n.b0&&JEn(this)}function zY(n,e){this.a=n;NK.call(this,n,bG(n.d,15).fd(e))}function WY(n,e){return bgn(OX(n)*IX(n),OX(e)*IX(e))}function QY(n,e){return bgn(OX(n)*IX(n),OX(e)*IX(e))}function JY(n){return XNn(n)&&lM(yK(YDn(n,(IYn(),LFe))))}function YY(n,e){return zNn(n,bG(lIn(e,(IYn(),h_e)),17),e)}function ZY(n,e){bG(lIn(n,(WYn(),dDe)),15).Fc(e);return e}function nZ(n,e){n.b=e.b;n.c=e.c;n.d=e.d;n.a=e.a;return n}function eZ(n,e,t,r){this.b=n;this.c=r;oL.call(this,e,t)}function tZ(n,e,t){n.i=0;n.e=0;if(e==t){return}cln(n,e,t)}function rZ(n,e,t){n.i=0;n.e=0;if(e==t){return}uln(n,e,t)}function iZ(n,e,t){tP();return lvn(bG(fQ(n.e,e),529),t)}function aZ(n){var e;return e=n.f,!e?n.f=new DE(n,n.c):e}function cZ(n,e){return Vwn(n.j,e.s,e.c)+Vwn(e.e,n.s,n.c)}function uZ(n,e){if(!!n.e&&!n.e.a){sm(n.e,e);uZ(n.e,e)}}function sZ(n,e){if(!!n.d&&!n.d.a){sm(n.d,e);sZ(n.d,e)}}function oZ(n,e){return-bgn(OX(n)*IX(n),OX(e)*IX(e))}function fZ(n){return bG(n.ld(),149).Pg()+":"+fvn(n.md())}function hZ(){VIn(this,new Gl);this.wb=(cQ(),_rt);jj()}function lZ(n){this.b=new im;Dfn(this.b,this.b);this.a=n}function bZ(n,e){new vS;this.a=new zk;this.b=n;this.c=e}function wZ(){wZ=O;Nbe=new K;$be=new K;Dbe=new F}function dZ(){dZ=O;lbe=new N;bbe=new D;wbe=new x}function gZ(){gZ=O;ave=new kn;uve=new cV;cve=new yn}function vZ(){vZ=O;nye=new im;Zke=new rm;Yke=new im}function pZ(n,e){if(n==null){throw dm(new PM(e))}return n}function mZ(n){!n.a&&(n.a=new gz(snt,n,10,11));return n.a}function kZ(n){!n.q&&(n.q=new gz(Irt,n,11,10));return n.q}function yZ(n){!n.s&&(n.s=new gz(mrt,n,21,17));return n.s}function MZ(n){nQ(n);return UMn(new GV(sx(n.a.Kc(),new d)))}function TZ(n,e){Cbn(n);Cbn(e);return fM(bG(n,22),bG(e,22))}function jZ(n,e,t){var r,i;r=eB(t);i=new Lb(r);ain(n,e,i)}function EZ(n,e,t,r,i,a){men.call(this,n,e,t,r,i,a?-2:-1)}function SZ(n,e,t,r){RA.call(this,e,t);this.b=n;this.a=r}function PZ(n,e){Ay.call(this,new VV(n));this.a=n;this.b=e}function CZ(n){this.b=n;this.c=n;n.e=null;n.c=null;this.a=1}function IZ(n){WB();var e;e=bG(n.g,10);e.n.a=n.d.c+e.d.b}function OZ(){OZ=O;var n,e;e=!lmn();n=new j;Qfe=e?new T:n}function AZ(n){dZ();return G$(n,59)?new uT(n):new yx(n)}function LZ(n){return G$(n,16)?new lX(bG(n,16)):fG(n.Kc())}function NZ(n){return new nx(n,n.e.Rd().gc()*n.c.Rd().gc())}function $Z(n){return new ex(n,n.e.Rd().gc()*n.c.Rd().gc())}function DZ(n){return!!n&&!!n.hashCode?n.hashCode():Bx(n)}function xZ(n,e){return e==null?!!GX(n.f,null):qX(n.i,e)}function RZ(n,e){var t;t=eD(n.a,e);t&&(e.d=null);return t}function KZ(n,e,t){if(n.f){return n.f.ef(e,t)}return false}function FZ(n,e,t,r){bQ(n.c[e.g],t.g,r);bQ(n.c[t.g],e.g,r)}function _Z(n,e,t,r){bQ(n.c[e.g],e.g,t);bQ(n.b[e.g],e.g,r)}function BZ(n,e,t){return bM(MK(t.a))<=n&&bM(MK(t.b))>=e}function HZ(n,e){this.g=n;this.d=zfn(fT(Yje,1),e6n,10,0,[e])}function UZ(n){this.c=n;this.b=new Vj(bG(nQ(new Mn),50))}function GZ(n){this.c=n;this.b=new Vj(bG(nQ(new Ie),50))}function qZ(n){this.b=n;this.a=new Vj(bG(nQ(new ae),50))}function XZ(){this.b=new uk;this.d=new vS;this.e=new Dk}function VZ(){this.c=new wj;this.d=new wj;this.e=new wj}function zZ(){this.a=new zk;this.b=(Tcn(3,d1n),new H7(3))}function WZ(n,e){this.e=n;this.a=kce;this.b=FBn(e);this.c=e}function QZ(n){this.c=n.c;this.d=n.d;this.b=n.b;this.a=n.a}function JZ(n,e,t,r,i,a){this.a=n;Hcn.call(this,e,t,r,i,a)}function YZ(n,e,t,r,i,a){this.a=n;Hcn.call(this,e,t,r,i,a)}function ZZ(n,e,t,r,i,a,c){return new s8(n.e,e,t,r,i,a,c)}function n1(n,e,t){return t>=0&&T_(n.substr(t,e.length),e)}function e1(n,e){return G$(e,149)&&T_(n.b,bG(e,149).Pg())}function t1(n,e){return n.a?e.Gh().Kc():bG(e.Gh(),71).Ii()}function r1(n,e){var t;t=n.b.Qc(e);m8(t,n.b.gc());return t}function i1(n,e){if(n==null){throw dm(new PM(e))}return n}function a1(n){if(!n.u){S9(n);n.u=new hF(n,n)}return n.u}function c1(n){this.a=(dZ(),G$(n,59)?new uT(n):new yx(n))}function u1(n){var e;e=bG(Ron(n,16),29);return!e?n.ii():e}function s1(n,e){var t;t=$j(n.Rm);return e==null?t:t+": "+e}function o1(n,e,t){Unn(e,t,n.length);return n.substr(e,t-e)}function f1(n,e){VF.call(this);ean(this);this.a=n;this.c=e}function h1(n){!n?CZn:s1(n,n.ie());String.fromCharCode(10)}function l1(n){JM();t.setTimeout((function(){throw n}),0)}function b1(){qkn();return zfn(fT(kve,1),g1n,436,0,[mve,pve])}function w1(){Jrn();return zfn(fT(jve,1),g1n,435,0,[Mve,Tve])}function d1(){Yrn();return zfn(fT(Dye,1),g1n,432,0,[Nye,$ye])}function g1(){xsn();return zfn(fT(OSe,1),g1n,517,0,[ISe,CSe])}function v1(){r5();return zfn(fT(U$e,1),g1n,429,0,[B$e,H$e])}function p1(){Zrn();return zfn(fT(KNe,1),g1n,428,0,[xNe,RNe])}function m1(){V7();return zfn(fT(vNe,1),g1n,431,0,[dNe,gNe])}function k1(){arn();return zfn(fT(pHe,1),g1n,430,0,[gHe,vHe])}function y1(){i5();return zfn(fT(OGe,1),g1n,531,0,[IGe,CGe])}function M1(){Mun();return zfn(fT(HQe,1),g1n,501,0,[_Qe,BQe])}function T1(){p0();return zfn(fT(Iqe,1),g1n,523,0,[Cqe,Pqe])}function j1(){m0();return zfn(fT(Nqe,1),g1n,522,0,[Aqe,Lqe])}function E1(){q7();return zfn(fT(MXe,1),g1n,528,0,[yXe,kXe])}function S1(){ntn();return zfn(fT(e$e,1),g1n,488,0,[n$e,ZNe])}function P1(){h9();return zfn(fT(YZe,1),g1n,491,0,[QZe,JZe])}function C1(){ofn();return zfn(fT(b1e,1),g1n,492,0,[h1e,l1e])}function I1(){s3();return zfn(fT(YWe,1),g1n,433,0,[JWe,QWe])}function O1(){Len();return zfn(fT(lJe,1),g1n,434,0,[fJe,hJe])}function A1(){v0();return zfn(fT(QXe,1),g1n,465,0,[zXe,WXe])}function L1(){X7();return zfn(fT(J1e,1),g1n,438,0,[Q1e,W1e])}function N1(){Zfn();return zfn(fT(Q0e,1),g1n,437,0,[W0e,z0e])}function $1(){NU();return zfn(fT($9e,1),g1n,347,0,[L9e,N9e])}function D1(n,e,t,r){return t>=0?n.Uh(e,t,r):n.Ch(null,t,r)}function x1(n){if(n.b.b==0){return n.a.sf()}return cG(n.b)}function R1(n){if(n.p!=5)throw dm(new Bm);return MV(n.f)}function K1(n){if(n.p!=5)throw dm(new Bm);return MV(n.k)}function F1(n){BA(n.a)===BA((Dsn(),Oit))&&uzn(n);return n.a}function _1(n,e){n.b=e;n.c>0&&n.b>0&&(n.g=TX(n.c,n.b,n.a))}function B1(n,e){n.c=e;n.c>0&&n.b>0&&(n.g=TX(n.c,n.b,n.a))}function H1(n,e){aw(this,new PO(n.a,n.b));cw(this,lG(e))}function U1(){Ly.call(this,new wS(lin(12)));GD(true);this.a=2}function G1(n,e,t){eZn();em.call(this,n);this.b=e;this.a=t}function q1(n,e,t){i$();Vp.call(this,e);this.a=n;this.b=t}function X1(n){var e;e=n.c.d.b;n.b=e;n.a=n.c.d;e.a=n.c.d.b=n}function V1(n){return n.b==0?null:(PK(n.b!=0),Rin(n,n.a.a))}function z1(n,e){return e==null?_A(GX(n.f,null)):qP(n.i,e)}function W1(n,e,t,r,i){return new xOn(n,(Hen(),ade),e,t,r,i)}function Q1(n,e){Z5(e);return tcn(n,$nn(Ght,z1n,28,e,15,1),e)}function J1(n,e){pZ(n,"set1");pZ(e,"set2");return new WE(n,e)}function Y1(n,e){var t=Ufe[n.charCodeAt(0)];return t==null?n:t}function Z1(n,e){var t,r;t=e;r=new X;MWn(n,t,r);return r.d}function n0(n,e,t,r){var i;i=new xF;e.a[t.g]=i;zz(n.b,r,i)}function e0(n,e){var t;t=Ran(n.f,e);return t_(XR(t),n.f.d)}function t0(n){var e;Rcn(n.a);YN(n.a);e=new xd(n.a);xvn(e)}function r0(n,e){sBn(n,true);Lin(n.e.Rf(),new _B(n,true,e))}function i0(n,e){vZ();return n==H0(pIn(e))||n==H0(yIn(e))}function a0(n,e){can();return bG(lIn(e,(eqn(),_We)),17).a==n}function c0(n){return Math.max(Math.min(n,pZn),-2147483648)|0}function u0(n){this.a=bG(nQ(n),277);this.b=(dZ(),new Tx(n))}function s0(n,e,t){this.i=new im;this.b=n;this.g=e;this.a=t}function o0(n,e,t){this.a=new im;this.e=n;this.f=e;this.c=t}function f0(n,e,t){this.c=new im;this.e=n;this.f=e;this.b=t}function h0(n){VF.call(this);ean(this);this.a=n;this.c=true}function l0(n){function e(){}e.prototype=n||{};return new e}function b0(n){if(n.Ae()){return null}var e=n.n;return bce[e]}function w0(n){if(n.Db>>16!=3)return null;return bG(n.Cb,27)}function d0(n){if(n.Db>>16!=9)return null;return bG(n.Cb,27)}function g0(n){if(n.Db>>16!=6)return null;return bG(n.Cb,74)}function v0(){v0=O;zXe=new JI(X2n,0);WXe=new JI(V2n,1)}function p0(){p0=O;Cqe=new DI(V2n,0);Pqe=new DI(X2n,1)}function m0(){m0=O;Aqe=new xI(i3n,0);Lqe=new xI("UP",1)}function k0(){k0=O;Poe=xbn((Vy(),zfn(fT(Soe,1),g1n,549,0,[Eoe])))}function y0(n){var e;e=new _j(lin(n.length));_hn(e,n);return e}function M0(n,e){n.b+=e.b;n.c+=e.c;n.d+=e.d;n.a+=e.a;return n}function T0(n,e){if(Nfn(n,e)){vcn(n);return true}return false}function j0(n,e){if(e==null){throw dm(new Hm)}return Cmn(n,e)}function E0(n,e){var t;t=n.q.getHours();n.q.setDate(e);$qn(n,t)}function S0(n,e,t){var r;r=n.Ih(e);r>=0?n.bi(r,t):vRn(n,e,t)}function P0(n,e){var t;t=n.Ih(e);return t>=0?n.Wh(t):FNn(n,e)}function C0(n,e){var t;nQ(e);for(t=n.a;t;t=t.c){e.Yd(t.g,t.i)}}function I0(n,e,t){var r;r=zhn(n,e,t);n.b=new _un(r.c.length)}function O0(n,e,t){n2();!!n&&jJ(ntt,n,e);!!n&&jJ(Zet,n,t)}function A0(n,e){zB();return Qx(),bG(e.a,17).a0}function D0(n){var e;e=n.d;e=n.bj(n.f);cen(n,e);return e.Ob()}function x0(n,e){var t;t=new hX(e);YCn(t,n);return new iB(t)}function R0(n){if(n.p!=0)throw dm(new Bm);return VA(n.f,0)}function K0(n){if(n.p!=0)throw dm(new Bm);return VA(n.k,0)}function F0(n){if(n.Db>>16!=7)return null;return bG(n.Cb,241)}function _0(n){if(n.Db>>16!=6)return null;return bG(n.Cb,241)}function B0(n){if(n.Db>>16!=7)return null;return bG(n.Cb,167)}function H0(n){if(n.Db>>16!=11)return null;return bG(n.Cb,27)}function U0(n){if(n.Db>>16!=17)return null;return bG(n.Cb,29)}function G0(n){if(n.Db>>16!=3)return null;return bG(n.Cb,155)}function q0(n){var e;jgn(n);e=new uk;return tY(n,new Pd(e))}function X0(n,e){var t=n.a=n.a||[];return t[e]||(t[e]=n.ve(e))}function V0(n,e){var t;t=n.q.getHours();n.q.setMonth(e);$qn(n,t)}function z0(n,e){RD(this);this.f=e;this.g=n;UY(this);this.je()}function W0(n,e){this.a=n;this.c=_$(this.a);this.b=new QZ(e)}function Q0(n,e,t){this.a=e;this.c=n;this.b=(nQ(t),new iB(t))}function J0(n,e,t){this.a=e;this.c=n;this.b=(nQ(t),new iB(t))}function Y0(n){this.a=n;this.b=$nn(eGe,XZn,2043,n.e.length,0,2)}function Z0(){this.a=new JL;this.e=new uk;this.g=0;this.i=0}function n2(){n2=O;ntt=new rm;Zet=new rm;MA(zbe,new go)}function e2(){e2=O;JHe=mV(new mJ,(bIn(),uTe),(YYn(),eCe))}function t2(){t2=O;ZHe=mV(new mJ,(bIn(),uTe),(YYn(),eCe))}function r2(){r2=O;iUe=mV(new mJ,(bIn(),uTe),(YYn(),eCe))}function i2(){i2=O;LGe=xq(new mJ,(bIn(),uTe),(YYn(),PPe))}function a2(){a2=O;FGe=xq(new mJ,(bIn(),uTe),(YYn(),PPe))}function c2(){c2=O;jqe=xq(new mJ,(bIn(),uTe),(YYn(),PPe))}function u2(){u2=O;Fqe=xq(new mJ,(bIn(),uTe),(YYn(),PPe))}function s2(n,e,t,r,i,a){return new Utn(n.e,e,n.Lj(),t,r,i,a)}function o2(n,e,t){return e==null?ZAn(n.f,null,t):Egn(n.i,e,t)}function f2(n,e){!!n.c&&Ttn(n.c.g,n);n.c=e;!!n.c&&ED(n.c.g,n)}function h2(n,e){!!n.c&&Ttn(n.c.a,n);n.c=e;!!n.c&&ED(n.c.a,n)}function l2(n,e){!!n.i&&Ttn(n.i.j,n);n.i=e;!!n.i&&ED(n.i.j,n)}function b2(n,e){!!n.d&&Ttn(n.d.e,n);n.d=e;!!n.d&&ED(n.d.e,n)}function w2(n,e){!!n.a&&Ttn(n.a.k,n);n.a=e;!!n.a&&ED(n.a.k,n)}function d2(n,e){!!n.b&&Ttn(n.b.f,n);n.b=e;!!n.b&&ED(n.b.f,n)}function g2(n,e){kQ(n,n.b,n.c);bG(n.b.b,68);!!e&&bG(e.b,68).b}function v2(n,e){return bgn(bG(n.c,65).c.e.b,bG(e.c,65).c.e.b)}function p2(n,e){return bgn(bG(n.c,65).c.e.a,bG(e.c,65).c.e.a)}function m2(n){Pbn();return Qx(),bG(n.a,86).d.e!=0?true:false}function k2(n,e){G$(n.Cb,184)&&(bG(n.Cb,184).tb=null);Qun(n,e)}function y2(n,e){G$(n.Cb,90)&&SLn(S9(bG(n.Cb,90)),4);Qun(n,e)}function M2(n,e){Lgn(n,e);G$(n.Cb,90)&&SLn(S9(bG(n.Cb,90)),2)}function T2(n,e){var t,r;t=e.c;r=t!=null;r&&MQ(n,new eQ(e.c))}function j2(n){var e,t;t=(jj(),e=new um,e);zin(t,n);return t}function E2(n){var e,t;t=(jj(),e=new um,e);zin(t,n);return t}function S2(n){var e;while(true){e=n.Pb();if(!n.Ob()){return e}}}function P2(n,e,t){ED(n.a,(CJ(),$Mn(e,t),new GE(e,t)));return n}function C2(n,e){return LP(),urn(e)?new Nq(e,n):new DA(e,n)}function I2(n){fHn();return kwn(n,0)>=0?Hpn(n):dW(Hpn(Ptn(n)))}function O2(n){var e;e=bG(cq(n.b),9);return new aB(n.a,e,n.c)}function A2(n,e){var t;t=bG(Jwn(aZ(n.a),e),16);return!t?0:t.gc()}function L2(n,e,t){var r;ddn(e,t,n.c.length);r=t-e;aE(n.c,e,r)}function N2(n,e,t){ddn(e,t,n.gc());this.c=n;this.a=e;this.b=t-e}function $2(n){this.c=new vS;this.b=n.b;this.d=n.c;this.a=n.a}function D2(n){this.a=t.Math.cos(n);this.b=t.Math.sin(n)}function x2(n,e,t,r){this.c=n;this.d=r;w2(this,e);d2(this,t)}function R2(n,e){Oy.call(this,new wS(lin(n)));Tcn(e,qZn);this.a=e}function K2(n,e,t){return new xOn(n,(Hen(),ide),null,false,e,t)}function F2(n,e,t){return new xOn(n,(Hen(),cde),e,t,null,false)}function _2(){Sbn();return zfn(fT($de,1),g1n,108,0,[Ade,Lde,Nde])}function B2(){rrn();return zfn(fT(Spe,1),g1n,472,0,[Epe,jpe,Tpe])}function H2(){Uen();return zfn(fT(dpe,1),g1n,471,0,[bpe,lpe,wpe])}function U2(){ran();return zfn(fT(cpe,1),g1n,237,0,[rpe,ipe,ape])}function G2(){trn();return zfn(fT(UMe,1),g1n,391,0,[BMe,_Me,HMe])}function q2(){yun();return zfn(fT(XAe,1),g1n,372,0,[qAe,GAe,UAe])}function X2(){Icn();return zfn(fT(MNe,1),g1n,322,0,[kNe,mNe,yNe])}function V2(){ocn();return zfn(fT(PNe,1),g1n,351,0,[jNe,SNe,ENe])}function z2(){Lhn();return zfn(fT(UNe,1),g1n,460,0,[BNe,_Ne,HNe])}function W2(){sfn();return zfn(fT($$e,1),g1n,299,0,[L$e,N$e,A$e])}function Q2(){irn();return zfn(fT(F$e,1),g1n,311,0,[R$e,K$e,x$e])}function J2(){Nwn();return zfn(fT(RBe,1),g1n,390,0,[$Be,DBe,xBe])}function Y2(){fcn();return zfn(fT(THe,1),g1n,463,0,[MHe,kHe,yHe])}function Z2(){son();return zfn(fT(CHe,1),g1n,387,0,[EHe,SHe,PHe])}function n3(){Aln();return zfn(fT(NHe,1),g1n,349,0,[LHe,OHe,AHe])}function e3(){Ebn();return zfn(fT(FHe,1),g1n,350,0,[xHe,RHe,KHe])}function t3(){scn();return zfn(fT(GHe,1),g1n,352,0,[UHe,BHe,HHe])}function r3(){Yfn();return zfn(fT(WHe,1),g1n,388,0,[VHe,zHe,XHe])}function i3(){ucn();return zfn(fT(JUe,1),g1n,464,0,[zUe,WUe,QUe])}function a3(n){return Whn(zfn(fT(D3e,1),XZn,8,0,[n.i.n,n.n,n.a]))}function c3(){Lln();return zfn(fT(Eze,1),g1n,392,0,[jze,Tze,Mze])}function u3(){u3=O;nQe=mV(new mJ,(Njn(),oVe),(DHn(),nze))}function s3(){s3=O;JWe=new tO("DFS",0);QWe=new tO("BFS",1)}function o3(n,e,t){var r;r=new sc;r.b=e;r.a=t;++e.b;ED(n.d,r)}function f3(n,e,t){var r;r=new uN(t.d);t_(r,n);Ign(e,r.a,r.b)}function h3(n,e){MD(n,MV(O3(FV(e,24),z0n)),MV(O3(e,z0n)))}function l3(n,e){if(n<0||n>e){throw dm(new kM(o2n+n+f2n+e))}}function b3(n,e){if(n<0||n>=e){throw dm(new kM(o2n+n+f2n+e))}}function w3(n,e){if(n<0||n>=e){throw dm(new tT(o2n+n+f2n+e))}}function d3(n,e){this.b=(cJ(n),n);this.a=(e&T0n)==0?e|64|VZn:e}function g3(n){var e;jgn(n);e=(wZ(),wZ(),$be);return Ein(n,e)}function v3(n,e,t){var r;r=bXn(n,e,false);return r.b<=e&&r.a<=t}function p3(){ktn();return zfn(fT(a1e,1),g1n,439,0,[t1e,i1e,r1e])}function m3(){Xgn();return zfn(fT(JYe,1),g1n,394,0,[WYe,QYe,zYe])}function k3(){tmn();return zfn(fT(EYe,1),g1n,445,0,[MYe,TYe,jYe])}function y3(){iMn();return zfn(fT(NYe,1),g1n,456,0,[OYe,LYe,AYe])}function M3(){jbn();return zfn(fT(vJe,1),g1n,393,0,[wJe,dJe,gJe])}function T3(){uon();return zfn(fT(bYe,1),g1n,300,0,[hYe,lYe,fYe])}function j3(){Dwn();return zfn(fT(X5e,1),g1n,346,0,[G5e,U5e,q5e])}function E3(){Hdn();return zfn(fT(K1e,1),g1n,444,0,[D1e,x1e,R1e])}function S3(){ian();return zfn(fT(p5e,1),g1n,278,0,[d5e,g5e,v5e])}function P3(){$wn();return zfn(fT(O9e,1),g1n,280,0,[C9e,P9e,I9e])}function C3(n){nQ(n);return G$(n,16)?new iB(bG(n,16)):oG(n.Kc())}function I3(n,e){return!!n&&!!n.equals?n.equals(e):BA(n)===BA(e)}function O3(n,e){return Oon(DV(qL(n)?Won(n):n,qL(e)?Won(e):e))}function A3(n,e){return Oon(xV(qL(n)?Won(n):n,qL(e)?Won(e):e))}function L3(n,e){return Oon(RV(qL(n)?Won(n):n,qL(e)?Won(e):e))}function N3(n,e){var t;t=(cJ(n),n).g;EK(!!t);cJ(e);return t(e)}function $3(n,e){var t,r;r=Uz(n,e);t=n.a.fd(r);return new XE(n,t)}function D3(n){if(n.Db>>16!=6)return null;return bG(tDn(n),241)}function x3(n){if(n.p!=2)throw dm(new Bm);return MV(n.f)&$1n}function R3(n){if(n.p!=2)throw dm(new Bm);return MV(n.k)&$1n}function K3(n){PK(n.ar?1:0}function r4(n,e){var t,r;t=Itn(e);r=t;return bG(fQ(n.c,r),17).a}function i4(n,e,t){var r;r=n.d[e.p];n.d[e.p]=n.d[t.p];n.d[t.p]=r}function a4(n,e,t){var r;if(n.n&&!!e&&!!t){r=new to;ED(n.e,r)}}function c4(n,e){Gz(n.a,e);if(e.d){throw dm(new Uy(g2n))}e.d=n}function u4(n,e){this.a=new im;this.d=new im;this.f=n;this.c=e}function s4(){this.c=new Y$;this.a=new M7;this.b=new Sk;JS()}function o4(){nhn();this.b=new rm;this.a=new rm;this.c=new im}function f4(n,e,t){this.d=n;this.j=e;this.e=t;this.o=-1;this.p=3}function h4(n,e,t){this.d=n;this.k=e;this.f=t;this.o=-1;this.p=5}function l4(n,e,t,r,i,a){Xan.call(this,n,e,t,r,i);a&&(this.o=-2)}function b4(n,e,t,r,i,a){Van.call(this,n,e,t,r,i);a&&(this.o=-2)}function w4(n,e,t,r,i,a){O9.call(this,n,e,t,r,i);a&&(this.o=-2)}function d4(n,e,t,r,i,a){Qan.call(this,n,e,t,r,i);a&&(this.o=-2)}function g4(n,e,t,r,i,a){A9.call(this,n,e,t,r,i);a&&(this.o=-2)}function v4(n,e,t,r,i,a){zan.call(this,n,e,t,r,i);a&&(this.o=-2)}function p4(n,e,t,r,i,a){Wan.call(this,n,e,t,r,i);a&&(this.o=-2)}function m4(n,e,t,r,i,a){L9.call(this,n,e,t,r,i);a&&(this.o=-2)}function k4(n,e,t,r){Vp.call(this,t);this.b=n;this.c=e;this.d=r}function y4(n,e){this.f=n;this.a=(K7(),Wut);this.c=Wut;this.b=e}function M4(n,e){this.g=n;this.d=(K7(),Qut);this.a=Qut;this.b=e}function T4(n,e){!n.c&&(n.c=new mon(n,0));XXn(n.c,(bzn(),Eot),e)}function j4(n,e){return vxn(n,e,G$(e,102)&&(bG(e,19).Bb&S0n)!=0)}function E4(n,e){return oW(Xon(n.q.getTime()),Xon(e.q.getTime()))}function S4(n){return _q(n.e.Rd().gc()*n.c.Rd().gc(),16,new Yl(n))}function P4(n){return!!n.u&&Y5(n.u.a).i!=0&&!(!!n.n&&SMn(n.n))}function C4(n){return!!n.a&&xtn(n.a.a).i!=0&&!(!!n.b&&PMn(n.b))}function I4(n,e){if(e==0){return!!n.o&&n.o.f!=0}return nyn(n,e)}function O4(n,e,t){var r;r=bG(n.Zb().xc(e),16);return!!r&&r.Hc(t)}function A4(n,e,t){var r;r=bG(n.Zb().xc(e),16);return!!r&&r.Mc(t)}function L4(n,e){var t;t=1-e;n.a[t]=Cun(n.a[t],t);return Cun(n,e)}function N4(n,e){var t,r;r=O3(n,A0n);t=KV(e,32);return A3(t,r)}function $4(n,e,t){var r;r=(nQ(n),new iB(n));Tjn(new Q0(r,e,t))}function D4(n,e,t){var r;r=(nQ(n),new iB(n));jjn(new J0(r,e,t))}function x4(n,e,t,r,i,a){_on(n,e,t,a);ydn(n,r);jdn(n,i);return n}function R4(n,e,t,r){n.a+=""+o1(e==null?CZn:fvn(e),t,r);return n}function K4(n,e){this.a=n;td.call(this,n);l3(e,n.gc());this.b=e}function F4(n){this.a=$nn(kce,jZn,1,Mhn(t.Math.max(8,n))<<1,5,1)}function _4(n){return bG(Okn(n,$nn(Yje,e6n,10,n.c.length,0,1)),199)}function B4(n){return bG(Okn(n,$nn(xje,n6n,18,n.c.length,0,1)),483)}function H4(n){return!n.a?n.c:n.e.length==0?n.a.a:n.a.a+(""+n.e)}function U4(n){while(n.d>0&&n.a[--n.d]==0);n.a[n.d++]==0&&(n.e=0)}function G4(n){PK(n.b.b!=n.d.a);n.c=n.b=n.b.b;--n.a;return n.c.c}function q4(n,e,t){n.a=e;n.c=t;n.b.a.$b();XY(n.d);Jm(n.e.a.c,0)}function X4(n,e){var t;n.e=new ky;t=WFn(e);g$(t,n.c);C_n(n,t,0)}function V4(n,e,t,r){var i;i=new ks;i.a=e;i.b=t;i.c=r;hq(n.a,i)}function z4(n,e,t,r){var i;i=new ks;i.a=e;i.b=t;i.c=r;hq(n.b,i)}function W4(n,e,t){if(n<0||et){throw dm(new kM(eAn(n,e,t)))}}function Q4(n,e){if(n<0||n>=e){throw dm(new kM(CLn(n,e)))}return n}function J4(n){if(!("stack"in n)){try{throw n}catch(e){}}return n}function Y4(n){tP();if(G$(n.g,10)){return bG(n.g,10)}return null}function Z4(n){if(bY(n).dc()){return false}d$(n,new m);return true}function n6(n){var e;if(qL(n)){e=n;return e==-0?0:e}return Wtn(n)}function e6(n,e){if(G$(e,44)){return wTn(n.a,bG(e,44))}return false}function t6(n,e){if(G$(e,44)){return wTn(n.a,bG(e,44))}return false}function r6(n,e){if(G$(e,44)){return wTn(n.a,bG(e,44))}return false}function i6(n){var e;WQ(n);e=new _;cE(n.a,new jd(e));return e}function a6(){var n,e,t;e=(t=(n=new um,n),t);ED(Hct,e);return e}function c6(n){var e;WQ(n);e=new B;cE(n.a,new Ed(e));return e}function u6(n,e){if(n.a<=n.b){e.Dd(n.a++);return true}return false}function s6(n){ksn.call(this,n,(Hen(),rde),null,false,null,false)}function o6(){o6=O;Oke=xbn((XS(),zfn(fT(Ike,1),g1n,489,0,[Cke])))}function f6(){f6=O;TUe=PJ(Bwn(1),Bwn(4));MUe=PJ(Bwn(1),Bwn(2))}function h6(n,e){return new RU(e,VR(_$(e.e),n,n),(Qx(),true))}function l6(n){return new H7((Tcn(n,p1n),hin(Rgn(Rgn(5,n),n/10|0))))}function b6(n){return _q(n.e.Rd().gc()*n.c.Rd().gc(),273,new Jl(n))}function w6(n){return bG(Okn(n,$nn(gEe,t6n,12,n.c.length,0,1)),2042)}function d6(n){a2();return!j9(n)&&!(!j9(n)&&n.c.i.c==n.d.i.c)}function g6(n,e){aan();return bG(lIn(e,(eqn(),IWe)),17).a>=n.gc()}function v6(n,e){qJn(e,n);KG(n.d);KG(bG(lIn(n,(IYn(),zFe)),214))}function p6(n,e){XJn(e,n);FG(n.d);FG(bG(lIn(n,(IYn(),zFe)),214))}function m6(n,e,t){!!n.d&&Ttn(n.d.e,n);n.d=e;!!n.d&&WX(n.d.e,t,n)}function k6(n,e,t){return t.f.c.length>0?Vz(n.a,e,t):Vz(n.b,e,t)}function y6(n,e,t){var r;r=pkn();try{return AF(n,e,t)}finally{T8(r)}}function M6(n,e){var t,r;t=j0(n,e);r=null;!!t&&(r=t.pe());return r}function T6(n,e){var t,r;t=j0(n,e);r=null;!!t&&(r=t.se());return r}function j6(n,e){var t,r;t=brn(n,e);r=null;!!t&&(r=t.se());return r}function E6(n,e){var t,r;t=j0(n,e);r=null;!!t&&(r=bAn(t));return r}function S6(n,e,t){var r;r=Imn(t);SHn(n.g,r,e);SHn(n.i,e,t);return e}function P6(n,e,t){this.d=new Qg(this);this.e=n;this.i=e;this.f=t}function C6(n,e,t,r){this.e=null;this.c=n;this.d=e;this.a=t;this.b=r}function I6(n,e,t,r){x$(this);this.c=n;this.e=e;this.f=t;this.b=r}function O6(n,e,t,r){this.d=n;this.n=e;this.g=t;this.o=r;this.p=-1}function A6(n,e,t,r){return G$(t,59)?new rR(n,e,t,r):new QV(n,e,t,r)}function L6(n){if(G$(n,16)){return bG(n,16).dc()}return!n.Kc().Ob()}function N6(n){if(n.e.g!=n.b){throw dm(new Gm)}return!!n.c&&n.d>0}function $6(n){PK(n.b!=n.d.c);n.c=n.b;n.b=n.b.a;++n.a;return n.c.c}function D6(n,e){cJ(e);bQ(n.a,n.c,e);n.c=n.c+1&n.a.length-1;tjn(n)}function x6(n,e){cJ(e);n.b=n.b-1&n.a.length-1;bQ(n.a,n.b,e);tjn(n)}function R6(n){var e;e=n.Gh();this.a=G$(e,71)?bG(e,71).Ii():e.Kc()}function K6(n){return new d3(Zin(bG(n.a.md(),16).gc(),n.a.ld()),16)}function F6(){F6=O;q1e=xbn((aP(),zfn(fT(G1e,1),g1n,490,0,[U1e])))}function _6(){_6=O;z1e=xbn((cP(),zfn(fT(V1e,1),g1n,558,0,[X1e])))}function B6(){B6=O;V0e=xbn((uP(),zfn(fT(X0e,1),g1n,539,0,[q0e])))}function H6(){zmn();return zfn(fT(lje,1),g1n,389,0,[hje,oje,sje,fje])}function U6(){Hen();return zfn(fT(ude,1),g1n,304,0,[rde,ide,ade,cde])}function G6(){jyn();return zfn(fT(qme,1),g1n,332,0,[Hme,Bme,Ume,Gme])}function q6(){Tyn();return zfn(fT(Tke,1),g1n,406,0,[kke,mke,yke,Mke])}function X6(){ufn();return zfn(fT(mme,1),g1n,417,0,[pme,dme,gme,vme])}function V6(){Jfn();return zfn(fT(FTe,1),g1n,416,0,[DTe,KTe,xTe,RTe])}function z6(){Qfn();return zfn(fT(jAe,1),g1n,421,0,[kAe,yAe,MAe,TAe])}function W6(){Wfn();return zfn(fT(FCe,1),g1n,371,0,[KCe,xCe,RCe,DCe])}function Q6(){rMn();return zfn(fT(UBe,1),g1n,203,0,[BBe,HBe,_Be,FBe])}function J6(){Smn();return zfn(fT(wHe,1),g1n,284,0,[hHe,fHe,lHe,bHe])}function Y6(n){var e;return n.j==(UQn(),Y8e)&&(e=q$n(n),Fx(e,$8e))}function Z6(n,e){var t;t=e.a;f2(t,e.c.d);b2(t,e.d.d);Jsn(t.a,n.n)}function n5(n,e){var t;t=bG(hrn(n.b,e),67);!t&&(t=new vS);return t}function e5(n){tP();if(G$(n.g,154)){return bG(n.g,154)}return null}function t5(n){n.a=null;n.e=null;Jm(n.b.c,0);Jm(n.f.c,0);n.c=null}function r5(){r5=O;B$e=new wI(U2n,0);H$e=new wI("TOP_LEFT",1)}function i5(){i5=O;IGe=new AI("UPPER",0);CGe=new AI("LOWER",1)}function a5(n,e){return pD(new PO(e.e.a+e.f.a/2,e.e.b+e.f.b/2),n)}function c5(n,e){return bG(Sx(nz(bG(r7(n.k,e),15).Oc(),ALe)),113)}function u5(n,e){return bG(Sx(ez(bG(r7(n.k,e),15).Oc(),ALe)),113)}function s5(){Njn();return zfn(fT(hVe,1),g1n,405,0,[uVe,sVe,oVe,fVe])}function o5(){Tbn();return zfn(fT(zWe,1),g1n,353,0,[VWe,qWe,XWe,GWe])}function f5(){kTn();return zfn(fT(sYe,1),g1n,354,0,[uYe,aYe,cYe,iYe])}function h5(){emn();return zfn(fT(w9e,1),g1n,386,0,[l9e,b9e,h9e,f9e])}function l5(){xjn();return zfn(fT(Y5e,1),g1n,291,0,[J5e,z5e,W5e,Q5e])}function b5(){qgn();return zfn(fT(j5e,1),g1n,223,0,[T5e,y5e,k5e,M5e])}function w5(){Qvn();return zfn(fT(X9e,1),g1n,320,0,[q9e,H9e,G9e,U9e])}function d5(){Oln();return zfn(fT(m7e,1),g1n,415,0,[g7e,v7e,d7e,p7e])}function g5(n){n2();return Lz(ntt,n)?bG(fQ(ntt,n),341).Qg():null}function v5(n,e,t){return e<0?FNn(n,t):bG(t,69).wk().Bk(n,n.hi(),e)}function p5(n,e,t){var r;r=Imn(t);SHn(n.j,r,e);jJ(n.k,e,t);return e}function m5(n,e,t){var r;r=Imn(t);SHn(n.d,r,e);jJ(n.e,e,t);return e}function k5(n){var e,t;e=(yj(),t=new co,t);!!n&&xRn(e,n);return e}function y5(n){var e;e=n.aj(n.i);n.i>0&&QGn(n.g,0,e,0,n.i);return e}function M5(n,e){var t;for(t=n.j.c.length;t>24}function S5(n){if(n.p!=1)throw dm(new Bm);return MV(n.k)<<24>>24}function P5(n){if(n.p!=7)throw dm(new Bm);return MV(n.k)<<16>>16}function C5(n){if(n.p!=7)throw dm(new Bm);return MV(n.f)<<16>>16}function I5(n,e){if(e.e==0||n.e==0){return Rle}return p_n(),SKn(n,e)}function O5(n,e){return BA(e)===BA(n)?"(this Map)":e==null?CZn:fvn(e)}function A5(n,e,t){return HV(MK(_A(GX(n.f,e))),MK(_A(GX(n.f,t))))}function L5(n,e,t){var r;r=bG(fQ(n.g,t),60);ED(n.a.c,new nA(e,r))}function N5(n,e,t){n.i=0;n.e=0;if(e==t){return}uln(n,e,t);cln(n,e,t)}function $5(n,e,t,r,i){var a;a=Xxn(i,t,r);ED(e,bLn(i,a));RIn(n,i,e)}function D5(n,e,t,r,i){this.i=n;this.a=e;this.e=t;this.j=r;this.f=i}function x5(n,e){VZ.call(this);this.a=n;this.b=e;ED(this.a.b,this)}function R5(n){this.b=new rm;this.c=new rm;this.d=new rm;this.a=n}function K5(n,e){var t;t=new eT;n.Gd(t);t.a+="..";e.Hd(t);return t.a}function F5(n,e){var t;t=e;while(t){UR(n,t.i,t.j);t=H0(t)}return n}function _5(n,e,t){var r;r=Imn(t);jJ(n.b,r,e);jJ(n.c,e,t);return e}function B5(n){var e;e=0;while(n.Ob()){n.Pb();e=Rgn(e,1)}return hin(e)}function H5(n,e){LP();var t;t=bG(n,69).vk();bOn(t,e);return t.xl(e)}function U5(n,e,t){if(t){var r=t.oe();n.a[e]=r(t)}else{delete n.a[e]}}function G5(n,e){var t;t=n.q.getHours();n.q.setFullYear(e+V1n);$qn(n,t)}function q5(n,e){return bG(e==null?_A(GX(n.f,null)):qP(n.i,e),288)}function X5(n,e){return n==(YIn(),rEe)&&e==rEe?4:n==rEe||e==rEe?8:32}function V5(n,e,t){return hqn(n,e,t,G$(e,102)&&(bG(e,19).Bb&S0n)!=0)}function z5(n,e,t){return _qn(n,e,t,G$(e,102)&&(bG(e,19).Bb&S0n)!=0)}function W5(n,e,t){return Nxn(n,e,t,G$(e,102)&&(bG(e,19).Bb&S0n)!=0)}function Q5(n){if(n.b==n.c){return}n.a=$nn(kce,jZn,1,8,5,1);n.b=0;n.c=0}function J5(n){PK(n.a=0&&n.a[t]===e[t];t--);return t<0}function y8(n){var e;if(n){return new hX(n)}e=new JL;Gun(e,n);return e}function M8(n,e){var t,r;r=false;do{t=Chn(n,e);r=r|t}while(t);return r}function T8(n){n&&Nrn((Wy(),zfe));--qfe;if(n){if(Vfe!=-1){IL(Vfe);Vfe=-1}}}function j8(n){hCn();MD(this,MV(O3(FV(n,24),z0n)),MV(O3(n,z0n)))}function E8(){E8=O;yve=xbn((qkn(),zfn(fT(kve,1),g1n,436,0,[mve,pve])))}function S8(){S8=O;Eve=xbn((Jrn(),zfn(fT(jve,1),g1n,435,0,[Mve,Tve])))}function P8(){P8=O;xye=xbn((Yrn(),zfn(fT(Dye,1),g1n,432,0,[Nye,$ye])))}function C8(){C8=O;ASe=xbn((xsn(),zfn(fT(OSe,1),g1n,517,0,[ISe,CSe])))}function I8(){I8=O;G$e=xbn((r5(),zfn(fT(U$e,1),g1n,429,0,[B$e,H$e])))}function O8(){O8=O;FNe=xbn((Zrn(),zfn(fT(KNe,1),g1n,428,0,[xNe,RNe])))}function A8(){A8=O;t$e=xbn((ntn(),zfn(fT(e$e,1),g1n,488,0,[n$e,ZNe])))}function L8(){L8=O;mHe=xbn((arn(),zfn(fT(pHe,1),g1n,430,0,[gHe,vHe])))}function N8(){N8=O;AGe=xbn((i5(),zfn(fT(OGe,1),g1n,531,0,[IGe,CGe])))}function $8(){$8=O;pNe=xbn((V7(),zfn(fT(vNe,1),g1n,431,0,[dNe,gNe])))}function D8(){D8=O;ZWe=xbn((s3(),zfn(fT(YWe,1),g1n,433,0,[JWe,QWe])))}function x8(){x8=O;UQe=xbn((Mun(),zfn(fT(HQe,1),g1n,501,0,[_Qe,BQe])))}function R8(){R8=O;Oqe=xbn((p0(),zfn(fT(Iqe,1),g1n,523,0,[Cqe,Pqe])))}function K8(){K8=O;$qe=xbn((m0(),zfn(fT(Nqe,1),g1n,522,0,[Aqe,Lqe])))}function F8(){F8=O;TXe=xbn((q7(),zfn(fT(MXe,1),g1n,528,0,[yXe,kXe])))}function _8(){_8=O;JXe=xbn((v0(),zfn(fT(QXe,1),g1n,465,0,[zXe,WXe])))}function B8(){B8=O;bJe=xbn((Len(),zfn(fT(lJe,1),g1n,434,0,[fJe,hJe])))}function H8(){H8=O;ZZe=xbn((h9(),zfn(fT(YZe,1),g1n,491,0,[QZe,JZe])))}function U8(){U8=O;w1e=xbn((ofn(),zfn(fT(b1e,1),g1n,492,0,[h1e,l1e])))}function G8(){G8=O;Y1e=xbn((X7(),zfn(fT(J1e,1),g1n,438,0,[Q1e,W1e])))}function q8(){q8=O;J0e=xbn((Zfn(),zfn(fT(Q0e,1),g1n,437,0,[W0e,z0e])))}function X8(){X8=O;R9e=xbn((NU(),zfn(fT($9e,1),g1n,347,0,[L9e,N9e])))}function V8(){Bdn();return zfn(fT(b5e,1),g1n,88,0,[h5e,f5e,o5e,s5e,l5e])}function z8(){UQn();return zfn(fT(e9e,1),X4n,64,0,[Z8e,D8e,$8e,Y8e,n9e])}function W8(n,e,t){return bG(e==null?ZAn(n.f,null,t):Egn(n.i,e,t),288)}function Q8(n){return(n.k==(YIn(),rEe)||n.k==nEe)&&jR(n,(WYn(),eDe))}function J8(n){return!!n.c&&!!n.d?Y3(n.c)+"->"+Y3(n.d):"e_"+Bx(n)}function Y8(n,e){var t,r;cJ(e);for(r=n.Kc();r.Ob();){t=r.Pb();e.Cd(t)}}function Z8(n,e){var t;t=new qy;jZ(t,"x",e.a);jZ(t,"y",e.b);MQ(n,t)}function n9(n,e){var t;t=new qy;jZ(t,"x",e.a);jZ(t,"y",e.b);MQ(n,t)}function e9(n,e){var t;t=e;while(t){UR(n,-t.i,-t.j);t=H0(t)}return n}function t9(n,e){var t,r;t=e;r=0;while(t>0){r+=n.a[t];t-=t&-t}return r}function r9(n,e,t){var r;r=(b3(e,n.c.length),n.c[e]);n.c[e]=t;return r}function i9(n,e,t){n.a.c.length=0;wzn(n,e,t);n.a.c.length==0||MUn(n,e)}function a9(n){n.i=0;GP(n.b,null);GP(n.c,null);n.a=null;n.e=null;++n.g}function c9(){c9=O;Sde=true;jde=false;Ede=false;Cde=false;Pde=false}function u9(n){c9();if(Sde){return}this.c=n;this.e=true;this.a=new im}function s9(n,e){this.c=0;this.b=e;sL.call(this,n,17493);this.a=this.c}function o9(n){KYn();km(this);this.a=new vS;Rln(this,n);hq(this.a,n)}function f9(){$N(this);this.b=new PO(y0n,y0n);this.a=new PO(M0n,M0n)}function h9(){h9=O;QZe=new lO(D6n,0);JZe=new lO("TARGET_WIDTH",1)}function l9(n,e){return(jgn(n),eE(new gX(n,new stn(e,n.a)))).Bd(gge)}function b9(){bIn();return zfn(fT(sTe,1),g1n,367,0,[rTe,iTe,aTe,cTe,uTe])}function w9(){yPn();return zfn(fT(xAe,1),g1n,375,0,[LAe,$Ae,DAe,NAe,AAe])}function d9(){Emn();return zfn(fT($Ne,1),g1n,348,0,[ONe,INe,LNe,NNe,ANe])}function g9(){Myn();return zfn(fT(QBe,1),g1n,323,0,[WBe,XBe,VBe,qBe,zBe])}function v9(){Wvn();return zfn(fT(nxe,1),g1n,171,0,[ZDe,WDe,QDe,JDe,YDe])}function p9(){YPn();return zfn(fT(ZQe,1),g1n,368,0,[JQe,zQe,YQe,WQe,QQe])}function m9(){qRn();return zfn(fT(j1e,1),g1n,373,0,[k1e,m1e,M1e,y1e,T1e])}function k9(){MOn();return zfn(fT(i0e,1),g1n,324,0,[Z1e,n0e,r0e,e0e,t0e])}function y9(){Hkn();return zfn(fT(k3e,1),g1n,170,0,[p3e,v3e,d3e,m3e,g3e])}function M9(){Zkn();return zfn(fT(g8e,1),g1n,256,0,[b8e,d8e,h8e,l8e,w8e])}function T9(n){JM();return function(){return y6(n,this,arguments);var e}}function j9(n){if(!n.c||!n.d){return false}return!!n.c.i&&n.c.i==n.d.i}function E9(n,e){if(G$(e,143)){return T_(n.c,bG(e,143).c)}return false}function S9(n){if(!n.t){n.t=new Fp(n);Fdn(new eM(n),0,n.t)}return n.t}function P9(n){this.b=n;_D.call(this,n);this.a=bG(Ron(this.b.a,4),129)}function C9(n){this.b=n;aR.call(this,n);this.a=bG(Ron(this.b.a,4),129)}function I9(n,e,t,r,i){p7.call(this,e,r,i);Uh(this);this.c=n;this.b=t}function O9(n,e,t,r,i){f4.call(this,e,r,i);Uh(this);this.c=n;this.a=t}function A9(n,e,t,r,i){h4.call(this,e,r,i);Uh(this);this.c=n;this.a=t}function L9(n,e,t,r,i){p7.call(this,e,r,i);Uh(this);this.c=n;this.a=t}function N9(n,e){var t;t=bG(hrn(n.d,e),23);return t?t:bG(hrn(n.e,e),23)}function $9(n,e){var t,r;t=e.ld();r=n.Fe(t);return!!r&&DJ(r.e,e.md())}function D9(n,e){var t;t=e.ld();return new GE(t,n.e.pc(t,bG(e.md(),16)))}function x9(n,e){var t;t=n.a.get(e);return t==null?$nn(kce,jZn,1,0,5,1):t}function R9(n){var e;e=n.length;return T_(E0n.substr(E0n.length-e,e),n)}function K9(n){if(dDn(n)){n.c=n.a;return n.a.Pb()}else{throw dm(new Xm)}}function F9(n,e){if(e==0||n.e==0){return n}return e>0?PFn(n,e):omn(n,-e)}function _9(n,e){if(e==0||n.e==0){return n}return e>0?omn(n,e):PFn(n,-e)}function B9(n){BP.call(this,n==null?CZn:fvn(n),G$(n,82)?bG(n,82):null)}function H9(n){var e;if(!n.c){e=n.r;G$(e,90)&&(n.c=bG(e,29))}return n.c}function U9(n){var e;e=new zZ;Yon(e,n);Ehn(e,(IYn(),DFe),null);return e}function G9(n){var e,t;e=n.c.i;t=n.d.i;return e.k==(YIn(),nEe)&&t.k==nEe}function q9(n){var e,t,r;e=n&f0n;t=n>>22&f0n;r=n<0?h0n:0;return M$(e,t,r)}function X9(n){var e,t,r,i;for(t=n,r=0,i=t.length;r=0?n.Lh(r,t,true):r$n(n,e,t)}function W9(n,e,t){return bgn(pD(Fkn(n),_$(e.b)),pD(Fkn(n),_$(t.b)))}function Q9(n,e,t){return bgn(pD(Fkn(n),_$(e.e)),pD(Fkn(n),_$(t.e)))}function J9(n,e){return t.Math.min(hen(e.a,n.d.d.c),hen(e.b,n.d.d.c))}function Y9(n,e){n._i(n.i+1);SD(n,n.i,n.Zi(n.i,e));n.Mi(n.i++,e);n.Ni()}function Z9(n){var e,t;++n.j;e=n.g;t=n.i;n.g=null;n.i=0;n.Oi(t,e);n.Ni()}function n7(n,e,t){var r;r=new z$(n.a);Bsn(r,n.a.a);ZAn(r.f,e,t);n.a.a=r}function e7(n,e,t,r){var i;for(i=0;ie){throw dm(new kM(sLn(n,e,"index")))}return n}function s7(n,e){var t;t=(b3(e,n.c.length),n.c[e]);aE(n.c,e,1);return t}function o7(n,e){var t,r;t=(cJ(n),n);r=(cJ(e),e);return t==r?0:te.p){return-1}return 0}function O7(n){var e;if(!n.a){e=n.r;G$(e,156)&&(n.a=bG(e,156))}return n.a}function A7(n,e,t){var r;++n.e;--n.f;r=bG(n.d[e].gd(t),136);return r.md()}function L7(n){var e,t;e=n.ld();t=bG(n.md(),16);return tG(t.Nc(),new nb(e))}function N7(n,e){if(Lz(n.a,e)){b7(n.a,e);return true}else{return false}}function $7(n,e,t){Q4(e,n.e.Rd().gc());Q4(t,n.c.Rd().gc());return n.a[e][t]}function D7(n,e,t){this.a=n;this.b=e;this.c=t;ED(n.t,this);ED(e.i,this)}function x7(n,e,t,r){this.f=n;this.e=e;this.d=t;this.b=r;this.c=!r?null:r.d}function R7(){this.b=new vS;this.a=new vS;this.b=new vS;this.a=new vS}function K7(){K7=O;var n,e;Wut=(jj(),e=new Wm,e);Qut=(n=new ny,n)}function F7(n){var e;jgn(n);e=new vG(n,n.a.e,n.a.d|4);return new $K(n,e)}function _7(n){var e;WQ(n);e=0;while(n.a.Bd(new dn)){e=Rgn(e,1)}return e}function B7(n,e){cJ(e);if(n.c=0,"Initial capacity must not be negative")}function U7(){U7=O;L3e=new Np("org.eclipse.elk.labels.labelManager")}function G7(){G7=O;NCe=new bF("separateLayerConnections",(Wfn(),KCe))}function q7(){q7=O;yXe=new QI("REGULAR",0);kXe=new QI("CRITICAL",1)}function X7(){X7=O;Q1e=new vO("FIXED",0);W1e=new vO("CENTER_NODE",1)}function V7(){V7=O;dNe=new nI("QUADRATIC",0);gNe=new nI("SCANLINE",1)}function z7(){z7=O;TNe=xbn((Icn(),zfn(fT(MNe,1),g1n,322,0,[kNe,mNe,yNe])))}function W7(){W7=O;CNe=xbn((ocn(),zfn(fT(PNe,1),g1n,351,0,[jNe,SNe,ENe])))}function Q7(){Q7=O;VAe=xbn((yun(),zfn(fT(XAe,1),g1n,372,0,[qAe,GAe,UAe])))}function J7(){J7=O;GNe=xbn((Lhn(),zfn(fT(UNe,1),g1n,460,0,[BNe,_Ne,HNe])))}function Y7(){Y7=O;D$e=xbn((sfn(),zfn(fT($$e,1),g1n,299,0,[L$e,N$e,A$e])))}function Z7(){Z7=O;_$e=xbn((irn(),zfn(fT(F$e,1),g1n,311,0,[R$e,K$e,x$e])))}function nnn(){nnn=O;KBe=xbn((Nwn(),zfn(fT(RBe,1),g1n,390,0,[$Be,DBe,xBe])))}function enn(){enn=O;IHe=xbn((son(),zfn(fT(CHe,1),g1n,387,0,[EHe,SHe,PHe])))}function tnn(){tnn=O;$He=xbn((Aln(),zfn(fT(NHe,1),g1n,349,0,[LHe,OHe,AHe])))}function rnn(){rnn=O;jHe=xbn((fcn(),zfn(fT(THe,1),g1n,463,0,[MHe,kHe,yHe])))}function inn(){inn=O;_He=xbn((Ebn(),zfn(fT(FHe,1),g1n,350,0,[xHe,RHe,KHe])))}function ann(){ann=O;qHe=xbn((scn(),zfn(fT(GHe,1),g1n,352,0,[UHe,BHe,HHe])))}function cnn(){cnn=O;QHe=xbn((Yfn(),zfn(fT(WHe,1),g1n,388,0,[VHe,zHe,XHe])))}function unn(){unn=O;Sze=xbn((Lln(),zfn(fT(Eze,1),g1n,392,0,[jze,Tze,Mze])))}function snn(){snn=O;pJe=xbn((jbn(),zfn(fT(vJe,1),g1n,393,0,[wJe,dJe,gJe])))}function onn(){onn=O;wYe=xbn((uon(),zfn(fT(bYe,1),g1n,300,0,[hYe,lYe,fYe])))}function fnn(){fnn=O;SYe=xbn((tmn(),zfn(fT(EYe,1),g1n,445,0,[MYe,TYe,jYe])))}function hnn(){hnn=O;$Ye=xbn((iMn(),zfn(fT(NYe,1),g1n,456,0,[OYe,LYe,AYe])))}function lnn(){lnn=O;YYe=xbn((Xgn(),zfn(fT(JYe,1),g1n,394,0,[WYe,QYe,zYe])))}function bnn(){bnn=O;c1e=xbn((ktn(),zfn(fT(a1e,1),g1n,439,0,[t1e,i1e,r1e])))}function wnn(){wnn=O;YUe=xbn((ucn(),zfn(fT(JUe,1),g1n,464,0,[zUe,WUe,QUe])))}function dnn(){dnn=O;gpe=xbn((Uen(),zfn(fT(dpe,1),g1n,471,0,[bpe,lpe,wpe])))}function gnn(){gnn=O;upe=xbn((ran(),zfn(fT(cpe,1),g1n,237,0,[rpe,ipe,ape])))}function vnn(){vnn=O;Ppe=xbn((rrn(),zfn(fT(Spe,1),g1n,472,0,[Epe,jpe,Tpe])))}function pnn(){pnn=O;Dde=xbn((Sbn(),zfn(fT($de,1),g1n,108,0,[Ade,Lde,Nde])))}function mnn(){mnn=O;GMe=xbn((trn(),zfn(fT(UMe,1),g1n,391,0,[BMe,_Me,HMe])))}function knn(){knn=O;V5e=xbn((Dwn(),zfn(fT(X5e,1),g1n,346,0,[G5e,U5e,q5e])))}function ynn(){ynn=O;F1e=xbn((Hdn(),zfn(fT(K1e,1),g1n,444,0,[D1e,x1e,R1e])))}function Mnn(){Mnn=O;m5e=xbn((ian(),zfn(fT(p5e,1),g1n,278,0,[d5e,g5e,v5e])))}function Tnn(){Tnn=O;A9e=xbn(($wn(),zfn(fT(O9e,1),g1n,280,0,[C9e,P9e,I9e])))}function jnn(n,e){return!n.o&&(n.o=new ven((cYn(),int),Rnt,n,0)),Spn(n.o,e)}function Enn(n,e){var t;if(n.C){t=bG(xJ(n.b,e),127).n;t.d=n.C.d;t.a=n.C.a}}function Snn(n){var e,t,r,i;i=n.d;e=n.a;t=n.b;r=n.c;n.d=t;n.a=r;n.b=i;n.c=e}function Pnn(n){!n.g&&(n.g=new ko);!n.g.b&&(n.g.b=new Dp(n));return n.g.b}function Cnn(n){!n.g&&(n.g=new ko);!n.g.c&&(n.g.c=new Kp(n));return n.g.c}function Inn(n){!n.g&&(n.g=new ko);!n.g.d&&(n.g.d=new xp(n));return n.g.d}function Onn(n){!n.g&&(n.g=new ko);!n.g.a&&(n.g.a=new Rp(n));return n.g.a}function Ann(n,e,t,r){!!t&&(r=t.Rh(e,upn(t.Dh(),n.c.uk()),null,r));return r}function Lnn(n,e,t,r){!!t&&(r=t.Th(e,upn(t.Dh(),n.c.uk()),null,r));return r}function Nnn(n,e,t,r){var i;i=$nn(Ght,z1n,28,e+1,15,1);UGn(i,n,e,t,r);return i}function $nn(n,e,t,r,i,a){var c;c=LTn(i,r);i!=10&&zfn(fT(n,a),e,t,i,c);return c}function Dnn(n,e,t){var r,i;i=new ifn(e,n);for(r=0;rt||e=0?n.Lh(t,true,true):r$n(n,e,true)}function Een(n,e,t){var r;r=zhn(n,e,t);n.b=new _un(r.c.length);return i_n(n,r)}function Sen(n){if(n.b<=0)throw dm(new Xm);--n.b;n.a-=n.c.c;return Bwn(n.a)}function Pen(n){var e;if(!n.a){throw dm(new OY)}e=n.a;n.a=H0(n.a);return e}function Cen(n){while(!n.a){if(!S_(n.c,new Sd(n))){return false}}return true}function Ien(n){var e;nQ(n);if(G$(n,204)){e=bG(n,204);return e}return new wb(n)}function Oen(n){Aen();bG(n.of((JYn(),j6e)),181).Fc((uNn(),I8e));n.qf(T6e,null)}function Aen(){Aen=O;O2e=new ws;L2e=new ds;A2e=Hln((JYn(),T6e),O2e,t6e,L2e)}function Len(){Len=O;fJe=new aO("LEAF_NUMBER",0);hJe=new aO("NODE_SIZE",1)}function Nen(n){n.a=$nn(Ght,z1n,28,n.b+1,15,1);n.c=$nn(Ght,z1n,28,n.b,15,1);n.d=0}function $en(n,e){if(n.a.Ne(e.d,n.b)>0){ED(n.c,new mG(e.c,e.d,n.d));n.b=e.d}}function Den(n,e){if(n.g==null||e>=n.i)throw dm(new ML(e,n.i));return n.g[e]}function xen(n,e,t){yln(n,t);if(t!=null&&!n.fk(t)){throw dm(new Km)}return t}function Ren(n,e){Prn(e)!=10&&zfn(Cbn(e),e.Sm,e.__elementTypeId$,Prn(e),n);return n}function Ken(n,e,t,r){var i;r=(wZ(),!r?Nbe:r);i=n.slice(e,t);oLn(i,n,e,t,-e,r)}function Fen(n,e,t,r,i){return e<0?r$n(n,t,r):bG(t,69).wk().yk(n,n.hi(),e,r,i)}function _en(n,e){return bgn(bM(MK(lIn(n,(WYn(),$De)))),bM(MK(lIn(e,$De))))}function Ben(){Ben=O;hde=xbn((Hen(),zfn(fT(ude,1),g1n,304,0,[rde,ide,ade,cde])))}function Hen(){Hen=O;rde=new QP("All",0);ide=new AN;ade=new L$;cde=new ON}function Uen(){Uen=O;bpe=new hC(X2n,0);lpe=new hC(U2n,1);wpe=new hC(V2n,2)}function Gen(){Gen=O;cXn();Kot=y0n;Rot=M0n;_ot=new Hw(y0n);Fot=new Hw(M0n)}function qen(){qen=O;kme=xbn((ufn(),zfn(fT(mme,1),g1n,417,0,[pme,dme,gme,vme])))}function Xen(){Xen=O;jke=xbn((Tyn(),zfn(fT(Tke,1),g1n,406,0,[kke,mke,yke,Mke])))}function Ven(){Ven=O;Xme=xbn((jyn(),zfn(fT(qme,1),g1n,332,0,[Hme,Bme,Ume,Gme])))}function zen(){zen=O;bje=xbn((zmn(),zfn(fT(lje,1),g1n,389,0,[hje,oje,sje,fje])))}function Wen(){Wen=O;_Te=xbn((Jfn(),zfn(fT(FTe,1),g1n,416,0,[DTe,KTe,xTe,RTe])))}function Qen(){Qen=O;EAe=xbn((Qfn(),zfn(fT(jAe,1),g1n,421,0,[kAe,yAe,MAe,TAe])))}function Jen(){Jen=O;_Ce=xbn((Wfn(),zfn(fT(FCe,1),g1n,371,0,[KCe,xCe,RCe,DCe])))}function Yen(){Yen=O;GBe=xbn((rMn(),zfn(fT(UBe,1),g1n,203,0,[BBe,HBe,_Be,FBe])))}function Zen(){Zen=O;dHe=xbn((Smn(),zfn(fT(wHe,1),g1n,284,0,[hHe,fHe,lHe,bHe])))}function ntn(){ntn=O;n$e=new sI(G4n,0);ZNe=new sI("IMPROVE_STRAIGHTNESS",1)}function etn(n,e){var t,r;r=e/n.c.Rd().gc()|0;t=e%n.c.Rd().gc();return $7(n,r,t)}function ttn(n){var e;if(n.nl()){for(e=n.i-1;e>=0;--e){Yin(n,e)}}return y5(n)}function rtn(n){var e,t;if(!n.b){return null}t=n.b;while(e=t.a[0]){t=e}return t}function itn(n){var e,t;if(!n.b){return null}t=n.b;while(e=t.a[1]){t=e}return t}function atn(n){if(G$(n,180)){return""+bG(n,180).a}return n==null?null:fvn(n)}function ctn(n){if(G$(n,180)){return""+bG(n,180).a}return n==null?null:fvn(n)}function utn(n,e){if(e.a){throw dm(new Uy(g2n))}Gz(n.a,e);e.a=n;!n.j&&(n.j=e)}function stn(n,e){oL.call(this,e.zd(),e.yd()&-16449);cJ(n);this.a=n;this.c=e}function otn(n,e){return new RU(e,UR(_$(e.e),e.f.a+n,e.f.b+n),(Qx(),false))}function ftn(n,e){LU();return ED(n,new nA(e,Bwn(e.e.c.length+e.g.c.length)))}function htn(n,e){LU();return ED(n,new nA(e,Bwn(e.e.c.length+e.g.c.length)))}function ltn(){ltn=O;oYe=xbn((kTn(),zfn(fT(sYe,1),g1n,354,0,[uYe,aYe,cYe,iYe])))}function btn(){btn=O;WWe=xbn((Tbn(),zfn(fT(zWe,1),g1n,353,0,[VWe,qWe,XWe,GWe])))}function wtn(){wtn=O;lVe=xbn((Njn(),zfn(fT(hVe,1),g1n,405,0,[uVe,sVe,oVe,fVe])))}function dtn(){dtn=O;E5e=xbn((qgn(),zfn(fT(j5e,1),g1n,223,0,[T5e,y5e,k5e,M5e])))}function gtn(){gtn=O;Z5e=xbn((xjn(),zfn(fT(Y5e,1),g1n,291,0,[J5e,z5e,W5e,Q5e])))}function vtn(){vtn=O;d9e=xbn((emn(),zfn(fT(w9e,1),g1n,386,0,[l9e,b9e,h9e,f9e])))}function ptn(){ptn=O;V9e=xbn((Qvn(),zfn(fT(X9e,1),g1n,320,0,[q9e,H9e,G9e,U9e])))}function mtn(){mtn=O;k7e=xbn((Oln(),zfn(fT(m7e,1),g1n,415,0,[g7e,v7e,d7e,p7e])))}function ktn(){ktn=O;t1e=new bO(d7n,0);i1e=new bO(m9n,1);r1e=new bO(G4n,2)}function ytn(n,e,t,r,i){cJ(n);cJ(e);cJ(t);cJ(r);cJ(i);return new nW(n,e,r)}function Mtn(n,e){var t;t=bG(b7(n.e,e),400);if(t){fq(t);return t.e}return null}function Ttn(n,e){var t;t=Ctn(n,e,0);if(t==-1){return false}s7(n,t);return true}function jtn(n,e,t){var r;WQ(n);r=new bn;r.a=e;n.a.Nb(new aC(r,t));return r.a}function Etn(n){var e;WQ(n);e=$nn(zht,C0n,28,0,15,1);cE(n.a,new Td(e));return e}function Stn(n){var e;if(!lun(n)){throw dm(new Xm)}n.e=1;e=n.d;n.d=null;return e}function Ptn(n){var e;if(qL(n)){e=0-n;if(!isNaN(e)){return e}}return Oon(yhn(n))}function Ctn(n,e,t){for(;t=0?_yn(n,t,true,true):r$n(n,e,true)}function Ztn(n){var e;e=Uan(Ron(n,32));if(e==null){Fmn(n);e=Uan(Ron(n,32))}return e}function nrn(n){var e;if(!n.Oh()){e=sQ(n.Dh())-n.ji();n.$h().Mk(e)}return n.zh()}function ern(n,e){eke=new ue;Zme=e;nke=n;bG(nke.b,68);Hnn(nke,eke,null);AVn(nke)}function trn(){trn=O;BMe=new kC("XY",0);_Me=new kC("X",1);HMe=new kC("Y",2)}function rrn(){rrn=O;Epe=new lC("TOP",0);jpe=new lC(U2n,1);Tpe=new lC(W2n,2)}function irn(){irn=O;R$e=new bI(G4n,0);K$e=new bI("TOP",1);x$e=new bI(W2n,2)}function arn(){arn=O;gHe=new MI("INPUT_ORDER",0);vHe=new MI("PORT_DEGREE",1)}function crn(){crn=O;Phe=M$(f0n,f0n,524287);Che=M$(0,0,l0n);Ihe=q9(1);q9(2);Ohe=q9(0)}function urn(n){var e;if(n.d!=n.r){e=pEn(n);n.e=!!e&&e.lk()==uie;n.d=e}return n.e}function srn(n,e,t){var r;r=n.g[e];SD(n,e,n.Zi(e,t));n.Ri(e,t,r);n.Ni();return r}function orn(n,e){var t;t=n.dd(e);if(t>=0){n.gd(t);return true}else{return false}}function frn(n,e){var t;nQ(n);nQ(e);t=false;while(e.Ob()){t=t|n.Fc(e.Pb())}return t}function hrn(n,e){var t;t=bG(fQ(n.e,e),400);if(t){aD(n,t);return t.e}return null}function lrn(n){var e,t;e=n/60|0;t=n%60;if(t==0){return""+e}return""+e+":"+(""+t)}function brn(n,e){var t=n.a[e];var r=(Nhn(),jhe)[typeof t];return r?r(t):Zbn(typeof t)}function wrn(n,e){var t,r;jgn(n);r=new g7(e,n.a);t=new __(r);return new gX(n,t)}function drn(n){var e;e=n.b.c.length==0?null:Yq(n.b,0);e!=null&&Nun(n,0);return e}function grn(n,e){var t,r,i;i=e.c.i;t=bG(fQ(n.f,i),60);r=t.d.c-t.e.c;gsn(e.a,r,0)}function vrn(n,e){var t;++n.d;++n.c[e];t=e+1;while(t=0){++e[0]}}function krn(n,e){San(n,e==null||tB((cJ(e),e))||isNaN((cJ(e),e))?0:(cJ(e),e))}function yrn(n,e){Pan(n,e==null||tB((cJ(e),e))||isNaN((cJ(e),e))?0:(cJ(e),e))}function Mrn(n,e){Ean(n,e==null||tB((cJ(e),e))||isNaN((cJ(e),e))?0:(cJ(e),e))}function Trn(n,e){jan(n,e==null||tB((cJ(e),e))||isNaN((cJ(e),e))?0:(cJ(e),e))}function jrn(n,e,t){return pD(new PO(t.e.a+t.f.a/2,t.e.b+t.f.b/2),n)==(cJ(e),e)}function Ern(n,e){return G$(e,102)&&(bG(e,19).Bb&S0n)!=0?new SL(e,n):new ifn(e,n)}function Srn(n,e){return G$(e,102)&&(bG(e,19).Bb&S0n)!=0?new SL(e,n):new ifn(e,n)}function Prn(n){return n.__elementTypeCategory$==null?10:n.__elementTypeCategory$}function Crn(n,e){return e==(fB(),fB(),dwe)?n.toLocaleLowerCase():n.toLowerCase()}function Irn(n){if(!n.e){throw dm(new Xm)}n.c=n.a=n.e;n.e=n.e.e;--n.d;return n.a.f}function Orn(n){if(!n.c){throw dm(new Xm)}n.e=n.a=n.c;n.c=n.c.c;++n.d;return n.a.f}function Arn(n){var e;++n.a;for(e=n.c.a.length;n.an.a[r]&&(r=t)}return r}function Rrn(n){var e;e=bG(lIn(n,(WYn(),V$e)),313);if(e){return e.a==n}return false}function Krn(n){var e;e=bG(lIn(n,(WYn(),V$e)),313);if(e){return e.i==n}return false}function Frn(){Frn=O;oTe=xbn((bIn(),zfn(fT(sTe,1),g1n,367,0,[rTe,iTe,aTe,cTe,uTe])))}function _rn(){_rn=O;RAe=xbn((yPn(),zfn(fT(xAe,1),g1n,375,0,[LAe,$Ae,DAe,NAe,AAe])))}function Brn(){Brn=O;DNe=xbn((Emn(),zfn(fT($Ne,1),g1n,348,0,[ONe,INe,LNe,NNe,ANe])))}function Hrn(){Hrn=O;JBe=xbn((Myn(),zfn(fT(QBe,1),g1n,323,0,[WBe,XBe,VBe,qBe,zBe])))}function Urn(){Urn=O;exe=xbn((Wvn(),zfn(fT(nxe,1),g1n,171,0,[ZDe,WDe,QDe,JDe,YDe])))}function Grn(){Grn=O;nJe=xbn((YPn(),zfn(fT(ZQe,1),g1n,368,0,[JQe,zQe,YQe,WQe,QQe])))}function qrn(){qrn=O;E1e=xbn((qRn(),zfn(fT(j1e,1),g1n,373,0,[k1e,m1e,M1e,y1e,T1e])))}function Xrn(){Xrn=O;a0e=xbn((MOn(),zfn(fT(i0e,1),g1n,324,0,[Z1e,n0e,r0e,e0e,t0e])))}function Vrn(){Vrn=O;w5e=xbn((Bdn(),zfn(fT(b5e,1),g1n,88,0,[h5e,f5e,o5e,s5e,l5e])))}function zrn(){zrn=O;y3e=xbn((Hkn(),zfn(fT(k3e,1),g1n,170,0,[p3e,v3e,d3e,m3e,g3e])))}function Wrn(){Wrn=O;v8e=xbn((Zkn(),zfn(fT(g8e,1),g1n,256,0,[b8e,d8e,h8e,l8e,w8e])))}function Qrn(){Qrn=O;t9e=xbn((UQn(),zfn(fT(e9e,1),X4n,64,0,[Z8e,D8e,$8e,Y8e,n9e])))}function Jrn(){Jrn=O;Mve=new sC("BY_SIZE",0);Tve=new sC("BY_SIZE_AND_SHAPE",1)}function Yrn(){Yrn=O;Nye=new mC("EADES",0);$ye=new mC("FRUCHTERMAN_REINGOLD",1)}function Zrn(){Zrn=O;xNe=new aI("READING_DIRECTION",0);RNe=new aI("ROTATION",1)}function nin(){nin=O;UTe=new Le;GTe=new xe;BTe=new Re;HTe=new De;qTe=new Ke}function ein(n){this.b=new im;this.a=new im;this.c=new im;this.d=new im;this.e=n}function tin(n){this.g=n;this.f=new im;this.a=t.Math.min(this.g.c.c,this.g.d.c)}function rin(n,e,t){VF.call(this);ean(this);this.a=n;this.c=t;this.b=e.d;this.f=e.e}function iin(n,e,t){var r,i;for(i=new nd(t);i.a=0&&e0?e-1:e;return vj(pj(Ban(BG(new gy,t),n.n),n.j),n.k)}function oin(n){var e,t;t=(e=new ry,e);cen((!n.q&&(n.q=new gz(Irt,n,11,10)),n.q),t)}function fin(n){return((n.i&2)!=0?"interface ":(n.i&1)!=0?"":"class ")+(jK(n),n.o)}function hin(n){if(kwn(n,pZn)>0){return pZn}if(kwn(n,T1n)<0){return T1n}return MV(n)}function lin(n){if(n<3){Tcn(n,l1n);return n+1}if(n=-.01&&n.a<=Y2n&&(n.a=0);n.b>=-.01&&n.b<=Y2n&&(n.b=0);return n}function Cin(n){v_n();var e,t;t=U9n;for(e=0;et&&(t=n[e])}return t}function Iin(n,e){var t;t=OKn(n.Dh(),e);if(!t){throw dm(new jM(Uee+e+Xee))}return t}function Oin(n,e){var t;t=n;while(H0(t)){t=H0(t);if(t==e){return true}}return false}function Ain(n,e){var t,r,i;r=e.a.ld();t=bG(e.a.md(),16).gc();for(i=0;in||n>e){throw dm(new rT("fromIndex: 0, toIndex: "+n+W0n+e))}}function _in(n){if(n<0){throw dm(new jM("Illegal Capacity: "+n))}this.g=this.aj(n)}function Bin(n,e){r$();lcn(M1n);return t.Math.abs(n-e)<=M1n||n==e||isNaN(n)&&isNaN(e)}function Hin(n,e){var t,r,i,a;for(r=n.d,i=0,a=r.length;i0){n.a/=e;n.b/=e}return n}function Vin(n){var e;if(n.w){return n.w}else{e=D3(n);!!e&&!e.Vh()&&(n.w=e);return e}}function zin(n,e){var t,r;r=n.a;t=Edn(n,e,null);r!=e&&!n.e&&(t=LWn(n,e,t));!!t&&t.oj()}function Win(n,e,t){var r,i;r=e;do{i=bM(n.p[r.p])+t;n.p[r.p]=i;r=n.a[r.p]}while(r!=e)}function Qin(n,e,t){var r=function(){return n.apply(r,arguments)};e.apply(r,t);return r}function Jin(n){var e;if(n==null){return null}else{e=bG(n,195);return KCn(e,e.length)}}function Yin(n,e){if(n.g==null||e>=n.i)throw dm(new ML(e,n.i));return n.Wi(e,n.g[e])}function Zin(n,e){dZ();var t,r;r=new im;for(t=0;t=14&&e<=16)));return n}function Gan(n,e){var t;cJ(e);t=n[":"+e];jG(!!t,"Enum constant undefined: "+e);return t}function qan(n,e,t,r,i,a){var c;c=ZW(n,e);Han(t,c);c.i=i?8:0;c.f=r;c.e=i;c.g=a;return c}function Xan(n,e,t,r,i){this.d=e;this.k=r;this.f=i;this.o=-1;this.p=1;this.c=n;this.a=t}function Van(n,e,t,r,i){this.d=e;this.k=r;this.f=i;this.o=-1;this.p=2;this.c=n;this.a=t}function zan(n,e,t,r,i){this.d=e;this.k=r;this.f=i;this.o=-1;this.p=6;this.c=n;this.a=t}function Wan(n,e,t,r,i){this.d=e;this.k=r;this.f=i;this.o=-1;this.p=7;this.c=n;this.a=t}function Qan(n,e,t,r,i){this.d=e;this.j=r;this.e=i;this.o=-1;this.p=4;this.c=n;this.a=t}function Jan(n,e){var t,r,i,a;for(r=e,i=0,a=r.length;i=0)){throw dm(new jM("tolerance ("+n+") must be >= 0"))}return n}function bcn(n,e){var t;if(G$(e,44)){return n.c.Mc(e)}else{t=Spn(n,e);Amn(n,e);return t}}function wcn(n,e,t){Ubn(n,e);Qun(n,t);Lan(n,0);Nan(n,1);Tdn(n,true);kdn(n,true);return n}function dcn(n,e){var t;t=n.gc();if(e<0||e>t)throw dm(new m_(e,t));return new K_(n,e)}function gcn(n,e){n.b=t.Math.max(n.b,e.d);n.e+=e.r+(n.a.c.length==0?0:n.c);ED(n.a,e)}function vcn(n){CK(n.c>=0);if(Hmn(n.d,n.c)<0){n.a=n.a-1&n.d.a.length-1;n.b=n.d.c}n.c=-1}function pcn(n){var e,t;for(t=n.c.Cc().Kc();t.Ob();){e=bG(t.Pb(),16);e.$b()}n.c.$b();n.d=0}function mcn(n){var e,t,r,i;for(t=n.a,r=0,i=t.length;r=0}function Xcn(n,e){if(n.r>0&&n.c0&&n.g!=0&&Xcn(n.i,e/n.r*n.i.d)}}function Vcn(n,e){var t;t=n.c;n.c=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,1,t,n.c))}function zcn(n,e){var t;t=n.c;n.c=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,4,t,n.c))}function Wcn(n,e){var t;t=n.k;n.k=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,2,t,n.k))}function Qcn(n,e){var t;t=n.D;n.D=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,2,t,n.D))}function Jcn(n,e){var t;t=n.f;n.f=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,8,t,n.f))}function Ycn(n,e){var t;t=n.i;n.i=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,7,t,n.i))}function Zcn(n,e){var t;t=n.a;n.a=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,8,t,n.a))}function nun(n,e){var t;t=n.b;n.b=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,0,t,n.b))}function eun(n,e){var t;t=n.b;n.b=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,0,t,n.b))}function tun(n,e){var t;t=n.c;n.c=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,1,t,n.c))}function run(n,e){var t;t=n.d;n.d=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,1,t,n.d))}function iun(n,e,t){var r;n.b=e;n.a=t;r=(n.a&512)==512?new hy:new Fh;n.c=QFn(r,n.b,n.a)}function aun(n,e){return OFn(n.e,e)?(LP(),urn(e)?new Nq(e,n):new DA(e,n)):new LA(e,n)}function cun(n){var e,t;if(0>n){return new TS}e=n+1;t=new s9(e,n);return new DK(null,t)}function uun(n,e){dZ();var t;t=new wS(1);HA(n)?o2(t,n,e):ZAn(t.f,n,e);return new Zw(t)}function sun(n,e){var t,r;t=n.c;r=e.e[n.p];if(r>0){return bG(Yq(t.a,r-1),10)}return null}function oun(n,e){var t,r;t=n.o+n.p;r=e.o+e.p;if(te){e<<=1;return e>0?e:w1n}return e}function lun(n){qD(n.e!=3);switch(n.e){case 2:return false;case 0:return true}return h7(n)}function bun(n,e){var t;if(G$(e,8)){t=bG(e,8);return n.a==t.a&&n.b==t.b}else{return false}}function wun(n,e){var t;t=new ue;bG(e.b,68);bG(e.b,68);bG(e.b,68);Lin(e.a,new FU(n,t,e))}function dun(n,e){var t,r;for(r=e.vc().Kc();r.Ob();){t=bG(r.Pb(),44);oSn(n,t.ld(),t.md())}}function gun(n,e){var t;t=n.d;n.d=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,11,t,n.d))}function vun(n,e){var t;t=n.j;n.j=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,13,t,n.j))}function pun(n,e){var t;t=n.b;n.b=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,21,t,n.b))}function mun(n,e){((c9(),Sde)?null:e.c).length==0&&HK(e,new W);o2(n.a,Sde?null:e.c,e)}function kun(n,e){e.Ug("Hierarchical port constraint processing",1);hyn(n);SYn(n);e.Vg()}function yun(){yun=O;qAe=new ZC("START",0);GAe=new ZC("MIDDLE",1);UAe=new ZC("END",2)}function Mun(){Mun=O;_Qe=new rO("P1_NODE_PLACEMENT",0);BQe=new rO("P2_EDGE_ROUTING",1)}function Tun(){Tun=O;wMe=new Np(j4n);dMe=new Np(E4n);bMe=new Np(S4n);lMe=new Np(P4n)}function jun(n){var e;DB(n.f.g,n.d);PK(n.b);n.c=n.a;e=bG(n.a.Pb(),44);n.b=Lfn(n);return e}function Eun(n){var e;if(n.b==null){return OP(),OP(),dat}e=n.ul()?n.tl():n.sl();return e}function Sun(n,e){var t;t=e==null?-1:Ctn(n.b,e,0);if(t<0){return false}Nun(n,t);return true}function Pun(n,e){var t;cJ(e);t=e.g;if(!n.b[t]){bQ(n.b,t,e);++n.c;return true}return false}function Cun(n,e){var t,r;t=1-e;r=n.a[t];n.a[t]=r.a[e];r.a[e]=n;n.b=true;r.b=false;return r}function Iun(n,e){var t,r;for(r=e.Kc();r.Ob();){t=bG(r.Pb(),272);n.b=true;Gz(n.e,t);t.b=n}}function Oun(n,e){var t,r;t=bG(lIn(n,(IYn(),S_e)),8);r=bG(lIn(e,S_e),8);return bgn(t.b,r.b)}function Aun(n,e,t){var r,i,a;a=e>>5;i=e&31;r=O3(_V(n.n[t][a],MV(KV(i,1))),3);return r}function Lun(n,e,t){var r,i,a;a=n.a.length-1;for(i=n.b,r=0;r0?1:0}return(!n.c&&(n.c=I2(Xon(n.f))),n.c).e}function csn(n,e){if(e){if(n.B==null){n.B=n.D;n.D=null}}else if(n.B!=null){n.D=n.B;n.B=null}}function usn(n,e){Jfn();return n==DTe&&e==KTe||n==KTe&&e==DTe||n==RTe&&e==xTe||n==xTe&&e==RTe}function ssn(n,e){Jfn();return n==DTe&&e==xTe||n==DTe&&e==RTe||n==KTe&&e==RTe||n==KTe&&e==xTe}function osn(n,e){return r$(),lcn(Y2n),t.Math.abs(0-e)<=Y2n||0==e||isNaN(0)&&isNaN(e)?0:n/e}function fsn(n,e){return bM(MK(Sx(fdn(rY(new gX(null,new d3(n.c.b,16)),new qg(n)),e))))}function hsn(n,e){return bM(MK(Sx(fdn(rY(new gX(null,new d3(n.c.b,16)),new Gg(n)),e))))}function lsn(){o_n();return zfn(fT(I$e,1),g1n,259,0,[k$e,M$e,T$e,j$e,E$e,S$e,C$e,m$e,y$e,P$e])}function bsn(){CHn();return zfn(fT(sHe,1),g1n,243,0,[cHe,eHe,iHe,tHe,rHe,YBe,aHe,uHe,ZBe,nHe])}function wsn(n,e){var t;e.Ug("General Compactor",1);t=Xvn(bG(YDn(n,(IOn(),KJe)),393));t.Cg(n)}function dsn(n,e){var t,r;t=bG(YDn(n,(IOn(),qJe)),17);r=bG(YDn(e,qJe),17);return k$(t.a,r.a)}function gsn(n,e,t){var r,i;for(i=Gkn(n,0);i.b!=i.d.c;){r=bG($6(i),8);r.a+=e;r.b+=t}return n}function vsn(n,e,t){var r;for(r=n.b[t&n.f];r;r=r.b){if(t==r.a&&BQ(e,r.g)){return r}}return null}function psn(n,e,t){var r;for(r=n.c[t&n.f];r;r=r.d){if(t==r.f&&BQ(e,r.i)){return r}}return null}function msn(n,e,t){var r,i,a;r=0;for(i=0;i>>31}r!=0&&(n[t]=r)}function ksn(n,e,t,r,i,a){var c;this.c=n;c=new im;cTn(n,c,e,n.b,t,r,i,a);this.a=new K4(c,0)}function ysn(){this.c=new Zj(0);this.b=new Zj(K9n);this.d=new Zj(R9n);this.a=new Zj(F3n)}function Msn(n,e,t,r,i,a,c){qE.call(this,n,e);this.d=t;this.e=r;this.c=i;this.b=a;this.a=a7(c)}function Tsn(n,e,t,r,i,a,c,u,s,o,f,h,l){uLn(n,e,t,r,i,a,c,u,s,o,f,h,l);Agn(n,false);return n}function jsn(n){if(n.b.c.i.k==(YIn(),nEe)){return bG(lIn(n.b.c.i,(WYn(),EDe)),12)}return n.b.c}function Esn(n){if(n.b.d.i.k==(YIn(),nEe)){return bG(lIn(n.b.d.i,(WYn(),EDe)),12)}return n.b.d}function Ssn(n){var e;e=c6(n);if(qA(e.a,0)){return yS(),yS(),jwe}return yS(),new kR(e.b)}function Psn(n){var e;e=i6(n);if(qA(e.a,0)){return kS(),kS(),Mwe}return kS(),new mR(e.b)}function Csn(n){var e;e=i6(n);if(qA(e.a,0)){return kS(),kS(),Mwe}return kS(),new mR(e.c)}function Isn(n){switch(n.g){case 2:return UQn(),n9e;case 4:return UQn(),$8e;default:return n}}function Osn(n){switch(n.g){case 1:return UQn(),Y8e;case 3:return UQn(),D8e;default:return n}}function Asn(n){switch(n.g){case 0:return new Zu;case 1:return new ns;default:return null}}function Lsn(){Lsn=O;MCe=new bF("edgelabelcenterednessanalysis.includelabel",(Qx(),Bhe))}function Nsn(){Nsn=O;UUe=Rmn(yL(xq(xq(new mJ,(bIn(),aTe),(YYn(),qPe)),cTe,DPe),uTe),GPe)}function $sn(){$sn=O;uGe=Rmn(yL(xq(xq(new mJ,(bIn(),aTe),(YYn(),qPe)),cTe,DPe),uTe),GPe)}function Dsn(){Dsn=O;Cit=new ey;Oit=zfn(fT(mrt,1),pie,179,0,[]);Iit=zfn(fT(Irt,1),mie,62,0,[])}function xsn(){xsn=O;ISe=new LC("TO_INTERNAL_LTR",0);CSe=new LC("TO_INPUT_DIRECTION",1)}function Rsn(){Rsn=O;bEe=new Xe;hEe=new Ve;lEe=new ze;fEe=new We;wEe=new Qe;dEe=new Je}function Ksn(n,e){e.Ug(d6n,1);xvn(GS(new xd((YS(),new TY(n,false,false,new Ge)))));e.Vg()}function Fsn(n,e,t){t.Ug("DFS Treeifying phase",1);Qpn(n,e);QKn(n,e);n.a=null;n.b=null;t.Vg()}function _sn(n,e){Qx();return HA(n)?o7(n,TK(e)):GA(n)?HV(n,MK(e)):UA(n)?BV(n,yK(e)):n.Fd(e)}function Bsn(n,e){var t,r;cJ(e);for(r=e.vc().Kc();r.Ob();){t=bG(r.Pb(),44);n.zc(t.ld(),t.md())}}function Hsn(n,e,t){var r;for(r=t.Kc();r.Ob();){if(!V5(n,e,r.Pb())){return false}}return true}function Usn(n,e,t,r,i){var a;if(t){a=upn(e.Dh(),n.c);i=t.Rh(e,-1-(a==-1?r:a),null,i)}return i}function Gsn(n,e,t,r,i){var a;if(t){a=upn(e.Dh(),n.c);i=t.Th(e,-1-(a==-1?r:a),null,i)}return i}function qsn(n){var e;if(n.b==-2){if(n.e==0){e=-1}else{for(e=0;n.a[e]==0;e++);}n.b=e}return n.b}function Xsn(n){cJ(n);if(n.length==0){throw dm(new iT("Zero length BigInteger"))}QHn(this,n)}function Vsn(n){this.i=n.gc();if(this.i>0){this.g=this.aj(this.i+(this.i/8|0)+1);n.Qc(this.g)}}function zsn(n,e,t){this.g=n;this.d=e;this.e=t;this.a=new im;HLn(this);dZ();g$(this.a,null)}function Wsn(n,e){e.q=n;n.d=t.Math.max(n.d,e.r);n.b+=e.d+(n.a.c.length==0?0:n.c);ED(n.a,e)}function Qsn(n,e){var t,r,i,a;i=n.c;t=n.c+n.b;a=n.d;r=n.d+n.a;return e.a>i&&e.aa&&e.bi?t=i:w3(e,t+1);n.a=o1(n.a,0,e)+(""+r)+wQ(n.a,t)}function Ton(n,e){n.a=Rgn(n.a,1);n.c=t.Math.min(n.c,e);n.b=t.Math.max(n.b,e);n.d=Rgn(n.d,e)}function jon(n,e){return e1||n.Ob()){++n.a;n.g=0;e=n.i;n.Ob();return e}else{throw dm(new Xm)}}function Gon(n){switch(n.a.g){case 1:return new UI;case 3:return new YTn;default:return new Tl}}function qon(n,e){switch(e){case 1:return!!n.n&&n.n.i!=0;case 2:return n.k!=null}return I4(n,e)}function Xon(n){if(g0n>22);i=n.h+e.h+(r>>22);return M$(t&f0n,r&f0n,i&h0n)}function Cfn(n,e){var t,r,i;t=n.l-e.l;r=n.m-e.m+(t>>22);i=n.h-e.h+(r>>22);return M$(t&f0n,r&f0n,i&h0n)}function Ifn(n){var e,t;XQn(n);for(t=new nd(n.d);t.ar)throw dm(new m_(e,r));n.Si()&&(t=x0(n,t));return n.Ei(e,t)}function mhn(n,e,t,r,i){var a,c;for(c=t;c<=i;c++){for(a=e;a<=r;a++){uTn(n,a,c)||VBn(n,a,c,true,false)}}}function khn(n){v_n();var e,t,r;t=$nn(D3e,XZn,8,2,0,1);r=0;for(e=0;e<2;e++){r+=.5;t[e]=nTn(r,n)}return t}function yhn(n){var e,t,r;e=~n.l+1&f0n;t=~n.m+(e==0?1:0)&f0n;r=~n.h+(e==0&&t==0?1:0)&h0n;return M$(e,t,r)}function Mhn(n){var e;if(n<0){return T1n}else if(n==0){return 0}else{for(e=w1n;(e&n)==0;e>>=1);return e}}function Thn(n,e,t){if(n>=128)return false;return n<64?VA(O3(KV(1,n),t),0):VA(O3(KV(1,n-64),e),0)}function jhn(n,e,t){return t==null?(!n.q&&(n.q=new rm),b7(n.q,e)):(!n.q&&(n.q=new rm),jJ(n.q,e,t)),n}function Ehn(n,e,t){t==null?(!n.q&&(n.q=new rm),b7(n.q,e)):(!n.q&&(n.q=new rm),jJ(n.q,e,t));return n}function Shn(n){var e,t;t=new k7;Yon(t,n);Ehn(t,(Tun(),wMe),n);e=new rm;Eqn(n,t,e);YWn(n,t,e);return t}function Phn(n){var e,t;e=n.t-n.k[n.o.p]*n.d+n.j[n.o.p]>n.f;t=n.u+n.e[n.o.p]*n.d>n.f*n.s*n.d;return e||t}function Chn(n,e){var t,r,i,a;t=false;r=n.a[e].length;for(a=0;a=0,"Negative initial capacity");jG(e>=0,"Non-positive load factor");Fz(this)}function Fhn(n,e,t,r,i){var a,c;c=n.length;a=t.length;if(e<0||r<0||i<0||e+i>c||r+i>a){throw dm(new Rm)}}function _hn(n,e){dZ();var t,r,i,a,c;c=false;for(r=e,i=0,a=r.length;i1||e>=0&&n.b<3}function rln(n){var e,t,r;e=~n.l+1&f0n;t=~n.m+(e==0?1:0)&f0n;r=~n.h+(e==0&&t==0?1:0)&h0n;n.l=e;n.m=t;n.h=r}function iln(n){dZ();var e,t,r;r=1;for(t=n.Kc();t.Ob();){e=t.Pb();r=31*r+(e!=null?Vun(e):0);r=r|0}return r}function aln(n,e,t,r,i){var a;a=yDn(n,e);t&&rln(a);if(i){n=dTn(n,e);r?She=yhn(n):She=M$(n.l,n.m,n.h)}return a}function cln(n,e,t){n.g=TAn(n,e,(UQn(),$8e),n.b);n.d=TAn(n,t,$8e,n.b);if(n.g.c==0||n.d.c==0){return}xIn(n)}function uln(n,e,t){n.g=TAn(n,e,(UQn(),n9e),n.j);n.d=TAn(n,t,n9e,n.j);if(n.g.c==0||n.d.c==0){return}xIn(n)}function sln(n,e){switch(e){case 7:return!!n.e&&n.e.i!=0;case 8:return!!n.d&&n.d.i!=0}return Uvn(n,e)}function oln(n,e){switch(e.g){case 0:G$(n.b,641)||(n.b=new von);break;case 1:G$(n.b,642)||(n.b=new YG)}}function fln(n){switch(n.g){case 0:return new cs;default:throw dm(new jM(hne+(n.f!=null?n.f:""+n.g)))}}function hln(n){switch(n.g){case 0:return new is;default:throw dm(new jM(hne+(n.f!=null?n.f:""+n.g)))}}function lln(n,e,t){return!eE(tY(new gX(null,new d3(n.c,16)),new dd(new WO(e,t)))).Bd((jS(),gge))}function bln(n,e){return pD(Fkn(bG(lIn(e,(eqn(),wWe)),88)),new PO(n.c.e.a-n.b.e.a,n.c.e.b-n.b.e.b))<=0}function wln(n,e){while(n.g==null&&!n.c?D0(n):n.g==null||n.i!=0&&bG(n.g[n.i-1],51).Ob()){SA(e,nRn(n))}}function dln(n){var e,t;for(t=new nd(n.a.b);t.ar?1:0}function Sln(n){ED(n.c,(nhn(),f2e));if(Bin(n.a,bM(MK(tyn((vpn(),kBe)))))){return new Js}return new Yv(n)}function Pln(n){while(!n.d||!n.d.Ob()){if(!!n.b&&!RM(n.b)){n.d=bG(Bz(n.b),51)}else{return null}}return n.d}function Cln(n){switch(n.g){case 1:return R9n;default:case 2:return 0;case 3:return F3n;case 4:return K9n}}function Iln(){eZn();var n;if(aht)return aht;n=uR(EJn("M",true));n=NX(EJn("M",false),n);aht=n;return aht}function Oln(){Oln=O;g7e=new bA("ELK",0);v7e=new bA("JSON",1);d7e=new bA("DOT",2);p7e=new bA("SVG",3)}function Aln(){Aln=O;LHe=new EI("STACKED",0);OHe=new EI("REVERSE_STACKED",1);AHe=new EI("SEQUENCED",2)}function Lln(){Lln=O;jze=new nO(G4n,0);Tze=new nO("MIDDLE_TO_MIDDLE",1);Mze=new nO("AVOID_OVERLAP",2)}function Nln(){Nln=O;wIe=new Ir;dIe=new Or;bIe=new Pr;lIe=new Ar;hIe=new Cr;fIe=(cJ(hIe),new R)}function $ln(){$ln=O;F5e=new NN(15);K5e=new qN((JYn(),c6e),F5e);_5e=I6e;$5e=v4e;D5e=J4e;R5e=n6e;x5e=Z4e}function Dln(n,e){var t,r,i,a,c;for(r=e,i=0,a=r.length;i=n.b.c.length){return}qln(n,2*e+1);t=2*e+2;t0){e.Cd(t);t.i&&ign(t)}}}function Vln(n,e,t){var r;for(r=t-1;r>=0&&n[r]===e[r];r--);return r<0?0:FP(O3(n[r],A0n),O3(e[r],A0n))?-1:1}function zln(n,e,t){var r,i;this.g=n;this.c=e;this.a=this;this.d=this;i=hun(t);r=$nn(Loe,h1n,227,i,0,1);this.b=r}function Wln(n,e,t,r,i){var a,c;for(c=t;c<=i;c++){for(a=e;a<=r;a++){if(uTn(n,a,c)){return true}}}return false}function Qln(n,e){var t,r;for(r=n.Zb().Cc().Kc();r.Ob();){t=bG(r.Pb(),16);if(t.Hc(e)){return true}}return false}function Jln(n,e,t){var r,i,a,c;cJ(t);c=false;a=n.fd(e);for(i=t.Kc();i.Ob();){r=i.Pb();a.Rb(r);c=true}return c}function Yln(n,e){var t,r;r=bG(Ron(n.a,4),129);t=$nn(utt,Bre,424,e,0,1);r!=null&&QGn(r,0,t,0,r.length);return t}function Zln(n,e){var t;t=new iBn((n.f&256)!=0,n.i,n.a,n.d,(n.f&16)!=0,n.j,n.g,e);n.e!=null||(t.c=n);return t}function nbn(n,e){var t;if(n===e){return true}else if(G$(e,85)){t=bG(e,85);return DOn(PV(n),t.vc())}return false}function ebn(n,e,t){var r,i;for(i=t.Kc();i.Ob();){r=bG(i.Pb(),44);if(n.Be(e,r.md())){return true}}return false}function tbn(n,e,t){if(!n.d[e.p][t.p]){Uyn(n,e,t);n.d[e.p][t.p]=true;n.d[t.p][e.p]=true}return n.a[e.p][t.p]}function rbn(n,e){var t;if(!n||n==e||!jR(e,(WYn(),wDe))){return false}t=bG(lIn(e,(WYn(),wDe)),10);return t!=n}function ibn(n){switch(n.i){case 2:{return true}case 1:{return false}case-1:{++n.c}default:{return n.$l()}}}function abn(n){switch(n.i){case-2:{return true}case-1:{return false}case 1:{--n.c}default:{return n._l()}}}function cbn(n){z0.call(this,"The given string does not match the expected format for individual spacings.",n)}function ubn(n,e){var t;e.Ug("Min Size Preprocessing",1);t=BAn(n);Pyn(n,(vBn(),qYe),t.a);Pyn(n,HYe,t.b);e.Vg()}function sbn(n){var e,t,r;e=0;r=$nn(D3e,XZn,8,n.b,0,1);t=Gkn(n,0);while(t.b!=t.d.c){r[e++]=bG($6(t),8)}return r}function obn(n,e,t){var r,i,a;r=new vS;for(a=Gkn(t,0);a.b!=a.d.c;){i=bG($6(a),8);hq(r,new uN(i))}Jln(n,e,r)}function fbn(n,e){var t;t=Rgn(n,e);if(FP(L3(n,e),0)|XA(L3(n,t),0)){return t}return Rgn(JZn,L3(_V(t,63),1))}function hbn(n,e){var t,r;t=bG(n.d.Bc(e),16);if(!t){return null}r=n.e.hc();r.Gc(t);n.e.d-=t.gc();t.$b();return r}function lbn(n){var e;e=n.a.c.length;if(e>0){return ZV(e-1,n.a.c.length),s7(n.a,e-1)}else{throw dm(new qm)}}function bbn(n,e,t){if(n>e){throw dm(new jM(c2n+n+u2n+e))}if(n<0||e>t){throw dm(new rT(c2n+n+s2n+e+W0n+t))}}function wbn(n,e){if(n.D==null&&n.B!=null){n.D=n.B;n.B=null}Qcn(n,e==null?null:(cJ(e),e));!!n.C&&n.hl(null)}function dbn(n,e){var t;t=tyn((vpn(),kBe))!=null&&e.Sg()!=null?bM(MK(e.Sg()))/bM(MK(tyn(kBe))):1;jJ(n.b,e,t)}function gbn(n,e){var t,r;r=n.c[e];if(r==0){return}n.c[e]=0;n.d-=r;t=e+1;while(tx9n?n-r>x9n:r-n>x9n}function ewn(n,e){var t;for(t=0;ti){zSn(e.q,i);r=t!=e.q.d}}return r}function iwn(n,e){var r,i,a,c,u,s,o,f;o=e.i;f=e.j;i=n.f;a=i.i;c=i.j;u=o-a;s=f-c;r=t.Math.sqrt(u*u+s*s);return r}function awn(n,e){var t,r;r=Umn(n);if(!r){!Int&&(Int=new Lo);t=(rVn(),wxn(e));r=new Jp(t);cen(r.El(),n)}return r}function cwn(n,e){var t,r;t=bG(n.c.Bc(e),16);if(!t){return n.jc()}r=n.hc();r.Gc(t);n.d-=t.gc();t.$b();return n.mc(r)}function uwn(n,e){var t,r;r=bRn(n.d,1)!=0;t=true;while(t){t=false;t=e.c.mg(e.e,r);t=t|LKn(n,e,r,false);r=!r}Wun(n)}function swn(n,e,t,r){var i,a;n.a=e;a=r?0:1;n.f=(i=new qOn(n.c,n.a,t,a),new uBn(t,n.a,i,n.e,n.b,n.c==(ucn(),WUe)))}function own(n){var e;PK(n.a!=n.b);e=n.d.a[n.a];IK(n.b==n.d.c&&e!=null);n.c=n.a;n.a=n.a+1&n.d.a.length-1;return e}function fwn(n){var e;if(n.c!=0){return n.c}for(e=0;e=n.c.b:n.a<=n.c.b)){throw dm(new Xm)}e=n.a;n.a+=n.c.c;++n.b;return Bwn(e)}function lwn(n){var e;e=new A$(n.a);Yon(e,n);Ehn(e,(WYn(),EDe),n);e.o.a=n.g;e.o.b=n.f;e.n.a=n.i;e.n.b=n.j;return e}function bwn(n){return(UQn(),X8e).Hc(n.j)?bM(MK(lIn(n,(WYn(),UDe)))):Whn(zfn(fT(D3e,1),XZn,8,0,[n.i.n,n.n,n.a])).b}function wwn(n){var e;e=hN(_Ue);bG(lIn(n,(WYn(),oDe)),21).Hc((o_n(),E$e))&&xq(e,(bIn(),aTe),(YYn(),ZPe));return e}function dwn(n){var e,t,r,i;i=new uk;for(r=new nd(n);r.a=0?e:-e;while(r>0){if(r%2==0){t*=t;r=r/2|0}else{i*=t;r-=1}}return e<0?1/i:i}function Mwn(n,e){var t,r,i;i=1;t=n;r=e>=0?e:-e;while(r>0){if(r%2==0){t*=t;r=r/2|0}else{i*=t;r-=1}}return e<0?1/i:i}function Twn(n,e){var t,r,i,a;a=(i=n?Umn(n):null,gLn((r=e,i?i.Gl():null,r)));if(a==e){t=Umn(n);!!t&&t.Gl()}return a}function jwn(n,e,t){var r,i;i=n.f;n.f=e;if((n.Db&4)!=0&&(n.Db&1)==0){r=new vz(n,1,0,i,e);!t?t=r:t.nj(r)}return t}function Ewn(n,e,t){var r,i;i=n.b;n.b=e;if((n.Db&4)!=0&&(n.Db&1)==0){r=new vz(n,1,3,i,e);!t?t=r:t.nj(r)}return t}function Swn(n,e,t){var r,i;i=n.a;n.a=e;if((n.Db&4)!=0&&(n.Db&1)==0){r=new vz(n,1,1,i,e);!t?t=r:t.nj(r)}return t}function Pwn(n){var e,t,r,i;if(n!=null){for(t=0;t=r||e-129&&n<128){return JG(),e=n+128,t=rle[e],!t&&(t=rle[e]=new $w(n)),t}return new $w(n)}function Hwn(n){var e,t;if(n>-129&&n<128){return uX(),e=n+128,t=dle[e],!t&&(t=dle[e]=new xw(n)),t}return new xw(n)}function Uwn(n,e){var t;if(n.a.c.length>0){t=bG(Yq(n.a,n.a.c.length-1),579);if(Rln(t,e)){return}}ED(n.a,new o9(e))}function Gwn(n){WB();var e,t;e=n.d.c-n.e.c;t=bG(n.g,154);Lin(t.b,new Lg(e));Lin(t.c,new Ng(e));Y8(t.i,new $g(e))}function qwn(n){var e;e=new nT;e.a+="VerticalSegment ";eL(e,n.e);e.a+=" ";tL(e,UD(new GM,new nd(n.k)));return e.a}function Xwn(n,e){var t,r,i;t=0;for(i=_gn(n,e).Kc();i.Ob();){r=bG(i.Pb(),12);t+=lIn(r,(WYn(),NDe))!=null?1:0}return t}function Vwn(n,e,t){var r,i,a;r=0;for(a=Gkn(n,0);a.b!=a.d.c;){i=bM(MK($6(a)));if(i>t){break}else i>=e&&++r}return r}function zwn(n,e){nQ(n);try{return n._b(e)}catch(t){t=Ofn(t);if(G$(t,212)||G$(t,169)){return false}else throw dm(t)}}function Wwn(n,e){nQ(n);try{return n.Hc(e)}catch(t){t=Ofn(t);if(G$(t,212)||G$(t,169)){return false}else throw dm(t)}}function Qwn(n,e){nQ(n);try{return n.Mc(e)}catch(t){t=Ofn(t);if(G$(t,212)||G$(t,169)){return false}else throw dm(t)}}function Jwn(n,e){nQ(n);try{return n.xc(e)}catch(t){t=Ofn(t);if(G$(t,212)||G$(t,169)){return null}else throw dm(t)}}function Ywn(n,e){nQ(n);try{return n.Bc(e)}catch(t){t=Ofn(t);if(G$(t,212)||G$(t,169)){return null}else throw dm(t)}}function Zwn(n,e){switch(e.g){case 2:case 1:return _gn(n,e);case 3:case 4:return Avn(_gn(n,e))}return dZ(),dZ(),lbe}function ndn(n){var e;if((n.Db&64)!=0)return jxn(n);e=new gx(jxn(n));e.a+=" (name: ";ZA(e,n.zb);e.a+=")";return e.a}function edn(n){var e;e=bG(hrn(n.c.c,""),233);if(!e){e=new $2(zT(VT(new ms,""),"Other"));xkn(n.c.c,"",e)}return e}function tdn(n,e,t){var r,i;i=n.sb;n.sb=e;if((n.Db&4)!=0&&(n.Db&1)==0){r=new vz(n,1,4,i,e);!t?t=r:t.nj(r)}return t}function rdn(n,e,t){var r,i;i=n.r;n.r=e;if((n.Db&4)!=0&&(n.Db&1)==0){r=new vz(n,1,8,i,n.r);!t?t=r:t.nj(r)}return t}function idn(n,e,t){var r,i;r=new Utn(n.e,4,13,(i=e.c,i?i:(rZn(),Jrt)),null,Vyn(n,e),false);!t?t=r:t.nj(r);return t}function adn(n,e,t){var r,i;r=new Utn(n.e,3,13,null,(i=e.c,i?i:(rZn(),Jrt)),Vyn(n,e),false);!t?t=r:t.nj(r);return t}function cdn(n,e){var t,r;t=bG(e,691);r=t.el();!r&&t.fl(r=G$(e,90)?new NA(n,bG(e,29)):new y4(n,bG(e,156)));return r}function udn(n,e,t){var r;n._i(n.i+1);r=n.Zi(e,t);e!=n.i&&QGn(n.g,e,n.g,e+1,n.i-e);bQ(n.g,e,r);++n.i;n.Mi(e,t);n.Ni()}function sdn(n,e){var t;if(e.a){t=e.a.a.length;!n.a?n.a=new vx(n.d):tL(n.a,n.b);R4(n.a,e.a,e.d.length,t)}return n}function odn(n,e){var t;n.c=e;n.a=tpn(e);n.a<54&&(n.f=(t=e.d>1?N4(e.a[0],e.a[1]):N4(e.a[0],0),n6(e.e>0?t:Ptn(t))))}function fdn(n,e){var t;t=new bn;if(!n.a.Bd(t)){WQ(n);return zD(),zD(),kwe}return zD(),new Jy(cJ(jtn(n,t.a,e)))}function hdn(n,e){var t;if(n.c.length==0){return}t=bG(Okn(n,$nn(Yje,e6n,10,n.c.length,0,1)),199);YL(t,new Dt);n$n(t,e)}function ldn(n,e){var t;if(n.c.length==0){return}t=bG(Okn(n,$nn(Yje,e6n,10,n.c.length,0,1)),199);YL(t,new xt);n$n(t,e)}function bdn(n,e){return HA(n)?T_(n,e):GA(n)?M_(n,e):UA(n)?(cJ(n),BA(n)===BA(e)):NV(n)?n.Fb(e):BX(n)?AL(n,e):I3(n,e)}function wdn(n,e,t){if(e<0){YLn(n,t)}else{if(!t.rk()){throw dm(new jM(Uee+t.xe()+Gee))}bG(t,69).wk().Ek(n,n.hi(),e)}}function ddn(n,e,t){if(n<0||e>t){throw dm(new kM(c2n+n+s2n+e+", size: "+t))}if(n>e){throw dm(new jM(c2n+n+u2n+e))}}function gdn(n){var e;if((n.Db&64)!=0)return jxn(n);e=new gx(jxn(n));e.a+=" (source: ";ZA(e,n.d);e.a+=")";return e.a}function vdn(n){if(n>=65&&n<=70){return n-65+10}if(n>=97&&n<=102){return n-97+10}if(n>=48&&n<=57){return n-48}return 0}function pdn(n){tZn();var e,t,r,i;for(t=Kkn(),r=0,i=t.length;r=0?Hpn(n):dW(Hpn(Ptn(n))))}function Adn(n,e,t,r,i,a){this.e=new im;this.f=(fcn(),MHe);ED(this.e,n);this.d=e;this.a=t;this.b=r;this.f=i;this.c=a}function Ldn(n,e,r){n.n=tX(Xht,[XZn,j0n],[376,28],14,[r,c0(t.Math.ceil(e/32))],2);n.o=e;n.p=r;n.j=e-1>>1;n.k=r-1>>1}function Ndn(n){n-=n>>1&1431655765;n=(n>>2&858993459)+(n&858993459);n=(n>>4)+n&252645135;n+=n>>8;n+=n>>16;return n&63}function $dn(n,e){var t,r;for(r=new _D(n);r.e!=r.i.gc();){t=bG(iyn(r),142);if(BA(e)===BA(t)){return true}}return false}function Ddn(n,e,t){var r,i,a;a=(i=Ixn(n.b,e),i);if(a){r=bG(eVn(Rtn(n,a),""),29);if(r){return dxn(n,r,e,t)}}return null}function xdn(n,e,t){var r,i,a;a=(i=Ixn(n.b,e),i);if(a){r=bG(eVn(Rtn(n,a),""),29);if(r){return gxn(n,r,e,t)}}return null}function Rdn(n,e){var t;t=kan(n.i,e);if(t==null){throw dm(new AM("Node did not exist in input."))}eon(e,t);return null}function Kdn(n,e){var t;t=OKn(n,e);if(G$(t,331)){return bG(t,35)}throw dm(new jM(Uee+e+"' is not a valid attribute"))}function Fdn(n,e,t){var r;r=n.gc();if(e>r)throw dm(new m_(e,r));if(n.Si()&&n.Hc(t)){throw dm(new jM(Gte))}n.Gi(e,t)}function _dn(n,e){e.Ug("Sort end labels",1);ES(tY(wrn(new gX(null,new d3(n.b,16)),new mt),new kt),new yt);e.Vg()}function Bdn(){Bdn=O;h5e=new LO(J2n,0);f5e=new LO(V2n,1);o5e=new LO(X2n,2);s5e=new LO(i3n,3);l5e=new LO("UP",4)}function Hdn(){Hdn=O;D1e=new gO("P1_STRUCTURE",0);x1e=new gO("P2_PROCESSING_ORDER",1);R1e=new gO("P3_EXECUTION",2)}function Udn(){Udn=O;hQe=Rmn(Rmn(yP(Rmn(Rmn(yP(xq(new mJ,(Njn(),sVe),(DHn(),oze)),oVe),aze),uze),fVe),eze),sze)}function Gdn(n){switch(bG(lIn(n,(WYn(),bDe)),311).g){case 1:Ehn(n,bDe,(irn(),x$e));break;case 2:Ehn(n,bDe,(irn(),K$e))}}function qdn(n){switch(n){case 0:return new Gk;case 1:return new Hk;case 2:return new Uk;default:throw dm(new _m)}}function Xdn(n){switch(n.g){case 2:return f5e;case 1:return o5e;case 4:return s5e;case 3:return l5e;default:return h5e}}function Vdn(n,e){switch(n.b.g){case 0:case 1:return e;case 2:case 3:return new yY(e.d,0,e.a,e.b);default:return null}}function zdn(n){switch(n.g){case 1:return n9e;case 2:return D8e;case 3:return $8e;case 4:return Y8e;default:return Z8e}}function Wdn(n){switch(n.g){case 1:return Y8e;case 2:return n9e;case 3:return D8e;case 4:return $8e;default:return Z8e}}function Qdn(n){switch(n.g){case 1:return $8e;case 2:return Y8e;case 3:return n9e;case 4:return D8e;default:return Z8e}}function Jdn(n,e,t,r){switch(e){case 1:return!n.n&&(n.n=new gz(unt,n,1,7)),n.n;case 2:return n.k}return hjn(n,e,t,r)}function Ydn(n,e,t){var r,i;if(n.Pj()){i=n.Qj();r=VNn(n,e,t);n.Jj(n.Ij(7,Bwn(t),r,e,i));return r}else{return VNn(n,e,t)}}function Zdn(n,e){var t,r,i;if(n.d==null){++n.e;--n.f}else{i=e.ld();t=e.Bi();r=(t&pZn)%n.d.length;A7(n,r,Cxn(n,r,t,i))}}function ngn(n,e){var t;t=(n.Bb&b1n)!=0;e?n.Bb|=b1n:n.Bb&=-1025;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new I9(n,1,10,t,e))}function egn(n,e){var t;t=(n.Bb&T0n)!=0;e?n.Bb|=T0n:n.Bb&=-4097;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new I9(n,1,12,t,e))}function tgn(n,e){var t;t=(n.Bb&sie)!=0;e?n.Bb|=sie:n.Bb&=-8193;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new I9(n,1,15,t,e))}function rgn(n,e){var t;t=(n.Bb&oie)!=0;e?n.Bb|=oie:n.Bb&=-2049;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new I9(n,1,11,t,e))}function ign(n){var e;if(n.g){e=n.c.kg()?n.f:n.a;NFn(e.a,n.o,true);NFn(e.a,n.o,false);Ehn(n.o,(IYn(),m_e),(FPn(),p8e))}}function agn(n){var e;if(!n.a){throw dm(new EM("Cannot offset an unassigned cut."))}e=n.c-n.b;n.b+=e;sZ(n,e);uZ(n,e)}function cgn(n,e){var t;t=fQ(n.k,e);if(t==null){throw dm(new AM("Port did not exist in input."))}eon(e,t);return null}function ugn(n){var e,t;for(t=pxn(Vin(n)).Kc();t.Ob();){e=TK(t.Pb());if(WUn(n,e)){return d8((SP(),jrt),e)}}return null}function sgn(n){var e,t;for(t=n.p.a.ec().Kc();t.Ob();){e=bG(t.Pb(),218);if(e.f&&n.b[e.c]<-1e-10){return e}}return null}function ogn(n){var e,t;t=IQ(new nT,91);e=true;while(n.Ob()){e||(t.a+=MZn,t);e=false;eL(t,n.Pb())}return(t.a+="]",t).a}function fgn(n){var e,t,r;e=new im;for(r=new nd(n.b);r.ae){return 1}if(n==e){return n==0?bgn(1/n,1/e):0}return isNaN(n)?isNaN(e)?0:1:-1}function wgn(n){var e;e=n.a[n.c-1&n.a.length-1];if(e==null){return null}n.c=n.c-1&n.a.length-1;bQ(n.a,n.c,null);return e}function dgn(n){var e,t,r;r=0;t=n.length;for(e=0;e=1?f5e:s5e}return t}function Tgn(n){switch(bG(lIn(n,(IYn(),gFe)),223).g){case 1:return new sa;case 3:return new ba;default:return new ua}}function jgn(n){if(n.c){jgn(n.c)}else if(n.d){throw dm(new EM("Stream already terminated, can't be modified or used"))}}function Egn(n,e,t){var r;r=n.a.get(e);n.a.set(e,t===undefined?null:t);if(r===undefined){++n.c;++n.b.g}else{++n.d}return r}function Sgn(n,e,t){var r,i;for(i=n.a.ec().Kc();i.Ob();){r=bG(i.Pb(),10);if(Sfn(t,bG(Yq(e,r.p),16))){return r}}return null}function Pgn(n,e,t){var r;r=0;!!e&&(gN(n.a)?r+=e.f.a/2:r+=e.f.b/2);!!t&&(gN(n.a)?r+=t.f.a/2:r+=t.f.b/2);return r}function Cgn(n,e,t){var r;r=t;!r&&(r=BG(new gy,0));r.Ug(R4n,2);Yyn(n.b,e,r.eh(1));JVn(n,e,r.eh(1));dJn(e,r.eh(1));r.Vg()}function Ign(n,e,t){var r,i;r=(yj(),i=new io,i);Aan(r,e);Man(r,t);!!n&&cen((!n.a&&(n.a=new PD(K7e,n,5)),n.a),r);return r}function Ogn(n){var e;if((n.Db&64)!=0)return jxn(n);e=new gx(jxn(n));e.a+=" (identifier: ";ZA(e,n.k);e.a+=")";return e.a}function Agn(n,e){var t;t=(n.Bb&Wee)!=0;e?n.Bb|=Wee:n.Bb&=-32769;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new I9(n,1,18,t,e))}function Lgn(n,e){var t;t=(n.Bb&Wee)!=0;e?n.Bb|=Wee:n.Bb&=-32769;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new I9(n,1,18,t,e))}function Ngn(n,e){var t;t=(n.Bb&VZn)!=0;e?n.Bb|=VZn:n.Bb&=-16385;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new I9(n,1,16,t,e))}function $gn(n,e){var t;t=(n.Bb&S0n)!=0;e?n.Bb|=S0n:n.Bb&=-65537;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new I9(n,1,20,t,e))}function Dgn(n){var e;e=$nn(Uht,L1n,28,2,15,1);n-=S0n;e[0]=(n>>10)+P0n&$1n;e[1]=(n&1023)+56320&$1n;return Tmn(e,0,e.length)}function xgn(n){var e;e=rOn(n);if(e>34028234663852886e22){return y0n}else if(e<-34028234663852886e22){return M0n}return e}function Rgn(n,e){var t;if(qL(n)&&qL(e)){t=n+e;if(g0n"+Z3(e.c):"e_"+Vun(e),!!n.b&&!!n.c?Z3(n.b)+"->"+Z3(n.c):"e_"+Vun(n))}function Ugn(n,e){return T_(!!e.b&&!!e.c?Z3(e.b)+"->"+Z3(e.c):"e_"+Vun(e),!!n.b&&!!n.c?Z3(n.b)+"->"+Z3(n.c):"e_"+Vun(n))}function Ggn(n,e){r$();return lcn(M1n),t.Math.abs(n-e)<=M1n||n==e||isNaN(n)&&isNaN(e)?0:ne?1:UL(isNaN(n),isNaN(e))}function qgn(){qgn=O;T5e=new $O(J2n,0);y5e=new $O("POLYLINE",1);k5e=new $O("ORTHOGONAL",2);M5e=new $O("SPLINES",3)}function Xgn(){Xgn=O;WYe=new hO("ASPECT_RATIO_DRIVEN",0);QYe=new hO("MAX_SCALE_DRIVEN",1);zYe=new hO("AREA_DRIVEN",2)}function Vgn(n,e,t){var r;try{Zhn(n,e,t)}catch(i){i=Ofn(i);if(G$(i,606)){r=i;throw dm(new B9(r))}else throw dm(i)}return e}function zgn(n){var e,t,r;for(t=0,r=n.length;te&&r.Ne(n[a-1],n[a])>0;--a){c=n[a];bQ(n,a,n[a-1]);bQ(n,a-1,c)}}}function ivn(n,e){var t,r,i,a,c;t=e.f;xkn(n.c.d,t,e);if(e.g!=null){for(i=e.g,a=0,c=i.length;ae){G4(t);break}}vW(t,e)}function cvn(n,e){var r,i,a;i=Y4(e);a=bM(MK(Dpn(i,(IYn(),R_e))));r=t.Math.max(0,a/2-.5);CEn(e,r,1);ED(n,new BC(e,r))}function uvn(n,e,t){var r;t.Ug("Straight Line Edge Routing",1);t.dh(e,h7n);r=bG(YDn(e,(AK(),FQe)),27);_Xn(n,r);t.dh(e,b7n)}function svn(n,e){n.n.c.length==0&&ED(n.n,new f0(n.s,n.t,n.i));ED(n.b,e);YMn(bG(Yq(n.n,n.n.c.length-1),209),e);aqn(n,e)}function ovn(n){var e;this.a=(e=bG(n.e&&n.e(),9),new aB(e,bG(PF(e,e.length),9),0));this.b=$nn(kce,jZn,1,this.a.a.length,5,1)}function fvn(n){var e;if(Array.isArray(n)&&n.Tm===I){return $j(Cbn(n))+"@"+(e=Vun(n)>>>0,e.toString(16))}return n.toString()}function hvn(n,e){if(n.h==l0n&&n.m==0&&n.l==0){e&&(She=M$(0,0,0));return RL((crn(),Ihe))}e&&(She=M$(n.l,n.m,n.h));return M$(0,0,0)}function lvn(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return false}}function bvn(n,e){switch(e.g){case 2:return n.b;case 1:return n.c;case 4:return n.d;case 3:return n.a;default:return false}}function wvn(n,e,t,r){switch(e){case 3:return n.f;case 4:return n.g;case 5:return n.i;case 6:return n.j}return Jdn(n,e,t,r)}function dvn(n,e){if(e==n.d){return n.e}else if(e==n.e){return n.d}else{throw dm(new jM("Node "+e+" not part of edge "+n))}}function gvn(n,e){var t;t=OKn(n.Dh(),e);if(G$(t,102)){return bG(t,19)}throw dm(new jM(Uee+e+"' is not a valid reference"))}function vvn(n,e,t,r){if(e<0){vRn(n,t,r)}else{if(!t.rk()){throw dm(new jM(Uee+t.xe()+Gee))}bG(t,69).wk().Ck(n,n.hi(),e,r)}}function pvn(n){var e;if(n.b){pvn(n.b);if(n.b.d!=n.c){throw dm(new Gm)}}else if(n.d.dc()){e=bG(n.f.c.xc(n.e),16);!!e&&(n.d=e)}}function mvn(n){ZK();var e,t,r,i;e=n.o.b;for(r=bG(bG(r7(n.r,(UQn(),Y8e)),21),87).Kc();r.Ob();){t=bG(r.Pb(),117);i=t.e;i.b+=e}}function kvn(n){var e,t,r;this.a=new JL;for(r=new nd(n);r.a=i){return e.c+t}}return e.c+e.b.gc()}function Mvn(n,e){OK();var t,r,i,a;r=ttn(n);i=e;Ken(r,0,r.length,i);for(t=0;t0){r+=i;++t}}t>1&&(r+=n.d*(t-1));return r}function Pvn(n){var e,t,r,i,a;a=yCn(n);t=ME(n.c);r=!t;if(r){i=new $b;ain(a,"knownLayouters",i);e=new Ip(i);Y8(n.c,e)}return a}function Cvn(n){var e,t,r;r=new YM;r.a+="[";for(e=0,t=n.gc();e0&&(w3(e-1,n.length),n.charCodeAt(e-1)==58)&&!Tvn(n,urt,srt)}function Nvn(n,e){var t;if(BA(n)===BA(e)){return true}if(G$(e,92)){t=bG(e,92);return n.e==t.e&&n.d==t.d&&k8(n,t.a)}return false}function $vn(n){UQn();switch(n.g){case 4:return D8e;case 1:return $8e;case 3:return Y8e;case 2:return n9e;default:return Z8e}}function Dvn(n){var e,t;if(n.b){return n.b}t=Sde?null:n.d;while(t){e=Sde?null:t.b;if(e){return e}t=Sde?null:t.d}return MS(),pde}function xvn(n){var e,t,r;r=bM(MK(n.a.of((JYn(),U6e))));for(t=new nd(n.a.Sf());t.a>5;e=n&31;r=$nn(Ght,z1n,28,t+1,15,1);r[t]=1<3){i*=10;--a}n=(n+(i>>1))/i|0}r.i=n;return true}function upn(n,e){var t,r,i;t=(n.i==null&&uqn(n),n.i);r=e.Lj();if(r!=-1){for(i=t.length;r=0;--r){e=t[r];for(i=0;i>1;this.k=e-1>>1}function dpn(n){Aen();if(bG(n.of((JYn(),t6e)),181).Hc((hUn(),T9e))){bG(n.of(j6e),181).Fc((uNn(),A8e));bG(n.of(t6e),181).Mc(T9e)}}function gpn(n){var e,t;e=n.d==(jAn(),sNe);t=kPn(n);e&&!t||!e&&t?Ehn(n.a,(IYn(),DKe),(aMn(),B3e)):Ehn(n.a,(IYn(),DKe),(aMn(),_3e))}function vpn(){vpn=O;iP();kBe=(IYn(),V_e);yBe=a7(zfn(fT(l3e,1),v9n,149,0,[x_e,R_e,F_e,__e,U_e,G_e,q_e,X_e,W_e,J_e,K_e,B_e,z_e]))}function ppn(n,e){var t;t=bG(v8(n,gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)]))),15);return t.Qc(Kq(t.gc()))}function mpn(n,e){var t,r;r=new ld(n.a.ad(e,true));if(r.a.gc()<=1){throw dm(new Hm)}t=r.a.ec().Kc();t.Pb();return bG(t.Pb(),40)}function kpn(n,e,t){var r,i;r=bM(n.p[e.i.p])+bM(n.d[e.i.p])+e.n.b+e.a.b;i=bM(n.p[t.i.p])+bM(n.d[t.i.p])+t.n.b+t.a.b;return i-r}function ypn(n,e){var t;if(n.i>0){if(e.lengthn.i&&bQ(e,n.i,null);return e}function Mpn(n){var e;if((n.Db&64)!=0)return ndn(n);e=new gx(ndn(n));e.a+=" (instanceClassName: ";ZA(e,n.D);e.a+=")";return e.a}function Tpn(n){var e,t,r,i;i=0;for(t=0,r=n.length;t0){n._j();r=e==null?0:Vun(e);i=(r&pZn)%n.d.length;t=Cxn(n,i,r,e);return t!=-1}else{return false}}function Ppn(n,e){var r,i;n.a=Rgn(n.a,1);n.c=t.Math.min(n.c,e);n.b=t.Math.max(n.b,e);n.d+=e;r=e-n.f;i=n.e+r;n.f=i-n.e-r;n.e=i}function Cpn(n,e){switch(e){case 3:jan(n,0);return;case 4:Ean(n,0);return;case 5:San(n,0);return;case 6:Pan(n,0);return}xwn(n,e)}function Ipn(n,e){switch(e.g){case 1:return rG(n.j,(Rsn(),hEe));case 2:return rG(n.j,(Rsn(),bEe));default:return dZ(),dZ(),lbe}}function Opn(n){iQ();var e;e=n.Pc();switch(e.length){case 0:return mse;case 1:return new zq(nQ(e[0]));default:return new c1(zgn(e))}}function Apn(n,e){n.Xj();try{n.d.bd(n.e++,e);n.f=n.d.j;n.g=-1}catch(t){t=Ofn(t);if(G$(t,77)){throw dm(new Gm)}else throw dm(t)}}function Lpn(){Lpn=O;Yat=new $o;qat=new Do;Xat=new xo;Vat=new Ro;zat=new Ko;Wat=new Fo;Qat=new _o;Jat=new Bo;Zat=new Ho}function Npn(n,e){mL();var t,r;t=pF((Qy(),Qy(),che));r=null;e==t&&(r=bG(z1(the,n),624));if(!r){r=new tQ(n);e==t&&o2(the,n,r)}return r}function $pn(n){rMn();var e;(!n.q?(dZ(),dZ(),bbe):n.q)._b((IYn(),n_e))?e=bG(lIn(n,n_e),203):e=bG(lIn(VQ(n),e_e),203);return e}function Dpn(n,e){var t,r;r=null;if(jR(n,(IYn(),H_e))){t=bG(lIn(n,H_e),96);t.pf(e)&&(r=t.of(e))}r==null&&(r=lIn(VQ(n),e));return r}function xpn(n,e){var t,r,i;if(G$(e,44)){t=bG(e,44);r=t.ld();i=Jwn(n.Rc(),r);return BQ(i,t.md())&&(i!=null||n.Rc()._b(r))}return false}function Rpn(n,e){var t,r,i;if(n.f>0){n._j();r=e==null?0:Vun(e);i=(r&pZn)%n.d.length;t=i$n(n,i,r,e);if(t){return t.md()}}return null}function Kpn(n,e,t){var r,i,a;if(n.Pj()){r=n.i;a=n.Qj();udn(n,r,e);i=n.Ij(3,null,e,r,a);!t?t=i:t.nj(i)}else{udn(n,n.i,e)}return t}function Fpn(n,e,t){var r,i;r=new Utn(n.e,4,10,(i=e.c,G$(i,90)?bG(i,29):(rZn(),nit)),null,Vyn(n,e),false);!t?t=r:t.nj(r);return t}function _pn(n,e,t){var r,i;r=new Utn(n.e,3,10,null,(i=e.c,G$(i,90)?bG(i,29):(rZn(),nit)),Vyn(n,e),false);!t?t=r:t.nj(r);return t}function Bpn(n){ZK();var e;e=new uN(bG(n.e.of((JYn(),n6e)),8));if(n.B.Hc((hUn(),p9e))){e.a<=0&&(e.a=20);e.b<=0&&(e.b=20)}return e}function Hpn(n){fHn();var e,t;t=MV(n);e=MV(_V(n,32));if(e!=0){return new B3(t,e)}if(t>10||t<0){return new i8(1,t)}return $le[t]}function Upn(n,e){var t;if(qL(n)&&qL(e)){t=n%e;if(g0n=0){a=a.a[1]}else{i=a;a=a.a[0]}}return i}function amn(n,e,t){var r,i,a;i=null;a=n.b;while(a){r=n.a.Ne(e,a.d);if(t&&r==0){return a}if(r<=0){a=a.a[0]}else{i=a;a=a.a[1]}}return i}function cmn(n,e,t,r){var i,a,c;i=false;if(aWn(n.f,t,r)){dkn(n.f,n.a[e][t],n.a[e][r]);a=n.a[e];c=a[r];a[r]=a[t];a[t]=c;i=true}return i}function umn(n,e,t){var r,i,a,c;i=bG(fQ(n.b,t),183);r=0;for(c=new nd(e.j);c.a>5;e&=31;i=n.d+t+(e==0?0:1);r=$nn(Ght,z1n,28,i,15,1);ECn(r,n.a,t,e);a=new Zz(n.e,i,r);U4(a);return a}function fmn(n,e){var t,r,i;for(r=new GV(sx(Jgn(n).a.Kc(),new d));dDn(r);){t=bG(K9(r),18);i=t.d.i;if(i.c==e){return false}}return true}function hmn(n,e,r){var i,a,c,u,s;u=n.k;s=e.k;i=r[u.g][s.g];a=MK(Dpn(n,i));c=MK(Dpn(e,i));return t.Math.max((cJ(a),a),(cJ(c),c))}function lmn(){if(Error.stackTraceLimit>0){t.Error.stackTraceLimit=Error.stackTraceLimit=64;return true}return"stack"in new Error}function bmn(n,e){return r$(),r$(),lcn(M1n),(t.Math.abs(n-e)<=M1n||n==e||isNaN(n)&&isNaN(e)?0:ne?1:UL(isNaN(n),isNaN(e)))>0}function wmn(n,e){return r$(),r$(),lcn(M1n),(t.Math.abs(n-e)<=M1n||n==e||isNaN(n)&&isNaN(e)?0:ne?1:UL(isNaN(n),isNaN(e)))<0}function dmn(n,e){return r$(),r$(),lcn(M1n),(t.Math.abs(n-e)<=M1n||n==e||isNaN(n)&&isNaN(e)?0:ne?1:UL(isNaN(n),isNaN(e)))<=0}function gmn(n,e){var t=0;while(!e[t]||e[t]==""){t++}var r=e[t++];for(;t0&&this.b>0&&(this.g=TX(this.c,this.b,this.a))}function Cmn(n,e){var t=n.a;var r;e=String(e);t.hasOwnProperty(e)&&(r=t[e]);var i=(Nhn(),jhe)[typeof r];var a=i?i(r):Zbn(typeof r);return a}function Imn(n){var e,t,r;r=null;e=Pte in n.a;t=!e;if(t){throw dm(new AM("Every element must have an id."))}r=gNn(j0(n,Pte));return r}function Omn(n){var e,t;t=nAn(n);e=null;while(n.c==2){OYn(n);if(!e){e=(eZn(),eZn(),++Tht,new e$(2));jVn(e,t);t=e}t.Jm(nAn(n))}return t}function Amn(n,e){var t,r,i;n._j();r=e==null?0:Vun(e);i=(r&pZn)%n.d.length;t=i$n(n,i,r,e);if(t){bcn(n,t);return t.md()}else{return null}}function Lmn(n,e){if(n.e>e.e){return 1}if(n.ee.d){return n.e}if(n.d=48&&n<48+t.Math.min(10,10)){return n-48}if(n>=97&&n<97){return n-97+10}if(n>=65&&n<65){return n-65+10}return-1}function $mn(n,e){if(e.c==n){return e.d}else if(e.d==n){return e.c}throw dm(new jM("Input edge is not connected to the input port."))}function Dmn(n){if(Xmn(Kne,n)){return Qx(),Hhe}else if(Xmn(Fne,n)){return Qx(),Bhe}else{throw dm(new jM("Expecting true or false"))}}function xmn(n){switch(typeof n){case gZn:return Mln(n);case dZn:return DL(n);case wZn:return JK(n);default:return n==null?0:Bx(n)}}function Rmn(n,e){if(n.a<0){throw dm(new EM("Did not call before(...) or after(...) before calling add(...)."))}dR(n,n.a,e);return n}function Kmn(n){n2();if(G$(n,162)){return bG(fQ(Zet,zbe),295).Rg(n)}if(Lz(Zet,Cbn(n))){return bG(fQ(Zet,Cbn(n)),295).Rg(n)}return null}function Fmn(n){var e,t;if((n.Db&32)==0){t=(e=bG(Ron(n,16),29),sQ(!e?n.ii():e)-sQ(n.ii()));t!=0&&_mn(n,32,$nn(kce,jZn,1,t,5,1))}return n}function _mn(n,e,t){var r;if((n.Db&e)!=0){if(t==null){V$n(n,e)}else{r=ITn(n,e);r==-1?n.Eb=t:bQ(Uan(n.Eb),r,t)}}else t!=null&&vFn(n,e,t)}function Bmn(n,e,t,r){var i,a;if(e.c.length==0){return}i=yRn(t,r);a=nNn(e);ES(Ein(new gX(null,new d3(a,1)),new pc),new MY(n,t,i,r))}function Hmn(n,e){var t,r,i,a;r=n.a.length-1;t=e-n.b&r;a=n.c-e&r;i=n.c-n.b&r;IK(t=a){Lbn(n,e);return-1}else{Abn(n,e);return 1}}function Umn(n){var e,t,r;r=n.Jh();if(!r){e=0;for(t=n.Ph();t;t=t.Ph()){if(++e>I0n){return t.Qh()}r=t.Jh();if(!!r||t==n){break}}}return r}function Gmn(n,e){var t;if(BA(e)===BA(n)){return true}if(!G$(e,21)){return false}t=bG(e,21);if(t.gc()!=n.gc()){return false}return n.Ic(t)}function qmn(n,e){if(n.ee.e){return 1}else if(n.fe.f){return 1}return Vun(n)-Vun(e)}function Xmn(n,e){cJ(n);if(e==null){return false}if(T_(n,e)){return true}return n.length==e.length&&T_(n.toLowerCase(),e.toLowerCase())}function Vmn(n){var e,t;if(kwn(n,-129)>0&&kwn(n,128)<0){return cX(),e=MV(n)+128,t=cle[e],!t&&(t=cle[e]=new Dw(n)),t}return new Dw(n)}function zmn(){zmn=O;hje=new OC(G4n,0);oje=new OC("INSIDE_PORT_SIDE_GROUPS",1);sje=new OC("GROUP_MODEL_ORDER",2);fje=new OC(q4n,3)}function Wmn(n){var e;n.b||mj(n,(e=e_(n.e,n.a),!e||!T_(Fne,Rpn((!e.b&&(e.b=new JR((rZn(),cit),Nat,e)),e.b),"qualified"))));return n.c}function Qmn(n,e){var t,r;t=(w3(e,n.length),n.charCodeAt(e));r=e+1;while(r2e3){Xfe=n;Vfe=t.setTimeout(jE,10)}}if(qfe++==0){Lrn((Wy(),zfe));return true}return false}function mkn(n,e,t){var r;(jde?(Dvn(n),true):Ede?(MS(),true):Cde?(MS(),true):Pde&&(MS(),false))&&(r=new sB(e),r.b=t,QIn(n,r),undefined)}function kkn(n,e){var t;t=!n.A.Hc((emn(),b9e))||n.q==(FPn(),m8e);n.u.Hc((uNn(),C8e))?t?eJn(n,e):PQn(n,e):n.u.Hc(O8e)&&(t?rQn(n,e):PJn(n,e))}function ykn(n){var e;if(BA(YDn(n,(JYn(),x4e)))===BA((Dwn(),G5e))){if(!H0(n)){Pyn(n,x4e,q5e)}else{e=bG(YDn(H0(n),x4e),346);Pyn(n,x4e,e)}}}function Mkn(n){var e,t;if(jR(n.d.i,(IYn(),h_e))){e=bG(lIn(n.c.i,h_e),17);t=bG(lIn(n.d.i,h_e),17);return k$(e.a,t.a)>0}else{return false}}function Tkn(n,e,r){return new yY(t.Math.min(n.a,e.a)-r/2,t.Math.min(n.b,e.b)-r/2,t.Math.abs(n.a-e.a)+r,t.Math.abs(n.b-e.b)+r)}function jkn(n){var e;this.d=new im;this.j=new wj;this.g=new wj;e=n.g.b;this.f=bG(lIn(VQ(e),(IYn(),oFe)),88);this.e=bM(MK(uyn(e,U_e)))}function Ekn(n){this.d=new im;this.e=new b8;this.c=$nn(Ght,z1n,28,(UQn(),zfn(fT(e9e,1),X4n,64,0,[Z8e,D8e,$8e,Y8e,n9e])).length,15,1);this.b=n}function Skn(n,e,t){var r;r=t[n.g][e];switch(n.g){case 1:case 3:return new PO(0,r);case 2:case 4:return new PO(r,0);default:return null}}function Pkn(n,e,t){var r,i;i=bG(x1(e.f),205);try{i.rf(n,t);nJ(e.f,i)}catch(a){a=Ofn(a);if(G$(a,103)){r=a;throw dm(r)}else throw dm(a)}}function Ckn(n,e,t){var r,i,a,c,u,s;r=null;u=_zn(hcn(),e);a=null;if(u){i=null;s=jzn(u,t);c=null;s!=null&&(c=n.qf(u,s));i=c;a=i}r=a;return r}function Ikn(n,e,t,r){var i;i=n.length;if(e>=i)return i;for(e=e>0?e:0;er&&bQ(e,r,null);return e}function Akn(n,e){var t,r;r=n.a.length;e.lengthr&&bQ(e,r,null);return e}function Lkn(n,e){var t,r;++n.j;if(e!=null){t=(r=n.a.Cb,G$(r,99)?bG(r,99).th():null);if(u$n(e,t)){_mn(n.a,4,t);return}}_mn(n.a,4,bG(e,129))}function Nkn(n){var e;if(n==null)return null;e=Oxn(SXn(n,true));if(e==null){throw dm(new LM("Invalid hexBinary value: '"+n+"'"))}return e}function $kn(n,e,t){var r;if(e.a.length>0){ED(n.b,new dG(e.a,t));r=e.a.length;0r&&(e.a+=Z$($nn(Uht,L1n,28,-r,15,1)))}}function Dkn(n,e,t){var r,i,a;if(t[e.d]){return}t[e.d]=true;for(i=new nd(Obn(e));i.a=n.b>>1){r=n.c;for(t=n.b;t>e;--t){r=r.b}}else{r=n.a.a;for(t=0;t=0?n.Wh(i):FNn(n,r)):t<0?FNn(n,r):bG(r,69).wk().Bk(n,n.hi(),t)}function eyn(n){var e,t,r;r=(!n.o&&(n.o=new ven((cYn(),int),Rnt,n,0)),n.o);for(t=r.c.Kc();t.e!=t.i.gc();){e=bG(t.Yj(),44);e.md()}return Cnn(r)}function tyn(n){var e;if(G$(n.a,4)){e=Kmn(n.a);if(e==null){throw dm(new EM(_ne+n.b+"'. "+xne+(jK(ett),ett.k)+Rne))}return e}else{return n.a}}function ryn(n,e){var t,r;if(n.j.length!=e.j.length)return false;for(t=0,r=n.j.length;t=64&&e<128&&(i=A3(i,KV(1,e-64)))}return i}function uyn(n,e){var t,r;r=null;if(jR(n,(JYn(),B6e))){t=bG(lIn(n,B6e),96);t.pf(e)&&(r=t.of(e))}r==null&&!!VQ(n)&&(r=lIn(VQ(n),e));return r}function syn(n,e){var t;t=bG(lIn(n,(IYn(),DFe)),75);if(q$(e,Ije)){if(!t){t=new zk;Ehn(n,DFe,t)}else{XY(t)}}else!!t&&Ehn(n,DFe,null);return t}function oyn(){oyn=O;zke=(JYn(),R6e);Hke=N4e;Rke=g4e;Uke=c6e;Xke=(PEn(),Ove);qke=Cve;Vke=Lve;Gke=Pve;Fke=(Mbn(),Lke);Kke=Ake;_ke=$ke;Bke=Dke}function fyn(n){QS();this.c=new im;this.d=n;switch(n.g){case 0:case 2:this.a=EJ(VTe);this.b=y0n;break;case 3:case 1:this.a=VTe;this.b=M0n}}function hyn(n){var e;if(!R_(bG(lIn(n,(IYn(),m_e)),101))){return}e=n.b;f$n((b3(0,e.c.length),bG(e.c[0],30)));f$n(bG(Yq(e,e.c.length-1),30))}function lyn(n,e){e.Ug("Self-Loop post-processing",1);ES(tY(tY(wrn(new gX(null,new d3(n.b,16)),new _r),new Br),new Hr),new Ur);e.Vg()}function byn(n,e,t){var r,i;if(n.c){San(n.c,n.c.i+e);Pan(n.c,n.c.j+t)}else{for(i=new nd(n.b);i.a=0&&(t.d=n.t);break;case 3:n.t>=0&&(t.a=n.t)}if(n.C){t.b=n.C.b;t.c=n.C.c}}function Myn(){Myn=O;WBe=new mI(m9n,0);XBe=new mI($6n,1);VBe=new mI("LINEAR_SEGMENTS",2);qBe=new mI("BRANDES_KOEPF",3);zBe=new mI(p9n,4)}function Tyn(){Tyn=O;kke=new vC(c3n,0);mke=new vC(u3n,1);yke=new vC(s3n,2);Mke=new vC(o3n,3);kke.a=false;mke.a=true;yke.a=false;Mke.a=true}function jyn(){jyn=O;Hme=new dC(c3n,0);Bme=new dC(u3n,1);Ume=new dC(s3n,2);Gme=new dC(o3n,3);Hme.a=false;Bme.a=true;Ume.a=false;Gme.a=true}function Eyn(n,e,t,r){var i;if(t>=0){return n.Sh(e,t,r)}else{!!n.Ph()&&(r=(i=n.Fh(),i>=0?n.Ah(r):n.Ph().Th(n,-1-i,null,r)));return n.Ch(e,t,r)}}function Syn(n,e){switch(e){case 7:!n.e&&(n.e=new g_(H7e,n,7,4));NVn(n.e);return;case 8:!n.d&&(n.d=new g_(H7e,n,8,5));NVn(n.d);return}Cpn(n,e)}function Pyn(n,e,t){t==null?(!n.o&&(n.o=new ven((cYn(),int),Rnt,n,0)),Amn(n.o,e)):(!n.o&&(n.o=new ven((cYn(),int),Rnt,n,0)),oSn(n.o,e,t));return n}function Cyn(n,e){dZ();var t,r,i,a;t=n;a=e;if(G$(n,21)&&!G$(e,21)){t=e;a=n}for(i=t.Kc();i.Ob();){r=i.Pb();if(a.Hc(r)){return false}}return true}function Iyn(n,e,t,r){if(e.at.b){return true}}}return false}function Oyn(n,e){if(HA(n)){return!!pce[e]}else if(n.Sm){return!!n.Sm[e]}else if(GA(n)){return!!vce[e]}else if(UA(n)){return!!gce[e]}return false}function Ayn(n){var e;e=n.a;do{e=bG(K9(new GV(sx(Qgn(e).a.Kc(),new d))),18).c.i;e.k==(YIn(),tEe)&&n.b.Fc(e)}while(e.k==(YIn(),tEe));n.b=Avn(n.b)}function Lyn(n,e){var r,i,a;a=n;for(i=new GV(sx(Qgn(e).a.Kc(),new d));dDn(i);){r=bG(K9(i),18);!!r.c.i.c&&(a=t.Math.max(a,r.c.i.c.p))}return a}function Nyn(n,e){var t,r,i;i=0;r=bG(bG(r7(n.r,e),21),87).Kc();while(r.Ob()){t=bG(r.Pb(),117);i+=t.d.d+t.b.Mf().b+t.d.a;r.Ob()&&(i+=n.w)}return i}function $yn(n,e){var t,r,i;i=0;r=bG(bG(r7(n.r,e),21),87).Kc();while(r.Ob()){t=bG(r.Pb(),117);i+=t.d.b+t.b.Mf().a+t.d.c;r.Ob()&&(i+=n.w)}return i}function Dyn(n){var e,t,r,i;r=0;i=WFn(n);if(i.c.length==0){return 1}else{for(t=new nd(i);t.a=0?n.Lh(c,t,true):r$n(n,a,t)):bG(a,69).wk().yk(n,n.hi(),i,t,r)}function Byn(n,e,t,r){var i,a;a=e.pf((JYn(),W4e))?bG(e.of(W4e),21):n.j;i=pdn(a);if(i==(tZn(),Ype)){return}if(t&&!jmn(i)){return}ROn(Axn(n,i,r),e)}function Hyn(n){switch(n.g){case 1:return ufn(),pme;case 3:return ufn(),dme;case 2:return ufn(),vme;case 4:return ufn(),gme;default:return null}}function Uyn(n,e,t){if(n.e){switch(n.b){case 1:tZ(n.c,e,t);break;case 0:rZ(n.c,e,t)}}else{N5(n.c,e,t)}n.a[e.p][t.p]=n.c.i;n.a[t.p][e.p]=n.c.e}function Gyn(n){var e,t;if(n==null){return null}t=$nn(Yje,XZn,199,n.length,0,2);for(e=0;e=0)return i;if(n.ol()){for(r=0;r=i)throw dm(new m_(e,i));if(n.Si()){r=n.dd(t);if(r>=0&&r!=e){throw dm(new jM(Gte))}}return n.Xi(e,t)}function Wyn(n,e){this.a=bG(nQ(n),253);this.b=bG(nQ(e),253);if(n.Ed(e)>0||n==(My(),ase)||e==(Ty(),sse)){throw dm(new jM("Invalid range: "+K5(n,e)))}}function Qyn(n){var e,t;this.b=new im;this.c=n;this.a=false;for(t=new nd(n.a);t.a0);if((e&-e)==e){return c0(e*bRn(n,31)*4.656612873077393e-10)}do{t=bRn(n,31);r=t%e}while(t-r+(e-1)<0);return c0(r)}function oMn(n,e,t){switch(t.g){case 1:n.a=e.a/2;n.b=0;break;case 2:n.a=e.a;n.b=e.b/2;break;case 3:n.a=e.a/2;n.b=e.b;break;case 4:n.a=0;n.b=e.b/2}}function fMn(n,e,t,r){var i,a;for(i=e;i1&&(a=Jyn(n,e));return a}function wMn(n){var e;e=bM(MK(YDn(n,(JYn(),Y6e))))*t.Math.sqrt((!n.a&&(n.a=new gz(snt,n,10,11)),n.a).i);return new PO(e,e/bM(MK(YDn(n,J6e))))}function dMn(n){var e;if(!!n.f&&n.f.Vh()){e=bG(n.f,54);n.f=bG(Twn(n,e),84);n.f!=e&&(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,9,8,e,n.f))}return n.f}function gMn(n){var e;if(!!n.i&&n.i.Vh()){e=bG(n.i,54);n.i=bG(Twn(n,e),84);n.i!=e&&(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,9,7,e,n.i))}return n.i}function vMn(n){var e;if(!!n.b&&(n.b.Db&64)!=0){e=n.b;n.b=bG(Twn(n,e),19);n.b!=e&&(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,9,21,e,n.b))}return n.b}function pMn(n,e){var t,r,i;if(n.d==null){++n.e;++n.f}else{r=e.Bi();uKn(n,n.f+1);i=(r&pZn)%n.d.length;t=n.d[i];!t&&(t=n.d[i]=n.dk());t.Fc(e);++n.f}}function mMn(n,e,t){var r;if(e.tk()){return false}else if(e.Ik()!=-2){r=e.ik();return r==null?t==null:bdn(r,t)}else return e.qk()==n.e.Dh()&&t==null}function kMn(){var n;Tcn(16,l1n);n=hun(16);this.b=$nn(Dse,h1n,303,n,0,1);this.c=$nn(Dse,h1n,303,n,0,1);this.a=null;this.e=null;this.i=0;this.f=n-1;this.g=0}function yMn(n){RF.call(this);this.k=(YIn(),rEe);this.j=(Tcn(6,d1n),new H7(6));this.b=(Tcn(2,d1n),new H7(2));this.d=new Fk;this.f=new Bk;this.a=n}function MMn(n){var e,t;if(n.c.length<=1){return}e=m_n(n,(UQn(),Y8e));sAn(n,bG(e.a,17).a,bG(e.b,17).a);t=m_n(n,n9e);sAn(n,bG(t.a,17).a,bG(t.b,17).a)}function TMn(n,e,t){var r,i;i=n.a.b;for(r=i.c.length;r102)return-1;if(n<=57)return n-48;if(n<65)return-1;if(n<=70)return n-65+10;if(n<97)return-1;return n-97+10}function $Mn(n,e){if(n==null){throw dm(new PM("null key in entry: null="+e))}else if(e==null){throw dm(new PM("null value in entry: "+n+"=null"))}}function DMn(n,e){var t,r;while(n.Ob()){if(!e.Ob()){return false}t=n.Pb();r=e.Pb();if(!(BA(t)===BA(r)||t!=null&&bdn(t,r))){return false}}return!e.Ob()}function xMn(n,e){var r;r=zfn(fT(zht,1),C0n,28,15,[Kbn(n.a[0],e),Kbn(n.a[1],e),Kbn(n.a[2],e)]);if(n.d){r[0]=t.Math.max(r[0],r[2]);r[2]=r[0]}return r}function RMn(n,e){var r;r=zfn(fT(zht,1),C0n,28,15,[Fbn(n.a[0],e),Fbn(n.a[1],e),Fbn(n.a[2],e)]);if(n.d){r[0]=t.Math.max(r[0],r[2]);r[2]=r[0]}return r}function KMn(n,e,t){if(!R_(bG(lIn(e,(IYn(),m_e)),101))){i9(n,e,SOn(e,t));i9(n,e,SOn(e,(UQn(),Y8e)));i9(n,e,SOn(e,D8e));dZ();g$(e.j,new Wg(n))}}function FMn(n){var e,t;n.c||lzn(n);t=new zk;e=new nd(n.a);K3(e);while(e.a0&&(w3(0,e.length),e.charCodeAt(0)==43)?(w3(1,e.length+1),e.substr(1)):e))}function aTn(n){var e;return n==null?null:new LN((e=SXn(n,true),e.length>0&&(w3(0,e.length),e.charCodeAt(0)==43)?(w3(1,e.length+1),e.substr(1)):e))}function cTn(n,e,t,r,i,a,c,u){var s,o;if(!r){return}s=r.a[0];!!s&&cTn(n,e,t,s,i,a,c,u);vjn(n,t,r.d,i,a,c,u)&&e.Fc(r);o=r.a[1];!!o&&cTn(n,e,t,o,i,a,c,u)}function uTn(n,e,t){try{return qA(Aun(n,e,t),1)}catch(r){r=Ofn(r);if(G$(r,333)){throw dm(new kM(l3n+n.o+"*"+n.p+b3n+e+MZn+t+w3n))}else throw dm(r)}}function sTn(n,e,t){try{return qA(Aun(n,e,t),0)}catch(r){r=Ofn(r);if(G$(r,333)){throw dm(new kM(l3n+n.o+"*"+n.p+b3n+e+MZn+t+w3n))}else throw dm(r)}}function oTn(n,e,t){try{return qA(Aun(n,e,t),2)}catch(r){r=Ofn(r);if(G$(r,333)){throw dm(new kM(l3n+n.o+"*"+n.p+b3n+e+MZn+t+w3n))}else throw dm(r)}}function fTn(n,e){if(n.g==-1){throw dm(new Bm)}n.Xj();try{n.d.hd(n.g,e);n.f=n.d.j}catch(t){t=Ofn(t);if(G$(t,77)){throw dm(new Gm)}else throw dm(t)}}function hTn(n){var e,t,r,i,a;for(r=new nd(n.b);r.aa&&bQ(e,a,null);return e}function bTn(n,e){var t,r;r=n.gc();if(e==null){for(t=0;t0&&(s+=i);o[f]=c;c+=u*(s+r)}}function CTn(n){var e,t,r;r=n.f;n.n=$nn(zht,C0n,28,r,15,1);n.d=$nn(zht,C0n,28,r,15,1);for(e=0;e0?n.c:0);++a}n.b=i;n.d=c}function xTn(n,e){var r;r=zfn(fT(zht,1),C0n,28,15,[uMn(n,(ran(),rpe),e),uMn(n,ipe,e),uMn(n,ape,e)]);if(n.f){r[0]=t.Math.max(r[0],r[2]);r[2]=r[0]}return r}function RTn(n,e,t){var r;try{VBn(n,e+n.j,t+n.k,false,true)}catch(i){i=Ofn(i);if(G$(i,77)){r=i;throw dm(new kM(r.g+d3n+e+MZn+t+")."))}else throw dm(i)}}function KTn(n,e,t){var r;try{VBn(n,e+n.j,t+n.k,true,false)}catch(i){i=Ofn(i);if(G$(i,77)){r=i;throw dm(new kM(r.g+d3n+e+MZn+t+")."))}else throw dm(i)}}function FTn(n){var e;if(!jR(n,(IYn(),WFe))){return}e=bG(lIn(n,WFe),21);if(e.Hc((ZDn(),e8e))){e.Mc(e8e);e.Fc(r8e)}else if(e.Hc(r8e)){e.Mc(r8e);e.Fc(e8e)}}function _Tn(n){var e;if(!jR(n,(IYn(),WFe))){return}e=bG(lIn(n,WFe),21);if(e.Hc((ZDn(),s8e))){e.Mc(s8e);e.Fc(c8e)}else if(e.Hc(c8e)){e.Mc(c8e);e.Fc(s8e)}}function BTn(n,e,t,r){var i,a,c,u;n.a==null&&aOn(n,e);c=e.b.j.c.length;a=t.d.p;u=r.d.p;i=u-1;i<0&&(i=c-1);return a<=i?n.a[i]-n.a[a]:n.a[c-1]-n.a[a]+n.a[i]}function HTn(n){var e,t;if(!n.b){n.b=l6(bG(n.f,27).kh().i);for(t=new _D(bG(n.f,27).kh());t.e!=t.i.gc();){e=bG(iyn(t),135);ED(n.b,new nM(e))}}return n.b}function UTn(n){var e,t;if(!n.e){n.e=l6(HJ(bG(n.f,27)).i);for(t=new _D(HJ(bG(n.f,27)));t.e!=t.i.gc();){e=bG(iyn(t),123);ED(n.e,new tp(e))}}return n.e}function GTn(n){var e,t;if(!n.a){n.a=l6(mZ(bG(n.f,27)).i);for(t=new _D(mZ(bG(n.f,27)));t.e!=t.i.gc();){e=bG(iyn(t),27);ED(n.a,new nR(n,e))}}return n.a}function qTn(n){var e;if(!n.C&&(n.D!=null||n.B!=null)){e=UWn(n);if(e){n.hl(e)}else{try{n.hl(null)}catch(t){t=Ofn(t);if(!G$(t,63))throw dm(t)}}}return n.C}function XTn(n){switch(n.q.g){case 5:eSn(n,(UQn(),D8e));eSn(n,Y8e);break;case 4:Czn(n,(UQn(),D8e));Czn(n,Y8e);break;default:LAn(n,(UQn(),D8e));LAn(n,Y8e)}}function VTn(n){switch(n.q.g){case 5:tSn(n,(UQn(),$8e));tSn(n,n9e);break;case 4:Izn(n,(UQn(),$8e));Izn(n,n9e);break;default:NAn(n,(UQn(),$8e));NAn(n,n9e)}}function zTn(n,e){var r,i,a;a=new wj;for(i=n.Kc();i.Ob();){r=bG(i.Pb(),36);cHn(r,a.a,0);a.a+=r.f.a+e;a.b=t.Math.max(a.b,r.f.b)}a.b>0&&(a.b+=e);return a}function WTn(n,e){var r,i,a;a=new wj;for(i=n.Kc();i.Ob();){r=bG(i.Pb(),36);cHn(r,0,a.b);a.b+=r.f.b+e;a.a=t.Math.max(a.a,r.f.a)}a.a>0&&(a.a+=e);return a}function QTn(n){var e,r,i;i=pZn;for(r=new nd(n.a);r.a>16==6){return n.Cb.Th(n,5,z7e,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?n.ii():t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function njn(n){OZ();var e=n.e;if(e&&e.stack){var t=e.stack;var r=e+"\n";t.substring(0,r.length)==r&&(t=t.substring(r.length));return t.split("\n")}return[]}function ejn(n){var e;e=(Ccn(),ile);return e[n>>>28]|e[n>>24&15]<<4|e[n>>20&15]<<8|e[n>>16&15]<<12|e[n>>12&15]<<16|e[n>>8&15]<<20|e[n>>4&15]<<24|e[n&15]<<28}function tjn(n){var e,r,i;if(n.b!=n.c){return}i=n.a.length;r=Mhn(t.Math.max(8,i))<<1;if(n.b!=0){e=PF(n.a,r);Lun(n,e,i);n.a=e;n.b=0}else{Jm(n.a,r)}n.c=i}function rjn(n,e){var t;t=n.b;return t.pf((JYn(),m6e))?t.ag()==(UQn(),n9e)?-t.Mf().a-bM(MK(t.of(m6e))):e+bM(MK(t.of(m6e))):t.ag()==(UQn(),n9e)?-t.Mf().a:e}function ijn(n){var e;if(n.b.c.length!=0&&!!bG(Yq(n.b,0),72).a){return bG(Yq(n.b,0),72).a}e=wY(n);if(e!=null){return e}return""+(!n.c?-1:Ctn(n.c.a,n,0))}function ajn(n){var e;if(n.f.c.length!=0&&!!bG(Yq(n.f,0),72).a){return bG(Yq(n.f,0),72).a}e=wY(n);if(e!=null){return e}return""+(!n.i?-1:Ctn(n.i.j,n,0))}function cjn(n,e){var t,r;if(e<0||e>=n.gc()){return null}for(t=e;t0?n.c:0);a=t.Math.max(a,e.d);++i}n.e=c;n.b=a}function ojn(n){var e,t;if(!n.b){n.b=l6(bG(n.f,123).kh().i);for(t=new _D(bG(n.f,123).kh());t.e!=t.i.gc();){e=bG(iyn(t),135);ED(n.b,new nM(e))}}return n.b}function fjn(n,e){var t,r,i;if(e.dc()){return OK(),OK(),Gtt}else{t=new fF(n,e.gc());for(i=new _D(n);i.e!=i.i.gc();){r=iyn(i);e.Hc(r)&&cen(t,r)}return t}}function hjn(n,e,t,r){if(e==0){return r?(!n.o&&(n.o=new ven((cYn(),int),Rnt,n,0)),n.o):(!n.o&&(n.o=new ven((cYn(),int),Rnt,n,0)),Cnn(n.o))}return _yn(n,e,t,r)}function ljn(n){var e,t;if(n.rb){for(e=0,t=n.rb.i;e>22);i+=r>>22;if(i<0){return false}n.l=t&f0n;n.m=r&f0n;n.h=i&h0n;return true}function vjn(n,e,t,r,i,a,c){var u,s;if(e.Te()&&(s=n.a.Ne(t,r),s<0||!i&&s==0)){return false}if(e.Ue()&&(u=n.a.Ne(t,a),u>0||!c&&u==0)){return false}return true}function pjn(n,e){Nln();var t;t=n.j.g-e.j.g;if(t!=0){return 0}switch(n.j.g){case 2:return nvn(e,dIe)-nvn(n,dIe);case 4:return nvn(n,wIe)-nvn(e,wIe)}return 0}function mjn(n){switch(n.g){case 0:return qNe;case 1:return XNe;case 2:return VNe;case 3:return zNe;case 4:return WNe;case 5:return QNe;default:return null}}function kjn(n,e,t){var r,i;r=(i=new ay,Ubn(i,e),Qun(i,t),cen((!n.c&&(n.c=new gz(Art,n,12,10)),n.c),i),i);Lan(r,0);Nan(r,1);Tdn(r,true);kdn(r,true);return r}function yjn(n,e){var t,r;if(e>=n.i)throw dm(new ML(e,n.i));++n.j;t=n.g[e];r=n.i-e-1;r>0&&QGn(n.g,e+1,n.g,e,r);bQ(n.g,--n.i,null);n.Qi(e,t);n.Ni();return t}function Mjn(n,e){var t,r;if(n.Db>>16==17){return n.Cb.Th(n,21,Mrt,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?n.ii():t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function Tjn(n){var e,t,r,i;dZ();g$(n.c,n.a);for(i=new nd(n.c);i.at.a.c.length)){throw dm(new jM("index must be >= 0 and <= layer node count"))}!!n.c&&Ttn(n.c.a,n);n.c=t;!!t&&WX(t.a,e,n)}function _jn(n,e){var t,r,i;for(r=new GV(sx(Wgn(n).a.Kc(),new d));dDn(r);){t=bG(K9(r),18);i=bG(e.Kb(t),10);return new zl(nQ(i.n.b+i.o.b/2))}return yy(),yy(),Tce}function Bjn(n,e){this.c=new rm;this.a=n;this.b=e;this.d=bG(lIn(n,(WYn(),BDe)),312);BA(lIn(n,(IYn(),QFe)))===BA((ntn(),ZNe))?this.e=new Lk:this.e=new Ak}function Hjn(n,e){var t,r;r=null;if(n.pf((JYn(),B6e))){t=bG(n.of(B6e),96);t.pf(e)&&(r=t.of(e))}r==null&&!!n.Tf()&&(r=n.Tf().of(e));r==null&&(r=tyn(e));return r}function Ujn(n,e){var t,r;t=n.fd(e);try{r=t.Pb();t.Qb();return r}catch(i){i=Ofn(i);if(G$(i,112)){throw dm(new kM("Can't remove element "+e))}else throw dm(i)}}function Gjn(n,e){var t,r,i;r=new eS;i=new Rhn(r.q.getFullYear()-V1n,r.q.getMonth(),r.q.getDate());t=nXn(n,e,i);if(t==0||t0?e:0);++r}return new PO(i,a)}function Yjn(n,e){var t,r;if(n.Db>>16==6){return n.Cb.Th(n,6,H7e,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(cYn(),Z7e):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function Zjn(n,e){var t,r;if(n.Db>>16==7){return n.Cb.Th(n,1,F7e,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(cYn(),ent):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function nEn(n,e){var t,r;if(n.Db>>16==9){return n.Cb.Th(n,9,snt,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(cYn(),rnt):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function eEn(n,e){var t,r;if(n.Db>>16==5){return n.Cb.Th(n,9,Srt,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(rZn(),zrt):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function tEn(n,e){var t,r;if(n.Db>>16==7){return n.Cb.Th(n,6,z7e,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(rZn(),rit):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function rEn(n,e){var t,r;if(n.Db>>16==3){return n.Cb.Th(n,0,G7e,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(rZn(),Brt):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function iEn(){this.a=new bo;this.g=new kMn;this.j=new kMn;this.b=new rm;this.d=new kMn;this.i=new kMn;this.k=new rm;this.c=new rm;this.e=new rm;this.f=new rm}function aEn(n,e,t){var r,i,a;t<0&&(t=0);a=n.i;for(i=t;iI0n){return uEn(n,r)}if(r==n){return true}}}return false}function sEn(n){Wx();switch(n.q.g){case 5:bNn(n,(UQn(),D8e));bNn(n,Y8e);break;case 4:Uxn(n,(UQn(),D8e));Uxn(n,Y8e);break;default:FQn(n,(UQn(),D8e));FQn(n,Y8e)}}function oEn(n){Wx();switch(n.q.g){case 5:E$n(n,(UQn(),$8e));E$n(n,n9e);break;case 4:gyn(n,(UQn(),$8e));gyn(n,n9e);break;default:_Qn(n,(UQn(),$8e));_Qn(n,n9e)}}function fEn(n){var e,t;e=bG(lIn(n,(oGn(),Yye)),17);if(e){t=e.a;t==0?Ehn(n,(Tun(),dMe),new zvn):Ehn(n,(Tun(),dMe),new j8(t))}else{Ehn(n,(Tun(),dMe),new j8(1))}}function hEn(n,e){var t;t=n.i;switch(e.g){case 1:return-(n.n.b+n.o.b);case 2:return n.n.a-t.o.a;case 3:return n.n.b-t.o.b;case 4:return-(n.n.a+n.o.a)}return 0}function lEn(n,e){switch(n.g){case 0:return e==(Wvn(),QDe)?xCe:RCe;case 1:return e==(Wvn(),QDe)?xCe:DCe;case 2:return e==(Wvn(),QDe)?DCe:RCe;default:return DCe}}function bEn(n,e){var r,i,a;Ttn(n.a,e);n.e-=e.r+(n.a.c.length==0?0:n.c);a=l7n;for(i=new nd(n.a);i.a>16==3){return n.Cb.Th(n,12,snt,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(cYn(),Y7e):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function dEn(n,e){var t,r;if(n.Db>>16==11){return n.Cb.Th(n,10,snt,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(cYn(),tnt):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function gEn(n,e){var t,r;if(n.Db>>16==10){return n.Cb.Th(n,11,Mrt,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(rZn(),eit):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function vEn(n,e){var t,r;if(n.Db>>16==10){return n.Cb.Th(n,12,Irt,e)}return r=vMn(bG(uin((t=bG(Ron(n,16),29),!t?(rZn(),iit):t),n.Db>>16),19)),n.Cb.Th(n,r.n,r.f,e)}function pEn(n){var e;if((n.Bb&1)==0&&!!n.r&&n.r.Vh()){e=bG(n.r,54);n.r=bG(Twn(n,e),142);n.r!=e&&(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,9,8,e,n.r))}return n.r}function mEn(n,e,r){var i;i=zfn(fT(zht,1),C0n,28,15,[XCn(n,(ran(),rpe),e,r),XCn(n,ipe,e,r),XCn(n,ape,e,r)]);if(n.f){i[0]=t.Math.max(i[0],i[2]);i[2]=i[0]}return i}function kEn(n,e){var t,r,i;i=vyn(n,e);if(i.c.length==0){return}g$(i,new cr);t=i.c.length;for(r=0;r>19;o=e.h>>19;if(s!=o){return o-s}i=n.h;u=e.h;if(i!=u){return i-u}r=n.m;c=e.m;if(r!=c){return r-c}t=n.l;a=e.l;return t-a}function PEn(){PEn=O;Nve=(nBn(),Bve);Lve=new TL(N2n,Nve);Ave=(Jrn(),Tve);Ove=new TL($2n,Ave);Ive=(qkn(),mve);Cve=new TL(D2n,Ive);Pve=new TL(x2n,(Qx(),true))}function CEn(n,e,t){var r,i;r=e*t;if(G$(n.g,154)){i=e5(n);if(i.f.d){i.f.a||(n.d.a+=r+Y2n)}else{n.d.d-=r+Y2n;n.d.a+=r+Y2n}}else if(G$(n.g,10)){n.d.d-=r;n.d.a+=2*r}}function IEn(n,e,r){var i,a,c,u,s;a=n[r.g];for(s=new nd(e.d);s.a0?n.b:0);++r}e.b=i;e.e=a}function AEn(n){var e,t,r;r=n.b;if(hS(n.i,r.length)){t=r.length*2;n.b=$nn(Dse,h1n,303,t,0,1);n.c=$nn(Dse,h1n,303,t,0,1);n.f=t-1;n.i=0;for(e=n.a;e;e=e.c){VLn(n,e,e)}++n.g}}function LEn(n,e,t,r){var i,a,c,u;for(i=0;iu&&(s=u/i);a>c&&(o=c/a);jD(n,t.Math.min(s,o));return n}function xEn(){cXn();var n,e;try{e=bG(xSn((PP(),Ort),ate),2113);if(e){return e}}catch(t){t=Ofn(t);if(G$(t,103)){n=t;xW((c$(),n))}else throw dm(t)}return new so}function REn(){cXn();var n,e;try{e=bG(xSn((PP(),Ort),Nie),2040);if(e){return e}}catch(t){t=Ofn(t);if(G$(t,103)){n=t;xW((c$(),n))}else throw dm(t)}return new qo}function KEn(){Gen();var n,e;try{e=bG(xSn((PP(),Ort),fae),2122);if(e){return e}}catch(t){t=Ofn(t);if(G$(t,103)){n=t;xW((c$(),n))}else throw dm(t)}return new Ff}function FEn(n,e,t){var r,i;i=n.e;n.e=e;if((n.Db&4)!=0&&(n.Db&1)==0){r=new vz(n,1,4,i,e);!t?t=r:t.nj(r)}i!=e&&(e?t=LWn(n,pRn(n,e),t):t=LWn(n,n.a,t));return t}function _En(){eS.call(this);this.e=-1;this.a=false;this.p=T1n;this.k=-1;this.c=-1;this.b=-1;this.g=false;this.f=-1;this.j=-1;this.n=-1;this.i=-1;this.d=-1;this.o=T1n}function BEn(n,e){var t,r,i;r=n.b.d.d;n.a||(r+=n.b.d.a);i=e.b.d.d;e.a||(i+=e.b.d.a);t=bgn(r,i);if(t==0){if(!n.a&&e.a){return-1}else if(!e.a&&n.a){return 1}}return t}function HEn(n,e){var t,r,i;r=n.b.b.d;n.a||(r+=n.b.b.a);i=e.b.b.d;e.a||(i+=e.b.b.a);t=bgn(r,i);if(t==0){if(!n.a&&e.a){return-1}else if(!e.a&&n.a){return 1}}return t}function UEn(n,e){var t,r,i;r=n.b.g.d;n.a||(r+=n.b.g.a);i=e.b.g.d;e.a||(i+=e.b.g.a);t=bgn(r,i);if(t==0){if(!n.a&&e.a){return-1}else if(!e.a&&n.a){return 1}}return t}function GEn(){GEn=O;WMe=mV(xq(xq(xq(new mJ,(bIn(),cTe),(YYn(),LPe)),cTe,xPe),uTe,UPe),uTe,kPe);JMe=xq(xq(new mJ,cTe,fPe),cTe,yPe);QMe=mV(new mJ,uTe,TPe)}function qEn(n){var e,t,r,i,a;e=bG(lIn(n,(WYn(),eDe)),85);a=n.n;for(r=e.Cc().Kc();r.Ob();){t=bG(r.Pb(),314);i=t.i;i.c+=a.a;i.d+=a.b;t.c?L_n(t):N_n(t)}Ehn(n,eDe,null)}function XEn(n,e,t){var r,i;i=n.b;r=i.d;switch(e.g){case 1:return-r.d-t;case 2:return i.o.a+r.c+t;case 3:return i.o.b+r.a+t;case 4:return-r.b-t;default:return-1}}function VEn(n,e,t){var r,i;t.Ug("Interactive node placement",1);n.a=bG(lIn(e,(WYn(),BDe)),312);for(i=new nd(e.b);i.a0){c=(a&pZn)%n.d.length;i=i$n(n,c,a,e);if(i){u=i.nd(t);return u}}r=n.ck(a,e,t);n.c.Fc(r);return null}function fSn(n,e){var t,r,i,a;switch(cdn(n,e).Kl()){case 3:case 2:{t=dXn(e);for(i=0,a=t.i;i=0;i--){if(T_(n[i].d,e)||T_(n[i].d,r)){n.length>=i+1&&n.splice(0,i+1);break}}return n}function pSn(n,e){var r;if(qL(n)&&qL(e)){r=n/e;if(g0n0){n.b+=2;n.a+=i}}else{n.b+=1;n.a+=t.Math.min(i,a)}}function SSn(n){var e;e=bG(lIn(bG(dyn(n.b,0),40),(eqn(),SWe)),107);Ehn(n,(DQn(),Cze),new PO(0,0));sUn(new R7,n,e.b+e.c-bM(MK(lIn(n,Dze))),e.d+e.a-bM(MK(lIn(n,Rze))))}function PSn(n,e){var t,r;r=false;if(HA(e)){r=true;MQ(n,new eQ(TK(e)))}if(!r){if(G$(e,242)){r=true;MQ(n,(t=eB(bG(e,242)),new Lb(t)))}}if(!r){throw dm(new MM(Ste))}}function CSn(n,e,t,r){var i,a,c;i=new Utn(n.e,1,10,(c=e.c,G$(c,90)?bG(c,29):(rZn(),nit)),(a=t.c,G$(a,90)?bG(a,29):(rZn(),nit)),Vyn(n,e),false);!r?r=i:r.nj(i);return r}function ISn(n){var e,t;switch(bG(lIn(VQ(n),(IYn(),$Fe)),429).g){case 0:e=n.n;t=n.o;return new PO(e.a+t.a/2,e.b+t.b/2);case 1:return new uN(n.n);default:return null}}function OSn(){OSn=O;c$e=new oI(G4n,0);a$e=new oI("LEFTUP",1);s$e=new oI("RIGHTUP",2);i$e=new oI("LEFTDOWN",3);u$e=new oI("RIGHTDOWN",4);r$e=new oI("BALANCED",5)}function ASn(n,e,t){var r,i,a;r=bgn(n.a[e.p],n.a[t.p]);if(r==0){i=bG(lIn(e,(WYn(),dDe)),15);a=bG(lIn(t,dDe),15);if(i.Hc(t)){return-1}else if(a.Hc(e)){return 1}}return r}function LSn(n){switch(n.g){case 1:return new Ou;case 2:return new Au;case 3:return new Iu;case 0:return null;default:throw dm(new jM(m7n+(n.f!=null?n.f:""+n.g)))}}function NSn(n,e,t){switch(e){case 1:!n.n&&(n.n=new gz(unt,n,1,7));NVn(n.n);!n.n&&(n.n=new gz(unt,n,1,7));NW(n.n,bG(t,16));return;case 2:Wcn(n,TK(t));return}pln(n,e,t)}function $Sn(n,e,t){switch(e){case 3:jan(n,bM(MK(t)));return;case 4:Ean(n,bM(MK(t)));return;case 5:San(n,bM(MK(t)));return;case 6:Pan(n,bM(MK(t)));return}NSn(n,e,t)}function DSn(n,e,t){var r,i,a;a=(r=new ay,r);i=NCn(a,e,null);!!i&&i.oj();Qun(a,t);cen((!n.c&&(n.c=new gz(Art,n,12,10)),n.c),a);Lan(a,0);Nan(a,1);Tdn(a,true);kdn(a,true)}function xSn(n,e){var t,r,i;t=qP(n.i,e);if(G$(t,241)){i=bG(t,241);i.zi()==null&&undefined;return i.wi()}else if(G$(t,507)){r=bG(t,2037);i=r.b;return i}else{return null}}function RSn(n,e,t,r){var i,a;nQ(e);nQ(t);a=bG(nB(n.d,e),17);Htn(!!a,"Row %s not in %s",e,n.e);i=bG(nB(n.b,t),17);Htn(!!i,"Column %s not in %s",t,n.c);return Vfn(n,a.a,i.a,r)}function KSn(n,e,t,r,i,a,c){var u,s,o,f,h;f=i[a];o=a==c-1;u=o?r:0;h=LTn(u,f);r!=10&&zfn(fT(n,c-a),e[a],t[a],u,h);if(!o){++a;for(s=0;s1||u==-1){a=bG(s,15);i.Wb(Zvn(n,a))}else{i.Wb(lUn(n,bG(s,58)))}}}}function YSn(n,e,t,r){EE();var c=wce;i=e;a=t;dce=r;function u(){for(var n=0;n0){return false}}return true}function ePn(n){var e,t,r,i,a;for(r=new pon(new Kw(n.b).a);r.b;){t=jun(r);e=bG(t.ld(),10);a=bG(bG(t.md(),42).a,10);i=bG(bG(t.md(),42).b,8);t_(kL(e.n),t_(_$(a.n),i))}}function tPn(n){switch(bG(lIn(n.b,(IYn(),mFe)),387).g){case 1:ES(rY(wrn(new gX(null,new d3(n.d,16)),new Zi),new na),new ea);break;case 2:yBn(n);break;case 0:TLn(n)}}function rPn(n,e,t){var r,i,a;r=t;!r&&(r=new gy);r.Ug("Layout",n.a.c.length);for(a=new nd(n.a);a.aN9n){return t}else i>-1e-6&&++t}return t}function oPn(n,e){var t;if(e!=n.b){t=null;!!n.b&&(t=D1(n.b,n,-4,t));!!e&&(t=Eyn(e,n,-4,t));t=Ewn(n,e,t);!!t&&t.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,3,e,e))}function fPn(n,e){var t;if(e!=n.f){t=null;!!n.f&&(t=D1(n.f,n,-1,t));!!e&&(t=Eyn(e,n,-1,t));t=jwn(n,e,t);!!t&&t.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,0,e,e))}function hPn(n,e,t,r){var i,a,c,u;if(bN(n.e)){i=e.Lk();u=e.md();a=t.md();c=ZZ(n,1,i,u,a,i.Jk()?_qn(n,i,a,G$(i,102)&&(bG(i,19).Bb&S0n)!=0):-1,true);r?r.nj(c):r=c}return r}function lPn(n){var e,t,r;if(n==null)return null;t=bG(n,15);if(t.dc())return"";r=new YM;for(e=t.Kc();e.Ob();){ZA(r,(bzn(),TK(e.Pb())));r.a+=" "}return NL(r,r.a.length-1)}function bPn(n){var e,t,r;if(n==null)return null;t=bG(n,15);if(t.dc())return"";r=new YM;for(e=t.Kc();e.Ob();){ZA(r,(bzn(),TK(e.Pb())));r.a+=" "}return NL(r,r.a.length-1)}function wPn(n,e,t){var r,i;r=n.c[e.c.p][e.p];i=n.c[t.c.p][t.p];if(r.a!=null&&i.a!=null){return HV(r.a,i.a)}else if(r.a!=null){return-1}else if(i.a!=null){return 1}return 0}function dPn(n,e,t){t.Ug("Tree layout",1);qJ(n.b);tW(n.b,(Njn(),uVe),uVe);tW(n.b,sVe,sVe);tW(n.b,oVe,oVe);tW(n.b,fVe,fVe);n.a=ezn(n.b,e);rPn(n,e,t.eh(1));t.Vg();return e}function gPn(n,e){var t,r,i,a,c,u;if(e){a=e.a.length;t=new WV(a);for(u=(t.b-t.a)*t.c<0?(NP(),Fht):new BD(t);u.Ob();){c=bG(u.Pb(),17);i=j6(e,c.a);r=new lp(n);eY(r.a,i)}}}function vPn(n,e){var t,r,i,a,c,u;if(e){a=e.a.length;t=new WV(a);for(u=(t.b-t.a)*t.c<0?(NP(),Fht):new BD(t);u.Ob();){c=bG(u.Pb(),17);i=j6(e,c.a);r=new rp(n);nY(r.a,i)}}}function pPn(n){var e;if(n!=null&&n.length>0&&ZJ(n,n.length-1)==33){try{e=wxn(o1(n,0,n.length-1));return e.e==null}catch(t){t=Ofn(t);if(!G$(t,33))throw dm(t)}}return false}function mPn(n,e,t){var r,i,a;r=VQ(e);i=Mgn(r);a=new vOn;l2(a,e);switch(t.g){case 1:KLn(a,Wdn($vn(i)));break;case 2:KLn(a,$vn(i))}Ehn(a,(IYn(),p_e),MK(lIn(n,p_e)));return a}function kPn(n){var e,t;e=bG(K9(new GV(sx(Qgn(n.a).a.Kc(),new d))),18);t=bG(K9(new GV(sx(Jgn(n.a).a.Kc(),new d))),18);return lM(yK(lIn(e,(WYn(),KDe))))||lM(yK(lIn(t,KDe)))}function yPn(){yPn=O;LAe=new YC("ONE_SIDE",0);$Ae=new YC("TWO_SIDES_CORNER",1);DAe=new YC("TWO_SIDES_OPPOSING",2);NAe=new YC("THREE_SIDES",3);AAe=new YC("FOUR_SIDES",4)}function MPn(n,e){var t,r,i,a;a=new im;i=0;r=e.Kc();while(r.Ob()){t=Bwn(bG(r.Pb(),17).a+i);while(t.a=n.f){break}Tm(a.c,t)}return a}function TPn(n,e){var t,r,i,a,c;for(a=new nd(e.a);a.a0&&Pjn(this,this.c-1,(UQn(),$8e));this.c0&&n[0].length>0&&(this.c=lM(yK(lIn(VQ(n[0][0]),(WYn(),gDe)))));this.a=$nn(NUe,XZn,2117,n.length,0,2);this.b=$nn(xUe,XZn,2118,n.length,0,2);this.d=new Ybn}function RPn(n){if(n.c.length==0){return false}if((b3(0,n.c.length),bG(n.c[0],18)).c.i.k==(YIn(),tEe)){return true}return l9(rY(new gX(null,new d3(n,16)),new Ba),new Ha)}function KPn(n,e){var r,i,a,c,u,s,o;s=WFn(e);c=e.f;o=e.g;u=t.Math.sqrt(c*c+o*o);a=0;for(i=new nd(s);i.a=0){t=pSn(n,d0n);r=Upn(n,d0n)}else{e=_V(n,1);t=pSn(e,5e8);r=Upn(e,5e8);r=Rgn(KV(r,1),O3(n,1))}return A3(KV(r,32),O3(t,A0n))}function rCn(n,e,t){var r,i;r=(PK(e.b!=0),bG(Rin(e,e.a.a),8));switch(t.g){case 0:r.b=0;break;case 2:r.b=n.f;break;case 3:r.a=0;break;default:r.a=n.g}i=Gkn(e,0);vW(i,r);return e}function iCn(n,e,t,r){var i,a,c,u,s;s=n.b;a=e.d;c=a.j;u=Skn(c,s.d[c.g],t);i=t_(_$(a.n),a.a);switch(a.j.g){case 1:case 3:u.a+=i.a;break;case 2:case 4:u.b+=i.b}w8(r,u,r.c.b,r.c)}function aCn(n,e,t){var r,i,a,c;c=Ctn(n.e,e,0);a=new Ck;a.b=t;r=new K4(n.e,c);while(r.b1;e>>=1){(e&1)!=0&&(r=I5(r,t));t.d==1?t=I5(t,t):t=new akn(GUn(t.a,t.d,$nn(Ght,z1n,28,t.d<<1,15,1)))}r=I5(r,t);return r}function hCn(){hCn=O;var n,e,t,r;Cwe=$nn(zht,C0n,28,25,15,1);Iwe=$nn(zht,C0n,28,33,15,1);r=152587890625e-16;for(e=32;e>=0;e--){Iwe[e]=r;r*=.5}t=1;for(n=24;n>=0;n--){Cwe[n]=t;t*=.5}}function lCn(n){var e,t;if(lM(yK(YDn(n,(IYn(),AFe))))){for(t=new GV(sx(uRn(n).a.Kc(),new d));dDn(t);){e=bG(K9(t),74);if(XNn(e)){if(lM(yK(YDn(e,LFe)))){return true}}}}return false}function bCn(n,e){var t,r,i;if(Gz(n.f,e)){e.b=n;r=e.c;Ctn(n.j,r,0)!=-1||ED(n.j,r);i=e.d;Ctn(n.j,i,0)!=-1||ED(n.j,i);t=e.a.b;if(t.c.length!=0){!n.i&&(n.i=new jkn(n));Lon(n.i,t)}}}function wCn(n){var e,t,r,i,a;t=n.c.d;r=t.j;i=n.d.d;a=i.j;if(r==a){return t.p=0&&T_(n.substr(e,"GMT".length),"GMT")){t[0]=e+3;return AUn(n,t,r)}if(e>=0&&T_(n.substr(e,"UTC".length),"UTC")){t[0]=e+3;return AUn(n,t,r)}return AUn(n,t,r)}function mCn(n,e){var t,r,i,a,c;a=n.g.a;c=n.g.b;for(r=new nd(n.d);r.at;a--){n[a]|=e[a-t-1]>>>c;n[a-1]=e[a-t-1]<0&&QGn(n.g,e,n.g,e+r,u);c=t.Kc();n.i+=r;for(i=0;i>4&15;a=n[r]&15;c[i++]=jnt[t];c[i++]=jnt[a]}return Tmn(c,0,c.length)}}function FCn(n){var e,t;if(n>=S0n){e=P0n+(n-S0n>>10&1023)&$1n;t=56320+(n-S0n&1023)&$1n;return String.fromCharCode(e)+(""+String.fromCharCode(t))}else{return String.fromCharCode(n&$1n)}}function _Cn(n,e){ZK();var t,r,i,a;i=bG(bG(r7(n.r,e),21),87);if(i.gc()>=2){r=bG(i.Kc().Pb(),117);t=n.u.Hc((uNn(),P8e));a=n.u.Hc(A8e);return!r.a&&!t&&(i.gc()==2||a)}else{return false}}function BCn(n,e,t,r,i){var a,c,u;a=YFn(n,e,t,r,i);u=false;while(!a){yxn(n,i,true);u=true;a=YFn(n,e,t,r,i)}u&&yxn(n,i,false);c=thn(i);if(c.c.length!=0){!!n.d&&n.d.Gg(c);BCn(n,i,t,r,c)}}function HCn(){HCn=O;O5e=new DO(G4n,0);C5e=new DO("DIRECTED",1);A5e=new DO("UNDIRECTED",2);S5e=new DO("ASSOCIATION",3);I5e=new DO("GENERALIZATION",4);P5e=new DO("DEPENDENCY",5)}function UCn(n,e){var t;if(!d0(n)){throw dm(new EM(Eee))}t=d0(n);switch(e.g){case 1:return-(n.j+n.f);case 2:return n.i-t.g;case 3:return n.j-t.f;case 4:return-(n.i+n.g)}return 0}function GCn(n,e,t){var r,i,a;r=e.Lk();a=e.md();i=r.Jk()?ZZ(n,4,r,a,null,_qn(n,r,a,G$(r,102)&&(bG(r,19).Bb&S0n)!=0),true):ZZ(n,r.tk()?2:1,r,a,r.ik(),-1,true);t?t.nj(i):t=i;return t}function qCn(n,e){var t,r;cJ(e);r=n.b.c.length;ED(n.b,e);while(r>0){t=r;r=(r-1)/2|0;if(n.a.Ne(Yq(n.b,r),e)<=0){r9(n.b,t,e);return true}r9(n.b,t,Yq(n.b,r))}r9(n.b,r,e);return true}function XCn(n,e,r,i){var a,c;a=0;if(!r){for(c=0;c=u}function zCn(n){switch(n.g){case 0:return new Vu;case 1:return new Wu;default:throw dm(new jM("No implementation is available for the width approximator "+(n.f!=null?n.f:""+n.g)))}}function WCn(n,e,t,r){var i;i=false;if(HA(r)){i=true;iq(e,t,TK(r))}if(!i){if(UA(r)){i=true;WCn(n,e,t,r)}}if(!i){if(G$(r,242)){i=true;jZ(e,t,bG(r,242))}}if(!i){throw dm(new MM(Ste))}}function QCn(n,e){var t,r,i;t=e.qi(n.a);if(t){i=Rpn((!t.b&&(t.b=new JR((rZn(),cit),Nat,t)),t.b),jie);if(i!=null){for(r=1;r<(yAn(),qut).length;++r){if(T_(qut[r],i)){return r}}}}return 0}function JCn(n,e){var t,r,i;t=e.qi(n.a);if(t){i=Rpn((!t.b&&(t.b=new JR((rZn(),cit),Nat,t)),t.b),jie);if(i!=null){for(r=1;r<(yAn(),Xut).length;++r){if(T_(Xut[r],i)){return r}}}}return 0}function YCn(n,e){var t,r,i,a;cJ(e);a=n.a.gc();if(a0?1:0;while(a.a[i]!=t){a=a.a[i];i=n.a.Ne(t.d,a.d)>0?1:0}a.a[i]=r;r.b=t.b;r.a[0]=t.a[0];r.a[1]=t.a[1];t.a[0]=null;t.a[1]=null}function iIn(n){var e,t,r,i;e=new im;t=$nn(qht,_2n,28,n.a.c.length,16,1);Yz(t,t.length);for(i=new nd(n.a);i.a0&&gUn((b3(0,t.c.length),bG(t.c[0],30)),n);t.c.length>1&&gUn(bG(Yq(t,t.c.length-1),30),n);e.Vg()}function uIn(n){uNn();var e,t;e=nV(C8e,zfn(fT(L8e,1),g1n,279,0,[O8e]));if(Qon(J1(e,n))>1){return false}t=nV(P8e,zfn(fT(L8e,1),g1n,279,0,[S8e,A8e]));if(Qon(J1(t,n))>1){return false}return true}function sIn(n,e){var t;t=z1((PP(),Ort),n);G$(t,507)?o2(Ort,n,new OA(this,e)):o2(Ort,n,this);VIn(this,e);if(e==(jj(),Frt)){this.wb=bG(this,2038);bG(e,2040)}else{this.wb=(cQ(),_rt)}}function oIn(n){var e,t,r;if(n==null){return null}e=null;for(t=0;t=N1n?"error":r>=900?"warn":r>=800?"info":"log");TQ(t,n.a);!!n.b&&AKn(e,t,n.b,"Exception: ",true)}function lIn(n,e){var t,r;r=(!n.q&&(n.q=new rm),fQ(n.q,e));if(r!=null){return r}t=e.Sg();G$(t,4)&&(t==null?(!n.q&&(n.q=new rm),b7(n.q,e)):(!n.q&&(n.q=new rm),jJ(n.q,e,t)),n);return t}function bIn(){bIn=O;rTe=new yC("P1_CYCLE_BREAKING",0);iTe=new yC("P2_LAYERING",1);aTe=new yC("P3_NODE_ORDERING",2);cTe=new yC("P4_NODE_PLACEMENT",3);uTe=new yC("P5_EDGE_ROUTING",4)}function wIn(n,e){nin();var t;if(n.c==e.c){if(n.b==e.b||usn(n.b,e.b)){t=XL(n.b)?1:-1;if(n.a&&!e.a){return t}else if(!n.a&&e.a){return-t}}return k$(n.b.g,e.b.g)}else{return bgn(n.c,e.c)}}function dIn(n,e){var t,r,i;if(EIn(n,e)){return true}for(r=new nd(e);r.a=i||e<0)throw dm(new kM(qte+e+Xte+i));if(t>=i||t<0)throw dm(new kM(Vte+t+Xte+i));e!=t?r=(a=n.Cj(t),n.qj(e,a),a):r=n.xj(t);return r}function TIn(n){var e,t,r;r=n;if(n){e=0;for(t=n.Eh();t;t=t.Eh()){if(++e>I0n){return TIn(t)}r=t;if(t==n){throw dm(new EM("There is a cycle in the containment hierarchy of "+n))}}}return r}function jIn(n){var e,t,r;r=new rfn(MZn,"[","]");for(t=n.Kc();t.Ob();){e=t.Pb();l7(r,BA(e)===BA(n)?"(this Collection)":e==null?CZn:fvn(e))}return!r.a?r.c:r.e.length==0?r.a.a:r.a.a+(""+r.e)}function EIn(n,e){var t,r;r=false;if(e.gc()<2){return false}for(t=0;t1&&(n.j.b+=n.e)}else{n.j.a+=r.a;n.j.b=t.Math.max(n.j.b,r.b);n.d.c.length>1&&(n.j.a+=n.e)}}function IIn(){IIn=O;FAe=zfn(fT(e9e,1),X4n,64,0,[(UQn(),D8e),$8e,Y8e]);KAe=zfn(fT(e9e,1),X4n,64,0,[$8e,Y8e,n9e]);_Ae=zfn(fT(e9e,1),X4n,64,0,[Y8e,n9e,D8e]);BAe=zfn(fT(e9e,1),X4n,64,0,[n9e,D8e,$8e])}function OIn(n,e,t,r){var i,a,c,u,s,o,f;c=n.c.d;u=n.d.d;if(c.j==u.j){return}f=n.b;i=c.j;s=null;while(i!=u.j){s=e==0?Qdn(i):zdn(i);a=Skn(i,f.d[i.g],t);o=Skn(s,f.d[s.g],t);hq(r,t_(a,o));i=s}}function AIn(n,e,t,r){var i,a,c,u,s;c=Ajn(n.a,e,t);u=bG(c.a,17).a;a=bG(c.b,17).a;if(r){s=bG(lIn(e,(WYn(),NDe)),10);i=bG(lIn(t,NDe),10);if(!!s&&!!i){N5(n.b,s,i);u+=n.b.i;a+=n.b.e}}return u>a}function LIn(n){var e,t,r,i,a,c,u,s,o;this.a=Gyn(n);this.b=new im;for(t=n,r=0,i=t.length;rWK(n.d).c){n.i+=n.g.c;Xpn(n.d)}else if(WK(n.d).c>WK(n.g).c){n.e+=n.d.c;Xpn(n.g)}else{n.i+=CX(n.g);n.e+=CX(n.d);Xpn(n.g);Xpn(n.d)}}}function RIn(n,e,t){var r,i,a,c;a=e.q;c=e.r;new x2((q7(),kXe),e,a,1);new x2(kXe,a,c,1);for(i=new nd(t);i.as&&(o=s/i);a>c&&(f=c/a);u=t.Math.min(o,f);n.a+=u*(e.a-n.a);n.b+=u*(e.b-n.b)}function GIn(n,e,t,r,i){var a,c;c=false;a=bG(Yq(t.b,0),27);while(Aqn(n,e,a,r,i)){c=true;VSn(t,a);if(t.b.c.length==0){break}a=bG(Yq(t.b,0),27)}t.b.c.length==0&&bEn(t.j,t);c&&DTn(e.q);return c}function qIn(n,e){v_n();var t,r,i,a;if(e.b<2){return false}a=Gkn(e,0);t=bG($6(a),8);r=t;while(a.b!=a.d.c){i=bG($6(a),8);if(ZRn(n,r,i)){return true}r=i}if(ZRn(n,r,t)){return true}return false}function XIn(n,e,t,r){var i,a;if(t==0){return!n.o&&(n.o=new ven((cYn(),int),Rnt,n,0)),W_(n.o,e,r)}return a=bG(uin((i=bG(Ron(n,16),29),!i?n.ii():i),t),69),a.wk().Ak(n,Fmn(n),t-sQ(n.ii()),e,r)}function VIn(n,e){var t;if(e!=n.sb){t=null;!!n.sb&&(t=bG(n.sb,54).Th(n,1,q7e,t));!!e&&(t=bG(e,54).Rh(n,1,q7e,t));t=tdn(n,e,t);!!t&&t.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,4,e,e))}function zIn(n,e){var t,r,i,a;if(e){i=Fan(e,"x");t=new op(n);Tan(t.a,(cJ(i),i));a=Fan(e,"y");r=new fp(n);Ian(r.a,(cJ(a),a))}else{throw dm(new AM("All edge sections need an end point."))}}function WIn(n,e){var t,r,i,a;if(e){i=Fan(e,"x");t=new cp(n);Can(t.a,(cJ(i),i));a=Fan(e,"y");r=new up(n);Oan(r.a,(cJ(a),a))}else{throw dm(new AM("All edge sections need a start point."))}}function QIn(n,e){var t,r,i,a,c,u,s;for(r=Bln(n),a=0,u=r.length;a>22-e;i=n.h<>22-e}else if(e<44){t=0;r=n.l<>44-e}else{t=0;r=0;i=n.l<n){throw dm(new jM("k must be smaller than n"))}else return e==0||e==n?1:n==0?0:bSn(n)/(bSn(e)*bSn(n-e))}function sOn(n,e){var t,r,i,a;t=new IN(n);while(t.g==null&&!t.c?D0(t):t.g==null||t.i!=0&&bG(t.g[t.i-1],51).Ob()){a=bG(nRn(t),58);if(G$(a,167)){r=bG(a,167);for(i=0;i>4];e[t*2+1]=qft[a&15]}return Tmn(e,0,e.length)}function jOn(n){CJ();var e,t,r;r=n.c.length;switch(r){case 0:return Mse;case 1:e=bG(zLn(new nd(n)),44);return gq(e.ld(),e.md());default:t=bG(Okn(n,$nn(vue,i1n,44,n.c.length,0,1)),173);return new By(t)}}function EOn(n){var e,t,r,i,a,c;e=new KD;t=new KD;x6(e,n);x6(t,n);while(t.b!=t.c){i=bG(Bz(t),36);for(c=new nd(i.a);c.a0&&wHn(n,t,e);return i}return I$n(n,e,t)}function IOn(){IOn=O;VJe=(JYn(),I6e);nYe=X6e;_Je=J4e;BJe=n6e;HJe=t6e;FJe=W4e;UJe=a6e;XJe=j6e;RJe=(OHn(),kJe);KJe=yJe;WJe=PJe;YJe=OJe;QJe=CJe;JJe=IJe;GJe=TJe;qJe=EJe;zJe=SJe;ZJe=AJe;eYe=NJe;xJe=mJe}function OOn(n,e){var t,r,i,a,c;if(n.e<=e){return n.g}if(v3(n,n.g,e)){return n.g}a=n.r;r=n.g;c=n.r;i=(a-r)/2+r;while(r+11&&(n.e.b+=n.a)}else{n.e.a+=r.a;n.e.b=t.Math.max(n.e.b,r.b);n.d.c.length>1&&(n.e.a+=n.a)}}function KOn(n){var e,t,r,i;i=n.i;e=i.b;r=i.j;t=i.g;switch(i.a.g){case 0:t.a=(n.g.b.o.a-r.a)/2;break;case 1:t.a=e.d.n.a+e.d.a.a;break;case 2:t.a=e.d.n.a+e.d.a.a-r.a;break;case 3:t.b=e.d.n.b+e.d.a.b}}function FOn(n,e,t){var r,i,a;for(i=new GV(sx(Wgn(t).a.Kc(),new d));dDn(i);){r=bG(K9(i),18);if(!(!j9(r)&&!(!j9(r)&&r.c.i.c==r.d.i.c))){continue}a=hRn(n,r,t,new Nk);a.c.length>1&&(Tm(e.c,a),true)}}function _On(n,e,t,r,i){if(rr&&(n.a=r);n.bi&&(n.b=i);return n}function BOn(n){if(G$(n,143)){return kKn(bG(n,143))}else if(G$(n,233)){return Pvn(bG(n,233))}else if(G$(n,23)){return nOn(bG(n,23))}else{throw dm(new jM(Ite+jIn(new $M(zfn(fT(kce,1),jZn,1,5,[n])))))}}function HOn(n,e,t,r,i){var a,c,u;a=true;for(c=0;c>>i|t[c+r+1]<>>i;++c}return a}function UOn(n,e,t,r){var i,a,c;if(e.k==(YIn(),tEe)){for(a=new GV(sx(Qgn(e).a.Kc(),new d));dDn(a);){i=bG(K9(a),18);c=i.c.i.k;if(c==tEe&&n.c.a[i.c.i.c.p]==r&&n.c.a[e.c.p]==t){return true}}}return false}function GOn(n,e){var t,r,i,a;e&=63;t=n.h&h0n;if(e<22){a=t>>>e;i=n.m>>e|t<<22-e;r=n.l>>e|n.m<<22-e}else if(e<44){a=0;i=t>>>e-22;r=n.m>>e-22|n.h<<44-e}else{a=0;i=0;r=t>>>e-44}return M$(r&f0n,i&f0n,a&h0n)}function qOn(n,e,t,r){var i;this.b=r;this.e=n==(ucn(),WUe);i=e[t];this.d=tX(qht,[XZn,_2n],[183,28],16,[i.length,i.length],2);this.a=tX(Ght,[XZn,z1n],[53,28],15,[i.length,i.length],2);this.c=new $Pn(e,t)}function XOn(n){var e,t,r;n.k=new R2((UQn(),zfn(fT(e9e,1),X4n,64,0,[Z8e,D8e,$8e,Y8e,n9e])).length,n.j.c.length);for(r=new nd(n.j);r.a=t){rAn(n,e,r.p);return true}}return false}function JOn(n,e,t,r){var i,a,c,u,s,o;c=t.length;a=0;i=-1;o=Crn((w3(e,n.length+1),n.substr(e)),(fB(),wwe));for(u=0;ua&&$z(o,Crn(t[u],wwe))){i=u;a=s}}i>=0&&(r[0]=e+a);return i}function YOn(n){var e;if((n.Db&64)!=0)return oOn(n);e=new vx(Kee);!n.a||tL(tL((e.a+=' "',e),n.a),'"');tL(Kj(tL(Kj(tL(Kj(tL(Kj((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")");return e.a}function ZOn(n,e,t){var r,i,a,c,u;u=ZKn(n.e.Dh(),e);i=bG(n.g,124);r=0;for(c=0;ct){return sLn(n,t,"start index")}if(e<0||e>t){return sLn(e,t,"end index")}return RBn("end index (%s) must not be less than start index (%s)",zfn(fT(kce,1),jZn,1,5,[Bwn(e),Bwn(n)]))}function tAn(n,e){var t,r,i,a;for(r=0,i=n.length;r0&&aAn(n,a,t))}}e.p=0}function cAn(n){var e;this.c=new vS;this.f=n.e;this.e=n.d;this.i=n.g;this.d=n.c;this.b=n.b;this.k=n.j;this.a=n.a;!n.i?this.j=(e=bG(Pj(k3e),9),new aB(e,bG(PF(e,e.length),9),0)):this.j=n.i;this.g=n.f}function uAn(n){var e,t,r,i;e=IQ(tL(new vx("Predicates."),"and"),40);t=true;for(i=new td(n);i.b0?u[c-1]:$nn(Yje,e6n,10,0,0,1);i=u[c];o=c=0?n.ki(i):YLn(n,r)}else{throw dm(new jM(Uee+r.xe()+Gee))}}else{wdn(n,t,r)}}function bAn(n){var e,t;t=null;e=false;if(G$(n,211)){e=true;t=bG(n,211).a}if(!e){if(G$(n,263)){e=true;t=""+bG(n,263).a}}if(!e){if(G$(n,493)){e=true;t=""+bG(n,493).a}}if(!e){throw dm(new MM(Ste))}return t}function wAn(n,e,t){var r,i,a,c,u,s;s=ZKn(n.e.Dh(),e);r=0;u=n.i;i=bG(n.g,124);for(c=0;c=n.d.b.c.length){e=new pQ(n.d);e.p=r.p-1;ED(n.d.b,e);t=new pQ(n.d);t.p=r.p;ED(n.d.b,t)}h2(r,bG(Yq(n.d.b,r.p),30))}}function SAn(n,e,t){var r,i,a;if(!n.b[e.g]){n.b[e.g]=true;r=t;!r&&(r=new R7);hq(r.b,e);for(a=n.a[e.g].Kc();a.Ob();){i=bG(a.Pb(),65);i.b!=e&&SAn(n,i.b,r);i.c!=e&&SAn(n,i.c,r);hq(r.a,i)}return r}return null}function PAn(n){switch(n.g){case 0:case 1:case 2:return UQn(),D8e;case 3:case 4:case 5:return UQn(),Y8e;case 6:case 7:case 8:return UQn(),n9e;case 9:case 10:case 11:return UQn(),$8e;default:return UQn(),Z8e}}function CAn(n,e){var t;if(n.c.length==0){return false}t=$pn((b3(0,n.c.length),bG(n.c[0],18)).c.i);a2();if(t==(rMn(),_Be)||t==FBe){return true}return l9(rY(new gX(null,new d3(n,16)),new Ua),new bv(e))}function IAn(n,e){if(G$(e,207)){return UN(n,bG(e,27))}else if(G$(e,193)){return GN(n,bG(e,123))}else if(G$(e,452)){return HN(n,bG(e,166))}else{throw dm(new jM(Ite+jIn(new $M(zfn(fT(kce,1),jZn,1,5,[e])))))}}function OAn(n,e,t){var r,i;this.f=n;r=bG(fQ(n.b,e),260);i=!r?0:r.a;u7(t,i);if(t>=(i/2|0)){this.e=!r?null:r.c;this.d=i;while(t++0){Orn(this)}}this.b=e;this.a=null}function AAn(n,e){var t,r;e.a?nFn(n,e):(t=bG(IS(n.b,e.b),60),!!t&&t==n.a[e.b.f]&&!!t.a&&t.a!=e.b.a&&t.c.Fc(e.b),r=bG(CS(n.b,e.b),60),!!r&&n.a[r.f]==e.b&&!!r.a&&r.a!=e.b.a&&e.b.c.Fc(r),wD(n.b,e.b),undefined)}function LAn(n,e){var t,r;t=bG(xJ(n.b,e),127);if(bG(bG(r7(n.r,e),21),87).dc()){t.n.b=0;t.n.c=0;return}t.n.b=n.C.b;t.n.c=n.C.c;n.A.Hc((emn(),b9e))&&jBn(n,e);r=$yn(n,e);P_n(n,e)==(Zkn(),b8e)&&(r+=2*n.w);t.a.a=r}function NAn(n,e){var t,r;t=bG(xJ(n.b,e),127);if(bG(bG(r7(n.r,e),21),87).dc()){t.n.d=0;t.n.a=0;return}t.n.d=n.C.d;t.n.a=n.C.a;n.A.Hc((emn(),b9e))&&EBn(n,e);r=Nyn(n,e);P_n(n,e)==(Zkn(),b8e)&&(r+=2*n.w);t.a.b=r}function $An(n,e){var t,r,i,a;a=new im;for(r=new nd(e);r.ar&&(w3(e-1,n.length),n.charCodeAt(e-1)<=32)){--e}return r>0||et.a&&(r.Hc((iPn(),a4e))?i=(e.a-t.a)/2:r.Hc(u4e)&&(i=e.a-t.a));e.b>t.b&&(r.Hc((iPn(),o4e))?a=(e.b-t.b)/2:r.Hc(s4e)&&(a=e.b-t.b));tIn(n,i,a)}function uLn(n,e,t,r,i,a,c,u,s,o,f,h,l){G$(n.Cb,90)&&SLn(S9(bG(n.Cb,90)),4);Qun(n,t);n.f=c;egn(n,u);rgn(n,s);ngn(n,o);tgn(n,f);Tdn(n,h);Ngn(n,l);kdn(n,true);Lan(n,i);n.Zk(a);Ubn(n,e);r!=null&&(n.i=null,vun(n,r))}function sLn(n,e,t){if(n<0){return RBn(TZn,zfn(fT(kce,1),jZn,1,5,[t,Bwn(n)]))}else if(e<0){throw dm(new jM(EZn+e))}else{return RBn("%s (%s) must not be greater than size (%s)",zfn(fT(kce,1),jZn,1,5,[t,Bwn(n),Bwn(e)]))}}function oLn(n,e,t,r,i,a){var c,u,s,o;c=r-t;if(c<7){rvn(e,t,r,a);return}s=t+i;u=r+i;o=s+(u-s>>1);oLn(e,n,s,o,-i,a);oLn(e,n,o,u,-i,a);if(a.Ne(n[o-1],n[o])<=0){while(t=0?n.bi(a,t):vRn(n,i,t)}else{throw dm(new jM(Uee+i.xe()+Gee))}}else{vvn(n,r,i,t)}}function dLn(n){var e,t;if(n.f){while(n.n>0){e=bG(n.k.Xb(n.n-1),76);t=e.Lk();if(G$(t,102)&&(bG(t,19).Bb&Wee)!=0&&(!n.e||t.pk()!=R7e||t.Lj()!=0)&&e.md()!=null){return true}else{--n.n}}return false}else{return n.n>0}}function gLn(n){var e,t,r,i;t=bG(n,54)._h();if(t){try{r=null;e=Ixn((PP(),Ort),_Un(Ivn(t)));if(e){i=e.ai();!!i&&(r=i.Fl(pM(t.e)))}if(!!r&&r!=n){return gLn(r)}}catch(a){a=Ofn(a);if(!G$(a,63))throw dm(a)}}return n}function vLn(n,e,t){var r,i,a;t.Ug("Remove overlaps",1);t.dh(e,h7n);r=bG(YDn(e,(AK(),FQe)),27);n.f=r;n.a=hMn(bG(YDn(e,(IOn(),ZJe)),300));i=MK(YDn(e,(JYn(),X6e)));ow(n,(cJ(i),i));a=WFn(r);BWn(n,e,a,t);t.dh(e,b7n)}function pLn(n){var e,t,r;if(lM(yK(YDn(n,(JYn(),F4e))))){r=new im;for(t=new GV(sx(uRn(n).a.Kc(),new d));dDn(t);){e=bG(K9(t),74);XNn(e)&&lM(yK(YDn(e,_4e)))&&(Tm(r.c,e),true)}return r}else{return dZ(),dZ(),lbe}}function mLn(n){if(!n){return Xy(),mhe}var e=n.valueOf?n.valueOf():n;if(e!==n){var r=jhe[typeof e];return r?r(e):Zbn(typeof e)}else if(n instanceof Array||n instanceof t.Array){return new Ob(n)}else{return new Nb(n)}}function kLn(n,e,r){var i,a,c;c=n.o;i=bG(xJ(n.p,r),252);a=i.i;a.b=yNn(i);a.a=kNn(i);a.b=t.Math.max(a.b,c.a);a.b>c.a&&!e&&(a.b=c.a);a.c=-(a.b-c.a)/2;switch(r.g){case 1:a.d=-a.a;break;case 3:a.d=c.b}rqn(i);oqn(i)}function yLn(n,e,r){var i,a,c;c=n.o;i=bG(xJ(n.p,r),252);a=i.i;a.b=yNn(i);a.a=kNn(i);a.a=t.Math.max(a.a,c.b);a.a>c.b&&!e&&(a.a=c.b);a.d=-(a.a-c.b)/2;switch(r.g){case 4:a.c=-a.b;break;case 2:a.c=c.a}rqn(i);oqn(i)}function MLn(n,e){var t,r,i,a,c;if(e.dc()){return}i=bG(e.Xb(0),131);if(e.gc()==1){mFn(n,i,i,1,0,e);return}t=1;while(t0){try{i=TUn(e,T1n,pZn)}catch(a){a=Ofn(a);if(G$(a,130)){r=a;throw dm(new Ltn(r))}else throw dm(a)}}t=(!n.a&&(n.a=new Qp(n)),n.a);return i=0?bG(Yin(t,i),58):null}function CLn(n,e){if(n<0){return RBn(TZn,zfn(fT(kce,1),jZn,1,5,["index",Bwn(n)]))}else if(e<0){throw dm(new jM(EZn+e))}else{return RBn("%s (%s) must be less than size (%s)",zfn(fT(kce,1),jZn,1,5,["index",Bwn(n),Bwn(e)]))}}function ILn(n){var e,t,r,i,a;if(n==null){return CZn}a=new rfn(MZn,"[","]");for(t=n,r=0,i=t.length;r=0?n.Lh(t,true,true):r$n(n,i,true),160));bG(r,220).Zl(e)}else{throw dm(new jM(Uee+e.xe()+Gee))}}function ZLn(n){var e,r;if(n>-0x800000000000&&n<0x800000000000){if(n==0){return 0}e=n<0;e&&(n=-n);r=c0(t.Math.floor(t.Math.log(n)/.6931471805599453));(!e||n!=t.Math.pow(2,r))&&++r;return r}return kfn(Xon(n))}function nNn(n){var e,t,r,i,a,c,u;a=new JL;for(t=new nd(n);t.a2&&u.e.b+u.j.b<=2){i=u;r=c}a.a.zc(i,a);i.q=r}return a}function eNn(n,e,t){t.Ug("Eades radial",1);t.dh(e,b7n);n.d=bG(YDn(e,(AK(),FQe)),27);n.c=bM(MK(YDn(e,(IOn(),zJe))));n.e=hMn(bG(YDn(e,ZJe),300));n.a=qvn(bG(YDn(e,eYe),434));n.b=LSn(bG(YDn(e,GJe),354));zEn(n);t.dh(e,b7n)}function tNn(n,e){e.Ug("Target Width Setter",1);if(jnn(n,(A_n(),_Ze))){Pyn(n,(vBn(),VYe),MK(YDn(n,_Ze)))}else{throw dm(new IM("A target width has to be set if the TargetWidthWidthApproximator should be used."))}e.Vg()}function rNn(n,e){var t,r,i;r=new yMn(n);Yon(r,e);Ehn(r,(WYn(),aDe),e);Ehn(r,(IYn(),m_e),(FPn(),m8e));Ehn(r,DKe,(aMn(),F3e));Vb(r,(YIn(),nEe));t=new vOn;l2(t,r);KLn(t,(UQn(),n9e));i=new vOn;l2(i,r);KLn(i,$8e);return r}function iNn(n){switch(n.g){case 0:return new Yy((ucn(),zUe));case 1:return new pl;case 2:return new ml;default:throw dm(new jM("No implementation is available for the crossing minimizer "+(n.f!=null?n.f:""+n.g)))}}function aNn(n,e){var t,r,i,a,c;n.c[e.p]=true;ED(n.a,e);for(c=new nd(e.j);c.a=a){c.$b()}else{i=c.Kc();for(r=0;r0?VM():c<0&&pNn(n,e,-c);return true}else{return false}}function kNn(n){var e,t,r,i,a,c,u;u=0;if(n.b==0){c=xMn(n,true);e=0;for(r=c,i=0,a=r.length;i0){u+=t;++e}}e>1&&(u+=n.c*(e-1))}else{u=gT(Psn(iY(tY(Xz(n.a),new In),new On)))}return u>0?u+n.n.d+n.n.a:0}function yNn(n){var e,t,r,i,a,c,u;u=0;if(n.b==0){u=gT(Psn(iY(tY(Xz(n.a),new Pn),new Cn)))}else{c=RMn(n,true);e=0;for(r=c,i=0,a=r.length;i0){u+=t;++e}}e>1&&(u+=n.c*(e-1))}return u>0?u+n.n.b+n.n.c:0}function MNn(n){var e,t;if(n.c.length!=2){throw dm(new EM("Order only allowed for two paths."))}e=(b3(0,n.c.length),bG(n.c[0],18));t=(b3(1,n.c.length),bG(n.c[1],18));if(e.d.i!=t.c.i){n.c.length=0;Tm(n.c,t);Tm(n.c,e)}}function TNn(n,e,t){var r;jN(t,e.g,e.f);EN(t,e.i,e.j);for(r=0;r<(!e.a&&(e.a=new gz(snt,e,10,11)),e.a).i;r++){TNn(n,bG(Yin((!e.a&&(e.a=new gz(snt,e,10,11)),e.a),r),27),bG(Yin((!t.a&&(t.a=new gz(snt,t,10,11)),t.a),r),27))}}function jNn(n,e){var r,i,a,c;c=bG(xJ(n.b,e),127);r=c.a;for(a=bG(bG(r7(n.r,e),21),87).Kc();a.Ob();){i=bG(a.Pb(),117);!!i.c&&(r.a=t.Math.max(r.a,oq(i.c)))}if(r.a>0){switch(e.g){case 2:c.n.c=n.s;break;case 4:c.n.b=n.s}}}function ENn(n,e){var t,r,i;t=bG(lIn(e,(oGn(),Jye)),17).a-bG(lIn(n,Jye),17).a;if(t==0){r=r_(_$(bG(lIn(n,(Tun(),lMe)),8)),bG(lIn(n,bMe),8));i=r_(_$(bG(lIn(e,lMe),8)),bG(lIn(e,bMe),8));return bgn(r.a*r.b,i.a*i.b)}return t}function SNn(n,e){var t,r,i;t=bG(lIn(e,(eqn(),OWe)),17).a-bG(lIn(n,OWe),17).a;if(t==0){r=r_(_$(bG(lIn(n,(DQn(),Pze)),8)),bG(lIn(n,Cze),8));i=r_(_$(bG(lIn(e,Pze),8)),bG(lIn(e,Cze),8));return bgn(r.a*r.b,i.a*i.b)}return t}function PNn(n){var e,t;t=new nT;t.a+="e_";e=pfn(n);e!=null&&(t.a+=""+e,t);if(!!n.c&&!!n.d){tL((t.a+=" ",t),ajn(n.c));tL(eL((t.a+="[",t),n.c.i),"]");tL((t.a+=J4n,t),ajn(n.d));tL(eL((t.a+="[",t),n.d.i),"]")}return t.a}function CNn(n){switch(n.g){case 0:return new Cl;case 1:return new Il;case 2:return new Sl;case 3:return new El;default:throw dm(new jM("No implementation is available for the layout phase "+(n.f!=null?n.f:""+n.g)))}}function INn(n,e,r,i,a){var c;c=0;switch(a.g){case 1:c=t.Math.max(0,e.b+n.b-(r.b+i));break;case 3:c=t.Math.max(0,-n.b-i);break;case 2:c=t.Math.max(0,-n.a-i);break;case 4:c=t.Math.max(0,e.a+n.a-(r.a+i))}return c}function ONn(n,e,t){var r,i,a,c,u;if(t){i=t.a.length;r=new WV(i);for(u=(r.b-r.a)*r.c<0?(NP(),Fht):new BD(r);u.Ob();){c=bG(u.Pb(),17);a=j6(t,c.a);vte in a.a||pte in a.a?pHn(n,a,e):tYn(n,a,e);WD(bG(fQ(n.b,Imn(a)),74))}}}function ANn(n){var e,t;switch(n.b){case-1:{return true}case 0:{t=n.t;if(t>1||t==-1){n.b=-1;return true}else{e=pEn(n);if(!!e&&(LP(),e.lk()==uie)){n.b=-1;return true}else{n.b=1;return false}}}default:case 1:{return false}}}function LNn(n,e){var t,r,i,a;OYn(n);if(n.c!=0||n.a!=123)throw dm(new NM(oZn((c$(),hre))));a=e==112;r=n.d;t=hR(n.i,125,r);if(t<0)throw dm(new NM(oZn((c$(),lre))));i=o1(n.i,r,t);n.d=t+1;return sen(i,a,(n.e&512)==512)}function NNn(n){var e,t,r,i,a,c,u;r=n.a.c.length;if(r>0){c=n.c.d;u=n.d.d;i=jD(r_(new PO(u.a,u.b),c),1/(r+1));a=new PO(c.a,c.b);for(t=new nd(n.a);t.a=0&&r=0?n.Lh(t,true,true):r$n(n,i,true),160));return bG(r,220).Wl(e)}else{throw dm(new jM(Uee+e.xe()+Xee))}}function _Nn(){$P();var n;if(Uct)return bG(Ixn((PP(),Ort),Nie),2038);PL(vue,new Af);SWn();n=bG(G$(z1((PP(),Ort),Nie),560)?z1(Ort,Nie):new kJ,560);Uct=true;VYn(n);lZn(n);jJ((MP(),Krt),n,new Xo);o2(Ort,Nie,n);return n}function BNn(n,e){var t,r,i,a;n.j=-1;if(bN(n.e)){t=n.i;a=n.i!=0;Y9(n,e);r=new Utn(n.e,3,n.c,null,e,t,a);i=e.zl(n.e,n.c,null);i=SPn(n,e,i);if(!i){Pon(n.e,r)}else{i.nj(r);i.oj()}}else{Y9(n,e);i=e.zl(n.e,n.c,null);!!i&&i.oj()}}function HNn(n,e){var t,r,i;i=0;r=e[0];if(r>=n.length){return-1}t=(w3(r,n.length),n.charCodeAt(r));while(t>=48&&t<=57){i=i*10+(t-48);++r;if(r>=n.length){break}t=(w3(r,n.length),n.charCodeAt(r))}r>e[0]?e[0]=r:i=-1;return i}function UNn(n){var e,r,i,a,c;a=bG(n.a,17).a;c=bG(n.b,17).a;r=a;i=c;e=t.Math.max(t.Math.abs(a),t.Math.abs(c));if(a<=0&&a==c){r=0;i=c-1}else{if(a==-e&&c!=e){r=c;i=a;c>=0&&++r}else{r=-c;i=a}}return new nA(Bwn(r),Bwn(i))}function GNn(n,e,t,r){var i,a,c,u,s,o;for(i=0;i=0&&o>=0&&s=n.i)throw dm(new kM(qte+e+Xte+n.i));if(t>=n.i)throw dm(new kM(Vte+t+Xte+n.i));r=n.g[t];if(e!=t){e>16);e=r>>16&16;t=16-e;n=n>>e;r=n-256;e=r>>16&8;t+=e;n<<=e;r=n-T0n;e=r>>16&4;t+=e;n<<=e;r=n-VZn;e=r>>16&2;t+=e;n<<=e;r=n>>14;e=r&~(r>>1);return t+2-e}}function QNn(n){vZ();var e,t,r,i;nye=new im;Zke=new rm;Yke=new im;e=(!n.a&&(n.a=new gz(snt,n,10,11)),n.a);tJn(e);for(i=new _D(e);i.e!=i.i.gc();){r=bG(iyn(i),27);if(Ctn(nye,r,0)==-1){t=new im;ED(Yke,t);wkn(r,t)}}return Yke}function JNn(n,e,t){var r,i,a,c;n.a=t.b.d;if(G$(e,326)){i=t_n(bG(e,74),false,false);a=NOn(i);r=new Ud(n);Y8(a,r);wqn(a,i);e.of((JYn(),U4e))!=null&&Y8(bG(e.of(U4e),75),r)}else{c=bG(e,422);c.rh(c.nh()+n.a.a);c.sh(c.oh()+n.a.b)}}function YNn(n,e){var t,r,i;i=new im;for(r=Gkn(e.a,0);r.b!=r.d.c;){t=bG($6(r),65);t.c.g==n.g&&BA(lIn(t.b,(eqn(),_We)))!==BA(lIn(t.c,_We))&&!l9(new gX(null,new d3(i,16)),new Ev(t))&&(Tm(i.c,t),true)}g$(i,new Ic);return i}function ZNn(n,e,t){var r,i,a,c;if(G$(e,153)&&G$(t,153)){a=bG(e,153);c=bG(t,153);return n.a[a.a][c.a]+n.a[c.a][a.a]}else if(G$(e,250)&&G$(t,250)){r=bG(e,250);i=bG(t,250);if(r.a==i.a){return bG(lIn(i.a,(oGn(),Jye)),17).a}}return 0}function n$n(n,e){var r,i,a,c,u,s,o,f;f=bM(MK(lIn(e,(IYn(),J_e))));o=n[0].n.a+n[0].o.a+n[0].d.c+f;for(s=1;s=0){return t}u=KQ(r_(new PO(c.c+c.b/2,c.d+c.a/2),new PO(a.c+a.b/2,a.d+a.a/2)));return-(lGn(a,c)-1)*u}function t$n(n,e,t){var r;ES(new gX(null,(!t.a&&(t.a=new gz(U7e,t,6,6)),new d3(t.a,16))),new YO(n,e));ES(new gX(null,(!t.n&&(t.n=new gz(unt,t,1,7)),new d3(t.n,16))),new ZO(n,e));r=bG(YDn(t,(JYn(),U4e)),75);!!r&&gsn(r,n,e)}function r$n(n,e,t){var r,i,a;a=szn((yAn(),Vut),n.Dh(),e);if(a){LP();bG(a,69).xk()||(a=q3(Ktn(Vut,a)));i=(r=n.Ih(a),bG(r>=0?n.Lh(r,true,true):r$n(n,a,true),160));return bG(i,220).Sl(e,t)}else{throw dm(new jM(Uee+e.xe()+Xee))}}function i$n(n,e,t,r){var i,a,c,u,s;i=n.d[e];if(i){a=i.g;s=i.i;if(r!=null){for(u=0;u=t){r=e;o=(s.c+s.a)/2;c=o-t;if(s.c<=o-t){i=new DU(s.c,c);WX(n,r++,i)}u=o+t;if(u<=s.a){a=new DU(u,s.a);l3(r,n.c.length);MC(n.c,r,a)}}}function l$n(n,e,t){var r,i,a,c,u,s;if(!e.dc()){i=new vS;for(s=e.Kc();s.Ob();){u=bG(s.Pb(),40);jJ(n.a,Bwn(u.g),Bwn(t));for(c=(r=Gkn(new Pv(u).a.d,0),new Cv(r));tE(c.a);){a=bG($6(c.a),65).c;w8(i,a,i.c.b,i.c)}}l$n(n,i,t+1)}}function b$n(n){var e;if(!n.c&&n.g==null){n.d=n.bj(n.f);cen(n,n.d);e=n.d}else{if(n.g==null){return true}else if(n.i==0){return false}else{e=bG(n.g[n.i-1],51)}}if(e==n.b&&null.Vm>=null.Um()){nRn(n);return b$n(n)}else{return e.Ob()}}function w$n(n){this.a=n;if(n.c.i.k==(YIn(),nEe)){this.c=n.c;this.d=bG(lIn(n.c.i,(WYn(),cDe)),64)}else if(n.d.i.k==nEe){this.c=n.d;this.d=bG(lIn(n.d.i,(WYn(),cDe)),64)}else{throw dm(new jM("Edge "+n+" is not an external edge."))}}function d$n(n,e){var t,r,i;i=n.b;n.b=e;(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,3,i,n.b));if(!e){Qun(n,null);$an(n,0);zcn(n,null)}else if(e!=n){Qun(n,e.zb);$an(n,e.d);t=(r=e.c,r==null?e.zb:r);zcn(n,t==null||T_(t,e.zb)?null:t)}}function g$n(n,e){var t;this.e=(iQ(),nQ(n),iQ(),Opn(n));this.c=(nQ(e),Opn(e));GD(this.e.Rd().dc()==this.c.Rd().dc());this.d=evn(this.e);this.b=evn(this.c);t=tX(kce,[XZn,jZn],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2);this.a=t;mcn(this)}function v$n(n){var e=(!Ufe&&(Ufe=TJn()),Ufe);var t=n.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,(function(n){return Y1(n,e)}));return'"'+t+'"'}function p$n(n,e,r,i,a,c){var u,s,o,f,h;if(a==0){return}if(BA(n)===BA(r)){n=n.slice(e,e+a);e=0}o=r;for(s=e,f=e+a;s=c)throw dm(new m_(e,c));i=t[e];if(c==1){r=null}else{r=$nn(utt,Bre,424,c-1,0,1);QGn(t,0,r,0,e);a=c-e-1;a>0&&QGn(t,e+1,r,e,a)}Lkn(n,r);WAn(n,e,i);return i}function M$n(n){var e,t;if(n.f){while(n.n0?a=$vn(t):a=Wdn($vn(t))}Pyn(e,j_e,a)}function P$n(n,e){var t;e.Ug("Partition preprocessing",1);t=bG(v8(tY(wrn(tY(new gX(null,new d3(n.a,16)),new Tr),new jr),new Er),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)]))),15);ES(t.Oc(),new Sr);e.Vg()}function C$n(n,e){var t,r,i,a,c;c=n.j;e.a!=e.b&&g$(c,new ra);i=c.c.length/2|0;for(r=0;r0&&wHn(n,t,e);return a}else if(r.a!=null){wHn(n,e,t);return-1}else if(i.a!=null){wHn(n,t,e);return 1}return 0}function O$n(n,e){var t,r,i,a,c;i=e.b.b;n.a=$nn(uue,B3n,15,i,0,1);n.b=$nn(qht,_2n,28,i,16,1);for(c=Gkn(e.b,0);c.b!=c.d.c;){a=bG($6(c),40);n.a[a.g]=new vS}for(r=Gkn(e.a,0);r.b!=r.d.c;){t=bG($6(r),65);n.a[t.b.g].Fc(t);n.a[t.c.g].Fc(t)}}function A$n(n,e){var t,r,i,a;if(n.Pj()){t=n.Ej();a=n.Qj();++n.j;n.qj(t,n.Zi(t,e));r=n.Ij(3,null,e,t,a);if(n.Mj()){i=n.Nj(e,null);if(!i){n.Jj(r)}else{i.nj(r);i.oj()}}else{n.Jj(r)}}else{jQ(n,e);if(n.Mj()){i=n.Nj(e,null);!!i&&i.oj()}}}function L$n(n,e,t){var r,i,a;if(n.Pj()){a=n.Qj();udn(n,e,t);r=n.Ij(3,null,t,e,a);if(n.Mj()){i=n.Nj(t,null);n.Tj()&&(i=n.Uj(t,i));if(!i){n.Jj(r)}else{i.nj(r);i.oj()}}else{n.Jj(r)}}else{udn(n,e,t);if(n.Mj()){i=n.Nj(t,null);!!i&&i.oj()}}}function N$n(n,e){var t,r,i,a,c;c=ZKn(n.e.Dh(),e);i=new vo;t=bG(n.g,124);for(a=n.i;--a>=0;){r=t[a];c.am(r.Lk())&&cen(i,r)}!LJn(n,i)&&bN(n.e)&&rk(n,e.Jk()?ZZ(n,6,e,(dZ(),lbe),null,-1,false):ZZ(n,e.tk()?2:1,e,null,null,-1,false))}function $$n(n,e){var t,r,i,a,c;if(n.a==(HIn(),d$e)){return true}a=e.a.c;t=e.a.c+e.a.b;if(e.j){r=e.A;c=r.c.c.a-r.o.a/2;i=a-(r.n.a+r.o.a);if(i>c){return false}}if(e.q){r=e.C;c=r.c.c.a-r.o.a/2;i=r.n.a-t;if(i>c){return false}}return true}function D$n(n){u2();var e,t,r,i,a,c,u;t=new b8;for(i=new nd(n.e.b);i.a1?n.e*=bM(n.a):n.f/=bM(n.a);qbn(n);Zmn(n);OBn(n);Ehn(n.b,(oyn(),Bke),n.g)}function B$n(n,e,t){var r,i,a,c,u,s;r=0;s=t;if(!e){r=t*(n.c.length-1);s*=-1}for(a=new nd(n);a.a=0?n.Ah(null):n.Ph().Th(n,-1-e,null,null));n.Bh(bG(i,54),t);!!r&&r.oj();n.vh()&&n.wh()&&t>-1&&Pon(n,new vz(n,9,t,a,i));return i}}}return a}function rDn(n,e){var t,r,i,a,c;a=n.b.Ce(e);r=(t=n.a.get(a),t==null?$nn(kce,jZn,1,0,5,1):t);for(c=0;c>5;if(i>=n.d){return n.e<0}t=n.a[i];e=1<<(e&31);if(n.e<0){r=qsn(n);if(i>16)),15).dd(a);if(u0){!(dN(n.a.c)&&e.n.d)&&!(gN(n.a.c)&&e.n.b)&&(e.g.d+=t.Math.max(0,i/2-.5));!(dN(n.a.c)&&e.n.a)&&!(gN(n.a.c)&&e.n.c)&&(e.g.a-=i-1)}}}function pDn(n){var e,r,i,a,c;a=new im;c=YUn(n,a);e=bG(lIn(n,(WYn(),NDe)),10);if(e){for(i=new nd(e.j);i.a>e;a=n.m>>e|t<<22-e;i=n.l>>e|n.m<<22-e}else if(e<44){c=r?h0n:0;a=t>>e-22;i=n.m>>e-22|t<<44-e}else{c=r?h0n:0;a=r?f0n:0;i=t>>e-44}return M$(i&f0n,a&f0n,c&h0n)}function MDn(n){var e,r,i,a,c,u;this.c=new im;this.d=n;i=y0n;a=y0n;e=M0n;r=M0n;for(u=Gkn(n,0);u.b!=u.d.c;){c=bG($6(u),8);i=t.Math.min(i,c.a);a=t.Math.min(a,c.b);e=t.Math.max(e,c.a);r=t.Math.max(r,c.b)}this.a=new yY(i,a,e-i,r-a)}function TDn(n,e){var t,r,i,a,c,u;for(a=new nd(n.b);a.a0&&G$(e,44)){n.a._j();o=bG(e,44);s=o.ld();a=s==null?0:Vun(s);c=sF(n.a,a);t=n.a.d[c];if(t){r=bG(t.g,379);f=t.i;for(u=0;u=2){r=a.Kc();e=MK(r.Pb());while(r.Ob()){c=e;e=MK(r.Pb());i=t.Math.min(i,(cJ(e),e)-(cJ(c),c))}}return i}function BDn(n,e){var t,r,i;i=new im;for(r=Gkn(e.a,0);r.b!=r.d.c;){t=bG($6(r),65);t.b.g==n.g&&!T_(t.b.c,B9n)&&BA(lIn(t.b,(eqn(),_We)))!==BA(lIn(t.c,_We))&&!l9(new gX(null,new d3(i,16)),new Sv(t))&&(Tm(i.c,t),true)}g$(i,new Nc);return i}function HDn(n,e){var t,r,i;if(BA(e)===BA(nQ(n))){return true}if(!G$(e,15)){return false}r=bG(e,15);i=n.gc();if(i!=r.gc()){return false}if(G$(r,59)){for(t=0;t0&&(i=t);for(c=new nd(n.f.e);c.a0){e-=1;t-=1}else{if(r>=0&&i<0){e+=1;t+=1}else{if(r>0&&i>=0){e-=1;t+=1}else{e+=1;t-=1}}}}}return new nA(Bwn(e),Bwn(t))}function uxn(n,e){if(n.ce.c){return 1}else if(n.be.b){return 1}else if(n.a!=e.a){return Vun(n.a)-Vun(e.a)}else if(n.d==(i5(),IGe)&&e.d==CGe){return-1}else if(n.d==CGe&&e.d==IGe){return 1}return 0}function sxn(n,e){var t,r,i,a,c;a=e.a;a.c.i==e.b?c=a.d:c=a.c;a.c.i==e.b?r=a.c:r=a.d;i=kpn(n.a,c,r);if(i>0&&i<_3n){t=WDn(n.a,r.i,i,n.c);Win(n.a,r.i,-t);return t>0}else if(i<0&&-i<_3n){t=QDn(n.a,r.i,-i,n.c);Win(n.a,r.i,t);return t>0}return false}function oxn(n,e,t,r){var i,a,c,u,s,o,f,h;i=(e-n.d)/n.c.c.length;a=0;n.a+=t;n.d=e;for(h=new nd(n.c);h.a>24}return c}function hxn(n){if(n.ze()){var e=n.c;e.Ae()?n.o="["+e.n:!e.ze()?n.o="[L"+e.xe()+";":n.o="["+e.xe();n.b=e.we()+"[]";n.k=e.ye()+"[]";return}var t=n.j;var r=n.d;r=r.split("/");n.o=gmn(".",[t,gmn("$",r)]);n.b=gmn(".",[t,gmn(".",r)]);n.k=r[r.length-1]}function lxn(n,e){var t,r,i,a,c;c=null;for(a=new nd(n.e.a);a.a=0;e-=2){for(t=0;t<=e;t+=2){if(n.b[t]>n.b[t+2]||n.b[t]===n.b[t+2]&&n.b[t+1]>n.b[t+3]){r=n.b[t+2];n.b[t+2]=n.b[t];n.b[t]=r;r=n.b[t+3];n.b[t+3]=n.b[t+1];n.b[t+1]=r}}}n.c=true}function Txn(n,e){var t,r,i,a,c,u,s,o,f;o=-1;f=0;for(c=n,u=0,s=c.length;u0&&++f}}++o}return f}function jxn(n){var e,t;t=new vx($j(n.Rm));t.a+="@";tL(t,(e=Vun(n)>>>0,e.toString(16)));if(n.Vh()){t.a+=" (eProxyURI: ";eL(t,n._h());if(n.Kh()){t.a+=" eClass: ";eL(t,n.Kh())}t.a+=")"}else if(n.Kh()){t.a+=" (eClass: ";eL(t,n.Kh());t.a+=")"}return t.a}function Exn(n){var e,t,r,i;if(n.e){throw dm(new EM((jK(sve),p2n+sve.k+m2n)))}n.d==(Bdn(),h5e)&&WWn(n,o5e);for(t=new nd(n.a.a);t.a>24}return t}function Axn(n,e,t){var r,i,a;i=bG(xJ(n.i,e),314);if(!i){i=new rin(n.d,e,t);zz(n.i,e,i);if(jmn(e)){sD(n.a,e.c,e.b,i)}else{a=PAn(e);r=bG(xJ(n.p,a),252);switch(a.g){case 1:case 3:i.j=true;aM(r,e.b,i);break;case 4:case 2:i.k=true;aM(r,e.c,i)}}}return i}function Lxn(n,e){var t,r,i,a,c,u,s,o,f;s=sR(n.c-n.b&n.a.length-1);o=null;f=null;for(a=new JJ(n);a.a!=a.b;){i=bG(own(a),10);t=(u=bG(lIn(i,(WYn(),kDe)),12),!u?null:u.i);r=(c=bG(lIn(i,yDe),12),!c?null:c.i);if(o!=t||f!=r){G$n(s,e);o=t;f=r}Tm(s.c,i)}G$n(s,e)}function Nxn(n,e,t,r){var i,a,c,u,s,o;u=new vo;s=ZKn(n.e.Dh(),e);i=bG(n.g,124);LP();if(bG(e,69).xk()){for(c=0;c=0){return a}else{c=1;for(s=new nd(e.j);s.a=0){return a}else{c=1;for(s=new nd(e.j);s.a0&&e.Ne((b3(i-1,n.c.length),bG(n.c[i-1],10)),a)>0){r9(n,i,(b3(i-1,n.c.length),bG(n.c[i-1],10)));--i}b3(i,n.c.length);n.c[i]=a}t.a=new rm;t.b=new rm}function Rxn(n,e,t){var r,i,a,c,u,s,o,f;f=(r=bG(e.e&&e.e(),9),new aB(r,bG(PF(r,r.length),9),0));s=nqn(t,"[\\[\\]\\s,]+");for(a=s,c=0,u=a.length;c=0){if(!e){e=new ZM;r>0&&ZA(e,(Unn(0,r,n.length),n.substr(0,r)))}e.a+="\\";CQ(e,t&$1n)}else!!e&&CQ(e,t&$1n)}return e?e.a:n}function Fxn(n){var e,r,i;for(r=new nd(n.a.a.b);r.a0){!(dN(n.a.c)&&e.n.d)&&!(gN(n.a.c)&&e.n.b)&&(e.g.d-=t.Math.max(0,i/2-.5));!(dN(n.a.c)&&e.n.a)&&!(gN(n.a.c)&&e.n.c)&&(e.g.a+=t.Math.max(0,i-1))}}}function _xn(n,e,t){var r,i;if((n.c-n.b&n.a.length-1)==2){if(e==(UQn(),D8e)||e==$8e){Min(bG(Hhn(n),15),(xjn(),z5e));Min(bG(Hhn(n),15),W5e)}else{Min(bG(Hhn(n),15),(xjn(),W5e));Min(bG(Hhn(n),15),z5e)}}else{for(i=new JJ(n);i.a!=i.b;){r=bG(own(i),15);Min(r,t)}}}function Bxn(n,e){var t,r,i,a,c,u,s;i=oG(new Lp(n));u=new K4(i,i.c.length);a=oG(new Lp(e));s=new K4(a,a.c.length);c=null;while(u.b>0&&s.b>0){t=(PK(u.b>0),bG(u.a.Xb(u.c=--u.b),27));r=(PK(s.b>0),bG(s.a.Xb(s.c=--s.b),27));if(t==r){c=t}else{break}}return c}function Hxn(n,e,t){var r,i,a,c;if(r4(n,e)>r4(n,t)){r=_gn(t,(UQn(),$8e));n.d=r.dc()?0:kq(bG(r.Xb(0),12));c=_gn(e,n9e);n.b=c.dc()?0:kq(bG(c.Xb(0),12))}else{i=_gn(t,(UQn(),n9e));n.d=i.dc()?0:kq(bG(i.Xb(0),12));a=_gn(e,$8e);n.b=a.dc()?0:kq(bG(a.Xb(0),12))}}function Uxn(n,e){var t,r,i,a;t=n.o.a;for(a=bG(bG(r7(n.r,e),21),87).Kc();a.Ob();){i=bG(a.Pb(),117);i.e.a=t*bM(MK(i.b.of(ome)));i.e.b=(r=i.b,r.pf((JYn(),m6e))?r.ag()==(UQn(),D8e)?-r.Mf().b-bM(MK(r.of(m6e))):bM(MK(r.of(m6e))):r.ag()==(UQn(),D8e)?-r.Mf().b:0)}}function Gxn(n,e){var t,r,i,a;e.Ug("Self-Loop pre-processing",1);for(r=new nd(n.a);r.an.c){break}else if(i.a>=n.s){a<0&&(a=c);u=c}}s=(n.s+n.c)/2;if(a>=0){r=gHn(n,e,a,u);s=mP((b3(r,e.c.length),bG(e.c[r],339)));h$n(e,r,t)}return s}function Vxn(n,e,t){var r,i,a,c,u,s,o;c=(a=new jo,a);run(c,(cJ(e),e));o=(!c.b&&(c.b=new JR((rZn(),cit),Nat,c)),c.b);for(s=1;s0&&czn(this,i)}}function Wxn(n,e,t,r,i,a){var c,u,s;if(!i[e.a]){i[e.a]=true;c=r;!c&&(c=new k7);ED(c.e,e);for(s=a[e.a].Kc();s.Ob();){u=bG(s.Pb(),290);if(u.d==t||u.c==t){continue}u.c!=e&&Wxn(n,u.c,e,c,i,a);u.d!=e&&Wxn(n,u.d,e,c,i,a);ED(c.c,u);Dfn(c.d,u.b)}return c}return null}function Qxn(n){var e,t,r,i,a,c,u;e=0;for(i=new nd(n.e);i.a=2}function Jxn(n,e,t,r,i){var a,c,u,s,o,f;a=n.c.d.j;c=bG(dyn(t,0),8);for(f=1;f1){return false}e=nV(e8e,zfn(fT(o8e,1),g1n,95,0,[n8e,r8e]));if(Qon(J1(e,n))>1){return false}r=nV(s8e,zfn(fT(o8e,1),g1n,95,0,[u8e,c8e]));if(Qon(J1(r,n))>1){return false}return true}function Zxn(n,e,t){var r,i,a;for(a=new nd(n.t);a.a0){r.b.n-=r.c;r.b.n<=0&&r.b.u>0&&hq(e,r.b)}}for(i=new nd(n.i);i.a0){r.a.u-=r.c;r.a.u<=0&&r.a.n>0&&hq(t,r.a)}}}function nRn(n){var e,t,r,i,a;if(n.g==null){n.d=n.bj(n.f);cen(n,n.d);if(n.c){a=n.f;return a}}e=bG(n.g[n.i-1],51);i=e.Pb();n.e=e;t=n.bj(i);if(t.Ob()){n.d=t;cen(n,t)}else{n.d=null;while(!e.Ob()){bQ(n.g,--n.i,null);if(n.i==0){break}r=bG(n.g[n.i-1],51);e=r}}return i}function eRn(n,e){var t,r,i,a,c,u;r=e;i=r.Lk();if(OFn(n.e,i)){if(i.Si()&&V5(n,i,r.md())){return false}}else{u=ZKn(n.e.Dh(),i);t=bG(n.g,124);for(a=0;a1||t>1){return 2}}if(e+t==1){return 2}return 0}function bRn(n,e){var r,i,a,c,u,s;c=n.a*q0n+n.b*1502;s=n.b*q0n+11;r=t.Math.floor(s*X0n);c+=r;s-=r*V0n;c%=V0n;n.a=c;n.b=s;if(e<=24){return t.Math.floor(n.a*Cwe[e])}else{a=n.a*(1<=2147483648&&(i-=4294967296);return i}}function wRn(n,e,t){var r,i,a,c,u,s,o;a=new im;o=new vS;c=new vS;zqn(n,o,c,e);Hzn(n,o,c,e,t);for(s=new nd(n);s.ar.b.g&&(Tm(a.c,r),true)}}return a}function dRn(n,e,t){var r,i,a,c,u,s;u=n.c;for(c=(!t.q?(dZ(),dZ(),bbe):t.q).vc().Kc();c.Ob();){a=bG(c.Pb(),44);r=!eE(tY(new gX(null,new d3(u,16)),new dd(new EO(e,a)))).Bd((jS(),gge));if(r){s=a.md();if(G$(s,4)){i=Kmn(s);i!=null&&(s=i)}e.qf(bG(a.ld(),149),s)}}}function gRn(n,e,t){var r,i;qJ(n.b);tW(n.b,(Hdn(),D1e),(uP(),q0e));tW(n.b,x1e,e.g);tW(n.b,R1e,e.a);n.a=ezn(n.b,e);t.Ug("Compaction by shrinking a tree",n.a.c.length);if(e.i.c.length>1){for(i=new nd(n.a);i.a=0?n.Lh(r,true,true):r$n(n,a,true),160));bG(i,220).Xl(e,t)}else{throw dm(new jM(Uee+e.xe()+Gee))}}function pRn(n,e){var t,r,i,a,c;if(!e){return null}else{a=G$(n.Cb,90)||G$(n.Cb,102);c=!a&&G$(n.Cb,331);for(r=new _D((!e.a&&(e.a=new xX(e,Crt,e)),e.a));r.e!=r.i.gc();){t=bG(iyn(r),89);i=PGn(t);if(a?G$(i,90):c?G$(i,156):!!i){return i}}return a?(rZn(),nit):(rZn(),Jrt)}}function mRn(n,e){var t,r,i,a;e.Ug("Resize child graph to fit parent.",1);for(r=new nd(n.b);r.a=2*e&&ED(t,new DU(c[r-1]+e,c[r]-e))}return t}function MRn(n,e,t){var r,i,a,c,s,o,f,h;if(t){a=t.a.length;r=new WV(a);for(s=(r.b-r.a)*r.c<0?(NP(),Fht):new BD(r);s.Ob();){c=bG(s.Pb(),17);i=j6(t,c.a);!!i&&(u=null,o=p5(n,(f=(yj(),h=new Vk,h),!!e&&RRn(f,e),f),i),Wcn(o,E6(i,Pte)),gCn(i,o),ELn(i,o),Qhn(n,i,o))}}}function TRn(n){var e,t,r,i,a,c;if(!n.j){c=new Ao;e=Cit;a=e.a.zc(n,e);if(a==null){for(r=new _D(a1(n));r.e!=r.i.gc();){t=bG(iyn(r),29);i=TRn(t);NW(c,i);cen(c,t)}e.a.Bc(n)!=null}vbn(c);n.j=new jL((bG(Yin(yZ((cQ(),_rt).o),11),19),c.i),c.g);S9(n).b&=-33}return n.j}function jRn(n){var e,t,r,i;if(n==null){return null}else{r=SXn(n,true);i=mae.length;if(T_(r.substr(r.length-i,i),mae)){t=r.length;if(t==4){e=(w3(0,r.length),r.charCodeAt(0));if(e==43){return _ot}else if(e==45){return Fot}}else if(t==3){return _ot}}return new ck(r)}}function ERn(n){var e,t,r;t=n.l;if((t&t-1)!=0){return-1}r=n.m;if((r&r-1)!=0){return-1}e=n.h;if((e&e-1)!=0){return-1}if(e==0&&r==0&&t==0){return-1}if(e==0&&r==0&&t!=0){return Mcn(t)}if(e==0&&r!=0&&t==0){return Mcn(r)+22}if(e!=0&&r==0&&t==0){return Mcn(e)+44}return-1}function SRn(n,e){var t,r,i,a,c;i=e.a&n.f;a=null;for(r=n.b[i];true;r=r.b){if(r==e){!a?n.b[i]=e.b:a.b=e.b;break}a=r}c=e.f&n.f;a=null;for(t=n.c[c];true;t=t.d){if(t==e){!a?n.c[c]=e.d:a.d=e.d;break}a=t}!e.e?n.a=e.c:e.e.c=e.c;!e.c?n.e=e.e:e.c.e=e.e;--n.i;++n.g}function PRn(n,e){var t;e.d?e.d.b=e.b:n.a=e.b;e.b?e.b.d=e.d:n.e=e.d;if(!e.e&&!e.c){t=bG(aJ(bG(b7(n.b,e.a),260)),260);t.a=0;++n.c}else{t=bG(aJ(bG(fQ(n.b,e.a),260)),260);--t.a;!e.e?t.b=bG(aJ(e.c),511):e.e.c=e.c;!e.c?t.c=bG(aJ(e.e),511):e.c.e=e.e}--n.d}function CRn(n){var e,r,i,a,c,u,s,o,f,h;r=n.o;e=n.p;u=pZn;a=T1n;s=pZn;c=T1n;for(f=0;f0);a.a.Xb(a.c=--a.b);MF(a,i);PK(a.b3&&Gtn(n,0,e-3)}}function NRn(n){var e,t,r,i;if(BA(lIn(n,(IYn(),SFe)))===BA((Dwn(),U5e))){return!n.e&&BA(lIn(n,YKe))!==BA((sfn(),A$e))}r=bG(lIn(n,ZKe),299);i=lM(yK(lIn(n,aFe)))||BA(lIn(n,cFe))===BA((Icn(),mNe));e=bG(lIn(n,JKe),17).a;t=n.a.c.length;return!i&&r!=(sfn(),A$e)&&(e==0||e>t)}function $Rn(n){var e,t;t=0;for(;t0){break}}if(t>0&&t0){break}}if(e>0&&t>16!=6&&!!e){if(uEn(n,e))throw dm(new jM(Zee+x$n(n)));r=null;!!n.Cb&&(r=(t=n.Db>>16,t>=0?Yjn(n,r):n.Cb.Th(n,-1-t,null,r)));!!e&&(r=Eyn(e,n,6,r));r=iF(n,e,r);!!r&&r.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,6,e,e))}function xRn(n,e){var t,r;if(e!=n.Cb||n.Db>>16!=3&&!!e){if(uEn(n,e))throw dm(new jM(Zee+AXn(n)));r=null;!!n.Cb&&(r=(t=n.Db>>16,t>=0?wEn(n,r):n.Cb.Th(n,-1-t,null,r)));!!e&&(r=Eyn(e,n,12,r));r=aF(n,e,r);!!r&&r.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,3,e,e))}function RRn(n,e){var t,r;if(e!=n.Cb||n.Db>>16!=9&&!!e){if(uEn(n,e))throw dm(new jM(Zee+ZBn(n)));r=null;!!n.Cb&&(r=(t=n.Db>>16,t>=0?nEn(n,r):n.Cb.Th(n,-1-t,null,r)));!!e&&(r=Eyn(e,n,9,r));r=cF(n,e,r);!!r&&r.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,9,e,e))}function KRn(n){var e,t,r,i,a;r=pEn(n);a=n.j;if(a==null&&!!r){return n.Jk()?null:r.ik()}else if(G$(r,156)){t=r.jk();if(t){i=t.wi();if(i!=n.i){e=bG(r,156);if(e.nk()){try{n.g=i.ti(e,a)}catch(c){c=Ofn(c);if(G$(c,82)){n.g=null}else throw dm(c)}}n.i=i}}return n.g}return null}function FRn(n){var e;e=new im;ED(e,new iC(new PO(n.c,n.d),new PO(n.c+n.b,n.d)));ED(e,new iC(new PO(n.c,n.d),new PO(n.c,n.d+n.a)));ED(e,new iC(new PO(n.c+n.b,n.d+n.a),new PO(n.c+n.b,n.d)));ED(e,new iC(new PO(n.c+n.b,n.d+n.a),new PO(n.c,n.d+n.a)));return e}function _Rn(n){var e,t,r;if(n==null){return CZn}try{return fvn(n)}catch(i){i=Ofn(i);if(G$(i,103)){e=i;r=$j(Cbn(n))+"@"+(t=(pS(),xmn(n))>>>0,t.toString(16));mkn(yfn(),(MS(),"Exception during lenientFormat for "+r),e);return"<"+r+" threw "+$j(e.Rm)+">"}else throw dm(i)}}function BRn(n,e,t){var r,i,a;for(a=e.a.ec().Kc();a.Ob();){i=bG(a.Pb(),74);r=bG(fQ(n.b,i),272);!r&&(H0(pIn(i))==H0(yIn(i))?eFn(n,i,t):pIn(i)==H0(yIn(i))?fQ(n.c,i)==null&&fQ(n.b,yIn(i))!=null&&pWn(n,i,t,false):fQ(n.d,i)==null&&fQ(n.b,pIn(i))!=null&&pWn(n,i,t,true))}}function HRn(n,e){var t,r,i,a,c,u,s;for(i=n.Kc();i.Ob();){r=bG(i.Pb(),10);u=new vOn;l2(u,r);KLn(u,(UQn(),$8e));Ehn(u,(WYn(),LDe),(Qx(),true));for(c=e.Kc();c.Ob();){a=bG(c.Pb(),10);s=new vOn;l2(s,a);KLn(s,n9e);Ehn(s,LDe,true);t=new zZ;Ehn(t,LDe,true);f2(t,u);b2(t,s)}}}function URn(n,e,t,r){var i,a,c,u;i=umn(n,e,t);a=umn(n,t,e);c=bG(fQ(n.c,e),118);u=bG(fQ(n.c,t),118);if(i1){e=Ix((t=new wk,++n.b,t),n.d);for(u=Gkn(a,0);u.b!=u.d.c;){c=bG($6(u),125);HKn(BS(_S(HS(FS(new bk,1),0),e),c))}}}function zRn(n,e,t){var r,i,a,c,u;t.Ug("Breaking Point Removing",1);n.a=bG(lIn(e,(IYn(),gFe)),223);for(a=new nd(e.b);a.a>16!=11&&!!e){if(uEn(n,e))throw dm(new jM(Zee+YBn(n)));r=null;!!n.Cb&&(r=(t=n.Db>>16,t>=0?dEn(n,r):n.Cb.Th(n,-1-t,null,r)));!!e&&(r=Eyn(e,n,10,r));r=a_(n,e,r);!!r&&r.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,11,e,e))}function QRn(n){var e,t,r,i;for(r=new pon(new Kw(n.b).a);r.b;){t=jun(r);i=bG(t.ld(),12);e=bG(t.md(),10);Ehn(e,(WYn(),EDe),i);Ehn(i,NDe,e);Ehn(i,lDe,(Qx(),true));KLn(i,bG(lIn(e,cDe),64));lIn(e,cDe);Ehn(i.i,(IYn(),m_e),(FPn(),y8e));bG(lIn(VQ(i.i),oDe),21).Fc((o_n(),E$e))}}function JRn(n,e,t){var r,i,a,c,u,s;a=0;c=0;if(n.c){for(s=new nd(n.d.i.j);s.aa.a){return-1}else if(i.as){f=n.d;n.d=$nn(zet,Ure,66,2*s+4,0,1);for(a=0;a=0x8000000000000000){return crn(),Phe}i=false;if(n<0){i=true;n=-n}r=0;if(n>=w0n){r=c0(n/w0n);n-=r*w0n}t=0;if(n>=b0n){t=c0(n/b0n);n-=t*b0n}e=c0(n);a=M$(e,t,r);i&&rln(a);return a}function bKn(n){var e,t,r,i,a;a=new im;Lin(n.b,new Od(a));n.b.c.length=0;if(a.c.length!=0){e=(b3(0,a.c.length),bG(a.c[0],82));for(t=1,r=a.c.length;t=-e&&i==e){return new nA(Bwn(r-1),Bwn(i))}return new nA(Bwn(r),Bwn(i-1))}function pKn(){YYn();return zfn(fT(fCe,1),g1n,81,0,[gPe,bPe,vPe,NPe,YPe,RPe,iCe,HPe,QPe,CPe,XPe,BPe,JPe,jPe,cCe,uPe,qPe,nCe,$Pe,ZPe,sCe,zPe,sPe,WPe,oCe,tCe,uCe,DPe,yPe,xPe,LPe,aCe,hPe,mPe,FPe,fPe,_Pe,OPe,EPe,UPe,PPe,wPe,lPe,APe,SPe,GPe,rCe,oPe,VPe,IPe,KPe,MPe,kPe,eCe,pPe,TPe,dPe])}function mKn(n,e,t){n.d=0;n.b=0;e.k==(YIn(),iEe)&&t.k==iEe&&bG(lIn(e,(WYn(),EDe)),10)==bG(lIn(t,EDe),10)&&(Itn(e).j==(UQn(),D8e)?Hxn(n,e,t):Hxn(n,t,e));e.k==iEe&&t.k==tEe?Itn(e).j==(UQn(),D8e)?n.d=1:n.b=1:t.k==iEe&&e.k==tEe&&(Itn(t).j==(UQn(),D8e)?n.b=1:n.d=1);WMn(n,e,t)}function kKn(n){var e,t,r,i,a,c,u,s,o,f,h;h=yCn(n);e=n.a;s=e!=null;s&&iq(h,"category",n.a);i=ME(new Rw(n.d));c=!i;if(c){o=new $b;ain(h,"knownOptions",o);t=new Pp(o);Y8(new Rw(n.d),t)}a=ME(n.g);u=!a;if(u){f=new $b;ain(h,"supportedFeatures",f);r=new Cp(f);Y8(n.g,r)}return h}function yKn(n){var e,t,r,i,a,c,u,s,o;r=false;e=336;t=0;a=new zF(n.length);for(u=n,s=0,o=u.length;s>16!=7&&!!e){if(uEn(n,e))throw dm(new jM(Zee+YOn(n)));r=null;!!n.Cb&&(r=(t=n.Db>>16,t>=0?Zjn(n,r):n.Cb.Th(n,-1-t,null,r)));!!e&&(r=bG(e,54).Rh(n,1,F7e,r));r=kV(n,e,r);!!r&&r.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,7,e,e))}function EKn(n,e){var t,r;if(e!=n.Cb||n.Db>>16!=3&&!!e){if(uEn(n,e))throw dm(new jM(Zee+gdn(n)));r=null;!!n.Cb&&(r=(t=n.Db>>16,t>=0?rEn(n,r):n.Cb.Th(n,-1-t,null,r)));!!e&&(r=bG(e,54).Rh(n,0,G7e,r));r=yV(n,e,r);!!r&&r.oj()}else(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,3,e,e))}function SKn(n,e){p_n();var t,r,i,a,c,u,s,o,f;if(e.d>n.d){u=n;n=e;e=u}if(e.d<63){return UFn(n,e)}c=(n.d&-2)<<4;o=F9(n,c);f=F9(e,c);r=TXn(n,_9(o,c));i=TXn(e,_9(f,c));s=SKn(o,f);t=SKn(r,i);a=SKn(TXn(o,r),TXn(i,f));a=izn(izn(a,s),t);a=_9(a,c);s=_9(s,c<<1);return izn(izn(s,a),t)}function PKn(){PKn=O;OBe=new gI(p9n,0);PBe=new gI("LONGEST_PATH",1);CBe=new gI("LONGEST_PATH_SOURCE",2);jBe=new gI("COFFMAN_GRAHAM",3);SBe=new gI($6n,4);ABe=new gI("STRETCH_WIDTH",5);IBe=new gI("MIN_WIDTH",6);TBe=new gI("BF_MODEL_ORDER",7);EBe=new gI("DF_MODEL_ORDER",8)}function CKn(n,e,t){var r,i,a,c,u;c=Zwn(n,t);u=$nn(Yje,e6n,10,e.length,0,1);r=0;for(a=c.Kc();a.Ob();){i=bG(a.Pb(),12);lM(yK(lIn(i,(WYn(),lDe))))&&(u[r++]=bG(lIn(i,NDe),10))}if(r=0;a+=t?1:-1){c=c|e.c.lg(s,a,t,r&&!lM(yK(lIn(e.j,(WYn(),sDe))))&&!lM(yK(lIn(e.j,(WYn(),FDe)))));c=c|e.q.ug(s,a,t);c=c|mBn(n,s[a],t,r)}Gz(n.c,e);return c}function NKn(n,e,t){var r,i,a,c,u,s,o,f,h,l;for(f=w6(n.j),h=0,l=f.length;h1&&(n.a=true);rV(bG(t.b,68),t_(_$(bG(e.b,68).c),jD(r_(_$(bG(t.b,68).a),bG(e.b,68).a),i)));g2(n,e);xKn(n,t)}}function RKn(n){var e,t,r,i,a,c,u;for(a=new nd(n.a.a);a.a0&&a>0?c.p=e++:r>0?c.p=t++:a>0?c.p=i++:c.p=t++}}dZ();g$(n.j,new pr)}function FKn(n){var e,t;t=null;e=bG(Yq(n.g,0),18);do{t=e.d.i;if(jR(t,(WYn(),yDe))){return bG(lIn(t,yDe),12).i}if(t.k!=(YIn(),rEe)&&dDn(new GV(sx(Jgn(t).a.Kc(),new d)))){e=bG(K9(new GV(sx(Jgn(t).a.Kc(),new d))),18)}else if(t.k!=rEe){return null}}while(!!t&&t.k!=(YIn(),rEe));return t}function _Kn(n,e){var t,r,i,a,c,u,s,o,f;u=e.j;c=e.g;s=bG(Yq(u,u.c.length-1),113);f=(b3(0,u.c.length),bG(u.c[0],113));o=BTn(n,c,s,f);for(a=1;ao){s=t;f=i;o=r}}e.a=f;e.c=s}function BKn(n,e,t){var r,i,a,c,u,s,o;o=new Vj(new sv(n));for(c=zfn(fT(gEe,1),t6n,12,0,[e,t]),u=0,s=c.length;us-n.b&&us-n.a&&u0){if(a.a){u=a.b.Mf().a;if(t>u){i=(t-u)/2;a.d.b=i;a.d.c=i}}else{a.d.c=n.s+t}}else if(fz(n.u)){r=OCn(a.b);r.c<0&&(a.d.b=-r.c);r.c+r.b>a.b.Mf().a&&(a.d.c=r.c+r.b-a.b.Mf().a)}}}function oFn(n,e){var t,r,i,a,c;c=new im;t=e;do{a=bG(fQ(n.b,t),131);a.B=t.c;a.D=t.d;Tm(c.c,a);t=bG(fQ(n.k,t),18)}while(t);r=(b3(0,c.c.length),bG(c.c[0],131));r.j=true;r.A=bG(r.d.a.ec().Kc().Pb(),18).c.i;i=bG(Yq(c,c.c.length-1),131);i.q=true;i.C=bG(i.d.a.ec().Kc().Pb(),18).d.i;return c}function fFn(n){var e,r;e=bG(n.a,17).a;r=bG(n.b,17).a;if(e>=0){if(e==r){return new nA(Bwn(-e-1),Bwn(-e-1))}if(e==-r){return new nA(Bwn(-e),Bwn(r+1))}}if(t.Math.abs(e)>t.Math.abs(r)){if(e<0){return new nA(Bwn(-e),Bwn(r))}return new nA(Bwn(-e),Bwn(r+1))}return new nA(Bwn(e+1),Bwn(r))}function hFn(n){var e,t;t=bG(lIn(n,(IYn(),KFe)),171);e=bG(lIn(n,(WYn(),bDe)),311);if(t==(Wvn(),QDe)){Ehn(n,KFe,ZDe);Ehn(n,bDe,(irn(),K$e))}else if(t==YDe){Ehn(n,KFe,ZDe);Ehn(n,bDe,(irn(),x$e))}else if(e==(irn(),K$e)){Ehn(n,KFe,QDe);Ehn(n,bDe,R$e)}else if(e==x$e){Ehn(n,KFe,YDe);Ehn(n,bDe,R$e)}}function lFn(){lFn=O;sXe=new lc;iXe=xq(new mJ,(bIn(),aTe),(YYn(),$Pe));uXe=mV(xq(new mJ,aTe,zPe),uTe,VPe);oXe=Rmn(Rmn(yP(mV(xq(new mJ,rTe,iCe),uTe,rCe),cTe),tCe),aCe);aXe=mV(xq(xq(xq(new mJ,iTe,RPe),cTe,FPe),cTe,_Pe),uTe,KPe);cXe=mV(xq(xq(new mJ,cTe,_Pe),cTe,mPe),uTe,pPe)}function bFn(){bFn=O;BXe=xq(mV(new mJ,(bIn(),uTe),(YYn(),MPe)),aTe,$Pe);qXe=Rmn(Rmn(yP(mV(xq(new mJ,rTe,iCe),uTe,rCe),cTe),tCe),aCe);HXe=mV(xq(xq(xq(new mJ,iTe,RPe),cTe,FPe),cTe,_Pe),uTe,KPe);GXe=xq(xq(new mJ,aTe,zPe),uTe,VPe);UXe=mV(xq(xq(new mJ,cTe,_Pe),cTe,mPe),uTe,pPe)}function wFn(n,e,t,r,i){var a,c;if((!j9(e)&&e.c.i.c==e.d.i.c||!bun(Whn(zfn(fT(D3e,1),XZn,8,0,[i.i.n,i.n,i.a])),t))&&!j9(e)){e.c==i?wR(e.a,0,new uN(t)):hq(e.a,new uN(t));if(r&&!fS(n.a,t)){c=bG(lIn(e,(IYn(),DFe)),75);if(!c){c=new zk;Ehn(e,DFe,c)}a=new uN(t);w8(c,a,c.c.b,c.c);Gz(n.a,a)}}}function dFn(n,e){var t,r,i,a;a=MV(Kgn(o1n,LJ(MV(Kgn(e==null?0:Vun(e),f1n)),15)));t=a&n.b.length-1;i=null;for(r=n.b[t];r;i=r,r=r.a){if(r.d==a&&BQ(r.i,e)){!i?n.b[t]=r.a:i.a=r.a;HM(bG(aJ(r.c),604),bG(aJ(r.f),604));Cm(bG(aJ(r.b),227),bG(aJ(r.e),227));--n.f;++n.e;return true}}return false}function gFn(n){var e,t;for(t=new GV(sx(Qgn(n).a.Kc(),new d));dDn(t);){e=bG(K9(t),18);if(e.c.i.k!=(YIn(),eEe)){throw dm(new IM(k6n+ijn(n)+"' has its layer constraint set to FIRST, but has at least one incoming edge that "+" does not come from a FIRST_SEPARATE node. That must not happen."))}}}function vFn(n,e,t){var r,i,a,c,u,s,o;i=Ndn(n.Db&254);if(i==0){n.Eb=t}else{if(i==1){u=$nn(kce,jZn,1,2,5,1);a=ITn(n,e);if(a==0){u[0]=t;u[1]=n.Eb}else{u[0]=n.Eb;u[1]=t}}else{u=$nn(kce,jZn,1,i+1,5,1);c=Uan(n.Eb);for(r=2,s=0,o=0;r<=128;r<<=1){r==e?u[o++]=t:(n.Db&r)!=0&&(u[o++]=c[s++])}}n.Eb=u}n.Db|=e}function pFn(n,e,r){var i,a,c,u;this.b=new im;a=0;i=0;for(u=new nd(n);u.a0){c=bG(Yq(this.b,0),176);a+=c.o;i+=c.p}a*=2;i*=2;e>1?a=c0(t.Math.ceil(a*e)):i=c0(t.Math.ceil(i/e));this.a=new wpn(a,i)}function mFn(n,e,r,i,a,c){var u,s,o,f,h,l,b,w,d,g,v,p;h=i;if(e.j&&e.o){w=bG(fQ(n.f,e.A),60);g=w.d.c+w.d.b;--h}else{g=e.a.c+e.a.b}l=a;if(r.q&&r.o){w=bG(fQ(n.f,r.C),60);f=w.d.c;++l}else{f=r.a.c}v=f-g;o=t.Math.max(2,l-h);s=v/o;d=g+s;for(b=h;b=0;c+=i?1:-1){u=e[c];s=r==(UQn(),$8e)?i?_gn(u,r):Avn(_gn(u,r)):i?Avn(_gn(u,r)):_gn(u,r);a&&(n.c[u.p]=s.gc());for(h=s.Kc();h.Ob();){f=bG(h.Pb(),12);n.d[f.p]=o++}Dfn(t,s)}}function MFn(n,e,t){var r,i,a,c,u,s,o,f;a=bM(MK(n.b.Kc().Pb()));o=bM(MK(mfn(e.b)));r=jD(_$(n.a),o-t);i=jD(_$(e.a),t-a);f=t_(r,i);jD(f,1/(o-a));this.a=f;this.b=new im;u=true;c=n.b.Kc();c.Pb();while(c.Ob()){s=bM(MK(c.Pb()));if(u&&s-t>N9n){this.b.Fc(t);u=false}this.b.Fc(s)}u&&this.b.Fc(t)}function TFn(n){var e,t,r,i;mHn(n,n.n);if(n.d.c.length>0){xM(n.c);while(gDn(n,bG(K3(new nd(n.e.a)),125))>5;e&=31;if(r>=n.d){return n.e<0?(fHn(),Lle):(fHn(),Rle)}a=n.d-r;i=$nn(Ght,z1n,28,a+1,15,1);HOn(i,a,n.a,r,e);if(n.e<0){for(t=0;t0&&n.a[t]<<32-e!=0){for(t=0;t=0){return false}else{t=szn((yAn(),Vut),i,e);if(!t){return true}else{r=t.Ik();return(r>1||r==-1)&&wJ(Ktn(Vut,t))!=3}}}}else{return false}}function AFn(n,e,t,r){var i,a,c,u,s;u=vCn(bG(Yin((!e.b&&(e.b=new g_(B7e,e,4,7)),e.b),0),84));s=vCn(bG(Yin((!e.c&&(e.c=new g_(B7e,e,5,8)),e.c),0),84));if(H0(u)==H0(s)){return null}if(Oin(s,u)){return null}c=w0(e);if(c==t){return r}else{a=bG(fQ(n.a,c),10);if(a){i=a.e;if(i){return i}}}return null}function LFn(n,e,t){var r,i,a,c,u;t.Ug("Longest path to source layering",1);n.a=e;u=n.a.a;n.b=$nn(Ght,z1n,28,u.c.length,15,1);r=0;for(c=new nd(u);c.a0){r[0]+=n.d;u-=r[0]}if(r[2]>0){r[2]+=n.d;u-=r[2]}c=t.Math.max(0,u);r[1]=t.Math.max(r[1],u);e7(n,ipe,a.c+i.b+r[0]-(r[1]-u)/2,r);if(e==ipe){n.c.b=c;n.c.c=a.c+i.b+(c-u)/2}}function XFn(){this.c=$nn(zht,C0n,28,(UQn(),zfn(fT(e9e,1),X4n,64,0,[Z8e,D8e,$8e,Y8e,n9e])).length,15,1);this.b=$nn(zht,C0n,28,zfn(fT(e9e,1),X4n,64,0,[Z8e,D8e,$8e,Y8e,n9e]).length,15,1);this.a=$nn(zht,C0n,28,zfn(fT(e9e,1),X4n,64,0,[Z8e,D8e,$8e,Y8e,n9e]).length,15,1);UP(this.c,y0n);UP(this.b,M0n);UP(this.a,M0n)}function VFn(n,e,t){var r,i,a,c;if(e<=t){i=e;a=t}else{i=t;a=e}r=0;if(n.b==null){n.b=$nn(Ght,z1n,28,2,15,1);n.b[0]=i;n.b[1]=a;n.c=true}else{r=n.b.length;if(n.b[r-1]+1==i){n.b[r-1]=a;return}c=$nn(Ght,z1n,28,r+2,15,1);QGn(n.b,0,c,0,r);n.b=c;n.b[r-1]>=i&&(n.c=false,n.a=false);n.b[r++]=i;n.b[r]=a;n.c||Mxn(n)}}function zFn(n,e,t){var r,i,a,c,u,s,o;o=e.d;n.a=new H7(o.c.length);n.c=new rm;for(u=new nd(o);u.a=0?n.Lh(o,false,true):r$n(n,t,false),61));n:for(a=h.Kc();a.Ob();){i=bG(a.Pb(),58);for(f=0;f1){u_n(i,i.i-1)}}return r}}function r_n(n,e){var t,r,i,a,c,u,s;t=new KD;for(a=new nd(n.b);a.an.d[c.p]){t+=t9(n.b,a);x6(n.a,Bwn(a))}}while(!RM(n.a)){vrn(n.b,bG(Bz(n.a),17).a)}}return t}function a_n(n){var e,t,r,i,a,c,u,s,o;n.a=new BF;o=0;i=0;for(r=new nd(n.i.b);r.as.d&&(h=s.d+s.a+f)}}r.c.d=h;e.a.zc(r,e);o=t.Math.max(o,r.c.d+r.c.a)}return o}function o_n(){o_n=O;k$e=new hI("COMMENTS",0);M$e=new hI("EXTERNAL_PORTS",1);T$e=new hI("HYPEREDGES",2);j$e=new hI("HYPERNODES",3);E$e=new hI("NON_FREE_PORTS",4);S$e=new hI("NORTH_SOUTH_PORTS",5);C$e=new hI(K6n,6);m$e=new hI("CENTER_LABELS",7);y$e=new hI("END_LABELS",8);P$e=new hI("PARTITIONS",9)}function f_n(n,e,t,r,i){if(r<0){r=JOn(n,i,zfn(fT(vle,1),XZn,2,6,[D1n,x1n,R1n,K1n,F1n,_1n,B1n,H1n,U1n,G1n,q1n,X1n]),e);r<0&&(r=JOn(n,i,zfn(fT(vle,1),XZn,2,6,["Jan","Feb","Mar","Apr",F1n,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e));if(r<0){return false}t.k=r;return true}else if(r>0){t.k=r-1;return true}return false}function h_n(n,e,t,r,i){if(r<0){r=JOn(n,i,zfn(fT(vle,1),XZn,2,6,[D1n,x1n,R1n,K1n,F1n,_1n,B1n,H1n,U1n,G1n,q1n,X1n]),e);r<0&&(r=JOn(n,i,zfn(fT(vle,1),XZn,2,6,["Jan","Feb","Mar","Apr",F1n,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),e));if(r<0){return false}t.k=r;return true}else if(r>0){t.k=r-1;return true}return false}function l_n(n,e,t,r,i,a){var c,u,s,o;u=32;if(r<0){if(e[0]>=n.length){return false}u=ZJ(n,e[0]);if(u!=43&&u!=45){return false}++e[0];r=HNn(n,e);if(r<0){return false}u==45&&(r=-r)}if(u==32&&e[0]-t==2&&i.b==2){s=new eS;o=s.q.getFullYear()-V1n+V1n-80;c=o%100;a.a=r==c;r+=(o/100|0)*100+(r=0?Hpn(n):dW(Hpn(Ptn(n))));Hle[e]=XA(KV(n,e),0)?Hpn(KV(n,e)):dW(Hpn(Ptn(KV(n,e))));n=Kgn(n,5)}for(;e=f&&(o=i)}!!o&&(h=t.Math.max(h,o.a.o.a));if(h>b){l=f;b=h}}return l}function j_n(n){var e,t,r,i,a,c,u;a=new Vj(bG(nQ(new _n),50));u=M0n;for(t=new nd(n.d);t.aK7n?g$(o,n.b):i<=K7n&&i>F7n?g$(o,n.d):i<=F7n&&i>_7n?g$(o,n.c):i<=_7n&&g$(o,n.a);c=C_n(n,o,c)}return a}function I_n(n,e,t,r){var i,a,c,u,s,o;i=(r.c+r.a)/2;XY(e.j);hq(e.j,i);XY(t.e);hq(t.e,i);o=new dj;for(u=new nd(n.f);u.a1;if(u){r=new PO(i,t.b);hq(e.a,r)}kcn(e.a,zfn(fT(D3e,1),XZn,8,0,[l,h]))}function D_n(n,e,t){var r,i;if(e=48;t--){Gft[t]=t-48<<24>>24}for(r=70;r>=65;r--){Gft[r]=r-65+10<<24>>24}for(i=102;i>=97;i--){Gft[i]=i-97+10<<24>>24}for(a=0;a<10;a++)qft[a]=48+a&$1n;for(n=10;n<=15;n++)qft[n]=65+n-10&$1n}function K_n(n,e){e.Ug("Process graph bounds",1);Ehn(n,(DQn(),Dze),FI(Csn(iY(new gX(null,new d3(n.b,16)),new Uc))));Ehn(n,Rze,FI(Csn(iY(new gX(null,new d3(n.b,16)),new Gc))));Ehn(n,$ze,FI(Psn(iY(new gX(null,new d3(n.b,16)),new qc))));Ehn(n,xze,FI(Psn(iY(new gX(null,new d3(n.b,16)),new Xc))));e.Vg()}function F_n(n){var e,r,i,a,c;a=bG(lIn(n,(IYn(),r_e)),21);c=bG(lIn(n,c_e),21);r=new PO(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a);e=new uN(r);if(a.Hc((emn(),f9e))){i=bG(lIn(n,a_e),8);if(c.Hc((hUn(),p9e))){i.a<=0&&(i.a=20);i.b<=0&&(i.b=20)}e.a=t.Math.max(r.a,i.a);e.b=t.Math.max(r.b,i.b)}lM(yK(lIn(n,i_e)))||fXn(n,r,e)}function __n(n,e){var t,r,i,a;for(a=_gn(e,(UQn(),Y8e)).Kc();a.Ob();){r=bG(a.Pb(),12);t=bG(lIn(r,(WYn(),NDe)),10);!!t&&HKn(BS(_S(HS(FS(new bk,0),.1),n.i[e.p].d),n.i[t.p].a))}for(i=_gn(e,D8e).Kc();i.Ob();){r=bG(i.Pb(),12);t=bG(lIn(r,(WYn(),NDe)),10);!!t&&HKn(BS(_S(HS(FS(new bk,0),.1),n.i[t.p].d),n.i[e.p].a))}}function B_n(n){var e,t,r,i,a,c;if(!n.c){c=new Eo;e=Cit;a=e.a.zc(n,e);if(a==null){for(r=new _D(Y5(n));r.e!=r.i.gc();){t=bG(iyn(r),89);i=PGn(t);G$(i,90)&&NW(c,B_n(bG(i,29)));cen(c,t)}e.a.Bc(n)!=null;e.a.gc()==0&&undefined}spn(c);vbn(c);n.c=new jL((bG(Yin(yZ((cQ(),_rt).o),15),19),c.i),c.g);S9(n).b&=-33}return n.c}function H_n(n){var e;if(n.c!=10)throw dm(new NM(oZn((c$(),nre))));e=n.a;switch(e){case 110:e=10;break;case 114:e=13;break;case 116:e=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw dm(new NM(oZn((c$(),Ore))))}return e}function U_n(n){var e,t,r,i,a;if(n.l==0&&n.m==0&&n.h==0){return"0"}if(n.h==l0n&&n.m==0&&n.l==0){return"-9223372036854775808"}if(n.h>>19!=0){return"-"+U_n(yhn(n))}t=n;r="";while(!(t.l==0&&t.m==0&&t.h==0)){i=q9(d0n);t=rzn(t,i,true);e=""+Cj(She);if(!(t.l==0&&t.m==0&&t.h==0)){a=9-e.length;for(;a>0;a--){e="0"+e}}r=e+r}return r}function G_n(n){var e,t,r,i,a,c,u;e=false;t=0;for(i=new nd(n.d.b);i.a=n.a){return-1}if(!qPn(e,r)){return-1}if(L6(bG(i.Kb(e),20))){return 1}a=0;for(u=bG(i.Kb(e),20).Kc();u.Ob();){c=bG(u.Pb(),18);o=c.c.i==e?c.d.i:c.c.i;s=z_n(n,o,r,i);if(s==-1){return-1}a=t.Math.max(a,s);if(a>n.c-1){return-1}}return a+1}function W_n(n,e){var t,r,i,a,c,u;if(BA(e)===BA(n)){return true}if(!G$(e,15)){return false}r=bG(e,15);u=n.gc();if(r.gc()!=u){return false}c=r.Kc();if(n.Yi()){for(t=0;t0){n._j();if(e!=null){for(a=0;a>24}case 97:case 98:case 99:case 100:case 101:case 102:{return n-97+10<<24>>24}case 65:case 66:case 67:case 68:case 69:case 70:{return n-65+10<<24>>24}default:{throw dm(new iT("Invalid hexadecimal"))}}}function nBn(){nBn=O;Uve=new oC("SPIRAL",0);Kve=new oC("LINE_BY_LINE",1);Fve=new oC("MANHATTAN",2);Rve=new oC("JITTER",3);Bve=new oC("QUADRANTS_LINE_BY_LINE",4);Hve=new oC("QUADRANTS_MANHATTAN",5);_ve=new oC("QUADRANTS_JITTER",6);xve=new oC("COMBINE_LINE_BY_LINE_MANHATTAN",7);Dve=new oC("COMBINE_JITTER_MANHATTAN",8)}function eBn(n,e,t,r){var i,a,c,u,s,o;s=MSn(n,t);o=MSn(e,t);i=false;while(!!s&&!!o){if(r||ujn(s,o,t)){c=MSn(s,t);u=MSn(o,t);$tn(e);$tn(n);a=s.c;Mzn(s,false);Mzn(o,false);if(t){Fjn(e,o.p,a);e.p=o.p;Fjn(n,s.p+1,a);n.p=s.p}else{Fjn(n,s.p,a);n.p=s.p;Fjn(e,o.p+1,a);e.p=o.p}h2(s,null);h2(o,null);s=c;o=u;i=true}else{break}}return i}function tBn(n){switch(n.g){case 0:return new bl;case 1:return new hl;case 3:return new sP;case 4:return new Aa;case 5:return new HF;case 6:return new ll;case 2:return new fl;case 7:return new il;case 8:return new cl;default:throw dm(new jM("No implementation is available for the layerer "+(n.f!=null?n.f:""+n.g)))}}function rBn(n,e,t,r){var i,a,c,u,s;i=false;a=false;for(u=new nd(r.j);u.a=e.length){throw dm(new kM("Greedy SwitchDecider: Free layer not in graph."))}this.c=e[n];this.e=new H_(r);xun(this.e,this.c,(UQn(),n9e));this.i=new H_(r);xun(this.i,this.c,$8e);this.f=new wX(this.c);this.a=!a&&i.i&&!i.s&&this.c[0].k==(YIn(),nEe);this.a&&oAn(this,n,e.length)}function sBn(n,e){var t,r,i,a,c,u;a=!n.B.Hc((hUn(),g9e));c=n.B.Hc(m9e);n.a=new bpn(c,a,n.c);!!n.n&&nZ(n.a.n,n.n);aM(n.g,(ran(),ipe),n.a);if(!e){r=new ckn(1,a,n.c);r.n.a=n.k;zz(n.p,(UQn(),D8e),r);i=new ckn(1,a,n.c);i.n.d=n.k;zz(n.p,Y8e,i);u=new ckn(0,a,n.c);u.n.c=n.k;zz(n.p,n9e,u);t=new ckn(0,a,n.c);t.n.b=n.k;zz(n.p,$8e,t)}}function oBn(n){var e,t,r;e=bG(lIn(n.d,(IYn(),gFe)),223);switch(e.g){case 2:t=zJn(n);break;case 3:t=(r=new im,ES(tY(rY(wrn(wrn(new gX(null,new d3(n.d.b,16)),new Di),new xi),new Ri),new Mi),new Kg(r)),r);break;default:throw dm(new EM("Compaction not supported for "+e+" edges."))}BVn(n,t);Y8(new Rw(n.g),new xg(n))}function fBn(n,e){var t,r,i,a,c,u,s;e.Ug("Process directions",1);t=bG(lIn(n,(eqn(),wWe)),88);if(t!=(Bdn(),s5e)){for(i=Gkn(n.b,0);i.b!=i.d.c;){r=bG($6(i),40);u=bG(lIn(r,(DQn(),Yze)),17).a;s=bG(lIn(r,Zze),17).a;switch(t.g){case 4:s*=-1;break;case 1:a=u;u=s;s=a;break;case 2:c=u;u=-s;s=c}Ehn(r,Yze,Bwn(u));Ehn(r,Zze,Bwn(s))}}e.Vg()}function hBn(n,e){var t;t=new re;!!e&&Yon(t,bG(fQ(n.a,F7e),96));G$(e,422)&&Yon(t,bG(fQ(n.a,_7e),96));if(G$(e,366)){Yon(t,bG(fQ(n.a,unt),96));return t}G$(e,84)&&Yon(t,bG(fQ(n.a,B7e),96));if(G$(e,207)){Yon(t,bG(fQ(n.a,snt),96));return t}if(G$(e,193)){Yon(t,bG(fQ(n.a,ont),96));return t}G$(e,326)&&Yon(t,bG(fQ(n.a,H7e),96));return t}function lBn(n){var e,t,r,i,a,c,u,s;s=new f9;for(u=new nd(n.a);u.a0&&e=0){return false}else{e.p=t.b;ED(t.e,e)}if(i==(YIn(),tEe)||i==iEe){for(c=new nd(e.j);c.an.d[u.p]){t+=t9(n.b,a);x6(n.a,Bwn(a))}}else{++c}}t+=n.b.d*c;while(!RM(n.a)){vrn(n.b,bG(Bz(n.a),17).a)}}return t}function FBn(n){var e,t,r,i,a,c;a=0;e=pEn(n);!!e.kk()&&(a|=4);(n.Bb&sie)!=0&&(a|=2);if(G$(n,102)){t=bG(n,19);i=vMn(t);(t.Bb&Wee)!=0&&(a|=32);if(i){sQ(U0(i));a|=8;c=i.t;(c>1||c==-1)&&(a|=16);(i.Bb&Wee)!=0&&(a|=64)}(t.Bb&S0n)!=0&&(a|=oie);a|=b1n}else{if(G$(e,469)){a|=512}else{r=e.kk();!!r&&(r.i&1)!=0&&(a|=256)}}(n.Bb&512)!=0&&(a|=128);return a}function _Bn(n,e){var t;if(n.f==Gst){t=wJ(Ktn((yAn(),Vut),e));return n.e?t==4&&e!=(T$n(),not)&&e!=(T$n(),Jst)&&e!=(T$n(),Yst)&&e!=(T$n(),Zst):t==2}if(!!n.d&&(n.d.Hc(e)||n.d.Hc(q3(Ktn((yAn(),Vut),e)))||n.d.Hc(szn((yAn(),Vut),n.b,e)))){return true}if(n.f){if(nKn((yAn(),n.f),VJ(Ktn(Vut,e)))){t=wJ(Ktn(Vut,e));return n.e?t==4:t==2}}return false}function BBn(n){var e,t,r,i,a,c,u,s,o,f,h,l,b;l=-1;b=0;for(o=n,f=0,h=o.length;f0&&++b}}}++l}return b}function HBn(n,e,r,i){var a,c,u,s,o,f,h,l;u=bG(YDn(r,(JYn(),I6e)),8);o=u.a;h=u.b+n;a=t.Math.atan2(h,o);a<0&&(a+=f7n);a+=e;a>f7n&&(a-=f7n);s=bG(YDn(i,I6e),8);f=s.a;l=s.b+n;c=t.Math.atan2(l,f);c<0&&(c+=f7n);c+=e;c>f7n&&(c-=f7n);return r$(),lcn(1e-10),t.Math.abs(a-c)<=1e-10||a==c||isNaN(a)&&isNaN(c)?0:ac?1:UL(isNaN(a),isNaN(c))}function UBn(n){var e,t,r,i,a,c,u;u=new rm;for(r=new nd(n.a.b);r.a=n.o){throw dm(new $k)}u=e>>5;c=e&31;a=KV(1,MV(KV(c,1)));i?n.n[t][u]=A3(n.n[t][u],a):n.n[t][u]=O3(n.n[t][u],NG(a));a=KV(a,1);r?n.n[t][u]=A3(n.n[t][u],a):n.n[t][u]=O3(n.n[t][u],NG(a))}catch(s){s=Ofn(s);if(G$(s,333)){throw dm(new kM(l3n+n.o+"*"+n.p+b3n+e+MZn+t+w3n))}else throw dm(s)}}function zBn(n,e,t,r){var i,a,c,u,s,o,f,h,l;l=new Vj(new uv(n));for(u=zfn(fT(Yje,1),e6n,10,0,[e,t]),s=0,o=u.length;s0){r=(!n.n&&(n.n=new gz(unt,n,1,7)),bG(Yin(n.n,0),135)).a;!r||tL(tL((e.a+=' "',e),r),'"')}}else{tL(tL((e.a+=' "',e),t),'"')}tL(Kj(tL(Kj(tL(Kj(tL(Kj((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")");return e.a}function ZBn(n){var e,t,r;if((n.Db&64)!=0)return oOn(n);e=new vx(_ee);t=n.k;if(!t){!n.n&&(n.n=new gz(unt,n,1,7));if(n.n.i>0){r=(!n.n&&(n.n=new gz(unt,n,1,7)),bG(Yin(n.n,0),135)).a;!r||tL(tL((e.a+=' "',e),r),'"')}}else{tL(tL((e.a+=' "',e),t),'"')}tL(Kj(tL(Kj(tL(Kj(tL(Kj((e.a+=" (",e),n.i),","),n.j)," | "),n.g),","),n.f),")");return e.a}function nHn(n,e){var t,r,i,a,c;e==(Aln(),OHe)&&qAn(bG(r7(n.a,(yPn(),LAe)),15));for(i=bG(r7(n.a,(yPn(),LAe)),15).Kc();i.Ob();){r=bG(i.Pb(),105);t=bG(Yq(r.j,0),113).d.j;a=new iB(r.j);g$(a,new Gi);switch(e.g){case 2:CCn(n,a,t,(yun(),GAe),1);break;case 1:case 0:c=$Rn(a);CCn(n,new N2(a,0,c),t,(yun(),GAe),0);CCn(n,new N2(a,c,a.c.length),t,GAe,1)}}}function eHn(n,e){var t,r,i,a,c,u,s;if(e==null||e.length==0){return null}i=bG(z1(n.a,e),143);if(!i){for(r=(u=new Gw(n.b).a.vc().Kc(),new qw(u));r.a.Ob();){t=(a=bG(r.a.Pb(),44),bG(a.md(),143));c=t.c;s=e.length;if(T_(c.substr(c.length-s,s),e)&&(e.length==c.length||ZJ(c,c.length-e.length-1)==46)){if(i){return null}i=t}}!!i&&o2(n.a,e,i)}return i}function tHn(n,e){var t,r,i,a;t=new Xn;r=bG(v8(rY(new gX(null,new d3(n.f,16)),t),ytn(new nn,new en,new on,new fn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Nde),Lde]))),21);i=r.gc();r=bG(v8(rY(new gX(null,new d3(e.f,16)),t),ytn(new nn,new en,new on,new fn,zfn(fT($de,1),g1n,108,0,[Nde,Lde]))),21);a=r.gc();if(ii.p){KLn(a,Y8e);if(a.d){u=a.o.b;e=a.a.b;a.a.b=u-e}}else if(a.j==Y8e&&i.p>n.p){KLn(a,D8e);if(a.d){u=a.o.b;e=a.a.b;a.a.b=-(u-e)}}break}}return i}function aHn(n,e,t,r,i){var a,c,u,s,o,f,h;if(!(G$(e,207)||G$(e,366)||G$(e,193))){throw dm(new jM("Method only works for ElkNode-, ElkLabel and ElkPort-objects."))}c=n.a/2;s=e.i+r-c;f=e.j+i-c;o=s+e.g+n.a;h=f+e.f+n.a;a=new zk;hq(a,new PO(s,f));hq(a,new PO(s,h));hq(a,new PO(o,h));hq(a,new PO(o,f));u=new MDn(a);Yon(u,e);t&&jJ(n.b,e,u);return u}function cHn(n,e,t){var r,i,a,c,u,s,o,f,h,l;a=new PO(e,t);for(f=new nd(n.a);f.a1;if(u){r=new PO(i,t.b);hq(e.a,r)}kcn(e.a,zfn(fT(D3e,1),XZn,8,0,[l,h]))}function CHn(){CHn=O;cHe=new kI(G4n,0);eHe=new kI("NIKOLOV",1);iHe=new kI("NIKOLOV_PIXEL",2);tHe=new kI("NIKOLOV_IMPROVED",3);rHe=new kI("NIKOLOV_IMPROVED_PIXEL",4);YBe=new kI("DUMMYNODE_PERCENTAGE",5);aHe=new kI("NODECOUNT_PERCENTAGE",6);uHe=new kI("NO_BOUNDARY",7);ZBe=new kI("MODEL_ORDER_LEFT_TO_RIGHT",8);nHe=new kI("MODEL_ORDER_RIGHT_TO_LEFT",9)}function IHn(n){var e,t,r,i,a;r=n.length;e=new ZM;a=0;while(a=40;c&&$Gn(n);sVn(n);TFn(n);t=sgn(n);r=0;while(!!t&&r0&&hq(n.f,a)}else{n.c[c]-=o+1;n.c[c]<=0&&n.a[c]>0&&hq(n.e,a)}}}}}function sUn(n,e,t,r){var i,a,c,u,s,o,f;s=new PO(t,r);r_(s,bG(lIn(e,(DQn(),Cze)),8));for(f=Gkn(e.b,0);f.b!=f.d.c;){o=bG($6(f),40);t_(o.e,s);hq(n.b,o)}for(u=bG(v8(q0(new gX(null,new d3(e.a,16))),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)]))),15).Kc();u.Ob();){c=bG(u.Pb(),65);for(a=Gkn(c.a,0);a.b!=a.d.c;){i=bG($6(a),8);i.a+=s.a;i.b+=s.b}hq(n.a,c)}}function oUn(n,e){var t,r,i,a;if(0<(G$(n,16)?bG(n,16).gc():B5(n.Kc()))){i=e;if(1=0&&sa*2){f=new tan(h);o=OX(c)/IX(c);s=UJn(f,e,new _k,t,r,i,o);t_(kL(f.e),s);h.c.length=0;a=0;Tm(h.c,f);Tm(h.c,c);a=OX(f)*IX(f)+OX(c)*IX(c)}else{Tm(h.c,c);a+=OX(c)*IX(c)}}return h}function gUn(n,e){var t,r,i,a,c,u;u=bG(lIn(e,(IYn(),m_e)),101);if(!(u==(FPn(),k8e)||u==m8e)){return}i=new PO(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a).b;for(c=new nd(n.a);c.at?e:t;o<=h;++o){if(o==t){u=r++}else{a=i[o];f=w.am(a.Lk());o==e&&(s=o==h&&!f?r-1:r);f&&++r}}l=bG(Ydn(n,e,t),76);u!=s&&rk(n,new men(n.e,7,c,Bwn(u),b.md(),s));return l}}}else{return bG(VNn(n,e,t),76)}return bG(Ydn(n,e,t),76)}function pUn(n,e){var t,r,i,a,c,u,s;e.Ug("Port order processing",1);s=bG(lIn(n,(IYn(),E_e)),430);for(r=new nd(n.b);r.a=0){u=gjn(n,c);if(u){o<22?(s.l|=1<>>1;c.m=f>>>1|(h&1)<<21;c.l=l>>>1|(f&1)<<21;--o}t&&rln(s);if(a){if(r){She=yhn(n);i&&(She=Cfn(She,(crn(),Ihe)))}else{She=M$(n.l,n.m,n.h)}}return s}function MUn(n,e){var t,r,i,a,c,u,s,o,f,h;o=n.e[e.c.p][e.p]+1;s=e.c.a.c.length+1;for(u=new nd(n.a);u.a0&&(w3(0,n.length),n.charCodeAt(0)==45||(w3(0,n.length),n.charCodeAt(0)==43))?1:0;for(r=c;rt){throw dm(new iT(k0n+n+'"'))}return u}function jUn(n){var e,r,i,a,c,u,s;u=new vS;for(c=new nd(n.a);c.a1)&&e==1&&bG(n.a[n.b],10).k==(YIn(),eEe)){Wqn(bG(n.a[n.b],10),(xjn(),z5e))}else if(r&&(!t||(n.c-n.b&n.a.length-1)>1)&&e==1&&bG(n.a[n.c-1&n.a.length-1],10).k==(YIn(),eEe)){Wqn(bG(n.a[n.c-1&n.a.length-1],10),(xjn(),W5e))}else if((n.c-n.b&n.a.length-1)==2){Wqn(bG(Hhn(n),10),(xjn(),z5e));Wqn(bG(Hhn(n),10),W5e)}else{Lxn(n,i)}Q5(n)}function IUn(n,e,r){var i,a,c,u,s;c=0;for(a=new _D((!n.a&&(n.a=new gz(snt,n,10,11)),n.a));a.e!=a.i.gc();){i=bG(iyn(a),27);u="";(!i.n&&(i.n=new gz(unt,i,1,7)),i.n).i==0||(u=bG(Yin((!i.n&&(i.n=new gz(unt,i,1,7)),i.n),0),135).a);s=new mln(c++,e,u);Yon(s,i);Ehn(s,(DQn(),qze),i);s.e.b=i.j+i.f/2;s.f.a=t.Math.max(i.g,1);s.e.a=i.i+i.g/2;s.f.b=t.Math.max(i.f,1);hq(e.b,s);ZAn(r.f,i,s)}}function OUn(n){var e,t,r,i,a;r=bG(lIn(n,(WYn(),EDe)),27);a=bG(YDn(r,(IYn(),r_e)),181).Hc((emn(),b9e));if(!n.e){i=bG(lIn(n,oDe),21);e=new PO(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a);if(i.Hc((o_n(),M$e))){Pyn(r,m_e,(FPn(),m8e));iJn(r,e.a,e.b,false,true)}else{lM(yK(YDn(r,i_e)))||iJn(r,e.a,e.b,true,true)}}a?Pyn(r,r_e,ygn(b9e)):Pyn(r,r_e,(t=bG(Pj(w9e),9),new aB(t,bG(PF(t,t.length),9),0)))}function AUn(n,e,t){var r,i,a,c;if(e[0]>=n.length){t.o=0;return true}switch(ZJ(n,e[0])){case 43:i=1;break;case 45:i=-1;break;default:t.o=0;return true}++e[0];a=e[0];c=HNn(n,e);if(c==0&&e[0]==a){return false}if(e[0]u){u=i;f.c.length=0}i==u&&ED(f,new nA(t.c.i,t))}dZ();g$(f,n.c);WX(n.b,s.p,f)}}}function DUn(n,e){var t,r,i,a,c,u,s,o,f;for(c=new nd(e.b);c.au){u=i;f.c.length=0}i==u&&ED(f,new nA(t.d.i,t))}dZ();g$(f,n.c);WX(n.f,s.p,f)}}}function xUn(n,e){var t,r,i,a,c,u,s,o;o=yK(lIn(e,(eqn(),LWe)));if(o==null||(cJ(o),o)){O$n(n,e);i=new im;for(s=Gkn(e.b,0);s.b!=s.d.c;){c=bG($6(s),40);t=SAn(n,c,null);if(t){Yon(t,e);Tm(i.c,t)}}n.a=null;n.b=null;if(i.c.length>1){for(r=new nd(i);r.a=0&&u!=t){a=new vz(n,1,u,c,null);!r?r=a:r.nj(a)}if(t>=0){a=new vz(n,1,t,u==t?c:null,e);!r?r=a:r.nj(a)}}return r}function _Un(n){var e,t,r;if(n.b==null){r=new YM;if(n.i!=null){ZA(r,n.i);r.a+=":"}if((n.f&256)!=0){if((n.f&256)!=0&&n.a!=null){hY(n.i)||(r.a+="//",r);ZA(r,n.a)}if(n.d!=null){r.a+="/";ZA(r,n.d)}(n.f&16)!=0&&(r.a+="/",r);for(e=0,t=n.j.length;el){return false}h=(s=bXn(r,l,false),s.a);if(f+u+h<=e.b){ken(t,a-t.s);t.c=true;ken(r,a-t.s);lMn(r,t.s,t.t+t.d+u);r.k=true;Wsn(t.q,r);b=true;if(i){gcn(e,r);r.j=e;if(n.c.length>c){bEn((b3(c,n.c.length),bG(n.c[c],186)),r);(b3(c,n.c.length),bG(n.c[c],186)).a.c.length==0&&s7(n,c)}}}return b}function VUn(n,e){var t,r,i,a,c,u;e.Ug("Partition midprocessing",1);i=new U1;ES(tY(new gX(null,new d3(n.a,16)),new kr),new Eg(i));if(i.d==0){return}u=bG(v8(g3((a=i.i,new gX(null,(!a?i.i=new HD(i,i.c):a).Nc()))),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)]))),15);r=u.Kc();t=bG(r.Pb(),17);while(r.Ob()){c=bG(r.Pb(),17);HRn(bG(r7(i,t),21),bG(r7(i,c),21));t=c}e.Vg()}function zUn(n,e,t){var r,i,a,c,u,s,o,f;if(e.p==0){e.p=1;c=t;if(!c){i=new im;a=(r=bG(Pj(e9e),9),new aB(r,bG(PF(r,r.length),9),0));c=new nA(i,a)}bG(c.a,15).Fc(e);e.k==(YIn(),nEe)&&bG(c.b,21).Fc(bG(lIn(e,(WYn(),cDe)),64));for(s=new nd(e.j);s.a0){i=bG(n.Ab.g,2033);if(e==null){for(a=0;ar.s&&sc){return UQn(),$8e}break;case 4:case 3:if(f<0){return UQn(),D8e}else if(f+t>a){return UQn(),Y8e}}s=(o+u/2)/c;r=(f+t/2)/a;return s+r<=1&&s-r<=0?(UQn(),n9e):s+r>=1&&s-r>=0?(UQn(),$8e):r<.5?(UQn(),D8e):(UQn(),Y8e)}function aGn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d;t=false;f=bM(MK(lIn(e,(IYn(),V_e))));w=M1n*f;for(i=new nd(e.b);i.as+w){d=h.g+l.g;l.a=(l.g*l.a+h.g*h.a)/d;l.g=d;h.f=l;t=true}}a=u;h=l}}return t}function cGn(n,e,t,r,i,a,c){var u,s,o,f,h,l;l=new fN;for(o=e.Kc();o.Ob();){u=bG(o.Pb(),853);for(h=new nd(u.Rf());h.a0){if(s.a){f=s.b.Mf().b;if(a>f){if(n.v||s.c.d.c.length==1){u=(a-f)/2;s.d.d=u;s.d.a=u}else{r=bG(Yq(s.c.d,0),187).Mf().b;i=(r-f)/2;s.d.d=t.Math.max(0,i);s.d.a=a-i-f}}}else{s.d.a=n.t+a}}else if(fz(n.u)){c=OCn(s.b);c.d<0&&(s.d.d=-c.d);c.d+c.a>s.b.Mf().b&&(s.d.a=c.d+c.a-s.b.Mf().b)}}}function oGn(){oGn=O;Jye=new qN((JYn(),O6e),Bwn(1));rMe=new qN(X6e,80);tMe=new qN(F6e,5);Rye=new qN(g4e,r4n);Yye=new qN(A6e,Bwn(1));eMe=new qN($6e,(Qx(),true));zye=new NN(50);Vye=new qN(c6e,zye);Fye=B4e;Wye=k6e;Kye=new qN(C4e,false);Xye=a6e;Gye=Z4e;qye=t6e;Uye=J4e;Hye=W4e;Qye=j6e;Bye=(lOn(),Eye);iMe=Oye;_ye=jye;Zye=Pye;nMe=Iye;uMe=Z6e;oMe=r5e;cMe=Y6e;aMe=J6e;sMe=($wn(),P9e);new qN(n5e,sMe)}function fGn(n,e){var t;switch(Prn(n)){case 6:return HA(e);case 7:return GA(e);case 8:return UA(e);case 3:return Array.isArray(e)&&(t=Prn(e),!(t>=14&&t<=16));case 11:return e!=null&&typeof e===vZn;case 12:return e!=null&&(typeof e===bZn||typeof e==vZn);case 0:return Oyn(e,n.__elementTypeId$);case 2:return Kz(e)&&!(e.Tm===I);case 1:return Kz(e)&&!(e.Tm===I)||Oyn(e,n.__elementTypeId$);default:return true}}function hGn(n){var e,r,i,a;i=n.o;ZK();if(n.A.dc()||bdn(n.A,ame)){a=i.a}else{n.D?a=t.Math.max(i.a,yNn(n.f)):a=yNn(n.f);if(n.A.Hc((emn(),h9e))&&!n.B.Hc((hUn(),y9e))){a=t.Math.max(a,yNn(bG(xJ(n.p,(UQn(),D8e)),252)));a=t.Math.max(a,yNn(bG(xJ(n.p,Y8e),252)))}e=gon(n);!!e&&(a=t.Math.max(a,e.a))}lM(yK(n.e.Tf().of((JYn(),Z4e))))?i.a=t.Math.max(i.a,a):i.a=a;r=n.f.i;r.c=0;r.b=a;rqn(n.f)}function lGn(n,e){var r,i,a,c;i=t.Math.min(t.Math.abs(n.c-(e.c+e.b)),t.Math.abs(n.c+n.b-e.c));c=t.Math.min(t.Math.abs(n.d-(e.d+e.a)),t.Math.abs(n.d+n.a-e.d));r=t.Math.abs(n.c+n.b/2-(e.c+e.b/2));if(r>n.b/2+e.b/2){return 1}a=t.Math.abs(n.d+n.a/2-(e.d+e.a/2));if(a>n.a/2+e.a/2){return 1}if(r==0&&a==0){return 0}if(r==0){return c/a+1}if(a==0){return i/r+1}return t.Math.min(i/r,c/a)+1}function bGn(n,e){var t,r,i,a,c,u,s;a=0;u=0;s=0;for(i=new nd(n.f.e);i.a0&&n.d!=(trn(),HMe)&&(u+=c*(r.d.a+n.a[e.a][r.a]*(e.d.a-r.d.a)/t));t>0&&n.d!=(trn(),_Me)&&(s+=c*(r.d.b+n.a[e.a][r.a]*(e.d.b-r.d.b)/t))}switch(n.d.g){case 1:return new PO(u/a,e.d.b);case 2:return new PO(e.d.a,s/a);default:return new PO(u/a,s/a)}}function wGn(n){var e,t,r,i,a,c;t=(!n.a&&(n.a=new PD(K7e,n,5)),n.a).i+2;c=new H7(t);ED(c,new PO(n.j,n.k));ES(new gX(null,(!n.a&&(n.a=new PD(K7e,n,5)),new d3(n.a,16))),new Zv(c));ED(c,new PO(n.b,n.c));e=1;while(e0){dhn(s,false,(Bdn(),o5e));dhn(s,true,f5e)}Lin(e.g,new zC(n,t));jJ(n.g,e,t)}function vGn(){vGn=O;var n;ole=zfn(fT(Ght,1),z1n,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]);fle=$nn(Ght,z1n,28,37,15,1);hle=zfn(fT(Ght,1),z1n,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]);lle=$nn(Xht,j0n,28,37,14,1);for(n=2;n<=36;n++){fle[n]=c0(t.Math.pow(n,ole[n]));lle[n]=pSn(JZn,fle[n])}}function pGn(n){var e;if((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a).i!=1){throw dm(new jM(See+(!n.a&&(n.a=new gz(U7e,n,6,6)),n.a).i))}e=new zk;!!Afn(bG(Yin((!n.b&&(n.b=new g_(B7e,n,4,7)),n.b),0),84))&&esn(e,MYn(n,Afn(bG(Yin((!n.b&&(n.b=new g_(B7e,n,4,7)),n.b),0),84)),false));!!Afn(bG(Yin((!n.c&&(n.c=new g_(B7e,n,5,8)),n.c),0),84))&&esn(e,MYn(n,Afn(bG(Yin((!n.c&&(n.c=new g_(B7e,n,5,8)),n.c),0),84)),true));return e}function mGn(n,e){var t,r,i,a,c;e.d?i=n.a.c==(p0(),Cqe)?Qgn(e.b):Jgn(e.b):i=n.a.c==(p0(),Pqe)?Qgn(e.b):Jgn(e.b);a=false;for(r=new GV(sx(i.a.Kc(),new d));dDn(r);){t=bG(K9(r),18);c=lM(n.a.f[n.a.g[e.b.p].p]);if(!c&&!j9(t)&&t.c.i.c==t.d.i.c){continue}if(lM(n.a.n[n.a.g[e.b.p].p])||lM(n.a.n[n.a.g[e.b.p].p])){continue}a=true;if(fS(n.b,n.a.g[jTn(t,e.b).p])){e.c=true;e.a=t;return e}}e.c=a;e.a=null;return e}function kGn(n,e,t){var r,i,a,c,u,s,o;r=t.gc();if(r==0){return false}else{if(n.Pj()){s=n.Qj();apn(n,e,t);c=r==1?n.Ij(3,null,t.Kc().Pb(),e,s):n.Ij(5,null,t,e,s);if(n.Mj()){u=r<100?null:new fj(r);a=e+r;for(i=e;i0){for(u=0;u>16==-15&&n.Cb.Yh()&&Ntn(new pen(n.Cb,9,13,t,n.c,Vyn(xtn(bG(n.Cb,62)),n)))}else if(G$(n.Cb,90)){if(n.Db>>16==-23&&n.Cb.Yh()){e=n.c;G$(e,90)||(e=(rZn(),nit));G$(t,90)||(t=(rZn(),nit));Ntn(new pen(n.Cb,9,10,t,e,Vyn(Y5(bG(n.Cb,29)),n)))}}}}return n.c}function CGn(n,e,t){var r,i,a,c,u,s,o,f,h;t.Ug("Hyperedge merging",1);NDn(n,e);s=new K4(e.b,0);while(s.b0;u=dvn(e,a);t?Lx(u.b,e):Lx(u.g,e);Obn(u).c.length==1&&(w8(r,u,r.c.b,r.c),true);i=new nA(a,e);x6(n.o,i);Ttn(n.e.a,a)}}function DGn(n,e){var r,i,a,c,u,s,o;i=t.Math.abs(xz(n.b).a-xz(e.b).a);s=t.Math.abs(xz(n.b).b-xz(e.b).b);a=0;o=0;r=1;u=1;if(i>n.b.b/2+e.b.b/2){a=t.Math.min(t.Math.abs(n.b.c-(e.b.c+e.b.b)),t.Math.abs(n.b.c+n.b.b-e.b.c));r=1-a/i}if(s>n.b.a/2+e.b.a/2){o=t.Math.min(t.Math.abs(n.b.d-(e.b.d+e.b.a)),t.Math.abs(n.b.d+n.b.a-e.b.d));u=1-o/s}c=t.Math.min(r,u);return(1-c)*t.Math.sqrt(i*i+s*s)}function xGn(n){var e,t,r,i;mQn(n,n.e,n.f,(v0(),zXe),true,n.c,n.i);mQn(n,n.e,n.f,zXe,false,n.c,n.i);mQn(n,n.e,n.f,WXe,true,n.c,n.i);mQn(n,n.e,n.f,WXe,false,n.c,n.i);SGn(n,n.c,n.e,n.f,n.i);r=new K4(n.i,0);while(r.b=65;t--){Hft[t]=t-65<<24>>24}for(r=122;r>=97;r--){Hft[r]=r-97+26<<24>>24}for(i=57;i>=48;i--){Hft[i]=i-48+52<<24>>24}Hft[43]=62;Hft[47]=63;for(a=0;a<=25;a++)Uft[a]=65+a&$1n;for(c=26,s=0;c<=51;++c,s++)Uft[c]=97+s&$1n;for(n=52,u=0;n<=61;++n,u++)Uft[n]=48+u&$1n;Uft[62]=43;Uft[63]=47}function FGn(n,e){var r,i,a,c,u,s;a=asn(n);s=asn(e);if(a==s){if(n.e==e.e&&n.a<54&&e.a<54){return n.fe.f?1:0}i=n.e-e.e;r=(n.d>0?n.d:t.Math.floor((n.a-1)*O0n)+1)-(e.d>0?e.d:t.Math.floor((e.a-1)*O0n)+1);if(r>i+1){return a}else if(r0&&(u=I5(u,qqn(i)));return Lmn(c,u)}}else return af){b=0;w+=o+e;o=0}cHn(u,b,w);r=t.Math.max(r,b+h.a);o=t.Math.max(o,h.b);b+=h.a+e}return new PO(r+e,w+o+e)}function HGn(n,e){var t,r,i,a,c,u,s;if(!d0(n)){throw dm(new EM(Eee))}r=d0(n);a=r.g;i=r.f;if(a<=0&&i<=0){return UQn(),Z8e}u=n.i;s=n.j;switch(e.g){case 2:case 1:if(u<0){return UQn(),n9e}else if(u+n.g>a){return UQn(),$8e}break;case 4:case 3:if(s<0){return UQn(),D8e}else if(s+n.f>i){return UQn(),Y8e}}c=(u+n.g/2)/a;t=(s+n.f/2)/i;return c+t<=1&&c-t<=0?(UQn(),n9e):c+t>=1&&c-t>=0?(UQn(),$8e):t<.5?(UQn(),D8e):(UQn(),Y8e)}function UGn(n,e,t,r,i){var a,c;a=Rgn(O3(e[0],A0n),O3(r[0],A0n));n[0]=MV(a);a=FV(a,32);if(t>=i){for(c=1;c0){i.b[c++]=0;i.b[c++]=a.b[0]-1}for(e=1;e0){ew(s,s.d-i.d);i.c==(q7(),kXe)&&Zb(s,s.a-i.d);s.d<=0&&s.i>0&&(w8(e,s,e.c.b,e.c),true)}}}for(a=new nd(n.f);a.a0){tw(u,u.i-i.d);i.c==(q7(),kXe)&&nw(u,u.b-i.d);u.i<=0&&u.d>0&&(w8(t,u,t.c.b,t.c),true)}}}}function WGn(n,e,t,r,i){var a,c,u,s,o,f,h,l,b;dZ();g$(n,new qs);c=lG(n);b=new im;l=new im;u=null;s=0;while(c.b!=0){a=bG(c.b==0?null:(PK(c.b!=0),Rin(c,c.a.a)),163);if(!u||OX(u)*IX(u)/21&&(s>OX(u)*IX(u)/2||c.b==0)){h=new tan(l);f=OX(u)/IX(u);o=UJn(h,e,new _k,t,r,i,f);t_(kL(h.e),o);u=h;Tm(b.c,h);s=0;l.c.length=0}}}Dfn(b,l);return b}function QGn(n,e,t,r,i){pS();var a,c,u,s,o,f,h;hW(n,"src");hW(t,"dest");h=Cbn(n);s=Cbn(t);SG((h.i&4)!=0,"srcType is not an array");SG((s.i&4)!=0,"destType is not an array");f=h.c;c=s.c;SG((f.i&1)!=0?f==c:(c.i&1)==0,"Array types don't match");Fhn(n,e,t,r,i);if((f.i&1)==0&&h!=s){o=Uan(n);a=Uan(t);if(BA(n)===BA(t)&&er;){bQ(a,u,o[--e])}}else{for(u=r+i;r0);r.a.Xb(r.c=--r.b);h>l+s&&RQ(r)}for(c=new nd(b);c.a0);r.a.Xb(r.c=--r.b)}}}}function ZGn(){eZn();var n,e,t,r,i,a;if(sht)return sht;n=(++Tht,new U3(4));CXn(n,EJn(ece,true));vWn(n,EJn("M",true));vWn(n,EJn("C",true));a=(++Tht,new U3(4));for(r=0;r<11;r++){VFn(a,r,r)}e=(++Tht,new U3(4));CXn(e,EJn("M",true));VFn(e,4448,4607);VFn(e,65438,65439);i=(++Tht,new e$(2));jVn(i,n);jVn(i,uht);t=(++Tht,new e$(2));t.Jm(NX(a,EJn("L",true)));t.Jm(e);t=(++Tht,new a8(3,t));t=(++Tht,new uW(i,t));sht=t;return sht}function nqn(n,e){var t,r,i,a,c,u,s,o;t=new RegExp(e,"g");s=$nn(vle,XZn,2,0,6,1);r=0;o=n;a=null;while(true){u=t.exec(o);if(u==null||o==""){s[r]=o;break}else{c=u.index;s[r]=(Unn(0,c,o.length),o.substr(0,c));o=o1(o,c+u[0].length,o.length);t.lastIndex=0;if(a==o){s[r]=(Unn(0,1,o.length),o.substr(0,1));o=(w3(1,o.length+1),o.substr(1))}a=o;++r}}if(n.length>0){i=s.length;while(i>0&&s[i-1]==""){--i}i0){l-=i[0]+n.c;i[0]+=n.c}i[2]>0&&(l-=i[2]+n.c);i[1]=t.Math.max(i[1],l);QX(n.a[1],r.c+e.b+i[0]-(i[1]-l)/2,i[1])}for(c=n.a,s=0,f=c.length;s0?(n.n.c.length-1)*n.i:0;for(i=new nd(n.n);i.a1){for(r=Gkn(i,0);r.b!=r.d.c;){t=bG($6(r),235);a=0;for(s=new nd(t.e);s.a0){e[0]+=n.c;l-=e[0]}e[2]>0&&(l-=e[2]+n.c);e[1]=t.Math.max(e[1],l);JX(n.a[1],i.d+r.d+e[0]-(e[1]-l)/2,e[1])}else{d=i.d+r.d;w=i.a-r.d-r.a;for(u=n.a,o=0,h=u.length;o0||Ggn(a.b.d,n.b.d+n.b.a)==0&&i.b<0||Ggn(a.b.d+a.b.a,n.b.d)==0&&i.b>0){s=0;break}}else{s=t.Math.min(s,RLn(n,a,i))}s=t.Math.min(s,bqn(n,c,s,i))}return s}function wqn(n,e){var t,r,i,a,c,u,s;if(n.b<2){throw dm(new jM("The vector chain must contain at least a source and a target point."))}i=(PK(n.b!=0),bG(n.a.a.c,8));PN(e,i.a,i.b);s=new iR((!e.a&&(e.a=new PD(K7e,e,5)),e.a));c=Gkn(n,1);while(c.a=0&&a!=t){throw dm(new jM(Gte))}}i=0;for(s=0;sbM(lD(c.g,c.d[0]).a)){PK(s.b>0);s.a.Xb(s.c=--s.b);MF(s,c);i=true}else if(!!u.e&&u.e.gc()>0){a=(!u.e&&(u.e=new im),u.e).Mc(e);o=(!u.e&&(u.e=new im),u.e).Mc(t);if(a||o){(!u.e&&(u.e=new im),u.e).Fc(c);++c.c}}}i||(Tm(r.c,c),true)}function pqn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v;h=n.a.i+n.a.g/2;l=n.a.i+n.a.g/2;w=e.i+e.g/2;g=e.j+e.f/2;u=new PO(w,g);o=bG(YDn(e,(JYn(),I6e)),8);o.a=o.a+h;o.b=o.b+l;a=(u.b-o.b)/(u.a-o.a);r=u.b-a*u.a;d=t.i+t.g/2;v=t.j+t.f/2;s=new PO(d,v);f=bG(YDn(t,I6e),8);f.a=f.a+h;f.b=f.b+l;c=(s.b-f.b)/(s.a-f.a);i=s.b-c*s.a;b=(r-i)/(c-a);if(o.a>>0,"0"+e.toString(16));r="\\x"+o1(t,t.length-2,t.length)}else if(n>=S0n){t=(e=n>>>0,"0"+e.toString(16));r="\\v"+o1(t,t.length-6,t.length)}else r=""+String.fromCharCode(n&$1n)}return r}function Cqn(n){var e,t,r;if(wN(bG(lIn(n,(IYn(),m_e)),101))){for(t=new nd(n.j);t.a=e.o&&t.f<=e.f||e.a*.5<=t.f&&e.a*1.5>=t.f){c=bG(Yq(e.n,e.n.c.length-1),209);if(c.e+c.d+t.g+i<=r&&(a=bG(Yq(e.n,e.n.c.length-1),209),a.f-n.f+t.f<=n.b||n.a.c.length==1)){svn(e,t);return true}else if(e.s+t.g<=r&&(e.t+e.d+t.f+i<=n.b||n.a.c.length==1)){ED(e.b,t);u=bG(Yq(e.n,e.n.c.length-1),209);ED(e.n,new f0(e.s,u.f+u.a+e.i,e.i));YMn(bG(Yq(e.n,e.n.c.length-1),209),t);aqn(e,t);return true}}return false}function Lqn(n,e,t){var r,i,a,c;if(n.Pj()){i=null;a=n.Qj();r=n.Ij(1,c=srn(n,e,t),t,e,a);if(n.Mj()&&!(n.Yi()&&c!=null?bdn(c,t):BA(c)===BA(t))){c!=null&&(i=n.Oj(c,i));i=n.Nj(t,i);n.Tj()&&(i=n.Wj(c,t,i));if(!i){n.Jj(r)}else{i.nj(r);i.oj()}}else{n.Tj()&&(i=n.Wj(c,t,i));if(!i){n.Jj(r)}else{i.nj(r);i.oj()}}return c}else{c=srn(n,e,t);if(n.Mj()&&!(n.Yi()&&c!=null?bdn(c,t):BA(c)===BA(t))){i=null;c!=null&&(i=n.Oj(c,null));i=n.Nj(t,i);!!i&&i.oj()}return c}}function Nqn(n,e){var t,r,i,a,c;e.Ug("Path-Like Graph Wrapping",1);if(n.b.c.length==0){e.Vg();return}i=new kDn(n);c=(i.i==null&&(i.i=hsn(i,new Ma)),bM(i.i)*i.f);t=c/(i.i==null&&(i.i=hsn(i,new Ma)),bM(i.i));if(i.b>t){e.Vg();return}switch(bG(lIn(n,(IYn(),oBe)),351).g){case 2:a=new Ea;break;case 0:a=new da;break;default:a=new Sa}r=a.og(n,i);if(!a.pg()){switch(bG(lIn(n,dBe),352).g){case 2:r=ULn(i,r);break;case 1:r=MPn(i,r)}}EVn(n,i,r);e.Vg()}function $qn(n,e){var r,i,a,c,u,s,o,f;e%=24;if(n.q.getHours()!=e){i=new t.Date(n.q.getTime());i.setDate(i.getDate()+1);s=n.q.getTimezoneOffset()-i.getTimezoneOffset();if(s>0){o=s/60|0;f=s%60;a=n.q.getDate();r=n.q.getHours();r+o>=24&&++a;c=new t.Date(n.q.getFullYear(),n.q.getMonth(),a,e+o,n.q.getMinutes()+f,n.q.getSeconds(),n.q.getMilliseconds());n.q.setTime(c.getTime())}}u=n.q.getTime();n.q.setTime(u+36e5);n.q.getHours()!=e&&n.q.setTime(u)}function Dqn(n,e){var t,r,i,a;h3(n.d,n.e);n.c.a.$b();if(bM(MK(lIn(e.j,(IYn(),UKe))))!=0||bM(MK(lIn(e.j,UKe)))!=0){t=_3n;BA(lIn(e.j,zKe))!==BA((Smn(),hHe))&&Ehn(e.j,(WYn(),sDe),(Qx(),true));a=bG(lIn(e.j,Y_e),17).a;for(i=0;ii&&++o;ED(c,(b3(u+o,e.c.length),bG(e.c[u+o],17)));s+=(b3(u+o,e.c.length),bG(e.c[u+o],17)).a-r;++t;while(t=v&&n.e[o.p]>d*n.b||k>=r*v){Tm(b.c,s);s=new im;esn(u,c);c.a.$b();f-=h;w=t.Math.max(w,f*n.b+g);f+=k;m=k;k=0;h=0;g=0}}return new nA(w,b)}function Fqn(n){var e,t,r,i,a,c,u;if(!n.d){u=new Io;e=Cit;a=e.a.zc(n,e);if(a==null){for(r=new _D(a1(n));r.e!=r.i.gc();){t=bG(iyn(r),29);NW(u,Fqn(t))}e.a.Bc(n)!=null;e.a.gc()==0&&undefined}c=u.i;for(i=(!n.q&&(n.q=new gz(Irt,n,11,10)),new _D(n.q));i.e!=i.i.gc();++c){bG(iyn(i),411)}NW(u,(!n.q&&(n.q=new gz(Irt,n,11,10)),n.q));vbn(u);n.d=new jL((bG(Yin(yZ((cQ(),_rt).o),9),19),u.i),u.g);n.e=bG(u.g,688);n.e==null&&(n.e=Iit);S9(n).b&=-17}return n.d}function _qn(n,e,t,r){var i,a,c,u,s,o;o=ZKn(n.e.Dh(),e);s=0;i=bG(n.g,124);LP();if(bG(e,69).xk()){for(c=0;c1||w==-1){h=bG(d,71);l=bG(f,71);if(h.dc()){l.$b()}else{c=!!vMn(e);a=0;for(u=n.a?h.Kc():h.Ii();u.Ob();){o=bG(u.Pb(),58);i=bG(hrn(n,o),58);if(!i){if(n.b&&!c){l.Gi(a,o);++a}}else{if(c){s=l.dd(i);s==-1?l.Gi(a,i):a!=s&&l.Ui(a,i)}else{l.Gi(a,i)}++a}}}}else{if(d==null){f.Wb(null)}else{i=hrn(n,d);i==null?n.b&&!vMn(e)&&f.Wb(d):f.Wb(i)}}}}}function Hqn(n,e){var r,i,a,c,u,s,o,f;r=new Kt;for(a=new GV(sx(Qgn(e).a.Kc(),new d));dDn(a);){i=bG(K9(a),18);if(j9(i)){continue}s=i.c.i;if(qPn(s,BSe)){f=z_n(n,s,BSe,_Se);if(f==-1){continue}r.b=t.Math.max(r.b,f);!r.a&&(r.a=new im);ED(r.a,s)}}for(u=new GV(sx(Jgn(e).a.Kc(),new d));dDn(u);){c=bG(K9(u),18);if(j9(c)){continue}o=c.d.i;if(qPn(o,_Se)){f=z_n(n,o,_Se,BSe);if(f==-1){continue}r.d=t.Math.max(r.d,f);!r.c&&(r.c=new im);ED(r.c,o)}}return r}function Uqn(n,e,t,r){var i,a,c,u,s,o,f;if(t.d.i==e.i){return}i=new yMn(n);Vb(i,(YIn(),tEe));Ehn(i,(WYn(),EDe),t);Ehn(i,(IYn(),m_e),(FPn(),m8e));Tm(r.c,i);c=new vOn;l2(c,i);KLn(c,(UQn(),n9e));u=new vOn;l2(u,i);KLn(u,$8e);f=t.d;b2(t,c);a=new zZ;Yon(a,t);Ehn(a,DFe,null);f2(a,u);b2(a,f);o=new K4(t.b,0);while(o.b1e6){throw dm(new mM("power of ten too big"))}if(n<=pZn){return _9(c$n(Ble[1],e),e)}r=c$n(Ble[1],pZn);i=r;t=Xon(n-pZn);e=c0(n%pZn);while(kwn(t,pZn)>0){i=I5(i,r);t=Fgn(t,pZn)}i=I5(i,c$n(Ble[1],e));i=_9(i,pZn);t=Xon(n-pZn);while(kwn(t,pZn)>0){i=_9(i,pZn);t=Fgn(t,pZn)}i=_9(i,e);return i}function Xqn(n){var e,t,r,i,a,c,u,s,o,f;for(s=new nd(n.a);s.ao&&r>o){f=u;o=bM(e.p[u.p])+bM(e.d[u.p])+u.o.b+u.d.a}else{i=false;t._g()&&t.bh("bk node placement breaks on "+u+" which should have been after "+f);break}}if(!i){break}}t._g()&&t.bh(e+" is feasible: "+i);return i}function Jqn(n,e,t,r){var i,a,c,u,s,o,f,h,l;a=new yMn(n);Vb(a,(YIn(),iEe));Ehn(a,(IYn(),m_e),(FPn(),m8e));i=0;if(e){c=new vOn;Ehn(c,(WYn(),EDe),e);Ehn(a,EDe,e.i);KLn(c,(UQn(),n9e));l2(c,a);l=B4(e.e);for(o=l,f=0,h=o.length;f0){if(i<0&&f.a){i=s;a=o[0];r=0}if(i>=0){u=f.b;if(s==i){u-=r++;if(u==0){return 0}}if(!oJn(e,o,f,u,c)){s=i-1;o[0]=a;continue}}else{i=-1;if(!oJn(e,o,f,0,c)){return 0}}}else{i=-1;if(ZJ(f.c,0)==32){h=o[0];mrn(e,o);if(o[0]>h){continue}}else if(n1(e,f.c,o[0])){o[0]+=f.c.length;continue}return 0}}if(!RQn(c,t)){return 0}return o[0]}function eXn(n,e,t){var r,i,a,c,u,s,o,f,h,l;f=new UV(new Gd(t));u=$nn(qht,_2n,28,n.f.e.c.length,16,1);Yz(u,u.length);t[e.a]=0;for(o=new nd(n.f.e);o.a=0&&!uTn(n,f,h)){--h}i[f]=h}for(b=0;b=0&&!uTn(n,u,w)){--u}a[w]=u}for(s=0;se[l]&&lr[s]&&VBn(n,s,l,false,true)}}}function rXn(n){var e,t,r,i,a,c,u,s;t=lM(yK(lIn(n,(oGn(),Kye))));a=n.a.c.d;u=n.a.d.d;if(t){c=jD(r_(new PO(u.a,u.b),a),.5);s=jD(_$(n.e),.5);e=r_(t_(new PO(a.a,a.b),c),s);qR(n.d,e)}else{i=bM(MK(lIn(n.a,tMe)));r=n.d;if(a.a>=u.a){if(a.b>=u.b){r.a=u.a+(a.a-u.a)/2+i;r.b=u.b+(a.b-u.b)/2-i-n.e.b}else{r.a=u.a+(a.a-u.a)/2+i;r.b=a.b+(u.b-a.b)/2+i}}else{if(a.b>=u.b){r.a=a.a+(u.a-a.a)/2+i;r.b=u.b+(a.b-u.b)/2+i}else{r.a=a.a+(u.a-a.a)/2+i;r.b=a.b+(u.b-a.b)/2-i-n.e.b}}}}function iXn(n){var e,t,r,i,a,c,u,s;if(!n.f){s=new Po;u=new Po;e=Cit;c=e.a.zc(n,e);if(c==null){for(a=new _D(a1(n));a.e!=a.i.gc();){i=bG(iyn(a),29);NW(s,iXn(i))}e.a.Bc(n)!=null;e.a.gc()==0&&undefined}for(r=(!n.s&&(n.s=new gz(mrt,n,21,17)),new _D(n.s));r.e!=r.i.gc();){t=bG(iyn(r),179);G$(t,102)&&cen(u,bG(t,19))}vbn(u);n.r=new tq(n,(bG(Yin(yZ((cQ(),_rt).o),6),19),u.i),u.g);NW(s,n.r);vbn(s);n.f=new jL((bG(Yin(yZ(_rt.o),5),19),s.i),s.g);S9(n).b&=-3}return n.f}function aXn(n){dP(n,new dCn(GT(_T(UT(HT(new vs,N3n),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new fe)));z4(n,N3n,$3n,tyn(zke));z4(n,N3n,D3n,tyn(Hke));z4(n,N3n,x3n,tyn(Rke));z4(n,N3n,R3n,tyn(Uke));z4(n,N3n,$2n,tyn(Xke));z4(n,N3n,D2n,tyn(qke));z4(n,N3n,N2n,tyn(Vke));z4(n,N3n,x2n,tyn(Gke));z4(n,N3n,C3n,tyn(Fke));z4(n,N3n,I3n,tyn(Kke));z4(n,N3n,O3n,tyn(_ke));z4(n,N3n,A3n,tyn(Bke))}function cXn(){cXn=O;jnt=zfn(fT(Uht,1),L1n,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]);Ent=new RegExp("[ \t\n\r\f]+");try{Tnt=zfn(fT(uat,1),jZn,2114,0,[new Up((mL(),Npn("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",pF((Qy(),Qy(),che))))),new Up(Npn("yyyy-MM-dd'T'HH:mm:ss'.'SSS",pF((null,che)))),new Up(Npn("yyyy-MM-dd'T'HH:mm:ss",pF((null,che)))),new Up(Npn("yyyy-MM-dd'T'HH:mm",pF((null,che)))),new Up(Npn("yyyy-MM-dd",pF((null,che))))])}catch(n){n=Ofn(n);if(!G$(n,82))throw dm(n)}}function uXn(n,e){var t,r,i,a;i=bRn(n.d,1)!=0;r=oHn(n,e);if(r==0&&lM(yK(lIn(e.j,(WYn(),sDe))))){return 0}!lM(yK(lIn(e.j,(WYn(),sDe))))&&!lM(yK(lIn(e.j,FDe)))||BA(lIn(e.j,(IYn(),zKe)))===BA((Smn(),hHe))?e.c.mg(e.e,i):i=lM(yK(lIn(e.j,sDe)));LKn(n,e,i,true);lM(yK(lIn(e.j,FDe)))&&Ehn(e.j,FDe,(Qx(),false));if(lM(yK(lIn(e.j,sDe)))){Ehn(e.j,sDe,(Qx(),false));Ehn(e.j,FDe,true)}t=oHn(n,e);do{Wun(n);if(t==0){return 0}i=!i;a=t;LKn(n,e,i,false);t=oHn(n,e)}while(a>t);return a}function sXn(n,e){var t,r,i,a;i=bRn(n.d,1)!=0;r=XAn(n,e);if(r==0&&lM(yK(lIn(e.j,(WYn(),sDe))))){return 0}!lM(yK(lIn(e.j,(WYn(),sDe))))&&!lM(yK(lIn(e.j,FDe)))||BA(lIn(e.j,(IYn(),zKe)))===BA((Smn(),hHe))?e.c.mg(e.e,i):i=lM(yK(lIn(e.j,sDe)));LKn(n,e,i,true);lM(yK(lIn(e.j,FDe)))&&Ehn(e.j,FDe,(Qx(),false));if(lM(yK(lIn(e.j,sDe)))){Ehn(e.j,sDe,(Qx(),false));Ehn(e.j,FDe,true)}t=XAn(n,e);do{Wun(n);if(t==0){return 0}i=!i;a=t;LKn(n,e,i,false);t=XAn(n,e)}while(a>t);return a}function oXn(n,e,r,i){var a,c,u,s,o,f,h,l,b;o=r_(new PO(r.a,r.b),n);f=o.a*e.b-o.b*e.a;h=e.a*i.b-e.b*i.a;l=(o.a*i.b-o.b*i.a)/h;b=f/h;if(h==0){if(f==0){a=t_(new PO(r.a,r.b),jD(new PO(i.a,i.b),.5));c=hen(n,a);u=hen(t_(new PO(n.a,n.b),e),a);s=t.Math.sqrt(i.a*i.a+i.b*i.b)*.5;if(c=0&&l<=1&&b>=0&&b<=1?t_(new PO(n.a,n.b),jD(new PO(e.a,e.b),l)):null}}function fXn(n,e,t){var r,i,a,c,u;r=bG(lIn(n,(IYn(),WKe)),21);t.a>e.a&&(r.Hc((iPn(),a4e))?n.c.a+=(t.a-e.a)/2:r.Hc(u4e)&&(n.c.a+=t.a-e.a));t.b>e.b&&(r.Hc((iPn(),o4e))?n.c.b+=(t.b-e.b)/2:r.Hc(s4e)&&(n.c.b+=t.b-e.b));if(bG(lIn(n,(WYn(),oDe)),21).Hc((o_n(),M$e))&&(t.a>e.a||t.b>e.b)){for(u=new nd(n.a);u.ae.a&&(r.Hc((iPn(),a4e))?n.c.a+=(t.a-e.a)/2:r.Hc(u4e)&&(n.c.a+=t.a-e.a));t.b>e.b&&(r.Hc((iPn(),o4e))?n.c.b+=(t.b-e.b)/2:r.Hc(s4e)&&(n.c.b+=t.b-e.b));if(bG(lIn(n,(WYn(),oDe)),21).Hc((o_n(),M$e))&&(t.a>e.a||t.b>e.b)){for(c=new nd(n.a);c.a0?n.i:0)>e&&o>0){c=0;u+=o+n.i;a=t.Math.max(a,b);i+=o+n.i;o=0;b=0;if(r){++l;ED(n.n,new f0(n.s,u,n.i))}s=0}b+=f.g+(s>0?n.i:0);o=t.Math.max(o,f.f);r&&YMn(bG(Yq(n.n,l),209),f);c+=f.g+(s>0?n.i:0);++s}a=t.Math.max(a,b);i+=o;if(r){n.r=a;n.d=i;sjn(n.j)}return new yY(n.s,n.t,a,i)}function wXn(n){var e,r,i,a,c,u,s,o,f,h,l,b;n.b=false;l=y0n;o=M0n;b=y0n;f=M0n;for(i=n.e.a.ec().Kc();i.Ob();){r=bG(i.Pb(),272);a=r.a;l=t.Math.min(l,a.c);o=t.Math.max(o,a.c+a.b);b=t.Math.min(b,a.d);f=t.Math.max(f,a.d+a.a);for(u=new nd(r.c);u.an.o.a){h=(o-n.o.a)/2;s.b=t.Math.max(s.b,h);s.c=t.Math.max(s.c,h)}}function mXn(n){var e,t,r,i,a,c,u,s;a=new o4;rN(a,(nhn(),o2e));for(r=(i=rsn(n,$nn(vle,XZn,2,0,6,1)),new td(new $M(new tS(n,i).b)));r.bu?1:-1:Vln(n.a,e.a,a);if(i==-1){h=-s;f=c==s?c7(e.a,u,n.a,a):Nnn(e.a,u,n.a,a)}else{h=c;if(c==s){if(i==0){return fHn(),Rle}f=c7(n.a,a,e.a,u)}else{f=Nnn(n.a,a,e.a,u)}}o=new Zz(h,f.length,f);U4(o);return o}function jXn(n,e){var t,r,i,a;a=LGn(e);!e.c&&(e.c=new gz(ont,e,9,9));ES(new gX(null,(!e.c&&(e.c=new gz(ont,e,9,9)),new d3(e.c,16))),new tg(a));i=bG(lIn(a,(WYn(),oDe)),21);NWn(e,i);if(i.Hc((o_n(),M$e))){for(r=new _D((!e.c&&(e.c=new gz(ont,e,9,9)),e.c));r.e!=r.i.gc();){t=bG(iyn(r),123);MQn(n,e,a,t)}}bG(YDn(e,(IYn(),r_e)),181).gc()!=0&&b_n(e,a);lM(yK(lIn(a,f_e)))&&i.Fc(P$e);jR(a,N_e)&&sM(new lpn(bM(MK(lIn(a,N_e)))),a);BA(YDn(e,SFe))===BA((Dwn(),U5e))?zYn(n,e,a):kYn(n,e,a);return a}function EXn(n){var e,t,r,i,a,c,u,s;for(i=new nd(n.b);i.a0?o1(t.a,0,a-1):""}}else{return!t?n:t.a}}function PXn(n,e){var t,r,i,a,c,u,s;e.Ug("Sort By Input Model "+lIn(n,(IYn(),zKe)),1);i=0;for(r=new nd(n.b);r.a=n.b.length){a[i++]=c.b[r++];a[i++]=c.b[r++]}else if(r>=c.b.length){a[i++]=n.b[t++];a[i++]=n.b[t++]}else if(c.b[r]0?n.i:0)}++e}kgn(n.n,o);n.d=r;n.r=i;n.g=0;n.f=0;n.e=0;n.o=y0n;n.p=y0n;for(c=new nd(n.b);c.a0){i=(!n.n&&(n.n=new gz(unt,n,1,7)),bG(Yin(n.n,0),135)).a;!i||tL(tL((e.a+=' "',e),i),'"')}}else{tL(tL((e.a+=' "',e),r),'"')}t=(!n.b&&(n.b=new g_(B7e,n,4,7)),!(n.b.i<=1&&(!n.c&&(n.c=new g_(B7e,n,5,8)),n.c.i<=1)));t?(e.a+=" [",e):(e.a+=" ",e);tL(e,UD(new GM,new _D(n.b)));t&&(e.a+="]",e);e.a+=J4n;t&&(e.a+="[",e);tL(e,UD(new GM,new _D(n.c)));t&&(e.a+="]",e);return e.a}function LXn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S;y=n.c;M=e.c;t=Ctn(y.a,n,0);r=Ctn(M.a,e,0);m=bG(Ipn(n,(fcn(),kHe)).Kc().Pb(),12);E=bG(Ipn(n,yHe).Kc().Pb(),12);k=bG(Ipn(e,kHe).Kc().Pb(),12);S=bG(Ipn(e,yHe).Kc().Pb(),12);v=B4(m.e);T=B4(E.g);p=B4(k.e);j=B4(S.g);Fjn(n,r,M);for(c=p,f=0,w=c.length;fh){new x2((q7(),yXe),r,e,f-h)}else if(f>0&&h>0){new x2((q7(),yXe),e,r,0);new x2(yXe,r,e,0)}}return u}function xXn(n,e,t){var r,i,a;n.a=new im;for(a=Gkn(e.b,0);a.b!=a.d.c;){i=bG($6(a),40);while(bG(lIn(i,(eqn(),_We)),17).a>n.a.c.length-1){ED(n.a,new nA(_3n,U9n))}r=bG(lIn(i,_We),17).a;if(t==(Bdn(),o5e)||t==f5e){i.e.abM(MK(bG(Yq(n.a,r),42).b))&&ww(bG(Yq(n.a,r),42),i.e.a+i.f.a)}else{i.e.bbM(MK(bG(Yq(n.a,r),42).b))&&ww(bG(Yq(n.a,r),42),i.e.b+i.f.b)}}}function RXn(n,e,t,r){var i,a,c,u,s,o,f;a=Mgn(r);u=lM(yK(lIn(r,(IYn(),XFe))));if((u||lM(yK(lIn(n,OFe))))&&!wN(bG(lIn(n,m_e),101))){i=$vn(a);s=JUn(n,t,t==(fcn(),yHe)?i:Wdn(i))}else{s=new vOn;l2(s,n);if(e){f=s.n;f.a=e.a-n.n.a;f.b=e.b-n.n.b;_On(f,0,0,n.o.a,n.o.b);KLn(s,iGn(s,a))}else{i=$vn(a);KLn(s,t==(fcn(),yHe)?i:Wdn(i))}c=bG(lIn(r,(WYn(),oDe)),21);o=s.j;switch(a.g){case 2:case 1:(o==(UQn(),D8e)||o==Y8e)&&c.Fc((o_n(),S$e));break;case 4:case 3:(o==(UQn(),$8e)||o==n9e)&&c.Fc((o_n(),S$e))}}return s}function KXn(n,e){var r,i,a,c,u,s;for(u=new pon(new Kw(n.f.b).a);u.b;){c=jun(u);a=bG(c.ld(),602);if(e==1){if(a.Af()!=(Bdn(),l5e)&&a.Af()!=s5e){continue}}else{if(a.Af()!=(Bdn(),o5e)&&a.Af()!=f5e){continue}}i=bG(bG(c.md(),42).b,86);s=bG(bG(c.md(),42).a,194);r=s.c;switch(a.Af().g){case 2:i.g.c=n.e.a;i.g.b=t.Math.max(1,i.g.b+r);break;case 1:i.g.c=i.g.c+r;i.g.b=t.Math.max(1,i.g.b-r);break;case 4:i.g.d=n.e.b;i.g.a=t.Math.max(1,i.g.a+r);break;case 3:i.g.d=i.g.d+r;i.g.a=t.Math.max(1,i.g.a-r)}}}function FXn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g;s=$nn(Ght,z1n,28,e.b.c.length,15,1);f=$nn(aEe,g1n,273,e.b.c.length,0,1);o=$nn(Yje,e6n,10,e.b.c.length,0,1);for(l=n.a,b=0,w=l.length;b0&&!!o[i]&&(d=S$(n.b,o[i],a));g=t.Math.max(g,a.c.c.b+d)}for(c=new nd(h.e);c.a1){throw dm(new jM(bae))}if(!s){a=H5(e,r.Kc().Pb());c.Fc(a)}}return phn(n,wAn(n,e,t),c)}function XXn(n,e,t){var r,i,a,c,u,s,o,f;if(OFn(n.e,e)){s=(LP(),bG(e,69).xk()?new Nq(e,n):new DA(e,n));N$n(s.c,s.b);U$(s,bG(t,16))}else{f=ZKn(n.e.Dh(),e);r=bG(n.g,124);for(c=0;c"}s!=null&&(e.a+=""+s,e)}else if(n.e){u=n.e.zb;u!=null&&(e.a+=""+u,e)}else{e.a+="?";if(n.b){e.a+=" super ";QXn(n.b,e)}else{if(n.f){e.a+=" extends ";QXn(n.f,e)}}}}function JXn(n){n.b=null;n.a=null;n.o=null;n.q=null;n.v=null;n.w=null;n.B=null;n.p=null;n.Q=null;n.R=null;n.S=null;n.T=null;n.U=null;n.V=null;n.W=null;n.bb=null;n.eb=null;n.ab=null;n.H=null;n.db=null;n.c=null;n.d=null;n.f=null;n.n=null;n.r=null;n.s=null;n.u=null;n.G=null;n.J=null;n.e=null;n.j=null;n.i=null;n.g=null;n.k=null;n.t=null;n.F=null;n.I=null;n.L=null;n.M=null;n.O=null;n.P=null;n.$=null;n.N=null;n.Z=null;n.cb=null;n.K=null;n.D=null;n.A=null;n.C=null;n._=null;n.fb=null;n.X=null;n.Y=null;n.gb=false;n.hb=false}function YXn(n){var e,r,i,a;i=pYn((!n.c&&(n.c=I2(Xon(n.f))),n.c),0);if(n.e==0||n.a==0&&n.f!=-1&&n.e<0){return i}e=asn(n)<0?1:0;r=n.e;a=(i.length+1+t.Math.abs(c0(n.e)),new eT);e==1&&(a.a+="-",a);if(n.e>0){r-=i.length-e;if(r>=0){a.a+="0.";for(;r>jle.length;r-=jle.length){Jq(a,jle)}vF(a,jle,c0(r));tL(a,(w3(e,i.length+1),i.substr(e)))}else{r=e-r;tL(a,o1(i,e,c0(r)));a.a+=".";tL(a,wQ(i,c0(r)))}}else{tL(a,(w3(e,i.length+1),i.substr(e)));for(;r<-jle.length;r+=jle.length){Jq(a,jle)}vF(a,jle,c0(-r))}return a.a}function ZXn(n){var e,t,r,i,a,c,u,s,o;if(n.k!=(YIn(),rEe)){return false}if(n.j.c.length<=1){return false}a=bG(lIn(n,(IYn(),m_e)),101);if(a==(FPn(),m8e)){return false}i=(rMn(),(!n.q?(dZ(),dZ(),bbe):n.q)._b(n_e)?r=bG(lIn(n,n_e),203):r=bG(lIn(VQ(n),e_e),203),r);if(i==BBe){return false}if(!(i==_Be||i==FBe)){c=bM(MK(Dpn(n,J_e)));e=bG(lIn(n,Q_e),140);!e&&(e=new DF(c,c,c,c));o=_gn(n,(UQn(),n9e));s=e.d+e.a+(o.gc()-1)*c;if(s>n.o.b){return false}t=_gn(n,$8e);u=e.d+e.a+(t.gc()-1)*c;if(u>n.o.b){return false}}return true}function nVn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g;e.Ug("Orthogonal edge routing",1);o=bM(MK(lIn(n,(IYn(),z_e))));t=bM(MK(lIn(n,K_e)));r=bM(MK(lIn(n,B_e)));l=new KW(0,t);g=0;c=new K4(n.b,0);u=null;f=null;s=null;h=null;do{f=c.b0){b=(w-1)*t;!!u&&(b+=r);!!f&&(b+=r);be||lM(yK(YDn(s,(A_n(),yZe))))){i=0;a+=f.b+t;Tm(h.c,f);f=new u4(a,t);r=new kln(0,f.f,f,t);gcn(f,r);i=0}if(r.b.c.length==0||!lM(yK(YDn(H0(s),(A_n(),IZe))))&&(s.f>=r.o&&s.f<=r.f||r.a*.5<=s.f&&r.a*1.5>=s.f)){svn(r,s)}else{c=new kln(r.s+r.r+t,f.f,f,t);gcn(f,c);svn(c,s)}i=s.i+s.g}Tm(h.c,f);return h}function bVn(n){var e,t,r,i;if(n.b==null||n.b.length<=2)return;if(n.a)return;e=0;i=0;while(i=n.b[i+1]){i+=2}else if(t0){r=new iB(bG(r7(n.a,a),21));dZ();g$(r,new Wd(e));i=new K4(a.b,0);while(i.b0&&r>=-6){if(r>=0){Ox(a,t-c0(n.e),String.fromCharCode(46))}else{Mon(a,e-1,e-1,"0.");Ox(a,e+1,Tmn(jle,0,-c0(r)-1))}}else{if(t-e>=1){Ox(a,e,String.fromCharCode(46));++t}Ox(a,t,String.fromCharCode(69));r>0&&Ox(a,++t,String.fromCharCode(43));Ox(a,++t,""+lz(Xon(r)))}n.g=a.a;return n.g}function kVn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j;i=bM(MK(lIn(e,(IYn(),ZFe))));M=bG(lIn(e,Y_e),17).a;b=4;a=3;T=20/M;w=false;o=0;u=pZn;do{c=o!=1;l=o!=0;j=0;for(v=n.a,m=0,y=v.length;mM)){o=2;u=pZn}else if(o==0){o=1;u=j}else{o=0;u=j}}else{w=j>=u||u-j0?1:UL(isNaN(i),isNaN(0)))>=0^(null,lcn(C9n),(t.Math.abs(s)<=C9n||s==0||isNaN(s)&&isNaN(0)?0:s<0?-1:s>0?1:UL(isNaN(s),isNaN(0)))>=0)){return t.Math.max(s,i)}lcn(C9n);if((t.Math.abs(i)<=C9n||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:UL(isNaN(i),isNaN(0)))>0){return t.Math.sqrt(s*s+i*i)}return-t.Math.sqrt(s*s+i*i)}function jVn(n,e){var t,r,i,a,c,u;if(!e)return;!n.a&&(n.a=new fk);if(n.e==2){Ym(n.a,e);return}if(e.e==1){for(i=0;i=S0n?ZA(t,Dgn(r)):CQ(t,r&$1n);c=(++Tht,new G1(10,null,0));Wz(n.a,c,u-1)}else{t=(c.Mm().length+a,new ZM);ZA(t,c.Mm())}if(e.e==0){r=e.Km();r>=S0n?ZA(t,Dgn(r)):CQ(t,r&$1n)}else{ZA(t,e.Mm())}bG(c,530).b=t.a}function EVn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g;if(t.dc()){return}u=0;l=0;r=t.Kc();w=bG(r.Pb(),17).a;while(u1&&(s=o.Hg(s,n.a,u))}if(s.c.length==1){return bG(Yq(s,s.c.length-1),238)}if(s.c.length==2){return cVn((b3(0,s.c.length),bG(s.c[0],238)),(b3(1,s.c.length),bG(s.c[1],238)),c,a)}return null}function OVn(n,e,t){var r,i,a,c,u,s,o;t.Ug("Find roots",1);n.a.c.length=0;for(i=Gkn(e.b,0);i.b!=i.d.c;){r=bG($6(i),40);if(r.b.b==0){Ehn(r,(DQn(),Jze),(Qx(),true));ED(n.a,r)}}switch(n.a.c.length){case 0:a=new mln(0,e,"DUMMY_ROOT");Ehn(a,(DQn(),Jze),(Qx(),true));Ehn(a,Lze,true);hq(e.b,a);break;case 1:break;default:c=new mln(0,e,B9n);for(s=new nd(n.a);s.a=t.Math.abs(i.b)){i.b=0;c.d+c.a>u.d&&c.du.c&&c.c0){e=new xA(n.i,n.g);t=n.i;a=t<100?null:new fj(t);if(n.Tj()){for(r=0;r0){u=n.g;o=n.i;Z9(n);a=o<100?null:new fj(o);for(r=0;r>13|(n.m&15)<<9;i=n.m>>4&8191;a=n.m>>17|(n.h&255)<<5;c=(n.h&1048320)>>8;u=e.l&8191;s=e.l>>13|(e.m&15)<<9;o=e.m>>4&8191;f=e.m>>17|(e.h&255)<<5;h=(e.h&1048320)>>8;j=t*u;E=r*u;S=i*u;P=a*u;C=c*u;if(s!=0){E+=t*s;S+=r*s;P+=i*s;C+=a*s}if(o!=0){S+=t*o;P+=r*o;C+=i*o}if(f!=0){P+=t*f;C+=r*f}h!=0&&(C+=t*h);b=j&f0n;w=(E&511)<<13;l=b+w;g=j>>22;v=E>>9;p=(S&262143)<<4;m=(P&31)<<17;d=g+v+p+m;y=S>>18;M=P>>5;T=(C&4095)<<8;k=y+M+T;d+=l>>22;l&=f0n;k+=d>>22;d&=f0n;k&=h0n;return M$(l,d,k)}function xVn(n){var e,r,i,a,c,u,s;s=bG(Yq(n.j,0),12);if(s.g.c.length!=0&&s.e.c.length!=0){throw dm(new EM("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."))}if(s.g.c.length!=0){c=y0n;for(r=new nd(s.g);r.a4){if(n.fk(e)){if(n.al()){i=bG(e,54);r=i.Eh();s=r==n.e&&(n.ml()?i.yh(i.Fh(),n.il())==n.jl():-1-i.Fh()==n.Lj());if(n.nl()&&!s&&!r&&!!i.Jh()){for(a=0;a0&&aAn(n,u,h)}for(i=new nd(h);i.an.d[c.p]){t+=t9(n.b,a)*bG(s.b,17).a;x6(n.a,Bwn(a))}}while(!RM(n.a)){vrn(n.b,bG(Bz(n.a),17).a)}}return t}function _Vn(n,e){var t,r,i,a,c,u,s,o,f,h;f=bG(lIn(n,(WYn(),cDe)),64);r=bG(Yq(n.j,0),12);f==(UQn(),D8e)?KLn(r,Y8e):f==Y8e&&KLn(r,D8e);if(bG(lIn(e,(IYn(),r_e)),181).Hc((emn(),b9e))){s=bM(MK(lIn(n,q_e)));o=bM(MK(lIn(n,X_e)));c=bM(MK(lIn(n,U_e)));u=bG(lIn(e,M_e),21);if(u.Hc((uNn(),C8e))){t=o;h=n.o.a/2-r.n.a;for(a=new nd(r.f);a.a0&&(o=n.n.a/a);break;case 2:case 4:i=n.i.o.b;i>0&&(o=n.n.b/i)}Ehn(n,(WYn(),$De),o)}s=n.o;c=n.a;if(r){c.a=r.a;c.b=r.b;n.d=true}else if(e!=M8e&&e!=T8e&&u!=Z8e){switch(u.g){case 1:c.a=s.a/2;break;case 2:c.a=s.a;c.b=s.b/2;break;case 3:c.a=s.a/2;c.b=s.b;break;case 4:c.b=s.b/2}}else{c.a=s.a/2;c.b=s.b/2}}function qVn(n){var e,t,r,i,a,c,u,s,o,f;if(n.Pj()){f=n.Ej();s=n.Qj();if(f>0){e=new Vsn(n.pj());t=f;a=t<100?null:new fj(t);eF(n,t,e.g);i=t==1?n.Ij(4,Yin(e,0),null,0,s):n.Ij(6,e,null,-1,s);if(n.Mj()){for(r=new _D(e);r.e!=r.i.gc();){a=n.Oj(iyn(r),a)}if(!a){n.Jj(i)}else{a.nj(i);a.oj()}}else{if(!a){n.Jj(i)}else{a.nj(i);a.oj()}}}else{eF(n,n.Ej(),n.Fj());n.Jj(n.Ij(6,(dZ(),lbe),null,-1,s))}}else if(n.Mj()){f=n.Ej();if(f>0){u=n.Fj();o=f;eF(n,f,u);a=o<100?null:new fj(o);for(r=0;r1&&OX(c)*IX(c)/2>u[0]){a=0;while(au[a]){++a}w=new N2(d,0,a+1);h=new tan(w);f=OX(c)/IX(c);s=UJn(h,e,new _k,t,r,i,f);t_(kL(h.e),s);EG(qCn(l,h),$0n);b=new N2(d,a+1,d.c.length);qjn(l,b);d.c.length=0;o=0;YX(u,u.length,0)}else{g=l.b.c.length==0?null:Yq(l.b,0);g!=null&&Nun(l,0);o>0&&(u[o]=u[o-1]);u[o]+=OX(c)*IX(c);++o;Tm(d.c,c)}}return d}function VVn(n,e){var t,r,i,a;t=e.b;a=new iB(t.j);i=0;r=t.j;r.c.length=0;TW(bG(won(n.b,(UQn(),D8e),(yun(),qAe)),15),t);i=fMn(a,i,new Xi,r);TW(bG(won(n.b,D8e,GAe),15),t);i=fMn(a,i,new Fi,r);TW(bG(won(n.b,D8e,UAe),15),t);TW(bG(won(n.b,$8e,qAe),15),t);TW(bG(won(n.b,$8e,GAe),15),t);i=fMn(a,i,new Vi,r);TW(bG(won(n.b,$8e,UAe),15),t);TW(bG(won(n.b,Y8e,qAe),15),t);i=fMn(a,i,new zi,r);TW(bG(won(n.b,Y8e,GAe),15),t);i=fMn(a,i,new Wi,r);TW(bG(won(n.b,Y8e,UAe),15),t);TW(bG(won(n.b,n9e,qAe),15),t);i=fMn(a,i,new Hi,r);TW(bG(won(n.b,n9e,GAe),15),t);TW(bG(won(n.b,n9e,UAe),15),t)}function zVn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b;for(u=new nd(e);u.a.5?p-=u*2*(d-.5):d<.5&&(p+=c*2*(.5-d));a=s.d.b;pv.a-g-h&&(p=v.a-g-h);s.n.a=e+p}}function nzn(n){var e,t,r,i,a;r=bG(lIn(n,(IYn(),KFe)),171);if(r==(Wvn(),QDe)){for(t=new GV(sx(Qgn(n).a.Kc(),new d));dDn(t);){e=bG(K9(t),18);if(!G9(e)){throw dm(new IM(k6n+ijn(n)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. "+"FIRST_SEPARATE nodes must not have incoming edges."))}}}else if(r==YDe){for(a=new GV(sx(Jgn(n).a.Kc(),new d));dDn(a);){i=bG(K9(a),18);if(!G9(i)){throw dm(new IM(k6n+ijn(n)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. "+"LAST_SEPARATE nodes must not have outgoing edges."))}}}}function ezn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w;if(n.e&&n.c.c>19!=0){e=yhn(e);s=!s}c=ERn(e);a=false;i=false;r=false;if(n.h==l0n&&n.m==0&&n.l==0){i=true;a=true;if(c==-1){n=RL((crn(),Phe));r=true;s=!s}else{u=yDn(n,c);s&&rln(u);t&&(She=M$(0,0,0));return u}}else if(n.h>>19!=0){a=true;n=yhn(n);r=true;s=!s}if(c!=-1){return aln(n,c,s,a,t)}if(SEn(n,e)<0){t&&(a?She=yhn(n):She=M$(n.l,n.m,n.h));return M$(0,0,0)}return yUn(r?n:M$(n.l,n.m,n.h),e,s,a,i,t)}function izn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w;c=n.e;s=e.e;if(c==0){return e}if(s==0){return n}a=n.d;u=e.d;if(a+u==2){t=O3(n.a[0],A0n);r=O3(e.a[0],A0n);if(c==s){f=Rgn(t,r);w=MV(f);b=MV(_V(f,32));return b==0?new i8(c,w):new Zz(c,2,zfn(fT(Ght,1),z1n,28,15,[w,b]))}return fHn(),XA(c<0?Fgn(r,t):Fgn(t,r),0)?Hpn(c<0?Fgn(r,t):Fgn(t,r)):dW(Hpn(Ptn(c<0?Fgn(r,t):Fgn(t,r))))}else if(c==s){l=c;h=a>=u?Nnn(n.a,a,e.a,u):Nnn(e.a,u,n.a,a)}else{i=a!=u?a>u?1:-1:Vln(n.a,e.a,a);if(i==0){return fHn(),Rle}if(i==1){l=c;h=c7(n.a,a,e.a,u)}else{l=s;h=c7(e.a,u,n.a,a)}}o=new Zz(l,h.length,h);U4(o);return o}function azn(n,e){var t,r,i,a,c,u,s;if(n.g>e.f||e.g>n.f){return}t=0;r=0;for(c=n.w.a.ec().Kc();c.Ob();){i=bG(c.Pb(),12);nwn(Whn(zfn(fT(D3e,1),XZn,8,0,[i.i.n,i.n,i.a])).b,e.g,e.f)&&++t}for(u=n.r.a.ec().Kc();u.Ob();){i=bG(u.Pb(),12);nwn(Whn(zfn(fT(D3e,1),XZn,8,0,[i.i.n,i.n,i.a])).b,e.g,e.f)&&--t}for(s=e.w.a.ec().Kc();s.Ob();){i=bG(s.Pb(),12);nwn(Whn(zfn(fT(D3e,1),XZn,8,0,[i.i.n,i.n,i.a])).b,n.g,n.f)&&++r}for(a=e.r.a.ec().Kc();a.Ob();){i=bG(a.Pb(),12);nwn(Whn(zfn(fT(D3e,1),XZn,8,0,[i.i.n,i.n,i.a])).b,n.g,n.f)&&--r}if(t=0){return t}switch(wJ(Ktn(n,t))){case 2:{if(T_("",cdn(n,t.qk()).xe())){s=VJ(Ktn(n,t));u=XJ(Ktn(n,t));f=dxn(n,e,s,u);if(f){return f}i=xHn(n,e);for(c=0,h=i.gc();c1){throw dm(new jM(bae))}f=ZKn(n.e.Dh(),e);r=bG(n.g,124);for(c=0;c1;for(f=new m7(b.b);v$(f.a)||v$(f.b);){o=bG(v$(f.a)?K3(f.a):K3(f.b),18);l=o.c==b?o.d:o.c;t.Math.abs(Whn(zfn(fT(D3e,1),XZn,8,0,[l.i.n,l.n,l.a])).b-u.b)>1&&wFn(n,o,u,c,b)}}}function lzn(n){var e,r,i,a,c,u;a=new K4(n.e,0);i=new K4(n.a,0);if(n.d){for(r=0;rN9n){c=e;u=0;while(t.Math.abs(e-c)0);a.a.Xb(a.c=--a.b);YGn(n,n.b-u,c,i,a);PK(a.b0);i.a.Xb(i.c=--i.b)}if(!n.d){for(r=0;r0){n.f[h.p]=w/(h.e.c.length+h.g.c.length);n.c=t.Math.min(n.c,n.f[h.p]);n.b=t.Math.max(n.b,n.f[h.p])}else s&&(n.f[h.p]=w)}}function dzn(n){n.b=null;n.bb=null;n.fb=null;n.qb=null;n.a=null;n.c=null;n.d=null;n.e=null;n.f=null;n.n=null;n.M=null;n.L=null;n.Q=null;n.R=null;n.K=null;n.db=null;n.eb=null;n.g=null;n.i=null;n.j=null;n.k=null;n.gb=null;n.o=null;n.p=null;n.q=null;n.r=null;n.$=null;n.ib=null;n.S=null;n.T=null;n.t=null;n.s=null;n.u=null;n.v=null;n.w=null;n.B=null;n.A=null;n.C=null;n.D=null;n.F=null;n.G=null;n.H=null;n.I=null;n.J=null;n.P=null;n.Z=null;n.U=null;n.V=null;n.W=null;n.X=null;n.Y=null;n._=null;n.ab=null;n.cb=null;n.hb=null;n.nb=null;n.lb=null;n.mb=null;n.ob=null;n.pb=null;n.jb=null;n.kb=null;n.N=false;n.O=false}function gzn(n,e,t){var r,i,a,c;t.Ug("Graph transformation ("+n.a+")",1);c=C3(e.a);for(a=new nd(e.b);a.a=u.b.c)&&(u.b=e);if(!u.c||e.c<=u.c.c){u.d=u.c;u.c=e}(!u.e||e.d>=u.e.d)&&(u.e=e);(!u.f||e.d<=u.f.d)&&(u.f=e)}r=new fyn((Jfn(),DTe));D4(n,GTe,new $M(zfn(fT(ITe,1),jZn,382,0,[r])));c=new fyn(KTe);D4(n,UTe,new $M(zfn(fT(ITe,1),jZn,382,0,[c])));i=new fyn(xTe);D4(n,HTe,new $M(zfn(fT(ITe,1),jZn,382,0,[i])));a=new fyn(RTe);D4(n,BTe,new $M(zfn(fT(ITe,1),jZn,382,0,[a])));IRn(r.c,DTe);IRn(i.c,xTe);IRn(a.c,RTe);IRn(c.c,KTe);u.a.c.length=0;Dfn(u.a,r.c);Dfn(u.a,Avn(i.c));Dfn(u.a,a.c);Dfn(u.a,Avn(c.c));return u}function mzn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w,d;e.Ug(sne,1);w=bM(MK(YDn(n,(vBn(),VYe))));u=bM(MK(YDn(n,(A_n(),$Ze))));s=bG(YDn(n,AZe),107);Kun((!n.a&&(n.a=new gz(snt,n,10,11)),n.a));h=lVn((!n.a&&(n.a=new gz(snt,n,10,11)),n.a),w,u);!n.a&&(n.a=new gz(snt,n,10,11));for(f=new nd(h);f.a0){n.a=s+(b-1)*a;e.c.b+=n.a;e.f.b+=n.a}}if(w.a.gc()!=0){l=new KW(1,a);b=rWn(l,e,w,g,e.f.b+s-e.c.b);b>0&&(e.f.b+=s+(b-1)*a)}}function yzn(n,e,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y;h=bM(MK(lIn(n,(IYn(),__e))));i=bM(MK(lIn(n,aBe)));b=new no;Ehn(b,__e,h+i);f=e;p=f.d;g=f.c.i;m=f.d.i;v=WL(g.c);k=WL(m.c);a=new im;for(l=v;l<=k;l++){s=new yMn(n);Vb(s,(YIn(),tEe));Ehn(s,(WYn(),EDe),f);Ehn(s,m_e,(FPn(),m8e));Ehn(s,H_e,b);w=bG(Yq(n.b,l),30);l==v?Fjn(s,w.a.c.length-r,w):h2(s,w);y=bM(MK(lIn(f,TFe)));if(y<0){y=0;Ehn(f,TFe,y)}s.o.b=y;d=t.Math.floor(y/2);u=new vOn;KLn(u,(UQn(),n9e));l2(u,s);u.n.b=d;o=new vOn;KLn(o,$8e);l2(o,s);o.n.b=d;b2(f,u);c=new zZ;Yon(c,f);Ehn(c,DFe,null);f2(c,o);b2(c,p);$En(s,f,c);Tm(a.c,c);f=c}return a}function Mzn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m;s=bG(SOn(n,(UQn(),n9e)).Kc().Pb(),12).e;b=bG(SOn(n,$8e).Kc().Pb(),12).g;u=s.c.length;m=a3(bG(Yq(n.j,0),12));while(u-- >0){d=(b3(0,s.c.length),bG(s.c[0],18));i=(b3(0,b.c.length),bG(b.c[0],18));p=i.d.e;a=Ctn(p,i,0);m6(d,i.d,a);f2(i,null);b2(i,null);w=d.a;e&&hq(w,new uN(m));for(r=Gkn(i.a,0);r.b!=r.d.c;){t=bG($6(r),8);hq(w,new uN(t))}v=d.b;for(l=new nd(i.b);l.ac)&&Gz(n.b,bG(g.b,18))}}++u}a=c}}}}function jzn(n,e){var t;if(e==null||T_(e,CZn)){return null}if(e.length==0&&n.k!=(vAn(),E3e)){return null}switch(n.k.g){case 1:return Xmn(e,Kne)?(Qx(),Hhe):Xmn(e,Fne)?(Qx(),Bhe):null;case 2:try{return Bwn(TUn(e,T1n,pZn))}catch(r){r=Ofn(r);if(G$(r,130)){return null}else throw dm(r)}case 4:try{return rOn(e)}catch(r){r=Ofn(r);if(G$(r,130)){return null}else throw dm(r)}case 3:return e;case 5:mbn(n);return KNn(n,e);case 6:mbn(n);return Rxn(n,n.a,e);case 7:try{t=eDn(n);t.cg(e);return t}catch(r){r=Ofn(r);if(G$(r,33)){return null}else throw dm(r)}default:throw dm(new EM("Invalid type set for this layout option."))}}function Ezn(n){var e;switch(n.d){case 1:{if(n.Sj()){return n.o!=-2}break}case 2:{if(n.Sj()){return n.o==-2}break}case 3:case 5:case 4:case 6:case 7:{return n.o>-2}default:{return false}}e=n.Rj();switch(n.p){case 0:return e!=null&&lM(yK(e))!=VA(n.k,0);case 1:return e!=null&&bG(e,222).a!=MV(n.k)<<24>>24;case 2:return e!=null&&bG(e,180).a!=(MV(n.k)&$1n);case 6:return e!=null&&VA(bG(e,168).a,n.k);case 5:return e!=null&&bG(e,17).a!=MV(n.k);case 7:return e!=null&&bG(e,191).a!=MV(n.k)<<16>>16;case 3:return e!=null&&bM(MK(e))!=n.j;case 4:return e!=null&&bG(e,161).a!=n.j;default:return e==null?n.n!=null:!bdn(e,n.n)}}function Szn(n,e,t){var r,i,a,c;if(n.ol()&&n.nl()){c=Nz(n,bG(t,58));if(BA(c)!==BA(t)){n.xj(e);n.Dj(e,xen(n,e,c));if(n.al()){a=(i=bG(t,54),n.ml()?n.kl()?i.Th(n.b,vMn(bG(uin(u1(n.b),n.Lj()),19)).n,bG(uin(u1(n.b),n.Lj()).Hk(),29).kk(),null):i.Th(n.b,upn(i.Dh(),vMn(bG(uin(u1(n.b),n.Lj()),19))),null,null):i.Th(n.b,-1-n.Lj(),null,null));!bG(c,54).Ph()&&(a=(r=bG(c,54),n.ml()?n.kl()?r.Rh(n.b,vMn(bG(uin(u1(n.b),n.Lj()),19)).n,bG(uin(u1(n.b),n.Lj()).Hk(),29).kk(),a):r.Rh(n.b,upn(r.Dh(),vMn(bG(uin(u1(n.b),n.Lj()),19))),null,a):r.Rh(n.b,-1-n.Lj(),null,a)));!!a&&a.oj()}bN(n.b)&&n.Jj(n.Ij(9,t,c,e,false));return c}}return t}function Pzn(n){var e,t,r,i,a,c,u,s,o,f;r=new im;for(c=new nd(n.e.a);c.a0&&(u=t.Math.max(u,osn(n.C.b+i.d.b,a)))}else{w=b+h.d.c+n.w+i.d.b;u=t.Math.max(u,(r$(),lcn(Y2n),t.Math.abs(l-a)<=Y2n||l==a||isNaN(l)&&isNaN(a)?0:w/(a-l)))}h=i;l=a;b=c}if(!!n.C&&n.C.c>0){w=b+n.C.c;f&&(w+=h.d.c);u=t.Math.max(u,(r$(),lcn(Y2n),t.Math.abs(l-1)<=Y2n||l==1||isNaN(l)&&isNaN(1)?0:w/(1-l)))}r.n.b=0;r.a.a=u}function Izn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w;r=bG(xJ(n.b,e),127);o=bG(bG(r7(n.r,e),21),87);if(o.dc()){r.n.d=0;r.n.a=0;return}f=n.u.Hc((uNn(),C8e));u=0;n.A.Hc((emn(),b9e))&&EBn(n,e);s=o.Kc();h=null;b=0;l=0;while(s.Ob()){i=bG(s.Pb(),117);c=bM(MK(i.b.of((Wx(),ome))));a=i.b.Mf().b;if(!h){!!n.C&&n.C.d>0&&(u=t.Math.max(u,osn(n.C.d+i.d.d,c)))}else{w=l+h.d.a+n.w+i.d.d;u=t.Math.max(u,(r$(),lcn(Y2n),t.Math.abs(b-c)<=Y2n||b==c||isNaN(b)&&isNaN(c)?0:w/(c-b)))}h=i;b=c;l=a}if(!!n.C&&n.C.a>0){w=l+n.C.a;f&&(w+=h.d.a);u=t.Math.max(u,(r$(),lcn(Y2n),t.Math.abs(b-1)<=Y2n||b==1||isNaN(b)&&isNaN(1)?0:w/(1-b)))}r.n.d=0;r.a.b=u}function Ozn(n,e,t,r,i,a,c,u){var s,o,f,h,l,b,w,d,g,v;w=false;o=fKn(t.q,e.f+e.b-t.q.f);b=r.f>e.b&&u;v=i-(t.q.e+o-c);h=(s=bXn(r,v,false),s.a);if(b&&h>r.f){return false}if(b){l=0;for(g=new nd(e.d);g.a=(b3(a,n.c.length),bG(n.c[a],186)).e;if(!b&&h>e.b&&!f){return false}if(f||b||h<=e.b){if(f&&h>e.b){t.d=h;ken(t,OOn(t,h))}else{zSn(t.q,o);t.c=true}ken(r,i-(t.s+t.r));lMn(r,t.q.e+t.q.d,e.f);gcn(e,r);if(n.c.length>a){bEn((b3(a,n.c.length),bG(n.c[a],186)),r);(b3(a,n.c.length),bG(n.c[a],186)).a.c.length==0&&s7(n,a)}w=true}return w}function Azn(n,e,t){var r,i,a,c,u,s;this.g=n;u=e.d.length;s=t.d.length;this.d=$nn(Yje,e6n,10,u+s,0,1);for(c=0;c0?Hin(this,this.f/this.a):lD(e.g,e.d[0]).a!=null&&lD(t.g,t.d[0]).a!=null?Hin(this,(bM(lD(e.g,e.d[0]).a)+bM(lD(t.g,t.d[0]).a))/2):lD(e.g,e.d[0]).a!=null?Hin(this,lD(e.g,e.d[0]).a):lD(t.g,t.d[0]).a!=null&&Hin(this,lD(t.g,t.d[0]).a)}function Lzn(n,e){var t,r,i,a,c,u,s,o,f,h;n.a=new mQ(uhn(b5e));for(r=new nd(e.a);r.a=1){if(g-c>0&&h>=0){s.n.a+=d;s.n.b+=a*c}else if(g-c<0&&f>=0){s.n.a+=d*g;s.n.b+=a}}}n.o.a=e.a;n.o.b=e.b;Ehn(n,(IYn(),r_e),(emn(),r=bG(Pj(w9e),9),new aB(r,bG(PF(r,r.length),9),0)))}function Rzn(n,e,t,r,i,a){var c;if(!(e==null||!Tvn(e,irt,art))){throw dm(new jM("invalid scheme: "+e))}if(!n&&!(t!=null&&BL(t,FCn(35))==-1&&t.length>0&&(w3(0,t.length),t.charCodeAt(0)!=47))){throw dm(new jM("invalid opaquePart: "+t))}if(n&&!(e!=null&&iS(hrt,e.toLowerCase()))&&!(t==null||!Tvn(t,urt,srt))){throw dm(new jM(Xre+t))}if(n&&e!=null&&iS(hrt,e.toLowerCase())&&!pPn(t)){throw dm(new jM(Xre+t))}if(!Lvn(r)){throw dm(new jM("invalid device: "+r))}if(!twn(i)){c=i==null?"invalid segments: null":"invalid segment: "+Rbn(i);throw dm(new jM(c))}if(!(a==null||BL(a,FCn(35))==-1)){throw dm(new jM("invalid query: "+a))}}function Kzn(n,e,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p;r.Ug("Network simplex layering",1);n.b=e;p=bG(lIn(e,(IYn(),Y_e)),17).a*4;v=n.b.a;if(v.c.length<1){r.Vg();return}c=BHn(n,v);g=null;for(a=Gkn(c,0);a.b!=a.d.c;){i=bG($6(a),15);s=p*c0(t.Math.sqrt(i.gc()));u=mUn(i);tUn(ET(PT(ST(qB(u),s),g),true),r.eh(1));b=n.b.b;for(d=new nd(u.a);d.a1){g=$nn(Ght,z1n,28,n.b.b.c.length,15,1);l=0;for(f=new nd(n.b.b);f.a0){$kn(n,t,0);t.a+=String.fromCharCode(r);i=Qmn(e,a);$kn(n,t,i);a+=i-1;continue}if(r==39){if(a+10&&w.a<=0){s.c.length=0;Tm(s.c,w);break}b=w.i-w.d;if(b>=u){if(b>u){s.c.length=0;u=b}Tm(s.c,w)}}if(s.c.length!=0){c=bG(Yq(s,sMn(i,s.c.length)),118);m.a.Bc(c)!=null;c.g=f++;zGn(c,e,t,r);s.c.length=0}}g=n.c.length+1;for(l=new nd(n);l.aM0n||e.o==Aqe&&f=u&&i<=s){if(u<=i&&a<=s){t[f++]=i;t[f++]=a;r+=2}else if(u<=i){t[f++]=i;t[f++]=s;n.b[r]=s+1;c+=2}else if(a<=s){t[f++]=u;t[f++]=a;r+=2}else{t[f++]=u;t[f++]=s;n.b[r]=s+1}}else if(sM1n)&&s<10);OT(n.c,new Se);qzn(n);rW(n.c);vzn(n.f)}function Jzn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g;r=bG(lIn(n,(IYn(),m_e)),101);u=n.f;c=n.d;s=u.a+c.b+c.c;o=0-c.d-n.c.b;h=u.b+c.d+c.a-n.c.b;f=new im;l=new im;for(a=new nd(e);a.a=2){s=Gkn(t,0);c=bG($6(s),8);u=bG($6(s),8);while(u.a0&&dhn(o,true,(Bdn(),f5e));u.k==(YIn(),nEe)&&JQ(o);jJ(n.f,u,e)}}}function nWn(n){var e,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y;a=bG(lIn(n,(DQn(),qze)),27);f=pZn;h=pZn;s=T1n;o=T1n;for(k=Gkn(n.b,0);k.b!=k.d.c;){p=bG($6(k),40);w=p.e;d=p.f;f=t.Math.min(f,w.a-d.a/2);h=t.Math.min(h,w.b-d.b/2);s=t.Math.max(s,w.a+d.a/2);o=t.Math.max(o,w.b+d.b/2)}b=bG(YDn(a,(eqn(),SWe)),107);for(m=Gkn(n.b,0);m.b!=m.d.c;){p=bG($6(m),40);l=lIn(p,qze);if(G$(l,207)){c=bG(l,27);EN(c,p.e.a,p.e.b);hKn(c,p)}}for(v=Gkn(n.a,0);v.b!=v.d.c;){g=bG($6(v),65);i=bG(lIn(g,qze),74);if(i){e=g.a;r=t_n(i,true,true);wqn(e,r)}}y=s-f+(b.b+b.c);u=o-h+(b.d+b.a);lM(yK(YDn(a,(JYn(),Z4e))))||iJn(a,y,u,false,false);Pyn(a,y4e,y-(b.b+b.c));Pyn(a,k4e,u-(b.d+b.a))}function eWn(n,e){var t,r,i,a,c,u,s,o,f,h;s=true;i=0;o=n.g[e.p];f=e.o.b+n.o;t=n.d[e.p][2];r9(n.b,o,Bwn(bG(Yq(n.b,o),17).a-1+t));r9(n.c,o,bM(MK(Yq(n.c,o)))-f+t*n.f);++o;if(o>=n.j){++n.j;ED(n.b,Bwn(1));ED(n.c,f)}else{r=n.d[e.p][1];r9(n.b,o,Bwn(bG(Yq(n.b,o),17).a+1-r));r9(n.c,o,bM(MK(Yq(n.c,o)))+f-r*n.f)}(n.r==(CHn(),eHe)&&(bG(Yq(n.b,o),17).a>n.k||bG(Yq(n.b,o-1),17).a>n.k)||n.r==iHe&&(bM(MK(Yq(n.c,o)))>n.n||bM(MK(Yq(n.c,o-1)))>n.n))&&(s=false);for(c=new GV(sx(Qgn(e).a.Kc(),new d));dDn(c);){a=bG(K9(c),18);u=a.c.i;if(n.g[u.p]==o){h=eWn(n,u);i=i+bG(h.a,17).a;s=s&&lM(yK(h.b))}}n.g[e.p]=o;i=i+n.d[e.p][0];return new nA(Bwn(i),(Qx(),s?true:false))}function tWn(n,e){var t,r,i,a,c;t=bM(MK(lIn(e,(IYn(),R_e))));t<2&&Ehn(e,R_e,2);r=bG(lIn(e,oFe),88);r==(Bdn(),h5e)&&Ehn(e,oFe,Mgn(e));i=bG(lIn(e,A_e),17);i.a==0?Ehn(e,(WYn(),xDe),new zvn):Ehn(e,(WYn(),xDe),new j8(i.a));a=yK(lIn(e,YFe));a==null&&Ehn(e,YFe,(Qx(),BA(lIn(e,gFe))===BA((qgn(),k5e))?true:false));ES(new gX(null,new d3(e.a,16)),new Vd(n));ES(wrn(new gX(null,new d3(e.b,16)),new ke),new zd(n));c=new Nzn(e);Ehn(e,(WYn(),BDe),c);qJ(n.a);tW(n.a,(bIn(),rTe),bG(lIn(e,uFe),188));tW(n.a,iTe,bG(lIn(e,GFe),188));tW(n.a,aTe,bG(lIn(e,cFe),188));tW(n.a,cTe,bG(lIn(e,t_e),188));tW(n.a,uTe,Hon(bG(lIn(e,gFe),223)));iN(n.a,sYn(e));Ehn(e,DDe,ezn(n.a,e))}function rWn(n,e,r,i,a){var c,u,s,o,f,h,l,b,w,d,g,v,p;l=new rm;u=new im;VAn(n,r,n.d.Ag(),u,l);VAn(n,i,n.d.Bg(),u,l);n.b=.2*(g=_Dn(wrn(new gX(null,new d3(u,16)),new Mc)),v=_Dn(wrn(new gX(null,new d3(u,16)),new Tc)),t.Math.min(g,v));c=0;for(s=0;s=2&&(p=wRn(u,true,b),!n.e&&(n.e=new Mv(n)),Bmn(n.e,p,u,n.b),undefined);XPn(u,b);lWn(u);w=-1;for(h=new nd(u);h.au}function cWn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m;f=y0n;h=y0n;s=M0n;o=M0n;for(b=new nd(e.i);b.a-1){for(a=Gkn(s,0);a.b!=a.d.c;){i=bG($6(a),131);i.v=u}while(s.b!=0){i=bG(Ujn(s,0),131);for(r=new nd(i.i);r.a-1){for(c=new nd(s);c.a0){continue}rw(o,t.Math.min(o.o,a.o-1));tw(o,o.i-1);o.i==0&&(Tm(s.c,o),true)}}}}function bWn(n,e,r,i,a){var c,u,s,o;o=y0n;u=false;s=oXn(n,r_(new PO(e.a,e.b),n),t_(new PO(r.a,r.b),a),r_(new PO(i.a,i.b),r));c=!!s&&!(t.Math.abs(s.a-n.a)<=Bne&&t.Math.abs(s.b-n.b)<=Bne||t.Math.abs(s.a-e.a)<=Bne&&t.Math.abs(s.b-e.b)<=Bne);s=oXn(n,r_(new PO(e.a,e.b),n),r,a);!!s&&((t.Math.abs(s.a-n.a)<=Bne&&t.Math.abs(s.b-n.b)<=Bne)==(t.Math.abs(s.a-e.a)<=Bne&&t.Math.abs(s.b-e.b)<=Bne)||c?o=t.Math.min(o,KQ(r_(s,r))):u=true);s=oXn(n,r_(new PO(e.a,e.b),n),i,a);!!s&&(u||(t.Math.abs(s.a-n.a)<=Bne&&t.Math.abs(s.b-n.b)<=Bne)==(t.Math.abs(s.a-e.a)<=Bne&&t.Math.abs(s.b-e.b)<=Bne)||c)&&(o=t.Math.min(o,KQ(r_(s,i))));return o}function wWn(n){dP(n,new dCn(BT(GT(_T(UT(HT(new vs,N4n),$4n),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new ye),i4n)));z4(n,N4n,f4n,tyn(PMe));z4(n,N4n,l4n,(Qx(),true));z4(n,N4n,g4n,tyn(OMe));z4(n,N4n,D4n,tyn(AMe));z4(n,N4n,d4n,tyn(LMe));z4(n,N4n,v4n,tyn(IMe));z4(n,N4n,b4n,tyn(NMe));z4(n,N4n,p4n,tyn($Me));z4(n,N4n,C4n,tyn(SMe));z4(n,N4n,O4n,tyn(jMe));z4(n,N4n,A4n,tyn(EMe));z4(n,N4n,L4n,tyn(CMe));z4(n,N4n,I4n,tyn(TMe))}function dWn(n){var e,t,r,i,a,c,u,s;e=null;for(r=new nd(n);r.a0&&t.c==0){!e&&(e=new im);Tm(e.c,t)}}if(e){while(e.c.length!=0){t=bG(s7(e,0),239);if(!!t.b&&t.b.c.length>0){for(a=(!t.b&&(t.b=new im),new nd(t.b));a.aCtn(n,t,0)){return new nA(i,t)}}else if(bM(lD(i.g,i.d[0]).a)>bM(lD(t.g,t.d[0]).a)){return new nA(i,t)}}}for(u=(!t.e&&(t.e=new im),t.e).Kc();u.Ob();){c=bG(u.Pb(),239);s=(!c.b&&(c.b=new im),c.b);l3(0,s.c.length);MC(s.c,0,t);c.c==s.c.length&&(Tm(e.c,c),true)}}}return null}function gWn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v;e.Ug("Interactive crossing minimization",1);c=0;for(a=new nd(n.b);a.a0){t+=s.n.a+s.o.a/2;++h}for(w=new nd(s.j);w.a0&&(t/=h);v=$nn(zht,C0n,28,r.a.c.length,15,1);u=0;for(o=new nd(r.a);o.a=u&&i<=s){if(u<=i&&a<=s){r+=2}else if(u<=i){n.b[r]=s+1;c+=2}else if(a<=s){t[f++]=i;t[f++]=u-1;r+=2}else{t[f++]=i;t[f++]=u-1;n.b[r]=s+1;c+=2}}else if(s2){h=new im;Dfn(h,new N2(p,1,p.b));c=jYn(h,k+n.a);m=new MDn(c);Yon(m,e);Tm(r.c,m)}else{i?m=bG(fQ(n.b,pIn(e)),272):m=bG(fQ(n.b,yIn(e)),272)}o=pIn(e);i&&(o=yIn(e));u=WOn(v,o);f=k+n.a;if(u.a){f+=t.Math.abs(v.b-l.b);g=new PO(l.a,(l.b+v.b)/2)}else{f+=t.Math.abs(v.a-l.a);g=new PO((l.a+v.a)/2,l.b)}i?jJ(n.d,e,new pTn(m,u,g,f)):jJ(n.c,e,new pTn(m,u,g,f));jJ(n.b,e,m);d=(!e.n&&(e.n=new gz(unt,e,1,7)),e.n);for(w=new _D(d);w.e!=w.i.gc();){b=bG(iyn(w),135);a=aHn(n,b,true,0,0);Tm(r.c,a)}}function mWn(n){var e,t,r,i,a,c,u;if(n.A.dc()){return}if(n.A.Hc((emn(),l9e))){bG(xJ(n.b,(UQn(),D8e)),127).k=true;bG(xJ(n.b,Y8e),127).k=true;e=n.q!=(FPn(),k8e)&&n.q!=m8e;_b(bG(xJ(n.b,$8e),127),e);_b(bG(xJ(n.b,n9e),127),e);_b(n.g,e);if(n.A.Hc(b9e)){bG(xJ(n.b,D8e),127).j=true;bG(xJ(n.b,Y8e),127).j=true;bG(xJ(n.b,$8e),127).k=true;bG(xJ(n.b,n9e),127).k=true;n.g.k=true}}if(n.A.Hc(h9e)){n.a.j=true;n.a.k=true;n.g.j=true;n.g.k=true;u=n.B.Hc((hUn(),y9e));for(i=Kkn(),a=0,c=i.length;a0),bG(f.a.Xb(f.c=--f.b),18));while(a!=r&&f.b>0){n.a[a.p]=true;n.a[r.p]=true;a=(PK(f.b>0),bG(f.a.Xb(f.c=--f.b),18))}f.b>0&&RQ(f)}}}}}function MWn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b;if(!n.b){return false}c=null;l=null;s=new qnn(null,null);i=1;s.a[1]=n.b;h=s;while(h.a[i]){o=i;u=l;l=h;h=h.a[i];r=n.a.Ne(e,h.d);i=r<0?0:1;r==0&&(!t.c||DJ(h.e,t.d))&&(c=h);if(!(!!h&&h.b)&&!KM(h.a[i])){if(KM(h.a[1-i])){l=l.a[o]=Cun(h,i)}else if(!KM(h.a[1-i])){b=l.a[1-o];if(b){if(!KM(b.a[1-o])&&!KM(b.a[o])){l.b=false;b.b=true;h.b=true}else{a=u.a[1]==l?1:0;KM(b.a[o])?u.a[a]=L4(l,o):KM(b.a[1-o])&&(u.a[a]=Cun(l,o));h.b=u.a[a].b=true;u.a[a].a[0].b=false;u.a[a].a[1].b=false}}}}}if(c){t.b=true;t.d=c.e;if(h!=c){f=new qnn(h.d,h.e);rIn(n,s,c,f);l==c&&(l=f)}l.a[l.a[1]==h?1:0]=h.a[!h.a[0]?1:0];--n.c}n.b=s.a[1];!!n.b&&(n.b.b=false);return t.b}function TWn(n){var e,r,i,a,c,u,s,o,f,h,l,b;for(a=new nd(n.a.a.b);a.a0?i-=864e5:i+=864e5;s=new _K(Rgn(Xon(e.q.getTime()),i))}f=new eT;o=n.a.length;for(a=0;a=97&&r<=122||r>=65&&r<=90){for(c=a+1;c=o){throw dm(new jM("Missing trailing '"))}c+1=14&&f<=16))){if(e.a._b(r)){!t.a?t.a=new vx(t.d):tL(t.a,t.b);nL(t.a,"[...]")}else{u=Uan(r);o=new lX(e);l7(t,PWn(u,o))}}else G$(r,183)?l7(t,LLn(bG(r,183))):G$(r,195)?l7(t,BPn(bG(r,195))):G$(r,201)?l7(t,hOn(bG(r,201))):G$(r,2111)?l7(t,HPn(bG(r,2111))):G$(r,53)?l7(t,ALn(bG(r,53))):G$(r,376)?l7(t,hNn(bG(r,376))):G$(r,846)?l7(t,OLn(bG(r,846))):G$(r,109)&&l7(t,ILn(bG(r,109)))}else{l7(t,r==null?CZn:fvn(r))}}return!t.a?t.c:t.e.length==0?t.a.a:t.a.a+(""+t.e)}function CWn(n,e){var t,r,i,a;a=n.F;if(e==null){n.F=null;wbn(n,null)}else{n.F=(cJ(e),e);r=BL(e,FCn(60));if(r!=-1){i=(Unn(0,r,e.length),e.substr(0,r));BL(e,FCn(46))==-1&&!T_(i,wZn)&&!T_(i,fie)&&!T_(i,hie)&&!T_(i,lie)&&!T_(i,bie)&&!T_(i,wie)&&!T_(i,die)&&!T_(i,gie)&&(i=vie);t=hx(e,FCn(62));t!=-1&&(i+=""+(w3(t+1,e.length+1),e.substr(t+1)));wbn(n,i)}else{i=e;if(BL(e,FCn(46))==-1){r=BL(e,FCn(91));r!=-1&&(i=(Unn(0,r,e.length),e.substr(0,r)));if(!T_(i,wZn)&&!T_(i,fie)&&!T_(i,hie)&&!T_(i,lie)&&!T_(i,bie)&&!T_(i,wie)&&!T_(i,die)&&!T_(i,gie)){i=vie;r!=-1&&(i+=""+(w3(r,e.length+1),e.substr(r)))}else{i=e}}wbn(n,i);i==e&&(n.F=n.D)}}(n.Db&4)!=0&&(n.Db&1)==0&&Pon(n,new vz(n,1,5,a,e))}function IWn(n,e){var t,r,i,a,c,u,s,o,f,h;s=e.length-1;u=(w3(s,e.length),e.charCodeAt(s));if(u==93){c=BL(e,FCn(91));if(c>=0){i=gvn(n,(Unn(1,c,e.length),e.substr(1,c-1)));f=(Unn(c+1,s,e.length),e.substr(c+1,s-(c+1)));return WJn(n,f,i)}}else{t=-1;zhe==null&&(zhe=new RegExp("\\d"));if(zhe.test(String.fromCharCode(u))){t=C_(e,FCn(46),s-1);if(t>=0){r=bG(z9(n,Iin(n,(Unn(1,t,e.length),e.substr(1,t-1))),false),61);o=0;try{o=TUn((w3(t+1,e.length+1),e.substr(t+1)),T1n,pZn)}catch(l){l=Ofn(l);if(G$(l,130)){a=l;throw dm(new Ltn(a))}else throw dm(l)}if(o>16==-10){t=bG(n.Cb,292).Yk(e,t)}else if(n.Db>>16==-15){!e&&(e=(rZn(),Jrt));!o&&(o=(rZn(),Jrt));if(n.Cb.Yh()){s=new Utn(n.Cb,1,13,o,e,Vyn(xtn(bG(n.Cb,62)),n),false);!t?t=s:t.nj(s)}}}else if(G$(n.Cb,90)){if(n.Db>>16==-23){G$(e,90)||(e=(rZn(),nit));G$(o,90)||(o=(rZn(),nit));if(n.Cb.Yh()){s=new Utn(n.Cb,1,10,o,e,Vyn(Y5(bG(n.Cb,29)),n),false);!t?t=s:t.nj(s)}}}else if(G$(n.Cb,457)){u=bG(n.Cb,850);c=(!u.b&&(u.b=new zp(new cy)),u.b);for(a=(r=new pon(new Kw(c.a).a),new Wp(r));a.a.b;){i=bG(jun(a.a).ld(),89);t=LWn(i,pRn(i,u),t)}}}return t}function NWn(n,e){var t,r,i,a,c,u,s,o,f,h,l;c=lM(yK(YDn(n,(IYn(),AFe))));l=bG(YDn(n,M_e),21);s=false;o=false;h=new _D((!n.c&&(n.c=new gz(ont,n,9,9)),n.c));while(h.e!=h.i.gc()&&(!s||!o)){a=bG(iyn(h),123);u=0;for(i=Dz(Yan(zfn(fT(Gce,1),jZn,20,0,[(!a.d&&(a.d=new g_(H7e,a,8,5)),a.d),(!a.e&&(a.e=new g_(H7e,a,7,4)),a.e)])));dDn(i);){r=bG(K9(i),74);f=c&&XNn(r)&&lM(yK(YDn(r,LFe)));t=RVn((!r.b&&(r.b=new g_(B7e,r,4,7)),r.b),a)?n==H0(vCn(bG(Yin((!r.c&&(r.c=new g_(B7e,r,5,8)),r.c),0),84))):n==H0(vCn(bG(Yin((!r.b&&(r.b=new g_(B7e,r,4,7)),r.b),0),84)));if(f||t){++u;if(u>1){break}}}u>0?s=true:l.Hc((uNn(),C8e))&&(!a.n&&(a.n=new gz(unt,a,1,7)),a.n).i>0&&(s=true);u>1&&(o=true)}s&&e.Fc((o_n(),M$e));o&&e.Fc((o_n(),T$e))}function $Wn(n){var e,r,i,a,c,u,s,o,f,h,l,b;b=bG(YDn(n,(JYn(),J4e)),21);if(b.dc()){return null}s=0;u=0;if(b.Hc((emn(),l9e))){h=bG(YDn(n,k6e),101);i=2;r=2;a=2;c=2;e=!H0(n)?bG(YDn(n,S4e),88):bG(YDn(H0(n),S4e),88);for(f=new _D((!n.c&&(n.c=new gz(ont,n,9,9)),n.c));f.e!=f.i.gc();){o=bG(iyn(f),123);l=bG(YDn(o,P6e),64);if(l==(UQn(),Z8e)){l=HGn(o,e);Pyn(o,P6e,l)}if(h==(FPn(),m8e)){switch(l.g){case 1:i=t.Math.max(i,o.i+o.g);break;case 2:r=t.Math.max(r,o.j+o.f);break;case 3:a=t.Math.max(a,o.i+o.g);break;case 4:c=t.Math.max(c,o.j+o.f)}}else{switch(l.g){case 1:i+=o.g+2;break;case 2:r+=o.f+2;break;case 3:a+=o.g+2;break;case 4:c+=o.f+2}}}s=t.Math.max(i,a);u=t.Math.max(r,c)}return iJn(n,s,u,true,true)}function DWn(n,e,r,i,a){var c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y;m=bG(v8(Ein(tY(new gX(null,new d3(e.d,16)),new Hg(r)),new Ug(r)),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)]))),15);l=pZn;h=T1n;for(o=new nd(e.b.j);o.a0;if(o){if(o){l=v.p;c?++l:--l;h=bG(Yq(v.c.a,l),10);r=hhn(h);b=!(ZRn(r,M,t[0])||oz(r,M,t[0]))}}else{b=true}}w=false;y=e.D.i;if(!!y&&!!y.c&&u.e){f=c&&y.p>0||!c&&y.p=0){s=null;u=new K4(f.a,o+1);while(u.bu?1:UL(isNaN(0),isNaN(u)))<0&&(null,lcn(C9n),(t.Math.abs(u-1)<=C9n||u==1||isNaN(u)&&isNaN(1)?0:u<1?-1:u>1?1:UL(isNaN(u),isNaN(1)))<0)&&(null,lcn(C9n),(t.Math.abs(0-s)<=C9n||0==s||isNaN(0)&&isNaN(s)?0:0s?1:UL(isNaN(0),isNaN(s)))<0)&&(null,lcn(C9n),(t.Math.abs(s-1)<=C9n||s==1||isNaN(s)&&isNaN(1)?0:s<1?-1:s>1?1:UL(isNaN(s),isNaN(1)))<0));return c}function UWn(n){var e,t,r,i;t=n.D!=null?n.D:n.B;e=BL(t,FCn(91));if(e!=-1){r=(Unn(0,e,t.length),t.substr(0,e));i=new YM;do{i.a+="["}while((e=hR(t,91,++e))!=-1);if(T_(r,wZn))i.a+="Z";else if(T_(r,fie))i.a+="B";else if(T_(r,hie))i.a+="C";else if(T_(r,lie))i.a+="D";else if(T_(r,bie))i.a+="F";else if(T_(r,wie))i.a+="I";else if(T_(r,die))i.a+="J";else if(T_(r,gie))i.a+="S";else{i.a+="L";i.a+=""+r;i.a+=";"}try{return null}catch(a){a=Ofn(a);if(!G$(a,63))throw dm(a)}}else if(BL(t,FCn(46))==-1){if(T_(t,wZn))return qht;else if(T_(t,fie))return Vht;else if(T_(t,hie))return Uht;else if(T_(t,lie))return zht;else if(T_(t,bie))return Wht;else if(T_(t,wie))return Ght;else if(T_(t,die))return Xht;else if(T_(t,gie))return Qht}return null}function GWn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T;n.e=e;u=QNn(e);M=new im;for(r=new nd(u);r.a=0&&d=f.c.c.length?h=X5((YIn(),rEe),tEe):h=X5((YIn(),tEe),tEe);h*=2;c=r.a.g;r.a.g=t.Math.max(c,c+(h-c));u=r.b.g;r.b.g=t.Math.max(u,u+(h-u));a=e}}}function zWn(n){var e,r,i,a;ES(tY(new gX(null,new d3(n.a.b,16)),new Ei),new Si);ePn(n);ES(tY(new gX(null,new d3(n.a.b,16)),new Pi),new Ci);if(n.c==(qgn(),M5e)){ES(tY(wrn(new gX(null,new d3(new Rw(n.f),1)),new Ii),new Oi),new Dg(n));ES(tY(rY(wrn(wrn(new gX(null,new d3(n.d.b,16)),new Ai),new Li),new Ni),new $i),new Rg(n))}a=new PO(y0n,y0n);e=new PO(M0n,M0n);for(i=new nd(n.a.b);i.a0&&(e.a+=MZn,e);JWn(bG(iyn(u),167),e)}e.a+=J4n;s=new iR((!r.c&&(r.c=new g_(B7e,r,5,8)),r.c));while(s.e!=s.i.gc()){s.e>0&&(e.a+=MZn,e);JWn(bG(iyn(s),167),e)}e.a+=")"}}}function YWn(n,e,r){var i,a,c,u,s,o,f,h;for(o=new _D((!n.a&&(n.a=new gz(snt,n,10,11)),n.a));o.e!=o.i.gc();){s=bG(iyn(o),27);for(a=new GV(sx(uRn(s).a.Kc(),new d));dDn(a);){i=bG(K9(a),74);!i.b&&(i.b=new g_(B7e,i,4,7));if(!(i.b.i<=1&&(!i.c&&(i.c=new g_(B7e,i,5,8)),i.c.i<=1))){throw dm(new OM("Graph must not contain hyperedges."))}if(!Y$n(i)&&s!=vCn(bG(Yin((!i.c&&(i.c=new g_(B7e,i,5,8)),i.c),0),84))){f=new FF;Yon(f,i);Ehn(f,(Tun(),wMe),i);Ub(f,bG(_A(GX(r.f,s)),153));Xb(f,bG(fQ(r,vCn(bG(Yin((!i.c&&(i.c=new g_(B7e,i,5,8)),i.c),0),84))),153));ED(e.c,f);for(u=new _D((!i.n&&(i.n=new gz(unt,i,1,7)),i.n));u.e!=u.i.gc();){c=bG(iyn(u),135);h=new x5(f,c.a);Yon(h,c);Ehn(h,wMe,c);h.e.a=t.Math.max(c.g,1);h.e.b=t.Math.max(c.f,1);rXn(h);ED(e.d,h)}}}}}function ZWn(n,e,r){var i,a,c,u,s,o,f,h,l,b;r.Ug("Node promotion heuristic",1);n.i=e;n.r=bG(lIn(e,(IYn(),UFe)),243);n.r!=(CHn(),ZBe)&&n.r!=nHe?HQn(n):a_n(n);h=bG(lIn(n.i,HFe),17).a;c=new dr;switch(n.r.g){case 2:case 1:aVn(n,c);break;case 3:n.r=uHe;aVn(n,c);o=0;for(s=new nd(n.b);s.an.k){n.r=eHe;aVn(n,c)}break;case 4:n.r=uHe;aVn(n,c);f=0;for(a=new nd(n.c);a.an.n){n.r=iHe;aVn(n,c)}break;case 6:b=c0(t.Math.ceil(n.g.length*h/100));aVn(n,new Tg(b));break;case 5:l=c0(t.Math.ceil(n.e*h/100));aVn(n,new jg(l));break;case 8:$Yn(n,true);break;case 9:$Yn(n,false);break;default:aVn(n,c)}n.r!=ZBe&&n.r!=nHe?tFn(n,e):XBn(n,e);r.Vg()}function nQn(n){var e,t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m;h=n.b;f=new K4(h,0);MF(f,new pQ(n));p=false;c=1;while(f.b0){b.d+=h.n.d;b.d+=h.d}if(b.a>0){b.a+=h.n.a;b.a+=h.d}if(b.b>0){b.b+=h.n.b;b.b+=h.d}if(b.c>0){b.c+=h.n.c;b.c+=h.d}return b}function tQn(n,e,r){var i,a,c,u,s,o,f,h,l,b,w,d;b=r.d;l=r.c;c=new PO(r.f.a+r.d.b+r.d.c,r.f.b+r.d.d+r.d.a);u=c.b;for(f=new nd(n.a);f.a0){n.c[e.c.p][e.p].d+=bRn(n.i,24)*X0n*.07000000029802322-.03500000014901161;n.c[e.c.p][e.p].a=n.c[e.c.p][e.p].d/n.c[e.c.p][e.p].b}}function cQn(n){var e,t,r,i,a,c,u,s,o,f,h,l,b,w,d,g;for(w=new nd(n);w.ai.d;i.d=t.Math.max(i.d,e);if(s&&r){i.d=t.Math.max(i.d,i.a);i.a=i.d+a}break;case 3:r=e>i.a;i.a=t.Math.max(i.a,e);if(s&&r){i.a=t.Math.max(i.a,i.d);i.d=i.a+a}break;case 2:r=e>i.c;i.c=t.Math.max(i.c,e);if(s&&r){i.c=t.Math.max(i.b,i.c);i.b=i.c+a}break;case 4:r=e>i.b;i.b=t.Math.max(i.b,e);if(s&&r){i.b=t.Math.max(i.b,i.c);i.c=i.b+a}}}}}function oQn(n,e){var t,r,i,a,c,u,s,o,f;o="";if(e.length==0){return n.ne(A1n,I1n,-1,-1)}f=UAn(e);T_(f.substr(0,3),"at ")&&(f=(w3(3,f.length+1),f.substr(3)));f=f.replace(/\[.*?\]/g,"");c=f.indexOf("(");if(c==-1){c=f.indexOf("@");if(c==-1){o=f;f=""}else{o=UAn((w3(c+1,f.length+1),f.substr(c+1)));f=UAn((Unn(0,c,f.length),f.substr(0,c)))}}else{t=f.indexOf(")",c);o=(Unn(c+1,t,f.length),f.substr(c+1,t-(c+1)));f=UAn((Unn(0,c,f.length),f.substr(0,c)))}c=BL(f,FCn(46));c!=-1&&(f=(w3(c+1,f.length+1),f.substr(c+1)));(f.length==0||T_(f,"Anonymous function"))&&(f=I1n);u=hx(o,FCn(58));i=C_(o,FCn(58),u-1);s=-1;r=-1;a=A1n;if(u!=-1&&i!=-1){a=(Unn(0,i,o.length),o.substr(0,i));s=oR((Unn(i+1,u,o.length),o.substr(i+1,u-(i+1))));r=oR((w3(u+1,o.length+1),o.substr(u+1)))}return n.ne(a,f,s,r)}function fQn(n){var e,t,r,i,a,c,u,s,o,f,h;for(o=new nd(n);o.a0||f.j==n9e&&f.e.c.length-f.g.c.length<0)){e=false;break}for(i=new nd(f.g);i.a=f&&M>=v){b+=d.n.b+g.n.b+g.a.b-y;++s}}}}if(r){for(u=new nd(m.e);u.a=f&&M>=v){b+=d.n.b+g.n.b+g.a.b-y;++s}}}}}if(s>0){T+=b/s;++w}}if(w>0){e.a=a*T/w;e.g=w}else{e.a=0;e.g=0}}function lQn(n){var e,t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T;a=n.f.b;l=a.a;f=a.b;w=n.e.g;b=n.e.f;jN(n.e,a.a,a.b);M=l/w;T=f/b;for(o=new _D(BJ(n.e));o.e!=o.i.gc();){s=bG(iyn(o),135);San(s,s.i*M);Pan(s,s.j*T)}for(p=new _D(HJ(n.e));p.e!=p.i.gc();){v=bG(iyn(p),123);k=v.i;y=v.j;k>0&&San(v,k*M);y>0&&Pan(v,y*T)}ron(n.b,new ge);e=new im;for(u=new pon(new Kw(n.c).a);u.b;){c=jun(u);r=bG(c.ld(),74);t=bG(c.md(),407).a;i=t_n(r,false,false);h=rCn(pIn(r),NOn(i),t);wqn(h,i);m=mIn(r);if(!!m&&Ctn(e,m,0)==-1){Tm(e.c,m);sY(m,(PK(h.b!=0),bG(h.a.a.c,8)),t)}}for(g=new pon(new Kw(n.d).a);g.b;){d=jun(g);r=bG(d.ld(),74);t=bG(d.md(),407).a;i=t_n(r,false,false);h=rCn(yIn(r),gln(NOn(i)),t);h=gln(h);wqn(h,i);m=kIn(r);if(!!m&&Ctn(e,m,0)==-1){Tm(e.c,m);sY(m,(PK(h.b!=0),bG(h.c.b.c,8)),t)}}}function bQn(n,e,t,r){var i,a,c,u,s;u=new OQn(e);wKn(u,r);i=true;if(!!n&&n.pf((JYn(),S4e))){a=bG(n.of((JYn(),S4e)),88);i=a==(Bdn(),h5e)||a==o5e||a==f5e}sBn(u,false);Lin(u.e.Rf(),new _B(u,false,i));n0(u,u.f,(ran(),rpe),(UQn(),D8e));n0(u,u.f,ape,Y8e);n0(u,u.g,rpe,n9e);n0(u,u.g,ape,$8e);yyn(u,D8e);yyn(u,Y8e);$J(u,$8e);$J(u,n9e);ZK();c=u.A.Hc((emn(),f9e))&&u.B.Hc((hUn(),k9e))?Bpn(u):null;!!c&&kT(u.a,c);sQn(u);XTn(u);VTn(u);mWn(u);hGn(u);sEn(u);kkn(u,D8e);kkn(u,Y8e);$Bn(u);CVn(u);if(!t){return u.o}mvn(u);oEn(u);kkn(u,$8e);kkn(u,n9e);s=u.B.Hc((hUn(),y9e));kLn(u,s,D8e);kLn(u,s,Y8e);yLn(u,s,$8e);yLn(u,s,n9e);ES(new gX(null,new d3(new Gw(u.i),0)),new Nn);ES(tY(new gX(null,GW(u.r).a.oc()),new $n),new Dn);IPn(u);u.e.Pf(u.o);ES(new gX(null,GW(u.r).a.oc()),new xn);return u.o}function wQn(n){var e,r,i,a,c,u,s,o,f,h,l,b,w,d,g;f=y0n;for(i=new nd(n.a.b);i.a1){w=new $Vn(d,k,i);Y8(k,new XI(n,w));Tm(u.c,w);for(l=k.a.ec().Kc();l.Ob();){h=bG(l.Pb(),42);Ttn(c,h.b)}}if(s.a.gc()>1){w=new $Vn(d,s,i);Y8(s,new VI(n,w));Tm(u.c,w);for(l=s.a.ec().Kc();l.Ob();){h=bG(l.Pb(),42);Ttn(c,h.b)}}}}function kQn(n,e,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p;g=n.n;v=n.o;b=n.d;l=bM(MK(Dpn(n,(IYn(),$_e))));if(e){h=l*(e.gc()-1);w=0;for(o=e.Kc();o.Ob();){u=bG(o.Pb(),10);h+=u.o.a;w=t.Math.max(w,u.o.b)}p=g.a-(h-v.a)/2;c=g.b-b.d+w;i=v.a/(e.gc()+1);a=i;for(s=e.Kc();s.Ob();){u=bG(s.Pb(),10);u.n.a=p;u.n.b=c-u.o.b;p+=u.o.a+l;f=ORn(u);f.n.a=u.o.a/2-f.a.a;f.n.b=u.o.b;d=bG(lIn(u,(WYn(),z$e)),12);if(d.e.c.length+d.g.c.length==1){d.n.a=a-d.a.a;d.n.b=0;l2(d,n)}a+=i}}if(r){h=l*(r.gc()-1);w=0;for(o=r.Kc();o.Ob();){u=bG(o.Pb(),10);h+=u.o.a;w=t.Math.max(w,u.o.b)}p=g.a-(h-v.a)/2;c=g.b+v.b+b.a-w;i=v.a/(r.gc()+1);a=i;for(s=r.Kc();s.Ob();){u=bG(s.Pb(),10);u.n.a=p;u.n.b=c;p+=u.o.a+l;f=ORn(u);f.n.a=u.o.a/2-f.a.a;f.n.b=0;d=bG(lIn(u,(WYn(),z$e)),12);if(d.e.c.length+d.g.c.length==1){d.n.a=a-d.a.a;d.n.b=v.b;l2(d,n)}a+=i}}}function yQn(n,e){var r,i,a,c,u,s;if(!bG(lIn(e,(WYn(),oDe)),21).Hc((o_n(),M$e))){return}for(s=new nd(e.a);s.a=0&&c0&&(bG(xJ(n.b,e),127).a.b=r)}function CQn(n,e,t,r){var i,a,c,u,s,o,f,h,l,b,w,d;l=bM(MK(lIn(n,(IYn(),q_e))));b=bM(MK(lIn(n,X_e)));h=bM(MK(lIn(n,U_e)));u=n.o;a=bG(Yq(n.j,0),12);c=a.n;d=dAn(a,h);if(!d){return}if(e.Hc((uNn(),C8e))){switch(bG(lIn(n,(WYn(),cDe)),64).g){case 1:d.c=(u.a-d.b)/2-c.a;d.d=b;break;case 3:d.c=(u.a-d.b)/2-c.a;d.d=-b-d.a;break;case 2:if(t&&a.e.c.length==0&&a.g.c.length==0){f=r?d.a:bG(Yq(a.f,0),72).o.b;d.d=(u.b-f)/2-c.b}else{d.d=u.b+b-c.b}d.c=-l-d.b;break;case 4:if(t&&a.e.c.length==0&&a.g.c.length==0){f=r?d.a:bG(Yq(a.f,0),72).o.b;d.d=(u.b-f)/2-c.b}else{d.d=u.b+b-c.b}d.c=l}}else if(e.Hc(O8e)){switch(bG(lIn(n,(WYn(),cDe)),64).g){case 1:case 3:d.c=c.a+l;break;case 2:case 4:if(t&&!a.c){f=r?d.a:bG(Yq(a.f,0),72).o.b;d.d=(u.b-f)/2-c.b}else{d.d=c.b+b}}}i=d.d;for(o=new nd(a.f);o.a=n.length)return{done:true};var r=n[t++];return{value:[r,e.get(r)],done:false}}}};if(!q_n()){n.prototype.createObject=function(){return{}};n.prototype.get=function(n){return this.obj[":"+n]};n.prototype.set=function(n,e){this.obj[":"+n]=e};n.prototype[H0n]=function(n){delete this.obj[":"+n]};n.prototype.keys=function(){var n=[];for(var e in this.obj){e.charCodeAt(0)==58&&n.push(e.substring(1))}return n}}return n}function DQn(){DQn=O;qze=new Np(j4n);new Np(E4n);new bF("DEPTH",Bwn(0));Nze=new bF("FAN",Bwn(0));Aze=new bF(W9n,Bwn(0));Jze=new bF("ROOT",(Qx(),false));Fze=new bF("LEFTNEIGHBOR",null);Wze=new bF("RIGHTNEIGHBOR",null);_ze=new bF("LEFTSIBLING",null);Qze=new bF("RIGHTSIBLING",null);Lze=new bF("DUMMY",false);new bF("LEVEL",Bwn(0));zze=new bF("REMOVABLE_EDGES",new vS);Yze=new bF("XCOOR",Bwn(0));Zze=new bF("YCOOR",Bwn(0));Bze=new bF("LEVELHEIGHT",0);Uze=new bF("LEVELMIN",0);Hze=new bF("LEVELMAX",0);Dze=new bF("GRAPH_XMIN",0);Rze=new bF("GRAPH_YMIN",0);$ze=new bF("GRAPH_XMAX",0);xze=new bF("GRAPH_YMAX",0);Oze=new bF("COMPACT_LEVEL_ASCENSION",false);Ize=new bF("COMPACT_CONSTRAINTS",new im);Kze=new bF("ID","");Xze=new bF("POSITION",Bwn(0));Vze=new bF("PRELIM",0);Gze=new bF("MODIFIER",0);Cze=new Np(S4n);Pze=new Np(P4n)}function xQn(n){KGn();var e,t,r,i,a,c,u,s,o,f,h,l,b,w,d,g;if(n==null)return null;h=n.length*8;if(h==0){return""}u=h%24;b=h/24|0;l=u!=0?b+1:b;a=null;a=$nn(Uht,L1n,28,l*4,15,1);o=0;f=0;e=0;t=0;r=0;c=0;i=0;for(s=0;s>24;o=(e&3)<<24>>24;w=(e&-128)==0?e>>2<<24>>24:(e>>2^192)<<24>>24;d=(t&-128)==0?t>>4<<24>>24:(t>>4^240)<<24>>24;g=(r&-128)==0?r>>6<<24>>24:(r>>6^252)<<24>>24;a[c++]=Uft[w];a[c++]=Uft[d|o<<4];a[c++]=Uft[f<<2|g];a[c++]=Uft[r&63]}if(u==8){e=n[i];o=(e&3)<<24>>24;w=(e&-128)==0?e>>2<<24>>24:(e>>2^192)<<24>>24;a[c++]=Uft[w];a[c++]=Uft[o<<4];a[c++]=61;a[c++]=61}else if(u==16){e=n[i];t=n[i+1];f=(t&15)<<24>>24;o=(e&3)<<24>>24;w=(e&-128)==0?e>>2<<24>>24:(e>>2^192)<<24>>24;d=(t&-128)==0?t>>4<<24>>24:(t>>4^240)<<24>>24;a[c++]=Uft[w];a[c++]=Uft[d|o<<4];a[c++]=Uft[f<<2];a[c++]=61}return Tmn(a,0,a.length)}function RQn(n,e){var r,i,a,c,u,s,o;n.e==0&&n.p>0&&(n.p=-(n.p-1));n.p>T1n&&G5(e,n.p-V1n);u=e.q.getDate();E0(e,1);n.k>=0&&V0(e,n.k);if(n.c>=0){E0(e,n.c)}else if(n.k>=0){o=new Rhn(e.q.getFullYear()-V1n,e.q.getMonth(),35);i=35-o.q.getDate();E0(e,t.Math.min(i,u))}else{E0(e,u)}n.f<0&&(n.f=e.q.getHours());n.b>0&&n.f<12&&(n.f+=12);cD(e,n.f==24&&n.g?0:n.f);n.j>=0&&S7(e,n.j);n.n>=0&&Knn(e,n.n);n.i>=0&&CL(e,Rgn(Kgn(pSn(Xon(e.q.getTime()),N1n),N1n),n.i));if(n.a){a=new eS;G5(a,a.q.getFullYear()-V1n-80);FP(Xon(e.q.getTime()),Xon(a.q.getTime()))&&G5(e,a.q.getFullYear()-V1n+100)}if(n.d>=0){if(n.c==-1){r=(7+n.d-e.q.getDay())%7;r>3&&(r-=7);s=e.q.getMonth();E0(e,e.q.getDate()+r);e.q.getMonth()!=s&&E0(e,e.q.getDate()+(r>0?-7:7))}else{if(e.q.getDay()!=n.d){return false}}}if(n.o>T1n){c=e.q.getTimezoneOffset();CL(e,Rgn(Xon(e.q.getTime()),(n.o-c)*60*N1n))}return true}function KQn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k;i=lIn(e,(WYn(),EDe));if(!G$(i,207)){return}w=bG(i,27);d=e.e;l=new uN(e.c);a=e.d;l.a+=a.b;l.b+=a.d;k=bG(YDn(w,(IYn(),c_e)),181);if(Fx(k,(hUn(),v9e))){b=bG(YDn(w,s_e),107);xb(b,a.a);qb(b,a.d);Rb(b,a.b);Gb(b,a.c)}t=new im;for(f=new nd(e.a);f.ar.c.length-1){ED(r,new nA(_3n,U9n))}t=bG(lIn(i,_We),17).a;if(dN(bG(lIn(n,wWe),88))){i.e.abM(MK((b3(t,r.c.length),bG(r.c[t],42)).b))&&ww((b3(t,r.c.length),bG(r.c[t],42)),i.e.a+i.f.a)}else{i.e.bbM(MK((b3(t,r.c.length),bG(r.c[t],42)).b))&&ww((b3(t,r.c.length),bG(r.c[t],42)),i.e.b+i.f.b)}}for(a=Gkn(n.b,0);a.b!=a.d.c;){i=bG($6(a),40);t=bG(lIn(i,(eqn(),_We)),17).a;Ehn(i,(DQn(),Uze),MK((b3(t,r.c.length),bG(r.c[t],42)).a));Ehn(i,Hze,MK((b3(t,r.c.length),bG(r.c[t],42)).b))}e.Vg()}function HQn(n){var e,r,i,a,c,u,s,o,f,h,l,b,w,g,v;n.o=bM(MK(lIn(n.i,(IYn(),V_e))));n.f=bM(MK(lIn(n.i,B_e)));n.j=n.i.b.c.length;s=n.j-1;b=0;n.k=0;n.n=0;n.b=a7($nn(tle,XZn,17,n.j,0,1));n.c=a7($nn(Yhe,XZn,345,n.j,7,1));for(u=new nd(n.i.b);u.a0&&ED(n.q,h);ED(n.p,h)}e-=i;w=o+e;f+=e*n.f;r9(n.b,s,Bwn(w));r9(n.c,s,f);n.k=t.Math.max(n.k,w);n.n=t.Math.max(n.n,f);n.e+=e;e+=v}}function UQn(){UQn=O;var n;Z8e=new HO(J2n,0);D8e=new HO(c3n,1);$8e=new HO(u3n,2);Y8e=new HO(s3n,3);n9e=new HO(o3n,4);_8e=(dZ(),new aT((n=bG(Pj(e9e),9),new aB(n,bG(PF(n,n.length),9),0))));B8e=Kwn(nV(D8e,zfn(fT(e9e,1),X4n,64,0,[])));x8e=Kwn(nV($8e,zfn(fT(e9e,1),X4n,64,0,[])));W8e=Kwn(nV(Y8e,zfn(fT(e9e,1),X4n,64,0,[])));J8e=Kwn(nV(n9e,zfn(fT(e9e,1),X4n,64,0,[])));X8e=Kwn(nV(D8e,zfn(fT(e9e,1),X4n,64,0,[Y8e])));F8e=Kwn(nV($8e,zfn(fT(e9e,1),X4n,64,0,[n9e])));z8e=Kwn(nV(D8e,zfn(fT(e9e,1),X4n,64,0,[n9e])));H8e=Kwn(nV(D8e,zfn(fT(e9e,1),X4n,64,0,[$8e])));Q8e=Kwn(nV(Y8e,zfn(fT(e9e,1),X4n,64,0,[n9e])));R8e=Kwn(nV($8e,zfn(fT(e9e,1),X4n,64,0,[Y8e])));q8e=Kwn(nV(D8e,zfn(fT(e9e,1),X4n,64,0,[$8e,n9e])));K8e=Kwn(nV($8e,zfn(fT(e9e,1),X4n,64,0,[Y8e,n9e])));V8e=Kwn(nV(D8e,zfn(fT(e9e,1),X4n,64,0,[Y8e,n9e])));U8e=Kwn(nV(D8e,zfn(fT(e9e,1),X4n,64,0,[$8e,Y8e])));G8e=Kwn(nV(D8e,zfn(fT(e9e,1),X4n,64,0,[$8e,Y8e,n9e])))}function GQn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T;e.Ug(T6n,1);d=new im;M=new im;for(o=new nd(n.b);o.a0&&(y-=w);ZVn(u,y);h=0;for(b=new nd(u.a);b.a0);s.a.Xb(s.c=--s.b)}o=.4*i*h;!c&&s.b0){s=(w3(0,e.length),e.charCodeAt(0));if(s!=64){if(s==37){h=e.lastIndexOf("%");o=false;if(h!=0&&(h==l-1||(o=(w3(h+1,e.length),e.charCodeAt(h+1)==46)))){c=(Unn(1,h,e.length),e.substr(1,h-1));m=T_("%",c)?null:uJn(c);r=0;if(o){try{r=TUn((w3(h+2,e.length+1),e.substr(h+2)),T1n,pZn)}catch(k){k=Ofn(k);if(G$(k,130)){u=k;throw dm(new Ltn(u))}else throw dm(k)}}for(g=Eun(n.Gh());g.Ob();){w=Uon(g);if(G$(w,519)){i=bG(w,598);p=i.d;if((m==null?p==null:T_(m,p))&&r--==0){return i}}}return null}}f=e.lastIndexOf(".");b=f==-1?e:(Unn(0,f,e.length),e.substr(0,f));t=0;if(f!=-1){try{t=TUn((w3(f+1,e.length+1),e.substr(f+1)),T1n,pZn)}catch(k){k=Ofn(k);if(G$(k,130)){b=e}else throw dm(k)}}b=T_("%",b)?null:uJn(b);for(d=Eun(n.Gh());d.Ob();){w=Uon(d);if(G$(w,197)){a=bG(w,197);v=a.xe();if((b==null?v==null:T_(b,v))&&t--==0){return a}}}return null}}return IWn(n,e)}function nJn(n){var e,t,r,i,a,c,u,s,o,f,h,l,b,w,g,v,p,m;f=new rm;s=new U1;for(r=new nd(n.a.a.b);r.ae.d.c){b=n.c[e.a.d];v=n.c[h.a.d];if(b==v){continue}HKn(BS(_S(HS(FS(new bk,1),100),b),v))}}}}}}}function eJn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T;b=bG(bG(r7(n.r,e),21),87);if(e==(UQn(),$8e)||e==n9e){PQn(n,e);return}c=e==D8e?(ufn(),dme):(ufn(),pme);y=e==D8e?(rrn(),Epe):(rrn(),Tpe);r=bG(xJ(n.b,e),127);i=r.i;a=i.c+Cin(zfn(fT(zht,1),C0n,28,15,[r.n.b,n.C.b,n.k]));p=i.c+i.b-Cin(zfn(fT(zht,1),C0n,28,15,[r.n.c,n.C.c,n.k]));u=CT(XB(c),n.t);m=e==D8e?M0n:y0n;for(l=b.Kc();l.Ob();){f=bG(l.Pb(),117);if(!f.c||f.c.d.c.length<=0){continue}v=f.b.Mf();g=f.e;w=f.c;d=w.i;d.b=(o=w.n,w.e.a+o.b+o.c);d.a=(s=w.n,w.e.b+s.d+s.a);i1(y,z2n);w.f=y;uen(w,(Uen(),wpe));d.c=g.a-(d.b-v.a)/2;M=t.Math.min(a,g.a);T=t.Math.max(p,g.a+v.a);d.cT&&(d.c=T-d.b);ED(u.d,new iV(d,Vdn(u,d)));m=e==D8e?t.Math.max(m,g.b+f.b.Mf().b):t.Math.min(m,g.b)}m+=e==D8e?n.t:-n.t;k=fpn((u.e=m,u));k>0&&(bG(xJ(n.b,e),127).a.b=k);for(h=b.Kc();h.Ob();){f=bG(h.Pb(),117);if(!f.c||f.c.d.c.length<=0){continue}d=f.c.i;d.c-=f.e.a;d.d-=f.e.b}}function tJn(n){var e,t,r,i,a,c,u,s,o,f,h,l,b;e=new rm;for(s=new _D(n);s.e!=s.i.gc();){u=bG(iyn(s),27);t=new uk;jJ(Zke,u,t);b=new he;i=bG(v8(new gX(null,new RW(new GV(sx(cRn(u).a.Kc(),new d)))),VX(b,gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)])))),85);rcn(t,bG(i.xc((Qx(),true)),16),new le);r=bG(v8(tY(bG(i.xc(false),15).Lc(),new be),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[Lde]))),15);for(c=r.Kc();c.Ob();){a=bG(c.Pb(),74);l=mIn(a);if(l){o=bG(_A(GX(e.f,l)),21);if(!o){o=CFn(l);ZAn(e.f,l,o)}esn(t,o)}}i=bG(v8(new gX(null,new RW(new GV(sx(uRn(u).a.Kc(),new d)))),VX(b,gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[Lde])))),85);rcn(t,bG(i.xc(true),16),new we);r=bG(v8(tY(bG(i.xc(false),15).Lc(),new de),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[Lde]))),15);for(h=r.Kc();h.Ob();){f=bG(h.Pb(),74);l=kIn(f);if(l){o=bG(_A(GX(e.f,l)),21);if(!o){o=CFn(l);ZAn(e.f,l,o)}esn(t,o)}}}}function rJn(n,e){MXn();var t,r,i,a,c,u,s,o,f,h,l,b,w,d;s=kwn(n,0)<0;s&&(n=Ptn(n));if(kwn(n,0)==0){switch(e){case 0:return"0";case 1:return L0n;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:b=new nT;e<0?(b.a+="0E+",b):(b.a+="0E",b);b.a+=e==T1n?"2147483648":""+-e;return b.a}}f=18;h=$nn(Uht,L1n,28,f+1,15,1);t=f;d=n;do{o=d;d=pSn(d,10);h[--t]=MV(Rgn(48,Fgn(o,Kgn(d,10))))&$1n}while(kwn(d,0)!=0);i=Fgn(Fgn(Fgn(f,t),e),1);if(e==0){s&&(h[--t]=45);return Tmn(h,t,f-t)}if(e>0&&kwn(i,-6)>=0){if(kwn(i,0)>=0){a=t+MV(i);for(u=f-1;u>=a;u--){h[u+1]=h[u]}h[++a]=46;s&&(h[--t]=45);return Tmn(h,t,f-t+1)}for(c=2;FP(c,Rgn(Ptn(i),1));c++){h[--t]=48}h[--t]=46;h[--t]=48;s&&(h[--t]=45);return Tmn(h,t,f-t)}w=t+1;r=f;l=new eT;s&&(l.a+="-",l);if(r-w>=1){IQ(l,h[t]);l.a+=".";l.a+=Tmn(h,t+1,f-t-1)}else{l.a+=Tmn(h,t,f-t)}l.a+="E";kwn(i,0)>0&&(l.a+="+",l);l.a+=""+lz(i);return l.a}function iJn(n,e,r,i,a){var c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T;v=new PO(n.g,n.f);g=BAn(n);g.a=t.Math.max(g.a,e);g.b=t.Math.max(g.b,r);T=g.a/v.a;h=g.b/v.b;y=g.a-v.a;o=g.b-v.b;if(i){u=!H0(n)?bG(YDn(n,(JYn(),S4e)),88):bG(YDn(H0(n),(JYn(),S4e)),88);s=BA(YDn(n,(JYn(),k6e)))===BA((FPn(),m8e));for(m=new _D((!n.c&&(n.c=new gz(ont,n,9,9)),n.c));m.e!=m.i.gc();){p=bG(iyn(m),123);k=bG(YDn(p,P6e),64);if(k==(UQn(),Z8e)){k=HGn(p,u);Pyn(p,P6e,k)}switch(k.g){case 1:s||San(p,p.i*T);break;case 2:San(p,p.i+y);s||Pan(p,p.j*h);break;case 3:s||San(p,p.i*T);Pan(p,p.j+o);break;case 4:s||Pan(p,p.j*h)}}}jN(n,g.a,g.b);if(a){for(b=new _D((!n.n&&(n.n=new gz(unt,n,1,7)),n.n));b.e!=b.i.gc();){l=bG(iyn(b),135);w=l.i+l.g/2;d=l.j+l.f/2;M=w/v.a;f=d/v.b;if(M+f>=1){if(M-f>0&&d>=0){San(l,l.i+y);Pan(l,l.j+o*f)}else if(M-f<0&&w>=0){San(l,l.i+y*M);Pan(l,l.j+o)}}}}Pyn(n,(JYn(),J4e),(emn(),c=bG(Pj(w9e),9),new aB(c,bG(PF(c,c.length),9),0)));return new PO(T,h)}function aJn(n){dP(n,new dCn(BT(GT(_T(UT(HT(new vs,D7n),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new $u),D7n)));z4(n,D7n,l9n,tyn(VJe));z4(n,D7n,c4n,tyn(nYe));z4(n,D7n,g4n,tyn(_Je));z4(n,D7n,D4n,tyn(BJe));z4(n,D7n,d4n,tyn(HJe));z4(n,D7n,v4n,tyn(FJe));z4(n,D7n,b4n,tyn(UJe));z4(n,D7n,p4n,tyn(XJe));z4(n,D7n,S7n,tyn(RJe));z4(n,D7n,E7n,tyn(KJe));z4(n,D7n,j7n,tyn(WJe));z4(n,D7n,O7n,tyn(YJe));z4(n,D7n,A7n,tyn(QJe));z4(n,D7n,L7n,tyn(JJe));z4(n,D7n,I7n,tyn(GJe));z4(n,D7n,M7n,tyn(qJe));z4(n,D7n,T7n,tyn(zJe));z4(n,D7n,P7n,tyn(ZJe));z4(n,D7n,C7n,tyn(eYe));z4(n,D7n,y7n,tyn(xJe))}function cJn(n){var e,t,r,i,a,c,u,s,o,f,h;if(n==null){throw dm(new iT(CZn))}o=n;a=n.length;s=false;if(a>0){e=(w3(0,n.length),n.charCodeAt(0));if(e==45||e==43){n=(w3(1,n.length+1),n.substr(1));--a;s=e==45}}if(a==0){throw dm(new iT(k0n+o+'"'))}while(n.length>0&&(w3(0,n.length),n.charCodeAt(0)==48)){n=(w3(1,n.length+1),n.substr(1));--a}if(a>(vGn(),hle)[10]){throw dm(new iT(k0n+o+'"'))}for(i=0;i0){h=-parseInt((Unn(0,r,n.length),n.substr(0,r)),10);n=(w3(r,n.length+1),n.substr(r));a-=r;t=false}while(a>=c){r=parseInt((Unn(0,c,n.length),n.substr(0,c)),10);n=(w3(c,n.length+1),n.substr(c));a-=c;if(t){t=false}else{if(kwn(h,u)<0){throw dm(new iT(k0n+o+'"'))}h=Kgn(h,f)}h=Fgn(h,r)}if(kwn(h,0)>0){throw dm(new iT(k0n+o+'"'))}if(!s){h=Ptn(h);if(kwn(h,0)<0){throw dm(new iT(k0n+o+'"'))}}return h}function uJn(n){rVn();var e,t,r,i,a,c,u,s;if(n==null)return null;i=BL(n,FCn(37));if(i<0){return n}else{s=new vx((Unn(0,i,n.length),n.substr(0,i)));e=$nn(Vht,rte,28,4,15,1);u=0;r=0;for(c=n.length;ii+2&&Thn((w3(i+1,n.length),n.charCodeAt(i+1)),trt,rrt)&&Thn((w3(i+2,n.length),n.charCodeAt(i+2)),trt,rrt)){t=xG((w3(i+1,n.length),n.charCodeAt(i+1)),(w3(i+2,n.length),n.charCodeAt(i+2)));i+=2;if(r>0){(t&192)==128?e[u++]=t<<24>>24:r=0}else if(t>=128){if((t&224)==192){e[u++]=t<<24>>24;r=2}else if((t&240)==224){e[u++]=t<<24>>24;r=3}else if((t&248)==240){e[u++]=t<<24>>24;r=4}}if(r>0){if(u==r){switch(u){case 2:{IQ(s,((e[0]&31)<<6|e[1]&63)&$1n);break}case 3:{IQ(s,((e[0]&15)<<12|(e[1]&63)<<6|e[2]&63)&$1n);break}}u=0;r=0}}else{for(a=0;a=2){if((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a).i==0){r=(yj(),a=new uo,a);cen((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a),r)}else if((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a).i>1){b=new iR((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a));while(b.e!=b.i.gc()){FSn(b)}}wqn(e,bG(Yin((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a),0),166))}if(l){for(i=new _D((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a));i.e!=i.i.gc();){r=bG(iyn(i),166);for(f=new _D((!r.a&&(r.a=new PD(K7e,r,5)),r.a));f.e!=f.i.gc();){o=bG(iyn(f),377);s.a=t.Math.max(s.a,o.a);s.b=t.Math.max(s.b,o.b)}}}for(u=new _D((!n.n&&(n.n=new gz(unt,n,1,7)),n.n));u.e!=u.i.gc();){c=bG(iyn(u),135);h=bG(YDn(c,_5e),8);!!h&&EN(c,h.a,h.b);if(l){s.a=t.Math.max(s.a,c.i+c.g);s.b=t.Math.max(s.b,c.j+c.f)}}return s}function oJn(n,e,t,r,i){var a,c,u;mrn(n,e);c=e[0];a=ZJ(t.c,0);u=-1;if(tln(t)){if(r>0){if(c+r>n.length){return false}u=HNn((Unn(0,c+r,n.length),n.substr(0,c+r)),e)}else{u=HNn(n,e)}}switch(a){case 71:u=JOn(n,c,zfn(fT(vle,1),XZn,2,6,[W1n,Q1n]),e);i.e=u;return true;case 77:return f_n(n,e,i,u,c);case 76:return h_n(n,e,i,u,c);case 69:return JAn(n,e,c,i);case 99:return YAn(n,e,c,i);case 97:u=JOn(n,c,zfn(fT(vle,1),XZn,2,6,["AM","PM"]),e);i.b=u;return true;case 121:return l_n(n,e,c,u,t,i);case 100:if(u<=0){return false}i.c=u;return true;case 83:if(u<0){return false}return cpn(u,c,e[0],i);case 104:u==12&&(u=0);case 75:case 72:if(u<0){return false}i.f=u;i.g=false;return true;case 107:if(u<0){return false}i.f=u;i.g=true;return true;case 109:if(u<0){return false}i.j=u;return true;case 115:if(u<0){return false}i.n=u;return true;case 90:if(cE[o]&&(v=o);for(l=new nd(n.a.b);l.a1){a=aKn(e);l=c.g;d=bG(YDn(e,AZe),107);g=bM(MK(YDn(e,dZe)));(!e.a&&(e.a=new gz(snt,e,10,11)),e.a).i>1&&bM(MK(YDn(e,(vBn(),GYe))))!=y0n&&(c.c+(d.b+d.c))/(c.b+(d.d+d.a))1&&bM(MK(YDn(e,(vBn(),UYe))))!=y0n&&(c.c+(d.b+d.c))/(c.b+(d.d+d.a))>g&&Pyn(a,(vBn(),VYe),t.Math.max(bM(MK(YDn(e,qYe))),bM(MK(YDn(a,VYe)))-bM(MK(YDn(e,UYe)))));w=new jO(i,h);o=EYn(w,a,b);f=o.g;if(f>=l&&f==f){for(u=0;u<(!a.a&&(a.a=new gz(snt,a,10,11)),a.a).i;u++){TNn(n,bG(Yin((!a.a&&(a.a=new gz(snt,a,10,11)),a.a),u),27),bG(Yin((!e.a&&(e.a=new gz(snt,e,10,11)),e.a),u),27))}$in(e,w);B1(c,o.c);_1(c,o.b)}--s}Pyn(e,(vBn(),KYe),c.b);Pyn(e,FYe,c.c);r.Vg()}function bJn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m;e.Ug("Interactive node layering",1);r=new im;for(b=new nd(n.a);b.a=s){PK(m.b>0);m.a.Xb(m.c=--m.b);break}else if(v.a>o){if(!i){ED(v.b,h);v.c=t.Math.min(v.c,o);v.a=t.Math.max(v.a,s);i=v}else{Dfn(i.b,v.b);i.a=t.Math.max(i.a,v.a);RQ(m)}}}if(!i){i=new Pk;i.c=o;i.a=s;MF(m,i);ED(i.b,h)}}u=n.b;f=0;for(p=new nd(r);p.aw){if(c){fL(T,b);fL(E,Bwn(f.b-1))}O=r.b;A+=b+e;b=0;h=t.Math.max(h,r.b+r.c+I)}San(s,O);Pan(s,A);h=t.Math.max(h,O+I+r.c);b=t.Math.max(b,l);O+=I+e}h=t.Math.max(h,i);C=A+b+r.a;if(Cn4n;S=t.Math.abs(b.b-d.b)>n4n;(!r&&E&&S||r&&(E||S))&&hq(v.a,y)}esn(v.a,i);i.b==0?b=y:b=(PK(i.b!=0),bG(i.c.b.c,8));dfn(w,l,g);if(Esn(a)==j){if(VQ(j.i)!=a.a){g=new wj;MAn(g,VQ(j.i),m)}Ehn(v,VDe,g)}wOn(w,v,m);h.a.zc(w,h)}f2(v,M);b2(v,j)}for(f=h.a.ec().Kc();f.Ob();){o=bG(f.Pb(),18);f2(o,null);b2(o,null)}e.Vg()}function gJn(n,e){var t,r,i,a,c,u,s,o,f,h,l;i=bG(lIn(n,(eqn(),wWe)),88);f=i==(Bdn(),o5e)||i==f5e?s5e:f5e;t=bG(v8(tY(new gX(null,new d3(n.b,16)),new Fc),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)]))),15);s=bG(v8(rY(t.Oc(),new Lv(e)),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[Lde]))),15);s.Gc(bG(v8(rY(t.Oc(),new Nv(e)),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[Lde]))),16));s.jd(new $v(f));l=new Vj(new Dv(i));r=new rm;for(u=s.Kc();u.Ob();){c=bG(u.Pb(),240);o=bG(c.a,40);if(lM(yK(c.c))){l.a.zc(o,(Qx(),Bhe))==null;new ld(l.a.Zc(o,false)).a.gc()>0&&jJ(r,o,bG(new ld(l.a.Zc(o,false)).a.Vc(),40));new ld(l.a.ad(o,true)).a.gc()>1&&jJ(r,mpn(l,o),o)}else{if(new ld(l.a.Zc(o,false)).a.gc()>0){a=bG(new ld(l.a.Zc(o,false)).a.Vc(),40);BA(a)===BA(_A(GX(r.f,o)))&&bG(lIn(o,(DQn(),Ize)),15).Fc(a)}if(new ld(l.a.ad(o,true)).a.gc()>1){h=mpn(l,o);BA(_A(GX(r.f,h)))===BA(o)&&bG(lIn(h,(DQn(),Ize)),15).Fc(o)}l.a.Bc(o)!=null}}}function vJn(n){var e,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y;if(n.gc()==1){return bG(n.Xb(0),235)}else if(n.gc()<=0){return new k7}for(a=n.Kc();a.Ob();){r=bG(a.Pb(),235);d=0;h=pZn;l=pZn;o=T1n;f=T1n;for(w=new nd(r.e);w.as){k=0;y+=u+p;u=0}cUn(g,r,k,y);e=t.Math.max(e,k+v.a);u=t.Math.max(u,v.b);k+=v.a+p}return g}function pJn(n){KGn();var e,t,r,i,a,c,u,s,o,f,h,l,b,w,d,g;if(n==null)return null;a=qtn(n);w=dgn(a);if(w%4!=0){return null}d=w/4|0;if(d==0)return $nn(Vht,rte,28,0,15,1);h=null;e=0;t=0;r=0;i=0;c=0;u=0;s=0;o=0;b=0;l=0;f=0;h=$nn(Vht,rte,28,d*3,15,1);for(;b>4)<<24>>24;h[l++]=((t&15)<<4|r>>2&15)<<24>>24;h[l++]=(r<<6|i)<<24>>24}if(!TE(c=a[f++])||!TE(u=a[f++])){return null}e=Hft[c];t=Hft[u];s=a[f++];o=a[f++];if(Hft[s]==-1||Hft[o]==-1){if(s==61&&o==61){if((t&15)!=0)return null;g=$nn(Vht,rte,28,b*3+1,15,1);QGn(h,0,g,0,b*3);g[l]=(e<<2|t>>4)<<24>>24;return g}else if(s!=61&&o==61){r=Hft[s];if((r&3)!=0)return null;g=$nn(Vht,rte,28,b*3+2,15,1);QGn(h,0,g,0,b*3);g[l++]=(e<<2|t>>4)<<24>>24;g[l]=((t&15)<<4|r>>2&15)<<24>>24;return g}else{return null}}else{r=Hft[s];i=Hft[o];h[l++]=(e<<2|t>>4)<<24>>24;h[l++]=((t&15)<<4|r>>2&15)<<24>>24;h[l++]=(r<<6|i)<<24>>24}return h}function mJn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y;e.Ug(T6n,1);w=bG(lIn(n,(IYn(),gFe)),223);for(i=new nd(n.b);i.a=2){d=true;l=new nd(a.j);t=bG(K3(l),12);b=null;while(l.a0){i=l.gc();f=c0(t.Math.floor((i+1)/2))-1;a=c0(t.Math.ceil((i+1)/2))-1;if(e.o==Lqe){for(h=a;h>=f;h--){if(e.a[y.p]==y){g=bG(l.Xb(h),42);d=bG(g.a,10);if(!fS(r,g.b)&&w>n.b.e[d.p]){e.a[d.p]=y;e.g[y.p]=e.g[d.p];e.a[y.p]=e.g[y.p];e.f[e.g[y.p].p]=(Qx(),lM(e.f[e.g[y.p].p])&y.k==(YIn(),tEe)?true:false);w=n.b.e[d.p]}}}}else{for(h=f;h<=a;h++){if(e.a[y.p]==y){p=bG(l.Xb(h),42);v=bG(p.a,10);if(!fS(r,p.b)&&w0){a=bG(Yq(v.c.a,T-1),10);u=n.i[a.p];E=t.Math.ceil(S$(n.n,a,v));c=M.a.e-v.d.d-(u.a.e+a.o.b+a.d.a)-E}f=y0n;if(T0&&j.a.e.e-j.a.a-(j.b.e.e-j.b.a)<0;d=k.a.e.e-k.a.a-(k.b.e.e-k.b.a)<0&&j.a.e.e-j.a.a-(j.b.e.e-j.b.a)>0;w=k.a.e.e+k.b.aj.b.e.e+j.a.a;y=0;!g&&!d&&(b?c+l>0?y=l:f-i>0&&(y=i):w&&(c+s>0?y=s:f-m>0&&(y=m)));M.a.e+=y;M.b&&(M.d.e+=y);return false}function MJn(n,e,r){var i,a,c,u,s,o,f,h,l,b;i=new yY(e.Lf().a,e.Lf().b,e.Mf().a,e.Mf().b);a=new fN;if(n.c){for(u=new nd(e.Rf());u.ao&&(r.a+=Z$($nn(Uht,L1n,28,-o,15,1)));r.a+="Is";if(BL(s,FCn(32))>=0){for(i=0;i=r.o.b/2}else{p=!h}if(p){v=bG(lIn(r,(WYn(),zDe)),15);if(!v){a=new im;Ehn(r,zDe,a)}else if(l){a=v}else{i=bG(lIn(r,X$e),15);if(!i){a=new im;Ehn(r,X$e,a)}else{v.gc()<=i.gc()?a=v:a=i}}}else{i=bG(lIn(r,(WYn(),X$e)),15);if(!i){a=new im;Ehn(r,X$e,a)}else if(h){a=i}else{v=bG(lIn(r,zDe),15);if(!v){a=new im;Ehn(r,zDe,a)}else{i.gc()<=v.gc()?a=i:a=v}}}a.Fc(n);Ehn(n,(WYn(),z$e),t);if(e.d==t){b2(e,null);t.e.c.length+t.g.c.length==0&&l2(t,null);Kln(t)}else{f2(e,null);t.e.c.length+t.g.c.length==0&&l2(t,null)}XY(e.a)}function IJn(n,e,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P,C,I,O,A;r.Ug("MinWidth layering",1);w=e.b;j=e.a;A=bG(lIn(e,(IYn(),_Fe)),17).a;s=bG(lIn(e,BFe),17).a;n.b=bM(MK(lIn(e,R_e)));n.d=y0n;for(y=new nd(j);y.a0){f=0;!!v&&(f+=s);f+=(S-1)*u;!!k&&(f+=s);E&&!!k&&(f=t.Math.max(f,WKn(k,u,m,j)));if(f=n.a){i=Hqn(n,k);h=t.Math.max(h,i.b);M=t.Math.max(M,i.d);ED(s,new nA(k,i))}}S=new im;for(f=0;f0),p.a.Xb(p.c=--p.b),P=new pQ(n.b),MF(p,P),PK(p.b0){l=f<100?null:new fj(f);o=new Vsn(e);w=o.g;v=$nn(Ght,z1n,28,f,15,1);r=0;k=new _in(f);for(i=0;i=0;){if(b!=null?bdn(b,w[s]):BA(b)===BA(w[s])){if(v.length<=r){g=v;v=$nn(Ght,z1n,28,2*v.length,15,1);QGn(g,0,v,0,r)}v[r++]=i;cen(k,w[s]);break n}}b=b;if(BA(b)===BA(u)){break}}}o=k;w=k.g;f=r;if(r>v.length){g=v;v=$nn(Ght,z1n,28,r,15,1);QGn(g,0,v,0,r)}if(r>0){m=true;for(a=0;a=0;){yjn(n,v[c])}if(r!=f){for(i=f;--i>=r;){yjn(o,i)}g=v;v=$nn(Ght,z1n,28,r,15,1);QGn(g,0,v,0,r)}e=o}}}else{e=fjn(n,e);for(i=n.i;--i>=0;){if(e.Hc(n.g[i])){yjn(n,i);m=true}}}if(m){if(v!=null){t=e.gc();h=t==1?s2(n,4,e.Kc().Pb(),null,v[0],d):s2(n,6,e,v,v[0],d);l=t<100?null:new fj(t);for(i=e.Kc();i.Ob();){b=i.Pb();l=J_(n,bG(b,76),l)}if(!l){Pon(n.e,h)}else{l.nj(h);l.oj()}}else{l=QF(e.gc());for(i=e.Kc();i.Ob();){b=i.Pb();l=J_(n,bG(b,76),l)}!!l&&l.oj()}return true}else{return false}}function NJn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,g,v,p,m,k;t=new Qyn(e);t.a||PUn(e);o=lBn(e);s=new U1;v=new XFn;for(g=new nd(e.a);g.a0||r.o==Lqe&&a=t}function xJn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P,C;m=e;p=new U1;k=new U1;f=M6(m,mte);r=new AY(n,t,p,k);$On(r.a,r.b,r.c,r.d,f);s=(T=p.i,!T?p.i=new HD(p,p.c):T);for(E=s.Kc();E.Ob();){j=bG(E.Pb(),166);i=bG(r7(p,j),21);for(d=i.Kc();d.Ob();){w=d.Pb();y=bG(kan(n.d,w),166);if(y){u=(!j.e&&(j.e=new g_(U7e,j,10,9)),j.e);cen(u,y)}else{c=E6(m,Pte);l=Nte+w+$te+c;b=l+Lte;throw dm(new AM(b))}}}o=(M=k.i,!M?k.i=new HD(k,k.c):M);for(P=o.Kc();P.Ob();){S=bG(P.Pb(),166);a=bG(r7(k,S),21);for(v=a.Kc();v.Ob();){g=v.Pb();y=bG(kan(n.d,g),166);if(y){h=(!S.g&&(S.g=new g_(U7e,S,9,10)),S.g);cen(h,y)}else{c=E6(m,Pte);l=Nte+g+$te+c;b=l+Lte;throw dm(new AM(b))}}}!t.b&&(t.b=new g_(B7e,t,4,7));if(t.b.i!=0&&(!t.c&&(t.c=new g_(B7e,t,5,8)),t.c.i!=0)&&(!t.b&&(t.b=new g_(B7e,t,4,7)),t.b.i<=1&&(!t.c&&(t.c=new g_(B7e,t,5,8)),t.c.i<=1))&&(!t.a&&(t.a=new gz(U7e,t,6,6)),t.a).i==1){C=bG(Yin((!t.a&&(t.a=new gz(U7e,t,6,6)),t.a),0),166);if(!dMn(C)&&!gMn(C)){Jcn(C,bG(Yin((!t.b&&(t.b=new g_(B7e,t,4,7)),t.b),0),84));Ycn(C,bG(Yin((!t.c&&(t.c=new g_(B7e,t,5,8)),t.c),0),84))}}}function RJn(n){var e,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P;for(k=n.a,y=0,M=k.length;y0){l=bG(Yq(b.c.a,u-1),10);E=S$(n.b,b,l);v=b.n.b-b.d.d-(l.n.b+l.o.b+l.d.a+E)}else{v=b.n.b-b.d.d}f=t.Math.min(v,f);if(u1&&(u=t.Math.min(u,t.Math.abs(bG(dyn(s.a,1),8).b-h.b)))}}}}}else{for(g=new nd(e.j);g.aa){c=b.a-a;u=pZn;i.c.length=0;a=b.a}if(b.a>=a){Tm(i.c,s);s.a.b>1&&(u=t.Math.min(u,t.Math.abs(bG(dyn(s.a,s.a.b-2),8).b-b.b)))}}}}}if(i.c.length!=0&&c>e.o.a/2&&u>e.o.b/2){w=new vOn;l2(w,e);KLn(w,(UQn(),D8e));w.n.a=e.o.a/2;p=new vOn;l2(p,e);KLn(p,Y8e);p.n.a=e.o.a/2;p.n.b=e.o.b;for(o=new nd(i);o.a=f.b?f2(s,p):f2(s,w)}else{f=bG(uG(s.a),8);v=s.a.b==0?a3(s.c):bG(MR(s.a),8);v.b>=f.b?b2(s,p):b2(s,w)}l=bG(lIn(s,(IYn(),DFe)),75);!!l&&npn(l,f,true)}e.n.a=a-e.o.a/2}}function FJn(n,e,r){var i,a,c,u,s,o,f,h,l,b;for(s=Gkn(n.b,0);s.b!=s.d.c;){u=bG($6(s),40);if(T_(u.c,B9n)){continue}f=BDn(u,n);e==(Bdn(),o5e)||e==f5e?g$(f,new fu):g$(f,new hu);o=f.c.length;for(i=0;i=0?b=$vn(u):b=Wdn($vn(u));n.qf(j_e,b)}o=new wj;l=false;if(n.pf(v_e)){qR(o,bG(n.of(v_e),8));l=true}else{TD(o,c.a/2,c.b/2)}switch(b.g){case 4:Ehn(f,KFe,(Wvn(),QDe));Ehn(f,nDe,(Lhn(),HNe));f.o.b=c.b;d<0&&(f.o.a=-d);KLn(h,(UQn(),$8e));l||(o.a=c.a);o.a-=c.a;break;case 2:Ehn(f,KFe,(Wvn(),YDe));Ehn(f,nDe,(Lhn(),_Ne));f.o.b=c.b;d<0&&(f.o.a=-d);KLn(h,(UQn(),n9e));l||(o.a=0);break;case 1:Ehn(f,bDe,(irn(),K$e));f.o.a=c.a;d<0&&(f.o.b=-d);KLn(h,(UQn(),Y8e));l||(o.b=c.b);o.b-=c.b;break;case 3:Ehn(f,bDe,(irn(),x$e));f.o.a=c.a;d<0&&(f.o.b=-d);KLn(h,(UQn(),D8e));l||(o.b=0)}qR(h.n,o);Ehn(f,v_e,o);if(e==p8e||e==k8e||e==m8e){w=0;if(e==p8e&&n.pf(k_e)){switch(b.g){case 1:case 2:w=bG(n.of(k_e),17).a;break;case 3:case 4:w=-bG(n.of(k_e),17).a}}else{switch(b.g){case 4:case 2:w=a.b;e==k8e&&(w/=i.b);break;case 1:case 3:w=a.a;e==k8e&&(w/=i.a)}}Ehn(f,$De,w)}Ehn(f,cDe,b);return f}function BJn(){Tj();function n(n){var e=this;this.dispatch=function(e){var t=e.data;switch(t.cmd){case"algorithms":var r=opn((dZ(),new Qw(new Gw(rtt.b))));n.postMessage({id:t.id,data:r});break;case"categories":var i=opn((dZ(),new Qw(new Gw(rtt.c))));n.postMessage({id:t.id,data:i});break;case"options":var a=opn((dZ(),new Qw(new Gw(rtt.d))));n.postMessage({id:t.id,data:a});break;case"register":Dzn(t.algorithms);n.postMessage({id:t.id});break;case"layout":Zqn(t.graph,t.layoutOptions||{},t.options||{});n.postMessage({id:t.id,data:t.graph});break}};this.saveDispatch=function(t){try{e.dispatch(t)}catch(r){n.postMessage({id:t.data.id,error:r})}}}function t(e){var t=this;this.dispatcher=new n({postMessage:function(n){t.onmessage({data:n})}});this.postMessage=function(n){setTimeout((function(){t.dispatcher.saveDispatch({data:n})}),0)}}if(typeof document===r2n&&typeof self!==r2n){var i=new n(self);self.onmessage=i.saveDispatch}else if(typeof e!==r2n&&e.exports){Object.defineProperty(r,"__esModule",{value:true});e.exports={default:t,Worker:t}}}function HJn(n,e,t){var r,i,a,c,u,s,o,f,h,l;f=new yMn(t);Yon(f,e);Ehn(f,(WYn(),EDe),e);f.o.a=e.g;f.o.b=e.f;f.n.a=e.i;f.n.b=e.j;ED(t.a,f);jJ(n.a,e,f);((!e.a&&(e.a=new gz(snt,e,10,11)),e.a).i!=0||lM(yK(YDn(e,(IYn(),AFe)))))&&Ehn(f,W$e,(Qx(),true));o=bG(lIn(t,oDe),21);h=bG(lIn(f,(IYn(),m_e)),101);h==(FPn(),T8e)?Ehn(f,m_e,M8e):h!=M8e&&o.Fc((o_n(),E$e));l=0;r=bG(lIn(t,oFe),88);for(s=new _D((!e.c&&(e.c=new gz(ont,e,9,9)),e.c));s.e!=s.i.gc();){u=bG(iyn(s),123);i=H0(e);(BA(YDn(i,zKe))!==BA((Smn(),hHe))||BA(YDn(i,uFe))===BA((Emn(),NNe))||BA(YDn(i,uFe))===BA((Emn(),ANe))||lM(yK(YDn(i,QKe)))||BA(YDn(i,HKe))!==BA((zmn(),hje))||BA(YDn(i,UFe))===BA((CHn(),ZBe))||BA(YDn(i,UFe))===BA((CHn(),nHe))||BA(YDn(i,GFe))===BA((PKn(),TBe))||BA(YDn(i,GFe))===BA((PKn(),EBe)))&&!lM(yK(YDn(e,XKe)))&&Pyn(u,jDe,Bwn(l++));lM(yK(YDn(u,u_e)))||TQn(n,u,f,o,r,h)}for(c=new _D((!e.n&&(e.n=new gz(unt,e,1,7)),e.n));c.e!=c.i.gc();){a=bG(iyn(c),135);!lM(yK(YDn(a,u_e)))&&!!a.a&&ED(f.b,lwn(a))}lM(yK(lIn(f,KKe)))&&o.Fc((o_n(),k$e));if(lM(yK(lIn(f,OFe)))){o.Fc((o_n(),j$e));o.Fc(T$e);Ehn(f,m_e,M8e)}return f}function UJn(n,e,r,i,a,c,u){var s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P,C,I,O,A;g=0;P=0;for(f=new nd(n.b);f.ag){if(c){fL(T,w);fL(E,Bwn(h.b-1));ED(n.d,d);s.c.length=0}O=r.b;A+=w+e;w=0;l=t.Math.max(l,r.b+r.c+I)}Tm(s.c,o);byn(o,O,A);l=t.Math.max(l,O+I+r.c);w=t.Math.max(w,b);O+=I+e;d=o}Dfn(n.a,s);ED(n.d,bG(Yq(s,s.c.length-1),163));l=t.Math.max(l,i);C=A+w+r.a;if(Ci.d.d+i.d.a){f.f.d=true}else{f.f.d=true;f.f.a=true}}}r.b!=r.d.c&&(e=t)}if(f){a=bG(fQ(n.f,c.d.i),60);if(e.ba.d.d+a.d.a){f.f.d=true}else{f.f.d=true;f.f.a=true}}}}for(u=new GV(sx(Qgn(b).a.Kc(),new d));dDn(u);){c=bG(K9(u),18);if(c.a.b!=0){e=bG(MR(c.a),8);if(c.d.j==(UQn(),D8e)){v=new Vqn(e,new PO(e.a,i.d.d),i,c);v.f.a=true;v.a=c.d;Tm(g.c,v)}if(c.d.j==Y8e){v=new Vqn(e,new PO(e.a,i.d.d+i.d.a),i,c);v.f.d=true;v.a=c.d;Tm(g.c,v)}}}}}return g}function WJn(n,e,t){var r,i,a,c,u,s,o,f,h,l;s=new im;h=e.length;c=Ghn(t);for(o=0;o=w){if(p>w){b.c.length=0;w=p}Tm(b.c,c)}}if(b.c.length!=0){l=bG(Yq(b,sMn(e,b.c.length)),131);P.a.Bc(l)!=null;l.s=d++;Zxn(l,E,M);b.c.length=0}}k=n.c.length+1;for(u=new nd(n);u.aS.s){RQ(t);Ttn(S.i,r);if(r.c>0){r.a=S;ED(S.t,r);r.b=T;ED(T.i,r)}}}}}function YJn(n,e,t,r,i){var a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P;d=new H7(e.b);k=new H7(e.b);l=new H7(e.b);j=new H7(e.b);g=new H7(e.b);for(T=Gkn(e,0);T.b!=T.d.c;){y=bG($6(T),12);for(u=new nd(y.g);u.a0;v=y.g.c.length>0;o&&v?(Tm(l.c,y),true):o?(Tm(d.c,y),true):v&&(Tm(k.c,y),true)}for(w=new nd(d);w.am.nh()-f.b&&(b=m.nh()-f.b);w>m.oh()-f.d&&(w=m.oh()-f.d);h0){for(y=Gkn(n.f,0);y.b!=y.d.c;){k=bG($6(y),10);k.p+=b-n.e}EAn(n);XY(n.f);D_n(n,i,w)}else{hq(n.f,w);w.p=i;n.e=t.Math.max(n.e,i);for(c=new GV(sx(Qgn(w).a.Kc(),new d));dDn(c);){a=bG(K9(c),18);if(!a.c.i.c&&a.c.i.k==(YIn(),eEe)){hq(n.f,a.c.i);a.c.i.p=i-1}}n.c=i}}}else{EAn(n);XY(n.f);i=0;if(dDn(new GV(sx(Qgn(w).a.Kc(),new d)))){b=0;b=Lyn(b,w);i=b+2;D_n(n,i,w)}else{hq(n.f,w);w.p=0;n.e=t.Math.max(n.e,0);n.b=bG(Yq(n.d.b,0),30);n.c=0}}}}n.f.b==0||EAn(n);n.d.a.c.length=0;m=new im;for(f=new nd(n.d.b);f.a=48&&e<=57){r=e-48;while(i=48&&e<=57){r=r*10+e-48;if(r<0)throw dm(new NM(oZn((c$(),Dre))))}}else{throw dm(new NM(oZn((c$(),Are))))}t=r;if(e==44){if(i>=n.j){throw dm(new NM(oZn((c$(),Nre))))}else if((e=ZJ(n.i,i++))>=48&&e<=57){t=e-48;while(i=48&&e<=57){t=t*10+e-48;if(t<0)throw dm(new NM(oZn((c$(),Dre))))}if(r>t)throw dm(new NM(oZn((c$(),$re))))}else{t=-1}}if(e!=125)throw dm(new NM(oZn((c$(),Lre))));if(n.bm(i)){a=(eZn(),eZn(),++Tht,new a8(9,a));n.d=i+1}else{a=(eZn(),eZn(),++Tht,new a8(3,a));n.d=i}a.Om(r);a.Nm(t);OYn(n)}}return a}function sYn(n){var e,t,r,i,a;t=bG(lIn(n,(WYn(),oDe)),21);e=hN(WMe);i=bG(lIn(n,(IYn(),SFe)),346);i==(Dwn(),U5e)&&yon(e,QMe);lM(yK(lIn(n,jFe)))?xq(e,(bIn(),rTe),(YYn(),nCe)):xq(e,(bIn(),aTe),(YYn(),nCe));lIn(n,(U7(),L3e))!=null&&yon(e,JMe);(lM(yK(lIn(n,NFe)))||lM(yK(lIn(n,EFe))))&&mV(e,(bIn(),uTe),(YYn(),wPe));switch(bG(lIn(n,oFe),88).g){case 2:case 3:case 4:mV(xq(e,(bIn(),rTe),(YYn(),gPe)),uTe,dPe)}t.Hc((o_n(),k$e))&&mV(xq(xq(e,(bIn(),rTe),(YYn(),bPe)),cTe,hPe),uTe,lPe);BA(lIn(n,UFe))!==BA((CHn(),cHe))&&xq(e,(bIn(),aTe),(YYn(),XPe));if(t.Hc(P$e)){xq(e,(bIn(),rTe),(YYn(),YPe));xq(e,iTe,QPe);xq(e,aTe,JPe)}BA(lIn(n,BKe))!==BA((HIn(),d$e))&&BA(lIn(n,gFe))!==BA((qgn(),y5e))&&mV(e,(bIn(),uTe),(YYn(),IPe));lM(yK(lIn(n,CFe)))&&xq(e,(bIn(),aTe),(YYn(),CPe));lM(yK(lIn(n,aFe)))&&xq(e,(bIn(),aTe),(YYn(),cCe));if(NRn(n)){BA(lIn(n,SFe))===BA(U5e)?r=bG(lIn(n,YKe),299):r=bG(lIn(n,ZKe),299);a=r==(sfn(),L$e)?(YYn(),WPe):(YYn(),oCe);xq(e,(bIn(),cTe),a)}switch(bG(lIn(n,bBe),388).g){case 1:xq(e,(bIn(),cTe),(YYn(),uCe));break;case 2:mV(xq(xq(e,(bIn(),aTe),(YYn(),uPe)),cTe,sPe),uTe,oPe)}BA(lIn(n,zKe))!==BA((Smn(),hHe))&&xq(e,(bIn(),aTe),(YYn(),sCe));return e}function oYn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m;if(Lz(n.a,e)){if(fS(bG(fQ(n.a,e),49),t)){return 1}}else{jJ(n.a,e,new uk)}if(Lz(n.a,t)){if(fS(bG(fQ(n.a,t),49),e)){return-1}}else{jJ(n.a,t,new uk)}if(Lz(n.e,e)){if(fS(bG(fQ(n.e,e),49),t)){return-1}}else{jJ(n.e,e,new uk)}if(Lz(n.e,t)){if(fS(bG(fQ(n.a,t),49),e)){return 1}}else{jJ(n.e,t,new uk)}if(n.c==(Smn(),lHe)||!jR(e,(WYn(),jDe))||!jR(t,(WYn(),jDe))){h=null;for(o=new nd(e.j);o.ac?bHn(n,e,t):bHn(n,t,e);return ic?1:0}}r=bG(lIn(e,(WYn(),jDe)),17).a;a=bG(lIn(t,jDe),17).a;r>a?bHn(n,e,t):bHn(n,t,e);return ra?1:0}function fYn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g;if(t==null){return null}if(n.a!=e.jk()){throw dm(new jM(nte+e.xe()+ete))}if(G$(e,469)){g=S_n(bG(e,685),t);if(!g){throw dm(new jM(tte+t+"' is not a valid enumerator of '"+e.xe()+"'"))}return g}switch(cdn((yAn(),Vut),e).Nl()){case 2:{t=SXn(t,false);break}case 3:{t=SXn(t,true);break}}r=cdn(Vut,e).Jl();if(r){return r.jk().wi().ti(r,t)}l=cdn(Vut,e).Ll();if(l){g=new im;for(o=Gln(t),f=0,h=o.length;f1){d=new iR((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a));while(d.e!=d.i.gc()){FSn(d)}}u=bG(Yin((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a),0),166);v=O;O>M+y?v=M+y:OT+g?p=T+g:AM-y&&vT-g&&pO+I?E=O+I:MA+j?S=A+j:TO-I&&EA-j&&Sr&&(b=r-1);w=x+bRn(e,24)*X0n*l-l/2;w<0?w=1:w>i&&(w=i-1);a=(yj(),o=new io,o);Aan(a,b);Man(a,w);cen((!u.a&&(u.a=new PD(K7e,u,5)),u.a),a)}}function vYn(n){dP(n,new dCn(GT(_T(UT(HT(new vs,ane),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new Gu)));z4(n,ane,x3n,1.3);z4(n,ane,w4n,(Qx(),false));z4(n,ane,R3n,LZe);z4(n,ane,c4n,15);z4(n,ane,r9n,tyn(gZe));z4(n,ane,g4n,tyn(TZe));z4(n,ane,D4n,tyn(EZe));z4(n,ane,d4n,tyn(SZe));z4(n,ane,v4n,tyn(MZe));z4(n,ane,b4n,tyn(PZe));z4(n,ane,p4n,tyn(NZe));z4(n,ane,Q7n,tyn(KZe));z4(n,ane,J7n,tyn(RZe));z4(n,ane,W7n,tyn(_Ze));z4(n,ane,z7n,tyn(FZe));z4(n,ane,Y7n,tyn(OZe));z4(n,ane,Z7n,tyn(IZe));z4(n,ane,nne,tyn(CZe));z4(n,ane,ene,tyn(xZe));z4(n,ane,f4n,tyn(mZe));z4(n,ane,d9n,tyn(kZe));z4(n,ane,X7n,tyn(pZe));z4(n,ane,q7n,tyn(vZe));z4(n,ane,V7n,tyn(yZe));z4(n,ane,G7n,tyn(DZe))}function pYn(n,e){MXn();var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P,C,I;j=n.e;w=n.d;i=n.a;if(j==0){switch(e){case 0:return"0";case 1:return L0n;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:M=new nT;e<0?(M.a+="0E+",M):(M.a+="0E",M);M.a+=-e;return M.a}}m=w*10+1+7;k=$nn(Uht,L1n,28,m+1,15,1);t=m;if(w==1){u=i[0];if(u<0){I=O3(u,A0n);do{d=I;I=pSn(I,10);k[--t]=48+MV(Fgn(d,Kgn(I,10)))&$1n}while(kwn(I,0)!=0)}else{I=u;do{d=I;I=I/10|0;k[--t]=48+(d-I*10)&$1n}while(I!=0)}}else{S=$nn(Ght,z1n,28,w,15,1);C=w;QGn(i,0,S,0,C);n:while(true){T=0;for(o=C-1;o>=0;o--){P=Rgn(KV(T,32),O3(S[o],A0n));v=tCn(P);S[o]=MV(v);T=MV(FV(v,32))}p=MV(T);g=t;do{k[--t]=48+p%10&$1n}while((p=p/10|0)!=0&&t!=0);r=9-g+t;for(s=0;s0;s++){k[--t]=48}h=C-1;for(;S[h]==0;h--){if(h==0){break n}}C=h+1}while(k[t]==48){++t}}b=j<0;c=m-t-e-1;if(e==0){b&&(k[--t]=45);return Tmn(k,t,m-t)}if(e>0&&c>=-6){if(c>=0){f=t+c;for(l=m-1;l>=f;l--){k[l+1]=k[l]}k[++f]=46;b&&(k[--t]=45);return Tmn(k,t,m-t+1)}for(h=2;h<-c+1;h++){k[--t]=48}k[--t]=46;k[--t]=48;b&&(k[--t]=45);return Tmn(k,t,m-t)}E=t+1;a=m;y=new eT;b&&(y.a+="-",y);if(a-E>=1){IQ(y,k[t]);y.a+=".";y.a+=Tmn(k,t+1,m-t-1)}else{y.a+=Tmn(k,t,m-t)}y.a+="E";c>0&&(y.a+="+",y);y.a+=""+c;return y.a}function mYn(n,e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T;n.c=e;n.g=new rm;r=(jP(),new Zy(n.c));i=new xd(r);xvn(i);k=TK(YDn(n.c,(gIn(),h0e)));o=bG(YDn(n.c,b0e),324);M=bG(YDn(n.c,w0e),437);u=bG(YDn(n.c,c0e),490);y=bG(YDn(n.c,l0e),438);n.j=bM(MK(YDn(n.c,d0e)));s=n.a;switch(o.g){case 0:s=n.a;break;case 1:s=n.b;break;case 2:s=n.i;break;case 3:s=n.e;break;case 4:s=n.f;break;default:throw dm(new jM(hne+(o.f!=null?o.f:""+o.g)))}n.d=new s0(s,M,u);Ehn(n.d,(oon(),ake),yK(YDn(n.c,s0e)));n.d.c=lM(yK(YDn(n.c,u0e)));if(mZ(n.c).i==0){return n.d}for(l=new _D(mZ(n.c));l.e!=l.i.gc();){h=bG(iyn(l),27);w=h.g/2;b=h.f/2;T=new PO(h.i+w,h.j+b);while(Lz(n.g,T)){UR(T,(t.Math.random()-.5)*n4n,(t.Math.random()-.5)*n4n)}g=bG(YDn(h,(JYn(),q4e)),140);v=new W0(T,new yY(T.a-w-n.j/2-g.b,T.b-b-n.j/2-g.d,h.g+n.j+(g.b+g.c),h.f+n.j+(g.d+g.a)));ED(n.d.i,v);jJ(n.g,T,new nA(v,h))}switch(y.g){case 0:if(k==null){n.d.d=bG(Yq(n.d.i,0),68)}else{for(m=new nd(n.d.i);m.a0?C+1:1}for(c=new nd(M.g);c.a0?C+1:1}}n.c[o]==0?hq(n.e,d):n.a[o]==0&&hq(n.f,d);++o}w=-1;b=1;h=new im;n.d=bG(lIn(e,(WYn(),xDe)),234);while(N>0){while(n.e.b!=0){O=bG(cG(n.e),10);n.b[O.p]=w--;uUn(n,O);--N}while(n.f.b!=0){A=bG(cG(n.f),10);n.b[A.p]=b++;uUn(n,A);--N}if(N>0){l=T1n;for(p=new nd(m);p.a=l){if(k>l){h.c.length=0;l=k}Tm(h.c,d)}}}f=n.sg(h);n.b[f.p]=b++;uUn(n,f);--N}}I=m.c.length+1;for(o=0;on.b[L]){Mqn(r,true);Ehn(e,Z$e,(Qx(),true))}}}}n.a=null;n.c=null;n.b=null;XY(n.f);XY(n.e);t.Vg()}function MYn(n,e,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T;M=bG(Yin((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a),0),166);h=new zk;y=new rm;T=wGn(M);ZAn(y.f,M,T);b=new rm;i=new vS;for(d=Dz(Yan(zfn(fT(Gce,1),jZn,20,0,[(!e.d&&(e.d=new g_(H7e,e,8,5)),e.d),(!e.e&&(e.e=new g_(H7e,e,7,4)),e.e)])));dDn(d);){w=bG(K9(d),74);if((!n.a&&(n.a=new gz(U7e,n,6,6)),n.a).i!=1){throw dm(new jM(See+(!n.a&&(n.a=new gz(U7e,n,6,6)),n.a).i))}if(w!=n){v=bG(Yin((!w.a&&(w.a=new gz(U7e,w,6,6)),w.a),0),166);w8(i,v,i.c.b,i.c);g=bG(_A(GX(y.f,v)),13);if(!g){g=wGn(v);ZAn(y.f,v,g)}l=r?r_(new uN(bG(Yq(T,T.c.length-1),8)),bG(Yq(g,g.c.length-1),8)):r_(new uN((b3(0,T.c.length),bG(T.c[0],8))),(b3(0,g.c.length),bG(g.c[0],8)));ZAn(b.f,v,l)}}if(i.b!=0){p=bG(Yq(T,r?T.c.length-1:0),8);for(f=1;f1&&(w8(h,p,h.c.b,h.c),true);Sin(a)}}}p=m}}return h}function TYn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S;t.Ug(c7n,1);S=bG(v8(tY(new gX(null,new d3(e,16)),new mu),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)]))),15);f=bG(v8(tY(new gX(null,new d3(e,16)),new Rv(e)),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[Lde]))),15);w=bG(v8(tY(new gX(null,new d3(e,16)),new xv(e)),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[Lde]))),15);d=$nn(IVe,X9n,40,e.gc(),0,1);for(c=0;c=0&&E=0&&!d[b]){d[b]=i;f.gd(u);--u;break}b=E-l;if(b=0&&!d[b]){d[b]=i;f.gd(u);--u;break}}}w.jd(new ku);for(s=d.length-1;s>=0;s--){if(!d[s]&&!w.dc()){d[s]=bG(w.Xb(0),40);w.gd(0)}}for(o=0;o=0;s--){hq(t,(b3(s,c.c.length),bG(c.c[s],8)))}return t}function EYn(n,e,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y;k=bM(MK(YDn(e,(vBn(),VYe))));w=bM(MK(YDn(e,qYe)));b=bM(MK(YDn(e,HYe)));Kun((!e.a&&(e.a=new gz(snt,e,10,11)),e.a));p=lVn((!e.a&&(e.a=new gz(snt,e,10,11)),e.a),k,n.b);for(v=0;vl&&bEn((b3(l,e.c.length),bG(e.c[l],186)),f);f=null;while(e.c.length>l&&(b3(l,e.c.length),bG(e.c[l],186)).a.c.length==0){Ttn(e,(b3(l,e.c.length),e.c[l]))}}if(!f){--c;continue}if(!lM(yK(bG(Yq(f.b,0),27).of((A_n(),yZe))))&&XUn(e,w,a,f,g,t,l,r)){d=true;continue}if(g){b=w.b;h=f.f;if(!lM(yK(bG(Yq(f.b,0),27).of(yZe)))&&Ozn(e,w,a,f,t,l,r,i)){d=true;if(b=n.j){n.a=-1;n.c=1;return}e=ZJ(n.i,n.d++);n.a=e;if(n.b==1){switch(e){case 92:r=10;if(n.d>=n.j)throw dm(new NM(oZn((c$(),nre))));n.a=ZJ(n.i,n.d++);break;case 45:if((n.e&512)==512&&n.d=n.j)break;if(ZJ(n.i,n.d)!=63)break;if(++n.d>=n.j)throw dm(new NM(oZn((c$(),ere))));e=ZJ(n.i,n.d++);switch(e){case 58:r=13;break;case 61:r=14;break;case 33:r=15;break;case 91:r=19;break;case 62:r=18;break;case 60:if(n.d>=n.j)throw dm(new NM(oZn((c$(),ere))));e=ZJ(n.i,n.d++);if(e==61){r=16}else if(e==33){r=17}else throw dm(new NM(oZn((c$(),tre))));break;case 35:while(n.d=n.j)throw dm(new NM(oZn((c$(),nre))));n.a=ZJ(n.i,n.d++);break;default:r=0}n.c=r}function AYn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g;t.Ug("Process compaction",1);if(!lM(yK(lIn(e,(eqn(),lWe))))){return}i=bG(lIn(e,wWe),88);b=bM(MK(lIn(e,$We)));xXn(n,e,i);gJn(e,b/2/2);w=e.b;Run(w,new Iv(i));for(o=Gkn(w,0);o.b!=o.d.c;){s=bG($6(o),40);if(!lM(yK(lIn(s,(DQn(),Jze))))){r=dBn(s,i);d=Tqn(s,e);h=0;l=0;if(r){g=r.e;switch(i.g){case 2:h=g.a-b-s.f.a;d.e.a-b-s.f.ah&&(h=d.e.a+d.f.a+b);l=h+s.f.a;break;case 4:h=g.b-b-s.f.b;d.e.b-b-s.f.bh&&(h=d.e.b+d.f.b+b);l=h+s.f.b}}else if(d){switch(i.g){case 2:h=d.e.a-b-s.f.a;l=h+s.f.a;break;case 1:h=d.e.a+d.f.a+b;l=h+s.f.a;break;case 4:h=d.e.b-b-s.f.b;l=h+s.f.b;break;case 3:h=d.e.b+d.f.b+b;l=h+s.f.b}}if(BA(lIn(e,vWe))===BA((Lln(),Mze))){a=h;c=l;u=vln(tY(new gX(null,new d3(n.a,16)),new WI(a,c)));if(u.a!=null){i==(Bdn(),o5e)||i==f5e?s.e.a=h:s.e.b=h}else{i==(Bdn(),o5e)||i==l5e?u=vln(tY(nan(new gX(null,new d3(n.a,16))),new Ov(a))):u=vln(tY(nan(new gX(null,new d3(n.a,16))),new Av(a)));u.a!=null&&(i==o5e||i==f5e?s.e.a=bM(MK((PK(u.a!=null),bG(u.a,42)).a)):s.e.b=bM(MK((PK(u.a!=null),bG(u.a,42)).a)))}if(u.a!=null){f=Ctn(n.a,(PK(u.a!=null),u.a),0);if(f>0&&f!=bG(lIn(s,_We),17).a){Ehn(s,Oze,(Qx(),true));Ehn(s,_We,Bwn(f))}}}else{i==(Bdn(),o5e)||i==f5e?s.e.a=h:s.e.b=h}}}t.Vg()}function LYn(n){var e,t,r,i,a,c,u,s,o;n.b=1;OYn(n);e=null;if(n.c==0&&n.a==94){OYn(n);e=(eZn(),eZn(),++Tht,new U3(4));VFn(e,0,qae);u=(null,++Tht,new U3(4))}else{u=(eZn(),eZn(),++Tht,new U3(4))}i=true;while((o=n.c)!=1){if(o==0&&n.a==93&&!i){if(e){vWn(e,u);u=e}break}t=n.a;r=false;if(o==10){switch(t){case 100:case 68:case 119:case 87:case 115:case 83:CXn(u,SUn(t));r=true;break;case 105:case 73:case 99:case 67:t=(CXn(u,SUn(t)),-1);t<0&&(r=true);break;case 112:case 80:s=LNn(n,t);if(!s)throw dm(new NM(oZn((c$(),wre))));CXn(u,s);r=true;break;default:t=H_n(n)}}else if(o==24&&!i){if(e){vWn(e,u);u=e}a=LYn(n);vWn(u,a);if(n.c!=0||n.a!=93)throw dm(new NM(oZn((c$(),pre))));break}OYn(n);if(!r){if(o==0){if(t==91)throw dm(new NM(oZn((c$(),mre))));if(t==93)throw dm(new NM(oZn((c$(),kre))));if(t==45&&!i&&n.a!=93)throw dm(new NM(oZn((c$(),yre))))}if(n.c!=0||n.a!=45||t==45&&i){VFn(u,t,t)}else{OYn(n);if((o=n.c)==1)throw dm(new NM(oZn((c$(),gre))));if(o==0&&n.a==93){VFn(u,t,t);VFn(u,45,45)}else if(o==0&&n.a==93||o==24){throw dm(new NM(oZn((c$(),yre))))}else{c=n.a;if(o==0){if(c==91)throw dm(new NM(oZn((c$(),mre))));if(c==93)throw dm(new NM(oZn((c$(),kre))));if(c==45)throw dm(new NM(oZn((c$(),yre))))}else o==10&&(c=H_n(n));OYn(n);if(t>c)throw dm(new NM(oZn((c$(),jre))));VFn(u,t,c)}}}i=false}if(n.c==1)throw dm(new NM(oZn((c$(),gre))));Mxn(u);bVn(u);n.b=0;OYn(n);return u}function NYn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,g,v,p,m,k,y,M;t.Ug("Coffman-Graham Layering",1);if(e.a.c.length==0){t.Vg();return}M=bG(lIn(e,(IYn(),xFe)),17).a;s=0;c=0;for(l=new nd(e.a);l.a=M||!fmn(p,r))&&(r=NJ(e,f));h2(p,r);for(a=new GV(sx(Qgn(p).a.Kc(),new d));dDn(a);){i=bG(K9(a),18);if(n.a[i.p]){continue}g=i.c.i;--n.e[g.p];n.e[g.p]==0&&(EG(qCn(b,g),$0n),true)}}for(o=f.c.length-1;o>=0;--o){ED(e.b,(b3(o,f.c.length),bG(f.c[o],30)))}e.a.c.length=0;t.Vg()}function $Yn(n,e){var t,r,i,a,c,u,s,o,f,h,l,b,w,g,v,p,m,k,y;y=false;do{y=false;for(a=e?new Rw(n.a.b).a.gc()-2:1;e?a>=0:abG(lIn(v,jDe),17).a)&&(k=false)}if(!k){continue}s=e?a+1:a-1;u=n5(n.a,Bwn(s));c=false;m=true;r=false;for(f=Gkn(u,0);f.b!=f.d.c;){o=bG($6(f),10);if(jR(o,jDe)){if(o.p!=h.p){c=c|(e?bG(lIn(o,jDe),17).abG(lIn(h,jDe),17).a);m=false}}else if(!c&&m){if(o.k==(YIn(),eEe)){r=true;e?l=bG(K9(new GV(sx(Qgn(o).a.Kc(),new d))),18).c.i:l=bG(K9(new GV(sx(Jgn(o).a.Kc(),new d))),18).d.i;if(l==h){e?t=bG(K9(new GV(sx(Jgn(o).a.Kc(),new d))),18).d.i:t=bG(K9(new GV(sx(Qgn(o).a.Kc(),new d))),18).c.i;(e?bG(OR(n.a,t),17).a-bG(OR(n.a,l),17).a:bG(OR(n.a,l),17).a-bG(OR(n.a,t),17).a)<=2&&(m=false)}}}}if(r&&m){e?t=bG(K9(new GV(sx(Jgn(h).a.Kc(),new d))),18).d.i:t=bG(K9(new GV(sx(Qgn(h).a.Kc(),new d))),18).c.i;(e?bG(OR(n.a,t),17).a-bG(OR(n.a,h),17).a:bG(OR(n.a,h),17).a-bG(OR(n.a,t),17).a)<=2&&t.k==(YIn(),rEe)&&(m=false)}if(c||m){g=ARn(n,h,e);while(g.a.gc()!=0){w=bG(g.a.ec().Kc().Pb(),10);g.a.Bc(w)!=null;esn(g,ARn(n,w,e))}--b;y=true}}}}while(y)}function DYn(n){Vxn(n.c,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#decimal"]));Vxn(n.d,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#integer"]));Vxn(n.e,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#boolean"]));Vxn(n.f,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"EBoolean",Fte,"EBoolean:Object"]));Vxn(n.i,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#byte"]));Vxn(n.g,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#hexBinary"]));Vxn(n.j,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"EByte",Fte,"EByte:Object"]));Vxn(n.n,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"EChar",Fte,"EChar:Object"]));Vxn(n.t,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#double"]));Vxn(n.u,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"EDouble",Fte,"EDouble:Object"]));Vxn(n.F,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#float"]));Vxn(n.G,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"EFloat",Fte,"EFloat:Object"]));Vxn(n.I,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#int"]));Vxn(n.J,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"EInt",Fte,"EInt:Object"]));Vxn(n.N,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#long"]));Vxn(n.O,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"ELong",Fte,"ELong:Object"]));Vxn(n.Z,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#short"]));Vxn(n.$,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"EShort",Fte,"EShort:Object"]));Vxn(n._,Tie,zfn(fT(vle,1),XZn,2,6,[xie,"http://www.w3.org/2001/XMLSchema#string"]))}function xYn(n,e,t,r,i,a,c){var u,s,o,f,h,l,b,w;l=bG(r.a,17).a;b=bG(r.b,17).a;h=n.b;w=n.c;u=0;f=0;if(e==(Bdn(),o5e)||e==f5e){f=FI(Idn(iY(rY(new gX(null,new d3(t.b,16)),new Mu),new ru)));if(h.e.b+h.f.b/2>f){o=++b;u=bM(MK(Sx(nz(rY(new gX(null,new d3(t.b,16)),new MO(i,o)),new iu))))}else{s=++l;u=bM(MK(Sx(ez(rY(new gX(null,new d3(t.b,16)),new TO(i,s)),new au))))}}else{f=FI(Idn(iY(rY(new gX(null,new d3(t.b,16)),new ou),new tu)));if(h.e.a+h.f.a/2>f){o=++b;u=bM(MK(Sx(nz(rY(new gX(null,new d3(t.b,16)),new kO(i,o)),new cu))))}else{s=++l;u=bM(MK(Sx(ez(rY(new gX(null,new d3(t.b,16)),new yO(i,s)),new uu))))}}if(e==o5e){fL(n.a,new PO(bM(MK(lIn(h,(DQn(),Uze))))-i,u));fL(n.a,new PO(w.e.a+w.f.a+i+a,u));fL(n.a,new PO(w.e.a+w.f.a+i+a,w.e.b+w.f.b/2));fL(n.a,new PO(w.e.a+w.f.a,w.e.b+w.f.b/2))}else if(e==f5e){fL(n.a,new PO(bM(MK(lIn(h,(DQn(),Hze))))+i,h.e.b+h.f.b/2));fL(n.a,new PO(h.e.a+h.f.a+i,u));fL(n.a,new PO(w.e.a-i-a,u));fL(n.a,new PO(w.e.a-i-a,w.e.b+w.f.b/2));fL(n.a,new PO(w.e.a,w.e.b+w.f.b/2))}else if(e==l5e){fL(n.a,new PO(u,bM(MK(lIn(h,(DQn(),Uze))))-i));fL(n.a,new PO(u,w.e.b+w.f.b+i+a));fL(n.a,new PO(w.e.a+w.f.a/2,w.e.b+w.f.b+i+a));fL(n.a,new PO(w.e.a+w.f.a/2,w.e.b+w.f.b+i))}else{n.a.b==0||(bG(MR(n.a),8).b=bM(MK(lIn(h,(DQn(),Hze))))+i*bG(c.b,17).a);fL(n.a,new PO(u,bM(MK(lIn(h,(DQn(),Hze))))+i*bG(c.b,17).a));fL(n.a,new PO(u,w.e.b-i*bG(c.a,17).a-a))}return new nA(Bwn(l),Bwn(b))}function RYn(n){var e,t,r,i,a,c,u,s,o,f,h,l,b;c=true;h=null;r=null;i=null;e=false;b=crt;o=null;a=null;u=0;s=Ikn(n,u,irt,art);if(s=0&&T_(n.substr(u,"//".length),"//")){u+=2;s=Ikn(n,u,urt,srt);r=(Unn(u,s,n.length),n.substr(u,s-u));u=s}else if(h!=null&&(u==n.length||(w3(u,n.length),n.charCodeAt(u)!=47))){c=false;s=fx(n,FCn(35),u);s==-1&&(s=n.length);r=(Unn(u,s,n.length),n.substr(u,s-u));u=s}if(!t&&u0&&ZJ(f,f.length-1)==58){i=f;u=s}}if(ubxn(a))&&(h=a)}}!h&&(h=(b3(0,g.c.length),bG(g.c[0],185)));for(d=new nd(e.b);d.al){C=0;I+=h+j;h=0}sUn(M,u,C,I);e=t.Math.max(e,C+T.a);h=t.Math.max(h,T.b);C+=T.a+j}y=new rm;r=new rm;for(S=new nd(n);S.a=-1900?1:0;t>=4?tL(n,zfn(fT(vle,1),XZn,2,6,[W1n,Q1n])[u]):tL(n,zfn(fT(vle,1),XZn,2,6,["BC","AD"])[u]);break;case 121:Ukn(n,t,r);break;case 77:aUn(n,t,r);break;case 107:s=i.q.getHours();s==0?Gtn(n,24,t):Gtn(n,s,t);break;case 83:LRn(n,t,i);break;case 69:f=r.q.getDay();t==5?tL(n,zfn(fT(vle,1),XZn,2,6,["S","M","T","W","T","F","S"])[f]):t==4?tL(n,zfn(fT(vle,1),XZn,2,6,[J1n,Y1n,Z1n,n0n,e0n,t0n,r0n])[f]):tL(n,zfn(fT(vle,1),XZn,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[f]);break;case 97:i.q.getHours()>=12&&i.q.getHours()<24?tL(n,zfn(fT(vle,1),XZn,2,6,["AM","PM"])[1]):tL(n,zfn(fT(vle,1),XZn,2,6,["AM","PM"])[0]);break;case 104:h=i.q.getHours()%12;h==0?Gtn(n,12,t):Gtn(n,h,t);break;case 75:l=i.q.getHours()%12;Gtn(n,l,t);break;case 72:b=i.q.getHours();Gtn(n,b,t);break;case 99:w=r.q.getDay();t==5?tL(n,zfn(fT(vle,1),XZn,2,6,["S","M","T","W","T","F","S"])[w]):t==4?tL(n,zfn(fT(vle,1),XZn,2,6,[J1n,Y1n,Z1n,n0n,e0n,t0n,r0n])[w]):t==3?tL(n,zfn(fT(vle,1),XZn,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[w]):Gtn(n,w,1);break;case 76:d=r.q.getMonth();t==5?tL(n,zfn(fT(vle,1),XZn,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[d]):t==4?tL(n,zfn(fT(vle,1),XZn,2,6,[D1n,x1n,R1n,K1n,F1n,_1n,B1n,H1n,U1n,G1n,q1n,X1n])[d]):t==3?tL(n,zfn(fT(vle,1),XZn,2,6,["Jan","Feb","Mar","Apr",F1n,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[d]):Gtn(n,d+1,t);break;case 81:g=r.q.getMonth()/3|0;t<4?tL(n,zfn(fT(vle,1),XZn,2,6,["Q1","Q2","Q3","Q4"])[g]):tL(n,zfn(fT(vle,1),XZn,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[g]);break;case 100:v=r.q.getDate();Gtn(n,v,t);break;case 109:o=i.q.getMinutes();Gtn(n,o,t);break;case 115:c=i.q.getSeconds();Gtn(n,c,t);break;case 122:t<4?tL(n,a.c[0]):tL(n,a.c[1]);break;case 118:tL(n,a.b);break;case 90:t<3?tL(n,WLn(a)):t==3?tL(n,oNn(a)):tL(n,fNn(a.a));break;default:return false}return true}function GYn(n,e,t,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P,C,I;sHn(e);s=bG(Yin((!e.b&&(e.b=new g_(B7e,e,4,7)),e.b),0),84);f=bG(Yin((!e.c&&(e.c=new g_(B7e,e,5,8)),e.c),0),84);u=vCn(s);o=vCn(f);c=(!e.a&&(e.a=new gz(U7e,e,6,6)),e.a).i==0?null:bG(Yin((!e.a&&(e.a=new gz(U7e,e,6,6)),e.a),0),166);T=bG(fQ(n.a,u),10);P=bG(fQ(n.a,o),10);j=null;C=null;if(G$(s,193)){M=bG(fQ(n.a,s),305);if(G$(M,12)){j=bG(M,12)}else if(G$(M,10)){T=bG(M,10);j=bG(Yq(T.j,0),12)}}if(G$(f,193)){S=bG(fQ(n.a,f),305);if(G$(S,12)){C=bG(S,12)}else if(G$(S,10)){P=bG(S,10);C=bG(Yq(P.j,0),12)}}if(!T||!P){throw dm(new OM("The source or the target of edge "+e+" could not be found. "+"This usually happens when an edge connects a node laid out by ELK Layered to a node in "+"another level of hierarchy laid out by either another instance of ELK Layered or another "+"layout algorithm alltogether. The former can be solved by setting the hierarchyHandling "+"option to INCLUDE_CHILDREN."))}d=new zZ;Yon(d,e);Ehn(d,(WYn(),EDe),e);Ehn(d,(IYn(),DFe),null);b=bG(lIn(r,oDe),21);T==P&&b.Fc((o_n(),C$e));if(!j){y=(fcn(),yHe);E=null;if(!!c&&wN(bG(lIn(T,m_e),101))){E=new PO(c.j,c.k);F5(E,w0(e));e9(E,t);if(Oin(o,u)){y=kHe;t_(E,T.n)}}j=RXn(T,E,y,r)}if(!C){y=(fcn(),kHe);I=null;if(!!c&&wN(bG(lIn(P,m_e),101))){I=new PO(c.b,c.c);F5(I,w0(e));e9(I,t)}C=RXn(P,I,y,VQ(P))}f2(d,j);b2(d,C);(j.e.c.length>1||j.g.c.length>1||C.e.c.length>1||C.g.c.length>1)&&b.Fc((o_n(),T$e));for(l=new _D((!e.n&&(e.n=new gz(unt,e,1,7)),e.n));l.e!=l.i.gc();){h=bG(iyn(l),135);if(!lM(yK(YDn(h,u_e)))&&!!h.a){g=lwn(h);ED(d.b,g);switch(bG(lIn(g,wFe),278).g){case 1:case 2:b.Fc((o_n(),y$e));break;case 0:b.Fc((o_n(),m$e));Ehn(g,wFe,(ian(),d5e))}}}a=bG(lIn(r,cFe),322);v=bG(lIn(r,t_e),323);i=a==(Icn(),mNe)||v==(Myn(),XBe);if(!!c&&(!c.a&&(c.a=new PD(K7e,c,5)),c.a).i!=0&&i){p=NOn(c);w=new zk;for(k=Gkn(p,0);k.b!=k.d.c;){m=bG($6(k),8);hq(w,new uN(m))}Ehn(d,SDe,w)}return d}function qYn(n,e,t,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P,C,I,O;E=0;S=0;T=new rm;y=bG(Sx(nz(rY(new gX(null,new d3(n.b,16)),new su),new gu)),17).a+1;j=$nn(Ght,z1n,28,y,15,1);g=$nn(Ght,z1n,28,y,15,1);for(d=0;d1){for(u=C+1;uo.b.e.b*(1-v)+o.c.e.b*v){break}}if(M.gc()>0){I=o.a.b==0?_$(o.b.e):bG(MR(o.a),8);m=t_(_$(bG(M.Xb(M.gc()-1),40).e),bG(M.Xb(M.gc()-1),40).f);l=t_(_$(bG(M.Xb(0),40).e),bG(M.Xb(0),40).f);if(w>=M.gc()-1&&I.b>m.b&&o.c.e.b>m.b){continue}if(w<=0&&I.bo.b.e.a*(1-v)+o.c.e.a*v){break}}if(M.gc()>0){I=o.a.b==0?_$(o.b.e):bG(MR(o.a),8);m=t_(_$(bG(M.Xb(M.gc()-1),40).e),bG(M.Xb(M.gc()-1),40).f);l=t_(_$(bG(M.Xb(0),40).e),bG(M.Xb(0),40).f);if(w>=M.gc()-1&&I.a>m.a&&o.c.e.a>m.a){continue}if(w<=0&&I.a=bM(MK(lIn(n,(DQn(),xze))))&&++S}else{b.f&&b.d.e.a<=bM(MK(lIn(n,(DQn(),Dze))))&&++E;b.g&&b.c.e.a+b.c.f.a>=bM(MK(lIn(n,(DQn(),$ze))))&&++S}}}else if(k==0){dNn(o)}else if(k<0){++j[C];++g[O];P=xYn(o,e,n,new nA(Bwn(E),Bwn(S)),t,r,new nA(Bwn(g[O]),Bwn(j[C])));E=bG(P.a,17).a;S=bG(P.b,17).a}}}function XYn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p;r=e;s=t;if(n.b&&r.j==(UQn(),n9e)&&s.j==(UQn(),n9e)){p=r;r=s;s=p}if(Lz(n.a,r)){if(fS(bG(fQ(n.a,r),49),s)){return 1}}else{jJ(n.a,r,new uk)}if(Lz(n.a,s)){if(fS(bG(fQ(n.a,s),49),r)){return-1}}else{jJ(n.a,s,new uk)}if(Lz(n.d,r)){if(fS(bG(fQ(n.d,r),49),s)){return-1}}else{jJ(n.d,r,new uk)}if(Lz(n.d,s)){if(fS(bG(fQ(n.a,s),49),r)){return 1}}else{jJ(n.d,s,new uk)}if(r.j!=s.j){v=pN(r.j,s.j);v==-1?dHn(n,s,r):dHn(n,r,s);return v}if(r.e.c.length!=0&&s.e.c.length!=0){if(n.b){v=_bn(r,s);if(v!=0){v==-1?dHn(n,s,r):v==1&&dHn(n,r,s);return v}}a=bG(Yq(r.e,0),18).c.i;f=bG(Yq(s.e,0),18).c.i;if(a==f){i=bG(lIn(bG(Yq(r.e,0),18),(WYn(),jDe)),17).a;o=bG(lIn(bG(Yq(s.e,0),18),jDe),17).a;i>o?dHn(n,r,s):dHn(n,s,r);return io?1:0}for(w=n.c,d=0,g=w.length;do?dHn(n,r,s):dHn(n,s,r);return io?1:0}if(n.b){v=_bn(r,s);if(v!=0){v==-1?dHn(n,s,r):v==1&&dHn(n,r,s);return v}}c=0;h=0;jR(bG(Yq(r.g,0),18),jDe)&&(c=bG(lIn(bG(Yq(r.g,0),18),jDe),17).a);jR(bG(Yq(s.g,0),18),jDe)&&(h=bG(lIn(bG(Yq(r.g,0),18),jDe),17).a);if(!!u&&u==l){if(lM(yK(lIn(bG(Yq(r.g,0),18),KDe)))&&!lM(yK(lIn(bG(Yq(s.g,0),18),KDe)))){dHn(n,r,s);return 1}else if(!lM(yK(lIn(bG(Yq(r.g,0),18),KDe)))&&lM(yK(lIn(bG(Yq(s.g,0),18),KDe)))){dHn(n,s,r);return-1}c>h?dHn(n,r,s):dHn(n,s,r);return ch?1:0}if(n.f){n.f._b(u)&&(c=bG(n.f.xc(u),17).a);n.f._b(l)&&(h=bG(n.f.xc(l),17).a)}c>h?dHn(n,r,s):dHn(n,s,r);return ch?1:0}if(r.e.c.length!=0&&s.g.c.length!=0){dHn(n,r,s);return 1}else if(r.g.c.length!=0&&s.e.c.length!=0){dHn(n,s,r);return-1}else if(jR(r,(WYn(),jDe))&&jR(s,jDe)){i=bG(lIn(r,jDe),17).a;o=bG(lIn(s,jDe),17).a;i>o?dHn(n,r,s):dHn(n,s,r);return io?1:0}else{dHn(n,s,r);return-1}}function VYn(n){if(n.gb)return;n.gb=true;n.b=Kon(n,0);Zun(n.b,18);nsn(n.b,19);n.a=Kon(n,1);Zun(n.a,1);nsn(n.a,2);nsn(n.a,3);nsn(n.a,4);nsn(n.a,5);n.o=Kon(n,2);Zun(n.o,8);Zun(n.o,9);nsn(n.o,10);nsn(n.o,11);nsn(n.o,12);nsn(n.o,13);nsn(n.o,14);nsn(n.o,15);nsn(n.o,16);nsn(n.o,17);nsn(n.o,18);nsn(n.o,19);nsn(n.o,20);nsn(n.o,21);nsn(n.o,22);nsn(n.o,23);oin(n.o);oin(n.o);oin(n.o);oin(n.o);oin(n.o);oin(n.o);oin(n.o);oin(n.o);oin(n.o);oin(n.o);n.p=Kon(n,3);Zun(n.p,2);Zun(n.p,3);Zun(n.p,4);Zun(n.p,5);nsn(n.p,6);nsn(n.p,7);oin(n.p);oin(n.p);n.q=Kon(n,4);Zun(n.q,8);n.v=Kon(n,5);nsn(n.v,9);oin(n.v);oin(n.v);oin(n.v);n.w=Kon(n,6);Zun(n.w,2);Zun(n.w,3);Zun(n.w,4);nsn(n.w,5);n.B=Kon(n,7);nsn(n.B,1);oin(n.B);oin(n.B);oin(n.B);n.Q=Kon(n,8);nsn(n.Q,0);oin(n.Q);n.R=Kon(n,9);Zun(n.R,1);n.S=Kon(n,10);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);oin(n.S);n.T=Kon(n,11);nsn(n.T,10);nsn(n.T,11);nsn(n.T,12);nsn(n.T,13);nsn(n.T,14);oin(n.T);oin(n.T);n.U=Kon(n,12);Zun(n.U,2);Zun(n.U,3);nsn(n.U,4);nsn(n.U,5);nsn(n.U,6);nsn(n.U,7);oin(n.U);n.V=Kon(n,13);nsn(n.V,10);n.W=Kon(n,14);Zun(n.W,18);Zun(n.W,19);Zun(n.W,20);nsn(n.W,21);nsn(n.W,22);nsn(n.W,23);n.bb=Kon(n,15);Zun(n.bb,10);Zun(n.bb,11);Zun(n.bb,12);Zun(n.bb,13);Zun(n.bb,14);Zun(n.bb,15);Zun(n.bb,16);nsn(n.bb,17);oin(n.bb);oin(n.bb);n.eb=Kon(n,16);Zun(n.eb,2);Zun(n.eb,3);Zun(n.eb,4);Zun(n.eb,5);Zun(n.eb,6);Zun(n.eb,7);nsn(n.eb,8);nsn(n.eb,9);n.ab=Kon(n,17);Zun(n.ab,0);Zun(n.ab,1);n.H=Kon(n,18);nsn(n.H,0);nsn(n.H,1);nsn(n.H,2);nsn(n.H,3);nsn(n.H,4);nsn(n.H,5);oin(n.H);n.db=Kon(n,19);nsn(n.db,2);n.c=Fon(n,20);n.d=Fon(n,21);n.e=Fon(n,22);n.f=Fon(n,23);n.i=Fon(n,24);n.g=Fon(n,25);n.j=Fon(n,26);n.k=Fon(n,27);n.n=Fon(n,28);n.r=Fon(n,29);n.s=Fon(n,30);n.t=Fon(n,31);n.u=Fon(n,32);n.fb=Fon(n,33);n.A=Fon(n,34);n.C=Fon(n,35);n.D=Fon(n,36);n.F=Fon(n,37);n.G=Fon(n,38);n.I=Fon(n,39);n.J=Fon(n,40);n.L=Fon(n,41);n.M=Fon(n,42);n.N=Fon(n,43);n.O=Fon(n,44);n.P=Fon(n,45);n.X=Fon(n,46);n.Y=Fon(n,47);n.Z=Fon(n,48);n.$=Fon(n,49);n._=Fon(n,50);n.cb=Fon(n,51);n.K=Fon(n,52)}function zYn(n,e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P,C;c=new vS;M=bG(lIn(t,(IYn(),oFe)),88);d=0;esn(c,(!e.a&&(e.a=new gz(snt,e,10,11)),e.a));while(c.b!=0){f=bG(c.b==0?null:(PK(c.b!=0),Rin(c,c.a.a)),27);o=H0(f);(BA(YDn(o,zKe))!==BA((Smn(),hHe))||BA(YDn(o,uFe))===BA((Emn(),NNe))||BA(YDn(o,uFe))===BA((Emn(),ANe))||lM(yK(YDn(o,QKe)))||BA(YDn(o,HKe))!==BA((zmn(),hje))||BA(YDn(o,UFe))===BA((CHn(),ZBe))||BA(YDn(o,UFe))===BA((CHn(),nHe))||BA(YDn(o,GFe))===BA((PKn(),TBe))||BA(YDn(o,GFe))===BA((PKn(),EBe)))&&!lM(yK(YDn(f,XKe)))&&Pyn(f,(WYn(),jDe),Bwn(d++));v=!lM(yK(YDn(f,u_e)));if(v){l=(!f.a&&(f.a=new gz(snt,f,10,11)),f.a).i!=0;w=lCn(f);b=BA(YDn(f,SFe))===BA((Dwn(),U5e));C=!jnn(f,(JYn(),b4e))||R9(TK(YDn(f,b4e)));k=null;if(C&&b&&(l||w)){k=LGn(f);Ehn(k,oFe,M);jR(k,N_e)&&sM(new lpn(bM(MK(lIn(k,N_e)))),k);if(bG(YDn(f,r_e),181).gc()!=0){h=k;ES(new gX(null,(!f.c&&(f.c=new gz(ont,f,9,9)),new d3(f.c,16))),new rg(h));b_n(f,k)}}T=t;j=bG(fQ(n.a,H0(f)),10);!!j&&(T=j.e);m=HJn(n,f,T);if(k){m.e=k;k.e=m;esn(c,(!f.a&&(f.a=new gz(snt,f,10,11)),f.a))}}}d=0;w8(c,e,c.c.b,c.c);while(c.b!=0){a=bG(c.b==0?null:(PK(c.b!=0),Rin(c,c.a.a)),27);for(s=new _D((!a.b&&(a.b=new gz(H7e,a,12,3)),a.b));s.e!=s.i.gc();){u=bG(iyn(s),74);sHn(u);(BA(YDn(e,zKe))!==BA((Smn(),hHe))||BA(YDn(e,uFe))===BA((Emn(),NNe))||BA(YDn(e,uFe))===BA((Emn(),ANe))||lM(yK(YDn(e,QKe)))||BA(YDn(e,HKe))!==BA((zmn(),hje))||BA(YDn(e,UFe))===BA((CHn(),ZBe))||BA(YDn(e,UFe))===BA((CHn(),nHe))||BA(YDn(e,GFe))===BA((PKn(),TBe))||BA(YDn(e,GFe))===BA((PKn(),EBe)))&&Pyn(u,(WYn(),jDe),Bwn(d++));S=vCn(bG(Yin((!u.b&&(u.b=new g_(B7e,u,4,7)),u.b),0),84));P=vCn(bG(Yin((!u.c&&(u.c=new g_(B7e,u,5,8)),u.c),0),84));if(lM(yK(YDn(u,u_e)))||lM(yK(YDn(S,u_e)))||lM(yK(YDn(P,u_e)))){continue}g=XNn(u)&&lM(yK(YDn(S,AFe)))&&lM(yK(YDn(u,LFe)));y=a;g||Oin(P,S)?y=S:Oin(S,P)&&(y=P);T=t;j=bG(fQ(n.a,y),10);!!j&&(T=j.e);p=GYn(n,u,y,T);Ehn(p,(WYn(),Q$e),AFn(n,u,e,t))}b=BA(YDn(a,SFe))===BA((Dwn(),U5e));if(b){for(i=new _D((!a.a&&(a.a=new gz(snt,a,10,11)),a.a));i.e!=i.i.gc();){r=bG(iyn(i),27);C=!jnn(r,(JYn(),b4e))||R9(TK(YDn(r,b4e)));E=BA(YDn(r,SFe))===BA(U5e);C&&E&&(w8(c,r,c.c.b,c.c),true)}}}}function WYn(){WYn=O;var n,e;EDe=new Np(j4n);Q$e=new Np("coordinateOrigin");DDe=new Np("processors");W$e=new bF("compoundNode",(Qx(),false));lDe=new bF("insideConnections",false);SDe=new Np("originalBendpoints");PDe=new Np("originalDummyNodePosition");CDe=new Np("originalLabelEdge");RDe=new Np("representedLabels");eDe=new Np("endLabels");tDe=new Np("endLabel.origin");vDe=new bF("labelSide",(xjn(),J5e));TDe=new bF("maxEdgeThickness",0);KDe=new bF("reversed",false);xDe=new Np(E4n);kDe=new bF("longEdgeSource",null);yDe=new bF("longEdgeTarget",null);mDe=new bF("longEdgeHasLabelDummies",false);pDe=new bF("longEdgeBeforeLabelDummy",false);nDe=new bF("edgeConstraint",(Lhn(),BNe));wDe=new Np("inLayerLayoutUnit");bDe=new bF("inLayerConstraint",(irn(),R$e));dDe=new bF("inLayerSuccessorConstraint",new im);gDe=new bF("inLayerSuccessorConstraintBetweenNonDummies",false);NDe=new Np("portDummy");J$e=new bF("crossingHint",Bwn(0));oDe=new bF("graphProperties",(e=bG(Pj(I$e),9),new aB(e,bG(PF(e,e.length),9),0)));cDe=new bF("externalPortSide",(UQn(),Z8e));uDe=new bF("externalPortSize",new wj);iDe=new Np("externalPortReplacedDummies");aDe=new Np("externalPortReplacedDummy");rDe=new bF("externalPortConnections",(n=bG(Pj(e9e),9),new aB(n,bG(PF(n,n.length),9),0)));$De=new bF(t3n,0);q$e=new Np("barycenterAssociates");zDe=new Np("TopSideComments");X$e=new Np("BottomSideComments");z$e=new Np("CommentConnectionPort");hDe=new bF("inputCollect",false);ADe=new bF("outputCollect",false);Z$e=new bF("cyclic",false);Y$e=new Np("crossHierarchyMap");VDe=new Np("targetOffset");new bF("splineLabelSize",new wj);BDe=new Np("spacings");LDe=new bF("partitionConstraint",false);V$e=new Np("breakingPoint.info");qDe=new Np("splines.survivingEdge");GDe=new Np("splines.route.start");HDe=new Np("splines.edgeChain");ODe=new Np("originalPortConstraints");_De=new Np("selfLoopHolder");UDe=new Np("splines.nsPortY");jDe=new Np("modelOrder");MDe=new Np("longEdgeTargetNode");sDe=new bF(F6n,false);FDe=new bF(F6n,false);fDe=new Np("layerConstraints.hiddenNodes");IDe=new Np("layerConstraints.opposidePort");XDe=new Np("targetNode.modelOrder")}function QYn(n,e,r,i){var a,c,u,s,o,f,h,l,b,w,d;for(l=Gkn(n.b,0);l.b!=l.d.c;){h=bG($6(l),40);if(T_(h.c,B9n)){continue}c=bG(v8(new gX(null,new d3(YNn(h,n),16)),gen(new Z,new Y,new sn,zfn(fT($de,1),g1n,108,0,[(Sbn(),Lde)]))),15);e==(Bdn(),o5e)||e==f5e?c.jd(new lu):c.jd(new bu);d=c.gc();for(a=0;a0){s=bG(MR(bG(c.Xb(a),65).a),8).a;b=h.e.a+h.f.a/2;o=bG(MR(bG(c.Xb(a),65).a),8).b;w=h.e.b+h.f.b/2;i>0&&t.Math.abs(o-w)/(t.Math.abs(s-b)/40)>50&&(w>o?fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a+i/5.3,h.e.b+h.f.b*u-i/2)):fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a+i/5.3,h.e.b+h.f.b*u+i/2)))}fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a,h.e.b+h.f.b*u))}else if(e==f5e){f=bM(MK(lIn(h,(DQn(),Uze))));if(h.e.a-i>f){fL(bG(c.Xb(a),65).a,new PO(f-r,h.e.b+h.f.b*u))}else if(bG(c.Xb(a),65).a.b>0){s=bG(MR(bG(c.Xb(a),65).a),8).a;b=h.e.a+h.f.a/2;o=bG(MR(bG(c.Xb(a),65).a),8).b;w=h.e.b+h.f.b/2;i>0&&t.Math.abs(o-w)/(t.Math.abs(s-b)/40)>50&&(w>o?fL(bG(c.Xb(a),65).a,new PO(h.e.a-i/5.3,h.e.b+h.f.b*u-i/2)):fL(bG(c.Xb(a),65).a,new PO(h.e.a-i/5.3,h.e.b+h.f.b*u+i/2)))}fL(bG(c.Xb(a),65).a,new PO(h.e.a,h.e.b+h.f.b*u))}else if(e==l5e){f=bM(MK(lIn(h,(DQn(),Hze))));if(h.e.b+h.f.b+i0){s=bG(MR(bG(c.Xb(a),65).a),8).a;b=h.e.a+h.f.a/2;o=bG(MR(bG(c.Xb(a),65).a),8).b;w=h.e.b+h.f.b/2;i>0&&t.Math.abs(s-b)/(t.Math.abs(o-w)/40)>50&&(b>s?fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a*u-i/2,h.e.b+i/5.3+h.f.b)):fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a*u+i/2,h.e.b+i/5.3+h.f.b)))}fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a*u,h.e.b+h.f.b))}else{f=bM(MK(lIn(h,(DQn(),Uze))));if(bln(bG(c.Xb(a),65),n)){fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a*u,bG(MR(bG(c.Xb(a),65).a),8).b))}else if(h.e.b-i>f){fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a*u,f-r))}else if(bG(c.Xb(a),65).a.b>0){s=bG(MR(bG(c.Xb(a),65).a),8).a;b=h.e.a+h.f.a/2;o=bG(MR(bG(c.Xb(a),65).a),8).b;w=h.e.b+h.f.b/2;i>0&&t.Math.abs(s-b)/(t.Math.abs(o-w)/40)>50&&(b>s?fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a*u-i/2,h.e.b-i/5.3)):fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a*u+i/2,h.e.b-i/5.3)))}fL(bG(c.Xb(a),65).a,new PO(h.e.a+h.f.a*u,h.e.b))}}}}function JYn(){JYn=O;var n,e;b4e=new Np(Vne);L6e=new Np(zne);d4e=(aMn(),R3e);w4e=new TL(q8n,d4e);new tm;g4e=new TL(x3n,null);v4e=new Np(Wne);j4e=(iPn(),nV(f4e,zfn(fT(h4e,1),g1n,298,0,[c4e])));T4e=new TL(r9n,j4e);E4e=new TL(G8n,(Qx(),false));P4e=(Bdn(),h5e);S4e=new TL(z8n,P4e);L4e=(qgn(),T5e);A4e=new TL(v8n,L4e);D4e=new TL(qne,false);R4e=(Dwn(),G5e);x4e=new TL(l8n,R4e);u6e=new NN(12);c6e=new TL(R3n,u6e);B4e=new TL(f4n,false);H4e=new TL(d9n,false);a6e=new TL(b4n,false);y6e=(FPn(),T8e);k6e=new TL(h4n,y6e);I6e=new Np(l9n);O6e=new Np(a4n);A6e=new Np(s4n);$6e=new Np(o4n);G4e=new zk;U4e=new TL(i9n,G4e);M4e=new TL(u9n,false);K4e=new TL(s9n,false);new Np(Qne);X4e=new Kk;q4e=new TL(b9n,X4e);i6e=new TL(H8n,false);new tm;N6e=new TL(Jne,1);y4e=new Np(Yne);k4e=new Np(Zne);Z6e=new TL(m4n,false);new TL(nee,true);Bwn(0);new TL(eee,Bwn(100));new TL(tee,false);Bwn(0);new TL(ree,Bwn(4e3));Bwn(0);new TL(iee,Bwn(400));new TL(aee,false);new TL(cee,false);new TL(uee,true);new TL(see,false);m4e=(Qvn(),q9e);p4e=new TL(Xne,m4e);D6e=new TL(O8n,10);x6e=new TL(A8n,10);R6e=new TL($3n,20);K6e=new TL(L8n,10);F6e=new TL(u4n,2);_6e=new TL(N8n,10);H6e=new TL($8n,0);U6e=new TL(R8n,5);G6e=new TL(D8n,1);q6e=new TL(x8n,1);X6e=new TL(c4n,20);V6e=new TL(K8n,10);Q6e=new TL(F8n,10);B6e=new Np(_8n);W6e=new QL;z6e=new TL(w9n,W6e);f6e=new Np(h9n);o6e=false;s6e=new TL(f9n,o6e);z4e=new NN(5);V4e=new TL(W8n,z4e);Q4e=(ZDn(),e=bG(Pj(o8e),9),new aB(e,bG(PF(e,e.length),9),0));W4e=new TL(v4n,Q4e);b6e=(Zkn(),b8e);l6e=new TL(Y8n,b6e);d6e=new Np(Z8n);g6e=new Np(n9n);v6e=new Np(e9n);w6e=new Np(t9n);Y4e=(n=bG(Pj(w9e),9),new aB(n,bG(PF(n,n.length),9),0));J4e=new TL(g4n,Y4e);r6e=ygn((hUn(),p9e));t6e=new TL(d4n,r6e);e6e=new PO(0,0);n6e=new TL(D4n,e6e);Z4e=new TL(w4n,false);O4e=(ian(),d5e);I4e=new TL(a9n,O4e);C4e=new TL(l4n,false);new Np(oee);Bwn(1);new TL(fee,null);p6e=new Np(o9n);M6e=new Np(c9n);C6e=(UQn(),Z8e);P6e=new TL(U8n,C6e);m6e=new Np(B8n);E6e=(uNn(),ygn(O8e));j6e=new TL(p4n,E6e);T6e=new TL(Q8n,false);S6e=new TL(J8n,true);new tm;r5e=new TL(k4n,1);a5e=new TL(hee,null);Y6e=new TL(y4n,150);J6e=new TL(M4n,1.414);n5e=new TL(T4n,null);e5e=new TL(lee,1);F4e=new TL(X8n,false);_4e=new TL(V8n,false);N4e=new TL(D3n,1);$4e=(HCn(),O5e);new TL(bee,$4e);h6e=true;i5e=($wn(),P9e);c5e=P9e;t5e=P9e}function YYn(){YYn=O;gPe=new NC("DIRECTION_PREPROCESSOR",0);bPe=new NC("COMMENT_PREPROCESSOR",1);vPe=new NC("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2);NPe=new NC("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3);YPe=new NC("PARTITION_PREPROCESSOR",4);RPe=new NC("LABEL_DUMMY_INSERTER",5);iCe=new NC("SELF_LOOP_PREPROCESSOR",6);HPe=new NC("LAYER_CONSTRAINT_PREPROCESSOR",7);QPe=new NC("PARTITION_MIDPROCESSOR",8);CPe=new NC("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9);XPe=new NC("NODE_PROMOTION",10);BPe=new NC("LAYER_CONSTRAINT_POSTPROCESSOR",11);JPe=new NC("PARTITION_POSTPROCESSOR",12);jPe=new NC("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13);cCe=new NC("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14);uPe=new NC("BREAKING_POINT_INSERTER",15);qPe=new NC("LONG_EDGE_SPLITTER",16);nCe=new NC("PORT_SIDE_PROCESSOR",17);$Pe=new NC("INVERTED_PORT_PROCESSOR",18);ZPe=new NC("PORT_LIST_SORTER",19);sCe=new NC("SORT_BY_INPUT_ORDER_OF_MODEL",20);zPe=new NC("NORTH_SOUTH_PORT_PREPROCESSOR",21);sPe=new NC("BREAKING_POINT_PROCESSOR",22);WPe=new NC(g6n,23);oCe=new NC(v6n,24);tCe=new NC("SELF_LOOP_PORT_RESTORER",25);uCe=new NC("SINGLE_EDGE_GRAPH_WRAPPER",26);DPe=new NC("IN_LAYER_CONSTRAINT_PROCESSOR",27);yPe=new NC("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28);xPe=new NC("LABEL_AND_NODE_SIZE_PROCESSOR",29);LPe=new NC("INNERMOST_NODE_MARGIN_CALCULATOR",30);aCe=new NC("SELF_LOOP_ROUTER",31);hPe=new NC("COMMENT_NODE_MARGIN_CALCULATOR",32);mPe=new NC("END_LABEL_PREPROCESSOR",33);FPe=new NC("LABEL_DUMMY_SWITCHER",34);fPe=new NC("CENTER_LABEL_MANAGEMENT_PROCESSOR",35);_Pe=new NC("LABEL_SIDE_SELECTOR",36);OPe=new NC("HYPEREDGE_DUMMY_MERGER",37);EPe=new NC("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38);UPe=new NC("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39);PPe=new NC("HIERARCHICAL_PORT_POSITION_PROCESSOR",40);wPe=new NC("CONSTRAINTS_POSTPROCESSOR",41);lPe=new NC("COMMENT_POSTPROCESSOR",42);APe=new NC("HYPERNODE_PROCESSOR",43);SPe=new NC("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44);GPe=new NC("LONG_EDGE_JOINER",45);rCe=new NC("SELF_LOOP_POSTPROCESSOR",46);oPe=new NC("BREAKING_POINT_REMOVER",47);VPe=new NC("NORTH_SOUTH_PORT_POSTPROCESSOR",48);IPe=new NC("HORIZONTAL_COMPACTOR",49);KPe=new NC("LABEL_DUMMY_REMOVER",50);MPe=new NC("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51);kPe=new NC("END_LABEL_SORTER",52);eCe=new NC("REVERSED_EDGE_RESTORER",53);pPe=new NC("END_LABEL_POSTPROCESSOR",54);TPe=new NC("HIERARCHICAL_NODE_RESIZER",55);dPe=new NC("DIRECTION_POSTPROCESSOR",56)}function ZYn(){ZYn=O;_xe=(Zrn(),xNe);Fxe=new TL(_6n,_xe);rRe=new TL(B6n,(Qx(),false));oRe=(r5(),B$e);sRe=new TL(H6n,oRe);PRe=new TL(U6n,false);CRe=new TL(G6n,true);txe=new TL(q6n,false);zRe=(arn(),gHe);VRe=new TL(X6n,zRe);Bwn(1);tKe=new TL(V6n,Bwn(7));rKe=new TL(z6n,false);iRe=new TL(W6n,false);Kxe=(Emn(),ONe);Rxe=new TL(Q6n,Kxe);SRe=(PKn(),OBe);ERe=new TL(J6n,SRe);gRe=(Wvn(),ZDe);dRe=new TL(Y6n,gRe);Bwn(-1);wRe=new TL(Z6n,null);Bwn(-1);vRe=new TL(n5n,Bwn(-1));Bwn(-1);pRe=new TL(e5n,Bwn(4));Bwn(-1);kRe=new TL(t5n,Bwn(2));jRe=(CHn(),cHe);TRe=new TL(r5n,jRe);Bwn(0);MRe=new TL(i5n,Bwn(0));lRe=new TL(a5n,Bwn(pZn));xxe=(Icn(),kNe);Dxe=new TL(c5n,xxe);pxe=new TL(u5n,false);Pxe=new TL(s5n,.1);Nxe=new TL(o5n,false);Ixe=new TL(f5n,null);Oxe=new TL(h5n,null);Bwn(-1);Axe=new TL(l5n,null);Bwn(-1);Lxe=new TL(b5n,Bwn(-1));Bwn(0);mxe=new TL(w5n,Bwn(40));Exe=(sfn(),N$e);jxe=new TL(d5n,Exe);yxe=A$e;kxe=new TL(g5n,yxe);XRe=(Myn(),qBe);qRe=new TL(v5n,XRe);DRe=new Np(p5n);ORe=(ntn(),ZNe);IRe=new TL(m5n,ORe);NRe=(OSn(),c$e);LRe=new TL(k5n,NRe);new tm;KRe=new TL(y5n,.3);_Re=new Np(M5n);HRe=(rMn(),BBe);BRe=new TL(T5n,HRe);zxe=(son(),SHe);Vxe=new TL(j5n,zxe);Qxe=(Aln(),LHe);Wxe=new TL(E5n,Qxe);Yxe=(Ebn(),KHe);Jxe=new TL(S5n,Yxe);nRe=new TL(P5n,.2);qxe=new TL(C5n,2);YRe=new TL(I5n,null);nKe=new TL(O5n,10);ZRe=new TL(A5n,10);eKe=new TL(L5n,20);Bwn(0);WRe=new TL(N5n,Bwn(0));Bwn(0);QRe=new TL($5n,Bwn(0));Bwn(0);JRe=new TL(D5n,Bwn(0));rxe=new TL(x5n,false);uxe=(HIn(),d$e);cxe=new TL(R5n,uxe);axe=(V7(),gNe);ixe=new TL(K5n,axe);cRe=new TL(F5n,false);Bwn(0);aRe=new TL(_5n,Bwn(16));Bwn(0);uRe=new TL(B5n,Bwn(5));SKe=(Yfn(),VHe);EKe=new TL(H5n,SKe);iKe=new TL(U5n,10);uKe=new TL(G5n,1);gKe=(ocn(),SNe);dKe=new TL(q5n,gKe);fKe=new Np(X5n);bKe=Bwn(1);Bwn(0);lKe=new TL(V5n,bKe);AKe=(scn(),BHe);OKe=new TL(z5n,AKe);PKe=new Np(W5n);yKe=new TL(Q5n,true);mKe=new TL(J5n,2);TKe=new TL(Y5n,true);Gxe=(cOn(),WNe);Uxe=new TL(Z5n,Gxe);Hxe=(jAn(),oNe);Bxe=new TL(n8n,Hxe);vxe=(Smn(),hHe);gxe=new TL(e8n,vxe);dxe=new TL(t8n,false);wxe=new TL(r8n,false);oxe=(zmn(),hje);sxe=new TL(i8n,oxe);bxe=(Nwn(),$Be);lxe=new TL(a8n,bxe);fxe=new TL(c8n,0);hxe=new TL(u8n,0);hRe=LNe;fRe=mNe;mRe=IBe;yRe=IBe;bRe=jBe;Cxe=(Dwn(),U5e);$xe=kNe;Sxe=kNe;Mxe=kNe;Txe=U5e;xRe=zBe;RRe=qBe;ARe=qBe;$Re=qBe;FRe=VBe;GRe=zBe;URe=zBe;Zxe=(qgn(),M5e);eRe=M5e;tRe=KHe;Xxe=y5e;aKe=zHe;cKe=XHe;sKe=zHe;oKe=XHe;vKe=zHe;pKe=XHe;hKe=ENe;wKe=SNe;LKe=zHe;NKe=XHe;CKe=zHe;IKe=XHe;MKe=XHe;kKe=XHe;jKe=XHe}function nZn(n,e,r){var i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P,C,I,O,A,L,N,$,D,x,R,K,F,_,B,H,U,G,q,X,V,z,W,Q,J,Y,Z,nn,en,tn,rn,an,cn,un,sn;Y=0;for(O=e,N=0,x=O.length;N0&&(n.a[U.p]=Y++)}}rn=0;for(A=r,$=0,R=A.length;$0){U=(PK(V.b>0),bG(V.a.Xb(V.c=--V.b),12));X=0;for(s=new nd(U.e);s.a0){if(U.j==(UQn(),D8e)){n.a[U.p]=rn;++rn}else{n.a[U.p]=rn+K+_;++_}}}rn+=_}q=new rm;d=new JL;for(I=e,L=0,D=I.length;Lf.b&&(f.b=z)}else if(U.i.c==J){zf.c&&(f.c=z)}}}Ken(g,0,g.length,null);tn=$nn(Ght,z1n,28,g.length,15,1);i=$nn(Ght,z1n,28,rn+1,15,1);for(p=0;p0){j%2>0&&(a+=un[j+1]);j=(j-1)/2|0;++un[j]}}S=$nn(PGe,jZn,374,g.length*2,0,1);for(y=0;y0&&(x1(L.f),false)){if(bG(YDn(p,n5e),280)==P9e){throw dm(new IM("Topdown Layout Providers should only be used on parallel nodes."))}JA(x1(L.f));null.Um();jN(p,t.Math.max(p.g,null.Vm),t.Math.max(p.f,null.Vm))}else if(YDn(p,a5e)!=null){s=bG(YDn(p,a5e),347);q=s.Tg(p);jN(p,t.Math.max(p.g,q.a),t.Math.max(p.f,q.b))}}}R=bG(YDn(e,c6e),107);w=e.g-(R.b+R.c);b=e.f-(R.d+R.a);z.bh("Available Child Area: ("+w+"|"+b+")");Pyn(e,g4e,w/b);Pkn(e,a,i.eh(D));if(bG(YDn(e,n5e),280)==I9e){ZJn(e);jN(e,R.b+bM(MK(YDn(e,y4e)))+R.c,R.d+bM(MK(YDn(e,k4e)))+R.a)}z.bh("Executed layout algorithm: "+TK(YDn(e,b4e))+" on node "+e.k);if(bG(YDn(e,n5e),280)==P9e){if(w<0||b<0){throw dm(new IM("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+e.k))}jnn(e,y4e)||jnn(e,k4e)||ZJn(e);g=bM(MK(YDn(e,y4e)));d=bM(MK(YDn(e,k4e)));z.bh("Desired Child Area: ("+g+"|"+d+")");F=w/g;_=b/d;K=t.Math.min(F,t.Math.min(_,bM(MK(YDn(e,e5e)))));Pyn(e,r5e,K);z.bh(e.k+" -- Local Scale Factor (X|Y): ("+F+"|"+_+")");y=bG(YDn(e,T4e),21);c=0;u=0;K'?":T_(tre,n)?"'(?<' or '(? toIndex: ",s2n=", toIndex: ",o2n="Index: ",f2n=", Size: ",h2n="org.eclipse.elk.alg.common",l2n={50:1},b2n="org.eclipse.elk.alg.common.compaction",w2n="Scanline/EventHandler",d2n="org.eclipse.elk.alg.common.compaction.oned",g2n="CNode belongs to another CGroup.",v2n="ISpacingsHandler/1",p2n="The ",m2n=" instance has been finished already.",k2n="The direction ",y2n=" is not supported by the CGraph instance.",M2n="OneDimensionalCompactor",T2n="OneDimensionalCompactor/lambda$0$Type",j2n="Quadruplet",E2n="ScanlineConstraintCalculator",S2n="ScanlineConstraintCalculator/ConstraintsScanlineHandler",P2n="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",C2n="ScanlineConstraintCalculator/Timestamp",I2n="ScanlineConstraintCalculator/lambda$0$Type",O2n={178:1,46:1},A2n="org.eclipse.elk.alg.common.compaction.options",L2n="org.eclipse.elk.core.data",N2n="org.eclipse.elk.polyomino.traversalStrategy",$2n="org.eclipse.elk.polyomino.lowLevelSort",D2n="org.eclipse.elk.polyomino.highLevelSort",x2n="org.eclipse.elk.polyomino.fill",R2n={134:1},K2n="polyomino",F2n="org.eclipse.elk.alg.common.networksimplex",_2n={183:1,3:1,4:1},B2n="org.eclipse.elk.alg.common.nodespacing",H2n="org.eclipse.elk.alg.common.nodespacing.cellsystem",U2n="CENTER",G2n={217:1,336:1},q2n={3:1,4:1,5:1,603:1},X2n="LEFT",V2n="RIGHT",z2n="Vertical alignment cannot be null",W2n="BOTTOM",Q2n="org.eclipse.elk.alg.common.nodespacing.internal",J2n="UNDEFINED",Y2n=.01,Z2n="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",n3n="LabelPlacer/lambda$0$Type",e3n="LabelPlacer/lambda$1$Type",t3n="portRatioOrPosition",r3n="org.eclipse.elk.alg.common.overlaps",i3n="DOWN",a3n="org.eclipse.elk.alg.common.polyomino",c3n="NORTH",u3n="EAST",s3n="SOUTH",o3n="WEST",f3n="org.eclipse.elk.alg.common.polyomino.structures",h3n="Direction",l3n="Grid is only of size ",b3n=". Requested point (",w3n=") is out of bounds.",d3n=" Given center based coordinates were (",g3n="org.eclipse.elk.graph.properties",v3n="IPropertyHolder",p3n={3:1,96:1,137:1},m3n="org.eclipse.elk.alg.common.spore",k3n="org.eclipse.elk.alg.common.utils",y3n={205:1},M3n="org.eclipse.elk.core",T3n="Connected Components Compaction",j3n="org.eclipse.elk.alg.disco",E3n="org.eclipse.elk.alg.disco.graph",S3n="org.eclipse.elk.alg.disco.options",P3n="CompactionStrategy",C3n="org.eclipse.elk.disco.componentCompaction.strategy",I3n="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",O3n="org.eclipse.elk.disco.debug.discoGraph",A3n="org.eclipse.elk.disco.debug.discoPolys",L3n="componentCompaction",N3n="org.eclipse.elk.disco",$3n="org.eclipse.elk.spacing.componentComponent",D3n="org.eclipse.elk.edge.thickness",x3n="org.eclipse.elk.aspectRatio",R3n="org.eclipse.elk.padding",K3n="org.eclipse.elk.alg.disco.transform",F3n=1.5707963267948966,_3n=17976931348623157e292,B3n={3:1,4:1,5:1,198:1},H3n={3:1,6:1,4:1,5:1,100:1,115:1},U3n="org.eclipse.elk.alg.force",G3n="ComponentsProcessor",q3n="ComponentsProcessor/1",X3n="ElkGraphImporter/lambda$0$Type",V3n="org.eclipse.elk.alg.force.graph",z3n="Component Layout",W3n="org.eclipse.elk.alg.force.model",Q3n="org.eclipse.elk.force.model",J3n="org.eclipse.elk.force.iterations",Y3n="org.eclipse.elk.force.repulsivePower",Z3n="org.eclipse.elk.force.temperature",n4n=.001,e4n="org.eclipse.elk.force.repulsion",t4n="org.eclipse.elk.alg.force.options",r4n=1.600000023841858,i4n="org.eclipse.elk.force",a4n="org.eclipse.elk.priority",c4n="org.eclipse.elk.spacing.nodeNode",u4n="org.eclipse.elk.spacing.edgeLabel",s4n="org.eclipse.elk.randomSeed",o4n="org.eclipse.elk.separateConnectedComponents",f4n="org.eclipse.elk.interactive",h4n="org.eclipse.elk.portConstraints",l4n="org.eclipse.elk.edgeLabels.inline",b4n="org.eclipse.elk.omitNodeMicroLayout",w4n="org.eclipse.elk.nodeSize.fixedGraphSize",d4n="org.eclipse.elk.nodeSize.options",g4n="org.eclipse.elk.nodeSize.constraints",v4n="org.eclipse.elk.nodeLabels.placement",p4n="org.eclipse.elk.portLabels.placement",m4n="org.eclipse.elk.topdownLayout",k4n="org.eclipse.elk.topdown.scaleFactor",y4n="org.eclipse.elk.topdown.hierarchicalNodeWidth",M4n="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",T4n="org.eclipse.elk.topdown.nodeType",j4n="origin",E4n="random",S4n="boundingBox.upLeft",P4n="boundingBox.lowRight",C4n="org.eclipse.elk.stress.fixed",I4n="org.eclipse.elk.stress.desiredEdgeLength",O4n="org.eclipse.elk.stress.dimension",A4n="org.eclipse.elk.stress.epsilon",L4n="org.eclipse.elk.stress.iterationLimit",N4n="org.eclipse.elk.stress",$4n="ELK Stress",D4n="org.eclipse.elk.nodeSize.minimum",x4n="org.eclipse.elk.alg.force.stress",R4n="Layered layout",K4n="org.eclipse.elk.alg.layered",F4n="org.eclipse.elk.alg.layered.compaction.components",_4n="org.eclipse.elk.alg.layered.compaction.oned",B4n="org.eclipse.elk.alg.layered.compaction.oned.algs",H4n="org.eclipse.elk.alg.layered.compaction.recthull",U4n="org.eclipse.elk.alg.layered.components",G4n="NONE",q4n="MODEL_ORDER",X4n={3:1,6:1,4:1,9:1,5:1,126:1},V4n={3:1,6:1,4:1,5:1,150:1,100:1,115:1},z4n="org.eclipse.elk.alg.layered.compound",W4n={47:1},Q4n="org.eclipse.elk.alg.layered.graph",J4n=" -> ",Y4n="Not supported by LGraph",Z4n="Port side is undefined",n6n={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},e6n={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},t6n={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},r6n="([{\"' \t\r\n",i6n=")]}\"' \t\r\n",a6n="The given string contains parts that cannot be parsed as numbers.",c6n="org.eclipse.elk.core.math",u6n={3:1,4:1,140:1,214:1,423:1},s6n={3:1,4:1,107:1,214:1,423:1},o6n="org.eclipse.elk.alg.layered.graph.transform",f6n="ElkGraphImporter",h6n="ElkGraphImporter/lambda$1$Type",l6n="ElkGraphImporter/lambda$2$Type",b6n="ElkGraphImporter/lambda$4$Type",w6n="org.eclipse.elk.alg.layered.intermediate",d6n="Node margin calculation",g6n="ONE_SIDED_GREEDY_SWITCH",v6n="TWO_SIDED_GREEDY_SWITCH",p6n="No implementation is available for the layout processor ",m6n="IntermediateProcessorStrategy",k6n="Node '",y6n="FIRST_SEPARATE",M6n="LAST_SEPARATE",T6n="Odd port side processing",j6n="org.eclipse.elk.alg.layered.intermediate.compaction",E6n="org.eclipse.elk.alg.layered.intermediate.greedyswitch",S6n="org.eclipse.elk.alg.layered.p3order.counting",P6n={230:1},C6n="org.eclipse.elk.alg.layered.intermediate.loops",I6n="org.eclipse.elk.alg.layered.intermediate.loops.ordering",O6n="org.eclipse.elk.alg.layered.intermediate.loops.routing",A6n="org.eclipse.elk.alg.layered.intermediate.preserveorder",L6n="org.eclipse.elk.alg.layered.intermediate.wrapping",N6n="org.eclipse.elk.alg.layered.options",$6n="INTERACTIVE",D6n="GREEDY",x6n="DEPTH_FIRST",R6n="EDGE_LENGTH",K6n="SELF_LOOPS",F6n="firstTryWithInitialOrder",_6n="org.eclipse.elk.layered.directionCongruency",B6n="org.eclipse.elk.layered.feedbackEdges",H6n="org.eclipse.elk.layered.interactiveReferencePoint",U6n="org.eclipse.elk.layered.mergeEdges",G6n="org.eclipse.elk.layered.mergeHierarchyEdges",q6n="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",X6n="org.eclipse.elk.layered.portSortingStrategy",V6n="org.eclipse.elk.layered.thoroughness",z6n="org.eclipse.elk.layered.unnecessaryBendpoints",W6n="org.eclipse.elk.layered.generatePositionAndLayerIds",Q6n="org.eclipse.elk.layered.cycleBreaking.strategy",J6n="org.eclipse.elk.layered.layering.strategy",Y6n="org.eclipse.elk.layered.layering.layerConstraint",Z6n="org.eclipse.elk.layered.layering.layerChoiceConstraint",n5n="org.eclipse.elk.layered.layering.layerId",e5n="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",t5n="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",r5n="org.eclipse.elk.layered.layering.nodePromotion.strategy",i5n="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",a5n="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",c5n="org.eclipse.elk.layered.crossingMinimization.strategy",u5n="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",s5n="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",o5n="org.eclipse.elk.layered.crossingMinimization.semiInteractive",f5n="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",h5n="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",l5n="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",b5n="org.eclipse.elk.layered.crossingMinimization.positionId",w5n="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",d5n="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",g5n="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",v5n="org.eclipse.elk.layered.nodePlacement.strategy",p5n="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",m5n="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",k5n="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",y5n="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",M5n="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",T5n="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",j5n="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",E5n="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",S5n="org.eclipse.elk.layered.edgeRouting.splines.mode",P5n="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",C5n="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",I5n="org.eclipse.elk.layered.spacing.baseValue",O5n="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",A5n="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",L5n="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",N5n="org.eclipse.elk.layered.priority.direction",$5n="org.eclipse.elk.layered.priority.shortness",D5n="org.eclipse.elk.layered.priority.straightness",x5n="org.eclipse.elk.layered.compaction.connectedComponents",R5n="org.eclipse.elk.layered.compaction.postCompaction.strategy",K5n="org.eclipse.elk.layered.compaction.postCompaction.constraints",F5n="org.eclipse.elk.layered.highDegreeNodes.treatment",_5n="org.eclipse.elk.layered.highDegreeNodes.threshold",B5n="org.eclipse.elk.layered.highDegreeNodes.treeHeight",H5n="org.eclipse.elk.layered.wrapping.strategy",U5n="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",G5n="org.eclipse.elk.layered.wrapping.correctionFactor",q5n="org.eclipse.elk.layered.wrapping.cutting.strategy",X5n="org.eclipse.elk.layered.wrapping.cutting.cuts",V5n="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",z5n="org.eclipse.elk.layered.wrapping.validify.strategy",W5n="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",Q5n="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",J5n="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",Y5n="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",Z5n="org.eclipse.elk.layered.edgeLabels.sideSelection",n8n="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",e8n="org.eclipse.elk.layered.considerModelOrder.strategy",t8n="org.eclipse.elk.layered.considerModelOrder.portModelOrder",r8n="org.eclipse.elk.layered.considerModelOrder.noModelOrder",i8n="org.eclipse.elk.layered.considerModelOrder.components",a8n="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",c8n="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",u8n="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",s8n="layering",o8n="layering.minWidth",f8n="layering.nodePromotion",h8n="crossingMinimization",l8n="org.eclipse.elk.hierarchyHandling",b8n="crossingMinimization.greedySwitch",w8n="nodePlacement",d8n="nodePlacement.bk",g8n="edgeRouting",v8n="org.eclipse.elk.edgeRouting",p8n="spacing",m8n="priority",k8n="compaction",y8n="compaction.postCompaction",M8n="Specifies whether and how post-process compaction is applied.",T8n="highDegreeNodes",j8n="wrapping",E8n="wrapping.cutting",S8n="wrapping.validify",P8n="wrapping.multiEdge",C8n="edgeLabels",I8n="considerModelOrder",O8n="org.eclipse.elk.spacing.commentComment",A8n="org.eclipse.elk.spacing.commentNode",L8n="org.eclipse.elk.spacing.edgeEdge",N8n="org.eclipse.elk.spacing.edgeNode",$8n="org.eclipse.elk.spacing.labelLabel",D8n="org.eclipse.elk.spacing.labelPortHorizontal",x8n="org.eclipse.elk.spacing.labelPortVertical",R8n="org.eclipse.elk.spacing.labelNode",K8n="org.eclipse.elk.spacing.nodeSelfLoop",F8n="org.eclipse.elk.spacing.portPort",_8n="org.eclipse.elk.spacing.individual",B8n="org.eclipse.elk.port.borderOffset",H8n="org.eclipse.elk.noLayout",U8n="org.eclipse.elk.port.side",G8n="org.eclipse.elk.debugMode",q8n="org.eclipse.elk.alignment",X8n="org.eclipse.elk.insideSelfLoops.activate",V8n="org.eclipse.elk.insideSelfLoops.yo",z8n="org.eclipse.elk.direction",W8n="org.eclipse.elk.nodeLabels.padding",Q8n="org.eclipse.elk.portLabels.nextToPortIfPossible",J8n="org.eclipse.elk.portLabels.treatAsGroup",Y8n="org.eclipse.elk.portAlignment.default",Z8n="org.eclipse.elk.portAlignment.north",n9n="org.eclipse.elk.portAlignment.south",e9n="org.eclipse.elk.portAlignment.west",t9n="org.eclipse.elk.portAlignment.east",r9n="org.eclipse.elk.contentAlignment",i9n="org.eclipse.elk.junctionPoints",a9n="org.eclipse.elk.edgeLabels.placement",c9n="org.eclipse.elk.port.index",u9n="org.eclipse.elk.commentBox",s9n="org.eclipse.elk.hypernode",o9n="org.eclipse.elk.port.anchor",f9n="org.eclipse.elk.partitioning.activate",h9n="org.eclipse.elk.partitioning.partition",l9n="org.eclipse.elk.position",b9n="org.eclipse.elk.margins",w9n="org.eclipse.elk.spacing.portsSurrounding",d9n="org.eclipse.elk.interactiveLayout",g9n="org.eclipse.elk.core.util",v9n={3:1,4:1,5:1,601:1},p9n="NETWORK_SIMPLEX",m9n="SIMPLE",k9n={106:1,47:1},y9n="org.eclipse.elk.alg.layered.p1cycles",M9n="org.eclipse.elk.alg.layered.p2layers",T9n={413:1,230:1},j9n={846:1,3:1,4:1},E9n="org.eclipse.elk.alg.layered.p3order",S9n="org.eclipse.elk.alg.layered.p4nodes",P9n={3:1,4:1,5:1,854:1},C9n=1e-5,I9n="org.eclipse.elk.alg.layered.p4nodes.bk",O9n="org.eclipse.elk.alg.layered.p5edges",A9n="org.eclipse.elk.alg.layered.p5edges.orthogonal",L9n="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",N9n=1e-6,$9n="org.eclipse.elk.alg.layered.p5edges.splines",D9n=.09999999999999998,x9n=1e-8,R9n=4.71238898038469,K9n=3.141592653589793,F9n="org.eclipse.elk.alg.mrtree",_9n=.10000000149011612,B9n="SUPER_ROOT",H9n="org.eclipse.elk.alg.mrtree.graph",U9n=-17976931348623157e292,G9n="org.eclipse.elk.alg.mrtree.intermediate",q9n="Processor compute fanout",X9n={3:1,6:1,4:1,5:1,534:1,100:1,115:1},V9n="Set neighbors in level",z9n="org.eclipse.elk.alg.mrtree.options",W9n="DESCENDANTS",Q9n="org.eclipse.elk.mrtree.compaction",J9n="org.eclipse.elk.mrtree.edgeEndTextureLength",Y9n="org.eclipse.elk.mrtree.treeLevel",Z9n="org.eclipse.elk.mrtree.positionConstraint",n7n="org.eclipse.elk.mrtree.weighting",e7n="org.eclipse.elk.mrtree.edgeRoutingMode",t7n="org.eclipse.elk.mrtree.searchOrder",r7n="Position Constraint",i7n="org.eclipse.elk.mrtree",a7n="org.eclipse.elk.tree",c7n="Processor arrange level",u7n="org.eclipse.elk.alg.mrtree.p2order",s7n="org.eclipse.elk.alg.mrtree.p4route",o7n="org.eclipse.elk.alg.radial",f7n=6.283185307179586,h7n="Before",l7n=5e-324,b7n="After",w7n="org.eclipse.elk.alg.radial.intermediate",d7n="COMPACTION",g7n="org.eclipse.elk.alg.radial.intermediate.compaction",v7n={3:1,4:1,5:1,100:1},p7n="org.eclipse.elk.alg.radial.intermediate.optimization",m7n="No implementation is available for the layout option ",k7n="org.eclipse.elk.alg.radial.options",y7n="org.eclipse.elk.radial.centerOnRoot",M7n="org.eclipse.elk.radial.orderId",T7n="org.eclipse.elk.radial.radius",j7n="org.eclipse.elk.radial.rotate",E7n="org.eclipse.elk.radial.compactor",S7n="org.eclipse.elk.radial.compactionStepSize",P7n="org.eclipse.elk.radial.sorter",C7n="org.eclipse.elk.radial.wedgeCriteria",I7n="org.eclipse.elk.radial.optimizationCriteria",O7n="org.eclipse.elk.radial.rotation.targetAngle",A7n="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",L7n="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",N7n="Compaction",$7n="rotation",D7n="org.eclipse.elk.radial",x7n="org.eclipse.elk.alg.radial.p1position.wedge",R7n="org.eclipse.elk.alg.radial.sorting",K7n=5.497787143782138,F7n=3.9269908169872414,_7n=2.356194490192345,B7n="org.eclipse.elk.alg.rectpacking",H7n="org.eclipse.elk.alg.rectpacking.intermediate",U7n="org.eclipse.elk.alg.rectpacking.options",G7n="org.eclipse.elk.rectpacking.trybox",q7n="org.eclipse.elk.rectpacking.currentPosition",X7n="org.eclipse.elk.rectpacking.desiredPosition",V7n="org.eclipse.elk.rectpacking.inNewRow",z7n="org.eclipse.elk.rectpacking.widthApproximation.strategy",W7n="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",Q7n="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",J7n="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",Y7n="org.eclipse.elk.rectpacking.packing.strategy",Z7n="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",nne="org.eclipse.elk.rectpacking.packing.compaction.iterations",ene="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",tne="widthApproximation",rne="Compaction Strategy",ine="packing.compaction",ane="org.eclipse.elk.rectpacking",cne="org.eclipse.elk.alg.rectpacking.p1widthapproximation",une="org.eclipse.elk.alg.rectpacking.p2packing",sne="No Compaction",one="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",fne="org.eclipse.elk.alg.rectpacking.util",hne="No implementation available for ",lne="org.eclipse.elk.alg.spore",bne="org.eclipse.elk.alg.spore.options",wne="org.eclipse.elk.sporeCompaction",dne="org.eclipse.elk.underlyingLayoutAlgorithm",gne="org.eclipse.elk.processingOrder.treeConstruction",vne="org.eclipse.elk.processingOrder.spanningTreeCostFunction",pne="org.eclipse.elk.processingOrder.preferredRoot",mne="org.eclipse.elk.processingOrder.rootSelection",kne="org.eclipse.elk.structure.structureExtractionStrategy",yne="org.eclipse.elk.compaction.compactionStrategy",Mne="org.eclipse.elk.compaction.orthogonal",Tne="org.eclipse.elk.overlapRemoval.maxIterations",jne="org.eclipse.elk.overlapRemoval.runScanline",Ene="processingOrder",Sne="overlapRemoval",Pne="org.eclipse.elk.sporeOverlap",Cne="org.eclipse.elk.alg.spore.p1structure",Ine="org.eclipse.elk.alg.spore.p2processingorder",One="org.eclipse.elk.alg.spore.p3execution",Ane="Topdown Layout",Lne="Invalid index: ",Nne="org.eclipse.elk.core.alg",$ne={341:1},Dne={295:1},xne="Make sure its type is registered with the ",Rne=" utility class.",Kne="true",Fne="false",_ne="Couldn't clone property '",Bne=.05,Hne="org.eclipse.elk.core.options",Une=1.2999999523162842,Gne="org.eclipse.elk.box",qne="org.eclipse.elk.expandNodes",Xne="org.eclipse.elk.box.packingMode",Vne="org.eclipse.elk.algorithm",zne="org.eclipse.elk.resolvedAlgorithm",Wne="org.eclipse.elk.bendPoints",Qne="org.eclipse.elk.labelManager",Jne="org.eclipse.elk.scaleFactor",Yne="org.eclipse.elk.childAreaWidth",Zne="org.eclipse.elk.childAreaHeight",nee="org.eclipse.elk.animate",eee="org.eclipse.elk.animTimeFactor",tee="org.eclipse.elk.layoutAncestors",ree="org.eclipse.elk.maxAnimTime",iee="org.eclipse.elk.minAnimTime",aee="org.eclipse.elk.progressBar",cee="org.eclipse.elk.validateGraph",uee="org.eclipse.elk.validateOptions",see="org.eclipse.elk.zoomToFit",oee="org.eclipse.elk.font.name",fee="org.eclipse.elk.font.size",hee="org.eclipse.elk.topdown.sizeApproximator",lee="org.eclipse.elk.topdown.scaleCap",bee="org.eclipse.elk.edge.type",wee="partitioning",dee="nodeLabels",gee="portAlignment",vee="nodeSize",pee="port",mee="portLabels",kee="topdown",yee="insideSelfLoops",Mee="org.eclipse.elk.fixed",Tee="org.eclipse.elk.random",jee={3:1,34:1,22:1,347:1},Eee="port must have a parent node to calculate the port side",See="The edge needs to have exactly one edge section. Found: ",Pee="org.eclipse.elk.core.util.adapters",Cee="org.eclipse.emf.ecore",Iee="org.eclipse.elk.graph",Oee="EMapPropertyHolder",Aee="ElkBendPoint",Lee="ElkGraphElement",Nee="ElkConnectableShape",$ee="ElkEdge",Dee="ElkEdgeSection",xee="EModelElement",Ree="ENamedElement",Kee="ElkLabel",Fee="ElkNode",_ee="ElkPort",Bee={94:1,93:1},Hee="org.eclipse.emf.common.notify.impl",Uee="The feature '",Gee="' is not a valid changeable feature",qee="Expecting null",Xee="' is not a valid feature",Vee="The feature ID",zee=" is not a valid feature ID",Wee=32768,Qee={110:1,94:1,93:1,58:1,54:1,99:1},Jee="org.eclipse.emf.ecore.impl",Yee="org.eclipse.elk.graph.impl",Zee="Recursive containment not allowed for ",nte="The datatype '",ete="' is not a valid classifier",tte="The value '",rte={195:1,3:1,4:1},ite="The class '",ate="http://www.eclipse.org/elk/ElkGraph",cte="property",ute="value",ste="source",ote="properties",fte="identifier",hte="height",lte="width",bte="parent",wte="text",dte="children",gte="hierarchical",vte="sources",pte="targets",mte="sections",kte="bendPoints",yte="outgoingShape",Mte="incomingShape",Tte="outgoingSections",jte="incomingSections",Ete="org.eclipse.emf.common.util",Ste="Severe implementation error in the Json to ElkGraph importer.",Pte="id",Cte="org.eclipse.elk.graph.json",Ite="Unhandled parameter types: ",Ote="startPoint",Ate="An edge must have at least one source and one target (edge id: '",Lte="').",Nte="Referenced edge section does not exist: ",$te=" (edge id: '",Dte="target",xte="sourcePoint",Rte="targetPoint",Kte="group",Fte="name",_te="connectableShape cannot be null",Bte="edge cannot be null",Hte="Passed edge is not 'simple'.",Ute="org.eclipse.elk.graph.util",Gte="The 'no duplicates' constraint is violated",qte="targetIndex=",Xte=", size=",Vte="sourceIndex=",zte={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},Wte={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},Qte="logging",Jte="measureExecutionTime",Yte="parser.parse.1",Zte="parser.parse.2",nre="parser.next.1",ere="parser.next.2",tre="parser.next.3",rre="parser.next.4",ire="parser.factor.1",are="parser.factor.2",cre="parser.factor.3",ure="parser.factor.4",sre="parser.factor.5",ore="parser.factor.6",fre="parser.atom.1",hre="parser.atom.2",lre="parser.atom.3",bre="parser.atom.4",wre="parser.atom.5",dre="parser.cc.1",gre="parser.cc.2",vre="parser.cc.3",pre="parser.cc.5",mre="parser.cc.6",kre="parser.cc.7",yre="parser.cc.8",Mre="parser.ope.1",Tre="parser.ope.2",jre="parser.ope.3",Ere="parser.descape.1",Sre="parser.descape.2",Pre="parser.descape.3",Cre="parser.descape.4",Ire="parser.descape.5",Ore="parser.process.1",Are="parser.quantifier.1",Lre="parser.quantifier.2",Nre="parser.quantifier.3",$re="parser.quantifier.4",Dre="parser.quantifier.5",xre="org.eclipse.emf.common.notify",Rre={424:1,686:1},Kre={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},Fre={378:1,152:1},_re="index=",Bre={3:1,4:1,5:1,129:1},Hre={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},Ure={3:1,6:1,4:1,5:1,198:1},Gre={3:1,4:1,5:1,173:1,379:1},qre=";/?:@&=+$,",Xre="invalid authority: ",Vre="EAnnotation",zre="ETypedElement",Wre="EStructuralFeature",Qre="EAttribute",Jre="EClassifier",Yre="EEnumLiteral",Zre="EGenericType",nie="EOperation",eie="EParameter",tie="EReference",rie="ETypeParameter",iie="org.eclipse.emf.ecore.util",aie={79:1},cie={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},uie="org.eclipse.emf.ecore.util.FeatureMap$Entry",sie=8192,oie=2048,fie="byte",hie="char",lie="double",bie="float",wie="int",die="long",gie="short",vie="java.lang.Object",pie={3:1,4:1,5:1,254:1},mie={3:1,4:1,5:1,688:1},kie={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},yie={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},Mie="mixed",Tie="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",jie="kind",Eie={3:1,4:1,5:1,689:1},Sie={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},Pie={20:1,31:1,56:1,16:1,15:1,61:1,71:1},Cie={51:1,128:1,287:1},Iie={76:1,343:1},Oie="The value of type '",Aie="' must be of type '",Lie=1352,Nie="http://www.eclipse.org/emf/2002/Ecore",$ie=-32768,Die="constraints",xie="baseType",Rie="getEStructuralFeature",Kie="getFeatureID",Fie="feature",_ie="getOperationID",Bie="operation",Hie="defaultValue",Uie="eTypeParameters",Gie="isInstance",qie="getEEnumLiteral",Xie="eContainingClass",Vie={57:1},zie={3:1,4:1,5:1,124:1},Wie="org.eclipse.emf.ecore.resource",Qie={94:1,93:1,599:1,2034:1},Jie="org.eclipse.emf.ecore.resource.impl",Yie="unspecified",Zie="simple",nae="attribute",eae="attributeWildcard",tae="element",rae="elementWildcard",iae="collapse",aae="itemType",cae="namespace",uae="##targetNamespace",sae="whiteSpace",oae="wildcards",fae="http://www.eclipse.org/emf/2003/XMLType",hae="##any",lae="uninitialized",bae="The multiplicity constraint is violated",wae="org.eclipse.emf.ecore.xml.type",dae="ProcessingInstruction",gae="SimpleAnyType",vae="XMLTypeDocumentRoot",pae="org.eclipse.emf.ecore.xml.type.impl",mae="INF",kae="processing",yae="ENTITIES_._base",Mae="minLength",Tae="ENTITY",jae="NCName",Eae="IDREFS_._base",Sae="integer",Pae="token",Cae="pattern",Iae="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",Oae="\\i\\c*",Aae="[\\i-[:]][\\c-[:]]*",Lae="nonPositiveInteger",Nae="maxInclusive",$ae="NMTOKEN",Dae="NMTOKENS_._base",xae="nonNegativeInteger",Rae="minInclusive",Kae="normalizedString",Fae="unsignedByte",_ae="unsignedInt",Bae="18446744073709551615",Hae="unsignedShort",Uae="processingInstruction",Gae="org.eclipse.emf.ecore.xml.type.internal",qae=1114111,Xae="Internal Error: shorthands: \\u",Vae="xml:isDigit",zae="xml:isWord",Wae="xml:isSpace",Qae="xml:isNameChar",Jae="xml:isInitialNameChar",Yae="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",Zae="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",nce="Private Use",ece="ASSIGNED",tce="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\ufeff\ufeff＀￯",rce="UNASSIGNED",ice={3:1,122:1},ace="org.eclipse.emf.ecore.xml.type.util",cce={3:1,4:1,5:1,381:1},uce="org.eclipse.xtext.xbase.lib",sce="Cannot add elements to a Range",oce="Cannot set elements in a Range",fce="Cannot remove elements from a Range",hce="user.agent";var lce,bce,wce,dce=-1;t.goog=t.goog||{};t.goog.global=t.goog.global||t;bce={};wDn(1,null,{},o);lce.Fb=function n(e){return AL(this,e)};lce.Gb=function n(){return this.Rm};lce.Hb=function n(){return Bx(this)};lce.Ib=function n(){var e;return $j(Cbn(this))+"@"+(e=Vun(this)>>>0,e.toString(16))};lce.equals=function(n){return this.Fb(n)};lce.hashCode=function(){return this.Hb()};lce.toString=function(){return this.Ib()};var gce,vce,pce;wDn(297,1,{297:1,2124:1},$hn);lce.ve=function n(e){var t;t=new $hn;t.i=4;e>1?t.c=X0(this,e-1):t.c=this;return t};lce.we=function n(){jK(this);return this.b};lce.xe=function n(){return $j(this)};lce.ye=function n(){return jK(this),this.k};lce.ze=function n(){return(this.i&4)!=0};lce.Ae=function n(){return(this.i&1)!=0};lce.Ib=function n(){return fin(this)};lce.i=0;var mce=1;var kce=YW(mZn,"Object",1);var yce=YW(mZn,"Class",297);wDn(2096,1,kZn);var Mce=YW(yZn,"Optional",2096);wDn(1191,2096,kZn,f);lce.Fb=function n(e){return e===this};lce.Hb=function n(){return 2040732332};lce.Ib=function n(){return"Optional.absent()"};lce.Jb=function n(e){nQ(e);return yy(),Tce};var Tce;var jce=YW(yZn,"Absent",1191);wDn(636,1,{},GM);var Ece=YW(yZn,"Joiner",636);var Sce=$q(yZn,"Predicate");wDn(589,1,{178:1,589:1,3:1,46:1},Vl);lce.Mb=function n(e){return nln(this,e)};lce.Lb=function n(e){return nln(this,e)};lce.Fb=function n(e){var t;if(G$(e,589)){t=bG(e,589);return LDn(this.a,t.a)}return false};lce.Hb=function n(){return iln(this.a)+306654252};lce.Ib=function n(){return uAn(this.a)};var Pce=YW(yZn,"Predicates/AndPredicate",589);wDn(419,2096,{419:1,3:1},zl);lce.Fb=function n(e){var t;if(G$(e,419)){t=bG(e,419);return bdn(this.a,t.a)}return false};lce.Hb=function n(){return 1502476572+Vun(this.a)};lce.Ib=function n(){return PZn+this.a+")"};lce.Jb=function n(e){return new zl(pZ(e.Kb(this.a),"the Function passed to Optional.transform() must not return null."))};var Cce=YW(yZn,"Present",419);wDn(204,1,IZn);lce.Nb=function n(e){Az(this,e)};lce.Qb=function n(){qM()};var Ice=YW(OZn,"UnmodifiableIterator",204);wDn(2076,204,AZn);lce.Qb=function n(){qM()};lce.Rb=function n(e){throw dm(new Um)};lce.Wb=function n(e){throw dm(new Um)};var Oce=YW(OZn,"UnmodifiableListIterator",2076);wDn(399,2076,AZn);lce.Ob=function n(){return this.c0};lce.Pb=function n(){if(this.c>=this.d){throw dm(new Xm)}return this.Xb(this.c++)};lce.Tb=function n(){return this.c};lce.Ub=function n(){if(this.c<=0){throw dm(new Xm)}return this.Xb(--this.c)};lce.Vb=function n(){return this.c-1};lce.c=0;lce.d=0;var Ace=YW(OZn,"AbstractIndexedListIterator",399);wDn(713,204,IZn);lce.Ob=function n(){return lun(this)};lce.Pb=function n(){return Stn(this)};lce.e=1;var Lce=YW(OZn,"AbstractIterator",713);wDn(2084,1,{229:1});lce.Zb=function n(){var e;return e=this.f,!e?this.f=this.ac():e};lce.Fb=function n(e){return xln(this,e)};lce.Hb=function n(){return Vun(this.Zb())};lce.dc=function n(){return this.gc()==0};lce.ec=function n(){return EV(this)};lce.Ib=function n(){return fvn(this.Zb())};var Nce=YW(OZn,"AbstractMultimap",2084);wDn(742,2084,LZn);lce.$b=function n(){pcn(this)};lce._b=function n(e){return Ij(this,e)};lce.ac=function n(){return new DE(this,this.c)};lce.ic=function n(e){return this.hc()};lce.bc=function n(){return new HD(this,this.c)};lce.jc=function n(){return this.mc(this.hc())};lce.kc=function n(){return new Py(this)};lce.lc=function n(){return $Cn(this.c.vc().Nc(),new l,64,this.d)};lce.cc=function n(e){return r7(this,e)};lce.fc=function n(e){return cwn(this,e)};lce.gc=function n(){return this.d};lce.mc=function n(e){return dZ(),new Qw(e)};lce.nc=function n(){return new Sy(this)};lce.oc=function n(){return $Cn(this.c.Cc().Nc(),new h,64,this.d)};lce.pc=function n(e,t){return new x7(this,e,t,null)};lce.d=0;var $ce=YW(OZn,"AbstractMapBasedMultimap",742);wDn(1696,742,LZn);lce.hc=function n(){return new H7(this.a)};lce.jc=function n(){return dZ(),dZ(),lbe};lce.cc=function n(e){return bG(r7(this,e),15)};lce.fc=function n(e){return bG(cwn(this,e),15)};lce.Zb=function n(){return aZ(this)};lce.Fb=function n(e){return xln(this,e)};lce.qc=function n(e){return bG(r7(this,e),15)};lce.rc=function n(e){return bG(cwn(this,e),15)};lce.mc=function n(e){return AZ(bG(e,15))};lce.pc=function n(e,t){return A6(this,e,bG(t,15),null)};var Dce=YW(OZn,"AbstractListMultimap",1696);wDn(748,1,NZn);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return this.c.Ob()||this.e.Ob()};lce.Pb=function n(){var e;if(!this.e.Ob()){e=bG(this.c.Pb(),44);this.b=e.ld();this.a=bG(e.md(),16);this.e=this.a.Kc()}return this.sc(this.b,this.e.Pb())};lce.Qb=function n(){this.e.Qb();bG(aJ(this.a),16).dc()&&this.c.Qb();--this.d.d};var xce=YW(OZn,"AbstractMapBasedMultimap/Itr",748);wDn(1129,748,NZn,Sy);lce.sc=function n(e,t){return t};var Rce=YW(OZn,"AbstractMapBasedMultimap/1",1129);wDn(1130,1,{},h);lce.Kb=function n(e){return bG(e,16).Nc()};var Kce=YW(OZn,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130);wDn(1131,748,NZn,Py);lce.sc=function n(e,t){return new GE(e,t)};var Fce=YW(OZn,"AbstractMapBasedMultimap/2",1131);var _ce=$q($Zn,"Map");wDn(2065,1,DZn);lce.wc=function n(e){ron(this,e)};lce.yc=function n(e,t,r){return tvn(this,e,t,r)};lce.$b=function n(){this.vc().$b()};lce.tc=function n(e){return wTn(this,e)};lce._b=function n(e){return!!CPn(this,e,false)};lce.uc=function n(e){var t,r,i;for(r=this.vc().Kc();r.Ob();){t=bG(r.Pb(),44);i=t.md();if(BA(e)===BA(i)||e!=null&&bdn(e,i)){return true}}return false};lce.Fb=function n(e){var t,r,i;if(e===this){return true}if(!G$(e,85)){return false}i=bG(e,85);if(this.gc()!=i.gc()){return false}for(r=i.vc().Kc();r.Ob();){t=bG(r.Pb(),44);if(!this.tc(t)){return false}}return true};lce.xc=function n(e){return _A(CPn(this,e,false))};lce.Hb=function n(){return chn(this.vc())};lce.dc=function n(){return this.gc()==0};lce.ec=function n(){return new Rw(this)};lce.zc=function n(e,t){throw dm(new CM("Put not supported on this map"))};lce.Ac=function n(e){Bsn(this,e)};lce.Bc=function n(e){return _A(CPn(this,e,true))};lce.gc=function n(){return this.vc().gc()};lce.Ib=function n(){return UPn(this)};lce.Cc=function n(){return new Gw(this)};var Bce=YW($Zn,"AbstractMap",2065);wDn(2085,2065,DZn);lce.bc=function n(){return new ZE(this)};lce.vc=function n(){return jV(this)};lce.ec=function n(){var e;e=this.g;return!e?this.g=this.bc():e};lce.Cc=function n(){var e;e=this.i;return!e?this.i=new YE(this):e};var Hce=YW(OZn,"Maps/ViewCachingAbstractMap",2085);wDn(402,2085,DZn,DE);lce.xc=function n(e){return win(this,e)};lce.Bc=function n(e){return hbn(this,e)};lce.$b=function n(){this.d==this.e.c?this.e.$b():Vq(new Wq(this))};lce._b=function n(e){return zwn(this.d,e)};lce.Ec=function n(){return new Wl(this)};lce.Dc=function(){return this.Ec()};lce.Fb=function n(e){return this===e||bdn(this.d,e)};lce.Hb=function n(){return Vun(this.d)};lce.ec=function n(){return this.e.ec()};lce.gc=function n(){return this.d.gc()};lce.Ib=function n(){return fvn(this.d)};var Uce=YW(OZn,"AbstractMapBasedMultimap/AsMap",402);var Gce=$q(mZn,"Iterable");wDn(31,1,xZn);lce.Jc=function n(e){Y8(this,e)};lce.Lc=function n(){return this.Oc()};lce.Nc=function n(){return new d3(this,0)};lce.Oc=function n(){return new gX(null,this.Nc())};lce.Fc=function n(e){throw dm(new CM("Add not supported on this collection"))};lce.Gc=function n(e){return esn(this,e)};lce.$b=function n(){lY(this)};lce.Hc=function n(e){return npn(this,e,false)};lce.Ic=function n(e){return Sfn(this,e)};lce.dc=function n(){return this.gc()==0};lce.Mc=function n(e){return npn(this,e,true)};lce.Pc=function n(){return AV(this)};lce.Qc=function n(e){return lTn(this,e)};lce.Ib=function n(){return jIn(this)};var qce=YW($Zn,"AbstractCollection",31);var Xce=$q($Zn,"Set");wDn(RZn,31,KZn);lce.Nc=function n(){return new d3(this,1)};lce.Fb=function n(e){return Gmn(this,e)};lce.Hb=function n(){return chn(this)};var Vce=YW($Zn,"AbstractSet",RZn);wDn(2068,RZn,KZn);var zce=YW(OZn,"Sets/ImprovedAbstractSet",2068);wDn(2069,2068,KZn);lce.$b=function n(){this.Rc().$b()};lce.Hc=function n(e){return xpn(this,e)};lce.dc=function n(){return this.Rc().dc()};lce.Mc=function n(e){var t;if(this.Hc(e)&&G$(e,44)){t=bG(e,44);return this.Rc().ec().Mc(t.ld())}return false};lce.gc=function n(){return this.Rc().gc()};var Wce=YW(OZn,"Maps/EntrySet",2069);wDn(1127,2069,KZn,Wl);lce.Hc=function n(e){return Wwn(this.a.d.vc(),e)};lce.Kc=function n(){return new Wq(this.a)};lce.Rc=function n(){return this.a};lce.Mc=function n(e){var t;if(!Wwn(this.a.d.vc(),e)){return false}t=bG(aJ(bG(e,44)),44);V9(this.a.e,t.ld());return true};lce.Nc=function n(){return tG(this.a.d.vc().Nc(),new Ql(this.a))};var Qce=YW(OZn,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127);wDn(1128,1,{},Ql);lce.Kb=function n(e){return D9(this.a,bG(e,44))};var Jce=YW(OZn,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128);wDn(746,1,NZn,Wq);lce.Nb=function n(e){Az(this,e)};lce.Pb=function n(){var e;return e=bG(this.b.Pb(),44),this.a=bG(e.md(),16),D9(this.c,e)};lce.Ob=function n(){return this.b.Ob()};lce.Qb=function n(){$B(!!this.a);this.b.Qb();this.c.e.d-=this.a.gc();this.a.$b();this.a=null};var Yce=YW(OZn,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746);wDn(542,2068,KZn,ZE);lce.$b=function n(){this.b.$b()};lce.Hc=function n(e){return this.b._b(e)};lce.Jc=function n(e){nQ(e);this.b.wc(new kb(e))};lce.dc=function n(){return this.b.dc()};lce.Kc=function n(){return new Ky(this.b.vc().Kc())};lce.Mc=function n(e){if(this.b._b(e)){this.b.Bc(e);return true}return false};lce.gc=function n(){return this.b.gc()};var Zce=YW(OZn,"Maps/KeySet",542);wDn(327,542,KZn,HD);lce.$b=function n(){var e;Vq((e=this.b.vc().Kc(),new xE(this,e)))};lce.Ic=function n(e){return this.b.ec().Ic(e)};lce.Fb=function n(e){return this===e||bdn(this.b.ec(),e)};lce.Hb=function n(){return Vun(this.b.ec())};lce.Kc=function n(){var e;return e=this.b.vc().Kc(),new xE(this,e)};lce.Mc=function n(e){var t,r;r=0;t=bG(this.b.Bc(e),16);if(t){r=t.gc();t.$b();this.a.d-=r}return r>0};lce.Nc=function n(){return this.b.ec().Nc()};var nue=YW(OZn,"AbstractMapBasedMultimap/KeySet",327);wDn(747,1,NZn,xE);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return this.c.Ob()};lce.Pb=function n(){this.a=bG(this.c.Pb(),44);return this.a.ld()};lce.Qb=function n(){var e;$B(!!this.a);e=bG(this.a.md(),16);this.c.Qb();this.b.a.d-=e.gc();e.$b();this.a=null};var eue=YW(OZn,"AbstractMapBasedMultimap/KeySet/1",747);wDn(503,402,{85:1,133:1},KK);lce.bc=function n(){return this.Sc()};lce.ec=function n(){return this.Uc()};lce.Sc=function n(){return new SE(this.c,this.Wc())};lce.Tc=function n(){return this.Wc().Tc()};lce.Uc=function n(){var e;return e=this.b,!e?this.b=this.Sc():e};lce.Vc=function n(){return this.Wc().Vc()};lce.Wc=function n(){return bG(this.d,133)};var tue=YW(OZn,"AbstractMapBasedMultimap/SortedAsMap",503);wDn(446,503,FZn,FK);lce.bc=function n(){return new PE(this.a,bG(bG(this.d,133),139))};lce.Sc=function n(){return new PE(this.a,bG(bG(this.d,133),139))};lce.ec=function n(){var e;return e=this.b,bG(!e?this.b=new PE(this.a,bG(bG(this.d,133),139)):e,277)};lce.Uc=function n(){var e;return e=this.b,bG(!e?this.b=new PE(this.a,bG(bG(this.d,133),139)):e,277)};lce.Wc=function n(){return bG(bG(this.d,133),139)};lce.Xc=function n(e){return bG(bG(this.d,133),139).Xc(e)};lce.Yc=function n(e){return bG(bG(this.d,133),139).Yc(e)};lce.Zc=function n(e,t){return new FK(this.a,bG(bG(this.d,133),139).Zc(e,t))};lce.$c=function n(e){return bG(bG(this.d,133),139).$c(e)};lce._c=function n(e){return bG(bG(this.d,133),139)._c(e)};lce.ad=function n(e,t){return new FK(this.a,bG(bG(this.d,133),139).ad(e,t))};var rue=YW(OZn,"AbstractMapBasedMultimap/NavigableAsMap",446);wDn(502,327,_Zn,SE);lce.Nc=function n(){return this.b.ec().Nc()};var iue=YW(OZn,"AbstractMapBasedMultimap/SortedKeySet",502);wDn(401,502,BZn,PE);var aue=YW(OZn,"AbstractMapBasedMultimap/NavigableKeySet",401);wDn(551,31,xZn,x7);lce.Fc=function n(e){var t,r;pvn(this);r=this.d.dc();t=this.d.Fc(e);if(t){++this.f.d;r&&TF(this)}return t};lce.Gc=function n(e){var t,r,i;if(e.dc()){return false}i=(pvn(this),this.d.gc());t=this.d.Gc(e);if(t){r=this.d.gc();this.f.d+=r-i;i==0&&TF(this)}return t};lce.$b=function n(){var e;e=(pvn(this),this.d.gc());if(e==0){return}this.d.$b();this.f.d-=e;_X(this)};lce.Hc=function n(e){pvn(this);return this.d.Hc(e)};lce.Ic=function n(e){pvn(this);return this.d.Ic(e)};lce.Fb=function n(e){if(e===this){return true}pvn(this);return bdn(this.d,e)};lce.Hb=function n(){pvn(this);return Vun(this.d)};lce.Kc=function n(){pvn(this);return new nG(this)};lce.Mc=function n(e){var t;pvn(this);t=this.d.Mc(e);if(t){--this.f.d;_X(this)}return t};lce.gc=function n(){return QA(this)};lce.Nc=function n(){return pvn(this),this.d.Nc()};lce.Ib=function n(){pvn(this);return fvn(this.d)};var cue=YW(OZn,"AbstractMapBasedMultimap/WrappedCollection",551);var uue=$q($Zn,"List");wDn(744,551,{20:1,31:1,16:1,15:1},QV);lce.jd=function n(e){Run(this,e)};lce.Nc=function n(){return pvn(this),this.d.Nc()};lce.bd=function n(e,t){var r;pvn(this);r=this.d.dc();bG(this.d,15).bd(e,t);++this.a.d;r&&TF(this)};lce.cd=function n(e,t){var r,i,a;if(t.dc()){return false}a=(pvn(this),this.d.gc());r=bG(this.d,15).cd(e,t);if(r){i=this.d.gc();this.a.d+=i-a;a==0&&TF(this)}return r};lce.Xb=function n(e){pvn(this);return bG(this.d,15).Xb(e)};lce.dd=function n(e){pvn(this);return bG(this.d,15).dd(e)};lce.ed=function n(){pvn(this);return new t$(this)};lce.fd=function n(e){pvn(this);return new zY(this,e)};lce.gd=function n(e){var t;pvn(this);t=bG(this.d,15).gd(e);--this.a.d;_X(this);return t};lce.hd=function n(e,t){pvn(this);return bG(this.d,15).hd(e,t)};lce.kd=function n(e,t){pvn(this);return A6(this.a,this.e,bG(this.d,15).kd(e,t),!this.b?this:this.b)};var sue=YW(OZn,"AbstractMapBasedMultimap/WrappedList",744);wDn(1126,744,{20:1,31:1,16:1,15:1,59:1},rR);var oue=YW(OZn,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126);wDn(628,1,NZn,nG);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){GY(this);return this.b.Ob()};lce.Pb=function n(){GY(this);return this.b.Pb()};lce.Qb=function n(){YD(this)};var fue=YW(OZn,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628);wDn(745,628,HZn,t$,zY);lce.Qb=function n(){YD(this)};lce.Rb=function n(e){var t;t=QA(this.a)==0;(GY(this),bG(this.b,128)).Rb(e);++this.a.a.d;t&&TF(this.a)};lce.Sb=function n(){return(GY(this),bG(this.b,128)).Sb()};lce.Tb=function n(){return(GY(this),bG(this.b,128)).Tb()};lce.Ub=function n(){return(GY(this),bG(this.b,128)).Ub()};lce.Vb=function n(){return(GY(this),bG(this.b,128)).Vb()};lce.Wb=function n(e){(GY(this),bG(this.b,128)).Wb(e)};var hue=YW(OZn,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745);wDn(743,551,_Zn,xK);lce.Nc=function n(){return pvn(this),this.d.Nc()};var lue=YW(OZn,"AbstractMapBasedMultimap/WrappedSortedSet",743);wDn(1125,743,BZn,CN);var bue=YW(OZn,"AbstractMapBasedMultimap/WrappedNavigableSet",1125);wDn(1124,551,KZn,RK);lce.Nc=function n(){return pvn(this),this.d.Nc()};var wue=YW(OZn,"AbstractMapBasedMultimap/WrappedSet",1124);wDn(1133,1,{},l);lce.Kb=function n(e){return L7(bG(e,44))};var due=YW(OZn,"AbstractMapBasedMultimap/lambda$1$Type",1133);wDn(1132,1,{},nb);lce.Kb=function n(e){return new GE(this.a,e)};var gue=YW(OZn,"AbstractMapBasedMultimap/lambda$2$Type",1132);var vue=$q($Zn,"Map/Entry");wDn(358,1,UZn);lce.Fb=function n(e){var t;if(G$(e,44)){t=bG(e,44);return BQ(this.ld(),t.ld())&&BQ(this.md(),t.md())}return false};lce.Hb=function n(){var e,t;e=this.ld();t=this.md();return(e==null?0:Vun(e))^(t==null?0:Vun(t))};lce.nd=function n(e){throw dm(new Um)};lce.Ib=function n(){return this.ld()+"="+this.md()};var pue=YW(OZn,GZn,358);wDn(2086,31,xZn);lce.$b=function n(){this.od().$b()};lce.Hc=function n(e){var t;if(G$(e,44)){t=bG(e,44);return O4(this.od(),t.ld(),t.md())}return false};lce.Mc=function n(e){var t;if(G$(e,44)){t=bG(e,44);return A4(this.od(),t.ld(),t.md())}return false};lce.gc=function n(){return this.od().d};var mue=YW(OZn,"Multimaps/Entries",2086);wDn(749,2086,xZn,eb);lce.Kc=function n(){return this.a.kc()};lce.od=function n(){return this.a};lce.Nc=function n(){return this.a.lc()};var kue=YW(OZn,"AbstractMultimap/Entries",749);wDn(750,749,KZn,Cy);lce.Nc=function n(){return this.a.lc()};lce.Fb=function n(e){return DOn(this,e)};lce.Hb=function n(){return tsn(this)};var yue=YW(OZn,"AbstractMultimap/EntrySet",750);wDn(751,31,xZn,tb);lce.$b=function n(){this.a.$b()};lce.Hc=function n(e){return Qln(this.a,e)};lce.Kc=function n(){return this.a.nc()};lce.gc=function n(){return this.a.d};lce.Nc=function n(){return this.a.oc()};var Mue=YW(OZn,"AbstractMultimap/Values",751);wDn(2087,31,{849:1,20:1,31:1,16:1});lce.Jc=function n(e){nQ(e);bY(this).Jc(new Sb(e))};lce.Nc=function n(){var e;return e=bY(this).Nc(),$Cn(e,new k,64|e.yd()&1296,this.a.d)};lce.Fc=function n(e){VM();return true};lce.Gc=function n(e){return nQ(this),nQ(e),G$(e,552)?Z4(bG(e,849)):!e.dc()&&frn(this,e.Kc())};lce.Hc=function n(e){var t;return t=bG(Jwn(aZ(this.a),e),16),(!t?0:t.gc())>0};lce.Fb=function n(e){return axn(this,e)};lce.Hb=function n(){return Vun(bY(this))};lce.dc=function n(){return bY(this).dc()};lce.Mc=function n(e){return pNn(this,e,1)>0};lce.Ib=function n(){return fvn(bY(this))};var Tue=YW(OZn,"AbstractMultiset",2087);wDn(2089,2068,KZn);lce.$b=function n(){pcn(this.a.a)};lce.Hc=function n(e){var t,r;if(G$(e,504)){r=bG(e,425);if(bG(r.a.md(),16).gc()<=0){return false}t=A2(this.a,r.a.ld());return t==bG(r.a.md(),16).gc()}return false};lce.Mc=function n(e){var t,r,i,a;if(G$(e,504)){r=bG(e,425);t=r.a.ld();i=bG(r.a.md(),16).gc();if(i!=0){a=this.a;return mNn(a,t,i)}}return false};var jue=YW(OZn,"Multisets/EntrySet",2089);wDn(1139,2089,KZn,rb);lce.Kc=function n(){return new _y(jV(aZ(this.a.a)).Kc())};lce.gc=function n(){return aZ(this.a.a).gc()};var Eue=YW(OZn,"AbstractMultiset/EntrySet",1139);wDn(627,742,LZn);lce.hc=function n(){return this.pd()};lce.jc=function n(){return this.qd()};lce.cc=function n(e){return this.rd(e)};lce.fc=function n(e){return this.sd(e)};lce.Zb=function n(){var e;return e=this.f,!e?this.f=this.ac():e};lce.qd=function n(){return dZ(),dZ(),wbe};lce.Fb=function n(e){return xln(this,e)};lce.rd=function n(e){return bG(r7(this,e),21)};lce.sd=function n(e){return bG(cwn(this,e),21)};lce.mc=function n(e){return dZ(),new aT(bG(e,21))};lce.pc=function n(e,t){return new RK(this,e,bG(t,21))};var Sue=YW(OZn,"AbstractSetMultimap",627);wDn(1723,627,LZn);lce.hc=function n(){return new Vj(this.b)};lce.pd=function n(){return new Vj(this.b)};lce.jc=function n(){return zQ(new Vj(this.b))};lce.qd=function n(){return zQ(new Vj(this.b))};lce.cc=function n(e){return bG(bG(r7(this,e),21),87)};lce.rd=function n(e){return bG(bG(r7(this,e),21),87)};lce.fc=function n(e){return bG(bG(cwn(this,e),21),87)};lce.sd=function n(e){return bG(bG(cwn(this,e),21),87)};lce.mc=function n(e){return G$(e,277)?zQ(bG(e,277)):(dZ(),new Tx(bG(e,87)))};lce.Zb=function n(){var e;return e=this.f,!e?this.f=G$(this.c,139)?new FK(this,bG(this.c,139)):G$(this.c,133)?new KK(this,bG(this.c,133)):new DE(this,this.c):e};lce.pc=function n(e,t){return G$(t,277)?new CN(this,e,bG(t,277)):new xK(this,e,bG(t,87))};var Pue=YW(OZn,"AbstractSortedSetMultimap",1723);wDn(1724,1723,LZn);lce.Zb=function n(){var e;return e=this.f,bG(bG(!e?this.f=G$(this.c,139)?new FK(this,bG(this.c,139)):G$(this.c,133)?new KK(this,bG(this.c,133)):new DE(this,this.c):e,133),139)};lce.ec=function n(){var e;return e=this.i,bG(bG(!e?this.i=G$(this.c,139)?new PE(this,bG(this.c,139)):G$(this.c,133)?new SE(this,bG(this.c,133)):new HD(this,this.c):e,87),277)};lce.bc=function n(){return G$(this.c,139)?new PE(this,bG(this.c,139)):G$(this.c,133)?new SE(this,bG(this.c,133)):new HD(this,this.c)};var Cue=YW(OZn,"AbstractSortedKeySortedSetMultimap",1724);wDn(2109,1,{2046:1});lce.Fb=function n(e){return gSn(this,e)};lce.Hb=function n(){var e;return chn((e=this.g,!e?this.g=new ab(this):e))};lce.Ib=function n(){var e;return UPn((e=this.f,!e?this.f=new ZD(this):e))};var Iue=YW(OZn,"AbstractTable",2109);wDn(679,RZn,KZn,ab);lce.$b=function n(){zM()};lce.Hc=function n(e){var t,r;if(G$(e,479)){t=bG(e,697);r=bG(Jwn(XW(this.a),WA(t.c.e,t.b)),85);return!!r&&Wwn(r.vc(),new GE(WA(t.c.c,t.a),$7(t.c,t.b,t.a)))}return false};lce.Kc=function n(){return NZ(this.a)};lce.Mc=function n(e){var t,r;if(G$(e,479)){t=bG(e,697);r=bG(Jwn(XW(this.a),WA(t.c.e,t.b)),85);return!!r&&Qwn(r.vc(),new GE(WA(t.c.c,t.a),$7(t.c,t.b,t.a)))}return false};lce.gc=function n(){return Fq(this.a)};lce.Nc=function n(){return b6(this.a)};var Oue=YW(OZn,"AbstractTable/CellSet",679);wDn(2025,31,xZn,cb);lce.$b=function n(){zM()};lce.Hc=function n(e){return eCn(this.a,e)};lce.Kc=function n(){return $Z(this.a)};lce.gc=function n(){return Fq(this.a)};lce.Nc=function n(){return S4(this.a)};var Aue=YW(OZn,"AbstractTable/Values",2025);wDn(1697,1696,LZn);var Lue=YW(OZn,"ArrayListMultimapGwtSerializationDependencies",1697);wDn(520,1697,LZn,oT,R2);lce.hc=function n(){return new H7(this.a)};lce.a=0;var Nue=YW(OZn,"ArrayListMultimap",520);wDn(678,2109,{678:1,2046:1,3:1},g$n);var $ue=YW(OZn,"ArrayTable",678);wDn(2021,399,AZn,nx);lce.Xb=function n(e){return new Dhn(this.a,e)};var Due=YW(OZn,"ArrayTable/1",2021);wDn(2022,1,{},Jl);lce.td=function n(e){return new Dhn(this.a,e)};var xue=YW(OZn,"ArrayTable/1methodref$getCell$Type",2022);wDn(2110,1,{697:1});lce.Fb=function n(e){var t;if(e===this){return true}if(G$(e,479)){t=bG(e,697);return BQ(WA(this.c.e,this.b),WA(t.c.e,t.b))&&BQ(WA(this.c.c,this.a),WA(t.c.c,t.a))&&BQ($7(this.c,this.b,this.a),$7(t.c,t.b,t.a))}return false};lce.Hb=function n(){return Dbn(zfn(fT(kce,1),jZn,1,5,[WA(this.c.e,this.b),WA(this.c.c,this.a),$7(this.c,this.b,this.a)]))};lce.Ib=function n(){return"("+WA(this.c.e,this.b)+","+WA(this.c.c,this.a)+")="+$7(this.c,this.b,this.a)};var Rue=YW(OZn,"Tables/AbstractCell",2110);wDn(479,2110,{479:1,697:1},Dhn);lce.a=0;lce.b=0;lce.d=0;var Kue=YW(OZn,"ArrayTable/2",479);wDn(2024,1,{},Yl);lce.td=function n(e){return etn(this.a,e)};var Fue=YW(OZn,"ArrayTable/2methodref$getValue$Type",2024);wDn(2023,399,AZn,ex);lce.Xb=function n(e){return etn(this.a,e)};var _ue=YW(OZn,"ArrayTable/3",2023);wDn(2077,2065,DZn);lce.$b=function n(){Vq(this.kc())};lce.vc=function n(){return new mb(this)};lce.lc=function n(){return new PY(this.kc(),this.gc())};var Bue=YW(OZn,"Maps/IteratorBasedAbstractMap",2077);wDn(842,2077,DZn);lce.$b=function n(){throw dm(new Um)};lce._b=function n(e){return Oj(this.c,e)};lce.kc=function n(){return new tx(this,this.c.b.c.gc())};lce.lc=function n(){return _q(this.c.b.c.gc(),16,new Zl(this))};lce.xc=function n(e){var t;t=bG(nB(this.c,e),17);return!t?null:this.vd(t.a)};lce.dc=function n(){return this.c.b.c.dc()};lce.ec=function n(){return CV(this.c)};lce.zc=function n(e,t){var r;r=bG(nB(this.c,e),17);if(!r){throw dm(new jM(this.ud()+" "+e+" not in "+CV(this.c)))}return this.wd(r.a,t)};lce.Bc=function n(e){throw dm(new Um)};lce.gc=function n(){return this.c.b.c.gc()};var Hue=YW(OZn,"ArrayTable/ArrayMap",842);wDn(2020,1,{},Zl);lce.td=function n(e){return QW(this.a,e)};var Uue=YW(OZn,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020);wDn(2018,358,UZn,CE);lce.ld=function n(){return bR(this.a,this.b)};lce.md=function n(){return this.a.vd(this.b)};lce.nd=function n(e){return this.a.wd(this.b,e)};lce.b=0;var Gue=YW(OZn,"ArrayTable/ArrayMap/1",2018);wDn(2019,399,AZn,tx);lce.Xb=function n(e){return QW(this.a,e)};var que=YW(OZn,"ArrayTable/ArrayMap/2",2019);wDn(2017,842,DZn,Sz);lce.ud=function n(){return"Column"};lce.vd=function n(e){return $7(this.b,this.a,e)};lce.wd=function n(e,t){return Vfn(this.b,this.a,e,t)};lce.a=0;var Xue=YW(OZn,"ArrayTable/Row",2017);wDn(843,842,DZn,ZD);lce.vd=function n(e){return new Sz(this.a,e)};lce.zc=function n(e,t){return bG(t,85),WM()};lce.wd=function n(e,t){return bG(t,85),QM()};lce.ud=function n(){return"Row"};var Vue=YW(OZn,"ArrayTable/RowMap",843);wDn(1157,1,zZn,IE);lce.Ad=function n(e){return(this.a.yd()&-262&e)!=0};lce.yd=function n(){return this.a.yd()&-262};lce.zd=function n(){return this.a.zd()};lce.Nb=function n(e){this.a.Nb(new AE(e,this.b))};lce.Bd=function n(e){return this.a.Bd(new OE(e,this.b))};var zue=YW(OZn,"CollectSpliterators/1",1157);wDn(1158,1,WZn,OE);lce.Cd=function n(e){this.a.Cd(this.b.Kb(e))};var Wue=YW(OZn,"CollectSpliterators/1/lambda$0$Type",1158);wDn(1159,1,WZn,AE);lce.Cd=function n(e){this.a.Cd(this.b.Kb(e))};var Que=YW(OZn,"CollectSpliterators/1/lambda$1$Type",1159);wDn(1154,1,zZn,B_);lce.Ad=function n(e){return((16464|this.b)&e)!=0};lce.yd=function n(){return 16464|this.b};lce.zd=function n(){return this.a.zd()};lce.Nb=function n(e){this.a.Qe(new NE(e,this.c))};lce.Bd=function n(e){return this.a.Re(new LE(e,this.c))};lce.b=0;var Jue=YW(OZn,"CollectSpliterators/1WithCharacteristics",1154);wDn(1155,1,QZn,LE);lce.Dd=function n(e){this.a.Cd(this.b.td(e))};var Yue=YW(OZn,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155);wDn(1156,1,QZn,NE);lce.Dd=function n(e){this.a.Cd(this.b.td(e))};var Zue=YW(OZn,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156);wDn(1150,1,zZn);lce.Ad=function n(e){return(this.a&e)!=0};lce.yd=function n(){return this.a};lce.zd=function n(){!!this.e&&(this.b=y$(this.b,this.e.zd()));return y$(this.b,0)};lce.Nb=function n(e){if(this.e){this.e.Nb(e);this.e=null}this.c.Nb(new $E(this,e));this.b=0};lce.Bd=function n(e){while(true){if(!!this.e&&this.e.Bd(e)){VA(this.b,JZn)&&(this.b=Fgn(this.b,1));return true}else{this.e=null}if(!this.c.Bd(new ub(this))){return false}}};lce.a=0;lce.b=0;var nse=YW(OZn,"CollectSpliterators/FlatMapSpliterator",1150);wDn(1152,1,WZn,ub);lce.Cd=function n(e){P_(this.a,e)};var ese=YW(OZn,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152);wDn(1153,1,WZn,$E);lce.Cd=function n(e){gY(this.a,this.b,e)};var tse=YW(OZn,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153);wDn(1151,1150,zZn,C6);var rse=YW(OZn,"CollectSpliterators/FlatMapSpliteratorOfObject",1151);wDn(253,1,YZn);lce.Fd=function n(e){return this.Ed(bG(e,253))};lce.Ed=function n(e){var t;if(e==(Ty(),sse)){return 1}if(e==(My(),ase)){return-1}t=(QG(),_sn(this.a,e.a));if(t!=0){return t}return G$(this,526)==G$(e,526)?0:G$(this,526)?1:-1};lce.Id=function n(){return this.a};lce.Fb=function n(e){return MTn(this,e)};var ise=YW(OZn,"Cut",253);wDn(1823,253,YZn,Ey);lce.Ed=function n(e){return e==this?0:1};lce.Gd=function n(e){throw dm(new xm)};lce.Hd=function n(e){e.a+="+∞)"};lce.Id=function n(){throw dm(new EM(ZZn))};lce.Hb=function n(){return pS(),xmn(this)};lce.Jd=function n(e){return false};lce.Ib=function n(){return"+∞"};var ase;var cse=YW(OZn,"Cut/AboveAll",1823);wDn(526,253,{253:1,526:1,3:1,34:1},px);lce.Gd=function n(e){eL((e.a+="(",e),this.a)};lce.Hd=function n(e){IQ(eL(e,this.a),93)};lce.Hb=function n(){return~Vun(this.a)};lce.Jd=function n(e){return QG(),_sn(this.a,e)<0};lce.Ib=function n(){return"/"+this.a+"\\"};var use=YW(OZn,"Cut/AboveValue",526);wDn(1822,253,YZn,jy);lce.Ed=function n(e){return e==this?0:-1};lce.Gd=function n(e){e.a+="(-∞"};lce.Hd=function n(e){throw dm(new xm)};lce.Id=function n(){throw dm(new EM(ZZn))};lce.Hb=function n(){return pS(),xmn(this)};lce.Jd=function n(e){return true};lce.Ib=function n(){return"-∞"};var sse;var ose=YW(OZn,"Cut/BelowAll",1822);wDn(1824,253,YZn,mx);lce.Gd=function n(e){eL((e.a+="[",e),this.a)};lce.Hd=function n(e){IQ(eL(e,this.a),41)};lce.Hb=function n(){return Vun(this.a)};lce.Jd=function n(e){return QG(),_sn(this.a,e)<=0};lce.Ib=function n(){return"\\"+this.a+"/"};var fse=YW(OZn,"Cut/BelowValue",1824);wDn(547,1,n1n);lce.Jc=function n(e){Y8(this,e)};lce.Ib=function n(){return ogn(bG(pZ(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())};var hse=YW(OZn,"FluentIterable",547);wDn(442,547,n1n,sN);lce.Kc=function n(){return new GV(sx(this.a.Kc(),new d))};var lse=YW(OZn,"FluentIterable/2",442);wDn(1059,547,n1n,oN);lce.Kc=function n(){return Dz(this)};var bse=YW(OZn,"FluentIterable/3",1059);wDn(724,399,AZn,rx);lce.Xb=function n(e){return this.a[e].Kc()};var wse=YW(OZn,"FluentIterable/3/1",724);wDn(2070,1,{});lce.Ib=function n(){return fvn(this.Kd().b)};var dse=YW(OZn,"ForwardingObject",2070);wDn(2071,2070,e1n);lce.Kd=function n(){return this.Ld()};lce.Jc=function n(e){Y8(this,e)};lce.Lc=function n(){return this.Oc()};lce.Nc=function n(){return new d3(this,0)};lce.Oc=function n(){return new gX(null,this.Nc())};lce.Fc=function n(e){return this.Ld(),Hj()};lce.Gc=function n(e){return this.Ld(),Uj()};lce.$b=function n(){this.Ld(),Gj()};lce.Hc=function n(e){return this.Ld().Hc(e)};lce.Ic=function n(e){return this.Ld().Ic(e)};lce.dc=function n(){return this.Ld().b.dc()};lce.Kc=function n(){return this.Ld().Kc()};lce.Mc=function n(e){return this.Ld(),qj()};lce.gc=function n(){return this.Ld().b.gc()};lce.Pc=function n(){return this.Ld().Pc()};lce.Qc=function n(e){return this.Ld().Qc(e)};var gse=YW(OZn,"ForwardingCollection",2071);wDn(2078,31,t1n);lce.Kc=function n(){return this.Od()};lce.Fc=function n(e){throw dm(new Um)};lce.Gc=function n(e){throw dm(new Um)};lce.Md=function n(){var e;e=this.c;return!e?this.c=this.Nd():e};lce.$b=function n(){throw dm(new Um)};lce.Hc=function n(e){return e!=null&&npn(this,e,false)};lce.Nd=function n(){switch(this.gc()){case 0:return iQ(),iQ(),mse;case 1:return iQ(),new zq(nQ(this.Od().Pb()));default:return new Cz(this,this.Pc())}};lce.Mc=function n(e){throw dm(new Um)};var vse=YW(OZn,"ImmutableCollection",2078);wDn(727,2078,t1n,Im);lce.Kc=function n(){return Ien(this.a.Kc())};lce.Hc=function n(e){return e!=null&&this.a.Hc(e)};lce.Ic=function n(e){return this.a.Ic(e)};lce.dc=function n(){return this.a.dc()};lce.Od=function n(){return Ien(this.a.Kc())};lce.gc=function n(){return this.a.gc()};lce.Pc=function n(){return this.a.Pc()};lce.Qc=function n(e){return this.a.Qc(e)};lce.Ib=function n(){return fvn(this.a)};var pse=YW(OZn,"ForwardingImmutableCollection",727);wDn(307,2078,r1n);lce.Kc=function n(){return this.Od()};lce.ed=function n(){return this.Pd(0)};lce.fd=function n(e){return this.Pd(e)};lce.jd=function n(e){Run(this,e)};lce.Nc=function n(){return new d3(this,16)};lce.kd=function n(e,t){return this.Qd(e,t)};lce.bd=function n(e,t){throw dm(new Um)};lce.cd=function n(e,t){throw dm(new Um)};lce.Md=function n(){return this};lce.Fb=function n(e){return HDn(this,e)};lce.Hb=function n(){return Jon(this)};lce.dd=function n(e){return e==null?-1:bTn(this,e)};lce.Od=function n(){return this.Pd(0)};lce.Pd=function n(e){return lR(this,e)};lce.gd=function n(e){throw dm(new Um)};lce.hd=function n(e,t){throw dm(new Um)};lce.Qd=function n(e,t){var r;return _wn((r=new QE(this),new N2(r,e,t)))};var mse;var kse=YW(OZn,"ImmutableList",307);wDn(2105,307,r1n);lce.Kc=function n(){return Ien(this.Rd().Kc())};lce.kd=function n(e,t){return _wn(this.Rd().kd(e,t))};lce.Hc=function n(e){return e!=null&&this.Rd().Hc(e)};lce.Ic=function n(e){return this.Rd().Ic(e)};lce.Fb=function n(e){return bdn(this.Rd(),e)};lce.Xb=function n(e){return WA(this,e)};lce.Hb=function n(){return Vun(this.Rd())};lce.dd=function n(e){return this.Rd().dd(e)};lce.dc=function n(){return this.Rd().dc()};lce.Od=function n(){return Ien(this.Rd().Kc())};lce.gc=function n(){return this.Rd().gc()};lce.Qd=function n(e,t){return _wn(this.Rd().kd(e,t))};lce.Pc=function n(){return this.Rd().Qc($nn(kce,jZn,1,this.Rd().gc(),5,1))};lce.Qc=function n(e){return this.Rd().Qc(e)};lce.Ib=function n(){return fvn(this.Rd())};var yse=YW(OZn,"ForwardingImmutableList",2105);wDn(729,1,a1n);lce.vc=function n(){return PV(this)};lce.wc=function n(e){ron(this,e)};lce.ec=function n(){return CV(this)};lce.yc=function n(e,t,r){return tvn(this,e,t,r)};lce.Cc=function n(){return this.Vd()};lce.$b=function n(){throw dm(new Um)};lce._b=function n(e){return this.xc(e)!=null};lce.uc=function n(e){return this.Vd().Hc(e)};lce.Td=function n(){return new Om(this)};lce.Ud=function n(){return new Am(this)};lce.Fb=function n(e){return nbn(this,e)};lce.Hb=function n(){return PV(this).Hb()};lce.dc=function n(){return this.gc()==0};lce.zc=function n(e,t){return XM()};lce.Bc=function n(e){throw dm(new Um)};lce.Ib=function n(){return eOn(this)};lce.Vd=function n(){if(this.e){return this.e}return this.e=this.Ud()};lce.c=null;lce.d=null;lce.e=null;var Mse;var Tse=YW(OZn,"ImmutableMap",729);wDn(730,729,a1n);lce._b=function n(e){return Oj(this,e)};lce.uc=function n(e){return sS(this.b,e)};lce.Sd=function n(){return Fwn(new ib(this))};lce.Td=function n(){return Fwn(AJ(this.b))};lce.Ud=function n(){return wB(),new Im(IJ(this.b))};lce.Fb=function n(e){return oS(this.b,e)};lce.xc=function n(e){return nB(this,e)};lce.Hb=function n(){return Vun(this.b.c)};lce.dc=function n(){return this.b.c.dc()};lce.gc=function n(){return this.b.c.gc()};lce.Ib=function n(){return fvn(this.b.c)};var jse=YW(OZn,"ForwardingImmutableMap",730);wDn(2072,2071,c1n);lce.Kd=function n(){return this.Wd()};lce.Ld=function n(){return this.Wd()};lce.Nc=function n(){return new d3(this,1)};lce.Fb=function n(e){return e===this||this.Wd().Fb(e)};lce.Hb=function n(){return this.Wd().Hb()};var Ese=YW(OZn,"ForwardingSet",2072);wDn(1085,2072,c1n,ib);lce.Kd=function n(){return OJ(this.a.b)};lce.Ld=function n(){return OJ(this.a.b)};lce.Hc=function n(e){if(G$(e,44)&&bG(e,44).ld()==null){return false}try{return uS(OJ(this.a.b),e)}catch(t){t=Ofn(t);if(G$(t,212)){return false}else throw dm(t)}};lce.Wd=function n(){return OJ(this.a.b)};lce.Qc=function n(e){var t;t=r1(OJ(this.a.b),e);OJ(this.a.b).b.gc()=0?"+":"")+(i/60|0);r=GL(t.Math.abs(i)%60);return(fIn(),_be)[this.q.getDay()]+" "+Bbe[this.q.getMonth()]+" "+GL(this.q.getDate())+" "+GL(this.q.getHours())+":"+GL(this.q.getMinutes())+":"+GL(this.q.getSeconds())+" GMT"+e+r+" "+this.q.getFullYear()};var hhe=YW($Zn,"Date",206);wDn(2015,206,s0n,_En);lce.a=false;lce.b=0;lce.c=0;lce.d=0;lce.e=0;lce.f=0;lce.g=false;lce.i=0;lce.j=0;lce.k=0;lce.n=0;lce.o=0;lce.p=0;var lhe=YW("com.google.gwt.i18n.shared.impl","DateRecord",2015);wDn(2064,1,{});lce.pe=function n(){return null};lce.qe=function n(){return null};lce.re=function n(){return null};lce.se=function n(){return null};lce.te=function n(){return null};var bhe=YW(o0n,"JSONValue",2064);wDn(221,2064,{221:1},$b,Ob);lce.Fb=function n(e){if(!G$(e,221)){return false}return I3(this.a,bG(e,221).a)};lce.oe=function n(){return bm};lce.Hb=function n(){return DZ(this.a)};lce.pe=function n(){return this};lce.Ib=function n(){var e,t,r;r=new vx("[");for(t=0,e=this.a.length;t0&&(r.a+=",",r);eL(r,brn(this,t))}r.a+="]";return r.a};var whe=YW(o0n,"JSONArray",221);wDn(493,2064,{493:1},Ab);lce.oe=function n(){return wm};lce.qe=function n(){return this};lce.Ib=function n(){return Qx(),""+this.a};lce.a=false;var dhe,ghe;var vhe=YW(o0n,"JSONBoolean",493);wDn(997,63,E1n,Gy);var phe=YW(o0n,"JSONException",997);wDn(1036,2064,{},C);lce.oe=function n(){return gm};lce.Ib=function n(){return CZn};var mhe;var khe=YW(o0n,"JSONNull",1036);wDn(263,2064,{263:1},Lb);lce.Fb=function n(e){if(!G$(e,263)){return false}return this.a==bG(e,263).a};lce.oe=function n(){return hm};lce.Hb=function n(){return DL(this.a)};lce.re=function n(){return this};lce.Ib=function n(){return this.a+""};lce.a=0;var yhe=YW(o0n,"JSONNumber",263);wDn(190,2064,{190:1},qy,Nb);lce.Fb=function n(e){if(!G$(e,190)){return false}return I3(this.a,bG(e,190).a)};lce.oe=function n(){return lm};lce.Hb=function n(){return DZ(this.a)};lce.se=function n(){return this};lce.Ib=function n(){var e,t,r,i,a,c,u;u=new vx("{");e=true;c=rsn(this,$nn(vle,XZn,2,0,6,1));for(r=c,i=0,a=r.length;i=0?":"+this.c:"")+")"};lce.c=0;var gle=YW(mZn,"StackTraceElement",319);pce={3:1,484:1,34:1,2:1};var vle=YW(mZn,P1n,2);wDn(111,427,{484:1},YM,ZM,gx);var ple=YW(mZn,"StringBuffer",111);wDn(104,427,{484:1},nT,eT,vx);var mle=YW(mZn,"StringBuilder",104);wDn(702,77,p0n,tT);var kle=YW(mZn,"StringIndexOutOfBoundsException",702);wDn(2145,1,{});var yle;wDn(48,63,{3:1,103:1,63:1,82:1,48:1},Um,CM);var Mle=YW(mZn,"UnsupportedOperationException",48);wDn(247,242,{3:1,34:1,242:1,247:1},Odn,nE);lce.Fd=function n(e){return FGn(this,bG(e,247))};lce.ue=function n(){return rOn(mVn(this))};lce.Fb=function n(e){var t;if(this===e){return true}if(G$(e,247)){t=bG(e,247);return this.e==t.e&&FGn(this,t)==0}return false};lce.Hb=function n(){var e;if(this.b!=0){return this.b}if(this.a<54){e=Xon(this.f);this.b=MV(O3(e,-1));this.b=33*this.b+MV(O3(FV(e,32),-1));this.b=17*this.b+c0(this.e);return this.b}this.b=17*fwn(this.c)+c0(this.e);return this.b};lce.Ib=function n(){return mVn(this)};lce.a=0;lce.b=0;lce.d=0;lce.e=0;lce.f=0;var Tle,jle,Ele,Sle,Ple,Cle,Ile,Ole;var Ale=YW("java.math","BigDecimal",247);wDn(92,242,{3:1,34:1,242:1,92:1},i8,B3,Zz,akn,LN);lce.Fd=function n(e){return Lmn(this,bG(e,92))};lce.ue=function n(){return rOn(pYn(this,0))};lce.Fb=function n(e){return Nvn(this,e)};lce.Hb=function n(){return fwn(this)};lce.Ib=function n(){return pYn(this,0)};lce.b=-2;lce.c=0;lce.d=0;lce.e=0;var Lle,Nle,$le,Dle,xle,Rle;var Kle=YW("java.math","BigInteger",92);var Fle,_le;var Ble,Hle;wDn(498,2065,DZn);lce.$b=function n(){Fz(this)};lce._b=function n(e){return Lz(this,e)};lce.uc=function n(e){return ebn(this,e,this.i)||ebn(this,e,this.f)};lce.vc=function n(){return new Kw(this)};lce.xc=function n(e){return fQ(this,e)};lce.zc=function n(e,t){return jJ(this,e,t)};lce.Bc=function n(e){return b7(this,e)};lce.gc=function n(){return lS(this)};lce.g=0;var Ule=YW($Zn,"AbstractHashMap",498);wDn(267,RZn,KZn,Kw);lce.$b=function n(){this.a.$b()};lce.Hc=function n(e){return e6(this,e)};lce.Kc=function n(){return new pon(this.a)};lce.Mc=function n(e){var t;if(e6(this,e)){t=bG(e,44).ld();this.a.Bc(t);return true}return false};lce.gc=function n(){return this.a.gc()};var Gle=YW($Zn,"AbstractHashMap/EntrySet",267);wDn(268,1,NZn,pon);lce.Nb=function n(e){Az(this,e)};lce.Pb=function n(){return jun(this)};lce.Ob=function n(){return this.b};lce.Qb=function n(){Dtn(this)};lce.b=false;lce.d=0;var qle=YW($Zn,"AbstractHashMap/EntrySetIterator",268);wDn(426,1,NZn,td);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return xP(this)};lce.Pb=function n(){return qY(this)};lce.Qb=function n(){RQ(this)};lce.b=0;lce.c=-1;var Xle=YW($Zn,"AbstractList/IteratorImpl",426);wDn(98,426,HZn,K4);lce.Qb=function n(){RQ(this)};lce.Rb=function n(e){MF(this,e)};lce.Sb=function n(){return this.b>0};lce.Tb=function n(){return this.b};lce.Ub=function n(){return PK(this.b>0),this.a.Xb(this.c=--this.b)};lce.Vb=function n(){return this.b-1};lce.Wb=function n(e){CK(this.c!=-1);this.a.hd(this.c,e)};var Vle=YW($Zn,"AbstractList/ListIteratorImpl",98);wDn(244,56,v1n,N2);lce.bd=function n(e,t){l3(e,this.b);this.c.bd(this.a+e,t);++this.b};lce.Xb=function n(e){b3(e,this.b);return this.c.Xb(this.a+e)};lce.gd=function n(e){var t;b3(e,this.b);t=this.c.gd(this.a+e);--this.b;return t};lce.hd=function n(e,t){b3(e,this.b);return this.c.hd(this.a+e,t)};lce.gc=function n(){return this.b};lce.a=0;lce.b=0;var zle=YW($Zn,"AbstractList/SubList",244);wDn(266,RZn,KZn,Rw);lce.$b=function n(){this.a.$b()};lce.Hc=function n(e){return this.a._b(e)};lce.Kc=function n(){var e;return e=this.a.vc().Kc(),new Uw(e)};lce.Mc=function n(e){if(this.a._b(e)){this.a.Bc(e);return true}return false};lce.gc=function n(){return this.a.gc()};var Wle=YW($Zn,"AbstractMap/1",266);wDn(541,1,NZn,Uw);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return this.a.Ob()};lce.Pb=function n(){var e;return e=bG(this.a.Pb(),44),e.ld()};lce.Qb=function n(){this.a.Qb()};var Qle=YW($Zn,"AbstractMap/1/1",541);wDn(231,31,xZn,Gw);lce.$b=function n(){this.a.$b()};lce.Hc=function n(e){return this.a.uc(e)};lce.Kc=function n(){var e;return e=this.a.vc().Kc(),new qw(e)};lce.gc=function n(){return this.a.gc()};var Jle=YW($Zn,"AbstractMap/2",231);wDn(301,1,NZn,qw);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return this.a.Ob()};lce.Pb=function n(){var e;return e=bG(this.a.Pb(),44),e.md()};lce.Qb=function n(){this.a.Qb()};var Yle=YW($Zn,"AbstractMap/2/1",301);wDn(494,1,{494:1,44:1});lce.Fb=function n(e){var t;if(!G$(e,44)){return false}t=bG(e,44);return DJ(this.d,t.ld())&&DJ(this.e,t.md())};lce.ld=function n(){return this.d};lce.md=function n(){return this.e};lce.Hb=function n(){return ZN(this.d)^ZN(this.e)};lce.nd=function n(e){return mF(this,e)};lce.Ib=function n(){return this.d+"="+this.e};var Zle=YW($Zn,"AbstractMap/AbstractEntry",494);wDn(397,494,{494:1,397:1,44:1},ZP);var nbe=YW($Zn,"AbstractMap/SimpleEntry",397);wDn(2082,1,N0n);lce.Fb=function n(e){var t;if(!G$(e,44)){return false}t=bG(e,44);return DJ(this.ld(),t.ld())&&DJ(this.md(),t.md())};lce.Hb=function n(){return ZN(this.ld())^ZN(this.md())};lce.Ib=function n(){return this.ld()+"="+this.md()};var ebe=YW($Zn,GZn,2082);wDn(2090,2065,FZn);lce.Xc=function n(e){return Aj(this.Ee(e))};lce.tc=function n(e){return $9(this,e)};lce._b=function n(e){return kF(this,e)};lce.vc=function n(){return new zw(this)};lce.Tc=function n(){return _z(this.Ge())};lce.Yc=function n(e){return Aj(this.He(e))};lce.xc=function n(e){var t;t=e;return _A(this.Fe(t))};lce.$c=function n(e){return Aj(this.Ie(e))};lce.ec=function n(){return new Xw(this)};lce.Vc=function n(){return _z(this.Je())};lce._c=function n(e){return Aj(this.Ke(e))};var tbe=YW($Zn,"AbstractNavigableMap",2090);wDn(629,RZn,KZn,zw);lce.Hc=function n(e){return G$(e,44)&&$9(this.b,bG(e,44))};lce.Kc=function n(){return this.b.De()};lce.Mc=function n(e){var t;if(G$(e,44)){t=bG(e,44);return this.b.Le(t)}return false};lce.gc=function n(){return this.b.gc()};var rbe=YW($Zn,"AbstractNavigableMap/EntrySet",629);wDn(1146,RZn,BZn,Xw);lce.Nc=function n(){return new WP(this)};lce.$b=function n(){this.a.$b()};lce.Hc=function n(e){return kF(this.a,e)};lce.Kc=function n(){var e;e=this.a.vc().b.De();return new Vw(e)};lce.Mc=function n(e){if(kF(this.a,e)){this.a.Bc(e);return true}return false};lce.gc=function n(){return this.a.gc()};var ibe=YW($Zn,"AbstractNavigableMap/NavigableKeySet",1146);wDn(1147,1,NZn,Vw);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return xP(this.a.a)};lce.Pb=function n(){var e;e=ER(this.a);return e.ld()};lce.Qb=function n(){oB(this.a)};var abe=YW($Zn,"AbstractNavigableMap/NavigableKeySet/1",1147);wDn(2103,31,xZn);lce.Fc=function n(e){return EG(qCn(this,e),$0n),true};lce.Gc=function n(e){cJ(e);jG(e!=this,"Can't add a queue to itself");return esn(this,e)};lce.$b=function n(){while(drn(this)!=null);};var cbe=YW($Zn,"AbstractQueue",2103);wDn(310,31,{4:1,20:1,31:1,16:1},KD,F4);lce.Fc=function n(e){return D6(this,e),true};lce.$b=function n(){Q5(this)};lce.Hc=function n(e){return Nfn(new JJ(this),e)};lce.dc=function n(){return RM(this)};lce.Kc=function n(){return new JJ(this)};lce.Mc=function n(e){return T0(new JJ(this),e)};lce.gc=function n(){return this.c-this.b&this.a.length-1};lce.Nc=function n(){return new d3(this,272)};lce.Qc=function n(e){var t;t=this.c-this.b&this.a.length-1;e.lengtht&&bQ(e,t,null);return e};lce.b=0;lce.c=0;var ube=YW($Zn,"ArrayDeque",310);wDn(459,1,NZn,JJ);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return this.a!=this.b};lce.Pb=function n(){return own(this)};lce.Qb=function n(){vcn(this)};lce.a=0;lce.b=0;lce.c=-1;var sbe=YW($Zn,"ArrayDeque/IteratorImpl",459);wDn(13,56,D0n,im,H7,iB);lce.bd=function n(e,t){WX(this,e,t)};lce.Fc=function n(e){return ED(this,e)};lce.cd=function n(e,t){return Nbn(this,e,t)};lce.Gc=function n(e){return Dfn(this,e)};lce.$b=function n(){Jm(this.c,0)};lce.Hc=function n(e){return Ctn(this,e,0)!=-1};lce.Jc=function n(e){Lin(this,e)};lce.Xb=function n(e){return Yq(this,e)};lce.dd=function n(e){return Ctn(this,e,0)};lce.dc=function n(){return this.c.length==0};lce.Kc=function n(){return new nd(this)};lce.gd=function n(e){return s7(this,e)};lce.Mc=function n(e){return Ttn(this,e)};lce.ce=function n(e,t){L2(this,e,t)};lce.hd=function n(e,t){return r9(this,e,t)};lce.gc=function n(){return this.c.length};lce.jd=function n(e){g$(this,e)};lce.Pc=function n(){return cq(this.c)};lce.Qc=function n(e){return Okn(this,e)};var obe=YW($Zn,"ArrayList",13);wDn(7,1,NZn,nd);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return v$(this)};lce.Pb=function n(){return K3(this)};lce.Qb=function n(){cW(this)};lce.a=0;lce.b=-1;var fbe=YW($Zn,"ArrayList/1",7);wDn(2112,t.Function,{},L);lce.Me=function n(e,t){return bgn(e,t)};wDn(151,56,x0n,$M);lce.Hc=function n(e){return ycn(this,e)!=-1};lce.Jc=function n(e){var t,r,i,a;cJ(e);for(r=this.a,i=0,a=r.length;i0){throw dm(new jM(J0n+e+" greater than "+this.e))}return this.f.Te()?W1(this.c,this.b,this.a,e,t):K2(this.c,e,t)};lce.zc=function n(e,t){if(!vjn(this.c,this.f,e,this.b,this.a,this.e,this.d)){throw dm(new jM(e+" outside the range "+this.b+" to "+this.e))}return Bhn(this.c,e,t)};lce.Bc=function n(e){var t;t=e;if(!vjn(this.c,this.f,t,this.b,this.a,this.e,this.d)){return null}return Z1(this.c,t)};lce.Le=function n(e){return FQ(this,e.ld())&&Rnn(this.c,e)};lce.gc=function n(){var e,t,r;this.f.Te()?this.a?t=imn(this.c,this.b,true):t=imn(this.c,this.b,false):t=rtn(this.c);if(!(!!t&&FQ(this,t.d)?t:null)){return 0}e=0;for(r=new ksn(this.c,this.f,this.b,this.a,this.e,this.d);xP(r.a);r.b=bG(qY(r.a),44)){++e}return e};lce.ad=function n(e,t){if(this.f.Te()&&this.c.a.Ne(e,this.b)<0){throw dm(new jM(J0n+e+Y0n+this.b))}return this.f.Ue()?W1(this.c,e,t,this.e,this.d):F2(this.c,e,t)};lce.a=false;lce.d=false;var tde=YW($Zn,"TreeMap/SubMap",631);wDn(304,22,Z0n,QP);lce.Te=function n(){return false};lce.Ue=function n(){return false};var rde,ide,ade,cde;var ude=qan($Zn,"TreeMap/SubMapType",304,joe,U6,dB);wDn(1143,304,Z0n,AN);lce.Ue=function n(){return true};var sde=qan($Zn,"TreeMap/SubMapType/1",1143,ude,null,null);wDn(1144,304,Z0n,L$);lce.Te=function n(){return true};lce.Ue=function n(){return true};var ode=qan($Zn,"TreeMap/SubMapType/2",1144,ude,null,null);wDn(1145,304,Z0n,ON);lce.Te=function n(){return true};var fde=qan($Zn,"TreeMap/SubMapType/3",1145,ude,null,null);var hde;wDn(157,RZn,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},ok,Vj,ld);lce.Nc=function n(){return new WP(this)};lce.Fc=function n(e){return qz(this,e)};lce.$b=function n(){this.a.$b()};lce.Hc=function n(e){return this.a._b(e)};lce.Kc=function n(){return this.a.ec().Kc()};lce.Mc=function n(e){return wD(this,e)};lce.gc=function n(){return this.a.gc()};var lde=YW($Zn,"TreeSet",157);wDn(1082,1,{},bd);lce.Ve=function n(e,t){return qK(this.a,e,t)};var bde=YW(n2n,"BinaryOperator/lambda$0$Type",1082);wDn(1083,1,{},wd);lce.Ve=function n(e,t){return XK(this.a,e,t)};var wde=YW(n2n,"BinaryOperator/lambda$1$Type",1083);wDn(952,1,{},V);lce.Kb=function n(e){return e};var dde=YW(n2n,"Function/lambda$0$Type",952);wDn(395,1,k1n,dd);lce.Mb=function n(e){return!this.a.Mb(e)};var gde=YW(n2n,"Predicate/lambda$2$Type",395);wDn(581,1,{581:1});var vde=YW(e2n,"Handler",581);wDn(2107,1,kZn);lce.xe=function n(){return"DUMMY"};lce.Ib=function n(){return this.xe()};var pde;var mde=YW(e2n,"Level",2107);wDn(1706,2107,kZn,z);lce.xe=function n(){return"INFO"};var kde=YW(e2n,"Level/LevelInfo",1706);wDn(1843,1,{},sk);var yde;var Mde=YW(e2n,"LogManager",1843);wDn(1896,1,kZn,sB);lce.b=null;var Tde=YW(e2n,"LogRecord",1896);wDn(525,1,{525:1},u9);lce.e=false;var jde=false,Ede=false,Sde=false,Pde=false,Cde=false;var Ide=YW(e2n,"Logger",525);wDn(835,581,{581:1},W);var Ode=YW(e2n,"SimpleConsoleLogHandler",835);wDn(108,22,{3:1,34:1,22:1,108:1},JP);var Ade,Lde,Nde;var $de=qan(i2n,"Collector/Characteristics",108,joe,_2,gB);var Dde;wDn(758,1,{},nW);var xde=YW(i2n,"CollectorImpl",758);wDn(1074,1,{},Q);lce.Ve=function n(e,t){return sdn(bG(e,213),bG(t,213))};var Rde=YW(i2n,"Collectors/10methodref$merge$Type",1074);wDn(1075,1,{},J);lce.Kb=function n(e){return H4(bG(e,213))};var Kde=YW(i2n,"Collectors/11methodref$toString$Type",1075);wDn(1076,1,{},gd);lce.Kb=function n(e){return Qx(),$L(e)?true:false};var Fde=YW(i2n,"Collectors/12methodref$test$Type",1076);wDn(144,1,{},Y);lce.Yd=function n(e,t){bG(e,16).Fc(t)};var _de=YW(i2n,"Collectors/20methodref$add$Type",144);wDn(146,1,{},Z);lce.Xe=function n(){return new im};var Bde=YW(i2n,"Collectors/21methodref$ctor$Type",146);wDn(359,1,{},nn);lce.Xe=function n(){return new uk};var Hde=YW(i2n,"Collectors/23methodref$ctor$Type",359);wDn(360,1,{},en);lce.Yd=function n(e,t){Gz(bG(e,49),t)};var Ude=YW(i2n,"Collectors/24methodref$add$Type",360);wDn(1069,1,{},tn);lce.Ve=function n(e,t){return $S(bG(e,15),bG(t,16))};var Gde=YW(i2n,"Collectors/4methodref$addAll$Type",1069);wDn(1073,1,{},rn);lce.Yd=function n(e,t){l7(bG(e,213),bG(t,484))};var qde=YW(i2n,"Collectors/9methodref$add$Type",1073);wDn(1072,1,{},gG);lce.Xe=function n(){return new rfn(this.a,this.b,this.c)};var Xde=YW(i2n,"Collectors/lambda$15$Type",1072);wDn(1077,1,{},an);lce.Xe=function n(){var e;return e=new b8,xkn(e,(Qx(),false),new im),xkn(e,true,new im),e};var Vde=YW(i2n,"Collectors/lambda$22$Type",1077);wDn(1078,1,{},vd);lce.Xe=function n(){return zfn(fT(kce,1),jZn,1,5,[this.a])};var zde=YW(i2n,"Collectors/lambda$25$Type",1078);wDn(1079,1,{},pd);lce.Yd=function n(e,t){rX(this.a,Uan(e))};var Wde=YW(i2n,"Collectors/lambda$26$Type",1079);wDn(1080,1,{},md);lce.Ve=function n(e,t){return wz(this.a,Uan(e),Uan(t))};var Qde=YW(i2n,"Collectors/lambda$27$Type",1080);wDn(1081,1,{},cn);lce.Kb=function n(e){return Uan(e)[0]};var Jde=YW(i2n,"Collectors/lambda$28$Type",1081);wDn(728,1,{},un);lce.Ve=function n(e,t){return aX(e,t)};var Yde=YW(i2n,"Collectors/lambda$4$Type",728);wDn(145,1,{},sn);lce.Ve=function n(e,t){return OS(bG(e,16),bG(t,16))};var Zde=YW(i2n,"Collectors/lambda$42$Type",145);wDn(361,1,{},on);lce.Ve=function n(e,t){return AS(bG(e,49),bG(t,49))};var nge=YW(i2n,"Collectors/lambda$50$Type",361);wDn(362,1,{},fn);lce.Kb=function n(e){return bG(e,49)};var ege=YW(i2n,"Collectors/lambda$51$Type",362);wDn(1068,1,{},kd);lce.Yd=function n(e,t){jln(this.a,bG(e,85),t)};var tge=YW(i2n,"Collectors/lambda$7$Type",1068);wDn(1070,1,{},hn);lce.Ve=function n(e,t){return xfn(bG(e,85),bG(t,85),new tn)};var rge=YW(i2n,"Collectors/lambda$8$Type",1070);wDn(1071,1,{},yd);lce.Kb=function n(e){return Ygn(this.a,bG(e,85))};var ige=YW(i2n,"Collectors/lambda$9$Type",1071);wDn(550,1,{});lce.$e=function n(){QQ(this)};lce.d=false;var age=YW(i2n,"TerminatableStream",550);wDn(827,550,a2n,$K);lce.$e=function n(){QQ(this)};var cge=YW(i2n,"DoubleStreamImpl",827);wDn(1847,736,zZn,vG);lce.Re=function n(e){return GMn(this,bG(e,189))};lce.a=null;var uge=YW(i2n,"DoubleStreamImpl/2",1847);wDn(1848,1,F0n,Md);lce.Pe=function n(e){FN(this.a,e)};var sge=YW(i2n,"DoubleStreamImpl/2/lambda$0$Type",1848);wDn(1845,1,F0n,Td);lce.Pe=function n(e){KN(this.a,e)};var oge=YW(i2n,"DoubleStreamImpl/lambda$0$Type",1845);wDn(1846,1,F0n,jd);lce.Pe=function n(e){Ppn(this.a,e)};var fge=YW(i2n,"DoubleStreamImpl/lambda$2$Type",1846);wDn(1397,735,zZn,s9);lce.Re=function n(e){return u6(this,bG(e,202))};lce.a=0;lce.b=0;lce.c=0;var hge=YW(i2n,"IntStream/5",1397);wDn(806,550,a2n,DK);lce.$e=function n(){QQ(this)};lce._e=function n(){return WQ(this),this.a};var lge=YW(i2n,"IntStreamImpl",806);wDn(807,550,a2n,TS);lce.$e=function n(){QQ(this)};lce._e=function n(){return WQ(this),XD(),qwe};var bge=YW(i2n,"IntStreamImpl/Empty",807);wDn(1687,1,QZn,Ed);lce.Dd=function n(e){Ton(this.a,e)};var wge=YW(i2n,"IntStreamImpl/lambda$4$Type",1687);var dge=$q(i2n,"Stream");wDn(26,550,{533:1,687:1,848:1},gX);lce.$e=function n(){QQ(this)};var gge;var vge=YW(i2n,"StreamImpl",26);wDn(1102,500,zZn,__);lce.Bd=function n(e){while(Cen(this)){if(this.a.Bd(e)){return true}else{QQ(this.b);this.b=null;this.a=null}}return false};var pge=YW(i2n,"StreamImpl/1",1102);wDn(1103,1,WZn,Sd);lce.Cd=function n(e){TG(this.a,bG(e,848))};var mge=YW(i2n,"StreamImpl/1/lambda$0$Type",1103);wDn(1104,1,k1n,Pd);lce.Mb=function n(e){return Gz(this.a,e)};var kge=YW(i2n,"StreamImpl/1methodref$add$Type",1104);wDn(1105,500,zZn,eZ);lce.Bd=function n(e){var t;if(!this.a){t=new im;this.b.a.Nb(new Cd(t));dZ();g$(t,this.c);this.a=new d3(t,16)}return bin(this.a,e)};lce.a=null;var yge=YW(i2n,"StreamImpl/5",1105);wDn(1106,1,WZn,Cd);lce.Cd=function n(e){ED(this.a,e)};var Mge=YW(i2n,"StreamImpl/5/2methodref$add$Type",1106);wDn(737,500,zZn,stn);lce.Bd=function n(e){this.b=false;while(!this.b&&this.c.Bd(new nC(this,e)));return this.b};lce.b=false;var Tge=YW(i2n,"StreamImpl/FilterSpliterator",737);wDn(1096,1,WZn,nC);lce.Cd=function n(e){JV(this.a,this.b,e)};var jge=YW(i2n,"StreamImpl/FilterSpliterator/lambda$0$Type",1096);wDn(1091,736,zZn,w7);lce.Re=function n(e){return j_(this,bG(e,189))};var Ege=YW(i2n,"StreamImpl/MapToDoubleSpliterator",1091);wDn(1095,1,WZn,eC);lce.Cd=function n(e){jC(this.a,this.b,e)};var Sge=YW(i2n,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095);wDn(1090,735,zZn,d7);lce.Re=function n(e){return E_(this,bG(e,202))};var Pge=YW(i2n,"StreamImpl/MapToIntSpliterator",1090);wDn(1094,1,WZn,tC);lce.Cd=function n(e){EC(this.a,this.b,e)};var Cge=YW(i2n,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094);wDn(734,500,zZn,g7);lce.Bd=function n(e){return S_(this,e)};var Ige=YW(i2n,"StreamImpl/MapToObjSpliterator",734);wDn(1093,1,WZn,rC);lce.Cd=function n(e){SC(this.a,this.b,e)};var Oge=YW(i2n,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093);wDn(1092,500,zZn,Gcn);lce.Bd=function n(e){while(KP(this.b,0)){if(!this.a.Bd(new ln)){return false}this.b=Fgn(this.b,1)}return this.a.Bd(e)};lce.b=0;var Age=YW(i2n,"StreamImpl/SkipSpliterator",1092);wDn(1097,1,WZn,ln);lce.Cd=function n(e){};var Lge=YW(i2n,"StreamImpl/SkipSpliterator/lambda$0$Type",1097);wDn(626,1,WZn,bn);lce.Cd=function n(e){Db(this,e)};var Nge=YW(i2n,"StreamImpl/ValueConsumer",626);wDn(1098,1,WZn,wn);lce.Cd=function n(e){jS()};var $ge=YW(i2n,"StreamImpl/lambda$0$Type",1098);wDn(1099,1,WZn,dn);lce.Cd=function n(e){jS()};var Dge=YW(i2n,"StreamImpl/lambda$1$Type",1099);wDn(1100,1,{},Id);lce.Ve=function n(e,t){return GB(this.a,e,t)};var xge=YW(i2n,"StreamImpl/lambda$4$Type",1100);wDn(1101,1,WZn,aC);lce.Cd=function n(e){EF(this.b,this.a,e)};var Rge=YW(i2n,"StreamImpl/lambda$5$Type",1101);wDn(1107,1,WZn,Od);lce.Cd=function n(e){zon(this.a,bG(e,380))};var Kge=YW(i2n,"TerminatableStream/lambda$0$Type",1107);wDn(2142,1,{});wDn(2014,1,{},gn);var Fge=YW("javaemul.internal","ConsoleLogger",2014);var _ge=0;wDn(2134,1,{});wDn(1830,1,WZn,vn);lce.Cd=function n(e){bG(e,317)};var Bge=YW(h2n,"BowyerWatsonTriangulation/lambda$0$Type",1830);wDn(1831,1,WZn,Ld);lce.Cd=function n(e){esn(this.a,bG(e,317).e)};var Hge=YW(h2n,"BowyerWatsonTriangulation/lambda$1$Type",1831);wDn(1832,1,WZn,pn);lce.Cd=function n(e){bG(e,177)};var Uge=YW(h2n,"BowyerWatsonTriangulation/lambda$2$Type",1832);wDn(1827,1,l2n,Nd);lce.Ne=function n(e,t){return A5(this.a,bG(e,177),bG(t,177))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Gge=YW(h2n,"NaiveMinST/lambda$0$Type",1827);wDn(449,1,{},Ad);var qge=YW(h2n,"NodeMicroLayout",449);wDn(177,1,{177:1},iC);lce.Fb=function n(e){var t;if(G$(e,177)){t=bG(e,177);return DJ(this.a,t.a)&&DJ(this.b,t.b)||DJ(this.a,t.b)&&DJ(this.b,t.a)}else{return false}};lce.Hb=function n(){return ZN(this.a)+ZN(this.b)};var Xge=YW(h2n,"TEdge",177);wDn(317,1,{317:1},yqn);lce.Fb=function n(e){var t;if(G$(e,317)){t=bG(e,317);return _tn(this,t.a)&&_tn(this,t.b)&&_tn(this,t.c)}else{return false}};lce.Hb=function n(){return ZN(this.a)+ZN(this.b)+ZN(this.c)};var Vge=YW(h2n,"TTriangle",317);wDn(225,1,{225:1},N$);var zge=YW(h2n,"Tree",225);wDn(1218,1,{},Q0);var Wge=YW(b2n,"Scanline",1218);var Qge=$q(b2n,w2n);wDn(1758,1,{},ein);var Jge=YW(d2n,"CGraph",1758);wDn(316,1,{316:1},Z0);lce.b=0;lce.c=0;lce.d=0;lce.g=0;lce.i=0;lce.k=M0n;var Yge=YW(d2n,"CGroup",316);wDn(830,1,{},gk);var Zge=YW(d2n,"CGroup/CGroupBuilder",830);wDn(60,1,{60:1},KF);lce.Ib=function n(){var e;if(this.j){return TK(this.j.Kb(this))}return jK(nve),nve.o+"@"+(e=Bx(this)>>>0,e.toString(16))};lce.f=0;lce.i=M0n;var nve=YW(d2n,"CNode",60);wDn(829,1,{},vk);var eve=YW(d2n,"CNode/CNodeBuilder",829);var tve;wDn(1590,1,{},mn);lce.ff=function n(e,t){return 0};lce.gf=function n(e,t){return 0};var rve=YW(d2n,v2n,1590);wDn(1853,1,{},kn);lce.cf=function n(e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v;h=y0n;for(a=new nd(e.a.b);a.ai.d.c||i.d.c==c.d.c&&i.d.b0?e+this.n.d+this.n.a:0};lce.kf=function n(){var e,r,i,a,c;c=0;if(this.e){this.b?c=this.b.a:!!this.a[1][1]&&(c=this.a[1][1].kf())}else if(this.g){c=Svn(this,mEn(this,null,true))}else{for(r=(ran(),zfn(fT(cpe,1),g1n,237,0,[rpe,ipe,ape])),i=0,a=r.length;i0?c+this.n.b+this.n.c:0};lce.lf=function n(){var e,t,r,i,a;if(this.g){e=mEn(this,null,false);for(r=(ran(),zfn(fT(cpe,1),g1n,237,0,[rpe,ipe,ape])),i=0,a=r.length;i0){a[0]+=this.d;i-=a[0]}if(a[2]>0){a[2]+=this.d;i-=a[2]}this.c.a=t.Math.max(0,i);this.c.d=r.d+e.d+(this.c.a-i)/2;a[1]=t.Math.max(a[1],i);t7(this,ipe,r.d+e.d+a[0]-(a[1]-i)/2,a)};lce.b=null;lce.d=0;lce.e=false;lce.f=false;lce.g=false;var ope=0,fpe=0;var hpe=YW(H2n,"GridContainerCell",1538);wDn(471,22,{3:1,34:1,22:1,471:1},hC);var lpe,bpe,wpe;var dpe=qan(H2n,"HorizontalLabelAlignment",471,joe,H2,yB);var gpe;wDn(314,217,{217:1,314:1},h0,rin,f1);lce.jf=function n(){return sq(this)};lce.kf=function n(){return oq(this)};lce.a=0;lce.c=false;var vpe=YW(H2n,"LabelCell",314);wDn(252,336,{217:1,336:1,252:1},ckn);lce.jf=function n(){return kNn(this)};lce.kf=function n(){return yNn(this)};lce.lf=function n(){rqn(this)};lce.mf=function n(){oqn(this)};lce.b=0;lce.c=0;lce.d=false;var ppe=YW(H2n,"StripContainerCell",252);wDn(1691,1,k1n,Pn);lce.Mb=function n(e){return FM(bG(e,217))};var mpe=YW(H2n,"StripContainerCell/lambda$0$Type",1691);wDn(1692,1,{},Cn);lce.Ye=function n(e){return bG(e,217).kf()};var kpe=YW(H2n,"StripContainerCell/lambda$1$Type",1692);wDn(1693,1,k1n,In);lce.Mb=function n(e){return _M(bG(e,217))};var ype=YW(H2n,"StripContainerCell/lambda$2$Type",1693);wDn(1694,1,{},On);lce.Ye=function n(e){return bG(e,217).jf()};var Mpe=YW(H2n,"StripContainerCell/lambda$3$Type",1694);wDn(472,22,{3:1,34:1,22:1,472:1},lC);var Tpe,jpe,Epe;var Spe=qan(H2n,"VerticalLabelAlignment",472,joe,B2,MB);var Ppe;wDn(800,1,{},OQn);lce.c=0;lce.d=0;lce.k=0;lce.s=0;lce.t=0;lce.v=false;lce.w=0;lce.D=false;lce.F=false;var Cpe=YW(Q2n,"NodeContext",800);wDn(1536,1,l2n,An);lce.Ne=function n(e,t){return zL(bG(e,64),bG(t,64))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Ipe=YW(Q2n,"NodeContext/0methodref$comparePortSides$Type",1536);wDn(1537,1,l2n,Ln);lce.Ne=function n(e,t){return xCn(bG(e,117),bG(t,117))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Ope=YW(Q2n,"NodeContext/1methodref$comparePortContexts$Type",1537);wDn(164,22,{3:1,34:1,22:1,164:1},Msn);var Ape,Lpe,Npe,$pe,Dpe,xpe,Rpe,Kpe,Fpe,_pe,Bpe,Hpe,Upe,Gpe,qpe,Xpe,Vpe,zpe,Wpe,Qpe,Jpe,Ype;var Zpe=qan(Q2n,"NodeLabelLocation",164,joe,Kkn,TB);var nme;wDn(117,1,{117:1},j$n);lce.a=false;var eme=YW(Q2n,"PortContext",117);wDn(1541,1,WZn,Nn);lce.Cd=function n(e){uE(bG(e,314))};var tme=YW(Z2n,n3n,1541);wDn(1542,1,k1n,$n);lce.Mb=function n(e){return!!bG(e,117).c};var rme=YW(Z2n,e3n,1542);wDn(1543,1,WZn,Dn);lce.Cd=function n(e){uE(bG(e,117).c)};var ime=YW(Z2n,"LabelPlacer/lambda$2$Type",1543);var ame;wDn(1540,1,WZn,xn);lce.Cd=function n(e){ZK();mm(bG(e,117))};var cme=YW(Z2n,"NodeLabelAndSizeUtilities/lambda$0$Type",1540);wDn(801,1,WZn,_B);lce.Cd=function n(e){hP(this.b,this.c,this.a,bG(e,187))};lce.a=false;lce.c=false;var ume=YW(Z2n,"NodeLabelCellCreator/lambda$0$Type",801);wDn(1539,1,WZn,Rd);lce.Cd=function n(e){Zm(this.a,bG(e,187))};var sme=YW(Z2n,"PortContextCreator/lambda$0$Type",1539);var ome;wDn(1902,1,{},Rn);var fme=YW(r3n,"GreedyRectangleStripOverlapRemover",1902);wDn(1903,1,l2n,Kn);lce.Ne=function n(e,t){return Nx(bG(e,226),bG(t,226))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var hme=YW(r3n,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903);wDn(1849,1,{},Mk);lce.a=5;lce.e=0;var lme=YW(r3n,"RectangleStripOverlapRemover",1849);wDn(1850,1,l2n,Fn);lce.Ne=function n(e,t){return $x(bG(e,226),bG(t,226))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var bme=YW(r3n,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850);wDn(1852,1,l2n,_n);lce.Ne=function n(e,t){return gW(bG(e,226),bG(t,226))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var wme=YW(r3n,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852);wDn(417,22,{3:1,34:1,22:1,417:1},bC);var dme,gme,vme,pme;var mme=qan(r3n,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,joe,X6,jB);var kme;wDn(226,1,{226:1},iV);var yme=YW(r3n,"RectangleStripOverlapRemover/RectangleNode",226);wDn(1851,1,WZn,Kd);lce.Cd=function n(e){vTn(this.a,bG(e,226))};var Mme=YW(r3n,"RectangleStripOverlapRemover/lambda$1$Type",1851);wDn(1323,1,l2n,Bn);lce.Ne=function n(e,t){return dVn(bG(e,176),bG(t,176))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Tme=YW(a3n,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323);wDn(1326,1,{},Hn);lce.Kb=function n(e){return bG(e,334).a};var jme=YW(a3n,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326);wDn(1327,1,k1n,Un);lce.Mb=function n(e){return bG(e,332).a};var Eme=YW(a3n,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327);wDn(1328,1,k1n,Gn);lce.Mb=function n(e){return bG(e,332).a};var Sme=YW(a3n,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328);wDn(1321,1,l2n,qn);lce.Ne=function n(e,t){return tHn(bG(e,176),bG(t,176))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Pme=YW(a3n,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321);wDn(1324,1,{},Xn);lce.Kb=function n(e){return bG(e,334).a};var Cme=YW(a3n,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324);wDn(781,1,l2n,Vn);lce.Ne=function n(e,t){return vfn(bG(e,176),bG(t,176))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Ime=YW(a3n,"PolyominoCompactor/MinNumOfExtensionsComparator",781);wDn(1319,1,l2n,zn);lce.Ne=function n(e,t){return oun(bG(e,330),bG(t,330))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Ome=YW(a3n,"PolyominoCompactor/MinPerimeterComparator",1319);wDn(1320,1,l2n,Wn);lce.Ne=function n(e,t){return Xyn(bG(e,330),bG(t,330))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Ame=YW(a3n,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320);wDn(1322,1,l2n,Qn);lce.Ne=function n(e,t){return JHn(bG(e,176),bG(t,176))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Lme=YW(a3n,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322);wDn(1325,1,{},Jn);lce.Kb=function n(e){return bG(e,334).a};var Nme=YW(a3n,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325);wDn(782,1,{},wC);lce.Ve=function n(e,t){return k6(this,bG(e,42),bG(t,176))};var $me=YW(a3n,"SuccessorCombination",782);wDn(649,1,{},Yn);lce.Ve=function n(e,t){var r;return UNn((r=bG(e,42),bG(t,176),r))};var Dme=YW(a3n,"SuccessorJitter",649);wDn(648,1,{},Zn);lce.Ve=function n(e,t){var r;return fFn((r=bG(e,42),bG(t,176),r))};var xme=YW(a3n,"SuccessorLineByLine",648);wDn(573,1,{},ne);lce.Ve=function n(e,t){var r;return cxn((r=bG(e,42),bG(t,176),r))};var Rme=YW(a3n,"SuccessorManhattan",573);wDn(1344,1,{},ee);lce.Ve=function n(e,t){var r;return vKn((r=bG(e,42),bG(t,176),r))};var Kme=YW(a3n,"SuccessorMaxNormWindingInMathPosSense",1344);wDn(409,1,{},Fd);lce.Ve=function n(e,t){return Vz(this,e,t)};lce.c=false;lce.d=false;lce.e=false;lce.f=false;var Fme=YW(a3n,"SuccessorQuadrantsGeneric",409);wDn(1345,1,{},te);lce.Kb=function n(e){return bG(e,334).a};var _me=YW(a3n,"SuccessorQuadrantsGeneric/lambda$0$Type",1345);wDn(332,22,{3:1,34:1,22:1,332:1},dC);lce.a=false;var Bme,Hme,Ume,Gme;var qme=qan(f3n,h3n,332,joe,G6,EB);var Xme;wDn(1317,1,{});lce.Ib=function n(){var e,t,r,i,a,c;r=" ";e=Bwn(0);for(a=0;a=0?"b"+e+"["+J8(this.a)+"]":"b["+J8(this.a)+"]"}return"b_"+Bx(this)};var gye=YW(V3n,"FBendpoint",250);wDn(290,137,{3:1,290:1,96:1,137:1},FF);lce.Ib=function n(){return J8(this)};var vye=YW(V3n,"FEdge",290);wDn(235,137,{3:1,235:1,96:1,137:1},k7);var pye=YW(V3n,"FGraph",235);wDn(454,309,{3:1,454:1,309:1,96:1,137:1},x5);lce.Ib=function n(){return this.b==null||this.b.length==0?"l["+J8(this.a)+"]":"l_"+this.b};var mye=YW(V3n,"FLabel",454);wDn(153,309,{3:1,153:1,309:1,96:1,137:1},O$);lce.Ib=function n(){return Y3(this)};lce.a=0;var kye=YW(V3n,"FNode",153);wDn(2100,1,{});lce.vf=function n(e){MGn(this,e)};lce.wf=function n(){$Tn(this)};lce.d=0;var yye=YW(W3n,"AbstractForceModel",2100);wDn(641,2100,{641:1},von);lce.uf=function n(e,r){var i,a,c,u,s;QVn(this.f,e,r);c=r_(_$(r.d),e.d);s=t.Math.sqrt(c.a*c.a+c.b*c.b);a=t.Math.max(0,s-KQ(e.e)/2-KQ(r.e)/2);i=ZNn(this.e,e,r);i>0?u=-sW(a,this.c)*i:u=CR(a,this.b)*bG(lIn(e,(oGn(),Jye)),17).a;jD(c,u/s);return c};lce.vf=function n(e){MGn(this,e);this.a=bG(lIn(e,(oGn(),_ye)),17).a;this.c=bM(MK(lIn(e,rMe)));this.b=bM(MK(lIn(e,Zye)))};lce.xf=function n(e){return e0&&(u-=hM(a,this.a)*i);jD(c,u*this.b/s);return c};lce.vf=function n(e){var r,i,a,c,u,s,o;MGn(this,e);this.b=bM(MK(lIn(e,(oGn(),iMe))));this.c=this.b/bG(lIn(e,_ye),17).a;a=e.e.c.length;u=0;c=0;for(o=new nd(e.e);o.a0};lce.a=0;lce.b=0;lce.c=0;var Tye=YW(W3n,"FruchtermanReingoldModel",642);wDn(860,1,R2n,Wh);lce.hf=function n(e){ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Q3n),""),"Force Model"),"Determines the model for force calculation."),Sye),(vAn(),j3e)),Dye),ygn((Hkn(),p3e)))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,J3n),""),"Iterations"),"The number of iterations on the force model."),Bwn(300)),S3e),tle),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Y3n),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Bwn(0)),S3e),tle),ygn(d3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Z3n),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),n4n),T3e),Yhe),ygn(p3e))));V4(e,Z3n,Q3n,Aye);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,e4n),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),T3e),Yhe),ygn(p3e))));V4(e,e4n,Q3n,Cye);jJn((new Qh,e))};var jye,Eye,Sye,Pye,Cye,Iye,Oye,Aye;var Lye=YW(t4n,"ForceMetaDataProvider",860);wDn(432,22,{3:1,34:1,22:1,432:1},mC);var Nye,$ye;var Dye=qan(t4n,"ForceModelStrategy",432,joe,d1,CB);var xye;wDn(N1n,1,R2n,Qh);lce.hf=function n(e){jJn(e)};var Rye,Kye,Fye,_ye,Bye,Hye,Uye,Gye,qye,Xye,Vye,zye,Wye,Qye,Jye,Yye,Zye,nMe,eMe,tMe,rMe,iMe,aMe,cMe,uMe,sMe,oMe;var fMe=YW(t4n,"ForceOptions",N1n);wDn(1001,1,{},Te);lce.sf=function n(){var e;return e=new dk,e};lce.tf=function n(e){};var hMe=YW(t4n,"ForceOptions/ForceFactory",1001);var lMe,bMe,wMe,dMe;wDn(861,1,R2n,Jh);lce.hf=function n(e){ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,C4n),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(Qx(),false)),(vAn(),M3e)),Uhe),ygn((Hkn(),v3e)))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,I4n),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),T3e),Yhe),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[d3e])))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,O4n),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),pMe),j3e),UMe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,A4n),""),"Stress Epsilon"),"Termination criterion for the iterative process."),n4n),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,L4n),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Bwn(pZn)),S3e),tle),ygn(p3e))));wWn((new Yh,e))};var gMe,vMe,pMe,mMe,kMe,yMe;var MMe=YW(t4n,"StressMetaDataProvider",861);wDn(1004,1,R2n,Yh);lce.hf=function n(e){wWn(e)};var TMe,jMe,EMe,SMe,PMe,CMe,IMe,OMe,AMe,LMe,NMe,$Me;var DMe=YW(t4n,"StressOptions",1004);wDn(1005,1,{},ye);lce.sf=function n(){var e;return e=new _F,e};lce.tf=function n(e){};var xMe=YW(t4n,"StressOptions/StressFactory",1005);wDn(1110,205,y3n,_F);lce.rf=function n(e,t){var r,i,a,c,u;t.Ug($4n,1);lM(yK(YDn(e,(Xjn(),PMe))))?lM(yK(YDn(e,NMe)))||t0((r=new Ad((jP(),new Zy(e))),r)):iRn(new dk,e,t.eh(1));a=Shn(e);i=cqn(this.a,a);for(u=i.Kc();u.Ob();){c=bG(u.Pb(),235);if(c.e.c.length<=1){continue}oVn(this.b,c);exn(this.b);Lin(c.d,new Me)}a=vJn(i);rYn(a);t.Vg()};var RMe=YW(x4n,"StressLayoutProvider",1110);wDn(1111,1,WZn,Me);lce.Cd=function n(e){rXn(bG(e,454))};var KMe=YW(x4n,"StressLayoutProvider/lambda$0$Type",1111);wDn(1002,1,{},Qm);lce.c=0;lce.e=0;lce.g=0;var FMe=YW(x4n,"StressMajorization",1002);wDn(391,22,{3:1,34:1,22:1,391:1},kC);var _Me,BMe,HMe;var UMe=qan(x4n,"StressMajorization/Dimension",391,joe,G2,IB);var GMe;wDn(1003,1,l2n,Gd);lce.Ne=function n(e,t){return I_(this.a,bG(e,153),bG(t,153))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var qMe=YW(x4n,"StressMajorization/lambda$0$Type",1003);wDn(1192,1,{},s4);var XMe=YW(K4n,"ElkLayered",1192);wDn(1193,1,WZn,qd);lce.Cd=function n(e){DLn(this.a,bG(e,36))};var VMe=YW(K4n,"ElkLayered/lambda$0$Type",1193);wDn(1194,1,WZn,Xd);lce.Cd=function n(e){O_(this.a,bG(e,36))};var zMe=YW(K4n,"ElkLayered/lambda$1$Type",1194);wDn(1281,1,{},Y$);var WMe,QMe,JMe;var YMe=YW(K4n,"GraphConfigurator",1281);wDn(770,1,WZn,Vd);lce.Cd=function n(e){JIn(this.a,bG(e,10))};var ZMe=YW(K4n,"GraphConfigurator/lambda$0$Type",770);wDn(771,1,{},ke);lce.Kb=function n(e){return GEn(),new gX(null,new d3(bG(e,30).a,16))};var nTe=YW(K4n,"GraphConfigurator/lambda$1$Type",771);wDn(772,1,WZn,zd);lce.Cd=function n(e){JIn(this.a,bG(e,10))};var eTe=YW(K4n,"GraphConfigurator/lambda$2$Type",772);wDn(1109,205,y3n,Tk);lce.rf=function n(e,t){var r;r=jXn(new Ek,e);BA(YDn(e,(IYn(),SFe)))===BA((Dwn(),U5e))?Cgn(this.a,r,t):XDn(this.a,r,t);t.$g()||KQn(new Zh,r)};var tTe=YW(K4n,"LayeredLayoutProvider",1109);wDn(367,22,{3:1,34:1,22:1,367:1},yC);var rTe,iTe,aTe,cTe,uTe;var sTe=qan(K4n,"LayeredPhases",367,joe,b9,OB);var oTe;wDn(1717,1,{},Fcn);lce.i=0;var fTe;var hTe=YW(F4n,"ComponentsToCGraphTransformer",1717);var lTe;wDn(1718,1,{},me);lce.yf=function n(e,r){return t.Math.min(e.a!=null?bM(e.a):e.c.i,r.a!=null?bM(r.a):r.c.i)};lce.zf=function n(e,r){return t.Math.min(e.a!=null?bM(e.a):e.c.i,r.a!=null?bM(r.a):r.c.i)};var bTe=YW(F4n,"ComponentsToCGraphTransformer/1",1718);wDn(86,1,{86:1});lce.i=0;lce.k=true;lce.o=M0n;var wTe=YW(_4n,"CNode",86);wDn(470,86,{470:1,86:1},tR,rkn);lce.Ib=function n(){return""};var dTe=YW(F4n,"ComponentsToCGraphTransformer/CRectNode",470);wDn(1688,1,{},je);var gTe,vTe;var pTe=YW(F4n,"OneDimensionalComponentsCompaction",1688);wDn(1689,1,{},Ee);lce.Kb=function n(e){return m2(bG(e,42))};lce.Fb=function n(e){return this===e};var mTe=YW(F4n,"OneDimensionalComponentsCompaction/lambda$0$Type",1689);wDn(1690,1,{},Se);lce.Kb=function n(e){return Bgn(bG(e,42))};lce.Fb=function n(e){return this===e};var kTe=YW(F4n,"OneDimensionalComponentsCompaction/lambda$1$Type",1690);wDn(1720,1,{},mQ);var yTe=YW(_4n,"CGraph",1720);wDn(194,1,{194:1},ikn);lce.b=0;lce.c=0;lce.e=0;lce.g=true;lce.i=M0n;var MTe=YW(_4n,"CGroup",194);wDn(1719,1,{},Pe);lce.yf=function n(e,r){return t.Math.max(e.a!=null?bM(e.a):e.c.i,r.a!=null?bM(r.a):r.c.i)};lce.zf=function n(e,r){return t.Math.max(e.a!=null?bM(e.a):e.c.i,r.a!=null?bM(r.a):r.c.i)};var TTe=YW(_4n,v2n,1719);wDn(1721,1,{},s$n);lce.d=false;var jTe;var ETe=YW(_4n,M2n,1721);wDn(1722,1,{},Ce);lce.Kb=function n(e){return WS(),Qx(),bG(bG(e,42).a,86).d.e!=0?true:false};lce.Fb=function n(e){return this===e};var STe=YW(_4n,T2n,1722);wDn(833,1,{},fX);lce.a=false;lce.b=false;lce.c=false;lce.d=false;var PTe=YW(_4n,j2n,833);wDn(1898,1,{},aV);var CTe=YW(B4n,E2n,1898);var ITe=$q(H4n,w2n);wDn(1899,1,{382:1},GZ);lce.bf=function n(e){_Fn(this,bG(e,476))};var OTe=YW(B4n,S2n,1899);wDn(V1n,1,l2n,Ie);lce.Ne=function n(e,t){return oY(bG(e,86),bG(t,86))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var ATe=YW(B4n,P2n,V1n);wDn(476,1,{476:1},UC);lce.a=false;var LTe=YW(B4n,C2n,476);wDn(1901,1,l2n,Oe);lce.Ne=function n(e,t){return UEn(bG(e,476),bG(t,476))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var NTe=YW(B4n,I2n,1901);wDn(148,1,{148:1},GC,mG);lce.Fb=function n(e){var t;if(e==null){return false}if($Te!=Cbn(e)){return false}t=bG(e,148);return DJ(this.c,t.c)&&DJ(this.d,t.d)};lce.Hb=function n(){return Dbn(zfn(fT(kce,1),jZn,1,5,[this.c,this.d]))};lce.Ib=function n(){return"("+this.c+MZn+this.d+(this.a?"cx":"")+this.b+")"};lce.a=true;lce.c=0;lce.d=0;var $Te=YW(H4n,"Point",148);wDn(416,22,{3:1,34:1,22:1,416:1},IC);var DTe,xTe,RTe,KTe;var FTe=qan(H4n,"Point/Quadrant",416,joe,V6,AB);var _Te;wDn(1708,1,{},kk);lce.b=null;lce.c=null;lce.d=null;lce.e=null;lce.f=null;var BTe,HTe,UTe,GTe,qTe;var XTe=YW(H4n,"RectilinearConvexHull",1708);wDn(583,1,{382:1},fyn);lce.bf=function n(e){$en(this,bG(e,148))};lce.b=0;var VTe;var zTe=YW(H4n,"RectilinearConvexHull/MaximalElementsEventHandler",583);wDn(1710,1,l2n,Ae);lce.Ne=function n(e,t){return fY(MK(e),MK(t))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var WTe=YW(H4n,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710);wDn(1709,1,{382:1},tin);lce.bf=function n(e){MKn(this,bG(e,148))};lce.a=0;lce.b=null;lce.c=null;lce.d=null;lce.e=null;var QTe=YW(H4n,"RectilinearConvexHull/RectangleEventHandler",1709);wDn(1711,1,l2n,Le);lce.Ne=function n(e,t){return V3(bG(e,148),bG(t,148))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var JTe=YW(H4n,"RectilinearConvexHull/lambda$0$Type",1711);wDn(1712,1,l2n,xe);lce.Ne=function n(e,t){return z3(bG(e,148),bG(t,148))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var YTe=YW(H4n,"RectilinearConvexHull/lambda$1$Type",1712);wDn(1713,1,l2n,Re);lce.Ne=function n(e,t){return X3(bG(e,148),bG(t,148))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var ZTe=YW(H4n,"RectilinearConvexHull/lambda$2$Type",1713);wDn(1714,1,l2n,De);lce.Ne=function n(e,t){return W3(bG(e,148),bG(t,148))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var nje=YW(H4n,"RectilinearConvexHull/lambda$3$Type",1714);wDn(1715,1,l2n,Ke);lce.Ne=function n(e,t){return wIn(bG(e,148),bG(t,148))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var eje=YW(H4n,"RectilinearConvexHull/lambda$4$Type",1715);wDn(1716,1,{},J0);var tje=YW(H4n,"Scanline",1716);wDn(2104,1,{});var rje=YW(U4n,"AbstractGraphPlacer",2104);wDn(335,1,{335:1},_R);lce.Ff=function n(e){if(this.Gf(e)){zNn(this.b,bG(lIn(e,(WYn(),rDe)),21),e);return true}else{return false}};lce.Gf=function n(e){var t,r,i,a;t=bG(lIn(e,(WYn(),rDe)),21);a=bG(r7(ije,t),21);for(i=a.Kc();i.Ob();){r=bG(i.Pb(),21);if(!bG(r7(this.b,r),15).dc()){return false}}return true};var ije;var aje=YW(U4n,"ComponentGroup",335);wDn(779,2104,{},yk);lce.Hf=function n(e){var t,r;for(r=new nd(this.a);r.ai){l=0;b+=o+a;o=0}f=u.c;cHn(u,l+f.a,b+f.b);kL(f);c=t.Math.max(c,l+h.a);o=t.Math.max(o,h.b);l+=h.a+a}r.f.a=c;r.f.b=b+o};lce.Jf=function n(e,t){var r,i,a,c,u;if(BA(lIn(t,(IYn(),HKe)))===BA((zmn(),hje))){for(i=e.Kc();i.Ob();){r=bG(i.Pb(),36);u=0;for(c=new nd(r.a);c.ai&&!bG(lIn(u,(WYn(),rDe)),21).Hc((UQn(),D8e))||!!f&&bG(lIn(f,(WYn(),rDe)),21).Hc((UQn(),$8e))||bG(lIn(u,(WYn(),rDe)),21).Hc((UQn(),n9e))){w=b;d+=o+a;o=0}h=u.c;bG(lIn(u,(WYn(),rDe)),21).Hc((UQn(),D8e))&&(w=c+a);cHn(u,w+h.a,d+h.b);c=t.Math.max(c,w+l.a);bG(lIn(u,rDe),21).Hc(Y8e)&&(b=t.Math.max(b,w+l.a+a));kL(h);o=t.Math.max(o,l.b);w+=l.a+a;f=u}r.f.a=c;r.f.b=d+o};lce.Jf=function n(e,t){};var Pje=YW(U4n,"ModelOrderRowGraphPlacer",1313);wDn(1311,1,l2n,Be);lce.Ne=function n(e,t){return nfn(bG(e,36),bG(t,36))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Cje=YW(U4n,"SimpleRowGraphPlacer/1",1311);var Ije;wDn(1280,1,O2n,He);lce.Lb=function n(e){var t;return t=bG(lIn(bG(e,249).b,(IYn(),DFe)),75),!!t&&t.b!=0};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){var t;return t=bG(lIn(bG(e,249).b,(IYn(),DFe)),75),!!t&&t.b!=0};var Oje=YW(z4n,"CompoundGraphPostprocessor/1",1280);wDn(1279,1,W4n,Sk);lce.Kf=function n(e,t){Yyn(this,bG(e,36),t)};var Aje=YW(z4n,"CompoundGraphPreprocessor",1279);wDn(453,1,{453:1},Adn);lce.c=false;var Lje=YW(z4n,"CompoundGraphPreprocessor/ExternalPort",453);wDn(249,1,{249:1},FB);lce.Ib=function n(){return PR(this.c)+":"+PNn(this.b)};var Nje=YW(z4n,"CrossHierarchyEdge",249);wDn(777,1,l2n,Wd);lce.Ne=function n(e,t){return Kjn(this,bG(e,249),bG(t,249))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var $je=YW(z4n,"CrossHierarchyEdgeComparator",777);wDn(305,137,{3:1,305:1,96:1,137:1});lce.p=0;var Dje=YW(Q4n,"LGraphElement",305);wDn(18,305,{3:1,18:1,305:1,96:1,137:1},zZ);lce.Ib=function n(){return PNn(this)};var xje=YW(Q4n,"LEdge",18);wDn(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},_cn);lce.Jc=function n(e){Y8(this,e)};lce.Kc=function n(){return new nd(this.b)};lce.Ib=function n(){if(this.b.c.length==0){return"G-unlayered"+jIn(this.a)}else if(this.a.c.length==0){return"G-layered"+jIn(this.b)}return"G[layerless"+jIn(this.a)+", layers"+jIn(this.b)+"]"};var Rje=YW(Q4n,"LGraph",36);var Kje;wDn(666,1,{});lce.Lf=function n(){return this.e.n};lce.of=function n(e){return lIn(this.e,e)};lce.Mf=function n(){return this.e.o};lce.Nf=function n(){return this.e.p};lce.pf=function n(e){return jR(this.e,e)};lce.Of=function n(e){this.e.n.a=e.a;this.e.n.b=e.b};lce.Pf=function n(e){this.e.o.a=e.a;this.e.o.b=e.b};lce.Qf=function n(e){this.e.p=e};var Fje=YW(Q4n,"LGraphAdapters/AbstractLShapeAdapter",666);wDn(474,1,{853:1},Qd);lce.Rf=function n(){var e,t;if(!this.b){this.b=sR(this.a.b.c.length);for(t=new nd(this.a.b);t.a0&&Vbn((w3(t-1,e.length),e.charCodeAt(t-1)),i6n)){--t}if(c> ",e),ajn(r));tL(eL((e.a+="[",e),r.i),"]")}return e.a};lce.c=true;lce.d=false;var fEe,hEe,lEe,bEe,wEe,dEe;var gEe=YW(Q4n,"LPort",12);wDn(408,1,n1n,Yd);lce.Jc=function n(e){Y8(this,e)};lce.Kc=function n(){var e;e=new nd(this.a.e);return new Zd(e)};var vEe=YW(Q4n,"LPort/1",408);wDn(1309,1,NZn,Zd);lce.Nb=function n(e){Az(this,e)};lce.Pb=function n(){return bG(K3(this.a),18).c};lce.Ob=function n(){return v$(this.a)};lce.Qb=function n(){cW(this.a)};var pEe=YW(Q4n,"LPort/1/1",1309);wDn(369,1,n1n,ng);lce.Jc=function n(e){Y8(this,e)};lce.Kc=function n(){var e;return e=new nd(this.a.g),new eg(e)};var mEe=YW(Q4n,"LPort/2",369);wDn(776,1,NZn,eg);lce.Nb=function n(e){Az(this,e)};lce.Pb=function n(){return bG(K3(this.a),18).d};lce.Ob=function n(){return v$(this.a)};lce.Qb=function n(){cW(this.a)};var kEe=YW(Q4n,"LPort/2/1",776);wDn(1302,1,n1n,RC);lce.Jc=function n(e){Y8(this,e)};lce.Kc=function n(){return new m7(this)};var yEe=YW(Q4n,"LPort/CombineIter",1302);wDn(208,1,NZn,m7);lce.Nb=function n(e){Az(this,e)};lce.Qb=function n(){Bj()};lce.Ob=function n(){return _x(this)};lce.Pb=function n(){return v$(this.a)?K3(this.a):K3(this.b)};var MEe=YW(Q4n,"LPort/CombineIter/1",208);wDn(1303,1,O2n,Xe);lce.Lb=function n(e){return rz(e)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return Rsn(),bG(e,12).g.c.length!=0};var TEe=YW(Q4n,"LPort/lambda$0$Type",1303);wDn(1304,1,O2n,Ve);lce.Lb=function n(e){return iz(e)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return Rsn(),bG(e,12).e.c.length!=0};var jEe=YW(Q4n,"LPort/lambda$1$Type",1304);wDn(1305,1,O2n,ze);lce.Lb=function n(e){return Rsn(),bG(e,12).j==(UQn(),D8e)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return Rsn(),bG(e,12).j==(UQn(),D8e)};var EEe=YW(Q4n,"LPort/lambda$2$Type",1305);wDn(1306,1,O2n,We);lce.Lb=function n(e){return Rsn(),bG(e,12).j==(UQn(),$8e)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return Rsn(),bG(e,12).j==(UQn(),$8e)};var SEe=YW(Q4n,"LPort/lambda$3$Type",1306);wDn(1307,1,O2n,Qe);lce.Lb=function n(e){return Rsn(),bG(e,12).j==(UQn(),Y8e)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return Rsn(),bG(e,12).j==(UQn(),Y8e)};var PEe=YW(Q4n,"LPort/lambda$4$Type",1307);wDn(1308,1,O2n,Je);lce.Lb=function n(e){return Rsn(),bG(e,12).j==(UQn(),n9e)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return Rsn(),bG(e,12).j==(UQn(),n9e)};var CEe=YW(Q4n,"LPort/lambda$5$Type",1308);wDn(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},pQ);lce.Jc=function n(e){Y8(this,e)};lce.Kc=function n(){return new nd(this.a)};lce.Ib=function n(){return"L_"+Ctn(this.b.b,this,0)+jIn(this.a)};var IEe=YW(Q4n,"Layer",30);wDn(1330,1,{},Ek);var OEe=YW(o6n,f6n,1330);wDn(1334,1,{},Ye);lce.Kb=function n(e){return vCn(bG(e,84))};var AEe=YW(o6n,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334);wDn(1337,1,{},Ze);lce.Kb=function n(e){return vCn(bG(e,84))};var LEe=YW(o6n,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337);wDn(1331,1,WZn,tg);lce.Cd=function n(e){S$n(this.a,bG(e,123))};var NEe=YW(o6n,X3n,1331);wDn(1332,1,WZn,rg);lce.Cd=function n(e){S$n(this.a,bG(e,123))};var $Ee=YW(o6n,h6n,1332);wDn(1333,1,{},nt);lce.Kb=function n(e){return new gX(null,new d3(UJ(bG(e,74)),16))};var DEe=YW(o6n,l6n,1333);wDn(1335,1,k1n,ig);lce.Mb=function n(e){return _N(this.a,bG(e,27))};var xEe=YW(o6n,b6n,1335);wDn(1336,1,{},et);lce.Kb=function n(e){return new gX(null,new d3(GJ(bG(e,74)),16))};var REe=YW(o6n,"ElkGraphImporter/lambda$5$Type",1336);wDn(1338,1,k1n,ag);lce.Mb=function n(e){return BN(this.a,bG(e,27))};var KEe=YW(o6n,"ElkGraphImporter/lambda$7$Type",1338);wDn(1339,1,k1n,tt);lce.Mb=function n(e){return JY(bG(e,74))};var FEe=YW(o6n,"ElkGraphImporter/lambda$8$Type",1339);wDn(1297,1,{},Zh);var _Ee;var BEe=YW(o6n,"ElkGraphLayoutTransferrer",1297);wDn(1298,1,k1n,cg);lce.Mb=function n(e){return $F(this.a,bG(e,18))};var HEe=YW(o6n,"ElkGraphLayoutTransferrer/lambda$0$Type",1298);wDn(1299,1,WZn,ug);lce.Cd=function n(e){nP();ED(this.a,bG(e,18))};var UEe=YW(o6n,"ElkGraphLayoutTransferrer/lambda$1$Type",1299);wDn(1300,1,k1n,sg);lce.Mb=function n(e){return UK(this.a,bG(e,18))};var GEe=YW(o6n,"ElkGraphLayoutTransferrer/lambda$2$Type",1300);wDn(1301,1,WZn,og);lce.Cd=function n(e){nP();ED(this.a,bG(e,18))};var qEe=YW(o6n,"ElkGraphLayoutTransferrer/lambda$3$Type",1301);wDn(819,1,{},BF);var XEe=YW(w6n,"BiLinkedHashMultiMap",819);wDn(1550,1,W4n,rt);lce.Kf=function n(e,t){Xun(bG(e,36),t)};var VEe=YW(w6n,"CommentNodeMarginCalculator",1550);wDn(1551,1,{},it);lce.Kb=function n(e){return new gX(null,new d3(bG(e,30).a,16))};var zEe=YW(w6n,"CommentNodeMarginCalculator/lambda$0$Type",1551);wDn(1552,1,WZn,at);lce.Cd=function n(e){pXn(bG(e,10))};var WEe=YW(w6n,"CommentNodeMarginCalculator/lambda$1$Type",1552);wDn(1553,1,W4n,ct);lce.Kf=function n(e,t){n_n(bG(e,36),t)};var QEe=YW(w6n,"CommentPostprocessor",1553);wDn(1554,1,W4n,ut);lce.Kf=function n(e,t){EQn(bG(e,36),t)};var JEe=YW(w6n,"CommentPreprocessor",1554);wDn(1555,1,W4n,st);lce.Kf=function n(e,t){UKn(bG(e,36),t)};var YEe=YW(w6n,"ConstraintsPostprocessor",1555);wDn(1556,1,W4n,ot);lce.Kf=function n(e,t){Non(bG(e,36),t)};var ZEe=YW(w6n,"EdgeAndLayerConstraintEdgeReverser",1556);wDn(1557,1,W4n,ft);lce.Kf=function n(e,t){hpn(bG(e,36),t)};var nSe=YW(w6n,"EndLabelPostprocessor",1557);wDn(1558,1,{},ht);lce.Kb=function n(e){return new gX(null,new d3(bG(e,30).a,16))};var eSe=YW(w6n,"EndLabelPostprocessor/lambda$0$Type",1558);wDn(1559,1,k1n,lt);lce.Mb=function n(e){return Q8(bG(e,10))};var tSe=YW(w6n,"EndLabelPostprocessor/lambda$1$Type",1559);wDn(1560,1,WZn,bt);lce.Cd=function n(e){qEn(bG(e,10))};var rSe=YW(w6n,"EndLabelPostprocessor/lambda$2$Type",1560);wDn(1561,1,W4n,wt);lce.Kf=function n(e,t){xAn(bG(e,36),t)};var iSe=YW(w6n,"EndLabelPreprocessor",1561);wDn(1562,1,{},dt);lce.Kb=function n(e){return new gX(null,new d3(bG(e,30).a,16))};var aSe=YW(w6n,"EndLabelPreprocessor/lambda$0$Type",1562);wDn(1563,1,WZn,KB);lce.Cd=function n(e){lP(this.a,this.b,this.c,bG(e,10))};lce.a=0;lce.b=0;lce.c=false;var cSe=YW(w6n,"EndLabelPreprocessor/lambda$1$Type",1563);wDn(1564,1,k1n,gt);lce.Mb=function n(e){return BA(lIn(bG(e,72),(IYn(),wFe)))===BA((ian(),v5e))};var uSe=YW(w6n,"EndLabelPreprocessor/lambda$2$Type",1564);wDn(1565,1,WZn,fg);lce.Cd=function n(e){hq(this.a,bG(e,72))};var sSe=YW(w6n,"EndLabelPreprocessor/lambda$3$Type",1565);wDn(1566,1,k1n,vt);lce.Mb=function n(e){return BA(lIn(bG(e,72),(IYn(),wFe)))===BA((ian(),g5e))};var oSe=YW(w6n,"EndLabelPreprocessor/lambda$4$Type",1566);wDn(1567,1,WZn,hg);lce.Cd=function n(e){hq(this.a,bG(e,72))};var fSe=YW(w6n,"EndLabelPreprocessor/lambda$5$Type",1567);wDn(1615,1,W4n,qh);lce.Kf=function n(e,t){_dn(bG(e,36),t)};var hSe;var lSe=YW(w6n,"EndLabelSorter",1615);wDn(1616,1,l2n,pt);lce.Ne=function n(e,t){return lkn(bG(e,466),bG(t,466))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var bSe=YW(w6n,"EndLabelSorter/1",1616);wDn(466,1,{466:1},lZ);var wSe=YW(w6n,"EndLabelSorter/LabelGroup",466);wDn(1617,1,{},mt);lce.Kb=function n(e){return ZS(),new gX(null,new d3(bG(e,30).a,16))};var dSe=YW(w6n,"EndLabelSorter/lambda$0$Type",1617);wDn(1618,1,k1n,kt);lce.Mb=function n(e){return ZS(),bG(e,10).k==(YIn(),rEe)};var gSe=YW(w6n,"EndLabelSorter/lambda$1$Type",1618);wDn(1619,1,WZn,yt);lce.Cd=function n(e){ZIn(bG(e,10))};var vSe=YW(w6n,"EndLabelSorter/lambda$2$Type",1619);wDn(1620,1,k1n,Mt);lce.Mb=function n(e){return ZS(),BA(lIn(bG(e,72),(IYn(),wFe)))===BA((ian(),g5e))};var pSe=YW(w6n,"EndLabelSorter/lambda$3$Type",1620);wDn(1621,1,k1n,Tt);lce.Mb=function n(e){return ZS(),BA(lIn(bG(e,72),(IYn(),wFe)))===BA((ian(),v5e))};var mSe=YW(w6n,"EndLabelSorter/lambda$4$Type",1621);wDn(1568,1,W4n,jt);lce.Kf=function n(e,t){WXn(this,bG(e,36))};lce.b=0;lce.c=0;var kSe=YW(w6n,"FinalSplineBendpointsCalculator",1568);wDn(1569,1,{},Et);lce.Kb=function n(e){return new gX(null,new d3(bG(e,30).a,16))};var ySe=YW(w6n,"FinalSplineBendpointsCalculator/lambda$0$Type",1569);wDn(1570,1,{},St);lce.Kb=function n(e){return new gX(null,new RW(new GV(sx(Jgn(bG(e,10)).a.Kc(),new d))))};var MSe=YW(w6n,"FinalSplineBendpointsCalculator/lambda$1$Type",1570);wDn(1571,1,k1n,Pt);lce.Mb=function n(e){return!j9(bG(e,18))};var TSe=YW(w6n,"FinalSplineBendpointsCalculator/lambda$2$Type",1571);wDn(1572,1,k1n,Ct);lce.Mb=function n(e){return jR(bG(e,18),(WYn(),GDe))};var jSe=YW(w6n,"FinalSplineBendpointsCalculator/lambda$3$Type",1572);wDn(1573,1,WZn,lg);lce.Cd=function n(e){rUn(this.a,bG(e,131))};var ESe=YW(w6n,"FinalSplineBendpointsCalculator/lambda$4$Type",1573);wDn(1574,1,WZn,It);lce.Cd=function n(e){qAn(bG(e,18).a)};var SSe=YW(w6n,"FinalSplineBendpointsCalculator/lambda$5$Type",1574);wDn(803,1,W4n,bg);lce.Kf=function n(e,t){gzn(this,bG(e,36),t)};var PSe=YW(w6n,"GraphTransformer",803);wDn(517,22,{3:1,34:1,22:1,517:1},LC);var CSe,ISe;var OSe=qan(w6n,"GraphTransformer/Mode",517,joe,g1,YH);var ASe;wDn(1575,1,W4n,Ot);lce.Kf=function n(e,t){mRn(bG(e,36),t)};var LSe=YW(w6n,"HierarchicalNodeResizingProcessor",1575);wDn(1576,1,W4n,At);lce.Kf=function n(e,t){kun(bG(e,36),t)};var NSe=YW(w6n,"HierarchicalPortConstraintProcessor",1576);wDn(1577,1,l2n,Lt);lce.Ne=function n(e,t){return myn(bG(e,10),bG(t,10))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var $Se=YW(w6n,"HierarchicalPortConstraintProcessor/NodeComparator",1577);wDn(1578,1,W4n,Nt);lce.Kf=function n(e,t){VGn(bG(e,36),t)};var DSe=YW(w6n,"HierarchicalPortDummySizeProcessor",1578);wDn(1579,1,W4n,$t);lce.Kf=function n(e,t){Y_n(this,bG(e,36),t)};lce.a=0;var xSe=YW(w6n,"HierarchicalPortOrthogonalEdgeRouter",1579);wDn(1580,1,l2n,Dt);lce.Ne=function n(e,t){return Dx(bG(e,10),bG(t,10))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var RSe=YW(w6n,"HierarchicalPortOrthogonalEdgeRouter/1",1580);wDn(1581,1,l2n,xt);lce.Ne=function n(e,t){return _en(bG(e,10),bG(t,10))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var KSe=YW(w6n,"HierarchicalPortOrthogonalEdgeRouter/2",1581);wDn(1582,1,W4n,Rt);lce.Kf=function n(e,t){cIn(bG(e,36),t)};var FSe=YW(w6n,"HierarchicalPortPositionProcessor",1582);wDn(1583,1,W4n,nl);lce.Kf=function n(e,t){AJn(this,bG(e,36))};lce.a=0;lce.c=0;var _Se,BSe;var HSe=YW(w6n,"HighDegreeNodeLayeringProcessor",1583);wDn(580,1,{580:1},Kt);lce.b=-1;lce.d=-1;var USe=YW(w6n,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580);wDn(1584,1,{},Ft);lce.Kb=function n(e){return VB(),Qgn(bG(e,10))};lce.Fb=function n(e){return this===e};var GSe=YW(w6n,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584);wDn(1585,1,{},_t);lce.Kb=function n(e){return VB(),Jgn(bG(e,10))};lce.Fb=function n(e){return this===e};var qSe=YW(w6n,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585);wDn(1591,1,W4n,Bt);lce.Kf=function n(e,t){CGn(this,bG(e,36),t)};var XSe=YW(w6n,"HyperedgeDummyMerger",1591);wDn(804,1,{},BB);lce.a=false;lce.b=false;lce.c=false;var VSe=YW(w6n,"HyperedgeDummyMerger/MergeState",804);wDn(1592,1,{},Ht);lce.Kb=function n(e){return new gX(null,new d3(bG(e,30).a,16))};var zSe=YW(w6n,"HyperedgeDummyMerger/lambda$0$Type",1592);wDn(1593,1,{},Ut);lce.Kb=function n(e){return new gX(null,new d3(bG(e,10).j,16))};var WSe=YW(w6n,"HyperedgeDummyMerger/lambda$1$Type",1593);wDn(1594,1,WZn,Gt);lce.Cd=function n(e){bG(e,12).p=-1};var QSe=YW(w6n,"HyperedgeDummyMerger/lambda$2$Type",1594);wDn(1595,1,W4n,qt);lce.Kf=function n(e,t){EGn(bG(e,36),t)};var JSe=YW(w6n,"HypernodesProcessor",1595);wDn(1596,1,W4n,Xt);lce.Kf=function n(e,t){qGn(bG(e,36),t)};var YSe=YW(w6n,"InLayerConstraintProcessor",1596);wDn(1597,1,W4n,Vt);lce.Kf=function n(e,t){Ksn(bG(e,36),t)};var ZSe=YW(w6n,"InnermostNodeMarginCalculator",1597);wDn(1598,1,W4n,zt);lce.Kf=function n(e,t){yQn(this,bG(e,36))};lce.a=M0n;lce.b=M0n;lce.c=y0n;lce.d=y0n;var nPe=YW(w6n,"InteractiveExternalPortPositioner",1598);wDn(1599,1,{},Wt);lce.Kb=function n(e){return bG(e,18).d.i};lce.Fb=function n(e){return this===e};var ePe=YW(w6n,"InteractiveExternalPortPositioner/lambda$0$Type",1599);wDn(1600,1,{},wg);lce.Kb=function n(e){return Rx(this.a,MK(e))};lce.Fb=function n(e){return this===e};var tPe=YW(w6n,"InteractiveExternalPortPositioner/lambda$1$Type",1600);wDn(1601,1,{},Qt);lce.Kb=function n(e){return bG(e,18).c.i};lce.Fb=function n(e){return this===e};var rPe=YW(w6n,"InteractiveExternalPortPositioner/lambda$2$Type",1601);wDn(1602,1,{},dg);lce.Kb=function n(e){return Kx(this.a,MK(e))};lce.Fb=function n(e){return this===e};var iPe=YW(w6n,"InteractiveExternalPortPositioner/lambda$3$Type",1602);wDn(1603,1,{},gg);lce.Kb=function n(e){return JF(this.a,MK(e))};lce.Fb=function n(e){return this===e};var aPe=YW(w6n,"InteractiveExternalPortPositioner/lambda$4$Type",1603);wDn(1604,1,{},vg);lce.Kb=function n(e){return YF(this.a,MK(e))};lce.Fb=function n(e){return this===e};var cPe=YW(w6n,"InteractiveExternalPortPositioner/lambda$5$Type",1604);wDn(81,22,{3:1,34:1,22:1,81:1,196:1},NC);lce.dg=function n(){switch(this.g){case 15:return new ga;case 22:return new va;case 47:return new ka;case 28:case 35:return new ur;case 32:return new rt;case 42:return new ct;case 1:return new ut;case 41:return new st;case 56:return new bg((xsn(),ISe));case 0:return new bg((xsn(),CSe));case 2:return new ot;case 54:return new ft;case 33:return new wt;case 51:return new jt;case 55:return new Ot;case 13:return new At;case 38:return new Nt;case 44:return new $t;case 40:return new Rt;case 9:return new nl;case 49:return new zx;case 37:return new Bt;case 43:return new qt;case 27:return new Xt;case 30:return new Vt;case 3:return new zt;case 18:return new Yt;case 29:return new Zt;case 5:return new el;case 50:return new Jt;case 34:return new tl;case 36:return new sr;case 52:return new qh;case 11:return new or;case 7:return new rl;case 39:return new fr;case 45:return new hr;case 16:return new lr;case 10:return new HI;case 48:return new gr;case 21:return new vr;case 23:return new Yy((ucn(),WUe));case 8:return new mr;case 12:return new yr;case 4:return new Mr;case 19:return new ol;case 17:return new Lr;case 53:return new Nr;case 6:return new Xr;case 25:return new Ik;case 46:return new Fr;case 31:return new qF;case 14:return new ni;case 26:return new Pa;case 20:return new ai;case 24:return new Yy((ucn(),QUe));default:throw dm(new jM(p6n+(this.f!=null?this.f:""+this.g)))}};var uPe,sPe,oPe,fPe,hPe,lPe,bPe,wPe,dPe,gPe,vPe,pPe,mPe,kPe,yPe,MPe,TPe,jPe,EPe,SPe,PPe,CPe,IPe,OPe,APe,LPe,NPe,$Pe,DPe,xPe,RPe,KPe,FPe,_Pe,BPe,HPe,UPe,GPe,qPe,XPe,VPe,zPe,WPe,QPe,JPe,YPe,ZPe,nCe,eCe,tCe,rCe,iCe,aCe,cCe,uCe,sCe,oCe;var fCe=qan(w6n,m6n,81,joe,pKn,JB);var hCe;wDn(1605,1,W4n,Yt);lce.Kf=function n(e,t){pQn(bG(e,36),t)};var lCe=YW(w6n,"InvertedPortProcessor",1605);wDn(1606,1,W4n,Zt);lce.Kf=function n(e,t){_Hn(bG(e,36),t)};var bCe=YW(w6n,"LabelAndNodeSizeProcessor",1606);wDn(1607,1,k1n,nr);lce.Mb=function n(e){return bG(e,10).k==(YIn(),rEe)};var wCe=YW(w6n,"LabelAndNodeSizeProcessor/lambda$0$Type",1607);wDn(1608,1,k1n,er);lce.Mb=function n(e){return bG(e,10).k==(YIn(),nEe)};var dCe=YW(w6n,"LabelAndNodeSizeProcessor/lambda$1$Type",1608);wDn(1609,1,WZn,UB);lce.Cd=function n(e){bP(this.b,this.a,this.c,bG(e,10))};lce.a=false;lce.c=false;var gCe=YW(w6n,"LabelAndNodeSizeProcessor/lambda$2$Type",1609);wDn(1610,1,W4n,el);lce.Kf=function n(e,t){OWn(bG(e,36),t)};var vCe;var pCe=YW(w6n,"LabelDummyInserter",1610);wDn(1611,1,O2n,tr);lce.Lb=function n(e){return BA(lIn(bG(e,72),(IYn(),wFe)))===BA((ian(),d5e))};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return BA(lIn(bG(e,72),(IYn(),wFe)))===BA((ian(),d5e))};var mCe=YW(w6n,"LabelDummyInserter/1",1611);wDn(1612,1,W4n,Jt);lce.Kf=function n(e,t){uWn(bG(e,36),t)};var kCe=YW(w6n,"LabelDummyRemover",1612);wDn(1613,1,k1n,rr);lce.Mb=function n(e){return lM(yK(lIn(bG(e,72),(IYn(),bFe))))};var yCe=YW(w6n,"LabelDummyRemover/lambda$0$Type",1613);wDn(1378,1,W4n,tl);lce.Kf=function n(e,t){zzn(this,bG(e,36),t)};lce.a=null;var MCe;var TCe=YW(w6n,"LabelDummySwitcher",1378);wDn(293,1,{293:1},lHn);lce.c=0;lce.d=null;lce.f=0;var jCe=YW(w6n,"LabelDummySwitcher/LabelDummyInfo",293);wDn(1379,1,{},ir);lce.Kb=function n(e){return Lsn(),new gX(null,new d3(bG(e,30).a,16))};var ECe=YW(w6n,"LabelDummySwitcher/lambda$0$Type",1379);wDn(1380,1,k1n,ar);lce.Mb=function n(e){return Lsn(),bG(e,10).k==(YIn(),eEe)};var SCe=YW(w6n,"LabelDummySwitcher/lambda$1$Type",1380);wDn(1381,1,{},pg);lce.Kb=function n(e){return GK(this.a,bG(e,10))};var PCe=YW(w6n,"LabelDummySwitcher/lambda$2$Type",1381);wDn(1382,1,WZn,mg);lce.Cd=function n(e){yQ(this.a,bG(e,293))};var CCe=YW(w6n,"LabelDummySwitcher/lambda$3$Type",1382);wDn(1383,1,l2n,cr);lce.Ne=function n(e,t){return az(bG(e,293),bG(t,293))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var ICe=YW(w6n,"LabelDummySwitcher/lambda$4$Type",1383);wDn(802,1,W4n,ur);lce.Kf=function n(e,t){_nn(bG(e,36),t)};var OCe=YW(w6n,"LabelManagementProcessor",802);wDn(1614,1,W4n,sr);lce.Kf=function n(e,t){IFn(bG(e,36),t)};var ACe=YW(w6n,"LabelSideSelector",1614);wDn(1622,1,W4n,or);lce.Kf=function n(e,t){Sqn(bG(e,36),t)};var LCe=YW(w6n,"LayerConstraintPostprocessor",1622);wDn(1623,1,W4n,rl);lce.Kf=function n(e,t){jDn(bG(e,36),t)};var NCe;var $Ce=YW(w6n,"LayerConstraintPreprocessor",1623);wDn(371,22,{3:1,34:1,22:1,371:1},$C);var DCe,xCe,RCe,KCe;var FCe=qan(w6n,"LayerConstraintPreprocessor/HiddenNodeConnections",371,joe,W6,YB);var _Ce;wDn(1624,1,W4n,fr);lce.Kf=function n(e,t){YVn(bG(e,36),t)};var BCe=YW(w6n,"LayerSizeAndGraphHeightCalculator",1624);wDn(1625,1,W4n,hr);lce.Kf=function n(e,t){kRn(bG(e,36),t)};var HCe=YW(w6n,"LongEdgeJoiner",1625);wDn(1626,1,W4n,lr);lce.Kf=function n(e,t){vVn(bG(e,36),t)};var UCe=YW(w6n,"LongEdgeSplitter",1626);wDn(1627,1,W4n,HI);lce.Kf=function n(e,t){ZWn(this,bG(e,36),t)};lce.e=0;lce.f=0;lce.j=0;lce.k=0;lce.n=0;lce.o=0;var GCe,qCe;var XCe=YW(w6n,"NodePromotion",1627);wDn(1628,1,l2n,br);lce.Ne=function n(e,t){return Fln(bG(e,10),bG(t,10))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var VCe=YW(w6n,"NodePromotion/1",1628);wDn(1629,1,l2n,wr);lce.Ne=function n(e,t){return _ln(bG(e,10),bG(t,10))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var zCe=YW(w6n,"NodePromotion/2",1629);wDn(1630,1,{},dr);lce.Kb=function n(e){return bG(e,42),zB(),Qx(),true};lce.Fb=function n(e){return this===e};var WCe=YW(w6n,"NodePromotion/lambda$0$Type",1630);wDn(1631,1,{},Tg);lce.Kb=function n(e){return L0(this.a,bG(e,42))};lce.Fb=function n(e){return this===e};lce.a=0;var QCe=YW(w6n,"NodePromotion/lambda$1$Type",1631);wDn(1632,1,{},jg);lce.Kb=function n(e){return A0(this.a,bG(e,42))};lce.Fb=function n(e){return this===e};lce.a=0;var JCe=YW(w6n,"NodePromotion/lambda$2$Type",1632);wDn(1633,1,W4n,gr);lce.Kf=function n(e,t){mJn(bG(e,36),t)};var YCe=YW(w6n,"NorthSouthPortPostprocessor",1633);wDn(1634,1,W4n,vr);lce.Kf=function n(e,t){GQn(bG(e,36),t)};var ZCe=YW(w6n,"NorthSouthPortPreprocessor",1634);wDn(1635,1,l2n,pr);lce.Ne=function n(e,t){return efn(bG(e,12),bG(t,12))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var nIe=YW(w6n,"NorthSouthPortPreprocessor/lambda$0$Type",1635);wDn(1636,1,W4n,mr);lce.Kf=function n(e,t){VUn(bG(e,36),t)};var eIe=YW(w6n,"PartitionMidprocessor",1636);wDn(1637,1,k1n,kr);lce.Mb=function n(e){return jR(bG(e,10),(IYn(),h_e))};var tIe=YW(w6n,"PartitionMidprocessor/lambda$0$Type",1637);wDn(1638,1,WZn,Eg);lce.Cd=function n(e){YY(this.a,bG(e,10))};var rIe=YW(w6n,"PartitionMidprocessor/lambda$1$Type",1638);wDn(1639,1,W4n,yr);lce.Kf=function n(e,t){tKn(bG(e,36),t)};var iIe=YW(w6n,"PartitionPostprocessor",1639);wDn(1640,1,W4n,Mr);lce.Kf=function n(e,t){P$n(bG(e,36),t)};var aIe=YW(w6n,"PartitionPreprocessor",1640);wDn(1641,1,k1n,Tr);lce.Mb=function n(e){return jR(bG(e,10),(IYn(),h_e))};var cIe=YW(w6n,"PartitionPreprocessor/lambda$0$Type",1641);wDn(1642,1,{},jr);lce.Kb=function n(e){return new gX(null,new RW(new GV(sx(Jgn(bG(e,10)).a.Kc(),new d))))};var uIe=YW(w6n,"PartitionPreprocessor/lambda$1$Type",1642);wDn(1643,1,k1n,Er);lce.Mb=function n(e){return Mkn(bG(e,18))};var sIe=YW(w6n,"PartitionPreprocessor/lambda$2$Type",1643);wDn(1644,1,WZn,Sr);lce.Cd=function n(e){ohn(bG(e,18))};var oIe=YW(w6n,"PartitionPreprocessor/lambda$3$Type",1644);wDn(1645,1,W4n,ol);lce.Kf=function n(e,t){pUn(bG(e,36),t)};var fIe,hIe,lIe,bIe,wIe,dIe;var gIe=YW(w6n,"PortListSorter",1645);wDn(1648,1,l2n,Pr);lce.Ne=function n(e,t){return e8(bG(e,12),bG(t,12))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var vIe=YW(w6n,"PortListSorter/lambda$0$Type",1648);wDn(1650,1,l2n,Cr);lce.Ne=function n(e,t){return dGn(bG(e,12),bG(t,12))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var pIe=YW(w6n,"PortListSorter/lambda$1$Type",1650);wDn(1646,1,{},Ir);lce.Kb=function n(e){return Nln(),bG(e,12).e};var mIe=YW(w6n,"PortListSorter/lambda$2$Type",1646);wDn(1647,1,{},Or);lce.Kb=function n(e){return Nln(),bG(e,12).g};var kIe=YW(w6n,"PortListSorter/lambda$3$Type",1647);wDn(1649,1,l2n,Ar);lce.Ne=function n(e,t){return pjn(bG(e,12),bG(t,12))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var yIe=YW(w6n,"PortListSorter/lambda$4$Type",1649);wDn(1651,1,W4n,Lr);lce.Kf=function n(e,t){GDn(bG(e,36),t)};var MIe=YW(w6n,"PortSideProcessor",1651);wDn(1652,1,W4n,Nr);lce.Kf=function n(e,t){ABn(bG(e,36),t)};var TIe=YW(w6n,"ReversedEdgeRestorer",1652);wDn(1657,1,W4n,Ik);lce.Kf=function n(e,t){ETn(this,bG(e,36),t)};var jIe=YW(w6n,"SelfLoopPortRestorer",1657);wDn(1658,1,{},$r);lce.Kb=function n(e){return new gX(null,new d3(bG(e,30).a,16))};var EIe=YW(w6n,"SelfLoopPortRestorer/lambda$0$Type",1658);wDn(1659,1,k1n,Dr);lce.Mb=function n(e){return bG(e,10).k==(YIn(),rEe)};var SIe=YW(w6n,"SelfLoopPortRestorer/lambda$1$Type",1659);wDn(1660,1,k1n,xr);lce.Mb=function n(e){return jR(bG(e,10),(WYn(),_De))};var PIe=YW(w6n,"SelfLoopPortRestorer/lambda$2$Type",1660);wDn(1661,1,{},Rr);lce.Kb=function n(e){return bG(lIn(bG(e,10),(WYn(),_De)),337)};var CIe=YW(w6n,"SelfLoopPortRestorer/lambda$3$Type",1661);wDn(1662,1,WZn,yg);lce.Cd=function n(e){yOn(this.a,bG(e,337))};var IIe=YW(w6n,"SelfLoopPortRestorer/lambda$4$Type",1662);wDn(805,1,WZn,Kr);lce.Cd=function n(e){XOn(bG(e,105))};var OIe=YW(w6n,"SelfLoopPortRestorer/lambda$5$Type",805);wDn(1663,1,W4n,Fr);lce.Kf=function n(e,t){lyn(bG(e,36),t)};var AIe=YW(w6n,"SelfLoopPostProcessor",1663);wDn(1664,1,{},_r);lce.Kb=function n(e){return new gX(null,new d3(bG(e,30).a,16))};var LIe=YW(w6n,"SelfLoopPostProcessor/lambda$0$Type",1664);wDn(1665,1,k1n,Br);lce.Mb=function n(e){return bG(e,10).k==(YIn(),rEe)};var NIe=YW(w6n,"SelfLoopPostProcessor/lambda$1$Type",1665);wDn(1666,1,k1n,Hr);lce.Mb=function n(e){return jR(bG(e,10),(WYn(),_De))};var $Ie=YW(w6n,"SelfLoopPostProcessor/lambda$2$Type",1666);wDn(1667,1,WZn,Ur);lce.Cd=function n(e){ySn(bG(e,10))};var DIe=YW(w6n,"SelfLoopPostProcessor/lambda$3$Type",1667);wDn(1668,1,{},Gr);lce.Kb=function n(e){return new gX(null,new d3(bG(e,105).f,1))};var xIe=YW(w6n,"SelfLoopPostProcessor/lambda$4$Type",1668);wDn(1669,1,WZn,kg);lce.Cd=function n(e){Z6(this.a,bG(e,340))};var RIe=YW(w6n,"SelfLoopPostProcessor/lambda$5$Type",1669);wDn(1670,1,k1n,qr);lce.Mb=function n(e){return!!bG(e,105).i};var KIe=YW(w6n,"SelfLoopPostProcessor/lambda$6$Type",1670);wDn(1671,1,WZn,Mg);lce.Cd=function n(e){uM(this.a,bG(e,105))};var FIe=YW(w6n,"SelfLoopPostProcessor/lambda$7$Type",1671);wDn(1653,1,W4n,Xr);lce.Kf=function n(e,t){Gxn(bG(e,36),t)};var _Ie=YW(w6n,"SelfLoopPreProcessor",1653);wDn(1654,1,{},Vr);lce.Kb=function n(e){return new gX(null,new d3(bG(e,105).f,1))};var BIe=YW(w6n,"SelfLoopPreProcessor/lambda$0$Type",1654);wDn(1655,1,{},zr);lce.Kb=function n(e){return bG(e,340).a};var HIe=YW(w6n,"SelfLoopPreProcessor/lambda$1$Type",1655);wDn(1656,1,WZn,Wr);lce.Cd=function n(e){j$(bG(e,18))};var UIe=YW(w6n,"SelfLoopPreProcessor/lambda$2$Type",1656);wDn(1672,1,W4n,qF);lce.Kf=function n(e,t){BIn(this,bG(e,36),t)};var GIe=YW(w6n,"SelfLoopRouter",1672);wDn(1673,1,{},Qr);lce.Kb=function n(e){return new gX(null,new d3(bG(e,30).a,16))};var qIe=YW(w6n,"SelfLoopRouter/lambda$0$Type",1673);wDn(1674,1,k1n,Jr);lce.Mb=function n(e){return bG(e,10).k==(YIn(),rEe)};var XIe=YW(w6n,"SelfLoopRouter/lambda$1$Type",1674);wDn(1675,1,k1n,Yr);lce.Mb=function n(e){return jR(bG(e,10),(WYn(),_De))};var VIe=YW(w6n,"SelfLoopRouter/lambda$2$Type",1675);wDn(1676,1,{},Zr);lce.Kb=function n(e){return bG(lIn(bG(e,10),(WYn(),_De)),337)};var zIe=YW(w6n,"SelfLoopRouter/lambda$3$Type",1676);wDn(1677,1,WZn,DC);lce.Cd=function n(e){vY(this.a,this.b,bG(e,337))};var WIe=YW(w6n,"SelfLoopRouter/lambda$4$Type",1677);wDn(1678,1,W4n,ni);lce.Kf=function n(e,t){cFn(bG(e,36),t)};var QIe=YW(w6n,"SemiInteractiveCrossMinProcessor",1678);wDn(1679,1,k1n,ei);lce.Mb=function n(e){return bG(e,10).k==(YIn(),rEe)};var JIe=YW(w6n,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679);wDn(1680,1,k1n,ti);lce.Mb=function n(e){return PX(bG(e,10))._b((IYn(),S_e))};var YIe=YW(w6n,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680);wDn(1681,1,l2n,ri);lce.Ne=function n(e,t){return Oun(bG(e,10),bG(t,10))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var ZIe=YW(w6n,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681);wDn(1682,1,{},ii);lce.Ve=function n(e,t){return ZY(bG(e,10),bG(t,10))};var nOe=YW(w6n,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682);wDn(1684,1,W4n,ai);lce.Kf=function n(e,t){PXn(bG(e,36),t)};var eOe=YW(w6n,"SortByInputModelProcessor",1684);wDn(1685,1,k1n,ci);lce.Mb=function n(e){return bG(e,12).g.c.length!=0};var tOe=YW(w6n,"SortByInputModelProcessor/lambda$0$Type",1685);wDn(1686,1,WZn,Sg);lce.Cd=function n(e){iAn(this.a,bG(e,12))};var rOe=YW(w6n,"SortByInputModelProcessor/lambda$1$Type",1686);wDn(1759,817,{},Uun);lce.df=function n(e){var t,r,i,a;this.c=e;switch(this.a.g){case 2:t=new im;ES(tY(new gX(null,new d3(this.c.a.b,16)),new ki),new XC(this,t));eLn(this,new si);Lin(t,new oi);t.c.length=0;ES(tY(new gX(null,new d3(this.c.a.b,16)),new fi),new Cg(t));eLn(this,new hi);Lin(t,new li);t.c.length=0;r=m$(Csn(iY(new gX(null,new d3(this.c.a.b,16)),new Ig(this))),new bi);ES(new gX(null,new d3(this.c.a.a,16)),new KC(r,t));eLn(this,new di);Lin(t,new gi);t.c.length=0;break;case 3:i=new im;eLn(this,new ui);a=m$(Csn(iY(new gX(null,new d3(this.c.a.b,16)),new Pg(this))),new wi);ES(tY(new gX(null,new d3(this.c.a.b,16)),new vi),new _C(a,i));eLn(this,new pi);Lin(i,new mi);i.c.length=0;break;default:throw dm(new Vm)}};lce.b=0;var iOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation",1759);wDn(1760,1,O2n,ui);lce.Lb=function n(e){return G$(bG(e,60).g,154)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return G$(bG(e,60).g,154)};var aOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760);wDn(1761,1,{},Pg);lce.Ye=function n(e){return FLn(this.a,bG(e,60))};var cOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761);wDn(1769,1,y1n,xC);lce.de=function n(){CEn(this.a,this.b,-1)};lce.b=0;var uOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769);wDn(1771,1,O2n,si);lce.Lb=function n(e){return G$(bG(e,60).g,154)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return G$(bG(e,60).g,154)};var sOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771);wDn(1772,1,WZn,oi);lce.Cd=function n(e){bG(e,380).de()};var oOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772);wDn(1773,1,k1n,fi);lce.Mb=function n(e){return G$(bG(e,60).g,10)};var fOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773);wDn(1775,1,WZn,Cg);lce.Cd=function n(e){cvn(this.a,bG(e,60))};var hOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775);wDn(1774,1,y1n,BC);lce.de=function n(){CEn(this.b,this.a,-1)};lce.a=0;var lOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774);wDn(1776,1,O2n,hi);lce.Lb=function n(e){return G$(bG(e,60).g,10)};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return G$(bG(e,60).g,10)};var bOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776);wDn(1777,1,WZn,li);lce.Cd=function n(e){bG(e,380).de()};var wOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777);wDn(1778,1,{},Ig);lce.Ye=function n(e){return _Ln(this.a,bG(e,60))};var dOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778);wDn(1779,1,{},bi);lce.We=function n(){return 0};var gOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779);wDn(1762,1,{},wi);lce.We=function n(){return 0};var vOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762);wDn(1781,1,WZn,KC);lce.Cd=function n(e){bV(this.a,this.b,bG(e,316))};lce.a=0;var pOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781);wDn(1780,1,y1n,FC);lce.de=function n(){VDn(this.a,this.b,-1)};lce.b=0;var mOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780);wDn(1782,1,O2n,di);lce.Lb=function n(e){return bG(e,60),true};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return bG(e,60),true};var kOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782);wDn(1783,1,WZn,gi);lce.Cd=function n(e){bG(e,380).de()};var yOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783);wDn(1763,1,k1n,vi);lce.Mb=function n(e){return G$(bG(e,60).g,10)};var MOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763);wDn(1765,1,WZn,_C);lce.Cd=function n(e){wV(this.a,this.b,bG(e,60))};lce.a=0;var TOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765);wDn(1764,1,y1n,HC);lce.de=function n(){CEn(this.b,this.a,-1)};lce.a=0;var jOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764);wDn(1766,1,O2n,pi);lce.Lb=function n(e){return bG(e,60),true};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return bG(e,60),true};var EOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766);wDn(1767,1,WZn,mi);lce.Cd=function n(e){bG(e,380).de()};var SOe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767);wDn(1768,1,k1n,ki);lce.Mb=function n(e){return G$(bG(e,60).g,154)};var POe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768);wDn(1770,1,WZn,XC);lce.Cd=function n(e){Tin(this.a,this.b,bG(e,60))};var COe=YW(j6n,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770);wDn(1586,1,W4n,zx);lce.Kf=function n(e,t){SVn(this,bG(e,36),t)};var IOe;var OOe=YW(j6n,"HorizontalGraphCompactor",1586);wDn(1587,1,{},Og);lce.ff=function n(e,t){var r,i,a;if(Ftn(e,t)){return 0}r=Y4(e);i=Y4(t);if(!!r&&r.k==(YIn(),nEe)||!!i&&i.k==(YIn(),nEe)){return 0}a=bG(lIn(this.a.a,(WYn(),BDe)),312);return qx(a,r?r.k:(YIn(),tEe),i?i.k:(YIn(),tEe))};lce.gf=function n(e,t){var r,i,a;if(Ftn(e,t)){return 1}r=Y4(e);i=Y4(t);a=bG(lIn(this.a.a,(WYn(),BDe)),312);return Xx(a,r?r.k:(YIn(),tEe),i?i.k:(YIn(),tEe))};var AOe=YW(j6n,"HorizontalGraphCompactor/1",1587);wDn(1588,1,{},yi);lce.ef=function n(e,t){return tP(),e.a.i==0};var LOe=YW(j6n,"HorizontalGraphCompactor/lambda$0$Type",1588);wDn(1589,1,{},Ag);lce.ef=function n(e,t){return iZ(this.a,e,t)};var NOe=YW(j6n,"HorizontalGraphCompactor/lambda$1$Type",1589);wDn(1730,1,{},Atn);var $Oe,DOe;var xOe=YW(j6n,"LGraphToCGraphTransformer",1730);wDn(1738,1,k1n,Mi);lce.Mb=function n(e){return e!=null};var ROe=YW(j6n,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738);wDn(1731,1,{},Ti);lce.Kb=function n(e){return WB(),fvn(lIn(bG(bG(e,60).g,10),(WYn(),EDe)))};var KOe=YW(j6n,"LGraphToCGraphTransformer/lambda$0$Type",1731);wDn(1732,1,{},ji);lce.Kb=function n(e){return WB(),qwn(bG(bG(e,60).g,154))};var FOe=YW(j6n,"LGraphToCGraphTransformer/lambda$1$Type",1732);wDn(1741,1,k1n,Ei);lce.Mb=function n(e){return WB(),G$(bG(e,60).g,10)};var _Oe=YW(j6n,"LGraphToCGraphTransformer/lambda$10$Type",1741);wDn(1742,1,WZn,Si);lce.Cd=function n(e){IZ(bG(e,60))};var BOe=YW(j6n,"LGraphToCGraphTransformer/lambda$11$Type",1742);wDn(1743,1,k1n,Pi);lce.Mb=function n(e){return WB(),G$(bG(e,60).g,154)};var HOe=YW(j6n,"LGraphToCGraphTransformer/lambda$12$Type",1743);wDn(1747,1,WZn,Ci);lce.Cd=function n(e){Gwn(bG(e,60))};var UOe=YW(j6n,"LGraphToCGraphTransformer/lambda$13$Type",1747);wDn(1744,1,WZn,Lg);lce.Cd=function n(e){nN(this.a,bG(e,8))};lce.a=0;var GOe=YW(j6n,"LGraphToCGraphTransformer/lambda$14$Type",1744);wDn(1745,1,WZn,Ng);lce.Cd=function n(e){tN(this.a,bG(e,116))};lce.a=0;var qOe=YW(j6n,"LGraphToCGraphTransformer/lambda$15$Type",1745);wDn(1746,1,WZn,$g);lce.Cd=function n(e){eN(this.a,bG(e,8))};lce.a=0;var XOe=YW(j6n,"LGraphToCGraphTransformer/lambda$16$Type",1746);wDn(1748,1,{},Ii);lce.Kb=function n(e){return WB(),new gX(null,new RW(new GV(sx(Jgn(bG(e,10)).a.Kc(),new d))))};var VOe=YW(j6n,"LGraphToCGraphTransformer/lambda$17$Type",1748);wDn(1749,1,k1n,Oi);lce.Mb=function n(e){return WB(),j9(bG(e,18))};var zOe=YW(j6n,"LGraphToCGraphTransformer/lambda$18$Type",1749);wDn(1750,1,WZn,Dg);lce.Cd=function n(e){grn(this.a,bG(e,18))};var WOe=YW(j6n,"LGraphToCGraphTransformer/lambda$19$Type",1750);wDn(1734,1,WZn,xg);lce.Cd=function n(e){e4(this.a,bG(e,154))};var QOe=YW(j6n,"LGraphToCGraphTransformer/lambda$2$Type",1734);wDn(1751,1,{},Ai);lce.Kb=function n(e){return WB(),new gX(null,new d3(bG(e,30).a,16))};var JOe=YW(j6n,"LGraphToCGraphTransformer/lambda$20$Type",1751);wDn(1752,1,{},Li);lce.Kb=function n(e){return WB(),new gX(null,new RW(new GV(sx(Jgn(bG(e,10)).a.Kc(),new d))))};var YOe=YW(j6n,"LGraphToCGraphTransformer/lambda$21$Type",1752);wDn(1753,1,{},Ni);lce.Kb=function n(e){return WB(),bG(lIn(bG(e,18),(WYn(),GDe)),15)};var ZOe=YW(j6n,"LGraphToCGraphTransformer/lambda$22$Type",1753);wDn(1754,1,k1n,$i);lce.Mb=function n(e){return Vx(bG(e,15))};var nAe=YW(j6n,"LGraphToCGraphTransformer/lambda$23$Type",1754);wDn(1755,1,WZn,Rg);lce.Cd=function n(e){MLn(this.a,bG(e,15))};var eAe=YW(j6n,"LGraphToCGraphTransformer/lambda$24$Type",1755);wDn(1733,1,WZn,VC);lce.Cd=function n(e){L5(this.a,this.b,bG(e,154))};var tAe=YW(j6n,"LGraphToCGraphTransformer/lambda$3$Type",1733);wDn(1735,1,{},Di);lce.Kb=function n(e){return WB(),new gX(null,new d3(bG(e,30).a,16))};var rAe=YW(j6n,"LGraphToCGraphTransformer/lambda$4$Type",1735);wDn(1736,1,{},xi);lce.Kb=function n(e){return WB(),new gX(null,new RW(new GV(sx(Jgn(bG(e,10)).a.Kc(),new d))))};var iAe=YW(j6n,"LGraphToCGraphTransformer/lambda$5$Type",1736);wDn(1737,1,{},Ri);lce.Kb=function n(e){return WB(),bG(lIn(bG(e,18),(WYn(),GDe)),15)};var aAe=YW(j6n,"LGraphToCGraphTransformer/lambda$6$Type",1737);wDn(1739,1,WZn,Kg);lce.Cd=function n(e){BLn(this.a,bG(e,15))};var cAe=YW(j6n,"LGraphToCGraphTransformer/lambda$8$Type",1739);wDn(1740,1,WZn,zC);lce.Cd=function n(e){E$(this.a,this.b,bG(e,154))};var uAe=YW(j6n,"LGraphToCGraphTransformer/lambda$9$Type",1740);wDn(1729,1,{},Ki);lce.cf=function n(e){var t,r,i,a,c;this.a=e;this.d=new hk;this.c=$nn(Wve,jZn,125,this.a.a.a.c.length,0,1);this.b=0;for(r=new nd(this.a.a.a);r.a=v){ED(u,Bwn(l));k=t.Math.max(k,y[l-1]-b);o+=g;p+=y[l-1]-p;b=y[l-1];g=f[l]}g=t.Math.max(g,f[l]);++l}o+=g}d=t.Math.min(1/k,1/r.b/o);if(d>a){a=d;i=u}}return i};lce.pg=function n(){return false};var aNe=YW(L6n,"MSDCutIndexHeuristic",816);wDn(1683,1,W4n,Pa);lce.Kf=function n(e,t){Nqn(bG(e,36),t)};var cNe=YW(L6n,"SingleEdgeGraphWrapper",1683);wDn(232,22,{3:1,34:1,22:1,232:1},eI);var uNe,sNe,oNe,fNe,hNe,lNe;var bNe=qan(N6n,"CenterEdgeLabelPlacementStrategy",232,joe,Ynn,tH);var wNe;wDn(431,22,{3:1,34:1,22:1,431:1},nI);var dNe,gNe;var vNe=qan(N6n,"ConstraintCalculationStrategy",431,joe,m1,rH);var pNe;wDn(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},tI);lce.dg=function n(){return iNn(this)};lce.qg=function n(){return iNn(this)};var mNe,kNe,yNe;var MNe=qan(N6n,"CrossingMinimizationStrategy",322,joe,X2,iH);var TNe;wDn(351,22,{3:1,34:1,22:1,351:1},rI);var jNe,ENe,SNe;var PNe=qan(N6n,"CuttingStrategy",351,joe,V2,aH);var CNe;wDn(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},iI);lce.dg=function n(){return DDn(this)};lce.qg=function n(){return DDn(this)};var INe,ONe,ANe,LNe,NNe;var $Ne=qan(N6n,"CycleBreakingStrategy",348,joe,d9,cH);var DNe;wDn(428,22,{3:1,34:1,22:1,428:1},aI);var xNe,RNe;var KNe=qan(N6n,"DirectionCongruency",428,joe,p1,uH);var FNe;wDn(460,22,{3:1,34:1,22:1,460:1},cI);var _Ne,BNe,HNe;var UNe=qan(N6n,"EdgeConstraint",460,joe,z2,wH);var GNe;wDn(283,22,{3:1,34:1,22:1,283:1},uI);var qNe,XNe,VNe,zNe,WNe,QNe;var JNe=qan(N6n,"EdgeLabelSideSelection",283,joe,Wnn,dH);var YNe;wDn(488,22,{3:1,34:1,22:1,488:1},sI);var ZNe,n$e;var e$e=qan(N6n,"EdgeStraighteningStrategy",488,joe,S1,gH);var t$e;wDn(281,22,{3:1,34:1,22:1,281:1},oI);var r$e,i$e,a$e,c$e,u$e,s$e;var o$e=qan(N6n,"FixedAlignment",281,joe,Qnn,bH);var f$e;wDn(282,22,{3:1,34:1,22:1,282:1},fI);var h$e,l$e,b$e,w$e,d$e,g$e;var v$e=qan(N6n,"GraphCompactionStrategy",282,joe,Jnn,sH);var p$e;wDn(259,22,{3:1,34:1,22:1,259:1},hI);var m$e,k$e,y$e,M$e,T$e,j$e,E$e,S$e,P$e,C$e;var I$e=qan(N6n,"GraphProperties",259,joe,lsn,oH);var O$e;wDn(299,22,{3:1,34:1,22:1,299:1},lI);var A$e,L$e,N$e;var $$e=qan(N6n,"GreedySwitchType",299,joe,W2,fH);var D$e;wDn(311,22,{3:1,34:1,22:1,311:1},bI);var x$e,R$e,K$e;var F$e=qan(N6n,"InLayerConstraint",311,joe,Q2,hH);var _$e;wDn(429,22,{3:1,34:1,22:1,429:1},wI);var B$e,H$e;var U$e=qan(N6n,"InteractiveReferencePoint",429,joe,v1,lH);var G$e;var q$e,X$e,V$e,z$e,W$e,Q$e,J$e,Y$e,Z$e,nDe,eDe,tDe,rDe,iDe,aDe,cDe,uDe,sDe,oDe,fDe,hDe,lDe,bDe,wDe,dDe,gDe,vDe,pDe,mDe,kDe,yDe,MDe,TDe,jDe,EDe,SDe,PDe,CDe,IDe,ODe,ADe,LDe,NDe,$De,DDe,xDe,RDe,KDe,FDe,_De,BDe,HDe,UDe,GDe,qDe,XDe,VDe,zDe;wDn(171,22,{3:1,34:1,22:1,171:1},dI);var WDe,QDe,JDe,YDe,ZDe;var nxe=qan(N6n,"LayerConstraint",171,joe,v9,vH);var exe;wDn(859,1,R2n,gl);lce.hf=function n(e){ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,_6n),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),_xe),(vAn(),j3e)),KNe),ygn((Hkn(),p3e)))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,B6n),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Qx(),false)),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,H6n),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),oRe),j3e),U$e),ygn(p3e))));V4(e,H6n,Q6n,hRe);V4(e,H6n,c5n,fRe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,U6n),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,G6n),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),true),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(ZT(tj(ej(rj(QT(WT(nj(JT(YT(new _s,q6n),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),false),M3e),Uhe),ygn(m3e)),zfn(fT(vle,1),XZn,2,6,["org.eclipse.elk.layered.northOrSouthPort"]))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,X6n),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),zRe),j3e),pHe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,V6n),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Bwn(7)),S3e),tle),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,z6n),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,W6n),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Q6n),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),Kxe),j3e),$Ne),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,J6n),s8n),"Node Layering Strategy"),"Strategy for node layering."),SRe),j3e),LBe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Y6n),s8n),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),gRe),j3e),nxe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Z6n),s8n),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),S3e),tle),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,n5n),s8n),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Bwn(-1)),S3e),tle),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,e5n),o8n),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Bwn(4)),S3e),tle),ygn(p3e))));V4(e,e5n,J6n,mRe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,t5n),o8n),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Bwn(2)),S3e),tle),ygn(p3e))));V4(e,t5n,J6n,yRe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,r5n),f8n),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),jRe),j3e),sHe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,i5n),f8n),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Bwn(0)),S3e),tle),ygn(p3e))));V4(e,i5n,r5n,null);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,a5n),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Bwn(pZn)),S3e),tle),ygn(p3e))));V4(e,a5n,J6n,bRe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,c5n),h8n),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),xxe),j3e),MNe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,u5n),h8n),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,s5n),h8n),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),T3e),Yhe),ygn(p3e))));V4(e,s5n,l8n,Cxe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,o5n),h8n),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),false),M3e),Uhe),ygn(p3e))));V4(e,o5n,c5n,$xe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,f5n),h8n),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),C3e),vle),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,h5n),h8n),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),C3e),vle),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,l5n),h8n),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),S3e),tle),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,b5n),h8n),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Bwn(-1)),S3e),tle),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,w5n),b8n),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Bwn(40)),S3e),tle),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,d5n),b8n),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),Exe),j3e),$$e),ygn(p3e))));V4(e,d5n,c5n,Sxe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,g5n),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),yxe),j3e),$$e),ygn(p3e))));V4(e,g5n,c5n,Mxe);V4(e,g5n,l8n,Txe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,v5n),w8n),"Node Placement Strategy"),"Strategy for node placement."),XRe),j3e),QBe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,p5n),w8n),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),M3e),Uhe),ygn(p3e))));V4(e,p5n,v5n,xRe);V4(e,p5n,v5n,RRe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,m5n),d8n),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),ORe),j3e),e$e),ygn(p3e))));V4(e,m5n,v5n,ARe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,k5n),d8n),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),NRe),j3e),o$e),ygn(p3e))));V4(e,k5n,v5n,$Re);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,y5n),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),T3e),Yhe),ygn(p3e))));V4(e,y5n,v5n,FRe);ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,M5n),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),j3e),UBe),ygn(v3e))));V4(e,M5n,v5n,GRe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,T5n),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),HRe),j3e),UBe),ygn(p3e))));V4(e,T5n,v5n,URe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,j5n),g8n),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),zxe),j3e),CHe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,E5n),g8n),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),Qxe),j3e),NHe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,S5n),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),Yxe),j3e),FHe),ygn(p3e))));V4(e,S5n,v8n,Zxe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,P5n),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),T3e),Yhe),ygn(p3e))));V4(e,P5n,v8n,eRe);V4(e,P5n,S5n,tRe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,C5n),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),T3e),Yhe),ygn(p3e))));V4(e,C5n,v8n,Xxe);ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,I5n),p8n),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,O5n),p8n),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,A5n),p8n),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,L5n),p8n),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,N5n),m8n),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Bwn(0)),S3e),tle),ygn(d3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,$5n),m8n),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Bwn(0)),S3e),tle),ygn(d3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,D5n),m8n),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Bwn(0)),S3e),tle),ygn(d3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,x5n),k8n),T3n),"Tries to further compact components (disconnected sub-graphs)."),false),M3e),Uhe),ygn(p3e))));V4(e,x5n,o4n,true);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,R5n),y8n),"Post Compaction Strategy"),M8n),uxe),j3e),v$e),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,K5n),y8n),"Post Compaction Constraint Calculation"),M8n),axe),j3e),vNe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,F5n),T8n),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,_5n),T8n),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Bwn(16)),S3e),tle),ygn(p3e))));V4(e,_5n,F5n,true);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,B5n),T8n),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Bwn(5)),S3e),tle),ygn(p3e))));V4(e,B5n,F5n,true);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,H5n),j8n),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),SKe),j3e),WHe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,U5n),j8n),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),T3e),Yhe),ygn(p3e))));V4(e,U5n,H5n,aKe);V4(e,U5n,H5n,cKe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,G5n),j8n),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),T3e),Yhe),ygn(p3e))));V4(e,G5n,H5n,sKe);V4(e,G5n,H5n,oKe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,q5n),E8n),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),gKe),j3e),PNe),ygn(p3e))));V4(e,q5n,H5n,vKe);V4(e,q5n,H5n,pKe);ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,X5n),E8n),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),P3e),uue),ygn(p3e))));V4(e,X5n,q5n,hKe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,V5n),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),bKe),S3e),tle),ygn(p3e))));V4(e,V5n,q5n,wKe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,z5n),S8n),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),AKe),j3e),GHe),ygn(p3e))));V4(e,z5n,H5n,LKe);V4(e,z5n,H5n,NKe);ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,W5n),S8n),"Valid Indices for Wrapping"),null),P3e),uue),ygn(p3e))));V4(e,W5n,H5n,CKe);V4(e,W5n,H5n,IKe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Q5n),P8n),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),true),M3e),Uhe),ygn(p3e))));V4(e,Q5n,H5n,MKe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,J5n),P8n),"Distance Penalty When Improving Cuts"),null),2),T3e),Yhe),ygn(p3e))));V4(e,J5n,H5n,kKe);V4(e,J5n,Q5n,true);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Y5n),P8n),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),true),M3e),Uhe),ygn(p3e))));V4(e,Y5n,H5n,jKe);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Z5n),C8n),"Edge Label Side Selection"),"Method to decide on edge label sides."),Gxe),j3e),JNe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,n8n),C8n),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),Hxe),j3e),bNe),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[g3e])))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,e8n),I8n),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),vxe),j3e),wHe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,t8n),I8n),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,r8n),I8n),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),false),M3e),Uhe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,i8n),I8n),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),oxe),j3e),lje),ygn(p3e))));V4(e,i8n,o4n,null);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,a8n),I8n),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),bxe),j3e),RBe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,c8n),I8n),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),T3e),Yhe),ygn(p3e))));V4(e,c8n,e8n,null);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,u8n),I8n),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),T3e),Yhe),ygn(p3e))));V4(e,u8n,e8n,null);uZn((new vl,e))};var txe,rxe,ixe,axe,cxe,uxe,sxe,oxe,fxe,hxe,lxe,bxe,wxe,dxe,gxe,vxe,pxe,mxe,kxe,yxe,Mxe,Txe,jxe,Exe,Sxe,Pxe,Cxe,Ixe,Oxe,Axe,Lxe,Nxe,$xe,Dxe,xxe,Rxe,Kxe,Fxe,_xe,Bxe,Hxe,Uxe,Gxe,qxe,Xxe,Vxe,zxe,Wxe,Qxe,Jxe,Yxe,Zxe,nRe,eRe,tRe,rRe,iRe,aRe,cRe,uRe,sRe,oRe,fRe,hRe,lRe,bRe,wRe,dRe,gRe,vRe,pRe,mRe,kRe,yRe,MRe,TRe,jRe,ERe,SRe,PRe,CRe,IRe,ORe,ARe,LRe,NRe,$Re,DRe,xRe,RRe,KRe,FRe,_Re,BRe,HRe,URe,GRe,qRe,XRe,VRe,zRe,WRe,QRe,JRe,YRe,ZRe,nKe,eKe,tKe,rKe,iKe,aKe,cKe,uKe,sKe,oKe,fKe,hKe,lKe,bKe,wKe,dKe,gKe,vKe,pKe,mKe,kKe,yKe,MKe,TKe,jKe,EKe,SKe,PKe,CKe,IKe,OKe,AKe,LKe,NKe;var $Ke=YW(N6n,"LayeredMetaDataProvider",859);wDn(998,1,R2n,vl);lce.hf=function n(e){uZn(e)};var DKe,xKe,RKe,KKe,FKe,_Ke,BKe,HKe,UKe,GKe,qKe,XKe,VKe,zKe,WKe,QKe,JKe,YKe,ZKe,nFe,eFe,tFe,rFe,iFe,aFe,cFe,uFe,sFe,oFe,fFe,hFe,lFe,bFe,wFe,dFe,gFe,vFe,pFe,mFe,kFe,yFe,MFe,TFe,jFe,EFe,SFe,PFe,CFe,IFe,OFe,AFe,LFe,NFe,$Fe,DFe,xFe,RFe,KFe,FFe,_Fe,BFe,HFe,UFe,GFe,qFe,XFe,VFe,zFe,WFe,QFe,JFe,YFe,ZFe,n_e,e_e,t_e,r_e,i_e,a_e,c_e,u_e,s_e,o_e,f_e,h_e,l_e,b_e,w_e,d_e,g_e,v_e,p_e,m_e,k_e,y_e,M_e,T_e,j_e,E_e,S_e,P_e,C_e,I_e,O_e,A_e,L_e,N_e,$_e,D_e,x_e,R_e,K_e,F_e,__e,B_e,H_e,U_e,G_e,q_e,X_e,V_e,z_e,W_e,Q_e,J_e,Y_e,Z_e,nBe,eBe,tBe,rBe,iBe,aBe,cBe,uBe,sBe,oBe,fBe,hBe,lBe,bBe,wBe,dBe;var gBe=YW(N6n,"LayeredOptions",998);wDn(999,1,{},Ca);lce.sf=function n(){var e;return e=new Tk,e};lce.tf=function n(e){};var vBe=YW(N6n,"LayeredOptions/LayeredFactory",999);wDn(1391,1,{});lce.a=0;var pBe;var mBe=YW(g9n,"ElkSpacings/AbstractSpacingsBuilder",1391);wDn(792,1391,{},lpn);var kBe,yBe;var MBe=YW(N6n,"LayeredSpacings/LayeredSpacingsBuilder",792);wDn(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},gI);lce.dg=function n(){return tBn(this)};lce.qg=function n(){return tBn(this)};var TBe,jBe,EBe,SBe,PBe,CBe,IBe,OBe,ABe;var LBe=qan(N6n,"LayeringStrategy",265,joe,ccn,pH);var NBe;wDn(390,22,{3:1,34:1,22:1,390:1},vI);var $Be,DBe,xBe;var RBe=qan(N6n,"LongEdgeOrderingStrategy",390,joe,J2,mH);var KBe;wDn(203,22,{3:1,34:1,22:1,203:1},pI);var FBe,_Be,BBe,HBe;var UBe=qan(N6n,"NodeFlexibility",203,joe,Q6,kH);var GBe;wDn(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},mI);lce.dg=function n(){return $Dn(this)};lce.qg=function n(){return $Dn(this)};var qBe,XBe,VBe,zBe,WBe;var QBe=qan(N6n,"NodePlacementStrategy",323,joe,g9,yH);var JBe;wDn(243,22,{3:1,34:1,22:1,243:1},kI);var YBe,ZBe,nHe,eHe,tHe,rHe,iHe,aHe,cHe,uHe;var sHe=qan(N6n,"NodePromotionStrategy",243,joe,bsn,MH);var oHe;wDn(284,22,{3:1,34:1,22:1,284:1},yI);var fHe,hHe,lHe,bHe;var wHe=qan(N6n,"OrderingStrategy",284,joe,J6,TH);var dHe;wDn(430,22,{3:1,34:1,22:1,430:1},MI);var gHe,vHe;var pHe=qan(N6n,"PortSortingStrategy",430,joe,k1,jH);var mHe;wDn(463,22,{3:1,34:1,22:1,463:1},TI);var kHe,yHe,MHe;var THe=qan(N6n,"PortType",463,joe,Y2,EH);var jHe;wDn(387,22,{3:1,34:1,22:1,387:1},jI);var EHe,SHe,PHe;var CHe=qan(N6n,"SelfLoopDistributionStrategy",387,joe,Z2,SH);var IHe;wDn(349,22,{3:1,34:1,22:1,349:1},EI);var OHe,AHe,LHe;var NHe=qan(N6n,"SelfLoopOrderingStrategy",349,joe,n3,PH);var $He;wDn(312,1,{312:1},Nzn);var DHe=YW(N6n,"Spacings",312);wDn(350,22,{3:1,34:1,22:1,350:1},SI);var xHe,RHe,KHe;var FHe=qan(N6n,"SplineRoutingMode",350,joe,e3,CH);var _He;wDn(352,22,{3:1,34:1,22:1,352:1},PI);var BHe,HHe,UHe;var GHe=qan(N6n,"ValidifyStrategy",352,joe,t3,IH);var qHe;wDn(388,22,{3:1,34:1,22:1,388:1},CI);var XHe,VHe,zHe;var WHe=qan(N6n,"WrappingStrategy",388,joe,r3,OH);var QHe;wDn(1398,1,k9n,sl);lce.rg=function n(e){return bG(e,36),JHe};lce.Kf=function n(e,t){MVn(this,bG(e,36),t)};var JHe;var YHe=YW(y9n,"DepthFirstCycleBreaker",1398);wDn(793,1,k9n,uV);lce.rg=function n(e){return bG(e,36),ZHe};lce.Kf=function n(e,t){yYn(this,bG(e,36),t)};lce.sg=function n(e){return bG(Yq(e,sMn(this.d,e.c.length)),10)};var ZHe;var nUe=YW(y9n,"GreedyCycleBreaker",793);wDn(1401,793,k9n,cL);lce.sg=function n(e){var t,r,i,a;a=null;t=pZn;for(i=new nd(e);i.a1){lM(yK(lIn(VQ((b3(0,e.c.length),bG(e.c[0],10))),(IYn(),QKe))))?xxn(e,this.d,bG(this,669)):(dZ(),g$(e,this.d));Bon(this.e,e)}};lce.lg=function n(e,t,r,i){var a,c,u,s,o,f,h;if(t!=jX(r,e.length)){c=e[t-(r?1:-1)];j7(this.f,c,r?(fcn(),yHe):(fcn(),kHe))}a=e[t][0];h=!i||a.k==(YIn(),nEe);f=a7(e[t]);this.vg(f,h,false,r);u=0;for(o=new nd(f);o.a");e0?(I0(this.a,e[t-1],e[t]),undefined):!r&&t1){lM(yK(lIn(VQ((b3(0,e.c.length),bG(e.c[0],10))),(IYn(),QKe))))?xxn(e,this.d,this):(dZ(),g$(e,this.d));lM(yK(lIn(VQ((b3(0,e.c.length),bG(e.c[0],10))),QKe)))||Bon(this.e,e)}};var aGe=YW(E9n,"ModelOrderBarycenterHeuristic",669);wDn(1866,1,l2n,iv);lce.Ne=function n(e,t){return COn(this.a,bG(e,10),bG(t,10))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var cGe=YW(E9n,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866);wDn(1423,1,k9n,ml);lce.rg=function n(e){var t;return bG(e,36),t=hN(uGe),xq(t,(bIn(),aTe),(YYn(),ZPe)),t};lce.Kf=function n(e,t){IY((bG(e,36),t))};var uGe;var sGe=YW(E9n,"NoCrossingMinimizer",1423);wDn(809,413,T9n,oj);lce.tg=function n(e,t,r){var i,a,c,u,s,o,f,h,l,b,w;l=this.g;switch(r.g){case 1:{a=0;c=0;for(h=new nd(e.j);h.a1&&(a.j==(UQn(),$8e)?this.b[e]=true:a.j==n9e&&e>0&&(this.b[e-1]=true))};lce.f=0;var hGe=YW(S6n,"AllCrossingsCounter",1861);wDn(595,1,{},_un);lce.b=0;lce.d=0;var lGe=YW(S6n,"BinaryIndexedTree",595);wDn(532,1,{},H_);var bGe,wGe;var dGe=YW(S6n,"CrossingsCounter",532);wDn(1950,1,l2n,av);lce.Ne=function n(e,t){return mX(this.a,bG(e,12),bG(t,12))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var gGe=YW(S6n,"CrossingsCounter/lambda$0$Type",1950);wDn(1951,1,l2n,cv);lce.Ne=function n(e,t){return kX(this.a,bG(e,12),bG(t,12))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var vGe=YW(S6n,"CrossingsCounter/lambda$1$Type",1951);wDn(1952,1,l2n,uv);lce.Ne=function n(e,t){return yX(this.a,bG(e,12),bG(t,12))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var pGe=YW(S6n,"CrossingsCounter/lambda$2$Type",1952);wDn(1953,1,l2n,sv);lce.Ne=function n(e,t){return MX(this.a,bG(e,12),bG(t,12))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var mGe=YW(S6n,"CrossingsCounter/lambda$3$Type",1953);wDn(1954,1,WZn,ov);lce.Cd=function n(e){ftn(this.a,bG(e,12))};var kGe=YW(S6n,"CrossingsCounter/lambda$4$Type",1954);wDn(1955,1,k1n,fv);lce.Mb=function n(e){return KI(this.a,bG(e,12))};var yGe=YW(S6n,"CrossingsCounter/lambda$5$Type",1955);wDn(1956,1,WZn,hv);lce.Cd=function n(e){PA(this,e)};var MGe=YW(S6n,"CrossingsCounter/lambda$6$Type",1956);wDn(1957,1,WZn,OI);lce.Cd=function n(e){var t;LU();x6(this.b,(t=this.a,bG(e,12),t))};var TGe=YW(S6n,"CrossingsCounter/lambda$7$Type",1957);wDn(839,1,O2n,Ka);lce.Lb=function n(e){return LU(),jR(bG(e,12),(WYn(),NDe))};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return LU(),jR(bG(e,12),(WYn(),NDe))};var jGe=YW(S6n,"CrossingsCounter/lambda$8$Type",839);wDn(1949,1,{},lv);var EGe=YW(S6n,"HyperedgeCrossingsCounter",1949);wDn(478,1,{34:1,478:1},XF);lce.Fd=function n(e){return qmn(this,bG(e,478))};lce.b=0;lce.c=0;lce.e=0;lce.f=0;var SGe=YW(S6n,"HyperedgeCrossingsCounter/Hyperedge",478);wDn(374,1,{34:1,374:1},pY);lce.Fd=function n(e){return uxn(this,bG(e,374))};lce.b=0;lce.c=0;var PGe=YW(S6n,"HyperedgeCrossingsCounter/HyperedgeCorner",374);wDn(531,22,{3:1,34:1,22:1,531:1},AI);var CGe,IGe;var OGe=qan(S6n,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,joe,y1,LH);var AGe;wDn(1425,1,k9n,kl);lce.rg=function n(e){return bG(lIn(bG(e,36),(WYn(),oDe)),21).Hc((o_n(),M$e))?LGe:null};lce.Kf=function n(e,t){VEn(this,bG(e,36),t)};var LGe;var NGe=YW(S9n,"InteractiveNodePlacer",1425);wDn(1426,1,k9n,yl);lce.rg=function n(e){return bG(lIn(bG(e,36),(WYn(),oDe)),21).Hc((o_n(),M$e))?$Ge:null};lce.Kf=function n(e,t){JMn(this,bG(e,36),t)};var $Ge,DGe,xGe;var RGe=YW(S9n,"LinearSegmentsNodePlacer",1426);wDn(261,1,{34:1,261:1},Ck);lce.Fd=function n(e){return NT(this,bG(e,261))};lce.Fb=function n(e){var t;if(G$(e,261)){t=bG(e,261);return this.b==t.b}return false};lce.Hb=function n(){return this.b};lce.Ib=function n(){return"ls"+jIn(this.e)};lce.a=0;lce.b=0;lce.c=-1;lce.d=-1;lce.g=0;var KGe=YW(S9n,"LinearSegmentsNodePlacer/LinearSegment",261);wDn(1428,1,k9n,sV);lce.rg=function n(e){return bG(lIn(bG(e,36),(WYn(),oDe)),21).Hc((o_n(),M$e))?FGe:null};lce.Kf=function n(e,t){nYn(this,bG(e,36),t)};lce.b=0;lce.g=0;var FGe;var _Ge=YW(S9n,"NetworkSimplexPlacer",1428);wDn(1447,1,l2n,Fa);lce.Ne=function n(e,t){return k$(bG(e,17).a,bG(t,17).a)};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var BGe=YW(S9n,"NetworkSimplexPlacer/0methodref$compare$Type",1447);wDn(1449,1,l2n,_a);lce.Ne=function n(e,t){return k$(bG(e,17).a,bG(t,17).a)};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var HGe=YW(S9n,"NetworkSimplexPlacer/1methodref$compare$Type",1449);wDn(655,1,{655:1},LI);var UGe=YW(S9n,"NetworkSimplexPlacer/EdgeRep",655);wDn(412,1,{412:1},mY);lce.b=false;var GGe=YW(S9n,"NetworkSimplexPlacer/NodeRep",412);wDn(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},Nk);var qGe=YW(S9n,"NetworkSimplexPlacer/Path",515);wDn(1429,1,{},Ba);lce.Kb=function n(e){return bG(e,18).d.i.k};var XGe=YW(S9n,"NetworkSimplexPlacer/Path/lambda$0$Type",1429);wDn(1430,1,k1n,Ha);lce.Mb=function n(e){return bG(e,273)==(YIn(),tEe)};var VGe=YW(S9n,"NetworkSimplexPlacer/Path/lambda$1$Type",1430);wDn(1431,1,{},Ua);lce.Kb=function n(e){return bG(e,18).d.i};var zGe=YW(S9n,"NetworkSimplexPlacer/Path/lambda$2$Type",1431);wDn(1432,1,k1n,bv);lce.Mb=function n(e){return YK($pn(bG(e,10)))};var WGe=YW(S9n,"NetworkSimplexPlacer/Path/lambda$3$Type",1432);wDn(1433,1,k1n,Ga);lce.Mb=function n(e){return Tq(bG(e,12))};var QGe=YW(S9n,"NetworkSimplexPlacer/lambda$0$Type",1433);wDn(1434,1,WZn,NI);lce.Cd=function n(e){P$(this.a,this.b,bG(e,12))};var JGe=YW(S9n,"NetworkSimplexPlacer/lambda$1$Type",1434);wDn(1443,1,WZn,wv);lce.Cd=function n(e){GLn(this.a,bG(e,18))};var YGe=YW(S9n,"NetworkSimplexPlacer/lambda$10$Type",1443);wDn(1444,1,{},qa);lce.Kb=function n(e){return a2(),new gX(null,new d3(bG(e,30).a,16))};var ZGe=YW(S9n,"NetworkSimplexPlacer/lambda$11$Type",1444);wDn(1445,1,WZn,dv);lce.Cd=function n(e){__n(this.a,bG(e,10))};var nqe=YW(S9n,"NetworkSimplexPlacer/lambda$12$Type",1445);wDn(1446,1,{},Xa);lce.Kb=function n(e){return a2(),Bwn(bG(e,125).e)};var eqe=YW(S9n,"NetworkSimplexPlacer/lambda$13$Type",1446);wDn(1448,1,{},Va);lce.Kb=function n(e){return a2(),Bwn(bG(e,125).e)};var tqe=YW(S9n,"NetworkSimplexPlacer/lambda$15$Type",1448);wDn(1450,1,k1n,za);lce.Mb=function n(e){return a2(),bG(e,412).c.k==(YIn(),rEe)};var rqe=YW(S9n,"NetworkSimplexPlacer/lambda$17$Type",1450);wDn(1451,1,k1n,Wa);lce.Mb=function n(e){return a2(),bG(e,412).c.j.c.length>1};var iqe=YW(S9n,"NetworkSimplexPlacer/lambda$18$Type",1451);wDn(1452,1,WZn,kY);lce.Cd=function n(e){_vn(this.c,this.b,this.d,this.a,bG(e,412))};lce.c=0;lce.d=0;var aqe=YW(S9n,"NetworkSimplexPlacer/lambda$19$Type",1452);wDn(1435,1,{},Qa);lce.Kb=function n(e){return a2(),new gX(null,new d3(bG(e,30).a,16))};var cqe=YW(S9n,"NetworkSimplexPlacer/lambda$2$Type",1435);wDn(1453,1,WZn,gv);lce.Cd=function n(e){I$(this.a,bG(e,12))};lce.a=0;var uqe=YW(S9n,"NetworkSimplexPlacer/lambda$20$Type",1453);wDn(1454,1,{},Ja);lce.Kb=function n(e){return a2(),new gX(null,new d3(bG(e,30).a,16))};var sqe=YW(S9n,"NetworkSimplexPlacer/lambda$21$Type",1454);wDn(1455,1,WZn,vv);lce.Cd=function n(e){bD(this.a,bG(e,10))};var oqe=YW(S9n,"NetworkSimplexPlacer/lambda$22$Type",1455);wDn(1456,1,k1n,Ya);lce.Mb=function n(e){return YK(e)};var fqe=YW(S9n,"NetworkSimplexPlacer/lambda$23$Type",1456);wDn(1457,1,{},Za);lce.Kb=function n(e){return a2(),new gX(null,new d3(bG(e,30).a,16))};var hqe=YW(S9n,"NetworkSimplexPlacer/lambda$24$Type",1457);wDn(1458,1,k1n,pv);lce.Mb=function n(e){return HL(this.a,bG(e,10))};var lqe=YW(S9n,"NetworkSimplexPlacer/lambda$25$Type",1458);wDn(1459,1,WZn,$I);lce.Cd=function n(e){FOn(this.a,this.b,bG(e,10))};var bqe=YW(S9n,"NetworkSimplexPlacer/lambda$26$Type",1459);wDn(1460,1,k1n,nc);lce.Mb=function n(e){return a2(),!j9(bG(e,18))};var wqe=YW(S9n,"NetworkSimplexPlacer/lambda$27$Type",1460);wDn(1461,1,k1n,ec);lce.Mb=function n(e){return a2(),!j9(bG(e,18))};var dqe=YW(S9n,"NetworkSimplexPlacer/lambda$28$Type",1461);wDn(1462,1,{},mv);lce.Ve=function n(e,t){return C$(this.a,bG(e,30),bG(t,30))};var gqe=YW(S9n,"NetworkSimplexPlacer/lambda$29$Type",1462);wDn(1436,1,{},tc);lce.Kb=function n(e){return a2(),new gX(null,new RW(new GV(sx(Jgn(bG(e,10)).a.Kc(),new d))))};var vqe=YW(S9n,"NetworkSimplexPlacer/lambda$3$Type",1436);wDn(1437,1,k1n,rc);lce.Mb=function n(e){return a2(),d6(bG(e,18))};var pqe=YW(S9n,"NetworkSimplexPlacer/lambda$4$Type",1437);wDn(1438,1,WZn,kv);lce.Cd=function n(e){jqn(this.a,bG(e,18))};var mqe=YW(S9n,"NetworkSimplexPlacer/lambda$5$Type",1438);wDn(1439,1,{},ic);lce.Kb=function n(e){return a2(),new gX(null,new d3(bG(e,30).a,16))};var kqe=YW(S9n,"NetworkSimplexPlacer/lambda$6$Type",1439);wDn(1440,1,k1n,ac);lce.Mb=function n(e){return a2(),bG(e,10).k==(YIn(),rEe)};var yqe=YW(S9n,"NetworkSimplexPlacer/lambda$7$Type",1440);wDn(1441,1,{},cc);lce.Kb=function n(e){return a2(),new gX(null,new RW(new GV(sx(Wgn(bG(e,10)).a.Kc(),new d))))};var Mqe=YW(S9n,"NetworkSimplexPlacer/lambda$8$Type",1441);wDn(1442,1,k1n,uc);lce.Mb=function n(e){return a2(),Mq(bG(e,18))};var Tqe=YW(S9n,"NetworkSimplexPlacer/lambda$9$Type",1442);wDn(1424,1,k9n,Ml);lce.rg=function n(e){return bG(lIn(bG(e,36),(WYn(),oDe)),21).Hc((o_n(),M$e))?jqe:null};lce.Kf=function n(e,t){HXn(bG(e,36),t)};var jqe;var Eqe=YW(S9n,"SimpleNodePlacer",1424);wDn(185,1,{185:1},ZHn);lce.Ib=function n(){var e;e="";this.c==(p0(),Cqe)?e+=V2n:this.c==Pqe&&(e+=X2n);this.o==(m0(),Aqe)?e+=i3n:this.o==Lqe?e+="UP":e+="BALANCED";return e};var Sqe=YW(I9n,"BKAlignedLayout",185);wDn(523,22,{3:1,34:1,22:1,523:1},DI);var Pqe,Cqe;var Iqe=qan(I9n,"BKAlignedLayout/HDirection",523,joe,T1,NH);var Oqe;wDn(522,22,{3:1,34:1,22:1,522:1},xI);var Aqe,Lqe;var Nqe=qan(I9n,"BKAlignedLayout/VDirection",522,joe,j1,$H);var $qe;wDn(1699,1,{},RI);var Dqe=YW(I9n,"BKAligner",1699);wDn(1702,1,{},Bjn);var xqe=YW(I9n,"BKCompactor",1702);wDn(663,1,{663:1},sc);lce.a=0;var Rqe=YW(I9n,"BKCompactor/ClassEdge",663);wDn(467,1,{467:1},Ok);lce.a=null;lce.b=0;var Kqe=YW(I9n,"BKCompactor/ClassNode",467);wDn(1427,1,k9n,GI);lce.rg=function n(e){return bG(lIn(bG(e,36),(WYn(),oDe)),21).Hc((o_n(),M$e))?Fqe:null};lce.Kf=function n(e,t){FYn(this,bG(e,36),t)};lce.d=false;var Fqe;var _qe=YW(I9n,"BKNodePlacer",1427);wDn(1700,1,{},oc);lce.d=0;var Bqe=YW(I9n,"NeighborhoodInformation",1700);wDn(1701,1,l2n,yv);lce.Ne=function n(e,t){return jin(this,bG(e,42),bG(t,42))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Hqe=YW(I9n,"NeighborhoodInformation/NeighborComparator",1701);wDn(823,1,{});var Uqe=YW(I9n,"ThresholdStrategy",823);wDn(1825,823,{},Ak);lce.wg=function n(e,t,r){return this.a.o==(m0(),Lqe)?y0n:M0n};lce.xg=function n(){};var Gqe=YW(I9n,"ThresholdStrategy/NullThresholdStrategy",1825);wDn(587,1,{587:1},qI);lce.c=false;lce.d=false;var qqe=YW(I9n,"ThresholdStrategy/Postprocessable",587);wDn(1826,823,{},Lk);lce.wg=function n(e,t,r){var i,a,c;a=t==r;i=this.a.a[r.p]==t;if(!(a||i)){return e}c=e;if(this.a.c==(p0(),Cqe)){a&&(c=GXn(this,t,true));!isNaN(c)&&!isFinite(c)&&i&&(c=GXn(this,r,false))}else{a&&(c=GXn(this,t,true));!isNaN(c)&&!isFinite(c)&&i&&(c=GXn(this,r,false))}return c};lce.xg=function n(){var e,t,r,i,a;while(this.d.b!=0){a=bG(V1(this.d),587);i=mGn(this,a);if(!i.a){continue}e=i.a;r=lM(this.a.f[this.a.g[a.b.p].p]);if(!r&&!j9(e)&&e.c.i.c==e.d.i.c){continue}t=sxn(this,a);t||ZL(this.e,a)}while(this.e.a.c.length!=0){sxn(this,bG(lbn(this.e),587))}};var Xqe=YW(I9n,"ThresholdStrategy/SimpleThresholdStrategy",1826);wDn(645,1,{645:1,188:1,196:1},fc);lce.dg=function n(){return Gon(this)};lce.qg=function n(){return Gon(this)};var Vqe;var zqe=YW(O9n,"EdgeRouterFactory",645);wDn(1485,1,k9n,Tl);lce.rg=function n(e){return HFn(bG(e,36))};lce.Kf=function n(e,t){nVn(bG(e,36),t)};var Wqe,Qqe,Jqe,Yqe,Zqe,nXe,eXe,tXe;var rXe=YW(O9n,"OrthogonalEdgeRouter",1485);wDn(1478,1,k9n,UI);lce.rg=function n(e){return lSn(bG(e,36))};lce.Kf=function n(e,t){JQn(this,bG(e,36),t)};var iXe,aXe,cXe,uXe,sXe,oXe;var fXe=YW(O9n,"PolylineEdgeRouter",1478);wDn(1479,1,O2n,lc);lce.Lb=function n(e){return wfn(bG(e,10))};lce.Fb=function n(e){return this===e};lce.Mb=function n(e){return wfn(bG(e,10))};var hXe=YW(O9n,"PolylineEdgeRouter/1",1479);wDn(1872,1,k1n,bc);lce.Mb=function n(e){return bG(e,132).c==(q7(),kXe)};var lXe=YW(A9n,"HyperEdgeCycleDetector/lambda$0$Type",1872);wDn(1873,1,{},wc);lce.Ze=function n(e){return bG(e,132).d};var bXe=YW(A9n,"HyperEdgeCycleDetector/lambda$1$Type",1873);wDn(1874,1,k1n,dc);lce.Mb=function n(e){return bG(e,132).c==(q7(),kXe)};var wXe=YW(A9n,"HyperEdgeCycleDetector/lambda$2$Type",1874);wDn(1875,1,{},gc);lce.Ze=function n(e){return bG(e,132).d};var dXe=YW(A9n,"HyperEdgeCycleDetector/lambda$3$Type",1875);wDn(1876,1,{},vc);lce.Ze=function n(e){return bG(e,132).d};var gXe=YW(A9n,"HyperEdgeCycleDetector/lambda$4$Type",1876);wDn(1877,1,{},hc);lce.Ze=function n(e){return bG(e,132).d};var vXe=YW(A9n,"HyperEdgeCycleDetector/lambda$5$Type",1877);wDn(118,1,{34:1,118:1},afn);lce.Fd=function n(e){return $T(this,bG(e,118))};lce.Fb=function n(e){var t;if(G$(e,118)){t=bG(e,118);return this.g==t.g}return false};lce.Hb=function n(){return this.g};lce.Ib=function n(){var e,t,r,i;e=new vx("{");i=new nd(this.n);while(i.a"+this.b+" ("+SR(this.c)+")"};lce.d=0;var mXe=YW(A9n,"HyperEdgeSegmentDependency",132);wDn(528,22,{3:1,34:1,22:1,528:1},QI);var kXe,yXe;var MXe=qan(A9n,"HyperEdgeSegmentDependency/DependencyType",528,joe,E1,DH);var TXe;wDn(1878,1,{},Mv);var jXe=YW(A9n,"HyperEdgeSegmentSplitter",1878);wDn(1879,1,{},dj);lce.a=0;lce.b=0;var EXe=YW(A9n,"HyperEdgeSegmentSplitter/AreaRating",1879);wDn(339,1,{339:1},DU);lce.a=0;lce.b=0;lce.c=0;var SXe=YW(A9n,"HyperEdgeSegmentSplitter/FreeArea",339);wDn(1880,1,l2n,pc);lce.Ne=function n(e,t){return N_(bG(e,118),bG(t,118))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var PXe=YW(A9n,"HyperEdgeSegmentSplitter/lambda$0$Type",1880);wDn(1881,1,WZn,MY);lce.Cd=function n(e){$5(this.a,this.d,this.c,this.b,bG(e,118))};lce.b=0;var CXe=YW(A9n,"HyperEdgeSegmentSplitter/lambda$1$Type",1881);wDn(1882,1,{},mc);lce.Kb=function n(e){return new gX(null,new d3(bG(e,118).e,16))};var IXe=YW(A9n,"HyperEdgeSegmentSplitter/lambda$2$Type",1882);wDn(1883,1,{},kc);lce.Kb=function n(e){return new gX(null,new d3(bG(e,118).j,16))};var OXe=YW(A9n,"HyperEdgeSegmentSplitter/lambda$3$Type",1883);wDn(1884,1,{},yc);lce.Ye=function n(e){return bM(MK(e))};var AXe=YW(A9n,"HyperEdgeSegmentSplitter/lambda$4$Type",1884);wDn(664,1,{},KW);lce.a=0;lce.b=0;lce.c=0;var LXe=YW(A9n,"OrthogonalRoutingGenerator",664);wDn(1703,1,{},Mc);lce.Kb=function n(e){return new gX(null,new d3(bG(e,118).e,16))};var NXe=YW(A9n,"OrthogonalRoutingGenerator/lambda$0$Type",1703);wDn(1704,1,{},Tc);lce.Kb=function n(e){return new gX(null,new d3(bG(e,118).j,16))};var $Xe=YW(A9n,"OrthogonalRoutingGenerator/lambda$1$Type",1704);wDn(670,1,{});var DXe=YW(L9n,"BaseRoutingDirectionStrategy",670);wDn(1870,670,{},Hk);lce.yg=function n(e,r,i){var a,c,u,s,o,f,h,l,b,w,d,g,v;if(!!e.r&&!e.q){return}l=r+e.o*i;for(h=new nd(e.n);h.an4n){u=l;c=e;a=new PO(b,u);hq(s.a,a);ZUn(this,s,c,a,false);w=e.r;if(w){d=bM(MK(dyn(w.e,0)));a=new PO(d,u);hq(s.a,a);ZUn(this,s,c,a,false);u=r+w.o*i;c=w;a=new PO(d,u);hq(s.a,a);ZUn(this,s,c,a,false)}a=new PO(v,u);hq(s.a,a);ZUn(this,s,c,a,false)}}}}};lce.zg=function n(e){return e.i.n.a+e.n.a+e.a.a};lce.Ag=function n(){return UQn(),Y8e};lce.Bg=function n(){return UQn(),D8e};var xXe=YW(L9n,"NorthToSouthRoutingStrategy",1870);wDn(1871,670,{},Uk);lce.yg=function n(e,r,i){var a,c,u,s,o,f,h,l,b,w,d,g,v;if(!!e.r&&!e.q){return}l=r-e.o*i;for(h=new nd(e.n);h.an4n){u=l;c=e;a=new PO(b,u);hq(s.a,a);ZUn(this,s,c,a,false);w=e.r;if(w){d=bM(MK(dyn(w.e,0)));a=new PO(d,u);hq(s.a,a);ZUn(this,s,c,a,false);u=r-w.o*i;c=w;a=new PO(d,u);hq(s.a,a);ZUn(this,s,c,a,false)}a=new PO(v,u);hq(s.a,a);ZUn(this,s,c,a,false)}}}}};lce.zg=function n(e){return e.i.n.a+e.n.a+e.a.a};lce.Ag=function n(){return UQn(),D8e};lce.Bg=function n(){return UQn(),Y8e};var RXe=YW(L9n,"SouthToNorthRoutingStrategy",1871);wDn(1869,670,{},Gk);lce.yg=function n(e,r,i){var a,c,u,s,o,f,h,l,b,w,d,g,v;if(!!e.r&&!e.q){return}l=r+e.o*i;for(h=new nd(e.n);h.an4n){u=l;c=e;a=new PO(u,b);hq(s.a,a);ZUn(this,s,c,a,true);w=e.r;if(w){d=bM(MK(dyn(w.e,0)));a=new PO(u,d);hq(s.a,a);ZUn(this,s,c,a,true);u=r+w.o*i;c=w;a=new PO(u,d);hq(s.a,a);ZUn(this,s,c,a,true)}a=new PO(u,v);hq(s.a,a);ZUn(this,s,c,a,true)}}}}};lce.zg=function n(e){return e.i.n.b+e.n.b+e.a.b};lce.Ag=function n(){return UQn(),$8e};lce.Bg=function n(){return UQn(),n9e};var KXe=YW(L9n,"WestToEastRoutingStrategy",1869);wDn(828,1,{},Iqn);lce.Ib=function n(){return jIn(this.a)};lce.b=0;lce.c=false;lce.d=false;lce.f=0;var FXe=YW($9n,"NubSpline",828);wDn(418,1,{418:1},MFn,H1);var _Xe=YW($9n,"NubSpline/PolarCP",418);wDn(1480,1,k9n,YTn);lce.rg=function n(e){return VPn(bG(e,36))};lce.Kf=function n(e,t){OJn(this,bG(e,36),t)};var BXe,HXe,UXe,GXe,qXe;var XXe=YW($9n,"SplineEdgeRouter",1480);wDn(274,1,{274:1},D7);lce.Ib=function n(){return this.a+" ->("+this.c+") "+this.b};lce.c=0;var VXe=YW($9n,"SplineEdgeRouter/Dependency",274);wDn(465,22,{3:1,34:1,22:1,465:1},JI);var zXe,WXe;var QXe=qan($9n,"SplineEdgeRouter/SideToProcess",465,joe,A1,xH);var JXe;wDn(1481,1,k1n,jc);lce.Mb=function n(e){return bFn(),!bG(e,131).o};var YXe=YW($9n,"SplineEdgeRouter/lambda$0$Type",1481);wDn(1482,1,{},Ec);lce.Ze=function n(e){return bFn(),bG(e,131).v+1};var ZXe=YW($9n,"SplineEdgeRouter/lambda$1$Type",1482);wDn(1483,1,WZn,XI);lce.Cd=function n(e){Sq(this.a,this.b,bG(e,42))};var nVe=YW($9n,"SplineEdgeRouter/lambda$2$Type",1483);wDn(1484,1,WZn,VI);lce.Cd=function n(e){Pq(this.a,this.b,bG(e,42))};var eVe=YW($9n,"SplineEdgeRouter/lambda$3$Type",1484);wDn(131,1,{34:1,131:1},zAn,$Vn);lce.Fd=function n(e){return KT(this,bG(e,131))};lce.b=0;lce.e=false;lce.f=0;lce.g=0;lce.j=false;lce.k=false;lce.n=0;lce.o=false;lce.p=false;lce.q=false;lce.s=0;lce.u=0;lce.v=0;lce.F=0;var tVe=YW($9n,"SplineSegment",131);wDn(468,1,{468:1},Sc);lce.a=0;lce.b=false;lce.c=false;lce.d=false;lce.e=false;lce.f=0;var rVe=YW($9n,"SplineSegment/EdgeInformation",468);wDn(1198,1,{},Pc);var iVe=YW(F9n,G3n,1198);wDn(1199,1,l2n,Cc);lce.Ne=function n(e,t){return SNn(bG(e,121),bG(t,121))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var aVe=YW(F9n,q3n,1199);wDn(1197,1,{},Wj);var cVe=YW(F9n,"MrTree",1197);wDn(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},YI);lce.dg=function n(){return CNn(this)};lce.qg=function n(){return CNn(this)};var uVe,sVe,oVe,fVe;var hVe=qan(F9n,"TreeLayoutPhases",405,joe,s5,RH);var lVe;wDn(1112,205,y3n,GF);lce.rf=function n(e,t){var r,i,a,c,u,s,o,f;lM(yK(YDn(e,(eqn(),EWe))))||t0((r=new Ad((jP(),new Zy(e))),r));u=t.eh(_9n);u.Ug("build tGraph",1);s=(o=new R7,Yon(o,e),Ehn(o,(DQn(),qze),e),f=new rm,IUn(e,o,f),uGn(e,o,f),o);u.Vg();u=t.eh(_9n);u.Ug("Split graph",1);c=xUn(this.a,s);u.Vg();for(a=new nd(c);a.a"+Z3(this.c):"e_"+Vun(this)};var SVe=YW(H9n,"TEdge",65);wDn(121,137,{3:1,121:1,96:1,137:1},R7);lce.Ib=function n(){var e,t,r,i,a;a=null;for(i=Gkn(this.b,0);i.b!=i.d.c;){r=bG($6(i),40);a+=(r.c==null||r.c.length==0?"n_"+r.g:"n_"+r.c)+"\n"}for(t=Gkn(this.a,0);t.b!=t.d.c;){e=bG($6(t),65);a+=(!!e.b&&!!e.c?Z3(e.b)+"->"+Z3(e.c):"e_"+Vun(e))+"\n"}return a};var PVe=YW(H9n,"TGraph",121);wDn(643,508,{3:1,508:1,643:1,96:1,137:1});var CVe=YW(H9n,"TShape",643);wDn(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},mln);lce.Ib=function n(){return Z3(this)};var IVe=YW(H9n,"TNode",40);wDn(236,1,n1n,Pv);lce.Jc=function n(e){Y8(this,e)};lce.Kc=function n(){var e;return e=Gkn(this.a.d,0),new Cv(e)};var OVe=YW(H9n,"TNode/2",236);wDn(329,1,NZn,Cv);lce.Nb=function n(e){Az(this,e)};lce.Pb=function n(){return bG($6(this.a),65).c};lce.Ob=function n(){return tE(this.a)};lce.Qb=function n(){Sin(this.a)};var AVe=YW(H9n,"TNode/2/1",329);wDn(1923,1,W4n,Dc);lce.Kf=function n(e,t){AYn(this,bG(e,121),t)};var LVe=YW(G9n,"CompactionProcessor",1923);wDn(1924,1,l2n,Iv);lce.Ne=function n(e,t){return Eon(this.a,bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var NVe=YW(G9n,"CompactionProcessor/lambda$0$Type",1924);wDn(1925,1,k1n,WI);lce.Mb=function n(e){return BZ(this.b,this.a,bG(e,42))};lce.a=0;lce.b=0;var $Ve=YW(G9n,"CompactionProcessor/lambda$1$Type",1925);wDn(1934,1,l2n,xc);lce.Ne=function n(e,t){return jW(bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var DVe=YW(G9n,"CompactionProcessor/lambda$10$Type",1934);wDn(1935,1,l2n,Rc);lce.Ne=function n(e,t){return Ux(bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var xVe=YW(G9n,"CompactionProcessor/lambda$11$Type",1935);wDn(1936,1,l2n,Kc);lce.Ne=function n(e,t){return EW(bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var RVe=YW(G9n,"CompactionProcessor/lambda$12$Type",1936);wDn(1926,1,k1n,Ov);lce.Mb=function n(e){return dD(this.a,bG(e,42))};lce.a=0;var KVe=YW(G9n,"CompactionProcessor/lambda$2$Type",1926);wDn(1927,1,k1n,Av);lce.Mb=function n(e){return gD(this.a,bG(e,42))};lce.a=0;var FVe=YW(G9n,"CompactionProcessor/lambda$3$Type",1927);wDn(1928,1,k1n,Fc);lce.Mb=function n(e){return bG(e,40).c.indexOf(B9n)==-1};var _Ve=YW(G9n,"CompactionProcessor/lambda$4$Type",1928);wDn(1929,1,{},Lv);lce.Kb=function n(e){return h6(this.a,bG(e,40))};lce.a=0;var BVe=YW(G9n,"CompactionProcessor/lambda$5$Type",1929);wDn(1930,1,{},Nv);lce.Kb=function n(e){return otn(this.a,bG(e,40))};lce.a=0;var HVe=YW(G9n,"CompactionProcessor/lambda$6$Type",1930);wDn(1931,1,l2n,$v);lce.Ne=function n(e,t){return W9(this.a,bG(e,240),bG(t,240))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var UVe=YW(G9n,"CompactionProcessor/lambda$7$Type",1931);wDn(1932,1,l2n,Dv);lce.Ne=function n(e,t){return Q9(this.a,bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var GVe=YW(G9n,"CompactionProcessor/lambda$8$Type",1932);wDn(1933,1,l2n,_c);lce.Ne=function n(e,t){return Gx(bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var qVe=YW(G9n,"CompactionProcessor/lambda$9$Type",1933);wDn(1921,1,W4n,Bc);lce.Kf=function n(e,t){fBn(bG(e,121),t)};var XVe=YW(G9n,"DirectionProcessor",1921);wDn(1913,1,W4n,UF);lce.Kf=function n(e,t){tGn(this,bG(e,121),t)};var VVe=YW(G9n,"FanProcessor",1913);wDn(1937,1,W4n,Hc);lce.Kf=function n(e,t){K_n(bG(e,121),t)};var zVe=YW(G9n,"GraphBoundsProcessor",1937);wDn(1938,1,{},Uc);lce.Ye=function n(e){return bG(e,40).e.a};var WVe=YW(G9n,"GraphBoundsProcessor/lambda$0$Type",1938);wDn(1939,1,{},Gc);lce.Ye=function n(e){return bG(e,40).e.b};var QVe=YW(G9n,"GraphBoundsProcessor/lambda$1$Type",1939);wDn(1940,1,{},qc);lce.Ye=function n(e){return vP(bG(e,40))};var JVe=YW(G9n,"GraphBoundsProcessor/lambda$2$Type",1940);wDn(1941,1,{},Xc);lce.Ye=function n(e){return gP(bG(e,40))};var YVe=YW(G9n,"GraphBoundsProcessor/lambda$3$Type",1941);wDn(262,22,{3:1,34:1,22:1,262:1,196:1},ZI);lce.dg=function n(){switch(this.g){case 0:return new wy;case 1:return new UF;case 2:return new by;case 3:return new Jc;case 4:return new zc;case 8:return new Vc;case 5:return new Bc;case 6:return new Zc;case 7:return new Dc;case 9:return new Hc;case 10:return new nu;default:throw dm(new jM(p6n+(this.f!=null?this.f:""+this.g)))}};var ZVe,nze,eze,tze,rze,ize,aze,cze,uze,sze,oze;var fze=qan(G9n,m6n,262,joe,bon,KH);var hze;wDn(1920,1,W4n,Vc);lce.Kf=function n(e,t){BQn(bG(e,121),t)};var lze=YW(G9n,"LevelCoordinatesProcessor",1920);wDn(1918,1,W4n,zc);lce.Kf=function n(e,t){iKn(this,bG(e,121),t)};lce.a=0;var bze=YW(G9n,"LevelHeightProcessor",1918);wDn(1919,1,n1n,Wc);lce.Jc=function n(e){Y8(this,e)};lce.Kc=function n(){return dZ(),mS(),gbe};var wze=YW(G9n,"LevelHeightProcessor/1",1919);wDn(1914,1,W4n,by);lce.Kf=function n(e,t){y_n(this,bG(e,121),t)};var dze=YW(G9n,"LevelProcessor",1914);wDn(1915,1,k1n,Qc);lce.Mb=function n(e){return lM(yK(lIn(bG(e,40),(DQn(),Jze))))};var gze=YW(G9n,"LevelProcessor/lambda$0$Type",1915);wDn(1916,1,W4n,Jc);lce.Kf=function n(e,t){_An(this,bG(e,121),t)};lce.a=0;var vze=YW(G9n,"NeighborsProcessor",1916);wDn(1917,1,n1n,Yc);lce.Jc=function n(e){Y8(this,e)};lce.Kc=function n(){return dZ(),mS(),gbe};var pze=YW(G9n,"NeighborsProcessor/1",1917);wDn(1922,1,W4n,Zc);lce.Kf=function n(e,t){eGn(this,bG(e,121),t)};lce.a=0;var mze=YW(G9n,"NodePositionProcessor",1922);wDn(1912,1,W4n,wy);lce.Kf=function n(e,t){OVn(this,bG(e,121),t)};var kze=YW(G9n,"RootProcessor",1912);wDn(1942,1,W4n,nu);lce.Kf=function n(e,t){nMn(bG(e,121),t)};var yze=YW(G9n,"Untreeifyer",1942);wDn(392,22,{3:1,34:1,22:1,392:1},nO);var Mze,Tze,jze;var Eze=qan(z9n,"EdgeRoutingMode",392,joe,c3,FH);var Sze;var Pze,Cze,Ize,Oze,Aze,Lze,Nze,$ze,Dze,xze,Rze,Kze,Fze,_ze,Bze,Hze,Uze,Gze,qze,Xze,Vze,zze,Wze,Qze,Jze,Yze,Zze;wDn(862,1,R2n,jl);lce.hf=function n(e){ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Q9n),""),r7n),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(Qx(),false)),(vAn(),M3e)),Uhe),ygn((Hkn(),p3e)))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,J9n),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Y9n),""),"Tree Level"),"The index for the tree level the node is in"),Bwn(0)),S3e),tle),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Z9n),""),r7n),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),Bwn(-1)),S3e),tle),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,n7n),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),oWe),j3e),zWe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,e7n),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),rWe),j3e),Eze),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,t7n),""),"Search Order"),"Which search order to use when computing a spanning tree."),cWe),j3e),YWe),ygn(p3e))));SJn((new Pl,e))};var nWe,eWe,tWe,rWe,iWe,aWe,cWe,uWe,sWe,oWe;var fWe=YW(z9n,"MrTreeMetaDataProvider",862);wDn(1006,1,R2n,Pl);lce.hf=function n(e){SJn(e)};var hWe,lWe,bWe,wWe,dWe,gWe,vWe,pWe,mWe,kWe,yWe,MWe,TWe,jWe,EWe,SWe,PWe,CWe,IWe,OWe,AWe,LWe,NWe,$We,DWe,xWe,RWe,KWe,FWe,_We,BWe;var HWe=YW(z9n,"MrTreeOptions",1006);wDn(1007,1,{},eu);lce.sf=function n(){var e;return e=new GF,e};lce.tf=function n(e){};var UWe=YW(z9n,"MrTreeOptions/MrtreeFactory",1007);wDn(353,22,{3:1,34:1,22:1,353:1},eO);var GWe,qWe,XWe,VWe;var zWe=qan(z9n,"OrderWeighting",353,joe,o5,_H);var WWe;wDn(433,22,{3:1,34:1,22:1,433:1},tO);var QWe,JWe;var YWe=qan(z9n,"TreeifyingOrder",433,joe,I1,BH);var ZWe;wDn(1486,1,k9n,Cl);lce.rg=function n(e){return bG(e,121),nQe};lce.Kf=function n(e,t){Fsn(this,bG(e,121),t)};var nQe;var eQe=YW("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486);wDn(1487,1,k9n,Il);lce.rg=function n(e){return bG(e,121),tQe};lce.Kf=function n(e,t){O_n(this,bG(e,121),t)};var tQe;var rQe=YW(u7n,"NodeOrderer",1487);wDn(1494,1,{},vu);lce.td=function n(e){return Kq(e)};var iQe=YW(u7n,"NodeOrderer/0methodref$lambda$6$Type",1494);wDn(1488,1,k1n,pu);lce.Mb=function n(e){return aan(),lM(yK(lIn(bG(e,40),(DQn(),Jze))))};var aQe=YW(u7n,"NodeOrderer/lambda$0$Type",1488);wDn(1489,1,k1n,mu);lce.Mb=function n(e){return aan(),bG(lIn(bG(e,40),(eqn(),IWe)),17).a<0};var cQe=YW(u7n,"NodeOrderer/lambda$1$Type",1489);wDn(1490,1,k1n,Rv);lce.Mb=function n(e){return qcn(this.a,bG(e,40))};var uQe=YW(u7n,"NodeOrderer/lambda$2$Type",1490);wDn(1491,1,k1n,xv);lce.Mb=function n(e){return g6(this.a,bG(e,40))};var sQe=YW(u7n,"NodeOrderer/lambda$3$Type",1491);wDn(1492,1,l2n,ku);lce.Ne=function n(e,t){return gin(bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var oQe=YW(u7n,"NodeOrderer/lambda$4$Type",1492);wDn(1493,1,k1n,yu);lce.Mb=function n(e){return aan(),bG(lIn(bG(e,40),(DQn(),Nze)),17).a!=0};var fQe=YW(u7n,"NodeOrderer/lambda$5$Type",1493);wDn(1495,1,k9n,Sl);lce.rg=function n(e){return bG(e,121),hQe};lce.Kf=function n(e,t){fUn(this,bG(e,121),t)};lce.b=0;var hQe;var lQe=YW("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495);wDn(1496,1,k9n,El);lce.rg=function n(e){return bG(e,121),bQe};lce.Kf=function n(e,t){yHn(bG(e,121),t)};var bQe;var wQe=YW(s7n,"EdgeRouter",1496);wDn(1498,1,l2n,gu);lce.Ne=function n(e,t){return k$(bG(e,17).a,bG(t,17).a)};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var dQe=YW(s7n,"EdgeRouter/0methodref$compare$Type",1498);wDn(1503,1,{},ru);lce.Ye=function n(e){return bM(MK(e))};var gQe=YW(s7n,"EdgeRouter/1methodref$doubleValue$Type",1503);wDn(1505,1,l2n,iu);lce.Ne=function n(e,t){return bgn(bM(MK(e)),bM(MK(t)))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var vQe=YW(s7n,"EdgeRouter/2methodref$compare$Type",1505);wDn(1507,1,l2n,au);lce.Ne=function n(e,t){return bgn(bM(MK(e)),bM(MK(t)))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var pQe=YW(s7n,"EdgeRouter/3methodref$compare$Type",1507);wDn(1509,1,{},tu);lce.Ye=function n(e){return bM(MK(e))};var mQe=YW(s7n,"EdgeRouter/4methodref$doubleValue$Type",1509);wDn(1511,1,l2n,cu);lce.Ne=function n(e,t){return bgn(bM(MK(e)),bM(MK(t)))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var kQe=YW(s7n,"EdgeRouter/5methodref$compare$Type",1511);wDn(1513,1,l2n,uu);lce.Ne=function n(e,t){return bgn(bM(MK(e)),bM(MK(t)))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var yQe=YW(s7n,"EdgeRouter/6methodref$compare$Type",1513);wDn(1497,1,{},su);lce.Kb=function n(e){return can(),bG(lIn(bG(e,40),(eqn(),_We)),17)};var MQe=YW(s7n,"EdgeRouter/lambda$0$Type",1497);wDn(1508,1,{},ou);lce.Kb=function n(e){return NR(bG(e,40))};var TQe=YW(s7n,"EdgeRouter/lambda$11$Type",1508);wDn(1510,1,{},kO);lce.Kb=function n(e){return jq(this.b,this.a,bG(e,40))};lce.a=0;lce.b=0;var jQe=YW(s7n,"EdgeRouter/lambda$13$Type",1510);wDn(1512,1,{},yO);lce.Kb=function n(e){return $R(this.b,this.a,bG(e,40))};lce.a=0;lce.b=0;var EQe=YW(s7n,"EdgeRouter/lambda$15$Type",1512);wDn(1514,1,l2n,fu);lce.Ne=function n(e,t){return Wkn(bG(e,65),bG(t,65))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var SQe=YW(s7n,"EdgeRouter/lambda$17$Type",1514);wDn(1515,1,l2n,hu);lce.Ne=function n(e,t){return Qkn(bG(e,65),bG(t,65))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var PQe=YW(s7n,"EdgeRouter/lambda$18$Type",1515);wDn(1516,1,l2n,lu);lce.Ne=function n(e,t){return Ykn(bG(e,65),bG(t,65))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var CQe=YW(s7n,"EdgeRouter/lambda$19$Type",1516);wDn(1499,1,k1n,Kv);lce.Mb=function n(e){return a0(this.a,bG(e,40))};lce.a=0;var IQe=YW(s7n,"EdgeRouter/lambda$2$Type",1499);wDn(1517,1,l2n,bu);lce.Ne=function n(e,t){return Jkn(bG(e,65),bG(t,65))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var OQe=YW(s7n,"EdgeRouter/lambda$20$Type",1517);wDn(1500,1,l2n,wu);lce.Ne=function n(e,t){return CG(bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var AQe=YW(s7n,"EdgeRouter/lambda$3$Type",1500);wDn(1501,1,l2n,du);lce.Ne=function n(e,t){return IG(bG(e,40),bG(t,40))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var LQe=YW(s7n,"EdgeRouter/lambda$4$Type",1501);wDn(1502,1,{},Mu);lce.Kb=function n(e){return DR(bG(e,40))};var NQe=YW(s7n,"EdgeRouter/lambda$5$Type",1502);wDn(1504,1,{},MO);lce.Kb=function n(e){return Eq(this.b,this.a,bG(e,40))};lce.a=0;lce.b=0;var $Qe=YW(s7n,"EdgeRouter/lambda$7$Type",1504);wDn(1506,1,{},TO);lce.Kb=function n(e){return xR(this.b,this.a,bG(e,40))};lce.a=0;lce.b=0;var DQe=YW(s7n,"EdgeRouter/lambda$9$Type",1506);wDn(675,1,{675:1},mTn);lce.e=0;lce.f=false;lce.g=false;var xQe=YW(s7n,"MultiLevelEdgeNodeNodeGap",675);wDn(1943,1,l2n,Tu);lce.Ne=function n(e,t){return v2(bG(e,240),bG(t,240))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var RQe=YW(s7n,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943);wDn(1944,1,l2n,ju);lce.Ne=function n(e,t){return p2(bG(e,240),bG(t,240))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var KQe=YW(s7n,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944);var FQe;wDn(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},rO);lce.dg=function n(){return Gvn(this)};lce.qg=function n(){return Gvn(this)};var _Qe,BQe;var HQe=qan(o7n,"RadialLayoutPhases",501,joe,M1,HH);var UQe;wDn(1113,205,y3n,zj);lce.rf=function n(e,t){var r,i,a,c,u,s;r=qKn(this,e);t.Ug("Radial layout",r.c.length);lM(yK(YDn(e,(IOn(),UJe))))||t0((i=new Ad((jP(),new Zy(e))),i));s=JPn(e);Pyn(e,(AK(),FQe),s);if(!s){throw dm(new jM("The given graph is not a tree!"))}a=bM(MK(YDn(e,zJe)));a==0&&(a=cNn(e));Pyn(e,zJe,a);for(u=new nd(qKn(this,e));u.a=3){T=bG(Yin(y,0),27);j=bG(Yin(y,1),27);u=0;while(u+2=T.f+j.f+l||j.f>=M.f+T.f+l){S=true;break}else{++u}}}else{S=true}if(!S){w=y.i;for(o=new _D(y);o.e!=o.i.gc();){s=bG(iyn(o),27);Pyn(s,(JYn(),O6e),Bwn(w));--w}JGn(e,new gy);r.Vg();return}i=(qJ(this.a),tW(this.a,(tmn(),MYe),bG(YDn(e,FZe),188)),tW(this.a,TYe,bG(YDn(e,OZe),188)),tW(this.a,jYe,bG(YDn(e,xZe),188)),iN(this.a,(C=new mJ,xq(C,MYe,(iMn(),LYe)),xq(C,TYe,AYe),lM(yK(YDn(e,mZe)))&&xq(C,MYe,OYe),C)),ezn(this.a,e));h=1/i.c.length;E=0;for(g=new nd(i);g.a0&&ewn((w3(t-1,e.length),e.charCodeAt(t-1)),i6n)){--t}if(i>=t){throw dm(new jM("The given string does not contain any numbers."))}a=nqn((Unn(i,t,e.length),e.substr(i,t-i)),",|;|\r|\n");if(a.length!=2){throw dm(new jM("Exactly two numbers are expected, "+a.length+" were found."))}try{this.a=rOn(UAn(a[0]));this.b=rOn(UAn(a[1]))}catch(c){c=Ofn(c);if(G$(c,130)){r=c;throw dm(new jM(a6n+r))}else throw dm(c)}};lce.Ib=function n(){return"("+this.a+","+this.b+")"};lce.a=0;lce.b=0;var D3e=YW(c6n,"KVector",8);wDn(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},zk,cj,zR);lce.Pc=function n(){return sbn(this)};lce.cg=function n(e){var t,r,i,a,c,u;i=nqn(e,",|;|\\(|\\)|\\[|\\]|\\{|\\}| |\t|\n");XY(this);try{r=0;c=0;a=0;u=0;while(r0){c%2==0?a=rOn(i[r]):u=rOn(i[r]);c>0&&c%2!=0&&hq(this,new PO(a,u));++c}++r}}catch(s){s=Ofn(s);if(G$(s,130)){t=s;throw dm(new jM("The given string does not match the expected format for vectors."+t))}else throw dm(s)}};lce.Ib=function n(){var e,t,r;e=new vx("(");t=Gkn(this,0);while(t.b!=t.d.c){r=bG($6(t),8);tL(e,r.a+","+r.b);t.b!=t.d.c&&(e.a+="; ",e)}return(e.a+=")",e).a};var x3e=YW(c6n,"KVectorChain",75);wDn(255,22,{3:1,34:1,22:1,255:1},CO);var R3e,K3e,F3e,_3e,B3e,H3e;var U3e=qan(Hne,"Alignment",255,joe,ren,lU);var G3e;wDn(991,1,R2n,Fl);lce.hf=function n(e){rGn(e)};var q3e,X3e,V3e,z3e,W3e,Q3e,J3e,Y3e,Z3e,n4e,e4e,t4e;var r4e=YW(Hne,"BoxLayouterOptions",991);wDn(992,1,{},Bs);lce.sf=function n(){var e;return e=new Gs,e};lce.tf=function n(e){};var i4e=YW(Hne,"BoxLayouterOptions/BoxFactory",992);wDn(298,22,{3:1,34:1,22:1,298:1},AO);var a4e,c4e,u4e,s4e,o4e,f4e;var h4e=qan(Hne,"ContentAlignment",298,joe,ien,bU);var l4e;wDn(699,1,R2n,_l);lce.hf=function n(e){ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,Vne),""),"Layout Algorithm"),"Select a specific layout algorithm."),(vAn(),C3e)),vle),ygn((Hkn(),p3e)))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,zne),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),P3e),R2e),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,q8n),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),d4e),j3e),U3e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,x3n),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,Wne),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),P3e),x3e),ygn(d3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,r9n),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),j4e),E3e),h4e),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,G8n),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Qx(),false)),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,z8n),""),h3n),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),P4e),j3e),b5e),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,v8n),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),L4e),j3e),j5e),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,qne),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,l8n),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),R4e),j3e),X5e),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[v3e])))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,R3n),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),u6e),P3e),sEe),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[v3e])))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,f4n),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,d9n),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,b4n),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,h4n),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),y6e),j3e),j8e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,l9n),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),P3e),D3e),nV(v3e,zfn(fT(k3e,1),g1n,170,0,[m3e,g3e])))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,a4n),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),S3e),tle),nV(v3e,zfn(fT(k3e,1),g1n,170,0,[d3e])))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,s4n),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),S3e),tle),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,o4n),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,i9n),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),G4e),P3e),x3e),ygn(d3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,u9n),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),false),M3e),Uhe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,s9n),""),"Hypernode"),"Whether the node should be handled as a hypernode."),false),M3e),Uhe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,Qne),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),P3e),Jht),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[g3e])))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,b9n),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),X4e),P3e),Qje),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,H8n),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),false),M3e),Uhe),nV(v3e,zfn(fT(k3e,1),g1n,170,0,[d3e,m3e,g3e])))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Jne),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),T3e),Yhe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,Yne),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,Zne),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,m4n),""),Ane),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),false),M3e),Uhe),ygn(p3e))));V4(e,m4n,T4n,null);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,nee),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),true),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,eee),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Bwn(100)),S3e),tle),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,tee),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,ree),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Bwn(4e3)),S3e),tle),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,iee),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Bwn(400)),S3e),tle),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,aee),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,cee),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,uee),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),true),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,see),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Xne),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),m4e),j3e),X9e),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,O8n),p8n),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,A8n),p8n),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,$3n),p8n),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,L8n),p8n),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,u4n),p8n),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,N8n),p8n),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,$8n),p8n),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,R8n),p8n),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,D8n),p8n),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,x8n),p8n),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,c4n),p8n),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,K8n),p8n),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),T3e),Yhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,F8n),p8n),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),T3e),Yhe),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[v3e])))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,_8n),p8n),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),P3e),h7e),nV(v3e,zfn(fT(k3e,1),g1n,170,0,[d3e,m3e,g3e])))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,w9n),p8n),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),W6e),P3e),Qje),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,h9n),wee),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),S3e),tle),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[v3e])))));V4(e,h9n,f9n,h6e);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,f9n),wee),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),o6e),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,W8n),dee),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),z4e),P3e),sEe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,v4n),dee),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),Q4e),E3e),o8e),nV(v3e,zfn(fT(k3e,1),g1n,170,0,[g3e])))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Y8n),gee),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),b6e),j3e),g8e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,Z8n),gee),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),j3e),g8e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,n9n),gee),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),j3e),g8e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,e9n),gee),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),j3e),g8e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,t9n),gee),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),j3e),g8e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,g4n),vee),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),Y4e),E3e),w9e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,d4n),vee),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),r6e),E3e),E9e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,D4n),vee),"Node Size Minimum"),"The minimal size to which a node can be reduced."),e6e),P3e),D3e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,w4n),vee),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),false),M3e),Uhe),ygn(p3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,a9n),C8n),"Edge Label Placement"),"Gives a hint on where to put edge labels."),O4e),j3e),p5e),ygn(g3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,l4n),C8n),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),false),M3e),Uhe),ygn(g3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,oee),"font"),"Font Name"),"Font name used for a label."),C3e),vle),ygn(g3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,fee),"font"),"Font Size"),"Font size used for a label."),S3e),tle),ygn(g3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,o9n),pee),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),P3e),D3e),ygn(m3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,c9n),pee),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),S3e),tle),ygn(m3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,U8n),pee),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),C6e),j3e),e9e),ygn(m3e))));ivn(e,new cAn(tj(ej(rj(WT(nj(JT(YT(new _s,B8n),pee),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),T3e),Yhe),ygn(m3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,p4n),mee),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),E6e),E3e),L8e),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,Q8n),mee),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),false),M3e),Uhe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,J8n),mee),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),true),M3e),Uhe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,k4n),kee),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),T3e),Yhe),ygn(p3e))));V4(e,k4n,T4n,i5e);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,hee),kee),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),j3e),$9e),ygn(v3e))));V4(e,hee,T4n,c5e);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,y4n),kee),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),T3e),Yhe),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[v3e])))));V4(e,y4n,T4n,null);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,M4n),kee),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),T3e),Yhe),nV(p3e,zfn(fT(k3e,1),g1n,170,0,[v3e])))));V4(e,M4n,T4n,null);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,T4n),kee),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),j3e),O9e),ygn(v3e))));V4(e,T4n,w4n,null);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,lee),kee),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),T3e),Yhe),ygn(p3e))));V4(e,lee,T4n,t5e);ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,X8n),yee),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),false),M3e),Uhe),ygn(v3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,V8n),yee),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),false),M3e),Uhe),ygn(d3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,D3n),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),T3e),Yhe),ygn(d3e))));ivn(e,new cAn(tj(ej(rj(QT(WT(nj(JT(YT(new _s,bee),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),$4e),j3e),L5e),ygn(d3e))));wP(e,new $2(XT(zT(VT(new ms,E0n),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.')));wP(e,new $2(XT(zT(VT(new ms,"org.eclipse.elk.orthogonal"),"Orthogonal"),'Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia \'86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.')));wP(e,new $2(XT(zT(VT(new ms,i4n),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984.")));wP(e,new $2(XT(zT(VT(new ms,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph.")));wP(e,new $2(XT(zT(VT(new ms,a7n),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type.")));wP(e,new $2(XT(zT(VT(new ms,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable.")));wP(e,new $2(XT(zT(VT(new ms,D7n),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles.")));EHn((new Bl,e));rGn((new Fl,e));x_n((new Hl,e))};var b4e,w4e,d4e,g4e,v4e,p4e,m4e,k4e,y4e,M4e,T4e,j4e,E4e,S4e,P4e,C4e,I4e,O4e,A4e,L4e,N4e,$4e,D4e,x4e,R4e,K4e,F4e,_4e,B4e,H4e,U4e,G4e,q4e,X4e,V4e,z4e,W4e,Q4e,J4e,Y4e,Z4e,n6e,e6e,t6e,r6e,i6e,a6e,c6e,u6e,s6e,o6e,f6e,h6e,l6e,b6e,w6e,d6e,g6e,v6e,p6e,m6e,k6e,y6e,M6e,T6e,j6e,E6e,S6e,P6e,C6e,I6e,O6e,A6e,L6e,N6e,$6e,D6e,x6e,R6e,K6e,F6e,_6e,B6e,H6e,U6e,G6e,q6e,X6e,V6e,z6e,W6e,Q6e,J6e,Y6e,Z6e,n5e,e5e,t5e,r5e,i5e,a5e,c5e;var u5e=YW(Hne,"CoreOptions",699);wDn(88,22,{3:1,34:1,22:1,88:1},LO);var s5e,o5e,f5e,h5e,l5e;var b5e=qan(Hne,h3n,88,joe,V8,wU);var w5e;wDn(278,22,{3:1,34:1,22:1,278:1},NO);var d5e,g5e,v5e;var p5e=qan(Hne,"EdgeLabelPlacement",278,joe,S3,dU);var m5e;wDn(223,22,{3:1,34:1,22:1,223:1},$O);var k5e,y5e,M5e,T5e;var j5e=qan(Hne,"EdgeRouting",223,joe,b5,gU);var E5e;wDn(321,22,{3:1,34:1,22:1,321:1},DO);var S5e,P5e,C5e,I5e,O5e,A5e;var L5e=qan(Hne,"EdgeType",321,joe,ten,vU);var N5e;wDn(989,1,R2n,Bl);lce.hf=function n(e){EHn(e)};var $5e,D5e,x5e,R5e,K5e,F5e,_5e;var B5e=YW(Hne,"FixedLayouterOptions",989);wDn(990,1,{},Hs);lce.sf=function n(){var e;return e=new Zs,e};lce.tf=function n(e){};var H5e=YW(Hne,"FixedLayouterOptions/FixedFactory",990);wDn(346,22,{3:1,34:1,22:1,346:1},xO);var U5e,G5e,q5e;var X5e=qan(Hne,"HierarchyHandling",346,joe,j3,pU);var V5e;wDn(291,22,{3:1,34:1,22:1,291:1},RO);var z5e,W5e,Q5e,J5e;var Y5e=qan(Hne,"LabelSide",291,joe,l5,mU);var Z5e;wDn(95,22,{3:1,34:1,22:1,95:1},KO);var n8e,e8e,t8e,r8e,i8e,a8e,c8e,u8e,s8e;var o8e=qan(Hne,"NodeLabelPlacement",95,joe,pan,kU);var f8e;wDn(256,22,{3:1,34:1,22:1,256:1},FO);var h8e,l8e,b8e,w8e,d8e;var g8e=qan(Hne,"PortAlignment",256,joe,M9,yU);var v8e;wDn(101,22,{3:1,34:1,22:1,101:1},_O);var p8e,m8e,k8e,y8e,M8e,T8e;var j8e=qan(Hne,"PortConstraints",101,joe,een,MU);var E8e;wDn(279,22,{3:1,34:1,22:1,279:1},BO);var S8e,P8e,C8e,I8e,O8e,A8e;var L8e=qan(Hne,"PortLabelPlacement",279,joe,nen,TU);var N8e;wDn(64,22,{3:1,34:1,22:1,64:1},HO);var $8e,D8e,x8e,R8e,K8e,F8e,_8e,B8e,H8e,U8e,G8e,q8e,X8e,V8e,z8e,W8e,Q8e,J8e,Y8e,Z8e,n9e;var e9e=qan(Hne,"PortSide",64,joe,z8,jU);var t9e;wDn(993,1,R2n,Hl);lce.hf=function n(e){x_n(e)};var r9e,i9e,a9e,c9e,u9e;var s9e=YW(Hne,"RandomLayouterOptions",993);wDn(994,1,{},Us);lce.sf=function n(){var e;return e=new Qs,e};lce.tf=function n(e){};var o9e=YW(Hne,"RandomLayouterOptions/RandomFactory",994);wDn(386,22,{3:1,34:1,22:1,386:1},UO);var f9e,h9e,l9e,b9e;var w9e=qan(Hne,"SizeConstraint",386,joe,h5,EU);var d9e;wDn(264,22,{3:1,34:1,22:1,264:1},GO);var g9e,v9e,p9e,m9e,k9e,y9e,M9e,T9e,j9e;var E9e=qan(Hne,"SizeOptions",264,joe,Pcn,SU);var S9e;wDn(280,22,{3:1,34:1,22:1,280:1},qO);var P9e,C9e,I9e;var O9e=qan(Hne,"TopdownNodeTypes",280,joe,P3,PU);var A9e;wDn(347,22,jee);var L9e,N9e;var $9e=qan(Hne,"TopdownSizeApproximator",347,joe,$1,IU);wDn(987,347,jee,Lq);lce.Tg=function n(e){return wMn(e)};var D9e=qan(Hne,"TopdownSizeApproximator/1",987,$9e,null,null);wDn(988,347,jee,yz);lce.Tg=function n(e){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p,m,k,y,M,T,j,E,S,P;r=bG(YDn(e,(JYn(),L6e)),143);j=(yj(),d=new Xk,d);hKn(j,e);E=new rm;for(u=new _D((!e.a&&(e.a=new gz(snt,e,10,11)),e.a));u.e!=u.i.gc();){a=bG(iyn(u),27);k=(w=new Xk,w);WRn(k,j);hKn(k,a);P=wMn(a);jN(k,t.Math.max(a.g,P.a),t.Math.max(a.f,P.b));ZAn(E.f,a,k)}for(c=new _D((!e.a&&(e.a=new gz(snt,e,10,11)),e.a));c.e!=c.i.gc();){a=bG(iyn(c),27);for(l=new _D((!a.e&&(a.e=new g_(H7e,a,7,4)),a.e));l.e!=l.i.gc();){h=bG(iyn(l),74);M=bG(_A(GX(E.f,a)),27);T=bG(fQ(E,Yin((!h.c&&(h.c=new g_(B7e,h,5,8)),h.c),0)),27);y=(b=new co,b);cen((!y.b&&(y.b=new g_(B7e,y,4,7)),y.b),M);cen((!y.c&&(y.c=new g_(B7e,y,5,8)),y.c),T);xRn(y,H0(M));hKn(y,h)}}v=bG(x1(r.f),205);try{v.rf(j,new ro);nJ(r.f,v)}catch(C){C=Ofn(C);if(G$(C,103)){g=C;throw dm(g)}else throw dm(C)}jnn(j,y4e)||jnn(j,k4e)||ZJn(j);f=bM(MK(YDn(j,y4e)));o=bM(MK(YDn(j,k4e)));s=f/o;i=bM(MK(YDn(j,Y6e)))*t.Math.sqrt((!j.a&&(j.a=new gz(snt,j,10,11)),j.a).i);S=bG(YDn(j,c6e),107);m=S.b+S.c+1;p=S.d+S.a+1;return new PO(t.Math.max(m,i),t.Math.max(p,i/s))};var x9e=qan(Hne,"TopdownSizeApproximator/2",988,$9e,null,null);var R9e;wDn(344,1,{871:1},gy);lce.Ug=function n(e,t){return kCn(this,e,t)};lce.Vg=function n(){LOn(this)};lce.Wg=function n(){return this.q};lce.Xg=function n(){return!this.f?null:AZ(this.f)};lce.Yg=function n(){return AZ(this.a)};lce.Zg=function n(){return this.p};lce.$g=function n(){return false};lce._g=function n(){return this.n};lce.ah=function n(){return this.p!=null&&!this.b};lce.bh=function n(e){var t;if(this.n){t=e;ED(this.f,t)}};lce.dh=function n(e,t){var r,i;this.n&&!!e&&a4(this,(r=new _W,i=lUn(r,e),qWn(r),i),(Oln(),g7e))};lce.eh=function n(e){var t;if(this.b){return null}else{t=sin(this,this.g);hq(this.a,t);t.i=this;this.d=e;return t}};lce.fh=function n(e){e>0&&!this.b&&Xcn(this,e)};lce.b=false;lce.c=0;lce.d=-1;lce.e=null;lce.f=null;lce.g=-1;lce.j=false;lce.k=false;lce.n=false;lce.o=0;lce.q=0;lce.r=0;var K9e=YW(g9n,"BasicProgressMonitor",344);wDn(717,205,y3n,Gs);lce.rf=function n(e,t){JGn(e,t)};var F9e=YW(g9n,"BoxLayoutProvider",717);wDn(983,1,l2n,Qv);lce.Ne=function n(e,t){return cKn(this,bG(e,27),bG(t,27))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};lce.a=false;var _9e=YW(g9n,"BoxLayoutProvider/1",983);wDn(163,1,{163:1},tan,aK);lce.Ib=function n(){return this.c?YBn(this.c):jIn(this.b)};var B9e=YW(g9n,"BoxLayoutProvider/Group",163);wDn(320,22,{3:1,34:1,22:1,320:1},VO);var H9e,U9e,G9e,q9e;var X9e=qan(g9n,"BoxLayoutProvider/PackingMode",320,joe,w5,OU);var V9e;wDn(984,1,l2n,qs);lce.Ne=function n(e,t){return oZ(bG(e,163),bG(t,163))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var z9e=YW(g9n,"BoxLayoutProvider/lambda$0$Type",984);wDn(985,1,l2n,Xs);lce.Ne=function n(e,t){return WY(bG(e,163),bG(t,163))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var W9e=YW(g9n,"BoxLayoutProvider/lambda$1$Type",985);wDn(986,1,l2n,Vs);lce.Ne=function n(e,t){return QY(bG(e,163),bG(t,163))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Q9e=YW(g9n,"BoxLayoutProvider/lambda$2$Type",986);wDn(1384,1,{845:1},zs);lce.Mg=function n(e,t){return iP(),!G$(t,167)||iE((nhn(),h2e,bG(e,167)),t)};var J9e=YW(g9n,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384);wDn(1385,1,WZn,Jv);lce.Cd=function n(e){dbn(this.a,bG(e,149))};var Y9e=YW(g9n,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385);wDn(1386,1,WZn,Js);lce.Cd=function n(e){bG(e,96);iP()};var Z9e=YW(g9n,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386);wDn(1390,1,WZn,Yv);lce.Cd=function n(e){qun(this.a,bG(e,96))};var n7e=YW(g9n,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390);wDn(1388,1,k1n,zO);lce.Mb=function n(e){return lln(this.a,this.b,bG(e,149))};var e7e=YW(g9n,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388);wDn(1387,1,k1n,WO);lce.Mb=function n(e){return LR(this.a,this.b,bG(e,845))};var t7e=YW(g9n,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387);wDn(1389,1,WZn,QO);lce.Cd=function n(e){sz(this.a,this.b,bG(e,149))};var r7e=YW(g9n,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389);wDn(947,1,{},Ys);lce.Kb=function n(e){return lN(e)};lce.Fb=function n(e){return this===e};var i7e=YW(g9n,"ElkUtil/lambda$0$Type",947);wDn(948,1,WZn,JO);lce.Cd=function n(e){t$n(this.a,this.b,bG(e,74))};lce.a=0;lce.b=0;var a7e=YW(g9n,"ElkUtil/lambda$1$Type",948);wDn(949,1,WZn,YO);lce.Cd=function n(e){cM(this.a,this.b,bG(e,166))};lce.a=0;lce.b=0;var c7e=YW(g9n,"ElkUtil/lambda$2$Type",949);wDn(950,1,WZn,ZO);lce.Cd=function n(e){zN(this.a,this.b,bG(e,135))};lce.a=0;lce.b=0;var u7e=YW(g9n,"ElkUtil/lambda$3$Type",950);wDn(951,1,WZn,Zv);lce.Cd=function n(e){Rq(this.a,bG(e,377))};var s7e=YW(g9n,"ElkUtil/lambda$4$Type",951);wDn(325,1,{34:1,325:1},tm);lce.Fd=function n(e){return mD(this,bG(e,242))};lce.Fb=function n(e){var t;if(G$(e,325)){t=bG(e,325);return this.a==t.a}return false};lce.Hb=function n(){return c0(this.a)};lce.Ib=function n(){return this.a+" (exclusive)"};lce.a=0;var o7e=YW(g9n,"ExclusiveBounds/ExclusiveLowerBound",325);wDn(1119,205,y3n,Zs);lce.rf=function n(e,r){var i,a,c,u,s,o,f,h,l,b,w,g,v,p,m,k,y,M,T,j,E,S,P;r.Ug("Fixed Layout",1);u=bG(YDn(e,(JYn(),A4e)),223);b=0;w=0;for(y=new _D((!e.a&&(e.a=new gz(snt,e,10,11)),e.a));y.e!=y.i.gc();){m=bG(iyn(y),27);P=bG(YDn(m,($ln(),_5e)),8);if(P){EN(m,P.a,P.b);if(bG(YDn(m,D5e),181).Hc((emn(),f9e))){g=bG(YDn(m,R5e),8);g.a>0&&g.b>0&&iJn(m,g.a,g.b,true,true)}}b=t.Math.max(b,m.i+m.g);w=t.Math.max(w,m.j+m.f);for(h=new _D((!m.n&&(m.n=new gz(unt,m,1,7)),m.n));h.e!=h.i.gc();){o=bG(iyn(h),135);P=bG(YDn(o,_5e),8);!!P&&EN(o,P.a,P.b);b=t.Math.max(b,m.i+o.i+o.g);w=t.Math.max(w,m.j+o.j+o.f)}for(j=new _D((!m.c&&(m.c=new gz(ont,m,9,9)),m.c));j.e!=j.i.gc();){T=bG(iyn(j),123);P=bG(YDn(T,_5e),8);!!P&&EN(T,P.a,P.b);E=m.i+T.i;S=m.j+T.j;b=t.Math.max(b,E+T.g);w=t.Math.max(w,S+T.f);for(f=new _D((!T.n&&(T.n=new gz(unt,T,1,7)),T.n));f.e!=f.i.gc();){o=bG(iyn(f),135);P=bG(YDn(o,_5e),8);!!P&&EN(o,P.a,P.b);b=t.Math.max(b,E+o.i+o.g);w=t.Math.max(w,S+o.j+o.f)}}for(c=new GV(sx(uRn(m).a.Kc(),new d));dDn(c);){i=bG(K9(c),74);l=sJn(i);b=t.Math.max(b,l.a);w=t.Math.max(w,l.b)}for(a=new GV(sx(cRn(m).a.Kc(),new d));dDn(a);){i=bG(K9(a),74);if(H0(pIn(i))!=e){l=sJn(i);b=t.Math.max(b,l.a);w=t.Math.max(w,l.b)}}}if(u==(qgn(),k5e)){for(k=new _D((!e.a&&(e.a=new gz(snt,e,10,11)),e.a));k.e!=k.i.gc();){m=bG(iyn(k),27);for(a=new GV(sx(uRn(m).a.Kc(),new d));dDn(a);){i=bG(K9(a),74);s=pGn(i);s.b==0?Pyn(i,U4e,null):Pyn(i,U4e,s)}}}if(!lM(yK(YDn(e,($ln(),x5e))))){M=bG(YDn(e,K5e),107);p=b+M.b+M.c;v=w+M.d+M.a;iJn(e,p,v,true,true)}r.Vg()};var f7e=YW(g9n,"FixedLayoutProvider",1119);wDn(385,137,{3:1,423:1,385:1,96:1,137:1},no,Qtn);lce.cg=function n(e){var t,r,i,a,c,u,s,o,f;if(!e){return}try{o=nqn(e,";,;");for(c=o,u=0,s=c.length;u>16&$1n|t^i<<16};lce.Kc=function n(){return new np(this)};lce.Ib=function n(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+fvn(this.b)+")":this.b==null?"pair("+fvn(this.a)+",null)":"pair("+fvn(this.a)+","+fvn(this.b)+")"};var M7e=YW(g9n,"Pair",42);wDn(995,1,NZn,np);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)};lce.Pb=function n(){if(!this.c&&!this.b&&this.a.a!=null){this.b=true;return this.a.a}else if(!this.c&&this.a.b!=null){this.c=true;return this.a.b}throw dm(new Xm)};lce.Qb=function n(){this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null);throw dm(new Bm)};lce.b=false;lce.c=false;var T7e=YW(g9n,"Pair/1",995);wDn(455,1,{455:1},jY);lce.Fb=function n(e){return DJ(this.a,bG(e,455).a)&&DJ(this.c,bG(e,455).c)&&DJ(this.d,bG(e,455).d)&&DJ(this.b,bG(e,455).b)};lce.Hb=function n(){return Dbn(zfn(fT(kce,1),jZn,1,5,[this.a,this.c,this.d,this.b]))};lce.Ib=function n(){return"("+this.a+MZn+this.c+MZn+this.d+MZn+this.b+")"};var j7e=YW(g9n,"Quadruple",455);wDn(1108,205,y3n,Qs);lce.rf=function n(e,t){var r,i,a,c,u;t.Ug("Random Layout",1);if((!e.a&&(e.a=new gz(snt,e,10,11)),e.a).i==0){t.Vg();return}c=bG(YDn(e,(nmn(),c9e)),17);!!c&&c.a!=0?a=new j8(c.a):a=new zvn;r=wM(MK(YDn(e,r9e)));u=wM(MK(YDn(e,u9e)));i=bG(YDn(e,i9e),107);jQn(e,a,r,u,i);t.Vg()};var E7e=YW(g9n,"RandomLayoutProvider",1108);wDn(240,1,{240:1},RU);lce.Fb=function n(e){return DJ(this.a,bG(e,240).a)&&DJ(this.b,bG(e,240).b)&&DJ(this.c,bG(e,240).c)};lce.Hb=function n(){return Dbn(zfn(fT(kce,1),jZn,1,5,[this.a,this.b,this.c]))};lce.Ib=function n(){return"("+this.a+MZn+this.b+MZn+this.c+")"};var S7e=YW(g9n,"Triple",240);var P7e;wDn(562,1,{});lce.Lf=function n(){return new PO(this.f.i,this.f.j)};lce.of=function n(e){if(e1(e,(JYn(),m6e))){return YDn(this.f,C7e)}return YDn(this.f,e)};lce.Mf=function n(){return new PO(this.f.g,this.f.f)};lce.Nf=function n(){return this.g};lce.pf=function n(e){return jnn(this.f,e)};lce.Of=function n(e){San(this.f,e.a);Pan(this.f,e.b)};lce.Pf=function n(e){Ean(this.f,e.a);jan(this.f,e.b)};lce.Qf=function n(e){this.g=e};lce.g=0;var C7e;var I7e=YW(Pee,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562);wDn(563,1,{853:1},ep);lce.Rf=function n(){var e,t;if(!this.b){this.b=l6(BJ(this.a).i);for(t=new _D(BJ(this.a));t.e!=t.i.gc();){e=bG(iyn(t),135);ED(this.b,new nM(e))}}return this.b};lce.b=null;var O7e=YW(Pee,"ElkGraphAdapters/ElkEdgeAdapter",563);wDn(289,562,{},Zy);lce.Sf=function n(){return GTn(this)};lce.a=null;var A7e=YW(Pee,"ElkGraphAdapters/ElkGraphAdapter",289);wDn(640,562,{187:1},nM);var L7e=YW(Pee,"ElkGraphAdapters/ElkLabelAdapter",640);wDn(639,562,{695:1},nR);lce.Rf=function n(){return HTn(this)};lce.Vf=function n(){var e;return e=bG(YDn(this.f,(JYn(),q4e)),140),!e&&(e=new Kk),e};lce.Xf=function n(){return UTn(this)};lce.Zf=function n(e){var t;t=new YU(e);Pyn(this.f,(JYn(),q4e),t)};lce.$f=function n(e){Pyn(this.f,(JYn(),c6e),new ZU(e))};lce.Tf=function n(){return this.d};lce.Uf=function n(){var e,t;if(!this.a){this.a=new im;for(t=new GV(sx(cRn(bG(this.f,27)).a.Kc(),new d));dDn(t);){e=bG(K9(t),74);ED(this.a,new ep(e))}}return this.a};lce.Wf=function n(){var e,t;if(!this.c){this.c=new im;for(t=new GV(sx(uRn(bG(this.f,27)).a.Kc(),new d));dDn(t);){e=bG(K9(t),74);ED(this.c,new ep(e))}}return this.c};lce.Yf=function n(){return mZ(bG(this.f,27)).i!=0||lM(yK(bG(this.f,27).of((JYn(),F4e))))};lce._f=function n(){Jtn(this,(jP(),P7e))};lce.a=null;lce.b=null;lce.c=null;lce.d=null;lce.e=null;var N7e=YW(Pee,"ElkGraphAdapters/ElkNodeAdapter",639);wDn(1284,562,{852:1},tp);lce.Rf=function n(){return ojn(this)};lce.Uf=function n(){var e,t;if(!this.a){this.a=sR(bG(this.f,123).hh().i);for(t=new _D(bG(this.f,123).hh());t.e!=t.i.gc();){e=bG(iyn(t),74);ED(this.a,new ep(e))}}return this.a};lce.Wf=function n(){var e,t;if(!this.c){this.c=sR(bG(this.f,123).ih().i);for(t=new _D(bG(this.f,123).ih());t.e!=t.i.gc();){e=bG(iyn(t),74);ED(this.c,new ep(e))}}return this.c};lce.ag=function n(){return bG(bG(this.f,123).of((JYn(),P6e)),64)};lce.bg=function n(){var e,t,r,i,a,c,u,s;i=d0(bG(this.f,123));for(r=new _D(bG(this.f,123).ih());r.e!=r.i.gc();){e=bG(iyn(r),74);for(s=new _D((!e.c&&(e.c=new g_(B7e,e,5,8)),e.c));s.e!=s.i.gc();){u=bG(iyn(s),84);if(Oin(vCn(u),i)){return true}else if(vCn(u)==i&&lM(yK(YDn(e,(JYn(),_4e))))){return true}}}for(t=new _D(bG(this.f,123).hh());t.e!=t.i.gc();){e=bG(iyn(t),74);for(c=new _D((!e.b&&(e.b=new g_(B7e,e,4,7)),e.b));c.e!=c.i.gc();){a=bG(iyn(c),84);if(Oin(vCn(a),i)){return true}}}return false};lce.a=null;lce.b=null;lce.c=null;var $7e=YW(Pee,"ElkGraphAdapters/ElkPortAdapter",1284);wDn(1285,1,l2n,Ws);lce.Ne=function n(e,t){return JBn(bG(e,123),bG(t,123))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var D7e=YW(Pee,"ElkGraphAdapters/PortComparator",1285);var x7e=$q(Cee,"EObject");var R7e=$q(Iee,Oee);var K7e=$q(Iee,Aee);var F7e=$q(Iee,Lee);var _7e=$q(Iee,"ElkShape");var B7e=$q(Iee,Nee);var H7e=$q(Iee,$ee);var U7e=$q(Iee,Dee);var G7e=$q(Cee,xee);var q7e=$q(Cee,"EFactory");var X7e;var V7e=$q(Cee,Ree);var z7e=$q(Cee,"EPackage");var W7e;var Q7e,J7e,Y7e,Z7e,nnt,ent,tnt,rnt,int,ant,cnt;var unt=$q(Iee,Kee);var snt=$q(Iee,Fee);var ont=$q(Iee,_ee);wDn(93,1,Bee);lce.th=function n(){this.uh();return null};lce.uh=function n(){return null};lce.vh=function n(){return this.uh(),false};lce.wh=function n(){return false};lce.xh=function n(e){Pon(this,e)};var fnt=YW(Hee,"BasicNotifierImpl",93);wDn(99,93,Qee);lce.Yh=function n(){return bN(this)};lce.yh=function n(e,t){return e};lce.zh=function n(){throw dm(new Um)};lce.Ah=function n(e){var t;return t=vMn(bG(uin(this.Dh(),this.Fh()),19)),this.Ph().Th(this,t.n,t.f,e)};lce.Bh=function n(e,t){throw dm(new Um)};lce.Ch=function n(e,t,r){return FUn(this,e,t,r)};lce.Dh=function n(){var e;if(this.zh()){e=this.zh().Nk();if(e){return e}}return this.ii()};lce.Eh=function n(){return tDn(this)};lce.Fh=function n(){throw dm(new Um)};lce.Gh=function n(){var e,t;t=this.$h().Ok();!t&&this.zh().Tk(t=(IP(),e=F1(uqn(this.Dh())),e==null?lat:new Yx(this,e)));return t};lce.Hh=function n(e,t){return e};lce.Ih=function n(e){var t;t=e.pk();return!t?upn(this.Dh(),e):e.Lj()};lce.Jh=function n(){var e;e=this.zh();return!e?null:e.Qk()};lce.Kh=function n(){return!this.zh()?null:this.zh().Nk()};lce.Lh=function n(e,t,r){return _yn(this,e,t,r)};lce.Mh=function n(e){return jen(this,e)};lce.Nh=function n(e,t){return z9(this,e,t)};lce.Oh=function n(){var e;e=this.zh();return!!e&&e.Rk()};lce.Ph=function n(){throw dm(new Um)};lce.Qh=function n(){return Umn(this)};lce.Rh=function n(e,t,r,i){return Eyn(this,e,t,i)};lce.Sh=function n(e,t,r){var i;return i=bG(uin(this.Dh(),t),69),i.wk().zk(this,this.hi(),t-this.ji(),e,r)};lce.Th=function n(e,t,r,i){return D1(this,e,t,i)};lce.Uh=function n(e,t,r){var i;return i=bG(uin(this.Dh(),t),69),i.wk().Ak(this,this.hi(),t-this.ji(),e,r)};lce.Vh=function n(){return!!this.zh()&&!!this.zh().Pk()};lce.Wh=function n(e){return nyn(this,e)};lce.Xh=function n(e){return P0(this,e)};lce.Zh=function n(e){return IWn(this,e)};lce.$h=function n(){throw dm(new Um)};lce._h=function n(){return!this.zh()?null:this.zh().Pk()};lce.ai=function n(){return Umn(this)};lce.bi=function n(e,t){wLn(this,e,t)};lce.ci=function n(e){this.$h().Sk(e)};lce.di=function n(e){this.$h().Vk(e)};lce.ei=function n(e){this.$h().Uk(e)};lce.fi=function n(e,t){var r,i,a,c;c=this.Jh();if(!!c&&!!e){t=Kyn(c.El(),this,t);c.Il(this)}i=this.Ph();if(i){if((LHn(this,this.Ph(),this.Fh()).Bb&S0n)!=0){a=i.Qh();!!a&&(!e?a.Hl(this):!c&&a.Il(this))}else{t=(r=this.Fh(),r>=0?this.Ah(t):this.Ph().Th(this,-1-r,null,t));t=this.Ch(null,-1,t)}}this.di(e);return t};lce.gi=function n(e){var t,r,i,a,c,u,s,o;r=this.Dh();c=upn(r,e);t=this.ji();if(c>=t){return bG(e,69).wk().Dk(this,this.hi(),c-t)}else if(c<=-1){u=szn((yAn(),Vut),r,e);if(u){LP();bG(u,69).xk()||(u=q3(Ktn(Vut,u)));a=(i=this.Ih(u),bG(i>=0?this.Lh(i,true,true):r$n(this,u,true),160));o=u.Ik();if(o>1||o==-1){return bG(bG(a,220).Sl(e,false),79)}}else{throw dm(new jM(Uee+e.xe()+Xee))}}else if(e.Jk()){return i=this.Ih(e),bG(i>=0?this.Lh(i,false,true):r$n(this,e,false),79)}s=new IA(this,e);return s};lce.hi=function n(){return nrn(this)};lce.ii=function n(){return(cQ(),_rt).S};lce.ji=function n(){return sQ(this.ii())};lce.ki=function n(e){lAn(this,e)};lce.Ib=function n(){return jxn(this)};var hnt=YW(Jee,"BasicEObjectImpl",99);var lnt;wDn(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1});lce.li=function n(e){var t;t=Ztn(this);return t[e]};lce.mi=function n(e,t){var r;r=Ztn(this);bQ(r,e,t)};lce.ni=function n(e){var t;t=Ztn(this);bQ(t,e,null)};lce.th=function n(){return bG(Ron(this,4),129)};lce.uh=function n(){throw dm(new Um)};lce.vh=function n(){return(this.Db&4)!=0};lce.zh=function n(){throw dm(new Um)};lce.oi=function n(e){_mn(this,2,e)};lce.Bh=function n(e,t){this.Db=t<<16|this.Db&255;this.oi(e)};lce.Dh=function n(){return u1(this)};lce.Fh=function n(){return this.Db>>16};lce.Gh=function n(){var e,t;return IP(),t=F1(uqn((e=bG(Ron(this,16),29),!e?this.ii():e))),t==null?(null,lat):new Yx(this,t)};lce.wh=function n(){return(this.Db&1)==0};lce.Jh=function n(){return bG(Ron(this,128),2034)};lce.Kh=function n(){return bG(Ron(this,16),29)};lce.Oh=function n(){return(this.Db&32)!=0};lce.Ph=function n(){return bG(Ron(this,2),54)};lce.Vh=function n(){return(this.Db&64)!=0};lce.$h=function n(){throw dm(new Um)};lce._h=function n(){return bG(Ron(this,64),288)};lce.ci=function n(e){_mn(this,16,e)};lce.di=function n(e){_mn(this,128,e)};lce.ei=function n(e){_mn(this,64,e)};lce.hi=function n(){return Fmn(this)};lce.Db=0;var bnt=YW(Jee,"MinimalEObjectImpl",119);wDn(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1});lce.oi=function n(e){this.Cb=e};lce.Ph=function n(){return this.Cb};var wnt=YW(Jee,"MinimalEObjectImpl/Container",120);wDn(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1});lce.Lh=function n(e,t,r){return hjn(this,e,t,r)};lce.Uh=function n(e,t,r){return XIn(this,e,t,r)};lce.Wh=function n(e){return I4(this,e)};lce.bi=function n(e,t){pln(this,e,t)};lce.ii=function n(){return cYn(),cnt};lce.ki=function n(e){ghn(this,e)};lce.nf=function n(){return eyn(this)};lce.gh=function n(){return!this.o&&(this.o=new ven((cYn(),int),Rnt,this,0)),this.o};lce.of=function n(e){return YDn(this,e)};lce.pf=function n(e){return jnn(this,e)};lce.qf=function n(e,t){return Pyn(this,e,t)};var dnt=YW(Yee,"EMapPropertyHolderImpl",2083);wDn(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},io);lce.Lh=function n(e,t,r){switch(e){case 0:return this.a;case 1:return this.b}return _yn(this,e,t,r)};lce.Wh=function n(e){switch(e){case 0:return this.a!=0;case 1:return this.b!=0}return nyn(this,e)};lce.bi=function n(e,t){switch(e){case 0:Aan(this,bM(MK(t)));return;case 1:Man(this,bM(MK(t)));return}wLn(this,e,t)};lce.ii=function n(){return cYn(),Q7e};lce.ki=function n(e){switch(e){case 0:Aan(this,0);return;case 1:Man(this,0);return}lAn(this,e)};lce.Ib=function n(){var e;if((this.Db&64)!=0)return jxn(this);e=new gx(jxn(this));e.a+=" (x: ";Dj(e,this.a);e.a+=", y: ";Dj(e,this.b);e.a+=")";return e.a};lce.a=0;lce.b=0;var gnt=YW(Yee,"ElkBendPointImpl",572);wDn(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1});lce.Lh=function n(e,t,r){return Jdn(this,e,t,r)};lce.Sh=function n(e,t,r){return ACn(this,e,t,r)};lce.Uh=function n(e,t,r){return Mfn(this,e,t,r)};lce.Wh=function n(e){return qon(this,e)};lce.bi=function n(e,t){NSn(this,e,t)};lce.ii=function n(){return cYn(),nnt};lce.ki=function n(e){xwn(this,e)};lce.jh=function n(){return this.k};lce.kh=function n(){return BJ(this)};lce.Ib=function n(){return Ogn(this)};lce.k=null;var vnt=YW(Yee,"ElkGraphElementImpl",739);wDn(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1});lce.Lh=function n(e,t,r){return wvn(this,e,t,r)};lce.Wh=function n(e){return Uvn(this,e)};lce.bi=function n(e,t){$Sn(this,e,t)};lce.ii=function n(){return cYn(),ant};lce.ki=function n(e){Cpn(this,e)};lce.lh=function n(){return this.f};lce.mh=function n(){return this.g};lce.nh=function n(){return this.i};lce.oh=function n(){return this.j};lce.ph=function n(e,t){jN(this,e,t)};lce.qh=function n(e,t){EN(this,e,t)};lce.rh=function n(e){San(this,e)};lce.sh=function n(e){Pan(this,e)};lce.Ib=function n(){return oOn(this)};lce.f=0;lce.g=0;lce.i=0;lce.j=0;var pnt=YW(Yee,"ElkShapeImpl",740);wDn(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1});lce.Lh=function n(e,t,r){return AMn(this,e,t,r)};lce.Sh=function n(e,t,r){return cSn(this,e,t,r)};lce.Uh=function n(e,t,r){return uSn(this,e,t,r)};lce.Wh=function n(e){return sln(this,e)};lce.bi=function n(e,t){ADn(this,e,t)};lce.ii=function n(){return cYn(),J7e};lce.ki=function n(e){Syn(this,e)};lce.hh=function n(){return!this.d&&(this.d=new g_(H7e,this,8,5)),this.d};lce.ih=function n(){return!this.e&&(this.e=new g_(H7e,this,7,4)),this.e};var mnt=YW(Yee,"ElkConnectableShapeImpl",741);wDn(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},co);lce.Ah=function n(e){return wEn(this,e)};lce.Lh=function n(e,t,r){switch(e){case 3:return w0(this);case 4:return!this.b&&(this.b=new g_(B7e,this,4,7)),this.b;case 5:return!this.c&&(this.c=new g_(B7e,this,5,8)),this.c;case 6:return!this.a&&(this.a=new gz(U7e,this,6,6)),this.a;case 7:return Qx(),!this.b&&(this.b=new g_(B7e,this,4,7)),this.b.i<=1&&(!this.c&&(this.c=new g_(B7e,this,5,8)),this.c.i<=1)?false:true;case 8:return Qx(),Y$n(this)?true:false;case 9:return Qx(),XNn(this)?true:false;case 10:return Qx(),!this.b&&(this.b=new g_(B7e,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new g_(B7e,this,5,8)),this.c.i!=0)?true:false}return Jdn(this,e,t,r)};lce.Sh=function n(e,t,r){var i;switch(t){case 3:!!this.Cb&&(r=(i=this.Db>>16,i>=0?wEn(this,r):this.Cb.Th(this,-1-i,null,r)));return aF(this,bG(e,27),r);case 4:return!this.b&&(this.b=new g_(B7e,this,4,7)),Kpn(this.b,e,r);case 5:return!this.c&&(this.c=new g_(B7e,this,5,8)),Kpn(this.c,e,r);case 6:return!this.a&&(this.a=new gz(U7e,this,6,6)),Kpn(this.a,e,r)}return ACn(this,e,t,r)};lce.Uh=function n(e,t,r){switch(t){case 3:return aF(this,null,r);case 4:return!this.b&&(this.b=new g_(B7e,this,4,7)),Kyn(this.b,e,r);case 5:return!this.c&&(this.c=new g_(B7e,this,5,8)),Kyn(this.c,e,r);case 6:return!this.a&&(this.a=new gz(U7e,this,6,6)),Kyn(this.a,e,r)}return Mfn(this,e,t,r)};lce.Wh=function n(e){switch(e){case 3:return!!w0(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new g_(B7e,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new g_(B7e,this,5,8)),this.c.i<=1));case 8:return Y$n(this);case 9:return XNn(this);case 10:return!this.b&&(this.b=new g_(B7e,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new g_(B7e,this,5,8)),this.c.i!=0)}return qon(this,e)};lce.bi=function n(e,t){switch(e){case 3:xRn(this,bG(t,27));return;case 4:!this.b&&(this.b=new g_(B7e,this,4,7));NVn(this.b);!this.b&&(this.b=new g_(B7e,this,4,7));NW(this.b,bG(t,16));return;case 5:!this.c&&(this.c=new g_(B7e,this,5,8));NVn(this.c);!this.c&&(this.c=new g_(B7e,this,5,8));NW(this.c,bG(t,16));return;case 6:!this.a&&(this.a=new gz(U7e,this,6,6));NVn(this.a);!this.a&&(this.a=new gz(U7e,this,6,6));NW(this.a,bG(t,16));return}NSn(this,e,t)};lce.ii=function n(){return cYn(),Y7e};lce.ki=function n(e){switch(e){case 3:xRn(this,null);return;case 4:!this.b&&(this.b=new g_(B7e,this,4,7));NVn(this.b);return;case 5:!this.c&&(this.c=new g_(B7e,this,5,8));NVn(this.c);return;case 6:!this.a&&(this.a=new gz(U7e,this,6,6));NVn(this.a);return}xwn(this,e)};lce.Ib=function n(){return AXn(this)};var knt=YW(Yee,"ElkEdgeImpl",326);wDn(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},uo);lce.Ah=function n(e){return Yjn(this,e)};lce.Lh=function n(e,t,r){switch(e){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new PD(K7e,this,5)),this.a;case 6:return g0(this);case 7:if(t)return gMn(this);return this.i;case 8:if(t)return dMn(this);return this.f;case 9:return!this.g&&(this.g=new g_(U7e,this,9,10)),this.g;case 10:return!this.e&&(this.e=new g_(U7e,this,10,9)),this.e;case 11:return this.d}return hjn(this,e,t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 6:!!this.Cb&&(r=(a=this.Db>>16,a>=0?Yjn(this,r):this.Cb.Th(this,-1-a,null,r)));return iF(this,bG(e,74),r);case 9:return!this.g&&(this.g=new g_(U7e,this,9,10)),Kpn(this.g,e,r);case 10:return!this.e&&(this.e=new g_(U7e,this,10,9)),Kpn(this.e,e,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?(cYn(),Z7e):i),t),69),c.wk().zk(this,Fmn(this),t-sQ((cYn(),Z7e)),e,r)};lce.Uh=function n(e,t,r){switch(t){case 5:return!this.a&&(this.a=new PD(K7e,this,5)),Kyn(this.a,e,r);case 6:return iF(this,null,r);case 9:return!this.g&&(this.g=new g_(U7e,this,9,10)),Kyn(this.g,e,r);case 10:return!this.e&&(this.e=new g_(U7e,this,10,9)),Kyn(this.e,e,r)}return XIn(this,e,t,r)};lce.Wh=function n(e){switch(e){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!g0(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return I4(this,e)};lce.bi=function n(e,t){switch(e){case 1:Can(this,bM(MK(t)));return;case 2:Oan(this,bM(MK(t)));return;case 3:Tan(this,bM(MK(t)));return;case 4:Ian(this,bM(MK(t)));return;case 5:!this.a&&(this.a=new PD(K7e,this,5));NVn(this.a);!this.a&&(this.a=new PD(K7e,this,5));NW(this.a,bG(t,16));return;case 6:DRn(this,bG(t,74));return;case 7:Ycn(this,bG(t,84));return;case 8:Jcn(this,bG(t,84));return;case 9:!this.g&&(this.g=new g_(U7e,this,9,10));NVn(this.g);!this.g&&(this.g=new g_(U7e,this,9,10));NW(this.g,bG(t,16));return;case 10:!this.e&&(this.e=new g_(U7e,this,10,9));NVn(this.e);!this.e&&(this.e=new g_(U7e,this,10,9));NW(this.e,bG(t,16));return;case 11:gun(this,TK(t));return}pln(this,e,t)};lce.ii=function n(){return cYn(),Z7e};lce.ki=function n(e){switch(e){case 1:Can(this,0);return;case 2:Oan(this,0);return;case 3:Tan(this,0);return;case 4:Ian(this,0);return;case 5:!this.a&&(this.a=new PD(K7e,this,5));NVn(this.a);return;case 6:DRn(this,null);return;case 7:Ycn(this,null);return;case 8:Jcn(this,null);return;case 9:!this.g&&(this.g=new g_(U7e,this,9,10));NVn(this.g);return;case 10:!this.e&&(this.e=new g_(U7e,this,10,9));NVn(this.e);return;case 11:gun(this,null);return}ghn(this,e)};lce.Ib=function n(){return x$n(this)};lce.b=0;lce.c=0;lce.d=null;lce.j=0;lce.k=0;var ynt=YW(Yee,"ElkEdgeSectionImpl",452);wDn(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1});lce.Lh=function n(e,t,r){var i;if(e==0){return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab}return Fen(this,e-sQ(this.ii()),uin((i=bG(Ron(this,16),29),!i?this.ii():i),e),t,r)};lce.Sh=function n(e,t,r){var i,a;if(t==0){return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?this.ii():i),t),69),a.wk().zk(this,Fmn(this),t-sQ(this.ii()),e,r)};lce.Uh=function n(e,t,r){var i,a;if(t==0){return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?this.ii():i),t),69),a.wk().Ak(this,Fmn(this),t-sQ(this.ii()),e,r)};lce.Wh=function n(e){var t;if(e==0){return!!this.Ab&&this.Ab.i!=0}return v5(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.Zh=function n(e){return ZQn(this,e)};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return}vvn(this,e-sQ(this.ii()),uin((r=bG(Ron(this,16),29),!r?this.ii():r),e),t)};lce.di=function n(e){_mn(this,128,e)};lce.ii=function n(){return rZn(),Yrt};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return}wdn(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.pi=function n(){this.Bb|=1};lce.qi=function n(e){return WUn(this,e)};lce.Bb=0;var Mnt=YW(Jee,"EModelElementImpl",158);wDn(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},Gl);lce.ri=function n(e,t){return fWn(this,e,t)};lce.si=function n(e){var t,r,i,a,c;if(this.a!=Vin(e)||(e.Bb&256)!=0){throw dm(new jM(ite+e.zb+ete))}for(i=a1(e);Y5(i.a).i!=0;){r=bG(Szn(i,0,(t=bG(Yin(Y5(i.a),0),89),c=t.c,G$(c,90)?bG(c,29):(rZn(),nit))),29);if(qTn(r)){a=Vin(r).wi().si(r);bG(a,54).ci(e);return a}i=a1(r)}return(e.D!=null?e.D:e.B)=="java.util.Map$Entry"?new Oq(e):new XG(e)};lce.ti=function n(e,t){return fYn(this,e,t)};lce.Lh=function n(e,t,r){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.a}return Fen(this,e-sQ((rZn(),Wrt)),uin((i=bG(Ron(this,16),29),!i?Wrt:i),e),t,r)};lce.Sh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 1:!!this.a&&(r=bG(this.a,54).Th(this,4,z7e,r));return Swn(this,bG(e,241),r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Wrt):i),t),69),a.wk().zk(this,Fmn(this),t-sQ((rZn(),Wrt)),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 1:return Swn(this,null,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Wrt):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),Wrt)),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return v5(this,e-sQ((rZn(),Wrt)),uin((t=bG(Ron(this,16),29),!t?Wrt:t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:SIn(this,bG(t,241));return}vvn(this,e-sQ((rZn(),Wrt)),uin((r=bG(Ron(this,16),29),!r?Wrt:r),e),t)};lce.ii=function n(){return rZn(),Wrt};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:SIn(this,null);return}wdn(this,e-sQ((rZn(),Wrt)),uin((t=bG(Ron(this,16),29),!t?Wrt:t),e))};var Tnt,jnt,Ent;var Snt=YW(Jee,"EFactoryImpl",720);wDn(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},so);lce.ri=function n(e,t){switch(e.hk()){case 12:return bG(t,149).Pg();case 13:return fvn(t);default:throw dm(new jM(nte+e.xe()+ete))}};lce.si=function n(e){var t,r,i,a,c,u,s,o;switch(e.G==-1&&(e.G=(t=Vin(e),t?Vyn(t.vi(),e):-1)),e.G){case 4:return c=new oo,c;case 6:return u=new Xk,u;case 7:return s=new Vk,s;case 8:return i=new co,i;case 9:return r=new io,r;case 10:return a=new uo,a;case 11:return o=new fo,o;default:throw dm(new jM(ite+e.zb+ete))}};lce.ti=function n(e,t){switch(e.hk()){case 13:case 12:return null;default:throw dm(new jM(nte+e.xe()+ete))}};var Pnt=YW(Yee,"ElkGraphFactoryImpl",1037);wDn(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1});lce.Gh=function n(){var e,t;t=(e=bG(Ron(this,16),29),F1(uqn(!e?this.ii():e)));return t==null?(IP(),IP(),lat):new ZR(this,t)};lce.Lh=function n(e,t,r){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.xe()}return Fen(this,e-sQ(this.ii()),uin((i=bG(Ron(this,16),29),!i?this.ii():i),e),t,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return v5(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:this.ui(TK(t));return}vvn(this,e-sQ(this.ii()),uin((r=bG(Ron(this,16),29),!r?this.ii():r),e),t)};lce.ii=function n(){return rZn(),Zrt};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:this.ui(null);return}wdn(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.xe=function n(){return this.zb};lce.ui=function n(e){Qun(this,e)};lce.Ib=function n(){return ndn(this)};lce.zb=null;var Cnt=YW(Jee,"ENamedElementImpl",448);wDn(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},hZ);lce.Ah=function n(e){return tEn(this,e)};lce.Lh=function n(e,t,r){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new jz(this,yrt,this)),this.rb;case 6:return!this.vb&&(this.vb=new s_(z7e,this,6,7)),this.vb;case 7:if(t)return this.Db>>16==7?bG(this.Cb,241):null;return F0(this)}return Fen(this,e-sQ((rZn(),rit)),uin((i=bG(Ron(this,16),29),!i?rit:i),e),t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 4:!!this.sb&&(r=bG(this.sb,54).Th(this,1,q7e,r));return tdn(this,bG(e,480),r);case 5:return!this.rb&&(this.rb=new jz(this,yrt,this)),Kpn(this.rb,e,r);case 6:return!this.vb&&(this.vb=new s_(z7e,this,6,7)),Kpn(this.vb,e,r);case 7:!!this.Cb&&(r=(a=this.Db>>16,a>=0?tEn(this,r):this.Cb.Th(this,-1-a,null,r)));return FUn(this,e,7,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),rit):i),t),69),c.wk().zk(this,Fmn(this),t-sQ((rZn(),rit)),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 4:return tdn(this,null,r);case 5:return!this.rb&&(this.rb=new jz(this,yrt,this)),Kyn(this.rb,e,r);case 6:return!this.vb&&(this.vb=new s_(z7e,this,6,7)),Kyn(this.vb,e,r);case 7:return FUn(this,null,7,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),rit):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),rit)),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!F0(this)}return v5(this,e-sQ((rZn(),rit)),uin((t=bG(Ron(this,16),29),!t?rit:t),e))};lce.Zh=function n(e){var t;t=IKn(this,e);return t?t:ZQn(this,e)};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:Qun(this,TK(t));return;case 2:Yun(this,TK(t));return;case 3:Jun(this,TK(t));return;case 4:VIn(this,bG(t,480));return;case 5:!this.rb&&(this.rb=new jz(this,yrt,this));NVn(this.rb);!this.rb&&(this.rb=new jz(this,yrt,this));NW(this.rb,bG(t,16));return;case 6:!this.vb&&(this.vb=new s_(z7e,this,6,7));NVn(this.vb);!this.vb&&(this.vb=new s_(z7e,this,6,7));NW(this.vb,bG(t,16));return}vvn(this,e-sQ((rZn(),rit)),uin((r=bG(Ron(this,16),29),!r?rit:r),e),t)};lce.ei=function n(e){var t,r;if(!!e&&!!this.rb){for(r=new _D(this.rb);r.e!=r.i.gc();){t=iyn(r);G$(t,364)&&(bG(t,364).w=null)}}_mn(this,64,e)};lce.ii=function n(){return rZn(),rit};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:Qun(this,null);return;case 2:Yun(this,null);return;case 3:Jun(this,null);return;case 4:VIn(this,null);return;case 5:!this.rb&&(this.rb=new jz(this,yrt,this));NVn(this.rb);return;case 6:!this.vb&&(this.vb=new s_(z7e,this,6,7));NVn(this.vb);return}wdn(this,e-sQ((rZn(),rit)),uin((t=bG(Ron(this,16),29),!t?rit:t),e))};lce.pi=function n(){ljn(this)};lce.vi=function n(){return!this.rb&&(this.rb=new jz(this,yrt,this)),this.rb};lce.wi=function n(){return this.sb};lce.xi=function n(){return this.ub};lce.yi=function n(){return this.xb};lce.zi=function n(){return this.yb};lce.Ai=function n(e){this.ub=e};lce.Ib=function n(){var e;if((this.Db&64)!=0)return ndn(this);e=new gx(ndn(this));e.a+=" (nsURI: ";ZA(e,this.yb);e.a+=", nsPrefix: ";ZA(e,this.xb);e.a+=")";return e.a};lce.xb=null;lce.yb=null;var Int;var Ont=YW(Jee,"EPackageImpl",184);wDn(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},sDn);lce.q=false;lce.r=false;var Ant=false;var Lnt=YW(Yee,"ElkGraphPackageImpl",569);wDn(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},oo);lce.Ah=function n(e){return Zjn(this,e)};lce.Lh=function n(e,t,r){switch(e){case 7:return B0(this);case 8:return this.a}return wvn(this,e,t,r)};lce.Sh=function n(e,t,r){var i;switch(t){case 7:!!this.Cb&&(r=(i=this.Db>>16,i>=0?Zjn(this,r):this.Cb.Th(this,-1-i,null,r)));return kV(this,bG(e,167),r)}return ACn(this,e,t,r)};lce.Uh=function n(e,t,r){if(t==7){return kV(this,null,r)}return Mfn(this,e,t,r)};lce.Wh=function n(e){switch(e){case 7:return!!B0(this);case 8:return!T_("",this.a)}return Uvn(this,e)};lce.bi=function n(e,t){switch(e){case 7:jKn(this,bG(t,167));return;case 8:Zcn(this,TK(t));return}$Sn(this,e,t)};lce.ii=function n(){return cYn(),ent};lce.ki=function n(e){switch(e){case 7:jKn(this,null);return;case 8:Zcn(this,"");return}Cpn(this,e)};lce.Ib=function n(){return YOn(this)};lce.a="";var Nnt=YW(Yee,"ElkLabelImpl",366);wDn(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Xk);lce.Ah=function n(e){return dEn(this,e)};lce.Lh=function n(e,t,r){switch(e){case 9:return!this.c&&(this.c=new gz(ont,this,9,9)),this.c;case 10:return!this.a&&(this.a=new gz(snt,this,10,11)),this.a;case 11:return H0(this);case 12:return!this.b&&(this.b=new gz(H7e,this,12,3)),this.b;case 13:return Qx(),!this.a&&(this.a=new gz(snt,this,10,11)),this.a.i>0?true:false}return AMn(this,e,t,r)};lce.Sh=function n(e,t,r){var i;switch(t){case 9:return!this.c&&(this.c=new gz(ont,this,9,9)),Kpn(this.c,e,r);case 10:return!this.a&&(this.a=new gz(snt,this,10,11)),Kpn(this.a,e,r);case 11:!!this.Cb&&(r=(i=this.Db>>16,i>=0?dEn(this,r):this.Cb.Th(this,-1-i,null,r)));return a_(this,bG(e,27),r);case 12:return!this.b&&(this.b=new gz(H7e,this,12,3)),Kpn(this.b,e,r)}return cSn(this,e,t,r)};lce.Uh=function n(e,t,r){switch(t){case 9:return!this.c&&(this.c=new gz(ont,this,9,9)),Kyn(this.c,e,r);case 10:return!this.a&&(this.a=new gz(snt,this,10,11)),Kyn(this.a,e,r);case 11:return a_(this,null,r);case 12:return!this.b&&(this.b=new gz(H7e,this,12,3)),Kyn(this.b,e,r)}return uSn(this,e,t,r)};lce.Wh=function n(e){switch(e){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!H0(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new gz(snt,this,10,11)),this.a.i>0}return sln(this,e)};lce.bi=function n(e,t){switch(e){case 9:!this.c&&(this.c=new gz(ont,this,9,9));NVn(this.c);!this.c&&(this.c=new gz(ont,this,9,9));NW(this.c,bG(t,16));return;case 10:!this.a&&(this.a=new gz(snt,this,10,11));NVn(this.a);!this.a&&(this.a=new gz(snt,this,10,11));NW(this.a,bG(t,16));return;case 11:WRn(this,bG(t,27));return;case 12:!this.b&&(this.b=new gz(H7e,this,12,3));NVn(this.b);!this.b&&(this.b=new gz(H7e,this,12,3));NW(this.b,bG(t,16));return}ADn(this,e,t)};lce.ii=function n(){return cYn(),tnt};lce.ki=function n(e){switch(e){case 9:!this.c&&(this.c=new gz(ont,this,9,9));NVn(this.c);return;case 10:!this.a&&(this.a=new gz(snt,this,10,11));NVn(this.a);return;case 11:WRn(this,null);return;case 12:!this.b&&(this.b=new gz(H7e,this,12,3));NVn(this.b);return}Syn(this,e)};lce.Ib=function n(){return YBn(this)};var $nt=YW(Yee,"ElkNodeImpl",207);wDn(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Vk);lce.Ah=function n(e){return nEn(this,e)};lce.Lh=function n(e,t,r){if(e==9){return d0(this)}return AMn(this,e,t,r)};lce.Sh=function n(e,t,r){var i;switch(t){case 9:!!this.Cb&&(r=(i=this.Db>>16,i>=0?nEn(this,r):this.Cb.Th(this,-1-i,null,r)));return cF(this,bG(e,27),r)}return cSn(this,e,t,r)};lce.Uh=function n(e,t,r){if(t==9){return cF(this,null,r)}return uSn(this,e,t,r)};lce.Wh=function n(e){if(e==9){return!!d0(this)}return sln(this,e)};lce.bi=function n(e,t){switch(e){case 9:RRn(this,bG(t,27));return}ADn(this,e,t)};lce.ii=function n(){return cYn(),rnt};lce.ki=function n(e){switch(e){case 9:RRn(this,null);return}Syn(this,e)};lce.Ib=function n(){return ZBn(this)};var Dnt=YW(Yee,"ElkPortImpl",193);var xnt=$q(Ete,"BasicEMap/Entry");wDn(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},fo);lce.Fb=function n(e){return this===e};lce.ld=function n(){return this.b};lce.Hb=function n(){return Bx(this)};lce.Di=function n(e){nun(this,bG(e,149))};lce.Lh=function n(e,t,r){switch(e){case 0:return this.b;case 1:return this.c}return _yn(this,e,t,r)};lce.Wh=function n(e){switch(e){case 0:return!!this.b;case 1:return this.c!=null}return nyn(this,e)};lce.bi=function n(e,t){switch(e){case 0:nun(this,bG(t,149));return;case 1:Vcn(this,t);return}wLn(this,e,t)};lce.ii=function n(){return cYn(),int};lce.ki=function n(e){switch(e){case 0:nun(this,null);return;case 1:Vcn(this,null);return}lAn(this,e)};lce.Bi=function n(){var e;if(this.a==-1){e=this.b;this.a=!e?0:Vun(e)}return this.a};lce.md=function n(){return this.c};lce.Ci=function n(e){this.a=e};lce.nd=function n(e){var t;t=this.c;Vcn(this,e);return t};lce.Ib=function n(){var e;if((this.Db&64)!=0)return jxn(this);e=new nT;tL(tL(tL(e,this.b?this.b.Pg():CZn),J4n),lx(this.c));return e.a};lce.a=-1;lce.c=null;var Rnt=YW(Yee,"ElkPropertyToValueMapEntryImpl",1122);wDn(996,1,{},bo);var Knt=YW(Cte,"JsonAdapter",996);wDn(216,63,E1n,AM);var Fnt=YW(Cte,"JsonImportException",216);wDn(868,1,{},iEn);var _nt=YW(Cte,"JsonImporter",868);wDn(903,1,{},eA);var Bnt=YW(Cte,"JsonImporter/lambda$0$Type",903);wDn(904,1,{},tA);var Hnt=YW(Cte,"JsonImporter/lambda$1$Type",904);wDn(912,1,{},rp);var Unt=YW(Cte,"JsonImporter/lambda$10$Type",912);wDn(914,1,{},rA);var Gnt=YW(Cte,"JsonImporter/lambda$11$Type",914);wDn(915,1,{},iA);var qnt=YW(Cte,"JsonImporter/lambda$12$Type",915);wDn(921,1,{},AY);var Xnt=YW(Cte,"JsonImporter/lambda$13$Type",921);wDn(920,1,{},LY);var Vnt=YW(Cte,"JsonImporter/lambda$14$Type",920);wDn(916,1,{},aA);var znt=YW(Cte,"JsonImporter/lambda$15$Type",916);wDn(917,1,{},cA);var Wnt=YW(Cte,"JsonImporter/lambda$16$Type",917);wDn(918,1,{},uA);var Qnt=YW(Cte,"JsonImporter/lambda$17$Type",918);wDn(919,1,{},sA);var Jnt=YW(Cte,"JsonImporter/lambda$18$Type",919);wDn(924,1,{},ip);var Ynt=YW(Cte,"JsonImporter/lambda$19$Type",924);wDn(905,1,{},ap);var Znt=YW(Cte,"JsonImporter/lambda$2$Type",905);wDn(922,1,{},cp);var net=YW(Cte,"JsonImporter/lambda$20$Type",922);wDn(923,1,{},up);var eet=YW(Cte,"JsonImporter/lambda$21$Type",923);wDn(927,1,{},sp);var tet=YW(Cte,"JsonImporter/lambda$22$Type",927);wDn(925,1,{},op);var ret=YW(Cte,"JsonImporter/lambda$23$Type",925);wDn(926,1,{},fp);var iet=YW(Cte,"JsonImporter/lambda$24$Type",926);wDn(929,1,{},hp);var aet=YW(Cte,"JsonImporter/lambda$25$Type",929);wDn(928,1,{},lp);var cet=YW(Cte,"JsonImporter/lambda$26$Type",928);wDn(930,1,WZn,oA);lce.Cd=function n(e){Men(this.b,this.a,TK(e))};var uet=YW(Cte,"JsonImporter/lambda$27$Type",930);wDn(931,1,WZn,fA);lce.Cd=function n(e){Ten(this.b,this.a,TK(e))};var set=YW(Cte,"JsonImporter/lambda$28$Type",931);wDn(932,1,{},hA);var oet=YW(Cte,"JsonImporter/lambda$29$Type",932);wDn(908,1,{},bp);var fet=YW(Cte,"JsonImporter/lambda$3$Type",908);wDn(933,1,{},lA);var het=YW(Cte,"JsonImporter/lambda$30$Type",933);wDn(934,1,{},wp);var bet=YW(Cte,"JsonImporter/lambda$31$Type",934);wDn(935,1,{},dp);var wet=YW(Cte,"JsonImporter/lambda$32$Type",935);wDn(936,1,{},gp);var det=YW(Cte,"JsonImporter/lambda$33$Type",936);wDn(937,1,{},vp);var get=YW(Cte,"JsonImporter/lambda$34$Type",937);wDn(870,1,{},pp);var vet=YW(Cte,"JsonImporter/lambda$35$Type",870);wDn(941,1,{},_U);var pet=YW(Cte,"JsonImporter/lambda$36$Type",941);wDn(938,1,WZn,mp);lce.Cd=function n(e){Z8(this.a,bG(e,377))};var met=YW(Cte,"JsonImporter/lambda$37$Type",938);wDn(939,1,WZn,wA);lce.Cd=function n(e){jA(this.a,this.b,bG(e,166))};var ket=YW(Cte,"JsonImporter/lambda$38$Type",939);wDn(940,1,WZn,dA);lce.Cd=function n(e){EA(this.a,this.b,bG(e,166))};var yet=YW(Cte,"JsonImporter/lambda$39$Type",940);wDn(906,1,{},kp);var Met=YW(Cte,"JsonImporter/lambda$4$Type",906);wDn(942,1,WZn,yp);lce.Cd=function n(e){n9(this.a,bG(e,8))};var Tet=YW(Cte,"JsonImporter/lambda$40$Type",942);wDn(907,1,{},Mp);var jet=YW(Cte,"JsonImporter/lambda$5$Type",907);wDn(911,1,{},Tp);var Eet=YW(Cte,"JsonImporter/lambda$6$Type",911);wDn(909,1,{},jp);var Set=YW(Cte,"JsonImporter/lambda$7$Type",909);wDn(910,1,{},Ep);var Pet=YW(Cte,"JsonImporter/lambda$8$Type",910);wDn(913,1,{},Sp);var Cet=YW(Cte,"JsonImporter/lambda$9$Type",913);wDn(961,1,WZn,Pp);lce.Cd=function n(e){MQ(this.a,new eQ(TK(e)))};var Iet=YW(Cte,"JsonMetaDataConverter/lambda$0$Type",961);wDn(962,1,WZn,Cp);lce.Cd=function n(e){AW(this.a,bG(e,245))};var Oet=YW(Cte,"JsonMetaDataConverter/lambda$1$Type",962);wDn(963,1,WZn,Ip);lce.Cd=function n(e){T2(this.a,bG(e,143))};var Aet=YW(Cte,"JsonMetaDataConverter/lambda$2$Type",963);wDn(964,1,WZn,Op);lce.Cd=function n(e){LW(this.a,bG(e,170))};var Let=YW(Cte,"JsonMetaDataConverter/lambda$3$Type",964);wDn(245,22,{3:1,34:1,22:1,245:1},gA);var Net,$et,Det,xet,Ret,Ket,Fet,_et;var Bet=qan(g3n,"GraphFeature",245,joe,pin,eG);var Het;wDn(11,1,{34:1,149:1},Np,bF,TL,qN);lce.Fd=function n(e){return kD(this,bG(e,149))};lce.Fb=function n(e){return e1(this,e)};lce.Sg=function n(){return tyn(this)};lce.Pg=function n(){return this.b};lce.Hb=function n(){return Mln(this.b)};lce.Ib=function n(){return this.b};var Uet=YW(g3n,"Property",11);wDn(671,1,l2n,Ap);lce.Ne=function n(e,t){return mgn(this,bG(e,96),bG(t,96))};lce.Fb=function n(e){return this===e};lce.Oe=function n(){return new id(this)};var Get=YW(g3n,"PropertyHolderComparator",671);wDn(709,1,NZn,Lp);lce.Nb=function n(e){Az(this,e)};lce.Pb=function n(){return Pen(this)};lce.Qb=function n(){Bj()};lce.Ob=function n(){return!!this.a};var qet=YW(Ute,"ElkGraphUtil/AncestorIterator",709);var Xet=$q(Ete,"EList");wDn(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1});lce.bd=function n(e,t){Fdn(this,e,t)};lce.Fc=function n(e){return cen(this,e)};lce.cd=function n(e,t){return phn(this,e,t)};lce.Gc=function n(e){return NW(this,e)};lce.Ii=function n(){return new aR(this)};lce.Ji=function n(){return new cR(this)};lce.Ki=function n(e){return dcn(this,e)};lce.Li=function n(){return true};lce.Mi=function n(e,t){};lce.Ni=function n(){};lce.Oi=function n(e,t){xnn(this,e,t)};lce.Pi=function n(e,t,r){};lce.Qi=function n(e,t){};lce.Ri=function n(e,t,r){};lce.Fb=function n(e){return W_n(this,e)};lce.Hb=function n(){return Xfn(this)};lce.Si=function n(){return false};lce.Kc=function n(){return new _D(this)};lce.ed=function n(){return new iR(this)};lce.fd=function n(e){var t;t=this.gc();if(e<0||e>t)throw dm(new m_(e,t));return new eW(this,e)};lce.Ui=function n(e,t){this.Ti(e,this.dd(t))};lce.Mc=function n(e){return orn(this,e)};lce.Wi=function n(e,t){return t};lce.hd=function n(e,t){return zyn(this,e,t)};lce.Ib=function n(){return Cvn(this)};lce.Yi=function n(){return true};lce.Zi=function n(e,t){return yln(this,t)};var Vet=YW(Ete,"AbstractEList",70);wDn(66,70,zte,vo,_in,Vsn);lce.Ei=function n(e,t){return LCn(this,e,t)};lce.Fi=function n(e){return eTn(this,e)};lce.Gi=function n(e,t){udn(this,e,t)};lce.Hi=function n(e){Y9(this,e)};lce.$i=function n(e){return Den(this,e)};lce.$b=function n(){Z9(this)};lce.Hc=function n(e){return wSn(this,e)};lce.Xb=function n(e){return Yin(this,e)};lce._i=function n(e){var t,r,i;++this.j;r=this.g==null?0:this.g.length;if(e>r){i=this.g;t=r+(r/2|0)+4;t=0){this.gd(t);return true}else{return false}};lce.Xi=function n(e,t){return this.Dj(e,this.Zi(e,t))};lce.gc=function n(){return this.Ej()};lce.Pc=function n(){return this.Fj()};lce.Qc=function n(e){return this.Gj(e)};lce.Ib=function n(){return this.Hj()};var ftt=YW(Ete,"DelegatingEList",2093);wDn(2094,2093,Kre);lce.Ei=function n(e,t){return kGn(this,e,t)};lce.Fi=function n(e){return this.Ei(this.Ej(),e)};lce.Gi=function n(e,t){fDn(this,e,t)};lce.Hi=function n(e){A$n(this,e)};lce.Li=function n(){return!this.Mj()};lce.$b=function n(){qVn(this)};lce.Ij=function n(e,t,r,i,a){return new YZ(this,e,t,r,i,a)};lce.Jj=function n(e){Pon(this.jj(),e)};lce.Kj=function n(){return null};lce.Lj=function n(){return-1};lce.jj=function n(){return null};lce.Mj=function n(){return false};lce.Nj=function n(e,t){return t};lce.Oj=function n(e,t){return t};lce.Pj=function n(){return false};lce.Qj=function n(){return!this.Aj()};lce.Ti=function n(e,t){var r,i;if(this.Pj()){i=this.Qj();r=MIn(this,e,t);this.Jj(this.Ij(7,Bwn(t),r,e,i));return r}else{return MIn(this,e,t)}};lce.gd=function n(e){var t,r,i,a;if(this.Pj()){r=null;i=this.Qj();t=this.Ij(4,a=Dq(this,e),null,e,i);if(this.Mj()&&!!a){r=this.Oj(a,r);if(!r){this.Jj(t)}else{r.nj(t);r.oj()}}else{if(!r){this.Jj(t)}else{r.nj(t);r.oj()}}return a}else{a=Dq(this,e);if(this.Mj()&&!!a){r=this.Oj(a,null);!!r&&r.oj()}return a}};lce.Xi=function n(e,t){return yGn(this,e,t)};var htt=YW(Hee,"DelegatingNotifyingListImpl",2094);wDn(152,1,Fre);lce.nj=function n(e){return EPn(this,e)};lce.oj=function n(){Ntn(this)};lce.gj=function n(){return this.d};lce.Kj=function n(){return null};lce.Rj=function n(){return null};lce.hj=function n(e){return-1};lce.ij=function n(){return DFn(this)};lce.jj=function n(){return null};lce.kj=function n(){return xFn(this)};lce.lj=function n(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o};lce.Sj=function n(){return false};lce.mj=function n(e){var t,r,i,a,c,u,s,o,f,h,l;switch(this.d){case 1:case 2:{a=e.gj();switch(a){case 1:case 2:{c=e.jj();if(BA(c)===BA(this.jj())&&this.hj(null)==e.hj(null)){this.g=e.ij();e.gj()==1&&(this.d=1);return true}}}}case 4:{a=e.gj();switch(a){case 4:{c=e.jj();if(BA(c)===BA(this.jj())&&this.hj(null)==e.hj(null)){f=Ezn(this);o=this.o<0?this.o<-2?-2-this.o-1:-1:this.o;u=e.lj();this.d=6;l=new _in(2);if(o<=u){cen(l,this.n);cen(l,e.kj());this.g=zfn(fT(Ght,1),z1n,28,15,[this.o=o,u+1])}else{cen(l,e.kj());cen(l,this.n);this.g=zfn(fT(Ght,1),z1n,28,15,[this.o=u,o])}this.n=l;f||(this.o=-2-this.o-1);return true}break}}break}case 6:{a=e.gj();switch(a){case 4:{c=e.jj();if(BA(c)===BA(this.jj())&&this.hj(null)==e.hj(null)){f=Ezn(this);u=e.lj();h=bG(this.g,53);i=$nn(Ght,z1n,28,h.length+1,15,1);t=0;while(t>>0,t.toString(16)));i.a+=" (eventType: ";switch(this.d){case 1:{i.a+="SET";break}case 2:{i.a+="UNSET";break}case 3:{i.a+="ADD";break}case 5:{i.a+="ADD_MANY";break}case 4:{i.a+="REMOVE";break}case 6:{i.a+="REMOVE_MANY";break}case 7:{i.a+="MOVE";break}case 8:{i.a+="REMOVING_ADAPTER";break}case 9:{i.a+="RESOLVE";break}default:{xj(i,this.d);break}}MHn(this)&&(i.a+=", touch: true",i);i.a+=", position: ";xj(i,this.o<0?this.o<-2?-2-this.o-1:-1:this.o);i.a+=", notifier: ";YA(i,this.jj());i.a+=", feature: ";YA(i,this.Kj());i.a+=", oldValue: ";YA(i,xFn(this));i.a+=", newValue: ";if(this.d==6&&G$(this.g,53)){r=bG(this.g,53);i.a+="[";for(e=0;e10){if(!this.b||this.c.j!=this.a){this.b=new lX(this);this.a=this.j}return fS(this.b,e)}else{return wSn(this,e)}};lce.Yi=function n(){return true};lce.a=0;var ptt=YW(Ete,"AbstractEList/1",966);wDn(302,77,p0n,m_);var mtt=YW(Ete,"AbstractEList/BasicIndexOutOfBoundsException",302);wDn(37,1,NZn,_D);lce.Nb=function n(e){Az(this,e)};lce.Xj=function n(){if(this.i.j!=this.f){throw dm(new Gm)}};lce.Yj=function n(){return iyn(this)};lce.Ob=function n(){return this.e!=this.i.gc()};lce.Pb=function n(){return this.Yj()};lce.Qb=function n(){FSn(this)};lce.e=0;lce.f=0;lce.g=-1;var ktt=YW(Ete,"AbstractEList/EIterator",37);wDn(286,37,HZn,iR,eW);lce.Qb=function n(){FSn(this)};lce.Rb=function n(e){Apn(this,e)};lce.Zj=function n(){var e;try{e=this.d.Xb(--this.e);this.Xj();this.g=this.e;return e}catch(t){t=Ofn(t);if(G$(t,77)){this.Xj();throw dm(new Xm)}else throw dm(t)}};lce.$j=function n(e){fTn(this,e)};lce.Sb=function n(){return this.e!=0};lce.Tb=function n(){return this.e};lce.Ub=function n(){return this.Zj()};lce.Vb=function n(){return this.e-1};lce.Wb=function n(e){this.$j(e)};var ytt=YW(Ete,"AbstractEList/EListIterator",286);wDn(355,37,NZn,aR);lce.Yj=function n(){return ayn(this)};lce.Qb=function n(){throw dm(new Um)};var Mtt=YW(Ete,"AbstractEList/NonResolvingEIterator",355);wDn(398,286,HZn,cR,K_);lce.Rb=function n(e){throw dm(new Um)};lce.Yj=function n(){var e;try{e=this.c.Vi(this.e);this.Xj();this.g=this.e++;return e}catch(t){t=Ofn(t);if(G$(t,77)){this.Xj();throw dm(new Xm)}else throw dm(t)}};lce.Zj=function n(){var e;try{e=this.c.Vi(--this.e);this.Xj();this.g=this.e;return e}catch(t){t=Ofn(t);if(G$(t,77)){this.Xj();throw dm(new Xm)}else throw dm(t)}};lce.Qb=function n(){throw dm(new Um)};lce.Wb=function n(e){throw dm(new Um)};var Ttt=YW(Ete,"AbstractEList/NonResolvingEListIterator",398);wDn(2080,70,Hre);lce.Ei=function n(e,t){var r,i,a,c,u,s,o,f,h,l,b;a=t.gc();if(a!=0){f=bG(Ron(this.a,4),129);h=f==null?0:f.length;b=h+a;i=Yln(this,b);l=h-e;l>0&&QGn(f,e,i,e+a,l);o=t.Kc();for(u=0;ur)throw dm(new m_(e,r));return new QJ(this,e)};lce.$b=function n(){var e,t;++this.j;e=bG(Ron(this.a,4),129);t=e==null?0:e.length;Lkn(this,null);xnn(this,t,e)};lce.Hc=function n(e){var t,r,i,a,c;t=bG(Ron(this.a,4),129);if(t!=null){if(e!=null){for(i=t,a=0,c=i.length;a=r)throw dm(new m_(e,r));return t[e]};lce.dd=function n(e){var t,r,i;t=bG(Ron(this.a,4),129);if(t!=null){if(e!=null){for(r=0,i=t.length;rr)throw dm(new m_(e,r));return new WJ(this,e)};lce.Ti=function n(e,t){var r,i,a;r=vmn(this);a=r==null?0:r.length;if(e>=a)throw dm(new kM(qte+e+Xte+a));if(t>=a)throw dm(new kM(Vte+t+Xte+a));i=r[t];if(e!=t){e0&&QGn(e,0,t,0,r);return t};lce.Qc=function n(e){var t,r,i;t=bG(Ron(this.a,4),129);i=t==null?0:t.length;if(i>0){if(e.lengthi&&bQ(e,i,null);return e};var jtt;var Ett=YW(Ete,"ArrayDelegatingEList",2080);wDn(1051,37,NZn,P9);lce.Xj=function n(){if(this.b.j!=this.f||BA(bG(Ron(this.b.a,4),129))!==BA(this.a)){throw dm(new Gm)}};lce.Qb=function n(){FSn(this);this.a=bG(Ron(this.b.a,4),129)};var Stt=YW(Ete,"ArrayDelegatingEList/EIterator",1051);wDn(722,286,HZn,Mz,WJ);lce.Xj=function n(){if(this.b.j!=this.f||BA(bG(Ron(this.b.a,4),129))!==BA(this.a)){throw dm(new Gm)}};lce.$j=function n(e){fTn(this,e);this.a=bG(Ron(this.b.a,4),129)};lce.Qb=function n(){FSn(this);this.a=bG(Ron(this.b.a,4),129)};var Ptt=YW(Ete,"ArrayDelegatingEList/EListIterator",722);wDn(1052,355,NZn,C9);lce.Xj=function n(){if(this.b.j!=this.f||BA(bG(Ron(this.b.a,4),129))!==BA(this.a)){throw dm(new Gm)}};var Ctt=YW(Ete,"ArrayDelegatingEList/NonResolvingEIterator",1052);wDn(723,398,HZn,Tz,QJ);lce.Xj=function n(){if(this.b.j!=this.f||BA(bG(Ron(this.b.a,4),129))!==BA(this.a)){throw dm(new Gm)}};var Itt=YW(Ete,"ArrayDelegatingEList/NonResolvingEListIterator",723);wDn(615,302,p0n,ML);var Ott=YW(Ete,"BasicEList/BasicIndexOutOfBoundsException",615);wDn(710,66,zte,xA);lce.bd=function n(e,t){throw dm(new Um)};lce.Fc=function n(e){throw dm(new Um)};lce.cd=function n(e,t){throw dm(new Um)};lce.Gc=function n(e){throw dm(new Um)};lce.$b=function n(){throw dm(new Um)};lce._i=function n(e){throw dm(new Um)};lce.Kc=function n(){return this.Ii()};lce.ed=function n(){return this.Ji()};lce.fd=function n(e){return this.Ki(e)};lce.Ti=function n(e,t){throw dm(new Um)};lce.Ui=function n(e,t){throw dm(new Um)};lce.gd=function n(e){throw dm(new Um)};lce.Mc=function n(e){throw dm(new Um)};lce.hd=function n(e,t){throw dm(new Um)};var Att=YW(Ete,"BasicEList/UnmodifiableEList",710);wDn(721,1,{3:1,20:1,16:1,15:1,61:1,597:1});lce.bd=function n(e,t){rD(this,e,bG(t,44))};lce.Fc=function n(e){return rK(this,bG(e,44))};lce.Jc=function n(e){Y8(this,e)};lce.Xb=function n(e){return bG(Yin(this.c,e),136)};lce.Ti=function n(e,t){return bG(this.c.Ti(e,t),44)};lce.Ui=function n(e,t){iD(this,e,bG(t,44))};lce.Lc=function n(){return new gX(null,new d3(this,16))};lce.gd=function n(e){return bG(this.c.gd(e),44)};lce.hd=function n(e,t){return OW(this,e,bG(t,44))};lce.jd=function n(e){Run(this,e)};lce.Nc=function n(){return new d3(this,16)};lce.Oc=function n(){return new gX(null,new d3(this,16))};lce.cd=function n(e,t){return this.c.cd(e,t)};lce.Gc=function n(e){return this.c.Gc(e)};lce.$b=function n(){this.c.$b()};lce.Hc=function n(e){return this.c.Hc(e)};lce.Ic=function n(e){return Sfn(this.c,e)};lce._j=function n(){var e,t,r;if(this.d==null){this.d=$nn(zet,Ure,66,2*this.f+1,0,1);r=this.e;this.f=0;for(t=this.c.Kc();t.e!=t.i.gc();){e=bG(t.Yj(),136);pMn(this,e)}this.e=r}};lce.Fb=function n(e){return V_(this,e)};lce.Hb=function n(){return Xfn(this.c)};lce.dd=function n(e){return this.c.dd(e)};lce.ak=function n(){this.c=new $p(this)};lce.dc=function n(){return this.f==0};lce.Kc=function n(){return this.c.Kc()};lce.ed=function n(){return this.c.ed()};lce.fd=function n(e){return this.c.fd(e)};lce.bk=function n(){return Cnn(this)};lce.ck=function n(e,t,r){return new BU(e,t,r)};lce.dk=function n(){return new mo};lce.Mc=function n(e){return bcn(this,e)};lce.gc=function n(){return this.f};lce.kd=function n(e,t){return new N2(this.c,e,t)};lce.Pc=function n(){return this.c.Pc()};lce.Qc=function n(e){return this.c.Qc(e)};lce.Ib=function n(){return Cvn(this.c)};lce.e=0;lce.f=0;var Ltt=YW(Ete,"BasicEMap",721);wDn(1046,66,zte,$p);lce.Mi=function n(e,t){ek(this,bG(t,136))};lce.Pi=function n(e,t,r){var i;++(i=this,bG(t,136),i).a.e};lce.Qi=function n(e,t){tk(this,bG(t,136))};lce.Ri=function n(e,t,r){gR(this,bG(t,136),bG(r,136))};lce.Oi=function n(e,t){Don(this.a)};var Ntt=YW(Ete,"BasicEMap/1",1046);wDn(1047,66,zte,mo);lce.aj=function n(e){return $nn(Htt,Gre,621,e,0,1)};var $tt=YW(Ete,"BasicEMap/2",1047);wDn(1048,RZn,KZn,Dp);lce.$b=function n(){this.a.c.$b()};lce.Hc=function n(e){return Spn(this.a,e)};lce.Kc=function n(){return this.a.f==0?(OK(),Gtt.a):new hj(this.a)};lce.Mc=function n(e){var t;t=this.a.f;Amn(this.a,e);return this.a.f!=t};lce.gc=function n(){return this.a.f};var Dtt=YW(Ete,"BasicEMap/3",1048);wDn(1049,31,xZn,xp);lce.$b=function n(){this.a.c.$b()};lce.Hc=function n(e){return Q_n(this.a,e)};lce.Kc=function n(){return this.a.f==0?(OK(),Gtt.a):new lj(this.a)};lce.gc=function n(){return this.a.f};var xtt=YW(Ete,"BasicEMap/4",1049);wDn(1050,RZn,KZn,Rp);lce.$b=function n(){this.a.c.$b()};lce.Hc=function n(e){var t,r,i,a,c,u,s,o,f;if(this.a.f>0&&G$(e,44)){this.a._j();o=bG(e,44);s=o.ld();a=s==null?0:Vun(s);c=sF(this.a,a);t=this.a.d[c];if(t){r=bG(t.g,379);f=t.i;for(u=0;u"+this.c};lce.a=0;var Htt=YW(Ete,"BasicEMap/EntryImpl",621);wDn(546,1,{},ko);var Utt=YW(Ete,"BasicEMap/View",546);var Gtt;wDn(783,1,{});lce.Fb=function n(e){return LDn((dZ(),lbe),e)};lce.Hb=function n(){return iln((dZ(),lbe))};lce.Ib=function n(){return jIn((dZ(),lbe))};var qtt=YW(Ete,"ECollections/BasicEmptyUnmodifiableEList",783);wDn(1348,1,HZn,yo);lce.Nb=function n(e){Az(this,e)};lce.Rb=function n(e){throw dm(new Um)};lce.Ob=function n(){return false};lce.Sb=function n(){return false};lce.Pb=function n(){throw dm(new Xm)};lce.Tb=function n(){return 0};lce.Ub=function n(){throw dm(new Xm)};lce.Vb=function n(){return-1};lce.Qb=function n(){throw dm(new Um)};lce.Wb=function n(e){throw dm(new Um)};var Xtt=YW(Ete,"ECollections/BasicEmptyUnmodifiableEList/1",1348);wDn(1346,783,{20:1,16:1,15:1,61:1},Wk);lce.bd=function n(e,t){sE()};lce.Fc=function n(e){return oE()};lce.cd=function n(e,t){return fE()};lce.Gc=function n(e){return hE()};lce.$b=function n(){lE()};lce.Hc=function n(e){return false};lce.Ic=function n(e){return false};lce.Jc=function n(e){Y8(this,e)};lce.Xb=function n(e){return lL((dZ(),lbe,e)),null};lce.dd=function n(e){return-1};lce.dc=function n(){return true};lce.Kc=function n(){return this.a};lce.ed=function n(){return this.a};lce.fd=function n(e){return this.a};lce.Ti=function n(e,t){return bE()};lce.Ui=function n(e,t){wE()};lce.Lc=function n(){return new gX(null,new d3(this,16))};lce.gd=function n(e){return dE()};lce.Mc=function n(e){return gE()};lce.hd=function n(e,t){return vE()};lce.gc=function n(){return 0};lce.jd=function n(e){Run(this,e)};lce.Nc=function n(){return new d3(this,16)};lce.Oc=function n(){return new gX(null,new d3(this,16))};lce.kd=function n(e,t){return dZ(),new N2(lbe,e,t)};lce.Pc=function n(){return AV((dZ(),lbe))};lce.Qc=function n(e){return dZ(),lTn(lbe,e)};var Vtt=YW(Ete,"ECollections/EmptyUnmodifiableEList",1346);wDn(1347,783,{20:1,16:1,15:1,61:1,597:1},Qk);lce.bd=function n(e,t){sE()};lce.Fc=function n(e){return oE()};lce.cd=function n(e,t){return fE()};lce.Gc=function n(e){return hE()};lce.$b=function n(){lE()};lce.Hc=function n(e){return false};lce.Ic=function n(e){return false};lce.Jc=function n(e){Y8(this,e)};lce.Xb=function n(e){return lL((dZ(),lbe,e)),null};lce.dd=function n(e){return-1};lce.dc=function n(){return true};lce.Kc=function n(){return this.a};lce.ed=function n(){return this.a};lce.fd=function n(e){return this.a};lce.Ti=function n(e,t){return bE()};lce.Ui=function n(e,t){wE()};lce.Lc=function n(){return new gX(null,new d3(this,16))};lce.gd=function n(e){return dE()};lce.Mc=function n(e){return gE()};lce.hd=function n(e,t){return vE()};lce.gc=function n(){return 0};lce.jd=function n(e){Run(this,e)};lce.Nc=function n(){return new d3(this,16)};lce.Oc=function n(){return new gX(null,new d3(this,16))};lce.kd=function n(e,t){return dZ(),new N2(lbe,e,t)};lce.Pc=function n(){return AV((dZ(),lbe))};lce.Qc=function n(e){return dZ(),lTn(lbe,e)};lce.bk=function n(){return dZ(),dZ(),bbe};var ztt=YW(Ete,"ECollections/EmptyUnmodifiableEMap",1347);var Wtt=$q(Ete,"Enumerator");var Qtt;wDn(288,1,{288:1},iBn);lce.Fb=function n(e){var t;if(this===e)return true;if(!G$(e,288))return false;t=bG(e,288);return this.f==t.f&&SX(this.i,t.i)&&EX(this.a,(this.f&256)!=0?(t.f&256)!=0?t.a:null:(t.f&256)!=0?null:t.a)&&EX(this.d,t.d)&&EX(this.g,t.g)&&EX(this.e,t.e)&&ryn(this,t)};lce.Hb=function n(){return this.f};lce.Ib=function n(){return _Un(this)};lce.f=0;var Jtt=0,Ytt=0,Ztt=0,nrt=0,ert=0,trt=0,rrt=0,irt=0,art=0,crt,urt=0,srt=0,ort=0,frt=0,hrt,lrt;var brt=YW(Ete,"URI",288);wDn(1121,45,_0n,Jk);lce.zc=function n(e,t){return bG(o2(this,TK(e),bG(t,288)),288)};var wrt=YW(Ete,"URI/URICache",1121);wDn(506,66,zte,lo,FX);lce.Si=function n(){return true};var drt=YW(Ete,"UniqueEList",506);wDn(590,63,E1n,Ltn);var grt=YW(Ete,"WrappedException",590);var vrt=$q(Cee,Vre);var prt=$q(Cee,zre);var mrt=$q(Cee,Wre);var krt=$q(Cee,Qre);var yrt=$q(Cee,Jre);var Mrt=$q(Cee,"EClass");var Trt=$q(Cee,"EDataType");var jrt;wDn(1233,45,_0n,Yk);lce.xc=function n(e){return HA(e)?z1(this,e):_A(GX(this.f,e))};var Ert=YW(Cee,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233);var Srt=$q(Cee,"EEnum");var Prt=$q(Cee,Yre);var Crt=$q(Cee,Zre);var Irt=$q(Cee,nie);var Ort;var Art=$q(Cee,eie);var Lrt=$q(Cee,tie);wDn(1042,1,{},ho);lce.Ib=function n(){return"NIL"};var Nrt=YW(Cee,"EStructuralFeature/Internal/DynamicValueHolder/1",1042);var $rt;wDn(1041,45,_0n,Zk);lce.xc=function n(e){return HA(e)?z1(this,e):_A(GX(this.f,e))};var Drt=YW(Cee,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041);var xrt=$q(Cee,rie);var Rrt=$q(Cee,"EValidator/PatternMatcher");var Krt;var Frt;var _rt;var Brt,Hrt,Urt,Grt,qrt,Xrt,Vrt,zrt,Wrt,Qrt,Jrt,Yrt,Zrt,nit,eit,tit,rit,iit,ait,cit,uit,sit,oit;var fit=$q(iie,"FeatureMap/Entry");wDn(545,1,{76:1},CA);lce.Lk=function n(){return this.a};lce.md=function n(){return this.b};var hit=YW(Jee,"BasicEObjectImpl/1",545);wDn(1040,1,aie,IA);lce.Fk=function n(e){return z9(this.a,this.b,e)};lce.Qj=function n(){return P0(this.a,this.b)};lce.Wb=function n(e){S0(this.a,this.b,e)};lce.Gk=function n(){ZQ(this.a,this.b)};var lit=YW(Jee,"BasicEObjectImpl/4",1040);wDn(2081,1,{114:1});lce.Mk=function n(e){this.e=e==0?bit:$nn(kce,jZn,1,e,5,1)};lce.li=function n(e){return this.e[e]};lce.mi=function n(e,t){this.e[e]=t};lce.ni=function n(e){this.e[e]=null};lce.Nk=function n(){return this.c};lce.Ok=function n(){throw dm(new Um)};lce.Pk=function n(){throw dm(new Um)};lce.Qk=function n(){return this.d};lce.Rk=function n(){return this.e!=null};lce.Sk=function n(e){this.c=e};lce.Tk=function n(e){throw dm(new Um)};lce.Uk=function n(e){throw dm(new Um)};lce.Vk=function n(e){this.d=e};var bit;var wit=YW(Jee,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081);wDn(192,2081,{114:1},Rl);lce.Ok=function n(){return this.a};lce.Pk=function n(){return this.b};lce.Tk=function n(e){this.a=e};lce.Uk=function n(e){this.b=e};var dit=YW(Jee,"BasicEObjectImpl/EPropertiesHolderImpl",192);wDn(516,99,Qee,Mo);lce.uh=function n(){return this.f};lce.zh=function n(){return this.k};lce.Bh=function n(e,t){this.g=e;this.i=t};lce.Dh=function n(){return(this.j&2)==0?this.ii():this.$h().Nk()};lce.Fh=function n(){return this.i};lce.wh=function n(){return(this.j&1)!=0};lce.Ph=function n(){return this.g};lce.Vh=function n(){return(this.j&4)!=0};lce.$h=function n(){return!this.k&&(this.k=new Rl),this.k};lce.ci=function n(e){this.$h().Sk(e);e?this.j|=2:this.j&=-3};lce.ei=function n(e){this.$h().Uk(e);e?this.j|=4:this.j&=-5};lce.ii=function n(){return(cQ(),_rt).S};lce.i=0;lce.j=1;var git=YW(Jee,"EObjectImpl",516);wDn(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},XG);lce.li=function n(e){return this.e[e]};lce.mi=function n(e,t){this.e[e]=t};lce.ni=function n(e){this.e[e]=null};lce.Dh=function n(){return this.d};lce.Ih=function n(e){return upn(this.d,e)};lce.Kh=function n(){return this.d};lce.Oh=function n(){return this.e!=null};lce.$h=function n(){!this.k&&(this.k=new To);return this.k};lce.ci=function n(e){this.d=e};lce.hi=function n(){var e;if(this.e==null){e=sQ(this.d);this.e=e==0?vit:$nn(kce,jZn,1,e,5,1)}return this};lce.ji=function n(){return 0};var vit;var pit=YW(Jee,"DynamicEObjectImpl",798);wDn(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},Oq);lce.Fb=function n(e){return this===e};lce.Hb=function n(){return Bx(this)};lce.ci=function n(e){this.d=e;this.b=OKn(e,"key");this.c=OKn(e,ute)};lce.Bi=function n(){var e;if(this.a==-1){e=Ytn(this,this.b);this.a=e==null?0:Vun(e)}return this.a};lce.ld=function n(){return Ytn(this,this.b)};lce.md=function n(){return Ytn(this,this.c)};lce.Ci=function n(e){this.a=e};lce.Di=function n(e){S0(this,this.b,e)};lce.nd=function n(e){var t;t=Ytn(this,this.c);S0(this,this.c,e);return t};lce.a=0;var mit=YW(Jee,"DynamicEObjectImpl/BasicEMapEntry",1522);wDn(1523,1,{114:1},To);lce.Mk=function n(e){throw dm(new Um)};lce.li=function n(e){throw dm(new Um)};lce.mi=function n(e,t){throw dm(new Um)};lce.ni=function n(e){throw dm(new Um)};lce.Nk=function n(){throw dm(new Um)};lce.Ok=function n(){return this.a};lce.Pk=function n(){return this.b};lce.Qk=function n(){return this.c};lce.Rk=function n(){throw dm(new Um)};lce.Sk=function n(e){throw dm(new Um)};lce.Tk=function n(e){this.a=e};lce.Uk=function n(e){this.b=e};lce.Vk=function n(e){this.c=e};var kit=YW(Jee,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523);wDn(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},jo);lce.Ah=function n(e){return rEn(this,e)};lce.Lh=function n(e,t,r){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.d;case 2:return r?(!this.b&&(this.b=new JR((rZn(),cit),Nat,this)),this.b):(!this.b&&(this.b=new JR((rZn(),cit),Nat,this)),Cnn(this.b));case 3:return G0(this);case 4:return!this.a&&(this.a=new PD(x7e,this,4)),this.a;case 5:return!this.c&&(this.c=new DD(x7e,this,5)),this.c}return Fen(this,e-sQ((rZn(),Brt)),uin((i=bG(Ron(this,16),29),!i?Brt:i),e),t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 3:!!this.Cb&&(r=(a=this.Db>>16,a>=0?rEn(this,r):this.Cb.Th(this,-1-a,null,r)));return yV(this,bG(e,155),r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Brt):i),t),69),c.wk().zk(this,Fmn(this),t-sQ((rZn(),Brt)),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 2:return!this.b&&(this.b=new JR((rZn(),cit),Nat,this)),W_(this.b,e,r);case 3:return yV(this,null,r);case 4:return!this.a&&(this.a=new PD(x7e,this,4)),Kyn(this.a,e,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Brt):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),Brt)),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!G0(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return v5(this,e-sQ((rZn(),Brt)),uin((t=bG(Ron(this,16),29),!t?Brt:t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:Bq(this,TK(t));return;case 2:!this.b&&(this.b=new JR((rZn(),cit),Nat,this));ton(this.b,t);return;case 3:EKn(this,bG(t,155));return;case 4:!this.a&&(this.a=new PD(x7e,this,4));NVn(this.a);!this.a&&(this.a=new PD(x7e,this,4));NW(this.a,bG(t,16));return;case 5:!this.c&&(this.c=new DD(x7e,this,5));NVn(this.c);!this.c&&(this.c=new DD(x7e,this,5));NW(this.c,bG(t,16));return}vvn(this,e-sQ((rZn(),Brt)),uin((r=bG(Ron(this,16),29),!r?Brt:r),e),t)};lce.ii=function n(){return rZn(),Brt};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:run(this,null);return;case 2:!this.b&&(this.b=new JR((rZn(),cit),Nat,this));this.b.c.$b();return;case 3:EKn(this,null);return;case 4:!this.a&&(this.a=new PD(x7e,this,4));NVn(this.a);return;case 5:!this.c&&(this.c=new DD(x7e,this,5));NVn(this.c);return}wdn(this,e-sQ((rZn(),Brt)),uin((t=bG(Ron(this,16),29),!t?Brt:t),e))};lce.Ib=function n(){return gdn(this)};lce.d=null;var yit=YW(Jee,"EAnnotationImpl",519);wDn(141,721,cie,ven);lce.Gi=function n(e,t){QN(this,e,bG(t,44))};lce.Wk=function n(e,t){return z_(this,bG(e,44),t)};lce.$i=function n(e){return bG(bG(this.c,71).$i(e),136)};lce.Ii=function n(){return bG(this.c,71).Ii()};lce.Ji=function n(){return bG(this.c,71).Ji()};lce.Ki=function n(e){return bG(this.c,71).Ki(e)};lce.Xk=function n(e,t){return W_(this,e,t)};lce.Fk=function n(e){return bG(this.c,79).Fk(e)};lce.ak=function n(){};lce.Qj=function n(){return bG(this.c,79).Qj()};lce.ck=function n(e,t,r){var i;i=bG(Vin(this.b).wi().si(this.b),136);i.Ci(e);i.Di(t);i.nd(r);return i};lce.dk=function n(){return new Zp(this)};lce.Wb=function n(e){ton(this,e)};lce.Gk=function n(){bG(this.c,79).Gk()};var Mit=YW(iie,"EcoreEMap",141);wDn(165,141,cie,JR);lce._j=function n(){var e,t,r,i,a,c;if(this.d==null){c=$nn(zet,Ure,66,2*this.f+1,0,1);for(r=this.c.Kc();r.e!=r.i.gc();){t=bG(r.Yj(),136);i=t.Bi();a=(i&pZn)%c.length;e=c[a];!e&&(e=c[a]=new Zp(this));e.Fc(t)}this.d=c}};var Tit=YW(Jee,"EAnnotationImpl/1",165);wDn(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1});lce.Lh=function n(e,t,r){var i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qx(),(this.Bb&256)!=0?true:false;case 3:return Qx(),(this.Bb&512)!=0?true:false;case 4:return Bwn(this.s);case 5:return Bwn(this.t);case 6:return Qx(),this.Jk()?true:false;case 7:return Qx(),a=this.s,a>=1?true:false;case 8:if(t)return pEn(this);return this.r;case 9:return this.q}return Fen(this,e-sQ(this.ii()),uin((i=bG(Ron(this,16),29),!i?this.ii():i),e),t,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 9:return $W(this,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?this.ii():i),t),69),a.wk().Ak(this,Fmn(this),t-sQ(this.ii()),e,r)};lce.Wh=function n(e){var t,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&SQ(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&SQ(this.q).i==0)}return v5(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.bi=function n(e,t){var r,i;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:this.ui(TK(t));return;case 2:kdn(this,lM(yK(t)));return;case 3:Tdn(this,lM(yK(t)));return;case 4:Lan(this,bG(t,17).a);return;case 5:this.Zk(bG(t,17).a);return;case 8:Ubn(this,bG(t,142));return;case 9:i=NCn(this,bG(t,89),null);!!i&&i.oj();return}vvn(this,e-sQ(this.ii()),uin((r=bG(Ron(this,16),29),!r?this.ii():r),e),t)};lce.ii=function n(){return rZn(),sit};lce.ki=function n(e){var t,r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:this.ui(null);return;case 2:kdn(this,true);return;case 3:Tdn(this,true);return;case 4:Lan(this,0);return;case 5:this.Zk(1);return;case 8:Ubn(this,null);return;case 9:r=NCn(this,null,null);!!r&&r.oj();return}wdn(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.pi=function n(){pEn(this);this.Bb|=1};lce.Hk=function n(){return pEn(this)};lce.Ik=function n(){return this.t};lce.Jk=function n(){var e;return e=this.t,e>1||e==-1};lce.Si=function n(){return(this.Bb&512)!=0};lce.Yk=function n(e,t){return rdn(this,e,t)};lce.Zk=function n(e){Nan(this,e)};lce.Ib=function n(){return R$n(this)};lce.s=0;lce.t=1;var jit=YW(Jee,"ETypedElementImpl",292);wDn(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1});lce.Ah=function n(e){return Mjn(this,e)};lce.Lh=function n(e,t,r){var i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qx(),(this.Bb&256)!=0?true:false;case 3:return Qx(),(this.Bb&512)!=0?true:false;case 4:return Bwn(this.s);case 5:return Bwn(this.t);case 6:return Qx(),this.Jk()?true:false;case 7:return Qx(),a=this.s,a>=1?true:false;case 8:if(t)return pEn(this);return this.r;case 9:return this.q;case 10:return Qx(),(this.Bb&b1n)!=0?true:false;case 11:return Qx(),(this.Bb&oie)!=0?true:false;case 12:return Qx(),(this.Bb&T0n)!=0?true:false;case 13:return this.j;case 14:return KRn(this);case 15:return Qx(),(this.Bb&sie)!=0?true:false;case 16:return Qx(),(this.Bb&VZn)!=0?true:false;case 17:return U0(this)}return Fen(this,e-sQ(this.ii()),uin((i=bG(Ron(this,16),29),!i?this.ii():i),e),t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 17:!!this.Cb&&(r=(a=this.Db>>16,a>=0?Mjn(this,r):this.Cb.Th(this,-1-a,null,r)));return FUn(this,e,17,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?this.ii():i),t),69),c.wk().zk(this,Fmn(this),t-sQ(this.ii()),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 9:return $W(this,r);case 17:return FUn(this,null,17,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?this.ii():i),t),69),a.wk().Ak(this,Fmn(this),t-sQ(this.ii()),e,r)};lce.Wh=function n(e){var t,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&SQ(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&SQ(this.q).i==0);case 10:return(this.Bb&b1n)==0;case 11:return(this.Bb&oie)!=0;case 12:return(this.Bb&T0n)!=0;case 13:return this.j!=null;case 14:return KRn(this)!=null;case 15:return(this.Bb&sie)!=0;case 16:return(this.Bb&VZn)!=0;case 17:return!!U0(this)}return v5(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.bi=function n(e,t){var r,i;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:y2(this,TK(t));return;case 2:kdn(this,lM(yK(t)));return;case 3:Tdn(this,lM(yK(t)));return;case 4:Lan(this,bG(t,17).a);return;case 5:this.Zk(bG(t,17).a);return;case 8:Ubn(this,bG(t,142));return;case 9:i=NCn(this,bG(t,89),null);!!i&&i.oj();return;case 10:ngn(this,lM(yK(t)));return;case 11:rgn(this,lM(yK(t)));return;case 12:egn(this,lM(yK(t)));return;case 13:TA(this,TK(t));return;case 15:tgn(this,lM(yK(t)));return;case 16:Ngn(this,lM(yK(t)));return}vvn(this,e-sQ(this.ii()),uin((r=bG(Ron(this,16),29),!r?this.ii():r),e),t)};lce.ii=function n(){return rZn(),uit};lce.ki=function n(e){var t,r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:G$(this.Cb,90)&&SLn(S9(bG(this.Cb,90)),4);Qun(this,null);return;case 2:kdn(this,true);return;case 3:Tdn(this,true);return;case 4:Lan(this,0);return;case 5:this.Zk(1);return;case 8:Ubn(this,null);return;case 9:r=NCn(this,null,null);!!r&&r.oj();return;case 10:ngn(this,true);return;case 11:rgn(this,false);return;case 12:egn(this,false);return;case 13:this.i=null;vun(this,null);return;case 15:tgn(this,false);return;case 16:Ngn(this,false);return}wdn(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.pi=function n(){XJ(Ktn((yAn(),Vut),this));pEn(this);this.Bb|=1};lce.pk=function n(){return this.f};lce.ik=function n(){return KRn(this)};lce.qk=function n(){return U0(this)};lce.uk=function n(){return null};lce.$k=function n(){return this.k};lce.Lj=function n(){return this.n};lce.vk=function n(){return QSn(this)};lce.wk=function n(){var e,t,r,i,a,c,u,s,o;if(!this.p){r=U0(this);(r.i==null&&uqn(r),r.i).length;i=this.uk();!!i&&sQ(U0(i));a=pEn(this);u=a.kk();e=!u?null:(u.i&1)!=0?u==qht?Uhe:u==Ght?tle:u==Wht?Zhe:u==zht?Yhe:u==Xht?ale:u==Qht?wle:u==Vht?Xhe:Whe:u;t=KRn(this);s=a.ik();Zgn(this);(this.Bb&VZn)!=0&&(!!(c=fSn((yAn(),Vut),r))&&c!=this||!!(c=q3(Ktn(Vut,this))))?this.p=new AA(this,c):this.Jk()?this.al()?!i?(this.Bb&sie)!=0?!e?this.bl()?this.p=new WZ(42,this):this.p=new WZ(0,this):e==vue?this.p=new HU(50,xnt,this):this.bl()?this.p=new HU(43,e,this):this.p=new HU(1,e,this):!e?this.bl()?this.p=new WZ(44,this):this.p=new WZ(2,this):e==vue?this.p=new HU(41,xnt,this):this.bl()?this.p=new HU(45,e,this):this.p=new HU(3,e,this):(this.Bb&sie)!=0?!e?this.bl()?this.p=new o8(46,this,i):this.p=new o8(4,this,i):this.bl()?this.p=new NY(47,e,this,i):this.p=new NY(5,e,this,i):!e?this.bl()?this.p=new o8(48,this,i):this.p=new o8(6,this,i):this.bl()?this.p=new NY(49,e,this,i):this.p=new NY(7,e,this,i):G$(a,156)?e==fit?this.p=new WZ(40,this):(this.Bb&512)!=0?(this.Bb&sie)!=0?!e?this.p=new WZ(8,this):this.p=new HU(9,e,this):!e?this.p=new WZ(10,this):this.p=new HU(11,e,this):(this.Bb&sie)!=0?!e?this.p=new WZ(12,this):this.p=new HU(13,e,this):!e?this.p=new WZ(14,this):this.p=new HU(15,e,this):!i?this.bl()?(this.Bb&sie)!=0?!e?this.p=new WZ(16,this):this.p=new HU(17,e,this):!e?this.p=new WZ(18,this):this.p=new HU(19,e,this):(this.Bb&sie)!=0?!e?this.p=new WZ(20,this):this.p=new HU(21,e,this):!e?this.p=new WZ(22,this):this.p=new HU(23,e,this):(o=i.t,o>1||o==-1?this.bl()?(this.Bb&sie)!=0?!e?this.p=new o8(24,this,i):this.p=new NY(25,e,this,i):!e?this.p=new o8(26,this,i):this.p=new NY(27,e,this,i):(this.Bb&sie)!=0?!e?this.p=new o8(28,this,i):this.p=new NY(29,e,this,i):!e?this.p=new o8(30,this,i):this.p=new NY(31,e,this,i):this.bl()?(this.Bb&sie)!=0?!e?this.p=new o8(32,this,i):this.p=new NY(33,e,this,i):!e?this.p=new o8(34,this,i):this.p=new NY(35,e,this,i):(this.Bb&sie)!=0?!e?this.p=new o8(36,this,i):this.p=new NY(37,e,this,i):!e?this.p=new o8(38,this,i):this.p=new NY(39,e,this,i)):this._k()?this.bl()?this.p=new UU(bG(a,29),this,i):this.p=new q1(bG(a,29),this,i):G$(a,156)?e==fit?this.p=new WZ(40,this):(this.Bb&sie)!=0?!e?this.p=new xY(bG(a,156),t,s,this):this.p=new pV(t,s,this,(Lpn(),u==Ght?Qat:u==qht?qat:u==Xht?Jat:u==Wht?Wat:u==zht?zat:u==Qht?Zat:u==Vht?Xat:u==Uht?Vat:Yat)):!e?this.p=new DY(bG(a,156),t,s,this):this.p=new vV(t,s,this,(Lpn(),u==Ght?Qat:u==qht?qat:u==Xht?Jat:u==Wht?Wat:u==zht?zat:u==Qht?Zat:u==Vht?Xat:u==Uht?Vat:Yat)):this.al()?!i?(this.Bb&sie)!=0?this.bl()?this.p=new fK(bG(a,29),this):this.p=new sK(bG(a,29),this):this.bl()?this.p=new uK(bG(a,29),this):this.p=new cK(bG(a,29),this):(this.Bb&sie)!=0?this.bl()?this.p=new WU(bG(a,29),this,i):this.p=new zU(bG(a,29),this,i):this.bl()?this.p=new VU(bG(a,29),this,i):this.p=new GU(bG(a,29),this,i):this.bl()?!i?(this.Bb&sie)!=0?this.p=new hK(bG(a,29),this):this.p=new oK(bG(a,29),this):(this.Bb&sie)!=0?this.p=new QU(bG(a,29),this,i):this.p=new qU(bG(a,29),this,i):!i?(this.Bb&sie)!=0?this.p=new lK(bG(a,29),this):this.p=new DX(bG(a,29),this):(this.Bb&sie)!=0?this.p=new JU(bG(a,29),this,i):this.p=new XU(bG(a,29),this,i)}return this.p};lce.rk=function n(){return(this.Bb&b1n)!=0};lce._k=function n(){return false};lce.al=function n(){return false};lce.sk=function n(){return(this.Bb&VZn)!=0};lce.xk=function n(){return urn(this)};lce.bl=function n(){return false};lce.tk=function n(){return(this.Bb&sie)!=0};lce.cl=function n(e){this.k=e};lce.ui=function n(e){y2(this,e)};lce.Ib=function n(){return PBn(this)};lce.e=false;lce.n=0;var Eit=YW(Jee,"EStructuralFeatureImpl",462);wDn(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},ny);lce.Lh=function n(e,t,r){var i,a;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qx(),(this.Bb&256)!=0?true:false;case 3:return Qx(),(this.Bb&512)!=0?true:false;case 4:return Bwn(this.s);case 5:return Bwn(this.t);case 6:return Qx(),ANn(this)?true:false;case 7:return Qx(),a=this.s,a>=1?true:false;case 8:if(t)return pEn(this);return this.r;case 9:return this.q;case 10:return Qx(),(this.Bb&b1n)!=0?true:false;case 11:return Qx(),(this.Bb&oie)!=0?true:false;case 12:return Qx(),(this.Bb&T0n)!=0?true:false;case 13:return this.j;case 14:return KRn(this);case 15:return Qx(),(this.Bb&sie)!=0?true:false;case 16:return Qx(),(this.Bb&VZn)!=0?true:false;case 17:return U0(this);case 18:return Qx(),(this.Bb&Wee)!=0?true:false;case 19:if(t)return Efn(this);return O7(this)}return Fen(this,e-sQ((rZn(),Hrt)),uin((i=bG(Ron(this,16),29),!i?Hrt:i),e),t,r)};lce.Wh=function n(e){var t,r;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return ANn(this);case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&SQ(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&SQ(this.q).i==0);case 10:return(this.Bb&b1n)==0;case 11:return(this.Bb&oie)!=0;case 12:return(this.Bb&T0n)!=0;case 13:return this.j!=null;case 14:return KRn(this)!=null;case 15:return(this.Bb&sie)!=0;case 16:return(this.Bb&VZn)!=0;case 17:return!!U0(this);case 18:return(this.Bb&Wee)!=0;case 19:return!!O7(this)}return v5(this,e-sQ((rZn(),Hrt)),uin((t=bG(Ron(this,16),29),!t?Hrt:t),e))};lce.bi=function n(e,t){var r,i;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:y2(this,TK(t));return;case 2:kdn(this,lM(yK(t)));return;case 3:Tdn(this,lM(yK(t)));return;case 4:Lan(this,bG(t,17).a);return;case 5:gj(this,bG(t,17).a);return;case 8:Ubn(this,bG(t,142));return;case 9:i=NCn(this,bG(t,89),null);!!i&&i.oj();return;case 10:ngn(this,lM(yK(t)));return;case 11:rgn(this,lM(yK(t)));return;case 12:egn(this,lM(yK(t)));return;case 13:TA(this,TK(t));return;case 15:tgn(this,lM(yK(t)));return;case 16:Ngn(this,lM(yK(t)));return;case 18:Agn(this,lM(yK(t)));return}vvn(this,e-sQ((rZn(),Hrt)),uin((r=bG(Ron(this,16),29),!r?Hrt:r),e),t)};lce.ii=function n(){return rZn(),Hrt};lce.ki=function n(e){var t,r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:G$(this.Cb,90)&&SLn(S9(bG(this.Cb,90)),4);Qun(this,null);return;case 2:kdn(this,true);return;case 3:Tdn(this,true);return;case 4:Lan(this,0);return;case 5:this.b=0;Nan(this,1);return;case 8:Ubn(this,null);return;case 9:r=NCn(this,null,null);!!r&&r.oj();return;case 10:ngn(this,true);return;case 11:rgn(this,false);return;case 12:egn(this,false);return;case 13:this.i=null;vun(this,null);return;case 15:tgn(this,false);return;case 16:Ngn(this,false);return;case 18:Agn(this,false);return}wdn(this,e-sQ((rZn(),Hrt)),uin((t=bG(Ron(this,16),29),!t?Hrt:t),e))};lce.pi=function n(){Efn(this);XJ(Ktn((yAn(),Vut),this));pEn(this);this.Bb|=1};lce.Jk=function n(){return ANn(this)};lce.Yk=function n(e,t){this.b=0;this.a=null;return rdn(this,e,t)};lce.Zk=function n(e){gj(this,e)};lce.Ib=function n(){var e;if((this.Db&64)!=0)return PBn(this);e=new gx(PBn(this));e.a+=" (iD: ";Rj(e,(this.Bb&Wee)!=0);e.a+=")";return e.a};lce.b=0;var Sit=YW(Jee,"EAttributeImpl",331);wDn(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1});lce.dl=function n(e){return e.Dh()==this};lce.Ah=function n(e){return ZTn(this,e)};lce.Bh=function n(e,t){this.w=null;this.Db=t<<16|this.Db&255;this.Cb=e};lce.Lh=function n(e,t,r){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return qTn(this);case 4:return this.ik();case 5:return this.F;case 6:if(t)return Vin(this);return _0(this);case 7:return!this.A&&(this.A=new LD(xrt,this,7)),this.A}return Fen(this,e-sQ(this.ii()),uin((i=bG(Ron(this,16),29),!i?this.ii():i),e),t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 6:!!this.Cb&&(r=(a=this.Db>>16,a>=0?ZTn(this,r):this.Cb.Th(this,-1-a,null,r)));return FUn(this,e,6,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?this.ii():i),t),69),c.wk().zk(this,Fmn(this),t-sQ(this.ii()),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 6:return FUn(this,null,6,r);case 7:return!this.A&&(this.A=new LD(xrt,this,7)),Kyn(this.A,e,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?this.ii():i),t),69),a.wk().Ak(this,Fmn(this),t-sQ(this.ii()),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!qTn(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!_0(this);case 7:return!!this.A&&this.A.i!=0}return v5(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:k2(this,TK(t));return;case 2:MN(this,TK(t));return;case 5:CWn(this,TK(t));return;case 7:!this.A&&(this.A=new LD(xrt,this,7));NVn(this.A);!this.A&&(this.A=new LD(xrt,this,7));NW(this.A,bG(t,16));return}vvn(this,e-sQ(this.ii()),uin((r=bG(Ron(this,16),29),!r?this.ii():r),e),t)};lce.ii=function n(){return rZn(),Grt};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:G$(this.Cb,184)&&(bG(this.Cb,184).tb=null);Qun(this,null);return;case 2:wbn(this,null);Dan(this,this.D);return;case 5:CWn(this,null);return;case 7:!this.A&&(this.A=new LD(xrt,this,7));NVn(this.A);return}wdn(this,e-sQ(this.ii()),uin((t=bG(Ron(this,16),29),!t?this.ii():t),e))};lce.hk=function n(){var e;return this.G==-1&&(this.G=(e=Vin(this),e?Vyn(e.vi(),this):-1)),this.G};lce.ik=function n(){return null};lce.jk=function n(){return Vin(this)};lce.el=function n(){return this.v};lce.kk=function n(){return qTn(this)};lce.lk=function n(){return this.D!=null?this.D:this.B};lce.mk=function n(){return this.F};lce.fk=function n(e){return RGn(this,e)};lce.fl=function n(e){this.v=e};lce.gl=function n(e){csn(this,e)};lce.hl=function n(e){this.C=e};lce.ui=function n(e){k2(this,e)};lce.Ib=function n(){return Mpn(this)};lce.C=null;lce.D=null;lce.G=-1;var Pit=YW(Jee,"EClassifierImpl",364);wDn(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},Ul);lce.dl=function n(e){return ZF(this,e.Dh())};lce.Lh=function n(e,t,r){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return qTn(this);case 4:return null;case 5:return this.F;case 6:if(t)return Vin(this);return _0(this);case 7:return!this.A&&(this.A=new LD(xrt,this,7)),this.A;case 8:return Qx(),(this.Bb&256)!=0?true:false;case 9:return Qx(),(this.Bb&512)!=0?true:false;case 10:return a1(this);case 11:return!this.q&&(this.q=new gz(Irt,this,11,10)),this.q;case 12:return dXn(this);case 13:return iXn(this);case 14:return iXn(this),this.r;case 15:return dXn(this),this.k;case 16:return HAn(this);case 17:return Fqn(this);case 18:return uqn(this);case 19:return TRn(this);case 20:return dXn(this),this.o;case 21:return!this.s&&(this.s=new gz(mrt,this,21,17)),this.s;case 22:return Y5(this);case 23:return B_n(this)}return Fen(this,e-sQ((rZn(),Urt)),uin((i=bG(Ron(this,16),29),!i?Urt:i),e),t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 6:!!this.Cb&&(r=(a=this.Db>>16,a>=0?ZTn(this,r):this.Cb.Th(this,-1-a,null,r)));return FUn(this,e,6,r);case 11:return!this.q&&(this.q=new gz(Irt,this,11,10)),Kpn(this.q,e,r);case 21:return!this.s&&(this.s=new gz(mrt,this,21,17)),Kpn(this.s,e,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Urt):i),t),69),c.wk().zk(this,Fmn(this),t-sQ((rZn(),Urt)),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 6:return FUn(this,null,6,r);case 7:return!this.A&&(this.A=new LD(xrt,this,7)),Kyn(this.A,e,r);case 11:return!this.q&&(this.q=new gz(Irt,this,11,10)),Kyn(this.q,e,r);case 21:return!this.s&&(this.s=new gz(mrt,this,21,17)),Kyn(this.s,e,r);case 22:return Kyn(Y5(this),e,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Urt):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),Urt)),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!qTn(this);case 4:return false;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!_0(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&Y5(this.u.a).i!=0&&!(!!this.n&&SMn(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return dXn(this).i!=0;case 13:return iXn(this).i!=0;case 14:return iXn(this),this.r.i!=0;case 15:return dXn(this),this.k.i!=0;case 16:return HAn(this).i!=0;case 17:return Fqn(this).i!=0;case 18:return uqn(this).i!=0;case 19:return TRn(this).i!=0;case 20:return dXn(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&SMn(this.n);case 23:return B_n(this).i!=0}return v5(this,e-sQ((rZn(),Urt)),uin((t=bG(Ron(this,16),29),!t?Urt:t),e))};lce.Zh=function n(e){var t;t=this.i==null||!!this.q&&this.q.i!=0?null:OKn(this,e);return t?t:ZQn(this,e)};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:k2(this,TK(t));return;case 2:MN(this,TK(t));return;case 5:CWn(this,TK(t));return;case 7:!this.A&&(this.A=new LD(xrt,this,7));NVn(this.A);!this.A&&(this.A=new LD(xrt,this,7));NW(this.A,bG(t,16));return;case 8:ydn(this,lM(yK(t)));return;case 9:jdn(this,lM(yK(t)));return;case 10:qVn(a1(this));NW(a1(this),bG(t,16));return;case 11:!this.q&&(this.q=new gz(Irt,this,11,10));NVn(this.q);!this.q&&(this.q=new gz(Irt,this,11,10));NW(this.q,bG(t,16));return;case 21:!this.s&&(this.s=new gz(mrt,this,21,17));NVn(this.s);!this.s&&(this.s=new gz(mrt,this,21,17));NW(this.s,bG(t,16));return;case 22:NVn(Y5(this));NW(Y5(this),bG(t,16));return}vvn(this,e-sQ((rZn(),Urt)),uin((r=bG(Ron(this,16),29),!r?Urt:r),e),t)};lce.ii=function n(){return rZn(),Urt};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:G$(this.Cb,184)&&(bG(this.Cb,184).tb=null);Qun(this,null);return;case 2:wbn(this,null);Dan(this,this.D);return;case 5:CWn(this,null);return;case 7:!this.A&&(this.A=new LD(xrt,this,7));NVn(this.A);return;case 8:ydn(this,false);return;case 9:jdn(this,false);return;case 10:!!this.u&&qVn(this.u);return;case 11:!this.q&&(this.q=new gz(Irt,this,11,10));NVn(this.q);return;case 21:!this.s&&(this.s=new gz(mrt,this,21,17));NVn(this.s);return;case 22:!!this.n&&NVn(this.n);return}wdn(this,e-sQ((rZn(),Urt)),uin((t=bG(Ron(this,16),29),!t?Urt:t),e))};lce.pi=function n(){var e,t;dXn(this);iXn(this);HAn(this);Fqn(this);uqn(this);TRn(this);B_n(this);Z9(sG(S9(this)));if(this.s){for(e=0,t=this.s.i;e=0;--t){Yin(this,t)}}return ypn(this,e)};lce.Gk=function n(){NVn(this)};lce.Zi=function n(e,t){return _an(this,e,t)};var Nit=YW(iie,"EcoreEList",632);wDn(505,632,yie,GG);lce.Li=function n(){return false};lce.Lj=function n(){return this.c};lce.Mj=function n(){return false};lce.ol=function n(){return true};lce.Si=function n(){return true};lce.Wi=function n(e,t){return t};lce.Yi=function n(){return false};lce.c=0;var $it=YW(iie,"EObjectEList",505);wDn(83,505,yie,PD);lce.Mj=function n(){return true};lce.ml=function n(){return false};lce.al=function n(){return true};var Dit=YW(iie,"EObjectContainmentEList",83);wDn(555,83,yie,CD);lce.Ni=function n(){this.b=true};lce.Qj=function n(){return this.b};lce.Gk=function n(){var e;NVn(this);if(bN(this.e)){e=this.b;this.b=false;Pon(this.e,new I9(this.e,2,this.c,e,false))}else{this.b=false}};lce.b=false;var xit=YW(iie,"EObjectContainmentEList/Unsettable",555);wDn(1161,555,yie,dV);lce.Ti=function n(e,t){var r,i;return r=bG(Ydn(this,e,t),89),bN(this.e)&&rk(this,new men(this.a,7,(rZn(),qrt),Bwn(t),(i=r.c,G$(i,90)?bG(i,29):nit),e)),r};lce.Uj=function n(e,t){return _pn(this,bG(e,89),t)};lce.Vj=function n(e,t){return Fpn(this,bG(e,89),t)};lce.Wj=function n(e,t,r){return CSn(this,bG(e,89),bG(t,89),r)};lce.Ij=function n(e,t,r,i,a){switch(e){case 3:{return s2(this,e,t,r,i,this.i>1)}case 5:{return s2(this,e,t,r,i,this.i-bG(r,15).gc()>0)}default:{return new Utn(this.e,e,this.c,t,r,i,true)}}};lce.Tj=function n(){return true};lce.Qj=function n(){return SMn(this)};lce.Gk=function n(){NVn(this)};var Rit=YW(Jee,"EClassImpl/1",1161);wDn(1175,1174,Rre);lce.dj=function n(e){var t,r,i,a,c,u,s;r=e.gj();if(r!=8){i=Bkn(e);if(i==0){switch(r){case 1:case 9:{s=e.kj();if(s!=null){t=S9(bG(s,482));!t.c&&(t.c=new Uo);orn(t.c,e.jj())}u=e.ij();if(u!=null){a=bG(u,482);if((a.Bb&1)==0){t=S9(a);!t.c&&(t.c=new Uo);cen(t.c,bG(e.jj(),29))}}break}case 3:{u=e.ij();if(u!=null){a=bG(u,482);if((a.Bb&1)==0){t=S9(a);!t.c&&(t.c=new Uo);cen(t.c,bG(e.jj(),29))}}break}case 5:{u=e.ij();if(u!=null){for(c=bG(u,16).Kc();c.Ob();){a=bG(c.Pb(),482);if((a.Bb&1)==0){t=S9(a);!t.c&&(t.c=new Uo);cen(t.c,bG(e.jj(),29))}}}break}case 4:{s=e.kj();if(s!=null){a=bG(s,482);if((a.Bb&1)==0){t=S9(a);!t.c&&(t.c=new Uo);orn(t.c,e.jj())}}break}case 6:{s=e.kj();if(s!=null){for(c=bG(s,16).Kc();c.Ob();){a=bG(c.Pb(),482);if((a.Bb&1)==0){t=S9(a);!t.c&&(t.c=new Uo);orn(t.c,e.jj())}}}break}}}this.ql(i)}};lce.ql=function n(e){pBn(this,e)};lce.b=63;var Kit=YW(Jee,"ESuperAdapter",1175);wDn(1176,1175,Rre,Fp);lce.ql=function n(e){SLn(this,e)};var Fit=YW(Jee,"EClassImpl/10",1176);wDn(1165,710,yie);lce.Ei=function n(e,t){return LCn(this,e,t)};lce.Fi=function n(e){return eTn(this,e)};lce.Gi=function n(e,t){udn(this,e,t)};lce.Hi=function n(e){Y9(this,e)};lce.$i=function n(e){return Den(this,e)};lce.Xi=function n(e,t){return srn(this,e,t)};lce.Wk=function n(e,t){throw dm(new Um)};lce.Ii=function n(){return new aR(this)};lce.Ji=function n(){return new cR(this)};lce.Ki=function n(e){return dcn(this,e)};lce.Xk=function n(e,t){throw dm(new Um)};lce.Fk=function n(e){return this};lce.Qj=function n(){return this.i!=0};lce.Wb=function n(e){throw dm(new Um)};lce.Gk=function n(){throw dm(new Um)};var _it=YW(iie,"EcoreEList/UnmodifiableEList",1165);wDn(328,1165,yie,jL);lce.Yi=function n(){return false};var Bit=YW(iie,"EcoreEList/UnmodifiableEList/FastCompare",328);wDn(1168,328,yie,xhn);lce.dd=function n(e){var t,r,i;if(G$(e,179)){t=bG(e,179);r=t.Lj();if(r!=-1){for(i=this.i;r4){if(this.fk(e)){if(this.al()){i=bG(e,54);r=i.Eh();s=r==this.b&&(this.ml()?i.yh(i.Fh(),bG(uin(u1(this.b),this.Lj()).Hk(),29).kk())==vMn(bG(uin(u1(this.b),this.Lj()),19)).n:-1-i.Fh()==this.Lj());if(this.nl()&&!s&&!r&&!!i.Jh()){for(a=0;a1||i==-1)}else{return false}};lce.ml=function n(){var e,t,r;t=uin(u1(this.b),this.Lj());if(G$(t,102)){e=bG(t,19);r=vMn(e);return!!r}else{return false}};lce.nl=function n(){var e,t;t=uin(u1(this.b),this.Lj());if(G$(t,102)){e=bG(t,19);return(e.Bb&S0n)!=0}else{return false}};lce.dd=function n(e){var t,r,i,a;i=this.zj(e);if(i>=0)return i;if(this.ol()){for(r=0,a=this.Ej();r=0;--e){Szn(this,e,this.xj(e))}}return this.Fj()};lce.Qc=function n(e){var t;if(this.nl()){for(t=this.Ej()-1;t>=0;--t){Szn(this,t,this.xj(t))}}return this.Gj(e)};lce.Gk=function n(){qVn(this)};lce.Zi=function n(e,t){return xen(this,e,t)};var Zit=YW(iie,"DelegatingEcoreEList",756);wDn(1171,756,Sie,hF);lce.qj=function n(e,t){YR(this,e,bG(t,29))};lce.rj=function n(e){XN(this,bG(e,29))};lce.xj=function n(e){var t,r;return t=bG(Yin(Y5(this.a),e),89),r=t.c,G$(r,90)?bG(r,29):(rZn(),nit)};lce.Cj=function n(e){var t,r;return t=bG(u_n(Y5(this.a),e),89),r=t.c,G$(r,90)?bG(r,29):(rZn(),nit)};lce.Dj=function n(e,t){return rTn(this,e,bG(t,29))};lce.Li=function n(){return false};lce.Ij=function n(e,t,r,i,a){return null};lce.sj=function n(){return new Hp(this)};lce.tj=function n(){NVn(Y5(this.a))};lce.uj=function n(e){return Pdn(this,e)};lce.vj=function n(e){var t,r;for(r=e.Kc();r.Ob();){t=r.Pb();if(!Pdn(this,t)){return false}}return true};lce.wj=function n(e){var t,r,i;if(G$(e,15)){i=bG(e,15);if(i.gc()==Y5(this.a).i){for(t=i.Kc(),r=new _D(this);t.Ob();){if(BA(t.Pb())!==BA(iyn(r))){return false}}return true}}return false};lce.yj=function n(){var e,t,r,i,a;r=1;for(t=new _D(Y5(this.a));t.e!=t.i.gc();){e=bG(iyn(t),89);i=(a=e.c,G$(a,90)?bG(a,29):(rZn(),nit));r=31*r+(!i?0:Bx(i))}return r};lce.zj=function n(e){var t,r,i,a;i=0;for(r=new _D(Y5(this.a));r.e!=r.i.gc();){t=bG(iyn(r),89);if(BA(e)===BA((a=t.c,G$(a,90)?bG(a,29):(rZn(),nit)))){return i}++i}return-1};lce.Aj=function n(){return Y5(this.a).i==0};lce.Bj=function n(){return null};lce.Ej=function n(){return Y5(this.a).i};lce.Fj=function n(){var e,t,r,i,a,c;c=Y5(this.a).i;a=$nn(kce,jZn,1,c,5,1);r=0;for(t=new _D(Y5(this.a));t.e!=t.i.gc();){e=bG(iyn(t),89);a[r++]=(i=e.c,G$(i,90)?bG(i,29):(rZn(),nit))}return a};lce.Gj=function n(e){var t,r,i,a,c,u,s;s=Y5(this.a).i;if(e.lengths&&bQ(e,s,null);i=0;for(r=new _D(Y5(this.a));r.e!=r.i.gc();){t=bG(iyn(r),89);c=(u=t.c,G$(u,90)?bG(u,29):(rZn(),nit));bQ(e,i++,c)}return e};lce.Hj=function n(){var e,t,r,i,a;a=new YM;a.a+="[";e=Y5(this.a);for(t=0,i=Y5(this.a).i;t>16,a>=0?ZTn(this,r):this.Cb.Th(this,-1-a,null,r)));return FUn(this,e,6,r);case 9:return!this.a&&(this.a=new gz(Prt,this,9,5)),Kpn(this.a,e,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Vrt):i),t),69),c.wk().zk(this,Fmn(this),t-sQ((rZn(),Vrt)),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 6:return FUn(this,null,6,r);case 7:return!this.A&&(this.A=new LD(xrt,this,7)),Kyn(this.A,e,r);case 9:return!this.a&&(this.a=new gz(Prt,this,9,5)),Kyn(this.a,e,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Vrt):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),Vrt)),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!qTn(this);case 4:return!!kbn(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!_0(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return v5(this,e-sQ((rZn(),Vrt)),uin((t=bG(Ron(this,16),29),!t?Vrt:t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:k2(this,TK(t));return;case 2:MN(this,TK(t));return;case 5:CWn(this,TK(t));return;case 7:!this.A&&(this.A=new LD(xrt,this,7));NVn(this.A);!this.A&&(this.A=new LD(xrt,this,7));NW(this.A,bG(t,16));return;case 8:Mdn(this,lM(yK(t)));return;case 9:!this.a&&(this.a=new gz(Prt,this,9,5));NVn(this.a);!this.a&&(this.a=new gz(Prt,this,9,5));NW(this.a,bG(t,16));return}vvn(this,e-sQ((rZn(),Vrt)),uin((r=bG(Ron(this,16),29),!r?Vrt:r),e),t)};lce.ii=function n(){return rZn(),Vrt};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:G$(this.Cb,184)&&(bG(this.Cb,184).tb=null);Qun(this,null);return;case 2:wbn(this,null);Dan(this,this.D);return;case 5:CWn(this,null);return;case 7:!this.A&&(this.A=new LD(xrt,this,7));NVn(this.A);return;case 8:Mdn(this,true);return;case 9:!this.a&&(this.a=new gz(Prt,this,9,5));NVn(this.a);return}wdn(this,e-sQ((rZn(),Vrt)),uin((t=bG(Ron(this,16),29),!t?Vrt:t),e))};lce.pi=function n(){var e,t;if(this.a){for(e=0,t=this.a.i;e>16==5?bG(this.Cb,685):null}return Fen(this,e-sQ((rZn(),zrt)),uin((i=bG(Ron(this,16),29),!i?zrt:i),e),t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 5:!!this.Cb&&(r=(a=this.Db>>16,a>=0?eEn(this,r):this.Cb.Th(this,-1-a,null,r)));return FUn(this,e,5,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),zrt):i),t),69),c.wk().zk(this,Fmn(this),t-sQ((rZn(),zrt)),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 5:return FUn(this,null,5,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),zrt):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),zrt)),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5?bG(this.Cb,685):null)}return v5(this,e-sQ((rZn(),zrt)),uin((t=bG(Ron(this,16),29),!t?zrt:t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:Qun(this,TK(t));return;case 2:$an(this,bG(t,17).a);return;case 3:d$n(this,bG(t,2039));return;case 4:zcn(this,TK(t));return}vvn(this,e-sQ((rZn(),zrt)),uin((r=bG(Ron(this,16),29),!r?zrt:r),e),t)};lce.ii=function n(){return rZn(),zrt};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:Qun(this,null);return;case 2:$an(this,0);return;case 3:d$n(this,null);return;case 4:zcn(this,null);return}wdn(this,e-sQ((rZn(),zrt)),uin((t=bG(Ron(this,16),29),!t?zrt:t),e))};lce.Ib=function n(){var e;return e=this.c,e==null?this.zb:e};lce.b=null;lce.c=null;lce.d=0;var cat=YW(Jee,"EEnumLiteralImpl",582);var uat=$q(Jee,"EFactoryImpl/InternalEDateTimeFormat");wDn(499,1,{2114:1},Up);var sat=YW(Jee,"EFactoryImpl/1ClientInternalEDateTimeFormat",499);wDn(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},um);lce.Ch=function n(e,t,r){var i;r=FUn(this,e,t,r);if(!!this.e&&G$(e,179)){i=pRn(this,this.e);i!=this.c&&(r=LWn(this,i,r))}return r};lce.Lh=function n(e,t,r){var i;switch(e){case 0:return this.f;case 1:return!this.d&&(this.d=new PD(Crt,this,1)),this.d;case 2:if(t)return PGn(this);return this.c;case 3:return this.b;case 4:return this.e;case 5:if(t)return LMn(this);return this.a}return Fen(this,e-sQ((rZn(),Qrt)),uin((i=bG(Ron(this,16),29),!i?Qrt:i),e),t,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return jwn(this,null,r);case 1:return!this.d&&(this.d=new PD(Crt,this,1)),Kyn(this.d,e,r);case 3:return Ewn(this,null,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),Qrt):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),Qrt)),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return v5(this,e-sQ((rZn(),Qrt)),uin((t=bG(Ron(this,16),29),!t?Qrt:t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:fPn(this,bG(t,89));return;case 1:!this.d&&(this.d=new PD(Crt,this,1));NVn(this.d);!this.d&&(this.d=new PD(Crt,this,1));NW(this.d,bG(t,16));return;case 3:oPn(this,bG(t,89));return;case 4:PIn(this,bG(t,850));return;case 5:zin(this,bG(t,142));return}vvn(this,e-sQ((rZn(),Qrt)),uin((r=bG(Ron(this,16),29),!r?Qrt:r),e),t)};lce.ii=function n(){return rZn(),Qrt};lce.ki=function n(e){var t;switch(e){case 0:fPn(this,null);return;case 1:!this.d&&(this.d=new PD(Crt,this,1));NVn(this.d);return;case 3:oPn(this,null);return;case 4:PIn(this,null);return;case 5:zin(this,null);return}wdn(this,e-sQ((rZn(),Qrt)),uin((t=bG(Ron(this,16),29),!t?Qrt:t),e))};lce.Ib=function n(){var e;e=new vx(jxn(this));e.a+=" (expression: ";QXn(this,e);e.a+=")";return e.a};var oat;var fat=YW(Jee,"EGenericTypeImpl",248);wDn(2067,2062,Pie);lce.Gi=function n(e,t){rF(this,e,t)};lce.Wk=function n(e,t){rF(this,this.gc(),e);return t};lce.$i=function n(e){return dyn(this.pj(),e)};lce.Ii=function n(){return this.Ji()};lce.pj=function n(){return new Yp(this)};lce.Ji=function n(){return this.Ki(0)};lce.Ki=function n(e){return this.pj().fd(e)};lce.Xk=function n(e,t){npn(this,e,true);return t};lce.Ti=function n(e,t){var r,i;i=Ujn(this,t);r=this.fd(e);r.Rb(i);return i};lce.Ui=function n(e,t){var r;npn(this,t,true);r=this.fd(e);r.Rb(t)};var hat=YW(iie,"AbstractSequentialInternalEList",2067);wDn(496,2067,Pie,Yx);lce.$i=function n(e){return dyn(this.pj(),e)};lce.Ii=function n(){if(this.b==null){return OP(),OP(),dat}return this.sl()};lce.pj=function n(){return new EL(this.a,this.b)};lce.Ji=function n(){if(this.b==null){return OP(),OP(),dat}return this.sl()};lce.Ki=function n(e){var t,r;if(this.b==null){if(e<0||e>1){throw dm(new kM(_re+e+", size=0"))}return OP(),OP(),dat}r=this.sl();for(t=0;t0){t=this.c[--this.d];if((!this.e||t.pk()!=R7e||t.Lj()!=0)&&(!this.vl()||this.b.Xh(t))){c=this.b.Nh(t,this.ul());this.f=(LP(),bG(t,69).xk());if(this.f||t.Jk()){if(this.ul()){i=bG(c,15);this.k=i}else{i=bG(c,71);this.k=this.j=i}if(G$(this.k,59)){this.o=this.k.gc();this.n=this.o}else{this.p=!this.j?this.k.fd(this.k.gc()):this.j.Ki(this.k.gc())}if(!this.p?dLn(this):kAn(this,this.p)){a=!this.p?!this.j?this.k.Xb(--this.n):this.j.$i(--this.n):this.p.Ub();if(this.f){e=bG(a,76);e.Lk();r=e.md();this.i=r}else{r=a;this.i=r}this.g=-3;return true}}else if(c!=null){this.k=null;this.p=null;r=c;this.i=r;this.g=-2;return true}}}this.k=null;this.p=null;this.g=-1;return false}else{a=!this.p?!this.j?this.k.Xb(--this.n):this.j.$i(--this.n):this.p.Ub();if(this.f){e=bG(a,76);e.Lk();r=e.md();this.i=r}else{r=a;this.i=r}this.g=-3;return true}}}};lce.Pb=function n(){return Uon(this)};lce.Tb=function n(){return this.a};lce.Ub=function n(){var e;if(this.g<-1||this.Sb()){--this.a;this.g=0;e=this.i;this.Sb();return e}else{throw dm(new Xm)}};lce.Vb=function n(){return this.a-1};lce.Qb=function n(){throw dm(new Um)};lce.ul=function n(){return false};lce.Wb=function n(e){throw dm(new Um)};lce.vl=function n(){return true};lce.a=0;lce.d=0;lce.f=false;lce.g=0;lce.n=0;lce.o=0;var dat;var gat=YW(iie,"EContentsEList/FeatureIteratorImpl",287);wDn(711,287,Cie,nK);lce.ul=function n(){return true};var vat=YW(iie,"EContentsEList/ResolvingFeatureIteratorImpl",711);wDn(1178,711,Cie,eK);lce.vl=function n(){return false};var pat=YW(Jee,"ENamedElementImpl/1/1",1178);wDn(1179,287,Cie,tK);lce.vl=function n(){return false};var mat=YW(Jee,"ENamedElementImpl/1/2",1179);wDn(39,152,Fre,c8,u8,vz,pen,Utn,I9,Xan,l4,Van,b4,O9,w4,Qan,d4,A9,g4,zan,v4,pz,men,EZ,Wan,p4,L9,m4);lce.Kj=function n(){return aen(this)};lce.Rj=function n(){var e;e=aen(this);if(e){return e.ik()}return null};lce.hj=function n(e){this.b==-1&&!!this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk()));return this.c.yh(this.b,e)};lce.jj=function n(){return this.c};lce.Sj=function n(){var e;e=aen(this);if(e){return e.tk()}return false};lce.b=-1;var kat=YW(Jee,"ENotificationImpl",39);wDn(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},ry);lce.Ah=function n(e){return gEn(this,e)};lce.Lh=function n(e,t,r){var i,a,c;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qx(),(this.Bb&256)!=0?true:false;case 3:return Qx(),(this.Bb&512)!=0?true:false;case 4:return Bwn(this.s);case 5:return Bwn(this.t);case 6:return Qx(),c=this.t,c>1||c==-1?true:false;case 7:return Qx(),a=this.s,a>=1?true:false;case 8:if(t)return pEn(this);return this.r;case 9:return this.q;case 10:return this.Db>>16==10?bG(this.Cb,29):null;case 11:return!this.d&&(this.d=new LD(xrt,this,11)),this.d;case 12:return!this.c&&(this.c=new gz(Art,this,12,10)),this.c;case 13:return!this.a&&(this.a=new lF(this,this)),this.a;case 14:return xtn(this)}return Fen(this,e-sQ((rZn(),eit)),uin((i=bG(Ron(this,16),29),!i?eit:i),e),t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 10:!!this.Cb&&(r=(a=this.Db>>16,a>=0?gEn(this,r):this.Cb.Th(this,-1-a,null,r)));return FUn(this,e,10,r);case 12:return!this.c&&(this.c=new gz(Art,this,12,10)),Kpn(this.c,e,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),eit):i),t),69),c.wk().zk(this,Fmn(this),t-sQ((rZn(),eit)),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 9:return $W(this,r);case 10:return FUn(this,null,10,r);case 11:return!this.d&&(this.d=new LD(xrt,this,11)),Kyn(this.d,e,r);case 12:return!this.c&&(this.c=new gz(Art,this,12,10)),Kyn(this.c,e,r);case 14:return Kyn(xtn(this),e,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),eit):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),eit)),e,r)};lce.Wh=function n(e){var t,r,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return i=this.t,i>1||i==-1;case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&SQ(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&SQ(this.q).i==0);case 10:return!!(this.Db>>16==10?bG(this.Cb,29):null);case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&xtn(this.a.a).i!=0&&!(!!this.b&&PMn(this.b));case 14:return!!this.b&&PMn(this.b)}return v5(this,e-sQ((rZn(),eit)),uin((t=bG(Ron(this,16),29),!t?eit:t),e))};lce.bi=function n(e,t){var r,i;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:Qun(this,TK(t));return;case 2:kdn(this,lM(yK(t)));return;case 3:Tdn(this,lM(yK(t)));return;case 4:Lan(this,bG(t,17).a);return;case 5:Nan(this,bG(t,17).a);return;case 8:Ubn(this,bG(t,142));return;case 9:i=NCn(this,bG(t,89),null);!!i&&i.oj();return;case 11:!this.d&&(this.d=new LD(xrt,this,11));NVn(this.d);!this.d&&(this.d=new LD(xrt,this,11));NW(this.d,bG(t,16));return;case 12:!this.c&&(this.c=new gz(Art,this,12,10));NVn(this.c);!this.c&&(this.c=new gz(Art,this,12,10));NW(this.c,bG(t,16));return;case 13:!this.a&&(this.a=new lF(this,this));qVn(this.a);!this.a&&(this.a=new lF(this,this));NW(this.a,bG(t,16));return;case 14:NVn(xtn(this));NW(xtn(this),bG(t,16));return}vvn(this,e-sQ((rZn(),eit)),uin((r=bG(Ron(this,16),29),!r?eit:r),e),t)};lce.ii=function n(){return rZn(),eit};lce.ki=function n(e){var t,r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:Qun(this,null);return;case 2:kdn(this,true);return;case 3:Tdn(this,true);return;case 4:Lan(this,0);return;case 5:Nan(this,1);return;case 8:Ubn(this,null);return;case 9:r=NCn(this,null,null);!!r&&r.oj();return;case 11:!this.d&&(this.d=new LD(xrt,this,11));NVn(this.d);return;case 12:!this.c&&(this.c=new gz(Art,this,12,10));NVn(this.c);return;case 13:!!this.a&&qVn(this.a);return;case 14:!!this.b&&NVn(this.b);return}wdn(this,e-sQ((rZn(),eit)),uin((t=bG(Ron(this,16),29),!t?eit:t),e))};lce.pi=function n(){var e,t;if(this.c){for(e=0,t=this.c.i;es&&bQ(e,s,null);i=0;for(r=new _D(xtn(this.a));r.e!=r.i.gc();){t=bG(iyn(r),89);c=(u=t.c,u?u:(rZn(),Jrt));bQ(e,i++,c)}return e};lce.Hj=function n(){var e,t,r,i,a;a=new YM;a.a+="[";e=xtn(this.a);for(t=0,i=xtn(this.a).i;t1)}case 5:{return s2(this,e,t,r,i,this.i-bG(r,15).gc()>0)}default:{return new Utn(this.e,e,this.c,t,r,i,true)}}};lce.Tj=function n(){return true};lce.Qj=function n(){return PMn(this)};lce.Gk=function n(){NVn(this)};var jat=YW(Jee,"EOperationImpl/2",1377);wDn(507,1,{2037:1,507:1},OA);var Eat=YW(Jee,"EPackageImpl/1",507);wDn(14,83,yie,gz);lce.il=function n(){return this.d};lce.jl=function n(){return this.b};lce.ml=function n(){return true};lce.b=0;var Sat=YW(iie,"EObjectContainmentWithInverseEList",14);wDn(365,14,yie,s_);lce.nl=function n(){return true};lce.Wi=function n(e,t){return H$n(this,e,bG(t,58))};var Pat=YW(iie,"EObjectContainmentWithInverseEList/Resolving",365);wDn(308,365,yie,jz);lce.Ni=function n(){this.a.tb=null};var Cat=YW(Jee,"EPackageImpl/2",308);wDn(1278,1,{},Lo);var Iat=YW(Jee,"EPackageImpl/3",1278);wDn(733,45,_0n,iy);lce._b=function n(e){return HA(e)?xZ(this,e):!!GX(this.f,e)};var Oat=YW(Jee,"EPackageRegistryImpl",733);wDn(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},ay);lce.Ah=function n(e){return vEn(this,e)};lce.Lh=function n(e,t,r){var i,a,c;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qx(),(this.Bb&256)!=0?true:false;case 3:return Qx(),(this.Bb&512)!=0?true:false;case 4:return Bwn(this.s);case 5:return Bwn(this.t);case 6:return Qx(),c=this.t,c>1||c==-1?true:false;case 7:return Qx(),a=this.s,a>=1?true:false;case 8:if(t)return pEn(this);return this.r;case 9:return this.q;case 10:return this.Db>>16==10?bG(this.Cb,62):null}return Fen(this,e-sQ((rZn(),iit)),uin((i=bG(Ron(this,16),29),!i?iit:i),e),t,r)};lce.Sh=function n(e,t,r){var i,a,c;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kpn(this.Ab,e,r);case 10:!!this.Cb&&(r=(a=this.Db>>16,a>=0?vEn(this,r):this.Cb.Th(this,-1-a,null,r)));return FUn(this,e,10,r)}return c=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),iit):i),t),69),c.wk().zk(this,Fmn(this),t-sQ((rZn(),iit)),e,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 9:return $W(this,r);case 10:return FUn(this,null,10,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),iit):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),iit)),e,r)};lce.Wh=function n(e){var t,r,i;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return i=this.t,i>1||i==-1;case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&SQ(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&SQ(this.q).i==0);case 10:return!!(this.Db>>16==10?bG(this.Cb,62):null)}return v5(this,e-sQ((rZn(),iit)),uin((t=bG(Ron(this,16),29),!t?iit:t),e))};lce.ii=function n(){return rZn(),iit};var Aat=YW(Jee,"EParameterImpl",518);wDn(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},LK);lce.Lh=function n(e,t,r){var i,a,c,u;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Qx(),(this.Bb&256)!=0?true:false;case 3:return Qx(),(this.Bb&512)!=0?true:false;case 4:return Bwn(this.s);case 5:return Bwn(this.t);case 6:return Qx(),u=this.t,u>1||u==-1?true:false;case 7:return Qx(),a=this.s,a>=1?true:false;case 8:if(t)return pEn(this);return this.r;case 9:return this.q;case 10:return Qx(),(this.Bb&b1n)!=0?true:false;case 11:return Qx(),(this.Bb&oie)!=0?true:false;case 12:return Qx(),(this.Bb&T0n)!=0?true:false;case 13:return this.j;case 14:return KRn(this);case 15:return Qx(),(this.Bb&sie)!=0?true:false;case 16:return Qx(),(this.Bb&VZn)!=0?true:false;case 17:return U0(this);case 18:return Qx(),(this.Bb&Wee)!=0?true:false;case 19:return Qx(),c=vMn(this),!!c&&(c.Bb&Wee)!=0?true:false;case 20:return Qx(),(this.Bb&S0n)!=0?true:false;case 21:if(t)return vMn(this);return this.b;case 22:if(t)return Ghn(this);return H9(this);case 23:return!this.a&&(this.a=new DD(krt,this,23)),this.a}return Fen(this,e-sQ((rZn(),ait)),uin((i=bG(Ron(this,16),29),!i?ait:i),e),t,r)};lce.Wh=function n(e){var t,r,i,a;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return a=this.t,a>1||a==-1;case 7:return r=this.s,r>=1;case 8:return!!this.r&&!this.q.e&&SQ(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&SQ(this.q).i==0);case 10:return(this.Bb&b1n)==0;case 11:return(this.Bb&oie)!=0;case 12:return(this.Bb&T0n)!=0;case 13:return this.j!=null;case 14:return KRn(this)!=null;case 15:return(this.Bb&sie)!=0;case 16:return(this.Bb&VZn)!=0;case 17:return!!U0(this);case 18:return(this.Bb&Wee)!=0;case 19:return i=vMn(this),!!i&&(i.Bb&Wee)!=0;case 20:return(this.Bb&S0n)==0;case 21:return!!this.b;case 22:return!!H9(this);case 23:return!!this.a&&this.a.i!=0}return v5(this,e-sQ((rZn(),ait)),uin((t=bG(Ron(this,16),29),!t?ait:t),e))};lce.bi=function n(e,t){var r,i;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:y2(this,TK(t));return;case 2:kdn(this,lM(yK(t)));return;case 3:Tdn(this,lM(yK(t)));return;case 4:Lan(this,bG(t,17).a);return;case 5:Nan(this,bG(t,17).a);return;case 8:Ubn(this,bG(t,142));return;case 9:i=NCn(this,bG(t,89),null);!!i&&i.oj();return;case 10:ngn(this,lM(yK(t)));return;case 11:rgn(this,lM(yK(t)));return;case 12:egn(this,lM(yK(t)));return;case 13:TA(this,TK(t));return;case 15:tgn(this,lM(yK(t)));return;case 16:Ngn(this,lM(yK(t)));return;case 18:M2(this,lM(yK(t)));return;case 20:$gn(this,lM(yK(t)));return;case 21:pun(this,bG(t,19));return;case 23:!this.a&&(this.a=new DD(krt,this,23));NVn(this.a);!this.a&&(this.a=new DD(krt,this,23));NW(this.a,bG(t,16));return}vvn(this,e-sQ((rZn(),ait)),uin((r=bG(Ron(this,16),29),!r?ait:r),e),t)};lce.ii=function n(){return rZn(),ait};lce.ki=function n(e){var t,r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:G$(this.Cb,90)&&SLn(S9(bG(this.Cb,90)),4);Qun(this,null);return;case 2:kdn(this,true);return;case 3:Tdn(this,true);return;case 4:Lan(this,0);return;case 5:Nan(this,1);return;case 8:Ubn(this,null);return;case 9:r=NCn(this,null,null);!!r&&r.oj();return;case 10:ngn(this,true);return;case 11:rgn(this,false);return;case 12:egn(this,false);return;case 13:this.i=null;vun(this,null);return;case 15:tgn(this,false);return;case 16:Ngn(this,false);return;case 18:Lgn(this,false);G$(this.Cb,90)&&SLn(S9(bG(this.Cb,90)),2);return;case 20:$gn(this,true);return;case 21:pun(this,null);return;case 23:!this.a&&(this.a=new DD(krt,this,23));NVn(this.a);return}wdn(this,e-sQ((rZn(),ait)),uin((t=bG(Ron(this,16),29),!t?ait:t),e))};lce.pi=function n(){Ghn(this);XJ(Ktn((yAn(),Vut),this));pEn(this);this.Bb|=1};lce.uk=function n(){return vMn(this)};lce._k=function n(){var e;return e=vMn(this),!!e&&(e.Bb&Wee)!=0};lce.al=function n(){return(this.Bb&Wee)!=0};lce.bl=function n(){return(this.Bb&S0n)!=0};lce.Yk=function n(e,t){this.c=null;return rdn(this,e,t)};lce.Ib=function n(){var e;if((this.Db&64)!=0)return PBn(this);e=new gx(PBn(this));e.a+=" (containment: ";Rj(e,(this.Bb&Wee)!=0);e.a+=", resolveProxies: ";Rj(e,(this.Bb&S0n)!=0);e.a+=")";return e.a};var Lat=YW(Jee,"EReferenceImpl",102);wDn(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},No);lce.Fb=function n(e){return this===e};lce.ld=function n(){return this.b};lce.md=function n(){return this.c};lce.Hb=function n(){return Bx(this)};lce.Di=function n(e){Hq(this,TK(e))};lce.nd=function n(e){return _G(this,TK(e))};lce.Lh=function n(e,t,r){var i;switch(e){case 0:return this.b;case 1:return this.c}return Fen(this,e-sQ((rZn(),cit)),uin((i=bG(Ron(this,16),29),!i?cit:i),e),t,r)};lce.Wh=function n(e){var t;switch(e){case 0:return this.b!=null;case 1:return this.c!=null}return v5(this,e-sQ((rZn(),cit)),uin((t=bG(Ron(this,16),29),!t?cit:t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:Uq(this,TK(t));return;case 1:tun(this,TK(t));return}vvn(this,e-sQ((rZn(),cit)),uin((r=bG(Ron(this,16),29),!r?cit:r),e),t)};lce.ii=function n(){return rZn(),cit};lce.ki=function n(e){var t;switch(e){case 0:eun(this,null);return;case 1:tun(this,null);return}wdn(this,e-sQ((rZn(),cit)),uin((t=bG(Ron(this,16),29),!t?cit:t),e))};lce.Bi=function n(){var e;if(this.a==-1){e=this.b;this.a=e==null?0:Mln(e)}return this.a};lce.Ci=function n(e){this.a=e};lce.Ib=function n(){var e;if((this.Db&64)!=0)return jxn(this);e=new gx(jxn(this));e.a+=" (key: ";ZA(e,this.b);e.a+=", value: ";ZA(e,this.c);e.a+=")";return e.a};lce.a=-1;lce.b=null;lce.c=null;var Nat=YW(Jee,"EStringToStringMapEntryImpl",561);var $at=$q(iie,"FeatureMap/Entry/Internal");wDn(576,1,Iie);lce.xl=function n(e){return this.yl(bG(e,54))};lce.yl=function n(e){return this.xl(e)};lce.Fb=function n(e){var t,r;if(this===e){return true}else if(G$(e,76)){t=bG(e,76);if(t.Lk()==this.c){r=this.md();return r==null?t.md()==null:bdn(r,t.md())}else{return false}}else{return false}};lce.Lk=function n(){return this.c};lce.Hb=function n(){var e;e=this.md();return Vun(this.c)^(e==null?0:Vun(e))};lce.Ib=function n(){var e,t;e=this.c;t=Vin(e.qk()).yi();e.xe();return(t!=null&&t.length!=0?t+":"+e.xe():e.xe())+"="+this.md()};var Dat=YW(Jee,"EStructuralFeatureImpl/BasicFeatureMapEntry",576);wDn(791,576,Iie,wF);lce.yl=function n(e){return new wF(this.c,e)};lce.md=function n(){return this.a};lce.zl=function n(e,t,r){return Usn(this,e,this.a,t,r)};lce.Al=function n(e,t,r){return Gsn(this,e,this.a,t,r)};var xat=YW(Jee,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791);wDn(1350,1,{},AA);lce.yk=function n(e,t,r,i,a){var c;c=bG(jen(e,this.b),220);return c.Yl(this.a).Fk(i)};lce.zk=function n(e,t,r,i,a){var c;c=bG(jen(e,this.b),220);return c.Pl(this.a,i,a)};lce.Ak=function n(e,t,r,i,a){var c;c=bG(jen(e,this.b),220);return c.Ql(this.a,i,a)};lce.Bk=function n(e,t,r){var i;i=bG(jen(e,this.b),220);return i.Yl(this.a).Qj()};lce.Ck=function n(e,t,r,i){var a;a=bG(jen(e,this.b),220);a.Yl(this.a).Wb(i)};lce.Dk=function n(e,t,r){return bG(jen(e,this.b),220).Yl(this.a)};lce.Ek=function n(e,t,r){var i;i=bG(jen(e,this.b),220);i.Yl(this.a).Gk()};var Rat=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350);wDn(91,1,{},HU,NY,WZ,o8);lce.yk=function n(e,t,r,i,a){var c;c=t.li(r);c==null&&t.mi(r,c=BYn(this,e));if(!a){switch(this.e){case 50:case 41:return bG(c,597).bk();case 40:return bG(c,220).Vl()}}return c};lce.zk=function n(e,t,r,i,a){var c,u;u=t.li(r);u==null&&t.mi(r,u=BYn(this,e));c=bG(u,71).Wk(i,a);return c};lce.Ak=function n(e,t,r,i,a){var c;c=t.li(r);c!=null&&(a=bG(c,71).Xk(i,a));return a};lce.Bk=function n(e,t,r){var i;i=t.li(r);return i!=null&&bG(i,79).Qj()};lce.Ck=function n(e,t,r,i){var a;a=bG(t.li(r),79);!a&&t.mi(r,a=BYn(this,e));a.Wb(i)};lce.Dk=function n(e,t,r){var i,a;a=t.li(r);a==null&&t.mi(r,a=BYn(this,e));if(G$(a,79)){return bG(a,79)}else{i=bG(t.li(r),15);return new qp(i)}};lce.Ek=function n(e,t,r){var i;i=bG(t.li(r),79);!i&&t.mi(r,i=BYn(this,e));i.Gk()};lce.b=0;lce.e=0;var Kat=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateMany",91);wDn(512,1,{});lce.zk=function n(e,t,r,i,a){throw dm(new Um)};lce.Ak=function n(e,t,r,i,a){throw dm(new Um)};lce.Dk=function n(e,t,r){return new $Y(this,e,t,r)};var Fat;var _at=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512);wDn(1367,1,aie,$Y);lce.Fk=function n(e){return this.a.yk(this.c,this.d,this.b,e,true)};lce.Qj=function n(){return this.a.Bk(this.c,this.d,this.b)};lce.Wb=function n(e){this.a.Ck(this.c,this.d,this.b,e)};lce.Gk=function n(){this.a.Ek(this.c,this.d,this.b)};lce.b=0;var Bat=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367);wDn(784,512,{},q1);lce.yk=function n(e,t,r,i,a){return LHn(e,e.Ph(),e.Fh())==this.b?this.bl()&&i?tDn(e):e.Ph():null};lce.zk=function n(e,t,r,i,a){var c,u;!!e.Ph()&&(a=(c=e.Fh(),c>=0?e.Ah(a):e.Ph().Th(e,-1-c,null,a)));u=upn(e.Dh(),this.e);return e.Ch(i,u,a)};lce.Ak=function n(e,t,r,i,a){var c;c=upn(e.Dh(),this.e);return e.Ch(null,c,a)};lce.Bk=function n(e,t,r){var i;i=upn(e.Dh(),this.e);return!!e.Ph()&&e.Fh()==i};lce.Ck=function n(e,t,r,i){var a,c,u,s,o;if(i!=null&&!RGn(this.a,i)){throw dm(new TM(Oie+(G$(i,58)?aPn(bG(i,58).Dh()):fin(Cbn(i)))+Aie+this.a+"'"))}a=e.Ph();u=upn(e.Dh(),this.e);if(BA(i)!==BA(a)||e.Fh()!=u&&i!=null){if(uEn(e,bG(i,58)))throw dm(new jM(Zee+e.Ib()));o=null;!!a&&(o=(c=e.Fh(),c>=0?e.Ah(o):e.Ph().Th(e,-1-c,null,o)));s=bG(i,54);!!s&&(o=s.Rh(e,upn(s.Dh(),this.b),null,o));o=e.Ch(s,u,o);!!o&&o.oj()}else{e.vh()&&e.wh()&&Pon(e,new vz(e,1,u,i,i))}};lce.Ek=function n(e,t,r){var i,a,c,u;i=e.Ph();if(i){u=(a=e.Fh(),a>=0?e.Ah(null):e.Ph().Th(e,-1-a,null,null));c=upn(e.Dh(),this.e);u=e.Ch(null,c,u);!!u&&u.oj()}else{e.vh()&&e.wh()&&Pon(e,new pz(e,1,this.e,null,null))}};lce.bl=function n(){return false};var Hat=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784);wDn(1351,784,{},UU);lce.bl=function n(){return true};var Uat=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351);wDn(574,512,{});lce.yk=function n(e,t,r,i,a){var c;return c=t.li(r),c==null?this.b:BA(c)===BA(Fat)?null:c};lce.Bk=function n(e,t,r){var i;i=t.li(r);return i!=null&&(BA(i)===BA(Fat)||!bdn(i,this.b))};lce.Ck=function n(e,t,r,i){var a,c;if(e.vh()&&e.wh()){a=(c=t.li(r),c==null?this.b:BA(c)===BA(Fat)?null:c);if(i==null){if(this.c!=null){t.mi(r,null);i=this.b}else this.b!=null?t.mi(r,Fat):t.mi(r,null)}else{this.Bl(i);t.mi(r,i)}Pon(e,this.d.Cl(e,1,this.e,a,i))}else{if(i==null){this.c!=null?t.mi(r,null):this.b!=null?t.mi(r,Fat):t.mi(r,null)}else{this.Bl(i);t.mi(r,i)}}};lce.Ek=function n(e,t,r){var i,a;if(e.vh()&&e.wh()){i=(a=t.li(r),a==null?this.b:BA(a)===BA(Fat)?null:a);t.ni(r);Pon(e,this.d.Cl(e,1,this.e,i,this.b))}else{t.ni(r)}};lce.Bl=function n(e){throw dm(new Fm)};var Gat=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574);wDn(Lie,1,{},$o);lce.Cl=function n(e,t,r,i,a){return new pz(e,t,r,i,a)};lce.Dl=function n(e,t,r,i,a,c){return new EZ(e,t,r,i,a,c)};var qat,Xat,Vat,zat,Wat,Qat,Jat,Yat,Zat;var nct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",Lie);wDn(1368,Lie,{},Do);lce.Cl=function n(e,t,r,i,a){return new L9(e,t,r,lM(yK(i)),lM(yK(a)))};lce.Dl=function n(e,t,r,i,a,c){return new m4(e,t,r,lM(yK(i)),lM(yK(a)),c)};var ect=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368);wDn(1369,Lie,{},xo);lce.Cl=function n(e,t,r,i,a){return new Xan(e,t,r,bG(i,222).a,bG(a,222).a)};lce.Dl=function n(e,t,r,i,a,c){return new l4(e,t,r,bG(i,222).a,bG(a,222).a,c)};var tct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369);wDn(1370,Lie,{},Ro);lce.Cl=function n(e,t,r,i,a){return new Van(e,t,r,bG(i,180).a,bG(a,180).a)};lce.Dl=function n(e,t,r,i,a,c){return new b4(e,t,r,bG(i,180).a,bG(a,180).a,c)};var rct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370);wDn(1371,Lie,{},Ko);lce.Cl=function n(e,t,r,i,a){return new O9(e,t,r,bM(MK(i)),bM(MK(a)))};lce.Dl=function n(e,t,r,i,a,c){return new w4(e,t,r,bM(MK(i)),bM(MK(a)),c)};var ict=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371);wDn(1372,Lie,{},Fo);lce.Cl=function n(e,t,r,i,a){return new Qan(e,t,r,bG(i,161).a,bG(a,161).a)};lce.Dl=function n(e,t,r,i,a,c){return new d4(e,t,r,bG(i,161).a,bG(a,161).a,c)};var act=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372);wDn(1373,Lie,{},_o);lce.Cl=function n(e,t,r,i,a){return new A9(e,t,r,bG(i,17).a,bG(a,17).a)};lce.Dl=function n(e,t,r,i,a,c){return new g4(e,t,r,bG(i,17).a,bG(a,17).a,c)};var cct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373);wDn(1374,Lie,{},Bo);lce.Cl=function n(e,t,r,i,a){return new zan(e,t,r,bG(i,168).a,bG(a,168).a)};lce.Dl=function n(e,t,r,i,a,c){return new v4(e,t,r,bG(i,168).a,bG(a,168).a,c)};var uct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374);wDn(1375,Lie,{},Ho);lce.Cl=function n(e,t,r,i,a){return new Wan(e,t,r,bG(i,191).a,bG(a,191).a)};lce.Dl=function n(e,t,r,i,a,c){return new p4(e,t,r,bG(i,191).a,bG(a,191).a,c)};var sct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375);wDn(1353,574,{},DY);lce.Bl=function n(e){if(!this.a.fk(e)){throw dm(new TM(Oie+Cbn(e)+Aie+this.a+"'"))}};var oct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353);wDn(1354,574,{},vV);lce.Bl=function n(e){};var fct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354);wDn(785,574,{});lce.Bk=function n(e,t,r){var i;i=t.li(r);return i!=null};lce.Ck=function n(e,t,r,i){var a,c;if(e.vh()&&e.wh()){a=true;c=t.li(r);if(c==null){a=false;c=this.b}else BA(c)===BA(Fat)&&(c=null);if(i==null){if(this.c!=null){t.mi(r,null);i=this.b}else{t.mi(r,Fat)}}else{this.Bl(i);t.mi(r,i)}Pon(e,this.d.Dl(e,1,this.e,c,i,!a))}else{if(i==null){this.c!=null?t.mi(r,null):t.mi(r,Fat)}else{this.Bl(i);t.mi(r,i)}}};lce.Ek=function n(e,t,r){var i,a;if(e.vh()&&e.wh()){i=true;a=t.li(r);if(a==null){i=false;a=this.b}else BA(a)===BA(Fat)&&(a=null);t.ni(r);Pon(e,this.d.Dl(e,2,this.e,a,this.b,i))}else{t.ni(r)}};var hct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785);wDn(1355,785,{},xY);lce.Bl=function n(e){if(!this.a.fk(e)){throw dm(new TM(Oie+Cbn(e)+Aie+this.a+"'"))}};var lct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355);wDn(1356,785,{},pV);lce.Bl=function n(e){};var bct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356);wDn(410,512,{},DX);lce.yk=function n(e,t,r,i,a){var c,u,s,o,f;f=t.li(r);if(this.tk()&&BA(f)===BA(Fat)){return null}else if(this.bl()&&i&&f!=null){s=bG(f,54);if(s.Vh()){o=Twn(e,s);if(s!=o){if(!RGn(this.a,o)){throw dm(new TM(Oie+Cbn(o)+Aie+this.a+"'"))}t.mi(r,f=o);if(this.al()){c=bG(o,54);u=s.Th(e,!this.b?-1-upn(e.Dh(),this.e):upn(s.Dh(),this.b),null,null);!c.Ph()&&(u=c.Rh(e,!this.b?-1-upn(e.Dh(),this.e):upn(c.Dh(),this.b),null,u));!!u&&u.oj()}e.vh()&&e.wh()&&Pon(e,new pz(e,9,this.e,s,o))}}return f}else{return f}};lce.zk=function n(e,t,r,i,a){var c,u;u=t.li(r);BA(u)===BA(Fat)&&(u=null);t.mi(r,i);if(this.Mj()){if(BA(u)!==BA(i)&&u!=null){c=bG(u,54);a=c.Th(e,upn(c.Dh(),this.b),null,a)}}else this.al()&&u!=null&&(a=bG(u,54).Th(e,-1-upn(e.Dh(),this.e),null,a));if(e.vh()&&e.wh()){!a&&(a=new fj(4));a.nj(new pz(e,1,this.e,u,i))}return a};lce.Ak=function n(e,t,r,i,a){var c;c=t.li(r);BA(c)===BA(Fat)&&(c=null);t.ni(r);if(e.vh()&&e.wh()){!a&&(a=new fj(4));this.tk()?a.nj(new pz(e,2,this.e,c,null)):a.nj(new pz(e,1,this.e,c,null))}return a};lce.Bk=function n(e,t,r){var i;i=t.li(r);return i!=null};lce.Ck=function n(e,t,r,i){var a,c,u,s,o;if(i!=null&&!RGn(this.a,i)){throw dm(new TM(Oie+(G$(i,58)?aPn(bG(i,58).Dh()):fin(Cbn(i)))+Aie+this.a+"'"))}o=t.li(r);s=o!=null;this.tk()&&BA(o)===BA(Fat)&&(o=null);u=null;if(this.Mj()){if(BA(o)!==BA(i)){if(o!=null){a=bG(o,54);u=a.Th(e,upn(a.Dh(),this.b),null,u)}if(i!=null){a=bG(i,54);u=a.Rh(e,upn(a.Dh(),this.b),null,u)}}}else if(this.al()){if(BA(o)!==BA(i)){o!=null&&(u=bG(o,54).Th(e,-1-upn(e.Dh(),this.e),null,u));i!=null&&(u=bG(i,54).Rh(e,-1-upn(e.Dh(),this.e),null,u))}}i==null&&this.tk()?t.mi(r,Fat):t.mi(r,i);if(e.vh()&&e.wh()){c=new EZ(e,1,this.e,o,i,this.tk()&&!s);if(!u){Pon(e,c)}else{u.nj(c);u.oj()}}else!!u&&u.oj()};lce.Ek=function n(e,t,r){var i,a,c,u,s;s=t.li(r);u=s!=null;this.tk()&&BA(s)===BA(Fat)&&(s=null);c=null;if(s!=null){if(this.Mj()){i=bG(s,54);c=i.Th(e,upn(i.Dh(),this.b),null,c)}else this.al()&&(c=bG(s,54).Th(e,-1-upn(e.Dh(),this.e),null,c))}t.ni(r);if(e.vh()&&e.wh()){a=new EZ(e,this.tk()?2:1,this.e,s,null,u);if(!c){Pon(e,a)}else{c.nj(a);c.oj()}}else!!c&&c.oj()};lce.Mj=function n(){return false};lce.al=function n(){return false};lce.bl=function n(){return false};lce.tk=function n(){return false};var wct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410);wDn(575,410,{},cK);lce.al=function n(){return true};var dct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575);wDn(1359,575,{},uK);lce.bl=function n(){return true};var gct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359);wDn(787,575,{},sK);lce.tk=function n(){return true};var vct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787);wDn(1361,787,{},fK);lce.bl=function n(){return true};var pct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361);wDn(650,575,{},GU);lce.Mj=function n(){return true};var mct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650);wDn(1360,650,{},VU);lce.bl=function n(){return true};var kct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360);wDn(788,650,{},zU);lce.tk=function n(){return true};var yct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788);wDn(1362,788,{},WU);lce.bl=function n(){return true};var Mct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362);wDn(651,410,{},oK);lce.bl=function n(){return true};var Tct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651);wDn(1363,651,{},hK);lce.tk=function n(){return true};var jct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363);wDn(789,651,{},qU);lce.Mj=function n(){return true};var Ect=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789);wDn(1364,789,{},QU);lce.tk=function n(){return true};var Sct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364);wDn(1357,410,{},lK);lce.tk=function n(){return true};var Pct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357);wDn(786,410,{},XU);lce.Mj=function n(){return true};var Cct=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786);wDn(1358,786,{},JU);lce.tk=function n(){return true};var Ict=YW(Jee,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358);wDn(790,576,Iie,OQ);lce.yl=function n(e){return new OQ(this.a,this.c,e)};lce.md=function n(){return this.b};lce.zl=function n(e,t,r){return Ann(this,e,this.b,r)};lce.Al=function n(e,t,r){return Lnn(this,e,this.b,r)};var Oct=YW(Jee,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790);wDn(1365,1,aie,qp);lce.Fk=function n(e){return this.a};lce.Qj=function n(){return G$(this.a,97)?bG(this.a,97).Qj():!this.a.dc()};lce.Wb=function n(e){this.a.$b();this.a.Gc(bG(e,15))};lce.Gk=function n(){G$(this.a,97)?bG(this.a,97).Gk():this.a.$b()};var Act=YW(Jee,"EStructuralFeatureImpl/SettingMany",1365);wDn(1366,576,Iie,l8);lce.xl=function n(e){return new dF((bzn(),Lot),this.b.ri(this.a,e))};lce.md=function n(){return null};lce.zl=function n(e,t,r){return r};lce.Al=function n(e,t,r){return r};var Lct=YW(Jee,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366);wDn(652,576,Iie,dF);lce.xl=function n(e){return new dF(this.c,e)};lce.md=function n(){return this.a};lce.zl=function n(e,t,r){return r};lce.Al=function n(e,t,r){return r};var Nct=YW(Jee,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652);wDn(403,506,zte,Uo);lce.aj=function n(e){return $nn(Mrt,jZn,29,e,0,1)};lce.Yi=function n(){return false};var $ct=YW(Jee,"ESuperAdapter/1",403);wDn(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},Go);lce.Lh=function n(e,t,r){var i;switch(e){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new xX(this,Crt,this)),this.a}return Fen(this,e-sQ((rZn(),oit)),uin((i=bG(Ron(this,16),29),!i?oit:i),e),t,r)};lce.Uh=function n(e,t,r){var i,a;switch(t){case 0:return!this.Ab&&(this.Ab=new gz(vrt,this,0,3)),Kyn(this.Ab,e,r);case 2:return!this.a&&(this.a=new xX(this,Crt,this)),Kyn(this.a,e,r)}return a=bG(uin((i=bG(Ron(this,16),29),!i?(rZn(),oit):i),t),69),a.wk().Ak(this,Fmn(this),t-sQ((rZn(),oit)),e,r)};lce.Wh=function n(e){var t;switch(e){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return v5(this,e-sQ((rZn(),oit)),uin((t=bG(Ron(this,16),29),!t?oit:t),e))};lce.bi=function n(e,t){var r;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NW(this.Ab,bG(t,16));return;case 1:Qun(this,TK(t));return;case 2:!this.a&&(this.a=new xX(this,Crt,this));NVn(this.a);!this.a&&(this.a=new xX(this,Crt,this));NW(this.a,bG(t,16));return}vvn(this,e-sQ((rZn(),oit)),uin((r=bG(Ron(this,16),29),!r?oit:r),e),t)};lce.ii=function n(){return rZn(),oit};lce.ki=function n(e){var t;switch(e){case 0:!this.Ab&&(this.Ab=new gz(vrt,this,0,3));NVn(this.Ab);return;case 1:Qun(this,null);return;case 2:!this.a&&(this.a=new xX(this,Crt,this));NVn(this.a);return}wdn(this,e-sQ((rZn(),oit)),uin((t=bG(Ron(this,16),29),!t?oit:t),e))};var Dct=YW(Jee,"ETypeParameterImpl",457);wDn(458,83,yie,xX);lce.Nj=function n(e,t){return TCn(this,bG(e,89),t)};lce.Oj=function n(e,t){return jCn(this,bG(e,89),t)};var xct=YW(Jee,"ETypeParameterImpl/1",458);wDn(647,45,_0n,cy);lce.ec=function n(){return new zp(this)};var Rct=YW(Jee,"ETypeParameterImpl/2",647);wDn(570,RZn,KZn,zp);lce.Fc=function n(e){return n_(this,bG(e,89))};lce.Gc=function n(e){var t,r,i;i=false;for(r=e.Kc();r.Ob();){t=bG(r.Pb(),89);jJ(this.a,t,"")==null&&(i=true)}return i};lce.$b=function n(){Fz(this.a)};lce.Hc=function n(e){return Lz(this.a,e)};lce.Kc=function n(){var e;return e=new pon(new Kw(this.a).a),new Wp(e)};lce.Mc=function n(e){return N7(this,e)};lce.gc=function n(){return lS(this.a)};var Kct=YW(Jee,"ETypeParameterImpl/2/1",570);wDn(571,1,NZn,Wp);lce.Nb=function n(e){Az(this,e)};lce.Pb=function n(){return bG(jun(this.a).ld(),89)};lce.Ob=function n(){return this.a.b};lce.Qb=function n(){Dtn(this.a)};var Fct=YW(Jee,"ETypeParameterImpl/2/1/1",571);wDn(1329,45,_0n,uy);lce._b=function n(e){return HA(e)?xZ(this,e):!!GX(this.f,e)};lce.xc=function n(e){var t,r;t=HA(e)?z1(this,e):_A(GX(this.f,e));if(G$(t,851)){r=bG(t,851);t=r.Kk();jJ(this,bG(e,241),t);return t}else return t!=null?t:e==null?(AP(),yst):null};var _ct=YW(Jee,"EValidatorRegistryImpl",1329);wDn(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},qo);lce.ri=function n(e,t){switch(e.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:fvn(t);case 25:return Jin(t);case 27:return atn(t);case 28:return ctn(t);case 29:return t==null?null:K$(Tnt[0],bG(t,206));case 41:return t==null?"":$j(bG(t,297));case 42:return fvn(t);case 50:return TK(t);default:throw dm(new jM(nte+e.xe()+ete))}};lce.si=function n(e){var t,r,i,a,c,u,s,o,f,h,l,b,w,d,g,v;switch(e.G==-1&&(e.G=(b=Vin(e),b?Vyn(b.vi(),e):-1)),e.G){case 0:return r=new ny,r;case 1:return t=new jo,t;case 2:return i=new Ul,i;case 4:return a=new Wm,a;case 5:return c=new ty,c;case 6:return u=new zm,u;case 7:return s=new Gl,s;case 10:return f=new Mo,f;case 11:return h=new ry,h;case 12:return l=new hZ,l;case 13:return w=new ay,w;case 14:return d=new LK,d;case 17:return g=new No,g;case 18:return o=new um,o;case 19:return v=new Go,v;default:throw dm(new jM(ite+e.zb+ete))}};lce.ti=function n(e,t){switch(e.hk()){case 20:return t==null?null:new nE(t);case 21:return t==null?null:new LN(t);case 23:case 22:return t==null?null:Dmn(t);case 26:case 24:return t==null?null:Xtn(TUn(t,-128,127)<<24>>24);case 25:return fxn(t);case 27:return wjn(t);case 28:return djn(t);case 29:return oIn(t);case 32:case 31:return t==null?null:rOn(t);case 38:case 37:return t==null?null:new ck(t);case 40:case 39:return t==null?null:Bwn(TUn(t,T1n,pZn));case 41:return null;case 42:return t==null?null:null;case 44:case 43:return t==null?null:Vmn(cJn(t));case 49:case 48:return t==null?null:Hwn(TUn(t,$ie,32767)<<16>>16);case 50:return t;default:throw dm(new jM(nte+e.xe()+ete))}};var Bct=YW(Jee,"EcoreFactoryImpl",1349);wDn(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},kJ);lce.gb=false;lce.hb=false;var Hct,Uct=false;var Gct=YW(Jee,"EcorePackageImpl",560);wDn(1234,1,{851:1},Xo);lce.Kk=function n(){return VD(),Fst};var qct=YW(Jee,"EcorePackageImpl/1",1234);wDn(1243,1,Vie,Vo);lce.fk=function n(e){return G$(e,155)};lce.gk=function n(e){return $nn(G7e,jZn,155,e,0,1)};var Xct=YW(Jee,"EcorePackageImpl/10",1243);wDn(1244,1,Vie,zo);lce.fk=function n(e){return G$(e,197)};lce.gk=function n(e){return $nn(V7e,jZn,197,e,0,1)};var Vct=YW(Jee,"EcorePackageImpl/11",1244);wDn(1245,1,Vie,Wo);lce.fk=function n(e){return G$(e,58)};lce.gk=function n(e){return $nn(x7e,jZn,58,e,0,1)};var zct=YW(Jee,"EcorePackageImpl/12",1245);wDn(1246,1,Vie,Qo);lce.fk=function n(e){return G$(e,411)};lce.gk=function n(e){return $nn(Irt,mie,62,e,0,1)};var Wct=YW(Jee,"EcorePackageImpl/13",1246);wDn(1247,1,Vie,Jo);lce.fk=function n(e){return G$(e,241)};lce.gk=function n(e){return $nn(z7e,jZn,241,e,0,1)};var Qct=YW(Jee,"EcorePackageImpl/14",1247);wDn(1248,1,Vie,Yo);lce.fk=function n(e){return G$(e,518)};lce.gk=function n(e){return $nn(Art,jZn,2116,e,0,1)};var Jct=YW(Jee,"EcorePackageImpl/15",1248);wDn(1249,1,Vie,Zo);lce.fk=function n(e){return G$(e,102)};lce.gk=function n(e){return $nn(Lrt,pie,19,e,0,1)};var Yct=YW(Jee,"EcorePackageImpl/16",1249);wDn(1250,1,Vie,nf);lce.fk=function n(e){return G$(e,179)};lce.gk=function n(e){return $nn(mrt,pie,179,e,0,1)};var Zct=YW(Jee,"EcorePackageImpl/17",1250);wDn(1251,1,Vie,ef);lce.fk=function n(e){return G$(e,481)};lce.gk=function n(e){return $nn(prt,jZn,481,e,0,1)};var nut=YW(Jee,"EcorePackageImpl/18",1251);wDn(1252,1,Vie,tf);lce.fk=function n(e){return G$(e,561)};lce.gk=function n(e){return $nn(Nat,Gre,561,e,0,1)};var eut=YW(Jee,"EcorePackageImpl/19",1252);wDn(1235,1,Vie,rf);lce.fk=function n(e){return G$(e,331)};lce.gk=function n(e){return $nn(krt,pie,35,e,0,1)};var tut=YW(Jee,"EcorePackageImpl/2",1235);wDn(1253,1,Vie,af);lce.fk=function n(e){return G$(e,248)};lce.gk=function n(e){return $nn(Crt,Eie,89,e,0,1)};var rut=YW(Jee,"EcorePackageImpl/20",1253);wDn(1254,1,Vie,cf);lce.fk=function n(e){return G$(e,457)};lce.gk=function n(e){return $nn(xrt,jZn,850,e,0,1)};var iut=YW(Jee,"EcorePackageImpl/21",1254);wDn(1255,1,Vie,uf);lce.fk=function n(e){return UA(e)};lce.gk=function n(e){return $nn(Uhe,XZn,485,e,8,1)};var aut=YW(Jee,"EcorePackageImpl/22",1255);wDn(1256,1,Vie,sf);lce.fk=function n(e){return G$(e,195)};lce.gk=function n(e){return $nn(Vht,XZn,195,e,0,2)};var cut=YW(Jee,"EcorePackageImpl/23",1256);wDn(1257,1,Vie,of);lce.fk=function n(e){return G$(e,222)};lce.gk=function n(e){return $nn(Xhe,XZn,222,e,0,1)};var uut=YW(Jee,"EcorePackageImpl/24",1257);wDn(1258,1,Vie,ff);lce.fk=function n(e){return G$(e,180)};lce.gk=function n(e){return $nn(Whe,XZn,180,e,0,1)};var sut=YW(Jee,"EcorePackageImpl/25",1258);wDn(1259,1,Vie,hf);lce.fk=function n(e){return G$(e,206)};lce.gk=function n(e){return $nn(hhe,XZn,206,e,0,1)};var out=YW(Jee,"EcorePackageImpl/26",1259);wDn(1260,1,Vie,lf);lce.fk=function n(e){return false};lce.gk=function n(e){return $nn(Yht,jZn,2215,e,0,1)};var fut=YW(Jee,"EcorePackageImpl/27",1260);wDn(1261,1,Vie,bf);lce.fk=function n(e){return GA(e)};lce.gk=function n(e){return $nn(Yhe,XZn,345,e,7,1)};var hut=YW(Jee,"EcorePackageImpl/28",1261);wDn(1262,1,Vie,wf);lce.fk=function n(e){return G$(e,61)};lce.gk=function n(e){return $nn(Xet,B3n,61,e,0,1)};var lut=YW(Jee,"EcorePackageImpl/29",1262);wDn(1236,1,Vie,df);lce.fk=function n(e){return G$(e,519)};lce.gk=function n(e){return $nn(vrt,{3:1,4:1,5:1,2033:1},598,e,0,1)};var but=YW(Jee,"EcorePackageImpl/3",1236);wDn(1263,1,Vie,gf);lce.fk=function n(e){return G$(e,582)};lce.gk=function n(e){return $nn(Wtt,jZn,2039,e,0,1)};var wut=YW(Jee,"EcorePackageImpl/30",1263);wDn(1264,1,Vie,vf);lce.fk=function n(e){return G$(e,160)};lce.gk=function n(e){return $nn(rst,B3n,160,e,0,1)};var dut=YW(Jee,"EcorePackageImpl/31",1264);wDn(1265,1,Vie,pf);lce.fk=function n(e){return G$(e,76)};lce.gk=function n(e){return $nn(fit,zie,76,e,0,1)};var gut=YW(Jee,"EcorePackageImpl/32",1265);wDn(1266,1,Vie,mf);lce.fk=function n(e){return G$(e,161)};lce.gk=function n(e){return $nn(Zhe,XZn,161,e,0,1)};var vut=YW(Jee,"EcorePackageImpl/33",1266);wDn(1267,1,Vie,kf);lce.fk=function n(e){return G$(e,17)};lce.gk=function n(e){return $nn(tle,XZn,17,e,0,1)};var put=YW(Jee,"EcorePackageImpl/34",1267);wDn(1268,1,Vie,yf);lce.fk=function n(e){return G$(e,297)};lce.gk=function n(e){return $nn(yce,jZn,297,e,0,1)};var mut=YW(Jee,"EcorePackageImpl/35",1268);wDn(1269,1,Vie,Mf);lce.fk=function n(e){return G$(e,168)};lce.gk=function n(e){return $nn(ale,XZn,168,e,0,1)};var kut=YW(Jee,"EcorePackageImpl/36",1269);wDn(1270,1,Vie,Tf);lce.fk=function n(e){return G$(e,85)};lce.gk=function n(e){return $nn(_ce,jZn,85,e,0,1)};var yut=YW(Jee,"EcorePackageImpl/37",1270);wDn(1271,1,Vie,jf);lce.fk=function n(e){return G$(e,599)};lce.gk=function n(e){return $nn(Kut,jZn,599,e,0,1)};var Mut=YW(Jee,"EcorePackageImpl/38",1271);wDn(1272,1,Vie,Ef);lce.fk=function n(e){return false};lce.gk=function n(e){return $nn(Zht,jZn,2216,e,0,1)};var Tut=YW(Jee,"EcorePackageImpl/39",1272);wDn(1237,1,Vie,Sf);lce.fk=function n(e){return G$(e,90)};lce.gk=function n(e){return $nn(Mrt,jZn,29,e,0,1)};var jut=YW(Jee,"EcorePackageImpl/4",1237);wDn(1273,1,Vie,Pf);lce.fk=function n(e){return G$(e,191)};lce.gk=function n(e){return $nn(wle,XZn,191,e,0,1)};var Eut=YW(Jee,"EcorePackageImpl/40",1273);wDn(1274,1,Vie,Cf);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Sut=YW(Jee,"EcorePackageImpl/41",1274);wDn(1275,1,Vie,If);lce.fk=function n(e){return G$(e,596)};lce.gk=function n(e){return $nn(Wet,jZn,596,e,0,1)};var Put=YW(Jee,"EcorePackageImpl/42",1275);wDn(1276,1,Vie,Of);lce.fk=function n(e){return false};lce.gk=function n(e){return $nn(nlt,XZn,2217,e,0,1)};var Cut=YW(Jee,"EcorePackageImpl/43",1276);wDn(1277,1,Vie,Af);lce.fk=function n(e){return G$(e,44)};lce.gk=function n(e){return $nn(vue,i1n,44,e,0,1)};var Iut=YW(Jee,"EcorePackageImpl/44",1277);wDn(1238,1,Vie,Lf);lce.fk=function n(e){return G$(e,142)};lce.gk=function n(e){return $nn(yrt,jZn,142,e,0,1)};var Out=YW(Jee,"EcorePackageImpl/5",1238);wDn(1239,1,Vie,Nf);lce.fk=function n(e){return G$(e,156)};lce.gk=function n(e){return $nn(Trt,jZn,156,e,0,1)};var Aut=YW(Jee,"EcorePackageImpl/6",1239);wDn(1240,1,Vie,$f);lce.fk=function n(e){return G$(e,469)};lce.gk=function n(e){return $nn(Srt,jZn,685,e,0,1)};var Lut=YW(Jee,"EcorePackageImpl/7",1240);wDn(1241,1,Vie,Df);lce.fk=function n(e){return G$(e,582)};lce.gk=function n(e){return $nn(Prt,jZn,694,e,0,1)};var Nut=YW(Jee,"EcorePackageImpl/8",1241);wDn(1242,1,Vie,xf);lce.fk=function n(e){return G$(e,480)};lce.gk=function n(e){return $nn(q7e,jZn,480,e,0,1)};var $ut=YW(Jee,"EcorePackageImpl/9",1242);wDn(1038,2080,Hre,eM);lce.Mi=function n(e,t){mdn(this,bG(t,424))};lce.Qi=function n(e,t){WAn(this,e,bG(t,424))};var Dut=YW(Jee,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038);wDn(1039,152,Fre,AQ);lce.jj=function n(){return this.a.a};var xut=YW(Jee,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039);wDn(1067,1066,{},u$);var Rut=YW("org.eclipse.emf.ecore.plugin","EcorePlugin",1067);var Kut=$q(Wie,"Resource");wDn(799,1524,Qie);lce.Hl=function n(e){};lce.Il=function n(e){};lce.El=function n(){return!this.a&&(this.a=new Qp(this)),this.a};lce.Fl=function n(e){var t,r,i,a,c;i=e.length;if(i>0){w3(0,e.length);if(e.charCodeAt(0)==47){c=new H7(4);a=1;for(t=1;t0&&(e=(Unn(0,r,e.length),e.substr(0,r)))}}}return vNn(this,e)};lce.Gl=function n(){return this.c};lce.Ib=function n(){var e;return $j(this.Rm)+"@"+(e=Vun(this)>>>0,e.toString(16))+" uri='"+this.d+"'"};lce.b=false;var Fut=YW(Jie,"ResourceImpl",799);wDn(1525,799,Qie,Jp);var _ut=YW(Jie,"BinaryResourceImpl",1525);wDn(1190,708,Wte);lce.bj=function n(e){return G$(e,58)?t1(this,bG(e,58)):G$(e,599)?new _D(bG(e,599).El()):BA(e)===BA(this.f)?bG(e,16).Kc():(OK(),Gtt.a)};lce.Ob=function n(){return b$n(this)};lce.a=false;var But=YW(iie,"EcoreUtil/ContentTreeIterator",1190);wDn(1526,1190,Wte,kz);lce.bj=function n(e){return BA(e)===BA(this.f)?bG(e,15).Kc():new R6(bG(e,58))};var Hut=YW(Jie,"ResourceImpl/5",1526);wDn(658,2092,kie,Qp);lce.Hc=function n(e){return this.i<=4?wSn(this,e):G$(e,54)&&bG(e,54).Jh()==this.a};lce.Mi=function n(e,t){e==this.i-1&&(this.a.b||(this.a.b=true,null))};lce.Oi=function n(e,t){e==0?this.a.b||(this.a.b=true,null):xnn(this,e,t)};lce.Qi=function n(e,t){};lce.Ri=function n(e,t,r){};lce.Lj=function n(){return 2};lce.jj=function n(){return this.a};lce.Mj=function n(){return true};lce.Nj=function n(e,t){var r;r=bG(e,54);t=r.fi(this.a,t);return t};lce.Oj=function n(e,t){var r;r=bG(e,54);return r.fi(null,t)};lce.Pj=function n(){return false};lce.Si=function n(){return true};lce.aj=function n(e){return $nn(x7e,jZn,58,e,0,1)};lce.Yi=function n(){return false};var Uut=YW(Jie,"ResourceImpl/ContentsEList",658);wDn(970,2062,v1n,Yp);lce.fd=function n(e){return this.a.Ki(e)};lce.gc=function n(){return this.a.gc()};var Gut=YW(iie,"AbstractSequentialInternalEList/1",970);var qut,Xut,Vut,zut;wDn(634,1,{},VG);var Wut,Qut;var Jut=YW(iie,"BasicExtendedMetaData",634);wDn(1181,1,{},NA);lce.Jl=function n(){return null};lce.Kl=function n(){this.a==-2&&gw(this,QCn(this.d,this.b));return this.a};lce.Ll=function n(){return null};lce.Ml=function n(){return dZ(),dZ(),lbe};lce.xe=function n(){this.c==lae&&vw(this,fkn(this.d,this.b));return this.c};lce.Nl=function n(){return 0};lce.a=-2;lce.c=lae;var Yut=YW(iie,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181);wDn(1182,1,{},y4);lce.Jl=function n(){this.a==(K7(),Wut)&&kw(this,CBn(this.f,this.b));return this.a};lce.Kl=function n(){return 0};lce.Ll=function n(){this.c==(K7(),Wut)&&pw(this,IBn(this.f,this.b));return this.c};lce.Ml=function n(){!this.d&&Mw(this,sqn(this.f,this.b));return this.d};lce.xe=function n(){this.e==lae&&jw(this,fkn(this.f,this.b));return this.e};lce.Nl=function n(){this.g==-2&&Sw(this,_Pn(this.f,this.b));return this.g};lce.e=lae;lce.g=-2;var Zut=YW(iie,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182);wDn(1180,1,{},$A);lce.b=false;lce.c=false;var nst=YW(iie,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180);wDn(1183,1,{},M4);lce.c=-2;lce.e=lae;lce.f=lae;var est=YW(iie,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183);wDn(593,632,yie,qG);lce.Lj=function n(){return this.c};lce.ol=function n(){return false};lce.Wi=function n(e,t){return t};lce.c=0;var tst=YW(iie,"EDataTypeEList",593);var rst=$q(iie,"FeatureMap");wDn(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},mon);lce.bd=function n(e,t){sKn(this,e,bG(t,76))};lce.Fc=function n(e){return eRn(this,bG(e,76))};lce.Hi=function n(e){DW(this,bG(e,76))};lce.Nj=function n(e,t){return Q_(this,bG(e,76),t)};lce.Oj=function n(e,t){return J_(this,bG(e,76),t)};lce.Ti=function n(e,t){return vUn(this,e,t)};lce.Wi=function n(e,t){return $zn(this,e,bG(t,76))};lce.hd=function n(e,t){return EFn(this,e,bG(t,76))};lce.Uj=function n(e,t){return Y_(this,bG(e,76),t)};lce.Vj=function n(e,t){return Z_(this,bG(e,76),t)};lce.Wj=function n(e,t,r){return hPn(this,bG(e,76),bG(t,76),r)};lce.Zi=function n(e,t){return nCn(this,e,bG(t,76))};lce.Ol=function n(e,t){return zHn(this,e,t)};lce.cd=function n(e,t){var r,i,a,c,u,s,o,f,h;f=new _in(t.gc());for(a=t.Kc();a.Ob();){i=bG(a.Pb(),76);c=i.Lk();if(OFn(this.e,c)){(!c.Si()||!V5(this,c,i.md())&&!wSn(f,i))&&cen(f,i)}else{h=ZKn(this.e.Dh(),c);r=bG(this.g,124);u=true;for(s=0;s=0){t=e[this.c];if(this.k.am(t.Lk())){this.j=this.f?t:t.md();this.i=-2;return true}}this.i=-1;this.g=-1;return false};var cst=YW(iie,"BasicFeatureMap/FeatureEIterator",420);wDn(676,420,HZn,SL);lce.ul=function n(){return true};var ust=YW(iie,"BasicFeatureMap/ResolvingFeatureEIterator",676);wDn(968,496,Pie,W$);lce.pj=function n(){return this};var sst=YW(iie,"EContentsEList/1",968);wDn(969,496,Pie,EL);lce.ul=function n(){return false};var ost=YW(iie,"EContentsEList/2",969);wDn(967,287,Cie,Q$);lce.wl=function n(e){};lce.Ob=function n(){return false};lce.Sb=function n(){return false};var fst=YW(iie,"EContentsEList/FeatureIteratorImpl/1",967);wDn(840,593,yie,ID);lce.Ni=function n(){this.a=true};lce.Qj=function n(){return this.a};lce.Gk=function n(){var e;NVn(this);if(bN(this.e)){e=this.a;this.a=false;Pon(this.e,new I9(this.e,2,this.c,e,false))}else{this.a=false}};lce.a=false;var hst=YW(iie,"EDataTypeEList/Unsettable",840);wDn(1958,593,yie,OD);lce.Si=function n(){return true};var lst=YW(iie,"EDataTypeUniqueEList",1958);wDn(1959,840,yie,AD);lce.Si=function n(){return true};var bst=YW(iie,"EDataTypeUniqueEList/Unsettable",1959);wDn(147,83,yie,LD);lce.nl=function n(){return true};lce.Wi=function n(e,t){return H$n(this,e,bG(t,58))};var wst=YW(iie,"EObjectContainmentEList/Resolving",147);wDn(1184,555,yie,ND);lce.nl=function n(){return true};lce.Wi=function n(e,t){return H$n(this,e,bG(t,58))};var dst=YW(iie,"EObjectContainmentEList/Unsettable/Resolving",1184);wDn(766,14,yie,o_);lce.Ni=function n(){this.a=true};lce.Qj=function n(){return this.a};lce.Gk=function n(){var e;NVn(this);if(bN(this.e)){e=this.a;this.a=false;Pon(this.e,new I9(this.e,2,this.c,e,false))}else{this.a=false}};lce.a=false;var gst=YW(iie,"EObjectContainmentWithInverseEList/Unsettable",766);wDn(1222,766,yie,f_);lce.nl=function n(){return true};lce.Wi=function n(e,t){return H$n(this,e,bG(t,58))};var vst=YW(iie,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222);wDn(757,505,yie,$D);lce.Ni=function n(){this.a=true};lce.Qj=function n(){return this.a};lce.Gk=function n(){var e;NVn(this);if(bN(this.e)){e=this.a;this.a=false;Pon(this.e,new I9(this.e,2,this.c,e,false))}else{this.a=false}};lce.a=false;var pst=YW(iie,"EObjectEList/Unsettable",757);wDn(338,505,yie,DD);lce.nl=function n(){return true};lce.Wi=function n(e,t){return H$n(this,e,bG(t,58))};var mst=YW(iie,"EObjectResolvingEList",338);wDn(1844,757,yie,xD);lce.nl=function n(){return true};lce.Wi=function n(e,t){return H$n(this,e,bG(t,58))};var kst=YW(iie,"EObjectResolvingEList/Unsettable",1844);wDn(1527,1,{},Rf);var yst;var Mst=YW(iie,"EObjectValidator",1527);wDn(559,505,yie,mz);lce.il=function n(){return this.d};lce.jl=function n(){return this.b};lce.Mj=function n(){return true};lce.ml=function n(){return true};lce.b=0;var Tst=YW(iie,"EObjectWithInverseEList",559);wDn(1225,559,yie,h_);lce.ll=function n(){return true};var jst=YW(iie,"EObjectWithInverseEList/ManyInverse",1225);wDn(635,559,yie,l_);lce.Ni=function n(){this.a=true};lce.Qj=function n(){return this.a};lce.Gk=function n(){var e;NVn(this);if(bN(this.e)){e=this.a;this.a=false;Pon(this.e,new I9(this.e,2,this.c,e,false))}else{this.a=false}};lce.a=false;var Est=YW(iie,"EObjectWithInverseEList/Unsettable",635);wDn(1224,635,yie,w_);lce.ll=function n(){return true};var Sst=YW(iie,"EObjectWithInverseEList/Unsettable/ManyInverse",1224);wDn(767,559,yie,b_);lce.nl=function n(){return true};lce.Wi=function n(e,t){return H$n(this,e,bG(t,58))};var Pst=YW(iie,"EObjectWithInverseResolvingEList",767);wDn(32,767,yie,g_);lce.ll=function n(){return true};var Cst=YW(iie,"EObjectWithInverseResolvingEList/ManyInverse",32);wDn(768,635,yie,d_);lce.nl=function n(){return true};lce.Wi=function n(e,t){return H$n(this,e,bG(t,58))};var Ist=YW(iie,"EObjectWithInverseResolvingEList/Unsettable",768);wDn(1223,768,yie,v_);lce.ll=function n(){return true};var Ost=YW(iie,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223);wDn(1185,632,yie);lce.Li=function n(){return(this.b&1792)==0};lce.Ni=function n(){this.b|=1};lce.kl=function n(){return(this.b&4)!=0};lce.Mj=function n(){return(this.b&40)!=0};lce.ll=function n(){return(this.b&16)!=0};lce.ml=function n(){return(this.b&8)!=0};lce.nl=function n(){return(this.b&oie)!=0};lce.al=function n(){return(this.b&32)!=0};lce.ol=function n(){return(this.b&b1n)!=0};lce.fk=function n(e){return!this.d?this.Lk().Hk().fk(e):j5(this.d,e)};lce.Qj=function n(){return(this.b&2)!=0?(this.b&1)!=0:this.i!=0};lce.Si=function n(){return(this.b&128)!=0};lce.Gk=function n(){var e;NVn(this);if((this.b&2)!=0){if(bN(this.e)){e=(this.b&1)!=0;this.b&=-2;rk(this,new I9(this.e,2,upn(this.e.Dh(),this.Lk()),e,false))}else{this.b&=-2}}};lce.Yi=function n(){return(this.b&1536)==0};lce.b=0;var Ast=YW(iie,"EcoreEList/Generic",1185);wDn(1186,1185,yie,SZ);lce.Lk=function n(){return this.a};var Lst=YW(iie,"EcoreEList/Dynamic",1186);wDn(765,66,zte,Zp);lce.aj=function n(e){return xan(this.a.a,e)};var Nst=YW(iie,"EcoreEMap/1",765);wDn(764,83,yie,Ez);lce.Mi=function n(e,t){pMn(this.b,bG(t,136))};lce.Oi=function n(e,t){Don(this.b)};lce.Pi=function n(e,t,r){var i;++(i=this.b,bG(t,136),i).e};lce.Qi=function n(e,t){Zdn(this.b,bG(t,136))};lce.Ri=function n(e,t,r){Zdn(this.b,bG(r,136));BA(r)===BA(t)&&bG(r,136).Ci(n$(bG(t,136).ld()));pMn(this.b,bG(t,136))};var $st=YW(iie,"EcoreEMap/DelegateEObjectContainmentEList",764);wDn(1220,141,cie,Bcn);var Dst=YW(iie,"EcoreEMap/Unsettable",1220);wDn(1221,764,yie,p_);lce.Ni=function n(){this.a=true};lce.Qj=function n(){return this.a};lce.Gk=function n(){var e;NVn(this);if(bN(this.e)){e=this.a;this.a=false;Pon(this.e,new I9(this.e,2,this.c,e,false))}else{this.a=false}};lce.a=false;var xst=YW(iie,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221);wDn(1189,215,_0n,_W);lce.a=false;lce.b=false;var Rst=YW(iie,"EcoreUtil/Copier",1189);wDn(759,1,NZn,R6);lce.Nb=function n(e){Az(this,e)};lce.Ob=function n(){return rmn(this)};lce.Pb=function n(){var e;rmn(this);e=this.b;this.b=null;return e};lce.Qb=function n(){this.a.Qb()};var Kst=YW(iie,"EcoreUtil/ProperContentIterator",759);wDn(1528,1527,{},ql);var Fst;var _st=YW(iie,"EcoreValidator",1528);var Bst;var Hst=$q(iie,"FeatureMapUtil/Validator");wDn(1295,1,{2041:1},Kf);lce.am=function n(e){return true};var Ust=YW(iie,"FeatureMapUtil/1",1295);wDn(773,1,{2041:1},SQn);lce.am=function n(e){var t;if(this.c==e)return true;t=yK(fQ(this.a,e));if(t==null){if(_Bn(this,e)){n7(this.a,e,(Qx(),Hhe));return true}else{n7(this.a,e,(Qx(),Bhe));return false}}else{return t==(Qx(),Hhe)}};lce.e=false;var Gst;var qst=YW(iie,"FeatureMapUtil/BasicValidator",773);wDn(774,45,_0n,z$);var Xst=YW(iie,"FeatureMapUtil/BasicValidator/Cache",774);wDn(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},DA);lce.bd=function n(e,t){RFn(this.c,this.b,e,t)};lce.Fc=function n(e){return zHn(this.c,this.b,e)};lce.cd=function n(e,t){return qXn(this.c,this.b,e,t)};lce.Gc=function n(e){return U$(this,e)};lce.Gi=function n(e,t){din(this.c,this.b,e,t)};lce.Wk=function n(e,t){return DBn(this.c,this.b,e,t)};lce.$i=function n(e){return yXn(this.c,this.b,e,false)};lce.Ii=function n(){return mN(this.c,this.b)};lce.Ji=function n(){return kN(this.c,this.b)};lce.Ki=function n(e){return Dnn(this.c,this.b,e)};lce.Xk=function n(e,t){return oF(this,e,t)};lce.$b=function n(){ik(this)};lce.Hc=function n(e){return V5(this.c,this.b,e)};lce.Ic=function n(e){return Hsn(this.c,this.b,e)};lce.Xb=function n(e){return yXn(this.c,this.b,e,true)};lce.Fk=function n(e){return this};lce.dd=function n(e){return z5(this.c,this.b,e)};lce.dc=function n(){return FA(this)};lce.Qj=function n(){return!Epn(this.c,this.b)};lce.Kc=function n(){return Ern(this.c,this.b)};lce.ed=function n(){return Srn(this.c,this.b)};lce.fd=function n(e){return vgn(this.c,this.b,e)};lce.Ti=function n(e,t){return OGn(this.c,this.b,e,t)};lce.Ui=function n(e,t){Bnn(this.c,this.b,e,t)};lce.gd=function n(e){return ZOn(this.c,this.b,e)};lce.Mc=function n(e){return FHn(this.c,this.b,e)};lce.hd=function n(e,t){return dqn(this.c,this.b,e,t)};lce.Wb=function n(e){N$n(this.c,this.b);U$(this,bG(e,15))};lce.gc=function n(){return ggn(this.c,this.b)};lce.Pc=function n(){return j4(this.c,this.b)};lce.Qc=function n(e){return W5(this.c,this.b,e)};lce.Ib=function n(){var e,t;t=new YM;t.a+="[";for(e=mN(this.c,this.b);ibn(e);){ZA(t,lx(qyn(e)));ibn(e)&&(t.a+=MZn,t)}t.a+="]";return t.a};lce.Gk=function n(){N$n(this.c,this.b)};var Vst=YW(iie,"FeatureMapUtil/FeatureEList",509);wDn(644,39,Fre,s8);lce.hj=function n(e){return Sdn(this,e)};lce.mj=function n(e){var t,r,i,a,c,u,s;switch(this.d){case 1:case 2:{c=e.jj();if(BA(c)===BA(this.c)&&Sdn(this,null)==e.hj(null)){this.g=e.ij();e.gj()==1&&(this.d=1);return true}break}case 3:{a=e.gj();switch(a){case 3:{c=e.jj();if(BA(c)===BA(this.c)&&Sdn(this,null)==e.hj(null)){this.d=5;t=new _in(2);cen(t,this.g);cen(t,e.ij());this.g=t;return true}break}}break}case 5:{a=e.gj();switch(a){case 3:{c=e.jj();if(BA(c)===BA(this.c)&&Sdn(this,null)==e.hj(null)){r=bG(this.g,16);r.Fc(e.ij());return true}break}}break}case 4:{a=e.gj();switch(a){case 3:{c=e.jj();if(BA(c)===BA(this.c)&&Sdn(this,null)==e.hj(null)){this.d=1;this.g=e.ij();return true}break}case 4:{c=e.jj();if(BA(c)===BA(this.c)&&Sdn(this,null)==e.hj(null)){this.d=6;s=new _in(2);cen(s,this.n);cen(s,e.kj());this.n=s;u=zfn(fT(Ght,1),z1n,28,15,[this.o,e.lj()]);this.g=u;return true}break}}break}case 6:{a=e.gj();switch(a){case 4:{c=e.jj();if(BA(c)===BA(this.c)&&Sdn(this,null)==e.hj(null)){r=bG(this.n,16);r.Fc(e.kj());u=bG(this.g,53);i=$nn(Ght,z1n,28,u.length+1,15,1);QGn(u,0,i,0,u.length);i[u.length]=e.lj();this.g=i;return true}break}}break}}return false};var zst=YW(iie,"FeatureMapUtil/FeatureENotificationImpl",644);wDn(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},Nq);lce.Ol=function n(e,t){return zHn(this.c,e,t)};lce.Pl=function n(e,t,r){return DBn(this.c,e,t,r)};lce.Ql=function n(e,t,r){return gXn(this.c,e,t,r)};lce.Rl=function n(){return this};lce.Sl=function n(e,t){return kXn(this.c,e,t)};lce.Tl=function n(e){return bG(yXn(this.c,this.b,e,false),76).Lk()};lce.Ul=function n(e){return bG(yXn(this.c,this.b,e,false),76).md()};lce.Vl=function n(){return this.a};lce.Wl=function n(e){return!Epn(this.c,e)};lce.Xl=function n(e,t){XXn(this.c,e,t)};lce.Yl=function n(e){return aun(this.c,e)};lce.Zl=function n(e){OTn(this.c,e)};var Wst=YW(iie,"FeatureMapUtil/FeatureFeatureMap",564);wDn(1294,1,aie,LA);lce.Fk=function n(e){return yXn(this.b,this.a,-1,e)};lce.Qj=function n(){return!Epn(this.b,this.a)};lce.Wb=function n(e){XXn(this.b,this.a,e)};lce.Gk=function n(){N$n(this.b,this.a)};var Qst=YW(iie,"FeatureMapUtil/FeatureValue",1294);var Jst,Yst,Zst,not,eot;var tot=$q(wae,"AnyType");wDn(680,63,E1n,LM);var rot=YW(wae,"InvalidDatatypeValueException",680);var iot=$q(wae,dae);var aot=$q(wae,gae);var cot=$q(wae,vae);var uot;var sot;var oot,fot,hot,lot,bot,wot,dot,got,vot,pot,mot,kot,yot,Mot,Tot,jot,Eot,Sot,Pot,Cot,Iot,Oot,Aot,Lot;wDn(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},sy);lce.Lh=function n(e,t,r){switch(e){case 0:if(r)return!this.c&&(this.c=new mon(this,0)),this.c;return!this.c&&(this.c=new mon(this,0)),this.c.b;case 1:if(r)return!this.c&&(this.c=new mon(this,0)),bG(C2(this.c,(bzn(),fot)),160);return(!this.c&&(this.c=new mon(this,0)),bG(bG(C2(this.c,(bzn(),fot)),160),220)).Vl();case 2:if(r)return!this.b&&(this.b=new mon(this,2)),this.b;return!this.b&&(this.b=new mon(this,2)),this.b.b}return Fen(this,e-sQ(this.ii()),uin((this.j&2)==0?this.ii():(!this.k&&(this.k=new Rl),this.k).Nk(),e),t,r)};lce.Uh=function n(e,t,r){var i;switch(t){case 0:return!this.c&&(this.c=new mon(this,0)),KHn(this.c,e,r);case 1:return(!this.c&&(this.c=new mon(this,0)),bG(bG(C2(this.c,(bzn(),fot)),160),71)).Xk(e,r);case 2:return!this.b&&(this.b=new mon(this,2)),KHn(this.b,e,r)}return i=bG(uin((this.j&2)==0?this.ii():(!this.k&&(this.k=new Rl),this.k).Nk(),t),69),i.wk().Ak(this,nrn(this),t-sQ(this.ii()),e,r)};lce.Wh=function n(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new mon(this,0)),bG(C2(this.c,(bzn(),fot)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return v5(this,e-sQ(this.ii()),uin((this.j&2)==0?this.ii():(!this.k&&(this.k=new Rl),this.k).Nk(),e))};lce.bi=function n(e,t){switch(e){case 0:!this.c&&(this.c=new mon(this,0));fW(this.c,t);return;case 1:(!this.c&&(this.c=new mon(this,0)),bG(bG(C2(this.c,(bzn(),fot)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new mon(this,2));fW(this.b,t);return}vvn(this,e-sQ(this.ii()),uin((this.j&2)==0?this.ii():(!this.k&&(this.k=new Rl),this.k).Nk(),e),t)};lce.ii=function n(){return bzn(),oot};lce.ki=function n(e){switch(e){case 0:!this.c&&(this.c=new mon(this,0));NVn(this.c);return;case 1:(!this.c&&(this.c=new mon(this,0)),bG(C2(this.c,(bzn(),fot)),160)).$b();return;case 2:!this.b&&(this.b=new mon(this,2));NVn(this.b);return}wdn(this,e-sQ(this.ii()),uin((this.j&2)==0?this.ii():(!this.k&&(this.k=new Rl),this.k).Nk(),e))};lce.Ib=function n(){var e;if((this.j&4)!=0)return jxn(this);e=new gx(jxn(this));e.a+=" (mixed: ";YA(e,this.c);e.a+=", anyAttribute: ";YA(e,this.b);e.a+=")";return e.a};var Not=YW(pae,"AnyTypeImpl",844);wDn(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},Wf);lce.Lh=function n(e,t,r){switch(e){case 0:return this.a;case 1:return this.b}return Fen(this,e-sQ((bzn(),Mot)),uin((this.j&2)==0?Mot:(!this.k&&(this.k=new Rl),this.k).Nk(),e),t,r)};lce.Wh=function n(e){switch(e){case 0:return this.a!=null;case 1:return this.b!=null}return v5(this,e-sQ((bzn(),Mot)),uin((this.j&2)==0?Mot:(!this.k&&(this.k=new Rl),this.k).Nk(),e))};lce.bi=function n(e,t){switch(e){case 0:Iw(this,TK(t));return;case 1:Aw(this,TK(t));return}vvn(this,e-sQ((bzn(),Mot)),uin((this.j&2)==0?Mot:(!this.k&&(this.k=new Rl),this.k).Nk(),e),t)};lce.ii=function n(){return bzn(),Mot};lce.ki=function n(e){switch(e){case 0:this.a=null;return;case 1:this.b=null;return}wdn(this,e-sQ((bzn(),Mot)),uin((this.j&2)==0?Mot:(!this.k&&(this.k=new Rl),this.k).Nk(),e))};lce.Ib=function n(){var e;if((this.j&4)!=0)return jxn(this);e=new gx(jxn(this));e.a+=" (data: ";ZA(e,this.a);e.a+=", target: ";ZA(e,this.b);e.a+=")";return e.a};lce.a=null;lce.b=null;var $ot=YW(pae,"ProcessingInstructionImpl",681);wDn(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},oy);lce.Lh=function n(e,t,r){switch(e){case 0:if(r)return!this.c&&(this.c=new mon(this,0)),this.c;return!this.c&&(this.c=new mon(this,0)),this.c.b;case 1:if(r)return!this.c&&(this.c=new mon(this,0)),bG(C2(this.c,(bzn(),fot)),160);return(!this.c&&(this.c=new mon(this,0)),bG(bG(C2(this.c,(bzn(),fot)),160),220)).Vl();case 2:if(r)return!this.b&&(this.b=new mon(this,2)),this.b;return!this.b&&(this.b=new mon(this,2)),this.b.b;case 3:return!this.c&&(this.c=new mon(this,0)),TK(kXn(this.c,(bzn(),Eot),true));case 4:return y_(this.a,(!this.c&&(this.c=new mon(this,0)),TK(kXn(this.c,(bzn(),Eot),true))));case 5:return this.a}return Fen(this,e-sQ((bzn(),jot)),uin((this.j&2)==0?jot:(!this.k&&(this.k=new Rl),this.k).Nk(),e),t,r)};lce.Wh=function n(e){switch(e){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new mon(this,0)),bG(C2(this.c,(bzn(),fot)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new mon(this,0)),TK(kXn(this.c,(bzn(),Eot),true))!=null;case 4:return y_(this.a,(!this.c&&(this.c=new mon(this,0)),TK(kXn(this.c,(bzn(),Eot),true))))!=null;case 5:return!!this.a}return v5(this,e-sQ((bzn(),jot)),uin((this.j&2)==0?jot:(!this.k&&(this.k=new Rl),this.k).Nk(),e))};lce.bi=function n(e,t){switch(e){case 0:!this.c&&(this.c=new mon(this,0));fW(this.c,t);return;case 1:(!this.c&&(this.c=new mon(this,0)),bG(bG(C2(this.c,(bzn(),fot)),160),220)).Wb(t);return;case 2:!this.b&&(this.b=new mon(this,2));fW(this.b,t);return;case 3:T4(this,TK(t));return;case 4:T4(this,k_(this.a,t));return;case 5:Ow(this,bG(t,156));return}vvn(this,e-sQ((bzn(),jot)),uin((this.j&2)==0?jot:(!this.k&&(this.k=new Rl),this.k).Nk(),e),t)};lce.ii=function n(){return bzn(),jot};lce.ki=function n(e){switch(e){case 0:!this.c&&(this.c=new mon(this,0));NVn(this.c);return;case 1:(!this.c&&(this.c=new mon(this,0)),bG(C2(this.c,(bzn(),fot)),160)).$b();return;case 2:!this.b&&(this.b=new mon(this,2));NVn(this.b);return;case 3:!this.c&&(this.c=new mon(this,0));XXn(this.c,(bzn(),Eot),null);return;case 4:T4(this,k_(this.a,null));return;case 5:this.a=null;return}wdn(this,e-sQ((bzn(),jot)),uin((this.j&2)==0?jot:(!this.k&&(this.k=new Rl),this.k).Nk(),e))};var Dot=YW(pae,"SimpleAnyTypeImpl",682);wDn(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},fy);lce.Lh=function n(e,t,r){switch(e){case 0:if(r)return!this.a&&(this.a=new mon(this,0)),this.a;return!this.a&&(this.a=new mon(this,0)),this.a.b;case 1:return r?(!this.b&&(this.b=new ven((rZn(),cit),Nat,this,1)),this.b):(!this.b&&(this.b=new ven((rZn(),cit),Nat,this,1)),Cnn(this.b));case 2:return r?(!this.c&&(this.c=new ven((rZn(),cit),Nat,this,2)),this.c):(!this.c&&(this.c=new ven((rZn(),cit),Nat,this,2)),Cnn(this.c));case 3:return!this.a&&(this.a=new mon(this,0)),C2(this.a,(bzn(),Cot));case 4:return!this.a&&(this.a=new mon(this,0)),C2(this.a,(bzn(),Iot));case 5:return!this.a&&(this.a=new mon(this,0)),C2(this.a,(bzn(),Aot));case 6:return!this.a&&(this.a=new mon(this,0)),C2(this.a,(bzn(),Lot))}return Fen(this,e-sQ((bzn(),Pot)),uin((this.j&2)==0?Pot:(!this.k&&(this.k=new Rl),this.k).Nk(),e),t,r)};lce.Uh=function n(e,t,r){var i;switch(t){case 0:return!this.a&&(this.a=new mon(this,0)),KHn(this.a,e,r);case 1:return!this.b&&(this.b=new ven((rZn(),cit),Nat,this,1)),W_(this.b,e,r);case 2:return!this.c&&(this.c=new ven((rZn(),cit),Nat,this,2)),W_(this.c,e,r);case 5:return!this.a&&(this.a=new mon(this,0)),oF(C2(this.a,(bzn(),Aot)),e,r)}return i=bG(uin((this.j&2)==0?(bzn(),Pot):(!this.k&&(this.k=new Rl),this.k).Nk(),t),69),i.wk().Ak(this,nrn(this),t-sQ((bzn(),Pot)),e,r)};lce.Wh=function n(e){switch(e){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new mon(this,0)),!FA(C2(this.a,(bzn(),Cot)));case 4:return!this.a&&(this.a=new mon(this,0)),!FA(C2(this.a,(bzn(),Iot)));case 5:return!this.a&&(this.a=new mon(this,0)),!FA(C2(this.a,(bzn(),Aot)));case 6:return!this.a&&(this.a=new mon(this,0)),!FA(C2(this.a,(bzn(),Lot)))}return v5(this,e-sQ((bzn(),Pot)),uin((this.j&2)==0?Pot:(!this.k&&(this.k=new Rl),this.k).Nk(),e))};lce.bi=function n(e,t){switch(e){case 0:!this.a&&(this.a=new mon(this,0));fW(this.a,t);return;case 1:!this.b&&(this.b=new ven((rZn(),cit),Nat,this,1));ton(this.b,t);return;case 2:!this.c&&(this.c=new ven((rZn(),cit),Nat,this,2));ton(this.c,t);return;case 3:!this.a&&(this.a=new mon(this,0));ik(C2(this.a,(bzn(),Cot)));!this.a&&(this.a=new mon(this,0));U$(C2(this.a,Cot),bG(t,16));return;case 4:!this.a&&(this.a=new mon(this,0));ik(C2(this.a,(bzn(),Iot)));!this.a&&(this.a=new mon(this,0));U$(C2(this.a,Iot),bG(t,16));return;case 5:!this.a&&(this.a=new mon(this,0));ik(C2(this.a,(bzn(),Aot)));!this.a&&(this.a=new mon(this,0));U$(C2(this.a,Aot),bG(t,16));return;case 6:!this.a&&(this.a=new mon(this,0));ik(C2(this.a,(bzn(),Lot)));!this.a&&(this.a=new mon(this,0));U$(C2(this.a,Lot),bG(t,16));return}vvn(this,e-sQ((bzn(),Pot)),uin((this.j&2)==0?Pot:(!this.k&&(this.k=new Rl),this.k).Nk(),e),t)};lce.ii=function n(){return bzn(),Pot};lce.ki=function n(e){switch(e){case 0:!this.a&&(this.a=new mon(this,0));NVn(this.a);return;case 1:!this.b&&(this.b=new ven((rZn(),cit),Nat,this,1));this.b.c.$b();return;case 2:!this.c&&(this.c=new ven((rZn(),cit),Nat,this,2));this.c.c.$b();return;case 3:!this.a&&(this.a=new mon(this,0));ik(C2(this.a,(bzn(),Cot)));return;case 4:!this.a&&(this.a=new mon(this,0));ik(C2(this.a,(bzn(),Iot)));return;case 5:!this.a&&(this.a=new mon(this,0));ik(C2(this.a,(bzn(),Aot)));return;case 6:!this.a&&(this.a=new mon(this,0));ik(C2(this.a,(bzn(),Lot)));return}wdn(this,e-sQ((bzn(),Pot)),uin((this.j&2)==0?Pot:(!this.k&&(this.k=new Rl),this.k).Nk(),e))};lce.Ib=function n(){var e;if((this.j&4)!=0)return jxn(this);e=new gx(jxn(this));e.a+=" (mixed: ";YA(e,this.a);e.a+=")";return e.a};var xot=YW(pae,"XMLTypeDocumentRootImpl",683);wDn(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},Ff);lce.ri=function n(e,t){switch(e.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:fvn(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return TK(t);case 6:return vK(bG(t,195));case 12:case 47:case 49:case 11:return fWn(this,e,t);case 13:return t==null?null:YXn(bG(t,247));case 15:case 14:return t==null?null:PW(bM(MK(t)));case 17:return lPn((bzn(),t));case 18:return lPn(t);case 21:case 20:return t==null?null:CW(bG(t,161).a);case 27:return pK(bG(t,195));case 30:return ATn((bzn(),bG(t,15)));case 31:return ATn(bG(t,15));case 40:return kK((bzn(),t));case 42:return bPn((bzn(),t));case 43:return bPn(t);case 59:case 48:return mK((bzn(),t));default:throw dm(new jM(nte+e.xe()+ete))}};lce.si=function n(e){var t,r,i,a,c;switch(e.G==-1&&(e.G=(r=Vin(e),r?Vyn(r.vi(),e):-1)),e.G){case 0:return t=new sy,t;case 1:return i=new Wf,i;case 2:return a=new oy,a;case 3:return c=new fy,c;default:throw dm(new jM(ite+e.zb+ete))}};lce.ti=function n(e,t){var r,i,a,c,u,s,o,f,h,l,b,w,d,g,v,p;switch(e.hk()){case 5:case 52:case 4:return t;case 6:return wyn(t);case 8:case 7:return t==null?null:PPn(t);case 9:return t==null?null:Xtn(TUn((i=SXn(t,true),i.length>0&&(w3(0,i.length),i.charCodeAt(0)==43)?(w3(1,i.length+1),i.substr(1)):i),-128,127)<<24>>24);case 10:return t==null?null:Xtn(TUn((a=SXn(t,true),a.length>0&&(w3(0,a.length),a.charCodeAt(0)==43)?(w3(1,a.length+1),a.substr(1)):a),-128,127)<<24>>24);case 11:return TK(fYn(this,(bzn(),bot),t));case 12:return TK(fYn(this,(bzn(),wot),t));case 13:return t==null?null:new nE(SXn(t,true));case 15:case 14:return sRn(t);case 16:return TK(fYn(this,(bzn(),dot),t));case 17:return pmn((bzn(),t));case 18:return pmn(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return SXn(t,true);case 21:case 20:return jRn(t);case 22:return TK(fYn(this,(bzn(),got),t));case 23:return TK(fYn(this,(bzn(),vot),t));case 24:return TK(fYn(this,(bzn(),pot),t));case 25:return TK(fYn(this,(bzn(),mot),t));case 26:return TK(fYn(this,(bzn(),kot),t));case 27:return Nkn(t);case 30:return mmn((bzn(),t));case 31:return mmn(t);case 32:return t==null?null:Bwn(TUn((h=SXn(t,true),h.length>0&&(w3(0,h.length),h.charCodeAt(0)==43)?(w3(1,h.length+1),h.substr(1)):h),T1n,pZn));case 33:return t==null?null:new LN((l=SXn(t,true),l.length>0&&(w3(0,l.length),l.charCodeAt(0)==43)?(w3(1,l.length+1),l.substr(1)):l));case 34:return t==null?null:Bwn(TUn((b=SXn(t,true),b.length>0&&(w3(0,b.length),b.charCodeAt(0)==43)?(w3(1,b.length+1),b.substr(1)):b),T1n,pZn));case 36:return t==null?null:Vmn(cJn((w=SXn(t,true),w.length>0&&(w3(0,w.length),w.charCodeAt(0)==43)?(w3(1,w.length+1),w.substr(1)):w)));case 37:return t==null?null:Vmn(cJn((d=SXn(t,true),d.length>0&&(w3(0,d.length),d.charCodeAt(0)==43)?(w3(1,d.length+1),d.substr(1)):d)));case 40:return aTn((bzn(),t));case 42:return kmn((bzn(),t));case 43:return kmn(t);case 44:return t==null?null:new LN((g=SXn(t,true),g.length>0&&(w3(0,g.length),g.charCodeAt(0)==43)?(w3(1,g.length+1),g.substr(1)):g));case 45:return t==null?null:new LN((v=SXn(t,true),v.length>0&&(w3(0,v.length),v.charCodeAt(0)==43)?(w3(1,v.length+1),v.substr(1)):v));case 46:return SXn(t,false);case 47:return TK(fYn(this,(bzn(),yot),t));case 59:case 48:return iTn((bzn(),t));case 49:return TK(fYn(this,(bzn(),Tot),t));case 50:return t==null?null:Hwn(TUn((p=SXn(t,true),p.length>0&&(w3(0,p.length),p.charCodeAt(0)==43)?(w3(1,p.length+1),p.substr(1)):p),$ie,32767)<<16>>16);case 51:return t==null?null:Hwn(TUn((c=SXn(t,true),c.length>0&&(w3(0,c.length),c.charCodeAt(0)==43)?(w3(1,c.length+1),c.substr(1)):c),$ie,32767)<<16>>16);case 53:return TK(fYn(this,(bzn(),Sot),t));case 55:return t==null?null:Hwn(TUn((u=SXn(t,true),u.length>0&&(w3(0,u.length),u.charCodeAt(0)==43)?(w3(1,u.length+1),u.substr(1)):u),$ie,32767)<<16>>16);case 56:return t==null?null:Hwn(TUn((s=SXn(t,true),s.length>0&&(w3(0,s.length),s.charCodeAt(0)==43)?(w3(1,s.length+1),s.substr(1)):s),$ie,32767)<<16>>16);case 57:return t==null?null:Vmn(cJn((o=SXn(t,true),o.length>0&&(w3(0,o.length),o.charCodeAt(0)==43)?(w3(1,o.length+1),o.substr(1)):o)));case 58:return t==null?null:Vmn(cJn((f=SXn(t,true),f.length>0&&(w3(0,f.length),f.charCodeAt(0)==43)?(w3(1,f.length+1),f.substr(1)):f)));case 60:return t==null?null:Bwn(TUn((r=SXn(t,true),r.length>0&&(w3(0,r.length),r.charCodeAt(0)==43)?(w3(1,r.length+1),r.substr(1)):r),T1n,pZn));case 61:return t==null?null:Bwn(TUn(SXn(t,true),T1n,pZn));default:throw dm(new jM(nte+e.xe()+ete))}};var Rot,Kot,Fot,_ot;var Bot=YW(pae,"XMLTypeFactoryImpl",2028);wDn(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},yJ);lce.N=false;lce.O=false;var Hot=false;var Uot=YW(pae,"XMLTypePackageImpl",594);wDn(1961,1,{851:1},_f);lce.Kk=function n(){return jGn(),Rht};var Got=YW(pae,"XMLTypePackageImpl/1",1961);wDn(1970,1,Vie,Bf);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var qot=YW(pae,"XMLTypePackageImpl/10",1970);wDn(1971,1,Vie,Hf);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Xot=YW(pae,"XMLTypePackageImpl/11",1971);wDn(1972,1,Vie,Uf);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Vot=YW(pae,"XMLTypePackageImpl/12",1972);wDn(1973,1,Vie,Gf);lce.fk=function n(e){return GA(e)};lce.gk=function n(e){return $nn(Yhe,XZn,345,e,7,1)};var zot=YW(pae,"XMLTypePackageImpl/13",1973);wDn(1974,1,Vie,qf);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Wot=YW(pae,"XMLTypePackageImpl/14",1974);wDn(1975,1,Vie,Xf);lce.fk=function n(e){return G$(e,15)};lce.gk=function n(e){return $nn(uue,B3n,15,e,0,1)};var Qot=YW(pae,"XMLTypePackageImpl/15",1975);wDn(1976,1,Vie,Vf);lce.fk=function n(e){return G$(e,15)};lce.gk=function n(e){return $nn(uue,B3n,15,e,0,1)};var Jot=YW(pae,"XMLTypePackageImpl/16",1976);wDn(1977,1,Vie,zf);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Yot=YW(pae,"XMLTypePackageImpl/17",1977);wDn(1978,1,Vie,Qf);lce.fk=function n(e){return G$(e,161)};lce.gk=function n(e){return $nn(Zhe,XZn,161,e,0,1)};var Zot=YW(pae,"XMLTypePackageImpl/18",1978);wDn(1979,1,Vie,Jf);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var nft=YW(pae,"XMLTypePackageImpl/19",1979);wDn(1962,1,Vie,Yf);lce.fk=function n(e){return G$(e,857)};lce.gk=function n(e){return $nn(tot,jZn,857,e,0,1)};var eft=YW(pae,"XMLTypePackageImpl/2",1962);wDn(1980,1,Vie,Zf);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var tft=YW(pae,"XMLTypePackageImpl/20",1980);wDn(1981,1,Vie,nh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var rft=YW(pae,"XMLTypePackageImpl/21",1981);wDn(1982,1,Vie,eh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var ift=YW(pae,"XMLTypePackageImpl/22",1982);wDn(1983,1,Vie,th);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var aft=YW(pae,"XMLTypePackageImpl/23",1983);wDn(1984,1,Vie,rh);lce.fk=function n(e){return G$(e,195)};lce.gk=function n(e){return $nn(Vht,XZn,195,e,0,2)};var cft=YW(pae,"XMLTypePackageImpl/24",1984);wDn(1985,1,Vie,ih);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var uft=YW(pae,"XMLTypePackageImpl/25",1985);wDn(1986,1,Vie,ah);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var sft=YW(pae,"XMLTypePackageImpl/26",1986);wDn(1987,1,Vie,ch);lce.fk=function n(e){return G$(e,15)};lce.gk=function n(e){return $nn(uue,B3n,15,e,0,1)};var oft=YW(pae,"XMLTypePackageImpl/27",1987);wDn(1988,1,Vie,uh);lce.fk=function n(e){return G$(e,15)};lce.gk=function n(e){return $nn(uue,B3n,15,e,0,1)};var fft=YW(pae,"XMLTypePackageImpl/28",1988);wDn(1989,1,Vie,sh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var hft=YW(pae,"XMLTypePackageImpl/29",1989);wDn(1963,1,Vie,oh);lce.fk=function n(e){return G$(e,681)};lce.gk=function n(e){return $nn(iot,jZn,2119,e,0,1)};var lft=YW(pae,"XMLTypePackageImpl/3",1963);wDn(1990,1,Vie,fh);lce.fk=function n(e){return G$(e,17)};lce.gk=function n(e){return $nn(tle,XZn,17,e,0,1)};var bft=YW(pae,"XMLTypePackageImpl/30",1990);wDn(1991,1,Vie,hh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var wft=YW(pae,"XMLTypePackageImpl/31",1991);wDn(1992,1,Vie,lh);lce.fk=function n(e){return G$(e,168)};lce.gk=function n(e){return $nn(ale,XZn,168,e,0,1)};var dft=YW(pae,"XMLTypePackageImpl/32",1992);wDn(1993,1,Vie,bh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var gft=YW(pae,"XMLTypePackageImpl/33",1993);wDn(1994,1,Vie,wh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var vft=YW(pae,"XMLTypePackageImpl/34",1994);wDn(1995,1,Vie,dh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var pft=YW(pae,"XMLTypePackageImpl/35",1995);wDn(1996,1,Vie,gh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var mft=YW(pae,"XMLTypePackageImpl/36",1996);wDn(1997,1,Vie,vh);lce.fk=function n(e){return G$(e,15)};lce.gk=function n(e){return $nn(uue,B3n,15,e,0,1)};var kft=YW(pae,"XMLTypePackageImpl/37",1997);wDn(1998,1,Vie,ph);lce.fk=function n(e){return G$(e,15)};lce.gk=function n(e){return $nn(uue,B3n,15,e,0,1)};var yft=YW(pae,"XMLTypePackageImpl/38",1998);wDn(1999,1,Vie,mh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Mft=YW(pae,"XMLTypePackageImpl/39",1999);wDn(1964,1,Vie,kh);lce.fk=function n(e){return G$(e,682)};lce.gk=function n(e){return $nn(aot,jZn,2120,e,0,1)};var Tft=YW(pae,"XMLTypePackageImpl/4",1964);wDn(2e3,1,Vie,yh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var jft=YW(pae,"XMLTypePackageImpl/40",2e3);wDn(2001,1,Vie,Mh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Eft=YW(pae,"XMLTypePackageImpl/41",2001);wDn(2002,1,Vie,Th);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Sft=YW(pae,"XMLTypePackageImpl/42",2002);wDn(2003,1,Vie,jh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Pft=YW(pae,"XMLTypePackageImpl/43",2003);wDn(2004,1,Vie,Eh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Cft=YW(pae,"XMLTypePackageImpl/44",2004);wDn(2005,1,Vie,Sh);lce.fk=function n(e){return G$(e,191)};lce.gk=function n(e){return $nn(wle,XZn,191,e,0,1)};var Ift=YW(pae,"XMLTypePackageImpl/45",2005);wDn(2006,1,Vie,Ph);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Oft=YW(pae,"XMLTypePackageImpl/46",2006);wDn(2007,1,Vie,Ch);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Aft=YW(pae,"XMLTypePackageImpl/47",2007);wDn(2008,1,Vie,Ih);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Lft=YW(pae,"XMLTypePackageImpl/48",2008);wDn(2009,1,Vie,Oh);lce.fk=function n(e){return G$(e,191)};lce.gk=function n(e){return $nn(wle,XZn,191,e,0,1)};var Nft=YW(pae,"XMLTypePackageImpl/49",2009);wDn(1965,1,Vie,Ah);lce.fk=function n(e){return G$(e,683)};lce.gk=function n(e){return $nn(cot,jZn,2121,e,0,1)};var $ft=YW(pae,"XMLTypePackageImpl/5",1965);wDn(2010,1,Vie,Lh);lce.fk=function n(e){return G$(e,168)};lce.gk=function n(e){return $nn(ale,XZn,168,e,0,1)};var Dft=YW(pae,"XMLTypePackageImpl/50",2010);wDn(2011,1,Vie,Nh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var xft=YW(pae,"XMLTypePackageImpl/51",2011);wDn(2012,1,Vie,$h);lce.fk=function n(e){return G$(e,17)};lce.gk=function n(e){return $nn(tle,XZn,17,e,0,1)};var Rft=YW(pae,"XMLTypePackageImpl/52",2012);wDn(1966,1,Vie,Dh);lce.fk=function n(e){return HA(e)};lce.gk=function n(e){return $nn(vle,XZn,2,e,6,1)};var Kft=YW(pae,"XMLTypePackageImpl/6",1966);wDn(1967,1,Vie,xh);lce.fk=function n(e){return G$(e,195)};lce.gk=function n(e){return $nn(Vht,XZn,195,e,0,2)};var Fft=YW(pae,"XMLTypePackageImpl/7",1967);wDn(1968,1,Vie,Rh);lce.fk=function n(e){return UA(e)};lce.gk=function n(e){return $nn(Uhe,XZn,485,e,8,1)};var _ft=YW(pae,"XMLTypePackageImpl/8",1968);wDn(1969,1,Vie,Kh);lce.fk=function n(e){return G$(e,222)};lce.gk=function n(e){return $nn(Xhe,XZn,222,e,0,1)};var Bft=YW(pae,"XMLTypePackageImpl/9",1969);var Hft,Uft;var Gft,qft;var Xft;wDn(55,63,E1n,NM);var Vft=YW(Gae,"RegEx/ParseException",55);wDn(836,1,{},Fh);lce.bm=function n(e){return er*16)throw dm(new NM(oZn((c$(),Sre))));r=r*16+a}while(true);if(this.a!=125)throw dm(new NM(oZn((c$(),Pre))));if(r>qae)throw dm(new NM(oZn((c$(),Cre))));e=r}else{a=0;if(this.c!=0||(a=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));r=a;OYn(this);if(this.c!=0||(a=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));r=r*16+a;e=r}break;case 117:i=0;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=i;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=t*16+i;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=t*16+i;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=t*16+i;e=t;break;case 118:OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=i;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=t*16+i;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=t*16+i;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=t*16+i;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=t*16+i;OYn(this);if(this.c!=0||(i=NMn(this.a))<0)throw dm(new NM(oZn((c$(),Ere))));t=t*16+i;if(t>qae)throw dm(new NM(oZn((c$(),"parser.descappe.4"))));e=t;break;case 65:case 90:case 122:throw dm(new NM(oZn((c$(),Ire))))}return e};lce.dm=function n(e){var t,r;switch(e){case 100:r=(this.e&32)==32?EJn("Nd",true):(eZn(),iht);break;case 68:r=(this.e&32)==32?EJn("Nd",false):(eZn(),hht);break;case 119:r=(this.e&32)==32?EJn("IsWord",true):(eZn(),kht);break;case 87:r=(this.e&32)==32?EJn("IsWord",false):(eZn(),bht);break;case 115:r=(this.e&32)==32?EJn("IsSpace",true):(eZn(),dht);break;case 83:r=(this.e&32)==32?EJn("IsSpace",false):(eZn(),lht);break;default:throw dm(new Uy((t=e,Xae+t.toString(16))))}return r};lce.em=function n(e){var t,r,i,a,c,u,s,o,f,h,l,b;this.b=1;OYn(this);t=null;if(this.c==0&&this.a==94){OYn(this);if(e){h=(eZn(),eZn(),++Tht,new U3(5))}else{t=(eZn(),eZn(),++Tht,new U3(4));VFn(t,0,qae);h=(null,++Tht,new U3(4))}}else{h=(eZn(),eZn(),++Tht,new U3(4))}a=true;while((b=this.c)!=1){if(b==0&&this.a==93&&!a)break;a=false;r=this.a;i=false;if(b==10){switch(r){case 100:case 68:case 119:case 87:case 115:case 83:CXn(h,this.dm(r));i=true;break;case 105:case 73:case 99:case 67:r=this.um(h,r);r<0&&(i=true);break;case 112:case 80:l=LNn(this,r);if(!l)throw dm(new NM(oZn((c$(),wre))));CXn(h,l);i=true;break;default:r=this.cm()}}else if(b==20){u=hR(this.i,58,this.d);if(u<0)throw dm(new NM(oZn((c$(),dre))));s=true;if(ZJ(this.i,this.d)==94){++this.d;s=false}c=o1(this.i,this.d,u);o=sen(c,s,(this.e&512)==512);if(!o)throw dm(new NM(oZn((c$(),vre))));CXn(h,o);i=true;if(u+1>=this.j||ZJ(this.i,u+1)!=93)throw dm(new NM(oZn((c$(),dre))));this.d=u+2}OYn(this);if(!i){if(this.c!=0||this.a!=45){VFn(h,r,r)}else{OYn(this);if((b=this.c)==1)throw dm(new NM(oZn((c$(),gre))));if(b==0&&this.a==93){VFn(h,r,r);VFn(h,45,45)}else{f=this.a;b==10&&(f=this.cm());OYn(this);VFn(h,r,f)}}}(this.e&b1n)==b1n&&this.c==0&&this.a==44&&OYn(this)}if(this.c==1)throw dm(new NM(oZn((c$(),gre))));if(t){vWn(t,h);h=t}Mxn(h);bVn(h);this.b=0;OYn(this);return h};lce.fm=function n(){var e,t,r,i;r=this.em(false);while((i=this.c)!=7){e=this.a;if(i==0&&(e==45||e==38)||i==4){OYn(this);if(this.c!=9)throw dm(new NM(oZn((c$(),Mre))));t=this.em(false);if(i==4)CXn(r,t);else if(e==45)vWn(r,t);else if(e==38)Wzn(r,t);else throw dm(new Uy("ASSERT"))}else{throw dm(new NM(oZn((c$(),Tre))))}}OYn(this);return r};lce.gm=function n(){var e,t;e=this.a-48;t=(eZn(),eZn(),++Tht,new G1(12,null,e));!this.g&&(this.g=new fk);Ym(this.g,new nm(e));OYn(this);return t};lce.hm=function n(){OYn(this);return eZn(),ght};lce.im=function n(){OYn(this);return eZn(),wht};lce.jm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.km=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.lm=function n(){OYn(this);return Iln()};lce.mm=function n(){OYn(this);return eZn(),pht};lce.nm=function n(){OYn(this);return eZn(),yht};lce.om=function n(){var e;if(this.d>=this.j||((e=ZJ(this.i,this.d++))&65504)!=64)throw dm(new NM(oZn((c$(),fre))));OYn(this);return eZn(),eZn(),++Tht,new $X(0,e-64)};lce.pm=function n(){OYn(this);return ZGn()};lce.qm=function n(){OYn(this);return eZn(),Mht};lce.rm=function n(){var e;e=(eZn(),eZn(),++Tht,new $X(0,105));OYn(this);return e};lce.sm=function n(){OYn(this);return eZn(),mht};lce.tm=function n(){OYn(this);return eZn(),vht};lce.um=function n(e,t){return this.cm()};lce.vm=function n(){OYn(this);return eZn(),oht};lce.wm=function n(){var e,t,r,i,a;if(this.d+1>=this.j)throw dm(new NM(oZn((c$(),ure))));i=-1;t=null;e=ZJ(this.i,this.d);if(49<=e&&e<=57){i=e-48;!this.g&&(this.g=new fk);Ym(this.g,new nm(i));++this.d;if(ZJ(this.i,this.d)!=41)throw dm(new NM(oZn((c$(),ire))));++this.d}else{e==63&&--this.d;OYn(this);t=uYn(this);switch(t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));break;default:throw dm(new NM(oZn((c$(),sre))))}}OYn(this);a=Omn(this);r=null;if(a.e==2){if(a.Pm()!=2)throw dm(new NM(oZn((c$(),ore))));r=a.Lm(1);a=a.Lm(0)}if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return eZn(),eZn(),++Tht,new prn(i,t,a,r)};lce.xm=function n(){OYn(this);return eZn(),fht};lce.ym=function n(){var e;OYn(this);e=Iz(24,Omn(this));if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return e};lce.zm=function n(){var e;OYn(this);e=Iz(20,Omn(this));if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return e};lce.Am=function n(){var e;OYn(this);e=Iz(22,Omn(this));if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return e};lce.Bm=function n(){var e,t,r,i,a;e=0;r=0;t=-1;while(this.d=this.j)throw dm(new NM(oZn((c$(),are))));if(t==45){++this.d;while(this.d=this.j)throw dm(new NM(oZn((c$(),are))))}if(t==58){++this.d;OYn(this);i=WW(Omn(this),e,r);if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this)}else if(t==41){++this.d;OYn(this);i=WW(Omn(this),e,r)}else throw dm(new NM(oZn((c$(),cre))));return i};lce.Cm=function n(){var e;OYn(this);e=Iz(21,Omn(this));if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return e};lce.Dm=function n(){var e;OYn(this);e=Iz(23,Omn(this));if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return e};lce.Em=function n(){var e,t;OYn(this);e=this.f++;t=Oz(Omn(this),e);if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return t};lce.Fm=function n(){var e;OYn(this);e=Oz(Omn(this),0);if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return e};lce.Gm=function n(e){OYn(this);if(this.c==5){OYn(this);return NX(e,(eZn(),eZn(),++Tht,new a8(9,e)))}else return NX(e,(eZn(),eZn(),++Tht,new a8(3,e)))};lce.Hm=function n(e){var t;OYn(this);t=(eZn(),eZn(),++Tht,new e$(2));if(this.c==5){OYn(this);jVn(t,(null,uht));jVn(t,e)}else{jVn(t,e);jVn(t,(null,uht))}return t};lce.Im=function n(e){OYn(this);if(this.c==5){OYn(this);return eZn(),eZn(),++Tht,new a8(9,e)}else return eZn(),eZn(),++Tht,new a8(3,e)};lce.a=0;lce.b=0;lce.c=0;lce.d=0;lce.e=0;lce.f=1;lce.g=null;lce.j=0;var zft=YW(Gae,"RegEx/RegexParser",836);wDn(1947,836,{},hy);lce.bm=function n(e){return false};lce.cm=function n(){return H_n(this)};lce.dm=function n(e){return SUn(e)};lce.em=function n(e){return LYn(this)};lce.fm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.gm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.hm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.im=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.jm=function n(){OYn(this);return SUn(67)};lce.km=function n(){OYn(this);return SUn(73)};lce.lm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.mm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.nm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.om=function n(){OYn(this);return SUn(99)};lce.pm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.qm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.rm=function n(){OYn(this);return SUn(105)};lce.sm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.tm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.um=function n(e,t){return CXn(e,SUn(t)),-1};lce.vm=function n(){OYn(this);return eZn(),eZn(),++Tht,new $X(0,94)};lce.wm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.xm=function n(){OYn(this);return eZn(),eZn(),++Tht,new $X(0,36)};lce.ym=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.zm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.Am=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.Bm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.Cm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.Dm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.Em=function n(){var e;OYn(this);e=Oz(Omn(this),0);if(this.c!=7)throw dm(new NM(oZn((c$(),ire))));OYn(this);return e};lce.Fm=function n(){throw dm(new NM(oZn((c$(),Ore))))};lce.Gm=function n(e){OYn(this);return NX(e,(eZn(),eZn(),++Tht,new a8(3,e)))};lce.Hm=function n(e){var t;OYn(this);t=(eZn(),eZn(),++Tht,new e$(2));jVn(t,e);jVn(t,(null,uht));return t};lce.Im=function n(e){OYn(this);return eZn(),eZn(),++Tht,new a8(3,e)};var Wft=null,Qft=null;var Jft=YW(Gae,"RegEx/ParserForXMLSchema",1947);wDn(122,1,ice,em);lce.Jm=function n(e){throw dm(new Uy("Not supported."))};lce.Km=function n(){return-1};lce.Lm=function n(e){return null};lce.Mm=function n(){return null};lce.Nm=function n(e){};lce.Om=function n(e){};lce.Pm=function n(){return 0};lce.Ib=function n(){return this.Qm(0)};lce.Qm=function n(e){return this.e==11?".":""};lce.e=0;var Yft,Zft,nht,eht,tht,rht=null,iht,aht=null,cht,uht,sht=null,oht,fht,hht,lht,bht,wht,dht,ght,vht,pht,mht,kht,yht,Mht,Tht=0;var jht=YW(Gae,"RegEx/Token",122);wDn(138,122,{3:1,138:1,122:1},U3);lce.Qm=function n(e){var t,r,i;if(this.e==4){if(this==cht)r=".";else if(this==iht)r="\\d";else if(this==kht)r="\\w";else if(this==dht)r="\\s";else{i=new YM;i.a+="[";for(t=0;t0&&(i.a+=",",i);if(this.b[t]===this.b[t+1]){ZA(i,Pqn(this.b[t]))}else{ZA(i,Pqn(this.b[t]));i.a+="-";ZA(i,Pqn(this.b[t+1]))}}i.a+="]";r=i.a}}else{if(this==hht)r="\\D";else if(this==bht)r="\\W";else if(this==lht)r="\\S";else{i=new YM;i.a+="[^";for(t=0;t0&&(i.a+=",",i);if(this.b[t]===this.b[t+1]){ZA(i,Pqn(this.b[t]))}else{ZA(i,Pqn(this.b[t]));i.a+="-";ZA(i,Pqn(this.b[t+1]))}}i.a+="]";r=i.a}}return r};lce.a=false;lce.c=false;var Eht=YW(Gae,"RegEx/RangeToken",138);wDn(592,1,{592:1},nm);lce.a=0;var Sht=YW(Gae,"RegEx/RegexParser/ReferencePosition",592);wDn(591,1,{3:1,591:1},yE);lce.Fb=function n(e){var t;if(e==null)return false;if(!G$(e,591))return false;t=bG(e,591);return T_(this.b,t.b)&&this.a==t.a};lce.Hb=function n(){return Mln(this.b+"/"+JKn(this.a))};lce.Ib=function n(){return this.c.Qm(this.a)};lce.a=0;var Pht=YW(Gae,"RegEx/RegularExpression",591);wDn(228,122,ice,$X);lce.Km=function n(){return this.a};lce.Qm=function n(e){var t,r,i;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:i="\\"+IF(this.a&$1n);break;case 12:i="\\f";break;case 10:i="\\n";break;case 13:i="\\r";break;case 9:i="\\t";break;case 27:i="\\e";break;default:if(this.a>=S0n){r=(t=this.a>>>0,"0"+t.toString(16));i="\\v"+o1(r,r.length-6,r.length)}else i=""+IF(this.a&$1n)}break;case 8:this==oht||this==fht?i=""+IF(this.a&$1n):i="\\"+IF(this.a&$1n);break;default:i=null}return i};lce.a=0;var Cht=YW(Gae,"RegEx/Token/CharToken",228);wDn(318,122,ice,a8);lce.Lm=function n(e){return this.a};lce.Nm=function n(e){this.b=e};lce.Om=function n(e){this.c=e};lce.Pm=function n(){return 1};lce.Qm=function n(e){var t;if(this.e==3){if(this.c<0&&this.b<0){t=this.a.Qm(e)+"*"}else if(this.c==this.b){t=this.a.Qm(e)+"{"+this.c+"}"}else if(this.c>=0&&this.b>=0){t=this.a.Qm(e)+"{"+this.c+","+this.b+"}"}else if(this.c>=0&&this.b<0){t=this.a.Qm(e)+"{"+this.c+",}"}else throw dm(new Uy("Token#toString(): CLOSURE "+this.c+MZn+this.b))}else{if(this.c<0&&this.b<0){t=this.a.Qm(e)+"*?"}else if(this.c==this.b){t=this.a.Qm(e)+"{"+this.c+"}?"}else if(this.c>=0&&this.b>=0){t=this.a.Qm(e)+"{"+this.c+","+this.b+"}?"}else if(this.c>=0&&this.b<0){t=this.a.Qm(e)+"{"+this.c+",}?"}else throw dm(new Uy("Token#toString(): NONGREEDYCLOSURE "+this.c+MZn+this.b))}return t};lce.b=0;lce.c=0;var Iht=YW(Gae,"RegEx/Token/ClosureToken",318);wDn(837,122,ice,uW);lce.Lm=function n(e){return e==0?this.a:this.b};lce.Pm=function n(){return 2};lce.Qm=function n(e){var t;this.b.e==3&&this.b.Lm(0)==this.a?t=this.a.Qm(e)+"+":this.b.e==9&&this.b.Lm(0)==this.a?t=this.a.Qm(e)+"+?":t=this.a.Qm(e)+(""+this.b.Qm(e));return t};var Oht=YW(Gae,"RegEx/Token/ConcatToken",837);wDn(1945,122,ice,prn);lce.Lm=function n(e){if(e==0)return this.d;if(e==1)return this.b;throw dm(new Uy("Internal Error: "+e))};lce.Pm=function n(){return!this.b?1:2};lce.Qm=function n(e){var t;this.c>0?t="(?("+this.c+")":this.a.e==8?t="(?("+this.a+")":t="(?"+this.a;!this.b?t+=this.d+")":t+=this.d+"|"+this.b+")";return t};lce.c=0;var Aht=YW(Gae,"RegEx/Token/ConditionToken",1945);wDn(1946,122,ice,H3);lce.Lm=function n(e){return this.b};lce.Pm=function n(){return 1};lce.Qm=function n(e){return"(?"+(this.a==0?"":JKn(this.a))+(this.c==0?"":JKn(this.c))+":"+this.b.Qm(e)+")"};lce.a=0;lce.c=0;var Lht=YW(Gae,"RegEx/Token/ModifierToken",1946);wDn(838,122,ice,LQ);lce.Lm=function n(e){return this.a};lce.Pm=function n(){return 1};lce.Qm=function n(e){var t;t=null;switch(this.e){case 6:this.b==0?t="(?:"+this.a.Qm(e)+")":t="("+this.a.Qm(e)+")";break;case 20:t="(?="+this.a.Qm(e)+")";break;case 21:t="(?!"+this.a.Qm(e)+")";break;case 22:t="(?<="+this.a.Qm(e)+")";break;case 23:t="(?"+this.a.Qm(e)+")"}return t};lce.b=0;var Nht=YW(Gae,"RegEx/Token/ParenToken",838);wDn(530,122,{3:1,122:1,530:1},G1);lce.Mm=function n(){return this.b};lce.Qm=function n(e){return this.e==12?"\\"+this.a:Kxn(this.b)};lce.a=0;var $ht=YW(Gae,"RegEx/Token/StringToken",530);wDn(477,122,ice,e$);lce.Jm=function n(e){jVn(this,e)};lce.Lm=function n(e){return bG(_Q(this.a,e),122)};lce.Pm=function n(){return!this.a?0:this.a.a.c.length};lce.Qm=function n(e){var t,r,i,a,c;if(this.e==1){if(this.a.a.c.length==2){t=bG(_Q(this.a,0),122);r=bG(_Q(this.a,1),122);r.e==3&&r.Lm(0)==t?a=t.Qm(e)+"+":r.e==9&&r.Lm(0)==t?a=t.Qm(e)+"+?":a=t.Qm(e)+(""+r.Qm(e))}else{c=new YM;for(i=0;i=this.c.b:this.a<=this.c.b};lce.Sb=function n(){return this.b>0};lce.Tb=function n(){return this.b};lce.Vb=function n(){return this.b-1};lce.Qb=function n(){throw dm(new CM(fce))};lce.a=0;lce.b=0;var Hht=YW(uce,"ExclusiveRange/RangeIterator",258);var Uht=dJ(hie,"C");var Ght=dJ(wie,"I");var qht=dJ(wZn,"Z");var Xht=dJ(die,"J");var Vht=dJ(fie,"B");var zht=dJ(lie,"D");var Wht=dJ(bie,"F");var Qht=dJ(gie,"S");var Jht=$q("org.eclipse.elk.core.labels","ILabelManager");var Yht=$q(Ete,"DiagnosticChain");var Zht=$q(Wie,"ResourceSet");var nlt=YW(Ete,"InvocationTargetException",null);var elt=(JM(),T9);var tlt=tlt=YSn;Kcn(pm);jcn("permProps",[[["locale","default"],[hce,"gecko1_8"]],[["locale","default"],[hce,"safari"]]]);tlt(null,"elk",null)}).call(this)}).call(this,typeof t.g!=="undefined"?t.g:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],3:[function(n,e,t){"use strict";function r(n,e){if(!(n instanceof e)){throw new TypeError("Cannot call a class as a function")}}function i(n,e){if(!n){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e&&(typeof e==="object"||typeof e==="function")?e:n}function a(n,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof e)}n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:false,writable:true,configurable:true}});if(e)Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e}var c=n("./elk-api.js").default;var u=function(e){a(t,e);function t(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};r(this,t);var a=Object.assign({},e);var c=false;try{n.resolve("web-worker");c=true}catch(f){}if(e.workerUrl){if(c){var u=n("web-worker");a.workerFactory=function(n){return new u(n)}}else{console.warn("Web worker requested but 'web-worker' package not installed. \nConsider installing the package or pass your own 'workerFactory' to ELK's constructor.\n... Falling back to non-web worker version.")}}if(!a.workerFactory){var s=n("./elk-worker.min.js"),o=s.Worker;a.workerFactory=function(n){return new o(n)}}return i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a))}return t}(c);Object.defineProperty(e.exports,"__esModule",{value:true});e.exports=u;u.default=u},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(n,e,t){e.exports=Worker},{}]},{},[3])(3)}))}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6843.dabcc3c9658bc6ded6d1.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6843.dabcc3c9658bc6ded6d1.js new file mode 100644 index 0000000000000000000000000000000000000000..e04f36f1af7b66f26776cb22f92efc92ea40543b --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6843.dabcc3c9658bc6ded6d1.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6843],{6843:(e,t,n)=>{n.r(t);n.d(t,{tiki:()=>_});function r(e,t,n){return function(r,i){while(!r.eol()){if(r.match(t)){i.tokenize=u;break}r.next()}if(n)i.tokenize=n;return e}}function i(e){return function(t,n){while(!t.eol()){t.next()}n.tokenize=u;return e}}function u(e,t){function n(n){t.tokenize=n;return n(e,t)}var a=e.sol();var o=e.next();switch(o){case"{":e.eat("/");e.eatSpace();e.eatWhile(/[^\s\u00a0=\"\'\/?(}]/);t.tokenize=c;return"tag";case"_":if(e.eat("_"))return n(r("strong","__",u));break;case"'":if(e.eat("'"))return n(r("em","''",u));break;case"(":if(e.eat("("))return n(r("link","))",u));break;case"[":return n(r("url","]",u));break;case"|":if(e.eat("|"))return n(r("comment","||"));break;case"-":if(e.eat("=")){return n(r("header string","=-",u))}else if(e.eat("-")){return n(r("error tw-deleted","--",u))}break;case"=":if(e.match("=="))return n(r("tw-underline","===",u));break;case":":if(e.eat(":"))return n(r("comment","::"));break;case"^":return n(r("tw-box","^"));break;case"~":if(e.match("np~"))return n(r("meta","~/np~"));break}if(a){switch(o){case"!":if(e.match("!!!!!")){return n(i("header string"))}else if(e.match("!!!!")){return n(i("header string"))}else if(e.match("!!!")){return n(i("header string"))}else if(e.match("!!")){return n(i("header string"))}else{return n(i("header string"))}break;case"*":case"#":case"+":return n(i("tw-listitem bracket"));break}}return null}var a,o;function c(e,t){var n=e.next();var r=e.peek();if(n=="}"){t.tokenize=u;return"tag"}else if(n=="("||n==")"){return"bracket"}else if(n=="="){o="equals";if(r==">"){e.next();r=e.peek()}if(!/[\'\"]/.test(r)){t.tokenize=s()}return"operator"}else if(/[\'\"]/.test(n)){t.tokenize=f(n);return t.tokenize(e,t)}else{e.eatWhile(/[^\s\u00a0=\"\'\/?]/);return"keyword"}}function f(e){return function(t,n){while(!t.eol()){if(t.next()==e){n.tokenize=c;break}}return"string"}}function s(){return function(e,t){while(!e.eol()){var n=e.next();var r=e.peek();if(n==" "||n==","||/[ )}]/.test(r)){t.tokenize=c;break}}return"string"}}var l,k;function p(){for(var e=arguments.length-1;e>=0;e--)l.cc.push(arguments[e])}function d(){p.apply(null,arguments);return true}function h(e,t){var n=l.context&&l.context.noIndent;l.context={prev:l.context,pluginName:e,indent:l.indented,startOfLine:t,noIndent:n}}function g(){if(l.context)l.context=l.context.prev}function b(e){if(e=="openPlugin"){l.pluginName=a;return d(v,m(l.startOfLine))}else if(e=="closePlugin"){var t=false;if(l.context){t=l.context.pluginName!=a;g()}else{t=true}if(t)k="error";return d(x(t))}else if(e=="string"){if(!l.context||l.context.name!="!cdata")h("!cdata");if(l.tokenize==u)g();return d()}else return d()}function m(e){return function(t){if(t=="selfclosePlugin"||t=="endPlugin")return d();if(t=="endPlugin"){h(l.pluginName,e);return d()}return d()}}function x(e){return function(t){if(e)k="error";if(t=="endPlugin")return d();return p()}}function v(e){if(e=="keyword"){k="attribute";return d(v)}if(e=="equals")return d(w,v);return p()}function w(e){if(e=="keyword"){k="string";return d()}if(e=="string")return d(z);return p()}function z(e){if(e=="string")return d(z);else return p()}const _={name:"tiki",startState:function(){return{tokenize:u,cc:[],indented:0,startOfLine:true,pluginName:null,context:null}},token:function(e,t){if(e.sol()){t.startOfLine=true;t.indented=e.indentation()}if(e.eatSpace())return null;k=o=a=null;var n=t.tokenize(e,t);if((n||o)&&n!="comment"){l=t;while(true){var r=t.cc.pop()||b;if(r(o||n))break}}t.startOfLine=false;return k||n},indent:function(e,t,n){var r=e.context;if(r&&r.noIndent)return 0;if(r&&/^{\//.test(t))r=r.prev;while(r&&!r.startOfLine)r=r.prev;if(r)return r.indent+n.unit;else return 0}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6874.bb2f7fbc6ce56eecc800.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6874.bb2f7fbc6ce56eecc800.js new file mode 100644 index 0000000000000000000000000000000000000000..0a7547117d9c3561513cf5c571b300a8c9cf1222 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6874.bb2f7fbc6ce56eecc800.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6874],{96874:(e,t,T)=>{T.r(t);T.d(t,{ttcnCfg:()=>s});function n(e){var t={},T=e.split(" ");for(var n=0;n{"use strict";r.r(t);r.d(t,{createPrecompiledValidator:()=>w,customizeValidator:()=>z,default:()=>E});var a=r(12776);var n=r(63282);var o=r.n(n);var i=r(68182);var s=r.n(i);var f=r(23805);var d=r.n(f);const c={allErrors:true,multipleOfPrecision:8,strict:false,verbose:true};const u=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/;const l=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function m(e,t,r={},n,i=o()){const f=new i({...c,...r});if(n){s()(f,n)}else if(n!==false){s()(f)}f.addFormat("data-url",l);f.addFormat("color",u);f.addKeyword(a.ADDITIONAL_PROPERTY_FLAG);f.addKeyword(a.RJSF_ADDITONAL_PROPERTIES_FLAG);if(Array.isArray(e)){f.addMetaSchema(e)}if(d()(t)){Object.keys(t).forEach((e=>{f.addFormat(e,t[e])}))}return f}var h=r(58156);var p=r.n(h);function v(e=[],t){return e.map((e=>{const{instancePath:r,keyword:n,params:o,schemaPath:i,parentSchema:s,...f}=e;let{message:d=""}=f;let c=r.replace(/\//g,".");let u=`${c} ${d}`.trim();if("missingProperty"in o){c=c?`${c}.${o.missingProperty}`:o.missingProperty;const e=o.missingProperty;const r=(0,a.getUiOptions)(p()(t,`${c.replace(/^\./,"")}`)).title;if(r){d=d.replace(e,r)}else{const t=p()(s,[a.PROPERTIES_KEY,e,"title"]);if(t){d=d.replace(e,t)}}u=d}else{const e=(0,a.getUiOptions)(p()(t,`${c.replace(/^\./,"")}`)).title;if(e){u=`'${e}' ${d}`.trim()}else{const e=s===null||s===void 0?void 0:s.title;if(e){u=`'${e}' ${d}`.trim()}}}return{name:n,property:c,message:d,params:o,stack:u,schemaPath:i}}))}function _(e,t,r,n,o,i,s){const{validationError:f}=t;let d=v(t.errors,s);if(f){d=[...d,{stack:f.message}]}if(typeof i==="function"){d=i(d,s)}let c=(0,a.toErrorSchema)(d);if(f){c={...c,$schema:{__errors:[f.message]}}}if(typeof o!=="function"){return{errors:d,errorSchema:c}}const u=(0,a.getDefaultFormState)(e,n,r,n,true);const l=o(u,(0,a.createErrorHandler)(u),s);const m=(0,a.unwrapErrorHandler)(l);return(0,a.validationDataMerge)({errors:d,errorSchema:c},m)}class ${constructor(e,t){const{additionalMetaSchemas:r,customFormats:a,ajvOptionsOverrides:n,ajvFormatOptions:o,AjvClass:i}=e;this.ajv=m(r,a,n,o,i);this.localizer=t}toErrorList(e,t=[]){return(0,a.toErrorList)(e,t)}rawValidation(e,t){let r=undefined;let n;if(e[a.ID_KEY]){n=this.ajv.getSchema(e[a.ID_KEY])}try{if(n===undefined){n=this.ajv.compile(e)}n(t)}catch(i){r=i}let o;if(n){if(typeof this.localizer==="function"){this.localizer(n.errors)}o=n.errors||undefined;n.errors=null}return{errors:o,validationError:r}}validateFormData(e,t,r,a,n){const o=this.rawValidation(t,e);return _(this,o,e,t,r,a,n)}isValid(e,t,r){var n,o;const i=(n=r[a.ID_KEY])!==null&&n!==void 0?n:a.ROOT_SCHEMA_PREFIX;try{this.ajv.addSchema(r,i);const n=(0,a.withIdRefPrefix)(e);const s=(o=n[a.ID_KEY])!==null&&o!==void 0?o:(0,a.hashForSchema)(n);let f;f=this.ajv.getSchema(s);if(f===undefined){f=this.ajv.addSchema(n,s).getSchema(s)||this.ajv.compile(n)}const d=f(t);return d}catch(s){console.warn("Error encountered compiling schema:",s);return false}finally{this.ajv.removeSchema(i)}}}function z(e={},t){return new $(e,t)}var y=r(2404);var b=r.n(y);class g{constructor(e,t,r){this.rootSchema=t;this.validateFns=e;this.localizer=r;this.mainValidator=this.getValidator(t)}getValidator(e){const t=p()(e,a.ID_KEY)||(0,a.hashForSchema)(e);const r=this.validateFns[t];if(!r){throw new Error(`No precompiled validator function was found for the given schema for "${t}"`)}return r}ensureSameRootSchema(e,t){if(!b()(e,this.rootSchema)){const r=(0,a.retrieveSchema)(this,this.rootSchema,this.rootSchema,t);if(!b()(e,r)){throw new Error("The schema associated with the precompiled validator differs from the rootSchema provided for validation")}}return true}toErrorList(e,t=[]){return(0,a.toErrorList)(e,t)}rawValidation(e,t){this.ensureSameRootSchema(e,t);this.mainValidator(t);if(typeof this.localizer==="function"){this.localizer(this.mainValidator.errors)}const r=this.mainValidator.errors||undefined;this.mainValidator.errors=null;return{errors:r}}validateFormData(e,t,r,a,n){const o=this.rawValidation(t,e);return _(this,o,e,t,r,a,n)}isValid(e,t,r){this.ensureSameRootSchema(r,t);if(p()(e,a.ID_KEY)===a.JUNK_OPTION_ID){return false}const n=this.getValidator(e);return n(t)}}function w(e,t,r){return new g(e,t,r)}const E=z()},14018:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formatNames=t.fastFormats=t.fullFormats=void 0;function r(e,t){return{validate:e,compare:t}}t.fullFormats={date:r(i,s),time:r(d,c),"date-time":r(l,m),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:v,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:S,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:$,int32:{type:"number",validate:b},int64:{type:"number",validate:g},float:{type:"number",validate:w},double:{type:"number",validate:w},password:true,binary:true};t.fastFormats={...t.fullFormats,date:r(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:r(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,c),"date-time":r(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,m),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};t.formatNames=Object.keys(t.fullFormats);function a(e){return e%4===0&&(e%100!==0||e%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;const o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function i(e){const t=n.exec(e);if(!t)return false;const r=+t[1];const i=+t[2];const s=+t[3];return i>=1&&i<=12&&s>=1&&s<=(i===2&&a(r)?29:o[i])}function s(e,t){if(!(e&&t))return undefined;if(e>t)return 1;if(et)return 1;if(e=z}function g(e){return Number.isInteger(e)}function w(){return true}const E=/[^\\]\\Z/;function S(e){if(E.test(e))return false;try{new RegExp(e);return true}catch(t){return false}}},68182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const a=r(14018);const n=r(26461);const o=r(99029);const i=new o.Name("fullFormats");const s=new o.Name("fastFormats");const f=(e,t={keywords:true})=>{if(Array.isArray(t)){d(e,t,a.fullFormats,i);return e}const[r,o]=t.mode==="fast"?[a.fastFormats,s]:[a.fullFormats,i];const f=t.formats||a.formatNames;d(e,f,r,o);if(t.keywords)n.default(e);return e};f.get=(e,t="full")=>{const r=t==="fast"?a.fastFormats:a.fullFormats;const n=r[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function d(e,t,r,a){var n;var i;(n=(i=e.opts.code).formats)!==null&&n!==void 0?n:i.formats=o._`require("ajv-formats/dist/formats").${a}`;for(const o of t)e.addFormat(o,r[o])}e.exports=t=f;Object.defineProperty(t,"__esModule",{value:true});t["default"]=f},26461:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.formatLimitDefinition=void 0;const a=r(63282);const n=r(99029);const o=n.operators;const i={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}};const s={message:({keyword:e,schemaCode:t})=>n.str`should be ${i[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>n._`{comparison: ${i[e].okStr}, limit: ${t}}`};t.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:true,error:s,code(e){const{gen:t,data:r,schemaCode:o,keyword:s,it:f}=e;const{opts:d,self:c}=f;if(!d.validateFormats)return;const u=new a.KeywordCxt(f,c.RULES.all.format.definition,"format");if(u.$data)l();else m();function l(){const r=t.scopeValue("formats",{ref:c.formats,code:d.code.formats});const a=t.const("fmt",n._`${r}[${u.schemaCode}]`);e.fail$data(n.or(n._`typeof ${a} != "object"`,n._`${a} instanceof RegExp`,n._`typeof ${a}.compare != "function"`,h(a)))}function m(){const r=u.schema;const a=c.formats[r];if(!a||a===true)return;if(typeof a!="object"||a instanceof RegExp||typeof a.compare!="function"){throw new Error(`"${s}": format "${r}" does not define "compare" function`)}const o=t.scopeValue("formats",{key:r,ref:a,code:d.code.formats?n._`${d.code.formats}${n.getProperty(r)}`:undefined});e.fail$data(h(o))}function h(e){return n._`${e}.compare(${r}, ${o}) ${i[s].fail} 0`}},dependencies:["format"]};const f=e=>{e.addKeyword(t.formatLimitDefinition);return e};t["default"]=f},38859:(e,t,r)=>{var a=r(53661),n=r(31380),o=r(51459);function i(e){var t=-1,r=e==null?0:e.length;this.__data__=new a;while(++t{function t(e,t){var r=-1,a=e==null?0:e.length;while(++r{var a=r(87068),n=r(40346);function o(e,t,r,i,s){if(e===t){return true}if(e==null||t==null||!n(e)&&!n(t)){return e!==e&&t!==t}return a(e,t,r,i,o,s)}e.exports=o},87068:(e,t,r)=>{var a=r(37217),n=r(25911),o=r(21986),i=r(50689),s=r(5861),f=r(56449),d=r(3656),c=r(37167);var u=1;var l="[object Arguments]",m="[object Array]",h="[object Object]";var p=Object.prototype;var v=p.hasOwnProperty;function _(e,t,r,p,_,$){var z=f(e),y=f(t),b=z?m:s(e),g=y?m:s(t);b=b==l?h:b;g=g==l?h:g;var w=b==h,E=g==h,S=b==g;if(S&&d(e)){if(!d(t)){return false}z=true;w=false}if(S&&!w){$||($=new a);return z||c(e)?n(e,t,r,p,_,$):o(e,t,b,r,p,_,$)}if(!(r&u)){var j=w&&v.call(e,"__wrapped__"),k=E&&v.call(t,"__wrapped__");if(j||k){var x=j?e.value():e,F=k?t.value():t;$||($=new a);return _(x,F,r,p,$)}}if(!S){return false}$||($=new a);return i(e,t,r,p,_,$)}e.exports=_},19219:e=>{function t(e,t){return e.has(t)}e.exports=t},25911:(e,t,r)=>{var a=r(38859),n=r(14248),o=r(19219);var i=1,s=2;function f(e,t,r,f,d,c){var u=r&i,l=e.length,m=t.length;if(l!=m&&!(u&&m>l)){return false}var h=c.get(e);var p=c.get(t);if(h&&p){return h==t&&p==e}var v=-1,_=true,$=r&s?new a:undefined;c.set(e,t);c.set(t,e);while(++v{var a=r(51873),n=r(37828),o=r(75288),i=r(25911),s=r(20317),f=r(84247);var d=1,c=2;var u="[object Boolean]",l="[object Date]",m="[object Error]",h="[object Map]",p="[object Number]",v="[object RegExp]",_="[object Set]",$="[object String]",z="[object Symbol]";var y="[object ArrayBuffer]",b="[object DataView]";var g=a?a.prototype:undefined,w=g?g.valueOf:undefined;function E(e,t,r,a,g,E,S){switch(r){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset){return false}e=e.buffer;t=t.buffer;case y:if(e.byteLength!=t.byteLength||!E(new n(e),new n(t))){return false}return true;case u:case l:case p:return o(+e,+t);case m:return e.name==t.name&&e.message==t.message;case v:case $:return e==t+"";case h:var j=s;case _:var k=a&d;j||(j=f);if(e.size!=t.size&&!k){return false}var x=S.get(e);if(x){return x==t}a|=c;S.set(e,t);var F=i(j(e),j(t),a,g,E,S);S["delete"](e);return F;case z:if(w){return w.call(e)==w.call(t)}}return false}e.exports=E},50689:(e,t,r)=>{var a=r(50002);var n=1;var o=Object.prototype;var i=o.hasOwnProperty;function s(e,t,r,o,s,f){var d=r&n,c=a(e),u=c.length,l=a(t),m=l.length;if(u!=m&&!d){return false}var h=u;while(h--){var p=c[h];if(!(d?p in t:i.call(t,p))){return false}}var v=f.get(e);var _=f.get(t);if(v&&_){return v==t&&_==e}var $=true;f.set(e,t);f.set(t,e);var z=d;while(++h{function t(e){var t=-1,r=Array(e.size);e.forEach((function(e,a){r[++t]=[a,e]}));return r}e.exports=t},31380:e=>{var t="__lodash_hash_undefined__";function r(e){this.__data__.set(e,t);return this}e.exports=r},51459:e=>{function t(e){return this.__data__.has(e)}e.exports=t},84247:e=>{function t(e){var t=-1,r=Array(e.size);e.forEach((function(e){r[++t]=e}));return r}e.exports=t},2404:(e,t,r)=>{var a=r(60270);function n(e,t){return a(e,t)}e.exports=n}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6941.465bebbd3d8a024f5f15.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6941.465bebbd3d8a024f5f15.js new file mode 100644 index 0000000000000000000000000000000000000000..85ba2f8f73c7cb927fa4de4ddbfec11b6fa64d82 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6941.465bebbd3d8a024f5f15.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6941],{46941:(t,E,e)=>{e.r(E);e.d(E,{forth:()=>O});function r(t){var E=[];t.split(" ").forEach((function(t){E.push({name:t})}));return E}var n=r("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL");var i=r("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");function R(t,E){var e;for(e=t.length-1;e>=0;e--){if(t[e].name===E.toUpperCase()){return t[e]}}return undefined}const O={name:"forth",startState:function(){return{state:"",base:10,coreWordList:n,immediateWordList:i,wordList:[]}},token:function(t,E){var e;if(t.eatSpace()){return null}if(E.state===""){if(t.match(/^(\]|:NONAME)(\s|$)/i)){E.state=" compilation";return"builtin"}e=t.match(/^(\:)\s+(\S+)(\s|$)+/);if(e){E.wordList.push({name:e[2].toUpperCase()});E.state=" compilation";return"def"}e=t.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i);if(e){E.wordList.push({name:e[2].toUpperCase()});return"def"}e=t.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/);if(e){return"builtin"}}else{if(t.match(/^(\;|\[)(\s)/)){E.state="";t.backUp(1);return"builtin"}if(t.match(/^(\;|\[)($)/)){E.state="";return"builtin"}if(t.match(/^(POSTPONE)\s+\S+(\s|$)+/)){return"builtin"}}e=t.match(/^(\S+)(\s+|$)/);if(e){if(R(E.wordList,e[1])!==undefined){return"variable"}if(e[1]==="\\"){t.skipToEnd();return"comment"}if(R(E.coreWordList,e[1])!==undefined){return"builtin"}if(R(E.immediateWordList,e[1])!==undefined){return"keyword"}if(e[1]==="("){t.eatWhile((function(t){return t!==")"}));t.eat(")");return"comment"}if(e[1]===".("){t.eatWhile((function(t){return t!==")"}));t.eat(")");return"string"}if(e[1]==='S"'||e[1]==='."'||e[1]==='C"'){t.eatWhile((function(t){return t!=='"'}));t.eat('"');return"string"}if(e[1]-68719476735){return"number"}return"atom"}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6974.b5b353b8af28fbc91291.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6974.b5b353b8af28fbc91291.js new file mode 100644 index 0000000000000000000000000000000000000000..c7409079b95f256997653dc3041aeecf7046abc2 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/6974.b5b353b8af28fbc91291.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6974],{97134:(e,n,t)=>{t.d(n,{A:()=>o});var r=t(59386);var a=4;function i(e){return(0,r.A)(e,a)}const o=i},66974:(e,n,t)=>{t.r(n);t.d(n,{render:()=>J});var r=t(33416);var a=t(94746);var i=t(20778);var o=t(57590);var s=t(68232);var d=t(76261);var c=t(96049);var l=t(75905);var g=t(82211);var f=t(89523);var u=t(97134);var p=t(8937);var h=t(65791);function m(e){var n={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:w(e),edges:v(e)};if(!f.A(e.graph())){n.value=u.A(e.graph())}return n}function w(e){return p.A(e.nodes(),(function(n){var t=e.node(n);var r=e.parent(n);var a={v:n};if(!f.A(t)){a.value=t}if(!f.A(r)){a.parent=r}return a}))}function v(e){return p.A(e.edges(),(function(n){var t=e.edge(n);var r={v:n.v,w:n.w};if(!f.A(n.name)){r.name=n.name}if(!f.A(t)){r.value=t}return r}))}function R(e){var n=new Graph(e.options).setGraph(e.value);_.each(e.nodes,(function(e){n.setNode(e.v,e.value);if(e.parent){n.setParent(e.v,e.parent)}}));_.each(e.edges,(function(e){n.setEdge({v:e.v,w:e.w,name:e.name},e.value)}));return n}var y=t(84416);var X=new Map;var b=new Map;var E=new Map;var N=(0,l.K2)((()=>{b.clear();E.clear();X.clear()}),"clear");var C=(0,l.K2)(((e,n)=>{const t=b.get(n)||[];l.Rm.trace("In isDescendant",n," ",e," = ",t.includes(e));return t.includes(e)}),"isDescendant");var S=(0,l.K2)(((e,n)=>{const t=b.get(n)||[];l.Rm.info("Descendants of ",n," is ",t);l.Rm.info("Edge is ",e);if(e.v===n||e.w===n){return false}if(!t){l.Rm.debug("Tilt, ",n,",not in descendants");return false}return t.includes(e.v)||C(e.v,n)||C(e.w,n)||t.includes(e.w)}),"edgeInCluster");var x=(0,l.K2)(((e,n,t,r)=>{l.Rm.warn("Copying children of ",e,"root",r,"data",n.node(e),r);const a=n.children(e)||[];if(e!==r){a.push(e)}l.Rm.warn("Copying (nodes) clusterId",e,"nodes",a);a.forEach((a=>{if(n.children(a).length>0){x(a,n,t,r)}else{const i=n.node(a);l.Rm.info("cp ",a," to ",r," with parent ",e);t.setNode(a,i);if(r!==n.parent(a)){l.Rm.warn("Setting parent",a,n.parent(a));t.setParent(a,n.parent(a))}if(e!==r&&a!==e){l.Rm.debug("Setting parent",a,e);t.setParent(a,e)}else{l.Rm.info("In copy ",e,"root",r,"data",n.node(e),r);l.Rm.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e)}const o=n.edges(a);l.Rm.debug("Copying Edges",o);o.forEach((a=>{l.Rm.info("Edge",a);const i=n.edge(a.v,a.w,a.name);l.Rm.info("Edge data",i,r);try{if(S(a,r)){l.Rm.info("Copying as ",a.v,a.w,i,a.name);t.setEdge(a.v,a.w,i,a.name);l.Rm.info("newGraph edges ",t.edges(),t.edge(t.edges()[0]))}else{l.Rm.info("Skipping copy of edge ",a.v,"--\x3e",a.w," rootId: ",r," clusterId:",e)}}catch(o){l.Rm.error(o)}}))}l.Rm.debug("Removing node",a);n.removeNode(a)}))}),"copy");var I=(0,l.K2)(((e,n)=>{const t=n.children(e);let r=[...t];for(const a of t){E.set(a,e);r=[...r,...I(a,n)]}return r}),"extractDescendants");var D=(0,l.K2)(((e,n,t)=>{const r=e.edges().filter((e=>e.v===n||e.w===n));const a=e.edges().filter((e=>e.v===t||e.w===t));const i=r.map((e=>({v:e.v===n?t:e.v,w:e.w===n?n:e.w})));const o=a.map((e=>({v:e.v,w:e.w})));const s=i.filter((e=>o.some((n=>e.v===n.v&&e.w===n.w))));return s}),"findCommonEdges");var A=(0,l.K2)(((e,n,t)=>{const r=n.children(e);l.Rm.trace("Searching children of id ",e,r);if(r.length<1){return e}let a;for(const i of r){const e=A(i,n,t);const r=D(n,t,e);if(e){if(r.length>0){a=e}else{return e}}}return a}),"findNonClusterChild");var O=(0,l.K2)((e=>{if(!X.has(e)){return e}if(!X.get(e).externalConnections){return e}if(X.has(e)){return X.get(e).id}return e}),"getAnchorId");var k=(0,l.K2)(((e,n)=>{if(!e||n>10){l.Rm.debug("Opting out, no graph ");return}else{l.Rm.debug("Opting in, graph ")}e.nodes().forEach((function(n){const t=e.children(n);if(t.length>0){l.Rm.warn("Cluster identified",n," Replacement id in edges: ",A(n,e,n));b.set(n,I(n,e));X.set(n,{id:A(n,e,n),clusterData:e.node(n)})}}));e.nodes().forEach((function(n){const t=e.children(n);const r=e.edges();if(t.length>0){l.Rm.debug("Cluster identified",n,b);r.forEach((e=>{const t=C(e.v,n);const r=C(e.w,n);if(t^r){l.Rm.warn("Edge: ",e," leaves cluster ",n);l.Rm.warn("Descendants of XXX ",n,": ",b.get(n));X.get(n).externalConnections=true}}))}else{l.Rm.debug("Not a cluster ",n,b)}}));for(let t of X.keys()){const n=X.get(t).id;const r=e.parent(n);if(r!==t&&X.has(r)&&!X.get(r).externalConnections){X.get(t).id=r}}e.edges().forEach((function(n){const t=e.edge(n);l.Rm.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n));l.Rm.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let r=n.v;let a=n.w;l.Rm.warn("Fix XXX",X,"ids:",n.v,n.w,"Translating: ",X.get(n.v)," --- ",X.get(n.w));if(X.get(n.v)||X.get(n.w)){l.Rm.warn("Fixing and trying - removing XXX",n.v,n.w,n.name);r=O(n.v);a=O(n.w);e.removeEdge(n.v,n.w,n.name);if(r!==n.v){const a=e.parent(r);X.get(a).externalConnections=true;t.fromCluster=n.v}if(a!==n.w){const r=e.parent(a);X.get(r).externalConnections=true;t.toCluster=n.w}l.Rm.warn("Fix Replacing with XXX",r,a,n.name);e.setEdge(r,a,t,n.name)}}));l.Rm.warn("Adjusted Graph",m(e));G(e,0);l.Rm.trace(X)}),"adjustClustersAndEdges");var G=(0,l.K2)(((e,n)=>{l.Rm.warn("extractor - ",n,m(e),e.children("D"));if(n>10){l.Rm.error("Bailing out");return}let t=e.nodes();let r=false;for(const a of t){const n=e.children(a);r=r||n.length>0}if(!r){l.Rm.debug("Done, no node has children",e.nodes());return}l.Rm.debug("Nodes = ",t,n);for(const a of t){l.Rm.debug("Extracting node",a,X,X.has(a)&&!X.get(a).externalConnections,!e.parent(a),e.node(a),e.children("D")," Depth ",n);if(!X.has(a)){l.Rm.debug("Not a cluster",a,n)}else if(!X.get(a).externalConnections&&e.children(a)&&e.children(a).length>0){l.Rm.warn("Cluster without external connections, without a parent and with children",a,n);const t=e.graph();let r=t.rankdir==="TB"?"LR":"TB";if(X.get(a)?.clusterData?.dir){r=X.get(a).clusterData.dir;l.Rm.warn("Fixing dir",X.get(a).clusterData.dir,r)}const i=new y.T({multigraph:true,compound:true}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));l.Rm.warn("Old graph before copy",m(e));x(a,e,i,a);e.setNode(a,{clusterNode:true,id:a,clusterData:X.get(a).clusterData,label:X.get(a).label,graph:i});l.Rm.warn("New graph after copy node: (",a,")",m(i));l.Rm.debug("Old graph after copy",m(e))}else{l.Rm.warn("Cluster ** ",a," **not meeting the criteria !externalConnections:",!X.get(a).externalConnections," no parent: ",!e.parent(a)," children ",e.children(a)&&e.children(a).length>0,e.children("D"),n);l.Rm.debug(X)}}t=e.nodes();l.Rm.warn("New list of nodes",t);for(const a of t){const t=e.node(a);l.Rm.warn(" Now next level",a,t);if(t?.clusterNode){G(t.graph,n+1)}}}),"extractor");var K=(0,l.K2)(((e,n)=>{if(n.length===0){return[]}let t=Object.assign([],n);n.forEach((n=>{const r=e.children(n);const a=K(e,r);t=[...t,...a]}));return t}),"sorter");var P=(0,l.K2)((e=>K(e,e.children())),"sortNodesByHierarchy");var T=(0,l.K2)((async(e,n,t,a,s,d)=>{l.Rm.warn("Graph in recursive render:XAX",m(n),s);const c=n.graph().rankdir;l.Rm.trace("Dir in recursive render - dir:",c);const f=e.insert("g").attr("class","root");if(!n.nodes()){l.Rm.info("No nodes found for",n)}else{l.Rm.info("Recursive render XXX",n.nodes())}if(n.edges().length>0){l.Rm.info("Recursive edges",n.edge(n.edges()[0]))}const u=f.insert("g").attr("class","clusters");const p=f.insert("g").attr("class","edgePaths");const h=f.insert("g").attr("class","edgeLabels");const w=f.insert("g").attr("class","nodes");await Promise.all(n.nodes().map((async function(e){const r=n.node(e);if(s!==void 0){const t=JSON.parse(JSON.stringify(s.clusterData));l.Rm.trace("Setting data for parent cluster XXX\n Node.id = ",e,"\n data=",t.height,"\nParent cluster",s.height);n.setNode(s.id,t);if(!n.parent(e)){l.Rm.trace("Setting parent",e,s.id);n.setParent(e,s.id,t)}}l.Rm.info("(Insert) Node XXX"+e+": "+JSON.stringify(n.node(e)));if(r?.clusterNode){l.Rm.info("Cluster identified XBX",e,r.width,n.node(e));const{ranksep:o,nodesep:s}=n.graph();r.graph.setGraph({...r.graph.graph(),ranksep:o+25,nodesep:s});const c=await T(w,r.graph,t,a,n.node(e),d);const g=c.elem;(0,i.lC)(r,g);r.diff=c.diff||0;l.Rm.info("New compound node after recursive render XAX",e,"width",r.width,"height",r.height);(0,i.U7)(g,r)}else{if(n.children(e).length>0){l.Rm.trace("Cluster - the non recursive path XBX",e,r.id,r,r.width,"Graph:",n);l.Rm.trace(A(r.id,n));X.set(r.id,{id:A(r.id,n),node:r})}else{l.Rm.trace("Node - the non recursive path XAX",e,w,n.node(e),c);await(0,i.on)(w,n.node(e),{config:d,dir:c})}}})));const v=(0,l.K2)((async()=>{const e=n.edges().map((async function(e){const t=n.edge(e.v,e.w,e.name);l.Rm.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e));l.Rm.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(n.edge(e)));l.Rm.info("Fix",X,"ids:",e.v,e.w,"Translating: ",X.get(e.v),X.get(e.w));await(0,r.jP)(h,t)}));await Promise.all(e)}),"processEdges");await v();l.Rm.info("Graph before layout:",JSON.stringify(m(n)));l.Rm.info("############################################# XXX");l.Rm.info("### Layout ### XXX");l.Rm.info("############################################# XXX");(0,g.Zp)(n);l.Rm.info("Graph after layout:",JSON.stringify(m(n)));let R=0;let{subGraphTitleTotalMargin:y}=(0,o.O)(d);await Promise.all(P(n).map((async function(e){const t=n.node(e);l.Rm.info("Position XBX => "+e+": ("+t.x,","+t.y,") width: ",t.width," height: ",t.height);if(t?.clusterNode){t.y+=y;l.Rm.info("A tainted cluster node XBX1",e,t.id,t.width,t.height,t.x,t.y,n.parent(e));X.get(t.id).node=t;(0,i.U_)(t)}else{if(n.children(e).length>0){l.Rm.info("A pure cluster node XBX1",e,t.id,t.x,t.y,t.width,t.height,n.parent(e));t.height+=y;n.node(t.parentId);const r=t?.padding/2||0;const a=t?.labelBBox?.height||0;const o=a-r||0;l.Rm.debug("OffsetY",o,"labelHeight",a,"halfPadding",r);await(0,i.U)(u,t);X.get(t.id).node=t}else{const e=n.node(t.parentId);t.y+=y/2;l.Rm.info("A regular node XBX1 - using the padding",t.id,"parent",t.parentId,t.width,t.height,t.x,t.y,"offsetY",t.offsetY,"parent",e,e?.offsetY,t);(0,i.U_)(t)}}})));n.edges().forEach((function(e){const i=n.edge(e);l.Rm.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(i),i);i.points.forEach((e=>e.y+=y/2));const o=n.node(e.v);var s=n.node(e.w);const d=(0,r.Jo)(p,i,X,t,o,s,a);(0,r.T_)(i,d)}));n.nodes().forEach((function(e){const t=n.node(e);l.Rm.info(e,t.type,t.diff);if(t.isGroup){R=t.diff}}));l.Rm.warn("Returning from recursive render XAX",f,R);return{elem:f,diff:R}}),"recursiveRender");var J=(0,l.K2)((async(e,n)=>{const t=new y.T({multigraph:true,compound:true}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));const a=n.select("g");(0,r.g0)(a,e.markers,e.type,e.diagramId);(0,i.gh)();(0,r.IU)();(0,i.IU)();N();e.nodes.forEach((e=>{t.setNode(e.id,{...e});if(e.parentId){t.setParent(e.id,e.parentId)}}));l.Rm.debug("Edges:",e.edges);e.edges.forEach((e=>{if(e.start===e.end){const n=e.start;const r=n+"---"+n+"---1";const a=n+"---"+n+"---2";const i=t.node(n);t.setNode(r,{domId:r,id:r,parentId:i.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10});t.setParent(r,i.parentId);t.setNode(a,{domId:a,id:a,parentId:i.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10});t.setParent(a,i.parentId);const o=structuredClone(e);const s=structuredClone(e);const d=structuredClone(e);o.label="";o.arrowTypeEnd="none";o.id=n+"-cyclic-special-1";s.arrowTypeStart="none";s.arrowTypeEnd="none";s.id=n+"-cyclic-special-mid";d.label="";if(i.isGroup){o.fromCluster=n;d.toCluster=n}d.id=n+"-cyclic-special-2";d.arrowTypeStart="none";t.setEdge(n,r,o,n+"-cyclic-special-0");t.setEdge(r,a,s,n+"-cyclic-special-1");t.setEdge(a,n,d,n+"-cyc{n.r(e);n.d(e,{mangle:()=>r});function r(){return{mangle:false,walkTokens(t){if(t.type!=="link"){return}if(!t.href.startsWith("mailto:")){return}const e=t.href.substring(7);const n=o(e);t.href=`mailto:${n}`;if(t.tokens.length!==1||t.tokens[0].type!=="text"||t.tokens[0].text!==e){return}t.text=n;t.tokens[0].text=n}}}function o(t){let e="",n,r;const o=t.length;for(n=0;n.5){r="x"+r.toString(16)}e+="&#"+r+";"}return e}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/721921bab0d001ebff02.woff b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/721921bab0d001ebff02.woff new file mode 100644 index 0000000000000000000000000000000000000000..f5df02348b3ad03c4828e77e172cd1cee1bef4dc Binary files /dev/null and b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/721921bab0d001ebff02.woff differ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7250.b88d0a5e237ff5ff1aad.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7250.b88d0a5e237ff5ff1aad.js new file mode 100644 index 0000000000000000000000000000000000000000..a3886346d7a4a2b176f4a7207f3b474449ed2473 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7250.b88d0a5e237ff5ff1aad.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7250],{97250:(O,Q,P)=>{P.r(Q);P.d(Q,{rust:()=>U,rustLanguage:()=>l});var $=P(27421);var X=P(45145);const i=1,e=2,a=3,h=4,r=5;const t=98,s=101,W=102,Y=114,S=69,x=48,o=46,Z=43,_=45,p=35,b=34,z=124,q=60,w=62;function g(O){return O>=48&&O<=57}function n(O){return g(O)||O==95}const R=new $.Lu(((O,Q)=>{if(g(O.next)){let Q=false;do{O.advance()}while(n(O.next));if(O.next==o){Q=true;O.advance();if(g(O.next)){do{O.advance()}while(n(O.next))}else if(O.next==o||O.next>127||/\w/.test(String.fromCharCode(O.next))){return}}if(O.next==s||O.next==S){Q=true;O.advance();if(O.next==Z||O.next==_)O.advance();if(!n(O.next))return;do{O.advance()}while(n(O.next))}if(O.next==W){let P=O.peek(1);if(P==x+3&&O.peek(2)==x+2||P==x+6&&O.peek(2)==x+4){O.advance(3);Q=true}else{return}}if(Q)O.acceptToken(r)}else if(O.next==t||O.next==Y){if(O.next==t)O.advance();if(O.next!=Y)return;O.advance();let Q=0;while(O.next==p){Q++;O.advance()}if(O.next!=b)return;O.advance();O:for(;;){if(O.next<0)return;let P=O.next==b;O.advance();if(P){for(let P=0;P{if(O.next==z)O.acceptToken(i,1)}));const T=new $.Lu((O=>{if(O.next==q)O.acceptToken(e,1);else if(O.next==w)O.acceptToken(a,1)}));const y=(0,X.styleTags)({"const macro_rules struct union enum type fn impl trait let static":X.tags.definitionKeyword,"mod use crate":X.tags.moduleKeyword,"pub unsafe async mut extern default move":X.tags.modifier,"for if else loop while match continue break return await":X.tags.controlKeyword,"as in ref":X.tags.operatorKeyword,"where _ crate super dyn":X.tags.keyword,self:X.tags.self,String:X.tags.string,Char:X.tags.character,RawString:X.tags.special(X.tags.string),Boolean:X.tags.bool,Identifier:X.tags.variableName,"CallExpression/Identifier":X.tags.function(X.tags.variableName),BoundIdentifier:X.tags.definition(X.tags.variableName),"FunctionItem/BoundIdentifier":X.tags.function(X.tags.definition(X.tags.variableName)),LoopLabel:X.tags.labelName,FieldIdentifier:X.tags.propertyName,"CallExpression/FieldExpression/FieldIdentifier":X.tags.function(X.tags.propertyName),Lifetime:X.tags.special(X.tags.variableName),ScopeIdentifier:X.tags.namespace,TypeIdentifier:X.tags.typeName,"MacroInvocation/Identifier MacroInvocation/ScopedIdentifier/Identifier":X.tags.macroName,"MacroInvocation/TypeIdentifier MacroInvocation/ScopedIdentifier/TypeIdentifier":X.tags.macroName,'"!"':X.tags.macroName,UpdateOp:X.tags.updateOperator,LineComment:X.tags.lineComment,BlockComment:X.tags.blockComment,Integer:X.tags.integer,Float:X.tags.float,ArithOp:X.tags.arithmeticOperator,LogicOp:X.tags.logicOperator,BitOp:X.tags.bitwiseOperator,CompareOp:X.tags.compareOperator,"=":X.tags.definitionOperator,".. ... => ->":X.tags.punctuation,"( )":X.tags.paren,"[ ]":X.tags.squareBracket,"{ }":X.tags.brace,". DerefOp":X.tags.derefOperator,"&":X.tags.operator,", ; ::":X.tags.separator,"Attribute/...":X.tags.meta});const c={__proto__:null,self:28,super:32,crate:34,impl:46,true:72,false:72,pub:88,in:92,const:96,unsafe:104,async:108,move:110,if:114,let:118,ref:142,mut:144,_:198,else:200,match:204,as:248,return:252,await:262,break:270,continue:276,while:312,loop:316,for:320,macro_rules:327,mod:334,extern:342,struct:346,where:364,union:379,enum:382,type:390,default:395,fn:396,trait:412,use:420,static:438,dyn:476};const d=$.U1.deserialize({version:14,states:"$2xQ]Q_OOP$wOWOOO&sQWO'#CnO)WQWO'#I`OOQP'#I`'#I`OOQQ'#Ie'#IeO)hO`O'#C}OOQR'#Ih'#IhO)sQWO'#IuOOQO'#Hk'#HkO)xQWO'#DpOOQR'#Iw'#IwO)xQWO'#DpO*ZQWO'#DpOOQO'#Iv'#IvO,SQWO'#J`O,ZQWO'#EiOOQV'#Hp'#HpO,cQYO'#F{OOQV'#El'#ElOOQV'#Em'#EmOOQV'#En'#EnO.YQ_O'#EkO0_Q_O'#EoO2gQWOOO4QQ_O'#FPO7hQWO'#J`OOQV'#FY'#FYO7{Q_O'#F^O:WQ_O'#FaOOQO'#F`'#F`O=sQ_O'#FcO=}Q_O'#FbO@VQWO'#FgOOQO'#J`'#J`OOQV'#Io'#IoOA]Q_O'#InOEPQWO'#InOOQV'#Fw'#FwOF[QWO'#JuOFcQWO'#F|OOQO'#IO'#IOOGrQWO'#GhOOQV'#Im'#ImOOQV'#Il'#IlOOQV'#Hj'#HjQGyQ_OOOKeQ_O'#DUOKlQYO'#CqOOQP'#I_'#I_OOQV'#Hg'#HgQ]Q_OOOLuQWO'#I`ONsQYO'#DXO!!eQWO'#JuO!!lQWO'#JuO!!vQ_O'#DfO!%]Q_O'#E}O!(sQ_O'#FWO!,ZQWO'#FZO!.^QXO'#FbO!.cQ_O'#EeO!!vQ_O'#FmO!0uQWO'#FoO!0zQWO'#FoO!1PQ^O'#FqO!1WQWO'#JuO!1_QWO'#FtO!1dQWO'#FxO!2WQWO'#JjO!2_QWO'#GOO!2_QWO'#G`O!2_QWO'#GbO!2_QWO'#GsOOQO'#Ju'#JuO!2dQWO'#GhO!2lQYO'#GpO!2_QWO'#GqO!3uQ^O'#GtO!3|QWO'#GuO!4hQWO'#HOP!4sOpO'#CcPOOO)CC})CC}OOOO'#Hi'#HiO!5OO`O,59iOOQV,59i,59iO!5ZQYO,5?aOOQO-E;i-E;iOOQO,5:[,5:[OOQP,59Z,59ZO)xQWO,5:[O)xQWO,5:[O!5oQWO,5?kO!5zQYO,5;qO!6PQYO,5;TO!6hQWO,59QO!7kQXO'#CnO!7xQXO'#I`O!9SQWO'#CoO,^QWO'#EiOOQV-E;n-E;nO!9eQWO'#FsOOQV,5WQWO,5:fOOQP,5:h,5:hO!1PQ^O,5:hO!1PQ^O,5:mO$>]QYO,5gQ_O'#HsO$>tQXO,5@QOOQV1G1i1G1iOOQP,5:e,5:eO$>|QXO,5]QYO,5=vO$LRQWO'#KRO$L^QWO,5=xOOQR,5=y,5=yO$LcQWO,5=zO$>]QYO,5>PO$>]QYO,5>POOQO1G.w1G.wO$>]QYO1G.wO$LnQYO,5=pO$LvQZO,59^OOQR,59^,59^O$>]QYO,5=wO% YQZO,5=}OOQR,5=},5=}O%#lQWO1G/_O!6PQYO1G/_O#FYQYO1G2vO%#qQWO1G2vO%$PQYO1G2vOOQV1G/i1G/iO%%YQWO,5:SO%%bQ_O1G/lO%*kQWO1G1^O%+RQWO1G1hOOQO1G1h1G1hO$>]QYO1G1hO%+iQ^O'#EgOOQV1G0k1G0kOOQV1G1s1G1sO!!vQ_O1G1sO!0zQWO1G1uO!1PQ^O1G1wO!.cQ_O1G1wOOQP,5:j,5:jO$>]QYO1G/^OOQO'#Cn'#CnO%+vQWO1G1zOOQV1G2O1G2OO%,OQWO'#CnO%,WQWO1G3TO%,]QWO1G3TO%,bQYO'#GQO%,sQWO'#G]O%-UQYO'#G_O%.hQYO'#GXOOQV1G2U1G2UO%/wQWO1G2UO%/|QWO1G2UO$ARQWO1G2UOOQV1G2f1G2fO%/wQWO1G2fO#CpQWO1G2fO%0UQWO'#GdOOQV1G2h1G2hO%0gQWO1G2hO#C{QWO1G2hO%0lQYO'#GSO$>]QYO1G2lO$AdQWO1G2lOOQV1G2y1G2yO%1xQWO1G2yO%3hQ^O'#GkO%3rQWO1G2nO#DfQWO1G2nO%4QQYO,5]QYO1G2vOOQV1G2w1G2wO%5tQWO1G2wO%5yQWO1G2wO#HXQWO1G2wOOQV1G2z1G2zO.YQ_O1G2zO$>]QYO1G2zO%6RQWO1G2zOOQO,5>l,5>lOOQO-E]QYO1G3UPOOO-E;d-E;dPOOO1G.i1G.iOOQO7+*g7+*gO%7VQYO'#IcO%7nQYO'#IfO%7yQYO'#IfO%8RQYO'#IfO%8^QYO,59eOOQO7+%b7+%bOOQP7+$a7+$aO%8cQ!fO'#JTOOQS'#EX'#EXOOQS'#EY'#EYOOQS'#EZ'#EZOOQS'#JT'#JTO%;UQWO'#EWOOQS'#E`'#E`OOQS'#JR'#JROOQS'#Hn'#HnO%;ZQ!fO,5:oOOQV,5:o,5:oOOQV'#JQ'#JQO%;bQ!fO,5:{OOQV,5:{,5:{O%;iQ!fO,5:|OOQV,5:|,5:|OOQV7+'e7+'eOOQV7+&Z7+&ZO%;pQ!fO,59TOOQO,59T,59TO%>YQWO7+$WO%>_QWO1G1yOOQV1G1y1G1yO!9SQWO1G.uO%>dQWO,5?}O%>nQ_O'#HqO%@|QWO,5?}OOQO1G1X1G1XOOQO7+&}7+&}O%AUQWO,5>^OOQO-E;p-E;pO%AcQWO7+'OO.YQ_O7+'OOOQO7+'O7+'OOOQO7+'P7+'PO%AjQWO7+'POOQO7+'W7+'WOOQP1G0V1G0VO%ArQXO1G/tO!M{QWO1G/tO%BsQXO1G0RO%CkQ^O'#HlO%C{QWO,5?eOOQP1G/u1G/uO%DWQWO1G/uO%D]QWO'#D_OOQO'#Dt'#DtO%DhQWO'#DtO%DmQWO'#I{OOQO'#Iz'#IzO%DuQWO,5:_O%DzQWO'#DtO%EPQWO'#DtOOQP1G0Q1G0QOOQP1G0S1G0SOOQP1G0X1G0XO%EXQXO1G1jO%EdQXO'#FeOOQP,5>_,5>_O!1PQ^O'#FeOOQP-E;q-E;qO$>]QYO1G1jOOQO7+'S7+'SOOQO,5]QYO7+$xOOQV7+'j7+'jO%FsQWO7+(oO%FxQWO7+(oOOQV7+'p7+'pO%/wQWO7+'pO%F}QWO7+'pO%GVQWO7+'pOOQV7+(Q7+(QO%/wQWO7+(QO#CpQWO7+(QOOQV7+(S7+(SO%0gQWO7+(SO#C{QWO7+(SO$>]QYO7+(WO%GeQWO7+(WO#HUQYO7+(cO%GjQWO7+(YO#DfQWO7+(YOOQV7+(c7+(cO%5tQWO7+(cO%5yQWO7+(cO#HXQWO7+(cOOQV7+(g7+(gO$>]QYO7+(pO%GxQWO7+(pO!1dQWO7+(pOOQV7+$v7+$vO%G}QWO7+$vO%HSQZO1G3ZO%JfQWO1G4jOOQO1G4j1G4jOOQR1G.}1G.}O#.WQWO1G.}O%JkQWO'#KQOOQO'#HW'#HWO%J|QWO'#HXO%KXQWO'#KQOOQO'#KP'#KPO%KaQWO,5=qO%KfQYO'#H[O%LrQWO'#GmO%L}QYO'#CtO%MXQWO'#GmO$>]QYO1G3ZOOQR1G3g1G3gO#7aQWO1G3ZO%M^QZO1G3bO$>]QYO1G3bO& mQYO'#IVO& }QWO,5@mOOQR1G3d1G3dOOQR1G3f1G3fO.YQ_O1G3fOOQR1G3k1G3kO&!VQYO7+$cO&!_QYO'#KOOOQQ'#J}'#J}O&!gQYO1G3[O&!lQZO1G3cOOQQ7+$y7+$yO&${QWO7+$yO&%QQWO7+(bOOQV7+(b7+(bO%5tQWO7+(bO$>]QYO7+(bO#FYQYO7+(bO&%YQWO7+(bO!.cQ_O1G/nO&%hQWO7+%WO$?[QWO7+'SO&%pQWO'#EhO&%{Q^O'#EhOOQU'#Ho'#HoO&%{Q^O,5;ROOQV,5;R,5;RO&&VQWO,5;RO&&[Q^O,5;RO!0zQWO7+'_OOQV7+'a7+'aO&&iQWO7+'cO&&qQWO7+'cO&&xQWO7+$xO&'TQ!fO7+'fO&'[Q!fO7+'fOOQV7+(o7+(oO!1dQWO7+(oO&'cQYO,5]QYO'#JrOOQO'#Jq'#JqO&*YQWO,5]QYO'#GUO&,SQYO'#JkOOQQ,5]QYO7+(YO&0SQYO'#HxO&0hQYO1G2WOOQQ1G2W1G2WOOQQ,5]QYO,5]QYO7+(fO&1dQWO'#IRO&1nQWO,5@hOOQO1G3Q1G3QOOQO1G2}1G2}OOQO1G3P1G3POOQO1G3R1G3ROOQO1G3S1G3SOOQO1G3O1G3OO&1vQWO7+(pO$>]QYO,59fO&2RQ^O'#ISO&2xQYO,5?QOOQR1G/P1G/PO&3QQ!bO,5:pO&3VQ!fO,5:rOOQS-E;l-E;lOOQV1G0Z1G0ZOOQV1G0g1G0gOOQV1G0h1G0hO&3^QWO'#JTOOQO1G.o1G.oOOQV<]O&3qQWO,5>]OOQO-E;o-E;oOOQO<WOOQO-E;j-E;jOOQP7+%a7+%aO!1PQ^O,5:`O&5cQWO'#HmO&5wQWO,5?gOOQP1G/y1G/yOOQO,5:`,5:`O&6PQWO,5:`O%DzQWO,5:`O$>]QYO,5`,5>`OOQO-E;r-E;rOOQV7+'l7+'lO&6yQWO<]QYO<]QYO<]QYO<]QYO7+(uOOQO7+*U7+*UOOQR7+$i7+$iO&8cQWO,5@lOOQO'#Gm'#GmO&8kQWO'#GmO&8vQYO'#IUO&8cQWO,5@lOOQR1G3]1G3]O&:cQYO,5=vO&;rQYO,5=XO&;|QWO,5=XOOQO,5=X,5=XOOQR7+(u7+(uO&eQZO7+(|O&@tQWO,5>qOOQO-E]QYO<]QYO,5]QYO,5@^O&D^QYO'#H|O&EsQWO,5@^OOQO1G2e1G2eO%,nQWO,5]QYO,5PO&I]QYO,5@VOOQV<]QYO,5=WO&KuQWO,5@cO&K}QWO,5@cO&MvQ^O'#IPO&KuQWO,5@cOOQO1G2q1G2qO&NTQWO,5=WO&N]QWO<oO&NvQYO,5>dO' UQYO,5>dOOQQ,5>d,5>dOOQQ-E;v-E;vOOQQ7+'r7+'rO' aQYO1G2]O$>]QYO1G2^OOQV<m,5>mOOQO-EnOOQQ,5>n,5>nO'!fQYO,5>nOOQQ-EX,5>XOOQO-E;k-E;kO!1PQ^O1G/zOOQO1G/z1G/zO'%oQWO1G/zO'%tQXO1G1kO$>]QYO1G1kO'&PQWO7+'[OOQVANA`ANA`O'&ZQWOANA`O$>]QYOANA`O'&cQWOANA`OOQVAN>OAN>OO.YQ_OAN>OO'&qQWOANAuOOQVAN@vAN@vO'&vQWOAN@vOOQVANAWANAWOOQVANAYANAYOOQVANA^ANA^O'&{QWOANA^OOQVANAiANAiO%5tQWOANAiO%5yQWOANAiO''TQWOANA`OOQVANAvANAvO.YQ_OANAvO''cQWOANAvO$>]QYOANAvOOQR<pOOQO'#HY'#HYO''vQWO'#HZOOQO,5>p,5>pOOQO-E]QYO<o,5>oOOQQ-E]QYOANAhO'(bQWO1G1rO')UQ^O1G0nO.YQ_O1G0nO'*zQWO,5;UO'+RQWO1G0nP'+WQWO'#ERP&%{Q^O'#HpOOQV7+&X7+&XO'+cQWO7+&XO&&qQWOAN@iO'+hQWOAN>OO!5oQWO,5a,5>aO'+oQWOAN@lO'+tQWOAN@lOOQS-E;s-E;sOOQVAN@lAN@lO'+|QWOAN@lOOQVANAuANAuO',UQWO1G5vO',^QWO1G2dO$>]QYO1G2dO&'|QWO,5>gOOQO,5>g,5>gOOQO-E;y-E;yO',iQWO1G5xO',qQWO1G5xO&(nQYO,5>hO',|QWO,5>hO$>]QYO,5>hOOQO-E;z-E;zO'-XQWO'#JnOOQO1G2a1G2aOOQO,5>f,5>fOOQO-E;x-E;xO&'cQYO,5iOOQO,5>i,5>iOOQO-E;{-E;{OOQQ,5>c,5>cOOQQ-E;u-E;uO'.pQWO1G2sO'/QQWO1G2rO'/]QWO1G5}O'/eQ^O,5>kOOQO'#Go'#GoOOQO,5>k,5>kO'/lQWO,5>kOOQO-E;}-E;}O$>]QYO1G2rO'/zQYO7+'xO'0VQWOANAlOOQVANAlANAlO.YQ_OANAlO'0^QWOANAvOOQS7+%x7+%xO'0eQWO7+%xO'0pQ!fO7+%xO'0}QWO7+%fO!1PQ^O7+%fO'1YQXO7+'VOOQVG26zG26zO'1eQWOG26zO'1sQWOG26zO$>]QYOG26zO'1{QWOG23jOOQVG27aG27aOOQVG26bG26bOOQVG26xG26xOOQVG27TG27TO%5tQWOG27TO'2SQWOG27bOOQVG27bG27bO.YQ_OG27bO'2ZQWOG27bOOQO1G4[1G4[OOQO7+(_7+(_OOQRANA{ANA{OOQVG27SG27SO%5tQWOG27SO&0uQWOG27SO'2fQ^O7+&YO'4PQWO7+'^O'4sQ^O7+&YO.YQ_O7+&YP.YQ_O,5;SP'6PQWO,5;SP'6UQWO,5;SOOQV<]QYO1G4SO%,nQWO'#HyO'7UQWO,5@YO'7dQWO7+(VO.YQ_O7+(VOOQO1G4T1G4TOOQO1G4V1G4VO'7nQWO1G4VO'7|QWO7+(^OOQVG27WG27WO'8XQWOG27WOOQS<e,5>eOOQO-E;w-E;wO'?rQWO<wD_DpPDvHQPPPPPPK`P! P! _PPPPP!!VP!$oP!$oPP!&oP!(rP!(w!)n!*f!*f!*f!(w!+]P!(w!.Q!.TPP!.ZP!(w!(w!(w!(wP!(w!(wP!(w!(w!.y!/dP!/dJ}J}J}PPPP!/d!.y!/sPP!$oP!0^!0a!0g!1h!1t!3t!3t!5r!7t!1t!1t!9p!;_!=O!>k!@U!Am!CS!De!1t!1tP!1tP!1t!1t!Et!1tP!Ge!1t!1tP!Ie!1tP!1t!7t!7t!1t!7t!1t!Kl!Mt!Mw!7t!1t!Mz!M}!M}!M}!NR!$oP!$oP!$oP! P! PP!N]! P! PP!Ni# }! PP! PP#!^##c##k#$Z#$_#$e#$e#$mP#&s#&s#&y#'o#'{! PP! PP#(]#(l! PP! PPP#(x#)W#)d#)|#)^! P! PP! P! P! PP#*S#*S#*Y#*`#*S#*S! P! PP#*m#*v#+Q#+Q#,x#.l#.x#.x#.{#.{5a5a5a5a5a5a5a5aP5a#/O#/U#/p#1{#2R#2b#6^#6d#6j#6|#7W#8w#9R#9b#9h#9n#9x#:S#:Y#:g#:m#:s#:}#;]#;g#=u#>R#>`#>f#>n#>u#?PPPPPPPP#?V#BaP#F^#Jx#Ls#Nr$&^P$&aPPP$)_$)h$)z$/U$1d$1m$3fP!(w$4`$7r$:i$>T$>^$>c$>fPPP$>i$A`$A|P$BaPPPPPPPPPP$BvP$EU$EX$E[$Eb$Ee$Eh$Ek$En$Et$HO$HR$HU$HX$H[$H_$Hb$He$Hh$Hk$Hn$Jt$Jw$Jz#*S$KW$K^$Ka$Kd$Kh$Kl$Ko$KrQ!tPT'V!s'Wi!SOlm!P!T$T$W$y%b)U*f/gQ'i#QR,n'l(OSOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!q!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%X%_%b&U&Y&[&b&u&z&|'P'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n+z,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1P1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:gS(z$v-oQ*p&eQ*t&hQ-k(yQ-y)ZW0Z+Q0Y4Z7UR4Y0[&w!RObfgilmop!O!P!T!Y!Z![!_!`!c!p#Q#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r$y%_%b&U&Y&[&b&u'l'}(W(Y(b(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,s,z-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f#r]Ofgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hb#[b#Q$y'l(b)S)U*Z-t!h$bo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m$b%k!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g!W:y!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR:|%n$_%u!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g$e%l!Q!n$O$u%n%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g'hZOY[fgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r%_%b%i%j&U&Y&[&b&u'a'}(W(Y(d(e(f(j(o(p(r(|)i)p)q*f*i*k*l+Z+n,s,z-R-T-g-m.i.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:`:a:e:f:g:t:u:x$^%l!Q!n$O$u%n%o%p%q%y%{&P&p&r(q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ&j!hQ&k!iQ&l!jQ&m!kQ&s!oQ)[%QQ)]%RQ)^%SQ)_%TQ)b%WQ+`&oS,R']1ZQ.W)`S/r*u4TR4n0s+yTOY[bfgilmop!O!P!Q!T!Y!Z![!_!`!c!n!p!q!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$O$T$W$`$a$e$g$h$q$r$u$y%X%_%b%i%j%n%o%p%q%y%{&P&U&Y&[&b&o&p&r&u&z&|'P']'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(q(r(|)S)U)i)p)q)s)x)y*O*P*R*V*Z*[*^*e*f*i*k*l*n*w*x+U+V+Z+h+n+o+z+},q,s,z-R-T-g-i-m-t-v.U.`.i.p.t.x.y.}/Z/[/^/b/d/g/{/}0`0e0g0m0r0w0}1O1P1Y1Z1h1r1y1|2a2h2j2m2s2v3V3_3a3f3h3k3u3{3|4R4U4W4_4c4e4h4t4v4|5[5`5d5g5t5v6R6Y6]6a6p6v6x7S7^7c7g7m7r7{8W8X8g8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:`:a:e:f:g:t:u:xQ'[!xQ'h#PQ)l%gU)r%m*T*WR.f)kQ,T']R5P1Z#t%s!Q!n$O$u%p%q&P&p&r(q)x)y*O*R*V*[*^*e*n*w+V+h+o+}-i-v.U.`.t.x.y/Z/[/{/}0`0r0w1O1Y1y2a2h2j2m2v3V3u3{3|4U4e4t5`5d5v6R6Y6p6v6x7c7r8gQ)x%oQ+_&oQ,U']n,^'b'c'd,c,f,h,l/m/n1_3n3q5T5U7kS.q)s2sQ/O*PQ/Q*SQ/q*uS0Q*x4RQ0a+U[0o+Z.j0g4h5y7^Q2v.pS4d0e2rQ4m0sQ5Q1ZQ6T3RQ6z4PQ7O4TQ7X4_R9Y8h&jVOfgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u']'}(W(Y(b(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1Z1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fU&g!g%P%[o,^'b'c'd,c,f,h,l/m/n1_3n3q5T5U7k$nsOfgilm!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y'}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9z9{:O:P:Q:R:S:T:U:V:W:X:Y:eS$tp9xS&O!W#bS&Q!X#cQ&`!bQ*_&RQ*a&VS*d&[:fQ*h&^Q,T']Q-j(wQ/i*jQ0p+[S2f.X0qQ3]/_Q3^/`Q3g/hQ3i/kQ5P1ZU5b2R2g4lU7o5c5e5rQ8]6dS8u7p7qS9_8v8wR9i9`i{Ob!O!P!T$y%_%b)S)U)i-thxOb!O!P!T$y%_%b)S)U)i-tW/v*v/t3w6qQ/}*wW0[+Q0Y4Z7UQ3{/{Q6x3|R8g6v!h$do!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ&d!dQ&f!fQ&n!mW&x!q%X&|1PQ'S!rQ)X$}Q)Y%OQ)a%VU)d%Y'T'UQ*s&hS+s&z'PS-Y(k1sQ-u)WQ-x)ZS.a)e)fS0x+c/sQ1S+zQ1W+{S1v-_-`Q2k.bQ3s/pQ5]1xR5h2V${sOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$zsOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR3]/_V&T!Y!`*i!i$lo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m!k$^o!c!p$e$g$h$q$r&U&b&u(b(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m!i$co!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m&e^Ofgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u'}(W(Y(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR(l$fQ-[(kR5Y1sQ(S#|S({$v-oS-Z(k1sQ-l(yW/u*v/t3w6qS1w-_-`Q3v/vR5^1xQ'e#Or,e'b'c'd'j'p)u,c,f,h,l/m/n1_3n3q5U6fR,o'mk,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ'f#Or,e'b'c'd'j'p)u,c,f,h,l/m/n1_3n3q5U6fR,p'mR*g&]X/c*f/d/g3f!}aOb!O!P!T#z$v$y%_%b'}(y)S)U)i)s*f*v*w+Q+Z,s-o-t.j/b/d/g/t/{0Y0g1h2s3f3w3|4Z4h5y6a6q6v7U7^Q3`/aQ6_3bQ8Y6`R9V8Z${rOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f#nfOfglmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h!T9u!Y!_!`*i*l/^3h9u9v9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:e:f#rfOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h!X9u!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$srOfglmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:e:f#U#oh#d$P$Q$V$s%^&W&X'q't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b}:P&S&]/k3[6d:[:]:c:d:h:j:k:l:m:n:o:p:q:r:v:w:{#W#ph#d$P$Q$V$s%^&W&X'q'r't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b!P:Q&S&]/k3[6d:[:]:c:d:h:i:j:k:l:m:n:o:p:q:r:v:w:{#S#qh#d$P$Q$V$s%^&W&X'q'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b{:R&S&]/k3[6d:[:]:c:d:h:k:l:m:n:o:p:q:r:v:w:{#Q#rh#d$P$Q$V$s%^&W&X'q'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9by:S&S&]/k3[6d:[:]:c:d:h:l:m:n:o:p:q:r:v:w:{#O#sh#d$P$Q$V$s%^&W&X'q'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bw:T&S&]/k3[6d:[:]:c:d:h:m:n:o:p:q:r:v:w:{!|#th#d$P$Q$V$s%^&W&X'q'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bu:U&S&]/k3[6d:[:]:c:d:h:n:o:p:q:r:v:w:{!x#vh#d$P$Q$V$s%^&W&X'q'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bq:W&S&]/k3[6d:[:]:c:d:h:p:q:r:v:w:{!v#wh#d$P$Q$V$s%^&W&X'q'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bo:X&S&]/k3[6d:[:]:c:d:h:q:r:v:w:{$]#{h#`#d$P$Q$V$s%^&S&W&X&]'q'r's't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n/k0z1i1l1}3P3[4w5V5a6^6d6e7R7e7h7s7y8j8q8{9[9b:[:]:c:d:h:i:j:k:l:m:n:o:p:q:r:v:w:{${jOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$v!aOfgilmp!O!P!T!Y!Z!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ&Y![Q&Z!]R:e9{#rpOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hQ&[!^!W9x!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR:f:zR$moR-f(rR$wqT(}$v-oQ/f*fS3d/d/gR6c3fQ3m/mQ3p/nQ6i3nR6l3qQ$zwQ)V${Q*q&fQ+f&qQ+i&sQ-w)YW.Z)b+j+k+lS/X*]+gW2b.W.[.].^U3W/Y/]0yU5o2c2d2eS6W3X3ZS7w5p5qS8Q6V6XQ8y7xS8}8R8SR9c9O^|O!O!P!T%_%b)iX)R$y)S)U-tQ&r!nQ*^&PQ*|&jQ+P&kQ+T&lQ+W&mQ+]&nQ+l&sQ-})[Q.Q)]Q.T)^Q.V)_Q.Y)aQ.^)bQ2S-uQ2e.WR4U0VU+a&o*u4TR4o0sQ+Y&mQ+k&sS.])b+l^0v+_+`/q/r4m4n7OS2d.W.^S4Q0R0SR5q2eS0R*x4RQ0a+UR7X4_U+d&o*u4TR4p0sQ*z&jQ+O&kQ+S&lQ+g&qQ+j&sS-{)[*|S.P)]+PS.S)^+TU.[)b+k+lQ/Y*]Q0X*{Q0q+[Q2X-|Q2Y-}Q2].QQ2_.TU2c.W.].^Q2g.XS3Z/]0yS5c2R4lQ5j2ZS5p2d2eQ6X3XS7q5e5rQ7x5qQ8R6VQ8v7pQ9O8SR9`8wQ0T*xR6|4RQ*y&jQ*}&kU-z)[*z*|U.O)]+O+PS2W-{-}S2[.P.QQ4X0ZQ5i2YQ5k2]R7T4YQ/w*vQ3t/tQ6r3wR8d6qQ*{&jS-|)[*|Q2Z-}Q4X0ZR7T4YQ+R&lU.R)^+S+TS2^.S.TR5l2_Q0]+QQ4V0YQ7V4ZR8l7UQ+[&nS.X)a+]S2R-u.YR5e2SQ0i+ZQ4f0gQ7`4hR8m7^Q.m)sQ0i+ZQ2p.jQ4f0gQ5|2sQ7`4hQ7}5yR8m7^Q0i+ZR4f0gX'O!q%X&|1PX&{!q%X&|1PW'O!q%X&|1PS+u&z'PR1U+z_|O!O!P!T%_%b)iQ%a!PS)h%_%bR.d)i$^%u!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ*U%yR*X%{$c%n!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gW)t%m%x*T*WQ.e)jR2{.vR.m)sR5|2sQ'W!sR,O'WQ!TOQ$TlQ$WmQ%b!P[%|!T$T$W%b)U/gQ)U$yR/g*f$b%i!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g[)n%i)p.i:`:t:xQ)p%jQ.i)qQ:`%nQ:t:aR:x:uQ!vUR'Y!vS!OO!TU%]!O%_)iQ%_!PR)i%b#rYOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hh!yY!|#U$`'a'n(d,q-R9s9|:gQ!|[b#Ub#Q$y'l(b)S)U*Z-t!h$`o!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ'a!}Q'n#ZQ(d$aQ,q'oQ-R(e!W9s!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ9|9tR:g9}Q-U(gR1p-UQ1t-[R5Z1tQ,c'bQ,f'cQ,h'dW1`,c,f,h5UR5U1_Q/d*fS3c/d3fR3f/gfbO!O!P!T$y%_%b)S)U)i-tp#Wb'}(y.j/b/t/{0Y0g1h5y6a6q6v7U7^Q'}#zS(y$v-oQ.j)sW/b*f/d/g3fQ/t*vQ/{*wQ0Y+QQ0g+ZQ1h,sQ5y2sQ6q3wQ6v3|Q7U4ZR7^4hQ,t(OQ1g,rT1j,t1gS(X$Q([Q(^$VU,x(X(^,}R,}(`Q(s$mR-h(sQ-p)OR2P-pQ3n/mQ3q/nT6j3n3qQ)S$yS-r)S-tR-t)UQ4`0aR7Y4``0t+^+_+`+a+d/q/r7OR4q0tQ8i6zR9Z8iQ4S0TR6}4SQ3x/wQ6n3tT6s3x6nQ3}/|Q6t3zU6y3}6t8eR8e6uQ4[0]Q7Q4VT7W4[7QhzOb!O!P!T$y%_%b)S)U)i-tQ$|xW%Zz$|%f)v$b%f!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR)v%nS4i0i0nS7]4f4gT7b4i7]W&z!q%X&|1PS+r&z+zR+z'PQ1Q+wR4z1QU1[,S,T,UR5R1[S3S/Q7OR6U3SQ2t.mQ5x2pT5}2t5xQ.z)zR3O.z^_O!O!P!T%_%b)iY#Xb$y)S)U-t$l#_fgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!h$io!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mS'j#Q'lQ-P(bR/V*Z&v!RObfgilmop!O!P!T!Y!Z![!_!`!c!p#Q#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r$y%_%b&U&Y&[&b&u'l'}(W(Y(b(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,s,z-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f[!{Y[#U#Z9s9tW&{!q%X&|1P['`!|!}'n'o9|9}S(c$`$aS+t&z'PU,X'a,q:gS-Q(d(eQ1T+zR1n-RS%t!Q&oQ&q!nQ(V$OQ(w$uS)w%o.pQ)z%pQ)}%qS*]&P&rQ+e&pQ,S']Q-d(qQ.l)sU.w)x)y2vS/O*O*PQ/P*RQ/T*VQ/W*[Q/]*^Q/`*eQ/l*nQ/|*wS0S*x4RQ0a+UQ0c+VQ0y+hQ0{+oQ1X+}Q1{-iQ2T-vQ2`.UQ2i.`Q2z.tQ2|.xQ2}.yQ3X/ZQ3Y/[S3z/{/}Q4^0`Q4l0rQ4s0wQ4x1OQ4}1YQ5O1ZQ5_1yQ5n2aQ5r2hQ5u2jQ5w2mQ5{2sQ6V3VQ6o3uQ6u3{Q6w3|Q7P4UQ7X4_Q7[4eQ7d4tQ7n5`Q7p5dQ7|5vQ8P6RQ8S6YQ8c6pS8f6v6xQ8o7cQ8w7rR9X8g$^%m!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ)j%nQ*T%yR*W%{$y%h!Q!n$O$u%i%j%n%o%p%q%y%{&P&o&p&r'](q)p)q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.i.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g:`:a:t:u:x'pWOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%_%b&U&Y&[&b&u'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:g$x%g!Q!n$O$u%i%j%n%o%p%q%y%{&P&o&p&r'](q)p)q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.i.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g:`:a:t:u:x_&y!q%X&z&|'P+z1PR,V']$zrOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!j$]o!c!p$e$g$h$q$r&U&b&u(b(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ,T']R5P1Z_}O!O!P!T%_%b)i^|O!O!P!T%_%b)iQ#YbX)R$y)S)U-tbhO!O!T3_6]8W8X9U9hS#`f9uQ#dgQ$PiQ$QlQ$VmQ$spW%^!P%_%b)iU&S!Y!`*iQ&W!ZQ&X![Q&]!_Q'q#eQ'r#oS's#p:QQ't#qQ'u#rQ'v#sQ'w#tQ'x#uQ'y#vQ'z#wQ'{#xQ'|#yQ(O#zQ(U#}Q([$TQ(`$WQ*b&YQ*c&[Q,r'}Q,w(WQ,y(YQ-n(|Q/k*lQ0z+nQ1i,sQ1l,zQ1}-mQ3P.}Q3[/^Q4w0}Q5V1hQ5a1|Q6^3aQ6d3hQ6e3kQ7R4WQ7e4vQ7h4|Q7s5gQ7y5tQ8j7SQ8q7gQ8{7{Q9[8kQ9b8|Q:[9wQ:]9xQ:c9zQ:d9{Q:h:OQ:i:PQ:j:RQ:k:SQ:l:TQ:m:UQ:n:VQ:o:WQ:p:XQ:q:YQ:r:ZQ:v:eQ:w:fR:{9v^tO!O!P!T%_%b)i$`#afgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3a3h3k4W4v4|5g5t7S7g7{8k8|9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ6[3_Q8V6]Q9R8WQ9T8XQ9g9UR9m9hQ&V!YQ&^!`R/h*iQ$joQ&a!cQ&t!pU(g$e$g(jS(n$h0eQ(u$qQ(v$rQ*`&UQ*m&bQ+p&uQ-S(fS-b(o4cQ-c(pQ-e(rW/a*f/d/g3fQ/j*kW0f+Z0g4h7^Q1o-TQ1z-gQ3b/bQ4k0mQ5X1rQ7l5[Q8Z6aR8t7m!h$_o!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mR-P(b'qXOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%_%b&U&Y&[&b&u'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:g$zqOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!i$fo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m&d^Ofgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u'}(W(Y(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f[!zY[$`$a9s9t['_!|!}(d(e9|9}W)o%i%j:`:aU,W'a-R:gW.h)p)q:t:uT2o.i:xQ(i$eQ(m$gR-W(jV(h$e$g(jR-^(kR-](k$znOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!i$ko!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mS'g#O'pj,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ,m'jQ.u)uR8_6f`,b'b'c'd,c,f,h1_5UQ1e,lX3l/m/n3n3qj,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ7j5TR8s7k^uO!O!P!T%_%b)i$`#afgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3a3h3k4W4v4|5g5t7S7g7{8k8|9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ6Z3_Q8U6]Q9Q8WQ9S8XQ9f9UR9l9hR(Q#zR(P#zQ$SlR(]$TR$ooR$noR)Q$vR)P$vQ)O$vR2O-ohwOb!O!P!T$y%_%b)S)U)i-t$l!lz!Q!n$O$u$|%f%n%o%p%q%y%{&P&o&p&r'](q)s)v)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR${xR0b+UR0W*xR0U*xR6{4PR/y*vR/x*vR0P*wR0O*wR0_+QR0^+Q%XyObxz!O!P!Q!T!n$O$u$y$|%_%b%f%n%o%p%q%y%{&P&o&p&r'](q)S)U)i)s)v)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-t-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR0k+ZR0j+ZQ'R!qQ)c%XQ+w&|R4y1PX'Q!q%X&|1PR+y&|R+x&|T/S*S4TT/R*S4TR.o)sR.n)sR){%p",nodeNames:"⚠ | < > RawString Float LineComment BlockComment SourceFile ] InnerAttribute ! [ MetaItem self Metavariable super crate Identifier ScopedIdentifier :: QualifiedScope AbstractType impl SelfType MetaType TypeIdentifier ScopedTypeIdentifier ScopeIdentifier TypeArgList TypeBinding = Lifetime String Escape Char Boolean Integer } { Block ; ConstItem Vis pub ( in ) const BoundIdentifier : UnsafeBlock unsafe AsyncBlock async move IfExpression if LetDeclaration let LiteralPattern ArithOp MetaPattern SelfPattern ScopedIdentifier TuplePattern ScopedTypeIdentifier , StructPattern FieldPatternList FieldPattern ref mut FieldIdentifier .. RefPattern SlicePattern CapturedPattern ReferencePattern & MutPattern RangePattern ... OrPattern MacroPattern ParenthesizedTokens TokenBinding Identifier TokenRepetition ArithOp BitOp LogicOp UpdateOp CompareOp -> => ArithOp BracketedTokens BracedTokens _ else MatchExpression match MatchBlock MatchArm Attribute Guard UnaryExpression ArithOp DerefOp LogicOp ReferenceExpression TryExpression BinaryExpression ArithOp ArithOp BitOp BitOp BitOp BitOp LogicOp LogicOp AssignmentExpression TypeCastExpression as ReturnExpression return RangeExpression CallExpression ArgList AwaitExpression await FieldExpression GenericFunction BreakExpression break LoopLabel ContinueExpression continue IndexExpression ArrayExpression TupleExpression MacroInvocation UnitExpression ClosureExpression ParamList Parameter Parameter ParenthesizedExpression StructExpression FieldInitializerList ShorthandFieldInitializer FieldInitializer BaseFieldInitializer MatchArm WhileExpression while LoopExpression loop ForExpression for MacroInvocation MacroDefinition macro_rules MacroRule EmptyStatement ModItem mod DeclarationList AttributeItem ForeignModItem extern StructItem struct TypeParamList ConstrainedTypeParameter TraitBounds HigherRankedTraitBound RemovedTraitBound OptionalTypeParameter ConstParameter WhereClause where LifetimeClause TypeBoundClause FieldDeclarationList FieldDeclaration OrderedFieldDeclarationList UnionItem union EnumItem enum EnumVariantList EnumVariant TypeItem type FunctionItem default fn ParamList Parameter SelfParameter VariadicParameter VariadicParameter ImplItem TraitItem trait AssociatedType LetDeclaration UseDeclaration use ScopedIdentifier UseAsClause ScopedIdentifier UseList ScopedUseList UseWildcard ExternCrateDeclaration StaticItem static ExpressionStatement ExpressionStatement GenericType FunctionType ForLifetimes ParamList VariadicParameter Parameter VariadicParameter Parameter ReferenceType PointerType TupleType UnitType ArrayType MacroInvocation EmptyType DynamicType dyn BoundedType",maxTerm:359,nodeProps:[["group",-42,4,5,14,15,16,17,18,19,33,35,36,37,40,51,53,56,101,107,111,112,113,122,123,125,127,128,130,132,133,134,137,139,140,141,142,143,144,148,149,155,157,159,"Expression",-16,22,24,25,26,27,222,223,230,231,232,233,234,235,236,237,239,"Type",-20,42,161,162,165,166,169,170,172,188,190,194,196,204,205,207,208,209,217,218,220,"Statement",-17,49,60,62,63,64,65,68,74,75,76,77,78,80,81,83,84,99,"Pattern"],["openedBy",9,"[",38,"{",47,"("],["closedBy",12,"]",39,"}",45,")"]],propSources:[y],skippedNodes:[0,6,7,240],repeatNodeCount:32,tokenData:"#?|_R!VOX$hXY1_YZ2ZZ]$h]^1_^p$hpq1_qr2srs4qst5Ztu6Vuv9lvw;jwx=nxy!!ayz!#]z{!$X{|!&R|}!'T}!O!(P!O!P!*Q!P!Q!-|!Q!R!6X!R![!7|![!]!Jw!]!^!Lu!^!_!Mq!_!`# x!`!a##y!a!b#&Q!b!c#&|!c!}#'x!}#O#)o#O#P#*k#P#Q#1b#Q#R#2^#R#S#'x#S#T$h#T#U#'x#U#V#3`#V#f#'x#f#g#6s#g#o#'x#o#p#y!X!Y$h!Y!Z!<}!Z#O$h#O#P%x#P#g$h#g#h!?y#h~$h_!;O_'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!S$h!S!T!;}!T!W$h!W!X!<}!X#O$h#O#P%x#P~$h_!Q]'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!S$h!S!T!<}!T#O$h#O#P%x#P~$h_!?Q]'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!U$h!U!V!<}!V#O$h#O#P%x#P~$h_!@Q]'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P#]$h#]#^!@y#^~$h_!AQ]'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P#n$h#n#o!Ay#o~$h_!BQ]'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P#X$h#X#Y!<}#Y~$h_!CQ_'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!R!DP!R!S!DP!S#O$h#O#P%x#P#R$h#R#S!DP#S~$h_!DYcuX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!R!DP!R!S!DP!S#O$h#O#P%x#P#R$h#R#S!DP#S#]$h#]#^!9_#^#i$h#i#j!9_#j~$h_!El^'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!Y!Fh!Y#O$h#O#P%x#P#R$h#R#S!Fh#S~$h_!FqbuX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!Y!Fh!Y#O$h#O#P%x#P#R$h#R#S!Fh#S#]$h#]#^!9_#^#i$h#i#j!9_#j~$h_!HQb'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q![!IY![!c$h!c!i!IY!i#O$h#O#P%x#P#R$h#R#S!IY#S#T$h#T#Z!IY#Z~$h_!IcfuX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q![!IY![!c$h!c!i!IY!i#O$h#O#P%x#P#R$h#R#S!IY#S#T$h#T#Z!IY#Z#]$h#]#^!9_#^#i$h#i#j!9_#j~$h_!KQ]!SX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q![$h![!]!Ky!]#O$h#O#P%x#P~$h_!LSZdX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_!MOZyX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_!Mz^#PX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!^$h!^!_!Nv!_!`3u!`#O$h#O#P%x#P~$h_# P]'yX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!_$h!_!`:n!`#O$h#O#P%x#P~$h_#!R^oX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!_$h!_!`3u!`!a#!}!a#O$h#O#P%x#P~$h_##WZ#RX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_#$S^#PX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!_$h!_!`3u!`!a#%O!a#O$h#O#P%x#P~$h_#%X]'zX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!_$h!_!`:n!`#O$h#O#P%x#P~$h_#&ZZ(RX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$hV#'VZ'pP'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_#(Th'_Q'OS!yW'TPOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q![#'x![!c$h!c!}#'x!}#O$h#O#P%x#P#R$h#R#S#'x#S#T$h#T#o#'x#o${$h${$|#'x$|4w$h4w5b#'x5b5i$h5i6S#'x6S~$h_#)xZ[X'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$hU#*pX'OSOz#+]z{#+s{!P#+]!P!Q#,X!Q#i#+]#i#j#,j#j#l#+]#l#m#.Y#m~#+]U#+dTrQ'OSOz%xz{&^{!P%x!P!Q'S!Q~%xU#+xTrQOz&pz{&^{!P&p!P!Q({!Q~&pU#,^SrQOz&p{!P&p!P!Q'c!Q~&pU#,o['OSOz%xz{&^{!P%x!P!Q'S!Q![#-e![!c%x!c!i#-e!i#T%x#T#Z#-e#Z#o%x#o#p#/r#p~%xU#-jY'OSOz%xz{&^{!P%x!P!Q'S!Q![#.Y![!c%x!c!i#.Y!i#T%x#T#Z#.Y#Z~%xU#._Y'OSOz%xz{&^{!P%x!P!Q'S!Q![#.}![!c%x!c!i#.}!i#T%x#T#Z#.}#Z~%xU#/SY'OSOz%xz{&^{!P%x!P!Q'S!Q![#+]![!c%x!c!i#+]!i#T%x#T#Z#+]#Z~%xU#/wY'OSOz%xz{&^{!P%x!P!Q'S!Q![#0g![!c%x!c!i#0g!i#T%x#T#Z#0g#Z~%xU#0l['OSOz%xz{&^{!P%x!P!Q'S!Q![#0g![!c%x!c!i#0g!i#T%x#T#Z#0g#Z#q%x#q#r#+]#r~%x_#1kZXX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_#2g]'{X'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!_$h!_!`:n!`#O$h#O#P%x#P~$h_#3kj'_Q'OS!yW'TPOY$hYZ%bZr$hrs#5]sw$hwx#5sxz$hz{)Q{!P$h!P!Q*p!Q![#'x![!c$h!c!}#'x!}#O$h#O#P%x#P#R$h#R#S#'x#S#T$h#T#o#'x#o${$h${$|#'x$|4w$h4w5b#'x5b5i$h5i6S#'x6S~$h]#5dT'OS'^XOz%xz{&^{!P%x!P!Q'S!Q~%x_#5z]'_Q'OSOY?dYZA`Zr?drsBdsw?dwx@dxz?dz{CO{!P?d!P!QDv!Q#O?d#O#PId#P~?d_#7Oi'_Q'OS!yW'TPOY$hYZ%bZr$hrs%xst#8mtz$hz{)Q{!P$h!P!Q*p!Q![#'x![!c$h!c!}#'x!}#O$h#O#P%x#P#R$h#R#S#'x#S#T$h#T#o#'x#o${$h${$|#'x$|4w$h4w5b#'x5b5i$h5i6S#'x6S~$hV#8tg'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!c$h!c!}#:]!}#O$h#O#P%x#P#R$h#R#S#:]#S#T$h#T#o#:]#o${$h${$|#:]$|4w$h4w5b#:]5b5i$h5i6S#:]6S~$hV#:fh'_Q'OS'TPOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q![#:]![!c$h!c!}#:]!}#O$h#O#P%x#P#R$h#R#S#:]#S#T$h#T#o#:]#o${$h${$|#:]$|4w$h4w5b#:]5b5i$h5i6S#:]6S~$h_#U#q~$h_#>_Z'|X'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_#?ZZvX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h",tokenizers:[V,T,R,0,1,2,3],topRules:{SourceFile:[0,8]},specialized:[{term:281,get:O=>c[O]||-1}],tokenPrec:15596});var f=P(4452);const l=f.LRLanguage.define({name:"rust",parser:d.configure({props:[f.indentNodeProp.add({IfExpression:(0,f.continuedIndent)({except:/^\s*({|else\b)/}),"String BlockComment":()=>null,AttributeItem:O=>O.continue(),"Statement MatchArm":(0,f.continuedIndent)()}),f.foldNodeProp.add((O=>{if(/(Block|edTokens|List)$/.test(O.name))return f.foldInside;if(O.name=="BlockComment")return O=>({from:O.from+2,to:O.to-2});return undefined}))]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:\{|\})$/,closeBrackets:{stringPrefixes:["b","r","br"]}}});function U(){return new f.LanguageSupport(l)}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7260.b47dcaccbe7991104e8a.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7260.b47dcaccbe7991104e8a.js new file mode 100644 index 0000000000000000000000000000000000000000..bd723b1f260bf60d1731af4ffc3a6fd8880afb8a --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7260.b47dcaccbe7991104e8a.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7260],{7260:(e,n,t)=>{t.r(n);t.d(n,{octave:()=>k});function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var a=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]");var i=new RegExp("^[\\(\\[\\{\\},:=;\\.]");var o=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))");var u=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))");var c=new RegExp("^((>>=)|(<<=))");var s=new RegExp("^[\\]\\)]");var f=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");var m=r(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]);var l=r(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function p(e,n){if(!e.sol()&&e.peek()==="'"){e.next();n.tokenize=d;return"operator"}n.tokenize=d;return d(e,n)}function h(e,n){if(e.match(/^.*%}/)){n.tokenize=d;return"comment"}e.skipToEnd();return"comment"}function d(e,n){if(e.eatSpace())return null;if(e.match("%{")){n.tokenize=h;e.skipToEnd();return"comment"}if(e.match(/^[%#]/)){e.skipToEnd();return"comment"}if(e.match(/^[0-9\.+-]/,false)){if(e.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/)){e.tokenize=d;return"number"}if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)){return"number"}if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/)){return"number"}}if(e.match(r(["nan","NaN","inf","Inf"]))){return"number"}var t=e.match(/^"(?:[^"]|"")*("|$)/)||e.match(/^'(?:[^']|'')*('|$)/);if(t){return t[1]?"string":"error"}if(e.match(l)){return"keyword"}if(e.match(m)){return"builtin"}if(e.match(f)){return"variable"}if(e.match(a)||e.match(o)){return"operator"}if(e.match(i)||e.match(u)||e.match(c)){return null}if(e.match(s)){n.tokenize=p;return null}e.next();return"error"}const k={name:"octave",startState:function(){return{tokenize:d}},token:function(e,n){var t=n.tokenize(e,n);if(t==="number"||t==="variable"){n.tokenize=p}return t},languageData:{commentTokens:{line:"%"}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/72bc573386dd1d48c5bb.woff b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/72bc573386dd1d48c5bb.woff new file mode 100644 index 0000000000000000000000000000000000000000..9dcf84c4b62b5ce5b8f1953d5482d8431aff3eb1 Binary files /dev/null and b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/72bc573386dd1d48c5bb.woff differ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/731.82a7b980b5b7f4b7a14f.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/731.82a7b980b5b7f4b7a14f.js new file mode 100644 index 0000000000000000000000000000000000000000..b15d976d547ae021e9905161da2764e1d129cda5 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/731.82a7b980b5b7f4b7a14f.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[731],{30731:(e,t,a)=>{a.r(t);a.d(t,{yaml:()=>n});var i=["true","false","on","off","yes","no"];var r=new RegExp("\\b(("+i.join(")|(")+"))$","i");const n={name:"yaml",token:function(e,t){var a=e.peek();var i=t.escaped;t.escaped=false;if(a=="#"&&(e.pos==0||/\s/.test(e.string.charAt(e.pos-1)))){e.skipToEnd();return"comment"}if(e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(t.literal&&e.indentation()>t.keyCol){e.skipToEnd();return"string"}else if(t.literal){t.literal=false}if(e.sol()){t.keyCol=0;t.pair=false;t.pairStart=false;if(e.match("---")){return"def"}if(e.match("...")){return"def"}if(e.match(/^\s*-\s+/)){return"meta"}}if(e.match(/^(\{|\}|\[|\])/)){if(a=="{")t.inlinePairs++;else if(a=="}")t.inlinePairs--;else if(a=="[")t.inlineList++;else t.inlineList--;return"meta"}if(t.inlineList>0&&!i&&a==","){e.next();return"meta"}if(t.inlinePairs>0&&!i&&a==","){t.keyCol=0;t.pair=false;t.pairStart=false;e.next();return"meta"}if(t.pairStart){if(e.match(/^\s*(\||\>)\s*/)){t.literal=true;return"meta"}if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i)){return"variable"}if(t.inlinePairs==0&&e.match(/^\s*-?[0-9\.\,]+\s?$/)){return"number"}if(t.inlinePairs>0&&e.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/)){return"number"}if(e.match(r)){return"keyword"}}if(!t.pair&&e.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)){t.pair=true;t.keyCol=e.indentation();return"atom"}if(t.pair&&e.match(/^:\s*/)){t.pairStart=true;return"meta"}t.pairStart=false;t.escaped=a=="\\";e.next();return null},startState:function(){return{pair:false,pairStart:false,keyCol:0,inlinePairs:0,inlineList:0,literal:false,escaped:false}},languageData:{commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7445.7c793c8e1720f8ec4f85.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7445.7c793c8e1720f8ec4f85.js new file mode 100644 index 0000000000000000000000000000000000000000..4b96d5d871b9a818dc6f85c5764a4d1a3542a51a --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7445.7c793c8e1720f8ec4f85.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7445],{57445:(e,t,n)=>{n.r(t);n.d(t,{oz:()=>g});function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var a=/[\^@!\|<>#~\.\*\-\+\\/,=]/;var i=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/;var u=/(:::)|(\.\.\.)|(=<:)|(>=:)/;var o=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"];var c=["end"];var f=r(["true","false","nil","unit"]);var s=r(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]);var l=r(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]);var h=r(o);var d=r(c);function m(e,t){if(e.eatSpace()){return null}if(e.match(/[{}]/)){return"bracket"}if(e.match("[]")){return"keyword"}if(e.match(u)||e.match(i)){return"operator"}if(e.match(f)){return"atom"}var n=e.match(l);if(n){if(!t.doInCurrentLine)t.currentIndent++;else t.doInCurrentLine=false;if(n[0]=="proc"||n[0]=="fun")t.tokenize=z;else if(n[0]=="class")t.tokenize=p;else if(n[0]=="meth")t.tokenize=k;return"keyword"}if(e.match(h)||e.match(s)){return"keyword"}if(e.match(d)){t.currentIndent--;return"keyword"}var r=e.next();if(r=='"'||r=="'"){t.tokenize=b(r);return t.tokenize(e,t)}if(/[~\d]/.test(r)){if(r=="~"){if(!/^[0-9]/.test(e.peek()))return null;else if(e.next()=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}if(r=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number";return null}if(r=="%"){e.skipToEnd();return"comment"}else if(r=="/"){if(e.eat("*")){t.tokenize=v;return v(e,t)}}if(a.test(r)){return"operator"}e.eatWhile(/\w/);return"variable"}function p(e,t){if(e.eatSpace()){return null}e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/);t.tokenize=m;return"type"}function k(e,t){if(e.eatSpace()){return null}e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/);t.tokenize=m;return"def"}function z(e,t){if(e.eatSpace()){return null}if(!t.hasPassedFirstStage&&e.eat("{")){t.hasPassedFirstStage=true;return"bracket"}else if(t.hasPassedFirstStage){e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/);t.hasPassedFirstStage=false;t.tokenize=m;return"def"}else{t.tokenize=m;return null}}function v(e,t){var n=false,r;while(r=e.next()){if(r=="/"&&n){t.tokenize=m;break}n=r=="*"}return"comment"}function b(e){return function(t,n){var r=false,a,i=false;while((a=t.next())!=null){if(a==e&&!r){i=true;break}r=!r&&a=="\\"}if(i||!r)n.tokenize=m;return"string"}}function w(){var e=o.concat(c);return new RegExp("[\\[\\]]|("+e.join("|")+")$")}const g={name:"oz",startState:function(){return{tokenize:m,currentIndent:0,doInCurrentLine:false,hasPassedFirstStage:false}},token:function(e,t){if(e.sol())t.doInCurrentLine=0;return t.tokenize(e,t)},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");if(r.match(d)||r.match(h)||r.match(/(\[])/))return n.unit*(e.currentIndent-1);if(e.currentIndent<0)return 0;return e.currentIndent*n.unit},languageData:{indentOnInut:w(),commentTokens:{line:"%",block:{open:"/*",close:"*/"}}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7575.2e3e32236d5667bba43f.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7575.2e3e32236d5667bba43f.js new file mode 100644 index 0000000000000000000000000000000000000000..7f780b8bc9d74d95e9a347cbc71d16474d0f9d63 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7575.2e3e32236d5667bba43f.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7575],{47575:(e,t,r)=>{r.r(t);r.d(t,{julia:()=>$});function n(e,t,r){if(typeof r==="undefined")r="";if(typeof t==="undefined"){t="\\b"}return new RegExp("^"+r+"(("+e.join(")|(")+"))"+t)}var a="\\\\[0-7]{1,3}";var i="\\\\x[A-Fa-f0-9]{1,2}";var u="\\\\[abefnrtv0%?'\"\\\\]";var s="([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])";var o=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"];var f=n(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],"");var c=/^[;,()[\]{}]/;var l=/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/;var m=n([a,i,u,s],"'");var p=["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"];var h=["end","else","elseif","catch","finally"];var d=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"];var v=["true","false","nothing","NaN","Inf"];var F=n(p);var k=n(h);var b=n(d);var g=n(v);var y=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/;var _=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/;var x=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/;var A=n(o,"","@");var z=n(o,"",":");function E(e){return e.nestedArrays>0}function w(e){return e.nestedGenerators>0}function D(e,t){if(typeof t==="undefined"){t=0}if(e.scopes.length<=t){return null}return e.scopes[e.scopes.length-(t+1)]}function T(e,t){if(e.match("#=",false)){t.tokenize=P;return t.tokenize(e,t)}var r=t.leavingExpr;if(e.sol()){r=false}t.leavingExpr=false;if(r){if(e.match(/^'+/)){return"operator"}}if(e.match(/\.{4,}/)){return"error"}else if(e.match(/\.{1,3}/)){return"operator"}if(e.eatSpace()){return null}var n=e.peek();if(n==="#"){e.skipToEnd();return"comment"}if(n==="["){t.scopes.push("[");t.nestedArrays++}if(n==="("){t.scopes.push("(");t.nestedGenerators++}if(E(t)&&n==="]"){while(t.scopes.length&&D(t)!=="["){t.scopes.pop()}t.scopes.pop();t.nestedArrays--;t.leavingExpr=true}if(w(t)&&n===")"){while(t.scopes.length&&D(t)!=="("){t.scopes.pop()}t.scopes.pop();t.nestedGenerators--;t.leavingExpr=true}if(E(t)){if(t.lastToken=="end"&&e.match(":")){return"operator"}if(e.match("end")){return"number"}}var a;if(a=e.match(F,false)){t.scopes.push(a[0])}if(e.match(k,false)){t.scopes.pop()}if(e.match(/^::(?![:\$])/)){t.tokenize=C;return t.tokenize(e,t)}if(!r&&(e.match(_)||e.match(z))){return"builtin"}if(e.match(f)){return"operator"}if(e.match(/^\.?\d/,false)){var i=RegExp(/^im\b/);var u=false;if(e.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)){u=true}if(e.match(/^0x[0-9a-f_]+/i)){u=true}if(e.match(/^0b[01_]+/i)){u=true}if(e.match(/^0o[0-7_]+/i)){u=true}if(e.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)){u=true}if(e.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)){u=true}if(u){e.match(i);t.leavingExpr=true;return"number"}}if(e.match("'")){t.tokenize=j;return t.tokenize(e,t)}if(e.match(x)){t.tokenize=B(e.current());return t.tokenize(e,t)}if(e.match(y)||e.match(A)){return"meta"}if(e.match(c)){return null}if(e.match(b)){return"keyword"}if(e.match(g)){return"builtin"}var s=t.isDefinition||t.lastToken=="function"||t.lastToken=="macro"||t.lastToken=="type"||t.lastToken=="struct"||t.lastToken=="immutable";if(e.match(l)){if(s){if(e.peek()==="."){t.isDefinition=true;return"variable"}t.isDefinition=false;return"def"}t.leavingExpr=true;return"variable"}e.next();return"error"}function C(e,t){e.match(/.*?(?=[,;{}()=\s]|$)/);if(e.match("{")){t.nestedParameters++}else if(e.match("}")&&t.nestedParameters>0){t.nestedParameters--}if(t.nestedParameters>0){e.match(/.*?(?={|})/)||e.next()}else if(t.nestedParameters==0){t.tokenize=T}return"builtin"}function P(e,t){if(e.match("#=")){t.nestedComments++}if(!e.match(/.*?(?=(#=|=#))/)){e.skipToEnd()}if(e.match("=#")){t.nestedComments--;if(t.nestedComments==0)t.tokenize=T}return"comment"}function j(e,t){var r=false,n;if(e.match(m)){r=true}else if(n=e.match(/\\u([a-f0-9]{1,4})(?=')/i)){var a=parseInt(n[1],16);if(a<=55295||a>=57344){r=true;e.next()}}else if(n=e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var a=parseInt(n[1],16);if(a<=1114111){r=true;e.next()}}if(r){t.leavingExpr=true;t.tokenize=T;return"string"}if(!e.match(/^[^']+(?=')/)){e.skipToEnd()}if(e.match("'")){t.tokenize=T}return"error"}function B(e){if(e.substr(-3)==='"""'){e='"""'}else if(e.substr(-1)==='"'){e='"'}function t(t,r){if(t.eat("\\")){t.next()}else if(t.match(e)){r.tokenize=T;r.leavingExpr=true;return"string"}else{t.eat(/[`"]/)}t.eatWhile(/[^\\`"]/);return"string"}return t}const $={name:"julia",startState:function(){return{tokenize:T,scopes:[],lastToken:null,leavingExpr:false,isDefinition:false,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(e,t){var r=t.tokenize(e,t);var n=e.current();if(n&&r){t.lastToken=n}return r},indent:function(e,t,r){var n=0;if(t==="]"||t===")"||/^end\b/.test(t)||/^else/.test(t)||/^catch\b/.test(t)||/^elseif\b/.test(t)||/^finally/.test(t)){n=-1}return(e.scopes.length+n)*r.unit},languageData:{indentOnInput:/^\s*(end|else|catch|finally)\b$/,commentTokens:{line:"#",block:{open:"#=",close:"=#"}},closeBrackets:{brackets:["(","[","{",'"']},autocomplete:d.concat(v)}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7694.1cbff84dccb512476b7c.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7694.1cbff84dccb512476b7c.js new file mode 100644 index 0000000000000000000000000000000000000000..0ff28f5d07dd4433353c37d543d35433bc085dc6 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7694.1cbff84dccb512476b7c.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7694],{57694:(e,n,t)=>{t.r(n);t.d(n,{jinja2:()=>c});var a=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","do","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","set","raw","endraw","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","call","endcall","macro","endmacro","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","without","context","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","pluralize","autoescape","endautoescape"],i=/^[+\-*&%=<>!?|~^]/,r=/^[:\[\(\{]/,s=["true","false"],l=/^(\d[+\-\*\/])?\d+(\.\d+)?/;a=new RegExp("(("+a.join(")|(")+"))\\b");s=new RegExp("(("+s.join(")|(")+"))\\b");function o(e,n){var t=e.peek();if(n.incomment){if(!e.skipTo("#}")){e.skipToEnd()}else{e.eatWhile(/\#|}/);n.incomment=false}return"comment"}else if(n.intag){if(n.operator){n.operator=false;if(e.match(s)){return"atom"}if(e.match(l)){return"number"}}if(n.sign){n.sign=false;if(e.match(s)){return"atom"}if(e.match(l)){return"number"}}if(n.instring){if(t==n.instring){n.instring=false}e.next();return"string"}else if(t=="'"||t=='"'){n.instring=t;e.next();return"string"}else if(n.inbraces>0&&t==")"){e.next();n.inbraces--}else if(t=="("){e.next();n.inbraces++}else if(n.inbrackets>0&&t=="]"){e.next();n.inbrackets--}else if(t=="["){e.next();n.inbrackets++}else if(!n.lineTag&&(e.match(n.intag+"}")||e.eat("-")&&e.match(n.intag+"}"))){n.intag=false;return"tag"}else if(e.match(i)){n.operator=true;return"operator"}else if(e.match(r)){n.sign=true}else{if(e.column()==1&&n.lineTag&&e.match(a)){return"keyword"}if(e.eat(" ")||e.sol()){if(e.match(a)){return"keyword"}if(e.match(s)){return"atom"}if(e.match(l)){return"number"}if(e.sol()){e.next()}}else{e.next()}}return"variable"}else if(e.eat("{")){if(e.eat("#")){n.incomment=true;if(!e.skipTo("#}")){e.skipToEnd()}else{e.eatWhile(/\#|}/);n.incomment=false}return"comment"}else if(t=e.eat(/\{|%/)){n.intag=t;n.inbraces=0;n.inbrackets=0;if(t=="{"){n.intag="}"}e.eat("-");return"tag"}}else if(e.eat("#")){if(e.peek()=="#"){e.skipToEnd();return"comment"}else if(!e.eol()){n.intag=true;n.lineTag=true;n.inbraces=0;n.inbrackets=0;return"tag"}}e.next()}const c={name:"jinja2",startState:function(){return{tokenize:o,inbrackets:0,inbraces:0}},token:function(e,n){var t=n.tokenize(e,n);if(e.eol()&&n.lineTag&&!n.instring&&n.inbraces==0&&n.inbrackets==0){n.intag=false;n.lineTag=false}return t},languageData:{commentTokens:{block:{open:"{#",close:"#}",line:"##"}}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7769.d39df7673ee2660a9ac4.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7769.d39df7673ee2660a9ac4.js new file mode 100644 index 0000000000000000000000000000000000000000..1bd879f8e0e0a4fd182b8d5e0c425ed54e7886a5 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7769.d39df7673ee2660a9ac4.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7769],{7769:(e,t,r)=>{r.r(t);r.d(t,{idl:()=>p});function i(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var a=["a_correlate","abs","acos","adapt_hist_equal","alog","alog2","alog10","amoeba","annotate","app_user_dir","app_user_dir_query","arg_present","array_equal","array_indices","arrow","ascii_template","asin","assoc","atan","axis","axis","bandpass_filter","bandreject_filter","barplot","bar_plot","beseli","beselj","beselk","besely","beta","biginteger","bilinear","bin_date","binary_template","bindgen","binomial","bit_ffs","bit_population","blas_axpy","blk_con","boolarr","boolean","boxplot","box_cursor","breakpoint","broyden","bubbleplot","butterworth","bytarr","byte","byteorder","bytscl","c_correlate","calendar","caldat","call_external","call_function","call_method","call_procedure","canny","catch","cd","cdf","ceil","chebyshev","check_math","chisqr_cvf","chisqr_pdf","choldc","cholsol","cindgen","cir_3pnt","clipboard","close","clust_wts","cluster","cluster_tree","cmyk_convert","code_coverage","color_convert","color_exchange","color_quan","color_range_map","colorbar","colorize_sample","colormap_applicable","colormap_gradient","colormap_rotation","colortable","comfit","command_line_args","common","compile_opt","complex","complexarr","complexround","compute_mesh_normals","cond","congrid","conj","constrained_min","contour","contour","convert_coord","convol","convol_fft","coord2to3","copy_lun","correlate","cos","cosh","cpu","cramer","createboxplotdata","create_cursor","create_struct","create_view","crossp","crvlength","ct_luminance","cti_test","cursor","curvefit","cv_coord","cvttobm","cw_animate","cw_animate_getp","cw_animate_load","cw_animate_run","cw_arcball","cw_bgroup","cw_clr_index","cw_colorsel","cw_defroi","cw_field","cw_filesel","cw_form","cw_fslider","cw_light_editor","cw_light_editor_get","cw_light_editor_set","cw_orient","cw_palette_editor","cw_palette_editor_get","cw_palette_editor_set","cw_pdmenu","cw_rgbslider","cw_tmpl","cw_zoom","db_exists","dblarr","dcindgen","dcomplex","dcomplexarr","define_key","define_msgblk","define_msgblk_from_file","defroi","defsysv","delvar","dendro_plot","dendrogram","deriv","derivsig","determ","device","dfpmin","diag_matrix","dialog_dbconnect","dialog_message","dialog_pickfile","dialog_printersetup","dialog_printjob","dialog_read_image","dialog_write_image","dictionary","digital_filter","dilate","dindgen","dissolve","dist","distance_measure","dlm_load","dlm_register","doc_library","double","draw_roi","edge_dog","efont","eigenql","eigenvec","ellipse","elmhes","emboss","empty","enable_sysrtn","eof","eos","erase","erf","erfc","erfcx","erode","errorplot","errplot","estimator_filter","execute","exit","exp","expand","expand_path","expint","extract","extract_slice","f_cvf","f_pdf","factorial","fft","file_basename","file_chmod","file_copy","file_delete","file_dirname","file_expand_path","file_gunzip","file_gzip","file_info","file_lines","file_link","file_mkdir","file_move","file_poll_input","file_readlink","file_same","file_search","file_tar","file_test","file_untar","file_unzip","file_which","file_zip","filepath","findgen","finite","fix","flick","float","floor","flow3","fltarr","flush","format_axis_values","forward_function","free_lun","fstat","fulstr","funct","function","fv_test","fx_root","fz_roots","gamma","gamma_ct","gauss_cvf","gauss_pdf","gauss_smooth","gauss2dfit","gaussfit","gaussian_function","gaussint","get_drive_list","get_dxf_objects","get_kbrd","get_login_info","get_lun","get_screen_size","getenv","getwindows","greg2jul","grib","grid_input","grid_tps","grid3","griddata","gs_iter","h_eq_ct","h_eq_int","hanning","hash","hdf","hdf5","heap_free","heap_gc","heap_nosave","heap_refcount","heap_save","help","hilbert","hist_2d","hist_equal","histogram","hls","hough","hqr","hsv","i18n_multibytetoutf8","i18n_multibytetowidechar","i18n_utf8tomultibyte","i18n_widechartomultibyte","ibeta","icontour","iconvertcoord","idelete","identity","idl_base64","idl_container","idl_validname","idlexbr_assistant","idlitsys_createtool","idlunit","iellipse","igamma","igetcurrent","igetdata","igetid","igetproperty","iimage","image","image_cont","image_statistics","image_threshold","imaginary","imap","indgen","int_2d","int_3d","int_tabulated","intarr","interpol","interpolate","interval_volume","invert","ioctl","iopen","ir_filter","iplot","ipolygon","ipolyline","iputdata","iregister","ireset","iresolve","irotate","isa","isave","iscale","isetcurrent","isetproperty","ishft","isocontour","isosurface","isurface","itext","itranslate","ivector","ivolume","izoom","journal","json_parse","json_serialize","jul2greg","julday","keyword_set","krig2d","kurtosis","kw_test","l64indgen","la_choldc","la_cholmprove","la_cholsol","la_determ","la_eigenproblem","la_eigenql","la_eigenvec","la_elmhes","la_gm_linear_model","la_hqr","la_invert","la_least_square_equality","la_least_squares","la_linear_equation","la_ludc","la_lumprove","la_lusol","la_svd","la_tridc","la_trimprove","la_triql","la_trired","la_trisol","label_date","label_region","ladfit","laguerre","lambda","lambdap","lambertw","laplacian","least_squares_filter","leefilt","legend","legendre","linbcg","lindgen","linfit","linkimage","list","ll_arc_distance","lmfit","lmgr","lngamma","lnp_test","loadct","locale_get","logical_and","logical_or","logical_true","lon64arr","lonarr","long","long64","lsode","lu_complex","ludc","lumprove","lusol","m_correlate","machar","make_array","make_dll","make_rt","map","mapcontinents","mapgrid","map_2points","map_continents","map_grid","map_image","map_patch","map_proj_forward","map_proj_image","map_proj_info","map_proj_init","map_proj_inverse","map_set","matrix_multiply","matrix_power","max","md_test","mean","meanabsdev","mean_filter","median","memory","mesh_clip","mesh_decimate","mesh_issolid","mesh_merge","mesh_numtriangles","mesh_obj","mesh_smooth","mesh_surfacearea","mesh_validate","mesh_volume","message","min","min_curve_surf","mk_html_help","modifyct","moment","morph_close","morph_distance","morph_gradient","morph_hitormiss","morph_open","morph_thin","morph_tophat","multi","n_elements","n_params","n_tags","ncdf","newton","noise_hurl","noise_pick","noise_scatter","noise_slur","norm","obj_class","obj_destroy","obj_hasmethod","obj_isa","obj_new","obj_valid","objarr","on_error","on_ioerror","online_help","openr","openu","openw","oplot","oploterr","orderedhash","p_correlate","parse_url","particle_trace","path_cache","path_sep","pcomp","plot","plot3d","plot","plot_3dbox","plot_field","ploterr","plots","polar_contour","polar_surface","polyfill","polyshade","pnt_line","point_lun","polarplot","poly","poly_2d","poly_area","poly_fit","polyfillv","polygon","polyline","polywarp","popd","powell","pref_commit","pref_get","pref_set","prewitt","primes","print","printf","printd","pro","product","profile","profiler","profiles","project_vol","ps_show_fonts","psafm","pseudo","ptr_free","ptr_new","ptr_valid","ptrarr","pushd","qgrid3","qhull","qromb","qromo","qsimp","query_*","query_ascii","query_bmp","query_csv","query_dicom","query_gif","query_image","query_jpeg","query_jpeg2000","query_mrsid","query_pict","query_png","query_ppm","query_srf","query_tiff","query_video","query_wav","r_correlate","r_test","radon","randomn","randomu","ranks","rdpix","read","readf","read_ascii","read_binary","read_bmp","read_csv","read_dicom","read_gif","read_image","read_interfile","read_jpeg","read_jpeg2000","read_mrsid","read_pict","read_png","read_ppm","read_spr","read_srf","read_sylk","read_tiff","read_video","read_wav","read_wave","read_x11_bitmap","read_xwd","reads","readu","real_part","rebin","recall_commands","recon3","reduce_colors","reform","region_grow","register_cursor","regress","replicate","replicate_inplace","resolve_all","resolve_routine","restore","retall","return","reverse","rk4","roberts","rot","rotate","round","routine_filepath","routine_info","rs_test","s_test","save","savgol","scale3","scale3d","scatterplot","scatterplot3d","scope_level","scope_traceback","scope_varfetch","scope_varname","search2d","search3d","sem_create","sem_delete","sem_lock","sem_release","set_plot","set_shading","setenv","sfit","shade_surf","shade_surf_irr","shade_volume","shift","shift_diff","shmdebug","shmmap","shmunmap","shmvar","show3","showfont","signum","simplex","sin","sindgen","sinh","size","skewness","skip_lun","slicer3","slide_image","smooth","sobel","socket","sort","spawn","sph_4pnt","sph_scat","spher_harm","spl_init","spl_interp","spline","spline_p","sprsab","sprsax","sprsin","sprstp","sqrt","standardize","stddev","stop","strarr","strcmp","strcompress","streamline","streamline","stregex","stretch","string","strjoin","strlen","strlowcase","strmatch","strmessage","strmid","strpos","strput","strsplit","strtrim","struct_assign","struct_hide","strupcase","surface","surface","surfr","svdc","svdfit","svsol","swap_endian","swap_endian_inplace","symbol","systime","t_cvf","t_pdf","t3d","tag_names","tan","tanh","tek_color","temporary","terminal_size","tetra_clip","tetra_surface","tetra_volume","text","thin","thread","threed","tic","time_test2","timegen","timer","timestamp","timestamptovalues","tm_test","toc","total","trace","transpose","tri_surf","triangulate","trigrid","triql","trired","trisol","truncate_lun","ts_coef","ts_diff","ts_fcast","ts_smooth","tv","tvcrs","tvlct","tvrd","tvscl","typename","uindgen","uint","uintarr","ul64indgen","ulindgen","ulon64arr","ulonarr","ulong","ulong64","uniq","unsharp_mask","usersym","value_locate","variance","vector","vector_field","vel","velovect","vert_t3d","voigt","volume","voronoi","voxel_proj","wait","warp_tri","watershed","wdelete","wf_draw","where","widget_base","widget_button","widget_combobox","widget_control","widget_displaycontextmenu","widget_draw","widget_droplist","widget_event","widget_info","widget_label","widget_list","widget_propertysheet","widget_slider","widget_tab","widget_table","widget_text","widget_tree","widget_tree_move","widget_window","wiener_filter","window","window","write_bmp","write_csv","write_gif","write_image","write_jpeg","write_jpeg2000","write_nrif","write_pict","write_png","write_ppm","write_spr","write_srf","write_sylk","write_tiff","write_video","write_wav","write_wave","writeu","wset","wshow","wtn","wv_applet","wv_cwt","wv_cw_wavelet","wv_denoise","wv_dwt","wv_fn_coiflet","wv_fn_daubechies","wv_fn_gaussian","wv_fn_haar","wv_fn_morlet","wv_fn_paul","wv_fn_symlet","wv_import_data","wv_import_wavelet","wv_plot3d_wps","wv_plot_multires","wv_pwt","wv_tool_denoise","xbm_edit","xdisplayfile","xdxf","xfont","xinteranimate","xloadct","xmanager","xmng_tmpl","xmtool","xobjview","xobjview_rotate","xobjview_write_image","xpalette","xpcolor","xplot3d","xregistered","xroi","xsq_test","xsurface","xvaredit","xvolume","xvolume_rotate","xvolume_write_image","xyouts","zlib_compress","zlib_uncompress","zoom","zoom_24"];var _=i(a);var o=["begin","end","endcase","endfor","endwhile","endif","endrep","endforeach","break","case","continue","for","foreach","goto","if","then","else","repeat","until","switch","while","do","pro","function"];var l=i(o);var s=new RegExp("^[_a-z¡-￿][_a-z0-9¡-￿]*","i");var n=/[+\-*&=<>\/@#~$]/;var c=new RegExp("(and|or|eq|lt|le|gt|ge|ne|not)","i");function d(e){if(e.eatSpace())return null;if(e.match(";")){e.skipToEnd();return"comment"}if(e.match(/^[0-9\.+-]/,false)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}if(e.match(/^"([^"]|(""))*"/)){return"string"}if(e.match(/^'([^']|(''))*'/)){return"string"}if(e.match(l)){return"keyword"}if(e.match(_)){return"builtin"}if(e.match(s)){return"variable"}if(e.match(n)||e.match(c)){return"operator"}e.next();return null}const p={name:"idl",token:function(e){return d(e)},languageData:{autocomplete:a.concat(o)}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7879.56d27f4d460bcd740d06.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7879.56d27f4d460bcd740d06.js new file mode 100644 index 0000000000000000000000000000000000000000..9ed3396abbb7c10258b2e7956df7dd8a94c87c83 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/7879.56d27f4d460bcd740d06.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7879],{45948:(t,e,n)=>{n.d(e,{P:()=>g});const i="view",r="[",s="]",a="{",o="}",u=":",l=",",c="@",f=">",d=/[[\]{}]/,h={"*":1,arc:1,area:1,group:1,image:1,line:1,path:1,rect:1,rule:1,shape:1,symbol:1,text:1,trail:1};let p,m;function g(t,e,n){p=e||i;m=n||h;return b(t.trim()).map(x)}function y(t){return m[t]}function v(t,e,n,i,r){const s=t.length;let a=0,o;for(;e=0)--a;else if(i&&i.indexOf(o)>=0)++a}return e}function b(t){const e=[],n=t.length;let i=0,u=0;while(u' after between selector: "+t}i=i.map(x);const a=x(t.slice(1).trim());if(a.between){return{between:i,stream:a}}else{a.between=i}return a}function w(t){const e={source:p},n=[];let i=[0,0],l=0,f=0,h=t.length,m=0,g,b;if(t[h-1]===o){m=t.lastIndexOf(a);if(m>=0){try{i=A(t.substring(m+1,h-1))}catch(x){throw"Invalid throttle specification: "+t}t=t.slice(0,m).trim();h=t.length}else throw"Unmatched right brace: "+t;m=0}if(!h)throw t;if(t[0]===c)l=++m;g=v(t,m,u);if(g1){e.type=n[1];if(l){e.markname=n[0].slice(1)}else if(y(n[0])){e.marktype=n[0]}else{e.source=n[0]}}else{e.type=n[0]}if(e.type.slice(-1)==="!"){e.consume=true;e.type=e.type.slice(0,-1)}if(b!=null)e.filter=b;if(i[0])e.throttle=i[0];if(i[1])e.debounce=i[1];return e}function A(t){const e=t.split(l);if(!t.length||e.length>2)throw t;return e.map((e=>{const n=+e;if(n!==n)throw t;return n}))}},37879:(t,e,n)=>{n.r(e);n.d(e,{Bounds:()=>vd,CanvasHandler:()=>jm,CanvasRenderer:()=>Zm,DATE:()=>it,DAY:()=>rt,DAYOFYEAR:()=>st,Dataflow:()=>Si,Debug:()=>p.y,Error:()=>p.$D,EventStream:()=>Ln,Gradient:()=>Hc,GroupItem:()=>xd,HOURS:()=>at,Handler:()=>hm,HybridHandler:()=>ey,HybridRenderer:()=>ty,Info:()=>p.R2,Item:()=>bd,MILLISECONDS:()=>lt,MINUTES:()=>ot,MONTH:()=>et,Marks:()=>Qp,MultiPulse:()=>pi,None:()=>p.NV,Operator:()=>$n,Parameters:()=>Dn,Pulse:()=>ci,QUARTER:()=>tt,RenderType:()=>oy,Renderer:()=>mm,ResourceLoader:()=>_d,SECONDS:()=>ut,SVGHandler:()=>eg,SVGRenderer:()=>Rg,SVGStringRenderer:()=>Qg,Scenegraph:()=>rm,TIME_UNITS:()=>ct,Transform:()=>zi,View:()=>Hq,WEEK:()=>nt,Warn:()=>p.P$,YEAR:()=>J,accessor:()=>p.sY,accessorFields:()=>p.nS,accessorName:()=>p.N6,array:()=>p.YO,ascending:()=>p.V_,bandwidthNRD:()=>er,bin:()=>nr,bootstrapCI:()=>sr,boundClip:()=>gy,boundContext:()=>jd,boundItem:()=>Kp,boundMark:()=>Jp,boundStroke:()=>kd,changeset:()=>En,clampRange:()=>p.BS,codegenExpression:()=>cO,compare:()=>p.UD,constant:()=>p.dY,cumulativeLogNormal:()=>wr,cumulativeNormal:()=>mr,cumulativeUniform:()=>Cr,dayofyear:()=>yt,debounce:()=>p.sg,defaultLocale:()=>Fe,definition:()=>Ri,densityLogNormal:()=>_r,densityNormal:()=>pr,densityUniform:()=>Dr,domChild:()=>um,domClear:()=>lm,domCreate:()=>am,domFind:()=>om,dotbin:()=>ar,error:()=>p.z3,expressionFunction:()=>UL,extend:()=>p.X$,extent:()=>p.Xx,extentIndex:()=>p.n,falsy:()=>p.me,fastmap:()=>p.nG,field:()=>p.ZZ,flush:()=>p.bX,font:()=>Lp,fontFamily:()=>Np,fontSize:()=>Fp,format:()=>an,formatLocale:()=>xe,formats:()=>on,hasOwnProperty:()=>p.mQ,id:()=>p.id,identity:()=>p.D_,inferType:()=>Qe,inferTypes:()=>Ke,ingest:()=>bn,inherits:()=>p.B,inrange:()=>p.PK,interpolate:()=>oc,interpolateColors:()=>ic,interpolateRange:()=>nc,intersect:()=>cy,intersectBoxLine:()=>th,intersectPath:()=>Qd,intersectPoint:()=>Kd,intersectRule:()=>Jd,isArray:()=>p.cy,isBoolean:()=>p.Lm,isDate:()=>p.$P,isFunction:()=>p.Tn,isIterable:()=>p.xZ,isNumber:()=>p.Et,isObject:()=>p.Gv,isRegExp:()=>p.gd,isString:()=>p.Kg,isTuple:()=>gn,key:()=>p.Eb,lerp:()=>p.Cc,lineHeight:()=>Sp,loader:()=>fn,locale:()=>Ce,logger:()=>p.vF,lruCache:()=>p.EV,markup:()=>Eg,merge:()=>p.h1,mergeConfig:()=>p.io,multiLineOffset:()=>$p,one:()=>p.xH,pad:()=>p.eV,panLinear:()=>p.VC,panLog:()=>p.KH,panPow:()=>p.co,panSymlog:()=>p.zy,parse:()=>mW,parseExpression:()=>aO,parseSelector:()=>Jq.P,path:()=>Qo.Ae,pathCurves:()=>Qc,pathEqual:()=>by,pathParse:()=>nf,pathRectangle:()=>Bf,pathRender:()=>yf,pathSymbols:()=>_f,pathTrail:()=>zf,peek:()=>p.se,point:()=>fm,projection:()=>wk,quantileLogNormal:()=>Ar,quantileNormal:()=>gr,quantileUniform:()=>Fr,quantiles:()=>Ji,quantizeInterpolator:()=>rc,quarter:()=>p.$G,quartiles:()=>tr,random:()=>ir,randomInteger:()=>lr,randomKDE:()=>br,randomLCG:()=>ur,randomLogNormal:()=>kr,randomMixture:()=>Er,randomNormal:()=>vr,randomUniform:()=>Sr,read:()=>ln,regressionConstant:()=>Br,regressionExp:()=>Lr,regressionLinear:()=>Tr,regressionLoess:()=>Wr,regressionLog:()=>Nr,regressionPoly:()=>Ir,regressionPow:()=>Pr,regressionQuad:()=>qr,renderModule:()=>ly,repeat:()=>p.ux,resetDefaultLocale:()=>Se,resetSVGClipId:()=>gd,resetSVGDefIds:()=>_y,responseType:()=>un,runtimeContext:()=>bP,sampleCurve:()=>Kr,sampleLogNormal:()=>xr,sampleNormal:()=>hr,sampleUniform:()=>Mr,scale:()=>Yl,sceneEqual:()=>vy,sceneFromJSON:()=>nm,scenePickVisit:()=>dh,sceneToJSON:()=>em,sceneVisit:()=>fh,sceneZOrder:()=>ch,scheme:()=>pc,serializeXML:()=>Mg,setHybridRendererOptions:()=>Jg,setRandom:()=>rr,span:()=>p.Ln,splitAccessPath:()=>p.iv,stringValue:()=>p.r$,textMetrics:()=>Ap,timeBin:()=>ce,timeFloor:()=>Rt,timeFormatLocale:()=>Me,timeInterval:()=>qt,timeOffset:()=>jt,timeSequence:()=>Wt,timeUnitSpecifier:()=>pt,timeUnits:()=>dt,toBoolean:()=>p.G4,toDate:()=>p.ay,toNumber:()=>p.Ro,toSet:()=>p.M1,toString:()=>p.dI,transform:()=>Oi,transforms:()=>$i,truncate:()=>p.xv,truthy:()=>p.vN,tupleid:()=>yn,typeParsers:()=>Xe,utcFloor:()=>Nt,utcInterval:()=>It,utcOffset:()=>Gt,utcSequence:()=>Xt,utcdayofyear:()=>At,utcquarter:()=>p.vu,utcweek:()=>kt,version:()=>gW,visitArray:()=>p.rt,week:()=>vt,writeConfig:()=>p.AU,zero:()=>p.v_,zoomLinear:()=>p.lL,zoomLog:()=>p.oV,zoomPow:()=>p.SW,zoomSymlog:()=>p.B2});var i={};n.r(i);n.d(i,{aggregate:()=>xs,bin:()=>ws,collect:()=>ks,compare:()=>Es,countpattern:()=>Ds,cross:()=>Fs,density:()=>Ts,dotbin:()=>js,expression:()=>Ys,extent:()=>Xs,facet:()=>Vs,field:()=>Qs,filter:()=>Zs,flatten:()=>Js,fold:()=>ta,formula:()=>ea,generate:()=>na,impute:()=>sa,joinaggregate:()=>la,kde:()=>ca,key:()=>fa,load:()=>ha,lookup:()=>ga,multiextent:()=>ya,multivalues:()=>ba,params:()=>_a,pivot:()=>wa,prefacet:()=>Ma,project:()=>Da,proxy:()=>Fa,quantile:()=>Sa,relay:()=>za,sample:()=>$a,sequence:()=>Ra,sieve:()=>Oa,subflow:()=>Hs,timeunit:()=>Ta,tupleindex:()=>La,values:()=>Pa,window:()=>Xa});var r={};n.r(r);n.d(r,{bound:()=>sv,identifier:()=>uv,mark:()=>cv,overlap:()=>dv,render:()=>xv,viewlayout:()=>Qv});var s={};n.r(s);n.d(s,{axisticks:()=>eb,datajoin:()=>nb,encode:()=>sb,legendentries:()=>ab,linkpath:()=>fb,pie:()=>Eb,scale:()=>Sb,sortitems:()=>jb,stack:()=>Hb});var a={};n.r(a);n.d(a,{contour:()=>Jk,geojson:()=>iE,geopath:()=>rE,geopoint:()=>aE,geoshape:()=>oE,graticule:()=>lE,heatmap:()=>cE,isocontour:()=>qk,kde2d:()=>Vk,projection:()=>mE});var o={};n.r(o);n.d(o,{force:()=>yM});var u={};n.r(u);n.d(u,{nest:()=>oC,pack:()=>mC,partition:()=>yC,stratify:()=>vC,tree:()=>_C,treelinks:()=>wC,treemap:()=>EC});var l={};n.r(l);n.d(l,{label:()=>fF});var c={};n.r(c);n.d(c,{loess:()=>hF,regression:()=>gF});var f={};n.r(f);n.d(f,{voronoi:()=>_z});var d={};n.r(d);n.d(d,{wordcloud:()=>qz});var h={};n.r(h);n.d(h,{crossfilter:()=>Zz,resolvefilter:()=>Jz});var p=n(26372);var m={},g={},y=34,v=10,b=13;function x(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function _(t,e){var n=x(t);return function(i,r){return e(n(i),r,t)}}function w(t){var e=Object.create(null),n=[];t.forEach((function(t){for(var i in t){if(!(i in e)){n.push(e[i]=i)}}}));return n}function A(t,e){var n=t+"",i=n.length;return i9999?"+"+A(t,6):A(t,4)}function E(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),i=t.getUTCSeconds(),r=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":k(t.getUTCFullYear(),4)+"-"+A(t.getUTCMonth()+1,2)+"-"+A(t.getUTCDate(),2)+(r?"T"+A(e,2)+":"+A(n,2)+":"+A(i,2)+"."+A(r,3)+"Z":i?"T"+A(e,2)+":"+A(n,2)+":"+A(i,2)+"Z":n||e?"T"+A(e,2)+":"+A(n,2)+"Z":"")}function M(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function i(t,e){var n,i,s=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?_(t,e):x(t)}));s.columns=i||[];return s}function r(t,e){var i=[],r=t.length,s=0,a=0,o,u=r<=0,l=false;if(t.charCodeAt(r-1)===v)--r;if(t.charCodeAt(r-1)===b)--r;function c(){if(u)return g;if(l)return l=false,m;var e,i=s,a;if(t.charCodeAt(i)===y){while(s++=r)u=true;else if((a=t.charCodeAt(s++))===v)l=true;else if(a===b){l=true;if(t.charCodeAt(s)===v)++s}return t.slice(i+1,e-1).replace(/""/g,'"')}while(s1)i=T(t,e,n);else for(r=0,i=new Array(s=t.arcs.length);r(t[e]=1+n,t)),{});function dt(t){const e=(0,p.YO)(t).slice(),n={};if(!e.length)(0,p.z3)("Missing time unit.");e.forEach((t=>{if((0,p.mQ)(ft,t)){n[t]=1}else{(0,p.z3)(`Invalid time unit: ${t}.`)}}));const i=(n[nt]||n[rt]?1:0)+(n[tt]||n[et]||n[it]?1:0)+(n[st]?1:0);if(i>1){(0,p.z3)(`Incompatible time units: ${t}`)}e.sort(((t,e)=>ft[t]-ft[e]));return e}const ht={[J]:"%Y ",[tt]:"Q%q ",[et]:"%b ",[it]:"%d ",[nt]:"W%U ",[rt]:"%a ",[st]:"%j ",[at]:"%H:00",[ot]:"00:%M",[ut]:":%S",[lt]:".%L",[`${J}-${et}`]:"%Y-%m ",[`${J}-${et}-${it}`]:"%Y-%m-%d ",[`${at}-${ot}`]:"%H:%M"};function pt(t,e){const n=(0,p.X$)({},ht,e),i=dt(t),r=i.length;let s="",a=0,o,u;for(a=0;aa;--o){u=i.slice(a,o).join("-");if(n[u]!=null){s+=n[u];a=o;break}}}return s.trim()}const mt=new Date;function gt(t){mt.setFullYear(t);mt.setMonth(0);mt.setDate(1);mt.setHours(0,0,0,0);return mt}function yt(t){return bt(new Date(t))}function vt(t){return xt(new Date(t))}function bt(t){return G.UA.count(gt(t.getFullYear())-1,t)}function xt(t){return Y.YP.count(gt(t.getFullYear())-1,t)}function _t(t){return gt(t).getDay()}function wt(t,e,n,i,r,s,a){if(0<=t&&t<100){const o=new Date(-1,e,n,i,r,s,a);o.setFullYear(t);return o}return new Date(t,e,n,i,r,s,a)}function At(t){return Et(new Date(t))}function kt(t){return Mt(new Date(t))}function Et(t){const e=Date.UTC(t.getUTCFullYear(),0,1);return G.dA.count(e-1,t)}function Mt(t){const e=Date.UTC(t.getUTCFullYear(),0,1);return Y.Hl.count(e-1,t)}function Dt(t){mt.setTime(Date.UTC(t,0,1));return mt.getUTCDay()}function Ct(t,e,n,i,r,s,a){if(0<=t&&t<100){const t=new Date(Date.UTC(-1,e,n,i,r,s,a));t.setUTCFullYear(n.y);return t}return new Date(Date.UTC(t,e,n,i,r,s,a))}function Ft(t,e,n,i,r){const s=e||1,a=(0,p.se)(t),o=(t,e,r)=>{r=r||t;return St(n[r],i[r],t===a&&s,e)};const u=new Date,l=(0,p.M1)(t),c=l[J]?o(J):(0,p.dY)(2012),f=l[et]?o(et):l[tt]?o(tt):p.v_,d=l[nt]&&l[rt]?o(rt,1,nt+rt):l[nt]?o(nt,1):l[rt]?o(rt,1):l[it]?o(it,1):l[st]?o(st,1):p.xH,h=l[at]?o(at):p.v_,m=l[ot]?o(ot):p.v_,g=l[ut]?o(ut):p.v_,y=l[lt]?o(lt):p.v_;return function(t){u.setTime(+t);const e=c(u);return r(e,f(u),d(u,e),h(u),m(u),g(u),y(u))}}function St(t,e,n,i){const r=n<=1?t:i?(e,r)=>i+n*Math.floor((t(e,r)-i)/n):(e,i)=>n*Math.floor(t(e,i)/n);return e?(t,n)=>e(r(t,n),n):r}function Bt(t,e,n){return e+t*7-(n+6)%7}const zt={[J]:t=>t.getFullYear(),[tt]:t=>Math.floor(t.getMonth()/3),[et]:t=>t.getMonth(),[it]:t=>t.getDate(),[at]:t=>t.getHours(),[ot]:t=>t.getMinutes(),[ut]:t=>t.getSeconds(),[lt]:t=>t.getMilliseconds(),[st]:t=>bt(t),[nt]:t=>xt(t),[nt+rt]:(t,e)=>Bt(xt(t),t.getDay(),_t(e)),[rt]:(t,e)=>Bt(1,t.getDay(),_t(e))};const $t={[tt]:t=>3*t,[nt]:(t,e)=>Bt(t,0,_t(e))};function Rt(t,e){return Ft(t,e||1,zt,$t,wt)}const Ot={[J]:t=>t.getUTCFullYear(),[tt]:t=>Math.floor(t.getUTCMonth()/3),[et]:t=>t.getUTCMonth(),[it]:t=>t.getUTCDate(),[at]:t=>t.getUTCHours(),[ot]:t=>t.getUTCMinutes(),[ut]:t=>t.getUTCSeconds(),[lt]:t=>t.getUTCMilliseconds(),[st]:t=>Et(t),[nt]:t=>Mt(t),[rt]:(t,e)=>Bt(1,t.getUTCDay(),Dt(e)),[nt+rt]:(t,e)=>Bt(Mt(t),t.getUTCDay(),Dt(e))};const Tt={[tt]:t=>3*t,[nt]:(t,e)=>Bt(t,0,Dt(e))};function Nt(t,e){return Ft(t,e||1,Ot,Tt,Ct)}const Lt={[J]:W.he,[tt]:X.Ui.every(3),[et]:X.Ui,[nt]:Y.YP,[it]:G.UA,[rt]:G.UA,[st]:G.UA,[at]:H.Ag,[ot]:V.wX,[ut]:Q.R,[lt]:K.y};const Pt={[J]:W.Mb,[tt]:X.R6.every(3),[et]:X.R6,[nt]:Y.Hl,[it]:G.dA,[rt]:G.dA,[st]:G.dA,[at]:H.pz,[ot]:V.vD,[ut]:Q.R,[lt]:K.y};function qt(t){return Lt[t]}function It(t){return Pt[t]}function Ut(t,e,n){return t?t.offset(e,n):undefined}function jt(t,e,n){return Ut(qt(t),e,n)}function Gt(t,e,n){return Ut(It(t),e,n)}function Yt(t,e,n,i){return t?t.range(e,n,i):undefined}function Wt(t,e,n,i){return Yt(qt(t),e,n,i)}function Xt(t,e,n,i){return Yt(It(t),e,n,i)}const Ht=1e3,Vt=Ht*60,Qt=Vt*60,Kt=Qt*24,Zt=Kt*7,Jt=Kt*30,te=Kt*365;const ee=[J,et,it,at,ot,ut,lt],ne=ee.slice(0,-1),ie=ne.slice(0,-1),re=ie.slice(0,-1),se=re.slice(0,-1),ae=[J,nt],oe=[J,et],ue=[J];const le=[[ne,1,Ht],[ne,5,5*Ht],[ne,15,15*Ht],[ne,30,30*Ht],[ie,1,Vt],[ie,5,5*Vt],[ie,15,15*Vt],[ie,30,30*Vt],[re,1,Qt],[re,3,3*Qt],[re,6,6*Qt],[re,12,12*Qt],[se,1,Kt],[ae,1,Zt],[oe,1,Jt],[oe,3,3*Jt],[ue,1,te]];function ce(t){const e=t.extent,n=t.maxbins||40,i=Math.abs((0,p.Ln)(e))/n;let r=(0,Z.A)((t=>t[2])).right(le,i),s,a;if(r===le.length){s=ue,a=(0,N.sG)(e[0]/te,e[1]/te,n)}else if(r){r=le[i/le[r-1][2]e[n]||(e[n]=t(n))}function pe(t,e){return n=>{const i=t(n),r=i.indexOf(e);if(r<0)return i;let s=me(i,r);const a=sr)if(i[s]!=="0"){++s;break}return i.slice(0,s)+a}}function me(t,e){let n=t.lastIndexOf("e"),i;if(n>0)return n;for(n=t.length;--n>e;){i=t.charCodeAt(n);if(i>=48&&i<=57)return n+1}}function ge(t){const e=he(t.format),n=t.formatPrefix;return{format:e,formatPrefix:n,formatFloat(t){const n=(0,L.A)(t||",");if(n.precision==null){n.precision=12;switch(n.type){case"%":n.precision-=2;break;case"e":n.precision-=1;break}return pe(e(n),e(".1f")(1)[1])}else{return e(n)}},formatSpan(t,i,r,s){s=(0,L.A)(s==null?",f":s);const a=(0,N.sG)(t,i,r),o=Math.max(Math.abs(t),Math.abs(i));let u;if(s.precision==null){switch(s.type){case"s":{if(!isNaN(u=(0,P.A)(a,o))){s.precision=u}return n(s,o)}case"":case"e":case"g":case"p":case"r":{if(!isNaN(u=(0,q.A)(a,o))){s.precision=u-(s.type==="e")}break}case"f":case"%":{if(!isNaN(u=(0,I.A)(a))){s.precision=u-(s.type==="%")*2}break}}}return e(s)}}}let ye;ve();function ve(){return ye=ge({format:U.GP,formatPrefix:U.s})}function be(t){return ge((0,j.A)(t))}function xe(t){return arguments.length?ye=be(t):ye}function _e(t,e,n){n=n||{};if(!(0,p.Gv)(n)){(0,p.z3)(`Invalid time multi-format specifier: ${n}`)}const i=e(ut),r=e(ot),s=e(at),a=e(it),o=e(nt),u=e(et),l=e(tt),c=e(J),f=t(n[lt]||".%L"),d=t(n[ut]||":%S"),h=t(n[ot]||"%I:%M"),m=t(n[at]||"%I %p"),g=t(n[it]||n[rt]||"%a %d"),y=t(n[nt]||"%b %d"),v=t(n[et]||"%B"),b=t(n[tt]||"%B"),x=t(n[J]||"%Y");return t=>(i(t)(0,p.Kg)(t)?e(t):_e(e,qt,t),utcFormat:t=>(0,p.Kg)(t)?n(t):_e(n,It,t),timeParse:he(t.parse),utcParse:he(t.utcParse)}}let Ae;ke();function ke(){return Ae=we({format:fe.DC,parse:fe.T6,utcFormat:fe.aL,utcParse:fe.GY})}function Ee(t){return we((0,de.A)(t))}function Me(t){return arguments.length?Ae=Ee(t):Ae}const De=(t,e)=>(0,p.X$)({},t,e);function Ce(t,e){const n=t?be(t):xe();const i=e?Ee(e):Me();return De(n,i)}function Fe(t,e){const n=arguments.length;if(n&&n!==2){(0,p.z3)("defaultLocale expects either zero or two arguments.")}return n?De(xe(t),Me(e)):De(xe(),Me())}function Se(){ve();ke();return Fe()}const Be=/^(data:|([A-Za-z]+:)?\/\/)/;const ze=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|file|data):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i;const $e=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g;const Re="file://";function Oe(t,e){return n=>({options:n||{},sanitize:Ne,load:Te,fileAccess:false,file:Le(e),http:qe(t)})}async function Te(t,e){const n=await this.sanitize(t,e),i=n.href;return n.localFile?this.file(i):this.http(i,e)}async function Ne(t,e){e=(0,p.X$)({},this.options,e);const n=this.fileAccess,i={href:null};let r,s,a;const o=ze.test(t.replace($e,""));if(t==null||typeof t!=="string"||!o){(0,p.z3)("Sanitize failure, invalid URI: "+(0,p.r$)(t))}const u=Be.test(t);if((a=e.baseURL)&&!u){if(!t.startsWith("/")&&!a.endsWith("/")){t="/"+t}t=a+t}s=(r=t.startsWith(Re))||e.mode==="file"||e.mode!=="http"&&!u&&n;if(r){t=t.slice(Re.length)}else if(t.startsWith("//")){if(e.defaultProtocol==="file"){t=t.slice(2);s=true}else{t=(e.defaultProtocol||"http")+":"+t}}Object.defineProperty(i,"localFile",{value:!!s});i.href=t;if(e.target){i.target=e.target+""}if(e.rel){i.rel=e.rel+""}if(e.context==="image"&&e.crossOrigin){i.crossOrigin=e.crossOrigin+""}return i}function Le(t){return t?e=>new Promise(((n,i)=>{t.readFile(e,((t,e)=>{if(t)i(t);else n(e)}))})):Pe}async function Pe(){(0,p.z3)("No file system access.")}function qe(t){return t?async function(e,n){const i=(0,p.X$)({},this.options.http,n),r=n&&n.response,s=await t(e,i);return!s.ok?(0,p.z3)(s.status+""+s.statusText):(0,p.Tn)(s[r])?s[r]():s.text()}:Ie}async function Ie(){(0,p.z3)("No HTTP fetch method available.")}const Ue=t=>t!=null&&t===t;const je=t=>t==="true"||t==="false"||t===true||t===false;const Ge=t=>!Number.isNaN(Date.parse(t));const Ye=t=>!Number.isNaN(+t)&&!(t instanceof Date);const We=t=>Ye(t)&&Number.isInteger(+t);const Xe={boolean:p.G4,integer:p.Ro,number:p.Ro,date:p.ay,string:p.dI,unknown:p.D_};const He=[je,We,Ye,Ge];const Ve=["boolean","integer","number","date"];function Qe(t,e){if(!t||!t.length)return"unknown";const n=t.length,i=He.length,r=He.map(((t,e)=>e+1));for(let s=0,a=0,o,u;st===0?e:t),0)-1]}function Ke(t,e){return e.reduce(((e,n)=>{e[n]=Qe(t,n);return e}),{})}function Ze(t){const e=function(e,n){const i={delimiter:t};return Je(e,n?(0,p.X$)(n,i):i)};e.responseType="text";return e}function Je(t,e){if(e.header){t=e.header.map(p.r$).join(e.delimiter)+"\n"+t}return M(e.delimiter).parse(t+"")}Je.responseType="text";function tn(t){return typeof Buffer==="function"&&(0,p.Tn)(Buffer.isBuffer)?Buffer.isBuffer(t):false}function en(t,e){const n=e&&e.property?(0,p.ZZ)(e.property):p.D_;return(0,p.Gv)(t)&&!tn(t)?nn(n(t),e):n(JSON.parse(t))}en.responseType="json";function nn(t,e){if(!(0,p.cy)(t)&&(0,p.xZ)(t)){t=[...t]}return e&&e.copy?JSON.parse(JSON.stringify(t)):t}const rn={interior:(t,e)=>t!==e,exterior:(t,e)=>t===e};function sn(t,e){let n,i,r,s;t=en(t,e);if(e&&e.feature){n=S;r=e.feature}else if(e&&e.mesh){n=R;r=e.mesh;s=rn[e.filter]}else{(0,p.z3)("Missing TopoJSON feature or mesh parameter.")}i=(i=t.objects[r])?n(t,i,s):(0,p.z3)("Invalid TopoJSON object: "+r);return i&&i.features||[i]}sn.responseType="json";const an={dsv:Je,csv:Ze(","),tsv:Ze("\t"),json:en,topojson:sn};function on(t,e){if(arguments.length>1){an[t]=e;return this}else{return(0,p.mQ)(an,t)?an[t]:null}}function un(t){const e=on(t);return e&&e.responseType||"text"}function ln(t,e,n,i){e=e||{};const r=on(e.type||"json");if(!r)(0,p.z3)("Unknown data format type: "+e.type);t=r(t,e);if(e.parse)cn(t,e.parse,n,i);if((0,p.mQ)(t,"columns"))delete t.columns;return t}function cn(t,e,n,i){if(!t.length)return;const r=Me();n=n||r.timeParse;i=i||r.utcParse;let s=t.columns||Object.keys(t[0]),a,o,u,l,c,f;if(e==="auto")e=Ke(t,s);s=Object.keys(e);const d=s.map((t=>{const r=e[t];let s,a;if(r&&(r.startsWith("date:")||r.startsWith("utc:"))){s=r.split(/:(.+)?/,2);a=s[1];if(a[0]==="'"&&a[a.length-1]==="'"||a[0]==='"'&&a[a.length-1]==='"'){a=a.slice(1,-1)}const t=s[0]==="utc"?i:n;return t(a)}if(!Xe[r]){throw Error("Illegal format pattern: "+t+":"+r)}return Xe[r]}));for(u=0,c=t.length,f=s.length;u{const r=e(t);if(!i[r]){i[r]=1;n.push(t)}return n};n.remove=t=>{const r=e(t);if(i[r]){i[r]=0;const e=n.indexOf(t);if(e>=0)n.splice(e,1)}return n};return n}async function hn(t,e){try{await e(t)}catch(n){t.error(n)}}const pn=Symbol("vega_id");let mn=1;function gn(t){return!!(t&&yn(t))}function yn(t){return t[pn]}function vn(t,e){t[pn]=e;return t}function bn(t){const e=t===Object(t)?t:{data:t};return yn(e)?e:vn(e,mn++)}function xn(t){return _n(t,bn({}))}function _n(t,e){for(const n in t)e[n]=t[n];return e}function wn(t,e){return vn(e,yn(t))}function An(t,e){return!t?null:e?(n,i)=>t(n,i)||yn(e(n))-yn(e(i)):(e,n)=>t(e,n)||yn(e)-yn(n)}function kn(t){return t&&t.constructor===En}function En(){const t=[],e=[],n=[],i=[],r=[];let s=null,a=false;return{constructor:En,insert(e){const n=(0,p.YO)(e),i=n.length;for(let r=0;r{if(p(t))l[yn(t)]=-1}))}for(f=0,d=t.length;f0){y(m,p,h.value);o.modifies(p)}}for(f=0,d=r.length;f{if(p(t)&&l[yn(t)]>0){y(t,h.field,h.value)}}));o.modifies(h.field)}if(a){o.mod=e.length||i.length?u.filter((t=>l[yn(t)]>0)):u.slice()}else{for(g in c)o.mod.push(c[g])}if(s||s==null&&(e.length||i.length)){o.clean(true)}return o}}}const Mn="_:mod:_";function Dn(){Object.defineProperty(this,Mn,{writable:true,value:{}})}Dn.prototype={set(t,e,n,i){const r=this,s=r[t],a=r[Mn];if(e!=null&&e>=0){if(s[e]!==n||i){s[e]=n;a[e+":"+t]=-1;a[t]=-1}}else if(s!==n||i){r[t]=n;a[t]=(0,p.cy)(n)?1+n.length:-1}return r},modified(t,e){const n=this[Mn];if(!arguments.length){for(const t in n){if(n[t])return true}return false}else if((0,p.cy)(t)){for(let e=0;e=0?e+1{if(a instanceof $n){if(a!==this){if(e)a.targets().add(this);s.push(a)}r.push({op:a,name:t,index:n})}else{i.set(t,n,a)}};for(a in t){o=t[a];if(a===Fn){(0,p.YO)(o).forEach((t=>{if(!(t instanceof $n)){(0,p.z3)("Pulse parameters must be operator instances.")}else if(t!==this){t.targets().add(this);s.push(t)}}));this.source=o}else if((0,p.cy)(o)){i.set(a,-1,Array(u=o.length));for(l=0;l{const n=Date.now();if(n-e>t){e=n;return 1}else{return 0}}))},debounce(t){const e=Pn();this.targets().add(Pn(null,null,(0,p.sg)(t,(t=>{const n=t.dataflow;e.receive(t);if(n&&n.run)n.run()}))));return e},between(t,e){let n=false;t.targets().add(Pn(null,null,(()=>n=true)));e.targets().add(Pn(null,null,(()=>n=false)));return this.filter((()=>n))},detach(){this._filter=p.vN;this._targets=null}};function qn(t,e,n,i){const r=this,s=Pn(n,i),a=function(t){t.dataflow=r;try{s.receive(t)}catch(e){r.error(e)}finally{r.run()}};let o;if(typeof t==="string"&&typeof document!=="undefined"){o=document.querySelectorAll(t)}else{o=(0,p.YO)(t)}const u=o.length;for(let l=0;le=t));n.requests=0;n.done=()=>{if(--n.requests===0){t._pending=null;e(t)}};return t._pending=n}const Wn={skip:true};function Xn(t,e,n,i,r){const s=t instanceof $n?Vn:Hn;s(this,t,e,n,i,r);return this}function Hn(t,e,n,i,r,s){const a=(0,p.X$)({},s,Wn);let o,u;if(!(0,p.Tn)(n))n=(0,p.dY)(n);if(i===undefined){o=e=>t.touch(n(e))}else if((0,p.Tn)(i)){u=new $n(null,i,r,false);o=e=>{u.evaluate(e);const i=n(e),r=u.value;kn(r)?t.pulse(i,r,s):t.update(i,r,a)}}else{o=e=>t.update(n(e),i,a)}e.apply(o)}function Vn(t,e,n,i,r,s){if(i===undefined){e.targets().add(n)}else{const a=s||{},o=new $n(null,Qn(n,i),r,false);o.modified(a.force);o.rank=e.rank;e.targets().add(o);if(n){o.skip(true);o.value=n.value;o.targets().add(n);t.connect(n,[o])}}}function Qn(t,e){e=(0,p.Tn)(e)?e:(0,p.dY)(e);return t?function(n,i){const r=e(n,i);if(!t.skip()){t.skip(r!==this.value).value=r}return r}:e}function Kn(t){t.rank=++this._rank}function Zn(t){const e=[t];let n,i,r;while(e.length){this.rank(n=e.pop());if(i=n._targets){for(r=i.length;--r>=0;){e.push(n=i[r]);if(n===t)(0,p.z3)("Cycle detected in dataflow graph.")}}}}const Jn={};const ti=1<<0,ei=1<<1,ni=1<<2,ii=ti|ei,ri=ti|ni,si=ti|ei|ni,ai=1<<3,oi=1<<4,ui=1<<5,li=1<<6;function ci(t,e,n){this.dataflow=t;this.stamp=e==null?-1:e;this.add=[];this.rem=[];this.mod=[];this.fields=null;this.encode=n||null}function fi(t,e){const n=[];(0,p.rt)(t,e,(t=>n.push(t)));return n}function di(t,e){const n={};t.visit(e,(t=>{n[yn(t)]=1}));return t=>n[yn(t)]?null:t}function hi(t,e){return t?(n,i)=>t(n,i)&&e(n,i):e}ci.prototype={StopPropagation:Jn,ADD:ti,REM:ei,MOD:ni,ADD_REM:ii,ADD_MOD:ri,ALL:si,REFLOW:ai,SOURCE:oi,NO_SOURCE:ui,NO_FIELDS:li,fork(t){return new ci(this.dataflow).init(this,t)},clone(){const t=this.fork(si);t.add=t.add.slice();t.rem=t.rem.slice();t.mod=t.mod.slice();if(t.source)t.source=t.source.slice();return t.materialize(si|oi)},addAll(){let t=this;const e=!t.source||t.add===t.rem||!t.rem.length&&t.source.length===t.add.length;if(e){return t}else{t=new ci(this.dataflow).init(this);t.add=t.source;t.rem=[];return t}},init(t,e){const n=this;n.stamp=t.stamp;n.encode=t.encode;if(t.fields&&!(e&li)){n.fields=t.fields}if(e&ti){n.addF=t.addF;n.add=t.add}else{n.addF=null;n.add=[]}if(e&ei){n.remF=t.remF;n.rem=t.rem}else{n.remF=null;n.rem=[]}if(e&ni){n.modF=t.modF;n.mod=t.mod}else{n.modF=null;n.mod=[]}if(e&ui){n.srcF=null;n.source=null}else{n.srcF=t.srcF;n.source=t.source;if(t.cleans)n.cleans=t.cleans}return n},runAfter(t){this.dataflow.runAfter(t)},changed(t){const e=t||si;return e&ti&&this.add.length||e&ei&&this.rem.length||e&ni&&this.mod.length},reflow(t){if(t)return this.fork(si).reflow();const e=this.add.length,n=this.source&&this.source.length;if(n&&n!==e){this.mod=this.source;if(e)this.filter(ni,di(this,ti))}return this},clean(t){if(arguments.length){this.cleans=!!t;return this}else{return this.cleans}},modifies(t){const e=this.fields||(this.fields={});if((0,p.cy)(t)){t.forEach((t=>e[t]=true))}else{e[t]=true}return this},modified(t,e){const n=this.fields;return!((e||this.mod.length)&&n)?false:!arguments.length?!!n:(0,p.cy)(t)?t.some((t=>n[t])):n[t]},filter(t,e){const n=this;if(t&ti)n.addF=hi(n.addF,e);if(t&ei)n.remF=hi(n.remF,e);if(t&ni)n.modF=hi(n.modF,e);if(t&oi)n.srcF=hi(n.srcF,e);return n},materialize(t){t=t||si;const e=this;if(t&ti&&e.addF){e.add=fi(e.add,e.addF);e.addF=null}if(t&ei&&e.remF){e.rem=fi(e.rem,e.remF);e.remF=null}if(t&ni&&e.modF){e.mod=fi(e.mod,e.modF);e.modF=null}if(t&oi&&e.srcF){e.source=e.source.filter(e.srcF);e.srcF=null}return e},visit(t,e){const n=this,i=e;if(t&oi){(0,p.rt)(n.source,n.srcF,i);return n}if(t&ti)(0,p.rt)(n.add,n.addF,i);if(t&ei)(0,p.rt)(n.rem,n.remF,i);if(t&ni)(0,p.rt)(n.mod,n.modF,i);const r=n.source;if(t&ai&&r){const t=n.add.length+n.mod.length;if(t===r.length);else if(t){(0,p.rt)(r,di(n,ri),i)}else{(0,p.rt)(r,n.srcF,i)}}return n}};function pi(t,e,n,i){const r=this;let s=0;this.dataflow=t;this.stamp=e;this.fields=null;this.encode=i||null;this.pulses=n;for(const a of n){if(a.stamp!==e)continue;if(a.fields){const t=r.fields||(r.fields={});for(const e in a.fields){t[e]=1}}if(a.changed(r.ADD))s|=r.ADD;if(a.changed(r.REM))s|=r.REM;if(a.changed(r.MOD))s|=r.MOD}this.changes=s}(0,p.B)(pi,ci,{fork(t){const e=new ci(this.dataflow).init(this,t&this.NO_FIELDS);if(t!==undefined){if(t&e.ADD)this.visit(e.ADD,(t=>e.add.push(t)));if(t&e.REM)this.visit(e.REM,(t=>e.rem.push(t)));if(t&e.MOD)this.visit(e.MOD,(t=>e.mod.push(t)))}return e},changed(t){return this.changes&t},modified(t){const e=this,n=e.fields;return!(n&&e.changes&e.MOD)?0:(0,p.cy)(t)?t.some((t=>n[t])):n[t]},filter(){(0,p.z3)("MultiPulse does not support filtering.")},materialize(){(0,p.z3)("MultiPulse does not support materialization.")},visit(t,e){const n=this,i=n.pulses,r=i.length;let s=0;if(t&n.SOURCE){for(;si._enqueue(t,true)));i._touched=dn(p.id);let a=0,o,u,l;try{while(i._heap.size()>0){o=i._heap.pop();if(o.rank!==o.qrank){i._enqueue(o,true);continue}u=o.run(i._getPulse(o,t));if(u.then){u=await u}else if(u.async){r.push(u.async);u=Jn}if(u!==Jn){if(o._targets)o._targets.forEach((t=>i._enqueue(t)))}++a}}catch(c){i._heap.clear();l=c}i._input={};i._pulse=null;i.debug(`Pulse ${s}: ${a} operators`);if(l){i._postrun=[];i.error(l)}if(i._postrun.length){const t=i._postrun.sort(((t,e)=>e.priority-t.priority));i._postrun=[];for(let e=0;ei.runAsync(null,(()=>{t.forEach((t=>{try{t(i)}catch(c){i.error(c)}}))}))))}return i}async function gi(t,e,n){while(this._running)await this._running;const i=()=>this._running=null;(this._running=this.evaluate(t,e,n)).then(i,i);return this._running}function yi(t,e,n){return this._pulse?bi(this):(this.evaluate(t,e,n),this)}function vi(t,e,n){if(this._pulse||e){this._postrun.push({priority:n||0,callback:t})}else{try{t(this)}catch(i){this.error(i)}}}function bi(t){t.error("Dataflow already running. Use runAsync() to chain invocations.");return t}function xi(t,e){const n=t.stampt.pulse)),e):this._input[t.id]||wi(this._pulse,n&&n.pulse)}function wi(t,e){if(e&&e.stamp===t.stamp){return e}t=t.fork();if(e&&e!==Jn){t.source=e.source}return t}const Ai={skip:false,force:false};function ki(t,e){const n=e||Ai;if(this._pulse){this._enqueue(t)}else{this._touched.add(t)}if(n.skip)t.skip(true);return this}function Ei(t,e,n){const i=n||Ai;if(t.set(e)||i.force){this.touch(t,i)}return this}function Mi(t,e,n){this.touch(t,n||Ai);const i=new ci(this,this._clock+(this._pulse?0:1)),r=t.pulse&&t.pulse.source||[];i.target=t;this._input[t.id]=e.pulse(i,r);return this}function Di(t){let e=[];return{clear:()=>e=[],size:()=>e.length,peek:()=>e[0],push:n=>{e.push(n);return Ci(e,0,e.length-1,t)},pop:()=>{const n=e.pop();let i;if(e.length){i=e[0];e[0]=n;Fi(e,0,t)}else{i=n}return i}}}function Ci(t,e,n,i){let r,s;const a=t[n];while(n>e){s=n-1>>1;r=t[s];if(i(a,r)<0){t[n]=r;n=s;continue}break}return t[n]=a}function Fi(t,e,n){const i=e,r=t.length,s=t[e];let a=(e<<1)+1,o;while(a=0){a=o}t[e]=t[a];e=a;a=(e<<1)+1}t[e]=s;return Ci(t,i,e,n)}function Si(){this.logger((0,p.vF)());this.logLevel(p.$D);this._clock=0;this._rank=0;this._locale=Fe();try{this._loader=fn()}catch(t){}this._touched=dn(p.id);this._input={};this._pulse=null;this._heap=Di(((t,e)=>t.qrank-e.qrank));this._postrun=[]}function Bi(t){return function(){return this._log[t].apply(this,arguments)}}Si.prototype={stamp(){return this._clock},loader(t){if(arguments.length){this._loader=t;return this}else{return this._loader}},locale(t){if(arguments.length){this._locale=t;return this}else{return this._locale}},logger(t){if(arguments.length){this._log=t;return this}else{return this._log}},error:Bi("error"),warn:Bi("warn"),info:Bi("info"),debug:Bi("debug"),logLevel:Bi("level"),cleanThreshold:1e4,add:On,connect:Tn,rank:Kn,rerank:Zn,pulse:Mi,touch:ki,update:Ei,changeset:En,ingest:Un,parse:In,preload:Gn,request:jn,events:qn,on:Xn,evaluate:mi,run:yi,runAsync:gi,runAfter:vi,_enqueue:xi,_getPulse:_i};function zi(t,e){$n.call(this,t,null,e)}(0,p.B)(zi,$n,{run(t){if(t.stampthis.pulse=t))}else if(e!==t.StopPropagation){this.pulse=e}return e},evaluate(t){const e=this.marshall(t.stamp),n=this.transform(e,t);e.clear();return n},transform(){}});const $i={};function Ri(t){const e=Oi(t);return e&&e.Definition||null}function Oi(t){t=t&&t.toLowerCase();return(0,p.mQ)($i,t)?$i[t]:null}var Ti=n(82887);var Ni=n(21671);var Li=n(44317);function Pi(t,...e){if(typeof t[Symbol.iterator]!=="function")throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&n.length!==2||e.length>1){const i=Uint32Array.from(t,((t,e)=>e));if(e.length>1){e=e.map((e=>t.map(e)));i.sort(((t,n)=>{for(const i of e){const e=Ii(i[t],i[n]);if(e)return e}}))}else{n=t.map(n);i.sort(((t,e)=>Ii(n[t],n[e])))}return permute(t,i)}return t.sort(qi(n))}function qi(t=Ti.A){if(t===Ti.A)return Ii;if(typeof t!=="function")throw new TypeError("compare is not a function");return(e,n)=>{const i=t(e,n);if(i||i===0)return i;return(t(n,n)===0)-(t(e,e)===0)}}function Ii(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(te?1:0)}function Ui(t,e,n=0,i=Infinity,r){e=Math.floor(e);n=Math.floor(Math.max(0,n));i=Math.floor(Math.min(t.length-1,i));if(!(n<=e&&e<=i))return t;r=r===undefined?Ii:qi(r);while(i>n){if(i-n>600){const s=i-n+1;const a=e-n+1;const o=Math.log(s);const u=.5*Math.exp(2*o/3);const l=.5*Math.sqrt(o*u*(s-u)/s)*(a-s/2<0?-1:1);const c=Math.max(n,Math.floor(e-a*u/s+l));const f=Math.min(i,Math.floor(e+(s-a)*u/s+l));Ui(t,e,c,f,r)}const s=t[e];let a=n;let o=i;ji(t,n,e);if(r(t[i],s)>0)ji(t,n,i);while(a0)--o}if(r(t[n],s)===0)ji(t,n,o);else++o,ji(t,o,i);if(o<=e)n=o+1;if(e<=o)i=o-1}return t}function ji(t,e,n){const i=t[e];t[e]=t[n];t[n]=i}var Gi=n(40168);function Yi(t,e,n){t=Float64Array.from((0,Gi.n)(t,n));if(!(i=t.length)||isNaN(e=+e))return;if(e<=0||i<2)return(0,Li.A)(t);if(e>=1)return(0,Ni.A)(t);var i,r=(i-1)*e,s=Math.floor(r),a=(0,Ni.A)(Ui(t,s).subarray(0,s+1)),o=(0,Li.A)(t.subarray(s+1));return a+(o-a)*(r-s)}function Wi(t,e,n=Gi.A){if(!(i=t.length)||isNaN(e=+e))return;if(e<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,s=Math.floor(r),a=+n(t[s],s,t),o=+n(t[s+1],s+1,t);return a+(o-a)*(r-s)}function Xi(t,e,n=number){if(isNaN(e=+e))return;i=Float64Array.from(t,((e,i)=>number(n(t[i],i,t))));if(e<=0)return minIndex(i);if(e>=1)return maxIndex(i);var i,r=Uint32Array.from(t,((t,e)=>e)),s=i.length-1,a=Math.floor(s*e);quickselect(r,a,0,s,((t,e)=>ascendingDefined(i[t],i[e])));a=greatest(r.subarray(0,a+1),(t=>i[t]));return a>=0?a:-1}function Hi(t,e){let n=0;let i;let r=0;let s=0;if(e===undefined){for(let e of t){if(e!=null&&(e=+e)>=e){i=e-r;r+=i/++n;s+=i*(e-r)}}}else{let a=-1;for(let o of t){if((o=e(o,++a,t))!=null&&(o=+o)>=o){i=o-r;r+=i/++n;s+=i*(o-r)}}}if(n>1)return s/(n-1)}function Vi(t,e){const n=Hi(t,e);return n?Math.sqrt(n):n}function Qi(t,e){return Yi(t,.5,e)}function Ki(t,e){return quantileIndex(t,.5,e)}function*Zi(t,e){if(e==null){for(let e of t){if(e!=null&&e!==""&&(e=+e)>=e){yield e}}}else{let n=-1;for(let i of t){i=e(i,++n,t);if(i!=null&&i!==""&&(i=+i)>=i){yield i}}}}function Ji(t,e,n){const i=Float64Array.from(Zi(t,n));i.sort(Ti.A);return e.map((t=>Wi(i,t)))}function tr(t,e){return Ji(t,[.25,.5,.75],e)}function er(t,e){const n=t.length,i=Vi(t,e),r=tr(t,e),s=(r[2]-r[0])/1.34,a=Math.min(i,s)||i||Math.abs(r[0])||1;return 1.06*a*Math.pow(n,-.2)}function nr(t){const e=t.maxbins||20,n=t.base||10,i=Math.log(n),r=t.divide||[5,2];let s=t.extent[0],a=t.extent[1],o,u,l,c,f,d;const h=t.span||a-s||Math.abs(s)||1;if(t.step){o=t.step}else if(t.steps){c=h/e;for(f=0,d=t.steps.length;fe){o*=n}for(f=0,d=r.length;f=l&&h/c<=e)o=c}}c=Math.log(o);const p=c>=0?0:~~(-c/i)+1,m=Math.pow(n,-p-1);if(t.nice||t.nice===undefined){c=Math.floor(s/o+m)*o;s=st);const r=t.length,s=new Float64Array(r);let a=0,o=1,u=i(t[0]),l=u,c=u+e,f;for(;o=c){l=(u+l)/2;for(;a>1);while(ar)t[a--]=t[i]}i=r;r=s}return t}function ur(t){return function(){t=(1103515245*t+12345)%2147483647;return t/2147483647}}function lr(t,e){if(e==null){e=t;t=0}let n,i,r;const s={min(t){if(arguments.length){n=t||0;r=i-n;return s}else{return n}},max(t){if(arguments.length){i=t||0;r=i-n;return s}else{return i}},sample(){return n+Math.floor(r*ir())},pdf(t){return t===Math.floor(t)&&t>=n&&t=i?1:(e-n+1)/r},icdf(t){return t>=0&&t<=1?n-1+Math.floor(t*r):NaN}};return s.min(t).max(e)}const cr=Math.sqrt(2*Math.PI);const fr=Math.SQRT2;let dr=NaN;function hr(t,e){t=t||0;e=e==null?1:e;let n=0,i=0,r,s;if(dr===dr){n=dr;dr=NaN}else{do{n=ir()*2-1;i=ir()*2-1;r=n*n+i*i}while(r===0||r>1);s=Math.sqrt(-2*Math.log(r)/r);n*=s;dr=i*s}return t+n*e}function pr(t,e,n){n=n==null?1:n;const i=(t-(e||0))/n;return Math.exp(-.5*i*i)/(n*cr)}function mr(t,e,n){e=e||0;n=n==null?1:n;const i=(t-e)/n,r=Math.abs(i);let s;if(r>37){s=0}else{const t=Math.exp(-r*r/2);let e;if(r<7.07106781186547){e=.0352624965998911*r+.700383064443688;e=e*r+6.37396220353165;e=e*r+33.912866078383;e=e*r+112.079291497871;e=e*r+221.213596169931;e=e*r+220.206867912376;s=t*e;e=.0883883476483184*r+1.75566716318264;e=e*r+16.064177579207;e=e*r+86.7807322029461;e=e*r+296.564248779674;e=e*r+637.333633378831;e=e*r+793.826512519948;e=e*r+440.413735824752;s=s/e}else{e=r+.65;e=r+4/e;e=r+3/e;e=r+2/e;e=r+1/e;s=t/e/2.506628274631}}return i>0?1-s:s}function gr(t,e,n){if(t<0||t>1)return NaN;return(e||0)+(n==null?1:n)*fr*yr(2*t-1)}function yr(t){let e=-Math.log((1-t)*(1+t)),n;if(e<6.25){e-=3.125;n=-364441206401782e-35;n=-16850591381820166e-35+n*e;n=128584807152564e-32+n*e;n=11157877678025181e-33+n*e;n=-1333171662854621e-31+n*e;n=20972767875968562e-33+n*e;n=6637638134358324e-30+n*e;n=-4054566272975207e-29+n*e;n=-8151934197605472e-29+n*e;n=26335093153082323e-28+n*e;n=-12975133253453532e-27+n*e;n=-5415412054294628e-26+n*e;n=1.0512122733215323e-9+n*e;n=-4.112633980346984e-9+n*e;n=-2.9070369957882005e-8+n*e;n=4.2347877827932404e-7+n*e;n=-13654692000834679e-22+n*e;n=-13882523362786469e-21+n*e;n=.00018673420803405714+n*e;n=-.000740702534166267+n*e;n=-.006033670871430149+n*e;n=.24015818242558962+n*e;n=1.6536545626831027+n*e}else if(e<16){e=Math.sqrt(e)-3.25;n=2.2137376921775787e-9;n=9.075656193888539e-8+n*e;n=-2.7517406297064545e-7+n*e;n=1.8239629214389228e-8+n*e;n=15027403968909828e-22+n*e;n=-4013867526981546e-21+n*e;n=29234449089955446e-22+n*e;n=12475304481671779e-21+n*e;n=-47318229009055734e-21+n*e;n=6828485145957318e-20+n*e;n=24031110387097894e-21+n*e;n=-.0003550375203628475+n*e;n=.0009532893797373805+n*e;n=-.0016882755560235047+n*e;n=.002491442096107851+n*e;n=-.003751208507569241+n*e;n=.005370914553590064+n*e;n=1.0052589676941592+n*e;n=3.0838856104922208+n*e}else if(Number.isFinite(e)){e=Math.sqrt(e)-5;n=-27109920616438573e-27;n=-2.555641816996525e-10+n*e;n=1.5076572693500548e-9+n*e;n=-3.789465440126737e-9+n*e;n=7.61570120807834e-9+n*e;n=-1.496002662714924e-8+n*e;n=2.914795345090108e-8+n*e;n=-6.771199775845234e-8+n*e;n=2.2900482228026655e-7+n*e;n=-9.9298272942317e-7+n*e;n=4526062597223154e-21+n*e;n=-1968177810553167e-20+n*e;n=7599527703001776e-20+n*e;n=-.00021503011930044477+n*e;n=-.00013871931833623122+n*e;n=1.0103004648645344+n*e;n=4.849906401408584+n*e}else{n=Infinity}return n*t}function vr(t,e){let n,i;const r={mean(t){if(arguments.length){n=t||0;return r}else{return n}},stdev(t){if(arguments.length){i=t==null?1:t;return r}else{return i}},sample:()=>hr(n,i),pdf:t=>pr(t,n,i),cdf:t=>mr(t,n,i),icdf:t=>gr(t,n,i)};return r.mean(t).stdev(e)}function br(t,e){const n=vr();let i=0;const r={data(n){if(arguments.length){t=n;i=n?n.length:0;return r.bandwidth(e)}else{return t}},bandwidth(n){if(!arguments.length)return e;e=n;if(!e&&t)e=er(t);return r},sample(){return t[~~(ir()*i)]+e*n.sample()},pdf(r){let s=0,a=0;for(;axr(n,i),pdf:t=>_r(t,n,i),cdf:t=>wr(t,n,i),icdf:t=>Ar(t,n,i)};return r.mean(t).stdev(e)}function Er(t,e){let n=0,i;function r(t){const e=[];let i=0,r;for(r=0;r=e&&t<=n?1/(n-e):0}function Cr(t,e,n){if(n==null){n=e==null?1:e;e=0}return tn?1:(t-e)/(n-e)}function Fr(t,e,n){if(n==null){n=e==null?1:e;e=0}return t>=0&&t<=1?e+t*(n-e):NaN}function Sr(t,e){let n,i;const r={min(t){if(arguments.length){n=t||0;return r}else{return n}},max(t){if(arguments.length){i=t==null?1:t;return r}else{return i}},sample:()=>Mr(n,i),pdf:t=>Dr(t,n,i),cdf:t=>Cr(t,n,i),icdf:t=>Fr(t,n,i)};if(e==null){e=t==null?1:t;t=0}return r.min(t).max(e)}function Br(t,e,n){let i=0,r=0;for(const s of t){const t=n(s);if(e(s)==null||t==null||isNaN(t))continue;i+=(t-i)/++r}return{coef:[i],predict:()=>i,rSquared:0}}function zr(t,e,n,i){const r=i-t*t,s=Math.abs(r)<1e-24?0:(n-t*e)/r,a=e-s*t;return[a,s]}function $r(t,e,n,i){t=t.filter((t=>{let i=e(t),r=n(t);return i!=null&&(i=+i)>=i&&r!=null&&(r=+r)>=r}));if(i){t.sort(((t,n)=>e(t)-e(n)))}const r=t.length,s=new Float64Array(r),a=new Float64Array(r);let o=0,u=0,l=0,c,f,d;for(d of t){s[o]=c=+e(d);a[o]=f=+n(d);++o;u+=(c-u)/o;l+=(f-l)/o}for(o=0;o=s&&a!=null&&(a=+a)>=a){i(s,a,++r)}}}function Or(t,e,n,i,r){let s=0,a=0;Rr(t,e,n,((t,e)=>{const n=e-r(t),o=e-i;s+=n*n;a+=o*o}));return 1-s/a}function Tr(t,e,n){let i=0,r=0,s=0,a=0,o=0;Rr(t,e,n,((t,e)=>{++o;i+=(t-i)/o;r+=(e-r)/o;s+=(t*e-s)/o;a+=(t*t-a)/o}));const u=zr(i,r,s,a),l=t=>u[0]+u[1]*t;return{coef:u,predict:l,rSquared:Or(t,e,n,r,l)}}function Nr(t,e,n){let i=0,r=0,s=0,a=0,o=0;Rr(t,e,n,((t,e)=>{++o;t=Math.log(t);i+=(t-i)/o;r+=(e-r)/o;s+=(t*e-s)/o;a+=(t*t-a)/o}));const u=zr(i,r,s,a),l=t=>u[0]+u[1]*Math.log(t);return{coef:u,predict:l,rSquared:Or(t,e,n,r,l)}}function Lr(t,e,n){const[i,r,s,a]=$r(t,e,n);let o=0,u=0,l=0,c=0,f=0,d,h,p;Rr(t,e,n,((t,e)=>{d=i[f++];h=Math.log(e);p=d*e;o+=(e*h-o)/f;u+=(p-u)/f;l+=(p*h-l)/f;c+=(d*p-c)/f}));const[m,g]=zr(u/a,o/a,l/a,c/a),y=t=>Math.exp(m+g*(t-s));return{coef:[Math.exp(m-g*s),g],predict:y,rSquared:Or(t,e,n,a,y)}}function Pr(t,e,n){let i=0,r=0,s=0,a=0,o=0,u=0;Rr(t,e,n,((t,e)=>{const n=Math.log(t),l=Math.log(e);++u;i+=(n-i)/u;r+=(l-r)/u;s+=(n*l-s)/u;a+=(n*n-a)/u;o+=(e-o)/u}));const l=zr(i,r,s,a),c=t=>l[0]*Math.pow(t,l[1]);l[0]=Math.exp(l[0]);return{coef:l,predict:c,rSquared:Or(t,e,n,o,c)}}function qr(t,e,n){const[i,r,s,a]=$r(t,e,n),o=i.length;let u=0,l=0,c=0,f=0,d=0,h,p,m,g;for(h=0;h{t=t-s;return b*t*t+x*t+_+a};return{coef:[_-x*s+b*s*s+a,x-2*b*s,b],predict:w,rSquared:Or(t,e,n,a,w)}}function Ir(t,e,n,i){if(i===0)return Br(t,e,n);if(i===1)return Tr(t,e,n);if(i===2)return qr(t,e,n);const[r,s,a,o]=$r(t,e,n),u=r.length,l=[],c=[],f=i+1;let d,h,p,m,g;for(d=0;d{t-=a;let e=o+y[0]+y[1]*t+y[2]*t*t;for(d=3;d=0;--s){o=e[s];u=1;r[s]+=o;for(a=1;a<=s;++a){u*=(s+1-a)/a;r[s-a]+=o*Math.pow(n,a)*u}}r[0]+=i;return r}function jr(t){const e=t.length-1,n=[];let i,r,s,a,o;for(i=0;iMath.abs(t[i][a])){a=r}}for(s=i;s=i;s--){t[s][r]-=t[s][i]*t[i][r]/t[i][i]}}}for(r=e-1;r>=0;--r){o=0;for(s=r+1;sr[a]-e?i:a;let u=0,l=0,h=0,p=0,m=0;const g=1/Math.abs(r[o]-e||1);for(let t=i;t<=a;++t){const n=r[t],i=s[t],a=Xr(Math.abs(e-n)*g)*d[t],o=n*a;u+=a;l+=o;h+=i*a;p+=i*o;m+=n*o}const[y,v]=zr(l/u,h/u,p/u,m/u);c[n]=y+v*e;f[n]=Math.abs(s[n]-c[n]);Hr(r,n+1,t)}if(h===Gr){break}const e=Qi(f);if(Math.abs(e)=1?Yr:(r=1-i*i)*r}}return Vr(r,c,a,o)}function Xr(t){return(t=1-t*t*t)*t*t}function Hr(t,e,n){const i=t[e];let r=n[0],s=n[1]+1;if(s>=t.length)return;while(e>r&&t[s]-i<=i-t[r]){n[0]=++r;n[1]=s;++s}}function Vr(t,e,n,i){const r=t.length,s=[];let a=0,o=0,u=[],l;for(;a[e,t(e)],s=e[0],a=e[1],o=a-s,u=o/i,l=[r(s)],c=[];if(n===i){for(let t=1;t0;){c.push(r(s+t/n*o))}}let f=l[0];let d=c[c.length-1];const h=1/o;const p=Zr(f[1],c);while(d){const t=r((f[0]+d[0])/2);const e=t[0]-f[0]>=u;if(e&&Jr(f,t,d,h,p)>Qr){c.push(t)}else{f=d;l.push(d);c.pop()}d=c[c.length-1]}return l}function Zr(t,e){let n=t;let i=t;const r=e.length;for(let s=0;si)i=t}return 1/(i-n)}function Jr(t,e,n,i,r){const s=Math.atan2(r*(n[1]-t[1]),i*(n[0]-t[0])),a=Math.atan2(r*(e[1]-t[1]),i*(e[0]-t[0]));return Math.abs(s-a)}function ts(t,e){let n=0;let i=0;if(e===undefined){for(let e of t){if(e!=null&&(e=+e)>=e){++n,i+=e}}}else{let r=-1;for(let s of t){if((s=e(s,++r,t))!=null&&(s=+s)>=s){++n,i+=s}}}if(n)return i/n}var es=n(18312);function ns(t){return e=>{const n=t.length;let i=1,r=String(t[0](e));for(;i{};const as={init:ss,add:ss,rem:ss,idx:0};const os={values:{init:t=>t.cell.store=true,value:t=>t.cell.data.values(),idx:-1},count:{value:t=>t.cell.num},__count__:{value:t=>t.missing+t.valid},missing:{value:t=>t.missing},valid:{value:t=>t.valid},sum:{init:t=>t.sum=0,value:t=>t.valid?t.sum:undefined,add:(t,e)=>t.sum+=+e,rem:(t,e)=>t.sum-=e},product:{init:t=>t.product=1,value:t=>t.valid?t.product:undefined,add:(t,e)=>t.product*=e,rem:(t,e)=>t.product/=e},mean:{init:t=>t.mean=0,value:t=>t.valid?t.mean:undefined,add:(t,e)=>(t.mean_d=e-t.mean,t.mean+=t.mean_d/t.valid),rem:(t,e)=>(t.mean_d=e-t.mean,t.mean-=t.valid?t.mean_d/t.valid:t.mean)},average:{value:t=>t.valid?t.mean:undefined,req:["mean"],idx:1},variance:{init:t=>t.dev=0,value:t=>t.valid>1?t.dev/(t.valid-1):undefined,add:(t,e)=>t.dev+=t.mean_d*(e-t.mean),rem:(t,e)=>t.dev-=t.mean_d*(e-t.mean),req:["mean"],idx:1},variancep:{value:t=>t.valid>1?t.dev/t.valid:undefined,req:["variance"],idx:2},stdev:{value:t=>t.valid>1?Math.sqrt(t.dev/(t.valid-1)):undefined,req:["variance"],idx:2},stdevp:{value:t=>t.valid>1?Math.sqrt(t.dev/t.valid):undefined,req:["variance"],idx:2},stderr:{value:t=>t.valid>1?Math.sqrt(t.dev/(t.valid*(t.valid-1))):undefined,req:["variance"],idx:2},distinct:{value:t=>t.cell.data.distinct(t.get),req:["values"],idx:3},ci0:{value:t=>t.cell.data.ci0(t.get),req:["values"],idx:3},ci1:{value:t=>t.cell.data.ci1(t.get),req:["values"],idx:3},median:{value:t=>t.cell.data.q2(t.get),req:["values"],idx:3},q1:{value:t=>t.cell.data.q1(t.get),req:["values"],idx:3},q3:{value:t=>t.cell.data.q3(t.get),req:["values"],idx:3},min:{init:t=>t.min=undefined,value:t=>t.min=Number.isNaN(t.min)?t.cell.data.min(t.get):t.min,add:(t,e)=>{if(e{if(e<=t.min)t.min=NaN},req:["values"],idx:4},max:{init:t=>t.max=undefined,value:t=>t.max=Number.isNaN(t.max)?t.cell.data.max(t.get):t.max,add:(t,e)=>{if(e>t.max||t.max===undefined)t.max=e},rem:(t,e)=>{if(e>=t.max)t.max=NaN},req:["values"],idx:4},argmin:{init:t=>t.argmin=undefined,value:t=>t.argmin||t.cell.data.argmin(t.get),add:(t,e,n)=>{if(e{if(e<=t.min)t.argmin=undefined},req:["min","values"],idx:3},argmax:{init:t=>t.argmax=undefined,value:t=>t.argmax||t.cell.data.argmax(t.get),add:(t,e,n)=>{if(e>t.max)t.argmax=n},rem:(t,e)=>{if(e>=t.max)t.argmax=undefined},req:["max","values"],idx:3},exponential:{init:(t,e)=>{t.exp=0;t.exp_r=e},value:t=>t.valid?t.exp*(1-t.exp_r)/(1-t.exp_r**t.valid):undefined,add:(t,e)=>t.exp=t.exp_r*t.exp+e,rem:(t,e)=>t.exp=(t.exp-e/t.exp_r**(t.valid-1))/t.exp_r},exponentialb:{value:t=>t.valid?t.exp*(1-t.exp_r):undefined,req:["exponential"],idx:1}};const us=Object.keys(os).filter((t=>t!=="__count__"));function ls(t,e){return(n,i)=>(0,p.X$)({name:t,aggregate_param:i,out:n||t},as,e)}[...us,"__count__"].forEach((t=>{os[t]=ls(t,os[t])}));function cs(t,e,n){return os[t](n,e)}function fs(t,e){return t.idx-e.idx}function ds(t){const e={};t.forEach((t=>e[t.name]=t));const n=t=>{if(!t.req)return;t.req.forEach((t=>{if(!e[t])n(e[t]=os[t]())}))};t.forEach(n);return Object.values(e).sort(fs)}function hs(){this.valid=0;this.missing=0;this._ops.forEach((t=>t.aggregate_param==null?t.init(this):t.init(this,t.aggregate_param)))}function ps(t,e){if(t==null||t===""){++this.missing;return}if(t!==t)return;++this.valid;this._ops.forEach((n=>n.add(this,t,e)))}function ms(t,e){if(t==null||t===""){--this.missing;return}if(t!==t)return;--this.valid;this._ops.forEach((n=>n.rem(this,t,e)))}function gs(t){this._out.forEach((e=>t[e.out]=e.value(this)));return t}function ys(t,e){const n=e||p.D_,i=ds(t),r=t.slice().sort(fs);function s(t){this._ops=i;this._out=r;this.cell=t;this.init()}s.prototype.init=hs;s.prototype.add=ps;s.prototype.rem=ms;s.prototype.set=gs;s.prototype.get=n;s.fields=t.map((t=>t.out));return s}function vs(t){this._key=t?(0,p.ZZ)(t):yn;this.reset()}const bs=vs.prototype;bs.reset=function(){this._add=[];this._rem=[];this._ext=null;this._get=null;this._q=null};bs.add=function(t){this._add.push(t)};bs.rem=function(t){this._rem.push(t)};bs.values=function(){this._get=null;if(this._rem.length===0)return this._add;const t=this._add,e=this._rem,n=this._key,i=t.length,r=e.length,s=Array(i-r),a={};let o,u,l;for(o=0;o=0){s=t(e[i])+"";if(!(0,p.mQ)(n,s)){n[s]=1;++r}}return r};bs.extent=function(t){if(this._get!==t||!this._ext){const e=this.values(),n=(0,p.n)(e,t);this._ext=[e[n[0]],e[n[1]]];this._get=t}return this._ext};bs.argmin=function(t){return this.extent(t)[0]||{}};bs.argmax=function(t){return this.extent(t)[1]||{}};bs.min=function(t){const e=this.extent(t)[0];return e!=null?t(e):undefined};bs.max=function(t){const e=this.extent(t)[1];return e!=null?t(e):undefined};bs.quartile=function(t){if(this._get!==t||!this._q){this._q=tr(this.values(),t);this._get=t}return this._q};bs.q1=function(t){return this.quartile(t)[0]};bs.q2=function(t){return this.quartile(t)[1]};bs.q3=function(t){return this.quartile(t)[2]};bs.ci=function(t){if(this._get!==t||!this._ci){this._ci=sr(this.values(),1e3,.05,t);this._get=t}return this._ci};bs.ci0=function(t){return this.ci(t)[0]};bs.ci1=function(t){return this.ci(t)[1]};function xs(t){zi.call(this,null,t);this._adds=[];this._mods=[];this._alen=0;this._mlen=0;this._drop=true;this._cross=false;this._dims=[];this._dnames=[];this._measures=[];this._countOnly=false;this._counts=null;this._prev=null;this._inputs=null;this._outputs=null}xs.Definition={type:"Aggregate",metadata:{generates:true,changes:true},params:[{name:"groupby",type:"field",array:true},{name:"ops",type:"enum",array:true,values:us},{name:"aggregate_params",type:"number",null:true,array:true},{name:"fields",type:"field",null:true,array:true},{name:"as",type:"string",null:true,array:true},{name:"drop",type:"boolean",default:true},{name:"cross",type:"boolean",default:false},{name:"key",type:"field"}]};(0,p.B)(xs,zi,{transform(t,e){const n=this,i=e.fork(e.NO_SOURCE|e.NO_FIELDS),r=t.modified();n.stamp=i.stamp;if(n.value&&(r||e.modified(n._inputs,true))){n._prev=n.value;n.value=r?n.init(t):Object.create(null);e.visit(e.SOURCE,(t=>n.add(t)))}else{n.value=n.value||n.init(t);e.visit(e.REM,(t=>n.rem(t)));e.visit(e.ADD,(t=>n.add(t)))}i.modifies(n._outputs);n._drop=t.drop!==false;if(t.cross&&n._dims.length>1){n._drop=false;n.cross()}if(e.clean()&&n._drop){i.clean(true).runAfter((()=>this.clean()))}return n.changes(i)},cross(){const t=this,e=t.value,n=t._dnames,i=n.map((()=>({}))),r=n.length;function s(t){let e,s,a,o;for(e in t){a=t[e].tuple;for(s=0;s{const e=(0,p.N6)(t);r(t);n.push(e);return e}));this.cellkey=t.key?t.key:is(this._dims);this._countOnly=true;this._counts=[];this._measures=[];const s=t.fields||[null],a=t.ops||["count"],o=t.aggregate_params||[null],u=t.as||[],l=s.length,c={};let f,d,h,m,g,y,v;if(l!==a.length){(0,p.z3)("Unmatched number of fields and aggregate ops.")}for(v=0;vys(t,t.field)));return Object.create(null)},cellkey:is(),cell(t,e){let n=this.value[t];if(!n){n=this.value[t]=this.newcell(t,e);this._adds[this._alen++]=n}else if(n.num===0&&this._drop&&n.stamp{const e=i(t);t[o]=e;t[u]=e==null?null:r+s*(1+(e-r)/s)}:t=>t[o]=i(t));return e.modifies(n?a:o)},_bins(t){if(this.value&&!t.modified()){return this.value}const e=t.field,n=nr(t),i=n.step;let r=n.start,s=r+Math.ceil((n.stop-r)/i)*i,a,o;if((a=t.anchor)!=null){o=a-(r+i*Math.floor((a-r)/i));r+=o;s+=o}const u=function(t){let n=(0,p.Ro)(e(t));return n==null?null:ns?+Infinity:(n=Math.max(r,Math.min(n,s-i)),r+i*Math.floor(_s+(n-r)/i))};u.start=r;u.stop=n.stop;u.step=i;return this.value=(0,p.sY)(u,(0,p.nS)(e),t.name||"bin_"+(0,p.N6)(e))}});function As(t,e,n){const i=t;let r=e||[],s=n||[],a={},o=0;return{add:t=>s.push(t),remove:t=>a[i(t)]=++o,size:()=>r.length,data:(t,e)=>{if(o){r=r.filter((t=>!a[i(t)]));a={};o=0}if(e&&t){r.sort(t)}if(s.length){r=t?(0,p.h1)(t,r,s.sort(t)):r.concat(s);s=[]}return r}}}function ks(t){zi.call(this,[],t)}ks.Definition={type:"Collect",metadata:{source:true},params:[{name:"sort",type:"compare"}]};(0,p.B)(ks,zi,{transform(t,e){const n=e.fork(e.ALL),i=As(yn,this.value,n.materialize(n.ADD).add),r=t.sort,s=e.changed()||r&&(t.modified("sort")||e.modified(r.fields));n.visit(n.REM,i.remove);this.modified(s);this.value=n.source=i.data(An(r),s);if(e.source&&e.source.root){this.value.root=e.source.root}return n}});function Es(t){$n.call(this,null,Ms,t)}(0,p.B)(Es,$n);function Ms(t){return this.value&&!t.modified()?this.value:(0,p.UD)(t.fields,t.orders)}function Ds(t){zi.call(this,null,t)}Ds.Definition={type:"CountPattern",metadata:{generates:true,changes:true},params:[{name:"field",type:"field",required:true},{name:"case",type:"enum",values:["upper","lower","mixed"],default:"mixed"},{name:"pattern",type:"string",default:'[\\w"]+'},{name:"stopwords",type:"string",default:""},{name:"as",type:"string",array:true,length:2,default:["text","count"]}]};function Cs(t,e,n){switch(e){case"upper":t=t.toUpperCase();break;case"lower":t=t.toLowerCase();break}return t.match(n)}(0,p.B)(Ds,zi,{transform(t,e){const n=e=>n=>{var i=Cs(o(n),t.case,s)||[],r;for(var u=0,l=i.length;ur[t]=1+(r[t]||0))),c=n((t=>r[t]-=1));if(i){e.visit(e.SOURCE,l)}else{e.visit(e.ADD,l);e.visit(e.REM,c)}return this._finish(e,u)},_parameterCheck(t,e){let n=false;if(t.modified("stopwords")||!this._stop){this._stop=new RegExp("^"+(t.stopwords||"")+"$","i");n=true}if(t.modified("pattern")||!this._match){this._match=new RegExp(t.pattern||"[\\w']+","g");n=true}if(t.modified("field")||e.modified(t.field.fields)){n=true}if(n)this._counts={};return n},_finish(t,e){const n=this._counts,i=this._tuples||(this._tuples={}),r=e[0],s=e[1],a=t.fork(t.NO_SOURCE|t.NO_FIELDS);let o,u,l;for(o in n){u=i[o];l=n[o]||0;if(!u&&l){i[o]=u=bn({});u[r]=o;u[s]=l;a.add.push(u)}else if(l===0){if(u)a.rem.push(u);n[o]=null;i[o]=null}else if(u[s]!==l){u[s]=l;a.mod.push(u)}}return a.modifies(e)}});function Fs(t){zi.call(this,null,t)}Fs.Definition={type:"Cross",metadata:{generates:true},params:[{name:"filter",type:"expr"},{name:"as",type:"string",array:true,length:2,default:["a","b"]}]};(0,p.B)(Fs,zi,{transform(t,e){const n=e.fork(e.NO_SOURCE),i=t.as||["a","b"],r=i[0],s=i[1],a=!this.value||e.changed(e.ADD_REM)||t.modified("as")||t.modified("filter");let o=this.value;if(a){if(o)n.rem=o;o=e.materialize(e.SOURCE).source;n.add=this.value=Ss(o,r,s,t.filter||p.vN)}else{n.mod=o}n.source=this.value;return n.modifies(i)}});function Ss(t,e,n,i){var r=[],s={},a=t.length,o=0,u,l;for(;oOs(t,e))))}else if(typeof i[r]===$s){i[r](t[r])}}return i}function Ts(t){zi.call(this,null,t)}const Ns=[{key:{function:"normal"},params:[{name:"mean",type:"number",default:0},{name:"stdev",type:"number",default:1}]},{key:{function:"lognormal"},params:[{name:"mean",type:"number",default:0},{name:"stdev",type:"number",default:1}]},{key:{function:"uniform"},params:[{name:"min",type:"number",default:0},{name:"max",type:"number",default:1}]},{key:{function:"kde"},params:[{name:"field",type:"field",required:true},{name:"from",type:"data"},{name:"bandwidth",type:"number",default:0}]}];const Ls={key:{function:"mixture"},params:[{name:"distributions",type:"param",array:true,params:Ns},{name:"weights",type:"number",array:true}]};Ts.Definition={type:"Density",metadata:{generates:true},params:[{name:"extent",type:"number",array:true,length:2},{name:"steps",type:"number"},{name:"minsteps",type:"number",default:25},{name:"maxsteps",type:"number",default:200},{name:"method",type:"string",default:"pdf",values:["pdf","cdf"]},{name:"distribution",type:"param",params:Ns.concat(Ls)},{name:"as",type:"string",array:true,default:["value","density"]}]};(0,p.B)(Ts,zi,{transform(t,e){const n=e.fork(e.NO_SOURCE|e.NO_FIELDS);if(!this.value||e.changed()||t.modified()){const i=Os(t.distribution,Ps(e)),r=t.steps||t.minsteps||25,s=t.steps||t.maxsteps||200;let a=t.method||"pdf";if(a!=="pdf"&&a!=="cdf"){(0,p.z3)("Invalid density method: "+a)}if(!t.extent&&!i.data){(0,p.z3)("Missing density extent parameter.")}a=i[a];const o=t.as||["value","density"],u=t.extent||(0,p.Xx)(i.data()),l=Kr(a,u,r,s).map((t=>{const e={};e[o[0]]=t[0];e[o[1]]=t[1];return bn(e)}));if(this.value)n.rem=this.value;this.value=n.add=n.source=l}return n}});function Ps(t){return()=>t.materialize(t.SOURCE).source}function qs(t,e){if(!t)return null;return t.map(((t,n)=>e[n]||(0,p.N6)(t)))}function Is(t,e,n){const i=[],r=t=>t(u);let s,a,o,u,l,c;if(e==null){i.push(t.map(n))}else{for(s={},a=0,o=t.length;a(0,p.Ln)((0,p.Xx)(t,e))/30;(0,p.B)(js,zi,{transform(t,e){if(this.value&&!(t.modified()||e.changed())){return e}const n=e.materialize(e.SOURCE).source,i=Is(e.source,t.groupby,p.D_),r=t.smooth||false,s=t.field,a=t.step||Gs(n,s),o=An(((t,e)=>s(t)-s(e))),u=t.as||Us,l=i.length;let c=Infinity,f=-Infinity,d=0,h;for(;df)f=e;t[++h][u]=e}}this.value={start:c,stop:f,step:a};return e.reflow(true).modifies(u)}});function Ys(t){$n.call(this,null,Ws,t);this.modified(true)}(0,p.B)(Ys,$n);function Ws(t){const e=t.expr;return this.value&&!t.modified("expr")?this.value:(0,p.sY)((n=>e(n,t)),(0,p.nS)(e),(0,p.N6)(e))}function Xs(t){zi.call(this,[undefined,undefined],t)}Xs.Definition={type:"Extent",metadata:{},params:[{name:"field",type:"field",required:true}]};(0,p.B)(Xs,zi,{transform(t,e){const n=this.value,i=t.field,r=e.changed()||e.modified(i.fields)||t.modified("field");let s=n[0],a=n[1];if(r||s==null){s=+Infinity;a=-Infinity}e.visit(r?e.SOURCE:e.ADD,(t=>{const e=(0,p.Ro)(i(t));if(e!=null){if(ea)a=e}}));if(!Number.isFinite(s)||!Number.isFinite(a)){let t=(0,p.N6)(i);if(t)t=` for field "${t}"`;e.dataflow.warn(`Infinite extent${t}: [${s}, ${a}]`);s=a=undefined}this.value=[s,a]}});function Hs(t,e){$n.call(this,t);this.parent=e;this.count=0}(0,p.B)(Hs,$n,{connect(t){this.detachSubflow=t.detachSubflow;this.targets().add(t);return t.source=this},add(t){this.count+=1;this.value.add.push(t)},rem(t){this.count-=1;this.value.rem.push(t)},mod(t){this.value.mod.push(t)},init(t){this.value.init(t,t.NO_SOURCE)},evaluate(){return this.value}});function Vs(t){zi.call(this,{},t);this._keys=(0,p.nG)();const e=this._targets=[];e.active=0;e.forEach=t=>{for(let n=0,i=e.active;nt&&t.count>0));this.initTargets(t)}},initTargets(t){const e=this._targets,n=e.length,i=t?t.length:0;let r=0;for(;rthis.subflow(t,r,e);this._group=t.group||{};this.initTargets();e.visit(e.REM,(t=>{const e=yn(t),n=s.get(e);if(n!==undefined){s.delete(e);o(n).rem(t)}}));e.visit(e.ADD,(t=>{const e=i(t);s.set(yn(t),e);o(e).add(t)}));if(a||e.modified(i.fields)){e.visit(e.MOD,(t=>{const e=yn(t),n=s.get(e),r=i(t);if(n===r){o(r).mod(t)}else{s.set(e,r);o(n).rem(t);o(r).add(t)}}))}else if(e.changed(e.MOD)){e.visit(e.MOD,(t=>{o(s.get(yn(t))).mod(t)}))}if(a){e.visit(e.REFLOW,(t=>{const e=yn(t),n=s.get(e),r=i(t);if(n!==r){s.set(e,r);o(n).rem(t);o(r).add(t)}}))}if(e.clean()){n.runAfter((()=>{this.clean();s.clean()}))}else if(s.empty>n.cleanThreshold){n.runAfter(s.clean)}return e}});function Qs(t){$n.call(this,null,Ks,t)}(0,p.B)(Qs,$n);function Ks(t){return this.value&&!t.modified()?this.value:(0,p.cy)(t.name)?(0,p.YO)(t.name).map((t=>(0,p.ZZ)(t))):(0,p.ZZ)(t.name,t.as)}function Zs(t){zi.call(this,(0,p.nG)(),t)}Zs.Definition={type:"Filter",metadata:{changes:true},params:[{name:"expr",type:"expr",required:true}]};(0,p.B)(Zs,zi,{transform(t,e){const n=e.dataflow,i=this.value,r=e.fork(),s=r.add,a=r.rem,o=r.mod,u=t.expr;let l=true;e.visit(e.REM,(t=>{const e=yn(t);if(!i.has(e))a.push(t);else i.delete(e)}));e.visit(e.ADD,(e=>{if(u(e,t))s.push(e);else i.set(yn(e),1)}));function c(e){const n=yn(e),r=u(e,t),c=i.get(n);if(r&&c){i.delete(n);s.push(e)}else if(!r&&!c){i.set(n,1);a.push(e)}else if(l&&r&&!c){o.push(e)}}e.visit(e.MOD,c);if(t.modified()){l=false;e.visit(e.REFLOW,c)}if(i.empty>n.cleanThreshold)n.runAfter(i.clean);return r}});function Js(t){zi.call(this,[],t)}Js.Definition={type:"Flatten",metadata:{generates:true},params:[{name:"fields",type:"field",array:true,required:true},{name:"index",type:"string"},{name:"as",type:"string",array:true}]};(0,p.B)(Js,zi,{transform(t,e){const n=e.fork(e.NO_SOURCE),i=t.fields,r=qs(i,t.as||[]),s=t.index||null,a=r.length;n.rem=this.value;e.visit(e.SOURCE,(t=>{const e=i.map((e=>e(t))),o=e.reduce(((t,e)=>Math.max(t,e.length)),0);let u=0,l,c,f;for(;u{for(let e=0,s;ee[i]=n(e,t)))}});function na(t){zi.call(this,[],t)}(0,p.B)(na,zi,{transform(t,e){const n=e.fork(e.ALL),i=t.generator;let r=this.value,s=t.size-r.length,a,o,u;if(s>0){for(a=[];--s>=0;){a.push(u=bn(i(t)));r.push(u)}n.add=n.add.length?n.materialize(n.ADD).add.concat(a):a}else{o=r.slice(0,-s);n.rem=n.rem.length?n.materialize(n.REM).rem.concat(o):o;r=r.slice(-s)}n.source=this.value=r;return n}});const ia={value:"value",median:Qi,mean:ts,min:Li.A,max:Ni.A};const ra=[];function sa(t){zi.call(this,[],t)}sa.Definition={type:"Impute",metadata:{changes:true},params:[{name:"field",type:"field",required:true},{name:"key",type:"field",required:true},{name:"keyvals",array:true},{name:"groupby",type:"field",array:true},{name:"method",type:"enum",default:"value",values:["value","mean","median","max","min"]},{name:"value",default:0}]};function aa(t){var e=t.method||ia.value,n;if(ia[e]==null){(0,p.z3)("Unrecognized imputation method: "+e)}else if(e===ia.value){n=t.value!==undefined?t.value:0;return()=>n}else{return ia[e]}}function oa(t){const e=t.field;return t=>t?e(t):NaN}(0,p.B)(sa,zi,{transform(t,e){var n=e.fork(e.ALL),i=aa(t),r=oa(t),s=(0,p.N6)(t.field),a=(0,p.N6)(t.key),o=(t.groupby||[]).map(p.N6),u=ua(e.source,t.groupby,t.key,t.keyvals),l=[],c=this.value,f=u.domain.length,d,h,m,g,y,v,b,x,_,w;for(y=0,x=u.length;yt(g),s=[],a=i?i.slice():[],o={},u={},l,c,f,d,h,p,m,g;a.forEach(((t,e)=>o[t]=e+1));for(d=0,m=t.length;dn.add(t)))}else{r=n.value=n.value||this.init(t);e.visit(e.REM,(t=>n.rem(t)));e.visit(e.ADD,(t=>n.add(t)))}n.changes();e.visit(e.SOURCE,(t=>{(0,p.X$)(t,r[n.cellkey(t)].tuple)}));return e.reflow(i).modifies(this._outputs)},changes(){const t=this._adds,e=this._mods;let n,i;for(n=0,i=this._alen;n{const n=br(e,a)[o],i=t.counts?e.length:1,r=c||(0,p.Xx)(e);Kr(n,r,f,d).forEach((t=>{const n={};for(let i=0;i{this._pending=(0,p.YO)(t.data);return t=>t.touch(this)}));return{async:e}}else{return n.request(t.url,t.format).then((t=>ma(this,e,(0,p.YO)(t.data))))}}});function pa(t){return t.modified("async")&&!(t.modified("values")||t.modified("url")||t.modified("format"))}function ma(t,e,n){n.forEach(bn);const i=e.fork(e.NO_FIELDS&e.NO_SOURCE);i.rem=t.value;t.value=i.source=i.add=n;t._pending=null;if(i.rem.length)i.clean(true);return i}function ga(t){zi.call(this,{},t)}ga.Definition={type:"Lookup",metadata:{modifies:true},params:[{name:"index",type:"index",params:[{name:"from",type:"data",required:true},{name:"key",type:"field",required:true}]},{name:"values",type:"field",array:true},{name:"fields",type:"field",array:true,required:true},{name:"as",type:"string",array:true},{name:"default",default:null}]};(0,p.B)(ga,zi,{transform(t,e){const n=t.fields,i=t.index,r=t.values,s=t.default==null?null:t.default,a=t.modified(),o=n.length;let u=a?e.SOURCE:e.ADD,l=e,c=t.as,f,d,h;if(r){d=r.length;if(o>1&&!c){(0,p.z3)('Multi-field lookup requires explicit "as" parameter.')}if(c&&c.length!==o*d){(0,p.z3)('The "as" parameter has too few output field names.')}c=c||r.map(p.N6);f=function(t){for(var e=0,a=0,u,l;ee.modified(t.fields)));u|=h?e.MOD:0}e.visit(u,f);return l.modifies(c)}});function ya(t){$n.call(this,null,va,t)}(0,p.B)(ya,$n);function va(t){if(this.value&&!t.modified()){return this.value}const e=t.extents,n=e.length;let i=+Infinity,r=-Infinity,s,a;for(s=0;sr)r=a[1]}return[i,r]}function ba(t){$n.call(this,null,xa,t)}(0,p.B)(ba,$n);function xa(t){return this.value&&!t.modified()?this.value:t.values.reduce(((t,e)=>t.concat(e)),[])}function _a(t){zi.call(this,null,t)}(0,p.B)(_a,zi,{transform(t,e){this.modified(t.modified());this.value=t;return e.fork(e.NO_SOURCE|e.NO_FIELDS)}});function wa(t){xs.call(this,t)}wa.Definition={type:"Pivot",metadata:{generates:true,changes:true},params:[{name:"groupby",type:"field",array:true},{name:"field",type:"field",required:true},{name:"value",type:"field",required:true},{name:"op",type:"enum",values:us,default:"sum"},{name:"limit",type:"number",default:0},{name:"key",type:"field"}]};(0,p.B)(wa,xs,{_transform:xs.prototype.transform,transform(t,e){return this._transform(Aa(t,e),e)}});function Aa(t,e){const n=t.field,i=t.value,r=(t.op==="count"?"__count__":t.op)||"sum",s=(0,p.nS)(n).concat((0,p.nS)(i)),a=Ea(n,t.limit||0,e);if(e.changed())t.set("__pivot__",null,null,true);return{key:t.key,groupby:t.groupby,ops:a.map((()=>r)),fields:a.map((t=>ka(t,n,i,s))),as:a.map((t=>t+"")),modified:t.modified.bind(t)}}function ka(t,e,n,i){return(0,p.sY)((i=>e(i)===t?n(i):NaN),i,t+"")}function Ea(t,e,n){const i={},r=[];n.visit(n.SOURCE,(e=>{const n=t(e);if(!i[n]){i[n]=1;r.push(n)}}));r.sort(p.V_);return e?r.slice(0,e):r}function Ma(t){Vs.call(this,t)}(0,p.B)(Ma,Vs,{transform(t,e){const n=t.subflow,i=t.field,r=t=>this.subflow(yn(t),n,e,t);if(t.modified("field")||i&&e.modified((0,p.nS)(i))){(0,p.z3)("PreFacet does not support field modification.")}this.initTargets();if(i){e.visit(e.MOD,(t=>{const e=r(t);i(t).forEach((t=>e.mod(t)))}));e.visit(e.ADD,(t=>{const e=r(t);i(t).forEach((t=>e.add(bn(t))))}));e.visit(e.REM,(t=>{const e=r(t);i(t).forEach((t=>e.rem(t)))}))}else{e.visit(e.MOD,(t=>r(t).mod(t)));e.visit(e.ADD,(t=>r(t).add(t)));e.visit(e.REM,(t=>r(t).rem(t)))}if(e.clean()){e.runAfter((()=>this.clean()))}return e}});function Da(t){zi.call(this,null,t)}Da.Definition={type:"Project",metadata:{generates:true,changes:true},params:[{name:"fields",type:"field",array:true},{name:"as",type:"string",null:true,array:true}]};(0,p.B)(Da,zi,{transform(t,e){const n=e.fork(e.NO_SOURCE),i=t.fields,r=qs(t.fields,t.as||[]),s=i?(t,e)=>Ca(t,e,i,r):_n;let a;if(this.value){a=this.value}else{e=e.addAll();a=this.value={}}e.visit(e.REM,(t=>{const e=yn(t);n.rem.push(a[e]);a[e]=null}));e.visit(e.ADD,(t=>{const e=s(t,bn({}));a[yn(t)]=e;n.add.push(e)}));e.visit(e.MOD,(t=>{n.mod.push(s(t,a[yn(t)]))}));return n}});function Ca(t,e,n,i){for(let r=0,s=n.length;r{const e=Ji(t,l);for(let n=0;n{const e=yn(t);n.rem.push(i[e]);i[e]=null}));e.visit(e.ADD,(t=>{const e=xn(t);i[yn(t)]=e;n.add.push(e)}));e.visit(e.MOD,(t=>{const e=i[yn(t)];for(const i in t){e[i]=t[i];n.modifies(i)}n.mod.push(e)}))}return n}});function $a(t){zi.call(this,[],t);this.count=0}$a.Definition={type:"Sample",metadata:{},params:[{name:"size",type:"number",default:1e3}]};(0,p.B)($a,zi,{transform(t,e){const n=e.fork(e.NO_SOURCE),i=t.modified("size"),r=t.size,s=this.value.reduce(((t,e)=>(t[yn(e)]=1,t)),{});let a=this.value,o=this.count,u=0;function l(t){let e,i;if(a.length=u){e=a[i];if(s[yn(e)])n.rem.push(e);a[i]=t}}++o}if(e.rem.length){e.visit(e.REM,(t=>{const e=yn(t);if(s[e]){s[e]=-1;n.rem.push(t)}--o}));a=a.filter((t=>s[yn(t)]!==-1))}if((e.rem.length||i)&&a.length{if(!s[yn(t)])l(t)}));u=-1}if(i&&a.length>r){const t=a.length-r;for(let e=0;e{if(s[yn(t)])n.mod.push(t)}))}if(e.add.length){e.visit(e.ADD,l)}if(e.add.length||u<0){n.add=a.filter((t=>!s[yn(t)]))}this.count=o;this.value=n.source=a;return n}});function Ra(t){zi.call(this,null,t)}Ra.Definition={type:"Sequence",metadata:{generates:true,changes:true},params:[{name:"start",type:"number",required:true},{name:"stop",type:"number",required:true},{name:"step",type:"number",default:1},{name:"as",type:"string",default:"data"}]};(0,p.B)(Ra,zi,{transform(t,e){if(this.value&&!t.modified())return;const n=e.materialize().fork(e.MOD),i=t.as||"data";n.rem=this.value?e.rem.concat(this.value):e.rem;this.value=(0,es.A)(t.start,t.stop,t.step||1).map((t=>{const e={};e[i]=t;return bn(e)}));n.add=e.add.concat(this.value);return n}});function Oa(t){zi.call(this,null,t);this.modified(true)}(0,p.B)(Oa,zi,{transform(t,e){this.value=e.source;return e.changed()?e.fork(e.NO_SOURCE|e.NO_FIELDS):e.StopPropagation}});function Ta(t){zi.call(this,null,t)}const Na=["unit0","unit1"];Ta.Definition={type:"TimeUnit",metadata:{modifies:true},params:[{name:"field",type:"field",required:true},{name:"interval",type:"boolean",default:true},{name:"units",type:"enum",values:ct,array:true},{name:"step",type:"number",default:1},{name:"maxbins",type:"number",default:40},{name:"extent",type:"date",array:true},{name:"timezone",type:"enum",default:"local",values:["local","utc"]},{name:"as",type:"string",array:true,length:2,default:Na}]};(0,p.B)(Ta,zi,{transform(t,e){const n=t.field,i=t.interval!==false,r=t.timezone==="utc",s=this._floor(t,e),a=(r?It:qt)(s.unit).offset,o=t.as||Na,u=o[0],l=o[1],c=s.step;let f=s.start||Infinity,d=s.stop||-Infinity,h=e.ADD;if(t.modified()||e.changed(e.REM)||e.modified((0,p.nS)(n))){e=e.reflow(true);h=e.SOURCE;f=Infinity;d=-Infinity}e.visit(h,(t=>{const e=n(t);let r,o;if(e==null){t[u]=null;if(i)t[l]=null}else{t[u]=r=o=s(e);if(i)t[l]=o=a(r,c);if(rd)d=o}}));s.start=f;s.stop=d;return e.modifies(i?o:u)},_floor(t,e){const n=t.timezone==="utc";const{units:i,step:r}=t.units?{units:t.units,step:t.step||1}:ce({extent:t.extent||(0,p.Xx)(e.materialize(e.SOURCE).source,t.field),maxbins:t.maxbins});const s=dt(i),a=this.value||{},o=(n?Nt:Rt)(s,r);o.unit=(0,p.se)(s);o.units=s;o.step=r;o.start=a.start;o.stop=a.stop;return this.value=o}});function La(t){zi.call(this,(0,p.nG)(),t)}(0,p.B)(La,zi,{transform(t,e){const n=e.dataflow,i=t.field,r=this.value,s=t=>r.set(i(t),t);let a=true;if(t.modified("field")||e.modified(i.fields)){r.clear();e.visit(e.SOURCE,s)}else if(e.changed()){e.visit(e.REM,(t=>r.delete(i(t))));e.visit(e.ADD,s)}else{a=false}this.modified(a);if(r.empty>n.cleanThreshold)n.runAfter(r.clean);return e.fork()}});function Pa(t){zi.call(this,null,t)}(0,p.B)(Pa,zi,{transform(t,e){const n=!this.value||t.modified("field")||t.modified("sort")||e.changed()||t.sort&&e.modified(t.sort.fields);if(n){this.value=(t.sort?e.source.slice().sort(An(t.sort)):e.source).map(t.field)}}});function qa(t,e,n,i){const r=Ia[t](e,n);return{init:r.init||p.v_,update:function(t,e){e[i]=r.next(t)}}}const Ia={row_number:function(){return{next:t=>t.index+1}},rank:function(){let t;return{init:()=>t=1,next:e=>{const n=e.index,i=e.data;return n&&e.compare(i[n-1],i[n])?t=n+1:t}}},dense_rank:function(){let t;return{init:()=>t=1,next:e=>{const n=e.index,i=e.data;return n&&e.compare(i[n-1],i[n])?++t:t}}},percent_rank:function(){const t=Ia.rank(),e=t.next;return{init:t.init,next:t=>(e(t)-1)/(t.data.length-1)}},cume_dist:function(){let t;return{init:()=>t=0,next:e=>{const n=e.data,i=e.compare;let r=e.index;if(t0))(0,p.z3)("ntile num must be greater than zero.");const n=Ia.cume_dist(),i=n.next;return{init:n.init,next:t=>Math.ceil(e*i(t))}},lag:function(t,e){e=+e||1;return{next:n=>{const i=n.index-e;return i>=0?t(n.data[i]):null}}},lead:function(t,e){e=+e||1;return{next:n=>{const i=n.index+e,r=n.data;return it(e.data[e.i0])}},last_value:function(t){return{next:e=>t(e.data[e.i1-1])}},nth_value:function(t,e){e=+e;if(!(e>0))(0,p.z3)("nth_value nth must be greater than zero.");return{next:n=>{const i=n.i0+(e-1);return ie=null,next:n=>{const i=t(n.data[n.index]);return i!=null?e=i:e}}},next_value:function(t){let e,n;return{init:()=>(e=null,n=-1),next:i=>{const r=i.data;return i.index<=n?e:(n=Ua(t,r,i.index))<0?(n=r.length,e=null):e=t(r[n])}}}};function Ua(t,e,n){for(let i=e.length;nu[t]=1))}h(t.sort);e.forEach(((t,e)=>{const u=n[e],m=i[e],g=r[e]||null,y=(0,p.N6)(u),v=rs(t,y,s[e]);h(u);a.push(v);if((0,p.mQ)(Ia,t)){o.push(qa(t,u,m,v))}else{if(u==null&&t!=="count"){(0,p.z3)("Null aggregate field specified.")}if(t==="count"){c.push(v);return}d=false;let e=l[y];if(!e){e=l[y]=[];e.field=u;f.push(e)}e.push(cs(t,g,v))}}));if(c.length||f.length){this.cell=Wa(f,c,d)}this.inputs=Object.keys(u)}const Ya=Ga.prototype;Ya.init=function(){this.windows.forEach((t=>t.init()));if(this.cell)this.cell.init()};Ya.update=function(t,e){const n=this.cell,i=this.windows,r=t.data,s=i&&i.length;let a;if(n){for(a=t.p0;ays(t,t.field)));const i={num:0,agg:null,store:false,count:e};if(!n){var r=t.length,s=i.agg=Array(r),a=0;for(;athis.group(r(t));let a=this.state;if(!a||n){a=this.state=new Ga(t)}if(n||e.modified(a.inputs)){this.value={};e.visit(e.SOURCE,(t=>s(t).add(t)))}else{e.visit(e.REM,(t=>s(t).remove(t)));e.visit(e.ADD,(t=>s(t).add(t)))}for(let o=0,u=this._mlen;o0&&!r(s[n],s[n-1]))t.i0=e.left(s,s[n]);if(i=f;--d){o.point(y[d],v[d])}o.lineEnd();o.areaEnd()}}if(m){y[c]=+t(p,c,l),v[c]=+e(p,c,l);o.point(i?+i(p,c,l):y[c],n?+n(p,c,l):v[c])}}if(g)return o=null,g+""||null}function c(){return(0,go.A)().defined(r).curve(a).context(s)}l.x=function(e){return arguments.length?(t=typeof e==="function"?e:(0,mo.A)(+e),i=null,l):t};l.x0=function(e){return arguments.length?(t=typeof e==="function"?e:(0,mo.A)(+e),l):t};l.x1=function(t){return arguments.length?(i=t==null?null:typeof t==="function"?t:(0,mo.A)(+t),l):i};l.y=function(t){return arguments.length?(e=typeof t==="function"?t:(0,mo.A)(+t),n=null,l):e};l.y0=function(t){return arguments.length?(e=typeof t==="function"?t:(0,mo.A)(+t),l):e};l.y1=function(t){return arguments.length?(n=t==null?null:typeof t==="function"?t:(0,mo.A)(+t),l):n};l.lineX0=l.lineY0=function(){return c().x(t).y(e)};l.lineY1=function(){return c().x(t).y(n)};l.lineX1=function(){return c().x(i).y(e)};l.defined=function(t){return arguments.length?(r=typeof t==="function"?t:(0,mo.A)(!!t),l):r};l.curve=function(t){return arguments.length?(a=t,s!=null&&(o=a(s)),l):a};l.context=function(t){return arguments.length?(t==null?s=o=null:o=a(s=t),l):s};return l}var xo=n(98247);const _o=(0,xo.RZ)(3);const wo={draw(t,e){const n=(0,xo.RZ)(e+(0,xo.jk)(e/28,.75))*.59436;const i=n/2;const r=i*_o;t.moveTo(0,n);t.lineTo(0,-n);t.moveTo(-r,-i);t.lineTo(r,i);t.moveTo(-r,i);t.lineTo(r,-i)}};const Ao={draw(t,e){const n=(0,xo.RZ)(e/xo.pi);t.moveTo(n,0);t.arc(0,0,n,0,xo.FA)}};const ko={draw(t,e){const n=(0,xo.RZ)(e/5)/2;t.moveTo(-3*n,-n);t.lineTo(-n,-n);t.lineTo(-n,-3*n);t.lineTo(n,-3*n);t.lineTo(n,-n);t.lineTo(3*n,-n);t.lineTo(3*n,n);t.lineTo(n,n);t.lineTo(n,3*n);t.lineTo(-n,3*n);t.lineTo(-n,n);t.lineTo(-3*n,n);t.closePath()}};const Eo=(0,xo.RZ)(1/3);const Mo=Eo*2;const Do={draw(t,e){const n=(0,xo.RZ)(e/Mo);const i=n*Eo;t.moveTo(0,-n);t.lineTo(i,0);t.lineTo(0,n);t.lineTo(-i,0);t.closePath()}};const Co={draw(t,e){const n=(0,xo.RZ)(e)*.62625;t.moveTo(0,-n);t.lineTo(n,0);t.lineTo(0,n);t.lineTo(-n,0);t.closePath()}};const Fo={draw(t,e){const n=(0,xo.RZ)(e-(0,xo.jk)(e/7,2))*.87559;t.moveTo(-n,0);t.lineTo(n,0);t.moveTo(0,n);t.lineTo(0,-n)}};const So={draw(t,e){const n=(0,xo.RZ)(e);const i=-n/2;t.rect(i,i,n,n)}};const Bo={draw(t,e){const n=(0,xo.RZ)(e)*.4431;t.moveTo(n,n);t.lineTo(n,-n);t.lineTo(-n,-n);t.lineTo(-n,n);t.closePath()}};const zo=.8908130915292852;const $o=(0,xo.F8)(xo.pi/10)/(0,xo.F8)(7*xo.pi/10);const Ro=(0,xo.F8)(xo.FA/10)*$o;const Oo=-(0,xo.gn)(xo.FA/10)*$o;const To={draw(t,e){const n=(0,xo.RZ)(e*zo);const i=Ro*n;const r=Oo*n;t.moveTo(0,-n);t.lineTo(i,r);for(let s=1;s<5;++s){const e=xo.FA*s/5;const a=(0,xo.gn)(e);const o=(0,xo.F8)(e);t.lineTo(o*n,-a*n);t.lineTo(a*i-o*r,o*i+a*r)}t.closePath()}};const No=(0,xo.RZ)(3);const Lo={draw(t,e){const n=-(0,xo.RZ)(e/(No*3));t.moveTo(0,n*2);t.lineTo(-No*n,-n);t.lineTo(No*n,-n);t.closePath()}};const Po=(0,xo.RZ)(3);const qo={draw(t,e){const n=(0,xo.RZ)(e)*.6824;const i=n/2;const r=n*Po/2;t.moveTo(0,-n);t.lineTo(r,i);t.lineTo(-r,i);t.closePath()}};const Io=-.5;const Uo=(0,xo.RZ)(3)/2;const jo=1/(0,xo.RZ)(12);const Go=(jo/2+1)*3;const Yo={draw(t,e){const n=(0,xo.RZ)(e/Go);const i=n/2,r=n*jo;const s=i,a=n*jo+n;const o=-s,u=a;t.moveTo(i,r);t.lineTo(s,a);t.lineTo(o,u);t.lineTo(Io*i-Uo*r,Uo*i+Io*r);t.lineTo(Io*s-Uo*a,Uo*s+Io*a);t.lineTo(Io*o-Uo*u,Uo*o+Io*u);t.lineTo(Io*i+Uo*r,Io*r-Uo*i);t.lineTo(Io*s+Uo*a,Io*a-Uo*s);t.lineTo(Io*o+Uo*u,Io*u-Uo*o);t.closePath()}};const Wo={draw(t,e){const n=(0,xo.RZ)(e-(0,xo.jk)(e/6,1.7))*.6189;t.moveTo(-n,-n);t.lineTo(n,n);t.moveTo(-n,n);t.lineTo(n,-n)}};const Xo=[Ao,ko,Do,So,To,Lo,Yo];const Ho=[Ao,Fo,Wo,qo,wo,Bo,Co];function Vo(t,e){let n=null,i=(0,yo.i)(r);t=typeof t==="function"?t:(0,mo.A)(t||Ao);e=typeof e==="function"?e:(0,mo.A)(e===undefined?64:+e);function r(){let r;if(!n)n=r=i();t.apply(this,arguments).draw(n,+e.apply(this,arguments));if(r)return n=null,r+""||null}r.type=function(e){return arguments.length?(t=typeof e==="function"?e:(0,mo.A)(e),r):t};r.size=function(t){return arguments.length?(e=typeof t==="function"?t:(0,mo.A)(+t),r):e};r.context=function(t){return arguments.length?(n=t==null?null:t,r):n};return r}var Qo=n(69450);function Ko(t,e){if(typeof document!=="undefined"&&document.createElement){const n=document.createElement("canvas");if(n&&n.getContext){n.width=t;n.height=e;return n}}return null}const Zo=()=>typeof Image!=="undefined"?Image:null;var Jo=n(71363);var tu=n(20481);var eu=n(60117);function nu(t){var e;function n(t){return t==null||isNaN(t=+t)?e:t}n.invert=n;n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,eu.A),n):t.slice()};n.unknown=function(t){return arguments.length?(e=t,n):e};n.copy=function(){return nu(t).unknown(e)};t=arguments.length?Array.from(t,eu.A):[0,1];return(0,tu.C)(n)}var iu=n(60125);var ru=n(52178);var su=n(25758);function au(t){return Math.log(t)}function ou(t){return Math.exp(t)}function uu(t){return-Math.log(-t)}function lu(t){return-Math.exp(-t)}function cu(t){return isFinite(t)?+("1e"+t):t<0?0:t}function fu(t){return t===10?cu:t===Math.E?Math.exp:e=>Math.pow(t,e)}function du(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function hu(t){return(e,n)=>-t(-e,n)}function pu(t){const e=t(au,ou);const n=e.domain;let i=10;let r;let s;function a(){r=du(i),s=fu(i);if(n()[0]<0){r=hu(r),s=hu(s);t(uu,lu)}else{t(au,ou)}return e}e.base=function(t){return arguments.length?(i=+t,a()):i};e.domain=function(t){return arguments.length?(n(t),a()):n()};e.ticks=t=>{const e=n();let a=e[0];let o=e[e.length-1];const u=o0)for(;l<=c;++l){for(f=1;fo)break;p.push(d)}}else for(;l<=c;++l){for(f=i-1;f>=1;--f){d=l>0?f/s(-l):f*s(l);if(do)break;p.push(d)}}if(p.length*2{if(t==null)t=10;if(n==null)n=i===10?"s":",";if(typeof n!=="function"){if(!(i%1)&&(n=(0,L.A)(n)).precision==null)n.trim=true;n=(0,U.GP)(n)}if(t===Infinity)return n;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/s(Math.round(r(t)));if(e*in((0,iu.A)(n(),{floor:t=>s(Math.floor(r(t))),ceil:t=>s(Math.ceil(r(t)))}));return e}function mu(){const t=pu((0,ru.Gu)()).domain([1,10]);t.copy=()=>(0,ru.C)(t,mu()).base(t.base());su.C.apply(t,arguments);return t}function gu(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function yu(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function vu(t){return t<0?-t*t:t*t}function bu(t){var e=t(ru.D_,ru.D_),n=1;function i(){return n===1?t(ru.D_,ru.D_):n===.5?t(yu,vu):t(gu(n),gu(1/n))}e.exponent=function(t){return arguments.length?(n=+t,i()):n};return(0,tu.C)(e)}function xu(){var t=bu((0,ru.Gu)());t.copy=function(){return(0,ru.C)(t,xu()).exponent(t.exponent())};su.C.apply(t,arguments);return t}function _u(){return xu.apply(null,arguments).exponent(.5)}function wu(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Au(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function ku(t){var e=1,n=t(wu(e),Au(e));n.constant=function(n){return arguments.length?t(wu(e=+n),Au(e)):e};return(0,tu.C)(n)}function Eu(){var t=ku((0,ru.Gu)());t.copy=function(){return(0,ru.C)(t,Eu()).constant(t.constant())};return su.C.apply(t,arguments)}var Mu=n(74725);var Du=n(20421);function Cu(){return su.C.apply((0,Mu.B)(Du.$Z,Du.lk,W.Mb,X.R6,Y.Hl,G.dA,H.pz,V.vD,Q.R,fe.aL).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}var Fu=n(21406);var Su=n(15307);function Bu(){var t=0,e=1,n,i,r,s,a=ru.D_,o=false,u;function l(t){return t==null||isNaN(t=+t)?u:a(r===0?.5:(t=(s(t)-n)*r,o?Math.max(0,Math.min(1,t)):t))}l.domain=function(a){return arguments.length?([t,e]=a,n=s(t=+t),i=s(e=+e),r=n===i?0:1/(i-n),l):[t,e]};l.clamp=function(t){return arguments.length?(o=!!t,l):o};l.interpolator=function(t){return arguments.length?(a=t,l):a};function c(t){return function(e){var n,i;return arguments.length?([n,i]=e,a=t(n,i),l):[a(0),a(1)]}}l.range=c(Fu.A);l.rangeRound=c(Su.A);l.unknown=function(t){return arguments.length?(u=t,l):u};return function(a){s=a,n=a(t),i=a(e),r=n===i?0:1/(i-n);return l}}function zu(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function $u(){var t=(0,tu.C)(Bu()(ru.D_));t.copy=function(){return zu(t,$u())};return su.K.apply(t,arguments)}function Ru(){var t=pu(Bu()).domain([1,10]);t.copy=function(){return zu(t,Ru()).base(t.base())};return su.K.apply(t,arguments)}function Ou(){var t=ku(Bu());t.copy=function(){return zu(t,Ou()).constant(t.constant())};return su.K.apply(t,arguments)}function Tu(){var t=bu(Bu());t.copy=function(){return zu(t,Tu()).exponent(t.exponent())};return su.K.apply(t,arguments)}function Nu(){return Tu.apply(null,arguments).exponent(.5)}var Lu=n(99793);function Pu(){var t=0,e=.5,n=1,i=1,r,s,a,o,u,l=ru.D_,c,f=false,d;function h(t){return isNaN(t=+t)?d:(t=.5+((t=+c(t))-s)*(i*t0?n[r-1]:t[0],r=n?[i[n-1],e]:[i[a-1],i[a]]};a.unknown=function(t){return arguments.length?(s=t,a):a};a.thresholds=function(){return i.slice()};a.copy=function(){return Wu().domain([t,e]).range(r).unknown(s)};return su.C.apply((0,tu.C)(a),arguments)}function Xu(){var t=[.5],e=[0,1],n,i=1;function r(r){return r!=null&&r<=r?e[(0,Jo.Ay)(t,r,0,i)]:n}r.domain=function(n){return arguments.length?(t=Array.from(n),i=Math.min(t.length,e.length-1),r):t.slice()};r.range=function(n){return arguments.length?(e=Array.from(n),i=Math.min(t.length,e.length-1),r):e.slice()};r.invertExtent=function(n){var i=e.indexOf(n);return[t[i-1],t[i]]};r.unknown=function(t){return arguments.length?(n=t,r):n};r.copy=function(){return Xu().domain(t).range(e).unknown(n)};return su.C.apply(r,arguments)}var Hu=n(16527);var Vu=n(26698);var Qu=n(67360);var Ku=n(58177);const Zu=(0,Ku.A)("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");const Ju=(0,Ku.A)("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");const tl=(0,Ku.A)("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");const el=(0,Ku.A)("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0");const nl=(0,Ku.A)("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");const il=(0,Ku.A)("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");const rl=(0,Ku.A)("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");const sl=(0,Ku.A)("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");const al=(0,Ku.A)("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");const ol=(0,Ku.A)("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function ul(t,e,n){const i=t-e+n*2;return t?i>0?i:1:0}const ll="identity";const cl="linear";const fl="log";const dl="pow";const hl="sqrt";const pl="symlog";const ml="time";const gl="utc";const yl="sequential";const vl="diverging";const bl="quantile";const xl="quantize";const _l="threshold";const wl="ordinal";const Al="point";const kl="band";const El="bin-ordinal";const Ml="continuous";const Dl="discrete";const Cl="discretizing";const Fl="interpolating";const Sl="temporal";function Bl(t){return function(e){let n=e[0],i=e[1],r;if(i=i&&n[u]<=r){if(s<0)s=u;a=u}}if(s<0)return undefined;i=t.invertExtent(n[s]);r=t.invertExtent(n[a]);return[i[0]===undefined?i[1]:i[0],r[1]===undefined?r[0]:r[1]]}}function $l(){const t=(0,Hu.A)().unknown(undefined),e=t.domain,n=t.range;let i=[0,1],r,s,a=false,o=0,u=0,l=.5;delete t.unknown;function c(){const t=e().length,c=i[1]h+r*t));return n(c?p.reverse():p)}t.domain=function(t){if(arguments.length){e(t);return c()}else{return e()}};t.range=function(t){if(arguments.length){i=[+t[0],+t[1]];return c()}else{return i.slice()}};t.rangeRound=function(t){i=[+t[0],+t[1]];a=true;return c()};t.bandwidth=function(){return s};t.step=function(){return r};t.round=function(t){if(arguments.length){a=!!t;return c()}else{return a}};t.padding=function(t){if(arguments.length){u=Math.max(0,Math.min(1,t));o=u;return c()}else{return o}};t.paddingInner=function(t){if(arguments.length){o=Math.max(0,Math.min(1,t));return c()}else{return o}};t.paddingOuter=function(t){if(arguments.length){u=Math.max(0,Math.min(1,t));return c()}else{return u}};t.align=function(t){if(arguments.length){l=Math.max(0,Math.min(1,t));return c()}else{return l}};t.invertRange=function(t){if(t[0]==null||t[1]==null)return;const r=i[1]i[1-r])return;c=Math.max(0,(0,Jo.Jj)(a,u)-1);f=u===l?c:(0,Jo.Jj)(a,l)-1;if(u-a[c]>s+1e-10)++c;if(r){d=c;c=o-f;f=o-d}return c>f?undefined:e().slice(c,f+1)};t.invert=function(e){const n=t.invertRange([e,e]);return n?n[0]:n};t.copy=function(){return $l().domain(e()).range(i).round(a).paddingInner(o).paddingOuter(u).align(l)};return c()}function Rl(t){const e=t.copy;t.padding=t.paddingOuter;delete t.paddingInner;t.copy=function(){return Rl(e())};return t}function Ol(){return Rl($l().paddingInner(1))}var Tl=Array.prototype.map;function Nl(t){return Tl.call(t,p.Ro)}const Ll=Array.prototype.slice;function Pl(){let t=[],e=[];function n(n){return n==null||n!==n?undefined:e[((0,Jo.Ay)(t,n)-1)%e.length]}n.domain=function(e){if(arguments.length){t=Nl(e);return n}else{return t.slice()}};n.range=function(t){if(arguments.length){e=Ll.call(t);return n}else{return e.slice()}};n.tickFormat=function(e,n){return(0,Vu.A)(t[0],(0,p.se)(t),e==null?10:e,n)};n.copy=function(){return Pl().domain(n.domain()).range(n.range())};return n}const ql=new Map;const Il=Symbol("vega_scale");function Ul(t){t[Il]=true;return t}function jl(t){return t&&t[Il]===true}function Gl(t,e,n){const i=function n(){const i=e();if(!i.invertRange){i.invertRange=i.invert?Bl(i):i.invertExtent?zl(i):undefined}i.type=t;return Ul(i)};i.metadata=(0,p.M1)((0,p.YO)(n));return i}function Yl(t,e,n){if(arguments.length>1){ql.set(t,Gl(t,e,n));return this}else{return Wl(t)?ql.get(t):undefined}}Yl(ll,nu);Yl(cl,tu.A,Ml);Yl(fl,mu,[Ml,fl]);Yl(dl,xu,Ml);Yl(hl,_u,Ml);Yl(pl,Eu,Ml);Yl(ml,Mu.A,[Ml,Sl]);Yl(gl,Cu,[Ml,Sl]);Yl(yl,$u,[Ml,Fl]);Yl(`${yl}-${cl}`,$u,[Ml,Fl]);Yl(`${yl}-${fl}`,Ru,[Ml,Fl,fl]);Yl(`${yl}-${dl}`,Tu,[Ml,Fl]);Yl(`${yl}-${hl}`,Nu,[Ml,Fl]);Yl(`${yl}-${pl}`,Ou,[Ml,Fl]);Yl(`${vl}-${cl}`,qu,[Ml,Fl]);Yl(`${vl}-${fl}`,Iu,[Ml,Fl,fl]);Yl(`${vl}-${dl}`,ju,[Ml,Fl]);Yl(`${vl}-${hl}`,Gu,[Ml,Fl]);Yl(`${vl}-${pl}`,Uu,[Ml,Fl]);Yl(bl,Yu,[Cl,bl]);Yl(xl,Wu,Cl);Yl(_l,Xu,Cl);Yl(El,Pl,[Dl,Cl]);Yl(wl,Hu.A,Dl);Yl(kl,$l,Dl);Yl(Al,Ol,Dl);function Wl(t){return ql.has(t)}function Xl(t,e){const n=ql.get(t);return n&&n.metadata[e]}function Hl(t){return Xl(t,Ml)}function Vl(t){return Xl(t,Dl)}function Ql(t){return Xl(t,Cl)}function Kl(t){return Xl(t,fl)}function Zl(t){return Xl(t,Sl)}function Jl(t){return Xl(t,Fl)}function tc(t){return Xl(t,bl)}const ec=["clamp","base","constant","exponent"];function nc(t,e){const n=e[0],i=(0,p.se)(e)-n;return function(e){return t(n+e*i)}}function ic(t,e,n){return Lu.A(oc(e||"rgb",n),t)}function rc(t,e){const n=new Array(e),i=e+1;for(let r=0;rt[e]?a[e](t[e]()):0));return a}}function oc(t,e){const n=Qu[uc(t)];return e!=null&&n&&n.gamma?n.gamma(e):n}function uc(t){return"interpolate"+t.toLowerCase().split("-").map((t=>t[0].toUpperCase()+t.slice(1))).join("")}const lc={blues:"cfe1f2bed8eca8cee58fc1de74b2d75ba3cf4592c63181bd206fb2125ca40a4a90",greens:"d3eecdc0e6baabdda594d3917bc77d60ba6c46ab5e329a512089430e7735036429",greys:"e2e2e2d4d4d4c4c4c4b1b1b19d9d9d8888887575756262624d4d4d3535351e1e1e",oranges:"fdd8b3fdc998fdb87bfda55efc9244f87f2cf06b18e4580bd14904b93d029f3303",purples:"e2e1efd4d4e8c4c5e0b4b3d6a3a0cc928ec3827cb97566ae684ea25c3696501f8c",reds:"fdc9b4fcb49afc9e80fc8767fa7051f6573fec3f2fdc2a25c81b1db21218970b13",blueGreen:"d5efedc1e8e0a7ddd18bd2be70c6a958ba9144ad77319c5d2089460e7736036429",bluePurple:"ccddecbad0e4a8c2dd9ab0d4919cc98d85be8b6db28a55a6873c99822287730f71",greenBlue:"d3eecec5e8c3b1e1bb9bd8bb82cec269c2ca51b2cd3c9fc7288abd1675b10b60a1",orangeRed:"fddcaffdcf9bfdc18afdad77fb9562f67d53ee6545e24932d32d1ebf130da70403",purpleBlue:"dbdaebc8cee4b1c3de97b7d87bacd15b9fc93a90c01e7fb70b70ab056199045281",purpleBlueGreen:"dbd8eac8cee4b0c3de93b7d872acd1549fc83892bb1c88a3097f8702736b016353",purpleRed:"dcc9e2d3b3d7ce9eccd186c0da6bb2e14da0e23189d91e6fc61159ab07498f023a",redPurple:"fccfccfcbec0faa9b8f98faff571a5ec539ddb3695c41b8aa908808d0179700174",yellowGreen:"e4f4acd1eca0b9e2949ed68880c97c62bb6e47aa5e3297502083440e723b036034",yellowOrangeBrown:"feeaa1fedd84fecc63feb746fca031f68921eb7215db5e0bc54c05ab3d038f3204",yellowOrangeRed:"fee087fed16ffebd59fea849fd903efc7335f9522bee3423de1b20ca0b22af0225",blueOrange:"134b852f78b35da2cb9dcae1d2e5eff2f0ebfce0bafbbf74e8932fc5690d994a07",brownBlueGreen:"704108a0651ac79548e3c78af3e6c6eef1eac9e9e48ed1c74da79e187a72025147",purpleGreen:"5b1667834792a67fb6c9aed3e6d6e8eff0efd9efd5aedda971bb75368e490e5e29",purpleOrange:"4114696647968f83b7b9b4d6dadbebf3eeeafce0bafbbf74e8932fc5690d994a07",redBlue:"8c0d25bf363adf745ef4ae91fbdbc9f2efeed2e5ef9dcae15da2cb2f78b3134b85",redGrey:"8c0d25bf363adf745ef4ae91fcdccbfaf4f1e2e2e2c0c0c0969696646464343434",yellowGreenBlue:"eff9bddbf1b4bde5b594d5b969c5be45b4c22c9ec02182b82163aa23479c1c3185",redYellowBlue:"a50026d4322cf16e43fcac64fedd90faf8c1dcf1ecabd6e875abd04a74b4313695",redYellowGreen:"a50026d4322cf16e43fcac63fedd8df9f7aed7ee8ea4d86e64bc6122964f006837",pinkYellowGreen:"8e0152c0267edd72adf0b3d6faddedf5f3efe1f2cab6de8780bb474f9125276419",spectral:"9e0142d13c4bf0704afcac63fedd8dfbf8b0e0f3a1a9dda269bda94288b55e4fa2",viridis:"440154470e61481a6c482575472f7d443a834144873d4e8a39568c35608d31688e2d708e2a788e27818e23888e21918d1f988b1fa08822a8842ab07f35b77943bf7154c56866cc5d7ad1518fd744a5db36bcdf27d2e21be9e51afde725",magma:"0000040404130b0924150e3720114b2c11603b0f704a107957157e651a80721f817f24828c29819a2e80a8327db6377ac43c75d1426fde4968e95462f1605df76f5cfa7f5efc8f65fe9f6dfeaf78febf84fece91fddea0fcedaffcfdbf",inferno:"0000040403130c0826170c3b240c4f330a5f420a68500d6c5d126e6b176e781c6d86216b932667a12b62ae305cbb3755c73e4cd24644dd513ae65c30ed6925f3771af8850ffb9506fca50afcb519fac62df6d645f2e661f3f484fcffa4",plasma:"0d088723069033059742039d5002a25d01a66a00a87801a88405a7900da49c179ea72198b12a90ba3488c33d80cb4779d35171da5a69e16462e76e5bed7953f2834cf68f44fa9a3dfca636fdb32ffec029fcce25f9dc24f5ea27f0f921",cividis:"00205100235800265d002961012b65042e670831690d346b11366c16396d1c3c6e213f6e26426e2c456e31476e374a6e3c4d6e42506e47536d4c566d51586e555b6e5a5e6e5e616e62646f66676f6a6a706e6d717270717573727976737c79747f7c75827f758682768985778c8877908b78938e789691789a94789e9778a19b78a59e77a9a177aea575b2a874b6ab73bbaf71c0b26fc5b66dc9b96acebd68d3c065d8c462ddc85fe2cb5ce7cf58ebd355f0d652f3da4ff7de4cfae249fce647",rainbow:"6e40aa883eb1a43db3bf3cafd83fa4ee4395fe4b83ff576eff6659ff7847ff8c38f3a130e2b72fcfcc36bee044aff05b8ff4576ff65b52f6673af27828ea8d1ddfa319d0b81cbecb23abd82f96e03d82e14c6edb5a5dd0664dbf6e40aa",sinebow:"ff4040fc582af47218e78d0bd5a703bfbf00a7d5038de70b72f41858fc2a40ff402afc5818f4720be78d03d5a700bfbf03a7d50b8de71872f42a58fc4040ff582afc7218f48d0be7a703d5bf00bfd503a7e70b8df41872fc2a58ff4040",turbo:"23171b32204a3e2a71453493493eae4b49c54a53d7485ee44569ee4074f53c7ff8378af93295f72e9ff42ba9ef28b3e926bce125c5d925cdcf27d5c629dcbc2de3b232e9a738ee9d3ff39347f68950f9805afc7765fd6e70fe667cfd5e88fc5795fb51a1f84badf545b9f140c5ec3cd0e637dae034e4d931ecd12ef4c92bfac029ffb626ffad24ffa223ff9821ff8d1fff821dff771cfd6c1af76118f05616e84b14df4111d5380fcb2f0dc0260ab61f07ac1805a313029b0f00950c00910b00",browns:"eedbbdecca96e9b97ae4a865dc9856d18954c7784cc0673fb85536ad44339f3632",tealBlues:"bce4d89dd3d181c3cb65b3c245a2b9368fae347da0306a932c5985",teals:"bbdfdfa2d4d58ac9c975bcbb61b0af4da5a43799982b8b8c1e7f7f127273006667",warmGreys:"dcd4d0cec5c1c0b8b4b3aaa7a59c9998908c8b827f7e7673726866665c5a59504e",goldGreen:"f4d166d5ca60b6c35c98bb597cb25760a6564b9c533f8f4f33834a257740146c36",goldOrange:"f4d166f8be5cf8aa4cf5983bf3852aef701be2621fd65322c54923b142239e3a26",goldRed:"f4d166f6be59f9aa51fc964ef6834bee734ae56249db5247cf4244c43141b71d3e",lightGreyRed:"efe9e6e1dad7d5cbc8c8bdb9bbaea9cd967ddc7b43e15f19df4011dc000b",lightGreyTeal:"e4eaead6dcddc8ced2b7c2c7a6b4bc64b0bf22a6c32295c11f85be1876bc",lightMulti:"e0f1f2c4e9d0b0de9fd0e181f6e072f6c053f3993ef77440ef4a3c",lightOrange:"f2e7daf7d5baf9c499fab184fa9c73f68967ef7860e8645bde515bd43d5b",lightTealBlue:"e3e9e0c0dccf9aceca7abfc859afc0389fb9328dad2f7ca0276b95255988",darkBlue:"3232322d46681a5c930074af008cbf05a7ce25c0dd38daed50f3faffffff",darkGold:"3c3c3c584b37725e348c7631ae8b2bcfa424ecc31ef9de30fff184ffffff",darkGreen:"3a3a3a215748006f4d048942489e4276b340a6c63dd2d836ffeb2cffffaa",darkMulti:"3737371f5287197d8c29a86995ce3fffe800ffffff",darkRed:"3434347036339e3c38cc4037e75d1eec8620eeab29f0ce32ffeb2c"};const cc={accent:Zu,category10:Ju,category20:"1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5",category20b:"393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6",category20c:"3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9",dark2:tl,observable10:el,paired:nl,pastel1:il,pastel2:rl,set1:sl,set2:al,set3:ol,tableau10:"4c78a8f58518e4575672b7b254a24beeca3bb279a2ff9da69d755dbab0ac",tableau20:"4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5"};function fc(t){if((0,p.cy)(t))return t;const e=t.length/6|0,n=new Array(e);for(let i=0;iic(fc(t))));function pc(t,e){t=t&&t.toLowerCase();if(arguments.length>1){hc[t]=e;return this}else{return hc[t]}}const mc="symbol";const gc="discrete";const yc="gradient";const vc=t=>(0,p.cy)(t)?t.map((t=>String(t))):String(t);const bc=(t,e)=>t[1]-e[1];const xc=(t,e)=>e[1]-t[1];function _c(t,e,n){let i;if((0,p.Et)(e)){if(t.bins){e=Math.max(e,t.bins.length)}if(n!=null){e=Math.min(e,Math.floor((0,p.Ln)(t.domain())/n||1)+1)}}if((0,p.Gv)(e)){i=e.step;e=e.interval}if((0,p.Kg)(e)){e=t.type===ml?qt(e):t.type==gl?It(e):(0,p.z3)("Only time and utc scales accept interval strings.");if(i)e=e.every(i)}return e}function wc(t,e,n){let i=t.range(),r=i[0],s=(0,p.se)(i),a=bc;if(r>s){i=s;s=r;r=i;a=xc}r=Math.floor(r);s=Math.ceil(s);e=e.map((e=>[e,t(e)])).filter((t=>r<=t[1]&&t[1]<=s)).sort(a).map((t=>t[0]));if(n>0&&e.length>1){const t=[e[0],(0,p.se)(e)];while(e.length>n&&e.length>=3){e=e.filter(((t,e)=>!(e%2)))}if(e.length<3){e=t}}return e}function Ac(t,e){return t.bins?wc(t,t.bins,e):t.ticks?t.ticks(e):t.domain()}function kc(t,e,n,i,r,s){const a=e.type;let o=vc;if(a===ml||r===ml){o=t.timeFormat(i)}else if(a===gl||r===gl){o=t.utcFormat(i)}else if(Kl(a)){const r=t.formatFloat(i);if(s||e.bins){o=r}else{const t=Ec(e,n,false);o=e=>t(e)?r(e):""}}else if(e.tickFormat){const r=e.domain();o=t.formatSpan(r[0],r[r.length-1],n,i)}else if(i){o=t.format(i)}return o}function Ec(t,e,n){const i=Ac(t,e),r=t.base(),s=Math.log(r),a=Math.max(1,r*e/i.length);const o=t=>{let e=t/Math.pow(r,Math.round(Math.log(t)/s));if(e*r1?i[1]-i[0]:i[0],a;for(a=1;aMc[t.type]||t.bins;function $c(t,e,n,i,r,s,a){const o=Dc[e.type]&&s!==ml&&s!==gl?Fc(t,e,r):kc(t,e,n,r,s,a);return i===mc&&zc(e)?Rc(o):i===gc?Tc(o):Nc(o)}const Rc=t=>(e,n,i)=>{const r=Oc(i[n+1],Oc(i.max,+Infinity)),s=Lc(e,t),a=Lc(r,t);return s&&a?s+" – "+a:a?"< "+a:"≥ "+s};const Oc=(t,e)=>t!=null?t:e;const Tc=t=>(e,n)=>n?t(e):null;const Nc=t=>e=>t(e);const Lc=(t,e)=>Number.isFinite(t)?e(t):null;function Pc(t){const e=t.domain(),n=e.length-1;let i=+e[0],r=+(0,p.se)(e),s=r-i;if(t.type===_l){const t=n?s/n:.1;i-=t;r+=t;s=r-i}return t=>(t-i)/s}function qc(t,e,n,i){const r=i||e.type;if((0,p.Kg)(n)&&Zl(r)){n=n.replace(/%a/g,"%A").replace(/%b/g,"%B")}return!n&&r===ml?t.timeFormat("%A, %d %B %Y, %X"):!n&&r===gl?t.utcFormat("%A, %d %B %Y, %X UTC"):$c(t,e,5,null,n,i,true)}function Ic(t,e,n){n=n||{};const i=Math.max(3,n.maxlen||7),r=qc(t,e,n.format,n.formatType);if(Ql(e.type)){const t=Cc(e).slice(1).map(r),n=t.length;return`${n} boundar${n===1?"y":"ies"}: ${t.join(", ")}`}else if(Vl(e.type)){const t=e.domain(),n=t.length,s=n>i?t.slice(0,i-2).map(r).join(", ")+", ending with "+t.slice(-1).map(r):t.map(r).join(", ");return`${n} value${n===1?"":"s"}: ${s}`}else{const t=e.domain();return`values from ${r(t[0])} to ${r((0,p.se)(t))}`}}let Uc=0;function jc(){Uc=0}const Gc="p_";function Yc(t){return t&&t.gradient}function Wc(t,e,n){const i=t.gradient;let r=t.id,s=i==="radial"?Gc:"";if(!r){r=t.id="gradient_"+Uc++;if(i==="radial"){t.x1=Xc(t.x1,.5);t.y1=Xc(t.y1,.5);t.r1=Xc(t.r1,0);t.x2=Xc(t.x2,.5);t.y2=Xc(t.y2,.5);t.r2=Xc(t.r2,.5);s=Gc}else{t.x1=Xc(t.x1,0);t.y1=Xc(t.y1,0);t.x2=Xc(t.x2,1);t.y2=Xc(t.y2,0)}}e[r]=t;return"url("+(n||"")+"#"+s+r+")"}function Xc(t,e){return t!=null?t:e}function Hc(t,e){var n=[],i;return i={gradient:"linear",x1:t?t[0]:0,y1:t?t[1]:0,x2:e?e[0]:1,y2:e?e[1]:0,stops:n,stop:function(t,e){n.push({offset:t,color:e});return i}}}const Vc={basis:{curve:Ka.Ay},"basis-closed":{curve:Za.A},"basis-open":{curve:Ja.A},bundle:{curve:to.A,tension:"beta",value:.85},cardinal:{curve:eo.Ay,tension:"tension",value:0},"cardinal-open":{curve:no.A,tension:"tension",value:0},"cardinal-closed":{curve:io.A,tension:"tension",value:0},"catmull-rom":{curve:ro.A,tension:"alpha",value:.5},"catmull-rom-closed":{curve:so.A,tension:"alpha",value:.5},"catmull-rom-open":{curve:ao.A,tension:"alpha",value:.5},linear:{curve:oo.A},"linear-closed":{curve:uo.A},monotone:{horizontal:lo.N,vertical:lo.G},natural:{curve:co.A},step:{curve:fo.Ay},"step-after":{curve:fo.Ps},"step-before":{curve:fo.Ko}};function Qc(t,e,n){var i=(0,p.mQ)(Vc,t)&&Vc[t],r=null;if(i){r=i.curve||i[e||"vertical"];if(i.tension&&n!=null){r=r[i.tension](n)}}return r}const Kc={m:2,l:2,h:1,v:1,z:0,c:6,s:4,q:4,t:2,a:7};const Zc=/[mlhvzcsqta]([^mlhvzcsqta]+|$)/gi;const Jc=/^[+-]?(([0-9]*\.[0-9]+)|([0-9]+\.)|([0-9]+))([eE][+-]?[0-9]+)?/;const tf=/^((\s+,?\s*)|(,\s*))/;const ef=/^[01]/;function nf(t){const e=[];const n=t.match(Zc)||[];n.forEach((t=>{let n=t[0];const i=n.toLowerCase();const r=Kc[i];const s=rf(i,r,t.slice(1).trim());const a=s.length;if(a1){m=Math.sqrt(m);n*=m;i*=m}const g=d/n;const y=f/n;const v=-f/i;const b=d/i;const x=g*o+y*u;const _=v*o+b*u;const w=g*t+y*e;const A=v*t+b*e;const k=(w-x)*(w-x)+(A-_)*(A-_);let E=1/k-.25;if(E<0)E=0;let M=Math.sqrt(E);if(s==r)M=-M;const D=.5*(x+w)-M*(A-_);const C=.5*(_+A)+M*(w-x);const F=Math.atan2(_-C,x-D);const S=Math.atan2(A-C,w-D);let B=S-F;if(B<0&&s===1){B+=uf}else if(B>0&&s===0){B-=uf}const z=Math.ceil(Math.abs(B/(of+.001)));const $=[];for(let R=0;R+t}function Sf(t,e,n){return Math.max(e,Math.min(t,n))}function Bf(){var t=Ef,e=Mf,n=Df,i=Cf,r=Ff(0),s=r,a=r,o=r,u=null;function l(l,c,f){var d,h=c!=null?c:+t.call(this,l),p=f!=null?f:+e.call(this,l),m=+n.call(this,l),g=+i.call(this,l),y=Math.min(m,g)/2,v=Sf(+r.call(this,l),0,y),b=Sf(+s.call(this,l),0,y),x=Sf(+a.call(this,l),0,y),_=Sf(+o.call(this,l),0,y);if(!u)u=d=(0,Qo.Ae)();if(v<=0&&b<=0&&x<=0&&_<=0){u.rect(h,p,m,g)}else{var w=h+m,A=p+g;u.moveTo(h+v,p);u.lineTo(w-b,p);u.bezierCurveTo(w-kf*b,p,w,p+kf*b,w,p+b);u.lineTo(w,A-_);u.bezierCurveTo(w,A-kf*_,w-kf*_,A,w-_,A);u.lineTo(h+x,A);u.bezierCurveTo(h+kf*x,A,h,A-kf*x,h,A-x);u.lineTo(h,p+v);u.bezierCurveTo(h,p+kf*v,h+kf*v,p,h+v,p);u.closePath()}if(d){u=null;return d+""||null}}l.x=function(e){if(arguments.length){t=Ff(e);return l}else{return t}};l.y=function(t){if(arguments.length){e=Ff(t);return l}else{return e}};l.width=function(t){if(arguments.length){n=Ff(t);return l}else{return n}};l.height=function(t){if(arguments.length){i=Ff(t);return l}else{return i}};l.cornerRadius=function(t,e,n,i){if(arguments.length){r=Ff(t);s=e!=null?Ff(e):r;o=n!=null?Ff(n):r;a=i!=null?Ff(i):s;return l}else{return r}};l.context=function(t){if(arguments.length){u=t==null?null:t;return l}else{return u}};return l}function zf(){var t,e,n,i,r=null,s,a,o,u;function l(t,e,n){const i=n/2;if(s){var l=o-e,c=t-a;if(l||c){var f=Math.hypot(l,c),d=(l/=f)*u,h=(c/=f)*u,p=Math.atan2(c,l);r.moveTo(a-d,o-h);r.lineTo(t-l*i,e-c*i);r.arc(t,e,i,p-Math.PI,p);r.lineTo(a+d,o+h);r.arc(a,o,u,p,p+Math.PI)}else{r.arc(t,e,i,0,uf)}r.closePath()}else{s=1}a=t;o=e;u=i}function c(a){var o,u=a.length,c,f=false,d;if(r==null)r=d=(0,Qo.Ae)();for(o=0;o<=u;++o){if(!(ot.x||0,Of=t=>t.y||0,Tf=t=>t.width||0,Nf=t=>t.height||0,Lf=t=>(t.x||0)+(t.width||0),Pf=t=>(t.y||0)+(t.height||0),qf=t=>t.startAngle||0,If=t=>t.endAngle||0,Uf=t=>t.padAngle||0,jf=t=>t.innerRadius||0,Gf=t=>t.outerRadius||0,Yf=t=>t.cornerRadius||0,Wf=t=>$f(t.cornerRadiusTopLeft,t.cornerRadius)||0,Xf=t=>$f(t.cornerRadiusTopRight,t.cornerRadius)||0,Hf=t=>$f(t.cornerRadiusBottomRight,t.cornerRadius)||0,Vf=t=>$f(t.cornerRadiusBottomLeft,t.cornerRadius)||0,Qf=t=>$f(t.size,64),Kf=t=>t.size||1,Zf=t=>!(t.defined===false),Jf=t=>_f(t.shape||"circle");const td=(0,ho.A)().startAngle(qf).endAngle(If).padAngle(Uf).innerRadius(jf).outerRadius(Gf).cornerRadius(Yf),ed=bo().x(Rf).y1(Of).y0(Pf).defined(Zf),nd=bo().y(Of).x1(Rf).x0(Lf).defined(Zf),id=(0,go.A)().x(Rf).y(Of).defined(Zf),rd=Bf().x(Rf).y(Of).width(Tf).height(Nf).cornerRadius(Wf,Xf,Hf,Vf),sd=Vo().type(Jf).size(Qf),ad=zf().x(Rf).y(Of).defined(Zf).size(Kf);function od(t){return t.cornerRadius||t.cornerRadiusTopLeft||t.cornerRadiusTopRight||t.cornerRadiusBottomRight||t.cornerRadiusBottomLeft}function ud(t,e){return td.context(t)(e)}function ld(t,e){const n=e[0],i=n.interpolate||"linear";return(n.orient==="horizontal"?nd:ed).curve(Qc(i,n.orient,n.tension)).context(t)(e)}function cd(t,e){const n=e[0],i=n.interpolate||"linear";return id.curve(Qc(i,n.orient,n.tension)).context(t)(e)}function fd(t,e,n,i){return rd.context(t)(e,n,i)}function dd(t,e){return(e.mark.shape||e.shape).context(t)(e)}function hd(t,e){return sd.context(t)(e)}function pd(t,e){return ad.context(t)(e)}var md=1;function gd(){md=1}function yd(t,e,n){var i=e.clip,r=t._defs,s=e.clip_id||(e.clip_id="clip"+md++),a=r.clipping[s]||(r.clipping[s]={id:s});if((0,p.Tn)(i)){a.path=i(null)}else if(od(n)){a.path=fd(null,n,0,0)}else{a.width=n.width||0;a.height=n.height||0}return"url(#"+s+")"}function vd(t){this.clear();if(t)this.union(t)}vd.prototype={clone(){return new vd(this)},clear(){this.x1=+Number.MAX_VALUE;this.y1=+Number.MAX_VALUE;this.x2=-Number.MAX_VALUE;this.y2=-Number.MAX_VALUE;return this},empty(){return this.x1===+Number.MAX_VALUE&&this.y1===+Number.MAX_VALUE&&this.x2===-Number.MAX_VALUE&&this.y2===-Number.MAX_VALUE},equals(t){return this.x1===t.x1&&this.y1===t.y1&&this.x2===t.x2&&this.y2===t.y2},set(t,e,n,i){if(nthis.x2)this.x2=t;if(e>this.y2)this.y2=e;return this},expand(t){this.x1-=t;this.y1-=t;this.x2+=t;this.y2+=t;return this},round(){this.x1=Math.floor(this.x1);this.y1=Math.floor(this.y1);this.x2=Math.ceil(this.x2);this.y2=Math.ceil(this.y2);return this},scale(t){this.x1*=t;this.y1*=t;this.x2*=t;this.y2*=t;return this},translate(t,e){this.x1+=t;this.x2+=t;this.y1+=e;this.y2+=e;return this},rotate(t,e,n){const i=this.rotatedPoints(t,e,n);return this.clear().add(i[0],i[1]).add(i[2],i[3]).add(i[4],i[5]).add(i[6],i[7])},rotatedPoints(t,e,n){var{x1:i,y1:r,x2:s,y2:a}=this,o=Math.cos(t),u=Math.sin(t),l=e-e*o+n*u,c=n-e*u-n*o;return[o*i-u*r+l,u*i+o*r+c,o*i-u*a+l,u*i+o*a+c,o*s-u*r+l,u*s+o*r+c,o*s-u*a+l,u*s+o*a+c]},union(t){if(t.x1this.x2)this.x2=t.x2;if(t.y2>this.y2)this.y2=t.y2;return this},intersect(t){if(t.x1>this.x1)this.x1=t.x1;if(t.y1>this.y1)this.y1=t.y1;if(t.x2=t.x2&&this.y1<=t.y1&&this.y2>=t.y2},alignsWith(t){return t&&(this.x1==t.x1||this.x2==t.x2||this.y1==t.y1||this.y2==t.y2)},intersects(t){return t&&!(this.x2t.x2||this.y2t.y2)},contains(t,e){return!(tthis.x2||ethis.y2)},width(){return this.x2-this.x1},height(){return this.y2-this.y1}};function bd(t){this.mark=t;this.bounds=this.bounds||new vd}function xd(t){bd.call(this,t);this.items=this.items||[]}(0,p.B)(xd,bd);class _d{constructor(t){this._pending=0;this._loader=t||fn()}pending(){return this._pending}sanitizeURL(t){const e=this;wd(e);return e._loader.sanitize(t,{context:"href"}).then((t=>{Ad(e);return t})).catch((()=>{Ad(e);return null}))}loadImage(t){const e=this,n=Zo();wd(e);return e._loader.sanitize(t,{context:"image"}).then((t=>{const i=t.href;if(!i||!n)throw{url:i};const r=new n;const s=(0,p.mQ)(t,"crossOrigin")?t.crossOrigin:"anonymous";if(s!=null)r.crossOrigin=s;r.onload=()=>Ad(e);r.onerror=()=>Ad(e);r.src=i;return r})).catch((t=>{Ad(e);return{complete:false,width:0,height:0,src:t&&t.url||""}}))}ready(){const t=this;return new Promise((e=>{function n(i){if(!t.pending())e(i);else setTimeout((()=>{n(true)}),10)}n(false)}))}}function wd(t){t._pending+=1}function Ad(t){t._pending-=1}function kd(t,e,n){if(e.stroke&&e.opacity!==0&&e.strokeOpacity!==0){const i=e.strokeWidth!=null?+e.strokeWidth:1;t.expand(i+(n?Ed(e,i):0))}return t}function Ed(t,e){return t.strokeJoin&&t.strokeJoin!=="miter"?0:e}const Md=uf-1e-8;let Dd,Cd,Fd,Sd,Bd,zd,$d,Rd;const Od=(t,e)=>Dd.add(t,e);const Td=(t,e)=>Od(Cd=t,Fd=e);const Nd=t=>Od(t,Dd.y1);const Ld=t=>Od(Dd.x1,t);const Pd=(t,e)=>Bd*t+$d*e;const qd=(t,e)=>zd*t+Rd*e;const Id=(t,e)=>Od(Pd(t,e),qd(t,e));const Ud=(t,e)=>Td(Pd(t,e),qd(t,e));function jd(t,e){Dd=t;if(e){Sd=e*sf;Bd=Rd=Math.cos(Sd);zd=Math.sin(Sd);$d=-zd}else{Bd=Rd=1;Sd=zd=$d=0}return Gd}const Gd={beginPath(){},closePath(){},moveTo:Ud,lineTo:Ud,rect(t,e,n,i){if(Sd){Id(t+n,e);Id(t+n,e+i);Id(t,e+i);Ud(t,e)}else{Od(t+n,e+i);Td(t,e)}},quadraticCurveTo(t,e,n,i){const r=Pd(t,e),s=qd(t,e),a=Pd(n,i),o=qd(n,i);Yd(Cd,r,a,Nd);Yd(Fd,s,o,Ld);Td(a,o)},bezierCurveTo(t,e,n,i,r,s){const a=Pd(t,e),o=qd(t,e),u=Pd(n,i),l=qd(n,i),c=Pd(r,s),f=qd(r,s);Wd(Cd,a,u,c,Nd);Wd(Fd,o,l,f,Ld);Td(c,f)},arc(t,e,n,i,r,s){i+=Sd;r+=Sd;Cd=n*Math.cos(r)+t;Fd=n*Math.sin(r)+e;if(Math.abs(r-i)>Md){Od(t-n,e-n);Od(t+n,e+n)}else{const a=i=>Od(n*Math.cos(i)+t,n*Math.sin(i)+e);let o,u;a(i);a(r);if(r!==i){i=i%uf;if(i<0)i+=uf;r=r%uf;if(r<0)r+=uf;if(rr;++u,o-=of)a(o)}else{o=i-i%of+of;for(u=0;u<4&&oaf){c=a*a+o*s;if(c>=0){c=Math.sqrt(c);u=(-a+c)/s;l=(-a-c)/s}}else{u=.5*o/a}if(0d)return false;else if(m>f)f=m}else if(h>0){if(m0){t.globalAlpha=n;t.fillStyle=sh(t,e,e.fill);return true}else{return false}}var oh=[];function uh(t,e,n){var i=(i=e.strokeWidth)!=null?i:1;if(i<=0)return false;n*=e.strokeOpacity==null?1:e.strokeOpacity;if(n>0){t.globalAlpha=n;t.strokeStyle=sh(t,e,e.stroke);t.lineWidth=i;t.lineCap=e.strokeCap||"butt";t.lineJoin=e.strokeJoin||"miter";t.miterLimit=e.strokeMiterLimit||10;if(t.setLineDash){t.setLineDash(e.strokeDash||oh);t.lineDashOffset=e.strokeDashOffset||0}return true}else{return false}}function lh(t,e){return t.zindex-e.zindex||t.index-e.index}function ch(t){if(!t.zdirty)return t.zitems;var e=t.items,n=[],i,r,s;for(r=0,s=e.length;r=0;){if(i=e(n[r]))return i}if(n===s){for(n=t.items,r=n.length;--r>=0;){if(!n[r].zindex){if(i=e(n[r]))return i}}}return null}function hh(t){return function(e,n,i){fh(n,(n=>{if(!i||i.intersects(n.bounds)){mh(t,e,n,n)}}))}}function ph(t){return function(e,n,i){if(n.items.length&&(!i||i.intersects(n.bounds))){mh(t,e,n.items[0],n.items)}}}function mh(t,e,n,i){var r=n.opacity==null?1:n.opacity;if(r===0)return;if(t(e,i))return;eh(e,n);if(n.fill&&ah(e,n,r)){e.fill()}if(n.stroke&&uh(e,n,r)){e.stroke()}}function gh(t){t=t||p.vN;return function(e,n,i,r,s,a){i*=e.pixelRatio;r*=e.pixelRatio;return dh(n,(n=>{const o=n.bounds;if(o&&!o.contains(s,a)||!o)return;if(t(e,n,i,r,s,a))return n}))}}function yh(t,e){return function(n,i,r,s){var a=Array.isArray(i)?i[0]:i,o=e==null?a.fill:e,u=a.stroke&&n.isPointInStroke,l,c;if(u){l=a.strokeWidth;c=a.strokeCap;n.lineWidth=l!=null?l:1;n.lineCap=c!=null?c:"butt"}return t(n,i)?false:o&&n.isPointInPath(r,s)||u&&n.isPointInStroke(r,s)}}function vh(t){return gh(yh(t))}function bh(t,e){return"translate("+t+","+e+")"}function xh(t){return"rotate("+t+")"}function _h(t,e){return"scale("+t+","+e+")"}function wh(t){return bh(t.x||0,t.y||0)}function Ah(t){return bh(t.x||0,t.y||0)+(t.angle?" "+xh(t.angle):"")}function kh(t){return bh(t.x||0,t.y||0)+(t.angle?" "+xh(t.angle):"")+(t.scaleX||t.scaleY?" "+_h(t.scaleX||1,t.scaleY||1):"")}function Eh(t,e,n){function i(t,n){t("transform",Ah(n));t("d",e(null,n))}function r(t,n){e(jd(t,n.angle),n);return kd(t,n).translate(n.x||0,n.y||0)}function s(t,n){var i=n.x||0,r=n.y||0,s=n.angle||0;t.translate(i,r);if(s)t.rotate(s*=sf);t.beginPath();e(t,n);if(s)t.rotate(-s);t.translate(-i,-r)}return{type:t,tag:"path",nested:false,attr:i,bound:r,draw:hh(s),pick:vh(s),isect:n||Qd(s)}}var Mh=Eh("arc",ud);function Dh(t,e){var n=t[0].orient==="horizontal"?e[1]:e[0],i=t[0].orient==="horizontal"?"y":"x",r=t.length,s=+Infinity,a,o;while(--r>=0){if(t[r].defined===false)continue;o=Math.abs(t[r][i]-n);if(o=0){if(t[i].defined===false)continue;r=t[i].x-e[0];s=t[i].y-e[1];a=r*r+s*s;if(a=0){if(t[n].defined===false)continue;i=t[n].x-e[0];r=t[n].y-e[1];s=i*i+r*r;i=t[n].size||1;if(s.5&&e<1.5?.5-Math.abs(e-1):0}function Oh(t,e){t("transform",wh(e))}function Th(t,e){const n=Rh(e);t("d",fd(null,e,n,n))}function Nh(t,e){t("class","background");t("aria-hidden",true);Th(t,e)}function Lh(t,e){t("class","foreground");t("aria-hidden",true);if(e.strokeForeground){Th(t,e)}else{t("d","")}}function Ph(t,e,n){const i=e.clip?yd(n,e,e):null;t("clip-path",i)}function qh(t,e){if(!e.clip&&e.items){const n=e.items,i=n.length;for(let e=0;e{const r=e.x||0,s=e.y||0,a=e.strokeForeground,o=e.opacity==null?1:e.opacity;if((e.stroke||e.fill)&&o){Ih(t,e,r,s);eh(t,e);if(e.fill&&ah(t,e,o)){t.fill()}if(e.stroke&&!a&&uh(t,e,o)){t.stroke()}}t.save();t.translate(r,s);if(e.clip)$h(t,e);if(n)n.translate(-r,-s);fh(e,(e=>{if(e.marktype==="group"||i==null||i.includes(e.marktype)){this.draw(t,e,n,i)}}));if(n)n.translate(r,s);t.restore();if(a&&e.stroke&&o){Ih(t,e,r,s);eh(t,e);if(uh(t,e,o)){t.stroke()}}}))}function Wh(t,e,n,i,r,s){if(e.bounds&&!e.bounds.contains(r,s)||!e.items){return null}const a=n*t.pixelRatio,o=i*t.pixelRatio;return dh(e,(u=>{let l,c,f;const d=u.bounds;if(d&&!d.contains(r,s))return;c=u.x||0;f=u.y||0;const h=c+(u.width||0),p=f+(u.height||0),m=u.clip;if(m&&(rh||sp))return;t.save();t.translate(c,f);c=r-c;f=s-f;if(m&&od(u)&&!Gh(t,u,a,o)){t.restore();return null}const g=u.strokeForeground,y=e.interactive!==false;if(y&&g&&u.stroke&&jh(t,u,a,o)){t.restore();return u}l=dh(u,(t=>Xh(t,c,f)?this.pick(t,n,i,c,f):null));if(!l&&y&&(u.fill||!g&&u.stroke)&&Uh(t,u,a,o)){l=u}t.restore();return l||null}))}function Xh(t,e,n){return(t.interactive!==false||t.marktype==="group")&&t.bounds&&t.bounds.contains(e,n)}var Hh={type:"group",tag:"g",nested:false,attr:Oh,bound:qh,draw:Yh,pick:Wh,isect:Zd,content:Ph,background:Nh,foreground:Lh};var Vh={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"};function Qh(t,e){var n=t.image;if(!n||t.url&&t.url!==n.url){n={complete:false,width:0,height:0};e.loadImage(t.url).then((e=>{t.image=e;t.image.url=t.url}))}return n}function Kh(t,e){return t.width!=null?t.width:!e||!e.width?0:t.aspect!==false&&t.height?t.height*e.width/e.height:e.width}function Zh(t,e){return t.height!=null?t.height:!e||!e.height?0:t.aspect!==false&&t.width?t.width*e.height/e.width:e.height}function Jh(t,e){return t==="center"?e/2:t==="right"?e:0}function tp(t,e){return t==="middle"?e/2:t==="bottom"?e:0}function ep(t,e,n){const i=Qh(e,n),r=Kh(e,i),s=Zh(e,i),a=(e.x||0)-Jh(e.align,r),o=(e.y||0)-tp(e.baseline,s),u=!i.src&&i.toDataURL?i.toDataURL():i.src||"";t("href",u,Vh["xmlns:xlink"],"xlink:href");t("transform",bh(a,o));t("width",r);t("height",s);t("preserveAspectRatio",e.aspect===false?"none":"xMidYMid")}function np(t,e){const n=e.image,i=Kh(e,n),r=Zh(e,n),s=(e.x||0)-Jh(e.align,i),a=(e.y||0)-tp(e.baseline,r);return t.set(s,a,s+i,a+r)}function ip(t,e,n){fh(e,(e=>{if(n&&!n.intersects(e.bounds))return;const i=Qh(e,this);let r=Kh(e,i);let s=Zh(e,i);if(r===0||s===0)return;let a=(e.x||0)-Jh(e.align,r),o=(e.y||0)-tp(e.baseline,s),u,l,c,f;if(e.aspect!==false){l=i.width/i.height;c=e.width/e.height;if(l===l&&c===c&&l!==c){if(c{if(n&&!n.intersects(e.bounds))return;var i=e.opacity==null?1:e.opacity;if(i&&gp(t,e,i)){eh(t,e);t.stroke()}}))}function vp(t,e,n,i){if(!t.isPointInStroke)return false;return gp(t,e,1)&&t.isPointInStroke(n,i)}var bp={type:"rule",tag:"line",nested:false,attr:pp,bound:mp,draw:yp,pick:gh(vp),isect:Jd};var xp=Eh("shape",dd);var _p=Eh("symbol",hd,Kd);const wp=(0,p.EV)();var Ap={height:Fp,measureWidth:Dp,estimateWidth:Ep,width:Ep,canvas:kp};kp(true);function kp(t){Ap.width=t&&Hd?Dp:Ep}function Ep(t,e){return Mp(Rp(t,e),Fp(t))}function Mp(t,e){return~~(.8*t.length*e)}function Dp(t,e){return Fp(t)<=0||!(e=Rp(t,e))?0:Cp(e,Lp(t))}function Cp(t,e){const n=`(${e}) ${t}`;let i=wp.get(n);if(i===undefined){Hd.font=e;i=Hd.measureText(t).width;wp.set(n,i)}return i}function Fp(t){return t.fontSize!=null?+t.fontSize||0:11}function Sp(t){return t.lineHeight!=null?t.lineHeight:Fp(t)+2}function Bp(t){return(0,p.cy)(t)?t.length>1?t:t[0]:t}function zp(t){return Bp(t.lineBreak&&t.text&&!(0,p.cy)(t.text)?t.text.split(t.lineBreak):t.text)}function $p(t){const e=zp(t);return((0,p.cy)(e)?e.length-1:0)*Sp(t)}function Rp(t,e){const n=e==null?"":(e+"").trim();return t.limit>0&&n.length?Tp(t,n):n}function Op(t){if(Ap.width===Dp){const e=Lp(t);return t=>Cp(t,e)}else if(Ap.width===Ep){const e=Fp(t);return t=>Mp(t,e)}else{return e=>Ap.width(t,e)}}function Tp(t,e){var n=+t.limit,i=Op(t);if(i(e)>>1;if(i(e.slice(u))>n)a=u+1;else o=u}return r+e.slice(a)}else{while(a>>1);if(i(e.slice(0,u))Math.max(t,Ap.width(e,n))),0)}else{f=Ap.width(e,c)}if(r==="center"){u-=f/2}else if(r==="right"){u-=f}else;t.set(u+=a,l+=o,u+f,l+i);if(e.angle&&!n){t.rotate(e.angle*sf,a,o)}else if(n===2){return t.rotatedPoints(e.angle*sf,a,o)}return t}function Yp(t,e,n){fh(e,(e=>{var i=e.opacity==null?1:e.opacity,r,s,a,o,u,l,c;if(n&&!n.intersects(e.bounds)||i===0||e.fontSize<=0||e.text==null||e.text.length===0)return;t.font=Lp(e);t.textAlign=e.align||"left";r=Up(e);s=r.x1,a=r.y1;if(e.angle){t.save();t.translate(s,a);t.rotate(e.angle*sf);s=a=0}s+=e.dx||0;a+=(e.dy||0)+Pp(e);l=zp(e);eh(t,e);if((0,p.cy)(l)){u=Sp(e);for(o=0;oe)t.removeChild(n[--i]);return t}function cm(t){return"mark-"+t.marktype+(t.role?" role-"+t.role:"")+(t.name?" "+t.name:"")}function fm(t,e){const n=e.getBoundingClientRect();return[t.clientX-n.left-(e.clientLeft||0),t.clientY-n.top-(e.clientTop||0)]}function dm(t,e,n,i){var r=t&&t.mark,s,a;if(r&&(s=Qp[r.marktype]).tip){a=fm(e,n);a[0]-=i[0];a[1]-=i[1];while(t=t.mark.group){a[0]-=t.x||0;a[1]-=t.y||0}t=s.tip(r.items,a)}return t}class hm{constructor(t,e){this._active=null;this._handlers={};this._loader=t||fn();this._tooltip=e||pm}initialize(t,e,n){this._el=t;this._obj=n||null;return this.origin(e)}element(){return this._el}canvas(){return this._el&&this._el.firstChild}origin(t){if(arguments.length){this._origin=t||[0,0];return this}else{return this._origin.slice()}}scene(t){if(!arguments.length)return this._scene;this._scene=t;return this}on(){}off(){}_handlerIndex(t,e,n){for(let i=t?t.length:0;--i>=0;){if(t[i].type===e&&(!n||t[i].handler===n)){return i}}return-1}handlers(t){const e=this._handlers,n=[];if(t){n.push(...e[this.eventName(t)])}else{for(const t in e){n.push(...e[t])}}return n}eventName(t){const e=t.indexOf(".");return e<0?t:t.slice(0,e)}handleHref(t,e,n){this._loader.sanitize(n,{context:"href"}).then((e=>{const n=new MouseEvent(t.type,t),i=am(null,"a");for(const t in e)i.setAttribute(t,e[t]);i.dispatchEvent(n)})).catch((()=>{}))}handleTooltip(t,e,n){if(e&&e.tooltip!=null){e=dm(e,t,this.canvas(),this._origin);const i=n&&e&&e.tooltip||null;this._tooltip.call(this._obj,this,t,e,i)}}getItemBoundingClientRect(t){const e=this.canvas();if(!e)return;const n=e.getBoundingClientRect(),i=this._origin,r=t.bounds,s=r.width(),a=r.height();let o=r.x1+i[0]+n.left,u=r.y1+i[1]+n.top;while(t.mark&&(t=t.mark.group)){o+=t.x||0;u+=t.y||0}return{x:o,y:u,width:s,height:a,left:o,top:u,right:o+s,bottom:u+a}}}function pm(t,e,n,i){t.element().setAttribute("title",i||"")}class mm{constructor(t){this._el=null;this._bgcolor=null;this._loader=new _d(t)}initialize(t,e,n,i,r){this._el=t;return this.resize(e,n,i,r)}element(){return this._el}canvas(){return this._el&&this._el.firstChild}background(t){if(arguments.length===0)return this._bgcolor;this._bgcolor=t;return this}resize(t,e,n,i){this._width=t;this._height=e;this._origin=n||[0,0];this._scale=i||1;return this}dirty(){}render(t,e){const n=this;n._call=function(){n._render(t,e)};n._call();n._call=null;return n}_render(){}renderAsync(t,e){const n=this.render(t,e);return this._ready?this._ready.then((()=>n)):Promise.resolve(n)}_load(t,e){var n=this,i=n._loader[t](e);if(!n._ready){const t=n._call;n._ready=n._loader.ready().then((e=>{if(e)t();n._ready=null}))}return i}sanitizeURL(t){return this._load("sanitizeURL",t)}loadImage(t){return this._load("loadImage",t)}}const gm="keydown";const ym="keypress";const vm="keyup";const bm="dragenter";const xm="dragleave";const _m="dragover";const wm="pointerdown";const Am="pointerup";const km="pointermove";const Em="pointerout";const Mm="pointerover";const Dm="mousedown";const Cm="mouseup";const Fm="mousemove";const Sm="mouseout";const Bm="mouseover";const zm="click";const $m="dblclick";const Rm="wheel";const Om="mousewheel";const Tm="touchstart";const Nm="touchmove";const Lm="touchend";const Pm=[gm,ym,vm,bm,xm,_m,wm,Am,km,Em,Mm,Dm,Cm,Fm,Sm,Bm,zm,$m,Rm,Om,Tm,Nm,Lm];const qm=km;const Im=Sm;const Um=zm;class jm extends hm{constructor(t,e){super(t,e);this._down=null;this._touch=null;this._first=true;this._events={};this.events=Pm;this.pointermove=Hm([km,Fm],[Mm,Bm],[Em,Sm]);this.dragover=Hm([_m],[bm],[xm]),this.pointerout=Vm([Em,Sm]);this.dragleave=Vm([xm])}initialize(t,e,n){this._canvas=t&&om(t,"canvas");[zm,Dm,wm,km,Em,xm].forEach((t=>Ym(this,t)));return super.initialize(t,e,n)}canvas(){return this._canvas}context(){return this._canvas.getContext("2d")}DOMMouseScroll(t){this.fire(Om,t)}pointerdown(t){this._down=this._active;this.fire(wm,t)}mousedown(t){this._down=this._active;this.fire(Dm,t)}click(t){if(this._down===this._active){this.fire(zm,t);this._down=null}}touchstart(t){this._touch=this.pickEvent(t.changedTouches[0]);if(this._first){this._active=this._touch;this._first=false}this.fire(Tm,t,true)}touchmove(t){this.fire(Nm,t,true)}touchend(t){this.fire(Lm,t,true);this._touch=null}fire(t,e,n){const i=n?this._touch:this._active,r=this._handlers[t];e.vegaType=t;if(t===Um&&i&&i.href){this.handleHref(e,i,i.href)}else if(t===qm||t===Im){this.handleTooltip(e,i,t!==Im)}if(r){for(let t=0,n=r.length;t=0){i.splice(r,1)}return this}pickEvent(t){const e=fm(t,this._canvas),n=this._origin;return this.pick(this._scene,e[0],e[1],e[0]-n[0],e[1]-n[1])}pick(t,e,n,i,r){const s=this.context(),a=Qp[t.marktype];return a.pick.call(this,s,t,e,n,i,r)}}const Gm=t=>t===Tm||t===Nm||t===Lm?[Tm,Nm,Lm]:[t];function Ym(t,e){Gm(e).forEach((e=>Wm(t,e)))}function Wm(t,e){const n=t.canvas();if(n&&!t._events[e]){t._events[e]=1;n.addEventListener(e,t[e]?n=>t[e](n):n=>t.fire(e,n))}}function Xm(t,e,n){e.forEach((e=>t.fire(e,n)))}function Hm(t,e,n){return function(i){const r=this._active,s=this.pickEvent(i);if(s===r){Xm(this,t,i)}else{if(!r||!r.exit){Xm(this,n,i)}this._active=s;Xm(this,e,i);Xm(this,t,i)}}}function Vm(t){return function(e){Xm(this,t,e);this._active=null}}function Qm(){return typeof window!=="undefined"?window.devicePixelRatio||1:1}function Km(t,e,n,i,r,s){const a=typeof HTMLElement!=="undefined"&&t instanceof HTMLElement&&t.parentNode!=null,o=t.getContext("2d"),u=a?Qm():r;t.width=e*u;t.height=n*u;for(const l in s){o[l]=s[l]}if(a&&u!==1){t.style.width=e+"px";t.style.height=n+"px"}o.pixelRatio=u;o.setTransform(u,0,0,u,u*i[0],u*i[1]);return t}class Zm extends mm{constructor(t){super(t);this._options={};this._redraw=false;this._dirty=new vd;this._tempb=new vd}initialize(t,e,n,i,r,s){this._options=s||{};this._canvas=this._options.externalContext?null:Ko(1,1,this._options.type);if(t&&this._canvas){lm(t,0).appendChild(this._canvas);this._canvas.setAttribute("class","marks")}return super.initialize(t,e,n,i,r)}resize(t,e,n,i){super.resize(t,e,n,i);if(this._canvas){Km(this._canvas,this._width,this._height,this._origin,this._scale,this._options.context)}else{const t=this._options.externalContext;if(!t)(0,p.z3)("CanvasRenderer is missing a valid canvas or context");t.scale(this._scale,this._scale);t.translate(this._origin[0],this._origin[1])}this._redraw=true;return this}canvas(){return this._canvas}context(){return this._options.externalContext||(this._canvas?this._canvas.getContext("2d"):null)}dirty(t){const e=this._tempb.clear().union(t.bounds);let n=t.mark.group;while(n){e.translate(n.x||0,n.y||0);n=n.mark.group}this._dirty.union(e)}_render(t,e){const n=this.context(),i=this._origin,r=this._width,s=this._height,a=this._dirty,o=Jm(i,r,s);n.save();const u=this._redraw||a.empty()?(this._redraw=false,o.expand(1)):tg(n,o.intersect(a),i);this.clear(-i[0],-i[1],r,s);this.draw(n,t,u,e);n.restore();a.clear();return this}draw(t,e,n,i){if(e.marktype!=="group"&&i!=null&&!i.includes(e.marktype)){return}const r=Qp[e.marktype];if(e.clip)zh(t,e);r.draw.call(this,t,e,n,i);if(e.clip)t.restore()}clear(t,e,n,i){const r=this._options,s=this.context();if(r.type!=="pdf"&&!r.externalContext){s.clearRect(t,e,n,i)}if(this._bgcolor!=null){s.fillStyle=this._bgcolor;s.fillRect(t,e,n,i)}}}const Jm=(t,e,n)=>(new vd).set(0,0,e,n).translate(-t[0],-t[1]);function tg(t,e,n){e.expand(1).round();if(t.pixelRatio%1){e.scale(t.pixelRatio).round().scale(1/t.pixelRatio)}e.translate(-(n[0]%1),-(n[1]%1));t.beginPath();t.rect(e.x1,e.y1,e.width(),e.height());t.clip();return e}class eg extends hm{constructor(t,e){super(t,e);const n=this;n._hrefHandler=ng(n,((t,e)=>{if(e&&e.href)n.handleHref(t,e,e.href)}));n._tooltipHandler=ng(n,((t,e)=>{n.handleTooltip(t,e,t.type!==Im)}))}initialize(t,e,n){let i=this._svg;if(i){i.removeEventListener(Um,this._hrefHandler);i.removeEventListener(qm,this._tooltipHandler);i.removeEventListener(Im,this._tooltipHandler)}this._svg=i=t&&om(t,"svg");if(i){i.addEventListener(Um,this._hrefHandler);i.addEventListener(qm,this._tooltipHandler);i.addEventListener(Im,this._tooltipHandler)}return super.initialize(t,e,n)}canvas(){return this._svg}on(t,e){const n=this.eventName(t),i=this._handlers,r=this._handlerIndex(i[n],t,e);if(r<0){const r={type:t,handler:e,listener:ng(this,e)};(i[n]||(i[n]=[])).push(r);if(this._svg){this._svg.addEventListener(n,r.listener)}}return this}off(t,e){const n=this.eventName(t),i=this._handlers[n],r=this._handlerIndex(i,t,e);if(r>=0){if(this._svg){this._svg.removeEventListener(n,i[r].listener)}i.splice(r,1)}return this}}const ng=(t,e)=>n=>{let i=n.target.__data__;i=Array.isArray(i)?i[0]:i;n.vegaType=n.type;e.call(t._obj,n,i)};const ig="aria-hidden";const rg="aria-label";const sg="role";const ag="aria-roledescription";const og="graphics-object";const ug="graphics-symbol";const lg=(t,e,n)=>({[sg]:t,[ag]:e,[rg]:n||undefined});const cg=(0,p.M1)(["axis-domain","axis-grid","axis-label","axis-tick","axis-title","legend-band","legend-entry","legend-gradient","legend-label","legend-title","legend-symbol","title"]);const fg={axis:{desc:"axis",caption:vg},legend:{desc:"legend",caption:bg},"title-text":{desc:"title",caption:t=>`Title text '${yg(t)}'`},"title-subtitle":{desc:"subtitle",caption:t=>`Subtitle text '${yg(t)}'`}};const dg={ariaRole:sg,ariaRoleDescription:ag,description:rg};function hg(t,e){const n=e.aria===false;t(ig,n||undefined);if(n||e.description==null){for(const e in dg){t(dg[e],undefined)}}else{const n=e.mark.marktype;t(rg,e.description);t(sg,e.ariaRole||(n==="group"?og:ug));t(ag,e.ariaRoleDescription||`${n} mark`)}}function pg(t){return t.aria===false?{[ig]:true}:cg[t.role]?null:fg[t.role]?gg(t,fg[t.role]):mg(t)}function mg(t){const e=t.marktype;const n=e==="group"||e==="text"||t.items.some((t=>t.description!=null&&t.aria!==false));return lg(n?og:ug,`${e} mark container`,t.description)}function gg(t,e){try{const n=t.items[0],i=e.caption||(()=>"");return lg(e.role||ug,e.desc,n.description||i(n))}catch(n){return null}}function yg(t){return(0,p.YO)(t.text).join(" ")}function vg(t){const e=t.datum,n=t.orient,i=e.title?xg(t):null,r=t.context,s=r.scales[e.scale].value,a=r.dataflow.locale(),o=s.type,u=n==="left"||n==="right"?"Y":"X";return`${u}-axis`+(i?` titled '${i}'`:"")+` for a ${Vl(o)?"discrete":o} scale`+` with ${Ic(a,s,t)}`}function bg(t){const e=t.datum,n=e.title?xg(t):null,i=`${e.type||""} legend`.trim(),r=e.scales,s=Object.keys(r),a=t.context,o=a.scales[r[s[0]]].value,u=a.dataflow.locale();return wg(i)+(n?` titled '${n}'`:"")+` for ${_g(s)}`+` with ${Ic(u,o,t)}`}function xg(t){try{return(0,p.YO)((0,p.se)(t.items).items[0].text).join(" ")}catch(e){return null}}function _g(t){t=t.map((t=>t+(t==="fill"||t==="stroke"?" color":"")));return t.length<2?t[0]:t.slice(0,-1).join(", ")+" and "+(0,p.se)(t)}function wg(t){return t.length?t[0].toUpperCase()+t.slice(1):t}const Ag=t=>(t+"").replace(/&/g,"&").replace(//g,">");const kg=t=>Ag(t).replace(/"/g,""").replace(/\t/g," ").replace(/\n/g," ").replace(/\r/g," ");function Eg(){let t="",e="",n="";const i=[],r=()=>e=n="",s=s=>{if(e){t+=`${e}>${n}`;r()}i.push(s)},a=(t,n)=>{if(n!=null)e+=` ${t}="${kg(n)}"`;return o},o={open(t){s(t);e="<"+t;for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r${n}`:"/>")}else{t+=``}r();return o},attr:a,text:t=>(n+=Ag(t),o),toString:()=>t};return o}const Mg=t=>Dg(Eg(),t)+"";function Dg(t,e){t.open(e.tagName);if(e.hasAttributes()){const n=e.attributes,i=n.length;for(let e=0;e{t.dirty=e}))}if(i.zdirty)continue;if(n.exit){if(s.nested&&i.items.length){u=i.items[0];if(u._svg)this._update(s,u._svg,u)}else if(n._svg){u=n._svg.parentNode;if(u)u.removeChild(n._svg)}n._svg=null;continue}n=s.nested?i.items[0]:n;if(n._update===e)continue;if(!n._svg||!n._svg.ownerSVGElement){this._dirtyAll=false;Og(n,e)}else{this._update(s,n._svg,n)}n._update=e}return!this._dirtyAll}mark(t,e,n,i){if(!this.isDirty(e)){return e._svg}const r=this._svg,s=e.marktype,a=Qp[s],o=e.interactive===false?"none":null,u=a.tag==="g";const l=Pg(e,t,n,"g",r);if(s!=="group"&&i!=null&&!i.includes(s)){lm(l,0);return e._svg}l.setAttribute("class",cm(e));const c=pg(e);for(const p in c)Xg(l,p,c[p]);if(!u){Xg(l,"pointer-events",o)}Xg(l,"clip-path",e.clip?yd(this,e,e.group):null);let f=null,d=0;const h=t=>{const e=this.isDirty(t),n=Pg(t,l,f,a.tag,r);if(e){this._update(a,n,t);if(u)Lg(this,n,t,i)}f=n;++d};if(a.nested){if(e.items.length)h(e.items[0])}else{fh(e,h)}lm(l,d);return l}_update(t,e,n){Ig=e;Ug=e.__values__;hg(Gg,n);t.attr(Gg,n,this);const i=jg[t.type];if(i)i.call(this,t,e,n);if(Ig)this.style(Ig,n)}style(t,e){if(e==null)return;for(const n in Cg){let i=n==="font"?Np(e):e[n];if(i===Ug[n])continue;const r=Cg[n];if(i==null){t.removeAttribute(r)}else{if(Yc(i)){i=Wc(i,this._defs.gradient,Vg())}t.setAttribute(r,i+"")}Ug[n]=i}for(const n in Fg){Yg(t,Fg[n],e[n])}}defs(){const t=this._svg,e=this._defs;let n=e.el,i=0;for(const r in e.gradient){if(!n)e.el=n=um(t,Bg+1,"defs",$g);i=Tg(n,e.gradient[r],i)}for(const r in e.clipping){if(!n)e.el=n=um(t,Bg+1,"defs",$g);i=Ng(n,e.clipping[r],i)}if(n){i===0?(t.removeChild(n),e.el=null):lm(n,i)}}_clearDefs(){const t=this._defs;t.gradient={};t.clipping={}}}function Og(t,e){for(;t&&t.dirty!==e;t=t.mark.group){t.dirty=e;if(t.mark&&t.mark.dirty!==e){t.mark.dirty=e}else return}}function Tg(t,e,n){let i,r,s;if(e.gradient==="radial"){let i=um(t,n++,"pattern",$g);Wg(i,{id:Gc+e.id,viewBox:"0,0,1,1",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid slice"});i=um(i,0,"rect",$g);Wg(i,{width:1,height:1,fill:`url(${Vg()}#${e.id})`});t=um(t,n++,"radialGradient",$g);Wg(t,{id:e.id,fx:e.x1,fy:e.y1,fr:e.r1,cx:e.x2,cy:e.y2,r:e.r2})}else{t=um(t,n++,"linearGradient",$g);Wg(t,{id:e.id,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2})}for(i=0,r=e.stops.length;i{r=t.mark(e,n,r,i);++s}));lm(e,1+s)}function Pg(t,e,n,i,r){let s=t._svg,a;if(!s){a=e.ownerDocument;s=am(a,i,$g);t._svg=s;if(t.mark){s.__data__=t;s.__values__={fill:"default"};if(i==="g"){const e=am(a,"path",$g);s.appendChild(e);e.__data__=t;const n=am(a,"g",$g);s.appendChild(n);n.__data__=t;const i=am(a,"path",$g);s.appendChild(i);i.__data__=t;i.__values__={fill:"default"}}}}if(s.ownerSVGElement!==r||qg(s,n)){e.insertBefore(s,n?n.nextSibling:e.firstChild)}return s}function qg(t,e){return t.parentNode&&t.parentNode.childNodes.length>1&&t.previousSibling!=e}let Ig=null,Ug=null;const jg={group(t,e,n){const i=Ig=e.childNodes[2];Ug=i.__values__;t.foreground(Gg,n,this);Ug=e.__values__;Ig=e.childNodes[1];t.content(Gg,n,this);const r=Ig=e.childNodes[0];t.background(Gg,n,this);const s=n.mark.interactive===false?"none":null;if(s!==Ug.events){Xg(i,"pointer-events",s);Xg(r,"pointer-events",s);Ug.events=s}if(n.strokeForeground&&n.stroke){const t=n.fill;Xg(i,"display",null);this.style(r,n);Xg(r,"stroke",null);if(t)n.fill=null;Ug=i.__values__;this.style(i,n);if(t)n.fill=t;Ig=null}else{Xg(i,"display","none")}},image(t,e,n){if(n.smooth===false){Yg(e,"image-rendering","optimizeSpeed");Yg(e,"image-rendering","pixelated")}else{Yg(e,"image-rendering",null)}},text(t,e,n){const i=zp(n);let r,s,a,o;if((0,p.cy)(i)){s=i.map((t=>Rp(n,t)));r=s.join("\n");if(r!==Ug.text){lm(e,0);a=e.ownerDocument;o=Sp(n);s.forEach(((t,i)=>{const r=am(a,"tspan",$g);r.__data__=n;r.textContent=t;if(i){r.setAttribute("x",0);r.setAttribute("dy",o)}e.appendChild(r)}));Ug.text=r}}else{s=Rp(n,i);if(s!==Ug.text){e.textContent=s;Ug.text=s}}Xg(e,"font-family",Np(n));Xg(e,"font-size",Fp(n)+"px");Xg(e,"font-style",n.fontStyle);Xg(e,"font-variant",n.fontVariant);Xg(e,"font-weight",n.fontWeight)}};function Gg(t,e,n){if(e===Ug[t])return;if(n){Hg(Ig,t,e,n)}else{Xg(Ig,t,e)}Ug[t]=e}function Yg(t,e,n){if(n!==Ug[e]){if(n==null){t.style.removeProperty(e)}else{t.style.setProperty(e,n+"")}Ug[e]=n}}function Wg(t,e){for(const n in e){Xg(t,n,e[n])}}function Xg(t,e,n){if(n!=null){t.setAttribute(e,n)}else{t.removeAttribute(e)}}function Hg(t,e,n,i){if(n!=null){t.setAttributeNS(i,e,n)}else{t.removeAttributeNS(i,e)}}function Vg(){let t;return typeof window==="undefined"?"":(t=window.location).hash?t.href.slice(0,-t.hash.length):t.href}class Qg extends mm{constructor(t){super(t);this._text=null;this._defs={gradient:{},clipping:{}}}svg(){return this._text}_render(t){const e=Eg();e.open("svg",(0,p.X$)({},Vh,{class:"marks",width:this._width*this._scale,height:this._height*this._scale,viewBox:`0 0 ${this._width} ${this._height}`}));const n=this._bgcolor;if(n&&n!=="transparent"&&n!=="none"){e.open("rect",{width:this._width,height:this._height,fill:n}).close()}e.open("g",Sg,{transform:"translate("+this._origin+")"});this.mark(e,t);e.close();this.defs(e);this._text=e.close()+"";return this}mark(t,e){const n=Qp[e.marktype],i=n.tag,r=[hg,n.attr];t.open("g",{class:cm(e),"clip-path":e.clip?yd(this,e,e.group):null},pg(e),{"pointer-events":i!=="g"&&e.interactive===false?"none":null});const s=s=>{const a=this.href(s);if(a)t.open("a",a);t.open(i,this.attr(e,s,r,i!=="g"?i:null));if(i==="text"){const e=zp(s);if((0,p.cy)(e)){const n={x:0,dy:Sp(s)};for(let i=0;ithis.mark(t,e)));t.close();if(i&&a){if(r)s.fill=null;s.stroke=a;t.open("path",this.attr(e,s,n.foreground,"bgrect")).close();if(r)s.fill=r}else{t.open("path",this.attr(e,s,n.foreground,"bgfore")).close()}}t.close();if(a)t.close()};if(n.nested){if(e.items&&e.items.length)s(e.items[0])}else{fh(e,s)}return t.close()}href(t){const e=t.href;let n;if(e){if(n=this._hrefs&&this._hrefs[e]){return n}else{this.sanitizeURL(e).then((t=>{t["xlink:href"]=t.href;t.href=null;(this._hrefs||(this._hrefs={}))[e]=t}))}}return null}attr(t,e,n,i){const r={},s=(t,e,n,i)=>{r[i||t]=e};if(Array.isArray(n)){n.forEach((t=>t(s,e,this)))}else{n(s,e,this)}if(i){Kg(r,e,t,i,this._defs)}return r}defs(t){const e=this._defs.gradient,n=this._defs.clipping,i=Object.keys(e).length+Object.keys(n).length;if(i===0)return;t.open("defs");for(const r in e){const n=e[r],i=n.stops;if(n.gradient==="radial"){t.open("pattern",{id:Gc+r,viewBox:"0,0,1,1",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid slice"});t.open("rect",{width:"1",height:"1",fill:"url(#"+r+")"}).close();t.close();t.open("radialGradient",{id:r,fx:n.x1,fy:n.y1,fr:n.r1,cx:n.x2,cy:n.y2,r:n.r2})}else{t.open("linearGradient",{id:r,x1:n.x1,x2:n.x2,y1:n.y1,y2:n.y2})}for(let e=0;e!Zg.svgMarkTypes.includes(t)));this._svgRenderer.render(t,Zg.svgMarkTypes);this._canvasRenderer.render(t,i)}resize(t,e,n,i){super.resize(t,e,n,i);this._svgRenderer.resize(t,e,n,i);this._canvasRenderer.resize(t,e,n,i);return this}background(t){if(Zg.svgOnTop){this._canvasRenderer.background(t)}else{this._svgRenderer.background(t)}return this}}class ey extends jm{constructor(t,e){super(t,e)}initialize(t,e,n){const i=um(um(t,0,"div"),Zg.svgOnTop?0:1,"div");return super.initialize(i,e,n)}}const ny="canvas";const iy="hybrid";const ry="png";const sy="svg";const ay="none";const oy={Canvas:ny,PNG:ry,SVG:sy,Hybrid:iy,None:ay};const uy={};uy[ny]=uy[ry]={renderer:Zm,headless:Zm,handler:jm};uy[sy]={renderer:Rg,headless:Qg,handler:eg};uy[iy]={renderer:ty,headless:ty,handler:ey};uy[ay]={};function ly(t,e){t=String(t||"").toLowerCase();if(arguments.length>1){uy[t]=e;return this}else{return uy[t]}}function cy(t,e,n){const i=[],r=(new vd).union(e),s=t.marktype;return s?fy(t,r,n,i):s==="group"?hy(t,r,n,i):(0,p.z3)("Intersect scene must be mark node or group item.")}function fy(t,e,n,i){if(dy(t,e,n)){const r=t.items,s=t.marktype,a=r.length;let o=0;if(s==="group"){for(;o=0;s--){if(n[s]!=i[s])return false}for(s=n.length-1;s>=0;s--){r=n[s];if(!vy(t[r],e[r],r))return false}return typeof t===typeof e}function _y(){gd();jc()}const wy="top";const Ay="left";const ky="right";const Ey="bottom";const My="top-left";const Dy="top-right";const Cy="bottom-left";const Fy="bottom-right";const Sy="start";const By="middle";const zy="end";const $y="x";const Ry="y";const Oy="group";const Ty="axis";const Ny="title";const Ly="frame";const Py="scope";const qy="legend";const Iy="row-header";const Uy="row-footer";const jy="row-title";const Gy="column-header";const Yy="column-footer";const Wy="column-title";const Xy="padding";const Hy="symbol";const Vy="fit";const Qy="fit-x";const Ky="fit-y";const Zy="pad";const Jy="none";const tv="all";const ev="each";const nv="flush";const iv="column";const rv="row";function sv(t){zi.call(this,null,t)}(0,p.B)(sv,zi,{transform(t,e){const n=e.dataflow,i=t.mark,r=i.marktype,s=Qp[r],a=s.bound;let o=i.bounds,u;if(s.nested){if(i.items.length)n.dirty(i.items[0]);o=av(i,a);i.items.forEach((t=>{t.bounds.clear().union(o)}))}else if(r===Oy||t.modified()){e.visit(e.MOD,(t=>n.dirty(t)));o.clear();i.items.forEach((t=>o.union(av(t,a))));switch(i.role){case Ty:case qy:case Ny:e.reflow()}}else{u=e.changed(e.REM);e.visit(e.ADD,(t=>{o.union(av(t,a))}));e.visit(e.MOD,(t=>{u=u||o.alignsWith(t.bounds);n.dirty(t);o.union(av(t,a))}));if(u){o.clear();i.items.forEach((t=>o.union(t.bounds)))}}gy(i);return e.modifies("bounds")}});function av(t,e,n){return e(t.bounds.clear(),t,n)}const ov=":vega_identifier:";function uv(t){zi.call(this,0,t)}uv.Definition={type:"Identifier",metadata:{modifies:true},params:[{name:"as",type:"string",required:true}]};(0,p.B)(uv,zi,{transform(t,e){const n=lv(e.dataflow),i=t.as;let r=n.value;e.visit(e.ADD,(t=>t[i]=t[i]||++r));n.set(this.value=r);return e}});function lv(t){return t._signals[ov]||(t._signals[ov]=t.add(0))}function cv(t){zi.call(this,null,t)}(0,p.B)(cv,zi,{transform(t,e){let n=this.value;if(!n){n=e.dataflow.scenegraph().mark(t.markdef,fv(t),t.index);n.group.context=t.context;if(!t.context.group)t.context.group=n.group;n.source=this.source;n.clip=t.clip;n.interactive=t.interactive;this.value=n}const i=n.marktype===Oy?xd:bd;e.visit(e.ADD,(t=>i.call(t,n)));if(t.modified("clip")||t.modified("interactive")){n.clip=t.clip;n.interactive=!!t.interactive;n.zdirty=true;e.reflow()}n.items=e.source;return e}});function fv(t){const e=t.groups,n=t.parent;return e&&e.size===1?e.get(Object.keys(e.object)[0]):e&&n?e.lookup(n):null}function dv(t){zi.call(this,null,t)}const hv={parity:t=>t.filter(((t,e)=>e%2?t.opacity=0:1)),greedy:(t,e)=>{let n;return t.filter(((t,i)=>!i||!pv(n.bounds,t.bounds,e)?(n=t,1):t.opacity=0))}};const pv=(t,e,n)=>n>Math.max(e.x1-t.x2,t.x1-e.x2,e.y1-t.y2,t.y1-e.y2);const mv=(t,e)=>{for(var n=1,i=t.length,r=t[0].bounds,s;n{const e=t.bounds;return e.width()>1&&e.height()>1};const yv=(t,e,n)=>{var i=t.range(),r=new vd;if(e===wy||e===Ey){r.set(i[0],-Infinity,i[1],+Infinity)}else{r.set(-Infinity,i[0],+Infinity,i[1])}r.expand(n||1);return t=>r.encloses(t.bounds)};const vv=t=>{t.forEach((t=>t.opacity=1));return t};const bv=(t,e)=>t.reflow(e.modified()).modifies("opacity");(0,p.B)(dv,zi,{transform(t,e){const n=hv[t.method]||hv.parity,i=t.separation||0;let r=e.materialize(e.SOURCE).source,s,a;if(!r||!r.length)return;if(!t.method){if(t.modified("method")){vv(r);e=bv(e,t)}return e}r=r.filter(gv);if(!r.length)return;if(t.sort){r=r.slice().sort(t.sort)}s=vv(r);e=bv(e,t);if(s.length>=3&&mv(s,i)){do{s=n(s,i)}while(s.length>=3&&mv(s,i));if(s.length<3&&!(0,p.se)(r).opacity){if(s.length>1)(0,p.se)(s).opacity=0;(0,p.se)(r).opacity=1}}if(t.boundScale&&t.boundTolerance>=0){a=yv(t.boundScale,t.boundOrient,+t.boundTolerance);r.forEach((t=>{if(!a(t))t.opacity=0}))}const o=s[0].mark.bounds.clear();r.forEach((t=>{if(t.opacity)o.union(t.bounds)}));return e}});function xv(t){zi.call(this,null,t)}(0,p.B)(xv,zi,{transform(t,e){const n=e.dataflow;e.visit(e.ALL,(t=>n.dirty(t)));if(e.fields&&e.fields["zindex"]){const t=e.source&&e.source[0];if(t)t.mark.zdirty=true}}});const _v=new vd;function wv(t,e,n){return t[e]===n?0:(t[e]=n,1)}function Av(t){var e=t.items[0].orient;return e===Ay||e===ky}function kv(t){let e=+t.grid;return[t.ticks?e++:-1,t.labels?e++:-1,e+ +t.domain]}function Ev(t,e,n,i){var r=e.items[0],s=r.datum,a=r.translate!=null?r.translate:.5,o=r.orient,u=kv(s),l=r.range,c=r.offset,f=r.position,d=r.minExtent,h=r.maxExtent,p=s.title&&r.items[u[2]].items[0],m=r.titlePadding,g=r.bounds,y=p&&$p(p),v=0,b=0,x,_;_v.clear().union(g);g.clear();if((x=u[0])>-1)g.union(r.items[x].bounds);if((x=u[1])>-1)g.union(r.items[x].bounds);switch(o){case wy:v=f||0;b=-c;_=Math.max(d,Math.min(h,-g.y1));g.add(0,-_).add(l,0);if(p)Mv(t,p,_,m,y,0,-1,g);break;case Ay:v=-c;b=f||0;_=Math.max(d,Math.min(h,-g.x1));g.add(-_,0).add(0,l);if(p)Mv(t,p,_,m,y,1,-1,g);break;case ky:v=n+c;b=f||0;_=Math.max(d,Math.min(h,g.x2));g.add(0,0).add(_,l);if(p)Mv(t,p,_,m,y,1,1,g);break;case Ey:v=f||0;b=i+c;_=Math.max(d,Math.min(h,g.y2));g.add(0,0).add(l,_);if(p)Mv(t,p,_,m,0,0,1,g);break;default:v=r.x;b=r.y}kd(g.translate(v,b),r);if(wv(r,"x",v+a)|wv(r,"y",b+a)){r.bounds=_v;t.dirty(r);r.bounds=g;t.dirty(r)}return r.mark.bounds.clear().union(g)}function Mv(t,e,n,i,r,s,a,o){const u=e.bounds;if(e.auto){const o=a*(n+r+i);let l=0,c=0;t.dirty(e);s?l=(e.x||0)-(e.x=o):c=(e.y||0)-(e.y=o);e.mark.bounds.clear().union(u.translate(-l,-c));t.dirty(e)}o.union(u)}const Dv=(t,e)=>Math.floor(Math.min(t,e));const Cv=(t,e)=>Math.ceil(Math.max(t,e));function Fv(t){var e=t.items,n=e.length,i=0,r,s;const a={marks:[],rowheaders:[],rowfooters:[],colheaders:[],colfooters:[],rowtitle:null,coltitle:null};for(;i1){for(A=0;A0)b[A]+=S/2}}if(o&&zv(n.center,rv)&&c!==1){for(A=0;A0)x[A]+=B/2}}for(A=0;Ar){t.warn("Grid headers exceed limit: "+r);e=e.slice(0,r)}m+=s;for(v=0,x=e.length;v=0&&(A=n[b])==null;b-=d);if(o){k=h==null?A.x:Math.round(A.bounds.x1+h*A.bounds.width());E=m}else{k=m;E=h==null?A.y:Math.round(A.bounds.y1+h*A.bounds.height())}_.union(w.bounds.translate(k-(w.x||0),E-(w.y||0)));w.x=k;w.y=E;t.dirty(w);g=a(g,_[l])}return g}function Pv(t,e,n,i,r,s){if(!e)return;t.dirty(e);var a=n,o=n;i?a=Math.round(r.x1+s*r.width()):o=Math.round(r.y1+s*r.height());e.bounds.translate(a-(e.x||0),o-(e.y||0));e.mark.bounds.clear().union(e.bounds);e.x=a;e.y=o;t.dirty(e)}function qv(t,e){const n=t[e]||{};return(e,i)=>n[e]!=null?n[e]:t[e]!=null?t[e]:i}function Iv(t,e){let n=-Infinity;t.forEach((t=>{if(t.offset!=null)n=Math.max(n,t.offset)}));return n>-Infinity?n:e}function Uv(t,e,n,i,r,s,a){const o=qv(n,e),u=Iv(t,o("offset",0)),l=o("anchor",Sy),c=l===zy?1:l===By?.5:0;const f={align:ev,bounds:o("bounds",nv),columns:o("direction")==="vertical"?1:t.length,padding:o("margin",8),center:o("center"),nodirty:true};switch(e){case Ay:f.anchor={x:Math.floor(i.x1)-u,column:zy,y:c*(a||i.height()+2*i.y1),row:l};break;case ky:f.anchor={x:Math.ceil(i.x2)+u,y:c*(a||i.height()+2*i.y1),row:l};break;case wy:f.anchor={y:Math.floor(r.y1)-u,row:zy,x:c*(s||r.width()+2*r.x1),column:l};break;case Ey:f.anchor={y:Math.ceil(r.y2)+u,x:c*(s||r.width()+2*r.x1),column:l};break;case My:f.anchor={x:u,y:u};break;case Dy:f.anchor={x:s-u,y:u,column:zy};break;case Cy:f.anchor={x:u,y:a-u,row:zy};break;case Fy:f.anchor={x:s-u,y:a-u,column:zy,row:zy};break}return f}function jv(t,e){var n=e.items[0],i=n.datum,r=n.orient,s=n.bounds,a=n.x,o=n.y,u,l;n._bounds?n._bounds.clear().union(s):n._bounds=s.clone();s.clear();Yv(t,n,n.items[0].items[0]);s=Gv(n,s);u=2*n.padding;l=2*n.padding;if(!s.empty()){u=Math.ceil(s.width()+u);l=Math.ceil(s.height()+l)}if(i.type===Hy){Hv(n.items[0].items[0].items[0].items)}if(r!==Jy){n.x=a=0;n.y=o=0}n.width=u;n.height=l;kd(s.set(a,o,a+u,o+l),n);n.mark.bounds.clear().union(s);return n}function Gv(t,e){t.items.forEach((t=>e.union(t.bounds)));e.x1=t.padding;e.y1=t.padding;return e}function Yv(t,e,n){var i=e.padding,r=i-n.x,s=i-n.y;if(!e.datum.title){if(r||s)Xv(t,n,r,s)}else{var a=e.items[1].items[0],o=a.anchor,u=e.titlePadding||0,l=i-a.x,c=i-a.y;switch(a.orient){case Ay:r+=Math.ceil(a.bounds.width())+u;break;case ky:case Ey:break;default:s+=a.bounds.height()+u}if(r||s)Xv(t,n,r,s);switch(a.orient){case Ay:c+=Wv(e,n,a,o,1,1);break;case ky:l+=Wv(e,n,a,zy,0,0)+u;c+=Wv(e,n,a,o,1,1);break;case Ey:l+=Wv(e,n,a,o,0,0);c+=Wv(e,n,a,zy,-1,0,1)+u;break;default:l+=Wv(e,n,a,o,0,0)}if(l||c)Xv(t,a,l,c);if((l=Math.round(a.bounds.x1-i))<0){Xv(t,n,-l,0);Xv(t,a,-l,0)}}}function Wv(t,e,n,i,r,s,a){const o=t.datum.type!=="symbol",u=n.datum.vgrad,l=o&&(s||!u)&&!a?e.items[0]:e,c=l.bounds[r?"y2":"x2"]-t.padding,f=u&&s?c:0,d=u&&s?0:c,h=r<=0?0:$p(n);return Math.round(i===Sy?f:i===zy?d-h:.5*(c-h))}function Xv(t,e,n,i){e.x+=n;e.y+=i;e.bounds.translate(n,i);e.mark.bounds.translate(n,i);t.dirty(e)}function Hv(t){const e=t.reduce(((t,e)=>{t[e.column]=Math.max(e.bounds.x2-e.x,t[e.column]||0);return t}),{});t.forEach((t=>{t.width=e[t.column];t.height=t.bounds.y2-t.y}))}function Vv(t,e,n,i,r){var s=e.items[0],a=s.frame,o=s.orient,u=s.anchor,l=s.offset,c=s.padding,f=s.items[0].items[0],d=s.items[1]&&s.items[1].items[0],h=o===Ay||o===ky?i:n,p=0,m=0,g=0,y=0,v=0,b;if(a!==Oy){o===Ay?(p=r.y2,h=r.y1):o===ky?(p=r.y1,h=r.y2):(p=r.x1,h=r.x2)}else if(o===Ay){p=i,h=0}b=u===Sy?p:u===zy?h:(p+h)/2;if(d&&d.text){switch(o){case wy:case Ey:v=f.bounds.height()+c;break;case Ay:y=f.bounds.width()+c;break;case ky:y=-f.bounds.width()-c;break}_v.clear().union(d.bounds);_v.translate(y-(d.x||0),v-(d.y||0));if(wv(d,"x",y)|wv(d,"y",v)){t.dirty(d);d.bounds.clear().union(_v);d.mark.bounds.clear().union(_v);t.dirty(d)}_v.clear().union(d.bounds)}else{_v.clear()}_v.union(f.bounds);switch(o){case wy:m=b;g=r.y1-_v.height()-l;break;case Ay:m=r.x1-_v.width()-l;g=b;break;case ky:m=r.x2+_v.width()+l;g=b;break;case Ey:m=b;g=r.y2+l;break;default:m=s.x;g=s.y}if(wv(s,"x",m)|wv(s,"y",g)){_v.translate(m,g);t.dirty(s);s.bounds.clear().union(_v);e.bounds.clear().union(_v);t.dirty(s)}return s.bounds}function Qv(t){zi.call(this,null,t)}(0,p.B)(Qv,zi,{transform(t,e){const n=e.dataflow;t.mark.items.forEach((e=>{if(t.layout)Ov(n,e,t.layout);Zv(n,e,t)}));return Kv(t.mark.group)?e.reflow():e}});function Kv(t){return t&&t.mark.role!=="legend-entry"}function Zv(t,e,n){var i=e.items,r=Math.max(0,e.width||0),s=Math.max(0,e.height||0),a=(new vd).set(0,0,r,s),o=a.clone(),u=a.clone(),l=[],c,f,d,h,p,m;for(p=0,m=i.length;p{d=t.orient||ky;if(d!==Jy)(e[d]||(e[d]=[])).push(t)}));for(const i in e){const a=e[i];Rv(t,a,Uv(a,i,n.legends,o,u,r,s))}l.forEach((e=>{const i=e.bounds;if(!i.equals(e._bounds)){e.bounds=e._bounds;t.dirty(e);e.bounds=i;t.dirty(e)}if(n.autosize&&(n.autosize.type===Vy||n.autosize.type===Qy||n.autosize.type===Ky)){switch(e.orient){case Ay:case ky:a.add(i.x1,0).add(i.x2,0);break;case wy:case Ey:a.add(0,i.y1).add(0,i.y2)}}else{a.union(i)}}))}a.union(o).union(u);if(c){a.union(Vv(t,c,r,s,a))}if(e.clip){a.set(0,0,e.width||0,e.height||0)}Jv(t,e,a,n)}function Jv(t,e,n,i){const r=i.autosize||{},s=r.type;if(t._autosize<1||!s)return;let a=t._width,o=t._height,u=Math.max(0,e.width||0),l=Math.max(0,Math.ceil(-n.x1)),c=Math.max(0,e.height||0),f=Math.max(0,Math.ceil(-n.y1));const d=Math.max(0,Math.ceil(n.x2-u)),h=Math.max(0,Math.ceil(n.y2-c));if(r.contains===Xy){const e=t.padding();a-=e.left+e.right;o-=e.top+e.bottom}if(s===Jy){l=0;f=0;u=a;c=o}else if(s===Vy){u=Math.max(0,a-l-d);c=Math.max(0,o-f-h)}else if(s===Qy){u=Math.max(0,a-l-d);o=c+f+h}else if(s===Ky){a=u+l+d;c=Math.max(0,o-f-h)}else if(s===Zy){a=u+l+d;o=c+f+h}t._resizeView(a,o,u,c,[l,f],r.resize)}function tb(t,e){let n=0;if(e===undefined){for(let e of t){if(e=+e){n+=e}}}else{let i=-1;for(let r of t){if(r=+e(r,++i,t)){n+=r}}}return n}function eb(t){zi.call(this,null,t)}(0,p.B)(eb,zi,{transform(t,e){if(this.value&&!t.modified()){return e.StopPropagation}var n=e.dataflow.locale(),i=e.fork(e.NO_SOURCE|e.NO_FIELDS),r=this.value,s=t.scale,a=t.count==null?t.values?t.values.length:10:t.count,o=_c(s,a,t.minstep),u=t.format||kc(n,s,o,t.formatSpecifier,t.formatType,!!t.values),l=t.values?wc(s,t.values,o):Ac(s,o);if(r)i.rem=r;r=l.map(((t,e)=>bn({index:e/(l.length-1||1),value:t,label:u(t)})));if(t.extra&&r.length){r.push(bn({index:-1,extra:{value:r[0].value},label:""}))}i.source=r;i.add=r;this.value=r;return i}});function nb(t){zi.call(this,null,t)}function ib(){return bn({})}function rb(t){const e=(0,p.nG)().test((t=>t.exit));e.lookup=n=>e.get(t(n));return e}(0,p.B)(nb,zi,{transform(t,e){var n=e.dataflow,i=e.fork(e.NO_SOURCE|e.NO_FIELDS),r=t.item||ib,s=t.key||yn,a=this.value;if((0,p.cy)(i.encode)){i.encode=null}if(a&&(t.modified("key")||e.modified(s))){(0,p.z3)("DataJoin does not support modified key function or fields.")}if(!a){e=e.addAll();this.value=a=rb(s)}e.visit(e.ADD,(t=>{const e=s(t);let n=a.get(e);if(n){if(n.exit){a.empty--;i.add.push(n)}else{i.mod.push(n)}}else{n=r(t);a.set(e,n);i.add.push(n)}n.datum=t;n.exit=false}));e.visit(e.MOD,(t=>{const e=s(t),n=a.get(e);if(n){n.datum=t;i.mod.push(n)}}));e.visit(e.REM,(t=>{const e=s(t),n=a.get(e);if(t===n.datum&&!n.exit){i.rem.push(n);n.exit=true;++a.empty}}));if(e.changed(e.ADD_MOD))i.modifies("datum");if(e.clean()||t.clean&&a.empty>n.cleanThreshold){n.runAfter(a.clean)}return i}});function sb(t){zi.call(this,null,t)}(0,p.B)(sb,zi,{transform(t,e){var n=e.fork(e.ADD_REM),i=t.mod||false,r=t.encoders,s=e.encode;if((0,p.cy)(s)){if(n.changed()||s.every((t=>r[t]))){s=s[0];n.encode=null}else{return e.StopPropagation}}var a=s==="enter",o=r.update||p.me,u=r.enter||p.me,l=r.exit||p.me,c=(s&&!a?r[s]:o)||p.me;if(e.changed(e.ADD)){e.visit(e.ADD,(e=>{u(e,t);o(e,t)}));n.modifies(u.output);n.modifies(o.output);if(c!==p.me&&c!==o){e.visit(e.ADD,(e=>{c(e,t)}));n.modifies(c.output)}}if(e.changed(e.REM)&&l!==p.me){e.visit(e.REM,(e=>{l(e,t)}));n.modifies(l.output)}if(a||c!==p.me){const r=e.MOD|(t.modified()?e.REFLOW:0);if(a){e.visit(r,(e=>{const r=u(e,t)||i;if(c(e,t)||r)n.mod.push(e)}));if(n.mod.length)n.modifies(u.output)}else{e.visit(r,(e=>{if(c(e,t)||i)n.mod.push(e)}))}if(n.mod.length)n.modifies(c.output)}return n.changed()?n:e.StopPropagation}});function ab(t){zi.call(this,[],t)}(0,p.B)(ab,zi,{transform(t,e){if(this.value!=null&&!t.modified()){return e.StopPropagation}var n=e.dataflow.locale(),i=e.fork(e.NO_SOURCE|e.NO_FIELDS),r=this.value,s=t.type||mc,a=t.scale,o=+t.limit,u=_c(a,t.count==null?5:t.count,t.minstep),l=!!t.values||s===mc,c=t.format||$c(n,a,u,s,t.formatSpecifier,t.formatType,l),f=t.values||Cc(a,u),d,h,m,g,y;if(r)i.rem=r;if(s===mc){if(o&&f.length>o){e.dataflow.warn("Symbol legend count exceeds limit, filtering items.");r=f.slice(0,o-1);y=true}else{r=f}if((0,p.Tn)(m=t.size)){if(!t.values&&a(r[0])===0){r=r.slice(1)}g=r.reduce(((e,n)=>Math.max(e,m(n,t))),0)}else{m=(0,p.dY)(g=m||8)}r=r.map(((e,n)=>bn({index:n,label:c(e,n,r),value:e,offset:g,size:m(e,t)})));if(y){y=f[r.length];r.push(bn({index:r.length,label:`…${f.length-r.length} entries`,value:y,offset:g,size:m(y,t)}))}}else if(s===yc){d=a.domain(),h=ac(a,d[0],(0,p.se)(d));if(f.length<3&&!t.values&&d[0]!==(0,p.se)(d)){f=[d[0],(0,p.se)(d)]}r=f.map(((t,e)=>bn({index:e,label:c(t,e,f),value:t,perc:h(t)})))}else{m=f.length-1;h=Pc(a);r=f.map(((t,e)=>bn({index:e,label:c(t,e,f),value:t,perc:e?h(t):0,perc2:e===m?1:h(f[e+1])})))}i.source=r;i.add=r;this.value=r;return i}});const ob=t=>t.source.x;const ub=t=>t.source.y;const lb=t=>t.target.x;const cb=t=>t.target.y;function fb(t){zi.call(this,{},t)}fb.Definition={type:"LinkPath",metadata:{modifies:true},params:[{name:"sourceX",type:"field",default:"source.x"},{name:"sourceY",type:"field",default:"source.y"},{name:"targetX",type:"field",default:"target.x"},{name:"targetY",type:"field",default:"target.y"},{name:"orient",type:"enum",default:"vertical",values:["horizontal","vertical","radial"]},{name:"shape",type:"enum",default:"line",values:["line","arc","curve","diagonal","orthogonal"]},{name:"require",type:"signal"},{name:"as",type:"string",default:"path"}]};(0,p.B)(fb,zi,{transform(t,e){var n=t.sourceX||ob,i=t.sourceY||ub,r=t.targetX||lb,s=t.targetY||cb,a=t.as||"path",o=t.orient||"vertical",u=t.shape||"line",l=kb.get(u+"-"+o)||kb.get(u);if(!l){(0,p.z3)("LinkPath unsupported type: "+t.shape+(t.orient?"-"+t.orient:""))}e.visit(e.SOURCE,(t=>{t[a]=l(n(t),i(t),r(t),s(t))}));return e.reflow(t.modified()).modifies(a)}});const db=(t,e,n,i)=>"M"+t+","+e+"L"+n+","+i;const hb=(t,e,n,i)=>db(e*Math.cos(t),e*Math.sin(t),i*Math.cos(n),i*Math.sin(n));const pb=(t,e,n,i)=>{var r=n-t,s=i-e,a=Math.hypot(r,s)/2,o=180*Math.atan2(s,r)/Math.PI;return"M"+t+","+e+"A"+a+","+a+" "+o+" 0 1"+" "+n+","+i};const mb=(t,e,n,i)=>pb(e*Math.cos(t),e*Math.sin(t),i*Math.cos(n),i*Math.sin(n));const gb=(t,e,n,i)=>{const r=n-t,s=i-e,a=.2*(r+s),o=.2*(s-r);return"M"+t+","+e+"C"+(t+a)+","+(e+o)+" "+(n+o)+","+(i-a)+" "+n+","+i};const yb=(t,e,n,i)=>gb(e*Math.cos(t),e*Math.sin(t),i*Math.cos(n),i*Math.sin(n));const vb=(t,e,n,i)=>"M"+t+","+e+"V"+i+"H"+n;const bb=(t,e,n,i)=>"M"+t+","+e+"H"+n+"V"+i;const xb=(t,e,n,i)=>{const r=Math.cos(t),s=Math.sin(t),a=Math.cos(n),o=Math.sin(n),u=Math.abs(n-t)>Math.PI?n<=t:n>t;return"M"+e*r+","+e*s+"A"+e+","+e+" 0 0,"+(u?1:0)+" "+e*a+","+e*o+"L"+i*a+","+i*o};const _b=(t,e,n,i)=>{const r=(t+n)/2;return"M"+t+","+e+"C"+r+","+e+" "+r+","+i+" "+n+","+i};const wb=(t,e,n,i)=>{const r=(e+i)/2;return"M"+t+","+e+"C"+t+","+r+" "+n+","+r+" "+n+","+i};const Ab=(t,e,n,i)=>{const r=Math.cos(t),s=Math.sin(t),a=Math.cos(n),o=Math.sin(n),u=(e+i)/2;return"M"+e*r+","+e*s+"C"+u*r+","+u*s+" "+u*a+","+u*o+" "+i*a+","+i*o};const kb=(0,p.nG)({line:db,"line-radial":hb,arc:pb,"arc-radial":mb,curve:gb,"curve-radial":yb,"orthogonal-horizontal":vb,"orthogonal-vertical":bb,"orthogonal-radial":xb,"diagonal-horizontal":_b,"diagonal-vertical":wb,"diagonal-radial":Ab});function Eb(t){zi.call(this,null,t)}Eb.Definition={type:"Pie",metadata:{modifies:true},params:[{name:"field",type:"field"},{name:"startAngle",type:"number",default:0},{name:"endAngle",type:"number",default:6.283185307179586},{name:"sort",type:"boolean",default:false},{name:"as",type:"string",array:true,length:2,default:["startAngle","endAngle"]}]};(0,p.B)(Eb,zi,{transform(t,e){var n=t.as||["startAngle","endAngle"],i=n[0],r=n[1],s=t.field||p.xH,a=t.startAngle||0,o=t.endAngle!=null?t.endAngle:2*Math.PI,u=e.source,l=u.map(s),c=l.length,f=a,d=(o-a)/tb(l),h=(0,es.A)(c),m,g,y;if(t.sort){h.sort(((t,e)=>l[t]-l[e]))}for(m=0;m-1)return i;var r=e.domain,s=t.type,a=e.zero||e.zero===undefined&&Db(t),o,u;if(!r)return 0;if(a||e.domainMin!=null||e.domainMax!=null||e.domainMid!=null){o=(r=r.slice()).length-1||1;if(a){if(r[0]>0)r[0]=0;if(r[o]<0)r[o]=0}if(e.domainMin!=null)r[0]=e.domainMin;if(e.domainMax!=null)r[o]=e.domainMax;if(e.domainMid!=null){u=e.domainMid;const t=u>r[o]?o+1:ut+(e<0?-1:e>0?1:0)),0));if(i!==e.length){n.warn("Log scale domain includes zero: "+(0,p.r$)(e))}}return e}function Nb(t,e,n){let i=e.bins;if(i&&!(0,p.cy)(i)){const e=t.domain(),n=e[0],r=(0,p.se)(e),s=i.step;let a=i.start==null?n:i.start,o=i.stop==null?r:i.stop;if(!s)(0,p.z3)("Scale bins parameter missing step property.");if(ar)o=s*Math.floor(r/s);i=(0,es.A)(a,o+s/2,s)}if(i){t.bins=i}else if(t.bins){delete t.bins}if(t.type===El){if(!i){t.bins=t.domain()}else if(!e.domain&&!e.domainRaw){t.domain(i);n=i.length}}return n}function Lb(t,e,n){var i=t.type,r=e.round||false,s=e.range;if(e.rangeStep!=null){s=Pb(i,e,n)}else if(e.scheme){s=qb(i,e,n);if((0,p.Tn)(s)){if(t.interpolator){return t.interpolator(s)}else{(0,p.z3)(`Scale type ${i} does not support interpolating color schemes.`)}}}if(s&&Jl(i)){return t.interpolator(ic(Ub(s,e.reverse),e.interpolate,e.interpolateGamma))}if(s&&e.interpolate&&t.interpolate){t.interpolate(oc(e.interpolate,e.interpolateGamma))}else if((0,p.Tn)(t.round)){t.round(r)}else if((0,p.Tn)(t.rangeRound)){t.interpolate(r?Su.A:Fu.A)}if(s)t.range(Ub(s,e.reverse))}function Pb(t,e,n){if(t!==kl&&t!==Al){(0,p.z3)("Only band and point scales support rangeStep.")}var i=(e.paddingOuter!=null?e.paddingOuter:e.padding)||0,r=t===Al?1:(e.paddingInner!=null?e.paddingInner:e.padding)||0;return[0,e.rangeStep*ul(n,r,i)]}function qb(t,e,n){var i=e.schemeExtent,r,s;if((0,p.cy)(e.scheme)){s=ic(e.scheme,e.interpolate,e.interpolateGamma)}else{r=e.scheme.toLowerCase();s=pc(r);if(!s)(0,p.z3)(`Unrecognized scheme name: ${e.scheme}`)}n=t===_l?n+1:t===El?n-1:t===bl||t===xl?+e.schemeCount||Mb:n;return Jl(t)?Ib(s,i,e.reverse):(0,p.Tn)(s)?rc(Ib(s,i),n):t===wl?s:s.slice(0,n)}function Ib(t,e,n){return(0,p.Tn)(t)&&(e||n)?nc(t,Ub(e||[0,1],n)):t}function Ub(t,e){return e?t.slice().reverse():t}function jb(t){zi.call(this,null,t)}(0,p.B)(jb,zi,{transform(t,e){const n=t.modified("sort")||e.changed(e.ADD)||e.modified(t.sort.fields)||e.modified("datum");if(n)e.source.sort(An(t.sort));this.modified(n);return e}});const Gb="zero",Yb="center",Wb="normalize",Xb=["y0","y1"];function Hb(t){zi.call(this,null,t)}Hb.Definition={type:"Stack",metadata:{modifies:true},params:[{name:"field",type:"field"},{name:"groupby",type:"field",array:true},{name:"sort",type:"compare"},{name:"offset",type:"enum",default:Gb,values:[Gb,Yb,Wb]},{name:"as",type:"string",array:true,length:2,default:Xb}]};(0,p.B)(Hb,zi,{transform(t,e){var n=t.as||Xb,i=n[0],r=n[1],s=An(t.sort),a=t.field||p.xH,o=t.offset===Yb?Vb:t.offset===Wb?Qb:Kb,u,l,c,f;u=Zb(e.source,t.groupby,s,a);for(l=0,c=u.length,f=u.max;lt(c),a,o,u,l,c,f,d,h,p;if(e==null){r.push(t.slice())}else{for(a={},o=0,u=t.length;op)p=h;if(n)d.sort(n)}r.max=p;return r}const Jb=t=>t;function tx(t,e){if(t&&nx.hasOwnProperty(t.type)){nx[t.type](t,e)}}var ex={Feature:function(t,e){tx(t.geometry,e)},FeatureCollection:function(t,e){var n=t.features,i=-1,r=n.length;while(++i0){s=t[--e];while(e>0){n=s;i=t[--e];s=n+i;r=i-(s-n);if(r)break}if(e>0&&(r<0&&t[e-1]<0||r>0&&t[e-1]>0)){i=r*2;n=s+i;if(i==n-s)s=n}}return s}}function ox(t,e){const n=new ax;if(e===undefined){for(let e of t){if(e=+e){n.add(e)}}}else{let i=-1;for(let r of t){if(r=+e(r,++i,t)){n.add(r)}}}return+n}function ux(t,e){const n=new ax;let i=-1;return Float64Array.from(t,e===undefined?t=>n.add(+t||0):r=>n.add(+e(r,++i,t)||0))}var lx=1e-6;var cx=1e-12;var fx=Math.PI;var dx=fx/2;var hx=fx/4;var px=fx*2;var mx=180/fx;var gx=fx/180;var yx=Math.abs;var vx=Math.atan;var bx=Math.atan2;var xx=Math.cos;var _x=Math.ceil;var wx=Math.exp;var Ax=Math.floor;var kx=Math.hypot;var Ex=Math.log;var Mx=Math.pow;var Dx=Math.sin;var Cx=Math.sign||function(t){return t>0?1:t<0?-1:0};var Fx=Math.sqrt;var Sx=Math.tan;function Bx(t){return t>1?0:t<-1?fx:Math.acos(t)}function zx(t){return t>1?dx:t<-1?-dx:Math.asin(t)}function $x(t){return(t=Dx(t/2))*t}function Rx(){}var Ox=new ax,Tx=new ax,Nx,Lx,Px,qx;var Ix={point:Rx,lineStart:Rx,lineEnd:Rx,polygonStart:function(){Ix.lineStart=Ux;Ix.lineEnd=Yx},polygonEnd:function(){Ix.lineStart=Ix.lineEnd=Ix.point=Rx;Ox.add(yx(Tx));Tx=new ax},result:function(){var t=Ox/2;Ox=new ax;return t}};function Ux(){Ix.point=jx}function jx(t,e){Ix.point=Gx;Nx=Px=t,Lx=qx=e}function Gx(t,e){Tx.add(qx*t-Px*e);Px=t,qx=e}function Yx(){Gx(Nx,Lx)}const Wx=Ix;var Xx=Infinity,Hx=Xx,Vx=-Xx,Qx=Vx;var Kx={point:Zx,lineStart:Rx,lineEnd:Rx,polygonStart:Rx,polygonEnd:Rx,result:function(){var t=[[Xx,Hx],[Vx,Qx]];Vx=Qx=-(Hx=Xx=Infinity);return t}};function Zx(t,e){if(tVx)Vx=t;if(eQx)Qx=e}const Jx=Kx;var t_=0,e_=0,n_=0,i_=0,r_=0,s_=0,a_=0,o_=0,u_=0,l_,c_,f_,d_;var h_={point:p_,lineStart:m_,lineEnd:v_,polygonStart:function(){h_.lineStart=b_;h_.lineEnd=x_},polygonEnd:function(){h_.point=p_;h_.lineStart=m_;h_.lineEnd=v_},result:function(){var t=u_?[a_/u_,o_/u_]:s_?[i_/s_,r_/s_]:n_?[t_/n_,e_/n_]:[NaN,NaN];t_=e_=n_=i_=r_=s_=a_=o_=u_=0;return t}};function p_(t,e){t_+=t;e_+=e;++n_}function m_(){h_.point=g_}function g_(t,e){h_.point=y_;p_(f_=t,d_=e)}function y_(t,e){var n=t-f_,i=e-d_,r=Fx(n*n+i*i);i_+=r*(f_+t)/2;r_+=r*(d_+e)/2;s_+=r;p_(f_=t,d_=e)}function v_(){h_.point=p_}function b_(){h_.point=__}function x_(){w_(l_,c_)}function __(t,e){h_.point=w_;p_(l_=f_=t,c_=d_=e)}function w_(t,e){var n=t-f_,i=e-d_,r=Fx(n*n+i*i);i_+=r*(f_+t)/2;r_+=r*(d_+e)/2;s_+=r;r=d_*t-f_*e;a_+=r*(f_+t);o_+=r*(d_+e);u_+=r*3;p_(f_=t,d_=e)}const A_=h_;function k_(t){this._context=t}k_.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){if(this._line===0)this._context.closePath();this._point=NaN},point:function(t,e){switch(this._point){case 0:{this._context.moveTo(t,e);this._point=1;break}case 1:{this._context.lineTo(t,e);break}default:{this._context.moveTo(t+this._radius,e);this._context.arc(t,e,this._radius,0,px);break}}},result:Rx};var E_=new ax,M_,D_,C_,F_,S_;var B_={point:Rx,lineStart:function(){B_.point=z_},lineEnd:function(){if(M_)$_(D_,C_);B_.point=Rx},polygonStart:function(){M_=true},polygonEnd:function(){M_=null},result:function(){var t=+E_;E_=new ax;return t}};function z_(t,e){B_.point=$_;D_=F_=t,C_=S_=e}function $_(t,e){F_-=t,S_-=e;E_.add(Fx(F_*F_+S_*S_));F_=t,S_=e}const R_=B_;let O_,T_,N_,L_;class P_{constructor(t){this._append=t==null?q_:I_(t);this._radius=4.5;this._=""}pointRadius(t){this._radius=+t;return this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){if(this._line===0)this._+="Z";this._point=NaN}point(t,e){switch(this._point){case 0:{this._append`M${t},${e}`;this._point=1;break}case 1:{this._append`L${t},${e}`;break}default:{this._append`M${t},${e}`;if(this._radius!==N_||this._append!==T_){const t=this._radius;const e=this._;this._="";this._append`m0,${t}a${t},${t} 0 1,1 0,${-2*t}a${t},${t} 0 1,1 0,${2*t}z`;N_=t;T_=this._append;L_=this._;this._=e}this._+=L_;break}}}result(){const t=this._;this._="";return t.length?t:null}}function q_(t){let e=1;this._+=t[0];for(const n=t.length;e=0))throw new RangeError(`invalid digits: ${t}`);if(e>15)return q_;if(e!==O_){const t=10**e;O_=e;T_=function e(n){let i=1;this._+=n[0];for(const r=n.length;i=0))throw new RangeError(`invalid digits: ${t}`);n=e}if(e===null)s=new P_(n);return a};return a.projection(t).digits(n).context(e)}function j_(){var t=[],e;return{point:function(t,n,i){e.push([t,n,i])},lineStart:function(){t.push(e=[])},lineEnd:Rx,rejoin:function(){if(t.length>1)t.push(t.pop().concat(t.shift()))},result:function(){var n=t;t=[];e=null;return n}}}function G_(t,e){return yx(t[0]-e[0])=0;--o)r.point((f=c[o])[0],f[1])}else{i(d.x,d.p.x,-1,r)}d=d.p}d=d.o;c=d.z;h=!h}while(!d.v);r.lineEnd()}}function X_(t){if(!(e=t.length))return;var e,n=0,i=t[0],r;while(++n=0?1:-1,M=E*k,D=M>fx,C=g*w;u.add(bx(C*E*Dx(M),y*A+C*xx(M)));a+=D?k+E*px:k;if(D^p>=n^x>=n){var F=K_(V_(h),V_(b));tw(F);var S=K_(s,F);tw(S);var B=(D^k>=0?-1:1)*zx(S[2]);if(i>B||i===B&&(F[0]||F[1])){o+=D^k>=0?1:-1}}}}return(a<-lx||a0){if(!u)r.polygonStart(),u=true;r.lineStart();for(n=0;n1&&t&2)e.push(e.pop().concat(e.shift()));c.push(e.filter(aw))}return d}}function aw(t){return t.length>1}function ow(t,e){return((t=t.x)[0]<0?t[1]-dx-lx:dx-t[1])-((e=e.x)[0]<0?e[1]-dx-lx:dx-e[1])}const uw=sw((function(){return true}),lw,fw,[-fx,-dx]);function lw(t){var e=NaN,n=NaN,i=NaN,r;return{lineStart:function(){t.lineStart();r=1},point:function(s,a){var o=s>0?fx:-fx,u=yx(s-e);if(yx(u-fx)0?dx:-dx);t.point(i,n);t.lineEnd();t.lineStart();t.point(o,n);t.point(s,n);r=0}else if(i!==o&&u>=fx){if(yx(e-i)lx?vx((Dx(e)*(s=xx(i))*Dx(n)-Dx(i)*(r=xx(e))*Dx(t))/(r*s*a)):(e+i)/2}function fw(t,e,n,i){var r;if(t==null){r=n*dx;i.point(-fx,r);i.point(0,r);i.point(fx,r);i.point(fx,0);i.point(fx,-r);i.point(0,-r);i.point(-fx,-r);i.point(-fx,0);i.point(-fx,r)}else if(yx(t[0]-e[0])>lx){var s=t[0]0?rs)r+=i*px}for(var l,c=r;i>0?c>s:c0,r=yx(e)>lx;function s(e,i,r,s){dw(s,t,n,r,e,i)}function a(t,n){return xx(t)*xx(n)>e}function o(t){var e,n,s,o,c;return{lineStart:function(){o=s=false;c=1},point:function(f,d){var h=[f,d],p,m=a(f,d),g=i?m?0:l(f,d):m?l(f+(f<0?fx:-fx),d):0;if(!e&&(o=s=m))t.lineStart();if(m!==s){p=u(e,h);if(!p||G_(e,p)||G_(h,p))h[2]=1}if(m!==s){c=0;if(m){t.lineStart();p=u(h,e);t.point(p[0],p[1])}else{p=u(e,h);t.point(p[0],p[1],2);t.lineEnd()}e=p}else if(r&&e&&i^m){var y;if(!(g&n)&&(y=u(h,e,true))){c=0;if(i){t.lineStart();t.point(y[0][0],y[0][1]);t.point(y[1][0],y[1][1]);t.lineEnd()}else{t.point(y[1][0],y[1][1]);t.lineEnd();t.lineStart();t.point(y[0][0],y[0][1],3)}}}if(m&&(!e||!G_(e,h))){t.point(h[0],h[1])}e=h,s=m,n=g},lineEnd:function(){if(s)t.lineEnd();e=null},clean:function(){return c|(o&&s)<<1}}}function u(t,n,i){var r=V_(t),s=V_(n);var a=[1,0,0],o=K_(r,s),u=Q_(o,o),l=o[0],c=u-l*l;if(!c)return!i&&t;var f=e*u/c,d=-e*l/c,h=K_(a,o),p=J_(a,f),m=J_(o,d);Z_(p,m);var g=h,y=Q_(p,g),v=Q_(g,g),b=y*y-v*(Q_(p,p)-1);if(b<0)return;var x=Fx(b),_=J_(g,(-y-x)/v);Z_(_,p);_=H_(_);if(!i)return _;var w=t[0],A=n[0],k=t[1],E=n[1],M;if(A0^_[1]<(yx(_[0]-w)fx^(w<=_[0]&&_[0]<=A)){var S=J_(g,(-y+x)/v);Z_(S,p);return[_,H_(S)]}}function l(e,n){var r=i?t:fx-t,s=0;if(e<-r)s|=1;else if(e>r)s|=2;if(n<-r)s|=4;else if(n>r)s|=8;return s}return sw(a,o,s,i?[0,-t]:[-fx,t-fx])}function gw(t,e,n,i,r,s){var a=t[0],o=t[1],u=e[0],l=e[1],c=0,f=1,d=u-a,h=l-o,p;p=n-a;if(!d&&p>0)return;p/=d;if(d<0){if(p0){if(p>f)return;if(p>c)c=p}p=r-a;if(!d&&p<0)return;p/=d;if(d<0){if(p>f)return;if(p>c)c=p}else if(d>0){if(p0)return;p/=h;if(h<0){if(p0){if(p>f)return;if(p>c)c=p}p=s-o;if(!h&&p<0)return;p/=h;if(h<0){if(p>f)return;if(p>c)c=p}else if(h>0){if(p0)t[0]=a+c*d,t[1]=o+c*h;if(f<1)e[0]=a+f*d,e[1]=o+f*h;return true}var yw=1e9,vw=-yw;function bw(t,e,n,i){function r(r,s){return t<=r&&r<=n&&e<=s&&s<=i}function s(r,s,o,l){var c=0,f=0;if(r==null||(c=a(r,o))!==(f=a(s,o))||u(r,s)<0^o>0){do{l.point(c===0||c===3?t:n,c>1?i:e)}while((c=(c+o+4)%4)!==f)}else{l.point(s[0],s[1])}}function a(i,r){return yx(i[0]-t)0?0:3:yx(i[0]-n)0?2:1:yx(i[1]-e)0?1:0:r>0?3:2}function o(t,e){return u(t.x,e.x)}function u(t,e){var n=a(t,1),i=a(e,1);return n!==i?n-i:n===0?e[1]-t[1]:n===1?t[0]-e[0]:n===2?t[1]-e[1]:e[0]-t[0]}return function(a){var u=a,l=j_(),c,f,d,h,p,m,g,y,v,b,x;var _={point:w,lineStart:M,lineEnd:D,polygonStart:k,polygonEnd:E};function w(t,e){if(r(t,e))u.point(t,e)}function A(){var e=0;for(var n=0,r=f.length;ni&&(d-l)*(i-c)>(h-c)*(t-l))++e}else{if(h<=i&&(d-l)*(i-c)<(h-c)*(t-l))--e}}}return e}function k(){u=l,c=[],f=[],x=true}function E(){var t=A(),e=x&&t,n=(c=rw(c)).length;if(e||n){a.polygonStart();if(e){a.lineStart();s(null,null,1,a);a.lineEnd()}if(n){W_(c,o,t,s,a)}a.polygonEnd()}u=a,c=f=d=null}function M(){_.point=C;if(f)f.push(d=[]);b=true;v=false;g=y=NaN}function D(){if(c){C(h,p);if(m&&v)l.rejoin();c.push(l.result())}_.point=w;if(v)u.lineEnd()}function C(s,a){var o=r(s,a);if(f)d.push([s,a]);if(b){h=s,p=a,m=o;b=false;if(o){u.lineStart();u.point(s,a)}}else{if(o&&v)u.point(s,a);else{var l=[g=Math.max(vw,Math.min(yw,g)),y=Math.max(vw,Math.min(yw,y))],c=[s=Math.max(vw,Math.min(yw,s)),a=Math.max(vw,Math.min(yw,a))];if(gw(l,c,t,e,n,i)){if(!v){u.lineStart();u.point(l[0],l[1])}u.point(c[0],c[1]);if(!o)u.lineEnd();x=false}else if(o){u.lineStart();u.point(s,a);x=false}}}g=s,y=a,v=o}return _}}function xw(t,e){function n(n,i){return n=t(n,i),e(n[0],n[1])}if(t.invert&&e.invert)n.invert=function(n,i){return n=e.invert(n,i),n&&t.invert(n[0],n[1])};return n}function _w(t,e){if(yx(t)>fx)t-=Math.round(t/px)*px;return[t,e]}_w.invert=_w;function ww(t,e,n){return(t%=px)?e||n?xw(kw(t),Ew(e,n)):kw(t):e||n?Ew(e,n):_w}function Aw(t){return function(e,n){e+=t;if(yx(e)>fx)e-=Math.round(e/px)*px;return[e,n]}}function kw(t){var e=Aw(t);e.invert=Aw(-t);return e}function Ew(t,e){var n=xx(t),i=Dx(t),r=xx(e),s=Dx(e);function a(t,e){var a=xx(e),o=xx(t)*a,u=Dx(t)*a,l=Dx(e),c=l*n+o*i;return[bx(u*r-c*s,o*n-l*i),zx(c*r+u*s)]}a.invert=function(t,e){var a=xx(e),o=xx(t)*a,u=Dx(t)*a,l=Dx(e),c=l*r-u*s;return[bx(u*r+l*s,o*n+c*i),zx(c*n-o*i)]};return a}function Mw(t){t=ww(t[0]*gx,t[1]*gx,t.length>2?t[2]*gx:0);function e(e){e=t(e[0]*gx,e[1]*gx);return e[0]*=mx,e[1]*=mx,e}e.invert=function(e){e=t.invert(e[0]*gx,e[1]*gx);return e[0]*=mx,e[1]*=mx,e};return e}function Dw(t){return{stream:Cw(t)}}function Cw(t){return function(e){var n=new Fw;for(var i in t)n[i]=t[i];n.stream=e;return n}}function Fw(){}Fw.prototype={constructor:Fw,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Sw(t,e,n){var i=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]);if(i!=null)t.clipExtent(null);sx(n,t.stream(Jx));e(Jx.result());if(i!=null)t.clipExtent(i);return t}function Bw(t,e,n){return Sw(t,(function(n){var i=e[1][0]-e[0][0],r=e[1][1]-e[0][1],s=Math.min(i/(n[1][0]-n[0][0]),r/(n[1][1]-n[0][1])),a=+e[0][0]+(i-s*(n[1][0]+n[0][0]))/2,o=+e[0][1]+(r-s*(n[1][1]+n[0][1]))/2;t.scale(150*s).translate([a,o])}),n)}function zw(t,e,n){return Bw(t,[[0,0],e],n)}function $w(t,e,n){return Sw(t,(function(n){var i=+e,r=i/(n[1][0]-n[0][0]),s=(i-r*(n[1][0]+n[0][0]))/2,a=-r*n[0][1];t.scale(150*r).translate([s,a])}),n)}function Rw(t,e,n){return Sw(t,(function(n){var i=+e,r=i/(n[1][1]-n[0][1]),s=-r*n[0][0],a=(i-r*(n[1][1]+n[0][1]))/2;t.scale(150*r).translate([s,a])}),n)}var Ow=16,Tw=xx(30*gx);function Nw(t,e){return+e?Pw(t,e):Lw(t)}function Lw(t){return Cw({point:function(e,n){e=t(e,n);this.stream.point(e[0],e[1])}})}function Pw(t,e){function n(i,r,s,a,o,u,l,c,f,d,h,p,m,g){var y=l-i,v=c-r,b=y*y+v*v;if(b>4*e&&m--){var x=a+d,_=o+h,w=u+p,A=Fx(x*x+_*_+w*w),k=zx(w/=A),E=yx(yx(w)-1)e||yx((y*F+v*S)/b-.5)>.3||a*d+o*h+u*p2?t[2]%360*gx:0,F()):[o*mx,u*mx,l*mx]};D.angle=function(t){return arguments.length?(f=t%360*gx,F()):f*mx};D.reflectX=function(t){return arguments.length?(d=t?-1:1,F()):d<0};D.reflectY=function(t){return arguments.length?(h=t?-1:1,F()):h<0};D.precision=function(t){return arguments.length?(w=Nw(A,_=t*t),S()):Fx(_)};D.fitExtent=function(t,e){return Bw(D,t,e)};D.fitSize=function(t,e){return zw(D,t,e)};D.fitWidth=function(t,e){return $w(D,t,e)};D.fitHeight=function(t,e){return Rw(D,t,e)};function F(){var t=jw(n,0,0,d,h,f).apply(null,e(s,a)),p=jw(n,i-t[0],r-t[1],d,h,f);c=ww(o,u,l);A=xw(e,p);k=xw(c,A);w=Nw(A,_);return S()}function S(){E=M=null;return D}return function(){e=t.apply(this,arguments);D.invert=e.invert&&C;return F()}}function Ww(t){var e=0,n=fx/3,i=Yw(t),r=i(e,n);r.parallels=function(t){return arguments.length?i(e=t[0]*gx,n=t[1]*gx):[e*mx,n*mx]};return r}function Xw(t){var e=xx(t);function n(t,n){return[t*e,Dx(n)/e]}n.invert=function(t,n){return[t/e,zx(n*e)]};return n}function Hw(t,e){var n=Dx(t),i=(n+Dx(e))/2;if(yx(i)=.12&&o<.234&&s>=-.425&&s<-.214?r:o>=.166&&o<.234&&s>=-.214&&s<-.115?a:n).invert(t)};c.stream=function(i){return t&&e===i?t:t=Kw([n.stream(e=i),r.stream(i),a.stream(i)])};c.precision=function(t){if(!arguments.length)return n.precision();n.precision(t),r.precision(t),a.precision(t);return f()};c.scale=function(t){if(!arguments.length)return n.scale();n.scale(t),r.scale(t*.35),a.scale(t);return c.translate(n.translate())};c.translate=function(t){if(!arguments.length)return n.translate();var e=n.scale(),u=+t[0],c=+t[1];i=n.translate(t).clipExtent([[u-.455*e,c-.238*e],[u+.455*e,c+.238*e]]).stream(l);s=r.translate([u-.307*e,c+.201*e]).clipExtent([[u-.425*e+lx,c+.12*e+lx],[u-.214*e-lx,c+.234*e-lx]]).stream(l);o=a.translate([u-.205*e,c+.212*e]).clipExtent([[u-.214*e+lx,c+.166*e+lx],[u-.115*e-lx,c+.234*e-lx]]).stream(l);return f()};c.fitExtent=function(t,e){return Bw(c,t,e)};c.fitSize=function(t,e){return zw(c,t,e)};c.fitWidth=function(t,e){return $w(c,t,e)};c.fitHeight=function(t,e){return Rw(c,t,e)};function f(){t=e=null;return c}return c.scale(1070)}function Jw(t){return function(e,n){var i=xx(e),r=xx(n),s=t(i*r);if(s===Infinity)return[2,0];return[s*r*Dx(e),s*Dx(n)]}}function tA(t){return function(e,n){var i=Fx(e*e+n*n),r=t(i),s=Dx(r),a=xx(r);return[bx(e*s,i*a),zx(i&&n*s/i)]}}var eA=Jw((function(t){return Fx(2/(1+t))}));eA.invert=tA((function(t){return 2*zx(t/2)}));function nA(){return Gw(eA).scale(124.75).clipAngle(180-.001)}var iA=Jw((function(t){return(t=Bx(t))&&t/Dx(t)}));iA.invert=tA((function(t){return t}));function rA(){return Gw(iA).scale(79.4188).clipAngle(180-.001)}function sA(t,e){return[t,Ex(Sx((dx+e)/2))]}sA.invert=function(t,e){return[t,2*vx(wx(e))-dx]};function aA(){return oA(sA).scale(961/px)}function oA(t){var e=Gw(t),n=e.center,i=e.scale,r=e.translate,s=e.clipExtent,a=null,o,u,l;e.scale=function(t){return arguments.length?(i(t),c()):i()};e.translate=function(t){return arguments.length?(r(t),c()):r()};e.center=function(t){return arguments.length?(n(t),c()):n()};e.clipExtent=function(t){return arguments.length?(t==null?a=o=u=l=null:(a=+t[0][0],o=+t[0][1],u=+t[1][0],l=+t[1][1]),c()):a==null?null:[[a,o],[u,l]]};function c(){var n=fx*i(),r=e(Mw(e.rotate()).invert([0,0]));return s(a==null?[[r[0]-n,r[1]-n],[r[0]+n,r[1]+n]]:t===sA?[[Math.max(r[0]-n,a),o],[Math.min(r[0]+n,u),l]]:[[a,Math.max(r[1]-n,o)],[u,Math.min(r[1]+n,l)]])}return c()}function uA(t){return Sx((dx+t)/2)}function lA(t,e){var n=xx(t),i=t===e?Dx(t):Ex(n/xx(e))/Ex(uA(e)/uA(t)),r=n*Mx(uA(t),i)/i;if(!i)return sA;function s(t,e){if(r>0){if(e<-dx+lx)e=-dx+lx}else{if(e>dx-lx)e=dx-lx}var n=r/Mx(uA(e),i);return[n*Dx(i*t),r-n*xx(i*t)]}s.invert=function(t,e){var n=r-e,s=Cx(i)*Fx(t*t+n*n),a=bx(t,yx(n))*Cx(n);if(n*i<0)a-=fx*Cx(t)*Cx(n);return[a/i,2*vx(Mx(r/s,1/i))-dx]};return s}function cA(){return Ww(lA).scale(109.5).parallels([30,30])}function fA(t,e){return[t,e]}fA.invert=fA;function dA(){return Gw(fA).scale(152.63)}function hA(t,e){var n=xx(t),i=t===e?Dx(t):(n-xx(e))/(e-t),r=n/i+t;if(yx(i)lx&&--i>0);return[t/(.8707+(s=n*n)*(-.131979+s*(-.013791+s*s*s*(.003971-.001529*s)))),n]};function DA(){return Gw(MA).scale(175.295)}function CA(t,e){return[xx(e)*Dx(t),Dx(e)]}CA.invert=tA(zx);function FA(){return Gw(CA).scale(249.5).clipAngle(90+lx)}function SA(t,e){var n=xx(e),i=1+xx(t)*n;return[n*Dx(t)/i,Dx(e)/i]}SA.invert=tA((function(t){return 2*vx(t)}));function BA(){return Gw(SA).scale(250).clipAngle(142)}function zA(t,e){return[Ex(Sx((dx+e)/2)),-t]}zA.invert=function(t,e){return[-e,2*vx(wx(t))-dx]};function $A(){var t=oA(zA),e=t.center,n=t.rotate;t.center=function(t){return arguments.length?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])};t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])};return n([0,0,90]).scale(159.155)}var RA=Math.abs;var OA=Math.atan;var TA=Math.atan2;var NA=Math.ceil;var LA=Math.cos;var PA=Math.exp;var qA=Math.floor;var IA=Math.log;var UA=Math.max;var jA=Math.min;var GA=Math.pow;var YA=Math.round;var WA=Math.sign||function(t){return t>0?1:t<0?-1:0};var XA=Math.sin;var HA=Math.tan;var VA=1e-6;var QA=1e-12;var KA=Math.PI;var ZA=KA/2;var JA=KA/4;var tk=Math.SQRT1_2;var ek=lk(2);var nk=lk(KA);var ik=KA*2;var rk=180/KA;var sk=KA/180;function ak(t){return t?t/Math.sin(t):1}function ok(t){return t>1?ZA:t<-1?-ZA:Math.asin(t)}function uk(t){return t>1?0:t<-1?KA:Math.acos(t)}function lk(t){return t>0?Math.sqrt(t):0}function ck(t){t=PA(2*t);return(t-1)/(t+1)}function fk(t){return(PA(t)-PA(-t))/2}function dk(t){return(PA(t)+PA(-t))/2}function hk(t){return IA(t+lk(t*t+1))}function pk(t){return IA(t+lk(t*t-1))}function mk(t,e){var n=t*XA(e),i=30,r;do{e-=r=(e+XA(e)-n)/(1+LA(e))}while(RA(r)>VA&&--i>0);return e/2}function gk(t,e,n){function i(i,r){return[t*i*LA(r=mk(n,r)),e*XA(r)]}i.invert=function(i,r){return r=ok(r/e),[i/(t*LA(r)),ok((2*r+XA(2*r))/n)]};return i}var yk=gk(ek/ZA,ek,KA);function vk(){return Gw(yk).scale(169.529)}const bk=U_();const xk=["clipAngle","clipExtent","scale","translate","center","rotate","parallels","precision","reflectX","reflectY","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"];function _k(t,e){return function n(){const i=e();i.type=t;i.path=U_().projection(i);i.copy=i.copy||function(){const t=n();xk.forEach((e=>{if(i[e])t[e](i[e]())}));t.path.pointRadius(i.path.pointRadius());return t};return Ul(i)}}function wk(t,e){if(!t||typeof t!=="string"){throw new Error("Projection type must be a name string.")}t=t.toLowerCase();if(arguments.length>1){kk[t]=_k(t,e);return this}else{return kk[t]||null}}function Ak(t){return t&&t.path||bk}const kk={albers:Qw,albersusa:Zw,azimuthalequalarea:nA,azimuthalequidistant:rA,conicconformal:cA,conicequalarea:Vw,conicequidistant:pA,equalEarth:wA,equirectangular:dA,gnomonic:kA,identity:EA,mercator:aA,mollweide:vk,naturalEarth1:DA,orthographic:FA,stereographic:BA,transversemercator:$A};for(const yW in kk){wk(yW,kk[yW])}function Ek(t,e,n){var i=(0,es.A)(t,e-lx,n).concat(e);return function(t){return i.map((function(e){return[t,e]}))}}function Mk(t,e,n){var i=(0,es.A)(t,e-lx,n).concat(e);return function(t){return i.map((function(e){return[e,t]}))}}function Dk(){var t,e,n,i,r,s,a,o,u=10,l=u,c=90,f=360,d,h,p,m,g=2.5;function y(){return{type:"MultiLineString",coordinates:v()}}function v(){return(0,es.A)(_x(i/c)*c,n,c).map(p).concat((0,es.A)(_x(o/f)*f,a,f).map(m)).concat((0,es.A)(_x(e/u)*u,t,u).filter((function(t){return yx(t%c)>lx})).map(d)).concat((0,es.A)(_x(s/l)*l,r,l).filter((function(t){return yx(t%f)>lx})).map(h))}y.lines=function(){return v().map((function(t){return{type:"LineString",coordinates:t}}))};y.outline=function(){return{type:"Polygon",coordinates:[p(i).concat(m(a).slice(1),p(n).reverse().slice(1),m(o).reverse().slice(1))]}};y.extent=function(t){if(!arguments.length)return y.extentMinor();return y.extentMajor(t).extentMinor(t)};y.extentMajor=function(t){if(!arguments.length)return[[i,o],[n,a]];i=+t[0][0],n=+t[1][0];o=+t[0][1],a=+t[1][1];if(i>n)t=i,i=n,n=t;if(o>a)t=o,o=a,a=t;return y.precision(g)};y.extentMinor=function(n){if(!arguments.length)return[[e,s],[t,r]];e=+n[0][0],t=+n[1][0];s=+n[0][1],r=+n[1][1];if(e>t)n=e,e=t,t=n;if(s>r)n=s,s=r,r=n;return y.precision(g)};y.step=function(t){if(!arguments.length)return y.stepMinor();return y.stepMajor(t).stepMinor(t)};y.stepMajor=function(t){if(!arguments.length)return[c,f];c=+t[0],f=+t[1];return y};y.stepMinor=function(t){if(!arguments.length)return[u,l];u=+t[0],l=+t[1];return y};y.precision=function(u){if(!arguments.length)return g;g=+u;d=Ek(s,r,90);h=Mk(e,t,g);p=Ek(o,a,90);m=Mk(i,n,g);return y};return y.extentMajor([[-180,-90+lx],[180,90-lx]]).extentMinor([[-180,-80-lx],[180,80+lx]])}function Ck(){return Dk()()}var Fk=n(33844);function Sk(){}const Bk=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function zk(){var t=1,e=1,n=o;function i(t,e){return e.map((e=>r(t,e)))}function r(t,e){var i=[],r=[];s(t,e,(s=>{n(s,t,e);if($k(s)>0)i.push([s]);else r.push(s)}));r.forEach((t=>{for(var e=0,n=i.length,r;e=i;Bk[f<<1].forEach(p);while(++u=i;Bk[c|f<<1].forEach(p)}Bk[f<<0].forEach(p);while(++l=i;d=n[l*t]>=i;Bk[f<<1|d<<2].forEach(p);while(++u=i;h=d,d=n[l*t+u+1]>=i;Bk[c|f<<1|d<<2|h<<3].forEach(p)}Bk[f|d<<3].forEach(p)}u=-1;d=n[l*t]>=i;Bk[d<<2].forEach(p);while(++u=i;Bk[d<<2|h<<3].forEach(p)}Bk[d<<3].forEach(p);function p(t){var e=[t[0][0]+u,t[0][1]+l],n=[t[1][0]+u,t[1][1]+l],i=a(e),c=a(n),f,d;if(f=o[i]){if(d=s[c]){delete o[f.end];delete s[d.start];if(f===d){f.ring.push(n);r(f.ring)}else{s[f.start]=o[d.end]={start:f.start,end:d.end,ring:f.ring.concat(d.ring)}}}else{delete o[f.end];f.ring.push(n);o[f.end=c]=f}}else if(f=s[c]){if(d=o[i]){delete s[f.start];delete o[d.end];if(f===d){f.ring.push(n);r(f.ring)}else{s[d.start]=o[f.end]={start:d.start,end:f.end,ring:d.ring.concat(f.ring)}}}else{delete s[f.start];f.ring.unshift(e);s[f.start=i]=f}}else{s[i]=o[c]={start:i,end:c,ring:[e,n]}}}}function a(e){return e[0]*2+e[1]*(t+1)*4}function o(n,i,r){n.forEach((n=>{var s=n[0],a=n[1],o=s|0,u=a|0,l,c=i[u*t+o];if(s>0&&s0&&a=0&&s>=0))(0,p.z3)("invalid size");return t=r,e=s,i};i.smooth=function(t){return arguments.length?(n=t?o:Sk,i):n===o};return i}function $k(t){var e=0,n=t.length,i=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];while(++ei!==h>i&&n<(d-l)*(i-c)/(h-c)+l)r=-r}return r}function Tk(t,e,n){var i;return Nk(t,e,n)&&Lk(t[i=+(t[0]===e[0])],n[i],e[i])}function Nk(t,e,n){return(e[0]-t[0])*(n[1]-t[1])===(n[0]-t[0])*(e[1]-t[1])}function Lk(t,e,n){return t<=e&&e<=n||n<=e&&e<=t}function Pk(t,e,n){return function(i){var r=(0,p.Xx)(i),s=n?Math.min(r[0],0):r[0],a=r[1],o=a-s,u=e?(0,N.sG)(s,a,t):o/(t+1);return(0,es.A)(s+u,a,u)}}function qk(t){zi.call(this,null,t)}qk.Definition={type:"Isocontour",metadata:{generates:true},params:[{name:"field",type:"field"},{name:"thresholds",type:"number",array:true},{name:"levels",type:"number"},{name:"nice",type:"boolean",default:false},{name:"resolve",type:"enum",values:["shared","independent"],default:"independent"},{name:"zero",type:"boolean",default:true},{name:"smooth",type:"boolean",default:true},{name:"scale",type:"number",expr:true},{name:"translate",type:"number",array:true,expr:true},{name:"as",type:"string",null:true,default:"contour"}]};(0,p.B)(qk,zi,{transform(t,e){if(this.value&&!e.changed()&&!t.modified()){return e.StopPropagation}var n=e.fork(e.NO_SOURCE|e.NO_FIELDS),i=e.materialize(e.SOURCE).source,r=t.field||p.D_,s=zk().smooth(t.smooth!==false),a=t.thresholds||Ik(i,r,t),o=t.as===null?null:t.as||"contour",u=[];i.forEach((e=>{const n=r(e);const i=s.size([n.width,n.height])(n.values,(0,p.cy)(a)?a:a(n.values));Uk(i,n,e,t);i.forEach((t=>{u.push(_n(e,bn(o!=null?{[o]:t}:t)))}))}));if(this.value)n.rem=this.value;this.value=n.source=n.add=u;return n}});function Ik(t,e,n){const i=Pk(n.levels||10,n.nice,n.zero!==false);return n.resolve!=="shared"?i:i(t.map((t=>(0,Ni.A)(e(t).values))))}function Uk(t,e,n,i){let r=i.scale||e.scale,s=i.translate||e.translate;if((0,p.Tn)(r))r=r(n,i);if((0,p.Tn)(s))s=s(n,i);if((r===1||r==null)&&!s)return;const a=((0,p.Et)(r)?r:r[0])||1,o=((0,p.Et)(r)?r:r[1])||1,u=s&&s[0]||0,l=s&&s[1]||0;t.forEach(jk(e,a,o,u,l))}function jk(t,e,n,i,r){const s=t.x1||0,a=t.y1||0,o=e*n<0;function u(t){t.forEach(l)}function l(t){if(o)t.reverse();t.forEach(c)}function c(t){t[0]=(t[0]-s)*e+i;t[1]=(t[1]-a)*n+r}return function(t){t.coordinates.forEach(u);return t}}function Gk(t,e,n){const i=t>=0?t:er(e,n);return Math.round((Math.sqrt(4*i*i+1)-1)/2)}function Yk(t){return(0,p.Tn)(t)?t:(0,p.dY)(+t)}function Wk(){var t=t=>t[0],e=t=>t[1],n=p.xH,i=[-1,-1],r=960,s=500,a=2;function o(o,u){const l=Gk(i[0],o,t)>>a,c=Gk(i[1],o,e)>>a,f=l?l+2:0,d=c?c+2:0,h=2*f+(r>>a),p=2*d+(s>>a),m=new Float32Array(h*p),g=new Float32Array(h*p);let y=m;o.forEach((i=>{const r=f+(+t(i)>>a),s=d+(+e(i)>>a);if(r>=0&&r=0&&s0&&c>0){Xk(h,p,m,g,l);Hk(h,p,g,m,c);Xk(h,p,m,g,l);Hk(h,p,g,m,c);Xk(h,p,m,g,l);Hk(h,p,g,m,c)}else if(l>0){Xk(h,p,m,g,l);Xk(h,p,g,m,l);Xk(h,p,m,g,l);y=g}else if(c>0){Hk(h,p,m,g,c);Hk(h,p,g,m,c);Hk(h,p,m,g,c);y=g}const v=u?Math.pow(2,-2*a):1/tb(y);for(let t=0,e=h*p;t>a),y2:d+(s>>a)}}o.x=function(e){return arguments.length?(t=Yk(e),o):t};o.y=function(t){return arguments.length?(e=Yk(t),o):e};o.weight=function(t){return arguments.length?(n=Yk(t),o):n};o.size=function(t){if(!arguments.length)return[r,s];var e=+t[0],n=+t[1];if(!(e>=0&&n>=0))(0,p.z3)("invalid size");return r=e,s=n,o};o.cellSize=function(t){if(!arguments.length)return 1<=1))(0,p.z3)("invalid cell size");a=Math.floor(Math.log(t)/Math.LN2);return o};o.bandwidth=function(t){if(!arguments.length)return i;t=(0,p.YO)(t);if(t.length===1)t=[+t[0],+t[0]];if(t.length!==2)(0,p.z3)("invalid bandwidth");return i=t,o};return o}function Xk(t,e,n,i,r){const s=(r<<1)+1;for(let a=0;a=r){if(e>=s){o-=n[e-s+a*t]}i[e-r+a*t]=o/Math.min(e+1,t-1+s-e,s)}}}}function Hk(t,e,n,i,r){const s=(r<<1)+1;for(let a=0;a=r){if(o>=s){u-=n[a+(o-s)*t]}i[a+(o-r)*t]=u/Math.min(o+1,e-1+s-o,s)}}}}function Vk(t){zi.call(this,null,t)}Vk.Definition={type:"KDE2D",metadata:{generates:true},params:[{name:"size",type:"number",array:true,length:2,required:true},{name:"x",type:"field",required:true},{name:"y",type:"field",required:true},{name:"weight",type:"field"},{name:"groupby",type:"field",array:true},{name:"cellSize",type:"number"},{name:"bandwidth",type:"number",array:true,length:2},{name:"counts",type:"boolean",default:false},{name:"as",type:"string",default:"grid"}]};const Qk=["x","y","weight","size","cellSize","bandwidth"];function Kk(t,e){Qk.forEach((n=>e[n]!=null?t[n](e[n]):0));return t}(0,p.B)(Vk,zi,{transform(t,e){if(this.value&&!e.changed()&&!t.modified())return e.StopPropagation;var n=e.fork(e.NO_SOURCE|e.NO_FIELDS),i=e.materialize(e.SOURCE).source,r=Zk(i,t.groupby),s=(t.groupby||[]).map(p.N6),a=Kk(Wk(),t),o=t.as||"grid",u=[];function l(t,e){for(let n=0;nbn(l({[o]:a(e,t.counts)},e.dims))));if(this.value)n.rem=this.value;this.value=n.source=n.add=u;return n}});function Zk(t,e){var n=[],i=t=>t(o),r,s,a,o,u,l;if(e==null){n.push(t)}else{for(r={},s=0,a=t.length;sn.push(o(t))))}if(s&&a){e.visit(u,(t=>{var e=s(t),n=a(t);if(e!=null&&n!=null&&(e=+e)===e&&(n=+n)===n){i.push([e,n])}}));n=n.concat({type:tE,geometry:{type:nE,coordinates:i}})}this.value={type:eE,features:n}}});function rE(t){zi.call(this,null,t)}rE.Definition={type:"GeoPath",metadata:{modifies:true},params:[{name:"projection",type:"projection"},{name:"field",type:"field"},{name:"pointRadius",type:"number",expr:true},{name:"as",type:"string",default:"path"}]};(0,p.B)(rE,zi,{transform(t,e){var n=e.fork(e.ALL),i=this.value,r=t.field||p.D_,s=t.as||"path",a=n.SOURCE;if(!i||t.modified()){this.value=i=Ak(t.projection);n.materialize().reflow()}else{a=r===p.D_||e.modified(r.fields)?n.ADD_MOD:n.ADD}const o=sE(i,t.pointRadius);n.visit(a,(t=>t[s]=i(r(t))));i.pointRadius(o);return n.modifies(s)}});function sE(t,e){const n=t.pointRadius();t.context(null);if(e!=null){t.pointRadius(e)}return n}function aE(t){zi.call(this,null,t)}aE.Definition={type:"GeoPoint",metadata:{modifies:true},params:[{name:"projection",type:"projection",required:true},{name:"fields",type:"field",array:true,required:true,length:2},{name:"as",type:"string",array:true,length:2,default:["x","y"]}]};(0,p.B)(aE,zi,{transform(t,e){var n=t.projection,i=t.fields[0],r=t.fields[1],s=t.as||["x","y"],a=s[0],o=s[1],u;function l(t){const e=n([i(t),r(t)]);if(e){t[a]=e[0];t[o]=e[1]}else{t[a]=undefined;t[o]=undefined}}if(t.modified()){e=e.materialize().reflow(true).visit(e.SOURCE,l)}else{u=e.modified(i.fields)||e.modified(r.fields);e.visit(u?e.ADD_MOD:e.ADD,l)}return e.modifies(s)}});function oE(t){zi.call(this,null,t)}oE.Definition={type:"GeoShape",metadata:{modifies:true,nomod:true},params:[{name:"projection",type:"projection"},{name:"field",type:"field",default:"datum"},{name:"pointRadius",type:"number",expr:true},{name:"as",type:"string",default:"shape"}]};(0,p.B)(oE,zi,{transform(t,e){var n=e.fork(e.ALL),i=this.value,r=t.as||"shape",s=n.ADD;if(!i||t.modified()){this.value=i=uE(Ak(t.projection),t.field||(0,p.ZZ)("datum"),t.pointRadius);n.materialize().reflow();s=n.SOURCE}n.visit(s,(t=>t[r]=i));return n.modifies(r)}});function uE(t,e,n){const i=n==null?n=>t(e(n)):i=>{var r=t.pointRadius(),s=t.pointRadius(n)(e(i));t.pointRadius(r);return s};i.context=e=>{t.context(e);return i};return i}function lE(t){zi.call(this,[],t);this.generator=Dk()}lE.Definition={type:"Graticule",metadata:{changes:true,generates:true},params:[{name:"extent",type:"array",array:true,length:2,content:{type:"number",array:true,length:2}},{name:"extentMajor",type:"array",array:true,length:2,content:{type:"number",array:true,length:2}},{name:"extentMinor",type:"array",array:true,length:2,content:{type:"number",array:true,length:2}},{name:"step",type:"number",array:true,length:2},{name:"stepMajor",type:"number",array:true,length:2,default:[90,360]},{name:"stepMinor",type:"number",array:true,length:2,default:[10,10]},{name:"precision",type:"number",default:2.5}]};(0,p.B)(lE,zi,{transform(t,e){var n=this.value,i=this.generator,r;if(!n.length||t.modified()){for(const e in t){if((0,p.Tn)(i[e])){i[e](t[e])}}}r=i();if(n.length){e.mod.push(wn(n[0],r))}else{e.add.push(bn(r))}n[0]=r;return e}});function cE(t){zi.call(this,null,t)}cE.Definition={type:"heatmap",metadata:{modifies:true},params:[{name:"field",type:"field"},{name:"color",type:"string",expr:true},{name:"opacity",type:"number",expr:true},{name:"resolve",type:"enum",values:["shared","independent"],default:"independent"},{name:"as",type:"string",default:"image"}]};(0,p.B)(cE,zi,{transform(t,e){if(!e.changed()&&!t.modified()){return e.StopPropagation}var n=e.materialize(e.SOURCE).source,i=t.resolve==="shared",r=t.field||p.D_,s=dE(t.opacity,t),a=fE(t.color,t),o=t.as||"image",u={$x:0,$y:0,$value:0,$max:i?(0,Ni.A)(n.map((t=>(0,Ni.A)(r(t).values)))):0};n.forEach((t=>{const e=r(t);const n=(0,p.X$)({},t,u);if(!i)n.$max=(0,Ni.A)(e.values||[]);t[o]=pE(e,n,a.dep?a:(0,p.dY)(a(n)),s.dep?s:(0,p.dY)(s(n)))}));return e.reflow(true).modifies(o)}});function fE(t,e){let n;if((0,p.Tn)(t)){n=n=>(0,Fk.Qh)(t(n,e));n.dep=hE(t)}else{n=(0,p.dY)((0,Fk.Qh)(t||"#888"))}return n}function dE(t,e){let n;if((0,p.Tn)(t)){n=n=>t(n,e);n.dep=hE(t)}else if(t){n=(0,p.dY)(t)}else{n=t=>t.$value/t.$max||0;n.dep=true}return n}function hE(t){if(!(0,p.Tn)(t))return false;const e=(0,p.M1)((0,p.nS)(t));return e.$x||e.$y||e.$value||e.$max}function pE(t,e,n,i){const r=t.width,s=t.height,a=t.x1||0,o=t.y1||0,u=t.x2||r,l=t.y2||s,c=t.values,f=c?t=>c[t]:p.v_,d=Ko(u-a,l-o),h=d.getContext("2d"),m=h.getImageData(0,0,u-a,l-o),g=m.data;for(let p=o,y=0;p{if(t[e]!=null)vE(n,e,t[e])}))}else{xk.forEach((e=>{if(t.modified(e))vE(n,e,t[e])}))}if(t.pointRadius!=null)n.path.pointRadius(t.pointRadius);if(t.fit)gE(n,t);return e.fork(e.NO_SOURCE|e.NO_FIELDS)}});function gE(t,e){const n=bE(e.fit);e.extent?t.fitExtent(e.extent,n):e.size?t.fitSize(e.size,n):0}function yE(t){const e=wk((t||"mercator").toLowerCase());if(!e)(0,p.z3)("Unrecognized projection type: "+t);return e()}function vE(t,e,n){if((0,p.Tn)(t[e]))t[e](n)}function bE(t){t=(0,p.YO)(t);return t.length===1?t[0]:{type:eE,features:t.reduce(((t,e)=>t.concat(xE(e))),[])}}function xE(t){return t.type===eE?t.features:(0,p.YO)(t).filter((t=>t!=null)).map((t=>t.type===tE?t:{type:tE,geometry:t}))}function _E(t,e){var n,i=1;if(t==null)t=0;if(e==null)e=0;function r(){var r,s=n.length,a,o=0,u=0;for(r=0;r=(f=(o+l)/2))o=f;else l=f;if(g=n>=(d=(u+c)/2))u=d;else c=d;if(r=s,!(s=s[y=g<<1|m]))return r[y]=a,t}h=+t._x.call(null,s.data);p=+t._y.call(null,s.data);if(e===h&&n===p)return a.next=s,r?r[y]=a:t._root=a,t;do{r=r?r[y]=new Array(4):t._root=new Array(4);if(m=e>=(f=(o+l)/2))o=f;else l=f;if(g=n>=(d=(u+c)/2))u=d;else c=d}while((y=g<<1|m)===(v=(p>=d)<<1|h>=f));return r[v]=s,r[y]=a,t}function kE(t){var e,n,i=t.length,r,s,a=new Array(i),o=new Array(i),u=Infinity,l=Infinity,c=-Infinity,f=-Infinity;for(n=0;nc)c=r;if(sf)f=s}if(u>c||l>f)return this;this.cover(u,l).cover(c,f);for(n=0;nt||t>=r||i>e||e>=s){l=(ec||(o=p.y0)>f||(u=p.x1)=y)<<1|t>=g){p=d[d.length-1];d[d.length-1]=d[d.length-1-m];d[d.length-1-m]=p}}else{var v=t-+this._x.call(null,h.data),b=e-+this._y.call(null,h.data),x=v*v+b*b;if(x=(d=(a+u)/2))a=d;else u=d;if(m=f>=(h=(o+l)/2))o=h;else l=h;if(!(e=n,n=n[g=m<<1|p]))return this;if(!n.length)break;if(e[g+1&3]||e[g+2&3]||e[g+3&3])i=e,y=g}while(n.data!==t)if(!(r=n,n=n.next))return this;if(s=n.next)delete n.next;if(r)return s?r.next=s:delete r.next,this;if(!e)return this._root=s,this;s?e[g]=s:delete e[g];if((n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length){if(i)i[y]=n;else this._root=n}return this}function BE(t){for(var e=0,n=t.length;el.index){var m=c-o.x-o.vx,g=f-o.y-o.vy,y=m*m+g*g;if(yc+p||sf+p||at.r){t.r=t[e].r}}}function u(){if(!e)return;var i,r=e.length,s;n=new Array(r);for(i=0;i(t=(KE*t+ZE)%JE)/JE}function eM(t){return t.x}function nM(t){return t.y}var iM=10,rM=Math.PI*(3-Math.sqrt(5));function sM(t){var e,n=1,i=.001,r=1-Math.pow(i,1/300),s=0,a=.6,o=new Map,u=(0,QE.O1)(f),l=(0,VE.A)("tick","end"),c=tM();if(t==null)t=[];function f(){d();l.call("tick",e);if(n1?(n==null?o.delete(t):o.set(t,p(n)),e):o.get(t)},find:function(e,n,i){var r=0,s=t.length,a,o,u,l,c;if(i==null)i=Infinity;else i*=i;for(r=0;r1?(l.on(t,n),e):l.on(t)}}}function aM(){var t,e,n,i,r=GE(-30),s,a=1,o=Infinity,u=.81;function l(n){var r,s=t.length,a=qE(t,eM,nM).visitAfter(f);for(i=n,r=0;r=o)return;if(t.data!==e||t.next){if(f===0)f=YE(n),p+=f*f;if(d===0)d=YE(n),p+=d*d;if(p[e(t,n,a),t]))),f;for(n=0,o=new Array(r);n=0;)n.tick()}else{if(n.stopped())n.restart();if(!i)return e.StopPropagation}}return this.finish(t,e)},finish(t,e){const n=e.dataflow;for(let o=this._argops,u=0,l=o.length,c;ut.touch(e).run()}function bM(t,e){const n=sM(t),i=n.stop,r=n.restart;let s=false;n.stopped=()=>s;n.restart=()=>(s=false,r());n.stop=()=>(s=true,i());return xM(n,e,true).on("end",(()=>s=true))}function xM(t,e,n,i){var r=(0,p.YO)(e.forces),s,a,o,u;for(s=0,a=pM.length;se(t,n):e)}function kM(t){var e=0,n=t.children,i=n&&n.length;if(!i)e=1;else while(--i>=0)e+=n[i].value;t.value=e}function EM(){return this.eachAfter(kM)}function MM(t,e){let n=-1;for(const i of this){t.call(e,i,++n,this)}return this}function DM(t,e){var n=this,i=[n],r,s,a=-1;while(n=i.pop()){t.call(e,n,++a,this);if(r=n.children){for(s=r.length-1;s>=0;--s){i.push(r[s])}}}return this}function CM(t,e){var n=this,i=[n],r=[],s,a,o,u=-1;while(n=i.pop()){r.push(n);if(s=n.children){for(a=0,o=s.length;a=0)n+=i[r].value;e.value=n}))}function BM(t){return this.eachBefore((function(e){if(e.children){e.children.sort(t)}}))}function zM(t){var e=this,n=$M(e,t),i=[e];while(e!==n){e=e.parent;i.push(e)}var r=i.length;while(t!==n){i.splice(r,0,t);t=t.parent}return i}function $M(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),r=null;t=n.pop();e=i.pop();while(t===e){r=t;t=n.pop();e=i.pop()}return r}function RM(){var t=this,e=[t];while(t=t.parent){e.push(t)}return e}function OM(){return Array.from(this)}function TM(){var t=[];this.eachBefore((function(e){if(!e.children){t.push(e)}}));return t}function NM(){var t=this,e=[];t.each((function(n){if(n!==t){e.push({source:n.parent,target:n})}}));return e}function*LM(){var t=this,e,n=[t],i,r,s;do{e=n.reverse(),n=[];while(t=e.pop()){yield t;if(i=t.children){for(r=0,s=i.length;r=0;--o){r.push(s=a[o]=new YM(a[o]));s.parent=i;s.depth=i.depth+1}}}return n.eachBefore(GM)}function qM(){return PM(this).eachBefore(jM)}function IM(t){return t.children}function UM(t){return Array.isArray(t)?t[1]:null}function jM(t){if(t.data.value!==undefined)t.value=t.data.value;t.data=t.data.data}function GM(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function YM(t){this.data=t;this.depth=this.height=0;this.parent=null}YM.prototype=PM.prototype={constructor:YM,count:EM,each:MM,eachAfter:CM,eachBefore:DM,find:FM,sum:SM,sort:BM,path:zM,ancestors:RM,descendants:OM,leaves:TM,links:NM,copy:qM,[Symbol.iterator]:LM};function WM(t){return t==null?null:XM(t)}function XM(t){if(typeof t!=="function")throw new Error;return t}function HM(){return 0}function VM(t){return function(){return t}}const QM=1664525;const KM=1013904223;const ZM=4294967296;function JM(){let t=1;return()=>(t=(QM*t+KM)%ZM)/ZM}function tD(t){return typeof t==="object"&&"length"in t?t:Array.from(t)}function eD(t,e){let n=t.length,i,r;while(n){r=e()*n--|0;i=t[n];t[n]=t[r];t[r]=i}return t}function nD(t){return iD(t,lcg())}function iD(t,e){var n=0,i=(t=eD(Array.from(t),e)).length,r=[],s,a;while(n0&&n*n>i*i+r*r}function oD(t,e){for(var n=0;n1e-6?(D+Math.sqrt(D*D-4*M*C))/(2*M):C/D);return{x:i+w+A*F,y:r+k+E*F,r:F}}function dD(t,e,n){var i=t.x-e.x,r,s,a=t.y-e.y,o,u,l=i*i+a*a;if(l){s=e.r+n.r,s*=s;u=t.r+n.r,u*=u;if(s>u){r=(l+u-s)/(2*l);o=Math.sqrt(Math.max(0,u/l-r*r));n.x=t.x-r*i-o*a;n.y=t.y-r*a+o*i}else{r=(l+s-u)/(2*l);o=Math.sqrt(Math.max(0,s/l-r*r));n.x=e.x+r*i-o*a;n.y=e.y+r*a+o*i}}else{n.x=e.x+n.r;n.y=e.y}}function hD(t,e){var n=t.r+e.r-1e-6,i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function pD(t){var e=t._,n=t.next._,i=e.r+n.r,r=(e.x*n.r+n.x*e.r)/i,s=(e.y*n.r+n.y*e.r)/i;return r*r+s*s}function mD(t){this._=t;this.next=null;this.previous=null}function gD(t,e){if(!(s=(t=tD(t)).length))return 0;var n,i,r,s,a,o,u,l,c,f,d;n=t[0],n.x=0,n.y=0;if(!(s>1))return n.r;i=t[1],n.x=-i.r,i.x=n.r,i.y=0;if(!(s>2))return n.r+i.r;dD(i,n,r=t[2]);n=new mD(n),i=new mD(i),r=new mD(r);n.next=r.previous=i;i.next=n.previous=r;r.next=i.previous=n;t:for(u=3;uzD(n(t,e,i))));const e=t.map($D);const o=new Set(t).add("");for(const n of e){if(!o.has(n)){o.add(n);t.push(n);e.push($D(n));r.push(CD)}}s=(e,n)=>t[n];a=(t,n)=>e[n]}for(l=0,o=r.length;l=0;--t){d=r[t];if(d.data!==CD)break;d.data=null}}c.parent=MD;c.eachBefore((function(t){t.depth=t.parent.depth+1;--o})).eachBefore(GM);c.parent=null;if(o>0)throw new Error("cycle");return c}i.id=function(e){return arguments.length?(t=WM(e),i):t};i.parentId=function(t){return arguments.length?(e=WM(t),i):e};i.path=function(t){return arguments.length?(n=WM(t),i):n};return i}function zD(t){t=`${t}`;let e=t.length;if(RD(t,e-1)&&!RD(t,e-2))t=t.slice(0,-1);return t[0]==="/"?t:`/${t}`}function $D(t){let e=t.length;if(e<2)return"";while(--e>1)if(RD(t,e))break;return t.slice(0,e)}function RD(t,e){if(t[e]==="/"){let n=0;while(e>0&&t[--e]==="\\")++n;if((n&1)===0)return true}return false}function OD(t,e){return t.parent===e.parent?1:2}function TD(t){var e=t.children;return e?e[0]:t.t}function ND(t){var e=t.children;return e?e[e.length-1]:t.t}function LD(t,e,n){var i=n/(e.i-t.i);e.c-=i;e.s+=n;t.c+=i;e.z+=n;e.m+=n}function PD(t){var e=0,n=0,i=t.children,r=i.length,s;while(--r>=0){s=i[r];s.z+=e;s.m+=e;e+=s.s+(n+=s.c)}}function qD(t,e,n){return t.a.parent===e.parent?t.a:n}function ID(t,e){this._=t;this.parent=null;this.children=null;this.A=null;this.a=this;this.z=0;this.m=0;this.c=0;this.s=0;this.t=null;this.i=e}ID.prototype=Object.create(YM.prototype);function UD(t){var e=new ID(t,0),n,i=[e],r,s,a,o;while(n=i.pop()){if(s=n._.children){n.children=new Array(o=s.length);for(a=o-1;a>=0;--a){i.push(r=n.children[a]=new ID(s[a],a));r.parent=n}}}(e.parent=new ID(null,0)).children=[e];return e}function jD(){var t=OD,e=1,n=1,i=null;function r(r){var o=UD(r);o.eachAfter(s),o.parent.m=-o.z;o.eachBefore(a);if(i)r.eachBefore(u);else{var l=r,c=r,f=r;r.eachBefore((function(t){if(t.xc.x)c=t;if(t.depth>f.depth)f=t}));var d=l===c?1:t(l,c)/2,h=d-l.x,p=e/(c.x+d+h),m=n/(f.depth||1);r.eachBefore((function(t){t.x=(t.x+h)*p;t.y=t.depth*m}))}return r}function s(e){var n=e.children,i=e.parent.children,r=e.i?i[e.i-1]:null;if(n){PD(e);var s=(n[0].z+n[n.length-1].z)/2;if(r){e.z=r.z+t(e._,r._);e.m=e.z-s}else{e.z=s}}else if(r){e.z=r.z+t(e._,r._)}e.parent.A=o(e,r,e.parent.A||i[0])}function a(t){t._.x=t.z+t.parent.m;t.m+=t.parent.m}function o(e,n,i){if(n){var r=e,s=e,a=n,o=r.parent.children[0],u=r.m,l=s.m,c=a.m,f=o.m,d;while(a=ND(a),r=TD(r),a&&r){o=TD(o);s=ND(s);s.a=e;d=a.z+c-r.z-u+t(a._,r._);if(d>0){LD(qD(a,e,i),e,d);u+=d;l+=d}c+=a.m;u+=r.m;f+=o.m;l+=s.m}if(a&&!ND(s)){s.t=a;s.m+=c-l}if(r&&!TD(o)){o.t=r;o.m+=u-f;i=e}}return i}function u(t){t.x*=e;t.y=t.depth*n}r.separation=function(e){return arguments.length?(t=e,r):t};r.size=function(t){return arguments.length?(i=false,e=+t[0],n=+t[1],r):i?null:[e,n]};r.nodeSize=function(t){return arguments.length?(i=true,e=+t[0],n=+t[1],r):i?[e,n]:null};return r}function GD(t,e){return t.parent===e.parent?1:2}function YD(t){return t.reduce(WD,0)/t.length}function WD(t,e){return t+e.x}function XD(t){return 1+t.reduce(HD,0)}function HD(t,e){return Math.max(t,e.y)}function VD(t){var e;while(e=t.children)t=e[0];return t}function QD(t){var e;while(e=t.children)t=e[e.length-1];return t}function KD(){var t=GD,e=1,n=1,i=false;function r(r){var s,a=0;r.eachAfter((function(e){var n=e.children;if(n){e.x=YD(n);e.y=XD(n)}else{e.x=s?a+=t(e,s):0;e.y=0;s=e}}));var o=VD(r),u=QD(r),l=o.x-t(o,u)/2,c=u.x+t(u,o)/2;return r.eachAfter(i?function(t){t.x=(t.x-r.x)*e;t.y=(r.y-t.y)*n}:function(t){t.x=(t.x-l)/(c-l)*e;t.y=(1-(r.y?t.y/r.y:1))*n})}r.separation=function(e){return arguments.length?(t=e,r):t};r.size=function(t){return arguments.length?(i=false,e=+t[0],n=+t[1],r):i?null:[e,n]};r.nodeSize=function(t){return arguments.length?(i=true,e=+t[0],n=+t[1],r):i?[e,n]:null};return r}function ZD(t,e,n,i,r){var s=t.children,a,o=s.length,u,l=new Array(o+1);for(l[0]=u=a=0;a=e-1){var u=s[t];u.x0=i,u.y0=r;u.x1=a,u.y1=o;return}var f=l[t],d=n/2+f,h=t+1,p=e-1;while(h>>1;if(l[m]o-r){var v=n?(i*y+a*g)/n:a;c(t,h,g,i,r,v,o);c(h,e,y,v,r,a,o)}else{var b=n?(r*y+o*g)/n:o;c(t,h,g,i,r,a,b);c(h,e,y,i,b,a,o)}}}function JD(t,e,n,i,r){var s=t.children,a,o=-1,u=s.length,l=t.value&&(r-n)/t.value;while(++ov)v=l;w=g*g*_;b=Math.max(v/w,w/y);if(b>x){g-=l;break}x=b}a.push(u={value:g,dice:h1?e:1)};return n}(eC);const rC=function t(e){function n(t,n,i,r,s){if((a=t._squarify)&&a.ratio===e){var a,o,u,l,c=-1,f,d=a.length,h=t.value;while(++c1?e:1)};return n}(eC);function sC(){var t=iC,e=false,n=1,i=1,r=[0],s=HM,a=HM,o=HM,u=HM,l=HM;function c(t){t.x0=t.y0=0;t.x1=n;t.y1=i;t.eachBefore(f);r=[0];if(e)t.eachBefore(AD);return t}function f(e){var n=r[e.depth],i=e.x0+n,c=e.y0+n,f=e.x1-n,d=e.y1-n;if(f{const r=t.data;if(n(r))i[e(r)]=t}));t.lookup=i;return t}function oC(t){zi.call(this,null,t)}oC.Definition={type:"Nest",metadata:{treesource:true,changes:true},params:[{name:"keys",type:"field",array:true},{name:"generate",type:"boolean"}]};const uC=t=>t.values;(0,p.B)(oC,zi,{transform(t,e){if(!e.source){(0,p.z3)("Nest transform requires an upstream data source.")}var n=t.generate,i=t.modified(),r=e.clone(),s=this.value;if(!s||i||e.changed()){if(s){s.each((t=>{if(t.children&&gn(t.data)){r.rem.push(t.data)}}))}this.value=s=PM({values:(0,p.YO)(t.keys).reduce(((t,e)=>{t.key(e);return t}),lC()).entries(r.source)},uC);if(n){s.each((t=>{if(t.children){t=bn(t.data);r.add.push(t);r.source.push(t)}}))}aC(s,yn,yn)}r.source.root=s;return r}});function lC(){const t=[],e={entries:t=>i(n(t,0),0),key:n=>(t.push(n),e)};function n(e,i){if(i>=t.length){return e}const r=e.length,s=t[i++],a={},o={};let u=-1,l,c,f;while(++ut.length)return e;const r=[];for(const t in e){r.push({key:t,values:i(e[t],n)})}return r}return e}function cC(t){zi.call(this,null,t)}const fC=(t,e)=>t.parent===e.parent?1:2;(0,p.B)(cC,zi,{transform(t,e){if(!e.source||!e.source.root){(0,p.z3)(this.constructor.name+" transform requires a backing tree data source.")}const n=this.layout(t.method),i=this.fields,r=e.source.root,s=t.as||i;if(t.field)r.sum(t.field);else r.count();if(t.sort)r.sort(An(t.sort,(t=>t.data)));dC(n,this.params,t);if(n.separation){n.separation(t.separation!==false?fC:p.xH)}try{this.value=n(r)}catch(a){(0,p.z3)(a)}r.each((t=>hC(t,i,s)));return e.reflow(t.modified()).modifies(s).modifies("leaf")}});function dC(t,e,n){for(let i,r=0,s=e.length;rs[yn(t)]=1));i.each((t=>{const e=t.data,n=t.parent&&t.parent.data;if(n&&s[yn(e)]&&s[yn(n)]){r.add.push(bn({source:n,target:e}))}}));this.value=r.add}else if(e.changed(e.MOD)){e.visit(e.MOD,(t=>s[yn(t)]=1));n.forEach((t=>{if(s[yn(t.source)]||s[yn(t.target)]){r.mod.push(t)}}))}return r}});const AC={binary:ZD,dice:kD,slice:JD,slicedice:tC,squarify:iC,resquarify:rC};const kC=["x0","y0","x1","y1","depth","children"];function EC(t){cC.call(this,t)}EC.Definition={type:"Treemap",metadata:{tree:true,modifies:true},params:[{name:"field",type:"field"},{name:"sort",type:"compare"},{name:"method",type:"enum",default:"squarify",values:["squarify","resquarify","binary","dice","slice","slicedice"]},{name:"padding",type:"number",default:0},{name:"paddingInner",type:"number",default:0},{name:"paddingOuter",type:"number",default:0},{name:"paddingTop",type:"number",default:0},{name:"paddingRight",type:"number",default:0},{name:"paddingBottom",type:"number",default:0},{name:"paddingLeft",type:"number",default:0},{name:"ratio",type:"number",default:1.618033988749895},{name:"round",type:"boolean",default:false},{name:"size",type:"number",array:true,length:2},{name:"as",type:"string",array:true,length:kC.length,default:kC}]};(0,p.B)(EC,cC,{layout(){const t=sC();t.ratio=e=>{const n=t.tile();if(n.ratio)t.tile(n.ratio(e))};t.method=e=>{if((0,p.mQ)(AC,e))t.tile(AC[e]);else(0,p.z3)("Unrecognized Treemap layout method: "+e)};return t},params:["method","ratio","size","round","padding","paddingInner","paddingOuter","paddingTop","paddingRight","paddingBottom","paddingLeft"],fields:kC});const MC=4278190080;function DC(t,e){const n=t.bitmap();(e||[]).forEach((e=>n.set(t(e.boundary[0]),t(e.boundary[3]))));return[n,undefined]}function CC(t,e,n,i,r){const s=t.width,a=t.height,o=i||r,u=Ko(s,a).getContext("2d"),l=Ko(s,a).getContext("2d"),c=o&&Ko(s,a).getContext("2d");n.forEach((t=>SC(u,t,false)));SC(l,e,false);if(o){SC(c,e,true)}const f=FC(u,s,a),d=FC(l,s,a),h=o&&FC(c,s,a),p=t.bitmap(),m=o&&t.bitmap();let g,y,v,b,x,_,w,A;for(y=0;y{e.items.forEach((e=>SC(t,e.items,n)))}))}else{Qp[i].draw(t,{items:n?e.map(BC):e})}}function BC(t){const e=_n(t,{});if(e.stroke&&e.strokeOpacity!==0||e.fill&&e.fillOpacity!==0){return{...e,strokeOpacity:1,stroke:"#000",fillOpacity:0}}return e}const zC=5,$C=31,RC=32,OC=new Uint32Array(RC+1),TC=new Uint32Array(RC+1);TC[0]=0;OC[0]=~TC[0];for(let yW=1;yW<=RC;++yW){TC[yW]=TC[yW-1]<<1|1;OC[yW]=~TC[yW]}function NC(t,e){const n=new Uint32Array(~~((t*e+RC)/RC));function i(t,e){n[t]|=e}function r(t,e){n[t]&=e}return{array:n,get:(e,i)=>{const r=i*t+e;return n[r>>>zC]&1<<(r&$C)},set:(e,n)=>{const r=n*t+e;i(r>>>zC,1<<(r&$C))},clear:(e,n)=>{const i=n*t+e;r(i>>>zC,~(1<<(i&$C)))},getRange:(e,i,r,s)=>{let a=s,o,u,l,c;for(;a>=i;--a){o=a*t+e;u=a*t+r;l=o>>>zC;c=u>>>zC;if(l===c){if(n[l]&OC[o&$C]&TC[(u&$C)+1]){return true}}else{if(n[l]&OC[o&$C])return true;if(n[c]&TC[(u&$C)+1])return true;for(let t=l+1;t{let a,o,u,l,c;for(;n<=s;++n){a=n*t+e;o=n*t+r;u=a>>>zC;l=o>>>zC;if(u===l){i(u,OC[a&$C]&TC[(o&$C)+1])}else{i(u,OC[a&$C]);i(l,TC[(o&$C)+1]);for(c=u+1;c{let a,o,u,l,c;for(;n<=s;++n){a=n*t+e;o=n*t+i;u=a>>>zC;l=o>>>zC;if(u===l){r(u,TC[a&$C]|OC[(o&$C)+1])}else{r(u,TC[a&$C]);r(l,OC[(o&$C)+1]);for(c=u+1;cn<0||i<0||s>=e||r>=t}}function LC(t,e,n){const i=Math.max(1,Math.sqrt(t*e/1e6)),r=~~((t+2*n+i)/i),s=~~((e+2*n+i)/i),a=t=>~~((t+n)/i);a.invert=t=>t*i-n;a.bitmap=()=>NC(r,s);a.ratio=i;a.padding=n;a.width=t;a.height=e;return a}function PC(t,e,n,i){const r=t.width,s=t.height;return function(t){const e=t.datum.datum.items[i].items,n=e.length,a=t.datum.fontSize,o=Ap.width(t.datum,t.datum.text);let u=0,l,c,f,d,h,p,m;for(let i=0;i=u){u=m;t.x=h;t.y=p}}h=o/2;p=a/2;l=t.x-h;c=t.x+h;f=t.y-p;d=t.y+p;t.align="center";if(l<0&&c<=r){t.align="left"}else if(0<=l&&rr||e-(a=i/2)<0||e+a>s}function IC(t,e,n,i,r,s,a,o){const u=r*s/(i*2),l=t(e-u),c=t(e+u),f=t(n-(s=s/2)),d=t(n+s);return a.outOfBounds(l,f,c,d)||a.getRange(l,f,c,d)||o&&o.getRange(l,f,c,d)}function UC(t,e,n,i){const r=t.width,s=t.height,a=e[0],o=e[1];function u(e,n,i,u,l){const c=t.invert(e),f=t.invert(n);let d=i,h=s,p;if(!qC(c,f,u,l,r,s)&&!IC(t,c,f,l,u,d,a,o)&&!IC(t,c,f,l,u,l,a,null)){while(h-d>=1){p=(d+h)/2;if(IC(t,c,f,l,u,p,a,o)){h=p}else{d=p}}if(d>i){return[c,f,d,true]}}}return function(e){const o=e.datum.datum.items[i].items,l=o.length,c=e.datum.fontSize,f=Ap.width(e.datum,e.datum.text);let d=n?c:0,h=false,p=false,m=0,g,y,v,b,x,_,w,A,k,E,M,D,C,F,S,B,z;for(let i=0;iy){z=g;g=y;y=z}if(v>b){z=v;v=b;b=z}k=t(g);M=t(y);E=~~((k+M)/2);D=t(v);F=t(b);C=~~((D+F)/2);for(w=E;w>=k;--w){for(A=C;A>=D;--A){B=u(w,A,d,f,c);if(B){[e.x,e.y,d,h]=B}}}for(w=E;w<=M;++w){for(A=C;A<=F;++A){B=u(w,A,d,f,c);if(B){[e.x,e.y,d,h]=B}}}if(!h&&!n){S=Math.abs(y-g+b-v);x=(g+y)/2;_=(v+b)/2;if(S>=m&&!qC(x,_,f,c,r,s)&&!IC(t,x,_,c,f,c,a,null)){m=S;e.x=x;e.y=_;p=true}}}if(h||p){x=f/2;_=c/2;a.setRange(t(e.x-x),t(e.y-_),t(e.x+x),t(e.y+_));e.align="center";e.baseline="middle";return true}else{return false}}}const jC=[-1,-1,1,1];const GC=[-1,1,-1,1];function YC(t,e,n,i){const r=t.width,s=t.height,a=e[0],o=e[1],u=t.bitmap();return function(e){const l=e.datum.datum.items[i].items,c=l.length,f=e.datum.fontSize,d=Ap.width(e.datum,e.datum.text),h=[];let p=n?f:0,m=false,g=false,y=0,v,b,x,_,w,A,k,E,M,D,C,F;for(let i=0;i=1){C=(M+D)/2;if(IC(t,w,A,f,d,C,a,o)){D=C}else{M=C}}if(M>p){e.x=w;e.y=A;p=M;m=true}}}if(!m&&!n){F=Math.abs(b-v+_-x);w=(v+b)/2;A=(x+_)/2;if(F>=y&&!qC(w,A,d,f,r,s)&&!IC(t,w,A,f,d,f,a,null)){y=F;e.x=w;e.y=A;g=true}}}if(m||g){w=d/2;A=f/2;a.setRange(t(e.x-w),t(e.y-A),t(e.x+w),t(e.y+A));e.align="center";e.baseline="middle";return true}else{return false}}}const WC=["right","center","left"],XC=["bottom","middle","top"];function HC(t,e,n,i){const r=t.width,s=t.height,a=e[0],o=e[1],u=i.length;return function(e){const l=e.boundary,c=e.datum.fontSize;if(l[2]<0||l[5]<0||l[0]>r||l[3]>s){return false}let f=e.textWidth??0,d,h,p,m,g,y,v,b,x,_,w,A,k,E,M;for(let r=0;r>>2&3)-1;p=d===0&&h===0||i[r]<0;m=d&&h?Math.SQRT1_2:1;g=i[r]<0?-1:1;y=l[1+d]+i[r]*d*m;w=l[4+h]+g*c*h/2+i[r]*h*m;b=w-c/2;x=w+c/2;A=t(y);E=t(b);M=t(x);if(!f){if(!VC(A,A,E,M,a,o,y,y,b,x,l,p)){continue}else{f=Ap.width(e.datum,e.datum.text)}}_=y+g*f*d/2;y=_-f/2;v=_+f/2;A=t(y);k=t(v);if(VC(A,k,E,M,a,o,y,v,b,x,l,p)){e.x=!d?_:d*g<0?v:y;e.y=!h?w:h*g<0?x:b;e.align=WC[d*g+1];e.baseline=XC[h*g+1];a.setRange(A,E,k,M);return true}}return false}}function VC(t,e,n,i,r,s,a,o,u,l,c,f){return!(r.outOfBounds(t,n,e,i)||(f&&s||r).getRange(t,n,e,i))}const QC=0,KC=4,ZC=8,JC=0,tF=1,eF=2;const nF={"top-left":QC+JC,top:QC+tF,"top-right":QC+eF,left:KC+JC,middle:KC+tF,right:KC+eF,"bottom-left":ZC+JC,bottom:ZC+tF,"bottom-right":ZC+eF};const iF={naive:PC,"reduced-search":UC,floodfill:YC};function rF(t,e,n,i,r,s,a,o,u,l,c){if(!t.length)return t;const f=Math.max(i.length,r.length),d=sF(i,f),h=aF(r,f),p=oF(t[0].datum),m=p==="group"&&t[0].datum.items[u].marktype,g=m==="area",y=uF(p,m,o,u),v=l===null||l===Infinity,b=g&&c==="naive";let x=-1,_=-1;const w=t.map((t=>{const e=v?Ap.width(t,t.text):undefined;x=Math.max(x,e);_=Math.max(_,t.fontSize);return{datum:t,opacity:0,x:undefined,y:undefined,align:undefined,baseline:undefined,boundary:y(t),textWidth:e}}));l=l===null||l===Infinity?Math.max(x,_)+Math.max(...i):l;const A=LC(e[0],e[1],l);let k;if(!b){if(n){w.sort(((t,e)=>n(t.datum,e.datum)))}let e=false;for(let t=0;tt.datum));k=s.length||i?CC(A,i||[],s,e,g):DC(A,a&&w)}const E=g?iF[c](A,k,a,u):HC(A,k,h,d);w.forEach((t=>t.opacity=+E(t)));return w}function sF(t,e){const n=new Float64Array(e),i=t.length;for(let r=0;r[t.x,t.x,t.x,t.y,t.y,t.y];if(!t){return r}else if(t==="line"||t==="area"){return t=>r(t.datum)}else if(e==="line"){return t=>{const e=t.datum.items[i].items;return r(e.length?e[n==="start"?0:e.length-1]:{x:NaN,y:NaN})}}else{return t=>{const e=t.datum.bounds;return[e.x1,(e.x1+e.x2)/2,e.x2,e.y1,(e.y1+e.y2)/2,e.y2]}}}const lF=["x","y","opacity","align","baseline"];const cF=["top-left","left","bottom-left","top","bottom","top-right","right","bottom-right"];function fF(t){zi.call(this,null,t)}fF.Definition={type:"Label",metadata:{modifies:true},params:[{name:"size",type:"number",array:true,length:2,required:true},{name:"sort",type:"compare"},{name:"anchor",type:"string",array:true,default:cF},{name:"offset",type:"number",array:true,default:[1]},{name:"padding",type:"number",default:0,null:true},{name:"lineAnchor",type:"string",values:["start","end"],default:"end"},{name:"markIndex",type:"number",default:0},{name:"avoidBaseMark",type:"boolean",default:true},{name:"avoidMarks",type:"data",array:true},{name:"method",type:"string",default:"naive"},{name:"as",type:"string",array:true,length:lF.length,default:lF}]};(0,p.B)(fF,zi,{transform(t,e){function n(n){const i=t[n];return(0,p.Tn)(i)&&e.modified(i.fields)}const i=t.modified();if(!(i||e.changed(e.ADD_REM)||n("sort")))return;if(!t.size||t.size.length!==2){(0,p.z3)("Size parameter should be specified as a [width, height] array.")}const r=t.as||lF;rF(e.materialize(e.SOURCE).source||[],t.size,t.sort,(0,p.YO)(t.offset==null?1:t.offset),(0,p.YO)(t.anchor||cF),t.avoidMarks||[],t.avoidBaseMark!==false,t.lineAnchor||"end",t.markIndex||0,t.padding===undefined?0:t.padding,t.method||"naive").forEach((t=>{const e=t.datum;e[r[0]]=t.x;e[r[1]]=t.y;e[r[2]]=t.opacity;e[r[3]]=t.align;e[r[4]]=t.baseline}));return e.reflow(i).modifies(r)}});function dF(t,e){var n=[],i=function(t){return t(o)},r,s,a,o,u,l;if(e==null){n.push(t)}else{for(r={},s=0,a=t.length;s{Wr(e,t.x,t.y,t.bandwidth||.3).forEach((t=>{const n={};for(let i=0;it==="poly"?e:t==="quad"?2:1;function gF(t){zi.call(this,null,t)}gF.Definition={type:"Regression",metadata:{generates:true},params:[{name:"x",type:"field",required:true},{name:"y",type:"field",required:true},{name:"groupby",type:"field",array:true},{name:"method",type:"string",default:"linear",values:Object.keys(pF)},{name:"order",type:"number",default:3},{name:"extent",type:"number",array:true,length:2},{name:"params",type:"boolean",default:false},{name:"as",type:"string",array:true}]};(0,p.B)(gF,zi,{transform(t,e){const n=e.fork(e.NO_SOURCE|e.NO_FIELDS);if(!this.value||e.changed()||t.modified()){const i=e.materialize(e.SOURCE).source,r=dF(i,t.groupby),s=(t.groupby||[]).map(p.N6),a=t.method||"linear",o=t.order==null?3:t.order,u=mF(a,o),l=t.as||[(0,p.N6)(t.x),(0,p.N6)(t.y)],c=pF[a],f=[];let d=t.extent;if(!(0,p.mQ)(pF,a)){(0,p.z3)("Invalid regression method: "+a)}if(d!=null){if(a==="log"&&d[0]<=0){e.dataflow.warn("Ignoring extent with values <= 0 for log regression.");d=null}}r.forEach((n=>{const i=n.length;if(i<=u){e.dataflow.warn("Skipping regression with more parameters than data points.");return}const r=c(n,t.x,t.y,o);if(t.params){f.push(bn({keys:n.dims,coef:r.coef,rSquared:r.rSquared}));return}const h=d||(0,p.Xx)(n,t.x),m=t=>{const e={};for(let i=0;im([t,r.predict(t)])))}else{Kr(r.predict,h,25,200).forEach(m)}}));if(this.value)n.rem=this.value;this.value=n.add=n.source=f}return n}});const yF=11102230246251565e-32;const vF=134217729;const bF=(3+8*yF)*yF;function xF(t,e,n,i,r){let s,a,o,u;let l=e[0];let c=i[0];let f=0;let d=0;if(c>l===c>-l){s=l;l=e[++f]}else{s=c;c=i[++d]}let h=0;if(fl===c>-l){a=l+s;o=s-(a-l);l=e[++f]}else{a=c+s;o=s-(a-c);c=i[++d]}s=a;if(o!==0){r[h++]=o}while(fl===c>-l){a=s+l;u=a-s;o=s-(a-u)+(l-u);l=e[++f]}else{a=s+c;u=a-s;o=s-(a-u)+(c-u);c=i[++d]}s=a;if(o!==0){r[h++]=o}}}while(f=S||-F>=S){return F}f=t-E;o=t-(E+f)+(f-r);f=n-M;l=n-(M+f)+(f-r);f=e-D;u=e-(D+f)+(f-s);f=i-C;c=i-(C+f)+(f-s);if(o===0&&u===0&&l===0&&c===0){return F}S=CF*a+bF*Math.abs(F);F+=E*c+C*o-(D*l+M*u);if(F>=S||-F>=S)return F;x=o*C;d=vF*o;h=d-(d-o);p=o-h;d=vF*C;m=d-(d-C);g=C-m;_=p*g-(x-h*m-p*m-h*g);w=u*M;d=vF*u;h=d-(d-u);p=u-h;d=vF*M;m=d-(d-M);g=M-m;A=p*g-(w-h*m-p*m-h*g);y=_-A;f=_-y;$F[0]=_-(y+f)+(f-A);v=x+y;f=v-x;b=x-(v-f)+(y-f);y=b-w;f=b-y;$F[1]=b-(y+f)+(f-w);k=v+y;f=k-v;$F[2]=v-(k-f)+(y-f);$F[3]=k;const B=xF(4,FF,4,$F,SF);x=E*c;d=vF*E;h=d-(d-E);p=E-h;d=vF*c;m=d-(d-c);g=c-m;_=p*g-(x-h*m-p*m-h*g);w=D*l;d=vF*D;h=d-(d-D);p=D-h;d=vF*l;m=d-(d-l);g=l-m;A=p*g-(w-h*m-p*m-h*g);y=_-A;f=_-y;$F[0]=_-(y+f)+(f-A);v=x+y;f=v-x;b=x-(v-f)+(y-f);y=b-w;f=b-y;$F[1]=b-(y+f)+(f-w);k=v+y;f=k-v;$F[2]=v-(k-f)+(y-f);$F[3]=k;const z=xF(B,SF,4,$F,BF);x=o*c;d=vF*o;h=d-(d-o);p=o-h;d=vF*c;m=d-(d-c);g=c-m;_=p*g-(x-h*m-p*m-h*g);w=u*l;d=vF*u;h=d-(d-u);p=u-h;d=vF*l;m=d-(d-l);g=l-m;A=p*g-(w-h*m-p*m-h*g);y=_-A;f=_-y;$F[0]=_-(y+f)+(f-A);v=x+y;f=v-x;b=x-(v-f)+(y-f);y=b-w;f=b-y;$F[1]=b-(y+f)+(f-w);k=v+y;f=k-v;$F[2]=v-(k-f)+(y-f);$F[3]=k;const $=xF(z,BF,4,$F,zF);return zF[$-1]}function OF(t,e,n,i,r,s){const a=(e-s)*(n-r);const o=(t-r)*(i-s);const u=a-o;if(a===0||o===0||a>0!==o>0)return u;const l=Math.abs(a+o);if(Math.abs(u)>=MF*l)return u;return-RF(t,e,n,i,r,s,l)}function TF(t,e,n,i,r,s){return(e-s)*(n-r)-(t-r)*(i-s)}const NF=(7+56*yF)*yF;const LF=(3+28*yF)*yF;const PF=(26+288*yF)*yF*yF;const qF=EF(4);const IF=EF(4);const UF=EF(4);const jF=EF(4);const GF=EF(4);const YF=EF(4);const WF=EF(4);const XF=EF(4);const HF=EF(4);const VF=EF(8);const QF=EF(8);const KF=EF(8);const ZF=EF(4);const JF=EF(8);const tS=EF(8);const eS=EF(8);const nS=EF(12);let iS=EF(192);let rS=EF(192);function sS(t,e,n){t=sum(t,iS,e,n,rS);const i=iS;iS=rS;rS=i;return t}function aS(t,e,n,i,r,s,a,o){let u,l,c,f,d,h,p,m,g,y,v,b,x,_,w,A;if(t===0){if(e===0){a[0]=0;o[0]=0;return 1}else{A=-e;v=A*n;l=splitter*A;c=l-(l-A);f=A-c;l=splitter*n;d=l-(l-n);h=n-d;a[0]=f*h-(v-c*d-f*d-c*h);a[1]=v;v=e*r;l=splitter*e;c=l-(l-e);f=e-c;l=splitter*r;d=l-(l-r);h=r-d;o[0]=f*h-(v-c*d-f*d-c*h);o[1]=v;return 2}}else{if(e===0){v=t*i;l=splitter*t;c=l-(l-t);f=t-c;l=splitter*i;d=l-(l-i);h=i-d;a[0]=f*h-(v-c*d-f*d-c*h);a[1]=v;A=-t;v=A*s;l=splitter*A;c=l-(l-A);f=A-c;l=splitter*s;d=l-(l-s);h=s-d;o[0]=f*h-(v-c*d-f*d-c*h);o[1]=v;return 2}else{v=t*i;l=splitter*t;c=l-(l-t);f=t-c;l=splitter*i;d=l-(l-i);h=i-d;b=f*h-(v-c*d-f*d-c*h);x=e*n;l=splitter*e;c=l-(l-e);f=e-c;l=splitter*n;d=l-(l-n);h=n-d;_=f*h-(x-c*d-f*d-c*h);p=b-_;u=b-p;a[0]=b-(p+u)+(u-_);m=v+p;u=m-v;y=v-(m-u)+(p-u);p=y-x;u=y-p;a[1]=y-(p+u)+(u-x);w=m+p;u=w-m;a[2]=m-(w-u)+(p-u);a[3]=w;v=e*r;l=splitter*e;c=l-(l-e);f=e-c;l=splitter*r;d=l-(l-r);h=r-d;b=f*h-(v-c*d-f*d-c*h);x=t*s;l=splitter*t;c=l-(l-t);f=t-c;l=splitter*s;d=l-(l-s);h=s-d;_=f*h-(x-c*d-f*d-c*h);p=b-_;u=b-p;o[0]=b-(p+u)+(u-_);m=v+p;u=m-v;y=v-(m-u)+(p-u);p=y-x;u=y-p;o[1]=y-(p+u)+(u-x);w=m+p;u=w-m;o[2]=m-(w-u)+(p-u);o[3]=w;return 4}}}function oS(t,e,n,i,r){let s,a,o,u,l,c,f,d,h,p,m,g,y;m=e*n;a=splitter*e;o=a-(a-e);u=e-o;a=splitter*n;l=a-(a-n);c=n-l;g=u*c-(m-o*l-u*l-o*c);a=splitter*i;l=a-(a-i);c=i-l;f=g*i;a=splitter*g;o=a-(a-g);u=g-o;ZF[0]=u*c-(f-o*l-u*l-o*c);d=m*i;a=splitter*m;o=a-(a-m);u=m-o;p=u*c-(d-o*l-u*l-o*c);h=f+p;s=h-f;ZF[1]=f-(h-s)+(p-s);y=d+h;ZF[2]=h-(y-d);ZF[3]=y;t=sS(t,4,ZF);if(r!==0){a=splitter*r;l=a-(a-r);c=r-l;f=g*r;a=splitter*g;o=a-(a-g);u=g-o;ZF[0]=u*c-(f-o*l-u*l-o*c);d=m*r;a=splitter*m;o=a-(a-m);u=m-o;p=u*c-(d-o*l-u*l-o*c);h=f+p;s=h-f;ZF[1]=f-(h-s)+(p-s);y=d+h;ZF[2]=h-(y-d);ZF[3]=y;t=sS(t,4,ZF)}return t}function uS(t,e,n,i,r,s,a,o,u,l,c,f,d){let h;let p,m,g;let y,v,b;let x,_,w;let A,k,E,M,D,C,F,S,B,z,$,R,O,T,N;const L=t-l;const P=i-l;const q=a-l;const I=e-c;const U=r-c;const j=o-c;const G=n-f;const Y=s-f;const W=u-f;$=P*j;k=splitter*P;E=k-(k-P);M=P-E;k=splitter*j;D=k-(k-j);C=j-D;R=M*C-($-E*D-M*D-E*C);O=q*U;k=splitter*q;E=k-(k-q);M=q-E;k=splitter*U;D=k-(k-U);C=U-D;T=M*C-(O-E*D-M*D-E*C);F=R-T;A=R-F;qF[0]=R-(F+A)+(A-T);S=$+F;A=S-$;z=$-(S-A)+(F-A);F=z-O;A=z-F;qF[1]=z-(F+A)+(A-O);N=S+F;A=N-S;qF[2]=S-(N-A)+(F-A);qF[3]=N;$=q*I;k=splitter*q;E=k-(k-q);M=q-E;k=splitter*I;D=k-(k-I);C=I-D;R=M*C-($-E*D-M*D-E*C);O=L*j;k=splitter*L;E=k-(k-L);M=L-E;k=splitter*j;D=k-(k-j);C=j-D;T=M*C-(O-E*D-M*D-E*C);F=R-T;A=R-F;IF[0]=R-(F+A)+(A-T);S=$+F;A=S-$;z=$-(S-A)+(F-A);F=z-O;A=z-F;IF[1]=z-(F+A)+(A-O);N=S+F;A=N-S;IF[2]=S-(N-A)+(F-A);IF[3]=N;$=L*U;k=splitter*L;E=k-(k-L);M=L-E;k=splitter*U;D=k-(k-U);C=U-D;R=M*C-($-E*D-M*D-E*C);O=P*I;k=splitter*P;E=k-(k-P);M=P-E;k=splitter*I;D=k-(k-I);C=I-D;T=M*C-(O-E*D-M*D-E*C);F=R-T;A=R-F;UF[0]=R-(F+A)+(A-T);S=$+F;A=S-$;z=$-(S-A)+(F-A);F=z-O;A=z-F;UF[1]=z-(F+A)+(A-O);N=S+F;A=N-S;UF[2]=S-(N-A)+(F-A);UF[3]=N;h=sum(sum(scale(4,qF,G,JF),JF,scale(4,IF,Y,tS),tS,eS),eS,scale(4,UF,W,JF),JF,iS);let X=estimate(h,iS);let H=LF*d;if(X>=H||-X>=H){return X}A=t-L;p=t-(L+A)+(A-l);A=i-P;m=i-(P+A)+(A-l);A=a-q;g=a-(q+A)+(A-l);A=e-I;y=e-(I+A)+(A-c);A=r-U;v=r-(U+A)+(A-c);A=o-j;b=o-(j+A)+(A-c);A=n-G;x=n-(G+A)+(A-f);A=s-Y;_=s-(Y+A)+(A-f);A=u-W;w=u-(W+A)+(A-f);if(p===0&&m===0&&g===0&&y===0&&v===0&&b===0&&x===0&&_===0&&w===0){return X}H=PF*d+resulterrbound*Math.abs(X);X+=G*(P*b+j*m-(U*g+q*v))+x*(P*j-U*q)+Y*(q*y+I*g-(j*p+L*b))+_*(q*I-j*L)+W*(L*v+U*p-(I*m+P*y))+w*(L*U-I*P);if(X>=H||-X>=H){return X}const V=aS(p,y,P,U,q,j,jF,GF);const Q=aS(m,v,q,j,L,I,YF,WF);const K=aS(g,b,L,I,P,U,XF,HF);const Z=sum(Q,YF,K,HF,VF);h=sS(h,scale(Z,VF,G,eS),eS);const J=sum(K,XF,V,GF,QF);h=sS(h,scale(J,QF,Y,eS),eS);const tt=sum(V,jF,Q,WF,KF);h=sS(h,scale(tt,KF,W,eS),eS);if(x!==0){h=sS(h,scale(4,qF,x,nS),nS);h=sS(h,scale(Z,VF,x,eS),eS)}if(_!==0){h=sS(h,scale(4,IF,_,nS),nS);h=sS(h,scale(J,QF,_,eS),eS)}if(w!==0){h=sS(h,scale(4,UF,w,nS),nS);h=sS(h,scale(tt,KF,w,eS),eS)}if(p!==0){if(v!==0){h=oS(h,p,v,W,w)}if(b!==0){h=oS(h,-p,b,Y,_)}}if(m!==0){if(b!==0){h=oS(h,m,b,G,x)}if(y!==0){h=oS(h,-m,y,W,w)}}if(g!==0){if(y!==0){h=oS(h,g,y,Y,_)}if(v!==0){h=oS(h,-g,v,G,x)}}return iS[h-1]}function lS(t,e,n,i,r,s,a,o,u,l,c,f){const d=t-l;const h=i-l;const p=a-l;const m=e-c;const g=r-c;const y=o-c;const v=n-f;const b=s-f;const x=u-f;const _=h*y;const w=p*g;const A=p*m;const k=d*y;const E=d*g;const M=h*m;const D=v*(_-w)+b*(A-k)+x*(E-M);const C=(Math.abs(_)+Math.abs(w))*Math.abs(v)+(Math.abs(A)+Math.abs(k))*Math.abs(b)+(Math.abs(E)+Math.abs(M))*Math.abs(x);const F=NF*C;if(D>F||-D>F){return D}return uS(t,e,n,i,r,s,a,o,u,l,c,f,C)}function cS(t,e,n,i,r,s,a,o,u,l,c,f){const d=t-l;const h=i-l;const p=a-l;const m=e-c;const g=r-c;const y=o-c;const v=n-f;const b=s-f;const x=u-f;return d*(g*x-b*y)+h*(y*v-x*m)+p*(m*b-v*g)}const fS=(10+96*yF)*yF;const dS=(4+48*yF)*yF;const hS=(44+576*yF)*yF*yF;const pS=EF(4);const mS=EF(4);const gS=EF(4);const yS=EF(4);const vS=EF(4);const bS=EF(4);const xS=EF(4);const _S=EF(4);const wS=EF(8);const AS=EF(8);const kS=EF(8);const ES=EF(8);const MS=EF(8);const DS=EF(8);const CS=EF(8);const FS=EF(8);const SS=EF(8);const BS=EF(4);const zS=EF(4);const $S=EF(4);const RS=EF(8);const OS=EF(16);const TS=EF(16);const NS=EF(16);const LS=EF(32);const PS=EF(32);const qS=EF(48);const IS=EF(64);let US=EF(1152);let jS=EF(1152);function GS(t,e,n){t=sum(t,US,e,n,jS);const i=US;US=jS;jS=i;return t}function YS(t,e,n,i,r,s,a,o,u){let l;let c,f,d,h,p,m;let g,y,v,b,x,_;let w,A,k;let E,M,D;let C,F;let S,B,z,$,R,O,T,N,L,P,q,I,U,j;const G=t-a;const Y=n-a;const W=r-a;const X=e-o;const H=i-o;const V=s-o;P=Y*V;B=splitter*Y;z=B-(B-Y);$=Y-z;B=splitter*V;R=B-(B-V);O=V-R;q=$*O-(P-z*R-$*R-z*O);I=W*H;B=splitter*W;z=B-(B-W);$=W-z;B=splitter*H;R=B-(B-H);O=H-R;U=$*O-(I-z*R-$*R-z*O);T=q-U;S=q-T;pS[0]=q-(T+S)+(S-U);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L-I;S=L-T;pS[1]=L-(T+S)+(S-I);j=N+T;S=j-N;pS[2]=N-(j-S)+(T-S);pS[3]=j;P=W*X;B=splitter*W;z=B-(B-W);$=W-z;B=splitter*X;R=B-(B-X);O=X-R;q=$*O-(P-z*R-$*R-z*O);I=G*V;B=splitter*G;z=B-(B-G);$=G-z;B=splitter*V;R=B-(B-V);O=V-R;U=$*O-(I-z*R-$*R-z*O);T=q-U;S=q-T;mS[0]=q-(T+S)+(S-U);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L-I;S=L-T;mS[1]=L-(T+S)+(S-I);j=N+T;S=j-N;mS[2]=N-(j-S)+(T-S);mS[3]=j;P=G*H;B=splitter*G;z=B-(B-G);$=G-z;B=splitter*H;R=B-(B-H);O=H-R;q=$*O-(P-z*R-$*R-z*O);I=Y*X;B=splitter*Y;z=B-(B-Y);$=Y-z;B=splitter*X;R=B-(B-X);O=X-R;U=$*O-(I-z*R-$*R-z*O);T=q-U;S=q-T;gS[0]=q-(T+S)+(S-U);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L-I;S=L-T;gS[1]=L-(T+S)+(S-I);j=N+T;S=j-N;gS[2]=N-(j-S)+(T-S);gS[3]=j;l=sum(sum(sum(scale(scale(4,pS,G,RS),RS,G,OS),OS,scale(scale(4,pS,X,RS),RS,X,TS),TS,LS),LS,sum(scale(scale(4,mS,Y,RS),RS,Y,OS),OS,scale(scale(4,mS,H,RS),RS,H,TS),TS,PS),PS,IS),IS,sum(scale(scale(4,gS,W,RS),RS,W,OS),OS,scale(scale(4,gS,V,RS),RS,V,TS),TS,LS),LS,US);let Q=estimate(l,US);let K=dS*u;if(Q>=K||-Q>=K){return Q}S=t-G;c=t-(G+S)+(S-a);S=e-X;h=e-(X+S)+(S-o);S=n-Y;f=n-(Y+S)+(S-a);S=i-H;p=i-(H+S)+(S-o);S=r-W;d=r-(W+S)+(S-a);S=s-V;m=s-(V+S)+(S-o);if(c===0&&f===0&&d===0&&h===0&&p===0&&m===0){return Q}K=hS*u+resulterrbound*Math.abs(Q);Q+=(G*G+X*X)*(Y*m+V*f-(H*d+W*p))+2*(G*c+X*h)*(Y*V-H*W)+((Y*Y+H*H)*(W*h+X*d-(V*c+G*m))+2*(Y*f+H*p)*(W*X-V*G))+((W*W+V*V)*(G*p+H*c-(X*f+Y*h))+2*(W*d+V*m)*(G*H-X*Y));if(Q>=K||-Q>=K){return Q}if(f!==0||p!==0||d!==0||m!==0){P=G*G;B=splitter*G;z=B-(B-G);$=G-z;q=$*$-(P-z*z-(z+z)*$);I=X*X;B=splitter*X;z=B-(B-X);$=X-z;U=$*$-(I-z*z-(z+z)*$);T=q+U;S=T-q;yS[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;yS[1]=L-(T-S)+(I-S);j=N+T;S=j-N;yS[2]=N-(j-S)+(T-S);yS[3]=j}if(d!==0||m!==0||c!==0||h!==0){P=Y*Y;B=splitter*Y;z=B-(B-Y);$=Y-z;q=$*$-(P-z*z-(z+z)*$);I=H*H;B=splitter*H;z=B-(B-H);$=H-z;U=$*$-(I-z*z-(z+z)*$);T=q+U;S=T-q;vS[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;vS[1]=L-(T-S)+(I-S);j=N+T;S=j-N;vS[2]=N-(j-S)+(T-S);vS[3]=j}if(c!==0||h!==0||f!==0||p!==0){P=W*W;B=splitter*W;z=B-(B-W);$=W-z;q=$*$-(P-z*z-(z+z)*$);I=V*V;B=splitter*V;z=B-(B-V);$=V-z;U=$*$-(I-z*z-(z+z)*$);T=q+U;S=T-q;bS[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;bS[1]=L-(T-S)+(I-S);j=N+T;S=j-N;bS[2]=N-(j-S)+(T-S);bS[3]=j}if(c!==0){g=scale(4,pS,c,wS);l=GS(l,sum_three(scale(g,wS,2*G,OS),OS,scale(scale(4,bS,c,RS),RS,H,TS),TS,scale(scale(4,vS,c,RS),RS,-V,NS),NS,LS,qS),qS)}if(h!==0){y=scale(4,pS,h,AS);l=GS(l,sum_three(scale(y,AS,2*X,OS),OS,scale(scale(4,vS,h,RS),RS,W,TS),TS,scale(scale(4,bS,h,RS),RS,-Y,NS),NS,LS,qS),qS)}if(f!==0){v=scale(4,mS,f,kS);l=GS(l,sum_three(scale(v,kS,2*Y,OS),OS,scale(scale(4,yS,f,RS),RS,V,TS),TS,scale(scale(4,bS,f,RS),RS,-X,NS),NS,LS,qS),qS)}if(p!==0){b=scale(4,mS,p,ES);l=GS(l,sum_three(scale(b,ES,2*H,OS),OS,scale(scale(4,bS,p,RS),RS,G,TS),TS,scale(scale(4,yS,p,RS),RS,-W,NS),NS,LS,qS),qS)}if(d!==0){x=scale(4,gS,d,MS);l=GS(l,sum_three(scale(x,MS,2*W,OS),OS,scale(scale(4,vS,d,RS),RS,X,TS),TS,scale(scale(4,yS,d,RS),RS,-H,NS),NS,LS,qS),qS)}if(m!==0){_=scale(4,gS,m,DS);l=GS(l,sum_three(scale(_,DS,2*V,OS),OS,scale(scale(4,yS,m,RS),RS,Y,TS),TS,scale(scale(4,vS,m,RS),RS,-G,NS),NS,LS,qS),qS)}if(c!==0||h!==0){if(f!==0||p!==0||d!==0||m!==0){P=f*V;B=splitter*f;z=B-(B-f);$=f-z;B=splitter*V;R=B-(B-V);O=V-R;q=$*O-(P-z*R-$*R-z*O);I=Y*m;B=splitter*Y;z=B-(B-Y);$=Y-z;B=splitter*m;R=B-(B-m);O=m-R;U=$*O-(I-z*R-$*R-z*O);T=q+U;S=T-q;xS[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;xS[1]=L-(T-S)+(I-S);j=N+T;S=j-N;xS[2]=N-(j-S)+(T-S);xS[3]=j;P=d*-H;B=splitter*d;z=B-(B-d);$=d-z;B=splitter*-H;R=B-(B- -H);O=-H-R;q=$*O-(P-z*R-$*R-z*O);I=W*-p;B=splitter*W;z=B-(B-W);$=W-z;B=splitter*-p;R=B-(B- -p);O=-p-R;U=$*O-(I-z*R-$*R-z*O);T=q+U;S=T-q;_S[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;_S[1]=L-(T-S)+(I-S);j=N+T;S=j-N;_S[2]=N-(j-S)+(T-S);_S[3]=j;A=sum(4,xS,4,_S,FS);P=f*m;B=splitter*f;z=B-(B-f);$=f-z;B=splitter*m;R=B-(B-m);O=m-R;q=$*O-(P-z*R-$*R-z*O);I=d*p;B=splitter*d;z=B-(B-d);$=d-z;B=splitter*p;R=B-(B-p);O=p-R;U=$*O-(I-z*R-$*R-z*O);T=q-U;S=q-T;zS[0]=q-(T+S)+(S-U);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L-I;S=L-T;zS[1]=L-(T+S)+(S-I);j=N+T;S=j-N;zS[2]=N-(j-S)+(T-S);zS[3]=j;M=4}else{FS[0]=0;A=1;zS[0]=0;M=1}if(c!==0){const t=scale(A,FS,c,NS);l=GS(l,sum(scale(g,wS,c,OS),OS,scale(t,NS,2*G,LS),LS,qS),qS);const e=scale(M,zS,c,RS);l=GS(l,sum_three(scale(e,RS,2*G,OS),OS,scale(e,RS,c,TS),TS,scale(t,NS,c,LS),LS,PS,IS),IS);if(p!==0){l=GS(l,scale(scale(4,bS,c,RS),RS,p,OS),OS)}if(m!==0){l=GS(l,scale(scale(4,vS,-c,RS),RS,m,OS),OS)}}if(h!==0){const t=scale(A,FS,h,NS);l=GS(l,sum(scale(y,AS,h,OS),OS,scale(t,NS,2*X,LS),LS,qS),qS);const e=scale(M,zS,h,RS);l=GS(l,sum_three(scale(e,RS,2*X,OS),OS,scale(e,RS,h,TS),TS,scale(t,NS,h,LS),LS,PS,IS),IS)}}if(f!==0||p!==0){if(d!==0||m!==0||c!==0||h!==0){P=d*X;B=splitter*d;z=B-(B-d);$=d-z;B=splitter*X;R=B-(B-X);O=X-R;q=$*O-(P-z*R-$*R-z*O);I=W*h;B=splitter*W;z=B-(B-W);$=W-z;B=splitter*h;R=B-(B-h);O=h-R;U=$*O-(I-z*R-$*R-z*O);T=q+U;S=T-q;xS[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;xS[1]=L-(T-S)+(I-S);j=N+T;S=j-N;xS[2]=N-(j-S)+(T-S);xS[3]=j;C=-V;F=-m;P=c*C;B=splitter*c;z=B-(B-c);$=c-z;B=splitter*C;R=B-(B-C);O=C-R;q=$*O-(P-z*R-$*R-z*O);I=G*F;B=splitter*G;z=B-(B-G);$=G-z;B=splitter*F;R=B-(B-F);O=F-R;U=$*O-(I-z*R-$*R-z*O);T=q+U;S=T-q;_S[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;_S[1]=L-(T-S)+(I-S);j=N+T;S=j-N;_S[2]=N-(j-S)+(T-S);_S[3]=j;k=sum(4,xS,4,_S,SS);P=d*h;B=splitter*d;z=B-(B-d);$=d-z;B=splitter*h;R=B-(B-h);O=h-R;q=$*O-(P-z*R-$*R-z*O);I=c*m;B=splitter*c;z=B-(B-c);$=c-z;B=splitter*m;R=B-(B-m);O=m-R;U=$*O-(I-z*R-$*R-z*O);T=q-U;S=q-T;$S[0]=q-(T+S)+(S-U);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L-I;S=L-T;$S[1]=L-(T+S)+(S-I);j=N+T;S=j-N;$S[2]=N-(j-S)+(T-S);$S[3]=j;D=4}else{SS[0]=0;k=1;$S[0]=0;D=1}if(f!==0){const t=scale(k,SS,f,NS);l=GS(l,sum(scale(v,kS,f,OS),OS,scale(t,NS,2*Y,LS),LS,qS),qS);const e=scale(D,$S,f,RS);l=GS(l,sum_three(scale(e,RS,2*Y,OS),OS,scale(e,RS,f,TS),TS,scale(t,NS,f,LS),LS,PS,IS),IS);if(m!==0){l=GS(l,scale(scale(4,yS,f,RS),RS,m,OS),OS)}if(h!==0){l=GS(l,scale(scale(4,bS,-f,RS),RS,h,OS),OS)}}if(p!==0){const t=scale(k,SS,p,NS);l=GS(l,sum(scale(b,ES,p,OS),OS,scale(t,NS,2*H,LS),LS,qS),qS);const e=scale(D,$S,p,RS);l=GS(l,sum_three(scale(e,RS,2*H,OS),OS,scale(e,RS,p,TS),TS,scale(t,NS,p,LS),LS,PS,IS),IS)}}if(d!==0||m!==0){if(c!==0||h!==0||f!==0||p!==0){P=c*H;B=splitter*c;z=B-(B-c);$=c-z;B=splitter*H;R=B-(B-H);O=H-R;q=$*O-(P-z*R-$*R-z*O);I=G*p;B=splitter*G;z=B-(B-G);$=G-z;B=splitter*p;R=B-(B-p);O=p-R;U=$*O-(I-z*R-$*R-z*O);T=q+U;S=T-q;xS[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;xS[1]=L-(T-S)+(I-S);j=N+T;S=j-N;xS[2]=N-(j-S)+(T-S);xS[3]=j;C=-X;F=-h;P=f*C;B=splitter*f;z=B-(B-f);$=f-z;B=splitter*C;R=B-(B-C);O=C-R;q=$*O-(P-z*R-$*R-z*O);I=Y*F;B=splitter*Y;z=B-(B-Y);$=Y-z;B=splitter*F;R=B-(B-F);O=F-R;U=$*O-(I-z*R-$*R-z*O);T=q+U;S=T-q;_S[0]=q-(T-S)+(U-S);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L+I;S=T-L;_S[1]=L-(T-S)+(I-S);j=N+T;S=j-N;_S[2]=N-(j-S)+(T-S);_S[3]=j;w=sum(4,xS,4,_S,CS);P=c*p;B=splitter*c;z=B-(B-c);$=c-z;B=splitter*p;R=B-(B-p);O=p-R;q=$*O-(P-z*R-$*R-z*O);I=f*h;B=splitter*f;z=B-(B-f);$=f-z;B=splitter*h;R=B-(B-h);O=h-R;U=$*O-(I-z*R-$*R-z*O);T=q-U;S=q-T;BS[0]=q-(T+S)+(S-U);N=P+T;S=N-P;L=P-(N-S)+(T-S);T=L-I;S=L-T;BS[1]=L-(T+S)+(S-I);j=N+T;S=j-N;BS[2]=N-(j-S)+(T-S);BS[3]=j;E=4}else{CS[0]=0;w=1;BS[0]=0;E=1}if(d!==0){const t=scale(w,CS,d,NS);l=GS(l,sum(scale(x,MS,d,OS),OS,scale(t,NS,2*W,LS),LS,qS),qS);const e=scale(E,BS,d,RS);l=GS(l,sum_three(scale(e,RS,2*W,OS),OS,scale(e,RS,d,TS),TS,scale(t,NS,d,LS),LS,PS,IS),IS);if(h!==0){l=GS(l,scale(scale(4,vS,d,RS),RS,h,OS),OS)}if(p!==0){l=GS(l,scale(scale(4,yS,-d,RS),RS,p,OS),OS)}}if(m!==0){const t=scale(w,CS,m,NS);l=GS(l,sum(scale(_,DS,m,OS),OS,scale(t,NS,2*V,LS),LS,qS),qS);const e=scale(E,BS,m,RS);l=GS(l,sum_three(scale(e,RS,2*V,OS),OS,scale(e,RS,m,TS),TS,scale(t,NS,m,LS),LS,PS,IS),IS)}}return US[l-1]}function WS(t,e,n,i,r,s,a,o){const u=t-a;const l=n-a;const c=r-a;const f=e-o;const d=i-o;const h=s-o;const p=l*h;const m=c*d;const g=u*u+f*f;const y=c*f;const v=u*h;const b=l*l+d*d;const x=u*d;const _=l*f;const w=c*c+h*h;const A=g*(p-m)+b*(y-v)+w*(x-_);const k=(Math.abs(p)+Math.abs(m))*g+(Math.abs(y)+Math.abs(v))*b+(Math.abs(x)+Math.abs(_))*w;const E=fS*k;if(A>E||-A>E){return A}return YS(t,e,n,i,r,s,a,o,k)}function XS(t,e,n,i,r,s,a,o){const u=t-a;const l=e-o;const c=n-a;const f=i-o;const d=r-a;const h=s-o;const p=u*f-c*l;const m=c*h-d*f;const g=d*l-u*h;const y=u*u+l*l;const v=c*c+f*f;const b=d*d+h*h;return y*m+v*g+b*p}const HS=(16+224*yF)*yF;const VS=(5+72*yF)*yF;const QS=(71+1408*yF)*yF*yF;const KS=EF(4);const ZS=EF(4);const JS=EF(4);const tB=EF(4);const eB=EF(4);const nB=EF(4);const iB=EF(4);const rB=EF(4);const sB=EF(4);const aB=EF(4);const oB=EF(24);const uB=EF(24);const lB=EF(24);const cB=EF(24);const fB=EF(24);const dB=EF(24);const hB=EF(24);const pB=EF(24);const mB=EF(24);const gB=EF(24);const yB=EF(1152);const vB=EF(1152);const bB=EF(1152);const xB=EF(1152);const _B=EF(1152);const wB=EF(2304);const AB=EF(2304);const kB=EF(3456);const EB=EF(5760);const MB=EF(8);const DB=EF(8);const CB=EF(8);const FB=EF(16);const SB=EF(24);const BB=EF(48);const zB=EF(48);const $B=EF(96);const RB=EF(192);const OB=EF(384);const TB=EF(384);const NB=EF(384);const LB=EF(768);function PB(t,e,n,i,r,s,a){return sum_three(scale(4,t,i,MB),MB,scale(4,e,r,DB),DB,scale(4,n,s,CB),CB,FB,a)}function qB(t,e,n,i,r,s,a,o,u,l,c,f){const d=sum(sum(t,e,n,i,BB),BB,negate(sum(r,s,a,o,zB),zB),zB,$B);return sum_three(scale(scale(d,$B,u,RB),RB,u,OB),OB,scale(scale(d,$B,l,RB),RB,l,TB),TB,scale(scale(d,$B,c,RB),RB,c,NB),NB,LB,f)}function IB(t,e,n,i,r,s,a,o,u,l,c,f,d,h,p){let m,g,y,v,b,x,_,w,A,k,E,M,D,C;k=t*r;g=splitter*t;y=g-(g-t);v=t-y;g=splitter*r;b=g-(g-r);x=r-b;E=v*x-(k-y*b-v*b-y*x);M=i*e;g=splitter*i;y=g-(g-i);v=i-y;g=splitter*e;b=g-(g-e);x=e-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;KS[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;KS[1]=A-(_+m)+(m-M);C=w+_;m=C-w;KS[2]=w-(C-m)+(_-m);KS[3]=C;k=i*o;g=splitter*i;y=g-(g-i);v=i-y;g=splitter*o;b=g-(g-o);x=o-b;E=v*x-(k-y*b-v*b-y*x);M=a*r;g=splitter*a;y=g-(g-a);v=a-y;g=splitter*r;b=g-(g-r);x=r-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;ZS[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;ZS[1]=A-(_+m)+(m-M);C=w+_;m=C-w;ZS[2]=w-(C-m)+(_-m);ZS[3]=C;k=a*c;g=splitter*a;y=g-(g-a);v=a-y;g=splitter*c;b=g-(g-c);x=c-b;E=v*x-(k-y*b-v*b-y*x);M=l*o;g=splitter*l;y=g-(g-l);v=l-y;g=splitter*o;b=g-(g-o);x=o-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;JS[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;JS[1]=A-(_+m)+(m-M);C=w+_;m=C-w;JS[2]=w-(C-m)+(_-m);JS[3]=C;k=l*h;g=splitter*l;y=g-(g-l);v=l-y;g=splitter*h;b=g-(g-h);x=h-b;E=v*x-(k-y*b-v*b-y*x);M=d*c;g=splitter*d;y=g-(g-d);v=d-y;g=splitter*c;b=g-(g-c);x=c-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;tB[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;tB[1]=A-(_+m)+(m-M);C=w+_;m=C-w;tB[2]=w-(C-m)+(_-m);tB[3]=C;k=d*e;g=splitter*d;y=g-(g-d);v=d-y;g=splitter*e;b=g-(g-e);x=e-b;E=v*x-(k-y*b-v*b-y*x);M=t*h;g=splitter*t;y=g-(g-t);v=t-y;g=splitter*h;b=g-(g-h);x=h-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;eB[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;eB[1]=A-(_+m)+(m-M);C=w+_;m=C-w;eB[2]=w-(C-m)+(_-m);eB[3]=C;k=t*o;g=splitter*t;y=g-(g-t);v=t-y;g=splitter*o;b=g-(g-o);x=o-b;E=v*x-(k-y*b-v*b-y*x);M=a*e;g=splitter*a;y=g-(g-a);v=a-y;g=splitter*e;b=g-(g-e);x=e-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;nB[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;nB[1]=A-(_+m)+(m-M);C=w+_;m=C-w;nB[2]=w-(C-m)+(_-m);nB[3]=C;k=i*c;g=splitter*i;y=g-(g-i);v=i-y;g=splitter*c;b=g-(g-c);x=c-b;E=v*x-(k-y*b-v*b-y*x);M=l*r;g=splitter*l;y=g-(g-l);v=l-y;g=splitter*r;b=g-(g-r);x=r-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;iB[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;iB[1]=A-(_+m)+(m-M);C=w+_;m=C-w;iB[2]=w-(C-m)+(_-m);iB[3]=C;k=a*h;g=splitter*a;y=g-(g-a);v=a-y;g=splitter*h;b=g-(g-h);x=h-b;E=v*x-(k-y*b-v*b-y*x);M=d*o;g=splitter*d;y=g-(g-d);v=d-y;g=splitter*o;b=g-(g-o);x=o-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;rB[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;rB[1]=A-(_+m)+(m-M);C=w+_;m=C-w;rB[2]=w-(C-m)+(_-m);rB[3]=C;k=l*e;g=splitter*l;y=g-(g-l);v=l-y;g=splitter*e;b=g-(g-e);x=e-b;E=v*x-(k-y*b-v*b-y*x);M=t*c;g=splitter*t;y=g-(g-t);v=t-y;g=splitter*c;b=g-(g-c);x=c-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;sB[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;sB[1]=A-(_+m)+(m-M);C=w+_;m=C-w;sB[2]=w-(C-m)+(_-m);sB[3]=C;k=d*r;g=splitter*d;y=g-(g-d);v=d-y;g=splitter*r;b=g-(g-r);x=r-b;E=v*x-(k-y*b-v*b-y*x);M=i*h;g=splitter*i;y=g-(g-i);v=i-y;g=splitter*h;b=g-(g-h);x=h-b;D=v*x-(M-y*b-v*b-y*x);_=E-D;m=E-_;aB[0]=E-(_+m)+(m-D);w=k+_;m=w-k;A=k-(w-m)+(_-m);_=A-M;m=A-_;aB[1]=A-(_+m)+(m-M);C=w+_;m=C-w;aB[2]=w-(C-m)+(_-m);aB[3]=C;const F=PB(KS,ZS,nB,u,n,-s,oB);const S=PB(ZS,JS,iB,f,s,-u,uB);const B=PB(JS,tB,rB,p,u,-f,lB);const z=PB(tB,eB,sB,n,f,-p,cB);const $=PB(eB,KS,aB,s,p,-n,fB);const R=PB(KS,iB,sB,f,n,s,dB);const O=PB(ZS,rB,aB,p,s,u,hB);const T=PB(JS,sB,nB,n,u,f,pB);const N=PB(tB,aB,iB,s,f,p,mB);const L=PB(eB,nB,rB,u,p,n,gB);const P=sum_three(qB(B,lB,O,hB,N,mB,S,uB,t,e,n,yB),yB,qB(z,cB,T,pB,L,gB,B,lB,i,r,s,vB),vB,sum_three(qB($,fB,N,mB,R,dB,z,cB,a,o,u,bB),bB,qB(F,oB,L,gB,O,hB,$,fB,l,c,f,xB),xB,qB(S,uB,R,dB,T,pB,F,oB,d,h,p,_B),_B,AB,kB),kB,wB,EB);return EB[P-1]}const UB=EF(96);const jB=EF(96);const GB=EF(96);const YB=EF(1152);function WB(t,e,n,i,r,s,a,o,u,l){const c=PB(t,e,n,i,r,s,SB);return sum_three(scale(scale(c,SB,a,BB),BB,a,UB),UB,scale(scale(c,SB,o,BB),BB,o,jB),jB,scale(scale(c,SB,u,BB),BB,u,GB),GB,RB,l)}function XB(t,e,n,i,r,s,a,o,u,l,c,f,d,h,p,m){let g,y,v,b,x,_;let w,A,k,E;let M,D,C,F;let S,B,z,$;let R,O,T,N,L,P,q,I,U,j,G,Y,W;const X=t-d;const H=i-d;const V=a-d;const Q=l-d;const K=e-h;const Z=r-h;const J=o-h;const tt=c-h;const et=n-p;const nt=s-p;const it=u-p;const rt=f-p;j=X*Z;O=splitter*X;T=O-(O-X);N=X-T;O=splitter*Z;L=O-(O-Z);P=Z-L;G=N*P-(j-T*L-N*L-T*P);Y=H*K;O=splitter*H;T=O-(O-H);N=H-T;O=splitter*K;L=O-(O-K);P=K-L;W=N*P-(Y-T*L-N*L-T*P);q=G-W;R=G-q;KS[0]=G-(q+R)+(R-W);I=j+q;R=I-j;U=j-(I-R)+(q-R);q=U-Y;R=U-q;KS[1]=U-(q+R)+(R-Y);g=I+q;R=g-I;KS[2]=I-(g-R)+(q-R);KS[3]=g;j=H*J;O=splitter*H;T=O-(O-H);N=H-T;O=splitter*J;L=O-(O-J);P=J-L;G=N*P-(j-T*L-N*L-T*P);Y=V*Z;O=splitter*V;T=O-(O-V);N=V-T;O=splitter*Z;L=O-(O-Z);P=Z-L;W=N*P-(Y-T*L-N*L-T*P);q=G-W;R=G-q;ZS[0]=G-(q+R)+(R-W);I=j+q;R=I-j;U=j-(I-R)+(q-R);q=U-Y;R=U-q;ZS[1]=U-(q+R)+(R-Y);y=I+q;R=y-I;ZS[2]=I-(y-R)+(q-R);ZS[3]=y;j=V*tt;O=splitter*V;T=O-(O-V);N=V-T;O=splitter*tt;L=O-(O-tt);P=tt-L;G=N*P-(j-T*L-N*L-T*P);Y=Q*J;O=splitter*Q;T=O-(O-Q);N=Q-T;O=splitter*J;L=O-(O-J);P=J-L;W=N*P-(Y-T*L-N*L-T*P);q=G-W;R=G-q;JS[0]=G-(q+R)+(R-W);I=j+q;R=I-j;U=j-(I-R)+(q-R);q=U-Y;R=U-q;JS[1]=U-(q+R)+(R-Y);v=I+q;R=v-I;JS[2]=I-(v-R)+(q-R);JS[3]=v;j=Q*K;O=splitter*Q;T=O-(O-Q);N=Q-T;O=splitter*K;L=O-(O-K);P=K-L;G=N*P-(j-T*L-N*L-T*P);Y=X*tt;O=splitter*X;T=O-(O-X);N=X-T;O=splitter*tt;L=O-(O-tt);P=tt-L;W=N*P-(Y-T*L-N*L-T*P);q=G-W;R=G-q;sB[0]=G-(q+R)+(R-W);I=j+q;R=I-j;U=j-(I-R)+(q-R);q=U-Y;R=U-q;sB[1]=U-(q+R)+(R-Y);b=I+q;R=b-I;sB[2]=I-(b-R)+(q-R);sB[3]=b;j=X*J;O=splitter*X;T=O-(O-X);N=X-T;O=splitter*J;L=O-(O-J);P=J-L;G=N*P-(j-T*L-N*L-T*P);Y=V*K;O=splitter*V;T=O-(O-V);N=V-T;O=splitter*K;L=O-(O-K);P=K-L;W=N*P-(Y-T*L-N*L-T*P);q=G-W;R=G-q;nB[0]=G-(q+R)+(R-W);I=j+q;R=I-j;U=j-(I-R)+(q-R);q=U-Y;R=U-q;nB[1]=U-(q+R)+(R-Y);x=I+q;R=x-I;nB[2]=I-(x-R)+(q-R);nB[3]=x;j=H*tt;O=splitter*H;T=O-(O-H);N=H-T;O=splitter*tt;L=O-(O-tt);P=tt-L;G=N*P-(j-T*L-N*L-T*P);Y=Q*Z;O=splitter*Q;T=O-(O-Q);N=Q-T;O=splitter*Z;L=O-(O-Z);P=Z-L;W=N*P-(Y-T*L-N*L-T*P);q=G-W;R=G-q;iB[0]=G-(q+R)+(R-W);I=j+q;R=I-j;U=j-(I-R)+(q-R);q=U-Y;R=U-q;iB[1]=U-(q+R)+(R-Y);_=I+q;R=_-I;iB[2]=I-(_-R)+(q-R);iB[3]=_;const st=sum(sum(negate(WB(ZS,JS,iB,rt,nt,-it,X,K,et,yB),yB),yB,WB(JS,sB,nB,et,it,rt,H,Z,nt,vB),vB,wB),wB,sum(negate(WB(sB,KS,iB,nt,rt,et,V,J,it,bB),bB),bB,WB(KS,ZS,nB,it,et,-nt,Q,tt,rt,xB),xB,AB),AB,YB);let at=estimate(st,YB);let ot=VS*m;if(at>=ot||-at>=ot){return at}R=t-X;w=t-(X+R)+(R-d);R=e-K;M=e-(K+R)+(R-h);R=n-et;S=n-(et+R)+(R-p);R=i-H;A=i-(H+R)+(R-d);R=r-Z;D=r-(Z+R)+(R-h);R=s-nt;B=s-(nt+R)+(R-p);R=a-V;k=a-(V+R)+(R-d);R=o-J;C=o-(J+R)+(R-h);R=u-it;z=u-(it+R)+(R-p);R=l-Q;E=l-(Q+R)+(R-d);R=c-tt;F=c-(tt+R)+(R-h);R=f-rt;$=f-(rt+R)+(R-p);if(w===0&&M===0&&S===0&&A===0&&D===0&&B===0&&k===0&&C===0&&z===0&&E===0&&F===0&&$===0){return at}ot=QS*m+resulterrbound*Math.abs(at);const ut=X*D+Z*w-(K*A+H*M);const lt=H*C+J*A-(Z*k+V*D);const ct=V*F+tt*k-(J*E+Q*C);const ft=Q*M+K*E-(tt*w+X*F);const dt=X*C+J*w-(K*k+V*M);const ht=H*F+tt*A-(Z*E+Q*D);at+=(H*H+Z*Z+nt*nt)*(it*ft+rt*dt+et*ct+(z*b+$*x+S*v))+(Q*Q+tt*tt+rt*rt)*(et*lt-nt*dt+it*ut+(S*y-B*x+z*g))-((X*X+K*K+et*et)*(nt*ct-it*ht+rt*lt+(B*v-z*_+$*y))+(V*V+J*J+it*it)*(rt*ut+et*ht+nt*ft+($*g+S*_+B*b)))+2*((H*A+Z*D+nt*B)*(it*b+rt*x+et*v)+(Q*E+tt*F+rt*$)*(et*y-nt*x+it*g)-((X*w+K*M+et*S)*(nt*v-it*_+rt*y)+(V*k+J*C+it*z)*(rt*g+et*_+nt*b)));if(at>=ot||-at>=ot){return at}return IB(t,e,n,i,r,s,a,o,u,l,c,f,d,h,p)}function HB(t,e,n,i,r,s,a,o,u,l,c,f,d,h,p){const m=t-d;const g=i-d;const y=a-d;const v=l-d;const b=e-h;const x=r-h;const _=o-h;const w=c-h;const A=n-p;const k=s-p;const E=u-p;const M=f-p;const D=m*x;const C=g*b;const F=D-C;const S=g*_;const B=y*x;const z=S-B;const $=y*w;const R=v*_;const O=$-R;const T=v*b;const N=m*w;const L=T-N;const P=m*_;const q=y*b;const I=P-q;const U=g*w;const j=v*x;const G=U-j;const Y=A*z-k*I+E*F;const W=k*O-E*G+M*z;const X=E*L+M*I+A*O;const H=M*F+A*G+k*L;const V=m*m+b*b+A*A;const Q=g*g+x*x+k*k;const K=y*y+_*_+E*E;const Z=v*v+w*w+M*M;const J=K*H-Z*Y+(V*W-Q*X);const tt=Math.abs(A);const et=Math.abs(k);const nt=Math.abs(E);const it=Math.abs(M);const rt=Math.abs(D);const st=Math.abs(C);const at=Math.abs(S);const ot=Math.abs(B);const ut=Math.abs($);const lt=Math.abs(R);const ct=Math.abs(T);const ft=Math.abs(N);const dt=Math.abs(P);const ht=Math.abs(q);const pt=Math.abs(U);const mt=Math.abs(j);const gt=((ut+lt)*et+(mt+pt)*nt+(at+ot)*it)*V+((ct+ft)*nt+(dt+ht)*it+(ut+lt)*tt)*Q+((rt+st)*it+(pt+mt)*tt+(ct+ft)*et)*K+((at+ot)*tt+(ht+dt)*et+(rt+st)*nt)*Z;const yt=HS*gt;if(J>yt||-J>yt){return J}return-XB(t,e,n,i,r,s,a,o,u,l,c,f,d,h,p,gt)}function VB(t,e,n,i,r,s,a,o,u,l,c,f,d,h,p){const m=t-d;const g=i-d;const y=a-d;const v=l-d;const b=e-h;const x=r-h;const _=o-h;const w=c-h;const A=n-p;const k=s-p;const E=u-p;const M=f-p;const D=m*x-g*b;const C=g*_-y*x;const F=y*w-v*_;const S=v*b-m*w;const B=m*_-y*b;const z=g*w-v*x;const $=A*C-k*B+E*D;const R=k*F-E*z+M*C;const O=E*S+M*B+A*F;const T=M*D+A*z+k*S;const N=m*m+b*b+A*A;const L=g*g+x*x+k*k;const P=y*y+_*_+E*E;const q=v*v+w*w+M*M;return P*T-q*$+(N*R-L*O)}const QB=Math.pow(2,-52);const KB=new Uint32Array(512);class ZB{static from(t,e=az,n=oz){const i=t.length;const r=new Float64Array(i*2);for(let s=0;s>1;if(e>0&&typeof t[0]!=="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const n=Math.max(2*e-5,0);this._triangles=new Uint32Array(n*3);this._halfedges=new Int32Array(n*3);this._hashSize=Math.ceil(Math.sqrt(e));this._hullPrev=new Uint32Array(e);this._hullNext=new Uint32Array(e);this._hullTri=new Uint32Array(e);this._hullHash=new Int32Array(this._hashSize).fill(-1);this._ids=new Uint32Array(e);this._dists=new Float64Array(e);this.update()}update(){const{coords:t,_hullPrev:e,_hullNext:n,_hullTri:i,_hullHash:r}=this;const s=t.length>>1;let a=Infinity;let o=Infinity;let u=-Infinity;let l=-Infinity;for(let E=0;Eu)u=e;if(n>l)l=n;this._ids[E]=E}const c=(a+u)/2;const f=(o+l)/2;let d=Infinity;let h,p,m;for(let E=0;E0){p=E;d=e}}let v=t[2*p];let b=t[2*p+1];let x=Infinity;for(let E=0;Ei){e[n++]=r;i=this._dists[r]}}this.hull=e.subarray(0,n);this.triangles=new Uint32Array(0);this.halfedges=new Uint32Array(0);return}if(OF(g,y,v,b,_,w)<0){const t=p;const e=v;const n=b;p=m;v=_;b=w;m=t;_=e;w=n}const A=iz(g,y,v,b,_,w);this._cx=A.x;this._cy=A.y;for(let E=0;E0&&Math.abs(a-M)<=QB&&Math.abs(o-D)<=QB)continue;M=a;D=o;if(s===h||s===p||s===m)continue;let u=0;for(let t=0,e=this._hashKey(a,o);t=0){l=c;if(l===u){l=-1;break}}if(l===-1)continue;let f=this._addTriangle(l,s,n[l],-1,-1,i[l]);i[s]=this._legalize(f+2);i[l]=f;k++;let d=n[l];while(c=n[d],OF(a,o,t[2*d],t[2*d+1],t[2*c],t[2*c+1])<0){f=this._addTriangle(d,s,c,i[s],-1,i[d]);i[s]=this._legalize(f+2);n[d]=d;k--;d=c}if(l===u){while(c=e[l],OF(a,o,t[2*c],t[2*c+1],t[2*l],t[2*l+1])<0){f=this._addTriangle(c,s,l,-1,i[l],i[c]);this._legalize(f+2);i[c]=f;n[l]=l;k--;l=c}}this._hullStart=e[s]=l;n[l]=e[d]=s;n[s]=d;r[this._hashKey(a,o)]=s;r[this._hashKey(t[2*l],t[2*l+1])]=l}this.hull=new Uint32Array(k);for(let E=0,M=this._hullStart;E0?3-n:1+n)/4}function tz(t,e,n,i){const r=t-n;const s=e-i;return r*r+s*s}function ez(t,e,n,i,r,s,a,o){const u=t-a;const l=e-o;const c=n-a;const f=i-o;const d=r-a;const h=s-o;const p=u*u+l*l;const m=c*c+f*f;const g=d*d+h*h;return u*(f*g-m*h)-l*(c*g-m*d)+p*(c*h-f*d)<0}function nz(t,e,n,i,r,s){const a=n-t;const o=i-e;const u=r-t;const l=s-e;const c=a*a+o*o;const f=u*u+l*l;const d=.5/(a*l-o*u);const h=(l*c-o*f)*d;const p=(a*f-u*c)*d;return h*h+p*p}function iz(t,e,n,i,r,s){const a=n-t;const o=i-e;const u=r-t;const l=s-e;const c=a*a+o*o;const f=u*u+l*l;const d=.5/(a*l-o*u);const h=t+(l*c-o*f)*d;const p=e+(a*f-u*c)*d;return{x:h,y:p}}function rz(t,e,n,i){if(i-n<=20){for(let r=n+1;r<=i;r++){const i=t[r];const s=e[i];let a=r-1;while(a>=n&&e[t[a]]>s)t[a+1]=t[a--];t[a+1]=i}}else{const r=n+i>>1;let s=n+1;let a=i;sz(t,r,s);if(e[t[n]]>e[t[i]])sz(t,n,i);if(e[t[s]]>e[t[i]])sz(t,s,i);if(e[t[n]]>e[t[s]])sz(t,n,s);const o=t[s];const u=e[o];while(true){do{s++}while(e[t[s]]u);if(a=a-n){rz(t,e,s,i);rz(t,e,n,a-1)}else{rz(t,e,n,a-1);rz(t,e,s,i)}}}function sz(t,e,n){const i=t[e];t[e]=t[n];t[n]=i}function az(t){return t[0]}function oz(t){return t[1]}const uz=1e-6;class lz{constructor(){this._x0=this._y0=this._x1=this._y1=null;this._=""}moveTo(t,e){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){if(this._x1!==null){this._x1=this._x0,this._y1=this._y0;this._+="Z"}}lineTo(t,e){this._+=`L${this._x1=+t},${this._y1=+e}`}arc(t,e,n){t=+t,e=+e,n=+n;const i=t+n;const r=e;if(n<0)throw new Error("negative radius");if(this._x1===null)this._+=`M${i},${r}`;else if(Math.abs(this._x1-i)>uz||Math.abs(this._y1-r)>uz)this._+="L"+i+","+r;if(!n)return;this._+=`A${n},${n},0,1,1,${t-n},${e}A${n},${n},0,1,1,${this._x1=i},${this._y1=r}`}rect(t,e,n,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${+n}v${+i}h${-n}Z`}value(){return this._||null}}class cz{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}class fz{constructor(t,[e,n,i,r]=[0,0,960,500]){if(!((i=+i)>=(e=+e))||!((r=+r)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=t;this._circumcenters=new Float64Array(t.points.length*2);this.vectors=new Float64Array(t.points.length*2);this.xmax=i,this.xmin=e;this.ymax=r,this.ymin=n;this._init()}update(){this.delaunay.update();this._init();return this}_init(){const{delaunay:{points:t,hull:e,triangles:n},vectors:i}=this;let r,s;const a=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let p=0,m=0,g=n.length,y,v;p1)r-=2;for(let s=2;s0){if(e>=this.ymax)return null;if((s=(this.ymax-e)/i)0){if(t>=this.xmax)return null;if((s=(this.xmax-t)/n)this.xmax?2:0)|(ethis.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let e=0;e1e-10)return false}return true}function yz(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}class vz{static from(t,e=pz,n=mz,i){return new vz("length"in t?bz(t,e,n,i):Float64Array.from(xz(t,e,n,i)))}constructor(t){this._delaunator=new ZB(t);this.inedges=new Int32Array(t.length/2);this._hullIndex=new Int32Array(t.length/2);this.points=this._delaunator.coords;this._init()}update(){this._delaunator.update();this._init();return this}_init(){const t=this._delaunator,e=this.points;if(t.hull&&t.hull.length>2&&gz(t)){this.collinear=Int32Array.from({length:e.length/2},((t,e)=>e)).sort(((t,n)=>e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]));const t=this.collinear[0],n=this.collinear[this.collinear.length-1],i=[e[2*t],e[2*t+1],e[2*n],e[2*n+1]],r=1e-8*Math.hypot(i[3]-i[1],i[2]-i[0]);for(let s=0,a=e.length/2;s0){this.triangles=new Int32Array(3).fill(-1);this.halfedges=new Int32Array(3).fill(-1);this.triangles[0]=i[0];s[i[0]]=1;if(i.length===2){s[i[1]]=0;this.triangles[1]=i[1];this.triangles[2]=i[1]}}}voronoi(t){return new fz(this,t)}*neighbors(t){const{inedges:e,hull:n,_hullIndex:i,halfedges:r,triangles:s,collinear:a}=this;if(a){const e=a.indexOf(t);if(e>0)yield a[e-1];if(e=0&&r!==n&&r!==i)n=r;return r}_step(t,e,n){const{inedges:i,hull:r,_hullIndex:s,halfedges:a,triangles:o,points:u}=this;if(i[t]===-1||!u.length)return(t+1)%(u.length>>1);let l=t;let c=hz(e-u[t*2],2)+hz(n-u[t*2+1],2);const f=i[t];let d=f;do{let i=o[d];const f=hz(e-u[i*2],2)+hz(n-u[i*2+1],2);if(f>5,Dz=1<<11;function Cz(){var t=[256,256],e,n,i,r,s,a,o,u=$z,l=[],c=Math.random,f={};f.layout=function(){var u=d(Ko()),f=Oz((t[0]>>5)*t[1]),p=null,m=l.length,g=-1,y=[],v=l.map((t=>({text:e(t),font:n(t),style:r(t),weight:s(t),rotate:a(t),size:~~(i(t)+1e-14),padding:o(t),xoff:0,yoff:0,x1:0,y1:0,x0:0,y0:0,hasText:false,sprite:null,datum:t}))).sort(((t,e)=>e.size-t.size));while(++g>1;b.y=t[1]*(c()+.5)>>1;Fz(u,b,v,g);if(b.hasText&&h(f,b,p)){y.push(b);if(p)Bz(p,b);else p=[{x:b.x+b.x0,y:b.y+b.y0},{x:b.x+b.x1,y:b.y+b.y1}];b.x-=t[0]>>1;b.y-=t[1]>>1}}return y};function d(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(Mz<<5)/e;t.height=Dz/e;var n=t.getContext("2d");n.fillStyle=n.strokeStyle="red";n.textAlign="center";return{context:n,ratio:e}}function h(e,n,i){var r=n.x,s=n.y,a=Math.hypot(t[0],t[1]),o=u(t),l=c()<.5?1:-1,f=-l,d,h,p;while(d=o(f+=l)){h=~~d[0];p=~~d[1];if(Math.min(Math.abs(h),Math.abs(p))>=a)break;n.x=r+h;n.y=s+p;if(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])continue;if(!i||!Sz(n,e,t[0])){if(!i||zz(n,i)){var m=n.sprite,g=n.width>>5,y=t[0]>>5,v=n.x-(g<<4),b=v&127,x=32-b,_=n.y1-n.y0,w=(n.y+n.y0)*y+(v>>5),A;for(var k=0;k<_;k++){A=0;for(var E=0;E<=g;E++){e[w+E]|=A<>>b:0)}w+=y}n.sprite=null;return true}}}return false}f.words=function(t){if(arguments.length){l=t;return f}else{return l}};f.size=function(e){if(arguments.length){t=[+e[0],+e[1]];return f}else{return t}};f.font=function(t){if(arguments.length){n=Tz(t);return f}else{return n}};f.fontStyle=function(t){if(arguments.length){r=Tz(t);return f}else{return r}};f.fontWeight=function(t){if(arguments.length){s=Tz(t);return f}else{return s}};f.rotate=function(t){if(arguments.length){a=Tz(t);return f}else{return a}};f.text=function(t){if(arguments.length){e=Tz(t);return f}else{return e}};f.spiral=function(t){if(arguments.length){u=Nz[t]||t;return f}else{return u}};f.fontSize=function(t){if(arguments.length){i=Tz(t);return f}else{return i}};f.padding=function(t){if(arguments.length){o=Tz(t);return f}else{return o}};f.random=function(t){if(arguments.length){c=t;return f}else{return c}};return f}function Fz(t,e,n,i){if(e.sprite)return;var r=t.context,s=t.ratio;r.clearRect(0,0,(Mz<<5)/s,Dz/s);var a=0,o=0,u=0,l=n.length,c,f,d,h,p;--i;while(++i>5<<5;d=~~Math.max(Math.abs(v+b),Math.abs(v-b))}else{c=c+31>>5<<5}if(d>u)u=d;if(a+c>=Mz<<5){a=0;o+=u;u=0}if(o+d>=Dz)break;r.translate((a+(c>>1))/s,(o+(d>>1))/s);if(e.rotate)r.rotate(e.rotate*Ez);r.fillText(e.text,0,0);if(e.padding){r.lineWidth=2*e.padding;r.strokeText(e.text,0,0)}r.restore();e.width=c;e.height=d;e.xoff=a;e.yoff=o;e.x1=c>>1;e.y1=d>>1;e.x0=-e.x1;e.y0=-e.y1;e.hasText=true;a+=c}var _=r.getImageData(0,0,(Mz<<5)/s,Dz/s).data,w=[];while(--i>=0){e=n[i];if(!e.hasText)continue;c=e.width;f=c>>5;d=e.y1-e.y0;for(h=0;h>5),M=_[(o+p)*(Mz<<5)+(a+h)<<2]?1<<31-h%32:0;w[E]|=M;A|=M}if(A)k=p;else{e.y0++;d--;p--;o++}}e.y1=e.y0+k;e.sprite=w.slice(0,(e.y1-e.y0)*f)}}function Sz(t,e,n){n>>=5;var i=t.sprite,r=t.width>>5,s=t.x-(r<<4),a=s&127,o=32-a,u=t.y1-t.y0,l=(t.y+t.y0)*n+(s>>5),c;for(var f=0;f>>a:0))&e[l+d])return true}l+=n}return false}function Bz(t,e){var n=t[0],i=t[1];if(e.x+e.x0i.x)i.x=e.x+e.x1;if(e.y+e.y1>i.y)i.y=e.y+e.y1}function zz(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y0e(t(n))}r.forEach((t=>{t[a[0]]=NaN;t[a[1]]=NaN;t[a[3]]=0}));const l=s.words(r).text(t.text).size(t.size||[500,500]).padding(t.padding||1).spiral(t.spiral||"archimedean").rotate(t.rotate||0).font(t.font||"sans-serif").fontStyle(t.fontStyle||"normal").fontWeight(t.fontWeight||"normal").fontSize(o).random(ir).layout();const c=s.size(),f=c[0]>>1,d=c[1]>>1,h=l.length;for(let p=0,m,g;pt[e]))}const Uz=t=>new Uint8Array(t);const jz=t=>new Uint16Array(t);const Gz=t=>new Uint32Array(t);function Yz(){let t=8,e=[],n=Gz(0),i=Xz(0,t),r=Xz(0,t);return{data:()=>e,seen:()=>n=Wz(n,e.length),add(t){for(let n=0,i=e.length,r=t.length,s;ne.length,curr:()=>i,prev:()=>r,reset:t=>r[t]=i[t],all:()=>t<257?255:t<65537?65535:4294967295,set(t,e){i[t]|=e},clear(t,e){i[t]&=~e},resize(e,n){const s=i.length;if(e>s||n>t){t=Math.max(n,t);i=Xz(e,t,i);r=Xz(e,t)}}}}function Wz(t,e,n){if(t.length>=e)return t;n=n||new t.constructor(e);n.set(t);return n}function Xz(t,e,n){const i=(e<257?Uz:e<65537?jz:Gz)(t);if(n)i.set(n);return i}function Hz(t,e,n){const i=1<0)for(d=0;dt,size:()=>n}}function Qz(t,e){t.sort.call(e,((e,n)=>{const i=t[e],r=t[n];return ir?1:0}));return Iz(t,e)}function Kz(t,e,n,i,r,s,a,o,u){let l=0,c=0,f;for(f=0;le.modified(t.fields)));return n?this.reinit(t,e):this.eval(t,e)}},init(t,e){const n=t.fields,i=t.query,r=this._indices={},s=this._dims=[],a=i.length;let o=0,u,l;for(;o{const t=r.remove(e,n);for(const e in i)i[e].reindex(t)}))},update(t,e,n){const i=this._dims,r=t.query,s=e.stamp,a=i.length;let o=0,u,l;n.filters=0;for(l=0;lh){for(g=h,y=Math.min(f,p);gp){for(g=Math.max(f,p),y=d;gf){for(p=f,m=Math.min(l,d);pd){for(p=Math.max(l,d),m=c;p!(o[t]&n)?a[t]:null;s.filter(s.MOD,l);if(!(r&r-1)){s.filter(s.ADD,l);s.filter(s.REM,(t=>(o[t]&n)===r?a[t]:null))}else{s.filter(s.ADD,(t=>{const e=o[t]&n,i=!e&&e^u[t]&n;return i?a[t]:null}));s.filter(s.REM,(t=>{const e=o[t]&n,i=e&&!(e^(e^u[t]&n));return i?a[t]:null}))}return s.filter(s.SOURCE,(t=>l(t._index)))}});const t$="RawCode";const e$="Literal";const n$="Property";const i$="Identifier";const r$="ArrayExpression";const s$="BinaryExpression";const a$="CallExpression";const o$="ConditionalExpression";const u$="LogicalExpression";const l$="MemberExpression";const c$="ObjectExpression";const f$="UnaryExpression";function d$(t){this.type=t}d$.prototype.visit=function(t){let e,n,i;if(t(this))return 1;for(e=h$(this),n=0,i=e.length;n";p$[_$]="Identifier";p$[w$]="Keyword";p$[A$]="Null";p$[k$]="Numeric";p$[E$]="Punctuator";p$[M$]="String";p$[D$]="RegularExpression";var C$="ArrayExpression",F$="BinaryExpression",S$="CallExpression",B$="ConditionalExpression",z$="Identifier",$$="Literal",R$="LogicalExpression",O$="MemberExpression",T$="ObjectExpression",N$="Property",L$="UnaryExpression";var P$="Unexpected token %0",q$="Unexpected number",I$="Unexpected string",U$="Unexpected identifier",j$="Unexpected reserved word",G$="Unexpected end of input",Y$="Invalid regular expression",W$="Invalid regular expression: missing /",X$="Octal literals are not allowed in strict mode.",H$="Duplicate data property in object literal not allowed in strict mode";var V$="ILLEGAL",Q$="Disabled.";var K$=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),Z$=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");function J$(t,e){if(!t){throw new Error("ASSERT: "+e)}}function tR(t){return t>=48&&t<=57}function eR(t){return"0123456789abcdefABCDEF".includes(t)}function nR(t){return"01234567".includes(t)}function iR(t){return t===32||t===9||t===11||t===12||t===160||t>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(t)}function rR(t){return t===10||t===13||t===8232||t===8233}function sR(t){return t===36||t===95||t>=65&&t<=90||t>=97&&t<=122||t===92||t>=128&&K$.test(String.fromCharCode(t))}function aR(t){return t===36||t===95||t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===92||t>=128&&Z$.test(String.fromCharCode(t))}const oR={if:1,in:1,do:1,var:1,for:1,new:1,try:1,let:1,this:1,else:1,case:1,void:1,with:1,enum:1,while:1,break:1,catch:1,throw:1,const:1,yield:1,class:1,super:1,return:1,typeof:1,delete:1,switch:1,export:1,import:1,public:1,static:1,default:1,finally:1,extends:1,package:1,private:1,function:1,continue:1,debugger:1,interface:1,protected:1,instanceof:1,implements:1};function uR(){while(g$1114111||t!=="}"){NR({},P$,V$)}if(e<=65535){return String.fromCharCode(e)}n=(e-65536>>10)+55296;i=(e-65536&1023)+56320;return String.fromCharCode(n,i)}function fR(){var t,e;t=m$.charCodeAt(g$++);e=String.fromCharCode(t);if(t===92){if(m$.charCodeAt(g$)!==117){NR({},P$,V$)}++g$;t=lR("u");if(!t||t==="\\"||!sR(t.charCodeAt(0))){NR({},P$,V$)}e=t}while(g$>>="){g$+=4;return{type:E$,value:a,start:t,end:g$}}s=a.substr(0,3);if(s===">>>"||s==="<<="||s===">>="){g$+=3;return{type:E$,value:s,start:t,end:g$}}r=s.substr(0,2);if(i===r[1]&&"+-<>&|".includes(i)||r==="=>"){g$+=2;return{type:E$,value:r,start:t,end:g$}}if(r==="//"){NR({},P$,V$)}if("<>=!+-*%&|^/".includes(i)){++g$;return{type:E$,value:i,start:t,end:g$}}NR({},P$,V$)}function mR(t){let e="";while(g${if(parseInt(e,16)<=1114111){return"x"}NR({},Y$)})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x")}try{new RegExp(n)}catch(i){NR({},Y$)}try{return new RegExp(t,e)}catch(r){return null}}function xR(){var t,e,n,i,r;t=m$[g$];J$(t==="/","Regular expression literal must start with a slash");e=m$[g$++];n=false;i=false;while(g$=0){NR({},Y$,n)}return{value:n,literal:e}}function wR(){var t,e,n,i;v$=null;uR();t=g$;e=xR();n=_R();i=bR(e.value,n.value);return{literal:e.literal+n.literal,value:i,regex:{pattern:e.value,flags:n.value},start:t,end:g$}}function AR(t){return t.type===_$||t.type===w$||t.type===b$||t.type===A$}function kR(){uR();if(g$>=y$){return{type:x$,start:g$,end:g$}}const t=m$.charCodeAt(g$);if(sR(t)){return hR()}if(t===40||t===41||t===59){return pR()}if(t===39||t===34){return vR()}if(t===46){if(tR(m$.charCodeAt(g$+1))){return yR()}return pR()}if(tR(t)){return yR()}return pR()}function ER(){const t=v$;g$=t.end;v$=kR();g$=t.end;return t}function MR(){const t=g$;v$=kR();g$=t}function DR(t){const e=new d$(C$);e.elements=t;return e}function CR(t,e,n){const i=new d$(t==="||"||t==="&&"?R$:F$);i.operator=t;i.left=e;i.right=n;return i}function FR(t,e){const n=new d$(S$);n.callee=t;n.arguments=e;return n}function SR(t,e,n){const i=new d$(B$);i.test=t;i.consequent=e;i.alternate=n;return i}function BR(t){const e=new d$(z$);e.name=t;return e}function zR(t){const e=new d$($$);e.value=t.value;e.raw=m$.slice(t.start,t.end);if(t.regex){if(e.raw==="//"){e.raw="/(?:)/"}e.regex=t.regex}return e}function $R(t,e,n){const i=new d$(O$);i.computed=t==="[";i.object=e;i.property=n;if(!i.computed)n.member=true;return i}function RR(t){const e=new d$(T$);e.properties=t;return e}function OR(t,e,n){const i=new d$(N$);i.key=e;i.value=n;i.kind=t;return i}function TR(t,e){const n=new d$(L$);n.operator=t;n.argument=e;n.prefix=true;return n}function NR(t,e){var n,i=Array.prototype.slice.call(arguments,2),r=e.replace(/%(\d)/g,((t,e)=>{J$(e":case"<=":case">=":case"instanceof":case"in":e=7;break;case"<<":case">>":case">>>":e=8;break;case"+":case"-":e=9;break;case"*":case"/":case"%":e=11;break}return e}function iO(){var t,e,n,i,r,s,a,o,u,l;t=v$;u=eO();i=v$;r=nO(i);if(r===0){return u}i.prec=r;ER();e=[t,v$];a=eO();s=[u,i,a];while((r=nO(v$))>0){while(s.length>2&&r<=s[s.length-2].prec){a=s.pop();o=s.pop().value;u=s.pop();e.pop();n=CR(o,u,a);s.push(n)}i=ER();i.prec=r;s.push(i);e.push(v$);n=eO();s.push(n)}l=s.length-1;n=s[l];e.pop();while(l>1){e.pop();n=CR(s[l-1].value,s[l-2],n);l-=2}return n}function rO(){var t,e,n;t=iO();if(qR("?")){ER();e=rO();PR(":");n=rO();t=SR(t,e,n)}return t}function sO(){const t=rO();if(qR(",")){throw new Error(Q$)}return t}function aO(t){m$=t;g$=0;y$=m$.length;v$=null;MR();const e=sO();if(v$.type!==x$){throw new Error("Unexpect token after expression.")}return e}var oO={NaN:"NaN",E:"Math.E",LN2:"Math.LN2",LN10:"Math.LN10",LOG2E:"Math.LOG2E",LOG10E:"Math.LOG10E",PI:"Math.PI",SQRT1_2:"Math.SQRT1_2",SQRT2:"Math.SQRT2",MIN_VALUE:"Number.MIN_VALUE",MAX_VALUE:"Number.MAX_VALUE"};function uO(t){function e(e,n,i,r){let s=t(n[0]);if(i){s=i+"("+s+")";if(i.lastIndexOf("new ",0)===0)s="("+s+")"}return s+"."+e+(r<0?"":r===0?"()":"("+n.slice(1).map(t).join(",")+")")}function n(t,n,i){return r=>e(t,r,n,i)}const i="new Date",r="String",s="RegExp";return{isNaN:"Number.isNaN",isFinite:"Number.isFinite",abs:"Math.abs",acos:"Math.acos",asin:"Math.asin",atan:"Math.atan",atan2:"Math.atan2",ceil:"Math.ceil",cos:"Math.cos",exp:"Math.exp",floor:"Math.floor",hypot:"Math.hypot",log:"Math.log",max:"Math.max",min:"Math.min",pow:"Math.pow",random:"Math.random",round:"Math.round",sin:"Math.sin",sqrt:"Math.sqrt",tan:"Math.tan",clamp:function(e){if(e.length<3)(0,p.z3)("Missing arguments to clamp function.");if(e.length>3)(0,p.z3)("Too many arguments to clamp function.");const n=e.map(t);return"Math.max("+n[1]+", Math.min("+n[2]+","+n[0]+"))"},now:"Date.now",utc:"Date.UTC",datetime:i,date:n("getDate",i,0),day:n("getDay",i,0),year:n("getFullYear",i,0),month:n("getMonth",i,0),hours:n("getHours",i,0),minutes:n("getMinutes",i,0),seconds:n("getSeconds",i,0),milliseconds:n("getMilliseconds",i,0),time:n("getTime",i,0),timezoneoffset:n("getTimezoneOffset",i,0),utcdate:n("getUTCDate",i,0),utcday:n("getUTCDay",i,0),utcyear:n("getUTCFullYear",i,0),utcmonth:n("getUTCMonth",i,0),utchours:n("getUTCHours",i,0),utcminutes:n("getUTCMinutes",i,0),utcseconds:n("getUTCSeconds",i,0),utcmilliseconds:n("getUTCMilliseconds",i,0),length:n("length",null,-1),parseFloat:"parseFloat",parseInt:"parseInt",upper:n("toUpperCase",r,0),lower:n("toLowerCase",r,0),substring:n("substring",r),split:n("split",r),trim:n("trim",r,0),btoa:"btoa",atob:"atob",regexp:s,test:n("test",s),if:function(e){if(e.length<3)(0,p.z3)("Missing arguments to if function.");if(e.length>3)(0,p.z3)("Too many arguments to if function.");const n=e.map(t);return"("+n[0]+"?"+n[1]+":"+n[2]+")"}}}function lO(t){const e=t&&t.length-1;return e&&(t[0]==='"'&&t[e]==='"'||t[0]==="'"&&t[e]==="'")?t.slice(1,-1):t}function cO(t){t=t||{};const e=t.allowed?(0,p.M1)(t.allowed):{},n=t.forbidden?(0,p.M1)(t.forbidden):{},i=t.constants||oO,r=(t.functions||uO)(f),s=t.globalvar,a=t.fieldvar,o=(0,p.Tn)(s)?s:t=>`${s}["${t}"]`;let u={},l={},c=0;function f(t){if((0,p.Kg)(t))return t;const e=d[t.type];if(e==null)(0,p.z3)("Unsupported type: "+t.type);return e(t)}const d={Literal:t=>t.raw,Identifier:t=>{const r=t.name;if(c>0){return r}else if((0,p.mQ)(n,r)){return(0,p.z3)("Illegal identifier: "+r)}else if((0,p.mQ)(i,r)){return i[r]}else if((0,p.mQ)(e,r)){return r}else{u[r]=1;return o(r)}},MemberExpression:t=>{const e=!t.computed,n=f(t.object);if(e)c+=1;const i=f(t.property);if(n===a){l[lO(i)]=1}if(e)c-=1;return n+(e?"."+i:"["+i+"]")},CallExpression:t=>{if(t.callee.type!=="Identifier"){(0,p.z3)("Illegal callee type: "+t.callee.type)}const e=t.callee.name,n=t.arguments,i=(0,p.mQ)(r,e)&&r[e];if(!i)(0,p.z3)("Unrecognized function: "+e);return(0,p.Tn)(i)?i(n):i+"("+n.map(f).join(",")+")"},ArrayExpression:t=>"["+t.elements.map(f).join(",")+"]",BinaryExpression:t=>"("+f(t.left)+" "+t.operator+" "+f(t.right)+")",UnaryExpression:t=>"("+t.operator+f(t.argument)+")",ConditionalExpression:t=>"("+f(t.test)+"?"+f(t.consequent)+":"+f(t.alternate)+")",LogicalExpression:t=>"("+f(t.left)+t.operator+f(t.right)+")",ObjectExpression:t=>"{"+t.properties.map(f).join(",")+"}",Property:t=>{c+=1;const e=f(t.key);c-=1;return e+":"+f(t.value)}};function h(t){const e={code:f(t),globals:Object.keys(u),fields:Object.keys(l)};u={};l={};return e}h.functions=r;h.constants=i;return h}var fO=new ax;var dO=new ax,hO,pO,mO,gO,yO;var vO={point:Rx,lineStart:Rx,lineEnd:Rx,polygonStart:function(){fO=new ax;vO.lineStart=bO;vO.lineEnd=xO},polygonEnd:function(){var t=+fO;dO.add(t<0?px+t:t);this.lineStart=this.lineEnd=this.point=Rx},sphere:function(){dO.add(px)}};function bO(){vO.point=_O}function xO(){wO(hO,pO)}function _O(t,e){vO.point=wO;hO=t,pO=e;t*=gx,e*=gx;mO=t,gO=xx(e=e/2+hx),yO=Dx(e)}function wO(t,e){t*=gx,e*=gx;e=e/2+hx;var n=t-mO,i=n>=0?1:-1,r=i*n,s=xx(e),a=Dx(e),o=yO*a,u=gO*s+o*xx(r),l=o*i*Dx(r);fO.add(bx(l,u));mO=t,gO=s,yO=a}function AO(t){dO=new ax;sx(t,vO);return dO*2}var kO,EO,MO,DO,CO,FO,SO,BO,zO,$O,RO;var OO={point:TO,lineStart:LO,lineEnd:PO,polygonStart:function(){OO.point=qO;OO.lineStart=IO;OO.lineEnd=UO;zO=new ax;vO.polygonStart()},polygonEnd:function(){vO.polygonEnd();OO.point=TO;OO.lineStart=LO;OO.lineEnd=PO;if(fO<0)kO=-(MO=180),EO=-(DO=90);else if(zO>lx)DO=90;else if(zO<-lx)EO=-90;RO[0]=kO,RO[1]=MO},sphere:function(){kO=-(MO=180),EO=-(DO=90)}};function TO(t,e){$O.push(RO=[kO=t,MO=t]);if(eDO)DO=e}function NO(t,e){var n=V_([t*gx,e*gx]);if(BO){var i=K_(BO,n),r=[i[1],-i[0],0],s=K_(r,i);tw(s);s=H_(s);var a=t-CO,o=a>0?1:-1,u=s[0]*mx*o,l,c=yx(a)>180;if(c^(o*CODO)DO=l}else if(u=(u+360)%360-180,c^(o*CODO)DO=e}if(c){if(tjO(kO,MO))MO=t}else{if(jO(t,MO)>jO(kO,MO))kO=t}}else{if(MO>=kO){if(tMO)MO=t}else{if(t>CO){if(jO(kO,t)>jO(kO,MO))MO=t}else{if(jO(t,MO)>jO(kO,MO))kO=t}}}}else{$O.push(RO=[kO=t,MO=t])}if(eDO)DO=e;BO=n,CO=t}function LO(){OO.point=NO}function PO(){RO[0]=kO,RO[1]=MO;OO.point=TO;BO=null}function qO(t,e){if(BO){var n=t-CO;zO.add(yx(n)>180?n+(n>0?360:-360):n)}else{FO=t,SO=e}vO.point(t,e);NO(t,e)}function IO(){vO.lineStart()}function UO(){qO(FO,SO);vO.lineEnd();if(yx(zO)>lx)kO=-(MO=180);RO[0]=kO,RO[1]=MO;BO=null}function jO(t,e){return(e-=t)<0?e+360:e}function GO(t,e){return t[0]-e[0]}function YO(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:ejO(i[0],i[1]))i[1]=r[1];if(jO(r[0],i[1])>jO(i[0],i[1]))i[0]=r[0]}else{s.push(i=r)}}for(a=-Infinity,n=s.length-1,e=0,i=s[n];e<=n;i=r,++e){r=s[e];if((o=jO(i[1],r[0]))>a)a=o,kO=r[0],MO=i[1]}}$O=RO=null;return kO===Infinity||EO===Infinity?[[NaN,NaN],[NaN,NaN]]:[[kO,EO],[MO,DO]]}var XO,HO,VO,QO,KO,ZO,JO,tT,eT,nT,iT,rT,sT,aT,oT,uT;var lT={sphere:Rx,point:cT,lineStart:dT,lineEnd:mT,polygonStart:function(){lT.lineStart=gT;lT.lineEnd=yT},polygonEnd:function(){lT.lineStart=dT;lT.lineEnd=mT}};function cT(t,e){t*=gx,e*=gx;var n=xx(e);fT(n*xx(t),n*Dx(t),Dx(e))}function fT(t,e,n){++XO;VO+=(t-VO)/XO;QO+=(e-QO)/XO;KO+=(n-KO)/XO}function dT(){lT.point=hT}function hT(t,e){t*=gx,e*=gx;var n=xx(e);aT=n*xx(t);oT=n*Dx(t);uT=Dx(e);lT.point=pT;fT(aT,oT,uT)}function pT(t,e){t*=gx,e*=gx;var n=xx(e),i=n*xx(t),r=n*Dx(t),s=Dx(e),a=bx(Fx((a=oT*s-uT*r)*a+(a=uT*i-aT*s)*a+(a=aT*r-oT*i)*a),aT*i+oT*r+uT*s);HO+=a;ZO+=a*(aT+(aT=i));JO+=a*(oT+(oT=r));tT+=a*(uT+(uT=s));fT(aT,oT,uT)}function mT(){lT.point=cT}function gT(){lT.point=vT}function yT(){bT(rT,sT);lT.point=cT}function vT(t,e){rT=t,sT=e;t*=gx,e*=gx;lT.point=bT;var n=xx(e);aT=n*xx(t);oT=n*Dx(t);uT=Dx(e);fT(aT,oT,uT)}function bT(t,e){t*=gx,e*=gx;var n=xx(e),i=n*xx(t),r=n*Dx(t),s=Dx(e),a=oT*s-uT*r,o=uT*i-aT*s,u=aT*r-oT*i,l=kx(a,o,u),c=zx(l),f=l&&-c/l;eT.add(f*a);nT.add(f*o);iT.add(f*u);HO+=c;ZO+=c*(aT+(aT=i));JO+=c*(oT+(oT=r));tT+=c*(uT+(uT=s));fT(aT,oT,uT)}function xT(t){XO=HO=VO=QO=KO=ZO=JO=tT=0;eT=new ax;nT=new ax;iT=new ax;sx(t,lT);var e=+eT,n=+nT,i=+iT,r=kx(e,n,i);if(r=i[s])return false}else if(o.type===UT){if(a>i[s])return false}else if(o.type===jT){if(a<=i[s])return false}else if(o.type===GT){if(a(0,p.X$)(e.fields?{values:e.fields.map((e=>DT(e)(t.datum)))}:{[RT]:OT(t.datum)},e)))}function eN(t,e,n,i){var r=this.context.data[t],s=r?r.values.value:[],a={},o={},u={},l,c,f,d,h,m,g,y,v,b,x=s.length,_=0,w,A;for(;_(t[c[n].field]=e,t)),{}))}}else{h=RT;m=OT(l);g=a[h]||(a[h]={});y=g[d]||(g[d]=[]);y.push(m);if(n){y=o[d]||(o[d]=[]);y.push({[RT]:m})}}}e=e||FT;if(a[RT]){a[RT]=nN[`${RT}_${e}`](...Object.values(a[RT]))}else{Object.keys(a).forEach((t=>{a[t]=Object.keys(a[t]).map((e=>a[t][e])).reduce(((n,i)=>n===undefined?i:nN[`${u[t]}_${e}`](n,i)))}))}s=Object.keys(o);if(n&&s.length){const t=i?BT:ST;a[t]=e===FT?{[zT]:s.reduce(((t,e)=>(t.push(...o[e]),t)),[])}:{[$T]:s.map((t=>({[zT]:o[t]})))}}return a}var nN={[`${RT}_union`]:AT,[`${RT}_intersect`]:kT,E_union:function(t,e){if(!t.length)return e;var n=0,i=e.length;for(;ne.includes(t)))},R_union:function(t,e){var n=(0,p.Ro)(e[0]),i=(0,p.Ro)(e[1]);if(n>i){n=e[1];i=e[0]}if(!t.length)return[n,i];if(t[0]>n)t[0]=n;if(t[1]i){n=e[1];i=e[0]}if(!t.length)return[n,i];if(ii)t[1]=i}return t}};const iN=":",rN="@";function sN(t,e,n,i){if(e[0].type!==e$)(0,p.z3)("First argument to selection functions must be a string literal.");const r=e[0].value,s=e.length>=2&&(0,p.se)(e).value,a="unit",o=rN+a,u=iN+r;if(s===CT&&!(0,p.mQ)(i,o)){i[o]=n.getData(r).indataRef(n,a)}if(!(0,p.mQ)(i,u)){i[u]=n.getData(r).tuplesRef()}}function aN(t){const e=this.context.data[t];return e?e.values.value:[]}function oN(t,e,n){const i=this.context.data[t]["index:"+e],r=i?i.value.get(n):undefined;return r?r.count:r}function uN(t,e){const n=this.context.dataflow,i=this.context.data[t],r=i.input;n.pulse(r,n.changeset().remove(p.vN).insert(e));return 1}function lN(t,e,n){if(t){const n=this.context.dataflow,i=t.mark.source;n.pulse(i,n.changeset().encode(t,e))}return n!==undefined?n:t}const cN=t=>function(e,n){const i=this.context.dataflow.locale();return e===null?"null":i[t](n)(e)};const fN=cN("format");const dN=cN("timeFormat");const hN=cN("utcFormat");const pN=cN("timeParse");const mN=cN("utcParse");const gN=new Date(2e3,0,1);function yN(t,e,n){if(!Number.isInteger(t)||!Number.isInteger(e))return"";gN.setYear(2e3);gN.setMonth(t);gN.setDate(e);return dN.call(this,gN,n)}function vN(t){return yN.call(this,t,1,"%B")}function bN(t){return yN.call(this,t,1,"%b")}function xN(t){return yN.call(this,0,2+t,"%A")}function _N(t){return yN.call(this,0,2+t,"%a")}const wN=":";const AN="@";const kN="%";const EN="$";function MN(t,e,n,i){if(e[0].type!==e$){(0,p.z3)("First argument to data functions must be a string literal.")}const r=e[0].value,s=wN+r;if(!(0,p.mQ)(s,i)){try{i[s]=n.getData(r).tuplesRef()}catch(a){}}}function DN(t,e,n,i){if(e[0].type!==e$)(0,p.z3)("First argument to indata must be a string literal.");if(e[1].type!==e$)(0,p.z3)("Second argument to indata must be a string literal.");const r=e[0].value,s=e[1].value,a=AN+s;if(!(0,p.mQ)(a,i)){i[a]=n.getData(r).indataRef(n,s)}}function CN(t,e,n,i){if(e[0].type===e$){FN(n,i,e[0].value)}else{for(t in n.scales){FN(n,i,t)}}}function FN(t,e,n){const i=kN+n;if(!(0,p.mQ)(e,i)){try{e[i]=t.scaleRef(n)}catch(r){}}}function SN(t,e){if((0,p.Kg)(t)){const n=e.scales[t];return n&&jl(n.value)?n.value:undefined}else if((0,p.Tn)(t)){return jl(t)?t:undefined}return undefined}function BN(t,e,n){e.__bandwidth=t=>t&&t.bandwidth?t.bandwidth():0;n._bandwidth=CN;n._range=CN;n._scale=CN;const i=e=>"_["+(e.type===e$?(0,p.r$)(kN+e.value):(0,p.r$)(kN)+"+"+t(e))+"]";return{_bandwidth:t=>`this.__bandwidth(${i(t[0])})`,_range:t=>`${i(t[0])}.range()`,_scale:e=>`${i(e[0])}(${t(e[1])})`}}function zN(t,e){return function(n,i,r){if(n){const e=SN(n,(r||this).context);return e&&e.path[t](i)}else{return e(i)}}}const $N=zN("area",AO);const RN=zN("bounds",WO);const ON=zN("centroid",xT);function TN(t,e){const n=SN(t,(e||this).context);return n&&n.scale()}function NN(t){const e=this.context.group;let n=false;if(e)while(t){if(t===e){n=true;break}t=t.mark.group}return n}function LN(t,e,n){try{t[e].apply(t,["EXPRESSION"].concat([].slice.call(n)))}catch(i){t.warn(i)}return n[n.length-1]}function PN(){return LN(this.context.dataflow,"warn",arguments)}function qN(){return LN(this.context.dataflow,"info",arguments)}function IN(){return LN(this.context.dataflow,"debug",arguments)}function UN(t){const e=t/255;if(e<=.03928){return e/12.92}return Math.pow((e+.055)/1.055,2.4)}function jN(t){const e=(0,Fk.Qh)(t),n=UN(e.r),i=UN(e.g),r=UN(e.b);return.2126*n+.7152*i+.0722*r}function GN(t,e){const n=jN(t),i=jN(e),r=Math.max(n,i),s=Math.min(n,i);return(r+.05)/(s+.05)}function YN(){const t=[].slice.call(arguments);t.unshift({});return(0,p.X$)(...t)}function WN(t,e){return t===e||t!==t&&e!==e?true:(0,p.cy)(t)?(0,p.cy)(e)&&t.length===e.length?XN(t,e):false:(0,p.Gv)(t)&&(0,p.Gv)(e)?HN(t,e):false}function XN(t,e){for(let n=0,i=t.length;nHN(t,e)}function QN(t,e,n,i,r,s){const a=this.context.dataflow,o=this.context.data[t],u=o.input,l=a.stamp();let c=o.changes,f,d;if(a._trigger===false||!(u.value.length||e||i)){return 0}if(!c||c.stamp{o.modified=true;a.pulse(u,c).run()}),true,1)}if(n){f=n===true?p.vN:(0,p.cy)(n)||gn(n)?n:VN(n);c.remove(f)}if(e){c.insert(e)}if(i){f=VN(i);if(u.value.some(f)){c.remove(f)}else{c.insert(i)}}if(r){for(d in s){c.modify(r,d,s[d])}}return 1}function KN(t){const e=t.touches,n=e[0].clientX-e[1].clientX,i=e[0].clientY-e[1].clientY;return Math.hypot(n,i)}function ZN(t){const e=t.touches;return Math.atan2(e[0].clientY-e[1].clientY,e[0].clientX-e[1].clientX)}const JN={};function tL(t,e){const n=JN[e]||(JN[e]=(0,p.ZZ)(e));return(0,p.cy)(t)?t.map(n):n(t)}function eL(t){return(0,p.cy)(t)||ArrayBuffer.isView(t)?t:null}function nL(t){return eL(t)||((0,p.Kg)(t)?t:null)}function iL(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1?e-1:0),i=1;i1?e-1:0),i=1;i1?e-1:0),i=1;is.stop(l(e),t(e))));return s}function vL(t,e,n){const i=SN(t,(n||this).context);return function(t){return i?i.path.context(t)(e):""}}function bL(t){let e=null;return function(n){return n?yf(n,e=e||nf(t)):t}}const xL=t=>t.data;function _L(t,e){const n=aN.call(e,t);return n.root&&n.root.lookup||{}}function wL(t,e,n){const i=_L(t,this),r=i[e],s=i[n];return r&&s?r.path(s).map(xL):undefined}function AL(t,e){const n=_L(t,this)[e];return n?n.ancestors().map(xL):undefined}const kL=()=>typeof window!=="undefined"&&window||null;function EL(){const t=kL();return t?t.screen:{}}function ML(){const t=kL();return t?[t.innerWidth,t.innerHeight]:[undefined,undefined]}function DL(){const t=this.context.dataflow,e=t.container&&t.container();return e?[e.clientWidth,e.clientHeight]:[undefined,undefined]}function CL(t,e,n){if(!t)return[];const[i,r]=t,s=(new vd).set(i[0],i[1],r[0],r[1]),a=n||this.context.dataflow.scenegraph().root;return cy(a,s,FL(e))}function FL(t){let e=null;if(t){const n=(0,p.YO)(t.marktype),i=(0,p.YO)(t.markname);e=t=>(!n.length||n.some((e=>t.marktype===e)))&&(!i.length||i.some((e=>t.name===e)))}return e}function SL(t,e,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:5;t=(0,p.YO)(t);const r=t[t.length-1];return r===undefined||Math.hypot(r[0]-e,r[1]-n)>i?[...t,[e,n]]:t}function BL(t){return(0,p.YO)(t).reduce(((e,n,i)=>{let[r,s]=n;return e+=i==0?`M ${r},${s} `:i===t.length-1?" Z":`L ${r},${s} `}),"")}function zL(t,e,n){const{x:i,y:r,mark:s}=n;const a=(new vd).set(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,Number.MIN_SAFE_INTEGER,Number.MIN_SAFE_INTEGER);for(const[u,l]of e){if(ua.x2)a.x2=u;if(la.y2)a.y2=l}a.translate(i,r);const o=CL([[a.x1,a.y1],[a.x2,a.y2]],t,s);return o.filter((t=>$L(t.x,t.y,e)))}function $L(t,e,n){let i=0;for(let r=0,s=n.length-1;re!=o>e&&t<(a-u)*(e-l)/(o-l)+u){i++}}return i&1}const RL={random(){return ir()},cumulativeNormal:mr,cumulativeLogNormal:wr,cumulativeUniform:Cr,densityNormal:pr,densityLogNormal:_r,densityUniform:Dr,quantileNormal:gr,quantileLogNormal:Ar,quantileUniform:Fr,sampleNormal:hr,sampleLogNormal:xr,sampleUniform:Mr,isArray:p.cy,isBoolean:p.Lm,isDate:p.$P,isDefined(t){return t!==undefined},isNumber:p.Et,isObject:p.Gv,isRegExp:p.gd,isString:p.Kg,isTuple:gn,isValid(t){return t!=null&&t===t},toBoolean:p.G4,toDate(t){return(0,p.ay)(t)},toNumber:p.Ro,toString:p.dI,indexof:rL,join:iL,lastindexof:sL,replace:oL,reverse:uL,sort:lL,slice:aL,flush:p.bX,lerp:p.Cc,merge:YN,pad:p.eV,peek:p.se,pluck:tL,span:p.Ln,inrange:p.PK,truncate:p.xv,rgb:Fk.Qh,lab:_T.Ay,hcl:_T.aq,hsl:Fk.KI,luminance:jN,contrast:GN,sequence:es.A,format:fN,utcFormat:hN,utcParse:mN,utcOffset:Gt,utcSequence:Xt,timeFormat:dN,timeParse:pN,timeOffset:jt,timeSequence:Wt,timeUnitSpecifier:pt,monthFormat:vN,monthAbbrevFormat:bN,dayFormat:xN,dayAbbrevFormat:_N,quarter:p.$G,utcquarter:p.vu,week:vt,utcweek:kt,dayofyear:yt,utcdayofyear:At,warn:PN,info:qN,debug:IN,extent(t){return(0,p.Xx)(t)},inScope:NN,intersect:CL,clampRange:p.BS,pinchDistance:KN,pinchAngle:ZN,screen:EL,containerSize:DL,windowSize:ML,bandspace:cL,setdata:uN,pathShape:bL,panLinear:p.VC,panLog:p.KH,panPow:p.co,panSymlog:p.zy,zoomLinear:p.lL,zoomLog:p.oV,zoomPow:p.SW,zoomSymlog:p.B2,encode:lN,modify:QN,lassoAppend:SL,lassoPath:BL,intersectLasso:zL};const OL=["view","item","group","xy","x","y"],TL="event.vega.",NL="this.",LL={};const PL={forbidden:["_"],allowed:["datum","event","item"],fieldvar:"datum",globalvar:t=>`_[${(0,p.r$)(EN+t)}]`,functions:IL,constants:oO,visitors:LL};const qL=cO(PL);function IL(t){const e=uO(t);OL.forEach((t=>e[t]=TL+t));for(const n in RL){e[n]=NL+n}(0,p.X$)(e,BN(t,RL,LL));return e}function UL(t,e,n){if(arguments.length===1){return RL[t]}RL[t]=e;if(n)LL[t]=n;if(qL)qL.functions[t]=NL+t;return this}UL("bandwidth",fL,CN);UL("copy",dL,CN);UL("domain",hL,CN);UL("range",mL,CN);UL("invert",pL,CN);UL("scale",gL,CN);UL("gradient",yL,CN);UL("geoArea",$N,CN);UL("geoBounds",RN,CN);UL("geoCentroid",ON,CN);UL("geoShape",vL,CN);UL("geoScale",TN,CN);UL("indata",oN,DN);UL("data",aN,MN);UL("treePath",wL,MN);UL("treeAncestors",AL,MN);UL("vlSelectionTest",VT,sN);UL("vlSelectionIdTest",JT,sN);UL("vlSelectionResolve",eN,sN);UL("vlSelectionTuples",tN);function jL(t,e){const n={};let i;try{t=(0,p.Kg)(t)?t:(0,p.r$)(t)+"";i=aO(t)}catch(s){(0,p.z3)("Expression parse error: "+t)}i.visit((t=>{if(t.type!==a$)return;const i=t.callee.name,r=PL.visitors[i];if(r)r(i,t.arguments,e,n)}));const r=qL(i);r.globals.forEach((t=>{const i=EN+t;if(!(0,p.mQ)(n,i)&&e.getSignal(t)){n[i]=e.signalRef(t)}}));return{$expr:(0,p.X$)({code:r.code},e.options.ast?{ast:i}:null),$fields:r.fields,$params:n}}function GL(t){const e=this,n=t.operators||[];if(t.background){e.background=t.background}if(t.eventConfig){e.eventConfig=t.eventConfig}if(t.locale){e.locale=t.locale}n.forEach((t=>e.parseOperator(t)));n.forEach((t=>e.parseOperatorParameters(t)));(t.streams||[]).forEach((t=>e.parseStream(t)));(t.updates||[]).forEach((t=>e.parseUpdate(t)));return e.resolve()}const YL=(0,p.M1)(["rule"]),WL=(0,p.M1)(["group","image","rect"]);function XL(t,e){let n="";if(YL[e])return n;if(t.x2){if(t.x){if(WL[e]){n+="if(o.x>o.x2)$=o.x,o.x=o.x2,o.x2=$;"}n+="o.width=o.x2-o.x;"}else{n+="o.x=o.x2-(o.width||0);"}}if(t.xc){n+="o.x=o.xc-(o.width||0)/2;"}if(t.y2){if(t.y){if(WL[e]){n+="if(o.y>o.y2)$=o.y,o.y=o.y2,o.y2=$;"}n+="o.height=o.y2-o.y;"}else{n+="o.y=o.y2-(o.height||0);"}}if(t.yc){n+="o.y=o.yc-(o.height||0)/2;"}return n}function HL(t){return(t+"").toLowerCase()}function VL(t){return HL(t)==="operator"}function QL(t){return HL(t)==="collect"}function KL(t,e,n){if(!n.endsWith(";")){n="return("+n+");"}const i=Function(...e.concat(n));return t&&t.functions?i.bind(t.functions):i}function ZL(t,e,n,i){return`((u = ${t}) < (v = ${e}) || u == null) && v != null ? ${n}\n : (u > v || v == null) && u != null ? ${i}\n : ((v = v instanceof Date ? +v : v), (u = u instanceof Date ? +u : u)) !== u && v === v ? ${n}\n : v !== v && u === u ? ${i} : `}var JL={operator:(t,e)=>KL(t,["_"],e.code),parameter:(t,e)=>KL(t,["datum","_"],e.code),event:(t,e)=>KL(t,["event"],e.code),handler:(t,e)=>{const n=`var datum=event.item&&event.item.datum;return ${e.code};`;return KL(t,["_","event"],n)},encode:(t,e)=>{const{marktype:n,channels:i}=e;let r="var o=item,datum=o.datum,m=0,$;";for(const s in i){const t="o["+(0,p.r$)(s)+"]";r+=`$=${i[s].code};if(${t}!==$)${t}=$,m=1;`}r+=XL(i,n);r+="return m;";return KL(t,["item","_"],r)},codegen:{get(t){const e=`[${t.map(p.r$).join("][")}]`;const n=Function("_",`return _${e};`);n.path=e;return n},comparator(t,e){let n;const i=(t,i)=>{const r=e[i];let s,a;if(t.path){s=`a${t.path}`;a=`b${t.path}`}else{(n=n||{})["f"+i]=t;s=`this.f${i}(a)`;a=`this.f${i}(b)`}return ZL(s,a,-r,r)};const r=Function("a","b","var u, v; return "+t.map(i).join("")+"0;");return n?r.bind(n):r}}};function tP(t){const e=this;if(VL(t.type)||!t.type){e.operator(t,t.update?e.operatorExpression(t.update):null)}else{e.transform(t,t.type)}}function eP(t){const e=this;if(t.params){const n=e.get(t.id);if(!n)(0,p.z3)("Invalid operator id: "+t.id);e.dataflow.connect(n,n.parameters(e.parseParameters(t.params),t.react,t.initonly))}}function nP(t,e){e=e||{};const n=this;for(const i in t){const r=t[i];e[i]=(0,p.cy)(r)?r.map((t=>iP(t,n,e))):iP(r,n,e)}return e}function iP(t,e,n){if(!t||!(0,p.Gv)(t))return t;for(let i=0,r=rP.length,s;it&&t.$tupleid?yn:t));return e.fn[n]||(e.fn[n]=(0,p.UD)(i,t.$order,e.expr.codegen))}function cP(t,e){const n=t.$encode,i={};for(const r in n){const t=n[r];i[r]=(0,p.sY)(e.encodeExpression(t.$expr),t.$fields);i[r].output=t.$output}return i}function fP(t,e){return e}function dP(t,e){const n=t.$subflow;return function(t,i,r){const s=e.fork().parse(n),a=s.get(n.operators[0].id),o=s.signals.parent;if(o)o.set(r);a.detachSubflow=()=>e.detach(s);return a}}function hP(){return yn}function pP(t){var e=this,n=t.filter!=null?e.eventExpression(t.filter):undefined,i=t.stream!=null?e.get(t.stream):undefined,r;if(t.source){i=e.events(t.source,t.type,n)}else if(t.merge){r=t.merge.map((t=>e.get(t)));i=r[0].merge.apply(r[0],r.slice(1))}if(t.between){r=t.between.map((t=>e.get(t)));i=i.between(r[0],r[1])}if(t.filter){i=i.filter(n)}if(t.throttle!=null){i=i.throttle(+t.throttle)}if(t.debounce!=null){i=i.debounce(+t.debounce)}if(i==null){(0,p.z3)("Invalid stream definition: "+JSON.stringify(t))}if(t.consume)i.consume(true);e.stream(t,i)}function mP(t){var e=this,n=(0,p.Gv)(n=t.source)?n.$ref:n,i=e.get(n),r=null,s=t.update,a=undefined;if(!i)(0,p.z3)("Source not defined: "+t.source);r=t.target&&t.target.$expr?e.eventExpression(t.target.$expr):e.get(t.target);if(s&&s.$expr){if(s.$params){a=e.parseParameters(s.$params)}s=e.handlerExpression(s.$expr)}e.update(t,i,r,s,a)}const gP={skip:true};function yP(t){var e=this,n={};if(t.signals){var i=n.signals={};Object.keys(e.signals).forEach((n=>{const r=e.signals[n];if(t.signals(n,r)){i[n]=r.value}}))}if(t.data){var r=n.data={};Object.keys(e.data).forEach((n=>{const i=e.data[n];if(t.data(n,i)){r[n]=i.input.value}}))}if(e.subcontext&&t.recurse!==false){n.subcontext=e.subcontext.map((e=>e.getState(t)))}return n}function vP(t){var e=this,n=e.dataflow,i=t.data,r=t.signals;Object.keys(r||{}).forEach((t=>{n.update(e.signals[t],r[t],gP)}));Object.keys(i||{}).forEach((t=>{n.pulse(e.data[t].input,n.changeset().remove(p.vN).insert(i[t]))}));(t.subcontext||[]).forEach(((t,n)=>{const i=e.subcontext[n];if(i)i.setState(t)}))}function bP(t,e,n,i){return new xP(t,e,n,i)}function xP(t,e,n,i){this.dataflow=t;this.transforms=e;this.events=t.events.bind(t);this.expr=i||JL,this.signals={};this.scales={};this.nodes={};this.data={};this.fn={};if(n){this.functions=Object.create(n);this.functions.context=this}}function _P(t){this.dataflow=t.dataflow;this.transforms=t.transforms;this.events=t.events;this.expr=t.expr;this.signals=Object.create(t.signals);this.scales=Object.create(t.scales);this.nodes=Object.create(t.nodes);this.data=Object.create(t.data);this.fn=Object.create(t.fn);if(t.functions){this.functions=Object.create(t.functions);this.functions.context=this}}xP.prototype=_P.prototype={fork(){const t=new _P(this);(this.subcontext||(this.subcontext=[])).push(t);return t},detach(t){this.subcontext=this.subcontext.filter((e=>e!==t));const e=Object.keys(t.nodes);for(const n of e)t.nodes[n]._targets=null;for(const n of e)t.nodes[n].detach();t.nodes=null},get(t){return this.nodes[t]},set(t,e){return this.nodes[t]=e},add(t,e){const n=this,i=n.dataflow,r=t.value;n.set(t.id,e);if(QL(t.type)&&r){if(r.$ingest){i.ingest(e,r.$ingest,r.$format)}else if(r.$request){i.preload(e,r.$request,r.$format)}else{i.pulse(e,i.changeset().insert(r))}}if(t.root){n.root=e}if(t.parent){let r=n.get(t.parent.$ref);if(r){i.connect(r,[e]);e.targets().add(r)}else{(n.unresolved=n.unresolved||[]).push((()=>{r=n.get(t.parent.$ref);i.connect(r,[e]);e.targets().add(r)}))}}if(t.signal){n.signals[t.signal]=e}if(t.scale){n.scales[t.scale]=e}if(t.data){for(const i in t.data){const r=n.data[i]||(n.data[i]={});t.data[i].forEach((t=>r[t]=e))}}},resolve(){(this.unresolved||[]).forEach((t=>t()));delete this.unresolved;return this},operator(t,e){this.add(t,this.dataflow.add(t.value,e))},transform(t,e){this.add(t,this.dataflow.add(this.transforms[HL(e)]))},stream(t,e){this.set(t.id,e)},update(t,e,n,i,r){this.dataflow.on(e,n,i,r,t.options)},operatorExpression(t){return this.expr.operator(this,t)},parameterExpression(t){return this.expr.parameter(this,t)},eventExpression(t){return this.expr.event(this,t)},handlerExpression(t){return this.expr.handler(this,t)},encodeExpression(t){return this.expr.encode(this,t)},parse:GL,parseOperator:tP,parseOperatorParameters:eP,parseParameters:nP,parseStream:pP,parseUpdate:mP,getState:yP,setState:vP};function wP(t,e,n){var i=new QE.M4,r=e;if(e==null)return i.restart(t,e,n),i;i._restart=i.restart;i.restart=function(t,e,n){e=+e,n=n==null?(0,QE.tB)():+n;i._restart((function s(a){a+=r;i._restart(s,r+=e,n);t(a)}),e,n)};i.restart(t,e,n);return i}function AP(t){const e=t.container();if(e){e.setAttribute("role","graphics-document");e.setAttribute("aria-roleDescription","visualization");kP(e,t.description())}}function kP(t,e){if(t)e==null?t.removeAttribute("aria-label"):t.setAttribute("aria-label",e)}function EP(t){t.add(null,(e=>{t._background=e.bg;t._resize=1;return e.bg}),{bg:t._signals.background})}const MP="default";function DP(t){const e=t._signals.cursor||(t._signals.cursor=t.add({user:MP,item:null}));t.on(t.events("view","pointermove"),e,((t,n)=>{const i=e.value,r=i?(0,p.Kg)(i)?i:i.user:MP,s=n.item&&n.item.cursor||null;return i&&r===i.user&&s==i.item?i:{user:r,item:s}}));t.add(null,(function(e){let n=e.cursor,i=this.value;if(!(0,p.Kg)(n)){i=n.item;n=n.user}CP(t,n&&n!==MP?n:i||n);return i}),{cursor:e})}function CP(t,e){const n=t.globalCursor()?typeof document!=="undefined"&&document.body:t.container();if(n){return e==null?n.style.removeProperty("cursor"):n.style.cursor=e}}function FP(t,e){var n=t._runtime.data;if(!(0,p.mQ)(n,e)){(0,p.z3)("Unrecognized data set: "+e)}return n[e]}function SP(t,e){return arguments.length<2?FP(this,t).values.value:BP.call(this,t,En().remove(p.vN).insert(e))}function BP(t,e){if(!kn(e)){(0,p.z3)("Second argument to changes must be a changeset.")}const n=FP(this,t);n.modified=true;return this.pulse(n.input,e)}function zP(t,e){return BP.call(this,t,En().insert(e))}function $P(t,e){return BP.call(this,t,En().remove(e))}function RP(t){var e=t.padding();return Math.max(0,t._viewWidth+e.left+e.right)}function OP(t){var e=t.padding();return Math.max(0,t._viewHeight+e.top+e.bottom)}function TP(t){var e=t.padding(),n=t._origin;return[e.left+n[0],e.top+n[1]]}function NP(t){var e=TP(t),n=RP(t),i=OP(t);t._renderer.background(t.background());t._renderer.resize(n,i,e);t._handler.origin(e);t._resizeListeners.forEach((e=>{try{e(n,i)}catch(r){t.error(r)}}))}function LP(t,e,n){var i=t._renderer,r=i&&i.canvas(),s,a,o;if(r){o=TP(t);a=e.changedTouches?e.changedTouches[0]:e;s=fm(a,r);s[0]-=o[0];s[1]-=o[1]}e.dataflow=t;e.item=n;e.vega=PP(t,n,s);return e}function PP(t,e,n){const i=e?e.mark.marktype==="group"?e:e.mark.group:null;function r(t){var n=i,r;if(t)for(r=e;r;r=r.mark.group){if(r.mark.name===t){n=r;break}}return n&&n.mark&&n.mark.interactive?n:{}}function s(t){if(!t)return n;if((0,p.Kg)(t))t=r(t);const e=n.slice();while(t){e[0]-=t.x||0;e[1]-=t.y||0;t=t.mark&&t.mark.group}return e}return{view:(0,p.dY)(t),item:(0,p.dY)(e||{}),group:r,xy:s,x:t=>s(t)[0],y:t=>s(t)[1]}}const qP="view",IP="timer",UP="window",jP={trap:false};function GP(t){const e=(0,p.X$)({defaults:{}},t);const n=(t,e)=>{e.forEach((e=>{if((0,p.cy)(t[e]))t[e]=(0,p.M1)(t[e])}))};n(e.defaults,["prevent","allow"]);n(e,["view","window","selector"]);return e}function YP(t,e,n,i){t._eventListeners.push({type:n,sources:(0,p.YO)(e),handler:i})}function WP(t,e){var n=t._eventConfig.defaults,i=n.prevent,r=n.allow;return i===false||r===true?false:i===true||r===false?true:i?i[e]:r?!r[e]:t.preventDefault()}function XP(t,e,n){const i=t._eventConfig&&t._eventConfig[e];if(i===false||(0,p.Gv)(i)&&!i[n]){t.warn(`Blocked ${e} ${n} event listener.`);return false}return true}function HP(t,e,n){var i=this,r=new Ln(n),s=function(n,s){i.runAsync(null,(()=>{if(t===qP&&WP(i,e)){n.preventDefault()}r.receive(LP(i,n,s))}))},a;if(t===IP){if(XP(i,"timer",e)){i.timer(s,e)}}else if(t===qP){if(XP(i,"view",e)){i.addEventListener(e,s,jP)}}else{if(t===UP){if(XP(i,"window",e)&&typeof window!=="undefined"){a=[window]}}else if(typeof document!=="undefined"){if(XP(i,"selector",e)){a=Array.from(document.querySelectorAll(t))}}if(!a){i.warn("Can not resolve event source: "+t)}else{for(var o=0,u=a.length;o=0){e[r].stop()}r=i.length;while(--r>=0){a=i[r];s=a.sources.length;while(--s>=0){a.sources[s].removeEventListener(a.type,a.handler)}}if(t){t.call(this,this._handler,null,null,null)}r=n.length;while(--r>=0){u=n[r].type;o=n[r].handler;this._handler.off(u,o)}return this}function tq(t,e,n){const i=document.createElement(t);for(const r in e)i.setAttribute(r,e[r]);if(n!=null)i.textContent=n;return i}const eq="vega-bind",nq="vega-bind-name",iq="vega-bind-radio";function rq(t,e,n){if(!e)return;const i=n.param;let r=n.state;if(!r){r=n.state={elements:null,active:false,set:null,update:e=>{if(e!=t.signal(i.signal)){t.runAsync(null,(()=>{r.source=true;t.signal(i.signal,e)}))}}};if(i.debounce){r.update=(0,p.sg)(i.debounce,r.update)}}const s=i.input==null&&i.element?sq:oq;s(r,e,i,t);if(!r.active){t.on(t._signals[i.signal],null,(()=>{r.source?r.source=false:r.set(t.signal(i.signal))}));r.active=true}return r}function sq(t,e,n,i){const r=n.event||"input";const s=()=>t.update(e.value);i.signal(n.signal,e.value);e.addEventListener(r,s);YP(i,e,r,s);t.set=t=>{e.value=t;e.dispatchEvent(aq(r))}}function aq(t){return typeof Event!=="undefined"?new Event(t):{type:t}}function oq(t,e,n,i){const r=i.signal(n.signal);const s=tq("div",{class:eq});const a=n.input==="radio"?s:s.appendChild(tq("label"));a.appendChild(tq("span",{class:nq},n.name||n.signal));e.appendChild(s);let o=uq;switch(n.input){case"checkbox":o=lq;break;case"select":o=cq;break;case"radio":o=fq;break;case"range":o=dq;break}o(t,a,n,r)}function uq(t,e,n,i){const r=tq("input");for(const s in n){if(s!=="signal"&&s!=="element"){r.setAttribute(s==="input"?"type":s,n[s])}}r.setAttribute("name",n.signal);r.value=i;e.appendChild(r);r.addEventListener("input",(()=>t.update(r.value)));t.elements=[r];t.set=t=>r.value=t}function lq(t,e,n,i){const r={type:"checkbox",name:n.signal};if(i)r.checked=true;const s=tq("input",r);e.appendChild(s);s.addEventListener("change",(()=>t.update(s.checked)));t.elements=[s];t.set=t=>s.checked=!!t||null}function cq(t,e,n,i){const r=tq("select",{name:n.signal}),s=n.labels||[];n.options.forEach(((t,e)=>{const n={value:t};if(hq(t,i))n.selected=true;r.appendChild(tq("option",n,(s[e]||t)+""))}));e.appendChild(r);r.addEventListener("change",(()=>{t.update(n.options[r.selectedIndex])}));t.elements=[r];t.set=t=>{for(let e=0,i=n.options.length;e{const o={type:"radio",name:n.signal,value:e};if(hq(e,i))o.checked=true;const u=tq("input",o);u.addEventListener("change",(()=>t.update(e)));const l=tq("label",{},(s[a]||e)+"");l.prepend(u);r.appendChild(l);return u}));t.set=e=>{const n=t.elements,i=n.length;for(let t=0;t{u.textContent=o.value;t.update(+o.value)};o.addEventListener("input",l);o.addEventListener("change",l);t.elements=[o];t.set=t=>{o.value=t;u.textContent=t}}function hq(t,e){return t===e||t+""===e+""}function pq(t,e,n,i,r,s){e=e||new i(t.loader());return e.initialize(n,RP(t),OP(t),TP(t),r,s).background(t.background())}function mq(t,e){return!e?null:function(){try{e.apply(this,arguments)}catch(n){t.error(n)}}}function gq(t,e,n,i){const r=new i(t.loader(),mq(t,t.tooltip())).scene(t.scenegraph().root).initialize(n,TP(t),t);if(e){e.handlers().forEach((t=>{r.on(t.type,t.handler)}))}return r}function yq(t,e){const n=this,i=n._renderType,r=n._eventConfig.bind,s=ly(i);t=n._el=t?vq(n,t,true):null;AP(n);if(!s)n.error("Unrecognized renderer type: "+i);const a=s.handler||jm,o=t?s.renderer:s.headless;n._renderer=!o?null:pq(n,n._renderer,t,o);n._handler=gq(n,n._handler,t,a);n._redraw=true;if(t&&r!=="none"){e=e?n._elBind=vq(n,e,true):t.appendChild(tq("form",{class:"vega-bindings"}));n._bind.forEach((t=>{if(t.param.element&&r!=="container"){t.element=vq(n,t.param.element,!!t.param.input)}}));n._bind.forEach((t=>{rq(n,t.element||e,t)}))}return n}function vq(t,e,n){if(typeof e==="string"){if(typeof document!=="undefined"){e=document.querySelector(e);if(!e){t.error("Signal bind element not found: "+e);return null}}else{t.error("DOM document instance not found.");return null}}if(e&&n){try{e.textContent=""}catch(i){e=null;t.error(i)}}return e}const bq=t=>+t||0;const xq=t=>({top:t,bottom:t,left:t,right:t});function _q(t){return(0,p.Gv)(t)?{top:bq(t.top),bottom:bq(t.bottom),left:bq(t.left),right:bq(t.right)}:xq(bq(t))}async function wq(t,e,n,i){const r=ly(e),s=r&&r.headless;if(!s)(0,p.z3)("Unrecognized renderer type: "+e);await t.runAsync();return pq(t,null,null,s,n,i).renderAsync(t._scenegraph.root)}async function Aq(t,e){if(t!==oy.Canvas&&t!==oy.SVG&&t!==oy.PNG){(0,p.z3)("Unrecognized image type: "+t)}const n=await wq(this,t,e);return t===oy.SVG?kq(n.svg(),"image/svg+xml"):n.canvas().toDataURL("image/png")}function kq(t,e){const n=new Blob([t],{type:e});return window.URL.createObjectURL(n)}async function Eq(t,e){const n=await wq(this,oy.Canvas,t,e);return n.canvas()}async function Mq(t){const e=await wq(this,oy.SVG,t);return e.svg()}function Dq(t,e,n){return bP(t,$i,RL,n).parse(e)}function Cq(t){var e=this._runtime.scales;if(!(0,p.mQ)(e,t)){(0,p.z3)("Unrecognized scale or projection: "+t)}return e[t].value}var Fq="width",Sq="height",Bq="padding",zq={skip:true};function $q(t,e){var n=t.autosize(),i=t.padding();return e-(n&&n.contains===Bq?i.left+i.right:0)}function Rq(t,e){var n=t.autosize(),i=t.padding();return e-(n&&n.contains===Bq?i.top+i.bottom:0)}function Oq(t){var e=t._signals,n=e[Fq],i=e[Sq],r=e[Bq];function s(){t._autosize=t._resize=1}t._resizeWidth=t.add(null,(e=>{t._width=e.size;t._viewWidth=$q(t,e.size);s()}),{size:n});t._resizeHeight=t.add(null,(e=>{t._height=e.size;t._viewHeight=Rq(t,e.size);s()}),{size:i});const a=t.add(null,s,{pad:r});t._resizeWidth.rank=n.rank+1;t._resizeHeight.rank=i.rank+1;a.rank=r.rank+1}function Tq(t,e,n,i,r,s){this.runAfter((a=>{let o=0;a._autosize=0;if(a.width()!==n){o=1;a.signal(Fq,n,zq);a._resizeWidth.skip(true)}if(a.height()!==i){o=1;a.signal(Sq,i,zq);a._resizeHeight.skip(true)}if(a._viewWidth!==t){a._resize=1;a._viewWidth=t}if(a._viewHeight!==e){a._resize=1;a._viewHeight=e}if(a._origin[0]!==r[0]||a._origin[1]!==r[1]){a._resize=1;a._origin=r}if(o)a.run("enter");if(s)a.runAfter((t=>t.resize()))}),false,1)}function Nq(t){return this._runtime.getState(t||{data:Lq,signals:Pq,recurse:true})}function Lq(t,e){return e.modified&&(0,p.cy)(e.input.value)&&!t.startsWith("_:vega:_")}function Pq(t,e){return!(t==="parent"||e instanceof $i.proxy)}function qq(t){this.runAsync(null,(e=>{e._trigger=false;e._runtime.setState(t)}),(t=>{t._trigger=true}));return this}function Iq(t,e){function n(e){t({timestamp:Date.now(),elapsed:e})}this._timers.push(wP(n,e))}function Uq(t,e,n,i){const r=t.element();if(r)r.setAttribute("title",jq(i))}function jq(t){return t==null?"":(0,p.cy)(t)?Yq(t):(0,p.Gv)(t)&&!(0,p.$P)(t)?Gq(t):t+""}function Gq(t){return Object.keys(t).map((e=>{const n=t[e];return e+": "+((0,p.cy)(n)?Yq(n):Wq(n))})).join("\n")}function Yq(t){return"["+t.map(Wq).join(", ")+"]"}function Wq(t){return(0,p.cy)(t)?"[…]":(0,p.Gv)(t)&&!(0,p.$P)(t)?"{…}":t}function Xq(){if(this.renderer()==="canvas"&&this._renderer._canvas){let t=null;const e=()=>{if(t!=null){t()}const n=matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`);n.addEventListener("change",e);t=()=>{n.removeEventListener("change",e)};this._renderer._canvas.getContext("2d").pixelRatio=window.devicePixelRatio||1;this._redraw=true;this._resize=1;this.resize().runAsync()};e()}}function Hq(t,e){const n=this;e=e||{};Si.call(n);if(e.loader)n.loader(e.loader);if(e.logger)n.logger(e.logger);if(e.logLevel!=null)n.logLevel(e.logLevel);if(e.locale||t.locale){const i=(0,p.X$)({},t.locale,e.locale);n.locale(Ce(i.number,i.time))}n._el=null;n._elBind=null;n._renderType=e.renderer||oy.Canvas;n._scenegraph=new rm;const i=n._scenegraph.root;n._renderer=null;n._tooltip=e.tooltip||Uq,n._redraw=true;n._handler=(new jm).scene(i);n._globalCursor=false;n._preventDefault=false;n._timers=[];n._eventListeners=[];n._resizeListeners=[];n._eventConfig=GP(t.eventConfig);n.globalCursor(n._eventConfig.globalCursor);const r=Dq(n,t,e.expr);n._runtime=r;n._signals=r.signals;n._bind=(t.bindings||[]).map((t=>({state:null,param:(0,p.X$)({},t)})));if(r.root)r.root.set(i);i.source=r.data.root.input;n.pulse(r.data.root.input,n.changeset().insert(i.items));n._width=n.width();n._height=n.height();n._viewWidth=$q(n,n._width);n._viewHeight=Rq(n,n._height);n._origin=[0,0];n._resize=0;n._autosize=1;Oq(n);EP(n);DP(n);n.description(t.description);if(e.hover)n.hover();if(e.container)n.initialize(e.container,e.bind);if(e.watchPixelRatio)n._watchPixelRatio()}function Vq(t,e){return(0,p.mQ)(t._signals,e)?t._signals[e]:(0,p.z3)("Unrecognized signal name: "+(0,p.r$)(e))}function Qq(t,e){const n=(t._targets||[]).filter((t=>t._update&&t._update.handler===e));return n.length?n[0]:null}function Kq(t,e,n,i){let r=Qq(n,i);if(!r){r=mq(t,(()=>i(e,n.value)));r.handler=i;t.on(n,null,r)}return t}function Zq(t,e,n){const i=Qq(e,n);if(i)e._targets.remove(i);return t}(0,p.B)(Hq,Si,{async evaluate(t,e,n){await Si.prototype.evaluate.call(this,t,e);if(this._redraw||this._resize){try{if(this._renderer){if(this._resize){this._resize=0;NP(this)}await this._renderer.renderAsync(this._scenegraph.root)}this._redraw=false}catch(i){this.error(i)}}if(n)hn(this,n);return this},dirty(t){this._redraw=true;this._renderer&&this._renderer.dirty(t)},description(t){if(arguments.length){const e=t!=null?t+"":null;if(e!==this._desc)kP(this._el,this._desc=e);return this}return this._desc},container(){return this._el},scenegraph(){return this._scenegraph},origin(){return this._origin.slice()},signal(t,e,n){const i=Vq(this,t);return arguments.length===1?i.value:this.update(i,e,n)},width(t){return arguments.length?this.signal("width",t):this.signal("width")},height(t){return arguments.length?this.signal("height",t):this.signal("height")},padding(t){return arguments.length?this.signal("padding",_q(t)):_q(this.signal("padding"))},autosize(t){return arguments.length?this.signal("autosize",t):this.signal("autosize")},background(t){return arguments.length?this.signal("background",t):this.signal("background")},renderer(t){if(!arguments.length)return this._renderType;if(!ly(t))(0,p.z3)("Unrecognized renderer type: "+t);if(t!==this._renderType){this._renderType=t;this._resetRenderer()}return this},tooltip(t){if(!arguments.length)return this._tooltip;if(t!==this._tooltip){this._tooltip=t;this._resetRenderer()}return this},loader(t){if(!arguments.length)return this._loader;if(t!==this._loader){Si.prototype.loader.call(this,t);this._resetRenderer()}return this},resize(){this._autosize=1;return this.touch(Vq(this,"autosize"))},_resetRenderer(){if(this._renderer){this._renderer=null;this.initialize(this._el,this._elBind)}},_resizeView:Tq,addEventListener(t,e,n){let i=e;if(!(n&&n.trap===false)){i=mq(this,e);i.raw=e}this._handler.on(t,i);return this},removeEventListener(t,e){var n=this._handler.handlers(t),i=n.length,r,s;while(--i>=0){s=n[i].type;r=n[i].handler;if(t===s&&(e===r||e===r.raw)){this._handler.off(s,r);break}}return this},addResizeListener(t){const e=this._resizeListeners;if(!e.includes(t)){e.push(t)}return this},removeResizeListener(t){var e=this._resizeListeners,n=e.indexOf(t);if(n>=0){e.splice(n,1)}return this},addSignalListener(t,e){return Kq(this,t,Vq(this,t),e)},removeSignalListener(t,e){return Zq(this,Vq(this,t),e)},addDataListener(t,e){return Kq(this,t,FP(this,t).values,e)},removeDataListener(t,e){return Zq(this,FP(this,t).values,e)},globalCursor(t){if(arguments.length){if(this._globalCursor!==!!t){const e=CP(this,null);this._globalCursor=!!t;if(e)CP(this,e)}return this}else{return this._globalCursor}},preventDefault(t){if(arguments.length){this._preventDefault=t;return this}else{return this._preventDefault}},timer:Iq,events:HP,finalize:JP,hover:ZP,data:SP,change:BP,insert:zP,remove:$P,scale:Cq,initialize:yq,toImageURL:Aq,toCanvas:Eq,toSVG:Mq,getState:Nq,setState:qq,_watchPixelRatio:Xq});var Jq=n(45948);function tI(t){return(0,p.Gv)(t)?t:{type:t||"pad"}}const eI=t=>+t||0;const nI=t=>({top:t,bottom:t,left:t,right:t});function iI(t){return!(0,p.Gv)(t)?nI(eI(t)):t.signal?t:{top:eI(t.top),bottom:eI(t.bottom),left:eI(t.left),right:eI(t.right)}}const rI=t=>(0,p.Gv)(t)&&!(0,p.cy)(t)?(0,p.X$)({},t):{value:t};function sI(t,e,n,i){if(n!=null){const r=(0,p.Gv)(n)&&!(0,p.cy)(n)||(0,p.cy)(n)&&n.length&&(0,p.Gv)(n[0]);if(r){t.update[e]=n}else{t[i||"enter"][e]={value:n}}return 1}else{return 0}}function aI(t,e,n){for(const i in e){sI(t,i,e[i])}for(const i in n){sI(t,i,n[i],"update")}}function oI(t,e,n){for(const i in e){if(n&&(0,p.mQ)(n,i))continue;t[i]=(0,p.X$)(t[i]||{},e[i])}return t}function uI(t,e){return e&&(e.enter&&e.enter[t]||e.update&&e.update[t])}const lI="mark";const cI="frame";const fI="scope";const dI="axis";const hI="axis-domain";const pI="axis-grid";const mI="axis-label";const gI="axis-tick";const yI="axis-title";const vI="legend";const bI="legend-band";const xI="legend-entry";const _I="legend-gradient";const wI="legend-label";const AI="legend-symbol";const kI="legend-title";const EI="title";const MI="title-text";const DI="title-subtitle";function CI(t,e,n,i,r){const s={},a={};let o,u,l,c;u="lineBreak";if(e==="text"&&r[u]!=null&&!uI(u,t)){FI(s,u,r[u])}if(n=="legend"||String(n).startsWith("axis")){n=null}c=n===cI?r.group:n===lI?(0,p.X$)({},r.mark,r[e]):null;for(u in c){l=uI(u,t)||(u==="fill"||u==="stroke")&&(uI("fill",t)||uI("stroke",t));if(!l)FI(s,u,c[u])}(0,p.YO)(i).forEach((e=>{const n=r.style&&r.style[e];for(const i in n){if(!uI(i,t)){FI(s,i,n[i])}}}));t=(0,p.X$)({},t);for(u in s){c=s[u];if(c.signal){(o=o||{})[u]=c}else{a[u]=c}}t.enter=(0,p.X$)(a,t.enter);if(o)t.update=(0,p.X$)(o,t.update);return t}function FI(t,e,n){t[e]=n&&n.signal?{signal:n.signal}:{value:n}}const SI=t=>(0,p.Kg)(t)?(0,p.r$)(t):t.signal?`(${t.signal})`:TI(t);function BI(t){if(t.gradient!=null){return RI(t)}let e=t.signal?`(${t.signal})`:t.color?$I(t.color):t.field!=null?TI(t.field):t.value!==undefined?(0,p.r$)(t.value):undefined;if(t.scale!=null){e=LI(t,e)}if(e===undefined){e=null}if(t.exponent!=null){e=`pow(${e},${OI(t.exponent)})`}if(t.mult!=null){e+=`*${OI(t.mult)}`}if(t.offset!=null){e+=`+${OI(t.offset)}`}if(t.round){e=`round(${e})`}return e}const zI=(t,e,n,i)=>`(${t}(${[e,n,i].map(BI).join(",")})+'')`;function $I(t){return t.c?zI("hcl",t.h,t.c,t.l):t.h||t.s?zI("hsl",t.h,t.s,t.l):t.l||t.a?zI("lab",t.l,t.a,t.b):t.r||t.g||t.b?zI("rgb",t.r,t.g,t.b):null}function RI(t){const e=[t.start,t.stop,t.count].map((t=>t==null?null:(0,p.r$)(t)));while(e.length&&(0,p.se)(e)==null)e.pop();e.unshift(SI(t.gradient));return`gradient(${e.join(",")})`}function OI(t){return(0,p.Gv)(t)?"("+BI(t)+")":t}function TI(t){return NI((0,p.Gv)(t)?t:{datum:t})}function NI(t){let e,n,i;if(t.signal){e="datum";i=t.signal}else if(t.group||t.parent){n=Math.max(1,t.level||1);e="item";while(n-- >0){e+=".mark.group"}if(t.parent){i=t.parent;e+=".datum"}else{i=t.group}}else if(t.datum){e="datum";i=t.datum}else{(0,p.z3)("Invalid field reference: "+(0,p.r$)(t))}if(!t.signal){i=(0,p.Kg)(i)?(0,p.iv)(i).map(p.r$).join("]["):NI(i)}return e+"["+i+"]"}function LI(t,e){const n=SI(t.scale);if(t.range!=null){e=`lerp(_range(${n}), ${+t.range})`}else{if(e!==undefined)e=`_scale(${n}, ${e})`;if(t.band){e=(e?e+"+":"")+`_bandwidth(${n})`+(+t.band===1?"":"*"+OI(t.band));if(t.extra){e=`(datum.extra ? _scale(${n}, datum.extra.value) : ${e})`}}if(e==null)e="0"}return e}function PI(t){let e="";t.forEach((t=>{const n=BI(t);e+=t.test?`(${t.test})?${n}:`:n}));if((0,p.se)(e)===":"){e+="null"}return e}function qI(t,e,n,i,r,s){const a={};s=s||{};s.encoders={$encode:a};t=CI(t,e,n,i,r.config);for(const o in t){a[o]=II(t[o],e,s,r)}return s}function II(t,e,n,i){const r={},s={};for(const a in t){if(t[a]!=null){r[a]=jI(UI(t[a]),i,n,s)}}return{$expr:{marktype:e,channels:r},$fields:Object.keys(s),$output:Object.keys(t)}}function UI(t){return(0,p.cy)(t)?PI(t):BI(t)}function jI(t,e,n,i){const r=jL(t,e);r.$fields.forEach((t=>i[t]=1));(0,p.X$)(n,r.$params);return r.$expr}const GI="outer",YI=["value","update","init","react","bind"];function WI(t,e){(0,p.z3)(t+' for "outer" push: '+(0,p.r$)(e))}function XI(t,e){const n=t.name;if(t.push===GI){if(!e.signals[n])WI("No prior signal definition",n);YI.forEach((e=>{if(t[e]!==undefined)WI("Invalid property ",e)}))}else{const i=e.addSignal(n,t.value);if(t.react===false)i.react=false;if(t.bind)e.addBinding(n,t.bind)}}function HI(t,e,n,i){this.id=-1;this.type=t;this.value=e;this.params=n;if(i)this.parent=i}function VI(t,e,n,i){return new HI(t,e,n,i)}function QI(t,e){return VI("operator",t,e)}function KI(t){const e={$ref:t.id};if(t.id<0)(t.refs=t.refs||[]).push(e);return e}function ZI(t,e){return e?{$field:t,$name:e}:{$field:t}}const JI=ZI("key");function tU(t,e){return{$compare:t,$order:e}}function eU(t,e){const n={$key:t};if(e)n.$flat=true;return n}const nU="ascending";const iU="descending";function rU(t){return!(0,p.Gv)(t)?"":(t.order===iU?"-":"+")+sU(t.op,t.field)}function sU(t,e){return(t&&t.signal?"$"+t.signal:t||"")+(t&&e?"_":"")+(e&&e.signal?"$"+e.signal:e||"")}const aU="scope";const oU="view";function uU(t){return t&&t.signal}function lU(t){return t&&t.expr}function cU(t){if(uU(t))return true;if((0,p.Gv)(t))for(const e in t){if(cU(t[e]))return true}return false}function fU(t,e){return t!=null?t:e}function dU(t){return t&&t.signal||t}const hU="timer";function pU(t,e){const n=t.merge?gU:t.stream?yU:t.type?vU:(0,p.z3)("Invalid stream specification: "+(0,p.r$)(t));return n(t,e)}function mU(t){return t===aU?oU:t||oU}function gU(t,e){const n=t.merge.map((t=>pU(t,e))),i=bU({merge:n},t,e);return e.addStream(i).id}function yU(t,e){const n=pU(t.stream,e),i=bU({stream:n},t,e);return e.addStream(i).id}function vU(t,e){let n;if(t.type===hU){n=e.event(hU,t.throttle);t={between:t.between,filter:t.filter}}else{n=e.event(mU(t.source),t.type)}const i=bU({stream:n},t,e);return Object.keys(i).length===1?n:e.addStream(i).id}function bU(t,e,n){let i=e.between;if(i){if(i.length!==2){(0,p.z3)('Stream "between" parameter must have 2 entries: '+(0,p.r$)(e))}t.between=[pU(i[0],n),pU(i[1],n)]}i=e.filter?[].concat(e.filter):[];if(e.marktype||e.markname||e.markrole){i.push(xU(e.marktype,e.markname,e.markrole))}if(e.source===aU){i.push("inScope(event.item)")}if(i.length){t.filter=jL("("+i.join(")&&(")+")",n).$expr}if((i=e.throttle)!=null){t.throttle=+i}if((i=e.debounce)!=null){t.debounce=+i}if(e.consume){t.consume=true}return t}function xU(t,e,n){const i="event.item";return i+(t&&t!=="*"?"&&"+i+".mark.marktype==='"+t+"'":"")+(n?"&&"+i+".mark.role==='"+n+"'":"")+(e?"&&"+i+".mark.name==='"+e+"'":"")}const _U={code:"_.$value",ast:{type:"Identifier",value:"value"}};function wU(t,e,n){const i=t.encode,r={target:n};let s=t.events,a=t.update,o=[];if(!s){(0,p.z3)("Signal update missing events specification.")}if((0,p.Kg)(s)){s=(0,Jq.P)(s,e.isSubscope()?aU:oU)}s=(0,p.YO)(s).filter((t=>t.signal||t.scale?(o.push(t),0):1));if(o.length>1){o=[kU(o)]}if(s.length){o.push(s.length>1?{merge:s}:s[0])}if(i!=null){if(a)(0,p.z3)("Signal encode and update are mutually exclusive.");a="encode(item(),"+(0,p.r$)(i)+")"}r.update=(0,p.Kg)(a)?jL(a,e):a.expr!=null?jL(a.expr,e):a.value!=null?a.value:a.signal!=null?{$expr:_U,$params:{$value:e.signalRef(a.signal)}}:(0,p.z3)("Invalid signal update specification.");if(t.force){r.options={force:true}}o.forEach((t=>e.addUpdate((0,p.X$)(AU(t,e),r))))}function AU(t,e){return{source:t.signal?e.signalRef(t.signal):t.scale?e.scaleRef(t.scale):pU(t,e)}}function kU(t){return{signal:"["+t.map((t=>t.scale?'scale("'+t.scale+'")':t.signal))+"]"}}function EU(t,e){const n=e.getSignal(t.name);let i=t.update;if(t.init){if(i){(0,p.z3)("Signals can not include both init and update expressions.")}else{i=t.init;n.initonly=true}}if(i){i=jL(i,e);n.update=i.$expr;n.params=i.$params}if(t.on){t.on.forEach((t=>wU(t,e,n.id)))}}const MU=t=>(e,n,i)=>VI(t,n,e||undefined,i);const DU=MU("aggregate");const CU=MU("axisticks");const FU=MU("bound");const SU=MU("collect");const BU=MU("compare");const zU=MU("datajoin");const $U=MU("encode");const RU=MU("expression");const OU=MU("facet");const TU=MU("field");const NU=MU("key");const LU=MU("legendentries");const PU=MU("load");const qU=MU("mark");const IU=MU("multiextent");const UU=MU("multivalues");const jU=MU("overlap");const GU=MU("params");const YU=MU("prefacet");const WU=MU("projection");const XU=MU("proxy");const HU=MU("relay");const VU=MU("render");const QU=MU("scale");const KU=MU("sieve");const ZU=MU("sortitems");const JU=MU("viewlayout");const tj=MU("values");let ej=0;const nj={min:"min",max:"max",count:"sum"};function ij(t,e){const n=t.type||"linear";if(!Wl(n)){(0,p.z3)("Unrecognized scale type: "+(0,p.r$)(n))}e.addScale(t.name,{type:n,domain:undefined})}function rj(t,e){const n=e.getScale(t.name).params;let i;n.domain=uj(t.domain,t,e);if(t.range!=null){n.range=xj(t,e,n)}if(t.interpolate!=null){bj(t.interpolate,n)}if(t.nice!=null){n.nice=vj(t.nice,e)}if(t.bins!=null){n.bins=yj(t.bins,e)}for(i in t){if((0,p.mQ)(n,i)||i==="name")continue;n[i]=sj(t[i],e)}}function sj(t,e){return!(0,p.Gv)(t)?t:t.signal?e.signalRef(t.signal):(0,p.z3)("Unsupported object: "+(0,p.r$)(t))}function aj(t,e){return t.signal?e.signalRef(t.signal):t.map((t=>sj(t,e)))}function oj(t){(0,p.z3)("Can not find data set: "+(0,p.r$)(t))}function uj(t,e,n){if(!t){if(e.domainMin!=null||e.domainMax!=null){(0,p.z3)("No scale domain defined for domainMin/domainMax to override.")}return}return t.signal?n.signalRef(t.signal):((0,p.cy)(t)?lj:t.fields?fj:cj)(t,e,n)}function lj(t,e,n){return t.map((t=>sj(t,n)))}function cj(t,e,n){const i=n.getData(t.data);if(!i)oj(t.data);return Vl(e.type)?i.valuesRef(n,t.field,pj(t.sort,false)):tc(e.type)?i.domainRef(n,t.field):i.extentRef(n,t.field)}function fj(t,e,n){const i=t.data,r=t.fields.reduce(((t,e)=>{e=(0,p.Kg)(e)?{data:i,field:e}:(0,p.cy)(e)||e.signal?dj(e,n):e;t.push(e);return t}),[]);return(Vl(e.type)?hj:tc(e.type)?mj:gj)(t,n,r)}function dj(t,e){const n="_:vega:_"+ej++,i=SU({});if((0,p.cy)(t)){i.value={$ingest:t}}else if(t.signal){const r="setdata("+(0,p.r$)(n)+","+t.signal+")";i.params.input=e.signalRef(r)}e.addDataPipeline(n,[i,KU({})]);return{data:n,field:"data"}}function hj(t,e,n){const i=pj(t.sort,true);let r,s;const a=n.map((t=>{const n=e.getData(t.data);if(!n)oj(t.data);return n.countsRef(e,t.field,i)}));const o={groupby:JI,pulse:a};if(i){r=i.op||"count";s=i.field?sU(r,i.field):"count";o.ops=[nj[r]];o.fields=[e.fieldRef(s)];o.as=[s]}r=e.add(DU(o));const u=e.add(SU({pulse:KI(r)}));s=e.add(tj({field:JI,sort:e.sortRef(i),pulse:KI(u)}));return KI(s)}function pj(t,e){if(t){if(!t.field&&!t.op){if((0,p.Gv)(t))t.field="key";else t={field:"key"}}else if(!t.field&&t.op!=="count"){(0,p.z3)("No field provided for sort aggregate op: "+t.op)}else if(e&&t.field){if(t.op&&!nj[t.op]){(0,p.z3)("Multiple domain scales can not be sorted using "+t.op)}}}return t}function mj(t,e,n){const i=n.map((t=>{const n=e.getData(t.data);if(!n)oj(t.data);return n.domainRef(e,t.field)}));return KI(e.add(UU({values:i})))}function gj(t,e,n){const i=n.map((t=>{const n=e.getData(t.data);if(!n)oj(t.data);return n.extentRef(e,t.field)}));return KI(e.add(IU({extents:i})))}function yj(t,e){return t.signal||(0,p.cy)(t)?aj(t,e):e.objectProperty(t)}function vj(t,e){return t.signal?e.signalRef(t.signal):(0,p.Gv)(t)?{interval:sj(t.interval),step:sj(t.step)}:sj(t)}function bj(t,e){e.interpolate=sj(t.type||t);if(t.gamma!=null){e.interpolateGamma=sj(t.gamma)}}function xj(t,e,n){const i=e.config.range;let r=t.range;if(r.signal){return e.signalRef(r.signal)}else if((0,p.Kg)(r)){if(i&&(0,p.mQ)(i,r)){t=(0,p.X$)({},t,{range:i[r]});return xj(t,e,n)}else if(r==="width"){r=[0,{signal:"width"}]}else if(r==="height"){r=Vl(t.type)?[0,{signal:"height"}]:[{signal:"height"},0]}else{(0,p.z3)("Unrecognized scale range value: "+(0,p.r$)(r))}}else if(r.scheme){n.scheme=(0,p.cy)(r.scheme)?aj(r.scheme,e):sj(r.scheme,e);if(r.extent)n.schemeExtent=aj(r.extent,e);if(r.count)n.schemeCount=sj(r.count,e);return}else if(r.step){n.rangeStep=sj(r.step,e);return}else if(Vl(t.type)&&!(0,p.cy)(r)){return uj(r,t,e)}else if(!(0,p.cy)(r)){(0,p.z3)("Unsupported range type: "+(0,p.r$)(r))}return r.map((t=>((0,p.cy)(t)?aj:sj)(t,e)))}function _j(t,e){const n=e.config.projection||{},i={};for(const r in t){if(r==="name")continue;i[r]=wj(t[r],r,e)}for(const r in n){if(i[r]==null){i[r]=wj(n[r],r,e)}}e.addProjection(t.name,i)}function wj(t,e,n){return(0,p.cy)(t)?t.map((t=>wj(t,e,n))):!(0,p.Gv)(t)?t:t.signal?n.signalRef(t.signal):e==="fit"?t:(0,p.z3)("Unsupported parameter object: "+(0,p.r$)(t))}const Aj="top";const kj="left";const Ej="right";const Mj="bottom";const Dj="center";const Cj="vertical";const Fj="start";const Sj="middle";const Bj="end";const zj="index";const $j="label";const Rj="offset";const Oj="perc";const Tj="perc2";const Nj="value";const Lj="guide-label";const Pj="guide-title";const qj="group-title";const Ij="group-subtitle";const Uj="symbol";const jj="gradient";const Gj="discrete";const Yj="size";const Wj="shape";const Xj="fill";const Hj="stroke";const Vj="strokeWidth";const Qj="strokeDash";const Kj="opacity";const Zj=[Yj,Wj,Xj,Hj,Vj,Qj,Kj];const Jj={name:1,style:1,interactive:1};const tG={value:0};const eG={value:1};const nG="group";const iG="rect";const rG="rule";const sG="symbol";const aG="text";function oG(t){t.type=nG;t.interactive=t.interactive||false;return t}function uG(t,e){const n=(n,i)=>fU(t[n],fU(e[n],i));n.isVertical=n=>Cj===fU(t.direction,e.direction||(n?e.symbolDirection:e.gradientDirection));n.gradientLength=()=>fU(t.gradientLength,e.gradientLength||e.gradientWidth);n.gradientThickness=()=>fU(t.gradientThickness,e.gradientThickness||e.gradientHeight);n.entryColumns=()=>fU(t.columns,fU(e.columns,+n.isVertical(true)));return n}function lG(t,e){const n=e&&(e.update&&e.update[t]||e.enter&&e.enter[t]);return n&&n.signal?n:n?n.value:null}function cG(t,e,n){const i=e.config.style[n];return i&&i[t]}function fG(t,e,n){return`item.anchor === '${Fj}' ? ${t} : item.anchor === '${Bj}' ? ${e} : ${n}`}const dG=fG((0,p.r$)(kj),(0,p.r$)(Ej),(0,p.r$)(Dj));function hG(t){const e=t("tickBand");let n=t("tickOffset"),i,r;if(!e){i=t("bandPosition");r=t("tickExtra")}else if(e.signal){i={signal:`(${e.signal}) === 'extent' ? 1 : 0.5`};r={signal:`(${e.signal}) === 'extent'`};if(!(0,p.Gv)(n)){n={signal:`(${e.signal}) === 'extent' ? 0 : ${n}`}}}else if(e==="extent"){i=1;r=true;n=0}else{i=.5;r=false}return{extra:r,band:i,offset:n}}function pG(t,e){return!e?t:!t?e:!(0,p.Gv)(t)?{value:t,offset:e}:Object.assign({},t,{offset:pG(t.offset,e)})}function mG(t,e){if(e){t.name=e.name;t.style=e.style||t.style;t.interactive=!!e.interactive;t.encode=oI(t.encode,e,Jj)}else{t.interactive=false}return t}function gG(t,e,n,i){const r=uG(t,n),s=r.isVertical(),a=r.gradientThickness(),o=r.gradientLength();let u,l,c,f,d;if(s){l=[0,1];c=[0,0];f=a;d=o}else{l=[0,0];c=[1,0];f=o;d=a}const h={enter:u={opacity:tG,x:tG,y:tG,width:rI(f),height:rI(d)},update:(0,p.X$)({},u,{opacity:eG,fill:{gradient:e,start:l,stop:c}}),exit:{opacity:tG}};aI(h,{stroke:r("gradientStrokeColor"),strokeWidth:r("gradientStrokeWidth")},{opacity:r("gradientOpacity")});return mG({type:iG,role:_I,encode:h},i)}function yG(t,e,n,i,r){const s=uG(t,n),a=s.isVertical(),o=s.gradientThickness(),u=s.gradientLength();let l,c,f,d,h="";a?(l="y",f="y2",c="x",d="width",h="1-"):(l="x",f="x2",c="y",d="height");const m={opacity:tG,fill:{scale:e,field:Nj}};m[l]={signal:h+"datum."+Oj,mult:u};m[c]=tG;m[f]={signal:h+"datum."+Tj,mult:u};m[d]=rI(o);const g={enter:m,update:(0,p.X$)({},m,{opacity:eG}),exit:{opacity:tG}};aI(g,{stroke:s("gradientStrokeColor"),strokeWidth:s("gradientStrokeWidth")},{opacity:s("gradientOpacity")});return mG({type:iG,role:bI,key:Nj,from:r,encode:g},i)}const vG=`datum.${Oj}<=0?"${kj}":datum.${Oj}>=1?"${Ej}":"${Dj}"`,bG=`datum.${Oj}<=0?"${Mj}":datum.${Oj}>=1?"${Aj}":"${Sj}"`;function xG(t,e,n,i){const r=uG(t,e),s=r.isVertical(),a=rI(r.gradientThickness()),o=r.gradientLength();let u=r("labelOverlap"),l,c,f,d,h="";const p={enter:l={opacity:tG},update:c={opacity:eG,text:{field:$j}},exit:{opacity:tG}};aI(p,{fill:r("labelColor"),fillOpacity:r("labelOpacity"),font:r("labelFont"),fontSize:r("labelFontSize"),fontStyle:r("labelFontStyle"),fontWeight:r("labelFontWeight"),limit:fU(t.labelLimit,e.gradientLabelLimit)});if(s){l.align={value:"left"};l.baseline=c.baseline={signal:bG};f="y";d="x";h="1-"}else{l.align=c.align={signal:vG};l.baseline={value:"top"};f="x";d="y"}l[f]=c[f]={signal:h+"datum."+Oj,mult:o};l[d]=c[d]=a;a.offset=fU(t.labelOffset,e.gradientLabelOffset)||0;u=u?{separation:r("labelSeparation"),method:u,order:"datum."+zj}:undefined;return mG({type:aG,role:wI,style:Lj,key:Nj,from:i,encode:p,overlap:u},n)}function _G(t,e,n,i,r){const s=uG(t,e),a=n.entries,o=!!(a&&a.interactive),u=a?a.name:undefined,l=s("clipHeight"),c=s("symbolOffset"),f={data:"value"},d=`(${r}) ? datum.${Rj} : datum.${Yj}`,h=l?rI(l):{field:Yj},p=`datum.${zj}`,m=`max(1, ${r})`;let g,y,v,b,x;h.mult=.5;g={enter:y={opacity:tG,x:{signal:d,mult:.5,offset:c},y:h},update:v={opacity:eG,x:y.x,y:y.y},exit:{opacity:tG}};let _=null,w=null;if(!t.fill){_=e.symbolBaseFillColor;w=e.symbolBaseStrokeColor}aI(g,{fill:s("symbolFillColor",_),shape:s("symbolType"),size:s("symbolSize"),stroke:s("symbolStrokeColor",w),strokeDash:s("symbolDash"),strokeDashOffset:s("symbolDashOffset"),strokeWidth:s("symbolStrokeWidth")},{opacity:s("symbolOpacity")});Zj.forEach((e=>{if(t[e]){v[e]=y[e]={scale:t[e],field:Nj}}}));const A=mG({type:sG,role:AI,key:Nj,from:f,clip:l?true:undefined,encode:g},n.symbols);const k=rI(c);k.offset=s("labelOffset");g={enter:y={opacity:tG,x:{signal:d,offset:k},y:h},update:v={opacity:eG,text:{field:$j},x:y.x,y:y.y},exit:{opacity:tG}};aI(g,{align:s("labelAlign"),baseline:s("labelBaseline"),fill:s("labelColor"),fillOpacity:s("labelOpacity"),font:s("labelFont"),fontSize:s("labelFontSize"),fontStyle:s("labelFontStyle"),fontWeight:s("labelFontWeight"),limit:s("labelLimit")});const E=mG({type:aG,role:wI,style:Lj,key:Nj,from:f,encode:g},n.labels);g={enter:{noBound:{value:!l},width:tG,height:l?rI(l):tG,opacity:tG},exit:{opacity:tG},update:v={opacity:eG,row:{signal:null},column:{signal:null}}};if(s.isVertical(true)){b=`ceil(item.mark.items.length / ${m})`;v.row.signal=`${p}%${b}`;v.column.signal=`floor(${p} / ${b})`;x={field:["row",p]}}else{v.row.signal=`floor(${p} / ${m})`;v.column.signal=`${p} % ${m}`;x={field:p}}v.column.signal=`(${r})?${v.column.signal}:${p}`;i={facet:{data:i,name:"value",groupby:zj}};return oG({role:fI,from:i,encode:oI(g,a,Jj),marks:[A,E],name:u,interactive:o,sort:x})}function wG(t,e){const n=uG(t,e);return{align:n("gridAlign"),columns:n.entryColumns(),center:{row:true,column:false},padding:{row:n("rowPadding"),column:n("columnPadding")}}}const AG='item.orient === "left"',kG='item.orient === "right"',EG=`(${AG} || ${kG})`,MG=`datum.vgrad && ${EG}`,DG=fG('"top"','"bottom"','"middle"'),CG=fG('"right"','"left"','"center"'),FG=`datum.vgrad && ${kG} ? (${CG}) : (${EG} && !(datum.vgrad && ${AG})) ? "left" : ${dG}`,SG=`item._anchor || (${EG} ? "middle" : "start")`,BG=`${MG} ? (${AG} ? -90 : 90) : 0`,zG=`${EG} ? (datum.vgrad ? (${kG} ? "bottom" : "top") : ${DG}) : "top"`;function $G(t,e,n,i){const r=uG(t,e);const s={enter:{opacity:tG},update:{opacity:eG,x:{field:{group:"padding"}},y:{field:{group:"padding"}}},exit:{opacity:tG}};aI(s,{orient:r("titleOrient"),_anchor:r("titleAnchor"),anchor:{signal:SG},angle:{signal:BG},align:{signal:FG},baseline:{signal:zG},text:t.title,fill:r("titleColor"),fillOpacity:r("titleOpacity"),font:r("titleFont"),fontSize:r("titleFontSize"),fontStyle:r("titleFontStyle"),fontWeight:r("titleFontWeight"),limit:r("titleLimit"),lineHeight:r("titleLineHeight")},{align:r("titleAlign"),baseline:r("titleBaseline")});return mG({type:aG,role:kI,style:Pj,from:i,encode:s},n)}function RG(t,e){let n;if((0,p.Gv)(t)){if(t.signal){n=t.signal}else if(t.path){n="pathShape("+OG(t.path)+")"}else if(t.sphere){n="geoShape("+OG(t.sphere)+', {type: "Sphere"})'}}return n?e.signalRef(n):!!t}function OG(t){return(0,p.Gv)(t)&&t.signal?t.signal:(0,p.r$)(t)}function TG(t){const e=t.role||"";return e.startsWith("axis")||e.startsWith("legend")||e.startsWith("title")?e:t.type===nG?fI:e||lI}function NG(t){return{marktype:t.type,name:t.name||undefined,role:t.role||TG(t),zindex:+t.zindex||undefined,aria:t.aria,description:t.description}}function LG(t,e){return t&&t.signal?e.signalRef(t.signal):t===false?false:true}function PG(t,e){const n=Ri(t.type);if(!n)(0,p.z3)("Unrecognized transform type: "+(0,p.r$)(t.type));const i=VI(n.type.toLowerCase(),null,qG(n,t,e));if(t.signal)e.addSignal(t.signal,e.proxy(i));i.metadata=n.metadata||{};return i}function qG(t,e,n){const i={},r=t.params.length;for(let s=0;sUG(t,e,n))):UG(t,r,n)}function UG(t,e,n){const i=t.type;if(uU(e)){return VG(i)?(0,p.z3)("Expression references can not be signals."):QG(i)?n.fieldRef(e):KG(i)?n.compareRef(e):n.signalRef(e.signal)}else{const r=t.expr||QG(i);return r&&WG(e)?n.exprRef(e.expr,e.as):r&&XG(e)?ZI(e.field,e.as):VG(i)?jL(e,n):HG(i)?KI(n.getData(e).values):QG(i)?ZI(e):KG(i)?n.compareRef(e):e}}function jG(t,e,n){if(!(0,p.Kg)(e.from)){(0,p.z3)('Lookup "from" parameter must be a string literal.')}return n.getData(e.from).lookupRef(n,e.key)}function GG(t,e,n){const i=e[t.name];if(t.array){if(!(0,p.cy)(i)){(0,p.z3)("Expected an array of sub-parameters. Instead: "+(0,p.r$)(i))}return i.map((e=>YG(t,e,n)))}else{return YG(t,i,n)}}function YG(t,e,n){const i=t.params.length;let r;for(let a=0;at&&t.expr;const XG=t=>t&&t.field;const HG=t=>t==="data";const VG=t=>t==="expr";const QG=t=>t==="field";const KG=t=>t==="compare";function ZG(t,e,n){let i,r,s,a,o;if(!t){a=KI(n.add(SU(null,[{}])))}else if(i=t.facet){if(!e)(0,p.z3)("Only group marks can be faceted.");if(i.field!=null){a=o=JG(i,n)}else{if(!t.data){s=PG((0,p.X$)({type:"aggregate",groupby:(0,p.YO)(i.groupby)},i.aggregate),n);s.params.key=n.keyRef(i.groupby);s.params.pulse=JG(i,n);a=o=KI(n.add(s))}else{o=KI(n.getData(t.data).aggregate)}r=n.keyRef(i.groupby,true)}}if(!a){a=JG(t,n)}return{key:r,pulse:a,parent:o}}function JG(t,e){return t.$ref?t:t.data&&t.data.$ref?t.data:KI(e.getData(t.data).output)}function tY(t,e,n,i,r){this.scope=t;this.input=e;this.output=n;this.values=i;this.aggregate=r;this.index={}}tY.fromEntries=function(t,e){const n=e.length,i=e[n-1],r=e[n-2];let s=e[0],a=null,o=1;if(s&&s.type==="load"){s=e[1]}t.add(e[0]);for(;ot==null?"null":t)).join(",")+"),0)";const c=jL(l,e);u.update=c.$expr;u.params=c.$params}function oY(t,e){const n=TG(t),i=t.type===nG,r=t.from&&t.from.facet,s=t.overlap;let a=t.layout||n===fI||n===cI,o,u,l,c,f,d,h;const m=n===lI||a||r;const g=ZG(t.from,i,e);u=e.add(zU({key:g.key||(t.key?ZI(t.key):undefined),pulse:g.pulse,clean:!i}));const y=KI(u);u=l=e.add(SU({pulse:y}));u=e.add(qU({markdef:NG(t),interactive:LG(t.interactive,e),clip:RG(t.clip,e),context:{$context:true},groups:e.lookup(),parent:e.signals.parent?e.signalRef("parent"):null,index:e.markpath(),pulse:KI(u)}));const v=KI(u);u=c=e.add($U(qI(t.encode,t.type,n,t.style,e,{mod:false,pulse:v})));u.params.parent=e.encode();if(t.transform){t.transform.forEach((t=>{const n=PG(t,e),i=n.metadata;if(i.generates||i.changes){(0,p.z3)("Mark transforms should not generate new data.")}if(!i.nomod)c.params.mod=true;n.params.pulse=KI(u);e.add(u=n)}))}if(t.sort){u=e.add(ZU({sort:e.compareRef(t.sort),pulse:KI(u)}))}const b=KI(u);if(r||a){a=e.add(JU({layout:e.objectProperty(t.layout),legends:e.legends,mark:v,pulse:b}));d=KI(a)}const x=e.add(FU({mark:v,pulse:d||b}));h=KI(x);if(i){if(m){o=e.operators;o.pop();if(a)o.pop()}e.pushState(b,d||h,y);r?rY(t,e,g):m?sY(t,e,g):e.parse(t);e.popState();if(m){if(a)o.push(a);o.push(x)}}if(s){h=uY(s,h,e)}const _=e.add(VU({pulse:h})),w=e.add(KU({pulse:KI(_)},undefined,e.parent()));if(t.name!=null){f=t.name;e.addData(f,new tY(e,l,_,w));if(t.on)t.on.forEach((t=>{if(t.insert||t.remove||t.toggle){(0,p.z3)("Marks only support modify triggers.")}aY(t,e,f)}))}}function uY(t,e,n){const i=t.method,r=t.bound,s=t.separation;const a={separation:uU(s)?n.signalRef(s.signal):s,method:uU(i)?n.signalRef(i.signal):i,pulse:e};if(t.order){a.sort=n.compareRef({field:t.order})}if(r){const t=r.tolerance;a.boundTolerance=uU(t)?n.signalRef(t.signal):+t;a.boundScale=n.scaleRef(r.scale);a.boundOrient=r.orient}return KI(n.add(jU(a)))}function lY(t,e){const n=e.config.legend,i=t.encode||{},r=uG(t,n),s=i.legend||{},a=s.name||undefined,o=s.interactive,u=s.style,l={};let c=0,f,d,h;Zj.forEach((e=>t[e]?(l[e]=t[e],c=c||t[e]):0));if(!c)(0,p.z3)("Missing valid scale for legend.");const m=cY(t,e.scaleType(c));const g={title:t.title!=null,scales:l,type:m,vgrad:m!=="symbol"&&r.isVertical()};const y=KI(e.add(SU(null,[g])));const v={enter:{x:{value:0},y:{value:0}}};const b=KI(e.add(LU(d={type:m,scale:e.scaleRef(c),count:e.objectProperty(r("tickCount")),limit:e.property(r("symbolLimit")),values:e.objectProperty(t.values),minstep:e.property(t.tickMinStep),formatType:e.property(t.formatType),formatSpecifier:e.property(t.format)})));if(m===jj){h=[gG(t,c,n,i.gradient),xG(t,n,i.labels,b)];d.count=d.count||e.signalRef(`max(2,2*floor((${dU(r.gradientLength())})/100))`)}else if(m===Gj){h=[yG(t,c,n,i.gradient,b),xG(t,n,i.labels,b)]}else{f=wG(t,n);h=[_G(t,n,i,b,dU(f.columns))];d.size=hY(t,e,h[0].marks)}h=[oG({role:xI,from:y,encode:v,marks:h,layout:f,interactive:o})];if(g.title){h.push($G(t,n,i.title,y))}return oY(oG({role:vI,from:y,encode:oI(dY(r,t,n),s,Jj),marks:h,aria:r("aria"),description:r("description"),zindex:r("zindex"),name:a,interactive:o,style:u}),e)}function cY(t,e){let n=t.type||Uj;if(!t.type&&fY(t)===1&&(t.fill||t.stroke)){n=Hl(e)?jj:Ql(e)?Gj:Uj}return n!==jj?n:Ql(e)?Gj:jj}function fY(t){return Zj.reduce(((e,n)=>e+(t[n]?1:0)),0)}function dY(t,e,n){const i={enter:{},update:{}};aI(i,{orient:t("orient"),offset:t("offset"),padding:t("padding"),titlePadding:t("titlePadding"),cornerRadius:t("cornerRadius"),fill:t("fillColor"),stroke:t("strokeColor"),strokeWidth:n.strokeWidth,strokeDash:n.strokeDash,x:t("legendX"),y:t("legendY"),format:e.format,formatType:e.formatType});return i}function hY(t,e,n){const i=dU(pY("size",t,n)),r=dU(pY("strokeWidth",t,n)),s=dU(mY(n[1].encode,e,Lj));return jL(`max(ceil(sqrt(${i})+${r}),${s})`,e)}function pY(t,e,n){return e[t]?`scale("${e[t]}",datum)`:lG(t,n[0].encode)}function mY(t,e,n){return lG("fontSize",t)||cG("fontSize",e,n)}const gY=`item.orient==="${kj}"?-90:item.orient==="${Ej}"?90:0`;function yY(t,e){t=(0,p.Kg)(t)?{text:t}:t;const n=uG(t,e.config.title),i=t.encode||{},r=i.group||{},s=r.name||undefined,a=r.interactive,o=r.style,u=[];const l={},c=KI(e.add(SU(null,[l])));u.push(xY(t,n,vY(t),c));if(t.subtitle){u.push(_Y(t,n,i.subtitle,c))}return oY(oG({role:EI,from:c,encode:bY(n,r),marks:u,aria:n("aria"),description:n("description"),zindex:n("zindex"),name:s,interactive:a,style:o}),e)}function vY(t){const e=t.encode;return e&&e.title||(0,p.X$)({name:t.name,interactive:t.interactive,style:t.style},e)}function bY(t,e){const n={enter:{},update:{}};aI(n,{orient:t("orient"),anchor:t("anchor"),align:{signal:dG},angle:{signal:gY},limit:t("limit"),frame:t("frame"),offset:t("offset")||0,padding:t("subtitlePadding")});return oI(n,e,Jj)}function xY(t,e,n,i){const r={value:0},s=t.text,a={enter:{opacity:r},update:{opacity:{value:1}},exit:{opacity:r}};aI(a,{text:s,align:{signal:"item.mark.group.align"},angle:{signal:"item.mark.group.angle"},limit:{signal:"item.mark.group.limit"},baseline:"top",dx:e("dx"),dy:e("dy"),fill:e("color"),font:e("font"),fontSize:e("fontSize"),fontStyle:e("fontStyle"),fontWeight:e("fontWeight"),lineHeight:e("lineHeight")},{align:e("align"),angle:e("angle"),baseline:e("baseline")});return mG({type:aG,role:MI,style:qj,from:i,encode:a},n)}function _Y(t,e,n,i){const r={value:0},s=t.subtitle,a={enter:{opacity:r},update:{opacity:{value:1}},exit:{opacity:r}};aI(a,{text:s,align:{signal:"item.mark.group.align"},angle:{signal:"item.mark.group.angle"},limit:{signal:"item.mark.group.limit"},baseline:"top",dx:e("dx"),dy:e("dy"),fill:e("subtitleColor"),font:e("subtitleFont"),fontSize:e("subtitleFontSize"),fontStyle:e("subtitleFontStyle"),fontWeight:e("subtitleFontWeight"),lineHeight:e("subtitleLineHeight")},{align:e("align"),angle:e("angle"),baseline:e("baseline")});return mG({type:aG,role:DI,style:Ij,from:i,encode:a},n)}function wY(t,e){const n=[];if(t.transform){t.transform.forEach((t=>{n.push(PG(t,e))}))}if(t.on){t.on.forEach((n=>{aY(n,e,t.name)}))}e.addDataPipeline(t.name,AY(t,e,n))}function AY(t,e,n){const i=[];let r=null,s=false,a=false,o,u,l,c,f;if(t.values){if(uU(t.values)||cU(t.format)){i.push(EY(e,t));i.push(r=kY())}else{i.push(r=kY({$ingest:t.values,$format:t.format}))}}else if(t.url){if(cU(t.url)||cU(t.format)){i.push(EY(e,t));i.push(r=kY())}else{i.push(r=kY({$request:t.url,$format:t.format}))}}else if(t.source){r=o=(0,p.YO)(t.source).map((t=>KI(e.getData(t).output)));i.push(null)}for(u=0,l=n.length;ut===Mj||t===Aj;const DY=(t,e,n)=>uU(t)?RY(t.signal,e,n):t===kj||t===Aj?e:n;const CY=(t,e,n)=>uU(t)?zY(t.signal,e,n):MY(t)?e:n;const FY=(t,e,n)=>uU(t)?$Y(t.signal,e,n):MY(t)?n:e;const SY=(t,e,n)=>uU(t)?OY(t.signal,e,n):t===Aj?{value:e}:{value:n};const BY=(t,e,n)=>uU(t)?TY(t.signal,e,n):t===Ej?{value:e}:{value:n};const zY=(t,e,n)=>NY(`${t} === '${Aj}' || ${t} === '${Mj}'`,e,n);const $Y=(t,e,n)=>NY(`${t} !== '${Aj}' && ${t} !== '${Mj}'`,e,n);const RY=(t,e,n)=>PY(`${t} === '${kj}' || ${t} === '${Aj}'`,e,n);const OY=(t,e,n)=>PY(`${t} === '${Aj}'`,e,n);const TY=(t,e,n)=>PY(`${t} === '${Ej}'`,e,n);const NY=(t,e,n)=>{e=e!=null?rI(e):e;n=n!=null?rI(n):n;if(LY(e)&&LY(n)){e=e?e.signal||(0,p.r$)(e.value):null;n=n?n.signal||(0,p.r$)(n.value):null;return{signal:`${t} ? (${e}) : (${n})`}}else{return[(0,p.X$)({test:t},e)].concat(n||[])}};const LY=t=>t==null||Object.keys(t).length===1;const PY=(t,e,n)=>({signal:`${t} ? (${IY(e)}) : (${IY(n)})`});const qY=(t,e,n,i,r)=>({signal:(i!=null?`${t} === '${kj}' ? (${IY(i)}) : `:"")+(n!=null?`${t} === '${Mj}' ? (${IY(n)}) : `:"")+(r!=null?`${t} === '${Ej}' ? (${IY(r)}) : `:"")+(e!=null?`${t} === '${Aj}' ? (${IY(e)}) : `:"")+"(null)"});const IY=t=>uU(t)?t.signal:t==null?null:(0,p.r$)(t);const UY=(t,e)=>e===0?0:uU(t)?{signal:`(${t.signal}) * ${e}`}:{value:t*e};const jY=(t,e)=>{const n=t.signal;return n&&n.endsWith("(null)")?{signal:n.slice(0,-6)+e.signal}:t};function GY(t,e,n,i){let r;if(e&&(0,p.mQ)(e,t)){return e[t]}else if((0,p.mQ)(n,t)){return n[t]}else if(t.startsWith("title")){switch(t){case"titleColor":r="fill";break;case"titleFont":case"titleFontSize":case"titleFontWeight":r=t[5].toLowerCase()+t.slice(6)}return i[Pj][r]}else if(t.startsWith("label")){switch(t){case"labelColor":r="fill";break;case"labelFont":case"labelFontSize":r=t[5].toLowerCase()+t.slice(6)}return i[Lj][r]}return null}function YY(t){const e={};for(const n of t){if(!n)continue;for(const t in n)e[t]=1}return Object.keys(e)}function WY(t,e){var n=e.config,i=n.style,r=n.axis,s=e.scaleType(t.scale)==="band"&&n.axisBand,a=t.orient,o,u,l;if(uU(a)){const t=YY([n.axisX,n.axisY]),e=YY([n.axisTop,n.axisBottom,n.axisLeft,n.axisRight]);o={};for(l of t){o[l]=CY(a,GY(l,n.axisX,r,i),GY(l,n.axisY,r,i))}u={};for(l of e){u[l]=qY(a.signal,GY(l,n.axisTop,r,i),GY(l,n.axisBottom,r,i),GY(l,n.axisLeft,r,i),GY(l,n.axisRight,r,i))}}else{o=a===Aj||a===Mj?n.axisX:n.axisY;u=n["axis"+a[0].toUpperCase()+a.slice(1)]}const c=o||u||s?(0,p.X$)({},r,o,u,s):r;return c}function XY(t,e,n,i){const r=uG(t,e),s=t.orient;let a,o;const u={enter:a={opacity:tG},update:o={opacity:eG},exit:{opacity:tG}};aI(u,{stroke:r("domainColor"),strokeCap:r("domainCap"),strokeDash:r("domainDash"),strokeDashOffset:r("domainDashOffset"),strokeWidth:r("domainWidth"),strokeOpacity:r("domainOpacity")});const l=HY(t,0);const c=HY(t,1);a.x=o.x=CY(s,l,tG);a.x2=o.x2=CY(s,c);a.y=o.y=FY(s,l,tG);a.y2=o.y2=FY(s,c);return mG({type:rG,role:hI,from:i,encode:u},n)}function HY(t,e){return{scale:t.scale,range:e}}function VY(t,e,n,i,r){const s=uG(t,e),a=t.orient,o=t.gridScale,u=DY(a,1,-1),l=QY(t.offset,u);let c,f,d;const h={enter:c={opacity:tG},update:d={opacity:eG},exit:f={opacity:tG}};aI(h,{stroke:s("gridColor"),strokeCap:s("gridCap"),strokeDash:s("gridDash"),strokeDashOffset:s("gridDashOffset"),strokeOpacity:s("gridOpacity"),strokeWidth:s("gridWidth")});const m={scale:t.scale,field:Nj,band:r.band,extra:r.extra,offset:r.offset,round:s("tickRound")};const g=CY(a,{signal:"height"},{signal:"width"});const y=o?{scale:o,range:0,mult:u,offset:l}:{value:0,offset:l};const v=o?{scale:o,range:1,mult:u,offset:l}:(0,p.X$)(g,{mult:u,offset:l});c.x=d.x=CY(a,m,y);c.y=d.y=FY(a,m,y);c.x2=d.x2=FY(a,v);c.y2=d.y2=CY(a,v);f.x=CY(a,m);f.y=FY(a,m);return mG({type:rG,role:pI,key:Nj,from:i,encode:h},n)}function QY(t,e){if(e===1);else if(!(0,p.Gv)(t)){t=uU(e)?{signal:`(${e.signal}) * (${t||0})`}:e*(t||0)}else{let n=t=(0,p.X$)({},t);while(n.mult!=null){if(!(0,p.Gv)(n.mult)){n.mult=uU(e)?{signal:`(${n.mult}) * (${e.signal})`}:n.mult*e;return t}else{n=n.mult=(0,p.X$)({},n.mult)}}n.mult=e}return t}function KY(t,e,n,i,r,s){const a=uG(t,e),o=t.orient,u=DY(o,-1,1);let l,c,f;const d={enter:l={opacity:tG},update:f={opacity:eG},exit:c={opacity:tG}};aI(d,{stroke:a("tickColor"),strokeCap:a("tickCap"),strokeDash:a("tickDash"),strokeDashOffset:a("tickDashOffset"),strokeOpacity:a("tickOpacity"),strokeWidth:a("tickWidth")});const h=rI(r);h.mult=u;const p={scale:t.scale,field:Nj,band:s.band,extra:s.extra,offset:s.offset,round:a("tickRound")};f.y=l.y=CY(o,tG,p);f.y2=l.y2=CY(o,h);c.x=CY(o,p);f.x=l.x=FY(o,tG,p);f.x2=l.x2=FY(o,h);c.y=FY(o,p);return mG({type:rG,role:gI,key:Nj,from:i,encode:d},n)}function ZY(t,e,n,i,r){return{signal:'flush(range("'+t+'"), '+'scale("'+t+'", datum.value), '+e+","+n+","+i+","+r+")"}}function JY(t,e,n,i,r,s){const a=uG(t,e),o=t.orient,u=t.scale,l=DY(o,-1,1),c=dU(a("labelFlush")),f=dU(a("labelFlushOffset")),d=a("labelAlign"),h=a("labelBaseline");let p=c===0||!!c,m;const g=rI(r);g.mult=l;g.offset=rI(a("labelPadding")||0);g.offset.mult=l;const y={scale:u,field:Nj,band:.5,offset:pG(s.offset,a("labelOffset"))};const v=CY(o,p?ZY(u,c,'"left"','"right"','"center"'):{value:"center"},BY(o,"left","right"));const b=CY(o,SY(o,"bottom","top"),p?ZY(u,c,'"top"','"bottom"','"middle"'):{value:"middle"});const x=ZY(u,c,`-(${f})`,f,0);p=p&&f;const _={opacity:tG,x:CY(o,y,g),y:FY(o,y,g)};const w={enter:_,update:m={opacity:eG,text:{field:$j},x:_.x,y:_.y,align:v,baseline:b},exit:{opacity:tG,x:_.x,y:_.y}};aI(w,{dx:!d&&p?CY(o,x):null,dy:!h&&p?FY(o,x):null});aI(w,{angle:a("labelAngle"),fill:a("labelColor"),fillOpacity:a("labelOpacity"),font:a("labelFont"),fontSize:a("labelFontSize"),fontWeight:a("labelFontWeight"),fontStyle:a("labelFontStyle"),limit:a("labelLimit"),lineHeight:a("labelLineHeight")},{align:d,baseline:h});const A=a("labelBound");let k=a("labelOverlap");k=k||A?{separation:a("labelSeparation"),method:k,order:"datum.index",bound:A?{scale:u,orient:o,tolerance:A}:null}:undefined;if(m.align!==v){m.align=jY(m.align,v)}if(m.baseline!==b){m.baseline=jY(m.baseline,b)}return mG({type:aG,role:mI,style:Lj,key:Nj,from:i,encode:w,overlap:k},n)}function tW(t,e,n,i){const r=uG(t,e),s=t.orient,a=DY(s,-1,1);let o,u;const l={enter:o={opacity:tG,anchor:rI(r("titleAnchor",null)),align:{signal:dG}},update:u=(0,p.X$)({},o,{opacity:eG,text:rI(t.title)}),exit:{opacity:tG}};const c={signal:`lerp(range("${t.scale}"), ${fG(0,1,.5)})`};u.x=CY(s,c);u.y=FY(s,c);o.angle=CY(s,tG,UY(a,90));o.baseline=CY(s,SY(s,Mj,Aj),{value:Mj});u.angle=o.angle;u.baseline=o.baseline;aI(l,{fill:r("titleColor"),fillOpacity:r("titleOpacity"),font:r("titleFont"),fontSize:r("titleFontSize"),fontStyle:r("titleFontStyle"),fontWeight:r("titleFontWeight"),limit:r("titleLimit"),lineHeight:r("titleLineHeight")},{align:r("titleAlign"),angle:r("titleAngle"),baseline:r("titleBaseline")});eW(r,s,l,n);l.update.align=jY(l.update.align,o.align);l.update.angle=jY(l.update.angle,o.angle);l.update.baseline=jY(l.update.baseline,o.baseline);return mG({type:aG,role:yI,style:Pj,from:i,encode:l},n)}function eW(t,e,n,i){const r=(t,e)=>t!=null?(n.update[e]=jY(rI(t),n.update[e]),false):!uI(e,i)?true:false;const s=r(t("titleX"),"x"),a=r(t("titleY"),"y");n.enter.auto=a===s?rI(a):CY(e,rI(a),rI(s))}function nW(t,e){const n=WY(t,e),i=t.encode||{},r=i.axis||{},s=r.name||undefined,a=r.interactive,o=r.style,u=uG(t,n),l=hG(u);const c={scale:t.scale,ticks:!!u("ticks"),labels:!!u("labels"),grid:!!u("grid"),domain:!!u("domain"),title:t.title!=null};const f=KI(e.add(SU({},[c])));const d=KI(e.add(CU({scale:e.scaleRef(t.scale),extra:e.property(l.extra),count:e.objectProperty(t.tickCount),values:e.objectProperty(t.values),minstep:e.property(t.tickMinStep),formatType:e.property(t.formatType),formatSpecifier:e.property(t.format)})));const h=[];let p;if(c.grid){h.push(VY(t,n,i.grid,d,l))}if(c.ticks){p=u("tickSize");h.push(KY(t,n,i.ticks,d,p,l))}if(c.labels){p=c.ticks?p:0;h.push(JY(t,n,i.labels,d,p,l))}if(c.domain){h.push(XY(t,n,i.domain,f))}if(c.title){h.push(tW(t,n,i.title,f))}return oY(oG({role:dI,from:f,encode:oI(iW(u,t),r,Jj),marks:h,aria:u("aria"),description:u("description"),zindex:u("zindex"),name:s,interactive:a,style:o}),e)}function iW(t,e){const n={enter:{},update:{}};aI(n,{orient:t("orient"),offset:t("offset")||0,position:fU(e.position,0),titlePadding:t("titlePadding"),minExtent:t("minExtent"),maxExtent:t("maxExtent"),range:{signal:`abs(span(range("${e.scale}")))`},translate:t("translate"),format:e.format,formatType:e.formatType});return n}function rW(t,e,n){const i=(0,p.YO)(t.signals),r=(0,p.YO)(t.scales);if(!n)i.forEach((t=>XI(t,e)));(0,p.YO)(t.projections).forEach((t=>_j(t,e)));r.forEach((t=>ij(t,e)));(0,p.YO)(t.data).forEach((t=>wY(t,e)));r.forEach((t=>rj(t,e)));(n||i).forEach((t=>EU(t,e)));(0,p.YO)(t.axes).forEach((t=>nW(t,e)));(0,p.YO)(t.marks).forEach((t=>oY(t,e)));(0,p.YO)(t.legends).forEach((t=>lY(t,e)));if(t.title)yY(t.title,e);e.parseLambdas();return e}const sW=t=>oI({enter:{x:{value:0},y:{value:0}},update:{width:{signal:"width"},height:{signal:"height"}}},t);function aW(t,e){const n=e.config;const i=KI(e.root=e.add(QI()));const r=uW(t,n);r.forEach((t=>XI(t,e)));e.description=t.description||n.description;e.eventConfig=n.events;e.legends=e.objectProperty(n.legend&&n.legend.layout);e.locale=n.locale;const s=e.add(SU());const a=e.add($U(qI(sW(t.encode),nG,cI,t.style,e,{pulse:KI(s)})));const o=e.add(JU({layout:e.objectProperty(t.layout),legends:e.legends,autosize:e.signalRef("autosize"),mark:i,pulse:KI(a)}));e.operators.pop();e.pushState(KI(a),KI(o),null);rW(t,e,r);e.operators.push(o);let u=e.add(FU({mark:i,pulse:KI(o)}));u=e.add(VU({pulse:KI(u)}));u=e.add(KU({pulse:KI(u)}));e.addData("root",new tY(e,s,s,u));return e}function oW(t,e){return e&&e.signal?{name:t,update:e.signal}:{name:t,value:e}}function uW(t,e){const n=n=>fU(t[n],e[n]),i=[oW("background",n("background")),oW("autosize",tI(n("autosize"))),oW("padding",iI(n("padding"))),oW("width",n("width")||0),oW("height",n("height")||0)],r=i.reduce(((t,e)=>(t[e.name]=e,t)),{}),s={};(0,p.YO)(t.signals).forEach((t=>{if((0,p.mQ)(r,t.name)){t=(0,p.X$)(r[t.name],t)}else{i.push(t)}s[t.name]=t}));(0,p.YO)(e.signals).forEach((t=>{if(!(0,p.mQ)(s,t.name)&&!(0,p.mQ)(r,t.name)){i.push(t)}}));return i}function lW(t,e){this.config=t||{};this.options=e||{};this.bindings=[];this.field={};this.signals={};this.lambdas={};this.scales={};this.events={};this.data={};this.streams=[];this.updates=[];this.operators=[];this.eventConfig=null;this.locale=null;this._id=0;this._subid=0;this._nextsub=[0];this._parent=[];this._encode=[];this._lookup=[];this._markpath=[]}function cW(t){this.config=t.config;this.options=t.options;this.legends=t.legends;this.field=Object.create(t.field);this.signals=Object.create(t.signals);this.lambdas=Object.create(t.lambdas);this.scales=Object.create(t.scales);this.events=Object.create(t.events);this.data=Object.create(t.data);this.streams=[];this.updates=[];this.operators=[];this._id=0;this._subid=++t._nextsub[0];this._nextsub=t._nextsub;this._parent=t._parent.slice();this._encode=t._encode.slice();this._lookup=t._lookup.slice();this._markpath=t._markpath}lW.prototype=cW.prototype={parse(t){return rW(t,this)},fork(){return new cW(this)},isSubscope(){return this._subid>0},toRuntime(){this.finish();return{description:this.description,operators:this.operators,streams:this.streams,updates:this.updates,bindings:this.bindings,eventConfig:this.eventConfig,locale:this.locale}},id(){return(this._subid?this._subid+":":0)+this._id++},add(t){this.operators.push(t);t.id=this.id();if(t.refs){t.refs.forEach((e=>{e.$ref=t.id}));t.refs=null}return t},proxy(t){const e=t instanceof HI?KI(t):t;return this.add(XU({value:e}))},addStream(t){this.streams.push(t);t.id=this.id();return t},addUpdate(t){this.updates.push(t);return t},finish(){let t,e;if(this.root)this.root.root=true;for(t in this.signals){this.signals[t].signal=t}for(t in this.scales){this.scales[t].scale=t}function n(t,e,n){let i,r;if(t){i=t.data||(t.data={});r=i[e]||(i[e]=[]);r.push(n)}}for(t in this.data){e=this.data[t];n(e.input,t,"input");n(e.output,t,"output");n(e.values,t,"values");for(const i in e.index){n(e.index[i],t,"index:"+i)}}return this},pushState(t,e,n){this._encode.push(KI(this.add(KU({pulse:t}))));this._parent.push(e);this._lookup.push(n?KI(this.proxy(n)):null);this._markpath.push(-1)},popState(){this._encode.pop();this._parent.pop();this._lookup.pop();this._markpath.pop()},parent(){return(0,p.se)(this._parent)},encode(){return(0,p.se)(this._encode)},lookup(){return(0,p.se)(this._lookup)},markpath(){const t=this._markpath;return++t[t.length-1]},fieldRef(t,e){if((0,p.Kg)(t))return ZI(t,e);if(!t.signal){(0,p.z3)("Unsupported field reference: "+(0,p.r$)(t))}const n=t.signal;let i=this.field[n];if(!i){const t={name:this.signalRef(n)};if(e)t.as=e;this.field[n]=i=KI(this.add(TU(t)))}return i},compareRef(t){let e=false;const n=t=>uU(t)?(e=true,this.signalRef(t.signal)):lU(t)?(e=true,this.exprRef(t.expr)):t;const i=(0,p.YO)(t.field).map(n),r=(0,p.YO)(t.order).map(n);return e?KI(this.add(BU({fields:i,orders:r}))):tU(i,r)},keyRef(t,e){let n=false;const i=t=>uU(t)?(n=true,KI(r[t.signal])):t;const r=this.signals;t=(0,p.YO)(t).map(i);return n?KI(this.add(NU({fields:t,flat:e}))):eU(t,e)},sortRef(t){if(!t)return t;const e=sU(t.op,t.field),n=t.order||nU;return n.signal?KI(this.add(BU({fields:e,orders:this.signalRef(n.signal)}))):tU(e,n)},event(t,e){const n=t+":"+e;if(!this.events[n]){const i=this.id();this.streams.push({id:i,source:t,type:e});this.events[n]=i}return this.events[n]},hasOwnSignal(t){return(0,p.mQ)(this.signals,t)},addSignal(t,e){if(this.hasOwnSignal(t)){(0,p.z3)("Duplicate signal name: "+(0,p.r$)(t))}const n=e instanceof HI?e:this.add(QI(e));return this.signals[t]=n},getSignal(t){if(!this.signals[t]){(0,p.z3)("Unrecognized signal name: "+(0,p.r$)(t))}return this.signals[t]},signalRef(t){if(this.signals[t]){return KI(this.signals[t])}else if(!(0,p.mQ)(this.lambdas,t)){this.lambdas[t]=this.add(QI(null))}return KI(this.lambdas[t])},parseLambdas(){const t=Object.keys(this.lambdas);for(let e=0,n=t.length;e0?",":"")+((0,p.Gv)(e)?e.signal||fW(e):(0,p.r$)(e))}return n+"]"}function hW(t){let e="{",n=0,i,r;for(i in t){r=t[i];e+=(++n>1?",":"")+(0,p.r$)(i)+":"+((0,p.Gv)(r)?r.signal||fW(r):(0,p.r$)(r))}return e+"}"}function pW(){const t="sans-serif",e=30,n=2,i="#4c78a8",r="#000",s="#888",a="#ddd";return{description:"Vega visualization",padding:0,autosize:"pad",background:null,events:{defaults:{allow:["wheel"]}},group:null,mark:null,arc:{fill:i},area:{fill:i},image:null,line:{stroke:i,strokeWidth:n},path:{stroke:i},rect:{fill:i},rule:{stroke:r},shape:{stroke:i},symbol:{fill:i,size:64},text:{fill:r,font:t,fontSize:11},trail:{fill:i,size:n},style:{"guide-label":{fill:r,font:t,fontSize:10},"guide-title":{fill:r,font:t,fontSize:11,fontWeight:"bold"},"group-title":{fill:r,font:t,fontSize:13,fontWeight:"bold"},"group-subtitle":{fill:r,font:t,fontSize:12},point:{size:e,strokeWidth:n,shape:"circle"},circle:{size:e,strokeWidth:n},square:{size:e,strokeWidth:n,shape:"square"},cell:{fill:"transparent",stroke:a},view:{fill:"transparent"}},title:{orient:"top",anchor:"middle",offset:4,subtitlePadding:3},axis:{minExtent:0,maxExtent:200,bandPosition:.5,domain:true,domainWidth:1,domainColor:s,grid:false,gridWidth:1,gridColor:a,labels:true,labelAngle:0,labelLimit:180,labelOffset:0,labelPadding:2,ticks:true,tickColor:s,tickOffset:0,tickRound:true,tickSize:5,tickWidth:1,titlePadding:4},axisBand:{tickOffset:-.5},projection:{type:"mercator"},legend:{orient:"right",padding:0,gridAlign:"each",columnPadding:10,rowPadding:2,symbolDirection:"vertical",gradientDirection:"vertical",gradientLength:200,gradientThickness:16,gradientStrokeColor:a,gradientStrokeWidth:0,gradientLabelOffset:2,labelAlign:"left",labelBaseline:"middle",labelLimit:160,labelOffset:4,labelOverlap:true,symbolLimit:30,symbolType:"circle",symbolSize:100,symbolOffset:0,symbolStrokeWidth:1.5,symbolBaseFillColor:"transparent",symbolBaseStrokeColor:s,titleLimit:180,titleOrient:"top",titlePadding:5,layout:{offset:18,direction:"horizontal",left:{direction:"vertical"},right:{direction:"vertical"}}},range:{category:{scheme:"tableau10"},ordinal:{scheme:"blues"},heatmap:{scheme:"yellowgreenblue"},ramp:{scheme:"blues"},diverging:{scheme:"blueorange",extent:[1,0]},symbol:["circle","square","triangle-up","cross","diamond","triangle-right","triangle-down","triangle-left"]}}}function mW(t,e,n){if(!(0,p.Gv)(t)){(0,p.z3)("Input Vega specification must be an object.")}e=(0,p.io)(pW(),e,t.config);return aW(t,new lW(e,n)).toRuntime()}var gW="5.33.0";(0,p.X$)($i,i,r,s,a,o,l,u,c,f,d,h)}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8217.801fbb0b549a74238760.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8217.801fbb0b549a74238760.js new file mode 100644 index 0000000000000000000000000000000000000000..2c9c66a941be9a4ac443a39dcb9cdc5447169c1f --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8217.801fbb0b549a74238760.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8217],{58217:(E,T,I)=>{I.r(T);I.d(T,{cobol:()=>i});var N="builtin",R="comment",A="string",O="atom",C="number",L="keyword",D="header",S="def",U="link";function P(E){var T={},I=E.split(" ");for(var N=0;N >= ");var n={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};function G(E,T){if(E==="0"&&T.eat(/x/i)){T.eatWhile(n.hex);return true}if((E=="+"||E=="-")&&n.digit.test(T.peek())){T.eat(n.sign);E=T.next()}if(n.digit.test(E)){T.eat(E);T.eatWhile(n.digit);if("."==T.peek()){T.eat(".");T.eatWhile(n.digit)}if(T.eat(n.exponent)){T.eat(n.sign);T.eatWhile(n.digit)}return true}return false}const i={name:"cobol",startState:function(){return{indentStack:null,indentation:0,mode:false}},token:function(E,T){if(T.indentStack==null&&E.sol()){T.indentation=6}if(E.eatSpace()){return null}var I=null;switch(T.mode){case"string":var P=false;while((P=E.next())!=null){if((P=='"'||P=="'")&&!E.match(/['"]/,false)){T.mode=false;break}}I=A;break;default:var i=E.next();var r=E.column();if(r>=0&&r<=5){I=S}else if(r>=72&&r<=79){E.skipToEnd();I=D}else if(i=="*"&&r==6){E.skipToEnd();I=R}else if(i=='"'||i=="'"){T.mode="string";I=A}else if(i=="'"&&!n.digit_or_colon.test(E.peek())){I=O}else if(i=="."){I=U}else if(G(i,E)){I=C}else{if(E.current().match(n.symbol)){while(r<71){if(E.eat(n.symbol)===undefined){break}else{r++}}}if(M&&M.propertyIsEnumerable(E.current().toUpperCase())){I=L}else if(t&&t.propertyIsEnumerable(E.current().toUpperCase())){I=N}else if(e&&e.propertyIsEnumerable(E.current().toUpperCase())){I=O}else I=null}}return I},indent:function(E){if(E.indentStack==null)return E.indentation;return E.indentStack.indent}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8232.e31d5021e77a9b5215d6.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8232.e31d5021e77a9b5215d6.js new file mode 100644 index 0000000000000000000000000000000000000000..dbd038d3c0ae62f5d164dea626dc68902b0ea929 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8232.e31d5021e77a9b5215d6.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8232],{38232:(e,t,r)=>{r.r(t);r.d(t,{pascal:()=>p});function n(e){var t={},r=e.split(" ");for(var n=0;n!?|\/]/;function l(e,t){var r=e.next();if(r=="#"&&t.startOfLine){e.skipToEnd();return"meta"}if(r=='"'||r=="'"){t.tokenize=u(r);return t.tokenize(e,t)}if(r=="("&&e.eat("*")){t.tokenize=s;return s(e,t)}if(r=="{"){t.tokenize=c;return c(e,t)}if(/[\[\]\(\),;\:\.]/.test(r)){return null}if(/\d/.test(r)){e.eatWhile(/[\w\.]/);return"number"}if(r=="/"){if(e.eat("/")){e.skipToEnd();return"comment"}}if(o.test(r)){e.eatWhile(o);return"operator"}e.eatWhile(/[\w\$_]/);var n=e.current().toLowerCase();if(a.propertyIsEnumerable(n))return"keyword";if(i.propertyIsEnumerable(n))return"atom";return"variable"}function u(e){return function(t,r){var n=false,a,i=false;while((a=t.next())!=null){if(a==e&&!n){i=true;break}n=!n&&a=="\\"}if(i||!n)r.tokenize=null;return"string"}}function s(e,t){var r=false,n;while(n=e.next()){if(n==")"&&r){t.tokenize=null;break}r=n=="*"}return"comment"}function c(e,t){var r;while(r=e.next()){if(r=="}"){t.tokenize=null;break}}return"comment"}const p={name:"pascal",startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var r=(t.tokenize||l)(e,t);if(r=="comment"||r=="meta")return r;return r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{block:{open:"(*",close:"*)"}}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/84.fe0a55d7756c37585fb4.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/84.fe0a55d7756c37585fb4.js new file mode 100644 index 0000000000000000000000000000000000000000..824a9e754077837f3bec9ff5064af12862440b38 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/84.fe0a55d7756c37585fb4.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[84],{50084:(e,t,n)=>{n.r(t);n.d(t,{shell:()=>p});var r={};function s(e,t){for(var n=0;n1)e.eat("$");var n=e.next();if(/['"({]/.test(n)){t.tokens[0]=f(n,n=="("?"quote":n=="{"?"def":"string");return h(e,t)}if(!/\d/.test(n))e.eatWhile(/\w/);t.tokens.shift();return"def"};function k(e){return function(t,n){if(t.sol()&&t.string==e)n.tokens.shift();t.skipToEnd();return"string.special"}}function h(e,t){return(t.tokens[0]||a)(e,t)}const p={name:"shell",startState:function(){return{tokens:[]}},token:function(e,t){return h(e,t)},languageData:{autocomplete:i.concat(o,u),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8606.843a01bad037272e48d7.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8606.843a01bad037272e48d7.js new file mode 100644 index 0000000000000000000000000000000000000000..b843ea0a2173e897b37791c173050f0037361328 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8606.843a01bad037272e48d7.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8606],{82887:(t,n,e)=>{e.d(n,{A:()=>i});function i(t,n){return t==null||n==null?NaN:tn?1:t>=n?0:NaN}},71363:(t,n,e)=>{e.d(n,{Ay:()=>c,Jj:()=>o,ah:()=>u});var i=e(82887);var r=e(9791);var s=e(40168);const a=(0,r.A)(i.A);const o=a.right;const u=a.left;const h=(0,r.A)(s.A).center;const c=o},9791:(t,n,e)=>{e.d(n,{A:()=>s});var i=e(82887);function r(t,n){return t==null||n==null?NaN:nt?1:n>=t?0:NaN}function s(t){let n,e,s;if(t.length!==2){n=i.A;e=(n,e)=>(0,i.A)(t(n),e);s=(n,e)=>t(n)-e}else{n=t===i.A||t===r?t:a;e=t;s=t}function o(t,i,r=0,s=t.length){if(r>>1;if(e(t[n],i)<0)r=n+1;else s=n}while(r>>1;if(e(t[n],i)<=0)r=n+1;else s=n}while(re&&s(t[r-1],n)>-s(t[r],n)?r-1:r}return{left:o,center:h,right:u}}function a(){return 0}},21671:(t,n,e)=>{e.d(n,{A:()=>i});function i(t,n){let e;if(n===undefined){for(const n of t){if(n!=null&&(e=n)){e=n}}}else{let i=-1;for(let r of t){if((r=n(r,++i,t))!=null&&(e=r)){e=r}}}return e}},44317:(t,n,e)=>{e.d(n,{A:()=>i});function i(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 r of t){if((r=n(r,++i,t))!=null&&(e>r||e===undefined&&r>=r)){e=r}}}return e}},40168:(t,n,e)=>{e.d(n,{A:()=>i,n:()=>r});function i(t){return t===null?NaN:+t}function*r(t,n){if(n===undefined){for(let n of t){if(n!=null&&(n=+n)>=n){yield n}}}else{let e=-1;for(let i of t){if((i=n(i,++e,t))!=null&&(i=+i)>=i){yield i}}}}},18312:(t,n,e)=>{e.d(n,{A:()=>i});function i(t,n,e){t=+t,n=+n,e=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+e;var i=-1,r=Math.max(0,Math.ceil((n-t)/e))|0,s=new Array(r);while(++i{e.d(n,{Ay:()=>o,lq:()=>u,sG:()=>h});const i=Math.sqrt(50),r=Math.sqrt(10),s=Math.sqrt(2);function a(t,n,e){const o=(n-t)/Math.max(0,e),u=Math.floor(Math.log10(o)),h=o/Math.pow(10,u),c=h>=i?10:h>=r?5:h>=s?2:1;let l,f,_;if(u<0){_=Math.pow(10,-u)/c;l=Math.round(t*_);f=Math.round(n*_);if(l/_n)--f;_=-_}else{_=Math.pow(10,u)*c;l=Math.round(t/_);f=Math.round(n/_);if(l*_n)--f}if(f0))return[];if(t===n)return[t];const i=n=r))return[];const u=s-r+1,h=new Array(u);if(i){if(o<0)for(let t=0;t{e.d(n,{Ay:()=>b,Gw:()=>N,KI:()=>R,Q1:()=>r,Qh:()=>k,Uw:()=>a,b:()=>T,ef:()=>s});var i=e(47592);function r(){}var s=.7;var a=1/s;var o="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",h="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,l=new RegExp(`^rgb\\(${o},${o},${o}\\)$`),f=new RegExp(`^rgb\\(${h},${h},${h}\\)$`),_=new RegExp(`^rgba\\(${o},${o},${o},${u}\\)$`),p=new RegExp(`^rgba\\(${h},${h},${h},${u}\\)$`),y=new RegExp(`^hsl\\(${u},${h},${h}\\)$`),g=new RegExp(`^hsla\\(${u},${h},${h},${u}\\)$`);var d={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};(0,i.A)(r,b,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:v,formatHex:v,formatHex8:x,formatHsl:w,formatRgb:m,toString:m});function v(){return this.rgb().formatHex()}function x(){return this.rgb().formatHex8()}function w(){return E(this).formatHsl()}function m(){return this.rgb().formatRgb()}function b(t){var n,e;t=(t+"").trim().toLowerCase();return(n=c.exec(t))?(e=n[1].length,n=parseInt(n[1],16),e===6?A(n):e===3?new N(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):e===8?M(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):e===4?M(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=l.exec(t))?new N(n[1],n[2],n[3],1):(n=f.exec(t))?new N(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=_.exec(t))?M(n[1],n[2],n[3],n[4]):(n=p.exec(t))?M(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=y.exec(t))?P(n[1],n[2]/100,n[3]/100,1):(n=g.exec(t))?P(n[1],n[2]/100,n[3]/100,n[4]):d.hasOwnProperty(t)?A(d[t]):t==="transparent"?new N(NaN,NaN,NaN,0):null}function A(t){return new N(t>>16&255,t>>8&255,t&255,1)}function M(t,n,e,i){if(i<=0)t=n=e=NaN;return new N(t,n,e,i)}function T(t){if(!(t instanceof r))t=b(t);if(!t)return new N;t=t.rgb();return new N(t.r,t.g,t.b,t.opacity)}function k(t,n,e,i){return arguments.length===1?T(t):new N(t,n,e,i==null?1:i)}function N(t,n,e,i){this.r=+t;this.g=+n;this.b=+e;this.opacity=+i}(0,i.A)(N,k,(0,i.X)(r,{brighter(t){t=t==null?a:Math.pow(a,t);return new N(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){t=t==null?s:Math.pow(s,t);return new N(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new N(D(this.r),D(this.g),D(this.b),F(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&(-.5<=this.g&&this.g<255.5)&&(-.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:C,formatHex:C,formatHex8:$,formatRgb:U,toString:U}));function C(){return`#${S(this.r)}${S(this.g)}${S(this.b)}`}function $(){return`#${S(this.r)}${S(this.g)}${S(this.b)}${S((isNaN(this.opacity)?1:this.opacity)*255)}`}function U(){const t=F(this.opacity);return`${t===1?"rgb(":"rgba("}${D(this.r)}, ${D(this.g)}, ${D(this.b)}${t===1?")":`, ${t})`}`}function F(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function D(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function S(t){t=D(t);return(t<16?"0":"")+t.toString(16)}function P(t,n,e,i){if(i<=0)t=n=e=NaN;else if(e<=0||e>=1)t=n=NaN;else if(n<=0)t=NaN;return new H(t,n,e,i)}function E(t){if(t instanceof H)return new H(t.h,t.s,t.l,t.opacity);if(!(t instanceof r))t=b(t);if(!t)return new H;if(t instanceof H)return t;t=t.rgb();var n=t.r/255,e=t.g/255,i=t.b/255,s=Math.min(n,e,i),a=Math.max(n,e,i),o=NaN,u=a-s,h=(a+s)/2;if(u){if(n===a)o=(e-i)/u+(e0&&h<1?0:o}return new H(o,u,h,t.opacity)}function R(t,n,e,i){return arguments.length===1?E(t):new H(t,n,e,i==null?1:i)}function H(t,n,e,i){this.h=+t;this.s=+n;this.l=+e;this.opacity=+i}(0,i.A)(H,R,(0,i.X)(r,{brighter(t){t=t==null?a:Math.pow(a,t);return new H(this.h,this.s,this.l*t,this.opacity)},darker(t){t=t==null?s:Math.pow(s,t);return new H(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,i=e+(e<.5?e:1-e)*n,r=2*e-i;return new N(L(t>=240?t-240:t+120,r,i),L(t,r,i),L(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new H(Y(this.h),q(this.s),q(this.l),F(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){const t=F(this.opacity);return`${t===1?"hsl(":"hsla("}${Y(this.h)}, ${q(this.s)*100}%, ${q(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Y(t){t=(t||0)%360;return t<0?t+360:t}function q(t){return Math.max(0,Math.min(1,t||0))}function L(t,n,e){return(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)*255}},47592:(t,n,e)=>{e.d(n,{A:()=>i,X:()=>r});function i(t,n,e){t.prototype=n.prototype=e;e.constructor=t}function r(t,n){var e=Object.create(t.prototype);for(var i in n)e[i]=n[i];return e}},14180:(t,n,e)=>{e.d(n,{Ay:()=>g,aq:()=>M});var i=e(47592);var r=e(33844);var s=e(77689);const a=18,o=.96422,u=1,h=.82521,c=4/29,l=6/29,f=3*l*l,_=l*l*l;function p(t){if(t instanceof d)return new d(t.l,t.a,t.b,t.opacity);if(t instanceof T)return k(t);if(!(t instanceof r.Gw))t=(0,r.b)(t);var n=m(t.r),e=m(t.g),i=m(t.b),s=v((.2225045*n+.7168786*e+.0606169*i)/u),a,c;if(n===e&&e===i)a=c=s;else{a=v((.4360747*n+.3850649*e+.1430804*i)/o);c=v((.0139322*n+.0971045*e+.7141733*i)/h)}return new d(116*s-16,500*(a-s),200*(s-c),t.opacity)}function y(t,n){return new d(t,0,0,n==null?1:n)}function g(t,n,e,i){return arguments.length===1?p(t):new d(t,n,e,i==null?1:i)}function d(t,n,e,i){this.l=+t;this.a=+n;this.b=+e;this.opacity=+i}(0,i.A)(d,g,(0,i.X)(r.Q1,{brighter(t){return new d(this.l+a*(t==null?1:t),this.a,this.b,this.opacity)},darker(t){return new d(this.l-a*(t==null?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;n=o*x(n);t=u*x(t);e=h*x(e);return new r.Gw(w(3.1338561*n-1.6168667*t-.4906146*e),w(-.9787684*n+1.9161415*t+.033454*e),w(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}}));function v(t){return t>_?Math.pow(t,1/3):t/f+c}function x(t){return t>l?t*t*t:f*(t-c)}function w(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function m(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function b(t){if(t instanceof T)return new T(t.h,t.c,t.l,t.opacity);if(!(t instanceof d))t=p(t);if(t.a===0&&t.b===0)return new T(NaN,0{e.d(n,{F:()=>i,u:()=>r});const i=Math.PI/180;const r=180/Math.PI},62996:(t,n,e)=>{e.d(n,{A:()=>h});var i={value:()=>{}};function r(){for(var t=0,n=arguments.length,e={},i;t=0)e=t.slice(i+1),t=t.slice(0,i);if(t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))}s.prototype=r.prototype={constructor:s,on:function(t,n){var e=this._,i=a(t+"",e),r,s=-1,h=i.length;if(arguments.length<2){while(++s0)for(var e=new Array(r),i=0,r,s;i{e.d(n,{GP:()=>s,s:()=>a});var i=e(25216);var r;var s;var a;o({thousands:",",grouping:[3],currency:["$",""]});function o(t){r=(0,i.A)(t);s=r.format;a=r.formatPrefix;return r}},40886:(t,n,e)=>{e.d(n,{A:()=>r});var i=e(23735);function r(t){return t=(0,i.f)(Math.abs(t)),t?t[1]:NaN}},23735:(t,n,e)=>{e.d(n,{A:()=>i,f:()=>r});function i(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function r(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,i=t.slice(0,e);return[i.length>1?i[0]+i.slice(2):i,+t.slice(e+1)]}},71688:(t,n,e)=>{e.d(n,{A:()=>r});var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function r(t){if(!(n=i.exec(t)))throw new Error("invalid format: "+t);var n;return new s({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}r.prototype=s.prototype;function s(t){this.fill=t.fill===undefined?" ":t.fill+"";this.align=t.align===undefined?">":t.align+"";this.sign=t.sign===undefined?"-":t.sign+"";this.symbol=t.symbol===undefined?"":t.symbol+"";this.zero=!!t.zero;this.width=t.width===undefined?undefined:+t.width;this.comma=!!t.comma;this.precision=t.precision===undefined?undefined:+t.precision;this.trim=!!t.trim;this.type=t.type===undefined?"":t.type+""}s.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===undefined?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===undefined?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type}},25216:(t,n,e)=>{e.d(n,{A:()=>g});var i=e(40886);function r(t,n){return function(e,i){var r=e.length,s=[],a=0,o=t[0],u=0;while(r>0&&o>0){if(u+o+1>i)o=Math.max(1,i-u);s.push(e.substring(r-=o,r+o));if((u+=o+1)>i)break;o=t[a=(a+1)%t.length]}return s.reverse().join(n)}}function s(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}var a=e(71688);function o(t){t:for(var n=t.length,e=1,i=-1,r;e0)i=0;break}}return i>0?t.slice(0,i)+t.slice(r+1):t}var u=e(23735);var h;function c(t,n){var e=(0,u.f)(t,n);if(!e)return t+"";var i=e[0],r=e[1],s=r-(h=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,a=i.length;return s===a?i:s>a?i+new Array(s-a+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+(0,u.f)(t,Math.max(0,n+s-1))[0]}function l(t,n){var e=(0,u.f)(t,n);if(!e)return t+"";var i=e[0],r=e[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}const f={"%":(t,n)=>(t*100).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:u.A,e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>l(t*100,n),r:l,s:c,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function _(t){return t}var p=Array.prototype.map,y=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function g(t){var n=t.grouping===undefined||t.thousands===undefined?_:r(p.call(t.grouping,Number),t.thousands+""),e=t.currency===undefined?"":t.currency[0]+"",u=t.currency===undefined?"":t.currency[1]+"",c=t.decimal===undefined?".":t.decimal+"",l=t.numerals===undefined?_:s(p.call(t.numerals,String)),g=t.percent===undefined?"%":t.percent+"",d=t.minus===undefined?"−":t.minus+"",v=t.nan===undefined?"NaN":t.nan+"";function x(t){t=(0,a.A)(t);var i=t.fill,r=t.align,s=t.sign,_=t.symbol,p=t.zero,x=t.width,w=t.comma,m=t.precision,b=t.trim,A=t.type;if(A==="n")w=true,A="g";else if(!f[A])m===undefined&&(m=12),b=true,A="g";if(p||i==="0"&&r==="=")p=true,i="0",r="=";var M=_==="$"?e:_==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",T=_==="$"?u:/[%p]/.test(A)?g:"";var k=f[A],N=/[defgprs%]/.test(A);m=m===undefined?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m));function C(t){var e=M,a=T,u,f,_;if(A==="c"){a=k(t)+a;t=""}else{t=+t;var g=t<0||1/t<0;t=isNaN(t)?v:k(Math.abs(t),m);if(b)t=o(t);if(g&&+t===0&&s!=="+")g=false;e=(g?s==="("?s:d:s==="-"||s==="("?"":s)+e;a=(A==="s"?y[8+h/3]:"")+a+(g&&s==="("?")":"");if(N){u=-1,f=t.length;while(++u_||_>57){a=(_===46?c+t.slice(u+1):t.slice(u))+a;t=t.slice(0,u);break}}}}if(w&&!p)t=n(t,Infinity);var C=e.length+t.length+a.length,$=C>1)+e+t+a+$.slice(C);break;default:t=$+e+t+a;break}return l(t)}C.toString=function(){return t+""};return C}function w(t,n){var e=x((t=(0,a.A)(t),t.type="f",t)),r=Math.max(-8,Math.min(8,Math.floor((0,i.A)(n)/3)))*3,s=Math.pow(10,-r),o=y[8+r/3];return function(t){return e(s*t)+o}}return{format:x,formatPrefix:w}}},93391:(t,n,e)=>{e.d(n,{A:()=>r});var i=e(40886);function r(t){return Math.max(0,-(0,i.A)(Math.abs(t)))}},86093:(t,n,e)=>{e.d(n,{A:()=>r});var i=e(40886);function r(t,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor((0,i.A)(n)/3)))*3-(0,i.A)(Math.abs(t)))}},78209:(t,n,e)=>{e.d(n,{A:()=>r});var i=e(40886);function r(t,n){t=Math.abs(t),n=Math.abs(n)-t;return Math.max(0,(0,i.A)(n)-(0,i.A)(t))+1}},69266:(t,n,e)=>{e.d(n,{$:()=>a,A:()=>s});var i=e(21406);var r=e(48561);function s(t,n){return((0,r.p)(n)?r.A:a)(t,n)}function a(t,n){var e=n?n.length:0,r=t?Math.min(e,t.length):0,s=new Array(r),a=new Array(e),o;for(o=0;o{e.d(n,{A:()=>r,H:()=>i});function i(t,n,e,i,r){var s=t*t,a=s*t;return((1-3*t+3*s-a)*n+(4-6*s+3*a)*e+(1+3*t+3*s-3*a)*i+a*r)/6}function r(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),s=t[r],a=t[r+1],o=r>0?t[r-1]:2*s-a,u=r{e.d(n,{A:()=>r});var i=e(13029);function r(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),s=t[(r+n-1)%n],a=t[r%n],o=t[(r+1)%n],u=t[(r+2)%n];return(0,i.H)((e-r/n)*n,s,a,o,u)}}},6504:(t,n,e)=>{e.d(n,{Ay:()=>u,lG:()=>a,uN:()=>o});var i=e(80319);function r(t,n){return function(e){return t+e*n}}function s(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(i){return Math.pow(t+i*n,e)}}function a(t,n){var e=n-t;return e?r(t,e>180||e<-180?e-360*Math.round(e/360):e):(0,i.A)(isNaN(t)?n:t)}function o(t){return(t=+t)===1?u:function(n,e){return e-n?s(n,e,t):(0,i.A)(isNaN(n)?e:n)}}function u(t,n){var e=n-t;return e?r(t,e):(0,i.A)(isNaN(t)?n:t)}},80319:(t,n,e)=>{e.d(n,{A:()=>i});const i=t=>()=>t},57007:(t,n,e)=>{e.d(n,{A:()=>i});function i(t,n){var e=new Date;return t=+t,n=+n,function(i){return e.setTime(t*(1-i)+n*i),e}}},67360:(t,n,e)=>{e.r(n);e.d(n,{interpolate:()=>i.A,interpolateArray:()=>r.A,interpolateBasis:()=>s.A,interpolateBasisClosed:()=>a.A,interpolateCubehelix:()=>G,interpolateCubehelixLong:()=>J,interpolateDate:()=>o.A,interpolateDiscrete:()=>u,interpolateHcl:()=>U,interpolateHclLong:()=>F,interpolateHsl:()=>T,interpolateHslLong:()=>k,interpolateHue:()=>c,interpolateLab:()=>C,interpolateNumber:()=>l.A,interpolateNumberArray:()=>f.A,interpolateObject:()=>_.A,interpolateRgb:()=>b.Ay,interpolateRgbBasis:()=>b.Ik,interpolateRgbBasisClosed:()=>b.uL,interpolateRound:()=>p.A,interpolateString:()=>y.A,interpolateTransformCss:()=>g.T,interpolateTransformSvg:()=>g.I,interpolateZoom:()=>m,piecewise:()=>Z.A,quantize:()=>Q});var i=e(21406);var r=e(69266);var s=e(13029);var a=e(64425);var o=e(57007);function u(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var h=e(6504);function c(t,n){var e=(0,h.lG)(+t,+n);return function(t){var n=e(t);return n-360*Math.floor(n/360)}}var l=e(85566);var f=e(48561);var _=e(86088);var p=e(15307);var y=e(23318);var g=e(39480);var d=1e-12;function v(t){return((t=Math.exp(t))+1/t)/2}function x(t){return((t=Math.exp(t))-1/t)/2}function w(t){return((t=Math.exp(2*t))-1)/(t+1)}const m=function t(n,e,i){function r(t,r){var s=t[0],a=t[1],o=t[2],u=r[0],h=r[1],c=r[2],l=u-s,f=h-a,_=l*l+f*f,p,y;if(_{e.d(n,{A:()=>i});function i(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}},48561:(t,n,e)=>{e.d(n,{A:()=>i,p:()=>r});function i(t,n){if(!n)n=[];var e=t?Math.min(n.length,t.length):0,i=n.slice(),r;return function(s){for(r=0;r{e.d(n,{A:()=>r});var i=e(21406);function r(t,n){var e={},r={},s;if(t===null||typeof t!=="object")t={};if(n===null||typeof n!=="object")n={};for(s in n){if(s in t){e[s]=(0,i.A)(t[s],n[s])}else{r[s]=n[s]}}return function(t){for(s in e)r[s]=e[s](t);return r}}},99793:(t,n,e)=>{e.d(n,{A:()=>r});var i=e(21406);function r(t,n){if(n===undefined)n=t,t=i.A;var e=0,r=n.length-1,s=n[0],a=new Array(r<0?0:r);while(e{e.d(n,{Ay:()=>o,Ik:()=>h,uL:()=>c});var i=e(33844);var r=e(13029);var s=e(64425);var a=e(6504);const o=function t(n){var e=(0,a.uN)(n);function r(t,n){var r=e((t=(0,i.Qh)(t)).r,(n=(0,i.Qh)(n)).r),s=e(t.g,n.g),o=e(t.b,n.b),u=(0,a.Ay)(t.opacity,n.opacity);return function(n){t.r=r(n);t.g=s(n);t.b=o(n);t.opacity=u(n);return t+""}}r.gamma=t;return r}(1);function u(t){return function(n){var e=n.length,r=new Array(e),s=new Array(e),a=new Array(e),o,u;for(o=0;o{e.d(n,{A:()=>i});function i(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}},23318:(t,n,e)=>{e.d(n,{A:()=>u});var i=e(85566);var r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,s=new RegExp(r.source,"g");function a(t){return function(){return t}}function o(t){return function(n){return t(n)+""}}function u(t,n){var e=r.lastIndex=s.lastIndex=0,u,h,c,l=-1,f=[],_=[];t=t+"",n=n+"";while((u=r.exec(t))&&(h=s.exec(n))){if((c=h.index)>e){c=n.slice(e,c);if(f[l])f[l]+=c;else f[++l]=c}if((u=u[0])===(h=h[0])){if(f[l])f[l]+=h;else f[++l]=h}else{f[++l]=null;_.push({i:l,x:(0,i.A)(u,h)})}e=s.lastIndex}if(e{e.d(n,{T:()=>l,I:()=>f});var i=e(85566);var r=180/Math.PI;var s={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function a(t,n,e,i,s,a){var o,u,h;if(o=Math.sqrt(t*t+n*n))t/=o,n/=o;if(h=t*e+n*i)e-=t*h,i-=n*h;if(u=Math.sqrt(e*e+i*i))e/=u,i/=u,h/=u;if(t*i180)n+=360;else if(n-t>180)t+=360;a.push({i:e.push(s(e)+"rotate(",null,r)-2,x:(0,i.A)(t,n)})}else if(n){e.push(s(e)+"rotate("+n+r)}}function u(t,n,e,a){if(t!==n){a.push({i:e.push(s(e)+"skewX(",null,r)-2,x:(0,i.A)(t,n)})}else if(n){e.push(s(e)+"skewX("+n+r)}}function h(t,n,e,r,a,o){if(t!==e||n!==r){var u=a.push(s(a)+"scale(",null,",",null,")");o.push({i:u-4,x:(0,i.A)(t,e)},{i:u-2,x:(0,i.A)(n,r)})}else if(e!==1||r!==1){a.push(s(a)+"scale("+e+","+r+")")}}return function(n,e){var i=[],r=[];n=t(n),e=t(e);a(n.translateX,n.translateY,e.translateX,e.translateY,i,r);o(n.rotate,e.rotate,i,r);u(n.skewX,e.skewX,i,r);h(n.scaleX,n.scaleY,e.scaleX,e.scaleY,i,r);n=e=null;return function(t){var n=-1,e=r.length,s;while(++n{e.d(n,{A:()=>f});var i=e(33844);var r=e(79948);var s=e(69266);var a=e(57007);var o=e(85566);var u=e(86088);var h=e(23318);var c=e(80319);var l=e(48561);function f(t,n){var e=typeof n,f;return n==null||e==="boolean"?(0,c.A)(n):(e==="number"?o.A:e==="string"?(f=(0,i.Ay)(n))?(n=f,r.Ay):h.A:n instanceof i.Ay?r.Ay:n instanceof Date?a.A:(0,l.p)(n)?l.A:Array.isArray(n)?s.$:typeof n.valueOf!=="function"&&typeof n.toString!=="function"||isNaN(n)?u.A:o.A)(t,n)}},69450:(t,n,e)=>{e.d(n,{Ae:()=>c,wA:()=>h});const i=Math.PI,r=2*i,s=1e-6,a=r-s;function o(t){this._+=t[0];for(let n=1,e=t.length;n=0))throw new Error(`invalid digits: ${t}`);if(n>15)return o;const e=10**n;return function(t){this._+=t[0];for(let n=1,i=t.length;ns));else if(!(Math.abs(f*h-c*l)>s)||!a){this._append`L${this._x1=t},${this._y1=n}`}else{let p=e-o,y=r-u,g=h*h+c*c,d=p*p+y*y,v=Math.sqrt(g),x=Math.sqrt(_),w=a*Math.tan((i-Math.acos((g+_-d)/(2*v*x)))/2),m=w/x,b=w/v;if(Math.abs(m-1)>s){this._append`L${t+m*l},${n+m*f}`}this._append`A${a},${a},0,0,${+(f*p>l*y)},${this._x1=t+b*h},${this._y1=n+b*c}`}}arc(t,n,e,o,u,h){t=+t,n=+n,e=+e,h=!!h;if(e<0)throw new Error(`negative radius: ${e}`);let c=e*Math.cos(o),l=e*Math.sin(o),f=t+c,_=n+l,p=1^h,y=h?o-u:u-o;if(this._x1===null){this._append`M${f},${_}`}else if(Math.abs(this._x1-f)>s||Math.abs(this._y1-_)>s){this._append`L${f},${_}`}if(!e)return;if(y<0)y=y%r+r;if(y>a){this._append`A${e},${e},0,1,${p},${t-c},${n-l}A${e},${e},0,1,${p},${this._x1=f},${this._y1=_}`}else if(y>s){this._append`A${e},${e},0,${+(y>=i)},${p},${this._x1=t+e*Math.cos(u)},${this._y1=n+e*Math.sin(u)}`}}rect(t,n,e,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${e=+e}v${+i}h${-e}Z`}toString(){return this._}}function c(){return new h}c.prototype=h.prototype;function l(t=3){return new h(+t)}},58177:(t,n,e)=>{e.d(n,{A:()=>i});function i(t){var n=t.length/6|0,e=new Array(n),i=0;while(i{e.d(n,{C:()=>y,Ay:()=>d,D_:()=>c,Gu:()=>g});var i=e(71363);var r=e(21406);var s=e(85566);var a=e(15307);function o(t){return function(){return t}}var u=e(60117);var h=[0,1];function c(t){return t}function l(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:o(isNaN(n)?NaN:.5)}function f(t,n){var e;if(t>n)e=t,t=n,n=e;return function(e){return Math.max(t,Math.min(n,e))}}function _(t,n,e){var i=t[0],r=t[1],s=n[0],a=n[1];if(r2?p:_;d=v=null;return w}function w(r){return r==null||isNaN(r=+r)?l:(d||(d=g(t.map(i),n,e)))(i(y(r)))}w.invert=function(e){return y(o((v||(v=g(n,t.map(i),s.A)))(e)))};w.domain=function(n){return arguments.length?(t=Array.from(n,u.A),x()):t.slice()};w.range=function(t){return arguments.length?(n=Array.from(t),x()):n.slice()};w.rangeRound=function(t){return n=Array.from(t),e=a.A,x()};w.clamp=function(t){return arguments.length?(y=t?true:c,x()):y!==c};w.interpolate=function(t){return arguments.length?(e=t,x()):e};w.unknown=function(t){return arguments.length?(l=t,w):l};return function(t,n){i=t,o=n;return x()}}function d(){return g()(c,c)}},25758:(t,n,e)=>{e.d(n,{C:()=>i,K:()=>r});function i(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t);break}return this}function r(t,n){switch(arguments.length){case 0:break;case 1:{if(typeof t==="function")this.interpolator(t);else this.range(t);break}default:{this.domain(t);if(typeof n==="function")this.interpolator(n);else this.range(n);break}}return this}},20481:(t,n,e)=>{e.d(n,{A:()=>u,C:()=>o});var i=e(97119);var r=e(52178);var s=e(25758);var a=e(26698);function o(t){var n=t.domain;t.ticks=function(t){var e=n();return(0,i.Ay)(e[0],e[e.length-1],t==null?10:t)};t.tickFormat=function(t,e){var i=n();return(0,a.A)(i[0],i[i.length-1],t==null?10:t,e)};t.nice=function(e){if(e==null)e=10;var r=n();var s=0;var a=r.length-1;var o=r[s];var u=r[a];var h;var c;var l=10;if(u0){c=(0,i.lq)(o,u,e);if(c===h){r[s]=o;r[a]=u;return n(r)}else if(c>0){o=Math.floor(o/c)*c;u=Math.ceil(u/c)*c}else if(c<0){o=Math.ceil(o*c)/c;u=Math.floor(u*c)/c}else{break}h=c}return t};return t}function u(){var t=(0,r.Ay)();t.copy=function(){return(0,r.C)(t,u())};s.C.apply(t,arguments);return o(t)}},60125:(t,n,e)=>{e.d(n,{A:()=>i});function i(t,n){t=t.slice();var e=0,i=t.length-1,r=t[e],s=t[i],a;if(s{e.d(n,{A:()=>i});function i(t){return+t}},16527:(t,n,e)=>{e.d(n,{A:()=>a,h:()=>s});var i=e(30352);var r=e(25758);const s=Symbol("implicit");function a(){var t=new i.B,n=[],e=[],o=s;function u(i){let r=t.get(i);if(r===undefined){if(o!==s)return o;t.set(i,r=n.push(i)-1)}return e[r%e.length]}u.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new i.B;for(const i of e){if(t.has(i))continue;t.set(i,n.push(i)-1)}return u};u.range=function(t){return arguments.length?(e=Array.from(t),u):e.slice()};u.unknown=function(t){return arguments.length?(o=t,u):o};u.copy=function(){return a(n,e).unknown(o)};r.C.apply(u,arguments);return u}},26698:(t,n,e)=>{e.d(n,{A:()=>h});var i=e(97119);var r=e(71688);var s=e(86093);var a=e(24626);var o=e(78209);var u=e(93391);function h(t,n,e,h){var c=(0,i.sG)(t,n,e),l;h=(0,r.A)(h==null?",f":h);switch(h.type){case"s":{var f=Math.max(Math.abs(t),Math.abs(n));if(h.precision==null&&!isNaN(l=(0,s.A)(c,f)))h.precision=l;return(0,a.s)(h,f)}case"":case"e":case"g":case"p":case"r":{if(h.precision==null&&!isNaN(l=(0,o.A)(c,Math.max(Math.abs(t),Math.abs(n)))))h.precision=l-(h.type==="e");break}case"f":case"%":{if(h.precision==null&&!isNaN(l=(0,u.A)(c)))h.precision=l-(h.type==="%")*2;break}}return(0,a.GP)(h)}},74725:(t,n,e)=>{e.d(n,{A:()=>v,B:()=>d});var i=e(20421);var r=e(42706);var s=e(77849);var a=e(61779);var o=e(20293);var u=e(9017);var h=e(23383);var c=e(61147);var l=e(82692);var f=e(52178);var _=e(25758);var p=e(60125);function y(t){return new Date(t)}function g(t){return t instanceof Date?+t:+new Date(+t)}function d(t,n,e,i,r,s,a,o,u,h){var c=(0,f.Ay)(),l=c.invert,_=c.domain;var v=h(".%L"),x=h(":%S"),w=h("%I:%M"),m=h("%I %p"),b=h("%a %d"),A=h("%b %d"),M=h("%B"),T=h("%Y");function k(t){return(u(t){e.d(n,{A:()=>_});var i=e(84653);var r=e(98247);var s=e(18226);function a(t){return t.innerRadius}function o(t){return t.outerRadius}function u(t){return t.startAngle}function h(t){return t.endAngle}function c(t){return t&&t.padAngle}function l(t,n,e,i,s,a,o,u){var h=e-t,c=i-n,l=o-s,f=u-a,_=f*h-l*c;if(_*_F*F+D*D)T=N,k=C;return{cx:T,cy:k,x01:-l,y01:-f,x11:T*(s/b-1),y11:k*(s/b-1)}}function _(){var t=a,n=o,e=(0,i.A)(0),_=null,p=u,y=h,g=c,d=null,v=(0,s.i)(x);function x(){var i,s,a=+t.apply(this,arguments),o=+n.apply(this,arguments),u=p.apply(this,arguments)-r.TW,h=y.apply(this,arguments)-r.TW,c=(0,r.tn)(h-u),x=h>u;if(!d)d=i=v();if(or.Ni))d.moveTo(0,0);else if(c>r.FA-r.Ni){d.moveTo(o*(0,r.gn)(u),o*(0,r.F8)(u));d.arc(0,0,o,u,h,!x);if(a>r.Ni){d.moveTo(a*(0,r.gn)(h),a*(0,r.F8)(h));d.arc(0,0,a,h,u,x)}}else{var w=u,m=h,b=u,A=h,M=c,T=c,k=g.apply(this,arguments)/2,N=k>r.Ni&&(_?+_.apply(this,arguments):(0,r.RZ)(a*a+o*o)),C=(0,r.jk)((0,r.tn)(o-a)/2,+e.apply(this,arguments)),$=C,U=C,F,D;if(N>r.Ni){var S=(0,r.qR)(N/a*(0,r.F8)(k)),P=(0,r.qR)(N/o*(0,r.F8)(k));if((M-=S*2)>r.Ni)S*=x?1:-1,b+=S,A-=S;else M=0,b=A=(u+h)/2;if((T-=P*2)>r.Ni)P*=x?1:-1,w+=P,m-=P;else T=0,w=m=(u+h)/2}var E=o*(0,r.gn)(w),R=o*(0,r.F8)(w),H=a*(0,r.gn)(A),Y=a*(0,r.F8)(A);if(C>r.Ni){var q=o*(0,r.gn)(m),L=o*(0,r.F8)(m),j=a*(0,r.gn)(b),z=a*(0,r.F8)(b),X;if(cr.Ni))d.moveTo(E,R);else if(U>r.Ni){F=f(j,z,E,R,o,U,x);D=f(q,L,H,Y,o,U,x);d.moveTo(F.cx+F.x01,F.cy+F.y01);if(Ur.Ni)||!(M>r.Ni))d.lineTo(H,Y);else if($>r.Ni){F=f(H,Y,q,L,a,-$,x);D=f(E,R,j,z,a,-$,x);d.lineTo(F.cx+F.x01,F.cy+F.y01);if(${e.d(n,{A:()=>r});var i=Array.prototype.slice;function r(t){return typeof t==="object"&&"length"in t?t:Array.from(t)}},84653:(t,n,e)=>{e.d(n,{A:()=>i});function i(t){return function n(){return t}}},24363:(t,n,e)=>{e.d(n,{Ay:()=>s,xO:()=>r,zx:()=>i});function i(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function r(t){this._context=t}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function(){switch(this._point){case 3:i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function s(t){return new r(t)}},82456:(t,n,e)=>{e.d(n,{A:()=>a});var i=e(71649);var r=e(24363);function s(t){this._context=t}s.prototype={areaStart:i.A,areaEnd:i.A,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN;this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2);this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3);this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3);this._context.closePath();break}case 3:{this.point(this._x2,this._y2);this.point(this._x3,this._y3);this.point(this._x4,this._y4);break}}},point:function(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._x2=t,this._y2=n;break;case 1:this._point=2;this._x3=t,this._y3=n;break;case 2:this._point=3;this._x4=t,this._y4=n;this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:(0,r.zx)(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function a(t){return new s(t)}},69683:(t,n,e)=>{e.d(n,{A:()=>s});var i=e(24363);function r(t){this._context=t}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:(0,i.zx)(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function s(t){return new r(t)}},54545:(t,n,e)=>{e.d(n,{A:()=>s});var i=e(24363);function r(t,n){this._basis=new i.xO(t);this._beta=n}r.prototype={lineStart:function(){this._x=[];this._y=[];this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0){var i=t[0],r=n[0],s=t[e]-i,a=n[e]-r,o=-1,u;while(++o<=e){u=o/e;this._basis.point(this._beta*t[o]+(1-this._beta)*(i+u*s),this._beta*n[o]+(1-this._beta)*(r+u*a))}}this._x=this._y=null;this._basis.lineEnd()},point:function(t,n){this._x.push(+t);this._y.push(+n)}};const s=function t(n){function e(t){return n===1?new i.xO(t):new r(t,n)}e.beta=function(n){return t(+n)};return e}(.85)},43793:(t,n,e)=>{e.d(n,{Ay:()=>s,vP:()=>r,zx:()=>i});function i(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function r(t,n){this._context=t;this._k=(1-n)/6}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:i(this,this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;this._x1=t,this._y1=n;break;case 2:this._point=3;default:i(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};const s=function t(n){function e(t){return new r(t,n)}e.tension=function(n){return t(+n)};return e}(0)},13893:(t,n,e)=>{e.d(n,{A:()=>a,L:()=>s});var i=e(71649);var r=e(43793);function s(t,n){this._context=t;this._k=(1-n)/6}s.prototype={areaStart:i.A,areaEnd:i.A,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3);this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3);this._context.closePath();break}case 3:{this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5);break}}},point:function(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._x3=t,this._y3=n;break;case 1:this._point=2;this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3;this._x5=t,this._y5=n;break;default:(0,r.zx)(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};const a=function t(n){function e(t){return new s(t,n)}e.tension=function(n){return t(+n)};return e}(0)},46457:(t,n,e)=>{e.d(n,{A:()=>s,H:()=>r});var i=e(43793);function r(t,n){this._context=t;this._k=(1-n)/6}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,i.zx)(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};const s=function t(n){function e(t){return new r(t,n)}e.tension=function(n){return t(+n)};return e}(0)},76413:(t,n,e)=>{e.d(n,{A:()=>o,z:()=>s});var i=e(98247);var r=e(43793);function s(t,n,e){var r=t._x1,s=t._y1,a=t._x2,o=t._y2;if(t._l01_a>i.Ni){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,h=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/h;s=(s*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/h}if(t._l23_a>i.Ni){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-n*t._l12_2a)/l;o=(o*c+t._y1*t._l23_2a-e*t._l12_2a)/l}t._context.bezierCurveTo(r,s,a,o,t._x2,t._y2)}function a(t,n){this._context=t;this._alpha=n}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(t,n){t=+t,n=+n;if(this._point){var e=this._x2-t,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+i*i,this._alpha))}switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:s(this,t,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};const o=function t(n){function e(t){return n?new a(t,n):new r.vP(t,0)}e.alpha=function(n){return t(+n)};return e}(.5)},25633:(t,n,e)=>{e.d(n,{A:()=>o});var i=e(13893);var r=e(71649);var s=e(76413);function a(t,n){this._context=t;this._alpha=n}a.prototype={areaStart:r.A,areaEnd:r.A,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3);this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3);this._context.closePath();break}case 3:{this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5);break}}},point:function(t,n){t=+t,n=+n;if(this._point){var e=this._x2-t,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+i*i,this._alpha))}switch(this._point){case 0:this._point=1;this._x3=t,this._y3=n;break;case 1:this._point=2;this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3;this._x5=t,this._y5=n;break;default:(0,s.z)(this,t,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};const o=function t(n){function e(t){return n?new a(t,n):new i.L(t,0)}e.alpha=function(n){return t(+n)};return e}(.5)},13309:(t,n,e)=>{e.d(n,{A:()=>a});var i=e(46457);var r=e(76413);function s(t,n){this._context=t;this._alpha=n}s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(t,n){t=+t,n=+n;if(this._point){var e=this._x2-t,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:(0,r.z)(this,t,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};const a=function t(n){function e(t){return n?new s(t,n):new i.H(t,0)}e.alpha=function(n){return t(+n)};return e}(.5)},71228:(t,n,e)=>{e.d(n,{A:()=>r});function i(t){this._context=t}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n);break}}};function r(t){return new i(t)}},43272:(t,n,e)=>{e.d(n,{A:()=>s});var i=e(71649);function r(t){this._context=t}r.prototype={areaStart:i.A,areaEnd:i.A,lineStart:function(){this._point=0},lineEnd:function(){if(this._point)this._context.closePath()},point:function(t,n){t=+t,n=+n;if(this._point)this._context.lineTo(t,n);else this._point=1,this._context.moveTo(t,n)}};function s(t){return new r(t)}},67694:(t,n,e)=>{e.d(n,{G:()=>c,N:()=>l});function i(t){return t<0?-1:1}function r(t,n,e){var r=t._x1-t._x0,s=n-t._x1,a=(t._y1-t._y0)/(r||s<0&&-0),o=(e-t._y1)/(s||r<0&&-0),u=(a*s+o*r)/(r+s);return(i(a)+i(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function s(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function a(t,n,e){var i=t._x0,r=t._y0,s=t._x1,a=t._y1,o=(s-i)/3;t._context.bezierCurveTo(i+o,r+o*n,s-o,a-o*e,s,a)}function o(t){this._context=t}o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN;this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:a(this,this._t0,s(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(t,n){var e=NaN;t=+t,n=+n;if(t===this._x1&&n===this._y1)return;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;a(this,s(this,e=r(this,t,n)),e);break;default:a(this,this._t0,e=r(this,t,n));break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n;this._t0=e}};function u(t){this._context=new h(t)}(u.prototype=Object.create(o.prototype)).point=function(t,n){o.prototype.point.call(this,n,t)};function h(t){this._context=t}h.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,i,r,s){this._context.bezierCurveTo(n,t,i,e,s,r)}};function c(t){return new o(t)}function l(t){return new u(t)}},29944:(t,n,e)=>{e.d(n,{A:()=>s});function i(t){this._context=t}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[];this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e){this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]);if(e===2){this._context.lineTo(t[1],n[1])}else{var i=r(t),s=r(n);for(var a=0,o=1;o=0;--n)r[n]=(a[n]-r[n+1])/s[n];s[e-1]=(t[e]+r[e-1])/2;for(n=0;n{e.d(n,{Ay:()=>r,Ko:()=>s,Ps:()=>a});function i(t,n){this._context=t;this._t=n}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN;this._point=0},lineEnd:function(){if(0=0)this._t=1-this._t,this._line=1-this._line},point:function(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:{if(this._t<=0){this._context.lineTo(this._x,n);this._context.lineTo(t,n)}else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y);this._context.lineTo(e,n)}break}}this._x=t,this._y=n}};function r(t){return new i(t,.5)}function s(t){return new i(t,0)}function a(t){return new i(t,1)}},58679:(t,n,e)=>{e.d(n,{A:()=>u});var i=e(12736);var r=e(84653);var s=e(71228);var a=e(18226);var o=e(59835);function u(t,n){var e=(0,r.A)(true),u=null,h=s.A,c=null,l=(0,a.i)(f);t=typeof t==="function"?t:t===undefined?o.x:(0,r.A)(t);n=typeof n==="function"?n:n===undefined?o.y:(0,r.A)(n);function f(r){var s,a=(r=(0,i.A)(r)).length,o,f=false,_;if(u==null)c=h(_=l());for(s=0;s<=a;++s){if(!(s{e.d(n,{F8:()=>u,FA:()=>_,FP:()=>r,HQ:()=>p,Ni:()=>c,RZ:()=>h,T9:()=>a,TW:()=>f,gn:()=>s,jk:()=>o,pi:()=>l,qR:()=>y,tn:()=>i});const i=Math.abs;const r=Math.atan2;const s=Math.cos;const a=Math.max;const o=Math.min;const u=Math.sin;const h=Math.sqrt;const c=1e-12;const l=Math.PI;const f=l/2;const _=2*l;function p(t){return t>1?0:t<-1?l:Math.acos(t)}function y(t){return t>=1?f:t<=-1?-f:Math.asin(t)}},71649:(t,n,e)=>{e.d(n,{A:()=>i});function i(){}},18226:(t,n,e)=>{e.d(n,{i:()=>r});var i=e(69450);function r(t){let n=3;t.digits=function(e){if(!arguments.length)return n;if(e==null){n=null}else{const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);n=t}return t};return()=>new i.wA(n)}},59835:(t,n,e)=>{e.d(n,{x:()=>i,y:()=>r});function i(t){return t[0]}function r(t){return t[1]}},82692:(t,n,e)=>{e.d(n,{DC:()=>s,GY:()=>u,T6:()=>a,aL:()=>o});var i=e(77613);var r;var s;var a;var o;var u;h({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function h(t){r=(0,i.A)(t);s=r.format;a=r.parse;o=r.utcFormat;u=r.utcParse;return r}},77613:(t,n,e)=>{e.d(n,{A:()=>h});var i=e(61779);var r=e(20293);var s=e(42706);function a(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);n.setFullYear(t.y);return n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function o(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));n.setUTCFullYear(t.y);return n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function u(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}function h(t){var n=t.dateTime,e=t.date,s=t.time,h=t.periods,l=t.days,f=t.shortDays,_=t.months,p=t.shortMonths;var y=g(h),Q=d(h),yt=g(l),Nt=d(l),Ct=g(f),$t=d(f),Ut=g(_),Ft=d(_),Dt=g(p),St=d(p);var Pt={a:Zt,A:Qt,b:Bt,B:Wt,c:null,d:Y,e:Y,f:X,g:tt,G:et,H:q,I:L,j,L:z,m:I,M:O,p:Vt,q:Kt,Q:Tt,s:kt,S:G,u:J,U:Z,V:B,w:W,W:V,x:null,X:null,y:K,Y:nt,Z:it,"%":Mt};var Et={a:tn,A:nn,b:en,B:rn,c:null,d:rt,e:rt,f:ht,g:wt,G:bt,H:st,I:at,j:ot,L:ut,m:ct,M:lt,p:sn,q:an,Q:Tt,s:kt,S:ft,u:_t,U:pt,V:gt,w:dt,W:vt,x:null,X:null,y:xt,Y:mt,Z:At,"%":Mt};var Rt={a:jt,A:zt,b:Xt,B:It,c:Ot,d:C,e:C,f:P,g:M,G:A,H:U,I:U,j:$,L:S,m:N,M:F,p:Lt,q:k,Q:R,s:H,S:D,u:x,U:w,V:m,w:v,W:b,x:Gt,X:Jt,y:M,Y:A,Z:T,"%":E};Pt.x=Ht(e,Pt);Pt.X=Ht(s,Pt);Pt.c=Ht(n,Pt);Et.x=Ht(e,Et);Et.X=Ht(s,Et);Et.c=Ht(n,Et);function Ht(t,n){return function(e){var i=[],r=-1,s=0,a=t.length,o,u,h;if(!(e instanceof Date))e=new Date(+e);while(++r53)return null;if(!("w"in s))s.w=1;if("Z"in s){c=o(u(s.y,0,1)),l=c.getUTCDay();c=l>4||l===0?i.rt.ceil(c):(0,i.rt)(c);c=r.dA.offset(c,(s.V-1)*7);s.y=c.getUTCFullYear();s.m=c.getUTCMonth();s.d=c.getUTCDate()+(s.w+6)%7}else{c=a(u(s.y,0,1)),l=c.getDay();c=l>4||l===0?i.AB.ceil(c):(0,i.AB)(c);c=r.UA.offset(c,(s.V-1)*7);s.y=c.getFullYear();s.m=c.getMonth();s.d=c.getDate()+(s.w+6)%7}}else if("W"in s||"U"in s){if(!("w"in s))s.w="u"in s?s.u%7:"W"in s?1:0;l="Z"in s?o(u(s.y,0,1)).getUTCDay():a(u(s.y,0,1)).getDay();s.m=0;s.d="W"in s?(s.w+6)%7+s.W*7-(l+5)%7:s.w+s.U*7-(l+6)%7}if("Z"in s){s.H+=s.Z/100|0;s.M+=s.Z%100;return o(s)}return a(s)}}function qt(t,n,e,i){var r=0,s=n.length,a=e.length,o,u;while(r=a)return-1;o=n.charCodeAt(r++);if(o===37){o=n.charAt(r++);u=Rt[o in c?n.charAt(r++):o];if(!u||(i=u(t,e,i))<0)return-1}else if(o!=e.charCodeAt(i++)){return-1}}return i}function Lt(t,n,e){var i=y.exec(n.slice(e));return i?(t.p=Q.get(i[0].toLowerCase()),e+i[0].length):-1}function jt(t,n,e){var i=Ct.exec(n.slice(e));return i?(t.w=$t.get(i[0].toLowerCase()),e+i[0].length):-1}function zt(t,n,e){var i=yt.exec(n.slice(e));return i?(t.w=Nt.get(i[0].toLowerCase()),e+i[0].length):-1}function Xt(t,n,e){var i=Dt.exec(n.slice(e));return i?(t.m=St.get(i[0].toLowerCase()),e+i[0].length):-1}function It(t,n,e){var i=Ut.exec(n.slice(e));return i?(t.m=Ft.get(i[0].toLowerCase()),e+i[0].length):-1}function Ot(t,e,i){return qt(t,n,e,i)}function Gt(t,n,i){return qt(t,e,n,i)}function Jt(t,n,e){return qt(t,s,n,e)}function Zt(t){return f[t.getDay()]}function Qt(t){return l[t.getDay()]}function Bt(t){return p[t.getMonth()]}function Wt(t){return _[t.getMonth()]}function Vt(t){return h[+(t.getHours()>=12)]}function Kt(t){return 1+~~(t.getMonth()/3)}function tn(t){return f[t.getUTCDay()]}function nn(t){return l[t.getUTCDay()]}function en(t){return p[t.getUTCMonth()]}function rn(t){return _[t.getUTCMonth()]}function sn(t){return h[+(t.getUTCHours()>=12)]}function an(t){return 1+~~(t.getUTCMonth()/3)}return{format:function(t){var n=Ht(t+="",Pt);n.toString=function(){return t};return n},parse:function(t){var n=Yt(t+="",false);n.toString=function(){return t};return n},utcFormat:function(t){var n=Ht(t+="",Et);n.toString=function(){return t};return n},utcParse:function(t){var n=Yt(t+="",true);n.toString=function(){return t};return n}}}var c={"-":"",_:" ",0:"0"},l=/^\s*\d+/,f=/^%/,_=/[\\^$*+?|[\]().{}]/g;function p(t,n,e){var i=t<0?"-":"",r=(i?-t:t)+"",s=r.length;return i+(s[t.toLowerCase(),n])))}function v(t,n,e){var i=l.exec(n.slice(e,e+1));return i?(t.w=+i[0],e+i[0].length):-1}function x(t,n,e){var i=l.exec(n.slice(e,e+1));return i?(t.u=+i[0],e+i[0].length):-1}function w(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.U=+i[0],e+i[0].length):-1}function m(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.V=+i[0],e+i[0].length):-1}function b(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.W=+i[0],e+i[0].length):-1}function A(t,n,e){var i=l.exec(n.slice(e,e+4));return i?(t.y=+i[0],e+i[0].length):-1}function M(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),e+i[0].length):-1}function T(t,n,e){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),e+i[0].length):-1}function k(t,n,e){var i=l.exec(n.slice(e,e+1));return i?(t.q=i[0]*3-3,e+i[0].length):-1}function N(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.m=i[0]-1,e+i[0].length):-1}function C(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.d=+i[0],e+i[0].length):-1}function $(t,n,e){var i=l.exec(n.slice(e,e+3));return i?(t.m=0,t.d=+i[0],e+i[0].length):-1}function U(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.H=+i[0],e+i[0].length):-1}function F(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.M=+i[0],e+i[0].length):-1}function D(t,n,e){var i=l.exec(n.slice(e,e+2));return i?(t.S=+i[0],e+i[0].length):-1}function S(t,n,e){var i=l.exec(n.slice(e,e+3));return i?(t.L=+i[0],e+i[0].length):-1}function P(t,n,e){var i=l.exec(n.slice(e,e+6));return i?(t.L=Math.floor(i[0]/1e3),e+i[0].length):-1}function E(t,n,e){var i=f.exec(n.slice(e,e+1));return i?e+i[0].length:-1}function R(t,n,e){var i=l.exec(n.slice(e));return i?(t.Q=+i[0],e+i[0].length):-1}function H(t,n,e){var i=l.exec(n.slice(e));return i?(t.s=+i[0],e+i[0].length):-1}function Y(t,n){return p(t.getDate(),n,2)}function q(t,n){return p(t.getHours(),n,2)}function L(t,n){return p(t.getHours()%12||12,n,2)}function j(t,n){return p(1+r.UA.count((0,s.he)(t),t),n,3)}function z(t,n){return p(t.getMilliseconds(),n,3)}function X(t,n){return z(t,n)+"000"}function I(t,n){return p(t.getMonth()+1,n,2)}function O(t,n){return p(t.getMinutes(),n,2)}function G(t,n){return p(t.getSeconds(),n,2)}function J(t){var n=t.getDay();return n===0?7:n}function Z(t,n){return p(i.YP.count((0,s.he)(t)-1,t),n,2)}function Q(t){var n=t.getDay();return n>=4||n===0?(0,i.Mo)(t):i.Mo.ceil(t)}function B(t,n){t=Q(t);return p(i.Mo.count((0,s.he)(t),t)+((0,s.he)(t).getDay()===4),n,2)}function W(t){return t.getDay()}function V(t,n){return p(i.AB.count((0,s.he)(t)-1,t),n,2)}function K(t,n){return p(t.getFullYear()%100,n,2)}function tt(t,n){t=Q(t);return p(t.getFullYear()%100,n,2)}function nt(t,n){return p(t.getFullYear()%1e4,n,4)}function et(t,n){var e=t.getDay();t=e>=4||e===0?(0,i.Mo)(t):i.Mo.ceil(t);return p(t.getFullYear()%1e4,n,4)}function it(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+p(n/60|0,"0",2)+p(n%60,"0",2)}function rt(t,n){return p(t.getUTCDate(),n,2)}function st(t,n){return p(t.getUTCHours(),n,2)}function at(t,n){return p(t.getUTCHours()%12||12,n,2)}function ot(t,n){return p(1+r.dA.count((0,s.Mb)(t),t),n,3)}function ut(t,n){return p(t.getUTCMilliseconds(),n,3)}function ht(t,n){return ut(t,n)+"000"}function ct(t,n){return p(t.getUTCMonth()+1,n,2)}function lt(t,n){return p(t.getUTCMinutes(),n,2)}function ft(t,n){return p(t.getUTCSeconds(),n,2)}function _t(t){var n=t.getUTCDay();return n===0?7:n}function pt(t,n){return p(i.Hl.count((0,s.Mb)(t)-1,t),n,2)}function yt(t){var n=t.getUTCDay();return n>=4||n===0?(0,i.pT)(t):i.pT.ceil(t)}function gt(t,n){t=yt(t);return p(i.pT.count((0,s.Mb)(t),t)+((0,s.Mb)(t).getUTCDay()===4),n,2)}function dt(t){return t.getUTCDay()}function vt(t,n){return p(i.rt.count((0,s.Mb)(t)-1,t),n,2)}function xt(t,n){return p(t.getUTCFullYear()%100,n,2)}function wt(t,n){t=yt(t);return p(t.getUTCFullYear()%100,n,2)}function mt(t,n){return p(t.getUTCFullYear()%1e4,n,4)}function bt(t,n){var e=t.getUTCDay();t=e>=4||e===0?(0,i.pT)(t):i.pT.ceil(t);return p(t.getUTCFullYear()%1e4,n,4)}function At(){return"+0000"}function Mt(){return"%"}function Tt(t){return+t}function kt(t){return Math.floor(+t/1e3)}},20293:(t,n,e)=>{e.d(n,{TW:()=>h,UA:()=>s,dA:()=>o});var i=e(12834);var r=e(29551);const s=(0,i.f)((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*r.rR)/r.Nm),(t=>t.getDate()-1));const a=s.range;const o=(0,i.f)((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/r.Nm),(t=>t.getUTCDate()-1));const u=o.range;const h=(0,i.f)((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/r.Nm),(t=>Math.floor(t/r.Nm)));const c=h.range},29551:(t,n,e)=>{e.d(n,{Fq:()=>o,JJ:()=>s,MP:()=>h,Nm:()=>a,Pv:()=>u,Tt:()=>i,rR:()=>r});const i=1e3;const r=i*60;const s=r*60;const a=s*24;const o=a*7;const u=a*30;const h=a*365},9017:(t,n,e)=>{e.d(n,{Ag:()=>s,pz:()=>o});var i=e(12834);var r=e(29551);const s=(0,i.f)((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*r.Tt-t.getMinutes()*r.rR)}),((t,n)=>{t.setTime(+t+n*r.JJ)}),((t,n)=>(n-t)/r.JJ),(t=>t.getHours()));const a=s.range;const o=(0,i.f)((t=>{t.setUTCMinutes(0,0,0)}),((t,n)=>{t.setTime(+t+n*r.JJ)}),((t,n)=>(n-t)/r.JJ),(t=>t.getUTCHours()));const u=o.range},12834:(t,n,e)=>{e.d(n,{f:()=>s});const i=new Date,r=new Date;function s(t,n,e,a){function o(n){return t(n=arguments.length===0?new Date:new Date(+n)),n}o.floor=n=>(t(n=new Date(+n)),n);o.ceil=e=>(t(e=new Date(e-1)),n(e,1),t(e),e);o.round=t=>{const n=o(t),e=o.ceil(t);return t-n(n(t=new Date(+t),e==null?1:Math.floor(e)),t);o.range=(e,i,r)=>{const s=[];e=o.ceil(e);r=r==null?1:Math.floor(r);if(!(e0))return s;let a;do{s.push(a=new Date(+e)),n(e,r),t(e)}while(as((n=>{if(n>=n)while(t(n),!e(n))n.setTime(n-1)}),((t,i)=>{if(t>=t){if(i<0)while(++i<=0){while(n(t,-1),!e(t)){}}else while(--i>=0){while(n(t,+1),!e(t)){}}}}));if(e){o.count=(n,s)=>{i.setTime(+n),r.setTime(+s);t(i),t(r);return Math.floor(e(i,r))};o.every=t=>{t=Math.floor(t);return!isFinite(t)||!(t>0)?null:!(t>1)?o:o.filter(a?n=>a(n)%t===0:n=>o.count(0,n)%t===0)}}return o}},26530:(t,n,e)=>{e.d(n,{y:()=>r});var i=e(12834);const r=(0,i.f)((()=>{}),((t,n)=>{t.setTime(+t+n)}),((t,n)=>n-t));r.every=t=>{t=Math.floor(t);if(!isFinite(t)||!(t>0))return null;if(!(t>1))return r;return(0,i.f)((n=>{n.setTime(Math.floor(n/t)*t)}),((n,e)=>{n.setTime(+n+e*t)}),((n,e)=>(e-n)/t))};const s=r.range},23383:(t,n,e)=>{e.d(n,{vD:()=>o,wX:()=>s});var i=e(12834);var r=e(29551);const s=(0,i.f)((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*r.Tt)}),((t,n)=>{t.setTime(+t+n*r.rR)}),((t,n)=>(n-t)/r.rR),(t=>t.getMinutes()));const a=s.range;const o=(0,i.f)((t=>{t.setUTCSeconds(0,0)}),((t,n)=>{t.setTime(+t+n*r.rR)}),((t,n)=>(n-t)/r.rR),(t=>t.getUTCMinutes()));const u=o.range},77849:(t,n,e)=>{e.d(n,{R6:()=>a,Ui:()=>r});var i=e(12834);const r=(0,i.f)((t=>{t.setDate(1);t.setHours(0,0,0,0)}),((t,n)=>{t.setMonth(t.getMonth()+n)}),((t,n)=>n.getMonth()-t.getMonth()+(n.getFullYear()-t.getFullYear())*12),(t=>t.getMonth()));const s=r.range;const a=(0,i.f)((t=>{t.setUTCDate(1);t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)}),((t,n)=>n.getUTCMonth()-t.getUTCMonth()+(n.getUTCFullYear()-t.getUTCFullYear())*12),(t=>t.getUTCMonth()));const o=a.range},61147:(t,n,e)=>{e.d(n,{R:()=>s});var i=e(12834);var r=e(29551);const s=(0,i.f)((t=>{t.setTime(t-t.getMilliseconds())}),((t,n)=>{t.setTime(+t+n*r.Tt)}),((t,n)=>(n-t)/r.Tt),(t=>t.getUTCSeconds()));const a=s.range},20421:(t,n,e)=>{e.d(n,{$Z:()=>y,Cf:()=>d,lk:()=>g,yE:()=>v});var i=e(9791);var r=e(97119);var s=e(29551);var a=e(26530);var o=e(61147);var u=e(23383);var h=e(9017);var c=e(20293);var l=e(61779);var f=e(77849);var _=e(42706);function p(t,n,e,u,h,c){const l=[[o.R,1,s.Tt],[o.R,5,5*s.Tt],[o.R,15,15*s.Tt],[o.R,30,30*s.Tt],[c,1,s.rR],[c,5,5*s.rR],[c,15,15*s.rR],[c,30,30*s.rR],[h,1,s.JJ],[h,3,3*s.JJ],[h,6,6*s.JJ],[h,12,12*s.JJ],[u,1,s.Nm],[u,2,2*s.Nm],[e,1,s.Fq],[n,1,s.Pv],[n,3,3*s.Pv],[t,1,s.MP]];function f(t,n,e){const i=nt)).right(l,u);if(h===l.length)return t.every((0,r.sG)(n/s.MP,e/s.MP,o));if(h===0)return a.y.every(Math.max((0,r.sG)(n,e,o),1));const[c,f]=l[u/l[h-1][2]{e.d(n,{AB:()=>o,Gu:()=>h,Hl:()=>m,Mo:()=>c,PG:()=>u,TU:()=>l,YP:()=>a,pT:()=>T,rG:()=>f,rt:()=>b});var i=e(12834);var r=e(29551);function s(t){return(0,i.f)((n=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7);n.setHours(0,0,0,0)}),((t,n)=>{t.setDate(t.getDate()+n*7)}),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*r.rR)/r.Fq))}const a=s(0);const o=s(1);const u=s(2);const h=s(3);const c=s(4);const l=s(5);const f=s(6);const _=a.range;const p=o.range;const y=u.range;const g=h.range;const d=c.range;const v=l.range;const x=f.range;function w(t){return(0,i.f)((n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7);n.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)}),((t,n)=>(n-t)/r.Fq))}const m=w(0);const b=w(1);const A=w(2);const M=w(3);const T=w(4);const k=w(5);const N=w(6);const C=m.range;const $=b.range;const U=A.range;const F=M.range;const D=T.range;const S=k.range;const P=N.range},42706:(t,n,e)=>{e.d(n,{Mb:()=>a,he:()=>r});var i=e(12834);const r=(0,i.f)((t=>{t.setMonth(0,1);t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n)}),((t,n)=>n.getFullYear()-t.getFullYear()),(t=>t.getFullYear()));r.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:(0,i.f)((n=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t);n.setMonth(0,1);n.setHours(0,0,0,0)}),((n,e)=>{n.setFullYear(n.getFullYear()+e*t)}));const s=r.range;const a=(0,i.f)((t=>{t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)}),((t,n)=>n.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));a.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:(0,i.f)((n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t);n.setUTCMonth(0,1);n.setUTCHours(0,0,0,0)}),((n,e)=>{n.setUTCFullYear(n.getUTCFullYear()+e*t)}));const o=a.range},14036:(t,n,e)=>{e.d(n,{M4:()=>g,O1:()=>d,tB:()=>p});var i=0,r=0,s=0,a=1e3,o,u,h=0,c=0,l=0,f=typeof performance==="object"&&performance.now?performance:Date,_=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function p(){return c||(_(y),c=f.now()+l)}function y(){c=0}function g(){this._call=this._time=this._next=null}g.prototype=d.prototype={constructor:g,restart:function(t,n,e){if(typeof t!=="function")throw new TypeError("callback is not a function");e=(e==null?p():+e)+(n==null?0:+n);if(!this._next&&u!==this){if(u)u._next=this;else o=this;u=this}this._call=t;this._time=e;b()},stop:function(){if(this._call){this._call=null;this._time=Infinity;b()}}};function d(t,n,e){var i=new g;i.restart(t,n,e);return i}function v(){p();++i;var t=o,n;while(t){if((n=c-t._time)>=0)t._call.call(undefined,n);t=t._next}--i}function x(){c=(h=f.now())+l;i=r=0;try{v()}finally{i=0;m();c=0}}function w(){var t=f.now(),n=t-h;if(n>a)l-=n,h=t}function m(){var t,n=o,e,i=Infinity;while(n){if(n._call){if(i>n._time)i=n._time;t=n,n=n._next}else{e=n._next,n._next=null;n=t?t._next=e:o=e}}u=t;b(i)}function b(t){if(i)return;if(r)r=clearTimeout(r);var n=t-c;if(n>24){if(t{e.d(n,{B:()=>i,v:()=>r});class i extends Map{constructor(t,n=u){super();Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}});if(t!=null)for(const[e,i]of t)this.set(e,i)}get(t){return super.get(s(this,t))}has(t){return super.has(s(this,t))}set(t,n){return super.set(a(this,t),n)}delete(t){return super.delete(o(this,t))}}class r extends Set{constructor(t,n=u){super();Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}});if(t!=null)for(const e of t)this.add(e)}has(t){return super.has(s(this,t))}add(t){return super.add(a(this,t))}delete(t){return super.delete(o(this,t))}}function s({_intern:t,_key:n},e){const i=n(e);return t.has(i)?t.get(i):e}function a({_intern:t,_key:n},e){const i=n(e);if(t.has(i))return t.get(i);t.set(i,e);return e}function o({_intern:t,_key:n},e){const i=n(e);if(t.has(i)){e=t.get(e);t.delete(i)}return e}function u(t){return t!==null&&typeof t==="object"?t.valueOf():t}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/870673df72e70f87c91a.woff b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/870673df72e70f87c91a.woff new file mode 100644 index 0000000000000000000000000000000000000000..175301efed3ab7a99605d591e2ddcbbf044c833e Binary files /dev/null and b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/870673df72e70f87c91a.woff differ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8753.56da17175b663d61f9d3.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8753.56da17175b663d61f9d3.js new file mode 100644 index 0000000000000000000000000000000000000000..c9f7e6aab86003349203d719939393827bc5b8a9 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8753.56da17175b663d61f9d3.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8753],{58753:(e,t,n)=>{n.r(t);n.d(t,{sparql:()=>x});var r;function a(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var i=a(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","iri","uri","bnode","count","sum","min","max","avg","sample","group_concat","rand","abs","ceil","floor","round","concat","substr","strlen","replace","ucase","lcase","encode_for_uri","contains","strstarts","strends","strbefore","strafter","year","month","day","hours","minutes","seconds","timezone","tz","now","uuid","struuid","md5","sha1","sha256","sha384","sha512","coalesce","if","strlang","strdt","isnumeric","regex","exists","isblank","isliteral","a","bind"]);var u=a(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","true","false","with","data","copy","to","move","add","create","drop","clear","load","into"]);var o=/[*+\-<>=&|\^\/!\?]/;var s="[A-Za-z_\\-0-9]";var l=new RegExp("[A-Za-z]");var c=new RegExp("(("+s+"|\\.)*("+s+"))?:");function f(e,t){var n=e.next();r=null;if(n=="$"||n=="?"){if(n=="?"&&e.match(/\s/,false)){return"operator"}e.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/);return"variableName.local"}else if(n=="<"&&!e.match(/^[\s\u00a0=]/,false)){e.match(/^[^\s\u00a0>]*>?/);return"atom"}else if(n=='"'||n=="'"){t.tokenize=d(n);return t.tokenize(e,t)}else if(/[{}\(\),\.;\[\]]/.test(n)){r=n;return"bracket"}else if(n=="#"){e.skipToEnd();return"comment"}else if(o.test(n)){return"operator"}else if(n==":"){p(e);return"atom"}else if(n=="@"){e.eatWhile(/[a-z\d\-]/i);return"meta"}else if(l.test(n)&&e.match(c)){p(e);return"atom"}e.eatWhile(/[_\w\d]/);var a=e.current();if(i.test(a))return"builtin";else if(u.test(a))return"keyword";else return"variable"}function p(e){e.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i)}function d(e){return function(t,n){var r=false,a;while((a=t.next())!=null){if(a==e&&!r){n.tokenize=f;break}r=!r&&a=="\\"}return"string"}}function m(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function F(e){e.indent=e.context.indent;e.context=e.context.prev}const x={name:"sparql",startState:function(){return{tokenize:f,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()){if(t.context&&t.context.align==null)t.context.align=false;t.indent=e.indentation()}if(e.eatSpace())return null;var n=t.tokenize(e,t);if(n!="comment"&&t.context&&t.context.align==null&&t.context.type!="pattern"){t.context.align=true}if(r=="(")m(t,")",e.column());else if(r=="[")m(t,"]",e.column());else if(r=="{")m(t,"}",e.column());else if(/[\]\}\)]/.test(r)){while(t.context&&t.context.type=="pattern")F(t);if(t.context&&r==t.context.type){F(t);if(r=="}"&&t.context&&t.context.type=="pattern")F(t)}}else if(r=="."&&t.context&&t.context.type=="pattern")F(t);else if(/atom|string|variable/.test(n)&&t.context){if(/[\}\]]/.test(t.context.type))m(t,"pattern",e.column());else if(t.context.type=="pattern"&&!t.context.align){t.context.align=true;t.context.col=e.column()}}return n},indent:function(e,t,n){var r=t&&t.charAt(0);var a=e.context;if(/[\]\}]/.test(r))while(a&&a.type=="pattern")a=a.prev;var i=a&&r==a.type;if(!a)return 0;else if(a.type=="pattern")return a.col;else if(a.align)return a.col+(i?0:1);else return a.indent+(i?0:n.unit)},languageData:{commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8778.a3883f9acac5a903d6be.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8778.a3883f9acac5a903d6be.js new file mode 100644 index 0000000000000000000000000000000000000000..dd72c5614fcc0030fdad3bf1014c9a29d07f2e9e --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8778.a3883f9acac5a903d6be.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8778,5606],{65606:e=>{var t=e.exports={};var r;var n;function s(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){r=setTimeout}else{r=s}}catch(e){r=s}try{if(typeof clearTimeout==="function"){n=clearTimeout}else{n=o}}catch(e){n=o}})();function a(e){if(r===setTimeout){return setTimeout(e,0)}if((r===s||!r)&&setTimeout){r=setTimeout;return setTimeout(e,0)}try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function i(e){if(n===clearTimeout){return clearTimeout(e)}if((n===o||!n)&&clearTimeout){n=clearTimeout;return clearTimeout(e)}try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}var l=[];var c=false;var u;var p=-1;function f(){if(!c||!u){return}c=false;if(u.length){l=u.concat(l)}else{p=-1}if(l.length){h()}}function h(){if(c){return}var e=a(f);c=true;var t=l.length;while(t){u=l;l=[];while(++p1){for(var r=1;r{!function(t,n){true?e.exports=n(r(44914)):0}(r.g,(function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)r.d(n,s,function(t){return e[t]}.bind(null,s));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}([function(e,t,r){e.exports=r(2)()},function(t,r){t.exports=e},function(e,t,r){"use strict";var n=r(3);function s(){}function o(){}o.resetWarningCache=s,e.exports=function(){function e(e,t,r,s,o,a){if(a!==n){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:s};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,r,n){"use strict";n.r(r);var s=n(1),o=n.n(s),a=n(0),i=n.n(a);function l(){return(l=Object.assign||function(e){for(var t=1;t0&&t.handlePageSelected(r-1,e)})),N(R(t),"handleNextPage",(function(e){var r=t.state.selected,n=t.props.pageCount;e.preventDefault?e.preventDefault():e.returnValue=!1,rs-n/2?d=n-(g=s-u):us-a||f>=u-d&&f<=u+g?e.push(v(f)):i&&e[e.length-1]!==m&&(m=o.a.createElement(h,{key:f,breakLabel:i,breakClassName:l,breakLinkClassName:c,breakHandler:t.handleBreakClick.bind(null,f),getEventListener:t.getEventListener}),e.push(m))}return e})),r=e.initialPage?e.initialPage:e.forcePage?e.forcePage:0,t.state={selected:r},t}return t=a,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.initialPage,r=e.disableInitialCallback,n=e.extraAriaContext;void 0===t||r||this.callCallback(t),n&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead.")}},{key:"componentDidUpdate",value:function(e){void 0!==this.props.forcePage&&this.props.forcePage!==e.forcePage&&this.setState({selected:this.props.forcePage})}},{key:"getForwardJump",value:function(){var e=this.state.selected,t=this.props,r=t.pageCount,n=e+t.pageRangeDisplayed;return n>=r?r-1:n}},{key:"getBackwardJump",value:function(){var e=this.state.selected-this.props.pageRangeDisplayed;return e<0?0:e}},{key:"hrefBuilder",value:function(e){var t=this.props,r=t.hrefBuilder,n=t.pageCount;if(r&&e!==this.state.selected&&e>=0&&e=0&&e{const n=Symbol("SemVer ANY");class s{static get ANY(){return n}constructor(e,t){t=o(t);if(e instanceof s){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");c("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===n){this.value=""}else{this.value=this.operator+this.semver.version}c("comp",this)}parse(e){const t=this.options.loose?a[i.COMPARATORLOOSE]:a[i.COMPARATOR];const r=e.match(t);if(!r){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=n}else{this.semver=new u(r[2],this.options.loose)}}toString(){return this.value}test(e){c("Comparator.test",e,this.options.loose);if(this.semver===n||e===n){return true}if(typeof e==="string"){try{e=new u(e,this.options)}catch(t){return false}}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof s)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new p(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new p(this.value,t).test(e.semver)}t=o(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=s;const o=r(98587);const{safeRe:a,t:i}=r(99718);const l=r(72111);const c=r(57272);const u=r(31527);const p=r(78311)},78311:(e,t,r)=>{const n=/\s+/g;class s{constructor(e,t){t=i(t);if(e instanceof s){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new s(e.raw,t)}}if(e instanceof l){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(n," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!v(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&L(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e0){this.formatted+="||"}const t=this.set[e];for(let e=0;e0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&d)|(this.options.loose&&g);const r=t+":"+e;const n=a.get(r);if(n){return n}const s=this.options.loose;const o=s?p[f.HYPHENRANGELOOSE]:p[f.HYPHENRANGE];e=e.replace(o,A(this.options.includePrerelease));c("hyphen replace",e);e=e.replace(p[f.COMPARATORTRIM],h);c("comparator trim",e);e=e.replace(p[f.TILDETRIM],E);c("tilde trim",e);e=e.replace(p[f.CARETTRIM],m);c("caret trim",e);let i=e.split(" ").map((e=>$(e,this.options))).join(" ").split(/\s+/).map((e=>C(e,this.options)));if(s){i=i.filter((e=>{c("loose invalid filter",e,this.options);return!!e.match(p[f.COMPARATORLOOSE])}))}c("range list",i);const u=new Map;const L=i.map((e=>new l(e,this.options)));for(const a of L){if(v(a)){return[a]}u.set(a.value,a)}if(u.size>1&&u.has("")){u.delete("")}const R=[...u.values()];a.set(r,R);return R}intersects(e,t){if(!(e instanceof s)){throw new TypeError("a Range is required")}return this.set.some((r=>R(r,t)&&e.set.some((e=>R(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new u(e,this.options)}catch(t){return false}}for(let r=0;re.value==="<0.0.0-0";const L=e=>e.value==="";const R=(e,t)=>{let r=true;const n=e.slice();let s=n.pop();while(r&&n.length){r=n.every((e=>s.intersects(e,t)));s=n.pop()}return r};const $=(e,t)=>{c("comp",e,t);e=O(e,t);c("caret",e);e=I(e,t);c("tildes",e);e=T(e,t);c("xrange",e);e=w(e,t);c("stars",e);return e};const N=e=>!e||e.toLowerCase()==="x"||e==="*";const I=(e,t)=>e.trim().split(/\s+/).map((e=>b(e,t))).join(" ");const b=(e,t)=>{const r=t.loose?p[f.TILDELOOSE]:p[f.TILDE];return e.replace(r,((t,r,n,s,o)=>{c("tilde",e,t,r,n,s,o);let a;if(N(r)){a=""}else if(N(n)){a=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(N(s)){a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`}else if(o){c("replaceTilde pr",o);a=`>=${r}.${n}.${s}-${o} <${r}.${+n+1}.0-0`}else{a=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`}c("tilde return",a);return a}))};const O=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" ");const y=(e,t)=>{c("caret",e,t);const r=t.loose?p[f.CARETLOOSE]:p[f.CARET];const n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,o,a)=>{c("caret",e,t,r,s,o,a);let i;if(N(r)){i=""}else if(N(s)){i=`>=${r}.0.0${n} <${+r+1}.0.0-0`}else if(N(o)){if(r==="0"){i=`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`}else{i=`>=${r}.${s}.0${n} <${+r+1}.0.0-0`}}else if(a){c("replaceCaret pr",a);if(r==="0"){if(s==="0"){i=`>=${r}.${s}.${o}-${a} <${r}.${s}.${+o+1}-0`}else{i=`>=${r}.${s}.${o}-${a} <${r}.${+s+1}.0-0`}}else{i=`>=${r}.${s}.${o}-${a} <${+r+1}.0.0-0`}}else{c("no pr");if(r==="0"){if(s==="0"){i=`>=${r}.${s}.${o}${n} <${r}.${s}.${+o+1}-0`}else{i=`>=${r}.${s}.${o}${n} <${r}.${+s+1}.0-0`}}else{i=`>=${r}.${s}.${o} <${+r+1}.0.0-0`}}c("caret return",i);return i}))};const T=(e,t)=>{c("replaceXRanges",e,t);return e.split(/\s+/).map((e=>P(e,t))).join(" ")};const P=(e,t)=>{e=e.trim();const r=t.loose?p[f.XRANGELOOSE]:p[f.XRANGE];return e.replace(r,((r,n,s,o,a,i)=>{c("xRange",e,r,n,s,o,a,i);const l=N(s);const u=l||N(o);const p=u||N(a);const f=p;if(n==="="&&f){n=""}i=t.includePrerelease?"-0":"";if(l){if(n===">"||n==="<"){r="<0.0.0-0"}else{r="*"}}else if(n&&f){if(u){o=0}a=0;if(n===">"){n=">=";if(u){s=+s+1;o=0;a=0}else{o=+o+1;a=0}}else if(n==="<="){n="<";if(u){s=+s+1}else{o=+o+1}}if(n==="<"){i="-0"}r=`${n+s}.${o}.${a}${i}`}else if(u){r=`>=${s}.0.0${i} <${+s+1}.0.0-0`}else if(p){r=`>=${s}.${o}.0${i} <${s}.${+o+1}.0-0`}c("xRange return",r);return r}))};const w=(e,t)=>{c("replaceStars",e,t);return e.trim().replace(p[f.STAR],"")};const C=(e,t)=>{c("replaceGTE0",e,t);return e.trim().replace(p[t.includePrerelease?f.GTE0PRE:f.GTE0],"")};const A=e=>(t,r,n,s,o,a,i,l,c,u,p,f)=>{if(N(n)){r=""}else if(N(s)){r=`>=${n}.0.0${e?"-0":""}`}else if(N(o)){r=`>=${n}.${s}.0${e?"-0":""}`}else if(a){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(N(c)){l=""}else if(N(u)){l=`<${+c+1}.0.0-0`}else if(N(p)){l=`<${c}.${+u+1}.0-0`}else if(f){l=`<=${c}.${u}.${p}-${f}`}else if(e){l=`<${c}.${u}.${+p+1}-0`}else{l=`<=${l}`}return`${r} ${l}`.trim()};const S=(e,t,r)=>{for(let n=0;n0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch){return true}}}return false}return true}},31527:(e,t,r)=>{const n=r(57272);const{MAX_LENGTH:s,MAX_SAFE_INTEGER:o}=r(16874);const{safeRe:a,t:i}=r(99718);const l=r(98587);const{compareIdentifiers:c}=r(61123);class u{constructor(e,t){t=l(t);if(e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>s){throw new TypeError(`version is longer than ${s} characters`)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[i.LOOSE]:a[i.FULL]);if(!r){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+r[1];this.minor=+r[2];this.patch=+r[3];if(this.major>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||this.patch<0){throw new TypeError("Invalid patch version")}if(!r[4]){this.prerelease=[]}else{this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){if(t===this.prerelease.join(".")&&r===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let n=[t,e];if(r===false){n=[t]}if(c(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=n}}else{this.prerelease=n}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=u},57414:(e,t,r)=>{const n=r(30144);const s=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=s},72111:(e,t,r)=>{const n=r(94641);const s=r(13999);const o=r(35580);const a=r(54089);const i=r(7059);const l=r(25200);const c=(e,t,r,c)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e===r;case"!==":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e!==r;case"":case"=":case"==":return n(e,r,c);case"!=":return s(e,r,c);case">":return o(e,r,c);case">=":return a(e,r,c);case"<":return i(e,r,c);case"<=":return l(e,r,c);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=c},46170:(e,t,r)=>{const n=r(31527);const s=r(30144);const{safeRe:o,t:a}=r(99718);const i=(e,t)=>{if(e instanceof n){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let r=null;if(!t.rtl){r=e.match(t.includePrerelease?o[a.COERCEFULL]:o[a.COERCE])}else{const n=t.includePrerelease?o[a.COERCERTLFULL]:o[a.COERCERTL];let s;while((s=n.exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||s.index+s[0].length!==r.index+r[0].length){r=s}n.lastIndex=s.index+s[1].length+s[2].length}n.lastIndex=-1}if(r===null){return null}const i=r[2];const l=r[3]||"0";const c=r[4]||"0";const u=t.includePrerelease&&r[5]?`-${r[5]}`:"";const p=t.includePrerelease&&r[6]?`+${r[6]}`:"";return s(`${i}.${l}.${c}${u}${p}`,t)};e.exports=i},40909:(e,t,r)=>{const n=r(31527);const s=(e,t,r)=>{const s=new n(e,r);const o=new n(t,r);return s.compare(o)||s.compareBuild(o)};e.exports=s},11763:(e,t,r)=>{const n=r(50560);const s=(e,t)=>n(e,t,true);e.exports=s},50560:(e,t,r)=>{const n=r(31527);const s=(e,t,r)=>new n(e,r).compare(new n(t,r));e.exports=s},51832:(e,t,r)=>{const n=r(30144);const s=(e,t)=>{const r=n(e,null,true);const s=n(t,null,true);const o=r.compare(s);if(o===0){return null}const a=o>0;const i=a?r:s;const l=a?s:r;const c=!!i.prerelease.length;const u=!!l.prerelease.length;if(u&&!c){if(!l.patch&&!l.minor){return"major"}if(i.patch){return"patch"}if(i.minor){return"minor"}return"major"}const p=c?"pre":"";if(r.major!==s.major){return p+"major"}if(r.minor!==s.minor){return p+"minor"}if(r.patch!==s.patch){return p+"patch"}return"prerelease"};e.exports=s},94641:(e,t,r)=>{const n=r(50560);const s=(e,t,r)=>n(e,t,r)===0;e.exports=s},35580:(e,t,r)=>{const n=r(50560);const s=(e,t,r)=>n(e,t,r)>0;e.exports=s},54089:(e,t,r)=>{const n=r(50560);const s=(e,t,r)=>n(e,t,r)>=0;e.exports=s},93007:(e,t,r)=>{const n=r(31527);const s=(e,t,r,s,o)=>{if(typeof r==="string"){o=s;s=r;r=undefined}try{return new n(e instanceof n?e.version:e,r).inc(t,s,o).version}catch(a){return null}};e.exports=s},7059:(e,t,r)=>{const n=r(50560);const s=(e,t,r)=>n(e,t,r)<0;e.exports=s},25200:(e,t,r)=>{const n=r(50560);const s=(e,t,r)=>n(e,t,r)<=0;e.exports=s},32938:(e,t,r)=>{const n=r(31527);const s=(e,t)=>new n(e,t).major;e.exports=s},46254:(e,t,r)=>{const n=r(31527);const s=(e,t)=>new n(e,t).minor;e.exports=s},13999:(e,t,r)=>{const n=r(50560);const s=(e,t,r)=>n(e,t,r)!==0;e.exports=s},30144:(e,t,r)=>{const n=r(31527);const s=(e,t,r=false)=>{if(e instanceof n){return e}try{return new n(e,t)}catch(s){if(!r){return null}throw s}};e.exports=s},24493:(e,t,r)=>{const n=r(31527);const s=(e,t)=>new n(e,t).patch;e.exports=s},31729:(e,t,r)=>{const n=r(30144);const s=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=s},9970:(e,t,r)=>{const n=r(50560);const s=(e,t,r)=>n(t,e,r);e.exports=s},74277:(e,t,r)=>{const n=r(40909);const s=(e,t)=>e.sort(((e,r)=>n(r,e,t)));e.exports=s},97638:(e,t,r)=>{const n=r(78311);const s=(e,t,r)=>{try{t=new n(t,r)}catch(s){return false}return t.test(e)};e.exports=s},43927:(e,t,r)=>{const n=r(40909);const s=(e,t)=>e.sort(((e,r)=>n(e,r,t)));e.exports=s},56953:(e,t,r)=>{const n=r(30144);const s=(e,t)=>{const r=n(e,t);return r?r.version:null};e.exports=s},99589:(e,t,r)=>{const n=r(99718);const s=r(16874);const o=r(31527);const a=r(61123);const i=r(30144);const l=r(56953);const c=r(57414);const u=r(93007);const p=r(51832);const f=r(32938);const h=r(46254);const E=r(24493);const m=r(31729);const d=r(50560);const g=r(9970);const v=r(11763);const L=r(40909);const R=r(43927);const $=r(74277);const N=r(35580);const I=r(7059);const b=r(94641);const O=r(13999);const y=r(54089);const T=r(25200);const P=r(72111);const w=r(46170);const C=r(93904);const A=r(78311);const S=r(97638);const x=r(77631);const k=r(19628);const j=r(270);const D=r(41261);const _=r(13874);const G=r(97075);const M=r(75571);const F=r(5342);const U=r(76780);const X=r(72525);const B=r(75032);e.exports={parse:i,valid:l,clean:c,inc:u,diff:p,major:f,minor:h,patch:E,prerelease:m,compare:d,rcompare:g,compareLoose:v,compareBuild:L,sort:R,rsort:$,gt:N,lt:I,eq:b,neq:O,gte:y,lte:T,cmp:P,coerce:w,Comparator:C,Range:A,satisfies:S,toComparators:x,maxSatisfying:k,minSatisfying:j,minVersion:D,validRange:_,outside:G,gtr:M,ltr:F,intersects:U,simplifyRange:X,subset:B,SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},16874:e=>{const t="2.0.0";const r=256;const n=Number.MAX_SAFE_INTEGER||9007199254740991;const s=16;const o=r-6;const a=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:n,RELEASE_TYPES:a,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},57272:(e,t,r)=>{var n=r(65606);const s=typeof n==="object"&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=s},61123:e=>{const t=/^[0-9]+$/;const r=(e,r)=>{const n=t.test(e);const s=t.test(r);if(n&&s){e=+e;r=+r}return e===r?0:n&&!s?-1:s&&!n?1:er(t,e);e.exports={compareIdentifiers:r,rcompareIdentifiers:n}},68794:e=>{class t{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const r=this.delete(e);if(!r&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=t},98587:e=>{const t=Object.freeze({loose:true});const r=Object.freeze({});const n=e=>{if(!e){return r}if(typeof e!=="object"){return t}return e};e.exports=n},99718:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:o}=r(16874);const a=r(57272);t=e.exports={};const i=t.re=[];const l=t.safeRe=[];const c=t.src=[];const u=t.t={};let p=0;const f="[a-zA-Z0-9-]";const h=[["\\s",1],["\\d",o],[f,s]];const E=e=>{for(const[t,r]of h){e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`)}return e};const m=(e,t,r)=>{const n=E(t);const s=p++;a(e,s,t);u[e]=s;c[s]=t;i[s]=new RegExp(t,r?"g":undefined);l[s]=new RegExp(n,r?"g":undefined)};m("NUMERICIDENTIFIER","0|[1-9]\\d*");m("NUMERICIDENTIFIERLOOSE","\\d+");m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`);m("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.`+`(${c[u.NUMERICIDENTIFIER]})\\.`+`(${c[u.NUMERICIDENTIFIER]})`);m("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.`+`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.`+`(${c[u.NUMERICIDENTIFIERLOOSE]})`);m("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`);m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`);m("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`);m("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`);m("BUILDIDENTIFIER",`${f}+`);m("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`);m("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`);m("FULL",`^${c[u.FULLPLAIN]}$`);m("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`);m("LOOSE",`^${c[u.LOOSEPLAIN]}$`);m("GTLT","((?:<|>)?=?)");m("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);m("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`);m("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})`+`(?:\\.(${c[u.XRANGEIDENTIFIER]})`+`(?:\\.(${c[u.XRANGEIDENTIFIER]})`+`(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?`+`)?)?`);m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})`+`(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?`+`)?)?`);m("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`);m("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`);m("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${n}})`+`(?:\\.(\\d{1,${n}}))?`+`(?:\\.(\\d{1,${n}}))?`);m("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`);m("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?`+`(?:$|[^\\d])`);m("COERCERTL",c[u.COERCE],true);m("COERCERTLFULL",c[u.COERCEFULL],true);m("LONETILDE","(?:~>?)");m("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";m("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`);m("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`);m("LONECARET","(?:\\^)");m("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";m("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`);m("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`);m("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`);m("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`);m("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";m("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${c[u.XRANGEPLAIN]})`+`\\s*$`);m("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${c[u.XRANGEPLAINLOOSE]})`+`\\s*$`);m("STAR","(<|>)?=?\\s*\\*");m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},75571:(e,t,r)=>{const n=r(97075);const s=(e,t,r)=>n(e,t,">",r);e.exports=s},76780:(e,t,r)=>{const n=r(78311);const s=(e,t,r)=>{e=new n(e,r);t=new n(t,r);return e.intersects(t,r)};e.exports=s},5342:(e,t,r)=>{const n=r(97075);const s=(e,t,r)=>n(e,t,"<",r);e.exports=s},19628:(e,t,r)=>{const n=r(31527);const s=r(78311);const o=(e,t,r)=>{let o=null;let a=null;let i=null;try{i=new s(t,r)}catch(l){return null}e.forEach((e=>{if(i.test(e)){if(!o||a.compare(e)===-1){o=e;a=new n(o,r)}}}));return o};e.exports=o},270:(e,t,r)=>{const n=r(31527);const s=r(78311);const o=(e,t,r)=>{let o=null;let a=null;let i=null;try{i=new s(t,r)}catch(l){return null}e.forEach((e=>{if(i.test(e)){if(!o||a.compare(e)===1){o=e;a=new n(o,r)}}}));return o};e.exports=o},41261:(e,t,r)=>{const n=r(31527);const s=r(78311);const o=r(35580);const a=(e,t)=>{e=new s(e,t);let r=new n("0.0.0");if(e.test(r)){return r}r=new n("0.0.0-0");if(e.test(r)){return r}r=null;for(let s=0;s{const t=new n(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!a||o(t,a)){a=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(a&&(!r||o(r,a))){r=a}}if(r&&e.test(r)){return r}return null};e.exports=a},97075:(e,t,r)=>{const n=r(31527);const s=r(93904);const{ANY:o}=s;const a=r(78311);const i=r(97638);const l=r(35580);const c=r(7059);const u=r(25200);const p=r(54089);const f=(e,t,r,f)=>{e=new n(e,f);t=new a(t,f);let h,E,m,d,g;switch(r){case">":h=l;E=u;m=c;d=">";g=">=";break;case"<":h=c;E=p;m=l;d="<";g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(e,t,f)){return false}for(let n=0;n{if(e.semver===o){e=new s(">=0.0.0")}a=a||e;i=i||e;if(h(e.semver,a.semver,f)){a=e}else if(m(e.semver,i.semver,f)){i=e}}));if(a.operator===d||a.operator===g){return false}if((!i.operator||i.operator===d)&&E(e,i.semver)){return false}else if(i.operator===g&&m(e,i.semver)){return false}}return true};e.exports=f},72525:(e,t,r)=>{const n=r(97638);const s=r(50560);e.exports=(e,t,r)=>{const o=[];let a=null;let i=null;const l=e.sort(((e,t)=>s(e,t,r)));for(const s of l){const e=n(s,t,r);if(e){i=s;if(!a){a=s}}else{if(i){o.push([a,i])}i=null;a=null}}if(a){o.push([a,null])}const c=[];for(const[n,s]of o){if(n===s){c.push(n)}else if(!s&&n===l[0]){c.push("*")}else if(!s){c.push(`>=${n}`)}else if(n===l[0]){c.push(`<=${s}`)}else{c.push(`${n} - ${s}`)}}const u=c.join(" || ");const p=typeof t.raw==="string"?t.raw:String(t);return u.length{const n=r(78311);const s=r(93904);const{ANY:o}=s;const a=r(97638);const i=r(50560);const l=(e,t,r={})=>{if(e===t){return true}e=new n(e,r);t=new n(t,r);let s=false;e:for(const n of e.set){for(const e of t.set){const t=p(n,e,r);s=s||t!==null;if(t){continue e}}if(s){return false}}return true};const c=[new s(">=0.0.0-0")];const u=[new s(">=0.0.0")];const p=(e,t,r)=>{if(e===t){return true}if(e.length===1&&e[0].semver===o){if(t.length===1&&t[0].semver===o){return true}else if(r.includePrerelease){e=c}else{e=u}}if(t.length===1&&t[0].semver===o){if(r.includePrerelease){return true}else{t=u}}const n=new Set;let s,l;for(const o of e){if(o.operator===">"||o.operator===">="){s=f(s,o,r)}else if(o.operator==="<"||o.operator==="<="){l=h(l,o,r)}else{n.add(o.semver)}}if(n.size>1){return null}let p;if(s&&l){p=i(s.semver,l.semver,r);if(p>0){return null}else if(p===0&&(s.operator!==">="||l.operator!=="<=")){return null}}for(const o of n){if(s&&!a(o,String(s),r)){return null}if(l&&!a(o,String(l),r)){return null}for(const e of t){if(!a(o,String(e),r)){return false}}return true}let E,m;let d,g;let v=l&&!r.includePrerelease&&l.semver.prerelease.length?l.semver:false;let L=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:false;if(v&&v.prerelease.length===1&&l.operator==="<"&&v.prerelease[0]===0){v=false}for(const o of t){g=g||o.operator===">"||o.operator===">=";d=d||o.operator==="<"||o.operator==="<=";if(s){if(L){if(o.semver.prerelease&&o.semver.prerelease.length&&o.semver.major===L.major&&o.semver.minor===L.minor&&o.semver.patch===L.patch){L=false}}if(o.operator===">"||o.operator===">="){E=f(s,o,r);if(E===o&&E!==s){return false}}else if(s.operator===">="&&!a(s.semver,String(o),r)){return false}}if(l){if(v){if(o.semver.prerelease&&o.semver.prerelease.length&&o.semver.major===v.major&&o.semver.minor===v.minor&&o.semver.patch===v.patch){v=false}}if(o.operator==="<"||o.operator==="<="){m=h(l,o,r);if(m===o&&m!==l){return false}}else if(l.operator==="<="&&!a(l.semver,String(o),r)){return false}}if(!o.operator&&(l||s)&&p!==0){return false}}if(s&&d&&!l&&p!==0){return false}if(l&&g&&!s&&p!==0){return false}if(L||v){return false}return true};const f=(e,t,r)=>{if(!e){return t}const n=i(e.semver,t.semver,r);return n>0?e:n<0?t:t.operator===">"&&e.operator===">="?t:e};const h=(e,t,r)=>{if(!e){return t}const n=i(e.semver,t.semver,r);return n<0?e:n>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=l},77631:(e,t,r)=>{const n=r(78311);const s=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=s},13874:(e,t,r)=>{const n=r(78311);const s=(e,t)=>{try{return new n(e,t).range||"*"}catch(r){return null}};e.exports=s}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8779.6eebdb56785e3d38a457.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8779.6eebdb56785e3d38a457.js new file mode 100644 index 0000000000000000000000000000000000000000..62ac72404fc0a15087ee3b69abeb69fd97a57382 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8779.6eebdb56785e3d38a457.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8779],{88779:(O,Q,P)=>{P.r(Q);P.d(Q,{java:()=>t,javaLanguage:()=>X});var $=P(27421);var a=P(45145);const i=(0,a.styleTags)({null:a.tags.null,instanceof:a.tags.operatorKeyword,this:a.tags.self,"new super assert open to with void":a.tags.keyword,"class interface extends implements enum var":a.tags.definitionKeyword,"module package import":a.tags.moduleKeyword,"switch while for if else case default do break continue return try catch finally throw":a.tags.controlKeyword,["requires exports opens uses provides public private protected static transitive abstract final "+"strictfp synchronized native transient volatile throws"]:a.tags.modifier,IntegerLiteral:a.tags.integer,FloatingPointLiteral:a.tags.float,"StringLiteral TextBlock":a.tags.string,CharacterLiteral:a.tags.character,LineComment:a.tags.lineComment,BlockComment:a.tags.blockComment,BooleanLiteral:a.tags.bool,PrimitiveType:a.tags.standard(a.tags.typeName),TypeName:a.tags.typeName,Identifier:a.tags.variableName,"MethodName/Identifier":a.tags.function(a.tags.variableName),Definition:a.tags.definition(a.tags.variableName),ArithOp:a.tags.arithmeticOperator,LogicOp:a.tags.logicOperator,BitOp:a.tags.bitwiseOperator,CompareOp:a.tags.compareOperator,AssignOp:a.tags.definitionOperator,UpdateOp:a.tags.updateOperator,Asterisk:a.tags.punctuation,Label:a.tags.labelName,"( )":a.tags.paren,"[ ]":a.tags.squareBracket,"{ }":a.tags.brace,".":a.tags.derefOperator,", ;":a.tags.separator});const r={__proto__:null,true:34,false:34,null:42,void:46,byte:48,short:48,int:48,long:48,char:48,float:48,double:48,boolean:48,extends:62,super:64,class:76,this:78,new:84,public:100,protected:102,private:104,abstract:106,static:108,final:110,strictfp:112,default:114,synchronized:116,native:118,transient:120,volatile:122,throws:150,implements:160,interface:166,enum:176,instanceof:236,open:265,module:267,requires:272,transitive:274,exports:276,to:278,opens:280,uses:282,provides:284,with:286,package:290,import:294,if:306,else:308,while:312,for:316,var:323,assert:330,switch:334,case:340,do:344,break:348,continue:352,return:356,throw:362,try:366,catch:370,finally:378};const e=$.U1.deserialize({version:14,states:"#!hQ]QPOOO&tQQO'#H[O(xQQO'#CbOOQO'#Cb'#CbO)PQPO'#CaO)XOSO'#CpOOQO'#Ha'#HaOOQO'#Cu'#CuO*tQPO'#D_O+_QQO'#HkOOQO'#Hk'#HkO-sQQO'#HfO-zQQO'#HfOOQO'#Hf'#HfOOQO'#He'#HeO0OQPO'#DUO0]QPO'#GlO3TQPO'#D_O3[QPO'#DzO)PQPO'#E[O3}QPO'#E[OOQO'#DV'#DVO5]QQO'#H_O7dQQO'#EeO7kQPO'#EdO7pQPO'#EfOOQO'#H`'#H`O5sQQO'#H`O8sQQO'#FgO8zQPO'#EwO9PQPO'#E|O9PQPO'#FOOOQO'#H_'#H_OOQO'#HW'#HWOOQO'#Gf'#GfOOQO'#HV'#HVO:aQPO'#FhOOQO'#HU'#HUOOQO'#Ge'#GeQ]QPOOOOQO'#Hq'#HqO:fQPO'#HqO:kQPO'#D{O:kQPO'#EVO:kQPO'#EQO:sQPO'#HnO;UQQO'#EfO)PQPO'#C`O;^QPO'#C`O)PQPO'#FbO;cQPO'#FdO;nQPO'#FjO;nQPO'#FmO:kQPO'#FrO;sQPO'#FoO9PQPO'#FvO;nQPO'#FxO]QPO'#F}O;xQPO'#GPOyOSO,59[OOQO,59[,59[OOQO'#Hg'#HgO?jQPO,59eO@lQPO,59yOOQO-E:d-E:dO)PQPO,58zOA`QPO,58zO)PQPO,5;|OAeQPO'#DQOAjQPO'#DQOOQO'#Gi'#GiOBjQQO,59jOOQO'#Dm'#DmODRQPO'#HsOD]QPO'#DlODkQPO'#HrODsQPO,5<^ODxQPO,59^OEcQPO'#CxOOQO,59c,59cOEjQPO,59bOGrQQO'#H[OJVQQO'#CbOJmQPO'#D_OKrQQO'#HkOLSQQO,59pOLZQPO'#DvOLiQPO'#HzOLqQPO,5:`OLvQPO,5:`OM^QPO,5;mOMiQPO'#IROMtQPO,5;dOMyQPO,5=WOOQO-E:j-E:jOOQO,5:f,5:fO! aQPO,5:fO! hQPO,5:vO! mQPO,5<^O)PQPO,5:vO:kQPO,5:gO:kQPO,5:qO:kQPO,5:lO:kQPO,5<^O!!^QPO,59qO9PQPO,5:}O!!eQPO,5;QO9PQPO,59TO!!sQPO'#DXOOQO,5;O,5;OOOQO'#El'#ElOOQO'#En'#EnO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;eOOQO,5;h,5;hOOQO,5],5>]O!%SQPO,5:gO!%bQPO,5:qO!%jQPO,5:lO!%uQPO,5>YOLZQPO,5>YO! {QPO,59UO!&QQQO,58zO!&YQQO,5;|O!&bQQO,5_O!.ZQPO,5:WO:kQPO'#GnO!.bQPO,5>^OOQO1G1x1G1xOOQO1G.x1G.xO!.{QPO'#CyO!/kQPO'#HkO!/uQPO'#CzO!0TQPO'#HjO!0]QPO,59dOOQO1G.|1G.|OEjQPO1G.|O!0sQPO,59eO!1QQQO'#H[O!1cQQO'#CbOOQO,5:b,5:bO:kQPO,5:cOOQO,5:a,5:aO!1tQQO,5:aOOQO1G/[1G/[O!1yQPO,5:bO!2[QPO'#GqO!2oQPO,5>fOOQO1G/z1G/zO!2wQPO'#DvO!3YQPO'#D_O!3aQPO1G/zO!!zQPO'#GoO!3fQPO1G1XO9PQPO1G1XO:kQPO'#GwO!3nQPO,5>mOOQO1G1O1G1OOOQO1G0Q1G0QO!3vQPO'#E]OOQO1G0b1G0bO!4gQPO1G1xO! hQPO1G0bO!%SQPO1G0RO!%bQPO1G0]O!%jQPO1G0WOOQO1G/]1G/]O!4lQQO1G.pO7kQPO1G0jO)PQPO1G0jO:sQPO'#HnO!6`QQO1G.pOOQO1G.p1G.pO!6eQQO1G0iOOQO1G0l1G0lO!6lQPO1G0lO!6wQQO1G.oO!7_QQO'#HoO!7lQPO,59sO!8{QQO1G0pO!:dQQO1G0pO!;rQQO1G0pO!UOOQO1G/O1G/OOOQO7+$h7+$hOOQO1G/{1G/{O#1TQQO1G/{OOQO1G/}1G/}O#1YQPO1G/{OOQO1G/|1G/|O:kQPO1G/}OOQO,5=],5=]OOQO-E:o-E:oOOQO7+%f7+%fOOQO,5=Z,5=ZOOQO-E:m-E:mO9PQPO7+&sOOQO7+&s7+&sOOQO,5=c,5=cOOQO-E:u-E:uO#1_QPO'#EUO#1mQPO'#EUOOQO'#Gu'#GuO#2UQPO,5:wOOQO,5:w,5:wOOQO7+'d7+'dOOQO7+%|7+%|OOQO7+%m7+%mO!AYQPO7+%mO!A_QPO7+%mO!AgQPO7+%mOOQO7+%w7+%wO!BVQPO7+%wOOQO7+%r7+%rO!CUQPO7+%rO!CZQPO7+%rOOQO7+&U7+&UOOQO'#Ee'#EeO7kQPO7+&UO7kQPO,5>YO#2uQPO7+$[OOQO7+&T7+&TOOQO7+&W7+&WO9PQPO'#GjO#3TQPO,5>ZOOQO1G/_1G/_O9PQPO7+&kO#3`QQO,59eO#4cQPO'#DrO! pQPO'#DrO#4nQPO'#HwO#4vQPO,5:]O#5aQQO'#HgO#5|QQO'#CuO! mQPO'#HvO#6lQPO'#DpO#6vQPO'#HvO#7XQPO'#DpO#7aQPO'#IPO#7fQPO'#E`OOQO'#Hp'#HpOOQO'#Gk'#GkO#7nQPO,59vOOQO,59v,59vO#7uQPO'#HqOOQO,5:h,5:hO#9]QPO'#H|OOQO'#EP'#EPOOQO,5:i,5:iO#9hQPO'#EYO:kQPO'#EYO#9yQPO'#H}O#:UQPO,5:sO! mQPO'#HvO!!zQPO'#HvO#:^QPO'#DpOOQO'#Gs'#GsO#:eQPO,5:oOOQO,5:o,5:oOOQO,5:n,5:nOOQO,5;S,5;SO#;_QQO,5;SO#;fQPO,5;SOOQO-E:t-E:tOOQO7+&X7+&XOOQO7+)`7+)`O#;mQQO7+)`OOQO'#Gz'#GzO#=ZQPO,5;rOOQO,5;r,5;rO#=bQPO'#FXO)PQPO'#FXO)PQPO'#FXO)PQPO'#FXO#=pQPO7+'UO#=uQPO7+'UOOQO7+'U7+'UO]QPO7+'[O#>QQPO1G1{O! mQPO1G1{O#>`QQO1G1wO!!sQPO1G1wO#>gQPO1G1wO#>nQQO7+'hOOQO'#G}'#G}O#>uQPO,5|QPO'#HqO9PQPO'#F{O#?UQPO7+'oO#?ZQPO,5=OO! mQPO,5=OO#?`QPO1G2iO#@iQPO1G2iOOQO1G2i1G2iOOQO-E:|-E:|OOQO7+'z7+'zO!2[QPO'#G^OpOOQO1G.n1G.nOOQO<X,5>XOOQO,5=S,5=SOOQO-E:f-E:fO#EjQPO7+%gOOQO7+%g7+%gOOQO7+%i7+%iOOQO<cOOQO1G/w1G/wO#IfQPO'#HsO#ImQPO,59xO#IrQPO,5>bO! mQPO,59xO#I}QPO,5:[O#7fQPO,5:zO! mQPO,5>bO!!zQPO,5>bO#7aQPO,5>kOOQO,5:[,5:[OLvQPO'#DtOOQO,5>k,5>kO#JVQPO'#EaOOQO,5:z,5:zO#MWQPO,5:zO!!zQPO'#DxOOQO-E:i-E:iOOQO1G/b1G/bOOQO,5:y,5:yO!!zQPO'#GrO#M]QPO,5>hOOQO,5:t,5:tO#MhQPO,5:tO#MvQPO,5:tO#NXQPO'#GtO#NoQPO,5>iO#NzQPO'#EZOOQO1G0_1G0_O$ RQPO1G0_O! mQPO,5:pOOQO-E:q-E:qOOQO1G0Z1G0ZOOQO1G0n1G0nO$ WQQO1G0nOOQO<oOOQO1G1Y1G1YO$%uQPO'#FTOOQO,5=e,5=eOOQO-E:w-E:wO$%zQPO'#GmO$&XQPO,5>aOOQO1G/u1G/uOOQO<sAN>sO!AYQPOAN>sOOQOAN>xAN>xOOQOAN?[AN?[O7kQPOAN?[O$&pQPO,5:_OOQO1G/x1G/xOOQO,5=[,5=[OOQO-E:n-E:nO$&{QPO,5>eOOQO1G/d1G/dOOQO1G3|1G3|O$'^QPO1G/dOOQO1G/v1G/vOOQO1G0f1G0fO#MWQPO1G0fO#7aQPO'#HyO$'cQPO1G3|O! mQPO1G3|OOQO1G4V1G4VOK^QPO'#DvOJmQPO'#D_OOQO,5:{,5:{O$'nQPO,5:{O$'nQPO,5:{O$'uQQO'#H_O$'|QQO'#H`O$(WQQO'#EbO$(cQPO'#EbOOQO,5:d,5:dOOQO,5=^,5=^OOQO-E:p-E:pOOQO1G0`1G0`O$(kQPO1G0`OOQO,5=`,5=`OOQO-E:r-E:rO$(yQPO,5:uOOQO7+%y7+%yOOQO7+&Y7+&YOOQO1G1_1G1_O$)QQQO1G1_OOQO-E:y-E:yO$)YQQO'#IWO$)TQPO1G1_O$ mQPO1G1_O)PQPO1G1_OOQOAN@[AN@[O$)eQQO<rO$,cQPO7+&yO$,hQQO'#IXOOQOAN@mAN@mO$,sQQOAN@mOOQOAN@iAN@iO$,zQPOAN@iO$-PQQO<sOOQOG26XG26XOOQOG26TG26TOOQO<bPPP>hP@|PPPAv2vPCoPPDjPEaEgPPPPPPPPPPPPFpGXPJ_JgJqKZKaKgMVMZMZMcPMrNx! k! uP!![NxP!!b!!l!!{!#TP!#r!#|!$SNx!$V!$]EaEa!$a!$k!$n2v!&Y2v2v!(RP.^P!(VP!(vPPPPPP.^P.^!)d.^PP.^P.^PP.^!*x!+SPP!+Y!+cPPPPPPPP&}P&}PP!+g!+g!+z!+gPP!+gP!+gP!,e!,hP!+g!-O!+gP!+gP!-R!-UP!+gP!+gP!+gP!+gP!+g!+gP!+gP!-YP!-`!-c!-iP!+g!-u!-x!.Q!.d!2a!2g!2m!3s!3y!4T!5X!5_!5e!5o!5u!5{!6R!6X!6_!6e!6k!6q!6w!6}!7T!7Z!7e!7k!7u!7{PPP!8R!+g!8vP!a!]!^!?q!^!_!@_!_!`!Ax!`!a!Bl!a!b!DY!b!c!Dx!c!}!Kt!}#O!MQ#O#P%Q#P#Q!Mn#Q#R!N[#R#S4e#S#T%Q#T#o4e#o#p# O#p#q# l#q#r##U#r#s##r#s#y%Q#y#z'f#z$f%Q$f$g'f$g#BY%Q#BY#BZ'f#BZ$IS%Q$IS$I_'f$I_$I|%Q$I|$JO'f$JO$JT%Q$JT$JU'f$JU$KV%Q$KV$KW'f$KW&FU%Q&FU&FV'f&FV;'S%Q;'S;=`&s<%lO%QS%VV&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS%qO&WSS%tVOY&ZYZ%lZr&Zrs&ys;'S&Z;'S;=`'`<%lO&ZS&^VOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS&vP;=`<%l%QS&|UOY&ZYZ%lZr&Zs;'S&Z;'S;=`'`<%lO&ZS'cP;=`<%l&Z_'mk&WS%wZOX%QXY'fYZ)bZ^'f^p%Qpq'fqr%Qrs%qs#y%Q#y#z'f#z$f%Q$f$g'f$g#BY%Q#BY#BZ'f#BZ$IS%Q$IS$I_'f$I_$I|%Q$I|$JO'f$JO$JT%Q$JT$JU'f$JU$KV%Q$KV$KW'f$KW&FU%Q&FU&FV'f&FV;'S%Q;'S;=`&s<%lO%Q_)iY&WS%wZX^*Xpq*X#y#z*X$f$g*X#BY#BZ*X$IS$I_*X$I|$JO*X$JT$JU*X$KV$KW*X&FU&FV*XZ*^Y%wZX^*Xpq*X#y#z*X$f$g*X#BY#BZ*X$IS$I_*X$I|$JO*X$JT$JU*X$KV$KW*X&FU&FV*XV+TX#sP&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`;'S%Q;'S;=`&s<%lO%QU+wV#_Q&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT,aXOY,|YZ%lZr,|rs3Ys#O,|#O#P2d#P;'S,|;'S;=`3S<%lO,|T-PXOY-lYZ%lZr-lrs.^s#O-l#O#P.x#P;'S-l;'S;=`2|<%lO-lT-qX&WSOY-lYZ%lZr-lrs.^s#O-l#O#P.x#P;'S-l;'S;=`2|<%lO-lT.cVcPOY&ZYZ%lZr&Zrs&ys;'S&Z;'S;=`'`<%lO&ZT.}V&WSOY-lYZ/dZr-lrs1]s;'S-l;'S;=`2|<%lO-lT/iW&WSOY0RZr0Rrs0ns#O0R#O#P0s#P;'S0R;'S;=`1V<%lO0RP0UWOY0RZr0Rrs0ns#O0R#O#P0s#P;'S0R;'S;=`1V<%lO0RP0sOcPP0vTOY0RYZ0RZ;'S0R;'S;=`1V<%lO0RP1YP;=`<%l0RT1`XOY,|YZ%lZr,|rs1{s#O,|#O#P2d#P;'S,|;'S;=`3S<%lO,|T2QUcPOY&ZYZ%lZr&Zs;'S&Z;'S;=`'`<%lO&ZT2gVOY-lYZ/dZr-lrs1]s;'S-l;'S;=`2|<%lO-lT3PP;=`<%l-lT3VP;=`<%l,|T3_VcPOY&ZYZ%lZr&Zrs3ts;'S&Z;'S;=`'`<%lO&ZT3yR&USXY4SYZ4`pq4SP4VRXY4SYZ4`pq4SP4eO&VP_4la%}Z&WSOY%QYZ%lZr%Qrs%qst%Qtu4eu!Q%Q!Q![4e![!c%Q!c!}4e!}#R%Q#R#S4e#S#T%Q#T#o4e#o;'S%Q;'S;=`&s<%lO%QU5xX#gQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QU6lV#]Q&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV7YZ&lR&WSOY%QYZ%lZr%Qrs%qsv%Qvw7{w!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QU8SV#aQ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT8nZ&WSOY9aYZ%lZr9ars:Xsw9awx%Qx#O9a#O#Pt<%lO9aT9fZ&WSOY9aYZ%lZr9ars:Xsw9awx;sx#O9a#O#Pt<%lO9aT:[ZOY:}YZ%lZr:}rs>zsw:}wx?px#O:}#O#P@[#P;'S:};'S;=`@t<%lO:}T;QZOY9aYZ%lZr9ars:Xsw9awx;sx#O9a#O#Pt<%lO9aT;zVbP&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QTt<%lO9aT=QW&WSOY=jZw=jwx>Vx#O=j#O#P>[#P;'S=j;'S;=`>n<%lO=jP=mWOY=jZw=jwx>Vx#O=j#O#P>[#P;'S=j;'S;=`>n<%lO=jP>[ObPP>_TOY=jYZ=jZ;'S=j;'S;=`>n<%lO=jP>qP;=`<%l=jT>wP;=`<%l9aT>}ZOY:}YZ%lZr:}rs=jsw:}wx?px#O:}#O#P@[#P;'S:};'S;=`@t<%lO:}T?uVbPOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT@_VOY9aYZ<{Zr9ars:Xs;'S9a;'S;=`>t<%lO9aT@wP;=`<%l:}_ARVZZ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVAoVYR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVB_X$YP&WS#fQOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QVCRZ#eR&WSOY%QYZ%lZr%Qrs%qs{%Q{|Ct|!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QVC{V#qR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVDiVqR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVEV[#eR&WSOY%QYZ%lZr%Qrs%qs}%Q}!OCt!O!_%Q!_!`6e!`!aE{!a;'S%Q;'S;=`&s<%lO%QVFSV&vR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_FpZWY&WSOY%QYZ%lZr%Qrs%qs!O%Q!O!PGc!P!Q%Q!Q![Hq![;'S%Q;'S;=`&s<%lO%QVGhX&WSOY%QYZ%lZr%Qrs%qs!O%Q!O!PHT!P;'S%Q;'S;=`&s<%lO%QVH[V&oR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QTHxc&WS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![Hq![!f%Q!f!gJT!g!hJq!h!iJT!i#R%Q#R#SNk#S#W%Q#W#XJT#X#YJq#Y#ZJT#Z;'S%Q;'S;=`&s<%lO%QTJ[V&WS`POY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QTJv]&WSOY%QYZ%lZr%Qrs%qs{%Q{|Ko|}%Q}!OKo!O!Q%Q!Q![La![;'S%Q;'S;=`&s<%lO%QTKtX&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![La![;'S%Q;'S;=`&s<%lO%QTLhc&WS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![La![!f%Q!f!gJT!g!h%Q!h!iJT!i#R%Q#R#SMs#S#W%Q#W#XJT#X#Y%Q#Y#ZJT#Z;'S%Q;'S;=`&s<%lO%QTMxZ&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![La![#R%Q#R#SMs#S;'S%Q;'S;=`&s<%lO%QTNpZ&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![Hq![#R%Q#R#SNk#S;'S%Q;'S;=`&s<%lO%Q_! j]&WS#fQOY%QYZ%lZr%Qrs%qsz%Qz{!!c{!P%Q!P!Q!)U!Q!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%Q_!!hX&WSOY!!cYZ!#TZr!!crs!$psz!!cz{!&O{;'S!!c;'S;=`!'d<%lO!!c_!#YT&WSOz!#iz{!#{{;'S!#i;'S;=`!$j<%lO!#iZ!#lTOz!#iz{!#{{;'S!#i;'S;=`!$j<%lO!#iZ!$OVOz!#iz{!#{{!P!#i!P!Q!$e!Q;'S!#i;'S;=`!$j<%lO!#iZ!$jOQZZ!$mP;=`<%l!#i_!$sXOY!%`YZ!#TZr!%`rs!'jsz!%`z{!(Y{;'S!%`;'S;=`!)O<%lO!%`_!%cXOY!!cYZ!#TZr!!crs!$psz!!cz{!&O{;'S!!c;'S;=`!'d<%lO!!c_!&TZ&WSOY!!cYZ!#TZr!!crs!$psz!!cz{!&O{!P!!c!P!Q!&v!Q;'S!!c;'S;=`!'d<%lO!!c_!&}V&WSQZOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!'gP;=`<%l!!c_!'mXOY!%`YZ!#TZr!%`rs!#isz!%`z{!(Y{;'S!%`;'S;=`!)O<%lO!%`_!(]ZOY!!cYZ!#TZr!!crs!$psz!!cz{!&O{!P!!c!P!Q!&v!Q;'S!!c;'S;=`!'d<%lO!!c_!)RP;=`<%l!%`_!)]V&WSPZOY!)UYZ%lZr!)Urs!)rs;'S!)U;'S;=`!*x<%lO!)U_!)wVPZOY!*^YZ%lZr!*^rs!+Os;'S!*^;'S;=`!,R<%lO!*^_!*cVPZOY!)UYZ%lZr!)Urs!)rs;'S!)U;'S;=`!*x<%lO!)U_!*{P;=`<%l!)U_!+TVPZOY!*^YZ%lZr!*^rs!+js;'S!*^;'S;=`!,R<%lO!*^Z!+oSPZOY!+jZ;'S!+j;'S;=`!+{<%lO!+jZ!,OP;=`<%l!+j_!,UP;=`<%l!*^T!,`u&WS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!.s!P!Q%Q!Q![!0P![!d%Q!d!e!3Z!e!f%Q!f!gJT!g!hJq!h!iJT!i!n%Q!n!o!1u!o!q%Q!q!r!5X!r!z%Q!z!{!7P!{#R%Q#R#S!2c#S#U%Q#U#V!3Z#V#W%Q#W#XJT#X#YJq#Y#ZJT#Z#`%Q#`#a!1u#a#c%Q#c#d!5X#d#l%Q#l#m!7P#m;'S%Q;'S;=`&s<%lO%QT!.za&WS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![Hq![!f%Q!f!gJT!g!hJq!h!iJT!i#W%Q#W#XJT#X#YJq#Y#ZJT#Z;'S%Q;'S;=`&s<%lO%QT!0Wi&WS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!.s!P!Q%Q!Q![!0P![!f%Q!f!gJT!g!hJq!h!iJT!i!n%Q!n!o!1u!o#R%Q#R#S!2c#S#W%Q#W#XJT#X#YJq#Y#ZJT#Z#`%Q#`#a!1u#a;'S%Q;'S;=`&s<%lO%QT!1|V&WS_POY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT!2hZ&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!0P![#R%Q#R#S!2c#S;'S%Q;'S;=`&s<%lO%QT!3`Y&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q!R!4O!R!S!4O!S;'S%Q;'S;=`&s<%lO%QT!4V`&WS_POY%QYZ%lZr%Qrs%qs!Q%Q!Q!R!4O!R!S!4O!S!n%Q!n!o!1u!o#R%Q#R#S!3Z#S#`%Q#`#a!1u#a;'S%Q;'S;=`&s<%lO%QT!5^X&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q!Y!5y!Y;'S%Q;'S;=`&s<%lO%QT!6Q_&WS_POY%QYZ%lZr%Qrs%qs!Q%Q!Q!Y!5y!Y!n%Q!n!o!1u!o#R%Q#R#S!5X#S#`%Q#`#a!1u#a;'S%Q;'S;=`&s<%lO%QT!7U_&WSOY%QYZ%lZr%Qrs%qs!O%Q!O!P!8T!P!Q%Q!Q![!:c![!c%Q!c!i!:c!i#T%Q#T#Z!:c#Z;'S%Q;'S;=`&s<%lO%QT!8Y]&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!9R![!c%Q!c!i!9R!i#T%Q#T#Z!9R#Z;'S%Q;'S;=`&s<%lO%QT!9Wc&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!9R![!c%Q!c!i!9R!i!r%Q!r!sJq!s#R%Q#R#S!8T#S#T%Q#T#Z!9R#Z#d%Q#d#eJq#e;'S%Q;'S;=`&s<%lO%QT!:ji&WS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!hX#oR&WSOY%QYZ%lZr%Qrs%qs![%Q![!]!?T!];'S%Q;'S;=`&s<%lO%QV!?[V&tR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV!?xV!PR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!@fY&]Z&WSOY%QYZ%lZr%Qrs%qs!^%Q!^!_!AU!_!`+p!`;'S%Q;'S;=`&s<%lO%QU!A]X#hQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QV!BPX!bR&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`;'S%Q;'S;=`&s<%lO%QV!BsY&[R&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`!a!Cc!a;'S%Q;'S;=`&s<%lO%QU!CjY#hQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`!a!AU!a;'S%Q;'S;=`&s<%lO%Q_!DcV&`X#nQ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!EPX%{Z&WSOY%QYZ%lZr%Qrs%qs#]%Q#]#^!El#^;'S%Q;'S;=`&s<%lO%QV!EqX&WSOY%QYZ%lZr%Qrs%qs#b%Q#b#c!F^#c;'S%Q;'S;=`&s<%lO%QV!FcX&WSOY%QYZ%lZr%Qrs%qs#h%Q#h#i!GO#i;'S%Q;'S;=`&s<%lO%QV!GTX&WSOY%QYZ%lZr%Qrs%qs#X%Q#X#Y!Gp#Y;'S%Q;'S;=`&s<%lO%QV!GuX&WSOY%QYZ%lZr%Qrs%qs#f%Q#f#g!Hb#g;'S%Q;'S;=`&s<%lO%QV!HgX&WSOY%QYZ%lZr%Qrs%qs#Y%Q#Y#Z!IS#Z;'S%Q;'S;=`&s<%lO%QV!IXX&WSOY%QYZ%lZr%Qrs%qs#T%Q#T#U!It#U;'S%Q;'S;=`&s<%lO%QV!IyX&WSOY%QYZ%lZr%Qrs%qs#V%Q#V#W!Jf#W;'S%Q;'S;=`&s<%lO%QV!JkX&WSOY%QYZ%lZr%Qrs%qs#X%Q#X#Y!KW#Y;'S%Q;'S;=`&s<%lO%QV!K_V&rR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!K{a&PZ&WSOY%QYZ%lZr%Qrs%qst%Qtu!Ktu!Q%Q!Q![!Kt![!c%Q!c!}!Kt!}#R%Q#R#S!Kt#S#T%Q#T#o!Kt#o;'S%Q;'S;=`&s<%lO%Q_!MXVuZ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV!MuVsR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QU!NcX#cQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QV# VV}R&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_# uZ&|X#cQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`#p%Q#p#q#!h#q;'S%Q;'S;=`&s<%lO%QU#!oV#dQ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV##]V|R&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT##yV#tP&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q",tokenizers:[0,1,2,3],topRules:{Program:[0,3]},dynamicPrecedences:{27:1,230:-1,241:-1},specialized:[{term:229,get:O=>r[O]||-1}],tokenPrec:7067});var s=P(4452);const X=s.LRLanguage.define({name:"java",parser:e.configure({props:[s.indentNodeProp.add({IfStatement:(0,s.continuedIndent)({except:/^\s*({|else\b)/}),TryStatement:(0,s.continuedIndent)({except:/^\s*({|catch|finally)\b/}),LabeledStatement:s.flatIndent,SwitchBlock:O=>{let Q=O.textAfter,P=/^\s*\}/.test(Q),$=/^\s*(case|default)\b/.test(Q);return O.baseIndent+(P?0:$?1:2)*O.unit},Block:(0,s.delimitedIndent)({closing:"}"}),BlockComment:()=>null,Statement:(0,s.continuedIndent)({except:/^{/})}),s.foldNodeProp.add({["Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody "+"ConstructorBody InterfaceBody ArrayInitializer"]:s.foldInside,BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});function t(){return new s.LanguageSupport(X)}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8830.d5bb102ed8737ffe38cb.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8830.d5bb102ed8737ffe38cb.js new file mode 100644 index 0000000000000000000000000000000000000000..0ea842a47cd921d7adb12f22b0a5ae5cbbda94ee --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8830.d5bb102ed8737ffe38cb.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8830],{68830:(e,t,n)=>{n.r(t);n.d(t,{cython:()=>c,mkPython:()=>s,python:()=>u});function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var i=r(["and","or","not","is"]);var a=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in","False","True"];var o=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function l(e){return e.scopes[e.scopes.length-1]}function s(e){var t="error";var n=e.delimiters||e.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/;var s=[e.singleOperators,e.doubleOperators,e.doubleDelimiters,e.tripleDelimiters,e.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/];for(var f=0;fi)_(e,n);else if(a0&&z(e,n))o+=" "+t;return o}}return v(e,n)}function v(e,r,a){if(e.eatSpace())return null;if(!a&&e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,false)){var o=false;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)){o=true}if(e.match(/^[\d_]+\.\d*/)){o=true}if(e.match(/^\.\d+/)){o=true}if(o){e.eat(/J/i);return"number"}var l=false;if(e.match(/^0x[0-9a-f_]+/i))l=true;if(e.match(/^0b[01_]+/i))l=true;if(e.match(/^0o[0-7_]+/i))l=true;if(e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)){e.eat(/J/i);l=true}if(e.match(/^0(?![\dx])/i))l=true;if(l){e.eat(/L/i);return"number"}}if(e.match(h)){var f=e.current().toLowerCase().indexOf("f")!==-1;if(!f){r.tokenize=x(e.current(),r.tokenize);return r.tokenize(e,r)}else{r.tokenize=k(e.current(),r.tokenize);return r.tokenize(e,r)}}for(var u=0;u=0)n=n.substr(1);var i=n.length==1;var a="string";function o(e){return function(t,n){var r=v(t,n,true);if(r=="punctuation"){if(t.current()=="{"){n.tokenize=o(e+1)}else if(t.current()=="}"){if(e>1)n.tokenize=o(e-1);else n.tokenize=l}}return r}}function l(l,s){while(!l.eol()){l.eatWhile(/[^'"\{\}\\]/);if(l.eat("\\")){l.next();if(i&&l.eol())return a}else if(l.match(n)){s.tokenize=r;return a}else if(l.match("{{")){return a}else if(l.match("{",false)){s.tokenize=o(0);if(l.current())return a;else return s.tokenize(l,s)}else if(l.match("}}")){return a}else if(l.match("}")){return t}else{l.eat(/['"]/)}}if(i){if(e.singleLineStringErrors)return t;else s.tokenize=r}return a}l.isString=true;return l}function x(n,r){while("rubf".indexOf(n.charAt(0).toLowerCase())>=0)n=n.substr(1);var i=n.length==1;var a="string";function o(o,l){while(!o.eol()){o.eatWhile(/[^'"\\]/);if(o.eat("\\")){o.next();if(i&&o.eol())return a}else if(o.match(n)){l.tokenize=r;return a}else{o.eat(/['"]/)}}if(i){if(e.singleLineStringErrors)return t;else l.tokenize=r}return a}o.isString=true;return o}function _(e,t){while(l(t).type!="py")t.scopes.pop();t.scopes.push({offset:l(t).offset+e.indentUnit,type:"py",align:null})}function w(e,t,n){var r=e.match(/^[\s\[\{\(]*(?:#|$)/,false)?null:e.column()+1;t.scopes.push({offset:t.indent+(u||e.indentUnit),type:n,align:r})}function z(e,t){var n=e.indentation();while(t.scopes.length>1&&l(t).offset>n){if(l(t).type!="py")return true;t.scopes.pop()}return l(t).offset!=n}function F(e,n){if(e.sol()){n.beginningOfLine=true;n.dedent=false}var r=n.tokenize(e,n);var i=e.current();if(n.beginningOfLine&&i=="@")return e.match(m,false)?"meta":d?"operator":t;if(/\S/.test(i))n.beginningOfLine=false;if((r=="variable"||r=="builtin")&&n.lastToken=="meta")r="meta";if(i=="pass"||i=="return")n.dedent=true;if(i=="lambda")n.lambda=true;if(i==":"&&!n.lambda&&l(n).type=="py"&&e.match(/^\s*(?:#|$)/,false))_(e,n);if(i.length==1&&!/string|comment/.test(r)){var a="[({".indexOf(i);if(a!=-1)w(e,n,"])}".slice(a,a+1));a="])}".indexOf(i);if(a!=-1){if(l(n).type==i)n.indent=n.scopes.pop().offset-(u||e.indentUnit);else return t}}if(n.dedent&&e.eol()&&l(n).type=="py"&&n.scopes.length>1)n.scopes.pop();return r}return{name:"python",startState:function(){return{tokenize:g,scopes:[{offset:0,type:"py",align:null}],indent:0,lastToken:null,lambda:false,dedent:0}},token:function(e,n){var r=n.errorToken;if(r)n.errorToken=false;var i=F(e,n);if(i&&i!="comment")n.lastToken=i=="keyword"||i=="punctuation"?e.current():i;if(i=="punctuation")i=null;if(e.eol()&&n.lambda)n.lambda=false;return r?t:i},indent:function(e,t,n){if(e.tokenize!=g)return e.tokenize.isString?null:0;var r=l(e);var i=r.type==t.charAt(0)||r.type=="py"&&!e.dedent&&/^(else:|elif |except |finally:)/.test(t);if(r.align!=null)return r.align-(i?1:0);else return r.offset-(i?u||n.unit:0)},languageData:{autocomplete:a.concat(o).concat(["exec","print"]),indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,commentTokens:{line:"#"},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}}}var f=function(e){return e.split(" ")};const u=s({});const c=s({extra_keywords:f("by cdef cimport cpdef ctypedef enum except "+"extern gil include nogil property public "+"readonly struct union DEF IF ELIF ELSE")})}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/898.ed04189e15f0a3781fb1.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/898.ed04189e15f0a3781fb1.js new file mode 100644 index 0000000000000000000000000000000000000000..1a2cf71616b8389ae303e82bd058a063416c6728 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/898.ed04189e15f0a3781fb1.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[898],{19163:(t,e,a)=>{a.d(e,{S:()=>n});var r=a(75905);function n(t,e){if(t.accDescr){e.setAccDescription?.(t.accDescr)}if(t.accTitle){e.setAccTitle?.(t.accTitle)}if(t.title){e.setDiagramTitle?.(t.title)}}(0,r.K2)(n,"populateCommonDb")},80898:(t,e,a)=>{a.d(e,{diagram:()=>_});var r=a(19163);var n=a(96049);var s=a(93113);var i=a(75905);var o=a(24010);var c={showLegend:true,ticks:5,max:null,min:0,graticule:"circle"};var l={axes:[],curves:[],options:c};var d=structuredClone(l);var p=i.UI.radar;var g=(0,i.K2)((()=>{const t=(0,n.$t)({...p,...(0,i.zj)().radar});return t}),"getConfig");var u=(0,i.K2)((()=>d.axes),"getAxes");var h=(0,i.K2)((()=>d.curves),"getCurves");var x=(0,i.K2)((()=>d.options),"getOptions");var m=(0,i.K2)((t=>{d.axes=t.map((t=>({name:t.name,label:t.label??t.name})))}),"setAxes");var v=(0,i.K2)((t=>{d.curves=t.map((t=>({name:t.name,label:t.label??t.name,entries:$(t.entries)})))}),"setCurves");var $=(0,i.K2)((t=>{if(t[0].axis==void 0){return t.map((t=>t.value))}const e=u();if(e.length===0){throw new Error("Axes must be populated before curves for reference entries")}return e.map((e=>{const a=t.find((t=>t.axis?.$refText===e.name));if(a===void 0){throw new Error("Missing entry for axis "+e.label)}return a.value}))}),"computeCurveEntries");var f=(0,i.K2)((t=>{const e=t.reduce(((t,e)=>{t[e.name]=e;return t}),{});d.options={showLegend:e.showLegend?.value??c.showLegend,ticks:e.ticks?.value??c.ticks,max:e.max?.value??c.max,min:e.min?.value??c.min,graticule:e.graticule?.value??c.graticule}}),"setOptions");var y=(0,i.K2)((()=>{(0,i.IU)();d=structuredClone(l)}),"clear");var b={getAxes:u,getCurves:h,getOptions:x,setAxes:m,setCurves:v,setOptions:f,getConfig:g,clear:y,setAccTitle:i.SV,getAccTitle:i.iN,setDiagramTitle:i.ke,getDiagramTitle:i.ab,getAccDescription:i.m7,setAccDescription:i.EI};var w=(0,i.K2)((t=>{(0,r.S)(t,b);const{axes:e,curves:a,options:n}=t;b.setAxes(e);b.setCurves(a);b.setOptions(n)}),"populate");var C={parse:(0,i.K2)((async t=>{const e=await(0,o.qg)("radar",t);i.Rm.debug(e);w(e)}),"parse")};var M=(0,i.K2)(((t,e,a,r)=>{const n=r.db;const i=n.getAxes();const o=n.getCurves();const c=n.getOptions();const l=n.getConfig();const d=n.getDiagramTitle();const p=(0,s.D)(e);const g=K(p,l);const u=c.max??Math.max(...o.map((t=>Math.max(...t.entries))));const h=c.min;const x=Math.min(l.width,l.height)/2;L(g,i,x,c.ticks,c.graticule);T(g,i,x,l);k(g,i,o,h,u,c.graticule,l);S(g,o,c.showLegend,l);g.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-l.height/2-l.marginTop)}),"draw");var K=(0,i.K2)(((t,e)=>{const a=e.width+e.marginLeft+e.marginRight;const r=e.height+e.marginTop+e.marginBottom;const n={x:e.marginLeft+e.width/2,y:e.marginTop+e.height/2};t.attr("viewbox",`0 0 ${a} ${r}`).attr("width",a).attr("height",r);return t.append("g").attr("transform",`translate(${n.x}, ${n.y})`)}),"drawFrame");var L=(0,i.K2)(((t,e,a,r,n)=>{if(n==="circle"){for(let e=0;e{const a=2*e*Math.PI/n-Math.PI/2;const r=i*Math.cos(a);const s=i*Math.sin(a);return`${r},${s}`})).join(" ");t.append("polygon").attr("points",o).attr("class","radarGraticule")}}}),"drawGraticule");var T=(0,i.K2)(((t,e,a,r)=>{const n=e.length;for(let s=0;s{if(e.entries.length!==o){return}const l=e.entries.map(((t,e)=>{const a=2*Math.PI*e/o-Math.PI/2;const s=A(t,r,n,c);const i=s*Math.cos(a);const l=s*Math.sin(a);return{x:i,y:l}}));if(s==="circle"){t.append("path").attr("d",O(l,i.curveTension)).attr("class",`radarCurve-${a}`)}else if(s==="polygon"){t.append("polygon").attr("points",l.map((t=>`${t.x},${t.y}`)).join(" ")).attr("class",`radarCurve-${a}`)}}))}(0,i.K2)(k,"drawCurves");function A(t,e,a,r){const n=Math.min(Math.max(t,e),a);return r*(n-e)/(a-e)}(0,i.K2)(A,"relativeRadius");function O(t,e){const a=t.length;let r=`M${t[0].x},${t[0].y}`;for(let n=0;n{const r=t.append("g").attr("transform",`translate(${n}, ${s+a*i})`);r.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${a}`);r.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(e.label)}))}(0,i.K2)(S,"drawLegend");var I={draw:M};var D=(0,i.K2)(((t,e)=>{let a="";for(let r=0;r{const e=(0,i.P$)();const a=(0,i.zj)();const r=(0,n.$t)(e,a.themeVariables);const s=(0,n.$t)(r.radar,t);return{themeVariables:r,radarOptions:s}}),"buildRadarStyleOptions");var E=(0,i.K2)((({radar:t}={})=>{const{themeVariables:e,radarOptions:a}=z(t);return`\n\t.radarTitle {\n\t\tfont-size: ${e.fontSize};\n\t\tcolor: ${e.titleColor};\n\t\tdominant-baseline: hanging;\n\t\ttext-anchor: middle;\n\t}\n\t.radarAxisLine {\n\t\tstroke: ${a.axisColor};\n\t\tstroke-width: ${a.axisStrokeWidth};\n\t}\n\t.radarAxisLabel {\n\t\tdominant-baseline: middle;\n\t\ttext-anchor: middle;\n\t\tfont-size: ${a.axisLabelFontSize}px;\n\t\tcolor: ${a.axisColor};\n\t}\n\t.radarGraticule {\n\t\tfill: ${a.graticuleColor};\n\t\tfill-opacity: ${a.graticuleOpacity};\n\t\tstroke: ${a.graticuleColor};\n\t\tstroke-width: ${a.graticuleStrokeWidth};\n\t}\n\t.radarLegendText {\n\t\ttext-anchor: start;\n\t\tfont-size: ${a.legendFontSize}px;\n\t\tdominant-baseline: hanging;\n\t}\n\t${D(e,a)}\n\t`}),"styles");var _={parser:C,db:b,renderer:I,styles:E}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8ea8dbb1b02e6f730f55.woff b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8ea8dbb1b02e6f730f55.woff new file mode 100644 index 0000000000000000000000000000000000000000..6496d17f5261f2f4e4cf47522441db9f9dc52ad8 Binary files /dev/null and b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/8ea8dbb1b02e6f730f55.woff differ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9023.2ff687d7ff50df3719fc.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9023.2ff687d7ff50df3719fc.js new file mode 100644 index 0000000000000000000000000000000000000000..333f0fbc38436bc1e3a69e3251b81120ca760d34 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9023.2ff687d7ff50df3719fc.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9023],{99023:(e,t,n)=>{n.r(t);n.d(t,{cypher:()=>f});var r=function(e){return new RegExp("^(?:"+e.join("|")+")$","i")};var a=function(e){o=null;var t=e.next();if(t==='"'){e.match(/^.*?"/);return"string"}if(t==="'"){e.match(/^.*?'/);return"string"}if(/[{}\(\),\.;\[\]]/.test(t)){o=t;return"punctuation"}else if(t==="/"&&e.eat("/")){e.skipToEnd();return"comment"}else if(d.test(t)){e.eatWhile(d);return null}else{e.eatWhile(/[_\w\d]/);if(e.eat(":")){e.eatWhile(/[\w\d_\-]/);return"atom"}var n=e.current();if(l.test(n))return"builtin";if(c.test(n))return"def";if(u.test(n)||p.test(n))return"keyword";return"variable"}};var i=function(e,t,n){return e.context={prev:e.context,indent:e.indent,col:n,type:t}};var s=function(e){e.indent=e.context.indent;return e.context=e.context.prev};var o;var l=r(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","keys","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","reverse","right","round","rtrim","shortestPath","sign","sin","size","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","toString","trim","type","upper"]);var c=r(["all","and","any","contains","exists","has","in","none","not","or","single","xor"]);var u=r(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","detach","distinct","drop","else","end","ends","explain","false","fieldterminator","foreach","from","headers","in","index","is","join","limit","load","match","merge","null","on","optional","order","periodic","profile","remove","return","scan","set","skip","start","starts","then","true","union","unique","unwind","using","when","where","with","call","yield"]);var p=r(["access","active","assign","all","alter","as","catalog","change","copy","create","constraint","constraints","current","database","databases","dbms","default","deny","drop","element","elements","exists","from","grant","graph","graphs","if","index","indexes","label","labels","management","match","name","names","new","node","nodes","not","of","on","or","password","populated","privileges","property","read","relationship","relationships","remove","replace","required","revoke","role","roles","set","show","start","status","stop","suspended","to","traverse","type","types","user","users","with","write"]);var d=/[*+\-<>=&|~%^]/;const f={name:"cypher",startState:function(){return{tokenize:a,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()){if(t.context&&t.context.align==null){t.context.align=false}t.indent=e.indentation()}if(e.eatSpace()){return null}var n=t.tokenize(e,t);if(n!=="comment"&&t.context&&t.context.align==null&&t.context.type!=="pattern"){t.context.align=true}if(o==="("){i(t,")",e.column())}else if(o==="["){i(t,"]",e.column())}else if(o==="{"){i(t,"}",e.column())}else if(/[\]\}\)]/.test(o)){while(t.context&&t.context.type==="pattern"){s(t)}if(t.context&&o===t.context.type){s(t)}}else if(o==="."&&t.context&&t.context.type==="pattern"){s(t)}else if(/atom|string|variable/.test(n)&&t.context){if(/[\}\]]/.test(t.context.type)){i(t,"pattern",e.column())}else if(t.context.type==="pattern"&&!t.context.align){t.context.align=true;t.context.col=e.column()}}return n},indent:function(e,t,n){var r=t&&t.charAt(0);var a=e.context;if(/[\]\}]/.test(r)){while(a&&a.type==="pattern"){a=a.prev}}var i=a&&r===a.type;if(!a)return 0;if(a.type==="keywords")return null;if(a.align)return a.col+(i?0:1);return a.indent+(i?0:n.unit)}}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9137.179a3c47465e7fb8f067.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9137.179a3c47465e7fb8f067.js new file mode 100644 index 0000000000000000000000000000000000000000..38f400317c376a2fbec079f0df368917ac4e7a57 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9137.179a3c47465e7fb8f067.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9137],{59137:(e,r,t)=>{t.r(r);t.d(r,{css:()=>_,gss:()=>S,keywords:()=>q,less:()=>O,mkCSS:()=>i,sCSS:()=>C});function i(e){e={...K,...e};var r=e.inline;var t=e.tokenHooks,i=e.documentTypes||{},o=e.mediaTypes||{},a=e.mediaFeatures||{},n=e.mediaValueKeywords||{},l=e.propertyKeywords||{},s=e.nonStandardPropertyKeywords||{},c=e.fontProperties||{},d=e.counterDescriptors||{},p=e.colorKeywords||{},u=e.valueKeywords||{},m=e.allowNested,f=e.lineComment,g=e.supportsAtComponent===true,h=e.highlightNonStandardPropertyKeywords!==false;var b,k;function y(e,r){b=r;return e}function w(e,r){var i=e.next();if(t[i]){var o=t[i](e,r);if(o!==false)return o}if(i=="@"){e.eatWhile(/[\w\\\-]/);return y("def",e.current())}else if(i=="="||(i=="~"||i=="|")&&e.eat("=")){return y(null,"compare")}else if(i=='"'||i=="'"){r.tokenize=v(i);return r.tokenize(e,r)}else if(i=="#"){e.eatWhile(/[\w\\\-]/);return y("atom","hash")}else if(i=="!"){e.match(/^\s*\w*/);return y("keyword","important")}else if(/\d/.test(i)||i=="."&&e.eat(/\d/)){e.eatWhile(/[\w.%]/);return y("number","unit")}else if(i==="-"){if(/[\d.]/.test(e.peek())){e.eatWhile(/[\w.%]/);return y("number","unit")}else if(e.match(/^-[\w\\\-]*/)){e.eatWhile(/[\w\\\-]/);if(e.match(/^\s*:/,false))return y("def","variable-definition");return y("variableName","variable")}else if(e.match(/^\w+-/)){return y("meta","meta")}}else if(/[,+>*\/]/.test(i)){return y(null,"select-op")}else if(i=="."&&e.match(/^-?[_a-z][_a-z0-9-]*/i)){return y("qualifier","qualifier")}else if(/[:;{}\[\]\(\)]/.test(i)){return y(null,i)}else if(e.match(/^[\w-.]+(?=\()/)){if(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())){r.tokenize=x}return y("variableName.function","variable")}else if(/[\w\\\-]/.test(i)){e.eatWhile(/[\w\\\-]/);return y("property","word")}else{return y(null,null)}}function v(e){return function(r,t){var i=false,o;while((o=r.next())!=null){if(o==e&&!i){if(e==")")r.backUp(1);break}i=!i&&o=="\\"}if(o==e||!i&&e!=")")t.tokenize=null;return y("string","string")}}function x(e,r){e.next();if(!e.match(/^\s*[\"\')]/,false))r.tokenize=v(")");else r.tokenize=null;return y(null,"(")}function z(e,r,t){this.type=e;this.indent=r;this.prev=t}function j(e,r,t,i){e.context=new z(t,r.indentation()+(i===false?0:r.indentUnit),e.context);return t}function q(e){if(e.context.prev)e.context=e.context.prev;return e.context.type}function _(e,r,t){return O[t.context.type](e,r,t)}function B(e,r,t,i){for(var o=i||1;o>0;o--)t.context=t.context.prev;return _(e,r,t)}function C(e){var r=e.current().toLowerCase();if(u.hasOwnProperty(r))k="atom";else if(p.hasOwnProperty(r))k="keyword";else k="variable"}var O={};O.top=function(e,r,t){if(e=="{"){return j(t,r,"block")}else if(e=="}"&&t.context.prev){return q(t)}else if(g&&/@component/i.test(e)){return j(t,r,"atComponentBlock")}else if(/^@(-moz-)?document$/i.test(e)){return j(t,r,"documentTypes")}else if(/^@(media|supports|(-moz-)?document|import)$/i.test(e)){return j(t,r,"atBlock")}else if(/^@(font-face|counter-style)/i.test(e)){t.stateArg=e;return"restricted_atBlock_before"}else if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e)){return"keyframes"}else if(e&&e.charAt(0)=="@"){return j(t,r,"at")}else if(e=="hash"){k="builtin"}else if(e=="word"){k="tag"}else if(e=="variable-definition"){return"maybeprop"}else if(e=="interpolation"){return j(t,r,"interpolation")}else if(e==":"){return"pseudo"}else if(m&&e=="("){return j(t,r,"parens")}return t.context.type};O.block=function(e,r,t){if(e=="word"){var i=r.current().toLowerCase();if(l.hasOwnProperty(i)){k="property";return"maybeprop"}else if(s.hasOwnProperty(i)){k=h?"string.special":"property";return"maybeprop"}else if(m){k=r.match(/^\s*:(?:\s|$)/,false)?"property":"tag";return"block"}else{k="error";return"maybeprop"}}else if(e=="meta"){return"block"}else if(!m&&(e=="hash"||e=="qualifier")){k="error";return"block"}else{return O.top(e,r,t)}};O.maybeprop=function(e,r,t){if(e==":")return j(t,r,"prop");return _(e,r,t)};O.prop=function(e,r,t){if(e==";")return q(t);if(e=="{"&&m)return j(t,r,"propBlock");if(e=="}"||e=="{")return B(e,r,t);if(e=="(")return j(t,r,"parens");if(e=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(r.current())){k="error"}else if(e=="word"){C(r)}else if(e=="interpolation"){return j(t,r,"interpolation")}return"prop"};O.propBlock=function(e,r,t){if(e=="}")return q(t);if(e=="word"){k="property";return"maybeprop"}return t.context.type};O.parens=function(e,r,t){if(e=="{"||e=="}")return B(e,r,t);if(e==")")return q(t);if(e=="(")return j(t,r,"parens");if(e=="interpolation")return j(t,r,"interpolation");if(e=="word")C(r);return"parens"};O.pseudo=function(e,r,t){if(e=="meta")return"pseudo";if(e=="word"){k="variableName.constant";return t.context.type}return _(e,r,t)};O.documentTypes=function(e,r,t){if(e=="word"&&i.hasOwnProperty(r.current())){k="tag";return t.context.type}else{return O.atBlock(e,r,t)}};O.atBlock=function(e,r,t){if(e=="(")return j(t,r,"atBlock_parens");if(e=="}"||e==";")return B(e,r,t);if(e=="{")return q(t)&&j(t,r,m?"block":"top");if(e=="interpolation")return j(t,r,"interpolation");if(e=="word"){var i=r.current().toLowerCase();if(i=="only"||i=="not"||i=="and"||i=="or")k="keyword";else if(o.hasOwnProperty(i))k="attribute";else if(a.hasOwnProperty(i))k="property";else if(n.hasOwnProperty(i))k="keyword";else if(l.hasOwnProperty(i))k="property";else if(s.hasOwnProperty(i))k=h?"string.special":"property";else if(u.hasOwnProperty(i))k="atom";else if(p.hasOwnProperty(i))k="keyword";else k="error"}return t.context.type};O.atComponentBlock=function(e,r,t){if(e=="}")return B(e,r,t);if(e=="{")return q(t)&&j(t,r,m?"block":"top",false);if(e=="word")k="error";return t.context.type};O.atBlock_parens=function(e,r,t){if(e==")")return q(t);if(e=="{"||e=="}")return B(e,r,t,2);return O.atBlock(e,r,t)};O.restricted_atBlock_before=function(e,r,t){if(e=="{")return j(t,r,"restricted_atBlock");if(e=="word"&&t.stateArg=="@counter-style"){k="variable";return"restricted_atBlock_before"}return _(e,r,t)};O.restricted_atBlock=function(e,r,t){if(e=="}"){t.stateArg=null;return q(t)}if(e=="word"){if(t.stateArg=="@font-face"&&!c.hasOwnProperty(r.current().toLowerCase())||t.stateArg=="@counter-style"&&!d.hasOwnProperty(r.current().toLowerCase()))k="error";else k="property";return"maybeprop"}return"restricted_atBlock"};O.keyframes=function(e,r,t){if(e=="word"){k="variable";return"keyframes"}if(e=="{")return j(t,r,"top");return _(e,r,t)};O.at=function(e,r,t){if(e==";")return q(t);if(e=="{"||e=="}")return B(e,r,t);if(e=="word")k="tag";else if(e=="hash")k="builtin";return"at"};O.interpolation=function(e,r,t){if(e=="}")return q(t);if(e=="{"||e==";")return B(e,r,t);if(e=="word")k="variable";else if(e!="variable"&&e!="("&&e!=")")k="error";return"interpolation"};return{name:e.name,startState:function(){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new z(r?"block":"top",0,null)}},token:function(e,r){if(!r.tokenize&&e.eatSpace())return null;var t=(r.tokenize||w)(e,r);if(t&&typeof t=="object"){b=t[1];t=t[0]}k=t;if(b!="comment")r.state=O[r.state](b,e,r);return k},indent:function(e,r,t){var i=e.context,o=r&&r.charAt(0);var a=i.indent;if(i.type=="prop"&&(o=="}"||o==")"))i=i.prev;if(i.prev){if(o=="}"&&(i.type=="block"||i.type=="top"||i.type=="interpolation"||i.type=="restricted_atBlock")){i=i.prev;a=i.indent}else if(o==")"&&(i.type=="parens"||i.type=="atBlock_parens")||o=="{"&&(i.type=="at"||i.type=="atBlock")){a=Math.max(0,i.indent-t.unit)}}return a},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:f,block:{open:"/*",close:"*/"}},autocomplete:P}}}function o(e){var r={};for(var t=0;t{i.r(e);i.d(e,{BidiSpan:()=>Gt,BlockInfo:()=>gs,BlockType:()=>Mt,Decoration:()=>Ct,Direction:()=>Vt,EditorView:()=>oo,GutterMarker:()=>Zn,MatchDecorator:()=>_o,RectangleMarker:()=>Mo,ViewPlugin:()=>ke,ViewUpdate:()=>Fe,WidgetType:()=>xt,__test:()=>Br,closeHoverTooltips:()=>Yn,crosshairCursor:()=>Sn,drawSelection:()=>Bo,dropCursor:()=>qo,getDrawSelectionConfig:()=>Lo,getPanel:()=>jn,getTooltip:()=>In,gutter:()=>or,gutterLineClass:()=>tr,gutterWidgetClass:()=>er,gutters:()=>rr,hasHoverTooltips:()=>qn,highlightActiveLine:()=>an,highlightActiveLineGutter:()=>Cr,highlightSpecialChars:()=>Jo,highlightTrailingWhitespace:()=>Rr,highlightWhitespace:()=>Tr,hoverTooltip:()=>zn,keymap:()=>po,layer:()=>Eo,lineNumberMarkers:()=>pr,lineNumberWidgetMarker:()=>gr,lineNumbers:()=>yr,logException:()=>Se,panels:()=>Gn,placeholder:()=>dn,rectangularSelection:()=>vn,repositionTooltips:()=>_n,runScopeHandlers:()=>wo,scrollPastEnd:()=>ln,showPanel:()=>Jn,showTooltip:()=>Bn,tooltips:()=>Cn});var s=i(71674);var o=i(23546);var n={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"};var r={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'};var l=typeof navigator!="undefined"&&/Chrome\/(\d+)/.exec(navigator.userAgent);var a=typeof navigator!="undefined"&&/Gecko\/\d+/.test(navigator.userAgent);var h=typeof navigator!="undefined"&&/Mac/.test(navigator.platform);var c=typeof navigator!="undefined"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);var f=h||l&&+l[1]<57;for(var d=0;d<10;d++)n[48+d]=n[96+d]=String(d);for(var d=1;d<=24;d++)n[d+111]="F"+d;for(var d=65;d<=90;d++){n[d]=String.fromCharCode(d+32);r[d]=String.fromCharCode(d)}for(var u in n)if(!r.hasOwnProperty(u))r[u]=n[u];function p(t){var e=f&&(t.ctrlKey||t.altKey||t.metaKey)||c&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified";var i=!e&&t.key||(t.shiftKey?r:n)[t.keyCode]||t.key||"Unidentified";if(i=="Esc")i="Escape";if(i=="Del")i="Delete";if(i=="Left")i="ArrowLeft";if(i=="Up")i="ArrowUp";if(i=="Right")i="ArrowRight";if(i=="Down")i="ArrowDown";return i}function g(t){let e;if(t.nodeType==11){e=t.getSelection?t:t.ownerDocument}else{e=t}return e.getSelection()}function m(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):false}function w(t,e){if(!e.anchorNode)return false;try{return m(t,e.anchorNode)}catch(i){return false}}function v(t){if(t.nodeType==3)return L(t,0,t.nodeValue.length).getClientRects();else if(t.nodeType==1)return t.getClientRects();else return[]}function b(t,e,i,s){return i?x(t,e,i,s,-1)||x(t,e,i,s,1):false}function y(t){for(var e=0;;e++){t=t.previousSibling;if(!t)return e}}function S(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function x(t,e,i,s,o){for(;;){if(t==i&&e==s)return true;if(e==(o<0?0:M(t))){if(t.nodeName=="DIV")return false;let i=t.parentNode;if(!i||i.nodeType!=1)return false;e=y(t)+(o<0?0:1);t=i}else if(t.nodeType==1){t=t.childNodes[e+(o<0?-1:0)];if(t.nodeType==1&&t.contentEditable=="false")return false;e=o<0?M(t):0}else{return false}}}function M(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function C(t,e){let i=e?t.left:t.right;return{left:i,right:i,top:t.top,bottom:t.bottom}}function k(t){let e=t.visualViewport;if(e)return{left:0,right:e.width,top:0,bottom:e.height};return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function A(t,e){let i=e.width/t.offsetWidth;let s=e.height/t.offsetHeight;if(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.width-t.offsetWidth)<1)i=1;if(s>.995&&s<1.005||!isFinite(s)||Math.abs(e.height-t.offsetHeight)<1)s=1;return{scaleX:i,scaleY:s}}function D(t,e,i,s,o,n,r,l){let a=t.ownerDocument,h=a.defaultView||window;for(let c=t,f=false;c&&!f;){if(c.nodeType==1){let t,d=c==a.body;let u=1,p=1;if(d){t=k(h)}else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position))f=true;if(c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let e=c.getBoundingClientRect();({scaleX:u,scaleY:p}=A(c,e));t={left:e.left,right:e.left+c.clientWidth*u,top:e.top,bottom:e.top+c.clientHeight*p}}let g=0,m=0;if(o=="nearest"){if(e.top0&&e.bottom>t.bottom+m)m=e.bottom-t.bottom+r}else if(e.bottom>t.bottom){m=e.bottom-t.bottom+r;if(i<0&&e.top-m0&&e.right>t.right+g)g=e.right-t.right+n}else if(e.right>t.right){g=e.right-t.right+n;if(i<0&&e.leftt.bottom||e.leftt.right)e={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};c=c.assignedSlot||c.parentNode}else if(c.nodeType==11){c=c.host}else{break}}}function O(t){let e=t.ownerDocument,i,s;for(let o=t.parentNode;o;){if(o==e.body||i&&s){break}else if(o.nodeType==1){if(!s&&o.scrollHeight>o.clientHeight)s=o;if(!i&&o.scrollWidth>o.clientWidth)i=o;o=o.assignedSlot||o.parentNode}else if(o.nodeType==11){o=o.host}else{break}}return{x:i,y:s}}class T{constructor(){this.anchorNode=null;this.anchorOffset=0;this.focusNode=null;this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:e,focusNode:i}=t;this.set(e,Math.min(t.anchorOffset,e?M(e):0),i,Math.min(t.focusOffset,i?M(i):0))}set(t,e,i,s){this.anchorNode=t;this.anchorOffset=e;this.focusNode=i;this.focusOffset=s}}let E=null;function R(t){if(t.setActive)return t.setActive();if(E)return t.focus(E);let e=[];for(let i=t;i;i=i.parentNode){e.push(i,i.scrollTop,i.scrollLeft);if(i==i.ownerDocument)break}t.focus(E==null?{get preventScroll(){E={preventScroll:true};return true}}:undefined);if(!E){E=false;for(let t=0;tMath.max(1,t.scrollHeight-t.clientHeight-4)}function W(t,e){for(let i=t,s=e;;){if(i.nodeType==3&&s>0){return{node:i,offset:s}}else if(i.nodeType==1&&s>0){if(i.contentEditable=="false")return null;i=i.childNodes[s-1];s=M(i)}else if(i.parentNode&&!S(i)){s=y(i);i=i.parentNode}else{return null}}}function z(t,e){for(let i=t,s=e;;){if(i.nodeType==3&&se)return i.domBoundsAround(t,e,a);if(c>=t&&s==-1){s=l;o=a}if(a>e&&i.dom.parentNode==this.dom){n=l;r=h;break}h=c;a=c+i.breakAfter}return{from:o,to:r<0?i+this.length:r,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:n=0?this.children[n].dom:null}}markDirty(t=false){this.flags|=2;this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t)e.flags|=2;if(e.flags&1)return;e.flags|=1;t=false}}setParent(t){if(this.parent!=t){this.parent=t;if(this.flags&7)this.markParentsDirty(true)}}setDOM(t){if(this.dom==t)return;if(this.dom)this.dom.cmView=null;this.dom=t;t.cmView=this}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,i=q){this.markDirty();for(let s=t;sthis.pos||t==this.pos&&(e>0||this.i==0||this.children[this.i-1].breakAfter)){this.off=t-this.pos;return this}let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function X(t,e,i,s,o,n,r,l,a){let{children:h}=t;let c=h.length?h[e]:null;let f=n.length?n[n.length-1]:null;let d=f?f.breakAfter:r;if(e==s&&c&&!r&&!d&&n.length<2&&c.merge(i,o,n.length?f:null,i==0,l,a))return;if(s0){if(!r&&n.length&&c.merge(i,c.length,n[0],false,l,0)){c.breakAfter=n.shift().breakAfter}else if(i2);var nt={mac:ot||/Mac/.test(j.platform),windows:/Win/.test(j.platform),linux:/Linux|X11/.test(j.platform),ie:Z,ie_version:Q?$.documentMode||6:J?+J[1]:U?+U[1]:0,gecko:tt,gecko_version:tt?+(/Firefox\/(\d+)/.exec(j.userAgent)||[0,0])[1]:0,chrome:!!et,chrome_version:et?+et[1]:0,ios:ot,android:/Android\b/.test(j.userAgent),webkit:it,safari:st,webkit_version:it?+(/\bAppleWebKit\/(\d+)/.exec(j.userAgent)||[0,0])[1]:0,tabSize:$.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const rt=256;class lt extends K{constructor(t){super();this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,e){if(!this.dom)this.createDOM();if(this.dom.nodeValue!=this.text){if(e&&e.node==this.dom)e.written=true;this.dom.nodeValue=this.text}}reuseDOM(t){if(t.nodeType==3)this.createDOM(t)}merge(t,e,i){if(this.flags&8||i&&(!(i instanceof lt)||this.length-(e-t)+i.length>rt||i.flags&8))return false;this.text=this.text.slice(0,t)+(i?i.text:"")+this.text.slice(e);this.markDirty();return true}split(t){let e=new lt(this.text.slice(t));this.text=this.text.slice(0,t);this.markDirty();e.flags|=this.flags&8;return e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new I(this.dom,t)}domBoundsAround(t,e,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return ht(this.dom,t,e)}}class at extends K{constructor(t,e=[],i=0){super();this.mark=t;this.children=e;this.length=i;for(let s of e)s.setParent(this)}setAttrs(t){N(t);if(this.mark.class)t.className=this.mark.class;if(this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){if(t.nodeName==this.mark.tagName.toUpperCase()){this.setDOM(t);this.flags|=4|2}}sync(t,e){if(!this.dom)this.setDOM(this.setAttrs(document.createElement(this.mark.tagName)));else if(this.flags&4)this.setAttrs(this.dom);super.sync(t,e)}merge(t,e,i,s,o,n){if(i&&(!(i instanceof at&&i.mark.eq(this.mark))||t&&o<=0||et)e.push(i=t)s=o;i=n;o++}let n=this.length-t;this.length=t;if(s>-1){this.children.length=s;this.markDirty()}return new at(this.mark,e,n)}domAtPos(t){return dt(this,t)}coordsAt(t,e){return pt(this,t,e)}}function ht(t,e,i){let s=t.nodeValue.length;if(e>s)e=s;let o=e,n=e,r=0;if(e==0&&i<0||e==s&&i>=0){if(!(nt.chrome||nt.gecko)){if(e){o--;r=1}else if(n=0)?0:l.length-1];if(nt.safari&&!r&&a.width==0)a=Array.prototype.find.call(l,(t=>t.width))||a;return r?C(a,r<0):a||null}class ct extends K{static create(t,e,i){return new ct(t,e,i)}constructor(t,e,i){super();this.widget=t;this.length=e;this.side=i;this.prevWidget=null}split(t){let e=ct.create(this.widget,this.length-t,this.side);this.length-=t;return e}sync(t){if(!this.dom||!this.widget.updateDOM(this.dom,t)){if(this.dom&&this.prevWidget)this.prevWidget.destroy(this.dom);this.prevWidget=null;this.setDOM(this.widget.toDOM(t));if(!this.widget.editable)this.dom.contentEditable="false"}}getSide(){return this.side}merge(t,e,i,s,o,n){if(i&&(!(i instanceof ct)||!this.widget.compare(i.widget)||t>0&&o<=0||e0)?I.before(this.dom):I.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,e){let i=this.widget.coordsAt(this.dom,t,e);if(i)return i;let s=this.dom.getClientRects(),o=null;if(!s.length)return null;let n=this.side?this.side<0:t>0;for(let r=n?s.length-1:0;;r+=n?-1:1){o=s[r];if(t>0?r==0:r==s.length-1||o.top0?I.before(this.dom):I.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return s.Text.empty}get isHidden(){return true}}lt.prototype.children=ct.prototype.children=ft.prototype.children=q;function dt(t,e){let i=t.dom,{children:s}=t,o=0;for(let n=0;on&&e0;n--){let t=s[n-1];if(t.dom.parentNode==i)return t.domAtPos(t.length)}for(let n=o;n0&&e instanceof at&&o.length&&(s=o[o.length-1])instanceof at&&s.mark.eq(e.mark)){ut(s,e.children[0],i-1)}else{o.push(e);e.setParent(t)}t.length+=e.length}function pt(t,e,i){let s=null,o=-1,n=null,r=-1;function l(t,e){for(let a=0,h=0;a=e){if(c.children.length){l(c,e-h)}else if((!n||n.isHidden&&(i>0||mt(n,c)))&&(f>e||h==f&&c.getSide()>0)){n=c;r=e-h}else if(h-1?1:0)!=o.length-(i&&o.indexOf(i)>-1?1:0))return false;for(let n of s){if(n!=i&&(o.indexOf(n)==-1||t[n]!==e[n]))return false}return true}function yt(t,e,i){let s=false;if(e)for(let o in e)if(!(i&&o in i)){s=true;if(o=="style")t.style.cssText="";else t.removeAttribute(o)}if(i)for(let o in i)if(!(e&&e[o]==i[o])){s=true;if(o=="style")t.style.cssText=i[o];else t.setAttribute(o,i[o])}return s}function St(t){let e=Object.create(null);for(let i=0;i0?3e8:-4e8:e>0?1e8:-1e8;return new Dt(t,e,e,i,t.widget||null,false)}static replace(t){let e=!!t.block,i,s;if(t.isBlockGap){i=-5e8;s=4e8}else{let{start:o,end:n}=Ot(t,e);i=(o?e?-3e8:-1:5e8)-1;s=(n?e?2e8:1:-6e8)+1}return new Dt(t,i,s,e,t.widget||null,true)}static line(t){return new At(t)}static set(t,e=false){return s.RangeSet.of(t,e)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:false}}Ct.none=s.RangeSet.empty;class kt extends Ct{constructor(t){let{start:e,end:i}=Ot(t);super(e?-1:5e8,i?1:-6e8,null,t);this.tagName=t.tagName||"span";this.class=t.class||"";this.attrs=t.attributes||null}eq(t){var e,i;return this==t||t instanceof kt&&this.tagName==t.tagName&&(this.class||((e=this.attrs)===null||e===void 0?void 0:e.class))==(t.class||((i=t.attrs)===null||i===void 0?void 0:i.class))&&bt(this.attrs,t.attrs,"class")}range(t,e=t){if(t>=e)throw new RangeError("Mark decorations may not be empty");return super.range(t,e)}}kt.prototype.point=false;class At extends Ct{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof At&&this.spec.class==t.spec.class&&bt(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}At.prototype.mapMode=s.MapMode.TrackBefore;At.prototype.point=true;class Dt extends Ct{constructor(t,e,i,o,n,r){super(e,i,n,t);this.block=o;this.isReplace=r;this.mapMode=!o?s.MapMode.TrackDel:e<=0?s.MapMode.TrackBefore:s.MapMode.TrackAfter}get type(){return this.startSide!=this.endSide?Mt.WidgetRange:this.startSide<=0?Mt.WidgetBefore:Mt.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof Dt&&Tt(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}Dt.prototype.point=true;function Ot(t,e=false){let{inclusiveStart:i,inclusiveEnd:s}=t;if(i==null)i=t.inclusive;if(s==null)s=t.inclusive;return{start:i!==null&&i!==void 0?i:e,end:s!==null&&s!==void 0?s:e}}function Tt(t,e){return t==e||!!(t&&e&&t.compare(e))}function Et(t,e,i,s=0){let o=i.length-1;if(o>=0&&i[o]+s>=t)i[o]=Math.max(i[o],e);else i.push(t,e)}class Rt extends K{constructor(){super(...arguments);this.children=[];this.length=0;this.prevAttrs=undefined;this.attrs=null;this.breakAfter=0}merge(t,e,i,s,o,n){if(i){if(!(i instanceof Rt))return false;if(!this.dom)i.transferDOM(this)}if(s)this.setDeco(i?i.attrs:null);G(this,t,e,i?i.children.slice():[],o,n);return true}split(t){let e=new Rt;e.breakAfter=this.breakAfter;if(this.length==0)return e;let{i,off:s}=this.childPos(t);if(s){e.append(this.children[i].split(s),0);this.children[i].merge(s,this.children[i].length,null,false,0,0);i++}for(let o=i;o0&&this.children[i-1].length==0)this.children[--i].destroy();this.children.length=i;this.markDirty();this.length=t;return e}transferDOM(t){if(!this.dom)return;this.markDirty();t.setDOM(this.dom);t.prevAttrs=this.prevAttrs===undefined?this.attrs:this.prevAttrs;this.prevAttrs=undefined;this.dom=null}setDeco(t){if(!bt(this.attrs,t)){if(this.dom){this.prevAttrs=this.attrs;this.markDirty()}this.attrs=t}}append(t,e){ut(this,t,e)}addLineDeco(t){let e=t.spec.attributes,i=t.spec.class;if(e)this.attrs=wt(e,this.attrs||{});if(i)this.attrs=wt({class:i},this.attrs||{})}domAtPos(t){return dt(this,t)}reuseDOM(t){if(t.nodeName=="DIV"){this.setDOM(t);this.flags|=4|2}}sync(t,e){var i;if(!this.dom){this.setDOM(document.createElement("div"));this.dom.className="cm-line";this.prevAttrs=this.attrs?null:undefined}else if(this.flags&4){N(this.dom);this.dom.className="cm-line";this.prevAttrs=this.attrs?null:undefined}if(this.prevAttrs!==undefined){yt(this.dom,this.prevAttrs,this.attrs);this.dom.classList.add("cm-line");this.prevAttrs=undefined}super.sync(t,e);let s=this.dom.lastChild;while(s&&K.get(s)instanceof at)s=s.lastChild;if(!s||!this.length||s.nodeName!="BR"&&((i=K.get(s))===null||i===void 0?void 0:i.isEditable)==false&&(!nt.ios||!this.children.some((t=>t instanceof lt)))){let t=document.createElement("BR");t.cmIgnore=true;this.dom.appendChild(t)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,e;for(let i of this.children){if(!(i instanceof lt)||/[^ -~]/.test(i.text))return null;let s=v(i.dom);if(s.length!=1)return null;t+=s[0].width;e=s[0].height}return!t?null:{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}}coordsAt(t,e){let i=pt(this,t,e);if(!this.children.length&&i&&this.parent){let{heightOracle:t}=this.parent.view.viewState,e=i.bottom-i.top;if(Math.abs(e-t.lineHeight)<2&&t.textHeight=e){if(o instanceof Rt)return o;if(n>e)break}s=n+o.breakAfter}return null}}class Bt extends K{constructor(t,e,i){super();this.widget=t;this.length=e;this.deco=i;this.breakAfter=0;this.prevWidget=null}merge(t,e,i,s,o,n){if(i&&(!(i instanceof Bt)||!this.widget.compare(i.widget)||t>0&&o<=0||e0}}class Lt extends xt{constructor(t){super();this.height=t}toDOM(){let t=document.createElement("div");t.className="cm-gap";this.updateDOM(t);return t}eq(t){return t.height==this.height}updateDOM(t){t.style.height=this.height+"px";return true}get editable(){return true}get estimatedHeight(){return this.height}ignoreEvent(){return false}}class Pt{constructor(t,e,i,s){this.doc=t;this.pos=e;this.end=i;this.disallowBlockEffectsFor=s;this.content=[];this.curLine=null;this.breakAtStart=0;this.pendingBuffer=0;this.bufferMarks=[];this.atCursorPos=true;this.openStart=-1;this.openEnd=-1;this.text="";this.textOff=0;this.cursor=t.iter();this.skip=e}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof Bt&&t.deco.endSide<0)}getLine(){if(!this.curLine){this.content.push(this.curLine=new Rt);this.atCursorPos=true}return this.curLine}flushBuffer(t=this.bufferMarks){if(this.pendingBuffer){this.curLine.append(Ht(new ft(-1),t),t.length);this.pendingBuffer=0}}addBlockWidget(t){this.flushBuffer();this.curLine=null;this.content.push(t)}finish(t){if(this.pendingBuffer&&t<=this.bufferMarks.length)this.flushBuffer();else this.pendingBuffer=0;if(!this.posCovered()&&!(t&&this.content.length&&this.content[this.content.length-1]instanceof Bt))this.getLine()}buildText(t,e,i){while(t>0){if(this.textOff==this.text.length){let{value:e,lineBreak:i,done:s}=this.cursor.next(this.skip);this.skip=0;if(s)throw new Error("Ran out of text content when drawing inline views");if(i){if(!this.posCovered())this.getLine();if(this.content.length)this.content[this.content.length-1].breakAfter=1;else this.breakAtStart=1;this.flushBuffer();this.curLine=null;this.atCursorPos=true;t--;continue}else{this.text=e;this.textOff=0}}let s=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-i));this.getLine().append(Ht(new lt(this.text.slice(this.textOff,this.textOff+s)),e),i);this.atCursorPos=true;this.textOff+=s;t-=s;i=0}}span(t,e,i,s){this.buildText(e-t,i,s);this.pos=e;if(this.openStart<0)this.openStart=s}point(t,e,i,s,o,n){if(this.disallowBlockEffectsFor[n]&&i instanceof Dt){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let r=e-t;if(i instanceof Dt){if(i.block){if(i.startSide>0&&!this.posCovered())this.getLine();this.addBlockWidget(new Bt(i.widget||Nt.block,r,i))}else{let n=ct.create(i.widget||Nt.inline,r,r?0:i.startSide);let l=this.atCursorPos&&!n.isEditable&&o<=s.length&&(t0);let a=!n.isEditable&&(ts.length||i.startSide<=0);let h=this.getLine();if(this.pendingBuffer==2&&!l&&!n.isEditable)this.pendingBuffer=0;this.flushBuffer(s);if(l){h.append(Ht(new ft(1),s),o);o=s.length+Math.max(0,o-s.length)}h.append(Ht(n,s),o);this.atCursorPos=a;this.pendingBuffer=!a?0:ts.length?1:2;if(this.pendingBuffer)this.bufferMarks=s.slice()}}else if(this.doc.lineAt(this.pos).from==this.pos){this.getLine().addLineDeco(i)}if(r){if(this.textOff+r<=this.text.length){this.textOff+=r}else{this.skip+=r-(this.text.length-this.textOff);this.text="";this.textOff=0}this.pos=e}if(this.openStart<0)this.openStart=o}static build(t,e,i,o,n){let r=new Pt(t,e,i,n);r.openEnd=s.RangeSet.spans(o,e,i,r);if(r.openStart<0)r.openStart=r.openEnd;r.finish(r.openEnd);return r}}function Ht(t,e){for(let i of e)t=new at(i,[t],t.length);return t}class Nt extends xt{constructor(t){super();this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return true}}Nt.inline=new Nt("span");Nt.block=new Nt("div");var Vt=function(t){t[t["LTR"]=0]="LTR";t[t["RTL"]=1]="RTL";return t}(Vt||(Vt={}));const Ft=Vt.LTR,Wt=Vt.RTL;function zt(t){let e=[];for(let i=0;i=e){if(r.level==i)return n;if(o<0||(s!=0?s<0?r.frome:t[o].level>r.level))o=n}}if(o<0)throw new RangeError("Index out of range");return o}}function jt(t,e){if(t.length!=e.length)return false;for(let i=0;i=0;t-=3){if(Yt[t+1]==-s){let i=Yt[t+2];let s=i&2?o:!(i&4)?0:i&1?n:o;if(s)$t[e]=$t[Yt[t]]=s;l=t;break}}}else if(Yt.length==189){break}else{Yt[l++]=e;Yt[l++]=i;Yt[l++]=a}}else if((r=$t[e])==2||r==1){let t=r==o;a=t?0:1;for(let e=l-3;e>=0;e-=3){let i=Yt[e+2];if(i&2)break;if(t){Yt[e+2]|=2}else{if(i&4)break;Yt[e+2]|=4}}}}}}function Jt(t,e,i,s){for(let o=0,n=s;o<=i.length;o++){let r=o?i[o-1].to:t,l=oa;){if(e==n){e=i[--s].from;n=s?i[s-1].to:t}$t[--e]=f}a=r}else{n=r;a++}}}}function Zt(t,e,i,s,o,n,r){let l=s%2?2:1;if(s%2==o%2){for(let a=e,h=0;aa)r.push(new Gt(a,p.from,d));let e=p.direction==Ft!=!(d%2);te(t,e?s+1:s,o,p.inner,p.from,p.to,r);a=p.to}u=p.to}else if(u==i||(e?$t[u]!=l:$t[u]==l)){break}else{u++}}if(f)Zt(t,a,u,s+1,o,f,r);else if(ae;){let i=true,c=false;if(!h||a>n[h-1].to){let t=$t[a-1];if(t!=l){i=false;c=t==16}}let f=!i&&l==1?[]:null;let d=i?s:s+1;let u=a;t:for(;;){if(h&&u==n[h-1].to){if(c)break t;let p=n[--h];if(!i)for(let t=p.from,i=h;;){if(t==e)break t;if(i&&n[i-1].to==t)t=n[--i].from;else if($t[t-1]==l)break t;else break}if(f){f.push(p)}else{if(p.to$t.length)$t[$t.length]=256;let s=[],o=e==Ft?0:1;te(t,o,o,i,0,t.length,s);return s}function ie(t){return[new Gt(0,t,0)]}let se="";function oe(t,e,i,o,n){var r;let l=o.head-t.from;let a=Gt.find(e,l,(r=o.bidiLevel)!==null&&r!==void 0?r:-1,o.assoc);let h=e[a],c=h.side(n,i);if(l==c){let t=a+=n?1:-1;if(t<0||t>=e.length)return null;h=e[a=t];l=h.side(!n,i);c=h.side(n,i)}let f=(0,s.findClusterBreak)(t.text,l,h.forward(n,i));if(fh.to)f=c;se=t.text.slice(Math.min(l,f),Math.max(l,f));let d=a==(n?e.length-1:0)?null:e[a+(n?1:-1)];if(d&&f==c&&d.level+(n?0:1)t.some((t=>t))});const me=s.Facet.define({combine:t=>t.some((t=>t))});const we=s.Facet.define();class ve{constructor(t,e="nearest",i="nearest",s=5,o=5,n=false){this.range=t;this.y=e;this.x=i;this.yMargin=s;this.xMargin=o;this.isSnapshot=n}map(t){return t.empty?this:new ve(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new ve(s.EditorSelection.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const be=s.StateEffect.define({map:(t,e)=>t.map(e)});const ye=s.StateEffect.define();function Se(t,e,i){let s=t.facet(he);if(s.length)s[0](e);else if(window.onerror)window.onerror(String(e),i,undefined,undefined,e);else if(i)console.error(i+":",e);else console.error(e)}const xe=s.Facet.define({combine:t=>t.length?t[0]:true});let Me=0;const Ce=s.Facet.define();class ke{constructor(t,e,i,s,o){this.id=t;this.create=e;this.domEventHandlers=i;this.domEventObservers=s;this.extension=o(this)}static define(t,e){const{eventHandlers:i,eventObservers:s,provide:o,decorations:n}=e||{};return new ke(Me++,t,i,s,(t=>{let e=[Ce.of(t)];if(n)e.push(Te.of((e=>{let i=e.plugin(t);return i?n(i):Ct.none})));if(o)e.push(o(t));return e}))}static fromClass(t,e){return ke.define((e=>new t(e)),e)}}class Ae{constructor(t){this.spec=t;this.mustUpdate=null;this.value=null}update(t){if(!this.value){if(this.spec){try{this.value=this.spec.create(t)}catch(e){Se(t.state,e,"CodeMirror plugin crashed");this.deactivate()}}}else if(this.mustUpdate){let t=this.mustUpdate;this.mustUpdate=null;if(this.value.update){try{this.value.update(t)}catch(e){Se(t.state,e,"CodeMirror plugin crashed");if(this.value.destroy)try{this.value.destroy()}catch(i){}this.deactivate()}}}return this}destroy(t){var e;if((e=this.value)===null||e===void 0?void 0:e.destroy){try{this.value.destroy()}catch(i){Se(t.state,i,"CodeMirror plugin crashed")}}}deactivate(){this.spec=this.value=null}}const De=s.Facet.define();const Oe=s.Facet.define();const Te=s.Facet.define();const Ee=s.Facet.define();const Re=s.Facet.define();const Be=s.Facet.define();function Le(t,e){let i=t.state.facet(Be);if(!i.length)return i;let o=i.map((e=>e instanceof Function?e(t):e));let n=[];s.RangeSet.spans(o,e.from,e.to,{point(){},span(t,i,s,o){let r=t-e.from,l=i-e.from;let a=n;for(let n=s.length-1;n>=0;n--,o--){let t=s[n].spec.bidiIsolate,i;if(t==null)t=ne(e.text,r,l);if(o>0&&a.length&&(i=a[a.length-1]).to==r&&i.direction==t){i.to=l;a=i.inner}else{let e={from:r,to:l,direction:t,inner:[]};a.push(e);a=e.inner}}}});return n}const Pe=s.Facet.define();function He(t){let e=0,i=0,s=0,o=0;for(let n of t.state.facet(Pe)){let r=n(t);if(r){if(r.left!=null)e=Math.max(e,r.left);if(r.right!=null)i=Math.max(i,r.right);if(r.top!=null)s=Math.max(s,r.top);if(r.bottom!=null)o=Math.max(o,r.bottom)}}return{left:e,right:i,top:s,bottom:o}}const Ne=s.Facet.define();class Ve{constructor(t,e,i,s){this.fromA=t;this.toA=e;this.fromB=i;this.toB=s}join(t){return new Ve(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let s=t[e-1];if(s.fromA>i.toA)continue;if(s.toAh)break;else o+=2}if(!l)return i;new Ve(l.fromA,l.toA,l.fromB,l.toB).addToSet(i);n=l.toA;r=l.toB}}}class Fe{constructor(t,e,i){this.view=t;this.state=e;this.transactions=i;this.flags=0;this.startState=t.state;this.changes=s.ChangeSet.empty(this.startState.doc.length);for(let s of i)this.changes=this.changes.compose(s.changes);let o=[];this.changes.iterChangedRanges(((t,e,i,s)=>o.push(new Ve(t,e,i,s))));this.changedRanges=o}static create(t,e,i){return new Fe(t,e,i)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&(16|2))>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((t=>t.selection))}get empty(){return this.flags==0&&this.transactions.length==0}}class We extends K{get length(){return this.view.state.doc.length}constructor(t){super();this.view=t;this.decorations=[];this.dynamicDecorationMap=[false];this.domChanged=null;this.hasComposition=null;this.markedForComposition=new Set;this.editContextFormatting=Ct.none;this.lastCompositionAfterCursor=false;this.minWidth=0;this.minWidthFrom=0;this.minWidthTo=0;this.impreciseAnchor=null;this.impreciseHead=null;this.forceSelection=false;this.lastUpdate=Date.now();this.setDOM(t.contentDOM);this.children=[new Rt];this.children[0].setParent(this);this.updateDeco();this.updateInner([new Ve(0,0,0,t.state.doc.length)],0,null)}update(t){var e;let i=t.changedRanges;if(this.minWidth>0&&i.length){if(!i.every((({fromA:t,toA:e})=>ethis.minWidthTo))){this.minWidth=this.minWidthFrom=this.minWidthTo=0}else{this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1);this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)}}this.updateEditContextFormatting(t);let s=-1;if(this.view.inputState.composing>=0&&!this.view.observer.editContext){if((e=this.domChanged)===null||e===void 0?void 0:e.newSel)s=this.domChanged.newSel.head;else if(!Ge(t.changes,this.hasComposition)&&!t.selectionSet)s=t.state.selection.main.head}let o=s>-1?qe(this.view,t.changes,s):null;this.domChanged=null;if(this.hasComposition){this.markedForComposition.clear();let{from:e,to:s}=this.hasComposition;i=new Ve(e,s,t.changes.mapPos(e,-1),t.changes.mapPos(s,1)).addToSet(i.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null;if((nt.ie||nt.chrome)&&!o&&t&&t.state.doc.lines!=t.startState.doc.lines)this.forceSelection=true;let n=this.decorations,r=this.updateDeco();let l=_e(n,r,t.changes);i=Ve.extendWithRanges(i,l);if(!(this.flags&7)&&i.length==0){return false}else{this.updateInner(i,t.startState.doc.length,o);if(t.transactions.length)this.lastUpdate=Date.now();return true}}updateInner(t,e,i){this.view.viewState.mustMeasureContent=true;this.updateChildren(t,e,i);let{observer:s}=this.view;s.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px";this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let t=nt.chrome||nt.ios?{node:s.selectionRange.focusNode,written:false}:undefined;this.sync(this.view,t);this.flags&=~7;if(t&&(t.written||s.selectionRange.focusNode!=t.node))this.forceSelection=true;this.dom.style.height=""}));this.markedForComposition.forEach((t=>t.flags&=~8));let o=[];if(this.view.viewport.from||this.view.viewport.to=0?s[n]:null;if(!t)break;let{fromA:e,toA:r,fromB:l,toB:a}=t,h,c,f,d;if(i&&i.range.fromBl){let t=Pt.build(this.view.state.doc,l,i.range.fromB,this.decorations,this.dynamicDecorationMap);let e=Pt.build(this.view.state.doc,i.range.toB,a,this.decorations,this.dynamicDecorationMap);c=t.breakAtStart;f=t.openStart;d=e.openEnd;let s=this.compositionView(i);if(e.breakAtStart){s.breakAfter=1}else if(e.content.length&&s.merge(s.length,s.length,e.content[0],false,e.openStart,0)){s.breakAfter=e.content[0].breakAfter;e.content.shift()}if(t.content.length&&s.merge(0,0,t.content[t.content.length-1],true,0,t.openEnd)){t.content.pop()}h=t.content.concat(s).concat(e.content)}else{({content:h,breakAtStart:c,openStart:f,openEnd:d}=Pt.build(this.view.state.doc,l,a,this.decorations,this.dynamicDecorationMap))}let{i:u,off:p}=o.findPos(r,1);let{i:g,off:m}=o.findPos(e,-1);X(this,g,m,u,p,h,c,f,d)}if(i)this.fixCompositionDOM(i)}updateEditContextFormatting(t){this.editContextFormatting=this.editContextFormatting.map(t.changes);for(let e of t.transactions)for(let t of e.effects)if(t.is(ye)){this.editContextFormatting=t.value}}compositionView(t){let e=new lt(t.text.nodeValue);e.flags|=8;for(let{deco:s}of t.marks)e=new at(s,[e],e.length);let i=new Rt;i.append(e,0);return i}fixCompositionDOM(t){let e=(t,e)=>{e.flags|=8|(e.children.some((t=>t.flags&7))?1:0);this.markedForComposition.add(e);let i=K.get(t);if(i&&i!=e)i.dom=null;e.setDOM(t)};let i=this.childPos(t.range.fromB,1);let s=this.children[i.i];e(t.line,s);for(let o=t.marks.length-1;o>=-1;o--){i=s.childPos(i.off,1);s=s.children[i.i];e(o>=0?t.marks[o].node:t.text,s)}}updateSelection(t=false,e=false){if(t||!this.view.observer.selectionRange.focusNode)this.view.observer.readSelectionRange();let i=this.view.root.activeElement,s=i==this.dom;let o=!s&&!(this.view.state.facet(xe)||this.dom.tabIndex>-1)&&w(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(s||e||o))return;let n=this.forceSelection;this.forceSelection=false;let r=this.view.state.selection.main;let l=this.moveToLine(this.domAtPos(r.anchor));let a=r.empty?l:this.moveToLine(this.domAtPos(r.head));if(nt.gecko&&r.empty&&!this.hasComposition&&ze(l)){let t=document.createTextNode("");this.view.observer.ignore((()=>l.node.insertBefore(t,l.node.childNodes[l.offset]||null)));l=a=new I(t,0);n=true}let h=this.view.observer.selectionRange;if(n||!h.focusNode||(!b(l.node,l.offset,h.anchorNode,h.anchorOffset)||!b(a.node,a.offset,h.focusNode,h.focusOffset))&&!this.suppressWidgetCursorChange(h,r)){this.view.observer.ignore((()=>{if(nt.android&&nt.chrome&&this.dom.contains(h.focusNode)&&Xe(h.focusNode,this.dom)){this.dom.blur();this.dom.focus({preventScroll:true})}let t=g(this.view.root);if(!t);else if(r.empty){if(nt.gecko){let t=Ke(l.node,l.offset);if(t&&t!=(1|2)){let e=(t==1?W:z)(l.node,l.offset);if(e)l=new I(e.node,e.offset)}}t.collapse(l.node,l.offset);if(r.bidiLevel!=null&&t.caretBidiLevel!==undefined)t.caretBidiLevel=r.bidiLevel}else if(t.extend){t.collapse(l.node,l.offset);try{t.extend(a.node,a.offset)}catch(e){}}else{let e=document.createRange();if(r.anchor>r.head)[l,a]=[a,l];e.setEnd(a.node,a.offset);e.setStart(l.node,l.offset);t.removeAllRanges();t.addRange(e)}if(o&&this.view.root.activeElement==this.dom){this.dom.blur();if(i)i.focus()}}));this.view.observer.setSelectionRange(l,a)}this.impreciseAnchor=l.precise?null:new I(h.anchorNode,h.anchorOffset);this.impreciseHead=a.precise?null:new I(h.focusNode,h.focusOffset)}suppressWidgetCursorChange(t,e){return this.hasComposition&&e.empty&&b(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==e.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,e=t.state.selection.main;let i=g(t.root);let{anchorNode:s,anchorOffset:o}=t.observer.selectionRange;if(!i||!e.empty||!e.assoc||!i.modify)return;let n=Rt.find(this,e.head);if(!n)return;let r=n.posAtStart;if(e.head==r||e.head==r+n.length)return;let l=this.coordsAt(e.head,-1),a=this.coordsAt(e.head,1);if(!l||!a||l.bottom>a.top)return;let h=this.domAtPos(e.head+e.assoc);i.collapse(h.node,h.offset);i.modify("move",e.assoc<0?"forward":"backward","lineboundary");t.observer.readSelectionRange();let c=t.observer.selectionRange;if(t.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=e.from)i.collapse(s,o)}moveToLine(t){let e=this.dom,i;if(t.node!=e)return t;for(let s=t.offset;!i&&s=0;s--){let t=K.get(e.childNodes[s]);if(t instanceof Rt)i=t.domAtPos(t.length)}return i?new I(i.node,i.offset,true):t}nearest(t){for(let e=t;e;){let t=K.get(e);if(t&&t.rootView==this)return t;e=e.parentNode}return null}posFromDOM(t,e){let i=this.nearest(t);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(t,e)+i.posAtStart}domAtPos(t){let{i:e,off:i}=this.childCursor().findPos(t,-1);for(;e=0;n--){let r=this.children[n],l=o-r.breakAfter,a=l-r.length;if(lt||r.covers(1))&&(!i||r instanceof Rt&&!(i instanceof Rt&&e>=0))){i=r;s=a}else if(i&&a==t&&l==t&&r instanceof Bt&&Math.abs(e)<2){if(r.deco.startSide<0)break;else if(n)i=null}o=a}return i?i.coordsAt(t-s,e):null}coordsForChar(t){let{i:e,off:i}=this.childPos(t,1),o=this.children[e];if(!(o instanceof Rt))return null;while(o.children.length){let{i:t,off:e}=o.childPos(i,1);for(;;t++){if(t==o.children.length)return null;if((o=o.children[t]).length)break}i=e}if(!(o instanceof lt))return null;let n=(0,s.findClusterBreak)(o.text,i);if(n==i)return null;let r=L(o.dom,i,n).getClientRects();for(let s=0;sMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1;let r=-1,l=this.view.textDirection==Vt.LTR;for(let a=0,h=0;hs)break;if(a>=i){let i=t.dom.getBoundingClientRect();e.push(i.height);if(n){let e=t.dom.lastChild;let s=e?v(e):[];if(s.length){let t=s[s.length-1];let e=l?t.right-i.left:i.right-t.left;if(e>r){r=e;this.minWidth=o;this.minWidthFrom=a;this.minWidthTo=c}}}}a=c+t.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return getComputedStyle(this.children[e].dom).direction=="rtl"?Vt.RTL:Vt.LTR}measureTextSize(){for(let o of this.children){if(o instanceof Rt){let t=o.measureTextSize();if(t)return t}}let t=document.createElement("div"),e,i,s;t.className="cm-line";t.style.width="99999px";t.style.position="absolute";t.textContent="abc def ghi jkl mno pqr stu";this.view.observer.ignore((()=>{this.dom.appendChild(t);let o=v(t.firstChild)[0];e=t.getBoundingClientRect().height;i=o?o.width/27:7;s=o?o.height:e;t.remove()}));return{lineHeight:e,charWidth:i,textHeight:s}}childCursor(t=this.length){let e=this.children.length;if(e)t-=this.children[--e].length;return new _(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,s=0;;s++){let o=s==e.viewports.length?null:e.viewports[s];let n=o?o.from-1:this.length;if(n>i){let s=(e.lineBlockAt(n).bottom-e.lineBlockAt(i).top)/this.view.scaleY;t.push(Ct.replace({widget:new Lt(s),block:true,inclusive:true,isBlockGap:true}).range(i,n))}if(!o)break;i=o.to+1}return Ct.set(t)}updateDeco(){let t=1;let e=this.view.state.facet(Te).map((e=>{let i=this.dynamicDecorationMap[t++]=typeof e=="function";return i?e(this.view):e}));let i=false,o=this.view.state.facet(Ee).map(((t,e)=>{let s=typeof t=="function";if(s)i=true;return s?t(this.view):t}));if(o.length){this.dynamicDecorationMap[t++]=i;e.push(s.RangeSet.join(o))}this.decorations=[this.editContextFormatting,...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];while(te.anchor?-1:1),s;if(!i)return;if(!e.empty&&(s=this.coordsAt(e.anchor,e.anchor>e.head?-1:1)))i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)};let o=He(this.view);let n={left:i.left-o.left,top:i.top-o.top,right:i.right+o.right,bottom:i.bottom+o.bottom};let{offsetWidth:r,offsetHeight:l}=this.view.scrollDOM;D(this.view.scrollDOM,n,e.head{if(te.from)i=true}));return i}function je(t,e,i=1){let o=t.charCategorizer(e);let n=t.doc.lineAt(e),r=e-n.from;if(n.length==0)return s.EditorSelection.cursor(e);if(r==0)i=1;else if(r==n.length)i=-1;let l=r,a=r;if(i<0)l=(0,s.findClusterBreak)(n.text,r,false);else a=(0,s.findClusterBreak)(n.text,r);let h=o(n.text.slice(l,a));while(l>0){let t=(0,s.findClusterBreak)(n.text,l,false);if(o(n.text.slice(t,l))!=h)break;l=t}while(at?e.left-t:Math.max(0,t-e.right)}function Ue(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function Qe(t,e){return t.tope.top+1}function Je(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function ti(t,e,i){let s,o,n,r,l=false;let a,h,c,f;for(let p=t.firstChild;p;p=p.nextSibling){let t=v(p);for(let d=0;dm||r==m&&n>g){s=p;o=u;n=g;r=m;let a=m?i0?d0)}if(g==0){if(i>u.bottom&&(!c||c.bottomu.top)){h=p;f=u}}else if(c&&Qe(c,u)){c=Ze(c,u.bottom)}else if(f&&Qe(f,u)){f=Je(f,u.top)}}}if(c&&c.bottom>=i){s=a;o=c}else if(f&&f.top<=i){s=h;o=f}if(!s)return{node:t,offset:0};let d=Math.max(o.left,Math.min(o.right,e));if(s.nodeType==3)return ei(s,d,i);if(l&&s.contentEditable!="false")return ti(s,d,i);let u=Array.prototype.indexOf.call(t.childNodes,s)+(e>=(o.left+o.right)/2?1:0);return{node:t,offset:u}}function ei(t,e,i){let s=t.nodeValue.length;let o=-1,n=1e9,r=0;for(let l=0;li?h.top-i:i-h.bottom)-1;if(h.left-1<=e&&h.right+1>=e&&c=(h.left+h.right)/2,s=i;if(nt.chrome||nt.gecko){let e=L(t,l).getBoundingClientRect();if(e.left==h.right)s=!i}if(c<=0)return{node:t,offset:l+(s?1:0)};o=l+(s?1:0);n=c}}}return{node:t,offset:o>-1?o:r>0?t.nodeValue.length:0}}function ii(t,e,i,s=-1){var o,n;let r=t.contentDOM.getBoundingClientRect(),l=r.top+t.viewState.paddingTop;let a,{docHeight:h}=t.viewState;let{x:c,y:f}=e,d=f-l;if(d<0)return 0;if(d>h)return t.state.doc.length;for(let y=t.viewState.heightOracle.textHeight/2,S=false;;){a=t.elementAtHeight(d);if(a.type==Mt.Text)break;for(;;){d=s>0?a.bottom+y:a.top-y;if(d>=0&&d<=h)break;if(S)return i?null:0;S=true;s=-s}}f=l+d;let u=a.from;if(ut.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:i?null:si(t,r,a,c,f);let p=t.dom.ownerDocument;let g=t.root.elementFromPoint?t.root:p;let m=g.elementFromPoint(c,f);if(m&&!t.contentDOM.contains(m))m=null;if(!m){c=Math.max(r.left+1,Math.min(r.right-1,c));m=g.elementFromPoint(c,f);if(m&&!t.contentDOM.contains(m))m=null}let w,v=-1;if(m&&((o=t.docView.nearest(m))===null||o===void 0?void 0:o.isEditable)!=false){if(p.caretPositionFromPoint){let t=p.caretPositionFromPoint(c,f);if(t)({offsetNode:w,offset:v}=t)}else if(p.caretRangeFromPoint){let e=p.caretRangeFromPoint(c,f);if(e){({startContainer:w,startOffset:v}=e);if(!t.contentDOM.contains(w)||nt.safari&&oi(w,v,c)||nt.chrome&&ni(w,v,c))w=undefined}}if(w)v=Math.min(M(w),v)}if(!w||!t.docView.dom.contains(w)){let e=Rt.find(t.docView,u);if(!e)return d>a.top+a.height/2?a.to:a.from;({node:w,offset:v}=ti(e.dom,c,f))}let b=t.docView.nearest(w);if(!b)return null;if(b.isWidget&&((n=b.dom)===null||n===void 0?void 0:n.nodeType)==1){let t=b.dom.getBoundingClientRect();return e.yt.defaultLineHeight*1.5){let e=t.viewState.heightOracle.textHeight;let s=Math.floor((n-i.top-(t.defaultLineHeight-e)*.5)/e);r+=s*t.viewState.heightOracle.lineLength}let l=t.state.sliceDoc(i.from,i.to);return i.from+(0,s.findColumn)(l,r,t.state.tabSize)}function oi(t,e,i){let s;if(t.nodeType!=3||e!=(s=t.nodeValue.length))return false;for(let o=t.nextSibling;o;o=o.nextSibling)if(o.nodeType!=1||o.nodeName!="BR")return false;return L(t,s-1,s).getBoundingClientRect().left>i}function ni(t,e,i){if(e!=0)return false;for(let o=t;;){let t=o.parentNode;if(!t||t.nodeType!=1||t.firstChild!=o)return false;if(t.classList.contains("cm-line"))break;o=t}let s=t.nodeType==1?t.getBoundingClientRect():L(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return i-s.left>5}function ri(t,e,i){let s=t.lineBlockAt(e);if(Array.isArray(s.type)){let t;for(let o of s.type){if(o.from>e)break;if(o.toe)return o;if(!t||o.type==Mt.Text&&(t.type!=o.type||(i<0?o.frome)))t=o}return t||s}return s}function li(t,e,i,o){let n=ri(t,e.head,e.assoc||-1);let r=!o||n.type!=Mt.Text||!(t.lineWrapping||n.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>n.from?e.head-1:e.head);if(r){let e=t.dom.getBoundingClientRect();let o=t.textDirectionAt(n.from);let l=t.posAtCoords({x:i==(o==Vt.LTR)?e.right-1:e.left+1,y:(r.top+r.bottom)/2});if(l!=null)return s.EditorSelection.cursor(l,i?-1:1)}return s.EditorSelection.cursor(i?n.to:n.from,i?-1:1)}function ai(t,e,i,s){let o=t.state.doc.lineAt(e.head),n=t.bidiSpans(o);let r=t.textDirectionAt(o.from);for(let l=e,a=null;;){let e=oe(o,n,r,l,i),h=se;if(!e){if(o.number==(i?t.state.doc.lines:1))return l;h="\n";o=t.state.doc.line(o.number+(i?1:-1));n=t.bidiSpans(o);e=t.visualLineSide(o,!i)}if(!a){if(!s)return e;a=s(h)}else if(!a(h)){return l}l=e}}function hi(t,e,i){let o=t.state.charCategorizer(e);let n=o(i);return t=>{let e=o(t);if(n==s.CharCategory.Space)n=e;return n==e}}function ci(t,e,i,o){let n=e.head,r=i?1:-1;if(n==(i?t.state.doc.length:0))return s.EditorSelection.cursor(n,e.assoc);let l=e.goalColumn,a;let h=t.contentDOM.getBoundingClientRect();let c=t.coordsAtPos(n,e.assoc||-1),f=t.documentTop;if(c){if(l==null)l=c.left-h.left;a=r<0?c.top:c.bottom}else{let e=t.viewState.lineBlockAt(n);if(l==null)l=Math.min(h.right-h.left,t.defaultCharacterWidth*(n-e.from));a=(r<0?e.top:e.bottom)+f}let d=h.left+l;let u=o!==null&&o!==void 0?o:t.viewState.heightOracle.textHeight>>1;for(let p=0;;p+=10){let e=a+(u+p)*r;let i=ii(t,{x:d,y:e},false,r);if(eh.bottom||(r<0?in)){let o=t.docView.coordsForChar(i);let n=!o||e{if(e>t&&ee(t))),i.from,e.head>i.from?-1:1);return o==i.from?i:s.EditorSelection.cursor(o,ot)this.lineBreak();s=o}this.findPointBefore(i,e);return this}readTextNode(t){let e=t.nodeValue;for(let i of this.points)if(i.node==t)i.pos=this.text.length+Math.min(i.offset,e.length);for(let i=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,n=1,r;if(this.lineSeparator){o=e.indexOf(this.lineSeparator,i);n=this.lineSeparator.length}else if(r=s.exec(e)){o=r.index;n=r[0].length}this.append(e.slice(i,o<0?e.length:o));if(o<0)break;this.lineBreak();if(n>1)for(let e of this.points)if(e.node==t&&e.pos>this.text.length)e.pos-=n-1;i=o+n}}readNode(t){if(t.cmIgnore)return;let e=K.get(t);let i=e&&e.overrideDOMText;if(i!=null){this.findPointInside(t,i.length);for(let t=i.iter();!t.next().done;){if(t.lineBreak)this.lineBreak();else this.append(t.value)}}else if(t.nodeType==3){this.readTextNode(t)}else if(t.nodeName=="BR"){if(t.nextSibling)this.lineBreak()}else if(t.nodeType==1){this.readRange(t.firstChild,null)}}findPointBefore(t,e){for(let i of this.points)if(i.node==t&&t.childNodes[i.offset]==e)i.pos=this.text.length}findPointInside(t,e){for(let i of this.points)if(t.nodeType==3?i.node==t:t.contains(i.node))i.pos=this.text.length+(gi(t,i.node,i.offset)?e:0)}}function gi(t,e,i){for(;;){if(!e||i-1;let{impreciseHead:n,impreciseAnchor:r}=t.docView;if(t.state.readOnly&&e>-1){this.newSel=null}else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,i,0))){let e=n||r?[]:xi(t);let i=new pi(e,t.state);i.readRange(this.bounds.startDOM,this.bounds.endDOM);this.text=i.text;this.newSel=Mi(e,this.bounds.from)}else{let e=t.observer.selectionRange;let i=n&&n.node==e.focusNode&&n.offset==e.focusOffset||!m(t.contentDOM,e.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(e.focusNode,e.focusOffset);let o=r&&r.node==e.anchorNode&&r.offset==e.anchorOffset||!m(t.contentDOM,e.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(e.anchorNode,e.anchorOffset);let l=t.viewport;if((nt.ios||nt.chrome)&&t.state.selection.main.empty&&i!=o&&(l.from>0||l.toDate.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:l}=e.bounds;let a=n.from,h=null;if(r===8||nt.android&&e.text.length=n.from&&i.to<=n.to&&(i.from!=n.from||i.to!=n.to)&&n.to-n.from-(i.to-i.from)<=4){i={from:n.from,to:n.to,insert:t.state.doc.slice(n.from,i.from).append(i.insert).append(t.state.doc.slice(i.to,n.to))}}else if(nt.chrome&&i&&i.from==i.to&&i.from==n.head&&i.insert.toString()=="\n "&&t.lineWrapping){if(o)o=s.EditorSelection.single(o.main.anchor-1,o.main.head-1);i={from:n.from,to:n.to,insert:s.Text.of([" "])}}if(i){return bi(t,i,o,r)}else if(o&&!o.main.eq(n)){let e=false,i="select";if(t.inputState.lastSelectionTime>Date.now()-50){if(t.inputState.lastSelectionOrigin=="select")e=true;i=t.inputState.lastSelectionOrigin}t.dispatch({selection:o,scrollIntoView:e,userEvent:i});return true}else{return false}}function bi(t,e,i,s=-1){if(nt.ios&&t.inputState.flushIOSKey(e))return true;let o=t.state.selection.main;if(nt.android&&(e.to==o.to&&(e.from==o.from||e.from==o.from-1&&t.state.sliceDoc(e.from,o.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&P(t.contentDOM,"Enter",13)||(e.from==o.from-1&&e.to==o.to&&e.insert.length==0||s==8&&e.insert.lengtho.head)&&P(t.contentDOM,"Backspace",8)||e.from==o.from&&e.to==o.to+1&&e.insert.length==0&&P(t.contentDOM,"Delete",46)))return true;let n=e.insert.toString();if(t.inputState.composing>=0)t.inputState.composing++;let r;let l=()=>r||(r=yi(t,e,i));if(!t.state.facet(fe).some((i=>i(t,e.from,e.to,n,l))))t.dispatch(l());return true}function yi(t,e,i){let o,n=t.state,r=n.selection.main;if(e.from>=r.from&&e.to<=r.to&&e.to-e.from>=(r.to-r.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let i=r.frome.to?n.sliceDoc(e.to,r.to):"";o=n.replaceSelection(t.state.toText(i+e.insert.sliceString(0,undefined,t.state.lineBreak)+s))}else{let l=n.changes(e);let a=i&&i.main.to<=l.newLength?i.main:undefined;if(n.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=r.to&&e.to>=r.to-10){let h=t.state.sliceDoc(e.from,e.to);let c,f=i&&Ie(t,i.main.head);if(f){let t=e.insert.length-(e.to-e.from);c={from:f.from,to:f.to-t}}else{c=t.state.doc.lineAt(r.head)}let d=r.to-e.to,u=r.to-r.from;o=n.changeByRange((i=>{if(i.from==r.from&&i.to==r.to)return{changes:l,range:a||i.map(l)};let o=i.to-d,f=o-h.length;if(i.to-i.from!=u||t.state.sliceDoc(f,o)!=h||i.to>=c.from&&i.from<=c.to)return{range:i};let p=n.changes({from:f,to:o,insert:e.insert}),g=i.to-r.to;return{changes:p,range:!a?i.map(p):s.EditorSelection.range(Math.max(0,a.anchor+g),Math.max(0,a.head+g))}}))}else{o={changes:l,selection:a&&n.selection.replaceRange(a)}}}let l="input.type";if(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50){t.inputState.compositionPendingChange=false;l+=".compose";if(t.inputState.compositionFirstChange){l+=".start";t.inputState.compositionFirstChange=false}}return n.update(o,{userEvent:l,scrollIntoView:true})}function Si(t,e,i,s){let o=Math.min(t.length,e.length);let n=0;while(n0&&l>0&&t.charCodeAt(r-1)==e.charCodeAt(l-1)){r--;l--}if(s=="end"){let t=Math.max(0,n-Math.min(r,l));i-=r+t-n}if(r=r?n-i:0;n-=t;l=n+(l-r);r=n}else if(l=l?n-i:0;n-=t;r=n+(r-l);l=n}return{from:n,toA:r,toB:l}}function xi(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:n}=t.observer.selectionRange;if(i){e.push(new mi(i,s));if(o!=i||n!=s)e.push(new mi(o,n))}return e}function Mi(t,e){if(t.length==0)return null;let i=t[0].pos,o=t.length==2?t[1].pos:i;return i>-1&&o>-1?s.EditorSelection.single(i+e,o+e):null}class Ci{setSelectionOrigin(t){this.lastSelectionOrigin=t;this.lastSelectionTime=Date.now()}constructor(t){this.view=t;this.lastKeyCode=0;this.lastKeyTime=0;this.lastTouchTime=0;this.lastFocusTime=0;this.lastScrollTop=0;this.lastScrollLeft=0;this.pendingIOSKey=undefined;this.tabFocusMode=-1;this.lastSelectionOrigin=null;this.lastSelectionTime=0;this.lastContextMenu=0;this.scrollHandlers=[];this.handlers=Object.create(null);this.composing=-1;this.compositionFirstChange=null;this.compositionEndedAt=0;this.compositionPendingKey=false;this.compositionPendingChange=false;this.mouseSelection=null;this.draggedContent=null;this.handleEvent=this.handleEvent.bind(this);this.notifiedFocused=t.hasFocus;if(nt.safari)t.contentDOM.addEventListener("input",(()=>null));if(nt.gecko)hs(t.contentDOM.ownerDocument)}handleEvent(t){if(!Vi(this.view,t)||this.ignoreDuringComposition(t))return;if(t.type=="keydown"&&this.keydown(t))return;if(this.view.updateState!=0)Promise.resolve().then((()=>this.runHandlers(t.type,t)));else this.runHandlers(t.type,t)}runHandlers(t,e){let i=this.handlers[t];if(i){for(let t of i.observers)t(this.view,e);for(let t of i.handlers){if(e.defaultPrevented)break;if(t(this.view,e)){e.preventDefault();break}}}}ensureHandlers(t){let e=Ai(t),i=this.handlers,s=this.view.contentDOM;for(let o in e)if(o!="scroll"){let t=!e[o].handlers.length;let n=i[o];if(n&&t!=!n.handlers.length){s.removeEventListener(o,this.handleEvent);n=null}if(!n)s.addEventListener(o,this.handleEvent,{passive:t})}for(let o in i)if(o!="scroll"&&!e[o])s.removeEventListener(o,this.handleEvent);this.handlers=e}keydown(t){this.lastKeyCode=t.keyCode;this.lastKeyTime=Date.now();if(t.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return true;if(this.tabFocusMode>0&&t.keyCode!=27&&Ti.indexOf(t.keyCode)<0)this.tabFocusMode=-1;if(nt.android&&nt.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8)){this.view.observer.delayAndroidKey(t.key,t.keyCode);return true}let e;if(nt.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((e=Di.find((e=>e.keyCode==t.keyCode)))&&!t.ctrlKey||Oi.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)){this.pendingIOSKey=e||t;setTimeout((()=>this.flushIOSKey()),250);return true}if(t.keyCode!=229)this.view.observer.forceFlush();return false}flushIOSKey(t){let e=this.pendingIOSKey;if(!e)return false;if(e.key=="Enter"&&t&&t.from0)return true;if(nt.safari&&!nt.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100){this.compositionPendingKey=false;return true}return false}startMouseSelection(t){if(this.mouseSelection)this.mouseSelection.destroy();this.mouseSelection=t}update(t){this.view.observer.update(t);if(this.mouseSelection)this.mouseSelection.update(t);if(this.draggedContent&&t.docChanged)this.draggedContent=this.draggedContent.map(t.changes);if(t.transactions.length)this.lastKeyCode=this.lastSelectionTime=0}destroy(){if(this.mouseSelection)this.mouseSelection.destroy()}}function ki(t,e){return(i,s)=>{try{return e.call(t,s,i)}catch(o){Se(i.state,o)}}}function Ai(t){let e=Object.create(null);function i(t){return e[t]||(e[t]={observers:[],handlers:[]})}for(let s of t){let t=s.spec;if(t&&t.domEventHandlers)for(let e in t.domEventHandlers){let o=t.domEventHandlers[e];if(o)i(e).handlers.push(ki(s.value,o))}if(t&&t.domEventObservers)for(let e in t.domEventObservers){let o=t.domEventObservers[e];if(o)i(e).observers.push(ki(s.value,o))}}for(let s in Fi)i(s).handlers.push(Fi[s]);for(let s in Wi)i(s).observers.push(Wi[s]);return e}const Di=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}];const Oi="dthko";const Ti=[16,17,18,20,91,92,224,225];const Ei=6;function Ri(t){return Math.max(0,t)*.7+8}function Bi(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class Li{constructor(t,e,i,o){this.view=t;this.startEvent=e;this.style=i;this.mustSelect=o;this.scrollSpeed={x:0,y:0};this.scrolling=-1;this.lastEvent=e;this.scrollParents=O(t.contentDOM);this.atoms=t.state.facet(Re).map((e=>e(t)));let n=t.contentDOM.ownerDocument;n.addEventListener("mousemove",this.move=this.move.bind(this));n.addEventListener("mouseup",this.up=this.up.bind(this));this.extend=e.shiftKey;this.multiple=t.state.facet(s.EditorState.allowMultipleSelections)&&Pi(t,e);this.dragging=Ni(t,e)&&Ji(e)==1?null:false}start(t){if(this.dragging===false)this.select(t)}move(t){if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Bi(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let e=0,i=0;let s=0,o=0,n=this.view.win.innerWidth,r=this.view.win.innerHeight;if(this.scrollParents.x)({left:s,right:n}=this.scrollParents.x.getBoundingClientRect());if(this.scrollParents.y)({top:o,bottom:r}=this.scrollParents.y.getBoundingClientRect());let l=He(this.view);if(t.clientX-l.left<=s+Ei)e=-Ri(s-t.clientX);else if(t.clientX+l.right>=n-Ei)e=Ri(t.clientX-n);if(t.clientY-l.top<=o+Ei)i=-Ri(o-t.clientY);else if(t.clientY+l.bottom>=r-Ei)i=Ri(t.clientY-r);this.setScrollSpeed(e,i)}up(t){if(this.dragging==null)this.select(this.lastEvent);if(!this.dragging)t.preventDefault();this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move);t.removeEventListener("mouseup",this.up);this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e};if(t||e){if(this.scrolling<0)this.scrolling=setInterval((()=>this.scroll()),50)}else if(this.scrolling>-1){clearInterval(this.scrolling);this.scrolling=-1}}scroll(){let{x:t,y:e}=this.scrollSpeed;if(t&&this.scrollParents.x){this.scrollParents.x.scrollLeft+=t;t=0}if(e&&this.scrollParents.y){this.scrollParents.y.scrollTop+=e;e=0}if(t||e)this.view.win.scrollBy(t,e);if(this.dragging===false)this.select(this.lastEvent)}skipAtoms(t){let e=null;for(let i=0;it.isUserEvent("input.type"))))this.destroy();else if(this.style.update(t))setTimeout((()=>this.select(this.lastEvent)),20)}}function Pi(t,e){let i=t.state.facet(re);return i.length?i[0](e):nt.mac?e.metaKey:e.ctrlKey}function Hi(t,e){let i=t.state.facet(le);return i.length?i[0](e):nt.mac?!e.altKey:!e.ctrlKey}function Ni(t,e){let{main:i}=t.state.selection;if(i.empty)return false;let s=g(t.root);if(!s||s.rangeCount==0)return true;let o=s.getRangeAt(0).getClientRects();for(let n=0;n=e.clientX&&t.top<=e.clientY&&t.bottom>=e.clientY)return true}return false}function Vi(t,e){if(!e.bubbles)return true;if(e.defaultPrevented)return false;for(let i=e.target,s;i!=t.contentDOM;i=i.parentNode)if(!i||i.nodeType==11||(s=K.get(i))&&s.ignoreEvent(e))return false;return true}const Fi=Object.create(null);const Wi=Object.create(null);const zi=nt.ie&&nt.ie_version<15||nt.ios&&nt.webkit_version<604;function Ii(t){let e=t.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px";i.focus();setTimeout((()=>{t.focus();i.remove();Ki(t,i.value)}),50)}function qi(t,e,i){for(let s of t.facet(e))i=s(i,t);return i}function Ki(t,e){e=qi(t.state,ue,e);let{state:i}=t,o,n=1,r=i.toText(e);let l=r.lines==i.selection.ranges.length;let a=os!=null&&i.selection.ranges.every((t=>t.empty))&&os==r.toString();if(a){let t=-1;o=i.changeByRange((o=>{let a=i.doc.lineAt(o.from);if(a.from==t)return{range:o};t=a.from;let h=i.toText((l?r.line(n++).text:e)+i.lineBreak);return{changes:{from:a.from,insert:h},range:s.EditorSelection.cursor(o.from+h.length)}}))}else if(l){o=i.changeByRange((t=>{let e=r.line(n++);return{changes:{from:t.from,to:t.to,insert:e.text},range:s.EditorSelection.cursor(t.from+e.length)}}))}else{o=i.replaceSelection(r)}t.dispatch(o,{userEvent:"input.paste",scrollIntoView:true})}Wi.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop;t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};Fi.keydown=(t,e)=>{t.inputState.setSelectionOrigin("select");if(e.keyCode==27&&t.inputState.tabFocusMode!=0)t.inputState.tabFocusMode=Date.now()+2e3;return false};Wi.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now();t.inputState.setSelectionOrigin("select.pointer")};Wi.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};Fi.mousedown=(t,e)=>{t.observer.flush();if(t.inputState.lastTouchTime>Date.now()-2e3)return false;let i=null;for(let s of t.state.facet(ae)){i=s(t,e);if(i)break}if(!i&&e.button==0)i=Zi(t,e);if(i){let s=!t.hasFocus;t.inputState.startMouseSelection(new Li(t,e,i,s));if(s)t.observer.ignore((()=>{R(t.contentDOM);let e=t.root.activeElement;if(e&&!e.contains(t.contentDOM))e.blur()}));let o=t.inputState.mouseSelection;if(o){o.start(e);return o.dragging===false}}return false};function Yi(t,e,i,o){if(o==1){return s.EditorSelection.cursor(e,i)}else if(o==2){return je(t.state,e,i)}else{let i=Rt.find(t.docView,e),o=t.state.doc.lineAt(i?i.posAtEnd:e);let n=i?i.posAtStart:o.from,r=i?i.posAtEnd:o.to;if(re>=i.top&&e<=i.bottom&&t>=i.left&&t<=i.right;function Xi(t,e,i,s){let o=Rt.find(t.docView,e);if(!o)return 1;let n=e-o.posAtStart;if(n==0)return 1;if(n==o.length)return-1;let r=o.coordsAt(n,-1);if(r&&_i(i,s,r))return-1;let l=o.coordsAt(n,1);if(l&&_i(i,s,l))return 1;return r&&r.bottom>=s?-1:1}function Gi(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},false);return{pos:i,bias:Xi(t,i,e.clientX,e.clientY)}}const ji=nt.ie&&nt.ie_version<=11;let $i=null,Ui=0,Qi=0;function Ji(t){if(!ji)return t.detail;let e=$i,i=Qi;$i=t;Qi=Date.now();return Ui=!e||i>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(Ui+1)%3:1}function Zi(t,e){let i=Gi(t,e),o=Ji(e);let n=t.state.selection;return{update(t){if(t.docChanged){i.pos=t.changes.mapPos(i.pos);n=n.map(t.changes)}},get(e,r,l){let a=Gi(t,e),h;let c=Yi(t,a.pos,a.bias,o);if(i.pos!=a.pos&&!r){let e=Yi(t,i.pos,i.bias,o);let n=Math.min(e.from,c.from),r=Math.max(e.to,c.to);c=n1&&(h=ts(n,a.pos)))return h;else if(l)return n.addRange(c);else return s.EditorSelection.create([c])}}}function ts(t,e){for(let i=0;i=e)return s.EditorSelection.create(t.ranges.slice(0,i).concat(t.ranges.slice(i+1)),t.mainIndex==i?0:t.mainIndex-(t.mainIndex>i?1:0))}return null}Fi.dragstart=(t,e)=>{let{selection:{main:i}}=t.state;if(e.target.draggable){let o=t.docView.nearest(e.target);if(o&&o.isWidget){let t=o.posAtStart,e=t+o.length;if(t>=i.to||e<=i.from)i=s.EditorSelection.range(t,e)}}let{inputState:o}=t;if(o.mouseSelection)o.mouseSelection.dragging=true;o.draggedContent=i;if(e.dataTransfer){e.dataTransfer.setData("Text",qi(t.state,pe,t.state.sliceDoc(i.from,i.to)));e.dataTransfer.effectAllowed="copyMove"}return false};Fi.dragend=t=>{t.inputState.draggedContent=null;return false};function es(t,e,i,s){i=qi(t.state,ue,i);if(!i)return;let o=t.posAtCoords({x:e.clientX,y:e.clientY},false);let{draggedContent:n}=t.inputState;let r=s&&n&&Hi(t,e)?{from:n.from,to:n.to}:null;let l={from:o,insert:i};let a=t.state.changes(r?[r,l]:l);t.focus();t.dispatch({changes:a,selection:{anchor:a.mapPos(o,-1),head:a.mapPos(o,1)},userEvent:r?"move.drop":"input.drop"});t.inputState.draggedContent=null}Fi.drop=(t,e)=>{if(!e.dataTransfer)return false;if(t.state.readOnly)return true;let i=e.dataTransfer.files;if(i&&i.length){let s=Array(i.length),o=0;let n=()=>{if(++o==i.length)es(t,e,s.filter((t=>t!=null)).join(t.state.lineBreak),false)};for(let t=0;t{if(!/[\x00-\x08\x0e-\x1f]{2}/.test(e.result))s[t]=e.result;n()};e.readAsText(i[t])}return true}else{let i=e.dataTransfer.getData("Text");if(i){es(t,e,i,true);return true}}return false};Fi.paste=(t,e)=>{if(t.state.readOnly)return true;t.observer.flush();let i=zi?null:e.clipboardData;if(i){Ki(t,i.getData("text/plain")||i.getData("text/uri-list"));return true}else{Ii(t);return false}};function is(t,e){let i=t.dom.parentNode;if(!i)return;let s=i.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px";s.value=e;s.focus();s.selectionEnd=e.length;s.selectionStart=0;setTimeout((()=>{s.remove();t.focus()}),50)}function ss(t){let e=[],i=[],s=false;for(let o of t.selection.ranges)if(!o.empty){e.push(t.sliceDoc(o.from,o.to));i.push(o)}if(!e.length){let o=-1;for(let{from:s}of t.selection.ranges){let n=t.doc.lineAt(s);if(n.number>o){e.push(n.text);i.push({from:n.from,to:Math.min(t.doc.length,n.to+1)})}o=n.number}s=true}return{text:qi(t,pe,e.join(t.lineBreak)),ranges:i,linewise:s}}let os=null;Fi.copy=Fi.cut=(t,e)=>{let{text:i,ranges:s,linewise:o}=ss(t.state);if(!i&&!o)return false;os=o?i:null;if(e.type=="cut"&&!t.state.readOnly)t.dispatch({changes:s,scrollIntoView:true,userEvent:"delete.cut"});let n=zi?null:e.clipboardData;if(n){n.clearData();n.setData("text/plain",i);return true}else{is(t,i);return false}};const ns=s.Annotation.define();function rs(t,e){let i=[];for(let s of t.facet(de)){let o=s(t,e);if(o)i.push(o)}return i.length?t.update({effects:i,annotations:ns.of(true)}):null}function ls(t){setTimeout((()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let i=rs(t.state,e);if(i)t.dispatch(i);else t.update([])}}),10)}Wi.focus=t=>{t.inputState.lastFocusTime=Date.now();if(!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)){t.scrollDOM.scrollTop=t.inputState.lastScrollTop;t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft}ls(t)};Wi.blur=t=>{t.observer.clearSelectionRange();ls(t)};Wi.compositionstart=Wi.compositionupdate=t=>{if(t.observer.editContext)return;if(t.inputState.compositionFirstChange==null)t.inputState.compositionFirstChange=true;if(t.inputState.composing<0){t.inputState.composing=0}};Wi.compositionend=t=>{if(t.observer.editContext)return;t.inputState.composing=-1;t.inputState.compositionEndedAt=Date.now();t.inputState.compositionPendingKey=true;t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0;t.inputState.compositionFirstChange=null;if(nt.chrome&&nt.android){t.observer.flushSoon()}else if(t.inputState.compositionPendingChange){Promise.resolve().then((()=>t.observer.flush()))}else{setTimeout((()=>{if(t.inputState.composing<0&&t.docView.hasComposition)t.update([])}),50)}};Wi.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};Fi.beforeinput=(t,e)=>{var i,s;if(e.inputType=="insertReplacementText"&&t.observer.editContext){let s=(i=e.dataTransfer)===null||i===void 0?void 0:i.getData("text/plain"),o=e.getTargetRanges();if(s&&o.length){let e=o[0];let i=t.posAtDOM(e.startContainer,e.startOffset),n=t.posAtDOM(e.endContainer,e.endOffset);bi(t,{from:i,to:n,insert:t.state.toText(s)},null);return true}}let o;if(nt.chrome&&nt.android&&(o=Di.find((t=>t.inputType==e.inputType)))){t.observer.delayAndroidKey(o.key,o.keyCode);if(o.key=="Backspace"||o.key=="Delete"){let e=((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0;setTimeout((()=>{var i;if((((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0)>e+10&&t.hasFocus){t.contentDOM.blur();t.focus()}}),100)}}if(nt.ios&&e.inputType=="deleteContentForward"){t.observer.flushSoon()}if(nt.safari&&e.inputType=="insertText"&&t.inputState.composing>=0){setTimeout((()=>Wi.compositionend(t,e)),20)}return false};const as=new Set;function hs(t){if(!as.has(t)){as.add(t);t.addEventListener("copy",(()=>{}));t.addEventListener("cut",(()=>{}))}}const cs=["pre-wrap","normal","pre-line","break-spaces"];let fs=false;function ds(){fs=false}class us{constructor(t){this.lineWrapping=t;this.doc=s.Text.empty;this.heightSamples={};this.lineHeight=14;this.charWidth=7;this.textHeight=14;this.lineLength=30}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;if(this.lineWrapping)i+=Math.max(0,Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength));return this.lineHeight*i}heightForLine(t){if(!this.lineWrapping)return this.lineHeight;let e=1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5)));return e*this.lineHeight}setDoc(t){this.doc=t;return this}mustRefreshForWrapping(t){return cs.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=false;for(let i=0;i-1;let l=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=r;this.lineWrapping=r;this.lineHeight=e;this.charWidth=i;this.textHeight=s;this.lineLength=o;if(l){this.heightSamples={};for(let t=0;t0}set outdated(t){this.flags=(t?2:0)|this.flags&~2}setHeight(t){if(this.height!=t){if(Math.abs(this.height-t)>ws)fs=true;this.height=t}}replace(t,e,i){return vs.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,s){let o=this,n=i.doc;for(let r=s.length-1;r>=0;r--){let{fromA:l,toA:a,fromB:h,toB:c}=s[r];let f=o.lineAt(l,ms.ByPosNoHeight,i.setDoc(e),0,0);let d=f.to>=a?f:o.lineAt(a,ms.ByPosNoHeight,i,0,0);c+=d.to-a;a=d.to;while(r>0&&f.from<=s[r-1].toA){l=s[r-1].fromA;h=s[r-1].fromB;r--;if(lo*2){let o=t[e-1];if(o.break)t.splice(--e,1,o.left,null,o.right);else t.splice(--e,1,o.left,o.right);i+=1+o.break;s-=o.size}else if(o>s*2){let e=t[i];if(e.break)t.splice(i,1,e.left,null,e.right);else t.splice(i,1,e.left,e.right);i+=2+e.break;o-=e.size}else{break}}else if(s=o)n(this.blockAt(0,i,s,o))}updateHeight(t,e=0,i=false,s){if(s&&s.from<=e&&s.more)this.setHeight(s.heights[s.index++]);this.outdated=false;return this}toString(){return`block(${this.length})`}}class Ss extends ys{constructor(t,e){super(t,e,null);this.collapsed=0;this.widgetHeight=0;this.breaks=0}blockAt(t,e,i,s){return new gs(s,this.length,i,this.height,this.breaks)}replace(t,e,i){let s=i[0];if(i.length==1&&(s instanceof Ss||s instanceof xs&&s.flags&4)&&Math.abs(this.length-s.length)<10){if(s instanceof xs)s=new Ss(s.length,this.height);else s.height=this.height;if(!this.outdated)s.outdated=false;return s}else{return vs.of(i)}}updateHeight(t,e=0,i=false,s){if(s&&s.from<=e&&s.more)this.setHeight(s.heights[s.index++]);else if(i||this.outdated)this.setHeight(Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight);this.outdated=false;return this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class xs extends vs{constructor(t){super(t,0)}heightMetrics(t,e){let i=t.doc.lineAt(e).number,s=t.doc.lineAt(e+this.length).number;let o=s-i+1;let n,r=0;if(t.lineWrapping){let e=Math.min(this.height,t.lineHeight*o);n=e/o;if(this.length>o+1)r=(this.height-e)/(this.length-o-1)}else{n=this.height/o}return{firstLine:i,lastLine:s,perLine:n,perChar:r}}blockAt(t,e,i,s){let{firstLine:o,lastLine:n,perLine:r,perChar:l}=this.heightMetrics(e,s);if(e.lineWrapping){let o=s+(t0){let t=i[i.length-1];if(t instanceof xs)i[i.length-1]=new xs(t.length+s);else i.push(null,new xs(s-1))}if(t>0){let e=i[0];if(e instanceof xs)i[0]=new xs(t+e.length);else i.unshift(new xs(t-1),null)}return vs.of(i)}decomposeLeft(t,e){e.push(new xs(t-1),null)}decomposeRight(t,e){e.push(null,new xs(this.length-t-1))}updateHeight(t,e=0,i=false,s){let o=e+this.length;if(s&&s.from<=e+this.length&&s.more){let i=[],n=Math.max(e,s.from),r=-1;if(s.from>e)i.push(new xs(s.from-e-1).updateHeight(t,e));while(n<=o&&s.more){let e=t.doc.lineAt(n).length;if(i.length)i.push(null);let o=s.heights[s.index++];if(r==-1)r=o;else if(Math.abs(o-r)>=ws)r=-2;let l=new Ss(e,o);l.outdated=false;i.push(l);n+=e+1}if(n<=o)i.push(null,new xs(o-n).updateHeight(t,n));let l=vs.of(i);if(r<0||Math.abs(l.height-this.height)>=ws||Math.abs(r-this.heightMetrics(t,e).perLine)>=ws)fs=true;return bs(this,l)}else if(i||this.outdated){this.setHeight(t.heightForGap(e,e+this.length));this.outdated=false}return this}toString(){return`gap(${this.length})`}}class Ms extends vs{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0));this.left=t;this.right=i;this.size=t.size+i.size}get break(){return this.flags&1}blockAt(t,e,i,s){let o=i+this.left.height;return tr))return a;let h=e==ms.ByPosNoHeight?ms.ByPosNoHeight:ms.ByPos;if(l)return a.join(this.right.lineAt(r,h,i,n,r));else return this.left.lineAt(r,h,i,s,o).join(a)}forEachLine(t,e,i,s,o,n){let r=s+this.left.height,l=o+this.left.length+this.break;if(this.break){if(t=l)this.right.forEachLine(t,e,i,r,l,n)}else{let a=this.lineAt(l,ms.ByPos,i,s,o);if(t=t&&a.from<=e)n(a);if(e>a.to)this.right.forEachLine(a.to+1,e,i,r,l,n)}}replace(t,e,i){let s=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-s,e-s,i));let o=[];if(t>0)this.decomposeLeft(t,o);let n=o.length;for(let r of i)o.push(r);if(t>0)Cs(o,n-1);if(e=i)e.push(null)}if(t>i)this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,s=i+this.break;if(t>=s)return this.right.decomposeRight(t-s,e);if(t2*e.size||e.size>2*t.size)return vs.of(this.break?[t,null,e]:[t,e]);this.left=bs(this.left,t);this.right=bs(this.right,e);this.setHeight(t.height+e.height);this.outdated=t.outdated||e.outdated;this.size=t.size+e.size;this.length=t.length+this.break+e.length;return this}updateHeight(t,e=0,i=false,s){let{left:o,right:n}=this,r=e+o.length+this.break,l=null;if(s&&s.from<=e+o.length&&s.more)l=o=o.updateHeight(t,e,i,s);else o.updateHeight(t,e,i);if(s&&s.from<=r+n.length&&s.more)l=n=n.updateHeight(t,r,i,s);else n.updateHeight(t,r,i);if(l)return this.balanced(o,n);this.height=this.left.height+this.right.height;this.outdated=false;return this}toString(){return this.left+(this.break?" ":"-")+this.right}}function Cs(t,e){let i,s;if(t[e]==null&&(i=t[e-1])instanceof xs&&(s=t[e+1])instanceof xs)t.splice(e-1,3,new xs(i.length+1+s.length))}const ks=5;class As{constructor(t,e){this.pos=t;this.oracle=e;this.nodes=[];this.lineStart=-1;this.lineEnd=-1;this.covering=null;this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let t=Math.min(e,this.lineEnd),i=this.nodes[this.nodes.length-1];if(i instanceof Ss)i.length+=t-this.pos;else if(t>this.pos||!this.isCovered)this.nodes.push(new Ss(t-this.pos,-1));this.writtenTo=t;if(e>t){this.nodes.push(null);this.writtenTo++;this.lineStart=-1}}this.pos=e}point(t,e,i){if(t=ks){this.addLineDeco(s,o,n)}}else if(e>t){this.span(t,e)}if(this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t;this.lineEnd=e;if(this.writtenTot)this.nodes.push(new Ss(this.pos-t,-1));this.writtenTo=this.pos}blankContent(t,e){let i=new xs(e-t);if(this.oracle.doc.lineAt(t).to==e)i.flags|=4;return i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Ss)return t;let e=new Ss(0,-1);this.nodes.push(e);return e}addBlock(t){this.enterLine();let e=t.deco;if(e&&e.startSide>0&&!this.isCovered)this.ensureLine();this.nodes.push(t);this.writtenTo=this.pos=this.pos+t.length;if(e&&e.endSide>0)this.covering=t}addLineDeco(t,e,i){let s=this.ensureLine();s.length+=i;s.collapsed+=i;s.widgetHeight=Math.max(s.widgetHeight,t);s.breaks+=e;this.writtenTo=this.pos=this.pos+i}finish(t){let e=this.nodes.length==0?null:this.nodes[this.nodes.length-1];if(this.lineStart>-1&&!(e instanceof Ss)&&!this.isCovered)this.nodes.push(new Ss(0,-1));else if(this.writtenToe.clientHeight||e.scrollWidth>e.clientWidth)&&i.overflow!="visible"){let i=e.getBoundingClientRect();n=Math.max(n,i.left);r=Math.min(r,i.right);l=Math.max(l,i.top);a=Math.min(h==t.parentNode?o.innerHeight:a,i.bottom)}h=i.position=="absolute"||i.position=="fixed"?e.offsetParent:e.parentNode}else if(h.nodeType==11){h=h.host}else{break}}return{left:n-i.left,right:Math.max(n,r)-i.left,top:l-(i.top+e),bottom:Math.max(l,a)-(i.top+e)}}function Es(t){let e=t.getBoundingClientRect(),i=t.ownerDocument.defaultView||window;return e.left0&&e.top0}function Rs(t,e){let i=t.getBoundingClientRect();return{left:0,right:i.right-i.left,top:e,bottom:i.bottom-(i.top+e)}}class Bs{constructor(t,e,i,s){this.from=t;this.to=e;this.size=i;this.displaySize=s}static same(t,e){if(t.length!=e.length)return false;for(let i=0;itypeof t!="function"&&t.class=="cm-lineWrapping"));this.heightOracle=new us(e);this.stateDeco=t.facet(Te).filter((t=>typeof t!="function"));this.heightMap=vs.empty().applyChanges(this.stateDeco,s.Text.empty,this.heightOracle.setDoc(t.doc),[new Ve(0,0,0,t.doc.length)]);for(let i=0;i<2;i++){this.viewport=this.getViewport(0,null);if(!this.updateForViewport())break}this.updateViewportLines();this.lineGaps=this.ensureLineGaps([]);this.lineGapDeco=Ct.set(this.lineGaps.map((t=>t.draw(this,false))));this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let s=i?e.head:e.anchor;if(!t.some((({from:t,to:e})=>s>=t&&s<=e))){let{from:e,to:i}=this.lineBlockAt(s);t.push(new Hs(e,i))}}this.viewports=t.sort(((t,e)=>t.from-e.from));return this.updateScaler()}updateScaler(){let t=this.scaler;this.scaler=this.heightMap.height<=7e6?zs:new Is(this.heightOracle,this.heightMap,this.viewports);return t.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[];this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(t=>{this.viewportLines.push(qs(t,this.scaler))}))}update(t,e=null){this.state=t.state;let i=this.stateDeco;this.stateDeco=this.state.facet(Te).filter((t=>typeof t!="function"));let o=t.changedRanges;let n=Ve.extendWithRanges(o,Ds(i,this.stateDeco,t?t.changes:s.ChangeSet.empty(this.state.doc.length)));let r=this.heightMap.height;let l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);ds();this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),n);if(this.heightMap.height!=r||fs)t.flags|=2;if(l){this.scrollAnchorPos=t.changes.mapPos(l.from,-1);this.scrollAnchorHeight=l.top}else{this.scrollAnchorPos=-1;this.scrollAnchorHeight=r}let a=n.length?this.mapViewport(this.viewport,t.changes):this.viewport;if(e&&(e.range.heada.to)||!this.viewportIsAppropriate(a))a=this.getViewport(0,e);let h=a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a;t.flags|=this.updateForViewport();if(h||!t.changes.empty||t.flags&2)this.updateViewportLines();if(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes)));t.flags|=this.computeVisibleRanges(t.changes);if(e)this.scrollTarget=e;if(!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(me))this.mustEnforceCursorAssoc=true}measure(t){let e=t.contentDOM,i=window.getComputedStyle(e);let o=this.heightOracle;let n=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?Vt.RTL:Vt.LTR;let r=this.heightOracle.mustRefreshForWrapping(n);let l=e.getBoundingClientRect();let a=r||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height;this.mustMeasureContent=false;let h=0,c=0;if(l.width&&l.height){let{scaleX:t,scaleY:i}=A(e,l);if(t>.005&&Math.abs(this.scaleX-t)>.005||i>.005&&Math.abs(this.scaleY-i)>.005){this.scaleX=t;this.scaleY=i;h|=16;r=a=true}}let f=(parseInt(i.paddingTop)||0)*this.scaleY;let d=(parseInt(i.paddingBottom)||0)*this.scaleY;if(this.paddingTop!=f||this.paddingBottom!=d){this.paddingTop=f;this.paddingBottom=d;h|=16|2}if(this.editorWidth!=t.scrollDOM.clientWidth){if(o.lineWrapping)a=true;this.editorWidth=t.scrollDOM.clientWidth;h|=16}let u=t.scrollDOM.scrollTop*this.scaleY;if(this.scrollTop!=u){this.scrollAnchorHeight=-1;this.scrollTop=u}this.scrolledToBottom=F(t.scrollDOM);let p=(this.printing?Rs:Ts)(e,this.paddingTop);let g=p.top-this.pixelViewport.top,m=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let w=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(w!=this.inView){this.inView=w;if(w)a=true}if(!this.inView&&!this.scrollTarget&&!Es(t.dom))return 0;let v=l.width;if(this.contentDOMWidth!=v||this.editorHeight!=t.scrollDOM.clientHeight){this.contentDOMWidth=l.width;this.editorHeight=t.scrollDOM.clientHeight;h|=16}if(a){let e=t.docView.measureVisibleLineHeights(this.viewport);if(o.mustRefreshForHeights(e))r=true;if(r||o.lineWrapping&&Math.abs(v-this.contentDOMWidth)>o.charWidth){let{lineHeight:i,charWidth:s,textHeight:l}=t.docView.measureTextSize();r=i>0&&o.refresh(n,i,s,l,v/s,e);if(r){t.docView.minWidth=0;h|=16}}if(g>0&&m>0)c=Math.max(g,m);else if(g<0&&m<0)c=Math.min(g,m);ds();for(let i of this.viewports){let n=i.from==this.viewport.from?e:t.docView.measureVisibleLineHeights(i);this.heightMap=(r?vs.empty().applyChanges(this.stateDeco,s.Text.empty,this.heightOracle,[new Ve(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(o,0,r,new ps(i.from,n))}if(fs)h|=2}let b=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);if(b){if(h&2)h|=this.updateScaler();this.viewport=this.getViewport(c,this.scrollTarget);h|=this.updateForViewport()}if(h&2||b)this.updateViewportLines();if(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)this.updateLineGaps(this.ensureLineGaps(r?[]:this.lineGaps,t));h|=this.computeVisibleRanges();if(this.mustEnforceCursorAssoc){this.mustEnforceCursorAssoc=false;t.docView.enforceCursorAssoc()}return h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-.5,Math.min(.5,t/1e3/2));let s=this.heightMap,o=this.heightOracle;let{visibleTop:n,visibleBottom:r}=this;let l=new Hs(s.lineAt(n-i*1e3,ms.ByHeight,o,0,0).from,s.lineAt(r+(1-i)*1e3,ms.ByHeight,o,0,0).to);if(e){let{head:t}=e.range;if(tl.to){let i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top);let n=s.lineAt(t,ms.ByPos,o,0,0),r;if(e.y=="center")r=(n.top+n.bottom)/2-i/2;else if(e.y=="start"||e.y=="nearest"&&t=r+Math.max(10,Math.min(i,250)))&&(s>n-2*1e3&&o>1,r=o<<1;if(this.defaultTextDirection!=Vt.LTR&&!i)return[];let l=[];let a=(o,r,h,c)=>{if(r-oo&&tt.from>=h.from&&t.to<=h.to&&Math.abs(t.from-o)t.frome))));if(!u){if(rt.from<=r&&t.to>=r))){let t=e.moveToLineBoundary(s.EditorSelection.cursor(r),false,true).head;if(t>o)r=t}let t=this.gapSize(h,o,r,c);let n=i||t<2e6?t:2e6;u=new Bs(o,r,t,n)}l.push(u)};let h=e=>{if(e.length2e6)for(let s of t){if(s.from>=e.from&&s.frome.from)a(e.from,l,e,s);if(ht.draw(this,this.heightOracle.lineWrapping))))}}computeVisibleRanges(t){let e=this.stateDeco;if(this.lineGaps.length)e=e.concat(this.lineGapDeco);let i=[];s.RangeSet.spans(e,this.viewport.from,this.viewport.to,{span(t,e){i.push({from:t,to:e})},point(){}},20);let o=0;if(i.length!=this.visibleRanges.length){o=8|4}else{for(let e=0;e=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find((e=>e.from<=t&&e.to>=t))||qs(this.heightMap.lineAt(t,ms.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return t>=this.viewportLines[0].top&&t<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find((e=>e.top<=t&&e.bottom>=t))||qs(this.heightMap.lineAt(this.scaler.fromDOM(t),ms.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let e=this.lineBlockAtHeight(t+8);return e.from>=this.viewport.from||this.viewportLines[0].top-t>200?e:this.viewportLines[0]}elementAtHeight(t){return qs(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Hs{constructor(t,e){this.from=t;this.to=e}}function Ns(t,e,i){let o=[],n=t,r=0;s.RangeSet.spans(i,t,e,{span(){},point(t,e){if(t>n){o.push({from:n,to:t});r+=t-n}n=e}},20);if(n=1)return e[e.length-1].to;let s=Math.floor(t*i);for(let o=0;;o++){let{from:t,to:i}=e[o],n=i-t;if(s<=n)return t+s;s-=n}}function Fs(t,e){let i=0;for(let{from:s,to:o}of t.ranges){if(e<=o){i+=e-s;break}i+=o-s}return i/t.total}function Ws(t,e){for(let i of t)if(e(i))return i;return undefined}const zs={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};class Is{constructor(t,e,i){let s=0,o=0,n=0;this.viewports=i.map((({from:i,to:o})=>{let n=e.lineAt(i,ms.ByPos,t,0,0).top;let r=e.lineAt(o,ms.ByPos,t,0,0).bottom;s+=r-n;return{from:i,to:o,top:n,bottom:r,domTop:0,domBottom:0}}));this.scale=(7e6-s)/(e.height-s);for(let r of this.viewports){r.domTop=n+(r.top-o)*this.scale;n=r.domBottom=r.domTop+(r.bottom-r.top);o=r.bottom}}toDOM(t){for(let e=0,i=0,s=0;;e++){let o=ee.from==t.viewports[i].from&&e.to==t.viewports[i].to))}}function qs(t,e){if(e.scale==1)return t;let i=e.toDOM(t.top),s=e.toDOM(t.bottom);return new gs(t.from,t.length,i,s-i,Array.isArray(t._content)?t._content.map((t=>qs(t,e))):t._content)}const Ks=s.Facet.define({combine:t=>t.join(" ")});const Ys=s.Facet.define({combine:t=>t.indexOf(true)>-1});const _s=o.StyleModule.newName(),Xs=o.StyleModule.newName(),Gs=o.StyleModule.newName();const js={"&light":"."+Xs,"&dark":"."+Gs};function $s(t,e,i){return new o.StyleModule(e,{finish(e){return/&/.test(e)?e.replace(/&\w*/,(e=>{if(e=="&")return t;if(!i||!i[e])throw new RangeError(`Unsupported selector: ${e}`);return i[e]})):t+" "+e}})}const Us=$s("."+_s,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},js);const Qs={childList:true,characterData:true,subtree:true,attributes:true,characterDataOldValue:true};const Js=nt.ie&&nt.ie_version<=11;class Zs{constructor(t){this.view=t;this.active=false;this.editContext=null;this.selectionRange=new T;this.selectionChanged=false;this.delayedFlush=-1;this.resizeTimeout=-1;this.queue=[];this.delayedAndroidKey=null;this.flushingAndroidKey=-1;this.lastChange=0;this.scrollTargets=[];this.intersection=null;this.resizeScroll=null;this.intersecting=false;this.gapIntersection=null;this.gaps=[];this.printQuery=null;this.parentCheck=-1;this.dom=t.contentDOM;this.observer=new MutationObserver((e=>{for(let t of e)this.queue.push(t);if((nt.ie&&nt.ie_version<=11||nt.ios&&t.composing)&&e.some((t=>t.type=="childList"&&t.removedNodes.length||t.type=="characterData"&&t.oldValue.length>t.target.nodeValue.length)))this.flushSoon();else this.flush()}));if(window.EditContext&&t.constructor.EDIT_CONTEXT!==false&&!(nt.chrome&&nt.chrome_version<126)){this.editContext=new so(t);if(t.state.facet(xe))t.contentDOM.editContext=this.editContext.editContext}if(Js)this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue});this.flushSoon()};this.onSelectionChange=this.onSelectionChange.bind(this);this.onResize=this.onResize.bind(this);this.onPrint=this.onPrint.bind(this);this.onScroll=this.onScroll.bind(this);if(window.matchMedia)this.printQuery=window.matchMedia("print");if(typeof ResizeObserver=="function"){this.resizeScroll=new ResizeObserver((()=>{var t;if(((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate){if(this.parentCheck<0)this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3);if(t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting){this.intersecting=!this.intersecting;if(this.intersecting!=this.view.inView)this.onScrollChanged(document.createEvent("Event"))}}),{threshold:[0,.001]});this.intersection.observe(this.dom);this.gapIntersection=new IntersectionObserver((t=>{if(t.length>0&&t[t.length-1].intersectionRatio>0)this.onScrollChanged(document.createEvent("Event"))}),{})}this.listenForScroll();this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t);if(this.intersecting)this.view.measure()}onScroll(t){if(this.intersecting)this.flush(false);if(this.editContext)this.view.requestMeasure(this.editContext.measureReq);this.onScrollChanged(t)}onResize(){if(this.resizeTimeout<0)this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1;this.view.requestMeasure()}),50)}onPrint(t){if((t.type=="change"||!t.type)&&!t.matches)return;this.view.viewState.printing=true;this.view.measure();setTimeout((()=>{this.view.viewState.printing=false;this.view.requestMeasure()}),500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some(((e,i)=>e!=t[i])))){this.gapIntersection.disconnect();for(let e of t)this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(xe)?i.root.activeElement!=this.dom:!w(this.dom,s))return;let o=s.anchorNode&&i.docView.nearest(s.anchorNode);if(o&&o.ignoreEvent(t)){if(!e)this.selectionChanged=false;return}if((nt.ie&&nt.ie_version<=11||nt.android&&nt.chrome)&&!i.state.selection.main.empty&&s.focusNode&&b(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset))this.flushSoon();else this.flush(false)}readSelectionRange(){let{view:t}=this;let e=g(t.root);if(!e)return false;let i=nt.safari&&t.root.nodeType==11&&t.root.activeElement==this.dom&&io(this.view,e)||e;if(!i||this.selectionRange.eq(i))return false;let s=w(this.dom,i);if(s&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let t=this.delayedAndroidKey;if(t){this.clearDelayedAndroidKey();this.view.inputState.lastKeyCode=t.keyCode;this.view.inputState.lastKeyTime=Date.now();let e=this.flush();if(!e&&t.force)P(this.dom,t.key,t.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(t)}if(!this.delayedAndroidKey||t=="Enter")this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1;this.flush()}))}forceFlush(){if(this.delayedFlush>=0){this.view.win.cancelAnimationFrame(this.delayedFlush);this.delayedFlush=-1}this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();if(t.length)this.queue=[];let e=-1,i=-1,s=false;for(let o of t){let t=this.readMutation(o);if(!t)continue;if(t.typeOver)s=true;if(e==-1){({from:e,to:i}=t)}else{e=Math.min(t.from,e);i=Math.max(t.to,i)}}return{from:e,to:i,typeOver:s}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords();let s=this.selectionChanged&&w(this.dom,this.selectionRange);if(t<0&&!s)return null;if(t>-1)this.lastChange=Date.now();this.view.inputState.lastFocusTime=0;this.selectionChanged=false;let o=new wi(this.view,t,e,i);this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null};return o}flush(t=true){if(this.delayedFlush>=0||this.delayedAndroidKey)return false;if(t)this.readSelectionRange();let e=this.readChange();if(!e){this.view.requestMeasure();return false}let i=this.view.state;let s=vi(this.view,e);if(this.view.state==i&&(e.domChanged||e.newSel&&!e.newSel.main.eq(this.view.state.selection.main)))this.view.update([]);return s}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;e.markDirty(t.type=="attributes");if(t.type=="attributes")e.flags|=4;if(t.type=="childList"){let i=to(e,t.previousSibling||t.target.previousSibling,-1);let s=to(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:s?e.posBefore(s):e.posAtEnd,typeOver:false}}else if(t.type=="characterData"){return{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}}else{return null}}setWindow(t){if(t!=this.win){this.removeWindowListeners(this.win);this.win=t;this.addWindowListeners(this.win)}}addWindowListeners(t){t.addEventListener("resize",this.onResize);if(this.printQuery){if(this.printQuery.addEventListener)this.printQuery.addEventListener("change",this.onPrint);else this.printQuery.addListener(this.onPrint)}else t.addEventListener("beforeprint",this.onPrint);t.addEventListener("scroll",this.onScroll);t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll);t.removeEventListener("resize",this.onResize);if(this.printQuery){if(this.printQuery.removeEventListener)this.printQuery.removeEventListener("change",this.onPrint);else this.printQuery.removeListener(this.onPrint)}else t.removeEventListener("beforeprint",this.onPrint);t.document.removeEventListener("selectionchange",this.onSelectionChange)}update(t){if(this.editContext){this.editContext.update(t);if(t.startState.facet(xe)!=t.state.facet(xe))t.view.contentDOM.editContext=t.state.facet(xe)?this.editContext.editContext:null}}destroy(){var t,e,i;this.stop();(t=this.intersection)===null||t===void 0?void 0:t.disconnect();(e=this.gapIntersection)===null||e===void 0?void 0:e.disconnect();(i=this.resizeScroll)===null||i===void 0?void 0:i.disconnect();for(let s of this.scrollTargets)s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win);clearTimeout(this.parentCheck);clearTimeout(this.resizeTimeout);this.win.cancelAnimationFrame(this.delayedFlush);this.win.cancelAnimationFrame(this.flushingAndroidKey);if(this.editContext){this.view.contentDOM.editContext=null;this.editContext.destroy()}}}function to(t,e,i){while(e){let s=K.get(e);if(s&&s.parent==t)return s;let o=e.parentNode;e=o!=t.dom?o:i>0?e.nextSibling:e.previousSibling}return null}function eo(t,e){let i=e.startContainer,s=e.startOffset;let o=e.endContainer,n=e.endOffset;let r=t.docView.domAtPos(t.state.selection.main.anchor);if(b(r.node,r.offset,o,n))[i,s,o,n]=[o,n,i,s];return{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:n}}function io(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return eo(t,i)}let i=null;function s(t){t.preventDefault();t.stopImmediatePropagation();i=t.getTargetRanges()[0]}t.contentDOM.addEventListener("beforeinput",s,true);t.dom.ownerDocument.execCommand("indent");t.contentDOM.removeEventListener("beforeinput",s,true);return i?eo(t,i):null}class so{constructor(t){this.from=0;this.to=0;this.pendingContextChange=null;this.handlers=Object.create(null);this.composing=null;this.resetRange(t.state);let e=this.editContext=new window.EditContext({text:t.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,t.state.selection.main.anchor))),selectionEnd:this.toContextPos(t.state.selection.main.head)});this.handlers.textupdate=e=>{let i=t.state.selection.main,{anchor:o,head:n}=i;let r=this.toEditorPos(e.updateRangeStart),l=this.toEditorPos(e.updateRangeEnd);if(t.inputState.composing>=0&&!this.composing)this.composing={contextBase:e.updateRangeStart,editorBase:r,drifted:false};let a={from:r,to:l,insert:s.Text.of(e.text.split("\n"))};if(a.from==this.from&&othis.to)a.to=o;if(a.from==a.to&&!a.insert.length){let o=s.EditorSelection.single(this.toEditorPos(e.selectionStart),this.toEditorPos(e.selectionEnd));if(!o.main.eq(i))t.dispatch({selection:o,userEvent:"select"});return}if((nt.mac||nt.android)&&a.from==n-1&&/^\. ?$/.test(e.text)&&t.contentDOM.getAttribute("autocorrect")=="off")a={from:r,to:l,insert:s.Text.of([e.text.replace("."," ")])};this.pendingContextChange=a;if(!t.state.readOnly){let i=this.to-this.from+(a.to-a.from+a.insert.length);bi(t,a,s.EditorSelection.single(this.toEditorPos(e.selectionStart,i),this.toEditorPos(e.selectionEnd,i)))}if(this.pendingContextChange){this.revertPending(t.state);this.setSelection(t.state)}};this.handlers.characterboundsupdate=i=>{let s=[],o=null;for(let e=this.toEditorPos(i.rangeStart),n=this.toEditorPos(i.rangeEnd);e{let i=[];for(let t of e.getTextFormats()){let e=t.underlineStyle,s=t.underlineThickness;if(e!="None"&&s!="None"){let o=this.toEditorPos(t.rangeStart),n=this.toEditorPos(t.rangeEnd);if(o{if(t.inputState.composing<0){t.inputState.composing=0;t.inputState.compositionFirstChange=true}};this.handlers.compositionend=()=>{t.inputState.composing=-1;t.inputState.compositionFirstChange=null;if(this.composing){let{drifted:e}=this.composing;this.composing=null;if(e)this.reset(t.state)}};for(let i in this.handlers)e.addEventListener(i,this.handlers[i]);this.measureReq={read:t=>{this.editContext.updateControlBounds(t.contentDOM.getBoundingClientRect());let e=g(t.root);if(e&&e.rangeCount)this.editContext.updateSelectionBounds(e.getRangeAt(0).getBoundingClientRect())}}}applyEdits(t){let e=0,i=false,s=this.pendingContextChange;t.changes.iterChanges(((o,n,r,l,a)=>{if(i)return;let h=a.length-(n-o);if(s&&n>=s.to){if(s.from==o&&s.to==n&&s.insert.eq(a)){s=this.pendingContextChange=null;e+=h;this.to+=h;return}else{s=null;this.revertPending(t.state)}}o+=e;n+=e;if(n<=this.from){this.from+=h;this.to+=h}else if(othis.to||this.to-this.from+a.length>3e4){i=true;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(n),a.toString());this.to+=h}e+=h}));if(s&&!i)this.revertPending(t.state);return!i}update(t){let e=this.pendingContextChange,i=t.startState.selection.main;if(this.composing&&(this.composing.drifted||!t.changes.touchesRange(i.from,i.to)&&t.transactions.some((t=>!t.isUserEvent("input.type")&&t.changes.touchesRange(this.from,this.to))))){this.composing.drifted=true;this.composing.editorBase=t.changes.mapPos(this.composing.editorBase)}else if(!this.applyEdits(t)||!this.rangeIsValid(t.state)){this.pendingContextChange=null;this.reset(t.state)}else if(t.docChanged||t.selectionSet||e){this.setSelection(t.state)}if(t.geometryChanged||t.docChanged||t.selectionSet)t.view.requestMeasure(this.measureReq)}resetRange(t){let{head:e}=t.selection.main;this.from=Math.max(0,e-1e4);this.to=Math.min(t.doc.length,e+1e4)}reset(t){this.resetRange(t);this.editContext.updateText(0,this.editContext.text.length,t.doc.sliceString(this.from,this.to));this.setSelection(t)}revertPending(t){let e=this.pendingContextChange;this.pendingContextChange=null;this.editContext.updateText(this.toContextPos(e.from),this.toContextPos(e.from+e.insert.length),t.doc.sliceString(e.from,e.to))}setSelection(t){let{main:e}=t.selection;let i=this.toContextPos(Math.max(this.from,Math.min(this.to,e.anchor)));let s=this.toContextPos(e.head);if(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=s)this.editContext.updateSelection(i,s)}rangeIsValid(t){let{head:e}=t.selection.main;return!(this.from>0&&e-this.from<500||this.to1e4*3)}toEditorPos(t,e=this.to-this.from){t=Math.min(t,e);let i=this.composing;return i&&i.drifted?i.editorBase+(t-i.contextBase):t+this.from}toContextPos(t){let e=this.composing;return e&&e.drifted?e.contextBase+(t-e.editorBase):t-this.from}destroy(){for(let t in this.handlers)this.editContext.removeEventListener(t,this.handlers[t])}}class oo{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){var e;this.plugins=[];this.pluginMap=new Map;this.editorAttrs={};this.contentAttrs={};this.bidiCache=[];this.destroyed=false;this.updateState=2;this.measureScheduled=-1;this.measureRequests=[];this.contentDOM=document.createElement("div");this.scrollDOM=document.createElement("div");this.scrollDOM.tabIndex=-1;this.scrollDOM.className="cm-scroller";this.scrollDOM.appendChild(this.contentDOM);this.announceDOM=document.createElement("div");this.announceDOM.className="cm-announced";this.announceDOM.setAttribute("aria-live","polite");this.dom=document.createElement("div");this.dom.appendChild(this.announceDOM);this.dom.appendChild(this.scrollDOM);if(t.parent)t.parent.appendChild(this.dom);let{dispatch:i}=t;this.dispatchTransactions=t.dispatchTransactions||i&&(t=>t.forEach((t=>i(t,this))))||(t=>this.update(t));this.dispatch=this.dispatch.bind(this);this._root=t.root||H(t.parent)||document;this.viewState=new Ps(t.state||s.EditorState.create(t));if(t.scrollTo&&t.scrollTo.is(be))this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state);this.plugins=this.state.facet(Ce).map((t=>new Ae(t)));for(let s of this.plugins)s.update(this);this.observer=new Zs(this);this.inputState=new Ci(this);this.inputState.ensureHandlers(this.plugins);this.docView=new We(this);this.mountStyles();this.updateAttrs();this.updateState=0;this.requestMeasure();if((e=document.fonts)===null||e===void 0?void 0:e.ready)document.fonts.ready.then((()=>this.requestMeasure()))}dispatch(...t){let e=t.length==1&&t[0]instanceof s.Transaction?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(e,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let e=false,i=false,o;let n=this.state;for(let s of t){if(s.startState!=n)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");n=s.state}if(this.destroyed){this.viewState.state=n;return}let r=this.hasFocus,l=0,a=null;if(t.some((t=>t.annotation(ns)))){this.inputState.notifiedFocused=r;l=1}else if(r!=this.inputState.notifiedFocused){this.inputState.notifiedFocused=r;a=rs(n,r);if(!a)l=1}let h=this.observer.delayedAndroidKey,c=null;if(h){this.observer.clearDelayedAndroidKey();c=this.observer.readChange();if(c&&!this.state.doc.eq(n.doc)||!this.state.selection.eq(n.selection))c=null}else{this.observer.clear()}if(n.facet(s.EditorState.phrases)!=this.state.facet(s.EditorState.phrases))return this.setState(n);o=Fe.create(this,n,t);o.flags|=l;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let e of t){if(f)f=f.map(e.changes);if(e.scrollIntoView){let{main:t}=e.state.selection;f=new ve(t.empty?t:s.EditorSelection.cursor(t.head,t.head>t.anchor?-1:1))}for(let t of e.effects)if(t.is(be))f=t.value.clip(this.state)}this.viewState.update(o,f);this.bidiCache=lo.update(this.bidiCache,o.changes);if(!o.empty){this.updatePlugins(o);this.inputState.update(o)}e=this.docView.update(o);if(this.state.facet(Ne)!=this.styleModules)this.mountStyles();i=this.updateAttrs();this.showAnnouncements(t);this.docView.updateSelection(e,t.some((t=>t.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(o.startState.facet(Ks)!=o.state.facet(Ks))this.viewState.mustMeasureContent=true;if(e||i||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)this.requestMeasure();if(e)this.docViewUpdate();if(!o.empty)for(let s of this.state.facet(ce)){try{s(o)}catch(d){Se(this.state,d,"update listener")}}if(a||c)Promise.resolve().then((()=>{if(a&&this.state==a.startState)this.dispatch(a);if(c){if(!vi(this,c)&&h.force)P(this.contentDOM,h.key,h.keyCode)}}))}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let e=this.hasFocus;try{for(let t of this.plugins)t.destroy(this);this.viewState=new Ps(t);this.plugins=t.facet(Ce).map((t=>new Ae(t)));this.pluginMap.clear();for(let t of this.plugins)t.update(this);this.docView.destroy();this.docView=new We(this);this.inputState.ensureHandlers(this.plugins);this.mountStyles();this.updateAttrs();this.bidiCache=[]}finally{this.updateState=0}if(e)this.focus();this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(Ce),i=t.state.facet(Ce);if(e!=i){let s=[];for(let o of i){let i=e.indexOf(o);if(i<0){s.push(new Ae(o))}else{let e=this.plugins[i];e.mustUpdate=t;s.push(e)}}for(let e of this.plugins)if(e.mustUpdate!=t)e.destroy(this);this.plugins=s;this.pluginMap.clear()}else{for(let e of this.plugins)e.mustUpdate=t}for(let s=0;s-1)this.win.cancelAnimationFrame(this.measureScheduled);if(this.observer.delayedAndroidKey){this.measureScheduled=-1;this.requestMeasure();return}this.measureScheduled=0;if(t)this.observer.forceFlush();let e=null;let i=this.scrollDOM,s=i.scrollTop*this.scaleY;let{scrollAnchorPos:o,scrollAnchorHeight:n}=this.viewState;if(Math.abs(s-this.viewState.scrollTop)>1)n=-1;this.viewState.scrollAnchorHeight=-1;try{for(let t=0;;t++){if(n<0){if(F(i)){o=-1;n=this.viewState.heightMap.height}else{let t=this.viewState.scrollAnchorAt(s);o=t.from;n=t.top}}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(t>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let a=[];if(!(l&4))[this.measureRequests,a]=[a,this.measureRequests];let h=a.map((t=>{try{return t.read(this)}catch(e){Se(this.state,e);return ro}}));let c=Fe.create(this,this.state,[]),f=false;c.flags|=l;if(!e)e=c;else e.flags|=l;this.updateState=2;if(!c.empty){this.updatePlugins(c);this.inputState.update(c);this.updateAttrs();f=this.docView.update(c);if(f)this.docViewUpdate()}for(let t=0;t1||e<-1){s=s+e;i.scrollTop=s/this.scaleY;n=-1;continue}}}break}}}finally{this.updateState=0;this.measureScheduled=-1}if(e&&!e.empty)for(let l of this.state.facet(ce))l(e)}get themeClasses(){return _s+" "+(this.state.facet(Ys)?Gs:Xs)+" "+this.state.facet(Ks)}updateAttrs(){let t=ao(this,De,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses});let e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:!this.state.facet(xe)?"false":"true",class:"cm-content",style:`${nt.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};if(this.state.readOnly)e["aria-readonly"]="true";ao(this,Oe,e);let i=this.observer.ignore((()=>{let i=yt(this.contentDOM,this.contentAttrs,e);let s=yt(this.dom,this.editorAttrs,t);return i||s}));this.editorAttrs=t;this.contentAttrs=e;return i}showAnnouncements(t){let e=true;for(let i of t)for(let t of i.effects)if(t.is(oo.announce)){if(e)this.announceDOM.textContent="";e=false;let i=this.announceDOM.appendChild(document.createElement("div"));i.textContent=t.value}}mountStyles(){this.styleModules=this.state.facet(Ne);let t=this.state.facet(oo.cspNonce);o.StyleModule.mount(this.root,this.styleModules.concat(Us).reverse(),t?{nonce:t}:undefined)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");if(this.updateState==0&&this.measureScheduled>-1)this.measure(false)}requestMeasure(t){if(this.measureScheduled<0)this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()));if(t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null)for(let e=0;ee.spec==t))||null);return e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){this.readMeasured();return this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){this.readMeasured();return this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return di(this,t,ai(this,t,e,i))}moveByGroup(t,e){return di(this,t,ai(this,t,e,(e=>hi(this,t.head,e))))}visualLineSide(t,e){let i=this.bidiSpans(t),o=this.textDirectionAt(t.from);let n=i[e?i.length-1:0];return s.EditorSelection.cursor(n.side(e,o)+t.from,n.forward(!e,o)?1:-1)}moveToLineBoundary(t,e,i=true){return li(this,t,e,i)}moveVertically(t,e,i){return di(this,t,ci(this,t,e,i))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,e=0){return this.docView.posFromDOM(t,e)}posAtCoords(t,e=true){this.readMeasured();return ii(this,t,e)}coordsAtPos(t,e=1){this.readMeasured();let i=this.docView.coordsAt(t,e);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(t),o=this.bidiSpans(s);let n=o[Gt.find(o,t-s.from,-1,e)];return C(i,n.dir==Vt.LTR==e>0)}coordsForChar(t){this.readMeasured();return this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){let e=this.state.facet(ge);if(!e||tthis.viewport.to)return this.textDirection;this.readMeasured();return this.docView.textDirectionAt(t)}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>no)return ie(t.length);let e=this.textDirectionAt(t.from),i;for(let o of this.bidiCache){if(o.from==t.from&&o.dir==e&&(o.fresh||jt(o.isolates,i=Le(this,t))))return o.order}if(!i)i=Le(this,t);let s=ee(t.text,e,i);this.bidiCache.push(new lo(t.from,t.to,e,i,true,s));return s}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||nt.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{R(this.contentDOM);this.docView.updateSelection()}))}setRoot(t){if(this._root!=t){this._root=t;this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window);this.mountStyles()}}destroy(){if(this.root.activeElement==this.contentDOM)this.contentDOM.blur();for(let t of this.plugins)t.destroy(this);this.plugins=[];this.inputState.destroy();this.docView.destroy();this.dom.remove();this.observer.destroy();if(this.measureScheduled>-1)this.win.cancelAnimationFrame(this.measureScheduled);this.destroyed=true}static scrollIntoView(t,e={}){return be.of(new ve(typeof t=="number"?s.EditorSelection.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:e}=this.scrollDOM;let i=this.viewState.scrollAnchorAt(t);return be.of(new ve(s.EditorSelection.cursor(i.from),"start","start",i.top-t,e,true))}setTabFocusMode(t){if(t==null)this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1;else if(typeof t=="boolean")this.inputState.tabFocusMode=t?0:-1;else if(this.inputState.tabFocusMode!=0)this.inputState.tabFocusMode=Date.now()+t}static domEventHandlers(t){return ke.define((()=>({})),{eventHandlers:t})}static domEventObservers(t){return ke.define((()=>({})),{eventObservers:t})}static theme(t,e){let i=o.StyleModule.newName();let s=[Ks.of(i),Ne.of($s(`.${i}`,t))];if(e&&e.dark)s.push(Ys.of(true));return s}static baseTheme(t){return s.Prec.lowest(Ne.of($s("."+_s,t,js)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content");let s=i&&K.get(i)||K.get(t);return((e=s===null||s===void 0?void 0:s.rootView)===null||e===void 0?void 0:e.view)||null}}oo.styleModule=Ne;oo.inputHandler=fe;oo.clipboardInputFilter=ue;oo.clipboardOutputFilter=pe;oo.scrollHandler=we;oo.focusChangeEffect=de;oo.perLineTextDirection=ge;oo.exceptionSink=he;oo.updateListener=ce;oo.editable=xe;oo.mouseSelectionStyle=ae;oo.dragMovesSelection=le;oo.clickAddsSelectionRange=re;oo.decorations=Te;oo.outerDecorations=Ee;oo.atomicRanges=Re;oo.bidiIsolatedRanges=Be;oo.scrollMargins=Pe;oo.darkTheme=Ys;oo.cspNonce=s.Facet.define({combine:t=>t.length?t[0]:""});oo.contentAttributes=Oe;oo.editorAttributes=De;oo.lineWrapping=oo.contentAttributes.of({class:"cm-lineWrapping"});oo.announce=s.StateEffect.define();const no=4096;const ro={};class lo{constructor(t,e,i,s,o,n){this.from=t;this.to=e;this.dir=i;this.isolates=s;this.fresh=o;this.order=n}static update(t,e){if(e.empty&&!t.some((t=>t.fresh)))return t;let i=[],s=t.length?t[t.length-1].dir:Vt.LTR;for(let o=Math.max(0,t.length-10);o=0;o--){let e=s[o],n=typeof e=="function"?e(t):e;if(n)wt(n,i)}return i}const ho=nt.mac?"mac":nt.windows?"win":nt.linux?"linux":"key";function co(t,e){const i=t.split(/-(?!$)/);let s=i[i.length-1];if(s=="Space")s=" ";let o,n,r,l;for(let a=0;at.concat(e)),[])));return i}function wo(t,e,i){return xo(mo(t.state),e,t,i)}let vo=null;const bo=4e3;function yo(t,e=ho){let i=Object.create(null);let s=Object.create(null);let o=(t,e)=>{let i=s[t];if(i==null)s[t]=e;else if(i!=e)throw new Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")};let n=(t,s,n,r,l)=>{var a,h;let c=i[t]||(i[t]=Object.create(null));let f=s.split(/ (?!$)/).map((t=>co(t,e)));for(let e=1;e{let s=vo={view:e,prefix:i,scope:t};setTimeout((()=>{if(vo==s)vo=null}),bo);return true}]}}let d=f.join(" ");o(d,false);let u=c[d]||(c[d]={preventDefault:false,stopPropagation:false,run:((h=(a=c._any)===null||a===void 0?void 0:a.run)===null||h===void 0?void 0:h.slice())||[]});if(n)u.run.push(n);if(r)u.preventDefault=true;if(l)u.stopPropagation=true};for(let r of t){let t=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let e of t){let t=i[e]||(i[e]=Object.create(null));if(!t._any)t._any={preventDefault:false,stopPropagation:false,run:[]};let{any:s}=r;for(let e in t)t[e].run.push((t=>s(t,So)))}let s=r[e]||r.key;if(!s)continue;for(let e of t){n(e,s,r.run,r.preventDefault,r.stopPropagation);if(r.shift)n(e,"Shift-"+s,r.shift,r.preventDefault,r.stopPropagation)}}return i}let So=null;function xo(t,e,i,o){So=e;let l=p(e);let a=(0,s.codePointAt)(l,0),h=(0,s.codePointSize)(a)==l.length&&l!=" ";let c="",f=false,d=false,u=false;if(vo&&vo.view==i&&vo.scope==o){c=vo.prefix+" ";if(Ti.indexOf(e.keyCode)<0){d=true;vo=null}}let g=new Set;let m=t=>{if(t){for(let e of t.run)if(!g.has(e)){g.add(e);if(e(i)){if(t.stopPropagation)u=true;return true}}if(t.preventDefault){if(t.stopPropagation)u=true;d=true}}return false};let w=t[o],v,b;if(w){if(m(w[c+fo(l,e,!h)])){f=true}else if(h&&(e.altKey||e.metaKey||e.ctrlKey)&&!(nt.windows&&e.ctrlKey&&e.altKey)&&(v=n[e.keyCode])&&v!=l){if(m(w[c+fo(v,e,true)])){f=true}else if(e.shiftKey&&(b=r[e.keyCode])!=l&&b!=v&&m(w[c+fo(b,e,false)])){f=true}}else if(h&&e.shiftKey&&m(w[c+fo(l,e,true)])){f=true}if(!f&&m(w._any))f=true}if(d)f=true;if(f&&u)e.stopPropagation();So=null;return f}class Mo{constructor(t,e,i,s,o){this.className=t;this.left=e;this.top=i;this.width=s;this.height=o}draw(){let t=document.createElement("div");t.className=this.className;this.adjust(t);return t}update(t,e){if(e.className!=this.className)return false;this.adjust(t);return true}adjust(t){t.style.left=this.left+"px";t.style.top=this.top+"px";if(this.width!=null)t.style.width=this.width+"px";t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,i){if(i.empty){let s=t.coordsAtPos(i.head,i.assoc||1);if(!s)return[];let o=Co(t);return[new Mo(e,s.left-o.left,s.top-o.top,null,s.bottom-s.top)]}else{return Ao(t,e,i)}}}function Co(t){let e=t.scrollDOM.getBoundingClientRect();let i=t.textDirection==Vt.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX;return{left:i-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function ko(t,e,i,s){let o=t.coordsAtPos(e,i*2);if(!o)return s;let n=t.dom.getBoundingClientRect();let r=(o.top+o.bottom)/2;let l=t.posAtCoords({x:n.left+1,y:r});let a=t.posAtCoords({x:n.right-1,y:r});if(l==null||a==null)return s;return{from:Math.max(s.from,Math.min(l,a)),to:Math.min(s.to,Math.max(l,a))}}function Ao(t,e,i){if(i.to<=t.viewport.from||i.from>=t.viewport.to)return[];let s=Math.max(i.from,t.viewport.from),o=Math.min(i.to,t.viewport.to);let n=t.textDirection==Vt.LTR;let r=t.contentDOM,l=r.getBoundingClientRect(),a=Co(t);let h=r.querySelector(".cm-line"),c=h&&window.getComputedStyle(h);let f=l.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0);let d=l.right-(c?parseInt(c.paddingRight):0);let u=ri(t,s,1),p=ri(t,o,-1);let g=u.type==Mt.Text?u:null;let m=p.type==Mt.Text?p:null;if(g&&(t.lineWrapping||u.widgetLineBreaks))g=ko(t,s,1,g);if(m&&(t.lineWrapping||p.widgetLineBreaks))m=ko(t,o,-1,m);if(g&&m&&g.from==m.from&&g.to==m.to){return v(b(i.from,i.to,g))}else{let e=g?b(i.from,null,g):y(u,false);let s=m?b(null,i.to,m):y(p,true);let o=[];if((g||u).to<(m||p).from-(g&&m?1:0)||u.widgetLineBreaks>1&&e.bottom+t.defaultLineHeight/2h&&n.from=o)break;if(l>s)a(Math.max(t,s),e==null&&t<=h,Math.min(l,o),i==null&&l>=c,r.dir)}s=n.to+1;if(s>=o)break}}if(l.length==0)a(h,e==null,c,i==null,t.textDirection);return{top:o,bottom:r,horizontal:l}}function y(t,e){let i=l.top+(e?t.top:t.bottom);return{top:i,bottom:i,horizontal:[]}}}function Do(t,e){return t.constructor==e.constructor&&t.eq(e)}class Oo{constructor(t,e){this.view=t;this.layer=e;this.drawn=[];this.scaleX=1;this.scaleY=1;this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)};this.dom=t.scrollDOM.appendChild(document.createElement("div"));this.dom.classList.add("cm-layer");if(e.above)this.dom.classList.add("cm-layer-above");if(e.class)this.dom.classList.add(e.class);this.scale();this.dom.setAttribute("aria-hidden","true");this.setOrder(t.state);t.requestMeasure(this.measureReq);if(e.mount)e.mount(this.dom,t)}update(t){if(t.startState.facet(To)!=t.state.facet(To))this.setOrder(t.state);if(this.layer.update(t,this.dom)||t.geometryChanged){this.scale();t.view.requestMeasure(this.measureReq)}}docViewUpdate(t){if(this.layer.updateOnDocViewUpdate!==false)t.requestMeasure(this.measureReq)}setOrder(t){let e=0,i=t.facet(To);while(e!Do(t,this.drawn[e])))){let e=this.dom.firstChild,i=0;for(let s of t){if(s.update&&e&&s.constructor&&this.drawn[i].constructor&&s.update(e,this.drawn[i])){e=e.nextSibling;i++}else{this.dom.insertBefore(s.draw(),e)}}while(e){let t=e.nextSibling;e.remove();e=t}this.drawn=t}}destroy(){if(this.layer.destroy)this.layer.destroy(this.dom,this.view);this.dom.remove()}}const To=s.Facet.define();function Eo(t){return[ke.define((e=>new Oo(e,t))),To.of(t)]}const Ro=s.Facet.define({combine(t){return(0,s.combineConfig)(t,{cursorBlinkRate:1200,drawRangeCursor:true},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})}});function Bo(t={}){return[Ro.of(t),Ho,Vo,Fo,me.of(true)]}function Lo(t){return t.facet(Ro)}function Po(t){return t.startState.facet(Ro)!=t.state.facet(Ro)}const Ho=Eo({above:true,markers(t){let{state:e}=t,i=e.facet(Ro);let o=[];for(let n of e.selection.ranges){let r=n==e.selection.main;if(n.empty||i.drawRangeCursor){let e=r?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary";let i=n.empty?n:s.EditorSelection.cursor(n.head,n.head>n.anchor?-1:1);for(let s of Mo.forRange(t,e,i))o.push(s)}}return o},update(t,e){if(t.transactions.some((t=>t.selection)))e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink";let i=Po(t);if(i)No(t.state,e);return t.docChanged||t.selectionSet||i},mount(t,e){No(e.state,t)},class:"cm-cursorLayer"});function No(t,e){e.style.animationDuration=t.facet(Ro).cursorBlinkRate+"ms"}const Vo=Eo({above:false,markers(t){return t.state.selection.ranges.map((e=>e.empty?[]:Mo.forRange(t,"cm-selectionBackground",e))).reduce(((t,e)=>t.concat(e)))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||Po(t)},class:"cm-selectionLayer"});const Fo=s.Prec.highest(oo.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}}));const Wo=s.StateEffect.define({map(t,e){return t==null?null:e.mapPos(t)}});const zo=s.StateField.define({create(){return null},update(t,e){if(t!=null)t=e.changes.mapPos(t);return e.effects.reduce(((t,e)=>e.is(Wo)?e.value:t),t)}});const Io=ke.fromClass(class{constructor(t){this.view=t;this.cursor=null;this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let i=t.state.field(zo);if(i==null){if(this.cursor!=null){(e=this.cursor)===null||e===void 0?void 0:e.remove();this.cursor=null}}else{if(!this.cursor){this.cursor=this.view.scrollDOM.appendChild(document.createElement("div"));this.cursor.className="cm-dropCursor"}if(t.startState.field(zo)!=i||t.docChanged||t.geometryChanged)this.view.requestMeasure(this.measureReq)}}readPos(){let{view:t}=this;let e=t.state.field(zo);let i=e!=null&&t.coordsAtPos(e);if(!i)return null;let s=t.scrollDOM.getBoundingClientRect();return{left:i.left-s.left+t.scrollDOM.scrollLeft*t.scaleX,top:i.top-s.top+t.scrollDOM.scrollTop*t.scaleY,height:i.bottom-i.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:i}=this.view;if(t){this.cursor.style.left=t.left/e+"px";this.cursor.style.top=t.top/i+"px";this.cursor.style.height=t.height/i+"px"}else{this.cursor.style.left="-100000px"}}}destroy(){if(this.cursor)this.cursor.remove()}setDropPos(t){if(this.view.state.field(zo)!=t)this.view.dispatch({effects:Wo.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){if(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function qo(){return[zo,Io]}function Ko(t,e,i,s,o){e.lastIndex=0;for(let n=t.iterRange(i,s),r=i,l;!n.next().done;r+=n.value.length){if(!n.lineBreak)while(l=e.exec(n.value))o(r+l.index,l)}}function Yo(t,e){let i=t.visibleRanges;if(i.length==1&&i[0].from==t.viewport.from&&i[0].to==t.viewport.to)return i;let s=[];for(let{from:o,to:n}of i){o=Math.max(t.state.doc.lineAt(o).from,o-e);n=Math.min(t.state.doc.lineAt(n).to,n+e);if(s.length&&s[s.length-1].to>=o)s[s.length-1].to=n;else s.push({from:o,to:n})}return s}class _o{constructor(t){const{regexp:e,decoration:i,decorate:s,boundary:o,maxLength:n=1e3}=t;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");this.regexp=e;if(s){this.addMatch=(t,e,i,o)=>s(o,i,i+t[0].length,t,e)}else if(typeof i=="function"){this.addMatch=(t,e,s,o)=>{let n=i(t,e,s);if(n)o(s,s+t[0].length,n)}}else if(i){this.addMatch=(t,e,s,o)=>o(s,s+t[0].length,i)}else{throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator")}this.boundary=o;this.maxLength=n}createDeco(t){let e=new s.RangeSetBuilder,i=e.add.bind(e);for(let{from:s,to:o}of Yo(t,this.maxLength))Ko(t.state.doc,this.regexp,s,o,((e,s)=>this.addMatch(s,t,e,i)));return e.finish()}updateDeco(t,e){let i=1e9,s=-1;if(t.docChanged)t.changes.iterChanges(((e,o,n,r)=>{if(r>=t.view.viewport.from&&n<=t.view.viewport.to){i=Math.min(n,i);s=Math.max(r,s)}}));if(t.viewportMoved||s-i>1e3)return this.createDeco(t.view);if(s>-1)return this.updateRange(t.view,e.map(t.changes),i,s);return e}updateRange(t,e,i,s){for(let o of t.visibleRanges){let n=Math.max(o.from,i),r=Math.min(o.to,s);if(r>n){let i=t.state.doc.lineAt(n),s=i.toi.from;n--)if(this.boundary.test(i.text[n-1-i.from])){l=n;break}for(;rh.push(i.range(t,e));if(i==s){this.regexp.lastIndex=l-i.from;while((c=this.regexp.exec(i.text))&&c.indexthis.addMatch(i,t,e,f)))}e=e.update({filterFrom:l,filterTo:a,filter:(t,e)=>ta,add:h})}}return e}}const Xo=/x/.unicode!=null?"gu":"g";const Go=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",Xo);const jo={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let $o=null;function Uo(){var t;if($o==null&&typeof document!="undefined"&&document.body){let e=document.body.style;$o=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return $o||false}const Qo=s.Facet.define({combine(t){let e=(0,s.combineConfig)(t,{render:null,specialChars:Go,addSpecialChars:null});if(e.replaceTabs=!Uo())e.specialChars=new RegExp("\t|"+e.specialChars.source,Xo);if(e.addSpecialChars)e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Xo);return e}});function Jo(t={}){return[Qo.of(t),tn()]}let Zo=null;function tn(){return Zo||(Zo=ke.fromClass(class{constructor(t){this.view=t;this.decorations=Ct.none;this.decorationCache=Object.create(null);this.decorator=this.makeDecorator(t.state.facet(Qo));this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new _o({regexp:t.specialChars,decoration:(e,i,o)=>{let{doc:n}=i.state;let r=(0,s.codePointAt)(e[0],0);if(r==9){let t=n.lineAt(o);let e=i.state.tabSize,r=(0,s.countColumn)(t.text,e,o-t.from);return Ct.replace({widget:new nn((e-r%e)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[r]||(this.decorationCache[r]=Ct.replace({widget:new on(t,r)}))},boundary:t.replaceTabs?undefined:/[^]/})}update(t){let e=t.state.facet(Qo);if(t.startState.facet(Qo)!=e){this.decorator=this.makeDecorator(e);this.decorations=this.decorator.createDeco(t.view)}else{this.decorations=this.decorator.updateDeco(t,this.decorations)}}},{decorations:t=>t.decorations}))}const en="•";function sn(t){if(t>=32)return en;if(t==10)return"␤";return String.fromCharCode(9216+t)}class on extends xt{constructor(t,e){super();this.options=t;this.code=e}eq(t){return t.code==this.code}toDOM(t){let e=sn(this.code);let i=t.state.phrase("Control character")+" "+(jo[this.code]||"0x"+this.code.toString(16));let s=this.options.render&&this.options.render(this.code,i,e);if(s)return s;let o=document.createElement("span");o.textContent=e;o.title=i;o.setAttribute("aria-label",i);o.className="cm-specialChar";return o}ignoreEvent(){return false}}class nn extends xt{constructor(t){super();this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");t.textContent="\t";t.className="cm-tab";t.style.width=this.width+"px";return t}ignoreEvent(){return false}}const rn=ke.fromClass(class{constructor(){this.height=1e3;this.attrs={style:"padding-bottom: 1000px"}}update(t){let{view:e}=t;let i=e.viewState.editorHeight-e.defaultLineHeight-e.documentPadding.top-.5;if(i>=0&&i!=this.height){this.height=i;this.attrs={style:`padding-bottom: ${i}px`}}}});function ln(){return[rn,Oe.of((t=>{var e;return((e=t.plugin(rn))===null||e===void 0?void 0:e.attrs)||null}))]}function an(){return cn}const hn=Ct.line({class:"cm-activeLine"});const cn=ke.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){if(t.docChanged||t.selectionSet)this.decorations=this.getDeco(t.view)}getDeco(t){let e=-1,i=[];for(let s of t.state.selection.ranges){let o=t.lineBlockAt(s.head);if(o.from>e){i.push(hn.range(o.from));e=o.from}}return Ct.set(i)}},{decorations:t=>t.decorations});class fn extends xt{constructor(t){super();this.content=t}toDOM(t){let e=document.createElement("span");e.className="cm-placeholder";e.style.pointerEvents="none";e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(t):this.content.cloneNode(true));if(typeof this.content=="string")e.setAttribute("aria-label","placeholder "+this.content);else e.setAttribute("aria-hidden","true");return e}coordsAt(t){let e=t.firstChild?v(t.firstChild):[];if(!e.length)return null;let i=window.getComputedStyle(t.parentNode);let s=C(e[0],i.direction!="rtl");let o=parseInt(i.lineHeight);if(s.bottom-s.top>o*1.5)return{left:s.left,right:s.right,top:s.top,bottom:s.top+o};return s}ignoreEvent(){return false}}function dn(t){return ke.fromClass(class{constructor(e){this.view=e;this.placeholder=t?Ct.set([Ct.widget({widget:new fn(t),side:1}).range(0)]):Ct.none}get decorations(){return this.view.state.doc.length?Ct.none:this.placeholder}},{decorations:t=>t.decorations})}const un=2e3;function pn(t,e,i){let o=Math.min(e.line,i.line),n=Math.max(e.line,i.line);let r=[];if(e.off>un||i.off>un||e.col<0||i.col<0){let l=Math.min(e.off,i.off),a=Math.max(e.off,i.off);for(let e=o;e<=n;e++){let i=t.doc.line(e);if(i.length<=a)r.push(s.EditorSelection.range(i.from+l,i.to+a))}}else{let l=Math.min(e.col,i.col),a=Math.max(e.col,i.col);for(let e=o;e<=n;e++){let i=t.doc.line(e);let o=(0,s.findColumn)(i.text,l,t.tabSize,true);if(o<0){r.push(s.EditorSelection.cursor(i.to))}else{let e=(0,s.findColumn)(i.text,a,t.tabSize);r.push(s.EditorSelection.range(i.from+o,i.from+e))}}}return r}function gn(t,e){let i=t.coordsAtPos(t.viewport.from);return i?Math.round(Math.abs((i.left-e)/t.defaultCharacterWidth)):-1}function mn(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},false);let o=t.state.doc.lineAt(i),n=i-o.from;let r=n>un?-1:n==o.length?gn(t,e.clientX):(0,s.countColumn)(o.text,t.state.tabSize,i-o.from);return{line:o.number,col:r,off:n}}function wn(t,e){let i=mn(t,e),o=t.state.selection;if(!i)return null;return{update(t){if(t.docChanged){let e=t.changes.mapPos(t.startState.doc.line(i.line).from);let s=t.state.doc.lineAt(e);i={line:s.number,col:i.col,off:Math.min(i.off,s.length)};o=o.map(t.changes)}},get(e,n,r){let l=mn(t,e);if(!l)return o;let a=pn(t.state,i,l);if(!a.length)return o;if(r)return s.EditorSelection.create(a.concat(o.ranges));else return s.EditorSelection.create(a)}}}function vn(t){let e=(t===null||t===void 0?void 0:t.eventFilter)||(t=>t.altKey&&t.button==0);return oo.mouseSelectionStyle.of(((t,i)=>e(i)?wn(t,i):null))}const bn={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]};const yn={style:"cursor: crosshair"};function Sn(t={}){let[e,i]=bn[t.key||"Alt"];let s=ke.fromClass(class{constructor(t){this.view=t;this.isDown=false}set(t){if(this.isDown!=t){this.isDown=t;this.view.update([])}}},{eventObservers:{keydown(t){this.set(t.keyCode==e||i(t))},keyup(t){if(t.keyCode==e||!i(t))this.set(false)},mousemove(t){this.set(i(t))}}});return[s,oo.contentAttributes.of((t=>{var e;return((e=t.plugin(s))===null||e===void 0?void 0:e.isDown)?yn:null}))]}const xn="-10000px";class Mn{constructor(t,e,i,s){this.facet=e;this.createTooltipView=i;this.removeTooltipView=s;this.input=t.state.facet(e);this.tooltips=this.input.filter((t=>t));let o=null;this.tooltipViews=this.tooltips.map((t=>o=i(t,o)))}update(t,e){var i;let s=t.state.facet(this.facet);let o=s.filter((t=>t));if(s===this.input){for(let e of this.tooltipViews)if(e.update)e.update(t);return false}let n=[],r=e?[]:null;for(let l=0;le[i]=t));e.length=r.length}this.input=s;this.tooltips=o;this.tooltipViews=n;return true}}function Cn(t={}){return An.of(t)}function kn(t){let e=t.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}const An=s.Facet.define({combine:t=>{var e,i,s;return{position:nt.ios?"absolute":((e=t.find((t=>t.position)))===null||e===void 0?void 0:e.position)||"fixed",parent:((i=t.find((t=>t.parent)))===null||i===void 0?void 0:i.parent)||null,tooltipSpace:((s=t.find((t=>t.tooltipSpace)))===null||s===void 0?void 0:s.tooltipSpace)||kn}}});const Dn=new WeakMap;const On=ke.fromClass(class{constructor(t){this.view=t;this.above=[];this.inView=true;this.madeAbsolute=false;this.lastTransaction=0;this.measureTimeout=-1;let e=t.state.facet(An);this.position=e.position;this.parent=e.parent;this.classes=t.themeClasses;this.createContainer();this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this};this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver((()=>this.measureSoon())):null;this.manager=new Mn(t,Bn,((t,e)=>this.createTooltip(t,e)),(t=>{if(this.resizeObserver)this.resizeObserver.unobserve(t.dom);t.dom.remove()}));this.above=this.manager.tooltips.map((t=>!!t.above));this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver((t=>{if(Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1)this.measureSoon()}),{threshold:[1]}):null;this.observeIntersection();t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this));this.maybeMeasure()}createContainer(){if(this.parent){this.container=document.createElement("div");this.container.style.position="relative";this.container.className=this.view.themeClasses;this.parent.appendChild(this.container)}else{this.container=this.view.dom}}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){if(this.measureTimeout<0)this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1;this.maybeMeasure()}),50)}update(t){if(t.transactions.length)this.lastTransaction=Date.now();let e=this.manager.update(t,this.above);if(e)this.observeIntersection();let i=e||t.geometryChanged;let s=t.state.facet(An);if(s.position!=this.position&&!this.madeAbsolute){this.position=s.position;for(let t of this.manager.tooltipViews)t.dom.style.position=this.position;i=true}if(s.parent!=this.parent){if(this.parent)this.container.remove();this.parent=s.parent;this.createContainer();for(let t of this.manager.tooltipViews)this.container.appendChild(t.dom);i=true}else if(this.parent&&this.view.themeClasses!=this.classes){this.classes=this.container.className=this.view.themeClasses}if(i)this.maybeMeasure()}createTooltip(t,e){let i=t.create(this.view);let s=e?e.dom:null;i.dom.classList.add("cm-tooltip");if(t.arrow&&!i.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let t=document.createElement("div");t.className="cm-tooltip-arrow";i.dom.appendChild(t)}i.dom.style.position=this.position;i.dom.style.top=xn;i.dom.style.left="0px";this.container.insertBefore(i.dom,s);if(i.mount)i.mount(this.view);if(this.resizeObserver)this.resizeObserver.observe(i.dom);return i}destroy(){var t,e,i;this.view.win.removeEventListener("resize",this.measureSoon);for(let s of this.manager.tooltipViews){s.dom.remove();(t=s.destroy)===null||t===void 0?void 0:t.call(s)}if(this.parent)this.container.remove();(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();(i=this.intersectionObserver)===null||i===void 0?void 0:i.disconnect();clearTimeout(this.measureTimeout)}readMeasure(){let t=1,e=1,i=false;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:t}=this.manager.tooltipViews[0];if(nt.gecko){i=t.offsetParent!=this.container.ownerDocument.body}else if(t.style.top==xn&&t.style.left=="0px"){let e=t.getBoundingClientRect();i=Math.abs(e.top+1e4)>1||Math.abs(e.left)>1}}if(i||this.position=="absolute"){if(this.parent){let i=this.parent.getBoundingClientRect();if(i.width&&i.height){t=i.width/this.parent.offsetWidth;e=i.height/this.parent.offsetHeight}}else{({scaleX:t,scaleY:e}=this.view.viewState)}}let s=this.view.scrollDOM.getBoundingClientRect(),o=He(this.view);return{visible:{left:s.left+o.left,top:s.top+o.top,right:s.right-o.right,bottom:s.bottom-o.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map(((t,e)=>{let i=this.manager.tooltipViews[e];return i.getCoords?i.getCoords(t.pos):this.view.coordsAtPos(t.pos)})),size:this.manager.tooltipViews.map((({dom:t})=>t.getBoundingClientRect())),space:this.view.state.facet(An).tooltipSpace(this.view),scaleX:t,scaleY:e,makeAbsolute:i}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=true;this.position="absolute";for(let t of this.manager.tooltipViews)t.dom.style.position="absolute"}let{visible:i,space:s,scaleX:o,scaleY:n}=t;let r=[];for(let l=0;l=Math.min(i.bottom,s.bottom)||f.rightMath.min(i.right,s.right)+.1)){c.style.top=xn;continue}let u=a.arrow?h.dom.querySelector(".cm-tooltip-arrow"):null;let p=u?7:0;let g=d.right-d.left,m=(e=Dn.get(h))!==null&&e!==void 0?e:d.bottom-d.top;let w=h.offset||Rn,v=this.view.textDirection==Vt.LTR;let b=d.width>s.right-s.left?v?s.left:s.right-d.width:v?Math.max(s.left,Math.min(f.left-(u?14:0)+w.x,s.right-g)):Math.min(Math.max(s.left,f.left-g+(u?14:0)-w.x),s.right-g);let y=this.above[l];if(!a.strictSide&&(y?f.top-m-p-w.ys.bottom)&&y==s.bottom-f.bottom>f.top-s.top)y=this.above[l]=!y;let S=(y?f.top-s.top:s.bottom-f.bottom)-p;if(Sb&&t.topx)x=y?t.top-m-2-p:t.bottom+p+2;if(this.position=="absolute"){c.style.top=(x-t.parent.top)/n+"px";Tn(c,(b-t.parent.left)/o)}else{c.style.top=x/n+"px";Tn(c,b/o)}if(u){let t=f.left+(v?w.x:-w.x)-(b+14-7);u.style.left=t/o+"px"}if(h.overlap!==true)r.push({left:b,top:x,right:M,bottom:x+m});c.classList.toggle("cm-tooltip-above",y);c.classList.toggle("cm-tooltip-below",!y);if(h.positioned)h.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length){if(this.view.inView)this.view.requestMeasure(this.measureReq);if(this.inView!=this.view.inView){this.inView=this.view.inView;if(!this.inView)for(let t of this.manager.tooltipViews)t.dom.style.top=xn}}}},{eventObservers:{scroll(){this.maybeMeasure()}}});function Tn(t,e){let i=parseInt(t.style.left,10);if(isNaN(i)||Math.abs(e-i)>1)t.style.left=e+"px"}const En=oo.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:`${7}px`,width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:`${7}px solid transparent`,borderRight:`${7}px solid transparent`},".cm-tooltip-above &":{bottom:`-${7}px`,"&:before":{borderTop:`${7}px solid #bbb`},"&:after":{borderTop:`${7}px solid #f5f5f5`,bottom:"1px"}},".cm-tooltip-below &":{top:`-${7}px`,"&:before":{borderBottom:`${7}px solid #bbb`},"&:after":{borderBottom:`${7}px solid #f5f5f5`,top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}});const Rn={x:0,y:0};const Bn=s.Facet.define({enables:[On,En]});const Ln=s.Facet.define({combine:t=>t.reduce(((t,e)=>t.concat(e)),[])});class Pn{static create(t){return new Pn(t)}constructor(t){this.view=t;this.mounted=false;this.dom=document.createElement("div");this.dom.classList.add("cm-tooltip-hover");this.manager=new Mn(t,Ln,((t,e)=>this.createHostedView(t,e)),(t=>t.dom.remove()))}createHostedView(t,e){let i=t.create(this.view);i.dom.classList.add("cm-tooltip-section");this.dom.insertBefore(i.dom,e?e.dom.nextSibling:this.dom.firstChild);if(this.mounted&&i.mount)i.mount(this.view);return i}mount(t){for(let e of this.manager.tooltipViews){if(e.mount)e.mount(t)}this.mounted=true}positioned(t){for(let e of this.manager.tooltipViews){if(e.positioned)e.positioned(t)}}update(t){this.manager.update(t)}destroy(){var t;for(let e of this.manager.tooltipViews)(t=e.destroy)===null||t===void 0?void 0:t.call(e)}passProp(t){let e=undefined;for(let i of this.manager.tooltipViews){let s=i[t];if(s!==undefined){if(e===undefined)e=s;else if(e!==s)return undefined}}return e}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const Hn=Bn.compute([Ln],(t=>{let e=t.facet(Ln);if(e.length===0)return null;return{pos:Math.min(...e.map((t=>t.pos))),end:Math.max(...e.map((t=>{var e;return(e=t.end)!==null&&e!==void 0?e:t.pos}))),create:Pn.create,above:e[0].above,arrow:e.some((t=>t.arrow))}}));class Nn{constructor(t,e,i,s,o){this.view=t;this.source=e;this.field=i;this.setHover=s;this.hoverTime=o;this.hoverTimeout=-1;this.restartTimeout=-1;this.pending=null;this.lastMove={x:0,y:0,target:t.dom,time:0};this.checkHover=this.checkHover.bind(this);t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this));t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){if(this.pending){this.pending=null;clearTimeout(this.restartTimeout);this.restartTimeout=setTimeout((()=>this.startHover()),20)}}get active(){return this.view.state.field(this.field)}checkHover(){this.hoverTimeout=-1;if(this.active.length)return;let t=Date.now()-this.lastMove.time;if(ti.bottom||e.xi.right+t.defaultCharacterWidth)return;let n=t.bidiSpans(t.state.doc.lineAt(s)).find((t=>t.from<=s&&t.to>=s));let r=n&&n.dir==Vt.RTL?-1:1;o=e.x{if(this.pending==e){this.pending=null;if(i&&!(Array.isArray(i)&&!i.length))t.dispatch({effects:this.setHover.of(Array.isArray(i)?i:[i])})}}),(e=>Se(t.state,e,"hover tooltip")))}else if(n&&!(Array.isArray(n)&&!n.length)){t.dispatch({effects:this.setHover.of(Array.isArray(n)?n:[n])})}}get tooltip(){let t=this.view.plugin(On);let e=t?t.manager.tooltips.findIndex((t=>t.create==Pn.create)):-1;return e>-1?t.manager.tooltipViews[e]:null}mousemove(t){var e,i;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()};if(this.hoverTimeout<0)this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime);let{active:s,tooltip:o}=this;if(s.length&&o&&!Fn(o.dom,t)||this.pending){let{pos:o}=s[0]||this.pending,n=(i=(e=s[0])===null||e===void 0?void 0:e.end)!==null&&i!==void 0?i:o;if(o==n?this.view.posAtCoords(this.lastMove)!=o:!Wn(this.view,o,n,t.clientX,t.clientY)){this.view.dispatch({effects:this.setHover.of([])});this.pending=null}}}mouseleave(t){clearTimeout(this.hoverTimeout);this.hoverTimeout=-1;let{active:e}=this;if(e.length){let{tooltip:e}=this;let i=e&&e.dom.contains(t.relatedTarget);if(!i)this.view.dispatch({effects:this.setHover.of([])});else this.watchTooltipLeave(e.dom)}}watchTooltipLeave(t){let e=i=>{t.removeEventListener("mouseleave",e);if(this.active.length&&!this.view.dom.contains(i.relatedTarget))this.view.dispatch({effects:this.setHover.of([])})};t.addEventListener("mouseleave",e)}destroy(){clearTimeout(this.hoverTimeout);this.view.dom.removeEventListener("mouseleave",this.mouseleave);this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Vn=4;function Fn(t,e){let{left:i,right:s,top:o,bottom:n}=t.getBoundingClientRect(),r;if(r=t.querySelector(".cm-tooltip-arrow")){let t=r.getBoundingClientRect();o=Math.min(t.top,o);n=Math.max(t.bottom,n)}return e.clientX>=i-Vn&&e.clientX<=s+Vn&&e.clientY>=o-Vn&&e.clientY<=n+Vn}function Wn(t,e,i,s,o,n){let r=t.scrollDOM.getBoundingClientRect();let l=t.documentTop+t.documentPadding.top+t.contentHeight;if(r.left>s||r.righto||Math.min(r.bottom,l)=e&&a<=i}function zn(t,e={}){let i=s.StateEffect.define();let o=s.StateField.define({create(){return[]},update(t,o){if(t.length){if(e.hideOnChange&&(o.docChanged||o.selection))t=[];else if(e.hideOn)t=t.filter((t=>!e.hideOn(o,t)));if(o.docChanged){let e=[];for(let i of t){let t=o.changes.mapPos(i.pos,-1,s.MapMode.TrackDel);if(t!=null){let s=Object.assign(Object.create(null),i);s.pos=t;if(s.end!=null)s.end=o.changes.mapPos(s.end);e.push(s)}}t=e}}for(let e of o.effects){if(e.is(i))t=e.value;if(e.is(Kn))t=[]}return t},provide:t=>Ln.from(t)});return{active:o,extension:[o,ke.define((s=>new Nn(s,t,o,i,e.hoverTime||300))),Hn]}}function In(t,e){let i=t.plugin(On);if(!i)return null;let s=i.manager.tooltips.indexOf(e);return s<0?null:i.manager.tooltipViews[s]}function qn(t){return t.facet(Ln).some((t=>t))}const Kn=s.StateEffect.define();const Yn=Kn.of(null);function _n(t){let e=t.plugin(On);if(e)e.maybeMeasure()}const Xn=s.Facet.define({combine(t){let e,i;for(let s of t){e=e||s.topContainer;i=i||s.bottomContainer}return{topContainer:e,bottomContainer:i}}});function Gn(t){return t?[Xn.of(t)]:[]}function jn(t,e){let i=t.plugin($n);let s=i?i.specs.indexOf(e):-1;return s>-1?i.panels[s]:null}const $n=ke.fromClass(class{constructor(t){this.input=t.state.facet(Jn);this.specs=this.input.filter((t=>t));this.panels=this.specs.map((e=>e(t)));let e=t.state.facet(Xn);this.top=new Un(t,true,e.topContainer);this.bottom=new Un(t,false,e.bottomContainer);this.top.sync(this.panels.filter((t=>t.top)));this.bottom.sync(this.panels.filter((t=>!t.top)));for(let i of this.panels){i.dom.classList.add("cm-panel");if(i.mount)i.mount()}}update(t){let e=t.state.facet(Xn);if(this.top.container!=e.topContainer){this.top.sync([]);this.top=new Un(t.view,true,e.topContainer)}if(this.bottom.container!=e.bottomContainer){this.bottom.sync([]);this.bottom=new Un(t.view,false,e.bottomContainer)}this.top.syncClasses();this.bottom.syncClasses();let i=t.state.facet(Jn);if(i!=this.input){let e=i.filter((t=>t));let s=[],o=[],n=[],r=[];for(let i of e){let e=this.specs.indexOf(i),l;if(e<0){l=i(t.view);r.push(l)}else{l=this.panels[e];if(l.update)l.update(t)}s.push(l);(l.top?o:n).push(l)}this.specs=e;this.panels=s;this.top.sync(o);this.bottom.sync(n);for(let t of r){t.dom.classList.add("cm-panel");if(t.mount)t.mount()}}else{for(let e of this.panels)if(e.update)e.update(t)}}destroy(){this.top.sync([]);this.bottom.sync([])}},{provide:t=>oo.scrollMargins.of((e=>{let i=e.plugin(t);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}}))});class Un{constructor(t,e,i){this.view=t;this.top=e;this.container=i;this.dom=undefined;this.classes="";this.panels=[];this.syncClasses()}sync(t){for(let e of this.panels)if(e.destroy&&t.indexOf(e)<0)e.destroy();this.panels=t;this.syncDOM()}syncDOM(){if(this.panels.length==0){if(this.dom){this.dom.remove();this.dom=undefined}return}if(!this.dom){this.dom=document.createElement("div");this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom";this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let t=this.dom.firstChild;for(let e of this.panels){if(e.dom.parentNode==this.dom){while(t!=e.dom)t=Qn(t);t=t.nextSibling}else{this.dom.insertBefore(e.dom,t)}}while(t)t=Qn(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!this.container||this.classes==this.view.themeClasses)return;for(let t of this.classes.split(" "))if(t)this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))if(t)this.container.classList.add(t)}}function Qn(t){let e=t.nextSibling;t.remove();return e}const Jn=s.Facet.define({enables:$n});class Zn extends s.RangeValue{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return false}destroy(t){}}Zn.prototype.elementClass="";Zn.prototype.toDOM=undefined;Zn.prototype.mapMode=s.MapMode.TrackBefore;Zn.prototype.startSide=Zn.prototype.endSide=-1;Zn.prototype.point=true;const tr=s.Facet.define();const er=s.Facet.define();const ir={class:"",renderEmptyElements:false,elementStyle:"",markers:()=>s.RangeSet.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}};const sr=s.Facet.define();function or(t){return[rr(),sr.of(Object.assign(Object.assign({},ir),t))]}const nr=s.Facet.define({combine:t=>t.some((t=>t))});function rr(t){let e=[lr];if(t&&t.fixed===false)e.push(nr.of(true));return e}const lr=ke.fromClass(class{constructor(t){this.view=t;this.prevViewport=t.viewport;this.dom=document.createElement("div");this.dom.className="cm-gutters";this.dom.setAttribute("aria-hidden","true");this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px";this.gutters=t.state.facet(sr).map((e=>new fr(t,e)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(nr);if(this.fixed){this.dom.style.position="sticky"}this.syncGutters(false);t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,i=t.view.viewport;let s=Math.min(e.to,i.to)-Math.max(e.from,i.from);this.syncGutters(s<(i.to-i.from)*.8)}if(t.geometryChanged){this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"}if(this.view.state.facet(nr)!=!this.fixed){this.fixed=!this.fixed;this.dom.style.position=this.fixed?"sticky":""}this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;if(t)this.dom.remove();let i=s.RangeSet.iter(this.view.state.facet(tr),this.view.viewport.from);let o=[];let n=this.gutters.map((t=>new cr(t,this.view.viewport,-this.view.documentPadding.top)));for(let s of this.view.viewportLineBlocks){if(o.length)o=[];if(Array.isArray(s.type)){let t=true;for(let e of s.type){if(e.type==Mt.Text&&t){hr(i,o,e.from);for(let t of n)t.line(this.view,e,o);t=false}else if(e.widget){for(let t of n)t.widget(this.view,e)}}}else if(s.type==Mt.Text){hr(i,o,s.from);for(let t of n)t.line(this.view,s,o)}else if(s.widget){for(let t of n)t.widget(this.view,s)}}for(let s of n)s.finish();if(t)this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(sr),i=t.state.facet(sr);let o=t.docChanged||t.heightChanged||t.viewportChanged||!s.RangeSet.eq(t.startState.facet(tr),t.state.facet(tr),t.view.viewport.from,t.view.viewport.to);if(e==i){for(let e of this.gutters)if(e.update(t))o=true}else{o=true;let s=[];for(let o of i){let i=e.indexOf(o);if(i<0){s.push(new fr(this.view,o))}else{this.gutters[i].update(t);s.push(this.gutters[i])}}for(let t of this.gutters){t.dom.remove();if(s.indexOf(t)<0)t.destroy()}for(let t of s)this.dom.appendChild(t.dom);this.gutters=s}return o}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>oo.scrollMargins.of((e=>{let i=e.plugin(t);if(!i||i.gutters.length==0||!i.fixed)return null;return e.textDirection==Vt.LTR?{left:i.dom.offsetWidth*e.scaleX}:{right:i.dom.offsetWidth*e.scaleX}}))});function ar(t){return Array.isArray(t)?t:[t]}function hr(t,e,i){while(t.value&&t.from<=i){if(t.from==i)e.push(t.value);t.next()}}class cr{constructor(t,e,i){this.gutter=t;this.height=i;this.i=0;this.cursor=s.RangeSet.iter(t.markers,e.from)}addElement(t,e,i){let{gutter:s}=this,o=(e.top-this.height)/t.scaleY,n=e.height/t.scaleY;if(this.i==s.elements.length){let e=new dr(t,n,o,i);s.elements.push(e);s.dom.appendChild(e.dom)}else{s.elements[this.i].update(t,n,o,i)}this.height=e.bottom;this.i++}line(t,e,i){let s=[];hr(this.cursor,s,e.from);if(i.length)s=s.concat(i);let o=this.gutter.config.lineMarker(t,e,s);if(o)s.unshift(o);let n=this.gutter;if(s.length==0&&!n.config.renderEmptyElements)return;this.addElement(t,e,s)}widget(t,e){let i=this.gutter.config.widgetMarker(t,e.widget,e),s=i?[i]:null;for(let o of t.state.facet(er)){let i=o(t,e.widget,e);if(i)(s||(s=[])).push(i)}if(s)this.addElement(t,e,s)}finish(){let t=this.gutter;while(t.elements.length>this.i){let e=t.elements.pop();t.dom.removeChild(e.dom);e.destroy()}}}class fr{constructor(t,e){this.view=t;this.config=e;this.elements=[];this.spacer=null;this.dom=document.createElement("div");this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in e.domEventHandlers){this.dom.addEventListener(i,(s=>{let o=s.target,n;if(o!=this.dom&&this.dom.contains(o)){while(o.parentNode!=this.dom)o=o.parentNode;let t=o.getBoundingClientRect();n=(t.top+t.bottom)/2}else{n=s.clientY}let r=t.lineBlockAtHeight(n-t.documentTop);if(e.domEventHandlers[i](t,r,s))s.preventDefault()}))}this.markers=ar(e.markers(t));if(e.initialSpacer){this.spacer=new dr(t,0,0,[e.initialSpacer(t)]);this.dom.appendChild(this.spacer.dom);this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none"}}update(t){let e=this.markers;this.markers=ar(this.config.markers(t.view));if(this.spacer&&this.config.updateSpacer){let e=this.config.updateSpacer(this.spacer.markers[0],t);if(e!=this.spacer.markers[0])this.spacer.update(t.view,0,0,[e])}let i=t.view.viewport;return!s.RangeSet.eq(this.markers,e,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):false)}destroy(){for(let t of this.elements)t.destroy()}}class dr{constructor(t,e,i,s){this.height=-1;this.above=0;this.markers=[];this.dom=document.createElement("div");this.dom.className="cm-gutterElement";this.update(t,e,i,s)}update(t,e,i,s){if(this.height!=e){this.height=e;this.dom.style.height=e+"px"}if(this.above!=i)this.dom.style.marginTop=(this.above=i)?i+"px":"";if(!ur(this.markers,s))this.setMarkers(t,s)}setMarkers(t,e){let i="cm-gutterElement",s=this.dom.firstChild;for(let o=0,n=0;;){let r=n,l=ot(e,i,s)||o(e,i,s):o}return i}})}});class wr extends Zn{constructor(t){super();this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function vr(t,e){return t.state.facet(mr).formatNumber(e,t.state)}const br=sr.compute([mr],(t=>({class:"cm-lineNumbers",renderEmptyElements:false,markers(t){return t.state.facet(pr)},lineMarker(t,e,i){if(i.some((t=>t.toDOM)))return null;return new wr(vr(t,t.state.doc.lineAt(e.from).number))},widgetMarker:(t,e,i)=>{for(let s of t.state.facet(gr)){let o=s(t,e,i);if(o)return o}return null},lineMarkerChange:t=>t.startState.facet(mr)!=t.state.facet(mr),initialSpacer(t){return new wr(vr(t,Sr(t.state.doc.lines)))},updateSpacer(t,e){let i=vr(e.view,Sr(e.view.state.doc.lines));return i==t.number?t:new wr(i)},domEventHandlers:t.facet(mr).domEventHandlers})));function yr(t={}){return[mr.of(t),rr(),br]}function Sr(t){let e=9;while(e{let e=[],i=-1;for(let s of t.selection.ranges){let o=t.doc.lineAt(s.head).from;if(o>i){i=o;e.push(xr.range(o))}}return s.RangeSet.of(e)}));function Cr(){return Mr}function kr(t){return ke.define((e=>({decorations:t.createDeco(e),update(e){this.decorations=t.updateDeco(e,this.decorations)}})),{decorations:t=>t.decorations})}const Ar=Ct.mark({class:"cm-highlightTab"});const Dr=Ct.mark({class:"cm-highlightSpace"});const Or=kr(new _o({regexp:/\t| /g,decoration:t=>t[0]=="\t"?Ar:Dr,boundary:/\S/}));function Tr(){return Or}const Er=kr(new _o({regexp:/\s+$/g,decoration:Ct.mark({class:"cm-trailingSpace"}),boundary:/\S/}));function Rr(){return Er}const Br={HeightMap:vs,HeightOracle:us,MeasuredHeights:ps,QueryType:ms,ChangedRange:Ve,computeOrder:ee,moveVisually:oe,clearHeightChangeFlag:ds,getHeightChangeFlag:()=>fs}}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9359.34d1b961b733676193cb.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9359.34d1b961b733676193cb.js new file mode 100644 index 0000000000000000000000000000000000000000..e9ad8980f49bed59cdd0b1f825ee4481ea8883fe --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9359.34d1b961b733676193cb.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9359],{79359:(e,a,p)=>{p.d(a,{createArchitectureServices:()=>t.S});var t=p(77018);var c=p(74888)}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9400.90fd1d2212781c80b587.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9400.90fd1d2212781c80b587.js new file mode 100644 index 0000000000000000000000000000000000000000..8187835908f4977d31f93f894120da18c15fdfbe --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9400.90fd1d2212781c80b587.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9400],{42519:function(t,e,r){var o=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}();var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&o>=t.length)t=void 0;return{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.HTMLAdaptor=void 0;var i=r(21747);var a=function(t){o(e,t);function e(e){var r=t.call(this,e.document)||this;r.window=e;r.parser=new e.DOMParser;return r}e.prototype.parse=function(t,e){if(e===void 0){e="text/html"}return this.parser.parseFromString(t,e)};e.prototype.create=function(t,e){return e?this.document.createElementNS(e,t):this.document.createElement(t)};e.prototype.text=function(t){return this.document.createTextNode(t)};e.prototype.head=function(t){return t.head||t};e.prototype.body=function(t){return t.body||t};e.prototype.root=function(t){return t.documentElement||t};e.prototype.doctype=function(t){return t.doctype?""):""};e.prototype.tags=function(t,e,r){if(r===void 0){r=null}var o=r?t.getElementsByTagNameNS(r,e):t.getElementsByTagName(e);return Array.from(o)};e.prototype.getElements=function(t,e){var r,o;var i=[];try{for(var a=n(t),u=a.next();!u.done;u=a.next()){var l=u.value;if(typeof l==="string"){i=i.concat(Array.from(this.document.querySelectorAll(l)))}else if(Array.isArray(l)){i=i.concat(Array.from(l))}else if(l instanceof this.window.NodeList||l instanceof this.window.HTMLCollection){i=i.concat(Array.from(l))}else{i.push(l)}}}catch(p){r={error:p}}finally{try{if(u&&!u.done&&(o=a.return))o.call(a)}finally{if(r)throw r.error}}return i};e.prototype.contains=function(t,e){return t.contains(e)};e.prototype.parent=function(t){return t.parentNode};e.prototype.append=function(t,e){return t.appendChild(e)};e.prototype.insert=function(t,e){return this.parent(e).insertBefore(t,e)};e.prototype.remove=function(t){return this.parent(t).removeChild(t)};e.prototype.replace=function(t,e){return this.parent(e).replaceChild(t,e)};e.prototype.clone=function(t){return t.cloneNode(true)};e.prototype.split=function(t,e){return t.splitText(e)};e.prototype.next=function(t){return t.nextSibling};e.prototype.previous=function(t){return t.previousSibling};e.prototype.firstChild=function(t){return t.firstChild};e.prototype.lastChild=function(t){return t.lastChild};e.prototype.childNodes=function(t){return Array.from(t.childNodes)};e.prototype.childNode=function(t,e){return t.childNodes[e]};e.prototype.kind=function(t){var e=t.nodeType;return e===1||e===3||e===8?t.nodeName.toLowerCase():""};e.prototype.value=function(t){return t.nodeValue||""};e.prototype.textContent=function(t){return t.textContent};e.prototype.innerHTML=function(t){return t.innerHTML};e.prototype.outerHTML=function(t){return t.outerHTML};e.prototype.serializeXML=function(t){var e=new this.window.XMLSerializer;return e.serializeToString(t)};e.prototype.setAttribute=function(t,e,r,o){if(o===void 0){o=null}if(!o){return t.setAttribute(e,r)}e=o.replace(/.*\//,"")+":"+e.replace(/^.*:/,"");return t.setAttributeNS(o,e,r)};e.prototype.getAttribute=function(t,e){return t.getAttribute(e)};e.prototype.removeAttribute=function(t,e){return t.removeAttribute(e)};e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)};e.prototype.allAttributes=function(t){return Array.from(t.attributes).map((function(t){return{name:t.name,value:t.value}}))};e.prototype.addClass=function(t,e){if(t.classList){t.classList.add(e)}else{t.className=(t.className+" "+e).trim()}};e.prototype.removeClass=function(t,e){if(t.classList){t.classList.remove(e)}else{t.className=t.className.split(/ /).filter((function(t){return t!==e})).join(" ")}};e.prototype.hasClass=function(t,e){if(t.classList){return t.classList.contains(e)}return t.className.split(/ /).indexOf(e)>=0};e.prototype.setStyle=function(t,e,r){t.style[e]=r};e.prototype.getStyle=function(t,e){return t.style[e]};e.prototype.allStyles=function(t){return t.style.cssText};e.prototype.insertRules=function(t,e){var r,o;try{for(var i=n(e.reverse()),a=i.next();!a.done;a=i.next()){var u=a.value;try{t.sheet.insertRule(u,0)}catch(l){console.warn("MathJax: can't insert css rule '".concat(u,"': ").concat(l.message))}}}catch(p){r={error:p}}finally{try{if(a&&!a.done&&(o=i.return))o.call(i)}finally{if(r)throw r.error}}};e.prototype.fontSize=function(t){var e=this.window.getComputedStyle(t);return parseFloat(e.fontSize)};e.prototype.fontFamily=function(t){var e=this.window.getComputedStyle(t);return e.fontFamily||""};e.prototype.nodeSize=function(t,e,r){if(e===void 0){e=1}if(r===void 0){r=false}if(r&&t.getBBox){var o=t.getBBox(),n=o.width,i=o.height;return[n/e,i/e]}return[t.offsetWidth/e,t.offsetHeight/e]};e.prototype.nodeBBox=function(t){var e=t.getBoundingClientRect(),r=e.left,o=e.right,n=e.top,i=e.bottom;return{left:r,right:o,top:n,bottom:i}};return e}(i.AbstractDOMAdaptor);e.HTMLAdaptor=a},59400:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.browserAdaptor=void 0;var o=r(42519);function n(){return new o.HTMLAdaptor(window)}e.browserAdaptor=n},21747:function(t,e){var r=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&o>=t.length)t=void 0;return{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.AbstractDOMAdaptor=void 0;var o=function(){function t(t){if(t===void 0){t=null}this.document=t}t.prototype.node=function(t,e,o,n){var i,a;if(e===void 0){e={}}if(o===void 0){o=[]}var u=this.create(t,n);this.setAttributes(u,e);try{for(var l=r(o),p=l.next();!p.done;p=l.next()){var s=p.value;this.append(u,s)}}catch(c){i={error:c}}finally{try{if(p&&!p.done&&(a=l.return))a.call(l)}finally{if(i)throw i.error}}return u};t.prototype.setAttributes=function(t,e){var o,n,i,a,u,l;if(e.style&&typeof e.style!=="string"){try{for(var p=r(Object.keys(e.style)),s=p.next();!s.done;s=p.next()){var c=s.value;this.setStyle(t,c.replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()})),e.style[c])}}catch(v){o={error:v}}finally{try{if(s&&!s.done&&(n=p.return))n.call(p)}finally{if(o)throw o.error}}}if(e.properties){try{for(var f=r(Object.keys(e.properties)),y=f.next();!y.done;y=f.next()){var c=y.value;t[c]=e.properties[c]}}catch(m){i={error:m}}finally{try{if(y&&!y.done&&(a=f.return))a.call(f)}finally{if(i)throw i.error}}}try{for(var d=r(Object.keys(e)),h=d.next();!h.done;h=d.next()){var c=h.value;if((c!=="style"||typeof e.style==="string")&&c!=="properties"){this.setAttribute(t,c,e[c])}}}catch(b){u={error:b}}finally{try{if(h&&!h.done&&(l=d.return))l.call(d)}finally{if(u)throw u.error}}};t.prototype.replace=function(t,e){this.insert(t,e);this.remove(e);return e};t.prototype.childNode=function(t,e){return this.childNodes(t)[e]};t.prototype.allClasses=function(t){var e=this.getAttribute(t,"class");return!e?[]:e.replace(/ +/g," ").replace(/^ /,"").replace(/ $/,"").split(/ /)};return t}();e.AbstractDOMAdaptor=o}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9834b82ad26e2a37583d.woff2 b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9834b82ad26e2a37583d.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..2217164f0c05a385d7d0d83e030fdbae01e99304 Binary files /dev/null and b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9834b82ad26e2a37583d.woff2 differ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9892.6d289e7baed8c64d88e2.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9892.6d289e7baed8c64d88e2.js new file mode 100644 index 0000000000000000000000000000000000000000..a4f37cceddb3da50abf365d55550002e3281c5ed --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/9892.6d289e7baed8c64d88e2.js @@ -0,0 +1,2 @@ +/*! For license information please see 9892.6d289e7baed8c64d88e2.js.LICENSE.txt */ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9892],{58488:u=>{const e={mode:"lazy"};u.exports=e},9128:(u,e,r)=>{const d=r(58488);const a=r(62545);const t=r(34999);const n=new WeakMap;function f(u){return d.mode==="spec-compliant"?c(this,u):i(this,u)}function i(u,e){const r=u.lastIndex;const d=a.call(u,e);if(d===null)return null;let t;Object.defineProperty(d,"indices",{enumerable:true,configurable:true,get(){if(t===undefined){const{measurementRegExp:n,groupInfos:f}=o(u);n.lastIndex=r;const i=a.call(n,e);if(i===null)throw new TypeError;l(d,"indices",t=s(i,f))}return t},set(u){l(d,"indices",u)}});return d}function c(u,e){const{measurementRegExp:r,groupInfos:d}=o(u);r.lastIndex=u.lastIndex;const t=a.call(r,e);if(t===null)return null;u.lastIndex=r.lastIndex;const n=[];l(n,0,t[0]);for(const a of d){l(n,a.oldGroupNumber,t[a.newGroupNumber])}l(n,"index",t.index);l(n,"input",t.input);l(n,"groups",t.groups);l(n,"indices",s(t,d));return n}function o(u){let e=n.get(u);if(!e){e=T(t.parse(`/${u.source}/${u.flags}`));n.set(u,e)}const r=e.getExtra();const d=e.toRegExp();return{measurementRegExp:d,groupInfos:r}}function s(u,e){const r=u.index;const d=r+u[0].length;const a=!!u.groups;const t=[];const n=a?Object.create(null):undefined;l(t,0,[r,d]);for(const f of e){let e;if(u[f.newGroupNumber]!==undefined){let d=r;if(f.measurementGroups){for(const e of f.measurementGroups){d+=u[e].length}}const a=d+u[f.newGroupNumber].length;e=[d,a]}l(t,f.oldGroupNumber,e);if(n&&f.groupName!==undefined){l(n,f.groupName,e)}}l(t,"groups",n);return t}function l(u,e,r){const d=Object.getOwnPropertyDescriptor(u,e);if(d?d.configurable:Object.isExtensible(u)){const a={enumerable:d?d.enumerable:true,configurable:d?d.configurable:true,writable:true,value:r};Object.defineProperty(u,e,a)}}let b;let p=false;let h=new Set;let v=[];let g=false;let y=1;let m=[];let _=new Map;let C=new Map;const S={init(){p=false;h.clear();v.length=0;g=false;y=1;m.length=0;_.clear();C.clear();b=[]},RegExp(u){t.traverse(u.node,A);if(h.size>0){t.transform(u.node,k);t.transform(u.node,P);if(p){t.transform(u.node,w)}}return false}};const x={pre(u){v.push(g);g=u.node.type==="Group"&&u.node.capturing},post(u){if(g){h.add(u.node)}g=v.pop()||g}};const A={Alternative:x,Disjunction:x,Assertion:x,Group:x,Repetition:x,Backreference(u){p=true}};const k={Alternative(u){if(h.has(u.node)){let e=0;let r=[];const d=[];const a=[];for(let n=0;ne){const u={type:"Group",capturing:true,number:-1,expression:r.length>1?{type:"Alternative",expressions:r}:r.length===1?r[0]:null};a.push(u);d.push(u);e=n;r=[]}m.push(d);t.transform(f,k);m.pop();r.push(f);continue}r.push(f)}u.update({expressions:a.concat(r)})}return false},Group(u){if(!u.node.capturing)return;_.set(u.node,E())}};const P={Group(u){if(!b)throw new Error("Not initialized.");if(!u.node.capturing)return;const e=u.node.number;const r=y++;const d=_.get(u.node);if(e!==-1){b.push({oldGroupNumber:e,newGroupNumber:r,measurementGroups:d&&d.map((u=>u.number)),groupName:u.node.name});C.set(e,r)}u.update({number:r})}};const w={Backreference(u){const e=C.get(u.node.number);if(e){if(u.node.kind==="number"){u.update({number:e,reference:e})}else{u.update({number:e})}}}};function E(){const u=[];for(const e of m){for(const r of e){u.push(r)}}return u}function T(u){const e=t.transform(u,S);return new t.TransformResult(e.getAST(),b)}u.exports=f},9892:(u,e,r)=>{const d=r(9128);const a=r(62545);const t=r(93581);const n=r(74443);const f=r(58488);const i=t();function c(u,e){return i.call(u,e)}c.implementation=d;c.native=a;c.getPolyfill=t;c.shim=n;c.config=f;(function(u){})(c||(c={}));u.exports=c},62545:u=>{const e=RegExp.prototype.exec;u.exports=e},93581:(u,e,r)=>{const d=r(62545);const a=r(9128);function t(){const u=new RegExp("a");const e=d.call(u,"a");if(e.indices){return d}return a}u.exports=t},74443:(u,e,r)=>{const d=r(93581);function a(){const u=d();if(RegExp.prototype.exec!==u){RegExp.prototype.exec=u}}u.exports=a},9182:(u,e,r)=>{var d=r(43034);var a=r(2003);u.exports={transform:function u(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var t=r.length>0?r:Object.keys(d);var n=void 0;var f={};t.forEach((function(u){if(!d.hasOwnProperty(u)){throw new Error("Unknown compat-transform: "+u+". "+"Available transforms are: "+Object.keys(d).join(", "))}var r=d[u];n=a.transform(e,r);e=n.getAST();if(typeof r.getExtra==="function"){f[u]=r.getExtra()}}));n.setExtra(f);return n}}},51537:u=>{var e=function(){function u(u,e){for(var r=0;r{u.exports={_hasUFlag:false,shouldRun:function u(e){var u=e.flags.includes("s");if(!u){return false}e.flags=e.flags.replace("s","");this._hasUFlag=e.flags.includes("u");return true},Char:function u(e){var r=e.node;if(r.kind!=="meta"||r.value!=="."){return}var d="\\uFFFF";var a="￿";if(this._hasUFlag){d="\\u{10FFFF}";a="􏿿"}e.replace({type:"CharacterClass",expressions:[{type:"ClassRange",from:{type:"Char",value:"\\0",kind:"decimal",symbol:"\0"},to:{type:"Char",value:d,kind:"unicode",symbol:a}}]})}}},62514:u=>{u.exports={_groupNames:{},init:function u(){this._groupNames={}},getExtra:function u(){return this._groupNames},Group:function u(e){var r=e.node;if(!r.name){return}this._groupNames[r.name]=r.number;delete r.name;delete r.nameRaw},Backreference:function u(e){var r=e.node;if(r.kind!=="name"){return}r.kind="number";r.reference=r.number;delete r.referenceRaw}}},57559:u=>{u.exports={RegExp:function u(e){var r=e.node;if(r.flags.includes("x")){r.flags=r.flags.replace("x","")}}}},43034:(u,e,r)=>{u.exports={dotAll:r(45640),namedCapturingGroups:r(62514),xFlag:r(57559)}},20042:u=>{function e(u){return u?r[u.type](u):""}var r={RegExp:function u(r){return"/"+e(r.body)+"/"+r.flags},Alternative:function u(r){return(r.expressions||[]).map(e).join("")},Disjunction:function u(r){return e(r.left)+"|"+e(r.right)},Group:function u(r){var d=e(r.expression);if(r.capturing){if(r.name){return"(?<"+(r.nameRaw||r.name)+">"+d+")"}return"("+d+")"}return"(?:"+d+")"},Backreference:function u(e){switch(e.kind){case"number":return"\\"+e.reference;case"name":return"\\k<"+(e.referenceRaw||e.reference)+">";default:throw new TypeError("Unknown Backreference kind: "+e.kind)}},Assertion:function u(r){switch(r.kind){case"^":case"$":case"\\b":case"\\B":return r.kind;case"Lookahead":{var d=e(r.assertion);if(r.negative){return"(?!"+d+")"}return"(?="+d+")"}case"Lookbehind":{var a=e(r.assertion);if(r.negative){return"(?{var e=function(){function u(u,e){var r=[];var d=true;var a=false;var t=undefined;try{for(var n=u[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){r.push(f.value);if(e&&r.length===e)break}}catch(i){a=true;t=i}finally{try{if(!d&&n["return"])n["return"]()}finally{if(a)throw t}}return r}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return u(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();function r(u){return Array.isArray(u)?u:Array.from(u)}function d(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e0}))];var b=void 0;var p=void 0;b=l[l.length-1];p=l[l.length-2];var h=function u(){var e={};var n=true;var i=false;var o=undefined;try{for(var s=b[Symbol.iterator](),h;!(n=(h=s.next()).done);n=true){var v=h.value;var g={};var y=r(v),m=y[0],_=y.slice(1);g[m]=new Set([m]);var C=true;var S=false;var x=undefined;try{u:for(var A=_[Symbol.iterator](),k;!(C=(k=A.next()).done);C=true){var P=k.value;var w=true;var E=false;var T=undefined;try{for(var O=Object.keys(g)[Symbol.iterator](),R;!(w=(R=O.next()).done);w=true){var N=R.value;if(f(P,N,t,c)){g[N].add(P);g[P]=g[N];continue u}}}catch(I){E=true;T=I}finally{try{if(!w&&O.return){O.return()}}finally{if(E){throw T}}}g[P]=new Set([P])}}catch(I){S=true;x=I}finally{try{if(!C&&A.return){A.return()}}finally{if(S){throw x}}}Object.assign(e,g)}}catch(I){i=true;o=I}finally{try{if(!n&&s.return){s.return()}}finally{if(i){throw o}}}a=e;var L=new Set(Object.keys(e).map((function(u){return e[u]})));l.push([].concat(d(L)));b=l[l.length-1];p=l[l.length-2]};while(!n(b,p)){h()}var v=new Map;var g=1;b.forEach((function(u){return v.set(u,g++)}));var y={};var m=new Set;var _=function u(e,r){var d=true;var a=false;var t=undefined;try{for(var n=e[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){var i=f.value;if(o.has(i)){m.add(r)}}}catch(c){a=true;t=c}finally{try{if(!d&&n.return){n.return()}}finally{if(a){throw t}}}};var C=true;var S=false;var x=undefined;try{for(var A=v.entries()[Symbol.iterator](),k;!(C=(k=A.next()).done);C=true){var P=k.value;var w=e(P,2);var E=w[0];var T=w[1];y[T]={};var O=true;var R=false;var N=undefined;try{for(var L=c[Symbol.iterator](),I;!(O=(I=L.next()).done);O=true){var F=I.value;_(E,T);var D=void 0;var M=true;var G=false;var j=undefined;try{for(var B=E[Symbol.iterator](),U;!(M=(U=B.next()).done);M=true){var H=U.value;D=t[H][F];if(D){break}}}catch(q){G=true;j=q}finally{try{if(!M&&B.return){B.return()}}finally{if(G){throw j}}}if(D){y[T][F]=v.get(a[D])}}}catch(q){R=true;N=q}finally{try{if(!O&&L.return){L.return()}}finally{if(R){throw N}}}}}catch(q){S=true;x=q}finally{try{if(!C&&A.return){A.return()}}finally{if(S){throw x}}}u.setTransitionTable(y);u.setAcceptingStateNumbers(m);return u}function n(u,e){if(!e){return false}if(u.length!==e.length){return false}for(var r=0;r{var d=function(){function u(u,e){for(var r=0;r0){var l=n.shift();var b=l.join(",");o[b]={};var p=true;var h=false;var v=undefined;try{for(var g=f[Symbol.iterator](),y;!(p=(y=g.next()).done);p=true){var m=y.value;var _=[];s(l);var C=true;var S=false;var x=undefined;try{for(var A=l[Symbol.iterator](),k;!(C=(k=A.next()).done);C=true){var P=k.value;var w=r[P][m];if(!w){continue}var E=true;var T=false;var O=undefined;try{for(var R=w[Symbol.iterator](),N;!(E=(N=R.next()).done);E=true){var L=N.value;if(!r[L]){continue}_.push.apply(_,a(r[L][i]))}}catch(M){T=true;O=M}finally{try{if(!E&&R.return){R.return()}}finally{if(T){throw O}}}}}catch(M){S=true;x=M}finally{try{if(!C&&A.return){A.return()}}finally{if(S){throw x}}}var I=new Set(_);var F=[].concat(a(I));if(F.length>0){var D=F.join(",");o[b][m]=D;if(!o.hasOwnProperty(D)){n.unshift(F)}}}}catch(M){h=true;v=M}finally{try{if(!p&&g.return){g.return()}}finally{if(h){throw v}}}}return this._transitionTable=this._remapStateNumbers(o)}},{key:"_remapStateNumbers",value:function u(e){var r={};this._originalTransitionTable=e;var d={};Object.keys(e).forEach((function(u,e){r[u]=e+1}));for(var a in e){var t=e[a];var n={};for(var f in t){n[f]=r[t[f]]}d[r[a]]=n}this._originalAcceptingStateNumbers=this._acceptingStateNumbers;this._acceptingStateNumbers=new Set;var i=true;var c=false;var o=undefined;try{for(var s=this._originalAcceptingStateNumbers[Symbol.iterator](),l;!(i=(l=s.next()).done);i=true){var b=l.value;this._acceptingStateNumbers.add(r[b])}}catch(p){c=true;o=p}finally{try{if(!i&&s.return){s.return()}}finally{if(c){throw o}}}return d}},{key:"getOriginalTransitionTable",value:function u(){if(!this._originalTransitionTable){this.getTransitionTable()}return this._originalTransitionTable}},{key:"matches",value:function u(e){var r=1;var d=0;var a=this.getTransitionTable();while(e[d]){r=a[r][e[d++]];if(!r){return false}}if(!this.getAcceptingStateNumbers().has(r)){return false}return true}}]);return u}();u.exports=c},36734:(u,e,r)=>{var d=r(91909);var a=r(32569);var t=r(28398);var n=r(70860);u.exports={NFA:d,DFA:a,builders:n,toNFA:function u(e){return t.build(e)},toDFA:function u(e){return new a(this.toNFA(e))},test:function u(e,r){return this.toDFA(e).matches(r)}}},70860:(u,e,r)=>{var d=r(91909);var a=r(48617);var t=r(75821),n=t.EPSILON;function f(u){var e=new a;var r=new a({accepting:true});return new d(e.addTransition(u,r),r)}function i(){return f(n)}function c(u,e){u.out.accepting=false;e.out.accepting=true;u.out.addTransition(n,e.in);return new d(u.in,e.out)}function o(u){for(var e=arguments.length,r=Array(e>1?e-1:0),d=1;d1?e-1:0),d=1;d{function d(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e{var d=function(){function u(u,e){for(var r=0;r1&&arguments[1]!==undefined?arguments[1]:new Set;if(r.has(this)){return false}r.add(this);if(e.length===0){if(this.accepting){return true}var d=true;var a=false;var t=undefined;try{for(var n=this.getTransitionsOnSymbol(c)[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){var i=f.value;if(i.matches("",r)){return true}}}catch(k){a=true;t=k}finally{try{if(!d&&n.return){n.return()}}finally{if(a){throw t}}}return false}var o=e[0];var s=e.slice(1);var l=this.getTransitionsOnSymbol(o);var b=true;var p=false;var h=undefined;try{for(var v=l[Symbol.iterator](),g;!(b=(g=v.next()).done);b=true){var y=g.value;if(y.matches(s)){return true}}}catch(k){p=true;h=k}finally{try{if(!b&&v.return){v.return()}}finally{if(p){throw h}}}var m=true;var _=false;var C=undefined;try{for(var S=this.getTransitionsOnSymbol(c)[Symbol.iterator](),x;!(m=(x=S.next()).done);m=true){var A=x.value;if(A.matches(e,r)){return true}}}catch(k){_=true;C=k}finally{try{if(!m&&S.return){S.return()}}finally{if(_){throw C}}}return false}},{key:"getEpsilonClosure",value:function u(){var e=this;if(!this._epsilonClosure){(function(){var u=e.getTransitionsOnSymbol(c);var r=e._epsilonClosure=new Set;r.add(e);var d=true;var a=false;var t=undefined;try{for(var n=u[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){var i=f.value;if(!r.has(i)){r.add(i);var o=i.getEpsilonClosure();o.forEach((function(u){return r.add(u)}))}}}catch(s){a=true;t=s}finally{try{if(!d&&n.return){n.return()}}finally{if(a){throw t}}}})()}return this._epsilonClosure}}]);return e}(f);u.exports=o},91909:(u,e,r)=>{var d=function(){function u(u,e){var r=[];var d=true;var a=false;var t=undefined;try{for(var n=u[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){r.push(f.value);if(e&&r.length===e)break}}catch(i){a=true;t=i}finally{try{if(!d&&n["return"])n["return"]()}finally{if(a)throw t}}return r}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return u(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var a=function(){function u(u,e){for(var r=0;r{var e="ε";var r=e+"*";u.exports={EPSILON:e,EPSILON_CLOSURE:r}},81191:u=>{var e=function(){function u(u,e){for(var r=0;r0&&arguments[0]!==undefined?arguments[0]:{},d=e.accepting,a=d===undefined?false:d;r(this,u);this._transitions=new Map;this.accepting=a}e(u,[{key:"getTransitions",value:function u(){return this._transitions}},{key:"addTransition",value:function u(e,r){this.getTransitionsOnSymbol(e).add(r);return this}},{key:"getTransitionsOnSymbol",value:function u(e){var r=this._transitions.get(e);if(!r){r=new Set;this._transitions.set(e,r)}return r}}]);return u}();u.exports=d},63072:(u,e,r)=>{var d=r(1379);var a=r(23810);var t=r(2003);var n=r(53256);u.exports={optimize:function u(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},f=r.whitelist,i=f===undefined?[]:f,c=r.blacklist,o=c===undefined?[]:c;var s=i.length>0?i:Array.from(n.keys());var l=s.filter((function(u){return!o.includes(u)}));var b=e;if(e instanceof RegExp){e=""+e}if(typeof e==="string"){b=a.parse(e)}var p=new t.TransformResult(b);var h=void 0;do{h=p.toString();b=d(p.getAST());l.forEach((function(u){if(!n.has(u)){throw new Error("Unknown optimization-transform: "+u+". "+"Available transforms are: "+Array.from(n.keys()).join(", "))}var e=n.get(u);var r=t.transform(b,e);if(r.toString()!==p.toString()){if(r.toString().length<=p.toString().length){p=r}else{b=d(p.getAST())}}}))}while(p.toString()!==h);return p}}},98002:u=>{var e="A".codePointAt(0);var r="Z".codePointAt(0);u.exports={_AZClassRanges:null,_hasUFlag:false,init:function u(e){this._AZClassRanges=new Set;this._hasUFlag=e.flags.includes("u")},shouldRun:function u(e){return e.flags.includes("i")},Char:function u(e){var r=e.node,t=e.parent;if(isNaN(r.codePoint)){return}if(!this._hasUFlag&&r.codePoint>=4096){return}if(t.type==="ClassRange"){if(!this._AZClassRanges.has(t)&&!d(t)){return}this._AZClassRanges.add(t)}var n=r.symbol.toLowerCase();if(n!==r.symbol){r.value=a(n,r);r.symbol=n;r.codePoint=n.codePointAt(0)}}};function d(u){var d=u.from,a=u.to;return d.codePoint>=e&&d.codePoint<=r&&a.codePoint>=e&&a.codePoint<=r}function a(u,e){var r=u.codePointAt(0);if(e.kind==="decimal"){return"\\"+r}if(e.kind==="oct"){return"\\0"+r.toString(8)}if(e.kind==="hex"){return"\\x"+r.toString(16)}if(e.kind==="unicode"){if(e.isSurrogatePair){var d=t(r),a=d.lead,n=d.trail;return"\\u"+"0".repeat(4-a.length)+a+"\\u"+"0".repeat(4-n.length)+n}else if(e.value.includes("{")){return"\\u{"+r.toString(16)+"}"}else{var f=r.toString(16);return"\\u"+"0".repeat(4-f.length)+f}}return u}function t(u){var e=Math.floor((u-65536)/1024)+55296;var r=(u-65536)%1024+56320;return{lead:e.toString(16),trail:r.toString(16)}}},70436:u=>{u.exports={_hasIUFlags:false,init:function u(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function u(r){var a=r.node;var n=a.expressions;var f=[];n.forEach((function(u){if(d(u)){f.push(u.value)}}));n.sort(e);for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:null;return u.type==="Char"&&u.kind==="meta"&&(e?u.value===e:/^\\[dws]$/i.test(u.value))}function a(u){return u.type==="Char"&&u.kind==="control"}function t(u,e,r){for(var d=0;d=8192&&u.codePoint<=8202||u.codePoint===8232||u.codePoint===8233||u.codePoint===8239||u.codePoint===8287||u.codePoint===12288||u.codePoint===65279}function i(u){return u.codePoint>=48&&u.codePoint<=57}function c(u,e){return i(u)||u.codePoint>=65&&u.codePoint<=90||u.codePoint>=97&&u.codePoint<=122||u.value==="_"||e&&(u.codePoint===383||u.codePoint===8490)}function o(u,e){if(e&&e.type==="ClassRange"){if(l(u,e)){return true}else if(p(u)&&e.to.codePoint===u.codePoint-1){e.to=u;return true}else if(u.type==="ClassRange"&&u.from.codePoint<=e.to.codePoint+1&&u.to.codePoint>=e.from.codePoint-1){if(u.from.codePointe.to.codePoint){e.to=u.to}return true}}return false}function s(u,e){if(e&&e.type==="ClassRange"){if(p(u)&&e.from.codePoint===u.codePoint+1){e.from=u;return true}}return false}function l(u,e){if(u.type==="Char"&&isNaN(u.codePoint)){return false}if(u.type==="ClassRange"){return l(u.from,e)&&l(u.to,e)}return u.codePoint>=e.from.codePoint&&u.codePoint<=e.to.codePoint}function b(u,e,r){if(!p(u)){return 0}var d=0;while(e>0){var a=r[e];var t=r[e-1];if(p(t)&&t.codePoint===a.codePoint-1){d++;e--}else{break}}if(d>1){r[e]={type:"ClassRange",from:r[e],to:u};return d}return 0}function p(u){return u&&u.type==="Char"&&!isNaN(u.codePoint)&&(c(u,false)||u.kind==="unicode"||u.kind==="hex"||u.kind==="oct"||u.kind==="decimal")}},76953:u=>{u.exports={ClassRange:function u(e){var r=e.node;if(r.from.codePoint===r.to.codePoint){e.replace(r.from)}else if(r.from.codePoint===r.to.codePoint-1){e.getParent().insertChildAt(r.to,e.index+1);e.replace(r.from)}}}},322:u=>{u.exports={CharacterClass:function u(e){var r=e.node;var d={};for(var a=0;a{function e(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e2&&arguments[2]!==undefined?arguments[2]:"simple";return u.type==="Char"&&u.value===e&&u.kind===r}function i(u,e){return f(u,e,"meta")}function c(u){return u.type==="ClassRange"&&u.from.value==="a"&&u.to.value==="z"}function o(u){return u.type==="ClassRange"&&u.from.value==="A"&&u.to.value==="Z"}function s(u){return u.type==="Char"&&u.value==="_"&&u.kind==="simple"}function l(u,e){return u.type==="Char"&&u.kind==="unicode"&&u.codePoint===e}},11810:u=>{u.exports={CharacterClass:function u(n){var f=n.node;if(f.expressions.length!==1||!a(n)||!e(f.expressions[0])){return}var i=f.expressions[0],c=i.value,o=i.kind,s=i.escaped;if(f.negative){if(!r(c)){return}c=d(c)}n.replace({type:"Char",value:c,kind:o,escaped:s||t(c)})}};function e(u){return u.type==="Char"&&u.value!=="\\b"}function r(u){return/^\\[dwsDWS]$/.test(u)}function d(u){return/[dws]/.test(u)?u.toUpperCase():u.toLowerCase()}function a(u){var e=u.parent,r=u.index;if(e.type!=="Alternative"){return true}var d=e.expressions[r-1];if(d==null){return true}if(d.type==="Backreference"&&d.kind==="number"){return false}if(d.type==="Char"&&d.kind==="decimal"){return false}return true}function t(u){return/[*[()+?$./{}|]/.test(u)}},88111:u=>{var e="A".codePointAt(0);var r="Z".codePointAt(0);var d="a".codePointAt(0);var a="z".codePointAt(0);var t="0".codePointAt(0);var n="9".codePointAt(0);u.exports={Char:function u(e){var r=e.node,d=e.parent;if(isNaN(r.codePoint)||r.kind==="simple"){return}if(d.type==="ClassRange"){if(!f(d)){return}}if(!i(r.codePoint)){return}var a=String.fromCodePoint(r.codePoint);var t={type:"Char",kind:"simple",value:a,symbol:a,codePoint:r.codePoint};if(c(a,d.type)){t.escaped=true}e.replace(t)}};function f(u){var f=u.from,i=u.to;return f.codePoint>=t&&f.codePoint<=n&&i.codePoint>=t&&i.codePoint<=n||f.codePoint>=e&&f.codePoint<=r&&i.codePoint>=e&&i.codePoint<=r||f.codePoint>=d&&f.codePoint<=a&&i.codePoint>=d&&i.codePoint<=a}function i(u){return u>=32&&u<=126}function c(u,e){if(e==="ClassRange"||e==="CharacterClass"){return/[\]\\^-]/.test(u)}return/[*[()+?^$./\\|{}]/.test(u)}},6632:u=>{u.exports={_hasXFlag:false,init:function u(e){this._hasXFlag=e.flags.includes("x")},Char:function u(r){var d=r.node;if(!d.escaped){return}if(e(r,this._hasXFlag)){delete d.escaped}}};function e(u,e){var a=u.node.value,t=u.index,n=u.parent;if(n.type!=="CharacterClass"&&n.type!=="ClassRange"){return!d(a,t,n,e)}return!r(a,t,n)}function r(u,e,r){if(u==="^"){return e===0&&!r.negative}if(u==="-"){return true}return/[\]\\]/.test(u)}function d(u,e,r,d){if(u==="{"){return n(e,r)}if(u==="}"){return f(e,r)}if(d&&/[ #]/.test(u)){return true}return/[*[()+?^$./\\|]/.test(u)}function a(u,e,r){var d=u;var a=(r?d>=0:d=0:d=0&&e.expressions[d];if(r&&t(n,"{")){return true}if(t(n,",")){r=a(d-1,e,true);d=d-r-1;n=d{u.exports={shouldRun:function u(e){return e.flags.includes("u")},Char:function u(e){var r=e.node;if(r.kind!=="unicode"||!r.isSurrogatePair||isNaN(r.codePoint)){return}r.value="\\u{"+r.codePoint.toString(16)+"}";delete r.isSurrogatePair}}},97648:(u,e,r)=>{function d(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e=r.expressions.length){break}a=e.getChild(d);d=Math.max(1,i(e,a,d));if(d>=r.expressions.length){break}a=e.getChild(d);d=Math.max(1,c(e,a,d));d++}}};function f(u,e,r){var t=u.node;var n=Math.ceil(r/2);var f=0;while(f{var d=r(41059);var a=r(33166),t=a.disjunctionToList,n=a.listToDisjunction;u.exports={Disjunction:function u(e){var r=e.node;var a={};var f=t(r).filter((function(u){var e=u?d.getForNode(u).jsonEncode():"null";if(a.hasOwnProperty(e)){return false}a[e]=u;return true}));e.replace(n(f))}}},5808:u=>{u.exports={Disjunction:function u(d){var a=d.node,t=d.parent;if(!e[t.type]){return}var n=new Map;if(!r(a,n)||!n.size){return}var f={type:"CharacterClass",expressions:Array.from(n.keys()).sort().map((function(u){return n.get(u)}))};e[t.type](d.getParent(),f)}};var e={RegExp:function u(e,r){var d=e.node;d.body=r},Group:function u(e,r){var d=e.node;if(d.capturing){d.expression=r}else{e.replace(r)}}};function r(u,e){if(!u){return false}var d=u.type;if(d==="Disjunction"){var a=u.left,t=u.right;return r(a,e)&&r(t,e)}else if(d==="Char"){var n=u.value;e.set(n,u);return true}else if(d==="CharacterClass"&&!u.negative){return u.expressions.every((function(u){return r(u,e)}))}return false}},53256:(u,e,r)=>{u.exports=new Map([["charSurrogatePairToSingleUnicode",r(8988)],["charCodeToSimpleChar",r(88111)],["charCaseInsensitiveLowerCaseTransform",r(98002)],["charClassRemoveDuplicates",r(322)],["quantifiersMerge",r(31837)],["quantifierRangeToSymbol",r(88190)],["charClassClassrangesToChars",r(76953)],["charClassToMeta",r(4090)],["charClassToSingleChar",r(11810)],["charEscapeUnescape",r(6632)],["charClassClassrangesMerge",r(70436)],["disjunctionRemoveDuplicates",r(61013)],["groupSingleCharsToCharClass",r(5808)],["removeEmptyGroup",r(72097)],["ungroup",r(95435)],["combineRepeatingPatterns",r(97648)]])},88190:u=>{u.exports={Quantifier:function u(a){var t=a.node;if(t.kind!=="Range"){return}e(a);r(a);d(a)}};function e(u){var e=u.node;if(e.from!==0||e.to){return}e.kind="*";delete e.from}function r(u){var e=u.node;if(e.from!==1||e.to){return}e.kind="+";delete e.from}function d(u){var e=u.node;if(e.from!==1||e.to!==1){return}u.parentPath.replace(u.parentPath.node.expression)}},31837:(u,e,r)=>{var d=r(33166),a=d.increaseQuantifierByOne;u.exports={Repetition:function u(e){var r=e.node,d=e.parent;if(d.type!=="Alternative"||!e.index){return}var f=e.getPreviousSibling();if(!f){return}if(f.node.type==="Repetition"){if(!f.getChild().hasEqualSource(e.getChild())){return}var i=n(f.node.quantifier),c=i.from,o=i.to;var s=n(r.quantifier),l=s.from,b=s.to;if(f.node.quantifier.greedy!==r.quantifier.greedy&&!t(f.node.quantifier)&&!t(r.quantifier)){return}r.quantifier.kind="Range";r.quantifier.from=c+l;if(o&&b){r.quantifier.to=o+b}else{delete r.quantifier.to}if(t(f.node.quantifier)||t(r.quantifier)){r.quantifier.greedy=true}f.remove()}else{if(!f.hasEqualSource(e.getChild())){return}a(r.quantifier);f.remove()}}};function t(u){return u.greedy&&(u.kind==="+"||u.kind==="*"||u.kind==="Range"&&!u.to)}function n(u){var e=void 0,r=void 0;if(u.kind==="*"){e=0}else if(u.kind==="+"){e=1}else if(u.kind==="?"){e=0;r=1}else{e=u.from;if(u.to){r=u.to}}return{from:e,to:r}}},72097:u=>{u.exports={Group:function u(e){var r=e.node,d=e.parent;var a=e.getChild();if(r.capturing||a){return}if(d.type==="Repetition"){e.getParent().replace(r)}else if(d.type!=="RegExp"){e.remove()}}}},95435:u=>{function e(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e{var d=function(){function u(u,e){var r=[];var d=true;var a=false;var t=undefined;try{for(var n=u[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){r.push(f.value);if(e&&r.length===e)break}}catch(i){a=true;t=i}finally{try{if(!d&&n["return"])n["return"]()}finally{if(a)throw t}}return r}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return u(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();function a(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e/,function(){var u=t.slice(3,-1);F(u,this.getCurrentState());return"NAMED_GROUP_REF"}],[/^\\b/,function(){return"ESC_b"}],[/^\\B/,function(){return"ESC_B"}],[/^\\c[a-zA-Z]/,function(){return"CTRL_CH"}],[/^\\0\d{1,2}/,function(){return"OCT_CODE"}],[/^\\0/,function(){return"DEC_CODE"}],[/^\\\d{1,3}/,function(){return"DEC_CODE"}],[/^\\u[dD][89abAB][0-9a-fA-F]{2}\\u[dD][c-fC-F][0-9a-fA-F]{2}/,function(){return"U_CODE_SURROGATE"}],[/^\\u\{[0-9a-fA-F]{1,}\}/,function(){return"U_CODE"}],[/^\\u[0-9a-fA-F]{4}/,function(){return"U_CODE"}],[/^\\[pP]\{\w+(?:=\w+)?\}/,function(){return"U_PROP_VALUE_EXP"}],[/^\\x[0-9a-fA-F]{2}/,function(){return"HEX_CODE"}],[/^\\[tnrdDsSwWvf]/,function(){return"META_CHAR"}],[/^\\\//,function(){return"ESC_CHAR"}],[/^\\[ #]/,function(){return"ESC_CHAR"}],[/^\\[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/,function(){return"ESC_CHAR"}],[/^\\[^*?+\[()\\|]/,function(){var u=this.getCurrentState();if(u==="u_class"&&t==="\\-"){return"ESC_CHAR"}else if(u==="u"||u==="xu"||u==="u_class"){throw new SyntaxError("invalid Unicode escape "+t)}return"ESC_CHAR"}],[/^\(/,function(){return"CHAR"}],[/^\)/,function(){return"CHAR"}],[/^\(\?=/,function(){return"POS_LA_ASSERT"}],[/^\(\?!/,function(){return"NEG_LA_ASSERT"}],[/^\(\?<=/,function(){return"POS_LB_ASSERT"}],[/^\(\?/,function(){t=t.slice(3,-1);F(t,this.getCurrentState());return"NAMED_CAPTURE_GROUP"}],[/^\(/,function(){return"L_PAREN"}],[/^\)/,function(){return"R_PAREN"}],[/^[*?+[^$]/,function(){return"CHAR"}],[/^\\\]/,function(){return"ESC_CHAR"}],[/^\]/,function(){this.popState();return"R_BRACKET"}],[/^\^/,function(){return"BOS"}],[/^\$/,function(){return"EOS"}],[/^\*/,function(){return"STAR"}],[/^\?/,function(){return"Q_MARK"}],[/^\+/,function(){return"PLUS"}],[/^\|/,function(){return"BAR"}],[/^\./,function(){return"ANY"}],[/^\//,function(){return"SLASH"}],[/^[^*?+\[()\\|]/,function(){return"CHAR"}],[/^\[\^/,function(){var u=this.getCurrentState();this.pushState(u==="u"||u==="xu"?"u_class":"class");return"NEG_CLASS"}],[/^\[/,function(){var u=this.getCurrentState();this.pushState(u==="u"||u==="xu"?"u_class":"class");return"L_BRACKET"}]];var y={INITIAL:[8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u:[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],xu:[0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],x:[0,1,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u_class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]};var m={type:s,value:""};v={initString:function u(e){this._string=e;this._cursor=0;this._states=["INITIAL"];this._tokensQueue=[];this._currentLine=1;this._currentColumn=0;this._currentLineBeginOffset=0;this._tokenStartOffset=0;this._tokenEndOffset=0;this._tokenStartLine=1;this._tokenEndLine=1;this._tokenStartColumn=0;this._tokenEndColumn=0;return this},getStates:function u(){return this._states},getCurrentState:function u(){return this._states[this._states.length-1]},pushState:function u(e){this._states.push(e)},begin:function u(e){this.pushState(e)},popState:function u(){if(this._states.length>1){return this._states.pop()}return this._states[0]},getNextToken:function u(){if(this._tokensQueue.length>0){return this.onToken(this._toToken(this._tokensQueue.shift()))}if(!this.hasMoreTokens()){return this.onToken(m)}var e=this._string.slice(this._cursor);var r=y[this.getCurrentState()];for(var d=0;d0){var l;(l=this._tokensQueue).unshift.apply(l,a(s))}}return this.onToken(this._toToken(o,t))}}if(this.isEOF()){this._cursor++;return m}this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function u(e,r,d){var a=this._string.split("\n")[r-1];var t="";if(a){var n=" ".repeat(d);t="\n\n"+a+"\n"+n+"^\n"}throw new SyntaxError(t+'Unexpected token: "'+e+'" '+("at "+r+":"+d+"."))},getCursor:function u(){return this._cursor},getCurrentLine:function u(){return this._currentLine},getCurrentColumn:function u(){return this._currentColumn},_captureLocation:function u(e){var r=/\n/g;this._tokenStartOffset=this._cursor;this._tokenStartLine=this._currentLine;this._tokenStartColumn=this._tokenStartOffset-this._currentLineBeginOffset;var d=void 0;while((d=r.exec(e))!==null){this._currentLine++;this._currentLineBeginOffset=this._tokenStartOffset+d.index+1}this._tokenEndOffset=this._cursor+e.length;this._tokenEndLine=this._currentLine;this._tokenEndColumn=this._currentColumn=this._tokenEndOffset-this._currentLineBeginOffset},_toToken:function u(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";return{type:e,value:r,startOffset:this._tokenStartOffset,endOffset:this._tokenEndOffset,startLine:this._tokenStartLine,endLine:this._tokenEndLine,startColumn:this._tokenStartColumn,endColumn:this._tokenEndColumn}},isEOF:function u(){return this._cursor===this._string.length},hasMoreTokens:function u(){return this._cursor<=this._string.length},_match:function u(e,r){var d=e.match(r);if(d){this._captureLocation(d[0]);this._cursor+=d[0].length;return d[0]}return null},onToken:function u(e){return e}};f.lexer=v;f.tokenizer=v;f.options={captureLocations:true};var _={setOptions:function u(e){f.options=e;return this},getOptions:function u(){return f.options},parse:function u(e,r){if(!v){throw new Error("Tokenizer instance wasn't specified.")}v.initString(e);var d=f.options;if(r){f.options=Object.assign({},f.options,r)}_.onParseBegin(e,v,f.options);h.length=0;h.push(0);var o=v.getNextToken();var s=null;do{if(!o){f.options=d;H()}var g=h[h.length-1];var y=b[o.type];if(!p[g].hasOwnProperty(y)){f.options=d;U(o)}var m=p[g][y];if(m[0]==="s"){var C=null;if(f.options.captureLocations){C={startOffset:o.startOffset,endOffset:o.endOffset,startLine:o.startLine,endLine:o.endLine,startColumn:o.startColumn,endColumn:o.endColumn}}s=this.onShift(o);h.push({symbol:b[s.type],semanticValue:s.value,loc:C},Number(m.slice(1)));o=v.getNextToken()}else if(m[0]==="r"){var S=m.slice(1);var x=l[S];var A=typeof x[2]==="function";var k=A?[]:null;var P=A&&f.options.captureLocations?[]:null;if(x[1]!==0){var w=x[1];while(w-- >0){h.pop();var E=h.pop();if(A){k.unshift(E.semanticValue);if(P){P.unshift(E.loc)}}}}var T={symbol:x[0]};if(A){t=s?s.value:null;n=s?s.value.length:null;var O=P!==null?k.concat(P):k;x[2].apply(x,a(O));T.semanticValue=i;if(P){T.loc=c}}var R=h[h.length-1];var N=x[0];h.push(T,p[R][N])}else if(m==="acc"){h.pop();var L=h.pop();if(h.length!==1||h[0]!==0||v.hasMoreTokens()){f.options=d;U(o)}if(L.hasOwnProperty("semanticValue")){f.options=d;_.onParseEnd(L.semanticValue);return L.semanticValue}_.onParseEnd();f.options=d;return true}}while(v.hasMoreTokens()||h.length>1)},setTokenizer:function u(e){v=e;return _},getTokenizer:function u(){return v},onParseBegin:function u(e,r,d){},onParseEnd:function u(e){},onShift:function u(e){return e}};var C=0;var S={};var x="";_.onParseBegin=function(u,e){x=u;C=0;S={};var r=u.lastIndexOf("/");var d=u.slice(r);if(d.includes("x")&&d.includes("u")){e.pushState("xu")}else{if(d.includes("x")){e.pushState("x")}if(d.includes("u")){e.pushState("u")}}};_.onShift=function(u){if(u.type==="L_PAREN"||u.type==="NAMED_CAPTURE_GROUP"){u.value=new String(u.value);u.value.groupNumber=++C}return u};function A(u){var e=u.match(/\d+/g).map(Number);if(Number.isFinite(e[1])&&e[1]e.codePoint){throw new SyntaxError("Range "+u.value+"-"+e.value+" out of order in character class")}}var P=r(37047);function w(u,e){var r=u[1]==="P";var d=u.indexOf("=");var a=u.slice(3,d!==-1?d:-1);var t=void 0;var n=d===-1&&P.isGeneralCategoryValue(a);var f=d===-1&&P.isBinaryPropertyName(a);if(n){t=a;a="General_Category"}else if(f){t=a}else{if(!P.isValidName(a)){throw new SyntaxError("Invalid unicode property name: "+a+".")}t=u.slice(d+1,-1);if(!P.isValidValue(a,t)){throw new SyntaxError("Invalid "+a+" unicode property value: "+t+".")}}return j({type:"UnicodeProperty",name:a,value:t,negative:r,shorthand:n,binary:f,canonicalName:P.getCanonicalName(a)||a,canonicalValue:P.getCanonicalValue(t)||t},e)}function E(u,e,r){var a=void 0;var t=void 0;switch(e){case"decimal":{t=Number(u.slice(1));a=String.fromCodePoint(t);break}case"oct":{t=parseInt(u.slice(1),8);a=String.fromCodePoint(t);break}case"hex":case"unicode":{if(u.lastIndexOf("\\u")>0){var n=u.split("\\u").slice(1),f=d(n,2),i=f[0],c=f[1];i=parseInt(i,16);c=parseInt(c,16);t=(i-55296)*1024+(c-56320)+65536;a=String.fromCodePoint(t)}else{var o=u.slice(2).replace("{","");t=parseInt(o,16);if(t>1114111){throw new SyntaxError("Bad character escape sequence: "+u)}a=String.fromCodePoint(t)}break}case"meta":{switch(u){case"\\t":a="\t";t=a.codePointAt(0);break;case"\\n":a="\n";t=a.codePointAt(0);break;case"\\r":a="\r";t=a.codePointAt(0);break;case"\\v":a="\v";t=a.codePointAt(0);break;case"\\f":a="\f";t=a.codePointAt(0);break;case"\\b":a="\b";t=a.codePointAt(0);case"\\0":a="\0";t=0;case".":a=".";t=NaN;break;default:t=NaN}break}case"simple":{a=u;t=a.codePointAt(0);break}}return j({type:"Char",value:u,kind:e,symbol:a,codePoint:t},r)}var T="gimsuxy";function O(u){var e=new Set;var r=true;var d=false;var a=undefined;try{for(var t=u[Symbol.iterator](),n;!(r=(n=t.next()).done);r=true){var f=n.value;if(e.has(f)||!T.includes(f)){throw new SyntaxError("Invalid flags: "+u)}e.add(f)}}catch(i){d=true;a=i}finally{try{if(!r&&t.return){t.return()}}finally{if(d){throw a}}}return u.split("").sort().join("")}function R(u,e){var r=Number(u.slice(1));if(r>0&&r<=C){return j({type:"Backreference",kind:"number",number:r,reference:r},e)}return E(u,"decimal",e)}var N=/^\\u[0-9a-fA-F]{4}/;var L=/^\\u\{[0-9a-fA-F]{1,}\}/;var I=/\\u\{[0-9a-fA-F]{1,}\}/;function F(u,e){var r=I.test(u);var d=e==="u"||e==="xu"||e==="u_class";if(r&&!d){throw new SyntaxError('invalid group Unicode name "'+u+'", use `u` flag.')}return u}var D=/\\u(?:([dD][89aAbB][0-9a-fA-F]{2})\\u([dD][c-fC-F][0-9a-fA-F]{2})|([dD][89aAbB][0-9a-fA-F]{2})|([dD][c-fC-F][0-9a-fA-F]{2})|([0-9a-ce-fA-CE-F][0-9a-fA-F]{3}|[dD][0-7][0-9a-fA-F]{2})|\{(0*(?:[0-9a-fA-F]{1,5}|10[0-9a-fA-F]{4}))\})/;function M(u){return u.replace(new RegExp(D,"g"),(function(u,e,r,d,a,t,n){if(e){return String.fromCodePoint(parseInt(e,16),parseInt(r,16))}if(d){return String.fromCodePoint(parseInt(d,16))}if(a){return String.fromCodePoint(parseInt(a,16))}if(t){return String.fromCodePoint(parseInt(t,16))}if(n){return String.fromCodePoint(parseInt(n,16))}return u}))}function G(u,e){var r=u.slice(3,-1);var d=M(r);if(S.hasOwnProperty(d)){return j({type:"Backreference",kind:"name",number:S[d],reference:d,referenceRaw:r},e)}var a=null;var t=null;var n=null;var f=null;if(e){a=e.startOffset;t=e.startLine;n=e.endLine;f=e.startColumn}var i=/^[\w$<>]/;var c=void 0;var o=[E(u.slice(1,2),"simple",a?{startLine:t,endLine:n,startColumn:f,startOffset:a,endOffset:a+=2,endColumn:f+=2}:null)];o[0].escaped=true;u=u.slice(2);while(u.length>0){var s=null;if((s=u.match(N))||(s=u.match(L))){if(a){c={startLine:t,endLine:n,startColumn:f,startOffset:a,endOffset:a+=s[0].length,endColumn:f+=s[0].length}}o.push(E(s[0],"unicode",c));u=u.slice(s[0].length)}else if(s=u.match(i)){if(a){c={startLine:t,endLine:n,startColumn:f,startOffset:a,endOffset:++a,endColumn:++f}}o.push(E(s[0],"simple",c));u=u.slice(1)}}return o}function j(u,e){if(f.options.captureLocations){u.loc={source:x.slice(e.startOffset,e.endOffset),start:{line:e.startLine,column:e.startColumn,offset:e.startOffset},end:{line:e.endLine,column:e.endColumn,offset:e.endOffset}}}return u}function B(u,e){if(!f.options.captureLocations){return null}return{startOffset:u.startOffset,endOffset:e.endOffset,startLine:u.startLine,endLine:e.endLine,startColumn:u.startColumn,endColumn:e.endColumn}}function U(u){if(u.type===s){H()}v.throwUnexpectedToken(u.value,u.startLine,u.startColumn)}function H(){q("Unexpected end of input.")}function q(u){throw new SyntaxError(u)}u.exports=_},23810:(u,e,r)=>{var d=r(97e3);var a=d.parse.bind(d);d.parse=function(u,e){return a(""+u,e)};d.setOptions({captureLocations:false});u.exports=d},37047:u=>{var e={General_Category:"gc",Script:"sc",Script_Extensions:"scx"};var r=c(e);var d={ASCII:"ASCII",ASCII_Hex_Digit:"AHex",Alphabetic:"Alpha",Any:"Any",Assigned:"Assigned",Bidi_Control:"Bidi_C",Bidi_Mirrored:"Bidi_M",Case_Ignorable:"CI",Cased:"Cased",Changes_When_Casefolded:"CWCF",Changes_When_Casemapped:"CWCM",Changes_When_Lowercased:"CWL",Changes_When_NFKC_Casefolded:"CWKCF",Changes_When_Titlecased:"CWT",Changes_When_Uppercased:"CWU",Dash:"Dash",Default_Ignorable_Code_Point:"DI",Deprecated:"Dep",Diacritic:"Dia",Emoji:"Emoji",Emoji_Component:"Emoji_Component",Emoji_Modifier:"Emoji_Modifier",Emoji_Modifier_Base:"Emoji_Modifier_Base",Emoji_Presentation:"Emoji_Presentation",Extended_Pictographic:"Extended_Pictographic",Extender:"Ext",Grapheme_Base:"Gr_Base",Grapheme_Extend:"Gr_Ext",Hex_Digit:"Hex",IDS_Binary_Operator:"IDSB",IDS_Trinary_Operator:"IDST",ID_Continue:"IDC",ID_Start:"IDS",Ideographic:"Ideo",Join_Control:"Join_C",Logical_Order_Exception:"LOE",Lowercase:"Lower",Math:"Math",Noncharacter_Code_Point:"NChar",Pattern_Syntax:"Pat_Syn",Pattern_White_Space:"Pat_WS",Quotation_Mark:"QMark",Radical:"Radical",Regional_Indicator:"RI",Sentence_Terminal:"STerm",Soft_Dotted:"SD",Terminal_Punctuation:"Term",Unified_Ideograph:"UIdeo",Uppercase:"Upper",Variation_Selector:"VS",White_Space:"space",XID_Continue:"XIDC",XID_Start:"XIDS"};var a=c(d);var t={Cased_Letter:"LC",Close_Punctuation:"Pe",Connector_Punctuation:"Pc",Control:["Cc","cntrl"],Currency_Symbol:"Sc",Dash_Punctuation:"Pd",Decimal_Number:["Nd","digit"],Enclosing_Mark:"Me",Final_Punctuation:"Pf",Format:"Cf",Initial_Punctuation:"Pi",Letter:"L",Letter_Number:"Nl",Line_Separator:"Zl",Lowercase_Letter:"Ll",Mark:["M","Combining_Mark"],Math_Symbol:"Sm",Modifier_Letter:"Lm",Modifier_Symbol:"Sk",Nonspacing_Mark:"Mn",Number:"N",Open_Punctuation:"Ps",Other:"C",Other_Letter:"Lo",Other_Number:"No",Other_Punctuation:"Po",Other_Symbol:"So",Paragraph_Separator:"Zp",Private_Use:"Co",Punctuation:["P","punct"],Separator:"Z",Space_Separator:"Zs",Spacing_Mark:"Mc",Surrogate:"Cs",Symbol:"S",Titlecase_Letter:"Lt",Unassigned:"Cn",Uppercase_Letter:"Lu"};var n=c(t);var f={Adlam:"Adlm",Ahom:"Ahom",Anatolian_Hieroglyphs:"Hluw",Arabic:"Arab",Armenian:"Armn",Avestan:"Avst",Balinese:"Bali",Bamum:"Bamu",Bassa_Vah:"Bass",Batak:"Batk",Bengali:"Beng",Bhaiksuki:"Bhks",Bopomofo:"Bopo",Brahmi:"Brah",Braille:"Brai",Buginese:"Bugi",Buhid:"Buhd",Canadian_Aboriginal:"Cans",Carian:"Cari",Caucasian_Albanian:"Aghb",Chakma:"Cakm",Cham:"Cham",Cherokee:"Cher",Common:"Zyyy",Coptic:["Copt","Qaac"],Cuneiform:"Xsux",Cypriot:"Cprt",Cyrillic:"Cyrl",Deseret:"Dsrt",Devanagari:"Deva",Dogra:"Dogr",Duployan:"Dupl",Egyptian_Hieroglyphs:"Egyp",Elbasan:"Elba",Ethiopic:"Ethi",Georgian:"Geor",Glagolitic:"Glag",Gothic:"Goth",Grantha:"Gran",Greek:"Grek",Gujarati:"Gujr",Gunjala_Gondi:"Gong",Gurmukhi:"Guru",Han:"Hani",Hangul:"Hang",Hanifi_Rohingya:"Rohg",Hanunoo:"Hano",Hatran:"Hatr",Hebrew:"Hebr",Hiragana:"Hira",Imperial_Aramaic:"Armi",Inherited:["Zinh","Qaai"],Inscriptional_Pahlavi:"Phli",Inscriptional_Parthian:"Prti",Javanese:"Java",Kaithi:"Kthi",Kannada:"Knda",Katakana:"Kana",Kayah_Li:"Kali",Kharoshthi:"Khar",Khmer:"Khmr",Khojki:"Khoj",Khudawadi:"Sind",Lao:"Laoo",Latin:"Latn",Lepcha:"Lepc",Limbu:"Limb",Linear_A:"Lina",Linear_B:"Linb",Lisu:"Lisu",Lycian:"Lyci",Lydian:"Lydi",Mahajani:"Mahj",Makasar:"Maka",Malayalam:"Mlym",Mandaic:"Mand",Manichaean:"Mani",Marchen:"Marc",Medefaidrin:"Medf",Masaram_Gondi:"Gonm",Meetei_Mayek:"Mtei",Mende_Kikakui:"Mend",Meroitic_Cursive:"Merc",Meroitic_Hieroglyphs:"Mero",Miao:"Plrd",Modi:"Modi",Mongolian:"Mong",Mro:"Mroo",Multani:"Mult",Myanmar:"Mymr",Nabataean:"Nbat",New_Tai_Lue:"Talu",Newa:"Newa",Nko:"Nkoo",Nushu:"Nshu",Ogham:"Ogam",Ol_Chiki:"Olck",Old_Hungarian:"Hung",Old_Italic:"Ital",Old_North_Arabian:"Narb",Old_Permic:"Perm",Old_Persian:"Xpeo",Old_Sogdian:"Sogo",Old_South_Arabian:"Sarb",Old_Turkic:"Orkh",Oriya:"Orya",Osage:"Osge",Osmanya:"Osma",Pahawh_Hmong:"Hmng",Palmyrene:"Palm",Pau_Cin_Hau:"Pauc",Phags_Pa:"Phag",Phoenician:"Phnx",Psalter_Pahlavi:"Phlp",Rejang:"Rjng",Runic:"Runr",Samaritan:"Samr",Saurashtra:"Saur",Sharada:"Shrd",Shavian:"Shaw",Siddham:"Sidd",SignWriting:"Sgnw",Sinhala:"Sinh",Sogdian:"Sogd",Sora_Sompeng:"Sora",Soyombo:"Soyo",Sundanese:"Sund",Syloti_Nagri:"Sylo",Syriac:"Syrc",Tagalog:"Tglg",Tagbanwa:"Tagb",Tai_Le:"Tale",Tai_Tham:"Lana",Tai_Viet:"Tavt",Takri:"Takr",Tamil:"Taml",Tangut:"Tang",Telugu:"Telu",Thaana:"Thaa",Thai:"Thai",Tibetan:"Tibt",Tifinagh:"Tfng",Tirhuta:"Tirh",Ugaritic:"Ugar",Vai:"Vaii",Warang_Citi:"Wara",Yi:"Yiii",Zanabazar_Square:"Zanb"};var i=c(f);function c(u){var e={};for(var r in u){if(!u.hasOwnProperty(r)){continue}var d=u[r];if(Array.isArray(d)){for(var a=0;a{var d=r(9182);var a=r(20042);var t=r(63072);var n=r(23810);var f=r(2003);var i=r(29171);var c=r(36734);var o=r(51537),s=o.RegExpTree;var l={parser:n,fa:c,TransformResult:f.TransformResult,parse:function u(e,r){return n.parse(""+e,r)},traverse:function u(e,r,d){return i.traverse(e,r,d)},transform:function u(e,r){return f.transform(e,r)},generate:function u(e){return a.generate(e)},toRegExp:function u(e){var r=this.compatTranspile(e);return new RegExp(r.getSource(),r.getFlags())},optimize:function u(e,r){var d=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},a=d.blacklist;return t.optimize(e,{whitelist:r,blacklist:a})},compatTranspile:function u(e,r){return d.transform(e,r)},exec:function u(e,r){if(typeof e==="string"){var d=this.compatTranspile(e);var a=d.getExtra();if(a.namedCapturingGroups){e=new s(d.toRegExp(),{flags:d.getFlags(),source:d.getSource(),groups:a.namedCapturingGroups})}else{e=d.toRegExp()}}return e.exec(r)}};u.exports=l},2003:(u,e,r)=>{var d=function(){function u(u,e){for(var r=0;r1&&arguments[1]!==undefined?arguments[1]:null;a(this,u);this._ast=e;this._source=null;this._string=null;this._regexp=null;this._extra=r}d(u,[{key:"getAST",value:function u(){return this._ast}},{key:"setExtra",value:function u(e){this._extra=e}},{key:"getExtra",value:function u(){return this._extra}},{key:"toRegExp",value:function u(){if(!this._regexp){this._regexp=new RegExp(this.getSource(),this._ast.flags)}return this._regexp}},{key:"getSource",value:function u(){if(!this._source){this._source=t.generate(this._ast.body)}return this._source}},{key:"getFlags",value:function u(){return this._ast.flags}},{key:"toString",value:function u(){if(!this._string){this._string=t.generate(this._ast)}return this._string}}]);return u}();u.exports={TransformResult:i,transform:function u(e,r){var d=e;if(e instanceof RegExp){e=""+e}if(typeof e==="string"){d=n.parse(e,{captureLocations:true})}f.traverse(d,r);return new i(d)}}},33166:u=>{function e(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e{var d=r(41059);function a(u){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=e.pre;var a=e.post;var t=e.skipProperty;function n(u,e,f,i){if(!u||typeof u.type!=="string"){return}var c=undefined;if(r){c=r(u,e,f,i)}if(c!==false){if(e&&e[f]){if(!isNaN(i)){u=e[f][i]}else{u=e[f]}}for(var o in u){if(u.hasOwnProperty(o)){if(t?t(o,u):o[0]==="$"){continue}var s=u[o];if(Array.isArray(s)){var l=0;d.traversingIndexStack.push(l);while(l2&&arguments[2]!==undefined?arguments[2]:{asNodes:false};if(!Array.isArray(r)){r=[r]}r=r.filter((function(u){if(typeof u.shouldRun!=="function"){return true}return u.shouldRun(e)}));d.initRegistry();r.forEach((function(u){if(typeof u.init==="function"){u.init(e)}}));function n(u,e,r,a){var t=d.getForNode(e);var n=d.getForNode(u,t,r,a);return n}a(e,{pre:function u(e,d,a,f){var i=void 0;if(!t.asNodes){i=n(e,d,a,f)}var c=true;var o=false;var s=undefined;try{for(var l=r[Symbol.iterator](),b;!(c=(b=l.next()).done);c=true){var p=b.value;if(typeof p["*"]==="function"){if(i){if(!i.isRemoved()){var h=p["*"](i);if(h===false){return false}}}else{p["*"](e,d,a,f)}}var v=void 0;if(typeof p[e.type]==="function"){v=p[e.type]}else if(typeof p[e.type]==="object"&&typeof p[e.type].pre==="function"){v=p[e.type].pre}if(v){if(i){if(!i.isRemoved()){var g=v.call(p,i);if(g===false){return false}}}else{v.call(p,e,d,a,f)}}}}catch(y){o=true;s=y}finally{try{if(!c&&l.return){l.return()}}finally{if(o){throw s}}}},post:function u(e,d,a,f){if(!e){return}var i=void 0;if(!t.asNodes){i=n(e,d,a,f)}var c=true;var o=false;var s=undefined;try{for(var l=r[Symbol.iterator](),b;!(c=(b=l.next()).done);c=true){var p=b.value;var h=void 0;if(typeof p[e.type]==="object"&&typeof p[e.type].post==="function"){h=p[e.type].post}if(h){if(i){if(!i.isRemoved()){var v=h.call(p,i);if(v===false){return false}}}else{h.call(p,e,d,a,f)}}}}catch(g){o=true;s=g}finally{try{if(!c&&l.return){l.return()}}finally{if(o){throw s}}}},skipProperty:function u(e){return e==="loc"}})}}},41059:u=>{var e=function(){function u(u,e){for(var r=0;r1&&arguments[1]!==undefined?arguments[1]:null;var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var t=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;r(this,u);this.node=e;this.parentPath=d;this.parent=d?d.node:null;this.property=a;this.index=t}e(u,[{key:"_enforceProp",value:function u(e){if(!this.node.hasOwnProperty(e)){throw new Error("Node of type "+this.node.type+" doesn't have \""+e+'" collection.')}}},{key:"setChild",value:function e(r){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var f=void 0;if(t!=null){if(!n){n=d}this._enforceProp(n);this.node[n][t]=r;f=u.getForNode(r,this,n,t)}else{if(!n){n=a}this._enforceProp(n);this.node[n]=r;f=u.getForNode(r,this,n,null)}return f}},{key:"appendChild",value:function u(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(!r){r=d}this._enforceProp(r);var a=this.node[r].length;return this.setChild(e,a,r)}},{key:"insertChildAt",value:function e(r,a){var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:d;this._enforceProp(t);this.node[t].splice(a,0,r);if(a<=u.getTraversingIndex()){u.updateTraversingIndex(+1)}this._rebuildIndex(this.node,t)}},{key:"remove",value:function e(){if(this.isRemoved()){return}u.registry.delete(this.node);this.node=null;if(!this.parent){return}if(this.index!==null){this.parent[this.property].splice(this.index,1);if(this.index<=u.getTraversingIndex()){u.updateTraversingIndex(-1)}this._rebuildIndex(this.parent,this.property);this.index=null;this.property=null;return}delete this.parent[this.property];this.property=null}},{key:"_rebuildIndex",value:function e(r,d){var a=u.getForNode(r);for(var t=0;t0&&arguments[0]!==undefined?arguments[0]:0;if(this.node.expressions){return u.getForNode(this.node.expressions[r],this,d,r)}else if(this.node.expression&&r==0){return u.getForNode(this.node.expression,this,a)}return null}},{key:"hasEqualSource",value:function u(e){return JSON.stringify(this.node,n)===JSON.stringify(e.node,n)}},{key:"jsonEncode",value:function u(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},r=e.format,d=e.useLoc;return JSON.stringify(this.node,d?null:n,r)}},{key:"getPreviousSibling",value:function e(){if(!this.parent||this.index==null){return null}return u.getForNode(this.parent[this.property][this.index-1],u.getForNode(this.parent),this.property,this.index-1)}},{key:"getNextSibling",value:function e(){if(!this.parent||this.index==null){return null}return u.getForNode(this.parent[this.property][this.index+1],u.getForNode(this.parent),this.property,this.index+1)}}],[{key:"getForNode",value:function e(r){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var t=arguments.length>3&&arguments[3]!==undefined?arguments[3]:-1;if(!r){return null}if(!u.registry.has(r)){u.registry.set(r,new u(r,d,a,t==-1?null:t))}var n=u.registry.get(r);if(d!==null){n.parentPath=d;n.parent=n.parentPath.node}if(a!==null){n.property=a}if(t>=0){n.index=t}return n}},{key:"initRegistry",value:function e(){if(!u.registry){u.registry=new Map}u.registry.clear()}},{key:"updateTraversingIndex",value:function e(r){return u.traversingIndexStack[u.traversingIndexStack.length-1]+=r}},{key:"getTraversingIndex",value:function e(){return u.traversingIndexStack[u.traversingIndexStack.length-1]}}]);return u}();t.initRegistry();t.traversingIndexStack=[];function n(u,e){if(u==="loc"){return undefined}return e}u.exports=t},1379:u=>{u.exports=function u(e){if(e===null||typeof e!=="object"){return e}var r=void 0;if(Array.isArray(e)){r=[]}else{r={}}for(var d in e){r[d]=u(e[d])}return r}},34999:(u,e,r)=>{u.exports=r(54676)}}]); \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/a3b9817780214caf01e8.svg b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/a3b9817780214caf01e8.svg new file mode 100644 index 0000000000000000000000000000000000000000..b9881a43b7313e5a033582e4bf0bcb26bf11730c --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/a3b9817780214caf01e8.svg @@ -0,0 +1,3717 @@ + + + + +Created by FontForge 20201107 at Wed Aug 4 12:25:29 2021 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/af04542b29eaac04550a.woff b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/af04542b29eaac04550a.woff new file mode 100644 index 0000000000000000000000000000000000000000..57819c51537046bcb02f0a05f62cb681b093c79b Binary files /dev/null and b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/af04542b29eaac04550a.woff differ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/b418136e3b384baaadec.woff b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/b418136e3b384baaadec.woff new file mode 100644 index 0000000000000000000000000000000000000000..d1ff7c6bd3e49326fd38d631fb05d5106f3455e6 Binary files /dev/null and b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/b418136e3b384baaadec.woff differ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/be0a084962d8066884f7.svg b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/be0a084962d8066884f7.svg new file mode 100644 index 0000000000000000000000000000000000000000..463af27c02dd3cf5f729e35f23050d4567855824 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/be0a084962d8066884f7.svg @@ -0,0 +1,801 @@ + + + + +Created by FontForge 20201107 at Wed Aug 4 12:25:29 2021 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/f9217f66874b0c01cd8c.woff b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/f9217f66874b0c01cd8c.woff new file mode 100644 index 0000000000000000000000000000000000000000..3375bef0911555af28fea3c02c3e7671c50a5e7b Binary files /dev/null and b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/f9217f66874b0c01cd8c.woff differ diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/index.html b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/index.html new file mode 100644 index 0000000000000000000000000000000000000000..834e6fe06523ca1199fd62dd6fedd95d6895ddcb --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/index.html @@ -0,0 +1,25 @@ +JupyterLab{# Copy so we do not modify the page_config with updates. #} {% set page_config_full = page_config.copy() %} {# Set a dummy variable - we just want the side effect of the update. #} {% set _ = page_config_full.update(baseUrl=base_url, wsUrl=ws_url) %}{% block favicon %}{% endblock %} {% if custom_css %}{% endif %} \ No newline at end of file diff --git a/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/jlab_core.aa4a06aeb6f3290b5d8c.js b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/jlab_core.aa4a06aeb6f3290b5d8c.js new file mode 100644 index 0000000000000000000000000000000000000000..4303d822c3765fc72b88d9d53c2d94abc5444e57 --- /dev/null +++ b/emissary-ml/llm-scripts/fine-tuning/llama3/venv/share/jupyter/lab/static/jlab_core.aa4a06aeb6f3290b5d8c.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4470],{27902:(e,t,n)=>{"use strict";n.r(t);n.d(t,{DEFAULT_CONTEXT_ITEM_RANK:()=>y,default:()=>F});var i=n(94307);var s=n(14366);var o=n(30397);var r=n(57257);var a=n(84739);var l=n(94931);var d=n(24735);var c=n(30619);var h=n(26331);var u=n(34236);var p=n(5592);var m=n(93247);var g=n(90044);var f=n(1143);var v=n(44914);const _="TopBar";const b={id:"@jupyterlab/application-extension:top-bar",description:"Adds a toolbar to the top area (next to the main menu bar).",autoStart:true,requires:[a.ISettingRegistry,s.IToolbarWidgetRegistry],optional:[c.ITranslator],activate:(e,t,n,i)=>{const o=(i!==null&&i!==void 0?i:c.nullTranslator).load("jupyterlab");const r=new h.Toolbar;r.id="jp-top-bar";r.node.setAttribute("aria-label",o.__("Topbar toolbar"));(0,s.setToolbar)(r,(0,s.createToolbarFactory)(n,t,_,b.id,i!==null&&i!==void 0?i:c.nullTranslator),r);e.shell.add(r,"top",{rank:900})}};const y=100;var w;(function(e){e.activateNextTab="application:activate-next-tab";e.activatePreviousTab="application:activate-previous-tab";e.activateNextTabBar="application:activate-next-tab-bar";e.activatePreviousTabBar="application:activate-previous-tab-bar";e.close="application:close";e.closeOtherTabs="application:close-other-tabs";e.closeRightTabs="application:close-right-tabs";e.closeAll="application:close-all";e.setMode="application:set-mode";e.showPropertyPanel="property-inspector:show-panel";e.resetLayout="application:reset-layout";e.toggleContextMenu="application:toggle-context-menu";e.toggleHeader="application:toggle-header";e.toggleMode="application:toggle-mode";e.toggleLeftArea="application:toggle-left-area";e.toggleRightArea="application:toggle-right-area";e.toggleSideTabBar="application:toggle-side-tabbar";e.toggleSidebarWidget="application:toggle-sidebar-widget";e.togglePresentationMode="application:toggle-presentation-mode";e.toggleFullscreenMode="application:toggle-fullscreen-mode";e.tree="router:tree";e.switchSidebar="sidebar:switch"})(w||(w={}));const C={id:"@jupyterlab/application-extension:commands",description:"Adds commands related to the shell.",autoStart:true,requires:[c.ITranslator],optional:[i.ILabShell,s.ICommandPalette],activate:(e,t,n,s)=>{var r;const{commands:a,shell:l}=e;const d=t.load("jupyterlab");const c=d.__("Main Area");a.addCommand(i.JupyterFrontEndContextMenu.contextMenu,{label:d.__("Shift+Right Click for Browser Menu"),isEnabled:()=>false,execute:()=>void 0});const h=()=>{const t=e=>!!e.dataset.id;const n=e.contextMenuHitTest(t);if(!n){return l.currentWidget}return(0,u.find)(l.widgets("main"),(e=>e.id===n.dataset.id))||l.currentWidget};const p=e=>{e.forEach((e=>e.close()))};const m=(e,t)=>{if(e.type==="tab-area"){return e.widgets.includes(t)?e:null}if(e.type==="split-area"){for(const n of e.children){const e=m(n,t);if(e){return e}}}return null};const g=e=>{var t;const i=n===null||n===void 0?void 0:n.saveLayout();const s=i===null||i===void 0?void 0:i.mainArea;if(!s||o.PageConfig.getOption("mode")!=="multiple-document"){return null}const r=(t=s.dock)===null||t===void 0?void 0:t.main;return r?m(r,e):null};const f=e=>{const{id:t}=e;const n=g(e);const i=n?n.widgets||[]:[];const s=i.findIndex((e=>e.id===t));if(s<0){return[]}return i.slice(s+1)};const v=e=>{let t;if(e!="left"&&e!="right"){throw Error(`Unsupported sidebar: ${e}`)}if(e==="left"){t=document.querySelector(".lm-TabBar-tab.lm-mod-current")}else{const e=document.querySelectorAll(".lm-TabBar-tab.lm-mod-current");t=e[e.length-1]}const n=t===null||t===void 0?void 0:t.getAttribute("data-id");if(n){return n===null||n===void 0?void 0:n.toString()}else{return""}};function _(e){if(e){e.focus()}}a.addCommand(w.close,{label:()=>d.__("Close Tab"),isEnabled:()=>{const e=h();return!!e&&e.title.closable},execute:()=>{const e=h();if(e){e.close()}}});a.addCommand(w.closeOtherTabs,{label:()=>d.__("Close All Other Tabs"),isEnabled:()=>(0,u.some)(l.widgets("main"),((e,t)=>t===1)),execute:()=>{const e=h();if(!e){return}const{id:t}=e;for(const n of l.widgets("main")){if(n.id!==t){n.close()}}}});a.addCommand(w.closeRightTabs,{label:()=>d.__("Close Tabs to Right"),isEnabled:()=>!!h()&&f(h()).length>0,execute:()=>{const e=h();if(!e){return}p(f(e))}});(r=l.currentChanged)===null||r===void 0?void 0:r.connect((()=>{[w.close,w.closeOtherTabs,w.closeRightTabs].forEach((e=>a.notifyCommandChanged(e)))}));if(n){a.addCommand(w.activateNextTab,{label:d.__("Activate Next Tab"),execute:()=>{n.activateNextTab()}});a.addCommand(w.activatePreviousTab,{label:d.__("Activate Previous Tab"),execute:()=>{n.activatePreviousTab()}});a.addCommand(w.activateNextTabBar,{label:d.__("Activate Next Tab Bar"),execute:()=>{n.activateNextTabBar()}});a.addCommand(w.activatePreviousTabBar,{label:d.__("Activate Previous Tab Bar"),execute:()=>{n.activatePreviousTabBar()}});a.addCommand(w.closeAll,{label:d.__("Close All Tabs"),execute:()=>{n.closeAll()}});a.addCommand(w.toggleHeader,{label:d.__("Show Header"),execute:()=>{if(n.mode==="single-document"){n.toggleTopInSimpleModeVisibility()}},isToggled:()=>n.isTopInSimpleModeVisible(),isVisible:()=>n.mode==="single-document"});a.addCommand(w.toggleLeftArea,{label:d.__("Show Left Sidebar"),execute:()=>{if(n.leftCollapsed){n.expandLeft()}else{n.collapseLeft();if(n.currentWidget){n.activateById(n.currentWidget.id)}}},isToggled:()=>!n.leftCollapsed,isEnabled:()=>!n.isEmpty("left")});a.addCommand(w.toggleRightArea,{label:d.__("Show Right Sidebar"),execute:()=>{if(n.rightCollapsed){n.expandRight()}else{n.collapseRight();if(n.currentWidget){n.activateById(n.currentWidget.id)}}},isToggled:()=>!n.rightCollapsed,isEnabled:()=>!n.isEmpty("right")});a.addCommand(w.toggleSidebarWidget,{label:e=>e===undefined||e.side===undefined||e.index===undefined?d.__("Toggle Sidebar Element"):e.side==="right"?d.__("Toggle Element %1 in Right Sidebar",parseInt(e.index,10)+1):d.__("Toggle Element %1 in Left Sidebar",parseInt(e.index,10)+1),execute:e=>{const t=parseInt(e.index,10);if(e.side!="left"&&e.side!="right"){throw Error(`Unsupported sidebar: ${e.side}`)}const i=Array.from(n.widgets(e.side));if(t>=i.length){return}const s=i[t].id;const o=document.querySelector("[data-id='"+s+"']");if(v(e.side)===s){if(e.side=="left"){n.collapseLeft();_(o)}if(e.side=="right"){n.collapseRight();_(o)}}else{n.activateById(s);_(o)}}});a.addCommand(w.toggleSideTabBar,{label:e=>e.side==="right"?d.__("Show Right Activity Bar"):d.__("Show Left Activity Bar"),execute:e=>{if(e.side==="right"){n.toggleSideTabBarVisibility("right")}else{n.toggleSideTabBarVisibility("left")}},isToggled:e=>e.side==="right"?n.isSideTabBarVisible("right"):n.isSideTabBarVisible("left"),isEnabled:e=>e.side==="right"?!n.isEmpty("right"):!n.isEmpty("left")});a.addCommand(w.togglePresentationMode,{label:()=>d.__("Presentation Mode"),execute:()=>{n.presentationMode=!n.presentationMode},isToggled:()=>n.presentationMode,isVisible:()=>true});a.addCommand(w.toggleFullscreenMode,{label:d.__("Fullscreen Mode"),execute:()=>{if(document.fullscreenElement===null||document.fullscreenElement===undefined){document.documentElement.requestFullscreen().catch((e=>{console.error("Failed to enter fullscreen mode.",e)}))}else if(document.fullscreenElement!==null){document.exitFullscreen().catch((e=>{console.error("Failed to exit fullscreen mode.",e)}))}},isToggled:()=>document.fullscreenElement!==null});a.addCommand(w.setMode,{label:e=>e["mode"]?d.__("Set %1 mode.",e["mode"]):d.__("Set the layout `mode`."),caption:d.__('The layout `mode` can be "single-document" or "multiple-document".'),isVisible:e=>{const t=e["mode"];return t==="single-document"||t==="multiple-document"},execute:e=>{const t=e["mode"];if(t==="single-document"||t==="multiple-document"){n.mode=t;return}throw new Error(`Unsupported application shell mode: ${t}`)}});a.addCommand(w.toggleMode,{label:d.__("Simple Interface"),isToggled:()=>n.mode==="single-document",execute:()=>{const e=n.mode==="multiple-document"?{mode:"single-document"}:{mode:"multiple-document"};return a.execute(w.setMode,e)}});a.addCommand(w.resetLayout,{label:d.__("Reset Default Layout"),execute:()=>{if(n.presentationMode){a.execute(w.togglePresentationMode).catch((e=>{console.error("Failed to undo presentation mode.",e)}))}if(document.fullscreenElement!==null||document.fullscreenElement!==undefined){a.execute(w.toggleFullscreenMode).catch((e=>{console.error("Failed to exit fullscreen mode.",e)}))}if(n.mode==="single-document"&&!n.isTopInSimpleModeVisible()){a.execute(w.toggleHeader).catch((e=>{console.error("Failed to display title header.",e)}))}["left","right"].forEach((e=>{if(!n.isSideTabBarVisible(e)&&!n.isEmpty(e)){a.execute(w.toggleSideTabBar,{side:e}).catch((t=>{console.error(`Failed to show ${e} activity bar.`,t)}))}}))}})}if(s){[w.activateNextTab,w.activatePreviousTab,w.activateNextTabBar,w.activatePreviousTabBar,w.close,w.closeAll,w.closeOtherTabs,w.closeRightTabs,w.toggleHeader,w.toggleLeftArea,w.toggleRightArea,w.togglePresentationMode,w.toggleFullscreenMode,w.toggleMode,w.resetLayout].forEach((e=>s.addItem({command:e,category:c})));["right","left"].forEach((e=>{s.addItem({command:w.toggleSideTabBar,category:c,args:{side:e}})}))}}};const x={id:"@jupyterlab/application-extension:main",description:"Initializes the application and provides the URL tree path handler.",requires:[i.IRouter,s.IWindowResolver,c.ITranslator,i.JupyterFrontEnd.ITreeResolver],optional:[i.IConnectionLost],provides:i.ITreePathUpdater,activate:(e,t,n,r,a,l)=>{const d=r.load("jupyterlab");if(!(e instanceof i.JupyterLab)){throw new Error(`${x.id} must be activated in JupyterLab.`)}let c="";let h="";function u(e){void a.paths.then((()=>{h=e;if(!c){const n=o.PageConfig.getUrl({treePath:e});const i=o.URLExt.parse(n).pathname;t.navigate(i,{skipRouting:true});o.PageConfig.setOption("treePath",e)}}))}const p=n.name;console.debug(`Starting application in workspace: "${p}"`);if(e.registerPluginErrors.length!==0){const t=v.createElement("pre",null,e.registerPluginErrors.map((e=>e.message)).join("\n"));void(0,s.showErrorMessage)(d.__("Error Registering Plugins"),{message:t})}e.shell.modeChanged.connect(((e,n)=>{const i=o.PageConfig.getUrl({mode:n});const s=o.URLExt.parse(i).pathname;t.navigate(s,{skipRouting:true});o.PageConfig.setOption("mode",n)}));void a.paths.then((()=>{e.shell.currentPathChanged.connect(((e,n)=>{const i=n.newValue;const s=i||h;const r=o.PageConfig.getUrl({treePath:s});const a=o.URLExt.parse(r).pathname;t.navigate(a,{skipRouting:true});o.PageConfig.setOption("treePath",s);c=i}))}));l=l||i.ConnectionLost;e.serviceManager.connectionFailure.connect(((e,t)=>l(e,t,r)));const m=e.serviceManager.builder;const g=()=>m.build().then((()=>(0,s.showDialog)({title:d.__("Build Complete"),body:v.createElement("div",null,d.__("Build successfully completed, reload page?"),v.createElement("br",null),d.__("You will lose any unsaved changes.")),buttons:[s.Dialog.cancelButton({label:d.__("Reload Without Saving"),actions:["reload"]}),s.Dialog.okButton({label:d.__("Save and Reload")})],hasClose:true}))).then((({button:{accept:n,actions:i}})=>{if(n){void e.commands.execute("docmanager:save").then((()=>{t.reload()})).catch((e=>{void(0,s.showErrorMessage)(d.__("Save Failed"),{message:v.createElement("pre",null,e.message)})}))}else if(i.includes("reload")){t.reload()}})).catch((e=>{void(0,s.showErrorMessage)(d.__("Build Failed"),{message:v.createElement("pre",null,e.message)})}));if(m.isAvailable&&m.shouldCheck){void m.getStatus().then((e=>{if(e.status==="building"){return g()}if(e.status!=="needed"){return}const t=v.createElement("div",null,d.__("JupyterLab build is suggested:"),v.createElement("br",null),v.createElement("pre",null,e.message));void(0,s.showDialog)({title:d.__("Build Recommended"),body:t,buttons:[s.Dialog.cancelButton(),s.Dialog.okButton({label:d.__("Build")})]}).then((e=>e.button.accept?g():undefined))}))}return u},autoStart:true};const S={id:"@jupyterlab/application-extension:context-menu",description:"Populates the context menu.",autoStart:true,requires:[a.ISettingRegistry,c.ITranslator],optional:[s.ICommandPalette],activate:(e,t,n,i)=>{const s=n.load("jupyterlab");function o(t){const n=new h.RankedMenu({...t,commands:e.commands});if(t.label){n.title.label=s.__(t.label)}return n}e.started.then((()=>z.loadSettingsContextMenu(e.contextMenu,e.commands,t,o,n))).then((()=>{if(i){i===null||i===void 0?void 0:i.addItem({category:s.__("Settings"),command:w.toggleContextMenu})}})).catch((e=>{console.error("Failed to load context menu items from settings registry.",e)}))}};const k={id:"@jupyterlab/application-extension:dirty",description:"Adds safeguard dialog when closing the browser tab with unsaved modifications.",autoStart:true,requires:[c.ITranslator],activate:(e,t)=>{if(!(e instanceof i.JupyterLab)){throw new Error(`${k.id} must be activated in JupyterLab.`)}const n=t.load("jupyterlab");const s=n.__("Are you sure you want to exit JupyterLab?\n\nAny unsaved changes will be lost.");window.addEventListener("beforeunload",(t=>{if(e.status.isDirty){return t.returnValue=s}}))}};const j={id:"@jupyterlab/application-extension:layout",description:"Provides the shell layout restorer.",requires:[l.IStateDB,i.ILabShell,a.ISettingRegistry],optional:[c.ITranslator],activate:(e,t,n,r,a)=>{const l=(a!==null&&a!==void 0?a:c.nullTranslator).load("jupyterlab");const d=e.started;const h=e.commands;const u=o.PageConfig.getOption("mode");const m=new i.LayoutRestorer({connector:t,first:d,registry:h,mode:u});r.load(D.id).then((t=>{var i,s;const o=t.composite["layout"];void n.restoreLayout(u,m,{"multiple-document":(i=o.multiple)!==null&&i!==void 0?i:{},"single-document":(s=o.single)!==null&&s!==void 0?s:{}}).then((()=>{n.layoutModified.connect((()=>{void m.save(n.saveLayout())}));t.changed.connect(g);z.activateSidebarSwitcher(e,n,t,l)}))})).catch((e=>{console.error("Fail to load settings for the layout restorer.");console.error(e)}));return m;async function g(e){if(!p.JSONExt.deepEqual(e.composite["layout"],{single:n.userLayout["single-document"],multiple:n.userLayout["multiple-document"]})){const e=await(0,s.showDialog)({title:l.__("Information"),body:l.__("User layout customization has changed. You may need to reload JupyterLab to see the changes."),buttons:[s.Dialog.cancelButton(),s.Dialog.okButton({label:l.__("Reload")})]});if(e.button.accept){location.reload()}}}},autoStart:true,provides:i.ILayoutRestorer};const I={id:"@jupyterlab/application-extension:router",description:"Provides the URL router",requires:[i.JupyterFrontEnd.IPaths],activate:(e,t)=>{const{commands:n}=e;const s=t.urls.base;const o=new i.Router({base:s,commands:n});void e.started.then((()=>{void o.route();window.addEventListener("popstate",(()=>{void o.route()}))}));return o},autoStart:true,provides:i.IRouter};const E={id:"@jupyterlab/application-extension:tree-resolver",description:"Provides the tree route resolver",autoStart:true,requires:[i.IRouter],provides:i.JupyterFrontEnd.ITreeResolver,activate:(e,t)=>{const{commands:n}=e;const i=new g.DisposableSet;const s=new p.PromiseDelegate;const r=new RegExp("/(lab|doc)(/workspaces/[a-zA-Z0-9-_]+)?(/tree/.*)?");i.add(n.addCommand(w.tree,{execute:async e=>{var t;if(i.isDisposed){return}const n=o.URLExt.queryStringToObject((t=e.search)!==null&&t!==void 0?t:"");const r=n["file-browser-path"]||"";delete n["file-browser-path"];i.dispose();s.resolve({browser:r,file:o.PageConfig.getOption("treePath")})}}));i.add(t.register({command:w.tree,pattern:r}));const a=()=>{if(i.isDisposed){return}i.dispose();s.resolve(null)};t.routed.connect(a);i.add(new g.DisposableDelegate((()=>{t.routed.disconnect(a)})));return{paths:s.promise}}};const T={id:"@jupyterlab/application-extension:notfound",description:"Defines the behavior for not found URL (aka route).",requires:[i.JupyterFrontEnd.IPaths,i.IRouter,c.ITranslator],activate:(e,t,n,i)=>{const o=i.load("jupyterlab");const r=t.urls.notFound;if(!r){return}const a=n.base;const l=o.__("The path: %1 was not found. JupyterLab redirected to: %2",r,a);n.navigate("");void(0,s.showErrorMessage)(o.__("Path Not Found"),{message:l})},autoStart:true};const M={id:"@jupyterlab/application-extension:faviconbusy",description:"Handles the favicon depending on the application status.",requires:[i.ILabStatus],activate:async(e,t)=>{t.busySignal.connect(((e,t)=>{const n=document.querySelector(`link[rel="icon"]${t?".idle.favicon":".busy.favicon"}`);if(!n){return}const i=document.querySelector(`link${t?".busy.favicon":".idle.favicon"}`);if(!i){return}if(n!==i){n.rel="";i.rel="icon";i.parentNode.replaceChild(i,i)}}))},autoStart:true};const D={id:"@jupyterlab/application-extension:shell",description:"Provides the JupyterLab shell. It has an extended API compared to `app.shell`.",optional:[a.ISettingRegistry],activate:(e,t)=>{if(!(e.shell instanceof i.LabShell)){throw new Error(`${D.id} did not find a LabShell instance.`)}if(t){void t.load(D.id).then((t=>{e.shell.updateConfig(t.composite);t.changed.connect((()=>{e.shell.updateConfig(t.composite)}))}))}return e.shell},autoStart:true,provides:i.ILabShell};const A={id:"@jupyterlab/application-extension:status",description:"Provides the application status.",activate:e=>{if(!(e instanceof i.JupyterLab)){throw new Error(`${A.id} must be activated in JupyterLab.`)}return e.status},autoStart:true,provides:i.ILabStatus};const P={id:"@jupyterlab/application-extension:info",description:"Provides the application information.",activate:e=>{if(!(e instanceof i.JupyterLab)){throw new Error(`${P.id} must be activated in JupyterLab.`)}return e.info},autoStart:true,provides:i.JupyterLab.IInfo};const L={id:"@jupyterlab/application-extension:paths",description:"Provides the application paths.",activate:e=>{if(!(e instanceof i.JupyterLab)){throw new Error(`${L.id} must be activated in JupyterLab.`)}return e.paths},autoStart:true,provides:i.JupyterFrontEnd.IPaths};const R={id:"@jupyterlab/application-extension:property-inspector",description:"Provides the property inspector.",autoStart:true,requires:[i.ILabShell,c.ITranslator],optional:[i.ILayoutRestorer],provides:r.IPropertyInspectorProvider,activate:(e,t,n,i)=>{const s=n.load("jupyterlab");const o=new r.SideBarPropertyInspectorProvider({shell:t,translator:n});o.title.icon=h.buildIcon;o.title.caption=s.__("Property Inspector");o.id="jp-property-inspector";t.add(o,"right",{rank:100,type:"Property Inspector"});e.commands.addCommand(w.showPropertyPanel,{label:s.__("Property Inspector"),execute:()=>{t.activateById(o.id)}});if(i){i.add(o,"jp-property-inspector")}return o}};const N={id:"@jupyterlab/application-extension:logo",description:"Sets the application logo.",autoStart:true,requires:[i.ILabShell],activate:(e,t)=>{const n=new f.Widget;h.jupyterIcon.element({container:n.node,elementPosition:"center",margin:"2px 2px 2px 8px",height:"auto",width:"16px"});n.id="jp-MainLogo";t.add(n,"top",{rank:0})}};const O={id:"@jupyterlab/application-extension:mode-switch",description:"Adds the interface mode switch",requires:[i.ILabShell,c.ITranslator],optional:[d.IStatusBar,a.ISettingRegistry],activate:(e,t,n,i,s)=>{if(i===null){return}const o=n.load("jupyterlab");const r=new h.Switch;r.id="jp-single-document-mode";r.valueChanged.connect(((e,n)=>{t.mode=n.newValue?"single-document":"multiple-document"}));t.modeChanged.connect(((e,t)=>{r.value=t==="single-document"}));if(s){const n=s.load(D.id);const i=e=>{const n=e.get("startMode").composite;if(n){t.mode=n==="single"?"single-document":"multiple-document"}};Promise.all([n,e.restored]).then((([e])=>{i(e)})).catch((e=>{console.error(e.message)}))}const a=()=>{const t=e.commands.keyBindings.find((e=>e.command==="application:toggle-mode"));if(t){const e=t.keys.map(m.CommandRegistry.formatKeystroke).join(", ");r.caption=o.__("Simple Interface (%1)",e)}else{r.caption=o.__("Simple Interface")}};a();e.commands.keyBindingChanged.connect((()=>{a()}));r.label=o.__("Simple");i.registerStatusItem(O.id,{priority:1,item:r,align:"left",rank:-1})},autoStart:true};const B=[S,k,x,C,j,I,E,T,M,D,A,P,O,L,R,N,b];const F=B;var z;(function(e){async function t(e){const t=await(0,s.showDialog)({title:e.__("Information"),body:e.__("Context menu customization has changed. You will need to reload JupyterLab to see the changes."),buttons:[s.Dialog.cancelButton(),s.Dialog.okButton({label:e.__("Reload")})]});if(t.button.accept){location.reload()}}async function n(e,n,i,o,r){var l;const d=r.load("jupyterlab");const c=S.id;let h=null;let u={};function m(e){var t,n;u={};const s=Object.keys(i.plugins).map((e=>{var t,n;const s=(n=(t=i.plugins[e].schema["jupyter.lab.menus"])===null||t===void 0?void 0:t.context)!==null&&n!==void 0?n:[];u[e]=s;return s})).concat([(n=(t=e["jupyter.lab.menus"])===null||t===void 0?void 0:t.context)!==null&&n!==void 0?n:[]]).reduceRight(((e,t)=>a.SettingRegistry.reconcileItems(e,t,true)),[]);e.properties.contextMenu.default=a.SettingRegistry.reconcileItems(s,e.properties.contextMenu.default,true).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Infinity)-((i=t.rank)!==null&&i!==void 0?i:Infinity)}))}i.transform(c,{compose:e=>{var t,n,i,s;if(!h){h=p.JSONExt.deepCopy(e.schema);m(h)}const o=(i=(n=(t=h.properties)===null||t===void 0?void 0:t.contextMenu)===null||n===void 0?void 0:n.default)!==null&&i!==void 0?i:[];const r={...e.data.user,contextMenu:(s=e.data.user.contextMenu)!==null&&s!==void 0?s:[]};const l={...e.data.composite,contextMenu:a.SettingRegistry.reconcileItems(o,r.contextMenu,false)};e.data={composite:l,user:r};return e},fetch:e=>{if(!h){h=p.JSONExt.deepCopy(e.schema);m(h)}return{data:e.data,id:e.id,raw:e.raw,schema:h,version:e.version}}});const g=await i.load(c);const f=e=>{const t=document.body;const n=t.hasAttribute("data-jp-suppress-context-menu");const i=e.get("disabled").composite;if(n&&!i){t.removeAttribute("data-jp-suppress-context-menu")}else if(i&&!n){t.setAttribute("data-jp-suppress-context-menu","true")}};const v=(l=g.composite.contextMenu)!==null&&l!==void 0?l:[];a.SettingRegistry.filterDisabledItems(v).forEach((t=>{s.MenuFactory.addContextItem({rank:y,...t},e,o)}));g.changed.connect((()=>{var e;const n=(e=g.composite.contextMenu)!==null&&e!==void 0?e:[];if(!p.JSONExt.deepEqual(v,n)){void t(d)}f(g)}));i.pluginChanged.connect((async(n,r)=>{var l,h,m,g;if(r!==c){const n=(l=u[r])!==null&&l!==void 0?l:[];const c=(m=(h=i.plugins[r].schema["jupyter.lab.menus"])===null||h===void 0?void 0:h.context)!==null&&m!==void 0?m:[];if(!p.JSONExt.deepEqual(n,c)){if(u[r]){await t(d)}else{u[r]=p.JSONExt.deepCopy(c);const t=(g=a.SettingRegistry.reconcileItems(c,v,false,false))!==null&&g!==void 0?g:[];a.SettingRegistry.filterDisabledItems(t).forEach((t=>{s.MenuFactory.addContextItem({rank:y,...t},e,o)}))}}}}));f(g);n.addCommand(w.toggleContextMenu,{label:d.__("Enable Context Menu"),isToggleable:true,isToggled:()=>!g.get("disabled").composite,execute:()=>void g.set("disabled",!g.get("disabled").composite)})}e.loadSettingsContextMenu=n;function i(e,t,n,i){e.commands.addCommand(w.switchSidebar,{label:i.__("Switch Sidebar Side"),execute:()=>{const i=e.contextMenuHitTest((e=>!!e.dataset.id));if(!i){return}const s=i.dataset["id"];const o=document.getElementById("jp-left-stack");const r=document.getElementById(s);let a=null;if(o&&r&&o.contains(r)){const e=(0,u.find)(t.widgets("left"),(e=>e.id===s));if(e){a=t.move(e,"right");t.activateById(e.id)}}else{const e=(0,u.find)(t.widgets("right"),(e=>e.id===s));if(e){a=t.move(e,"left");t.activateById(e.id)}}if(a){n.set("layout",{single:a["single-document"],multiple:a["multiple-document"]}).catch((e=>{console.error("Failed to save user layout customization.",e)}))}}});e.commands.commandExecuted.connect(((e,t)=>{if(t.id===w.resetLayout){n.remove("layout").catch((e=>{console.error("Failed to remove user layout customization.",e)}))}}))}e.activateSidebarSwitcher=i})(z||(z={}))},20979:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(3579);var a=n(58130);var l=n(85072);var d=n.n(l);var c=n(97825);var h=n.n(c);var u=n(77659);var p=n.n(u);var m=n(55056);var g=n.n(m);var f=n(10540);var v=n.n(f);var _=n(41113);var b=n.n(_);var y=n(24118);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.A,w);const x=y.A&&y.A.locals?y.A.locals:undefined},16214:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ConnectionLost:()=>o,IConnectionLost:()=>q,ILabShell:()=>O,ILabStatus:()=>$,ILayoutRestorer:()=>b,IMimeDocumentTracker:()=>x,IRouter:()=>K,ITreePathUpdater:()=>J,JupyterFrontEnd:()=>p,JupyterFrontEndContextMenu:()=>g,JupyterLab:()=>W,LabShell:()=>B,LabStatus:()=>H,LayoutRestorer:()=>w,Router:()=>U,addSemanticCommand:()=>G,createRendermimePlugin:()=>k,createRendermimePlugins:()=>S,createSemanticCommand:()=>Y});var i=n(14366);var s=n(30619);const o=async function(e,t,n){n=n||s.nullTranslator;const o=n.load("jupyterlab");const a=o.__("Server Connection Error");const l=o.__("A connection to the Jupyter server could not be established.\n"+"JupyterLab will continue trying to reconnect.\n"+"Check your network connection or Jupyter server configuration.\n");if(!r.displayConnectionLost){return}if(r.serverConnectionLost){await r.serverConnectionLost;return}const d=(0,i.showDialog)({title:a,body:l,checkbox:{label:o.__("Do not show this message again in this session."),caption:o.__("If checked, you will not see a dialog informing you about an issue with server connection in this session.")},buttons:[i.Dialog.cancelButton({label:o.__("Close")})]}).then((e=>{if(e.isChecked){r.displayConnectionLost=false}return})).catch((e=>{console.error("An error occurred while showing the dialog: ",e)})).finally((()=>{r.serverConnectionLost=undefined}));r.serverConnectionLost=d};var r;(function(e){e.displayConnectionLost=true})(r||(r={}));var a=n(93037);var l=n(28548);var d=n(26331);var c=n(95286);var h=n(5592);var u=n(2336);class p extends c.Application{constructor(e){super(e);this._formatChanged=new u.Signal(this);e.shell.addClass("jp-ThemedContainer");this.contextMenu=new d.ContextMenuSvg({commands:this.commands,renderer:e.contextMenuRenderer,groupByTarget:false,sortBySelector:false});const t=new Promise((e=>{requestAnimationFrame((()=>{e()}))}));this.commandLinker=e.commandLinker||new i.CommandLinker({commands:this.commands});this.docRegistry=e.docRegistry||new a.DocumentRegistry;this.restored=e.restored||this.started.then((()=>t)).catch((()=>t));this.serviceManager=e.serviceManager||new l.ServiceManager}get format(){return this._format}set format(e){if(this._format!==e){this._format=e;document.body.dataset["format"]=e;this._formatChanged.emit(e)}}get formatChanged(){return this._formatChanged}contextMenuHitTest(e){if(!this._contextMenuEvent||!(this._contextMenuEvent.target instanceof Node)){return undefined}let t=this._contextMenuEvent.target;do{if(t instanceof HTMLElement&&e(t)){return t}t=t.parentNode}while(t&&t.parentNode&&t!==t.parentNode);return undefined}evtContextMenu(e){this._contextMenuEvent=e;if(e.shiftKey||m.suppressContextMenu(e.target)){return}const t=this.contextMenu.open(e);if(t){const t=this.contextMenu.menu.items;if(t.length===1&&t[0].command===g.contextMenu){this.contextMenu.menu.close();return}e.preventDefault();e.stopPropagation()}}}(function(e){function t(e,t){const n=new RegExp(`^${t.urls.doc}`);const i=e.match(n);if(i){return true}else{return false}}e.inDocMode=t;e.IPaths=new h.Token("@jupyterlab/application:IPaths",`A service providing information about various\n URLs and server paths for the current application. Use this service if you want to\n assemble URLs to use the JupyterLab REST API.`);e.ITreeResolver=new h.Token("@jupyterlab/application:ITreeResolver","A service to resolve the tree path.")})(p||(p={}));var m;(function(e){function t(e){return e.closest("[data-jp-suppress-context-menu]")!==null}e.suppressContextMenu=t})(m||(m={}));var g;(function(e){e.contextMenu="__internal:context-menu-info"})(g||(g={}));var f=n(30397);var v=n(44539);var _=n(94466);const b=new h.Token("@jupyterlab/application:ILayoutRestorer","A service providing application layout restoration functionality. Use this to have your activities restored across page loads.");const y="layout-restorer:data";class w{constructor(e){this._deferred=new Array;this._deferredMainArea=null;this._firstDone=false;this._promisesDone=false;this._promises=[];this._restored=new h.PromiseDelegate;this._trackers=new Set;this._widgets=new Map;this._mode="multiple-document";this._connector=e.connector;this._first=e.first;this._registry=e.registry;if(e.mode){this._mode=e.mode}void this._first.then((()=>{this._firstDone=true})).then((()=>Promise.all(this._promises))).then((()=>{this._promisesDone=true;this._trackers.clear()})).then((()=>{this._restored.resolve(void 0)}))}get isDeferred(){return this._deferred.length>0}get restored(){return this._restored.promise}add(e,t){C.nameProperty.set(e,t);this._widgets.set(t,e);e.disposed.connect(this._onWidgetDisposed,this)}async fetch(){var e;const t={fresh:true,mainArea:null,downArea:null,leftArea:null,rightArea:null,topArea:null,relativeSizes:null};const n=this._connector.fetch(y);try{const[i]=await Promise.all([n,this.restored]);if(!i){return t}const{main:s,down:o,left:r,right:a,relativeSizes:l,top:d}=i;const c=false;let h=null;if(this._mode==="multiple-document"){h=this._rehydrateMainArea(s)}else{this._deferredMainArea=s}const u=this._rehydrateDownArea(o);const p=this._rehydrateSideArea(r);const m=this._rehydrateSideArea(a);return{fresh:c,mainArea:h,downArea:u,leftArea:p,rightArea:m,relativeSizes:l||null,topArea:(e=d)!==null&&e!==void 0?e:null}}catch(i){return t}}async restore(e,t){if(this._firstDone){throw new Error("restore() must be called before `first` has resolved.")}const{namespace:n}=e;if(this._trackers.has(n)){throw new Error(`The tracker "${n}" is already restored.`)}const{args:i,command:s,name:o,when:r}=t;this._trackers.add(n);e.widgetAdded.connect(((e,t)=>{const i=o(t);if(i){this.add(t,`${n}:${i}`)}}),this);e.widgetUpdated.connect(((e,t)=>{const i=o(t);if(i){const e=`${n}:${i}`;C.nameProperty.set(t,e);this._widgets.set(e,t)}}));const a=this._first;if(this._mode=="multiple-document"){const t=e.restore({args:i||(()=>h.JSONExt.emptyObject),command:s,connector:this._connector,name:o,registry:this._registry,when:r?[a].concat(r):a}).catch((e=>{console.error(e)}));this._promises.push(t);return t}e.defer({args:i||(()=>h.JSONExt.emptyObject),command:s,connector:this._connector,name:o,registry:this._registry,when:r?[a].concat(r):a});this._deferred.push(e)}async restoreDeferred(){if(!this.isDeferred){return null}const e=Promise.resolve();const t=this._deferred.map((t=>e.then((()=>t.restore()))));this._deferred.length=0;await Promise.all(t);return this._rehydrateMainArea(this._deferredMainArea)}save(e){var t;if(!this._promisesDone){const e="save() was called prematurely.";console.warn(e);return Promise.reject(e)}const n={};n.main=this.isDeferred?this._deferredMainArea:this._dehydrateMainArea(e.mainArea);if(this.isDeferred){const i=(t=e.mainArea)===null||t===void 0?void 0:t.currentWidget;if(i){const e=C.nameProperty.get(i);n.main={...n.main,current:e||undefined}}}n.down=this._dehydrateDownArea(e.downArea);n.left=this._dehydrateSideArea(e.leftArea);n.right=this._dehydrateSideArea(e.rightArea);n.relativeSizes=e.relativeSizes;n.top={...e.topArea};return this._connector.save(y,n)}_dehydrateMainArea(e){if(!e){return null}return C.serializeMain(e)}_rehydrateMainArea(e){if(!e){return null}return C.deserializeMain(e,this._widgets)}_dehydrateDownArea(e){if(!e){return null}const t={size:e.size};if(e.currentWidget){const n=C.nameProperty.get(e.currentWidget);if(n){t.current=n}}if(e.widgets){t.widgets=e.widgets.map((e=>C.nameProperty.get(e))).filter((e=>!!e))}return t}_rehydrateDownArea(e){var t;if(!e){return{currentWidget:null,size:0,widgets:null}}const n=this._widgets;const i=e.current&&n.has(`${e.current}`)?n.get(`${e.current}`):null;const s=!Array.isArray(e.widgets)?null:e.widgets.map((e=>n.has(`${e}`)?n.get(`${e}`):null)).filter((e=>!!e));return{currentWidget:i,size:(t=e.size)!==null&&t!==void 0?t:0,widgets:s}}_dehydrateSideArea(e){if(!e){return null}const t={collapsed:e.collapsed,visible:e.visible};if(e.currentWidget){const n=C.nameProperty.get(e.currentWidget);if(n){t.current=n}}if(e.widgets){t.widgets=e.widgets.map((e=>C.nameProperty.get(e))).filter((e=>!!e))}if(e.widgetStates){t.widgetStates=e.widgetStates}return t}_rehydrateSideArea(e){var t,n;if(!e){return{collapsed:true,currentWidget:null,visible:true,widgets:null,widgetStates:{["null"]:{sizes:null,expansionStates:null}}}}const i=this._widgets;const s=(t=e.collapsed)!==null&&t!==void 0?t:false;const o=e.current&&i.has(`${e.current}`)?i.get(`${e.current}`):null;const r=!Array.isArray(e.widgets)?null:e.widgets.map((e=>i.has(`${e}`)?i.get(`${e}`):null)).filter((e=>!!e));const a=e.widgetStates;return{collapsed:s,currentWidget:o,widgets:r,visible:(n=e.visible)!==null&&n!==void 0?n:true,widgetStates:a}}_onWidgetDisposed(e){const t=C.nameProperty.get(e);this._widgets.delete(t)}}var C;(function(e){e.nameProperty=new _.AttachedProperty({name:"name",create:e=>""});function t(n){if(!n||!n.type){return null}if(n.type==="tab-area"){return{type:"tab-area",currentIndex:n.currentIndex,widgets:n.widgets.map((t=>e.nameProperty.get(t))).filter((e=>!!e))}}return{type:"split-area",orientation:n.orientation,sizes:n.sizes,children:n.children.map(t).filter((e=>!!e))}}function n(n){const i={dock:n&&n.dock&&t(n.dock.main)||null};if(n){if(n.currentWidget){const t=e.nameProperty.get(n.currentWidget);if(t){i.current=t}}}return i}e.serializeMain=n;function i(e,t){if(!e){return null}const n=e.type||"unknown";if(n==="unknown"||n!=="tab-area"&&n!=="split-area"){console.warn(`Attempted to deserialize unknown type: ${n}`);return null}if(n==="tab-area"){const{currentIndex:n,widgets:i}=e;const s={type:"tab-area",currentIndex:n||0,widgets:i&&i.map((e=>t.get(e))).filter((e=>!!e))||[]};if(s.currentIndex>s.widgets.length-1){s.currentIndex=0}return s}const{orientation:s,sizes:o,children:r}=e;const a={type:"split-area",orientation:s,sizes:o||[],children:r&&r.map((e=>i(e,t))).filter((e=>!!e))||[]};return a}function s(e,t){if(!e){return null}const n=e.current||null;const s=e.dock||null;return{currentWidget:n&&t.has(n)&&t.get(n)||null,dock:s?{main:i(s,t)}:null}}e.deserializeMain=s})(C||(C={}));const x=new h.Token("@jupyterlab/application:IMimeDocumentTracker","A widget tracker for documents rendered using a mime renderer extension. Use this if you want to list and interact with documents rendered by such extensions.");function S(e){const t=[];const n="application-mimedocuments";const s=new i.WidgetTracker({namespace:n});e.forEach((e=>{let n=e.default;if(!e.hasOwnProperty("__esModule")){n=e}if(!Array.isArray(n)){n=[n]}n.forEach((e=>{t.push(k(s,e))}))}));t.push({id:"@jupyterlab/application-extension:mimedocument",description:"Provides a mime document widget tracker.",optional:[b],provides:x,autoStart:true,activate:(e,t)=>{if(t){void t.restore(s,{command:"docmanager:open",args:e=>({path:e.context.path,factory:j.factoryNameProperty.get(e)}),name:e=>`${e.context.path}:${j.factoryNameProperty.get(e)}`})}return s}});return t}function k(e,t){return{id:t.id,description:t.description,requires:[v.IRenderMimeRegistry,s.ITranslator],autoStart:true,activate:(n,i,s)=>{if(t.rank!==undefined){i.addFactory(t.rendererFactory,t.rank)}else{i.addFactory(t.rendererFactory)}if(!t.documentWidgetFactoryOptions){return}const o=n.docRegistry;let r=[];if(Array.isArray(t.documentWidgetFactoryOptions)){r=t.documentWidgetFactoryOptions}else{r=[t.documentWidgetFactoryOptions]}if(t.fileTypes){t.fileTypes.forEach((e=>{if(e.icon){e={...e,icon:d.LabIcon.resolve({icon:e.icon})}}n.docRegistry.addFileType(e)}))}r.forEach((n=>{const r=n.toolbarFactory?e=>n.toolbarFactory(e.content.renderer):undefined;const l=new a.MimeDocumentFactory({renderTimeout:t.renderTimeout,dataType:t.dataType,rendermime:i,modelName:n.modelName,name:n.name,primaryFileType:o.getFileType(n.primaryFileType),fileTypes:n.fileTypes,defaultFor:n.defaultFor,defaultRendered:n.defaultRendered,toolbarFactory:r,translator:s,factory:t.rendererFactory});o.addWidgetFactory(l);l.widgetCreated.connect(((t,n)=>{j.factoryNameProperty.set(n,l.name);n.context.pathChanged.connect((()=>{void e.save(n)}));void e.add(n)}))}))}}}var j;(function(e){e.factoryNameProperty=new _.AttachedProperty({name:"factoryName",create:()=>undefined})})(j||(j={}));var I=n(34236);var E=n(42856);var T=n(26568);var M=n(1143);const D="jp-LabShell";const A="jp-SideBar";const P="jp-mod-current";const L="jp-mod-active";const R=900;const N="jp-Activity";const O=new h.Token("@jupyterlab/application:ILabShell","A service for interacting with the JupyterLab shell. The top-level ``application`` object also has a reference to the shell, but it has a restricted interface in order to be agnostic to different shell implementations on the application. Use this to get more detailed information about currently active widgets and layout state.");class B extends M.Widget{constructor(e){super();this._dockChildHook=(e,t)=>{switch(t.type){case"child-added":t.child.addClass(N);this._tracker.add(t.child);break;case"child-removed":t.child.removeClass(N);this._tracker.remove(t.child);break;default:break}return true};this._activeChanged=new u.Signal(this);this._cachedLayout=null;this._currentChanged=new u.Signal(this);this._currentPath="";this._currentPathChanged=new u.Signal(this);this._modeChanged=new u.Signal(this);this._isRestored=false;this._layoutModified=new u.Signal(this);this._layoutDebouncer=new T.Debouncer((()=>{this._layoutModified.emit(undefined)}),0);this._restored=new h.PromiseDelegate;this._tracker=new M.FocusTracker;this._topHandlerHiddenByUser=false;this._idTypeMap=new Map;this._mainOptionsCache=new Map;this._sideOptionsCache=new Map;this._delayedWidget=new Array;this.addClass(D);this.id="main";if((e===null||e===void 0?void 0:e.waitForRestore)===false){this._userLayout={"multiple-document":{},"single-document":{}}}const t=this._skipLinkWidget=new F.SkipLinkWidget(this);this._skipLinkWidget.show();const n=new M.Panel;n.addClass("jp-skiplink-wrapper");n.addWidget(t);const i=this._headerPanel=new M.BoxPanel;const o=this._menuHandler=new F.PanelHandler;o.panel.node.setAttribute("role","navigation");const r=this._topHandler=new F.PanelHandler;r.panel.node.setAttribute("role","banner");const l=this._bottomPanel=new M.BoxPanel;l.node.setAttribute("role","contentinfo");const c=new M.BoxPanel;const p=this._vsplitPanel=new F.RestorableSplitPanel;const m=this._dockPanel=new d.DockPanelSvg({hiddenMode:M.Widget.HiddenMode.Display});E.MessageLoop.installMessageHook(m,this._dockChildHook);const g=this._hsplitPanel=new F.RestorableSplitPanel;const f=this._downPanel=new d.TabPanelSvg({tabsMovable:true});const v=this._leftHandler=new F.SideBarHandler;const _=this._rightHandler=new F.SideBarHandler;const b=new M.BoxLayout;i.id="jp-header-panel";o.panel.id="jp-menu-panel";r.panel.id="jp-top-panel";l.id="jp-bottom-panel";c.id="jp-main-content-panel";p.id="jp-main-vsplit-panel";m.id="jp-main-dock-panel";g.id="jp-main-split-panel";f.id="jp-down-stack";v.sideBar.addClass(A);v.sideBar.addClass("jp-mod-left");v.sideBar.node.setAttribute("role","complementary");v.stackedPanel.id="jp-left-stack";_.sideBar.addClass(A);_.sideBar.addClass("jp-mod-right");_.sideBar.node.setAttribute("role","complementary");_.stackedPanel.id="jp-right-stack";m.node.setAttribute("role","main");c.spacing=0;p.spacing=1;m.spacing=5;g.spacing=1;i.direction="top-to-bottom";p.orientation="vertical";c.direction="left-to-right";g.orientation="horizontal";l.direction="bottom-to-top";M.SplitPanel.setStretch(v.stackedPanel,0);M.SplitPanel.setStretch(f,0);M.SplitPanel.setStretch(m,1);M.SplitPanel.setStretch(_.stackedPanel,0);M.BoxPanel.setStretch(v.sideBar,0);M.BoxPanel.setStretch(g,1);M.BoxPanel.setStretch(_.sideBar,0);M.SplitPanel.setStretch(p,1);g.addWidget(v.stackedPanel);g.addWidget(m);g.addWidget(_.stackedPanel);p.addWidget(g);p.addWidget(f);c.addWidget(v.sideBar);c.addWidget(p);c.addWidget(_.sideBar);b.direction="top-to-bottom";b.spacing=0;p.setRelativeSizes([3,1]);g.setRelativeSizes([1,2.5,1]);M.BoxLayout.setStretch(i,0);M.BoxLayout.setStretch(o.panel,0);M.BoxLayout.setStretch(r.panel,0);M.BoxLayout.setStretch(c,1);M.BoxLayout.setStretch(l,0);b.addWidget(n);b.addWidget(i);b.addWidget(r.panel);b.addWidget(c);b.addWidget(l);this._headerPanel.hide();this._bottomPanel.hide();this._downPanel.hide();this.layout=b;this._tracker.currentChanged.connect(this._onCurrentChanged,this);this._tracker.activeChanged.connect(this._onActiveChanged,this);this._dockPanel.layoutModified.connect(this._onLayoutModified,this);this._vsplitPanel.updated.connect(this._onLayoutModified,this);this._downPanel.currentChanged.connect(this._onLayoutModified,this);this._downPanel.tabBar.tabMoved.connect(this._onTabPanelChanged,this);this._downPanel.stackedPanel.widgetRemoved.connect(this._onTabPanelChanged,this);this._leftHandler.updated.connect(this._onLayoutModified,this);this._rightHandler.updated.connect(this._onLayoutModified,this);this._hsplitPanel.updated.connect(this._onLayoutModified,this);const y=this._titleHandler=new F.TitleHandler(this);this.add(y,"top",{rank:100});if(this._dockPanel.mode==="multiple-document"){this._topHandler.addWidget(this._menuHandler.panel,100);y.hide()}else{b.insertWidget(3,this._menuHandler.panel)}this.translator=s.nullTranslator;this.currentChanged.connect(((e,t)=>{let n=t.newValue;let i=t.oldValue;if(i){i.title.changed.disconnect(this._updateTitlePanelTitle,this);if(i instanceof a.DocumentWidget){i.context.pathChanged.disconnect(this._updateCurrentPath,this)}}if(n){n.title.changed.connect(this._updateTitlePanelTitle,this);this._updateTitlePanelTitle();if(n instanceof a.DocumentWidget){n.context.pathChanged.connect(this._updateCurrentPath,this)}}this._updateCurrentPath()}))}get activeChanged(){return this._activeChanged}get activeWidget(){return this._tracker.activeWidget}get addButtonEnabled(){return this._dockPanel.addButtonEnabled}set addButtonEnabled(e){this._dockPanel.addButtonEnabled=e}get addRequested(){return this._dockPanel.addRequested}get currentChanged(){return this._currentChanged}get currentPath(){return this._currentPath}get currentPathChanged(){return this._currentPathChanged}get currentWidget(){return this._tracker.currentWidget}get layoutModified(){return this._layoutModified}get leftCollapsed(){return!this._leftHandler.sideBar.currentTitle}get rightCollapsed(){return!this._rightHandler.sideBar.currentTitle}get presentationMode(){return this.hasClass("jp-mod-presentationMode")}set presentationMode(e){this.toggleClass("jp-mod-presentationMode",e)}get mode(){return this._dockPanel.mode}set mode(e){const t=this._dockPanel;if(e===t.mode){return}const n=this.currentWidget;if(e==="single-document"){this._cachedLayout=t.saveLayout();t.mode=e;if(this.currentWidget){t.activateWidget(this.currentWidget)}this.layout.insertWidget(3,this._menuHandler.panel);this._titleHandler.show();this._updateTitlePanelTitle();if(this._topHandlerHiddenByUser){this._topHandler.panel.hide()}}else{const i=Array.from(t.widgets());t.mode=e;if(this._cachedLayout){F.normalizeAreaConfig(t,this._cachedLayout.main);t.restoreLayout(this._cachedLayout);this._cachedLayout=null}if(this._layoutRestorer.isDeferred){this._layoutRestorer.restoreDeferred().then((e=>{if(e){const{currentWidget:t,dock:n}=e;if(n){this._dockPanel.restoreLayout(n)}if(t){this.activateById(t.id)}}})).catch((e=>{console.error("Failed to restore the deferred layout.");console.error(e)}))}i.forEach((e=>{if(!e.parent){this._addToMainArea(e,{...this._mainOptionsCache.get(e),activate:false})}}));this._mainOptionsCache.clear();if(n){t.activateWidget(n)}this.add(this._menuHandler.panel,"top",{rank:100});this._titleHandler.hide()}this.node.dataset.shellMode=e;this._downPanel.fit();this._modeChanged.emit(e)}get modeChanged(){return this._modeChanged}get restored(){return this._restored.promise}get translator(){var e;return(e=this._translator)!==null&&e!==void 0?e:s.nullTranslator}set translator(e){if(e!==this._translator){this._translator=e;d.TabBarSvg.translator=e;const t=e.load("jupyterlab");this._menuHandler.panel.node.setAttribute("aria-label",t.__("main menu"));this._leftHandler.sideBar.node.setAttribute("aria-label",t.__("main sidebar"));this._leftHandler.sideBar.contentNode.setAttribute("aria-label",t.__("main sidebar"));this._rightHandler.sideBar.node.setAttribute("aria-label",t.__("alternate sidebar"));this._rightHandler.sideBar.contentNode.setAttribute("aria-label",t.__("alternate sidebar"));this._topHandler.panel.node.setAttribute("aria-label",t.__("Top Bar"));this._bottomPanel.node.setAttribute("aria-label",t.__("Bottom Panel"));this._dockPanel.node.setAttribute("aria-label",t.__("Main Content"))}}get userLayout(){return h.JSONExt.deepCopy(this._userLayout)}activateById(e){if(this._leftHandler.has(e)){this._leftHandler.activate(e);return}if(this._rightHandler.has(e)){this._rightHandler.activate(e);return}const t=this._downPanel.tabBar.titles.findIndex((t=>t.owner.id===e));if(t>=0){this._downPanel.currentIndex=t;return}const n=this._dockPanel;const i=(0,I.find)(n.widgets(),(t=>t.id===e));if(i){n.activateWidget(i)}}activateArea(e="main"){switch(e){case"main":{const e=this._currentTabBar();if(!e){return}if(e.currentTitle){e.currentTitle.owner.activate()}}return;case"left":case"right":case"header":case"top":case"menu":case"bottom":console.debug(`Area: ${e} activation not yet implemented`);break;default:throw new Error(`Invalid area: ${e}`)}}activateNextTab(){const e=this._currentTabBar();if(!e){return}const t=e.currentIndex;if(t===-1){return}if(t0){e.currentIndex-=1;if(e.currentTitle){e.currentTitle.owner.activate()}return}if(t===0){const e=this._adjacentBar("previous");if(e){const t=e.titles.length;e.currentIndex=t-1;if(e.currentTitle){e.currentTitle.owner.activate()}}}}activateNextTabBar(){const e=this._adjacentBar("next");if(e){if(e.currentTitle){e.currentTitle.owner.activate()}}}activatePreviousTabBar(){const e=this._adjacentBar("previous");if(e){if(e.currentTitle){e.currentTitle.owner.activate()}}}add(e,t="main",n){var i;if(!this._userLayout){this._delayedWidget.push({widget:e,area:t,options:n});return}let s;if((n===null||n===void 0?void 0:n.type)&&this._userLayout[this.mode][n.type]){s=this._userLayout[this.mode][n.type];this._idTypeMap.set(e.id,n.type)}else{s=this._userLayout[this.mode][e.id]}if(n===null||n===void 0?void 0:n.type){this._idTypeMap.set(e.id,n.type);e.disposed.connect((()=>{this._idTypeMap.delete(e.id)}))}t=(i=s===null||s===void 0?void 0:s.area)!==null&&i!==void 0?i:t;n=n||(s===null||s===void 0?void 0:s.options)?{...n,...s===null||s===void 0?void 0:s.options}:undefined;switch(t||"main"){case"bottom":return this._addToBottomArea(e,n);case"down":return this._addToDownArea(e,n);case"header":return this._addToHeaderArea(e,n);case"left":return this._addToLeftArea(e,n);case"main":return this._addToMainArea(e,n);case"menu":return this._addToMenuArea(e,n);case"right":return this._addToRightArea(e,n);case"top":return this._addToTopArea(e,n);default:throw new Error(`Invalid area: ${t}`)}}move(e,t,n){var i;const s=(i=this._idTypeMap.get(e.id))!==null&&i!==void 0?i:e.id;for(const o of["single-document","multiple-document"].filter((e=>!n||e===n))){this._userLayout[o][s]={...this._userLayout[o][s],area:t}}this.add(e,t);return this._userLayout}collapseLeft(){this._leftHandler.collapse();this._onLayoutModified()}collapseRight(){this._rightHandler.collapse();this._onLayoutModified()}dispose(){if(this.isDisposed){return}this._layoutDebouncer.dispose();super.dispose()}expandLeft(){this._leftHandler.expand();this._onLayoutModified()}expandRight(){this._rightHandler.expand();this._onLayoutModified()}closeAll(){Array.from(this._dockPanel.widgets()).forEach((e=>e.close()));this._downPanel.stackedPanel.widgets.forEach((e=>e.close()))}isSideTabBarVisible(e){switch(e){case"left":return this._leftHandler.isVisible;case"right":return this._rightHandler.isVisible}}isTopInSimpleModeVisible(){return!this._topHandlerHiddenByUser}isEmpty(e){switch(e){case"bottom":return this._bottomPanel.widgets.length===0;case"down":return this._downPanel.stackedPanel.widgets.length===0;case"header":return this._headerPanel.widgets.length===0;case"left":return this._leftHandler.stackedPanel.widgets.length===0;case"main":return this._dockPanel.isEmpty;case"menu":return this._menuHandler.panel.widgets.length===0;case"right":return this._rightHandler.stackedPanel.widgets.length===0;case"top":return this._topHandler.panel.widgets.length===0;default:return true}}async restoreLayout(e,t,n={}){var i,s,o,r;this._userLayout={"single-document":(i=n["single-document"])!==null&&i!==void 0?i:{},"multiple-document":(s=n["multiple-document"])!==null&&s!==void 0?s:{}};this._delayedWidget.forEach((({widget:e,area:t,options:n})=>{this.add(e,t,n)}));this._delayedWidget.length=0;this._layoutRestorer=t;const a=await t.fetch();const{mainArea:l,downArea:d,leftArea:c,rightArea:h,topArea:u,relativeSizes:p}=a;if(l){const{currentWidget:t,dock:n}=l;if(n&&e==="multiple-document"){this._dockPanel.restoreLayout(n)}if(e){this.mode=e}if(t){this.activateById(t.id)}}else{if(e){this.mode=e}}if((u===null||u===void 0?void 0:u.simpleVisibility)!==undefined){this._topHandlerHiddenByUser=!u.simpleVisibility;if(this.mode==="single-document"){this._topHandler.panel.setHidden(this._topHandlerHiddenByUser)}}if(d){const{currentWidget:e,widgets:t,size:n}=d;const i=(o=t===null||t===void 0?void 0:t.map((e=>e.id)))!==null&&o!==void 0?o:[];this._downPanel.tabBar.titles.filter((e=>!i.includes(e.owner.id))).map((e=>e.owner.close()));const s=this._downPanel.tabBar.titles.map((e=>e.owner.id));t===null||t===void 0?void 0:t.filter((e=>!s.includes(e.id))).map((e=>this._downPanel.addWidget(e)));while(!I.ArrayExt.shallowEqual(i,this._downPanel.tabBar.titles.map((e=>e.owner.id)))){this._downPanel.tabBar.titles.forEach(((e,t)=>{const n=i.findIndex((t=>e.owner.id==t));if(n>=0&&n!=t){this._downPanel.tabBar.insertTab(n,e)}}))}if(e){const t=this._downPanel.stackedPanel.widgets.findIndex((t=>t.id===e.id));if(t){this._downPanel.currentIndex=t;(r=this._downPanel.currentWidget)===null||r===void 0?void 0:r.activate()}}if(n&&n>0){this._vsplitPanel.setRelativeSizes([1-n,n])}else{this._downPanel.stackedPanel.widgets.forEach((e=>e.close()));this._downPanel.hide()}}if(c){this._leftHandler.rehydrate(c)}else{if(e==="single-document"){this.collapseLeft()}}if(h){this._rightHandler.rehydrate(h)}else{if(e==="single-document"){this.collapseRight()}}if(p){this._hsplitPanel.setRelativeSizes(p)}if(!this._isRestored){E.MessageLoop.flush();this._restored.resolve(a)}}saveLayout(){const e={mainArea:{currentWidget:this._tracker.currentWidget,dock:this.mode==="single-document"?this._cachedLayout||this._dockPanel.saveLayout():this._dockPanel.saveLayout()},downArea:{currentWidget:this._downPanel.currentWidget,widgets:Array.from(this._downPanel.stackedPanel.widgets),size:this._vsplitPanel.relativeSizes()[1]},leftArea:this._leftHandler.dehydrate(),rightArea:this._rightHandler.dehydrate(),topArea:{simpleVisibility:!this._topHandlerHiddenByUser},relativeSizes:this._hsplitPanel.relativeSizes()};return e}toggleTopInSimpleModeVisibility(){if(this.mode==="single-document"){if(this._topHandler.panel.isVisible){this._topHandlerHiddenByUser=true;this._topHandler.panel.hide()}else{this._topHandlerHiddenByUser=false;this._topHandler.panel.show();this._updateTitlePanelTitle()}this._onLayoutModified()}}toggleSideTabBarVisibility(e){if(e==="right"){if(this._rightHandler.isVisible){this._rightHandler.hide()}else{this._rightHandler.show()}}else{if(this._leftHandler.isVisible){this._leftHandler.hide()}else{this._leftHandler.show()}}}updateConfig(e){if(e.hiddenMode){switch(e.hiddenMode){case"display":this._dockPanel.hiddenMode=M.Widget.HiddenMode.Display;break;case"scale":this._dockPanel.hiddenMode=M.Widget.HiddenMode.Scale;break;case"contentVisibility":this._dockPanel.hiddenMode=M.Widget.HiddenMode.ContentVisibility;break}}}widgets(e){switch(e!==null&&e!==void 0?e:"main"){case"main":return this._dockPanel.widgets();case"left":return(0,I.map)(this._leftHandler.sideBar.titles,(e=>e.owner));case"right":return(0,I.map)(this._rightHandler.sideBar.titles,(e=>e.owner));case"header":return this._headerPanel.children();case"top":return this._topHandler.panel.children();case"menu":return this._menuHandler.panel.children();case"bottom":return this._bottomPanel.children();default:throw new Error(`Invalid area: ${e}`)}}onAfterAttach(e){this.node.dataset.shellMode=this.mode}_updateTitlePanelTitle(){let e=this.currentWidget;const t=this._titleHandler.inputElement;t.value=e?e.title.label:"";t.title=e?e.title.caption:""}_updateCurrentPath(){let e=this.currentWidget;let t="";if(e&&e instanceof a.DocumentWidget){t=e.context.path}this._currentPathChanged.emit({newValue:t,oldValue:this._currentPath});this._currentPath=t}_addToLeftArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||this._sideOptionsCache.get(e)||{};this._sideOptionsCache.set(e,t);const n="rank"in t?t.rank:R;this._leftHandler.addWidget(e,n);this._onLayoutModified()}_addToMainArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||{};const n=this._dockPanel;const i=t.mode||"tab-after";let s=this.currentWidget;if(t.ref){s=(0,I.find)(n.widgets(),(e=>e.id===t.ref))||null}const{title:o}=e;o.dataset={...o.dataset,id:e.id};if(o.icon instanceof d.LabIcon){o.icon=o.icon.bindprops({stylesheet:"mainAreaTab"})}else if(typeof o.icon==="string"||!o.icon){o.iconClass=(0,d.classes)(o.iconClass,"jp-Icon")}n.addWidget(e,{mode:i,ref:s});if(n.mode==="single-document"){this._mainOptionsCache.set(e,t)}if(t.activate!==false){n.activateWidget(e)}}_addToRightArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||this._sideOptionsCache.get(e)||{};const n="rank"in t?t.rank:R;this._sideOptionsCache.set(e,t);this._rightHandler.addWidget(e,n);this._onLayoutModified()}_addToTopArea(e,t){var n;if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||{};const i=(n=t.rank)!==null&&n!==void 0?n:R;this._topHandler.addWidget(e,i);this._onLayoutModified();if(this._topHandler.panel.isHidden){this._topHandler.panel.show()}}_addToMenuArea(e,t){var n;if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||{};const i=(n=t.rank)!==null&&n!==void 0?n:R;this._menuHandler.addWidget(e,i);this._onLayoutModified();if(this._menuHandler.panel.isHidden){this._menuHandler.panel.show()}}_addToHeaderArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}this._headerPanel.addWidget(e);this._onLayoutModified();if(this._headerPanel.isHidden){this._headerPanel.show()}}_addToBottomArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}this._bottomPanel.addWidget(e);this._onLayoutModified();if(this._bottomPanel.isHidden){this._bottomPanel.show()}}_addToDownArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||{};const{title:n}=e;n.dataset={...n.dataset,id:e.id};if(n.icon instanceof d.LabIcon){n.icon=n.icon.bindprops({stylesheet:"mainAreaTab"})}else if(typeof n.icon==="string"||!n.icon){n.iconClass=(0,d.classes)(n.iconClass,"jp-Icon")}this._downPanel.addWidget(e);this._onLayoutModified();if(this._downPanel.isHidden){this._downPanel.show()}}_adjacentBar(e){const t=this._currentTabBar();if(!t){return null}const n=Array.from(this._dockPanel.tabBars());const i=n.length;const s=n.indexOf(t);if(e==="previous"){return s>0?n[s-1]:s===0?n[i-1]:null}return se.titles.indexOf(t)>-1))||null}_onActiveChanged(e,t){if(t.newValue){t.newValue.title.className+=` ${L}`}if(t.oldValue){t.oldValue.title.className=t.oldValue.title.className.replace(L,"")}this._activeChanged.emit(t)}_onCurrentChanged(e,t){if(t.newValue){t.newValue.title.className+=` ${P}`}if(t.oldValue){t.oldValue.title.className=t.oldValue.title.className.replace(P,"")}this._currentChanged.emit(t);this._onLayoutModified()}_onTabPanelChanged(){if(this._downPanel.stackedPanel.widgets.length===0){this._downPanel.hide()}this._onLayoutModified()}_onLayoutModified(){void this._layoutDebouncer.invoke()}}var F;(function(e){function t(e,t){return e.rank-t.rank}e.itemCmp=t;function n(e,t){if(!t){return}if(t.type==="tab-area"){t.widgets=t.widgets.filter((t=>!t.isDisposed&&t.parent===e));return}t.children.forEach((t=>{n(e,t)}))}e.normalizeAreaConfig=n;class i{constructor(){this._panelChildHook=(e,t)=>{switch(t.type){case"child-added":{const e=t.child;if(this._items.find((t=>t.widget===e))){break}const n=this._items[this._items.length-1].rank;this._items.push({widget:e,rank:n})}break;case"child-removed":{const e=t.child;I.ArrayExt.removeFirstWhere(this._items,(t=>t.widget===e))}break;default:break}return true};this._items=new Array;this._panel=new M.Panel;E.MessageLoop.installMessageHook(this._panel,this._panelChildHook)}get panel(){return this._panel}addWidget(t,n){t.parent=null;const i={widget:t,rank:n};const s=I.ArrayExt.upperBound(this._items,i,e.itemCmp);I.ArrayExt.insert(this._items,s,i);this._panel.insertWidget(s,t)}}e.PanelHandler=i;class s{constructor(){this._isHiddenByUser=false;this._items=new Array;this._updated=new u.Signal(this);this._sideBar=new M.TabBar({insertBehavior:"none",removeBehavior:"none",allowDeselect:true,orientation:"vertical"});this._stackedPanel=new M.StackedPanel;this._sideBar.hide();this._stackedPanel.hide();this._lastCurrent=null;this._sideBar.currentChanged.connect(this._onCurrentChanged,this);this._sideBar.tabActivateRequested.connect(this._onTabActivateRequested,this);this._stackedPanel.widgetRemoved.connect(this._onWidgetRemoved,this)}get isVisible(){return this._sideBar.isVisible}get sideBar(){return this._sideBar}get stackedPanel(){return this._stackedPanel}get updated(){return this._updated}_onHandleMoved(){return this._refreshVisibility()}_onExpansionToggle(e,t){return this._refreshVisibility()}expand(){const e=this._lastCurrent||this._items.length>0&&this._items[0].widget;if(e){this.activate(e.id)}}activate(e){const t=this._findWidgetByID(e);if(t){this._sideBar.currentTitle=t.title;t.activate()}}has(e){return this._findWidgetByID(e)!==null}collapse(){this._sideBar.currentTitle=null}addWidget(e,t){var n,i,s,o;e.parent=null;e.hide();const r={widget:e,rank:t};const a=this._findInsertIndex(r);I.ArrayExt.insert(this._items,a,r);this._stackedPanel.insertWidget(a,e);const l=this._sideBar.insertTab(a,e.title);l.dataset={id:e.id};if(l.icon instanceof d.LabIcon){l.icon=l.icon.bindprops({stylesheet:"sideBar"})}else if(typeof l.icon==="string"&&l.icon!=""){l.iconClass=(0,d.classes)(l.iconClass,"jp-Icon","jp-Icon-20")}else if(!l.icon&&!l.label){l.icon=d.tabIcon.bindprops({stylesheet:"sideBar"})}(i=(n=e.content)===null||n===void 0?void 0:n.expansionToggled)===null||i===void 0?void 0:i.connect(this._onExpansionToggle,this);(o=(s=e.content)===null||s===void 0?void 0:s.handleMoved)===null||o===void 0?void 0:o.connect(this._onHandleMoved,this);this._refreshVisibility()}dehydrate(){const e=this._sideBar.currentTitle===null;const t=Array.from(this._stackedPanel.widgets);const n=t[this._sideBar.currentIndex];const i={};this._stackedPanel.widgets.forEach((e=>{if(e.id&&e.content instanceof M.SplitPanel){i[e.id]={sizes:e.content.relativeSizes(),expansionStates:e.content.widgets.map((e=>e.isVisible))}}}));return{collapsed:e,currentWidget:n,visible:!this._isHiddenByUser,widgets:t,widgetStates:i}}rehydrate(e){if(e.currentWidget){this.activate(e.currentWidget.id)}if(e.collapsed){this.collapse()}if(!e.visible){this.hide()}if(e.widgetStates){this._stackedPanel.widgets.forEach((t=>{var n;if(t.id&&t.content instanceof M.SplitPanel){const i=(n=e.widgetStates[t.id])!==null&&n!==void 0?n:{};t.content.widgets.forEach(((e,n)=>{var s;const o=((s=i.expansionStates)!==null&&s!==void 0?s:[])[n];if(typeof o==="boolean"&&t.content instanceof M.AccordionPanel){o?t.content.expand(n):t.content.collapse(n)}}));if(i.sizes){t.content.setRelativeSizes(i.sizes)}}}))}}hide(){this._isHiddenByUser=true;this._refreshVisibility()}show(){this._isHiddenByUser=false;this._refreshVisibility()}_findInsertIndex(t){return I.ArrayExt.upperBound(this._items,t,e.itemCmp)}_findWidgetIndex(e){return I.ArrayExt.findFirstIndex(this._items,(t=>t.widget===e))}_findWidgetByTitle(e){const t=(0,I.find)(this._items,(t=>t.widget.title===e));return t?t.widget:null}_findWidgetByID(e){const t=(0,I.find)(this._items,(t=>t.widget.id===e));return t?t.widget:null}_refreshVisibility(){this._stackedPanel.setHidden(this._sideBar.currentTitle===null);this._sideBar.setHidden(this._isHiddenByUser||this._sideBar.titles.length===0);this._updated.emit()}_onCurrentChanged(e,t){const n=t.previousTitle?this._findWidgetByTitle(t.previousTitle):null;const i=t.currentTitle?this._findWidgetByTitle(t.currentTitle):null;if(n){n.hide()}if(i){i.show()}this._lastCurrent=i||n;this._refreshVisibility()}_onTabActivateRequested(e,t){t.title.owner.activate()}_onWidgetRemoved(e,t){if(t===this._lastCurrent){this._lastCurrent=null}I.ArrayExt.removeAt(this._items,this._findWidgetIndex(t));this._sideBar.removeTab(t.title);this._refreshVisibility()}}e.SideBarHandler=s;class o extends M.Widget{constructor(e){super();this.addClass("jp-skiplink");this.id="jp-skiplink";this._shell=e;this._createSkipLink("Skip to main panel","main")}handleEvent(e){var t,n;switch(e.type){case"click":if(e.target instanceof HTMLElement){this._shell.activateArea((n=(t=e.target)===null||t===void 0?void 0:t.dataset)===null||n===void 0?void 0:n.targetarea)}break}}onAfterAttach(e){super.onAfterAttach(e);this.node.addEventListener("click",this)}onBeforeDetach(e){this.node.removeEventListener("click",this);super.onBeforeDetach(e)}_createSkipLink(e,t){const n=document.createElement("a");n.href="#";n.tabIndex=0;n.text=e;n.className="skip-link";n.dataset["targetarea"]=t;this.node.appendChild(n)}}e.SkipLinkWidget=o;class r extends M.Widget{constructor(e){super();this._selected=false;const t=document.createElement("input");t.type="text";this.node.appendChild(t);this._shell=e;this.id="jp-title-panel-title"}onAfterAttach(e){super.onAfterAttach(e);this.inputElement.addEventListener("keyup",this);this.inputElement.addEventListener("click",this);this.inputElement.addEventListener("blur",this)}onBeforeDetach(e){super.onBeforeDetach(e);this.inputElement.removeEventListener("keyup",this);this.inputElement.removeEventListener("click",this);this.inputElement.removeEventListener("blur",this)}handleEvent(e){switch(e.type){case"keyup":void this._evtKeyUp(e);break;case"click":this._evtClick(e);break;case"blur":this._selected=false;break}}async _evtKeyUp(e){if(e.key=="Enter"){const e=this._shell.currentWidget;if(e==null){return}const t=e.title.label;const n=this.inputElement;const i=n.value;n.blur();if(i!==t){e.title.label=i}else{n.value=t}}}_evtClick(e){if(e.button!==0||this._selected){return}const t=this.inputElement;e.preventDefault();e.stopPropagation();this._selected=true;const n=t.value.indexOf(".");if(n===-1){t.select()}else{t.setSelectionRange(0,n)}}get inputElement(){return this.node.children[0]}}e.TitleHandler=r;class a extends M.SplitPanel{constructor(e={}){super(e);this._updated=new u.Signal(this)}get updated(){return this._updated}onUpdateRequest(e){super.onUpdateRequest(e);this._updated.emit()}}e.RestorableSplitPanel=a})(F||(F={}));var z=n(90044);class H{constructor(e){this._busyCount=0;this._dirtyCount=0;this._busySignal=new u.Signal(e);this._dirtySignal=new u.Signal(e)}get busySignal(){return this._busySignal}get dirtySignal(){return this._dirtySignal}get isBusy(){return this._busyCount>0}get isDirty(){return this._dirtyCount>0}setDirty(){const e=this.isDirty;this._dirtyCount++;if(this.isDirty!==e){this._dirtySignal.emit(this.isDirty)}return new z.DisposableDelegate((()=>{const e=this.isDirty;this._dirtyCount=Math.max(0,this._dirtyCount-1);if(this.isDirty!==e){this._dirtySignal.emit(this.isDirty)}}))}setBusy(){const e=this.isBusy;this._busyCount++;if(this.isBusy!==e){this._busySignal.emit(this.isBusy)}return new z.DisposableDelegate((()=>{const e=this.isBusy;this._busyCount--;if(this.isBusy!==e){this._busySignal.emit(this.isBusy)}}))}}class W extends p{constructor(e={shell:new B}){super({...e,shell:e.shell||new B,serviceManager:e.serviceManager||new l.ServiceManager({standby:()=>!this._info.isConnected||"when-hidden"})});this.name=f.PageConfig.getOption("appName")||"JupyterLab";this.namespace=f.PageConfig.getOption("appNamespace")||this.name;this.registerPluginErrors=[];this.status=new H(this);this.version=f.PageConfig.getOption("appVersion")||"unknown";this._allPluginsActivated=new h.PromiseDelegate;this._info=new W.Info(e);this.restored=this.shell.restored.then((async()=>{const e=[];const t=this.activateDeferredPlugins().catch((e=>{console.error("Error when activating deferred plugins\n:",e)}));e.push(t);if(this._info.deferred){const t=Promise.all(this._info.deferred.matches.map((e=>this.activatePlugin(e)))).catch((e=>{console.error("Error when activating customized list of deferred plugins:\n",e)}));e.push(t)}Promise.all(e).then((()=>{this._allPluginsActivated.resolve()})).catch((()=>undefined))})).catch((()=>undefined));const t=W.defaultPaths.urls;const n=W.defaultPaths.directories;const i=e.paths&&e.paths.urls||{};const s=e.paths&&e.paths.directories||{};this._paths={urls:Object.keys(t).reduce(((e,n)=>{if(n in i){const t=i[n];e[n]=t}else{e[n]=t[n]}return e}),{}),directories:Object.keys(W.defaultPaths.directories).reduce(((e,t)=>{if(t in s){const n=s[t];e[t]=n}else{e[t]=n[t]}return e}),{})};if(this._info.devMode){this.shell.addClass("jp-mod-devMode")}this.docRegistry.addModelFactory(new a.Base64ModelFactory);if(e.mimeExtensions){for(const t of S(e.mimeExtensions)){this.registerPlugin(t)}}}get info(){return this._info}get paths(){return this._paths}get allPluginsActivated(){return this._allPluginsActivated.promise}registerPluginModule(e){let t=e.default;if(!e.hasOwnProperty("__esModule")){t=e}if(!Array.isArray(t)){t=[t]}t.forEach((e=>{try{this.registerPlugin(e)}catch(t){this.registerPluginErrors.push(t)}}))}registerPluginModules(e){e.forEach((e=>{this.registerPluginModule(e)}))}evtKeydown(e){const t=new h.PromiseDelegate;this.commands.holdKeyBindingExecution(e,t.promise);this.commands.processKeydownEvent(e);const n=e.target;if(!n){return t.resolve(true)}let i=null;let s=null;const o=()=>{if(i){n.removeEventListener("beforeinput",i)}if(s){n.removeEventListener("keyup",s)}};const r=Promise.race([new Promise((e=>{i=t=>{switch(t.inputType){case"historyUndo":case"historyRedo":{if(t.target instanceof Element&&t.target.closest("[data-jp-undoer]")){t.preventDefault();o();return e(false)}break}case"insertLineBreak":{if(t.target instanceof Element&&t.target.closest(".jp-Cell")){t.preventDefault();o();return e(false)}break}}o();return e(true)};n.addEventListener("beforeinput",i,{once:true})})),new Promise((t=>{s=n=>{if(n.code===e.code){o();return t(false)}};n.addEventListener("keyup",s,{once:true})})),new Promise((e=>{setTimeout((()=>{o();return e(false)}),V.INPUT_GUARD_TIMEOUT)}))]);r.then((e=>{t.resolve(!e)})).catch(console.warn)}}(function(e){e.IInfo=new h.Token("@jupyterlab/application:IInfo","A service providing metadata about the current application, including disabled extensions and whether dev mode is enabled.");class t{constructor({connectionStatus:t,...n}={}){var i,s,o,r,a,d,c;this._connectionStatus=t!==null&&t!==void 0?t:new l.ConnectionStatus;this._availablePlugins=(i=n.availablePlugins)!==null&&i!==void 0?i:e.defaultInfo.availablePlugins;this._devMode=(s=n.devMode)!==null&&s!==void 0?s:e.defaultInfo.devMode;this._deferred=JSON.parse(JSON.stringify((o=n.deferred)!==null&&o!==void 0?o:e.defaultInfo.deferred));this._disabled=JSON.parse(JSON.stringify((r=n.disabled)!==null&&r!==void 0?r:e.defaultInfo.disabled));this._filesCached=(a=n.filesCached)!==null&&a!==void 0?a:e.defaultInfo.filesCached;this._mimeExtensions=JSON.parse(JSON.stringify((d=n.mimeExtensions)!==null&&d!==void 0?d:e.defaultInfo.mimeExtensions));this.isConnected=(c=n.isConnected)!==null&&c!==void 0?c:e.defaultInfo.isConnected}get availablePlugins(){return this._availablePlugins}get devMode(){return this._devMode}get deferred(){return this._deferred}get disabled(){return this._disabled}get filesCached(){return this._filesCached}get isConnected(){return this._connectionStatus.isConnected}set isConnected(e){this._connectionStatus.isConnected=e}get mimeExtensions(){return this._mimeExtensions}}e.Info=t;e.defaultInfo={devMode:f.PageConfig.getOption("devMode").toLowerCase()==="true",deferred:{patterns:[],matches:[]},disabled:{patterns:[],matches:[]},mimeExtensions:[],availablePlugins:[],filesCached:f.PageConfig.getOption("cacheFiles").toLowerCase()==="true",isConnected:true};e.defaultPaths={urls:{base:f.PageConfig.getOption("baseUrl"),notFound:f.PageConfig.getOption("notFoundUrl"),app:f.PageConfig.getOption("appUrl"),doc:f.PageConfig.getOption("docUrl"),static:f.PageConfig.getOption("staticUrl"),settings:f.PageConfig.getOption("settingsUrl"),themes:f.PageConfig.getOption("themesUrl"),translations:f.PageConfig.getOption("translationsApiUrl"),hubHost:f.PageConfig.getOption("hubHost")||undefined,hubPrefix:f.PageConfig.getOption("hubPrefix")||undefined,hubUser:f.PageConfig.getOption("hubUser")||undefined,hubServerName:f.PageConfig.getOption("hubServerName")||undefined},directories:{appSettings:f.PageConfig.getOption("appSettingsDir"),schemas:f.PageConfig.getOption("schemasDir"),static:f.PageConfig.getOption("staticDir"),templates:f.PageConfig.getOption("templatesDir"),themes:f.PageConfig.getOption("themesDir"),userSettings:f.PageConfig.getOption("userSettingsDir"),serverRoot:f.PageConfig.getOption("serverRoot"),workspaces:f.PageConfig.getOption("workspacesDir")}}})(W||(W={}));var V;(function(e){e.INPUT_GUARD_TIMEOUT=10})(V||(V={}));class U{constructor(e){this.stop=new h.Token("@jupyterlab/application:Router#stop");this._routed=new u.Signal(this);this._rules=new Map;this.base=e.base;this.commands=e.commands}get current(){var e,t;const{base:n}=this;const i=f.URLExt.parse(window.location.href);const{search:s,hash:o}=i;const r=(t=(e=i.pathname)===null||e===void 0?void 0:e.replace(n,"/"))!==null&&t!==void 0?t:"";const a=r+s+o;return{hash:o,path:r,request:a,search:s}}get routed(){return this._routed}navigate(e,t={}){const{base:n}=this;const{history:i}=window;const{hard:s}=t;const o=document.location.href;const r=e&&e.indexOf(n)===0?e:f.URLExt.join(n,e);if(r===o){return s?this.reload():undefined}i.pushState({},"",r);if(s){return this.reload()}if(!t.skipRouting){requestAnimationFrame((()=>{void this.route()}))}}register(e){var t;const{command:n,pattern:i}=e;const s=(t=e.rank)!==null&&t!==void 0?t:100;const o=this._rules;o.set(i,{command:n,rank:s});return new z.DisposableDelegate((()=>{o.delete(i)}))}reload(){window.location.reload()}route(){const{commands:e,current:t,stop:n}=this;const{request:i}=t;const s=this._routed;const o=this._rules;const r=[];o.forEach(((e,t)=>{if(i===null||i===void 0?void 0:i.match(t)){r.push(e)}}));const a=r.sort(((e,t)=>t.rank-e.rank));const l=new h.PromiseDelegate;const d=async()=>{if(!a.length){s.emit(t);l.resolve(undefined);return}const{command:o}=a.pop();try{const i=this.current.request;const s=await e.execute(o,t);if(s===n){a.length=0;console.debug(`Routing ${i} was short-circuited by ${o}`)}}catch(r){console.warn(`Routing ${i} to ${o} failed`,r)}void d()};void d();return l.promise}}const q=new h.Token("@jupyterlab/application:IConnectionLost",`A service for invoking the dialog shown\n when JupyterLab has lost its connection to the server. Use this if, for some reason,\n you want to bring up the "connection lost" dialog under new circumstances.`);const $=new h.Token("@jupyterlab/application:ILabStatus",`A service for interacting with the application busy/dirty\n status. Use this if you want to set the application "busy" favicon, or to set\n the application "dirty" status, which asks the user for confirmation before leaving the application page.`);const K=new h.Token("@jupyterlab/application:IRouter","The URL router used by the application. Use this to add custom URL-routing for your extension (e.g., to invoke a command if the user navigates to a sub-path).");const J=new h.Token("@jupyterlab/application:ITreePathUpdater","A service to update the tree path.");function G(e){const{id:t,commands:n,shell:i,semanticCommands:o,default:r,overrides:a,trans:l}=e;n.addCommand(t,{...Y({commands:n,shell:i},o,r!==null&&r!==void 0?r:{},l!==null&&l!==void 0?l:s.nullTranslator.load("jupyterlab")),...a});const d=Array.isArray(o)?o:[o];const c=(e,n)=>{if(n.id){if(n.id===t&&n.type==="removed"){e.commandChanged.disconnect(c)}else{const i=d.reduce(((e,t)=>e.concat(t.ids)),[]);if(i.includes(n.id)){switch(n.type){case"changed":case"many-changed":e.notifyCommandChanged(t);break;case"removed":for(const e of d){e.remove(n.id)}break}}}}};n.commandChanged.connect(c)}function Y(e,t,n,s){const{commands:o,shell:r}=e;const a=Array.isArray(t)?t:[t];return{label:d("label"),caption:d("caption"),isEnabled:()=>{var e;const t=l("isEnabled");return t.length>0&&!t.some((e=>e===false))||((e=n.isEnabled)!==null&&e!==void 0?e:false)},isToggled:()=>{var e;const t=l("isToggled");return t.some((e=>e===true))||((e=n.isToggled)!==null&&e!==void 0?e:false)},isVisible:()=>{var e;const t=l("isVisible");return t.length>0&&!t.some((e=>e===false))||((e=n.isVisible)!==null&&e!==void 0?e:true)},execute:async()=>{const e=r.currentWidget;const t=a.map((t=>e!==null?t.getActiveCommandId(e):null));const s=t.filter((e=>e!==null&&o.isEnabled(e)));let l=null;if(s.length>0){for(const t of s){const n={[i.SemanticCommand.WIDGET]:e.id};l=await o.execute(t,n);if(typeof l==="boolean"&&l===false){break}}}else if(n.execute){l=await o.execute(n.execute)}return l}};function l(e){const t=r.currentWidget;const n=a.map((e=>t!==null?e.getActiveCommandId(t):null));const i=n.filter((e=>e!==null)).map((t=>o[e](t)));return i}function d(e){return()=>{var t;const i=l(e).map(((t,n)=>e=="caption"&&n>0?t.toLocaleLowerCase():t));switch(i.length){case 0:return(t=n[e])!==null&&t!==void 0?t:"";case 1:return i[0];default:{const e=i.some((e=>/…$/.test(e)));const t=i.slice(undefined,-1).map((e=>e.replace(/…$/,""))).join(", ");const n=i.slice(-1)[0].replace(/…$/,"")+(e?"…":"");return s.__("%1 and %2",t,n)}}}}}},3579:(e,t,n)=>{"use strict";var i=n(2898);var s=n(40244);var o=n(10395);var r=n(40662);var a=n(97913);var l=n(79010);var d=n(85072);var c=n.n(d);var h=n(97825);var u=n.n(h);var p=n(77659);var m=n.n(p);var g=n(55056);var f=n.n(g);var v=n(10540);var _=n.n(v);var b=n(41113);var y=n.n(b);var w=n(30966);var C={};C.styleTagTransform=y();C.setAttributes=f();C.insert=m().bind(null,"head");C.domAPI=u();C.insertStyleElement=_();var x=c()(w.A,C);const S=w.A&&w.A.locals?w.A.locals:undefined},97472:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>De,kernelSettings:()=>Te,toggleHeader:()=>xe});var i=n(94307);var s=n(14366);var o=n(30397);var r=n(84739);var a=n(94931);var l=n(30619);var d=n(26331);var c=n(5592);var h=n(90044);var u=n(26568);var p=n(28548);const m="help:open";const g="/lab/api/news";const f="/lab/api/update";const v="https://jupyterlab.readthedocs.io/en/stable/privacy_policies.html";async function _(e,t={}){const n=p.ServerConnection.makeSettings();const i=o.URLExt.join(n.baseUrl,e);let s;try{s=await p.ServerConnection.makeRequest(i,t,n)}catch(a){throw new p.ServerConnection.NetworkError(a)}const r=await s.json();if(!s.ok){throw new p.ServerConnection.ResponseError(s,r.message)}return r}const b={id:"@jupyterlab/apputils-extension:announcements",description:"Add the announcement feature. It will fetch news on the internet and check for application updates.",autoStart:true,optional:[p.IConfigSectionManager,r.ISettingRegistry,l.ITranslator],activate:(e,t,n,i)=>{var o,r;const a=b.id.replace(/[^\w]/g,"");void Promise.all([e.restored,(o=n===null||n===void 0?void 0:n.load("@jupyterlab/apputils-extension:notification"))!==null&&o!==void 0?o:Promise.resolve(null),(r=t===null||t===void 0?void 0:t.create({name:a}))!==null&&r!==void 0?r:Promise.resolve(null)]).then((async([t,n,o])=>{const r=(i!==null&&i!==void 0?i:l.nullTranslator).load("jupyterlab");s.Notification.manager.changed.connect(((e,t)=>{var n;if(t.type!=="removed"){return}const{id:i,tags:s}=(n=t.notification.options.data)!==null&&n!==void 0?n:{};if((s!==null&&s!==void 0?s:[]).some((e=>["news","update"].includes(e)))&&i){const e={};e[i]={seen:true,dismissed:true};o===null||o===void 0?void 0:o.update(e).catch((e=>{console.error(`Failed to update the announcements config:\n${e}`)}))}}));const a=n===null||n===void 0?void 0:n.get("fetchNews").composite;if(a==="none"){const t=s.Notification.emit(r.__("Would you like to get notified about official Jupyter news?"),"default",{autoClose:false,actions:[{label:r.__("Open privacy policy"),caption:v,callback:t=>{t.preventDefault();if(e.commands.hasCommand(m)){void e.commands.execute(m,{text:r.__("Privacy policies"),url:v})}else{window.open(v,"_blank","noreferrer")}},displayType:"link"},{label:r.__("Yes"),callback:()=>{s.Notification.dismiss(t);o===null||o===void 0?void 0:o.update({}).then((()=>d())).catch((e=>{console.error(`Failed to get the news:\n${e}`)}));n===null||n===void 0?void 0:n.set("fetchNews","true").catch((e=>{console.error(`Failed to save setting 'fetchNews':\n${e}`)}))}},{label:r.__("No"),callback:()=>{s.Notification.dismiss(t);n===null||n===void 0?void 0:n.set("fetchNews","false").catch((e=>{console.error(`Failed to save setting 'fetchNews':\n${e}`)}))}}]})}else{await d()}async function d(){var e,t,i,a;if(((e=n===null||n===void 0?void 0:n.get("fetchNews").composite)!==null&&e!==void 0?e:"false")==="true"){try{const e=await _(g);for(const{link:n,message:i,type:a,options:l}of e.news){const e=l.data["id"];const d=(t=o===null||o===void 0?void 0:o.data[e])!==null&&t!==void 0?t:{seen:false,dismissed:false};if(!d.dismissed){l.actions=[{label:r.__("Hide"),caption:r.__("Never show this notification again."),callback:()=>{const t={};t[e]={seen:true,dismissed:true};o===null||o===void 0?void 0:o.update(t).catch((e=>{console.error(`Failed to update the announcements config:\n${e}`)}))}}];if((n===null||n===void 0?void 0:n.length)===2){l.actions.push({label:n[0],caption:n[1],callback:()=>{window.open(n[1],"_blank","noreferrer")},displayType:"link"})}if(!d.seen){l.autoClose=5e3;const t={};t[e]={seen:true};o===null||o===void 0?void 0:o.update(t).catch((e=>{console.error(`Failed to update the announcements config:\n${e}`)}))}s.Notification.emit(i,a,l)}}}catch(l){console.log("Failed to get the announcements.",l)}}if((i=n===null||n===void 0?void 0:n.get("checkForUpdates").composite)!==null&&i!==void 0?i:true){const e=await _(f);if(e.notification){const{link:t,message:i,type:l,options:d}=e.notification;const c=d.data["id"];const h=(a=o===null||o===void 0?void 0:o.data[c])!==null&&a!==void 0?a:{seen:false,dismissed:false};if(!h.dismissed){let e;d.actions=[{label:r.__("Ignore all updates"),caption:r.__("Do not prompt me if a new JupyterLab version is available."),callback:()=>{n===null||n===void 0?void 0:n.set("checkForUpdates",false).then((()=>{s.Notification.dismiss(e)})).catch((e=>{console.error("Failed to set the `checkForUpdates` setting.",e)}))}}];if((t===null||t===void 0?void 0:t.length)===2){d.actions.push({label:t[0],caption:t[1],callback:()=>{window.open(t[1],"_blank","noreferrer")},displayType:"accent"})}if(!h.seen){d.autoClose=5e3;const e={};e[c]={seen:true};o===null||o===void 0?void 0:o.update(e).catch((e=>{console.error(`Failed to update the announcements config:\n${e}`)}))}e=s.Notification.emit(i,l,d)}}}}}))}};var y=n(23899);var w;(function(e){e.licenses="apputils:licenses";e.licenseReport="apputils:license-report";e.refreshLicenses="apputils:licenses-refresh"})(w||(w={}));const C={id:"@jupyterlab/apputils-extension:licenses-client",description:"The licenses client plugin for fetching licenses.",autoStart:true,provides:s.ILicensesClient,activate:e=>{const t=o.URLExt.join(o.PageConfig.getBaseUrl(),o.PageConfig.getOption("licensesUrl"))+"/";const n=e.serviceManager.serverSettings;return new s.Licenses.LicensesClient({licensesUrl:t,serverSettings:n})}};const x={id:"@jupyterlab/apputils-extension:licenses-plugin",description:"Adds licenses reporting tools.",requires:[s.ILicensesClient,l.ITranslator],optional:[i.ILayoutRestorer,y.IMainMenu,s.ICommandPalette],autoStart:true,activate:(e,t,n,i,r,a)=>{const{commands:l,shell:c}=e;const h=n.load("jupyterlab");const u=h.__("Help");const p=h.__("Download All Licenses as");const m=h.__("Refresh Licenses");const g="help-licenses";const f=new s.WidgetTracker({namespace:g});const v=h.__("Licenses");let _=0;function b(e){const n=new s.Licenses.Model({...e,client:t,trans:h});const i=new s.Licenses({model:n});i.id=`${g}-${++_}`;i.title.label=v;i.title.icon=d.copyrightIcon;const o=new s.MainAreaWidget({content:i,reveal:n.licensesReady});o.toolbar.addItem("refresh-licenses",new d.CommandToolbarButton({id:w.refreshLicenses,args:{noLabel:1},commands:l}));o.toolbar.addItem("spacer",d.Toolbar.createSpacerItem());for(const t of Object.keys(s.Licenses.REPORT_FORMATS)){const e=new d.CommandToolbarButton({id:w.licenseReport,args:{format:t,noLabel:1},commands:l});o.toolbar.addItem(`download-${t}`,e)}return o}function y(e){return s.Licenses.REPORT_FORMATS[e]||s.Licenses.REPORT_FORMATS[s.Licenses.DEFAULT_FORMAT]}l.addCommand(w.licenses,{label:v,execute:e=>{if(!o.PageConfig.getOption("licensesUrl")){console.warn("No license API available from the server");return}const t=b(e);c.add(t,"main",{type:"Licenses"});void f.add(t);t.content.model.trackerDataChanged.connect((()=>{void f.save(t)}));return t}});l.addCommand(w.refreshLicenses,{label:e=>e.noLabel?"":m,caption:m,icon:d.refreshIcon,execute:async()=>{var e;return(e=f.currentWidget)===null||e===void 0?void 0:e.content.model.initLicenses()}});l.addCommand(w.licenseReport,{label:e=>{if(e.noLabel){return""}const t=y(`${e.format}`);return`${p} ${t.title}`},caption:e=>{const t=y(`${e.format}`);return`${p} ${t.title}`},icon:e=>{const t=y(`${e.format}`);return t.icon},execute:async e=>{var t;const n=y(`${e.format}`);return await((t=f.currentWidget)===null||t===void 0?void 0:t.content.model.download({format:n.id}))}});if(a){a.addItem({command:w.licenses,category:u})}if(r){const e=r.helpMenu;e.addGroup([{command:w.licenses}],0)}if(i){void i.restore(f,{command:w.licenses,name:e=>"licenses",args:e=>{const{currentBundleName:t,currentPackageIndex:n,packageFilter:i}=e.content.model;const s={currentBundleName:t,currentPackageIndex:n,packageFilter:i};return s}})}}};var S=n(24735);var k=n(1143);var j=n(44914);var I=n(5338);const E="jp-Notification-Toast-Close";const T="jp-Notification-Toast-Close-Margin";const M=140;var D;(function(e){e.dismiss="apputils:dismiss-notification";e.display="apputils:display-notifications";e.notify="apputils:notify";e.update="apputils:update-notification"})(D||(D={}));const A=4;function P(e){const{manager:t,onClose:n,trans:i}=e;const[s,o]=j.useState([]);const[r,a]=j.useState(null);j.useEffect((()=>{async function e(){o(await Promise.all(t.notifications.map((async e=>Object.freeze({...e})))))}if(s.length!==t.count){void e()}t.changed.connect(e);return()=>{t.changed.disconnect(e)}}),[t]);j.useEffect((()=>{O.getIcons().then((e=>{a(e)})).catch((e=>{console.error(`Failed to get react-toastify icons:\n${e}`)}))}),[]);return j.createElement(d.UseSignal,{signal:t.changed},(()=>j.createElement(j.Fragment,null,j.createElement("h2",{className:"jp-Notification-Header jp-Toolbar"},j.createElement("span",{className:"jp-Toolbar-item"},t.count>0?i._n("%1 notification","%1 notifications",t.count):i.__("No notifications")),j.createElement("span",{className:"jp-Toolbar-item jp-Toolbar-spacer"}),j.createElement(d.ToolbarButtonComponent,{noFocusOnClick:false,onClick:()=>{t.dismiss()},icon:d.deleteIcon,tooltip:i.__("Dismiss all notifications"),enabled:t.count>0}),j.createElement(d.ToolbarButtonComponent,{noFocusOnClick:false,onClick:n,icon:d.closeIcon,tooltip:i.__("Hide notifications")})),j.createElement("ol",{className:"jp-Notification-List"},s.map((e=>{var n;const{id:s,message:o,type:a,options:l}=e;const c=a==="in-progress"?"default":a;const h=()=>{t.dismiss(s)};const u=a==="default"?null:a==="in-progress"?(n=r===null||r===void 0?void 0:r.spinner)!==null&&n!==void 0?n:null:r&&r[a];return j.createElement("li",{className:"jp-Notification-List-Item",key:e.id,onClick:e=>{e.stopPropagation()}},j.createElement("div",{className:`Toastify__toast Toastify__toast-theme--light Toastify__toast--${c} jp-Notification-Toast-${c}`},j.createElement("div",{className:"Toastify__toast-body"},u&&j.createElement("div",{className:"Toastify__toast-icon"},u({theme:"light",type:c})),j.createElement("div",null,O.createContent(o,h,l.actions))),j.createElement(O.CloseButton,{close:h,closeIcon:d.deleteIcon.react,title:i.__("Dismiss notification"),closeIconMargin:true})))}))))))}class L extends d.VDomModel{constructor(e){super();this.manager=e;this._highlight=false;this._listOpened=false;this._doNotDisturbMode=false;this._count=e.count;this.manager.changed.connect(this.onNotificationChanged,this)}get count(){return this._count}get doNotDisturbMode(){return this._doNotDisturbMode}set doNotDisturbMode(e){this._doNotDisturbMode=e}get highlight(){return this._highlight}get listOpened(){return this._listOpened}set listOpened(e){this._listOpened=e;if(this._listOpened||this._highlight){this._highlight=false}this.stateChanged.emit()}onNotificationChanged(e,t){this._count=this.manager.count;const{autoClose:n}=t.notification.options;const i=this.doNotDisturbMode||typeof n==="number"&&n<=0;if(!this._listOpened&&t.type!=="removed"&&i){this._highlight=true}this.stateChanged.emit()}}function R(e){return j.createElement(S.GroupItem,{spacing:A,onClick:()=>{e.onClick()},title:e.count>0?e.trans._n("%1 notification","%1 notifications",e.count):e.trans.__("No notifications")},j.createElement(S.TextItem,{className:"jp-Notification-Status-Text",source:`${e.count}`}),j.createElement(d.bellIcon.react,{top:"2px",stylesheet:"statusBar"}))}const N={id:"@jupyterlab/apputils-extension:notification",description:"Add the notification center and its status indicator.",autoStart:true,optional:[S.IStatusBar,r.ISettingRegistry,l.ITranslator],activate:(e,t,n,i)=>{O.translator=i!==null&&i!==void 0?i:l.nullTranslator;const o=O.translator.load("jupyterlab");const r=new L(s.Notification.manager);r.doNotDisturbMode=false;if(n){void Promise.all([n.load(N.id),e.restored]).then((([e])=>{const t=()=>{r.doNotDisturbMode=e.get("doNotDisturbMode").composite};t();e.changed.connect(t)}))}e.commands.addCommand(D.notify,{label:o.__("Emit a notification"),caption:o.__("Notification is described by {message: string, type?: string, options?: {autoClose?: number | false, actions: {label: string, commandId: string, args?: ReadOnlyJSONObject, caption?: string, className?: string}[], data?: ReadOnlyJSONValue}}."),execute:t=>{var n;const{message:i,type:o}=t;const r=(n=t.options)!==null&&n!==void 0?n:{};return s.Notification.manager.notify(i,o!==null&&o!==void 0?o:"default",{...r,actions:r.actions?r.actions.map((t=>({...t,callback:()=>{e.commands.execute(t.commandId,t.args).catch((e=>{console.error(`Failed to executed '${t.commandId}':\n${e}`)}))}}))):null})}});e.commands.addCommand(D.update,{label:o.__("Update a notification"),caption:o.__("Notification is described by {id: string, message: string, type?: string, options?: {autoClose?: number | false, actions: {label: string, commandId: string, args?: ReadOnlyJSONObject, caption?: string, className?: string}[], data?: ReadOnlyJSONValue}}."),execute:t=>{const{id:n,message:i,type:o,...r}=t;return s.Notification.manager.update({id:n,message:i,type:o!==null&&o!==void 0?o:"default",...r,actions:r.actions?r.actions.map((t=>({...t,callback:()=>{e.commands.execute(t.commandId,t.args).catch((e=>{console.error(`Failed to executed '${t.commandId}':\n${e}`)}))}}))):null})}});e.commands.addCommand(D.dismiss,{label:o.__("Dismiss a notification"),execute:e=>{const{id:t}=e;s.Notification.manager.dismiss(t)}});let a=null;r.listOpened=false;const c=s.ReactWidget.create(j.createElement(P,{manager:s.Notification.manager,onClose:()=>{a===null||a===void 0?void 0:a.dispose()},trans:o}));c.addClass("jp-Notification-Center");async function h(e,t){var n;if(r.doNotDisturbMode||a!==null&&!a.isDisposed){return}const{message:i,type:s,options:o,id:l}=t.notification;if(typeof o.autoClose==="number"&&o.autoClose<=0){return}switch(t.type){case"added":await O.createToast(l,i,s,o);break;case"updated":{const t=await O.toast();const r=o.actions;const a=(n=o.autoClose)!==null&&n!==void 0?n:r&&r.length>0?false:null;if(t.isActive(l)){const n=()=>{t.dismiss(l);e.dismiss(l)};t.update(l,{type:s==="in-progress"?null:s,isLoading:s==="in-progress",autoClose:a,render:O.createContent(i,n,o.actions)})}else{await O.createToast(l,i,s,o)}}break;case"removed":await O.toast().then((e=>{e.dismiss(l)}));break}}s.Notification.manager.changed.connect(h);const u=()=>{if(a){a.dispose();a=null}else{a=(0,S.showPopup)({body:c,anchor:p,align:"right",hasDynamicSize:true,startHidden:true});O.toast().then((e=>{e.dismiss()})).catch((e=>{console.error(`Failed to dismiss all toasts:\n${e}`)})).finally((()=>{a===null||a===void 0?void 0:a.launch();c.node.focus();a===null||a===void 0?void 0:a.disposed.connect((()=>{r.listOpened=false;a=null}))}))}r.listOpened=a!==null};e.commands.addCommand(D.display,{label:o.__("Show Notifications"),execute:u});const p=s.ReactWidget.create(j.createElement(d.UseSignal,{signal:r.stateChanged},(()=>{if(r.highlight||a&&!a.isDisposed){p.addClass("jp-mod-selected")}else{p.removeClass("jp-mod-selected")}return j.createElement(R,{count:r.count,highlight:r.highlight,trans:o,onClick:u})})));p.addClass("jp-Notification-Status");if(t){t.registerStatusItem(N.id,{item:p,align:"right",rank:-1})}else{p.addClass("jp-ThemedContainer");p.node.style.position="fixed";p.node.style.bottom="0";p.node.style.right="10px";k.Widget.attach(p,document.body);p.show()}}};var O;(function(e){e.translator=l.nullTranslator;let t=null;function i(e){var t;return j.createElement("button",{className:`jp-Button jp-mod-minimal ${E}${e.closeIconMargin?` ${T}`:""}`,title:(t=e.title)!==null&&t!==void 0?t:"",onClick:e.close},j.createElement(e.closeIcon,{className:"jp-icon-hover",tag:"span"}))}e.CloseButton=i;function o(t){const n=e.translator.load("jupyterlab");return j.createElement(i,{close:t.closeToast,closeIcon:d.closeIcon.react,title:n.__("Hide notification")})}let r=null;async function a(){if(r===null){r=new c.PromiseDelegate}else{await r.promise}if(t===null){t=await n.e(1210).then(n.t.bind(n,91210,23));const e=document.body.appendChild(document.createElement("div"));e.id="react-toastify-container";e.classList.add("jp-ThemedContainer");const i=(0,I.H)(e);i.render(j.createElement(t.ToastContainer,{draggable:false,closeOnClick:false,hideProgressBar:true,newestOnTop:true,pauseOnFocusLoss:true,pauseOnHover:true,position:"bottom-right",className:"jp-toastContainer",transition:t.Slide,closeButton:o}));r.resolve()}return t.toast}e.toast=a;async function h(){if(t===null){await a()}return t.Icons}e.getIcons=h;const u={accent:"jp-mod-accept",link:"jp-mod-link",warn:"jp-mod-warn",default:""};function p({action:e,closeToast:t}){var n,i;const s=n=>{e.callback(n);if(!n.defaultPrevented){t()}};const o=["jp-toast-button",u[(n=e.displayType)!==null&&n!==void 0?n:"default"]].join(" ");return j.createElement(d.Button,{title:(i=e.caption)!==null&&i!==void 0?i:e.label,className:o,onClick:s,small:true},e.label)}function m(e,t,n){var i;const s=e.length>M?e.slice(0,M)+"…":e;return j.createElement(j.Fragment,null,j.createElement("div",{className:"jp-toast-message"},s.split("\n").map(((e,t)=>j.createElement(j.Fragment,{key:`part-${t}`},t>0?j.createElement("br",null):null,e)))),((i=n===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0&&j.createElement("div",{className:"jp-toast-buttonBar"},j.createElement("div",{className:"jp-toast-spacer"}),n.map(((e,n)=>j.createElement(p,{key:"button-"+n,action:e,closeToast:t})))))}e.createContent=m;async function g(e,t,n,i={}){const{actions:o,autoClose:r,data:l}=i;const d=await a();const c={autoClose:r!==null&&r!==void 0?r:o&&o.length>0?false:undefined,data:l,className:`jp-Notification-Toast-${n}`,toastId:e,type:n==="in-progress"?null:n,isLoading:n==="in-progress"};return d((({closeToast:n})=>m(t,(()=>{if(n)n();s.Notification.manager.dismiss(e)}),o)),c)}e.createToast=g})(O||(O={}));var B=n(34236);var F=n(93247);var z;(function(e){e.activate="apputils:activate-command-palette"})(z||(z={}));const H="@jupyterlab/apputils-extension:palette";class W{constructor(e,t){this.translator=t||l.nullTranslator;const n=this.translator.load("jupyterlab");this._palette=e;this._palette.title.label="";this._palette.title.caption=n.__("Command Palette")}set placeholder(e){this._palette.inputNode.placeholder=e}get placeholder(){return this._palette.inputNode.placeholder}activate(){this._palette.activate()}addItem(e){const t=this._palette.addItem(e);return new h.DisposableDelegate((()=>{this._palette.removeItem(t)}))}}(function(e){function t(t,n,i){const{commands:o,shell:r}=t;const a=n.load("jupyterlab");const l=V.createPalette(t,n);const d=new s.ModalCommandPalette({commandPalette:l});let c=false;l.node.setAttribute("role","region");l.node.setAttribute("aria-label",a.__("Command Palette Section"));r.add(l,"left",{rank:300,type:"Command Palette"});if(i){const e=i.load(H);const n=e=>{const t=e.get("modal").composite;if(c&&!t){l.parent=null;d.detach();r.add(l,"left",{rank:300,type:"Command Palette"})}else if(!c&&t){l.parent=null;d.palette=l;l.show();d.attach()}c=t};Promise.all([e,t.restored]).then((([e])=>{n(e);e.changed.connect((e=>{n(e)}))})).catch((e=>{console.error(e.message)}))}const h=()=>{const e=(0,B.find)(t.commands.keyBindings,(e=>e.command===z.activate));if(e){const t=e.keys.map(F.CommandRegistry.formatKeystroke).join(", ");l.title.caption=a.__("Commands (%1)",t)}else{l.title.caption=a.__("Commands")}};h();t.commands.keyBindingChanged.connect((()=>{h()}));o.addCommand(z.activate,{execute:()=>{if(c){d.activate()}else{r.activateById(l.id)}},label:a.__("Activate Command Palette")});l.inputNode.placeholder=a.__("SEARCH");return new e(l,n)}e.activate=t;function n(e,t,n){const i=V.createPalette(e,n);t.add(i,"command-palette")}e.restore=n})(W||(W={}));var V;(function(e){let t;function n(e,n){if(!t){t=new k.CommandPalette({commands:e.commands,renderer:d.CommandPaletteSvg.defaultRenderer});t.id="command-palette";t.title.icon=d.paletteIcon;const i=n.load("jupyterlab");t.title.label=i.__("Commands")}return t}e.createPalette=n})(V||(V={}));class U extends a.DataConnector{constructor(e){super();this._throttlers=Object.create(null);this._connector=e}fetch(e){const t=this._throttlers;if(!(e in t)){t[e]=new u.Throttler((()=>this._connector.fetch(e)),100)}return t[e].invoke()}async list(e="all"){const{isDisabled:t}=o.PageConfig.Extension;const{ids:n,values:i}=await this._connector.list(e==="ids"?"ids":undefined);if(e==="all"){return{ids:n,values:i}}if(e==="ids"){return{ids:n}}return{ids:n.filter((e=>!t(e))),values:i.filter((({id:e})=>!t(e)))}}async save(e,t){await this._connector.save(e,t)}}const q={id:"@jupyterlab/apputils-extension:settings-connector",description:"Provides the settings connector.",autoStart:true,provides:r.ISettingConnector,activate:e=>new U(e.serviceManager.settings)};const $={id:"@jupyterlab/apputils-extension:settings",autoStart:true,provides:r.ISettingRegistry,optional:[r.ISettingConnector],description:"Provides the setting registry.",activate:async(e,t)=>{const{isDisabled:n}=o.PageConfig.Extension;const i=t!==null&&t!==void 0?t:new U(e.serviceManager.settings);const s=new r.SettingRegistry({connector:i,plugins:(await i.list("active")).values.filter((t=>e.hasPlugin(t.id)))});void e.restored.then((async()=>{const t=await i.list("ids");t.ids.forEach((async t=>{if(!e.hasPlugin(t)||n(t)||t in s.plugins){return}try{await s.load(t)}catch(i){console.warn(`Settings failed to load for (${t})`,i);if(!e.isPluginActivated(t)){console.warn(`If 'jupyter.lab.transform=true' in the plugin schema, this `+`may happen if {autoStart: false} in (${t}) or if it is `+`one of the deferredExtensions in page config.`)}}}))}));return s}};const K={id:"@jupyterlab/apputils-extension:kernel-status",description:"Provides the kernel status indicator model.",autoStart:true,requires:[S.IStatusBar],provides:s.IKernelStatusModel,optional:[s.ISessionContextDialogs,l.ITranslator,i.ILabShell],activate:(e,t,n,i,o)=>{const r=i!==null&&i!==void 0?i:l.nullTranslator;const a=n!==null&&n!==void 0?n:new s.SessionContextDialogs({translator:r});const d=async()=>{if(!h.model.sessionContext){return}await a.selectKernel(h.model.sessionContext)};const c=async e=>{if(e.key==="Enter"||e.key==="Spacebar"||e.key===" "){e.preventDefault();e.stopPropagation();return d()}};const h=new s.KernelStatus({onClick:d,onKeyDown:c},r);const u=new Set;const p=t=>{u.add(t);if(e.shell.currentWidget){m(e.shell,{newValue:e.shell.currentWidget,oldValue:null})}};function m(e,t){var n;const{oldValue:i,newValue:s}=t;if(i){i.title.changed.disconnect(g)}h.model.sessionContext=(n=[...u].map((e=>e(t.newValue))).filter((e=>e!==null))[0])!==null&&n!==void 0?n:null;if(s&&h.model.sessionContext){g(s.title);s.title.changed.connect(g)}}const g=e=>{h.model.activityName=e.label};if(o){o.currentChanged.connect(m)}t.registerStatusItem(K.id,{priority:1,item:h,align:"left",rank:1,isActive:()=>h.model.sessionContext!==null});return{addSessionProvider:p}}};const J={id:"@jupyterlab/apputils-extension:running-sessions-status",description:"Add the running sessions and terminals status bar item.",autoStart:true,requires:[S.IStatusBar,l.ITranslator],optional:[r.ISettingRegistry],activate:(e,t,n,i)=>{const o=t=>{const i=new s.RunningSessions({onClick:()=>e.shell.activateById("jp-running-sessions"),onKeyDown:t=>{if(t.key==="Enter"||t.key==="Spacebar"||t.key===" "){t.preventDefault();t.stopPropagation();e.shell.activateById("jp-running-sessions")}},serviceManager:e.serviceManager,translator:n,...t});i.model.sessions=Array.from(e.serviceManager.sessions.running()).length;i.model.terminals=Array.from(e.serviceManager.terminals.running()).length;return i};const r=e=>{const n=o(e);return t.registerStatusItem(J.id,{item:n,align:"left",rank:0})};if(i){let e;const t=(t,n)=>{var i,s;const o={"if-any":undefined,never:false,always:true};const a=(i=t===null||t===void 0?void 0:t.get("showStatusBarItem").composite)!==null&&i!==void 0?i:true;const l=o[(s=n===null||n===void 0?void 0:n.get("showStatusBarItem").composite)!==null&&s!==void 0?s:"if-any"];e===null||e===void 0?void 0:e.dispose();if(a||l!==false){e=r({showKernels:a,showTerminals:l})}};const n="@jupyterlab/apputils-extension:kernels-settings";const s="@jupyterlab/terminal-extension:plugin";void Promise.all([n in i.plugins?i.load(n).catch((()=>undefined)):Promise.resolve(undefined),s in i.plugins?i.load(s).catch((()=>undefined)):Promise.resolve(undefined)]).then((([e,n])=>{t(e,n);if(e){e.changed.connect((i=>{e=i;t(e,n)}))}if(n){n.changed.connect((i=>{n=i;t(e,n)}))}}))}else{r({showKernels:true})}}};const G={id:"@jupyterlab/apputils-extension:subshell-settings",description:"Kernel subshell settings.",autoStart:true,requires:[],optional:[r.ISettingRegistry],activate:(e,t)=>{if(t){e.started.then((async()=>{const n=await t.load("@jupyterlab/apputils-extension:kernels-settings");const i=n.get("commsOverSubshells").composite;e.serviceManager.kernels.commsOverSubshells=i;n.changed.connect((()=>{const t=n.get("commsOverSubshells").composite;e.serviceManager.kernels.commsOverSubshells=t}))})).catch((e=>{console.error("Fail to load settings for the subshells.");console.error(e)}))}}};const Y="/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n/*\n * Webkit scrollbar styling.\n * Separate file which is dynamically loaded based on user/theme settings.\n */\n\n/* use standard opaque scrollbars for most nodes */\n\n::-webkit-scrollbar,\n::-webkit-scrollbar-corner {\n background: var(--jp-scrollbar-background-color);\n}\n\n::-webkit-scrollbar-thumb {\n background: rgb(var(--jp-scrollbar-thumb-color));\n border: var(--jp-scrollbar-thumb-margin) solid transparent;\n background-clip: content-box;\n border-radius: var(--jp-scrollbar-thumb-radius);\n}\n\n::-webkit-scrollbar-track:horizontal {\n border-left: var(--jp-scrollbar-endpad) solid\n var(--jp-scrollbar-background-color);\n border-right: var(--jp-scrollbar-endpad) solid\n var(--jp-scrollbar-background-color);\n}\n\n::-webkit-scrollbar-track:vertical {\n border-top: var(--jp-scrollbar-endpad) solid\n var(--jp-scrollbar-background-color);\n border-bottom: var(--jp-scrollbar-endpad) solid\n var(--jp-scrollbar-background-color);\n}\n\n/* for code nodes, use a transparent style of scrollbar */\n\n.CodeMirror-hscrollbar::-webkit-scrollbar,\n.CodeMirror-vscrollbar::-webkit-scrollbar,\n.CodeMirror-hscrollbar::-webkit-scrollbar-corner,\n.CodeMirror-vscrollbar::-webkit-scrollbar-corner {\n background-color: transparent;\n}\n\n.CodeMirror-hscrollbar::-webkit-scrollbar-thumb,\n.CodeMirror-vscrollbar::-webkit-scrollbar-thumb {\n background: rgba(var(--jp-scrollbar-thumb-color), 0.5);\n border: var(--jp-scrollbar-thumb-margin) solid transparent;\n background-clip: content-box;\n border-radius: var(--jp-scrollbar-thumb-radius);\n}\n\n.CodeMirror-hscrollbar::-webkit-scrollbar-track:horizontal {\n border-left: var(--jp-scrollbar-endpad) solid transparent;\n border-right: var(--jp-scrollbar-endpad) solid transparent;\n}\n\n.CodeMirror-vscrollbar::-webkit-scrollbar-track:vertical {\n border-top: var(--jp-scrollbar-endpad) solid transparent;\n border-bottom: var(--jp-scrollbar-endpad) solid transparent;\n}\n";var X;(function(e){e.changeTheme="apputils:change-theme";e.changePreferredLightTheme="apputils:change-light-theme";e.changePreferredDarkTheme="apputils:change-dark-theme";e.toggleAdaptiveTheme="apputils:adaptive-theme";e.themeScrollbars="apputils:theme-scrollbars";e.changeFont="apputils:change-font";e.incrFontSize="apputils:incr-font-size";e.decrFontSize="apputils:decr-font-size"})(X||(X={}));function Q(e){const t=document.createElement("style");t.setAttribute("type","text/css");t.appendChild(document.createTextNode(e));return t}const Z={id:"@jupyterlab/apputils-extension:themes",description:"Provides the theme manager.",requires:[r.ISettingRegistry,i.JupyterFrontEnd.IPaths,l.ITranslator],optional:[s.ISplashScreen],activate:(e,t,n,i,r)=>{const a=i.load("jupyterlab");const l=e.shell;const d=e.commands;const c=o.URLExt.join(o.PageConfig.getBaseUrl(),n.urls.themes);const h=Z.id;const u=new s.ThemeManager({key:h,host:l,settings:t,splash:r!==null&&r!==void 0?r:undefined,url:c});let p=null;let m;u.themeChanged.connect(((e,t)=>{m=t.newValue;document.body.dataset.jpThemeLight=String(u.isLight(m));document.body.dataset.jpThemeName=m;document.body.style.colorScheme=u.isLight(m)?"light":"dark";if(document.body.dataset.jpThemeScrollbars!==String(u.themeScrollbars(m))){document.body.dataset.jpThemeScrollbars=String(u.themeScrollbars(m));if(u.themeScrollbars(m)){if(!p){p=Q(Y)}if(!p.parentElement){document.body.appendChild(p)}}else{if(p&&p.parentElement){p.parentElement.removeChild(p)}}}d.notifyCommandChanged(X.changeTheme)}));d.addCommand(X.changeTheme,{label:e=>{if(e.theme===undefined){return a.__("Switch to the provided `theme`.")}const t=e["theme"];const n=u.getDisplayName(t);return e["isPalette"]?a.__("Use Theme: %1",n):n},isToggled:e=>e["theme"]===m,execute:e=>{const t=e["theme"];if(t===u.theme){return}if(u.isToggledAdaptiveTheme()){return u.toggleAdaptiveTheme()}return u.setTheme(t)}});d.addCommand(X.changePreferredLightTheme,{label:e=>{if(e.theme===undefined){return a.__("Switch to the provided light `theme`.")}const t=e["theme"];const n=u.getDisplayName(t);return e["isPalette"]?a.__("Set Preferred Light Theme: %1",n):n},isToggled:e=>e["theme"]===u.preferredLightTheme,execute:e=>{const t=e["theme"];if(t===u.preferredLightTheme){return}return u.setPreferredLightTheme(t)}});d.addCommand(X.changePreferredDarkTheme,{label:e=>{if(e.theme===undefined){return a.__("Switch to the provided dark `theme`.")}const t=e["theme"];const n=u.getDisplayName(t);return e["isPalette"]?a.__("Set Preferred Dark Theme: %1",n):n},isToggled:e=>e["theme"]===u.preferredDarkTheme,execute:e=>{const t=e["theme"];if(t===u.preferredDarkTheme){return}return u.setPreferredDarkTheme(t)}});d.addCommand(X.toggleAdaptiveTheme,{label:e=>e["isPalette"]?a.__("Synchronize Styling Theme with System Settings"):a.__("Synchronize with System Settings"),isToggled:()=>u.isToggledAdaptiveTheme(),execute:()=>{u.toggleAdaptiveTheme().catch(console.warn)}});d.addCommand(X.themeScrollbars,{label:a.__("Theme Scrollbars"),isToggled:()=>u.isToggledThemeScrollbars(),execute:()=>u.toggleThemeScrollbars()});d.addCommand(X.changeFont,{label:e=>e["enabled"]?`${e["font"]}`:a.__("waiting for fonts"),isEnabled:e=>e["enabled"],isToggled:e=>u.getCSS(e["key"])===e["font"],execute:e=>u.setCSSOverride(e["key"],e["font"])});d.addCommand(X.incrFontSize,{label:e=>{switch(e.key){case"code-font-size":return a.__("Increase Code Font Size");case"content-font-size1":return a.__("Increase Content Font Size");case"ui-font-size1":return a.__("Increase UI Font Size");default:return a.__("Increase Font Size")}},execute:e=>u.incrFontSize(e["key"])});d.addCommand(X.decrFontSize,{label:e=>{switch(e.key){case"code-font-size":return a.__("Decrease Code Font Size");case"content-font-size1":return a.__("Decrease Content Font Size");case"ui-font-size1":return a.__("Decrease UI Font Size");default:return a.__("Decrease Font Size")}},execute:e=>u.decrFontSize(e["key"])});return u},autoStart:true,provides:s.IThemeManager};const ee={id:"@jupyterlab/apputils-extension:themes-palette-menu",description:"Adds theme commands to the menu and the command palette.",requires:[s.IThemeManager,l.ITranslator],optional:[s.ICommandPalette,y.IMainMenu],activate:(e,t,n,i,s)=>{const o=n.load("jupyterlab");if(s){void e.restored.then((()=>{var e;const n=false;const i=(e=s.settingsMenu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-settings-apputilstheme"})))===null||e===void 0?void 0:e.submenu;if(i){t.themes.forEach(((e,t)=>{i.insertItem(t,{command:X.changeTheme,args:{isPalette:n,theme:e}})}))}}))}if(i){void e.restored.then((()=>{const e=o.__("Theme");const n=X.changeTheme;const s=true;t.themes.forEach((t=>{i.addItem({command:n,args:{isPalette:s,theme:t},category:e})}));t.themes.forEach((t=>{i.addItem({command:X.changePreferredLightTheme,args:{isPalette:s,theme:t},category:e})}));t.themes.forEach((t=>{i.addItem({command:X.changePreferredDarkTheme,args:{isPalette:s,theme:t},category:e})}));i.addItem({command:X.toggleAdaptiveTheme,args:{isPalette:s},category:e});i.addItem({command:X.themeScrollbars,category:e});i.addItem({command:X.incrFontSize,args:{key:"code-font-size"},category:e});i.addItem({command:X.decrFontSize,args:{key:"code-font-size"},category:e});i.addItem({command:X.incrFontSize,args:{key:"content-font-size1"},category:e});i.addItem({command:X.decrFontSize,args:{key:"content-font-size1"},category:e});i.addItem({command:X.incrFontSize,args:{key:"ui-font-size1"},category:e});i.addItem({command:X.decrFontSize,args:{key:"ui-font-size1"},category:e})}))}},autoStart:true};const te={id:"@jupyterlab/apputils-extension:toolbar-registry",description:"Provides toolbar items registry.",autoStart:true,provides:s.IToolbarWidgetRegistry,activate:e=>{const t=new s.ToolbarWidgetRegistry({defaultFactory:(0,s.createDefaultFactory)(e.commands)});return t}};var ne=n(93037);var ie=n(6751);const se="jupyterlab-workspace";const oe="."+se;const re="workspace-ui:lastSave";const ae="jp-JupyterIcon";const le={id:"@jupyterlab/apputils-extension:workspaces",description:"Add workspace file type.",autoStart:true,requires:[a.IStateDB,l.ITranslator,i.JupyterFrontEnd.IPaths],optional:[i.IRouter,ie.IWorkspaceCommands],activate:(e,t,n,i,s,r)=>{const a=new de.WorkspaceFactory({workspaces:e.serviceManager.workspaces,state:t,translator:n,open:async t=>{if(r){await e.commands.execute(r.open,{workspace:t})}else{const e=o.URLExt.join(i.urls.app,"workspaces");const n=o.URLExt.join(e,t);if(!n.startsWith(e)){throw new Error("Can only be used for workspaces")}if(s){s.navigate(n,{hard:true})}else{document.location.href=n}}}});const l=n.load("jupyterlab");e.docRegistry.addFileType({name:se,contentType:"file",fileFormat:"text",displayName:l.__("JupyterLab Workspace File"),extensions:[oe],mimeTypes:["text/json"],iconClass:ae});e.docRegistry.addWidgetFactory(a)}};var de;(function(e){class t extends ne.ABCWidgetFactory{constructor(e){const t=(e.translator||l.nullTranslator).load("jupyterlab");super({name:"Workspace loader",label:t.__("Workspace loader"),fileTypes:[se],defaultFor:[se],readOnly:true});this._state=e.state;this._workspaces=e.workspaces;this._open=e.open}createNewWidget(e){void e.ready.then((async()=>{const t=e.model;const n=t.toJSON();const i=e.path;const s=n.metadata.id;await this._workspaces.save(s,n);await this._state.save(re,i);await this._open(s)}));return n(e)}}e.WorkspaceFactory=t;function n(e){const t=new ne.DocumentWidget({content:new k.Widget,context:e});t.content.dispose();return t}})(de||(de={}));var ce=n(76326);const he="jp-ContextualShortcut-TableRow";const ue="jp-ContextualShortcut-TableLastRow";const pe="jp-ContextualShortcut-TableItem";const me="jp-ContextualShortcut-Key";function ge(e){const{commands:t,trans:n,activeElement:i}=e;const o=i!==null&&i!==void 0?i:document.activeElement;function r(e){const t=[];e.forEach(((e,n)=>{const i=[];e.split(" ").forEach(((e,t)=>{i.push(j.createElement("span",{className:me,key:`ch-${t}`},j.createElement("kbd",null,e)),j.createElement(j.Fragment,{key:`fragment-${t}`}," + "))}));t.push(j.createElement("span",{key:`key-${n}`},i.slice(0,-1)),j.createElement(j.Fragment,{key:`fragment-${n}`}," + "))}));return j.createElement("span",null,t.slice(0,-1))}function a(e){const t=e.charAt(0).toUpperCase()+e.slice(1);return t}function l(e){const n=t.label(e.command);const i=e.command.split(":")[1];const s=i.split("-");let o="";for(let t=0;t0){return n}else{return o}}function d(e,t){let n=t;for(let i=0;n!==null&&n!==n.parentElement;n=n.parentElement,++i){if(n.hasAttribute("data-lm-suppress-shortcuts")){return-1}if(n.matches(e)){return i}}return-1}const c=new Map;for(let s=0;sce.Selector.calculateSpecificity(e.selector)){continue}}c.set(i,[n,e])}let h=-1;const u=new Map;for(let[s,g]of c.values()){h=Math.max(s,h);if(!u.has(s)){u.set(s,[])}u.get(s).push(g)}const p=[];for(let s=0;s<=h;s++){if(u.has(s)){p.push(u.get(s).map((e=>j.createElement("tr",{className:he,key:`${e.command}-${e.keys.join("-").replace(" ","_")}`},j.createElement("td",{className:pe},l(e)),j.createElement("td",{className:pe},r([...e.keys]))))));p.push(j.createElement("tr",{className:ue,key:`group-${s}-last`}))}}const m=j.createElement("table",null,j.createElement("tbody",null,p));return(0,s.showDialog)({title:n.__("Keyboard Shortcuts"),body:m,buttons:[s.Dialog.cancelButton({label:n.__("Close")})]})}const fe=12e3;var ve;(function(e){e.loadState="apputils:load-statedb";e.print="apputils:print";e.reset="apputils:reset";e.resetOnLoad="apputils:reset-on-load";e.runFirstEnabled="apputils:run-first-enabled";e.runAllEnabled="apputils:run-all-enabled";e.toggleHeader="apputils:toggle-header";e.displayShortcuts="apputils:display-shortcuts"})(ve||(ve={}));const _e={id:"@jupyterlab/apputils-extension:palette",description:"Provides the command palette.",autoStart:true,requires:[l.ITranslator],provides:s.ICommandPalette,optional:[r.ISettingRegistry],activate:(e,t,n)=>W.activate(e,t,n)};const be={id:"@jupyterlab/apputils-extension:palette-restorer",description:"Restores the command palette.",autoStart:true,requires:[i.ILayoutRestorer,l.ITranslator],activate:(e,t,n)=>{W.restore(e,t,n)}};const ye={id:"@jupyterlab/apputils-extension:resolver",description:"Provides the window name resolver.",autoStart:true,provides:s.IWindowResolver,requires:[i.JupyterFrontEnd.IPaths,i.IRouter],activate:async(e,t,n)=>{const{hash:i,search:r}=n.current;const a=o.URLExt.queryStringToObject(r||"");const l=new s.WindowResolver;const d=o.PageConfig.getOption("workspace");const c=o.PageConfig.getOption("treePath");const h=o.PageConfig.getOption("mode")==="multiple-document"?"lab":"doc";const u=d?d:o.PageConfig.defaultWorkspace;const p=c?o.URLExt.join("tree",c):"";try{await l.resolve(u);return l}catch(m){return new Promise((()=>{const{base:e}=t.urls;const s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";const r=s[Math.floor(Math.random()*s.length)];let l=o.URLExt.join(e,h,"workspaces",`auto-${r}`);l=p?o.URLExt.join(l,o.URLExt.encodeParts(p)):l;a["reset"]="";const d=l+o.URLExt.objectToQueryString(a)+(i||"");n.navigate(d,{hard:true})}))}}};const we={id:"@jupyterlab/apputils-extension:splash",description:"Provides the splash screen.",autoStart:true,requires:[l.ITranslator],provides:s.ISplashScreen,activate:(e,t)=>{const n=t.load("jupyterlab");const{commands:i,restored:o}=e;const r=document.createElement("div");const a=document.createElement("div");const l=document.createElement("div");r.id="jupyterlab-splash";a.id="galaxy";l.id="main-logo";d.jupyterFaviconIcon.element({container:l,stylesheet:"splash"});a.appendChild(l);["1","2","3"].forEach((e=>{const t=document.createElement("div");const n=document.createElement("div");t.id=`moon${e}`;t.className="moon orbit";n.id=`planet${e}`;n.className="planet";t.appendChild(n);a.appendChild(t)}));r.appendChild(a);let c;const p=new u.Throttler((async()=>{if(c){return}c=new s.Dialog({title:n.__("Loading…"),body:n.__(`The loading screen is taking a long time.\nWould you like to clear the workspace or keep waiting?`),buttons:[s.Dialog.cancelButton({label:n.__("Keep Waiting")}),s.Dialog.warnButton({label:n.__("Clear Workspace")})]});try{const e=await c.launch();c.dispose();c=null;if(e.button.accept&&i.hasCommand(ve.reset)){return i.execute(ve.reset)}requestAnimationFrame((()=>{void p.invoke().catch((e=>undefined))}))}catch(e){}}),{limit:fe,edge:"trailing"});let m=0;return{show:(e=true)=>{r.classList.remove("splash-fade");r.classList.toggle("light",e);r.classList.toggle("dark",!e);m++;document.body.appendChild(r);void p.invoke().catch((e=>undefined));return new h.DisposableDelegate((async()=>{await o;if(--m===0){void p.stop();if(c){c.dispose();c=null}r.classList.add("splash-fade");window.setTimeout((()=>{document.body.removeChild(r)}),200)}}))}}}};const Ce={id:"@jupyterlab/apputils-extension:print",description:"Add the print capability",autoStart:true,requires:[l.ITranslator],activate:(e,t)=>{var n;const i=t.load("jupyterlab");e.commands.addCommand(ve.print,{label:i.__("Print…"),isEnabled:()=>{const t=e.shell.currentWidget;return s.Printing.getPrintFunction(t)!==null},execute:async()=>{const t=e.shell.currentWidget;const n=s.Printing.getPrintFunction(t);if(n){await n()}}});(n=e.shell.currentChanged)===null||n===void 0?void 0:n.connect((()=>{e.commands.notifyCommandChanged(ve.print)}))}};const xe={id:"@jupyterlab/apputils-extension:toggle-header",description:"Adds a command to display the main area widget content header.",autoStart:true,requires:[l.ITranslator],optional:[s.ICommandPalette],activate:(e,t,n)=>{var i;const o=t.load("jupyterlab");const r=o.__("Main Area");e.commands.addCommand(ve.toggleHeader,{label:o.__("Show Header Above Content"),isEnabled:()=>e.shell.currentWidget instanceof s.MainAreaWidget&&!e.shell.currentWidget.contentHeader.isDisposed&&e.shell.currentWidget.contentHeader.widgets.length>0,isToggled:()=>{const t=e.shell.currentWidget;return t instanceof s.MainAreaWidget?!t.contentHeader.isHidden:false},execute:async()=>{const t=e.shell.currentWidget;if(t instanceof s.MainAreaWidget){t.contentHeader.setHidden(!t.contentHeader.isHidden)}}});(i=e.shell.currentChanged)===null||i===void 0?void 0:i.connect((()=>{e.commands.notifyCommandChanged(ve.toggleHeader)}));if(n){n.addItem({command:ve.toggleHeader,category:r})}}};async function Se(e,t,n){var i,s;const r=await t.toJSON();let a=(s=(i=r["layout-restorer:data"])===null||i===void 0?void 0:i.main)===null||s===void 0?void 0:s.current;if(a===undefined||!(a.startsWith("notebook")||a.startsWith("editor"))){document.title=`${o.PageConfig.getOption("appName")||"JupyterLab"}${e==="default"?"":` (${e})`}`}else{let t=o.PathExt.basename(decodeURIComponent(window.location.href));t=t.length>15?t.slice(0,12).concat(`…`):t;e=e.length>15?e.slice(0,12).concat(`…`):e;const i=Object.keys(r).filter((e=>e.startsWith("notebook")||e.startsWith("editor"))).length;document.title=`${t}${i>1?` (${i})`:``} - ${e==="default"?n:e}`}}const ke={id:"@jupyterlab/apputils-extension:state",description:"Provides the application state. It is stored per workspaces.",autoStart:true,provides:a.IStateDB,requires:[i.JupyterFrontEnd.IPaths,i.IRouter,l.ITranslator],optional:[s.IWindowResolver],activate:(e,t,n,i,s)=>{const r=i.load("jupyterlab");if(s===null){return new a.StateDB}let l=false;const{commands:d,name:h,serviceManager:p}=e;const{workspaces:m}=p;const g=s.name;const f=new c.PromiseDelegate;const v=new a.StateDB({transform:f.promise});const _=new u.Debouncer((async()=>{const e=g;const t={id:e};const n=await v.toJSON();await m.save(e,{data:n,metadata:t})}));v.changed.connect((()=>void _.invoke()),v);v.changed.connect((()=>Se(g,v,h)));d.addCommand(ve.loadState,{label:r.__("Load state for the current workspace."),execute:async e=>{if(l){return}const{hash:t,path:i,search:s}=e;const r=o.URLExt.queryStringToObject(s||"");const a=typeof r["clone"]==="string"?r["clone"]===""?o.PageConfig.defaultWorkspace:r["clone"]:null;const d=a||g||null;if(d===null){console.error(`${ve.loadState} cannot load null workspace.`);return}try{const e=await m.fetch(d);if(!l){l=true;f.resolve({type:"overwrite",contents:e.data})}}catch({message:c}){console.warn(`Fetching workspace "${g}" failed.`,c);if(!l){l=true;f.resolve({type:"cancel",contents:null})}}if(d===a){delete r["clone"];const e=i+o.URLExt.objectToQueryString(r)+t;const s=_.invoke().then((()=>n.stop));void s.then((()=>{n.navigate(e)}));return s}await _.invoke()}});d.addCommand(ve.reset,{label:r.__("Reset Application State"),execute:async({reload:e})=>{await v.clear();await _.invoke();if(e){n.reload()}}});d.addCommand(ve.resetOnLoad,{label:r.__("Reset state when loading for the workspace."),execute:e=>{const{hash:t,path:i,search:s}=e;const r=o.URLExt.queryStringToObject(s||"");const a="reset"in r;const d="clone"in r;if(!a){return}if(l){return n.reload()}l=true;f.resolve({type:"clear",contents:null});delete r["reset"];const c=i+o.URLExt.objectToQueryString(r)+t;const h=v.clear().then((()=>_.invoke()));if(d){void h.then((()=>{n.navigate(c,{hard:true})}))}else{void h.then((()=>{n.navigate(c)}))}return h}});n.register({command:ve.loadState,pattern:/.?/,rank:30});n.register({command:ve.resetOnLoad,pattern:/(\?reset|\&reset)($|&)/,rank:20});return v}};const je={id:"@jupyterlab/apputils-extension:sessionDialogs",description:"Provides the session context dialogs.",provides:s.ISessionContextDialogs,optional:[l.ITranslator,r.ISettingRegistry],autoStart:true,activate:async(e,t,n)=>new s.SessionContextDialogs({translator:t!==null&&t!==void 0?t:l.nullTranslator,settingRegistry:n!==null&&n!==void 0?n:null})};const Ie={id:"@jupyterlab/apputils-extension:utilityCommands",description:"Adds meta commands to run set of other commands.",requires:[l.ITranslator],optional:[s.ICommandPalette],autoStart:true,activate:(e,t,n)=>{const i=t.load("jupyterlab");const{commands:o}=e;o.addCommand(ve.runFirstEnabled,{label:i.__("Run First Enabled Command"),execute:t=>{const n=t.commands;const i=t.args;const s=Array.isArray(t);for(let o=0;o{var n,i;const s=(n=t.commands)!==null&&n!==void 0?n:[];const o=t.args;const r=Array.isArray(t);const a=(i=t.errorIfNotEnabled)!==null&&i!==void 0?i:false;for(let l=0;l{var n;const i=(n=t.commands)!==null&&n!==void 0?n:[];const s=t.args;const o=Array.isArray(t);return i.some(((t,n)=>e.commands.isEnabled(t,o?s[n]:s)))}});o.addCommand(ve.displayShortcuts,{label:i.__("Show Keyboard Shortcuts…"),caption:i.__("Show relevant keyboard shortcuts for the current active widget"),execute:t=>{var n;const r=e.shell.currentWidget;const a=r===null||r===void 0?void 0:r.node.contains(document.activeElement);if(!a&&r instanceof s.MainAreaWidget){const e=(n=r.content.node)!==null&&n!==void 0?n:r===null||r===void 0?void 0:r.node;e===null||e===void 0?void 0:e.focus()}const l={commands:o,trans:i};return ge(l)}});if(n){const e=i.__("Help");n.addItem({command:ve.displayShortcuts,category:e})}}};const Ee={id:"@jupyterlab/apputils-extension:sanitizer",description:"Provides the HTML sanitizer.",autoStart:true,provides:s.ISanitizer,requires:[r.ISettingRegistry],activate:(e,t)=>{const n=new s.Sanitizer;const i=e=>{const t=e.get("allowedSchemes").composite;const i=e.get("autolink").composite;const s=e.get("allowNamedProperties").composite;if(t){n.setAllowedSchemes(t)}n.setAutolink(i);n.setAllowNamedProperties(s)};t.load("@jupyterlab/apputils-extension:sanitizer").then((e=>{i(e);e.changed.connect(i)})).catch((e=>{console.error(`Failed to load sanitizer settings:`,e)}));return n}};const Te={id:"@jupyterlab/apputils-extension:kernels-settings",description:"Reserves the name for kernel settings.",autoStart:true,requires:[r.ISettingRegistry],activate:(e,t)=>{void t.load(Te.id)}};const Me=[Te,b,K,C,x,N,_e,be,Ce,ye,J,G,Ee,q,$,ke,we,je,Z,ee,xe,te,Ie,le];const De=Me},25313:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(97913);var a=n(79010);var l=n(3579);var d=n(67996);var c=n(85072);var h=n.n(c);var u=n(97825);var p=n.n(u);var m=n(77659);var g=n.n(m);var f=n(55056);var v=n.n(f);var _=n(10540);var b=n.n(_);var y=n(41113);var w=n.n(y);var C=n(61510);var x={};x.styleTagTransform=w();x.setAttributes=v();x.insert=g().bind(null,"head");x.domAPI=p();x.insertStyleElement=b();var S=h()(C.A,x);const k=C.A&&C.A.locals?C.A.locals:undefined},12253:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Clipboard:()=>M,Collapse:()=>i.Collapser,CommandLinker:()=>L,CommandToolbarButton:()=>i.CommandToolbarButton,CommandToolbarButtonComponent:()=>i.CommandToolbarButtonComponent,DOMUtils:()=>B,Dialog:()=>v,HoverBox:()=>i.HoverBox,ICommandPalette:()=>be,IFrame:()=>i.IFrame,IKernelStatusModel:()=>ye,ILicensesClient:()=>we,ISanitizer:()=>Se,ISessionContextDialogs:()=>Ce,ISplashScreen:()=>ke,IThemeManager:()=>xe,IToolbarWidgetRegistry:()=>Ie,IWindowResolver:()=>je,InputDialog:()=>H,KernelStatus:()=>k,Licenses:()=>Z,MainAreaWidget:()=>ne,MenuFactory:()=>ie,ModalCommandPalette:()=>N,Notification:()=>oe,NotificationManager:()=>se,Printing:()=>ee,ReactWidget:()=>i.ReactWidget,RunningSessions:()=>le,Sanitizer:()=>ue,SemanticCommand:()=>pe,SessionContext:()=>b,SessionContextDialogs:()=>y,Spinner:()=>i.Spinner,Styling:()=>i.Styling,ThemeManager:()=>ve,Toolbar:()=>ze,ToolbarButton:()=>i.ToolbarButton,ToolbarButtonComponent:()=>i.ToolbarButtonComponent,ToolbarWidgetRegistry:()=>Ee,UseSignal:()=>i.UseSignal,VDomModel:()=>i.VDomModel,VDomRenderer:()=>i.VDomRenderer,WidgetTracker:()=>m,WindowResolver:()=>Be,addCommandToolbarButtonClass:()=>i.addCommandToolbarButtonClass,addToolbarButtonClass:()=>i.addToolbarButtonClass,createDefaultFactory:()=>Te,createToolbarFactory:()=>Ne,setToolbar:()=>Oe,showDialog:()=>g,showErrorMessage:()=>f,translateKernelStatuses:()=>x});var i=n(26331);var s=n(30619);var o=n(1143);var r=n(44914);var a=n.n(r);var l=n(30397);var d=n(34236);var c=n(5592);var h=n(2336);var u=n(42856);var p=n(94931);class m{constructor(e){this._currentChanged=new h.Signal(this);this._deferred=null;this._isDisposed=false;this._widgetAdded=new h.Signal(this);this._widgetUpdated=new h.Signal(this);const t=this._focusTracker=new o.FocusTracker;const n=this._pool=new p.RestorablePool(e);this.namespace=e.namespace;t.currentChanged.connect(((e,t)=>{if(t.newValue!==this.currentWidget){n.current=t.newValue}}),this);n.added.connect(((e,t)=>{this._widgetAdded.emit(t)}),this);n.currentChanged.connect(((e,i)=>{if(i===null&&t.currentWidget){n.current=t.currentWidget;return}this.onCurrentChanged(i);this._currentChanged.emit(i)}),this);n.updated.connect(((e,t)=>{this._widgetUpdated.emit(t)}),this)}get currentChanged(){return this._currentChanged}get currentWidget(){return this._pool.current||null}get restored(){if(this._deferred){return Promise.resolve()}else{return this._pool.restored}}get size(){return this._pool.size}get widgetAdded(){return this._widgetAdded}get widgetUpdated(){return this._widgetUpdated}async add(e){this._focusTracker.add(e);await this._pool.add(e);if(!this._focusTracker.activeWidget){this._pool.current=e}}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._pool.dispose();this._focusTracker.dispose();h.Signal.clearData(this)}find(e){return this._pool.find(e)}forEach(e){return this._pool.forEach(e)}filter(e){return this._pool.filter(e)}inject(e){return this._pool.inject(e)}has(e){return this._pool.has(e)}async restore(e){const t=this._deferred;if(t){this._deferred=null;return this._pool.restore(t)}if(e){return this._pool.restore(e)}console.warn("No options provided to restore the tracker.")}defer(e){this._deferred=e}async save(e){return this._pool.save(e)}onCurrentChanged(e){}}function g(e={}){const t=new v(e);return t.launch()}function f(e,t,n){const i=v.translator.load("jupyterlab");n=n!==null&&n!==void 0?n:[v.cancelButton({label:i.__("Close")})];console.warn("Showing error:",t);const s=typeof t==="string"?t:t.message;const o=e+"----"+s;const r=_.errorMessagePromiseCache.get(o);if(r){return r}else{const t=g({title:e,body:s,buttons:n}).then((()=>{_.errorMessagePromiseCache.delete(o)}),(e=>{_.errorMessagePromiseCache.delete(o);throw e}));_.errorMessagePromiseCache.set(o,t);return t}}class v extends o.Widget{constructor(e={}){const t=document.createElement("dialog");t.ariaModal="true";super({node:t});this._hasValidationErrors=false;this._ready=new c.PromiseDelegate;this._focusNodeSelector="";this.addClass("jp-Dialog");this.addClass("jp-ThemedContainer");const n=_.handleOptions(e);const i=n.renderer;this._host=n.host;this._defaultButton=n.defaultButton;this._buttons=n.buttons;this._hasClose=n.hasClose;this._buttonNodes=this._buttons.map((e=>i.createButtonNode(e)));this._checkboxNode=null;this._lastMouseDownInDialog=false;if(n.checkbox){const{label:e="",caption:t="",checked:s=false,className:o=""}=n.checkbox;this._checkboxNode=i.createCheckboxNode({label:e,caption:t!==null&&t!==void 0?t:e,checked:s,className:o})}const s=this.layout=new o.PanelLayout;const r=new o.Panel;r.addClass("jp-Dialog-content");if(typeof e.body==="string"){r.addClass("jp-Dialog-content-small");t.ariaLabel=[n.title,e.body].join(" ")}s.addWidget(r);this._body=n.body;const a=i.createHeader(n.title,(()=>this.reject()),e);const l=i.createBody(n.body);const d=i.createFooter(this._buttonNodes,this._checkboxNode);r.addWidget(a);r.addWidget(l);r.addWidget(d);this._bodyWidget=l;this._primary=this._buttonNodes[this._defaultButton];this._focusNodeSelector=e.focusNodeSelector;void v.tracker.add(this)}get ready(){return this._ready.promise}dispose(){const e=this._promise;if(e){this._promise=null;e.reject(void 0);d.ArrayExt.removeFirstOf(_.launchQueue,e.promise)}super.dispose()}launch(){if(this._promise){return this._promise.promise}const e=this._promise=new c.PromiseDelegate;const t=Promise.all(_.launchQueue);_.launchQueue.push(this._promise.promise);return t.then((()=>{if(!this._promise){return Promise.resolve({button:v.cancelButton(),isChecked:null,value:null})}o.Widget.attach(this,this._host);return e.promise}))}resolve(e){if(!this._promise){return}if(e===undefined){e=this._defaultButton}this._resolve(this._buttons[e])}reject(){if(!this._promise){return}this._resolve(v.cancelButton())}handleEvent(e){switch(e.type){case"keydown":this._evtKeydown(e);break;case"mousedown":this._evtMouseDown(e);break;case"click":this._evtClick(e);break;case"input":this._evtInput(e);break;case"focus":this._evtFocus(e);break;case"contextmenu":e.preventDefault();e.stopPropagation();break;default:break}}onAfterAttach(e){const t=this.node;t.addEventListener("keydown",this,true);t.addEventListener("contextmenu",this,true);t.addEventListener("click",this,true);document.addEventListener("mousedown",this,true);document.addEventListener("focus",this,true);document.addEventListener("input",this,true);this._first=_.findFirstFocusable(this.node);this._original=document.activeElement;const n=()=>{var e;if(this._focusNodeSelector){const e=this.node.querySelector(".jp-Dialog-body");const t=e===null||e===void 0?void 0:e.querySelector(this._focusNodeSelector);if(t){this._primary=t}}(e=this._primary)===null||e===void 0?void 0:e.focus();this._ready.resolve()};if(this._bodyWidget instanceof i.ReactWidget&&this._bodyWidget.renderPromise!==undefined){this._bodyWidget.renderPromise.then((()=>{n()})).catch((()=>{console.error("Error while loading Dialog's body")}))}else{n()}}onAfterDetach(e){const t=this.node;t.removeEventListener("keydown",this,true);t.removeEventListener("contextmenu",this,true);t.removeEventListener("click",this,true);document.removeEventListener("focus",this,true);document.removeEventListener("mousedown",this,true);document.removeEventListener("input",this,true);this._original.focus()}onCloseRequest(e){if(this._promise){this.reject()}super.onCloseRequest(e)}_evtInput(e){this._hasValidationErrors=!!this.node.querySelector(":invalid");for(let t=0;t{e.dispose()}))}e.flush=d;class c{createHeader(t,n=()=>{},s={}){let o;const a=e=>{if(e.button===0){e.preventDefault();n()}};const l=e=>{const{key:t}=e;if(t==="Enter"||t===" "){n()}};if(typeof t==="string"){const n=e.translator.load("jupyterlab");o=i.ReactWidget.create(r.createElement(r.Fragment,null,t,s.hasClose&&r.createElement(i.Button,{className:"jp-Dialog-close-button",onMouseDown:a,onKeyDown:l,title:n.__("Cancel"),minimal:true},r.createElement(i.LabIcon.resolveReact,{icon:i.closeIcon,tag:"span"}))))}else{o=i.ReactWidget.create(t)}o.addClass("jp-Dialog-header");i.Styling.styleNode(o.node);return o}createBody(e){const t=e=>{if(e.renderPromise!==undefined){e.renderPromise.then((()=>{i.Styling.styleNode(e.node)})).catch((()=>{console.error("Error while loading Dialog's body")}))}else{i.Styling.styleNode(e.node)}};let n;if(typeof e==="string"){n=new o.Widget({node:document.createElement("span")});n.node.textContent=e}else if(e instanceof o.Widget){n=e;if(n instanceof i.ReactWidget){t(n)}else{i.Styling.styleNode(n.node)}}else{n=i.ReactWidget.create(e);u.MessageLoop.sendMessage(n,o.Widget.Msg.UpdateRequest);t(n)}n.addClass("jp-Dialog-body");return n}createFooter(e,t){const n=new o.Widget;n.addClass("jp-Dialog-footer");if(t){n.node.appendChild(t);n.node.insertAdjacentHTML("beforeend",'')}const s=document.createElement("div");for(const i of e){s.appendChild(i)}n.node.appendChild(s);i.Styling.styleNode(n.node);return n}createButtonNode(e){const t=document.createElement("button");t.className=this.createItemClass(e);t.appendChild(this.renderIcon(e));t.appendChild(this.renderLabel(e));return t}createCheckboxNode(e){const t=document.createElement("label");t.className="jp-Dialog-checkbox";if(e.className){t.classList.add(e.className)}t.title=e.caption;t.textContent=e.label;const n=document.createElement("input");n.type="checkbox";n.checked=!!e.checked;t.insertAdjacentElement("afterbegin",n);return t}createItemClass(e){let t="jp-Dialog-button";if(e.accept){t+=" jp-mod-accept"}else{t+=" jp-mod-reject"}if(e.displayType==="warn"){t+=" jp-mod-warn"}const n=e.className;if(n){t+=` ${n}`}return t}renderIcon(e){const t=document.createElement("div");t.className=this.createIconClass(e);t.appendChild(document.createTextNode(e.iconLabel));return t}createIconClass(e){const t="jp-Dialog-buttonIcon";const n=e.iconClass;return n?`${t} ${n}`:t}renderLabel(e){const t=document.createElement("div");t.className="jp-Dialog-buttonLabel";t.title=e.caption;t.ariaLabel=e.ariaLabel;t.appendChild(document.createTextNode(e.label));return t}}e.Renderer=c;e.defaultRenderer=new c;e.tracker=new m({namespace:"@jupyterlab/apputils:Dialog"})})(v||(v={}));var _;(function(e){e.launchQueue=[];e.errorMessagePromiseCache=new Map;function t(e={}){var t,n,i,s,o,r,a,l,d;const c=(t=e.buttons)!==null&&t!==void 0?t:[v.cancelButton(),v.okButton()];return{title:(n=e.title)!==null&&n!==void 0?n:"",body:(i=e.body)!==null&&i!==void 0?i:"",host:(s=e.host)!==null&&s!==void 0?s:document.body,checkbox:(o=e.checkbox)!==null&&o!==void 0?o:null,buttons:c,defaultButton:(r=e.defaultButton)!==null&&r!==void 0?r:c.length-1,renderer:(a=e.renderer)!==null&&a!==void 0?a:v.defaultRenderer,focusNodeSelector:(l=e.focusNodeSelector)!==null&&l!==void 0?l:"",hasClose:(d=e.hasClose)!==null&&d!==void 0?d:true}}e.handleOptions=t;function n(e){const t=["input","select","a[href]","textarea","button","[tabindex]"].join(",");return e.querySelectorAll(t)[0]}e.findFirstFocusable=n})(_||(_={}));class b{constructor(e){var t,n,i,o;this._path="";this._name="";this._type="";this._prevKernelName="";this._isDisposed=false;this._disposed=new h.Signal(this);this._session=null;this._ready=new c.PromiseDelegate;this._initializing=false;this._initStarted=new c.PromiseDelegate;this._initPromise=new c.PromiseDelegate;this._isReady=false;this._isTerminating=false;this._isRestarting=false;this._kernelChanged=new h.Signal(this);this._preferenceChanged=new h.Signal(this);this._sessionChanged=new h.Signal(this);this._statusChanged=new h.Signal(this);this._connectionStatusChanged=new h.Signal(this);this._pendingInput=false;this._iopubMessage=new h.Signal(this);this._unhandledMessage=new h.Signal(this);this._propertyChanged=new h.Signal(this);this._dialog=null;this._busyDisposable=null;this._pendingKernelName="";this._pendingSessionRequest="";this.kernelManager=e.kernelManager;this.sessionManager=e.sessionManager;this.specsManager=e.specsManager;this.translator=e.translator||s.nullTranslator;this._trans=this.translator.load("jupyterlab");this._path=(t=e.path)!==null&&t!==void 0?t:c.UUID.uuid4();this._type=(n=e.type)!==null&&n!==void 0?n:"";this._name=(i=e.name)!==null&&i!==void 0?i:"";this._setBusy=e.setBusy;this._kernelPreference=(o=e.kernelPreference)!==null&&o!==void 0?o:{}}get session(){var e;return(e=this._session)!==null&&e!==void 0?e:null}get path(){return this._path}get type(){return this._type}get name(){return this._name}get kernelChanged(){return this._kernelChanged}get sessionChanged(){return this._sessionChanged}get statusChanged(){return this._statusChanged}get pendingInput(){return this._pendingInput}get connectionStatusChanged(){return this._connectionStatusChanged}get iopubMessage(){return this._iopubMessage}get unhandledMessage(){return this._unhandledMessage}get propertyChanged(){return this._propertyChanged}get kernelPreference(){return this._kernelPreference}set kernelPreference(e){if(!c.JSONExt.deepEqual(e,this._kernelPreference)){const t=this._kernelPreference;this._kernelPreference=e;this._preferenceChanged.emit({name:"kernelPreference",oldValue:t,newValue:c.JSONExt.deepCopy(e)})}}get kernelPreferenceChanged(){return this._preferenceChanged}get isReady(){return this._isReady}get ready(){return this._ready.promise}get isTerminating(){return this._isTerminating}get isRestarting(){return this._isRestarting}get hasNoKernel(){return this.kernelDisplayName===this.noKernelName}get kernelDisplayName(){var e,t,n,i,s,o,r;const a=(e=this.session)===null||e===void 0?void 0:e.kernel;if(this._pendingKernelName===this.noKernelName){return this.noKernelName}if(this._pendingKernelName){return(i=(n=(t=this.specsManager.specs)===null||t===void 0?void 0:t.kernelspecs[this._pendingKernelName])===null||n===void 0?void 0:n.display_name)!==null&&i!==void 0?i:this._pendingKernelName}if(!a){return this.noKernelName}return(r=(o=(s=this.specsManager.specs)===null||s===void 0?void 0:s.kernelspecs[a.name])===null||o===void 0?void 0:o.display_name)!==null&&r!==void 0?r:a.name}get kernelDisplayStatus(){var e,t;const n=(e=this.session)===null||e===void 0?void 0:e.kernel;if(this._isTerminating){return"terminating"}if(this._isRestarting){return"restarting"}if(this._pendingKernelName===this.noKernelName){return"unknown"}if(!n&&this._pendingKernelName){return"initializing"}if(!n&&!this.isReady&&this.kernelPreference.canStart!==false&&this.kernelPreference.shouldStart!==false){return"initializing"}return(t=(n===null||n===void 0?void 0:n.connectionStatus)==="connected"?n===null||n===void 0?void 0:n.status:n===null||n===void 0?void 0:n.connectionStatus)!==null&&t!==void 0?t:"unknown"}get prevKernelName(){return this._prevKernelName}get isDisposed(){return this._isDisposed}get disposed(){return this._disposed}get noKernelName(){return this._trans.__("No Kernel")}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._disposed.emit();if(this._session){if(this.kernelPreference.shutdownOnDispose){this.sessionManager.shutdown(this._session.id).catch((e=>{console.error(`Kernel not shut down ${e}`)}))}this._session.dispose();this._session=null}if(this._dialog){this._dialog.dispose()}if(this._busyDisposable){this._busyDisposable.dispose();this._busyDisposable=null}h.Signal.clearData(this)}async startKernel(){const e=this.kernelPreference;if(!e.autoStartDefault&&e.shouldStart===false){return true}let t;if(e.id){t={id:e.id}}else{const n=w.getDefaultKernel({specs:this.specsManager.specs,sessions:this.sessionManager.running(),preference:e});if(n){t={name:n}}}if(t){try{await this._changeKernel(t);return false}catch(n){}}return true}async restartKernel(){var e,t,n,i,s,o;const r=((e=this.session)===null||e===void 0?void 0:e.kernel)||null;if(this._isRestarting){return}this._isRestarting=true;this._isReady=false;this._statusChanged.emit("restarting");try{await((n=(t=this.session)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.restart());this._isReady=true}catch(a){console.error(a)}this._isRestarting=false;this._statusChanged.emit(((s=(i=this.session)===null||i===void 0?void 0:i.kernel)===null||s===void 0?void 0:s.status)||"unknown");this._kernelChanged.emit({name:"kernel",oldValue:r,newValue:((o=this.session)===null||o===void 0?void 0:o.kernel)||null})}async changeKernel(e={}){if(this.isDisposed){throw new Error("Disposed")}await this._initStarted.promise;return this._changeKernel(e)}async shutdown(){if(this.isDisposed||!this._initializing){return}await this._initStarted.promise;this._pendingSessionRequest="";this._pendingKernelName=this.noKernelName;return this._shutdownSession()}async initialize(){if(this._initializing){return this._initPromise.promise}this._initializing=true;const e=await this._initialize();if(!e){this._isReady=true;this._ready.resolve(undefined)}if(!this._pendingSessionRequest){this._initStarted.resolve(void 0)}this._initPromise.resolve(e);return e}async _initialize(){const e=this.sessionManager;await e.ready;await e.refreshRunning();const t=(0,d.find)(e.running(),(e=>e.path===this._path));if(t){try{const n=e.connectTo({model:t});this._handleNewSession(n)}catch(n){void this._handleSessionError(n);return Promise.reject(n)}}return await this._startIfNecessary()}async _shutdownSession(){var e;const t=this._session;const n=this._isTerminating;const i=this._isReady;this._isTerminating=true;this._isReady=false;this._statusChanged.emit("terminating");try{await(t===null||t===void 0?void 0:t.shutdown());this._isTerminating=false;t===null||t===void 0?void 0:t.dispose();this._session=null;const e=(t===null||t===void 0?void 0:t.kernel)||null;this._statusChanged.emit("unknown");this._kernelChanged.emit({name:"kernel",oldValue:e,newValue:null});this._sessionChanged.emit({name:"session",oldValue:t,newValue:null})}catch(s){this._isTerminating=n;this._isReady=i;const o=(e=t===null||t===void 0?void 0:t.kernel)===null||e===void 0?void 0:e.status;if(o===undefined){this._statusChanged.emit("unknown")}else{this._statusChanged.emit(o)}throw s}return}async _startIfNecessary(){var e;const t=this.kernelPreference;if(this.isDisposed||((e=this.session)===null||e===void 0?void 0:e.kernel)||t.shouldStart===false||t.canStart===false){return false}return this.startKernel()}async _changeKernel(e={}){if(e.name){this._pendingKernelName=e.name}if(!this._session){this._kernelChanged.emit({name:"kernel",oldValue:null,newValue:null})}if(!this._pendingSessionRequest){this._initStarted.resolve(void 0)}if(this._session&&!this._isTerminating){try{await this._session.changeKernel(e);return this._session.kernel}catch(i){void this._handleSessionError(i);throw i}}const t=l.PathExt.dirname(this._path);const n=this._pendingSessionRequest=l.PathExt.join(t,c.UUID.uuid4());try{this._statusChanged.emit("starting");const t=await this.sessionManager.startNew({path:n,type:this._type,name:this._name,kernel:e});if(this._pendingSessionRequest!==t.path){await t.shutdown();t.dispose();return null}await t.setPath(this._path);await t.setName(this._name);if(this._session&&!this._isTerminating){await this._shutdownSession()}return this._handleNewSession(t)}catch(i){void this._handleSessionError(i);throw i}}_handleNewSession(e){var t,n,i;if(this.isDisposed){throw Error("Disposed")}if(!this._isReady){this._isReady=true;this._ready.resolve(undefined)}if(this._session){this._session.dispose()}this._session=e;this._pendingKernelName="";if(e){this._prevKernelName=(n=(t=e.kernel)===null||t===void 0?void 0:t.name)!==null&&n!==void 0?n:"";e.disposed.connect(this._onSessionDisposed,this);e.propertyChanged.connect(this._onPropertyChanged,this);e.kernelChanged.connect(this._onKernelChanged,this);e.statusChanged.connect(this._onStatusChanged,this);e.connectionStatusChanged.connect(this._onConnectionStatusChanged,this);e.pendingInput.connect(this._onPendingInput,this);e.iopubMessage.connect(this._onIopubMessage,this);e.unhandledMessage.connect(this._onUnhandledMessage,this);if(e.path!==this._path){this._onPropertyChanged(e,"path")}if(e.name!==this._name){this._onPropertyChanged(e,"name")}if(e.type!==this._type){this._onPropertyChanged(e,"type")}}this._sessionChanged.emit({name:"session",oldValue:null,newValue:e});this._kernelChanged.emit({oldValue:null,newValue:(e===null||e===void 0?void 0:e.kernel)||null,name:"kernel"});this._statusChanged.emit(((i=e===null||e===void 0?void 0:e.kernel)===null||i===void 0?void 0:i.status)||"unknown");return(e===null||e===void 0?void 0:e.kernel)||null}async _handleSessionError(e){this._handleNewSession(null);let t="";let n="";try{t=e.traceback;n=e.message}catch(e){}await this._displayKernelError(n,t)}async _displayKernelError(e,t){const n=r.createElement("div",null,e&&r.createElement("pre",null,e),t&&r.createElement("details",{className:"jp-mod-wide"},r.createElement("pre",null,t)));const i=this._dialog=new v({title:this._trans.__("Error Starting Kernel"),body:n,buttons:[v.okButton()]});await i.launch();this._dialog=null}_onSessionDisposed(){if(this._session){const e=this._session;this._session=null;const t=this._session;this._sessionChanged.emit({name:"session",oldValue:e,newValue:t})}}_onPropertyChanged(e,t){switch(t){case"path":this._path=e.path;break;case"name":this._name=e.name;break;case"type":this._type=e.type;break;default:throw new Error(`unrecognized property ${t}`)}this._propertyChanged.emit(t)}_onKernelChanged(e,t){this._kernelChanged.emit(t)}_onStatusChanged(e,t){var n;if(t==="dead"){const t=(n=e.kernel)===null||n===void 0?void 0:n.model;if(t===null||t===void 0?void 0:t.reason){const e=t.traceback||"";void this._displayKernelError(t.reason,e)}}if(this._setBusy){if(t==="busy"){if(!this._busyDisposable){this._busyDisposable=this._setBusy()}}else{if(this._busyDisposable){this._busyDisposable.dispose();this._busyDisposable=null}}}this._statusChanged.emit(t)}_onConnectionStatusChanged(e,t){this._connectionStatusChanged.emit(t)}_onPendingInput(e,t){this._pendingInput=t}_onIopubMessage(e,t){if(t.header.msg_type==="shutdown_reply"){this.session.kernel.removeInputGuard()}this._iopubMessage.emit(t)}_onUnhandledMessage(e,t){this._unhandledMessage.emit(t)}}(function(e){function t(e){const{preference:t}=e;const{shouldStart:n}=t;if(n===false){return null}return w.getDefaultKernel(e)}e.getDefaultKernel=t})(b||(b={}));class y{constructor(e={}){var t;this._translator=(t=e.translator)!==null&&t!==void 0?t:s.nullTranslator;this._settingRegistry=e.settingRegistry||null}async selectKernel(e){if(e.isDisposed){return Promise.resolve()}const t=this._translator;const n=t.load("jupyterlab");let i=n.__("Cancel");if(e.hasNoKernel){i=e.kernelDisplayName}const s=[v.cancelButton({label:i}),v.okButton({label:n.__("Select"),ariaLabel:n.__("Select Kernel")})];const o=e.kernelPreference.autoStartDefault;const r=typeof o==="boolean";const a=new v({title:n.__("Select Kernel"),body:w.createKernelSelector(e,t),buttons:s,checkbox:r?{label:n.__("Always start the preferred kernel"),caption:n.__("Remember my choice and always start the preferred kernel"),checked:o}:null});const l=await a.launch();if(e.isDisposed||!l.button.accept){return}if(r&&l.isChecked!==null){e.kernelPreference={...e.kernelPreference,autoStartDefault:l.isChecked}}const d=l.value;if(d===null&&!e.hasNoKernel){return e.shutdown()}if(d){await e.changeKernel(d)}}async restart(e){var t,n,i,s,o;const r=this._translator.load("jupyterlab");await e.initialize();if(e.isDisposed){throw new Error("session already disposed")}const a=(t=e.session)===null||t===void 0?void 0:t.kernel;if(!a&&e.prevKernelName){await e.changeKernel({name:e.prevKernelName});return true}if(!a){throw new Error("No kernel to restart")}const l="@jupyterlab/apputils-extension:sessionDialogs";const d=(i=(n=e.kernelPreference)===null||n===void 0?void 0:n.skipKernelRestartDialog)!==null&&i!==void 0?i:false;const c=(o=await((s=this._settingRegistry)===null||s===void 0?void 0:s.get(l,"skipKernelRestartDialog")))===null||o===void 0?void 0:o.composite;if(c||d){await e.restartKernel();return true}const h=v.warnButton({label:r.__("Restart"),ariaLabel:r.__("Confirm Kernel Restart")});const u=await g({title:r.__("Restart Kernel?"),body:r.__("Do you want to restart the kernel of %1? All variables will be lost.",e.name),buttons:[v.cancelButton({ariaLabel:r.__("Cancel Kernel Restart")}),h],checkbox:{label:r.__("Do not ask me again."),caption:r.__("If checked, the kernel will restart without confirmation prompt in the future; you can change this back in the settings.")}});if(a.isDisposed){return false}if(u.button.accept){if(typeof u.isChecked==="boolean"&&u.isChecked==true){e.kernelPreference={...e.kernelPreference,skipKernelRestartDialog:true}}await e.restartKernel();return true}return false}}(function(e){function t(e,t=null){var n,i,o,r,a,d,c;const h={disabled:false,groups:[]};const u=Array.from((i=(n=e.kernelManager)===null||n===void 0?void 0:n.running())!==null&&i!==void 0?i:Array.from(e.sessionManager.running()).filter((e=>!!e.kernel)).map((e=>e.kernel)));const p=Array.from((o=e.sessionManager.running())!==null&&o!==void 0?o:[]).reduce(((e,t)=>{var n;if((n=t.kernel)===null||n===void 0?void 0:n.id)e[t.kernel.id]=t;return e}),{});const m={...e.kernelPreference,id:(a=(r=e.session)===null||r===void 0?void 0:r.kernel)===null||a===void 0?void 0:a.id};const g=!e.hasNoKernel?e.kernelDisplayName:null;const f={default:"",kernelspecs:Object.create(null),...e.specsManager.specs};const v=[];const _=Object.create(null);for(const s in f.kernelspecs){v.push(f.kernelspecs[s]);_[s]=f.kernelspecs[s].language}v.sort(((e,t)=>e.display_name.localeCompare(t.display_name)));t=t||s.nullTranslator;const b=t.load("jupyterlab");const y=m.language||_[m.name]||(m.id?_[(d=p[m.id])===null||d===void 0?void 0:d.name]:"");const w={connectKernel:b.__("Connect to Existing Kernel"),startPreferred:b.__("Start %1 Kernel",y),startOther:b.__("Start Kernel"),connectToPreferred:b.__("Connect to Existing %1 Kernel",y),connectToOther:b.__("Connect to Other Kernel"),noKernel:b.__("No Kernel"),startKernel:b.__("Start Kernel"),useNoKernel:b.__("Use No Kernel")};const C={label:w.useNoKernel,options:[{text:w.noKernel,title:w.noKernel,value:JSON.stringify(null)}]};const x=(e,t,n)=>{const i=n?n.name||l.PathExt.basename(n.path):e.name||b.__("Unknown Kernel");return{text:`${i} (${e.id.split("-")[0]})`,title:(n?`${b.__("Path: %1",n.path)}\n`:``)+`${b.__("Name: %1",i)}\n`+`${b.__("Kernel Name: %1",t!==null&&t!==void 0?t:e.name)}\n`+`${b.__("Kernel Id: %1",e.id)}`,value:JSON.stringify({id:e.id})}};const S=e=>({text:e.display_name,value:JSON.stringify({name:e.name})});if(m.canStart===false){h.disabled=true;h.groups.push(C);return h}if(y){const e={label:w.startPreferred,options:[]};const t={label:w.startOther,options:[]};const n={label:w.connectToPreferred,options:[]};const i={label:w.connectToOther,options:[]};for(const s of v){(s.language===y?e:t).options.push(S(s))}h.groups.push(e);h.groups.push(C);h.groups.push(t);u.map((e=>{var t,n;return{option:x(e,(n=(t=f.kernelspecs[e.name])===null||t===void 0?void 0:t.display_name)!==null&&n!==void 0?n:"",p[e.id]),language:_[e.name]}})).sort(((e,t)=>e.option.text.localeCompare(t.option.text))).forEach((e=>(y===e.language?n:i).options.push(e.option)));if(n.options.length)h.groups.push(n);if(i.options.length)h.groups.push(i)}else{h.groups.push({label:w.startKernel,options:v.map((e=>S(e)))});h.groups.push(C);h.groups.push({label:w.connectKernel,options:u.map((e=>{var t,n;return x(e,(n=(t=f.kernelspecs[e.name])===null||t===void 0?void 0:t.display_name)!==null&&n!==void 0?n:"",p[e.id])})).sort(((e,t)=>e.text.localeCompare(t.text)))})}if(m.id||g||m.name){for(const e of h.groups){for(const t of e.options){const e=JSON.parse(t.value);if(!e)continue;if(m.id){if(m.id===e.id){t.selected=true;return h}continue}if(g){if(g===((c=f.kernelspecs[e.name])===null||c===void 0?void 0:c.display_name)){t.selected=true;return h}continue}if(m.name){if(m.name===e.name){t.selected=true;return h}continue}}}}return h}e.kernelOptions=t})(y||(y={}));var w;(function(e){e.createKernelSelector=(e,i)=>new t({node:n(e,i)});class t extends o.Widget{getValue(){const e=this.node.querySelector("select");return JSON.parse(e.value)}}function n(e,t){t=t||s.nullTranslator;const n=t.load("jupyterlab");const i=document.createElement("div");const o=document.createElement("label");o.textContent=`${n.__("Select kernel for:")} "${e.name}"`;i.appendChild(o);const r=document.createElement("select");const a=y.kernelOptions(e,t);if(a.disabled)r.disabled=true;for(const s of a.groups){const{label:e,options:t}=s;const n=document.createElement("optgroup");n.label=e;for(const{selected:i,text:s,title:o,value:r}of t){const e=document.createElement("option");if(i)e.selected=true;if(o)e.title=o;e.text=s;e.value=r;n.appendChild(e)}r.appendChild(n)}i.appendChild(r);return i}function i(e){var t;const{specs:n,preference:i}=e;const{name:s,language:o,canStart:r,autoStartDefault:a}=i;if(!n||r===false){return null}const l=a?n.default:null;if(!s&&!o){return l}for(const c in n.kernelspecs){if(c===s){return s}}if(!o){return l}const d=[];for(const c in n.kernelspecs){const e=(t=n.kernelspecs[c])===null||t===void 0?void 0:t.language;if(o===e){d.push(c)}}if(d.length===1){const e=d[0];console.warn("No exact match found for "+e+", using kernel "+e+" that matches "+"language="+o);return e}return l}e.getDefaultKernel=i})(w||(w={}));var C=n(24735);function x(e){e=e||s.nullTranslator;const t=e.load("jupyterlab");const n={unknown:t.__("Unknown"),starting:t.__("Starting"),idle:t.__("Idle"),busy:t.__("Busy"),terminating:t.__("Terminating"),restarting:t.__("Restarting"),autorestarting:t.__("Autorestarting"),dead:t.__("Dead"),connected:t.__("Connected"),connecting:t.__("Connecting"),disconnected:t.__("Disconnected"),initializing:t.__("Initializing"),"":""};return n}function S(e){const t=e.translator||s.nullTranslator;const n=t.load("jupyterlab");let i="";if(e.status){i=` | ${e.status}`}return a().createElement(C.TextItem,{onClick:e.handleClick,onKeyDown:e.handleKeyDown,source:`${e.kernelName}${i}`,title:n.__("Change kernel for %1",e.activityName),tabIndex:0})}class k extends i.VDomRenderer{constructor(e,t){super(new k.Model(t));this.translator=t||s.nullTranslator;this._handleClick=e.onClick;this._handleKeyDown=e.onKeyDown;this.addClass("jp-mod-highlighted")}render(){if(this.model===null){return null}else{return a().createElement(S,{status:this.model.status,kernelName:this.model.kernelName,activityName:this.model.activityName,handleClick:this._handleClick,handleKeyDown:this._handleKeyDown,translator:this.translator})}}}(function(e){class t extends i.VDomModel{constructor(e){super();this._activityName="";this._kernelName="";this._kernelStatus="";this._sessionContext=null;e=e!==null&&e!==void 0?e:s.nullTranslator;this._trans=e.load("jupyterlab");this._statusNames=x(e)}get kernelName(){return this._kernelName}get status(){return this._kernelStatus?this._statusNames[this._kernelStatus]:undefined}get activityName(){return this._activityName}set activityName(e){const t=this._activityName;if(t===e){return}this._activityName=e;this.stateChanged.emit()}get sessionContext(){return this._sessionContext}set sessionContext(e){var t,n,i,s;(t=this._sessionContext)===null||t===void 0?void 0:t.statusChanged.disconnect(this._onKernelStatusChanged,this);(n=this._sessionContext)===null||n===void 0?void 0:n.connectionStatusChanged.disconnect(this._onKernelStatusChanged,this);(i=this._sessionContext)===null||i===void 0?void 0:i.kernelChanged.disconnect(this._onKernelChanged,this);const o=this._getAllState();this._sessionContext=e;this._kernelStatus=e===null||e===void 0?void 0:e.kernelDisplayStatus;this._kernelName=(s=e===null||e===void 0?void 0:e.kernelDisplayName)!==null&&s!==void 0?s:this._trans.__("No Kernel");e===null||e===void 0?void 0:e.statusChanged.connect(this._onKernelStatusChanged,this);e===null||e===void 0?void 0:e.connectionStatusChanged.connect(this._onKernelStatusChanged,this);e===null||e===void 0?void 0:e.kernelChanged.connect(this._onKernelChanged,this);this._triggerChange(o,this._getAllState())}_onKernelStatusChanged(){var e;this._kernelStatus=(e=this._sessionContext)===null||e===void 0?void 0:e.kernelDisplayStatus;this.stateChanged.emit(void 0)}_onKernelChanged(e,t){var n;const i=this._getAllState();this._kernelStatus=(n=this._sessionContext)===null||n===void 0?void 0:n.kernelDisplayStatus;this._kernelName=e.kernelDisplayName;this._triggerChange(i,this._getAllState())}_getAllState(){return[this._kernelName,this._kernelStatus,this._activityName]}_triggerChange(e,t){if(c.JSONExt.deepEqual(e,t)){this.stateChanged.emit(void 0)}}}e.Model=t})(k||(k={}));const j="jp-Toolbar-kernelName";const I="jp-Toolbar-kernelStatus";var E;(function(e){function t(e,t){t=t||s.nullTranslator;const n=t.load("jupyterlab");return new i.ToolbarButton({icon:i.stopIcon,onClick:()=>{var t,n;void((n=(t=e.session)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.interrupt())},tooltip:n.__("Interrupt the kernel")})}e.createInterruptButton=t;function n(e,t,n){n=n!==null&&n!==void 0?n:s.nullTranslator;const o=n.load("jupyterlab");return new i.ToolbarButton({icon:i.refreshIcon,onClick:()=>{void(t!==null&&t!==void 0?t:new y({translator:n})).restart(e)},tooltip:o.__("Restart the kernel")})}e.createRestartButton=n;function o(e,t,n){const s=i.ReactWidget.create(r.createElement(T.KernelNameComponent,{sessionContext:e,dialogs:t!==null&&t!==void 0?t:new y({translator:n}),translator:n}));s.addClass("jp-KernelName");return s}e.createKernelNameItem=o;function a(e,t){return new T.KernelStatus(e,t)}e.createKernelStatusItem=a})(E||(E={}));var T;(function(e){function t(e){const t=e.translator||s.nullTranslator;const n=t.load("jupyterlab");const o=()=>{void e.dialogs.selectKernel(e.sessionContext)};return r.createElement(i.UseSignal,{signal:e.sessionContext.kernelChanged,initialSender:e.sessionContext},(e=>r.createElement(i.ToolbarButtonComponent,{className:j,onClick:o,tooltip:n.__("Switch kernel"),label:e===null||e===void 0?void 0:e.kernelDisplayName})))}e.KernelNameComponent=t;class n extends o.Widget{constructor(e,t){super();this.translator=t||s.nullTranslator;this._trans=this.translator.load("jupyterlab");this.addClass(I);this._statusNames=x(this.translator);this._onStatusChanged(e);e.statusChanged.connect(this._onStatusChanged,this);e.connectionStatusChanged.connect(this._onStatusChanged,this)}_onStatusChanged(e){if(this.isDisposed){return}const t=e.kernelDisplayStatus;const n={container:this.node,title:this._trans.__("Kernel %1",this._statusNames[t]||t),stylesheet:"toolbarButton",alignSelf:"normal",height:"24px"};i.LabIcon.remove(this.node);if(t==="busy"||t==="starting"||t==="terminating"||t==="restarting"||t==="initializing"){i.circleIcon.element(n)}else if(t==="connecting"||t==="disconnected"||t==="unknown"){i.offlineBoltIcon.element(n)}else{i.circleEmptyIcon.element(n)}}}e.KernelStatus=n})(T||(T={}));var M;(function(e){function t(){return D.instance}e.getInstance=t;function n(e){D.instance=e}e.setInstance=n;function i(e){const t=document.body;const n=i=>{const s=i.clipboardData||window.clipboardData;if(typeof e==="string"){s.setData("text",e)}else{e.types().map((t=>{s.setData(t,e.getData(t))}))}i.preventDefault();t.removeEventListener("copy",n)};t.addEventListener("copy",n);s(t)}e.copyToSystem=i;function s(e,t="copy"){let n=window.getSelection();const i=[];for(let o=0,r=(n===null||n===void 0?void 0:n.rangeCount)||0;o{if(this.isAttached&&this.isVisible){this.hideAndReset()}}));this.node.tabIndex=0}get palette(){return this._commandPalette}set palette(e){this._commandPalette=e;if(!this.searchIconGroup){this._commandPalette.inputNode.insertAdjacentElement("afterend",this.createSearchIconGroup())}this.addWidget(e);this.hideAndReset()}attach(){o.Widget.attach(this,document.body)}detach(){o.Widget.detach(this)}hideAndReset(){this.hide();this._commandPalette.inputNode.value="";this._commandPalette.refresh()}handleEvent(e){switch(e.type){case"keydown":this._evtKeydown(e);break;case"blur":{if(this.node.contains(e.target)&&!this.node.contains(e.relatedTarget)){e.stopPropagation();this.hideAndReset()}break}case"contextmenu":e.preventDefault();e.stopPropagation();break;default:break}}get searchIconGroup(){return this._commandPalette.node.getElementsByClassName(R)[0]}createSearchIconGroup(){const e=document.createElement("div");e.classList.add(R);i.searchIcon.render(e);return e}onAfterAttach(e){this.node.addEventListener("keydown",this,true);this.node.addEventListener("contextmenu",this,true)}onAfterDetach(e){this.node.removeEventListener("keydown",this,true);this.node.removeEventListener("contextmenu",this,true)}onBeforeHide(e){document.removeEventListener("blur",this,true)}onAfterShow(e){document.addEventListener("blur",this,true)}onActivateRequest(e){if(this.isAttached){this.show();this._commandPalette.activate()}}_evtKeydown(e){switch(e.keyCode){case 27:e.stopPropagation();e.preventDefault();this.hideAndReset();break;default:break}}}var O=n(76326);var B;(function(e){function t(e,t,n){return d.ArrayExt.findFirstIndex(e,(e=>O.ElementExt.hitTest(e,t,n)))}e.hitTestNodes=t;function n(e,t){return e.querySelector(`.${t}`)}e.findElement=n;function i(e,t){return e.getElementsByClassName(t)}e.findElements=i;function s(){return`id-${c.UUID.uuid4()}`}e.createDomID=s;function o(e,t=document){const n=t.activeElement;return!!(n&&e.contains(n)&&(n.matches(":read-write")||n.shadowRoot&&o(n.shadowRoot,n.shadowRoot)))}e.hasActiveEditableElement=o})(B||(B={}));const F="jp-Input-Dialog";const z="jp-Input-Boolean-Dialog";var H;(function(e){function t(e){return g({...e,body:new V(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})],focusNodeSelector:"input"})}e.getBoolean=t;function n(e){return g({...e,body:new U(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})],focusNodeSelector:"input"})}e.getNumber=n;function i(e){return g({...e,body:new J(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})],focusNodeSelector:e.editable?"input":"select"})}e.getItem=i;function s(e){return g({...e,body:new G(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})]})}e.getMultipleItems=s;function o(e){return g({...e,body:new $(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})],focusNodeSelector:"input"})}e.getText=o;function r(e){return g({...e,body:new K(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})],focusNodeSelector:"input"})}e.getPassword=r})(H||(H={}));class W extends o.Widget{constructor(e){super();this.addClass(F);this._input=document.createElement("input");this._input.classList.add("jp-mod-styled");this._input.id="jp-dialog-input-id";if(e.label!==undefined){const t=document.createElement("label");t.textContent=e.label;t.htmlFor=this._input.id;this.node.appendChild(t)}const t=document.createElement("div");t.className="jp-InputDialog-inputWrapper";if(e.prefix){const n=document.createElement("span");n.className="jp-InputDialog-inputPrefix";n.textContent=e.prefix;n.ariaHidden="true";t.appendChild(n)}t.appendChild(this._input);if(e.suffix){const n=document.createElement("span");n.className="jp-InputDialog-inputSuffix";n.textContent=e.suffix;n.ariaHidden="true";t.appendChild(n)}this.node.appendChild(t)}}class V extends W{constructor(e){super(e);this.addClass(z);this._input.type="checkbox";this._input.checked=e.value?true:false}getValue(){return this._input.checked}}class U extends W{constructor(e){super(e);this._input.type="number";this._input.value=e.value?e.value.toString():"0"}getValue(){if(this._input.value){return Number(this._input.value)}else{return Number.NaN}}}class q extends W{constructor(e){super(e);this._input.value=e.text?e.text:"";if(e.placeholder){this._input.placeholder=e.placeholder}if(e.pattern){this._input.pattern=e.pattern}if(e.required){this._input.required=e.required}}getValue(){return this._input.value}}class $ extends q{constructor(e){var t;super(e);this._input.type="text";this._initialSelectionRange=Math.min(this._input.value.length,Math.max(0,(t=e.selectionRange)!==null&&t!==void 0?t:this._input.value.length))}onAfterAttach(e){super.onAfterAttach(e);if(this._initialSelectionRange>0&&this._input.value){this._input.setSelectionRange(0,this._initialSelectionRange)}}}class K extends q{constructor(e){super(e);this._input.type="password"}onAfterAttach(e){super.onAfterAttach(e);if(this._input.value){this._input.select()}}}class J extends W{constructor(e){super(e);this._editable=e.editable||false;let t=e.current||0;let n;if(typeof t==="number"){n=Math.max(0,Math.min(t,e.items.length-1));t=""}this._list=document.createElement("select");e.items.forEach(((e,i)=>{const s=document.createElement("option");if(i===n){s.selected=true;t=e}s.value=e;s.textContent=e;this._list.appendChild(s)}));if(e.editable){const n=document.createElement("datalist");n.id="input-dialog-items";n.appendChild(this._list);this._input.type="list";this._input.value=t;this._input.setAttribute("list",n.id);if(e.placeholder){this._input.placeholder=e.placeholder}this.node.appendChild(n)}else{this._input.parentElement.replaceChild(this._list,this._input)}}getValue(){if(this._editable){return this._input.value}else{return this._list.value}}}class G extends W{constructor(e){super(e);let t=e.defaults||[];this._list=document.createElement("select");this._list.setAttribute("multiple","");e.items.forEach((e=>{const t=document.createElement("option");t.value=e;t.textContent=e;this._list.appendChild(t)}));this._input.remove();this.node.appendChild(this._list);const n=this._list.options;for(let i=0;ithis._updateBundles()));this.model.trackerDataChanged.connect((()=>{this.title.label=this.model.title}))}dispose(){if(this.isDisposed){return}this._bundles.currentChanged.disconnect(this.onBundleSelected,this);this.model.dispose();super.dispose()}initLeftPanel(){this._leftPanel=new o.Panel;this._leftPanel.addClass("jp-Licenses-FormArea");this.addWidget(this._leftPanel);o.SplitPanel.setStretch(this._leftPanel,1)}initFilters(){this._filters=new Z.Filters(this.model);o.SplitPanel.setStretch(this._filters,1);this._leftPanel.addWidget(this._filters)}initBundles(){this._bundles=new o.TabBar({orientation:"vertical",renderer:new Z.BundleTabRenderer(this.model)});this._bundles.addClass("jp-Licenses-Bundles");o.SplitPanel.setStretch(this._bundles,1);this._leftPanel.addWidget(this._bundles);this._bundles.currentChanged.connect(this.onBundleSelected,this);this.model.stateChanged.connect((()=>this._bundles.update()))}initGrid(){this._grid=new Z.Grid(this.model);o.SplitPanel.setStretch(this._grid,1);this.addWidget(this._grid)}initLicenseText(){this._licenseText=new Z.FullText(this.model);o.SplitPanel.setStretch(this._grid,1);this.addWidget(this._licenseText)}onBundleSelected(){var e;if((e=this._bundles.currentTitle)===null||e===void 0?void 0:e.label){this.model.currentBundleName=this._bundles.currentTitle.label}}_updateBundles(){this._bundles.clearTabs();let e=0;const{currentBundleName:t}=this.model;let n=0;for(const i of this.model.bundleNames){const s=new o.Widget;s.title.label=i;if(i===t){n=e}this._bundles.insertTab(++e,s.title)}this._bundles.currentIndex=n}}(function(e){e.REPORT_FORMATS={markdown:{id:"markdown",title:"Markdown",icon:i.markdownIcon},csv:{id:"csv",title:"CSV",icon:i.spreadsheetIcon},json:{id:"json",title:"JSON",icon:i.jsonIcon}};e.DEFAULT_FORMAT="markdown";class t{constructor(e={}){var t;this._licensesUrl=e.licensesUrl||"";this._serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:Y.ServerConnection.makeSettings()}async download(e){const t=`${this._licensesUrl}?format=${e.format}&download=1`;const n=document.createElement("a");n.href=t;n.download="";document.body.appendChild(n);n.click();document.body.removeChild(n);URL.revokeObjectURL(t);return void 0}async getBundles(){const e=await Y.ServerConnection.makeRequest(this._licensesUrl,{},this._serverSettings);return e.json()}}e.LicensesClient=t;class n extends i.VDomModel{constructor(e){super();this._selectedPackageChanged=new h.Signal(this);this._trackerDataChanged=new h.Signal(this);this._currentPackageIndex=0;this._licensesReady=new c.PromiseDelegate;this._packageFilter={};this._trans=e.trans;this._client=e.client;if(e.currentBundleName){this._currentBundleName=e.currentBundleName}if(e.packageFilter){this._packageFilter=e.packageFilter}if(e.currentPackageIndex){this._currentPackageIndex=e.currentPackageIndex}}async initLicenses(){try{this._serverResponse=await this._client.getBundles();this._licensesReady.resolve();this.stateChanged.emit(void 0)}catch(e){this._licensesReady.reject(e)}}async download(e){return this._client.download(e)}get selectedPackageChanged(){return this._selectedPackageChanged}get trackerDataChanged(){return this._trackerDataChanged}get bundleNames(){var e;return Object.keys(((e=this._serverResponse)===null||e===void 0?void 0:e.bundles)||{})}get currentBundleName(){if(this._currentBundleName){return this._currentBundleName}if(this.bundleNames.length){return this.bundleNames[0]}return null}set currentBundleName(e){if(this._currentBundleName!==e){this._currentBundleName=e;this.stateChanged.emit(void 0);this._trackerDataChanged.emit(void 0)}}get licensesReady(){return this._licensesReady.promise}get bundles(){var e;return((e=this._serverResponse)===null||e===void 0?void 0:e.bundles)||{}}get currentPackageIndex(){return this._currentPackageIndex}set currentPackageIndex(e){if(this._currentPackageIndex===e){return}this._currentPackageIndex=e;this._selectedPackageChanged.emit(void 0);this.stateChanged.emit(void 0);this._trackerDataChanged.emit(void 0)}get currentPackage(){var e;if(this.currentBundleName&&this.bundles&&this._currentPackageIndex!=null){return this.getFilteredPackages(((e=this.bundles[this.currentBundleName])===null||e===void 0?void 0:e.packages)||[])[this._currentPackageIndex]}return null}get trans(){return this._trans}get title(){return`${this._currentBundleName||""} ${this._trans.__("Licenses")}`.trim()}get packageFilter(){return this._packageFilter}set packageFilter(e){this._packageFilter=e;this.stateChanged.emit(void 0);this._trackerDataChanged.emit(void 0)}getFilteredPackages(e){let t=[];let n=Object.entries(this._packageFilter).filter((([e,t])=>t&&`${t}`.trim().length)).map((([e,t])=>[e,`${t}`.toLowerCase().trim().split(" ")]));for(const i of e){let e=0;for(const[t,s]of n){let n=0;let o=`${i[t]}`.toLowerCase();for(const e of s){if(o.includes(e)){n+=1}}if(n){e+=1}}if(e===n.length){t.push(i)}}return Object.values(t)}}e.Model=n;class s extends i.VDomRenderer{constructor(e){super(e);this.renderFilter=e=>{const t=this.model.packageFilter[e]||"";return r.createElement("input",{type:"text",name:e,defaultValue:t,className:"jp-mod-styled",onInput:this.onFilterInput})};this.onFilterInput=e=>{const t=e.currentTarget;const{name:n,value:i}=t;this.model.packageFilter={...this.model.packageFilter,[n]:i}};this.addClass("jp-Licenses-Filters");this.addClass("jp-RenderedHTMLCommon")}render(){const{trans:e}=this.model;return r.createElement("div",null,r.createElement("label",null,r.createElement("strong",{className:Q},e.__("Filter Licenses By"))),r.createElement("ul",null,r.createElement("li",null,r.createElement("label",null,e.__("Package")),this.renderFilter("name")),r.createElement("li",null,r.createElement("label",null,e.__("Version")),this.renderFilter("versionInfo")),r.createElement("li",null,r.createElement("label",null,e.__("License")),this.renderFilter("licenseId"))),r.createElement("label",null,r.createElement("strong",{className:Q},e.__("Distributions"))))}}e.Filters=s;class a extends o.TabBar.Renderer{constructor(e){super();this.closeIconSelector=".lm-TabBar-tabCloseIcon";this.model=e}renderTab(e){let t=e.title.caption;let n=this.createTabKey(e);let i=this.createTabStyle(e);let s=this.createTabClass(e);let o=this.createTabDataset(e);return X.h.li({key:n,className:s,title:t,style:i,dataset:o},this.renderIcon(e),this.renderLabel(e),this.renderCountBadge(e))}renderCountBadge(e){const t=e.title.label;const{bundles:n}=this.model;const i=this.model.getFilteredPackages((n&&t?n[t].packages:[])||[]);return X.h.label({},`${i.length}`)}}e.BundleTabRenderer=a;class l extends i.VDomRenderer{constructor(e){super(e);this.renderRow=(e,t)=>{const n=t===this.model.currentPackageIndex;const i=()=>this.model.currentPackageIndex=t;return r.createElement("tr",{key:e.name,className:n?"jp-mod-selected":"",onClick:i},r.createElement("td",null,r.createElement("input",{type:"radio",name:"show-package-license",value:t,onChange:i,checked:n})),r.createElement("th",null,e.name),r.createElement("td",null,r.createElement("code",null,e.versionInfo)),r.createElement("td",null,r.createElement("code",null,e.licenseId)))};this.addClass("jp-Licenses-Grid");this.addClass("jp-RenderedHTMLCommon")}render(){var e;const{bundles:t,currentBundleName:n,trans:i}=this.model;const s=this.model.getFilteredPackages(t&&n?((e=t[n])===null||e===void 0?void 0:e.packages)||[]:[]);if(!s.length){return r.createElement("blockquote",null,r.createElement("em",null,i.__("No Packages found")))}return r.createElement("form",null,r.createElement("table",null,r.createElement("thead",null,r.createElement("tr",null,r.createElement("td",null),r.createElement("th",null,i.__("Package")),r.createElement("th",null,i.__("Version")),r.createElement("th",null,i.__("License")))),r.createElement("tbody",null,s.map(this.renderRow))))}}e.Grid=l;class d extends i.VDomRenderer{constructor(e){super(e);this.addClass("jp-Licenses-Text");this.addClass("jp-RenderedHTMLCommon");this.addClass("jp-RenderedMarkdown")}render(){const{currentPackage:e,trans:t}=this.model;let n="";let i=t.__("No Package selected");let s="";if(e){const{name:o,versionInfo:r,licenseId:a,extractedText:l}=e;n=`${o} v${r}`;i=`${t.__("License")}: ${a||t.__("No License ID found")}`;s=l||t.__("No License Text found")}return[r.createElement("h1",{key:"h1"},n),r.createElement("blockquote",{key:"quote"},r.createElement("em",null,i)),r.createElement("code",{key:"code"},s)]}}e.FullText=d})(Z||(Z={}));var ee;(function(e){e.symbol=Symbol("printable");function t(t){if(typeof t!=="object"||!t){return false}return e.symbol in t}e.isPrintable=t;function n(n){if(t(n)){return n[e.symbol]()}return null}e.getPrintFunction=n;function i(e){return o(e.node)}e.printWidget=i;async function s(e){const t=Y.ServerConnection.makeSettings();const n=await(await Y.ServerConnection.makeRequest(e,{},t)).text();return o(n)}e.printURL=s;async function o(e){const t=typeof e==="string";const n=r();const i=window.document.body;i.appendChild(n);if(t){n.srcdoc=e;await l(n)}else{n.src="about:blank";await l(n);a(n,e)}const s=d();c(n.contentWindow);await s;i.removeChild(n)}function r(){const e=window.document.createElement("iframe");e.setAttribute("sandbox","allow-modals allow-same-origin");const t="visibility:hidden;width:0;height:0;position:absolute;z-index:-9999;bottom:0;";e.setAttribute("style",t);e.setAttribute("width","0");e.setAttribute("height","0");return e}function a(e,t){e.contentDocument.body.appendChild(t.cloneNode(true));e.contentDocument.close()}function l(e){return new Promise((t=>{e.onload=()=>t()}))}function d(){return new Promise((e=>{const t=()=>{document.removeEventListener("mousemove",t,true);document.removeEventListener("mousedown",t,true);document.removeEventListener("keydown",t,true);e()};document.addEventListener("mousemove",t,true);document.addEventListener("mousedown",t,true);document.addEventListener("keydown",t,true)}))}function c(e){const t=e.document.execCommand("print",false);if(!t){e.print()}}})(ee||(ee={}));const te=true;class ne extends o.Widget{constructor(e){super(e);this._changeGuard=false;this._spinner=new i.Spinner;this._isRevealed=false;this._evtMouseDown=()=>{if(!this.node.contains(document.activeElement)){this._focusContent()}};this.addClass("jp-MainAreaWidget");this.addClass("jp-MainAreaWidget-ContainStrict");this.id=B.createDomID();const t=(e.translator||s.nullTranslator).load("jupyterlab");const n=this._content=e.content;n.node.setAttribute("role","region");n.node.setAttribute("aria-label",t.__("notebook content"));const r=this._toolbar=e.toolbar||new i.ReactiveToolbar({noFocusOnClick:true});r.node.setAttribute("role","toolbar");r.node.setAttribute("aria-label",t.__("notebook actions"));const a=this._contentHeader=e.contentHeader||new o.BoxPanel({direction:"top-to-bottom",spacing:0});const l=this.layout=new o.BoxLayout({spacing:0});l.direction="top-to-bottom";o.BoxLayout.setStretch(r,0);o.BoxLayout.setStretch(a,0);o.BoxLayout.setStretch(n,1);l.addWidget(r);l.addWidget(a);l.addWidget(n);if(!n.id){n.id=B.createDomID()}n.node.tabIndex=-1;this._updateTitle();n.title.changed.connect(this._updateTitle,this);this.title.closable=true;this.title.changed.connect(this._updateContentTitle,this);if(e.reveal){this.node.appendChild(this._spinner.node);this._revealed=e.reveal.then((()=>{if(n.isDisposed){this.dispose();return}n.disposed.connect((()=>this.dispose()));const e=document.activeElement===this._spinner.node;this._disposeSpinner();this._isRevealed=true;if(e){this._focusContent()}})).catch((e=>{const t=new o.Widget;t.addClass("jp-MainAreaWidget-error");const i=document.createElement("pre");i.textContent=String(e);t.node.appendChild(i);o.BoxLayout.setStretch(t,1);this._disposeSpinner();n.dispose();this._content=null;r.dispose();this._toolbar=null;l.addWidget(t);this._isRevealed=true;throw t}))}else{this._spinner.dispose();this.removeClass("jp-MainAreaWidget-ContainStrict");n.disposed.connect((()=>this.dispose()));this._isRevealed=true;this._revealed=Promise.resolve(undefined)}}[ee.symbol](){if(!this._content){return null}return ee.getPrintFunction(this._content)}get content(){return this._content}get toolbar(){return this._toolbar}get contentHeader(){return this._contentHeader}get isRevealed(){return this._isRevealed}get revealed(){return this._revealed}onActivateRequest(e){if(this._isRevealed){this._focusContent()}else{this._spinner.node.focus()}}onAfterAttach(e){super.onAfterAttach(e);this.node.addEventListener("mousedown",this._evtMouseDown,te)}onBeforeDetach(e){this.node.removeEventListener("mousedown",this._evtMouseDown,te);super.onBeforeDetach(e)}onCloseRequest(e){this.dispose()}onUpdateRequest(e){if(this._content){u.MessageLoop.sendMessage(this._content,e)}}_disposeSpinner(){this.node.removeChild(this._spinner.node);this._spinner.dispose();this.removeClass("jp-MainAreaWidget-ContainStrict")}_updateTitle(){if(this._changeGuard||!this.content){return}this._changeGuard=true;const e=this.content;this.title.label=e.title.label;this.title.mnemonic=e.title.mnemonic;this.title.icon=e.title.icon;this.title.iconClass=e.title.iconClass;this.title.iconLabel=e.title.iconLabel;this.title.caption=e.title.caption;this.title.className=e.title.className;this.title.dataset=e.title.dataset;this._changeGuard=false}_updateContentTitle(){if(this._changeGuard||!this.content){return}this._changeGuard=true;const e=this.content;e.title.label=this.title.label;e.title.mnemonic=this.title.mnemonic;e.title.icon=this.title.icon;e.title.iconClass=this.title.iconClass;e.title.iconLabel=this.title.iconLabel;e.title.caption=this.title.caption;e.title.className=this.title.className;e.title.dataset=this.title.dataset;this._changeGuard=false}_focusContent(){if(!this.content){return}if(!this.content.node.contains(document.activeElement)){this.content.node.focus()}this.content.activate()}}var ie;(function(e){function t(e,t){return e.filter((e=>!e.disabled)).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Infinity)-((i=t.rank)!==null&&i!==void 0?i:Infinity)})).map((e=>n(e,t)))}e.createMenus=t;function n(e,t){var n,s;const r=t(e);r.id=e.id;if(!r.title.label){r.title.label=(n=e.label)!==null&&n!==void 0?n:l.Text.titleCase(r.id.trim())}if(e.icon){r.title.icon=i.LabIcon.resolve({icon:e.icon})}if(e.mnemonic!==undefined){r.title.mnemonic=e.mnemonic}(s=e.items)===null||s===void 0?void 0:s.filter((e=>!e.disabled)).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Infinity)-((i=t.rank)!==null&&i!==void 0?i:Infinity)})).map((e=>{o(e,r,t)}));return r}function s(e,t,i){const{submenu:s,...o}=e;t.addItem({...o,submenu:s?n(s,i):null})}e.addContextItem=s;function o(e,t,i){const{submenu:s,...o}=e;t.addItem({...o,submenu:s?n(s,i):null})}function r(e,t,i){const s=[];t.forEach((t=>{const o=e.find((e=>e.id===t.id));if(o){a(t,o,i)}else{if(!t.disabled){s.push(n(t,i))}}}));e.push(...s);return s}e.updateMenus=r;function a(e,t,n){var i;if(e.disabled){t.dispose()}else{(i=e.items)===null||i===void 0?void 0:i.forEach((e=>{var i,s;const r=t===null||t===void 0?void 0:t.items.find(((t,n)=>{var i,s,o;return t.type===e.type&&t.command===((i=e.command)!==null&&i!==void 0?i:"")&&((s=t.submenu)===null||s===void 0?void 0:s.id)===((o=e.submenu)===null||o===void 0?void 0:o.id)}));if(r&&e.type!=="separator"){if(e.disabled){t.removeItem(r)}else{switch((i=e.type)!==null&&i!==void 0?i:"command"){case"command":if(e.command){if(!c.JSONExt.deepEqual(r.args,(s=e.args)!==null&&s!==void 0?s:{})){o(e,t,n)}}break;case"submenu":if(e.submenu){a(e.submenu,r.submenu,n)}}}}else{o(e,t,n)}}))}}})(ie||(ie={}));class se{constructor(){this._isDisposed=false;this._queue=[];this._changed=new h.Signal(this)}get changed(){return this._changed}get count(){return this._queue.length}get isDisposed(){return this._isDisposed}get notifications(){return this._queue.slice()}dismiss(e){if(typeof e==="undefined"){const e=this._queue.slice();this._queue.length=0;for(const t of e){this._changed.emit({type:"removed",notification:t})}}else{const t=this._queue.findIndex((t=>t.id===e));if(t>-1){const e=this._queue.splice(t,1)[0];this._changed.emit({type:"removed",notification:e})}}}dispose(){if(this._isDisposed){return}this._isDisposed=true;h.Signal.clearData(this)}has(e){return this._queue.findIndex((t=>t.id===e))>-1}notify(e,t,n){const i=Date.now();const{progress:s,...o}=n;const r=Object.freeze({id:c.UUID.uuid4(),createdAt:i,modifiedAt:i,message:e,type:t,options:{autoClose:0,progress:typeof s==="number"?Math.min(Math.max(0,s),1):s,...o}});this._queue.unshift(r);this._changed.emit({type:"added",notification:r});return r.id}update(e){const{id:t,message:n,actions:i,autoClose:s,data:o,progress:r,type:a}=e;const l=typeof r==="number"?Math.min(Math.max(0,r),1):r;const d=this._queue.findIndex((e=>e.id===t));if(d>-1){const e=this._queue[d];const t=Object.freeze({...e,message:n!==null&&n!==void 0?n:e.message,type:a!==null&&a!==void 0?a:e.type,options:{actions:i!==null&&i!==void 0?i:e.options.actions,autoClose:s!==null&&s!==void 0?s:e.options.autoClose,data:o!==null&&o!==void 0?o:e.options.data,progress:l!==null&&l!==void 0?l:e.options.progress},modifiedAt:Date.now()});this._queue.splice(d,1);this._queue.unshift(t);this._changed.emit({type:"updated",notification:t});return true}return false}}var oe;(function(e){e.manager=new se;function t(t){e.manager.dismiss(t)}e.dismiss=t;function n(t,n="default",i={}){return e.manager.notify(t,n,i)}e.emit=n;function i(t,n={}){return e.manager.notify(t,"error",n)}e.error=i;function s(t,n={}){return e.manager.notify(t,"info",n)}e.info=s;function o(t,n){var i;const{pending:s,error:o,success:r}=n;const a=e.manager.notify(s.message,"in-progress",(i=s.options)!==null&&i!==void 0?i:{});t.then((t=>{var n,i,s;e.manager.update({id:a,message:r.message(t,(n=r.options)===null||n===void 0?void 0:n.data),type:"success",...r.options,data:(s=(i=r.options)===null||i===void 0?void 0:i.data)!==null&&s!==void 0?s:t})})).catch((t=>{var n,i,s;e.manager.update({id:a,message:o.message(t,(n=o.options)===null||n===void 0?void 0:n.data),type:"error",...o.options,data:(s=(i=o.options)===null||i===void 0?void 0:i.data)!==null&&s!==void 0?s:t})}));return a}e.promise=o;function r(t,n={}){return e.manager.notify(t,"success",n)}e.success=r;function a(t){return e.manager.update(t)}e.update=a;function l(t,n={}){return e.manager.notify(t,"warning",n)}e.warning=l})(oe||(oe={}));const re=4;function ae(e){var t,n;const s=(t=e.showKernels)!==null&&t!==void 0?t:true;const o=(n=e.showTerminals)!==null&&n!==void 0?n:e.terminals>0;return a().createElement(C.GroupItem,{tabIndex:0,spacing:re,onClick:e.handleClick,onKeyDown:e.handleKeyDown,style:{cursor:"pointer"}},o?a().createElement(C.GroupItem,{spacing:re},a().createElement(C.TextItem,{source:e.terminals}),a().createElement(i.terminalIcon.react,{verticalAlign:"middle",stylesheet:"statusBar"})):null,s?a().createElement(C.GroupItem,{spacing:re},a().createElement(C.TextItem,{source:e.sessions}),a().createElement(i.kernelIcon.react,{verticalAlign:"middle",stylesheet:"statusBar"})):null)}class le extends i.VDomRenderer{constructor(e){super(new le.Model);this._serviceManager=e.serviceManager;this._handleClick=e.onClick;this._handleKeyDown=e.onKeyDown;this.translator=e.translator||s.nullTranslator;this._showKernels=e.showKernels;this._showTerminals=e.showTerminals;this._trans=this.translator.load("jupyterlab");this._serviceManager.sessions.runningChanged.connect(this._onSessionsRunningChanged,this);this._serviceManager.terminals.runningChanged.connect(this._onTerminalsRunningChanged,this);this.addClass("jp-mod-highlighted")}render(){if(!this.model){return null}const e=this._trans.__("%1 Terminals, %2 Kernel sessions",this.model.terminals,this.model.sessions);this.node.title=e;return a().createElement(ae,{sessions:this.model.sessions,terminals:this.model.terminals,handleClick:this._handleClick,handleKeyDown:this._handleKeyDown,showKernels:this._showKernels,showTerminals:this._showTerminals})}dispose(){super.dispose();this._serviceManager.sessions.runningChanged.disconnect(this._onSessionsRunningChanged,this);this._serviceManager.terminals.runningChanged.disconnect(this._onTerminalsRunningChanged,this)}_onSessionsRunningChanged(e,t){this.model.sessions=t.length}_onTerminalsRunningChanged(e,t){this.model.terminals=t.length}}(function(e){class t extends i.VDomModel{constructor(){super(...arguments);this._terminals=0;this._sessions=0}get sessions(){return this._sessions}set sessions(e){const t=this._sessions;this._sessions=e;if(t!==this._sessions){this.stateChanged.emit(void 0)}}get terminals(){return this._terminals}set terminals(e){const t=this._terminals;this._terminals=e;if(t!==this._terminals){this.stateChanged.emit(void 0)}}}e.Model=t})(le||(le={}));var de=n(74728);var ce=n.n(de);class he{static reg(e){return new RegExp("^"+e+"$","i")}}he.N={integer:`[+-]?[0-9]+`,integer_pos:`[+]?[0-9]+`,integer_zero_ff:`([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])`,number:`[+-]?([0-9]*[.])?[0-9]+(e-?[0-9]*)?`,number_pos:`[+]?([0-9]*[.])?[0-9]+(e-?[0-9]*)?`,number_zero_hundred:`[+]?(([0-9]|[1-9][0-9])([.][0-9]+)?|100)`,number_zero_one:`[+]?(1([.][0]+)?|0?([.][0-9]+)?)`};he.B={angle:`(${he.N.number}(deg|rad|grad|turn)|0)`,frequency:`${he.N.number}(Hz|kHz)`,ident:String.raw`-?([_a-z]|[\xA0-\xFF]|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])([_a-z0-9-]|[\xA0-\xFF]|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*`,len_or_perc:`(0|${he.N.number}(px|em|rem|ex|in|cm|mm|pt|pc|%))`,length:`(${he.N.number}(px|em|rem|ex|in|cm|mm|pt|pc)|0)`,length_pos:`(${he.N.number_pos}(px|em|rem|ex|in|cm|mm|pt|pc)|0)`,percentage:`${he.N.number}%`,percentage_pos:`${he.N.number_pos}%`,percentage_zero_hundred:`${he.N.number_zero_hundred}%`,string:String.raw`(\"([^\n\r\f\\"]|\\\n|\r\n|\r|\f|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*\")|(\'([^\n\r\f\\']|\\\n|\r\n|\r|\f|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*\')`,time:`${he.N.number}(s|ms)`,url:`url\\(.*?\\)`,z_index:`[+-]?[0-9]{1,7}`};he.A={absolute_size:`xx-small|x-small|small|medium|large|x-large|xx-large`,attachment:`scroll|fixed|local`,bg_origin:`border-box|padding-box|content-box`,border_style:`none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset`,box:`border-box|padding-box|content-box`,display_inside:`auto|block|table|flex|grid`,display_outside:`block-level|inline-level|none|table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption`,ending_shape:`circle|ellipse`,generic_family:`serif|sans-serif|cursive|fantasy|monospace`,generic_voice:`male|female|child`,relative_size:`smaller|larger`,repeat_style:`repeat-x|repeat-y|((?:repeat|space|round|no-repeat)(?:\\s*(?:repeat|space|round|no-repeat))?)`,side_or_corner:`(left|right)?\\s*(top|bottom)?`,single_animation_direction:`normal|reverse|alternate|alternate-reverse`,single_animation_fill_mode:`none|forwards|backwards|both`,single_animation_play_state:`running|paused`};he._COLOR={hex:`\\#(0x)?[0-9a-f]+`,name:`aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|transparent|violet|wheat|white|whitesmoke|yellow|yellowgreen`,rgb:String.raw`rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)`,rgba:String.raw`rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(${he.N.integer_zero_ff}|${he.N.number_zero_one}|${he.B.percentage_zero_hundred})\s*\)`};he._C={alpha:`${he.N.integer_zero_ff}|${he.N.number_zero_one}|${he.B.percentage_zero_hundred}`,alphavalue:he.N.number_zero_one,bg_position:`((${he.B.len_or_perc}|left|center|right|top|bottom)\\s*){1,4}`,bg_size:`(${he.B.length_pos}|${he.B.percentage}|auto){1,2}|cover|contain`,border_width:`thin|medium|thick|${he.B.length}`,bottom:`${he.B.length}|auto`,color:`${he._COLOR.hex}|${he._COLOR.rgb}|${he._COLOR.rgba}|${he._COLOR.name}`,color_stop_length:`(${he.B.len_or_perc}\\s*){1,2}`,linear_color_hint:`${he.B.len_or_perc}`,family_name:`${he.B.string}|(${he.B.ident}\\s*)+`,image_decl:he.B.url,left:`${he.B.length}|auto`,loose_quotable_words:`(${he.B.ident})+`,margin_width:`${he.B.len_or_perc}|auto`,padding_width:`${he.B.length_pos}|${he.B.percentage_pos}`,page_url:he.B.url,position:`((${he.B.len_or_perc}|left|center|right|top|bottom)\\s*){1,4}`,right:`${he.B.length}|auto`,shadow:"",size:`closest-side|farthest-side|closest-corner|farthest-corner|${he.B.length}|(${he.B.len_or_perc})\\s+(${he.B.len_or_perc})`,top:`${he.B.length}|auto`};he._C1={image_list:`image\\(\\s*(${he.B.url})*\\s*(${he.B.url}|${he._C.color})\\s*\\)`,linear_color_stop:`(${he._C.color})(\\s*${he._C.color_stop_length})?`,shadow:`((${he._C.color})\\s+((${he.B.length})\\s*){2,4}(s+inset)?)|((inset\\s+)?((${he.B.length})\\s*){2,4}\\s*(${he._C.color})?)`};he._C2={color_stop_list:`((${he._C1.linear_color_stop})(\\s*(${he._C.linear_color_hint}))?\\s*,\\s*)+(${he._C1.linear_color_stop})`,shape:`rect\\(\\s*(${he._C.top})\\s*,\\s*(${he._C.right})\\s*,\\s*(${he._C.bottom})\\s*,\\s*(${he._C.left})\\s*\\)`};he._C3={linear_gradient:`linear-gradient\\((((${he.B.angle})|to\\s+(${he.A.side_or_corner}))\\s*,\\s*)?\\s*(${he._C2.color_stop_list})\\s*\\)`,radial_gradient:`radial-gradient\\(((((${he.A.ending_shape})|(${he._C.size}))\\s*)*\\s*(at\\s+${he._C.position})?\\s*,\\s*)?\\s*(${he._C2.color_stop_list})\\s*\\)`};he._C4={image:`${he.B.url}|${he._C3.linear_gradient}|${he._C3.radial_gradient}|${he._C1.image_list}`,bg_image:`(${he.B.url}|${he._C3.linear_gradient}|${he._C3.radial_gradient}|${he._C1.image_list})|none`};he.C={...he._C,...he._C1,...he._C2,...he._C3,...he._C4};he.AP={border_collapse:`collapse|separate`,box:`normal|none|contents`,box_sizing:`content-box|padding-box|border-box`,caption_side:`top|bottom`,clear:`none|left|right|both`,direction:`ltr|rtl`,empty_cells:`show|hide`,float:`left|right|none`,font_stretch:`normal|wider|narrower|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded`,font_style:`normal|italic|oblique`,font_variant:`normal|small-caps`,font_weight:`normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900`,list_style_position:`inside|outside`,list_style_type:`disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman|lower-greek|lower-latin|upper-latin|armenian|georgian|lower-alpha|upper-alpha|none`,overflow:`visible|hidden|scroll|auto`,overflow_wrap:`normal|break-word`,overflow_x:`visible|hidden|scroll|auto|no-display|no-content`,page_break_after:`auto|always|avoid|left|right`,page_break_before:`auto|always|avoid|left|right`,page_break_inside:`avoid|auto`,position:`static|relative|absolute`,resize:`none|both|horizontal|vertical`,speak:`normal|none|spell-out`,speak_header:`once|always`,speak_numeral:`digits|continuous`,speak_punctuation:`code|none`,table_layout:`auto|fixed`,text_align:`left|right|center|justify`,text_decoration:`none|((underline|overline|line-through|blink)\\s*)+`,text_transform:`capitalize|uppercase|lowercase|none`,text_wrap:`normal|unrestricted|none|suppress`,unicode_bidi:`normal|embed|bidi-override`,visibility:`visible|hidden|collapse`,white_space:`normal|pre|nowrap|pre-wrap|pre-line`,word_break:`normal|keep-all|break-all`};he._CP={background_attachment:`${he.A.attachment}(,\\s*${he.A.attachment})*`,background_color:he.C.color,background_origin:`${he.A.box}(,\\s*${he.A.box})*`,background_repeat:`${he.A.repeat_style}(,\\s*${he.A.repeat_style})*`,border:`((${he.C.border_width}|${he.A.border_style}|${he.C.color})\\s*){1,3}`,border_radius:`((${he.B.len_or_perc})\\s*){1,4}(\\/\\s*((${he.B.len_or_perc})\\s*){1,4})?`,border_spacing:`${he.B.length}\\s*(${he.B.length})?`,border_top_color:he.C.color,border_top_style:he.A.border_style,border_width:`((${he.C.border_width})\\s*){1,4}`,color:he.C.color,cursor:`(${he.B.url}(\\s*,\\s*)?)*(auto|crosshair|default|pointer|move|e-resize|ne-resize|nw-resize|n-resize|se-resize|sw-resize|s-resize|w-resize|text|wait|help|progress|all-scroll|col-resize|hand|no-drop|not-allowed|row-resize|vertical-text)`,display:`inline|block|list-item|run-in|inline-list-item|inline-block|table|inline-table|table-cell|table-caption|flex|inline-flex|grid|inline-grid|${he.A.display_inside}|${he.A.display_outside}|inherit|inline-box|inline-stack`,display_outside:he.A.display_outside,elevation:`${he.B.angle}|below|level|above|higher|lower`,font_family:`(${he.C.family_name}|${he.A.generic_family})(,\\s*(${he.C.family_name}|${he.A.generic_family}))*`,height:`${he.B.length}|${he.B.percentage}|auto`,letter_spacing:`normal|${he.B.length}`,list_style_image:`${he.C.image}|none`,margin_right:he.C.margin_width,max_height:`${he.B.length_pos}|${he.B.percentage_pos}|none|auto`,min_height:`${he.B.length_pos}|${he.B.percentage_pos}|auto`,opacity:he.C.alphavalue,outline_color:`${he.C.color}|invert`,outline_width:he.C.border_width,padding:`((${he.C.padding_width})\\s*){1,4}`,padding_top:he.C.padding_width,pitch_range:he.N.number,right:`${he.B.length}|${he.B.percentage}|auto`,stress:he.N.number,text_indent:`${he.B.length}|${he.B.percentage}`,text_shadow:`none|${he.C.shadow}(,\\s*(${he.C.shadow}))*`,volume:`${he.N.number_pos}|${he.B.percentage_pos}|silent|x-soft|soft|medium|loud|x-loud`,word_wrap:he.AP.overflow_wrap,zoom:`normal|${he.N.number_pos}|${he.B.percentage_pos}`,backface_visibility:he.AP.visibility,background_clip:`${he.A.box}(,\\s*(${he.A.box}))*`,background_position:`${he.C.bg_position}(,\\s*(${he.C.bg_position}))*`,border_bottom_color:he.C.color,border_bottom_style:he.A.border_style,border_color:`((${he.C.color})\\s*){1,4}`,border_left_color:he.C.color,border_right_color:he.C.color,border_style:`((${he.A.border_style})\\s*){1,4}`,border_top_left_radius:`(${he.B.length}|${he.B.percentage})(\\s*(${he.B.length}|${he.B.percentage}))?`,border_top_width:he.C.border_width,box_shadow:`none|${he.C.shadow}(,\\s*(${he.C.shadow}))*`,clip:`${he.C.shape}|auto`,display_inside:he.A.display_inside,font_size:`${he.A.absolute_size}|${he.A.relative_size}|${he.B.length_pos}|${he.B.percentage_pos}`,line_height:`normal|${he.N.number_pos}|${he.B.length_pos}|${he.B.percentage_pos}`,margin_left:he.C.margin_width,max_width:`${he.B.length_pos}|${he.B.percentage_pos}|none|auto`,outline_style:he.A.border_style,padding_bottom:he.C.padding_width,padding_right:he.C.padding_width,perspective:`none|${he.B.length}`,richness:he.N.number,text_overflow:`((clip|ellipsis|${he.B.string})\\s*){1,2}`,top:`${he.B.length}|${he.B.percentage}|auto`,width:`${he.B.length_pos}|${he.B.percentage_pos}|auto`,z_index:`auto|${he.B.z_index}`,background:`(((${he.C.bg_position}\\s*(\\/\\s*${he.C.bg_size})?)|(${he.A.repeat_style})|(${he.A.attachment})|(${he.A.bg_origin})|(${he.C.bg_image})|(${he.C.color}))\\s*)+`,background_size:`${he.C.bg_size}(,\\s*${he.C.bg_size})*`,border_bottom_left_radius:`(${he.B.length}|${he.B.percentage})(\\s*(${he.B.length}|${he.B.percentage}))?`,border_bottom_width:he.C.border_width,border_left_style:he.A.border_style,border_right_style:he.A.border_style,border_top:`((${he.C.border_width}|${he.A.border_style}|${he.C.color})\\s*){1,3}`,bottom:`${he.B.len_or_perc}|auto`,list_style:`((${he.AP.list_style_type}|${he.AP.list_style_position}|${he.C.image}|none})\\s*){1,3}`,margin_top:he.C.margin_width,outline:`((${he.C.color}|invert|${he.A.border_style}|${he.C.border_width})\\s*){1,3}`,overflow_y:he.AP.overflow_x,pitch:`${he.B.frequency}|x-low|low|medium|high|x-high`,vertical_align:`baseline|sub|super|top|text-top|middle|bottom|text-bottom|${he.B.len_or_perc}`,word_spacing:`normal|${he.B.length}`,background_image:`${he.C.bg_image}(,\\s*${he.C.bg_image})*`,border_bottom_right_radius:`(${he.B.length}|${he.B.percentage})(\\s*(${he.B.length}|${he.B.percentage}))?`,border_left_width:he.C.border_width,border_right_width:he.C.border_width,left:`${he.B.len_or_perc}|auto`,margin_bottom:he.C.margin_width,pause_after:`${he.B.time}|${he.B.percentage}`,speech_rate:`${he.N.number}|x-slow|slow|medium|fast|x-fast|faster|slower`,transition_duration:`${he.B.time}(,\\s*${he.B.time})*`,border_bottom:`((${he.C.border_width}|${he.A.border_style}|${he.C.color})\\s*){1,3}`,border_right:`((${he.C.border_width}|${he.A.border_style}|${he.C.color})\\s*){1,3}`,margin:`((${he.C.margin_width})\\s*){1,4}`,padding_left:he.C.padding_width,border_left:`((${he.C.border_width}|${he.A.border_style}|${he.C.color})\\s*){1,3}`,quotes:`(${he.B.string}\\s*${he.B.string})+|none`,border_top_right_radius:`(${he.B.length}|${he.B.percentage})(\\s*(${he.B.length}|${he.B.percentage}))?`,min_width:`${he.B.length_pos}|${he.B.percentage_pos}|auto`};he._CP1={font:`(((((${he.AP.font_style}|${he.AP.font_variant}|${he.AP.font_weight})\\s*){1,3})?\\s*(${he._CP.font_size})\\s*(\\/\\s*(${he._CP.line_height}))?\\s+(${he._CP.font_family}))|caption|icon|menu|message-box|small-caption|status-bar)`};he.CP={...he._CP,...he._CP1};he.BORDER_COLLAPSE=he.reg(he.AP.border_collapse);he.BOX=he.reg(he.AP.box);he.BOX_SIZING=he.reg(he.AP.box_sizing);he.CAPTION_SIDE=he.reg(he.AP.caption_side);he.CLEAR=he.reg(he.AP.clear);he.DIRECTION=he.reg(he.AP.direction);he.EMPTY_CELLS=he.reg(he.AP.empty_cells);he.FLOAT=he.reg(he.AP.float);he.FONT_STRETCH=he.reg(he.AP.font_stretch);he.FONT_STYLE=he.reg(he.AP.font_style);he.FONT_VARIANT=he.reg(he.AP.font_variant);he.FONT_WEIGHT=he.reg(he.AP.font_weight);he.LIST_STYLE_POSITION=he.reg(he.AP.list_style_position);he.LIST_STYLE_TYPE=he.reg(he.AP.list_style_type);he.OVERFLOW=he.reg(he.AP.overflow);he.OVERFLOW_WRAP=he.reg(he.AP.overflow_wrap);he.OVERFLOW_X=he.reg(he.AP.overflow_x);he.PAGE_BREAK_AFTER=he.reg(he.AP.page_break_after);he.PAGE_BREAK_BEFORE=he.reg(he.AP.page_break_before);he.PAGE_BREAK_INSIDE=he.reg(he.AP.page_break_inside);he.POSITION=he.reg(he.AP.position);he.RESIZE=he.reg(he.AP.resize);he.SPEAK=he.reg(he.AP.speak);he.SPEAK_HEADER=he.reg(he.AP.speak_header);he.SPEAK_NUMERAL=he.reg(he.AP.speak_numeral);he.SPEAK_PUNCTUATION=he.reg(he.AP.speak_punctuation);he.TABLE_LAYOUT=he.reg(he.AP.table_layout);he.TEXT_ALIGN=he.reg(he.AP.text_align);he.TEXT_DECORATION=he.reg(he.AP.text_decoration);he.TEXT_TRANSFORM=he.reg(he.AP.text_transform);he.TEXT_WRAP=he.reg(he.AP.text_wrap);he.UNICODE_BIDI=he.reg(he.AP.unicode_bidi);he.VISIBILITY=he.reg(he.AP.visibility);he.WHITE_SPACE=he.reg(he.AP.white_space);he.WORD_BREAK=he.reg(he.AP.word_break);he.BACKGROUND_ATTACHMENT=he.reg(he.CP.background_attachment);he.BACKGROUND_COLOR=he.reg(he.CP.background_color);he.BACKGROUND_ORIGIN=he.reg(he.CP.background_origin);he.BACKGROUND_REPEAT=he.reg(he.CP.background_repeat);he.BORDER=he.reg(he.CP.border);he.BORDER_RADIUS=he.reg(he.CP.border_radius);he.BORDER_SPACING=he.reg(he.CP.border_spacing);he.BORDER_TOP_COLOR=he.reg(he.CP.border_top_color);he.BORDER_TOP_STYLE=he.reg(he.CP.border_top_style);he.BORDER_WIDTH=he.reg(he.CP.border_width);he.COLOR=he.reg(he.CP.color);he.CURSOR=he.reg(he.CP.cursor);he.DISPLAY=he.reg(he.CP.display);he.DISPLAY_OUTSIDE=he.reg(he.CP.display_outside);he.ELEVATION=he.reg(he.CP.elevation);he.FONT_FAMILY=he.reg(he.CP.font_family);he.HEIGHT=he.reg(he.CP.height);he.LETTER_SPACING=he.reg(he.CP.letter_spacing);he.LIST_STYLE_IMAGE=he.reg(he.CP.list_style_image);he.MARGIN_RIGHT=he.reg(he.CP.margin_right);he.MAX_HEIGHT=he.reg(he.CP.max_height);he.MIN_HEIGHT=he.reg(he.CP.min_height);he.OPACITY=he.reg(he.CP.opacity);he.OUTLINE_COLOR=he.reg(he.CP.outline_color);he.OUTLINE_WIDTH=he.reg(he.CP.outline_width);he.PADDING=he.reg(he.CP.padding);he.PADDING_TOP=he.reg(he.CP.padding_top);he.PITCH_RANGE=he.reg(he.CP.pitch_range);he.RIGHT=he.reg(he.CP.right);he.STRESS=he.reg(he.CP.stress);he.TEXT_INDENT=he.reg(he.CP.text_indent);he.TEXT_SHADOW=he.reg(he.CP.text_shadow);he.VOLUME=he.reg(he.CP.volume);he.WORD_WRAP=he.reg(he.CP.word_wrap);he.ZOOM=he.reg(he.CP.zoom);he.BACKFACE_VISIBILITY=he.reg(he.CP.backface_visibility);he.BACKGROUND_CLIP=he.reg(he.CP.background_clip);he.BACKGROUND_POSITION=he.reg(he.CP.background_position);he.BORDER_BOTTOM_COLOR=he.reg(he.CP.border_bottom_color);he.BORDER_BOTTOM_STYLE=he.reg(he.CP.border_bottom_style);he.BORDER_COLOR=he.reg(he.CP.border_color);he.BORDER_LEFT_COLOR=he.reg(he.CP.border_left_color);he.BORDER_RIGHT_COLOR=he.reg(he.CP.border_right_color);he.BORDER_STYLE=he.reg(he.CP.border_style);he.BORDER_TOP_LEFT_RADIUS=he.reg(he.CP.border_top_left_radius);he.BORDER_TOP_WIDTH=he.reg(he.CP.border_top_width);he.BOX_SHADOW=he.reg(he.CP.box_shadow);he.CLIP=he.reg(he.CP.clip);he.DISPLAY_INSIDE=he.reg(he.CP.display_inside);he.FONT_SIZE=he.reg(he.CP.font_size);he.LINE_HEIGHT=he.reg(he.CP.line_height);he.MARGIN_LEFT=he.reg(he.CP.margin_left);he.MAX_WIDTH=he.reg(he.CP.max_width);he.OUTLINE_STYLE=he.reg(he.CP.outline_style);he.PADDING_BOTTOM=he.reg(he.CP.padding_bottom);he.PADDING_RIGHT=he.reg(he.CP.padding_right);he.PERSPECTIVE=he.reg(he.CP.perspective);he.RICHNESS=he.reg(he.CP.richness);he.TEXT_OVERFLOW=he.reg(he.CP.text_overflow);he.TOP=he.reg(he.CP.top);he.WIDTH=he.reg(he.CP.width);he.Z_INDEX=he.reg(he.CP.z_index);he.BACKGROUND=he.reg(he.CP.background);he.BACKGROUND_SIZE=he.reg(he.CP.background_size);he.BORDER_BOTTOM_LEFT_RADIUS=he.reg(he.CP.border_bottom_left_radius);he.BORDER_BOTTOM_WIDTH=he.reg(he.CP.border_bottom_width);he.BORDER_LEFT_STYLE=he.reg(he.CP.border_left_style);he.BORDER_RIGHT_STYLE=he.reg(he.CP.border_right_style);he.BORDER_TOP=he.reg(he.CP.border_top);he.BOTTOM=he.reg(he.CP.bottom);he.LIST_STYLE=he.reg(he.CP.list_style);he.MARGIN_TOP=he.reg(he.CP.margin_top);he.OUTLINE=he.reg(he.CP.outline);he.OVERFLOW_Y=he.reg(he.CP.overflow_y);he.PITCH=he.reg(he.CP.pitch);he.VERTICAL_ALIGN=he.reg(he.CP.vertical_align);he.WORD_SPACING=he.reg(he.CP.word_spacing);he.BACKGROUND_IMAGE=he.reg(he.CP.background_image);he.BORDER_BOTTOM_RIGHT_RADIUS=he.reg(he.CP.border_bottom_right_radius);he.BORDER_LEFT_WIDTH=he.reg(he.CP.border_left_width);he.BORDER_RIGHT_WIDTH=he.reg(he.CP.border_right_width);he.LEFT=he.reg(he.CP.left);he.MARGIN_BOTTOM=he.reg(he.CP.margin_bottom);he.PAUSE_AFTER=he.reg(he.CP.pause_after);he.SPEECH_RATE=he.reg(he.CP.speech_rate);he.TRANSITION_DURATION=he.reg(he.CP.transition_duration);he.BORDER_BOTTOM=he.reg(he.CP.border_bottom);he.BORDER_RIGHT=he.reg(he.CP.border_right);he.MARGIN=he.reg(he.CP.margin);he.PADDING_LEFT=he.reg(he.CP.padding_left);he.BORDER_LEFT=he.reg(he.CP.border_left);he.FONT=he.reg(he.CP.font);he.QUOTES=he.reg(he.CP.quotes);he.BORDER_TOP_RIGHT_RADIUS=he.reg(he.CP.border_top_right_radius);he.MIN_WIDTH=he.reg(he.CP.min_width);class ue{constructor(){this._autolink=true;this._allowNamedProperties=false;this._generateOptions=()=>({allowedTags:["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","col","colgroup","colspan","command","data","datalist","dd","del","details","dfn","dir","div","dl","dt","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","img","input","ins","kbd","label","legend","li","map","mark","menu","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rowspan","s","samp","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"],allowedAttributes:{"*":["class","dir","draggable","hidden",...this._allowNamedProperties?["id"]:[],"inert","itemprop","itemref","itemscope","lang","spellcheck","style","title","translate"],a:["accesskey","coords","href","hreflang",...this._allowNamedProperties?["name"]:[],"rel","shape","tabindex","target","type"],area:["accesskey","alt","coords","href","nohref","shape","tabindex"],audio:["autoplay","controls","loop","mediagroup","muted","preload","src"],bdo:["dir"],blockquote:["cite"],br:["clear"],button:["accesskey","data-commandlinker-args","data-commandlinker-command","disabled",...this._allowNamedProperties?["name"]:[],"tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],command:["checked","command","disabled","icon","label","radiogroup","type"],data:["value"],del:["cite","datetime"],details:["open"],dir:["compact"],div:["align"],dl:["compact"],fieldset:["disabled"],font:["color","face","size"],form:["accept","autocomplete","enctype","method",...this._allowNamedProperties?["name"]:[],"novalidate"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],hr:["align","noshade","size","width"],iframe:["align","frameborder","height","marginheight","marginwidth","width"],img:["align","alt","border","height","hspace","ismap",...this._allowNamedProperties?["name"]:[],"src","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","checked","disabled","inputmode","ismap","list","max","maxlength","min","multiple",...this._allowNamedProperties?["name"]:[],"placeholder","readonly","required","size","src","step","tabindex","type","usemap","value"],ins:["cite","datetime"],label:["accesskey","for"],legend:["accesskey","align"],li:["type","value"],map:this._allowNamedProperties?["name"]:[],menu:["compact","label","type"],meter:["high","low","max","min","value"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for",...this._allowNamedProperties?["name"]:[]],p:["align"],pre:["width"],progress:["max","min","value"],q:["cite"],select:["autocomplete","disabled","multiple",...this._allowNamedProperties?["name"]:[],"required","size","tabindex"],source:["type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","cols","disabled","inputmode",...this._allowNamedProperties?["name"]:[],"placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","srclang"],ul:["compact","type"],video:["autoplay","controls","height","loop","mediagroup","muted","poster","preload","src","width"]},allowedStyles:{"*":{"backface-visibility":[he.BACKFACE_VISIBILITY],background:[he.BACKGROUND],"background-attachment":[he.BACKGROUND_ATTACHMENT],"background-clip":[he.BACKGROUND_CLIP],"background-color":[he.BACKGROUND_COLOR],"background-image":[he.BACKGROUND_IMAGE],"background-origin":[he.BACKGROUND_ORIGIN],"background-position":[he.BACKGROUND_POSITION],"background-repeat":[he.BACKGROUND_REPEAT],"background-size":[he.BACKGROUND_SIZE],border:[he.BORDER],"border-bottom":[he.BORDER_BOTTOM],"border-bottom-color":[he.BORDER_BOTTOM_COLOR],"border-bottom-left-radius":[he.BORDER_BOTTOM_LEFT_RADIUS],"border-bottom-right-radius":[he.BORDER_BOTTOM_RIGHT_RADIUS],"border-bottom-style":[he.BORDER_BOTTOM_STYLE],"border-bottom-width":[he.BORDER_BOTTOM_WIDTH],"border-collapse":[he.BORDER_COLLAPSE],"border-color":[he.BORDER_COLOR],"border-left":[he.BORDER_LEFT],"border-left-color":[he.BORDER_LEFT_COLOR],"border-left-style":[he.BORDER_LEFT_STYLE],"border-left-width":[he.BORDER_LEFT_WIDTH],"border-radius":[he.BORDER_RADIUS],"border-right":[he.BORDER_RIGHT],"border-right-color":[he.BORDER_RIGHT_COLOR],"border-right-style":[he.BORDER_RIGHT_STYLE],"border-right-width":[he.BORDER_RIGHT_WIDTH],"border-spacing":[he.BORDER_SPACING],"border-style":[he.BORDER_STYLE],"border-top":[he.BORDER_TOP],"border-top-color":[he.BORDER_TOP_COLOR],"border-top-left-radius":[he.BORDER_TOP_LEFT_RADIUS],"border-top-right-radius":[he.BORDER_TOP_RIGHT_RADIUS],"border-top-style":[he.BORDER_TOP_STYLE],"border-top-width":[he.BORDER_TOP_WIDTH],"border-width":[he.BORDER_WIDTH],bottom:[he.BOTTOM],box:[he.BOX],"box-shadow":[he.BOX_SHADOW],"box-sizing":[he.BOX_SIZING],"caption-side":[he.CAPTION_SIDE],clear:[he.CLEAR],clip:[he.CLIP],color:[he.COLOR],cursor:[he.CURSOR],direction:[he.DIRECTION],display:[he.DISPLAY],"display-inside":[he.DISPLAY_INSIDE],"display-outside":[he.DISPLAY_OUTSIDE],elevation:[he.ELEVATION],"empty-cells":[he.EMPTY_CELLS],float:[he.FLOAT],font:[he.FONT],"font-family":[he.FONT_FAMILY],"font-size":[he.FONT_SIZE],"font-stretch":[he.FONT_STRETCH],"font-style":[he.FONT_STYLE],"font-variant":[he.FONT_VARIANT],"font-weight":[he.FONT_WEIGHT],height:[he.HEIGHT],left:[he.LEFT],"letter-spacing":[he.LETTER_SPACING],"line-height":[he.LINE_HEIGHT],"list-style":[he.LIST_STYLE],"list-style-image":[he.LIST_STYLE_IMAGE],"list-style-position":[he.LIST_STYLE_POSITION],"list-style-type":[he.LIST_STYLE_TYPE],margin:[he.MARGIN],"margin-bottom":[he.MARGIN_BOTTOM],"margin-left":[he.MARGIN_LEFT],"margin-right":[he.MARGIN_RIGHT],"margin-top":[he.MARGIN_TOP],"max-height":[he.MAX_HEIGHT],"max-width":[he.MAX_WIDTH],"min-height":[he.MIN_HEIGHT],"min-width":[he.MIN_WIDTH],opacity:[he.OPACITY],outline:[he.OUTLINE],"outline-color":[he.OUTLINE_COLOR],"outline-style":[he.OUTLINE_STYLE],"outline-width":[he.OUTLINE_WIDTH],overflow:[he.OVERFLOW],"overflow-wrap":[he.OVERFLOW_WRAP],"overflow-x":[he.OVERFLOW_X],"overflow-y":[he.OVERFLOW_Y],padding:[he.PADDING],"padding-bottom":[he.PADDING_BOTTOM],"padding-left":[he.PADDING_LEFT],"padding-right":[he.PADDING_RIGHT],"padding-top":[he.PADDING_TOP],"page-break-after":[he.PAGE_BREAK_AFTER],"page-break-before":[he.PAGE_BREAK_BEFORE],"page-break-inside":[he.PAGE_BREAK_INSIDE],"pause-after":[he.PAUSE_AFTER],perspective:[he.PERSPECTIVE],pitch:[he.PITCH],"pitch-range":[he.PITCH_RANGE],position:[he.POSITION],quotes:[he.QUOTES],resize:[he.RESIZE],richness:[he.RICHNESS],right:[he.RIGHT],speak:[he.SPEAK],"speak-header":[he.SPEAK_HEADER],"speak-numeral":[he.SPEAK_NUMERAL],"speak-punctuation":[he.SPEAK_PUNCTUATION],"speech-rate":[he.SPEECH_RATE],stress:[he.STRESS],"table-layout":[he.TABLE_LAYOUT],"text-align":[he.TEXT_ALIGN],"text-decoration":[he.TEXT_DECORATION],"text-indent":[he.TEXT_INDENT],"text-overflow":[he.TEXT_OVERFLOW],"text-shadow":[he.TEXT_SHADOW],"text-transform":[he.TEXT_TRANSFORM],"text-wrap":[he.TEXT_WRAP],top:[he.TOP],"unicode-bidi":[he.UNICODE_BIDI],"vertical-align":[he.VERTICAL_ALIGN],visibility:[he.VISIBILITY],volume:[he.VOLUME],"white-space":[he.WHITE_SPACE],width:[he.WIDTH],"word-break":[he.WORD_BREAK],"word-spacing":[he.WORD_SPACING],"word-wrap":[he.WORD_WRAP],"z-index":[he.Z_INDEX],zoom:[he.ZOOM]}},transformTags:{a:ce().simpleTransform("a",{rel:"nofollow"}),input:ce().simpleTransform("input",{disabled:"disabled"})},allowedSchemes:[...ce().defaults.allowedSchemes],allowedSchemesByTag:{img:ce().defaults.allowedSchemes.concat(["attachment"])},allowedSchemesAppliedToAttributes:["href","cite"]});this._options=this._generateOptions()}sanitize(e,t){return ce()(e,{...this._options,...t||{}})}getAutolink(){return this._autolink}setAllowedSchemes(e){this._options.allowedSchemes=[...e]}setAutolink(e){this._autolink=e}setAllowNamedProperties(e){this._allowNamedProperties=e;this._options=this._generateOptions()}}class pe{constructor(){this._commands=new Array}get ids(){return this._commands.map((e=>e.id))}add(e){if(this._commands.map((e=>e.id)).includes(e.id)){throw Error(`Command ${e.id} is already defined.`)}this._commands.push({isEnabled:()=>true,rank:pe.DEFAULT_RANK,...e})}getActiveCommandId(e){var t;const n=this._commands.filter((t=>t.isEnabled(e))).sort(((e,t)=>{const n=e.rank-t.rank;return n||(e.idt.id===e));if(t>=0){this._commands.splice(t,1)}}}pe.DEFAULT_RANK=500;pe.WIDGET="semanticWidget";var me=n(90044);const ge=75;const fe=20;class ve{constructor(e){this._current=null;this._links=[];this._overrides={};this._overrideProps={};this._outstanding=null;this._pending=0;this._requests={};this._themes={};this._themeChanged=new h.Signal(this);const{host:t,key:n,splash:i,url:o}=e;this.translator=e.translator||s.nullTranslator;this._trans=this.translator.load("jupyterlab");const r=e.settings;this._base=o;this._host=t;this._splash=i||null;void r.load(n).then((e=>{this._settings=e;this._initOverrideProps();this._settings.changed.connect(this._loadSettings,this);this._loadSettings()}))}get theme(){return this._current}get preferredLightTheme(){return this._settings.composite["preferred-light-theme"]}get preferredDarkTheme(){return this._settings.composite["preferred-dark-theme"]}get preferredTheme(){if(!this.isToggledAdaptiveTheme()){return this.theme}if(this.isSystemColorSchemeDark()){return this.preferredDarkTheme}return this.preferredLightTheme}get themes(){return Object.keys(this._themes)}get lightThemes(){return Object.entries(this._themes).filter((([e,t])=>t.isLight)).map((([e,t])=>e))}get darkThemes(){return Object.entries(this._themes).filter((([e,t])=>!t.isLight)).map((([e,t])=>e))}get themeChanged(){return this._themeChanged}isSystemColorSchemeDark(){return window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}getCSS(e){var t;return(t=this._overrides[e])!==null&&t!==void 0?t:getComputedStyle(document.documentElement).getPropertyValue(`--jp-${e}`)}loadCSS(e){const t=this._base;const n=l.URLExt.isLocal(e)?l.URLExt.join(t,e):e;const i=this._links;return new Promise(((e,t)=>{const s=document.createElement("link");s.setAttribute("rel","stylesheet");s.setAttribute("type","text/css");s.setAttribute("href",n);s.addEventListener("load",(()=>{e(undefined)}));s.addEventListener("error",(()=>{t(`Stylesheet failed to load: ${n}`)}));document.body.appendChild(s);i.push(s);this.loadCSSOverrides()}))}loadCSSOverrides(){var e;const t=(e=this._settings.user["overrides"])!==null&&e!==void 0?e:{};Object.keys({...this._overrides,...t}).forEach((e=>{const n=t[e];if(n&&this.validateCSS(e,n)){document.documentElement.style.setProperty(`--jp-${e}`,n)}else{delete t[e];document.documentElement.style.removeProperty(`--jp-${e}`)}}));this._overrides=t}validateCSS(e,t){const n=this._overrideProps[e];if(!n){console.warn("CSS validation failed: could not find property corresponding to key.\n"+`key: '${e}', val: '${t}'`);return false}if(CSS.supports(n,t)){return true}else{console.warn("CSS validation failed: invalid value.\n"+`key: '${e}', val: '${t}', prop: '${n}'`);return false}}register(e){const{name:t}=e;const n=this._themes;if(n[t]){throw new Error(`Theme already registered for ${t}`)}n[t]=e;return new me.DisposableDelegate((()=>{delete n[t]}))}setCSSOverride(e,t){return this._settings.set("overrides",{...this._overrides,[e]:t})}setTheme(e){return this._settings.set("theme",e)}setPreferredLightTheme(e){return this._settings.set("preferred-light-theme",e)}setPreferredDarkTheme(e){return this._settings.set("preferred-dark-theme",e)}isLight(e){return this._themes[e].isLight}incrFontSize(e){return this._incrFontSize(e,true)}decrFontSize(e){return this._incrFontSize(e,false)}themeScrollbars(e){return!!this._settings.composite["theme-scrollbars"]&&!!this._themes[e].themeScrollbars}isToggledThemeScrollbars(){return!!this._settings.composite["theme-scrollbars"]}toggleThemeScrollbars(){return this._settings.set("theme-scrollbars",!this._settings.composite["theme-scrollbars"])}isToggledAdaptiveTheme(){return!!this._settings.composite["adaptive-theme"]}toggleAdaptiveTheme(){return this._settings.set("adaptive-theme",!this._settings.composite["adaptive-theme"])}getDisplayName(e){var t,n;return(n=(t=this._themes[e])===null||t===void 0?void 0:t.displayName)!==null&&n!==void 0?n:e}_incrFontSize(e,t=true){var n;const i=((n=this.getCSS(e))!==null&&n!==void 0?n:"13px").split(/([a-zA-Z]+)/);const s=(t?1:-1)*(i[1]==="em"?.1:1);return this.setCSSOverride(e,`${Number(i[0])+s}${i[1]}`)}_initOverrideProps(){const e=this._settings.schema.definitions;const t=e.cssOverrides.properties;Object.keys(t).forEach((e=>{let n;switch(e){case"code-font-size":case"content-font-size1":case"ui-font-size1":n="font-size";break;default:n=t[e].description;break}this._overrideProps[e]=n}))}_loadSettings(){const e=this._outstanding;const t=this._pending;const n=this._requests;if(t){window.clearTimeout(t);this._pending=0}const i=this._settings;const s=this._themes;let o=i.composite["theme"];if(this.isToggledAdaptiveTheme()){if(this.isSystemColorSchemeDark()){o=this.preferredDarkTheme}else{o=this.preferredLightTheme}}if(e){e.then((()=>{this._loadSettings()})).catch((()=>{this._loadSettings()}));this._outstanding=null;return}n[o]=n[o]?n[o]+1:1;if(s[o]){this._outstanding=this._loadTheme(o);delete n[o];return}if(n[o]>fe){const e=i.default("theme");delete n[o];if(!s[e]){this._onError(this._trans.__("Neither theme %1 nor default %2 loaded.",o,e));return}console.warn(`Could not load theme ${o}, using default ${e}.`);this._outstanding=this._loadTheme(e);return}this._pending=window.setTimeout((()=>{this._loadSettings()}),ge)}_loadTheme(e){var t;const n=this._current;const i=this._links;const s=this._themes;const o=this._splash?this._splash.show(s[e].isLight):new me.DisposableDelegate((()=>undefined));i.forEach((e=>{if(e.parentElement){e.parentElement.removeChild(e)}}));i.length=0;const r=(t=this._settings.schema.properties)===null||t===void 0?void 0:t.theme;if(r){r.enum=Object.keys(s).map((e=>{var t;return(t=s[e].displayName)!==null&&t!==void 0?t:e}))}const a=n?s[n].unload():Promise.resolve();return Promise.all([a,s[e].load()]).then((()=>{this._current=e;this._themeChanged.emit({name:"theme",oldValue:n,newValue:e});this._host.hide();requestAnimationFrame((()=>{this._host.show();_e.fitAll(this._host);o.dispose()}))})).catch((e=>{this._onError(e);o.dispose()}))}_onError(e){void g({title:this._trans.__("Error Loading Theme"),body:String(e),buttons:[v.okButton({label:this._trans.__("OK")})]})}}var _e;(function(e){function t(e){for(const n of e.children()){t(n)}e.fit()}e.fitAll=t})(_e||(_e={}));const be=new c.Token("@jupyterlab/apputils:ICommandPalette",`A service for the application command palette\n in the left panel. Use this to add commands to the palette.`);const ye=new c.Token("@jupyterlab/apputils:IKernelStatusModel","A service to register kernel session provider to the kernel status indicator.");const we=new c.Token("@jupyterlab/apputils:ILicensesClient","A service for fetching licenses.");const Ce=new c.Token("@jupyterlab/apputils:ISessionContextDialogs","A service for handling the session dialogs.");const xe=new c.Token("@jupyterlab/apputils:IThemeManager","A service for the theme manager for the application. This is used primarily in theme extensions to register new themes.");const Se=new c.Token("@jupyterlab/apputils:ISanitizer","A service for sanitizing HTML strings.");const ke=new c.Token("@jupyterlab/apputils:ISplashScreen",`A service for the splash screen for the application.\n Use this if you want to show the splash screen for your own purposes.`);const je=new c.Token("@jupyterlab/apputils:IWindowResolver",`A service for a window resolver for the\n application. JupyterLab workspaces are given a name, which are determined using\n the window resolver. Require this if you want to use the name of the current workspace.`);const Ie=new c.Token("@jupyterlab/apputils:IToolbarWidgetRegistry",`A registry for toolbar widgets. Require this\n if you want to build the toolbar dynamically from a data definition (stored in settings for example).`);class Ee{constructor(e){this._widgets=new Map;this._factoryAdded=new h.Signal(this);this._defaultFactory=e.defaultFactory}get defaultFactory(){return this._defaultFactory}set defaultFactory(e){this._defaultFactory=e}get factoryAdded(){return this._factoryAdded}createWidget(e,t,n){var i;const s=(i=this._widgets.get(e))===null||i===void 0?void 0:i.get(n.name);return s?s(t):this._defaultFactory(e,t,n)}addFactory(e,t,n){let i=this._widgets.get(e);const s=i===null||i===void 0?void 0:i.get(t);if(!i){i=new Map;this._widgets.set(e,i)}i.set(t,n);this._factoryAdded.emit(t);return s}registerFactory(e,t,n){return this.addFactory(e,t,n)}}function Te(e){return(t,n,s)=>{var r,a;switch((r=s.type)!==null&&r!==void 0?r:"command"){case"command":{const{command:t,args:o,label:r,caption:l,icon:d}=s;const c=t!==null&&t!==void 0?t:"";const h={toolbar:true,...o};const u=d?i.LabIcon.resolve({icon:d}):undefined;const p=n.toolbar;const m=(u!==null&&u!==void 0?u:e.icon(c,h))?r!==null&&r!==void 0?r:"":r;return new i.CommandToolbarButton({commands:e,id:c,args:h,icon:u,label:m,caption:l,noFocusOnClick:(a=p===null||p===void 0?void 0:p.noFocusOnClick)!==null&&a!==void 0?a:false})}case"spacer":return i.Toolbar.createSpacerItem();default:return new o.Widget}}}var Me=n(44336);var De=n(84739);const Ae=50;const Pe="jupyter.lab.toolbars";async function Le(e){const t=await g({title:e.__("Information"),body:e.__("Toolbar customization has changed. You will need to reload JupyterLab to see the changes."),buttons:[v.cancelButton(),v.okButton({label:e.__("Reload")})]});if(t.button.accept){location.reload()}}async function Re(e,t,n,i,s,o="toolbar"){var r;const a=s.load("jupyterlab");let l=null;let d={};let h=true;try{function g(e){var s,r;d={};const a=Object.keys(t.plugins).filter((e=>e!==i)).map((e=>{var i,s;const o=(s=((i=t.plugins[e].schema[Pe])!==null&&i!==void 0?i:{})[n])!==null&&s!==void 0?s:[];d[e]=o;return o})).concat([(r=((s=e[Pe])!==null&&s!==void 0?s:{})[n])!==null&&r!==void 0?r:[]]).reduceRight(((e,t)=>De.SettingRegistry.reconcileToolbarItems(e,t,true)),[]);e.properties[o].default=De.SettingRegistry.reconcileToolbarItems(a,e.properties[o].default,true).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Ae)-((i=t.rank)!==null&&i!==void 0?i:Ae)}))}t.transform(i,{compose:e=>{var t,n,i,s,r;if(!l){l=c.JSONExt.deepCopy(e.schema);g(l)}const a=(i=((n=((t=l.properties)!==null&&t!==void 0?t:{})[o])!==null&&n!==void 0?n:{}).default)!==null&&i!==void 0?i:[];const d=e.data.user;const h=e.data.composite;d[o]=(s=e.data.user[o])!==null&&s!==void 0?s:[];h[o]=((r=De.SettingRegistry.reconcileToolbarItems(a,d[o],false))!==null&&r!==void 0?r:[]).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Ae)-((i=t.rank)!==null&&i!==void 0?i:Ae)}));e.data={composite:h,user:d};return e},fetch:e=>{if(!l){l=c.JSONExt.deepCopy(e.schema);g(l)}return{data:e.data,id:e.id,raw:e.raw,schema:l,version:e.version}}})}catch(m){if(m.name==="TransformError"){h=false}else{throw m}}const u=await t.load(i);u.changed.connect((()=>{var e;const t=(e=u.composite[o])!==null&&e!==void 0?e:[];p(t)}));const p=t=>{e.clear();e.pushAll(t.filter((e=>!e.disabled)))};p((r=u.composite[o])!==null&&r!==void 0?r:[]);if(!h){return}t.pluginChanged.connect((async(e,s)=>{var o,r,h;if(s===i){return}const u=(o=d[s])!==null&&o!==void 0?o:[];const p=(h=((r=t.plugins[s].schema[Pe])!==null&&r!==void 0?r:{})[n])!==null&&h!==void 0?h:[];if(!c.JSONExt.deepEqual(u,p)){if(d[s]){await Le(a)}else{if(p.length>0){l=null;const e=t.plugins[i].schema;e.properties.toolbar.default=[];await t.load(i,true)}}}}))}function Ne(e,t,n,i,s,o="toolbar"){const r=new Me.ObservableList({itemCmp:(e,t)=>c.JSONExt.deepEqual(e,t)});Re(r,t,n,i,s,o).catch((e=>{console.error(`Failed to load toolbar items for factory ${n} from ${i}`,e)}));return t=>{const i=(i,s)=>{switch(s.type){case"move":o.move(s.oldIndex,s.newIndex);break;case"add":s.newValues.forEach((i=>o.push({name:i.name,widget:e.createWidget(n,t,i)})));break;case"remove":s.oldValues.forEach((()=>o.remove(s.oldIndex)));break;case"set":s.newValues.forEach((i=>o.set(s.newIndex,{name:i.name,widget:e.createWidget(n,t,i)})));break}};const s=(i,s)=>{const a=Array.from(r).findIndex((e=>e.name===s));if(a>=0){o.set(a,{name:s,widget:e.createWidget(n,t,r.get(a))})}};const o=new Me.ObservableList({values:Array.from(r).map((i=>({name:i.name,widget:e.createWidget(n,t,i)})))});e.factoryAdded.connect(s);r.changed.connect(i);t.disposed.connect((()=>{r.changed.disconnect(i);e.factoryAdded.disconnect(s)}));return o}}function Oe(e,t,n){var i;if(!e.toolbar&&!n){console.log(`Widget ${e.id} has no 'toolbar' and no explicit toolbar was provided.`);return}const s=(i=e.toolbar)!==null&&i!==void 0?i:n;const o=t(e);if(Array.isArray(o)){o.forEach((({name:e,widget:t})=>{s.addItem(e,t)}))}else{const t=(e,t)=>{switch(t.type){case"add":t.newValues.forEach(((e,n)=>{s.insertItem(t.newIndex+n,e.name,e.widget)}));break;case"move":t.oldValues.forEach((e=>{e.widget.parent=null}));t.newValues.forEach(((e,n)=>{s.insertItem(t.newIndex+n,e.name,e.widget)}));break;case"remove":t.oldValues.forEach((e=>{e.widget.parent=null}));break;case"set":t.oldValues.forEach((e=>{e.widget.parent=null}));t.newValues.forEach(((e,n)=>{const i=(0,d.findIndex)(s.names(),(t=>e.name===t));if(i>=0){Array.from(s.children())[i].parent=null}s.insertItem(t.newIndex+n,e.name,e.widget)}));break}};t(o,{newIndex:0,newValues:Array.from(o),oldIndex:0,oldValues:[],type:"add"});o.changed.connect(t);e.disposed.connect((()=>{o.changed.disconnect(t)}))}}class Be{get name(){return this._name}resolve(e){return Fe.resolve(e).then((e=>{this._name=e}))}}var Fe;(function(e){const t="@jupyterlab/statedb:StateDB";const n=`${t}:beacon`;const i=Math.floor(200+Math.random()*300);const s=`${t}:window`;let o=null;let r=null;const a=new c.PromiseDelegate;const l={};let d=null;let h=false;function u(){window.addEventListener("storage",(e=>{const{key:t,newValue:i}=e;if(i===null){return}if(t===n&&i!==o&&r!==null){p(h?d:r);return}if(h||t!==s){return}const a=i.replace(/\-\d+$/,"");l[a]=null;if(!r||r in l){m()}}))}function p(e){if(e===null){return}const{localStorage:t}=window;t.setItem(s,`${e}-${(new Date).getTime()}`)}function m(){h=true;o=null;a.reject(`Window name candidate "${r}" already exists`)}function g(e){if(h){return a.promise}r=e;if(r in l){m();return a.promise}const{localStorage:t,setTimeout:s}=window;s((()=>{if(h){return}if(!r||r in l){return m()}h=true;o=null;a.resolve(d=r);p(d)}),i);o=`${Math.random()}-${(new Date).getTime()}`;t.setItem(n,o);return a.promise}e.resolve=g;(()=>{u()})()})(Fe||(Fe={}));class ze extends i.Toolbar{}(function(e){e.createInterruptButton=E.createInterruptButton;e.createKernelNameItem=E.createKernelNameItem;e.createKernelStatusItem=E.createKernelStatusItem;e.createRestartButton=E.createRestartButton;e.createSpacerItem=i.Toolbar.createSpacerItem})(ze||(ze={}))},97913:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(41510);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},39721:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AttachmentsModel:()=>r,AttachmentsResolver:()=>a});var i=n(44336);var s=n(44539);var o=n(2336);class r{constructor(e){var t;this._map=new i.ObservableMap;this._isDisposed=false;this._stateChanged=new o.Signal(this);this._changed=new o.Signal(this);this._serialized=null;this._changeGuard=false;this.contentFactory=(t=e.contentFactory)!==null&&t!==void 0?t:r.defaultContentFactory;if(e.values){for(const t of Object.keys(e.values)){if(e.values[t]!==undefined){this.set(t,e.values[t])}}}this._map.changed.connect(this._onMapChanged,this)}get stateChanged(){return this._stateChanged}get changed(){return this._changed}get keys(){return this._map.keys()}get length(){return this._map.keys().length}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._map.dispose();o.Signal.clearData(this)}has(e){return this._map.has(e)}get(e){return this._map.get(e)}set(e,t){const n=this._createItem({value:t});this._map.set(e,n)}remove(e){this._map.delete(e)}clear(){this._map.values().forEach((e=>{e.dispose()}));this._map.clear()}fromJSON(e){this.clear();Object.keys(e).forEach((t=>{if(e[t]!==undefined){this.set(t,e[t])}}))}toJSON(){const e={};for(const t of this._map.keys()){e[t]=this._map.get(t).toJSON()}return e}_createItem(e){const t=this.contentFactory;const n=t.createAttachmentModel(e);n.changed.connect(this._onGenericChange,this);return n}_onMapChanged(e,t){if(this._serialized&&!this._changeGuard){this._changeGuard=true;this._serialized.set(this.toJSON());this._changeGuard=false}this._changed.emit(t);this._stateChanged.emit(void 0)}_onGenericChange(){this._stateChanged.emit(void 0)}}(function(e){class t{createAttachmentModel(e){return new s.AttachmentModel(e)}}e.ContentFactory=t;e.defaultContentFactory=new t})(r||(r={}));class a{constructor(e){this._parent=e.parent||null;this._model=e.model}async resolveUrl(e){if(this._parent&&!e.startsWith("attachment:")){return this._parent.resolveUrl(e)}return e}async getDownloadUrl(e){if(this._parent&&!e.startsWith("attachment:")){return this._parent.getDownloadUrl(e)}const t=e.slice("attachment:".length);const n=this._model.get(t);if(n===undefined){return e}const{data:i}=n;const o=Object.keys(i)[0];if(o===undefined||s.imageRendererFactory.mimeTypes.indexOf(o)===-1){throw new Error(`Cannot render unknown image mime type "${o}".`)}const r=`data:${o};base64,${i[o]}`;return r}isLocal(e){var t,n,i;if(this._parent&&!e.startsWith("attachment:")){return(i=(n=(t=this._parent).isLocal)===null||n===void 0?void 0:n.call(t,e))!==null&&i!==void 0?i:true}return true}}},39470:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>p});var i=n(84739);var s=n.n(i);var o=n(84823);var r=n.n(o);var a=n(14366);var l=n.n(a);var d=n(30619);var c=n.n(d);const h="@jupyterlab/cell-toolbar-extension:plugin";const u={id:h,description:"Add the cells toolbar.",autoStart:true,activate:async(e,t,n,i)=>{function s(e){const t=e===null?true:e.get("showToolbar").composite;l.enabled=t}const r=t&&n?(0,a.createToolbarFactory)(n,t,o.CellBarExtension.FACTORY_NAME,u.id,i!==null&&i!==void 0?i:d.nullTranslator):undefined;const l=new o.CellBarExtension(e.commands,r);if(t!==null){void Promise.all([e.restored,t.load(h)]).then((([,e])=>{s(e);e.changed.connect(s)}))}e.docRegistry.addWidgetExtension("Notebook",l)},optional:[i.ISettingRegistry,a.IToolbarWidgetRegistry,d.ITranslator]};const p=u},56104:(e,t,n)=>{"use strict";var i=n(97913);var s=n(3579);var o=n(10395);var r=n(40662);var a=n(79010);var l=n(53377);var d=n(28006);var c=n(85072);var h=n.n(c);var u=n(97825);var p=n.n(u);var m=n(77659);var g=n.n(m);var f=n(55056);var v=n.n(f);var _=n(10540);var b=n.n(_);var y=n(41113);var w=n.n(y);var C=n(31772);var x={};x.styleTagTransform=w();x.setAttributes=v();x.insert=g().bind(null,"head");x.domAPI=p();x.insertStyleElement=b();var S=h()(C.A,x);const k=C.A&&C.A.locals?C.A.locals:undefined},23168:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CellBarExtension:()=>g,CellToolbarTracker:()=>p});var i=n(14366);var s=n(44336);var o=n(26331);var r=n(34236);var a=n(2336);var l=n(30619);const d=["text/plain","application/vnd.jupyter.stdout","application/vnd.jupyter.stderr"];const c="jp-cell-toolbar";const h="jp-cell-menu";const u="jp-toolbar-overlap";class p{constructor(e,t,n,i){this._isDisposed=false;this._toolbar=null;this._toolbarItems=null;this._toolbarFactory=null;this._panel=e;this._previousActiveCell=this._panel.content.activeCell;this._toolbarItems=t!==null&&t!==void 0?t:null;this._toolbarFactory=n!==null&&n!==void 0?n:null;this._enabled=true;this._trans=(i!==null&&i!==void 0?i:l.nullTranslator).load("jupyterlab");if(this._toolbarItems===null&&this._toolbarFactory===null){throw Error("You must provide the toolbarFactory or the toolbar items.")}if(!this._toolbarFactory&&this._toolbarItems){this._onToolbarChanged();this._toolbarItems.changed.connect(this._onToolbarChanged,this)}void e.revealed.then((()=>{requestAnimationFrame((()=>{const t=e.content;this._onActiveCellChanged(t);t.activeCellChanged.connect(this._onActiveCellChanged,this);t.renderingLayoutChanged.connect(this._onActiveCellChanged,this);t.disposed.connect((()=>{t.activeCellChanged.disconnect(this._onActiveCellChanged)}))}))}))}_onMetadataChanged(e,t){if(t.key==="jupyter"){if(typeof t.newValue==="object"&&t.newValue.source_hidden===true&&(t.type==="add"||t.type==="change")){this._removeToolbar(e)}else if(typeof t.oldValue==="object"&&t.oldValue.source_hidden===true){this._addToolbar(e)}}}_onActiveCellChanged(e){if(this._previousActiveCell&&!this._previousActiveCell.isDisposed){this._removeToolbar(this._previousActiveCell.model);this._previousActiveCell.model.metadataChanged.disconnect(this._onMetadataChanged)}const t=e.activeCell;this._previousActiveCell=t;if(t===null||t.inputHidden){return}t.model.metadataChanged.connect(this._onMetadataChanged,this);this._addToolbar(t.model)}get isDisposed(){return this._isDisposed}get enabled(){return this._enabled}set enabled(e){this._enabled=e;this._onToolbarChanged()}dispose(){var e,t;if(this.isDisposed){return}this._isDisposed=true;(e=this._toolbarItems)===null||e===void 0?void 0:e.changed.disconnect(this._onToolbarChanged,this);(t=this._toolbar)===null||t===void 0?void 0:t.dispose();this._panel=null;a.Signal.clearData(this)}_addToolbar(e){if(!this.enabled){return}const t=this._getCell(e);if(t&&!t.isDisposed){const e=this._toolbar=new o.Toolbar;e.addClass(h);e.addClass(c);e.node.setAttribute("aria-label",this._trans.__("Cell toolbar"));const n=[t.ready];if(this._toolbarFactory){(0,i.setToolbar)(t,this._toolbarFactory,e);e.layout.widgets.forEach((e=>{e.update()}))}else{for(const{name:t,widget:i}of this._toolbarItems){e.addItem(t,i);if(i instanceof o.ReactWidget&&i.renderPromise!==undefined){i.update();n.push(i.renderPromise)}}}n.push(t.ready);Promise.all(n).then((()=>{var n;if(t.isDisposed||((n=this._panel)===null||n===void 0?void 0:n.content.activeCell)!==t){e.dispose();return}t.node.classList.add(u);t.inputArea.layout.insertWidget(0,e);t.displayChanged.connect(this._resizeEventCallback,this);t.model.contentChanged.connect(this._changedEventCallback,this);this._updateCellForToolbarOverlap(t)})).catch((e=>{console.error("Error rendering buttons of the cell toolbar: ",e)}))}}_getCell(e){var t;return(t=this._panel)===null||t===void 0?void 0:t.content.widgets.find((t=>t.model===e))}_removeToolbar(e){var t,n;const i=this._getCell(e);if(i&&!i.isDisposed){i.displayChanged.disconnect(this._resizeEventCallback,this)}e.contentChanged.disconnect(this._changedEventCallback,this);if(((t=this._toolbar)===null||t===void 0?void 0:t.parent)===(i===null||i===void 0?void 0:i.inputArea)&&((n=this._toolbar)===null||n===void 0?void 0:n.isDisposed)===false){this._toolbar.dispose()}}_onToolbarChanged(){var e;const t=(e=this._panel)===null||e===void 0?void 0:e.content.activeCell;if(t){this._removeToolbar(t.model);this._addToolbar(t.model)}}_changedEventCallback(){var e;const t=(e=this._panel)===null||e===void 0?void 0:e.content.activeCell;if(t===null||t===undefined){return}this._updateCellForToolbarOverlap(t)}_resizeEventCallback(){var e;const t=(e=this._panel)===null||e===void 0?void 0:e.content.activeCell;if(t===null||t===undefined){return}this._updateCellForToolbarOverlap(t)}_updateCellForToolbarOverlap(e){requestIdleCallback((()=>{const t=e.node;t.classList.remove(u);if(this._cellToolbarOverlapsContents(e)){t.classList.add(u)}}))}_cellToolbarOverlapsContents(e){var t,n,i,s;if(!e.model){return false}const o=e.model.type;const r=(t=e.editorWidget)===null||t===void 0?void 0:t.node.getBoundingClientRect();const a=(n=r===null||r===void 0?void 0:r.left)!==null&&n!==void 0?n:0;const l=(i=r===null||r===void 0?void 0:r.right)!==null&&i!==void 0?i:0;const d=this._cellToolbarLeft(e);if(d===null){return false}if((a+l)/2>d){return true}if(o==="markdown"&&e.rendered){return this._markdownOverlapsToolbar(e)}if(((s=this._panel)===null||s===void 0?void 0:s.content.renderingLayout)==="default"){return this._codeOverlapsToolbar(e)}else{return this._outputOverlapsToolbar(e)}}_markdownOverlapsToolbar(e){const t=e.inputArea;if(!t){return false}const n=t.renderedInput;const i=n.node;const s=i.firstElementChild;if(s===null){return false}const o=s.style.maxWidth;s.style.maxWidth="max-content";const r=s.getBoundingClientRect().right;s.style.maxWidth=o;const a=this._cellToolbarLeft(e);return a===null?false:r>a}_outputOverlapsToolbar(e){const t=e.outputArea.node;if(t){const n=t.querySelectorAll("[data-mime-type]");const i=this._cellToolbarRect(e);if(i){const{left:e,bottom:t}=i;return(0,r.some)(n,(n=>{const i=n.firstElementChild;if(i){const s=new Range;if(d.includes(n.getAttribute("data-mime-type")||"")){s.selectNodeContents(i)}else{s.selectNode(i)}const{right:o,top:r}=s.getBoundingClientRect();return o>e&&rr}_cellToolbarRect(e){var t;if(((t=this._toolbar)===null||t===void 0?void 0:t.parent)!==e.inputArea){return null}const n=this._toolbar.node;return n.getBoundingClientRect()}_cellToolbarLeft(e){var t;return((t=this._cellToolbarRect(e))===null||t===void 0?void 0:t.left)||null}}const m=[{command:"notebook:duplicate-below",name:"duplicate-cell"},{command:"notebook:move-cell-up",name:"move-cell-up"},{command:"notebook:move-cell-down",name:"move-cell-down"},{command:"notebook:insert-cell-above",name:"insert-cell-above"},{command:"notebook:insert-cell-below",name:"insert-cell-below"},{command:"notebook:delete-cell",name:"delete-cell"}];class g{constructor(e,t){this._commands=e;this._toolbarFactory=t!==null&&t!==void 0?t:this.defaultToolbarFactory}get defaultToolbarFactory(){const e=(0,i.createDefaultFactory)(this._commands);return t=>new s.ObservableList({values:m.map((n=>({name:n.name,widget:e(g.FACTORY_NAME,t,n)})))})}createNew(e){return this._tracker=new p(e,undefined,this._toolbarFactory)}get enabled(){return this._tracker.enabled}set enabled(e){if(this._tracker){this._tracker.enabled=e}}}g.FACTORY_NAME="Cell"},30531:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AttachmentsCell:()=>$e,AttachmentsCellModel:()=>W,Cell:()=>Ve,CellDragUtils:()=>c,CellFooter:()=>k,CellHeader:()=>S,CellModel:()=>H,CellSearchProvider:()=>re,CodeCell:()=>qe,CodeCellLayout:()=>Ue,CodeCellModel:()=>q,Collapser:()=>_,InputArea:()=>D,InputCollapser:()=>b,InputPlaceholder:()=>ee,InputPrompt:()=>A,MarkdownCell:()=>Ke,MarkdownCellModel:()=>U,OutputCollapser:()=>y,OutputPlaceholder:()=>te,Placeholder:()=>Z,RawCell:()=>Je,RawCellModel:()=>V,SELECTED_HIGHLIGHT_CLASS:()=>oe,createCellSearchProvider:()=>de,isCodeCellModel:()=>B,isMarkdownCellModel:()=>F,isRawCellModel:()=>z});var i=n(97290);const s=5;const o="jp-dragImage";const r="jp-dragImage-singlePrompt";const a="jp-dragImage-content";const l="jp-dragImage-prompt";const d="jp-dragImage-multipleBack";var c;(function(e){function t(e,t,n){let i=-1;while(e&&e.parentElement){if(n(e)){let n=-1;for(const s of t){if(s.node===e){i=++n;break}}break}e=e.parentElement}return i}e.findCell=t;function n(e,t){var n,i;let s;if(e){if((n=e.editorWidget)===null||n===void 0?void 0:n.node.contains(t)){s="input"}else if((i=e.promptNode)===null||i===void 0?void 0:i.contains(t)){s="prompt"}else{s="cell"}}else{s="unknown"}return s}e.detectTargetArea=n;function c(e,t,n,i){const o=Math.abs(n-e);const r=Math.abs(i-t);return o>=s||r>=s}e.shouldStartDrag=c;function h(e,t){const n=t.length;let s;if(e.model.type==="code"){const t=e.model.executionCount;s=" ";if(t){s=t.toString()}}else{s=""}const c=e.model.sharedModel.getSource().split("\n")[0].slice(0,26);if(n>1){if(s!==""){return i.VirtualDOM.realize(i.h.div(i.h.div({className:o},i.h.span({className:l},"["+s+"]:"),i.h.span({className:a},c)),i.h.div({className:d},"")))}else{return i.VirtualDOM.realize(i.h.div(i.h.div({className:o},i.h.span({className:l}),i.h.span({className:a},c)),i.h.div({className:d},"")))}}else{if(s!==""){return i.VirtualDOM.realize(i.h.div(i.h.div({className:`${o} ${r}`},i.h.span({className:l},"["+s+"]:"),i.h.span({className:a},c))))}else{return i.VirtualDOM.realize(i.h.div(i.h.div({className:`${o} ${r}`},i.h.span({className:l}),i.h.span({className:a},c))))}}}e.createCellDragImage=h})(c||(c={}));var h=n(26331);var u=n(76326);var p=n(44914);const m="jp-Collapser";const g="jp-Collapser-child";const f="jp-InputCollapser";const v="jp-OutputCollapser";class _ extends h.ReactWidget{constructor(){super();this.addClass(m)}get collapsed(){return false}render(){const e=g;return p.createElement("div",{className:e,onClick:e=>this.handleClick(e)})}}class b extends _{constructor(){super();this.addClass(f)}get collapsed(){var e;const t=(e=this.parent)===null||e===void 0?void 0:e.parent;if(t){return t.inputHidden}else{return false}}handleClick(e){var t;const n=(t=this.parent)===null||t===void 0?void 0:t.parent;if(n){n.inputHidden=!n.inputHidden}this.update()}}class y extends _{constructor(){super();this.addClass(v)}get collapsed(){var e;const t=(e=this.parent)===null||e===void 0?void 0:e.parent;if(t){return t.outputHidden}else{return false}}handleClick(e){var t,n;const i=(t=this.parent)===null||t===void 0?void 0:t.parent;if(i){i.outputHidden=!i.outputHidden;if(i.outputHidden){let e=(n=i.parent)===null||n===void 0?void 0:n.node;if(e){u.ElementExt.scrollIntoViewIfNeeded(e,i.node)}}}this.update()}}var w=n(1143);const C="jp-CellHeader";const x="jp-CellFooter";class S extends w.Widget{constructor(){super();this.addClass(C)}}class k extends w.Widget{constructor(){super();this.addClass(x)}}var j=n(54723);const I="jp-InputArea";const E="jp-InputArea-prompt";const T="jp-InputPrompt";const M="jp-InputArea-editor";class D extends w.Widget{constructor(e){super();this.addClass(I);const{contentFactory:t,editorOptions:n,model:i}=e;this.model=i;this.contentFactory=t;const s=this._prompt=t.createInputPrompt();s.addClass(E);const o=this._editor=new j.CodeEditorWrapper({factory:t.editorFactory,model:i,editorOptions:n});o.addClass(M);const r=this.layout=new w.PanelLayout;r.addWidget(s);r.addWidget(o)}get editorWidget(){return this._editor}get editor(){return this._editor.editor}get promptNode(){return this._prompt.node}get renderedInput(){return this._rendered}renderInput(e){const t=this.layout;if(this._rendered){this._rendered.parent=null}this._editor.hide();this._rendered=e;t.addWidget(e)}showEditor(){if(this._rendered){this._rendered.parent=null}this._editor.show()}setPrompt(e){this._prompt.executionCount=e}dispose(){if(this.isDisposed){return}this._prompt=null;this._editor=null;this._rendered=null;super.dispose()}}(function(e){class t{constructor(e){this._editor=e.editorFactory}get editorFactory(){return this._editor}createInputPrompt(){return new A}}e.ContentFactory=t})(D||(D={}));class A extends w.Widget{constructor(){super();this._executionCount=null;this.addClass(T)}get executionCount(){return this._executionCount}set executionCount(e){this._executionCount=e;if(e===null){this.node.textContent=" "}else{this.node.textContent=`[${e||" "}]:`}}}var P=n(2336);var L=n(18815);var R=n(94493);var N=n(95917);const O=(0,N.createMutex)();function B(e){return e.type==="code"}function F(e){return e.type==="markdown"}function z(e){return e.type==="raw"}class H extends j.CodeEditor.Model{constructor(e={}){const{cell_type:t,sharedModel:n,...i}=e;super({sharedModel:n!==null&&n!==void 0?n:(0,N.createStandaloneCell)({cell_type:t!==null&&t!==void 0?t:"raw",id:e.id}),...i});this.contentChanged=new P.Signal(this);this.stateChanged=new P.Signal(this);this._metadataChanged=new P.Signal(this);this._trusted=false;this.standaloneModel=typeof e.sharedModel==="undefined";this.trusted=!!this.getMetadata("trusted")||!!e.trusted;this.sharedModel.changed.connect(this.onGenericChange,this);this.sharedModel.metadataChanged.connect(this._onMetadataChanged,this)}get metadataChanged(){return this._metadataChanged}get id(){return this.sharedModel.getId()}get metadata(){return this.sharedModel.metadata}get trusted(){return this._trusted}set trusted(e){const t=this.trusted;if(t!==e){this._trusted=e;this.onTrustedChanged(this,{newValue:e,oldValue:t})}}dispose(){if(this.isDisposed){return}this.sharedModel.changed.disconnect(this.onGenericChange,this);this.sharedModel.metadataChanged.disconnect(this._onMetadataChanged,this);super.dispose()}onTrustedChanged(e,t){}deleteMetadata(e){return this.sharedModel.deleteMetadata(e)}getMetadata(e){return this.sharedModel.getMetadata(e)}setMetadata(e,t){if(typeof t==="undefined"){this.sharedModel.deleteMetadata(e)}else{this.sharedModel.setMetadata(e,t)}}toJSON(){return this.sharedModel.toJSON()}onGenericChange(){this.contentChanged.emit(void 0)}_onMetadataChanged(e,t){this._metadataChanged.emit(t)}}class W extends H{constructor(e){var t;super(e);const n=(t=e.contentFactory)!==null&&t!==void 0?t:W.defaultContentFactory;const i=this.sharedModel.getAttachments();this._attachments=n.createAttachmentsModel({values:i});this._attachments.stateChanged.connect(this.onGenericChange,this);this._attachments.changed.connect(this._onAttachmentsChange,this);this.sharedModel.changed.connect(this._onSharedModelChanged,this)}get attachments(){return this._attachments}dispose(){if(this.isDisposed){return}this._attachments.stateChanged.disconnect(this.onGenericChange,this);this._attachments.changed.disconnect(this._onAttachmentsChange,this);this._attachments.dispose();this.sharedModel.changed.disconnect(this._onSharedModelChanged,this);super.dispose()}toJSON(){return super.toJSON()}_onAttachmentsChange(e,t){const n=this.sharedModel;O((()=>n.setAttachments(e.toJSON())))}_onSharedModelChanged(e,t){if(t.attachmentsChange){const e=this.sharedModel;O((()=>{var t;return this._attachments.fromJSON((t=e.getAttachments())!==null&&t!==void 0?t:{})}))}}}(function(e){class t{createAttachmentsModel(e){return new L.AttachmentsModel(e)}}e.ContentFactory=t;e.defaultContentFactory=new t})(W||(W={}));class V extends W{constructor(e={}){super({cell_type:"raw",...e})}get type(){return"raw"}toJSON(){return super.toJSON()}}class U extends W{constructor(e={}){super({cell_type:"markdown",...e});this.mimeType="text/x-ipythongfm"}get type(){return"markdown"}toJSON(){return super.toJSON()}}class q extends H{constructor(e={}){var t;super({cell_type:"code",...e});this._executedCode="";this._isDirty=false;const n=(t=e===null||e===void 0?void 0:e.contentFactory)!==null&&t!==void 0?t:q.defaultContentFactory;const i=this.trusted;const s=this.sharedModel.getOutputs();this._outputs=n.createOutputArea({trusted:i,values:s});this.sharedModel.changed.connect(this._onSharedModelChanged,this);this._outputs.changed.connect(this.onGenericChange,this);this._outputs.changed.connect(this.onOutputsChange,this)}get type(){return"code"}get executionCount(){return this.sharedModel.execution_count||null}set executionCount(e){this.sharedModel.execution_count=e||null}get executionState(){return this.sharedModel.executionState}set executionState(e){this.sharedModel.executionState=e}get isDirty(){return this._isDirty}set isDirty(e){this._setDirty(e)}get outputs(){return this._outputs}clearExecution(){this.outputs.clear();this.executionCount=null;this.executionState="idle";this._setDirty(false);this.sharedModel.deleteMetadata("execution");this.trusted=true}dispose(){if(this.isDisposed){return}this.sharedModel.changed.disconnect(this._onSharedModelChanged,this);this._outputs.changed.disconnect(this.onGenericChange,this);this._outputs.changed.disconnect(this.onOutputsChange,this);this._outputs.dispose();this._outputs=null;super.dispose()}onTrustedChanged(e,t){const n=t.newValue;if(this._outputs){this._outputs.trusted=n}if(n){const e=this.sharedModel;const t=e.getMetadata();t.trusted=true;e.setMetadata(t)}this.stateChanged.emit({name:"trusted",oldValue:t.oldValue,newValue:n})}toJSON(){return super.toJSON()}onOutputsChange(e,t){const n=this.sharedModel;O((()=>{switch(t.type){case"add":{for(const n of t.newValues){if(n.type==="stream"){n.streamText.changed.connect(((e,n)=>{if(n.options!==undefined&&n.options["silent"]){return}const i=this.sharedModel;if(n.type==="remove"){i.removeStreamOutput(t.newIndex,n.start,"silent-change")}else{i.appendStreamOutput(t.newIndex,n.value,"silent-change")}}),this)}}const e=t.newValues.map((e=>e.toJSON()));n.updateOutputs(t.newIndex,t.newIndex,e,"silent-change");break}case"set":{const e=t.newValues.map((e=>e.toJSON()));n.updateOutputs(t.oldIndex,t.oldIndex+e.length,e,"silent-change");break}case"remove":n.updateOutputs(t.oldIndex,t.oldValues.length,[],"silent-change");break;default:throw new Error(`Invalid event type: ${t.type}`)}}))}_onSharedModelChanged(e,t){if(t.streamOutputChange){O((()=>{for(const e of t.streamOutputChange){if("delete"in e){this._outputs.removeStreamOutput(e.delete)}if("insert"in e){this._outputs.appendStreamOutput(e.insert.toString())}}}))}if(t.outputsChange){O((()=>{let e=0;for(const n of t.outputsChange){if("retain"in n){e+=n.retain}if("delete"in n){for(let t=0;t{if(e){this.cmHandler.setEditor(this.editor)}}))}}get editor(){return this.cell.editor}get model(){return this.cell.model}}class ae extends re{constructor(e){super(e);this.currentProviderIndex=-1;this.outputsProvider=[];const t=this.cell.outputArea;this._onOutputsChanged(t,t.widgets.length).catch((e=>{console.error(`Failed to initialize search on cell outputs.`,e)}));t.outputLengthChanged.connect(this._onOutputsChanged,this);t.disposed.connect((()=>{t.outputLengthChanged.disconnect(this._onOutputsChanged)}),this)}get matchesCount(){if(!this.isActive){return 0}return super.matchesCount+this.outputsProvider.reduce(((e,t)=>{var n;return e+((n=t.matchesCount)!==null&&n!==void 0?n:0)}),0)}async clearHighlight(){await super.clearHighlight();await Promise.all(this.outputsProvider.map((e=>e.clearHighlight())))}dispose(){if(this.isDisposed){return}super.dispose();this.outputsProvider.map((e=>{e.dispose()}));this.outputsProvider.length=0}async highlightNext(e,t){var n;const i=(n=t===null||t===void 0?void 0:t.from)!==null&&n!==void 0?n:"";if(this.matchesCount===0||i==="previous-match"&&this.currentIndex!==null&&this.currentIndex+1>=this.cmHandler.matches.length||!this.isActive){this.currentIndex=null}else{if(this.currentProviderIndex===-1){const n=await super.highlightNext(e,t);if(n){this.currentIndex=this.cmHandler.currentIndex;return n}else{this.currentProviderIndex=0}}while(this.currentProviderIndex{var n;return e+=(n=t.matchesCount)!==null&&n!==void 0?n:0}),0)+e.currentMatchIndex;return t}else{this.currentProviderIndex+=1}}this.currentProviderIndex=-1;this.currentIndex=null;return undefined}}async highlightPrevious(){if(this.matchesCount===0||!this.isActive){this.currentIndex=null}else{if(this.currentIndex===null){this.currentProviderIndex=this.outputsProvider.length-1}while(this.currentProviderIndex>=0){const e=this.outputsProvider[this.currentProviderIndex];const t=await e.highlightPrevious(false);if(t){this.currentIndex=super.matchesCount+this.outputsProvider.slice(0,this.currentProviderIndex).reduce(((e,t)=>{var n;return e+=(n=t.matchesCount)!==null&&n!==void 0?n:0}),0)+e.currentMatchIndex;return t}else{this.currentProviderIndex-=1}}const e=await super.highlightPrevious();if(e){this.currentIndex=this.cmHandler.currentIndex;return e}else{this.currentIndex=null;return undefined}}}async startQuery(e,t){await super.startQuery(e,t);if((t===null||t===void 0?void 0:t.output)!==false&&this.isActive){await Promise.all(this.outputsProvider.map((t=>t.startQuery(e))))}}async endQuery(){var e;await super.endQuery();if(((e=this.filters)===null||e===void 0?void 0:e.output)!==false&&this.isActive){await Promise.all(this.outputsProvider.map((e=>e.endQuery())))}}async replaceAllMatches(e,t){if(this.model.getMetadata("editable")===false)return Promise.resolve(false);const n=await super.replaceAllMatches(e,t);return n}async replaceCurrentMatch(e,t,n){if(this.model.getMetadata("editable")===false)return Promise.resolve(false);const i=await super.replaceCurrentMatch(e,t,n);return i}async _onOutputsChanged(e,t){var n;this.outputsProvider.forEach((e=>{e.dispose()}));this.outputsProvider.length=0;this.currentProviderIndex=-1;this.outputsProvider=this.cell.outputArea.widgets.map((e=>new se.GenericSearchProvider(e)));if(this.isActive&&this.query&&((n=this.filters)===null||n===void 0?void 0:n.output)!==false){await Promise.all([this.outputsProvider.map((e=>{void e.startQuery(this.query)}))])}this._stateChanged.emit()}}class le extends re{constructor(e){super(e);this._unrenderedByHighlight=false;this.renderedProvider=new se.GenericSearchProvider(e.renderer)}async clearHighlight(){await super.clearHighlight();await this.renderedProvider.clearHighlight()}dispose(){if(this.isDisposed){return}super.dispose();this.renderedProvider.dispose()}async endQuery(){await super.endQuery();await this.renderedProvider.endQuery()}async highlightNext(e=true,t){let n=undefined;if(!this.isActive){return n}const i=this.cell;if(i.rendered&&this.matchesCount>0){this._unrenderedByHighlight=true;const e=(0,ie.signalToPromise)(i.renderedChanged);i.rendered=false;await e}n=await super.highlightNext(e,t);return n}async highlightPrevious(){let e=undefined;const t=this.cell;if(t.rendered&&this.matchesCount>0){this._unrenderedByHighlight=true;const e=(0,ie.signalToPromise)(t.renderedChanged);t.rendered=false;await e}e=await super.highlightPrevious();return e}async startQuery(e,t){await super.startQuery(e,t);const n=this.cell;if(n.rendered){this.onRenderedChanged(n,n.rendered)}n.renderedChanged.connect(this.onRenderedChanged,this)}async replaceAllMatches(e,t){if(this.model.getMetadata("editable")===false)return Promise.resolve(false);const n=await super.replaceAllMatches(e,t);if(this.cell.rendered){this.cell.update()}return n}async replaceCurrentMatch(e,t,n){if(this.model.getMetadata("editable")===false)return Promise.resolve(false);const i=await super.replaceCurrentMatch(e,t,n);return i}onRenderedChanged(e,t){var n;if(!this._unrenderedByHighlight){this.currentIndex=null}this._unrenderedByHighlight=false;if(this.isActive){if(t){void this.renderedProvider.startQuery(this.query)}else{(n=e.editor)===null||n===void 0?void 0:n.setCursorPosition({column:0,line:0});void this.renderedProvider.endQuery()}}}}function de(e){if(e.isPlaceholder()){return new re(e)}switch(e.model.type){case"code":return new ae(e);case"markdown":return new le(e);default:return new re(e)}}var ce=n(22819);var he=n(14366);var ue=n(44539);var pe=n(62149);var me=n(5592);var ge=n(34236);var fe=n(42856);var ve=n(26568);const _e="jp-CellResizeHandle";const be="jp-mod-resizedCell";class ye extends w.Widget{constructor(e){super();this.targetNode=e;this._isActive=false;this._isDragging=false;this.sizeChanged=new P.Signal(this);this.addClass(_e);this._resizer=new ve.Throttler((e=>this._resize(e)),50)}dispose(){this._resizer.dispose();super.dispose()}handleEvent(e){var t,n;switch(e.type){case"dblclick":(t=this.targetNode.parentNode)===null||t===void 0?void 0:t.childNodes.forEach((e=>{e.classList.remove(be)}));document.documentElement.style.setProperty("--jp-side-by-side-output-size",`1fr`);this._isActive=false;break;case"mousedown":this._isDragging=true;if(!this._isActive){(n=this.targetNode.parentNode)===null||n===void 0?void 0:n.childNodes.forEach((e=>{e.classList.add(be)}));this._isActive=true}window.addEventListener("mousemove",this);window.addEventListener("mouseup",this);break;case"mousemove":{if(this._isActive&&this._isDragging){void this._resizer.invoke(e)}break}case"mouseup":this._isDragging=false;window.removeEventListener("mousemove",this);window.removeEventListener("mouseup",this);break;default:break}}onAfterAttach(e){this.node.addEventListener("dblclick",this);this.node.addEventListener("mousedown",this);super.onAfterAttach(e)}onBeforeDetach(e){this.node.removeEventListener("dblclick",this);this.node.removeEventListener("mousedown",this);super.onBeforeDetach(e)}_resize(e){const{width:t,x:n}=this.targetNode.getBoundingClientRect();const i=e.clientX-n;const s=t/i-1;if(0{const i=this._inViewport!==null;const s=i&&!this._inViewport;this._scrollRequested.emit({defaultPrevented:s,scrollWithinCell:()=>{e.dispatch({effects:ce.EditorView.scrollIntoView(t,n)})}});return s}));this._editorConfig={};this._editorExtensions=[];this._inputHidden=false;this._inViewportChanged=new P.Signal(this);this._readOnly=false;this._ready=new me.PromiseDelegate;this._resizeDebouncer=new ve.Debouncer((()=>{this._displayChanged.emit()}),0);this._syncCollapse=false;this._syncEditable=false;this.addClass(we);const o=this._model=e.model;this.contentFactory=e.contentFactory;this.layout=(t=e.layout)!==null&&t!==void 0?t:new w.PanelLayout;this.translator=(n=e.translator)!==null&&n!==void 0?n:$.nullTranslator;this._editorConfig={searchWithCM:false,...e.editorConfig};this._editorExtensions=(i=e.editorExtensions)!==null&&i!==void 0?i:[];this._editorExtensions.push(this._scrollHandlerExtension);this._placeholder=true;this._inViewport=null;this.placeholder=(s=e.placeholder)!==null&&s!==void 0?s:true;o.metadataChanged.connect(this.onMetadataChanged,this)}initializeState(){this.loadCollapseState();this.loadEditableState();return this}get displayChanged(){return this._displayChanged}get inViewport(){var e;return(e=this._inViewport)!==null&&e!==void 0?e:false}set inViewport(e){if(this._inViewport!==e){this._inViewport=e;this._inViewportChanged.emit(this._inViewport)}}get inViewportChanged(){return this._inViewportChanged}get placeholder(){return this._placeholder}set placeholder(e){if(this._placeholder!==e&&e===false){this.initializeDOM();this._placeholder=e;this._ready.resolve()}}get promptNode(){if(this.placeholder){return null}if(!this._inputHidden){return this._input.promptNode}else{return this._inputPlaceholder.node.firstElementChild}}get editorWidget(){var e,t;return(t=(e=this._input)===null||e===void 0?void 0:e.editorWidget)!==null&&t!==void 0?t:null}get editor(){var e,t;return(t=(e=this._input)===null||e===void 0?void 0:e.editor)!==null&&t!==void 0?t:null}get editorConfig(){return this._editorConfig}get headings(){return new Array}get model(){return this._model}get inputArea(){return this._input}get readOnly(){return this._readOnly}set readOnly(e){if(e===this._readOnly){return}this._readOnly=e;if(this.syncEditable){this.saveEditableState()}this.update()}isPlaceholder(){return this.placeholder}saveEditableState(){const{sharedModel:e}=this.model;const t=e.getMetadata("editable");if(this.readOnly&&t===false||!this.readOnly&&t===undefined){return}if(this.readOnly){e.setMetadata("editable",false)}else{e.deleteMetadata("editable")}}loadEditableState(){this.readOnly=this.model.sharedModel.getMetadata("editable")===false}get ready(){return this._ready.promise}setPrompt(e){return this._setPrompt(e)}_setPrompt(e){var t;this.prompt=e;(t=this._input)===null||t===void 0?void 0:t.setPrompt(e)}get inputHidden(){return this._inputHidden}set inputHidden(e){var t;if(this._inputHidden===e){return}if(!this.placeholder){const n=this._inputWrapper.layout;if(e){this._input.parent=null;if(this._inputPlaceholder){this._inputPlaceholder.text=(t=this.model.sharedModel.getSource().split("\n"))===null||t===void 0?void 0:t[0]}n.addWidget(this._inputPlaceholder)}else{this._inputPlaceholder.parent=null;n.addWidget(this._input)}}this._inputHidden=e;if(this.syncCollapse){this.saveCollapseState()}this.handleInputHidden(e)}saveCollapseState(){const e={...this.model.getMetadata("jupyter")};if(this.inputHidden&&e.source_hidden===true||!this.inputHidden&&e.source_hidden===undefined){return}if(this.inputHidden){e.source_hidden=true}else{delete e.source_hidden}if(Object.keys(e).length===0){this.model.deleteMetadata("jupyter")}else{this.model.setMetadata("jupyter",e)}}loadCollapseState(){var e;const t=(e=this.model.getMetadata("jupyter"))!==null&&e!==void 0?e:{};this.inputHidden=!!t.source_hidden}handleInputHidden(e){return}get syncCollapse(){return this._syncCollapse}set syncCollapse(e){if(this._syncCollapse===e){return}this._syncCollapse=e;if(e){this.loadCollapseState()}}get syncEditable(){return this._syncEditable}set syncEditable(e){if(this._syncEditable===e){return}this._syncEditable=e;if(e){this.loadEditableState()}}clone(){const e=this.constructor;return new e({model:this.model,contentFactory:this.contentFactory,placeholder:false,translator:this.translator})}dispose(){if(this.isDisposed){return}this._resizeDebouncer.dispose();this._input=null;this._model=null;this._inputWrapper=null;this._inputPlaceholder=null;super.dispose()}updateEditorConfig(e){this._editorConfig={...this._editorConfig,...e};if(this.editor){this.editor.setBaseOptions(this._editorConfig)}}get scrollRequested(){return this._scrollRequested}initializeDOM(){if(!this.placeholder){return}const e=this.contentFactory;const t=this._model;const n=e.createCellHeader();n.addClass(Ce);this.layout.addWidget(n);const i=this._inputWrapper=new w.Panel;i.addClass(Se);const s=new b;s.addClass(Ee);const o=this._input=new D({model:t,contentFactory:e,editorOptions:this.getEditorOptions()});o.addClass(je);i.addWidget(s);i.addWidget(o);this.layout.addWidget(i);this._inputPlaceholder=new ee({callback:()=>{this.inputHidden=!this.inputHidden},text:o.model.sharedModel.getSource().split("\n")[0],translator:this.translator});o.model.contentChanged.connect(((e,t)=>{var n;if(this._inputPlaceholder&&this.inputHidden){this._inputPlaceholder.text=(n=e.sharedModel.getSource().split("\n"))===null||n===void 0?void 0:n[0]}}));if(this.inputHidden){o.parent=null;i.layout.addWidget(this._inputPlaceholder)}const r=this.contentFactory.createCellFooter();r.addClass(xe);this.layout.addWidget(r)}getEditorOptions(){return{config:this.editorConfig,extensions:this._editorExtensions}}onBeforeAttach(e){if(this.placeholder){this.placeholder=false}}onAfterAttach(e){this.update()}onActivateRequest(e){var t;(t=this.editor)===null||t===void 0?void 0:t.focus()}onResize(e){void this._resizeDebouncer.invoke()}onUpdateRequest(e){var t,n;if(!this._model){return}if(((t=this.editor)===null||t===void 0?void 0:t.getOption("readOnly"))!==this._readOnly){(n=this.editor)===null||n===void 0?void 0:n.setOption("readOnly",this._readOnly)}}onContentChanged(){var e;if(this.inputHidden&&this._inputPlaceholder){this._inputPlaceholder.text=(e=this.model.sharedModel.getSource().split("\n"))===null||e===void 0?void 0:e[0]}}onMetadataChanged(e,t){switch(t.key){case"jupyter":if(this.syncCollapse){this.loadCollapseState()}break;case"editable":if(this.syncEditable){this.loadEditableState()}break;default:break}}}(function(e){let t;(function(e){e[e["HTML"]=0]="HTML";e[e["Markdown"]=1]="Markdown"})(t=e.HeadingType||(e.HeadingType={}));class n{constructor(e){this._editorFactory=e.editorFactory}get editorFactory(){return this._editorFactory}createCellHeader(){return new S}createCellFooter(){return new k}createInputPrompt(){return new A}createOutputPrompt(){return new R.OutputPrompt}createStdin(e){return new R.Stdin(e)}}e.ContentFactory=n})(Ve||(Ve={}));class Ue extends w.PanelLayout{onBeforeAttach(e){let t=true;const n=this.parent.node.firstElementChild;for(const i of this){if(n){if(i.node===n){t=false}else{fe.MessageLoop.sendMessage(i,e);if(t){this.parent.node.insertBefore(i.node,n)}else{this.parent.node.appendChild(i.node)}if(!this.parent.isHidden){i.setFlag(w.Widget.Flag.IsVisible)}fe.MessageLoop.sendMessage(i,w.Widget.Msg.AfterAttach)}}}}onAfterDetach(e){for(const t of this){if(!t.hasClass(ke)&&t.node.isConnected){fe.MessageLoop.sendMessage(t,w.Widget.Msg.BeforeDetach);this.parent.node.removeChild(t.node);fe.MessageLoop.sendMessage(t,e)}}}}class qe extends Ve{constructor(e){var t;super({layout:new Ue,...e,placeholder:true});this._detectCaretMovementInOuput=e=>{const t=this._inViewport!==null;const n=t&&!this._inViewport;const i=e.target;if(!i||!(i instanceof HTMLElement)){return}if(this._lastTarget){this._lastTarget.removeEventListener("selectionchange",this._lastOnCaretMovedHandler);document.removeEventListener("selectionchange",this._lastOnCaretMovedHandler)}const s=()=>{this._scrollRequested.emit({scrollWithinCell:({scroller:e})=>{u.ElementExt.scrollIntoViewIfNeeded(e,i)},defaultPrevented:n})};this._lastTarget=i;this._lastOnCaretMovedHandler=s;i.addEventListener("selectionchange",s,{once:true});document.addEventListener("selectionchange",s,{once:true});setTimeout((()=>{i.removeEventListener("selectionchange",s);document.removeEventListener("selectionchange",s)}),250)};this._headingsCache=null;this._outputHidden=false;this._outputWrapper=null;this._outputPlaceholder=null;this._syncScrolled=false;this._lastTarget=null;this._lastOutputHeight="";this.addClass(De);const n=this.translator.load("jupyterlab");const i=this._rendermime=e.rendermime;const s=this.contentFactory;const o=this.model;this.maxNumberOutputs=e.maxNumberOutputs;const r=o.outputs.length===0?n.__("Code Cell Content"):n.__("Code Cell Content with Output");this.node.setAttribute("aria-label",r);const a=this._output=new R.OutputArea({model:this.model.outputs,rendermime:i,contentFactory:s,maxNumberOutputs:this.maxNumberOutputs,translator:this.translator,promptOverlay:true,inputHistoryScope:e.inputHistoryScope,showInputPlaceholder:e.showInputPlaceholder});a.node.addEventListener("keydown",this._detectCaretMovementInOuput);a.addClass(Ie);a.toggleScrolling.connect((()=>{this.outputsScrolled=!this.outputsScrolled}));a.initialize.connect((()=>{this.updatePromptOverlayIcon()}));this.placeholder=(t=e.placeholder)!==null&&t!==void 0?t:true;o.outputs.changed.connect(this.onOutputChanged,this);o.outputs.stateChanged.connect(this.onOutputChanged,this);o.stateChanged.connect(this.onStateChanged,this)}initializeDOM(){if(!this.placeholder){return}super.initializeDOM();this._updatePrompt();const e=this._outputWrapper=new w.Panel;e.addClass(ke);const t=new y;t.addClass(Te);e.addWidget(t);if(this.model.outputs.length===0){this.addClass(Fe)}this._output.outputLengthChanged.connect(this._outputLengthHandler,this);e.addWidget(this._output);const n=this.layout;const i=new ye(this.node);i.sizeChanged.connect(this._sizeChangedHandler,this);n.insertWidget(n.widgets.length-1,i);n.insertWidget(n.widgets.length-1,e);if(this.model.isDirty){this.addClass(Me)}this._outputPlaceholder=new te({callback:()=>{this.outputHidden=!this.outputHidden},text:this.getOutputPlaceholderText(),translator:this.translator});const s=e.layout;if(this.outputHidden){s.removeWidget(this._output);s.addWidget(this._outputPlaceholder);if(this.inputHidden&&!e.isHidden){this._outputWrapper.hide()}}const o=this.translator.load("jupyterlab");const r=this.model.outputs.length===0?o.__("Code Cell Content"):o.__("Code Cell Content with Output");this.node.setAttribute("aria-label",r)}getOutputPlaceholderText(){var e;const t=this.model.outputs.get(0);const n=t===null||t===void 0?void 0:t.data;if(!n){return undefined}const i=["text/html","image/svg+xml","application/pdf","text/markdown","text/plain","application/vnd.jupyter.stderr","application/vnd.jupyter.stdout","text"];const s=i.find((e=>{const n=t.data[e];return(Array.isArray(n)?typeof n[0]:typeof n)==="string"}));const o=t.data[s!==null&&s!==void 0?s:""];if(o!==undefined){return(e=Array.isArray(o)?o:o===null||o===void 0?void 0:o.split("\n"))===null||e===void 0?void 0:e.find((e=>e!==""))}return undefined}initializeState(){super.initializeState();this.loadScrolledState();this._updatePrompt();return this}get headings(){if(!this._headingsCache){const e=[];const t=this.model.outputs;for(let n=0;n{if(!o&&pe.TableOfContentsUtils.Markdown.isMarkdown(e)){o=e}else if(!s&&pe.TableOfContentsUtils.isHTML(e)){s=e}}));if(s){let t=i.data[s];if(typeof t!=="string"){t=t.join("\n")}e.push(...pe.TableOfContentsUtils.getHTMLHeadings(this._rendermime.sanitizer.sanitize(t)).map((e=>({...e,outputIndex:n,type:Ve.HeadingType.HTML}))))}else if(o){e.push(...pe.TableOfContentsUtils.Markdown.getHeadings(i.data[o]).map((e=>({...e,outputIndex:n,type:Ve.HeadingType.Markdown}))))}}this._headingsCache=e}return[...this._headingsCache]}get outputArea(){return this._output}get outputHidden(){return this._outputHidden}set outputHidden(e){var t;if(this._outputHidden===e){return}if(!this.placeholder){const n=this._outputWrapper.layout;if(e){n.removeWidget(this._output);n.addWidget(this._outputPlaceholder);if(this.inputHidden&&!this._outputWrapper.isHidden){this._outputWrapper.hide()}if(this._outputPlaceholder){this._outputPlaceholder.text=(t=this.getOutputPlaceholderText())!==null&&t!==void 0?t:""}}else{if(this._outputWrapper.isHidden){this._outputWrapper.show()}n.removeWidget(this._outputPlaceholder);n.addWidget(this._output)}}this._outputHidden=e;if(this.syncCollapse){this.saveCollapseState()}}saveCollapseState(){this.model.sharedModel.transact((()=>{super.saveCollapseState();const e=this.model.getMetadata("collapsed");if(this.outputHidden&&e===true||!this.outputHidden&&e===undefined){return}if(this.outputHidden){this.model.setMetadata("collapsed",true)}else{this.model.deleteMetadata("collapsed")}}),false,"silent-change")}loadCollapseState(){super.loadCollapseState();this.outputHidden=!!this.model.getMetadata("collapsed")}get outputsScrolled(){return this._outputsScrolled}set outputsScrolled(e){this.toggleClass("jp-mod-outputsScrolled",e);this._outputsScrolled=e;if(this.syncScrolled){this.saveScrolledState()}this.updatePromptOverlayIcon()}updatePromptOverlayIcon(){var e;const t=he.DOMUtils.findElement(this.node,"jp-OutputArea-promptOverlay");if(!t){return}const n=16+4+4;if(t.clientHeight<=n){(e=t.firstChild)===null||e===void 0?void 0:e.remove();return}let i;if(this._outputsScrolled){h.expandIcon.element({container:t});i="Expand Output"}else{h.collapseIcon.element({container:t});i="Collapse Output"}const s=this.translator.load("jupyterlab");t.title=s.__(i)}saveScrolledState(){const e=this.model.getMetadata("scrolled");if(this.outputsScrolled&&e===true||!this.outputsScrolled&&e===undefined){return}if(this.outputsScrolled){this.model.setMetadata("scrolled",true)}else{this.outputArea.node.style.height="";this.model.deleteMetadata("scrolled")}}loadScrolledState(){if(this.model.getMetadata("scrolled")==="auto"){this.outputsScrolled=false}else{this.outputsScrolled=!!this.model.getMetadata("scrolled")}}get syncScrolled(){return this._syncScrolled}set syncScrolled(e){if(this._syncScrolled===e){return}this._syncScrolled=e;if(e){this.loadScrolledState()}}handleInputHidden(e){if(this.placeholder){return}if(!e&&this._outputWrapper.isHidden){this._outputWrapper.show()}else if(e&&!this._outputWrapper.isHidden&&this._outputHidden){this._outputWrapper.hide()}}clone(){const e=this.constructor;return new e({model:this.model,contentFactory:this.contentFactory,rendermime:this._rendermime,placeholder:false,translator:this.translator})}cloneOutputArea(){return new R.SimplifiedOutputArea({model:this.model.outputs,contentFactory:this.contentFactory,rendermime:this._rendermime})}dispose(){if(this.isDisposed){return}this._output.outputLengthChanged.disconnect(this._outputLengthHandler,this);this._output.node.removeEventListener("keydown",this._detectCaretMovementInOuput);this._rendermime=null;this._output=null;this._outputWrapper=null;this._outputPlaceholder=null;super.dispose()}onStateChanged(e,t){switch(t.name){case"executionCount":if(t.newValue!==null){this.model.executionState="idle"}this._updatePrompt();break;case"executionState":this._updatePrompt();break;case"isDirty":if(e.isDirty){this.addClass(Me)}else{this.removeClass(Me)}break;default:break}}onOutputChanged(){var e;this._headingsCache=null;if(this._outputPlaceholder&&this.outputHidden){this._outputPlaceholder.text=(e=this.getOutputPlaceholderText())!==null&&e!==void 0?e:""}this.updatePromptOverlayIcon();const t=this.outputArea.node.style.height;if(this.model.outputs.length===0&&t!==""){this._lastOutputHeight=t;this.outputArea.node.style.height=""}else if(this.model.outputs.length>0&&t===""){this.outputArea.node.style.height=this._lastOutputHeight}}onMetadataChanged(e,t){switch(t.key){case"scrolled":if(this.syncScrolled){this.loadScrolledState()}break;case"collapsed":if(this.syncCollapse){this.loadCollapseState()}break;default:break}super.onMetadataChanged(e,t)}_updatePrompt(){let e;if(this.model.executionState=="running"){e="*"}else{e=`${this.model.executionCount||""}`}this._setPrompt(e)}_outputLengthHandler(e,t){const n=t===0?true:false;this.toggleClass(Fe,n);const i=this.translator.load("jupyterlab");const s=n?i.__("Code Cell Content"):i.__("Code Cell Content with Output");this.node.setAttribute("aria-label",s)}_sizeChangedHandler(e){this._displayChanged.emit()}}(function(e){async function t(e,t,n){var i;const s=e.model;const o=s.sharedModel.getSource();if(!o.trim()||!((i=t.session)===null||i===void 0?void 0:i.kernel)){s.sharedModel.transact((()=>{s.clearExecution()}),false,"silent-change");return}const r={cellId:s.sharedModel.getId()};n={...s.metadata,...n,...r};const{recordTiming:a}=n;s.sharedModel.transact((()=>{s.clearExecution();e.outputHidden=false}),false,"silent-change");s.executionState="running";s.trusted=true;let l;try{const i=R.OutputArea.execute(o,e.outputArea,t,n);if(a){const t=e=>{let t;switch(e.header.msg_type){case"status":t=`status.${e.content.execution_state}`;break;case"execute_input":t="execute_input";break;default:return true}const n=e.header.date||(new Date).toISOString();const i=Object.assign({},s.getMetadata("execution"));i[`iopub.${t}`]=n;s.setMetadata("execution",i);return true};e.outputArea.future.registerMessageHook(t)}else{s.deleteMetadata("execution")}l=e.outputArea.future;const r=await i;s.executionCount=r.content.execution_count;if(a){const e=Object.assign({},s.getMetadata("execution"));const t=r.metadata.started;if(t){e["shell.execute_reply.started"]=t}const n=r.header.date;e["shell.execute_reply"]=n||(new Date).toISOString();s.setMetadata("execution",e)}return r}catch(d){if(l&&!e.isDisposed&&e.outputArea.future===l){e.model.executionState="idle";if(a&&l.isDisposed){const e=Object.assign({},s.getMetadata("execution"));e["execution_failed"]=(new Date).toISOString();s.setMetadata("execution",e)}}throw d}}e.execute=t})(qe||(qe={}));class $e extends Ve{handleEvent(e){switch(e.type){case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;default:break}}getEditorOptions(){var e,t;const n=(e=super.getEditorOptions())!==null&&e!==void 0?e:{};n.extensions=[...(t=n.extensions)!==null&&t!==void 0?t:[],ce.EditorView.domEventHandlers({dragenter:e=>{e.preventDefault()},dragover:e=>{e.preventDefault()},drop:e=>{this._evtNativeDrop(e)},paste:e=>{this._evtPaste(e)}})];return n}onAfterAttach(e){super.onAfterAttach(e);const t=this.node;t.addEventListener("lm-dragover",this);t.addEventListener("lm-drop",this)}onBeforeDetach(e){const t=this.node;t.removeEventListener("lm-dragover",this);t.removeEventListener("lm-drop",this);super.onBeforeDetach(e)}_evtDragOver(e){const t=(0,ge.some)(ue.imageRendererFactory.mimeTypes,(t=>{if(!e.mimeData.hasData(We)){return false}const n=e.mimeData.getData(We);return n.model.mimetype===t}));if(!t){return}e.preventDefault();e.stopPropagation();e.dropAction=e.proposedAction}_evtPaste(e){var t;const n=(t=this.model.getMetadata("editable"))!==null&&t!==void 0?t:true;if(e.clipboardData&&n){const t=e.clipboardData.items;for(let n=0;n{var t,n;(n=(t=this.editor).replaceSelection)===null||n===void 0?void 0:n.call(t,e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"))}))}this._attachFiles(e.clipboardData.items)}}e.preventDefault()}_evtNativeDrop(e){if(e.dataTransfer){this._attachFiles(e.dataTransfer.items)}e.preventDefault()}_evtDrop(e){const t=e.mimeData.types().filter((t=>{if(t===We){const t=e.mimeData.getData(We);return ue.imageRendererFactory.mimeTypes.indexOf(t.model.mimetype)!==-1}return ue.imageRendererFactory.mimeTypes.indexOf(t)!==-1}));if(t.length===0){return}e.preventDefault();e.stopPropagation();if(e.proposedAction==="none"){e.dropAction="none";return}e.dropAction="copy";for(const n of t){if(n===We){const{model:t,withContent:n}=e.mimeData.getData(We);if(t.type==="file"){const e=this._generateURI(t.name);this.updateCellSourceWithAttachment(t.name,e);void n().then((t=>{this.model.attachments.set(e,{[t.mimetype]:t.content})}))}}else{const t=this._generateURI();this.model.attachments.set(t,{[n]:e.mimeData.getData(n)});this.updateCellSourceWithAttachment(t,t)}}}_attachFiles(e){for(let t=0;t{const{href:i,protocol:s}=ie.URLExt.parse(t.result);if(s!=="data:"){return}const o=/([\w+\/\+]+)?(?:;(charset=[\w\d-]*|base64))?,(.*)/;const r=o.exec(i);if(!r||r.length!==4){return}const a=r[1];const l=r[3];const d={[a]:l};const c=this._generateURI(e.name);if(a.startsWith("image/")){this.model.attachments.set(c,d);this.updateCellSourceWithAttachment(e.name,c)}};t.onerror=t=>{console.error(`Failed to attach ${e.name}`+t)};t.readAsDataURL(e)}_generateURI(e=""){const t=e.lastIndexOf(".");return t!==-1?me.UUID.uuid4().concat(e.substring(t)):me.UUID.uuid4()}}class Ke extends $e{constructor(e){var t,n,i,s;super({...e,placeholder:true});this._headingsCache=null;this._headingCollapsedChanged=new P.Signal(this);this._prevText="";this._rendered=true;this._renderedChanged=new P.Signal(this);this._showEditorForReadOnlyMarkdown=true;this.addClass(Ae);this.model.contentChanged.connect(this.onContentChanged,this);const o=this.translator.load("jupyterlab");this.node.setAttribute("aria-label",o.__("Markdown Cell Content"));this._rendermime=e.rendermime.clone({resolver:new L.AttachmentsResolver({parent:(t=e.rendermime.resolver)!==null&&t!==void 0?t:undefined,model:this.model.attachments})});this._renderer=this._rendermime.createRenderer("text/markdown");this._renderer.addClass(Pe);this._headingCollapsed=(n=this.model.getMetadata(Le))!==null&&n!==void 0?n:false;this._showEditorForReadOnlyMarkdown=(i=e.showEditorForReadOnlyMarkdown)!==null&&i!==void 0?i:Ke.defaultShowEditorForReadOnlyMarkdown;this.placeholder=(s=e.placeholder)!==null&&s!==void 0?s:true;this._monitor=new ie.ActivityMonitor({signal:this.model.contentChanged,timeout:He});this.ready.then((()=>{if(this.isDisposed){return}this._monitor.activityStopped.connect((()=>{if(this._rendered){this.update()}}),this)})).catch((e=>{console.error("Failed to be ready",e)}))}get headingInfo(){const e=this.headings;if(e.length>0){const{text:t,level:n}=e.reduce(((e,t)=>e.level<=t.level?e:t),e[0]);return{text:t,level:n}}else{return{text:"",level:-1}}}get headings(){if(!this._headingsCache){const e=pe.TableOfContentsUtils.Markdown.getHeadings(this.model.sharedModel.getSource());this._headingsCache=e.map((e=>({...e,type:Ve.HeadingType.Markdown})))}return[...this._headingsCache]}get headingCollapsed(){return this._headingCollapsed}set headingCollapsed(e){var t;if(this._headingCollapsed!==e){this._headingCollapsed=e;if(e){this.model.setMetadata(Le,e)}else if(this.model.getMetadata(Le)!=="undefined"){this.model.deleteMetadata(Le)}const n=(t=this.inputArea)===null||t===void 0?void 0:t.promptNode.getElementsByClassName(Re)[0];if(n){if(e){n.classList.add("jp-mod-collapsed")}else{n.classList.remove("jp-mod-collapsed")}}this.renderCollapseButtons(this._renderer);this._headingCollapsedChanged.emit(this._headingCollapsed)}}get numberChildNodes(){return this._numberChildNodes}set numberChildNodes(e){this._numberChildNodes=e;this.renderCollapseButtons(this._renderer)}get headingCollapsedChanged(){return this._headingCollapsedChanged}get rendered(){return this._rendered}set rendered(e){if(this.readOnly&&this._showEditorForReadOnlyMarkdown===false){e=true}if(e===this._rendered){return}this._rendered=e;this._handleRendered().then((()=>{this._displayChanged.emit();this._renderedChanged.emit(this._rendered)})).catch((e=>{console.error("Failed to render",e)}))}get renderedChanged(){return this._renderedChanged}get showEditorForReadOnly(){return this._showEditorForReadOnlyMarkdown}set showEditorForReadOnly(e){this._showEditorForReadOnlyMarkdown=e;if(e===false){this.rendered=true}}get renderer(){return this._renderer}dispose(){if(this.isDisposed){return}this._monitor.dispose();super.dispose()}initializeDOM(){if(!this.placeholder){return}super.initializeDOM();this.renderCollapseButtons(this._renderer);this._handleRendered().catch((e=>{console.error("Failed to render",e)}))}maybeCreateCollapseButton(){var e;const{level:t}=this.headingInfo;if(t>0&&((e=this.inputArea)===null||e===void 0?void 0:e.promptNode.getElementsByClassName(Re).length)==0){let e=this.inputArea.promptNode.appendChild(document.createElement("button"));e.className=`jp-Button ${Re}`;e.setAttribute("data-heading-level",t.toString());if(this._headingCollapsed){e.classList.add("jp-mod-collapsed")}else{e.classList.remove("jp-mod-collapsed")}e.onclick=e=>{this.headingCollapsed=!this.headingCollapsed}}}maybeCreateOrUpdateExpandButton(){const e=this.node.getElementsByClassName(Ne);let t=this.translator.load("jupyterlab");let n=t._n("%1 cell hidden","%1 cells hidden",this._numberChildNodes);let i=this.headingCollapsed&&this._numberChildNodes>0&&e.length==0;if(i){const e=document.createElement("button");e.className=`jp-mod-minimal jp-Button ${Ne}`;h.addIcon.render(e);const t=document.createElement("div");t.textContent=n;e.appendChild(t);e.onclick=()=>{this.headingCollapsed=false};this.node.appendChild(e)}let s=this.headingCollapsed&&this._numberChildNodes>0&&e.length==1;if(s){e[0].childNodes[1].textContent=n}let o=!(this.headingCollapsed&&this._numberChildNodes>0);if(o){for(const t of e){this.node.removeChild(t)}}}onContentChanged(){super.onContentChanged();this._headingsCache=null}renderCollapseButtons(e){this.node.classList.toggle(Le,this._headingCollapsed);this.maybeCreateCollapseButton();this.maybeCreateOrUpdateExpandButton()}renderInput(e){this.addClass(Be);if(!this.placeholder&&!this.isDisposed){this.renderCollapseButtons(e);this.inputArea.renderInput(e)}}showEditor(){this.removeClass(Be);if(!this.placeholder&&!this.isDisposed){this.inputArea.showEditor();let e=(this.model.sharedModel.getSource().match(/^#+/g)||[""])[0].length;if(e>0){this.inputArea.editor.setCursorPosition({column:e+1,line:0},{scroll:false})}}}onUpdateRequest(e){this._handleRendered().catch((e=>{console.error("Failed to render",e)}));super.onUpdateRequest(e)}updateCellSourceWithAttachment(e,t){var n,i;const s=`![${e}](attachment:${t!==null&&t!==void 0?t:e})`;(i=(n=this.editor)===null||n===void 0?void 0:n.replaceSelection)===null||i===void 0?void 0:i.call(n,s)}async _handleRendered(){if(!this._rendered){this.showEditor()}else{await this._updateRenderedInput();if(this._rendered){this.renderInput(this._renderer)}}}_updateRenderedInput(){if(this.placeholder){return Promise.resolve()}const e=this.model;const t=e&&e.sharedModel.getSource()||ze;if(t!==this._prevText){const e=new ue.MimeModel({data:{"text/markdown":t}});this._prevText=t;return this._renderer.renderModel(e)}return Promise.resolve()}clone(){const e=this.constructor;return new e({model:this.model,contentFactory:this.contentFactory,rendermime:this._rendermime,placeholder:false,translator:this.translator})}}(function(e){e.defaultShowEditorForReadOnlyMarkdown=true})(Ke||(Ke={}));class Je extends Ve{constructor(e){super(e);this.addClass(Oe);const t=this.translator.load("jupyterlab");this.node.setAttribute("aria-label",t.__("Raw Cell Content"))}clone(){const e=this.constructor;return new e({model:this.model,contentFactory:this.contentFactory,placeholder:false,translator:this.translator})}}},53377:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(5893);var a=n(38457);var l=n(17325);var d=n(19562);var c=n(23359);var h=n(39063);var u=n(1649);var p=n(66731);var m=n(85072);var g=n.n(m);var f=n(97825);var v=n.n(f);var _=n(77659);var b=n.n(_);var y=n(55056);var w=n.n(y);var C=n(10540);var x=n.n(C);var S=n(41113);var k=n.n(S);var j=n(55717);var I={};I.styleTagTransform=k();I.setAttributes=w();I.insert=b().bind(null,"head");I.domAPI=v();I.insertStyleElement=x();var E=g()(j.A,I);const T=j.A&&j.A.locals?j.A.locals:undefined},28211:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>_});var i=n(80349);var s=n(44914);var o=n.n(s);var r=n(26331);var a=n(34236);var l=n(30619);const d="jp-CellTags";const c="jp-CellTags-Tag";const h="jp-CellTags-Applied";const u="jp-CellTags-Unapplied";const p="jp-CellTags-Holder";const m="jp-CellTags-Add";const g="jp-CellTags-Empty";class f{constructor(e,t){this._tracker=e;this._translator=t||l.nullTranslator;this._trans=this._translator.load("jupyterlab");this._editing=false}addTag(e,t){const n=e.formData;if(t&&!n.includes(t)){n.push(t);e.formContext.updateMetadata({[e.name]:n},true)}}pullTags(){var e,t;const n=(e=this._tracker)===null||e===void 0?void 0:e.currentWidget;const i=(t=n===null||n===void 0?void 0:n.model)===null||t===void 0?void 0:t.cells;if(i===undefined){return[]}const s=(0,a.reduce)(i,((e,t)=>{var n;const i=(n=t.getMetadata("tags"))!==null&&n!==void 0?n:[];return[...e,...i]}),[]);return[...new Set(s)].filter((e=>e!==""))}_emptyAddTag(e){e.value="";e.style.width="";e.classList.add(g)}_onAddTagKeyDown(e,t){const n=t.target;if(t.ctrlKey)return;if(t.key==="Enter"){this.addTag(e,n.value)}else if(t.key==="Escape"){this._emptyAddTag(n)}}_onAddTagFocus(e){if(!this._editing){e.target.blur()}}_onAddTagBlur(e){if(this._editing){this._editing=false;this._emptyAddTag(e)}}_onChange(e){if(!e.target.value){this._emptyAddTag(e.target)}else{e.target.classList.remove(g);const t=document.createElement("span");t.className=m;t.textContent=e.target.value;document.body.appendChild(t);e.target.style.setProperty("width",`calc(${t.getBoundingClientRect().width}px + var(--jp-add-tag-extra-width))`);document.body.removeChild(t)}}_onAddTagClick(e,t){const n=t.target.closest("div");const i=n===null||n===void 0?void 0:n.childNodes[0];if(!this._editing){this._editing=true;i.value="";i.focus()}else if(t.target!==i){this.addTag(e,i.value)}t.preventDefault()}_onTagClick(e,t){const n=e.formData;if(n.includes(t)){n.splice(n.indexOf(t),1)}else{n.push(t)}e.formContext.updateMetadata({[e.name]:n},true)}render(e){const t=this.pullTags();return o().createElement("div",{className:d},o().createElement("div",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},"Cell Tags"),t&&t.map(((t,n)=>o().createElement("div",{key:n,className:`${c} ${e.formData.includes(t)?h:u}`,onClick:()=>this._onTagClick(e,t)},o().createElement("div",{className:p},o().createElement("span",null,t),e.formData.includes(t)&&o().createElement(r.LabIcon.resolveReact,{icon:r.checkIcon,tag:"span",elementPosition:"center",height:"18px",width:"18px",marginLeft:"5px",marginRight:"-3px"}))))),o().createElement("div",{className:`${c} ${u}`},o().createElement("div",{className:p,onMouseDown:t=>this._onAddTagClick(e,t)},o().createElement("input",{className:`${m} ${g}`,type:"text",placeholder:this._trans.__("Add Tag"),onKeyDown:t=>this._onAddTagKeyDown(e,t),onFocus:e=>this._onAddTagFocus(e),onBlur:e=>this._onAddTagBlur(e.target),onChange:e=>{this._onChange(e)}}),o().createElement(r.LabIcon.resolveReact,{icon:r.addIcon,tag:"span",height:"18px",width:"18px",className:p}))))}}const v={id:"@jupyterlab/celltags-extension:plugin",description:"Adds the cell tags editor.",autoStart:true,requires:[i.INotebookTracker],optional:[r.IFormRendererRegistry],activate:(e,t,n)=>{if(n){const e={fieldRenderer:e=>new f(t).render(e)};n.addRenderer("@jupyterlab/celltags-extension:plugin.renderer",e)}}};const _=[v]},11114:(e,t,n)=>{"use strict";var i=n(40662);var s=n(3579);var o=n(28006);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(96415);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},32069:(e,t,n)=>{"use strict";n.r(t);n.d(t,{COMPLETER_ACTIVE_CLASS:()=>k,COMPLETER_ENABLED_CLASS:()=>S,COMPLETER_LINE_BEGINNING_CLASS:()=>j,CodeEditor:()=>a,CodeEditorWrapper:()=>P,CodeViewerWidget:()=>R,IEditorMimeTypeService:()=>r,IEditorServices:()=>I,IPositionModel:()=>E,JSONEditor:()=>f,LineCol:()=>x});var i=n(95917);var s=n(44336);var o=n(2336);var r;(function(e){e.defaultMimeType="text/plain"})(r||(r={}));var a;(function(e){class t{constructor(e={}){var t,n;this.standaloneModel=false;this._isDisposed=false;this._selections=new s.ObservableMap;this._mimeType=r.defaultMimeType;this._mimeTypeChanged=new o.Signal(this);this.standaloneModel=typeof e.sharedModel==="undefined";this.sharedModel=(t=e.sharedModel)!==null&&t!==void 0?t:new i.YFile;this._mimeType=(n=e.mimeType)!==null&&n!==void 0?n:r.defaultMimeType}get mimeTypeChanged(){return this._mimeTypeChanged}get selections(){return this._selections}get mimeType(){return this._mimeType}set mimeType(e){const t=this.mimeType;if(t===e){return}this._mimeType=e;this._mimeTypeChanged.emit({name:"mimeType",oldValue:t,newValue:e})}get isDisposed(){return this._isDisposed}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._selections.dispose();if(this.standaloneModel){this.sharedModel.dispose()}o.Signal.clearData(this)}}e.Model=t})(a||(a={}));var l=n(30619);var d=n(26331);var c=n(5592);var h=n(1143);const u="jp-JSONEditor";const p="jp-mod-error";const m="jp-JSONEditor-host";const g="jp-JSONEditor-header";class f extends h.Widget{constructor(e){super();this._dataDirty=false;this._inputDirty=false;this._source=null;this._originalValue=c.JSONExt.emptyObject;this._changeGuard=false;this.translator=e.translator||l.nullTranslator;this._trans=this.translator.load("jupyterlab");this.addClass(u);this.headerNode=document.createElement("div");this.headerNode.className=g;this.revertButtonNode=d.undoIcon.element({tag:"span",title:this._trans.__("Revert changes to data")});this.commitButtonNode=d.checkIcon.element({tag:"span",title:this._trans.__("Commit changes to data"),marginLeft:"8px"});this.editorHostNode=document.createElement("div");this.editorHostNode.className=m;this.headerNode.appendChild(this.revertButtonNode);this.headerNode.appendChild(this.commitButtonNode);this.node.appendChild(this.headerNode);this.node.appendChild(this.editorHostNode);const t=new a.Model({mimeType:"application/json"});t.sharedModel.changed.connect(this._onModelChanged,this);this.model=t;this.editor=e.editorFactory({host:this.editorHostNode,model:t,config:{readOnly:true}})}get source(){return this._source}set source(e){if(this._source===e){return}if(this._source){this._source.changed.disconnect(this._onSourceChanged,this)}this._source=e;this.editor.setOption("readOnly",e===null);if(e){e.changed.connect(this._onSourceChanged,this)}this._setValue()}get isDirty(){return this._dataDirty||this._inputDirty}dispose(){var e;if(this.isDisposed){return}(e=this.source)===null||e===void 0?void 0:e.dispose();this.model.dispose();this.editor.dispose();super.dispose()}handleEvent(e){switch(e.type){case"blur":this._evtBlur(e);break;case"click":this._evtClick(e);break;default:break}}onAfterAttach(e){const t=this.editorHostNode;t.addEventListener("blur",this,true);t.addEventListener("click",this,true);this.revertButtonNode.hidden=true;this.commitButtonNode.hidden=true;this.headerNode.addEventListener("click",this)}onBeforeDetach(e){const t=this.editorHostNode;t.removeEventListener("blur",this,true);t.removeEventListener("click",this,true);this.headerNode.removeEventListener("click",this)}_onSourceChanged(e,t){if(this._changeGuard){return}if(this._inputDirty||this.editor.hasFocus()){this._dataDirty=true;return}this._setValue()}_onModelChanged(e,t){if(t.sourceChange){let e=true;try{const e=JSON.parse(this.editor.model.sharedModel.getSource());this.removeClass(p);this._inputDirty=!this._changeGuard&&!c.JSONExt.deepEqual(e,this._originalValue)}catch(n){this.addClass(p);this._inputDirty=true;e=false}this.revertButtonNode.hidden=!this._inputDirty;this.commitButtonNode.hidden=!e||!this._inputDirty}}_evtBlur(e){if(!this._inputDirty&&this._dataDirty){this._setValue()}}_evtClick(e){const t=e.target;if(this.revertButtonNode.contains(t)){this._setValue()}else if(this.commitButtonNode.contains(t)){if(!this.commitButtonNode.hidden&&!this.hasClass(p)){this._changeGuard=true;this._mergeContent();this._changeGuard=false;this._setValue()}}else if(this.editorHostNode.contains(t)){this.editor.focus()}}_mergeContent(){const e=this.editor.model;const t=this._originalValue;const n=JSON.parse(e.sharedModel.getSource());const i=this.source;if(!i){return}for(const s in n){if(!c.JSONExt.deepEqual(n[s],t[s]||null)){i.set(s,n[s])}}for(const s in t){if(!(s in n)){i.delete(s)}}}_setValue(){this._dataDirty=false;this._inputDirty=false;this.revertButtonNode.hidden=true;this.commitButtonNode.hidden=true;this.removeClass(p);const e=this.editor.model;const t=this._source?this._source.toJSON():{};this._changeGuard=true;if(t===void 0){e.sharedModel.setSource(this._trans.__("No data!"));this._originalValue=c.JSONExt.emptyObject}else{const n=JSON.stringify(t,null,4);e.sharedModel.setSource(n);this._originalValue=t;if(n.length>1&&n[0]==="{"){this.editor.setCursorPosition({line:0,column:1})}}this._changeGuard=false;this.commitButtonNode.hidden=true;this.revertButtonNode.hidden=true}}var v=n(24735);var _=n(44914);var b=n.n(_);var y=n(14366);class w extends b().Component{constructor(e){super(e);this._handleChange=e=>{this.setState({value:e.currentTarget.value})};this._handleSubmit=e=>{e.preventDefault();const t=parseInt(this._textInput.value,10);if(!isNaN(t)&&isFinite(t)&&1<=t&&t<=this.props.maxLine){this.props.handleSubmit(t)}return false};this._handleFocus=()=>{this.setState({hasFocus:true})};this._handleBlur=()=>{this.setState({hasFocus:false})};this._textInput=null;this.translator=e.translator||l.nullTranslator;this._trans=this.translator.load("jupyterlab");this.state={value:"",hasFocus:false,textInputId:y.DOMUtils.createDomID()+"-line-number-input"}}componentDidMount(){this._textInput.focus()}render(){return b().createElement("div",{className:"jp-lineFormSearch"},b().createElement("form",{name:"lineColumnForm",onSubmit:this._handleSubmit,noValidate:true},b().createElement("div",{className:(0,d.classes)("jp-lineFormWrapper","lm-lineForm-wrapper",this.state.hasFocus?"jp-lineFormWrapperFocusWithin":undefined)},b().createElement("input",{type:"text",id:this.state.textInputId,className:"jp-lineFormInput",onChange:this._handleChange,onFocus:this._handleFocus,onBlur:this._handleBlur,value:this.state.value,ref:e=>{this._textInput=e}}),b().createElement("div",{className:"jp-baseLineForm jp-lineFormButtonContainer"},b().createElement(d.lineFormIcon.react,{className:"jp-baseLineForm jp-lineFormButtonIcon",elementPosition:"center"}),b().createElement("input",{type:"submit",className:"jp-baseLineForm jp-lineFormButton",value:""}))),b().createElement("label",{className:"jp-lineFormCaption",htmlFor:this.state.textInputId},this._trans.__("Go to line number between 1 and %1",this.props.maxLine))))}}function C(e){const t=e.translator||l.nullTranslator;const n=t.load("jupyterlab");const i=t=>{if(t.key==="Enter"||t.key==="Spacebar"||t.key===" "){t.preventDefault();t.stopPropagation();e.handleClick()}else{return}};return b().createElement(v.TextItem,{onClick:e.handleClick,source:n.__("Ln %1, Col %2",e.line,e.column),title:n.__("Go to line number…"),tabIndex:0,onKeyDown:i})}class x extends d.VDomRenderer{constructor(e){super(new x.Model);this._popup=null;this.addClass("jp-mod-highlighted");this.translator=e||l.nullTranslator}render(){if(this.model===null){return null}else{return b().createElement(C,{line:this.model.line,column:this.model.column,translator:this.translator,handleClick:()=>this._handleClick()})}}_handleClick(){if(this._popup){this._popup.dispose()}const e=d.ReactWidget.create(b().createElement(w,{handleSubmit:e=>this._handleSubmit(e),currentLine:this.model.line,maxLine:this.model.editor.lineCount,translator:this.translator}));this._popup=(0,v.showPopup)({body:e,anchor:this,align:"right"})}_handleSubmit(e){this.model.editor.setCursorPosition({line:e-1,column:0});this._popup.dispose();this.model.editor.focus()}}(function(e){class t extends d.VDomModel{constructor(){super(...arguments);this._onSelectionChanged=()=>{const e=this._getAllState();const t=this.editor.getCursorPosition();this._line=t.line+1;this._column=t.column+1;this._triggerChange(e,this._getAllState())};this._line=1;this._column=1;this._editor=null}get editor(){return this._editor}set editor(e){var t;const n=this._editor;if((t=n===null||n===void 0?void 0:n.model)===null||t===void 0?void 0:t.selections){n.model.selections.changed.disconnect(this._onSelectionChanged)}const i=this._getAllState();this._editor=e;if(!this._editor){this._column=1;this._line=1}else{this._editor.model.selections.changed.connect(this._onSelectionChanged);const e=this._editor.getCursorPosition();this._column=e.column+1;this._line=e.line+1}this._triggerChange(i,this._getAllState())}get line(){return this._line}get column(){return this._column}_getAllState(){return[this._line,this._column]}_triggerChange(e,t){if(e[0]!==t[0]||e[1]!==t[1]){this.stateChanged.emit(void 0)}}}e.Model=t})(x||(x={}));const S="jp-mod-completer-enabled";const k="jp-mod-completer-active";const j="jp-mod-at-line-beginning";const I=new c.Token("@jupyterlab/codeeditor:IEditorServices",`A service for the text editor provider\n for the application. Use this to create new text editors and host them in your\n UI elements.`);const E=new c.Token("@jupyterlab/codeeditor:IPositionModel",`A service to handle an code editor cursor position.`);const T="jp-mod-has-primary-selection";const M="jp-mod-in-leading-whitespace";const D="jp-mod-dropTarget";const A=/^\s+$/;class P extends h.Widget{constructor(e){super();const{factory:t,model:n,editorOptions:i}=e;const s=this.editor=t({host:this.node,model:n,...i});s.model.selections.changed.connect(this._onSelectionsChanged,this)}get model(){return this.editor.model}dispose(){if(this.isDisposed){return}this.editor.dispose();super.dispose()}handleEvent(e){switch(e.type){case"lm-dragenter":this._evtDragEnter(e);break;case"lm-dragleave":this._evtDragLeave(e);break;case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;default:break}}onActivateRequest(e){this.editor.focus()}onAfterAttach(e){super.onAfterAttach(e);const t=this.node;t.addEventListener("lm-dragenter",this);t.addEventListener("lm-dragleave",this);t.addEventListener("lm-dragover",this);t.addEventListener("lm-drop",this)}onBeforeDetach(e){const t=this.node;t.removeEventListener("lm-dragenter",this);t.removeEventListener("lm-dragleave",this);t.removeEventListener("lm-dragover",this);t.removeEventListener("lm-drop",this)}_onSelectionsChanged(){const{start:e,end:t}=this.editor.getSelection();if(e.column!==t.column||e.line!==t.line){this.addClass(T);this.removeClass(M)}else{this.removeClass(T);if(this.editor.getLine(t.line).slice(0,t.column).match(A)){this.addClass(M)}else{this.removeClass(M)}}}_evtDragEnter(e){if(this.editor.getOption("readOnly")===true){return}const t=L.findTextData(e.mimeData);if(t===undefined){return}e.preventDefault();e.stopPropagation();this.addClass("jp-mod-dropTarget")}_evtDragLeave(e){this.removeClass(D);if(this.editor.getOption("readOnly")===true){return}const t=L.findTextData(e.mimeData);if(t===undefined){return}e.preventDefault();e.stopPropagation()}_evtDragOver(e){this.removeClass(D);if(this.editor.getOption("readOnly")===true){return}const t=L.findTextData(e.mimeData);if(t===undefined){return}e.preventDefault();e.stopPropagation();e.dropAction="copy";this.addClass(D)}_evtDrop(e){if(this.editor.getOption("readOnly")===true){return}const t=L.findTextData(e.mimeData);if(t===undefined){return}const n={top:e.y,bottom:e.y,left:e.x,right:e.x};const i=this.editor.getPositionForCoordinate(n);if(i===null){return}this.removeClass(D);e.preventDefault();e.stopPropagation();if(e.proposedAction==="none"){e.dropAction="none";return}const s=this.editor.getOffsetAt(i);this.model.sharedModel.updateSource(s,s,t)}}var L;(function(e){function t(e){const t=e.types();const n=t.find((e=>e.indexOf("text")===0));if(n===undefined){return undefined}return e.getData(n)}e.findTextData=t})(L||(L={}));class R extends h.Widget{constructor(e){var t;super();this.model=e.model;const n=new P({factory:e.factory,model:this.model,editorOptions:{...e.editorOptions,config:{...(t=e.editorOptions)===null||t===void 0?void 0:t.config,readOnly:true}}});this.editor=n.editor;const i=this.layout=new h.StackedLayout;i.addWidget(n)}static createCodeViewer(e){const{content:t,mimeType:n,...i}=e;const s=new a.Model({mimeType:n});s.sharedModel.setSource(t);const o=new R({...i,model:s});o.disposed.connect((()=>{s.dispose()}));return o}get content(){return this.model.sharedModel.getSource()}get mimeType(){return this.model.mimeType}}},17325:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(97913);var a=n(38457);var l=n(85072);var d=n.n(l);var c=n(97825);var h=n.n(c);var u=n(77659);var p=n.n(u);var m=n(55056);var g=n.n(m);var f=n(10540);var v=n.n(f);var _=n(41113);var b=n.n(_);var y=n(9534);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.A,w);const x=y.A&&y.A.locals?y.A.locals:undefined},21699:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>T,lineColItem:()=>I});var i=n(94307);var s=n(54723);var o=n(24735);var r=n(30619);var a=n(58285);var l=n(43370);var d;(function(e){e.deleteLine="codemirror:delete-line";e.toggleBlockComment="codemirror:toggle-block-comment";e.toggleComment="codemirror:toggle-comment";e.selectNextOccurrence="codemirror:select-next-occurrence";e.toggleTabFocusMode="codemirror:toggle-tab-focus-mode"})(d||(d={}));const c=".cm-content";const h={id:"@jupyterlab/codemirror-extension:commands",description:"Registers commands acting on selected/active CodeMirror editor.",autoStart:true,optional:[r.ITranslator],activate:(e,t)=>{t=t!==null&&t!==void 0?t:r.nullTranslator;const n=t.load("jupyterlab");const i=e=>e.classList.contains(c);const s=()=>{var t,n;const s=(t=e.contextMenuHitTest(i))!==null&&t!==void 0?t:(n=document.activeElement)===null||n===void 0?void 0:n.closest(c);if(!s){return}if(!("cmView"in s)){return}return s.cmView.view};const o=()=>!!s();e.commands.addCommand(d.deleteLine,{label:n.__("Delete the current line"),execute:()=>{const e=s();if(!e){return}(0,a.deleteLine)(e)},isEnabled:o});e.commands.addCommand(d.toggleBlockComment,{label:n.__("Toggle Block Comment"),caption:n.__("Toggles block comments in languages which support it (e.g. C, JavaScript)"),execute:()=>{const e=s();if(!e){return}(0,a.toggleBlockComment)(e)},isEnabled:o});e.commands.addCommand(d.toggleComment,{label:n.__("Toggle Comment"),execute:()=>{const e=s();if(!e){return}(0,a.toggleComment)(e)},isEnabled:o});e.commands.addCommand(d.toggleTabFocusMode,{label:n.__("Toggle Tab Focus Mode"),caption:n.__("Toggles behavior of Tab key between inserting indentation and moving to next focusable element"),execute:()=>{const e=s();if(!e){return}(0,a.toggleTabFocusMode)(e)},isEnabled:o});e.commands.addCommand(d.selectNextOccurrence,{label:n.__("Select Next Occurrence"),execute:()=>{const e=s();if(!e){return}(0,l.selectNextOccurrence)(e)},isEnabled:o})}};var u=n(4452);var p=n(66899);var m=n(84739);var g=n(26331);var f=n(5592);var v=n(41742);var _=n.n(v);var b=n(44914);var y=n.n(b);const w="@jupyterlab/codemirror-extension:plugin";const C={id:"@jupyterlab/codemirror-extension:languages",description:"Provides the CodeMirror languages registry.",provides:p.IEditorLanguageRegistry,optional:[r.ITranslator],activate:(e,t)=>{const i=new p.EditorLanguageRegistry;for(const n of p.EditorLanguageRegistry.getDefaultLanguages(t)){i.addLanguage(n)}i.addLanguage({name:"ipythongfm",mime:"text/x-ipythongfm",load:async()=>{const[e,t,s]=await Promise.all([n.e(5625).then(n.t.bind(n,95625,23)),Promise.all([n.e(1423),n.e(9329),n.e(2819),n.e(1674),n.e(6575),n.e(5145)]).then(n.bind(n,9329)),n.e(9746).then(n.bind(n,89746))]);const o=e.markdown({base:e.markdownLanguage,codeLanguages:e=>i.findBest(e),extensions:[(0,p.parseMathIPython)(u.StreamLanguage.define(s.stexMath).parser)]});return new u.LanguageSupport(o.language,[o.support,(0,p.pythonBuiltin)(t.pythonLanguage)])}});return i}};const x={id:"@jupyterlab/codemirror-extension:themes",description:"Provides the CodeMirror theme registry",provides:p.IEditorThemeRegistry,optional:[r.ITranslator],activate:(e,t)=>{const n=new p.EditorThemeRegistry;for(const i of p.EditorThemeRegistry.getDefaultThemes(t)){n.addTheme(i)}return n}};const S={id:"@jupyterlab/codemirror-extension:extensions",description:"Provides the CodeMirror extension factory registry.",provides:p.IEditorExtensionRegistry,requires:[p.IEditorThemeRegistry],optional:[r.ITranslator,m.ISettingRegistry,g.IFormRendererRegistry],activate:(e,t,n,i,s)=>{const o=new p.EditorExtensionRegistry;for(const r of p.EditorExtensionRegistry.getDefaultExtensions({themes:t,translator:n})){o.addExtension(r)}if(i){const t=e=>{var t;o.baseConfiguration=(t=e.get("defaultConfig").composite)!==null&&t!==void 0?t:{}};void Promise.all([i.load(w),e.restored]).then((([e])=>{t(e);e.changed.connect(t)}));s===null||s===void 0?void 0:s.addRenderer(`${w}.defaultConfig`,{fieldRenderer:e=>{const t=y().useMemo((()=>o.settingsSchema),[]);const i={};for(const[n,s]of Object.entries(o.defaultConfiguration)){if(typeof t[n]!=="undefined"){i[n]=s}}return y().createElement("div",{className:"jp-FormGroup-contentNormal"},y().createElement("h3",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},e.schema.title),e.schema.description&&y().createElement("div",{className:"jp-FormGroup-description"},e.schema.description),y().createElement(g.FormComponent,{schema:{title:e.schema.title,description:e.schema.description,type:"object",properties:t,additionalProperties:false},validator:_(),formData:{...i,...e.formData},formContext:{defaultFormData:i},liveValidate:true,onChange:t=>{var n;const s={};for(const[e,o]of Object.entries((n=t.formData)!==null&&n!==void 0?n:{})){const t=i[e];if(t===undefined||!f.JSONExt.deepEqual(o,t)){s[e]=o}}e.onChange(s)},tagName:"div",translator:n!==null&&n!==void 0?n:r.nullTranslator}))}})}return o}};const k={id:"@jupyterlab/codemirror-extension:binding",description:"Register the CodeMirror extension factory binding the editor and the shared model.",autoStart:true,requires:[p.IEditorExtensionRegistry],activate:(e,t)=>{t.addExtension({name:"shared-model-binding",factory:e=>{var t;const n=e.model.sharedModel;return p.EditorExtensionRegistry.createImmutableExtension((0,p.ybinding)({ytext:n.ysource,undoManager:(t=n.undoManager)!==null&&t!==void 0?t:undefined}))}})}};const j={id:"@jupyterlab/codemirror-extension:services",description:"Provides the service to instantiate CodeMirror editors.",provides:s.IEditorServices,requires:[p.IEditorLanguageRegistry,p.IEditorExtensionRegistry],optional:[r.ITranslator],activate:(e,t,n,i)=>{const s=new p.CodeMirrorEditorFactory({extensions:n,languages:t,translator:i!==null&&i!==void 0?i:r.nullTranslator});return{factoryService:s,mimeTypeService:new p.CodeMirrorMimeTypeService(t)}}};const I={id:"@jupyterlab/codemirror-extension:line-col-status",description:"Provides the code editor cursor position model.",autoStart:true,requires:[r.ITranslator],optional:[i.ILabShell,o.IStatusBar],provides:s.IPositionModel,activate:(e,t,n,i)=>{const o=new s.LineCol(t);const r=new Set;if(i){i.registerStatusItem(I.id,{priority:1,item:o,align:"right",rank:2,isActive:()=>!!o.model.editor})}const a=t=>{r.add(t);if(e.shell.currentWidget){d(e.shell,{newValue:e.shell.currentWidget,oldValue:null})}};const l=()=>{d(e.shell,{oldValue:e.shell.currentWidget,newValue:e.shell.currentWidget})};function d(e,t){Promise.all([...r].map((e=>e(t.newValue)))).then((e=>{var t;o.model.editor=(t=e.filter((e=>e!==null))[0])!==null&&t!==void 0?t:null})).catch((e=>{console.error("Get editors",e)}))}if(n){n.currentChanged.connect(d)}return{addEditorProvider:a,update:l}}};const E=[h,C,x,k,S,j,I];const T=E},72508:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(17325);var a=n(3579);var l=n(23359)},68191:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CodeMirrorEditor:()=>le,CodeMirrorEditorFactory:()=>ce,CodeMirrorMimeTypeService:()=>he,CodeMirrorSearchHighlighter:()=>me,EditorExtensionRegistry:()=>J,EditorLanguageRegistry:()=>se,EditorSearchProvider:()=>pe,EditorThemeRegistry:()=>ee,ExtensionsHandler:()=>K,IEditorExtensionRegistry:()=>fe,IEditorLanguageRegistry:()=>ve,IEditorThemeRegistry:()=>_e,PythonBuiltin:()=>te,StateCommands:()=>d,YRange:()=>F,YSyncConfig:()=>z,customTheme:()=>b,jupyterEditorTheme:()=>X,jupyterHighlightStyle:()=>Q,jupyterTheme:()=>Z,parseMathIPython:()=>E,pythonBuiltin:()=>ne,rulers:()=>P,ySync:()=>V,ySyncAnnotation:()=>W,ySyncFacet:()=>H,ybinding:()=>U});var i=n(58285);var s=n(54723);const o="[data-jp-code-runner]";const r='[data-jp-interaction-mode="terminal"]';const a=".jp-CodeMirrorEditor:not(.jp-mod-has-primary-selection):not(.jp-mod-in-leading-whitespace):not(.jp-mod-completer-active)";const l=".jp-mod-editMode .jp-Cell.jp-mod-active";var d;(function(e){function t(e){var t;let n=(t=e.dom.parentElement)===null||t===void 0?void 0:t.classList;let o=n===null||n===void 0?void 0:n.contains(s.COMPLETER_ENABLED_CLASS);let r=n===null||n===void 0?void 0:n.contains(s.COMPLETER_LINE_BEGINNING_CLASS);if(o&&!r){return false}const a={state:e.state,dispatch:e.dispatch};const l=e.state.selection.main.from;const d=e.state.selection.main.to;if(l!=d){return(0,i.indentMore)(a)}const c=e.state.doc.lineAt(l);const h=e.state.doc.slice(c.from,l).toString();if(/^\s*$/.test(h)){return(0,i.indentMore)(a)}else{return(0,i.insertTab)(a)}}e.indentMoreOrInsertTab=t;function n(e){var t;if((t=e.dom.parentElement)===null||t===void 0?void 0:t.classList.contains(s.COMPLETER_ACTIVE_CLASS)){return false}if(e.dom.closest(r)){return false}const n={state:e.state,dispatch:e.dispatch};return(0,i.insertNewlineAndIndent)(n)}e.completerOrInsertNewLine=n;function d(e){if(e.dom.closest(o)){return true}return false}e.preventNewLineOnRun=d;function c(e){if(e.dom.closest(o)){return false}else{const t={state:e.state,dispatch:e.dispatch};return(0,i.insertBlankLine)(t)}}e.insertBlankLineOnRun=c;function h(e){const t={state:e.state,dispatch:e.dispatch};const n=(0,i.simplifySelection)(t);if(e.dom.closest(l)){return false}else{return n}}e.simplifySelectionAndMaybeSwitchToCommandMode=h;function u(e){if(e.dom.closest(a)){return false}return(0,i.indentLess)(e)}e.dedentIfNotLaunchingTooltip=u})(d||(d={}));var c=n(4452);var h=n(71674);var u=n(22819);var p=n(5592);var m=n(2336);var g=n(75128);var f=n(30619);const v=h.Facet.define({combine(e){return(0,h.combineConfig)(e,{fontFamily:null,fontSize:null,lineHeight:null},{fontFamily:(e,t)=>e!==null&&e!==void 0?e:t,fontSize:(e,t)=>e!==null&&e!==void 0?e:t,lineHeight:(e,t)=>e!==null&&e!==void 0?e:t})}});function _(e){const{fontFamily:t,fontSize:n,lineHeight:i}=e.state.facet(v);let s="";if(n){s+=`font-size: ${n}px !important;`}if(t){s+=`font-family: ${t} !important;`}if(i){s+=`line-height: ${i.toString()} !important`}return{style:s}}function b(e){return[v.of(e),u.EditorView.editorAttributes.of(_)]}var y=n(66575);var w=n(45145);const C="InlineMathDollar";const x="InlineMathBracket";const S="BlockMathDollar";const k="BlockMathBracket";const j={[C]:1,[x]:3,[S]:2,[k]:3};const I=Object.keys(j).reduce(((e,t)=>{e[t]={mark:`${t}Mark`,resolve:t};return e}),{});function E(e){const t=new Array;Object.keys(j).forEach((e=>{t.push({name:e,style:w.tags.emphasis},{name:`${e}Mark`,style:w.tags.processingInstruction})}));return{defineNodes:t,parseInline:[{name:S,parse(e,t,n){if(t!=36||e.char(n+1)!=36){return-1}return e.addDelimiter(I[S],n,n+j[S],true,true)}},{name:C,parse(e,t,n){if(t!=36||e.char(n+1)==36){return-1}return e.addDelimiter(I[C],n,n+j[C],true,true)}},{name:x,before:"Escape",parse(e,t,n){if(t!=92||e.char(n+1)!=92||![40,41].includes(e.char(n+2))){return-1}return e.addDelimiter(I[x],n,n+j[x],e.char(n+2)==40,e.char(n+2)==41)}},{name:k,before:"Escape",parse(e,t,n){if(t!=92||e.char(n+1)!=92||![91,93].includes(e.char(n+2))){return-1}return e.addDelimiter(I[k],n,n+j[k],e.char(n+2)==91,e.char(n+2)==93)}}],wrap:e?(0,y.parseMixed)(((t,n)=>{const i=j[t.type.name];if(i){return{parser:e,overlay:[{from:t.from+i,to:t.to-i}]}}return null})):undefined}}const T="cm-rulers";const M=u.EditorView.baseTheme({[`.${T}`]:{borderRight:"1px dotted gray",opacity:.7}});const D=h.Facet.define({combine(e){const t=e.reduce(((e,t)=>e.concat(t.filter(((n,i)=>!e.includes(n)&&i==t.lastIndexOf(n))))),[]);return t}});const A=u.ViewPlugin.fromClass(class{constructor(e){var t,n;this.rulersContainer=e.dom.appendChild(document.createElement("div"));this.rulersContainer.style.cssText=`\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n overflow: hidden;\n `;const i=e.defaultCharacterWidth;const s=e.state.facet(D);const o=(n=(t=e.scrollDOM.querySelector(".cm-gutters"))===null||t===void 0?void 0:t.clientWidth)!==null&&n!==void 0?n:0;this.rulers=s.map((e=>{const t=this.rulersContainer.appendChild(document.createElement("div"));t.classList.add(T);t.style.cssText=`\n position: absolute;\n left: ${o+e*i}px;\n height: 100%;\n `;t.style.width="6px";return t}))}update(e){var t,n;const i=e.view.state.facet(D);if(e.viewportChanged||e.geometryChanged||!p.JSONExt.deepEqual(i,e.startState.facet(D))){const s=(n=(t=e.view.scrollDOM.querySelector(".cm-gutters"))===null||t===void 0?void 0:t.clientWidth)!==null&&n!==void 0?n:0;const o=e.view.defaultCharacterWidth;this.rulers.forEach(((e,t)=>{e.style.left=`${s+i[t]*o}px`}))}}destroy(){this.rulers.forEach((e=>{e.remove()}));this.rulersContainer.remove()}});function P(e){return[M,D.of(e),A]}class L{constructor(e){this.undoManager=e}}const R=h.Facet.define({combine(e){return e[e.length-1]}});class N{constructor(e){this._onStackItemAdded=({stackItem:e,changedParentTypes:t})=>{if(t.has(this._syncConf.ytext)&&this._beforeChangeSelection&&!e.meta.has(this)){e.meta.set(this,this._beforeChangeSelection)}};this._onStackItemPopped=({stackItem:e})=>{const t=e.meta.get(this);if(t){const e=this._syncConf.fromYRange(t);this._view.dispatch(this._view.state.update({selection:e,effects:[u.EditorView.scrollIntoView(e)]}));this._storeSelection()}};this._storeSelection=()=>{this._beforeChangeSelection=this._syncConf.toYRange(this._view.state.selection.main)};this._view=e;this._conf=e.state.facet(R);this._undoManager=this._conf.undoManager;this._syncConf=e.state.facet(H);this._beforeChangeSelection=null;this._undoManager.on("stack-item-added",this._onStackItemAdded);this._undoManager.on("stack-item-popped",this._onStackItemPopped);this._undoManager.addTrackedOrigin(this._syncConf)}update(e){if(e.selectionSet&&(e.transactions.length===0||e.transactions[0].annotation(W)!==this._syncConf)){this._storeSelection()}}destroy(){this._undoManager.off("stack-item-added",this._onStackItemAdded);this._undoManager.off("stack-item-popped",this._onStackItemPopped);this._undoManager.removeTrackedOrigin(this._syncConf)}}const O=u.ViewPlugin.fromClass(N);var B=n(74356);class F{constructor(e,t){this.yanchor=e;this.yhead=t}toJSON(){return{yanchor:(0,B.relativePositionToJSON)(this.yanchor),yhead:(0,B.relativePositionToJSON)(this.yhead)}}static fromJSON(e){return new F((0,B.createRelativePositionFromJSON)(e.yanchor),(0,B.createRelativePositionFromJSON)(e.yhead))}}class z{constructor(e){this.ytext=e}toYPos(e,t=0){return(0,B.createRelativePositionFromTypeIndex)(this.ytext,e,t)}fromYPos(e){const t=(0,B.createAbsolutePositionFromRelativePosition)((0,B.createRelativePositionFromJSON)(e),this.ytext.doc);if(t==null||t.type!==this.ytext){throw new Error("[y-codemirror] The position you want to retrieve was created by a different document")}return{pos:t.index,assoc:t.assoc}}toYRange(e){const t=e.assoc;const n=this.toYPos(e.anchor,t);const i=this.toYPos(e.head,t);return new F(n,i)}fromYRange(e){const t=this.fromYPos(e.yanchor);const n=this.fromYPos(e.yhead);if(t.pos===n.pos){return h.EditorSelection.cursor(n.pos,n.assoc)}return h.EditorSelection.range(t.pos,n.pos)}}const H=h.Facet.define({combine(e){return e[e.length-1]}});const W=h.Annotation.define();const V=u.ViewPlugin.fromClass(class{constructor(e){this.conf=e.state.facet(H);this._observer=(t,n)=>{var i;if(n.origin!==this.conf){const n=t.delta;const s=[];let o=0;for(let e=0;e0&&e.transactions[0].annotation(W)===this.conf){return}const t=this.conf.ytext;t.doc.transact((()=>{let n=0;e.changes.iterChanges(((e,i,s,o,r)=>{const a=r.sliceString(0,r.length,"\n");if(e!==i){t.delete(e+n,i-e)}if(a.length>0){t.insert(e+n,a)}n+=a.length-(i-e)}))}),this.conf)}destroy(){this._ytext.unobserve(this._observer)}});function U({ytext:e,undoManager:t}){const n=new z(e);const i=[H.of(n),V];if(t){i.push(R.of(new L(t)),O)}return i}var q=n(43370);const $="jp-mod-readOnly";class K{constructor({baseConfiguration:e,config:t,defaultExtensions:n}={}){this._configChanged=new m.Signal(this);this._disposed=new m.Signal(this);this._isDisposed=false;this._immutables=new Set;this._baseConfig=e!==null&&e!==void 0?e:{};this._config=t!==null&&t!==void 0?t:{};this._configurableBuilderMap=new Map(n);const i=Object.keys(this._config).concat(Object.keys(this._baseConfig));this._immutables=new Set([...this._configurableBuilderMap.keys()].filter((e=>!i.includes(e))))}get configChanged(){return this._configChanged}get disposed(){return this._disposed}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._disposed.emit();m.Signal.clearData(this)}getOption(e){var t;return(t=this._config[e])!==null&&t!==void 0?t:this._baseConfig[e]}hasOption(e){return Object.keys(this._config).includes(e)||Object.keys(this._baseConfig).includes(e)}setOption(e,t){if(this._config[e]!==t){this._config[e]=t;this._configChanged.emit({[e]:t})}}setBaseOptions(e){const t=this._getChangedOptions(e,this._baseConfig);if(t.length>0){this._baseConfig=e;const n=Object.keys(this._config);const i=t.filter((e=>!n.includes(e)));if(i.length>0){this._configChanged.emit(i.reduce(((e,t)=>{e[t]=this._baseConfig[t];return e}),{}))}}for(const n of Object.keys(e)){if(n in this._config&&this._config[n]!=e[n]){this.setOption(n,e[n])}}}setOptions(e){const t=this._getChangedOptions(e,this._config);if(t.length>0){this._config={...e};this._configChanged.emit(t.reduce(((e,t)=>{var n;e[t]=(n=this._config[t])!==null&&n!==void 0?n:this._baseConfig[t];return e}),{}))}}reconfigureExtension(e,t,n){const i=this.getEffect(e.state,t,n);if(i){e.dispatch({effects:[i]})}}reconfigureExtensions(e,t){const n=Object.keys(t).filter((e=>this.has(e))).map((n=>this.getEffect(e.state,n,t[n])));e.dispatch({effects:n.filter((e=>e!==null))})}injectExtension(e,t){e.dispatch({effects:h.StateEffect.appendConfig.of(t)})}getInitialExtensions(){const e={...this._baseConfig,...this._config};const t=[...this._immutables].map((e=>{var t;return(t=this.get(e))===null||t===void 0?void 0:t.instance(undefined)})).filter((e=>e));for(const n of Object.keys(e)){const i=this.get(n);if(i){const s=e[n];t.push(i.instance(s))}}return t}get(e){return this._configurableBuilderMap.get(e)}has(e){return this._configurableBuilderMap.has(e)}getEffect(e,t,n){var i;const s=this.get(t);return(i=s===null||s===void 0?void 0:s.reconfigure(n))!==null&&i!==void 0?i:null}_getChangedOptions(e,t){const n=new Array;const i=new Array;for(const[s,o]of Object.entries(e)){i.push(s);if(t[s]!==o){n.push(s)}}n.push(...Object.keys(t).filter((e=>!i.includes(e))));return n}}class J{constructor(){this.configurationBuilder=new Map;this.configurationSchema={};this.defaultOptions={};this.handlers=new Set;this.immutableExtensions=new Set;this._baseConfiguration={}}get baseConfiguration(){return{...this.defaultOptions,...this._baseConfiguration}}set baseConfiguration(e){if(!p.JSONExt.deepEqual(e,this._baseConfiguration)){this._baseConfiguration=e;for(const e of this.handlers){e.setBaseOptions(this.baseConfiguration)}}}get defaultConfiguration(){return Object.freeze({...this.defaultOptions})}get settingsSchema(){return Object.freeze(p.JSONExt.deepCopy(this.configurationSchema))}addExtension(e){var t;if(this.configurationBuilder.has(e.name)){throw new Error(`Extension named ${e.name} is already registered.`)}this.configurationBuilder.set(e.name,e);if(typeof e.default!="undefined"){this.defaultOptions[e.name]=e.default}if(e.schema){this.configurationSchema[e.name]={default:(t=e.default)!==null&&t!==void 0?t:null,...e.schema};this.defaultOptions[e.name]=this.configurationSchema[e.name].default}}createNew(e){const t=new Array;for(const[i,s]of this.configurationBuilder.entries()){const n=s.factory(e);if(n){t.push([i,n])}}const n=new K({baseConfiguration:this.baseConfiguration,config:e.config,defaultExtensions:t});this.handlers.add(n);n.disposed.connect((()=>{this.handlers.delete(n)}));return n}}(function(e){class t{constructor(e){this._compartment=new h.Compartment;this._builder=e}instance(e){return this._compartment.of(this._builder(e))}reconfigure(e){return this._compartment.reconfigure(this._builder(e))}}class n{constructor(e){this._extension=e}instance(){return this._extension}reconfigure(){return null}}function s(e){return new t(e)}e.createConfigurableExtension=s;function o(e,n=[]){return new t((t=>t?e:n))}e.createConditionalExtension=o;function r(e){return new n(e)}e.createImmutableExtension=r;function a(e={}){const{themes:t,translator:n}=e;const a=(n!==null&&n!==void 0?n:f.nullTranslator).load("jupyterlab");const l=[Object.freeze({name:"autoClosingBrackets",default:false,factory:()=>o((0,g.wm)()),schema:{type:"boolean",title:a.__("Auto Closing Brackets")}}),Object.freeze({name:"codeFolding",default:false,factory:()=>o((0,c.foldGutter)()),schema:{type:"boolean",title:a.__("Code Folding")}}),Object.freeze({name:"cursorBlinkRate",default:1200,factory:()=>s((e=>(0,u.drawSelection)({cursorBlinkRate:e}))),schema:{type:"number",title:a.__("Cursor blinking rate"),description:a.__("Half-period in milliseconds used for cursor blinking. The default blink rate is 1200ms. By setting this to zero, blinking can be disabled.")}}),Object.freeze({name:"highlightActiveLine",default:false,factory:()=>o((0,u.highlightActiveLine)()),schema:{type:"boolean",title:a.__("Highlight the active line")}}),Object.freeze({name:"highlightSpecialCharacters",default:true,factory:()=>o((0,u.highlightSpecialChars)()),schema:{type:"boolean",title:a.__("Highlight special characters")}}),Object.freeze({name:"highlightTrailingWhitespace",default:false,factory:()=>o((0,u.highlightTrailingWhitespace)()),schema:{type:"boolean",title:a.__("Highlight trailing white spaces")}}),Object.freeze({name:"highlightWhitespace",default:false,factory:()=>o((0,u.highlightWhitespace)()),schema:{type:"boolean",title:a.__("Highlight white spaces")}}),Object.freeze({name:"indentUnit",default:"4",factory:()=>s((e=>e=="Tab"?c.indentUnit.of("\t"):c.indentUnit.of(" ".repeat(parseInt(e,10))))),schema:{type:"string",title:a.__("Indentation unit"),description:a.__("The indentation is a `Tab` or the number of spaces. This defaults to 4 spaces."),enum:["Tab","1","2","4","8"]}}),Object.freeze({name:"keymap",default:[{key:"Mod-Enter",run:d.insertBlankLineOnRun},{key:"Enter",run:d.completerOrInsertNewLine},{key:"Escape",run:d.simplifySelectionAndMaybeSwitchToCommandMode},...i.defaultKeymap.filter((e=>!["Ctrl-m","Mod-Enter","Shift-Mod-k","Mod-/","Alt-A","Escape","Enter"].includes(e.key))),{key:"Tab",run:d.indentMoreOrInsertTab,shift:d.dedentIfNotLaunchingTooltip}],factory:()=>s((e=>u.keymap.of(e)))}),Object.freeze({name:"lineNumbers",default:true,factory:()=>o((0,u.lineNumbers)()),schema:{type:"boolean",title:a.__("Line Numbers")}}),Object.freeze({name:"lineWrap",factory:()=>o(u.EditorView.lineWrapping),default:true,schema:{type:"boolean",title:a.__("Line Wrap")}}),Object.freeze({name:"dropCursor",default:true,factory:()=>o((0,u.dropCursor)()),schema:{type:"boolean",title:a.__("Drop Cursor")}}),Object.freeze({name:"matchBrackets",default:true,factory:()=>o([(0,c.bracketMatching)(),h.Prec.high(u.keymap.of(g.Bc))]),schema:{type:"boolean",title:a.__("Match Brackets")}}),Object.freeze({name:"rectangularSelection",default:true,factory:()=>o([(0,u.rectangularSelection)(),(0,u.crosshairCursor)()]),schema:{type:"boolean",title:a.__("Rectangular selection"),description:a.__("Rectangular (block) selection can be created by dragging the mouse pointer while holding the left mouse button and the Alt key. When the Alt key is pressed, a crosshair cursor will appear, indicating that the rectangular selection mode is active.")}}),Object.freeze({name:"readOnly",default:false,factory:()=>s((e=>[h.EditorState.readOnly.of(e),e?u.EditorView.editorAttributes.of({class:$}):[]]))}),Object.freeze({name:"rulers",default:[],factory:()=>s((e=>e.length>0?P(e):[])),schema:{type:"array",title:a.__("Rulers"),items:{type:"number",minimum:0}}}),Object.freeze({name:"extendSelection",default:true,factory:()=>o(u.keymap.of([{key:"Mod-Shift-l",run:q.selectSelectionMatches,preventDefault:true}]))}),Object.freeze({name:"searchWithCM",default:false,factory:()=>o(u.keymap.of([{key:"Mod-f",run:q.openSearchPanel,scope:"editor search-panel"},{key:"F3",run:q.findNext,shift:q.findPrevious,scope:"editor search-panel",preventDefault:true},{key:"Mod-g",run:q.findNext,shift:q.findPrevious,scope:"editor search-panel",preventDefault:true},{key:"Escape",run:q.closeSearchPanel,scope:"editor search-panel"}]))}),Object.freeze({name:"scrollPastEnd",default:false,factory:e=>e.inline?null:o((0,u.scrollPastEnd)())}),Object.freeze({name:"smartIndent",default:true,factory:()=>o((0,c.indentOnInput)()),schema:{type:"boolean",title:a.__("Smart Indentation")}}),Object.freeze({name:"tabFocusable",default:true,factory:()=>o(u.EditorView.contentAttributes.of({tabIndex:"0"}),u.EditorView.contentAttributes.of({tabIndex:"-1"}))}),Object.freeze({name:"tabSize",default:4,factory:()=>s((e=>h.EditorState.tabSize.of(e))),schema:{type:"number",title:a.__("Tab size")}}),Object.freeze({name:"tooltips",factory:()=>r((0,u.tooltips)({position:"absolute",parent:document.body}))}),Object.freeze({name:"allowMultipleSelections",default:true,factory:()=>s((e=>h.EditorState.allowMultipleSelections.of(e))),schema:{type:"boolean",title:a.__("Multiple selections")}}),Object.freeze({name:"customStyles",factory:()=>s((e=>b(e))),default:{fontFamily:null,fontSize:null,lineHeight:null},schema:{title:a.__("Custom editor styles"),type:"object",properties:{fontFamily:{type:["string","null"],title:a.__("Font Family")},fontSize:{type:["number","null"],minimum:1,maximum:100,title:a.__("Font Size")},lineHeight:{type:["number","null"],title:a.__("Line Height")}},additionalProperties:false}})];if(t){l.push(Object.freeze({name:"theme",default:"jupyter",factory:()=>s((e=>t.getTheme(e))),schema:{type:"string",title:a.__("Theme"),description:a.__("CodeMirror theme")}}))}if(n){l.push(Object.freeze({name:"translation",default:{"Control character":a.__("Control character"),"Selection deleted":a.__("Selection deleted"),"Folded lines":a.__("Folded lines"),"Unfolded lines":a.__("Unfolded lines"),to:a.__("to"),"folded code":a.__("folded code"),unfold:a.__("unfold"),"Fold line":a.__("Fold line"),"Unfold line":a.__("Unfold line"),"Go to line":a.__("Go to line"),go:a.__("go"),Find:a.__("Find"),Replace:a.__("Replace"),next:a.__("next"),previous:a.__("previous"),all:a.__("all"),"match case":a.__("match case"),replace:a.__("replace"),"replace all":a.__("replace all"),close:a.__("close"),"current match":a.__("current match"),"replaced $ matches":a.__("replaced $ matches"),"replaced match on line $":a.__("replaced match on line $"),"on line":a.__("on line"),Completions:a.__("Completions"),Diagnostics:a.__("Diagnostics"),"No diagnostics":a.__("No diagnostics")},factory:()=>s((e=>h.EditorState.phrases.of(e)))}))}return l}e.getDefaultExtensions=a})(J||(J={}));var G=n(30397);var Y=n(91268);const X=u.EditorView.theme({"&":{background:"var(--jp-layout-color0)",color:"var(--jp-content-font-color1)"},".jp-CodeConsole &, .jp-Notebook &":{background:"transparent"},".cm-content":{caretColor:"var(--jp-editor-cursor-color)"},".cm-scroller":{fontFamily:"inherit"},".cm-cursor, .cm-dropCursor":{borderLeft:"var(--jp-code-cursor-width0) solid var(--jp-editor-cursor-color)"},".cm-selectionBackground, .cm-content ::selection":{backgroundColor:"var(--jp-editor-selected-background)"},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{backgroundColor:"var(--jp-editor-selected-focused-background)"},".cm-gutters":{borderRight:"1px solid var(--jp-border-color2)",backgroundColor:"var(--jp-layout-color2)"},".cm-gutter":{backgroundColor:"var(--jp-layout-color2)"},".cm-activeLine":{backgroundColor:"color-mix(in srgb, var(--jp-layout-color3) 25%, transparent)"},".cm-lineNumbers":{color:"var(--jp-ui-font-color2)"},".cm-searchMatch":{backgroundColor:"var(--jp-search-unselected-match-background-color)",color:"var(--jp-search-unselected-match-color)"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"var(--jp-search-selected-match-background-color) !important",color:"var(--jp-search-selected-match-color) !important"},".cm-tooltip":{backgroundColor:"var(--jp-layout-color1)"}});const Q=c.HighlightStyle.define([{tag:w.tags.meta,color:"var(--jp-mirror-editor-meta-color)"},{tag:w.tags.heading,color:"var(--jp-mirror-editor-header-color)"},{tag:[w.tags.heading1,w.tags.heading2,w.tags.heading3,w.tags.heading4],color:"var(--jp-mirror-editor-header-color)",fontWeight:"bold"},{tag:w.tags.keyword,color:"var(--jp-mirror-editor-keyword-color)",fontWeight:"bold"},{tag:w.tags.atom,color:"var(--jp-mirror-editor-atom-color)"},{tag:w.tags.number,color:"var(--jp-mirror-editor-number-color)"},{tag:[w.tags.definition(w.tags.name),w.tags.function(w.tags.definition(w.tags.variableName))],color:"var(--jp-mirror-editor-def-color)"},{tag:w.tags.standard(w.tags.variableName),color:"var(--jp-mirror-editor-builtin-color)"},{tag:[w.tags.special(w.tags.variableName),w.tags.self],color:"var(--jp-mirror-editor-variable-2-color)"},{tag:w.tags.punctuation,color:"var(--jp-mirror-editor-punctuation-color)"},{tag:w.tags.propertyName,color:"var(--jp-mirror-editor-property-color)"},{tag:w.tags.operator,color:"var(--jp-mirror-editor-operator-color)",fontWeight:"bold"},{tag:w.tags.comment,color:"var(--jp-mirror-editor-comment-color)",fontStyle:"italic"},{tag:w.tags.string,color:"var(--jp-mirror-editor-string-color)"},{tag:[w.tags.labelName,w.tags.monospace,w.tags.special(w.tags.string)],color:"var(--jp-mirror-editor-string-2-color)"},{tag:w.tags.bracket,color:"var(--jp-mirror-editor-bracket-color)"},{tag:w.tags.tagName,color:"var(--jp-mirror-editor-tag-color)"},{tag:w.tags.attributeName,color:"var(--jp-mirror-editor-attribute-color)"},{tag:w.tags.quote,color:"var(--jp-mirror-editor-quote-color)"},{tag:w.tags.link,color:"var(--jp-mirror-editor-link-color)",textDecoration:"underline"},{tag:[w.tags.separator,w.tags.derefOperator,w.tags.paren],color:""},{tag:w.tags.strong,fontWeight:"bold"},{tag:w.tags.emphasis,fontStyle:"italic"},{tag:w.tags.strikethrough,textDecoration:"line-through"},{tag:w.tags.bool,color:"var(--jp-mirror-editor-keyword-color)",fontWeight:"bold"}]);const Z=[X,(0,c.syntaxHighlighting)(Q)];class ee{constructor(){this._themeMap=new Map([["jupyter",Object.freeze({name:"jupyter",theme:Z})]])}get themes(){return Array.from(this._themeMap.values())}defaultTheme(){return this._themeMap.get("jupyter").theme}addTheme(e){if(this._themeMap.has(e.name)){throw new Error(`A theme named '${e.name}' is already registered.`)}this._themeMap.set(e.name,{displayName:e.name,...e})}getTheme(e){var t;const n=(t=this._themeMap.get(e))===null||t===void 0?void 0:t.theme;return n!==null&&n!==void 0?n:this.defaultTheme()}}(function(e){function t(e){const t=(e!==null&&e!==void 0?e:f.nullTranslator).load("jupyterlab");return[Object.freeze({name:"codemirror",displayName:t.__("codemirror"),theme:[u.EditorView.baseTheme({}),(0,c.syntaxHighlighting)(c.defaultHighlightStyle)]})]}e.getDefaultThemes=t})(ee||(ee={}));class te{constructor(e,t){this.langPython=t;this.tree=(0,c.syntaxTree)(e.state);this.mark=u.Decoration.mark({class:"cm-builtin"});this.decorations=this.buildDeco(e);this.decoratedTo=e.viewport.to}update(e){let t=(0,c.syntaxTree)(e.state);let{viewport:n}=e.view,i=e.changes.mapPos(this.decoratedTo,1);if(t.length=n.to){this.decorations=this.decorations.map(e.changes);this.decoratedTo=i}else if(t!=this.tree||e.viewportChanged){this.tree=t;this.decorations=this.buildDeco(e.view);this.decoratedTo=n.to}}buildDeco(e){if(!this.tree.length)return u.Decoration.none;let t=new h.RangeSetBuilder;const n=i=>{var s;const o=i.node.cursor();const r=o.tree&&o.tree.prop(y.NodeProp.mounted);if(r&&r.overlay){(s=i.node.enter(r.overlay[0].from+i.from,1))===null||s===void 0?void 0:s.cursor().iterate(n)}if(this.langPython.isActiveAt(e.state,i.from+1)&&i.name==="VariableName"){const n=e.state.sliceDoc(i.from,i.to);if(ie.includes(n)){t.add(i.from,i.to,this.mark)}}};for(let{from:i,to:s}of e.visibleRanges){this.tree.iterate({enter:n,from:i,to:s})}return t.finish()}}function ne(e){return u.ViewPlugin.define((t=>new te(t,e)),{decorations:e=>e.decorations})}const ie=["abs","aiter","all","any","anext","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__"];class se{constructor(){this._modeList=[];this.addLanguage({name:"none",mime:"text/plain",support:new c.LanguageSupport(c.LRLanguage.define({parser:(0,Y.KO)("@top Program { }")}))})}addLanguage(e){var t;const n=(t=this.findByName(e.name))!==null&&t!==void 0?t:this.findByMIME(e.mime,true);if(n){throw new Error(`${e.mime} already registered`)}this._modeList.push(this.makeSpec(e))}async getLanguage(e){const t=this.findBest(e);if(t&&!t.support){t.support=await t.load()}return t}getLanguages(){return[...this._modeList]}findByMIME(e,t=false){if(Array.isArray(e)){for(let t=0;t-1&&t.substring(n+1,t.length);if(i){return this.findByExtension(i)}return null}findBest(e,t=true){var n,i,o,r;const a=typeof e==="string"?e:e.name;const l=typeof e!=="string"?e.mime:a;const d=typeof e!=="string"?(n=e.extensions)!==null&&n!==void 0?n:[]:[];return(r=(o=(i=a?this.findByName(a):null)!==null&&i!==void 0?i:l?this.findByMIME(l):null)!==null&&o!==void 0?o:this.findByExtension(d))!==null&&r!==void 0?r:t?this.findByMIME(s.IEditorMimeTypeService.defaultMimeType):null}async highlight(e,t,n){var i;if(t){await this.getLanguage(t)}const s=(i=t===null||t===void 0?void 0:t.support)===null||i===void 0?void 0:i.language;if(!s){n.appendChild(document.createTextNode(e));return}const o=s.parser.parse(e);let r=0;(0,w.highlightTree)(o,Q,((t,i,s)=>{if(t>r){n.appendChild(document.createTextNode(e.slice(r,t)))}const o=n.appendChild(document.createElement("span"));o.className=s;o.appendChild(document.createTextNode(e.slice(t,i)));r=i}));if(rthis.onKeydown(e)});const c=u.EditorView.updateListener.of((e=>{this._onDocChanged(e)}));this._editor=de.createEditor(a,this._configurator,[h.Prec.high(d),c,this._language.of([]),...(r=e.extensions)!==null&&r!==void 0?r:[]],l.sharedModel.source);this._onMimeTypeChanged();this._onCursorActivity();this._configurator.configChanged.connect(this.onConfigChanged,this);l.mimeTypeChanged.connect(this._onMimeTypeChanged,this)}get uuid(){return this._uuid}set uuid(e){this._uuid=e}get editor(){return this._editor}get doc(){return this._editor.state.doc}get lineCount(){return this.doc.lines}get model(){return this._model}get lineHeight(){return this._editor.defaultLineHeight}get charWidth(){return this._editor.defaultCharacterWidth}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this.host.removeEventListener("focus",this,true);this.host.removeEventListener("blur",this,true);this.host.removeEventListener("scroll",this,true);this._configurator.dispose();m.Signal.clearData(this);this.editor.destroy()}getOption(e){return this._configurator.getOption(e)}hasOption(e){return this._configurator.hasOption(e)}setOption(e,t){this._configurator.setOption(e,t)}setOptions(e){this._configurator.setOptions(e)}setBaseOptions(e){this._configurator.setBaseOptions(e)}injectExtension(e){this._configurator.injectExtension(this._editor,e)}getLine(e){e=e+1;return e<=this.doc.lines?this.doc.line(e).text:undefined}getOffsetAt(e){return this.doc.line(e.line+1).from+e.column}getPositionAt(e){const t=this.doc.lineAt(e);return{line:t.number-1,column:e-t.from}}undo(){this.model.sharedModel.undo()}redo(){this.model.sharedModel.redo()}clearHistory(){this.model.sharedModel.clearUndoHistory()}focus(){this._editor.focus()}hasFocus(){return this._editor.hasFocus}blur(){this._editor.contentDOM.blur()}get state(){return this._editor.state}firstLine(){return 0}lastLine(){return this.doc.lines-1}cursorCoords(e,t){const n=this.state.selection.main;const i=e?n.from:n.to;const s=this.editor.coordsAtPos(i);return s}getRange(e,t,n){const i=this.getOffsetAt(this._toPosition(e));const s=this.getOffsetAt(this._toPosition(t));return this.state.sliceDoc(i,s)}revealPosition(e){const t=this.getOffsetAt(e);this._editor.dispatch({effects:u.EditorView.scrollIntoView(t)})}revealSelection(e){const t=this.getOffsetAt(e.start);const n=this.getOffsetAt(e.end);this._editor.dispatch({effects:u.EditorView.scrollIntoView(h.EditorSelection.range(t,n))})}getCoordinateForPosition(e){const t=this.getOffsetAt(e);const n=this.editor.coordsAtPos(t);return n}getPositionForCoordinate(e){const t=this.editor.posAtCoords({x:e.left,y:e.top});return this.getPositionAt(t)||null}getCursorPosition(){const e=this.state.selection.main.head;return this.getPositionAt(e)}setCursorPosition(e,t={}){const n=this.getOffsetAt(e);this.editor.dispatch({selection:{anchor:n},scrollIntoView:t.scroll===false?false:true});if(!this.editor.hasFocus){this.model.selections.set(this.uuid,this.getSelections())}}getSelection(){return this.getSelections()[0]}setSelection(e){this.setSelections([e])}getSelections(){const e=this.state.selection.ranges;if(e.length>0){const t=e.map((e=>({anchor:this._toCodeMirrorPosition(this.getPositionAt(e.from)),head:this._toCodeMirrorPosition(this.getPositionAt(e.to))})));return t.map((e=>this._toSelection(e)))}const t=this._toCodeMirrorPosition(this.getPositionAt(this.state.selection.main.head));const n=this._toSelection({anchor:t,head:t});return[n]}setSelections(e){const t=e.length?e.map((e=>h.EditorSelection.range(this.getOffsetAt(e.start),this.getOffsetAt(e.end)))):[h.EditorSelection.range(0,0)];this.editor.dispatch({selection:h.EditorSelection.create(t)})}replaceSelection(e){const t=this.getSelections()[0];this.model.sharedModel.updateSource(this.getOffsetAt(t.start),this.getOffsetAt(t.end),e);const n=this.getPositionAt(this.getOffsetAt(t.start)+e.length);this.setSelection({start:n,end:n})}getTokens(){const e=[];const t=(0,c.ensureSyntaxTree)(this.state,this.doc.length);if(t){t.iterate({enter:t=>{if(t.node.firstChild===null){e.push({value:this.state.sliceDoc(t.from,t.to),offset:t.from,type:t.name})}return true}})}return e}getTokenAt(e){const t=(0,c.ensureSyntaxTree)(this.state,e);let n=null;if(t){t.iterate({enter:t=>{if(n){return false}if(t.node.firstChild){return true}if(e>=t.from&&e<=t.to){let e=t;if(t.name==="⚠"&&t.from===t.to&&t.node.parent){e=t.node.parent}n={value:this.state.sliceDoc(e.from,e.to),offset:e.from,type:e.name};return false}return true}})}return n||{offset:e,value:""}}getTokenAtCursor(){return this.getTokenAt(this.state.selection.main.head)}newIndentedLine(){(0,i.insertNewlineAndIndent)({state:this.state,dispatch:this.editor.dispatch})}execCommand(e){e(this.editor)}onConfigChanged(e,t){const n=Object.keys(t).reduce(((e,n)=>{if(t[n]!=undefined){e[n]=t[n]}return e}),{});e.reconfigureExtensions(this._editor,n);if(t["customStyles"]&&!t["fontSize"]){this.editor.setState(this.editor.state)}}onKeydown(e){const t=this.state.selection.main.head;if(t===0&&e.keyCode===re){if(!e.shiftKey){this.edgeRequested.emit("top")}return false}const n=this.doc.lineAt(t).number;if(n===1&&e.keyCode===re){if(!e.shiftKey){this.edgeRequested.emit("topLine")}return false}const i=this.doc.length;if(t===i&&e.keyCode===ae){if(!e.shiftKey){this.edgeRequested.emit("bottom")}return false}return false}_onMimeTypeChanged(){this._languages.getLanguage(this._model.mimeType).then((e=>{var t;this._editor.dispatch({effects:this._language.reconfigure((t=e===null||e===void 0?void 0:e.support)!==null&&t!==void 0?t:[])})})).catch((e=>{console.log(`Failed to load language for '${this._model.mimeType}'.`,e);this._editor.dispatch({effects:this._language.reconfigure([])})}))}_onCursorActivity(){if(this._editor.hasFocus){const e=this.getSelections();this.model.selections.set(this.uuid,e)}}_toSelection(e){return{uuid:this.uuid,start:this._toPosition(e.anchor),end:this._toPosition(e.head)}}_toPosition(e){return{line:e.line,column:e.ch}}_toCodeMirrorPosition(e){return{line:e.line,ch:e.column}}_onDocChanged(e){if(e.transactions.length&&e.transactions[0].selection){this._onCursorActivity()}}handleEvent(e){switch(e.type){case"focus":this._evtFocus(e);break;case"blur":this._evtBlur(e);break;default:break}}_evtFocus(e){this.host.classList.add("jp-mod-focused");this._onCursorActivity()}_evtBlur(e){this.host.classList.remove("jp-mod-focused")}}var de;(function(e){function t(e,t,n,i){const s=t.getInitialExtensions();s.push(...n);const o=new u.EditorView({state:h.EditorState.create({doc:i,extensions:s}),parent:e});return o}e.createEditor=t})(de||(de={}));class ce{constructor(e={}){var t,n,i;this.newInlineEditor=e=>{e.host.dataset.type="inline";return this.newEditor({...e,config:{...this.inlineCodeMirrorConfig,...e.config||{}},inline:true})};this.newDocumentEditor=e=>{var t,n;e.host.dataset.type="document";return this.newEditor({...e,config:{...this.documentCodeMirrorConfig,...(t=e.config)!==null&&t!==void 0?t:{}},inline:false,extensions:[u.keymap.of([{key:"Shift-Enter",run:e=>true}])].concat((n=e.extensions)!==null&&n!==void 0?n:[])})};this.languages=(t=e.languages)!==null&&t!==void 0?t:new se;this.extensions=(n=e.extensions)!==null&&n!==void 0?n:new J;this.translator=(i=e.translator)!==null&&i!==void 0?i:f.nullTranslator;this.inlineCodeMirrorConfig={searchWithCM:true};this.documentCodeMirrorConfig={lineNumbers:true,scrollPastEnd:true}}newEditor(e){const t=new le({extensionsRegistry:this.extensions,languages:this.languages,translator:this.translator,...e});return t}}class he{constructor(e){this.languages=e}getMimeTypeByLanguage(e){var t;const n=e.file_extension||"";const i=this.languages.findBest(e.codemirror_mode||{mimetype:e.mimetype,name:e.name,ext:[n.split(".").slice(-1)[0]]});return i?Array.isArray(i.mime)?(t=i.mime[0])!==null&&t!==void 0?t:s.IEditorMimeTypeService.defaultMimeType:i.mime:s.IEditorMimeTypeService.defaultMimeType}getMimeTypeByFilePath(e){var t;const n=G.PathExt.extname(e);if(n===".ipy"){return"text/x-python"}else if(n===".md"){return"text/x-ipythongfm"}const i=this.languages.findByFileName(e);return i?Array.isArray(i.mime)?(t=i.mime[0])!==null&&t!==void 0?t:s.IEditorMimeTypeService.defaultMimeType:i.mime:s.IEditorMimeTypeService.defaultMimeType}}var ue=n(22441);class pe{constructor(){this.currentIndex=null;this.query=null;this._isActive=true;this._inSelection=null;this._isDisposed=false;this._cmHandler=null;this.currentIndex=null;this._stateChanged=new m.Signal(this)}get cmHandler(){if(!this._cmHandler){this._cmHandler=new me(this.editor)}return this._cmHandler}get stateChanged(){return this._stateChanged}get currentMatchIndex(){return this.isActive?this.currentIndex:null}get isActive(){return this._isActive}get isDisposed(){return this._isDisposed}get matchesCount(){return this.isActive?this.cmHandler.matches.length:0}clearHighlight(){this.currentIndex=null;this.cmHandler.clearHighlight();return Promise.resolve()}dispose(){if(this._isDisposed){return}this._isDisposed=true;m.Signal.clearData(this);if(this.isActive){this.endQuery().catch((e=>{console.error(`Failed to end search query on cells.`,e)}))}}async setIsActive(e){if(this._isActive===e){return}this._isActive=e;if(this._isActive){if(this.query!==null){await this.startQuery(this.query,this.filters)}}else{await this.endQuery()}}async setSearchSelection(e){if(this._inSelection===e){return}this._inSelection=e;await this.updateCodeMirror(this.model.sharedModel.getSource());this._stateChanged.emit()}setProtectSelection(e){this.cmHandler.protectSelection=e}async startQuery(e,t){this.query=e;this.filters=t;const n=this.model.sharedModel.getSource();await this.updateCodeMirror(n);this.model.sharedModel.changed.connect(this.onSharedModelChanged,this)}async endQuery(){await this.clearHighlight();await this.cmHandler.endQuery();this.currentIndex=null}async highlightNext(e=true,t){if(this.matchesCount===0||!this.isActive){this.currentIndex=null}else{let n=await this.cmHandler.highlightNext(t);if(n){this.currentIndex=this.cmHandler.currentIndex}else{this.currentIndex=e?0:null}return n}return Promise.resolve(this.getCurrentMatch())}async highlightPrevious(e=true,t){if(this.matchesCount===0||!this.isActive){this.currentIndex=null}else{let n=await this.cmHandler.highlightPrevious(t);if(n){this.currentIndex=this.cmHandler.currentIndex}else{this.currentIndex=e?this.matchesCount-1:null}return n}return Promise.resolve(this.getCurrentMatch())}replaceCurrentMatch(e,t,n){if(!this.isActive){return Promise.resolve(false)}if(this.currentIndex!==null&&this.currentIndex{this.updateCodeMirror(this.model.sharedModel.getSource()).then((()=>{const n=this.cmHandler.matches;const i=t.position+s.length;let o=false;for(let e=this.currentIndex||0;e=i){this.currentIndex=e;o=true;break}void this.highlightNext(false,{from:"previous-match"})}if(!o){this.currentIndex=null}e(true)})).catch((e=>{const t=`Failed to regenerate match list: ${e}`;console.error(t);n(t)}))}))}}return Promise.resolve(false)}replaceAllMatches(e,t){if(!this.isActive){return Promise.resolve(false)}let n=this.cmHandler.matches.length>0;let i=this.model.sharedModel.getSource();let s=0;const o=this.cmHandler.matches.reduce(((n,o)=>{const r=o.position;const a=r+o.text.length;const l=(t===null||t===void 0?void 0:t.regularExpression)?o.text.replace(this.query,e):e;const d=(t===null||t===void 0?void 0:t.preserveCase)?ue.GenericSearchProvider.preserveCase(o.text,l):l;const c=`${n}${i.slice(s,r)}${d}`;s=a;return c}),"");if(n){this.cmHandler.matches=[];this.currentIndex=null;this.model.sharedModel.setSource(`${o}${i.slice(s)}`)}return Promise.resolve(n)}getCurrentMatch(){if(this.currentIndex===null){return undefined}else{let e=undefined;if(this.currentIndexe.position>=n&&e.position<=i));if(this.cmHandler.currentIndex===null&&this.cmHandler.matches.length>0){await this.cmHandler.highlightNext({from:"selection",select:false,scroll:false})}this.currentIndex=this.cmHandler.currentIndex}else{this.cmHandler.matches=t}}else{this.cmHandler.matches=[]}}}class me{constructor(e){this._current=null;this._cm=e;this._matches=new Array;this._currentIndex=null;this._highlightEffect=h.StateEffect.define({map:(e,t)=>{const n=e=>({text:e.text,position:t.mapPos(e.position)});return{matches:e.matches.map(n),currentMatch:e.currentMatch?n(e.currentMatch):null}}});this._highlightMark=u.Decoration.mark({class:"cm-searching"});this._currentMark=u.Decoration.mark({class:"jp-current-match"});this._highlightField=h.StateField.define({create:()=>u.Decoration.none,update:(e,t)=>{e=e.map(t.changes);for(let n of t.effects){if(n.is(this._highlightEffect)){const t=n;if(t.value.matches.length){e=e.update({add:t.value.matches.map((e=>this._highlightMark.range(e.position,e.position+e.text.length))),filter:()=>false});e=e.update({add:t.value.currentMatch?[this._currentMark.range(t.value.currentMatch.position,t.value.currentMatch.position+t.value.currentMatch.text.length)]:[]})}else{e=u.Decoration.none}}}return e},provide:e=>u.EditorView.decorations.from(e)});this._domEventHandlers=u.EditorView.domEventHandlers({focus:()=>{this._selectCurrentMatch()}})}get currentIndex(){return this._currentIndex}get matches(){return this._matches}set matches(e){this._matches=e;if(this._currentIndex!==null&&this._currentIndex>this._matches.length){this._currentIndex=this._matches.length>0?0:null}this._highlightCurrentMatch({select:false})}get protectSelection(){return this._protectSelection}set protectSelection(e){this._protectSelection=e}clearHighlight(){this._currentIndex=null;this._highlightCurrentMatch()}endQuery(){this._currentIndex=null;this._matches=[];if(this._cm){this._cm.editor.dispatch({effects:this._highlightEffect.of({matches:[],currentMatch:null})})}return Promise.resolve()}highlightNext(e){var t;this._currentIndex=this._findNext(false,(t=e===null||e===void 0?void 0:e.from)!==null&&t!==void 0?t:"auto");this._highlightCurrentMatch(e);return Promise.resolve(this._currentIndex!==null?this._matches[this._currentIndex]:undefined)}highlightPrevious(e){var t;this._currentIndex=this._findNext(true,(t=e===null||e===void 0?void 0:e.from)!==null&&t!==void 0?t:"auto");this._highlightCurrentMatch(e);return Promise.resolve(this._currentIndex!==null?this._matches[this._currentIndex]:undefined)}setEditor(e){if(this._cm){throw new Error("CodeMirrorEditor already set.")}else{this._cm=e;if(this._currentIndex!==null){this._highlightCurrentMatch()}this._cm.editor.dispatch({effects:h.StateEffect.appendConfig.of(this._domEventHandlers)});this._refresh()}}_selectCurrentMatch(e=true){const t=this._current;if(!t){return}if(!this._cm){return}const n={anchor:t.position,head:t.position+t.text.length};const i=this._cm.editor.state.selection.main;if(i.from===t.position&&i.to===t.position+t.text.length||this._protectSelection){if(e){this._cm.editor.dispatch({effects:u.EditorView.scrollIntoView(h.EditorSelection.range(n.anchor,n.head))});return}}else{this._cm.editor.dispatch({selection:n,scrollIntoView:e})}}_highlightCurrentMatch(e){var t,n,i;if(!this._cm){return}if(this._currentIndex!==null){const s=this.matches[this._currentIndex];this._current=s;if((t=e===null||e===void 0?void 0:e.select)!==null&&t!==void 0?t:true){if(this._cm.hasFocus()){this._selectCurrentMatch((n=e===null||e===void 0?void 0:e.scroll)!==null&&n!==void 0?n:true)}else if((i=e===null||e===void 0?void 0:e.scroll)!==null&&i!==void 0?i:true){this._cm.editor.dispatch({effects:u.EditorView.scrollIntoView(s.position)})}}}else{this._current=null}this._refresh()}_refresh(){if(!this._cm){return}let e=[this._highlightEffect.of({matches:this.matches,currentMatch:this._current})];if(!this._cm.state.field(this._highlightField,false)){e.push(h.StateEffect.appendConfig.of([this._highlightField]))}this._cm.editor.dispatch({effects:e})}_findNext(e,t="auto"){var n,i,s,o;if(this._matches.length===0){return null}if(!this._cm&&!["previous-match","start"].includes(t)){t="previous-match"}let r=0;if(t==="auto"&&((i=(n=this._cm)===null||n===void 0?void 0:n.hasFocus())!==null&&i!==void 0?i:false)||t==="selection"){const t=this._cm.state.selection.main;r=e?t.anchor:t.head}else if(t==="selection-start"){const e=this._cm.state.selection.main;r=Math.min(e.anchor,e.head)}else if(t==="start"){r=0}else if(this._current){r=e?this._current.position:this._current.position+this._current.text.length}if(r===0&&e&&this.currentIndex===null){r=(o=(s=this._cm)===null||s===void 0?void 0:s.doc.length)!==null&&o!==void 0?o:d(this._matches[this._matches.length-1])}const a=r;let l=ge.findNext(this._matches,a,0,this._matches.length-1);if(l===null){return e?this._matches.length-1:null}if(e){l-=1;if(l<0){return null}}return l;function d(e){return e?e.position+e.text.length:0}}}var ge;(function(e){function t(e,t,n=0,i=Infinity){i=Math.min(e.length-1,i);while(n<=i){let s=Math.floor(.5*(n+i));const o=e[s].position;if(ot){return n}}else if(o>t){i=s-1;if(i>0&&e[i].position0?n-1:0;const o=e[s];return o.position>=t?s:null}e.findNext=t})(ge||(ge={}));const fe=new p.Token("@jupyterlab/codemirror:IEditorExtensionRegistry",`A registry for CodeMirror extension factories.`);const ve=new p.Token("@jupyterlab/codemirror:IEditorLanguageRegistry","A registry for CodeMirror languages.");const _e=new p.Token("@jupyterlab/codemirror:IEditorThemeRegistry","A registry for CodeMirror theme.")},23359:(e,t,n)=>{"use strict";var i=n(17325);var s=n(19562);var o=n(85072);var r=n.n(o);var a=n(97825);var l=n.n(a);var d=n(77659);var c=n.n(d);var h=n(55056);var u=n.n(h);var p=n(10540);var m=n.n(p);var g=n(41113);var f=n.n(g);var v=n(29500);var _={};_.styleTagTransform=f();_.setAttributes=u();_.insert=c().bind(null,"head");_.domAPI=l();_.insertStyleElement=m();var b=r()(v.A,_);const y=v.A&&v.A.locals?v.A.locals:undefined},76177:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>C});var i=n(54723);var s=n(26331);var o=n(29939);var r=n(84739);var a=n(30619);var l=n(93247);var d=n(44914);var c=n.n(d);const h="availableProviders";function u(e){const{schema:t}=e;const n=t.title;const i=t.description;const s=e.formContext.settings;const o=s.get(h).user;const r={...t.default};if(o){for(const e of Object.keys(r)){if(e in o){r[e]=o[e]}else{r[e]=-1}}}const[a,l]=(0,d.useState)(r);const u=(e,t)=>{const n={...a,[e]:parseInt(t.target.value)};s.set(h,n).catch(console.error);l(n)};return c().createElement("div",null,c().createElement("fieldset",null,c().createElement("legend",null,n),c().createElement("p",{className:"field-description"},i),Object.keys(r).map((e=>c().createElement("div",{key:e,className:"form-group small-field"},c().createElement("div",null,c().createElement("h3",null," ",e),c().createElement("div",{className:"inputFieldWrapper"},c().createElement("input",{className:"form-control",type:"number",value:a[e],onChange:t=>{u(e,t)}}))))))))}const p="@jupyterlab/completer-extension:manager";const m="@jupyterlab/completer-extension:inline-completer";var g;(function(e){e.nextInline="inline-completer:next";e.previousInline="inline-completer:previous";e.acceptInline="inline-completer:accept";e.invokeInline="inline-completer:invoke"})(g||(g={}));const f={id:"@jupyterlab/completer-extension:base-service",description:"Adds context and kernel completion providers.",requires:[o.ICompletionProviderManager],autoStart:true,activate:(e,t)=>{t.registerProvider(new o.ContextCompleterProvider);t.registerProvider(new o.KernelCompleterProvider)}};const v={id:"@jupyterlab/completer-extension:inline-history",description:"Adds inline completion provider suggesting code from execution history.",requires:[o.ICompletionProviderManager],optional:[a.ITranslator],autoStart:true,activate:(e,t,n)=>{t.registerInlineProvider(new o.HistoryInlineCompletionProvider({translator:n!==null&&n!==void 0?n:a.nullTranslator}))}};const _={id:"@jupyterlab/completer-extension:inline-completer-factory",description:"Provides a factory for inline completer.",provides:o.IInlineCompleterFactory,optional:[a.ITranslator],autoStart:true,activate:(e,t)=>{const n=(t||a.nullTranslator).load("jupyterlab");return{factory:t=>{const i=new o.InlineCompleter({...t,trans:n});const r=t=>{const n=e.commands.keyBindings.find((e=>e.command===t));const i=n?l.CommandRegistry.formatKeystroke(n.keys):"";return i?`${i}`:""};const a={[g.previousInline]:r(g.previousInline),[g.nextInline]:r(g.nextInline),[g.acceptInline]:r(g.acceptInline)};e.commands.keyBindingChanged.connect(((t,n)=>{const i=n.binding.command;if(a.hasOwnProperty(i)){const t=a[i];const n=r(i);if(n!==t){a[i]=n;e.commands.notifyCommandChanged(i)}}}));i.toolbar.addItem("previous-inline-completion",new s.CommandToolbarButton({commands:e.commands,icon:s.caretLeftIcon,id:g.previousInline,label:()=>a[g.previousInline],caption:n.__("Previous")}));i.toolbar.addItem("next-inline-completion",new s.CommandToolbarButton({commands:e.commands,icon:s.caretRightIcon,id:g.nextInline,label:()=>a[g.nextInline],caption:n.__("Next")}));i.toolbar.addItem("accept-inline-completion",new s.CommandToolbarButton({commands:e.commands,icon:s.checkIcon,id:g.acceptInline,label:()=>a[g.acceptInline],caption:n.__("Accept")}));i.model.suggestionsChanged.connect((()=>{for(const t of[g.previousInline,g.nextInline,g.acceptInline]){e.commands.notifyCommandChanged(t)}}));return i}}}};const b={id:m,description:"Registers the inline completer factory; adds inline completer commands, shortcuts and settings.",requires:[o.ICompletionProviderManager,o.IInlineCompleterFactory,r.ISettingRegistry],optional:[a.ITranslator],autoStart:true,activate:(e,t,n,s,o)=>{t.setInlineCompleterFactory(n);const r=(o||a.nullTranslator).load("jupyterlab");const l=()=>!!e.shell.currentWidget&&!!t.inline;let d;e.commands.addCommand(g.nextInline,{execute:()=>{var n;(n=t.inline)===null||n===void 0?void 0:n.cycle(e.shell.currentWidget.id,"next")},label:r.__("Next Inline Completion"),isEnabled:l});e.commands.addCommand(g.previousInline,{execute:()=>{var n;(n=t.inline)===null||n===void 0?void 0:n.cycle(e.shell.currentWidget.id,"previous")},label:r.__("Previous Inline Completion"),isEnabled:l});e.commands.addCommand(g.acceptInline,{execute:()=>{var n;(n=t.inline)===null||n===void 0?void 0:n.accept(e.shell.currentWidget.id)},label:r.__("Accept Inline Completion"),isEnabled:()=>l()&&t.inline.isActive(e.shell.currentWidget.id)});e.commands.addCommand(g.invokeInline,{execute:()=>{var n;(n=t.inline)===null||n===void 0?void 0:n.invoke(e.shell.currentWidget.id)},label:r.__("Invoke Inline Completer"),isEnabled:l});const c=e=>{var n;d=e.composite;(n=t.inline)===null||n===void 0?void 0:n.configure(d)};e.restored.then((()=>{var e;const n=(e=t.inlineProviders)!==null&&e!==void 0?e:[];const i=e=>{var t,n;return{enabled:true,autoFillInMiddle:false,timeout:5e3,debouncerDelay:0,...(n=(t=e.schema)===null||t===void 0?void 0:t.default)!==null&&n!==void 0?n:{}}};s.transform(m,{compose:e=>{var t,s;const o=(t=e.data.composite["providers"])!==null&&t!==void 0?t:{};for(const r of n){const e=i(r);o[r.identifier]={...e,...(s=o[r.identifier])!==null&&s!==void 0?s:{}}}e.data["composite"]["providers"]=o;return e},fetch:e=>{var t,s;const o=e.schema.properties;const a={};for(const l of n){a[l.identifier]={title:r.__("%1 provider",l.name),properties:{...(s=(t=l.schema)===null||t===void 0?void 0:t.properties)!==null&&s!==void 0?s:{},timeout:{title:r.__("Timeout"),description:r.__("Timeout for %1 provider (in milliseconds).",l.name),type:"number",minimum:0},debouncerDelay:{title:r.__("Debouncer delay"),minimum:0,description:r.__("Time since the last key press to wait before requesting completions from %1 provider (in milliseconds).",l.name),type:"number"},enabled:{title:r.__("Enabled"),description:r.__("Whether to fetch completions %1 provider.",l.name),type:"boolean"},autoFillInMiddle:{title:r.__("Fill in middle on typing"),description:r.__("Whether to show completions in the middle of the code line from %1 provider on typing.",l.name),type:"boolean"}},default:i(l),type:"object"}}o["providers"]["properties"]=a;return e}});const o=s.load(m);o.then((e=>{c(e);e.changed.connect((e=>{c(e)}))})).catch(console.error)})).catch(console.error);const h=t=>e.commands.keyBindings.find((e=>e.command===t));const u={[g.acceptInline]:h(g.acceptInline),[g.invokeInline]:h(g.invokeInline)};e.commands.keyBindingChanged.connect(((e,t)=>{const n=t.binding.command;if(u.hasOwnProperty(n)){u[n]=h(n)}}));const p=t=>{if(!(t.target instanceof Element)){return}const n=t.target;switch(t.keyCode){case 9:{const s=[u[g.acceptInline],u[g.invokeInline]];for(const o of s){if(o&&o.keys.length===1&&o.keys[0]==="Tab"&&n.closest(o.selector)&&e.commands.isEnabled(o.command)){const s=n.closest("."+i.COMPLETER_ACTIVE_CLASS);if((d===null||d===void 0?void 0:d.suppressIfTabCompleterActive)&&s){return}e.commands.execute(o.command).catch(console.error);t.preventDefault();t.stopPropagation();t.stopImmediatePropagation();return}}break}default:return}};document.addEventListener("keydown",p,true)}};const y={id:p,description:"Provides the completion provider manager.",requires:[r.ISettingRegistry],optional:[s.IFormRendererRegistry],provides:o.ICompletionProviderManager,autoStart:true,activate:(e,t,n)=>{const i="availableProviders";const s=new o.CompletionProviderManager;const r=(e,t)=>{var n;const o=e.get(i);const r=e.composite;s.setTimeout(r.providerTimeout);s.setShowDocumentationPanel(r.showDocumentationPanel);s.setContinuousHinting(r.autoCompletion);s.setSuppressIfInlineCompleterActive(r.suppressIfInlineCompleterActive);const a=(n=o.user)!==null&&n!==void 0?n:o.composite;const l=Object.entries(a!==null&&a!==void 0?a:{}).filter((e=>e[1]>=0&&t.includes(e[0]))).sort((([,e],[,t])=>t-e)).map((e=>e[0]));s.activateProvider(l)};e.restored.then((()=>{const e=[...s.getProviders().entries()];const n=e.map((([e,t])=>e));t.transform(p,{fetch:t=>{const n=t.schema.properties;const s={};e.forEach((([e,t],n)=>{var i;s[e]=(i=t.rank)!==null&&i!==void 0?i:(n+1)*10}));n[i]["default"]=s;return t}});const o=t.load(p);o.then((e=>{r(e,n);e.changed.connect((e=>{r(e,n)}))})).catch(console.error)})).catch(console.error);if(n){const e={fieldRenderer:e=>u(e)};n.addRenderer(`${p}.availableProviders`,e)}return s}};const w=[y,f,v,_,b];const C=w},2129:(e,t,n)=>{"use strict";var i=n(40662);var s=n(17325);var o=n(3579);var r=n(36060)},33107:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CONTEXT_PROVIDER_ID:()=>D,Completer:()=>E,CompleterModel:()=>g,CompletionHandler:()=>u,CompletionProviderManager:()=>ne,CompletionTriggerKind:()=>l,ContextCompleterProvider:()=>A,HistoryInlineCompletionProvider:()=>le,ICompletionProviderManager:()=>h,IInlineCompleterFactory:()=>c,InlineCompleter:()=>te,InlineCompletionTriggerKind:()=>d,KERNEL_PROVIDER_ID:()=>L,KernelCompleterProvider:()=>R,ProviderReconciliator:()=>M,completerWidgetIcon:()=>re,inlineCompleterIcon:()=>oe});var i=n(54723);var s=n(30397);var o=n(42856);var r=n(2336);var a=n(5592);var l;(function(e){e[e["Invoked"]=1]="Invoked";e[e["TriggerCharacter"]=2]="TriggerCharacter";e[e["TriggerForIncompleteCompletions"]=3]="TriggerForIncompleteCompletions"})(l||(l={}));var d;(function(e){e[e["Invoke"]=0]="Invoke";e[e["Automatic"]=1]="Automatic"})(d||(d={}));const c=new a.Token("@jupyterlab/completer:IInlineCompleterFactory","A factory of inline completer widgets.");const h=new a.Token("@jupyterlab/completer:ICompletionProviderManager","A service for the completion providers management.");class u{constructor(e){this._fetchingInline=0;this._editor=null;this._enabled=false;this._isDisposed=false;this._autoCompletion=false;this._continuousInline=true;this._tabCompleterActive=false;this.completer=e.completer;this.inlineCompleter=e.inlineCompleter;this.completer.selected.connect(this.onCompletionSelected,this);this.completer.visibilityChanged.connect(this.onVisibilityChanged,this);this._reconciliator=e.reconciliator}set reconciliator(e){this._reconciliator=e}get editor(){return this._editor}set editor(e){if(e===this._editor){return}let t=this._editor;if(t&&!t.isDisposed){const e=t.model;t.host.classList.remove(i.COMPLETER_ENABLED_CLASS);t.host.classList.remove(i.COMPLETER_ACTIVE_CLASS);e.selections.changed.disconnect(this.onSelectionsChanged,this);e.sharedModel.changed.disconnect(this._onSharedModelChanged,this)}this.completer.reset();this.completer.editor=e;t=this._editor=e;if(t){const e=t.model;this._enabled=false;e.selections.changed.connect(this.onSelectionsChanged,this);const n=e.sharedModel;n.changed.connect(this._onSharedModelChanged,this);this.onSelectionsChanged();if(this.inlineCompleter){this.inlineCompleter.editor=t}}}get isDisposed(){return this._isDisposed}set autoCompletion(e){this._autoCompletion=e}get autoCompletion(){return this._autoCompletion}dispose(){if(this.isDisposed){return}this._isDisposed=true;r.Signal.clearData(this)}invokeInline(){const e=this._editor;if(e){this._makeInlineRequest(e.getCursorPosition(),d.Invoke).catch((e=>{console.warn("Inline invoke request bailed",e)}))}}invoke(){o.MessageLoop.sendMessage(this,u.Msg.InvokeRequest)}processMessage(e){switch(e.type){case u.Msg.InvokeRequest.type:this.onInvokeRequest(e);break;default:break}}getState(e,t){return{text:e.model.sharedModel.getSource(),line:t.line,column:t.column}}onCompletionSelected(e,t){const n=e.model;const i=this._editor;if(!i||!n){return}const s=n.createPatch(t);if(!s){return}const{start:o,end:r,value:a}=s;const l=i.getOffsetAt(i.getCursorPosition());const d={changes:{from:o,to:r,insert:a}};if(l<=r&&l>=o){d.selection={anchor:o+a.length}}i.editor.dispatch(d)}onInvokeRequest(e){if(!this.completer.model){return}if(this.completer.model.original){return}const t=this._editor;if(t){this._makeRequest(t.getCursorPosition(),l.Invoked).catch((e=>{console.warn("Invoke request bailed",e)}))}}onSelectionsChanged(){var e;const t=this.completer.model;const n=this._editor;if(!n){return}const s=(e=this.inlineCompleter)===null||e===void 0?void 0:e.model;if(s){s.handleSelectionChange(n.getSelection())}const o=n.host;if(!t){this._enabled=false;o.classList.remove(i.COMPLETER_ENABLED_CLASS);return}if(t.subsetMatch){return}const r=n.getCursorPosition();const a=n.getLine(r.line);const{start:l,end:d}=n.getSelection();if(l.column!==d.column||l.line!==d.line){this._enabled=false;t.reset(true);o.classList.remove(i.COMPLETER_ENABLED_CLASS);return}if(!a||d.column===0){o.classList.add(i.COMPLETER_LINE_BEGINNING_CLASS)}else if(a&&a.slice(0,r.column).match(/^\s*$/)){o.classList.add(i.COMPLETER_LINE_BEGINNING_CLASS)}else{o.classList.remove(i.COMPLETER_LINE_BEGINNING_CLASS)}if(!this._enabled){this._enabled=true;o.classList.add(i.COMPLETER_ENABLED_CLASS)}t.handleCursorChange(this.getState(n,n.getCursorPosition()))}async onTextChanged(e,t){var n;if(!this._enabled){return}const i=this.completer.model;const s=this.editor;if(!s){return}if(i&&this._autoCompletion&&this._reconciliator.shouldShowContinuousHint&&await this._reconciliator.shouldShowContinuousHint(this.completer.isVisible,t)){void this._makeRequest(s.getCursorPosition(),l.TriggerCharacter)}const o=(n=this.inlineCompleter)===null||n===void 0?void 0:n.model;if(o){o.handleTextChange(t);if(this._continuousInline){void this._makeInlineRequest(s.getCursorPosition(),d.Automatic)}}if(i){const{start:e,end:t}=s.getSelection();if(e.column!==t.column||e.line!==t.line){return}i.handleTextChange(this.getState(s,s.getCursorPosition()))}}onVisibilityChanged(e){var t;if(e.isDisposed||e.isHidden){this._tabCompleterActive=false;if(this._editor){this._editor.host.classList.remove(i.COMPLETER_ACTIVE_CLASS);this._editor.focus()}return}this._tabCompleterActive=true;(t=this._editor)===null||t===void 0?void 0:t.host.classList.add(i.COMPLETER_ACTIVE_CLASS)}async _onSharedModelChanged(e,t){if(t.sourceChange){await this.onTextChanged(e,t)}}_makeRequest(e,t){const n=this.editor;if(!n){return Promise.reject(new Error("No active editor"))}const i=this._composeRequest(n,e);const s=this.getState(n,e);return this._reconciliator.fetch(i,t).then((e=>{var t;if(!e){return}const n=this._updateModel(s,e.start,e.end);if(!n){return}if(this.completer.suppressIfInlineCompleterActive&&((t=this.inlineCompleter)===null||t===void 0?void 0:t.isActive)){return}if(n.setCompletionItems){n.setCompletionItems(e.items)}})).catch((e=>{}))}async _makeInlineRequest(e,t){const n=this.editor;if(!n){return Promise.reject(new Error("No active editor"))}if(!this.inlineCompleter){return Promise.reject(new Error("No inline completer"))}const i=n.getLine(e.line);if(t===d.Automatic&&(typeof i==="undefined"||i.slice(0,e.column).match(/^\s*$/))){this._fetchingInline+=1;return}let s=false;if(typeof i!=="undefined"&&e.column{var t;if(c||!e||!e.items){return}if(a!==this._fetchingInline){return}h.add(d);if(h.size===1){if(((t=this.inlineCompleter)===null||t===void 0?void 0:t.suppressIfTabCompleterActive)&&this._tabCompleterActive){c=true;return}r.setCompletions(e)}else{r.appendCompletions(e)}})).catch((e=>{console.warn(e)})).finally((()=>{h.add(d);const e=l.length-h.size;r.notifyProgress({pendingProviders:e,totalProviders:l.length})}))}}_composeRequest(e,t){const n=e.model.sharedModel.getSource();const i=e.model.mimeType;const o=s.Text.jsIndexToCharIndex(e.getOffsetAt(t),n);return{text:n,offset:o,mimeType:i}}_updateModel(e,t,n){const i=this.completer.model;const o=e.text;if(!i){return null}i.original=e;i.cursor={start:s.Text.charIndexToJsIndex(t,o),end:s.Text.charIndexToJsIndex(n,o)};return i}}(function(e){let t;(function(e){e[e["opened"]=0]="opened";e[e["update"]=1]="update";e[e["closed"]=2]="closed"})(t=e.StraemEvent||(e.StraemEvent={}));let n;(function(e){e.InvokeRequest=new o.Message("invoke-request")})(n=e.Msg||(e.Msg={}))})(u||(u={}));var p=n(34236);function m(e){const t=document.createElement("span");t.textContent=e;return t.innerHTML}class g{constructor(){this.processedItemsCache=null;this._current=null;this._cursor=null;this._isDisposed=false;this._completionItems=[];this._original=null;this._query="";this._subsetMatch=false;this._typeMap={};this._orderedTypes=[];this._stateChanged=new r.Signal(this);this._queryChanged=new r.Signal(this);this._processedToOriginalItem=null;this._resolvingItem=0}get stateChanged(){return this._stateChanged}get queryChanged(){return this._queryChanged}get original(){return this._original}set original(e){const t=this._original===e||this._original&&e&&a.JSONExt.deepEqual(e,this._original);if(t){return}this._reset();this._current=this._original=e;this._stateChanged.emit(undefined)}get current(){return this._current}set current(e){const t=this._current===e||this._current&&e&&a.JSONExt.deepEqual(e,this._current);if(t){return}const n=this._original;if(!n){return}const i=this._cursor;if(!i){return}const s=this._current=e;if(!s){this._stateChanged.emit(undefined);return}const o=n.text.split("\n")[n.line];const r=s.text.split("\n")[s.line];if(!this._subsetMatch&&r.lengthe.processedItem));this._processedToOriginalItem=new WeakMap(t.map((e=>[e.processedItem,e.originalItem])))}else{this.processedItemsCache=this._completionItems.map((e=>this._escapeItemLabel(e)));this._processedToOriginalItem=null}}return this.processedItemsCache}setCompletionItems(e){if(a.JSONExt.deepEqual(e,this._completionItems)){return}this._completionItems=e;this._orderedTypes=f.findOrderedCompletionItemTypes(this._completionItems);this.processedItemsCache=null;this._processedToOriginalItem=null;this._stateChanged.emit(undefined)}typeMap(){return this._typeMap}orderedTypes(){return this._orderedTypes}handleCursorChange(e){if(!this._original){return}const{column:t,line:n}=e;const{current:i,original:s}=this;if(!s){return}if(n!==s.line){this.reset(true);return}if(ts.column+r+d){this.reset(true);return}}handleTextChange(e){const t=this._original;if(!t){return}const{text:n,column:i,line:s}=e;const o=n.split("\n")[s][i-1];if(o&&o.match(/\S/)||e.column>=t.column){this.current=e;return}this.reset(false)}createPatch(e){const t=this._original;const n=this._cursor;const i=this._current;if(!t||!n||!i){return undefined}let{start:s,end:o}=n;o=o+(i.text.length-t.text.length);return{start:s,end:o,value:e}}reset(e=false){if(!e&&this._subsetMatch){return}this._reset();this._stateChanged.emit(undefined)}_markup(e){var t;const n=this._completionItems;let i=[];for(const s of n){const n=s.label.indexOf("(");const o=n>-1?s.label.substring(0,n):s.label;const r=p.StringExt.matchSumOfSquares(m(o),e);if(r){let e=p.StringExt.highlight(m(s.label),r.indices,f.mark);const n=Object.assign({},s);n.label=e.join("");n.insertText=(t=s.insertText)!==null&&t!==void 0?t:s.label;i.push({item:n,score:r.score,originalItem:s})}}i.sort(f.scoreCmp);return i.map((e=>({processedItem:e.item,originalItem:e.originalItem})))}resolveItem(e){let t;if(typeof e==="number"){const n=this.completionItems();if(!n||!n[e]){return undefined}t=n[e]}else{t=e}if(!t){return undefined}let n;if(this._processedToOriginalItem){n=this._processedToOriginalItem.get(t)}else{n=t}if(!n){return undefined}return this._resolveItemByValue(n)}_resolveItemByValue(e){const t=++this._resolvingItem;let n;if(e.resolve){let t;if(e.insertText){t=this.createPatch(e.insertText)}n=e.resolve(t)}else{n=Promise.resolve(e)}return n.then((n=>{this._escapeItemLabel(n,true);Object.keys(n).forEach((t=>{e[t]=n[t]}));e.resolve=undefined;if(t!==this._resolvingItem){return Promise.resolve(null)}return n})).catch((t=>{console.error(t);return Promise.resolve(e)}))}_escapeItemLabel(e,t=false){var n;const i=m(e.label);if(i!==e.label){const s=t?e:Object.assign({},e);s.insertText=(n=e.insertText)!==null&&n!==void 0?n:e.label;s.label=i;return s}return e}_reset(){const e=this._query;this._current=null;this._cursor=null;this._completionItems=[];this._original=null;this._query="";this.processedItemsCache=null;this._processedToOriginalItem=null;this._subsetMatch=false;this._typeMap={};this._orderedTypes=[];if(e){this._queryChanged.emit({newValue:this._query,origin:"reset"})}}}var f;(function(e){const t=["function","instance","class","module","keyword"];const n=t.reduce(((e,t)=>{e[t]=null;return e}),{});function i(e){return`${e}`}e.mark=i;function s(e,t){var n,i,s;const o=e.score-t.score;if(o!==0){return o}return(s=(n=e.item.insertText)===null||n===void 0?void 0:n.localeCompare((i=t.item.insertText)!==null&&i!==void 0?i:""))!==null&&s!==void 0?s:0}e.scoreCmp=s;function o(e){const n=new Set;e.forEach((e=>{if(e.type&&!t.includes(e.type)&&!n.has(e.type)){n.add(e.type)}}));const i=Array.from(n);i.sort(((e,t)=>e.localeCompare(t)));return t.concat(i)}e.findOrderedCompletionItemTypes=o;function r(e){const i=Object.keys(e).map((t=>e[t])).filter((e=>!!e&&!(e in n))).sort(((e,t)=>e.localeCompare(t)));return t.concat(i)}e.findOrderedTypes=r})(f||(f={}));var v=n(14366);var _=n(44539);var b=n(26331);var y=n(76326);var w=n(1143);const C="jp-Completer-item";const x="jp-mod-active";const S="jp-Completer-list";const k="jp-Completer-docpanel";const j=true;const I=10;class E extends w.Widget{constructor(e){var t,n,i,s;super({node:document.createElement("div")});this._activeIndex=0;this._editor=null;this._model=null;this._selected=new r.Signal(this);this._visibilityChanged=new r.Signal(this);this._indexChanged=new r.Signal(this);this._lastSubsetMatch="";this._geometryLock=false;this._geometryCounter=0;this._docPanelExpanded=false;this._renderCounter=0;this.sanitizer=(t=e.sanitizer)!==null&&t!==void 0?t:new v.Sanitizer;this._defaultRenderer=E.getDefaultRenderer(this.sanitizer);this._renderer=(n=e.renderer)!==null&&n!==void 0?n:this._defaultRenderer;this._docPanel=this._createDocPanelNode();this.model=(i=e.model)!==null&&i!==void 0?i:null;this.editor=(s=e.editor)!==null&&s!==void 0?s:null;this.addClass("jp-Completer");this.addClass("jp-ThemedContainer");this._updateConstraints()}_updateConstraints(){const e=document.createElement("div");e.classList.add(S);e.style.visibility="hidden";e.style.overflowY="scroll";document.body.appendChild(e);const t=window.getComputedStyle(e);this._maxHeight=parseInt(t.maxHeight,10);this._minHeight=parseInt(t.minHeight,10);this._scrollbarWidth=e.offsetWidth-e.clientWidth;document.body.removeChild(e);const n=this._createDocPanelNode();this._docPanelWidth=T.measureSize(n,"inline-block").width}get activeIndex(){return this._activeIndex}get editor(){return this._editor}set editor(e){this._editor=e}get selected(){return this._selected}get visibilityChanged(){return this._visibilityChanged}get indexChanged(){return this._indexChanged}get model(){return this._model}set model(e){if(!e&&!this._model||e===this._model){return}if(this._model){this._model.stateChanged.disconnect(this.onModelStateChanged,this);this._model.queryChanged.disconnect(this.onModelQueryChanged,this)}this._model=e;if(this._model){this._model.stateChanged.connect(this.onModelStateChanged,this);this._model.queryChanged.connect(this.onModelQueryChanged,this)}}get renderer(){return this._renderer}set renderer(e){this._renderer=e}set showDocsPanel(e){this._showDoc=e}get showDocsPanel(){return this._showDoc}dispose(){this._sizeCache=undefined;this._model=null;super.dispose()}handleEvent(e){if(this.isHidden||!this._editor){return}switch(e.type){case"keydown":this._evtKeydown(e);break;case"pointerdown":this._evtPointerdown(e);break;case"scroll":this._evtScroll(e);break;default:break}}reset(){this._activeIndex=0;this._lastSubsetMatch="";if(this._model){this._model.reset(true)}this._docPanel.style.display="none";this._sizeCache=undefined;this.node.scrollTop=0}selectActive(){const e=this.node.querySelector(`.${x}`);if(!e){this.reset();return}this._selected.emit(e.getAttribute("data-value"));this.reset()}onAfterAttach(e){document.addEventListener("keydown",this,j);document.addEventListener("pointerdown",this,j);document.addEventListener("scroll",this,j)}onBeforeDetach(e){document.removeEventListener("keydown",this,j);document.removeEventListener("pointerdown",this,j);document.removeEventListener("scroll",this,j)}onModelStateChanged(){if(this.isAttached){this._activeIndex=0;this._indexChanged.emit(this._activeIndex);this.update()}}onModelQueryChanged(e,t){if(this._sizeCache&&t.origin==="editorUpdate"){const t=e.completionItems();const n=this._sizeCache.items;const i=n[this._findWidestItemIndex(n)];const s=t[this._findWidestItemIndex(t)];const o=this._getPreferredItemWidthHeuristic();if(t.length!==this._sizeCache.items.length||o(i)!==o(s)){this._sizeCache=undefined}}}onUpdateRequest(e){var t;const n=this._model;if(!n){return}if(!n.query){this._populateSubset()}let i=n.completionItems();if(!i.length){if(!this.isHidden){this.reset();this.hide();this._visibilityChanged.emit(undefined)}return}this._updateConstraints();this._geometryLock=true;const s=this._createCompleterNode(n,i);let o=s.querySelectorAll(`.${C}`)[this._activeIndex];o.classList.add(x);const r=(t=this.model)===null||t===void 0?void 0:t.resolveItem(i[this._activeIndex]);if(this._showDoc){this._docPanel.innerText="";s.appendChild(this._docPanel);this._docPanelExpanded=false;this._docPanel.style.display="none";this._updateDocPanel(r,o)}if(this.isHidden){this.show();this._setGeometry();this._visibilityChanged.emit(undefined)}else{this._setGeometry()}this._geometryLock=false}get sizeCache(){if(!this._sizeCache){return}return{width:this._sizeCache.width+this._sizeCache.docPanelWidth,height:Math.max(this._sizeCache.height,this._sizeCache.docPanelHeight)}}_createDocPanelNode(){const e=document.createElement("div");e.className=k;return e}_createCompleterNode(e,t){const n=++this._renderCounter;let i=this.node;i.textContent="";let s=e.orderedTypes();let o=document.createElement("ul");o.className=S;const r=this._renderer.createCompletionItemNode(t[0],s);const a=[r];const l=T.measureSize(r,"inline-grid");const d=Math.max(Math.ceil(this._maxHeight/l.height),5);const c=Math.min(d+1,t.length);const h=performance.now();for(let g=1;g{if(r>=t.length){return}const e=l.height*(t.length-r);d.style.marginBottom=`${e}px`;requestAnimationFrame((()=>{if(n!=this._renderCounter){return}d.style.marginBottom="";const e=Math.min(t.length,r+i);for(let n=r;n{this._setGeometry()}))}_populateSubset(){const{model:e}=this;if(!e){return false}const t=e.completionItems();const n=T.commonSubset(t.map((e=>e.insertText||e.label)));const{query:i}=e;if(n&&n!==i&&n.indexOf(i)===0){e.query=n;return true}return false}_setGeometry(){const{node:e}=this;const t=this._model;const n=this._editor;if(!n||!t||!t.original||!t.cursor){return}const i=t.cursor.start;const s=n.getPositionAt(i);const o=n.getCoordinateForPosition(s);if(!o){return}const r=window.getComputedStyle(e);const a=parseInt(r.borderLeftWidth,10)||0;const l=parseInt(r.paddingLeft,10)||0;const d=n.host.closest(".jp-MainAreaWidget > .lm-Widget")||n.host;const c=t.completionItems();if(this._sizeCache&&this._sizeCache.items.length!==c.length){this._sizeCache=undefined}b.HoverBox.setGeometry({anchor:o,host:d,maxHeight:this._maxHeight,minHeight:this._minHeight,node:e,size:this.sizeCache,offset:{horizontal:a+l},privilege:"below",style:r,outOfViewDisplay:{top:"stick-inside",bottom:"stick-inside",left:"stick-inside",right:"stick-outside"}});const h=++this._geometryCounter;if(!this._sizeCache){requestAnimationFrame((()=>{if(h!=this._geometryCounter){return}let t=e.getBoundingClientRect();let n=this._docPanel.getBoundingClientRect();this._sizeCache={width:t.width-n.width,height:t.height,items:c,docPanelWidth:n.width,docPanelHeight:n.height}}))}}_updateDocPanel(e,t){var n,i,s;let o=this._docPanel;if(!e){this._toggleDocPanel(false);return}const r=(s=(i=(n=this._renderer).createLoadingDocsIndicator)===null||i===void 0?void 0:i.call(n))!==null&&s!==void 0?s:this._defaultRenderer.createLoadingDocsIndicator();t.appendChild(r);e.then((e=>{var t,n,i;if(!e){return}if(!o){return}if(e.documentation){const s=(i=(n=(t=this._renderer).createDocumentationNode)===null||n===void 0?void 0:n.call(t,e))!==null&&i!==void 0?i:this._defaultRenderer.createDocumentationNode(e);o.textContent="";o.appendChild(s);this._toggleDocPanel(true)}else{this._toggleDocPanel(false)}})).catch((e=>console.error(e))).finally((()=>{t.removeChild(r)}))}_toggleDocPanel(e){let t=this._docPanel;if(e){if(this._docPanelExpanded){return}t.style.display="";this._docPanelExpanded=true}else{if(!this._docPanelExpanded){return}t.style.display="none";this._docPanelExpanded=false}const n=this._sizeCache;if(n){n.docPanelHeight=e?this._maxHeight:0;n.docPanelWidth=e?this._docPanelWidth:0;if(!this._geometryLock){this._setGeometry()}}}}(function(e){class t{constructor(e){this.sanitizer=(e===null||e===void 0?void 0:e.sanitizer)||new v.Sanitizer}createCompletionItemNode(e,t){let n=this._createWrapperNode(e.insertText||e.label);if(e.deprecated){n.classList.add("jp-Completer-deprecated")}return this._constructNode(n,this._createLabelNode(e.label),!!e.type,e.type,t,e.icon)}createDocumentationNode(e){const t=document.createElement("div");t.classList.add("jp-RenderedText");const n=this.sanitizer;const i=e.documentation||"";(0,_.renderText)({host:t,sanitizer:n,source:i}).catch(console.error);return t}itemWidthHeuristic(e){var t;const n=e.label.replace(/<(\/)?mark>/g,"");return n.length+(((t=e.type)===null||t===void 0?void 0:t.length)||0)}createLoadingDocsIndicator(){const e=document.createElement("div");e.classList.add("jp-Completer-loading-bar-container");const t=document.createElement("div");t.classList.add("jp-Completer-loading-bar");e.append(t);return e}_createWrapperNode(e){const t=document.createElement("li");t.className=C;t.setAttribute("data-value",e);return t}_createLabelNode(e){const t=document.createElement("code");t.className="jp-Completer-match";t.innerHTML=e;return t}_constructNode(e,t,n,i,s,o){if(o){const t=o.element({className:"jp-Completer-type jp-Completer-icon"});e.appendChild(t)}else if(n){const t=document.createElement("span");t.textContent=(i[0]||"").toLowerCase();const n=s.indexOf(i)%I+1;t.className="jp-Completer-type jp-Completer-monogram";t.setAttribute(`data-color-index`,n.toString());e.appendChild(t)}else{const t=document.createElement("span");t.className="jp-Completer-monogram";e.appendChild(t)}e.appendChild(t);if(n){e.title=i;const t=document.createElement("code");t.className="jp-Completer-typeExtended";t.textContent=i.toLocaleLowerCase();e.appendChild(t)}else{const t=document.createElement("span");t.className="jp-Completer-typeExtended";e.appendChild(t)}return e}}e.Renderer=t;let n;function i(e){if(!n||e&&n.sanitizer!==e){n=new t({sanitizer:e})}return n}e.getDefaultRenderer=i})(E||(E={}));var T;(function(e){e.keyCodeMap={38:"up",40:"down",33:"pageUp",34:"pageDown"};function t(e){const t=e.length;let n="";if(t<2){return n}const i=e[0].length;for(let s=0;se.resolve?n=>e.resolve(t,this._context,n):undefined;this._fetching=0;this._inlineFetching=0;this._providers=e.providers;this._inlineProviders=(t=e.inlineProviders)!==null&&t!==void 0?t:[];this._inlineProvidersSettings=(n=e.inlineProvidersSettings)!==null&&n!==void 0?n:{};this._context=e.context;this._timeout=e.timeout}async applicableProviders(){const e=this._providers.map((e=>e.isApplicable(this._context)));const t=await Promise.all(e);return this._providers.filter(((e,n)=>t[n]))}fetchInline(e,t,n){let i=[];const s=++this._inlineFetching;for(const o of this._inlineProviders){const a=this._inlineProvidersSettings[o.identifier];if(t!==d.Invoke&&n&&!a.autoFillInMiddle){continue}let l=0;if(t===d.Automatic){l=a.debouncerDelay}const c=()=>{const n=o.fetch(e,{...this._context,triggerKind:t}).then((e=>({...e,items:e.items.map((e=>{const t=e;t.stream=new r.Signal(t);t.provider=o;void this._stream(t,o);return t}))})));const i=new Promise((e=>setTimeout((()=>e(null)),l+a.timeout)));return Promise.race([n,i])};const h=l===0?c():new Promise(((e,t)=>setTimeout((()=>{if(s!=this._inlineFetching){return t(null)}else{return e(c())}}),l)));i.push(h.catch((e=>e)))}return i}async _stream(e,t){if(!e.isIncomplete||!t.stream||!e.token){return}const n=e.stream;const i=e.token;e.token=undefined;e.streaming=true;n.emit(u.StraemEvent.opened);for await(const s of t.stream(i)){const t=s.response;const i=t.insertText.substring(e.insertText.length);e.insertText=t.insertText;e.lastStreamed=i;e.error=s.response.error;n.emit(u.StraemEvent.update)}e.isIncomplete=false;e.lastStreamed=undefined;e.streaming=false;n.emit(u.StraemEvent.closed)}async fetch(e,t){const n=++this._fetching;let i=[];const s=await this.applicableProviders();for(const r of s){let s;s=r.fetch(e,this._context,t).then((e=>{if(n!==this._fetching){return Promise.reject(void 0)}const t=e.items.map((e=>({...e,resolve:this._resolveFactory(r,e)})));return{...e,items:t}}));const o=new Promise((e=>setTimeout((()=>e(null)),this._timeout)));s=Promise.race([s,o]);i.push(s.catch((e=>e)))}const o=Promise.all(i);return this._mergeCompletions(o)}async shouldShowContinuousHint(e,t){const n=await this.applicableProviders();if(n.length===0){return false}if(n[0].shouldShowContinuousHint){return n[0].shouldShowContinuousHint(e,t,this._context)}return this._defaultShouldShowContinuousHint(e,t)}_alignPrefixes(e,t,n){if(t!=n){const t=this._context.editor;if(!t){return e}const i=t.getCursorPosition();const s=t.getLine(i.line);if(!s){return e}const o=t.getOffsetAt({line:i.line,column:0});return e.map((e=>{const t=Math.max(e.start-o,0);const i=Math.max(n-o,0);if(t==i){return e}const r=s.substring(t,i);return{...e,items:e.items.map((e=>{let t=e.insertText||e.label;e.insertText=t.startsWith(r)?t.slice(r.length):t;return e}))}}))}return e}async _mergeCompletions(e){let t=(await e).filter((e=>{if(!e||e instanceof Error){return false}if(!e.items.length){return false}return true}));if(t.length==0){return null}else if(t.length==1){return t[0]}const n=Math.min(...t.map((e=>e.end)));const i=t.map((e=>e.start));const s=Math.min(...i);const o=Math.max(...i);t=this._alignPrefixes(t,s,o);const r=new Set;const a=new Array;for(const l of t){l.items.forEach((e=>{let t=(e.insertText||e.label).trim();if(r.has(t)){return}r.add(t);a.push(e)}))}return{start:o,end:n,items:a}}_defaultShouldShowContinuousHint(e,t){return!e&&(t.sourceChange==null||t.sourceChange.some((e=>e.insert!=null&&e.insert.length>0)))}}const D="CompletionProvider:context";class A{constructor(){this.identifier=D;this.rank=500;this.renderer=null}async isApplicable(e){return true}fetch(e,t){const n=t.editor;if(!n){return Promise.reject("No editor")}return new Promise((e=>{e(P.contextHint(n))}))}}var P;(function(e){function t(e){const t=e.getTokenAtCursor();const i=n(t,e);const s=i.filter((e=>e.type)).map((e=>e.value));const o=new Set(s);const r=new Array;o.forEach((e=>r.push({label:e})));return{start:t.offset,end:t.offset+t.value.length,items:r}}e.contextHint=t;function n(e,t){const n=t.getTokens();return n.filter((t=>t.value.indexOf(e.value)===0&&t.value!==e.value))}})(P||(P={}));const L="CompletionProvider:kernel";class R{constructor(){this.identifier=L;this.rank=550;this.renderer=null}async isApplicable(e){var t;const n=(t=e.session)===null||t===void 0?void 0:t.kernel;if(!n){return false}return true}async fetch(e,t){var n;const i=(n=t.session)===null||n===void 0?void 0:n.kernel;if(!i){throw new Error("No kernel for completion request.")}const s={code:e.text,cursor_pos:e.offset};const o=await i.requestComplete(s);const r=o.content;if(r.status!=="ok"){throw new Error("Completion fetch failed to return successfully.")}const a=new Array;const l=r.metadata._jupyter_types_experimental;r.matches.forEach(((e,t)=>{if(l&&l[t]){a.push({label:e,type:l[t].type,insertText:l[t].text})}else{a.push({label:e})}}));return{start:r.cursor_start,end:r.cursor_end,items:a}}async resolve(e,t,n){const{editor:i,session:o}=t;if(o&&i){let t=i.model.sharedModel.getSource();const r=i.getCursorPosition();let a=s.Text.jsIndexToCharIndex(i.getOffsetAt(r),t);const l=o.kernel;if(!t||!l){return Promise.resolve(e)}if(n){const{start:e,value:i}=n;t=t.substring(0,e)+i;a=a+i.length}const d={code:t,cursor_pos:a,detail_level:0};const c=await l.requestInspect(d);const h=c.content;if(h.status!=="ok"||!h.found){return e}e.documentation=h.data["text/plain"];return e}return e}shouldShowContinuousHint(e,t){const n=t.sourceChange;if(n==null){return true}if(n.some((e=>e.delete!=null))){return false}return n.some((t=>t.insert!=null&&(t.insert==="."||!e&&t.insert.trim().length>0)))}}var N=n(22819);var O=n(71674);const B="jp-GhostText-lineSpacer";const F="jp-GhostText-letterSpacer";const z="jp-GhostText";const H="jp-GhostText-streamedToken";const W="jp-GhostText-streamingIndicator";const V="jp-GhostText-errorIndicator";const U="jp-GhostText-hiddenLines";class q{constructor(e){this.options=e}placeGhost(e,t){const n=[Y.addMark.of(t)];if(!e.state.field(Y.markField,false)){n.push(O.StateEffect.appendConfig.of([Y.markField]));n.push(O.StateEffect.appendConfig.of([N.EditorView.domEventHandlers({blur:t=>{if(this.options.onBlur(t)===false){return true}const n=[Y.removeMark.of(null)];setTimeout((()=>{e.dispatch({effects:n})}),0)}})]))}e.dispatch({effects:n})}clearGhosts(e){const t=[Y.removeMark.of(null)];e.dispatch({effects:t})}}q.streamingAnimation="uncover";q.spacerRemovalDelay=700;q.spacerRemovalDuration=300;class $ extends N.WidgetType{constructor(e){super();this.options=e;this.isSpacer=false;this._clearErrorTimeout=null}eq(e){return e.content==this.content&&e.options.streaming===this.options.streaming&&e.options.error===this.options.error}get lineBreaks(){return(this.content.match(/\n/g)||"").length}updateDOM(e,t){this._updateDOM(e);return true}get content(){return this.options.content}toDOM(){let e=document.createElement("span");if(this.options.onPointerOver){e.addEventListener("pointerover",this.options.onPointerOver)}if(this.options.onPointerLeave){e.addEventListener("pointerleave",this.options.onPointerLeave)}e.classList.add(z);e.dataset.animation=q.streamingAnimation;e.dataset.providedBy=this.options.providerId;this._updateDOM(e);return e}_removeErrorAnimation(e){const t=e.querySelectorAll(`.${V}`);t.forEach((e=>{e.remove()}))}_mountErrorAnimation(e){const t=document.createElement("span");t.className=V;const n=this.options.error;if(n===null||n===void 0?void 0:n.message){t.title=n===null||n===void 0?void 0:n.message}const i=e.querySelectorAll(`.${W}, .${V}`);i.forEach((e=>{e.remove()}));e.appendChild(t)}_updateDOM(e){var t,n;if(this.options.error){this._mountErrorAnimation(e);this._clearErrorTimeout=setTimeout((()=>{this._removeErrorAnimation(e);this._clearErrorTimeout=null}),5e3);return}if(this._clearErrorTimeout!==null){clearTimeout(this._clearErrorTimeout);this._removeErrorAnimation(e);this._clearErrorTimeout=null}let i=this.content;let s="";let o=this.options.addedPart;if(o){if(o.startsWith("\n")){o=o.substring(1)}i=i.substring(0,i.length-o.length)}if(this.options.maxLines){const e=i.split("\n");i=e.slice(0,this.options.maxLines).join("\n");s=e.slice(this.options.maxLines).join("\n")}const r=Math.min((t=this.options.minLines)!==null&&t!==void 0?t:0,(n=this.options.maxLines)!==null&&n!==void 0?n:Infinity);const a=Math.max(0,r-i.split("\n").length+1);const l=new Array(a).fill("").join("\n");if(this.isSpacer){e.innerText=i+l;return}e.innerText=i;let d=e;if(s.length>0){const t=document.createElement("span");t.className="jp-GhostText-hiddenWrapper";e.appendChild(t);const n=document.createElement("span");n.className="jp-GhostText-expandHidden";n.innerText="⇓";const i=document.createElement("span");t.appendChild(n);i.className=U;i.innerText="\n"+s;t.appendChild(i);d=i}if(o){const e=document.createElement("span");e.className=H;e.innerText=o;d.appendChild(e)}if(this.options.streaming){const e=document.createElement("span");e.className=W;d.appendChild(e)}if(l.length>0){const e=document.createTextNode(l);d.appendChild(e)}}destroy(e){if(this.options.onPointerOver){e.removeEventListener("pointerover",this.options.onPointerOver)}if(this.options.onPointerLeave){e.removeEventListener("pointerleave",this.options.onPointerLeave)}super.destroy(e)}}class K extends ${constructor(){super(...arguments);this.isSpacer=true}}class J extends K{toDOM(){const e=super.toDOM();e.classList.add(B);e.style.animationDelay=q.spacerRemovalDelay+"ms";e.style.animationDuration=q.spacerRemovalDuration+"ms";return e}}class G extends K{get content(){return this.options.content[0]}toDOM(){const e=super.toDOM();e.classList.add(F);return e}}var Y;(function(e){let t;(function(e){e[e["Set"]=0]="Set";e[e["Remove"]=1]="Remove";e[e["FilterAndUpdate"]=2]="FilterAndUpdate"})(t||(t={}));e.addMark=O.StateEffect.define({map:(e,t)=>({...e,from:t.mapPos(e.from),to:t.mapPos(e.from+e.content.length)})});e.removeMark=O.StateEffect.define();function n(n){for(let i of n.effects){if(i.is(e.addMark)){return{action:t.Set,spec:i.value}}else if(i.is(e.removeMark)){return{action:t.Remove}}}if(n.docChanged||n.selection){return{action:t.FilterAndUpdate}}return null}function i(e,t){const n=N.Decoration.widget({widget:new $(e),side:1,ghostSpec:e});return n.range(Math.min(e.from,t.newDoc.length),Math.min(e.from,t.newDoc.length))}function s(e,t,n=1e3){if(e.content.length<2){return[]}const i={elapsed:false};setTimeout((()=>{i.elapsed=true}),n);const s=N.Decoration.widget({widget:new G(e),side:1,timeoutInfo:i});const o=N.Decoration.widget({widget:new J(e),side:1,timeoutInfo:i});return[s.range(Math.min(e.from,t.newDoc.length),Math.min(e.from,t.newDoc.length)),o.range(Math.min(e.from,t.newDoc.length),Math.min(e.from,t.newDoc.length))]}e.markField=O.StateField.define({create(){return N.Decoration.none},update(e,o){const r=n(o);e=e.update({filter:(e,t,n)=>{if(n.spec.widget instanceof K){return!n.spec.timeoutInfo.elapsed}return true}});if(!r){return e.map(o.changes)}switch(r.action){case t.Set:{const t=r.spec;const n=i(t,o);return e.update({add:[n],filter:(e,t,i)=>i===n.value})}case t.Remove:return e.update({filter:()=>false});case t.FilterAndUpdate:{let t=e.iter();while(t.value&&t.value.spec.widget instanceof K){t.next()}if(!t.value){return e.map(o.changes)}const n=t.value.spec.ghostSpec;const r={...n};let l=false;o.changes.iterChanges(((e,t,n,i,s)=>{if(l){return}if(e===t&&n!==i){for(let e=0;e0?"\n"+t:t;if(r.content.startsWith(n)){r.content=r.content.slice(n.length);r.from+=n.length}else{l=true;break}}}else if(n===i&&e!==t){l=true}else{l=true}}));const d=l?s(n,o):[i(r,o)];const c=d.map((e=>e.value));e=e.update({add:d,filter:(e,t,n)=>c.includes(n)});if(l){try{e=e.map(o.changes)}catch(a){console.warn(a);return N.Decoration.none}}return e}}},provide:e=>N.EditorView.decorations.from(e)})})(Y||(Y={}));const X="jp-InlineCompleter";const Q="jp-mod-inline-completer-active";const Z="jp-InlineCompleter-hover";const ee="jp-InlineCompleter-progressBar";class te extends w.Widget{constructor(e){var t,n;super({node:document.createElement("div")});this._clearHoverTimeout=null;this._current=0;this._editor=null;this._lastItem=null;this._model=null;this._providerWidget=new w.Widget;this._showShortcuts=te.defaultSettings.showShortcuts;this._showWidget=te.defaultSettings.showWidget;this._suggestionsCounter=new w.Widget;this._toolbar=new b.Toolbar;this.model=(t=e.model)!==null&&t!==void 0?t:null;this.editor=(n=e.editor)!==null&&n!==void 0?n:null;this.addClass(X);this.addClass("jp-ThemedContainer");this._ghostManager=new q({onBlur:this._onEditorBlur.bind(this)});this._trans=e.trans;const i=this.layout=new w.PanelLayout;i.addWidget(this._suggestionsCounter);i.addWidget(this.toolbar);i.addWidget(this._providerWidget);this._progressBar=document.createElement("div");this._progressBar.className=ee;this.node.appendChild(this._progressBar);this._updateShortcutsVisibility();this._updateDisplay();this.node.tabIndex=0}get toolbar(){return this._toolbar}get editor(){return this._editor}set editor(e){var t;(t=this.model)===null||t===void 0?void 0:t.reset();this._editor=e}get model(){return this._model}set model(e){if(!e&&!this._model||e===this._model){return}if(this._model){this._model.suggestionsChanged.disconnect(this._onModelSuggestionsChanged,this);this._model.filterTextChanged.disconnect(this._onModelFilterTextChanged,this);this._model.provisionProgress.disconnect(this._onProvisionProgress,this)}this._model=e;if(this._model){this._model.suggestionsChanged.connect(this._onModelSuggestionsChanged,this);this._model.filterTextChanged.connect(this._onModelFilterTextChanged,this);this._model.provisionProgress.connect(this._onProvisionProgress,this)}}cycle(e){var t,n;const i=(n=(t=this.model)===null||t===void 0?void 0:t.completions)===null||n===void 0?void 0:n.items;if(!i){return}if(e==="next"){const e=this._current+1;this._current=e===i.length?0:e}else{const e=this._current-1;this._current=e===-1?i.length-1:e}this._updateStreamTracking();this._render()}accept(){const e=this.model;const t=this.current;const n=this._editor;if(!n||!e||!t){return}const i=e.cursor;const s=t.insertText;const o=n.getOffsetAt(n.getCursorPosition());const r=n.getOffsetAt(i);const a=r;const l=o;const d={changes:{from:a,to:l,insert:s}};if(o<=l&&o>=a){d.selection={anchor:a+s.length}}n.editor.dispatch(d);e.reset();this.update()}get current(){var e;const t=(e=this.model)===null||e===void 0?void 0:e.completions;if(!t){return null}return t.items[this._current]}_updateStreamTracking(){if(this._lastItem){this._lastItem.stream.disconnect(this._onStream,this)}const e=this.current;if(e){e.stream.connect(this._onStream,this)}this._lastItem=e}_onStream(e,t){var n;const i=(n=this.model)===null||n===void 0?void 0:n.completions;if(!i||!i.items||i.items.length===0){return}if(this.isHidden){return}const s=i.items[this._current];this._setText(s)}configure(e){this._showWidget=e.showWidget;this._updateDisplay();if(e.showShortcuts!==this._showShortcuts){this._showShortcuts=e.showShortcuts;this._updateShortcutsVisibility()}q.streamingAnimation=e.streamingAnimation;q.spacerRemovalDelay=Math.max(0,e.editorResizeDelay-300);q.spacerRemovalDuration=Math.max(0,Math.min(300,e.editorResizeDelay-300));this._minLines=e.minLines;this._maxLines=e.maxLines;this._reserveSpaceForLongest=e.reserveSpaceForLongest;this._suppressIfTabCompleterActive=e.suppressIfTabCompleterActive}get suppressIfTabCompleterActive(){return this._suppressIfTabCompleterActive}get isActive(){var e;return!!((e=this.editor)===null||e===void 0?void 0:e.host.classList.contains(Q))}handleEvent(e){if(this.isHidden||!this._editor){return}switch(e.type){case"pointerdown":this._evtPointerdown(e);break;case"scroll":this._evtScroll(e);break;default:break}}onUpdateRequest(e){super.onUpdateRequest(e);const t=this._model;if(!t){return}let n=t.completions;if(!n||!n.items||n.items.length===0){if(!this.isHidden){this.hide()}return}if(this.isHidden){this.show();this._setGeometry()}}onAfterAttach(e){document.addEventListener("scroll",this,true);document.addEventListener("pointerdown",this,true)}onBeforeDetach(e){document.removeEventListener("scroll",this,true);document.removeEventListener("pointerdown",this,true)}_evtPointerdown(e){var t;if(this.isHidden||!this._editor){return}const n=e.target;if(this.node.contains(n)){return true}this.hide();(t=this.model)===null||t===void 0?void 0:t.reset()}_evtScroll(e){if(this.isHidden||!this._editor){return}const{node:t}=this;if(t.contains(e.target)){return}requestAnimationFrame((()=>{this._setGeometry()}))}_onEditorBlur(e){var t;if(this.node.contains(e.relatedTarget)){return false}(t=this._editor)===null||t===void 0?void 0:t.host.classList.remove(Q);this.hide()}_onModelSuggestionsChanged(e,t){var n;if(!this.isAttached){this.update();return}if(t.event==="set"){this._current=(n=t.indexMap.get(this._current))!==null&&n!==void 0?n:0}else if(t.event==="clear"){const e=this.editor;if(e){this._ghostManager.clearGhosts(e.editor);e.host.classList.remove(Q)}}this._updateStreamTracking();this.update();this._render()}_onModelFilterTextChanged(e,t){var n,i;const s=(n=this.model)===null||n===void 0?void 0:n.completions;if(!s||!s.items||s.items.length===0){return}this._current=(i=t.get(this._current))!==null&&i!==void 0?i:0;this._updateStreamTracking();setTimeout((()=>{this._render();this._setGeometry()}),0)}_onProvisionProgress(e,t){requestAnimationFrame((()=>{if(t.pendingProviders===0){this._progressBar.style.display="none"}else{this._progressBar.style.display="";this._progressBar.style.width=100*t.pendingProviders/t.totalProviders+"%"}}))}_render(){var e,t;const n=(e=this.model)===null||e===void 0?void 0:e.completions;if(!n||!n.items||n.items.length===0){return}const i=n.items[this._current];this._setText(i);if(this._showWidget==="never"){return}this._suggestionsCounter.node.innerText=this._trans.__("%1/%2",this._current+1,n.items.length);this._providerWidget.node.title=this._trans.__("Provider: %1",i.provider.name);const s=(t=i.provider.icon)!==null&&t!==void 0?t:b.kernelIcon;s.render(this._providerWidget.node)}_setText(e){var t,n,i;const s=e.insertText;const o=this._editor;const r=this._model;if(!r||!o){return}const a=o.editor;let l;if(this._reserveSpaceForLongest){const e=(i=(n=(t=this.model)===null||t===void 0?void 0:t.completions)===null||n===void 0?void 0:n.items)!==null&&i!==void 0?i:[];const s=Math.max(...e.map((e=>e.insertText.split("\n").length)));l=Math.max(this._minLines,s)}else{l=this._minLines}this._ghostManager.placeGhost(a,{from:o.getOffsetAt(r.cursor),content:s,providerId:e.provider.identifier,addedPart:e.lastStreamed,streaming:e.streaming,minLines:l,maxLines:this._maxLines,onPointerOver:this._onPointerOverGhost.bind(this),onPointerLeave:this._onPointerLeaveGhost.bind(this),error:e.error});o.host.classList.add(Q)}_onPointerOverGhost(){if(this._clearHoverTimeout!==null){window.clearTimeout(this._clearHoverTimeout);this._clearHoverTimeout=null}this.node.classList.add(Z)}_onPointerLeaveGhost(){this._clearHoverTimeout=window.setTimeout((()=>this.node.classList.remove(Z)),500)}_setGeometry(){const{node:e}=this;const t=this._model;const n=this._editor;if(!n||!t||!t.cursor){return}const i=n.host.closest(".jp-MainAreaWidget > .lm-Widget")||n.host;let s;try{const e=n.getCoordinateForPosition(t.cursor);if(!e){throw Error("No coordinates for cursor position")}s=e}catch(o){this.hide();return}b.HoverBox.setGeometry({anchor:s,host:i,maxHeight:40,minHeight:20,node:e,privilege:"forceAbove",outOfViewDisplay:{top:"stick-outside",bottom:"stick-inside",left:"stick-inside",right:"stick-outside"}})}_updateShortcutsVisibility(){this.node.dataset.showShortcuts=this._showShortcuts+""}_updateDisplay(){this.node.dataset.display=this._showWidget}}(function(e){e.defaultSettings={showWidget:"onHover",showShortcuts:true,streamingAnimation:"uncover",providers:{},minLines:2,maxLines:4,editorResizeDelay:1e3,reserveSpaceForLongest:false,suppressIfTabCompleterActive:true};class t{constructor(){this.suggestionsChanged=new r.Signal(this);this.filterTextChanged=new r.Signal(this);this.provisionProgress=new r.Signal(this);this._isDisposed=false;this._completions=null}setCompletions(e){var t,n;const i=new Map((n=(t=this._completions)===null||t===void 0?void 0:t.items)===null||n===void 0?void 0:n.map(((e,t)=>[e.insertText,t])));this._completions=e;const s=new Map(e.items.map(((e,t)=>[i.get(e.insertText),t])));this.suggestionsChanged.emit({event:"set",indexMap:s})}appendCompletions(e){if(!this._completions||!this._completions.items){console.warn("No completions to append to");return}this._completions.items.push(...e.items);this.suggestionsChanged.emit({event:"append"})}notifyProgress(e){this.provisionProgress.emit(e)}get cursor(){return this._cursor}set cursor(e){this._cursor=e}get completions(){return this._completions}reset(){this._completions=null;this.suggestionsChanged.emit({event:"clear"})}get isDisposed(){return this._isDisposed}handleTextChange(e){var t;const n=this._completions;if(!n||!n.items||n.items.length===0){return}const i=new Map(n.items.map(((e,t)=>[e,t])));for(let o of(t=e.sourceChange)!==null&&t!==void 0?t:[]){const e=o.insert;if(e){const t=n.items.filter((t=>{var n;const i=(n=t.filterText)!==null&&n!==void 0?n:t.insertText;if(!i.startsWith(e)){return false}t.filterText=i.substring(e.length);t.insertText=t.insertText.substring(e.length);return true}));if(t.length===0){this._completions=null}n.items=t}else{if(!o.retain){this._completions=null}}}const s=new Map(n.items.map(((e,t)=>[i.get(e),t])));this.filterTextChanged.emit(s)}handleSelectionChange(e){const t=this.cursor;if(!t){return}const{start:n,end:i}=e;if(n.column!==i.column||n.line!==i.line){this.reset()}if(n.line!==t.line||n.columnt.completer.showDocsPanel=e));this._showDoc=e}setSuppressIfInlineCompleterActive(e){this._panelHandlers.forEach((t=>t.completer.suppressIfInlineCompleterActive=e));this._suppressIfInlineCompleterActive=e}setContinuousHinting(e){this._panelHandlers.forEach((t=>t.autoCompletion=e));this._autoCompletion=e}registerProvider(e){const t=e.identifier;if(this._providers.has(t)){console.warn(`Completion provider with identifier ${t} is already registered`)}else{this._providers.set(t,e);this._panelHandlers.forEach(((e,t)=>{void this.updateCompleter(this._mostRecentContext.get(t))}))}}registerInlineProvider(e){const t=e.identifier;if(this._inlineProviders.has(t)){console.warn(`Completion provider with identifier ${t} is already registered`)}else{this._inlineProviders.set(t,e);this._panelHandlers.forEach(((e,t)=>{void this.updateCompleter(this._mostRecentContext.get(t))}))}}getProviders(){return this._providers}activateProvider(e){this._activeProviders=new Set([]);e.forEach((e=>{if(this._providers.has(e)){this._activeProviders.add(e)}}));if(this._activeProviders.size===0){this._activeProviders.add(L);this._activeProviders.add(D)}this._activeProvidersChanged.emit()}async updateCompleter(e){var t,n;const{widget:i,editor:s,sanitizer:o}=e;const r=i.id;const a=this._panelHandlers.get(r);const l=[...this._activeProviders][0];const d=this._providers.get(l);let c=(t=d===null||d===void 0?void 0:d.renderer)!==null&&t!==void 0?t:E.getDefaultRenderer(o);const h=d===null||d===void 0?void 0:d.modelFactory;let u;if(h){u=await h.call(d,e)}else{u=new g}this._mostRecentContext.set(i.id,e);const p={model:u,editor:s,renderer:c,sanitizer:o,showDoc:this._showDoc};if(!a){const t=await this._generateHandler(e,p);this._panelHandlers.set(i.id,t);t.completer.selected.connect(((e,t)=>this._selected.emit({insertText:t})));i.disposed.connect((e=>{this.disposeHandler(e.id,t);this._mostRecentContext.delete(r)}))}else{const t=a.completer;(n=t.model)===null||n===void 0?void 0:n.dispose();t.model=p.model;t.renderer=p.renderer;t.showDocsPanel=p.showDoc;t.suppressIfInlineCompleterActive=this._suppressIfInlineCompleterActive;a.autoCompletion=this._autoCompletion;if(s){a.editor=s;a.reconciliator=await this.generateReconciliator(e)}}}invoke(e){const t=this._panelHandlers.get(e);if(t){t.invoke()}}select(e){const t=this._panelHandlers.get(e);if(t){t.completer.selectActive()}}setInlineCompleterFactory(e){this._inlineCompleterFactory=e;this._panelHandlers.forEach(((e,t)=>{void this.updateCompleter(this._mostRecentContext.get(t))}));if(this.inline){return}this.inline={invoke:e=>{const t=this._panelHandlers.get(e);if(t&&t.inlineCompleter){t.invokeInline()}},isActive:e=>{const t=this._panelHandlers.get(e);if(t&&t.inlineCompleter){return t.inlineCompleter.isActive}return false},cycle:(e,t)=>{const n=this._panelHandlers.get(e);if(n&&n.inlineCompleter){n.inlineCompleter.cycle(t)}},accept:e=>{const t=this._panelHandlers.get(e);if(t&&t.inlineCompleter){t.inlineCompleter.accept()}},configure:e=>{this._inlineCompleterSettings=e;for(const[t,n]of this._inlineProviders.entries()){if(n.configure){n.configure(e.providers[t])}}this._panelHandlers.forEach(((t,n)=>{if(t.inlineCompleter){t.inlineCompleter.configure(e)}void this.updateCompleter(this._mostRecentContext.get(n))}))}}}get inlineProviders(){return[...this._inlineProviders.values()]}async generateReconciliator(e){const t=[];for(const[s,o]of Object.entries(this._inlineCompleterSettings.providers)){if(o.enabled===true){t.push(s)}}const n=[...this._inlineProviders.values()].filter((e=>t.includes(e.identifier)));const i=[];for(const s of this._activeProviders){const e=this._providers.get(s);if(e){i.push(e)}}return new M({context:e,providers:i,inlineProviders:n,inlineProvidersSettings:this._inlineCompleterSettings.providers,timeout:this._timeout})}disposeHandler(e,t){var n,i,s,o;(n=t.completer.model)===null||n===void 0?void 0:n.dispose();t.completer.dispose();(s=(i=t.inlineCompleter)===null||i===void 0?void 0:i.model)===null||s===void 0?void 0:s.dispose();(o=t.inlineCompleter)===null||o===void 0?void 0:o.dispose();t.dispose();this._panelHandlers.delete(e)}async _generateHandler(e,t){const n=new E(t);const i=this._inlineCompleterFactory?this._inlineCompleterFactory.factory({...t,model:new te.Model}):undefined;n.hide();w.Widget.attach(n,document.body);if(i){w.Widget.attach(i,document.body);i.hide();i.configure(this._inlineCompleterSettings)}const s=await this.generateReconciliator(e);const o=new u({completer:n,inlineCompleter:i,reconciliator:s});o.editor=e.editor;return o}}const ie='\n \n \n\n';const se='\n\n\n\n';const oe=new b.LabIcon({name:"completer:inline",svgstr:ie});const re=new b.LabIcon({name:"completer:widget",svgstr:se});var ae=n(30619);class le{constructor(e){this.options=e;this.identifier="@jupyterlab/inline-completer:history";this._maxSuggestions=100;const t=e.translator||ae.nullTranslator;this._trans=t.load("jupyterlab")}get name(){return this._trans.__("History")}get icon(){return b.historyIcon}get schema(){return{properties:{maxSuggestions:{title:this._trans.__("Maximum number of suggestions"),description:this._trans.__("The maximum number of suggestions to retrieve from history."),type:"number"}},default:{enabled:false,maxSuggestions:100}}}configure(e){var t;this._maxSuggestions=(t=e.maxSuggestions)!==null&&t!==void 0?t:100}async fetch(e,t,n){var i;const s=(i=t.session)===null||i===void 0?void 0:i.kernel;if(!s){throw new Error("No kernel for completion request.")}const o=e.text.slice(0,e.offset);const r=o.split("\n").slice(-1)[0];const a=e.text.slice(e.offset).split("\n")[0];let l;const d=[];if(r===""){l={output:false,raw:true,hist_access_type:"tail",n:this._maxSuggestions};const e=await s.requestHistory(l);if(e.content.status==="ok"){let t=e.content.history;const n=new Map;for(const e of t.reverse()){const t=e[2];n.set(t,(n.get(t)||0)+1)}const i=Array.from(n.entries());const s=i.sort(((e,t)=>{if(e[1]>t[1]){return-1}else if(e[1]{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(23359);var a=n(5893);var l=n(85072);var d=n.n(l);var c=n(97825);var h=n.n(c);var u=n(77659);var p=n.n(u);var m=n(55056);var g=n.n(m);var f=n(10540);var v=n.n(f);var _=n(41113);var b=n.n(_);var y=n(57331);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.A,w);const x=y.A&&y.A.locals?y.A.locals:undefined},70802:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>A});var i=n(94307);var s=n(14366);var o=n(54723);var r=n(29939);var a=n(9155);var l=n(42875);var d=n(74955);var c=n(23899);var h=n(44539);var u=n(84739);var p=n(30619);var m=n(26331);var g=n(34236);var f=n(5592);var v=n(90044);var _=n(1143);var b=n(94466);const y={id:"@jupyterlab/console-extension:foreign",description:"Add foreign handler of IOPub messages to the console.",requires:[a.IConsoleTracker,u.ISettingRegistry,p.ITranslator],optional:[s.ICommandPalette],activate:C,autoStart:true};const w=y;function C(e,t,n,i,s){var o;const r=i.load("jupyterlab");const{shell:l}=e;t.widgetAdded.connect(((e,t)=>{const i=t.console;const s=new a.ForeignHandler({sessionContext:i.sessionContext,parent:i});x.foreignHandlerProperty.set(i,s);void n.get("@jupyterlab/console-extension:tracker","showAllKernelActivity").then((({composite:e})=>{const t=e;s.enabled=t}));i.disposed.connect((()=>{s.dispose()}))}));const{commands:d}=e;const c=r.__("Console");const h="console:toggle-show-all-kernel-activity";function u(e){const n=t.currentWidget;const i=e["activate"]!==false;if(i&&n){l.activateById(n.id)}return n}d.addCommand(h,{label:e=>r.__("Show All Kernel Activity"),execute:e=>{const t=u(e);if(!t){return}const n=x.foreignHandlerProperty.get(t.console);if(n){n.enabled=!n.enabled}},isToggled:()=>{var e;return t.currentWidget!==null&&!!((e=x.foreignHandlerProperty.get(t.currentWidget.console))===null||e===void 0?void 0:e.enabled)},isEnabled:()=>t.currentWidget!==null&&t.currentWidget===l.currentWidget});const p=()=>{d.notifyCommandChanged(h)};t.currentChanged.connect(p);(o=l.currentChanged)===null||o===void 0?void 0:o.connect(p);if(s){s.addItem({command:h,category:c,args:{isPalette:true}})}}var x;(function(e){e.foreignHandlerProperty=new b.AttachedProperty({name:"foreignHandler",create:()=>undefined})})(x||(x={}));const S={id:"@jupyterlab/console-extension:cell-executor",description:"Provides the console cell executor.",autoStart:true,provides:a.IConsoleCellExecutor,activate:()=>Object.freeze({runCell:a.runCell})};var k;(function(e){e.autoClosingBrackets="console:toggle-autoclosing-brackets";e.create="console:create";e.clear="console:clear";e.runUnforced="console:run-unforced";e.runForced="console:run-forced";e.linebreak="console:linebreak";e.interrupt="console:interrupt-kernel";e.restart="console:restart-kernel";e.closeAndShutdown="console:close-and-shutdown";e.open="console:open";e.inject="console:inject";e.changeKernel="console:change-kernel";e.getKernel="console:get-kernel";e.interactionMode="console:interaction-mode";e.redo="console:redo";e.replaceSelection="console:replace-selection";e.shutdown="console:shutdown";e.undo="console:undo";e.invokeCompleter="completer:invoke-console";e.selectCompleter="completer:select-console"})(k||(k={}));const j={id:"@jupyterlab/console-extension:tracker",description:"Provides the console widget tracker.",provides:a.IConsoleTracker,requires:[a.ConsolePanel.IContentFactory,o.IEditorServices,a.IConsoleCellExecutor,h.IRenderMimeRegistry,u.ISettingRegistry],optional:[i.ILayoutRestorer,l.IDefaultFileBrowser,c.IMainMenu,s.ICommandPalette,d.ILauncher,i.ILabStatus,s.ISessionContextDialogs,m.IFormRendererRegistry,p.ITranslator,s.ISessionContextDialogs,s.IToolbarWidgetRegistry],activate:P,autoStart:true};const I={id:"@jupyterlab/console-extension:factory",description:"Provides the console widget content factory.",provides:a.ConsolePanel.IContentFactory,requires:[o.IEditorServices],autoStart:true,activate:(e,t)=>{const n=t.factoryService.newInlineEditor;return new a.ConsolePanel.ContentFactory({editorFactory:n})}};const E={id:"@jupyterlab/console-extension:kernel-status",description:"Adds the console to the kernel status indicator model.",autoStart:true,requires:[a.IConsoleTracker,s.IKernelStatusModel],activate:(e,t,n)=>{const i=e=>{let n=null;if(e&&t.has(e)){return e.sessionContext}return n};n.addSessionProvider(i)}};const T={id:"@jupyterlab/console-extension:cursor-position",description:"Adds the console to the code editor cursor position model.",autoStart:true,requires:[a.IConsoleTracker,o.IPositionModel],activate:(e,t,n)=>{let i=null;const s=async e=>{let s=null;if(e!==i){i===null||i===void 0?void 0:i.console.promptCellCreated.disconnect(n.update);i=null;if(e&&t.has(e)){e.console.promptCellCreated.connect(n.update);const t=e.console.promptCell;s=null;if(t){await t.ready;s=t.editor}i=e}}else if(e){const t=e.console.promptCell;s=null;if(t){await t.ready;s=t.editor}}return s};n.addEditorProvider(s)}};const M={id:"@jupyterlab/console-extension:completer",description:"Adds completion to the console.",autoStart:true,requires:[a.IConsoleTracker],optional:[r.ICompletionProviderManager,p.ITranslator,s.ISanitizer],activate:L};const D=[I,j,w,E,T,M,S];const A=D;async function P(e,t,n,i,o,r,l,d,c,h,u,b,y,w,C,x,S){var j;const I=C!==null&&C!==void 0?C:p.nullTranslator;const E=I.load("jupyterlab");const T=e.serviceManager;const{commands:M,shell:D}=e;const A=E.__("Console");const P=y!==null&&y!==void 0?y:new s.SessionContextDialogs({translator:I});const L="@jupyterlab/console-extension:tracker";const R=["top","bottom","left","right"];let N;if(S){const e="ConsolePanel";N=(0,s.createToolbarFactory)(S,r,e,L,I);if(x){S.addFactory(e,"kernelName",(e=>s.Toolbar.createKernelNameItem(e.sessionContext,x,I)))}S.addFactory(e,"kernelStatus",(e=>{const t=e.sessionContext;const n=s.Toolbar.createKernelStatusItem(t);return n}));const t=new _.Menu({commands:M});t.addClass("jp-CodeConsolePromptMenu");R.forEach((e=>{t.addItem({command:`console:prompt-to-${e}`})}));S.addFactory(e,"promptPosition",(e=>{const n=new m.ToolbarButton({tooltip:E.__("Change Console Prompt Position"),icon:m.dotsIcon,onClick:()=>{const e=n.node.getBoundingClientRect().right;const i=n.node.getBoundingClientRect().bottom;t.open(e,i,{horizontalAlignment:"right"})}});return n}))}const O=new s.WidgetTracker({namespace:"console"});if(l){void l.restore(O,{command:k.create,args:e=>{const{path:t,name:n,kernelPreference:i}=e.console.sessionContext;return{path:t,name:n,kernelPreference:{...i}}},name:e=>{var t;return(t=e.console.sessionContext.path)!==null&&t!==void 0?t:f.UUID.uuid4()},when:T.ready})}if(u){void T.ready.then((()=>{let e=null;const t=()=>{if(e){e.dispose();e=null}const t=T.kernelspecs.specs;if(!t){return}e=new v.DisposableSet;for(const n in t.kernelspecs){const i=n===t.default?0:Infinity;const s=t.kernelspecs[n];const o=s.resources["logo-svg"]||s.resources["logo-64x64"];e.add(u.add({command:k.create,args:{isLauncher:true,kernelPreference:{name:n}},category:E.__("Console"),rank:i,kernelIconUrl:o,metadata:{kernel:f.JSONExt.deepCopy(s.metadata||{})}}))}};t();T.kernelspecs.specsChanged.connect(t)}))}async function B(e){var l,d;await T.ready;const c=new a.ConsolePanel({manager:T,contentFactory:t,mimeTypeService:n.mimeTypeService,rendermime:o,sessionDialogs:P,executor:i,translator:I,setBusy:(l=b&&(()=>b.setBusy()))!==null&&l!==void 0?l:undefined,...e});if(N){(0,s.setToolbar)(c,N)}const h=(await r.get("@jupyterlab/console-extension:tracker","interactionMode")).composite;c.console.node.dataset.jpInteractionMode=h;await O.add(c);c.sessionContext.propertyChanged.connect((()=>{void O.save(c)}));if(e.subshell){c.sessionContext.kernelChanged.connect((async()=>{if(!c.sessionContext.isDisposed){c.sessionContext.ready.then((async()=>{if(c.sessionContext.session===null){console.error("Cannot create subshell without session")}else if(c.sessionContext.session.kernel===null){console.error("Cannot create subshell without kernel")}else{const{kernel:e}=c.sessionContext.session;await e.info;const t=await e.requestCreateSubshell({}).done;e.subshellId=t.content.subshell_id}})).catch((e=>{console.error("Failed to initialize SessionContext or create new subshell.",e)}))}}))}D.add(c,"main",{ref:e.ref,mode:e.insertMode,activate:e.activate!==false,type:(d=e.type)!==null&&d!==void 0?d:"Console"});return c}let F;let z;let H;let W;let V={};let U;let q;async function $(e){F=(await r.get(L,"clearCellsOnExecute")).composite;z=(await r.get(L,"clearCodeContentOnExecute")).composite;H=(await r.get(L,"hideCodeInput")).composite;W=(await r.get(L,"interactionMode")).composite;V=(await r.get(L,"promptCellConfig")).composite;U=(await r.get(L,"promptCellPosition")).composite;q=(await r.get(L,"showBanner")).composite;const t=e=>{var t,n;e.console.node.dataset.jpInteractionMode=W;e.console.editorConfig=V;(n=(t=e.console.promptCell)===null||t===void 0?void 0:t.editor)===null||n===void 0?void 0:n.setOptions(V);e.console.setConfig({clearCellsOnExecute:F,clearCodeContentOnExecute:z,hideCodeInput:H,promptCellPosition:U,showBanner:q})};if(e){t(e)}else{O.forEach(t)}}r.pluginChanged.connect(((e,t)=>{if(t===L){void $()}}));await $();if(w){const e=w.getRenderer("@jupyterlab/codemirror-extension:plugin.defaultConfig");if(e){w.addRenderer("@jupyterlab/console-extension:tracker.promptCellConfig",e)}}O.widgetAdded.connect(((e,t)=>{void $(t)}));M.addCommand(k.autoClosingBrackets,{execute:async e=>{var t;V.autoClosingBrackets=!!((t=e["force"])!==null&&t!==void 0?t:!V.autoClosingBrackets);await r.set(L,"promptCellConfig",V)},label:E.__("Auto Close Brackets for Code Console Prompt"),isToggled:()=>V.autoClosingBrackets});function K(){return O.currentWidget!==null&&O.currentWidget===D.currentWidget}M.addCommand(k.open,{label:E.__("Open a console for the provided `path`."),execute:e=>{const t=e["path"];const n=O.find((e=>{var n;return((n=e.console.sessionContext.session)===null||n===void 0?void 0:n.path)===t}));if(n){if(e.activate!==false){D.activateById(n.id)}return n}else{return T.ready.then((()=>{const n=(0,g.find)(T.sessions.running(),(e=>e.path===t));if(n){return B(e)}return Promise.reject(`No running kernel session for path: ${t}`)}))}}});M.addCommand(k.create,{label:e=>{var t,n,i,s;if(e["isPalette"]){return E.__("New Console")}else if(e["isLauncher"]&&e["kernelPreference"]){const o=e["kernelPreference"];return(s=(i=(n=(t=T.kernelspecs)===null||t===void 0?void 0:t.specs)===null||n===void 0?void 0:n.kernelspecs[o.name||""])===null||i===void 0?void 0:i.display_name)!==null&&s!==void 0?s:""}return E.__("Console")},icon:e=>e["isPalette"]?undefined:m.consoleIcon,execute:e=>{var t;const n=(t=e["basePath"]||e["cwd"]||(d===null||d===void 0?void 0:d.model.path))!==null&&t!==void 0?t:"";return B({basePath:n,...e})}});function J(e){var t;const n=e[s.SemanticCommand.WIDGET]?(t=O.find((t=>t.id===e[s.SemanticCommand.WIDGET])))!==null&&t!==void 0?t:null:O.currentWidget;const i=e["activate"]!==false;if(i&&n){D.activateById(n.id)}return n}const G={top:m.dockTopIcon,bottom:m.dockBottomIcon,right:m.dockRightIcon,left:m.dockLeftIcon};R.forEach((e=>{const t=`console:prompt-to-${e}`;M.addCommand(t,{execute:t=>{const n=J(t);if(!n){return}n.console.setConfig({promptCellPosition:e})},isEnabled:K,label:E.__(`Prompt to ${e}`),icon:t=>t["isPalette"]?undefined:G[e]});if(h){h.addItem({command:t,category:A,args:{isPalette:true}})}}));M.addCommand(k.undo,{execute:e=>{var t;const n=J(e);if(!n){return}const i=(t=n.console.promptCell)===null||t===void 0?void 0:t.editor;if(!i){return}i.undo()},isEnabled:e=>{var t,n,i;if(!K()){return false}const s=(i=(n=(t=J(e))===null||t===void 0?void 0:t.console)===null||n===void 0?void 0:n.promptCell)===null||i===void 0?void 0:i.editor;if(!s){return false}return s.model.sharedModel.canUndo()},icon:m.undoIcon.bindprops({stylesheet:"menuItem"}),label:E.__("Undo")});M.addCommand(k.redo,{execute:e=>{var t;const n=J(e);if(!n){return}const i=(t=n.console.promptCell)===null||t===void 0?void 0:t.editor;if(!i){return}i.redo()},isEnabled:e=>{var t,n,i;if(!K()){return false}const s=(i=(n=(t=J(e))===null||t===void 0?void 0:t.console)===null||n===void 0?void 0:n.promptCell)===null||i===void 0?void 0:i.editor;if(!s){return false}return s.model.sharedModel.canRedo()},icon:m.redoIcon.bindprops({stylesheet:"menuItem"}),label:E.__("Redo")});M.addCommand(k.clear,{label:E.__("Clear Console Cells"),icon:e=>e.toolbar?m.clearIcon:undefined,execute:e=>{const t=J(e);if(!t){return}t.console.clear()},isEnabled:K});M.addCommand(k.runUnforced,{label:E.__("Run Cell (unforced)"),icon:e=>e.toolbar?m.runIcon:undefined,execute:e=>{const t=J(e);if(!t){return}return t.console.execute()},isEnabled:K});M.addCommand(k.runForced,{label:E.__("Run Cell (forced)"),icon:e=>e.toolbar?m.runIcon:undefined,execute:e=>{const t=J(e);if(!t){return}return t.console.execute(true)},isEnabled:K});M.addCommand(k.linebreak,{label:E.__("Insert Line Break"),execute:e=>{const t=J(e);if(!t){return}t.console.insertLinebreak()},isEnabled:K});M.addCommand(k.replaceSelection,{label:E.__("Replace Selection in Console"),execute:e=>{const t=J(e);if(!t){return}const n=e["text"]||"";t.console.replaceSelection(n)},isEnabled:K});M.addCommand(k.interrupt,{label:E.__("Interrupt Kernel"),execute:e=>{var t;const n=J(e);if(!n){return}const i=(t=n.console.sessionContext.session)===null||t===void 0?void 0:t.kernel;if(i){return i.interrupt()}},isEnabled:K});M.addCommand(k.restart,{label:E.__("Restart Kernel…"),icon:e=>e.toolbar?m.refreshIcon:undefined,execute:e=>{const t=J(e);if(!t){return}return P.restart(t.console.sessionContext)},isEnabled:K});M.addCommand(k.shutdown,{label:E.__("Shut Down"),execute:e=>{const t=J(e);if(!t){return}return t.console.sessionContext.shutdown()}});M.addCommand(k.closeAndShutdown,{label:E.__("Close and Shut Down…"),execute:e=>{const t=J(e);if(!t){return}return(0,s.showDialog)({title:E.__("Shut down the console?"),body:E.__('Are you sure you want to close "%1"?',t.title.label),buttons:[s.Dialog.cancelButton({ariaLabel:E.__("Cancel console Shut Down")}),s.Dialog.warnButton({ariaLabel:E.__("Confirm console Shut Down")})]}).then((e=>{if(e.button.accept){return M.execute(k.shutdown,{activate:false}).then((()=>{t.dispose();return true}))}else{return false}}))},isEnabled:K});M.addCommand(k.inject,{label:E.__("Inject some code in a console."),execute:e=>{const t=e["path"];O.find((n=>{var i;if(((i=n.console.sessionContext.session)===null||i===void 0?void 0:i.path)===t){if(e["activate"]!==false){D.activateById(n.id)}void n.console.inject(e["code"],e["metadata"]);return true}return false}))},isEnabled:K});M.addCommand(k.changeKernel,{label:E.__("Change Kernel…"),execute:e=>{const t=J(e);if(!t){return}return P.selectKernel(t.console.sessionContext)},isEnabled:K});M.addCommand(k.getKernel,{label:E.__("Get Kernel"),execute:e=>{var t;const n=J({activate:false,...e});if(!n){return}return(t=n.sessionContext.session)===null||t===void 0?void 0:t.kernel},isEnabled:K});const Y=[k.create];const X=()=>{Object.values(k).filter((e=>!Y.includes(e))).forEach((t=>e.commands.notifyCommandChanged(t)))};O.currentChanged.connect(X);(j=D.currentChanged)===null||j===void 0?void 0:j.connect(X);if(h){[k.create,k.linebreak,k.clear,k.runUnforced,k.runForced,k.restart,k.interrupt,k.changeKernel,k.closeAndShutdown].forEach((e=>{h.addItem({command:e,category:A,args:{isPalette:true}})}))}if(c){c.fileMenu.closeAndCleaners.add({id:k.closeAndShutdown,isEnabled:K});c.kernelMenu.kernelUsers.changeKernel.add({id:k.changeKernel,isEnabled:K});c.kernelMenu.kernelUsers.clearWidget.add({id:k.clear,isEnabled:K});c.kernelMenu.kernelUsers.interruptKernel.add({id:k.interrupt,isEnabled:K});c.kernelMenu.kernelUsers.restartKernel.add({id:k.restart,isEnabled:K});c.kernelMenu.kernelUsers.shutdownKernel.add({id:k.shutdown,isEnabled:K});c.runMenu.codeRunners.run.add({id:k.runForced,isEnabled:K});c.editMenu.clearers.clearCurrent.add({id:k.clear,isEnabled:K});c.editMenu.undoers.redo.add({id:k.redo,isEnabled:K});c.editMenu.undoers.undo.add({id:k.undo,isEnabled:K});c.helpMenu.getKernel.add({id:k.getKernel,isEnabled:K})}const Q={notebook:E.__("Execute with Shift+Enter"),terminal:E.__("Execute with Enter")};M.addCommand(k.interactionMode,{label:e=>{var t;return(t=Q[e["interactionMode"]])!==null&&t!==void 0?t:"Set the console interaction mode."},execute:async e=>{const t="keyMap";try{await r.set(L,"interactionMode",e["interactionMode"])}catch(n){console.error(`Failed to set ${L}:${t} - ${n.message}`)}},isToggled:e=>e["interactionMode"]===W});return O}function L(e,t,n,i,o){if(!n){return}const r=(i!==null&&i!==void 0?i:p.nullTranslator).load("jupyterlab");const a=o!==null&&o!==void 0?o:new s.Sanitizer;e.commands.addCommand(k.invokeCompleter,{label:r.__("Display the completion helper."),execute:()=>{const e=t.currentWidget&&t.currentWidget.id;if(e){return n.invoke(e)}}});e.commands.addCommand(k.selectCompleter,{label:r.__("Select the completion suggestion."),execute:()=>{const e=t.currentWidget&&t.currentWidget.id;if(e){return n.select(e)}}});e.commands.addKeyBinding({command:k.selectCompleter,keys:["Enter"],selector:".jp-ConsolePanel .jp-mod-completer-active"});const l=async(e,t)=>{var i,s;const o={editor:(s=(i=t.console.promptCell)===null||i===void 0?void 0:i.editor)!==null&&s!==void 0?s:null,session:t.console.sessionContext.session,widget:t};await n.updateCompleter(o);t.console.promptCellCreated.connect(((e,i)=>{const s={editor:i.editor,session:e.sessionContext.session,widget:t,sanitzer:a};n.updateCompleter(s).catch(console.error)}));t.console.sessionContext.sessionChanged.connect((()=>{var e,i;const s={editor:(i=(e=t.console.promptCell)===null||e===void 0?void 0:e.editor)!==null&&i!==void 0?i:null,session:t.console.sessionContext.session,widget:t,sanitizer:a};n.updateCompleter(s).catch(console.error)}))};t.widgetAdded.connect(l);n.activeProvidersChanged.connect((()=>{t.forEach((e=>{l(undefined,e).catch((e=>console.error(e)))}))}))}},99382:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(17325);var a=n(5893);var l=n(3579);var d=n(36060);var c=n(39063);var h=n(50286);var u=n(75797);var p=n(67996);var m=n(85072);var g=n.n(m);var f=n(97825);var v=n.n(f);var _=n(77659);var b=n.n(_);var y=n(55056);var w=n.n(y);var C=n(10540);var x=n.n(C);var S=n(41113);var k=n.n(S);var j=n(19961);var I={};I.styleTagTransform=k();I.setAttributes=w();I.insert=b().bind(null,"head");I.domAPI=v();I.insertStyleElement=x();var E=g()(j.A,I);const T=j.A&&j.A.locals?j.A.locals:undefined},57958:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CodeConsole:()=>A,ConsoleHistory:()=>l,ConsolePanel:()=>R,ForeignHandler:()=>a,IConsoleCellExecutor:()=>B,IConsoleTracker:()=>O,runCell:()=>s});var i=n(5061);async function s({cell:e,onCellExecuted:t,sessionContext:n}){const s=n=>{if(n&&n.content.status==="ok"){const i=n.content;if(i.payload&&i.payload.length){const t=i.payload.filter((e=>e.source==="set_next_input"))[0];if(t){const n=t.text;e.model.sharedModel.setSource(n)}}t({cell:e,executionDate:new Date,success:true});return true}else if(n&&n.content.status==="error"){const i=n.content.ename;const s=n.content.evalue;t({cell:e,executionDate:new Date,success:false,error:new Error(`KernelReplyNotOK: ${i} ${s}`)});return false}t({cell:e,executionDate:new Date,success:false});return false};const o=n=>{t({cell:e,executionDate:new Date,success:false,error:new Error(n)});return false};return i.CodeCell.execute(e,n).then(s,o)}var o=n(2336);const r="jp-CodeConsole-foreignCell";class a{constructor(e){this._enabled=false;this._isDisposed=false;this.sessionContext=e.sessionContext;this.sessionContext.iopubMessage.connect(this.onIOPubMessage,this);this._parent=e.parent}get enabled(){return this._enabled}set enabled(e){this._enabled=e}get parent(){return this._parent}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;o.Signal.clearData(this)}onIOPubMessage(e,t){var n;if(!this._enabled){return false}const i=(n=this.sessionContext.session)===null||n===void 0?void 0:n.kernel;if(!i){return false}const s=this._parent;const o=t.parent_header.session;if(o===i.clientId){return false}const r=t.header.msg_type;const a=t.parent_header;const l=a.msg_id;let d;switch(r){case"execute_input":{const e=t;d=this._newCell(l);const n=d.model;n.executionCount=e.content.execution_count;n.sharedModel.setSource(e.content.code);n.trusted=true;s.update();return true}case"execute_result":case"display_data":case"stream":case"error":{d=this._parent.getCell(l);if(!d){return false}const e={...t.content,output_type:r};d.model.outputs.add(e);s.update();return true}case"clear_output":{const e=t.content.wait;d=this._parent.getCell(l);if(d){d.model.outputs.clear(e)}return true}default:return false}}_newCell(e){const t=this.parent.createCodeCell();t.addClass(r);this._parent.addCell(t,e);return t}}class l{constructor(e){this._cursor=0;this._hasSession=false;this._history=[];this._placeholder="";this._setByHistory=false;this._isDisposed=false;this._editor=null;this._filtered=[];const{sessionContext:t}=e;if(t){this.sessionContext=t;void this._handleKernel();this.sessionContext.kernelChanged.connect(this._handleKernel,this)}}get editor(){return this._editor}set editor(e){if(this._editor===e){return}const t=this._editor;if(t){t.edgeRequested.disconnect(this.onEdgeRequest,this);t.model.sharedModel.changed.disconnect(this.onTextChange,this)}this._editor=e;if(e){e.edgeRequested.connect(this.onEdgeRequest,this);e.model.sharedModel.changed.connect(this.onTextChange,this)}}get placeholder(){return this._placeholder}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed=true;this._history.length=0;o.Signal.clearData(this)}back(e){if(!this._hasSession){this._hasSession=true;this._placeholder=e;this.setFilter(e);this._cursor=this._filtered.length-1}--this._cursor;this._cursor=Math.max(0,this._cursor);const t=this._filtered[this._cursor];return Promise.resolve(t)}forward(e){if(!this._hasSession){this._hasSession=true;this._placeholder=e;this.setFilter(e);this._cursor=this._filtered.length}++this._cursor;this._cursor=Math.min(this._filtered.length-1,this._cursor);const t=this._filtered[this._cursor];return Promise.resolve(t)}push(e){if(e&&e!==this._history[this._history.length-1]){this._history.push(e)}this.reset()}reset(){this._cursor=this._history.length;this._hasSession=false;this._placeholder=""}onHistory(e){this._history.length=0;let t="";let n="";if(e.content.status==="ok"){for(let i=0;i{if(this.isDisposed||!t){return}if(n.getSource()===t){return}this._setByHistory=true;n.setSource(t);let i=0;i=t.indexOf("\n");if(i<0){i=t.length}e.setCursorPosition({line:0,column:i})}))}else{void this.forward(i).then((t=>{if(this.isDisposed){return}const i=t||this.placeholder;if(n.getSource()===i){return}this._setByHistory=true;n.setSource(i);const s=e.getPositionAt(i.length);if(s){e.setCursorPosition(s)}}))}}async _handleKernel(){var e,t;const n=(t=(e=this.sessionContext)===null||e===void 0?void 0:e.session)===null||t===void 0?void 0:t.kernel;if(!n){this._history.length=0;return}return n.requestHistory(d.initialRequest).then((e=>{this.onHistory(e)}))}setFilter(e=""){this._filtered.length=0;let t="";let n="";for(let i=0;i0){e.get(0).dispose()}}createCodeCell(){const e=this.contentFactory;const t=this._createCodeCellOptions();const n=e.createCodeCell(t);n.readOnly=true;n.model.mimeType=this._mimetype;return n}dispose(){if(this.isDisposed){return}this._msgIdCells=null;this._msgIds=null;this._history.dispose();super.dispose()}async execute(e=false,t=T){var n,i;if(((i=(n=this.sessionContext.session)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.status)==="dead"){return}const s=this.promptCell;if(!s){throw new Error("Cannot execute without a prompt cell")}s.model.trusted=true;if(e){this.newPromptCell();await this._execute(s);return}const o=await this._shouldExecute(t);if(this.isDisposed){return}if(o){this.newPromptCell();this.promptCell.editor.focus();await this._execute(s)}else{s.editor.newIndentedLine()}}getCell(e){return this._msgIds.get(e)}inject(e,t={}){const n=this.createCodeCell();n.model.sharedModel.setSource(e);for(const i of Object.keys(t)){n.model.setMetadata(i,t[i])}this.addCell(n);return this._execute(n)}insertLinebreak(){const e=this.promptCell;if(!e){return}e.editor.newIndentedLine()}replaceSelection(e){var t,n;const i=this.promptCell;if(!i){return}(n=(t=i.editor).replaceSelection)===null||n===void 0?void 0:n.call(t,e)}setConfig(e){const{clearCellsOnExecute:t,clearCodeContentOnExecute:n,hideCodeInput:i,promptCellPosition:s,showBanner:o}=e;this._config={clearCellsOnExecute:t!==null&&t!==void 0?t:this._config.clearCellsOnExecute,clearCodeContentOnExecute:n!==null&&n!==void 0?n:this._config.clearCodeContentOnExecute,hideCodeInput:i!==null&&i!==void 0?i:this._config.hideCodeInput,promptCellPosition:s!==null&&s!==void 0?s:this._config.promptCellPosition,showBanner:o!==null&&o!==void 0?o:this._config.showBanner};this._updateLayout()}serialize(){const e=[];for(const t of this._cells){const n=t.model;if((0,i.isCodeCellModel)(n)){e.push(n.toJSON())}}if(this.promptCell){e.push(this.promptCell.model.toJSON())}return e}_evtMouseDown(e){const{button:t,shiftKey:n}=e;if(!(t===0||t===2)||n&&t===2){return}let s=e.target;const o=e=>e.classList.contains(x);let r=i.CellDragUtils.findCell(s,this._cells,o);if(r===-1){s=document.elementFromPoint(e.clientX,e.clientY);r=i.CellDragUtils.findCell(s,this._cells,o)}if(r===-1){return}const a=this._cells.get(r);const l=i.CellDragUtils.detectTargetArea(a,e.target);if(l==="prompt"){this._dragData={pressX:e.clientX,pressY:e.clientY,index:r};this._focusedCell=a;document.addEventListener("mouseup",this,true);document.addEventListener("mousemove",this,true);e.preventDefault()}}_evtMouseMove(e){const t=this._dragData;if(t&&i.CellDragUtils.shouldStartDrag(t.pressX,t.pressY,e.clientX,e.clientY)){void this._startDrag(t.index,e.clientX,e.clientY)}}_startDrag(e,t,n){const s=this._focusedCell.model;const o=[s.toJSON()];const r=i.CellDragUtils.createCellDragImage(this._focusedCell,o);this._drag=new b.Drag({mimeData:new g.MimeData,dragImage:r,proposedAction:"copy",supportedActions:"copy",source:this});this._drag.mimeData.setData(M,o);const a=s.sharedModel.getSource();this._drag.mimeData.setData("text/plain",a);this._focusedCell=null;document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true);return this._drag.start(t,n).then((()=>{if(this.isDisposed){return}this._drag=null;this._dragData=null}))}handleEvent(e){switch(e.type){case"keydown":this._evtKeyDown(e);break;case"mousedown":this._evtMouseDown(e);break;case"mousemove":this._evtMouseMove(e);break;case"mouseup":this._evtMouseUp(e);break;case"resize":this._splitPanel.fit();break;case"focusin":this._evtFocusIn(e);break;case"focusout":this._evtFocusOut(e);break;default:break}}onAfterAttach(e){const t=this.node;t.addEventListener("keydown",this,true);t.addEventListener("click",this);t.addEventListener("mousedown",this);t.addEventListener("focusin",this);t.addEventListener("focusout",this);if(!this.promptCell){this.newPromptCell()}else{this.promptCell.editor.focus();this.update()}}onBeforeDetach(e){const t=this.node;t.removeEventListener("keydown",this,true);t.removeEventListener("click",this);t.removeEventListener("focusin",this);t.removeEventListener("focusout",this)}onActivateRequest(e){const t=this.promptCell&&this.promptCell.editor;if(t){t.focus()}this.update()}newPromptCell(){var e,t,n,i,s;let r=this.promptCell;const a=this._input;const l=(e=r===null||r===void 0?void 0:r.model.sharedModel.getSource())!==null&&e!==void 0?e:"";const d=(t=r===null||r===void 0?void 0:r.editor)===null||t===void 0?void 0:t.getCursorPosition();if(r){r.readOnly=true;r.removeClass(k);const e=r;requestIdleCallback((()=>{o.Signal.clearData(e.editor)}));(n=r.editor)===null||n===void 0?void 0:n.blur();const t=a.widgets[0];t.parent=null;if(this._config.hideCodeInput){(i=r.inputArea)===null||i===void 0?void 0:i.setHidden(true)}this.addCell(r)}const c=this.contentFactory;const h=this._createCodeCellOptions();r=c.createCodeCell(h);r.model.mimeType=this._mimetype;r.addClass(k);this._input.addWidget(r);this._history.editor=r.editor;if(!this._config.clearCodeContentOnExecute){r.model.sharedModel.setSource(l);if(d){(s=r.editor)===null||s===void 0?void 0:s.setCursorPosition(d)}}this._promptCellCreated.emit(r)}onUpdateRequest(e){P.scrollToBottom(this._content.node)}_evtKeyDown(e){const t=this.promptCell&&this.promptCell.editor;if(!t){return}if(e.keyCode===13&&!t.hasFocus()){e.preventDefault();t.focus()}else if(e.keyCode===27&&t.hasFocus()){e.preventDefault();e.stopPropagation();this.node.focus()}}_evtMouseUp(e){if(this.promptCell&&this.promptCell.node.contains(e.target)){this.promptCell.editor.focus()}}_evtFocusIn(e){this._updateReadWrite()}_evtFocusOut(e){this._updateReadWrite()}async _execute(e){const t=e.model.sharedModel.getSource();this._history.push(t);if(t==="clear"||t==="%clear"){this.clear();return Promise.resolve(void 0)}e.model.contentChanged.connect(this.update,this);const n={cell:e,sessionContext:this.sessionContext,onCellExecuted:e=>{this._executed.emit(e.executionDate);if(e.error){for(const e of this._cells){if(e.model.executionCount===null){e.model.executionState="idle"}}}}};try{await this._executor.runCell(n)}finally{if(!this.isDisposed){e.model.contentChanged.disconnect(this.update,this);this.update()}}}_handleInfo(e){if(e.status!=="ok"){if(this._banner){this._banner.model.sharedModel.setSource("Error in getting kernel banner")}return}if(this._banner){this._banner.model.sharedModel.setSource(e.banner)}const t=e.language_info;this._mimetype=this._mimeTypeService.getMimeTypeByLanguage(t);if(this.promptCell){this.promptCell.model.mimeType=this._mimetype}}_createCodeCellOptions(){const e=this.contentFactory;const t=this.modelFactory;const n=t.createCodeCell({});const i=this.rendermime;const s=this.editorConfig;return{model:n,rendermime:i,contentFactory:e,editorConfig:s,placeholder:false,translator:this._translator}}_onCellDisposed(e,t){if(!this.isDisposed){this._cells.removeValue(e);const t=this._msgIdCells.get(e);if(t){this._msgIdCells.delete(e);this._msgIds.delete(t)}}}_shouldExecute(e){const t=this.promptCell;if(!t){return Promise.resolve(false)}const n=t.model;const i=n.sharedModel.getSource();return new Promise(((t,n)=>{var s;const o=setTimeout((()=>{t(true)}),e);const r=(s=this.sessionContext.session)===null||s===void 0?void 0:s.kernel;if(!r){t(false);return}r.requestIsComplete({code:i}).then((e=>{clearTimeout(o);if(this.isDisposed){t(false)}if(e.content.status!=="incomplete"){t(true);return}t(false)})).catch((()=>{t(true)}))}))}async _onKernelChanged(){var e;this.clear();if(this._banner){this._banner.dispose();this._banner=null}if(this._config.showBanner){this.addBanner()}if((e=this.sessionContext.session)===null||e===void 0?void 0:e.kernel){this._handleInfo(await this.sessionContext.session.kernel.info)}}async _onKernelStatusChanged(){var e;const t=(e=this.sessionContext.session)===null||e===void 0?void 0:e.kernel;if((t===null||t===void 0?void 0:t.status)==="restarting"){if(this._config.showBanner){this.addBanner()}this._handleInfo(await(t===null||t===void 0?void 0:t.info))}}_updateReadWrite(){const e=c.DOMUtils.hasActiveEditableElement(this.node);this.node.classList.toggle(E,e)}_updateLayout(){const{promptCellPosition:e="bottom"}=this._config;this._splitPanel.orientation=["left","right"].includes(e)?"horizontal":"vertical";f.SplitPanel.setStretch(this._content,1);f.SplitPanel.setStretch(this._input,1);if(e==="bottom"||e==="right"){this._splitPanel.insertWidget(0,this._content);this._splitPanel.insertWidget(1,this._input)}else{this._splitPanel.insertWidget(0,this._input);this._splitPanel.insertWidget(1,this._content)}let t=[1,1];if(e==="top"){t=[1,100]}else if(e==="bottom"){t=[100,1]}this._splitPanel.setRelativeSizes(t)}}(function(e){e.defaultEditorConfig={codeFolding:false,lineNumbers:false};class t extends i.Cell.ContentFactory{createCodeCell(e){return new i.CodeCell(e).initializeState()}createRawCell(e){return new i.RawCell(e).initializeState()}}e.ContentFactory=t;class n{constructor(e={}){this.codeCellContentFactory=e.codeCellContentFactory||i.CodeCellModel.defaultContentFactory}createCodeCell(e={}){if(!e.contentFactory){e.contentFactory=this.codeCellContentFactory}return new i.CodeCellModel(e)}createRawCell(e){return new i.RawCellModel(e)}}e.ModelFactory=n;e.defaultModelFactory=new n({})})(A||(A={}));var P;(function(e){function t(e){e.scrollTop=e.scrollHeight-e.clientHeight}e.scrollToBottom=t})(P||(P={}));const L="jp-ConsolePanel";class R extends c.MainAreaWidget{constructor(e){super({content:new f.Panel});this._executed=null;this._connected=null;this.addClass(L);let{executor:t,rendermime:n,mimeTypeService:i,path:s,basePath:o,name:r,manager:a,modelFactory:l,sessionContext:d,translator:v}=e;this.translator=v!==null&&v!==void 0?v:p.nullTranslator;const _=this.translator.load("jupyterlab");const b=this.contentFactory=e.contentFactory;const y=N.count++;if(!s){s=h.PathExt.join(o||"",`console-${y}-${g.UUID.uuid4()}`)}d=this._sessionContext=d!==null&&d!==void 0?d:new c.SessionContext({kernelManager:a.kernels,sessionManager:a.sessions,specsManager:a.kernelspecs,path:a.contents.localPath(s),name:r||_.__("Console %1",y),type:"console",kernelPreference:e.kernelPreference,setBusy:e.setBusy});const w=new u.RenderMimeRegistry.UrlResolver({path:s,contents:a.contents});n=n.clone({resolver:w});this.console=b.createConsole({executor:t,rendermime:n,sessionContext:d,mimeTypeService:i,contentFactory:b,modelFactory:l,translator:v});this.content.addWidget(this.console);void d.initialize().then((async t=>{var n;if(t){await((n=e.sessionDialogs)!==null&&n!==void 0?n:new c.SessionContextDialogs({translator:v})).selectKernel(d)}this._connected=new Date;this._updateTitlePanel()}));this.console.executed.connect(this._onExecuted,this);this._updateTitlePanel();d.kernelChanged.connect(this._updateTitlePanel,this);d.propertyChanged.connect(this._updateTitlePanel,this);this.title.icon=m.consoleIcon;this.title.closable=true;this.id=`console-${y}`}get sessionContext(){return this._sessionContext}dispose(){this.sessionContext.dispose();this.console.dispose();super.dispose()}onActivateRequest(e){const t=this.console.promptCell;if(t){t.editor.focus()}}onCloseRequest(e){super.onCloseRequest(e);this.dispose()}_onExecuted(e,t){this._executed=t;this._updateTitlePanel()}_updateTitlePanel(){N.updateTitle(this,this._connected,this._executed,this.translator)}}(function(e){class t extends A.ContentFactory{createConsole(e){return new A(e)}}e.ContentFactory=t;e.IContentFactory=new g.Token("@jupyterlab/console:IContentFactory","A factory object that creates new code consoles. Use this if you want to create and host code consoles in your own UI elements.")})(R||(R={}));var N;(function(e){e.count=1;function t(e,t,n,i){i=i||p.nullTranslator;const s=i.load("jupyterlab");const o=e.console.sessionContext.session;if(o){let i=s.__("Name: %1\n",o.name)+s.__("Directory: %1\n",h.PathExt.dirname(o.path))+s.__("Kernel: %1",e.console.sessionContext.kernelDisplayName);if(t){i+=s.__("\nConnected: %1",h.Time.format(t.toISOString()))}if(n){i+=s.__("\nLast Execution: %1")}e.title.label=o.name;e.title.caption=i}else{e.title.label=s.__("Console");e.title.caption=""}}e.updateTitle=t})(N||(N={}));const O=new g.Token("@jupyterlab/console:IConsoleTracker",`A widget tracker for code consoles.\n Use this if you want to be able to iterate over and interact with code consoles\n created by the application.`);const B=new g.Token("@jupyterlab/console:IConsoleCellExecutor",`The console cell executor`)},50286:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(5893);var a=n(38457);var l=n(17325);var d=n(53377);var c=n(85072);var h=n.n(c);var u=n(97825);var p=n.n(u);var m=n(77659);var g=n.n(m);var f=n(55056);var v=n.n(f);var _=n(10540);var b=n.n(_);var y=n(41113);var w=n.n(y);var C=n(16513);var x={};x.styleTagTransform=w();x.setAttributes=v();x.insert=g().bind(null,"head");x.domAPI=p();x.insertStyleElement=b();var S=h()(C.A,x);const k=C.A&&C.A.locals?C.A.locals:undefined},75013:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ActivityMonitor=void 0;const i=n(2336);class s{constructor(e){this._timer=-1;this._timeout=-1;this._isDisposed=false;this._activityStopped=new i.Signal(this);e.signal.connect(this._onSignalFired,this);this._timeout=e.timeout||1e3}get activityStopped(){return this._activityStopped}get timeout(){return this._timeout}set timeout(e){this._timeout=e}get isDisposed(){return this._isDisposed}dispose(){if(this._isDisposed){return}this._isDisposed=true;i.Signal.clearData(this)}_onSignalFired(e,t){clearTimeout(this._timer);this._sender=e;this._args=t;this._timer=setTimeout((()=>{this._activityStopped.emit({sender:this._sender,args:this._args})}),this._timeout)}}t.ActivityMonitor=s},26376:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});s(n(75013),t);s(n(23106),t);s(n(24477),t);s(n(87484),t);s(n(92279),t);s(n(67169),t);s(n(97058),t);s(n(80121),t);s(n(9659),t);s(n(67881),t)},23106:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},24477:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.LruCache=void 0;const n=128;class i{constructor(e={}){this._map=new Map;this._maxSize=(e===null||e===void 0?void 0:e.maxSize)||n}get size(){return this._map.size}clear(){this._map.clear()}get(e){const t=this._map.get(e)||null;if(t!=null){this._map.delete(e);this._map.set(e,t)}return t}set(e,t){if(this._map.size>=this._maxSize){this._map.delete(this._map.keys().next().value)}this._map.set(e,t)}}t.LruCache=i},87484:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MarkdownCodeBlocks=void 0;var n;(function(e){e.CODE_BLOCK_MARKER="```";const t=[".markdown",".mdown",".mkdn",".md",".mkd",".mdwn",".mdtxt",".mdtext",".text",".txt",".Rmd"];class n{constructor(e){this.startLine=e;this.code="";this.endLine=-1}}e.MarkdownCodeBlock=n;function i(e){return t.indexOf(e)>-1}e.isMarkdown=i;function s(t){if(!t||t===""){return[]}const i=t.split("\n");const s=[];let o=null;for(let r=0;re===t||i&&e===i))}e.isDeferred=n;function i(t){const n=t.indexOf(":");let i="";if(n!==-1){i=t.slice(0,n)}return e.disabled.some((e=>e===t||i&&e===i))}e.isDisabled=i})(Extension=PageConfig.Extension||(PageConfig.Extension={}))})(PageConfig||(exports.PageConfig=PageConfig={}))},67169:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PathExt=void 0;const i=n(57975);var s;(function(e){function t(...e){const t=i.posix.join(...e);return t==="."?"":h(t)}e.join=t;function n(...e){const t=i.posix.join(...e);return t==="."?"":t}e.joinWithLeadingSlash=n;function s(e,t){return i.posix.basename(e,t)}e.basename=s;function o(e){const t=h(i.posix.dirname(e));return t==="."?"":t}e.dirname=o;function r(e){return i.posix.extname(e)}e.extname=r;function a(e){if(e===""){return""}return h(i.posix.normalize(e))}e.normalize=a;function l(...e){return h(i.posix.resolve(...e))}e.resolve=l;function d(e,t){return h(i.posix.relative(e,t))}e.relative=d;function c(e){if(e.length>0&&e.indexOf(".")!==0){e=`.${e}`}return e}e.normalizeExtension=c;function h(e){if(e.indexOf("/")===0){e=e.slice(1)}return e}e.removeSlash=h})(s||(t.PathExt=s={}))},97058:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.signalToPromise=s;const i=n(5592);function s(e,t){const n=new i.PromiseDelegate;function s(){e.disconnect(o)}function o(e,t){s();n.resolve([e,t])}e.connect(o);if((t!==null&&t!==void 0?t:0)>0){setTimeout((()=>{s();n.reject(`Signal not emitted within ${t} ms.`)}),t)}return n.promise}},80121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Text=void 0;var n;(function(e){const t="𝐚".length>1;function n(e,n){if(t){return e}let i=e;for(let t=0;t+1=55296&&e<=56319){const e=n.charCodeAt(t+1);if(e>=56320&&e<=57343){i--;t++}}}return i}e.jsIndexToCharIndex=n;function i(e,n){if(t){return e}let i=e;for(let t=0;t+1=55296&&e<=56319){const e=n.charCodeAt(t+1);if(e>=56320&&e<=57343){i++;t++}}}return i}e.charIndexToJsIndex=i;function s(e,t=false){return e.replace(/^(\w)|[\s-_:]+(\w)/g,(function(e,n,i){if(i){return i.toUpperCase()}else{return t?n.toUpperCase():n.toLowerCase()}}))}e.camelCase=s;function o(e){return(e||"").toLowerCase().split(" ").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ")}e.titleCase=o})(n||(t.Text=n={}))},9659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Time=void 0;const n=[{name:"years",milliseconds:365*24*60*60*1e3},{name:"months",milliseconds:30*24*60*60*1e3},{name:"days",milliseconds:24*60*60*1e3},{name:"hours",milliseconds:60*60*1e3},{name:"minutes",milliseconds:60*1e3},{name:"seconds",milliseconds:1e3}];var i;(function(e){function t(e,t="long"){const i=document.documentElement.lang||"en";const s=new Intl.RelativeTimeFormat(i,{numeric:"auto",style:t});const o=new Date(e).getTime()-Date.now();for(let r of n){const e=Math.ceil(o/r.milliseconds);if(e===0){continue}return s.format(e,r.name)}return s.format(0,"seconds")}e.formatHuman=t;function i(e){const t=document.documentElement.lang||"en";const n=new Intl.DateTimeFormat(t,{dateStyle:"short",timeStyle:"short"});return n.format(new Date(e))}e.format=i})(i||(t.Time=i={}))},67881:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.URLExt=void 0;const s=n(57975);const o=i(n(61160));var r;(function(e){function t(e){if(typeof document!=="undefined"&&document){const t=document.createElement("a");t.href=e;return t}return(0,o.default)(e)}e.parse=t;function n(e){return(0,o.default)(e).hostname}e.getHostName=n;function i(e){return e&&t(e).toString()}e.normalize=i;function r(...e){let t=(0,o.default)(e[0],{});const n=t.protocol===""&&t.slashes;if(n){t=(0,o.default)(e[0],"https:"+e[0])}const i=`${n?"":t.protocol}${t.slashes?"//":""}${t.auth}${t.auth?"@":""}${t.host}`;const r=s.posix.join(`${!!i&&t.pathname[0]!=="/"?"/":""}${t.pathname}`,...e.slice(1));return`${i}${r==="."?"":r}`}e.join=r;function a(e){return r(...e.split("/").map(encodeURIComponent))}e.encodeParts=a;function l(e){const t=Object.keys(e).filter((e=>e.length>0));if(!t.length){return""}return"?"+t.map((t=>{const n=encodeURIComponent(String(e[t]));return t+(n?"="+n:"")})).join("&")}e.objectToQueryString=l;function d(e){return e.replace(/^\?/,"").split("&").reduce(((e,t)=>{const[n,i]=t.split("=");if(n.length>0){e[n]=decodeURIComponent(i||"")}return e}),{})}e.queryStringToObject=d;function c(e,n=false){const{protocol:i}=t(e);return(!i||e.toLowerCase().indexOf(i)!==0)&&(n?e.indexOf("//")!==0:e.indexOf("/")!==0)}e.isLocal=c})(r||(t.URLExt=r={}))},32254:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>k});var i=n(94307);var s=n.n(i);var o=n(14366);var r=n.n(o);var a=n(92500);var l=n(69105);var d=n(22441);var c=n.n(d);var h=n(23899);var u=n.n(h);var p=n(84739);var m=n.n(p);var g=n(30619);var f=n.n(g);const v="CSVTable";const _="TSVTable";var b;(function(e){e.CSVGoToLine="csv:go-to-line";e.TSVGoToLine="tsv:go-to-line"})(b||(b={}));const y={activate:C,id:"@jupyterlab/csvviewer-extension:csv",description:"Adds viewer for CSV file types",requires:[g.ITranslator],optional:[i.ILayoutRestorer,o.IThemeManager,h.IMainMenu,d.ISearchProviderRegistry,p.ISettingRegistry,o.IToolbarWidgetRegistry],autoStart:true};const w={activate:x,id:"@jupyterlab/csvviewer-extension:tsv",description:"Adds viewer for TSV file types.",requires:[g.ITranslator],optional:[i.ILayoutRestorer,o.IThemeManager,h.IMainMenu,d.ISearchProviderRegistry,p.ISettingRegistry,o.IToolbarWidgetRegistry],autoStart:true};function C(e,t,i,s,r,d,c,h){var u;const{commands:p,shell:m}=e;let g;if(h){h.addFactory(v,"delimiter",(e=>new l.G({widget:e.content,translator:t})));if(c){g=(0,o.createToolbarFactory)(h,c,v,y.id,t)}}const f=t.load("jupyterlab");const _=new a.Pb({name:v,label:f.__("CSV Viewer"),fileTypes:["csv"],defaultFor:["csv"],readOnly:true,toolbarFactory:g,translator:t});const w=new o.WidgetTracker({namespace:"csvviewer"});let C=j.LIGHT_STYLE;let x=j.LIGHT_TEXT_CONFIG;if(i){void i.restore(w,{command:"docmanager:open",args:e=>({path:e.context.path,factory:v}),name:e=>e.context.path})}e.docRegistry.addWidgetFactory(_);const S=e.docRegistry.getFileType("csv");let k=false;_.widgetCreated.connect((async(e,t)=>{void w.add(t);t.context.pathChanged.connect((()=>{void w.save(t)}));if(S){t.title.icon=S.icon;t.title.iconClass=S.iconClass;t.title.iconLabel=S.iconLabel}if(d&&!k){const{CSVSearchProvider:e}=await Promise.all([n.e(4470),n.e(9059)]).then(n.bind(n,54041));d.add("csv",e);k=true}await t.content.ready;t.content.style=C;t.content.rendererConfig=x;I()}));const I=()=>{const e=s&&s.theme?s.isLight(s.theme):true;C=e?j.LIGHT_STYLE:j.DARK_STYLE;x=e?j.LIGHT_TEXT_CONFIG:j.DARK_TEXT_CONFIG;w.forEach((async e=>{await e.content.ready;e.content.style=C;e.content.rendererConfig=x}))};if(s){s.themeChanged.connect(I)}const E=()=>w.currentWidget!==null&&w.currentWidget===m.currentWidget;p.addCommand(b.CSVGoToLine,{label:f.__("Go to Line"),execute:async()=>{const e=w.currentWidget;if(e===null){return}const t=await o.InputDialog.getNumber({title:f.__("Go to Line"),value:0});if(t.button.accept&&t.value!==null){e.content.goToLine(t.value)}},isEnabled:E});if(r){r.editMenu.goToLiners.add({id:b.CSVGoToLine,isEnabled:E})}const T=()=>{p.notifyCommandChanged(b.CSVGoToLine)};w.currentChanged.connect(T);(u=m.currentChanged)===null||u===void 0?void 0:u.connect(T)}function x(e,t,i,s,r,d,c,h){const{commands:u,shell:p}=e;let m;if(h){h.addFactory(_,"delimiter",(e=>new l.G({widget:e.content,translator:t})));if(c){m=(0,o.createToolbarFactory)(h,c,_,w.id,t)}}const g=t.load("jupyterlab");const f=new a.og({name:_,label:g.__("TSV Viewer"),fileTypes:["tsv"],defaultFor:["tsv"],readOnly:true,toolbarFactory:m,translator:t});const v=new o.WidgetTracker({namespace:"tsvviewer"});let y=j.LIGHT_STYLE;let C=j.LIGHT_TEXT_CONFIG;if(i){void i.restore(v,{command:"docmanager:open",args:e=>({path:e.context.path,factory:_}),name:e=>e.context.path})}e.docRegistry.addWidgetFactory(f);const x=e.docRegistry.getFileType("tsv");let S=false;f.widgetCreated.connect((async(e,t)=>{void v.add(t);t.context.pathChanged.connect((()=>{void v.save(t)}));if(x){t.title.icon=x.icon;t.title.iconClass=x.iconClass;t.title.iconLabel=x.iconLabel}if(d&&!S){const{CSVSearchProvider:e}=await Promise.all([n.e(4470),n.e(9059)]).then(n.bind(n,54041));d.add("tsv",e);S=true}await t.content.ready;t.content.style=y;t.content.rendererConfig=C}));const k=()=>{const e=s&&s.theme?s.isLight(s.theme):true;y=e?j.LIGHT_STYLE:j.DARK_STYLE;C=e?j.LIGHT_TEXT_CONFIG:j.DARK_TEXT_CONFIG;v.forEach((async e=>{await e.content.ready;e.content.style=y;e.content.rendererConfig=C}))};if(s){s.themeChanged.connect(k)}const I=()=>v.currentWidget!==null&&v.currentWidget===p.currentWidget;u.addCommand(b.TSVGoToLine,{label:g.__("Go to Line"),execute:async()=>{const e=v.currentWidget;if(e===null){return}const t=await o.InputDialog.getNumber({title:g.__("Go to Line"),value:0});if(t.button.accept&&t.value!==null){e.content.goToLine(t.value)}},isEnabled:I});if(r){r.editMenu.goToLiners.add({id:b.TSVGoToLine,isEnabled:I})}v.currentChanged.connect((()=>{u.notifyCommandChanged(b.TSVGoToLine)}))}const S=[y,w];const k=S;var j;(function(e){e.LIGHT_STYLE={voidColor:"#F3F3F3",backgroundColor:"white",headerBackgroundColor:"#EEEEEE",gridLineColor:"rgba(20, 20, 20, 0.15)",headerGridLineColor:"rgba(20, 20, 20, 0.25)",rowBackgroundColor:e=>e%2===0?"#F5F5F5":"white"};e.DARK_STYLE={voidColor:"black",backgroundColor:"#111111",headerBackgroundColor:"#424242",gridLineColor:"rgba(235, 235, 235, 0.15)",headerGridLineColor:"rgba(235, 235, 235, 0.25)",rowBackgroundColor:e=>e%2===0?"#212121":"#111111"};e.LIGHT_TEXT_CONFIG={textColor:"#111111",matchBackgroundColor:"#FFFFE0",currentMatchBackgroundColor:"#FFFF00",horizontalAlignment:"right"};e.DARK_TEXT_CONFIG={textColor:"#F5F5F5",matchBackgroundColor:"#838423",currentMatchBackgroundColor:"#A3807A",horizontalAlignment:"right"}})(j||(j={}))},54041:(e,t,n)=>{"use strict";n.d(t,{CSVSearchProvider:()=>d});var i=n(79059);var s=n.n(i);var o=n(93037);var r=n.n(o);var a=n(22441);var l=n.n(a);class d extends a.SearchProvider{constructor(){super(...arguments);this.isReadOnly=true}static createNew(e,t){return new d(e)}static isApplicable(e){return e instanceof o.DocumentWidget&&e.content instanceof i.CSVViewer}clearHighlight(){return Promise.resolve()}highlightNext(e){this.widget.content.searchService.find(this._query);return Promise.resolve(undefined)}highlightPrevious(e){this.widget.content.searchService.find(this._query,true);return Promise.resolve(undefined)}replaceCurrentMatch(e,t){return Promise.resolve(false)}replaceAllMatches(e){return Promise.resolve(false)}startQuery(e){this._query=e;this.widget.content.searchService.find(e);return Promise.resolve()}endQuery(){this.widget.content.searchService.clear();return Promise.resolve()}}},36672:(e,t,n)=>{"use strict";var i=n(10395);var s=n(97913);var o=n(79010);var r=n(3579);var a=n(40662);var l=n(85072);var d=n.n(l);var c=n(97825);var h=n.n(c);var u=n(77659);var p=n.n(u);var m=n(55056);var g=n.n(m);var f=n(10540);var v=n.n(f);var _=n(41113);var b=n.n(_);var y=n(40538);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.A,w);const x=y.A&&y.A.locals?y.A.locals:undefined;var S=n(19562);var k=n(67996)},77678:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CSVDelimiter:()=>o.G,CSVDocumentWidget:()=>r.Am,CSVViewer:()=>r.t2,CSVViewerFactory:()=>r.Pb,DSVModel:()=>i.DSVModel,GridSearchService:()=>r.Mv,TSVViewerFactory:()=>r.og,TextRenderConfig:()=>r.Gg,parseDSV:()=>s.h,parseDSVNoQuotes:()=>s.l});var i=n(77515);var s=n(69181);var o=n(69105);var r=n(92500)},77515:(e,t,n)=>{"use strict";n.r(t);n.d(t,{DSVModel:()=>d});var i=n(5592);var s=n.n(i);var o=n(28426);var r=n.n(o);var a=n(69181);const l={quotes:a.h,noquotes:a.l};class d extends o.DataModel{constructor(e){super();this._rowCount=0;this._header=[];this._columnOffsets=new Uint32Array(0);this._columnOffsetsStartingRow=0;this._maxCacheGet=1e3;this._rowOffsets=new Uint32Array(0);this._delayedParse=null;this._startedParsing=false;this._doneParsing=false;this._isDisposed=false;this._ready=new i.PromiseDelegate;let{data:t,delimiter:n=",",rowDelimiter:s=undefined,quote:o='"',quoteParser:r=undefined,header:a=true,initialRows:l=500}=e;this._rawData=t;this._delimiter=n;this._quote=o;this._quoteEscaped=new RegExp(o+o,"g");this._initialRows=l;if(s===undefined){const e=t.slice(0,5e3).indexOf("\r");if(e===-1){s="\n"}else if(t[e+1]==="\n"){s="\r\n"}else{s="\r"}}this._rowDelimiter=s;if(r===undefined){r=t.indexOf(o)>=0}this._parser=r?"quotes":"noquotes";this.parseAsync();if(a===true&&this._columnCount>0){const e=[];for(let t=0;t{}));this._ready.reject(undefined)}if(this._delayedParse!==null){window.clearTimeout(this._delayedParse)}}getOffsetIndex(e,t){const n=this._columnCount;let i=(e-this._columnOffsetsStartingRow)*n;if(i<0||i>this._columnOffsets.length){this._columnOffsets.fill(4294967295);this._columnOffsetsStartingRow=e;i=0}if(this._columnOffsets[i]===4294967295){let t=1;while(t<=this._maxCacheGet&&this._columnOffsets[i+t*n]===16777215){t++}const{offsets:s}=l[this._parser]({data:this._rawData,delimiter:this._delimiter,rowDelimiter:this._rowDelimiter,quote:this._quote,columnOffsets:true,maxRows:t,ncols:n,startIndex:this._rowOffsets[e]});for(let e=0;e{try{this._computeRowOffsets(e)}catch(t){if(this._parser==="quotes"){console.warn(t);this._parser="noquotes";this._resetParser();this._computeRowOffsets(e)}else{throw t}}return this._doneParsing};this._resetParser();const s=i(e);if(s){return}const o=()=>{const s=i(e+t);e+=t;if(t<1e6){t*=2}if(s){this._delayedParse=null}else{this._delayedParse=window.setTimeout(o,n)}};this._delayedParse=window.setTimeout(o,n)}_computeRowOffsets(e=4294967295){var t;if(this._rowCount>=e||this._doneParsing===true){return}if(this._columnCount===undefined){this._columnCount=l[this._parser]({data:this._rawData,delimiter:this._delimiter,rowDelimiter:this._rowDelimiter,quote:this._quote,columnOffsets:true,maxRows:1}).ncols}const n=this._rowCount>0?1:0;const{nrows:i,offsets:s}=l[this._parser]({data:this._rawData,startIndex:(t=this._rowOffsets[this._rowCount-n])!==null&&t!==void 0?t:0,delimiter:this._delimiter,rowDelimiter:this._rowDelimiter,quote:this._quote,columnOffsets:false,maxRows:e-this._rowCount+n});if(this._startedParsing&&i<=n){this._doneParsing=true;this._ready.resolve(undefined);return}this._startedParsing=true;const o=this._rowCount;const r=Math.min(i,n);this._rowCount=o+i-r;if(this._rowCounto){const e=this._rowOffsets;this._rowOffsets=new Uint32Array(this._rowCount);this._rowOffsets.set(e);this._rowOffsets.set(s,o-r)}const a=Math.floor(33554432/this._columnCount);if(o<=a){if(this._rowCount<=a){const e=this._columnOffsets;this._columnOffsets=new Uint32Array(this._rowCount*this._columnCount);this._columnOffsets.set(e);this._columnOffsets.fill(4294967295,e.length)}else{const e=this._columnOffsets;this._columnOffsets=new Uint32Array(Math.min(this._maxCacheGet,a)*this._columnCount);this._columnOffsets.set(e.subarray(0,this._columnOffsets.length));this._columnOffsets.fill(4294967295,e.length);this._columnOffsetsStartingRow=0}}let d=o;if(this._header.length>0){d-=1}this.emitChanged({type:"rows-inserted",region:"body",index:d,span:this._rowCount-o})}_getField(e,t){let n;let i;const s=this.getOffsetIndex(e,t);let o=0;let r=0;if(t===this._columnCount-1){if(e{}));this._ready.reject(undefined)}this._doneParsing=false;this._ready=new i.PromiseDelegate;if(this._delayedParse!==null){window.clearTimeout(this._delayedParse);this._delayedParse=null}this.emitChanged({type:"model-reset"})}}},69181:(e,t,n)=>{"use strict";n.d(t,{h:()=>o,l:()=>r});var i;(function(e){e[e["QUOTED_FIELD"]=0]="QUOTED_FIELD";e[e["QUOTED_FIELD_QUOTE"]=1]="QUOTED_FIELD_QUOTE";e[e["UNQUOTED_FIELD"]=2]="UNQUOTED_FIELD";e[e["NEW_FIELD"]=3]="NEW_FIELD";e[e["NEW_ROW"]=4]="NEW_ROW"})(i||(i={}));var s;(function(e){e[e["CR"]=0]="CR";e[e["CRLF"]=1]="CRLF";e[e["LF"]=2]="LF"})(s||(s={}));function o(e){const{data:t,columnOffsets:n,delimiter:o=",",startIndex:r=0,maxRows:a=4294967295,rowDelimiter:l="\r\n",quote:d='"'}=e;let c=e.ncols;let h=0;const u=[];const p=o.charCodeAt(0);const m=d.charCodeAt(0);const g=10;const f=13;const v=t.length;const{QUOTED_FIELD:_,QUOTED_FIELD_QUOTE:b,UNQUOTED_FIELD:y,NEW_FIELD:w,NEW_ROW:C}=i;const{CR:x,LF:S,CRLF:k}=s;const[j,I]=l==="\r\n"?[k,2]:l==="\r"?[x,1]:[S,1];let E=C;let T=r;let M=0;let D;while(Tc){u.length=u.length-(M-c)}}if(h===a){return{nrows:h,ncols:n?c:0,offsets:u}}break;case w:if(n===true){u.push(T)}M++;break;default:break}}if(E!==C){h++;if(n===true){if(c===undefined){c=M}if(Mc){u.length=u.length-(M-c)}}}return{nrows:h,ncols:n?c!==null&&c!==void 0?c:0:0,offsets:u}}function r(e){const{data:t,columnOffsets:n,delimiter:i=",",rowDelimiter:s="\r\n",startIndex:o=0,maxRows:r=4294967295}=e;let a=e.ncols;const l=[];let d=0;const c=s.length;let h=o;const u=t.length;let p;let m;let g;let f;let v;p=o;while(p!==-1&&d{"use strict";n.d(t,{G:()=>u});var i=n(30619);var s=n.n(i);var o=n(26331);var r=n.n(o);var a=n(1143);var l=n.n(a);const d="jp-CSVDelimiter";const c="jp-CSVDelimiter-label";const h="jp-CSVDelimiter-dropdown";class u extends a.Widget{constructor(e){super({node:p.createNode(e.widget.delimiter,e.translator)});this._widget=e.widget;this.addClass(d)}get selectNode(){return this.node.getElementsByTagName("select")[0]}handleEvent(e){switch(e.type){case"change":this._widget.delimiter=this.selectNode.value;break;default:break}}onAfterAttach(e){this.selectNode.addEventListener("change",this)}onBeforeDetach(e){this.selectNode.removeEventListener("change",this)}}var p;(function(e){function t(e,t){t=t||i.nullTranslator;const n=t===null||t===void 0?void 0:t.load("jupyterlab");const s=[[",",","],[";",";"],["\t",n.__("tab")],["|",n.__("pipe")],["#",n.__("hash")]];const r=document.createElement("div");const a=document.createElement("span");const l=document.createElement("select");a.textContent=n.__("Delimiter: ");a.className=c;for(const[i,o]of s){const t=document.createElement("option");t.value=i;t.textContent=o;if(i===e){t.selected=true}l.appendChild(t)}r.appendChild(a);const d=o.Styling.wrapSelect(l);d.classList.add(h);r.appendChild(d);return r}e.createNode=t})(p||(p={}))},92500:(e,t,n)=>{"use strict";n.d(t,{Am:()=>y,Gg:()=>v,Mv:()=>_,Pb:()=>w,og:()=>C,t2:()=>b});var i=n(30397);var s=n.n(i);var o=n(93037);var r=n.n(o);var a=n(5592);var l=n.n(a);var d=n(2336);var c=n.n(d);var h=n(1143);var u=n.n(h);var p=n(69105);const m="jp-CSVViewer";const g="jp-CSVViewer-grid";const f=1e3;class v{}class _{constructor(e){this._looping=true;this._changed=new d.Signal(this);this._grid=e;this._query=null;this._row=0;this._column=-1}get changed(){return this._changed}cellBackgroundColorRendererFunc(e){return({value:t,row:n,column:i})=>{if(this._query){if(t.match(this._query)){if(this._row===n&&this._column===i){return e.currentMatchBackgroundColor}return e.matchBackgroundColor}}return""}}clear(){this._query=null;this._row=0;this._column=-1;this._changed.emit(undefined)}find(e,t=false){const n=this._grid.dataModel;const i=n.rowCount("body");const s=n.columnCount("body");if(this._query!==e){this._row=0;this._column=-1}this._query=e;const o=this._grid.scrollY/this._grid.defaultSizes.rowHeight;const r=(this._grid.scrollY+this._grid.pageHeight)/this._grid.defaultSizes.rowHeight;const a=this._grid.scrollX/this._grid.defaultSizes.columnHeaderHeight;const l=(this._grid.scrollX+this._grid.pageWidth)/this._grid.defaultSizes.columnHeaderHeight;const d=(e,t)=>e>=o&&e<=r&&t>=a&&t<=l;const c=t?-1:1;this._column+=c;for(let h=this._row;t?h>=0:h=0:i=n-1){this._row=0;this._column=-1}}get query(){return this._query}}class b extends h.Widget{constructor(e){super();this._monitor=null;this._delimiter=",";this._revealed=new a.PromiseDelegate;this._baseRenderer=null;this._context=e.context;this.layout=new h.PanelLayout;this.addClass(m);this._ready=this.initialize()}get ready(){return this._ready}async initialize(){const e=this.layout;if(this.isDisposed||!e){return}const{BasicKeyHandler:t,BasicMouseHandler:n,DataGrid:s}=await x.ensureDataGrid();this._defaultStyle=s.defaultStyle;this._grid=new s({defaultSizes:{rowHeight:24,columnWidth:144,rowHeaderWidth:64,columnHeaderHeight:36}});this._grid.addClass(g);this._grid.headerVisibility="all";this._grid.keyHandler=new t;this._grid.mouseHandler=new n;this._grid.copyConfig={separator:"\t",format:s.copyFormatGeneric,headers:"all",warningThreshold:1e6};e.addWidget(this._grid);this._searchService=new _(this._grid);this._searchService.changed.connect(this._updateRenderer,this);await this._context.ready;await this._updateGrid();this._revealed.resolve(undefined);this._monitor=new i.ActivityMonitor({signal:this._context.model.contentChanged,timeout:f});this._monitor.activityStopped.connect(this._updateGrid,this)}get context(){return this._context}get revealed(){return this._revealed.promise}get delimiter(){return this._delimiter}set delimiter(e){if(e===this._delimiter){return}this._delimiter=e;void this._updateGrid()}get style(){return this._grid.style}set style(e){this._grid.style={...this._defaultStyle,...e}}set rendererConfig(e){this._baseRenderer=e;void this._updateRenderer()}get searchService(){return this._searchService}dispose(){if(this._monitor){this._monitor.dispose()}super.dispose()}goToLine(e){this._grid.scrollToRow(e)}onActivateRequest(e){this.node.tabIndex=-1;this.node.focus()}async _updateGrid(){const{BasicSelectionModel:e}=await x.ensureDataGrid();const{DSVModel:t}=await x.ensureDSVModel();const n=this._context.model.toString();const i=this._delimiter;const s=this._grid.dataModel;const o=this._grid.dataModel=new t({data:n,delimiter:i});this._grid.selectionModel=new e({dataModel:o});if(s){s.dispose()}}async _updateRenderer(){if(this._baseRenderer===null){return}const{TextRenderer:e}=await x.ensureDataGrid();const t=this._baseRenderer;const n=new e({textColor:t.textColor,horizontalAlignment:t.horizontalAlignment,backgroundColor:this._searchService.cellBackgroundColorRendererFunc(t)});this._grid.cellRenderers.update({body:n,"column-header":n,"corner-header":n,"row-header":n})}}class y extends o.DocumentWidget{constructor(e){let{content:t,context:n,delimiter:i,reveal:s,...o}=e;t=t||x.createContent(n);s=Promise.all([s,t.revealed]);super({content:t,context:n,reveal:s,...o});if(i){t.delimiter=i}}setFragment(e){const t=e.split("=");if(t[0]!=="#row"){return}let n=t[1].split(";")[0];n=n.split("-")[0];void this.context.ready.then((()=>{this.content.goToLine(Number(n))}))}}class w extends o.ABCWidgetFactory{createNewWidget(e){const t=this.translator;return new y({context:e,translator:t})}defaultToolbarFactory(e){return[{name:"delimiter",widget:new p.G({widget:e.content,translator:this.translator})}]}}class C extends w{createNewWidget(e){const t="\t";return new y({context:e,delimiter:t,translator:this.translator})}}var x;(function(e){let t=null;let i=null;async function s(){if(t==null){t=new a.PromiseDelegate;t.resolve(await n.e(8426).then(n.t.bind(n,28426,23)))}return t.promise}e.ensureDataGrid=s;async function o(){if(i==null){i=new a.PromiseDelegate;i.resolve(await Promise.all([n.e(4470),n.e(8426)]).then(n.bind(n,77515)))}return i.promise}e.ensureDSVModel=o;function r(e){return new b({context:e})}e.createContent=r})(x||(x={}))},5367:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>U});var i=n(94307);var s=n.n(i);var o=n(14366);var r=n.n(o);var a=n(5061);var l=n.n(a);var d=n(54723);var c=n.n(d);var h=n(9155);var u=n.n(h);var p=n(30397);var m=n.n(p);var g=n(85253);var f=n.n(g);var v=n(93037);var _=n.n(v);var b=n(4341);var y=n.n(b);var w=n(13105);var C=n.n(w);var x=n(80349);var S=n.n(x);var k=n(44539);var j=n.n(k);var I=n(84739);var E=n.n(I);var T=n(30619);var M=n.n(T);function D(e){Object.values(g.Debugger.CommandIDs).forEach((t=>{if(e.hasCommand(t)){e.notifyCommandChanged(t)}}))}function A(e,t){const n=t.hasStoppedThreads();if(n){document.body.dataset.jpDebuggerStoppedThreads="true"}else{delete document.body.dataset.jpDebuggerStoppedThreads}D(e)}const P={id:"@jupyterlab/debugger-extension:consoles",description:"Add debugger capability to the consoles.",autoStart:true,requires:[g.IDebugger,h.IConsoleTracker],optional:[i.ILabShell],activate:(e,t,n,i)=>{const s=new g.Debugger.Handler({type:"console",shell:e.shell,service:t});const o=async n=>{const{sessionContext:i}=n;await i.ready;await s.updateContext(n,i);A(e.commands,t)};if(i){i.currentChanged.connect(((e,t)=>{const n=t.newValue;if(n instanceof h.ConsolePanel){void o(n)}}))}else{n.currentChanged.connect(((e,t)=>{if(t){void o(t)}}))}}};const L={id:"@jupyterlab/debugger-extension:files",description:"Adds debugger capabilities to files.",autoStart:true,requires:[g.IDebugger,b.IEditorTracker],optional:[i.ILabShell],activate:(e,t,n,i)=>{const s=new g.Debugger.Handler({type:"file",shell:e.shell,service:t});const o={};const r=async n=>{const i=e.serviceManager.sessions;try{const r=await i.findByPath(n.context.path);if(!r){return}let a=o[r.id];if(!a){a=i.connectTo({model:r});o[r.id]=a}await s.update(n,a);A(e.commands,t)}catch(r){return}};if(i){i.currentChanged.connect(((e,t)=>{const n=t.newValue;if(n instanceof v.DocumentWidget){const{content:e}=n;if(e instanceof b.FileEditor){void r(n)}}}))}else{n.currentChanged.connect(((e,t)=>{if(t){void r(t)}}))}}};const R={id:"@jupyterlab/debugger-extension:notebooks",description:"Adds debugger capability to notebooks and provides the debugger notebook handler.",autoStart:true,requires:[g.IDebugger,x.INotebookTracker],optional:[i.ILabShell,o.ICommandPalette,o.ISessionContextDialogs,T.ITranslator],provides:g.IDebuggerHandler,activate:(e,t,n,i,s,r,a)=>{const l=a!==null&&a!==void 0?a:T.nullTranslator;const d=r!==null&&r!==void 0?r:new o.SessionContextDialogs({translator:l});const c=new g.Debugger.Handler({type:"notebook",shell:e.shell,service:t});const h=l.load("jupyterlab");e.commands.addCommand(g.Debugger.CommandIDs.restartDebug,{label:h.__("Restart Kernel and Debug…"),caption:h.__("Restart Kernel and Debug…"),isEnabled:()=>t.isStarted,execute:async()=>{const e=t.getDebuggerState();await t.stop();const i=n.currentWidget;if(!i){return}const{content:s,sessionContext:o}=i;const r=await d.restart(o);if(!r){return}await t.restoreDebuggerState(e);await c.updateWidget(i,o.session);await x.NotebookActions.runAll(s,o,d,l)}});const u=async n=>{if(n){const{sessionContext:e}=n;await e.ready;await c.updateContext(n,e)}A(e.commands,t)};if(i){i.currentChanged.connect(((e,t)=>{const n=t.newValue;if(n instanceof x.NotebookPanel){void u(n)}}))}else{n.currentChanged.connect(((e,t)=>{if(t){void u(t)}}))}if(s){s.addItem({category:"Notebook Operations",command:g.Debugger.CommandIDs.restartDebug})}return c}};const N={id:"@jupyterlab/debugger-extension:service",description:"Provides the debugger service.",autoStart:true,provides:g.IDebugger,requires:[g.IDebuggerConfig],optional:[g.IDebuggerSources,T.ITranslator],activate:(e,t,n,i)=>new g.Debugger.Service({config:t,debuggerSources:n,specsManager:e.serviceManager.kernelspecs,translator:i})};const O={id:"@jupyterlab/debugger-extension:config",description:"Provides the debugger configuration",provides:g.IDebuggerConfig,autoStart:true,activate:()=>new g.Debugger.Config};const B={id:"@jupyterlab/debugger-extension:sources",description:"Provides the source feature for debugging",autoStart:true,provides:g.IDebuggerSources,requires:[g.IDebuggerConfig,d.IEditorServices],optional:[x.INotebookTracker,h.IConsoleTracker,b.IEditorTracker],activate:(e,t,n,i,s,o)=>new g.Debugger.Sources({config:t,shell:e.shell,editorServices:n,notebookTracker:i,consoleTracker:s,editorTracker:o})};const F={id:"@jupyterlab/debugger-extension:variables",description:"Adds variables renderer and inspection in the debugger variable panel.",autoStart:true,requires:[g.IDebugger,g.IDebuggerHandler,T.ITranslator],optional:[o.IThemeManager,k.IRenderMimeRegistry],activate:(e,t,n,i,s,r)=>{const a=i.load("jupyterlab");const{commands:l,shell:d}=e;const c=new o.WidgetTracker({namespace:"debugger/inspect-variable"});const h=new o.WidgetTracker({namespace:"debugger/render-variable"});const u=g.Debugger.CommandIDs;l.addCommand(u.inspectVariable,{label:a.__("Inspect Variable"),caption:a.__("Inspect Variable"),isEnabled:e=>{var n,i,s,o;return!!((n=t.session)===null||n===void 0?void 0:n.isStarted)&&Number((o=(i=e.variableReference)!==null&&i!==void 0?i:(s=t.model.variables.selectedVariable)===null||s===void 0?void 0:s.variablesReference)!==null&&o!==void 0?o:0)>0},execute:async e=>{var n,i,r,a;let{variableReference:h,name:u}=e;if(!h){h=(n=t.model.variables.selectedVariable)===null||n===void 0?void 0:n.variablesReference}if(!u){u=(i=t.model.variables.selectedVariable)===null||i===void 0?void 0:i.name}const p=`jp-debugger-variable-${u}`;if(!u||!h||c.find((e=>e.id===p))){return}const m=await t.inspectVariable(h);if(!m||m.length===0){return}const f=t.model.variables;const v=new o.MainAreaWidget({content:new g.Debugger.VariablesGrid({model:f,commands:l,scopes:[{name:u,variables:m}],themeManager:s})});v.addClass("jp-DebuggerVariables");v.id=p;v.title.icon=g.Debugger.Icons.variableIcon;v.title.label=`${(a=(r=t.session)===null||r===void 0?void 0:r.connection)===null||a===void 0?void 0:a.name} - ${u}`;void c.add(v);const _=()=>{v.dispose();f.changed.disconnect(_)};f.changed.connect(_);d.add(v,"main",{mode:c.currentWidget?"split-right":"split-bottom",activate:false,type:"Debugger Variables"})}});l.addCommand(u.renderMimeVariable,{label:a.__("Render Variable"),caption:a.__("Render variable according to its mime type"),isEnabled:()=>{var e;return!!((e=t.session)===null||e===void 0?void 0:e.isStarted)},isVisible:()=>t.model.hasRichVariableRendering&&(r!==null||n.activeWidget instanceof x.NotebookPanel),execute:e=>{var s,o,a,l,c,u,p,m;let{name:f,frameId:v}=e;if(!f){f=(s=t.model.variables.selectedVariable)===null||s===void 0?void 0:s.name}if(!v){v=(o=t.model.callstack.frame)===null||o===void 0?void 0:o.id}const _=n.activeWidget;let b=_ instanceof x.NotebookPanel?_.content.rendermime:r;if(!b){return}const y=`jp-debugger-variable-mime-${f}-${(l=(a=t.session)===null||a===void 0?void 0:a.connection)===null||l===void 0?void 0:l.path.replace("/","-")}`;if(!f||h.find((e=>e.id===y))||!v&&t.hasStoppedThreads()){return}const w=t.model.variables;const C=new g.Debugger.VariableRenderer({dataLoader:()=>t.inspectRichVariable(f,v),rendermime:b,translator:i});C.addClass("jp-DebuggerRichVariable");C.id=y;C.title.icon=g.Debugger.Icons.variableIcon;C.title.label=`${f} - ${(u=(c=t.session)===null||c===void 0?void 0:c.connection)===null||u===void 0?void 0:u.name}`;C.title.caption=`${f} - ${(m=(p=t.session)===null||p===void 0?void 0:p.connection)===null||m===void 0?void 0:m.path}`;void h.add(C);const S=()=>{C.dispose();w.changed.disconnect(k);_===null||_===void 0?void 0:_.disposed.disconnect(S)};const k=()=>{if(n.activeWidget===_){void C.refresh()}};C.disposed.connect(S);w.changed.connect(k);_===null||_===void 0?void 0:_.disposed.connect(S);d.add(C,"main",{mode:h.currentWidget?"split-right":"split-bottom",activate:false,type:"Debugger Variables"})}});l.addCommand(u.copyToClipboard,{label:a.__("Copy to Clipboard"),caption:a.__("Copy text representation of the value to clipboard"),isEnabled:()=>{var e,n;return!!((e=t.session)===null||e===void 0?void 0:e.isStarted)&&!!((n=t.model.variables.selectedVariable)===null||n===void 0?void 0:n.value)},isVisible:()=>n.activeWidget instanceof x.NotebookPanel,execute:async()=>{const e=t.model.variables.selectedVariable.value;if(e){o.Clipboard.copyToSystem(e)}}});l.addCommand(u.copyToGlobals,{label:a.__("Copy Variable to Globals"),caption:a.__("Copy variable to globals scope"),isEnabled:()=>{var e;return!!((e=t.session)===null||e===void 0?void 0:e.isStarted)},isVisible:()=>n.activeWidget instanceof x.NotebookPanel&&t.model.supportCopyToGlobals,execute:async e=>{const n=t.model.variables.selectedVariable.name;await t.copyToGlobals(n)}})}};const z={id:"@jupyterlab/debugger-extension:sidebar",description:"Provides the debugger sidebar.",provides:g.IDebuggerSidebar,requires:[g.IDebugger,d.IEditorServices,T.ITranslator],optional:[o.IThemeManager,I.ISettingRegistry],autoStart:true,activate:async(e,t,n,i,s,o)=>{const{commands:r}=e;const a=g.Debugger.CommandIDs;const l={registry:r,continue:a.debugContinue,terminate:a.terminate,next:a.next,stepIn:a.stepIn,stepOut:a.stepOut,evaluate:a.evaluate};const d={registry:r,pauseOnExceptions:a.pauseOnExceptions};const c=new g.Debugger.Sidebar({service:t,callstackCommands:l,breakpointsCommands:d,editorServices:n,themeManager:s,translator:i});if(o){const e=await o.load(W.id);const n=()=>{var n,i,s,o;const r=e.get("variableFilters").composite;const a=(o=(s=(i=(n=t.session)===null||n===void 0?void 0:n.connection)===null||i===void 0?void 0:i.kernel)===null||s===void 0?void 0:s.name)!==null&&o!==void 0?o:"";if(a&&r[a]){c.variables.filter=new Set(r[a])}const l=e.get("defaultKernelSourcesFilter").composite;c.kernelSources.filter=l};n();e.changed.connect(n);t.sessionChanged.connect(n)}return c}};const H={id:"@jupyterlab/debugger-extension:source-viewer",description:"Initialize the debugger sources viewer.",requires:[g.IDebugger,d.IEditorServices,g.IDebuggerSources,T.ITranslator],provides:g.IDebuggerSourceViewer,autoStart:true,activate:async(e,t,n,i,s)=>{const r=new g.Debugger.ReadOnlyEditorFactory({editorServices:n});const{model:a}=t;const l=(e,n)=>{var s,o,r,a,l,d,c,h,u;i.find({focus:true,kernel:(a=(r=(o=(s=t.session)===null||s===void 0?void 0:s.connection)===null||o===void 0?void 0:o.kernel)===null||r===void 0?void 0:r.name)!==null&&a!==void 0?a:"",path:(c=(d=(l=t.session)===null||l===void 0?void 0:l.connection)===null||d===void 0?void 0:d.path)!==null&&c!==void 0?c:"",source:(u=(h=n===null||n===void 0?void 0:n.source)===null||h===void 0?void 0:h.path)!==null&&u!==void 0?u:""}).forEach((e=>{requestAnimationFrame((()=>{void e.reveal().then((()=>{const t=e.get();if(t){g.Debugger.EditorHandler.showCurrentLine(t,n.line)}}))}))}))};a.callstack.currentFrameChanged.connect(l);const d=(e,n)=>{var s,o,a,l,d,c,h;if(!e){return}const{content:u,mimeType:m,path:f}=e;const v=i.find({focus:true,kernel:(l=(a=(o=(s=t.session)===null||s===void 0?void 0:s.connection)===null||o===void 0?void 0:o.kernel)===null||a===void 0?void 0:a.name)!==null&&l!==void 0?l:"",path:(h=(c=(d=t.session)===null||d===void 0?void 0:d.connection)===null||c===void 0?void 0:c.path)!==null&&h!==void 0?h:"",source:f});if(v.length>0){if(n&&typeof n.line!=="undefined"){v.forEach((e=>{void e.reveal().then((()=>{var t;(t=e.get())===null||t===void 0?void 0:t.revealPosition({line:n.line-1,column:n.column||0})}))}))}return}const _=r.createNewEditor({content:u,mimeType:m,path:f});const b=_.editor;const y=new g.Debugger.EditorHandler({debuggerService:t,editorReady:()=>Promise.resolve(b),getEditor:()=>b,path:f,src:b.model.sharedModel});_.disposed.connect((()=>y.dispose()));i.open({label:p.PathExt.basename(f),caption:f,editorWrapper:_});const w=t.model.callstack.frame;if(w){g.Debugger.EditorHandler.showCurrentLine(b,w.line)}};const c=s.load("jupyterlab");e.commands.addCommand(g.Debugger.CommandIDs.openSource,{label:c.__("Open Source"),caption:c.__("Open Source"),isEnabled:()=>!!H,execute:async e=>{const n=e.path||"";if(!n){throw Error("Path to open is needed")}if(!t.isStarted){const e=await(0,o.showDialog)({title:c.__("Start debugger?"),body:c.__("The debugger service is needed to open the source %1",n),buttons:[o.Dialog.cancelButton({label:c.__("Cancel")}),o.Dialog.okButton({label:c.__("Start debugger")})]});if(e.button.accept){await t.start()}else{return}}const i=await t.getSource({path:n});return d(i)}});return Object.freeze({open:d})}};const W={id:"@jupyterlab/debugger-extension:main",description:"Initialize the debugger user interface.",requires:[g.IDebugger,g.IDebuggerSidebar,d.IEditorServices,T.ITranslator],optional:[o.ICommandPalette,g.IDebuggerSourceViewer,i.ILabShell,i.ILayoutRestorer,w.ILoggerRegistry,I.ISettingRegistry],autoStart:true,activate:async(e,t,n,i,s,r,l,d,c,h,u)=>{var m;const f=s.load("jupyterlab");const{commands:v,shell:_,serviceManager:b}=e;const{kernelspecs:y}=b;const w=g.Debugger.CommandIDs;const C=p.PageConfig.getOption("alwaysShowDebuggerExtension").toLowerCase()==="true";if(!C){await y.ready;const e=(m=y.specs)===null||m===void 0?void 0:m.kernelspecs;if(!e){return}const t=Object.keys(e).some((t=>{var n,i,s;return!!((s=(i=(n=e[t])===null||n===void 0?void 0:n.metadata)===null||i===void 0?void 0:i["debugger"])!==null&&s!==void 0?s:false)}));if(!t){return}}const x=async()=>{var e,n,s;const o=(n=(e=t.session)===null||e===void 0?void 0:e.connection)===null||n===void 0?void 0:n.kernel;if(!o){return""}const r=(await o.info).language_info;const a=r.name;const l=(s=i.mimeTypeService.getMimeTypeByLanguage({name:a}))!==null&&s!==void 0?s:"";return l};const S=new k.RenderMimeRegistry({initialFactories:k.standardRendererFactories});v.addCommand(w.evaluate,{label:f.__("Evaluate Code"),caption:f.__("Evaluate Code"),icon:g.Debugger.Icons.evaluateIcon,isEnabled:()=>t.hasStoppedThreads(),execute:async()=>{var e,n,s;const o=await x();const r=await g.Debugger.Dialogs.getCode({title:f.__("Evaluate Code"),okLabel:f.__("Evaluate"),cancelLabel:f.__("Cancel"),mimeType:o,contentFactory:new a.CodeCell.ContentFactory({editorFactory:e=>i.factoryService.newInlineEditor(e)}),rendermime:S});const l=r.value;if(!r.button.accept||!l){return}const d=await t.evaluate(l);if(d){const i=d.result;const o=(n=(e=t===null||t===void 0?void 0:t.session)===null||e===void 0?void 0:e.connection)===null||n===void 0?void 0:n.path;const r=o?(s=h===null||h===void 0?void 0:h.getLogger)===null||s===void 0?void 0:s.call(h,o):undefined;if(r){r.log({type:"text",data:i,level:r.level})}else{console.debug(i)}}}});v.addCommand(w.debugContinue,{label:()=>t.hasStoppedThreads()?f.__("Continue"):f.__("Pause"),caption:()=>t.hasStoppedThreads()?f.__("Continue"):f.__("Pause"),icon:()=>t.hasStoppedThreads()?g.Debugger.Icons.continueIcon:g.Debugger.Icons.pauseIcon,isEnabled:()=>{var e,n;return(n=(e=t.session)===null||e===void 0?void 0:e.isStarted)!==null&&n!==void 0?n:false},execute:async()=>{if(t.hasStoppedThreads()){await t.continue()}else{await t.pause()}v.notifyCommandChanged(w.debugContinue)}});v.addCommand(w.terminate,{label:f.__("Terminate"),caption:f.__("Terminate"),icon:g.Debugger.Icons.terminateIcon,isEnabled:()=>t.hasStoppedThreads(),execute:async()=>{await t.restart();A(e.commands,t)}});v.addCommand(w.next,{label:f.__("Next"),caption:f.__("Next"),icon:g.Debugger.Icons.stepOverIcon,isEnabled:()=>t.hasStoppedThreads(),execute:async()=>{await t.next()}});v.addCommand(w.stepIn,{label:f.__("Step In"),caption:f.__("Step In"),icon:g.Debugger.Icons.stepIntoIcon,isEnabled:()=>t.hasStoppedThreads(),execute:async()=>{await t.stepIn()}});v.addCommand(w.stepOut,{label:f.__("Step Out"),caption:f.__("Step Out"),icon:g.Debugger.Icons.stepOutIcon,isEnabled:()=>t.hasStoppedThreads(),execute:async()=>{await t.stepOut()}});v.addCommand(w.pauseOnExceptions,{label:e=>e.filter||"Breakpoints on exception",caption:e=>e.description,isToggled:e=>{var n;return((n=t.session)===null||n===void 0?void 0:n.isPausingOnException(e.filter))||false},isEnabled:()=>t.pauseOnExceptionsIsValid(),execute:async e=>{var n,i,s;if(e===null||e===void 0?void 0:e.filter){let n=e.filter;await t.pauseOnExceptionsFilter(n)}else{let e=[];(i=(n=t.session)===null||n===void 0?void 0:n.exceptionBreakpointFilters)===null||i===void 0?void 0:i.forEach((t=>{e.push(t.filter)}));const r=await o.InputDialog.getMultipleItems({title:f.__("Select a filter for breakpoints on exception"),items:e,defaults:((s=t.session)===null||s===void 0?void 0:s.currentExceptionFilters)||[]});let a=r.button.accept?r.value:null;if(a!==null){await t.pauseOnExceptions(a)}}}});let j=false;if(u){const e=await u.load(W.id);const t=()=>{j=e.get("autoCollapseDebuggerSidebar").composite};t();e.changed.connect(t)}t.eventMessage.connect(((i,s)=>{A(e.commands,t);if(d&&s.event==="initialized"){d.activateById(n.id)}else if(d&&n.isVisible&&s.event==="terminated"&&j){d.collapseRight()}}));t.sessionChanged.connect((n=>{A(e.commands,t)}));if(c){c.add(n,"debugger-sidebar")}n.node.setAttribute("role","region");n.node.setAttribute("aria-label",f.__("Debugger section"));n.title.caption=f.__("Debugger");_.add(n,"right",{type:"Debugger"});v.addCommand(w.showPanel,{label:f.__("Debugger Panel"),execute:()=>{_.activateById(n.id)}});if(r){const e=f.__("Debugger");[w.debugContinue,w.terminate,w.next,w.stepIn,w.stepOut,w.evaluate,w.pauseOnExceptions].forEach((t=>{r.addItem({command:t,category:e})}))}if(l){const{model:e}=t;const n=(e,t,n)=>{if(!t){return}l.open(t,n)};e.sources.currentSourceOpened.connect(((e,t)=>{l.open(t)}));e.kernelSources.kernelSourceOpened.connect(n);e.breakpoints.clicked.connect((async(e,n)=>{var i;const s=(i=n.source)===null||i===void 0?void 0:i.path;const o=await t.getSource({sourceReference:0,path:s});l.open(o,n)}))}}};const V=[N,P,L,R,F,z,W,B,H,O];const U=V},1904:(e,t,n)=>{"use strict";var i=n(97913);var s=n(17325);var o=n(5893);var r=n(79010);var a=n(3579);var l=n(53377);var d=n(50286);var c=n(77748);var h=n(28006);var u=n(10395);var p=n(40662);var m=n(23359);var g=n(85072);var f=n.n(g);var v=n(97825);var _=n.n(v);var b=n(77659);var y=n.n(b);var w=n(55056);var C=n.n(w);var x=n(10540);var S=n.n(x);var k=n(41113);var j=n.n(k);var I=n(1597);var E={};E.styleTagTransform=j();E.setAttributes=C();E.insert=y().bind(null,"head");E.domAPI=_();E.insertStyleElement=S();var T=f()(I.A,E);const M=I.A&&I.A.locals?I.A.locals:undefined;var D=n(69704)},35086:(e,t,n)=>{"use strict";n.d(t,{s:()=>Re});var i=n(26331);const s=1540483477;const o=new TextEncoder;function r(e,t){const n=o.encode(e);let i=n.length;let r=t^i;let a=0;while(i>=4){let e=n[a]&255|(n[++a]&255)<<8|(n[++a]&255)<<16|(n[++a]&255)<<24;e=(e&65535)*s+(((e>>>16)*s&65535)<<16);e^=e>>>24;e=(e&65535)*s+(((e>>>16)*s&65535)<<16);r=(r&65535)*s+(((r>>>16)*s&65535)<<16)^e;i-=4;++a}switch(i){case 3:r^=(n[a+2]&255)<<16;case 2:r^=(n[a+1]&255)<<8;case 1:r^=n[a]&255;r=(r&65535)*s+(((r>>>16)*s&65535)<<16)}r^=r>>>13;r=(r&65535)*s+(((r>>>16)*s&65535)<<16);r^=r>>>15;return r>>>0}class a{constructor(){this._fileParams=new Map;this._hashMethods=new Map}getCodeId(e,t){const n=this._fileParams.get(t);if(!n){throw new Error(`Kernel (${t}) has no tmp file params.`)}const i=this._hashMethods.get(t);if(!i){throw new Error(`Kernel (${t}) has no hashing params.`)}const{prefix:s,suffix:o}=n;return`${s}${i(e)}${o}`}setHashParams(e){const{kernel:t,method:n,seed:i}=e;if(!t){throw new TypeError(`Kernel name is not defined.`)}switch(n){case"Murmur2":this._hashMethods.set(t,(e=>r(e,i).toString()));break;default:throw new Error(`Hash method (${n}) is not supported.`)}}setTmpFileParams(e){const{kernel:t,prefix:n,suffix:i}=e;if(!t){throw new TypeError(`Kernel name is not defined.`)}this._fileParams.set(t,{kernel:t,prefix:n,suffix:i})}getTmpFileParams(e){return this._fileParams.get(e)}}var l=n(14366);var d=n(5061);var c=n(1143);var h;(function(e){function t(e){const t=new u({...e,body:new p(e),buttons:[l.Dialog.cancelButton({label:e.cancelLabel}),l.Dialog.okButton({label:e.okLabel})]});return t.launch()}e.getCode=t})(h||(h={}));class u extends l.Dialog{handleEvent(e){if(e.type==="keydown"){const t=e;const{code:n,shiftKey:i}=t;if(i&&n==="Enter"){return this.resolve()}if(n==="Enter"){return}}super.handleEvent(e)}}class p extends c.Widget{constructor(e){super();const{contentFactory:t,rendermime:n,mimeType:i}=e;const s=new d.CodeCellModel;s.mimeType=i!==null&&i!==void 0?i:"";this._prompt=new d.CodeCell({contentFactory:t,rendermime:n,model:s,placeholder:false}).initializeState();this._prompt.inputArea.promptNode.remove();this.node.appendChild(this._prompt.node)}getValue(){return this._prompt.model.sharedModel.getSource()}onAfterAttach(e){super.onAfterAttach(e);this._prompt.activate()}}var m=n(54723);class g{constructor(e){this._services=e.editorServices}createNewEditor(e){const{content:t,mimeType:n,path:i}=e;const s=this._services.factoryService.newInlineEditor;const o=this._services.mimeTypeService;const r=new m.CodeEditor.Model({mimeType:n||o.getMimeTypeByFilePath(i)});r.sharedModel.source=t;const a=new m.CodeEditorWrapper({editorOptions:{config:{readOnly:true,lineNumbers:true}},model:r,factory:s});a.node.setAttribute("data-jp-debugger","true");a.disposed.connect((()=>{r.dispose()}));return a}}var f=n(30619);var v=n(44336);var _=n(2336);var b=n(30397);var y=n(71674);var w=n(22819);const C="jp-DebuggerEditor-highlight";const x=1e3;class S{constructor(e){var t,n,i,s;this._src=e.src;this._id=(i=(n=(t=e.debuggerService.session)===null||t===void 0?void 0:t.connection)===null||n===void 0?void 0:n.id)!==null&&i!==void 0?i:"";this._path=(s=e.path)!==null&&s!==void 0?s:"";this._debuggerService=e.debuggerService;this._editor=e.getEditor;this._editorMonitor=new b.ActivityMonitor({signal:this._src.changed,timeout:x});this._editorMonitor.activityStopped.connect((()=>{this._sendEditorBreakpoints()}),this);this._debuggerService.model.breakpoints.changed.connect((async()=>{const e=this.editor;if(!e||e.isDisposed){return}this._addBreakpointsToEditor()}));this._debuggerService.model.breakpoints.restored.connect((async()=>{const e=this.editor;if(!e||e.isDisposed){return}this._addBreakpointsToEditor()}));this._debuggerService.model.callstack.currentFrameChanged.connect((()=>{const e=this.editor;if(e){S.clearHighlight(e)}}));this._breakpointEffect=y.StateEffect.define({map:(e,t)=>({pos:e.pos.map((e=>t.mapPos(e)))})});this._breakpointState=y.StateField.define({create:()=>y.RangeSet.empty,update:(e,t)=>{e=e.map(t.changes);for(let n of t.effects){if(n.is(this._breakpointEffect)){let t=n;if(t.value.pos.length){e=e.update({add:t.value.pos.map((e=>k.breakpointMarker.range(e))),sort:true})}else{e=y.RangeSet.empty}}}return e}});this._gutter=new y.Compartment;this._highlightDeco=w.Decoration.line({class:C});this._highlightState=y.StateField.define({create:()=>w.Decoration.none,update:(e,t)=>{e=e.map(t.changes);for(let n of t.effects){if(n.is(S._highlightEffect)){let t=n;if(t.value.pos.length){e=e.update({add:t.value.pos.map((e=>this._highlightDeco.range(e)))})}else{e=w.Decoration.none}}}return e},provide:e=>w.EditorView.decorations.from(e)});void e.editorReady().then((()=>{this._setupEditor()}))}get editor(){return this._editor()}dispose(){if(this.isDisposed){return}this._editorMonitor.dispose();this._clearEditor();this.isDisposed=true;_.Signal.clearData(this)}refreshBreakpoints(){this._addBreakpointsToEditor()}_setupEditor(){const e=this.editor;if(!e||e.isDisposed){return}e.setOption("lineNumbers",true);const t=[this._breakpointState,this._highlightState,y.Prec.highest((0,w.gutter)({class:"cm-breakpoint-gutter",renderEmptyElements:true,markers:e=>e.state.field(this._breakpointState),initialSpacer:()=>k.breakpointMarker,domEventHandlers:{mousedown:(e,t)=>{this._onGutterClick(e,t.from);return true}}}))];e.injectExtension(this._gutter.of(t));this._addBreakpointsToEditor()}_clearEditor(){const e=this.editor;if(!e||e.isDisposed){return}S.clearHighlight(e);this._clearGutter(e);e.setOption("lineNumbers",false);e.editor.dispatch({effects:this._gutter.reconfigure([])})}_sendEditorBreakpoints(){var e;if((e=this.editor)===null||e===void 0?void 0:e.isDisposed){return}const t=this._getBreakpointsFromEditor().map((e=>{var t,n;return k.createBreakpoint(((n=(t=this._debuggerService.session)===null||t===void 0?void 0:t.connection)===null||n===void 0?void 0:n.name)||"",e)}));void this._debuggerService.updateBreakpoints(this._src.getSource(),t,this._path)}_onGutterClick(e,t){var n,i,s;if(this._id!==((i=(n=this._debuggerService.session)===null||n===void 0?void 0:n.connection)===null||i===void 0?void 0:i.id)){return}const o=e.state.doc.lineAt(t).number;let r=e.state.field(this._breakpointState);let a=false;r.between(t,t,(()=>{a=true}));let l=this._getBreakpoints();if(a){l=l.filter((e=>e.line!==o))}else{l.push(k.createBreakpoint((s=this._path)!==null&&s!==void 0?s:this._debuggerService.session.connection.name,o))}l.sort(((e,t)=>e.line-t.line));void this._debuggerService.updateBreakpoints(this._src.getSource(),l,this._path)}_addBreakpointsToEditor(){var e,t;if(this._id!==((t=(e=this._debuggerService.session)===null||e===void 0?void 0:e.connection)===null||t===void 0?void 0:t.id)){return}const n=this.editor;const i=this._getBreakpoints();this._clearGutter(n);const s=i.map((e=>n.state.doc.line(e.line).from));n.editor.dispatch({effects:this._breakpointEffect.of({pos:s})})}_getBreakpointsFromEditor(){const e=this.editor;const t=e.editor.state.field(this._breakpointState);let n=[];t.between(0,e.doc.length,(t=>{n.push(e.doc.lineAt(t).number)}));return n}_clearGutter(e){if(!e){return}const t=e.editor;t.dispatch({effects:this._breakpointEffect.of({pos:[]})})}_getBreakpoints(){const e=this._src.getSource();return this._debuggerService.model.breakpoints.getBreakpoints(this._path||this._debuggerService.getCodeId(e))}}(function(e){e._highlightEffect=y.StateEffect.define({map:(e,t)=>({pos:e.pos.map((e=>t.mapPos(e)))})});function t(t,i){n(t);const s=t;const o=s.doc.line(i).from;s.editor.dispatch({effects:e._highlightEffect.of({pos:[o]})})}e.showCurrentLine=t;function n(t){if(!t||t.isDisposed){return}const n=t;n.editor.dispatch({effects:e._highlightEffect.of({pos:[]})})}e.clearHighlight=n})(S||(S={}));var k;(function(e){e.breakpointMarker=new class extends w.GutterMarker{toDOM(){const e=document.createTextNode("●");return e}};function t(e,t){return{line:t,verified:true,source:{name:e}}}e.createBreakpoint=t})(k||(k={}));class j{constructor(e){this._debuggerService=e.debuggerService;this._consolePanel=e.widget;this._cellMap=new v.ObservableMap;const t=this._consolePanel.console;if(t.promptCell){this._addEditorHandler(t.promptCell)}t.promptCellCreated.connect(((e,t)=>{this._addEditorHandler(t)}));const n=()=>{for(const e of t.cells){this._addEditorHandler(e)}};n();this._consolePanel.console.cells.changed.connect(n)}dispose(){if(this.isDisposed){return}this.isDisposed=true;this._cellMap.values().forEach((e=>e.dispose()));this._cellMap.dispose();_.Signal.clearData(this)}_addEditorHandler(e){const t=e.model.id;if(e.model.type!=="code"||this._cellMap.has(t)){return}const n=e;const i=new S({debuggerService:this._debuggerService,editorReady:async()=>{await n.ready;return n.editor},getEditor:()=>n.editor,src:e.model.sharedModel});n.disposed.connect((()=>{this._cellMap.delete(t);i.dispose()}));this._cellMap.set(t,i)}}class I{constructor(e){var t;this._debuggerService=e.debuggerService;this._fileEditor=e.widget.content;this._hasLineNumber=(t=this._fileEditor.editor.getOption("lineNumbers"))!==null&&t!==void 0?t:false;this._editorHandler=new S({debuggerService:this._debuggerService,editorReady:()=>Promise.resolve(this._fileEditor.editor),getEditor:()=>this._fileEditor.editor,src:this._fileEditor.model.sharedModel})}dispose(){var e,t;if(this.isDisposed){return}this.isDisposed=true;(e=this._editorHandler)===null||e===void 0?void 0:e.dispose();(t=this._editorHandler)===null||t===void 0?void 0:t.editor.setOptions({lineNumbers:this._hasLineNumber});_.Signal.clearData(this)}}class E{constructor(e){this._debuggerService=e.debuggerService;this._notebookPanel=e.widget;this._cellMap=new v.ObservableMap;const t=this._notebookPanel.content;t.model.cells.changed.connect(this._onCellsChanged,this);this._onCellsChanged()}dispose(){if(this.isDisposed){return}this.isDisposed=true;this._cellMap.values().forEach((e=>{var t;e.dispose();(t=e.editor)===null||t===void 0?void 0:t.setOptions({...this._notebookPanel.content.editorConfig.code})}));this._cellMap.dispose();_.Signal.clearData(this)}_onCellsChanged(e,t){var n;this._notebookPanel.content.widgets.forEach((e=>this._addEditorHandler(e)));if((t===null||t===void 0?void 0:t.type)==="move"){for(const e of t.newValues){(n=this._cellMap.get(e.id))===null||n===void 0?void 0:n.refreshBreakpoints()}}}_addEditorHandler(e){const t=e.model.id;if(e.model.type!=="code"||this._cellMap.has(t)){return}const n=e;const i=new S({debuggerService:this._debuggerService,editorReady:async()=>{await n.ready;return n.editor},getEditor:()=>n.editor,src:e.model.sharedModel});n.disposed.connect((()=>{this._cellMap.delete(t);i.dispose()}));this._cellMap.set(e.model.id,i)}}const T="debugger-icon";function M(e,t,n,s,o=f.nullTranslator){const r=o.load("jupyterlab");const a=new i.ToolbarButton({className:"jp-DebuggerBugButton",icon:i.bugIcon,tooltip:r.__("Enable Debugger"),pressedIcon:i.bugDotIcon,pressedTooltip:r.__("Disable Debugger"),disabledTooltip:r.__("Select a kernel that supports debugging to enable debugger"),enabled:n,pressed:s,onClick:t});if(!e.toolbar.insertBefore("kernelName",T,a)){e.toolbar.addItem(T,a)}return a}function D(e,t,n=true,i){if(e){e.enabled=n;e.pressed=t;if(i){e.onClick=i}}}class A{constructor(e){this._handlers={};this._contextKernelChangedHandlers={};this._kernelChangedHandlers={};this._statusChangedHandlers={};this._iopubMessageHandlers={};this._iconButtons={};this._type=e.type;this._shell=e.shell;this._service=e.service}get activeWidget(){return this._activeWidget}async update(e,t){if(!t){delete this._kernelChangedHandlers[e.id];delete this._statusChangedHandlers[e.id];delete this._iopubMessageHandlers[e.id];return this.updateWidget(e,t)}const n=()=>{void this.updateWidget(e,t)};const i=this._kernelChangedHandlers[e.id];if(i){t.kernelChanged.disconnect(i)}this._kernelChangedHandlers[e.id]=n;t.kernelChanged.connect(n);const s=(n,i)=>{if(i.endsWith("restarting")){void this.updateWidget(e,t)}};const o=this._statusChangedHandlers[e.id];if(o){t.statusChanged.disconnect(o)}t.statusChanged.connect(s);this._statusChangedHandlers[e.id]=s;const r=(e,t)=>{if(this._service.isStarted&&!this._service.hasStoppedThreads()&&t.parent_header.msg_type==="execute_request"){void this._service.displayDefinedVariables()}};const a=this._iopubMessageHandlers[e.id];if(a){t.iopubMessage.disconnect(a)}t.iopubMessage.connect(r);this._iopubMessageHandlers[e.id]=r;this._activeWidget=e;return this.updateWidget(e,t)}async updateContext(e,t){const n=()=>{const{session:n}=t;void this.update(e,n)};const i=this._contextKernelChangedHandlers[e.id];if(i){t.kernelChanged.disconnect(i)}this._contextKernelChangedHandlers[e.id]=n;t.kernelChanged.connect(n);return this.update(e,t.session)}async updateWidget(e,t){var n,i,s,o;if(!this._service.model||!t){return}const r=()=>this._shell.currentWidget===e;const a=()=>{if(!this._handlers[e.id]){e.node.removeAttribute("data-jp-debugger");return}e.node.setAttribute("data-jp-debugger","true")};const l=()=>{if(this._handlers[e.id]){return}switch(this._type){case"notebook":this._handlers[e.id]=new E({debuggerService:this._service,widget:e});break;case"console":this._handlers[e.id]=new j({debuggerService:this._service,widget:e});break;case"file":this._handlers[e.id]=new I({debuggerService:this._service,widget:e});break;default:throw Error(`No handler for the type ${this._type}`)}a()};const d=()=>{var n,i,s,o;const r=this._handlers[e.id];if(!r){return}r.dispose();delete this._handlers[e.id];delete this._kernelChangedHandlers[e.id];delete this._statusChangedHandlers[e.id];delete this._iopubMessageHandlers[e.id];delete this._contextKernelChangedHandlers[e.id];if(((i=(n=this._service.session)===null||n===void 0?void 0:n.connection)===null||i===void 0?void 0:i.path)===(t===null||t===void 0?void 0:t.path)||!((o=(s=this._service.session)===null||s===void 0?void 0:s.connection)===null||o===void 0?void 0:o.kernel)){const e=this._service.model;e.clear()}a()};const c=(t=true)=>{const n=this._iconButtons[e.id];if(!n){this._iconButtons[e.id]=M(e,m,this._service.isStarted,t)}else{D(n,this._service.isStarted,t,m)}};const h=()=>{var e;return this._service.isStarted&&((e=this._previousConnection)===null||e===void 0?void 0:e.id)===(t===null||t===void 0?void 0:t.id)};const u=async()=>{this._service.session.connection=t;await this._service.stop()};const p=async()=>{var e,n;this._service.session.connection=t;this._previousConnection=t;await this._service.restoreState(true);await this._service.displayDefinedVariables();if((n=(e=this._service.session)===null||e===void 0?void 0:e.capabilities)===null||n===void 0?void 0:n.supportsModulesRequest){await this._service.displayModules()}};const m=async()=>{if(!r()){return}const t=this._iconButtons[e.id];if(h()){await u();d();D(t,false)}else{await p();l();D(t,true)}};c(false);e.disposed.connect((async()=>{if(h()){await u()}d();delete this._iconButtons[e.id];delete this._contextKernelChangedHandlers[e.id]}));const g=await this._service.isAvailable(t);if(!g){d();D(this._iconButtons[e.id],false,false);return}if(!this._service.session){this._service.session=new Re.Session({connection:t,config:this._service.config})}else{this._previousConnection=((n=this._service.session.connection)===null||n===void 0?void 0:n.kernel)?this._service.session.connection:null;this._service.session.connection=t}await this._service.restoreState(false);if(this._service.isStarted&&!this._service.hasStoppedThreads()){await this._service.displayDefinedVariables();if((s=(i=this._service.session)===null||i===void 0?void 0:i.capabilities)===null||s===void 0?void 0:s.supportsModulesRequest){await this._service.displayModules()}}D(this._iconButtons[e.id],this._service.isStarted,true);if(!this._service.isStarted){d();this._service.session.connection=(o=this._previousConnection)!==null&&o!==void 0?o:t;await this._service.restoreState(false);return}l();this._previousConnection=t}}class P{constructor(){this._breakpoints=new Map;this._changed=new _.Signal(this);this._restored=new _.Signal(this);this._clicked=new _.Signal(this)}get changed(){return this._changed}get restored(){return this._restored}get clicked(){return this._clicked}get breakpoints(){return this._breakpoints}setBreakpoints(e,t){this._breakpoints.set(e,t);this._changed.emit(t)}getBreakpoints(e){var t;return(t=this._breakpoints.get(e))!==null&&t!==void 0?t:[]}restoreBreakpoints(e){this._breakpoints=e;this._restored.emit()}}class L{constructor(){this._state=[];this._currentFrame=null;this._framesChanged=new _.Signal(this);this._currentFrameChanged=new _.Signal(this)}get frames(){return this._state}set frames(e){this._state=e;const t=this.frame!==null?R.getFrameId(this.frame):"";const n=e.find((e=>R.getFrameId(e)===t));if(!n){this.frame=e[0]}this._framesChanged.emit(e)}get frame(){return this._currentFrame}set frame(e){this._currentFrame=e;this._currentFrameChanged.emit(e)}get framesChanged(){return this._framesChanged}get currentFrameChanged(){return this._currentFrameChanged}}var R;(function(e){function t(e){var t;return`${(t=e===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.path}-${e===null||e===void 0?void 0:e.id}`}e.getFrameId=t})(R||(R={}));class N{constructor(e){this._currentSourceOpened=new _.Signal(this);this._currentSourceChanged=new _.Signal(this);this.currentFrameChanged=e.currentFrameChanged}get currentSourceOpened(){return this._currentSourceOpened}get currentSourceChanged(){return this._currentSourceChanged}get currentSource(){return this._currentSource}set currentSource(e){this._currentSource=e;this._currentSourceChanged.emit(e)}open(){this._currentSourceOpened.emit(this._currentSource)}}var O=n(26568);const B=500;const F=(e,t)=>{if(e.namet.name){return 1}return 0};class z{constructor(){this._filteredKernelSources=null;this._filter="";this._isDisposed=false;this._kernelSources=null;this._changed=new _.Signal(this);this._filterChanged=new _.Signal(this);this._kernelSourceOpened=new _.Signal(this);this.refresh=this.refresh.bind(this);this._refreshDebouncer=new O.Debouncer(this.refresh,B)}get filter(){return this._filter}set filter(e){this._filter=e;this._filterChanged.emit(e);void this._refreshDebouncer.invoke()}get isDisposed(){return this._isDisposed}get kernelSources(){return this._kernelSources}set kernelSources(e){this._kernelSources=e;this.refresh()}get changed(){return this._changed}get filterChanged(){return this._filterChanged}get kernelSourceOpened(){return this._kernelSourceOpened}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._refreshDebouncer.dispose();_.Signal.clearData(this)}open(e){this._kernelSourceOpened.emit(e)}getFilteredKernelSources(){const e=new RegExp(this._filter);return this._kernelSources.filter((t=>e.test(t.name)))}refresh(){if(this._kernelSources){this._filteredKernelSources=this._filter?this.getFilteredKernelSources():this._kernelSources;this._filteredKernelSources.sort(F)}else{this._kernelSources=new Array;this._filteredKernelSources=new Array}this._changed.emit(this._filteredKernelSources)}}class H{constructor(){this._selectedVariable=null;this._state=[];this._variableExpanded=new _.Signal(this);this._changed=new _.Signal(this)}get scopes(){return this._state}set scopes(e){this._state=e;this._changed.emit()}get changed(){return this._changed}get variableExpanded(){return this._variableExpanded}get selectedVariable(){return this._selectedVariable}set selectedVariable(e){this._selectedVariable=e}expandVariable(e){this._variableExpanded.emit(e)}}class W{constructor(){this._disposed=new _.Signal(this);this._isDisposed=false;this._hasRichVariableRendering=false;this._supportCopyToGlobals=false;this._stoppedThreads=new Set;this._title="-";this._titleChanged=new _.Signal(this);this.breakpoints=new P;this.callstack=new L;this.variables=new H;this.sources=new N({currentFrameChanged:this.callstack.currentFrameChanged});this.kernelSources=new z}get disposed(){return this._disposed}get hasRichVariableRendering(){return this._hasRichVariableRendering}set hasRichVariableRendering(e){this._hasRichVariableRendering=e}get supportCopyToGlobals(){return this._supportCopyToGlobals}set supportCopyToGlobals(e){this._supportCopyToGlobals=e}get isDisposed(){return this._isDisposed}get stoppedThreads(){return this._stoppedThreads}set stoppedThreads(e){this._stoppedThreads=e}get title(){return this._title}set title(e){if(e===this._title){return}this._title=e!==null&&e!==void 0?e:"-";this._titleChanged.emit(e)}get titleChanged(){return this._titleChanged}dispose(){if(this._isDisposed){return}this._isDisposed=true;this.kernelSources.dispose();this._disposed.emit()}clear(){this._stoppedThreads.clear();const e=new Map;this.breakpoints.restoreBreakpoints(e);this.callstack.frames=[];this.variables.scopes=[];this.sources.currentSource=null;this.kernelSources.kernelSources=null;this.title="-"}}class V extends c.Panel{constructor(e){super();this._filter=new Set;this._grid=null;this._pending=null;this.commands=e.commands;this.model=e.model;this.themeManager=e.themeManager;this.translator=e.translator;this.model.changed.connect((()=>this.update()),this);this.addClass("jp-DebuggerVariables-body")}get filter(){return this._filter}set filter(e){this._filter=e;this.update()}get scope(){return this._scope}set scope(e){this._scope=e;if(e!=="Globals"){this.addClass("jp-debuggerVariables-local")}else{this.removeClass("jp-debuggerVariables-local")}this.update()}async initialize(){if(this._grid||this._pending){return}const{Grid:e}=await(this._pending=Promise.all([n.e(4470),n.e(8426)]).then(n.bind(n,5011)));const{commands:t,model:i,themeManager:s,translator:o}=this;this._grid=new e({commands:t,model:i,themeManager:s,translator:o});this._grid.addClass("jp-DebuggerVariables-grid");this._pending=null;this.addWidget(this._grid);this.update()}onBeforeShow(e){if(!this._grid&&!this._pending){void this.initialize()}super.onBeforeShow(e)}onUpdateRequest(e){var t;if(this._grid){const{dataModel:e}=this._grid;e.filter=this._filter;e.scope=this._scope;e.setData((t=this.model.scopes)!==null&&t!==void 0?t:[])}super.onUpdateRequest(e)}}var U=n(44539);var q=n(5592);const $="jp-VariableRendererPanel";const K="jp-VariableRendererPanel-renderer";class J extends l.MainAreaWidget{constructor(e){const{dataLoader:t,rendermime:n,translator:i}=e;const s=new c.Panel;const o=new q.PromiseDelegate;super({content:s,reveal:Promise.all([t,o.promise])});this.content.addClass($);this.trans=(i!==null&&i!==void 0?i:f.nullTranslator).load("jupyterlab");this.dataLoader=t;this.renderMime=n;this._dataHash=null;this.refresh().then((()=>{o.resolve()})).catch((e=>o.reject(e)))}async refresh(e=false){let t=await this.dataLoader();if(Object.keys(t.data).length===0){t={data:{"text/plain":this.trans.__("The variable is undefined in the active context.")},metadata:{}}}if(t.data){const n=r(JSON.stringify(t),17);if(e||this._dataHash!==n){if(this.content.layout){this.content.widgets.forEach((e=>{this.content.layout.removeWidget(e)}))}const e=this.renderMime.preferredMimeType(t.data,"any");if(e){const i=this.renderMime.createRenderer(e);i.addClass(K);const s=new U.MimeModel({...t,trusted:true});this._dataHash=n;await i.renderModel(s);this.content.addWidget(i)}else{this._dataHash=null;return Promise.reject("Unable to determine the preferred mime type.")}}}else{this._dataHash=null;return Promise.reject("Unable to get a view on the variable.")}}}class G{constructor(e){var t,n;this._eventMessage=new _.Signal(this);this._isDisposed=false;this._sessionChanged=new _.Signal(this);this._pauseOnExceptionChanged=new _.Signal(this);this._config=e.config;this._session=null;this._specsManager=(t=e.specsManager)!==null&&t!==void 0?t:null;this._model=new Re.Model;this._debuggerSources=(n=e.debuggerSources)!==null&&n!==void 0?n:null;this._trans=(e.translator||f.nullTranslator).load("jupyterlab")}get eventMessage(){return this._eventMessage}get config(){return this._config}get isDisposed(){return this._isDisposed}get isStarted(){var e,t;return(t=(e=this._session)===null||e===void 0?void 0:e.isStarted)!==null&&t!==void 0?t:false}get pauseOnExceptionChanged(){return this._pauseOnExceptionChanged}get model(){return this._model}get session(){return this._session}set session(e){var t;if(this._session===e){return}if(this._session){this._session.dispose()}this._session=e;(t=this._session)===null||t===void 0?void 0:t.eventMessage.connect(((e,t)=>{if(t.event==="stopped"){this._model.stoppedThreads.add(t.body.threadId);void this._getAllFrames()}else if(t.event==="continued"){this._model.stoppedThreads.delete(t.body.threadId);this._clearModel();this._clearSignals()}this._eventMessage.emit(t)}));this._sessionChanged.emit(e)}get sessionChanged(){return this._sessionChanged}dispose(){if(this.isDisposed){return}this._isDisposed=true;_.Signal.clearData(this)}getCodeId(e){var t,n,i,s;try{return this._config.getCodeId(e,(s=(i=(n=(t=this.session)===null||t===void 0?void 0:t.connection)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.name)!==null&&s!==void 0?s:"")}catch(o){return""}}hasStoppedThreads(){var e,t;return(t=((e=this._model)===null||e===void 0?void 0:e.stoppedThreads.size)>0)!==null&&t!==void 0?t:false}async isAvailable(e){var t,n,i,s;if(!this._specsManager){return true}await this._specsManager.ready;const o=e===null||e===void 0?void 0:e.kernel;if(!o){return false}const r=o.name;if(!((t=this._specsManager.specs)===null||t===void 0?void 0:t.kernelspecs[r])){return true}return!!((s=(i=(n=this._specsManager.specs.kernelspecs[r])===null||n===void 0?void 0:n.metadata)===null||i===void 0?void 0:i["debugger"])!==null&&s!==void 0?s:false)}async clearBreakpoints(){var e;if(((e=this.session)===null||e===void 0?void 0:e.isStarted)!==true){return}this._model.breakpoints.breakpoints.forEach(((e,t,n)=>{void this._setBreakpoints([],t)}));let t=new Map;this._model.breakpoints.restoreBreakpoints(t)}async continue(){try{if(!this.session){throw new Error("No active debugger session")}await this.session.sendRequest("continue",{threadId:this._currentThread()});this._model.stoppedThreads.delete(this._currentThread());this._clearModel();this._clearSignals()}catch(e){console.error("Error:",e.message)}}async getSource(e){var t,n;if(!this.session){throw new Error("No active debugger session")}const i=await this.session.sendRequest("source",{source:e,sourceReference:(t=e.sourceReference)!==null&&t!==void 0?t:0});return{...i.body,path:(n=e.path)!==null&&n!==void 0?n:""}}async evaluate(e){var t;if(!this.session){throw new Error("No active debugger session")}const n=(t=this.model.callstack.frame)===null||t===void 0?void 0:t.id;const i=await this.session.sendRequest("evaluate",{context:"repl",expression:e,frameId:n});if(!i.success){return null}this._clearModel();await this._getAllFrames();return i.body}async next(){try{if(!this.session){throw new Error("No active debugger session")}await this.session.sendRequest("next",{threadId:this._currentThread()})}catch(e){console.error("Error:",e.message)}}async inspectRichVariable(e,t){if(!this.session){throw new Error("No active debugger session")}const n=await this.session.sendRequest("richInspectVariables",{variableName:e,frameId:t});if(n.success){return n.body}else{throw new Error(n.message)}}async inspectVariable(e){if(!this.session){throw new Error("No active debugger session")}const t=await this.session.sendRequest("variables",{variablesReference:e});if(t.success){return t.body.variables}else{throw new Error(t.message)}}async copyToGlobals(e){if(!this.session){throw new Error("No active debugger session")}if(!this.model.supportCopyToGlobals){throw new Error('The "copyToGlobals" request is not supported by the kernel')}const t=this.model.callstack.frames;this.session.sendRequest("copyToGlobals",{srcVariableName:e,dstVariableName:e,srcFrameId:t[0].id}).then((async()=>{const e=await this._getScopes(t[0]);const n=await Promise.all(e.map((e=>this._getVariables(e))));const i=this._convertScopes(e,n);this._model.variables.scopes=i})).catch((e=>{console.error(e)}))}async displayDefinedVariables(){if(!this.session){throw new Error("No active debugger session")}const e=await this.session.sendRequest("inspectVariables",{});const t=e.body.variables;const n=[{name:this._trans.__("Globals"),variables:t}];this._model.variables.scopes=n}async displayModules(){if(!this.session){throw new Error("No active debugger session")}const e=await this.session.sendRequest("modules",{});this._model.kernelSources.kernelSources=e.body.modules.map((e=>({name:e.name,path:e.path})))}async restart(){const{breakpoints:e}=this._model.breakpoints;await this.stop();await this.start();await this._restoreBreakpoints(e)}async restoreState(e){var t,n,i,s,o,r,a,l,d,c;if(!this.model||!this.session){return}const h=await this.session.restoreState();const{body:u}=h;const p=this._mapBreakpoints(u.breakpoints);const m=new Set(u.stoppedThreads);this._model.hasRichVariableRendering=u.richRendering===true;this._model.supportCopyToGlobals=u.copyToGlobals===true;this._config.setHashParams({kernel:(s=(i=(n=(t=this.session)===null||t===void 0?void 0:t.connection)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.name)!==null&&s!==void 0?s:"",method:u.hashMethod,seed:u.hashSeed});this._config.setTmpFileParams({kernel:(l=(a=(r=(o=this.session)===null||o===void 0?void 0:o.connection)===null||r===void 0?void 0:r.kernel)===null||a===void 0?void 0:a.name)!==null&&l!==void 0?l:"",prefix:u.tmpFilePrefix,suffix:u.tmpFileSuffix});this._model.stoppedThreads=m;if(!this.isStarted&&(e||m.size!==0)){await this.start()}if(this.isStarted||e){this._model.title=this.isStarted?((c=(d=this.session)===null||d===void 0?void 0:d.connection)===null||c===void 0?void 0:c.name)||"-":"-"}if(this._debuggerSources){const e=this._filterBreakpoints(p);this._model.breakpoints.restoreBreakpoints(e)}else{this._model.breakpoints.restoreBreakpoints(p)}if(m.size!==0){await this._getAllFrames()}else if(this.isStarted){this._clearModel();this._clearSignals()}if(this.session.currentExceptionFilters){await this.pauseOnExceptions(this.session.currentExceptionFilters)}}start(){if(!this.session){throw new Error("No active debugger session")}return this.session.start()}async pause(){try{if(!this.session){throw new Error("No active debugger session")}await this.session.sendRequest("pause",{threadId:this._currentThread()})}catch(e){console.error("Error:",e.message)}}async stepIn(){try{if(!this.session){throw new Error("No active debugger session")}await this.session.sendRequest("stepIn",{threadId:this._currentThread()})}catch(e){console.error("Error:",e.message)}}async stepOut(){try{if(!this.session){throw new Error("No active debugger session")}await this.session.sendRequest("stepOut",{threadId:this._currentThread()})}catch(e){console.error("Error:",e.message)}}async stop(){if(!this.session){throw new Error("No active debugger session")}await this.session.stop();if(this._model){this._model.clear()}}async updateBreakpoints(e,t,n){var i;if(!((i=this.session)===null||i===void 0?void 0:i.isStarted)){return}if(!n){n=(await this._dumpCell(e)).body.sourcePath}const s=await this.session.restoreState();const o=t.filter((({line:e})=>typeof e==="number")).map((({line:e})=>({line:e})));const r=this._mapBreakpoints(s.body.breakpoints);if(this._debuggerSources){const e=this._filterBreakpoints(r);this._model.breakpoints.restoreBreakpoints(e)}else{this._model.breakpoints.restoreBreakpoints(r)}let a=new Set;const l=await this._setBreakpoints(o,n);const d=l.body.breakpoints.filter(((e,t,n)=>{const i=n.findIndex((t=>t.line===e.line))>-1;const s=!a.has(e.line);a.add(e.line);return i&&s}));this._model.breakpoints.setBreakpoints(n,d);await this.session.sendRequest("configurationDone",{})}pauseOnExceptionsIsValid(){var e,t;if(this.isStarted){if(((t=(e=this.session)===null||e===void 0?void 0:e.exceptionBreakpointFilters)===null||t===void 0?void 0:t.length)!==0){return true}}return false}async pauseOnExceptionsFilter(e){var t;if(!((t=this.session)===null||t===void 0?void 0:t.isStarted)){return}let n=this.session.currentExceptionFilters;if(this.session.isPausingOnException(e)){const t=n.indexOf(e);n.splice(t,1)}else{n===null||n===void 0?void 0:n.push(e)}await this.pauseOnExceptions(n)}async pauseOnExceptions(e){var t,n;if(!((t=this.session)===null||t===void 0?void 0:t.isStarted)){return}const i=((n=this.session.exceptionBreakpointFilters)===null||n===void 0?void 0:n.map((e=>e.filter)))||[];let s={filters:[]};e.forEach((e=>{if(i.includes(e)){s.filters.push(e)}}));this.session.currentExceptionFilters=s.filters;await this.session.sendRequest("setExceptionBreakpoints",s);this._pauseOnExceptionChanged.emit()}getDebuggerState(){var e,t,n,i,s,o,r;const a=this._model.breakpoints.breakpoints;let l=[];if(this._debuggerSources){for(const d of a.keys()){const a=this._debuggerSources.find({focus:false,kernel:(i=(n=(t=(e=this.session)===null||e===void 0?void 0:e.connection)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.name)!==null&&i!==void 0?i:"",path:(r=(o=(s=this._session)===null||s===void 0?void 0:s.connection)===null||o===void 0?void 0:o.path)!==null&&r!==void 0?r:"",source:d});const c=a.map((e=>e.src.getSource()));l=l.concat(c)}}return{cells:l,breakpoints:a}}async restoreDebuggerState(e){var t,n,i,s;await this.start();for(const c of e.cells){await this._dumpCell(c)}const o=new Map;const r=(s=(i=(n=(t=this.session)===null||t===void 0?void 0:t.connection)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.name)!==null&&s!==void 0?s:"";const{prefix:a,suffix:l}=this._config.getTmpFileParams(r);for(const c of e.breakpoints){const[e,t]=c;const n=e.substr(0,e.length-l.length);const i=n.substr(n.lastIndexOf("/")+1);const s=a.concat(i).concat(l);o.set(s,t)}await this._restoreBreakpoints(o);const d=await this.session.sendRequest("configurationDone",{});await this.restoreState(false);return d.success}_clearModel(){this._model.callstack.frames=[];this._model.variables.scopes=[]}_clearSignals(){this._model.callstack.currentFrameChanged.disconnect(this._onCurrentFrameChanged,this);this._model.variables.variableExpanded.disconnect(this._onVariableExpanded,this)}_convertScopes(e,t){if(!t||!e){return[]}return e.map(((e,n)=>({name:e.name,variables:t[n].map((e=>({...e})))})))}_currentThread(){return 1}async _dumpCell(e){if(!this.session){throw new Error("No active debugger session")}return this.session.sendRequest("dumpCell",{code:e})}_filterBreakpoints(e){if(!this._debuggerSources){return e}let t=new Map;for(const n of e){const[e,i]=n;i.forEach((()=>{var n,s,o,r,a,l,d;this._debuggerSources.find({focus:false,kernel:(r=(o=(s=(n=this.session)===null||n===void 0?void 0:n.connection)===null||s===void 0?void 0:s.kernel)===null||o===void 0?void 0:o.name)!==null&&r!==void 0?r:"",path:(d=(l=(a=this._session)===null||a===void 0?void 0:a.connection)===null||l===void 0?void 0:l.path)!==null&&d!==void 0?d:"",source:e}).forEach((()=>{if(i.length>0){t.set(e,i)}}))}))}return t}async _getAllFrames(){this._model.callstack.currentFrameChanged.connect(this._onCurrentFrameChanged,this);this._model.variables.variableExpanded.connect(this._onVariableExpanded,this);const e=await this._getFrames(this._currentThread());this._model.callstack.frames=e}async _getFrames(e){if(!this.session){throw new Error("No active debugger session")}const t=await this.session.sendRequest("stackTrace",{threadId:e});const n=t.body.stackFrames;return n}async _getScopes(e){if(!this.session){throw new Error("No active debugger session")}if(!e){return[]}const t=await this.session.sendRequest("scopes",{frameId:e.id});return t.body.scopes}async _getVariables(e){if(!this.session){throw new Error("No active debugger session")}if(!e){return[]}const t=await this.session.sendRequest("variables",{variablesReference:e.variablesReference});return t.body.variables}_mapBreakpoints(e){if(!e.length){return new Map}return e.reduce(((e,t)=>{const{breakpoints:n,source:i}=t;e.set(i,n.map((e=>({...e,source:{path:i},verified:true}))));return e}),new Map)}async _onCurrentFrameChanged(e,t){if(!t){return}const n=await this._getScopes(t);const i=await Promise.all(n.map((e=>this._getVariables(e))));const s=this._convertScopes(n,i);this._model.variables.scopes=s}async _onVariableExpanded(e,t){if(!this.session){throw new Error("No active debugger session")}const n=await this.session.sendRequest("variables",{variablesReference:t.variablesReference});let i={...t,expanded:true};n.body.variables.forEach((e=>{i={[e.name]:e,...i}}));const s=this._model.variables.scopes.map((e=>{const n=e.variables.findIndex((e=>e.variablesReference===t.variablesReference));e.variables[n]=i;return{...e}}));this._model.variables.scopes=[...s];return n.body.variables}async _setBreakpoints(e,t){if(!this.session){throw new Error("No active debugger session")}return await this.session.sendRequest("setBreakpoints",{breakpoints:e,source:{path:t},sourceModified:false})}async _restoreBreakpoints(e){for(const[t,n]of e){await this._setBreakpoints(n.filter((({line:e})=>typeof e==="number")).map((({line:e})=>({line:e}))),t)}this._model.breakpoints.restoreBreakpoints(e)}}class Y{constructor(e){this._seq=0;this._ready=new q.PromiseDelegate;this._isDisposed=false;this._isStarted=false;this._exceptionPaths=[];this._exceptionBreakpointFilters=[];this._currentExceptionFilters={};this._disposed=new _.Signal(this);this._eventMessage=new _.Signal(this);this.connection=e.connection;this._config=e.config;this.translator=e.translator||f.nullTranslator}get isDisposed(){return this._isDisposed}get capabilities(){return this._capabilities}get disposed(){return this._disposed}get connection(){return this._connection}set connection(e){var t,n;if(this._connection){this._connection.iopubMessage.disconnect(this._handleEvent,this)}this._connection=e;if(!this._connection){this._isStarted=false;return}this._connection.iopubMessage.connect(this._handleEvent,this);this._ready=new q.PromiseDelegate;const i=(n=(t=this.connection)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.requestDebug({type:"request",seq:0,command:"debugInfo"});if(i){i.onReply=e=>{this._ready.resolve();i.dispose()}}}get isStarted(){return this._isStarted}get exceptionPaths(){return this._exceptionPaths}get exceptionBreakpointFilters(){return this._exceptionBreakpointFilters}get currentExceptionFilters(){var e,t,n;const i=(n=(t=(e=this.connection)===null||e===void 0?void 0:e.kernel)===null||t===void 0?void 0:t.name)!==null&&n!==void 0?n:"";if(!i){return[]}const s=this._config.getTmpFileParams(i);if(!s){return[]}let o=s.prefix;if(Object.keys(this._currentExceptionFilters).includes(o)){return this._currentExceptionFilters[o]}return[]}set currentExceptionFilters(e){var t,n,i;const s=(i=(n=(t=this.connection)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.name)!==null&&i!==void 0?i:"";if(!s){return}const o=this._config.getTmpFileParams(s);if(!o){return}let r=o.prefix;if(e===null){if(Object.keys(this._currentExceptionFilters).includes(r)){delete this._currentExceptionFilters[r]}}else{this._currentExceptionFilters[r]=e}}get eventMessage(){return this._eventMessage}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._disposed.emit();_.Signal.clearData(this)}async start(){var e,t,n,i;const s=await this.sendRequest("initialize",{clientID:"jupyterlab",clientName:"JupyterLab",adapterID:(n=(t=(e=this.connection)===null||e===void 0?void 0:e.kernel)===null||t===void 0?void 0:t.name)!==null&&n!==void 0?n:"",pathFormat:"path",linesStartAt1:true,columnsStartAt1:true,supportsVariableType:true,supportsVariablePaging:true,supportsRunInTerminalRequest:true,locale:document.documentElement.lang});if(!s.success){throw new Error(`Could not start the debugger: ${s.message}`)}this._capabilities=s.body;this._isStarted=true;this._exceptionBreakpointFilters=(i=s.body)===null||i===void 0?void 0:i.exceptionBreakpointFilters;await this.sendRequest("attach",{})}async stop(){this._isStarted=false;await this.sendRequest("disconnect",{restart:false,terminateDebuggee:false})}async restoreState(){var e;const t=await this.sendRequest("debugInfo",{});this._isStarted=t.body.isStarted;this._exceptionPaths=(e=t.body)===null||e===void 0?void 0:e.exceptionPaths;return t}isPausingOnException(e){var t,n;if(e){return(n=(t=this.currentExceptionFilters)===null||t===void 0?void 0:t.includes(e))!==null&&n!==void 0?n:false}else{return this.currentExceptionFilters.length>0}}async sendRequest(e,t){await this._ready.promise;const n=await this._sendDebugMessage({type:"request",seq:this._seq++,command:e,arguments:t});return n.content}_handleEvent(e,t){const n=t.header.msg_type;if(n!=="debug_event"){return}const i=t.content;this._eventMessage.emit(i)}async _sendDebugMessage(e){var t;const n=(t=this.connection)===null||t===void 0?void 0:t.kernel;if(!n){return Promise.reject(new Error("A kernel is required to send debug messages."))}const i=new q.PromiseDelegate;const s=n.requestDebug(e);s.onReply=e=>{i.resolve(e)};await s.done;return i.promise}}var X=n(44914);var Q=n.n(X);class Z extends i.ReactWidget{constructor(e){super();this._model=e;this.addClass("jp-DebuggerBreakpoints-body")}render(){return Q().createElement(ee,{model:this._model})}}const ee=({model:e})=>{const[t,n]=(0,X.useState)(Array.from(e.breakpoints.entries()));(0,X.useEffect)((()=>{const t=(t,i)=>{n(Array.from(e.breakpoints.entries()))};const i=t=>{n(Array.from(e.breakpoints.entries()))};e.changed.connect(t);e.restored.connect(i);return()=>{e.changed.disconnect(t);e.restored.disconnect(i)}}));return Q().createElement(Q().Fragment,null,t.map((t=>Q().createElement(te,{key:t[0],breakpoints:t[1],model:e}))))};const te=({breakpoints:e,model:t})=>Q().createElement(Q().Fragment,null,e.sort(((e,t)=>{var n,i;return((n=e.line)!==null&&n!==void 0?n:0)-((i=t.line)!==null&&i!==void 0?i:0)})).map(((e,n)=>{var i,s;return Q().createElement(ne,{key:((s=(i=e.source)===null||i===void 0?void 0:i.path)!==null&&s!==void 0?s:"")+n,breakpoint:e,model:t})})));const ne=({breakpoint:e,model:t})=>{var n,i,s;const o=e=>e[0]==="/"?e.slice(1)+"/":e;return Q().createElement("div",{className:"jp-DebuggerBreakpoint",onClick:()=>t.clicked.emit(e),title:(n=e.source)===null||n===void 0?void 0:n.path},Q().createElement("span",{className:"jp-DebuggerBreakpoint-marker"},"●"),Q().createElement("span",{className:"jp-DebuggerBreakpoint-source jp-left-truncated"},o((s=(i=e.source)===null||i===void 0?void 0:i.path)!==null&&s!==void 0?s:"")),Q().createElement("span",{className:"jp-DebuggerBreakpoint-line"},e.line))};const ie="jp-debugger-pauseOnExceptions";const se="jp-PauseOnExceptions";const oe="jp-PauseOnExceptions-menu";class re extends i.ToolbarButton{constructor(e){super();this.onclick=()=>{this._menu.open(this.node.getBoundingClientRect().left,this.node.getBoundingClientRect().bottom)};this._menu=new ae({service:e.service,commands:{registry:e.commands.registry,pauseOnExceptions:e.commands.pauseOnExceptions}});this.node.className=ie;this._props=e;this._props.className=se;this._props.service.eventMessage.connect(((e,t)=>{if(t.event==="initialized"||t.event==="terminated"){this.onChange()}}),this);this._props.enabled=this._props.service.pauseOnExceptionsIsValid();this._props.service.pauseOnExceptionChanged.connect(this.onChange,this)}onChange(){var e;const t=this._props.service.session;const n=t===null||t===void 0?void 0:t.exceptionBreakpointFilters;this._props.className=se;if(((e=this._props.service.session)===null||e===void 0?void 0:e.isStarted)&&n){this._props.pressed=t.isPausingOnException();this._props.enabled=true}else{this._props.enabled=false}this.update()}render(){return X.createElement(i.ToolbarButtonComponent,{...this._props,onClick:this.onclick})}}class ae extends i.MenuSvg{constructor(e){super({commands:e.commands.registry});this._service=e.service;this._command=e.commands.pauseOnExceptions;e.service.eventMessage.connect(((e,t)=>{if(t.event==="initialized"){this._build()}}),this);this._build();this.addClass(oe)}_build(){var e,t;this.clearItems();const n=(t=(e=this._service.session)===null||e===void 0?void 0:e.exceptionBreakpointFilters)!==null&&t!==void 0?t:[];n.map(((e,t)=>{this.addItem({command:this._command,args:{filter:e.filter,description:e.description}})}))}}class le extends i.PanelWithToolbar{constructor(e){var t;super(e);this.clicked=new _.Signal(this);const{model:n,service:s,commands:o}=e;const r=((t=e.translator)!==null&&t!==void 0?t:f.nullTranslator).load("jupyterlab");this.title.label=r.__("Breakpoints");const a=new Z(n);this.toolbar.node.setAttribute("aria-label",r.__("Breakpoints panel toolbar"));this.toolbar.addItem("pauseOnException",new re({service:s,commands:o,icon:i.exceptionsIcon,tooltip:r.__("Pause on exception filter")}));this.toolbar.addItem("closeAll",new i.ToolbarButton({icon:i.closeAllIcon,onClick:async()=>{if(n.breakpoints.size===0){return}const e=await(0,l.showDialog)({title:r.__("Remove All Breakpoints"),body:r.__("Are you sure you want to remove all breakpoints?"),buttons:[l.Dialog.okButton({label:r.__("Remove breakpoints")}),l.Dialog.cancelButton()],hasClose:true});if(e.button.accept){return s.clearBreakpoints()}},tooltip:r.__("Remove All Breakpoints")}));this.addWidget(a);this.addClass("jp-DebuggerBreakpoints")}}class de extends i.ReactWidget{constructor(e){super();this._model=e;this.addClass("jp-DebuggerCallstack-body")}render(){return Q().createElement(ce,{model:this._model})}}const ce=({model:e})=>{const[t,n]=(0,X.useState)(e.frames);const[i,s]=(0,X.useState)(e.frame);const o=t=>{s(t);e.frame=t};(0,X.useEffect)((()=>{const t=()=>{s(e.frame);n(e.frames)};e.framesChanged.connect(t);return()=>{e.framesChanged.disconnect(t)}}),[e]);const r=e=>{var t;const n=((t=e.source)===null||t===void 0?void 0:t.path)||"";const i=b.PathExt.basename(b.PathExt.dirname(n));const s=b.PathExt.basename(n);const o=b.PathExt.join(i,s);return`${o}:${e.line}`};return Q().createElement("ul",null,t.map((e=>{var t;return Q().createElement("li",{key:e.id,onClick:()=>o(e),className:(i===null||i===void 0?void 0:i.id)===e.id?"selected jp-DebuggerCallstackFrame":"jp-DebuggerCallstackFrame"},Q().createElement("span",{className:"jp-DebuggerCallstackFrame-name"},e.name),Q().createElement("span",{className:"jp-DebuggerCallstackFrame-location",title:(t=e.source)===null||t===void 0?void 0:t.path},r(e)))})))};class he extends i.PanelWithToolbar{constructor(e){var t;super(e);const{commands:n,model:s}=e;const o=((t=e.translator)!==null&&t!==void 0?t:f.nullTranslator).load("jupyterlab");this.title.label=o.__("Callstack");const r=new de(s);this.toolbar.node.setAttribute("aria-label",o.__("Callstack panel toolbar"));this.toolbar.addItem("continue",new i.CommandToolbarButton({commands:n.registry,id:n.continue,label:""}));this.toolbar.addItem("terminate",new i.CommandToolbarButton({commands:n.registry,id:n.terminate,label:""}));this.toolbar.addItem("step-over",new i.CommandToolbarButton({commands:n.registry,id:n.next,label:""}));this.toolbar.addItem("step-in",new i.CommandToolbarButton({commands:n.registry,id:n.stepIn,label:""}));this.toolbar.addItem("step-out",new i.CommandToolbarButton({commands:n.registry,id:n.stepOut,label:""}));this.toolbar.addItem("evaluate",new i.CommandToolbarButton({commands:n.registry,id:n.evaluate,label:""}));this.addWidget(r);this.addClass("jp-DebuggerCallstack")}}class ue extends c.Widget{constructor(e){super();this._model=e.model;this._debuggerService=e.service;this._mimeTypeService=e.editorServices.mimeTypeService;const t=new Re.ReadOnlyEditorFactory({editorServices:e.editorServices});this._editor=t.createNewEditor({content:"",mimeType:"",path:""});this._editor.hide();this._model.currentFrameChanged.connect((async(e,t)=>{if(!t){this._clearEditor();return}void this._showSource(t)}));const n=new c.PanelLayout;n.addWidget(this._editor);this.layout=n;this.addClass("jp-DebuggerSources-body")}dispose(){var e;if(this.isDisposed){return}(e=this._editorHandler)===null||e===void 0?void 0:e.dispose();_.Signal.clearData(this);super.dispose()}_clearEditor(){this._model.currentSource=null;this._editor.hide()}async _showSource(e){var t;const n=(t=e.source)===null||t===void 0?void 0:t.path;const i=await this._debuggerService.getSource({sourceReference:0,path:n});if(!(i===null||i===void 0?void 0:i.content)){this._clearEditor();return}if(this._editorHandler){this._editorHandler.dispose()}const{content:s,mimeType:o}=i;const r=o||this._mimeTypeService.getMimeTypeByFilePath(n!==null&&n!==void 0?n:"");this._editor.model.sharedModel.setSource(s);this._editor.model.mimeType=r;this._editorHandler=new S({debuggerService:this._debuggerService,editorReady:()=>Promise.resolve(this._editor.editor),getEditor:()=>this._editor.editor,path:n,src:this._editor.model.sharedModel});this._model.currentSource={content:s,mimeType:r,path:n!==null&&n!==void 0?n:""};requestAnimationFrame((()=>{S.showCurrentLine(this._editor.editor,e.line)}));this._editor.show()}}const pe=({model:e,trans:t})=>Q().createElement(i.UseSignal,{signal:e.currentSourceChanged,initialSender:e},(e=>{var n,i;return Q().createElement("span",{onClick:t=>{if(t.ctrlKey){e===null||e===void 0?void 0:e.open()}},title:t.__("Ctrl + click to open in the Main Area"),className:"jp-DebuggerSources-header-path"},(i=(n=e===null||e===void 0?void 0:e.currentSource)===null||n===void 0?void 0:n.path)!==null&&i!==void 0?i:"")}));class me extends i.PanelWithToolbar{constructor(e){var t;super();const{model:n,service:s,editorServices:o}=e;const r=((t=e.translator)!==null&&t!==void 0?t:f.nullTranslator).load("jupyterlab");this.title.label=r.__("Source");this.toolbar.addClass("jp-DebuggerSources-header");this.toolbar.node.setAttribute("aria-label",r.__("Sources preview panel toolbar"));const a=new ue({service:s,model:n,editorServices:o});this.toolbar.addItem("open",new i.ToolbarButton({icon:i.viewBreakpointIcon,onClick:()=>n.open(),tooltip:r.__("Open in the Main Area")}));const l=i.ReactWidget.create(Q().createElement(pe,{model:n,trans:r}));this.toolbar.addItem("sourcePath",l);this.addClass("jp-DebuggerSources-header");this.addWidget(a);this.addClass("jp-DebuggerSources")}}var ge=n(54158);const fe=e=>{const t=t=>{const n=t.target.value;e.model.filter=n};return Q().createElement(ge.Search,{onChange:t,placeholder:e.trans.__("Filter the kernel sources"),value:e.model.filter})};const ve=e=>Q().createElement(i.UseSignal,{signal:e.model.filterChanged,initialArgs:e.model.filter},(t=>Q().createElement(fe,{model:e.model,trans:e.trans})));const _e="jp-DebuggerKernelSource-filterBox";const be="jp-DebuggerKernelSource-filterBox-hidden";const ye="jp-DebuggerKernelSource-source";class we extends i.ReactWidget{constructor(e){var t;super();this._showFilter=false;this._model=e.model;this._debuggerService=e.service;this._trans=((t=e.translator)!==null&&t!==void 0?t:f.nullTranslator).load("jupyterlab");this.addClass("jp-DebuggerKernelSources-body")}render(){let e=_e;if(!this._showFilter){e+=" "+be}return Q().createElement(Q().Fragment,null,Q().createElement("div",{className:e,key:"filter"},Q().createElement(ve,{model:this._model,trans:this._trans})),Q().createElement(i.UseSignal,{signal:this._model.changed},((e,t)=>{const n={};return(t!==null&&t!==void 0?t:[]).map((e=>{var t;const s=e.name;const o=e.path;const r=s+(n[s]=((t=n[s])!==null&&t!==void 0?t:0)+1).toString();return Q().createElement("div",{key:r,title:o,className:ye,onClick:()=>{this._debuggerService.getSource({sourceReference:0,path:o}).then((e=>{this._model.open(e)})).catch((e=>{void(0,l.showErrorMessage)(this._trans.__("Fail to get source"),this._trans.__("Fail to get '%1' source:\n%2",o,e))}))}},Q().createElement(i.LabIcon.resolveReact,{icon:i.openKernelSourceIcon,iconClass:(0,i.classes)("jp-Icon"),tag:null}),s)}))})))}toggleFilterbox(){this._showFilter=!this._showFilter;this.update()}}class Ce extends i.PanelWithToolbar{constructor(e){var t;super();const{model:n,service:s}=e;this._model=n;const o=((t=e.translator)!==null&&t!==void 0?t:f.nullTranslator).load("jupyterlab");this.title.label=o.__("Kernel Sources");this.toolbar.addClass("jp-DebuggerKernelSources-header");this.toolbar.node.setAttribute("aria-label",o.__("Kernel sources panel toolbar"));this._body=new we({service:s,model:n,translator:e.translator});this.toolbar.addItem("open-filter",new i.ToolbarButton({icon:i.searchIcon,onClick:async()=>{this._body.toggleFilterbox()},tooltip:o.__("Toggle search filter")}));this.toolbar.addItem("refresh",new i.ToolbarButton({icon:i.refreshIcon,onClick:()=>{this._model.kernelSources=[];void s.displayModules().catch((e=>{void(0,l.showErrorMessage)(o.__("Fail to get kernel sources"),o.__("Fail to get kernel sources:\n%2",e))}))},tooltip:o.__("Refresh kernel sources")}));this.addClass("jp-DebuggerKernelSources-header");this.addWidget(this._body);this.addClass("jp-DebuggerKenelSources")}set filter(e){this._model.filter=e}}const xe=({model:e,tree:t,grid:n,trans:s})=>{const[o,r]=(0,X.useState)("-");const a=e.scopes;const l=e=>{const i=e.target.value;r(i);t.scope=i;n.scope=i};return Q().createElement(i.HTMLSelect,{onChange:l,value:o,"aria-label":s.__("Scope")},a.map((e=>Q().createElement("option",{key:e.name,value:e.name},s.__(e.name)))))};class Se extends i.ReactWidget{constructor(e){super();const{translator:t,model:n,tree:i,grid:s}=e;this._model=n;this._tree=i;this._grid=s;this._trans=(t||f.nullTranslator).load("jupyterlab")}render(){return Q().createElement(i.UseSignal,{signal:this._model.changed,initialSender:this._model},(()=>Q().createElement(xe,{model:this._model,trans:this._trans,tree:this._tree,grid:this._grid})))}}var ke=n(34236);class je extends i.ReactWidget{constructor(e){super();this._scope="";this._scopes=[];this._filter=new Set;this._commands=e.commands;this._service=e.service;this._translator=e.translator;const t=this.model=e.model;t.changed.connect(this._updateScopes,this);this.addClass("jp-DebuggerVariables-body")}render(){var e;const t=(e=this._scopes.find((e=>e.name===this._scope)))!==null&&e!==void 0?e:this._scopes[0];const n=e=>{this.model.selectedVariable=e};if((t===null||t===void 0?void 0:t.name)!=="Globals"){this.addClass("jp-debuggerVariables-local")}else{this.removeClass("jp-debuggerVariables-local")}return t?Q().createElement(Q().Fragment,null,Q().createElement(ge.TreeView,{className:"jp-TreeView"},Q().createElement(Ie,{key:t.name,commands:this._commands,service:this._service,data:t.variables,filter:this._filter,translator:this._translator,handleSelectVariable:n}))):Q().createElement("div",null)}set filter(e){this._filter=e;this.update()}set scope(e){this._scope=e;this.update()}_updateScopes(e){if(ke.ArrayExt.shallowEqual(this._scopes,e.scopes)){return}this._scopes=e.scopes;this.update()}}const Ie=e=>{const{commands:t,data:n,service:i,filter:s,translator:o,handleSelectVariable:r}=e;const[a,l]=(0,X.useState)(n);(0,X.useEffect)((()=>{l(n)}),[n]);return Q().createElement(Q().Fragment,null,a.filter((e=>!(s||new Set).has(e.evaluateName||""))).map((e=>{const n=`${e.name}-${e.evaluateName}-${e.type}-${e.value}-${e.variablesReference}`;return Q().createElement(Te,{key:n,commands:t,data:e,service:i,filter:s,translator:o,onSelect:r})})))};function Ee(e){if(e.type==="float"&&(e.value=="inf"||e.value=="-inf")){return e.value}const t=De(e);if(e.type==="float"&&isNaN(t)){return"NaN"}return t}const Te=e=>{var t,n;const{commands:s,data:o,service:r,filter:a,translator:l,onSelect:d}=e;const[c]=(0,X.useState)(o);const[h,u]=(0,X.useState)(false);const[p,m]=(0,X.useState)(false);const[g,v]=(0,X.useState)(null);const _=(0,X.useMemo)((()=>(l!==null&&l!==void 0?l:f.nullTranslator).load("jupyterlab")),[l]);const b=d!==null&&d!==void 0?d:()=>void 0;const y=(0,X.useMemo)((()=>c.variablesReference!==0||c.type==="function"),[c.variablesReference,c.type]);const w=(0,X.useMemo)((()=>Ee(c)),[c]);const C=(0,X.useMemo)((()=>!["special variables","protected variables","function variables","class variables"].includes(c.name)),[c.name]);const x=(0,X.useMemo)((()=>{var e;return!r.model.hasRichVariableRendering||!s.isEnabled(Re.CommandIDs.renderMimeVariable,{name:c.name,frameID:(e=r.model.callstack.frame)===null||e===void 0?void 0:e.id})}),[r.model.hasRichVariableRendering,c.name,(t=r.model.callstack.frame)===null||t===void 0?void 0:t.id]);const S=(0,X.useCallback)((async()=>{if(y&&!g){v(await r.inspectVariable(c.variablesReference))}}),[y,r,c.variablesReference,g]);const k=(0,X.useCallback)((async e=>{const t=(0,i.getTreeItemElement)(e.target);if(e.currentTarget!==t){return}if(!y){return}m(!p)}),[y,p]);const j=(0,X.useCallback)((e=>{if(e.currentTarget===e.detail&&e.detail.selected){b(c)}}),[c]);const I=(0,X.useCallback)((()=>{var e;s.execute(Re.CommandIDs.renderMimeVariable,{name:c.name,frameID:(e=r.model.callstack.frame)===null||e===void 0?void 0:e.id}).catch((e=>{console.error(`Failed to render variable ${c===null||c===void 0?void 0:c.name}`,e)}))}),[s,c.name,(n=r.model.callstack.frame)===null||n===void 0?void 0:n.id]);const E=(0,X.useCallback)((e=>{const t=(0,i.getTreeItemElement)(e.target);if(e.currentTarget!==t){return}b(c)}),[c]);return Q().createElement(ge.TreeItem,{className:"jp-TreeItem nested",expanded:p,onSelect:j,onExpand:S,onClick:e=>k(e),onContextMenu:E,onKeyDown:e=>{if(e.key=="Enter"){if(C&&h){b(c);I()}}},onFocus:e=>{u(!e.defaultPrevented);e.preventDefault()},onBlur:e=>{u(false)},onMouseOver:e=>{u(!e.defaultPrevented);e.preventDefault()},onMouseLeave:e=>{u(false)}},Q().createElement("span",{className:"jp-DebuggerVariables-name"},c.name),w&&Q().createElement("span",{className:"jp-DebuggerVariables-detail"},w),C&&h&&Q().createElement(ge.Button,{className:"jp-DebuggerVariables-renderVariable",appearance:"stealth",slot:"end",disabled:x,onClick:e=>{e.stopPropagation();I()},title:_.__("Render variable: %1",c===null||c===void 0?void 0:c.name)},Q().createElement(i.searchIcon.react,{tag:null})),g?Q().createElement(Ie,{key:c.name,commands:s,data:g,service:r,filter:a,translator:l,handleSelectVariable:d}):y&&Q().createElement(ge.TreeItem,null))};class Me extends i.PanelWithToolbar{constructor(e){super(e);const{model:t,service:n,commands:s,themeManager:o}=e;const r=e.translator||f.nullTranslator;const a=r.load("jupyterlab");this.title.label=a.__("Variables");this.toolbar.addClass("jp-DebuggerVariables-toolbar");this.toolbar.node.setAttribute("aria-label",a.__("Variables toolbar"));this._tree=new je({model:t,service:n,commands:s,translator:r});this._table=new V({model:t,commands:s,themeManager:o,translator:r});this._table.hide();this.toolbar.addItem("scope-switcher",new Se({translator:r,model:t,tree:this._tree,grid:this._table}));const l=()=>{if(this._table.isHidden){this._tree.hide();this._table.show();this.node.setAttribute("data-jp-table","true");h("table")}else{this._tree.show();this._table.hide();this.node.removeAttribute("data-jp-table");h("tree")}this.update()};const d=new i.ToolbarButton({icon:i.treeViewIcon,className:"jp-TreeView-Button",onClick:l,tooltip:a.__("Tree View")});const c=new i.ToolbarButton({icon:i.tableRowsIcon,className:"jp-TableView-Button",onClick:l,tooltip:a.__("Table View")});const h=e=>{c.pressed=e!=="tree";d.pressed=!c.pressed};h(this._table.isHidden?"tree":"table");this.toolbar.addItem("view-VariableTreeView",d);this.toolbar.addItem("view-VariableTableView",c);this.addWidget(this._tree);this.addWidget(this._table);this.addClass("jp-DebuggerVariables")}set filter(e){this._tree.filter=e;this._table.filter=e}onResize(e){super.onResize(e);this._resizeBody(e)}_resizeBody(e){const t=e.height-this.toolbar.node.offsetHeight;this._tree.node.style.height=`${t}px`}}const De=e=>{var t,n;const{type:i,value:s}=e;switch(i){case"int":return parseInt(s,10);case"float":return parseFloat(s);case"bool":return s;case"str":if((n=(t=e.presentationHint)===null||t===void 0?void 0:t.attributes)===null||n===void 0?void 0:n.includes("rawString")){return s.slice(1,s.length-1)}else{return s}default:return i!==null&&i!==void 0?i:s}};class Ae extends i.SidePanel{constructor(e){const t=e.translator||f.nullTranslator;super({translator:t});this.id="jp-debugger-sidebar";this.title.icon=i.bugIcon;this.addClass("jp-DebuggerSidebar");const{callstackCommands:n,breakpointsCommands:s,editorServices:o,service:r,themeManager:a}=e;const l=r.model;this.variables=new Me({model:l.variables,commands:n.registry,service:r,themeManager:a,translator:t});this.callstack=new he({commands:n,model:l.callstack,translator:t});this.breakpoints=new le({service:r,commands:s,model:l.breakpoints,translator:t});this.sources=new me({model:l.sources,service:r,editorServices:o,translator:t});this.kernelSources=new Ce({model:l.kernelSources,service:r,translator:t});const d=new Ae.Header;this.header.addWidget(d);l.titleChanged.connect(((e,t)=>{d.title.label=t}));this.content.addClass("jp-DebuggerSidebar-body");this.addWidget(this.variables);this.addWidget(this.callstack);this.addWidget(this.breakpoints);this.addWidget(this.sources);this.addWidget(this.kernelSources)}}(function(e){class t extends c.Widget{constructor(){super({node:Pe.createHeader()});this.title.changed.connect((e=>{this.node.textContent=this.title.label}))}}e.Header=t})(Ae||(Ae={}));var Pe;(function(e){function t(){const e=document.createElement("h2");e.textContent="-";e.classList.add("jp-text-truncated");return e}e.createHeader=t})(Pe||(Pe={}));class Le{constructor(e){var t,n,i;this._config=e.config;this._shell=e.shell;this._notebookTracker=(t=e.notebookTracker)!==null&&t!==void 0?t:null;this._consoleTracker=(n=e.consoleTracker)!==null&&n!==void 0?n:null;this._editorTracker=(i=e.editorTracker)!==null&&i!==void 0?i:null;this._readOnlyEditorTracker=new l.WidgetTracker({namespace:"@jupyterlab/debugger"})}find(e){return[...this._findInConsoles(e),...this._findInEditors(e),...this._findInNotebooks(e),...this._findInReadOnlyEditors(e)]}open(e){const{editorWrapper:t,label:n,caption:s}=e;const o=new l.MainAreaWidget({content:t});o.id=l.DOMUtils.createDomID();o.title.label=n;o.title.closable=true;o.title.caption=s;o.title.icon=i.textEditorIcon;this._shell.add(o,"main",{type:"Debugger Sources"});void this._readOnlyEditorTracker.add(o)}_findInNotebooks(e){if(!this._notebookTracker){return[]}const{focus:t,kernel:n,path:i,source:s}=e;const o=[];this._notebookTracker.forEach((e=>{const r=e.sessionContext;if(i!==r.path){return}const a=e.content;if(t){a.mode="command"}const l=e.content.widgets;l.forEach(((i,r)=>{const l=i.model.sharedModel.getSource();const d=this._getCodeId(l,n);if(!d){return}if(s!==d){return}if(t){a.activeCellIndex=r;if(a.activeCell){a.scrollToItem(a.activeCellIndex,"smart").catch((e=>{}))}this._shell.activateById(e.id)}o.push(Object.freeze({get:()=>i.editor,reveal:()=>a.scrollToItem(r,"smart"),src:i.model.sharedModel}))}))}));return o}_findInConsoles(e){if(!this._consoleTracker){return[]}const{focus:t,kernel:n,path:i,source:s}=e;const o=[];this._consoleTracker.forEach((e=>{const r=e.sessionContext;if(i!==r.path){return}const a=e.console.cells;for(const i of a){const r=i.model.sharedModel.getSource();const a=this._getCodeId(r,n);if(!a){break}if(s!==a){break}o.push(Object.freeze({get:()=>i.editor,reveal:()=>Promise.resolve(this._shell.activateById(e.id)),src:i.model.sharedModel}));if(t){this._shell.activateById(e.id)}}}));return o}_findInEditors(e){if(!this._editorTracker){return[]}const{focus:t,kernel:n,path:i,source:s}=e;const o=[];this._editorTracker.forEach((e=>{const r=e.content;if(i!==r.context.path){return}const a=r.editor;if(!a){return}const l=a.model.sharedModel.getSource();const d=this._getCodeId(l,n);if(!d){return}if(s!==d){return}o.push(Object.freeze({get:()=>a,reveal:()=>Promise.resolve(this._shell.activateById(e.id)),src:r.model.sharedModel}));if(t){this._shell.activateById(e.id)}}));return o}_findInReadOnlyEditors(e){const{focus:t,kernel:n,source:i}=e;const s=[];this._readOnlyEditorTracker.forEach((e=>{var o;const r=(o=e.content)===null||o===void 0?void 0:o.editor;if(!r){return}const a=r.model.sharedModel.getSource();const l=this._getCodeId(a,n);if(!l){return}if(e.title.caption!==i&&i!==l){return}s.push(Object.freeze({get:()=>r,reveal:()=>Promise.resolve(this._shell.activateById(e.id)),src:r.model.sharedModel}));if(t){this._shell.activateById(e.id)}}));return s}_getCodeId(e,t){try{return this._config.getCodeId(e,t)}catch(n){return""}}}var Re;(function(e){class t extends a{}e.Config=t;class n extends S{}e.EditorHandler=n;class s extends A{}e.Handler=s;class o extends W{}e.Model=o;class r extends g{}e.ReadOnlyEditorFactory=r;class l extends G{}e.Service=l;class d extends Y{}e.Session=d;class c extends Ae{}e.Sidebar=c;class u extends Le{}e.Sources=u;class p extends V{}e.VariablesGrid=p;class m extends J{}e.VariableRenderer=m;let f;(function(e){e.debugContinue="debugger:continue";e.terminate="debugger:terminate";e.next="debugger:next";e.showPanel="debugger:show-panel";e.stepIn="debugger:stepIn";e.stepOut="debugger:stepOut";e.inspectVariable="debugger:inspect-variable";e.renderMimeVariable="debugger:render-mime-variable";e.evaluate="debugger:evaluate";e.restartDebug="debugger:restart-debug";e.pauseOnExceptions="debugger:pause-on-exceptions";e.copyToClipboard="debugger:copy-to-clipboard";e.copyToGlobals="debugger:copy-to-globals";e.openSource="debugger:open-source"})(f=e.CommandIDs||(e.CommandIDs={}));let v;(function(e){e.closeAllIcon=i.closeAllIcon;e.evaluateIcon=i.codeIcon;e.continueIcon=i.runIcon;e.pauseIcon=i.pauseIcon;e.stepIntoIcon=i.stepIntoIcon;e.stepOutIcon=i.stepOutIcon;e.stepOverIcon=i.stepOverIcon;e.terminateIcon=i.stopIcon;e.variableIcon=i.variableIcon;e.viewBreakpointIcon=i.viewBreakpointIcon;e.pauseOnExceptionsIcon=i.pauseIcon})(v=e.Icons||(e.Icons={}));let _;(function(e){e.getCode=h.getCode})(_=e.Dialogs||(e.Dialogs={}))})(Re||(Re={}))},85995:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Debugger:()=>i.s,IDebugger:()=>o,IDebuggerConfig:()=>r,IDebuggerHandler:()=>d,IDebuggerSidebar:()=>l,IDebuggerSourceViewer:()=>c,IDebuggerSources:()=>a});var i=n(35086);var s=n(5592);const o=new s.Token("@jupyterlab/debugger:IDebugger","A debugger user interface.");const r=new s.Token("@jupyterlab/debugger:IDebuggerConfig","A service to handle the debugger configuration.");const a=new s.Token("@jupyterlab/debugger:IDebuggerSources","A service to display sources in debug mode.");const l=new s.Token("@jupyterlab/debugger:IDebuggerSidebar","A service for the debugger sidebar.");const d=new s.Token("@jupyterlab/debugger:IDebuggerHandler","A service for handling notebook debugger.");const c=new s.Token("@jupyterlab/debugger:IDebuggerSourceViewer","A debugger source viewer.")},5011:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Grid:()=>u,GridModel:()=>p});var i=n(28426);var s=n.n(i);var o=n(2336);var r=n.n(o);var a=n(1143);var l=n.n(a);var d=n(30619);var c=n.n(d);var h=n(35086);class u extends a.Panel{constructor(e){super();const{commands:t,model:n,themeManager:s}=e;this.model=n;const o=new p(e.translator);const r=new i.DataGrid;const a=new m.MouseHandler;a.doubleClicked.connect(((e,n)=>t.execute(h.s.CommandIDs.inspectVariable,{variableReference:o.getVariableReference(n.row),name:o.getVariableName(n.row)})));a.selected.connect(((e,t)=>{const{row:n}=t;this.model.selectedVariable={name:o.getVariableName(n),value:o.data("body",n,1),type:o.data("body",n,2),variablesReference:o.getVariableReference(n)}}));r.dataModel=o;r.keyHandler=new i.BasicKeyHandler;r.mouseHandler=a;r.selectionModel=new i.BasicSelectionModel({dataModel:o});r.stretchLastColumn=true;r.node.style.height="100%";this._grid=r;if(s){s.themeChanged.connect(this._updateStyles,this)}this.addWidget(r)}set filter(e){this._grid.dataModel.filter=e;this.update()}set scope(e){this._grid.dataModel.scope=e;this.update()}get dataModel(){return this._grid.dataModel}onAfterAttach(e){super.onAfterAttach(e);this._updateStyles()}_updateStyles(){const{style:e,textRenderer:t}=m.computeStyle();this._grid.cellRenderers.update({},t);this._grid.style=e}}class p extends i.DataModel{constructor(e){super();this._filter=new Set;this._scope="";this._data={name:[],type:[],value:[],variablesReference:[]};this._trans=(e||d.nullTranslator).load("jupyterlab")}get filter(){return this._filter}set filter(e){this._filter=e}get scope(){return this._scope}set scope(e){this._scope=e}rowCount(e){return e==="body"?this._data.name.length:1}columnCount(e){return e==="body"?2:1}data(e,t,n){if(e==="row-header"){return this._data.name[t]}if(e==="column-header"){return n===1?this._trans.__("Value"):this._trans.__("Type")}if(e==="corner-header"){return this._trans.__("Name")}return n===1?this._data.value[t]:this._data.type[t]}getVariableReference(e){return this._data.variablesReference[e]}getVariableName(e){return this._data.name[e]}setData(e){var t,n;this._clearData();this.emitChanged({type:"model-reset"});const i=(t=e.find((e=>e.name===this._scope)))!==null&&t!==void 0?t:e[0];const s=(n=i===null||i===void 0?void 0:i.variables)!==null&&n!==void 0?n:[];const o=s.filter((e=>e.name&&!this._filter.has(e.name)));o.forEach(((e,t)=>{var n;this._data.name[t]=e.name;this._data.type[t]=(n=e.type)!==null&&n!==void 0?n:"";this._data.value[t]=e.value;this._data.variablesReference[t]=e.variablesReference}));this.emitChanged({type:"rows-inserted",region:"body",index:1,span:o.length})}_clearData(){this._data={name:[],type:[],value:[],variablesReference:[]}}}var m;(function(e){function t(){const e=document.createElement("div");e.className="jp-DebuggerVariables-colorPalette";e.innerHTML=`\n \n \n \n \n \n \n \n `;return e}function n(){const e=t();document.body.appendChild(e);let n;n=e.querySelector(".jp-mod-void");const s=getComputedStyle(n).color;n=e.querySelector(".jp-mod-background");const o=getComputedStyle(n).color;n=e.querySelector(".jp-mod-header-background");const r=getComputedStyle(n).color;n=e.querySelector(".jp-mod-grid-line");const a=getComputedStyle(n).color;n=e.querySelector(".jp-mod-header-grid-line");const l=getComputedStyle(n).color;n=e.querySelector(".jp-mod-selection");const d=getComputedStyle(n).color;n=e.querySelector(".jp-mod-text");const c=getComputedStyle(n).color;document.body.removeChild(e);return{style:{voidColor:s,backgroundColor:o,headerBackgroundColor:r,gridLineColor:a,headerGridLineColor:l,rowBackgroundColor:e=>e%2===0?s:o,selectionFillColor:d},textRenderer:new i.TextRenderer({font:"12px sans-serif",textColor:c,backgroundColor:"",verticalAlignment:"center",horizontalAlignment:"left"})}}e.computeStyle=n;class s extends i.BasicMouseHandler{constructor(){super(...arguments);this._doubleClicked=new o.Signal(this);this._selected=new o.Signal(this)}get doubleClicked(){return this._doubleClicked}get selected(){return this._selected}dispose(){if(this.isDisposed){return}o.Signal.disconnectSender(this);super.dispose()}onMouseDoubleClick(e,t){const n=e.hitTest(t.clientX,t.clientY);this._doubleClicked.emit(n)}onMouseDown(e,t){let{clientX:n,clientY:i}=t;let s=e.hitTest(n,i);this._selected.emit(s);super.onMouseDown(e,t)}onContextMenu(e,t){let{clientX:n,clientY:i}=t;let s=e.hitTest(n,i);this._selected.emit(s)}}e.MouseHandler=s})(m||(m={}))},82372:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ToolbarItems:()=>A,default:()=>D,downloadPlugin:()=>E,openBrowserTabPlugin:()=>T,pathStatusPlugin:()=>I,savingStatusPlugin:()=>j});var i=n(94307);var s=n(14366);var o=n(30397);var r=n(43801);var a=n(84739);var l=n(24735);var d=n(30619);var c=n(26331);var h=n(34236);var u=n(5592);var p=n(2336);var m=n(1143);var g=n(44914);var f=n(94931);var v;(function(e){e.clearRecents="docmanager:clear-recents"})(v||(v={}));var _;(function(e){e.recentsManager="@jupyterlab/docmanager-extension:recents";e.reopenClosed="@jupyterlab/docmanager-extension:reopen-recently-closed";e.mainPlugin="@jupyterlab/docmanager-extension:plugin"})(_||(_={}));const b={id:_.recentsManager,description:"Provides a manager of recently opened and closed documents.",autoStart:true,requires:[f.IStateDB],optional:[a.ISettingRegistry,d.ITranslator],provides:r.IRecentsManager,activate:(e,t,n,i)=>{const{serviceManager:s}=e;const o=(i!==null&&i!==void 0?i:d.nullTranslator).load("jupyterlab");const a=new r.RecentsManager({stateDB:t,contents:s.contents});const l=e=>{a.maximalRecentsLength=e.get("maxNumberRecents").composite};if(n){void Promise.all([e.restored,n.load(_.mainPlugin)]).then((([e,t])=>{t.changed.connect(l);l(t)}))}e.commands.addCommand(v.clearRecents,{execute:()=>{a.clearRecents()},isEnabled:()=>a.recentlyOpened.length!=0||a.recentlyClosed.length!=0,label:o.__("Clear Recent Documents"),caption:o.__("Clear the list of recently opened items.")});return a}};var y;(function(e){e.clone="docmanager:clone";e.deleteFile="docmanager:delete-file";e.newUntitled="docmanager:new-untitled";e.open="docmanager:open";e.openBrowserTab="docmanager:open-browser-tab";e.reload="docmanager:reload";e.rename="docmanager:rename";e.del="docmanager:delete";e.duplicate="docmanager:duplicate";e.restoreCheckpoint="docmanager:restore-checkpoint";e.save="docmanager:save";e.saveAll="docmanager:save-all";e.saveAs="docmanager:save-as";e.download="docmanager:download";e.toggleAutosave="docmanager:toggle-autosave";e.showInFileBrowser="docmanager:show-in-file-browser"})(y||(y={}));const w="@jupyterlab/docmanager-extension:plugin";const C={id:"@jupyterlab/docmanager-extension:opener",description:"Provides the widget opener.",autoStart:true,provides:r.IDocumentWidgetOpener,activate:e=>{const{shell:t}=e;return new class{constructor(){this._opened=new p.Signal(this)}open(e,n){if(!e.id){e.id=`document-manager-${++B.id}`}e.title.dataset={type:"document-title",...e.title.dataset};if(!e.isAttached){t.add(e,"main",n||{})}t.activateById(e.id);this._opened.emit(e)}get opened(){return this._opened}}}};const x={id:"@jupyterlab/docmanager-extension:contexts",description:"Adds the handling of opened documents dirty state.",autoStart:true,requires:[r.IDocumentManager,r.IDocumentWidgetOpener],optional:[i.ILabStatus],activate:(e,t,n,i)=>{const s=new WeakSet;n.opened.connect(((e,n)=>{const o=t.contextForWidget(n);if(o&&!s.has(o)){if(i){O(i,o)}s.add(o)}}))}};const S={id:"@jupyterlab/docmanager-extension:manager",description:"Provides the document manager.",provides:r.IDocumentManager,requires:[r.IDocumentWidgetOpener],optional:[d.ITranslator,i.ILabStatus,s.ISessionContextDialogs,i.JupyterLab.IInfo,r.IRecentsManager],activate:(e,t,n,i,o,a,l)=>{var c;const{serviceManager:h,docRegistry:u}=e;const p=n!==null&&n!==void 0?n:d.nullTranslator;const m=o!==null&&o!==void 0?o:new s.SessionContextDialogs({translator:p});const g=e.restored.then((()=>void 0));const f=new r.DocumentManager({registry:u,manager:h,opener:t,when:g,setBusy:(c=i&&(()=>i.setBusy()))!==null&&c!==void 0?c:undefined,sessionDialogs:m,translator:p!==null&&p!==void 0?p:d.nullTranslator,isConnectedCallback:()=>{if(a){return a.isConnected}return true},recentsManager:l!==null&&l!==void 0?l:undefined});return f}};const k={id:w,description:"Adds commands and settings to the document manager.",autoStart:true,requires:[r.IDocumentManager,r.IDocumentWidgetOpener,a.ISettingRegistry],optional:[d.ITranslator,s.ICommandPalette,i.ILabShell],activate:(e,t,n,i,s,o,r)=>{s=s!==null&&s!==void 0?s:d.nullTranslator;const a=s.load("jupyterlab");const l=e.docRegistry;R(e,t,n,i,s,r,o);const c=n=>{const i=n.get("autosave").composite;t.autosave=i===true||i===false?i:true;e.commands.notifyCommandChanged(y.toggleAutosave);const s=n.get("confirmClosingDocument").composite;t.confirmClosingDocument=s!==null&&s!==void 0?s:true;const o=n.get("autosaveInterval").composite;t.autosaveInterval=o||120;const r=n.get("lastModifiedCheckMargin").composite;t.lastModifiedCheckMargin=r||500;const a=n.get("renameUntitledFileOnSave").composite;t.renameUntitledFileOnSave=a!==null&&a!==void 0?a:true;const d=n.get("defaultViewers").composite;const c={};Object.keys(d).forEach((e=>{if(!l.getFileType(e)){console.warn(`File Type ${e} not found`);return}if(!l.getWidgetFactory(d[e])){console.warn(`Document viewer ${d[e]} not found`)}c[e]=d[e]}));for(const e of l.fileTypes()){try{l.setDefaultWidgetFactory(e.name,c[e.name])}catch(h){console.warn(`Failed to set default viewer ${c[e.name]} for file type ${e.name}`)}}};Promise.all([i.load(w),e.restored]).then((([e])=>{e.changed.connect(c);c(e);const n=(t,n)=>{if(["autosave","autosaveInterval","confirmClosingDocument","lastModifiedCheckMargin","renameUntitledFileOnSave"].includes(n.name)&&e.get(n.name).composite!==n.newValue){e.set(n.name,n.newValue).catch((e=>{console.error(`Failed to set the setting '${n.name}':\n${e}`)}))}};t.stateChanged.connect(n)})).catch((e=>{console.error(e.message)}));i.transform(w,{fetch:e=>{const t=Array.from(l.fileTypes()).map((e=>e.name)).join(" \n");const n=Array.from(l.widgetFactories()).map((e=>e.name)).join(" \n");const i=a.__(`Overrides for the default viewers for file types.\nSpecify a mapping from file type name to document viewer name, for example:\n\ndefaultViewers: {\n markdown: "Markdown Preview"\n}\n\nIf you specify non-existent file types or viewers, or if a viewer cannot\nopen a given file type, the override will not function.\n\nAvailable viewers:\n%1\n\nAvailable file types:\n%2`,n,t);const s=u.JSONExt.deepCopy(e.schema);s.properties.defaultViewers.description=i;return{...e,schema:s}}});l.changed.connect((()=>i.load(w,true)))}};const j={id:"@jupyterlab/docmanager-extension:saving-status",description:"Adds a saving status indicator.",autoStart:true,requires:[r.IDocumentManager,i.ILabShell],optional:[d.ITranslator,l.IStatusBar],activate:(e,t,n,i,s)=>{if(!s){return}const o=new r.SavingStatus({docManager:t,translator:i!==null&&i!==void 0?i:d.nullTranslator});o.model.widget=n.currentWidget;n.currentChanged.connect((()=>{o.model.widget=n.currentWidget}));s.registerStatusItem(j.id,{item:o,align:"middle",isActive:()=>o.model!==null&&o.model.status!==null,activeStateChanged:o.model.stateChanged})}};const I={id:"@jupyterlab/docmanager-extension:path-status",description:"Adds a file path indicator in the status bar.",autoStart:true,requires:[r.IDocumentManager,i.ILabShell],optional:[l.IStatusBar],activate:(e,t,n,i)=>{if(!i){return}const s=new r.PathStatus({docManager:t});s.model.widget=n.currentWidget;n.currentChanged.connect((()=>{s.model.widget=n.currentWidget}));i.registerStatusItem(I.id,{item:s,align:"right",rank:0})}};const E={id:"@jupyterlab/docmanager-extension:download",description:"Adds command to download files.",autoStart:true,requires:[r.IDocumentManager],optional:[d.ITranslator,s.ICommandPalette],activate:(e,t,n,i)=>{var o;const r=(n!==null&&n!==void 0?n:d.nullTranslator).load("jupyterlab");const{commands:a,shell:l}=e;const c=()=>{const{currentWidget:e}=l;return!!(e&&t.contextForWidget(e))};a.addCommand(y.download,{label:r.__("Download"),caption:r.__("Download the file to your computer"),isEnabled:c,execute:()=>{if(c()){const e=t.contextForWidget(l.currentWidget);if(!e){return(0,s.showDialog)({title:r.__("Cannot Download"),body:r.__("No context found for current widget!"),buttons:[s.Dialog.okButton()]})}return e.download()}}});(o=e.shell.currentChanged)===null||o===void 0?void 0:o.connect((()=>{e.commands.notifyCommandChanged(y.download)}));const h=r.__("File Operations");if(i){i.addItem({command:y.download,category:h})}}};const T={id:"@jupyterlab/docmanager-extension:open-browser-tab",description:"Adds command to open a browser tab.",autoStart:true,requires:[r.IDocumentManager],optional:[d.ITranslator],activate:(e,t,n)=>{const i=(n!==null&&n!==void 0?n:d.nullTranslator).load("jupyterlab");const{commands:s}=e;s.addCommand(y.openBrowserTab,{execute:e=>{const n=typeof e["path"]==="undefined"?"":e["path"];if(!n){return}return t.services.contents.getDownloadUrl(n).then((e=>{const t=window.open();if(t){t.opener=null;t.location.href=e}else{throw new Error("Failed to open new browser tab.")}}))},iconClass:e=>e["icon"]||"",label:()=>i.__("Open in New Browser Tab")})}};const M=[S,k,x,I,j,E,T,C,b];const D=M;var A;(function(e){function t(e,t){return(0,s.addCommandToolbarButtonClass)(s.ReactWidget.create(g.createElement(s.UseSignal,{signal:t},(()=>g.createElement(s.CommandToolbarButtonComponent,{commands:e,id:y.save,label:"",args:{toolbar:true}})))))}e.createSaveButton=t})(A||(A={}));class P extends m.Widget{constructor(e,t,n="notebook"){super({node:B.createRevertConfirmNode(e,n,t)})}}function L(e,t){if(!e){return"File"}const n=t.contextForWidget(e);if(!n){return""}const i=t.registry.getFileTypesForPath(n.path);return i.length&&i[0].displayName?i[0].displayName:"File"}function R(e,t,n,i,r,a,l){var d;const u=r.load("jupyterlab");const{commands:p,shell:m}=e;const g=u.__("File Operations");const f=()=>{const{currentWidget:e}=m;return!!(e&&t.contextForWidget(e))};const v=()=>{var e;const{currentWidget:n}=m;if(!n){return false}const i=t.contextForWidget(n);return!!((e=i===null||i===void 0?void 0:i.contentsModel)===null||e===void 0?void 0:e.writable)};const _=e=>s.Notification.warning(u.__(`%1 is read-only. Use "Save as…" instead.`,e),{autoClose:5e3});if(a){N(e,t,a,n,r)}p.addCommand(y.deleteFile,{label:()=>`Delete ${L(m.currentWidget,t)}`,execute:e=>{const n=typeof e["path"]==="undefined"?"":e["path"];if(!n){const e=y.deleteFile;throw new Error(`A non-empty path is required for ${e}.`)}return t.deleteFile(n)}});p.addCommand(y.newUntitled,{execute:async e=>{const n=e["error"]||u.__("Error");const i=typeof e["path"]==="undefined"?"":e["path"];const o={type:e["type"],path:i};if(e["type"]==="file"){o.ext=e["ext"]||".txt"}return t.services.contents.newUntitled(o).catch((e=>(0,s.showErrorMessage)(n,e)))},label:e=>e["label"]||`New ${e["type"]}`});p.addCommand(y.open,{execute:async e=>{const n=typeof e["path"]==="undefined"?"":e["path"];const i=e["factory"]||void 0;const s=e===null||e===void 0?void 0:e.kernel;const o=e["options"]||void 0;return t.services.contents.get(n,{content:false}).then((()=>t.openOrReveal(n,i,s,o)))},iconClass:e=>e["icon"]||"",label:e=>{var t;return(t=e["label"]||e["factory"])!==null&&t!==void 0?t:u.__("Open the provided `path`.")},mnemonic:e=>e["mnemonic"]||-1});p.addCommand(y.reload,{label:()=>u.__("Reload %1 from Disk",L(m.currentWidget,t)),caption:u.__("Reload contents from disk"),isEnabled:f,execute:()=>{if(!f()){return}const e=t.contextForWidget(m.currentWidget);const n=L(m.currentWidget,t);if(!e){return(0,s.showDialog)({title:u.__("Cannot Reload"),body:u.__("No context found for current widget!"),buttons:[s.Dialog.okButton()]})}if(e.model.dirty){return(0,s.showDialog)({title:u.__("Reload %1 from Disk",n),body:u.__("Are you sure you want to reload the %1 from the disk?",n),buttons:[s.Dialog.cancelButton(),s.Dialog.warnButton({label:u.__("Reload")})]}).then((t=>{if(t.button.accept&&!e.isDisposed){return e.revert()}}))}else{if(!e.isDisposed){return e.revert()}}}});p.addCommand(y.restoreCheckpoint,{label:()=>u.__("Revert %1 to Checkpoint…",L(m.currentWidget,t)),caption:u.__("Revert contents to previous checkpoint"),isEnabled:f,execute:()=>{if(!f()){return}const e=t.contextForWidget(m.currentWidget);if(!e){return(0,s.showDialog)({title:u.__("Cannot Revert"),body:u.__("No context found for current widget!"),buttons:[s.Dialog.okButton()]})}return e.listCheckpoints().then((async n=>{const i=L(m.currentWidget,t);if(n.length<1){await(0,s.showErrorMessage)(u.__("No checkpoints"),u.__("No checkpoints are available for this %1.",i));return}const o=n.length===1?n[0]:await B.getTargetCheckpoint(n.reverse(),u);if(!o){return}return(0,s.showDialog)({title:u.__("Revert %1 to checkpoint",i),body:new P(o,u,i),buttons:[s.Dialog.cancelButton(),s.Dialog.warnButton({label:u.__("Revert"),ariaLabel:u.__("Revert to Checkpoint")})]}).then((t=>{if(e.isDisposed){return}if(t.button.accept){if(e.model.readOnly){return e.revert()}return e.restoreCheckpoint(o.id).then((()=>e.revert()))}}))}))}});const b=()=>{if(m.currentWidget){const e=t.contextForWidget(m.currentWidget);if(e===null||e===void 0?void 0:e.model.collaborative){return u.__("In collaborative mode, the document is saved automatically after every change")}if(!v()){return u.__(`Document is read-only. "Save" is disabled; use "Save as…" instead`)}}return u.__("Save and create checkpoint")};const C=new WeakSet;p.addCommand(y.save,{label:()=>u.__("Save %1",L(m.currentWidget,t)),caption:b,icon:e=>e.toolbar?c.saveIcon:undefined,isEnabled:e=>{if(e._luminoEvent){return e._luminoEvent.type==="keybinding"?true:v()}else{return v()}},execute:async e=>{var n,r,a,l,d;const c=m.currentWidget;const h=t.contextForWidget(c);if(f()){if(!h){return(0,s.showDialog)({title:u.__("Cannot Save"),body:u.__("No context found for current widget!"),buttons:[s.Dialog.okButton()]})}else{if(C.has(h)){return}if(!((n=h.contentsModel)===null||n===void 0?void 0:n.writable)){let t=(r=e._luminoEvent)===null||r===void 0?void 0:r.type;if(e._luminoEvent&&t==="keybinding"){_(h.path);return}else{return(0,s.showDialog)({title:u.__("Cannot Save"),body:u.__("Document is read-only"),buttons:[s.Dialog.okButton()]})}}C.add(h);const m=o.PathExt.basename((l=(a=h.contentsModel)===null||a===void 0?void 0:a.path)!==null&&l!==void 0?l:"");let g=m;if(t.renameUntitledFileOnSave&&c.isUntitled===true){const e=await s.InputDialog.getText({title:u.__("Rename file"),okLabel:u.__("Rename and Save"),placeholder:u.__("File name"),text:m,selectionRange:m.length-o.PathExt.extname(m).length,checkbox:{label:u.__("Do not ask for rename on first save."),caption:u.__("If checked, you will not be asked to rename future untitled files when saving them.")}});if(e.button.accept){g=(d=e.value)!==null&&d!==void 0?d:m;c.isUntitled=false;if(typeof e.isChecked==="boolean"){const t=(await i.get(w,"renameUntitledFileOnSave")).composite;if(e.isChecked===t){i.set(w,"renameUntitledFileOnSave",!e.isChecked).catch((e=>{console.error(`Fail to set 'renameUntitledFileOnSave:\n${e}`)}))}}}}try{await h.save();if(!(c===null||c===void 0?void 0:c.isDisposed)){return h.createCheckpoint()}}catch(p){if(p.name==="ModalCancelError"){return}throw p}finally{C.delete(h);if(g!==m){await h.rename(g)}}}}}});p.addCommand(y.saveAll,{label:()=>u.__("Save All"),caption:u.__("Save all open documents"),isEnabled:()=>(0,h.some)(m.widgets("main"),(e=>{var n,i,s;return(s=(i=(n=t.contextForWidget(e))===null||n===void 0?void 0:n.contentsModel)===null||i===void 0?void 0:i.writable)!==null&&s!==void 0?s:false})),execute:()=>{var e;const n=[];const i=new Set;for(const s of m.widgets("main")){const o=t.contextForWidget(s);if(o&&!i.has(o.path)){if((e=o.contentsModel)===null||e===void 0?void 0:e.writable){i.add(o.path);n.push(o.save())}else{_(o.path)}}}return Promise.all(n)}});p.addCommand(y.saveAs,{label:()=>u.__("Save %1 As…",L(m.currentWidget,t)),caption:u.__("Save with new path"),isEnabled:f,execute:()=>{if(f()){const e=t.contextForWidget(m.currentWidget);if(!e){return(0,s.showDialog)({title:u.__("Cannot Save"),body:u.__("No context found for current widget!"),buttons:[s.Dialog.okButton()]})}const n=(n,i)=>{if(i.type==="save"&&i.newValue&&i.newValue.path!==e.path){void t.closeFile(e.path);void p.execute(y.open,{path:i.newValue.path})}};t.services.contents.fileChanged.connect(n);void e.saveAs().finally((()=>t.services.contents.fileChanged.disconnect(n)))}}});(d=e.shell.currentChanged)===null||d===void 0?void 0:d.connect((()=>{[y.reload,y.restoreCheckpoint,y.save,y.saveAll,y.saveAs].forEach((t=>{e.commands.notifyCommandChanged(t)}))}));p.addCommand(y.toggleAutosave,{label:u.__("Autosave Documents"),isToggled:()=>t.autosave,execute:()=>{const e=!t.autosave;const n="autosave";return i.set(w,n,e).catch((e=>{console.error(`Failed to set ${w}:${n} - ${e.message}`)}))}});if(l){[y.reload,y.restoreCheckpoint,y.save,y.saveAs,y.toggleAutosave,y.duplicate].forEach((e=>{l.addItem({command:e,category:g})}))}}function N(e,t,n,i,o){const a=o.load("jupyterlab");const{commands:l}=e;const d=()=>{var i;const s=/[Pp]ath:\s?(.*)\n?/;const o=e=>{var t;return!!((t=e["title"])===null||t===void 0?void 0:t.match(s))};const r=e.contextMenuHitTest(o);const a=r===null||r===void 0?void 0:r["title"].match(s);return(i=a&&t.findWidget(a[1],null))!==null&&i!==void 0?i:n.currentWidget};const c=()=>{const{currentWidget:e}=n;return!!(e&&t.contextForWidget(e))};l.addCommand(y.clone,{label:()=>a.__("New View for %1",L(d(),t)),isEnabled:c,execute:e=>{const n=d();const s=e["options"]||{mode:"split-right"};if(!n){return}const o=t.cloneWidget(n);if(o){i.open(o,s)}}});l.addCommand(y.rename,{label:()=>{let e=L(d(),t);if(e){e=" "+e}return a.__("Rename%1…",e)},isEnabled:c,execute:()=>{if(c()){const e=t.contextForWidget(d());return(0,r.renameDialog)(t,e)}}});l.addCommand(y.duplicate,{label:()=>a.__("Duplicate %1",L(d(),t)),isEnabled:c,execute:()=>{if(c()){const e=t.contextForWidget(d());if(!e){return}return t.duplicate(e.path)}}});l.addCommand(y.del,{label:()=>a.__("Delete %1",L(d(),t)),isEnabled:c,execute:async()=>{if(c()){const n=t.contextForWidget(d());if(!n){return}const i=await(0,s.showDialog)({title:a.__("Delete"),body:a.__("Are you sure you want to delete %1",n.path),buttons:[s.Dialog.cancelButton(),s.Dialog.warnButton({label:a.__("Delete")})]});if(i.button.accept){await e.commands.execute("docmanager:delete-file",{path:n.path})}}}});l.addCommand(y.showInFileBrowser,{label:()=>a.__("Show in File Browser"),isEnabled:c,execute:async()=>{const e=d();const n=e&&t.contextForWidget(e);if(!n){return}await l.execute("filebrowser:activate",{path:n.path});await l.execute("filebrowser:go-to-path",{path:n.path})}});n.currentChanged.connect((()=>{[y.clone,y.rename,y.duplicate,y.del,y.showInFileBrowser].forEach((t=>{e.commands.notifyCommandChanged(t)}))}))}function O(e,t){let n=null;const i=(t,i)=>{if(i.name==="dirty"){if(i.newValue===true){if(!n){n=e.setDirty()}}else if(n){n.dispose();n=null}}};void t.ready.then((()=>{t.model.stateChanged.connect(i);if(t.model.dirty){n=e.setDirty()}}));t.disposed.connect((()=>{if(n){n.dispose()}}))}var B;(function(e){e.id=0;function t(e,t,n){const i=document.createElement("div");const s=document.createElement("p");const r=document.createTextNode(n.__("Are you sure you want to revert the %1 to checkpoint? ",t));const a=document.createElement("strong");a.textContent=n.__("This cannot be undone.");s.appendChild(r);s.appendChild(a);const l=document.createElement("p");const d=document.createTextNode(n.__("The checkpoint was last updated at: "));const c=document.createElement("p");const h=new Date(e.last_modified);c.style.textAlign="center";c.textContent=o.Time.format(h)+" ("+o.Time.formatHuman(h)+")";l.appendChild(d);l.appendChild(c);i.appendChild(s);i.appendChild(l);return i}e.createRevertConfirmNode=t;async function n(e,t){const n=".";const i=e.map(((e,t)=>{const i=o.Time.format(e.last_modified);const s=o.Time.formatHuman(e.last_modified);return`${t}${n} ${i} (${s})`}));const r=(await s.InputDialog.getItem({items:i,title:t.__("Choose a checkpoint")})).value;if(!r){return}const a=r.split(n,1)[0];return e[parseInt(a,10)]}e.getTargetCheckpoint=n})(B||(B={}))},87779:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(97913);var a=n(79010);var l=n(3579);var d=n(41603)},89069:(e,t,n)=>{"use strict";n.r(t);n.d(t,{DocumentManager:()=>j,DocumentWidgetManager:()=>S,IDocumentManager:()=>O,IDocumentWidgetOpener:()=>B,IRecentsManager:()=>F,PathStatus:()=>P,RecentsManager:()=>H,SaveHandler:()=>y,SavingStatus:()=>N,isValidFileName:()=>u,renameDialog:()=>d,renameFile:()=>c,shouldOverwrite:()=>h});var i=n(14366);var s=n(30397);var o=n(30619);var r=n(1143);const a="jp-FileDialog";const l="jp-new-name-title";function d(e,t,n){n=n||o.nullTranslator;const s=n.load("jupyterlab");const r=t.localPath.split("/");const a=r.pop()||t.localPath;return(0,i.showDialog)({title:s.__("Rename File"),body:new p(a),focusNodeSelector:"input",buttons:[i.Dialog.cancelButton(),i.Dialog.okButton({label:s.__("Rename"),ariaLabel:s.__("Rename File")})]}).then((e=>{if(!e.value){return null}if(!u(e.value)){void(0,i.showErrorMessage)(s.__("Rename Error"),Error(s.__('"%1" is not a valid name for a file. Names must have nonzero length, and cannot include "/", "\\", or ":"',e.value)));return null}return t.rename(e.value)}))}function c(e,t,n){return e.rename(t,n).catch((i=>{if(i.response.status!==409){throw i}return h(n).then((i=>{if(i){return e.overwrite(t,n)}return Promise.reject("File not renamed")}))}))}function h(e,t){t=t||o.nullTranslator;const n=t.load("jupyterlab");const s={title:n.__("Overwrite file?"),body:n.__('"%1" already exists, overwrite?',e),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:n.__("Overwrite"),ariaLabel:n.__("Overwrite Existing File")})]};return(0,i.showDialog)(s).then((e=>Promise.resolve(e.button.accept)))}function u(e){const t=/[\/\\:]/;return e.length>0&&!t.test(e)}class p extends r.Widget{constructor(e){super({node:m.createRenameNode(e)});this.addClass(a);const t=s.PathExt.extname(e);const n=this.inputNode.value=s.PathExt.basename(e);this.inputNode.setSelectionRange(0,n.length-t.length)}get inputNode(){return this.node.getElementsByTagName("input")[0]}getValue(){return this.inputNode.value}}var m;(function(e){function t(e,t){t=t||o.nullTranslator;const n=t.load("jupyterlab");const i=document.createElement("div");const s=document.createElement("label");s.textContent=n.__("File Path");const r=document.createElement("span");r.textContent=e;const a=document.createElement("label");a.textContent=n.__("New Name");a.className=l;const d=document.createElement("input");i.appendChild(s);i.appendChild(r);i.appendChild(a);i.appendChild(d);return i}e.createRenameNode=t})(m||(m={}));var g=n(93037);var f=n(34236);var v=n(5592);var _=n(94466);var b=n(2336);class y{constructor(e){this._autosaveTimer=-1;this._minInterval=-1;this._interval=-1;this._isActive=false;this._inDialog=false;this._isDisposed=false;this._multiplier=10;this._context=e.context;this._isConnectedCallback=e.isConnectedCallback||(()=>true);const t=e.saveInterval||120;this._minInterval=t*1e3;this._interval=this._minInterval;this._context.fileChanged.connect(this._setTimer,this);this._context.disposed.connect(this.dispose,this)}get saveInterval(){return this._interval/1e3}set saveInterval(e){this._minInterval=this._interval=e*1e3;if(this._isActive){this._setTimer()}}get isActive(){return this._isActive}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;clearTimeout(this._autosaveTimer);b.Signal.clearData(this)}start(){this._isActive=true;this._setTimer()}stop(){this._isActive=false;clearTimeout(this._autosaveTimer)}_setTimer(){clearTimeout(this._autosaveTimer);if(!this._isActive){return}this._autosaveTimer=window.setTimeout((()=>{if(this._isConnectedCallback()){this._save()}else{this._setTimer()}}),this._interval)}_save(){var e;const t=this._context;this._setTimer();if(!t){return}if(!((e=t.canSave)!==null&&e!==void 0?e:true)||!t.model.dirty||this._inDialog){return}const n=(new Date).getTime();t.save().then((()=>{if(this.isDisposed){return}const e=(new Date).getTime()-n;this._interval=Math.max(this._multiplier*e,this._minInterval);this._setTimer()})).catch((e=>{const{name:t}=e;if(t==="ModalCancelError"||t==="ModalDuplicateError"){return}console.error("Error in Auto-Save",e.message)}))}}var w=n(90044);var C=n(42856);const x="jp-Document";class S{constructor(e){this._activateRequested=new b.Signal(this);this._confirmClosingTab=false;this._isDisposed=false;this._stateChanged=new b.Signal(this);this._registry=e.registry;this.translator=e.translator||o.nullTranslator;this._recentsManager=e.recentsManager||null}get activateRequested(){return this._activateRequested}get confirmClosingDocument(){return this._confirmClosingTab}set confirmClosingDocument(e){if(this._confirmClosingTab!==e){const t=this._confirmClosingTab;this._confirmClosingTab=e;this._stateChanged.emit({name:"confirmClosingDocument",oldValue:t,newValue:e})}}get stateChanged(){return this._stateChanged}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;b.Signal.disconnectReceiver(this)}createWidget(e,t){const n=e.createNew(t);this._initializeWidget(n,e,t);return n}_initializeWidget(e,t,n){k.factoryProperty.set(e,t);const i=new w.DisposableSet;for(const s of this._registry.widgetExtensions(t.name)){const t=s.createNew(e,n);if(t){i.add(t)}}k.disposablesProperty.set(e,i);e.disposed.connect(this._onWidgetDisposed,this);this.adoptWidget(n,e);n.fileChanged.connect(this._onFileChanged,this);n.pathChanged.connect(this._onPathChanged,this);void n.ready.then((()=>{void this.setCaption(e)}))}adoptWidget(e,t){const n=k.widgetsProperty.get(e);n.push(t);C.MessageLoop.installMessageHook(t,this);t.addClass(x);t.title.closable=true;t.disposed.connect(this._widgetDisposed,this);k.contextProperty.set(t,e)}findWidget(e,t){const n=k.widgetsProperty.get(e);if(!n){return undefined}return(0,f.find)(n,(e=>{const n=k.factoryProperty.get(e);if(!n){return false}return n.name===t}))}contextForWidget(e){return k.contextProperty.get(e)}cloneWidget(e){const t=k.contextProperty.get(e);if(!t){return undefined}const n=k.factoryProperty.get(e);if(!n){return undefined}const i=n.createNew(t,e);this._initializeWidget(i,n,t);return i}closeWidgets(e){const t=k.widgetsProperty.get(e);return Promise.all(t.map((e=>this.onClose(e)))).then((()=>undefined))}deleteWidgets(e){const t=k.widgetsProperty.get(e);return Promise.all(t.map((e=>this.onDelete(e)))).then((()=>undefined))}messageHook(e,t){switch(t.type){case"close-request":void this.onClose(e);return false;case"activate-request":{const t=e;const n=this.contextForWidget(t);if(n){n.ready.then((()=>{this._recordAsRecentlyOpened(t,n.contentsModel)})).catch((()=>{console.warn("Could not record the recents status for",n)}));this._activateRequested.emit(n.path)}break}default:break}return true}async setCaption(e){const t=this.translator.load("jupyterlab");const n=k.contextProperty.get(e);if(!n){return}const i=n.contentsModel;if(!i){e.title.caption="";return}return n.listCheckpoints().then((o=>{if(e.isDisposed){return}const r=o[o.length-1];const a=r?s.Time.format(r.last_modified):"None";let l=t.__("Name: %1\nPath: %2\n",i.name,i.path);if(n.model.readOnly){l+=t.__("Read-only")}else{l+=t.__("Last Saved: %1\n",s.Time.format(i.last_modified))+t.__("Last Checkpoint: %1",a)}e.title.caption=l}))}async onClose(e){var t;const[n,i]=await this._maybeClose(e,this.translator);if(e.isDisposed){return true}if(n){const n=k.contextProperty.get(e);if(!i){if(!n){return true}if((t=n.contentsModel)===null||t===void 0?void 0:t.writable){await n.save()}else{await n.saveAs()}}if(n){const t=await Promise.race([n.ready,new Promise((e=>setTimeout(e,3e3,"timeout")))]);if(t==="timeout"){console.warn("Could not record the widget as recently closed because the context did not become ready in 3 seconds")}else{this._recordAsRecentlyClosed(e,n.contentsModel)}}if(e.isDisposed){return true}e.dispose()}return n}onDelete(e){e.dispose();return Promise.resolve(void 0)}_recordAsRecentlyOpened(e,t){var n;const i=this._recentsManager;if(!i){return}const s=t.path;const o=this._registry.getFileTypeForModel(t);const r=o.contentType;const a=(n=k.factoryProperty.get(e))===null||n===void 0?void 0:n.name;i.addRecent({path:s,contentType:r,factory:a},"opened");if(r!=="directory"){const e=s.lastIndexOf("/")>0?s.slice(0,s.lastIndexOf("/")):"";i.addRecent({path:e,contentType:"directory"},"opened")}}_recordAsRecentlyClosed(e,t){var n;const i=this._recentsManager;if(!i){return}const s=t.path;const o=this._registry.getFileTypeForModel(t);const r=o.contentType;const a=(n=k.factoryProperty.get(e))===null||n===void 0?void 0:n.name;i.addRecent({path:s,contentType:r,factory:a},"closed")}async _maybeClose(e,t){var n,s;t=t||o.nullTranslator;const r=t.load("jupyterlab");const a=k.contextProperty.get(e);if(!a){return Promise.resolve([true,true])}let l=k.widgetsProperty.get(a);if(!l){return Promise.resolve([true,true])}l=l.filter((e=>{const t=k.factoryProperty.get(e);if(!t){return false}return t.readOnly===false}));const d=e.title.label;const c=k.factoryProperty.get(e);const h=a.model.dirty&&l.length<=1&&!((n=c===null||c===void 0?void 0:c.readOnly)!==null&&n!==void 0?n:true);if(this.confirmClosingDocument){const e=[i.Dialog.cancelButton(),i.Dialog.okButton({label:h?r.__("Close and save"):r.__("Close"),ariaLabel:h?r.__("Close and save Document"):r.__("Close Document")})];if(h){e.splice(1,0,i.Dialog.warnButton({label:r.__("Close without saving"),ariaLabel:r.__("Close Document without saving")}))}const t=await(0,i.showDialog)({title:r.__("Confirmation"),body:r.__('Please confirm you want to close "%1".',d),checkbox:h?null:{label:r.__("Do not ask me again."),caption:r.__("If checked, no confirmation to close a document will be asked in the future.")},buttons:e});if(t.isChecked){this.confirmClosingDocument=false}return Promise.resolve([t.button.accept,h?t.button.displayType==="warn":true])}else{if(!h){return Promise.resolve([true,true])}const e=((s=a.contentsModel)===null||s===void 0?void 0:s.writable)?r.__("Save"):r.__("Save as");const t=await(0,i.showDialog)({title:r.__("Save your work"),body:r.__('Save changes in "%1" before closing?',d),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:r.__("Discard"),ariaLabel:r.__("Discard changes to file")}),i.Dialog.okButton({label:e})]});return[t.button.accept,t.button.displayType==="warn"]}}_widgetDisposed(e){const t=k.contextProperty.get(e);if(!t){return}const n=k.widgetsProperty.get(t);if(!n){return}f.ArrayExt.removeFirstOf(n,e);if(!n.length){t.dispose()}}_onWidgetDisposed(e){const t=k.disposablesProperty.get(e);t.dispose()}_onFileChanged(e){const t=k.widgetsProperty.get(e);for(const n of t){void this.setCaption(n)}}_onPathChanged(e){const t=k.widgetsProperty.get(e);for(const n of t){void this.setCaption(n)}}}var k;(function(e){e.contextProperty=new _.AttachedProperty({name:"context",create:()=>undefined});e.factoryProperty=new _.AttachedProperty({name:"factory",create:()=>undefined});e.widgetsProperty=new _.AttachedProperty({name:"widgets",create:()=>[]});e.disposablesProperty=new _.AttachedProperty({name:"disposables",create:()=>new w.DisposableSet})})(k||(k={}));class j{constructor(e){var t;this._activateRequested=new b.Signal(this);this._contexts=[];this._isDisposed=false;this._autosave=true;this._autosaveInterval=120;this._lastModifiedCheckMargin=500;this._renameUntitledFileOnSave=true;this._stateChanged=new b.Signal(this);this.translator=e.translator||o.nullTranslator;this.registry=e.registry;this.services=e.manager;this._dialogs=(t=e.sessionDialogs)!==null&&t!==void 0?t:new i.SessionContextDialogs({translator:e.translator});this._isConnectedCallback=e.isConnectedCallback||(()=>true);this._opener=e.opener;this._when=e.when||e.manager.ready;const n=new S({registry:this.registry,translator:this.translator,recentsManager:e.recentsManager});n.activateRequested.connect(this._onActivateRequested,this);n.stateChanged.connect(this._onWidgetStateChanged,this);this._widgetManager=n;this._setBusy=e.setBusy}get activateRequested(){return this._activateRequested}get autosave(){return this._autosave}set autosave(e){if(this._autosave!==e){const t=this._autosave;this._autosave=e;this._contexts.forEach((t=>{const n=I.saveHandlerProperty.get(t);if(!n){return}if(e===true&&!n.isActive){n.start()}else if(e===false&&n.isActive){n.stop()}}));this._stateChanged.emit({name:"autosave",oldValue:t,newValue:e})}}get autosaveInterval(){return this._autosaveInterval}set autosaveInterval(e){if(this._autosaveInterval!==e){const t=this._autosaveInterval;this._autosaveInterval=e;this._contexts.forEach((t=>{const n=I.saveHandlerProperty.get(t);if(!n){return}n.saveInterval=e||120}));this._stateChanged.emit({name:"autosaveInterval",oldValue:t,newValue:e})}}get confirmClosingDocument(){return this._widgetManager.confirmClosingDocument}set confirmClosingDocument(e){if(this._widgetManager.confirmClosingDocument!==e){const t=this._widgetManager.confirmClosingDocument;this._widgetManager.confirmClosingDocument=e;this._stateChanged.emit({name:"confirmClosingDocument",oldValue:t,newValue:e})}}get lastModifiedCheckMargin(){return this._lastModifiedCheckMargin}set lastModifiedCheckMargin(e){if(this._lastModifiedCheckMargin!==e){const t=this._lastModifiedCheckMargin;this._lastModifiedCheckMargin=e;this._contexts.forEach((t=>{t.lastModifiedCheckMargin=e}));this._stateChanged.emit({name:"lastModifiedCheckMargin",oldValue:t,newValue:e})}}get renameUntitledFileOnSave(){return this._renameUntitledFileOnSave}set renameUntitledFileOnSave(e){if(this._renameUntitledFileOnSave!==e){const t=this._renameUntitledFileOnSave;this._renameUntitledFileOnSave=e;this._stateChanged.emit({name:"renameUntitledFileOnSave",oldValue:t,newValue:e})}}get stateChanged(){return this._stateChanged}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;b.Signal.clearData(this);this._contexts.forEach((e=>this._widgetManager.closeWidgets(e)));this._widgetManager.dispose();this._contexts.length=0}cloneWidget(e){return this._widgetManager.cloneWidget(e)}closeAll(){return Promise.all(this._contexts.map((e=>this._widgetManager.closeWidgets(e)))).then((()=>undefined))}closeFile(e){const t=this._contextsForPath(e).map((e=>this._widgetManager.closeWidgets(e)));return Promise.all(t).then((e=>undefined))}contextForWidget(e){return this._widgetManager.contextForWidget(e)}copy(e,t){return this.services.contents.copy(e,t)}createNew(e,t="default",n){return this._createOrOpenDocument("create",e,t,n)}deleteFile(e){return this.services.sessions.stopIfNeeded(e).then((()=>this.services.contents.delete(e))).then((()=>{this._contextsForPath(e).forEach((e=>this._widgetManager.deleteWidgets(e)));return Promise.resolve(void 0)}))}duplicate(e){const t=s.PathExt.dirname(e);return this.services.contents.copy(e,t)}findWidget(e,t="default"){const n=s.PathExt.normalize(e);let i=[t];if(t==="default"){const e=this.registry.defaultWidgetFactory(n);if(!e){return undefined}i=[e.name]}else if(t===null){i=this.registry.preferredWidgetFactories(n).map((e=>e.name))}for(const s of this._contextsForPath(n)){for(const e of i){if(e!==null){const t=this._widgetManager.findWidget(s,e);if(t){return t}}}}return undefined}newUntitled(e){if(e.type==="file"){e.ext=e.ext||".txt"}return this.services.contents.newUntitled(e)}open(e,t="default",n,i){return this._createOrOpenDocument("open",e,t,n,i)}openOrReveal(e,t="default",n,i){const s=this.findWidget(e,t);if(s){this._opener.open(s,{type:t,...i});return s}return this.open(e,t,n,i!==null&&i!==void 0?i:{})}overwrite(e,t){const n=`${t}.${v.UUID.uuid4()}`;const i=()=>this.rename(n,t);return this.rename(e,n).then((()=>this.deleteFile(t))).then(i,i)}rename(e,t){return this.services.contents.rename(e,t)}_findContext(e,t){const n=this.services.contents.normalize(e);return(0,f.find)(this._contexts,(e=>e.path===n&&e.factoryName===t))}_contextsForPath(e){const t=this.services.contents.normalize(e);return this._contexts.filter((e=>e.path===t))}_createContext(e,t,n,i){const s=(e,t)=>{this._widgetManager.adoptWidget(o,e);this._opener.open(e,t)};const o=new g.Context({opener:s,manager:this.services,factory:t,path:e,kernelPreference:n,setBusy:this._setBusy,sessionDialogs:this._dialogs,lastModifiedCheckMargin:this._lastModifiedCheckMargin,translator:this.translator,contentProviderId:i});const r=new y({context:o,isConnectedCallback:this._isConnectedCallback,saveInterval:this.autosaveInterval});I.saveHandlerProperty.set(o,r);void o.ready.then((()=>{if(this.autosave){r.start()}}));o.disposed.connect(this._onContextDisposed,this);this._contexts.push(o);return o}_onContextDisposed(e){f.ArrayExt.removeFirstOf(this._contexts,e)}_widgetFactoryFor(e,t){const{registry:n}=this;if(t==="default"){const i=n.defaultWidgetFactory(e);if(!i){return undefined}t=i.name}return n.getWidgetFactory(t)}_createOrOpenDocument(e,t,n="default",i,s){const o=this._widgetFactoryFor(t,n);if(!o){return undefined}const r=o.modelName||"text";const a=this.registry.getModelFactory(r);if(!a){return undefined}const l=this.registry.getKernelPreference(t,o.name,i);let d;let c=Promise.resolve(undefined);if(e==="open"){d=this._findContext(t,a.name)||null;if(!d){d=this._createContext(t,a,l,o.contentProviderId);c=this._when.then((()=>d.initialize(false)))}}else if(e==="create"){d=this._createContext(t,a,l,o.contentProviderId);c=this._when.then((()=>d.initialize(true)))}else{throw new Error(`Invalid argument 'which': ${e}`)}const h=this._widgetManager.createWidget(o,d);this._opener.open(h,{type:o.name,...s});c.catch((e=>{console.error(`Failed to initialize the context with '${a.name}' for ${t}`,e);h.close()}));return h}_onActivateRequested(e,t){this._activateRequested.emit(t)}_onWidgetStateChanged(e,t){if(t.name==="confirmClosingDocument"){this._stateChanged.emit(t)}}}var I;(function(e){e.saveHandlerProperty=new _.AttachedProperty({name:"saveHandler",create:()=>undefined})})(I||(I={}));var E=n(24735);var T=n(26331);var M=n(44914);var D=n.n(M);function A(e){return D().createElement(E.TextItem,{source:e.name,title:e.fullPath})}class P extends T.VDomRenderer{constructor(e){super(new P.Model(e.docManager));this.node.title=this.model.path}render(){return D().createElement(A,{fullPath:this.model.path,name:this.model.name})}}(function(e){class t extends T.VDomModel{constructor(e){super();this._onTitleChange=e=>{const t=this._getAllState();this._name=e.label;this._triggerChange(t,this._getAllState())};this._onPathChange=(e,t)=>{const n=this._getAllState();this._path=t;this._name=s.PathExt.basename(t);this._triggerChange(n,this._getAllState())};this._path="";this._name="";this._widget=null;this._docManager=e}get path(){return this._path}get name(){return this._name}get widget(){return this._widget}set widget(e){const t=this._widget;if(t!==null){const e=this._docManager.contextForWidget(t);if(e){e.pathChanged.disconnect(this._onPathChange)}else{t.title.changed.disconnect(this._onTitleChange)}}const n=this._getAllState();this._widget=e;if(this._widget===null){this._path="";this._name=""}else{const e=this._docManager.contextForWidget(this._widget);if(e){this._path=e.path;this._name=s.PathExt.basename(e.path);e.pathChanged.connect(this._onPathChange)}else{this._path="";this._name=this._widget.title.label;this._widget.title.changed.connect(this._onTitleChange)}}this._triggerChange(n,this._getAllState())}_getAllState(){return[this._path,this._name]}_triggerChange(e,t){if(e[0]!==t[0]||e[1]!==t[1]){this.stateChanged.emit(void 0)}}}e.Model=t})(P||(P={}));function L(e){return D().createElement(E.TextItem,{source:e.fileStatus})}const R=2e3;class N extends T.VDomRenderer{constructor(e){super(new N.Model(e.docManager));const t=e.translator||o.nullTranslator;const n=t.load("jupyterlab");this._statusMap={completed:n.__("Saving completed"),started:n.__("Saving started"),failed:n.__("Saving failed")}}render(){if(this.model===null||this.model.status===null){return null}else{return D().createElement(L,{fileStatus:this._statusMap[this.model.status]})}}}(function(e){class t extends T.VDomModel{constructor(e){super();this._onStatusChange=(e,t)=>{this._status=t;if(this._status==="completed"){setTimeout((()=>{this._status=null;this.stateChanged.emit(void 0)}),R);this.stateChanged.emit(void 0)}else{this.stateChanged.emit(void 0)}};this._status=null;this._widget=null;this._status=null;this.widget=null;this._docManager=e}get status(){return this._status}get widget(){return this._widget}set widget(e){var t,n;const i=this._widget;if(i!==null){const e=this._docManager.contextForWidget(i);if(e){e.saveState.disconnect(this._onStatusChange)}else if((t=this._widget.content)===null||t===void 0?void 0:t.saveStateChanged){this._widget.content.saveStateChanged.disconnect(this._onStatusChange)}}this._widget=e;if(this._widget===null){this._status=null}else{const e=this._docManager.contextForWidget(this._widget);if(e){e.saveState.connect(this._onStatusChange)}else if((n=this._widget.content)===null||n===void 0?void 0:n.saveStateChanged){this._widget.content.saveStateChanged.connect(this._onStatusChange)}}}}e.Model=t})(N||(N={}));const O=new v.Token("@jupyterlab/docmanager:IDocumentManager",`A service for the manager for all\n documents used by the application. Use this if you want to open and close documents,\n create and delete files, and otherwise interact with the file system.`);const B=new v.Token("@jupyterlab/docmanager:IDocumentWidgetOpener",`A service to open a widget.`);const F=new v.Token("@jupyterlab/docmanager:IRecentsManager",`A service providing information about recently opened and closed documents`);var z=n(26568);class H{constructor(e){this._recentsChanged=new b.Signal(this);this._recents={opened:[],closed:[]};this._isDisposed=false;this._maxRecentsLength=10;this._saveDebouncer=new z.Debouncer(this._save.bind(this),500);this._stateDB=e.stateDB;this._contentsManager=e.contents;this.updateRootDir();this._loadRecents().catch((e=>{console.error(`Failed to load recent list from state:\n${e}`)}))}get isDisposed(){return this._isDisposed}get recentlyOpened(){const e=this._recents.opened||[];return e.filter((e=>e.root===this._serverRoot))}get recentlyClosed(){const e=this._recents.closed||[];return e.filter((e=>e.root===this._serverRoot))}get changed(){return this._recentsChanged}get maximalRecentsLength(){return this._maxRecentsLength}set maximalRecentsLength(e){this._maxRecentsLength=Math.round(Math.max(1,e));let t=false;for(const n of["opened","closed"]){if(this._recents[n].length>this._maxRecentsLength){this._recents[n].length=this._maxRecentsLength;t=true}}if(t){this._recentsChanged.emit(undefined)}}dispose(){if(this.isDisposed){return}this._isDisposed=true;b.Signal.clearData(this);this._saveDebouncer.dispose()}addRecent(e,t){const n={...e,root:this._serverRoot};const i=this._recents[t];const s=i.findIndex((t=>t.path===e.path));if(s>=0){i.splice(s,1)}i.unshift(n);this._setRecents(i,t);this._recentsChanged.emit(undefined)}clearRecents(){this._setRecents([],"opened");this._setRecents([],"closed");this._recentsChanged.emit(undefined)}removeRecent(e,t){this._removeRecent(e.path,[t])}async validate(e){const t=await this._isValid(e);if(!t){this._removeRecent(e.path)}return t}updateRootDir(){this._serverRoot=s.PageConfig.getOption("serverRoot")}_removeRecent(e,t=["opened","closed"]){let n=false;for(const i of t){const t=this._recents[i];const s=t.filter((t=>e!==t.path));if(t.length!==s.length){this._setRecents(s,i);n=true}}if(n){this._recentsChanged.emit(undefined)}}async _isValid(e){var t;try{await this._contentsManager.get(e.path,{content:false})}catch(n){if(((t=n.response)===null||t===void 0?void 0:t.status)===404){return false}}return true}_setRecents(e,t){this._recents[t]=e.slice(0,this.maximalRecentsLength).sort(((e,t)=>{if(e.root===t.root){return 0}else{return e.root!==this._serverRoot?1:-1}}));this._saveDebouncer.invoke().catch(console.warn)}async _loadRecents(){const e=await this._stateDB.fetch(W.stateDBKey)||{opened:[],closed:[]};const t=[...e.opened,...e.closed];const n=new Set(await this._getInvalidPaths(t));for(const i of["opened","closed"]){this._setRecents(e[i].filter((e=>!n.has(e.path))),i)}this._recentsChanged.emit(undefined)}async _getInvalidPaths(e){const t=await Promise.all(e.map((async e=>{if(await this._isValid(e)){return null}else{return e.path}})));return t.filter((e=>typeof e==="string"))}async _save(){try{await this._stateDB.save(W.stateDBKey,this._recents)}catch(e){console.log("Saving recents failed",e)}}}var W;(function(e){e.stateDBKey="docmanager:recents"})(W||(W={}))},41603:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(79010)},70491:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ABCWidgetFactory:()=>b,Base64ModelFactory:()=>_,Context:()=>h,DocumentModel:()=>f,DocumentRegistry:()=>T,DocumentWidget:()=>w,MimeContent:()=>x,MimeDocument:()=>S,MimeDocumentFactory:()=>k,TextModelFactory:()=>v,createReadonlyLabel:()=>g});var i=n(14366);var s=n(30397);var o=n(44539);var r=n(30619);var a=n(5592);var l=n(90044);var d=n(2336);var c=n(1143);class h{constructor(e){var t,n;this._isReady=false;this._isDisposed=false;this._isPopulated=false;this._path="";this._lineEnding=null;this._contentsModel=null;this._populatedPromise=new a.PromiseDelegate;this._pathChanged=new d.Signal(this);this._fileChanged=new d.Signal(this);this._saveState=new d.Signal(this);this._disposed=new d.Signal(this);this._lastModifiedCheckMargin=500;this._conflictModalIsOpen=false;const l=this._manager=e.manager;this.translator=e.translator||r.nullTranslator;this._contentProviderId=e.contentProviderId;this._trans=this.translator.load("jupyterlab");this._factory=e.factory;this._dialogs=(t=e.sessionDialogs)!==null&&t!==void 0?t:new i.SessionContextDialogs({translator:e.translator});this._opener=e.opener||u.noOp;this._path=this._manager.contents.normalize(e.path);this._lastModifiedCheckMargin=e.lastModifiedCheckMargin||500;const c=this._manager.contents.localPath(this._path);const h=this._factory.preferredLanguage(s.PathExt.basename(c));const p=this._manager.contents.getSharedModelFactory(this._path,{contentProviderId:e.contentProviderId});const m=p===null||p===void 0?void 0:p.createNew({path:c,format:this._factory.fileFormat,contentType:this._factory.contentType,collaborative:this._factory.collaborative});this._model=this._factory.createNew({languagePreference:h,sharedModel:m,collaborationEnabled:(n=p===null||p===void 0?void 0:p.collaborative)!==null&&n!==void 0?n:false});this._readyPromise=l.ready.then((()=>this._populatedPromise.promise));const g=s.PathExt.extname(this._path);this.sessionContext=new i.SessionContext({kernelManager:l.kernels,sessionManager:l.sessions,specsManager:l.kernelspecs,path:c,type:g===".ipynb"?"notebook":"file",name:s.PathExt.basename(c),kernelPreference:e.kernelPreference||{shouldStart:false},setBusy:e.setBusy});this.sessionContext.propertyChanged.connect(this._onSessionChanged,this);l.contents.fileChanged.connect(this._onFileChanged,this);this.urlResolver=new o.RenderMimeRegistry.UrlResolver({path:this._path,contents:l.contents})}get pathChanged(){return this._pathChanged}get fileChanged(){return this._fileChanged}get saveState(){return this._saveState}get disposed(){return this._disposed}get lastModifiedCheckMargin(){return this._lastModifiedCheckMargin}set lastModifiedCheckMargin(e){this._lastModifiedCheckMargin=e}get model(){return this._model}get path(){return this._path}get localPath(){return this._manager.contents.localPath(this._path)}get contentsModel(){return this._contentsModel?{...this._contentsModel}:null}get factoryName(){return this.isDisposed?"":this._factory.name}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this.sessionContext.dispose();this._model.dispose();this._model.sharedModel.dispose();this._disposed.emit(void 0);d.Signal.clearData(this)}get isReady(){return this._isReady}get ready(){return this._readyPromise}get canSave(){var e;return!!(((e=this._contentsModel)===null||e===void 0?void 0:e.writable)&&!this._model.collaborative)}async initialize(e){if(e){await this._save()}else{await this._revert()}this.model.sharedModel.clearUndoHistory()}rename(e){return this.ready.then((()=>this._manager.ready.then((()=>this._rename(e)))))}async save(){await this.ready;await this._save()}async saveAs(){await this.ready;const e=this._manager.contents.localPath(this.path);const t=await u.getSavePath(e);if(this.isDisposed||!t){return}const n=this._manager.contents.driveName(this.path);const i=n==""?t:`${n}:${t}`;if(i===this._path){return this.save()}try{await this._manager.ready;await this._manager.contents.get(i,{contentProviderId:this._contentProviderId});await this._maybeOverWrite(i)}catch(s){if(!s.response||s.response.status!==404){throw s}await this._finishSaveAs(i)}}async download(){const e=await this._manager.contents.getDownloadUrl(this._path);const t=document.createElement("a");t.href=e;t.download="";document.body.appendChild(t);t.click();document.body.removeChild(t);return void 0}async revert(){await this.ready;await this._revert()}createCheckpoint(){const e=this._manager.contents;return this._manager.ready.then((()=>e.createCheckpoint(this._path)))}deleteCheckpoint(e){const t=this._manager.contents;return this._manager.ready.then((()=>t.deleteCheckpoint(this._path,e)))}restoreCheckpoint(e){const t=this._manager.contents;const n=this._path;return this._manager.ready.then((()=>{if(e){return t.restoreCheckpoint(n,e)}return this.listCheckpoints().then((i=>{if(this.isDisposed||!i.length){return}e=i[i.length-1].id;return t.restoreCheckpoint(n,e)}))}))}listCheckpoints(){const e=this._manager.contents;return this._manager.ready.then((()=>e.listCheckpoints(this._path)))}addSibling(e,t={}){const n=this._opener;if(n){n(e,t)}return new l.DisposableDelegate((()=>{e.close()}))}_onFileChanged(e,t){var n,i,s;if(t.type==="save"&&this._model.collaborative){if(((n=this._contentsModel)===null||n===void 0?void 0:n.path)!==((i=t.newValue)===null||i===void 0?void 0:i.path)){return}this._updateContentsModel({...this._contentsModel,...t.newValue});return}if(t.type!=="rename"){return}let o=t.oldValue&&t.oldValue.path;let r=t.newValue&&t.newValue.path;if(r&&this._path.indexOf(o||"")===0){let e=t.newValue;if(o!==this._path){r=this._path.replace(new RegExp(`^${o}/`),`${r}/`);o=this._path;e={last_modified:(s=t.newValue)===null||s===void 0?void 0:s.created,path:r}}this._updateContentsModel({...this._contentsModel,...e});this._updatePath(r)}}_onSessionChanged(e,t){if(t!=="path"){return}const n=this._manager.contents.driveName(this.path);let i=this.sessionContext.session.path;if(n){i=`${n}:${i}`}this._updatePath(i)}_updateContentsModel(e){var t,n,i,s;const o={path:e.path,name:e.name,type:e.type,writable:e.writable,created:e.created,last_modified:e.last_modified,mimetype:e.mimetype,format:e.format,hash:e.hash,hash_algorithm:e.hash_algorithm};const r=(n=(t=this._contentsModel)===null||t===void 0?void 0:t.last_modified)!==null&&n!==void 0?n:null;const a=(s=(i=this._contentsModel)===null||i===void 0?void 0:i.hash)!==null&&s!==void 0?s:null;this._contentsModel=o;if(!r&&!a||!a&&o.last_modified!==r||a&&o.hash!==a){this._fileChanged.emit(o)}}_updatePath(e){var t,n,i,o;if(this._path===e){return}this._path=e;const r=this._manager.contents.localPath(e);const a=s.PathExt.basename(r);if(((t=this.sessionContext.session)===null||t===void 0?void 0:t.path)!==r){void((n=this.sessionContext.session)===null||n===void 0?void 0:n.setPath(r))}if(((i=this.sessionContext.session)===null||i===void 0?void 0:i.name)!==a){void((o=this.sessionContext.session)===null||o===void 0?void 0:o.setName(a))}if(this.urlResolver.path!==e){this.urlResolver.path=e}if(this._contentsModel&&(this._contentsModel.path!==e||this._contentsModel.name!==a)){const t={...this._contentsModel,name:a,path:e};this._updateContentsModel(t)}this._pathChanged.emit(e)}async _populate(){this._isPopulated=true;this._isReady=true;this._populatedPromise.resolve(void 0);await this._maybeCheckpoint(false);if(this.isDisposed){return}const e=this._model.defaultKernelName||this.sessionContext.kernelPreference.name;this.sessionContext.kernelPreference={...this.sessionContext.kernelPreference,name:e,language:this._model.defaultKernelLanguage};void this.sessionContext.initialize().then((e=>{if(e){void this._dialogs.selectKernel(this.sessionContext)}}))}async _rename(e){const t=this.localPath.split("/");t[t.length-1]=e;let n=s.PathExt.join(...t);const i=this._manager.contents.driveName(this.path);if(i){n=`${i}:${n}`}await this._manager.contents.rename(this.path,n)}async _save(){this._saveState.emit("started");const e=this._createSaveOptions();try{await this._manager.ready;if(this._model.collaborative){this._saveState.emit("completed");return Promise.resolve()}const t=await this._maybeSave(e);if(this.isDisposed){return}this._model.dirty=false;this._updateContentsModel(t);if(!this._isPopulated){await this._populate()}this._saveState.emit("completed")}catch(t){const{name:e}=t;if(e==="ModalCancelError"||e==="ModalDuplicateError"){throw t}const n=this._manager.contents.localPath(this._path);const i=s.PathExt.basename(n);void this._handleError(t,this._trans.__("File Save Error for %1",i));this._saveState.emit("failed");throw t}}_revert(e=false){const t={type:this._factory.contentType,content:this._factory.fileFormat!==null,hash:this._factory.fileFormat!==null,...this._factory.fileFormat!==null?{format:this._factory.fileFormat}:{},contentProviderId:this._contentProviderId};const n=this._path;const i=this._model;return this._manager.ready.then((()=>this._manager.contents.get(n,t))).then((e=>{if(this.isDisposed){return}if(e.content){if(e.format==="json"){i.fromJSON(e.content)}else{let t=e.content;if(t.indexOf("\r\n")!==-1){this._lineEnding="\r\n";t=t.replace(/\r\n/g,"\n")}else if(t.indexOf("\r")!==-1){this._lineEnding="\r";t=t.replace(/\r/g,"\n")}else{this._lineEnding=null}i.fromString(t)}}this._updateContentsModel(e);i.dirty=false;if(!this._isPopulated){return this._populate()}})).catch((async e=>{const t=this._manager.contents.localPath(this._path);const n=s.PathExt.basename(t);void this._handleError(e,this._trans.__("File Load Error for %1",n));throw e}))}_maybeSave(e){const t=this._path;const n=this._manager.contents.get(t,{content:false,hash:true,contentProviderId:this._contentProviderId});return n.then((n=>{var i,s,o,r;if(this.isDisposed){return Promise.reject(new Error("Disposed"))}const a=((i=this.contentsModel)===null||i===void 0?void 0:i.hash)!==undefined&&((s=this.contentsModel)===null||s===void 0?void 0:s.hash)!==null&&n.hash!==undefined&&n.hash!==null;const l=(o=this.contentsModel)===null||o===void 0?void 0:o.hash;const d=n.hash;if(a&&l!==d){console.warn(`Different hash found for ${this.path}`);return this._raiseConflict(n,e)}const c=this._lastModifiedCheckMargin;const h=(r=this.contentsModel)===null||r===void 0?void 0:r.last_modified;const u=h?new Date(h):new Date;const p=new Date(n.last_modified);if(!a&&h&&p.getTime()-u.getTime()>c){console.warn(`Last saving performed ${u} `+`while the current file seems to have been saved `+`${p}`);return this._raiseConflict(n,e)}return this._manager.contents.save(t,e).then((async e=>{const n=await this._manager.contents.get(t,{content:false,hash:true,contentProviderId:this._contentProviderId});return{...e,hash:n.hash,hash_algorithm:n.hash_algorithm}}))}),(n=>{if(n.response&&n.response.status===404){return this._manager.contents.save(t,e).then((async e=>{const n=await this._manager.contents.get(t,{content:false,hash:true,contentProviderId:this._contentProviderId});return{...e,hash:n.hash,hash_algorithm:n.hash_algorithm}}))}throw n}))}async _handleError(e,t){await(0,i.showErrorMessage)(t,e);return}_maybeCheckpoint(e){let t=Promise.resolve(void 0);if(!this.canSave){return t}if(e){t=this.createCheckpoint().then()}else{t=this.listCheckpoints().then((e=>{if(!this.isDisposed&&!e.length&&this.canSave){return this.createCheckpoint().then()}}))}return t.catch((e=>{if(!e.response||e.response.status!==403){throw e}}))}_raiseConflict(e,t){if(this._conflictModalIsOpen){const e=new Error("Modal is already displayed");e.name="ModalDuplicateError";return Promise.reject(e)}const n=this._trans.__(`"%1" has changed on disk since the last time it was opened or saved.\nDo you want to overwrite the file on disk with the version open here,\nor load the version on disk (revert)?`,this.path);const s=i.Dialog.okButton({label:this._trans.__("Revert"),actions:["revert"]});const o=i.Dialog.warnButton({label:this._trans.__("Overwrite"),actions:["overwrite"]});this._conflictModalIsOpen=true;return(0,i.showDialog)({title:this._trans.__("File Changed"),body:n,buttons:[i.Dialog.cancelButton(),s,o]}).then((n=>{this._conflictModalIsOpen=false;if(this.isDisposed){return Promise.reject(new Error("Disposed"))}if(n.button.actions.includes("overwrite")){return this._manager.contents.save(this._path,{...t,contentProviderId:this._contentProviderId})}if(n.button.actions.includes("revert")){return this.revert().then((()=>e))}const i=new Error("Cancel");i.name="ModalCancelError";return Promise.reject(i)}))}_maybeOverWrite(e){const t=this._trans.__('"%1" already exists. Do you want to replace it?',e);const n=i.Dialog.warnButton({label:this._trans.__("Overwrite"),accept:true});return(0,i.showDialog)({title:this._trans.__("File Overwrite?"),body:t,buttons:[i.Dialog.cancelButton(),n]}).then((t=>{if(this.isDisposed){return Promise.reject(new Error("Disposed"))}if(t.button.accept){return this._manager.contents.delete(e).then((()=>this._finishSaveAs(e)))}}))}async _finishSaveAs(e){this._saveState.emit("started");try{await this._manager.ready;const t=this._createSaveOptions();await this._manager.contents.save(e,t);await this._maybeCheckpoint(true);this._saveState.emit("completed")}catch(t){if(t.message==="Cancel"||t.message==="Modal is already displayed"){throw t}const e=this._manager.contents.localPath(this._path);const n=s.PathExt.basename(e);void this._handleError(t,this._trans.__("File Save Error for %1",n));this._saveState.emit("failed");return}}_createSaveOptions(){let e=null;if(this._factory.fileFormat==="json"){e=this._model.toJSON()}else{e=this._model.toString();if(this._lineEnding){e=e.replace(/\n/g,this._lineEnding)}}return{type:this._factory.contentType,format:this._factory.fileFormat,content:e}}}var u;(function(e){function t(e,t){t=t||r.nullTranslator;const n=t.load("jupyterlab");const o=i.Dialog.okButton({label:n.__("Save"),accept:true});return(0,i.showDialog)({title:n.__("Save File As…"),body:new s(e),buttons:[i.Dialog.cancelButton(),o]}).then((e=>{var t;if(e.button.accept){return(t=e.value)!==null&&t!==void 0?t:undefined}return}))}e.getSavePath=t;function n(){}e.noOp=n;class s extends c.Widget{constructor(e){super({node:o(e)})}getValue(){return this.node.value}}function o(e){const t=document.createElement("input");t.value=e;return t}})(u||(u={}));var p=n(54723);var m=n(44914);function g(e,t){var n;let s=(t!==null&&t!==void 0?t:r.nullTranslator).load("jupyterlab");return i.ReactWidget.create(m.createElement("div",null,m.createElement("span",{className:"jp-ToolbarLabelComponent",title:s.__(`Document is read-only. "Save" is disabled; use "Save as…" instead`)},s.__(`%1 is read-only`,(n=e.context.contentsModel)===null||n===void 0?void 0:n.type))))}class f extends p.CodeEditor.Model{constructor(e={}){var t;super({sharedModel:e.sharedModel});this._defaultLang="";this._dirty=false;this._readOnly=false;this._contentChanged=new d.Signal(this);this._stateChanged=new d.Signal(this);this._defaultLang=(t=e.languagePreference)!==null&&t!==void 0?t:"";this._collaborationEnabled=!!e.collaborationEnabled;this.sharedModel.changed.connect(this._onStateChanged,this)}get contentChanged(){return this._contentChanged}get stateChanged(){return this._stateChanged}get dirty(){return this._dirty}set dirty(e){const t=this._dirty;if(e===t){return}this._dirty=e;this.triggerStateChange({name:"dirty",oldValue:t,newValue:e})}get readOnly(){return this._readOnly}set readOnly(e){if(e===this._readOnly){return}const t=this._readOnly;this._readOnly=e;this.triggerStateChange({name:"readOnly",oldValue:t,newValue:e})}get defaultKernelName(){return""}get defaultKernelLanguage(){return this._defaultLang}get collaborative(){return this._collaborationEnabled}toString(){return this.sharedModel.getSource()}fromString(e){this.sharedModel.setSource(e)}toJSON(){return JSON.parse(this.sharedModel.getSource()||"null")}fromJSON(e){this.fromString(JSON.stringify(e))}initialize(){return}triggerStateChange(e){this._stateChanged.emit(e)}triggerContentChange(){this._contentChanged.emit(void 0);this.dirty=true}_onStateChanged(e,t){if(t.sourceChange){this.triggerContentChange()}if(t.stateChange){t.stateChange.forEach((e=>{if(e.name==="dirty"){this.dirty=e.newValue}else if(e.oldValue!==e.newValue){this.triggerStateChange({newValue:undefined,oldValue:undefined,...e})}}))}}}class v{constructor(e){this._isDisposed=false;this._collaborative=e!==null&&e!==void 0?e:true}get name(){return"text"}get contentType(){return"file"}get fileFormat(){return"text"}get collaborative(){return this._collaborative}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed=true}createNew(e={}){const t=e.collaborationEnabled&&this.collaborative;return new f({...e,collaborationEnabled:t})}preferredLanguage(e){return""}}class _ extends v{get name(){return"base64"}get contentType(){return"file"}get fileFormat(){return"base64"}}class b{constructor(e){this._isDisposed=false;this._widgetCreated=new d.Signal(this);this._translator=e.translator||r.nullTranslator;this._name=e.name;this._label=e.label||e.name;this._readOnly=e.readOnly===undefined?false:e.readOnly;this._defaultFor=e.defaultFor?e.defaultFor.slice():[];this._defaultRendered=(e.defaultRendered||[]).slice();this._fileTypes=e.fileTypes.slice();this._modelName=e.modelName||"text";this._preferKernel=!!e.preferKernel;this._canStartKernel=!!e.canStartKernel;this._shutdownOnClose=!!e.shutdownOnClose;this._autoStartDefault=!!e.autoStartDefault;this._toolbarFactory=e.toolbarFactory;this._contentProviderId=e.contentProviderId}get widgetCreated(){return this._widgetCreated}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;d.Signal.clearData(this)}get readOnly(){return this._readOnly}get name(){return this._name}get label(){return this._label}get fileTypes(){return this._fileTypes.slice()}get modelName(){return this._modelName}get defaultFor(){return this._defaultFor.slice()}get defaultRendered(){return this._defaultRendered.slice()}get preferKernel(){return this._preferKernel}get canStartKernel(){return this._canStartKernel}get translator(){return this._translator}get shutdownOnClose(){return this._shutdownOnClose}set shutdownOnClose(e){this._shutdownOnClose=e}get autoStartDefault(){return this._autoStartDefault}set autoStartDefault(e){this._autoStartDefault=e}createNew(e,t){var n;const s=this.createNewWidget(e,t);(0,i.setToolbar)(s,(n=this._toolbarFactory)!==null&&n!==void 0?n:this.defaultToolbarFactory.bind(this));this._widgetCreated.emit(s);return s}get contentProviderId(){return this._contentProviderId}set contentProviderId(e){if(this._contentProviderId&&e!==this._contentProviderId){throw Error(`Cannot change content provider on factory with an existing provider: ${this._contentProviderId}`)}this._contentProviderId=e}defaultToolbarFactory(e){return[]}}const y="jp-mod-dirty";class w extends i.MainAreaWidget{constructor(e){var t;e.reveal=Promise.all([e.reveal,e.context.ready]);super(e);this._trans=((t=e.translator)!==null&&t!==void 0?t:r.nullTranslator).load("jupyterlab");this.context=e.context;this.context.pathChanged.connect(this._onPathChanged,this);this._onPathChanged(this.context,this.context.path);this.context.model.stateChanged.connect(this._onModelStateChanged,this);void this.context.ready.then((()=>{this._handleDirtyState()}));this.title.changed.connect(this._onTitleChanged,this)}setFragment(e){}async _onTitleChanged(e){const t=/[\/\\:]/;const n=this.title.label;const i=this.context.localPath.split("/").pop()||this.context.localPath;if(n===i){return}if(n.length>0&&!t.test(n)){const e=this.context.path;await this.context.rename(n);if(this.context.path!==e){return}}this.title.label=i}_onPathChanged(e,t){this.title.label=s.PathExt.basename(e.localPath);this.isUntitled=false}_onModelStateChanged(e,t){var n;if(t.name==="dirty"){this._handleDirtyState()}if(!this.context.model.dirty){if(((n=this.context.contentsModel)===null||n===void 0?void 0:n.writable)===false){const e=g(this);let t=this.toolbar.insertBefore("kernelName","read-only-indicator",e);if(!t){this.toolbar.addItem("read-only-indicator",e)}}}}_handleDirtyState(){if(this.context.model.dirty&&!this.title.className.includes(y)){this.title.className+=` ${y}`}else{this.title.className=this.title.className.replace(y,"")}}}var C=n(42856);class x extends c.Widget{constructor(e){super();this._changeCallback=e=>{if(!e.data||!e.data[this.mimeType]){return}const t=e.data[this.mimeType];if(typeof t==="string"){if(t!==this._context.model.toString()){this._context.model.fromString(t)}}else if(t!==null&&t!==undefined&&!a.JSONExt.deepEqual(t,this._context.model.toJSON())){this._context.model.fromJSON(t)}};this._fragment="";this._ready=new a.PromiseDelegate;this._isRendering=false;this._renderRequested=false;this.addClass("jp-MimeDocument");this.translator=e.translator||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this.mimeType=e.mimeType;this._dataType=e.dataType||"string";this._context=e.context;this.renderer=e.renderer;const t=this.layout=new c.StackedLayout;t.addWidget(this.renderer);this._context.ready.then((()=>this._render())).then((()=>{if(this.node===document.activeElement){C.MessageLoop.sendMessage(this.renderer,c.Widget.Msg.ActivateRequest)}this._monitor=new s.ActivityMonitor({signal:this._context.model.contentChanged,timeout:e.renderTimeout});this._monitor.activityStopped.connect(this.update,this);this._ready.resolve(undefined)})).catch((e=>{requestAnimationFrame((()=>{this.dispose()}));void(0,i.showErrorMessage)(this._trans.__("Renderer Failure: %1",this._context.path),e)}))}[i.Printing.symbol](){return i.Printing.getPrintFunction(this.renderer)}get ready(){return this._ready.promise}setFragment(e){this._fragment=e;this.update()}dispose(){if(this.isDisposed){return}if(this._monitor){this._monitor.dispose()}this._monitor=null;super.dispose()}onUpdateRequest(e){if(this._context.isReady){void this._render();this._fragment=""}}async _render(){if(this.isDisposed){return}if(this._isRendering){this._renderRequested=true;return}this._renderRequested=false;const e=this._context;const t=e.model;const n={};if(this._dataType==="string"){n[this.mimeType]=t.toString()}else{n[this.mimeType]=t.toJSON()}const s=new o.MimeModel({data:n,callback:this._changeCallback,metadata:{fragment:this._fragment}});try{this._isRendering=true;await this.renderer.renderModel(s);this._isRendering=false;if(this._renderRequested){return this._render()}}catch(r){requestAnimationFrame((()=>{this.dispose()}));void(0,i.showErrorMessage)(this._trans.__("Renderer Failure: %1",e.path),r)}}}class S extends w{setFragment(e){this.content.setFragment(e)}}class k extends b{constructor(e){super(j.createRegistryOptions(e));this._rendermime=e.rendermime;this._renderTimeout=e.renderTimeout||1e3;this._dataType=e.dataType||"string";this._fileType=e.primaryFileType;this._factory=e.factory}createNewWidget(e){var t,n;const i=this._fileType;const s=(i===null||i===void 0?void 0:i.mimeTypes.length)?i.mimeTypes[0]:p.IEditorMimeTypeService.defaultMimeType;const o=this._rendermime.clone({resolver:e.urlResolver});let r;if(this._factory&&this._factory.mimeTypes.includes(s)){r=this._factory.createRenderer({mimeType:s,resolver:o.resolver,sanitizer:o.sanitizer,linkHandler:o.linkHandler,latexTypesetter:o.latexTypesetter,markdownParser:o.markdownParser})}else{r=o.createRenderer(s)}const a=new x({context:e,renderer:r,mimeType:s,renderTimeout:this._renderTimeout,dataType:this._dataType});a.title.icon=i===null||i===void 0?void 0:i.icon;a.title.iconClass=(t=i===null||i===void 0?void 0:i.iconClass)!==null&&t!==void 0?t:"";a.title.iconLabel=(n=i===null||i===void 0?void 0:i.iconLabel)!==null&&n!==void 0?n:"";const l=new S({content:a,context:e});return l}}var j;(function(e){function t(e){return{...e,readOnly:true}}e.createRegistryOptions=t})(j||(j={}));var I=n(26331);var E=n(34236);class T{constructor(e={}){this._modelFactories=Object.create(null);this._widgetFactories=Object.create(null);this._defaultWidgetFactory="";this._defaultWidgetFactoryOverrides=Object.create(null);this._defaultWidgetFactories=Object.create(null);this._defaultRenderedWidgetFactories=Object.create(null);this._widgetFactoriesForFileType=Object.create(null);this._fileTypes=[];this._extenders=Object.create(null);this._changed=new d.Signal(this);this._isDisposed=false;const t=e.textModelFactory;this.translator=e.translator||r.nullTranslator;if(t&&t.name!=="text"){throw new Error("Text model factory must have the name `text`")}this._modelFactories["text"]=t||new v(true);const n=e.initialFileTypes||T.getDefaultFileTypes(this.translator);n.forEach((e=>{const t={...T.getFileTypeDefaults(this.translator),...e};this._fileTypes.push(t)}))}get changed(){return this._changed}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;for(const e in this._modelFactories){this._modelFactories[e].dispose()}for(const e in this._widgetFactories){this._widgetFactories[e].dispose()}for(const e in this._extenders){this._extenders[e].length=0}this._fileTypes.length=0;d.Signal.clearData(this)}addWidgetFactory(e){const t=e.name.toLowerCase();if(!t||t==="default"){throw Error("Invalid factory name")}if(this._widgetFactories[t]){console.warn(`Duplicate registered factory ${t}`);return new l.DisposableDelegate(M.noOp)}this._widgetFactories[t]=e;for(const n of e.defaultFor||[]){if(e.fileTypes.indexOf(n)===-1){continue}if(n==="*"){this._defaultWidgetFactory=t}else{this._defaultWidgetFactories[n]=t}}for(const n of e.defaultRendered||[]){if(e.fileTypes.indexOf(n)===-1){continue}this._defaultRenderedWidgetFactories[n]=t}for(const n of e.fileTypes){if(!this._widgetFactoriesForFileType[n]){this._widgetFactoriesForFileType[n]=[]}this._widgetFactoriesForFileType[n].push(t)}this._changed.emit({type:"widgetFactory",name:t,change:"added"});return new l.DisposableDelegate((()=>{delete this._widgetFactories[t];if(this._defaultWidgetFactory===t){this._defaultWidgetFactory=""}for(const e of Object.keys(this._defaultWidgetFactories)){if(this._defaultWidgetFactories[e]===t){delete this._defaultWidgetFactories[e]}}for(const e of Object.keys(this._defaultRenderedWidgetFactories)){if(this._defaultRenderedWidgetFactories[e]===t){delete this._defaultRenderedWidgetFactories[e]}}for(const e of Object.keys(this._widgetFactoriesForFileType)){E.ArrayExt.removeFirstOf(this._widgetFactoriesForFileType[e],t);if(this._widgetFactoriesForFileType[e].length===0){delete this._widgetFactoriesForFileType[e]}}for(const e of Object.keys(this._defaultWidgetFactoryOverrides)){if(this._defaultWidgetFactoryOverrides[e]===t){delete this._defaultWidgetFactoryOverrides[e]}}this._changed.emit({type:"widgetFactory",name:t,change:"removed"})}))}addModelFactory(e){const t=e.name.toLowerCase();if(this._modelFactories[t]){console.warn(`Duplicate registered factory ${t}`);return new l.DisposableDelegate(M.noOp)}this._modelFactories[t]=e;this._changed.emit({type:"modelFactory",name:t,change:"added"});return new l.DisposableDelegate((()=>{delete this._modelFactories[t];this._changed.emit({type:"modelFactory",name:t,change:"removed"})}))}addWidgetExtension(e,t){e=e.toLowerCase();if(!(e in this._extenders)){this._extenders[e]=[]}const n=this._extenders[e];const i=E.ArrayExt.firstIndexOf(n,t);if(i!==-1){console.warn(`Duplicate registered extension for ${e}`);return new l.DisposableDelegate(M.noOp)}this._extenders[e].push(t);this._changed.emit({type:"widgetExtension",name:e,change:"added"});return new l.DisposableDelegate((()=>{E.ArrayExt.removeFirstOf(this._extenders[e],t);this._changed.emit({type:"widgetExtension",name:e,change:"removed"})}))}addFileType(e,t){const n={...T.getFileTypeDefaults(this.translator),...e,...!(e.icon||e.iconClass)&&{icon:I.fileIcon}};this._fileTypes.push(n);if(t){const e=n.name.toLowerCase();t.map((e=>e.toLowerCase())).forEach((t=>{if(!this._widgetFactoriesForFileType[e]){this._widgetFactoriesForFileType[e]=[]}if(!this._widgetFactoriesForFileType[e].includes(t)){this._widgetFactoriesForFileType[e].push(t)}}));if(!this._defaultWidgetFactories[e]){this._defaultWidgetFactories[e]=this._widgetFactoriesForFileType[e][0]}}this._changed.emit({type:"fileType",name:n.name,change:"added"});return new l.DisposableDelegate((()=>{E.ArrayExt.removeFirstOf(this._fileTypes,n);if(t){const e=n.name.toLowerCase();for(const n of t.map((e=>e.toLowerCase()))){E.ArrayExt.removeFirstOf(this._widgetFactoriesForFileType[e],n)}if(this._defaultWidgetFactories[e]===t[0].toLowerCase()){delete this._defaultWidgetFactories[e]}}this._changed.emit({type:"fileType",name:e.name,change:"removed"})}))}preferredWidgetFactories(e){const t=new Set;const n=this.getFileTypesForPath(s.PathExt.basename(e));n.forEach((e=>{if(e.name in this._defaultWidgetFactoryOverrides){t.add(this._defaultWidgetFactoryOverrides[e.name])}}));n.forEach((e=>{if(e.name in this._defaultWidgetFactories){t.add(this._defaultWidgetFactories[e.name])}}));n.forEach((e=>{if(e.name in this._defaultRenderedWidgetFactories){t.add(this._defaultRenderedWidgetFactories[e.name])}}));if(this._defaultWidgetFactory){t.add(this._defaultWidgetFactory)}for(const s of n){if(s.name in this._widgetFactoriesForFileType){for(const e of this._widgetFactoriesForFileType[s.name]){t.add(e)}}}if("*"in this._widgetFactoriesForFileType){for(const e of this._widgetFactoriesForFileType["*"]){t.add(e)}}const i=[];for(const s of t){const e=this._widgetFactories[s];if(!e){continue}const t=e.modelName||"text";if(t in this._modelFactories){i.push(e)}}return i}defaultRenderedWidgetFactory(e){const t=this.getFileTypesForPath(s.PathExt.basename(e)).map((e=>e.name));for(const n in t){if(n in this._defaultWidgetFactoryOverrides){return this._widgetFactories[this._defaultWidgetFactoryOverrides[n]]}}for(const n in t){if(n in this._defaultRenderedWidgetFactories){return this._widgetFactories[this._defaultRenderedWidgetFactories[n]]}}return this.defaultWidgetFactory(e)}defaultWidgetFactory(e){if(!e){return this._widgetFactories[this._defaultWidgetFactory]}return this.preferredWidgetFactories(e)[0]}setDefaultWidgetFactory(e,t){e=e.toLowerCase();if(!this.getFileType(e)){throw Error(`Cannot find file type ${e}`)}if(!t){if(this._defaultWidgetFactoryOverrides[e]){delete this._defaultWidgetFactoryOverrides[e]}return}if(!this.getWidgetFactory(t)){throw Error(`Cannot find widget factory ${t}`)}t=t.toLowerCase();const n=this._widgetFactoriesForFileType[e];if(t!==this._defaultWidgetFactory&&!(n&&n.includes(t))){throw Error(`Factory ${t} cannot view file type ${e}`)}this._defaultWidgetFactoryOverrides[e]=t}*widgetFactories(){for(const e in this._widgetFactories){yield this._widgetFactories[e]}}*modelFactories(){for(const e in this._modelFactories){yield this._modelFactories[e]}}*widgetExtensions(e){e=e.toLowerCase();if(e in this._extenders){for(const t of this._extenders[e]){yield t}}}*fileTypes(){for(const e of this._fileTypes){yield e}}getWidgetFactory(e){return this._widgetFactories[e.toLowerCase()]}getModelFactory(e){return this._modelFactories[e.toLowerCase()]}getFileType(e){e=e.toLowerCase();return(0,E.find)(this._fileTypes,(t=>t.name.toLowerCase()===e))}getKernelPreference(e,t,n){t=t.toLowerCase();const i=this._widgetFactories[t];if(!i){return void 0}const o=this.getModelFactory(i.modelName||"text");if(!o){return void 0}const r=o.preferredLanguage(s.PathExt.basename(e));const a=n&&n.name;const l=n&&n.id;return{id:l,name:a,language:r,shouldStart:i.preferKernel,canStart:i.canStartKernel,shutdownOnDispose:i.shutdownOnClose,autoStartDefault:i.autoStartDefault}}getFileTypeForModel(e){let t=null;if(e.name||e.path){const n=e.name||s.PathExt.basename(e.path);const i=this.getFileTypesForPath(n);if(i.length>0){t=i[0]}}switch(e.type){case"directory":if(t!==null&&t.contentType==="directory"){return t}return(0,E.find)(this._fileTypes,(e=>e.contentType==="directory"))||T.getDefaultDirectoryFileType(this.translator);case"notebook":if(t!==null&&t.contentType==="notebook"){return t}return(0,E.find)(this._fileTypes,(e=>e.contentType==="notebook"))||T.getDefaultNotebookFileType(this.translator);default:if(t!==null){return t}return this.getFileType("text")||T.getDefaultTextFileType(this.translator)}}getFileTypesForPath(e){const t=[];const n=s.PathExt.basename(e);let i=(0,E.find)(this._fileTypes,(e=>!!(e.pattern&&n.match(e.pattern)!==null)));if(i){t.push(i)}let o=M.extname(n);while(o.length>1){const e=this._fileTypes.filter((e=>e.extensions.map((e=>e.toLowerCase())).includes(o)));t.push(...e);o="."+o.split(".").slice(2).join(".")}return t}}(function(e){function t(e){e=e||r.nullTranslator;const t=e===null||e===void 0?void 0:e.load("jupyterlab");return{name:"default",displayName:t.__("default"),extensions:[],mimeTypes:[],contentType:"file",fileFormat:"text"}}e.getFileTypeDefaults=t;function n(e){e=e||r.nullTranslator;const n=e===null||e===void 0?void 0:e.load("jupyterlab");const i=t(e);return{...i,name:"text",displayName:n.__("Text"),mimeTypes:["text/plain"],extensions:[".txt"],icon:I.fileIcon}}e.getDefaultTextFileType=n;function i(e){e=e||r.nullTranslator;const n=e===null||e===void 0?void 0:e.load("jupyterlab");return{...t(e),name:"notebook",displayName:n.__("Notebook"),mimeTypes:["application/x-ipynb+json"],extensions:[".ipynb"],contentType:"notebook",fileFormat:"json",icon:I.notebookIcon}}e.getDefaultNotebookFileType=i;function s(e){e=e||r.nullTranslator;const n=e===null||e===void 0?void 0:e.load("jupyterlab");return{...t(e),name:"directory",displayName:n.__("Directory"),extensions:[],mimeTypes:["text/directory"],contentType:"directory",icon:I.folderIcon}}e.getDefaultDirectoryFileType=s;function o(e){e=e||r.nullTranslator;const t=e===null||e===void 0?void 0:e.load("jupyterlab");return[n(e),i(e),s(e),{name:"markdown",displayName:t.__("Markdown File"),extensions:[".md"],mimeTypes:["text/markdown"],icon:I.markdownIcon},{name:"PDF",displayName:t.__("PDF File"),extensions:[".pdf"],mimeTypes:["application/pdf"],icon:I.pdfIcon},{name:"python",displayName:t.__("Python File"),extensions:[".py"],mimeTypes:["text/x-python"],icon:I.pythonIcon},{name:"json",displayName:t.__("JSON File"),extensions:[".json"],mimeTypes:["application/json"],icon:I.jsonIcon},{name:"jsonl",displayName:t.__("JSONLines File"),extensions:[".jsonl",".ndjson"],mimeTypes:["text/jsonl","application/jsonl","application/json-lines"],icon:I.jsonIcon},{name:"julia",displayName:t.__("Julia File"),extensions:[".jl"],mimeTypes:["text/x-julia"],icon:I.juliaIcon},{name:"csv",displayName:t.__("CSV File"),extensions:[".csv"],mimeTypes:["text/csv"],icon:I.spreadsheetIcon},{name:"tsv",displayName:t.__("TSV File"),extensions:[".tsv"],mimeTypes:["text/csv"],icon:I.spreadsheetIcon},{name:"r",displayName:t.__("R File"),mimeTypes:["text/x-rsrc"],extensions:[".R"],icon:I.rKernelIcon},{name:"yaml",displayName:t.__("YAML File"),mimeTypes:["text/x-yaml","text/yaml"],extensions:[".yaml",".yml"],icon:I.yamlIcon},{name:"svg",displayName:t.__("Image"),mimeTypes:["image/svg+xml"],extensions:[".svg"],icon:I.imageIcon,fileFormat:"base64"},{name:"tiff",displayName:t.__("Image"),mimeTypes:["image/tiff"],extensions:[".tif",".tiff"],icon:I.imageIcon,fileFormat:"base64"},{name:"jpeg",displayName:t.__("Image"),mimeTypes:["image/jpeg"],extensions:[".jpg",".jpeg"],icon:I.imageIcon,fileFormat:"base64"},{name:"gif",displayName:t.__("Image"),mimeTypes:["image/gif"],extensions:[".gif"],icon:I.imageIcon,fileFormat:"base64"},{name:"png",displayName:t.__("Image"),mimeTypes:["image/png"],extensions:[".png"],icon:I.imageIcon,fileFormat:"base64"},{name:"bmp",displayName:t.__("Image"),mimeTypes:["image/bmp"],extensions:[".bmp"],icon:I.imageIcon,fileFormat:"base64"},{name:"webp",displayName:t.__("Image"),mimeTypes:["image/webp"],extensions:[".webp"],icon:I.imageIcon,fileFormat:"base64"}]}e.getDefaultFileTypes=o})(T||(T={}));var M;(function(e){function t(e){const t=s.PathExt.basename(e).split(".");t.shift();const n="."+t.join(".");return n.toLowerCase()}e.extname=t;function n(){}e.noOp=n})(M||(M={}))},79010:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(79993);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},68201:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>w});var i=n(94307);var s=n.n(i);var o=n(14366);var r=n.n(o);var a=n(22441);var l=n.n(a);var d=n(84739);var c=n.n(d);var h=n(30619);var u=n.n(h);var p=n(1143);var m=n.n(p);const g="jp-mod-searchable";const f="jp-mod-search-active";var v;(function(e){e.search="documentsearch:start";e.searchAndReplace="documentsearch:startWithReplace";e.findNext="documentsearch:highlightNext";e.findPrevious="documentsearch:highlightPrevious";e.end="documentsearch:end";e.toggleSearchInSelection="documentsearch:toggleSearchInSelection"})(v||(v={}));const _={id:"@jupyterlab/documentsearch-extension:labShellWidgetListener",description:"Active search on valid document",requires:[i.ILabShell,a.ISearchProviderRegistry],autoStart:true,activate:(e,t,n)=>{const i=e=>{if(!e){return}if(n.hasProvider(e)){e.addClass(g)}else{e.removeClass(g)}};n.changed.connect((()=>i(t.activeWidget)));t.activeChanged.connect(((e,t)=>{const n=t.oldValue;if(n){n.removeClass(g)}i(t.newValue)}))}};class b{constructor(e){this._commandRegistry=e;this._cache=this._buildCache();this._commandRegistry.keyBindingChanged.connect(this._rebuildCache,this)}get next(){return this._cache.next}get previous(){return this._cache.previous}get toggleSearchInSelection(){return this._cache.toggleSearchInSelection}_rebuildCache(){this._cache=this._buildCache()}_buildCache(){const e=this._commandRegistry.keyBindings.find((e=>e.command===v.findNext));const t=this._commandRegistry.keyBindings.find((e=>e.command===v.findPrevious));const n=this._commandRegistry.keyBindings.find((e=>e.command===v.toggleSearchInSelection));return{next:e,previous:t,toggleSearchInSelection:n}}dispose(){this._commandRegistry.keyBindingChanged.disconnect(this._rebuildCache,this)}}const y={id:"@jupyterlab/documentsearch-extension:plugin",description:"Provides the document search registry.",provides:a.ISearchProviderRegistry,requires:[h.ITranslator],optional:[o.ICommandPalette,d.ISettingRegistry],autoStart:true,activate:(e,t,n,i)=>{var s;const r=t.load("jupyterlab");let l=500;let d="never";const c=new a.SearchProviderRegistry(t);const h=new Map;if(i){const t=i.load(y.id);const n=e=>{l=e.get("searchDebounceTime").composite;d=e.get("autoSearchInSelection").composite};Promise.all([t,e.restored]).then((([e])=>{n(e);e.changed.connect((e=>{n(e)}))})).catch((e=>{console.error(e.message)}))}const u=()=>{const t=e.shell.currentWidget;if(!t){return false}return c.hasProvider(t)};const m=n=>{if(!n){return}const i=n.id;let s=h.get(i);if(!s){const o=c.getProvider(n);if(!o){return}const r=new a.SearchDocumentModel(o,l);const d=new b(e.commands);const u=new a.SearchDocumentView(r,t,d);h.set(i,u);[v.findNext,v.findPrevious,v.end,v.toggleSearchInSelection].forEach((t=>{e.commands.notifyCommandChanged(t)}));u.closed.connect((()=>{if(!n.isDisposed){n.activate();n.removeClass(f)}}));u.disposed.connect((()=>{if(!n.isDisposed){n.activate();n.removeClass(f)}h.delete(i);[v.findNext,v.findPrevious,v.end,v.toggleSearchInSelection].forEach((t=>{e.commands.notifyCommandChanged(t)}))}));n.disposed.connect((()=>{u.dispose();r.dispose();o.dispose();d.dispose()}));s=u}if(!s.isAttached){p.Widget.attach(s,n.node);n.addClass(f);if(n instanceof o.MainAreaWidget){s.node.style.top=`${n.toolbar.node.getBoundingClientRect().height+n.contentHeader.node.getBoundingClientRect().height}px`}if(s.model.searchExpression){s.model.refresh()}}return s};e.commands.addCommand(v.search,{label:r.__("Find…"),isEnabled:u,execute:async t=>{const n=m(e.shell.currentWidget);if(n){const e=t["searchText"];if(e){n.setSearchText(e)}else{n.setSearchText(n.model.suggestedInitialQuery)}const i=n.model.selectionState;let s=false;switch(d){case"multiple-selected":s=i==="multiple";break;case"any-selected":s=i==="multiple"||i==="single";break;case"never":break}if(s){await n.model.setFilter("selection",true)}n.focusSearchInput()}}});e.commands.addCommand(v.searchAndReplace,{label:r.__("Find and Replace…"),isEnabled:u,execute:t=>{const n=m(e.shell.currentWidget);if(n){const e=t["searchText"];if(e){n.setSearchText(e)}else{n.setSearchText(n.model.suggestedInitialQuery)}const i=t["replaceText"];if(i){n.setReplaceText(i)}n.showReplace();n.focusSearchInput()}}});e.commands.addCommand(v.findNext,{label:r.__("Find Next"),isEnabled:()=>!!e.shell.currentWidget&&h.has(e.shell.currentWidget.id),execute:async()=>{var t;const n=e.shell.currentWidget;if(!n){return}await((t=h.get(n.id))===null||t===void 0?void 0:t.model.highlightNext())}});e.commands.addCommand(v.findPrevious,{label:r.__("Find Previous"),isEnabled:()=>!!e.shell.currentWidget&&h.has(e.shell.currentWidget.id),execute:async()=>{var t;const n=e.shell.currentWidget;if(!n){return}await((t=h.get(n.id))===null||t===void 0?void 0:t.model.highlightPrevious())}});e.commands.addCommand(v.end,{label:r.__("End Search"),isEnabled:()=>!!e.shell.currentWidget&&h.has(e.shell.currentWidget.id),execute:async()=>{var t;const n=e.shell.currentWidget;if(!n){return}(t=h.get(n.id))===null||t===void 0?void 0:t.close()}});e.commands.addCommand(v.toggleSearchInSelection,{label:r.__("Search in Selection"),isEnabled:()=>!!e.shell.currentWidget&&h.has(e.shell.currentWidget.id)&&"selection"in h.get(e.shell.currentWidget.id).model.filtersDefinition,execute:async()=>{var t;const n=e.shell.currentWidget;if(!n){return}const i=(t=h.get(n.id))===null||t===void 0?void 0:t.model;if(!i){return}const s=i.filters["selection"];return i.setFilter("selection",!s)}});(s=e.shell.currentChanged)===null||s===void 0?void 0:s.connect((()=>{Object.values(v).forEach((t=>{e.commands.notifyCommandChanged(t)}))}));if(n){[v.search,v.findNext,v.findPrevious,v.end,v.toggleSearchInSelection].forEach((e=>{n.addItem({command:e,category:r.__("Main Area")})}))}return c}};const w=[y,_]},13067:(e,t,n)=>{"use strict";var i=n(10395);var s=n(97913);var o=n(3579);var r=n(19562)},42866:(e,t,n)=>{"use strict";n.r(t);n.d(t,{FOUND_CLASSES:()=>a,GenericSearchProvider:()=>c,HTMLSearchEngine:()=>d,ISearchProviderRegistry:()=>se,SearchDocumentModel:()=>g,SearchDocumentView:()=>ee,SearchProvider:()=>o,SearchProviderRegistry:()=>ne,TextSearchEngine:()=>u});var i=n(1143);var s=n(2336);class o{constructor(e){this.widget=e;this._stateChanged=new s.Signal(this);this._filtersChanged=new s.Signal(this);this._disposed=false}get stateChanged(){return this._stateChanged}get filtersChanged(){return this._filtersChanged}get currentMatchIndex(){return null}get isDisposed(){return this._disposed}get matchesCount(){return null}dispose(){if(this._disposed){return}this._disposed=true;s.Signal.clearData(this)}getInitialQuery(){return""}getFilters(){return{}}static preserveCase(e,t){if(e.toUpperCase()===e){return t.toUpperCase()}if(e.toLowerCase()===e){return t.toLowerCase()}if(r(e)===e){return r(t)}return t}}function r([e="",...t]){return e.toUpperCase()+""+t.join("").toLowerCase()}const a=["cm-string","cm-overlay","cm-searching"];const l=["CodeMirror-selectedtext"];class d{static search(e,t){if(!(t instanceof Node)){console.warn("Unable to search with HTMLSearchEngine the provided object.",t);return Promise.resolve([])}if(!e.global){e=new RegExp(e.source,e.flags+"g")}const n=[];const i=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,{acceptNode:n=>{let i=n.parentElement;while(i!==t){if(i.nodeName in d.UNSUPPORTED_ELEMENTS){return NodeFilter.FILTER_REJECT}i=i.parentElement}return e.test(n.textContent)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let s=null;while((s=i.nextNode())!==null){e.lastIndex=0;let t=null;while((t=e.exec(s.textContent))!==null){n.push({text:t[0],position:t.index,node:s})}}return Promise.resolve(n)}}d.UNSUPPORTED_ELEMENTS={BASE:true,HEAD:true,LINK:true,META:true,STYLE:true,TITLE:true,BODY:true,AREA:true,AUDIO:true,IMG:true,MAP:true,TRACK:true,VIDEO:true,APPLET:true,EMBED:true,IFRAME:true,NOEMBED:true,OBJECT:true,PARAM:true,PICTURE:true,SOURCE:true,CANVAS:true,NOSCRIPT:true,SCRIPT:true,svg:true,SVG:true};class c extends o{constructor(){super(...arguments);this.isReadOnly=true;this._matches=[];this._mutationObserver=new MutationObserver(this._onWidgetChanged.bind(this));this._markNodes=new Array}static isApplicable(e){return e instanceof i.Widget}static createNew(e,t,n){return new c(e)}get currentMatchIndex(){return this._currentMatchIndex>=0?this._currentMatchIndex:null}get currentMatch(){var e;return(e=this._matches[this._currentMatchIndex])!==null&&e!==void 0?e:null}get matches(){return this._matches?this._matches.map((e=>Object.assign({},e))):this._matches}get matchesCount(){return this._matches.length}clearHighlight(){if(this._currentMatchIndex>=0){const e=this._markNodes[this._currentMatchIndex];e.classList.remove(...l)}this._currentMatchIndex=-1;return Promise.resolve()}dispose(){if(this.isDisposed){return}this.endQuery().catch((e=>{console.error(`Failed to end search query.`,e)}));super.dispose()}async highlightNext(e){var t;return(t=this._highlightNext(false,e!==null&&e!==void 0?e:true))!==null&&t!==void 0?t:undefined}async highlightPrevious(e){var t;return(t=this._highlightNext(true,e!==null&&e!==void 0?e:true))!==null&&t!==void 0?t:undefined}async replaceCurrentMatch(e,t){return Promise.resolve(false)}async replaceAllMatches(e){return Promise.resolve(false)}async startQuery(e,t={}){await this.endQuery();this._query=e;if(e===null){return Promise.resolve()}const n=await d.search(e,this.widget.node);let i=0;while(i{const i=document.createElement("mark");i.classList.add(...a);i.textContent=n.text;const s=e.splitText(n.position);s.textContent=s.textContent.slice(n.text.length);t.insertBefore(i,s);return i}));for(let n=o.length-1;n>=0;n--){this._markNodes.push(o[n])}}this._mutationObserver.observe(this.widget.node,{attributes:false,characterData:true,childList:true,subtree:true});this._matches=n}async endQuery(){this._mutationObserver.disconnect();this._markNodes.forEach((e=>{const t=e.parentNode;t.replaceChild(document.createTextNode(e.textContent),e);t.normalize()}));this._markNodes=[];this._matches=[];this._currentMatchIndex=-1}_highlightNext(e,t){if(this._matches.length===0){return null}if(this._currentMatchIndex===-1){this._currentMatchIndex=e?this.matches.length-1:0}else{const n=this._markNodes[this._currentMatchIndex];n.classList.remove(...l);this._currentMatchIndex=e?this._currentMatchIndex-1:this._currentMatchIndex+1;if(t&&(this._currentMatchIndex<0||this._currentMatchIndex>=this._matches.length)){this._currentMatchIndex=(this._currentMatchIndex+this._matches.length)%this._matches.length}}if(this._currentMatchIndex>=0&&this._currentMatchIndex=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.left>=0&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}const u={search(e,t){if(typeof t!=="string"){try{t=JSON.stringify(t)}catch(s){console.warn("Unable to search with TextSearchEngine non-JSON serializable object.",s,t);return Promise.resolve([])}}if(!e.global){e=new RegExp(e.source,e.flags+"g")}const n=new Array;let i=null;while((i=e.exec(t))!==null){n.push({text:i[0],position:i.index})}return Promise.resolve(n)}};var p=n(26331);var m=n(26568);class g extends p.VDomModel{constructor(e,t){super();this.searchProvider=e;this._caseSensitive=false;this._disposed=new s.Signal(this);this._parsingError="";this._preserveCase=false;this._initialQuery="";this._filters={};this._replaceText="";this._searchActive=false;this._searchExpression="";this._useRegex=false;this._wholeWords=false;this._filters={};if(this.searchProvider.getFilters){const e=this.searchProvider.getFilters();for(const t in e){this._filters[t]=e[t].default}}e.stateChanged.connect(this._onProviderStateChanged,this);this._searchDebouncer=new m.Debouncer((()=>{this._updateSearch().catch((e=>{console.error("Failed to update search on document.",e)}))}),t)}get caseSensitive(){return this._caseSensitive}set caseSensitive(e){if(this._caseSensitive!==e){this._caseSensitive=e;this.stateChanged.emit();this.refresh()}}get currentIndex(){return this.searchProvider.currentMatchIndex}get disposed(){return this._disposed}get filters(){return this._filters}get filtersDefinition(){var e,t,n;return(n=(t=(e=this.searchProvider).getFilters)===null||t===void 0?void 0:t.call(e))!==null&&n!==void 0?n:{}}get filtersDefinitionChanged(){return this.searchProvider.filtersChanged||null}get initialQuery(){return this._initialQuery}set initialQuery(e){this._initialQuery=e}get suggestedInitialQuery(){return this.searchProvider.getInitialQuery()}get selectionState(){return this.searchProvider.getSelectionState?this.searchProvider.getSelectionState():undefined}get isReadOnly(){return this.searchProvider.isReadOnly}get replaceOptionsSupport(){return this.searchProvider.replaceOptionsSupport}get parsingError(){return this._parsingError}get preserveCase(){return this._preserveCase}set preserveCase(e){if(this._preserveCase!==e){this._preserveCase=e;this.stateChanged.emit();this.refresh()}}get replaceText(){return this._replaceText}set replaceText(e){if(this._replaceText!==e){this._replaceText=e;this.stateChanged.emit()}}get searchExpression(){return this._searchExpression}set searchExpression(e){if(this._searchExpression!==e){this._searchExpression=e;this.stateChanged.emit();this.refresh()}}get totalMatches(){return this.searchProvider.matchesCount}get useRegex(){return this._useRegex}set useRegex(e){if(this._useRegex!==e){this._useRegex=e;this.stateChanged.emit();this.refresh()}}get wholeWords(){return this._wholeWords}set wholeWords(e){if(this._wholeWords!==e){this._wholeWords=e;this.stateChanged.emit();this.refresh()}}dispose(){if(this.isDisposed){return}if(this._searchExpression){this.endQuery().catch((e=>{console.error(`Failed to end query '${this._searchExpression}.`,e)}))}this.searchProvider.stateChanged.disconnect(this._onProviderStateChanged,this);this._searchDebouncer.dispose();super.dispose()}async endQuery(){this._searchActive=false;await this.searchProvider.endQuery();this.stateChanged.emit()}async highlightNext(){await this.searchProvider.highlightNext();this.stateChanged.emit()}async highlightPrevious(){await this.searchProvider.highlightPrevious();this.stateChanged.emit()}refresh(){this._searchDebouncer.invoke().catch((e=>{console.error("Failed to invoke search document debouncer.",e)}))}async replaceAllMatches(){await this.searchProvider.replaceAllMatches(this._replaceText,{preserveCase:this.preserveCase,regularExpression:this.useRegex});this.stateChanged.emit()}async replaceCurrentMatch(){await this.searchProvider.replaceCurrentMatch(this._replaceText,true,{preserveCase:this.preserveCase,regularExpression:this.useRegex});this.stateChanged.emit()}async setFilter(e,t){if(this._filters[e]!==t){if(this.searchProvider.validateFilter){this._filters[e]=await this.searchProvider.validateFilter(e,t);if(this._filters[e]===t){this.stateChanged.emit();this.refresh()}}else{this._filters[e]=t;this.stateChanged.emit();this.refresh()}}}async _updateSearch(){if(this._parsingError){this._parsingError="";this.stateChanged.emit()}try{const e=this.searchExpression?f.parseQuery(this.searchExpression,this.caseSensitive,this.useRegex,this.wholeWords):null;if(e){this._searchActive=true;await this.searchProvider.startQuery(e,this._filters)}else{this._searchActive=false;await this.searchProvider.endQuery()}this.stateChanged.emit()}catch(e){this._parsingError=e.toString();this.stateChanged.emit();console.error(`Failed to parse expression ${this.searchExpression}`,e)}}_onProviderStateChanged(){if(this._searchActive){this.refresh()}}}var f;(function(e){function t(e,t,n,i){const s=t?"gm":"gim";let o=n?e:e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");if(i){o="\\b"+o+"\\b"}const r=new RegExp(o,s);if(r.test("")){return null}return r}e.parseQuery=t})(f||(f={}));var v=n(30619);var _=n(93247);var b=n(14366);var y=n(44914);const w="jp-DocumentSearch-overlay";const C="jp-DocumentSearch-overlay-row";const x="jp-DocumentSearch-input";const S="jp-DocumentSearch-input-label";const k="jp-DocumentSearch-input-wrapper";const j="jp-DocumentSearch-input-button-off";const I="jp-DocumentSearch-input-button-on";const E="jp-DocumentSearch-index-counter";const T="jp-DocumentSearch-up-down-wrapper";const M="jp-DocumentSearch-up-down-button";const D="jp-DocumentSearch-filter-button";const A="jp-DocumentSearch-filter-button-enabled";const P="jp-DocumentSearch-regex-error";const L="jp-DocumentSearch-search-options";const R="jp-DocumentSearch-search-filter-disabled";const N="jp-DocumentSearch-search-filter";const O="jp-DocumentSearch-replace-button";const B="jp-DocumentSearch-replace-button-wrapper";const F="jp-DocumentSearch-replace-wrapper-class";const z="jp-DocumentSearch-replace-toggle";const H="jp-DocumentSearch-toggle-wrapper";const W="jp-DocumentSearch-toggle-placeholder";const V="jp-DocumentSearch-button-content";const U="jp-DocumentSearch-button-wrapper";const q="jp-DocumentSearch-spacer";function $(e){const[t,n]=(0,y.useState)(1);const i=(0,y.useCallback)((t=>{var i;const s=t?t.target:(i=e.inputRef)===null||i===void 0?void 0:i.current;if(s){const e=s.value.split(/\n/);let t=e.reduce(((e,t)=>e.length>t.length?e:t),"");if(s.parentNode&&s.parentNode instanceof HTMLElement){s.parentNode.dataset.value=t}n(e.length)}}),[]);(0,y.useEffect)((()=>{var t,n;(n=(t=e.inputRef)===null||t===void 0?void 0:t.current)===null||n===void 0?void 0:n.select();i()}),[e.initialValue]);return y.createElement("label",{className:S},y.createElement("textarea",{onChange:t=>{e.onChange(t);i(t)},onKeyDown:t=>{e.onKeyDown(t);i(t)},rows:t,placeholder:e.placeholder,className:x,key:e.autoUpdate?e.initialValue:null,tabIndex:0,ref:e.inputRef,title:e.title,defaultValue:e.initialValue||e.lastSearchText,autoFocus:e.autoFocus}))}function K(e){var t;const n=((t=e.translator)!==null&&t!==void 0?t:v.nullTranslator).load("jupyterlab");const i=(0,p.classes)(e.caseSensitive?I:j,V);const s=(0,p.classes)(e.useRegex?I:j,V);const o=(0,p.classes)(e.wholeWords?I:j,V);const r=k;return y.createElement("div",{className:r},y.createElement($,{placeholder:n.__("Find"),onChange:t=>e.onChange(t),onKeyDown:t=>e.onKeydown(t),inputRef:e.inputRef,initialValue:e.initialSearchText,lastSearchText:e.lastSearchText,title:n.__("Find"),autoFocus:true,autoUpdate:true}),y.createElement("button",{className:U,onClick:()=>{e.onCaseSensitiveToggled()},tabIndex:0,title:n.__("Match Case")},y.createElement(p.caseSensitiveIcon.react,{className:i,tag:"span"})),y.createElement("button",{className:U,onClick:()=>e.onWordToggled(),tabIndex:0,title:n.__("Match Whole Word")},y.createElement(p.wordIcon.react,{className:o,tag:"span"})),y.createElement("button",{className:U,onClick:()=>e.onRegexToggled(),tabIndex:0,title:n.__("Use Regular Expression")},y.createElement(p.regexIcon.react,{className:s,tag:"span"})))}function J(e){var t,n,i;const s=((t=e.translator)!==null&&t!==void 0?t:v.nullTranslator).load("jupyterlab");const o=(0,p.classes)(e.preserveCase?I:j,V);return y.createElement("div",{className:F},y.createElement("div",{className:k},y.createElement($,{placeholder:s.__("Replace"),initialValue:(n=e.replaceText)!==null&&n!==void 0?n:"",onKeyDown:t=>e.onReplaceKeydown(t),onChange:t=>e.onChange(t),title:s.__("Replace"),autoFocus:false,autoUpdate:false}),((i=e.replaceOptionsSupport)===null||i===void 0?void 0:i.preserveCase)?y.createElement("button",{className:U,onClick:()=>e.onPreserveCaseToggled(),tabIndex:0,title:s.__("Preserve Case")},y.createElement(p.caseSensitiveIcon.react,{className:o,tag:"span"})):null),y.createElement("button",{className:B,onClick:()=>e.onReplaceCurrent(),tabIndex:0},y.createElement("span",{className:`${O} ${V}`,tabIndex:0},s.__("Replace"))),y.createElement("button",{className:B,tabIndex:0,onClick:()=>e.onReplaceAll()},y.createElement("span",{className:`${O} ${V}`,tabIndex:-1},s.__("Replace All"))))}function G(e){var t,n;const i=(t=e.keyBindings)===null||t===void 0?void 0:t.next;const s=(n=e.keyBindings)===null||n===void 0?void 0:n.previous;const o=i?_.CommandRegistry.formatKeystroke(i.keys):"";const r=s?_.CommandRegistry.formatKeystroke(s.keys):"";const a=r?` (${r})`:"";const l=o?` (${o})`:"";const d=y.createElement("button",{className:U,onClick:()=>e.isEnabled?e.onHighlightPrevious():false,tabIndex:0,title:`${e.trans.__("Previous Match")}${a}`,disabled:!e.isEnabled},y.createElement(p.caretUpEmptyThinIcon.react,{className:(0,p.classes)(M,V),tag:"span"}));const c=y.createElement("button",{className:U,onClick:()=>e.isEnabled?e.onHighlightNext():false,tabIndex:0,title:`${e.trans.__("Next Match")}${l}`,disabled:!e.isEnabled},y.createElement(p.caretDownEmptyThinIcon.react,{className:(0,p.classes)(M,V),tag:"span"}));return y.createElement("div",{className:T},d,c)}function Y(e){return y.createElement("div",{className:E},e.totalMatches===0?"-/-":`${e.currentIndex===null?"-":e.currentIndex+1}/${e.totalMatches}`)}function X(e){let t=`${D} ${V}`;if(e.visible){t=`${t} ${A}`}const n=e.anyEnabled?p.filterDotIcon:p.filterIcon;return y.createElement("button",{className:U,onClick:()=>e.toggleVisible(),tabIndex:0,title:e.visible?e.trans.__("Hide Search Filters"):e.trans.__("Show Search Filters")},y.createElement(n.react,{className:t,tag:"span",height:"20px",width:"20px"}))}function Q(e){return y.createElement("label",{className:e.isEnabled?N:`${N} ${R}`,title:e.description},y.createElement("input",{type:"checkbox",className:"jp-mod-styled",disabled:!e.isEnabled,checked:e.value,onChange:e.onToggle}),e.title)}class Z extends y.Component{constructor(e){super(e);this.translator=e.translator||v.nullTranslator}_onSearchChange(e){const t=e.target.value;this.props.onSearchChanged(t)}_onSearchKeydown(e){if(e.keyCode===13){e.stopPropagation();e.preventDefault();if(e.ctrlKey){const t=e.target;this._insertNewLine(t);this.props.onSearchChanged(t.value)}else{e.shiftKey?this.props.onHighlightPrevious():this.props.onHighlightNext()}}}_onReplaceKeydown(e){if(e.keyCode===13){e.stopPropagation();e.preventDefault();if(e.ctrlKey){this._insertNewLine(e.target)}else{this.props.onReplaceCurrent()}}}_insertNewLine(e){const[t,n]=[e.selectionStart,e.selectionEnd];e.setRangeText("\n",t,n,"end")}_onClose(){this.props.onClose()}_onReplaceToggled(){if(!this.props.replaceEntryVisible){for(const e in this.props.filtersDefinition){const t=this.props.filtersDefinition[e];if(!t.supportReplace){this.props.onFilterChanged(e,false).catch((e=>{console.error(`Fail to update filter value for ${t.title}:\n${e}`)}))}}}this.props.onReplaceEntryShown(!this.props.replaceEntryVisible)}_toggleFiltersVisibility(){this.props.onFiltersVisibilityChanged(!this.props.filtersVisible)}render(){var e,t,n;const i=this.translator.load("jupyterlab");const s=!this.props.isReadOnly&&this.props.replaceEntryVisible;const o=this.props.filtersDefinition;const r=Object.keys(o).length>0;const a=r?y.createElement(X,{visible:this.props.filtersVisible,anyEnabled:Object.keys(o).some((e=>{var t;const n=o[e];return(t=this.props.filters[e])!==null&&t!==void 0?t:n.default})),toggleVisible:()=>this._toggleFiltersVisibility(),trans:i}):null;const l=(e=this.props.keyBindings)===null||e===void 0?void 0:e.toggleSearchInSelection;const d=l?_.CommandRegistry.formatKeystroke(l.keys):"";const c=d?` (${d})`:"";const h=r?y.createElement("div",{className:L},Object.keys(o).map((e=>{var t,n;const i=o[e];const r=!s||i.supportReplace;const a=r?i.description:(t=i.disabledDescription)!==null&&t!==void 0?t:i.description;return y.createElement(Q,{key:e,title:i.title,description:a+(e=="selection"?c:""),isEnabled:r,onToggle:async()=>{await this.props.onFilterChanged(e,!this.props.filters[e])},value:(n=this.props.filters[e])!==null&&n!==void 0?n:i.default})}))):null;const u=this.props.replaceEntryVisible?p.caretDownIcon:p.caretRightIcon;return y.createElement(y.Fragment,null,y.createElement("div",{className:C},this.props.isReadOnly?y.createElement("div",{className:W}):y.createElement("button",{className:H,onClick:()=>this._onReplaceToggled(),tabIndex:0,title:s?i.__("Hide Replace"):i.__("Show Replace")},y.createElement(u.react,{className:`${z} ${V}`,tag:"span",elementPosition:"center",height:"20px",width:"20px"})),y.createElement(K,{inputRef:this.props.searchInputRef,useRegex:this.props.useRegex,caseSensitive:this.props.caseSensitive,wholeWords:this.props.wholeWords,onCaseSensitiveToggled:this.props.onCaseSensitiveToggled,onRegexToggled:this.props.onRegexToggled,onWordToggled:this.props.onWordToggled,onKeydown:e=>this._onSearchKeydown(e),onChange:e=>this._onSearchChange(e),initialSearchText:this.props.initialSearchText,lastSearchText:this.props.lastSearchText,translator:this.translator}),a,y.createElement(Y,{currentIndex:this.props.currentIndex,totalMatches:(t=this.props.totalMatches)!==null&&t!==void 0?t:0}),y.createElement(G,{onHighlightPrevious:()=>{this.props.onHighlightPrevious()},onHighlightNext:()=>{this.props.onHighlightNext()},trans:i,keyBindings:this.props.keyBindings,isEnabled:!!((n=this.props.searchInputRef.current)===null||n===void 0?void 0:n.value)}),y.createElement("button",{className:U,onClick:()=>this._onClose(),tabIndex:0,title:i.__("Close Search Box")},y.createElement(p.closeIcon.react,{className:"jp-icon-hover",elementPosition:"center",height:"16px",width:"16px"}))),y.createElement("div",{className:C},s?y.createElement(y.Fragment,null,y.createElement(J,{onPreserveCaseToggled:this.props.onPreserveCaseToggled,onReplaceKeydown:e=>this._onReplaceKeydown(e),onChange:e=>this.props.onReplaceChanged(e.target.value),onReplaceCurrent:()=>this.props.onReplaceCurrent(),onReplaceAll:()=>this.props.onReplaceAll(),replaceOptionsSupport:this.props.replaceOptionsSupport,replaceText:this.props.replaceText,preserveCase:this.props.preserveCase,translator:this.translator}),y.createElement("div",{className:q})):null),this.props.filtersVisible?h:null,!!this.props.errorMessage&&y.createElement("div",{className:P},this.props.errorMessage))}}class ee extends p.VDomRenderer{constructor(e,t,n){super(e);this.translator=t;this._showReplace=false;this._showFilters=false;this._closed=new s.Signal(this);this.addClass(w);this._searchInput=y.createRef();this._keyBindings=n}get closed(){return this._closed}focusSearchInput(){var e;(e=this._searchInput.current)===null||e===void 0?void 0:e.select()}setSearchText(e){this.model.initialQuery=e;if(e){this.model.searchExpression=e}}setReplaceText(e){this.model.replaceText=e}showReplace(){this.setReplaceInputVisibility(true)}onCloseRequest(e){super.onCloseRequest(e);this._closed.emit();void this.model.endQuery()}setReplaceInputVisibility(e){if(this._showReplace!==e){this._showReplace=e;this.update()}}setFiltersVisibility(e){if(this._showFilters!==e){this._showFilters=e;this.update()}}render(){return this.model.filtersDefinitionChanged?y.createElement(b.UseSignal,{signal:this.model.filtersDefinitionChanged},(()=>this._renderOverlay())):this._renderOverlay()}_renderOverlay(){return y.createElement(Z,{caseSensitive:this.model.caseSensitive,currentIndex:this.model.currentIndex,isReadOnly:this.model.isReadOnly,errorMessage:this.model.parsingError,filters:this.model.filters,filtersDefinition:this.model.filtersDefinition,preserveCase:this.model.preserveCase,replaceEntryVisible:this._showReplace,filtersVisible:this._showFilters,replaceOptionsSupport:this.model.replaceOptionsSupport,replaceText:this.model.replaceText,initialSearchText:this.model.initialQuery,lastSearchText:this.model.searchExpression,searchInputRef:this._searchInput,totalMatches:this.model.totalMatches,translator:this.translator,useRegex:this.model.useRegex,wholeWords:this.model.wholeWords,onCaseSensitiveToggled:()=>{this.model.caseSensitive=!this.model.caseSensitive},onRegexToggled:()=>{this.model.useRegex=!this.model.useRegex},onWordToggled:()=>{this.model.wholeWords=!this.model.wholeWords},onFilterChanged:async(e,t)=>{await this.model.setFilter(e,t)},onFiltersVisibilityChanged:e=>{this.setFiltersVisibility(e)},onHighlightNext:()=>{void this.model.highlightNext()},onHighlightPrevious:()=>{void this.model.highlightPrevious()},onPreserveCaseToggled:()=>{this.model.preserveCase=!this.model.preserveCase},onSearchChanged:e=>{this.model.searchExpression=e},onClose:()=>{this.close()},onReplaceEntryShown:e=>{this.setReplaceInputVisibility(e)},onReplaceChanged:e=>{this.model.replaceText=e},onReplaceCurrent:()=>{void this.model.replaceCurrentMatch()},onReplaceAll:()=>{void this.model.replaceAllMatches()},keyBindings:this._keyBindings})}}var te=n(90044);class ne{constructor(e=v.nullTranslator){this.translator=e;this._changed=new s.Signal(this);this._providerMap=new Map}add(e,t){this._providerMap.set(e,t);this._changed.emit();return new te.DisposableDelegate((()=>{this._providerMap.delete(e);this._changed.emit()}))}getProvider(e){for(const t of this._providerMap.values()){if(t.isApplicable(e)){return t.createNew(e,this.translator)}}return undefined}hasProvider(e){for(const t of this._providerMap.values()){if(t.isApplicable(e)){return true}}return false}get changed(){return this._changed}}var ie=n(5592);const se=new ie.Token("@jupyterlab/documentsearch:ISearchProviderRegistry",`A service for a registry of search\n providers for the application. Plugins can register their UI elements with this registry\n to provide find/replace support.`)},19562:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(20939);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},53316:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>_});var i=n(94307);var s=n.n(i);var o=n(14366);var r=n.n(o);var a=n(90043);var l=n.n(a);var d=n(84739);var c=n.n(d);var h=n(30619);var u=n.n(h);var p=n(26331);var m=n.n(p);const g="@jupyterlab/extensionmanager-extension:plugin";var f;(function(e){e.showPanel="extensionmanager:show-panel";e.toggle="extensionmanager:toggle"})(f||(f={}));const v={id:g,description:"Adds the extension manager plugin.",autoStart:true,requires:[d.ISettingRegistry],optional:[h.ITranslator,i.ILayoutRestorer,o.ICommandPalette],activate:async(e,t,n,i,s)=>{const{commands:o,shell:r,serviceManager:l}=e;n=n!==null&&n!==void 0?n:h.nullTranslator;const d=n.load("jupyterlab");const c=new a.ListModel(l,n);const u=()=>{const e=new a.ExtensionsPanel({model:c,translator:n});e.id="extensionmanager.main-view";e.title.icon=p.extensionIcon;e.title.caption=d.__("Extension Manager");e.node.setAttribute("role","region");e.node.setAttribute("aria-label",d.__("Extension Manager section"));if(i){i.add(e,e.id)}r.add(e,"left",{rank:1e3});return e};let m=u();Promise.all([e.restored,t.load(g)]).then((([,t])=>{c.isDisclaimed=t.get("disclaimed").composite;c.isEnabled=t.get("enabled").composite;c.stateChanged.connect((()=>{if(c.isDisclaimed!==t.get("disclaimed").composite){t.set("disclaimed",c.isDisclaimed).catch((e=>{console.error(`Failed to set setting 'disclaimed'.\n${e}`)}))}if(c.isEnabled!==t.get("enabled").composite){t.set("enabled",c.isEnabled).catch((e=>{console.error(`Failed to set setting 'enabled'.\n${e}`)}))}}));if(c.isEnabled){m=m!==null&&m!==void 0?m:u()}else{m===null||m===void 0?void 0:m.dispose();m=null}t.changed.connect((async()=>{c.isDisclaimed=t.get("disclaimed").composite;c.isEnabled=t.get("enabled").composite;e.commands.notifyCommandChanged(f.toggle);if(c.isEnabled){if(m===null||!m.isAttached){const e=await b.showWarning(d);if(!e){void t.set("enabled",false);return}}m=m!==null&&m!==void 0?m:u()}else{m===null||m===void 0?void 0:m.dispose();m=null}}))})).catch((e=>{console.error(`Something went wrong when reading the settings.\n${e}`)}));o.addCommand(f.showPanel,{label:d.__("Extension Manager"),execute:()=>{if(m){r.activateById(m.id)}},isVisible:()=>c.isEnabled});o.addCommand(f.toggle,{label:d.__("Enable Extension Manager"),execute:()=>{if(t){void t.set(v.id,"enabled",!c.isEnabled)}},isToggled:()=>c.isEnabled});if(s){s.addItem({command:f.toggle,category:d.__("Extension Manager")})}}};const _=v;var b;(function(e){async function t(e){const t=await(0,o.showDialog)({title:e.__("Enable Extension Manager?"),body:e.__(`Thanks for trying out JupyterLab's extension manager.\nThe JupyterLab development team is excited to have a robust\nthird-party extension community.\nHowever, we cannot vouch for every extension,\nand some may introduce security risks.\nDo you want to continue?`),buttons:[o.Dialog.cancelButton({label:e.__("Disable")}),o.Dialog.warnButton({label:e.__("Enable")})]});return t.button.accept}e.showWarning=t})(b||(b={}))},67374:(e,t,n)=>{"use strict";var i=n(40662);var s=n(97913);var o=n(3579);var r=n(10395);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(40502);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},84468:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ExtensionsPanel:()=>I,ListModel:()=>p});var i=n(14366);var s=n(30397);var o=n(28548);var r=n(30619);var a=n(26331);var l=n(26568);var d=n(99589);var c=n(44914);function h(e,t,n){n=n||r.nullTranslator;const s=n.load("jupyterlab");const o=[];o.push(c.createElement("p",null,s.__(`An error occurred installing "${e}".`)));if(t){o.push(c.createElement("p",null,c.createElement("span",{className:"jp-extensionmanager-dialog-subheader"},s.__("Error message:"))),c.createElement("pre",null,t.trim()))}const a=c.createElement("div",{className:"jp-extensionmanager-dialog"},o);void(0,i.showDialog)({title:s.__("Extension Installation Error"),body:a,buttons:[i.Dialog.warnButton({label:s.__("Ok")})]})}const u="lab/api/extensions";class p extends a.VDomModel{constructor(e,t){super();this.actionError=null;this.installedError=null;this.searchError=null;this.promptReload=false;this._isDisclaimed=false;this._isEnabled=false;this._isLoadingInstalledExtensions=false;this._isSearching=false;this._query="";this._page=1;this._pagination=30;this._lastPage=1;this._pendingActions=[];const n=JSON.parse(s.PageConfig.getOption("extensionManager")||"{}");this.name=n.name;this.canInstall=n.can_install;this.installPath=n.install_path;this.translator=t||r.nullTranslator;this._installed=[];this._lastSearchResult=[];this.serviceManager=e;this._debouncedSearch=new l.Debouncer(this.search.bind(this),1e3)}get installed(){return this._installed}get isDisclaimed(){return this._isDisclaimed}set isDisclaimed(e){if(e!==this._isDisclaimed){this._isDisclaimed=e;this.stateChanged.emit();void this._debouncedSearch.invoke()}}get isEnabled(){return this._isEnabled}set isEnabled(e){if(e!==this._isEnabled){this._isEnabled=e;this.stateChanged.emit()}}get isLoadingInstalledExtensions(){return this._isLoadingInstalledExtensions}get isSearching(){return this._isSearching}get searchResult(){return this._lastSearchResult}get query(){return this._query}set query(e){if(this._query!==e){this._query=e;this._page=1;void this._debouncedSearch.invoke()}}get page(){return this._page}set page(e){if(this._page!==e){this._page=e;void this._debouncedSearch.invoke()}}get pagination(){return this._pagination}set pagination(e){if(this._pagination!==e){this._pagination=e;void this._debouncedSearch.invoke()}}get lastPage(){return this._lastPage}dispose(){if(this.isDisposed){return}this._debouncedSearch.dispose();super.dispose()}hasPendingActions(){return this._pendingActions.length>0}async install(e,t={}){await this.performAction("install",e,t).then((t=>{if(t.status!=="ok"){h(e.name,t.message,this.translator)}return this.update(true)}))}async uninstall(e){if(!e.installed){throw new Error(`Not installed, cannot uninstall: ${e.name}`)}await this.performAction("uninstall",e);return this.update(true)}async enable(e){if(e.enabled){throw new Error(`Already enabled: ${e.name}`)}await this.performAction("enable",e);await this.refreshInstalled(true)}async disable(e){if(!e.enabled){throw new Error(`Already disabled: ${e.name}`)}await this.performAction("disable",e);await this.refreshInstalled(true)}async refreshInstalled(e=false){this.installedError=null;this._isLoadingInstalledExtensions=true;this.stateChanged.emit();try{const[t]=await m.requestAPI({refresh:e?1:0});this._installed=t.sort(m.installedComparator)}catch(t){this.installedError=t.toString()}finally{this._isLoadingInstalledExtensions=false;this.stateChanged.emit()}}async search(e=false){var t,n;if(!this.isDisclaimed){return Promise.reject("Installation warning is not disclaimed.")}this.searchError=null;this._isSearching=true;this.stateChanged.emit();try{const[i,o]=await m.requestAPI({query:(t=this.query)!==null&&t!==void 0?t:"",page:this.page,per_page:this.pagination,refresh:e?1:0});const r=o["last"];if(r){const e=s.URLExt.queryStringToObject((n=s.URLExt.parse(r).search)!==null&&n!==void 0?n:"")["page"];if(e){this._lastPage=parseInt(e,10)}}const a=this._installed.map((e=>e.name));this._lastSearchResult=i.filter((e=>!a.includes(e.name)))}catch(i){this.searchError=i.toString()}finally{this._isSearching=false;this.stateChanged.emit()}}async update(e=false){if(this.isDisclaimed){await this.refreshInstalled(e);await this.search()}}performAction(e,t,n={}){const s={cmd:e,extension_name:t.name};if(n.useVersion){s["extension_version"]=n.useVersion}const o=m.requestAPI({},{method:"POST",body:JSON.stringify(s)});o.then((([e])=>{const t=this.translator.load("jupyterlab");if(e.needs_restart.includes("server")){void(0,i.showDialog)({title:t.__("Information"),body:t.__("You will need to restart JupyterLab to apply the changes."),buttons:[i.Dialog.okButton({label:t.__("Ok")})]})}else{const n=[];if(e.needs_restart.includes("frontend")){n.push(window.isElectron?t.__("reload JupyterLab"):t.__("refresh the web page"))}if(e.needs_restart.includes("kernel")){n.push(t.__("install the extension in all kernels and restart them"))}void(0,i.showDialog)({title:t.__("Information"),body:t.__("You will need to %1 to apply the changes.",n.join(t.__(" and "))),buttons:[i.Dialog.okButton({label:t.__("Ok")})]})}this.actionError=null}),(e=>{this.actionError=e.toString()}));this.addPendingAction(o);return o.then((([e])=>e))}addPendingAction(e){this._pendingActions.push(e);const t=()=>{const t=this._pendingActions.indexOf(e);this._pendingActions.splice(t,1);this.stateChanged.emit(undefined)};e.then(t,t);this.stateChanged.emit(undefined)}}(function(e){function t(e){if(!e.installed||!e.latest_version){return false}return d.lt(e.installed_version,e.latest_version)}e.entryHasUpdate=t})(p||(p={}));var m;(function(e){function t(e,t){return e.name.localeCompare(t.name)}e.installedComparator=t;const n=/<([^>]+)>; rel="([^"]+)",?/g;async function i(e={},t={}){var i;const r=o.ServerConnection.makeSettings();const a=s.URLExt.join(r.baseUrl,u);let l;try{l=await o.ServerConnection.makeRequest(a+s.URLExt.objectToQueryString(e),t,r)}catch(m){throw new o.ServerConnection.NetworkError(m)}let d=await l.text();if(d.length>0){try{d=JSON.parse(d)}catch(m){console.log("Not a JSON response body.",l)}}if(!l.ok){throw new o.ServerConnection.ResponseError(l,d.message||d)}const c=(i=l.headers.get("Link"))!==null&&i!==void 0?i:"";const h={};let p=null;while((p=n.exec(c))!==null){h[p[2]]=p[1]}return[d,h]}e.requestAPI=i})(m||(m={}));var g=n(49764);var f=n.n(g);const v=32;const _=Math.floor(devicePixelRatio*v);function b(e){if(e.homepage_url&&e.homepage_url.startsWith("https://github.com/")){return e.homepage_url.split("/")[3]}else if(e.repository_url&&e.repository_url.startsWith("https://github.com/")){return e.repository_url.split("/")[3]}return null}function y(e){const{canFetch:t,entry:n,supportInstallation:i,trans:s}=e;const o=[];if(n.status&&["ok","warning","error"].indexOf(n.status)!==-1){o.push(`jp-extensionmanager-entry-${n.status}`)}const r=t?b(n):null;if(!n.allowed){o.push(`jp-extensionmanager-entry-should-be-uninstalled`)}return c.createElement("li",{className:`jp-extensionmanager-entry ${o.join(" ")}`,style:{display:"flex"}},c.createElement("div",{style:{marginRight:"8px"}},r?c.createElement("img",{src:`https://github.com/${r}.png?size=${_}`,style:{width:"32px",height:"32px"}}):c.createElement("div",{style:{width:`${v}px`,height:`${v}px`}})),c.createElement("div",{className:"jp-extensionmanager-entry-description"},c.createElement("div",{className:"jp-extensionmanager-entry-title"},c.createElement("div",{className:"jp-extensionmanager-entry-name"},n.homepage_url?c.createElement("a",{href:n.homepage_url,target:"_blank",rel:"noopener noreferrer",title:s.__("%1 extension home page",n.name)},n.name):c.createElement("div",null,n.name)),c.createElement("div",{className:"jp-extensionmanager-entry-version"},c.createElement("div",{title:s.__("Version: %1",n.installed_version)},n.installed_version)),n.installed&&!n.allowed&&c.createElement(a.ToolbarButtonComponent,{icon:a.infoIcon,iconLabel:s.__("%1 extension is not allowed anymore. Please uninstall it immediately or contact your administrator.",n.name),onClick:()=>window.open("https://jupyterlab.readthedocs.io/en/stable/user/extensions.html")}),n.approved&&c.createElement(a.jupyterIcon.react,{className:"jp-extensionmanager-is-approved",top:"1px",height:"auto",width:"1em",title:s.__("This extension is approved by your security team.")})),c.createElement("div",{className:"jp-extensionmanager-entry-content"},c.createElement("div",{className:"jp-extensionmanager-entry-description"},n.description),e.performAction&&c.createElement("div",{className:"jp-extensionmanager-entry-buttons"},n.installed?c.createElement(c.Fragment,null,i&&c.createElement(c.Fragment,null,p.entryHasUpdate(n)&&c.createElement(a.Button,{onClick:()=>e.performAction("install",n,{useVersion:n.latest_version}),title:s.__('Update "%1" to "%2"',n.name,n.latest_version),minimal:true,small:true},s.__("Update to %1",n.latest_version)),c.createElement(a.Button,{onClick:()=>e.performAction("uninstall",n),title:s.__('Uninstall "%1"',n.name),minimal:true,small:true},s.__("Uninstall"))),n.enabled?c.createElement(a.Button,{onClick:()=>e.performAction("disable",n),title:s.__('Disable "%1"',n.name),minimal:true,small:true},s.__("Disable")):c.createElement(a.Button,{onClick:()=>e.performAction("enable",n),title:s.__('Enable "%1"',n.name),minimal:true,small:true},s.__("Enable"))):i&&c.createElement(a.Button,{onClick:()=>e.performAction("install",n),title:s.__('Install "%1"',n.name),minimal:true,small:true},s.__("Install"))))))}function w(e){var t;const{canFetch:n,performAction:i,supportInstallation:s,trans:o}=e;return c.createElement("div",{className:"jp-extensionmanager-listview-wrapper"},e.entries.length>0?c.createElement("ul",{className:"jp-extensionmanager-listview"},e.entries.map((e=>c.createElement(y,{key:e.name,canFetch:n,entry:e,performAction:i,supportInstallation:s,trans:o})))):c.createElement("div",{key:"message",className:"jp-extensionmanager-listview-message"},o.__("No entries")),e.numPages>1&&c.createElement("div",{className:"jp-extensionmanager-pagination"},c.createElement(f(),{previousLabel:"<",nextLabel:">",breakLabel:"...",breakClassName:"break",initialPage:((t=e.initialPage)!==null&&t!==void 0?t:1)-1,pageCount:e.numPages,marginPagesDisplayed:2,pageRangeDisplayed:3,onPageChange:t=>e.onPage(t.selected+1),activeClassName:"active"})))}function C(e){return c.createElement("div",{className:"jp-extensionmanager-error"},e.children)}class x extends a.ReactWidget{constructor(e,t,n){super();this.model=e;this.trans=t;this.searchInputRef=n;e.stateChanged.connect(this.update,this);this.addClass("jp-extensionmanager-header")}render(){return c.createElement(c.Fragment,null,c.createElement("div",{className:"jp-extensionmanager-title"},c.createElement("span",null,this.trans.__("%1 Manager",this.model.name)),this.model.installPath&&c.createElement(a.infoIcon.react,{className:"jp-extensionmanager-path",tag:"span",title:this.trans.__("Extension installation path: %1",this.model.installPath)})),c.createElement(a.FilterBox,{placeholder:this.trans.__("Search extensions"),disabled:!this.model.isDisclaimed,updateFilter:(e,t)=>{this.model.query=t!==null&&t!==void 0?t:""},useFuzzyFilter:false,inputRef:this.searchInputRef}),c.createElement("div",{className:`jp-extensionmanager-pending ${this.model.hasPendingActions()?"jp-mod-hasPending":""}`}),this.model.actionError&&c.createElement(C,null,c.createElement("p",null,this.trans.__("Error when performing an action.")),c.createElement("p",null,this.trans.__("Reason given:")),c.createElement("pre",null,this.model.actionError)))}}class S extends a.ReactWidget{constructor(e,t){super();this.model=e;this.trans=t;this.addClass("jp-extensionmanager-disclaimer");e.stateChanged.connect(this.update,this)}render(){return c.createElement(c.Fragment,null,c.createElement("p",null,this.trans.__(`The JupyterLab development team is excited to have a robust\nthird-party extension community. However, we do not review\nthird-party extensions, and some extensions may introduce security\nrisks or contain malicious code that runs on your machine. Moreover in order\nto work, this panel needs to fetch data from web services. Do you agree to\nactivate this feature?`),c.createElement("br",null),c.createElement("a",{href:"https://jupyterlab.readthedocs.io/en/stable/privacy_policies.html",target:"_blank",rel:"noreferrer"},this.trans.__("Please read the privacy policy."))),this.model.isDisclaimed?c.createElement(a.Button,{className:"jp-extensionmanager-disclaimer-disable",onClick:e=>{this.model.isDisclaimed=false},title:this.trans.__("This will withdraw your consent.")},this.trans.__("No")):c.createElement("div",null,c.createElement(a.Button,{className:"jp-extensionmanager-disclaimer-enable",onClick:()=>{this.model.isDisclaimed=true}},this.trans.__("Yes")),c.createElement(a.Button,{className:"jp-extensionmanager-disclaimer-disable",onClick:()=>{this.model.isEnabled=false},title:this.trans.__("This will disable the extension manager panel; including the listing of installed extension.")},this.trans.__("No, disable"))))}}class k extends a.ReactWidget{constructor(e,t){super();this.model=e;this.trans=t;e.stateChanged.connect(this.update,this)}render(){return c.createElement(c.Fragment,null,this.model.installedError!==null?c.createElement(C,null,`Error querying installed extensions${this.model.installedError?`: ${this.model.installedError}`:"."}`):this.model.isLoadingInstalledExtensions?c.createElement("div",{className:"jp-extensionmanager-loader"},this.trans.__("Updating extensions list…")):c.createElement(w,{canFetch:this.model.isDisclaimed,entries:this.model.installed.filter((e=>new RegExp(this.model.query.toLowerCase()).test(e.name))),numPages:1,trans:this.trans,onPage:e=>{},performAction:this.model.isDisclaimed?this.onAction.bind(this):null,supportInstallation:this.model.canInstall&&this.model.isDisclaimed}))}onAction(e,t,n={}){switch(e){case"install":return this.model.install(t,n);case"uninstall":return this.model.uninstall(t);case"enable":return this.model.enable(t);case"disable":return this.model.disable(t);default:throw new Error(`Invalid action: ${e}`)}}}class j extends a.ReactWidget{constructor(e,t){super();this.model=e;this.trans=t;e.stateChanged.connect(this.update,this)}onPage(e){this.model.page=e}onAction(e,t,n={}){switch(e){case"install":return this.model.install(t,n);case"uninstall":return this.model.uninstall(t);case"enable":return this.model.enable(t);case"disable":return this.model.disable(t);default:throw new Error(`Invalid action: ${e}`)}}render(){return c.createElement(c.Fragment,null,this.model.searchError!==null?c.createElement(C,null,`Error searching for extensions${this.model.searchError?`: ${this.model.searchError}`:"."}`):this.model.isSearching?c.createElement("div",{className:"jp-extensionmanager-loader"},this.trans.__("Updating extensions list…")):c.createElement(w,{canFetch:this.model.isDisclaimed,entries:this.model.searchResult,initialPage:this.model.page,numPages:this.model.lastPage,onPage:e=>{this.onPage(e)},performAction:this.model.isDisclaimed?this.onAction.bind(this):null,supportInstallation:this.model.canInstall&&this.model.isDisclaimed,trans:this.trans}))}update(){this.title.label=this.model.query?this.trans.__("Search Results"):this.trans.__("Discover");super.update()}}class I extends a.SidePanel{constructor(e){const{model:t,translator:n}=e;super({translator:n});this._wasInitialized=false;this._wasDisclaimed=true;this.model=t;this._searchInputRef=c.createRef();this.addClass("jp-extensionmanager-view");this.trans=n.load("jupyterlab");this.header.addWidget(new x(t,this.trans,this._searchInputRef));const i=new S(t,this.trans);i.title.label=this.trans.__("Warning");this.addWidget(i);const s=new a.PanelWithToolbar;s.addClass("jp-extensionmanager-installedlist");s.toolbar.node.setAttribute("aria-label",this.trans.__("Extensions panel toolbar"));s.title.label=this.trans.__("Installed");s.toolbar.addItem("refresh",new a.ToolbarButton({icon:a.refreshIcon,onClick:()=>{t.refreshInstalled(true).catch((e=>{console.error(`Failed to refresh the installed extensions list:\n${e}`)}))},tooltip:this.trans.__("Refresh extensions list")}));s.addWidget(new k(t,this.trans));this.addWidget(s);if(this.model.canInstall){const e=new j(t,this.trans);e.addClass("jp-extensionmanager-searchresults");this.addWidget(e)}this._wasDisclaimed=this.model.isDisclaimed;if(this.model.isDisclaimed){this.content.collapse(0);this.content.layout.setRelativeSizes([0,1,1])}else{this.content.expand(0);this.content.collapse(1);this.content.collapse(2)}this.model.stateChanged.connect(this._onStateChanged,this)}dispose(){if(this.isDisposed){return}this.model.stateChanged.disconnect(this._onStateChanged,this);super.dispose()}handleEvent(e){switch(e.type){case"focus":case"blur":this._toggleFocused();break;default:break}}onBeforeAttach(e){this.node.addEventListener("focus",this,true);this.node.addEventListener("blur",this,true);super.onBeforeAttach(e)}onBeforeShow(e){if(!this._wasInitialized){this._wasInitialized=true;this.model.refreshInstalled().catch((e=>{console.log(`Failed to refresh installed extension list:\n${e}`)}))}}onAfterDetach(e){super.onAfterDetach(e);this.node.removeEventListener("focus",this,true);this.node.removeEventListener("blur",this,true)}onActivateRequest(e){if(this.isAttached){const e=this._searchInputRef.current;if(e){if(e.focus){e.focus()}if(e.select){e.select()}}}super.onActivateRequest(e)}_onStateChanged(){if(!this._wasDisclaimed&&this.model.isDisclaimed){this.content.collapse(0);this.content.expand(1);this.content.expand(2)}this._wasDisclaimed=this.model.isDisclaimed}_toggleFocused(){const e=document.activeElement===this._searchInputRef.current;this.toggleClass("lm-mod-focused",e)}}},48934:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>U,fileUploadStatus:()=>z});var i=n(94307);var s=n.n(i);var o=n(14366);var r=n.n(o);var a=n(30397);var l=n.n(a);var d=n(43801);var c=n.n(d);var h=n(42875);var u=n.n(h);var p=n(84739);var m=n.n(p);var g=n(94931);var f=n.n(g);var v=n(24735);var _=n.n(v);var b=n(30619);var y=n.n(b);var w=n(26331);var C=n.n(w);var x=n(34236);var S=n.n(x);var k=n(93247);var j=n.n(k);const I="FileBrowser";const E="@jupyterlab/filebrowser-extension:browser";var T;(function(e){e.copy="filebrowser:copy";e.copyDownloadLink="filebrowser:copy-download-link";e.cut="filebrowser:cut";e.del="filebrowser:delete";e.download="filebrowser:download";e.duplicate="filebrowser:duplicate";e.hideBrowser="filebrowser:hide-main";e.goToPath="filebrowser:go-to-path";e.goUp="filebrowser:go-up";e.openPath="filebrowser:open-path";e.openUrl="filebrowser:open-url";e.open="filebrowser:open";e.openBrowserTab="filebrowser:open-browser-tab";e.paste="filebrowser:paste";e.createNewDirectory="filebrowser:create-new-directory";e.createNewFile="filebrowser:create-new-file";e.createNewMarkdownFile="filebrowser:create-new-markdown-file";e.refresh="filebrowser:refresh";e.rename="filebrowser:rename";e.copyShareableLink="filebrowser:share-main";e.copyPath="filebrowser:copy-path";e.showBrowser="filebrowser:activate";e.shutdown="filebrowser:shutdown";e.toggleBrowser="filebrowser:toggle-main";e.toggleFileFilter="filebrowser:toggle-file-filter";e.toggleNavigateToCurrentDirectory="filebrowser:toggle-navigate-to-current-directory";e.toggleLastModified="filebrowser:toggle-last-modified";e.toggleShowFullPath="filebrowser:toggle-show-full-path";e.toggleFileSize="filebrowser:toggle-file-size";e.toggleSortNotebooksFirst="filebrowser:toggle-sort-notebooks-first";e.search="filebrowser:search";e.toggleHiddenFiles="filebrowser:toggle-hidden-files";e.toggleSingleClick="filebrowser:toggle-single-click-navigation";e.toggleFileCheckboxes="filebrowser:toggle-file-checkboxes"})(T||(T={}));const M="filebrowser";const D={id:E,description:"Set up the default file browser commands and state restoration",requires:[h.IDefaultFileBrowser,h.IFileBrowserFactory,b.ITranslator],optional:[i.ILayoutRestorer,p.ISettingRegistry,i.ITreePathUpdater,o.ICommandPalette],provides:h.IFileBrowserCommands,autoStart:true,activate:async(e,t,n,i,s,o,r,l)=>{const d=t;if(s){s.add(d,M)}const c=a.PageConfig.getOption("preferredPath");if(c){await d.model.cd(c)}W(e,d,n,i,o,l);void Promise.all([e.restored,d.model.restored]).then((()=>{if(r){d.model.pathChanged.connect(((e,t)=>{r(t.newValue)}))}}));return{openPath:T.openPath}}};const A={id:"@jupyterlab/filebrowser-extension:settings",description:"Set up the default file browser settings",requires:[h.IDefaultFileBrowser],optional:[p.ISettingRegistry],autoStart:true,activate:(e,t,n)=>{if(n){void n.load(E).then((e=>{const n={navigateToCurrentDirectory:false,singleClickNavigation:false,showLastModifiedColumn:true,showFileSizeColumn:false,showHiddenFiles:false,showFileCheckboxes:false,sortNotebooksFirst:false,showFullPath:false};function i(e){let i;for(i in n){const n=e.get(i).composite;t[i]=n}const s=e.get("filterDirectories").composite;const o=e.get("useFuzzyFilter").composite;t.model.filterDirectories=s;t.model.useFuzzyFilter=o}e.changed.connect(i);i(e)}))}}};const P={id:"@jupyterlab/filebrowser-extension:factory",description:"Provides the file browser factory.",provides:h.IFileBrowserFactory,requires:[d.IDocumentManager,b.ITranslator],optional:[g.IStateDB,i.JupyterLab.IInfo],activate:async(e,t,n,i,s)=>{const r=new o.WidgetTracker({namespace:M});const a=(e,o={})=>{var a;const l=o.state===null?undefined:o.state||i||undefined;const d=new h.FilterFileBrowserModel({translator:n,auto:(a=o.auto)!==null&&a!==void 0?a:true,manager:t,driveName:o.driveName||"",refreshInterval:o.refreshInterval,refreshStandby:()=>{if(s){return!s.isConnected||"when-hidden"}return"when-hidden"},state:l});const c=o.restore;const u=new h.FileBrowser({id:e,model:d,restore:c,translator:n,state:l});void r.add(u);return u};return{createFileBrowser:a,tracker:r}}};const L={id:"@jupyterlab/filebrowser-extension:default-file-browser",description:"Provides the default file browser",provides:h.IDefaultFileBrowser,requires:[h.IFileBrowserFactory],optional:[i.IRouter,i.JupyterFrontEnd.ITreeResolver,i.ILabShell,b.ITranslator],activate:async(e,t,n,i,s,o)=>{const{commands:r}=e;const a=(o!==null&&o!==void 0?o:b.nullTranslator).load("jupyterlab");const l=t.createFileBrowser("filebrowser",{auto:false,restore:false});l.node.setAttribute("role","region");l.node.setAttribute("aria-label",a.__("File Browser Section"));l.title.icon=w.folderIcon;const d=()=>{const t=e.commands.keyBindings.find((e=>e.command===T.toggleBrowser));if(t){const e=t.keys.map(k.CommandRegistry.formatKeystroke).join(", ");l.title.caption=a.__("File Browser (%1)",e)}else{l.title.caption=a.__("File Browser")}};d();e.commands.keyBindingChanged.connect((()=>{d()}));void q.restoreBrowser(l,r,n,i,e,s);return l}};const R={id:"@jupyterlab/filebrowser-extension:download",description:"Adds the download file commands. Disabling this plugin will NOT disable downloading files from the server, if the user enters the appropriate download URLs.",requires:[h.IFileBrowserFactory,b.ITranslator],autoStart:true,activate:(e,t,n)=>{const i=n.load("jupyterlab");const{commands:s}=e;const{tracker:r}=t;s.addCommand(T.download,{execute:()=>{const e=r.currentWidget;if(e){return e.download()}},icon:w.downloadIcon.bindprops({stylesheet:"menuItem"}),label:i.__("Download")});s.addCommand(T.copyDownloadLink,{execute:()=>{const e=r.currentWidget;if(!e){return}return e.model.manager.services.contents.getDownloadUrl(e.selectedItems().next().value.path).then((e=>{o.Clipboard.copyToSystem(e)}))},isVisible:()=>!!r.currentWidget&&Array.from(r.currentWidget.selectedItems()).length===1,icon:w.copyIcon.bindprops({stylesheet:"menuItem"}),label:i.__("Copy Download Link"),mnemonic:0})}};const N={id:"@jupyterlab/filebrowser-extension:widget",description:"Adds the file browser to the application shell.",requires:[d.IDocumentManager,h.IDefaultFileBrowser,h.IFileBrowserFactory,p.ISettingRegistry,o.IToolbarWidgetRegistry,b.ITranslator,i.ILabShell,h.IFileBrowserCommands],optional:[o.ICommandPalette],autoStart:true,activate:(e,t,n,i,s,r,a,l,d,c)=>{const{commands:u}=e;const{tracker:p}=i;const m=a.load("jupyterlab");r.addFactory(I,"uploader",(e=>new h.Uploader({model:e.model,translator:a})));(0,o.setToolbar)(n,(0,o.createToolbarFactory)(r,s,I,N.id,a));l.add(n,"left",{rank:100,type:"File Browser"});u.addCommand(T.toggleBrowser,{label:m.__("File Browser"),execute:()=>{if(n.isHidden){return u.execute(T.showBrowser,void 0)}return u.execute(T.hideBrowser,void 0)}});u.addCommand(T.showBrowser,{label:m.__("Open the file browser for the provided `path`."),execute:e=>{const t=e.path||"";const s=q.getBrowserForPath(t,n,i);if(!s){return}if(n===s){l.activateById(n.id);return}else{const e=["left","right"];for(const t of e){for(const e of l.widgets(t)){if(e.contains(s)){l.activateById(e.id);return}}}}}});u.addCommand(T.hideBrowser,{label:m.__("Hide the file browser."),execute:()=>{const e=p.currentWidget;if(e&&!e.isHidden){l.collapseLeft()}}});u.addCommand(T.toggleNavigateToCurrentDirectory,{label:m.__("Show Active File in File Browser"),isToggled:()=>n.navigateToCurrentDirectory,execute:()=>{const e=!n.navigateToCurrentDirectory;const t="navigateToCurrentDirectory";return s.set(E,t,e).catch((e=>{console.error(`Failed to set navigateToCurrentDirectory setting`)}))}});if(c){c.addItem({command:T.toggleNavigateToCurrentDirectory,category:m.__("File Operations")})}void l.restored.then((e=>{if(e.fresh&&l.mode!=="single-document"){void u.execute(T.showBrowser,void 0)}}));void Promise.all([e.restored,n.model.restored]).then((()=>{l.currentChanged.connect((async(e,s)=>{if(n.navigateToCurrentDirectory&&s.newValue){const{newValue:e}=s;const r=t.contextForWidget(e);if(r){const{path:e}=r;try{await q.navigateToPath(e,n,i,a)}catch(o){console.warn(`${T.goToPath} failed to open: ${e}`,o)}}}}))}))}};const O={id:"@jupyterlab/filebrowser-extension:share-file",description:'Adds the "Copy Shareable Link" command; useful for JupyterHub deployment for example.',requires:[h.IFileBrowserFactory,b.ITranslator],autoStart:true,activate:(e,t,n)=>{const i=n.load("jupyterlab");const{commands:s}=e;const{tracker:r}=t;s.addCommand(T.copyShareableLink,{execute:()=>{const e=r.currentWidget;const t=e===null||e===void 0?void 0:e.selectedItems().next();if(t===undefined||t.done){return}o.Clipboard.copyToSystem(a.PageConfig.getUrl({workspace:a.PageConfig.defaultWorkspace,treePath:t.value.path,toShare:true}))},isVisible:()=>!!r.currentWidget&&Array.from(r.currentWidget.selectedItems()).length===1,icon:w.linkIcon.bindprops({stylesheet:"menuItem"}),label:i.__("Copy Shareable Link")})}};const B={id:"@jupyterlab/filebrowser-extension:open-with",description:"Adds the open-with feature allowing an user to pick the non-preferred document viewer.",requires:[h.IFileBrowserFactory],autoStart:true,activate:(e,t)=>{const{docRegistry:n}=e;const{tracker:i}=t;let s=[];function o(e){var t,o;const r=(o=(t=e.menu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-contextmenu-open-with"})))===null||t===void 0?void 0:t.submenu)!==null&&o!==void 0?o:null;if(!r){return}s.forEach((e=>e.dispose()));s.length=0;r.clearItems();const a=i.currentWidget?q.OpenWith.intersection((0,x.map)(i.currentWidget.selectedItems(),(e=>q.OpenWith.getFactories(n,e)))):new Set;s=[...a].map((e=>r.addItem({args:{factory:e.name,label:e.label||e.name},command:T.open})))}e.contextMenu.opened.connect(o)}};const F={id:"@jupyterlab/filebrowser-extension:open-browser-tab",description:"Adds the open-in-new-browser-tab features.",requires:[h.IFileBrowserFactory,b.ITranslator],autoStart:true,activate:(e,t,n)=>{const{commands:i}=e;const s=n.load("jupyterlab");const{tracker:o}=t;i.addCommand(T.openBrowserTab,{execute:e=>{const t=o.currentWidget;if(!t){return}const n=e["mode"];return Promise.all(Array.from((0,x.map)(t.selectedItems(),(e=>{if(n==="single-document"){const t=a.PageConfig.getUrl({mode:"single-document",treePath:e.path});const n=window.open();if(n){n.opener=null;n.location.href=t}else{throw new Error("Failed to open new browser tab.")}}else{return i.execute("docmanager:open-browser-tab",{path:e.path})}}))))},icon:w.addIcon.bindprops({stylesheet:"menuItem"}),label:e=>e["mode"]==="single-document"?s.__("Open in Simple Mode"):s.__("Open in New Browser Tab"),mnemonic:0})}};const z={id:"@jupyterlab/filebrowser-extension:file-upload-status",description:"Adds a file upload status widget.",autoStart:true,requires:[h.IFileBrowserFactory,b.ITranslator],optional:[v.IStatusBar],activate:(e,t,n,i)=>{if(!i){return}const s=new h.FileUploadStatus({tracker:t.tracker,translator:n});i.registerStatusItem("@jupyterlab/filebrowser-extension:file-upload-status",{item:s,align:"middle",isActive:()=>!!s.model&&s.model.items.length>0,activeStateChanged:s.model.stateChanged})}};const H={id:"@jupyterlab/filebrowser-extension:open-url",description:'Adds the feature "Open files from remote URLs".',autoStart:true,requires:[h.IDefaultFileBrowser,b.ITranslator],optional:[o.ICommandPalette],activate:(e,t,n,i)=>{const{commands:s}=e;const r=n.load("jupyterlab");const l=T.openUrl;s.addCommand(l,{label:e=>e.url?r.__("Open %1",e.url):r.__("Open from URL…"),caption:e=>e.url?r.__("Open %1",e.url):r.__("Open from URL"),execute:async e=>{var n,i,l;let d=(n=e===null||e===void 0?void 0:e.url)!==null&&n!==void 0?n:"";if(!d){d=(i=(await o.InputDialog.getText({label:r.__("URL"),placeholder:"https://example.com/path/to/file",title:r.__("Open URL"),okLabel:r.__("Open")})).value)!==null&&i!==void 0?i:undefined}if(!d){return}let c="";let h;try{const e=await fetch(d);h=await e.blob();c=(l=e.headers.get("Content-Type"))!==null&&l!==void 0?l:""}catch(u){if(u.response&&u.response.status!==200){u.message=r.__("Could not open URL: %1",d)}return(0,o.showErrorMessage)(r.__("Cannot fetch"),u)}try{const e=a.PathExt.basename(d);const n=new File([h],e,{type:c});const i=await t.model.upload(n);return s.execute("docmanager:open",{path:i.path})}catch(p){return(0,o.showErrorMessage)(r._p("showErrorMessage","Upload Error"),p)}}});if(i){i.addItem({command:l,category:r.__("File Operations")})}}};function W(e,t,n,i,s,r){const l=i.load("jupyterlab");const{docRegistry:d,commands:c}=e;const{tracker:h}=n;const u=a.PageConfig.getOption("delete_to_trash")==="true";c.addCommand(T.del,{execute:()=>{const e=h.currentWidget;if(e){return e.delete()}},icon:w.closeIcon.bindprops({stylesheet:"menuItem"}),label:u?l.__("Move to Trash"):l.__("Delete"),mnemonic:0});c.addCommand(T.copy,{execute:()=>{const e=h.currentWidget;if(e){return e.copy()}},icon:w.copyIcon.bindprops({stylesheet:"menuItem"}),label:l.__("Copy"),mnemonic:0});c.addCommand(T.cut,{execute:()=>{const e=h.currentWidget;if(e){return e.cut()}},icon:w.cutIcon.bindprops({stylesheet:"menuItem"}),label:l.__("Cut")});c.addCommand(T.duplicate,{execute:()=>{const e=h.currentWidget;if(e){return e.duplicate()}},icon:w.copyIcon.bindprops({stylesheet:"menuItem"}),label:l.__("Duplicate")});c.addCommand(T.goToPath,{label:l.__("Update the file browser to display the provided `path`."),execute:async e=>{var s;const o=e.path||"";const r=!((s=e===null||e===void 0?void 0:e.dontShowBrowser)!==null&&s!==void 0?s:false);try{const e=await q.navigateToPath(o,t,n,i);if(e.type!=="directory"&&r){const e=q.getBrowserForPath(o,t,n);if(e){e.clearSelectedItems();const t=o.split("/");const n=t[t.length-1];if(n){await e.selectItemByName(n)}}}}catch(a){console.warn(`${T.goToPath} failed to go to: ${o}`,a)}if(r){return c.execute(T.showBrowser,{path:o})}}});c.addCommand(T.goUp,{label:"go up",execute:async()=>{const e=q.getBrowserForPath("",t,n);if(!e){return}const{model:i}=e;await i.restored;void e.goUp()}});c.addCommand(T.openPath,{label:e=>e.path?l.__("Open %1",e.path):l.__("Open from Path…"),caption:e=>e.path?l.__("Open %1",e.path):l.__("Open from path"),execute:async e=>{var i;let s;if(e===null||e===void 0?void 0:e.path){s=e.path}else{s=(i=(await o.InputDialog.getText({label:l.__("Path"),placeholder:"/path/relative/to/jlab/root",title:l.__("Open Path"),okLabel:l.__("Open")})).value)!==null&&i!==void 0?i:undefined}if(!s){return}try{const i=s!=="/"&&s.endsWith("/");if(i){s=s.slice(0,s.length-1)}const o=q.getBrowserForPath(s,t,n);const{services:r}=o.model.manager;const a=await r.contents.get(s,{content:false});if(i&&a.type!=="directory"){throw new Error(`Path ${s}/ is not a directory`)}await c.execute(T.goToPath,{path:s,dontShowBrowser:e.dontShowBrowser});if(a.type==="directory"){return}return c.execute("docmanager:open",{path:s})}catch(r){if(r.response&&r.response.status===404){r.message=l.__("Could not find path: %1",s)}return(0,o.showErrorMessage)(l.__("Cannot open"),r)}}});if(r){r.addItem({command:T.openPath,category:l.__("File Operations")})}c.addCommand(T.open,{execute:e=>{const t=e["factory"]||void 0;const n=h.currentWidget;if(!n){return}const{contents:i}=n.model.manager.services;return Promise.all(Array.from((0,x.map)(n.selectedItems(),(e=>{if(e.type==="directory"){const t=i.localPath(e.path);return n.model.cd(`/${t}`)}return c.execute("docmanager:open",{factory:t,path:e.path})}))))},icon:e=>{var t;const n=e["factory"]||void 0;if(n){const e=d.getFileType(n);return(t=e===null||e===void 0?void 0:e.icon)===null||t===void 0?void 0:t.bindprops({stylesheet:"menuItem"})}else{return w.folderIcon.bindprops({stylesheet:"menuItem"})}},label:e=>e["label"]||e["factory"]||l.__("Open"),mnemonic:0});c.addCommand(T.paste,{execute:()=>{const e=h.currentWidget;if(e){return e.paste()}},icon:w.pasteIcon.bindprops({stylesheet:"menuItem"}),label:l.__("Paste"),mnemonic:0});c.addCommand(T.createNewDirectory,{execute:()=>{const e=h.currentWidget;if(e){return e.createNewDirectory()}},icon:w.newFolderIcon.bindprops({stylesheet:"menuItem"}),label:l.__("New Folder")});c.addCommand(T.createNewFile,{execute:()=>{const e=h.currentWidget;if(e){return e.createNewFile({ext:"txt"})}},icon:w.textEditorIcon.bindprops({stylesheet:"menuItem"}),label:l.__("New File")});c.addCommand(T.createNewMarkdownFile,{execute:()=>{const e=h.currentWidget;if(e){return e.createNewFile({ext:"md"})}},icon:w.markdownIcon.bindprops({stylesheet:"menuItem"}),label:l.__("New Markdown File")});c.addCommand(T.refresh,{execute:e=>{const t=h.currentWidget;if(t){return t.model.refresh()}},icon:w.refreshIcon.bindprops({stylesheet:"menuItem"}),caption:l.__("Refresh the file browser."),label:l.__("Refresh File List")});c.addCommand(T.rename,{execute:e=>{const t=h.currentWidget;if(t){return t.rename()}},isVisible:()=>!!h.currentWidget&&Array.from(h.currentWidget.selectedItems()).length===1,icon:w.editIcon.bindprops({stylesheet:"menuItem"}),label:l.__("Rename"),mnemonic:0});c.addCommand(T.copyPath,{execute:()=>{var e;const t=h.currentWidget;if(!t){return}const n=t.selectedItems().next();if(n.done){return}if(a.PageConfig.getOption("copyAbsolutePath")==="true"){const t=a.PathExt.joinWithLeadingSlash((e=a.PageConfig.getOption("serverRoot"))!==null&&e!==void 0?e:"",n.value.path);o.Clipboard.copyToSystem(t)}else{o.Clipboard.copyToSystem(n.value.path)}},isVisible:()=>!!h.currentWidget&&Array.from(h.currentWidget.selectedItems()).length===1,icon:w.fileIcon.bindprops({stylesheet:"menuItem"}),label:l.__("Copy Path")});c.addCommand(T.shutdown,{execute:()=>{const e=h.currentWidget;if(e){return e.shutdownKernels()}},icon:w.stopIcon.bindprops({stylesheet:"menuItem"}),label:l.__("Shut Down Kernel")});c.addCommand(T.toggleFileFilter,{execute:()=>{t.showFileFilter=!t.showFileFilter;c.notifyCommandChanged(T.toggleFileFilter)},isToggled:()=>{const e=t.showFileFilter;return e},icon:w.filterIcon.bindprops({stylesheet:"menuItem"}),label:l.__("Toggle File Filter")});c.addCommand(T.toggleLastModified,{label:l.__("Show Last Modified Column"),isToggled:()=>t.showLastModifiedColumn,execute:()=>{const e=!t.showLastModifiedColumn;const n="showLastModifiedColumn";if(s){return s.set(E,n,e).catch((e=>{console.error(`Failed to set ${n} setting`)}))}}});c.addCommand(T.toggleShowFullPath,{label:l.__("Show Full Path"),isToggled:()=>t.showFullPath,execute:()=>{const e=!t.showFullPath;const n="showFullPath";if(s){return s.set(E,n,e).catch((e=>{console.error(`Failed to set ${n} setting`)}))}}});c.addCommand(T.toggleSortNotebooksFirst,{label:l.__("Sort Notebooks Above Files"),isToggled:()=>t.sortNotebooksFirst,execute:()=>{const e=!t.sortNotebooksFirst;const n="sortNotebooksFirst";if(s){return s.set(E,n,e).catch((e=>{console.error(`Failed to set ${n} setting`)}))}}});c.addCommand(T.toggleFileSize,{label:l.__("Show File Size Column"),isToggled:()=>t.showFileSizeColumn,execute:()=>{const e=!t.showFileSizeColumn;const n="showFileSizeColumn";if(s){return s.set(E,n,e).catch((e=>{console.error(`Failed to set ${n} setting`)}))}}});c.addCommand(T.toggleSingleClick,{label:l.__("Enable Single Click Navigation"),isToggled:()=>t.singleClickNavigation,execute:()=>{const e=!t.singleClickNavigation;const n="singleClickNavigation";if(s){return s.set(E,n,e).catch((e=>{console.error(`Failed to set singleClickNavigation setting`)}))}}});c.addCommand(T.toggleHiddenFiles,{label:l.__("Show Hidden Files"),isToggled:()=>t.showHiddenFiles,isVisible:()=>a.PageConfig.getOption("allow_hidden_files")==="true",execute:()=>{const e=!t.showHiddenFiles;const n="showHiddenFiles";if(s){return s.set(E,n,e).catch((e=>{console.error(`Failed to set showHiddenFiles setting`)}))}}});c.addCommand(T.toggleFileCheckboxes,{label:l.__("Show File Checkboxes"),isToggled:()=>t.showFileCheckboxes,execute:()=>{const e=!t.showFileCheckboxes;const n="showFileCheckboxes";if(s){return s.set(E,n,e).catch((e=>{console.error(`Failed to set showFileCheckboxes setting`)}))}}});c.addCommand(T.search,{label:l.__("Search on File Names"),execute:()=>alert("search")})}const V=[P,L,D,A,O,z,R,N,B,F,H];const U=V;var q;(function(e){function t(e,t,n){const{tracker:i}=n;const s=t.model.manager.services.contents.driveName(e);if(s){const t=i.find((e=>e.model.driveName===s));if(!t){console.warn(`${T.goToPath} failed to find filebrowser for path: ${e}`);return}return t}return t}e.getBrowserForPath=t;async function n(t,n,i,s){const o=s.load("jupyterlab");const r=e.getBrowserForPath(t,n,i);if(!r){throw new Error(o.__("No browser for path"))}const{services:l}=r.model.manager;const d=l.contents.localPath(t);await l.ready;const c=await l.contents.get(t,{content:false});const{model:h}=r;await h.restored;if(c.type==="directory"){await h.cd(`/${d}`)}else{await h.cd(`/${a.PathExt.dirname(d)}`)}return c}e.navigateToPath=n;async function i(e,t,n,i,s,o){const r="jp-mod-restoring";e.addClass(r);if(!n){await e.model.restore(e.id);await e.model.refresh();e.removeClass(r);return}const a=async()=>{n.routed.disconnect(a);const s=await(i===null||i===void 0?void 0:i.paths);if((s===null||s===void 0?void 0:s.file)||(s===null||s===void 0?void 0:s.browser)){await e.model.restore(e.id,false);if(s.file){await t.execute(T.openPath,{path:s.file,dontShowBrowser:true})}if(s.browser){await t.execute(T.openPath,{path:s.browser,dontShowBrowser:true})}}else{await e.model.restore(e.id);await e.model.refresh()}e.removeClass(r);if(o===null||o===void 0?void 0:o.isEmpty("main")){void t.execute("launcher:create")}};n.routed.connect(a)}e.restoreBrowser=i;let s;(function(e){function t(e,t){const n=e.preferredWidgetFactories(t.path);const i=e.getWidgetFactory("notebook");if(i&&t.type==="notebook"&&n.indexOf(i)===-1){n.unshift(i)}return n}e.getFactories=t;function n(e){let t=undefined;for(const n of e){if(t===undefined){t=new Set(n);continue}if(t.size===0){return t}let e=new Set;for(const i of n){if(t.has(i)){e.add(i)}}t=e}return t!==null&&t!==void 0?t:new Set}e.intersection=n})(s=e.OpenWith||(e.OpenWith={}))})(q||(q={}))},20135:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(97913);var a=n(79010);var l=n(3579);var d=n(41603);var c=n(39063);var h=n(85072);var u=n.n(h);var p=n(97825);var m=n.n(p);var g=n(77659);var f=n.n(g);var v=n(55056);var _=n.n(v);var b=n(10540);var y=n.n(b);var w=n(41113);var C=n.n(w);var x=n(538);var S={};S.styleTagTransform=C();S.setAttributes=_();S.insert=f().bind(null,"head");S.domAPI=m();S.insertStyleElement=y();var k=u()(x.A,S);const j=x.A&&x.A.locals?x.A.locals:undefined},21813:(e,t,n)=>{"use strict";n.r(t);n.d(t,{BreadCrumbs:()=>C,CHUNK_SIZE:()=>xe,DirListing:()=>ce,FileBrowser:()=>be,FileBrowserModel:()=>Se,FileDialog:()=>Te,FileUploadStatus:()=>He,FilterFileBrowserModel:()=>je,IDefaultFileBrowser:()=>Pe,IFileBrowserCommands:()=>Le,IFileBrowserFactory:()=>Ae,LARGE_FILE_SIZE:()=>Ce,TogglableHiddenFileBrowserModel:()=>ke,Uploader:()=>Re});var i=n(14366);var s=n(30397);var o=n(28548);var r=n(30619);var a=n(26331);var l=n(1143);var d=n(44914);var c=n.n(d);var h=n(43801);var u=n(34236);var p=n(5592);var m=n(76326);const g="jp-BreadCrumbs";const f="jp-BreadCrumbs-home";const v="jp-BreadCrumbs-preferred";const _="jp-BreadCrumbs-item";const b=["/","../../","../",""];const y="application/x-jupyter-icontents";const w="jp-mod-dropTarget";class C extends l.Widget{constructor(e){super();this._previousState=null;this.translator=e.translator||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this._model=e.model;this._fullPath=e.fullPath||false;this.addClass(g);this._crumbs=x.createCrumbs();this._crumbSeps=x.createCrumbSeparators();const t=s.PageConfig.getOption("preferredPath");this._hasPreferred=t&&t!=="/"?true:false;if(this._hasPreferred){this.node.appendChild(this._crumbs[x.Crumb.Preferred])}this.node.appendChild(this._crumbs[x.Crumb.Home]);this._model.refreshed.connect(this.update,this)}handleEvent(e){switch(e.type){case"click":this._evtClick(e);break;case"lm-dragenter":this._evtDragEnter(e);break;case"lm-dragleave":this._evtDragLeave(e);break;case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;default:return}}get fullPath(){return this._fullPath}set fullPath(e){this._fullPath=e}onAfterAttach(e){super.onAfterAttach(e);this.update();const t=this.node;t.addEventListener("click",this);t.addEventListener("lm-dragenter",this);t.addEventListener("lm-dragleave",this);t.addEventListener("lm-dragover",this);t.addEventListener("lm-drop",this)}onBeforeDetach(e){super.onBeforeDetach(e);const t=this.node;t.removeEventListener("click",this);t.removeEventListener("lm-dragenter",this);t.removeEventListener("lm-dragleave",this);t.removeEventListener("lm-dragover",this);t.removeEventListener("lm-drop",this)}onUpdateRequest(e){const t=this._model.manager.services.contents;const n=t.localPath(this._model.path);const i={path:n,hasPreferred:this._hasPreferred,fullPath:this._fullPath};if(this._previousState&&p.JSONExt.deepEqual(i,this._previousState)){return}this._previousState=i;x.updateCrumbs(this._crumbs,this._crumbSeps,i)}_evtClick(e){if(e.button!==0){return}let t=e.target;while(t&&t!==this.node){if(t.classList.contains(v)){this._model.cd(s.PageConfig.getOption("preferredPath")).catch((e=>(0,i.showErrorMessage)(this._trans.__("Open Error"),e)));e.preventDefault();e.stopPropagation();return}if(t.classList.contains(_)||t.classList.contains(f)){let n=u.ArrayExt.findFirstIndex(this._crumbs,(e=>e===t));let s=b[n];if(this._fullPath&&n<0&&!t.classList.contains(f)){s=t.title}this._model.cd(s).catch((e=>(0,i.showErrorMessage)(this._trans.__("Open Error"),e)));e.preventDefault();e.stopPropagation();return}t=t.parentElement}}_evtDragEnter(e){if(e.mimeData.hasData(y)){const t=u.ArrayExt.findFirstIndex(this._crumbs,(t=>m.ElementExt.hitTest(t,e.clientX,e.clientY)));if(t!==-1){if(t!==x.Crumb.Current){this._crumbs[t].classList.add(w);e.preventDefault();e.stopPropagation()}}}}_evtDragLeave(e){e.preventDefault();e.stopPropagation();const t=i.DOMUtils.findElement(this.node,w);if(t){t.classList.remove(w)}}_evtDragOver(e){e.preventDefault();e.stopPropagation();e.dropAction=e.proposedAction;const t=i.DOMUtils.findElement(this.node,w);if(t){t.classList.remove(w)}const n=u.ArrayExt.findFirstIndex(this._crumbs,(t=>m.ElementExt.hitTest(t,e.clientX,e.clientY)));if(n!==-1){this._crumbs[n].classList.add(w)}}_evtDrop(e){e.preventDefault();e.stopPropagation();if(e.proposedAction==="none"){e.dropAction="none";return}if(!e.mimeData.hasData(y)){return}e.dropAction=e.proposedAction;let t=e.target;while(t&&t.parentElement){if(t.classList.contains(w)){t.classList.remove(w);break}t=t.parentElement}const n=u.ArrayExt.findFirstIndex(this._crumbs,(e=>e===t));if(n===-1){return}const o=this._model;const r=s.PathExt.resolve(o.path,b[n]);const a=o.manager;const l=[];const d=e.mimeData.getData(y);for(const i of d){const e=a.services.contents.localPath(i);const t=s.PathExt.basename(e);const n=s.PathExt.join(r,t);l.push((0,h.renameFile)(a,i,n))}void Promise.all(l).catch((e=>(0,i.showErrorMessage)(this._trans.__("Move Error"),e)))}}var x;(function(e){let t;(function(e){e[e["Home"]=0]="Home";e[e["Ellipsis"]=1]="Ellipsis";e[e["Parent"]=2]="Parent";e[e["Current"]=3]="Current";e[e["Preferred"]=4]="Preferred"})(t=e.Crumb||(e.Crumb={}));function n(e,n,i){const s=e[0].parentNode;const o=s.firstChild;while(o&&o.nextSibling){s.removeChild(o.nextSibling)}if(i.hasPreferred){s.appendChild(e[t.Home]);s.appendChild(n[0])}else{s.appendChild(n[0])}const r=i.path.split("/");if(!i.fullPath&&r.length>2){s.appendChild(e[t.Ellipsis]);const i=r.slice(0,r.length-2).join("/");e[t.Ellipsis].title=i;s.appendChild(n[1])}if(i.path){if(!i.fullPath){if(r.length>=2){e[t.Parent].textContent=r[r.length-2];s.appendChild(e[t.Parent]);const i=r.slice(0,r.length-1).join("/");e[t.Parent].title=i;s.appendChild(n[2])}e[t.Current].textContent=r[r.length-1];s.appendChild(e[t.Current]);e[t.Current].title=i.path;s.appendChild(n[3])}else{for(let e=0;ethis.selection[e.path]))}sortedItems(){return this._sortedItems[Symbol.iterator]()}sort(e){this._sortedItems=he.sort(this.model.items(),e,this._sortNotebooksFirst,this.translator);this._sortState=e;this.update()}rename(){return this._doRename()}cut(){this._isCut=true;this._copy();this.update()}copy(){this._copy()}paste(){if(!this._clipboard.length){this._isCut=false;return Promise.resolve(undefined)}const e=this._model.path;const t=[];for(const n of this._clipboard){if(this._isCut){const i=this._manager.services.contents.localPath(n);const o=i.split("/");const r=o[o.length-1];const a=s.PathExt.join(e,r);t.push(this._model.manager.rename(n,a))}else{t.push(this._model.manager.copy(n,e))}}for(const n of this._items){n.classList.remove(ee)}this._clipboard.length=0;this._isCut=false;this.removeClass(Z);return Promise.all(t).then((()=>undefined)).catch((e=>{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Paste Error"),e)}))}async delete(){const e=s.PageConfig.getOption("delete_to_trash")==="true";const t=this._sortedItems.filter((e=>this.selection[e.path]));if(!t.length){return}const n=this._trans.__("Are you sure you want to move to trash: %1?",t[0].name);const o=this._trans.__("Are you sure you want to permanently delete: %1?",t[0].name);const r=this._trans._n("Are you sure you want to move to trash the %1 selected item?","Are you sure you want to move to trash the %1 selected items?",t.length);const a=this._trans._n("Are you sure you want to permanently delete the %1 selected item?","Are you sure you want to permanently delete the %1 selected items?",t.length);const l=e?n:o;const d=e?r:a;const c=e?this._trans.__("Move to Trash"):this._trans.__("Delete");const h=t.length===1?l:d;const u=await(0,i.showDialog)({title:c,body:h,buttons:[i.Dialog.cancelButton({label:this._trans.__("Cancel")}),i.Dialog.warnButton({label:c})],defaultButton:0});if(!this.isDisposed&&u.button.accept){await this._delete(t.map((e=>e.path)))}let p=this._focusIndex;const m=this._sortedItems.length-t.length-1;if(p>m){p=Math.max(0,m)}this._focusItem(p)}duplicate(){const e=this._model.path;const t=[];for(const n of this.selectedItems()){if(n.type!=="directory"){t.push(this._model.manager.copy(n.path,e))}}return Promise.all(t).then((()=>undefined)).catch((e=>{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Duplicate file"),e)}))}async download(){await Promise.all(Array.from(this.selectedItems()).filter((e=>e.type!=="directory")).map((e=>this._model.download(e.path))))}async restore(e){const t=`file-browser-${e}:columns`;const n=this._state;this._stateColumnsKey=t;if(!n){return}try{const e=await n.fetch(t);if(!e){return}const i=e["sizes"];if(!i){return}for(const[t,n]of Object.entries(i)){this._columnSizes[t]=n}this._updateColumnSizes()}catch(i){await n.remove(t)}}shutdownKernels(){const e=this._model;const t=this._sortedItems;const n=t.map((e=>e.path));const s=Array.from(this._model.sessions()).filter((e=>{const i=u.ArrayExt.firstIndexOf(n,e.path);return this.selection[t[i].path]})).map((t=>e.manager.services.sessions.shutdown(t.id)));return Promise.all(s).then((()=>undefined)).catch((e=>{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Shut down kernel"),e)}))}selectNext(e=false){let t=-1;const n=Object.keys(this.selection);const i=this._sortedItems;if(n.length===1||e){const e=n[n.length-1];t=u.ArrayExt.findFirstIndex(i,(t=>t.path===e));t+=1;if(t===this._items.length){t=0}}else if(n.length===0){t=0}else{const e=n[n.length-1];t=u.ArrayExt.findFirstIndex(i,(t=>t.path===e))}if(t!==-1){this._selectItem(t,e);m.ElementExt.scrollIntoViewIfNeeded(this.contentNode,this._items[t])}}selectPrevious(e=false){let t=-1;const n=Object.keys(this.selection);const i=this._sortedItems;if(n.length===1||e){const e=n[0];t=u.ArrayExt.findFirstIndex(i,(t=>t.path===e));t-=1;if(t===-1){t=this._items.length-1}}else if(n.length===0){t=this._items.length-1}else{const e=n[0];t=u.ArrayExt.findFirstIndex(i,(t=>t.path===e))}if(t!==-1){this._selectItem(t,e);m.ElementExt.scrollIntoViewIfNeeded(this.contentNode,this._items[t])}}selectByPrefix(){const e=this._searchPrefix.toLowerCase();const t=this._sortedItems;const n=u.ArrayExt.findFirstIndex(t,(t=>t.name.toLowerCase().substr(0,e.length)===e));if(n!==-1){this._selectItem(n,false);m.ElementExt.scrollIntoViewIfNeeded(this.contentNode,this._items[n])}}isSelected(e){const t=this._sortedItems;return Array.from((0,u.filter)(t,(t=>t.name===e&&this.selection[t.path]))).length!==0}modelForClick(e){const t=this._sortedItems;const n=he.hitTestNodes(this._items,e);if(n!==-1){return t[n]}return undefined}clearSelectedItems(){this.selection=Object.create(null)}async selectItemByName(e,t=false){return this._selectItemByName(e,t)}async _selectItemByName(e,t=false,n=false){if(!n&&this.isSelected(e)){return}await this.model.refresh();if(this.isDisposed){throw new Error("File browser is disposed.")}const i=this._sortedItems;const s=u.ArrayExt.findFirstIndex(i,(t=>t.name===e));if(s===-1){throw new Error("Item does not exist.")}this._selectItem(s,false,t);I.MessageLoop.sendMessage(this,l.Widget.Msg.UpdateRequest);m.ElementExt.scrollIntoViewIfNeeded(this.contentNode,this._items[s])}handleEvent(e){switch(e.type){case"mousedown":this._evtMousedown(e);break;case"mouseup":this._evtMouseup(e);break;case"mousemove":this._evtMousemove(e);break;case"keydown":this.evtKeydown(e);break;case"click":this._evtClick(e);break;case"dblclick":this.evtDblClick(e);break;case"dragenter":case"dragover":this.addClass("jp-mod-native-drop");e.preventDefault();break;case"dragleave":case"dragend":this.removeClass("jp-mod-native-drop");break;case"drop":this.removeClass("jp-mod-native-drop");this.evtNativeDrop(e);break;case"scroll":this._evtScroll(e);break;case"lm-dragenter":this.evtDragEnter(e);break;case"lm-dragleave":this.evtDragLeave(e);break;case"lm-dragover":this.evtDragOver(e);break;case"lm-drop":this.evtDrop(e);break;default:break}}onAfterAttach(e){super.onAfterAttach(e);const t=this.node;this._width=this._computeContentWidth();const n=i.DOMUtils.findElement(t,R);t.addEventListener("mousedown",this);t.addEventListener("keydown",this);t.addEventListener("click",this);t.addEventListener("dblclick",this);this._contentSizeObserver.observe(n);n.addEventListener("dragenter",this);n.addEventListener("dragover",this);n.addEventListener("dragleave",this);n.addEventListener("dragend",this);n.addEventListener("drop",this);n.addEventListener("scroll",this);n.addEventListener("lm-dragenter",this);n.addEventListener("lm-dragleave",this);n.addEventListener("lm-dragover",this);n.addEventListener("lm-drop",this)}onBeforeDetach(e){super.onBeforeDetach(e);const t=this.node;const n=i.DOMUtils.findElement(t,R);t.removeEventListener("mousedown",this);t.removeEventListener("keydown",this);t.removeEventListener("click",this);t.removeEventListener("dblclick",this);this._contentSizeObserver.disconnect();n.removeEventListener("scroll",this);n.removeEventListener("dragover",this);n.removeEventListener("dragover",this);n.removeEventListener("dragleave",this);n.removeEventListener("dragend",this);n.removeEventListener("drop",this);n.removeEventListener("lm-dragenter",this);n.removeEventListener("lm-dragleave",this);n.removeEventListener("lm-dragover",this);n.removeEventListener("lm-drop",this);document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true)}onAfterShow(e){if(this._isDirty){this.sort(this.sortState);this.update()}}_onContentResize(){const e=i.DOMUtils.findElement(this.node,R);const t=e.offsetWidth-e.clientWidth;if(t!=this._contentScrollbarWidth){this._contentScrollbarWidth=t;this._width=this._computeContentWidth();this._updateColumnSizes()}}_computeContentWidth(e=null){if(!e){e=this.node.getBoundingClientRect().width}this._paddingWidth=parseFloat(window.getComputedStyle(this.node).getPropertyValue("--jp-dirlisting-padding-width"));const t=this.node.querySelector(`.${Q}`);this._handleWidth=t?t.getBoundingClientRect().width:re;return e-this._paddingWidth*2-this._contentScrollbarWidth}_updateModifiedSize(e){var t,n;const s=i.DOMUtils.findElement(e,q);this._modifiedWidth=(n=(t=this._columnSizes["last_modified"])!==null&&t!==void 0?t:s===null||s===void 0?void 0:s.getBoundingClientRect().width)!==null&&n!==void 0?n:83;this._modifiedStyle=this._modifiedWidth<100?"narrow":this._modifiedWidth>120?"long":"short"}_updateModifiedStyleAndSize(){const e=this._modifiedStyle;this._updateModifiedSize(this.node);if(e!==this._modifiedStyle){this.updateModified(this._sortedItems,this._items)}}updateModified(e,t){e.forEach(((e,n)=>{const s=t[n];if(s&&e.last_modified){const t=i.DOMUtils.findElement(s,z);if(this.renderer.updateItemModified!==undefined){this.renderer.updateItemModified(t,e.last_modified,this._modifiedStyle)}else{ce.defaultRenderer.updateItemModified(t,e.last_modified,this._modifiedStyle)}}}))}updateNodes(e,t,n=false){var i;e.forEach(((e,i)=>{const s=t[i];if(n&&this.renderer.updateItemSize){if(!s){return}return this.renderer.updateItemSize(s,e,this._modifiedStyle,this._columnSizes)}const o=this._manager.registry.getFileTypeForModel(e);this.renderer.updateItemNode(s,e,o,this.translator,this._hiddenColumns,this.selection[e.path],this._modifiedStyle,this._columnSizes);if(this.selection[e.path]&&this._isCut&&this._model.path===this._prevPath){s.classList.add(ee)}s.setAttribute("data-isdir",e.type==="directory"?"true":"false")}));const s=Object.keys(this.selection).length;if(s){this.addClass(Y);if(s>1){this.addClass(te)}}const o=e.map((e=>e.path));for(const r of this._model.sessions()){const e=u.ArrayExt.firstIndexOf(o,r.path);const n=t[e];if(n){let e=(i=r.kernel)===null||i===void 0?void 0:i.name;const t=this._model.specs;n.classList.add(ne);if(t&&e){const n=t.kernelspecs[e];e=n?n.display_name:this._trans.__("unknown")}const s=this._lastRenderedState.get(n);if(s!==n.title){n.title=this._trans.__("%1\nKernel: %2",n.title,e);this._lastRenderedState.set(n,n.title)}}}}onUpdateRequest(e){this._isDirty=false;const t=this._sortedItems;const n=this._items;const s=i.DOMUtils.findElement(this.node,R);const o=this._renderer;this.removeClass(te);this.removeClass(Y);while(n.length>t.length){s.removeChild(n.pop())}while(n.length{e.classList.remove(Y);e.classList.remove(ne);e.classList.remove(ee);const n=o.getCheckboxNode(e);if(n){n.checked=false}const i=o.getNameNode(e);if(i){i.tabIndex=t===this._focusIndex?0:-1}}));const r=o.getCheckboxNode(this.headerNode);if(r){const e=Object.keys(this.selection).length;const n=t.length>0&&e===t.length;const i=!n&&e>0;r.checked=n;r.indeterminate=i;r.dataset.checked=String(n);r.dataset.indeterminate=String(i);const s=this.translator.load("jupyterlab");r===null||r===void 0?void 0:r.setAttribute("aria-label",n||i?s.__("Deselect all files and directories"):s.__("Select all files and directories"))}this.updateNodes(t,n);this._prevPath=this._model.path}onResize(e){const{width:t}=e.width===-1?this.node.getBoundingClientRect():e;this._width=this._computeContentWidth(t);this._updateColumnSizes()}setColumnVisibility(e,t){if(t){this._hiddenColumns.delete(e)}else{this._hiddenColumns.add(e)}this.headerNode.innerHTML="";this._renderer.populateHeaderNode(this.headerNode,this.translator,this._hiddenColumns,this._columnSizes);this._updateColumnSizes()}_updateColumnSizes(e=null){const t=this._visibleColumns.map((e=>({...e,element:i.DOMUtils.findElement(this.node,e.className)}))).filter((e=>e.element));let n=0;for(const i of t){let e=this._columnSizes[i.id];if(e===null){e=i.element.getBoundingClientRect().width}e=Math.max(e,i.minWidth);if(this._width){let n=0;for(const e of t){if(e.id===i.id){continue}n+=e.minWidth}e=Math.min(e,this._width-n)}this._columnSizes[i.id]=e;n+=e}if(this._width){const i=this._width-n;let s=e===null;const o=t.filter((t=>{if(s){return true}if(t.id===e){s=true}return false}));const r=o.map((e=>e.grow)).reduce(((e,t)=>e+t),0);for(const e of o){const t=i*e.grow/r;this._columnSizes[e.id]=this._columnSizes[e.id]+t}}const s=this.node.getElementsByClassName(Q);const o=t.map((e=>he.isResizable(e)));let r=0;for(const i of t){let e=this._columnSizes[i.id];if(he.isResizable(i)&&e){e-=this._handleWidth*s.length/o.length;if(r===0||r===o.length-1){e+=this._paddingWidth}r+=1}i.element.style.width=e===null?"":e+"px"}this._updateModifiedStyleAndSize();if(this.isVisible){const e=this._items;if(e.length!==0){this.updateNodes(this._sortedItems,this._items,true)}}if(this._state&&this._stateColumnsKey){void this._state.save(this._stateColumnsKey,{sizes:this._columnSizes})}}get _visibleColumns(){return ce.columns.filter((e=>{var t;return e.id==="name"||!((t=this._hiddenColumns)===null||t===void 0?void 0:t.has(e.id))}))}_setColumnSize(e,t){var n;const s=this._columnSizes[e];if(s&&t&&t>s){let s=0;let o=true;for(const r of this._visibleColumns){if(r.id===e){s+=t;o=false;continue}if(o){const e=i.DOMUtils.findElement(this.node,r.className);s+=(n=this._columnSizes[r.id])!==null&&n!==void 0?n:e.getBoundingClientRect().width}else{s+=r.minWidth}}if(this._width&&s>this._width){return}}this._columnSizes[e]=t;this._updateColumnSizes(e)}setNotebooksFirstSorting(e){let t=this._sortNotebooksFirst;this._sortNotebooksFirst=e;if(this._sortNotebooksFirst!==t){this.sort(this._sortState)}}setAllowSingleClickNavigation(e){this._allowSingleClick=e}isWithinCheckboxHitArea(e){let t=e.target;while(t){if(t.classList.contains(W)){return true}t=t.parentElement}return false}_evtClick(e){const t=e.target;const n=this.headerNode;const i=this._renderer;if(n.contains(t)){const t=i.getCheckboxNode(n);if(t&&this.isWithinCheckboxHitArea(e)){const e=t.dataset.indeterminate==="false"&&t.dataset.checked==="false";if(e){this._sortedItems.forEach((e=>this.selection[e.path]=true))}else{this.clearSelectedItems()}this.update()}else{const t=this.renderer.handleHeaderClick(n,e);if(t){this.sort(t)}}return}else{this._focusItem(this._focusIndex)}if(this._allowSingleClick){this.evtDblClick(e)}}_evtScroll(e){this.headerNode.scrollLeft=this.contentNode.scrollLeft}_evtMousedown(e){if(e.target===this._editNode){return}if(this._editNode.parentNode){if(this._editNode!==e.target){this._editNode.focus();this._editNode.blur();clearTimeout(this._selectTimer)}else{return}}let t=he.hitTestNodes(this._items,e);if(t===-1){if(e.button===0){const t=e.target;if(t instanceof HTMLElement&&t.classList.contains(Q)){const n=t.dataset.column;if(!n){throw Error("Column resize handle is missing data-column attribute")}const s=ce.columns.find((e=>e.id===n));if(!s){throw Error(`Column with identifier ${n} not found`)}const o=i.DOMUtils.findElement(this.node,s.className);t.classList.add(ie);const r=j.Drag.overrideCursor("col-resize");this._resizeData={pressX:e.clientX,column:n,initialSize:o.getBoundingClientRect().width,overrides:new k.DisposableDelegate((()=>{r.dispose();t.classList.remove(ie)}))};document.addEventListener("mouseup",this,true);document.addEventListener("mousemove",this,true);return}}return}this.handleFileSelect(e);if(e.button!==0){clearTimeout(this._selectTimer)}const n=le&&e.ctrlKey||e.button===2;if(n){return}if(e.button===0){this._dragData={pressX:e.clientX,pressY:e.clientY,index:t};document.addEventListener("mouseup",this,true);document.addEventListener("mousemove",this,true)}}_evtMouseup(e){if(this._softSelection){const t=e.metaKey||e.shiftKey||e.ctrlKey;if(!t&&e.button===0){this.clearSelectedItems();this.selection[this._softSelection]=true;this.update()}this._softSelection=""}if(e.button===0){this._focusItem(this._focusIndex)}if(this._resizeData){this._resizeData.overrides.dispose();this._resizeData=null;document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true);return}if(e.button!==0||!this._drag){document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true);return}e.preventDefault();e.stopPropagation()}_evtMousemove(e){e.preventDefault();e.stopPropagation();if(this._resizeData){const{initialSize:t,column:n,pressX:i}=this._resizeData;this._setColumnSize(n,t+e.clientX-i);return}if(this._drag||!this._dragData){return}const t=this._dragData;const n=Math.abs(e.clientX-t.pressX);const i=Math.abs(e.clientY-t.pressY);if(n(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Open directory"),e)))}else{const t=e.path;this._manager.openOrReveal(t)}}_getNextFocusIndex(e,t){const n=e+t;if(n===-1||n===this._items.length){return e}else{return n}}_handleArrowY(e,t){if(e.altKey||e.metaKey){return}if(!this._items.length){return}if(!e.target.classList.contains(O)){return}e.stopPropagation();e.preventDefault();const n=this._focusIndex;let i=this._getNextFocusIndex(n,t);if(t>0&&n===0&&!e.ctrlKey&&Object.keys(this.selection).length===0){i=0}if(e.shiftKey){this._handleMultiSelect(i)}else if(!e.ctrlKey){this._selectItem(i,e.shiftKey,false)}this._focusItem(i);this.update()}async goUp(){const e=this.model;if(e.path===e.rootPath){return}try{await e.cd("..")}catch(t){console.warn(`Failed to go to parent directory of ${e.path}`,t)}}evtKeydown(e){if(this._inRename){return}switch(e.keyCode){case 13:{if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey){return}e.preventDefault();e.stopPropagation();for(const e of this.selectedItems()){this.handleOpen(e)}return}case 38:this._handleArrowY(e,-1);return;case 40:this._handleArrowY(e,1);return;case 32:{if(e.ctrlKey){if(e.metaKey||e.shiftKey||e.altKey){return}const t=this._items[this._focusIndex];if(!(t.contains(e.target)&&t.contains(document.activeElement))){return}e.stopPropagation();e.preventDefault();const{path:n}=this._sortedItems[this._focusIndex];if(this.selection[n]){delete this.selection[n]}else{this.selection[n]=true}this.update();return}break}}if(e.key!==undefined&&e.key.length===1&&!((e.key===" "||e.keyCode===32)&&e.target.type==="checkbox")){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey){return}this._searchPrefix+=e.key;clearTimeout(this._searchPrefixTimer);this._searchPrefixTimer=window.setTimeout((()=>{this._searchPrefix=""}),oe);this.selectByPrefix();e.stopPropagation();e.preventDefault()}}evtDblClick(e){if(e.button!==0){return}if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey){return}if(this.isWithinCheckboxHitArea(e)){return}e.preventDefault();e.stopPropagation();clearTimeout(this._selectTimer);this._editNode.blur();const t=e.target;const n=u.ArrayExt.findFirstIndex(this._items,(e=>e.contains(t)));if(n===-1){return}const i=this._sortedItems[n];this.handleOpen(i)}evtNativeDrop(e){var t,n,i;e.preventDefault();const s=(t=e.dataTransfer)===null||t===void 0?void 0:t.items;if(!s){const t=(n=e.dataTransfer)===null||n===void 0?void 0:n.files;if(!t||t.length===0){return}const i=[];for(const e of t){const t=this._model.upload(e);i.push(t)}Promise.all(i).then((()=>this._allUploaded.emit())).catch((e=>{console.error("Error while uploading files: ",e)}));return}const o=async(e,t)=>{if(he.isDirectoryEntry(e)){const n=await he.createDirectory(this._model.manager,t,e.name);const i=e.createReader();const s=await he.collectEntries(i);for(const e of s){await o(e,n)}}else if(he.isFileEntry(e)){const n=await he.readFile(e);await this._model.upload(n,t)}};const r=[];for(const a of s){const e=he.defensiveGetAsEntry(a);if(!e){continue}const t=o(e,(i=this._model.path)!==null&&i!==void 0?i:"/");r.push(t)}Promise.all(r).then((()=>this._allUploaded.emit())).catch((e=>{console.error("Error while uploading files: ",e)}))}get allUploaded(){return this._allUploaded}evtDragEnter(e){if(e.mimeData.hasData(K)){const t=he.hitTestNodes(this._items,e);if(t===-1){return}const n=this._sortedItems[t];if(n.type!=="directory"||this.selection[n.path]){return}const i=e.target;i.classList.add(G);e.preventDefault();e.stopPropagation()}}evtDragLeave(e){e.preventDefault();e.stopPropagation();const t=i.DOMUtils.findElement(this.node,G);if(t){t.classList.remove(G)}}evtDragOver(e){e.preventDefault();e.stopPropagation();e.dropAction=e.proposedAction;const t=i.DOMUtils.findElement(this.node,G);if(t){t.classList.remove(G)}const n=he.hitTestNodes(this._items,e);this._items[n].classList.add(G)}evtDrop(e){e.preventDefault();e.stopPropagation();clearTimeout(this._selectTimer);if(e.proposedAction==="none"){e.dropAction="none";return}if(!e.mimeData.hasData(K)){return}let t=e.target;while(t&&t.parentElement){if(t.classList.contains(G)){t.classList.remove(G);break}t=t.parentElement}const n=u.ArrayExt.firstIndexOf(this._items,t);const o=this._sortedItems;let r=this._model.path;if(o[n].type==="directory"){r=s.PathExt.join(r,o[n].name)}const a=this._manager;const l=[];const d=e.mimeData.getData(K);if(e.ctrlKey&&e.proposedAction==="move"){e.dropAction="copy"}else{e.dropAction=e.proposedAction}for(const i of d){const t=a.services.contents.localPath(i);const n=s.PathExt.basename(t);const o=s.PathExt.join(r,n);if(o===i){continue}if(e.dropAction==="copy"){l.push(a.copy(i,r))}else{l.push((0,h.renameFile)(a,i,o))}}Promise.all(l).catch((e=>{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Error while copying/moving files"),e)}))}_startDrag(e,t,n){let i=Object.keys(this.selection);const s=this._items[e];const o=this._sortedItems;let r;let a;if(!s.classList.contains(Y)){a=o[e];i=[a.path];r=[a]}else{const e=i[0];a=o.find((t=>t.path===e));r=this.selectedItems()}if(!a){return}const l=this._manager.registry.getFileTypeForModel(a);const d=this.renderer.createDragImage(s,i.length,this._trans,l);this._drag=new j.Drag({dragImage:d,mimeData:new p.MimeData,supportedActions:"move",proposedAction:"move"});this._drag.mimeData.setData(K,i);const c=this.model.manager.services;for(const h of r){this._drag.mimeData.setData(J,{model:h,withContent:async()=>await c.contents.get(h.path)})}if(a&&a.type!=="directory"){const e=i.slice(1).reverse();this._drag.mimeData.setData(de,(()=>{if(!a){return}const t=a.path;let n=this._manager.findWidget(t);if(!n){n=this._manager.open(a.path)}if(e.length){const t=new p.PromiseDelegate;void t.promise.then((()=>{let t=n;e.forEach((e=>{const n={ref:t===null||t===void 0?void 0:t.id,mode:"tab-after"};t=this._manager.openOrReveal(e,void 0,void 0,n);this._manager.openOrReveal(a.path)}))}));t.resolve(void 0)}return n}))}document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true);clearTimeout(this._selectTimer);void this._drag.start(t,n).then((e=>{this._drag=null;clearTimeout(this._selectTimer)}))}handleFileSelect(e){const t=this._sortedItems;const n=he.hitTestNodes(this._items,e);clearTimeout(this._selectTimer);if(n===-1){return}this._softSelection="";const i=t[n].path;const s=Object.keys(this.selection);const o=e.button===0&&!(le&&e.ctrlKey)&&this.isWithinCheckboxHitArea(e);if(le&&e.metaKey||!le&&e.ctrlKey||o){if(this.selection[i]){delete this.selection[i]}else{this.selection[i]=true}this._focusItem(n)}else if(e.shiftKey){this._handleMultiSelect(n);this._focusItem(n)}else if(i in this.selection&&s.length>1){this._softSelection=i}else{return this._selectItem(n,false,true)}this.update()}_focusItem(e){const t=this._items;if(t.length===0){this._focusIndex=0;this.node.focus();return}this._focusIndex=e;const n=t[e];const i=this.renderer.getNameNode(n);if(i){i.tabIndex=0;i.focus()}}_allSelectedBetween(e,t){if(e===t){return}const[n,i]=ee&&this.selection[t.path]),true)}_handleMultiSelect(e){const t=this._sortedItems;const n=this._focusIndex;const i=t[e];let s=true;if(e===n){this.selection[i.path]=true;return}if(this.selection[i.path]){if(Math.abs(e-n)===1){const i=t[n];const s=t[n+(ethis._model.manager.deleteFile(e).catch((e=>{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Delete Failed"),e)})))))}async _doRename(){this._inRename=true;const e=Object.keys(this.selection);if(e.length===0){this._inRename=false;return Promise.resolve("")}const t=this._sortedItems;let{path:n}=t[this._focusIndex];if(!this.selection[n]){n=e.slice(-1)[0]}const o=u.ArrayExt.findFirstIndex(t,(e=>e.path===n));const r=this._items[o];const a=t[o];const l=this.renderer.getNameNode(r);const d=a.name;this._editNode.value=d;this._selectItem(o,false,true);const c=await he.userInputForRename(l,this._editNode,d);if(this.isDisposed){this._inRename=false;throw new Error("File browser is disposed.")}let p=c;if(!c||c===d){p=d}else if(!(0,h.isValidFileName)(c)){void(0,i.showErrorMessage)(this._trans.__("Rename Error"),Error(this._trans._p("showErrorMessage",'"%1" is not a valid name for a file. Names must have nonzero length, and cannot include "/", "\\", or ":"',c)));p=d}else{const e=this._manager;const t=s.PathExt.join(this._model.path,d);const n=s.PathExt.join(this._model.path,c);try{await(0,h.renameFile)(e,t,n)}catch(m){if(m!=="File not renamed"){void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Rename Error"),m)}p=d}if(this.isDisposed){this._inRename=false;throw new Error("File browser is disposed.")}}if(!this.isDisposed&&Object.keys(this.selection).length===1&&this.selection[a.path]){try{await this._selectItemByName(p,true,true)}catch(g){console.warn("After rename, failed to select file",p)}}this._inRename=false;return p}_selectItem(e,t,n=true){const i=this._sortedItems;if(!t){this.clearSelectedItems()}const s=i[e].path;this.selection[s]=true;if(n){this._focusItem(e)}this.update()}_onModelRefreshed(){const e=Object.keys(this.selection);this.clearSelectedItems();for(const t of this._model.items()){const n=t.path;if(e.indexOf(n)!==-1){this.selection[n]=true}}if(this.isVisible){this.sort(this.sortState)}else{this._isDirty=true}}_onPathChanged(){this.clearSelectedItems();this.sort(this.sortState);requestAnimationFrame((()=>{this._focusItem(0)}))}_onFileChanged(e,t){const n=t.newValue;if(!n){return}const i=n.name;if(t.type!=="new"||!i){return}void this.selectItemByName(i).catch((()=>{}))}_onActivateRequested(e,t){const n=s.PathExt.dirname(t);if(n!==this._model.path){return}const i=s.PathExt.basename(t);this.selectItemByName(i).catch((()=>{}))}}(function(e){e.columns=[{id:"is_selected",className:W,itemClassName:W,minWidth:18,resizable:false,sortable:false,grow:0},{id:"name",className:U,itemClassName:B,minWidth:60,resizable:true,sortable:true,caretSide:"right",grow:3},{id:"last_modified",className:q,itemClassName:z,minWidth:60,resizable:true,sortable:true,caretSide:"left",grow:1},{id:"file_size",className:$,itemClassName:H,minWidth:60,resizable:true,sortable:true,caretSide:"left",grow:.5}];class t{constructor(){this.itemFactories={name:()=>{const e=document.createElement("span");const t=document.createElement("span");const n=document.createElement("span");t.className=F;n.className=O;e.className=B;e.appendChild(t);e.appendChild(n);return e},last_modified:()=>{const e=document.createElement("span");e.className=z;return e},file_size:()=>{const e=document.createElement("span");e.className=H;return e},is_selected:()=>this.createCheckboxWrapperNode()};this._modifiedColumnLastUpdate=new WeakMap;this._lastRenderedState=new WeakMap}createNode(){const e=document.createElement("div");const t=document.createElement("div");const n=document.createElement("ul");n.setAttribute("data-lm-dragscroll","true");n.className=R;t.className=D;e.appendChild(t);e.appendChild(n);e.tabIndex=-1;return e}populateHeaderNode(t,n,s,o){n=n||r.nullTranslator;const a=n.load("jupyterlab");const l={name:()=>this.createHeaderItemNode(a.__("Name")),last_modified:()=>this._createHeaderItemNodeWithSizes({small:a.__("Modified"),large:a.__("Last Modified")}),file_size:()=>this._createHeaderItemNodeWithSizes({small:a.__("Size"),large:a.__("File Size")}),is_selected:()=>this.createCheckboxWrapperNode({alwaysVisible:true,headerNode:true})};const d=e.columns.filter((e=>e.id==="name"||!(s===null||s===void 0?void 0:s.has(e.id))));for(const e of d){const n=l[e.id];const i=n();i.classList.add(e.className);const s=e.id===d[d.length-1].id;if(o){const t=o[e.id];if(!s){i.style.width=t+"px"}}t.appendChild(i);if(he.isResizable(e)&&!s){const n=document.createElement("div");n.classList.add(Q);n.dataset.column=e.id;t.appendChild(n)}}const c=i.DOMUtils.findElement(t,U);c.classList.add(Y);he.updateCaret(i.DOMUtils.findElement(c,L),"right","up")}handleHeaderClick(t,n){const s={direction:"ascending",key:"name"};const o=n.target;const r=e.columns.filter(he.isSortable);for(const e of r){const n=t.querySelector(`.${e.className}`);if(!n){continue}if(n.contains(o)){s.key=e.id;const o=i.DOMUtils.findElement(n,L);if(n.classList.contains(Y)){if(!n.classList.contains(se)){s.direction="descending";n.classList.add(se);he.updateCaret(o,e.caretSide,"down")}else{n.classList.remove(se);he.updateCaret(o,e.caretSide,"up")}}else{n.classList.remove(se);he.updateCaret(o,e.caretSide,"up")}n.classList.add(Y);for(const n of r){if(n.id===e.id){continue}const s=t.querySelector(`.${n.className}`);if(!s){continue}s.classList.remove(Y);s.classList.remove(se);const o=i.DOMUtils.findElement(s,L);he.updateCaret(o,n.caretSide)}return s}}return s}createItemNode(t,n){const i=document.createElement("li");for(const s of e.columns){if(s.id!="name"&&(t===null||t===void 0?void 0:t.has(s.id))){continue}const e=this.itemFactories[s.id];const o=e();i.appendChild(o);if(n){const e=n[s.id];o.style.width=e+"px"}}return i}createCheckboxWrapperNode(e){const t=document.createElement("label");t.classList.add(W);const n=document.createElement("input");n.type="checkbox";if(!(e===null||e===void 0?void 0:e.headerNode)){n.addEventListener("click",(e=>{e.preventDefault()}))}if(e===null||e===void 0?void 0:e.alwaysVisible){t.classList.add("jp-mod-visible")}else{n.tabIndex=-1}t.appendChild(n);return t}updateItemModified(e,t,n){const i=this._modifiedColumnLastUpdate.get(e);if((i===null||i===void 0?void 0:i.date)===t&&(i===null||i===void 0?void 0:i.style)===n){return}const o=new Date(t);const r=s.Time.formatHuman(o,n);const a=s.Time.format(o);e.textContent=r;e.title=a;this._modifiedColumnLastUpdate.set(e,{date:t,style:n})}updateItemNode(e,t,n,o,l,d,c,h){if(d){e.classList.add(Y)}n=n||S.DocumentRegistry.getDefaultTextFileType(o);const{icon:p,iconClass:m,name:g}=n;o=o||r.nullTranslator;const f=o.load("jupyterlab");const v=this._lastRenderedState.get(e);const _=JSON.stringify({name:t.name,selected:d,lastModified:t.last_modified,modifiedStyle:c,hiddenColumns:l,columnsSizes:h,fileSize:t.size});const b=i.DOMUtils.findElement(e,W);const y=b===null||b===void 0?void 0:b.querySelector('input[type="checkbox"]');if(y)y.checked=d!==null&&d!==void 0?d:false;if(v===_)return;this._lastRenderedState.set(e,_);const w=i.DOMUtils.findElement(e,F);const C=i.DOMUtils.findElement(e,O);const x=i.DOMUtils.findElement(e,B);let k=i.DOMUtils.findElement(e,z);let j=i.DOMUtils.findElement(e,H);const I=!(l===null||l===void 0?void 0:l.has("is_selected"));if(b&&!I){e.removeChild(b)}else if(I&&!b){const e=this.createCheckboxWrapperNode();x.insertAdjacentElement("beforebegin",e)}const E=!(l===null||l===void 0?void 0:l.has("last_modified"));if(k&&!E){e.removeChild(k)}else if(E&&!k){k=this.itemFactories.last_modified();x.insertAdjacentElement("afterend",k)}const M=!(l===null||l===void 0?void 0:l.has("file_size"));if(j&&!M){e.removeChild(j)}else if(M&&!j){j=this.itemFactories.file_size();(k!==null&&k!==void 0?k:x).insertAdjacentElement("afterend",j)}requestAnimationFrame((()=>{a.LabIcon.resolveElement({icon:p,iconClass:(0,a.classes)(m,"jp-Icon"),container:w,className:F,stylesheet:"listing"})}));let D=f.__("Name: %1",t.name);if(t.size!==null&&t.size!==undefined){const e=he.formatFileSize(t.size,1,1024);if(j){j.textContent=e}D+=f.__("\nSize: %1",he.formatFileSize(t.size,1,1024))}else if(j){j.textContent=""}if(t.path){const e=s.PathExt.dirname(t.path);if(e){D+=f.__("\nPath: %1",e.substr(0,50));if(e.length>50){D+="..."}}}if(t.created){D+=f.__("\nCreated: %1",s.Time.format(new Date(t.created)))}if(t.last_modified){D+=f.__("\nModified: %1",s.Time.format(new Date(t.last_modified)))}D+=f.__("\nWritable: %1",t.writable);e.title=D;e.setAttribute("data-file-type",g);if(t.name.startsWith(".")){e.setAttribute("data-is-dot","true")}else{e.removeAttribute("data-is-dot")}const A=!t.indices?[]:t.indices;let P=u.StringExt.highlight(t.name,A,T.h.mark);if(C){T.VirtualDOM.render(T.h.span(P),C)}if(y){let e;if(n.contentType==="directory"){e=d?f.__('Deselect directory "%1"',P):f.__('Select directory "%1"',P)}else{e=d?f.__('Deselect file "%1"',P):f.__('Select file "%1"',P)}y.setAttribute("aria-label",e);y.checked=d!==null&&d!==void 0?d:false}this.updateItemSize(e,t,c,h)}updateItemSize(t,n,s,o){if(o){for(const n of e.columns){const e=i.DOMUtils.findElement(t,n.itemClassName);if(!e){continue}const s=o[n.id];const r=s===null?"":s+"px";if(r!==e.style.width){e.style.width=r}}}let r=i.DOMUtils.findElement(t,z);if(n.last_modified&&r){this.updateItemModified(r,n.last_modified,s!==null&&s!==void 0?s:"short")}}getNameNode(e){return i.DOMUtils.findElement(e,O)}getCheckboxNode(e){return e.querySelector(`.${W} input[type=checkbox]`)}createDragImage(t,n,s,o){const r=t.cloneNode(true);const a=i.DOMUtils.findElement(r,F);const l=e.columns.filter((e=>e.id!=="name"));for(const e of l){const t=i.DOMUtils.findElement(r,e.itemClassName);if(!t){continue}r.removeChild(t)}if(!o){a.textContent="";a.className=""}else{a.textContent=o.iconLabel||"";a.className=o.iconClass||""}a.classList.add(X);if(n>1){const e=i.DOMUtils.findElement(r,O);e.textContent=s._n("%1 Item","%1 Items",n)}return r}createHeaderItemNode(e){const t=document.createElement("div");const n=document.createElement("span");const i=document.createElement("span");t.className=A;n.className=P;i.className=L;n.textContent=e;t.appendChild(n);t.appendChild(i);return t}_createHeaderItemNodeWithSizes(e){const t=document.createElement("div");t.className=A;const n=document.createElement("span");n.className=L;for(let i of Object.keys(e)){const n=document.createElement("span");n.classList.add(P,P+"-"+i);n.textContent=e[i];t.appendChild(n)}t.appendChild(n);return t}}e.Renderer=t;e.defaultRenderer=new t})(ce||(ce={}));var he;(function(e){function t(e,t,n){const i=e.parentElement;i.replaceChild(t,e);t.focus();const s=t.value.lastIndexOf(".");if(s===-1){t.setSelectionRange(0,t.value.length)}else{t.setSelectionRange(0,s)}return new Promise((s=>{t.onblur=()=>{i.replaceChild(e,t);s(t.value)};t.onkeydown=i=>{switch(i.keyCode){case 13:i.stopPropagation();i.preventDefault();t.blur();break;case 27:i.stopPropagation();i.preventDefault();t.value=n;t.blur();e.focus();break;default:break}}}))}e.userInputForRename=t;function n(e,t,n=false,i){const s=Array.from(e);const o=t.direction==="descending"?1:-1;function r(e,t){if(n){return e.type!==t.type}return e.type==="directory"!==(t.type==="directory")}function a(e){if(e.type==="directory"){return 2}if(e.type==="notebook"&&n){return 1}return 0}function l(e,t){var n;const s=navigator.language.split("@")[0];const o=((n=i.languageCode)!==null&&n!==void 0?n:s).replace("_","-");try{return e.name.localeCompare(t.name,o,{numeric:true,sensitivity:"base"})}catch(r){console.warn(`localeCompare failed to compare ${e.name} and ${t.name} under languageCode: ${o}`);return e.name.localeCompare(t.name,s,{numeric:true,sensitivity:"base"})}}function d(e){return(t,n)=>{if(r(t,n)){return a(n)-a(t)}const i=e(t,n);if(i!==0){return i*o}return l(t,n)}}if(t.key==="last_modified"){s.sort(d(((e,t)=>new Date(e.last_modified).getTime()-new Date(t.last_modified).getTime())))}else if(t.key==="file_size"){s.sort(d(((e,t)=>{var n,i;return((n=t.size)!==null&&n!==void 0?n:0)-((i=e.size)!==null&&i!==void 0?i:0)})))}else{s.sort(d(((e,t)=>l(t,e))))}return s}e.sort=n;e.isResizable=e=>"resizable"in e&&e.resizable;e.isSortable=e=>"sortable"in e&&e.sortable;function i(e,t){return u.ArrayExt.findFirstIndex(e,(e=>m.ElementExt.hitTest(e,t.clientX,t.clientY)||t.target===e))}e.hitTestNodes=i;function o(e,t,n){if(e===0){return"0 B"}const i=t||2;const s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];const o=Math.floor(Math.log(e)/Math.log(n));if(o>=0&&oe.readEntries(t,n)))}function g(e){return new Promise(((t,n)=>e.file(t,n)))}e.readFile=g;async function f(e){const t=[];let n=false;while(!n){const i=await p(e);if(i.length===0){n=true}else{t.push(...i)}}return t}e.collectEntries=f})(he||(he={}));const ue="jp-FileBrowser";const pe="jp-FileBrowser-Panel";const me="jp-FileBrowser-crumbs";const ge="jp-FileBrowser-toolbar";const fe="jp-FileBrowser-filterToolbar";const ve="jp-FileBrowser-listing";const _e="jp-FileBrowser-filterBox";class be extends a.SidePanel{constructor(e){var t;super({content:new l.Panel,translator:e.translator});this._directoryPending=null;this._filePending=null;this._fileFilterRef=(0,d.createRef)();this._allowSingleClick=false;this._showFileCheckboxes=false;this._showFileFilter=false;this._showFileSizeColumn=false;this._showHiddenFiles=false;this._showLastModifiedColumn=true;this._sortNotebooksFirst=false;this.addClass(ue);this.toolbar.addClass(ge);this.id=e.id;const n=this.translator=(t=e.translator)!==null&&t!==void 0?t:r.nullTranslator;const i=this.model=e.model;const s=e.renderer;i.connectionFailure.connect(this._onConnectionFailure,this);this._manager=i.manager;this.toolbar.node.setAttribute("aria-label",this._trans.__("file browser"));this.mainPanel=new l.Panel;this.mainPanel.addClass(pe);this.mainPanel.title.label=this._trans.__("File Browser");this.crumbs=new C({model:i,translator:n});this.crumbs.addClass(me);const o=(0,a.FilenameSearcher)({updateFilter:(e,t)=>{this.model.setFilter((t=>e(t.name.toLowerCase())))},useFuzzyFilter:this.model.useFuzzyFilter,placeholder:this._trans.__("Filter files by name"),forceRefresh:false,showIcon:false,inputRef:this._fileFilterRef,filterSettingsChanged:this.model.filterSettingsChanged});o.addClass(_e);this.filterToolbar=new a.Toolbar;this.filterToolbar.addClass(fe);this.filterToolbar.node.setAttribute("aria-label",this._trans.__("File browser toolbar"));this.filterToolbar.addItem("fileNameSearcher",o);this.filterToolbar.setHidden(!this.showFileFilter);this.listing=this.createDirListing({model:i,renderer:s,translator:n,state:e.state});this.listing.addClass(ve);this.mainPanel.addWidget(this.crumbs);this.mainPanel.addWidget(this.filterToolbar);this.mainPanel.addWidget(this.listing);this.addWidget(this.mainPanel);if(e.restore!==false){void i.restore(this.id)}void this.listing.restore(this.id)}get navigateToCurrentDirectory(){return this._navigateToCurrentDirectory}set navigateToCurrentDirectory(e){this._navigateToCurrentDirectory=e}get showLastModifiedColumn(){return this._showLastModifiedColumn}set showLastModifiedColumn(e){if(this.listing.setColumnVisibility){this.listing.setColumnVisibility("last_modified",e);this._showLastModifiedColumn=e}else{console.warn("Listing does not support toggling column visibility")}}get showFullPath(){return this.crumbs.fullPath}set showFullPath(e){this.crumbs.fullPath=e}get showFileSizeColumn(){return this._showFileSizeColumn}set showFileSizeColumn(e){if(this.listing.setColumnVisibility){this.listing.setColumnVisibility("file_size",e);this._showFileSizeColumn=e}else{console.warn("Listing does not support toggling column visibility")}}get showHiddenFiles(){return this._showHiddenFiles}set showHiddenFiles(e){this.model.showHiddenFiles(e);this._showHiddenFiles=e}get showFileCheckboxes(){return this._showFileCheckboxes}set showFileCheckboxes(e){if(this.listing.setColumnVisibility){this.listing.setColumnVisibility("is_selected",e);this._showFileCheckboxes=e}else{console.warn("Listing does not support toggling column visibility")}}get showFileFilter(){return this._showFileFilter}set showFileFilter(e){var t;const n=this.showFileFilter;if(n&&!e){if(this._fileFilterRef.current){this._fileFilterRef.current.value=""}this.model.setFilter((e=>({})));this.model.refresh().catch(console.warn)}this._showFileFilter=e;this.filterToolbar.setHidden(!this.showFileFilter);if(this.showFileFilter){(t=this._fileFilterRef.current)===null||t===void 0?void 0:t.focus()}}get sortNotebooksFirst(){return this._sortNotebooksFirst}set sortNotebooksFirst(e){if(this.listing.setNotebooksFirstSorting){this.listing.setNotebooksFirstSorting(e);this._sortNotebooksFirst=e}else{console.warn("Listing does not support sorting notebooks first")}}get singleClickNavigation(){return this._allowSingleClick}set singleClickNavigation(e){if(this.listing.setAllowSingleClickNavigation){this.listing.setAllowSingleClickNavigation(e);this._allowSingleClick=e}else{console.warn("Listing does not support single click navigation")}}selectedItems(){return this.listing.selectedItems()}async selectItemByName(e){await this.listing.selectItemByName(e)}clearSelectedItems(){this.listing.clearSelectedItems()}rename(){return this.listing.rename()}cut(){this.listing.cut()}copy(){this.listing.copy()}paste(){return this.listing.paste()}async _createNew(e){if(e.path){const t=this._manager.services.contents.localPath(e.path);e.path=this._toDrivePath(this.model.driveName,t)}try{const t=await this._manager.newUntitled(e);await this.listing.selectItemByName(t.name,true);await this.rename();return t}catch(t){void(0,i.showErrorMessage)(this._trans.__("Error"),t);throw t}}async createNewDirectory(){if(this._directoryPending){return this._directoryPending}this._directoryPending=this._createNew({path:this.model.path,type:"directory"});try{return await this._directoryPending}finally{this._directoryPending=null}}async createNewFile(e){if(this._filePending){return this._filePending}this._filePending=this._createNew({path:this.model.path,type:"file",ext:e.ext});try{return await this._filePending}finally{this._filePending=null}}delete(){return this.listing.delete()}duplicate(){return this.listing.duplicate()}download(){return this.listing.download()}async goUp(){return this.listing.goUp()}shutdownKernels(){return this.listing.shutdownKernels()}selectNext(){this.listing.selectNext()}selectPrevious(){this.listing.selectPrevious()}modelForClick(e){return this.listing.modelForClick(e)}createDirListing(e){return new ce(e)}_onConnectionFailure(e,t){if(t instanceof o.ServerConnection.ResponseError&&t.response.status===404){const e=this._trans.__("Directory not found");t.message=this._trans.__('Directory not found: "%1"',this.model.path);void(0,i.showErrorMessage)(e,t)}}_toDrivePath(e,t){if(e===""){return t}else{return`${e}:${s.PathExt.removeSlash(t)}`}}}var ye=n(26568);const we=1e4;const Ce=15*1024*1024;const xe=1024*1024;class Se{constructor(e){var t;this._connectionFailure=new E.Signal(this);this._fileChanged=new E.Signal(this);this._items=[];this._key="";this._pathChanged=new E.Signal(this);this._paths=new Set;this._pending=null;this._pendingPath=null;this._refreshed=new E.Signal(this);this._sessions=[];this._state=null;this._isDisposed=false;this._restored=new p.PromiseDelegate;this._uploads=[];this._uploadChanged=new E.Signal(this);this.manager=e.manager;this.translator=e.translator||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this._driveName=e.driveName||"";this._model={path:this.rootPath,name:s.PathExt.basename(this.rootPath),type:"directory",content:undefined,writable:false,created:"unknown",last_modified:"unknown",mimetype:"text/plain",format:"text"};this._state=e.state||null;const n=e.refreshInterval||we;const{services:i}=e.manager;i.contents.fileChanged.connect(this.onFileChanged,this);i.sessions.runningChanged.connect(this.onRunningChanged,this);this._unloadEventListener=e=>{if(this._uploads.length>0){const t=this._trans.__("Files still uploading");e.returnValue=t;return t}};window.addEventListener("beforeunload",this._unloadEventListener);this._poll=new ye.Poll({auto:(t=e.auto)!==null&&t!==void 0?t:true,name:"@jupyterlab/filebrowser:Model",factory:()=>this.cd("."),frequency:{interval:n,backoff:true,max:300*1e3},standby:e.refreshStandby||"when-hidden"})}get connectionFailure(){return this._connectionFailure}get driveName(){return this._driveName}get restored(){return this._restored.promise}get fileChanged(){return this._fileChanged}get path(){return this._model?this._model.path:""}get rootPath(){return this._driveName?this._driveName+":":""}get pathChanged(){return this._pathChanged}get refreshed(){return this._refreshed}get specs(){return this.manager.services.kernelspecs.specs}get isDisposed(){return this._isDisposed}get uploadChanged(){return this._uploadChanged}uploads(){return this._uploads[Symbol.iterator]()}dispose(){if(this.isDisposed){return}window.removeEventListener("beforeunload",this._unloadEventListener);this._isDisposed=true;this._poll.dispose();this._sessions.length=0;this._items.length=0;E.Signal.clearData(this)}items(){return this._items[Symbol.iterator]()}sessions(){return this._sessions[Symbol.iterator]()}async refresh(){await this._poll.refresh();await this._poll.tick;this._refreshed.emit(void 0)}async cd(e="."){if(e!=="."){e=this.manager.services.contents.resolvePath(this._model.path,e)}else{e=this._pendingPath||this._model.path}if(this._pending){if(e===this._pendingPath){return this._pending}await this._pending}const t=this.path;const n={content:true};this._pendingPath=e;if(t!==e){this._sessions.length=0}const i=this.manager.services;this._pending=i.contents.get(e,n).then((n=>{if(this.isDisposed){return}this.handleContents(n);this._pendingPath=null;this._pending=null;if(t!==e){if(this._state&&this._key){void this._state.save(this._key,{path:e})}this._pathChanged.emit({name:"path",oldValue:t,newValue:e})}this.onRunningChanged(i.sessions,i.sessions.running());this._refreshed.emit(void 0)})).catch((t=>{this._pendingPath=null;this._pending=null;if(t.response&&t.response.status===404&&e!=="/"){t.message=this._trans.__('Directory not found: "%1"',this._model.path);console.error(t);this._connectionFailure.emit(t);return this.cd("/")}else{this._connectionFailure.emit(t)}}));return this._pending}async download(e){const t=await this.manager.services.contents.getDownloadUrl(e);const n=document.createElement("a");n.href=t;n.download="";document.body.appendChild(n);n.click();document.body.removeChild(n);return void 0}async restore(e,t=true){const{manager:n}=this;const i=`file-browser-${e}:cwd`;const s=this._state;const o=!!this._key;if(o){return}this._key=i;if(!t||!s){this._restored.resolve(undefined);return}await n.services.ready;try{const e=await s.fetch(i);if(!e){this._restored.resolve(undefined);return}const t=e["path"];if(t){await this.cd("/")}const o=n.services.contents.localPath(t);await n.services.contents.get(t);await this.cd(o)}catch(r){await s.remove(i)}this._restored.resolve(undefined)}async upload(e,t){const n=s.PageConfig.getNotebookVersion();const i=n<[4,0,0]||n>=[5,1,0];const o=e.size>Ce;if(o&&!i){const t=this._trans.__("Cannot upload file (>%1 MB). %2",Ce/(1024*1024),e.name);console.warn(t);throw t}const r="File not uploaded";if(o&&!(await this._shouldUploadLarge(e))){throw"Cancelled large file upload"}await this._uploadCheckDisposed();await this.refresh();await this._uploadCheckDisposed();if(this._items.find((t=>t.name===e.name))&&!(await(0,h.shouldOverwrite)(e.name))){throw r}await this._uploadCheckDisposed();const a=i&&e.size>xe;return await this._upload(e,a,t)}async _shouldUploadLarge(e){const{button:t}=await(0,i.showDialog)({title:this._trans.__("Large file size warning"),body:this._trans.__("The file size is %1 MB. Do you still want to upload it?",Math.round(e.size/(1024*1024))),buttons:[i.Dialog.cancelButton({label:this._trans.__("Cancel")}),i.Dialog.warnButton({label:this._trans.__("Upload")})]});return t.accept}async _upload(e,t,n){let i=typeof n==="undefined"?this._model.path:n;i=i?i+"/"+e.name:e.name;const s=e.name;const o="file";const r="base64";const a=async(t,n)=>{await this._uploadCheckDisposed();const a=new FileReader;a.readAsDataURL(t);await new Promise(((t,n)=>{a.onload=t;a.onerror=t=>n(`Failed to upload "${e.name}":`+t)}));await this._uploadCheckDisposed();const l=a.result.split(",")[1];const d={type:o,format:r,name:s,chunk:n,content:l};return await this.manager.services.contents.save(i,d)};if(!t){try{return await a(e)}catch(c){u.ArrayExt.removeFirstWhere(this._uploads,(t=>e.name===t.path));throw c}}let l;let d={path:i,progress:0};this._uploadChanged.emit({name:"start",newValue:d,oldValue:null});for(let h=0;!l;h+=xe){const t=h+xe;const n=t>=e.size;const s=n?-1:t/xe;const o={path:i,progress:h/e.size};this._uploads.splice(this._uploads.indexOf(d));this._uploads.push(o);this._uploadChanged.emit({name:"update",newValue:o,oldValue:d});d=o;let r;try{r=await a(e.slice(h,t),s)}catch(c){u.ArrayExt.removeFirstWhere(this._uploads,(t=>e.name===t.path));this._uploadChanged.emit({name:"failure",newValue:d,oldValue:null});throw c}if(n){l=r}}this._uploads.splice(this._uploads.indexOf(d));this._uploadChanged.emit({name:"finish",newValue:null,oldValue:d});return l}_uploadCheckDisposed(){if(this.isDisposed){return Promise.reject("Filemanager disposed. File upload canceled")}return Promise.resolve()}handleContents(e){this._model={name:e.name,path:e.path,type:e.type,content:undefined,writable:e.writable,created:e.created,last_modified:e.last_modified,size:e.size,mimetype:e.mimetype,format:e.format};this._items=e.content;this._paths.clear();e.content.forEach((e=>{this._paths.add(e.path)}))}onRunningChanged(e,t){this._populateSessions(t);this._refreshed.emit(void 0)}onFileChanged(e,t){const n=this._model.path;const{sessions:i}=this.manager.services;const{oldValue:o,newValue:r}=t;const a=this.driveName.length>0?this.driveName+":":"";const l=o&&o.path&&a+s.PathExt.dirname(o.path)===n?o:r&&r.path&&a+s.PathExt.dirname(r.path)===n?r:undefined;if(l){void this._poll.refresh();this._populateSessions(i.running());this._fileChanged.emit(t);return}}_populateSessions(e){this._sessions.length=0;for(const t of e){if(this._paths.has(t.path)){this._sessions.push(t)}}}}class ke extends Se{constructor(e){super(e);this._includeHiddenFiles=e.includeHiddenFiles||false}items(){return this._includeHiddenFiles?super.items():(0,u.filter)(super.items(),(e=>!e.name.startsWith(".")))}showHiddenFiles(e){this._includeHiddenFiles=e;void this.refresh()}}class je extends ke{constructor(e){var t,n,i;super(e);this._filterSettingsChanged=new E.Signal(this);this._filter=(t=e.filter)!==null&&t!==void 0?t:e=>({});this._filterDirectories=(n=e.filterDirectories)!==null&&n!==void 0?n:true;this._useFuzzyFilter=(i=e.useFuzzyFilter)!==null&&i!==void 0?i:true}get filterDirectories(){return this._filterDirectories}set filterDirectories(e){this._filterDirectories=e}get useFuzzyFilter(){return this._useFuzzyFilter}set useFuzzyFilter(e){if(this._useFuzzyFilter===e){return}this._useFuzzyFilter=e;this._filterSettingsChanged.emit({useFuzzyFilter:e})}get filterSettingsChanged(){return this._filterSettingsChanged}items(){return(0,u.filter)(super.items(),(e=>{if(!this._filterDirectories&&e.type==="directory"){return true}else{const t=this._filter(e);e.indices=t===null||t===void 0?void 0:t.indices;return!!t}}))}setFilter(e){this._filter=e;void this.refresh()}}const Ie="jp-Open-Dialog";const Ee="jp-Open-Dialog-label";var Te;(function(e){async function t(e){const t=e.translator||r.nullTranslator;const n=t.load("jupyterlab");const s=new Me(e.manager,e.filter,t,e.defaultPath,e.label);const o={title:e.title,buttons:[i.Dialog.cancelButton(),i.Dialog.okButton({label:n.__("Select")})],focusNodeSelector:e.focusNodeSelector,host:e.host,renderer:e.renderer,body:s};await s.ready;const a=new i.Dialog(o);return a.launch()}e.getOpenFiles=t;function n(e){return t({...e,filter:e=>e.type==="directory"?{}:null})}e.getExistingDirectory=n})(Te||(Te={}));class Me extends l.Widget{constructor(e,t,n,s,o,d){super();this._ready=new p.PromiseDelegate;n=n!==null&&n!==void 0?n:r.nullTranslator;const c=n.load("jupyterlab");this.addClass(Ie);De.createFilteredFileBrowser("filtered-file-browser-dialog",e,t,{},n,s,d).then((e=>{this._browser=e;(0,i.setToolbar)(this._browser,(e=>[{name:"new-folder",widget:new i.ToolbarButton({icon:a.newFolderIcon,onClick:()=>{void e.createNewDirectory()},tooltip:c.__("New Folder")})},{name:"refresher",widget:new i.ToolbarButton({icon:a.refreshIcon,onClick:()=>{e.model.refresh().catch((e=>{console.error("Failed to refresh file browser in open dialog.",e)}))},tooltip:c.__("Refresh File List")})}]));const t=new l.PanelLayout;if(o){const e=new l.Widget;e.addClass(Ee);e.node.textContent=o;t.addWidget(e)}t.addWidget(this._browser);this.dispose=()=>{if(this.isDisposed){return}this._browser.model.dispose();super.dispose()};this.layout=t;this._ready.resolve()})).catch((e=>{console.error("Error while creating file browser in open dialog",e);this._ready.reject(void 0)}))}getValue(){const e=Array.from(this._browser.selectedItems());if(e.length===0){return[{path:this._browser.model.path,name:s.PathExt.basename(this._browser.model.path),type:"directory",content:undefined,writable:false,created:"unknown",last_modified:"unknown",mimetype:"text/plain",format:"text"}]}else{return e}}get ready(){return this._ready.promise}}var De;(function(e){e.createFilteredFileBrowser=async(e,t,n,i={},s,o,a)=>{s=s||r.nullTranslator;const l=new je({manager:t,filter:n,translator:s,driveName:i.driveName,refreshInterval:i.refreshInterval,filterDirectories:a});const d=new be({id:e,model:l,translator:s});if(o){await d.model.cd(o)}return d}})(De||(De={}));const Ae=new p.Token("@jupyterlab/filebrowser:IFileBrowserFactory",`A factory object that creates file browsers.\n Use this if you want to create your own file browser (e.g., for a custom storage backend),\n or to interact with other file browsers that have been created by extensions.`);const Pe=new p.Token("@jupyterlab/filebrowser:IDefaultFileBrowser","A service for the default file browser.");const Le=new p.Token("@jupyterlab/filebrowser:IFileBrowserCommands","A token to ensure file browser commands are loaded.");class Re extends a.ToolbarButton{constructor(e){super({icon:a.fileUploadIcon,label:e.label,onClick:()=>{this._input.click()},tooltip:Ne.translateToolTip(e.translator)});this._onInputChanged=()=>{const e=Array.prototype.slice.call(this._input.files);const t=e.map((e=>this.fileBrowserModel.upload(e)));void Promise.all(t).catch((e=>{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Upload Error"),e)}))};this._onInputClicked=()=>{this._input.value=""};this._input=Ne.createUploadInput();this.fileBrowserModel=e.model;this.translator=e.translator||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this._input.onclick=this._onInputClicked;this._input.onchange=this._onInputChanged;this.addClass("jp-id-upload")}}var Ne;(function(e){function t(){const e=document.createElement("input");e.type="file";e.multiple=true;return e}e.createUploadInput=t;function n(e){e=e||r.nullTranslator;const t=e.load("jupyterlab");return t.__("Upload Files")}e.translateToolTip=n})(Ne||(Ne={}));var Oe=n(24735);const Be=4;function Fe(e){const t=e.translator||r.nullTranslator;const n=t.load("jupyterlab");return c().createElement(Oe.GroupItem,{spacing:Be},c().createElement(Oe.TextItem,{source:n.__("Uploading…")}),c().createElement(Oe.ProgressBar,{percentage:e.upload}))}const ze=2e3;class He extends a.VDomRenderer{constructor(e){super(new He.Model(e.tracker.currentWidget&&e.tracker.currentWidget.model));this._onBrowserChange=(e,t)=>{if(t===null){this.model.browserModel=null}else{this.model.browserModel=t.model}};this.translator=e.translator||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this._tracker=e.tracker;this._tracker.currentChanged.connect(this._onBrowserChange)}render(){const e=this.model.items;if(e.length>0){const e=this.model.items[0];if(e.complete){return c().createElement(Oe.TextItem,{source:this._trans.__("Complete!")})}else{return c().createElement(Fe,{upload:this.model.items[0].progress,translator:this.translator})}}else{return c().createElement(Fe,{upload:100,translator:this.translator})}}dispose(){super.dispose();this._tracker.currentChanged.disconnect(this._onBrowserChange)}}(function(e){class t extends a.VDomModel{constructor(e){super();this._uploadChanged=(e,t)=>{if(t.name==="start"){this._items.push({path:t.newValue.path,progress:t.newValue.progress*100,complete:false})}else if(t.name==="update"){const e=u.ArrayExt.findFirstIndex(this._items,(e=>e.path===t.oldValue.path));if(e!==-1){this._items[e].progress=t.newValue.progress*100}}else if(t.name==="finish"){const e=u.ArrayExt.findFirstValue(this._items,(e=>e.path===t.oldValue.path));if(e){e.complete=true;setTimeout((()=>{u.ArrayExt.removeFirstOf(this._items,e);this.stateChanged.emit(void 0)}),ze)}}else if(t.name==="failure"){u.ArrayExt.removeFirstWhere(this._items,(e=>e.path===t.newValue.path))}this.stateChanged.emit(void 0)};this._items=[];this._browserModel=null;this.browserModel=e}get items(){return this._items}get browserModel(){return this._browserModel}set browserModel(e){const t=this._browserModel;if(t){t.uploadChanged.disconnect(this._uploadChanged)}this._browserModel=e;this._items=[];if(this._browserModel!==null){this._browserModel.uploadChanged.connect(this._uploadChanged)}this.stateChanged.emit(void 0)}}e.Model=t})(He||(He={}))},39063:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(38457);var a=n(79010);var l=n(41603);var d=n(85072);var c=n.n(d);var h=n(97825);var u=n.n(h);var p=n(77659);var m=n.n(p);var g=n(55056);var f=n.n(g);var v=n(10540);var _=n.n(v);var b=n(41113);var y=n.n(b);var w=n(96562);var C={};C.styleTagTransform=y();C.setAttributes=f();C.insert=m().bind(null,"head");C.domAPI=u();C.insertStyleElement=_();var x=c()(w.A,C);const S=w.A&&w.A.locals?w.A.locals:undefined},57256:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Commands:()=>E,default:()=>B,tabSpaceStatus:()=>A});var i=n(94307);var s=n(14366);var o=n(54723);var r=n(66899);var a=n(29939);var l=n(9155);var d=n(22441);var c=n(42875);var h=n(4341);var u=n(74955);var p=n(7243);var m=n(23899);var g=n(84739);var f=n(24735);var v=n(62149);var _=n(30619);var b=n(26331);var y=n(34236);var w=n(58285);var C=n(43370);var x=n(30397);const S="notebook:toggle-autoclosing-brackets";const k="console:toggle-autoclosing-brackets";var j;(function(e){e.createNew="fileeditor:create-new";e.createNewMarkdown="fileeditor:create-new-markdown-file";e.changeFontSize="fileeditor:change-font-size";e.lineNumbers="fileeditor:toggle-line-numbers";e.currentLineNumbers="fileeditor:toggle-current-line-numbers";e.lineWrap="fileeditor:toggle-line-wrap";e.currentLineWrap="fileeditor:toggle-current-line-wrap";e.changeTabs="fileeditor:change-tabs";e.matchBrackets="fileeditor:toggle-match-brackets";e.currentMatchBrackets="fileeditor:toggle-current-match-brackets";e.autoClosingBrackets="fileeditor:toggle-autoclosing-brackets";e.autoClosingBracketsUniversal="fileeditor:toggle-autoclosing-brackets-universal";e.createConsole="fileeditor:create-console";e.replaceSelection="fileeditor:replace-selection";e.restartConsole="fileeditor:restart-console";e.runCode="fileeditor:run-code";e.runAllCode="fileeditor:run-all";e.markdownPreview="fileeditor:markdown-preview";e.undo="fileeditor:undo";e.redo="fileeditor:redo";e.cut="fileeditor:cut";e.copy="fileeditor:copy";e.paste="fileeditor:paste";e.selectAll="fileeditor:select-all";e.invokeCompleter="completer:invoke-file";e.selectCompleter="completer:select-file";e.openCodeViewer="code-viewer:open";e.changeTheme="fileeditor:change-theme";e.changeLanguage="fileeditor:change-language";e.find="fileeditor:find";e.goToLine="fileeditor:go-to-line"})(j||(j={}));const I="Editor";var E;(function(e){let t={};let n=true;function i(e,t){return async function n(i,s){var o,r,a;const l=s||{};const d=await e.execute("console:create",{activate:l["activate"],name:(o=i.context.contentsModel)===null||o===void 0?void 0:o.name,path:i.context.path,preferredLanguage:i.context.model.defaultKernelLanguage||((a=(r=t.findByFileName(i.context.path))===null||r===void 0?void 0:r.name)!==null&&a!==void 0?a:""),ref:i.id,insertMode:"split-bottom"});i.context.pathChanged.connect(((e,t)=>{var n;d.session.setPath(t);d.session.setName((n=i.context.contentsModel)===null||n===void 0?void 0:n.name)}))}}function r(e,i){var s;t=(s=e.get("editorConfig").composite)!==null&&s!==void 0?s:{};n=e.get("scrollPasteEnd").composite;i.notifyCommandChanged(j.lineNumbers);i.notifyCommandChanged(j.currentLineNumbers);i.notifyCommandChanged(j.lineWrap);i.notifyCommandChanged(j.currentLineWrap);i.notifyCommandChanged(j.changeTabs);i.notifyCommandChanged(j.matchBrackets);i.notifyCommandChanged(j.currentMatchBrackets);i.notifyCommandChanged(j.autoClosingBrackets);i.notifyCommandChanged(j.changeLanguage)}e.updateSettings=r;function a(e){e.forEach((e=>{l(e.content)}))}e.updateTracker=a;function l(e){const i=e.editor;i.setOptions({...t,scrollPastEnd:n})}e.updateWidget=l;function d(e,n,r,a,l,d,c,m,g,f,v,_){var y;e.addCommand(j.changeFontSize,{execute:e=>{var i;const s=Number(e["delta"]);if(Number.isNaN(s)){console.error(`${j.changeFontSize}: delta arg must be a number`);return}const o=window.getComputedStyle(document.documentElement);const r=parseInt(o.getPropertyValue("--jp-code-font-size"),10);if(!t.customStyles){t.customStyles={}}const l=((i=t["customStyles"]["fontSize"])!==null&&i!==void 0?i:m.baseConfiguration["customStyles"]["fontSize"])||r;t.customStyles.fontSize=l+s;return n.set(a,"editorConfig",t).catch((e=>{console.error(`Failed to set ${a}: ${e.message}`)}))},label:e=>{const t=Number(e["delta"]);if(Number.isNaN(t)){console.error(`${j.changeFontSize}: delta arg must be a number`)}if(t>0){return e.isMenu?r.__("Increase Text Editor Font Size"):r.__("Increase Font Size")}else{return e.isMenu?r.__("Decrease Text Editor Font Size"):r.__("Decrease Font Size")}}});e.addCommand(j.lineNumbers,{execute:async()=>{var e;t.lineNumbers=!((e=t.lineNumbers)!==null&&e!==void 0?e:m.baseConfiguration.lineNumbers);try{return await n.set(a,"editorConfig",t)}catch(i){console.error(`Failed to set ${a}: ${i.message}`)}},isEnabled:l,isToggled:()=>{var e;return(e=t.lineNumbers)!==null&&e!==void 0?e:m.baseConfiguration.lineNumbers},label:r.__("Show Line Numbers")});e.addCommand(j.currentLineNumbers,{label:r.__("Show Line Numbers"),caption:r.__("Show the line numbers for the current file."),execute:()=>{const e=d.currentWidget;if(!e){return}const t=!e.content.editor.getOption("lineNumbers");e.content.editor.setOption("lineNumbers",t)},isEnabled:l,isToggled:()=>{var e;const t=d.currentWidget;return(e=t===null||t===void 0?void 0:t.content.editor.getOption("lineNumbers"))!==null&&e!==void 0?e:false}});e.addCommand(j.lineWrap,{execute:async e=>{var i;t.lineWrap=(i=e["mode"])!==null&&i!==void 0?i:false;try{return await n.set(a,"editorConfig",t)}catch(s){console.error(`Failed to set ${a}: ${s.message}`)}},isEnabled:l,isToggled:e=>{var n,i;const s=(n=e["mode"])!==null&&n!==void 0?n:false;return s===((i=t.lineWrap)!==null&&i!==void 0?i:m.baseConfiguration.lineWrap)},label:r.__("Word Wrap")});e.addCommand(j.currentLineWrap,{label:r.__("Wrap Words"),caption:r.__("Wrap words for the current file."),execute:()=>{const e=d.currentWidget;if(!e){return}const t=e.content.editor.getOption("lineWrap");e.content.editor.setOption("lineWrap",!t)},isEnabled:l,isToggled:()=>{var e;const t=d.currentWidget;return(e=t===null||t===void 0?void 0:t.content.editor.getOption("lineWrap"))!==null&&e!==void 0?e:false}});e.addCommand(j.changeTabs,{label:e=>{var t;if(e.size){return r._p("v4","Spaces: %1",(t=e.size)!==null&&t!==void 0?t:"")}else{return r.__("Indent with Tab")}},execute:async e=>{var i;t.indentUnit=e["size"]!==undefined?((i=e["size"])!==null&&i!==void 0?i:"4").toString():"Tab";try{return await n.set(a,"editorConfig",t)}catch(s){console.error(`Failed to set ${a}: ${s.message}`)}},isToggled:e=>{var n;const i=(n=t.indentUnit)!==null&&n!==void 0?n:m.baseConfiguration.indentUnit;return e["size"]?e["size"]===i:"Tab"==i}});e.addCommand(j.matchBrackets,{execute:async()=>{var e;t.matchBrackets=!((e=t.matchBrackets)!==null&&e!==void 0?e:m.baseConfiguration.matchBrackets);try{return await n.set(a,"editorConfig",t)}catch(i){console.error(`Failed to set ${a}: ${i.message}`)}},label:r.__("Match Brackets"),isEnabled:l,isToggled:()=>{var e;return(e=t.matchBrackets)!==null&&e!==void 0?e:m.baseConfiguration.matchBrackets}});e.addCommand(j.currentMatchBrackets,{label:r.__("Match Brackets"),caption:r.__("Change match brackets for the current file."),execute:()=>{const e=d.currentWidget;if(!e){return}const t=!e.content.editor.getOption("matchBrackets");e.content.editor.setOption("matchBrackets",t)},isEnabled:l,isToggled:()=>{var e;const t=d.currentWidget;return(e=t===null||t===void 0?void 0:t.content.editor.getOption("matchBrackets"))!==null&&e!==void 0?e:false}});e.addCommand(j.autoClosingBrackets,{execute:async e=>{var i,s;t.autoClosingBrackets=!!((i=e["force"])!==null&&i!==void 0?i:!((s=t.autoClosingBrackets)!==null&&s!==void 0?s:m.baseConfiguration.autoClosingBrackets));try{return await n.set(a,"editorConfig",t)}catch(o){console.error(`Failed to set ${a}: ${o.message}`)}},label:r.__("Auto Close Brackets in Text Editor"),isToggled:()=>{var e;return(e=t.autoClosingBrackets)!==null&&e!==void 0?e:m.baseConfiguration.autoClosingBrackets}});e.addCommand(j.autoClosingBracketsUniversal,{execute:()=>{const t=e.isToggled(j.autoClosingBrackets)||e.isToggled(S)||e.isToggled(k);if(t){void e.execute(j.autoClosingBrackets,{force:false});void e.execute(S,{force:false});void e.execute(k,{force:false})}else{void e.execute(j.autoClosingBrackets,{force:true});void e.execute(S,{force:true});void e.execute(k,{force:true})}},label:r.__("Auto Close Brackets"),isToggled:()=>e.isToggled(j.autoClosingBrackets)||e.isToggled(S)||e.isToggled(k)});e.addCommand(j.changeTheme,{label:e=>{var n,i,s,o;return(o=(s=(i=(n=e.displayName)!==null&&n!==void 0?n:e.theme)!==null&&i!==void 0?i:t.theme)!==null&&s!==void 0?s:m.baseConfiguration.theme)!==null&&o!==void 0?o:r.__("Editor Theme")},execute:async e=>{var i;t.theme=(i=e["theme"])!==null&&i!==void 0?i:t.theme;try{return await n.set(a,"editorConfig",t)}catch(s){console.error(`Failed to set theme - ${s.message}`)}},isToggled:e=>{var n;return e["theme"]===((n=t.theme)!==null&&n!==void 0?n:m.baseConfiguration.theme)}});e.addCommand(j.find,{label:r.__("Find…"),execute:()=>{const e=d.currentWidget;if(!e){return}const t=e.content.editor;t.execCommand(C.findNext)},isEnabled:l});e.addCommand(j.goToLine,{label:r.__("Go to Line…"),execute:e=>{const t=d.currentWidget;if(!t){return}const n=t.content.editor;const i=e["line"];const s=e["column"];if(i!==undefined||s!==undefined){n.setCursorPosition({line:(i!==null&&i!==void 0?i:1)-1,column:(s!==null&&s!==void 0?s:1)-1})}else{n.execCommand(C.gotoLine)}},isEnabled:l});e.addCommand(j.changeLanguage,{label:e=>{var t,n;return(n=(t=e["displayName"])!==null&&t!==void 0?t:e["name"])!==null&&n!==void 0?n:r.__("Change editor language.")},execute:e=>{var t;const n=e["name"];const i=d.currentWidget;if(n&&i){const e=g.findByName(n);if(e){if(Array.isArray(e.mime)){i.content.model.mimeType=(t=e.mime[0])!==null&&t!==void 0?t:o.IEditorMimeTypeService.defaultMimeType}else{i.content.model.mimeType=e.mime}}}},isEnabled:l,isToggled:e=>{const t=d.currentWidget;if(!t){return false}const n=t.content.model.mimeType;const i=g.findByMIME(n);const s=i&&i.name;return e["name"]===s}});e.addCommand(j.replaceSelection,{execute:e=>{var t,n;const i=e["text"]||"";const s=d.currentWidget;if(!s){return}(n=(t=s.content.editor).replaceSelection)===null||n===void 0?void 0:n.call(t,i)},isEnabled:l,label:r.__("Replace Selection in Editor")});e.addCommand(j.createConsole,{execute:t=>{const n=d.currentWidget;if(!n){return}return i(e,g)(n,t)},isEnabled:l,icon:b.consoleIcon,label:r.__("Create Console for Editor")});e.addCommand(j.restartConsole,{execute:async()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t||f===null){return}const n=f.find((e=>{var n;return((n=e.sessionContext.session)===null||n===void 0?void 0:n.path)===t.context.path}));if(n){return v.restart(n.sessionContext)}},label:r.__("Restart Kernel"),isEnabled:()=>f!==null&&l()});e.addCommand(j.runCode,{execute:()=>{var t;const n=(t=d.currentWidget)===null||t===void 0?void 0:t.content;if(!n){return}let i="";const s=n.editor;const o=n.context.path;const r=x.PathExt.extname(o);const a=s.getSelection();const{start:l,end:c}=a;let h=l.column!==c.column||l.line!==c.line;if(h){const e=s.getOffsetAt(a.start);const t=s.getOffsetAt(a.end);i=s.model.sharedModel.getSource().substring(e,t)}else if(x.MarkdownCodeBlocks.isMarkdown(r)){const e=s.model.sharedModel.getSource();const t=x.MarkdownCodeBlocks.findMarkdownCodeBlocks(e);for(const n of t){if(n.startLine<=l.line&&l.line<=n.endLine){i=n.code;h=true;break}}}if(!h){i=s.getLine(a.start.line);const e=s.getCursorPosition();if(e.line+1===s.lineCount){const e=s.model.sharedModel.getSource();s.model.sharedModel.setSource(e+"\n")}s.setCursorPosition({line:e.line+1,column:e.column})}const u=false;if(i){return e.execute("console:inject",{activate:u,code:i,path:o})}else{return Promise.resolve(void 0)}},isEnabled:l,label:r.__("Run Selected Code")});e.addCommand(j.runAllCode,{execute:()=>{var t;const n=(t=d.currentWidget)===null||t===void 0?void 0:t.content;if(!n){return}let i="";const s=n.editor;const o=s.model.sharedModel.getSource();const r=n.context.path;const a=x.PathExt.extname(r);if(x.MarkdownCodeBlocks.isMarkdown(a)){const e=x.MarkdownCodeBlocks.findMarkdownCodeBlocks(o);for(const t of e){i+=t.code}}else{i=o}const l=false;if(i){return e.execute("console:inject",{activate:l,code:i,path:r})}else{return Promise.resolve(void 0)}},isEnabled:l,label:r.__("Run All Code")});e.addCommand(j.markdownPreview,{execute:()=>{const t=d.currentWidget;if(!t){return}const n=t.context.path;return e.execute("markdownviewer:open",{path:n,options:{mode:"split-right"}})},isVisible:()=>{const e=d.currentWidget;return e&&x.PathExt.extname(e.context.path)===".md"||false},icon:b.markdownIcon,label:r.__("Show Markdown Preview")});e.addCommand(j.createNew,{label:e=>{var t,n;if(e.isPalette){return(t=e.paletteLabel)!==null&&t!==void 0?t:r.__("New Text File")}return(n=e.launcherLabel)!==null&&n!==void 0?n:r.__("Text File")},caption:e=>{var t;return(t=e.caption)!==null&&t!==void 0?t:r.__("Create a new text file")},icon:e=>{var t;return e.isPalette?undefined:b.LabIcon.resolve({icon:(t=e.iconName)!==null&&t!==void 0?t:b.textEditorIcon})},execute:t=>{var n;const i=t.cwd||c.model.path;return p(e,i,(n=t.fileExt)!==null&&n!==void 0?n:"txt")}});e.addCommand(j.createNewMarkdown,{label:e=>e["isPalette"]?r.__("New Markdown File"):r.__("Markdown File"),caption:r.__("Create a new markdown file"),icon:e=>e["isPalette"]?undefined:b.markdownIcon,execute:t=>{const n=t["cwd"]||c.model.path;return p(e,n,"md")}});e.addCommand(j.undo,{execute:()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}t.editor.undo()},isEnabled:()=>{var e;if(!l()){return false}const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return false}return t.editor.model.sharedModel.canUndo()},icon:b.undoIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Undo")});e.addCommand(j.redo,{execute:()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}t.editor.redo()},isEnabled:()=>{var e;if(!l()){return false}const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return false}return t.editor.model.sharedModel.canRedo()},icon:b.redoIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Redo")});e.addCommand(j.cut,{execute:()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}const n=t.editor;const i=u(n);s.Clipboard.copyToSystem(i);n.replaceSelection&&n.replaceSelection("")},isEnabled:()=>{var e;if(!l()){return false}const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return false}return h(t.editor)},icon:b.cutIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Cut")});e.addCommand(j.copy,{execute:()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}const n=t.editor;const i=u(n);s.Clipboard.copyToSystem(i)},isEnabled:()=>{var e;if(!l()){return false}const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return false}return h(t.editor)},icon:b.copyIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Copy")});e.addCommand(j.paste,{execute:async()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}const n=t.editor;const i=window.navigator.clipboard;const s=await i.readText();if(s){n.replaceSelection&&n.replaceSelection(s)}},isEnabled:()=>{var e;return Boolean(l()&&((e=d.currentWidget)===null||e===void 0?void 0:e.content))},icon:b.pasteIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Paste")});e.addCommand(j.selectAll,{execute:()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}const n=t.editor;n.execCommand(w.selectAll)},isEnabled:()=>{var e;return Boolean(l()&&((e=d.currentWidget)===null||e===void 0?void 0:e.content))},label:r.__("Select All")});const I=[j.lineNumbers,j.currentLineNumbers,j.lineWrap,j.currentLineWrap,j.matchBrackets,j.currentMatchBrackets,j.find,j.goToLine,j.changeLanguage,j.replaceSelection,j.createConsole,j.restartConsole,j.runCode,j.runAllCode,j.undo,j.redo,j.cut,j.copy,j.paste,j.selectAll,j.createConsole];const E=()=>{I.forEach((t=>e.notifyCommandChanged(t)))};d.currentChanged.connect(E);(y=_.currentChanged)===null||y===void 0?void 0:y.connect(E)}e.addCommands=d;function c(e,t,n,i){const s=(i!==null&&i!==void 0?i:_.nullTranslator).load("jupyterlab");e.addCommand(j.invokeCompleter,{label:s.__("Display the completion helper."),execute:()=>{const e=t.currentWidget&&t.currentWidget.id;if(e){return n.invoke(e)}}});e.addCommand(j.selectCompleter,{label:s.__("Select the completion suggestion."),execute:()=>{const e=t.currentWidget&&t.currentWidget.id;if(e){return n.select(e)}}});e.addKeyBinding({command:j.selectCompleter,keys:["Enter"],selector:".jp-FileEditor .jp-mod-completer-active"})}e.addCompleterCommands=c;function h(e){const t=e.getSelection();const{start:n,end:i}=t;const s=n.column!==i.column||n.line!==i.line;return s}function u(e){const t=e.getSelection();const n=e.getOffsetAt(t.start);const i=e.getOffsetAt(t.end);const s=e.model.sharedModel.getSource().substring(n,i);return s}async function p(e,t,n="txt"){const i=await e.execute("docmanager:new-untitled",{path:t,type:"file",ext:n});if(i!=undefined){const t=await e.execute("docmanager:open",{path:i.path,factory:I});t.isUntitled=true;return t}}function m(e,t){g(e,t);f(e,t)}e.addLauncherItems=m;function g(e,t){e.add({command:j.createNew,category:t.__("Other"),rank:1})}e.addCreateNewToLauncher=g;function f(e,t){e.add({command:j.createNewMarkdown,category:t.__("Other"),rank:2})}e.addCreateNewMarkdownToLauncher=f;function v(e,t,n){for(let i of n){e.add({command:j.createNew,category:t.__("Other"),rank:3,args:i})}}e.addKernelLanguageLauncherItems=v;function E(e,t){T(e,t);M(e,t);D(e,t);A(e,t)}e.addPaletteItems=E;function T(e,t){const n=t.__("Text Editor");const i={size:4};const s=j.changeTabs;e.addItem({command:s,args:i,category:n});for(const o of[1,2,4,8]){const t={size:o};e.addItem({command:s,args:t,category:n})}}e.addChangeTabsCommandsToPalette=T;function M(e,t){const n=t.__("Text Editor");e.addItem({command:j.createNew,args:{isPalette:true},category:n})}e.addCreateNewCommandToPalette=M;function D(e,t){const n=t.__("Text Editor");e.addItem({command:j.createNewMarkdown,args:{isPalette:true},category:n})}e.addCreateNewMarkdownCommandToPalette=D;function A(e,t){const n=t.__("Text Editor");const i=j.changeFontSize;let s={delta:1};e.addItem({command:i,args:s,category:n});s={delta:-1};e.addItem({command:i,args:s,category:n})}e.addChangeFontSizeCommandsToPalette=A;function P(e,t,n){const i=t.__("Text Editor");for(let s of n){e.addItem({command:j.createNew,args:{...s,isPalette:true},category:i})}}e.addKernelLanguagePaletteItems=P;function L(e,t,n,i){e.editMenu.undoers.redo.add({id:j.redo,isEnabled:i});e.editMenu.undoers.undo.add({id:j.undo,isEnabled:i});e.viewMenu.editorViewers.toggleLineNumbers.add({id:j.currentLineNumbers,isEnabled:i});e.viewMenu.editorViewers.toggleMatchBrackets.add({id:j.currentMatchBrackets,isEnabled:i});e.viewMenu.editorViewers.toggleWordWrap.add({id:j.currentLineWrap,isEnabled:i});e.fileMenu.consoleCreators.add({id:j.createConsole,isEnabled:i});if(n){N(e,n,i)}}e.addMenuItems=L;function R(e,t){for(let n of t){e.fileMenu.newMenu.addItem({command:j.createNew,args:n,rank:31})}}e.addKernelLanguageMenuItems=R;function N(e,t,n){const i=e=>n()&&e.context&&!!t.find((t=>{var n;return((n=t.sessionContext.session)===null||n===void 0?void 0:n.path)===e.context.path}));e.runMenu.codeRunners.restart.add({id:j.restartConsole,isEnabled:i});e.runMenu.codeRunners.run.add({id:j.runCode,isEnabled:i});e.runMenu.codeRunners.runAll.add({id:j.runAllCode,isEnabled:i})}e.addCodeRunnersToRunMenu=N;function O(e,t,n,i){const r=async r=>{var a;const l=t.factoryService.newDocumentEditor;const d=e=>l(e);let c=r.mimeType;if(!c&&r.extension){c=t.mimeTypeService.getMimeTypeByFilePath(`temp.${r.extension.replace(/\\.$/,"")}`)}const h=o.CodeViewerWidget.createCodeViewer({factory:d,content:r.content,mimeType:c});h.title.label=r.label||i.__("Code Viewer");h.title.caption=h.title.label;const u=(0,y.find)(e.docRegistry.fileTypes(),(e=>c?e.mimeTypes.includes(c):false));h.title.icon=(a=u===null||u===void 0?void 0:u.icon)!==null&&a!==void 0?a:b.textEditorIcon;if(r.widgetId){h.id=r.widgetId}const p=new s.MainAreaWidget({content:h});await n.add(p);e.shell.add(p,"main");return h};e.commands.addCommand(j.openCodeViewer,{label:i.__("Open Code Viewer"),execute:e=>r(e)})}e.addOpenCodeViewerCommand=O})(E||(E={}));const T={id:"@jupyterlab/fileeditor-extension:editor-syntax-status",description:"Adds a file editor syntax status widget.",autoStart:true,requires:[h.IEditorTracker,r.IEditorLanguageRegistry,i.ILabShell,_.ITranslator],optional:[f.IStatusBar],activate:(e,t,n,i,s,o)=>{if(!o){return}const r=new h.EditorSyntaxStatus({commands:e.commands,languages:n,translator:s});i.currentChanged.connect((()=>{const e=i.currentWidget;if(e&&t.has(e)&&r.model){r.model.editor=e.content.editor}}));o.registerStatusItem(T.id,{item:r,align:"left",rank:0,isActive:()=>!!i.currentWidget&&!!t.currentWidget&&i.currentWidget===t.currentWidget})}};const M={activate:F,id:"@jupyterlab/fileeditor-extension:plugin",description:"Provides the file editor widget tracker.",requires:[h.IEditorWidgetFactory,o.IEditorServices,r.IEditorExtensionRegistry,r.IEditorLanguageRegistry,r.IEditorThemeRegistry,c.IDefaultFileBrowser,g.ISettingRegistry],optional:[l.IConsoleTracker,s.ICommandPalette,u.ILauncher,m.IMainMenu,i.ILayoutRestorer,s.ISessionContextDialogs,v.ITableOfContentsRegistry,_.ITranslator,b.IFormRendererRegistry],provides:h.IEditorTracker,autoStart:true};const D={id:"@jupyterlab/fileeditor-extension:widget-factory",description:"Provides the factory for creating file editors.",autoStart:true,requires:[o.IEditorServices,g.ISettingRegistry],optional:[s.IToolbarWidgetRegistry,_.ITranslator],provides:h.IEditorWidgetFactory,activate:(e,t,n,i,o)=>{const r=M.id;const a=o!==null&&o!==void 0?o:_.nullTranslator;const l=a.load("jupyterlab");let d;if(i){d=(0,s.createToolbarFactory)(i,n,I,r,a)}const c=new h.FileEditorFactory({editorServices:t,factoryOptions:{name:I,label:l.__("Editor"),fileTypes:["markdown","*"],defaultFor:["markdown","*"],toolbarFactory:d,translator:a}});e.docRegistry.addWidgetFactory(c);return c}};const A={id:"@jupyterlab/fileeditor-extension:tab-space-status",description:"Adds a file editor indentation status widget.",autoStart:true,requires:[h.IEditorTracker,r.IEditorExtensionRegistry,g.ISettingRegistry,_.ITranslator],optional:[f.IStatusBar],activate:(e,t,n,i,s,o)=>{const r=s.load("jupyterlab");if(!o){return}const a=new b.MenuSvg({commands:e.commands});const l="fileeditor:change-tabs";const{shell:d}=e;const c={name:r.__("Indent with Tab")};a.addItem({command:l,args:c});for(const h of["1","2","4","8"]){const e={size:h,name:r._p("v4","Spaces: %1",h)};a.addItem({command:l,args:e})}const u=new h.TabSpaceStatus({menu:a,translator:s});const p=e=>{var t,i,s;u.model.indentUnit=(s=(i=(t=e.get("editorConfig").composite)===null||t===void 0?void 0:t.indentUnit)!==null&&i!==void 0?i:n.baseConfiguration.indentUnit)!==null&&s!==void 0?s:null};void Promise.all([i.load("@jupyterlab/fileeditor-extension:plugin"),e.restored]).then((([e])=>{p(e);e.changed.connect(p)}));o.registerStatusItem("@jupyterlab/fileeditor-extension:tab-space-status",{item:u,align:"right",rank:1,isActive:()=>!!d.currentWidget&&t.has(d.currentWidget)})}};const P={id:"@jupyterlab/fileeditor-extension:cursor-position",description:"Adds a file editor cursor position status widget.",activate:(e,t,n)=>{n.addEditorProvider((e=>Promise.resolve(e&&t.has(e)?e.content.editor:null)))},requires:[h.IEditorTracker,o.IPositionModel],autoStart:true};const L={id:"@jupyterlab/fileeditor-extension:completer",description:"Adds the completer capability to the file editor.",requires:[h.IEditorTracker],optional:[a.ICompletionProviderManager,_.ITranslator,s.ISanitizer],activate:z,autoStart:true};const R={id:"@jupyterlab/fileeditor-extension:search",description:"Adds search capability to the file editor.",requires:[d.ISearchProviderRegistry],autoStart:true,activate:(e,t)=>{t.add("jp-fileeditorSearchProvider",h.FileEditorSearchProvider)}};const N={id:"@jupyterlab/fileeditor-extension:language-server",description:"Adds Language Server capability to the file editor.",requires:[h.IEditorTracker,p.ILSPDocumentConnectionManager,p.ILSPFeatureManager,p.ILSPCodeExtractorsManager,p.IWidgetLSPAdapterTracker],activate:H,autoStart:true};const O=[D,M,P,L,N,R,T,A];const B=O;function F(e,t,n,i,o,r,a,l,d,c,u,p,m,g,f,v,b){const y=M.id;const w=v!==null&&v!==void 0?v:_.nullTranslator;const C=g!==null&&g!==void 0?g:new s.SessionContextDialogs({translator:w});const x=w.load("jupyterlab");const S="editor";const{commands:k,restored:T,shell:D}=e;const A=new s.WidgetTracker({namespace:S});const P=()=>A.currentWidget!==null&&A.currentWidget===D.currentWidget;const L=new Map([["python",[{fileExt:"py",iconName:"ui-components:python",launcherLabel:x.__("Python File"),paletteLabel:x.__("New Python File"),caption:x.__("Create a new Python file")}]],["julia",[{fileExt:"jl",iconName:"ui-components:julia",launcherLabel:x.__("Julia File"),paletteLabel:x.__("New Julia File"),caption:x.__("Create a new Julia file")}]],["R",[{fileExt:"r",iconName:"ui-components:r-kernel",launcherLabel:x.__("R File"),paletteLabel:x.__("New R File"),caption:x.__("Create a new R file")}]]]);const R=async()=>{var t,n;const i=e.serviceManager.kernelspecs;await i.ready;let s=new Set;const o=(n=(t=i.specs)===null||t===void 0?void 0:t.kernelspecs)!==null&&n!==void 0?n:{};Object.keys(o).forEach((e=>{const t=o[e];if(t){const e=L.get(t.language);e===null||e===void 0?void 0:e.forEach((e=>s.add(e)))}}));return s};if(m){void m.restore(A,{command:"docmanager:open",args:e=>({path:e.context.path,factory:I}),name:e=>e.context.path})}Promise.all([l.load(y),T]).then((([e])=>{var t,n,i;if(p){const e=(t=p.viewMenu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-view-codemirror-language"})))===null||t===void 0?void 0:t.submenu;if(e){o.getLanguages().sort(((e,t)=>{const n=e.name;const i=t.name;return n.localeCompare(i)})).forEach((t=>{if(t.name.toLowerCase().indexOf("brainf")===0){return}e.addItem({command:j.changeLanguage,args:{...t}})}))}const s=(n=p.settingsMenu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-settings-codemirror-theme"})))===null||n===void 0?void 0:n.submenu;if(s){for(const e of r.themes){s.addItem({command:j.changeTheme,args:{theme:e.name,displayName:(i=e.displayName)!==null&&i!==void 0?i:e.name}})}}p.editMenu.goToLiners.add({id:j.goToLine,isEnabled:e=>A.currentWidget!==null&&A.has(e)})}E.updateSettings(e,k);E.updateTracker(A);e.changed.connect((()=>{E.updateSettings(e,k);E.updateTracker(A)}))})).catch((e=>{console.error(e.message);E.updateTracker(A)}));if(b){const e=b.getRenderer("@jupyterlab/codemirror-extension:plugin.defaultConfig");if(e){b.addRenderer("@jupyterlab/fileeditor-extension:plugin.editorConfig",e)}}t.widgetCreated.connect(((e,t)=>{t.context.pathChanged.connect((()=>{void A.save(t)}));void A.add(t);E.updateWidget(t.content)}));A.widgetAdded.connect(((e,t)=>{E.updateWidget(t.content)}));E.addCommands(e.commands,l,x,y,P,A,a,i,o,d,C,e.shell);const N=new s.WidgetTracker({namespace:"codeviewer"});if(m){void m.restore(N,{command:j.openCodeViewer,args:e=>({content:e.content.content,label:e.content.title.label,mimeType:e.content.mimeType,widgetId:e.content.id}),name:e=>e.content.id})}E.addOpenCodeViewerCommand(e,n,N,x);if(u){E.addLauncherItems(u,x)}if(c){E.addPaletteItems(c,x)}if(p){E.addMenuItems(p,A,d,P)}R().then((e=>{if(u){E.addKernelLanguageLauncherItems(u,x,e)}if(c){E.addKernelLanguagePaletteItems(c,x,e)}if(p){E.addKernelLanguageMenuItems(p,e)}})).catch((e=>{console.error(e.message)}));if(f){f.add(new h.LaTeXTableOfContentsFactory(A));f.add(new h.MarkdownTableOfContentsFactory(A));f.add(new h.PythonTableOfContentsFactory(A))}return A}function z(e,t,n,i,o){if(!n){return}E.addCompleterCommands(e.commands,t,n,i);const r=e.serviceManager.sessions;const a=o!==null&&o!==void 0?o:new s.Sanitizer;const l=new Map;const d=async(e,t)=>{const i={editor:t.content.editor,widget:t};await n.updateCompleter(i);const s=(e,i)=>{const s=l.get(t.id);const o=(0,y.find)(i,(e=>e.path===t.context.path));if(o){if(s&&s.id===o.id){return}if(s){l.delete(t.id);s.dispose()}const e=r.connectTo({model:o});const i={editor:t.content.editor,widget:t,session:e,sanitizer:a};n.updateCompleter(i).catch(console.error);l.set(t.id,e)}else{if(s){l.delete(t.id);s.dispose()}}};s(r,Array.from(r.running()));r.runningChanged.connect(s);t.disposed.connect((()=>{r.runningChanged.disconnect(s);const e=l.get(t.id);if(e){l.delete(t.id);e.dispose()}}))};t.widgetAdded.connect(d);n.activeProvidersChanged.connect((()=>{t.forEach((e=>{d(t,e).catch(console.error)}))}))}function H(e,t,n,i,s,o){t.widgetAdded.connect((async(t,r)=>{const a=new h.FileEditorAdapter(r,{connectionManager:n,featureManager:i,foreignCodeExtractorsManager:s,docRegistry:e.docRegistry});o.add(a)}))}},61689:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(97913);var a=n(17325);var l=n(79010);var d=n(3579);var c=n(19562);var h=n(23359);var u=n(36060);var p=n(39063);var m=n(66731);var g=n(50286);var f=n(13137);var v=n(77748);var _=n(75797);var b=n(67996)},53062:(e,t,n)=>{"use strict";n.r(t);n.d(t,{EditorSyntaxStatus:()=>x,EditorTableOfContentsFactory:()=>I,FileEditor:()=>m,FileEditorAdapter:()=>r,FileEditorFactory:()=>f,FileEditorSearchProvider:()=>v,FileEditorWidget:()=>g,IEditorTracker:()=>O,IEditorWidgetFactory:()=>B,LaTeXTableOfContentsFactory:()=>D,LaTeXTableOfContentsModel:()=>M,MarkdownTableOfContentsFactory:()=>P,MarkdownTableOfContentsModel:()=>A,PythonTableOfContentsFactory:()=>N,PythonTableOfContentsModel:()=>R,TabSpaceStatus:()=>k});var i=n(54723);var s=n(7243);var o=n(5592);class r extends s.WidgetLSPAdapter{constructor(e,t){const{docRegistry:n,...i}=t;super(e,i);this._readyDelegate=new o.PromiseDelegate;this.editor=e.content;this._docRegistry=n;this._virtualEditor=Object.freeze({getEditor:()=>this.editor.editor,ready:()=>Promise.resolve(this.editor.editor),reveal:()=>Promise.resolve(this.editor.editor)});Promise.all([this.editor.context.ready,this.connectionManager.ready]).then((async()=>{await this.initOnceReady();this._readyDelegate.resolve();this._editorAdded.emit({editor:this._virtualEditor})})).catch(console.error)}get ready(){return this._readyDelegate.promise}get documentPath(){return this.widget.context.path}get mimeType(){var e;const t=this.editor.model.mimeType;const n=Array.isArray(t)?(e=t[0])!==null&&e!==void 0?e:i.IEditorMimeTypeService.defaultMimeType:t;const s=this.editor.context.contentsModel;if(n!=i.IEditorMimeTypeService.defaultMimeType){return n}else if(s){let e=this._docRegistry.getFileTypeForModel(s);return e.mimeTypes[0]}else{return n}}get languageFileExtension(){let e=this.documentPath.split(".");return e[e.length-1]}get ceEditor(){return this.editor.editor}get activeEditor(){return this._virtualEditor}get wrapperElement(){return this.widget.node}get path(){return this.widget.context.path}get editors(){var e,t;return[{ceEditor:this._virtualEditor,type:"code",value:(t=(e=this.editor)===null||e===void 0?void 0:e.model.sharedModel.getSource())!==null&&t!==void 0?t:""}]}dispose(){if(this.isDisposed){return}this._editorRemoved.emit({editor:this._virtualEditor});this.editor.model.mimeTypeChanged.disconnect(this.reloadConnection);super.dispose()}createVirtualDocument(){return new s.VirtualDocument({language:this.language,foreignCodeExtractors:this.options.foreignCodeExtractorsManager,path:this.documentPath,fileExtension:this.languageFileExtension,standalone:true,hasLspSupportedFile:true})}getEditorIndexAt(e){return 0}getEditorIndex(e){return 0}getEditorWrapper(e){return this.wrapperElement}async initOnceReady(){this.initVirtual();await this.connectDocument(this.virtualDocument,false);this.editor.model.mimeTypeChanged.connect(this.reloadConnection,this)}}var a=n(14366);var l=n(66899);var d=n(93037);var c=n(26331);var h=n(1143);const u="jpCodeRunner";const p="jpUndoer";class m extends h.Widget{constructor(e){super();this._ready=new o.PromiseDelegate;this.addClass("jp-FileEditor");const t=this._context=e.context;this._mimeTypeService=e.mimeTypeService;const n=this._editorWidget=new i.CodeEditorWrapper({factory:e.factory,model:t.model,editorOptions:{config:m.defaultEditorConfig}});this._editorWidget.addClass("jp-FileEditorCodeWrapper");this._editorWidget.node.dataset[u]="true";this._editorWidget.node.dataset[p]="true";this.editor=n.editor;this.model=n.model;void t.ready.then((()=>{this._onContextReady()}));this._onPathChanged();t.pathChanged.connect(this._onPathChanged,this);const s=this.layout=new h.StackedLayout;s.addWidget(n)}get context(){return this._context}get ready(){return this._ready.promise}handleEvent(e){if(!this.model){return}switch(e.type){case"mousedown":this._ensureFocus();break;default:break}}onAfterAttach(e){super.onAfterAttach(e);const t=this.node;t.addEventListener("mousedown",this)}onBeforeDetach(e){const t=this.node;t.removeEventListener("mousedown",this)}onActivateRequest(e){this._ensureFocus()}_ensureFocus(){if(!this.editor.hasFocus()){this.editor.focus()}}_onContextReady(){if(this.isDisposed){return}this.editor.clearHistory();this._ready.resolve(undefined)}_onPathChanged(){const e=this.editor;const t=this._context.localPath;e.model.mimeType=this._mimeTypeService.getMimeTypeByFilePath(t)}}(function(e){e.defaultEditorConfig={lineNumbers:true,scrollPastEnd:true}})(m||(m={}));class g extends d.DocumentWidget{async setFragment(e){const t=e.split("=");if(t[0]!=="#line"){return}const n=t[1];let i;if(n.includes(",")){i=n.split(",")[0]||"0"}else{i=n}return this.context.ready.then((()=>{const e={line:parseInt(i,10),column:0};this.content.editor.setCursorPosition(e);this.content.editor.revealPosition(e)}))}}class f extends d.ABCWidgetFactory{constructor(e){super(e.factoryOptions);this._services=e.editorServices}createNewWidget(e){const t=this._services.factoryService.newDocumentEditor;const n=e=>t(e);const i=new m({factory:n,context:e,mimeTypeService:this._services.mimeTypeService});i.title.icon=c.textEditorIcon;const s=new g({content:i,context:e});return s}}class v extends l.EditorSearchProvider{constructor(e){super();this.widget=e;this._searchActive=false}get isReadOnly(){return this.editor.getOption("readOnly")}get replaceOptionsSupport(){return{preserveCase:true}}get editor(){return this.widget.content.editor}get model(){return this.widget.content.model}async startQuery(e,t){this._searchActive=true;await super.startQuery(e,t);await this.highlightNext(true,{from:"selection-start",scroll:false,select:false})}async endQuery(){this._searchActive=false;await super.endQuery()}async onSharedModelChanged(e,t){if(this._searchActive){return super.onSharedModelChanged(e,t)}}static createNew(e,t){return new v(e)}static isApplicable(e){return e instanceof a.MainAreaWidget&&e.content instanceof m&&e.content.editor instanceof l.CodeMirrorEditor}getInitialQuery(){const e=this.editor;const t=e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to);return t}}var _=n(24735);var b=n(30619);var y=n(44914);var w=n.n(y);function C(e){return w().createElement(_.TextItem,{source:e.language,onClick:e.handleClick})}class x extends c.VDomRenderer{constructor(e){var t;super(new x.Model(e.languages));this._handleClick=()=>{const e=new h.Menu({commands:this._commands});const t="fileeditor:change-language";if(this._popup){this._popup.dispose()}this.model.languages.getLanguages().sort(((e,t)=>{var n,i;const s=(n=e.displayName)!==null&&n!==void 0?n:e.name;const o=(i=t.displayName)!==null&&i!==void 0?i:t.name;return s.localeCompare(o)})).forEach((n=>{var i;if(n.name.toLowerCase().indexOf("brainf")===0){return}const s={name:n.name,displayName:(i=n.displayName)!==null&&i!==void 0?i:n.name};e.addItem({command:t,args:s})}));this._popup=(0,_.showPopup)({body:e,anchor:this,align:"left"})};this._popup=null;this._commands=e.commands;this.translator=(t=e.translator)!==null&&t!==void 0?t:b.nullTranslator;const n=this.translator.load("jupyterlab");this.addClass("jp-mod-highlighted");this.title.caption=n.__("Change text editor syntax highlighting")}render(){if(!this.model){return null}return w().createElement(C,{language:this.model.language,handleClick:this._handleClick})}}(function(e){class t extends c.VDomModel{constructor(e){super();this.languages=e;this._onMIMETypeChange=(e,t)=>{var n;const s=this._language;const o=this.languages.findByMIME(t.newValue);this._language=(n=o===null||o===void 0?void 0:o.name)!==null&&n!==void 0?n:i.IEditorMimeTypeService.defaultMimeType;this._triggerChange(s,this._language)};this._language="";this._editor=null}get language(){return this._language}get editor(){return this._editor}set editor(e){var t;const n=this._editor;if(n!==null){n.model.mimeTypeChanged.disconnect(this._onMIMETypeChange)}const s=this._language;this._editor=e;if(this._editor===null){this._language=""}else{const e=this.languages.findByMIME(this._editor.model.mimeType);this._language=(t=e===null||e===void 0?void 0:e.name)!==null&&t!==void 0?t:i.IEditorMimeTypeService.defaultMimeType;this._editor.model.mimeTypeChanged.connect(this._onMIMETypeChange)}this._triggerChange(s,this._language)}_triggerChange(e,t){if(e!==t){this.stateChanged.emit(void 0)}}}e.Model=t})(x||(x={}));function S(e){const t=e.translator||b.nullTranslator;const n=t.load("jupyterlab");const i=typeof e.tabSpace==="number"?n.__("Spaces"):n.__("Tab Indent");return w().createElement(_.TextItem,{onClick:e.handleClick,source:typeof e.tabSpace==="number"?`${i}: ${e.tabSpace}`:i,title:n.__("Change the indentation…")})}class k extends c.VDomRenderer{constructor(e){super(new k.Model);this._popup=null;this._menu=e.menu;this.translator=e.translator||b.nullTranslator;this.addClass("jp-mod-highlighted")}render(){var e;if(!((e=this.model)===null||e===void 0?void 0:e.indentUnit)){return null}else{const e=this.model.indentUnit==="Tab"?null:parseInt(this.model.indentUnit,10);return w().createElement(S,{tabSpace:e,handleClick:()=>this._handleClick(),translator:this.translator})}}_handleClick(){const e=this._menu;if(this._popup){this._popup.dispose()}e.aboutToClose.connect(this._menuClosed,this);this._popup=(0,_.showPopup)({body:e,anchor:this,align:"right"});e.update()}_menuClosed(){this.removeClass("jp-mod-clicked")}}(function(e){class t extends c.VDomModel{get indentUnit(){return this._indentUnit}set indentUnit(e){if(e!==this._indentUnit){this._indentUnit=e;this.stateChanged.emit()}}}e.Model=t})(k||(k={}));var j=n(62149);class I extends j.TableOfContentsFactory{createNew(e,t){const n=super.createNew(e,t);const i=(t,n)=>{if(n){e.content.editor.setCursorPosition({line:n.line,column:0})}};n.activeHeadingChanged.connect(i);e.disposed.connect((()=>{n.activeHeadingChanged.disconnect(i)}));return n}}const E={part:1,chapter:1,section:1,subsection:2,subsubsection:3,paragraph:4,subparagraph:5};const T=/^\s*\\(section|subsection|subsubsection){(.+)}/;class M extends j.TableOfContentsModel{get documentType(){return"latex"}get supportedOptions(){return["maximalDepth","numberHeaders"]}getHeadings(){if(!this.isActive){return Promise.resolve(null)}const e=this.widget.content.model.sharedModel.getSource().split("\n");const t=new Array;let n=t.length;const i=new Array;for(let s=0;s0){s=n}const a=["from ","import "].includes(e[1]);if(a&&i){continue}i=a;const l=1+n/s;if(l>this.configuration.maximalDepth){continue}t.push({text:r.slice(n),level:l,line:o})}}return Promise.resolve(t)}}class N extends I{isApplicable(e){var t,n;const i=super.isApplicable(e);if(i){let i=(n=(t=e.content)===null||t===void 0?void 0:t.model)===null||n===void 0?void 0:n.mimeType;return i&&(i==="application/x-python-code"||i==="text/x-python")}return false}_createNew(e,t){return new R(e,t)}}const O=new o.Token("@jupyterlab/fileeditor:IEditorTracker",`A widget tracker for file editors.\n Use this if you want to be able to iterate over and interact with file editors\n created by the application.`);const B=new o.Token("@jupyterlab/fileeditor:IEditorWidgetFactory","A factory for creating file editors.")},77748:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(17325);var a=n(19562);var l=n(23359);var d=n(79010);var c=n(13137);var h=n(66731);var u=n(85072);var p=n.n(u);var m=n(97825);var g=n.n(m);var f=n(77659);var v=n.n(f);var _=n(55056);var b=n.n(_);var y=n(10540);var w=n.n(y);var C=n(41113);var x=n.n(C);var S=n(98561);var k={};k.styleTagTransform=x();k.setAttributes=b();k.insert=v().bind(null,"head");k.domAPI=g();k.insertStyleElement=w();var j=p()(S.A,k);const I=S.A&&S.A.locals?S.A.locals:undefined},97491:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>j});var i=n(94307);var s=n.n(i);var o=n(14366);var r=n.n(o);var a=n(30397);var l=n.n(a);var d=n(23899);var c=n.n(d);var h=n(30619);var u=n.n(h);var p=n(26331);var m=n.n(p);var g=n(44914);var f=n.n(g);var v;(function(e){e.open="help:open";e.about="help:about";e.activate="help:activate";e.close="help:close";e.show="help:show";e.hide="help:hide";e.jupyterForum="help:jupyter-forum";e.licenses="help:licenses";e.licenseReport="help:license-report";e.refreshLicenses="help:licenses-refresh"})(v||(v={}));const _=window.location.protocol==="https:";const b="jp-Help";const y={id:"@jupyterlab/help-extension:licenses-commands",autoStart:true,optional:[h.ITranslator],description:"Add licenses commands for backwards compatibility.",activate:(e,t)=>{const{commands:n}=e;const i=(t!==null&&t!==void 0?t:h.nullTranslator).load("jupyterlab");const s=i.__("Licenses");const o=i.__("Download All Licenses");const r=i.__("Refresh Licenses");const a="apputils:licenses";n.addCommand(v.licenses,{label:s,execute:e=>{console.warn(`The command ${v.licenses} is deprecated, use ${a} instead.`);return n.execute(a,e)}});const l="apputils:license-report";n.addCommand(v.licenseReport,{label:o,execute:e=>{console.warn(`The command ${v.licenseReport} is deprecated, use ${l} instead.`);return n.execute(l,e)}});const d="apputils:licenses-refresh";n.addCommand(v.refreshLicenses,{label:r,execute:e=>{console.warn(`The command ${v.refreshLicenses} is deprecated, use ${d} instead.`);return n.execute(d,e)}})}};const w={id:"@jupyterlab/help-extension:about",description:'Adds a "About" dialog feature.',autoStart:true,requires:[h.ITranslator],optional:[o.ICommandPalette],activate:(e,t,n)=>{const{commands:i}=e;const s=t.load("jupyterlab");const r=s.__("Help");i.addCommand(v.about,{label:s.__("About %1",e.name),execute:()=>{const t=s.__("Version %1",e.version);const n=g.createElement("span",{className:"jp-About-version-info"},g.createElement("span",{className:"jp-About-version"},t));const i=g.createElement("span",{className:"jp-About-header"},g.createElement(p.jupyterIcon.react,{margin:"7px 9.5px",height:"auto",width:"58px"}),g.createElement("div",{className:"jp-About-header-info"},g.createElement(p.jupyterlabWordmarkIcon.react,{height:"auto",width:"196px"}),n));const r="https://jupyter.org/about.html";const a="https://github.com/jupyterlab/jupyterlab/graphs/contributors";const l=g.createElement("span",{className:"jp-About-externalLinks"},g.createElement("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"jp-Button-flat"},s.__("CONTRIBUTOR LIST")),g.createElement("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"jp-Button-flat"},s.__("ABOUT PROJECT JUPYTER")));const d=g.createElement("span",{className:"jp-About-copyright"},s.__("© %1-%2 Project Jupyter Contributors",2015,2025));const c=g.createElement("div",{className:"jp-About-body"},l,d);return(0,o.showDialog)({title:i,body:c,buttons:[o.Dialog.cancelButton({label:s.__("Close")})]})}});if(n){n.addItem({command:v.about,category:r})}}};const C={id:"@jupyterlab/help-extension:jupyter-forum",description:"Adds command to open the Jupyter Forum website.",autoStart:true,requires:[h.ITranslator],optional:[o.ICommandPalette],activate:(e,t,n)=>{const{commands:i}=e;const s=t.load("jupyterlab");const o=s.__("Help");i.addCommand(v.jupyterForum,{label:s.__("Jupyter Forum"),execute:()=>{window.open("https://discourse.jupyter.org/c/jupyterlab")}});if(n){n.addItem({command:v.jupyterForum,category:o})}}};const x={id:"@jupyterlab/help-extension:open",description:"Add command to open websites as panel or browser tab.",autoStart:true,requires:[h.ITranslator],optional:[i.ILayoutRestorer],activate:(e,t,n)=>{const{commands:i,shell:s}=e;const r=t.load("jupyterlab");const l="help-doc";const d=new o.WidgetTracker({namespace:l});let c=0;function h(e,t){const n=new p.IFrame({sandbox:["allow-scripts","allow-forms"],loading:"lazy"});n.url=e;n.addClass(b);n.title.label=t;n.id=`${l}-${++c}`;const i=new o.MainAreaWidget({content:n});i.addClass("jp-Help");return i}i.addCommand(v.open,{label:e=>{var t;return(t=e["text"])!==null&&t!==void 0?t:r.__("Open the provided `url` in a tab.")},execute:e=>{const t=e["url"];const n=e["text"];const i=e["newBrowserTab"]||false;if(i||_&&a.URLExt.parse(t).protocol!=="https:"){window.open(t);return}const o=h(t,n);void d.add(o);s.add(o,"main");return o}});if(n){void n.restore(d,{command:v.open,args:e=>({url:e.content.url,text:e.content.title.label}),name:e=>e.content.url})}}};const S={id:"@jupyterlab/help-extension:resources",description:"Adds menu entries to Jupyter reference documentation websites.",autoStart:true,requires:[d.IMainMenu,h.ITranslator],optional:[i.ILabShell,o.ICommandPalette],activate:(e,t,n,i,s)=>{const r=n.load("jupyterlab");const a=r.__("Help");const{commands:l,serviceManager:d}=e;const c=[{text:r.__("JupyterLab Reference"),url:"https://jupyterlab.readthedocs.io/en/stable/"},{text:r.__("JupyterLab FAQ"),url:"https://jupyterlab.readthedocs.io/en/stable/getting_started/faq.html"},{text:r.__("Jupyter Reference"),url:"https://jupyter.org/documentation"},{text:r.__("Markdown Reference"),url:"https://commonmark.org/help/"}];c.sort(((e,t)=>e.text.localeCompare(t.text)));const h=t.helpMenu;const u=c.map((e=>({args:e,command:v.open})));h.addGroup(u,10);const p=new Map;const m=(e,t)=>{var n;if(!t.length){return}const s=t[t.length-1];if(!s.kernel||p.has(s.kernel.name)){return}const a=d.sessions.connectTo({model:s,kernelConnectionOptions:{handleComms:false}});void((n=a.kernel)===null||n===void 0?void 0:n.info.then((e=>{var t,n;const s=a.kernel.name;if(p.has(s)){return}const c=(n=(t=d.kernelspecs)===null||t===void 0?void 0:t.specs)===null||n===void 0?void 0:n.kernelspecs[s];if(!c){return}p.set(s,e);let u=false;const m=async()=>{const e=await l.execute("helpmenu:get-kernel");u=(e===null||e===void 0?void 0:e.name)===s};m().catch((e=>{console.error("Failed to get the kernel for the current widget.",e)}));if(i){i.currentChanged.connect(m)}const f=()=>u;const _=`help-menu-${s}:banner`;const b=c.display_name;const y=c.resources["logo-svg"]||c.resources["logo-64x64"];l.addCommand(_,{label:r.__("About the %1 Kernel",b),isVisible:f,isEnabled:f,execute:()=>{const t=g.createElement("img",{src:y,alt:r.__("Kernel Icon")});const n=g.createElement("span",{className:"jp-About-header"},t,g.createElement("div",{className:"jp-About-header-info"},b));const i=g.createElement("pre",null,e.banner);const s=g.createElement("div",{className:"jp-About-body"},i);return(0,o.showDialog)({title:n,body:s,buttons:[o.Dialog.cancelButton({label:r.__("Close")})]})}});h.addGroup([{command:_}],20);const w=[];(e.help_links||[]).forEach((e=>{const t=`help-menu-${s}:${e.text}`;l.addCommand(t,{label:l.label(v.open,e),isVisible:f,isEnabled:f,execute:()=>l.execute(v.open,e)});w.push({command:t})}));h.addGroup(w,21)})).then((()=>{a.dispose()})))};for(const o of d.sessions.running()){m(d.sessions,[o])}d.sessions.runningChanged.connect(m);if(s){c.forEach((e=>{s.addItem({args:e,command:v.open,category:a})}));s.addItem({args:{reload:true},command:"apputils:reset",category:a})}}};const k=[w,C,y,x,S];const j=k},34072:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(67996);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(31569);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},1951:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>y});var i=n(94307);var s=n.n(i);var o=n(14366);var r=n.n(o);var a=n(73961);var l=n.n(a);var d=n(84739);var c=n.n(d);var h=n(30619);var u=n.n(h);var p=n(26331);var m=n.n(p);const g="@jupyterlab/htmlviewer-extension:plugin";const f="HTML Viewer";var v;(function(e){e.trustHTML="htmlviewer:trust-html"})(v||(v={}));const _={activate:b,id:g,description:"Adds HTML file viewer and provides its tracker.",provides:a.IHTMLViewerTracker,requires:[h.ITranslator],optional:[o.ICommandPalette,i.ILayoutRestorer,d.ISettingRegistry,o.IToolbarWidgetRegistry],autoStart:true};function b(e,t,n,i,s,r){let l;const d=t.load("jupyterlab");if(r){r.addFactory(f,"refresh",(e=>a.ToolbarItems.createRefreshButton(e,t)));r.addFactory(f,"trust",(e=>a.ToolbarItems.createTrustButton(e,t)));if(s){l=(0,o.createToolbarFactory)(r,s,f,_.id,t)}}const c={name:"html",contentType:"file",fileFormat:"text",displayName:d.__("HTML File"),extensions:[".html"],mimeTypes:["text/html"],icon:p.html5Icon};e.docRegistry.addFileType(c);const h=new a.HTMLViewerFactory({name:f,label:d.__("HTML Viewer"),fileTypes:["html"],defaultFor:["html"],readOnly:true,toolbarFactory:l,translator:t});const u=new o.WidgetTracker({namespace:"htmlviewer"});if(i){void i.restore(u,{command:"docmanager:open",args:e=>({path:e.context.path,factory:"HTML Viewer"}),name:e=>e.context.path})}let m=false;if(s){const t=s.load(g);const n=e=>{m=e.get("trustByDefault").composite};Promise.all([t,e.restored]).then((([e])=>{n(e);e.changed.connect((e=>{n(e)}))})).catch((e=>{console.error(e.message)}))}e.docRegistry.addWidgetFactory(h);h.widgetCreated.connect(((t,n)=>{var i,s;void u.add(n);n.context.pathChanged.connect((()=>{void u.save(n)}));n.trustedChanged.connect((()=>{e.commands.notifyCommandChanged(v.trustHTML)}));n.trusted=m;n.title.icon=c.icon;n.title.iconClass=(i=c.iconClass)!==null&&i!==void 0?i:"";n.title.iconLabel=(s=c.iconLabel)!==null&&s!==void 0?s:""}));e.commands.addCommand(v.trustHTML,{label:d.__("Trust HTML File"),caption:d.__(`Whether the HTML file is trusted.\n Trusting the file allows scripts to run in it,\n which may result in security risks.\n Only enable for files you trust.`),isEnabled:()=>!!u.currentWidget,isToggled:()=>{const e=u.currentWidget;if(!e){return false}const t=e.content.sandbox;return t.indexOf("allow-scripts")!==-1},execute:()=>{const e=u.currentWidget;if(!e){return}e.trusted=!e.trusted}});u.currentChanged.connect((()=>{e.commands.notifyCommandChanged(v.trustHTML)}));if(n){n.addItem({command:v.trustHTML,category:d.__("File Operations")})}return u}const y=_},54336:(e,t,n)=>{"use strict";var i=n(40662);var s=n(97913);var o=n(79010);var r=n(3579);var a=n(10395);var l=n(85072);var d=n.n(l);var c=n(97825);var h=n.n(c);var u=n(77659);var p=n.n(u);var m=n(55056);var g=n.n(m);var f=n(10540);var v=n.n(f);var _=n(41113);var b=n.n(_);var y=n(20813);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.A,w);const x=y.A&&y.A.locals?y.A.locals:undefined},43947:(e,t,n)=>{"use strict";n.r(t);n.d(t,{HTMLViewer:()=>m,HTMLViewerFactory:()=>g,IHTMLViewerTracker:()=>s,ToolbarItems:()=>f});var i=n(5592);const s=new i.Token("@jupyterlab/htmlviewer:IHTMLViewerTracker",`A widget tracker for rendered HTML documents.\n Use this if you want to be able to iterate over and interact with HTML documents\n viewed by the application.`);var o=n(30397);var r=n(93037);var a=n(30619);var l=n(26331);var d=n(2336);var c=n(44914);const h=1e3;const u="jp-HTMLViewer";const p=e=>``;class m extends r.DocumentWidget{constructor(e){super({...e,content:new l.IFrame({sandbox:["allow-same-origin"],loading:"lazy"})});this._renderPending=false;this._parser=new DOMParser;this._monitor=null;this._objectUrl="";this._trustedChanged=new d.Signal(this);this.translator=e.translator||a.nullTranslator;this.content.addClass(u);void this.context.ready.then((()=>{this.update();this._monitor=new o.ActivityMonitor({signal:this.context.model.contentChanged,timeout:h});this._monitor.activityStopped.connect(this.update,this)}))}get trusted(){return this.content.sandbox.indexOf("allow-scripts")!==-1}set trusted(e){if(this.trusted===e){return}if(e){this.content.sandbox=v.trusted}else{this.content.sandbox=v.untrusted}this.update();this._trustedChanged.emit(e)}get trustedChanged(){return this._trustedChanged}dispose(){if(this._objectUrl){try{URL.revokeObjectURL(this._objectUrl)}catch(e){}}super.dispose()}onUpdateRequest(){if(this._renderPending){return}this._renderPending=true;void this._renderModel().then((()=>this._renderPending=false))}async _renderModel(){let e=this.context.model.toString();e=await this._setupDocument(e);const t=new Blob([e],{type:"text/html"});const n=this._objectUrl;this._objectUrl=URL.createObjectURL(t);this.content.url=this._objectUrl;if(n){try{URL.revokeObjectURL(n)}catch(i){}}return}async _setupDocument(e){const t=this._parser.parseFromString(e,"text/html");let n=t.querySelector("base");if(!n){n=t.createElement("base");t.head.insertBefore(n,t.head.firstChild)}const i=this.context.path;const s=await this.context.urlResolver.getDownloadUrl(i);n.href=s;n.target="_self";if(!this.trusted){const e=this.translator.load("jupyterlab");const n=e.__("Action disabled as the file is not trusted.");t.body.insertAdjacentHTML("beforeend",p({warning:n}))}return t.documentElement.innerHTML}}class g extends r.ABCWidgetFactory{createNewWidget(e){return new m({context:e})}defaultToolbarFactory(e){return[{name:"refresh",widget:f.createRefreshButton(e,this.translator)},{name:"trust",widget:f.createTrustButton(e,this.translator)}]}}var f;(function(e){function t(e,t){const n=(t!==null&&t!==void 0?t:a.nullTranslator).load("jupyterlab");return new l.ToolbarButton({icon:l.refreshIcon,onClick:async()=>{if(!e.context.model.dirty){await e.context.revert();e.update()}},tooltip:n.__("Rerender HTML Document")})}e.createRefreshButton=t;function n(e,t){return l.ReactWidget.create(c.createElement(v.TrustButtonComponent,{htmlDocument:e,translator:t}))}e.createTrustButton=n})(f||(f={}));var v;(function(e){e.untrusted=[];e.trusted=["allow-scripts","allow-popups"];function t(e){const t=e.translator||a.nullTranslator;const n=t.load("jupyterlab");return c.createElement(l.UseSignal,{signal:e.htmlDocument.trustedChanged,initialSender:e.htmlDocument},(()=>c.createElement(l.ToolbarButtonComponent,{className:"",onClick:()=>e.htmlDocument.trusted=!e.htmlDocument.trusted,tooltip:n.__(`Whether the HTML file is trusted.\nTrusting the file allows opening pop-ups and running scripts\nwhich may result in security risks.\nOnly enable for files you trust.`),label:e.htmlDocument.trusted?n.__("Distrust HTML"):n.__("Trust HTML")})))}e.TrustButtonComponent=t})(v||(v={}))},44031:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CommandIDs:()=>h,default:()=>f});var i=n(94307);var s=n.n(i);var o=n(14366);var r=n.n(o);var a=n(30397);var l=n.n(a);var d=n(30619);var c=n.n(d);var h;(function(e){e.controlPanel="hub:control-panel";e.logout="hub:logout";e.restart="hub:restart"})(h||(h={}));function u(e,t,n,i){const s=n.load("jupyterlab");const o=t.urls.hubHost||"";const r=t.urls.hubPrefix||"";const l=t.urls.hubUser||"";const d=t.urls.hubServerName||"";const c=t.urls.base;if(!r){return}console.debug("hub-extension: Found configuration ",{hubHost:o,hubPrefix:r});const u=a.URLExt.join(r,"spawn");let p=o+u;if(d){const e=a.URLExt.join(u,l,d);if(!e.startsWith(u)){throw new Error("Can only be used for spawn requests")}p=o+e}const{commands:m}=e;m.addCommand(h.restart,{label:s.__("Restart Server"),caption:s.__("Request that the Hub restart this server"),execute:()=>{window.open(p,"_blank")}});m.addCommand(h.controlPanel,{label:s.__("Hub Control Panel"),caption:s.__("Open the Hub control panel in a new browser tab"),execute:()=>{window.open(o+a.URLExt.join(r,"home"),"_blank")}});m.addCommand(h.logout,{label:s.__("Log Out"),caption:s.__("Log out of the Hub"),execute:()=>{window.location.href=o+a.URLExt.join(c,"logout")}});if(i){const e=s.__("Hub");i.addItem({category:e,command:h.controlPanel});i.addItem({category:e,command:h.logout})}}const p={activate:u,id:"@jupyterlab/hub-extension:plugin",description:"Registers commands related to the hub server",requires:[i.JupyterFrontEnd.IPaths,d.ITranslator],optional:[o.ICommandPalette],autoStart:true};const m={activate:()=>void 0,id:"@jupyterlab/hub-extension:menu",description:"Adds hub related commands to the menu.",autoStart:true};const g={id:"@jupyterlab/hub-extension:connectionlost",description:"Provides a service to be notified when the connection to the hub server is lost.",requires:[i.JupyterFrontEnd.IPaths,d.ITranslator],optional:[i.JupyterLab.IInfo],activate:(e,t,n,s)=>{const r=n.load("jupyterlab");const a=t.urls.hubPrefix||"";const l=t.urls.base;if(!a){return i.ConnectionLost}let d=false;const c=async(t,n)=>{if(d){return}d=true;if(s){s.isConnected=false}const i=await(0,o.showDialog)({title:r.__("Server unavailable or unreachable"),body:r.__("Your server at %1 is not running.\nWould you like to restart it?",l),buttons:[o.Dialog.okButton({label:r.__("Restart")}),o.Dialog.cancelButton({label:r.__("Dismiss")})]});if(s){s.isConnected=true}d=false;if(i.button.accept){await e.commands.execute(h.restart)}};return c},autoStart:true,provides:i.IConnectionLost};const f=[p,m,g]},19457:(e,t,n)=>{"use strict";var i=n(97913);var s=n(3579)},55575:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>_});var i=n(94307);var s=n.n(i);var o=n(14366);var r=n.n(o);var a=n(83275);var l=n.n(a);var d=n(30619);var c=n.n(d);var h;(function(e){e.resetImage="imageviewer:reset-image";e.zoomIn="imageviewer:zoom-in";e.zoomOut="imageviewer:zoom-out";e.flipHorizontal="imageviewer:flip-horizontal";e.flipVertical="imageviewer:flip-vertical";e.rotateClockwise="imageviewer:rotate-clockwise";e.rotateCounterclockwise="imageviewer:rotate-counterclockwise";e.invertColors="imageviewer:invert-colors"})(h||(h={}));const u=["png","gif","jpeg","bmp","ico","tiff"];const p="Image";const m="Image (Text)";const g=["svg","xbm"];const f=new RegExp(`[.](${g.join("|")})$`);const v={activate:b,description:"Adds image viewer and provide its tracker.",id:"@jupyterlab/imageviewer-extension:plugin",provides:a.IImageTracker,requires:[d.ITranslator],optional:[o.ICommandPalette,i.ILayoutRestorer],autoStart:true};const _=v;function b(e,t,n,i){const s=t.load("jupyterlab");const r="image-widget";function l(t,n){var i,s;n.context.pathChanged.connect((()=>{void v.save(n)}));void v.add(n);const o=e.docRegistry.getFileTypesForPath(n.context.path);if(o.length>0){n.title.icon=o[0].icon;n.title.iconClass=(i=o[0].iconClass)!==null&&i!==void 0?i:"";n.title.iconLabel=(s=o[0].iconLabel)!==null&&s!==void 0?s:""}}const d=new a.ImageViewerFactory({name:p,label:s.__("Image"),modelName:"base64",fileTypes:[...u,...g],defaultFor:u,readOnly:true});const c=new a.ImageViewerFactory({name:m,label:s.__("Image (Text)"),modelName:"text",fileTypes:g,defaultFor:g,readOnly:true});[d,c].forEach((t=>{e.docRegistry.addWidgetFactory(t);t.widgetCreated.connect(l)}));const v=new o.WidgetTracker({namespace:r});if(i){void i.restore(v,{command:"docmanager:open",args:e=>({path:e.context.path,factory:f.test(e.context.path)?m:p}),name:e=>e.context.path})}y(e,v,t);if(n){const e=s.__("Image Viewer");[h.zoomIn,h.zoomOut,h.resetImage,h.rotateClockwise,h.rotateCounterclockwise,h.flipHorizontal,h.flipVertical,h.invertColors].forEach((t=>{n.addItem({command:t,category:e})}))}return v}function y(e,t,n){var i;const s=n.load("jupyterlab");const{commands:o,shell:r}=e;function a(){return t.currentWidget!==null&&t.currentWidget===r.currentWidget}o.addCommand(h.zoomIn,{execute:d,label:s.__("Zoom In"),isEnabled:a});o.addCommand(h.zoomOut,{execute:c,label:s.__("Zoom Out"),isEnabled:a});o.addCommand(h.resetImage,{execute:u,label:s.__("Reset Image"),isEnabled:a});o.addCommand(h.rotateClockwise,{execute:p,label:s.__("Rotate Clockwise"),isEnabled:a});o.addCommand(h.rotateCounterclockwise,{execute:m,label:s.__("Rotate Counterclockwise"),isEnabled:a});o.addCommand(h.flipHorizontal,{execute:g,label:s.__("Flip image horizontally"),isEnabled:a});o.addCommand(h.flipVertical,{execute:f,label:s.__("Flip image vertically"),isEnabled:a});o.addCommand(h.invertColors,{execute:v,label:s.__("Invert Colors"),isEnabled:a});const l=()=>{Object.values(h).forEach((e=>o.notifyCommandChanged(e)))};t.currentChanged.connect(l);(i=r.currentChanged)===null||i===void 0?void 0:i.connect(l);function d(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.scale=n.scale>1?n.scale+.5:n.scale*2}}function c(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.scale=n.scale>1?n.scale-.5:n.scale/2}}function u(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.scale=1;n.colorinversion=0;n.resetRotationFlip()}}function p(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.rotateClockwise()}}function m(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.rotateCounterclockwise()}}function g(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.flipHorizontal()}}function f(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.flipVertical()}}function v(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.colorinversion+=1;n.colorinversion%=2}}}},43017:(e,t,n)=>{"use strict";var i=n(97913);var s=n(79010);var o=n(3579);var r=n(10395);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(70047);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},70496:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IImageTracker:()=>s,ImageViewer:()=>c,ImageViewerFactory:()=>h});var i=n(5592);const s=new i.Token("@jupyterlab/imageviewer:IImageTracker",`A widget tracker for images.\n Use this if you want to be able to iterate over and interact with images\n viewed by the application.`);var o=n(30397);var r=n(14366);var a=n(93037);var l=n(1143);const d="jp-ImageViewer";class c extends l.Widget{constructor(e){super();this._scale=1;this._matrix=[1,0,0,1];this._colorinversion=0;this._ready=new i.PromiseDelegate;this.context=e;this.node.tabIndex=0;this.addClass(d);this._img=document.createElement("img");this.node.appendChild(this._img);this._onTitleChanged();e.pathChanged.connect(this._onTitleChanged,this);void e.ready.then((()=>{if(this.isDisposed){return}const t=e.contentsModel;this._mimeType=t.mimetype;this._render();e.model.contentChanged.connect(this.update,this);e.fileChanged.connect(this.update,this);this._ready.resolve(void 0)}))}[r.Printing.symbol](){return()=>r.Printing.printWidget(this)}get ready(){return this._ready.promise}get scale(){return this._scale}set scale(e){if(e===this._scale){return}this._scale=e;this._updateStyle()}get colorinversion(){return this._colorinversion}set colorinversion(e){if(e===this._colorinversion){return}this._colorinversion=e;this._updateStyle()}dispose(){if(this._img.src){URL.revokeObjectURL(this._img.src||"")}super.dispose()}resetRotationFlip(){this._matrix=[1,0,0,1];this._updateStyle()}rotateCounterclockwise(){this._matrix=u.prod(this._matrix,u.rotateCounterclockwiseMatrix);this._updateStyle()}rotateClockwise(){this._matrix=u.prod(this._matrix,u.rotateClockwiseMatrix);this._updateStyle()}flipHorizontal(){this._matrix=u.prod(this._matrix,u.flipHMatrix);this._updateStyle()}flipVertical(){this._matrix=u.prod(this._matrix,u.flipVMatrix);this._updateStyle()}onUpdateRequest(e){if(this.isDisposed||!this.context.isReady){return}this._render()}onActivateRequest(e){this.node.focus()}_onTitleChanged(){this.title.label=o.PathExt.basename(this.context.localPath)}_render(){const e=this.context;const t=e.contentsModel;if(!t){return}const n=this._img.src||"";let i=e.model.toString();if(t.format==="base64"){this._img.src=`data:${this._mimeType};base64,${i}`}else{const e=new Blob([i],{type:this._mimeType});this._img.src=URL.createObjectURL(e)}URL.revokeObjectURL(n)}_updateStyle(){const[e,t,n,i]=this._matrix;const[s,o]=u.prodVec(this._matrix,[1,1]);const r=`matrix(${e}, ${t}, ${n}, ${i}, 0, 0) translate(${s<0?-100:0}%, ${o<0?-100:0}%) `;this._img.style.transform=`scale(${this._scale}) ${r}`;this._img.style.filter=`invert(${this._colorinversion})`}}class h extends a.ABCWidgetFactory{createNewWidget(e){const t=new c(e);const n=new a.DocumentWidget({content:t,context:e});return n}}var u;(function(e){function t([e,t,n,i],[s,o,r,a]){return[e*s+t*r,e*o+t*a,n*s+i*r,n*o+i*a]}e.prod=t;function n([e,t,n,i],[s,o]){return[e*s+t*o,n*s+i*o]}e.prodVec=n;e.rotateClockwiseMatrix=[0,1,-1,0];e.rotateCounterclockwiseMatrix=[0,-1,1,0];e.flipHMatrix=[-1,0,0,1];e.flipVMatrix=[1,0,0,-1]})(u||(u={}))},33389:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>S});var i=n(94307);var s=n.n(i);var o=n(14366);var r=n.n(o);var a=n(9155);var l=n.n(a);var d=n(65743);var c=n.n(d);var h=n(74955);var u=n.n(h);var p=n(80349);var m=n.n(p);var g=n(30619);var f=n.n(g);var v=n(26331);var _=n.n(v);var b;(function(e){e.open="inspector:open";e.close="inspector:close";e.toggle="inspector:toggle"})(b||(b={}));const y={id:"@jupyterlab/inspector-extension:inspector",description:"Provides the code introspection widget.",requires:[g.ITranslator],optional:[o.ICommandPalette,h.ILauncher,i.ILayoutRestorer],provides:d.IInspector,autoStart:true,activate:(e,t,n,i,s)=>{const r=t.load("jupyterlab");const{commands:a,shell:l}=e;const c=r.__("Live updating code documentation from the active kernel");const h=r.__("Contextual Help");const u="inspector";const p="jpInspector";const m=new o.WidgetTracker({namespace:u});function g(){return _&&!_.isDisposed}let f=null;let _;function y(e){var n;if(!g()){_=new o.MainAreaWidget({content:new d.InspectorPanel({translator:t})});_.id="jp-inspector";_.title.label=h;_.title.icon=v.inspectorIcon;void m.add(_);f=f&&!f.isDisposed?f:null;_.content.source=f;(n=_.content.source)===null||n===void 0?void 0:n.onEditorChange(e)}if(!_.isAttached){l.add(_,"main",{activate:false,mode:"split-right",type:"Inspector"})}l.activateById(_.id);document.body.dataset[p]="open";return _}function w(){_.dispose();delete document.body.dataset[p]}const C=r.__("Show Contextual Help");a.addCommand(b.open,{caption:c,isEnabled:()=>!_||_.isDisposed||!_.isAttached||!_.isVisible,label:C,icon:e=>e.isLauncher?v.inspectorIcon:undefined,execute:e=>{var t;const n=e&&e.text;const i=e&&e.refresh;if(g()&&i)(t=_.content.source)===null||t===void 0?void 0:t.onEditorChange(n);else y(n)}});const x=r.__("Hide Contextual Help");a.addCommand(b.close,{caption:c,isEnabled:()=>g(),label:x,icon:e=>e.isLauncher?v.inspectorIcon:undefined,execute:()=>w()});const S=r.__("Show Contextual Help");a.addCommand(b.toggle,{caption:c,label:S,isToggled:()=>g(),execute:e=>{if(g()){w()}else{const t=e&&e.text;y(t)}}});if(i){i.add({command:b.open,args:{isLauncher:true}})}if(n){n.addItem({command:b.toggle,category:S})}if(s){void s.restore(m,{command:b.toggle,name:()=>"inspector"})}const k=Object.defineProperty({},"source",{get:()=>!_||_.isDisposed?null:_.content.source,set:e=>{f=e&&!e.isDisposed?e:null;if(_&&!_.isDisposed){_.content.source=f}}});return k}};const w={id:"@jupyterlab/inspector-extension:consoles",description:"Adds code introspection support to consoles.",requires:[d.IInspector,a.IConsoleTracker,i.ILabShell],autoStart:true,activate:(e,t,n,i,s)=>{const o={};n.widgetAdded.connect(((e,t)=>{const n=t.console.sessionContext;const i=t.console.rendermime;const s=new d.KernelConnector({sessionContext:n});const r=new d.InspectionHandler({connector:s,rendermime:i});o[t.id]=r;const a=t.console.promptCell;r.editor=a&&a.editor;t.console.promptCellCreated.connect(((e,t)=>{r.editor=t&&t.editor}));t.disposed.connect((()=>{delete o[t.id];r.dispose()}))}));const r=e=>{if(e&&n.has(e)&&o[e.id]){t.source=o[e.id]}};i.currentChanged.connect(((e,t)=>r(t.newValue)));void e.restored.then((()=>r(i.currentWidget)))}};const C={id:"@jupyterlab/inspector-extension:notebooks",description:"Adds code introspection to notebooks.",requires:[d.IInspector,p.INotebookTracker,i.ILabShell],autoStart:true,activate:(e,t,n,i)=>{const s={};n.widgetAdded.connect(((e,t)=>{const n=t.sessionContext;const i=t.content.rendermime;const o=new d.KernelConnector({sessionContext:n});const r=new d.InspectionHandler({connector:o,rendermime:i});s[t.id]=r;const a=t.content.activeCell;r.editor=a&&a.editor;t.content.activeCellChanged.connect(((e,n)=>{void(n===null||n===void 0?void 0:n.ready.then((()=>{if(n===t.content.activeCell){r.editor=n.editor}})))}));t.disposed.connect((()=>{delete s[t.id];r.dispose()}))}));const o=e=>{if(e&&n.has(e)&&s[e.id]){t.source=s[e.id]}};i.currentChanged.connect(((e,t)=>o(t.newValue)));void e.restored.then((()=>o(i.currentWidget)))}};const x=[y,w,C];const S=x},45695:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(3579);var a=n(50286);var l=n(52638);var d=n(75797);var c=n(28006)},40516:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IInspector:()=>_,InspectionHandler:()=>l,InspectorPanel:()=>g,KernelConnector:()=>v});var i=n(30397);var s=n(44539);var o=n(5592);var r=n(26568);var a=n(2336);class l{constructor(e){this._cleared=new a.Signal(this);this._disposed=new a.Signal(this);this._editor=null;this._inspected=new a.Signal(this);this._isDisposed=false;this._pending=0;this._standby=true;this._lastInspectedReply=null;this._connector=e.connector;this._rendermime=e.rendermime;this._debouncer=new r.Debouncer(this.onEditorChange.bind(this),250)}get cleared(){return this._cleared}get disposed(){return this._disposed}get inspected(){return this._inspected}get editor(){return this._editor}set editor(e){if(e===this._editor){return}a.Signal.disconnectReceiver(this);const t=this._editor=e;if(t){this._cleared.emit(void 0);this.onEditorChange();t.model.selections.changed.connect(this._onChange,this);t.model.sharedModel.changed.connect(this._onChange,this)}}get standby(){return this._standby}set standby(e){this._standby=e}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._debouncer.dispose();this._disposed.emit(void 0);a.Signal.clearData(this)}onEditorChange(e){if(this._standby){return}const t=this.editor;if(!t){return}const n=e?e:t.model.sharedModel.getSource();const r=t.getCursorPosition();const a=i.Text.jsIndexToCharIndex(t.getOffsetAt(r),n);const l={content:null};const d=++this._pending;void this._connector.fetch({offset:a,text:n}).then((e=>{if(!e||this.isDisposed||d!==this._pending){this._lastInspectedReply=null;this._inspected.emit(l);return}const{data:t}=e;if(this._lastInspectedReply&&o.JSONExt.deepEqual(this._lastInspectedReply,t)){return}const n=this._rendermime.preferredMimeType(t);if(n){const e=this._rendermime.createRenderer(n);const i=new s.MimeModel({data:t});void e.renderModel(i);l.content=e}this._lastInspectedReply=e.data;this._inspected.emit(l)})).catch((e=>{this._lastInspectedReply=null;this._inspected.emit(l)}))}_onChange(){void this._debouncer.invoke()}}var d=n(14366);var c=n(30619);var h=n(1143);const u="jp-Inspector";const p="jp-Inspector-content";const m="jp-Inspector-placeholderContent";class g extends h.Panel{constructor(e={}){super();this._source=null;this.translator=e.translator||c.nullTranslator;this._trans=this.translator.load("jupyterlab");if(e.initialContent instanceof h.Widget){this._content=e.initialContent}else if(typeof e.initialContent==="string"){this._content=g._generateContentWidget(`

${e.initialContent}

`)}else{const e=`

${this._trans.__("No Documentation")}

`;const t=`

${this._trans.__("Move the cursor to a code fragment (e.g. function or object) to request information about it from the kernel attached to the editor.")}

`;this._content=g._generateContentWidget(`${e}${t}`)}this.addClass(u);this.layout.addWidget(this._content)}[d.Printing.symbol](){return()=>d.Printing.printWidget(this)}get source(){return this._source}set source(e){if(this._source===e){return}if(this._source){this._source.standby=true;this._source.inspected.disconnect(this.onInspectorUpdate,this);this._source.disposed.disconnect(this.onSourceDisposed,this)}if(e&&e.isDisposed){e=null}this._source=e;if(this._source){this._source.standby=false;this._source.inspected.connect(this.onInspectorUpdate,this);this._source.disposed.connect(this.onSourceDisposed,this)}}dispose(){if(this.isDisposed){return}this.source=null;super.dispose()}onInspectorUpdate(e,t){const{content:n}=t;if(!n||n===this._content){return}this._content.dispose();this._content=n;n.addClass(p);this.layout.addWidget(n)}onSourceDisposed(e,t){this.source=null}static _generateContentWidget(e){const t=new h.Widget;t.node.innerHTML=e;t.addClass(p);t.addClass(m);return t}}var f=n(94931);class v extends f.DataConnector{constructor(e){super();this._sessionContext=e.sessionContext}fetch(e){var t;const n=(t=this._sessionContext.session)===null||t===void 0?void 0:t.kernel;if(!n){return Promise.reject(new Error("Inspection fetch requires a kernel."))}const i={code:e.text,cursor_pos:e.offset,detail_level:1};return n.requestInspect(i).then((e=>{const t=e.content;if(t.status!=="ok"||!t.found){throw new Error("Inspection fetch failed to return successfully.")}return{data:t.data,metadata:t.metadata}}))}}const _=new o.Token("@jupyterlab/inspector:IInspector",`A service for adding contextual help to widgets (visible using "Show Contextual Help" from the Help menu).\n Use this to hook into the contextual help system in your extension.`)},52638:(e,t,n)=>{"use strict";var i=n(10395);var s=n(97913);var o=n(17325);var r=n(5893);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(96741);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},42147:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{APPLICATION_JAVASCRIPT_MIMETYPE:()=>APPLICATION_JAVASCRIPT_MIMETYPE,ExperimentalRenderedJavascript:()=>ExperimentalRenderedJavascript,TEXT_JAVASCRIPT_MIMETYPE:()=>TEXT_JAVASCRIPT_MIMETYPE,default:()=>__WEBPACK_DEFAULT_EXPORT__,rendererFactory:()=>rendererFactory});var _jupyterlab_rendermime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(44539);var _jupyterlab_rendermime__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_jupyterlab_rendermime__WEBPACK_IMPORTED_MODULE_0__);const TEXT_JAVASCRIPT_MIMETYPE="text/javascript";const APPLICATION_JAVASCRIPT_MIMETYPE="application/javascript";function evalInContext(code,element,document,window){return eval(code)}class ExperimentalRenderedJavascript extends _jupyterlab_rendermime__WEBPACK_IMPORTED_MODULE_0__.RenderedJavaScript{render(e){const t=this.translator.load("jupyterlab");const n=()=>{try{const t=e.data[this.mimeType];if(t){evalInContext(t,this.node,document,window)}return Promise.resolve()}catch(t){return Promise.reject(t)}};if(!e.trusted){const e=document.createElement("pre");e.textContent=t.__("Are you sure that you want to run arbitrary Javascript within your JupyterLab session?");const i=document.createElement("button");i.textContent=t.__("Run");this.node.appendChild(e);this.node.appendChild(i);i.onclick=e=>{this.node.textContent="";void n()};return Promise.resolve()}return n()}}const rendererFactory={safe:false,mimeTypes:[TEXT_JAVASCRIPT_MIMETYPE,APPLICATION_JAVASCRIPT_MIMETYPE],createRenderer:e=>new ExperimentalRenderedJavascript(e)};const extension={id:"@jupyterlab/javascript-extension:factory",description:"Adds renderer for JavaScript content.",rendererFactory,rank:0,dataType:"string"};const __WEBPACK_DEFAULT_EXPORT__=extension},53640:(e,t,n)=>{"use strict";var i=n(5893);var s=n(85072);var o=n.n(s);var r=n(97825);var a=n.n(r);var l=n(77659);var d=n.n(l);var c=n(55056);var h=n.n(c);var u=n(10540);var p=n.n(u);var m=n(41113);var g=n.n(m);var f=n(67613);var v={};v.styleTagTransform=g();v.setAttributes=h();v.insert=d().bind(null,"head");v.domAPI=a();v.insertStyleElement=p();var _=o()(f.A,v);const b=f.A&&f.A.locals?f.A.locals:undefined},60885:(e,t,n)=>{"use strict";n.d(t,{Component:()=>C});var i=n(66899);var s=n.n(i);var o=n(30619);var r=n.n(o);var a=n(26331);var l=n.n(a);var d=n(45145);var c=n.n(d);var h=n(5592);var u=n.n(h);var p=n(44914);var m=n.n(p);var g=n(80171);var f=n.n(g);var v=n(64368);var _=n.n(v);var b=n(23546);var y=n.n(b);function w(e){var t;return(t=i.jupyterHighlightStyle.style([e]))!==null&&t!==void 0?t:""}class C extends p.Component{constructor(){super(...arguments);this.state={filter:"",value:""};this.timer=0;this.handleChange=e=>{const{value:t}=e.target;this.setState({value:t});window.clearTimeout(this.timer);this.timer=window.setTimeout((()=>{this.setState({filter:t})}),300)}}componentDidMount(){b.StyleModule.mount(document,i.jupyterHighlightStyle.module)}render(){const e=this.props.translator||o.nullTranslator;const t=e.load("jupyterlab");const{data:n,metadata:i,forwardedRef:s}=this.props;const r=i&&i.root?i.root:"root";const l=this.state.filter?k(n,this.state.filter,[r]):[r];return p.createElement("div",{className:"container",ref:s},p.createElement(a.InputGroup,{className:"filter",type:"text",placeholder:t.__("Find…"),onChange:this.handleChange,value:this.state.value,rightIcon:"ui-components:search"}),p.createElement(v.JSONTree,{data:n,collectionLimit:100,theme:{extend:x,valueLabel:w(d.tags.variableName),valueText:w(d.tags.string),nestedNodeItemString:w(d.tags.comment)},invertTheme:false,keyPath:[r],getItemString:(e,t,n,i)=>Array.isArray(t)?p.createElement("span",null,n," ",i):Object.keys(t).length===0?p.createElement("span",null,n):null,labelRenderer:([e,t])=>p.createElement("span",{className:w(d.tags.keyword)},p.createElement(f(),{searchWords:[this.state.filter],textToHighlight:`${e}`,highlightClassName:"jp-mod-selected"})),valueRenderer:e=>{let t=w(d.tags.string);if(typeof e==="number"){t=w(d.tags.number)}if(e==="true"||e==="false"){t=w(d.tags.keyword)}return p.createElement("span",{className:t},p.createElement(f(),{searchWords:[this.state.filter],textToHighlight:`${e}`,highlightClassName:"jp-mod-selected"}))},shouldExpandNodeInitially:(e,t,n)=>i&&i.expanded?true:l.join(",").includes(e.join(","))}))}}const x={scheme:"jupyter",base00:"invalid",base01:"invalid",base02:"invalid",base03:"invalid",base04:"invalid",base05:"invalid",base06:"invalid",base07:"invalid",base08:"invalid",base09:"invalid",base0A:"invalid",base0B:"invalid",base0C:"invalid",base0D:"invalid",base0E:"invalid",base0F:"invalid",author:"invalid"};function S(e,t){return JSON.stringify(e).includes(t)}function k(e,t,n=["root"]){if(h.JSONExt.isArray(e)){return e.reduce(((e,i,s)=>{if(i&&typeof i==="object"&&S(i,t)){return[...e,[s,...n].join(","),...k(i,t,[s,...n])]}return e}),[])}if(h.JSONExt.isObject(e)){return Object.keys(e).reduce(((i,s)=>{const o=e[s];if(o&&typeof o==="object"&&(s.includes(t)||S(o,t))){return[...i,[s,...n].join(","),...k(o,t,[s,...n])]}return i}),[])}return[]}},94206:(e,t,n)=>{"use strict";n.r(t);n.d(t,{MIME_TYPE:()=>p,MIME_TYPES_JSONL:()=>m,RenderedJSON:()=>g,default:()=>_,rendererFactory:()=>f});var i=n(14366);var s=n.n(i);var o=n(30619);var r=n.n(o);var a=n(1143);var l=n.n(a);var d=n(44914);var c=n.n(d);var h=n(5338);const u="jp-RenderedJSON";const p="application/json";const m=["text/jsonl","application/jsonl","application/json-lines"];class g extends a.Widget{constructor(e){super();this._rootDOM=null;this.addClass(u);this.addClass("CodeMirror");this._mimeType=e.mimeType;this.translator=e.translator||o.nullTranslator}[i.Printing.symbol](){return()=>i.Printing.printWidget(this)}async renderModel(e){const{Component:t}=await Promise.all([n.e(4470),n.e(6331),n.e(5592),n.e(6899),n.e(5145),n.e(3546),n.e(5930)]).then(n.bind(n,60885));let i;if(m.indexOf(this._mimeType)>=0){const t=(e.data[this._mimeType]||"").trim().split(/\n/);i=JSON.parse(`[${t.join(",")}]`)}else{i=e.data[this._mimeType]||{}}const s=e.metadata[this._mimeType]||{};if(this._rootDOM===null){this._rootDOM=(0,h.H)(this.node)}return new Promise(((e,n)=>{this._rootDOM.render(d.createElement(t,{data:i,metadata:s,translator:this.translator,forwardedRef:()=>e()}))}))}onBeforeDetach(e){if(this._rootDOM){this._rootDOM.unmount();this._rootDOM=null}}}const f={safe:true,mimeTypes:[p,...m],createRenderer:e=>new g(e)};const v=[{id:"@jupyterlab/json-extension:factory",description:"Adds renderer for JSON content.",rendererFactory:f,rank:0,dataType:"json",documentWidgetFactoryOptions:{name:"JSON",primaryFileType:"json",fileTypes:["json","notebook","geojson"],defaultFor:["json"]}},{id:"@jupyterlab/json-lines-extension:factory",description:"Adds renderer for JSONLines content.",rendererFactory:f,rank:0,dataType:"string",documentWidgetFactoryOptions:{name:"JSONLines",primaryFileType:"jsonl",fileTypes:["jsonl","ndjson"],defaultFor:["jsonl","ndjson"]}}];const _=v},367:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(23359);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(34176);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},960:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>b});var i=n(94307);var s=n.n(i);var o=n(14366);var r=n.n(o);var a=n(42875);var l=n.n(a);var d=n(74955);var c=n.n(d);var h=n(30619);var u=n.n(h);var p=n(26331);var m=n.n(p);var g=n(34236);var f=n.n(g);var v;(function(e){e.create="launcher:create"})(v||(v={}));const _={activate:y,id:"@jupyterlab/launcher-extension:plugin",description:"Provides the launcher tab service.",requires:[h.ITranslator],optional:[i.ILabShell,o.ICommandPalette,a.IDefaultFileBrowser],provides:d.ILauncher,autoStart:true};const b=_;function y(e,t,n,i,s){const{commands:r,shell:a}=e;const l=t.load("jupyterlab");const c=new d.LauncherModel;r.addCommand(v.create,{label:l.__("New Launcher"),icon:e=>e.toolbar?p.addIcon:undefined,execute:e=>{var i,h;const u=(h=(i=e["cwd"])!==null&&i!==void 0?i:s===null||s===void 0?void 0:s.model.path)!==null&&h!==void 0?h:"";const m=`launcher-${w.id++}`;const f=e=>{if((0,g.find)(a.widgets("main"),(t=>t===e))){a.add(e,"main",{ref:m});v.dispose()}};const v=new d.Launcher({model:c,cwd:u,callback:f,commands:r,translator:t});v.model=c;v.title.icon=p.launcherIcon;v.title.label=l.__("Launcher");const _=new o.MainAreaWidget({content:v});_.title.closable=!!Array.from(a.widgets("main")).length;_.id=m;a.add(_,"main",{activate:e["activate"],ref:e["ref"]});if(n){n.layoutModified.connect((()=>{_.title.closable=Array.from(n.widgets("main")).length>1}),_)}if(s){const e=e=>{v.cwd=e.path};s.model.pathChanged.connect(e);v.disposed.connect((()=>{s.model.pathChanged.disconnect(e)}))}return _}});if(n){void Promise.all([e.restored,s===null||s===void 0?void 0:s.model.restored]).then((()=>{function e(){if(n.isEmpty("main")){void r.execute(v.create)}}n.layoutModified.connect((()=>{e()}))}))}if(i){i.addItem({command:v.create,category:l.__("Launcher")})}if(n){n.addButtonEnabled=true;n.addRequested.connect(((e,t)=>{var n;const i=((n=t.currentTitle)===null||n===void 0?void 0:n.owner.id)||t.titles[t.titles.length-1].owner.id;return r.execute(v.create,{ref:i})}))}return c}var w;(function(e){e.id=0})(w||(w={}))},68149:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(3579);var a=n(39063);var l=n(75797);var d=n(85072);var c=n.n(d);var h=n(97825);var u=n.n(h);var p=n(77659);var m=n.n(p);var g=n(55056);var f=n.n(g);var v=n(10540);var _=n.n(v);var b=n(41113);var y=n.n(b);var w=n(41782);var C={};C.styleTagTransform=y();C.setAttributes=f();C.insert=m().bind(null,"head");C.domAPI=u();C.insertStyleElement=_();var x=c()(w.A,C);const S=w.A&&w.A.locals?w.A.locals:undefined},70322:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ILauncher:()=>s,Launcher:()=>g,LauncherModel:()=>m});var i=n(5592);const s=new i.Token("@jupyterlab/launcher:ILauncher",`A service for the application activity launcher.\n Use this to add your extension activities to the launcher panel.`);var o=n(14366);var r=n(30619);var a=n(26331);var l=n(34236);var d=n(90044);var c=n(94466);var h=n(1143);var u=n(44914);const p="jp-Launcher";class m extends a.VDomModel{constructor(){super(...arguments);this.itemsList=[]}add(e){const t=v.createItem(e);this.itemsList.push(t);this.stateChanged.emit(void 0);return new d.DisposableDelegate((()=>{l.ArrayExt.removeFirstOf(this.itemsList,t);this.stateChanged.emit(void 0)}))}items(){return this.itemsList[Symbol.iterator]()}}class g extends a.VDomRenderer{constructor(e){super(e.model);this._pending=false;this._cwd="";this._cwd=e.cwd;this.translator=e.translator||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this._callback=e.callback;this._commands=e.commands;this.addClass(p)}get cwd(){return this._cwd}set cwd(e){this._cwd=e;this.update()}get pending(){return this._pending}set pending(e){this._pending=e}render(){if(!this.model){return null}const e=[this._trans.__("Notebook"),this._trans.__("Console"),this._trans.__("Other")];const t=[this._trans.__("Notebook"),this._trans.__("Console")];const n=Object.create(null);for(const r of this.model.items()){const e=r.category||this._trans.__("Other");if(!(e in n)){n[e]=[]}n[e].push(r)}for(const r in n){n[r]=n[r].sort(((e,t)=>v.sortCmp(e,t,this._cwd,this._commands)))}const i=[];let s;const o=[];for(const r of e){o.push(r)}for(const r in n){if(e.indexOf(r)===-1){o.push(r)}}o.forEach((e=>{if(!n[e]){return}const o=n[e][0];const r={...o.args,cwd:this.cwd};const d=t.indexOf(e)>-1;const c=this._commands.iconClass(o.command,r);const h=this._commands.icon(o.command,r);if(e in n){s=u.createElement("div",{className:"jp-Launcher-section",key:e},u.createElement("div",{className:"jp-Launcher-sectionHeader"},u.createElement(a.LabIcon.resolveReact,{icon:h,iconClass:(0,a.classes)(c,"jp-Icon-cover"),stylesheet:"launcherSection","aria-hidden":"true"}),u.createElement("h2",{className:"jp-Launcher-sectionTitle"},e)),u.createElement("div",{className:"jp-Launcher-cardContainer"},Array.from((0,l.map)(n[e],(e=>f(d,e,this,this._commands,this._trans,this._callback))))));i.push(s)}}));return u.createElement("div",{className:"jp-Launcher-body"},u.createElement("div",{className:"jp-Launcher-content"},u.createElement("div",{className:"jp-Launcher-cwd"},u.createElement("h3",null,this.cwd)),i))}}function f(e,t,n,i,s,r){const l=t.command;const d={...t.args,cwd:n.cwd};const c=i.caption(l,d);const p=i.label(l,d);const m=e?p:c||p;const g=()=>{if(n.pending===true){return}n.pending=true;void i.execute(l,{...t.args,cwd:n.cwd}).then((e=>{n.pending=false;if(e instanceof h.Widget){r(e)}})).catch((e=>{console.error(e);n.pending=false;void(0,o.showErrorMessage)(s._p("Error","Launcher Error"),e)}))};const f=e=>{if(e.key==="Enter"){g()}};const _=i.iconClass(l,d);const b=i.icon(l,d);return u.createElement("div",{className:"jp-LauncherCard",title:m,onClick:g,onKeyPress:f,tabIndex:0,"data-category":t.category||s.__("Other"),key:v.keyProperty.get(t)},u.createElement("div",{className:"jp-LauncherCard-icon"},e?t.kernelIconUrl?u.createElement("img",{src:t.kernelIconUrl,className:"jp-Launcher-kernelIcon",alt:m}):u.createElement("div",{className:"jp-LauncherCard-noKernelIcon"},p[0].toUpperCase()):u.createElement(a.LabIcon.resolveReact,{icon:b,iconClass:(0,a.classes)(_,"jp-Icon-cover"),stylesheet:"launcherCard"})),u.createElement("div",{className:"jp-LauncherCard-label",title:m},u.createElement("p",null,p)))}var v;(function(e){let t=0;e.keyProperty=new c.AttachedProperty({name:"key",create:()=>t++});function n(e){return{...e,category:e.category||"",rank:e.rank!==undefined?e.rank:Infinity}}e.createItem=n;function i(e,t,n,i){const s=e.rank;const o=t.rank;if(s!==o&&s!==undefined&&o!==undefined){return s{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(97718);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},62062:(e,t,n)=>{"use strict";n.r(t);n.d(t,{LogLevelSwitcher:()=>C,default:()=>x});var i=n(94307);var s=n(14366);var o=n(93037);var r=n(13105);var a=n(44539);var l=n(84739);var d=n(24735);var c=n(30619);var h=n(26331);var u=n(5592);var p=n(44914);var m=n.n(p);var g=n(2336);function f(e){const t=e.translator||c.nullTranslator;const n=t.load("jupyterlab");let i="";if(e.newMessages>0){i=n.__("%1 new messages, %2 log entries for %3",e.newMessages,e.logEntries,e.source)}else{i+=n.__("%1 log entries for %2",e.logEntries,e.source)}return m().createElement(d.GroupItem,{spacing:0,onClick:e.handleClick,title:i},m().createElement(h.listIcon.react,{top:"2px",stylesheet:"statusBar"}),e.newMessages>0?m().createElement(d.TextItem,{source:e.newMessages}):m().createElement(m().Fragment,null))}class v extends h.VDomRenderer{constructor(e){super(new v.Model(e.loggerRegistry));this.translator=e.translator||c.nullTranslator;this._handleClick=e.handleClick;this.addClass("jp-mod-highlighted");this.addClass("jp-LogConsoleStatusItem")}render(){if(this.model===null||this.model.version===0){return null}const{flashEnabled:e,messages:t,source:n,version:i,versionDisplayed:s,versionNotified:o}=this.model;if(n!==null&&e&&i>o){this._flashHighlight();this.model.sourceNotified(n,i)}else if(n!==null&&e&&i>s){this._showHighlighted()}else{this._clearHighlight()}return m().createElement(f,{handleClick:this._handleClick,logEntries:t,newMessages:i-s,source:this.model.source,translator:this.translator})}_flashHighlight(){this._showHighlighted();this.removeClass("jp-LogConsole-flash");requestAnimationFrame((()=>{this.addClass("jp-LogConsole-flash")}))}_showHighlighted(){this.addClass("jp-mod-selected")}_clearHighlight(){this.removeClass("jp-LogConsole-flash");this.removeClass("jp-mod-selected")}}(function(e){class t extends h.VDomModel{constructor(e){super();this.flashEnabledChanged=new g.Signal(this);this._flashEnabled=true;this._source=null;this._sourceVersion=new Map;this._loggerRegistry=e;this._loggerRegistry.registryChanged.connect(this._handleLogRegistryChange,this);this._handleLogRegistryChange()}get messages(){if(this._source===null){return 0}const e=this._loggerRegistry.getLogger(this._source);return e.length}get version(){if(this._source===null){return 0}const e=this._loggerRegistry.getLogger(this._source);return e.version}get source(){return this._source}set source(e){if(this._source===e){return}this._source=e;this.stateChanged.emit()}get versionDisplayed(){var e,t;if(this._source===null){return 0}return(t=(e=this._sourceVersion.get(this._source))===null||e===void 0?void 0:e.lastDisplayed)!==null&&t!==void 0?t:0}get versionNotified(){var e,t;if(this._source===null){return 0}return(t=(e=this._sourceVersion.get(this._source))===null||e===void 0?void 0:e.lastNotified)!==null&&t!==void 0?t:0}get flashEnabled(){return this._flashEnabled}set flashEnabled(e){if(this._flashEnabled===e){return}this._flashEnabled=e;this.flashEnabledChanged.emit();this.stateChanged.emit()}sourceDisplayed(e,t){if(e===null||t===null){return}const n=this._sourceVersion.get(e);let i=false;if(n.lastDisplayed"logconsole"})}const y=new v({loggerRegistry:g,handleClick:()=>{var t;if(!p){x({insertMode:"split-bottom",ref:(t=e.shell.currentWidget)===null||t===void 0?void 0:t.id})}else{e.shell.activateById(p.id)}},translator:n});const w=()=>{const t=e.shell.currentWidget;if(i===null||i===void 0?void 0:i.currentPath){return i.currentPath}if(t&&t instanceof o.DocumentWidget){return t.context.path}return null};const x=(t={})=>{var i,o;m=new r.LogConsolePanel(g,n);m.source=(o=(i=t.source)!==null&&i!==void 0?i:w())!==null&&o!==void 0?o:null;p=new s.MainAreaWidget({content:m});p.addClass("jp-LogConsole");p.title.closable=true;p.title.icon=h.listIcon;p.title.label=u.__("Log Console");const a=new h.CommandToolbarButton({commands:e.commands,id:b.addCheckpoint});const l=new h.CommandToolbarButton({commands:e.commands,id:b.clear});const d=()=>{e.commands.notifyCommandChanged(b.addCheckpoint);e.commands.notifyCommandChanged(b.clear);e.commands.notifyCommandChanged(b.open);e.commands.notifyCommandChanged(b.setLevel)};p.toolbar.addItem("lab-log-console-add-checkpoint",a);p.toolbar.addItem("lab-log-console-clear",l);p.toolbar.addItem("level",new C(p.content,n));m.sourceChanged.connect((()=>{d()}));m.sourceDisplayed.connect(((e,{source:t,version:n})=>{y.model.sourceDisplayed(t,n)}));p.disposed.connect((()=>{p=null;m=null;d()}));e.shell.add(p,"down",{ref:t.ref,mode:t.insertMode,type:"Log Console"});void f.add(p);e.shell.activateById(p.id);p.update();d()};e.commands.addCommand(b.open,{label:u.__("Show Log Console"),execute:(e={})=>{if(p){p.dispose()}else{x(e)}},isToggled:()=>p!==null});e.commands.addCommand(b.addCheckpoint,{execute:()=>{var e;(e=m===null||m===void 0?void 0:m.logger)===null||e===void 0?void 0:e.checkpoint()},icon:h.addIcon,isEnabled:()=>!!m&&m.source!==null,label:u.__("Add Checkpoint")});e.commands.addCommand(b.clear,{execute:()=>{var e;(e=m===null||m===void 0?void 0:m.logger)===null||e===void 0?void 0:e.clear()},icon:h.clearIcon,isEnabled:()=>!!m&&m.source!==null,label:u.__("Clear Log")});function S(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}e.commands.addCommand(b.setLevel,{execute:e=>{if(m===null||m===void 0?void 0:m.logger){m.logger.level=e.level}},isEnabled:()=>!!m&&m.source!==null,label:e=>e["level"]?u.__("Set Log Level to %1",S(e.level)):u.__("Set log level to `level`.")});if(a){a.addItem({command:b.open,category:u.__("Main Area")})}if(c){c.registerStatusItem("@jupyterlab/logconsole-extension:status",{item:y,align:"left",isActive:()=>{var e;return((e=y.model)===null||e===void 0?void 0:e.version)>0},activeStateChanged:y.model.stateChanged})}function k(e){if(m){m.source=e}y.model.source=e}void e.restored.then((()=>{var e;if(i){i.currentPathChanged.connect(((e,{newValue:t})=>k(t)));k((e=i.currentPath)!==null&&e!==void 0?e:null)}else{k(w())}}));if(d){const t=e=>{g.maxLength=e.get("maxLogEntries").composite;y.model.flashEnabled=e.get("flash").composite};Promise.all([d.load(_),e.restored]).then((([e])=>{t(e);e.changed.connect((e=>{t(e)}))})).catch((e=>{console.error(e.message)}))}return g}class C extends h.ReactWidget{constructor(e,t){super();this.handleChange=e=>{if(this._logConsole.logger){this._logConsole.logger.level=e.target.value}this.update()};this.handleKeyDown=e=>{if(e.keyCode===13){this._logConsole.activate()}};this._id=`level-${u.UUID.uuid4()}`;this.translator=t!==null&&t!==void 0?t:c.nullTranslator;this._trans=this.translator.load("jupyterlab");this.addClass("jp-LogConsole-toolbarLogLevel");this._logConsole=e;if(e.source){this.update()}e.sourceChanged.connect(this._updateSource,this)}_updateSource(e,{oldValue:t,newValue:n}){if(t!==null){const n=e.loggerRegistry.getLogger(t);n.stateChanged.disconnect(this.update,this)}if(n!==null){const t=e.loggerRegistry.getLogger(n);t.stateChanged.connect(this.update,this)}this.update()}render(){const e=this._logConsole.logger;return p.createElement(p.Fragment,null,p.createElement("label",{htmlFor:this._id,className:e===null?"jp-LogConsole-toolbarLogLevel-disabled":undefined},this._trans.__("Log Level:")),p.createElement(h.HTMLSelect,{id:this._id,className:"jp-LogConsole-toolbarLogLevelDropdown",onChange:this.handleChange,onKeyDown:this.handleKeyDown,value:e===null||e===void 0?void 0:e.level,"aria-label":this._trans.__("Log level"),disabled:e===null,options:e===null?[]:[[this._trans.__("Critical"),"Critical"],[this._trans.__("Error"),"Error"],[this._trans.__("Warning"),"Warning"],[this._trans.__("Info"),"Info"],[this._trans.__("Debug"),"Debug"]].map((e=>({label:e[0],value:e[1].toLowerCase()})))}))}}const x=y},87456:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(97913);var a=n(5893);var l=n(79010);var d=n(3579);var c=n(69704);var h=n(85072);var u=n.n(h);var p=n(97825);var m=n.n(p);var g=n(77659);var f=n.n(g);var v=n(55056);var _=n.n(v);var b=n(10540);var y=n.n(b);var w=n(41113);var C=n.n(w);var x=n(39817);var S={};S.styleTagTransform=C();S.setAttributes=_();S.insert=f().bind(null,"head");S.domAPI=m();S.insertStyleElement=y();var k=u()(x.A,S);const j=x.A&&x.A.locals?x.A.locals:undefined},42708:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ILoggerRegistry:()=>p,LogConsolePanel:()=>w,LogOutputModel:()=>r,Logger:()=>d,LoggerOutputAreaModel:()=>l,LoggerRegistry:()=>h,ScrollingWidget:()=>y});var i=n(94493);var s=n(44539);var o=n(2336);class r extends s.OutputModel{constructor(e){super(e);this.timestamp=new Date(e.value.timestamp);this.level=e.value.level}}class a extends i.OutputAreaModel.ContentFactory{createOutputModel(e){return new r(e)}}class l extends i.OutputAreaModel{constructor({maxLength:e,...t}){super(t);this.maxLength=e}add(e){super.add(e);this._applyMaxLength();return this.length}shouldCombine(e){const{value:t,lastModel:n}=e;const i=Math.trunc(n.timestamp.getTime()/1e3);const s=Math.trunc(t.timestamp/1e3);return i===s}get(e){return super.get(e)}get maxLength(){return this._maxLength}set maxLength(e){this._maxLength=e;this._applyMaxLength()}_applyMaxLength(){if(this.list.length>this._maxLength){this.list.removeRange(0,this.list.length-this._maxLength)}}}class d{constructor(e){this._isDisposed=false;this._contentChanged=new o.Signal(this);this._stateChanged=new o.Signal(this);this._rendermime=null;this._version=0;this._level="warning";this.source=e.source;this.outputAreaModel=new l({contentFactory:new a,maxLength:e.maxLength})}get maxLength(){return this.outputAreaModel.maxLength}set maxLength(e){this.outputAreaModel.maxLength=e}get level(){return this._level}set level(e){const t=this._level;if(t===e){return}this._level=e;this._log({output:{output_type:"display_data",data:{"text/plain":`Log level set to ${e}`}},level:"metadata"});this._stateChanged.emit({name:"level",oldValue:t,newValue:e})}get length(){return this.outputAreaModel.length}get contentChanged(){return this._contentChanged}get stateChanged(){return this._stateChanged}get rendermime(){return this._rendermime}set rendermime(e){if(e!==this._rendermime){const t=this._rendermime;const n=this._rendermime=e;this._stateChanged.emit({name:"rendermime",oldValue:t,newValue:n})}}get version(){return this._version}log(e){if(c.LogLevel[e.level]"}},level:"metadata"})}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this.clear();this._rendermime=null;o.Signal.clearData(this)}_log(e){this._version++;this.outputAreaModel.add({...e.output,timestamp:Date.now(),level:e.level});this._contentChanged.emit("append")}}var c;(function(e){let t;(function(e){e[e["debug"]=0]="debug";e[e["info"]=1]="info";e[e["warning"]=2]="warning";e[e["error"]=3]="error";e[e["critical"]=4]="critical";e[e["metadata"]=5]="metadata"})(t=e.LogLevel||(e.LogLevel={}))})(c||(c={}));class h{constructor(e){this._loggers=new Map;this._registryChanged=new o.Signal(this);this._isDisposed=false;this._defaultRendermime=e.defaultRendermime;this._maxLength=e.maxLength}getLogger(e){const t=this._loggers;let n=t.get(e);if(n){return n}n=new d({source:e,maxLength:this.maxLength});n.rendermime=this._defaultRendermime;t.set(e,n);this._registryChanged.emit("append");return n}getLoggers(){return Array.from(this._loggers.values())}get registryChanged(){return this._registryChanged}get maxLength(){return this._maxLength}set maxLength(e){this._maxLength=e;this._loggers.forEach((t=>{t.maxLength=e}))}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._loggers.forEach((e=>e.dispose()));o.Signal.clearData(this)}}var u=n(5592);const p=new u.Token("@jupyterlab/logconsole:ILoggerRegistry","A service providing a logger infrastructure.");var m=n(30619);var g=n(1143);function f(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}class v extends g.Widget{constructor(){super();this._timestampNode=document.createElement("div");this.node.append(this._timestampNode)}set timestamp(e){this._timestamp=e;this._timestampNode.innerHTML=this._timestamp.toLocaleTimeString();this.update()}set level(e){this._level=e;this.node.dataset.logLevel=e;this.update()}update(){if(this._level!==undefined&&this._timestamp!==undefined){this.node.title=`${this._timestamp.toLocaleString()}; ${f(this._level)} level`}}}class _ extends i.OutputArea{createOutputItem(e){const t=super.createOutputItem(e);if(t===null){return null}const n=t.widgets[0];n.timestamp=e.timestamp;n.level=e.level;return t}onInputRequest(e,t){return}}class b extends i.OutputArea.ContentFactory{createOutputPrompt(){return new v}}class y extends g.Widget{constructor({content:e,...t}){super(t);this._observer=null;this.addClass("jp-Scrolling");const n=this.layout=new g.PanelLayout;n.addWidget(e);this._content=e;this._sentinel=document.createElement("div");this.node.appendChild(this._sentinel)}get content(){return this._content}onAfterAttach(e){super.onAfterAttach(e);requestAnimationFrame((()=>{this._sentinel.scrollIntoView();this._scrollHeight=this.node.scrollHeight}));if(typeof IntersectionObserver!=="undefined"){this._observer=new IntersectionObserver((e=>{this._handleScroll(e)}),{root:this.node,threshold:1});this._observer.observe(this._sentinel)}}onBeforeDetach(e){if(this._observer){this._observer.disconnect()}}onAfterShow(e){if(this._tracking){this._sentinel.scrollIntoView()}}_handleScroll([e]){if(e.isIntersecting){this._tracking=true}else if(this.isVisible){const e=this.node.scrollHeight;if(e===this._scrollHeight){this._tracking=false}else{this._sentinel.scrollIntoView();this._scrollHeight=e;this._tracking=true}}}}class w extends g.StackedPanel{constructor(e,t){super();this._outputAreas=new Map;this._source=null;this._sourceChanged=new o.Signal(this);this._sourceDisplayed=new o.Signal(this);this._loggersWatched=new Set;this.translator=t||m.nullTranslator;this._trans=this.translator.load("jupyterlab");this._loggerRegistry=e;this.addClass("jp-LogConsolePanel");e.registryChanged.connect(((e,t)=>{this._bindLoggerSignals()}),this);this._bindLoggerSignals();this._placeholder=new g.Widget;this._placeholder.addClass("jp-LogConsoleListPlaceholder");this.addWidget(this._placeholder)}get loggerRegistry(){return this._loggerRegistry}get logger(){if(this.source===null){return null}return this.loggerRegistry.getLogger(this.source)}get source(){return this._source}set source(e){if(e===this._source){return}const t=this._source;const n=this._source=e;this._showOutputFromSource(n);this._handlePlaceholder();this._sourceChanged.emit({oldValue:t,newValue:n,name:"source"})}get sourceVersion(){const e=this.source;return e!==null?this._loggerRegistry.getLogger(e).version:null}get sourceChanged(){return this._sourceChanged}get sourceDisplayed(){return this._sourceDisplayed}onAfterAttach(e){super.onAfterAttach(e);this._updateOutputAreas();this._showOutputFromSource(this._source);this._handlePlaceholder()}onAfterShow(e){super.onAfterShow(e);if(this.source!==null){this._sourceDisplayed.emit({source:this.source,version:this.sourceVersion})}}_bindLoggerSignals(){const e=this._loggerRegistry.getLoggers();for(const t of e){if(this._loggersWatched.has(t.source)){continue}t.contentChanged.connect(((e,t)=>{this._updateOutputAreas();this._handlePlaceholder()}),this);t.stateChanged.connect(((e,t)=>{if(t.name!=="rendermime"){return}const n=`source:${e.source}`;const i=this._outputAreas.get(n);if(i){if(t.newValue){i.rendermime=t.newValue}else{i.dispose()}}}),this);this._loggersWatched.add(t.source)}}_showOutputFromSource(e){const t=e===null?"null source":`source:${e}`;this._outputAreas.forEach(((e,n)=>{var i,s;if(e.id===t){(i=e.parent)===null||i===void 0?void 0:i.show();if(e.isVisible){this._sourceDisplayed.emit({source:this.source,version:this.sourceVersion})}}else{(s=e.parent)===null||s===void 0?void 0:s.hide()}}));const n=e===null?this._trans.__("Log Console"):this._trans.__("Log: %1",e);this.title.label=n;this.title.caption=n}_handlePlaceholder(){if(this.source===null){this._placeholder.node.textContent=this._trans.__("No source selected.");this._placeholder.show()}else if(this._loggerRegistry.getLogger(this.source).length===0){this._placeholder.node.textContent=this._trans.__("No log messages.");this._placeholder.show()}else{this._placeholder.hide();this._placeholder.node.textContent=""}}_updateOutputAreas(){const e=new Set;const t=this._loggerRegistry.getLoggers();for(const i of t){const t=i.source;const n=`source:${t}`;e.add(n);if(!this._outputAreas.has(n)){const e=new _({rendermime:i.rendermime,contentFactory:new b,model:i.outputAreaModel});e.id=n;const s=new y({content:e});this.addWidget(s);this._outputAreas.set(n,e);const o=e=>{if(this.source===t&&e.isVisible){this._sourceDisplayed.emit({source:this.source,version:this.sourceVersion})}};e.outputLengthChanged.connect(o,this);o(e)}}const n=this._outputAreas.keys();for(const i of n){if(!e.has(i)){const e=this._outputAreas.get(i);e===null||e===void 0?void 0:e.dispose();this._outputAreas.delete(i)}}}}},69704:(e,t,n)=>{"use strict";var i=n(10395);var s=n(5893);var o=n(1649);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(42769);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},8113:(e,t,n)=>{"use strict";n.r(t);n.d(t,{RunningLanguageServer:()=>j,default:()=>T});var i=n(7243);var s=n(45409);var o=n(84739);var r=n(30619);var a=n(26331);var l=n(2336);var d=n(5592);var c=n(26568);var h=n(44914);var u=n.n(h);var p=n(14366);const m="languageServers";const g="configuration";function f(e){const{[g]:t,...n}=e.schema;const{[g]:i,serverName:s,...o}=e.settings;const[r,a]=(0,h.useState)(s);const l=t=>{e.updateSetting.invoke(e.serverHash,{serverName:t.target.value}).catch(console.error);a(t.target.value)};const m={};Object.entries(i).forEach((([e,t])=>{const n={property:e,type:typeof t,value:t};m[d.UUID.uuid4()]=n}));const[f,_]=(0,h.useState)(m);const b={};Object.entries(n).forEach((([e,t])=>{if(e in o){b[e]=o[e]}else{b[e]=t["default"]}}));const[y,w]=(0,h.useState)(b);const C=(t,n,i)=>{let s=n;if(i==="number"){s=parseFloat(n)}const o={...y,[t]:s};e.updateSetting.invoke(e.serverHash,o).catch(console.error);w(o)};const x=()=>{const t=d.UUID.uuid4();const n={...f,[t]:{property:"",type:"string",value:""}};const i={};Object.values(n).forEach((e=>{i[e.property]=e.value}));e.updateSetting.invoke(e.serverHash,{[g]:i}).catch(console.error);_(n)};const S=t=>{const n={};Object.entries(f).forEach((([i,s])=>{if(i!==t){n[i]=s}const o={};Object.values(n).forEach((e=>{o[e.property]=e.value}));e.updateSetting.invoke(e.serverHash,{[g]:o}).catch(console.error);_(n)}))};const k=(t,n)=>{if(t in f){const i={...f,[t]:n};const s={};Object.values(i).forEach((e=>{s[e.property]=e.value}));_(i);e.updateSetting.invoke(e.serverHash,{[g]:s}).catch(console.error)}};const j=new c.Debouncer(k);const I=(0,h.useRef)(p.DOMUtils.createDomID()+"-line-number-input");return u().createElement("div",{className:"array-item"},u().createElement("div",{className:"form-group "},u().createElement("div",{className:"jp-FormGroup-content"},u().createElement("div",{className:"jp-objectFieldWrapper"},u().createElement("fieldset",null,u().createElement("div",{className:"form-group small-field"},u().createElement("div",{className:"jp-modifiedIndicator jp-errorIndicator"}),u().createElement("div",{className:"jp-FormGroup-content"},u().createElement("label",{htmlFor:I.current,className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},e.trans.__("Server name:")),u().createElement("div",{className:"jp-inputFieldWrapper jp-FormGroup-contentItem"},u().createElement("input",{id:I.current,className:"form-control",type:"text",required:true,value:r,onChange:e=>{l(e)}})),u().createElement("div",{className:"validationErrors"},u().createElement("div",null,u().createElement("ul",{className:"error-detail bs-callout bs-callout-info"},u().createElement("li",{className:"text-danger"},e.trans.__("is a required property"))))))),Object.entries(n).map((([e,t],n)=>u().createElement("div",{key:`${n}-${e}`,className:"form-group small-field"},u().createElement("div",{className:"jp-FormGroup-content"},u().createElement("h3",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},t.title),u().createElement("div",{className:"jp-inputFieldWrapper jp-FormGroup-contentItem"},u().createElement("input",{className:"form-control",placeholder:"",type:t.type,value:y[e],onChange:n=>C(e,n.target.value,t.type)})),u().createElement("div",{className:"jp-FormGroup-description"},t.description),u().createElement("div",{className:"validationErrors"}))))),u().createElement("fieldset",null,u().createElement("legend",null,t["title"]),Object.entries(f).map((([e,t])=>u().createElement(v,{key:e,hash:e,property:t,removeProperty:S,setProperty:j}))),u().createElement("span",null,t["description"])))))),u().createElement("div",{className:"jp-ArrayOperations"},u().createElement("button",{className:"jp-mod-styled jp-mod-reject",onClick:x},e.trans.__("Add property")),u().createElement("button",{className:"jp-mod-styled jp-mod-warn jp-FormGroup-removeButton",onClick:()=>e.removeSetting(e.serverHash)},e.trans.__("Remove server"))))}function v(e){const[t,n]=(0,h.useState)({...e.property});const i={string:"text",number:"number",boolean:"checkbox"};const s=()=>{e.removeProperty(e.hash)};const o=i=>{const s={...t,property:i};e.setProperty.invoke(e.hash,s).catch(console.error);n(s)};const r=(i,s)=>{let o=i;if(s==="number"){o=parseFloat(i)}const r={...t,value:o};e.setProperty.invoke(e.hash,r).catch(console.error);n(r)};const l=i=>{let s;if(i==="boolean"){s=false}else if(i==="number"){s=0}else{s=""}const o={...t,type:i,value:s};n(o);e.setProperty.invoke(e.hash,o).catch(console.error)};return u().createElement("div",{key:e.hash,className:"form-group small-field"},u().createElement("div",{className:"jp-FormGroup-content jp-LSPExtension-FormGroup-content"},u().createElement("input",{className:"form-control",type:"text",required:true,placeholder:"Property name",value:t.property,onChange:e=>{o(e.target.value)}}),u().createElement("select",{className:"form-control",value:t.type,onChange:e=>l(e.target.value)},u().createElement("option",{value:"string"},"String"),u().createElement("option",{value:"number"},"Number"),u().createElement("option",{value:"boolean"},"Boolean")),u().createElement("input",{className:"form-control",type:i[t.type],required:false,placeholder:"Property value",value:t.type!=="boolean"?t.value:undefined,checked:t.type==="boolean"?t.value:undefined,onChange:t.type!=="boolean"?e=>r(e.target.value,t.type):e=>r(e.target.checked,t.type)}),u().createElement("button",{className:"jp-mod-minimal jp-Button",onClick:s},u().createElement(a.closeIcon.react,null))))}class _ extends u().Component{constructor(e){super(e);this.removeSetting=e=>{if(e in this.state.items){const t={};for(const n in this.state.items){if(n!==e){t[n]=this.state.items[n]}}this.setState((e=>({...e,items:t})),(()=>{this.saveServerSetting()}))}};this.updateSetting=(e,t)=>{if(e in this.state.items){const n={};for(const i in this.state.items){if(i===e){n[i]={...this.state.items[i],...t}}else{n[i]=this.state.items[i]}}this.setState((e=>({...e,items:n})),(()=>{this.saveServerSetting()}))}};this.addServerSetting=()=>{let e=0;let t="newKey";while(Object.values(this.state.items).map((e=>e.serverName)).includes(t)){e+=1;t=`newKey-${e}`}this.setState((e=>({...e,items:{...e.items,[d.UUID.uuid4()]:{...this._defaultSetting,serverName:t}}})),(()=>{this.saveServerSetting()}))};this.saveServerSetting=()=>{const e={};Object.values(this.state.items).forEach((t=>{const{serverName:n,...i}=t;e[n]=i}));this._setting.set(m,e).catch(console.error)};this._setting=e.formContext.settings;this._trans=e.translator.load("jupyterlab");const t=this._setting.schema["definitions"];this._defaultSetting=t["languageServer"]["default"];this._schema=t["languageServer"]["properties"];const n=e.schema.title;const i=e.schema.description;const s=e.formContext.settings;const o=s.get(m).composite;let r={};if(o){Object.entries(o).forEach((([e,t])=>{if(t){const n=d.UUID.uuid4();r[n]={serverName:e,...t}}}))}this.state={title:n,desc:i,items:r};this._debouncedUpdateSetting=new c.Debouncer(this.updateSetting.bind(this))}render(){return u().createElement("div",null,u().createElement("fieldset",null,u().createElement("legend",null,this.state.title),u().createElement("p",{className:"field-description"},this.state.desc),u().createElement("div",{className:"field field-array field-array-of-object"},Object.entries(this.state.items).map((([e,t],n)=>u().createElement(f,{key:`${n}-${e}`,trans:this._trans,removeSetting:this.removeSetting,updateSetting:this._debouncedUpdateSetting,serverHash:e,settings:t,schema:this._schema})))),u().createElement("div",null,u().createElement("button",{style:{margin:2},className:"jp-mod-styled jp-mod-reject",onClick:this.addServerSetting},this._trans.__("Add server")))))}}function b(e,t){return u().createElement(_,{...e,translator:t})}const y={activate:S,id:"@jupyterlab/lsp-extension:plugin",description:"Provides the language server connection manager.",requires:[r.ITranslator,i.IWidgetLSPAdapterTracker],optional:[s.IRunningSessionManagers],provides:i.ILSPDocumentConnectionManager,autoStart:true};const w={id:"@jupyterlab/lsp-extension:feature",description:"Provides the language server feature manager.",activate:()=>new i.FeatureManager,provides:i.ILSPFeatureManager,autoStart:true};const C={activate:k,id:"@jupyterlab/lsp-extension:settings",description:"Provides the language server settings.",requires:[i.ILSPDocumentConnectionManager,o.ISettingRegistry,r.ITranslator],optional:[a.IFormRendererRegistry],autoStart:true};const x={id:"@jupyterlab/lsp-extension:code-extractor-manager",autoStart:true,description:"Provides the code extractor manager.",provides:i.ILSPCodeExtractorsManager,activate:e=>{const t=new i.CodeExtractorsManager;const n=new i.TextForeignCodeExtractor({language:"markdown",isStandalone:false,file_extension:"md",cellType:["markdown"]});t.register(n,null);const s=new i.TextForeignCodeExtractor({language:"text",isStandalone:false,file_extension:"txt",cellType:["raw"]});t.register(s,null);return t}};function S(e,t,n,s){const o=new i.LanguageServerManager({settings:e.serviceManager.serverSettings});const r=new i.DocumentConnectionManager({languageServerManager:o,adapterTracker:n});if(s){I(s,r,t)}return r}function k(e,t,n,i,s){const o="languageServers";const r=t.languageServerManager;const a=e=>{const n=e.composite;const i=n.languageServers||{};if(n.activate==="on"&&!r.isEnabled){r.enable().catch(console.error)}else if(n.activate==="off"&&r.isEnabled){r.disable();return}t.initialConfigurations=i;t.updateConfiguration(i);t.updateServerConfigurations(i);t.updateLogging(n.logAllCommunication,n.setTrace)};n.transform(y.id,{fetch:e=>{const t=e.schema.properties;const n={};r.sessions.forEach(((e,t)=>{n[t]={rank:50,configuration:{}}}));t[o]["default"]=n;return e},compose:e=>{const t=e.schema.properties;const n=e.data.user;const i=t[o]["default"];const s=n[o];let r={...i};if(s){r={...r,...s}}const a={[o]:r};Object.entries(t).forEach((([e,t])=>{if(e!==o){if(e in n){a[e]=n[e]}else{a[e]=t.default}}}));e.data.composite=a;return e}});r.sessionsChanged.connect((async()=>{await n.load(y.id,true)}));n.load(y.id).then((e=>{a(e);e.changed.connect((()=>{a(e)}));r.disable()})).catch((e=>{console.error(e.message)}));if(s){const e={fieldRenderer:e=>b(e,i)};s.addRenderer(`${y.id}.${o}`,e)}}class j{constructor(e,t){this._connection=new WeakSet([e]);this._manager=t;this._serverIdentifier=e.serverIdentifier;this._serverLanguage=e.serverLanguage}open(){}icon(){return a.pythonIcon}label(){var e,t;return`${(e=this._serverIdentifier)!==null&&e!==void 0?e:""} (${(t=this._serverLanguage)!==null&&t!==void 0?t:""})`}shutdown(){for(const[e,t]of this._manager.connections.entries()){if(this._connection.has(t)){const{uri:t}=this._manager.documents.get(e);this._manager.unregisterDocument(t)}}this._manager.disconnect(this._serverIdentifier)}}function I(e,t,n){const i=n.load("jupyterlab");const s=new l.Signal(t);t.connected.connect((()=>s.emit(t)));t.disconnected.connect((()=>s.emit(t)));t.closed.connect((()=>s.emit(t)));t.documentsChanged.connect((()=>s.emit(t)));let o=[];e.add({name:i.__("Language servers"),supportsMultipleViews:false,running:()=>{const e=new Set([...t.connections.values()]);o=[...e].map((e=>new j(e,t)));return o},shutdownAll:()=>{o.forEach((e=>{e.shutdown()}))},refreshRunning:()=>void 0,runningChanged:s,shutdownLabel:i.__("Shut Down"),shutdownAllLabel:i.__("Shut Down All"),shutdownAllConfirmationText:i.__("Are you sure you want to permanently shut down all running language servers?")})}const E={id:"@jupyterlab/lsp-extension:tracker",description:"Provides the tracker of `WidgetLSPAdapter`.",autoStart:true,provides:i.IWidgetLSPAdapterTracker,activate:e=>new i.WidgetLSPAdapterTracker({shell:e.shell})};const T=[y,w,C,x,E]},4380:(e,t,n)=>{"use strict";var i=n(40662);var s=n(97913);var o=n(3579);var r=n(13137);var a=n(94780);var l=n(85072);var d=n.n(l);var c=n(97825);var h=n.n(c);var u=n(77659);var p=n.n(u);var m=n(55056);var g=n.n(m);var f=n(10540);var v=n.n(f);var _=n(41113);var b=n.n(_);var y=n(37347);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.A,w);const x=y.A&&y.A.locals?y.A.locals:undefined},15771:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CodeExtractorsManager:()=>F,DefaultMap:()=>j,DocumentConnectionManager:()=>O,EditorAdapter:()=>l,FeatureManager:()=>q,ILSPCodeExtractorsManager:()=>b,ILSPDocumentConnectionManager:()=>v,ILSPFeatureManager:()=>_,ILanguageServerManager:()=>f,IWidgetLSPAdapterTracker:()=>y,LanguageServerManager:()=>K,Method:()=>w,ProtocolCoordinates:()=>V,TextForeignCodeExtractor:()=>U,UpdateManager:()=>Q,VirtualDocument:()=>Y,VirtualDocumentInfo:()=>G,WidgetLSPAdapter:()=>h,WidgetLSPAdapterTracker:()=>p,collectDocuments:()=>X,expandDottedPaths:()=>S,expandPath:()=>k,isEqual:()=>z,isWithinRange:()=>J,offsetAtPosition:()=>W,positionAtOffset:()=>H,sleep:()=>C,untilReady:()=>x});var i=n(8394);var s=n.n(i);var o=n(14366);var r=n(30619);var a=n(2336);class l{constructor(e){this._widgetAdapter=e.widgetAdapter;this._extensions=e.extensions;void e.editor.ready().then((t=>{this._injectExtensions(e.editor)}))}dispose(){if(this.isDisposed){return}this.isDisposed=true;a.Signal.clearData(this)}_injectExtensions(e){const t=e.getEditor();if(!t||t.isDisposed){return}this._extensions.forEach((n=>{const i=n.factory({path:this._widgetAdapter.widget.context.path,editor:e,widgetAdapter:this._widgetAdapter,model:t.model,inline:true});if(!i){return}t.injectExtension(i.instance(t))}))}}const d=o.Dialog.createButton;const c={"text/x-rsrc":"r","text/x-r-source":"r","text/x-ipython":"python"};class h{constructor(e,t){this.widget=e;this.options=t;this._adapterConnected=new a.Signal(this);this._activeEditorChanged=new a.Signal(this);this._editorAdded=new a.Signal(this);this._editorRemoved=new a.Signal(this);this._disposed=new a.Signal(this);this._isDisposed=false;this._virtualDocument=null;this._connectionManager=t.connectionManager;this._isConnected=false;this._trans=(t.translator||r.nullTranslator).load("jupyterlab");this.widget.context.saveState.connect(this.onSaveState,this);this.connectionManager.closed.connect(this.onConnectionClosed,this);this.widget.disposed.connect(this.dispose,this);this._editorToAdapter=new WeakMap;this.editorAdded.connect(this._onEditorAdded,this);this.editorRemoved.connect(this._onEditorRemoved,this);this._connectionManager.languageServerManager.sessionsChanged.connect(this._onLspSessionOrFeatureChanged,this);this.options.featureManager.featureRegistered.connect(this._onLspSessionOrFeatureChanged,this)}get isDisposed(){return this._isDisposed}get hasMultipleEditors(){return this.editors.length>1}get widgetId(){return this.widget.id}get language(){if(c.hasOwnProperty(this.mimeType)){return c[this.mimeType]}else{let e=this.mimeType.split(";")[0];let[t,n]=e.split("/");if(t==="application"||t==="text"){if(n.startsWith("x-")){return n.substring(2)}else{return n}}else{return this.mimeType}}}get adapterConnected(){return this._adapterConnected}get activeEditorChanged(){return this._activeEditorChanged}get disposed(){return this._disposed}get editorAdded(){return this._editorAdded}get editorRemoved(){return this._editorRemoved}get isConnected(){return this._isConnected}get connectionManager(){return this._connectionManager}get trans(){return this._trans}get updateFinished(){return this._updateFinished}get virtualDocument(){return this._virtualDocument}onConnectionClosed(e,{virtualDocument:t}){if(t===this.virtualDocument){this.dispose()}}dispose(){if(this._isDisposed){return}this.editorAdded.disconnect(this._onEditorAdded,this);this.editorRemoved.disconnect(this._onEditorRemoved,this);this._connectionManager.languageServerManager.sessionsChanged.disconnect(this._onLspSessionOrFeatureChanged,this);this.options.featureManager.featureRegistered.disconnect(this._onLspSessionOrFeatureChanged,this);this._isDisposed=true;this.disconnect();this._virtualDocument=null;this._disposed.emit();a.Signal.clearData(this)}disconnect(){var e,t;const n=(e=this.virtualDocument)===null||e===void 0?void 0:e.uri;const{model:i}=this.widget.context;if(n){this.connectionManager.unregisterDocument(n)}i.contentChanged.disconnect(this._onContentChanged,this);for(let{ceEditor:s}of this.editors){this._editorRemoved.emit({editor:s})}(t=this.virtualDocument)===null||t===void 0?void 0:t.dispose()}updateDocuments(){if(this._isDisposed){console.warn("Cannot update documents: adapter disposed");return Promise.reject("Cannot update documents: adapter disposed")}return this.virtualDocument.updateManager.updateDocuments(this.editors)}documentChanged(e,t,n=false){if(this._isDisposed){console.warn("Cannot swap document: adapter disposed");return}let i=this.connectionManager.connections.get(e.uri);if(!(i===null||i===void 0?void 0:i.isReady)){console.log("Skipping document update signal: connection not ready");return}i.sendFullTextChange(e.value,e.documentInfo)}reloadConnection(){if(this.virtualDocument===null){return}this.disconnect();this.initVirtual();this.connectDocument(this.virtualDocument,true).catch(console.warn)}onSaveState(e,t){if(this.virtualDocument===null){return}if(t==="completed"){const e=[this.virtualDocument];for(let t of e){let n=this.connectionManager.connections.get(t.uri);if(!n){continue}n.sendSaved(t.documentInfo);for(let i of t.foreignDocuments.values()){e.push(i)}}}}async onConnected(e){let{virtualDocument:t}=e;this._adapterConnected.emit(e);this._isConnected=true;try{await this.updateDocuments()}catch(n){console.warn("Could not update documents",n);return}this.documentChanged(t,t,true);e.connection.serverNotifications["$/logTrace"].connect(((n,i)=>{console.log(e.connection.serverIdentifier,"trace",t.uri,i)}));e.connection.serverNotifications["window/logMessage"].connect(((e,t)=>{console.log(e.serverIdentifier+": "+t.message)}));e.connection.serverNotifications["window/showMessage"].connect(((e,t)=>{void(0,o.showDialog)({title:this.trans.__("Message from ")+e.serverIdentifier,body:t.message})}));e.connection.serverRequests["window/showMessageRequest"].setHandler((async t=>{const n=t.actions;const i=n?n.map((e=>d({label:e.title}))):[d({label:this.trans.__("Dismiss")})];const s=await(0,o.showDialog)({title:this.trans.__("Message from ")+e.connection.serverIdentifier,body:t.message,buttons:i});const r=i.indexOf(s.button);if(r===-1){return null}if(n){return n[r]}return null}))}async connectDocument(e,t=false){e.foreignDocumentOpened.connect(this.onForeignDocumentOpened,this);const n=await this._connect(e).catch(console.error);if(n&&n.connection){e.changed.connect(this.documentChanged,this);if(t){n.connection.sendOpenWhenReady(e.documentInfo)}}}initVirtual(){var e;(e=this._virtualDocument)===null||e===void 0?void 0:e.dispose();this._virtualDocument=this.createVirtualDocument();this._onLspSessionOrFeatureChanged()}async onForeignDocumentOpened(e,t){const{foreignDocument:n}=t;await this.connectDocument(n,true);n.foreignDocumentClosed.connect(this._onForeignDocumentClosed,this)}_onEditorAdded(e,t){const{editor:n}=t;const i=new l({editor:n,widgetAdapter:this,extensions:this.options.featureManager.extensionFactories()});this._editorToAdapter.set(n,i)}_onEditorRemoved(e,t){const{editor:n}=t;const i=this._editorToAdapter.get(n);i===null||i===void 0?void 0:i.dispose();this._editorToAdapter.delete(n)}_onForeignDocumentClosed(e,t){const{foreignDocument:n}=t;n.foreignDocumentClosed.disconnect(this._onForeignDocumentClosed,this);n.foreignDocumentOpened.disconnect(this.onForeignDocumentOpened,this);n.changed.disconnect(this.documentChanged,this)}async _connect(e){let t=e.language;let n={textDocument:{synchronization:{dynamicRegistration:true,willSave:false,didSave:true,willSaveWaitUntil:false}},workspace:{didChangeConfiguration:{dynamicRegistration:true}}};n=s()(n,this.options.featureManager.clientCapabilities());let i={capabilities:n,virtualDocument:e,language:t,hasLspSupportedFile:e.hasLspSupportedFile};let o=await this.connectionManager.connect(i);if(o){await this.onConnected({virtualDocument:e,connection:o});return{connection:o,virtualDocument:e}}else{return undefined}}async _onContentChanged(e){const t=this.updateDocuments();if(!t){console.warn("Could not update documents");return}this._updateFinished=t.catch(console.warn);await this.updateFinished}_shouldUpdateVirtualDocument(){const{languageServerManager:e}=this.connectionManager;return e.isEnabled&&this.options.featureManager.features.length>0}_onLspSessionOrFeatureChanged(){if(!this._virtualDocument){return}const{model:e}=this.widget.context;if(this._shouldUpdateVirtualDocument()){e.contentChanged.connect(this._onContentChanged,this)}else{e.contentChanged.disconnect(this._onContentChanged,this)}}}var u=n(93037);class p{constructor(e){this._isDisposed=false;this._current=null;this._adapters=new Set;this._adapterAdded=new a.Signal(this);this._adapterUpdated=new a.Signal(this);this._currentChanged=new a.Signal(this);const t=this._shell=e.shell;t.currentChanged.connect(((e,t)=>{let n=t.newValue;if(!n||!(n instanceof u.DocumentWidget)){return}const i=this.find((e=>e.widget===n));if(!i){return}this._current=i;this._currentChanged.emit(i)}))}get currentChanged(){return this._currentChanged}get currentAdapter(){return this._current}get size(){return this._adapters.size}get adapterAdded(){return this._adapterAdded}get adapterUpdated(){return this._adapterUpdated}add(e){if(e.isDisposed){const t="A disposed object cannot be added.";console.warn(t,e);throw new Error(t)}if(this._adapters.has(e)){const t="This object already exists in the pool.";console.warn(t,e);throw new Error(t)}this._adapters.add(e);this._adapterAdded.emit(e);e.disposed.connect((()=>{this._adapters.delete(e);if(e===this._current){this._current=null;this._currentChanged.emit(this._current)}}),this);const t=this._shell.activeWidget;if(!t||!(t instanceof u.DocumentWidget)){this._current=e;this._currentChanged.emit(e)}}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._adapters.clear();a.Signal.clearData(this)}find(e){const t=this._adapters.values();for(const n of t){if(e(n)){return n}}return undefined}forEach(e){this._adapters.forEach(e)}filter(e){const t=[];this.forEach((n=>{if(e(n)){t.push(n)}}));return t}has(e){return this._adapters.has(e)}}var m=n(30397);var g=n(5592);var f;(function(e){e.URL_NS="lsp"})(f||(f={}));const v=new g.Token("@jupyterlab/lsp:ILSPDocumentConnectionManager","Provides the virtual documents and language server connections service.");const _=new g.Token("@jupyterlab/lsp:ILSPFeatureManager","Provides the language server feature manager. This token is required to register new client capabilities.");const b=new g.Token("@jupyterlab/lsp:ILSPCodeExtractorsManager","Provides the code extractor manager. This token is required in your extension to register code extractor allowing the creation of multiple virtual document from an opened document.");const y=new g.Token("@jupyterlab/lsp:IWidgetLSPAdapterTracker","Provides the WidgetLSPAdapter tracker. This token is required in your extension to track WidgetLSPAdapters.");var w;(function(e){let t;(function(e){e["PUBLISH_DIAGNOSTICS"]="textDocument/publishDiagnostics";e["SHOW_MESSAGE"]="window/showMessage";e["LOG_TRACE"]="$/logTrace";e["LOG_MESSAGE"]="window/logMessage"})(t=e.ServerNotification||(e.ServerNotification={}));let n;(function(e){e["DID_CHANGE"]="textDocument/didChange";e["DID_CHANGE_CONFIGURATION"]="workspace/didChangeConfiguration";e["DID_OPEN"]="textDocument/didOpen";e["DID_SAVE"]="textDocument/didSave";e["INITIALIZED"]="initialized";e["SET_TRACE"]="$/setTrace"})(n=e.ClientNotification||(e.ClientNotification={}));let i;(function(e){e["REGISTER_CAPABILITY"]="client/registerCapability";e["SHOW_MESSAGE_REQUEST"]="window/showMessageRequest";e["UNREGISTER_CAPABILITY"]="client/unregisterCapability";e["WORKSPACE_CONFIGURATION"]="workspace/configuration"})(i=e.ServerRequest||(e.ServerRequest={}));let s;(function(e){e["CODE_ACTION"]="textDocument/codeAction";e["COMPLETION"]="textDocument/completion";e["COMPLETION_ITEM_RESOLVE"]="completionItem/resolve";e["DEFINITION"]="textDocument/definition";e["DOCUMENT_COLOR"]="textDocument/documentColor";e["DOCUMENT_HIGHLIGHT"]="textDocument/documentHighlight";e["DOCUMENT_SYMBOL"]="textDocument/documentSymbol";e["HOVER"]="textDocument/hover";e["IMPLEMENTATION"]="textDocument/implementation";e["INITIALIZE"]="initialize";e["REFERENCES"]="textDocument/references";e["RENAME"]="textDocument/rename";e["SIGNATURE_HELP"]="textDocument/signatureHelp";e["TYPE_DEFINITION"]="textDocument/typeDefinition";e["LINKED_EDITING_RANGE"]="textDocument/linkedEditingRange";e["INLINE_VALUE"]="textDocument/inlineValue";e["INLAY_HINT"]="textDocument/inlayHint";e["WORKSPACE_SYMBOL"]="workspace/symbol";e["WORKSPACE_SYMBOL_RESOLVE"]="workspaceSymbol/resolve";e["FORMATTING"]="textDocument/formatting";e["RANGE_FORMATTING"]="textDocument/rangeFormatting"})(s=e.ClientRequest||(e.ClientRequest={}))})(w||(w={}));async function C(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}function x(e,t=35,n=50,i=e=>e){return(async()=>{let s=0;while(e()!==true){s+=1;if(t!==-1&&s>t){throw Error("Too many retrials")}n=i(n);await C(n)}return e})()}function S(e){const t=[];for(let n in e){const i=k(n.split("."),e[n]);t.push(i)}return s()({},...t)}const k=(e,t)=>{const n=Object.create(null);let i=n;e.forEach(((n,s)=>{i[n]=Object.create(null);if(s===e.length-1){i[n]=t}else{i=i[n]}}));return n};class j extends Map{constructor(e,t){super(t);this.defaultFactory=e}get(e){return this.getOrCreate(e)}getOrCreate(e,...t){if(this.has(e)){return super.get(e)}else{let n=this.defaultFactory(e,...t);this.set(e,n);return n}}}function I(e,t){const n=JSON.parse(JSON.stringify(e));const{method:i,registerOptions:s}=t;const o=i.substring(13)+"Provider";if(o){if(!s){n[o]=true}else{n[o]=JSON.parse(JSON.stringify(s))}}else{console.warn("Could not register server capability.",t);return null}return n}function E(e,t){const n=JSON.parse(JSON.stringify(e));const{method:i}=t;const s=i.substring(13)+"Provider";delete n[s];return n}var T=n(96092);class M{constructor(e){this.openedUris=new Map;this._isConnected=false;this._isInitialized=false;this._disposables=[];this._disposed=new a.Signal(this);this._isDisposed=false;this._rootUri=e.rootUri}get isConnected(){return this._isConnected}get isInitialized(){return this._isInitialized}get isReady(){return this._isConnected&&this._isInitialized}get disposed(){return this._disposed}get isDisposed(){return this._isDisposed}connect(e){this.socket=e;(0,T.listen)({webSocket:this.socket,logger:new T.ConsoleLogger,onConnection:e=>{e.listen();this._isConnected=true;this.connection=e;this.sendInitialize();const t=this.connection.onRequest("client/registerCapability",(e=>{e.registrations.forEach((e=>{try{this.serverCapabilities=I(this.serverCapabilities,e)}catch(t){console.error(t)}}))}));this._disposables.push(t);const n=this.connection.onRequest("client/unregisterCapability",(e=>{e.unregisterations.forEach((e=>{this.serverCapabilities=E(this.serverCapabilities,e)}))}));this._disposables.push(n);const i=this.connection.onClose((()=>{this._isConnected=false}));this._disposables.push(i)}})}close(){if(this.connection){this.connection.dispose()}this.openedUris.clear();this.socket.close()}sendInitialize(){if(!this._isConnected){return}this.openedUris.clear();const e=this.initializeParams();this.connection.sendRequest("initialize",e).then((e=>{this.onServerInitialized(e)}),(e=>{console.warn("LSP websocket connection initialization failure",e)}))}sendOpen(e){const t={textDocument:{uri:e.uri,languageId:e.languageId,text:e.text,version:e.version}};this.connection.sendNotification("textDocument/didOpen",t).catch(console.error);this.openedUris.set(e.uri,true);this.sendChange(e)}sendChange(e){if(!this.isReady){return}if(!this.openedUris.get(e.uri)){this.sendOpen(e);return}const t={textDocument:{uri:e.uri,version:e.version},contentChanges:[{text:e.text}]};this.connection.sendNotification("textDocument/didChange",t).catch(console.error);e.version++}sendSaved(e){if(!this.isReady){return}const t={textDocument:{uri:e.uri,version:e.version},text:e.text};this.connection.sendNotification("textDocument/didSave",t).catch(console.error)}sendConfigurationChange(e){if(!this.isReady){return}this.connection.sendNotification("workspace/didChangeConfiguration",e).catch(console.error)}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._disposables.forEach((e=>{e.dispose()}));this._disposed.emit();a.Signal.clearData(this)}onServerInitialized(e){this._isInitialized=true;this.serverCapabilities=e.capabilities;this.connection.sendNotification("initialized",{}).catch(console.error);this.connection.sendNotification("workspace/didChangeConfiguration",{settings:{}}).catch(console.error)}initializeParams(){return{capabilities:{},processId:null,rootUri:this._rootUri,workspaceFolders:null}}}class D{constructor(e,t,n){this.connection=e;this.method=t;this.emitter=n}request(e){this.emitter.log(R.clientRequested,{method:this.method,message:e});return this.connection.sendRequest(this.method,e).then((t=>{this.emitter.log(R.resultForClient,{method:this.method,message:e});return t}))}}class A{constructor(e,t,n){this.connection=e;this.method=t;this.emitter=n;this.connection.onRequest(t,this._handle.bind(this));this._handler=null}setHandler(e){this._handler=e}clearHandler(){this._handler=null}_handle(e){this.emitter.log(R.serverRequested,{method:this.method,message:e});if(!this._handler){return new Promise((()=>undefined))}return this._handler(e,this.emitter).then((e=>{this.emitter.log(R.responseForServer,{method:this.method,message:e});return e}))}}const P={TEXT_DOCUMENT_SYNC:"textDocumentSync",COMPLETION:"completionProvider",HOVER:"hoverProvider",SIGNATURE_HELP:"signatureHelpProvider",DECLARATION:"declarationProvider",DEFINITION:"definitionProvider",TYPE_DEFINITION:"typeDefinitionProvider",IMPLEMENTATION:"implementationProvider",REFERENCES:"referencesProvider",DOCUMENT_HIGHLIGHT:"documentHighlightProvider",DOCUMENT_SYMBOL:"documentSymbolProvider",CODE_ACTION:"codeActionProvider",CODE_LENS:"codeLensProvider",DOCUMENT_LINK:"documentLinkProvider",COLOR:"colorProvider",DOCUMENT_FORMATTING:"documentFormattingProvider",DOCUMENT_RANGE_FORMATTING:"documentRangeFormattingProvider",DOCUMENT_ON_TYPE_FORMATTING:"documentOnTypeFormattingProvider",RENAME:"renameProvider",FOLDING_RANGE:"foldingRangeProvider",EXECUTE_COMMAND:"executeCommandProvider",SELECTION_RANGE:"selectionRangeProvider",WORKSPACE_SYMBOL:"workspaceSymbolProvider",WORKSPACE:"workspace"};function L(e,t){const n={};for(let i of Object.values(e)){n[i]=t(i)}return n}var R;(function(e){e[e["clientNotifiedServer"]=0]="clientNotifiedServer";e[e["serverNotifiedClient"]=1]="serverNotifiedClient";e[e["serverRequested"]=2]="serverRequested";e[e["clientRequested"]=3]="clientRequested";e[e["resultForClient"]=4]="resultForClient";e[e["responseForServer"]=5]="responseForServer"})(R||(R={}));class N extends M{constructor(e){super(e);this._closingManually=false;this._closeSignal=new a.Signal(this);this._errorSignal=new a.Signal(this);this._serverInitialized=new a.Signal(this);this._options=e;this.logAllCommunication=false;this.serverIdentifier=e.serverIdentifier;this.serverLanguage=e.languageId;this.documentsToOpen=[];this.clientNotifications=this.constructNotificationHandlers(w.ClientNotification);this.serverNotifications=this.constructNotificationHandlers(w.ServerNotification)}get closeSignal(){return this._closeSignal}get errorSignal(){return this._errorSignal}get serverInitialized(){return this._serverInitialized}dispose(){if(this.isDisposed){return}if(this.serverRequests){Object.values(this.serverRequests).forEach((e=>e.clearHandler()))}this.close();super.dispose()}log(e,t){if(this.logAllCommunication){console.log(e,t)}}sendOpenWhenReady(e){if(this.isReady){this.sendOpen(e)}else{this.documentsToOpen.push(e)}}sendSelectiveChange(e,t){this._sendChange([e],t)}sendFullTextChange(e,t){this._sendChange([{text:e}],t)}provides(e){return!!(this.serverCapabilities&&this.serverCapabilities[e])}close(){try{this._closingManually=true;super.close()}catch(e){this._closingManually=false}}connect(e){super.connect(e);x((()=>this.isConnected),-1).then((()=>{const e=this.connection.onClose((()=>{this._isConnected=false;this._closeSignal.emit(this._closingManually)}));this._disposables.push(e)})).catch((()=>{console.error("Could not connect onClose signal")}))}async getCompletionResolve(e){if(!this.isReady){return}return this.connection.sendRequest("completionItem/resolve",e)}constructNotificationHandlers(e){const t=()=>new a.Signal(this);return L(e,t)}constructClientRequestHandler(e){return L(e,(e=>new D(this.connection,e,this)))}constructServerRequestHandler(e){return L(e,(e=>new A(this.connection,e,this)))}initializeParams(){return{...super.initializeParams(),capabilities:this._options.capabilities,initializationOptions:null,processId:null,workspaceFolders:null}}onServerInitialized(e){this.afterInitialized();super.onServerInitialized(e);while(this.documentsToOpen.length){this.sendOpen(this.documentsToOpen.pop())}this._serverInitialized.emit(this.serverCapabilities)}afterInitialized(){const e=this.connection.onError((e=>this._errorSignal.emit(e)));this._disposables.push(e);for(const t of Object.values(w.ServerNotification)){const e=this.serverNotifications[t];const n=this.connection.onNotification(t,(n=>{this.log(R.serverNotifiedClient,{method:t,message:n});e.emit(n)}));this._disposables.push(n)}for(const t of Object.values(w.ClientNotification)){const e=this.clientNotifications[t];e.connect(((e,n)=>{this.log(R.clientNotifiedServer,{method:t,message:n});this.connection.sendNotification(t,n).catch(console.error)}))}this.clientRequests=this.constructClientRequestHandler(w.ClientRequest);this.serverRequests=this.constructServerRequestHandler(w.ServerRequest);this.serverRequests["client/registerCapability"].setHandler((async e=>{e.registrations.forEach((e=>{try{const t=I(this.serverCapabilities,e);if(t===null){console.error(`Failed to register server capability: ${e}`);return}this.serverCapabilities=t}catch(t){console.error(t)}}))}));this.serverRequests["client/unregisterCapability"].setHandler((async e=>{e.unregisterations.forEach((e=>{this.serverCapabilities=E(this.serverCapabilities,e)}))}));this.serverRequests["workspace/configuration"].setHandler((async e=>e.items.map((e=>null))))}_sendChange(e,t){if(!this.isReady){return}if(t.uri.length===0){return}if(!this.openedUris.get(t.uri)){this.sendOpen(t)}const n={textDocument:{uri:t.uri,version:t.version},contentChanges:e};this.connection.sendNotification("textDocument/didChange",n).catch(console.error);t.version++}}class O{constructor(e){this.onNewConnection=e=>{const t=(t,n)=>{console.error(n);let i=n.length&&n.length>=1?n[0]:new Error;if(i.message.indexOf("code = 1005")!==-1){console.error(`Connection failed for ${e}`);this._forEachDocumentOfConnection(e,(t=>{console.error("disconnecting "+t.uri);this._closed.emit({connection:e,virtualDocument:t});this._ignoredLanguages.add(t.language);console.error(`Cancelling further attempts to connect ${t.uri} and other documents for this language (no support from the server)`)}))}else if(i.message.indexOf("code = 1006")!==-1){console.error("Connection closed by the server")}else{console.error("Connection error:",n)}};e.errorSignal.connect(t);const n=()=>{this._forEachDocumentOfConnection(e,(t=>{this._initialized.emit({connection:e,virtualDocument:t})}));this.updateServerConfigurations(this.initialConfigurations)};e.serverInitialized.connect(n);const i=(t,n)=>{if(!n){console.error("Connection unexpectedly disconnected")}else{console.log("Connection closed");this._forEachDocumentOfConnection(e,(t=>{this._closed.emit({connection:e,virtualDocument:t})}))}};e.closeSignal.connect(i)};this._initialized=new a.Signal(this);this._connected=new a.Signal(this);this._disconnected=new a.Signal(this);this._closed=new a.Signal(this);this._documentsChanged=new a.Signal(this);this.connections=new Map;this.documents=new Map;this.adapters=new Map;this._ignoredLanguages=new Set;this.languageServerManager=e.languageServerManager;B.setLanguageServerManager(e.languageServerManager);e.adapterTracker.adapterAdded.connect(((e,t)=>{const n=t.widget.context.path;this.registerAdapter(n,t)}))}get initialized(){return this._initialized}get connected(){return this._connected}get disconnected(){return this._disconnected}get closed(){return this._closed}get documentsChanged(){return this._documentsChanged}get ready(){return B.getLanguageServerManager().ready}connectDocumentSignals(e){e.foreignDocumentOpened.connect(this.onForeignDocumentOpened,this);e.foreignDocumentClosed.connect(this.onForeignDocumentClosed,this);this.documents.set(e.uri,e);this._documentsChanged.emit(this.documents)}disconnectDocumentSignals(e,t=true){e.foreignDocumentOpened.disconnect(this.onForeignDocumentOpened,this);e.foreignDocumentClosed.disconnect(this.onForeignDocumentClosed,this);this.documents.delete(e.uri);for(const n of e.foreignDocuments.values()){this.disconnectDocumentSignals(n,false)}if(t){this._documentsChanged.emit(this.documents)}}onForeignDocumentOpened(e,t){}onForeignDocumentClosed(e,t){const{foreignDocument:n}=t;this.unregisterDocument(n.uri,false);this.disconnectDocumentSignals(n)}registerAdapter(e,t){this.adapters.set(e,t);t.widget.context.pathChanged.connect(((n,i)=>{this.adapters.delete(e);this.adapters.set(i,t)}));t.disposed.connect((()=>{if(t.virtualDocument){this.documents.delete(t.virtualDocument.uri)}this.adapters.delete(e)}))}updateConfiguration(e){this.languageServerManager.setConfiguration(e)}updateServerConfigurations(e){let t;for(t in e){if(!e.hasOwnProperty(t)){continue}const n=e[t];const i=S(n.configuration||{});const s={settings:i};B.updateServerConfiguration(t,s)}}async retryToConnect(e,t,n=-1){let{virtualDocument:i}=e;if(this._ignoredLanguages.has(i.language)){return}let s=t*1e3;let o=false;while(n!==0&&!o){await this.connect(e).then((()=>{o=true})).catch((e=>{console.warn(e)}));console.log("will attempt to re-connect in "+s/1e3+" seconds");await C(s);s=s<5*1e3?s+500:s}}disconnect(e){B.disconnect(e)}async connect(e,t=30,n=5){let i=await this._connectSocket(e);let{virtualDocument:s}=e;if(!i){return}if(!i.isReady){try{await x((()=>i.isReady),Math.round(t*1e3/150),150)}catch(o){console.log(`Connection to ${s.uri} timed out after ${t} seconds, will continue retrying for another ${n} minutes`);try{await x((()=>i.isReady),60*n,1e3)}catch(r){console.log(`Connection to ${s.uri} timed out again after ${n} minutes, giving up`);return}}}this._connected.emit({connection:i,virtualDocument:s});return i}unregisterDocument(e,t=true){const n=this.connections.get(e);if(n){this.connections.delete(e);const i=new Set(this.connections.values());if(!i.has(n)){this.disconnect(n.serverIdentifier);n.dispose()}if(t){this._documentsChanged.emit(this.documents)}}}updateLogging(e,t){for(const n of this.connections.values()){n.logAllCommunication=e;if(t!==null){n.clientNotifications["$/setTrace"].emit({value:t})}}}async _connectSocket(e){let{language:t,capabilities:n,virtualDocument:i}=e;this.connectDocumentSignals(i);const s=O.solveUris(i,t);const o=this.languageServerManager.getMatchingServers({language:t});const r=o.length===0?null:o[0];if(!s){return}const a=await B.connection(t,r,s,this.onNewConnection,n);this.connections.set(i.uri,a);return a}_forEachDocumentOfConnection(e,t){for(const[n,i]of this.connections.entries()){if(e!==i){continue}t(this.documents.get(n))}}}(function(e){function t(e,t){var n;const i=B.getLanguageServerManager();const s=i.settings.wsUrl;const o=m.PageConfig.getOption("rootUri");const r=m.PageConfig.getOption("virtualDocumentsUri");const a={language:t};const l=i.getMatchingServers(a);const d=l.length===0?null:l[0];if(d===null){return}const c=i.getMatchingSpecs(a);const h=c.get(d);if(!h){console.warn(`Specification not available for server ${d}`)}const u=(n=h===null||h===void 0?void 0:h.requires_documents_on_disk)!==null&&n!==void 0?n:true;const p=!u;const g=e.hasLspSupportedFile||p?o:r;let f=m.URLExt.join(g,e.uri);if(!f.startsWith("file:///")&&f.startsWith("file://")){f=f.replace("file://","file:///");if(f.startsWith("file:///users/")&&g.startsWith("file:///Users/")){f=f.replace("file:///users/","file:///Users/")}}return{base:g,document:f,server:m.URLExt.join("ws://jupyter-lsp",t),socket:m.URLExt.join(s,"lsp","ws",d)}}e.solveUris=t})(O||(O={}));var B;(function(e){const t=new Map;let n;function i(){return n}e.getLanguageServerManager=i;function s(e){n=e}e.setLanguageServerManager=s;function o(e){const n=t.get(e);if(n){n.close();t.delete(e)}}e.disconnect=o;async function r(n,i,s,o,r){let a=t.get(i);if(!a){const{settings:a}=e.getLanguageServerManager();const l=new a.WebSocket(s.socket);const d=new N({languageId:n,serverUri:s.server,rootUri:s.base,serverIdentifier:i,capabilities:r});t.set(i,d);d.connect(l);o(d)}a=t.get(i);return a}e.connection=r;function a(e,n){const i=t.get(e);if(i){i.sendConfigurationChange(n)}}e.updateServerConfiguration=a})(B||(B={}));class F{constructor(){this._extractorMap=new Map;this._extractorMapAnyLanguage=new Map}getExtractors(e,t){var n,i;if(t){const i=this._extractorMap.get(e);if(!i){return[]}return(n=i.get(t))!==null&&n!==void 0?n:[]}else{return(i=this._extractorMapAnyLanguage.get(e))!==null&&i!==void 0?i:[]}}register(e,t){const n=e.cellType;if(t){n.forEach((n=>{if(!this._extractorMap.has(n)){this._extractorMap.set(n,new Map)}const i=this._extractorMap.get(n);const s=i.get(t);if(!s){i.set(t,[e])}else{s.push(e)}}))}else{n.forEach((t=>{if(!this._extractorMapAnyLanguage.has(t)){this._extractorMapAnyLanguage.set(t,[])}this._extractorMapAnyLanguage.get(t).push(e)}))}}}function z(e,t){return t&&e.line===t.line&&e.ch===t.ch}function H(e,t){let n=0;let i=0;for(let s of t){if(s.length+1<=e){e-=s.length+1;n+=1}else{i=e;break}}return{line:n,column:i}}function W(e,t,n=false){let i=n?0:1;let s=0;for(let o=0;oo){s+=n.length+i}else{s+=e.column;break}}return s}var V;(function(e){function t(e,t){const{line:n,character:i}=e;return n>=t.start.line&&n<=t.end.line&&(n!=t.start.line||i>t.start.character)&&(n!=t.end.line||i<=t.end.character)}e.isWithinRange=t})(V||(V={}));class U{constructor(e){this.language=e.language;this.standalone=e.isStandalone;this.fileExtension=e.file_extension;this.cellType=e.cellType}hasForeignCode(e,t){return this.cellType.includes(t)}extractForeignCode(e){let t=e.split("\n");let n=new Array;let i=e;let s=H(0,t);let o=H(i.length,t);n.push({hostCode:"",foreignCode:i,range:{start:s,end:o},virtualShift:null});return n}}class q{constructor(){this.features=[];this._featureRegistered=new a.Signal(this)}get featureRegistered(){return this._featureRegistered}register(e){if(this.features.some((t=>t.id===e.id))){console.warn(`Feature with id ${e.id} is already registered, skipping.`)}else{this.features.push(e);this._featureRegistered.emit(e)}}clientCapabilities(){let e={};for(const t of this.features){if(!t.capabilities){continue}e=s()(e,t.capabilities)}return e}extensionFactories(){const e=[];for(const t of this.features){if(!t.extensionFactory){continue}e.push(t.extensionFactory)}return e}}var $=n(28548);class K{constructor(e){this._sessions=new Map;this._specs=new Map;this._warningsEmitted=new Set;this._ready=new g.PromiseDelegate;this._sessionsChanged=new a.Signal(this);this._isDisposed=false;this._enabled=true;this._settings=e.settings||$.ServerConnection.makeSettings();this._baseUrl=e.baseUrl||m.PageConfig.getBaseUrl();this._retries=e.retries||2;this._retriesInterval=e.retriesInterval||1e4;this._statusCode=-1;this._configuration={};this.fetchSessions().catch((e=>console.log(e)))}get isEnabled(){return this._enabled}get isDisposed(){return this._isDisposed}get settings(){return this._settings}get specs(){return this._specs}get statusUrl(){return m.URLExt.join(this._baseUrl,f.URL_NS,"status")}get sessionsChanged(){return this._sessionsChanged}get sessions(){return this._sessions}get ready(){return this._ready.promise}get statusCode(){return this._statusCode}async enable(){this._enabled=true;await this.fetchSessions()}disable(){this._enabled=false;this._sessions=new Map;this._sessionsChanged.emit(void 0)}dispose(){if(this._isDisposed){return}this._isDisposed=true;a.Signal.clearData(this)}setConfiguration(e){this._configuration=e}getMatchingServers(e){if(!e.language){console.error("Cannot match server by language: language not available; ensure that kernel and specs provide language and MIME type");return[]}const t=[];for(const[n,i]of this._sessions.entries()){if(this.isMatchingSpec(e,i.spec)){t.push(n)}}return t.sort(this.compareRanks.bind(this))}getMatchingSpecs(e){const t=new Map;for(const[n,i]of this._specs.entries()){if(this.isMatchingSpec(e,i)){t.set(n,i)}}return t}async fetchSessions(){if(!this._enabled){return}let e=await $.ServerConnection.makeRequest(this.statusUrl,{method:"GET"},this._settings);this._statusCode=e.status;if(!e.ok){if(this._retries>0){this._retries-=1;setTimeout(this.fetchSessions.bind(this),this._retriesInterval)}else{this._ready.resolve(undefined);console.log("Missing jupyter_lsp server extension, skipping.")}return}let t;try{const n=await e.json();t=n.sessions;try{this.version=n.version;this._specs=new Map(Object.entries(n.specs))}catch(i){console.warn(i)}}catch(i){console.warn(i);this._ready.resolve(undefined);return}for(let s of Object.keys(t)){let e=s;if(this._sessions.has(e)){Object.assign(this._sessions.get(e)||{},t[s])}else{this._sessions.set(e,t[s])}}const n=this._sessions.keys();for(const s in n){if(!t[s]){let e=s;this._sessions.delete(e)}}this._sessionsChanged.emit(void 0);this._ready.resolve(undefined)}isMatchingSpec(e,t){const n=e.language.toLocaleLowerCase();return t.languages.some((e=>e.toLocaleLowerCase()==n))}warnOnce(e){if(!this._warningsEmitted.has(e)){this._warningsEmitted.add(e);console.warn(e)}}compareRanks(e,t){var n,i,s,o;const r=50;const a=(i=(n=this._configuration[e])===null||n===void 0?void 0:n.rank)!==null&&i!==void 0?i:r;const l=(o=(s=this._configuration[t])===null||s===void 0?void 0:s.rank)!==null&&o!==void 0?o:r;if(a==l){this.warnOnce(`Two matching servers: ${e} and ${t} have the same rank; choose which one to use by changing the rank in Advanced Settings Editor`);return e.localeCompare(t)}return l-a}}function J(e,t){if(t.start.line===t.end.line){return e.line===t.start.line&&e.column>=t.start.column&&e.column<=t.end.column}return e.line===t.start.line&&e.column>=t.start.column&&e.linet.start.line&&e.column<=t.end.column&&e.line===t.end.line||e.line>t.start.line&&e.linenew Array));this._remainingLifetime=6;this.documentInfo=new G(this);this.updateManager=new Q(this);this.updateManager.updateBegan.connect(this._updateBeganSlot,this);this.updateManager.blockAdded.connect(this._blockAddedSlot,this);this.updateManager.updateFinished.connect(this._updateFinishedSlot,this);this.clear()}static ceToCm(e){return{line:e.line,ch:e.column}}get isDisposed(){return this._isDisposed}get foreignDocumentClosed(){return this._foreignDocumentClosed}get foreignDocumentOpened(){return this._foreignDocumentOpened}get changed(){return this._changed}get virtualId(){return this.standalone?this.instanceId+"("+this.language+")":this.language}get ancestry(){if(!this.parent){return[this]}return this.parent.ancestry.concat([this])}get idPath(){if(!this.parent){return this.virtualId}return this.parent.idPath+"-"+this.virtualId}get uri(){const e=encodeURI(this.path);if(!this.parent){return e}return e+"."+this.idPath+"."+this.fileExtension}get value(){let e="\n".repeat(this.blankLinesBetweenCells);return this.lineBlocks.join(e)}get lastLine(){const e=this.lineBlocks[this.lineBlocks.length-1].split("\n");return e[e.length-1]}get root(){return this.parent?this.parent.root:this}dispose(){if(this._isDisposed){return}this._isDisposed=true;this.parent=null;this.closeAllForeignDocuments();this.updateManager.dispose();this.foreignDocuments.clear();this.sourceLines.clear();this.unusedStandaloneDocuments.clear();this.virtualLines.clear();this.documentInfo=null;this.lineBlocks=null;a.Signal.clearData(this)}clear(){this.unusedStandaloneDocuments.clear();for(let e of this.foreignDocuments.values()){e.clear();if(e.standalone){let t=this.unusedStandaloneDocuments.get(e.language);t.push(e)}}this.virtualLines.clear();this.sourceLines.clear();this.lastVirtualLine=0;this.lastSourceLine=0;this.lineBlocks=[]}documentAtSourcePosition(e){let t=this.sourceLines.get(e.line);if(!t){return this}let n={line:t.editorLine,column:e.ch};for(let[i,{virtualDocument:s}]of t.foreignDocumentsMap){if(J(n,i)){let e={line:n.line-i.start.line,ch:n.column-i.start.column};return s.documentAtSourcePosition(e)}}return this}isWithinForeign(e){let t=this.sourceLines.get(e.line);let n={line:t.editorLine,column:e.ch};for(let[i]of t.foreignDocumentsMap){if(J(n,i)){return true}}return false}transformFromEditorToRoot(e,t){if(!this._editorToSourceLine.has(e)){console.log("Editor not found in _editorToSourceLine map");return null}let n=this._editorToSourceLine.get(e);return{...t,line:t.line+n}}virtualPositionAtDocument(e){let t=this.sourceLines.get(e.line);if(t==null){throw new Error("Source line not mapped to virtual position")}let n=t.virtualLine;let i={line:t.editorLine,column:e.ch};for(let[s,o]of t.foreignDocumentsMap){const{virtualLine:e,virtualDocument:t}=o;if(J(i,s)){let n={line:i.line-s.start.line,ch:i.column-s.start.column};if(t.isWithinForeign(n)){return this.virtualPositionAtDocument(n)}else{n.line+=e;return n}}}return{ch:e.ch,line:n}}appendCodeBlock(e,t={line:0,column:0},n){let i=e.value;let s=e.ceEditor;if(this.isDisposed){console.warn("Cannot append code block: document disposed");return}let o=i.split("\n");let{lines:r,foreignDocumentsMap:a}=this.prepareCodeBlock(e,t);for(let l=0;l!e.has(t))));for(let s of i.values()){s.remainingLifetime-=1;if(s.remainingLifetime<=0){s.dispose();const e=t.get(s);for(const t of e){this.foreignDocuments.delete(t)}}}}transformSourceToEditor(e){let t=this.sourceLines.get(e.line);let n=t.editorLine;let i=t.editorShift;return{ch:e.ch+(n===0?i.column:0),line:n+i.line}}transformVirtualToEditor(e){let t=this.transformVirtualToSource(e);if(t==null){return null}return this.transformSourceToEditor(t)}transformVirtualToSource(e){const t=this.virtualLines.get(e.line).sourceLine;if(t==null){return null}return{ch:e.ch,line:t}}transformVirtualToRoot(e){var t;const n=(t=this.virtualLines.get(e.line))===null||t===void 0?void 0:t.editor;const i=this.transformVirtualToEditor(e);if(!n||!i){return null}return this.root.transformFromEditorToRoot(n,i)}getEditorAtVirtualLine(e){let t=e.line;if(!this.virtualLines.has(t)){t-=1}return this.virtualLines.get(t).editor}getEditorAtSourceLine(e){return this.sourceLines.get(e.line).editor}maybeEmitChanged(){if(this.value!==this.previousValue){this._changed.emit(this)}this.previousValue=this.value;for(let e of this.foreignDocuments.values()){e.maybeEmitChanged()}}get remainingLifetime(){if(!this.parent){return Infinity}return this._remainingLifetime}set remainingLifetime(e){if(this.parent){this._remainingLifetime=e}}_chooseForeignDocument(e){let t;let n=this.foreignDocuments.has(e.language);if(!e.standalone&&n){t=this.foreignDocuments.get(e.language)}else{let n=this.unusedStandaloneDocuments.get(e.language);if(e.standalone&&n.length>0){t=n.pop()}else{t=this.openForeign(e.language,e.standalone,e.fileExtension)}}return t}openForeign(e,t,n){let i=new this.constructor({...this.options,parent:this,standalone:t,fileExtension:n,language:e});const s={foreignDocument:i,parentHost:this};this._foreignDocumentOpened.emit(s);i.foreignDocumentClosed.connect(this.forwardClosedSignal,this);i.foreignDocumentOpened.connect(this.forwardOpenedSignal,this);this.foreignDocuments.set(i.virtualId,i);return i}forwardClosedSignal(e,t){this._foreignDocumentClosed.emit(t)}forwardOpenedSignal(e,t){this._foreignDocumentOpened.emit(t)}_updateBeganSlot(){this._editorToSourceLineNew=new Map}_blockAddedSlot(e,t){this._editorToSourceLineNew.set(t.block.ceEditor,t.virtualDocument.lastSourceLine)}_updateFinishedSlot(){this._editorToSourceLine=this._editorToSourceLineNew}}Y.instancesCount=0;function X(e){let t=new Set;t.add(e);for(let n of e.foreignDocuments.values()){let e=X(n);e.forEach(t.add,t)}return t}class Q{constructor(e){this.virtualDocument=e;this._isDisposed=false;this._updateDone=new Promise((e=>{e()}));this._isUpdateInProgress=false;this._updateLock=false;this._blockAdded=new a.Signal(this);this._documentUpdated=new a.Signal(this);this._updateBegan=new a.Signal(this);this._updateFinished=new a.Signal(this);this.documentUpdated.connect(this._onUpdated,this)}get updateDone(){return this._updateDone}get isDisposed(){return this._isDisposed}get blockAdded(){return this._blockAdded}get documentUpdated(){return this._documentUpdated}get updateBegan(){return this._updateBegan}get updateFinished(){return this._updateFinished}dispose(){if(this._isDisposed){return}this._isDisposed=true;this.documentUpdated.disconnect(this._onUpdated);a.Signal.clearData(this)}async withUpdateLock(e){await x((()=>this._canUpdate()),12,10).then((()=>{try{this._updateLock=true;e()}finally{this._updateLock=false}}))}async updateDocuments(e){let t=new Promise(((t,n)=>{x((()=>this._canUpdate()),10,5).then((()=>{if(this.isDisposed||!this.virtualDocument){t()}try{this._isUpdateInProgress=true;this._updateBegan.emit(e);this.virtualDocument.clear();for(let t of e){this._blockAdded.emit({block:t,virtualDocument:this.virtualDocument});this.virtualDocument.appendCodeBlock(t)}this._updateFinished.emit(e);if(this.virtualDocument){this._documentUpdated.emit(this.virtualDocument);this.virtualDocument.maybeEmitChanged()}t()}catch(i){console.warn("Documents update failed:",i);n(i)}finally{this._isUpdateInProgress=false}})).catch(console.error)}));this._updateDone=t;return t}_onUpdated(e,t){try{t.closeExpiredDocuments()}catch(n){console.warn("Failed to close expired documents")}}_canUpdate(){return!this.isDisposed&&!this._isUpdateInProgress&&!this._updateLock}}},13137:(e,t,n)=>{"use strict";var i=n(10395);var s=n(97913);var o=n(17325);var r=n(23359);var a=n(79010)},72825:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CommandIDs:()=>w,default:()=>M});var i=n(94307);var s=n(14366);var o=n(30397);var r=n(23899);var a=n(28548);var l=n(84739);var d=n(30619);var c=n(26331);var h=n(34236);var u=n(5592);var p=n(1143);var m=n(43801);var g=n(42875);const f="@jupyterlab/mainmenu-extension:recents";var v;(function(e){e.openRecent="recentmenu:open-recent";e.reopenLast="recentmenu:reopen-last";e.clearRecents="docmanager:clear-recents"})(v||(v={}));class _ extends p.Menu{constructor(e){super(e);this._manager=e.manager;this._showDirectories=e.showDirectories;this.updateItems();this._manager.changed.connect(this.updateItems,this)}async _validateRecentlyOpened(){return void Promise.all(this._manager.recentlyOpened.map((e=>this._manager.validate(e))))}onBeforeAttach(e){const t=new u.PromiseDelegate;setTimeout((()=>{t.reject("Recents validation timed out.")}),550);Promise.race([t.promise,this._validateRecentlyOpened()]).then((()=>{this.update()})).catch((()=>{}));super.onBeforeAttach(e)}updateItems(){this.clearItems();this.addItem({command:v.reopenLast});this.addItem({type:"separator"});let e=true;let t=false;this._manager.recentlyOpened.sort(((e,t)=>{if(e.contentType===t.contentType){return 0}else{return e.contentType!=="directory"?1:-1}})).forEach((n=>{const i=n.contentType==="directory";if(i){if(!this._showDirectories){return}t=true}else if(e&&t){e=false;this.addItem({type:"separator"})}this.addItem({command:v.openRecent,args:{recent:n}})}));this.addItem({type:"separator"});this.addItem({command:v.clearRecents})}}const b={id:f,description:"Adds sub-menu for opening recent documents to the File section of the main menu.",autoStart:true,requires:[m.IRecentsManager,r.IMainMenu],optional:[g.IFileBrowserCommands,d.ITranslator],activate:(e,t,n,i,r)=>{const{commands:a}=e;const l=(r!==null&&r!==void 0?r:d.nullTranslator).load("jupyterlab");const c=i!==null;const h=async e=>{const n=await t.validate(e);if(!n){await(0,s.showErrorMessage)(l.__("Could Not Open Recent"),l.__("%1 is no longer valid and will be removed from the list",e.path))}return n};a.addCommand(v.openRecent,{execute:async e=>{const t=e.recent;const n=t.path===""?"/":t.path;const s=await h(t);if(!s){return}if(i&&t.contentType==="directory"){await a.execute(i.openPath,{path:n})}else{await a.execute("docmanager:open",{path:n,factory:t.factory})}},label:e=>{const t=e.recent;if(t){return o.PathExt.joinWithLeadingSlash(t.root,t.path)}else{return l.__("Open a Recent Document (given by `recent` argument)")}},isEnabled:e=>t.recentlyOpened.includes(e.recent)});e.commands.addCommand(v.reopenLast,{execute:async()=>{const e=t.recentlyClosed[0];if(!e){return}const n=await h(e);if(!n){return}await a.execute("docmanager:open",{path:e.path,factory:e.factory});t.removeRecent(e,"closed")},label:()=>{const e=t.recentlyClosed[0];return e?l.__("Reopen %1",e.path):l.__("Reopen Closed Document")},isEnabled:()=>t.recentlyClosed.length!==0,caption:l.__("Reopen recently closed file or notebook.")});const u=new _({commands:a,manager:t,showDirectories:c});u.title.label=l.__("Open Recent");n.fileMenu.addItem({type:"submenu",submenu:u,rank:1})}};const y="@jupyterlab/mainmenu-extension:plugin";var w;(function(e){e.openEdit="editmenu:open";e.undo="editmenu:undo";e.redo="editmenu:redo";e.clearCurrent="editmenu:clear-current";e.clearAll="editmenu:clear-all";e.find="editmenu:find";e.goToLine="editmenu:go-to-line";e.openFile="filemenu:open";e.closeAndCleanup="filemenu:close-and-cleanup";e.createConsole="filemenu:create-console";e.shutdown="filemenu:shutdown";e.logout="filemenu:logout";e.openKernel="kernelmenu:open";e.interruptKernel="kernelmenu:interrupt";e.reconnectToKernel="kernelmenu:reconnect-to-kernel";e.restartKernel="kernelmenu:restart";e.restartKernelAndClear="kernelmenu:restart-and-clear";e.changeKernel="kernelmenu:change";e.shutdownKernel="kernelmenu:shutdown";e.shutdownAllKernels="kernelmenu:shutdownAll";e.openView="viewmenu:open";e.wordWrap="viewmenu:word-wrap";e.lineNumbering="viewmenu:line-numbering";e.matchBrackets="viewmenu:match-brackets";e.openRun="runmenu:open";e.run="runmenu:run";e.runAll="runmenu:run-all";e.restartAndRunAll="runmenu:restart-and-run-all";e.runAbove="runmenu:run-above";e.runBelow="runmenu:run-below";e.openTabs="tabsmenu:open";e.activateById="tabsmenu:activate-by-id";e.activatePreviouslyUsedTab="tabsmenu:activate-previously-used-tab";e.openSettings="settingsmenu:open";e.openHelp="helpmenu:open";e.getKernel="helpmenu:get-kernel";e.openFirst="mainmenu:open-first"})(w||(w={}));const C={id:y,description:"Adds and provides the application main menu.",requires:[i.IRouter,d.ITranslator],optional:[s.ICommandPalette,i.ILabShell,l.ISettingRegistry],provides:r.IMainMenu,activate:async(e,t,n,i,s,a)=>{const{commands:l}=e;const d=n.load("jupyterlab");const c=new r.MainMenu(l);c.id="jp-MainMenu";c.addClass("jp-scrollbar-tiny");if(a){await D.loadSettingsMenu(a,(e=>{c.addMenu(e,false,{rank:e.rank})}),(e=>r.MainMenu.generateMenu(l,e,d)),n);c.update()}const h=o.PageConfig.getOption("quitButton").toLowerCase();c.fileMenu.quitEntry=h==="true";x(e,c.editMenu,d);S(e,c.fileMenu,t,d);k(e,c.kernelMenu,d);I(e,c.runMenu,d);j(e,c.viewMenu,d);T(e,c.helpMenu,d);if(s){E(e,c.tabsMenu,s,d)}const u=e=>{c.activeMenu=e;c.openActiveMenu()};l.addCommand(w.openEdit,{label:d.__("Open Edit Menu"),execute:()=>u(c.editMenu)});l.addCommand(w.openFile,{label:d.__("Open File Menu"),execute:()=>u(c.fileMenu)});l.addCommand(w.openKernel,{label:d.__("Open Kernel Menu"),execute:()=>u(c.kernelMenu)});l.addCommand(w.openRun,{label:d.__("Open Run Menu"),execute:()=>u(c.runMenu)});l.addCommand(w.openView,{label:d.__("Open View Menu"),execute:()=>u(c.viewMenu)});l.addCommand(w.openSettings,{label:d.__("Open Settings Menu"),execute:()=>u(c.settingsMenu)});l.addCommand(w.openTabs,{label:d.__("Open Tabs Menu"),execute:()=>u(c.tabsMenu)});l.addCommand(w.openHelp,{label:d.__("Open Help Menu"),execute:()=>u(c.helpMenu)});l.addCommand(w.openFirst,{label:d.__("Open First Menu"),execute:()=>{c.activeIndex=0;c.openActiveMenu()}});if(i){i.addItem({command:w.shutdown,category:d.__("Main Area")});i.addItem({command:w.logout,category:d.__("Main Area")});i.addItem({command:w.shutdownAllKernels,category:d.__("Kernel Operations")});i.addItem({command:w.activatePreviouslyUsedTab,category:d.__("Main Area")})}e.shell.add(c,"menu",{rank:100});return c}};function x(e,t,n){const{commands:s,shell:o}=e;(0,i.addSemanticCommand)({id:w.undo,commands:s,shell:o,semanticCommands:t.undoers.undo,default:{label:n.__("Undo")},trans:n});(0,i.addSemanticCommand)({id:w.redo,commands:s,shell:o,semanticCommands:t.undoers.redo,default:{label:n.__("Redo")},trans:n});(0,i.addSemanticCommand)({id:w.clearCurrent,commands:s,shell:o,semanticCommands:t.clearers.clearCurrent,default:{label:n.__("Clear")},trans:n});(0,i.addSemanticCommand)({id:w.clearAll,commands:s,shell:o,semanticCommands:t.clearers.clearAll,default:{label:n.__("Clear All")},trans:n});(0,i.addSemanticCommand)({id:w.goToLine,commands:s,shell:o,semanticCommands:t.goToLiners,default:{label:n.__("Go to Line…")},trans:n})}function S(e,t,n,r){const{commands:l,shell:d}=e;(0,i.addSemanticCommand)({id:w.closeAndCleanup,commands:l,shell:d,semanticCommands:t.closeAndCleaners,default:{execute:"application:close",label:r.__("Close and Shut Down"),isEnabled:true},overrides:{isEnabled:()=>!!e.shell.currentWidget&&!!e.shell.currentWidget.title.closable},trans:r});(0,i.addSemanticCommand)({id:w.createConsole,commands:l,shell:d,semanticCommands:t.consoleCreators,default:{label:r.__("New Console for Activity")},trans:r});l.addCommand(w.shutdown,{label:r.__("Shut Down"),caption:r.__("Shut down %1",e.name),isVisible:()=>t.quitEntry,isEnabled:()=>t.quitEntry,execute:()=>(0,s.showDialog)({title:r.__("Shutdown confirmation"),body:r.__("Please confirm you want to shut down %1.",e.name),buttons:[s.Dialog.cancelButton(),s.Dialog.warnButton({label:r.__("Shut Down")})]}).then((async t=>{if(t.button.accept){const t=a.ServerConnection.makeSettings();const i=o.URLExt.join(t.baseUrl,"api/shutdown");try{await Promise.all([e.serviceManager.sessions.shutdownAll(),e.serviceManager.terminals.shutdownAll()])}catch(n){console.log(`Failed to shutdown sessions and terminals: ${n}`)}return a.ServerConnection.makeRequest(i,{method:"POST"},t).then((t=>{if(t.ok){const t=document.createElement("div");const n=document.createElement("p");n.textContent=r.__("You have shut down the Jupyter server. You can now close this tab.");const i=document.createElement("p");i.textContent=r.__("To use %1 again, you will need to relaunch it.",e.name);t.appendChild(n);t.appendChild(i);void(0,s.showDialog)({title:r.__("Server stopped"),body:new p.Widget({node:t}),buttons:[]});window.close()}else{throw new a.ServerConnection.ResponseError(t)}})).catch((e=>{throw new a.ServerConnection.NetworkError(e)}))}}))});l.addCommand(w.logout,{label:r.__("Log Out"),caption:r.__("Log out of %1",e.name),isVisible:()=>t.quitEntry,isEnabled:()=>t.quitEntry,execute:()=>{n.navigate("/logout",{hard:true})}})}function k(e,t,n){const{commands:o,shell:r}=e;(0,i.addSemanticCommand)({id:w.interruptKernel,commands:o,shell:r,semanticCommands:t.kernelUsers.interruptKernel,default:{label:n.__("Interrupt Kernel"),caption:n.__("Interrupt the kernel")},overrides:{icon:e=>e.toolbar?c.stopIcon:undefined},trans:n});(0,i.addSemanticCommand)({id:w.reconnectToKernel,commands:o,shell:r,semanticCommands:t.kernelUsers.reconnectToKernel,default:{label:n.__("Reconnect to Kernel")},trans:n});(0,i.addSemanticCommand)({id:w.restartKernel,commands:o,shell:r,semanticCommands:t.kernelUsers.restartKernel,default:{label:n.__("Restart Kernel…"),caption:n.__("Restart the kernel")},overrides:{icon:e=>e.toolbar?c.refreshIcon:undefined},trans:n});(0,i.addSemanticCommand)({id:w.restartKernelAndClear,commands:o,shell:r,semanticCommands:[t.kernelUsers.restartKernel,t.kernelUsers.clearWidget],default:{label:n.__("Restart Kernel and Clear…")},trans:n});(0,i.addSemanticCommand)({id:w.changeKernel,commands:o,shell:r,semanticCommands:t.kernelUsers.changeKernel,default:{label:n.__("Change Kernel…")},trans:n});(0,i.addSemanticCommand)({id:w.shutdownKernel,commands:o,shell:r,semanticCommands:t.kernelUsers.shutdownKernel,default:{label:n.__("Shut Down Kernel"),caption:n.__("Shut down kernel")},trans:n});o.addCommand(w.shutdownAllKernels,{label:n.__("Shut Down All Kernels…"),isEnabled:()=>!e.serviceManager.sessions.running().next().done,execute:()=>(0,s.showDialog)({title:n.__("Shut Down All?"),body:n._n("Are you sure you want to permanently shut down the running kernel?","Are you sure you want to permanently shut down the %1 running kernels?",e.serviceManager.kernels.runningCount),buttons:[s.Dialog.cancelButton(),s.Dialog.warnButton({label:n.__("Shut Down All")})]}).then((t=>{if(t.button.accept){return e.serviceManager.sessions.shutdownAll()}}))})}function j(e,t,n){const{commands:s,shell:o}=e;(0,i.addSemanticCommand)({id:w.lineNumbering,commands:s,shell:o,semanticCommands:t.editorViewers.toggleLineNumbers,default:{label:n.__("Show Line Numbers")},trans:n});(0,i.addSemanticCommand)({id:w.matchBrackets,commands:s,shell:o,semanticCommands:t.editorViewers.toggleMatchBrackets,default:{label:n.__("Match Brackets")},trans:n});(0,i.addSemanticCommand)({id:w.wordWrap,commands:s,shell:o,semanticCommands:t.editorViewers.toggleWordWrap,default:{label:n.__("Wrap Words")},trans:n})}function I(e,t,n){const{commands:s,shell:o}=e;(0,i.addSemanticCommand)({id:w.run,commands:s,shell:o,semanticCommands:t.codeRunners.run,default:{label:n.__("Run Selected"),caption:n.__("Run Selected")},overrides:{icon:e=>e.toolbar?c.runIcon:undefined},trans:n});(0,i.addSemanticCommand)({id:w.runAll,commands:s,shell:o,semanticCommands:t.codeRunners.runAll,default:{label:n.__("Run All"),caption:n.__("Run All")},trans:n});(0,i.addSemanticCommand)({id:w.restartAndRunAll,commands:s,shell:o,semanticCommands:[t.codeRunners.restart,t.codeRunners.runAll],default:{label:n.__("Restart Kernel and Run All"),caption:n.__("Restart Kernel and Run All")},overrides:{icon:e=>e.toolbar?c.fastForwardIcon:undefined},trans:n})}function E(e,t,n,i){const s=e.commands;const o=[];let r;s.addCommand(w.activateById,{label:t=>{if(t.id===undefined){return i.__("Activate a widget by its `id`.")}const n=t["id"]||"";const s=(0,h.find)(e.shell.widgets("main"),(e=>e.id===n));return s&&s.title.label||""},isToggled:t=>{const n=t["id"]||"";return!!e.shell.currentWidget&&e.shell.currentWidget.id===n},execute:t=>e.shell.activateById(t["id"]||"")});let a="";s.addCommand(w.activatePreviouslyUsedTab,{label:i.__("Activate Previously Used Tab"),isEnabled:()=>!!a,execute:()=>s.execute(w.activateById,{id:a})});if(n){void e.restored.then((()=>{const i=()=>{if(r&&!r.isDisposed){r.dispose()}o.length=0;let n=false;for(const t of e.shell.widgets("main")){if(t.id===a){n=true}o.push({command:w.activateById,args:{id:t.id}})}r=t.addGroup(o,1);a=n?a:""};i();n.layoutModified.connect((()=>{i()}));n.currentChanged.connect(((e,t)=>{const n=t.oldValue;if(!n){return}a=n.id}))}))}}function T(e,t,n){const{commands:s,shell:o}=e;(0,i.addSemanticCommand)({id:w.getKernel,commands:s,shell:o,semanticCommands:t.getKernel,default:{label:n.__("Get Kernel"),isVisible:false},trans:n})}const M=[C,b];var D;(function(e){async function t(e){const t=await(0,s.showDialog)({title:e.__("Information"),body:e.__("Menu customization has changed. You will need to reload JupyterLab to see the changes."),buttons:[s.Dialog.cancelButton(),s.Dialog.okButton({label:e.__("Reload")})]});if(t.button.accept){location.reload()}}async function n(e,n,i,o){var r;const a=o.load("jupyterlab");let d=null;let c={};function h(t){var n,i;c={};const s=Object.keys(e.plugins).map((t=>{var n,i;const s=(i=(n=e.plugins[t].schema["jupyter.lab.menus"])===null||n===void 0?void 0:n.main)!==null&&i!==void 0?i:[];c[t]=s;return s})).concat([(i=(n=t["jupyter.lab.menus"])===null||n===void 0?void 0:n.main)!==null&&i!==void 0?i:[]]).reduceRight(((e,t)=>l.SettingRegistry.reconcileMenus(e,t,true)),t.properties.menus.default);t.properties.menus.default=l.SettingRegistry.reconcileMenus(s,t.properties.menus.default,true).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Infinity)-((i=t.rank)!==null&&i!==void 0?i:Infinity)}))}e.transform(y,{compose:e=>{var t,n,i,s;if(!d){d=u.JSONExt.deepCopy(e.schema);h(d)}const o=(i=(n=(t=d.properties)===null||t===void 0?void 0:t.menus)===null||n===void 0?void 0:n.default)!==null&&i!==void 0?i:[];const r={...e.data.user,menus:(s=e.data.user.menus)!==null&&s!==void 0?s:[]};const a={...e.data.composite,menus:l.SettingRegistry.reconcileMenus(o,r.menus)};e.data={composite:a,user:r};return e},fetch:e=>{if(!d){d=u.JSONExt.deepCopy(e.schema);h(d)}return{data:e.data,id:e.id,raw:e.raw,schema:d,version:e.version}}});const p=await e.load(y);const m=(r=u.JSONExt.deepCopy(p.composite.menus))!==null&&r!==void 0?r:[];const g=new Array;s.MenuFactory.createMenus(m.filter((e=>!e.disabled)).map((e=>{var t;return{...e,items:l.SettingRegistry.filterDisabledItems((t=e.items)!==null&&t!==void 0?t:[])}})),i).forEach((e=>{g.push(e);n(e)}));p.changed.connect((()=>{var e;const n=(e=p.composite.menus)!==null&&e!==void 0?e:[];if(!u.JSONExt.deepEqual(m,n)){void t(a)}}));e.pluginChanged.connect((async(o,r)=>{var d,h,p;if(r!==y){const o=(d=c[r])!==null&&d!==void 0?d:[];const f=(p=(h=e.plugins[r].schema["jupyter.lab.menus"])===null||h===void 0?void 0:h.main)!==null&&p!==void 0?p:[];if(!u.JSONExt.deepEqual(o,f)){if(c[r]){await t(a)}else{c[r]=u.JSONExt.deepCopy(f);const e=l.SettingRegistry.reconcileMenus(f,m,false,false).filter((e=>!e.disabled)).map((e=>{var t;return{...e,items:l.SettingRegistry.filterDisabledItems((t=e.items)!==null&&t!==void 0?t:[])}}));s.MenuFactory.updateMenus(g,e,i).forEach((e=>{n(e)}))}}}}))}e.loadSettingsMenu=n})(D||(D={}))},61132:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(3579);var a=n(41603);var l=n(39063);var d=n(67996)},43744:(e,t,n)=>{"use strict";n.r(t);n.d(t,{EditMenu:()=>a,FileMenu:()=>l,HelpMenu:()=>d,IMainMenu:()=>_,KernelMenu:()=>c,MainMenu:()=>g,RunMenu:()=>h,SettingsMenu:()=>u,TabsMenu:()=>p,ViewMenu:()=>m});var i=n(26331);var s=n(34236);var o=n(1143);var r=n(14366);class a extends i.RankedMenu{constructor(e){super(e);this.undoers={redo:new r.SemanticCommand,undo:new r.SemanticCommand};this.clearers={clearAll:new r.SemanticCommand,clearCurrent:new r.SemanticCommand};this.goToLiners=new r.SemanticCommand}}class l extends i.RankedMenu{constructor(e){super(e);this.quitEntry=false;this.closeAndCleaners=new r.SemanticCommand;this.consoleCreators=new r.SemanticCommand}get newMenu(){var e,t;if(!this._newMenu){this._newMenu=(t=(e=(0,s.find)(this.items,(e=>{var t;return((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-file-new"})))===null||e===void 0?void 0:e.submenu)!==null&&t!==void 0?t:new i.RankedMenu({commands:this.commands})}return this._newMenu}dispose(){var e;(e=this._newMenu)===null||e===void 0?void 0:e.dispose();super.dispose()}}class d extends i.RankedMenu{constructor(e){super(e);this.getKernel=new r.SemanticCommand}}class c extends i.RankedMenu{constructor(e){super(e);this.kernelUsers={changeKernel:new r.SemanticCommand,clearWidget:new r.SemanticCommand,interruptKernel:new r.SemanticCommand,reconnectToKernel:new r.SemanticCommand,restartKernel:new r.SemanticCommand,shutdownKernel:new r.SemanticCommand}}}class h extends i.RankedMenu{constructor(e){super(e);this.codeRunners={restart:new r.SemanticCommand,run:new r.SemanticCommand,runAll:new r.SemanticCommand}}}class u extends i.RankedMenu{constructor(e){super(e)}}class p extends i.RankedMenu{constructor(e){super(e)}}class m extends i.RankedMenu{constructor(e){super(e);this.editorViewers={toggleLineNumbers:new r.SemanticCommand,toggleMatchBrackets:new r.SemanticCommand,toggleWordWrap:new r.SemanticCommand}}}class g extends o.MenuBar{constructor(e){let t={forceItemsPosition:{forceX:false,forceY:true}};super(t);this._items=[];this._commands=e}get editMenu(){if(!this._editMenu){this._editMenu=new a({commands:this._commands,rank:2,renderer:i.MenuSvg.defaultRenderer})}return this._editMenu}get fileMenu(){if(!this._fileMenu){this._fileMenu=new l({commands:this._commands,rank:1,renderer:i.MenuSvg.defaultRenderer})}return this._fileMenu}get helpMenu(){if(!this._helpMenu){this._helpMenu=new d({commands:this._commands,rank:1e3,renderer:i.MenuSvg.defaultRenderer})}return this._helpMenu}get kernelMenu(){if(!this._kernelMenu){this._kernelMenu=new c({commands:this._commands,rank:5,renderer:i.MenuSvg.defaultRenderer})}return this._kernelMenu}get runMenu(){if(!this._runMenu){this._runMenu=new h({commands:this._commands,rank:4,renderer:i.MenuSvg.defaultRenderer})}return this._runMenu}get settingsMenu(){if(!this._settingsMenu){this._settingsMenu=new u({commands:this._commands,rank:999,renderer:i.MenuSvg.defaultRenderer})}return this._settingsMenu}get viewMenu(){if(!this._viewMenu){this._viewMenu=new m({commands:this._commands,rank:3,renderer:i.MenuSvg.defaultRenderer})}return this._viewMenu}get tabsMenu(){if(!this._tabsMenu){this._tabsMenu=new p({commands:this._commands,rank:500,renderer:i.MenuSvg.defaultRenderer})}return this._tabsMenu}addMenu(e,t=true,n={}){if(s.ArrayExt.firstIndexOf(this.menus,e)>-1){return}i.MenuSvg.overrideDefaultRenderer(e);const o="rank"in n?n.rank:"rank"in e?e.rank:i.IRankedMenu.DEFAULT_RANK;const r={menu:e,rank:o};const g=s.ArrayExt.upperBound(this._items,r,f.itemCmp);e.disposed.connect(this._onMenuDisposed,this);s.ArrayExt.insert(this._items,g,r);this.insertMenu(g,e);switch(e.id){case"jp-mainmenu-file":if(!this._fileMenu&&e instanceof l){this._fileMenu=e}break;case"jp-mainmenu-edit":if(!this._editMenu&&e instanceof a){this._editMenu=e}break;case"jp-mainmenu-view":if(!this._viewMenu&&e instanceof m){this._viewMenu=e}break;case"jp-mainmenu-run":if(!this._runMenu&&e instanceof h){this._runMenu=e}break;case"jp-mainmenu-kernel":if(!this._kernelMenu&&e instanceof c){this._kernelMenu=e}break;case"jp-mainmenu-tabs":if(!this._tabsMenu&&e instanceof p){this._tabsMenu=e}break;case"jp-mainmenu-settings":if(!this._settingsMenu&&e instanceof u){this._settingsMenu=e}break;case"jp-mainmenu-help":if(!this._helpMenu&&e instanceof d){this._helpMenu=e}break}}dispose(){var e,t,n,i,s,o,r,a;(e=this._editMenu)===null||e===void 0?void 0:e.dispose();(t=this._fileMenu)===null||t===void 0?void 0:t.dispose();(n=this._helpMenu)===null||n===void 0?void 0:n.dispose();(i=this._kernelMenu)===null||i===void 0?void 0:i.dispose();(s=this._runMenu)===null||s===void 0?void 0:s.dispose();(o=this._settingsMenu)===null||o===void 0?void 0:o.dispose();(r=this._viewMenu)===null||r===void 0?void 0:r.dispose();(a=this._tabsMenu)===null||a===void 0?void 0:a.dispose();super.dispose()}static generateMenu(e,t,n){let s;const{id:o,label:r,rank:g}=t;switch(o){case"jp-mainmenu-file":s=new l({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-edit":s=new a({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-view":s=new m({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-run":s=new h({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-kernel":s=new c({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-tabs":s=new p({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-settings":s=new u({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-help":s=new d({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;default:s=new i.RankedMenu({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer})}if(r){s.title.label=n._p("menu",r)}return s}_onMenuDisposed(e){this.removeMenu(e);const t=s.ArrayExt.findFirstIndex(this._items,(t=>t.menu===e));if(t!==-1){s.ArrayExt.removeAt(this._items,t)}}}var f;(function(e){function t(e,t){return e.rank-t.rank}e.itemCmp=t})(f||(f={}));var v=n(5592);const _=new v.Token("@jupyterlab/mainmenu:IMainMenu",`A service for the main menu bar for the application.\n Use this if you want to add your own menu items or provide implementations for standardized menu items for specific activities.`)},67996:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913)},69195:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>x});var i=n(94307);var s=n.n(i);var o=n(14366);var r=n.n(o);var a=n(30397);var l=n.n(a);var d=n(91249);var c=n.n(d);var h=n(44539);var u=n.n(h);var p=n(84739);var m=n.n(p);var g=n(62149);var f=n.n(g);var v=n(30619);var _=n.n(v);var b;(function(e){e.markdownPreview="markdownviewer:open";e.markdownEditor="markdownviewer:edit"})(b||(b={}));const y="Markdown Preview";const w={activate:C,id:"@jupyterlab/markdownviewer-extension:plugin",description:"Adds markdown file viewer and provides its tracker.",provides:d.IMarkdownViewerTracker,requires:[h.IRenderMimeRegistry,v.ITranslator],optional:[i.ILayoutRestorer,p.ISettingRegistry,g.ITableOfContentsRegistry,o.ISanitizer],autoStart:true};function C(e,t,n,i,s,r,l){const c=n.load("jupyterlab");const{commands:u,docRegistry:p}=e;t.addFactory(h.markdownRendererFactory);const m="markdownviewer-widget";const g=new o.WidgetTracker({namespace:m});let f={...d.MarkdownViewer.defaultConfig};function v(e){Object.keys(f).forEach((t=>{var n;e.setOption(t,(n=f[t])!==null&&n!==void 0?n:null)}))}if(s){const e=e=>{f=e.composite;g.forEach((e=>{v(e.content)}))};s.load(w.id).then((t=>{t.changed.connect((()=>{e(t)}));e(t)})).catch((e=>{console.error(e.message)}))}const _=new d.MarkdownViewerFactory({rendermime:t,name:y,label:c.__("Markdown Preview"),primaryFileType:p.getFileType("markdown"),fileTypes:["markdown"],defaultRendered:["markdown"]});_.widgetCreated.connect(((e,t)=>{t.context.pathChanged.connect((()=>{void g.save(t)}));v(t.content);void g.add(t)}));p.addWidgetFactory(_);if(i){void i.restore(g,{command:"docmanager:open",args:e=>({path:e.context.path,factory:y}),name:e=>e.context.path})}u.addCommand(b.markdownPreview,{label:c.__("Markdown Preview"),execute:e=>{const t=e["path"];if(typeof t!=="string"){return}return u.execute("docmanager:open",{path:t,factory:y,options:e["options"]})}});u.addCommand(b.markdownEditor,{execute:()=>{const e=g.currentWidget;if(!e){return}const t=e.context.path;return u.execute("docmanager:open",{path:t,factory:"Editor",options:{mode:"split-right"}})},isVisible:()=>{const e=g.currentWidget;return e&&a.PathExt.extname(e.context.path)===".md"||false},label:c.__("Show Markdown Editor")});if(r){r.add(new d.MarkdownViewerTableOfContentsFactory(g,t.markdownParser,l!==null&&l!==void 0?l:t.sanitizer))}return g}const x=w},57996:(e,t,n)=>{"use strict";var i=n(97913);var s=n(5893);var o=n(3579);var r=n(66731);var a=n(10395);var l=n(79010);var d=n(85072);var c=n.n(d);var h=n(97825);var u=n.n(h);var p=n(77659);var m=n.n(p);var g=n(55056);var f=n.n(g);var v=n(10540);var _=n.n(v);var b=n(41113);var y=n.n(b);var w=n(80877);var C={};C.styleTagTransform=y();C.setAttributes=f();C.insert=m().bind(null,"head");C.domAPI=u();C.insertStyleElement=_();var x=c()(w.A,C);const S=w.A&&w.A.locals?w.A.locals:undefined},34572:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IMarkdownViewerTracker:()=>a,MarkdownDocument:()=>_,MarkdownViewer:()=>v,MarkdownViewerFactory:()=>b,MarkdownViewerTableOfContentsFactory:()=>o,MarkdownViewerTableOfContentsModel:()=>s});var i=n(62149);class s extends i.TableOfContentsModel{constructor(e,t,n){super(e,n);this.parser=t}get documentType(){return"markdown-viewer"}get isAlwaysActive(){return true}get supportedOptions(){return["maximalDepth","numberingH1","numberHeaders"]}getHeadings(){const e=this.widget.context.model.toString();const t=i.TableOfContentsUtils.filterHeadings(i.TableOfContentsUtils.Markdown.getHeadings(e),{...this.configuration,baseNumbering:1});return Promise.resolve(t)}}class o extends i.TableOfContentsFactory{constructor(e,t,n){super(e);this.parser=t;this.sanitizer=n}_createNew(e,t){const n=new s(e,this.parser,t);let o=new WeakMap;const r=(t,n)=>{if(n){const t=o.get(n);if(t){const n=e.content.node.getBoundingClientRect();const i=t.getBoundingClientRect();if(i.top>n.bottom||i.bottom{if(!this.parser){return}i.TableOfContentsUtils.clearNumbering(e.content.node);o=new WeakMap;n.headings.forEach((async t=>{var n;const s=await i.TableOfContentsUtils.Markdown.getHeadingId(this.parser,t.raw,t.level,this.sanitizer);if(!s){return}const r=`h${t.level}[id="${CSS.escape(s)}"]`;o.set(t,i.TableOfContentsUtils.addPrefix(e.content.node,r,(n=t.prefix)!==null&&n!==void 0?n:""))}))};void e.content.ready.then((()=>{a();e.content.rendered.connect(a);n.activeHeadingChanged.connect(r);n.headingsChanged.connect(a);e.disposed.connect((()=>{e.content.rendered.disconnect(a);n.activeHeadingChanged.disconnect(r);n.headingsChanged.disconnect(a)}))}));return n}}var r=n(5592);const a=new r.Token("@jupyterlab/markdownviewer:IMarkdownViewerTracker",`A widget tracker for markdown\n document viewers. Use this if you want to iterate over and interact with rendered markdown documents.`);var l=n(14366);var d=n(30397);var c=n(93037);var h=n(44539);var u=n(30619);var p=n(2336);var m=n(1143);const g="jp-MarkdownViewer";const f="text/markdown";class v extends m.Widget{constructor(e){super();this._config={...v.defaultConfig};this._fragment="";this._ready=new r.PromiseDelegate;this._isRendering=false;this._renderRequested=false;this._rendered=new p.Signal(this);this.context=e.context;this.translator=e.translator||u.nullTranslator;this._trans=this.translator.load("jupyterlab");this.renderer=e.renderer;this.node.tabIndex=0;this.addClass(g);const t=this.layout=new m.StackedLayout;t.addWidget(this.renderer);void this.context.ready.then((async()=>{await this._render();this._monitor=new d.ActivityMonitor({signal:this.context.model.contentChanged,timeout:this._config.renderTimeout});this._monitor.activityStopped.connect(this.update,this);this._ready.resolve(undefined)}))}get ready(){return this._ready.promise}get rendered(){return this._rendered}setFragment(e){this._fragment=e;this.update()}setOption(e,t){if(this._config[e]===t){return}this._config[e]=t;const{style:n}=this.renderer.node;switch(e){case"fontFamily":n.setProperty("font-family",t);break;case"fontSize":n.setProperty("font-size",t?t+"px":null);break;case"hideFrontMatter":this.update();break;case"lineHeight":n.setProperty("line-height",t?t.toString():null);break;case"lineWidth":{const e=t?`calc(50% - ${t/2}ch)`:null;n.setProperty("padding-left",e);n.setProperty("padding-right",e);break}case"renderTimeout":if(this._monitor){this._monitor.timeout=t}break;default:break}}dispose(){if(this.isDisposed){return}if(this._monitor){this._monitor.dispose()}this._monitor=null;super.dispose()}onUpdateRequest(e){if(this.context.isReady&&!this.isDisposed){void this._render();this._fragment=""}}onActivateRequest(e){this.node.focus()}async _render(){if(this.isDisposed){return}if(this._isRendering){this._renderRequested=true;return}this._renderRequested=false;const{context:e}=this;const{model:t}=e;const n=t.toString();const i={};i[f]=this._config.hideFrontMatter?y.removeFrontMatter(n):n;const s=new h.MimeModel({data:i,metadata:{fragment:this._fragment}});try{this._isRendering=true;await this.renderer.renderModel(s);this._isRendering=false;if(this._renderRequested){return this._render()}else{this._rendered.emit()}}catch(o){requestAnimationFrame((()=>{this.dispose()}));void(0,l.showErrorMessage)(this._trans.__("Renderer Failure: %1",e.path),o)}}}(function(e){e.defaultConfig={fontFamily:null,fontSize:null,lineHeight:null,lineWidth:null,hideFrontMatter:true,renderTimeout:1e3}})(v||(v={}));class _ extends c.DocumentWidget{setFragment(e){this.content.setFragment(e)}}class b extends c.ABCWidgetFactory{constructor(e){super(y.createRegistryOptions(e));this._fileType=e.primaryFileType;this._rendermime=e.rendermime}createNewWidget(e){var t,n,i,s,o;const r=this._rendermime.clone({resolver:e.urlResolver});const a=r.createRenderer(f);const l=new v({context:e,renderer:a});l.title.icon=(t=this._fileType)===null||t===void 0?void 0:t.icon;l.title.iconClass=(i=(n=this._fileType)===null||n===void 0?void 0:n.iconClass)!==null&&i!==void 0?i:"";l.title.iconLabel=(o=(s=this._fileType)===null||s===void 0?void 0:s.iconLabel)!==null&&o!==void 0?o:"";l.title.caption=this.label;const d=new _({content:l,context:e});return d}}var y;(function(e){function t(e){return{...e,readOnly:true}}e.createRegistryOptions=t;function n(e){const t=/^---\n[^]*?\n(---|...)\n/;const n=e.match(t);if(!n){return e}const{length:i}=n[0];return e.slice(i)}e.removeFrontMatter=n})(y||(y={}))},55151:(e,t,n)=>{"use strict";n.r(t);n.d(t,{createMarkdownParser:()=>m,default:()=>f});var i=n(5592);var s=n.n(i);var o=n(30397);var r=n.n(o);var a=n(66899);var l=n.n(a);var d=n(44539);var c=n.n(d);var h=n(85311);var u=n.n(h);const p="```~~~";function m(e,t){return{render:n=>v.render(n,e,t)}}const g={id:"@jupyterlab/markedparser-extension:plugin",description:"Provides the Markdown parser.",autoStart:true,provides:d.IMarkdownParser,requires:[a.IEditorLanguageRegistry],optional:[h.IMermaidMarkdown],activate:(e,t,n)=>m(t,{blocks:n?[n]:[]})};const f=g;var v;(function(e){let t=null;let s=null;let r=[];let a=null;let l={};let d=new o.LruCache;async function c(e,t,n){a=t;if(!s){s=await h(n)}return s(e,l)}e.render=c;async function h(e){if(s){return s}if(t){return await t.promise}r=(e===null||e===void 0?void 0:e.blocks)||[];r=r.sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Infinity)-((i=t.rank)!==null&&i!==void 0?i:Infinity)}));t=new i.PromiseDelegate;const[{marked:o,Renderer:a},d]=await Promise.all([n.e(4507).then(n.t.bind(n,14507,23)),u()]);for(const t of d){o.use(t)}l={async:true,gfm:true,walkTokens:f,renderer:m(a)};s=o;t.resolve(s);return s}e.initializeMarked=h;async function u(){return Promise.all([(async()=>(await n.e(8022).then(n.t.bind(n,18022,23))).gfmHeadingId())(),(async()=>(await n.e(3825).then(n.t.bind(n,3825,23))).mangle())()])}function m(e){const t=new e;const n=t.code;t.code=({text:e,lang:i,escaped:s})=>{for(const t of r){if(i&&t.languages.includes(i)){const n=t.render(e);if(n!=null){return n}}}const o=`${i}${p}${e}${p}`;const a=d.get(o);if(a!=null){return a}return n.call(t,{text:e,lang:i,escaped:s})};return t}async function g(e){const{lang:t,text:n}=e;if(!t||!a){return}const i=`${t}${p}${n}${p}`;if(d.get(i)){return}const s=document.createElement("div");try{await a.highlight(n,a.findBest(t),s);const e=`
${s.innerHTML}
`;d.set(i,e)}catch(o){console.error(`Failed to highlight ${t} code`,o)}finally{s.remove()}}async function f(e){switch(e.type){case"code":if(e.lang){for(const t of r){if(t.languages.includes(e.lang)){await t.walk(e.text);return}}}await g(e)}}})(v||(v={}))},41884:(e,t,n)=>{"use strict";var i=n(5893);var s=n(3579);var o=n(23359);var r=n(69240);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(23865);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},31217:(e,t,n)=>{"use strict";n.r(t);n.d(t,{MathJaxTypesetter:()=>l,default:()=>c});var i=n(5592);var s=n.n(i);var o=n(44539);var r=n.n(o);var a;(function(e){e.copy="mathjax:clipboard";e.scale="mathjax:scale"})(a||(a={}));class l{constructor(){this._initialized=false}async _ensureInitialized(){if(!this._initialized){this._mathDocument=await h.ensureMathDocument();this._initialized=true}}async mathDocument(){await this._ensureInitialized();return this._mathDocument}async typeset(e){try{await this._ensureInitialized()}catch(t){console.error(t);return}this._mathDocument.options.elements=[e];this._mathDocument.clear().render();delete this._mathDocument.options.elements}}const d={id:"@jupyterlab/mathjax-extension:plugin",description:"Provides the LaTeX mathematical expression interpreter.",provides:o.ILatexTypesetter,activate:e=>{const t=new l;e.commands.addCommand(a.copy,{execute:async()=>{const e=await t.mathDocument();const n=e.outputJax;await navigator.clipboard.writeText(n.math.math)},label:"MathJax Copy Latex"});e.commands.addCommand(a.scale,{execute:async e=>{const n=await t.mathDocument();const i=e["scale"]||1;n.outputJax.options.scale=i;n.rerender()},label:e=>"Mathjax Scale "+(e["scale"]?`x${e["scale"]}`:"Reset")});return t},autoStart:true};const c=d;var h;(function(e){let t=null;async function s(){if(!t){t=new i.PromiseDelegate;void Promise.all([n.e(2353),n.e(2633),n.e(8816)]).then(n.t.bind(n,58816,23));const[{mathjax:e},{CHTML:s},{TeX:o},{TeXFont:r},{AllPackages:a},{SafeHandler:l},{HTMLHandler:d},{browserAdaptor:c},{AssistiveMmlHandler:h}]=await Promise.all([n.e(1039).then(n.bind(n,81039)),Promise.all([n.e(2353),n.e(6275),n.e(1673),n.e(4090)]).then(n.t.bind(n,24090,23)),Promise.all([n.e(2353),n.e(2633),n.e(2707),n.e(4928)]).then(n.t.bind(n,4928,23)),Promise.all([n.e(1673),n.e(4981)]).then(n.t.bind(n,1673,23)),Promise.all([n.e(2353),n.e(2633),n.e(2707),n.e(1909)]).then(n.bind(n,31909)),n.e(5244).then(n.t.bind(n,75244,23)),Promise.all([n.e(2353),n.e(6275),n.e(4001),n.e(1969)]).then(n.t.bind(n,1969,23)),n.e(9400).then(n.bind(n,59400)),Promise.all([n.e(2353),n.e(6275),n.e(4001),n.e(4855)]).then(n.t.bind(n,34855,23))]);e.handlers.register(h(l(new d(c()))));class u extends r{}u.defaultFonts={};const p=new s({font:new u});const m=new o({packages:a.concat("require"),inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],processEscapes:true,processEnvironments:true});const g=e.document(window.document,{InputJax:m,OutputJax:p});t.resolve(g)}return t.promise}e.ensureMathDocument=s})(h||(h={}))},51874:(e,t,n)=>{"use strict";var i=n(5893);var s=n(3579);var o=n(85072);var r=n.n(o);var a=n(97825);var l=n.n(a);var d=n(77659);var c=n.n(d);var h=n(55056);var u=n.n(h);var p=n(10540);var m=n.n(p);var g=n(41113);var f=n.n(g);var v=n(25149);var _={};_.styleTagTransform=f();_.setAttributes=u();_.insert=c().bind(null,"head");_.domAPI=l();_.insertStyleElement=m();var b=r()(v.A,_);const y=v.A&&v.A.locals?v.A.locals:undefined},71579:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CommandIDs:()=>d,default:()=>p});var i=n(14366);var s=n.n(i);var o=n(85311);var r=n.n(o);var a=n(30619);var l=n.n(a);var d;(function(e){e.copySource="mermaid:copy-source"})(d||(d={}));const c={id:"@jupyterlab/mermaid-extension:core",description:"Provides the Mermaid manager.",autoStart:true,optional:[i.IThemeManager],provides:o.IMermaidManager,activate:(e,t)=>{const n=new o.MermaidManager({themes:t});o.RenderedMermaid.manager=n;return n}};const h={id:"@jupyterlab/mermaid-extension:markdown",description:"Provides the Mermaid markdown renderer.",autoStart:true,requires:[o.IMermaidManager],provides:o.IMermaidMarkdown,activate:(e,t)=>new o.MermaidMarkdown({mermaid:t})};const u={id:"@jupyterlab/mermaid-extension:context-commands",description:"Provides context menu commands for mermaid diagrams.",autoStart:true,requires:[o.IMermaidManager],optional:[a.ITranslator],activate:(e,t,n)=>{const i=e=>e.classList.contains(o.MERMAID_CLASS);const s=(n!==null&&n!==void 0?n:a.nullTranslator).load("jupyterlab");e.commands.addCommand(d.copySource,{label:s.__("Mermaid Copy Diagram Source"),execute:async t=>{const n=e.contextMenuHitTest(i);if(!n){return}const s=n.querySelector(`.${o.MERMAID_CODE_CLASS}`);if(!s||!s.textContent){return}await navigator.clipboard.writeText(s.textContent)}});const r={selector:`.${o.MERMAID_CLASS}`,rank:13};e.contextMenu.addItem({command:d.copySource,...r});e.contextMenu.addItem({type:"separator",...r})}};const p=[c,h,u]},47375:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>r});var i=n(85311);var s=n.n(i);const o={id:"@jupyterlab/mermaid-extension:factory",description:"Provides a renderer for mermaid text-based diagrams.",rendererFactory:i.rendererFactory,rank:61,dataType:"string",documentWidgetFactoryOptions:[{name:"Mermaid",primaryFileType:"mermaid",fileTypes:["mermaid"],defaultFor:["mermaid"]}],fileTypes:[{mimeTypes:[i.MERMAID_MIME_TYPE],name:"mermaid",extensions:i.MERMAID_FILE_EXTENSIONS,icon:"ui-components:mermaid"}]};const r=o},90288:(e,t,n)=>{"use strict";var i=n(97913);var s=n(3579);var o=n(69240);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(4555);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},63005:(e,t,n)=>{"use strict";n.r(t);n.d(t,{DETAILS_CLASS:()=>p,IMermaidManager:()=>g,IMermaidMarkdown:()=>f,MERMAID_CLASS:()=>c,MERMAID_CODE_CLASS:()=>h,MERMAID_DARK_THEME:()=>d,MERMAID_DEFAULT_THEME:()=>l,MERMAID_FILE_EXTENSIONS:()=>r,MERMAID_MIME_TYPE:()=>o,MermaidManager:()=>v,MermaidMarkdown:()=>b,RE_DEFAULT_RENDERER:()=>a,RenderedMermaid:()=>C,SUMMARY_CLASS:()=>m,WARNING_CLASS:()=>u,rendererFactory:()=>x});var i=n(5592);var s=n(30397);const o="text/vnd.mermaid";const r=[".mmd",".mermaid"];const a=/\bdefaultRenderer["']?\s*:\s*(["']?)(\b[^"'\s]+\b)(\1)/gm;const l="default";const d="dark";const c="jp-RenderedMermaid";const h="mermaid";const u="jp-mod-warning";const p="jp-RenderedMermaid-Details";const m="jp-RenderedMermaid-Summary";const g=new i.Token("@jupyterlab/mermaid:IMermaidManager",`a manager for rendering mermaid text-based diagrams`);const f=new i.Token("@jupyterlab/mermaid:IMermaidMarkdown",`a manager for rendering mermaid text-based diagrams in markdown fenced code blocks`);class v{constructor(e={}){this._diagrams=new s.LruCache({maxSize:e.maxCacheSize||null});if(e.themes){_.initThemes(e.themes||null);e.themes.themeChanged.connect(this.initialize,this)}}static cleanMermaidSvg(e){e=e.replace(_.RE_VOID_ELEMENT,_.replaceVoidElement);return`${_.SVG_XML_HEADER}${e}`}initialize(){this._diagrams.clear();_.initMermaid()}async getMermaid(){return await _.ensureMermaid()}getMermaidVersion(){return _.version()}getCachedFigure(e){return this._diagrams.get(e)}async renderSvg(e){const t=await this.getMermaid();await _.ensureRenderers(e);const n=`jp-mermaid-${_.nextMermaidId()}`;const i=document.createElement("div");document.body.appendChild(i);try{let{svg:s}=await t.render(n,e,i);s=v.cleanMermaidSvg(s);const o=new DOMParser;const r=o.parseFromString(s,"image/svg+xml");const a={text:e,svg:s};const l=r.querySelector("svg");const{maxWidth:d}=(l===null||l===void 0?void 0:l.style)||{};a.width=d?parseFloat(d):null;const c=r.querySelector("title");const h=r.querySelector("desc");if(c){a.accessibleTitle=c.textContent}if(h){a.accessibleDescription=h.textContent}return a}finally{i.remove()}}async renderFigure(e){let t=this._diagrams.get(e);if(t!=null){return t}let n=c;let i=null;t=document.createElement("div");t.className=n;try{const t=await this.renderSvg(e);i=this.makeMermaidFigure(t)}catch(o){t.classList.add(u);i=await this.makeMermaidError(e)}let s=this.getMermaidVersion();if(s){i.dataset.jpMermaidVersion=s}t.appendChild(i);this._diagrams.set(e,t);return t}makeMermaidCode(e){const t=document.createElement("pre");const n=document.createElement("code");n.innerText=e;t.appendChild(n);n.className=h;n.textContent=e;return t}async makeMermaidError(e){const t=await this.getMermaid();let n="";try{await t.parse(e)}catch(r){n=`${r}`}const i=document.createElement("details");i.className=p;const s=document.createElement("summary");s.className=m;s.appendChild(this.makeMermaidCode(e));i.appendChild(s);const o=document.createElement("pre");o.innerText=n;i.appendChild(o);return i}makeMermaidFigure(e){const t=document.createElement("figure");const n=document.createElement("img");t.appendChild(n);n.setAttribute("src",`data:image/svg+xml,${encodeURIComponent(e.svg)}`);if(e.width){n.width=e.width}if(e.accessibleTitle){n.setAttribute("alt",e.accessibleTitle)}t.appendChild(this.makeMermaidCode(e.text));if(e.accessibleDescription){const n=document.createElement("figcaption");n.className="sr-only";n.textContent=e.accessibleDescription;t.appendChild(n)}return t}}var _;(function(e){let t=null;let s=null;let o=null;let r=null;let c=null;let h=0;let u=null;function p(e){t=e}e.initThemes=p;function m(){return u}e.version=m;function g(e=null){e=s;if(!e){return false}let n=l;if(t){const e=t.theme;n=e&&t.isLight(e)?l:d}const i=window.getComputedStyle(document.body).getPropertyValue("--jp-ui-font-family");e.initialize({theme:n,fontFamily:i,securityLevel:"strict",maxTextSize:1e5,maxEdges:1e5,startOnLoad:false});return true}e.initMermaid=g;function f(){return s}e.getMermaid=f;function v(){return h++}e.nextMermaidId=v;async function _(){if(s!=null){return s}if(r){return r.promise}r=new i.PromiseDelegate;u=(await n.e(3763).then(n.t.bind(n,73763,19))).version;const e=s=(await Promise.all([n.e(8606),n.e(2601),n.e(227),n.e(4507)]).then(n.bind(n,90227))).default;g(e);s=e;r.resolve(s);return s}e.ensureMermaid=_;async function b(t){let n=[];for(const i of[...t.matchAll(a)]){switch(i&&i[2]||null){case"elk":n.push(e.ensureMermaidElk());break}}if(n.length){await Promise.all(n)}}e.ensureRenderers=b;async function y(){if(o!=null){return o}if(c){return c.promise}c=new i.PromiseDelegate;const e=await _();const t=(await n.e(6986).then(n.bind(n,96986))).default;e.registerLayoutLoaders(t);o=t;c.resolve(o);return o}e.ensureMermaidElk=y;e.RE_VOID_ELEMENT=/<\s*(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)\s*([^>]*?)\s*>/gi;function w(e,t,n){n=n.trim();if(!n.endsWith("/")){n=`${n} /`}return`<${t} ${n}>`}e.replaceVoidElement=w;e.HTML_ENTITIES=`\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n`.replace(/\n/g," ");const C='';const x=`";e.SVG_XML_HEADER=`${C}\n ${x}${e.HTML_ENTITIES}${S}`})(_||(_={}));class b{constructor(e){this.languages=["mermaid"];this.rank=100;this._mermaid=e.mermaid}async walk(e){await this._mermaid.renderFigure(e)}render(e){let t=this._mermaid.getCachedFigure(e);if(t){return t.outerHTML}return null}}var y=n(1143);const w="image/svg+xml";class C extends y.Widget{constructor(e){super();this._lastRendered=null;this._mimeType=e.mimeType;this.addClass(c)}static set manager(e){if(C._manager){console.warn("Mermaid manager may only be set once, and is already set.");return}C._manager=e;C._managerReady.resolve(e)}async renderModel(e){const t=await C._managerReady.promise;const n=e.data[this._mimeType];if(n==null||n===this._lastRendered){return}this._lastRendered=n;const i=await t.renderFigure(n);if(i.classList.contains(u)){this.node.classList.add(u)}else{this.node.classList.remove(u)}if(!i.firstChild){return}if(this.node.innerHTML!==i.innerHTML){this.node.innerHTML=i.innerHTML}const s=t.getMermaidVersion();const r={...e.metadata[o]||{},version:s};const a={...e.metadata,[o]:r};const l=i.querySelector("img");if(l){const t=decodeURIComponent(l.src.split(",")[1]);const n=e.data[w];if(t!==n){e.setData({data:{...e.data,[w]:t},metadata:a})}}else{const t={...e.data};delete t[w];e.setData({data:t,metadata:a})}}}C._manager=null;C._managerReady=new i.PromiseDelegate;const x={safe:true,mimeTypes:[o],createRenderer:e=>new C(e)}},69240:(e,t,n)=>{"use strict";var i=n(10395);var s=n(97913);var o=n(85072);var r=n.n(o);var a=n(97825);var l=n.n(a);var d=n(77659);var c=n.n(d);var h=n(55056);var u=n.n(h);var p=n(10540);var m=n.n(p);var g=n(41113);var f=n.n(g);var v=n(9979);var _={};_.styleTagTransform=f();_.setAttributes=u();_.insert=c().bind(null,"head");_.domAPI=l();_.insertStyleElement=m();var b=r()(v.A,_);const y=v.A&&v.A.locals?v.A.locals:undefined},24039:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>_});var i=n(80349);var s=n.n(i);var o=n(84739);var r=n.n(o);var a=n(30619);var l=n.n(a);var d=n(26331);var c=n.n(d);var h=n(5592);var u=n.n(h);var p=n(70933);var m=n.n(p);const g="@jupyterlab/metadataform-extension:metadataforms";var f;(function(e){async function t(e,t,n,i,s){var o;let r;let a={};function l(e){a={};e.properties.metadataforms.default=Object.keys(t.plugins).map((e=>{var n;const i=(n=t.plugins[e].schema["jupyter.lab.metadataforms"])!==null&&n!==void 0?n:[];i.forEach((t=>{t._origin=e}));a[e]=i;return i})).concat([e["jupyter.lab.metadataforms"]]).reduce(((e,t)=>{t.forEach((t=>{const n=e.find((e=>e.id===t.id));if(n){for(let[e,i]of Object.entries(t.metadataSchema.properties)){n.metadataSchema.properties[e]=i}if(t.metadataSchema.required){if(!n.metadataSchema.required){n.metadataSchema.required=t.metadataSchema.required}else{n.metadataSchema.required.concat(t.metadataSchema.required)}}if(t.metadataSchema.allOf){if(!n.metadataSchema.allOf){n.metadataSchema.allOf=t.metadataSchema.allOf}else{n.metadataSchema.allOf.concat(t.metadataSchema.allOf)}}if(t.uiSchema){if(!n.uiSchema)n.uiSchema={};for(let[e,i]of Object.entries(t.uiSchema)){n.uiSchema[e]=i}}if(t.metadataOptions){if(!n.metadataOptions)n.metadataOptions={};for(let[e,i]of Object.entries(t.metadataOptions)){n.metadataOptions[e]=i}}}else{e.push(t)}}));return e}),[])}t.transform(g,{compose:e=>{var t,n,i,s;if(!r){r=h.JSONExt.deepCopy(e.schema);l(r)}const o=(i=(n=(t=r.properties)===null||t===void 0?void 0:t.metadataforms)===null||n===void 0?void 0:n.default)!==null&&i!==void 0?i:[];const a={metadataforms:(s=e.data.user.metadataforms)!==null&&s!==void 0?s:[]};const d={metadataforms:o.concat(a.metadataforms)};e.data={composite:d,user:a};return e},fetch:e=>{if(!r){r=h.JSONExt.deepCopy(e.schema);l(r)}return{data:e.data,id:e.id,raw:e.raw,schema:r,version:e.version}}});r=null;const d=await t.load(g);const c=new p.MetadataFormProvider;for(let u of d.composite.metadataforms){let e={};let t=h.JSONExt.deepCopy(u.metadataSchema);let r={};if(u.uiSchema){r=h.JSONExt.deepCopy(u.uiSchema)}for(let[n,i]of Object.entries(t.properties)){if(i.default){if(!e[n])e[n]={};e[n].default=i.default}}if(u.metadataOptions){for(let[t,n]of Object.entries(u.metadataOptions)){if(n.cellTypes){if(!e[t])e[t]={};e[t].cellTypes=n.cellTypes}if(n.metadataLevel){if(!e[t])e[t]={};e[t].level=n.metadataLevel}if(n.writeDefault!==undefined){if(!e[t])e[t]={};e[t].writeDefault=n.writeDefault}if(n.customRenderer){const e=s.getRenderer(n.customRenderer);if(e!==undefined){if(!r[t])r[t]={};if(e.fieldRenderer){r[t]["ui:field"]=e.fieldRenderer}else{r[t]["ui:widget"]=e.widgetRenderer}}}}}n.addSection({sectionName:u.id,rank:u.rank,label:(o=u.label)!==null&&o!==void 0?o:u.id});const a=new p.MetadataFormWidget({metadataSchema:t,metaInformation:e,uiSchema:r,pluginId:u._origin,translator:i,showModified:u.showModified});n.addItem({section:u.id,tool:a});c.add(u.id,a)}return c}e.loadSettingsMetadataForm=t})(f||(f={}));const v={id:g,description:"Provides the metadata form registry.",autoStart:true,requires:[i.INotebookTools,a.ITranslator,d.IFormRendererRegistry,o.ISettingRegistry],provides:p.IMetadataFormProvider,activate:async(e,t,n,i,s)=>await f.loadSettingsMetadataForm(e,s,t,n,i)};const _=v},87145:(e,t,n)=>{"use strict";var i=n(40662);var s=n(3579);var o=n(28006);var r=n(69540)},32822:(e,t,n)=>{"use strict";n.r(t);n.d(t,{FormWidget:()=>d,IMetadataFormProvider:()=>_,MetadataFormProvider:()=>v,MetadataFormWidget:()=>g});var i=n(14366);var s=n(26331);var o=n(41742);var r=n.n(o);var a=n(44914);var l=n.n(a);class d extends i.ReactWidget{constructor(e){super();this.addClass("jp-FormWidget");this._props=e}render(){const e={defaultFormData:this._props.settings.default(),updateMetadata:this._props.metadataFormWidget.updateMetadata};return l().createElement(s.FormComponent,{validator:r(),schema:this._props.properties,formData:this._props.formData,formContext:e,uiSchema:this._props.uiSchema,liveValidate:true,idPrefix:`jp-MetadataForm-${this._props.pluginId}`,onChange:e=>{this._props.metadataFormWidget.updateMetadata(e.formData||{})},compact:true,showModifiedFromDefault:this._props.showModified,translator:this._props.translator})}}var c=n(80349);var h=n(84739);var u=n(30619);var p=n(5592);var m=n(1143);class g extends c.NotebookTools.Tool{constructor(e){super();this.updateMetadata=(e,t)=>{var n,i,s,o,r,a,l,d;if(this.notebookTools==undefined)return;const c=this.notebookTools.activeNotebookPanel;const h=this.notebookTools.activeCell;if(h==null)return;this._updatingMetadata=true;const u={};const p={};for(let[m,g]of Object.entries(e)){if(!this.metadataKeys.includes(m))continue;if(((n=this._metaInformation[m])===null||n===void 0?void 0:n.level)==="notebook"&&this._notebookModelNull)continue;if(((i=this._metaInformation[m])===null||i===void 0?void 0:i.cellTypes)&&!((o=(s=this._metaInformation[m])===null||s===void 0?void 0:s.cellTypes)===null||o===void 0?void 0:o.includes(h.model.type))){continue}let e;let t;if(((r=this._metaInformation[m])===null||r===void 0?void 0:r.level)==="notebook"){e=c.model.metadata;t=p}else{e=h.model.metadata;t=u}let v=m.replace(/^\/+/,"").replace(/\/+$/,"").split("/");let _=v[0];if(_==undefined)continue;let b=g!==undefined&&(((l=(a=this._metaInformation[m])===null||a===void 0?void 0:a.writeDefault)!==null&&l!==void 0?l:true)||g!==((d=this._metaInformation[m])===null||d===void 0?void 0:d.default));if(v.length==1){if(b)t[_]=g;else t[_]=undefined;continue}let y=v.slice(1,-1);let w=v[v.length-1];if(!(_ in t)){t[_]=e[_]}if(t[_]===undefined)t[_]={};let C=t[_];let x=true;for(let n of y){if(!(n in C)){if(!b){x=false;break}else C[n]={}}C=C[n]}if(x){if(!b)delete C[w];else C[w]=g}if(!b){t[_]=f.deleteEmptyNested(t[_],v.slice(1));if(!Object.keys(t[_]).length)t[_]=undefined}}for(let[m,g]of Object.entries(u)){if(g===undefined)h.model.deleteMetadata(m);else h.model.setMetadata(m,g)}if(!this._notebookModelNull){for(let[e,t]of Object.entries(p)){if(t===undefined)c.model.deleteMetadata(e);else c.model.setMetadata(e,t)}}this._updatingMetadata=false;if(t){this._update()}};this._notebookModelNull=false;this._metadataSchema=e.metadataSchema;this._metaInformation=e.metaInformation;this._uiSchema=e.uiSchema||{};this._pluginId=e.pluginId;this._showModified=e.showModified||false;this.translator=e.translator||u.nullTranslator;this._trans=this.translator.load("jupyterlab");this._updatingMetadata=false;const t=this.layout=new m.SingletonLayout;const n=document.createElement("div");const i=document.createElement("div");i.textContent=this._trans.__("No metadata.");i.className="jp-MetadataForm-placeholderContent";n.appendChild(i);this._placeholder=new m.Widget({node:n});this._placeholder.addClass("jp-MetadataForm-placeholder");t.widget=this._placeholder}get form(){return this._form}get metadataKeys(){var e;const t=[];for(let n of Object.keys(this._metadataSchema.properties)){t.push(n)}(e=this._metadataSchema.allOf)===null||e===void 0?void 0:e.forEach((e=>{if(e.then!==undefined){if(e.then.properties!==undefined){let n=e.then.properties;for(let e of Object.keys(n)){if(!t.includes(e))t.push(e)}}}if(e.else!==undefined){if(e.else.properties!==undefined){let n=e.else.properties;for(let e of Object.keys(n)){if(!t.includes(e))t.push(e)}}}}));return t}getProperties(e){return p.JSONExt.deepCopy(this._metadataSchema.properties[e])||null}setProperties(e,t){Object.entries(t).forEach((([t,n])=>{this._metadataSchema.properties[e][t]=n}))}setContent(e){const t=this.layout;if(t.widget){t.widget.removeClass("jp-MetadataForm-content");t.removeWidget(t.widget)}if(!e){e=this._placeholder}e.addClass("jp-MetadataForm-content");t.widget=e}buildWidget(e){this._form=new d(e);this._form.addClass("jp-MetadataForm");this.setContent(this._form)}onAfterShow(e){this._update()}onActiveCellChanged(e){if(this.isVisible)this._update()}onActiveCellMetadataChanged(e){if(!this._updatingMetadata&&this.isVisible)this._update()}onActiveNotebookPanelChanged(e){const t=this.notebookTools.activeNotebookPanel;this._notebookModelNull=t===null||t.model===null;if(!this._updatingMetadata&&this.isVisible)this._update()}onActiveNotebookPanelMetadataChanged(e){if(!this._updatingMetadata&&this.isVisible)this._update()}_update(){var e,t,n,i,s;const o=this.notebookTools.activeNotebookPanel;const r=this.notebookTools.activeCell;if(r==undefined)return;const a=p.JSONExt.deepCopy(this._metadataSchema);const l={};for(let d of Object.keys(this._metadataSchema.properties||p.JSONExt.emptyObject)){if(((e=this._metaInformation[d])===null||e===void 0?void 0:e.level)==="notebook"&&this._notebookModelNull){delete a.properties[d];continue}if(((t=this._metaInformation[d])===null||t===void 0?void 0:t.cellTypes)&&!((i=(n=this._metaInformation[d])===null||n===void 0?void 0:n.cellTypes)===null||i===void 0?void 0:i.includes(r.model.type))){delete a.properties[d];continue}let c;let h=d.replace(/^\/+/,"").replace(/\/+$/,"").split("/");if(((s=this._metaInformation[d])===null||s===void 0?void 0:s.level)==="notebook"){c=o.model.metadata}else{c=r.model.metadata}let u=true;for(let e of h){if(e in c)c=c[e];else{u=false;break}}if(u)l[d]=c}this.buildWidget({properties:a,settings:new h.BaseSettings({schema:this._metadataSchema}),uiSchema:this._uiSchema,translator:this.translator||null,formData:l,metadataFormWidget:this,showModified:this._showModified,pluginId:this._pluginId})}}var f;(function(e){function t(e,n){let i=n.shift();if(i!==undefined&&i in e){if(Object.keys(e[i]).length)e[i]=t(e[i],n);if(!Object.keys(e[i]).length)delete e[i]}return e}e.deleteEmptyNested=t})(f||(f={}));class v{constructor(){this._items={}}add(e,t){if(!this._items[e]){this._items[e]=t}else{console.warn(`A MetadataformWidget is already registered with id ${e}`)}}get(e){if(this._items[e]){return this._items[e]}else{console.warn(`There is no MetadataformWidget registered with id ${e}`)}}}const _=new p.Token("@jupyterlab/metadataform:IMetadataFormProvider",`A service to register new metadata editor widgets.`)},69540:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(28006);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(62129);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},15555:(e,t,n)=>{"use strict";n.r(t);n.d(t,{MAJOR_VERSION:()=>o,MINOR_VERSION:()=>r,isCode:()=>c,isDisplayData:()=>u,isDisplayUpdate:()=>p,isError:()=>g,isExecuteResult:()=>h,isMarkdown:()=>d,isRaw:()=>l,isStream:()=>m,validateMimeValue:()=>a});var i=n(5592);var s=n.n(i);const o=4;const r=4;function a(e,t){const n=/^application\/.+\+json$/;const s=e==="application/json"||n.test(e);const o=e=>Object.prototype.toString.call(e)==="[object String]";if(Array.isArray(t)){if(s){return false}let e=true;t.forEach((t=>{if(!o(t)){e=false}}));return e}if(o(t)){return!s}if(!s){return false}return i.JSONExt.isObject(t)}function l(e){return e.cell_type==="raw"}function d(e){return e.cell_type==="markdown"}function c(e){return e.cell_type==="code"}function h(e){return e.output_type==="execute_result"}function u(e){return e.output_type==="display_data"}function p(e){return e.output_type==="update_display_data"}function m(e){return e.output_type==="stream"}function g(e){return e.output_type==="error"}},65463:(e,t,n)=>{"use strict";n.r(t);n.d(t,{commandEditItem:()=>ie,default:()=>we,executionIndicator:()=>se,exportPlugin:()=>oe,notebookTrustItem:()=>re});var i=n(94307);var s=n(14366);var o=n(5061);var r=n(54723);var a=n(30397);var l=n(66899);var d=n(29939);var c=n(43801);var h=n(51997);var u=n(22441);var p=n(42875);var m=n(74955);var g=n(7243);var f=n(23899);var v=n(70933);var _=n(80349);var b=n(57257);var y=n(44539);var w=n(84739);var C=n(94931);var x=n(24735);var S=n(62149);var k=n(30619);var j=n(26331);var I=n(34236);var E=n(5592);var T=n(90044);var M=n(42856);var D=n(1143);const A={id:"@jupyterlab/notebook-extension:cell-executor",description:"Provides the notebook cell executor.",autoStart:true,provides:_.INotebookCellExecutor,activate:()=>Object.freeze({runCell:_.runCell})};var P=n(13105);var L=n(28548);const R={activate:N,id:"@jupyterlab/notebook-extension:log-output",description:"Adds cell outputs log to the application logger.",requires:[_.INotebookTracker],optional:[P.ILoggerRegistry],autoStart:true};function N(e,t,n){if(!n){return}function i(e){function t(t,i,s){if(L.KernelMessage.isDisplayDataMsg(t)||L.KernelMessage.isStreamMsg(t)||L.KernelMessage.isErrorMsg(t)||L.KernelMessage.isExecuteResultMsg(t)){const o=n.getLogger(e.context.path);o.rendermime=e.content.rendermime;const r={...t.content,output_type:t.header.msg_type};let a=i;if(L.KernelMessage.isErrorMsg(t)||L.KernelMessage.isStreamMsg(t)&&t.content.name==="stderr"){a=s}o.log({type:"output",data:r,level:a})}}e.context.sessionContext.iopubMessage.connect(((e,n)=>t(n,"info","info")));e.context.sessionContext.unhandledMessage.connect(((e,n)=>t(n,"warning","error")))}t.forEach((e=>i(e)));t.widgetAdded.connect(((e,t)=>i(t)))}var O=n(44914);var B=n.n(O);var F=n(26568);const z="jp-ActiveCellTool";const H="jp-ActiveCellTool-Content";const W="jp-ActiveCellTool-CellContent";class V extends _.NotebookTools.Tool{constructor(e){super();const{languages:t}=e;this._tracker=e.tracker;this.addClass(z);this.layout=new D.PanelLayout;this._inputPrompt=new o.InputPrompt;this.layout.addWidget(this._inputPrompt);const n=document.createElement("div");n.classList.add(H);const i=n.appendChild(document.createElement("div"));const s=i.appendChild(document.createElement("pre"));i.className=W;this._editorEl=s;this.layout.addWidget(new D.Widget({node:n}));const r=async()=>{var e,n;this._editorEl.innerHTML="";if(((e=this._cellModel)===null||e===void 0?void 0:e.type)==="code"){this._inputPrompt.executionCount=`${(n=this._cellModel.executionCount)!==null&&n!==void 0?n:""}`;this._inputPrompt.show()}else{this._inputPrompt.executionCount=null;this._inputPrompt.hide()}if(this._cellModel){await t.highlight(this._cellModel.sharedModel.getSource().split("\n")[0],t.findByMIME(this._cellModel.mimeType),this._editorEl)}};this._refreshDebouncer=new F.Debouncer(r,150)}render(e){var t,n;const i=this._tracker.activeCell;if(i)this._cellModel=(i===null||i===void 0?void 0:i.model)||null;((t=this._cellModel)===null||t===void 0?void 0:t.sharedModel).changed.connect(this.refresh,this);(n=this._cellModel)===null||n===void 0?void 0:n.mimeTypeChanged.connect(this.refresh,this);this.refresh().then((()=>undefined)).catch((()=>undefined));return B().createElement("div",{ref:e=>e===null||e===void 0?void 0:e.appendChild(this.node)})}async refresh(){await this._refreshDebouncer.invoke()}}var U=n(44336);const q="jp-CellMetadataEditor";const $="jp-NotebookMetadataEditor";class K extends _.NotebookTools.MetadataEditorTool{constructor(e){super(e);this._tracker=e.tracker;this.editor.editorHostNode.addEventListener("blur",this.editor,true);this.editor.editorHostNode.addEventListener("click",this.editor,true);this.editor.headerNode.addEventListener("click",this.editor)}_onSourceChanged(){var e,t,n;const i=(e=this._tracker.activeCell)===null||e===void 0?void 0:e.model.sharedModel;if(i&&this.editor.source){const e=Object.keys((t=i.metadata)!==null&&t!==void 0?t:{});const s=(n=this.editor.source.toJSON())!==null&&n!==void 0?n:{};i.transact((()=>{e.forEach((e=>i.deleteMetadata(e)));i.setMetadata(s)}))}}render(e){var t;const n=this._tracker.activeCell;this.editor.source=n?new U.ObservableJSON({values:n.model.metadata}):null;(t=this.editor.source)===null||t===void 0?void 0:t.changed.connect(this._onSourceChanged,this);return B().createElement("div",{className:q},B().createElement("div",{ref:e=>e===null||e===void 0?void 0:e.appendChild(this.node)}))}}class J extends _.NotebookTools.MetadataEditorTool{constructor(e){super(e);this._tracker=e.tracker;this.editor.editorHostNode.addEventListener("blur",this.editor,true);this.editor.editorHostNode.addEventListener("click",this.editor,true);this.editor.headerNode.addEventListener("click",this.editor)}_onSourceChanged(){var e,t;if(this.editor.source){(t=(e=this._tracker.currentWidget)===null||e===void 0?void 0:e.model)===null||t===void 0?void 0:t.sharedModel.setMetadata(this.editor.source.toJSON())}}render(e){var t,n;const i=this._tracker.currentWidget;this.editor.source=i?new U.ObservableJSON({values:(t=i.model)===null||t===void 0?void 0:t.metadata}):null;(n=this.editor.source)===null||n===void 0?void 0:n.changed.connect(this._onSourceChanged,this);return B().createElement("div",{className:$},B().createElement("div",{ref:e=>e===null||e===void 0?void 0:e.appendChild(this.node)}))}}var G;(function(e){e.createNew="notebook:create-new";e.interrupt="notebook:interrupt-kernel";e.restart="notebook:restart-kernel";e.restartClear="notebook:restart-clear-output";e.restartAndRunToSelected="notebook:restart-and-run-to-selected";e.restartRunAll="notebook:restart-run-all";e.reconnectToKernel="notebook:reconnect-to-kernel";e.changeKernel="notebook:change-kernel";e.getKernel="notebook:get-kernel";e.createConsole="notebook:create-console";e.createSubshellConsole="notebook:create-subshell-console";e.createOutputView="notebook:create-output-view";e.clearAllOutputs="notebook:clear-all-cell-outputs";e.shutdown="notebook:shutdown-kernel";e.closeAndShutdown="notebook:close-and-shutdown";e.trust="notebook:trust";e.exportToFormat="notebook:export-to-format";e.run="notebook:run-cell";e.runAndAdvance="notebook:run-cell-and-select-next";e.runAndInsert="notebook:run-cell-and-insert-below";e.runInConsole="notebook:run-in-console";e.runAll="notebook:run-all-cells";e.runAllAbove="notebook:run-all-above";e.runAllBelow="notebook:run-all-below";e.renderAllMarkdown="notebook:render-all-markdown";e.toCode="notebook:change-cell-to-code";e.toMarkdown="notebook:change-cell-to-markdown";e.toRaw="notebook:change-cell-to-raw";e.cut="notebook:cut-cell";e.copy="notebook:copy-cell";e.pasteAbove="notebook:paste-cell-above";e.pasteBelow="notebook:paste-cell-below";e.duplicateBelow="notebook:duplicate-below";e.pasteAndReplace="notebook:paste-and-replace-cell";e.moveUp="notebook:move-cell-up";e.moveDown="notebook:move-cell-down";e.clearOutputs="notebook:clear-cell-output";e.deleteCell="notebook:delete-cell";e.insertAbove="notebook:insert-cell-above";e.insertBelow="notebook:insert-cell-below";e.selectAbove="notebook:move-cursor-up";e.selectBelow="notebook:move-cursor-down";e.selectHeadingAboveOrCollapse="notebook:move-cursor-heading-above-or-collapse";e.selectHeadingBelowOrExpand="notebook:move-cursor-heading-below-or-expand";e.insertHeadingAbove="notebook:insert-heading-above";e.insertHeadingBelow="notebook:insert-heading-below";e.extendAbove="notebook:extend-marked-cells-above";e.extendTop="notebook:extend-marked-cells-top";e.extendBelow="notebook:extend-marked-cells-below";e.extendBottom="notebook:extend-marked-cells-bottom";e.selectAll="notebook:select-all";e.deselectAll="notebook:deselect-all";e.editMode="notebook:enter-edit-mode";e.merge="notebook:merge-cells";e.mergeAbove="notebook:merge-cell-above";e.mergeBelow="notebook:merge-cell-below";e.split="notebook:split-cell-at-cursor";e.commandMode="notebook:enter-command-mode";e.toggleAllLines="notebook:toggle-all-cell-line-numbers";e.undoCellAction="notebook:undo-cell-action";e.redoCellAction="notebook:redo-cell-action";e.redo="notebook:redo";e.undo="notebook:undo";e.markdown1="notebook:change-cell-to-heading-1";e.markdown2="notebook:change-cell-to-heading-2";e.markdown3="notebook:change-cell-to-heading-3";e.markdown4="notebook:change-cell-to-heading-4";e.markdown5="notebook:change-cell-to-heading-5";e.markdown6="notebook:change-cell-to-heading-6";e.hideCode="notebook:hide-cell-code";e.showCode="notebook:show-cell-code";e.hideAllCode="notebook:hide-all-cell-code";e.showAllCode="notebook:show-all-cell-code";e.hideOutput="notebook:hide-cell-outputs";e.showOutput="notebook:show-cell-outputs";e.toggleOutput="notebook:toggle-cell-outputs";e.hideAllOutputs="notebook:hide-all-cell-outputs";e.showAllOutputs="notebook:show-all-cell-outputs";e.toggleRenderSideBySideCurrentNotebook="notebook:toggle-render-side-by-side-current";e.setSideBySideRatio="notebook:set-side-by-side-ratio";e.enableOutputScrolling="notebook:enable-output-scrolling";e.disableOutputScrolling="notebook:disable-output-scrolling";e.selectLastRunCell="notebook:select-last-run-cell";e.replaceSelection="notebook:replace-selection";e.autoClosingBrackets="notebook:toggle-autoclosing-brackets";e.toggleCollapseCmd="notebook:toggle-heading-collapse";e.collapseAllCmd="notebook:collapse-all-headings";e.expandAllCmd="notebook:expand-all-headings";e.copyToClipboard="notebook:copy-to-clipboard";e.invokeCompleter="completer:invoke-notebook";e.selectCompleter="completer:select-notebook";e.tocRunCells="toc:run-cells";e.accessPreviousHistory="notebook:access-previous-history-entry";e.accessNextHistory="notebook:access-next-history-entry";e.virtualScrollbar="notebook:toggle-virtual-scrollbar"})(G||(G={}));const Y="Notebook";const X=["notebook","python","custom"];const Q="@jupyterlab/notebook-extension:panel";const Z="jp-NotebookExtension-sideBySideMargins";const ee={id:"@jupyterlab/notebook-extension:tracker",description:"Provides the notebook widget tracker.",provides:_.INotebookTracker,requires:[_.INotebookWidgetFactory,l.IEditorExtensionRegistry,_.INotebookCellExecutor],optional:[s.ICommandPalette,p.IDefaultFileBrowser,m.ILauncher,i.ILayoutRestorer,f.IMainMenu,i.IRouter,w.ISettingRegistry,s.ISessionContextDialogs,k.ITranslator,j.IFormRendererRegistry,p.IFileBrowserFactory],activate:Ie,autoStart:true};const te={id:"@jupyterlab/notebook-extension:factory",description:"Provides the notebook cell factory.",provides:_.NotebookPanel.IContentFactory,requires:[r.IEditorServices],autoStart:true,activate:(e,t)=>{const n=t.factoryService.newInlineEditor;return new _.NotebookPanel.ContentFactory({editorFactory:n})}};const ne={activate:Ce,provides:_.INotebookTools,id:"@jupyterlab/notebook-extension:tools",description:"Provides the notebook tools.",autoStart:true,requires:[_.INotebookTracker,r.IEditorServices,l.IEditorLanguageRegistry,C.IStateDB,k.ITranslator],optional:[b.IPropertyInspectorProvider]};const ie={id:"@jupyterlab/notebook-extension:mode-status",description:"Adds a notebook mode status widget.",autoStart:true,requires:[_.INotebookTracker,k.ITranslator],optional:[x.IStatusBar],activate:(e,t,n,i)=>{if(!i){return}const{shell:s}=e;const o=new _.CommandEditStatus(n);t.currentChanged.connect((()=>{const e=t.currentWidget;o.model.notebook=e&&e.content}));i.registerStatusItem("@jupyterlab/notebook-extension:mode-status",{priority:1,item:o,align:"right",rank:4,isActive:()=>!!s.currentWidget&&!!t.currentWidget&&s.currentWidget===t.currentWidget})}};const se={id:"@jupyterlab/notebook-extension:execution-indicator",description:"Adds a notebook execution status widget.",autoStart:true,requires:[_.INotebookTracker,i.ILabShell,k.ITranslator],optional:[x.IStatusBar,w.ISettingRegistry],activate:(e,t,n,i,s,o)=>{let r;let a;let l;const d=e=>{var o,d;let{showOnToolBar:c,showProgress:h}=e;if(!c){if(!s){return}if(!(r===null||r===void 0?void 0:r.model)){r=new _.ExecutionIndicator(i);a=(e,n)=>{const{newValue:i}=n;if(i&&t.has(i)){const e=i;r.model.attachNotebook({content:e.content,context:e.sessionContext})}};l=s.registerStatusItem("@jupyterlab/notebook-extension:execution-indicator",{item:r,align:"left",rank:3,isActive:()=>{const e=n.currentWidget;return!!e&&t.has(e)}});r.model.attachNotebook({content:(o=t.currentWidget)===null||o===void 0?void 0:o.content,context:(d=t.currentWidget)===null||d===void 0?void 0:d.sessionContext});n.currentChanged.connect(a);r.disposed.connect((()=>{n.currentChanged.disconnect(a)}))}r.model.displayOption={showOnToolBar:c,showProgress:h}}else{if(l){n.currentChanged.disconnect(a);l.dispose()}}};if(o){const t=o.load(ee.id);Promise.all([t,e.restored]).then((([e])=>{d(_.ExecutionIndicator.getSettingValue(e));e.changed.connect((e=>d(_.ExecutionIndicator.getSettingValue(e))))})).catch((e=>{console.error(e.message)}))}}};const oe={id:"@jupyterlab/notebook-extension:export",description:"Adds the export notebook commands.",autoStart:true,requires:[k.ITranslator,_.INotebookTracker],optional:[f.IMainMenu,s.ICommandPalette],activate:(e,t,n,i,s)=>{var o;const r=t.load("jupyterlab");const{commands:l,shell:d}=e;const c=e.serviceManager;const h=()=>Le.isEnabled(d,n);l.addCommand(G.exportToFormat,{label:e=>{if(e.label===undefined){return r.__("Save and Export Notebook to the given `format`.")}const t=e["label"];return e["isPalette"]?r.__("Save and Export Notebook: %1",t):t},execute:e=>{const t=Me(n,d,e);if(!t){return}const i=a.PageConfig.getNBConvertURL({format:e["format"],download:true,path:t.context.path});const{context:s}=t;if(s.model.dirty&&!s.model.readOnly){return s.save().then((()=>{window.open(i,"_blank","noopener")}))}return new Promise((e=>{window.open(i,"_blank","noopener");e(undefined)}))},isEnabled:h});let u;if(i){u=(o=i.fileMenu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-file-notebookexport"})))===null||o===void 0?void 0:o.submenu}let p=false;const m=async()=>{if(p){return}n.widgetAdded.disconnect(m);p=true;const e=await c.nbconvert.getExportFormats(false);if(!e){return}const i=Le.getFormatLabels(t);const o=Object.keys(e);o.forEach((function(e){const t=r.__(e[0].toUpperCase()+e.substr(1));const n=i[e]?i[e]:t;let o={format:e,label:n,isPalette:false};if(X.indexOf(e)===-1){if(u){u.addItem({command:G.exportToFormat,args:o})}if(s){o={format:e,label:n,isPalette:true};const t=r.__("Notebook Operations");s.addItem({command:G.exportToFormat,category:t,args:o})}}}))};n.widgetAdded.connect(m)}};const re={id:"@jupyterlab/notebook-extension:trust-status",description:"Adds the notebook trusted status widget.",autoStart:true,requires:[_.INotebookTracker,k.ITranslator],optional:[x.IStatusBar],activate:(e,t,n,i)=>{if(!i){return}const{shell:s}=e;const o=new _.NotebookTrustStatus(n);t.currentChanged.connect((()=>{const e=t.currentWidget;o.model.notebook=e&&e.content}));i.registerStatusItem("@jupyterlab/notebook-extension:trust-status",{item:o,align:"right",rank:3,isActive:()=>!!s.currentWidget&&!!t.currentWidget&&s.currentWidget===t.currentWidget})}};const ae={id:"@jupyterlab/notebook-extension:widget-factory",description:"Provides the notebook widget factory.",provides:_.INotebookWidgetFactory,requires:[_.NotebookPanel.IContentFactory,r.IEditorServices,y.IRenderMimeRegistry,s.IToolbarWidgetRegistry],optional:[w.ISettingRegistry,s.ISessionContextDialogs,k.ITranslator],activate:xe,autoStart:true};const le={id:"@jupyterlab/notebook-extension:cloned-outputs",description:"Adds the clone output feature.",requires:[c.IDocumentManager,_.INotebookTracker,k.ITranslator],optional:[i.ILayoutRestorer],activate:Se,autoStart:true};const de={id:"@jupyterlab/notebook-extension:code-console",description:"Adds the notebook code consoles features.",requires:[_.INotebookTracker,k.ITranslator],activate:ke,autoStart:true};const ce={id:"@jupyterlab/notebook-extension:copy-output",description:"Adds the copy cell outputs feature.",activate:je,requires:[k.ITranslator,_.INotebookTracker],autoStart:true};const he={id:"@jupyterlab/notebook-extension:kernel-status",description:"Adds the notebook kernel status.",activate:(e,t,n)=>{const i=e=>{let n=null;if(e&&t.has(e)){return e.sessionContext}return n};n.addSessionProvider(i)},requires:[_.INotebookTracker,s.IKernelStatusModel],autoStart:true};const ue={id:"@jupyterlab/notebook-extension:cursor-position",description:"Adds the notebook cursor position status.",activate:(e,t,n)=>{let i=null;const s=async e=>{let s=null;if(e!==i){i===null||i===void 0?void 0:i.content.activeCellChanged.disconnect(n.update);i=null;if(e&&t.has(e)){e.content.activeCellChanged.connect(n.update);const t=e.content.activeCell;s=null;if(t){await t.ready;s=t.editor}i=e}}else if(e){const t=e.content.activeCell;s=null;if(t){await t.ready;s=t.editor}}return s};n.addEditorProvider(s)},requires:[_.INotebookTracker,r.IPositionModel],autoStart:true};const pe={id:"@jupyterlab/notebook-extension:completer",description:"Adds the code completion capability to notebooks.",requires:[_.INotebookTracker],optional:[d.ICompletionProviderManager,k.ITranslator,s.ISanitizer],activate:Ee,autoStart:true};const me={id:"@jupyterlab/notebook-extension:search",description:"Adds search capability to notebooks.",requires:[u.ISearchProviderRegistry],autoStart:true,activate:(e,t)=>{t.add("jp-notebookSearchProvider",_.NotebookSearchProvider)}};const ge={id:"@jupyterlab/notebook-extension:toc",description:"Adds table of content capability to the notebooks",requires:[_.INotebookTracker,S.ITableOfContentsRegistry,s.ISanitizer],optional:[y.IMarkdownParser,w.ISettingRegistry],autoStart:true,activate:(e,t,n,i,s,o)=>{const r=new _.NotebookToCFactory(t,s,i);n.add(r);if(o){Promise.all([e.restored,o.load(ee.id)]).then((([e,t])=>{const n=()=>{var e;r.scrollToTop=(e=t.composite["scrollHeadingToTop"])!==null&&e!==void 0?e:true};n();t.changed.connect(n)})).catch((e=>{console.error("Failed to load notebook table of content settings.",e)}))}}};const fe={id:"@jupyterlab/notebook-extension:language-server",description:"Adds language server capability to the notebooks.",requires:[_.INotebookTracker,g.ILSPDocumentConnectionManager,g.ILSPFeatureManager,g.ILSPCodeExtractorsManager,g.IWidgetLSPAdapterTracker],activate:Te,autoStart:true};const ve={id:"@jupyterlab/notebook-extension:update-raw-mimetype",description:"Adds metadata form editor for raw cell mimetype.",autoStart:true,requires:[_.INotebookTracker,v.IMetadataFormProvider,k.ITranslator],activate:(e,t,n,i)=>{const s=i.load("jupyterlab");let o=false;async function r(){if(o){return}if(!n.get("commonToolsSection")){return}const a=n.get("commonToolsSection").getProperties("/raw_mimetype");if(!a){return}t.widgetAdded.disconnect(r);o=true;const l=e.serviceManager;const d=await l.nbconvert.getExportFormats(false);if(!d){return}const c=Object.keys(d);const h=Le.getFormatLabels(i);c.forEach((function(e){var t;const n=((t=a.oneOf)===null||t===void 0?void 0:t.filter((t=>t.const===e)).length)>0;if(!n){const t=s.__(e[0].toUpperCase()+e.substr(1));const n=h[e]?h[e]:t;const i=d[e].output_mimetype;a.oneOf.push({const:i,title:n})}}));n.get("commonToolsSection").setProperties("/raw_mimetype",a)}t.widgetAdded.connect(r)}};const _e={id:"@jupyterlab/notebook-extension:metadata-editor",description:"Adds metadata form for full metadata editor.",autoStart:true,requires:[_.INotebookTracker,r.IEditorServices,j.IFormRendererRegistry],optional:[k.ITranslator],activate:(e,t,n,i,s)=>{const o=e=>n.factoryService.newInlineEditor(e);const r={fieldRenderer:e=>new K({editorFactory:o,tracker:t,label:"Cell metadata",translator:s}).render(e)};i.addRenderer("@jupyterlab/notebook-extension:metadata-editor.cell-metadata",r);const a={fieldRenderer:e=>new J({editorFactory:o,tracker:t,label:"Notebook metadata",translator:s}).render(e)};i.addRenderer("@jupyterlab/notebook-extension:metadata-editor.notebook-metadata",a)}};const be={id:"@jupyterlab/notebook-extension:active-cell-tool",description:"Adds active cell field in the metadata editor tab.",autoStart:true,requires:[_.INotebookTracker,j.IFormRendererRegistry,l.IEditorLanguageRegistry],activate:(e,t,n,i)=>{const s={fieldRenderer:e=>new V({tracker:t,languages:i}).render(e)};n.addRenderer("@jupyterlab/notebook-extension:active-cell-tool.renderer",s)}};const ye=[A,te,ee,se,oe,ne,ie,re,ae,R,le,de,ce,he,ue,pe,me,ge,fe,ve,_e,be];const we=ye;function Ce(e,t,n,i,s,o,r){const a=o.load("jupyterlab");const l="notebook-tools";const d=new _.NotebookTools({tracker:t,translator:o});const c=(e,t)=>{switch(t.type){case"activate-request":void s.save(l,{open:true});break;case"after-hide":case"close-request":void s.remove(l);break;default:break}return true};d.title.icon=j.buildIcon;d.title.caption=a.__("Notebook Tools");d.id=l;M.MessageLoop.installMessageHook(d,c);if(r){t.widgetAdded.connect(((e,t)=>{const n=r.register(t);n.render(d)}))}return d}function xe(e,t,n,i,o,r,l,d){const c=d!==null&&d!==void 0?d:k.nullTranslator;const u=l!==null&&l!==void 0?l:new s.SessionContextDialogs({translator:c});const p=a.PageConfig.getOption("notebookStartsKernel");const m=p===""||p.toLowerCase()==="true";const{commands:g}=e;let f;o.addFactory(Y,"save",(e=>h.ToolbarItems.createSaveButton(g,e.context.fileChanged)));o.addFactory(Y,"cellType",(e=>_.ToolbarItems.createCellTypeItem(e,c)));o.addFactory(Y,"kernelName",(e=>s.Toolbar.createKernelNameItem(e.sessionContext,u,c)));o.addFactory(Y,"executionProgress",(e=>{const t=r===null||r===void 0?void 0:r.load(ee.id);const n=_.ExecutionIndicator.createExecutionIndicatorItem(e,c,t);void(t===null||t===void 0?void 0:t.then((t=>{e.disposed.connect((()=>{t.dispose()}))})));return n}));if(r){f=(0,s.createToolbarFactory)(o,r,Y,Q,c)}const v=c.load("jupyterlab");const b=new _.NotebookWidgetFactory({name:Y,label:v.__("Notebook"),fileTypes:["notebook"],modelName:"notebook",defaultFor:["notebook"],preferKernel:m,canStartKernel:true,rendermime:i,contentFactory:t,editorConfig:_.StaticNotebook.defaultEditorConfig,notebookConfig:_.StaticNotebook.defaultNotebookConfig,mimeTypeService:n.mimeTypeService,toolbarFactory:f,translator:c});e.docRegistry.addWidgetFactory(b);return b}function Se(e,t,n,i,o){const r=i.load("jupyterlab");const a=new s.WidgetTracker({namespace:"cloned-outputs"});if(o){void o.restore(a,{command:G.createOutputView,args:e=>({path:e.content.path,index:e.content.index}),name:e=>`${e.content.path}:${e.content.index}`,when:n.restored})}const{commands:l,shell:d}=e;const c=()=>Le.isEnabledAndSingleSelected(d,n);l.addCommand(G.createOutputView,{label:r.__("Create New View for Cell Output"),execute:async e=>{var o;let r;let l;const d=e.path;let c=e.index;if(d&&c!==undefined&&c!==null){l=t.findWidget(d,Y);if(!l){return}}else{l=n.currentWidget;if(!l){return}r=l.content.activeCell;c=l.content.activeCellIndex}const h=new Le.ClonedOutputArea({notebook:l,cell:r,index:c,translator:i});const u=new s.MainAreaWidget({content:h});l.context.addSibling(u,{ref:l.id,mode:"split-bottom",type:"Cloned Output"});const p=()=>{void a.save(u)};l.context.pathChanged.connect(p);(o=l.context.model)===null||o===void 0?void 0:o.cells.changed.connect(p);void a.add(u);l.content.disposed.connect((()=>{var e;l.context.pathChanged.disconnect(p);(e=l.context.model)===null||e===void 0?void 0:e.cells.changed.disconnect(p);u.dispose()}))},isEnabled:c})}function ke(e,t,n){const i=n.load("jupyterlab");const{commands:s,shell:o}=e;const r=()=>Le.isEnabled(o,t);s.addCommand(G.createConsole,{label:i.__("New Console for Notebook"),execute:e=>{const n=t.currentWidget;if(!n){return}return Le.createConsole(s,n,e["activate"])},isEnabled:r});s.addCommand(G.createSubshellConsole,{label:i.__("New Subshell Console for Notebook"),execute:e=>{const n=t.currentWidget;if(!n){return}return Le.createConsole(s,n,e["activate"],true)},isEnabled:r,isVisible:()=>{var e,n,i;const s=(n=(e=t.currentWidget)===null||e===void 0?void 0:e.context.sessionContext.session)===null||n===void 0?void 0:n.kernel;return(i=s===null||s===void 0?void 0:s.supportsSubshells)!==null&&i!==void 0?i:false}});s.addCommand(G.runInConsole,{label:i.__("Run Selected Text or Current Line in Console"),execute:async e=>{var n,i;const o=t.currentWidget;if(!o){return}const{context:r,content:a}=o;const l=a.activeCell;const d=l===null||l===void 0?void 0:l.model.metadata;const c=r.path;if(!l||l.model.type!=="code"){return}let h;const u=l.editor;if(!u){return}const p=u.getSelection();const{start:m,end:g}=p;const f=m.column!==g.column||m.line!==g.line;if(f){const e=u.getOffsetAt(p.start);const t=u.getOffsetAt(p.end);h=u.model.sharedModel.getSource().substring(e,t)}else{const e=u.getCursorPosition();const t=u.model.sharedModel.getSource().split("\n");let s=p.start.line;while(s0;let a=0;let l=a+1;while(true){h=t.slice(a,l).join("\n");const d=await((i=(n=o.context.sessionContext.session)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.requestIsComplete({code:h+"\n\n"}));if((d===null||d===void 0?void 0:d.content.status)==="complete"){if(st.addRange(e)))}e.commands.addCommand(G.copyToClipboard,{label:i.__("Copy Output to Clipboard"),execute:e=>{var t;const i=(t=n.currentWidget)===null||t===void 0?void 0:t.content.activeCell;if(i==null){return}const o=i.outputArea.outputTracker.currentWidget;if(o==null){return}const r=o.node.getElementsByClassName("jp-OutputArea-output");if(r.length>0){const e=r[0];s(e)}}});e.contextMenu.addItem({command:G.copyToClipboard,selector:".jp-Notebook .jp-OutputArea-child",rank:0})}function Ie(e,t,n,i,o,r,a,l,d,c,h,u,p,m,g){(0,_.setCellExecutor)(i);const f=p!==null&&p!==void 0?p:k.nullTranslator;const v=u!==null&&u!==void 0?u:new s.SessionContextDialogs({translator:f});const b=f.load("jupyterlab");const y=e.serviceManager;const{commands:w,shell:C}=e;const x=new _.NotebookTracker({namespace:"notebook"});function S(e,t){if(t.hash&&x.currentWidget){x.currentWidget.setFragment(t.hash)}}c===null||c===void 0?void 0:c.routed.connect(S);const I=()=>Le.isEnabled(C,x);const M=e=>document.documentElement.style.setProperty("--jp-side-by-side-output-size",`${e}fr`);const D=h?h.load(ee.id):Promise.reject(new Error(`No setting registry for ${ee.id}`));D.then((t=>{O(t);t.changed.connect((()=>{O(t);w.notifyCommandChanged(G.virtualScrollbar)}));const i=(e,n)=>{const{newValue:i,oldValue:s}=n;const o=i.autoStartDefault;if(typeof o==="boolean"&&o!==s.autoStartDefault){if(o!==t.get("autoStartDefaultKernel").composite)t.set("autoStartDefaultKernel",o).catch((e=>{console.error(`Failed to set ${t.id}.autoStartDefaultKernel`)}))}};const o=new WeakSet;const r=e=>{const t=e.context.sessionContext;if(!t.isDisposed&&!o.has(t)){o.add(t);t.kernelPreferenceChanged.connect(i);t.disposed.connect((()=>{t.kernelPreferenceChanged.disconnect(i)}))}};x.forEach(r);x.widgetAdded.connect(((e,t)=>{r(t)}));w.addCommand(G.autoClosingBrackets,{execute:e=>{var n;const i=t.get("codeCellConfig").composite;const s=t.get("markdownCellConfig").composite;const o=t.get("rawCellConfig").composite;const r=i.autoClosingBrackets||s.autoClosingBrackets||o.autoClosingBrackets;const a=!!((n=e["force"])!==null&&n!==void 0?n:!r);[i.autoClosingBrackets,s.autoClosingBrackets,o.autoClosingBrackets]=[a,a,a];void t.set("codeCellConfig",i);void t.set("markdownCellConfig",s);void t.set("rawCellConfig",o)},label:b.__("Auto Close Brackets for All Notebook Cell Types"),isToggled:()=>["codeCellConfig","markdownCellConfig","rawCellConfig"].some((e=>{var i;return((i=t.get(e).composite.autoClosingBrackets)!==null&&i!==void 0?i:n.baseConfiguration["autoClosingBrackets"])===true}))});w.addCommand(G.setSideBySideRatio,{label:b.__("Set side-by-side ratio"),execute:e=>{s.InputDialog.getNumber({title:b.__("Width of the output in side-by-side mode"),value:t.get("sideBySideOutputRatio").composite}).then((e=>{M(e.value);if(e.value){void t.set("sideBySideOutputRatio",e.value)}})).catch(console.error)}});De(e,x,f,v,t,I)})).catch((n=>{console.warn(n.message);N({editorConfig:t.editorConfig,notebookConfig:t.notebookConfig,kernelShutdown:t.shutdownOnClose,autoStartDefault:t.autoStartDefault});De(e,x,f,v,null,I)}));if(m){const e=m.getRenderer("@jupyterlab/codemirror-extension:plugin.defaultConfig");if(e){m.addRenderer("@jupyterlab/notebook-extension:tracker.codeCellConfig",e);m.addRenderer("@jupyterlab/notebook-extension:tracker.markdownCellConfig",e);m.addRenderer("@jupyterlab/notebook-extension:tracker.rawCellConfig",e)}}if(l){void l.restore(x,{command:"docmanager:open",args:e=>({path:e.context.path,factory:Y}),name:e=>e.context.path,when:y.ready})}const A=e.docRegistry;const P=new _.NotebookModelFactory({disableDocumentWideUndoRedo:t.notebookConfig.disableDocumentWideUndoRedo,collaborative:true});A.addModelFactory(P);if(o){Ae(o,f)}let L=0;const R=e.docRegistry.getFileType("notebook");t.widgetCreated.connect(((e,t)=>{var n,i;t.id=t.id||`notebook-${++L}`;t.title.icon=R===null||R===void 0?void 0:R.icon;t.title.iconClass=(n=R===null||R===void 0?void 0:R.iconClass)!==null&&n!==void 0?n:"";t.title.iconLabel=(i=R===null||R===void 0?void 0:R.iconLabel)!==null&&i!==void 0?i:"";t.context.pathChanged.connect((()=>{void x.save(t)}));void x.add(t)}));function N(e){x.forEach((t=>{t.setConfig(e)}));if(e.notebookConfig.windowingMode!=="full"){x.forEach((e=>{if(e.content.scrollbar){e.content.scrollbar=false}}))}}function O(e){const n={..._.StaticNotebook.defaultEditorConfig.code,...e.get("codeCellConfig").composite};const i={..._.StaticNotebook.defaultEditorConfig.markdown,...e.get("markdownCellConfig").composite};const s={..._.StaticNotebook.defaultEditorConfig.raw,...e.get("rawCellConfig").composite};t.editorConfig={code:n,markdown:i,raw:s};t.notebookConfig={enableKernelInitNotification:e.get("enableKernelInitNotification").composite,autoRenderMarkdownCells:e.get("autoRenderMarkdownCells").composite,showHiddenCellsButton:e.get("showHiddenCellsButton").composite,scrollPastEnd:e.get("scrollPastEnd").composite,defaultCell:e.get("defaultCell").composite,recordTiming:e.get("recordTiming").composite,overscanCount:e.get("overscanCount").composite,showInputPlaceholder:e.get("showInputPlaceholder").composite,inputHistoryScope:e.get("inputHistoryScope").composite,maxNumberOutputs:e.get("maxNumberOutputs").composite,showEditorForReadOnlyMarkdown:e.get("showEditorForReadOnlyMarkdown").composite,disableDocumentWideUndoRedo:!e.get("documentWideUndoRedo").composite,renderingLayout:e.get("renderingLayout").composite,sideBySideLeftMarginOverride:e.get("sideBySideLeftMarginOverride").composite,sideBySideRightMarginOverride:e.get("sideBySideRightMarginOverride").composite,sideBySideOutputRatio:e.get("sideBySideOutputRatio").composite,windowingMode:e.get("windowingMode").composite,accessKernelHistory:e.get("accessKernelHistory").composite};M(t.notebookConfig.sideBySideOutputRatio);const o=`.jp-mod-sideBySide.jp-Notebook .jp-Notebook-cell {\n margin-left: ${t.notebookConfig.sideBySideLeftMarginOverride} !important;\n margin-right: ${t.notebookConfig.sideBySideRightMarginOverride} !important;`;const r=document.getElementById(Z);if(r){r.innerText=o}else{document.head.insertAdjacentHTML("beforeend",``)}t.autoStartDefault=e.get("autoStartDefaultKernel").composite;t.shutdownOnClose=e.get("kernelShutdown").composite;P.disableDocumentWideUndoRedo=!e.get("documentWideUndoRedo").composite;N({editorConfig:t.editorConfig,notebookConfig:t.notebookConfig,kernelShutdown:t.shutdownOnClose,autoStartDefault:t.autoStartDefault})}if(d){Pe(d,I)}const B=async(e,t,n)=>{const i=await w.execute("docmanager:new-untitled",{path:e,type:"notebook"});if(i!==undefined){const e=await w.execute("docmanager:open",{path:i.path,factory:Y,kernel:{id:t,name:n}});e.isUntitled=true;return e}};w.addCommand(G.createNew,{label:e=>{var t,n,i;const s=e["kernelName"]||"";if(e["isLauncher"]&&e["kernelName"]&&y.kernelspecs){return(i=(n=(t=y.kernelspecs.specs)===null||t===void 0?void 0:t.kernelspecs[s])===null||n===void 0?void 0:n.display_name)!==null&&i!==void 0?i:""}if(e["isPalette"]||e["isContextMenu"]){return b.__("New Notebook")}return b.__("Notebook")},caption:b.__("Create a new notebook"),icon:e=>e["isPalette"]?undefined:j.notebookIcon,execute:e=>{var t,n;const i=(t=g===null||g===void 0?void 0:g.tracker.currentWidget)!==null&&t!==void 0?t:r;const s=e["cwd"]||((n=i===null||i===void 0?void 0:i.model.path)!==null&&n!==void 0?n:"");const o=e["kernelId"]||"";const a=e["kernelName"]||"";return B(s,o,a)}});if(a){void y.ready.then((()=>{let e=null;const t=()=>{if(e){e.dispose();e=null}const t=y.kernelspecs.specs;if(!t){return}e=new T.DisposableSet;for(const n in t.kernelspecs){const i=n===t.default?0:Infinity;const s=t.kernelspecs[n];const o=s.resources["logo-svg"]||s.resources["logo-64x64"];e.add(a.add({command:G.createNew,args:{isLauncher:true,kernelName:n},category:b.__("Notebook"),rank:i,kernelIconUrl:o,metadata:{kernel:E.JSONExt.deepCopy(s.metadata||{})}}))}};t();y.kernelspecs.specsChanged.connect(t)}))}return x}function Ee(e,t,n,i,o){if(!n){return}const r=(i!==null&&i!==void 0?i:k.nullTranslator).load("jupyterlab");const a=o!==null&&o!==void 0?o:new s.Sanitizer;e.commands.addCommand(G.invokeCompleter,{label:r.__("Display the completion helper."),execute:e=>{var i;const s=t.currentWidget;if(s&&((i=s.content.activeCell)===null||i===void 0?void 0:i.model.type)==="code"){n.invoke(s.id)}}});e.commands.addCommand(G.selectCompleter,{label:r.__("Select the completion suggestion."),execute:()=>{const e=t.currentWidget&&t.currentWidget.id;if(e){return n.select(e)}}});e.commands.addKeyBinding({command:G.selectCompleter,keys:["Enter"],selector:".jp-Notebook .jp-mod-completer-active"});const l=async(e,t)=>{var i,s;const o={editor:(s=(i=t.content.activeCell)===null||i===void 0?void 0:i.editor)!==null&&s!==void 0?s:null,session:t.sessionContext.session,widget:t,sanitizer:a};await n.updateCompleter(o);t.content.activeCellChanged.connect(((e,i)=>{i===null||i===void 0?void 0:i.ready.then((()=>{const e={editor:i.editor,session:t.sessionContext.session,widget:t,sanitizer:a};return n.updateCompleter(e)})).catch(console.error)}));t.sessionContext.sessionChanged.connect((()=>{var e;(e=t.content.activeCell)===null||e===void 0?void 0:e.ready.then((()=>{var e,i;const s={editor:(i=(e=t.content.activeCell)===null||e===void 0?void 0:e.editor)!==null&&i!==void 0?i:null,session:t.sessionContext.session,widget:t};return n.updateCompleter(s)})).catch(console.error)}))};t.widgetAdded.connect(l);n.activeProvidersChanged.connect((()=>{t.forEach((e=>{l(undefined,e).catch((e=>console.error(e)))}))}))}function Te(e,t,n,i,s,o){t.widgetAdded.connect((async(e,t)=>{const r=new _.NotebookAdapter(t,{connectionManager:n,featureManager:i,foreignCodeExtractorsManager:s});o.add(r)}))}function Me(e,t,n){var i;const o=n[s.SemanticCommand.WIDGET]?(i=e.find((e=>e.id===n[s.SemanticCommand.WIDGET])))!==null&&i!==void 0?i:null:e.currentWidget;const r=n["activate"]!==false;if(r&&o){t.activateById(o.id)}return o}function De(e,t,n,i,r,a){var l;const d=n.load("jupyterlab");const{commands:c,shell:h}=e;const u=()=>Le.isEnabledAndSingleSelected(h,t);const p=e=>{var t,n;for(const i of e.widgets){if(i instanceof o.MarkdownCell&&i.headingCollapsed){_.NotebookActions.setHeadingCollapse(i,true,e)}if(i.model.id===((n=(t=e.activeCell)===null||t===void 0?void 0:t.model)===null||n===void 0?void 0:n.id)){_.NotebookActions.expandParent(i,e)}}};const m=()=>Le.isEnabledAndHeadingSelected(h,t);t.currentChanged.connect(((e,t)=>{var n,i;if(!((i=(n=t===null||t===void 0?void 0:t.content)===null||n===void 0?void 0:n.model)===null||i===void 0?void 0:i.cells)){return}t.content.model.cells.changed.connect(((e,n)=>{p(t.content)}));t.content.activeCellChanged.connect(((e,t)=>{_.NotebookActions.expandParent(t,e)}))}));t.selectionChanged.connect((()=>{c.notifyCommandChanged(G.duplicateBelow);c.notifyCommandChanged(G.deleteCell);c.notifyCommandChanged(G.copy);c.notifyCommandChanged(G.cut);c.notifyCommandChanged(G.pasteBelow);c.notifyCommandChanged(G.pasteAbove);c.notifyCommandChanged(G.pasteAndReplace);c.notifyCommandChanged(G.moveUp);c.notifyCommandChanged(G.moveDown);c.notifyCommandChanged(G.run);c.notifyCommandChanged(G.runAll);c.notifyCommandChanged(G.runAndAdvance);c.notifyCommandChanged(G.runAndInsert)}));t.activeCellChanged.connect((()=>{c.notifyCommandChanged(G.moveUp);c.notifyCommandChanged(G.moveDown)}));c.addCommand(G.runAndAdvance,{label:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Run Selected Cell","Run Selected Cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Run this cell and advance","Run these %1 cells and advance",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const s=Me(t,h,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.runAndAdvance(t,e.sessionContext,i,n)}},isEnabled:e=>e.toolbar?true:a(),icon:e=>e.toolbar?j.runIcon:undefined});c.addCommand(G.run,{label:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Run Selected Cell and Do not Advance","Run Selected Cells and Do not Advance",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const s=Me(t,h,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.run(t,e.sessionContext,i,n)}},isEnabled:a});c.addCommand(G.runAndInsert,{label:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Run Selected Cell and Insert Below","Run Selected Cells and Insert Below",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const s=Me(t,h,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.runAndInsert(t,e.sessionContext,i,n)}},isEnabled:a});c.addCommand(G.runAll,{label:d.__("Run All Cells"),caption:d.__("Run all cells"),execute:e=>{const s=Me(t,h,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.runAll(t,e.sessionContext,i,n)}},isEnabled:a});c.addCommand(G.runAllAbove,{label:d.__("Run All Above Selected Cell"),execute:e=>{const s=Me(t,h,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.runAllAbove(t,e.sessionContext,i,n)}},isEnabled:()=>u()&&t.currentWidget.content.activeCellIndex!==0});c.addCommand(G.runAllBelow,{label:d.__("Run Selected Cell and All Below"),execute:e=>{const s=Me(t,h,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.runAllBelow(t,e.sessionContext,i,n)}},isEnabled:()=>u()&&(t.currentWidget.content.widgets.length===1||t.currentWidget.content.activeCellIndex!==t.currentWidget.content.widgets.length-1)});c.addCommand(G.renderAllMarkdown,{label:d.__("Render All Markdown Cells"),execute:e=>{const n=Me(t,h,e);if(n){const{content:e}=n;return _.NotebookActions.renderAllMarkdown(e)}},isEnabled:a});c.addCommand(G.restart,{label:d.__("Restart Kernel…"),caption:d.__("Restart the kernel"),execute:e=>{const n=Me(t,h,e);if(n){return i.restart(n.sessionContext)}},isEnabled:e=>e.toolbar?true:a(),icon:e=>e.toolbar?j.refreshIcon:undefined});c.addCommand(G.shutdown,{label:d.__("Shut Down Kernel"),execute:e=>{const n=Me(t,h,e);if(!n){return}return n.context.sessionContext.shutdown()},isEnabled:a});c.addCommand(G.closeAndShutdown,{label:d.__("Close and Shut Down Notebook…"),execute:e=>{const n=Me(t,h,e);if(!n){return}const i=n.title.label;return(0,s.showDialog)({title:d.__("Shut down the notebook?"),body:d.__('Are you sure you want to close "%1"?',i),buttons:[s.Dialog.cancelButton(),s.Dialog.warnButton()]}).then((e=>{if(e.button.accept){return c.execute(G.shutdown,{activate:false}).then((()=>{n.dispose()}))}}))},isEnabled:a});c.addCommand(G.trust,{label:()=>d.__("Trust Notebook"),execute:e=>{const n=Me(t,h,e);if(n){const{context:e,content:t}=n;return _.NotebookActions.trust(t).then((()=>e.save()))}},isEnabled:a});c.addCommand(G.restartClear,{label:d.__("Restart Kernel and Clear Outputs of All Cells…"),caption:d.__("Restart the kernel and clear all outputs of all cells"),execute:async()=>{const e=await c.execute(G.restart,{activate:false});if(e){await c.execute(G.clearAllOutputs)}},isEnabled:a});c.addCommand(G.restartAndRunToSelected,{label:d.__("Restart Kernel and Run up to Selected Cell…"),execute:async e=>{const s=Me(t,h,{activate:false,...e});if(!s){return}const{context:o,content:r}=s;const a=r.widgets.slice(0,r.activeCellIndex+1);const l=await i.restart(s.sessionContext);if(l){return _.NotebookActions.runCells(r,a,o.sessionContext,i,n)}},isEnabled:u});c.addCommand(G.restartRunAll,{label:d.__("Restart Kernel and Run All Cells…"),caption:d.__("Restart the kernel and run all cells"),execute:async e=>{const s=Me(t,h,{activate:false,...e});if(!s){return}const{context:o,content:r}=s;const a=r.widgets;const l=await i.restart(s.sessionContext);if(l){return _.NotebookActions.runCells(r,a,o.sessionContext,i,n)}},isEnabled:e=>e.toolbar?true:a(),icon:e=>e.toolbar?j.fastForwardIcon:undefined});c.addCommand(G.clearAllOutputs,{label:d.__("Clear Outputs of All Cells"),caption:d.__("Clear all outputs of all cells"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.clearAllOutputs(n.content)}},isEnabled:a});c.addCommand(G.clearOutputs,{label:d.__("Clear Cell Output"),caption:d.__("Clear outputs for the selected cells"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.clearOutputs(n.content)}},isEnabled:a});c.addCommand(G.interrupt,{label:d.__("Interrupt Kernel"),caption:d.__("Interrupt the kernel"),execute:e=>{var n;const i=Me(t,h,e);if(!i){return}const s=(n=i.context.sessionContext.session)===null||n===void 0?void 0:n.kernel;if(s){return s.interrupt()}},isEnabled:e=>e.toolbar?true:a(),icon:e=>e.toolbar?j.stopIcon:undefined});c.addCommand(G.toCode,{label:d.__("Change to Code Cell Type"),execute:e=>{const i=Me(t,h,e);if(i){return _.NotebookActions.changeCellType(i.content,"code",n)}},isEnabled:a});c.addCommand(G.toMarkdown,{label:d.__("Change to Markdown Cell Type"),execute:e=>{const i=Me(t,h,e);if(i){return _.NotebookActions.changeCellType(i.content,"markdown",n)}},isEnabled:a});c.addCommand(G.toRaw,{label:d.__("Change to Raw Cell Type"),execute:e=>{const i=Me(t,h,e);if(i){return _.NotebookActions.changeCellType(i.content,"raw",n)}},isEnabled:a});c.addCommand(G.cut,{label:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Cut Cell","Cut Cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Cut this cell","Cut these %1 cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.cut(n.content)}},icon:e=>e.toolbar?j.cutIcon:undefined,isEnabled:e=>e.toolbar?true:a()});c.addCommand(G.copy,{label:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Copy Cell","Copy Cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Copy this cell","Copy these %1 cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.copy(n.content)}},icon:e=>e.toolbar?j.copyIcon:undefined,isEnabled:e=>e.toolbar?true:a()});c.addCommand(G.pasteBelow,{label:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Paste Cell Below","Paste Cells Below",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Paste this cell from the clipboard","Paste these %1 cells from the clipboard",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.paste(n.content,"below")}},icon:e=>e.toolbar?j.pasteIcon:undefined,isEnabled:e=>e.toolbar?true:a()});c.addCommand(G.pasteAbove,{label:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Paste Cell Above","Paste Cells Above",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Paste this cell from the clipboard","Paste these %1 cells from the clipboard",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.paste(n.content,"above")}},isEnabled:a});c.addCommand(G.duplicateBelow,{label:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Duplicate Cell Below","Duplicate Cells Below",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Create a duplicate of this cell below","Create duplicates of %1 cells below",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Me(t,h,e);if(n){_.NotebookActions.duplicate(n.content,"belowSelected")}},icon:e=>e.toolbar?j.duplicateIcon:undefined,isEnabled:e=>e.toolbar?true:a()});c.addCommand(G.pasteAndReplace,{label:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Paste Cell and Replace","Paste Cells and Replace",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.paste(n.content,"replace")}},isEnabled:a});c.addCommand(G.deleteCell,{label:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Delete Cell","Delete Cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Delete this cell","Delete these %1 cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.deleteCells(n.content)}},isEnabled:e=>e.toolbar?true:a()});c.addCommand(G.split,{label:d.__("Split Cell"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.splitCell(n.content)}},isEnabled:a});c.addCommand(G.merge,{label:d.__("Merge Selected Cells"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.mergeCells(n.content)}},isEnabled:a});c.addCommand(G.mergeAbove,{label:d.__("Merge Cell Above"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.mergeCells(n.content,true)}},isEnabled:a});c.addCommand(G.mergeBelow,{label:d.__("Merge Cell Below"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.mergeCells(n.content,false)}},isEnabled:a});c.addCommand(G.insertAbove,{label:d.__("Insert Cell Above"),caption:d.__("Insert a cell above"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.insertAbove(n.content)}},icon:e=>e.toolbar?j.addAboveIcon:undefined,isEnabled:e=>e.toolbar?true:a()});c.addCommand(G.insertBelow,{label:d.__("Insert Cell Below"),caption:d.__("Insert a cell below"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.insertBelow(n.content)}},icon:e=>e.toolbar?j.addBelowIcon:undefined,isEnabled:e=>e.toolbar?true:a()});c.addCommand(G.selectAbove,{label:d.__("Select Cell Above"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.selectAbove(n.content)}},isEnabled:a});c.addCommand(G.selectBelow,{label:d.__("Select Cell Below"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.selectBelow(n.content)}},isEnabled:a});c.addCommand(G.insertHeadingAbove,{label:d.__("Insert Heading Above Current Heading"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.insertSameLevelHeadingAbove(n.content)}},isEnabled:a});c.addCommand(G.insertHeadingBelow,{label:d.__("Insert Heading Below Current Heading"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.insertSameLevelHeadingBelow(n.content)}},isEnabled:a});c.addCommand(G.selectHeadingAboveOrCollapse,{label:d.__("Select Heading Above or Collapse Heading"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.selectHeadingAboveOrCollapseHeading(n.content)}},isEnabled:a});c.addCommand(G.selectHeadingBelowOrExpand,{label:d.__("Select Heading Below or Expand Heading"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.selectHeadingBelowOrExpandHeading(n.content)}},isEnabled:a});c.addCommand(G.extendAbove,{label:d.__("Extend Selection Above"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.extendSelectionAbove(n.content)}},isEnabled:a});c.addCommand(G.extendTop,{label:d.__("Extend Selection to Top"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.extendSelectionAbove(n.content,true)}},isEnabled:a});c.addCommand(G.extendBelow,{label:d.__("Extend Selection Below"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.extendSelectionBelow(n.content)}},isEnabled:a});c.addCommand(G.extendBottom,{label:d.__("Extend Selection to Bottom"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.extendSelectionBelow(n.content,true)}},isEnabled:a});c.addCommand(G.selectAll,{label:d.__("Select All Cells"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.selectAll(n.content)}},isEnabled:a});c.addCommand(G.deselectAll,{label:d.__("Deselect All Cells"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.deselectAll(n.content)}},isEnabled:a});c.addCommand(G.moveUp,{label:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Move Cell Up","Move Cells Up",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Move this cell up","Move these %1 cells up",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Me(t,h,e);if(n){_.NotebookActions.moveUp(n.content);Le.raiseSilentNotification(d.__("Notebook cell shifted up successfully"),n.node)}},isEnabled:e=>{const n=Me(t,h,{...e,activate:false});if(!n){return false}return n.content.activeCellIndex>=1},icon:e=>e.toolbar?j.moveUpIcon:undefined});c.addCommand(G.moveDown,{label:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Move Cell Down","Move Cells Down",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Me(t,h,{...e,activate:false});return d._n("Move this cell down","Move these %1 cells down",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Me(t,h,e);if(n){_.NotebookActions.moveDown(n.content);Le.raiseSilentNotification(d.__("Notebook cell shifted down successfully"),n.node)}},isEnabled:e=>{const n=Me(t,h,{...e,activate:false});if(!n||!n.content.model){return false}const i=n.content.model.cells.length;return n.content.activeCellIndexe.toolbar?j.moveDownIcon:undefined});c.addCommand(G.toggleAllLines,{label:d.__("Show Line Numbers"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.toggleAllLineNumbers(n.content)}},isEnabled:a,isToggled:e=>{const n=Me(t,h,{...e,activate:false});if(n){const e=n.content.editorConfig;return!!(e.code.lineNumbers&&e.markdown.lineNumbers&&e.raw.lineNumbers)}else{return false}}});c.addCommand(G.commandMode,{label:d.__("Enter Command Mode"),execute:e=>{const n=Me(t,h,e);if(n){n.content.mode="command"}},isEnabled:a});c.addCommand(G.editMode,{label:d.__("Enter Edit Mode"),execute:e=>{const n=Me(t,h,e);if(n){n.content.mode="edit"}},isEnabled:a});c.addCommand(G.undoCellAction,{label:d.__("Undo Cell Operation"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.undo(n.content)}},isEnabled:a});c.addCommand(G.redoCellAction,{label:d.__("Redo Cell Operation"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.redo(n.content)}},isEnabled:a});c.addCommand(G.redo,{label:d.__("Redo"),execute:e=>{var n;const i=Me(t,h,e);if(i){const e=i.content.activeCell;if(e){e.inputHidden=false;return(n=e.editor)===null||n===void 0?void 0:n.redo()}}}});c.addCommand(G.undo,{label:d.__("Undo"),execute:e=>{var n;const i=Me(t,h,e);if(i){const e=i.content.activeCell;if(e){e.inputHidden=false;return(n=e.editor)===null||n===void 0?void 0:n.undo()}}}});c.addCommand(G.changeKernel,{label:d.__("Change Kernel…"),execute:e=>{const n=Me(t,h,e);if(n){return i.selectKernel(n.context.sessionContext)}},isEnabled:a});c.addCommand(G.getKernel,{label:d.__("Get Kernel"),execute:e=>{var n;const i=Me(t,h,{activate:false,...e});if(i){return(n=i.sessionContext.session)===null||n===void 0?void 0:n.kernel}},isEnabled:a});c.addCommand(G.reconnectToKernel,{label:d.__("Reconnect to Kernel"),execute:e=>{var n;const i=Me(t,h,e);if(!i){return}const s=(n=i.context.sessionContext.session)===null||n===void 0?void 0:n.kernel;if(s){return s.reconnect()}},isEnabled:a});c.addCommand(G.markdown1,{label:d.__("Change to Heading 1"),execute:e=>{const i=Me(t,h,e);if(i){return _.NotebookActions.setMarkdownHeader(i.content,1,n)}},isEnabled:a});c.addCommand(G.markdown2,{label:d.__("Change to Heading 2"),execute:e=>{const i=Me(t,h,e);if(i){return _.NotebookActions.setMarkdownHeader(i.content,2,n)}},isEnabled:a});c.addCommand(G.markdown3,{label:d.__("Change to Heading 3"),execute:e=>{const i=Me(t,h,e);if(i){return _.NotebookActions.setMarkdownHeader(i.content,3,n)}},isEnabled:a});c.addCommand(G.markdown4,{label:d.__("Change to Heading 4"),execute:e=>{const i=Me(t,h,e);if(i){return _.NotebookActions.setMarkdownHeader(i.content,4,n)}},isEnabled:a});c.addCommand(G.markdown5,{label:d.__("Change to Heading 5"),execute:e=>{const i=Me(t,h,e);if(i){return _.NotebookActions.setMarkdownHeader(i.content,5,n)}},isEnabled:a});c.addCommand(G.markdown6,{label:d.__("Change to Heading 6"),execute:e=>{const i=Me(t,h,e);if(i){return _.NotebookActions.setMarkdownHeader(i.content,6,n)}},isEnabled:a});c.addCommand(G.hideCode,{label:d.__("Collapse Selected Code"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.hideCode(n.content)}},isEnabled:a});c.addCommand(G.showCode,{label:d.__("Expand Selected Code"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.showCode(n.content)}},isEnabled:a});c.addCommand(G.hideAllCode,{label:d.__("Collapse All Code"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.hideAllCode(n.content)}},isEnabled:a});c.addCommand(G.showAllCode,{label:d.__("Expand All Code"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.showAllCode(n.content)}},isEnabled:a});c.addCommand(G.hideOutput,{label:d.__("Collapse Selected Outputs"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.hideOutput(n.content)}},isEnabled:a});c.addCommand(G.showOutput,{label:d.__("Expand Selected Outputs"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.showOutput(n.content)}},isEnabled:a});c.addCommand(G.toggleOutput,{label:d.__("Toggle Visibility of Selected Outputs"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.toggleOutput(n.content)}},isEnabled:a});c.addCommand(G.hideAllOutputs,{label:d.__("Collapse All Outputs"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.hideAllOutputs(n.content)}},isEnabled:a});c.addCommand(G.toggleRenderSideBySideCurrentNotebook,{label:d.__("Render Side-by-Side"),execute:e=>{const n=Me(t,h,e);if(n){if(n.content.renderingLayout==="side-by-side"){return _.NotebookActions.renderDefault(n.content)}return _.NotebookActions.renderSideBySide(n.content)}},isEnabled:a,isToggled:e=>{const n=Me(t,h,{...e,activate:false});if(n){return n.content.renderingLayout==="side-by-side"}else{return false}}});c.addCommand(G.showAllOutputs,{label:d.__("Expand All Outputs"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.showAllOutputs(n.content)}},isEnabled:a});c.addCommand(G.enableOutputScrolling,{label:d.__("Enable Scrolling for Outputs"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.enableOutputScrolling(n.content)}},isEnabled:a});c.addCommand(G.disableOutputScrolling,{label:d.__("Disable Scrolling for Outputs"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.disableOutputScrolling(n.content)}},isEnabled:a});c.addCommand(G.selectLastRunCell,{label:d.__("Select current running or last run cell"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.selectLastRunCell(n.content)}},isEnabled:a});c.addCommand(G.replaceSelection,{label:d.__("Replace Selection in Notebook Cell"),execute:e=>{const n=Me(t,h,e);const i=e["text"]||"";if(n){return _.NotebookActions.replaceSelection(n.content,i)}},isEnabled:a});c.addCommand(G.toggleCollapseCmd,{label:d.__("Toggle Collapse Notebook Heading"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.toggleCurrentHeadingCollapse(n.content)}},isEnabled:m});c.addCommand(G.collapseAllCmd,{label:d.__("Collapse All Headings"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.collapseAllHeadings(n.content)}}});c.addCommand(G.expandAllCmd,{label:d.__("Expand All Headings"),execute:e=>{const n=Me(t,h,e);if(n){return _.NotebookActions.expandAllHeadings(n.content)}}});c.addCommand(G.tocRunCells,{label:d.__("Select and Run Cell(s) for this Heading"),execute:e=>{const s=Me(t,h,{activate:false,...e});if(s===null){return}const r=s.content.activeCell;let a=s.content.activeCellIndex;if(r instanceof o.MarkdownCell){const e=s.content.widgets;const t=r.headingInfo.level;for(let n=s.content.activeCellIndex+1;n=0&&i.headingInfo.level<=t){break}a=n}}s.content.extendContiguousSelectionTo(a);void _.NotebookActions.run(s.content,s.sessionContext,i,n)}});c.addCommand(G.accessPreviousHistory,{label:d.__("Access Previous Kernel History Entry"),execute:async e=>{const n=Me(t,h,e);if(n){return await _.NotebookActions.accessPreviousHistory(n.content)}}});c.addCommand(G.accessNextHistory,{label:d.__("Access Next Kernel History Entry"),execute:async e=>{const n=Me(t,h,e);if(n){return await _.NotebookActions.accessNextHistory(n.content)}}});c.addCommand(G.virtualScrollbar,{label:d.__("Show Minimap"),caption:d.__("Show Minimap (virtual scrollbar, enabled with windowing mode: full)"),execute:e=>{const n=Me(t,h,e);if(n){n.content.scrollbar=!n.content.scrollbar}},icon:e=>e.toolbar?j.tableRowsIcon:undefined,isEnabled:e=>{var t;const n=(e.toolbar?true:a())&&((t=(r===null||r===void 0?void 0:r.composite.windowingMode)==="full")!==null&&t!==void 0?t:false);return n},isToggled:()=>{var e;const n=t.currentWidget;return(e=n===null||n===void 0?void 0:n.content.scrollbar)!==null&&e!==void 0?e:false},isVisible:e=>{var t;const n=(e.toolbar?true:a())&&((t=(r===null||r===void 0?void 0:r.composite.windowingMode)==="full")!==null&&t!==void 0?t:false);return n}});const g=[G.createNew,G.createOutputView];const f=()=>{Object.values(G).filter((t=>!g.includes(t)&&e.commands.hasCommand(t))).forEach((t=>e.commands.notifyCommandChanged(t)))};t.currentChanged.connect(f);(l=h.currentChanged)===null||l===void 0?void 0:l.connect(f)}function Ae(e,t){const n=t.load("jupyterlab");let i=n.__("Notebook Operations");[G.interrupt,G.restart,G.restartClear,G.restartRunAll,G.runAll,G.renderAllMarkdown,G.runAllAbove,G.runAllBelow,G.restartAndRunToSelected,G.selectAll,G.deselectAll,G.clearAllOutputs,G.toggleAllLines,G.editMode,G.commandMode,G.changeKernel,G.reconnectToKernel,G.createConsole,G.createSubshellConsole,G.closeAndShutdown,G.trust,G.toggleCollapseCmd,G.collapseAllCmd,G.expandAllCmd,G.accessPreviousHistory,G.accessNextHistory,G.virtualScrollbar].forEach((t=>{e.addItem({command:t,category:i})}));e.addItem({command:G.createNew,category:i,args:{isPalette:true}});i=n.__("Notebook Cell Operations");[G.run,G.runAndAdvance,G.runAndInsert,G.runInConsole,G.clearOutputs,G.toCode,G.toMarkdown,G.toRaw,G.cut,G.copy,G.pasteBelow,G.pasteAbove,G.pasteAndReplace,G.deleteCell,G.split,G.merge,G.mergeAbove,G.mergeBelow,G.insertAbove,G.insertBelow,G.selectAbove,G.selectBelow,G.selectHeadingAboveOrCollapse,G.selectHeadingBelowOrExpand,G.insertHeadingAbove,G.insertHeadingBelow,G.extendAbove,G.extendTop,G.extendBelow,G.extendBottom,G.moveDown,G.moveUp,G.undoCellAction,G.redoCellAction,G.markdown1,G.markdown2,G.markdown3,G.markdown4,G.markdown5,G.markdown6,G.hideCode,G.showCode,G.hideAllCode,G.showAllCode,G.hideOutput,G.showOutput,G.toggleOutput,G.hideAllOutputs,G.showAllOutputs,G.toggleRenderSideBySideCurrentNotebook,G.setSideBySideRatio,G.enableOutputScrolling,G.disableOutputScrolling].forEach((t=>{e.addItem({command:t,category:i})}))}function Pe(e,t){e.editMenu.undoers.redo.add({id:G.redo,isEnabled:t});e.editMenu.undoers.undo.add({id:G.undo,isEnabled:t});e.editMenu.clearers.clearAll.add({id:G.clearAllOutputs,isEnabled:t});e.editMenu.clearers.clearCurrent.add({id:G.clearOutputs,isEnabled:t});e.fileMenu.consoleCreators.add({id:G.createConsole,isEnabled:t});e.fileMenu.closeAndCleaners.add({id:G.closeAndShutdown,isEnabled:t});e.kernelMenu.kernelUsers.changeKernel.add({id:G.changeKernel,isEnabled:t});e.kernelMenu.kernelUsers.clearWidget.add({id:G.clearAllOutputs,isEnabled:t});e.kernelMenu.kernelUsers.interruptKernel.add({id:G.interrupt,isEnabled:t});e.kernelMenu.kernelUsers.reconnectToKernel.add({id:G.reconnectToKernel,isEnabled:t});e.kernelMenu.kernelUsers.restartKernel.add({id:G.restart,isEnabled:t});e.kernelMenu.kernelUsers.shutdownKernel.add({id:G.shutdown,isEnabled:t});e.viewMenu.editorViewers.toggleLineNumbers.add({id:G.toggleAllLines,isEnabled:t});e.runMenu.codeRunners.restart.add({id:G.restart,isEnabled:t});e.runMenu.codeRunners.run.add({id:G.runAndAdvance,isEnabled:t});e.runMenu.codeRunners.runAll.add({id:G.runAll,isEnabled:t});e.helpMenu.getKernel.add({id:G.getKernel,isEnabled:t})}var Le;(function(e){function t(e,t,n,i){const s={path:t.context.path,preferredLanguage:t.context.model.defaultKernelLanguage,activate:n,subshell:i,ref:t.id,insertMode:"split-bottom",type:"Linked Console"};return e.execute("console:create",s)}e.createConsole=t;function n(e,t){return t.currentWidget!==null&&t.currentWidget===e.currentWidget}e.isEnabled=n;function i(t,n){if(!e.isEnabled(t,n)){return false}const{content:i}=n.currentWidget;const s=i.activeCellIndex;for(let e=0;e{if(!this._cell){this._cell=this._notebook.content.widgets[this._index]}if(!this._cell||this._cell.model.type!=="code"){this.dispose();return}const e=this._cell.cloneOutputArea();this.addWidget(e)}))}get index(){return this._cell?I.ArrayExt.findFirstIndex(this._notebook.content.widgets,(e=>e===this._cell)):this._index}get path(){return this._notebook.context.path}}e.ClonedOutputArea=l})(Le||(Le={}))},90167:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(97913);var a=n(17325);var l=n(5893);var d=n(79010);var c=n(3579);var h=n(19562);var u=n(23359);var p=n(41603);var m=n(39063);var g=n(66731);var f=n(53377);var v=n(36060);var _=n(87779);var b=n(75797);var y=n(69704);var w=n(13137);var C=n(67996);var x=n(28006);var S=n(69540);var k=n(58130)},97846:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CellList:()=>b,CellTypeSwitcher:()=>S,CommandEditStatus:()=>N,ExecutionIndicator:()=>E,ExecutionIndicatorComponent:()=>I,INotebookCellExecutor:()=>Je,INotebookTools:()=>$e,INotebookTracker:()=>Ke,INotebookWidgetFactory:()=>qe,KernelError:()=>g,Notebook:()=>Pe,NotebookActions:()=>f,NotebookAdapter:()=>F,NotebookHistory:()=>T,NotebookModel:()=>P,NotebookModelFactory:()=>L,NotebookPanel:()=>Be,NotebookSearchProvider:()=>ze,NotebookToCFactory:()=>Ve,NotebookToCModel:()=>We,NotebookTools:()=>U,NotebookTracker:()=>Ge,NotebookTrustStatus:()=>Ze,NotebookViewModel:()=>ie,NotebookWidgetFactory:()=>et,NotebookWindowedLayout:()=>se,RunningStatus:()=>He,StaticNotebook:()=>De,ToolbarItems:()=>x,getIdForHeading:()=>Ue,runCell:()=>u,setCellExecutor:()=>v});var i=n(14366);var s=n(5061);var o=n(30397);var r=n(30619);var a=n(34236);var l=n(5592);var d=n(2336);var c=n(44914);var h=n.n(c);async function u({cell:e,notebook:t,notebookConfig:n,onCellExecuted:o,onCellExecutionScheduled:a,sessionContext:l,sessionDialogs:d,translator:c}){var h;c=c!==null&&c!==void 0?c:r.nullTranslator;const u=c.load("jupyterlab");switch(e.model.type){case"markdown":e.rendered=true;e.inputHidden=false;o({cell:e,success:true});break;case"code":if(l){if(l.isTerminating){await(0,i.showDialog)({title:u.__("Kernel Terminating"),body:u.__("The kernel for %1 appears to be terminating. You can not run any cell for now.",(h=l.session)===null||h===void 0?void 0:h.path),buttons:[i.Dialog.okButton()]});break}if(l.pendingInput){await(0,i.showDialog)({title:u.__("Cell not executed due to pending input"),body:u.__("The cell has not been executed to avoid kernel deadlock as there is another pending input! Type your input in the input box, press Enter and try again."),buttons:[i.Dialog.okButton()]});return false}if(l.hasNoKernel){const e=await l.startKernel();if(e&&d){await d.selectKernel(l)}}if(l.hasNoKernel){e.model.sharedModel.transact((()=>{e.model.clearExecution()}));return true}const r=t.deletedCells;a({cell:e});let c=false;try{const i=await s.CodeCell.execute(e,l,{deletedCells:r,recordTiming:n.recordTiming});r.splice(0,r.length);c=(()=>{if(e.isDisposed){return false}if(!i){return true}if(i.content.status==="ok"){const n=i.content;if(n.payload&&n.payload.length){p(n,t,e)}return true}else{throw new g(i.content)}})()}catch(m){if(e.isDisposed||m.message.startsWith("Canceled")){c=false}else{o({cell:e,success:false,error:m});throw m}}if(c){o({cell:e,success:true})}return c}e.model.sharedModel.transact((()=>{e.model.clearExecution()}),false);break;default:break}return Promise.resolve(true)}function p(e,t,n){var i;const s=(i=e.payload)===null||i===void 0?void 0:i.filter((e=>e.source==="set_next_input"))[0];if(!s){return}const o=s.text;const r=s.replace;if(r){n.model.sharedModel.setSource(o);return}const l=t.sharedModel;const d=t.cells;const c=(0,a.findIndex)(d,(e=>e===n.model));if(c===-1){l.insertCell(l.cells.length,{cell_type:"code",source:o,metadata:{trusted:false}})}else{l.insertCell(c+1,{cell_type:"code",source:o,metadata:{trusted:false}})}}const m="application/vnd.jupyter.cells";class g extends Error{constructor(e){const t=e;const n=t.ename;const i=t.evalue;super(`KernelReplyNotOK: ${n} ${i}`);this.errorName=n;this.errorValue=i;this.traceback=t.traceback;Object.setPrototypeOf(this,g.prototype)}}class f{static get executed(){return _.executed}static get executionScheduled(){return _.executionScheduled}static get selectionExecuted(){return _.selectionExecuted}static get outputCleared(){return _.outputCleared}constructor(){}}(function(e){function t(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.mode="edit";e.deselectAll();const n=e.model;const i=e.activeCellIndex;const s=e.widgets[i];const o=s.editor;if(!o){return}const r=o.getSelections();const a=s.model.sharedModel.getSource();const l=[0];let d=-1;let c=-1;for(let m=0;m{const{cell_type:n,metadata:i,outputs:o}=s.model.sharedModel.toJSON();return{cell_type:n,metadata:i,source:a.slice(e,l[t+1]).replace(/^\n+/,"").replace(/\n+$/,""),outputs:t===h-1&&n==="code"?o:undefined}}));n.sharedModel.transact((()=>{n.sharedModel.deleteCell(i);n.sharedModel.insertCells(i,u)}));const p=d!==c?2:1;e.activeCellIndex=i+u.length-p;e.scrollToItem(e.activeCellIndex).then((()=>{var t;(t=e.activeCell)===null||t===void 0?void 0:t.editor.focus()})).catch((e=>{}));void _.handleState(e,t)}e.splitCell=t;function n(e,t=false){if(!e.model||!e.activeCell){return}const n=_.getState(e);const i=[];const o=[];const r=e.model;const a=r.cells;const l=e.activeCell;const d=e.activeCellIndex;const c={};e.widgets.forEach(((t,n)=>{if(e.isSelectedOrActive(t)){i.push(t.model.sharedModel.getSource());if(n!==d){o.push(n)}const e=t.model;if((0,s.isRawCellModel)(e)||(0,s.isMarkdownCellModel)(e)){for(const t of e.attachments.keys){c[t]=e.attachments.get(t).toJSON()}}}}));if(i.length===1){if(t===true){if(d===0){return}const e=a.get(d-1);i.unshift(e.sharedModel.getSource());o.push(d-1)}else if(t===false){if(d===a.length-1){return}const e=a.get(d+1);i.push(e.sharedModel.getSource());o.push(d+1)}}e.deselectAll();const h=l.model.sharedModel;const{cell_type:u,metadata:p}=h.toJSON();if(h.cell_type==="code"){p.trusted=true}const m={cell_type:u,metadata:p,source:i.join("\n\n"),attachments:h.cell_type==="markdown"||h.cell_type==="raw"?c:undefined};r.sharedModel.transact((()=>{r.sharedModel.deleteCell(d);r.sharedModel.insertCell(d,m);o.sort(((e,t)=>t-e)).forEach((e=>{r.sharedModel.deleteCell(e)}))}));if(l instanceof s.MarkdownCell){e.activeCell.rendered=false}void _.handleState(e,n)}e.mergeCells=n;function d(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);_.deleteCells(e);void _.handleState(e,t,true)}e.deleteCells=d;function h(e){if(!e.model){return}const t=_.getState(e);const n=e.model;const i=e.activeCell?e.activeCellIndex:0;n.sharedModel.insertCell(i,{cell_type:e.notebookConfig.defaultCell,metadata:e.notebookConfig.defaultCell==="code"?{trusted:true}:{}});e.activeCellIndex=i;e.deselectAll();void _.handleState(e,t,true)}e.insertAbove=h;function u(e){if(!e.model){return}const t=_.getState(e);const n=e.model;const i=e.activeCell?e.activeCellIndex+1:0;n.sharedModel.insertCell(i,{cell_type:e.notebookConfig.defaultCell,metadata:e.notebookConfig.defaultCell==="code"?{trusted:true}:{}});e.activeCellIndex=i;e.deselectAll();void _.handleState(e,t,true)}e.insertBelow=u;function p(e,t){if(!e.model||!e.activeCell){return}const n=_.getState(e);const i=e.widgets.findIndex((t=>e.isSelectedOrActive(t)));let s=e.widgets.slice(i+1).findIndex((t=>!e.isSelectedOrActive(t)));if(s>=0){s+=i+1}else{s=e.model.cells.length}if(t>0){e.moveCell(i,s,s-i)}else{e.moveCell(i,i+t,s-i)}void _.handleState(e,n,true)}function g(e){p(e,1)}e.moveDown=g;function f(e){p(e,-1)}e.moveUp=f;function v(e,t,n){if(!e.model||!e.activeCell){return}const i=_.getState(e);_.changeCellType(e,t,n);void _.handleState(e,i)}e.changeCellType=v;function b(e,t,n,i){if(!e.model||!e.activeCell){return Promise.resolve(false)}const s=_.getState(e);const o=_.runSelected(e,t,n,i);void _.handleRunState(e,s);return o}e.run=b;function y(e,t,n,i,s){if(!e.model){return Promise.resolve(false)}const o=_.getState(e);const r=_.runCells(e,t,n,i,s);void _.handleRunState(e,o);return r}e.runCells=y;async function w(e,t,n,i){var s;if(!e.model||!e.activeCell){return Promise.resolve(false)}const r=_.getState(e);const a=_.runSelected(e,t,n,i);const l=e.model;if(e.activeCellIndex===e.widgets.length-1){l.sharedModel.insertCell(e.widgets.length,{cell_type:e.notebookConfig.defaultCell,metadata:e.notebookConfig.defaultCell==="code"?{trusted:true}:{}});e.activeCellIndex++;if(((s=e.activeCell)===null||s===void 0?void 0:s.inViewport)===false){await(0,o.signalToPromise)(e.activeCell.inViewportChanged,200).catch((()=>{}))}e.mode="edit"}else{e.activeCellIndex++}void _.handleRunState(e,r,"center");return a}e.runAndAdvance=w;async function C(e,t,n,i){var s;if(!e.model||!e.activeCell){return Promise.resolve(false)}const r=_.getState(e);const a=_.runSelected(e,t,n,i);const l=e.model;l.sharedModel.insertCell(e.activeCellIndex+1,{cell_type:e.notebookConfig.defaultCell,metadata:e.notebookConfig.defaultCell==="code"?{trusted:true}:{}});e.activeCellIndex++;if(((s=e.activeCell)===null||s===void 0?void 0:s.inViewport)===false){await(0,o.signalToPromise)(e.activeCell.inViewportChanged,200).catch((()=>{}))}e.mode="edit";void _.handleRunState(e,r,"center");return a}e.runAndInsert=C;function x(e,t,n,i){if(!e.model||!e.activeCell){return Promise.resolve(false)}const s=_.getState(e);const o=e.widgets.length;const r=_.runCells(e,e.widgets,t,n,i);e.activeCellIndex=o;e.deselectAll();void _.handleRunState(e,s);return r}e.runAll=x;function S(e){if(!e.model||!e.activeCell){return Promise.resolve(false)}const t=e.activeCellIndex;const n=_.getState(e);e.widgets.forEach(((t,n)=>{if(t.model.type==="markdown"){e.select(t);e.activeCellIndex=n}}));if(e.activeCell.model.type!=="markdown"){return Promise.resolve(true)}const i=_.runSelected(e);e.activeCellIndex=t;void _.handleRunState(e,n);return i}e.renderAllMarkdown=S;function k(e,t,n,i){const{activeCell:s,activeCellIndex:o,model:r}=e;if(!r||!s||o<1){return Promise.resolve(false)}const a=_.getState(e);const l=_.runCells(e,e.widgets.slice(0,e.activeCellIndex),t,n,i);e.deselectAll();void _.handleRunState(e,a);return l}e.runAllAbove=k;function j(e,t,n,i){if(!e.model||!e.activeCell){return Promise.resolve(false)}const s=_.getState(e);const o=e.widgets.length;const r=_.runCells(e,e.widgets.slice(e.activeCellIndex),t,n,i);e.activeCellIndex=o;e.deselectAll();void _.handleRunState(e,s);return r}e.runAllBelow=j;function I(e,t){var n,i,s;if(!e.model||!((n=e.activeCell)===null||n===void 0?void 0:n.editor)){return}(s=(i=e.activeCell.editor).replaceSelection)===null||s===void 0?void 0:s.call(i,t)}e.replaceSelection=I;function E(e){if(!e.model||!e.activeCell){return}const t=e.layout.footer;if(t&&document.activeElement===t.node){t.node.blur();e.mode="command";return}if(e.activeCellIndex===0){return}let n=e.activeCellIndex-1;while(n>=0){const t=e.widgets[n];if(!t.inputHidden&&!t.isHidden){break}n-=1}const i=_.getState(e);e.activeCellIndex=n;e.deselectAll();void _.handleState(e,i,true)}e.selectAbove=E;function T(e){if(!e.model||!e.activeCell){return}let t=e.widgets.length-1;while(e.widgets[t].isHidden||e.widgets[t].inputHidden){t-=1}if(e.activeCellIndex===t){const t=e.layout.footer;t===null||t===void 0?void 0:t.node.focus();return}let n=e.activeCellIndex+1;while(n-1?t:1;let n=_.Headings.findLowerEqualLevelHeadingBelow(e.activeCell,e,true);await _.Headings.insertHeadingAboveCellIndex(n==-1?e.model.cells.length:n,t,e)}e.insertSameLevelHeadingBelow=D;function A(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);let n=ve(e.activeCell);if(n.isHeading&&!n.collapsed){me(e.activeCell,true,e)}else{let t=_.Headings.findLowerEqualLevelParentHeadingAbove(e.activeCell,e,true);if(t>-1){e.activeCellIndex=t}}e.deselectAll();void _.handleState(e,t,true)}e.selectHeadingAboveOrCollapseHeading=A;function P(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);let n=ve(e.activeCell);if(n.isHeading&&n.collapsed){me(e.activeCell,false,e)}else{let t=_.Headings.findHeadingBelow(e.activeCell,e,true);if(t>-1){e.activeCellIndex=t}}e.deselectAll();void _.handleState(e,t,true)}e.selectHeadingBelowOrExpandHeading=P;function L(e,t=false){if(!e.model||!e.activeCell){return}if(e.activeCellIndex===0){return}const n=_.getState(e);e.mode="command";if(t){e.extendContiguousSelectionTo(0)}else{e.extendContiguousSelectionTo(e.activeCellIndex-1)}void _.handleState(e,n,true)}e.extendSelectionAbove=L;function R(e,t=false){if(!e.model||!e.activeCell){return}if(e.activeCellIndex===e.widgets.length-1){return}const n=_.getState(e);e.mode="command";if(t){e.extendContiguousSelectionTo(e.widgets.length-1)}else{e.extendContiguousSelectionTo(e.activeCellIndex+1)}void _.handleState(e,n,true)}e.extendSelectionBelow=R;function N(e){if(!e.model||!e.activeCell){return}e.widgets.forEach((t=>{e.select(t)}))}e.selectAll=N;function O(e){if(!e.model||!e.activeCell){return}e.deselectAll()}e.deselectAll=O;function B(e){_.copyOrCut(e,false)}e.copy=B;function F(e){_.copyOrCut(e,true)}e.cut=F;function z(e,t="below"){const n=i.Clipboard.getInstance();if(!n.hasData(m)){return}const s=n.getData(m);W(e,t,s,true);void be(e)}e.paste=z;function H(e,t="below"){const n=_.selectedCells(e);if(!n||n.length===0){return}W(e,t,n,false)}e.duplicate=H;function W(e,t="below",n,i=false){if(!e.model||!e.activeCell){return}const s=_.getState(e);const o=e.model;e.mode="command";let r=0;const a=e.activeCellIndex;o.sharedModel.transact((()=>{switch(t){case"below":r=e.activeCellIndex+1;break;case"belowSelected":e.widgets.forEach(((t,n)=>{if(e.isSelectedOrActive(t)){r=n+1}}));break;case"above":r=e.activeCellIndex;break;case"replace":{const t=[];e.widgets.forEach(((n,i)=>{const s=n.model.sharedModel.getMetadata("deletable")!==false;if(e.isSelectedOrActive(n)&&s){t.push(i)}}));if(t.length>0){t.reverse().forEach((e=>{o.sharedModel.deleteCell(e)}))}r=t[0];break}default:break}o.sharedModel.insertCells(r,n.map((t=>{t.id=t.cell_type==="code"&&e.lastClipboardInteraction==="cut"&&typeof t.id==="string"?t.id:undefined;return t})))}));e.activeCellIndex=a+n.length;e.deselectAll();if(i){e.lastClipboardInteraction="paste"}void _.handleState(e,s,true)}function V(e){if(!e.model){return}const t=_.getState(e);e.mode="command";e.model.sharedModel.undo();e.deselectAll();void _.handleState(e,t)}e.undo=V;function U(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.mode="command";e.model.sharedModel.redo();e.deselectAll();void _.handleState(e,t)}e.redo=U;function q(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);const n=e.editorConfig;const i=!(n.code.lineNumbers&&n.markdown.lineNumbers&&n.raw.lineNumbers);const s={code:{...n.code,lineNumbers:i},markdown:{...n.markdown,lineNumbers:i},raw:{...n.raw,lineNumbers:i}};e.editorConfig=s;void _.handleState(e,t)}e.toggleAllLineNumbers=q;function $(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);let n=-1;for(const i of e.model.cells){const t=e.widgets[++n];if(e.isSelectedOrActive(t)&&i.type==="code"){i.sharedModel.transact((()=>{i.clearExecution();t.outputHidden=false}),false);_.outputCleared.emit({notebook:e,cell:t})}}void _.handleState(e,t,true)}e.clearOutputs=$;function K(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);let n=-1;for(const i of e.model.cells){const t=e.widgets[++n];if(i.type==="code"){i.sharedModel.transact((()=>{i.clearExecution();t.outputHidden=false}),false);_.outputCleared.emit({notebook:e,cell:t})}}void _.handleState(e,t,true)}e.clearAllOutputs=K;function J(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.inputHidden=true}}));void _.handleState(e,t)}e.hideCode=J;function G(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.inputHidden=false}}));void _.handleState(e,t)}e.showCode=G;function Y(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((e=>{if(e.model.type==="code"){e.inputHidden=true}}));void _.handleState(e,t)}e.hideAllCode=Y;function X(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((e=>{if(e.model.type==="code"){e.inputHidden=false}}));void _.handleState(e,t)}e.showAllCode=X;function Q(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.outputHidden=true}}));void _.handleState(e,t,true)}e.hideOutput=Q;function Z(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.outputHidden=false}}));void _.handleState(e,t)}e.showOutput=Z;function ee(e){if(!e.model||!e.activeCell){return}for(const t of e.widgets){if(e.isSelectedOrActive(t)&&t.model.type==="code"){if(t.outputHidden===false){return Q(e)}}}return Z(e)}e.toggleOutput=ee;function te(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((e=>{if(e.model.type==="code"){e.outputHidden=true}}));void _.handleState(e,t,true)}e.hideAllOutputs=te;function ne(e){e.renderingLayout="side-by-side"}e.renderSideBySide=ne;function ie(e){e.renderingLayout="default"}e.renderDefault=ie;function se(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((e=>{if(e.model.type==="code"){e.outputHidden=false}}));void _.handleState(e,t)}e.showAllOutputs=se;function oe(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.outputsScrolled=true}}));void _.handleState(e,t,true)}e.enableOutputScrolling=oe;function re(e){if(!e.model||!e.activeCell){return}const t=_.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.outputsScrolled=false}}));void _.handleState(e,t)}e.disableOutputScrolling=re;function ae(e){let t=null;let n=null;e.widgets.forEach(((e,i)=>{if(e.model.type==="code"){const s=e.model.getMetadata("execution");if(s&&l.JSONExt.isObject(s)&&s["iopub.status.busy"]!==undefined){const e=s["iopub.status.busy"].toString();if(e){const s=new Date(e);if(!t||s>=t){t=s;n=i}}}}}));if(n!==null){e.activeCellIndex=n}}e.selectLastRunCell=ae;function le(e,t,n){if(!e.model||!e.activeCell){return}const i=_.getState(e);const s=e.model.cells;t=Math.min(Math.max(t,1),6);e.widgets.forEach(((n,i)=>{if(e.isSelectedOrActive(n)){_.setMarkdownHeader(s.get(i),t)}}));_.changeCellType(e,"markdown",n);void _.handleState(e,i)}e.setMarkdownHeader=le;function de(t){const n=_.getState(t);for(const i of t.widgets){if(e.getHeadingInfo(i).isHeading){e.setHeadingCollapse(i,true,t);e.setCellCollapse(i,true)}}t.activeCellIndex=0;void _.handleState(t,n,true)}e.collapseAllHeadings=de;function ce(t){for(const n of t.widgets){if(e.getHeadingInfo(n).isHeading){e.setHeadingCollapse(n,false,t);e.setCellCollapse(n,false)}}}e.expandAllHeadings=ce;function he(e,t){const n=(0,a.findIndex)(t.widgets,((t,n)=>e.model.id===t.model.id));if(n===-1){return}if(n>=t.widgets.length){return}let i=ve(t.widgets[n]);for(let s=n-1;s>=0;s--){if(se.model.id===t.model.id));if(n===-1){return-1}let i=ve(e);for(n=n+1;nt.model.id===e.model.id));if(o===-1){return-1}if(!i.widgets.length){return o+1}let r=e.getHeadingInfo(t);if(t.isHidden||!(t instanceof s.MarkdownCell)||!r.isHeading){return o+1}let l=false;let d=0;let c;for(c=o+1;c{}))}e.toggleCurrentHeadingCollapse=ge;function fe(e,t){if(e instanceof s.MarkdownCell){e.headingCollapsed=t}else{e.setHidden(t)}}e.setCellCollapse=fe;function ve(e){if(!(e instanceof s.MarkdownCell)){return{isHeading:false,headingLevel:7}}let t=e.headingInfo.level;let n=e.headingCollapsed;return{isHeading:t>0,headingLevel:t,collapsed:n}}e.getHeadingInfo=ve;function _e(e,t){t=t||r.nullTranslator;const n=t.load("jupyterlab");if(!e.model){return Promise.resolve()}const s=(0,a.every)(e.model.cells,(e=>e.trusted));const o=c.createElement("p",null,n.__("A trusted Jupyter notebook may execute hidden malicious code when you open it."),c.createElement("br",null),n.__('Selecting "Trust" will re-render this notebook in a trusted state.'),c.createElement("br",null),n.__("For more information, see")," ",c.createElement("a",{href:"https://jupyter-server.readthedocs.io/en/stable/operators/security.html",target:"_blank",rel:"noopener noreferrer"},n.__("the Jupyter security documentation")),".");if(s){return(0,i.showDialog)({body:n.__("Notebook is already trusted"),buttons:[i.Dialog.okButton()]}).then((()=>undefined))}return(0,i.showDialog)({body:o,title:n.__("Trust this notebook?"),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:n.__("Trust"),ariaLabel:n.__("Confirm Trusting this notebook")})]}).then((t=>{if(t.button.accept){if(e.model){for(const t of e.model.cells){t.trusted=true}}}}))}e.trust=_e;async function be(e,t={waitUntilReady:true,preventScroll:false}){const{activeCell:n}=e;const{waitUntilReady:i,preventScroll:s}=t;if(!n){return}if(i){await n.ready}if(e.isDisposed||n.isDisposed){return}n.node.focus({preventScroll:s})}e.focusActiveCell=be;async function ye(e){if(!e.notebookConfig.accessKernelHistory){return}const t=e.activeCell;if(t){if(e.kernelHistory){const n=await e.kernelHistory.back(t);e.kernelHistory.updateEditor(t,n)}}}e.accessPreviousHistory=ye;async function we(e){if(!e.notebookConfig.accessKernelHistory){return}const t=e.activeCell;if(t){if(e.kernelHistory){const n=await e.kernelHistory.forward(t);e.kernelHistory.updateEditor(t,n)}}}e.accessNextHistory=we})(f||(f={}));function v(e){if(_.executor){throw new Error("Cell executor can only be set once.")}_.executor=e}var _;(function(e){e.executed=new d.Signal({});e.executionScheduled=new d.Signal({});e.selectionExecuted=new d.Signal({});e.outputCleared=new d.Signal({});function t(e){var t,n;return{wasFocused:e.node.contains(document.activeElement),activeCellId:(n=(t=e.activeCell)===null||t===void 0?void 0:t.model.id)!==null&&n!==void 0?n:null}}e.getState=t;async function n(e,t,n=false){const{activeCell:i,activeCellIndex:s}=e;if(n&&i){await e.scrollToItem(s,"auto",0).catch((e=>{}))}if(t.wasFocused||e.mode==="edit"){e.activate()}}e.handleState=n;async function s(e,t,n){const{activeCell:i,activeCellIndex:s}=e;if(i){await e.scrollToItem(s,"smart",0,n).catch((e=>{}))}if(t.wasFocused||e.mode==="edit"){e.activate()}}e.handleRunState=s;function a(t,n,s,o,a){const l=n[n.length-1];t.mode="command";let d=false;return Promise.all(n.map((e=>{if(e.model.type==="code"&&t.notebookConfig.enableKernelInitNotification&&s&&s.kernelDisplayStatus==="initializing"&&!d){d=true;a=a||r.nullTranslator;const e=a.load("jupyterlab");i.Notification.emit(e.__(`Kernel '${s.kernelDisplayName}' for '${s.path}' is still initializing. You can run code cells when the kernel has initialized.`),"warning",{autoClose:false});return Promise.resolve(false)}if(e.model.type==="code"&&t.notebookConfig.enableKernelInitNotification&&d){return Promise.resolve(false)}return c(t,e,s,o,a)}))).then((n=>{if(t.isDisposed){return false}e.selectionExecuted.emit({notebook:t,lastCell:l});t.update();return n.every((e=>e))})).catch((i=>{if(i.message.startsWith("KernelReplyNotOK")){n.map((e=>{if(e.model.type==="code"&&e.model.executionCount==null){e.model.executionState="idle"}}))}else{throw i}e.selectionExecuted.emit({notebook:t,lastCell:l});t.update();return false}))}e.runCells=a;function l(e,t,n,i){e.mode="command";let s=e.activeCellIndex;const o=e.widgets.filter(((t,n)=>{const i=e.isSelectedOrActive(t);if(i){s=n}return i}));e.activeCellIndex=s;e.deselectAll();return a(e,o,t,n,i)}e.runSelected=l;async function c(t,n,i,s,o){if(!e.executor){console.warn("Requesting cell execution without any cell executor defined. Falling back to default execution.")}const r={cell:n,notebook:t.model,notebookConfig:t.notebookConfig,onCellExecuted:n=>{e.executed.emit({notebook:t,...n})},onCellExecutionScheduled:n=>{e.executionScheduled.emit({notebook:t,...n})},sessionContext:i,sessionDialogs:s,translator:o};return e.executor?e.executor.runCell(r):u(r)}function h(e){return e.widgets.filter((t=>e.isSelectedOrActive(t))).map((e=>e.model.toJSON())).map((e=>{if(e.metadata.deletable!==undefined){delete e.metadata.deletable}return e}))}e.selectedCells=h;function p(s,o){if(!s.model||!s.activeCell){return}const r=t(s);const a=i.Clipboard.getInstance();s.mode="command";a.clear();const l=e.selectedCells(s);a.setData(m,l);if(o){v(s)}else{s.deselectAll()}if(o){s.lastClipboardInteraction="cut"}else{s.lastClipboardInteraction="copy"}void n(s,r)}e.copyOrCut=p;function g(e,t,n){const s=e.model.sharedModel;e.widgets.forEach(((o,a)=>{if(!e.isSelectedOrActive(o)){return}if(o.model.type==="code"&&o.outputArea.pendingInput){n=n||r.nullTranslator;const e=n.load("jupyterlab");void(0,i.showDialog)({title:e.__("Cell type not changed due to pending input"),body:e.__("The cell type has not been changed to avoid kernel deadlock as this cell has pending input! Submit your pending input and try again."),buttons:[i.Dialog.okButton()]});return}if(o.model.getMetadata("editable")==false){n=n||r.nullTranslator;const e=n.load("jupyterlab");void(0,i.showDialog)({title:e.__("Cell is read-only"),body:e.__("The cell is read-only, its type cannot be changed!"),buttons:[i.Dialog.okButton()]});return}if(o.model.type!==t){const e=o.model.toJSON();s.transact((()=>{s.deleteCell(a);if(t==="code"){e.metadata.trusted=true}else{e.metadata.trusted=undefined}const n=s.insertCell(a,{cell_type:t,source:e.source,metadata:e.metadata});if(e.attachments&&["markdown","raw"].includes(t)){n.attachments=e.attachments}}))}if(t==="markdown"){o=e.widgets[a];o.rendered=false}}));e.deselectAll()}e.changeCellType=g;function v(e){const t=e.model;const n=t.sharedModel;const i=[];e.mode="command";e.widgets.forEach(((t,n)=>{var s;const o=t.model.getMetadata("deletable")!==false;if(e.isSelectedOrActive(t)&&o){i.push(n);(s=e.model)===null||s===void 0?void 0:s.deletedCells.push(t.model.id)}}));if(i.length>0){n.transact((()=>{i.reverse().forEach((e=>{n.deleteCell(e)}));if(n.cells.length==i.length){n.insertCell(0,{cell_type:e.notebookConfig.defaultCell,metadata:e.notebookConfig.defaultCell==="code"?{trusted:true}:{}})}}));e.activeCellIndex=i[0]-i.length+1}e.deselectAll()}e.deleteCells=v;function _(e,t){let n=e.sharedModel.getSource();const i=/^(#+\s*)|^(\s*)/;const s=Array(t+1).join("#")+" ";const o=i.exec(n);if(o){n=n.slice(o[0].length)}e.sharedModel.setSource(s+n)}e.setMarkdownHeader=_;let b;(function(t){function n(e,t,n=false,i=false){let s=t.widgets.indexOf(e)-(n?1:0);while(s>=0){let e=f.getHeadingInfo(t.widgets[s]);if(e.isHeading){return i?s:t.widgets[s]}s--}return i?-1:null}t.findParentHeading=n;function i(t,n,i=false){let s=e.Headings.determineHeadingLevel(t,n);if(s==-1){s=1}let o=n.widgets.indexOf(t)-1;while(o>=0){let e=n.widgets[o];let t=f.getHeadingInfo(e);if(t.isHeading&&t.headingLevel<=s){return i?o:e}o--}return i?-1:null}t.findLowerEqualLevelParentHeadingAbove=i;function s(t,n,i=false){let s=e.Headings.determineHeadingLevel(t,n);if(s==-1){s=1}let o=n.widgets.indexOf(t)+1;while(o{}))}i.deselectAll();void e.handleState(i,r,true);i.mode="edit";i.widgets[t].setHidden(false)}t.insertHeadingAboveCellIndex=l})(b=e.Headings||(e.Headings={}))})(_||(_={}));class b{constructor(e){this.model=e;this._cellMap=new WeakMap;this._changed=new d.Signal(this);this._isDisposed=false;this._insertCells(0,this.model.cells);this.model.changed.connect(this._onSharedModelChanged,this)}get changed(){return this._changed}get isDisposed(){return this._isDisposed}get length(){return this.model.cells.length}*[Symbol.iterator](){for(const e of this.model.cells){yield this._cellMap.get(e)}}dispose(){var e;if(this._isDisposed){return}this._isDisposed=true;for(const t of this.model.cells){(e=this._cellMap.get(t))===null||e===void 0?void 0:e.dispose()}d.Signal.clearData(this)}get(e){return this._cellMap.get(this.model.cells[e])}_insertCells(e,t){t.forEach((e=>{let t;switch(e.cell_type){case"code":{t=new s.CodeCellModel({sharedModel:e});break}case"markdown":{t=new s.MarkdownCellModel({sharedModel:e});break}default:{t=new s.RawCellModel({sharedModel:e})}}this._cellMap.set(e,t);e.disposed.connect((()=>{t.dispose();this._cellMap.delete(e)}))}));return this.length}_onSharedModelChanged(e,t){var n;let i=0;const s=new Array;(n=t.cellsChange)===null||n===void 0?void 0:n.forEach((e=>{if(e.insert!=null){this._insertCells(i,e.insert);s.push({type:"add",newIndex:i,newValues:e.insert.map((e=>this._cellMap.get(e))),oldIndex:-2,oldValues:[]});i+=e.insert.length}else if(e.delete!=null){s.push({type:"remove",newIndex:-1,newValues:[],oldIndex:i,oldValues:new Array(e.delete).fill(undefined)})}else if(e.retain!=null){i+=e.retain}}));s.forEach((e=>this._changed.emit(e)))}}var y=n(26331);const w="jp-Notebook-toolbarCellType";const C="jp-Notebook-toolbarCellTypeDropdown";var x;(function(e){function t(e,t){const n=(t||r.nullTranslator).load("jupyterlab");function s(){if(e.context.model.readOnly){return(0,i.showDialog)({title:n.__("Cannot Save"),body:n.__("Document is read-only"),buttons:[i.Dialog.okButton()]})}void e.context.save().then((()=>{if(!e.isDisposed){return e.context.createCheckpoint()}}))}return(0,y.addToolbarButtonClass)(y.ReactWidget.create(c.createElement(y.UseSignal,{signal:e.context.fileChanged},(()=>c.createElement(y.ToolbarButtonComponent,{icon:y.saveIcon,onClick:s,tooltip:n.__("Save the notebook contents and create checkpoint"),enabled:!!(e&&e.context&&e.context.contentsModel&&e.context.contentsModel.writable)})))))}e.createSaveButton=t;function n(e,t){const n=(t||r.nullTranslator).load("jupyterlab");return new y.ToolbarButton({icon:y.addIcon,onClick:()=>{f.insertBelow(e.content)},tooltip:n.__("Insert a cell below")})}e.createInsertButton=n;function s(e,t){const n=(t||r.nullTranslator).load("jupyterlab");return new y.ToolbarButton({icon:y.cutIcon,onClick:()=>{f.cut(e.content)},tooltip:n.__("Cut the selected cells")})}e.createCutButton=s;function o(e,t){const n=(t||r.nullTranslator).load("jupyterlab");return new y.ToolbarButton({icon:y.copyIcon,onClick:()=>{f.copy(e.content)},tooltip:n.__("Copy the selected cells")})}e.createCopyButton=o;function a(e,t){const n=(t||r.nullTranslator).load("jupyterlab");return new y.ToolbarButton({icon:y.pasteIcon,onClick:()=>{f.paste(e.content)},tooltip:n.__("Paste cells from the clipboard")})}e.createPasteButton=a;function l(e,t,n){const i=(n!==null&&n!==void 0?n:r.nullTranslator).load("jupyterlab");return new y.ToolbarButton({icon:y.runIcon,onClick:()=>{void f.runAndAdvance(e.content,e.sessionContext,t,n)},tooltip:i.__("Run the selected cells and advance")})}e.createRunButton=l;function d(e,t,n){const s=(n!==null&&n!==void 0?n:r.nullTranslator).load("jupyterlab");return new y.ToolbarButton({icon:y.fastForwardIcon,onClick:()=>{const s=t!==null&&t!==void 0?t:new i.SessionContextDialogs({translator:n});void s.restart(e.sessionContext).then((t=>{if(t){void f.runAll(e.content,e.sessionContext,s,n)}return t}))},tooltip:s.__("Restart the kernel, then re-run the whole notebook")})}e.createRestartRunAllButton=d;function h(e,t){return new S(e.content,t)}e.createCellTypeItem=h;function u(e,r,c){return[{name:"save",widget:t(e,c)},{name:"insert",widget:n(e,c)},{name:"cut",widget:s(e,c)},{name:"copy",widget:o(e,c)},{name:"paste",widget:a(e,c)},{name:"run",widget:l(e,r,c)},{name:"interrupt",widget:i.Toolbar.createInterruptButton(e.sessionContext,c)},{name:"restart",widget:i.Toolbar.createRestartButton(e.sessionContext,r,c)},{name:"restart-and-run",widget:d(e,r,c)},{name:"cellType",widget:h(e,c)},{name:"spacer",widget:y.Toolbar.createSpacerItem()},{name:"kernelName",widget:i.Toolbar.createKernelNameItem(e.sessionContext,r,c)}]}e.getDefaultItems=u})(x||(x={}));class S extends y.ReactWidget{constructor(e,t){super();this.handleChange=e=>{if(e.target.value!=="-"){f.changeCellType(this._notebook,e.target.value);this._notebook.activate()}};this.handleKeyDown=e=>{if(e.keyCode===13){this._notebook.activate()}};this._trans=(t||r.nullTranslator).load("jupyterlab");this.addClass(w);this._notebook=e;if(e.model){this.update()}e.activeCellChanged.connect(this.update,this);e.selectionChanged.connect(this.update,this)}render(){let e="-";if(this._notebook.activeCell){e=this._notebook.activeCell.model.type}for(const t of this._notebook.widgets){if(this._notebook.isSelectedOrActive(t)){if(t.model.type!==e){e="-";break}}}return c.createElement(y.HTMLSelect,{className:C,onChange:this.handleChange,onKeyDown:this.handleKeyDown,value:e,"aria-label":this._trans.__("Cell type"),title:this._trans.__("Select the cell type")},c.createElement("option",{value:"-"},"-"),c.createElement("option",{value:"code"},this._trans.__("Code")),c.createElement("option",{value:"markdown"},this._trans.__("Markdown")),c.createElement("option",{value:"raw"},this._trans.__("Raw")))}}var k=n(24735);var j=n(28548);function I(e){const t=e.translator||r.nullTranslator;const n=(0,i.translateKernelStatuses)(t);const s=t.load("jupyterlab");const o=e.state;const a=e.displayOption.showOnToolBar;const l=e.displayOption.showProgress;const d=a?"down":"up";const c=h().createElement("div",null);if(!o){return c}const u=o.kernelStatus;const p={alignSelf:"normal",height:"24px"};const m=o.totalTime;const g=o.scheduledCellNumber||0;const f=o.scheduledCell.size||0;const v=g-f;let _=100*v/g;let b=l?"":"hidden";if(!l&&_<100){_=0}const w=e=>h().createElement(k.ProgressCircle,{progress:e,width:16,height:24,label:s.__("Kernel status")});const C=e=>s.__("Kernel status: %1",e);const x=(e,t,i)=>h().createElement("div",{className:"jp-Notebook-ExecutionIndicator",title:l?"":C(n[e]),"data-status":e},t,h().createElement("div",{className:`jp-Notebook-ExecutionIndicator-tooltip ${d} ${b}`},h().createElement("span",null," ",C(n[e])," "),i));if(o.kernelStatus==="connecting"||o.kernelStatus==="disconnected"||o.kernelStatus==="unknown"){return x(u,h().createElement(y.offlineBoltIcon.react,{...p}),[])}if(o.kernelStatus==="starting"||o.kernelStatus==="terminating"||o.kernelStatus==="restarting"||o.kernelStatus==="initializing"){return x(u,h().createElement(y.circleIcon.react,{...p}),[])}if(o.executionStatus==="busy"){return x("busy",w(_),[h().createElement("span",{key:0},s.__(`Executed ${v}/${g} cells`)),h().createElement("span",{key:1},s._n("Elapsed time: %1 second","Elapsed time: %1 seconds",m))])}else{const e=o.kernelStatus==="busy"?0:100;const t=o.kernelStatus==="busy"||m===0?[]:[h().createElement("span",{key:0},s._n("Executed %1 cell","Executed %1 cells",g)),h().createElement("span",{key:1},s._n("Elapsed time: %1 second","Elapsed time: %1 seconds",m))];return x(o.kernelStatus,w(e),t)}}class E extends y.VDomRenderer{constructor(e,t=true){super(new E.Model);this.translator=e||r.nullTranslator;this.addClass("jp-mod-highlighted")}render(){if(this.model===null||!this.model.renderFlag){return h().createElement("div",null)}else{const e=this.model.currentNotebook;if(!e){return h().createElement(I,{displayOption:this.model.displayOption,state:undefined,translator:this.translator})}return h().createElement(I,{displayOption:this.model.displayOption,state:this.model.executionState(e),translator:this.translator})}}}(function(e){class t extends y.VDomModel{constructor(){super();this._notebookExecutionProgress=new WeakMap;this._displayOption={showOnToolBar:true,showProgress:true};this._renderFlag=true}attachNotebook(e){var t,n,i,s;if(e&&e.content&&e.context){const o=e.content;const r=e.context;this._currentNotebook=o;if(!this._notebookExecutionProgress.has(o)){this._notebookExecutionProgress.set(o,{executionStatus:"idle",kernelStatus:"idle",totalTime:0,interval:0,timeout:0,scheduledCell:new Set,scheduledCellNumber:0,needReset:true});const e=this._notebookExecutionProgress.get(o);const a=t=>{if(e){e.kernelStatus=t.kernelDisplayStatus}this.stateChanged.emit(void 0)};r.statusChanged.connect(a,this);const l=t=>{if(e){e.kernelStatus=t.kernelDisplayStatus}this.stateChanged.emit(void 0)};r.connectionStatusChanged.connect(l,this);r.disposed.connect((e=>{e.connectionStatusChanged.disconnect(l,this);e.statusChanged.disconnect(a,this)}));const d=(e,t)=>{const n=t.msg;const i=n.header.msg_id;if(n.header.msg_type==="execute_request"){this._cellScheduledCallback(o,i)}else if(j.KernelMessage.isStatusMsg(n)&&n.content.execution_state==="idle"){const e=n.parent_header.msg_id;this._cellExecutedCallback(o,e)}else if(j.KernelMessage.isStatusMsg(n)&&n.content.execution_state==="restarting"){this._restartHandler(o)}else if(n.header.msg_type==="execute_input"){this._startTimer(o)}};(n=(t=r.session)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.anyMessage.connect(d);(s=(i=r.session)===null||i===void 0?void 0:i.kernel)===null||s===void 0?void 0:s.disposed.connect((e=>e.anyMessage.disconnect(d)));const c=(t,n)=>{if(e){this._resetTime(e);this.stateChanged.emit(void 0);if(n.newValue){n.newValue.anyMessage.connect(d)}}};r.kernelChanged.connect(c);r.disposed.connect((e=>e.kernelChanged.disconnect(c)))}}}get currentNotebook(){return this._currentNotebook}get displayOption(){return this._displayOption}set displayOption(e){this._displayOption=e}executionState(e){return this._notebookExecutionProgress.get(e)}_scheduleSwitchToIdle(e){window.setTimeout((()=>{e.executionStatus="idle";clearInterval(e.interval);this.stateChanged.emit(void 0)}),150);e.timeout=window.setTimeout((()=>{e.needReset=true}),1e3)}_cellExecutedCallback(e,t){const n=this._notebookExecutionProgress.get(e);if(n&&n.scheduledCell.has(t)){n.scheduledCell.delete(t);if(n.scheduledCell.size===0){this._scheduleSwitchToIdle(n)}}}_restartHandler(e){const t=this._notebookExecutionProgress.get(e);if(t){t.scheduledCell.clear();this._scheduleSwitchToIdle(t)}}_startTimer(e){const t=this._notebookExecutionProgress.get(e);if(!t){return}if(t.scheduledCell.size>0){if(t.executionStatus!=="busy"){t.executionStatus="busy";clearTimeout(t.timeout);this.stateChanged.emit(void 0);t.interval=window.setInterval((()=>{this._tick(t)}),1e3)}}else{this._resetTime(t)}}_cellScheduledCallback(e,t){const n=this._notebookExecutionProgress.get(e);if(n&&!n.scheduledCell.has(t)){if(n.needReset){this._resetTime(n)}n.scheduledCell.add(t);n.scheduledCellNumber+=1}}_tick(e){e.totalTime+=1;this.stateChanged.emit(void 0)}_resetTime(e){e.totalTime=0;e.scheduledCellNumber=0;e.executionStatus="idle";e.scheduledCell=new Set;clearTimeout(e.timeout);clearInterval(e.interval);e.needReset=false}get renderFlag(){return this._renderFlag}updateRenderOption(e){if(this.displayOption.showOnToolBar){if(!e.showOnToolBar){this._renderFlag=false}else{this._renderFlag=true}}this.displayOption.showProgress=e.showProgress;this.stateChanged.emit(void 0)}}e.Model=t;function n(t,n,s){const o=new e(n);o.model.displayOption={showOnToolBar:true,showProgress:true};o.model.attachNotebook({content:t.content,context:t.sessionContext});if(s){s.then((e=>{const t=e=>{o.model.updateRenderOption(i(e))};e.changed.connect(t);t(e);o.disposed.connect((()=>{e.changed.disconnect(t)}))})).catch((e=>{console.error(e.message)}))}return o}e.createExecutionIndicatorItem=n;function i(e){let t=true;let n=true;const i=e.get("kernelStatus").composite;if(i){t=!i.showOnStatusBar;n=i.showProgress}return{showOnToolBar:t,showProgress:n}}e.getSettingValue=i})(E||(E={}));class T{constructor(e){this._requestBatchSize=10;this._cursor=0;this._hasSession=false;this._history=[];this._placeholder="";this._kernelSession="";this._setByHistory=false;this._isDisposed=false;this._editor=null;this._filtered=[];this._kernel=null;this._sessionContext=e.sessionContext;this._trans=(e.translator||r.nullTranslator).load("jupyterlab");void this._handleKernel().then((()=>{this._sessionContext.kernelChanged.connect(this._handleKernel,this)}));this._toRequest=this._requestBatchSize}get editor(){return this._editor}set editor(e){if(this._editor===e){return}const t=this._editor;if(t){t.model.sharedModel.changed.disconnect(this.onTextChange,this)}this._editor=e;if(e){e.model.sharedModel.changed.connect(this.onTextChange,this)}}get placeholder(){return this._placeholder}get kernelSession(){return this._kernelSession}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed=true;this._history.length=0;d.Signal.clearData(this)}async checkSession(e){var t;if(!this._hasSession){await this._retrieveHistory();this._hasSession=true;this.editor=e.editor;this._placeholder=((t=this._editor)===null||t===void 0?void 0:t.model.sharedModel.getSource())||"";this.setFilter(this._placeholder);this._cursor=this._filtered.length-1}}async back(e){await this.checkSession(e);--this._cursor;if(this._cursor<0){await this.fetchBatch()}this._cursor=Math.max(0,this._cursor);const t=this._filtered[this._cursor];return t}async forward(e){await this.checkSession(e);++this._cursor;this._cursor=Math.min(this._filtered.length-1,this._cursor);const t=this._filtered[this._cursor];return t}updateEditor(e,t){var n,i;if(e){const s=(n=e.editor)===null||n===void 0?void 0:n.model;const o=s===null||s===void 0?void 0:s.sharedModel.getSource();if(this.isDisposed||!t){return}if(o===t){return}this._setByHistory=true;s===null||s===void 0?void 0:s.sharedModel.setSource(t);let r=0;r=t.indexOf("\n");if(r<0){r=t.length}(i=e.editor)===null||i===void 0?void 0:i.setCursorPosition({line:0,column:r})}}reset(){this._hasSession=false;this._placeholder="";this._toRequest=this._requestBatchSize}async fetchBatch(){this._toRequest+=this._requestBatchSize;let e=this._filtered.slice().reverse();let t=this._history.slice();await this._retrieveHistory().then((()=>{this.setFilter(this._placeholder);let t=0;let n=this._filtered.slice().reverse();for(let i=0;it.length){await this.fetchBatch()}}}onHistory(e,t){this._history.length=0;let n=["","",""];let i=["","",""];let s="";if(e.content.status==="ok"){for(let t=0;t{this.onHistory(t,e)})).catch((()=>{console.warn(this._trans.__("History was unable to be retrieved"))})))}setFilter(e=""){this._filtered.length=0;let t="";let n="";for(let i=0;io;let t;if(e){t=this._trans.__(`This notebook has been converted from an older notebook format (v%1)\nto the current notebook format (v%2).\nThe next time you save this notebook, the current notebook format (v%2) will be used.\n'Older versions of Jupyter may not be able to read the new format.' To preserve the original format version,\nclose the notebook without saving it.`,o,s.nbformat)}else{t=this._trans.__(`This notebook has been converted from an newer notebook format (v%1)\nto the current notebook format (v%2).\nThe next time you save this notebook, the current notebook format (v%2) will be used.\nSome features of the original notebook may not be available.' To preserve the original format version,\nclose the notebook without saving it.`,o,s.nbformat)}void(0,i.showDialog)({title:this._trans.__("Notebook converted"),body:t,buttons:[i.Dialog.okButton({label:this._trans.__("Ok")})]})}if(((n=(t=s.cells)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)===0){s["cells"]=[{cell_type:"code",source:"",metadata:{trusted:true}}]}this.sharedModel.fromJSON(s);this._ensureMetadata();this.dirty=true}_onCellsChanged(e,t){switch(t.type){case"add":t.newValues.forEach((e=>{e.contentChanged.connect(this.triggerContentChange,this)}));break;case"remove":break;case"set":t.newValues.forEach((e=>{e.contentChanged.connect(this.triggerContentChange,this)}));break;default:break}this.triggerContentChange()}_onMetadataChanged(e,t){this._metadataChanged.emit(t);this.triggerContentChange()}_onStateChanged(e,t){if(t.stateChange){t.stateChange.forEach((e=>{if(e.name==="dirty"){this.dirty=e.newValue}else if(e.oldValue!==e.newValue){this.triggerStateChange({newValue:undefined,oldValue:undefined,...e})}}))}}_ensureMetadata(e=""){if(!this.getMetadata("language_info")){this.sharedModel.setMetadata("language_info",{name:e})}if(!this.getMetadata("kernelspec")){this.sharedModel.setMetadata("kernelspec",{name:"",display_name:""})}}triggerStateChange(e){this._stateChanged.emit(e)}triggerContentChange(){this._contentChanged.emit(void 0);this.dirty=true}get isDisposed(){return this._isDisposed}}class L{constructor(e={}){var t,n;this._disposed=false;this._disableDocumentWideUndoRedo=(t=e.disableDocumentWideUndoRedo)!==null&&t!==void 0?t:true;this._collaborative=(n=e.collaborative)!==null&&n!==void 0?n:true}get disableDocumentWideUndoRedo(){return this._disableDocumentWideUndoRedo}set disableDocumentWideUndoRedo(e){this._disableDocumentWideUndoRedo=e}get name(){return"notebook"}get contentType(){return"notebook"}get fileFormat(){return"json"}get collaborative(){return this._collaborative}get isDisposed(){return this._disposed}dispose(){this._disposed=true}createNew(e={}){return new P({languagePreference:e.languagePreference,sharedModel:e.sharedModel,collaborationEnabled:e.collaborationEnabled&&this.collaborative,disableDocumentWideUndoRedo:this._disableDocumentWideUndoRedo})}preferredLanguage(e){return""}}function R(e){const t=(e.translator||r.nullTranslator).load("jupyterlab");return c.createElement(k.TextItem,{source:t.__("Mode: %1",e.modeNames[e.notebookMode])})}class N extends y.VDomRenderer{constructor(e){super(new N.Model);this.translator=e||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this._modeNames={command:this._trans.__("Command"),edit:this._trans.__("Edit")}}render(){if(!this.model){return null}this.node.title=this._trans.__("Notebook is in %1 mode",this._modeNames[this.model.notebookMode]);return c.createElement(R,{notebookMode:this.model.notebookMode,translator:this.translator,modeNames:this._modeNames})}}(function(e){class t extends y.VDomModel{constructor(){super(...arguments);this._onChanged=e=>{const t=this._notebookMode;if(this._notebook){this._notebookMode=e.mode}else{this._notebookMode="command"}this._triggerChange(t,this._notebookMode)};this._notebookMode="command";this._notebook=null}get notebookMode(){return this._notebookMode}set notebook(e){const t=this._notebook;if(t!==null){t.stateChanged.disconnect(this._onChanged,this);t.activeCellChanged.disconnect(this._onChanged,this);t.modelContentChanged.disconnect(this._onChanged,this)}const n=this._notebookMode;this._notebook=e;if(this._notebook===null){this._notebookMode="command"}else{this._notebookMode=this._notebook.mode;this._notebook.stateChanged.connect(this._onChanged,this);this._notebook.activeCellChanged.connect(this._onChanged,this);this._notebook.modelContentChanged.connect(this._onChanged,this)}this._triggerChange(n,this._notebookMode)}_triggerChange(e,t){if(e!==t){this.stateChanged.emit(void 0)}}}e.Model=t})(N||(N={}));var O=n(54723);var B=n(7243);class F extends B.WidgetLSPAdapter{constructor(e,t){super(e,t);this.editorWidget=e;this.options=t;this._type="code";this._readyDelegate=new l.PromiseDelegate;this._editorToCell=new Map;this.editor=e.content;this._cellToEditor=new WeakMap;this.isReady=this.isReady.bind(this);Promise.all([this.widget.context.sessionContext.ready,this.connectionManager.ready]).then((async()=>{await this.initOnceReady();this._readyDelegate.resolve()})).catch(console.error)}get documentPath(){return this.widget.context.path}get mimeType(){var e;let t;let n=this.language_info();if(!n||!n.mimetype){t=this.widget.content.codeMimetype}else{t=n.mimetype}return Array.isArray(t)?(e=t[0])!==null&&e!==void 0?e:O.IEditorMimeTypeService.defaultMimeType:t}get languageFileExtension(){let e=this.language_info();if(!e||!e.file_extension){return}return e.file_extension.replace(".","")}get wrapperElement(){return this.widget.node}get editors(){if(this.isDisposed){return[]}let e=this.widget.content;this._editorToCell.clear();if(e.isDisposed){return[]}return e.widgets.map((e=>({ceEditor:this._getCellEditor(e),type:e.model.type,value:e.model.sharedModel.getSource()})))}get activeEditor(){return this.editor.activeCell?this._getCellEditor(this.editor.activeCell):undefined}get ready(){return this._readyDelegate.promise}getEditorIndexAt(e){let t=this._getCellAt(e);let n=this.widget.content;return n.widgets.findIndex((e=>t===e))}getEditorIndex(e){let t=this._editorToCell.get(e);return this.editor.widgets.findIndex((e=>t===e))}getEditorWrapper(e){let t=this._editorToCell.get(e);return t.node}async onKernelChanged(e,t){if(!t.newValue){return}try{const e=this._languageInfo;await(0,B.untilReady)(this.isReady,-1);await this._updateLanguageInfo();const t=this._languageInfo;if((e===null||e===void 0?void 0:e.name)!=t.name||(e===null||e===void 0?void 0:e.mimetype)!=(t===null||t===void 0?void 0:t.mimetype)||(e===null||e===void 0?void 0:e.file_extension)!=(t===null||t===void 0?void 0:t.file_extension)){console.log(`Changed to ${this._languageInfo.name} kernel, reconnecting`);this.reloadConnection()}else{console.log("Keeping old LSP connection as the new kernel uses the same language")}}catch(n){console.warn(n);this.reloadConnection()}}dispose(){if(this.isDisposed){return}this.widget.context.sessionContext.kernelChanged.disconnect(this.onKernelChanged,this);this.widget.content.activeCellChanged.disconnect(this._activeCellChanged,this);super.dispose();this._editorToCell.clear();d.Signal.clearData(this)}isReady(){var e;return!this.widget.isDisposed&&this.widget.context.isReady&&this.widget.content.isVisible&&this.widget.content.widgets.length>0&&((e=this.widget.context.sessionContext.session)===null||e===void 0?void 0:e.kernel)!=null}async handleCellChange(e,t){let n=[];let i=[];const s=this._type;if(t.type==="set"){let e=[];let o=[];if(t.newValues.length===t.oldValues.length){for(let n=0;ne.type===s))}if(i.length||n.length||t.type==="set"||t.type==="move"||t.type==="remove"){await this.updateDocuments()}for(let o of n){let e=this.widget.content.widgets.find((e=>e.model.id===o.id));if(!e){console.warn(`Widget for added cell with ID: ${o.id} not found!`);continue}this._getCellEditor(e)}}createVirtualDocument(){return new B.VirtualDocument({language:this.language,foreignCodeExtractors:this.options.foreignCodeExtractorsManager,path:this.documentPath,fileExtension:this.languageFileExtension,standalone:false,hasLspSupportedFile:false})}language_info(){return this._languageInfo}async initOnceReady(){await(0,B.untilReady)(this.isReady.bind(this),-1);await this._updateLanguageInfo();this.initVirtual();this.connectDocument(this.virtualDocument,false).catch(console.warn);this.widget.context.sessionContext.kernelChanged.connect(this.onKernelChanged,this);this.widget.content.activeCellChanged.connect(this._activeCellChanged,this);this._connectModelSignals(this.widget);this.editor.modelChanged.connect((e=>{console.warn("Model changed, connecting cell change handler; this is not something we were expecting");this._connectModelSignals(e)}))}_connectModelSignals(e){if(e.model===null){console.warn(`Model is missing for notebook ${e}, cannot connect cell changed signal!`)}else{e.model.cells.changed.connect(this.handleCellChange,this)}}async _updateLanguageInfo(){var e,t,n,i;const s=(i=await((n=(t=(e=this.widget.context.sessionContext)===null||e===void 0?void 0:e.session)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.info))===null||i===void 0?void 0:i.language_info;if(s){this._languageInfo=s}else{throw new Error("Language info update failed (no session, kernel, or info available)")}}_activeCellChanged(e,t){if(!t||t.model.type!==this._type){return}this._activeEditorChanged.emit({editor:this._getCellEditor(t)})}_getCellAt(e){let t=this.virtualDocument.getEditorAtVirtualLine(e);return this._editorToCell.get(t)}_getCellEditor(e){if(!this._cellToEditor.has(e)){const t=Object.freeze({getEditor:()=>e.editor,ready:async()=>{await e.ready;return e.editor},reveal:async()=>{await this.editor.scrollToCell(e);return e.editor}});this._cellToEditor.set(e,t);this._editorToCell.set(t,e);e.disposed.connect((()=>{this._cellToEditor.delete(e);this._editorToCell.delete(t);this._editorRemoved.emit({editor:t})}));this._editorAdded.emit({editor:t})}return this._cellToEditor.get(e)}}var z=n(44336);var H=n(42856);var W=n(1143);class V extends W.Widget{constructor(){super();this._items=[];this.layout=new W.PanelLayout;this.addClass("jp-RankedPanel")}addWidget(e,t){const n={widget:e,rank:t};const i=a.ArrayExt.upperBound(this._items,n,q.itemCmp);a.ArrayExt.insert(this._items,i,n);const s=this.layout;s.insertWidget(i,e)}onChildRemoved(e){const t=a.ArrayExt.findFirstIndex(this._items,(t=>t.widget===e.child));if(t!==-1){a.ArrayExt.removeAt(this._items,t)}}}class U extends W.Widget{constructor(e){super();this.addClass("jp-NotebookTools");this.translator=e.translator||r.nullTranslator;this._tools=[];this.layout=new W.PanelLayout;this._tracker=e.tracker;this._tracker.currentChanged.connect(this._onActiveNotebookPanelChanged,this);this._tracker.activeCellChanged.connect(this._onActiveCellChanged,this);this._tracker.selectionChanged.connect(this._onSelectionChanged,this);this._onActiveNotebookPanelChanged();this._onActiveCellChanged();this._onSelectionChanged()}get activeCell(){return this._tracker.activeCell}get selectedCells(){const e=this._tracker.currentWidget;if(!e){return[]}const t=e.content;return t.widgets.filter((e=>t.isSelectedOrActive(e)))}get activeNotebookPanel(){return this._tracker.currentWidget}addItem(e){var t;const n=e.tool;const i=(t=e.rank)!==null&&t!==void 0?t:100;let s;const o=this._tools.find((t=>t.section===e.section));if(o)s=o.panel;else{throw new Error(`The section ${e.section} does not exist`)}n.addClass("jp-NotebookTools-tool");s.addWidget(n,i);n.notebookTools=this;H.MessageLoop.sendMessage(n,U.ActiveNotebookPanelMessage);H.MessageLoop.sendMessage(n,U.ActiveCellMessage)}addSection(e){var t;const n=e.sectionName;const i=e.label||e.sectionName;const s=e.tool;let o=(t=e.rank)!==null&&t!==void 0?t:null;const r=new V;r.title.label=i;if(s)r.addWidget(s,0);this._tools.push({section:n,panel:r,rank:o});if(o!=null)this.layout.insertWidget(o,new y.Collapser({widget:r}));else{let e=null;const t=this.layout;for(let n=0;n{this._delayCallbackInScrollingNotebook(e)}),t);this.callback=e;this._delayCallbackInScrollingNotebook=e=>{const t=[];const n=[];for(const i of e){if(te(i.target)&&!ne(i.target)){t.push(i)}else{n.push(i)}}if(n.length){this.callback(n,this)}if(t.length){void this._throttler.invoke(t)}};this._throttler=new ee.Throttler((e=>{this._delayCallbackInScrollingNotebook(e)}),{limit:1e3,edge:"trailing"})}};window.ResizeObserver=class extends window.ResizeObserver{constructor(e){super((e=>{this._delayCallbackInScrollingNotebook(e)}));this.callback=e;this._delayCallbackInScrollingNotebook=e=>{const t=[];const n=[];for(const i of e){if(te(i.target)){t.push(i)}else{n.push(i)}}if(n.length){this.callback(n,this)}if(t.length){void this._throttler.invoke(t)}};this._throttler=new ee.Throttler((e=>{this._delayCallbackInScrollingNotebook(e)}),{limit:1e3,edge:"trailing"})}};class ie extends y.WindowedListModel{constructor(e,t){super(t);this.cells=e;this.estimateWidgetSize=e=>{const t=this.cells[e];if(!t){console.warn(`estimateWidgetSize requested for cell ${e} in notebook with only ${this.cells.length} cells`);return 0}const n=t.model;const i=this.cellsEstimatedHeight.get(n.id);if(typeof i==="number"){return i}const o=n.sharedModel.getSource().split("\n").length;let r=0;if(n instanceof s.CodeCellModel&&!n.isDisposed){for(let e=0;ethis.cells[e];this.scrollDownThreshold=ie.DEFAULT_CELL_MARGIN/2+ie.DEFAULT_EDITOR_LINE_HEIGHT;this.scrollUpThreshold=ie.DEFAULT_CELL_MARGIN/2;this.cellsEstimatedHeight=new Map;this._emitEstimatedHeightChanged=new ee.Debouncer((()=>{this._stateChanged.emit({name:"estimatedWidgetSize",newValue:null,oldValue:null})}));this._estimatedWidgetSize=ie.DEFAULT_CELL_SIZE}setEstimatedWidgetSize(e,t){if(t===null){if(this.cellsEstimatedHeight.has(e)){this.cellsEstimatedHeight.delete(e)}}else{this.cellsEstimatedHeight.set(e,t);this._emitEstimatedHeightChanged.invoke().catch((e=>{console.error("Fail to trigger an update following a estimated height update.",e)}))}}}ie.DEFAULT_CELL_SIZE=39;ie.DEFAULT_EDITOR_LINE_HEIGHT=17;ie.DEFAULT_CELL_MARGIN=22;class se extends y.WindowedLayout{constructor(){super(...arguments);this._header=null;this._footer=null;this._willBeRemoved=null;this._topHiddenCodeCells=-1}get header(){return this._header}set header(e){var t;if(this._header&&this._header.isAttached){W.Widget.detach(this._header)}this._header=e;if(this._header&&((t=this.parent)===null||t===void 0?void 0:t.isAttached)){W.Widget.attach(this._header,this.parent.node)}}get footer(){return this._footer}set footer(e){var t;if(this._footer&&this._footer.isAttached){W.Widget.detach(this._footer)}this._footer=e;if(this._footer&&((t=this.parent)===null||t===void 0?void 0:t.isAttached)){W.Widget.attach(this._footer,this.parent.outerNode)}}get activeCell(){return this._activeCell}set activeCell(e){this._activeCell=e}dispose(){var e,t;if(this.isDisposed){return}(e=this._header)===null||e===void 0?void 0:e.dispose();(t=this._footer)===null||t===void 0?void 0:t.dispose();super.dispose()}removeWidget(e){const t=this.widgets.indexOf(e);if(t>=0){this.removeWidgetAt(t)}else if(e===this._willBeRemoved&&this.parent){this.detachWidget(t,e)}}attachWidget(e,t){const n=t.isPlaceholder();const i=this._isSoftHidden(t);if(this.parent.isAttached&&!i){H.MessageLoop.sendMessage(t,W.Widget.Msg.BeforeAttach)}if(i){this._toggleSoftVisibility(t,true)}if(!n&&t instanceof s.CodeCell&&t.node.parentElement){t.node.style.display="";this._topHiddenCodeCells=-1;if(this.parent.isAttached&&!t.isAttached){t.setFlag(W.Widget.Flag.IsAttached)}}else if(!i){const e=this._findNearestChildBinarySearch(this.parent.viewportNode.childElementCount-1,0,parseInt(t.dataset.windowedListIndex,10)+1);let n=this.parent.viewportNode.children[e];this.parent.viewportNode.insertBefore(t.node,n);if(this.parent.isAttached){H.MessageLoop.sendMessage(t,W.Widget.Msg.AfterAttach)}}t.inViewport=true}detachWidget(e,t){t.inViewport=false;if(t===this.activeCell&&t!==this._willBeRemoved){this._toggleSoftVisibility(t,false);return}const n=t.node.querySelector("defs,.myst");if(n){this._toggleSoftVisibility(t,false);return}if(t instanceof s.CodeCell&&!t.node.classList.contains(Z)&&t!==this._willBeRemoved){t.node.style.display="none";this._topHiddenCodeCells=-1}else{if(this.parent.isAttached){H.MessageLoop.sendMessage(t,W.Widget.Msg.BeforeDetach)}this.parent.viewportNode.removeChild(t.node);t.node.classList.remove(Q)}if(this.parent.isAttached){H.MessageLoop.sendMessage(t,W.Widget.Msg.AfterDetach)}}moveWidget(e,t,n){if(this._topHiddenCodeCells<0){this._topHiddenCodeCells=0;for(let e=0;en){e=i-1}}if(t>0){return t}else{return 0}}}const oe="jp-Notebook-footer";class re extends W.Widget{constructor(e){super({node:document.createElement("button")});this.notebook=e;const t=e.translator.load("jupyterlab");this.addClass(oe);this.node.setAttribute("tabindex","-1");this.node.innerText=t.__("Click to add a cell.")}handleEvent(e){switch(e.type){case"click":this.onClick();break;case"keydown":if(e.key==="ArrowUp"){this.onArrowUp();break}}}onClick(){if(this.notebook.widgets.length>0){this.notebook.activeCellIndex=this.notebook.widgets.length-1}f.insertBelow(this.notebook);void f.focusActiveCell(this.notebook)}onArrowUp(){}onAfterAttach(e){super.onAfterAttach(e);this.node.addEventListener("click",this);this.node.addEventListener("keydown",this)}onBeforeDetach(e){this.node.removeEventListener("click",this);this.node.removeEventListener("keydown",this);super.onBeforeDetach(e)}}const ae="jpKernelUser";const le="jpCodeRunner";const de="jpUndoer";const ce="jp-Notebook";const he="jp-Notebook-cell";const ue="jp-mod-editMode";const pe="jp-mod-commandMode";const me="jp-mod-active";const ge="jp-mod-selected";const fe="jp-mod-dirty";const ve="jp-mod-multiSelected";const _e="jp-mod-unconfined";const be="jp-mod-readWrite";const ye="jp-dragImage";const we="jp-dragImage-singlePrompt";const Ce="jp-dragImage-content";const xe="jp-dragImage-prompt";const Se="jp-dragImage-multipleBack";const ke="application/vnd.jupyter.cells";const je=5;const Ie=50;const Ee="jp-collapseHeadingButton";const Te="jp-mod-showHiddenCellsButton";const Me="jp-mod-sideBySide";if(window.requestIdleCallback===undefined){window.requestIdleCallback=function(e){let t=Date.now();return setTimeout((function(){e({didTimeout:false,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};window.cancelIdleCallback=function(e){clearTimeout(e)}}class De extends y.WindowedList{constructor(e){var t,n,i,s,o,a;const l=new Array;const c=((n=(t=e.notebookConfig)===null||t===void 0?void 0:t.windowingMode)!==null&&n!==void 0?n:De.defaultNotebookConfig.windowingMode)==="full";super({model:new ie(l,{overscanCount:(s=(i=e.notebookConfig)===null||i===void 0?void 0:i.overscanCount)!==null&&s!==void 0?s:De.defaultNotebookConfig.overscanCount,windowingActive:c}),layout:new se,renderer:(o=e.renderer)!==null&&o!==void 0?o:y.WindowedList.defaultRenderer,scrollbar:false});this._cellCollapsed=new d.Signal(this);this._cellInViewportChanged=new d.Signal(this);this._renderingLayoutChanged=new d.Signal(this);this.addClass(ce);this.cellsArray=l;this._idleCallBack=null;this._editorConfig=De.defaultEditorConfig;this._notebookConfig=De.defaultNotebookConfig;this._mimetype=O.IEditorMimeTypeService.defaultMimeType;this._notebookModel=null;this._modelChanged=new d.Signal(this);this._modelContentChanged=new d.Signal(this);this.node.dataset[ae]="true";this.node.dataset[de]="true";this.node.dataset[le]="true";this.rendermime=e.rendermime;this.translator=e.translator||r.nullTranslator;this.contentFactory=e.contentFactory;this.editorConfig=e.editorConfig||De.defaultEditorConfig;this.notebookConfig=e.notebookConfig||De.defaultNotebookConfig;this._updateNotebookConfig();this._mimetypeService=e.mimeTypeService;this.renderingLayout=(a=e.notebookConfig)===null||a===void 0?void 0:a.renderingLayout;this.kernelHistory=e.kernelHistory}get cellCollapsed(){return this._cellCollapsed}get cellInViewportChanged(){return this._cellInViewportChanged}get modelChanged(){return this._modelChanged}get modelContentChanged(){return this._modelContentChanged}get renderingLayoutChanged(){return this._renderingLayoutChanged}get model(){return this._notebookModel}set model(e){var t;e=e||null;if(this._notebookModel===e){return}const n=this._notebookModel;this._notebookModel=e;this._onModelChanged(n,e);this.onModelChanged(n,e);this._modelChanged.emit(void 0);this.viewModel.itemsList=(t=e===null||e===void 0?void 0:e.cells)!==null&&t!==void 0?t:null}get codeMimetype(){return this._mimetype}get widgets(){return this.cellsArray}get editorConfig(){return this._editorConfig}set editorConfig(e){this._editorConfig=e;this._updateEditorConfig()}get notebookConfig(){return this._notebookConfig}set notebookConfig(e){this._notebookConfig=e;this._updateNotebookConfig()}get renderingLayout(){return this._renderingLayout}set renderingLayout(e){var t;this._renderingLayout=e;if(this._renderingLayout==="side-by-side"){this.node.classList.add(Me)}else{this.node.classList.remove(Me)}this._renderingLayoutChanged.emit((t=this._renderingLayout)!==null&&t!==void 0?t:"default")}dispose(){var e;if(this.isDisposed){return}this._notebookModel=null;(e=this.layout.header)===null||e===void 0?void 0:e.dispose();super.dispose()}moveCell(e,t,n=1){if(!this.model){return}const i=Math.min(this.model.cells.length-1,Math.max(0,t));if(i===e){return}const s=new Array(n);let o=new Array(n);for(let r=0;rt){if(this.widgets[t+r].model.type==="code"){this.widgets[t+r].model.isDirty=o[r]}}else{if(this.widgets[t+r-n+1].model.type==="code"){this.widgets[t+r-n+1].model.isDirty=o[r]}}}}renderCellOutputs(e){const t=this.viewModel.widgetRenderer(e);if(t instanceof s.CodeCell&&t.isPlaceholder()){t.dataset.windowedListIndex=`${e}`;this.layout.insertWidget(e,t);if(this.notebookConfig.windowingMode==="full"){requestAnimationFrame((()=>{this.layout.removeWidget(t)}))}}}addHeader(){const e=this.translator.load("jupyterlab");const t=new W.Widget;t.node.textContent=e.__("The notebook is empty. Click the + button on the toolbar to add a new cell.");this.layout.header=t}removeHeader(){var e;(e=this.layout.header)===null||e===void 0?void 0:e.dispose();this.layout.header=null}onModelChanged(e,t){}onModelContentChanged(e,t){this._modelContentChanged.emit(void 0)}onMetadataChanged(e,t){switch(t.key){case"language_info":this._updateMimetype();break;default:break}}onCellInserted(e,t){}onCellRemoved(e,t){}onUpdateRequest(e){if(this.notebookConfig.windowingMode==="defer"){void this._runOnIdleTime()}else{super.onUpdateRequest(e)}}_onModelChanged(e,t){var n;if(e){e.contentChanged.disconnect(this.onModelContentChanged,this);e.metadataChanged.disconnect(this.onMetadataChanged,this);e.cells.changed.disconnect(this._onCellsChanged,this);while(this.cellsArray.length){this._removeCell(0)}}if(!t){this._mimetype=O.IEditorMimeTypeService.defaultMimeType;return}this._updateMimetype();const i=t.cells;const s=(n=t.collaborative)!==null&&n!==void 0?n:false;if(!s&&!i.length){t.sharedModel.insertCell(0,{cell_type:this.notebookConfig.defaultCell,metadata:this.notebookConfig.defaultCell==="code"?{trusted:true}:{}})}let o=-1;for(const r of i){this._insertCell(++o,r)}t.cells.changed.connect(this._onCellsChanged,this);t.metadataChanged.connect(this.onMetadataChanged,this);t.contentChanged.connect(this.onModelContentChanged,this)}_onCellsChanged(e,t){this.removeHeader();switch(t.type){case"add":{let e=0;e=t.newIndex;for(const n of t.newValues){this._insertCell(e++,n)}this._updateDataWindowedListIndex(t.newIndex,this.model.cells.length,t.newValues.length);break}case"remove":for(let e=t.oldValues.length;e>0;e--){this._removeCell(t.oldIndex)}this._updateDataWindowedListIndex(t.oldIndex,this.model.cells.length+t.oldValues.length,-1*t.oldValues.length);if(!e.length){const e=this.model;requestAnimationFrame((()=>{if(e&&!e.isDisposed&&!e.sharedModel.cells.length){e.sharedModel.insertCell(0,{cell_type:this.notebookConfig.defaultCell,metadata:this.notebookConfig.defaultCell==="code"?{trusted:true}:{}})}}))}break;default:return}if(!this.model.sharedModel.cells.length){this.addHeader()}this.update()}_insertCell(e,t){let n;switch(t.type){case"code":n=this._createCodeCell(t);n.model.mimeType=this._mimetype;break;case"markdown":n=this._createMarkdownCell(t);if(t.sharedModel.getSource()===""){n.rendered=false}break;default:n=this._createRawCell(t)}n.inViewportChanged.connect(this._onCellInViewportChanged,this);n.addClass(he);a.ArrayExt.insert(this.cellsArray,e,n);this.onCellInserted(e,n);this._scheduleCellRenderOnIdle()}_createCodeCell(e){const t=this.rendermime;const n=this.contentFactory;const i=this.editorConfig.code;const s={contentFactory:n,editorConfig:i,inputHistoryScope:this.notebookConfig.inputHistoryScope,showInputPlaceholder:this.notebookConfig.showInputPlaceholder,maxNumberOutputs:this.notebookConfig.maxNumberOutputs,model:e,placeholder:this._notebookConfig.windowingMode!=="none",rendermime:t,translator:this.translator};const o=this.contentFactory.createCodeCell(s);o.syncCollapse=true;o.syncEditable=true;o.syncScrolled=true;o.outputArea.inputRequested.connect(((e,t)=>{this._onInputRequested(o).catch((e=>{console.error("Failed to scroll to cell requesting input.",e)}));t.disposed.connect((()=>{o.node.focus()}))}));return o}_createMarkdownCell(e){const t=this.rendermime;const n=this.contentFactory;const i=this.editorConfig.markdown;const s={contentFactory:n,editorConfig:i,model:e,placeholder:this._notebookConfig.windowingMode!=="none",rendermime:t,showEditorForReadOnlyMarkdown:this._notebookConfig.showEditorForReadOnlyMarkdown};const o=this.contentFactory.createMarkdownCell(s);o.syncCollapse=true;o.syncEditable=true;o.headingCollapsedChanged.connect(this._onCellCollapsed,this);return o}_createRawCell(e){const t=this.contentFactory;const n=this.editorConfig.raw;const i={editorConfig:n,model:e,contentFactory:t,placeholder:this._notebookConfig.windowingMode!=="none"};const s=this.contentFactory.createRawCell(i);s.syncCollapse=true;s.syncEditable=true;return s}_removeCell(e){const t=this.cellsArray[e];t.parent=null;a.ArrayExt.removeAt(this.cellsArray,e);this.onCellRemoved(e,t);t.dispose()}_updateMimetype(){var e;const t=(e=this._notebookModel)===null||e===void 0?void 0:e.getMetadata("language_info");if(!t){return}this._mimetype=this._mimetypeService.getMimeTypeByLanguage(t);for(const n of this.widgets){if(n.model.type==="code"){n.model.mimeType=this._mimetype}}}_onCellCollapsed(e,t){f.setHeadingCollapse(e,t,this);this._cellCollapsed.emit(e)}_onCellInViewportChanged(e){this._cellInViewportChanged.emit(e)}async _onInputRequested(e){if(!e.inViewport){const t=this.widgets.findIndex((t=>t===e));if(t>=0){await this.scrollToItem(t);const n=e.node.querySelector(".jp-Stdin");if(n){J.ElementExt.scrollIntoViewIfNeeded(this.node,n);n.focus()}}}}_scheduleCellRenderOnIdle(){if(this.notebookConfig.windowingMode!=="none"&&!this.isDisposed){if(!this._idleCallBack){this._idleCallBack=requestIdleCallback((e=>{this._idleCallBack=null;void this._runOnIdleTime(e.didTimeout?Ie:e.timeRemaining())}),{timeout:3e3})}}}_updateDataWindowedListIndex(e,t,n){for(let i=0;i=e&&o{this.viewModel.setEstimatedWidgetSize(e.model.id,e.node.getBoundingClientRect().height);this.layout.removeWidget(e)}))}}}n++}if(n{if(!this._element){this._element=this._createElement();this._notebook.activeCellChanged.connect(this._updateActive);this._notebook.selectionChanged.connect(this._updateSelection);if(this._model.type==="code"){const e=this._model;e.outputs.changed.connect(this._updatePrompt);e.stateChanged.connect(this._updateState)}}if(this._model.type!=this._element.dataset.type){this._element.dataset.type=this._model.type}const t=this._model.sharedModel.source;const n=t.length>1e4?t.substring(0,1e4):t;if(n!==this._source.textContent){this._source.textContent=n}this._updateActive();this._updateSelection();this._updatePrompt();this._updateDirty();return this._element};this.dispose=()=>{this._isDisposed=true;this._notebook.activeCellChanged.disconnect(this._updateActive);this._notebook.selectionChanged.disconnect(this._updateSelection);if(this._model.type==="code"){const e=this._model;if(e.outputs){e.outputs.changed.disconnect(this._updatePrompt);e.stateChanged.disconnect(this._updateState)}}};this._updateState=(e,t)=>{switch(t.name){case"executionCount":case"executionState":this._updatePrompt();break;case"isDirty":{this._updateDirty();break}}};this._updatePrompt=()=>{if(this._model.type!=="code"){return}const e=this._model;let t=false;for(let s=0;s{var e;if(!this._element){this._element=this._createElement()}const t=this._element;const n=t.classList.contains(me);if(((e=this._notebook.activeCell)===null||e===void 0?void 0:e.model)===this._model){if(!n){t.classList.add(me)}}else if(n){t.classList.remove(me);t.classList.remove(ge)}};this._updateSelection=()=>{if(!this._element){this._element=this._createElement()}const e=this._element;const t=e.classList.contains(ge);if(this._notebook.selectedCells.some((e=>this._model===e.model))){if(!t){e.classList.add(ge)}}else if(t){e.classList.remove(ge)}};this._isDisposed=false;this._element=null;this._model=e.model;this._notebook=e.notebook}get key(){return this._model.id}get isDisposed(){if(!this._isDisposed&&this._model.isDisposed){this.dispose()}return this._isDisposed}_updateDirty(){if(this._model.type!=="code"||!this._element){return}const e=this._model;const t=this._element.classList.contains(fe);if(t!==e.isDirty){if(e.isDirty){this._element.classList.add(fe)}else{this._element.classList.remove(fe)}}}_createElement(){const e=document.createElement("li");const t=this._executionIndicator=document.createElement("div");t.className="jp-scrollbarItem-executionIndicator";const n=this._source=document.createElement("div");n.className="jp-scrollbarItem-source";e.append(t);e.append(n);return e}}class Pe extends De{constructor(e){super({renderer:{createOuter(){return document.createElement("div")},createViewport(){const e=document.createElement("div");e.setAttribute("role","feed");e.setAttribute("aria-label","Cells");return e},createScrollbar(){return document.createElement("ol")},createScrollbarViewportIndicator(){return document.createElement("div")},createScrollbarItem(e,t,n){return new Ae({notebook:e,model:n})}},...e});this._activeCellIndex=-1;this._activeCell=null;this._mode="command";this._drag=null;this._dragData=null;this._selectData=null;this._mouseMode=null;this._activeCellChanged=new d.Signal(this);this._stateChanged=new d.Signal(this);this._selectionChanged=new d.Signal(this);this._checkCacheOnNextResize=false;this._lastClipboardInteraction=null;this._selectedCells=[];this.outerNode.setAttribute("data-lm-dragscroll","true");this.activeCellChanged.connect(this._updateSelectedCells,this);this.jumped.connect(((e,t)=>this.activeCellIndex=t));this.selectionChanged.connect(this._updateSelectedCells,this);this.addFooter()}get selectedCells(){return this._selectedCells}addFooter(){const e=new re(this);this.layout.footer=e}_onCellsChanged(e,t){var n,i;const s=(n=this.activeCell)===null||n===void 0?void 0:n.model.id;super._onCellsChanged(e,t);if(s){const e=(i=this.model)===null||i===void 0?void 0:i.sharedModel.cells.findIndex((e=>e.getId()===s));if(e!=null){this.activeCellIndex=e}}}get activeCellChanged(){return this._activeCellChanged}get stateChanged(){return this._stateChanged}get selectionChanged(){return this._selectionChanged}get mode(){return this._mode}set mode(e){this.setMode(e)}setMode(e,t={}){var n;const i=(n=t.focus)!==null&&n!==void 0?n:true;const o=this.activeCell;if(!o){e="command"}if(e===this._mode){if(i){this._ensureFocus()}return}this.update();const r=this._mode;this._mode=e;if(e==="edit"){for(const e of this.widgets){this.deselect(e)}if(o instanceof s.MarkdownCell){o.rendered=false}o.inputHidden=false}else{if(i){void f.focusActiveCell(this,{waitUntilReady:false,preventScroll:true})}}this._stateChanged.emit({name:"mode",oldValue:r,newValue:e});if(i){this._ensureFocus()}}get activeCellIndex(){if(!this.model){return-1}return this.widgets.length?this._activeCellIndex:-1}set activeCellIndex(e){var t,n;const i=this._activeCellIndex;if(!this.model||!this.widgets.length){e=-1}else{e=Math.max(e,0);e=Math.min(e,this.widgets.length-1)}this._activeCellIndex=e;const o=(t=this.widgets[i])!==null&&t!==void 0?t:null;const r=(n=this.widgets[e])!==null&&n!==void 0?n:null;this.layout.activeCell=r;const a=r!==this._activeCell;if(a){this.update();this._activeCell=r}if(a||e!=i){this._activeCellChanged.emit(r)}if(this.mode==="edit"){if(r instanceof s.MarkdownCell){r.rendered=false}if(this.notebookConfig.autoRenderMarkdownCells&&a&&o instanceof s.MarkdownCell){o.rendered=true}}this._ensureFocus();if(e===i){return}this._trimSelections();this._stateChanged.emit({name:"activeCellIndex",oldValue:i,newValue:e})}get activeCell(){return this._activeCell}get lastClipboardInteraction(){return this._lastClipboardInteraction}set lastClipboardInteraction(e){this._lastClipboardInteraction=e}dispose(){if(this.isDisposed){return}this._activeCell=null;super.dispose()}moveCell(e,t,n=1){const i=e<=this.activeCellIndex&&this.activeCellIndext?0:n-1):-1;const s=this.widgets.slice(e,e+n).map((e=>this.isSelected(e)));super.moveCell(e,t,n);if(i>=0){this.activeCellIndex=i}if(e>t){s.forEach(((e,n)=>{if(e){this.select(this.widgets[t+n])}}))}else{s.forEach(((e,i)=>{if(e){this.select(this.widgets[t-n+1+i])}}))}}select(e){if(Le.selectedProperty.get(e)){return}Le.selectedProperty.set(e,true);this._selectionChanged.emit(void 0);this.update()}deselect(e){if(!Le.selectedProperty.get(e)){return}Le.selectedProperty.set(e,false);this._selectionChanged.emit(void 0);this.update()}isSelected(e){return Le.selectedProperty.get(e)}isSelectedOrActive(e){if(e===this._activeCell){return true}return Le.selectedProperty.get(e)}deselectAll(){let e=false;for(const t of this.widgets){if(Le.selectedProperty.get(t)){e=true}Le.selectedProperty.set(t,false)}if(e){this._selectionChanged.emit(void 0)}this.activeCellIndex=this.activeCellIndex;this.update()}extendContiguousSelectionTo(e){let{head:t,anchor:n}=this.getContiguousSelection();let i;if(n===null||t===null){if(e===this.activeCellIndex){return}t=this.activeCellIndex;n=this.activeCellIndex}this.activeCellIndex=e;e=this.activeCellIndex;if(e===n){this.deselectAll();return}let s=false;if(tthis.isSelected(e)));if(t===-1){return{head:null,anchor:null}}const n=a.ArrayExt.findLastIndex(e,(e=>this.isSelected(e)),-1,t);for(let s=t;s<=n;s++){if(!this.isSelected(e[s])){throw new Error("Selection not contiguous")}}const i=this.activeCellIndex;if(t!==i&&n!==i){throw new Error("Active cell not at endpoint of selection")}if(t===i){return{head:t,anchor:n}}else{return{head:n,anchor:t}}}async scrollToCell(e,t="auto"){try{await this.scrollToItem(this.widgets.findIndex((t=>t===e)),t)}catch(n){}this.deselectAll();this.select(e);e.activate()}_parseFragment(e){const t=e.slice(1);if(!t){return}const n=t.split("=");if(n.length===1){return{kind:"heading",value:t}}return{kind:n[0],value:n.slice(1).join("=")}}async setFragment(e){const t=this._parseFragment(e);if(!t){return}let n;switch(t.kind){case"heading":n=await this._findHeading(t.value);break;case"cell-id":n=this._findCellById(t.value);break;default:console.warn(`Unknown target type for URI fragment ${e}, interpreting as a heading`);n=await this._findHeading(t.kind+"="+t.value);break}if(n==null){return}let{cell:i,element:s}=n;if(!i.inViewport){await this.scrollToCell(i,"center")}if(s==null){s=i.node}const o=this.node.getBoundingClientRect();const r=s.getBoundingClientRect();if(r.top>o.bottom||r.bottom1){t.addClass(ve)}}onCellInserted(e,t){void t.ready.then((()=>{if(!t.isDisposed){t.editor.edgeRequested.connect(this._onEdgeRequest,this)}}));t.scrollRequested.connect(((e,n)=>{if(t!==this.activeCell){return}if(!n.defaultPrevented){return}const i=this.outerNode;if(t.inViewport){return n.scrollWithinCell({scroller:i})}this.scrollToItem(this.activeCellIndex).then((()=>{void t.ready.then((()=>{n.scrollWithinCell({scroller:i})}))})).catch((e=>{}))}));this.activeCellIndex=e<=this.activeCellIndex?this.activeCellIndex+1:this.activeCellIndex}onCellRemoved(e,t){this.activeCellIndex=e<=this.activeCellIndex?this.activeCellIndex-1:this.activeCellIndex;if(this.isSelected(t)){this._selectionChanged.emit(void 0)}}onModelChanged(e,t){super.onModelChanged(e,t);this.activeCellIndex=0}_onEdgeRequest(e,t){const n=this.activeCellIndex;if(t==="top"){this.activeCellIndex--;if(this.activeCellIndexn){const e=this.activeCell.editor;if(e){e.setCursorPosition({line:0,column:0})}}}this.mode="edit"}_ensureFocus(e=false){var t,n;const i=this.layout.footer;if(i&&document.activeElement===i.node){return}const s=this.activeCell;if(this.mode==="edit"&&s){if(((t=s.editor)===null||t===void 0?void 0:t.hasFocus())!==true){if(s.inViewport){(n=s.editor)===null||n===void 0?void 0:n.focus()}else{this.scrollToItem(this.activeCellIndex).then((()=>{void s.ready.then((()=>{var e;(e=s.editor)===null||e===void 0?void 0:e.focus()}))})).catch((e=>{}))}}}if(e&&s&&!s.node.contains(document.activeElement)){void f.focusActiveCell(this,{preventScroll:true})}}_findCell(e){let t=e;while(t&&t!==this.node){if(t.classList.contains(he)){const e=a.ArrayExt.findFirstIndex(this.widgets,(e=>e.node===t));if(e!==-1){return e}break}t=t.parentElement}return-1}_findEventTargetAndCell(e){let t=e.target;let n=this._findCell(t);if(n===-1){t=document.elementFromPoint(e.clientX,e.clientY);n=this._findCell(t)}return[t,n]}async _findHeading(e){for(let t=0;t=je||i>=je){this._mouseMode=null;this._startDrag(t.index,e.clientX,e.clientY)}break}default:break}}_evtDragEnter(e){if(!e.mimeData.hasData(ke)){return}e.preventDefault();e.stopPropagation();const t=e.target;const n=this._findCell(t);if(n===-1){return}const i=this.cellsArray[n];i.node.classList.add(Q)}_evtDragLeave(e){if(!e.mimeData.hasData(ke)){return}e.preventDefault();e.stopPropagation();const t=this.node.getElementsByClassName(Q);if(t.length){t[0].classList.remove(Q)}}_evtDragOver(e){if(!e.mimeData.hasData(ke)){return}e.preventDefault();e.stopPropagation();e.dropAction=e.proposedAction;const t=this.node.getElementsByClassName(Q);if(t.length){t[0].classList.remove(Q)}const n=e.target;const i=this._findCell(n);if(i===-1){return}const s=this.cellsArray[i];s.node.classList.add(Q)}_evtDrop(e){if(!e.mimeData.hasData(ke)){return}e.preventDefault();e.stopPropagation();if(e.proposedAction==="none"){e.dropAction="none";return}let t=e.target;while(t&&t.parentElement){if(t.classList.contains(Q)){t.classList.remove(Q);break}t=t.parentElement}const n=this.model;const i=e.source;if(i===this){e.dropAction="move";const n=e.mimeData.getData("internal:cells");const o=n[n.length-1];if(o instanceof s.MarkdownCell&&o.headingCollapsed){const e=f.findNextParentHeading(o,i);if(e>0){const t=(0,a.findIndex)(i.widgets,(e=>o.model.id===e.model.id));n.push(...i.widgets.slice(t+1,e))}}let r=a.ArrayExt.firstIndexOf(this.widgets,n[0]);let l=this._findCell(t);if(l!==-1&&l>r){l-=1}else if(l===-1){l=this.widgets.length-1}if(l>=r&&le.model.sharedModel.getSource())).join("\n");this._drag.mimeData.setData("text/plain",u);document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true);this._mouseMode=null;void this._drag.start(t,n).then((e=>{if(this.isDisposed){return}this._drag=null;for(const t of r){t.removeClass(Z)}}))}_updateReadWrite(){const e=i.DOMUtils.hasActiveEditableElement(this.node);this.node.classList.toggle(be,e)}_evtFocusIn(e){var t,n;this._updateReadWrite();const i=e.target;const s=this._findCell(i);if(s!==-1){const e=this.widgets[s];if(e.editorWidget&&!e.editorWidget.node.contains(i)){this.setMode("command",{focus:false})}this.activeCellIndex=s;const n=(t=e.editorWidget)===null||t===void 0?void 0:t.node;if(n===null||n===void 0?void 0:n.contains(i)){this.setMode("edit",{focus:false})}}else{this.setMode("command",{focus:false});e.preventDefault();const t=e.relatedTarget;if(this._activeCell&&!this._activeCell.node.contains(t)){this._activeCell.ready.then((()=>{var e;(e=this._activeCell)===null||e===void 0?void 0:e.node.focus({preventScroll:true})})).catch((()=>{var e;(e=this.layout.footer)===null||e===void 0?void 0:e.node.focus({preventScroll:true})}))}else{(n=this.layout.footer)===null||n===void 0?void 0:n.node.focus({preventScroll:true})}}}_evtFocusOut(e){var t;this._updateReadWrite();const n=e.relatedTarget;if(!n){return}const i=this._findCell(n);if(i!==-1){const e=this.widgets[i];if((t=e.editorWidget)===null||t===void 0?void 0:t.node.contains(n)){return}}if(this.mode!=="command"){this.setMode("command",{focus:false})}}_evtDblClick(e){const t=this.model;if(!t){return}this.deselectAll();const[n,i]=this._findEventTargetAndCell(e);if(e.target.classList.contains(Ee)){return}if(i===-1){return}this.activeCellIndex=i;if(t.cells.get(i).type==="markdown"){const e=this.widgets[i];e.rendered=false}else if(n.localName==="img"){n.classList.toggle(_e)}}_trimSelections(){for(let e=0;ethis.isSelectedOrActive(e)));if(this.kernelHistory){this.kernelHistory.reset()}}}(function(e){class t extends De.ContentFactory{}e.ContentFactory=t})(Pe||(Pe={}));var Le;(function(e){e.selectedProperty=new Y.AttachedProperty({name:"selected",create:()=>false});class t extends W.PanelLayout{onUpdateRequest(e){}}e.NotebookPanelLayout=t;function n(e,t,n){if(e>1){if(t!==""){return X.VirtualDOM.realize(X.h.div(X.h.div({className:ye},X.h.span({className:xe},"["+t+"]:"),X.h.span({className:Ce},n)),X.h.div({className:Se},"")))}else{return X.VirtualDOM.realize(X.h.div(X.h.div({className:ye},X.h.span({className:xe}),X.h.span({className:Ce},n)),X.h.div({className:Se},"")))}}else{if(t!==""){return X.VirtualDOM.realize(X.h.div(X.h.div({className:`${ye} ${we}`},X.h.span({className:xe},"["+t+"]:"),X.h.span({className:Ce},n))))}else{return X.VirtualDOM.realize(X.h.div(X.h.div({className:`${ye} ${we}`},X.h.span({className:xe}),X.h.span({className:Ce},n))))}}}e.createDragImage=n})(Le||(Le={}));const Re="jp-NotebookPanel";const Ne="jp-NotebookPanel-toolbar";const Oe="jp-NotebookPanel-notebook";class Be extends $.DocumentWidget{constructor(e){super(e);this._autorestarting=false;this.addClass(Re);this.toolbar.addClass(Ne);this.content.addClass(Oe);this.content.model=this.context.model;this.context.sessionContext.kernelChanged.connect(this._onKernelChanged,this);this.context.sessionContext.statusChanged.connect(this._onSessionStatusChanged,this);this.context.saveState.connect(this._onSave,this);void this.revealed.then((()=>{if(this.isDisposed){return}if(this.content.widgets.length===1){const e=this.content.widgets[0].model;if(e.type==="code"&&e.sharedModel.getSource()===""){this.content.mode="edit"}}}))}_onSave(e,t){if(t==="started"&&this.model){for(const e of this.model.cells){if((0,s.isMarkdownCellModel)(e)){for(const t of e.attachments.keys){if(!e.sharedModel.getSource().includes(t)){e.attachments.remove(t)}}}}}}get sessionContext(){return this.context.sessionContext}get model(){return this.content.model}setConfig(e){this.content.editorConfig=e.editorConfig;this.content.notebookConfig=e.notebookConfig;const t=this.context.sessionContext.kernelPreference;this.context.sessionContext.kernelPreference={...t,shutdownOnDispose:e.kernelShutdown,autoStartDefault:e.autoStartDefault}}setFragment(e){void this.context.ready.then((()=>{void this.content.setFragment(e)}))}dispose(){this.content.dispose();super.dispose()}[i.Printing.symbol](){return async()=>{if(this.context.model.dirty&&!this.context.model.readOnly){await this.context.save()}await i.Printing.printURL(o.PageConfig.getNBConvertURL({format:"html",download:false,path:this.context.path}))}}onBeforeHide(e){super.onBeforeHide(e);this.content.isParentHidden=true}onBeforeShow(e){this.content.isParentHidden=false;super.onBeforeShow(e)}_onKernelChanged(e,t){if(!this.model||!t.newValue){return}const{newValue:n}=t;void n.info.then((e=>{var t;if(this.model&&((t=this.context.sessionContext.session)===null||t===void 0?void 0:t.kernel)===n){this._updateLanguage(e.language_info)}}));void this._updateSpec(n)}_onSessionStatusChanged(e,t){var n;if(t==="autorestarting"&&!this._autorestarting){void(0,i.showDialog)({title:this._trans.__("Kernel Restarting"),body:this._trans.__("The kernel for %1 appears to have died. It will restart automatically.",(n=this.sessionContext.session)===null||n===void 0?void 0:n.path),buttons:[i.Dialog.okButton({label:this._trans.__("Ok")})]});this._autorestarting=true}else if(t==="restarting"){}else{this._autorestarting=false}}_updateLanguage(e){this.model.setMetadata("language_info",e)}async _updateSpec(e){const t=await e.spec;if(this.isDisposed){return}this.model.setMetadata("kernelspec",{name:e.name,display_name:t===null||t===void 0?void 0:t.display_name,language:t===null||t===void 0?void 0:t.language})}}(function(e){class t extends Pe.ContentFactory{createNotebook(e){return new Pe(e)}}e.ContentFactory=t;e.IContentFactory=new l.Token("@jupyterlab/notebook:IContentFactory",`A factory object that creates new notebooks.\n Use this if you want to create and host notebooks in your own UI elements.`)})(Be||(Be={}));var Fe=n(22441);class ze extends Fe.SearchProvider{constructor(e,t=r.nullTranslator){super(e);this.translator=t;this._textSelection=null;this._currentProviderIndex=null;this._delayedActiveCellChangeHandler=null;this._onSelection=false;this._selectedCells=1;this._selectedLines=0;this._query=null;this._searchProviders=[];this._editorSelectionsObservable=null;this._selectionSearchMode="cells";this._selectionLock=false;this._searchActive=false;this._handleHighlightsAfterActiveCellChange=this._handleHighlightsAfterActiveCellChange.bind(this);this.widget.model.cells.changed.connect(this._onCellsChanged,this);this.widget.content.activeCellChanged.connect(this._onActiveCellChanged,this);this.widget.content.selectionChanged.connect(this._onCellSelectionChanged,this);this.widget.content.stateChanged.connect(this._onNotebookStateChanged,this);this._observeActiveCell();this._filtersChanged.connect(this._setEnginesSelectionSearchMode,this)}_onNotebookStateChanged(e,t){if(t.name==="mode"){window.setTimeout((()=>{var e;if(t.newValue==="command"&&((e=document.activeElement)===null||e===void 0?void 0:e.closest(".jp-DocumentSearch-overlay"))){return}this._updateSelectionMode();this._filtersChanged.emit()}),0)}}static isApplicable(e){return e instanceof Be}static createNew(e,t){return new ze(e,t)}get currentMatchIndex(){let e=0;let t=false;for(let n=0;ne+=t.matchesCount),0)}get isReadOnly(){var e,t,n;return(n=(t=(e=this.widget)===null||e===void 0?void 0:e.content.model)===null||t===void 0?void 0:t.readOnly)!==null&&n!==void 0?n:false}get replaceOptionsSupport(){return{preserveCase:true}}getSelectionState(){const e=this._selectionSearchMode==="cells";const t=e?this._selectedCells:this._selectedLines;return t>1?"multiple":t===1&&!e?"single":"none"}dispose(){var e;if(this.isDisposed){return}this.widget.content.activeCellChanged.disconnect(this._onActiveCellChanged,this);(e=this.widget.model)===null||e===void 0?void 0:e.cells.changed.disconnect(this._onCellsChanged,this);this.widget.content.stateChanged.disconnect(this._onNotebookStateChanged,this);this.widget.content.selectionChanged.disconnect(this._onCellSelectionChanged,this);this._stopObservingLastCell();super.dispose();const t=this.widget.content.activeCellIndex;this.endQuery().then((()=>{if(!this.widget.isDisposed){this.widget.content.activeCellIndex=t}})).catch((e=>{console.error(`Fail to end search query in notebook:\n${e}`)}))}getFilters(){const e=this.translator.load("jupyterlab");return{output:{title:e.__("Search Cell Outputs"),description:e.__("Search in the cell outputs."),disabledDescription:e.__("Search in the cell outputs (not available when replace options are shown)."),default:false,supportReplace:false},selection:{title:this._selectionSearchMode==="cells"?e._n("Search in %1 Selected Cell","Search in %1 Selected Cells",this._selectedCells):e._n("Search in %1 Selected Line","Search in %1 Selected Lines",this._selectedLines),description:e.__("Search only in the selected cells or text (depending on edit/command mode)."),default:false,supportReplace:true}}}_updateSelectionMode(){if(this._selectionLock){return}this._selectionSearchMode=this._selectedCells===1&&this.widget.content.mode==="edit"&&this._selectedLines!==0?"text":"cells"}getInitialQuery(){var e;return((e=window.getSelection())===null||e===void 0?void 0:e.toString())||""}async clearHighlight(){this._selectionLock=true;if(this._currentProviderIndex!==null&&this._currentProviderIndex{const o=(0,s.createCellSearchProvider)(t);await o.setIsActive(!this._filters.selection||this.widget.content.isSelectedOrActive(t));if(this._onSelection&&this._selectionSearchMode==="text"&&n===i){if(this._textSelection){await o.setSearchSelection(this._textSelection)}}await o.startQuery(e,this._filters);return o})));this._currentProviderIndex=i;await this.highlightNext(true,{from:"selection-start",scroll:false,select:false});return Promise.resolve()}async endQuery(){await Promise.all(this._searchProviders.map((e=>e.endQuery().then((()=>{e.dispose()})))));this._searchActive=false;this._searchProviders.length=0;this._currentProviderIndex=null}async replaceCurrentMatch(e,t=true,n){let i=false;const s=async(e=false)=>{var n;const i=(n=this.widget)===null||n===void 0?void 0:n.content.activeCell;if((i===null||i===void 0?void 0:i.model.type)==="markdown"&&i.rendered){i.rendered=false;if(e){await this.highlightNext(t)}}};if(this._currentProviderIndex!==null){await s();const o=this._searchProviders[this._currentProviderIndex];i=await o.replaceCurrentMatch(e,false,n);if(o.currentMatchIndex===null){await this.highlightNext(t,{from:"previous-match"})}}await s(true);return i}async replaceAllMatches(e,t){const n=await Promise.all(this._searchProviders.map((n=>n.replaceAllMatches(e,t))));return n.includes(true)}async validateFilter(e,t){if(e!=="output"){return t}if(t&&this.widget.content.widgets.some((e=>e instanceof s.CodeCell&&e.isPlaceholder()))){const e=this.translator.load("jupyterlab");const t=await(0,i.showDialog)({title:e.__("Confirmation"),body:e.__("Searching outputs requires you to run all cells and render their outputs. Are you sure you want to search in the cell outputs?"),buttons:[i.Dialog.cancelButton({label:e.__("Cancel")}),i.Dialog.okButton({label:e.__("Ok")})]});if(t.button.accept){this.widget.content.widgets.forEach(((e,t)=>{if(e instanceof s.CodeCell&&e.isPlaceholder()){this.widget.content.renderCellOutputs(t)}}))}else{return false}}return t}_addCellProvider(e){var t,n;const i=this.widget.content.widgets[e];const o=(0,s.createCellSearchProvider)(i);a.ArrayExt.insert(this._searchProviders,e,o);void o.setIsActive(!((n=(t=this._filters)===null||t===void 0?void 0:t.selection)!==null&&n!==void 0?n:false)||this.widget.content.isSelectedOrActive(i)).then((()=>{if(this._searchActive){void o.startQuery(this._query,this._filters)}}))}_removeCellProvider(e){const t=a.ArrayExt.removeAt(this._searchProviders,e);t===null||t===void 0?void 0:t.dispose()}async _onCellsChanged(e,t){switch(t.type){case"add":t.newValues.forEach(((e,n)=>{this._addCellProvider(t.newIndex+n)}));break;case"move":a.ArrayExt.move(this._searchProviders,t.oldIndex,t.newIndex);break;case"remove":for(let e=0;e{this._addCellProvider(t.newIndex+n);this._removeCellProvider(t.newIndex+n+1)}));break}this._stateChanged.emit()}async _stepNext(e=false,t=false,n){var i;const s=async e=>{var t;const i=(t=n===null||n===void 0?void 0:n.scroll)!==null&&t!==void 0?t:true;if(!i){return}this._selectionLock=true;if(this.widget.content.activeCellIndex!==this._currentProviderIndex){this.widget.content.activeCellIndex=this._currentProviderIndex}if(this.widget.content.activeCellIndex===-1){console.warn("No active cell (no cells or no model), aborting search");this._selectionLock=false;return}const s=this.widget.content.activeCell;if(!s.inViewport){try{await this.widget.content.scrollToItem(this._currentProviderIndex)}catch(r){}}if(s.inputHidden){s.inputHidden=false}if(!s.inViewport){this._selectionLock=false;return}await s.ready;const o=s.editor;o.revealPosition(o.getPositionAt(e.position));this._selectionLock=false};if(this._currentProviderIndex===null){this._currentProviderIndex=this.widget.content.activeCellIndex}if(e&&this.widget.content.mode==="command"){const e=this._searchProviders[this._currentProviderIndex];const n=e.getCurrentMatch();if(!n){this._currentProviderIndex-=1}if(t){this._currentProviderIndex=(this._currentProviderIndex+this._searchProviders.length)%this._searchProviders.length}}const o=(i=n===null||n===void 0?void 0:n.from)!==null&&i!==void 0?i:"";const r=o==="previous-match"&&this._searchProviders[this._currentProviderIndex].currentMatchIndex===null;const a=this._currentProviderIndex;if(r){void this._searchProviders[this._currentProviderIndex].clearHighlight()}if(t&&r&&this._currentProviderIndex+1>=this._searchProviders.length){this._currentProviderIndex=0}else{this._currentProviderIndex+=r?1:0}do{const i=this._searchProviders[this._currentProviderIndex];const o=e?await i.highlightPrevious(false,n):await i.highlightNext(false,n);if(o){await s(o);return o}else{this._currentProviderIndex=this._currentProviderIndex+(e?-1:1);if(t){this._currentProviderIndex=(this._currentProviderIndex+this._searchProviders.length)%this._searchProviders.length}}}while(t?this._currentProviderIndex!==a:0<=this._currentProviderIndex&&this._currentProviderIndex{this.delayedActiveCellChangeHandlerReady=this._handleHighlightsAfterActiveCellChange()}),0)}this._observeActiveCell()}async _handleHighlightsAfterActiveCellChange(){if(this._onSelection){const e=this._currentProviderIndex!==null&&this._currentProviderIndex{const i=this.widget.content.activeCellIndex===n;t.setProtectSelection(i&&this._onSelection);return t.setSearchSelection(i&&e?this._textSelection:null)})))}async _onCellSelectionChanged(){if(this._delayedActiveCellChangeHandler!==null){clearTimeout(this._delayedActiveCellChangeHandler);this._delayedActiveCellChangeHandler=null}await this._updateCellSelection();if(this._currentProviderIndex===null){const e=this.widget.content.widgets.findIndex((e=>this.widget.content.isSelectedOrActive(e)));this._currentProviderIndex=e}await this._ensureCurrentMatch()}async _updateCellSelection(){const e=this.widget.content.widgets;let t=0;await Promise.all(e.map((async(e,n)=>{const i=this._searchProviders[n];const s=this.widget.content.isSelectedOrActive(e);if(s){t+=1}if(i&&this._onSelection){await i.setIsActive(s)}})));if(t!==this._selectedCells){this._selectedCells=t;this._updateSelectionMode()}this._filtersChanged.emit()}}var He;(function(e){e[e["Idle"]=-1]="Idle";e[e["Error"]=-.5]="Error";e[e["Scheduled"]=0]="Scheduled";e[e["Running"]=1]="Running"})(He||(He={}));class We extends K.TableOfContentsModel{constructor(e,t,n,i){super(e,i);this.parser=t;this.sanitizer=n;this.configMetadataMap={numberHeaders:["toc-autonumbering","toc/number_sections"],numberingH1:["!toc/skip_h1_title"],baseNumbering:["toc/base_numbering"]};this._runningCells=new Array;this._errorCells=new Array;this._cellToHeadingIndex=new WeakMap;void e.context.ready.then((()=>{this.setConfiguration({})}));this.widget.context.model.metadataChanged.connect(this.onMetadataChanged,this);this.widget.content.activeCellChanged.connect(this.onActiveCellChanged,this);f.executionScheduled.connect(this.onExecutionScheduled,this);f.executed.connect(this.onExecuted,this);f.outputCleared.connect(this.onOutputCleared,this);this.headingsChanged.connect(this.onHeadingsChanged,this)}get documentType(){return"notebook"}get isAlwaysActive(){return true}get supportedOptions(){return["baseNumbering","maximalDepth","numberingH1","numberHeaders","includeOutput","syncCollapseState"]}getCellHeadings(e){const t=new Array;let n=this._cellToHeadingIndex.get(e);if(n!==undefined){const e=this.headings[n];t.push(e);while(this.headings[n-1]&&this.headings[n-1].cellRef===e.cellRef){n--;t.unshift(this.headings[n])}}return t}dispose(){var e,t,n;if(this.isDisposed){return}this.headingsChanged.disconnect(this.onHeadingsChanged,this);(t=(e=this.widget.context)===null||e===void 0?void 0:e.model)===null||t===void 0?void 0:t.metadataChanged.disconnect(this.onMetadataChanged,this);(n=this.widget.content)===null||n===void 0?void 0:n.activeCellChanged.disconnect(this.onActiveCellChanged,this);f.executionScheduled.disconnect(this.onExecutionScheduled,this);f.executed.disconnect(this.onExecuted,this);f.outputCleared.disconnect(this.onOutputCleared,this);this._runningCells.length=0;this._errorCells.length=0;super.dispose()}setConfiguration(e){const t=this.loadConfigurationFromMetadata();super.setConfiguration({...this.configuration,...t,...e})}toggleCollapse(e){super.toggleCollapse(e);this.updateRunningStatus(this.headings)}getHeadings(){const e=this.widget.content.widgets;const t=[];const n=new Array;for(let i=0;i({...e,cellRef:s,collapsed:false,isRunning:He.Idle}))))}break}case"markdown":{const e=K.TableOfContentsUtils.filterHeadings(s.headings,this.configuration,n).map(((e,t)=>({...e,cellRef:s,collapsed:false,isRunning:He.Idle})));if(this.configuration.syncCollapseState&&s.headingCollapsed){const t=Math.min(...e.map((e=>e.level)));const n=e.find((e=>e.level===t));n.collapsed=s.headingCollapsed}t.push(...e);break}}if(t.length>0){this._cellToHeadingIndex.set(s,t.length-1)}}this.updateRunningStatus(t);return Promise.resolve(t)}isHeadingEqual(e,t){return super.isHeadingEqual(e,t)&&e.cellRef===t.cellRef}loadConfigurationFromMetadata(){const e=this.widget.content.model;const t={};if(e){for(const n in this.configMetadataMap){const i=this.configMetadataMap[n];for(const s of i){let i=s;const o=i[0]==="!";if(o){i=i.slice(1)}const r=i.split("/");let a=e.getMetadata(r[0]);for(let e=1;e{var i;if(e===t.cell){this._runningCells.splice(n,1);const s=this._cellToHeadingIndex.get(e);if(s!==undefined){const n=this.headings[s];if(t.success||((i=t.error)===null||i===void 0?void 0:i.errorName)===undefined){n.isRunning=He.Idle;return}n.isRunning=He.Error;if(!this._errorCells.includes(e)){this._errorCells.push(e)}}}}));this.updateRunningStatus(this.headings);this.stateChanged.emit()}onExecutionScheduled(e,t){if(!this._runningCells.includes(t.cell)){this._runningCells.push(t.cell)}this._errorCells.forEach(((e,n)=>{if(e===t.cell){this._errorCells.splice(n,1)}}));this.updateRunningStatus(this.headings);this.stateChanged.emit()}onOutputCleared(e,t){this._errorCells.forEach(((e,n)=>{if(e===t.cell){this._errorCells.splice(n,1);const t=this._cellToHeadingIndex.get(e);if(t!==undefined){const e=this.headings[t];e.isRunning=He.Idle}}}));this.updateRunningStatus(this.headings);this.stateChanged.emit()}onMetadataChanged(){this.setConfiguration({})}updateRunningStatus(e){this._runningCells.forEach(((e,t)=>{const n=this._cellToHeadingIndex.get(e);if(n!==undefined){const e=this.headings[n];if(e.isRunning!==He.Running){e.isRunning=t>0?He.Scheduled:He.Running}}}));this._errorCells.forEach(((e,t)=>{const n=this._cellToHeadingIndex.get(e);if(n!==undefined){const e=this.headings[n];if(e.isRunning===He.Idle){e.isRunning=He.Error}}}));let t=0;while(ti){t++;s=Math.max(o.isRunning,s);if(o.collapsed){s=Math.max(s,n(e,o.level));o.dataset={...o.dataset,"data-running":s.toString()}}}else{break}}return s}}}class Ve extends K.TableOfContentsFactory{constructor(e,t,n){super(e);this.parser=t;this.sanitizer=n;this._scrollToTop=true}get scrollToTop(){return this._scrollToTop}set scrollToTop(e){this._scrollToTop=e}_createNew(e,t){const n=new We(e,this.parser,this.sanitizer,t);let i=new WeakMap;const o=(t,n)=>{if(n){const t=async t=>{if(!t.inViewport){return}const s=i.get(n);if(s){if(this.scrollToTop){s.scrollIntoView({block:"start"})}else{const t=e.content.node.getBoundingClientRect();const n=s.getBoundingClientRect();if(n.top>t.bottom||n.bottom{console.error(`Fail to scroll to cell to display the required heading (${e}).`)}))}else{e.content.scrollToItem(r,this.scrollToTop?"start":undefined).then((()=>t(s))).catch((e=>{console.error(`Fail to scroll to cell to display the required heading (${e}).`)}))}}};const r=e=>{n.getCellHeadings(e).forEach((async e=>{var t,n;const s=await Ue(e,this.parser,this.sanitizer);const o=s?`h${e.level}[id="${CSS.escape(s)}"]`:`h${e.level}`;if(e.outputIndex!==undefined){i.set(e,K.TableOfContentsUtils.addPrefix(e.cellRef.outputArea.widgets[e.outputIndex].node,o,(t=e.prefix)!==null&&t!==void 0?t:""))}else{i.set(e,K.TableOfContentsUtils.addPrefix(e.cellRef.node,o,(n=e.prefix)!==null&&n!==void 0?n:""))}}))};const a=t=>{if(!this.parser){return}K.TableOfContentsUtils.clearNumbering(e.content.node);i=new WeakMap;e.content.widgets.forEach((e=>{r(e)}))};const l=(t,i)=>{var o,r,a,l;if(n.configuration.syncCollapseState){if(i!==null){const e=i.cellRef;if(e.headingCollapsed!==((o=i.collapsed)!==null&&o!==void 0?o:false)){e.headingCollapsed=(r=i.collapsed)!==null&&r!==void 0?r:false}}else{const t=(l=(a=n.headings[0])===null||a===void 0?void 0:a.collapsed)!==null&&l!==void 0?l:false;e.content.widgets.forEach((e=>{if(e instanceof s.MarkdownCell){if(e.headingInfo.level>=0){e.headingCollapsed=t}}}))}}};const d=(e,t)=>{if(n.configuration.syncCollapseState){const e=n.getCellHeadings(t)[0];if(e){n.toggleCollapse({heading:e,collapsed:t.headingCollapsed})}}};const c=(e,t)=>{if(t.inViewport){r(t)}else{K.TableOfContentsUtils.clearNumbering(t.node)}};void e.context.ready.then((()=>{a(n);n.activeHeadingChanged.connect(o);n.headingsChanged.connect(a);n.collapseChanged.connect(l);e.content.cellCollapsed.connect(d);e.content.cellInViewportChanged.connect(c);e.disposed.connect((()=>{n.activeHeadingChanged.disconnect(o);n.headingsChanged.disconnect(a);n.collapseChanged.disconnect(l);e.content.cellCollapsed.disconnect(d);e.content.cellInViewportChanged.disconnect(c)}))}));return n}}async function Ue(e,t,n){let i=null;if(e.type===s.Cell.HeadingType.Markdown){i=await K.TableOfContentsUtils.Markdown.getHeadingId(t,e.raw,e.level,n)}else if(e.type===s.Cell.HeadingType.HTML){i=e.id}return i}const qe=new l.Token("@jupyterlab/notebook:INotebookWidgetFactory","A service to create the notebook viewer.");const $e=new l.Token("@jupyterlab/notebook:INotebookTools",`A service for the "Notebook Tools" panel in the\n right sidebar. Use this to add your own functionality to the panel.`);const Ke=new l.Token("@jupyterlab/notebook:INotebookTracker",`A widget tracker for notebooks.\n Use this if you want to be able to iterate over and interact with notebooks\n created by the application.`);const Je=new l.Token("@jupyterlab/notebook:INotebookCellExecutor",`The notebook cell executor`);class Ge extends i.WidgetTracker{constructor(){super(...arguments);this._activeCell=null;this._activeCellChanged=new d.Signal(this);this._selectionChanged=new d.Signal(this)}get activeCell(){const e=this.currentWidget;if(!e){return null}return e.content.activeCell||null}get activeCellChanged(){return this._activeCellChanged}get selectionChanged(){return this._selectionChanged}add(e){const t=super.add(e);e.content.activeCellChanged.connect(this._onActiveCellChanged,this);e.content.selectionChanged.connect(this._onSelectionChanged,this);return t}dispose(){this._activeCell=null;super.dispose()}onCurrentChanged(e){const t=this.activeCell;if(t&&t===this._activeCell){return}this._activeCell=t;if(!e){return}this._activeCellChanged.emit(e.content.activeCell||null)}_onActiveCellChanged(e,t){if(this.currentWidget&&this.currentWidget.content===e){this._activeCell=t||null;this._activeCellChanged.emit(this._activeCell)}}_onSelectionChanged(e){if(this.currentWidget&&this.currentWidget.content===e){this._selectionChanged.emit(void 0)}}}const Ye="jp-StatusItem-trust";function Xe(e,t){t=t||r.nullTranslator;const n=t.load("jupyterlab");if(e.trustedCells===e.totalCells){return n.__("Notebook trusted: %1 of %2 code cells trusted.",e.trustedCells,e.totalCells)}else if(e.activeCellTrusted){return n.__("Active cell trusted: %1 of %2 code cells trusted.",e.trustedCells,e.totalCells)}else{return n.__("Notebook not trusted: %1 of %2 code cells trusted.",e.trustedCells,e.totalCells)}}function Qe(e){if(e.allCellsTrusted){return h().createElement(y.trustedIcon.react,{top:"2px",stylesheet:"statusBar"})}else{return h().createElement(y.notTrustedIcon.react,{top:"2px",stylesheet:"statusBar"})}}class Ze extends y.VDomRenderer{constructor(e){super(new Ze.Model);this.translator=e||r.nullTranslator;this.node.classList.add(Ye)}render(){if(!this.model){return null}const e=Xe(this.model,this.translator);if(e!==this.node.title){this.node.title=e}return h().createElement(Qe,{allCellsTrusted:this.model.trustedCells===this.model.totalCells,activeCellTrusted:this.model.activeCellTrusted,totalCells:this.model.totalCells,trustedCells:this.model.trustedCells})}}(function(e){class t extends y.VDomModel{constructor(){super(...arguments);this._trustedCells=0;this._totalCells=0;this._activeCellTrusted=false;this._notebook=null}get trustedCells(){return this._trustedCells}get totalCells(){return this._totalCells}get activeCellTrusted(){return this._activeCellTrusted}get notebook(){return this._notebook}set notebook(e){const t=this._notebook;if(t!==null){t.activeCellChanged.disconnect(this._onActiveCellChanged,this);t.modelContentChanged.disconnect(this._onModelChanged,this)}const n=this._getAllState();this._notebook=e;if(this._notebook===null){this._trustedCells=0;this._totalCells=0;this._activeCellTrusted=false}else{this._notebook.activeCellChanged.connect(this._onActiveCellChanged,this);this._notebook.modelContentChanged.connect(this._onModelChanged,this);if(this._notebook.activeCell){this._activeCellTrusted=this._notebook.activeCell.model.trusted}else{this._activeCellTrusted=false}const{total:e,trusted:t}=this._deriveCellTrustState(this._notebook.model);this._totalCells=e;this._trustedCells=t}this._triggerChange(n,this._getAllState())}_onModelChanged(e){const t=this._getAllState();const{total:n,trusted:i}=this._deriveCellTrustState(e.model);this._totalCells=n;this._trustedCells=i;this._triggerChange(t,this._getAllState())}_onActiveCellChanged(e,t){const n=this._getAllState();if(t){this._activeCellTrusted=t.model.trusted}else{this._activeCellTrusted=false}this._triggerChange(n,this._getAllState())}_deriveCellTrustState(e){if(e===null){return{total:0,trusted:0}}let t=0;let n=0;for(const i of e.cells){if(i.type!=="code"){continue}t++;if(i.trusted){n++}}return{total:t,trusted:n}}_getAllState(){return[this._trustedCells,this._totalCells,this.activeCellTrusted]}_triggerChange(e,t){if(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]){this.stateChanged.emit(void 0)}}}e.Model=t})(Ze||(Ze={}));class et extends $.ABCWidgetFactory{constructor(e){super(e);this.rendermime=e.rendermime;this.contentFactory=e.contentFactory;this.mimeTypeService=e.mimeTypeService;this._editorConfig=e.editorConfig||De.defaultEditorConfig;this._notebookConfig=e.notebookConfig||De.defaultNotebookConfig}get editorConfig(){return this._editorConfig}set editorConfig(e){this._editorConfig=e}get notebookConfig(){return this._notebookConfig}set notebookConfig(e){this._notebookConfig=e}createNewWidget(e,t){const n=e.translator;const i=new T({sessionContext:e.sessionContext,translator:n});const s={rendermime:t?t.content.rendermime:this.rendermime.clone({resolver:e.urlResolver}),contentFactory:this.contentFactory,mimeTypeService:this.mimeTypeService,editorConfig:t?t.content.editorConfig:this._editorConfig,notebookConfig:t?t.content.notebookConfig:this._notebookConfig,translator:n,kernelHistory:i};const o=this.contentFactory.createNotebook(s);return new Be({context:e,content:o})}}},28006:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(24800);var r=n(97913);var a=n(5893);var l=n(38457);var d=n(17325);var c=n(19562);var h=n(23359);var u=n(79010);var p=n(66731);var m=n(53377);var g=n(13137);var f=n(85072);var v=n.n(f);var _=n(97825);var b=n.n(_);var y=n(77659);var w=n.n(y);var C=n(55056);var x=n.n(C);var S=n(10540);var k=n.n(S);var j=n(41113);var I=n.n(j);var E=n(30979);var T={};T.styleTagTransform=I();T.setAttributes=x();T.insert=w().bind(null,"head");T.domAPI=b();T.insertStyleElement=k();var M=v()(E.A,T);const D=E.A&&E.A.locals?E.A.locals:undefined},56701:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ModelDB:()=>f,ObservableJSON:()=>d,ObservableList:()=>u,ObservableMap:()=>a,ObservableString:()=>c,ObservableUndoableList:()=>m,ObservableValue:()=>g});var i=n(5592);var s=n(90044);var o=n(2336);var r=n(42856);class a{constructor(e={}){this._map=new Map;this._changed=new o.Signal(this);this._isDisposed=false;this._itemCmp=e.itemCmp||l.itemCmp;if(e.values){for(const t in e.values){this._map.set(t,e.values[t])}}}get type(){return"Map"}get changed(){return this._changed}get isDisposed(){return this._isDisposed}get size(){return this._map.size}set(e,t){const n=this._map.get(e);if(t===undefined){throw Error("Cannot set an undefined value, use remove")}const i=this._itemCmp;if(n!==undefined&&i(n,t)){return n}this._map.set(e,t);this._changed.emit({type:n?"change":"add",key:e,oldValue:n,newValue:t});return n}get(e){return this._map.get(e)}has(e){return this._map.has(e)}keys(){const e=[];this._map.forEach(((t,n)=>{e.push(n)}));return e}values(){const e=[];this._map.forEach(((t,n)=>{e.push(t)}));return e}delete(e){const t=this._map.get(e);const n=this._map.delete(e);if(n){this._changed.emit({type:"remove",key:e,oldValue:t,newValue:undefined})}return t}clear(){const e=this.keys();for(let t=0;tt(n,e)));this.remove(n);return n}remove(e){const t=h.ArrayExt.removeAt(this._array,e);if(t===undefined){return}this._changed.emit({type:"remove",oldIndex:e,newIndex:-1,newValues:[],oldValues:[t]});return t}clear(){const e=this._array.slice();this._array.length=0;this._changed.emit({type:"remove",oldIndex:0,newIndex:0,newValues:[],oldValues:e})}move(e,t){if(this.length<=1||e===t){return}const n=[this._array[e]];h.ArrayExt.move(this._array,e,t);this._changed.emit({type:"move",oldIndex:e,newIndex:t,oldValues:n,newValues:n})}pushAll(e){const t=this.length;for(const n of e){this._array.push(n)}this._changed.emit({type:"add",oldIndex:-1,newIndex:t,oldValues:[],newValues:Array.from(e)});return this.length}insertAll(e,t){const n=e;for(const i of t){h.ArrayExt.insert(this._array,e++,i)}this._changed.emit({type:"add",oldIndex:-2,newIndex:n,oldValues:[],newValues:Array.from(t)})}removeRange(e,t){const n=this._array.slice(e,t);for(let i=e;i=0}beginCompoundOperation(e){this._inCompound=true;this._isUndoable=e!==false;this._madeCompoundChange=false}endCompoundOperation(){this._inCompound=false;this._isUndoable=true;if(this._madeCompoundChange){this._index++}}undo(){if(!this.canUndo){return}const e=this._stack[this._index];this._isUndoable=false;for(const t of e.reverse()){this._undoChange(t)}this._isUndoable=true;this._index--}redo(){if(!this.canRedo){return}this._index++;const e=this._stack[this._index];this._isUndoable=false;for(const t of e){this._redoChange(t)}this._isUndoable=true}clearUndo(){this._index=-1;this._stack=[]}_onListChanged(e,t){if(this.isDisposed||!this._isUndoable){return}if(!this._inCompound||!this._madeCompoundChange){this._stack=this._stack.slice(0,this._index+1)}const n=this._copyChange(t);if(this._stack[this._index+1]){this._stack[this._index+1].push(n)}else{this._stack.push([n])}if(!this._inCompound){this._index++}else{this._madeCompoundChange=true}}_undoChange(e){let t=0;const n=this._serializer;switch(e.type){case"add":for(let t=e.newValues.length;t>0;t--){this.remove(e.newIndex)}break;case"set":t=e.oldIndex;for(const i of e.oldValues){this.set(t++,n.fromJSON(i))}break;case"remove":t=e.oldIndex;for(const i of e.oldValues){this.insert(t++,n.fromJSON(i))}break;case"move":this.move(e.newIndex,e.oldIndex);break;default:return}}_redoChange(e){let t=0;const n=this._serializer;switch(e.type){case"add":t=e.newIndex;for(const i of e.newValues){this.insert(t++,n.fromJSON(i))}break;case"set":t=e.newIndex;for(const t of e.newValues){this.set(e.newIndex++,n.fromJSON(t))}break;case"remove":for(let t=e.oldValues.length;t>0;t--){this.remove(e.oldIndex)}break;case"move":this.move(e.oldIndex,e.newIndex);break;default:return}}_copyChange(e){const t=[];for(const i of e.oldValues){t.push(this._serializer.toJSON(i))}const n=[];for(const i of e.newValues){n.push(this._serializer.toJSON(i))}return{type:e.type,oldIndex:e.oldIndex,newIndex:e.newIndex,oldValues:t,newValues:n}}}(function(e){class t{toJSON(e){return e}fromJSON(e){return e}}e.IdentitySerializer=t})(m||(m={}));class g{constructor(e=null){this._value=null;this._changed=new o.Signal(this);this._isDisposed=false;this._value=e}get type(){return"Value"}get isDisposed(){return this._isDisposed}get changed(){return this._changed}get(){return this._value}set(e){const t=this._value;if(i.JSONExt.deepEqual(t,e)){return}this._value=e;this._changed.emit({oldValue:t,newValue:e})}dispose(){if(this._isDisposed){return}this._isDisposed=true;o.Signal.clearData(this);this._value=null}}(function(e){class t{}e.IChangedArgs=t})(g||(g={}));class f{constructor(e={}){this.isPrepopulated=false;this.isCollaborative=false;this.connected=Promise.resolve(void 0);this._toDispose=false;this._isDisposed=false;this._disposables=new s.DisposableSet;this._basePath=e.basePath||"";if(e.baseDB){this._db=e.baseDB}else{this._db=new a;this._toDispose=true}}get basePath(){return this._basePath}get isDisposed(){return this._isDisposed}get(e){return this._db.get(this._resolvePath(e))}has(e){return this._db.has(this._resolvePath(e))}createString(e){const t=new c;this._disposables.add(t);this.set(e,t);return t}createList(e){const t=new m(new m.IdentitySerializer);this._disposables.add(t);this.set(e,t);return t}createMap(e){const t=new d;this._disposables.add(t);this.set(e,t);return t}createValue(e){const t=new g;this._disposables.add(t);this.set(e,t);return t}getValue(e){const t=this.get(e);if(!t||t.type!=="Value"){throw Error("Can only call getValue for an ObservableValue")}return t.get()}setValue(e,t){const n=this.get(e);if(!n||n.type!=="Value"){throw Error("Can only call setValue on an ObservableValue")}n.set(t)}view(e){const t=new f({basePath:e,baseDB:this});this._disposables.add(t);return t}set(e,t){this._db.set(this._resolvePath(e),t)}dispose(){if(this.isDisposed){return}this._isDisposed=true;if(this._toDispose){this._db.dispose()}this._disposables.dispose()}_resolvePath(e){if(this._basePath){e=this._basePath+"."+e}return e}}},66990:(e,t,n)=>{"use strict";n.r(t);n.d(t,{OutputArea:()=>E,OutputAreaModel:()=>d,OutputPrompt:()=>M,SimplifiedOutputArea:()=>T,Stdin:()=>D});var i=n(68193);var s=n(44336);var o=n(44539);var r=n(34236);var a=n(5592);var l=n(2336);class d{constructor(e={}){this.clearNext=false;this._lastStreamName="";this._trusted=false;this._isDisposed=false;this._stateChanged=new l.Signal(this);this._changed=new l.Signal(this);this._streamIndex=0;this._trusted=!!e.trusted;this.contentFactory=e.contentFactory||d.defaultContentFactory;this.list=new s.ObservableList;if(e.values){for(const t of e.values){const e=this._add(t)-1;const n=this.list.get(e);n.changed.connect(this._onGenericChange,this)}}this.list.changed.connect(this._onListChanged,this)}get stateChanged(){return this._stateChanged}get changed(){return this._changed}get length(){return this.list?this.list.length:0}get trusted(){return this._trusted}set trusted(e){if(e===this._trusted){return}const t=this._trusted=e;for(let n=0;ne.toJSON())))}_add(e){const t=this._trusted;e=a.JSONExt.deepCopy(e);c.normalize(e);if(i.isStream(e)&&e.name===this._lastStreamName&&this.length>0&&this.shouldCombine({value:e,lastModel:this.list.get(this.length-1)})){const t=this.list.get(this.length-1);const n=t.streamText;const i=typeof e.text==="string"?e.text:e.text.join("");this._streamIndex=c.addText(this._streamIndex,n,i);return this.length}if(i.isStream(e)){if(typeof e.text!=="string"){e.text=e.text.join("")}const{text:t,index:n}=c.processText(0,e.text);this._streamIndex=n;e.text=t}const n=this._createItem({value:e,trusted:t});const s=this.list.push(n);if(i.isStream(e)){this._lastStreamName=e.name}else{this._lastStreamName=""}return s}shouldCombine(e){return true}_createItem(e){const t=this.contentFactory;const n=t.createOutputModel(e);return n}_onListChanged(e,t){switch(t.type){case"add":t.newValues.forEach((e=>{e.changed.connect(this._onGenericChange,this)}));break;case"remove":t.oldValues.forEach((e=>{e.changed.disconnect(this._onGenericChange,this)}));break;case"set":t.newValues.forEach((e=>{e.changed.connect(this._onGenericChange,this)}));t.oldValues.forEach((e=>{e.changed.disconnect(this._onGenericChange,this)}));break}this._changed.emit(t)}_onGenericChange(e){let t;let n=null;for(t=0;t=0?i+n:i}function s(e,t,i){if(i===undefined){i=""}if(!(t.includes("\b")||t.includes("\r")||t.includes("\n"))){i=i.slice(0,e)+t+i.slice(e+t.length);return{text:i,index:e+t.length}}let s=e;let o=-1;let r=0;const a=/[\n\b\r]/;while(true){o=n(t,a,r);const e=t.slice(r,o===-1?t.length:o);i=i.slice(0,s)+e+i.slice(s+e.length);r=o+1;s+=e.length;if(o===-1){break}const l=t[o];if(l==="\b"){if(s>0&&i[s-1]!=="\n"){i=i.slice(0,s-1)+i.slice(s+1);s--}}else if(l==="\r"){let e=false;while(!e){if(s===0){e=true}else if(i[s-1]==="\n"){e=true}else{s--}}}else if(l==="\n"){i=i+"\n";s=i.length}else{throw Error(`This should not happen`)}}return{text:i,index:s}}e.processText=s;function o(e,t,n){const{text:i,index:o}=s(e,n,t.text);let r=false;let a=0;while(!r){if(a===i.length){if(a===t.text.length){r=true}else{t.remove(a,t.text.length);r=true}}else if(a===t.text.length){if(a!==i.length){t.insert(t.text.length,i.slice(a));r=true}}else if(i[a]!==t.text[a]){t.remove(a,t.text.length);t.insert(a,i.slice(a));r=true}else{a++}}return o}e.addText=o})(c||(c={}));var h=n(14366);var u=n(28548);var p=n(30619);var m=n(94466);var g=n(1143);const f="jp-OutputArea";const v="jp-OutputArea-child";const _="jp-OutputArea-output";const b="jp-OutputArea-prompt";const y="jp-OutputArea-stdin-hiding";const w="jp-OutputPrompt";const C="jp-OutputArea-executeResult";const x="jp-OutputArea-stdin-item";const S="jp-Stdin";const k="jp-Stdin-prompt";const j="jp-Stdin-input";const I="jp-OutputArea-promptOverlay";class E extends g.Widget{constructor(e){var t,n,i,s,o;super();this.outputLengthChanged=new l.Signal(this);this._onIOPub=e=>{const t=this.model;const n=e.header.msg_type;let i;const s=e.content.transient||{};const o=s["display_id"];let r;switch(n){case"execute_result":case"display_data":case"stream":case"error":i={...e.content,output_type:n};t.add(i);break;case"clear_output":{const n=e.content.wait;t.clear(n);break}case"update_display_data":i={...e.content,output_type:"display_data"};r=this._displayIdMap.get(o);if(r){for(const e of r){t.set(e,i)}}break;case"status":{const t=e.content.execution_state;if(t==="idle"){this._pendingInput=false}break}default:break}if(o&&n==="display_data"){r=this._displayIdMap.get(o)||[];r.push(t.length-1);this._displayIdMap.set(o,r)}};this._onExecuteReply=e=>{const t=this.model;const n=e.content;if(n.status!=="ok"){return}const i=n&&n.payload;if(!i||!i.length){return}const s=i.filter((e=>e.source==="page"));if(!s.length){return}const o=JSON.parse(JSON.stringify(s[0]));const r={output_type:"display_data",data:o.data,metadata:{}};t.add(r)};this._displayIdMap=new Map;this._minHeightTimeout=null;this._inputRequested=new l.Signal(this);this._toggleScrolling=new l.Signal(this);this._initialize=new l.Signal(this);this._outputTracker=new h.WidgetTracker({namespace:a.UUID.uuid4()});this._inputHistoryScope="global";this._pendingInput=false;this._showInputPlaceholder=true;super.layout=new g.PanelLayout;this.addClass(f);this.contentFactory=(t=e.contentFactory)!==null&&t!==void 0?t:E.defaultContentFactory;this.rendermime=e.rendermime;this._maxNumberOutputs=(n=e.maxNumberOutputs)!==null&&n!==void 0?n:Infinity;this._translator=(i=e.translator)!==null&&i!==void 0?i:p.nullTranslator;this._inputHistoryScope=(s=e.inputHistoryScope)!==null&&s!==void 0?s:"global";this._showInputPlaceholder=(o=e.showInputPlaceholder)!==null&&o!==void 0?o:true;const r=this.model=e.model;for(let a=0;a{this._setOutput(a,e)}))}}r.changed.connect(this.onModelChanged,this);r.stateChanged.connect(this.onStateChanged,this);if(e.promptOverlay){this._addPromptOverlay()}}get layout(){return super.layout}get widgets(){return this.layout.widgets}get future(){return this._future}set future(e){if(this.model.isDisposed){throw Error("Model is disposed")}if(this._future===e){return}if(this._future){this._future.dispose()}this._future=e;e.done.finally((()=>{this._pendingInput=false})).catch((()=>{}));this.model.clear();if(this.widgets.length){this._clear();this.outputLengthChanged.emit(Math.min(this.model.length,this._maxNumberOutputs))}e.onIOPub=this._onIOPub;e.onReply=this._onExecuteReply;e.onStdin=t=>{if(u.KernelMessage.isInputRequestMsg(t)){this.onInputRequest(t,e)}}}get inputRequested(){return this._inputRequested}get pendingInput(){return this._pendingInput}get maxNumberOutputs(){return this._maxNumberOutputs}set maxNumberOutputs(e){if(e<=0){console.warn(`OutputArea.maxNumberOutputs must be strictly positive.`);return}const t=this._maxNumberOutputs;this._maxNumberOutputs=e;if(t{this._setOutput(t.newIndex,e)}))}break;case"remove":if(this.widgets.length){if(this.model.length===0){this._clear()}else{const e=t.oldIndex;for(let n=0;n{this._toggleScrolling.emit()}));this.node.appendChild(e);requestAnimationFrame((()=>{this._initialize.emit()}))}_moveDisplayIdIndices(e,t){this._displayIdMap.forEach((n=>{const i=e+t;const s=n.length;for(let o=s-1;o>=0;--o){const s=n[o];if(s>=e&&s=i){n[o]-=t}}}))}onStateChanged(e,t){const n=Math.min(this.model.length,this._maxNumberOutputs);if(t){if(t>=this._maxNumberOutputs){return}this._setOutput(t,this.model.get(t))}else{for(let e=0;e{if(this.isDisposed){return}this.node.style.minHeight=""}),50)}onInputRequest(e,t){const n=this.contentFactory;const i=e.content.prompt;const s=e.content.password;const o=new g.Panel;o.addClass(v);o.addClass(x);const r=n.createOutputPrompt();r.addClass(b);o.addWidget(r);this._pendingInput=true;const a=n.createStdin({parent_header:e.header,prompt:i,password:s,future:t,translator:this._translator,inputHistoryScope:this._inputHistoryScope,showInputPlaceholder:this._showInputPlaceholder});a.addClass(_);o.addWidget(a);if(this.model.length>=this.maxNumberOutputs){this.maxNumberOutputs=this.model.length}this._inputRequested.emit(a);const l=a.node.getElementsByTagName("input")[0];void a.value.then((e=>{if(this.model.length>=this.maxNumberOutputs){this.maxNumberOutputs=this.model.length+1}o.addClass(y);this.model.add({output_type:"stream",name:"stdin",text:e+"\n"});l.focus();this._pendingInput=false;window.setTimeout((()=>{const e=document.activeElement;o.dispose();if(e&&e instanceof HTMLElement){e.focus()}}),500)}));this.layout.addWidget(o)}_setOutput(e,t){if(e>=this._maxNumberOutputs){return}const n=this.layout.widgets[e];const i=n.widgets?n.widgets.filter((e=>"renderModel"in e)).pop():n;const s=this.rendermime.preferredMimeType(t.data,t.trusted?"any":"ensure");if(A.currentPreferredMimetype.get(i)===s&&E.isIsolated(s,t.metadata)===i instanceof A.IsolatedRenderer){void i.renderModel(t)}else{this.layout.widgets[e].dispose();this._insertOutput(e,t)}}_insertOutput(e,t){if(e>this._maxNumberOutputs){return}const n=this.layout;if(e===this._maxNumberOutputs){const t=new A.TrimmedOutputs(this._maxNumberOutputs,(()=>{const e=this._maxNumberOutputs;this._maxNumberOutputs=Infinity;this._showTrimmedOutputs(e)}));n.insertWidget(e,this._wrappedOutput(t))}else{let i=this.createOutputItem(t);if(i){i.toggleClass(C,t.executionCount!==null)}else{i=new g.Widget}if(!this._outputTracker.has(i)){void this._outputTracker.add(i)}n.insertWidget(e,i)}}get outputTracker(){return this._outputTracker}_showTrimmedOutputs(e){this.widgets[e].dispose();for(let t=e;t{const t=document.createElement("pre");const i=this._translator.load("jupyterlab");t.textContent=i.__("Javascript Error: %1",e.message);n.node.appendChild(t);n.node.className="lm-Widget jp-RenderedText";n.node.setAttribute("data-mime-type","application/vnd.jupyter.stderr")}));return n}_wrappedOutput(e,t=null){const n=new A.OutputPanel;n.addClass(v);const i=this.contentFactory.createOutputPrompt();i.executionCount=t;i.addClass(b);n.addWidget(i);e.addClass(_);n.addWidget(e);return n}}class T extends E{onInputRequest(e,t){return}createOutputItem(e){const t=this.createRenderedMimetype(e);if(!t){return null}const n=new A.OutputPanel;n.addClass(v);t.addClass(_);n.addWidget(t);return n}}(function(e){async function t(e,t,n,i){var s;let o=true;if(i&&Array.isArray(i.tags)&&i.tags.indexOf("raises-exception")!==-1){o=false}const r={code:e,stop_on_error:o};const a=(s=n.session)===null||s===void 0?void 0:s.kernel;if(!a){throw new Error("Session has no kernel.")}const l=a.requestExecute(r,false,i);t.future=l;return l.done}e.execute=t;function n(e,t){const n=t[e];if(n&&n["isolated"]!==undefined){return!!n["isolated"]}else{return!!t["isolated"]}}e.isIsolated=n;class i{createOutputPrompt(){return new M}createStdin(e){return new D(e)}}e.ContentFactory=i;e.defaultContentFactory=new i})(E||(E={}));class M extends g.Widget{constructor(){super();this._executionCount=null;this.addClass(w)}get executionCount(){return this._executionCount}set executionCount(e){this._executionCount=e;if(e===null){this.node.textContent=""}else{this.node.textContent=`[${e}]:`}}}class D extends g.Widget{static _historyIx(e,t){const n=D._history.get(e);if(!n){return undefined}const i=n.length;if(t<=0){return i+t}}static _historyAt(e,t){const n=D._history.get(e);if(!n){return undefined}const i=n.length;const s=D._historyIx(e,t);if(s!==undefined&&s1e3){n.shift()}}static _historySearch(e,t,n,i=true){const s=D._history.get(e);const o=s.length;const r=D._historyIx(e,n);const a=e=>e.search(t)!==-1;if(r===undefined){return}if(i){if(r===0){return}const e=s.slice(0,r).findLastIndex(a);if(e!==-1){return e-o}}else{if(r>=o-1){return}const e=s.slice(r+1).findIndex(a);if(e!==-1){return e-o+r+1}}}constructor(e){var t;super({node:A.createInputWidgetNode(e.prompt,e.password)});this._promise=new a.PromiseDelegate;this._resolved=false;this.addClass(S);this._future=e.future;this._historyIndex=0;this._historyKey=e.inputHistoryScope==="session"?e.parent_header.session:"";this._historyPat="";this._parentHeader=e.parent_header;this._password=e.password;this._trans=((t=e.translator)!==null&&t!==void 0?t:p.nullTranslator).load("jupyterlab");this._value=e.prompt+" ";this._input=this.node.getElementsByTagName("input")[0];if(e.showInputPlaceholder&&!this._password){this._input.placeholder=this._trans.__("↑↓ for history. Search history with c-↑/c-↓")}else{this._input.placeholder=""}if(!D._history.has(this._historyKey)){D._history.set(this._historyKey,[])}}get value(){return this._promise.promise.then((()=>this._value))}handleEvent(e){if(this._resolved){e.preventDefault();return}const t=this._input;if(e.type==="keydown"){if(e.key==="Enter"){this.resetSearch();this._future.sendInputReply({status:"ok",value:t.value},this._parentHeader);if(this._password){this._value+="········"}else{this._value+=t.value;D._historyPush(this._historyKey,t.value)}this._resolved=true;this._promise.resolve(void 0)}else if(e.key==="Escape"){this.resetSearch();t.blur()}else if(e.ctrlKey&&(e.key==="ArrowUp"||e.key==="ArrowDown")){if(this._historyPat===""){this._historyPat=t.value}const n=e.key==="ArrowUp";const i=D._historySearch(this._historyKey,this._historyPat,this._historyIndex,n);if(i!==undefined){const n=D._historyAt(this._historyKey,i);if(n!==undefined){if(this._historyIndex===0){this._valueCache=t.value}this._setInputValue(n);this._historyIndex=i;e.preventDefault()}}}else if(e.key==="ArrowUp"){this.resetSearch();const n=D._historyAt(this._historyKey,this._historyIndex-1);if(n){if(this._historyIndex===0){this._valueCache=t.value}this._setInputValue(n);--this._historyIndex;e.preventDefault()}}else if(e.key==="ArrowDown"){this.resetSearch();if(this._historyIndex===0){}else if(this._historyIndex===-1){this._setInputValue(this._valueCache);++this._historyIndex}else{const e=D._historyAt(this._historyKey,this._historyIndex+1);if(e){this._setInputValue(e);++this._historyIndex}}}}}resetSearch(){this._historyPat=""}onAfterAttach(e){this._input.addEventListener("keydown",this);this._input.focus()}onBeforeDetach(e){this._input.removeEventListener("keydown",this)}_setInputValue(e){this._input.value=e;this._input.setSelectionRange(e.length,e.length)}}D._history=new Map;var A;(function(e){function t(e,t){const n=document.createElement("div");const i=document.createElement("pre");i.className=k;i.textContent=e;const s=document.createElement("input");s.className=j;if(t){s.type="password"}n.appendChild(i);i.appendChild(s);return n}e.createInputWidgetNode=t;class n extends g.Widget{constructor(e){super({node:document.createElement("iframe")});this.addClass("jp-mod-isolated");this._wrapped=e;const t=this.node;t.frameBorder="0";t.scrolling="auto";t.addEventListener("load",(()=>{t.contentDocument.open();t.contentDocument.write(this._wrapped.node.innerHTML);t.contentDocument.close();const e=t.contentDocument.body;t.style.height=`${e.scrollHeight}px`;t.heightChangeObserver=new ResizeObserver((()=>{t.style.height=`${e.scrollHeight}px`}));t.heightChangeObserver.observe(e)}))}renderModel(e){return this._wrapped.renderModel(e)}}e.IsolatedRenderer=n;e.currentPreferredMimetype=new m.AttachedProperty({name:"preferredMimetype",create:e=>""});class i extends g.Panel{constructor(e){super(e)}_onContext(e){this.node.focus()}onAfterAttach(e){super.onAfterAttach(e);this.node.addEventListener("contextmenu",this._onContext.bind(this))}onBeforeDetach(e){super.onAfterDetach(e);this.node.removeEventListener("contextmenu",this._onContext.bind(this))}}e.OutputPanel=i;class s extends g.Widget{constructor(e,t){const n=document.createElement("div");const i=`The first ${e} are displayed`;const s="Show more outputs";n.insertAdjacentHTML("afterbegin",`\n
${s}
\n
`);super({node:n});this._onClick=t;this.addClass("jp-TrimmedOutputs");this.addClass("jp-RenderedHTMLCommon")}handleEvent(e){if(e.type==="click"){this._onClick(e)}}onAfterAttach(e){super.onAfterAttach(e);this.node.addEventListener("click",this)}onBeforeDetach(e){super.onBeforeDetach(e);this.node.removeEventListener("click",this)}}e.TrimmedOutputs=s})(A||(A={}))},1649:(e,t,n)=>{"use strict";var i=n(10395);var s=n(97913);var o=n(5893);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(5526);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},93034:(e,t,n)=>{"use strict";n.r(t);n.d(t,{RenderedPDF:()=>c,default:()=>p,rendererFactory:()=>h});var i=n(5592);var s=n.n(i);var o=n(90044);var r=n.n(o);var a=n(1143);var l=n.n(a);const d="application/pdf";class c extends a.Widget{constructor(){super();this._base64="";this._disposable=null;this._ready=new i.PromiseDelegate;this.addClass("jp-PDFContainer");const e=document.createElement("iframe");e.setAttribute("loading","lazy");this.node.appendChild(e);e.onload=()=>{const t=e.contentWindow.document.createElement("body");t.style.margin="0px";e.contentWindow.document.body=t;this._object=e.contentWindow.document.createElement("object");if(!window.safari){this._object.type=d}this._object.width="100%";this._object.height="100%";t.appendChild(this._object);this._ready.resolve(void 0)}}async renderModel(e){await this._ready.promise;const t=e.data[d];if(!t||t.length===this._base64.length&&t===this._base64){if(e.metadata.fragment&&this._object.data){const t=this._object.data;this._object.data=`${t.split("#")[0]}${e.metadata.fragment}`}if(m.IS_FIREFOX){this._object.data=this._object.data}return Promise.resolve(void 0)}this._base64=t;const n=m.b64toBlob(t,d);if(this._disposable){this._disposable.dispose()}let i=URL.createObjectURL(n);if(e.metadata.fragment){i+=e.metadata.fragment}this._object.data=i;this._disposable=new o.DisposableDelegate((()=>{try{URL.revokeObjectURL(i)}catch(e){}}));return}onBeforeHide(){if(m.IS_FIREFOX){this._object.data=this._object.data.split("#")[0]}}dispose(){if(this._disposable){this._disposable.dispose()}super.dispose()}}const h={safe:false,mimeTypes:[d],defaultRank:100,createRenderer:e=>new c};const u=[{id:"@jupyterlab/pdf-extension:factory",description:"Adds renderer for PDF content.",rendererFactory:h,dataType:"string",documentWidgetFactoryOptions:{name:"PDF",modelName:"base64",primaryFileType:"PDF",fileTypes:["PDF"],defaultFor:["PDF"]}}];const p=u;var m;(function(e){e.IS_FIREFOX=/Firefox/.test(navigator.userAgent);function t(e,t="",n=512){const i=atob(e);const s=[];for(let o=0;o{"use strict";var i=n(10395);var s=n(85072);var o=n.n(s);var r=n(97825);var a=n.n(r);var l=n(77659);var d=n.n(l);var c=n(55056);var h=n.n(c);var u=n(10540);var p=n.n(u);var m=n(41113);var g=n.n(m);var f=n(44486);var v={};v.styleTagTransform=g();v.setAttributes=h();v.insert=d().bind(null,"head");v.domAPI=a();v.insertStyleElement=p();var _=o()(f.A,v);const b=f.A&&f.A.locals?f.A.locals:undefined},49870:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>v});var i=n(94307);var s=n.n(i);var o=n(14366);var r=n.n(o);var a=n(30619);var l=n.n(a);var d=n(26331);var c=n.n(d);var h=n(60075);var u=n.n(h);var p;(function(e){e.open="pluginmanager:open";e.refreshPlugins="pluginmanager:refresh"})(p||(p={}));const m="@jupyterlab/pluginmanager-extension:plugin";const g={id:m,description:"Enable or disable individual plugins.",autoStart:true,requires:[i.JupyterLab.IInfo],optional:[a.ITranslator,o.ICommandPalette,i.ILayoutRestorer],provides:h.IPluginManager,activate:(e,t,n,i,s)=>{const{commands:r,shell:l}=e;n=n!==null&&n!==void 0?n:a.nullTranslator;const c=n.load("jupyterlab");const u=c.__("Plugin Manager");const g=c.__("Advanced Plugin Manager");const f=c.__("Refresh Plugin List");const v="plugin-manager";const _=new o.WidgetTracker({namespace:v});function b(i){const s=new h.PluginListModel({...i,pluginData:{availablePlugins:t.availablePlugins},serverSettings:e.serviceManager.serverSettings,extraLockedPlugins:[m,"@jupyterlab/services-extension:service-manager","@jupyterlab/application-extension:layout","@jupyterlab/apputils-extension:resolver"],translator:n!==null&&n!==void 0?n:a.nullTranslator});const l=new h.Plugins({model:s,translator:n!==null&&n!==void 0?n:a.nullTranslator});l.title.label=g;l.title.icon=d.extensionIcon;l.title.caption=c.__("Plugin Manager");const u=new o.MainAreaWidget({content:l,reveal:s.ready});u.toolbar.addItem("refresh-plugins",new d.CommandToolbarButton({id:p.refreshPlugins,args:{noLabel:true},commands:r}));return u}r.addCommand(p.open,{label:g,execute:e=>{const t=b(e);l.add(t,"main",{type:"Plugins"});void _.add(t);t.content.model.trackerDataChanged.connect((()=>{void _.save(t)}));return t}});r.addCommand(p.refreshPlugins,{label:e=>e.noLabel?"":f,caption:c.__("Refresh plugins list"),icon:d.refreshIcon,execute:async()=>{var e;return(e=_.currentWidget)===null||e===void 0?void 0:e.content.model.refresh().catch((e=>{console.error(`Failed to refresh the available plugins list:\n${e}`)}))}});if(i){i.addItem({command:p.open,category:u})}if(s){void s.restore(_,{command:p.open,name:e=>"plugins",args:e=>{const{query:t,isDisclaimed:n}=e.content.model;const i={query:t,isDisclaimed:n};return i}})}return{open:()=>e.commands.execute(p.open)}}};const f=[g];const v=f},57292:(e,t,n)=>{"use strict";var i=n(40662);var s=n(97913);var o=n(3579);var r=n(14383)},13125:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IPluginManager:()=>w,PluginListModel:()=>m,Plugins:()=>f});var i=n(14366);var s=n(30397);var o=n(28548);var r=n(26331);var a=n(2336);var l=n(5592);var d=n(30619);var c=n(44914);function h(e){return c.createElement(c.Fragment,null,e.trans.__('The plugin "%1" cannot be disabled as it is required by other plugins:',e.plugin.id),c.createElement("ul",null,e.dependants.map((e=>c.createElement("li",{key:"dependantsDialog-"+e.id},e.id)))),e.trans.__("Please disable the dependent plugins first."))}function u(e){return c.createElement("div",{className:"jp-pluginmanager-PluginInUseMessage"},e.trans.__('While the plugin "%1" is not required by other enabled plugins, some plugins provide optional features depending on it. These plugins are:',e.plugin.id),c.createElement("ul",null,e.optionalDependants.map((e=>c.createElement("li",{key:"optionalDependantsDialog-"+e.id},e.id)))),e.trans.__("Do you want to disable it anyway?"))}const p="lab/api/plugins";class m extends r.VDomModel{constructor(e){var t,n,i;super();this.statusError=null;this.actionError=null;this._trackerDataChanged=new a.Signal(this);this._isLoading=false;this._pendingActions=[];this._ready=new l.PromiseDelegate;this._pluginData=e.pluginData;this._serverSettings=e.serverSettings||o.ServerConnection.makeSettings();this._query=e.query||"";this._isDisclaimed=(t=e.isDisclaimed)!==null&&t!==void 0?t:false;this._extraLockedPlugins=(n=e.extraLockedPlugins)!==null&&n!==void 0?n:[];this.refresh().then((()=>this._ready.resolve())).catch((e=>this._ready.reject(e)));this._trans=((i=e.translator)!==null&&i!==void 0?i:d.nullTranslator).load("jupyterlab")}get available(){return[...this._available.values()]}get isLoading(){return this._isLoading}get isDisclaimed(){return this._isDisclaimed}set isDisclaimed(e){if(e!==this._isDisclaimed){this._isDisclaimed=e;this.stateChanged.emit();this._trackerDataChanged.emit(void 0)}}get query(){return this._query}set query(e){if(this._query!==e){this._query=e;this.stateChanged.emit();this._trackerDataChanged.emit(void 0)}}get trackerDataChanged(){return this._trackerDataChanged}get ready(){return this._ready.promise}async enable(e){if(!this.isDisclaimed){throw new Error("User has not confirmed the disclaimer")}await this._performAction("enable",e);e.enabled=true}async disable(e){if(!this.isDisclaimed){throw new Error("User has not confirmed the disclaimer")}const{dependants:t,optionalDependants:n}=this.getDependants(e);if(t.length>0){void(0,i.showDialog)({title:this._trans.__("This plugin is required by other plugins"),body:h({plugin:e,dependants:t,trans:this._trans}),buttons:[i.Dialog.okButton()]});return}if(n.length>0){const t=await(0,i.showDialog)({title:this._trans.__("This plugin is used by other plugins"),body:u({plugin:e,optionalDependants:n,trans:this._trans}),buttons:[i.Dialog.okButton({label:this._trans.__("Disable anyway")}),i.Dialog.cancelButton()]});if(!t.button.accept){return}}await this._performAction("disable",e);if(this.actionError){return}e.enabled=false}getDependants(e){const t=[];const n=[];if(e.provides){const i=e.provides.name;for(const e of this._available.values()){if(!e.enabled){continue}if(e.requires.filter((e=>!!e)).some((e=>e.name===i))){t.push(e)}if(e.optional.filter((e=>!!e)).some((e=>e.name===i))){n.push(e)}}}return{dependants:t,optionalDependants:n}}hasPendingActions(){return this._pendingActions.length>0}_performAction(e,t){this.actionError=null;const n=this._requestAPI({},{method:"POST",body:JSON.stringify({cmd:e,plugin_name:t.id})});n.catch((e=>{this.actionError=e.toString()}));this._addPendingAction(n);return n}_addPendingAction(e){this._pendingActions.push(e);const t=()=>{const t=this._pendingActions.indexOf(e);this._pendingActions.splice(t,1);this.stateChanged.emit(undefined)};e.then(t,t);this.stateChanged.emit(undefined)}async refresh(){var e;this.statusError=null;this._isLoading=true;this.stateChanged.emit();try{const t={allLocked:true,lockRules:[]};const n=(e=await this._requestAPI())!==null&&e!==void 0?e:t;this._available=new Map(this._pluginData.availablePlugins.map((e=>{let t=e.provides?e.provides.name.split(":")[1]:undefined;if(e.provides&&!t){t=e.provides.name}return[e.id,{...e,locked:this._isLocked(e.id,n),tokenLabel:t}]})))}catch(t){this.statusError=t.toString()}finally{this._isLoading=false;this.stateChanged.emit()}}_isLocked(e,t){if(t.allLocked){return true}if(this._extraLockedPlugins.includes(e)){return true}const n=e.split(":")[0];if(t.lockRules.includes(n)){return true}if(t.lockRules.includes(e)){return true}return false}async _requestAPI(e={},t={}){const n=this._serverSettings;const i=s.URLExt.join(n.baseUrl,p);let r;try{r=await o.ServerConnection.makeRequest(i+s.URLExt.objectToQueryString(e),t,n)}catch(l){throw new o.ServerConnection.NetworkError(l)}let a=await r.text();if(a.length>0){try{a=JSON.parse(a)}catch(l){console.log("Not a JSON response body.",r)}}if(!r.ok){throw new o.ServerConnection.ResponseError(r,a.message||a)}return a}}var g=n(1143);class f extends g.Panel{constructor(e){const{model:t,translator:n}=e;super();this.model=t;this.addClass("jp-pluginmanager");this.trans=n.load("jupyterlab");this.addWidget(new _(t,this.trans));const i=new b(t,this.trans);this.addWidget(i);const s=new v(t,this.trans);this.addWidget(s)}}class v extends i.VDomRenderer{constructor(e,t){super(e);this.trans=t;this.addClass("jp-pluginmanager-AvailableList")}render(){return c.createElement(c.Fragment,null,this.model.statusError!==null?c.createElement(y,null,this.trans.__("Error querying installed extensions%1",this.model.statusError?`: ${this.model.statusError}`:".")):this.model.isLoading?c.createElement("div",{className:"jp-pluginmanager-loader"},this.trans.__("Updating plugin list…")):c.createElement(r.Table,{blankIndicator:()=>c.createElement("div",null,this.trans.__("No entries")),sortKey:"plugin-id",rows:this.model.available.filter((e=>{const t=new RegExp(this.model.query,"i");return t.test(e.id)||t.test(e.extension)||e.tokenLabel&&t.test(e.tokenLabel)})).map((e=>({data:e,key:e.id}))),columns:[{id:"plugin-id",label:this.trans.__("Plugin"),renderCell:e=>c.createElement(c.Fragment,null,c.createElement("code",null,e.id),c.createElement("br",null),e.description),sort:(e,t)=>e.id.localeCompare(t.id)},{id:"description",label:this.trans.__("Description"),renderCell:e=>c.createElement(c.Fragment,null,e.description),sort:(e,t)=>e.description&&t.description?e.description.localeCompare(t.description):undefined,isHidden:true},{id:"autostart",label:this.trans.__("Autostart?"),renderCell:e=>{switch(e.autoStart){case"defer":return this.trans.__("Defer");case true:return this.trans.__("Yes");case false:case undefined:return this.trans.__("No");default:const t=e.autoStart;throw new Error(`Unknown value: ${t}`)}},sort:(e,t)=>e.autoStart===t.autoStart?0:e.autoStart?-1:1},{id:"requires",label:this.trans.__("Depends on"),renderCell:e=>c.createElement(c.Fragment,null,e.requires.map((e=>e.name)).join("\n")),sort:(e,t)=>(e.requires||[]).length-(t.requires||[]).length,isHidden:true},{id:"extension",label:this.trans.__("Extension"),renderCell:e=>c.createElement(c.Fragment,null,e.extension),sort:(e,t)=>e.extension.localeCompare(t.extension)},{id:"provides",label:this.trans.__("Provides"),renderCell:e=>c.createElement(c.Fragment,null,e.provides?c.createElement("code",{title:e.provides.name},e.tokenLabel):"-"),sort:(e,t)=>(e.tokenLabel||"").localeCompare(t.tokenLabel||"")},{id:"enabled",label:this.trans.__("Enabled"),renderCell:e=>c.createElement(c.Fragment,null,c.createElement("input",{type:"checkbox",checked:e.enabled,disabled:e.locked||!this.model.isDisclaimed,title:e.locked||!this.model.isDisclaimed?e.locked?this.trans.__("This plugin is locked."):this.trans.__("To enable/disable, please acknowledge the disclaimer."):e.enabled?this.trans.__("Disable %1 plugin",e.id):this.trans.__("Enable %1 plugin",e.id),onChange:t=>{if(!this.model.isDisclaimed){return}if(t.target.checked){void this.onAction("enable",e)}else{void this.onAction("disable",e)}}}),e.locked?c.createElement(r.lockIcon.react,{tag:"span",title:this.trans.__("This plugin was locked by system administrator or is a critical dependency and cannot be enabled/disabled.")}):""),sort:(e,t)=>+e.enabled-+t.enabled}]}))}onAction(e,t){switch(e){case"enable":return this.model.enable(t);case"disable":return this.model.disable(t);default:throw new Error(`Invalid action: ${e}`)}}}class _ extends i.VDomRenderer{constructor(e,t){super(e);this.trans=t;this.addClass("jp-pluginmanager-Disclaimer")}render(){return c.createElement("div",null,c.createElement("div",null,this.trans.__("Customise your experience/improve performance by disabling plugins you do not need. To disable or uninstall an entire extension use the Extension Manager instead. Changes will apply after reloading JupyterLab.")),c.createElement("label",null,c.createElement("input",{type:"checkbox",className:"jp-mod-styled jp-pluginmanager-Disclaimer-checkbox",defaultChecked:this.model.isDisclaimed,onChange:e=>{this.model.isDisclaimed=e.target.checked}}),this.trans.__("I understand that disabling core application plugins may render features and parts of the user interface unavailable and recovery using `jupyter labextension enable ` command may be required")))}}class b extends i.VDomRenderer{constructor(e,t){super(e);this.trans=t;this.addClass("jp-pluginmanager-Header")}render(){return c.createElement(c.Fragment,null,c.createElement(r.FilterBox,{placeholder:this.trans.__("Filter"),updateFilter:(e,t)=>{this.model.query=t!==null&&t!==void 0?t:""},initialQuery:this.model.query,useFuzzyFilter:false}),c.createElement("div",{className:`jp-pluginmanager-pending ${this.model.hasPendingActions()?"jp-mod-hasPending":""}`}),this.model.actionError&&c.createElement(y,null,c.createElement("p",null,this.trans.__("Error when performing an action.")),c.createElement("p",null,this.trans.__("Reason given:")),c.createElement("pre",null,this.model.actionError)))}}function y(e){return c.createElement("div",{className:"jp-pluginmanager-error"},e.children)}const w=new l.Token("@jupyterlab/pluginmanager:IPluginManager",`A canary for plugin manager presence, with a method to open the plugin manager widget.`)},14383:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(3579);var a=n(85072);var l=n.n(a);var d=n(97825);var c=n.n(d);var h=n(77659);var u=n.n(h);var p=n(55056);var m=n.n(p);var g=n(10540);var f=n.n(g);var v=n(41113);var _=n.n(v);var b=n(37442);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.A,y);const C=b.A&&b.A.locals?b.A.locals:undefined},87221:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IPropertyInspectorProvider:()=>l,SideBarPropertyInspectorProvider:()=>c});var i=n(30619);var s=n(26331);var o=n(2336);var r=n(1143);var a=n(5592);const l=new a.Token("@jupyterlab/property-inspector:IPropertyInspectorProvider","A service to register new widgets in the property inspector side panel.");class d extends r.Widget{constructor(){super();this._tracker=new r.FocusTracker;this._inspectors=new Map;this.addClass("jp-PropertyInspector");this._tracker=new r.FocusTracker;this._tracker.currentChanged.connect(this._onCurrentChanged,this)}register(e){if(this._inspectors.has(e)){throw new Error("Widget is already registered")}const t=new h.PropertyInspector(e);e.disposed.connect(this._onWidgetDisposed,this);this._inspectors.set(e,t);t.onAction.connect(this._onInspectorAction,this);this._tracker.add(e);return t}get currentWidget(){return this._tracker.currentWidget}refresh(){const e=this._tracker.currentWidget;if(!e){this.setContent(null);return}const t=this._inspectors.get(e);if(t){this.setContent(t.content)}}_onWidgetDisposed(e){const t=this._inspectors.get(e);if(t){t.dispose();this._inspectors.delete(e)}}_onInspectorAction(e,t){const n=e.owner;const i=this._tracker.currentWidget;switch(t){case"content":if(i===n){this.setContent(e.content)}break;case"dispose":if(n){this._tracker.remove(n);this._inspectors.delete(n)}break;case"show-panel":if(i===n){this.showPanel()}break;default:throw new Error("Unsupported inspector action")}}_onCurrentChanged(){const e=this._tracker.currentWidget;if(e){const t=this._inspectors.get(e);const n=t.content;this.setContent(n)}else{this.setContent(null)}}}class c extends d{constructor({shell:e,placeholder:t,translator:n}){super();this._labshell=e;this.translator=n||i.nullTranslator;this._trans=this.translator.load("jupyterlab");const s=this.layout=new r.SingletonLayout;if(t){this._placeholder=t}else{const e=document.createElement("div");const t=document.createElement("div");const n=document.createElement("h3");const i=document.createElement("p");n.textContent=this._trans.__("No Properties");i.textContent=this._trans.__("The property inspector allows to view and edit properties of a selected notebook.");t.className="jp-PropertyInspector-placeholderContent";t.appendChild(n);t.appendChild(i);e.appendChild(t);this._placeholder=new r.Widget({node:e});this._placeholder.addClass("jp-PropertyInspector-placeholder")}s.widget=this._placeholder;this._labshell.currentChanged.connect(this._onShellCurrentChanged,this);this._onShellCurrentChanged()}setContent(e){const t=this.layout;if(t.widget){t.widget.removeClass("jp-PropertyInspector-content");t.removeWidget(t.widget)}if(!e){e=this._placeholder}e.addClass("jp-PropertyInspector-content");t.widget=e}showPanel(){this._labshell.activateById(this.id)}_onShellCurrentChanged(){const e=this.currentWidget;if(!e){this.setContent(null);return}const t=this._labshell.currentWidget;if(t===null||t===void 0?void 0:t.node.contains(e.node)){this.refresh()}else{this.setContent(null)}}}var h;(function(e){class t{constructor(e){this._isDisposed=false;this._content=null;this._owner=null;this._onAction=new o.Signal(this);this._owner=e}get owner(){return this._owner}get content(){return this._content}get isDisposed(){return this._isDisposed}get onAction(){return this._onAction}showPanel(){if(this._isDisposed){return}this._onAction.emit("show-panel")}render(e){if(this._isDisposed){return}if(e instanceof r.Widget){this._content=e}else{this._content=s.ReactWidget.create(e)}this._onAction.emit("content")}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._content=null;this._owner=null;o.Signal.clearData(this)}}e.PropertyInspector=t})(h||(h={}))},58130:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(3579);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(35667);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},97872:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>p});var i=n(14366);var s=n.n(i);var o=n(43801);var r=n.n(o);var a=n(44539);var l=n.n(a);var d=n(30619);var c=n.n(d);var h;(function(e){e.handleLink="rendermime:handle-local-link"})(h||(h={}));const u={id:"@jupyterlab/rendermime-extension:plugin",description:"Provides the render mime registry.",optional:[o.IDocumentManager,a.ILatexTypesetter,i.ISanitizer,a.IMarkdownParser,d.ITranslator],provides:a.IRenderMimeRegistry,activate:g,autoStart:true};const p=u;const m="debugger:open-source";function g(e,t,n,i,s,o){const r=(o!==null&&o!==void 0?o:d.nullTranslator).load("jupyterlab");if(t){e.commands.addCommand(h.handleLink,{label:r.__("Handle Local Link"),execute:n=>{const i=n["path"];const s=n["id"];const o=n["scope"]||"server";if(!i){return}if(o==="kernel"){if(!e.commands.hasCommand(m)){console.warn("Cannot open kernel file: debugger sources provider not available");return}return e.commands.execute(m,{path:i})}return t.services.contents.get(i,{content:false}).then((()=>{const e=t.registry.defaultRenderedWidgetFactory(i);const n=t.openOrReveal(i,e.name);if(n&&s){n.setFragment(s)}}))}})}return new a.RenderMimeRegistry({initialFactories:a.standardRendererFactories,linkHandler:!t?undefined:{handleLink:(t,n,i)=>{if(t.tagName==="A"&&t.hasAttribute("download")){return}e.commandLinker.connectNode(t,h.handleLink,{path:n,id:i})},handlePath:(t,n,i,s)=>{e.commandLinker.connectNode(t,h.handleLink,{path:n,id:s,scope:i})}},latexTypesetter:n!==null&&n!==void 0?n:undefined,markdownParser:s!==null&&s!==void 0?s:undefined,translator:o!==null&&o!==void 0?o:undefined,sanitizer:i!==null&&i!==void 0?i:undefined})}},80046:(e,t,n)=>{"use strict";var i=n(97913);var s=n(5893);var o=n(3579);var r=n(41603)},60479:(e,t,n)=>{"use strict";n.r(t)},32278:(e,t,n)=>{"use strict";n.d(t,{l:()=>d});var i=n(44336);var s=n.n(i);var o=n(5592);var r=n.n(o);var a=n(2336);var l=n.n(a);class d{constructor(e){this.trusted=false;this._changed=new a.Signal(this);this._raw={};const t=c.getData(e.value);this._data=new i.ObservableJSON({values:t});this._rawData=t;const n=e.value;for(const i in n){switch(i){case"data":break;default:this._raw[i]=c.extract(n,i)}}}get changed(){return this._changed}dispose(){this._data.dispose();a.Signal.clearData(this)}get data(){return this._rawData}get metadata(){return{}}setData(e){if(e.data){this._updateObservable(this._data,e.data);this._rawData=e.data}this._changed.emit(void 0)}toJSON(){const e={};for(const t in this._raw){e[t]=c.extract(this._raw,t)}return e}_updateObservable(e,t){const n=e.keys();const i=Object.keys(t);for(const s of n){if(i.indexOf(s)===-1){e.delete(s)}}for(const s of i){const n=e.get(s);const i=t[s];if(n!==i){e.set(s,i)}}}}(function(e){function t(e){return c.getData(e)}e.getData=t})(d||(d={}));var c;(function(e){function t(e){return s(e)}e.getData=t;function n(e){const n=t(e.value);return{data:n}}e.getBundleOptions=n;function i(e,t){const n=e[t];if(n===undefined||o.JSONExt.isPrimitive(n)){return n}return o.JSONExt.deepCopy(n)}e.extract=i;function s(e){const t=Object.create(null);for(const n in e){t[n]=i(e,n)}return t}})(c||(c={}))},41586:(e,t,n)=>{"use strict";n.d(t,{Fh:()=>s,NQ:()=>o,SF:()=>r,U1:()=>l,dn:()=>u,hL:()=>a,hY:()=>h,jn:()=>c,qQ:()=>d});var i=n(18901);const s={safe:true,mimeTypes:["text/html"],defaultRank:50,createRenderer:e=>new i.TH(e)};const o={safe:true,mimeTypes:["image/bmp","image/png","image/jpeg","image/gif","image/webp"],defaultRank:90,createRenderer:e=>new i.vf(e)};const r={safe:true,mimeTypes:["text/latex"],defaultRank:70,createRenderer:e=>new i.Kc(e)};const a={safe:true,mimeTypes:["text/markdown"],defaultRank:60,createRenderer:e=>new i.jL(e)};const l={safe:false,mimeTypes:["image/svg+xml"],defaultRank:80,createRenderer:e=>new i.Yk(e)};const d={safe:true,mimeTypes:["application/vnd.jupyter.stderr"],defaultRank:110,createRenderer:e=>new i.A6(e)};const c={safe:true,mimeTypes:["text/plain","application/vnd.jupyter.stdout"],defaultRank:120,createRenderer:e=>new i.Vx(e)};const h={safe:false,mimeTypes:["text/javascript","application/javascript"],defaultRank:110,createRenderer:e=>new i.TS(e)};const u=[s,a,r,l,o,h,d,c]},17200:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AttachmentModel:()=>r.l,ILatexTypesetter:()=>p.nc,IMarkdownParser:()=>p.co,IRenderMimeRegistry:()=>p.N3,MimeModel:()=>d.w,OutputModel:()=>c.L,RenderMimeRegistry:()=>h.K,RenderedCommon:()=>m.nZ,RenderedError:()=>m.A6,RenderedHTML:()=>m.TH,RenderedHTMLCommon:()=>m.C6,RenderedImage:()=>m.vf,RenderedJavaScript:()=>m.TS,RenderedLatex:()=>m.Kc,RenderedMarkdown:()=>m.jL,RenderedSVG:()=>m.Yk,RenderedText:()=>m.Vx,errorRendererFactory:()=>a.qQ,htmlRendererFactory:()=>a.Fh,imageRendererFactory:()=>a.NQ,javaScriptRendererFactory:()=>a.hY,latexRendererFactory:()=>a.SF,markdownRendererFactory:()=>a.hL,removeMath:()=>l.r,renderError:()=>u.vr,renderHTML:()=>u.e2,renderImage:()=>u.mx,renderLatex:()=>u.zG,renderMarkdown:()=>u.Gc,renderSVG:()=>u.d8,renderText:()=>u.S5,replaceMath:()=>l.H,standardRendererFactories:()=>a.dn,svgRendererFactory:()=>a.U1,textRendererFactory:()=>a.jn});var i=n(70373);var s=n.n(i);var o={};for(const g in i)if(g!=="default")o[g]=()=>i[g];n.d(t,o);var r=n(32278);var a=n(41586);var l=n(52608);var d=n(29549);var c=n(34354);var h=n(71153);var u=n(11364);var p=n(21944);var m=n(18901)},52608:(e,t,n)=>{"use strict";n.d(t,{H:()=>r,r:()=>o});const i="$";const s=/(\$\$?|\\(?:begin|end)\{[a-z]*\*?\}|\\[{}$]|[{}]|(?:\n\s*)+|@@\d+@@|\\\\(?:\(|\)|\[|\]))/i;function o(e){const t=[];let n=null;let o=null;let r=null;let l=0;let d;const c=e.includes("`")||e.includes("~~~");if(c){e=e.replace(/~/g,"~T").replace(/^(?`{3,}|(~T){3,})[^`\n]*\n([\s\S]*?)^\k`*$/gm,(e=>e.replace(/\$/g,"~D"))).replace(/(^|[^\\])(`+)([^\n]*?[^`\n])\2(?!`)/gm,(e=>e.replace(/\$/g,"~D")));d=e=>e.replace(/~([TD])/g,((e,t)=>t==="T"?"~":i))}else{d=e=>e}let h=e.replace(/\r\n?/g,"\n").split(s);for(let s=1,u=h.length;s{let i=t[n];if(i.substr(0,3)==="\\\\("&&i.substr(i.length-3)==="\\\\)"){i="\\("+i.substring(3,i.length-3)+"\\)"}else if(i.substr(0,3)==="\\\\["&&i.substr(i.length-3)==="\\\\]"){i="\\["+i.substring(3,i.length-3)+"\\]"}return i};return e.replace(/@@(\d+)@@/g,n)}function a(e,t,n,i,s){let o=s.slice(e,t+1).join("").replace(/&/g,"&").replace(//g,">");if(navigator&&navigator.appName==="Microsoft Internet Explorer"){o=o.replace(/(%[^\n]*)\n/g,"$1
\n")}while(t>e){s[t]="";t--}s[e]="@@"+i.length+"@@";if(n){o=n(o)}i.push(o);return s}},29549:(e,t,n)=>{"use strict";n.d(t,{w:()=>i});class i{constructor(e={}){this.trusted=!!e.trusted;this._data=e.data||{};this._metadata=e.metadata||{};this._callback=e.callback||s.noOp}get data(){return this._data}get metadata(){return this._metadata}setData(e){this._data=e.data||this._data;this._metadata=e.metadata||this._metadata;this._callback(e)}}var s;(function(e){function t(){}e.noOp=t})(s||(s={}))},34354:(e,t,n)=>{"use strict";n.d(t,{L:()=>h});var i=n(68193);var s=n.n(i);var o=n(44336);var r=n.n(o);var a=n(5592);var l=n.n(a);var d=n(2336);var c=n.n(d);class h{constructor(e){this._changed=new d.Signal(this);this._raw={};this._text=undefined;const{data:t,metadata:n,trusted:s}=u.getBundleOptions(e);this._rawData=t;if(e.value!==undefined&&i.isStream(e.value)){this._text=new o.ObservableString(typeof e.value.text==="string"?e.value.text:e.value.text.join(""))}this._metadata=new o.ObservableJSON({values:n});this._rawMetadata=n;this.trusted=s;const r=e.value;for(const i in r){switch(i){case"data":case"metadata":break;default:this._raw[i]=u.extract(r,i)}}this.type=r.output_type;if(i.isExecuteResult(r)){this.executionCount=r.execution_count}else{this.executionCount=null}}get changed(){return this._changed}dispose(){var e;(e=this._text)===null||e===void 0?void 0:e.dispose();this._metadata.dispose();d.Signal.clearData(this)}get data(){return u.getData(this.toJSON())}get streamText(){return this._text}get metadata(){return this._rawMetadata}setData(e){if(e.data){this._rawData=e.data}if(e.metadata){this._updateObservable(this._metadata,e.metadata);this._rawMetadata=e.metadata}this._changed.emit()}toJSON(){const e={};for(const t in this._raw){e[t]=u.extract(this._raw,t)}if(this._text!==undefined){e["text"]=this._text.text}switch(this.type){case"display_data":case"execute_result":case"update_display_data":e["data"]=this._rawData;e["metadata"]=this.metadata;break;default:break}delete e["transient"];return e}_updateObservable(e,t){const n=e.keys();const i=Object.keys(t);for(const s of n){if(i.indexOf(s)===-1){e.delete(s)}}for(const s of i){const n=e.get(s);const i=t[s];if(n!==i){e.set(s,i)}}}}(function(e){function t(e){return u.getData(e)}e.getData=t;function n(e){return u.getMetadata(e)}e.getMetadata=n})(h||(h={}));var u;(function(e){function t(e){let t={};if(i.isExecuteResult(e)||i.isDisplayData(e)||i.isDisplayUpdate(e)){t=e.data}else if(i.isStream(e)){if(e.name==="stderr"){t["application/vnd.jupyter.stderr"]=e.text}else{t["application/vnd.jupyter.stdout"]=e.text}}else if(i.isError(e)){t["application/vnd.jupyter.error"]=e;const n=e.traceback.join("\n");t["application/vnd.jupyter.stderr"]=n||`${e.ename}: ${e.evalue}`}return r(t)}e.getData=t;function n(e){const t=Object.create(null);if(i.isExecuteResult(e)||i.isDisplayData(e)){for(const n in e.metadata){t[n]=o(e.metadata,n)}}return t}e.getMetadata=n;function s(e){const i=t(e.value);const s=n(e.value);const o=!!e.trusted;return{data:i,metadata:s,trusted:o}}e.getBundleOptions=s;function o(e,t){const n=e[t];if(n===undefined||a.JSONExt.isPrimitive(n)){return n}return JSON.parse(JSON.stringify(n))}e.extract=o;function r(e){const t=Object.create(null);for(const n in e){t[n]=o(e,n)}return t}})(u||(u={}))},71153:(e,t,n)=>{"use strict";n.d(t,{K:()=>c});var i=n(14366);var s=n.n(i);var o=n(30397);var r=n.n(o);var a=n(30619);var l=n.n(a);var d=n(29549);class c{constructor(e={}){var t,n,s,o,r,l;this._id=0;this._ranks={};this._types=null;this._factories={};this.translator=(t=e.translator)!==null&&t!==void 0?t:a.nullTranslator;this.resolver=(n=e.resolver)!==null&&n!==void 0?n:null;this.linkHandler=(s=e.linkHandler)!==null&&s!==void 0?s:null;this.latexTypesetter=(o=e.latexTypesetter)!==null&&o!==void 0?o:null;this.markdownParser=(r=e.markdownParser)!==null&&r!==void 0?r:null;this.sanitizer=(l=e.sanitizer)!==null&&l!==void 0?l:new i.Sanitizer;if(e.initialFactories){for(const t of e.initialFactories){this.addFactory(t)}}}get mimeTypes(){return this._types||(this._types=h.sortedTypes(this._ranks))}preferredMimeType(e,t="ensure"){if(t==="ensure"||t==="prefer"){for(const t of this.mimeTypes){if(t in e&&this._factories[t].safe){return t}}}if(t!=="ensure"){for(const t of this.mimeTypes){if(t in e){return t}}}return undefined}createRenderer(e){if(!(e in this._factories)){throw new Error(`No factory for mime type: '${e}'`)}return this._factories[e].createRenderer({mimeType:e,resolver:this.resolver,sanitizer:this.sanitizer,linkHandler:this.linkHandler,latexTypesetter:this.latexTypesetter,markdownParser:this.markdownParser,translator:this.translator})}createModel(e={}){return new d.w(e)}clone(e={}){var t,n,i,s,o,r,a,l,d,h;const u=new c({resolver:(n=(t=e.resolver)!==null&&t!==void 0?t:this.resolver)!==null&&n!==void 0?n:undefined,sanitizer:(s=(i=e.sanitizer)!==null&&i!==void 0?i:this.sanitizer)!==null&&s!==void 0?s:undefined,linkHandler:(r=(o=e.linkHandler)!==null&&o!==void 0?o:this.linkHandler)!==null&&r!==void 0?r:undefined,latexTypesetter:(l=(a=e.latexTypesetter)!==null&&a!==void 0?a:this.latexTypesetter)!==null&&l!==void 0?l:undefined,markdownParser:(h=(d=e.markdownParser)!==null&&d!==void 0?d:this.markdownParser)!==null&&h!==void 0?h:undefined,translator:this.translator});u._factories={...this._factories};u._ranks={...this._ranks};u._id=this._id;return u}getFactory(e){return this._factories[e]}addFactory(e,t){if(t===undefined){t=e.defaultRank;if(t===undefined){t=100}}for(const n of e.mimeTypes){this._factories[n]=e;this._ranks[n]={rank:t,id:this._id++}}this._types=null}removeMimeType(e){delete this._factories[e];delete this._ranks[e];this._types=null}getRank(e){const t=this._ranks[e];return t&&t.rank}setRank(e,t){if(!this._ranks[e]){return}const n=this._id++;this._ranks[e]={rank:t,id:n};this._types=null}}(function(e){class t{constructor(e){this._path=e.path;this._contents=e.contents}get path(){return this._path}set path(e){this._path=e}async resolveUrl(e){if(this.isLocal(e)){const t=encodeURI(o.PathExt.dirname(this.path));e=o.PathExt.resolve(t,e)}return e}async getDownloadUrl(e){if(this.isLocal(e)){return this._contents.getDownloadUrl(decodeURIComponent(e))}return e}isLocal(e,t=false){if(this.isMalformed(e)){return false}return o.URLExt.isLocal(e,t)||!!this._contents.driveName(decodeURI(e))}async resolvePath(e){const t=o.PageConfig.getOption("rootUri").replace("file://","");if(e.startsWith("~/")&&t.startsWith("/home/")){e=t.split("/").slice(0,3).join("/")+e.substring(1)}if(e.startsWith(t)||e.startsWith("./")){try{const n=e.replace(t,"");const i=await this._contents.get(n,{content:false});return{path:i.path,scope:"server"}}catch(n){console.warn(`Could not resolve location of ${e} on server`);return null}}return{path:e,scope:"kernel"}}isMalformed(e){try{decodeURI(e);return false}catch(t){if(t instanceof URIError){return true}throw t}}}e.UrlResolver=t})(c||(c={}));var h;(function(e){function t(e){return Object.keys(e).sort(((t,n)=>{const i=e[t];const s=e[n];if(i.rank!==s.rank){return i.rank-s.rank}return i.id-s.id}))}e.sortedTypes=t})(h||(h={}))},11364:(e,t,n)=>{"use strict";n.d(t,{Gc:()=>p,S5:()=>C,d8:()=>m,e2:()=>c,mx:()=>h,vr:()=>I,zG:()=>u});var i=n(30397);var s=n.n(i);var o=n(30619);var r=n.n(o);var a=n(67901);var l=n.n(a);var d=n(52608);async function c(e){let{host:t,source:n,trusted:i,sanitizer:s,resolver:r,linkHandler:a,shouldTypeset:l,latexTypesetter:d,translator:c}=e;c=c||o.nullTranslator;const h=c===null||c===void 0?void 0:c.load("jupyterlab");let u=n;if(!n){t.textContent="";return}if(!i){u=`${n}`;n=s.sanitize(n)}t.innerHTML=n;if(t.getElementsByTagName("script").length>0){if(i){T.evalInnerHTMLScriptTags(t)}else{const e=document.createElement("div");const n=document.createElement("pre");n.textContent=h.__("This HTML output contains inline scripts. Are you sure that you want to run arbitrary Javascript within your JupyterLab session?");const i=document.createElement("button");i.textContent=h.__("Run");i.onclick=e=>{t.innerHTML=u;T.evalInnerHTMLScriptTags(t);if(t.firstChild){t.removeChild(t.firstChild)}};e.appendChild(n);e.appendChild(i);t.insertBefore(e,t.firstChild)}}T.handleDefaults(t,r);if(r){await T.handleUrls(t,r,a)}if(l&&d){d.typeset(t)}}async function h(e){const{host:t,mimeType:n,source:i,width:s,height:o,needsBackground:r,unconfined:a}=e;t.textContent="";const l=document.createElement("img");l.src=`data:${n};base64,${i}`;if(typeof o==="number"){l.height=o}if(typeof s==="number"){l.width=s}if(r==="light"){l.classList.add("jp-needs-light-background")}else if(r==="dark"){l.classList.add("jp-needs-dark-background")}if(a===true){l.classList.add("jp-mod-unconfined")}t.appendChild(l)}async function u(e){const{host:t,source:n,shouldTypeset:i,latexTypesetter:s}=e;t.textContent=n;if(i&&s){s.typeset(t)}}async function p(e){const{host:t,source:n,markdownParser:i,...s}=e;if(!n){t.textContent="";return}let o="";if(i){const e=(0,d.r)(n);o=await i.render(e["text"]);o=(0,d.H)(o,e["math"])}else{o=`
${n}
`}await c({host:t,source:o,...s});T.headerAnchors(t)}(function(e){function t(e){var t;return((t=e.textContent)!==null&&t!==void 0?t:"").replace(/ /g,"-")}e.createHeaderId=t})(p||(p={}));async function m(e){let{host:t,source:n,trusted:i,unconfined:s}=e;if(!n){t.textContent="";return}if(!i){t.textContent="Cannot display an untrusted SVG. Maybe you need to run the cell?";return}const o="]+xmlns=[^>]+svg";if(n.search(o)<0){n=n.replace("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,"+t+"}:\\/\\/|data:|www\\.)[^\\s"+n+'"]{2,}[^\\s'+n+"\"'(){}\\[\\],:;.!?])","ug");const i=/(?:[a-zA-Z]:(?:(?:\\|\/)[\w\.-]*)+)/;const s=/(?:(?:\~|\.)(?:(?:\\|\/)[\w\.-]*)+)/;const o=new RegExp(`(${i.source}|${s.source})`);const r=/((?:\~|\.)?(?:\/[\w\.-]*)+)/;const a=/(?:(?:\:|", line )(?[\d]+))?(?:\:(?[\d]+))?/;const l=navigator.userAgent.indexOf("Windows")>=0;e.pathLinkRegex=new RegExp(`(?${l?o.source:r.source})${a.source}`,"g")})(g||(g={}));class f{constructor(){this.regex=g.webLinkRegex}createAnchor(e,t){const n=document.createElement("a");n.href=e.startsWith("www.")?"https://"+e:e;n.rel="noopener";n.target="_blank";n.appendChild(document.createTextNode(t));return n}processPath(e){const t=e.slice(-1);const n=[">","<"].indexOf(t)!==-1;const i=n?e.length-1:e.length;e=e.slice(0,i);return e}processLabel(e){return this.processPath(e)}}class v{constructor(){this.regex=g.pathLinkRegex}createAnchor(e,t,n){const i=document.createElement("a");i.dataset.path=e;const s=parseInt(n["line"],10);let o=!isNaN(s)?`line=${s-1}`:"";i.dataset.locator=o;i.appendChild(document.createTextNode(t));return i}}function _(e,t){const n=[];if(t.checkWeb){n.push(new f)}if(t.checkPaths){n.push(new v)}const i=[];const s=(e,t)=>{if(t>=n.length){i.push(document.createTextNode(e));return}const o=n[t];let r;let a=0;const l=o.regex;l.lastIndex=0;while(null!=(r=l.exec(e))){const n=e.substring(a,r.index);if(n){s(n,t+1)}const{path:l,...d}=r.groups;const c=o.processPath?o.processPath(l):l;const h=o.processLabel?o.processLabel(r[0]):r[0];i.push(o.createAnchor(c,h,d));a=r.index+h.length}const d=e.substring(a);if(d){s(d,t+1)}};s(e,0);return i}function b(e,t){var n,i;const s=e.cloneNode();s.textContent=(n=e.textContent)===null||n===void 0?void 0:n.slice(0,t);const o=e.cloneNode();o.textContent=(i=e.textContent)===null||i===void 0?void 0:i.slice(t);return{pre:s,post:o}}function*y(e){var t;let n=0;let i;for(let s of e){i=n+(((t=s.textContent)===null||t===void 0?void 0:t.length)||0);yield{node:s,start:n,end:i,isText:s.nodeType===Node.TEXT_NODE};n=i}}function*w(e,t){var n,i;let s=y(e);let o=y(t);let r=s.next();let a=o.next();while(!r.done&&!a.done){let e=r.value;let t=a.value;if(e.isText&&e.start<=t.start&&e.end>=t.end){yield[null,t.node];a=o.next()}else if(t.isText&&t.start<=e.start&&t.end>=e.end){yield[e.node,null];r=s.next()}else{if(e.end===t.end&&e.start===t.start){yield[e.node,t.node];r=s.next();a=o.next()}else if(e.end>t.end){let{pre:i,post:s}=b(e.node,t.end-e.start);if(t.starte.end){let{pre:n,post:o}=b(t.node,e.end-t.start);if(e.starte.cloneNode(true)))})}else{e=[document.createTextNode(l)]}const r=Array.from(d.childNodes);m=E(r,e)}else{m=document.createElement("pre")}s.appendChild(m)}function j(e,t){if(!e){return null}if(t.lengthc(e,t,n))))}e.handlePaths=o;function r(e){const t=["h1","h2","h3","h4","h5","h6"];for(const n of t){const t=e.getElementsByTagName(n);for(let e=0;e{const s=decodeURIComponent(i);if(n){n.handleLink(e,s,r)}return t.getDownloadUrl(i)})).then((t=>{e.href=t+r})).catch((t=>{e.href=""}))}async function c(e,t,n){let s=e.dataset.path||"";let o=e.dataset.locator?"#"+e.dataset.locator:"";delete e.dataset.path;delete e.dataset.locator;const r=true;const a=t.isLocal?t.isLocal(s,r):i.URLExt.isLocal(s,r);if(!s||!a||!t.resolvePath||!n||!n.handlePath){e.replaceWith(...e.childNodes);return}try{const i=await t.resolvePath(s);if(!i){console.log("Path resolution bailing: does not exist");return}n.handlePath(e,i.path,i.scope,o);e.href=i.path+o}catch(l){console.warn("Path anchor error:",l);e.href="#linking-failed-see-console"}}const h=["ansi-black","ansi-red","ansi-green","ansi-yellow","ansi-blue","ansi-magenta","ansi-cyan","ansi-white","ansi-black-intense","ansi-red-intense","ansi-green-intense","ansi-yellow-intense","ansi-blue-intense","ansi-magenta-intense","ansi-cyan-intense","ansi-white-intense"];function u(e,t,n,i,s,o,r){if(e){const a=[];const l=[];if(i&&typeof t==="number"&&0<=t&&t<8){t+=8}if(o){[t,n]=[n,t]}if(typeof t==="number"){a.push(h[t]+"-fg")}else if(t.length){l.push(`color: rgb(${t})`)}else if(o){a.push("ansi-default-inverse-fg")}if(typeof n==="number"){a.push(h[n]+"-bg")}else if(n.length){l.push(`background-color: rgb(${n})`)}else if(o){a.push("ansi-default-inverse-bg")}if(i){a.push("ansi-bold")}if(s){a.push("ansi-underline")}if(a.length||l.length){r.push("");r.push(e);r.push("")}else{r.push(e)}}}function m(e){let t;let n;let i;const s=e.shift();if(s===2&&e.length>=3){t=e.shift();n=e.shift();i=e.shift();if([t,n,i].some((e=>e<0||255=1){const s=e.shift();if(s<0){throw new RangeError("Color index must be >= 0")}else if(s<16){return s}else if(s<232){t=Math.floor((s-16)/36);t=t>0?55+t*40:0;n=Math.floor((s-16)%36/6);n=n>0?55+n*40:0;i=(s-16)%6;i=i>0?55+i*40:0}else if(s<256){t=n=i=(s-232)*10+8}else{throw new RangeError("Color index must be < 256")}}else{throw new RangeError("Invalid extended color specification")}return[t,n,i]}function g(e){const t=/\x1b\[(.*?)([@-~])/g;let n=[];let i=[];let s=false;let o=false;let r=false;let a;const d=[];const c=[];let h=0;e=l()(e);e+="";while(a=t.exec(e)){if(a[2]==="m"){const e=a[1].split(";");for(let t=0;t{"use strict";n.d(t,{N3:()=>o,co:()=>a,nc:()=>r});var i=n(5592);var s=n.n(i);const o=new i.Token("@jupyterlab/rendermime:IRenderMimeRegistry",'A service for the rendermime registry for the application. Use this to create renderers for various mime-types in your extension. Many times it will be easier to create a "mime renderer extension" rather than using this service directly.');const r=new i.Token("@jupyterlab/rendermime:ILatexTypesetter","A service for the LaTeX typesetter for the application. Use this if you want to typeset math in your extension.");const a=new i.Token("@jupyterlab/rendermime:IMarkdownParser","A service for rendering markdown syntax as HTML content.")},18901:(e,t,n)=>{"use strict";n.d(t,{A6:()=>f,C6:()=>d,Kc:()=>h,TH:()=>c,TS:()=>v,Vx:()=>g,Yk:()=>m,jL:()=>p,nZ:()=>l,vf:()=>u});var i=n(30619);var s=n.n(i);var o=n(1143);var r=n.n(o);var a=n(11364);class l extends o.Widget{constructor(e){var t,n;super();this.mimeType=e.mimeType;this.sanitizer=e.sanitizer;this.resolver=e.resolver;this.linkHandler=e.linkHandler;this.translator=(t=e.translator)!==null&&t!==void 0?t:i.nullTranslator;this.latexTypesetter=e.latexTypesetter;this.markdownParser=(n=e.markdownParser)!==null&&n!==void 0?n:null;this.node.dataset["mimeType"]=this.mimeType}async renderModel(e,t){if(!t){while(this.node.firstChild){this.node.removeChild(this.node.firstChild)}}this.toggleClass("jp-mod-trusted",e.trusted);await this.render(e);const{fragment:n}=e.metadata;if(n){this.setFragment(n)}}setFragment(e){}}class d extends l{constructor(e){super(e);this.addClass("jp-RenderedHTMLCommon")}setFragment(e){let t;try{t=this.node.querySelector(e.startsWith("#")?`#${CSS.escape(e.slice(1))}`:e)}catch(n){console.warn("Unable to set URI fragment identifier.",n)}if(t){t.scrollIntoView()}}}class c extends d{constructor(e){super(e);this._rendered=Promise.resolve();this.addClass("jp-RenderedHTML")}render(e){return this._rendered=a.e2({host:this.node,source:String(e.data[this.mimeType]),trusted:e.trusted,resolver:this.resolver,sanitizer:this.sanitizer,linkHandler:this.linkHandler,shouldTypeset:this.isAttached,latexTypesetter:this.latexTypesetter,translator:this.translator})}onAfterAttach(e){this._rendered.then((()=>{if(this.latexTypesetter){this.latexTypesetter.typeset(this.node)}})).catch(console.warn)}}class h extends l{constructor(e){super(e);this._rendered=Promise.resolve();this.addClass("jp-RenderedLatex")}render(e){return this._rendered=a.zG({host:this.node,source:String(e.data[this.mimeType]),shouldTypeset:this.isAttached,latexTypesetter:this.latexTypesetter})}onAfterAttach(e){this._rendered.then((()=>{if(this.latexTypesetter){this.latexTypesetter.typeset(this.node)}})).catch(console.warn)}}class u extends l{constructor(e){super(e);this.addClass("jp-RenderedImage")}render(e){const t=e.metadata[this.mimeType];return a.mx({host:this.node,mimeType:this.mimeType,source:String(e.data[this.mimeType]),width:t&&t.width,height:t&&t.height,needsBackground:e.metadata["needs_background"],unconfined:t&&t.unconfined})}}class p extends d{constructor(e){super(e);this._rendered=Promise.resolve();this.addClass("jp-RenderedMarkdown")}render(e){return this._rendered=a.Gc({host:this.node,source:String(e.data[this.mimeType]),trusted:e.trusted,resolver:this.resolver,sanitizer:this.sanitizer,linkHandler:this.linkHandler,shouldTypeset:this.isAttached,latexTypesetter:this.latexTypesetter,markdownParser:this.markdownParser,translator:this.translator})}async renderModel(e){await super.renderModel(e,true)}onAfterAttach(e){this._rendered.then((()=>{if(this.latexTypesetter){this.latexTypesetter.typeset(this.node)}})).catch(console.warn)}}class m extends l{constructor(e){super(e);this._rendered=Promise.resolve();this.addClass("jp-RenderedSVG")}render(e){const t=e.metadata[this.mimeType];return this._rendered=a.d8({host:this.node,source:String(e.data[this.mimeType]),trusted:e.trusted,unconfined:t&&t.unconfined,translator:this.translator})}onAfterAttach(e){this._rendered.then((()=>{if(this.latexTypesetter){this.latexTypesetter.typeset(this.node)}})).catch(console.warn)}}class g extends l{constructor(e){super(e);this.addClass("jp-RenderedText")}render(e){return a.S5({host:this.node,sanitizer:this.sanitizer,source:String(e.data[this.mimeType]),translator:this.translator})}}class f extends l{constructor(e){super(e);this.addClass("jp-RenderedText")}render(e){return a.vr({host:this.node,sanitizer:this.sanitizer,source:String(e.data[this.mimeType]),linkHandler:this.linkHandler,resolver:this.resolver,translator:this.translator})}}class v extends l{constructor(e){super(e);this.addClass("jp-RenderedJavaScript")}render(e){const t=this.translator.load("jupyterlab");return a.S5({host:this.node,sanitizer:this.sanitizer,source:t.__("JavaScript output is disabled in JupyterLab"),translator:this.translator})}}},5893:(e,t,n)=>{"use strict";var i=n(10395);var s=n(97913);var o=n(85072);var r=n.n(o);var a=n(97825);var l=n.n(a);var d=n(77659);var c=n.n(d);var h=n(55056);var u=n.n(h);var p=n(10540);var m=n.n(p);var g=n(41113);var f=n.n(g);var v=n(30354);var _={};_.styleTagTransform=f();_.setAttributes=u();_.insert=c().bind(null,"head");_.domAPI=l();_.insertStyleElement=m();var b=r()(v.A,_);const y=v.A&&v.A.locals?v.A.locals:undefined},51883:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CommandIDs:()=>j,default:()=>D});var i=n(94307);var s=n(14366);var o=n(45409);var r=n(43801);var a=n(94931);var l=n(30619);var d=n(26331);var c=n(30397);var h=n(28548);var u=n(26568);var p=n(2336);var m=n(44914);var g=n.n(m);const f="jp-mod-kernel";const v="jp-mod-kernelspec";const _="jp-mod-kernel-widget";const b="jp-RunningSessions-item-label-kernel-id";async function y(e,t,n){const{commands:i,contextMenu:o,serviceManager:r}=n;const{kernels:a,kernelspecs:l,sessions:p}=r;const{runningChanged:m,RunningKernel:v}=w;const _=new u.Throttler((()=>m.emit(undefined)),100);const b=t.load("jupyterlab");const y=b.__("Shut Down Unused");let C=false;const x=new u.Throttler(k,1e4);a.runningChanged.connect((()=>{void _.invoke();void x.invoke()}));p.runningChanged.connect((()=>void _.invoke()));await Promise.all([a.ready,l.ready,p.ready]);function S(){return Array.from(a.running()).filter((e=>{var t;return((t=e.connections)!==null&&t!==void 0?t:1)<1}))}async function k(){const e=C;C=S().length>0;if(e!==C){i.notifyCommandChanged(j.kernelShutDownUnused)}}i.addCommand(j.kernelShutDownUnused,{label:e=>e.toolbar?"":y,icon:e=>e.toolbar?d.cleaningIcon:undefined,execute:async()=>{const e=S();if(e.length===0){return}const t=await(0,s.showDialog)({title:y,body:g().createElement(g().Fragment,null,b.__("Are you sure you want to shut down the following unused kernels?"),g().createElement("ul",null,e.map((e=>g().createElement("li",{key:e.id},b.__("%1 (%2)",e.name,e.id.slice(0,8))))))),buttons:[s.Dialog.cancelButton(),s.Dialog.warnButton({label:y})]});if(t.button.accept){await Promise.allSettled(e.map((e=>h.KernelAPI.shutdownKernel(e.id))));await Promise.all([a.refreshRunning(),p.refreshRunning()])}},isEnabled:()=>C});e.add({name:b.__("Kernels"),supportsMultipleViews:true,running:e=>{var t;const n=new Map;for(const o of a.running()){const s=(t=n.get(o.name))!==null&&t!==void 0?t:[];n.set(o.name,s);s.push(new v({commands:i,kernel:o,kernels:a,sessions:p,trans:b,mode:e.mode}))}const s=Array.from(n.entries()).map((([e,t])=>{var n;return new w.KernelSpecItem({name:e,kernels:t,spec:(n=l.specs)===null||n===void 0?void 0:n.kernelspecs[e],trans:b})}));return e.mode==="tree"?s:s.map((e=>e.children.map((e=>{var t;return(t=e.children)!==null&&t!==void 0?t:[]})).flat())).flat()},shutdownAll:()=>a.shutdownAll(),refreshRunning:()=>Promise.all([a.refreshRunning(),p.refreshRunning()]),runningChanged:m,shutdownLabel:b.__("Shut Down Kernel"),shutdownAllLabel:b.__("Shut Down All"),shutdownAllConfirmationText:()=>b._n("Are you sure you want to permanently shut down the running kernel?","Are you sure you want to permanently shut down the %1 running kernels?",a.runningCount),toolbarButtons:[new d.CommandToolbarButton({commands:i,id:j.kernelShutDownUnused,caption:y,args:{toolbar:true}})]});const I=e=>e.classList.contains(f);i.addCommand(j.kernelNewConsole,{icon:d.consoleIcon,label:b.__("New Console for Kernel"),execute:e=>{var t;const s=n.contextMenuHitTest(I);const o=(t=e.id)!==null&&t!==void 0?t:s===null||s===void 0?void 0:s.dataset["context"];if(o){return i.execute("console:create",{kernelPreference:{id:o}})}}});i.addCommand(j.kernelNewNotebook,{icon:d.notebookIcon,label:b.__("New Notebook for Kernel"),execute:e=>{var t;const s=n.contextMenuHitTest(I);const o=(t=e.id)!==null&&t!==void 0?t:s===null||s===void 0?void 0:s.dataset["context"];if(o){return i.execute("notebook:create-new",{kernelId:o})}}});i.addCommand(j.kernelOpenSession,{icon:e=>e.type==="console"?d.consoleIcon:e.type==="notebook"?d.notebookIcon:undefined,isEnabled:({path:e,type:t})=>!!t||e!==undefined,label:({name:e,path:t})=>e||c.PathExt.basename(t||b.__("Unknown Session")),execute:({path:e,type:t})=>{if(!t||e===undefined){return}const n=t==="console"?"console:open":"docmanager:open";return i.execute(n,{path:e})}});i.addCommand(j.kernelShutDown,{icon:d.closeIcon,label:b.__("Shut Down Kernel"),execute:e=>{var t;const i=n.contextMenuHitTest(I);const s=(t=e.id)!==null&&t!==void 0?t:i===null||i===void 0?void 0:i.dataset["context"];if(s){return a.shutdown(s)}}});const E=[];o.opened.connect((async()=>{var e,t,i;const s=(t=(e=o.menu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-contextmenu-connected-sessions"})))===null||e===void 0?void 0:e.submenu)!==null&&t!==void 0?t:null;if(!s){return}E.forEach((e=>e.dispose()));E.length=0;s.clearItems();const r=n.contextMenuHitTest(I);const a=r===null||r===void 0?void 0:r.dataset["context"];if(!a){return}const l=j.kernelOpenSession;for(const n of p.running()){if(a===((i=n.kernel)===null||i===void 0?void 0:i.id)){const{name:e,path:t,type:i}=n;E.push(s.addItem({command:l,args:{name:e,path:t,type:i}}))}}}))}var w;(function(e){class t{constructor(e){this._name=e.name;this.className=v;this._kernels=e.kernels;this.spec=e.spec||null;this.trans=e.trans}icon(){const{spec:e}=this;if(!e||!e.resources){return d.jupyterIcon}return e.resources["logo-svg"]||e.resources["logo-64x64"]||e.resources["logo-32x32"]}label(){const{_name:e,spec:t}=this;return(t===null||t===void 0?void 0:t.display_name)||e}get children(){return this._kernels}}e.KernelSpecItem=t;class n{constructor(e){this.className=f;this.commands=e.commands;this.kernel=e.kernel;this.context=this.kernel.id;this.kernels=e.kernels;this.sessions=e.sessions;this.trans=e.trans;this._mode=e.mode}get children(){var e;const t=[];const n=j.kernelOpenSession;const{commands:i}=this;for(const s of this.sessions.running()){if(this.kernel.id===((e=s.kernel)===null||e===void 0?void 0:e.id)){const{name:e,path:o,type:r}=s;t.push({className:_,context:this.kernel.id,open:()=>void i.execute(n,{name:e,path:o,type:r}),icon:()=>r==="console"?d.consoleIcon:r==="notebook"?d.notebookIcon:d.jupyterIcon,label:()=>{if(this._mode==="tree"){return e}const t=this.kernel.id.split("-")[0];return g().createElement(g().Fragment,null,e," ",g().createElement("span",{className:b},"(",t,")"))},labelTitle:()=>o,name:()=>e})}}return t}shutdown(){return this.kernels.shutdown(this.kernel.id)}icon(){return d.kernelIcon}label(){const{kernel:e}=this;const t=e.id.split("-")[0];return g().createElement(g().Fragment,null,this._summary," ",g().createElement("span",{className:b},"(",t,")"))}labelTitle(){var e;const{trans:t}=this;const{id:n}=this.kernel;const i=[`${this._summary}: ${n}`];for(const s of this.sessions.running()){if(this.kernel.id===((e=s.kernel)===null||e===void 0?void 0:e.id)){const{path:e,type:n}=s;i.push(t.__(`%1\nPath: %2`,n,e))}}return i.join("\n\n")}get _summary(){const e=this.children;if(e.length===0){return this.trans.__("No sessions connected")}else if(e.length==1){return e[0].name()}else{return this.trans.__("%1 and %2 more",e[0].name(),e.length-1)}}}e.RunningKernel=n;e.runningChanged=new p.Signal({})})(w||(w={}));var C=n(93037);class x{constructor(e){this._tabsChanged=new p.Signal(this);this._widgets=[];this._labShell=e;this._labShell.layoutModified.connect(this._emitTabsChanged,this)}get tabsChanged(){return this._tabsChanged}addWidget(e){e.title.changed.connect(this._emitTabsChanged,this);this._widgets.push(e)}_emitTabsChanged(){this._widgets.forEach((e=>{e.title.changed.disconnect(this._emitTabsChanged,this)}));this._widgets=[];this._tabsChanged.emit(void 0)}}function S(e,t,n){const i=new x(n);const s=t.load("jupyterlab");e.add({name:s.__("Open Tabs"),supportsMultipleViews:false,running:()=>Array.from(n.widgets("main")).map((e=>{i.addWidget(e);return new o(e)})),shutdownAll:()=>{const e=Array.from(n.widgets("main"));for(const t of e){t.close()}},refreshRunning:()=>void 0,runningChanged:i.tabsChanged,shutdownLabel:s.__("Close"),shutdownAllLabel:s.__("Close All"),shutdownAllConfirmationText:s.__("Are you sure you want to close all open tabs?")});class o{constructor(e){this._widget=e}open(){n.activateById(this._widget.id)}shutdown(){this._widget.close()}icon(){const e=this._widget.title.icon;return e instanceof d.LabIcon?e:d.fileIcon}label(){return this._widget.title.label}labelTitle(){let e;if(this._widget instanceof C.DocumentWidget){e=this._widget.context.path}else{e=this._widget.title.label}return e}}}function k(e,t,n,i,s){const o=s.load("jupyterlab");e.add({name:o.__("Recently Closed"),supportsMultipleViews:false,running:()=>t.recentlyClosed.map((e=>new r(e))),shutdownAll:()=>{for(const e of t.recentlyClosed){t.removeRecent(e,"closed")}},refreshRunning:()=>void 0,runningChanged:t.changed,shutdownLabel:o.__("Forget"),shutdownAllLabel:o.__("Forget All"),shutdownAllConfirmationText:o.__("Are you sure you want to clear recently closed tabs?")});class r{constructor(e){this._recent=e}async open(){const e=this._recent;const i=await t.validate(e);if(!i){return}await n.execute("docmanager:open",{path:e.path,factory:e.factory});t.removeRecent(e,"closed")}shutdown(){t.removeRecent(this._recent,"closed")}icon(){if(!this._recent.factory){return d.fileIcon}const e=i.getFileTypesForPath(this._recent.path);for(const n of e){const e=n.icon;if(e instanceof d.LabIcon){return e}}const t=i.getWidgetFactory(this._recent.factory);if(t){for(const e of t.fileTypes){const t=i.getFileType(e);const n=t===null||t===void 0?void 0:t.icon;if(n instanceof d.LabIcon){return n}}}return d.fileIcon}label(){return c.PathExt.basename(this._recent.path)}labelTitle(){return this._recent.path}}}var j;(function(e){e.kernelNewConsole="running:kernel-new-console";e.kernelNewNotebook="running:kernel-new-notebook";e.kernelOpenSession="running:kernel-open-session";e.kernelShutDown="running:kernel-shut-down";e.kernelShutDownUnused="running:kernel-shut-down-unused";e.showPanel="running:show-panel";e.showModal="running:show-modal"})(j||(j={}));const I={id:"@jupyterlab/running-extension:plugin",description:"Provides the running session managers.",provides:o.IRunningSessionManagers,requires:[l.ITranslator],optional:[i.ILabShell],autoStart:true,activate:(e,t,n)=>{const i=new o.RunningSessionManagers;if(n){S(i,t,n)}void y(i,t,e);return i}};const E={id:"@jupyterlab/running-extension:sidebar",description:"Provides the running session sidebar.",provides:o.IRunningSessionSidebar,requires:[o.IRunningSessionManagers,l.ITranslator],optional:[i.ILayoutRestorer,a.IStateDB],autoStart:true,activate:(e,t,n,i,s)=>{const r=n.load("jupyterlab");const a=new o.RunningSessions(t,n,s);a.id="jp-running-sessions";a.title.caption=r.__("Running Terminals and Kernels");a.title.icon=d.runningIcon;a.node.setAttribute("role","region");a.node.setAttribute("aria-label",r.__("Running Sessions section"));if(i){i.add(a,"running-sessions")}e.shell.add(a,"left",{rank:200,type:"Sessions and Tabs"});e.commands.addCommand(j.showPanel,{label:r.__("Sessions and Tabs"),execute:()=>{e.shell.activateById(a.id)}});return a}};const T={id:"@jupyterlab/running-extension:recently-closed",description:"Adds recently closed documents list.",requires:[o.IRunningSessionManagers,r.IRecentsManager,l.ITranslator],autoStart:true,activate:(e,t,n,i)=>{k(t,n,e.commands,e.docRegistry,i)}};const M={id:"@jupyterlab/running-extension:search-tabs",description:"Adds a widget to search open and closed tabs.",requires:[o.IRunningSessionManagers,l.ITranslator],optional:[s.ICommandPalette,o.IRunningSessionSidebar],autoStart:true,activate:(e,t,n,i,r)=>{const a=n.load("jupyterlab");e.commands.addCommand(j.showModal,{execute:()=>{const e=new o.SearchableSessions(t,n);const i=new s.Dialog({title:a.__("Tabs and Running Sessions"),body:e,buttons:[s.Dialog.okButton({})],hasClose:true});i.addClass("jp-SearchableSessions-modal");return i.launch()},label:a.__("Search Tabs and Running Sessions")});if(i){i.addItem({command:j.showModal,category:a.__("Running")})}if(r){const t=new d.CommandToolbarButton({commands:e.commands,id:j.showModal,icon:d.launcherIcon,label:""});r.toolbar.addItem("open-as-modal",t)}}};const D=[I,E,T,M]},54289:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(79010);var a=n(3579);var l=n(41603);var d=n(94780)},19503:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IRunningSessionManagers:()=>O,IRunningSessionSidebar:()=>B,RunningSessionManagers:()=>F,RunningSessions:()=>q,SearchableSessions:()=>J,SearchableSessionsList:()=>G});var i=n(54158);var s=n.n(i);var o=n(14366);var r=n.n(o);var a=n(30619);var l=n.n(a);var d=n(26331);var c=n.n(d);var h=n(5592);var u=n.n(h);var p=n(90044);var m=n.n(p);var g=n(76326);var f=n.n(g);var v=n(2336);var _=n.n(v);var b=n(1143);var y=n.n(b);var w=n(44914);var C=n.n(w);const x="jp-RunningSessions";const S="jp-SearchableSessions";const k="jp-RunningSessions-section";const j="jp-RunningSessions-sectionContainer";const I="jp-RunningSessions-item";const E="jp-RunningSessions-itemLabel";const T="jp-RunningSessions-itemDetail";const M="jp-RunningSessions-itemShutdown";const D="jp-RunningSessions-shutdownAll";const A="jp-RunningSessions-icon";const P="jp-mod-running-list-view";const L="jp-RunningSessions-viewButton";const R="jp-RunningSessions-collapseButton";const N="jp-running-sessions";const O=new h.Token("@jupyterlab/running:IRunningSessionManagers","A service to add running session managers.");const B=new h.Token("@jupyterlab/running:IRunningSessionsSidebar","A token allowing to modify the running sessions sidebar.");class F{constructor(){this._added=new v.Signal(this);this._managers=[]}get added(){return this._added}add(e){this._managers.push(e);this._added.emit(e);return new p.DisposableDelegate((()=>{const t=this._managers.indexOf(e);if(t>-1){this._managers.splice(t,1)}}))}items(){return this._managers}}function z(e){var t,n;const{runningItem:s}=e;const[o,r]=C().useState(false);const l=(0,w.useRef)(false);const c=[I];const h=(t=s.detail)===null||t===void 0?void 0:t.call(s);const u=s.icon();const p=s.labelTitle?s.labelTitle():"";const m=e.translator||a.nullTranslator;const g=m.load("jupyterlab");const f=e.shutdownItemIcon||d.closeIcon;const v=(n=typeof e.shutdownLabel==="function"?e.shutdownLabel(s):e.shutdownLabel)!==null&&n!==void 0?n:g.__("Shut Down");const _=(0,w.useCallback)((e=>{var t;l.current=true;e.preventDefault();(t=s.shutdown)===null||t===void 0?void 0:t.call(s)}),[s,l]);const b=s.children;const y=!!(b===null||b===void 0?void 0:b.length);const x=(0,w.useCallback)((e=>{if(l.current){return}const t=(0,d.getTreeItemElement)(e.target);if(e.currentTarget!==t){return}if(y){r(!o)}}),[y,o,l]);e.collapseToggled.connect(((e,t)=>r(t)));if(s.className){c.push(s.className)}return C().createElement(C().Fragment,null,C().createElement(i.TreeItem,{className:`${c.join(" ")} jp-TreeItem nested`,onClick:x,"data-context":s.context||"",expanded:!o},u?typeof u==="string"?C().createElement("img",{src:u,className:A,slot:"start"}):C().createElement(u.react,{slot:"start",tag:"span",className:A}):undefined,C().createElement("span",{className:E,title:p,onClick:s.open&&(()=>s.open())},s.label()),h&&C().createElement("span",{className:T},h),s.shutdown&&C().createElement(i.Button,{appearance:"stealth",className:M,onClick:_,title:v,slot:"end"},C().createElement(f.react,{tag:null})),b&&C().createElement(H,{runningItems:b,shutdownItemIcon:f,translator:m,collapseToggled:e.collapseToggled})))}function H(e){const t=e.filter;const n=t?e.runningItems.map((e=>({item:e,score:t(e)}))).filter((({score:e})=>e!==null)).sort(((e,t)=>e.score.score-t.score.score)).map((({item:e})=>e)):e.runningItems;return C().createElement(C().Fragment,null,n.map(((t,n)=>C().createElement(z,{child:e.child,key:n,runningItem:t,shutdownLabel:e.shutdownLabel,shutdownItemIcon:e.shutdownItemIcon,translator:e.translator,collapseToggled:e.collapseToggled}))))}class W extends d.ReactWidget{constructor(e){super();this._filterFn=e=>({score:0});this._filterChanged=new v.Signal(this);this.filter=this.filter.bind(this);this._updateFilter=this._updateFilter.bind(this);this._trans=e.load("jupyterlab");this.addClass("jp-SearchableSessions-filter")}get filterChanged(){return this._filterChanged}render(){return C().createElement(d.FilterBox,{placeholder:this._trans.__("Search"),updateFilter:this._updateFilter,useFuzzyFilter:false,caseSensitive:false})}filter(e){var t;const n=[this._getTextContent(e.label())];for(const i of(t=e.children)!==null&&t!==void 0?t:[]){n.push(this._getTextContent(i.label()))}return this._filterFn(n.join(" "))}_getTextContent(e){if(typeof e==="string"){return e}if(typeof e==="number"){return""+e}if(typeof e==="boolean"){return""+e}if(Array.isArray(e)){return e.map((e=>this._getTextContent(e))).join(" ")}if(e&&(0,w.isValidElement)(e)){return e.props.children.map((e=>this._getTextContent(e))).join(" ")}return""}_updateFilter(e){this._filterFn=e;this._filterChanged.emit()}}class V extends d.ReactWidget{constructor(e){super();this._options=e;this._update=new v.Signal(this);e.manager.runningChanged.connect(this._emitUpdate,this);if(e.filterProvider){e.filterProvider.filterChanged.connect(this._emitUpdate,this)}}get mode(){return this._mode}set mode(e){if(this._mode!==e){this._mode=e;this._update.emit()}}dispose(){v.Signal.clearData(this);super.dispose()}onBeforeShow(e){super.onBeforeShow(e);this._update.emit()}render(){const e=this._options;let t=true;return C().createElement(d.UseSignal,{signal:this._update},(()=>{var n;if(t){t=false}else{e.runningItems=e.manager.running({mode:this.mode})}const s=["jp-TreeView"];if(this.mode==="list"){s.push("jp-mod-flat")}return C().createElement("div",{className:j},C().createElement(i.TreeView,{className:s.join(" ")},C().createElement(H,{runningItems:e.runningItems,shutdownLabel:e.manager.shutdownLabel,shutdownItemIcon:e.manager.shutdownItemIcon,filter:(n=e.filterProvider)===null||n===void 0?void 0:n.filter,translator:e.translator,collapseToggled:e.collapseToggled})))}))}_emitUpdate(){if(!this.isVisible){return}this._update.emit()}}class U extends d.PanelWithToolbar{constructor(e){var t;super();this._buttons=null;this._listView=false;this._collapseToggled=new v.Signal(this);this._viewChanged=new v.Signal(this);this._listView=((t=e.viewMode)!==null&&t!==void 0?t:"tree")==="list";this._manager=e.manager;this._filterProvider=e.filterProvider;const n=e.translator||a.nullTranslator;this._trans=n.load("jupyterlab");this.addClass(k);this.title.label=e.manager.name;this._manager.runningChanged.connect(this._onListChanged,this);if(e.filterProvider){e.filterProvider.filterChanged.connect(this._onListChanged,this)}this._updateEmptyClass();const i=e.manager.running({mode:e.manager.supportsMultipleViews&&!this._listView?"tree":"list"});if(e.showToolbar!==false){this._initializeToolbar(i)}this._listWidget=new V({runningItems:i,collapseToggled:this._collapseToggled,...e});this._listWidget.mode=e.manager.supportsMultipleViews&&!this._listView?"tree":"list";this.addWidget(this._listWidget)}toggleListView(e){const t=typeof e!=="undefined"?e:!this._listView;this._listView=t;if(this._buttons){const e=this._buttons["switch-view"];e.pressed=t}this._collapseToggled.emit(false);if(this._manager.supportsMultipleViews===undefined){this.toggleClass(P,t)}this._updateButtons();this._listWidget.mode=this._manager.supportsMultipleViews&&!this._listView?"tree":"list";this._viewChanged.emit({mode:t?"list":"tree"})}dispose(){if(this.isDisposed){return}v.Signal.clearData(this);super.dispose()}get _shutdownAllLabel(){return this._manager.shutdownAllLabel||this._trans.__("Shut Down All")}_initializeToolbar(e){const t=e.length>0;const n=this._shutdownAllLabel;const i=`${n}?`;const s=()=>{var e;const t=(e=typeof this._manager.shutdownAllConfirmationText==="function"?this._manager.shutdownAllConfirmationText():this._manager.shutdownAllConfirmationText)!==null&&e!==void 0?e:`${n} ${this._manager.name}`;void(0,o.showDialog)({title:i,body:t,buttons:[o.Dialog.cancelButton(),o.Dialog.warnButton({label:n})]}).then((e=>{if(e.button.accept){this._manager.shutdownAll()}}))};const r=new d.ToolbarButton({label:n,className:`${D}${!t?" jp-mod-disabled":""}`,enabled:t,onClick:s.bind(this)});const a=new d.ToolbarButton({className:L,enabled:t,icon:d.tableRowsIcon,pressedIcon:d.treeViewIcon,onClick:()=>this.toggleListView(),tooltip:this._trans.__("Switch to List View"),pressedTooltip:this._trans.__("Switch to Tree View")});const l=new d.ToolbarButton({className:R,enabled:t,icon:d.collapseAllIcon,pressedIcon:d.expandAllIcon,onClick:()=>{const e=!l.pressed;this._collapseToggled.emit(e);l.pressed=e},tooltip:this._trans.__("Collapse All"),pressedTooltip:this._trans.__("Expand All")});this._buttons={"switch-view":a,"collapse-expand":l,"shutdown-all":r};this._updateButtons();this._manager.runningChanged.connect(this._updateButtons,this);if(this._manager.toolbarButtons){this._manager.toolbarButtons.forEach((e=>this.toolbar.addItem(e instanceof d.CommandToolbarButton?e.commandId:e.id,e)))}for(const o of["collapse-expand","switch-view","shutdown-all"]){this.toolbar.addItem(o,this._buttons[o])}this.toolbar.addClass("jp-RunningSessions-toolbar");this._toolbar.node.setAttribute("aria-label",this._trans.__("%1 toolbar",this.title.label))}_onListChanged(){this._updateButtons();this._updateEmptyClass()}_updateEmptyClass(){if(this._filterProvider){const e=this._manager.running({mode:this._manager.supportsMultipleViews&&!this._listView?"tree":"list"}).filter(this._filterProvider.filter);const t=e.length===0;if(t){this.node.classList.toggle("jp-mod-empty",true)}else{this.node.classList.toggle("jp-mod-empty",false)}}}get viewChanged(){return this._viewChanged}_updateButtons(){if(!this._buttons){return}let e=this._manager.running({mode:this._manager.supportsMultipleViews&&!this._listView?"tree":"list"});const t=e.length>0;const n=this._manager.supportsMultipleViews===undefined?e.filter((e=>e.children)).length!==0:this._manager.supportsMultipleViews;const i=n&&!this._buttons["switch-view"].pressed;this._buttons["switch-view"].node.style.display=n?"flex":"none";this._buttons["collapse-expand"].node.style.display=i?"flex":"none";this._buttons["collapse-expand"].enabled=t;this._buttons["switch-view"].enabled=t;this._buttons["shutdown-all"].enabled=t}}class q extends d.SidePanel{constructor(e,t,n){super();this.managers=e;this._stateDB=n!==null&&n!==void 0?n:null;this.translator=t!==null&&t!==void 0?t:a.nullTranslator;const i=this.translator.load("jupyterlab");this.addClass(x);this.toolbar.addItem("refresh",new d.ToolbarButton({tooltip:i.__("Refresh List"),icon:d.refreshIcon,onClick:()=>e.items().forEach((e=>e.refreshRunning()))}));e.items().forEach((t=>this.addSection(e,t)));e.added.connect(this.addSection,this)}dispose(){if(this.isDisposed){return}this.managers.added.disconnect(this.addSection,this);super.dispose()}async addSection(e,t){const n=new U({manager:t,translator:this.translator});this.addWidget(n);const i=await this._getState();const s=i.listViewSections;const o=t.name;if(s&&s.includes(o)){n.toggleListView(true)}n.viewChanged.connect((async(e,t)=>{await this._updateState(o,t.mode)}))}async _updateState(e,t){var n;const i=await this._getState();let s=(n=i.listViewSections)!==null&&n!==void 0?n:[];if(t==="list"&&!s.includes(e)){s.push(e)}else{s=s.filter((t=>t!==e))}const o={listViewSections:s};if(this._stateDB){await this._stateDB.save(N,o)}}async _getState(){var e;if(!this._stateDB){return{}}return(e=await this._stateDB.fetch(N))!==null&&e!==void 0?e:{}}}class $ extends U{constructor(e){super(e);const t=document.createElement("h3");t.className="jp-SearchableSessions-title";const n=t.appendChild(document.createElement("span"));n.className="jp-SearchableSessions-titleLabel";n.textContent=this.title.label;this.node.insertAdjacentElement("afterbegin",t)}}class K extends b.Widget{constructor(e){super();const t=e.load("jupyterlab");this.addClass("jp-SearchableSessions-emptyIndicator");this.node.textContent=t.__("No matches")}}class J extends b.Panel{constructor(e,t){super();this._activeIndex=0;this._translator=t!==null&&t!==void 0?t:a.nullTranslator;this.addClass(x);this.addClass(S);this._filterWidget=new W(this._translator);this.addWidget(this._filterWidget);this._list=new G(e,this._filterWidget,t);this.addWidget(this._list);this._filterWidget.filterChanged.connect((()=>{this._activeIndex=0;this._updateActive(0)}),this)}dispose(){if(this.isDisposed){return}v.Signal.clearData(this);super.dispose()}getValue(){const e=[...this.node.querySelectorAll("."+E)];const t=Math.min(Math.max(this._activeIndex,0),e.length-1);e[t].click()}handleEvent(e){switch(e.type){case"keydown":this._evtKeydown(e);break}}onAfterAttach(e){this._forceFocusInput();this.node.addEventListener("keydown",this);setTimeout((()=>{this._updateActive(0)}),0)}onAfterDetach(e){this.node.removeEventListener("keydown",this)}_forceFocusInput(){var e;(e=this._filterWidget.renderPromise)===null||e===void 0?void 0:e.then((()=>{var e;const t=this._filterWidget.node.querySelector("jp-search");const n=(e=t===null||t===void 0?void 0:t.shadowRoot)===null||e===void 0?void 0:e.querySelector("input");if(!n){console.warn("Input element not found, cannot focus");return}n.focus()})).catch(console.warn)}_evtKeydown(e){if(e.key==="ArrowDown"||e.key==="ArrowUp"){const t=e.key==="ArrowDown"?+1:-1;const n=this._updateActive(t);if(n){e.preventDefault()}}}_updateActive(e){const t=[...this.node.querySelectorAll("."+I)].filter((e=>e.checkVisibility()));if(!t.length){return false}for(const s of t){if(s.classList.contains("jp-mod-active")){s.classList.toggle("jp-mod-active",false)}}const n=this._activeIndex;let i=null;if(n===-1){i=e===+1?0:t.length-1}else{i=Math.min(Math.max(n+e,0),t.length-1)}if(i!==null){t[i].classList.add("jp-mod-active");g.ElementExt.scrollIntoViewIfNeeded(this._list.node,t[i]);this._activeIndex=i;return true}return false}}class G extends b.Panel{constructor(e,t,n){super();this._managers=e;this._translator=n!==null&&n!==void 0?n:a.nullTranslator;this._filterWidget=t;this.addClass("jp-SearchableSessions-list");this._emptyIndicator=new K(this._translator);this.addWidget(this._emptyIndicator);e.items().forEach((t=>this.addSection(e,t)));e.added.connect(this.addSection,this)}dispose(){if(this.isDisposed){return}this._managers.added.disconnect(this.addSection,this);super.dispose()}addSection(e,t){const n=new $({manager:t,translator:this._translator,showToolbar:false,filterProvider:this._filterWidget,viewMode:"list"});n.toggleListView(true);this.addWidget(n);this.addWidget(this._emptyIndicator)}}},94780:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(18799);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},28560:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>y});var i=n(28548);var s=n.n(i);const o={id:"@jupyterlab/services-extension:config-section-manager",autoStart:true,provides:i.IConfigSectionManager,optional:[i.IServerSettings],description:"Provides the config section manager.",activate:(e,t)=>{const n=new i.ConfigSectionManager({serverSettings:t});i.ConfigSection._setConfigSectionManager(n);return n}};const r={id:"@jupyterlab/services-extension:connection-status",autoStart:true,provides:i.IConnectionStatus,description:"Provides the default connection status.",activate:()=>new i.ConnectionStatus};const a={id:"@jupyterlab/services-extension:contents-manager",description:"The default contents manager plugin.",autoStart:true,provides:i.IContentsManager,requires:[i.IDefaultDrive,i.IServerSettings],activate:(e,t,n)=>new i.ContentsManager({defaultDrive:t,serverSettings:n})};const l={id:"@jupyterlab/services-extension:default-drive",description:"The default drive for the contents manager.",autoStart:true,provides:i.IDefaultDrive,optional:[i.IServerSettings],activate:(e,t)=>new i.Drive({serverSettings:t!==null&&t!==void 0?t:undefined})};const d={id:"@jupyterlab/services-extension:event-manager",description:"The event manager plugin.",autoStart:true,provides:i.IEventManager,optional:[i.IServerSettings],activate:(e,t)=>new i.EventManager({serverSettings:t})};const c={id:"@jupyterlab/services-extension:kernel-manager",description:"The kernel manager plugin.",autoStart:true,provides:i.IKernelManager,optional:[i.IServerSettings],activate:(e,t)=>new i.KernelManager({serverSettings:t})};const h={id:"@jupyterlab/services-extension:kernel-spec-manager",description:"The kernel spec manager plugin.",autoStart:true,provides:i.IKernelSpecManager,optional:[i.IServerSettings],activate:(e,t)=>new i.KernelSpecManager({serverSettings:t})};const u={id:"@jupyterlab/services-extension:nbconvert-manager",description:"The nbconvert manager plugin.",autoStart:true,provides:i.INbConvertManager,optional:[i.IServerSettings],activate:(e,t)=>new i.NbConvertManager({serverSettings:t})};const p={id:"@jupyterlab/services-extension:session-manager",description:"The session manager plugin.",autoStart:true,provides:i.ISessionManager,requires:[i.IKernelManager],optional:[i.IServerSettings],activate:(e,t,n)=>new i.SessionManager({kernelManager:t,serverSettings:n})};const m={id:"@jupyterlab/services-extension:setting-manager",description:"The setting manager plugin.",autoStart:true,provides:i.ISettingManager,optional:[i.IServerSettings],activate:(e,t)=>new i.SettingManager({serverSettings:t})};const g={id:"@jupyterlab/services-extension:terminal-manager",description:"The terminal manager plugin.",autoStart:true,provides:i.ITerminalManager,optional:[i.IServerSettings],activate:(e,t)=>new i.TerminalManager({serverSettings:t})};const f={id:"@jupyterlab/services-extension:user-manager",description:"The user manager plugin.",autoStart:true,provides:i.IUserManager,optional:[i.IServerSettings],activate:(e,t)=>new i.UserManager({serverSettings:t})};const v={id:"@jupyterlab/services-extension:workspace-manager",description:"The workspace manager plugin.",autoStart:true,provides:i.IWorkspaceManager,optional:[i.IServerSettings],activate:(e,t)=>new i.WorkspaceManager({serverSettings:t})};const _={id:"@jupyterlab/services-extension:server-settings",description:"The default server settings plugin.",autoStart:true,provides:i.IServerSettings,activate:e=>i.ServerConnection.makeSettings()};const b={id:"@jupyterlab/services-extension:service-manager",description:"The default service manager plugin.",autoStart:true,provides:i.IServiceManager,optional:[i.IConnectionStatus,i.IContentsManager,i.IDefaultDrive,i.IServerSettings,i.IEventManager,i.IKernelManager,i.IKernelSpecManager,i.INbConvertManager,i.ISessionManager,i.ISettingManager,i.ITerminalManager,i.IUserManager,i.IWorkspaceManager],activate:(e,t,n,s,o,r,a,l,d,c,h,u,p,m)=>new i.ServiceManager({standby:()=>!(t===null||t===void 0?void 0:t.isConnected)||"when-hidden",contents:n,defaultDrive:s,serverSettings:o,events:r,kernels:a,kernelspecs:l,nbconvert:d,sessions:c,settings:h,terminals:u,user:p,workspaces:m})};const y=[o,r,a,l,d,c,h,u,p,m,_,b,g,f,v]},5412:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseManager=void 0;const i=n(2336);const s=n(1089);class o{constructor(e){var t;this._isDisposed=false;this._disposed=new i.Signal(this);this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:s.ServerConnection.makeSettings()}get disposed(){return this._disposed}get isDisposed(){return this._isDisposed}get isActive(){return true}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._disposed.emit(undefined);i.Signal.clearData(this)}}t.BaseManager=o},44816:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BuildManager=void 0;const i=n(30397);const s=n(1089);const o="api/build";class r{constructor(e={}){var t;this._url="";this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:s.ServerConnection.makeSettings();const{baseUrl:n,appUrl:r}=this.serverSettings;this._url=i.URLExt.join(n,r,o)}get isAvailable(){return i.PageConfig.getOption("buildAvailable").toLowerCase()==="true"}get shouldCheck(){return i.PageConfig.getOption("buildCheck").toLowerCase()==="true"}getStatus(){const{_url:e,serverSettings:t}=this;const n=s.ServerConnection.makeRequest(e,{},t);return n.then((e=>{if(e.status!==200){throw new s.ServerConnection.ResponseError(e)}return e.json()})).then((e=>{if(typeof e.status!=="string"){throw new Error("Invalid data")}if(typeof e.message!=="string"){throw new Error("Invalid data")}return e}))}build(){const{_url:e,serverSettings:t}=this;const n={method:"POST"};const i=s.ServerConnection.makeRequest(e,n,t);return i.then((e=>{if(e.status===400){throw new s.ServerConnection.ResponseError(e,"Build aborted")}if(e.status!==200){const t=`Build failed with ${e.status}.\n\n If you are experiencing the build failure after installing an extension (or trying to include previously installed extension after updating JupyterLab) please check the extension repository for new installation instructions as many extensions migrated to the prebuilt extensions system which no longer requires rebuilding JupyterLab (but uses a different installation procedure, typically involving a package manager such as 'pip' or 'conda').\n\n If you specifically intended to install a source extension, please run 'jupyter lab build' on the server for full output.`;throw new s.ServerConnection.ResponseError(e,t)}}))}cancel(){const{_url:e,serverSettings:t}=this;const n={method:"DELETE"};const i=s.ServerConnection.makeRequest(e,n,t);return i.then((e=>{if(e.status!==204){throw new s.ServerConnection.ResponseError(e)}}))}}t.BuildManager=r},39851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ConfigWithDefaults=t.ConfigSection=t.ConfigSectionManager=void 0;const i=n(30397);const s=n(50608);const o="api/config";class r{constructor(e){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:s.ServerConnection.makeSettings()}async create(e){const t=new l({...e,serverSettings:this.serverSettings});await t.load();return t}}t.ConfigSectionManager=r;var a;(function(e){async function t(e){if(!n){const t=new l(e);await t.load();return t}const t=await n.create(e);return t}e.create=t;let n;function i(e){if(n){throw new Error("ConfigSectionManager already set. If you would like to create a config section, use the `IConfigSectionManager` token in a plugin.")}n=e}e._setConfigSectionManager=i})(a||(t.ConfigSection=a={}));class l{constructor(e){var t;this._url="unknown";const n=this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:s.ServerConnection.makeSettings();this._url=i.URLExt.join(n.baseUrl,o,encodeURIComponent(e.name))}get data(){return this._data}async load(){const e=await s.ServerConnection.makeRequest(this._url,{},this.serverSettings);if(e.status!==200){const t=await s.ServerConnection.ResponseError.create(e);throw t}this._data=await e.json()}async update(e){this._data={...this._data,...e};const t={method:"PATCH",body:JSON.stringify(e)};const n=await s.ServerConnection.makeRequest(this._url,t,this.serverSettings);if(n.status!==200){const e=await s.ServerConnection.ResponseError.create(n);throw e}this._data=await n.json();return this._data}}class d{constructor(e){var t,n;this._className="";this._section=e.section;this._defaults=(t=e.defaults)!==null&&t!==void 0?t:{};this._className=(n=e.className)!==null&&n!==void 0?n:""}get(e){const t=this._classData();return e in t?t[e]:this._defaults[e]}set(e,t){const n={};n[e]=t;if(this._className){const e={};e[this._className]=n;return this._section.update(e)}else{return this._section.update(n)}}_classData(){const e=this._section.data;if(this._className&&this._className in e){return e[this._className]}return e}}t.ConfigWithDefaults=d},39923:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ConnectionStatus=void 0;class n{constructor(){this.isConnected=true}}t.ConnectionStatus=n},97375:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.RestContentProvider=t.Drive=t.ContentsManager=t.Contents=void 0;const r=n(30397);const a=n(90044);const l=n(2336);const d=n(50608);const c=o(n(77821));const h="api/contents";const u="files";var p;(function(e){function t(e){c.validateContentsModel(e)}e.validateContentsModel=t;function n(e){c.validateCheckpointModel(e)}e.validateCheckpointModel=n})(p||(t.Contents=p={}));class m{constructor(e={}){var t,n;this._isDisposed=false;this._additionalDrives=new Map;this._fileChanged=new l.Signal(this);const i=this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:d.ServerConnection.makeSettings();this._defaultDrive=(n=e.defaultDrive)!==null&&n!==void 0?n:new g({serverSettings:i});this._defaultDrive.fileChanged.connect(this._onFileChanged,this)}get defaultDrive(){return this._defaultDrive}get fileChanged(){return this._fileChanged}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;l.Signal.clearData(this)}addDrive(e){this._additionalDrives.set(e.name,e);e.fileChanged.connect(this._onFileChanged,this)}getSharedModelFactory(e,t){var n,i;const[s]=this._driveForPath(e);const o=(n=s.contentProviderRegistry)===null||n===void 0?void 0:n.getProvider(t===null||t===void 0?void 0:t.contentProviderId);if(o===null||o===void 0?void 0:o.sharedModelFactory){return o.sharedModelFactory}return(i=s.sharedModelFactory)!==null&&i!==void 0?i:null}localPath(e){const t=e.split("/");const n=t[0].split(":");if(n.length===1||!this._additionalDrives.has(n[0])){return r.PathExt.removeSlash(e)}return r.PathExt.join(n.slice(1).join(":"),...t.slice(1))}normalize(e){const t=e.split(":");if(t.length===1){return r.PathExt.normalize(e)}return`${t[0]}:${r.PathExt.normalize(t.slice(1).join(":"))}`}resolvePath(e,t){const n=this.driveName(e);const i=this.localPath(e);const s=r.PathExt.resolve("/",i,t);return n?`${n}:${s}`:s}driveName(e){const t=e.split("/");const n=t[0].split(":");if(n.length===1){return""}if(this._additionalDrives.has(n[0])){return n[0]}return""}get(e,t){const[n,i]=this._driveForPath(e);return n.get(i,t).then((e=>{const t=[];if(e.type==="directory"&&e.content){for(const i of e.content){t.push({...i,path:this._toGlobalPath(n,i.path)})}return{...e,path:this._toGlobalPath(n,i),content:t,serverPath:e.path}}else{return{...e,path:this._toGlobalPath(n,i),serverPath:e.path}}}))}getDownloadUrl(e){const[t,n]=this._driveForPath(e);return t.getDownloadUrl(n)}newUntitled(e={}){if(e.path){const t=this.normalize(e.path);const[n,i]=this._driveForPath(t);return n.newUntitled({...e,path:i}).then((e=>({...e,path:r.PathExt.join(t,e.name),serverPath:e.path})))}else{return this._defaultDrive.newUntitled(e)}}delete(e){const[t,n]=this._driveForPath(e);return t.delete(n)}rename(e,t){const[n,i]=this._driveForPath(e);const[s,o]=this._driveForPath(t);if(n!==s){throw Error("ContentsManager: renaming files must occur within a Drive")}return n.rename(i,o).then((e=>({...e,path:this._toGlobalPath(n,o),serverPath:e.path})))}save(e,t={}){const n=this.normalize(e);const[i,s]=this._driveForPath(e);return i.save(s,{...t,path:s}).then((e=>({...e,path:n,serverPath:e.path})))}copy(e,t){const[n,i]=this._driveForPath(e);const[s,o]=this._driveForPath(t);if(n===s){return n.copy(i,o).then((e=>({...e,path:this._toGlobalPath(n,e.path),serverPath:e.path})))}else{throw Error("Copying files between drives is not currently implemented")}}createCheckpoint(e){const[t,n]=this._driveForPath(e);return t.createCheckpoint(n)}listCheckpoints(e){const[t,n]=this._driveForPath(e);return t.listCheckpoints(n)}restoreCheckpoint(e,t){const[n,i]=this._driveForPath(e);return n.restoreCheckpoint(i,t)}deleteCheckpoint(e,t){const[n,i]=this._driveForPath(e);return n.deleteCheckpoint(i,t)}_toGlobalPath(e,t){if(e===this._defaultDrive){return r.PathExt.removeSlash(t)}else{return`${e.name}:${r.PathExt.removeSlash(t)}`}}_driveForPath(e){const t=this.driveName(e);const n=this.localPath(e);if(t){return[this._additionalDrives.get(t),n]}else{return[this._defaultDrive,n]}}_onFileChanged(e,t){var n,i;if(e===this._defaultDrive){this._fileChanged.emit(t)}else{let s=null;let o=null;if((n=t.newValue)===null||n===void 0?void 0:n.path){s={...t.newValue,path:this._toGlobalPath(e,t.newValue.path)}}if((i=t.oldValue)===null||i===void 0?void 0:i.path){o={...t.oldValue,path:this._toGlobalPath(e,t.oldValue.path)}}this._fileChanged.emit({type:t.type,newValue:s,oldValue:o})}}}t.ContentsManager=m;class g{constructor(e={}){var t,n,i;this._isDisposed=false;this._fileChanged=new l.Signal(this);this.name=(t=e.name)!==null&&t!==void 0?t:"Default";this._apiEndpoint=(n=e.apiEndpoint)!==null&&n!==void 0?n:h;this.serverSettings=(i=e.serverSettings)!==null&&i!==void 0?i:d.ServerConnection.makeSettings();const s=new _({apiEndpoint:this._apiEndpoint,serverSettings:this.serverSettings});this.contentProviderRegistry=new v({defaultProvider:s});this.contentProviderRegistry.fileChanged.connect(((e,t)=>{this._fileChanged.emit(t)}))}get fileChanged(){return this._fileChanged}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;l.Signal.clearData(this)}async get(e,t){const n=this.contentProviderRegistry.getProvider(t===null||t===void 0?void 0:t.contentProviderId);return n.get(e,t)}getDownloadUrl(e){const t=this.serverSettings.baseUrl;let n=r.URLExt.join(t,u,r.URLExt.encodeParts(e));let i="";try{i=document.cookie}catch(o){}const s=i.match("\\b_xsrf=([^;]*)\\b");if(s){const e=new URL(n);e.searchParams.append("_xsrf",s[1]);n=e.toString()}return Promise.resolve(n)}async newUntitled(e={}){var t;let n="{}";if(e){if(e.ext){e.ext=f.normalizeExtension(e.ext)}n=JSON.stringify(e)}const i=this.serverSettings;const s=this._getUrl((t=e.path)!==null&&t!==void 0?t:"");const o={method:"POST",body:n};const r=await d.ServerConnection.makeRequest(s,o,i);if(r.status!==201){const e=await d.ServerConnection.ResponseError.create(r);throw e}const a=await r.json();c.validateContentsModel(a);this._fileChanged.emit({type:"new",oldValue:null,newValue:a});return a}async delete(e){const t=this._getUrl(e);const n=this.serverSettings;const i={method:"DELETE"};const s=await d.ServerConnection.makeRequest(t,i,n);if(s.status!==204){const e=await d.ServerConnection.ResponseError.create(s);throw e}this._fileChanged.emit({type:"delete",oldValue:{path:e},newValue:null})}async rename(e,t){const n=this.serverSettings;const i=this._getUrl(e);const s={method:"PATCH",body:JSON.stringify({path:t})};const o=await d.ServerConnection.makeRequest(i,s,n);if(o.status!==200){const e=await d.ServerConnection.ResponseError.create(o);throw e}const r=await o.json();c.validateContentsModel(r);this._fileChanged.emit({type:"rename",oldValue:{path:e},newValue:r});return r}async save(e,t={}){const n=this.contentProviderRegistry.getProvider(t===null||t===void 0?void 0:t.contentProviderId);const i=await n.save(e,t);this._fileChanged.emit({type:"save",oldValue:null,newValue:i});return i}async copy(e,t){const n=this.serverSettings;const i=this._getUrl(t);const s={method:"POST",body:JSON.stringify({copy_from:e})};const o=await d.ServerConnection.makeRequest(i,s,n);if(o.status!==201){const e=await d.ServerConnection.ResponseError.create(o);throw e}const r=await o.json();c.validateContentsModel(r);this._fileChanged.emit({type:"new",oldValue:null,newValue:r});return r}async createCheckpoint(e){const t=this._getUrl(e,"checkpoints");const n={method:"POST"};const i=await d.ServerConnection.makeRequest(t,n,this.serverSettings);if(i.status!==201){const e=await d.ServerConnection.ResponseError.create(i);throw e}const s=await i.json();c.validateCheckpointModel(s);return s}async listCheckpoints(e){const t=this._getUrl(e,"checkpoints");const n=await d.ServerConnection.makeRequest(t,{},this.serverSettings);if(n.status!==200){const e=await d.ServerConnection.ResponseError.create(n);throw e}const i=await n.json();if(!Array.isArray(i)){throw new Error("Invalid Checkpoint list")}for(let s=0;sr.URLExt.encodeParts(e)));const n=this.serverSettings.baseUrl;return r.URLExt.join(n,this._apiEndpoint,...t)}}t.Drive=g;var f;(function(e){function t(e){if(e.length>0&&e.indexOf(".")!==0){e=`.${e}`}return e}e.normalizeExtension=t})(f||(f={}));class v{constructor(e){this._providers=new Map;this._fileChanged=new l.Signal(this);this.register("default",e.defaultProvider);this._defaultProvider=e.defaultProvider}register(e,t){if(this._providers.has(e)){throw Error(`Provider with ${e} identifier was already registered on this drive`)}this._providers.set(e,t);const n=(e,t)=>{this._fileChanged.emit(t)};if(t.fileChanged){t.fileChanged.connect(n)}return new a.DisposableDelegate((()=>{if(t.fileChanged){t.fileChanged.disconnect(n)}if(this._providers.has(e)){this._providers.delete(e)}}))}getProvider(e){if(!e){return this._defaultProvider}const t=this._providers.get(e);if(!t){throw Error(`Provider ${e} is not registered`)}return t}get fileChanged(){return this._fileChanged}}class _{constructor(e){this._options=e}async get(e,t){let n=this._getUrl(e);if(t){if(t.type==="notebook"){delete t["format"]}const e=t.content?"1":"0";const i=t.hash?"1":"0";const s={...t,content:e,hash:i};n+=r.URLExt.objectToQueryString(s)}const i=this._options.serverSettings;const s=await d.ServerConnection.makeRequest(n,{},i);if(s.status!==200){const e=await d.ServerConnection.ResponseError.create(s);throw e}const o=await s.json();c.validateContentsModel(o);return o}async save(e,t={}){const n=this._options.serverSettings;const i=this._getUrl(e);const s={method:"PUT",body:JSON.stringify(t)};const o=await d.ServerConnection.makeRequest(i,s,n);if(o.status!==200&&o.status!==201){const e=await d.ServerConnection.ResponseError.create(o);throw e}const r=await o.json();c.validateContentsModel(r);return r}_getUrl(...e){const t=e.map((e=>r.URLExt.encodeParts(e)));const n=this._options.serverSettings.baseUrl;return r.URLExt.join(n,this._options.apiEndpoint,...t)}}t.RestContentProvider=_},77821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateContentsModel=s;t.validateCheckpointModel=o;const i=n(1480);function s(e){(0,i.validateProperty)(e,"name","string");(0,i.validateProperty)(e,"path","string");(0,i.validateProperty)(e,"type","string");(0,i.validateProperty)(e,"created","string");(0,i.validateProperty)(e,"last_modified","string");(0,i.validateProperty)(e,"mimetype","object");(0,i.validateProperty)(e,"content","object");(0,i.validateProperty)(e,"format","object")}function o(e){(0,i.validateProperty)(e,"id","string");(0,i.validateProperty)(e,"last_modified","string")}},1091:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EventManager=void 0;const i=n(30397);const s=n(26568);const o=n(2336);const r=n(1089);const a="api/events";class l{constructor(e={}){var t;this._socket=null;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:r.ServerConnection.makeSettings();this._poll=new s.Poll({factory:()=>this._subscribe()});this._stream=new o.Stream(this);void this._poll.start()}get isDisposed(){return this._poll.isDisposed}get stream(){return this._stream}dispose(){if(this.isDisposed){return}this._poll.dispose();const e=this._socket;if(e){this._socket=null;e.onopen=()=>undefined;e.onerror=()=>undefined;e.onmessage=()=>undefined;e.onclose=()=>undefined;e.close()}o.Signal.clearData(this);this._stream.stop()}async emit(e){const{serverSettings:t}=this;const{baseUrl:n}=t;const{makeRequest:s,ResponseError:o}=r.ServerConnection;const l=i.URLExt.join(n,a);const d={body:JSON.stringify(e),method:"POST"};const c=await s(l,d,t);if(c.status!==204){throw new o(c)}}_subscribe(){return new Promise(((e,t)=>{if(this.isDisposed){return}const{appendToken:n,token:s,WebSocket:o,wsUrl:r}=this.serverSettings;let l=i.URLExt.join(r,a,"subscribe");if(n&&s!==""){l+=`?token=${encodeURIComponent(s)}`}const d=this._socket=new o(l);const c=this._stream;d.onclose=()=>t(new Error("EventManager socket closed"));d.onmessage=e=>e.data&&c.emit(JSON.parse(e.data))}))}}t.EventManager=l},50608:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});s(n(5412),t);s(n(39851),t);s(n(39923),t);s(n(97375),t);s(n(1091),t);s(n(14272),t);s(n(76807),t);s(n(90139),t);s(n(1089),t);s(n(86923),t);s(n(95399),t);s(n(67569),t);s(n(80856),t);s(n(18430),t);s(n(90362),t);s(n(93892),t)},52570:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.CommHandler=t.CommsOverSubshells=void 0;const r=n(5592);const a=n(90044);const l=o(n(59798));var d;(function(e){e["Disabled"]="disabled";e["PerComm"]="perComm";e["PerCommTarget"]="perCommTarget"})(d||(t.CommsOverSubshells=d={}));class c extends a.DisposableDelegate{constructor(e,t,n,i,s){super(i);this._subshellStarted=new r.PromiseDelegate;this._subshellId=null;this._target="";this._id="";this._id=t;this._target=e;this._kernel=n;this._kernel.statusChanged.connect((()=>{if(this._kernel.status==="restarting"){this._cleanSubshells()}}));this.commsOverSubshells=s!==null&&s!==void 0?s:d.PerCommTarget}get commId(){return this._id}get targetName(){return this._target}get subshellId(){return this._subshellId}get subshellStarted(){return this._subshellStarted.promise}get commsOverSubshells(){return this._commsOverSubshells}set commsOverSubshells(e){this._commsOverSubshells=e;if(this._commsOverSubshells===d.Disabled){this._maybeCloseSubshell()}else{void this._maybeStartSubshell()}}get onClose(){return this._onClose}set onClose(e){this._onClose=e}get onMsg(){return this._onMsg}set onMsg(e){this._onMsg=e}open(e,t,n=[]){if(this.isDisposed||this._kernel.isDisposed){throw new Error("Cannot open")}const i=l.createMessage({msgType:"comm_open",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,subshellId:this._subshellId||this._kernel.subshellId,content:{comm_id:this._id,target_name:this._target,data:e!==null&&e!==void 0?e:{}},metadata:t,buffers:n});return this._kernel.sendShellMessage(i,false,true)}send(e,t,n=[],i=true){if(this.isDisposed||this._kernel.isDisposed){throw new Error("Cannot send")}const s=l.createMessage({msgType:"comm_msg",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,subshellId:this._subshellId||this._kernel.subshellId,content:{comm_id:this._id,data:e},metadata:t,buffers:n});return this._kernel.sendShellMessage(s,false,i)}close(e,t,n=[]){if(this.isDisposed||this._kernel.isDisposed){throw new Error("Cannot close")}const i=l.createMessage({msgType:"comm_close",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,subshellId:this._subshellId||this._kernel.subshellId,content:{comm_id:this._id,data:e!==null&&e!==void 0?e:{}},metadata:t,buffers:n});const s=this._kernel.sendShellMessage(i,false,true);const o=this._onClose;if(o){const i=l.createMessage({msgType:"comm_close",channel:"iopub",username:this._kernel.username,session:this._kernel.clientId,subshellId:this._subshellId||this._kernel.subshellId,content:{comm_id:this._id,data:e!==null&&e!==void 0?e:{}},metadata:t,buffers:n});void o(i)}this.dispose();return s}dispose(){this._maybeCloseSubshell();super.dispose()}_cleanSubshells(){c._commTargetSubShellsId={}}async _maybeStartSubshell(){await this._kernel.info;if(!this._kernel.supportsSubshells){return}if(this._commsOverSubshells===d.PerComm){const e=await this._kernel.requestCreateSubshell({}).done;this._subshellId=e.content.subshell_id;this._subshellStarted.resolve();return}if(c._commTargetSubShellsId[this._target]){this._subshellId=await c._commTargetSubShellsId[this._target];this._subshellStarted.resolve()}else{c._commTargetSubShellsId[this._target]=this._kernel.requestCreateSubshell({}).done.then((e=>{this._subshellId=e.content.subshell_id;return this._subshellId}));await c._commTargetSubShellsId[this._target];this._subshellStarted.resolve()}}_maybeCloseSubshell(){if(this._commsOverSubshells!==d.PerComm){this._subshellId=null;return}if(this._subshellId&&this._kernel.status!=="dead"){this._kernel.requestDeleteSubshell({subshell_id:this._subshellId},true)}this._subshellId=null}}t.CommHandler=c;c._commTargetSubShellsId={}},45089:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.KernelConnection=void 0;const r=n(30397);const a=n(5592);const l=n(2336);const d=n(50608);const c=n(52570);const h=o(n(59798));const u=n(46073);const p=o(n(38872));const m=n(38662);const g=n(321);const f=3e3;const v="_RESTARTING_";const _="";class b{constructor(e){var t,n,i,s,o,c,u,f;this._createSocket=(e=true)=>{this._errorIfDisposed();this._clearSocket();this._updateConnectionStatus("connecting");const t=this.serverSettings;const n=r.URLExt.join(t.wsUrl,m.KERNEL_SERVICE_URL,encodeURIComponent(this._id));const i=n.replace(/^((?:\w+:)?\/\/)(?:[^@\/]+@)/,"$1");console.debug(`Starting WebSocket: ${i}`);let s=r.URLExt.join(n,"channels?session_id="+encodeURIComponent(this._clientId));const o=t.token;if(t.appendToken&&o!==""){s=s+`&token=${encodeURIComponent(o)}`}const a=e?this._supportedProtocols:[];this._ws=new t.WebSocket(s,a);this._ws.binaryType="arraybuffer";let l=false;const c=async e=>{var t,n;if(this._isDisposed){return}this._reason="";this._model=undefined;try{const t=await this._kernelAPIClient.getModel(this._id);this._model=t;if((t===null||t===void 0?void 0:t.execution_state)==="dead"){this._updateStatus("dead")}else{this._onWSClose(e)}}catch(i){if(i instanceof d.ServerConnection.NetworkError||((t=i.response)===null||t===void 0?void 0:t.status)===503||((n=i.response)===null||n===void 0?void 0:n.status)===424){const t=y.getRandomIntInclusive(10,30)*1e3;setTimeout(c,t,e)}else{this._reason="Kernel died unexpectedly";this._updateStatus("dead")}}return};const h=async e=>{if(l){return}l=true;await c(e);return};this._ws.onmessage=this._onWSMessage;this._ws.onopen=this._onWSOpen;this._ws.onclose=h;this._ws.onerror=h};this._onWSOpen=e=>{if(this._ws.protocol!==""&&!this._supportedProtocols.includes(this._ws.protocol)){console.log("Server selected unknown kernel wire protocol:",this._ws.protocol);this._updateStatus("dead");throw new Error(`Unknown kernel wire protocol: ${this._ws.protocol}`)}this._selectedProtocol=this._ws.protocol;this._ws.onclose=this._onWSClose;this._ws.onerror=this._onWSClose;this._updateConnectionStatus("connected")};this._onWSMessage=e=>{let t;try{t=this.serverSettings.serializer.deserialize(e.data,this._ws.protocol);p.validateMessage(t)}catch(n){n.message=`Kernel message validation error: ${n.message}`;throw n}this._kernelSession=t.header.session;this._msgChain=this._msgChain.then((()=>this._handleMessage(t))).catch((e=>{if(e.message.startsWith("Canceled future for ")){console.error(e)}}));this._anyMessage.emit({msg:t,direction:"recv"})};this._onWSClose=e=>{if(!this.isDisposed){this._reconnect()}};this._id="";this._name="";this._status="unknown";this._connectionStatus="connecting";this._kernelSession="";this._isDisposed=false;this._ws=null;this._username="";this._reconnectLimit=7;this._reconnectAttempt=0;this._reconnectTimeout=null;this._supportedProtocols=Object.values(h.supportedKernelWebSocketProtocols);this._selectedProtocol="";this._commsOverSubshells=d.CommsOverSubshells.PerCommTarget;this._futures=new Map;this._comms=new Map;this._targetRegistry=Object.create(null);this._info=new a.PromiseDelegate;this._pendingMessages=[];this._statusChanged=new l.Signal(this);this._connectionStatusChanged=new l.Signal(this);this._disposed=new l.Signal(this);this._iopubMessage=new l.Signal(this);this._anyMessage=new l.Signal(this);this._pendingInput=new l.Signal(this);this._unhandledMessage=new l.Signal(this);this._displayIdToParentIds=new Map;this._msgIdToDisplayIds=new Map;this._msgChain=Promise.resolve();this._hasPendingInput=false;this._reason="";this._noOp=()=>{};this._supportsSubshells=false;this._name=e.model.name;this._id=e.model.id;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:d.ServerConnection.makeSettings();this._kernelAPIClient=(n=e.kernelAPIClient)!==null&&n!==void 0?n:new m.KernelAPIClient({serverSettings:this.serverSettings});this._kernelSpecAPIClient=(i=e.kernelSpecAPIClient)!==null&&i!==void 0?i:new g.KernelSpecAPIClient({serverSettings:this.serverSettings});this._clientId=(s=e.clientId)!==null&&s!==void 0?s:a.UUID.uuid4();this._username=(o=e.username)!==null&&o!==void 0?o:"";this.handleComms=(c=e.handleComms)!==null&&c!==void 0?c:true;this._commsOverSubshells=(u=e.commsOverSubshells)!==null&&u!==void 0?u:d.CommsOverSubshells.PerCommTarget;this._subshellId=(f=e.subshellId)!==null&&f!==void 0?f:null;this._createSocket()}get disposed(){return this._disposed}get commsOverSubshells(){return this._commsOverSubshells}set commsOverSubshells(e){this._commsOverSubshells=e;for(const[t,n]of this._comms){n.commsOverSubshells=e}}get statusChanged(){return this._statusChanged}get connectionStatusChanged(){return this._connectionStatusChanged}get iopubMessage(){return this._iopubMessage}get unhandledMessage(){return this._unhandledMessage}get model(){return this._model||{id:this.id,name:this.name,reason:this._reason}}get anyMessage(){return this._anyMessage}get pendingInput(){return this._pendingInput}get id(){return this._id}get name(){return this._name}get username(){return this._username}get clientId(){return this._clientId}get subshellId(){return this._subshellId}set subshellId(e){this._subshellId=e}get status(){return this._status}get connectionStatus(){return this._connectionStatus}get isDisposed(){return this._isDisposed}get info(){return this._info.promise}get spec(){if(this._specPromise){return this._specPromise}this._specPromise=this._kernelSpecAPIClient.get().then((e=>e.kernelspecs[this._name]));return this._specPromise}get supportsSubshells(){return this._supportsSubshells}clone(e={}){return new b({model:this.model,username:this.username,serverSettings:this.serverSettings,handleComms:false,kernelAPIClient:this._kernelAPIClient,commsOverSubshells:d.CommsOverSubshells.Disabled,...e})}dispose(){if(this.isDisposed){return}const e=()=>{this._isDisposed=true;this._disposed.emit();this._updateConnectionStatus("disconnected");this._clearKernelState();this._pendingMessages=[];this._clearSocket();l.Signal.clearData(this)};if(this._subshellId!==null){const t=this.requestDeleteSubshell({subshell_id:this._subshellId},true);t.onReply=t=>{e()}}else{e()}}sendShellMessage(e,t=false,n=true){return this._sendKernelShellControl(u.KernelShellFutureHandler,e,t,n)}sendControlMessage(e,t=false,n=true){return this._sendKernelShellControl(u.KernelControlFutureHandler,e,t,n)}_sendKernelShellControl(e,t,n=false,i=true){this._sendMessage(t);this._anyMessage.emit({msg:t,direction:"send"});const s=new e((()=>{const e=t.header.msg_id;this._futures.delete(e);const n=this._msgIdToDisplayIds.get(e);if(!n){return}n.forEach((t=>{const n=this._displayIdToParentIds.get(t);if(n){const i=n.indexOf(e);if(i===-1){return}if(n.length===1){this._displayIdToParentIds.delete(t)}else{n.splice(i,1);this._displayIdToParentIds.set(t,n)}}}));this._msgIdToDisplayIds.delete(e)}),t,n,i,this);this._futures.set(t.header.msg_id,s);return s}_sendMessage(e,t=true){if(this.status==="dead"){throw new Error("Kernel is dead")}if((this._kernelSession===_||this._kernelSession===v)&&h.isInfoRequestMsg(e)){if(this.connectionStatus==="connected"){this._ws.send(this.serverSettings.serializer.serialize(e,this._ws.protocol));return}else{throw new Error("Could not send message: status is not connected")}}if(t&&this._pendingMessages.length>0){this._pendingMessages.push(e);return}if(this.connectionStatus==="connected"&&this._kernelSession!==v){this._ws.send(this.serverSettings.serializer.serialize(e,this._ws.protocol))}else if(t){this._pendingMessages.push(e)}else{throw new Error("Could not send message")}}async interrupt(){this.hasPendingInput=false;if(this.status==="dead"){throw new Error("Kernel is dead")}return this._kernelAPIClient.interrupt(this.id)}async restart(){if(this.status==="dead"){throw new Error("Kernel is dead")}this._updateStatus("restarting");this._clearKernelState();this._kernelSession=v;await this._kernelAPIClient.restart(this.id);await this.reconnect();this.hasPendingInput=false}reconnect(){this._errorIfDisposed();const e=new a.PromiseDelegate;const t=(n,i)=>{if(i==="connected"){e.resolve();this.connectionStatusChanged.disconnect(t,this)}else if(i==="disconnected"){e.reject(new Error("Kernel connection disconnected"));this.connectionStatusChanged.disconnect(t,this)}};this.connectionStatusChanged.connect(t,this);this._reconnectAttempt=0;this._reconnect();return e.promise}async shutdown(){if(this.status!=="dead"){await this._kernelAPIClient.shutdown(this.id)}this.handleShutdown()}handleShutdown(){this._updateStatus("dead");this.dispose()}async requestKernelInfo(){const e=h.createMessage({msgType:"kernel_info_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:{}});let t;try{t=await y.handleShellMessage(this,e)}catch(i){if(this.isDisposed){return}else{throw i}}this._errorIfDisposed();if(!t){return}if(t.content.status===undefined){t.content.status="ok"}if(t.content.status!=="ok"){this._info.reject("Kernel info reply errored");return t}this._info.resolve(t.content);this._kernelSession=t.header.session;const n=t.content.supported_features;this._supportsSubshells=n!==undefined&&n.includes("kernel subshells");return t}requestComplete(e){const t=h.createMessage({msgType:"complete_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return y.handleShellMessage(this,t)}requestInspect(e){const t=h.createMessage({msgType:"inspect_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return y.handleShellMessage(this,t)}requestHistory(e){const t=h.createMessage({msgType:"history_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return y.handleShellMessage(this,t)}requestExecute(e,t=true,n){const i={silent:false,store_history:true,user_expressions:{},allow_stdin:true,stop_on_error:false};const s=h.createMessage({msgType:"execute_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:{...i,...e},metadata:n});return this.sendShellMessage(s,true,t)}requestDebug(e,t=true){const n=h.createMessage({msgType:"debug_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(n,true,t)}requestCreateSubshell(e,t=true){if(!this.supportsSubshells){throw new Error("Kernel subshells are not supported")}const n=h.createMessage({msgType:"create_subshell_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(n,true,t)}requestDeleteSubshell(e,t=true){if(!this.supportsSubshells){throw new Error("Kernel subshells are not supported")}const n=h.createMessage({msgType:"delete_subshell_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(n,true,t)}requestListSubshell(e,t=true){if(!this.supportsSubshells){throw new Error("Kernel subshells are not supported")}const n=h.createMessage({msgType:"list_subshell_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(n,true,t)}requestIsComplete(e){const t=h.createMessage({msgType:"is_complete_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return y.handleShellMessage(this,t)}requestCommInfo(e){const t=h.createMessage({msgType:"comm_info_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return y.handleShellMessage(this,t)}sendInputReply(e,t){const n=h.createMessage({msgType:"input_reply",channel:"stdin",username:this._username,session:this._clientId,content:e});n.parent_header=t;this._sendMessage(n);this._anyMessage.emit({msg:n,direction:"send"});this.hasPendingInput=false}createComm(e,t=a.UUID.uuid4()){if(!this.handleComms){throw new Error("Comms are disabled on this kernel connection")}if(this._comms.has(t)){throw new Error("Comm is already created")}const n=new c.CommHandler(e,t,this,(()=>{this._unregisterComm(t)}),this._commsOverSubshells);this._comms.set(t,n);return n}hasComm(e){return this._comms.has(e)}registerCommTarget(e,t){if(!this.handleComms){return}this._targetRegistry[e]=t}removeCommTarget(e,t){if(!this.handleComms){return}if(!this.isDisposed&&this._targetRegistry[e]===t){delete this._targetRegistry[e]}}registerMessageHook(e,t){var n;const i=(n=this._futures)===null||n===void 0?void 0:n.get(e);if(i){i.registerMessageHook(t)}}removeMessageHook(e,t){var n;const i=(n=this._futures)===null||n===void 0?void 0:n.get(e);if(i){i.removeMessageHook(t)}}removeInputGuard(){this.hasPendingInput=false}async _handleDisplayId(e,t){var n,i;const s=t.parent_header.msg_id;let o=this._displayIdToParentIds.get(e);if(o){const e={header:a.JSONExt.deepCopy(t.header),parent_header:a.JSONExt.deepCopy(t.parent_header),metadata:a.JSONExt.deepCopy(t.metadata),content:a.JSONExt.deepCopy(t.content),channel:t.channel,buffers:t.buffers?t.buffers.slice():[]};e.header.msg_type="update_display_data";await Promise.all(o.map((async t=>{const n=this._futures&&this._futures.get(t);if(n){await n.handleMsg(e)}})))}if(t.header.msg_type==="update_display_data"){return true}o=(n=this._displayIdToParentIds.get(e))!==null&&n!==void 0?n:[];if(o.indexOf(s)===-1){o.push(s)}this._displayIdToParentIds.set(e,o);const r=(i=this._msgIdToDisplayIds.get(s))!==null&&i!==void 0?i:[];if(r.indexOf(s)===-1){r.push(s)}this._msgIdToDisplayIds.set(s,r);return false}_clearSocket(){if(this._ws!==null){this._ws.onopen=this._noOp;this._ws.onclose=this._noOp;this._ws.onerror=this._noOp;this._ws.onmessage=this._noOp;this._ws.close();this._ws=null}}_updateStatus(e){if(this._status===e||this._status==="dead"){return}this._status=e;y.logKernelStatus(this);this._statusChanged.emit(e);if(e==="dead"){this.dispose()}}_sendPending(){while(this.connectionStatus==="connected"&&this._kernelSession!==v&&this._pendingMessages.length>0){this._sendMessage(this._pendingMessages[0],false);this._pendingMessages.shift()}}_clearKernelState(){this._kernelSession="";this._pendingMessages=[];this._futures.forEach((e=>{e.dispose()}));this._comms.forEach((e=>{e.dispose()}));this._msgChain=Promise.resolve();this._futures=new Map;this._comms=new Map;this._displayIdToParentIds.clear();this._msgIdToDisplayIds.clear()}_assertCurrentMessage(e){this._errorIfDisposed();if(e.header.session!==this._kernelSession){throw new Error(`Canceling handling of old message: ${e.header.msg_type}`)}}async _handleCommOpen(e){this._assertCurrentMessage(e);const t=e.content;const n=new c.CommHandler(t.target_name,t.comm_id,this,(()=>{this._unregisterComm(t.comm_id)}),this.commsOverSubshells);this._comms.set(t.comm_id,n);try{const i=await y.loadObject(t.target_name,t.target_module,this._targetRegistry);await i(n,e)}catch(i){n.close();console.error("Exception opening new comm");throw i}}async _handleCommClose(e){this._assertCurrentMessage(e);const t=e.content;const n=this._comms.get(t.comm_id);if(!n){console.error("Comm not found for comm id "+t.comm_id);return}this._unregisterComm(n.commId);const i=n.onClose;if(i){await i(e)}n.dispose()}async _handleCommMsg(e){this._assertCurrentMessage(e);const t=e.content;const n=this._comms.get(t.comm_id);if(!n){return}const i=n.onMsg;if(i){await i(e)}}_unregisterComm(e){this._comms.delete(e)}_updateConnectionStatus(e){if(this._connectionStatus===e){return}this._connectionStatus=e;if(e!=="connecting"){this._reconnectAttempt=0;clearTimeout(this._reconnectTimeout)}if(this.status!=="dead"){if(e==="connected"){let e=this._kernelSession===v;let t=this.requestKernelInfo();let n=false;let i=()=>{if(n){return}n=true;if(e&&this._kernelSession===v){this._kernelSession=""}clearTimeout(s);if(this._pendingMessages.length>0){this._sendPending()}};void t.then(i);let s=setTimeout(i,f)}else{this._updateStatus("unknown")}}this._connectionStatusChanged.emit(e)}async _handleMessage(e){var t,n;let i=false;if(e.parent_header&&e.channel==="iopub"&&(h.isDisplayDataMsg(e)||h.isUpdateDisplayDataMsg(e)||h.isExecuteResultMsg(e))){const n=(t=e.content.transient)!==null&&t!==void 0?t:{};const s=n["display_id"];if(s){i=await this._handleDisplayId(s,e);this._assertCurrentMessage(e)}}if(!i&&e.parent_header){const t=e.parent_header;const i=(n=this._futures)===null||n===void 0?void 0:n.get(t.msg_id);if(i){await i.handleMsg(e);this._assertCurrentMessage(e)}else{const n=t.session===this.clientId;if(e.channel!=="iopub"&&n){this._unhandledMessage.emit(e)}}}if(e.channel==="iopub"){switch(e.header.msg_type){case"status":{const t=e.content.execution_state;if(t==="restarting"){void Promise.resolve().then((async()=>{this._updateStatus("autorestarting");this._clearKernelState();await this.reconnect()}))}this._updateStatus(t);break}case"comm_open":if(this.handleComms){await this._handleCommOpen(e)}break;case"comm_msg":if(this.handleComms){await this._handleCommMsg(e)}break;case"comm_close":if(this.handleComms){await this._handleCommClose(e)}break;default:break}if(!this.isDisposed){this._assertCurrentMessage(e);this._iopubMessage.emit(e)}}}_reconnect(){this._errorIfDisposed();clearTimeout(this._reconnectTimeout);if(this._reconnectAttempt{if(t){if(typeof requirejs==="undefined"){throw new Error("requirejs not found")}requirejs([t],(n=>{if(n[e]===void 0){const n=`Object '${e}' not found in module '${t}'`;s(new Error(n))}else{i(n[e])}}),s)}else{if(n===null||n===void 0?void 0:n[e]){i(n[e])}else{s(new Error(`Object '${e}' not found in registry`))}}}))}e.loadObject=i;function s(e,t){e=Math.ceil(e);t=Math.floor(t);return Math.floor(Math.random()*(t-e+1))+e}e.getRandomIntInclusive=s})(y||(y={}))},46073:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.KernelShellFutureHandler=t.KernelControlFutureHandler=t.KernelFutureHandler=void 0;const r=n(5592);const a=n(90044);const l=o(n(59798));class d extends a.DisposableDelegate{constructor(e,t,n,i,s){super(e);this._status=0;this._stdin=u.noOp;this._iopub=u.noOp;this._reply=u.noOp;this._done=new r.PromiseDelegate;this._hooks=new u.HookList;this._disposeOnDone=true;this._msg=t;if(!n){this._setFlag(u.KernelFutureFlag.GotReply)}this._disposeOnDone=i;this._kernel=s}get msg(){return this._msg}get done(){return this._done.promise}get onReply(){return this._reply}set onReply(e){this._reply=e}get onIOPub(){return this._iopub}set onIOPub(e){this._iopub=e}get onStdin(){return this._stdin}set onStdin(e){this._stdin=e}registerMessageHook(e){if(this.isDisposed){throw new Error("Kernel future is disposed")}this._hooks.add(e)}removeMessageHook(e){if(this.isDisposed){return}this._hooks.remove(e)}sendInputReply(e,t){this._kernel.sendInputReply(e,t)}dispose(){this._stdin=u.noOp;this._iopub=u.noOp;this._reply=u.noOp;this._hooks=null;if(!this._testFlag(u.KernelFutureFlag.IsDone)){this._done.promise.catch((()=>{}));this._done.reject(new Error(`Canceled future for ${this.msg.header.msg_type} message before replies were done`))}super.dispose()}async handleMsg(e){switch(e.channel){case"control":case"shell":if(e.channel===this.msg.channel&&e.parent_header.msg_id===this.msg.header.msg_id){await this._handleReply(e)}break;case"stdin":await this._handleStdin(e);break;case"iopub":await this._handleIOPub(e);break;default:break}}async _handleReply(e){const t=this._reply;if(t){await t(e)}this._replyMsg=e;this._setFlag(u.KernelFutureFlag.GotReply);if(this._testFlag(u.KernelFutureFlag.GotIdle)){this._handleDone()}}async _handleStdin(e){this._kernel.hasPendingInput=true;const t=this._stdin;if(t){await t(e)}}async _handleIOPub(e){const t=await this._hooks.process(e);const n=this._iopub;if(t&&n){await n(e)}if(l.isStatusMsg(e)&&e.content.execution_state==="idle"){this._setFlag(u.KernelFutureFlag.GotIdle);if(this._testFlag(u.KernelFutureFlag.GotReply)){this._handleDone()}}}_handleDone(){if(this._testFlag(u.KernelFutureFlag.IsDone)){return}this._setFlag(u.KernelFutureFlag.IsDone);this._done.resolve(this._replyMsg);if(this._disposeOnDone){this.dispose()}}_testFlag(e){return(this._status&e)!==0}_setFlag(e){this._status|=e}}t.KernelFutureHandler=d;class c extends d{}t.KernelControlFutureHandler=c;class h extends d{}t.KernelShellFutureHandler=h;var u;(function(e){e.noOp=()=>{};const t=(()=>{const e=typeof requestAnimationFrame==="function";return e?requestAnimationFrame:setImmediate})();class n{constructor(){this._hooks=[]}add(e){this.remove(e);this._hooks.push(e)}remove(e){const t=this._hooks.indexOf(e);if(t>=0){this._hooks[t]=null;this._scheduleCompact()}}async process(e){await this._processing;const t=new r.PromiseDelegate;this._processing=t.promise;let n;for(let s=this._hooks.length-1;s>=0;s--){const o=this._hooks[s];if(o===null){continue}try{n=await o(e)}catch(i){n=true;console.error(i)}if(n===false){t.resolve(undefined);return false}}t.resolve(undefined);return true}_scheduleCompact(){if(!this._compactScheduled){this._compactScheduled=true;t((()=>{this._processing=this._processing.then((()=>{this._compactScheduled=false;this._compact()}))}))}}_compact(){let e=0;for(let t=0,n=this._hooks.length;t{"use strict";Object.defineProperty(t,"__esModule",{value:true})},47275:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KernelManager=void 0;const i=n(26568);const s=n(2336);const o=n(50608);const r=n(5412);const a=n(38662);const l=n(45089);const d=n(321);class c extends r.BaseManager{constructor(e={}){var t,n,r;super(e);this._commsOverSubshells=o.CommsOverSubshells.PerCommTarget;this._isReady=false;this._kernelConnections=new Set;this._models=new Map;this._runningChanged=new s.Signal(this);this._connectionFailure=new s.Signal(this);this._kernelAPIClient=(t=e.kernelAPIClient)!==null&&t!==void 0?t:new a.KernelAPIClient({serverSettings:this.serverSettings});this._kernelSpecAPIClient=(n=e.kernelSpecAPIClient)!==null&&n!==void 0?n:new d.KernelSpecAPIClient({serverSettings:this.serverSettings});this._pollModels=new i.Poll({auto:false,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:true,max:300*1e3},name:`@jupyterlab/services:KernelManager#models`,standby:(r=e.standby)!==null&&r!==void 0?r:"when-hidden"});this._ready=(async()=>{await this._pollModels.start();await this._pollModels.tick;this._isReady=true})()}get isReady(){return this._isReady}get ready(){return this._ready}get runningChanged(){return this._runningChanged}get connectionFailure(){return this._connectionFailure}dispose(){if(this.isDisposed){return}this._models.clear();this._kernelConnections.forEach((e=>e.dispose()));this._pollModels.dispose();super.dispose()}connectTo(e){var t;const{id:n}=e.model;let i=(t=e.handleComms)!==null&&t!==void 0?t:true;if(e.handleComms===undefined){for(const e of this._kernelConnections){if(e.id===n&&e.handleComms){i=false;break}}}e.commsOverSubshells=this._commsOverSubshells;const s=new l.KernelConnection({handleComms:i,...e,serverSettings:this.serverSettings,kernelAPIClient:this._kernelAPIClient,kernelSpecAPIClient:this._kernelSpecAPIClient});this._onStarted(s);if(!this._models.has(n)){void this.refreshRunning().catch((()=>{}))}return s}running(){return this._models.values()}get runningCount(){return this._models.size}get commsOverSubshells(){return this._commsOverSubshells}set commsOverSubshells(e){this._commsOverSubshells=e;for(const t of this._kernelConnections){t.commsOverSubshells=e}}async refreshRunning(){await this._pollModels.refresh();await this._pollModels.tick}async startNew(e={},t={}){const n=await this._kernelAPIClient.startNew(e);return this.connectTo({...t,model:n})}async shutdown(e){await this._kernelAPIClient.shutdown(e);await this.refreshRunning()}async shutdownAll(){await this.refreshRunning();await Promise.all([...this._models.keys()].map((e=>this._kernelAPIClient.shutdown(e))));await this.refreshRunning()}async findById(e){if(this._models.has(e)){return this._models.get(e)}await this.refreshRunning();return this._models.get(e)}async requestRunning(){var e,t;let n;try{n=await this._kernelAPIClient.listRunning()}catch(i){if(i instanceof o.ServerConnection.NetworkError||((e=i.response)===null||e===void 0?void 0:e.status)===503||((t=i.response)===null||t===void 0?void 0:t.status)===424){this._connectionFailure.emit(i)}throw i}if(this.isDisposed){return}if(this._models.size===n.length&&n.every((e=>{const t=this._models.get(e.id);if(!t){return false}return t.connections===e.connections&&t.execution_state===e.execution_state&&t.last_activity===e.last_activity&&t.name===e.name&&t.reason===e.reason&&t.traceback===e.traceback}))){return}this._models=new Map(n.map((e=>[e.id,e])));this._kernelConnections.forEach((e=>{if(!this._models.has(e.id)){e.handleShutdown()}}));this._runningChanged.emit(n)}_onStarted(e){this._kernelConnections.add(e);e.statusChanged.connect(this._onStatusChanged,this);e.disposed.connect(this._onDisposed,this)}_onDisposed(e){this._kernelConnections.delete(e);void this.refreshRunning().catch((()=>{}))}_onStatusChanged(e,t){if(t==="dead"){void this.refreshRunning().catch((()=>{}))}}}t.KernelManager=c;(function(e){class t extends e{constructor(){super(...arguments);this._readyPromise=new Promise((()=>{}))}get isActive(){return false}get parentReady(){return super.ready}async startNew(e={},t={}){return Promise.reject(new Error("Not implemented in no-op Kernel Manager"))}connectTo(e){throw new Error("Not implemented in no-op Kernel Manager")}async shutdown(e){return Promise.reject(new Error("Not implemented in no-op Kernel Manager"))}get ready(){return this.parentReady.then((()=>this._readyPromise))}async requestRunning(){return Promise.resolve()}}e.NoopManager=t})(c||(t.KernelManager=c={}))},59798:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.supportedKernelWebSocketProtocols=void 0;t.createMessage=s;t.isStreamMsg=o;t.isDisplayDataMsg=r;t.isUpdateDisplayDataMsg=a;t.isExecuteInputMsg=l;t.isExecuteResultMsg=d;t.isErrorMsg=c;t.isStatusMsg=h;t.isClearOutputMsg=u;t.isDebugEventMsg=p;t.isCommOpenMsg=m;t.isCommCloseMsg=g;t.isCommMsgMsg=f;t.isInfoRequestMsg=v;t.isExecuteReplyMsg=_;t.isDebugRequestMsg=b;t.isDebugReplyMsg=y;t.isInputRequestMsg=w;t.isInputReplyMsg=C;const i=n(5592);function s(e){var t,n,s,o,r,a;return{buffers:(t=e.buffers)!==null&&t!==void 0?t:[],channel:e.channel,content:e.content,header:{date:(new Date).toISOString(),msg_id:(n=e.msgId)!==null&&n!==void 0?n:i.UUID.uuid4(),msg_type:e.msgType,session:e.session,username:(s=e.username)!==null&&s!==void 0?s:"",subshell_id:(o=e.subshellId)!==null&&o!==void 0?o:null,version:"5.2"},metadata:(r=e.metadata)!==null&&r!==void 0?r:{},parent_header:(a=e.parentHeader)!==null&&a!==void 0?a:{}}}function o(e){return e.header.msg_type==="stream"}function r(e){return e.header.msg_type==="display_data"}function a(e){return e.header.msg_type==="update_display_data"}function l(e){return e.header.msg_type==="execute_input"}function d(e){return e.header.msg_type==="execute_result"}function c(e){return e.header.msg_type==="error"}function h(e){return e.header.msg_type==="status"}function u(e){return e.header.msg_type==="clear_output"}function p(e){return e.header.msg_type==="debug_event"}function m(e){return e.header.msg_type==="comm_open"}function g(e){return e.header.msg_type==="comm_close"}function f(e){return e.header.msg_type==="comm_msg"}function v(e){return e.header.msg_type==="kernel_info_request"}function _(e){return e.header.msg_type==="execute_reply"}function b(e){return e.header.msg_type==="debug_request"}function y(e){return e.header.msg_type==="debug_reply"}function w(e){return e.header.msg_type==="input_request"}function C(e){return e.header.msg_type==="input_reply"}var x;(function(e){e["v1KernelWebsocketJupyterOrg"]="v1.kernel.websocket.jupyter.org"})(x||(t.supportedKernelWebSocketProtocols=x={}))},38662:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KernelAPIClient=t.KERNEL_SERVICE_URL=void 0;t.listRunning=r;t.startNew=a;t.restartKernel=l;t.interruptKernel=d;t.shutdownKernel=c;t.getKernelModel=h;const i=n(1089);const s=n(30397);const o=n(38872);t.KERNEL_SERVICE_URL="api/kernels";async function r(e=i.ServerConnection.makeSettings()){const n=s.URLExt.join(e.baseUrl,t.KERNEL_SERVICE_URL);const r=await i.ServerConnection.makeRequest(n,{},e);if(r.status!==200){const e=await i.ServerConnection.ResponseError.create(r);throw e}const a=await r.json();(0,o.validateModels)(a);return a}async function a(e={},n=i.ServerConnection.makeSettings()){const r=s.URLExt.join(n.baseUrl,t.KERNEL_SERVICE_URL);const a={method:"POST",body:JSON.stringify(e)};const l=await i.ServerConnection.makeRequest(r,a,n);if(l.status!==201){const e=await i.ServerConnection.ResponseError.create(l);throw e}const d=await l.json();(0,o.validateModel)(d);return d}async function l(e,n=i.ServerConnection.makeSettings()){const r=s.URLExt.join(n.baseUrl,t.KERNEL_SERVICE_URL,encodeURIComponent(e),"restart");const a={method:"POST"};const l=await i.ServerConnection.makeRequest(r,a,n);if(l.status!==200){const e=await i.ServerConnection.ResponseError.create(l);throw e}const d=await l.json();(0,o.validateModel)(d)}async function d(e,n=i.ServerConnection.makeSettings()){const o=s.URLExt.join(n.baseUrl,t.KERNEL_SERVICE_URL,encodeURIComponent(e),"interrupt");const r={method:"POST"};const a=await i.ServerConnection.makeRequest(o,r,n);if(a.status!==204){const e=await i.ServerConnection.ResponseError.create(a);throw e}}async function c(e,n=i.ServerConnection.makeSettings()){const o=s.URLExt.join(n.baseUrl,t.KERNEL_SERVICE_URL,encodeURIComponent(e));const r={method:"DELETE"};const a=await i.ServerConnection.makeRequest(o,r,n);if(a.status===404){const t=`The kernel "${e}" does not exist on the server`;console.warn(t)}else if(a.status!==204){const e=await i.ServerConnection.ResponseError.create(a);throw e}}async function h(e,n=i.ServerConnection.makeSettings()){const r=s.URLExt.join(n.baseUrl,t.KERNEL_SERVICE_URL,encodeURIComponent(e));const a=await i.ServerConnection.makeRequest(r,{},n);if(a.status===404){return undefined}else if(a.status!==200){const e=await i.ServerConnection.ResponseError.create(a);throw e}const l=await a.json();(0,o.validateModel)(l);return l}class u{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:i.ServerConnection.makeSettings()}async listRunning(){return r(this.serverSettings)}async getModel(e){return h(e,this.serverSettings)}async startNew(e={}){return a(e,this.serverSettings)}async restart(e){return l(e,this.serverSettings)}async interrupt(e){return d(e,this.serverSettings)}async shutdown(e){return c(e,this.serverSettings)}}t.KernelAPIClient=u},93962:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.serialize=a;t.deserialize=l;const r=o(n(59798));function a(e,t=""){switch(t){case r.supportedKernelWebSocketProtocols.v1KernelWebsocketJupyterOrg:return d.serializeV1KernelWebsocketJupyterOrg(e);default:return d.serializeDefault(e)}}function l(e,t=""){switch(t){case r.supportedKernelWebSocketProtocols.v1KernelWebsocketJupyterOrg:return d.deserializeV1KernelWebsocketJupyterOrg(e);default:return d.deserializeDefault(e)}}var d;(function(e){function t(e){let t;const n=new DataView(e);const i=Number(n.getBigUint64(0,true));let s=[];for(let u=0;u{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateMessage=a;t.validateModel=d;t.validateModels=c;const i=n(1480);const s=["username","version","session","msg_id","msg_type"];const o={stream:{name:"string",text:"string"},display_data:{data:"object",metadata:"object"},execute_input:{code:"string",execution_count:"number"},execute_result:{execution_count:"number",data:"object",metadata:"object"},error:{ename:"string",evalue:"string",traceback:"object"},status:{execution_state:["string",["starting","idle","busy","restarting","dead"]]},clear_output:{wait:"boolean"},comm_open:{comm_id:"string",target_name:"string",data:"object"},comm_msg:{comm_id:"string",data:"object"},comm_close:{comm_id:"string"},shutdown_reply:{restart:"boolean"}};function r(e){for(let t=0;td(e)))}},76807:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};var r=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.KernelSpecAPI=t.KernelSpec=void 0;const a=o(n(51229));t.KernelSpec=a;const l=o(n(321));t.KernelSpecAPI=l;r(n(26224),t)},51229:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},26224:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KernelSpecManager=void 0;const i=n(5592);const s=n(26568);const o=n(2336);const r=n(5412);const a=n(321);class l extends r.BaseManager{constructor(e={}){var t,n;super(e);this._isReady=false;this._connectionFailure=new o.Signal(this);this._specs=null;this._specsChanged=new o.Signal(this);this._kernelSpecAPIClient=(t=e.kernelSpecAPIClient)!==null&&t!==void 0?t:new a.KernelSpecAPIClient({serverSettings:this.serverSettings});this._ready=Promise.all([this.requestSpecs()]).then((e=>undefined)).catch((e=>undefined)).then((()=>{if(this.isDisposed){return}this._isReady=true}));this._pollSpecs=new s.Poll({auto:false,factory:()=>this.requestSpecs(),frequency:{interval:61*1e3,backoff:true,max:300*1e3},name:`@jupyterlab/services:KernelSpecManager#specs`,standby:(n=e.standby)!==null&&n!==void 0?n:"when-hidden"});void this.ready.then((()=>{void this._pollSpecs.start()}))}get isReady(){return this._isReady}get ready(){return this._ready}get specs(){return this._specs}get specsChanged(){return this._specsChanged}get connectionFailure(){return this._connectionFailure}dispose(){this._pollSpecs.dispose();super.dispose()}async refreshSpecs(){await this._pollSpecs.refresh();await this._pollSpecs.tick}async requestSpecs(){const e=await this._kernelSpecAPIClient.get();if(this.isDisposed){return}if(!i.JSONExt.deepEqual(e,this._specs)){this._specs=e;this._specsChanged.emit(e)}}}t.KernelSpecManager=l},321:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KernelSpecAPIClient=void 0;t.getSpecs=a;const i=n(1089);const s=n(79237);const o=n(30397);const r="api/kernelspecs";async function a(e=i.ServerConnection.makeSettings()){const t=o.URLExt.join(e.baseUrl,r);const n=await i.ServerConnection.makeRequest(t,{},e);if(n.status!==200){const e=await i.ServerConnection.ResponseError.create(n);throw e}const a=await n.json();return(0,s.validateSpecModels)(a)}class l{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:i.ServerConnection.makeSettings()}async get(){return a(this.serverSettings)}}t.KernelSpecAPIClient=l},79237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSpecModel=s;t.validateSpecModels=o;const i=n(1480);function s(e){const t=e.spec;if(!t){throw new Error("Invalid kernel spec")}(0,i.validateProperty)(e,"name","string");(0,i.validateProperty)(e,"resources","object");(0,i.validateProperty)(t,"language","string");(0,i.validateProperty)(t,"display_name","string");(0,i.validateProperty)(t,"argv","array");let n=null;if(t.hasOwnProperty("metadata")){(0,i.validateProperty)(t,"metadata","object");n=t.metadata}let s=null;if(t.hasOwnProperty("env")){(0,i.validateProperty)(t,"env","object");s=t.env}return{name:e.name,resources:e.resources,language:t.language,display_name:t.display_name,argv:t.argv,metadata:n,env:s}}function o(e){if(!e.hasOwnProperty("kernelspecs")){throw new Error("No kernelspecs found")}let t=Object.keys(e.kernelspecs);const n=Object.create(null);let i=e.default;for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceManager=void 0;const i=n(2336);const s=n(44816);const o=n(97375);const r=n(1091);const a=n(14272);const l=n(76807);const d=n(93892);const c=n(1089);const h=n(86923);const u=n(95399);const p=n(67569);const m=n(18430);const g=n(90362);class f{constructor(e={}){var t,n;this._isDisposed=false;this._connectionFailure=new i.Signal(this);this._isReady=false;const f=e.defaultDrive;const v=(t=e.serverSettings)!==null&&t!==void 0?t:c.ServerConnection.makeSettings();const _=(n=e.standby)!==null&&n!==void 0?n:"when-hidden";const b={defaultDrive:f,serverSettings:v,standby:_};this.serverSettings=v;this.contents=e.contents||new o.ContentsManager(b);this.events=e.events||new r.EventManager(b);this.kernels=e.kernels||new a.KernelManager(b);this.sessions=e.sessions||new h.SessionManager({...b,kernelManager:this.kernels});this.settings=e.settings||new u.SettingManager(b);this.terminals=e.terminals||new p.TerminalManager(b);this.builder=e.builder||new s.BuildManager(b);this.workspaces=e.workspaces||new g.WorkspaceManager(b);this.nbconvert=e.nbconvert||new d.NbConvertManager(b);this.kernelspecs=e.kernelspecs||new l.KernelSpecManager(b);this.user=e.user||new m.UserManager(b);this.kernelspecs.connectionFailure.connect(this._onConnectionFailure,this);this.sessions.connectionFailure.connect(this._onConnectionFailure,this);this.terminals.connectionFailure.connect(this._onConnectionFailure,this);const y=[this.sessions.ready,this.kernelspecs.ready];if(this.terminals.isAvailable()){y.push(this.terminals.ready)}this._readyPromise=Promise.all(y).then((()=>{this._isReady=true}))}get connectionFailure(){return this._connectionFailure}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;i.Signal.clearData(this);this.contents.dispose();this.events.dispose();this.sessions.dispose();this.terminals.dispose()}get isReady(){return this._isReady}get ready(){return this._readyPromise}_onConnectionFailure(e,t){this._connectionFailure.emit(t)}}t.ServiceManager=f},93892:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NbConvertManager=void 0;const i=n(30397);const s=n(1089);const o=n(5592);const r="api/nbconvert";class a{constructor(e={}){var t;this._exportFormats=null;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:s.ServerConnection.makeSettings()}async fetchExportFormats(){this._requestingFormats=new o.PromiseDelegate;this._exportFormats=null;const e=this.serverSettings.baseUrl;const t=i.URLExt.join(e,r);const{serverSettings:n}=this;const a=await s.ServerConnection.makeRequest(t,{},n);if(a.status!==200){const e=await s.ServerConnection.ResponseError.create(a);throw e}const l=await a.json();const d={};const c=Object.keys(l);c.forEach((function(e){const t=l[e].output_mimetype;d[e]={output_mimetype:t}}));this._exportFormats=d;this._requestingFormats.resolve(d);return d}async getExportFormats(e=true){if(this._requestingFormats){return this._requestingFormats.promise}if(e||!this._exportFormats){return await this.fetchExportFormats()}return this._exportFormats}}t.NbConvertManager=a},1089:(e,t,n)=>{"use strict";var i=n(65606);Object.defineProperty(t,"__esModule",{value:true});t.ServerConnection=void 0;const s=n(30397);const o=n(93962);let r;if(typeof window==="undefined"){r=n(36513)}else{r=WebSocket}var a;(function(e){function t(e){return l.makeSettings(e)}e.makeSettings=t;function n(e,t,n){return l.handleRequest(e,t,n)}e.makeRequest=n;class i extends Error{static async create(e){try{const t=await e.json();const{message:n,traceback:s}=t;if(s){console.error(s)}return new i(e,n!==null&&n!==void 0?n:i._defaultMessage(e),s!==null&&s!==void 0?s:"")}catch(t){console.debug(t);return new i(e)}}constructor(e,t=i._defaultMessage(e),n=""){super(t);this.response=e;this.traceback=n}static _defaultMessage(e){return`Invalid response: ${e.status} ${e.statusText}`}}e.ResponseError=i;class s extends TypeError{constructor(e){super(e.message);this.stack=e.stack}}e.NetworkError=s})(a||(t.ServerConnection=a={}));var l;(function(e){function t(e={}){var t;const n=s.PageConfig.getBaseUrl();const a=s.PageConfig.getWsUrl();const l=s.URLExt.normalize(e.baseUrl)||n;let d=e.wsUrl;if(!d&&l===n){d=a}if(!d&&l.indexOf("http")===0){d="ws"+l.slice(4)}d=d!==null&&d!==void 0?d:a;const c=s.PageConfig.getOption("appendToken").toLowerCase();let h;if(c===""){h=typeof window==="undefined"||typeof i!=="undefined"&&((t=i===null||i===void 0?void 0:i.env)===null||t===void 0?void 0:t.JEST_WORKER_ID)!==undefined||s.URLExt.getHostName(n)!==s.URLExt.getHostName(d)}else{h=c==="true"}return{init:{cache:"no-store",credentials:"same-origin"},fetch,Headers,Request,WebSocket:r,token:s.PageConfig.getToken(),appUrl:s.PageConfig.getOption("appUrl"),appendToken:h,serializer:{serialize:o.serialize,deserialize:o.deserialize},...e,baseUrl:l,wsUrl:d}}e.makeSettings=t;function n(e,t,n){var i;if(e.indexOf(n.baseUrl)!==0){throw new Error("Can only be used for notebook server requests")}const s=(i=t.cache)!==null&&i!==void 0?i:n.init.cache;if(s==="no-store"){e+=(/\?/.test(e)?"&":"?")+(new Date).getTime()}const o=new n.Request(e,{...n.init,...t});let r=false;if(n.token){r=true;o.headers.append("Authorization",`token ${n.token}`)}if(typeof document!=="undefined"){const e=l("_xsrf");if(e!==undefined){r=true;o.headers.append("X-XSRFToken",e)}}if(!o.headers.has("Content-Type")&&r){o.headers.set("Content-Type","application/json")}return n.fetch.call(null,o).catch((e=>{throw new a.NetworkError(e)}))}e.handleRequest=n;function l(e){let t="";try{t=document.cookie}catch(i){return}const n=t.match("\\b"+e+"=([^;]*)\\b");return n===null||n===void 0?void 0:n[1]}})(l||(l={}))},26830:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SessionConnection=void 0;const i=n(2336);const s=n(50608);const o=n(5592);const r=n(70637);class a{constructor(e){var t,n,a,l,d;this._id="";this._path="";this._name="";this._type="";this._kernel=null;this._isDisposed=false;this._disposed=new i.Signal(this);this._kernelChanged=new i.Signal(this);this._statusChanged=new i.Signal(this);this._connectionStatusChanged=new i.Signal(this);this._pendingInput=new i.Signal(this);this._iopubMessage=new i.Signal(this);this._unhandledMessage=new i.Signal(this);this._anyMessage=new i.Signal(this);this._propertyChanged=new i.Signal(this);this._id=e.model.id;this._name=e.model.name;this._path=e.model.path;this._type=e.model.type;this._username=(t=e.username)!==null&&t!==void 0?t:"";this._clientId=(n=e.clientId)!==null&&n!==void 0?n:o.UUID.uuid4();this._connectToKernel=e.connectToKernel;this._kernelConnectionOptions=(a=e.kernelConnectionOptions)!==null&&a!==void 0?a:{};this.serverSettings=(l=e.serverSettings)!==null&&l!==void 0?l:s.ServerConnection.makeSettings();this._sessionAPIClient=(d=e.sessionAPIClient)!==null&&d!==void 0?d:new r.SessionAPIClient({serverSettings:this.serverSettings});this.setupKernel(e.model.kernel)}get disposed(){return this._disposed}get kernelChanged(){return this._kernelChanged}get statusChanged(){return this._statusChanged}get connectionStatusChanged(){return this._connectionStatusChanged}get pendingInput(){return this._pendingInput}get iopubMessage(){return this._iopubMessage}get unhandledMessage(){return this._unhandledMessage}get anyMessage(){return this._anyMessage}get propertyChanged(){return this._propertyChanged}get id(){return this._id}get kernel(){return this._kernel}get path(){return this._path}get type(){return this._type}get name(){return this._name}get model(){return{id:this.id,kernel:this.kernel&&{id:this.kernel.id,name:this.kernel.name},path:this._path,type:this._type,name:this._name}}get isDisposed(){return this._isDisposed}update(e){const t=this.model;this._path=e.path;this._name=e.name;this._type=e.type;if(this._kernel===null&&e.kernel!==null||this._kernel!==null&&e.kernel===null||this._kernel!==null&&e.kernel!==null&&this._kernel.id!==e.kernel.id){if(this._kernel!==null){this._kernel.dispose()}const t=this._kernel||null;this.setupKernel(e.kernel);const n=this._kernel||null;this._kernelChanged.emit({name:"kernel",oldValue:t,newValue:n})}this._handleModelChange(t)}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._disposed.emit();if(this._kernel){this._kernel.dispose();const e=this._kernel;this._kernel=null;const t=this._kernel;this._kernelChanged.emit({name:"kernel",oldValue:e,newValue:t})}i.Signal.clearData(this)}async setPath(e){if(this.isDisposed){throw new Error("Session is disposed")}await this._patch({path:e})}async setName(e){if(this.isDisposed){throw new Error("Session is disposed")}await this._patch({name:e})}async setType(e){if(this.isDisposed){throw new Error("Session is disposed")}await this._patch({type:e})}async changeKernel(e){if(this.isDisposed){throw new Error("Session is disposed")}await this._patch({kernel:e});return this.kernel}async shutdown(){if(this.isDisposed){throw new Error("Session is disposed")}await this._sessionAPIClient.shutdown(this.id);this.dispose()}setupKernel(e){if(e===null){this._kernel=null;return}const t=this._connectToKernel({...this._kernelConnectionOptions,model:e,username:this._username,clientId:this._clientId,serverSettings:this.serverSettings});this._kernel=t;t.statusChanged.connect(this.onKernelStatus,this);t.connectionStatusChanged.connect(this.onKernelConnectionStatus,this);t.pendingInput.connect(this.onPendingInput,this);t.unhandledMessage.connect(this.onUnhandledMessage,this);t.iopubMessage.connect(this.onIOPubMessage,this);t.anyMessage.connect(this.onAnyMessage,this)}onKernelStatus(e,t){this._statusChanged.emit(t)}onKernelConnectionStatus(e,t){this._connectionStatusChanged.emit(t)}onPendingInput(e,t){this._pendingInput.emit(t)}onIOPubMessage(e,t){this._iopubMessage.emit(t)}onUnhandledMessage(e,t){this._unhandledMessage.emit(t)}onAnyMessage(e,t){this._anyMessage.emit(t)}async _patch(e){const t=await this._sessionAPIClient.update({...e,id:this._id});this.update(t);return t}_handleModelChange(e){if(e.name!==this._name){this._propertyChanged.emit("name")}if(e.type!==this._type){this._propertyChanged.emit("type")}if(e.path!==this._path){this._propertyChanged.emit("path")}}}t.SessionConnection=a},86923:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};var r=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.SessionAPI=t.Session=void 0;const a=o(n(82827));t.Session=a;const l=o(n(70637));t.SessionAPI=l;r(n(57740),t)},57740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SessionManager=void 0;const i=n(26568);const s=n(2336);const o=n(1089);const r=n(5412);const a=n(26830);const l=n(70637);class d extends r.BaseManager{constructor(e){var t,n;super(e);this._isReady=false;this._sessionConnections=new Set;this._models=new Map;this._runningChanged=new s.Signal(this);this._connectionFailure=new s.Signal(this);this._connectToKernel=e=>this._kernelManager.connectTo(e);this._kernelManager=e.kernelManager;this._sessionAPIClient=(t=e.sessionAPIClient)!==null&&t!==void 0?t:new l.SessionAPIClient({serverSettings:e.serverSettings});this._pollModels=new i.Poll({auto:false,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:true,max:300*1e3},name:`@jupyterlab/services:SessionManager#models`,standby:(n=e.standby)!==null&&n!==void 0?n:"when-hidden"});this._ready=(async()=>{await this._pollModels.start();await this._pollModels.tick;if(this._kernelManager.isActive){await this._kernelManager.ready}this._isReady=true})()}get isReady(){return this._isReady}get ready(){return this._ready}get runningChanged(){return this._runningChanged}get connectionFailure(){return this._connectionFailure}dispose(){if(this.isDisposed){return}this._models.clear();this._sessionConnections.forEach((e=>e.dispose()));this._pollModels.dispose();super.dispose()}connectTo(e){const t=new a.SessionConnection({...e,connectToKernel:this._connectToKernel,serverSettings:this.serverSettings,sessionAPIClient:this._sessionAPIClient});this._onStarted(t);if(!this._models.has(e.model.id)){void this.refreshRunning().catch((()=>{}))}return t}running(){return this._models.values()}async refreshRunning(){await this._pollModels.refresh();await this._pollModels.tick}async startNew(e,t={}){const n=await this._sessionAPIClient.startNew(e);await this.refreshRunning();return this.connectTo({...t,model:n})}async shutdown(e){await this._sessionAPIClient.shutdown(e);await this.refreshRunning()}async shutdownAll(){await this.refreshRunning();await Promise.all([...this._models.keys()].map((e=>this._sessionAPIClient.shutdown(e))));await this.refreshRunning()}async stopIfNeeded(e){try{const t=await this._sessionAPIClient.listRunning();const n=t.filter((t=>t.path===e));if(n.length===1){const e=n[0].id;await this.shutdown(e)}}catch(t){}}async findById(e){if(this._models.has(e)){return this._models.get(e)}await this.refreshRunning();return this._models.get(e)}async findByPath(e){for(const t of this._models.values()){if(t.path===e){return t}}await this.refreshRunning();for(const t of this._models.values()){if(t.path===e){return t}}return undefined}async requestRunning(){var e,t;let n;try{n=await this._sessionAPIClient.listRunning()}catch(i){if(i instanceof o.ServerConnection.NetworkError||((e=i.response)===null||e===void 0?void 0:e.status)===503||((t=i.response)===null||t===void 0?void 0:t.status)===424){this._connectionFailure.emit(i)}throw i}if(this.isDisposed){return}if(this._models.size===n.length&&n.every((e=>{var t,n,i,s;const o=this._models.get(e.id);if(!o){return false}return((t=o.kernel)===null||t===void 0?void 0:t.id)===((n=e.kernel)===null||n===void 0?void 0:n.id)&&((i=o.kernel)===null||i===void 0?void 0:i.name)===((s=e.kernel)===null||s===void 0?void 0:s.name)&&o.name===e.name&&o.path===e.path&&o.type===e.type}))){return}this._models=new Map(n.map((e=>[e.id,e])));this._sessionConnections.forEach((e=>{if(this._models.has(e.id)){e.update(this._models.get(e.id))}else{e.dispose()}}));this._runningChanged.emit(n)}_onStarted(e){this._sessionConnections.add(e);e.disposed.connect(this._onDisposed,this);e.propertyChanged.connect(this._onChanged,this);e.kernelChanged.connect(this._onChanged,this)}_onDisposed(e){this._sessionConnections.delete(e);void this.refreshRunning().catch((()=>{}))}_onChanged(){void this.refreshRunning().catch((()=>{}))}}t.SessionManager=d;(function(e){class t extends e{constructor(){super(...arguments);this._readyPromise=new Promise((()=>{}))}get isActive(){return false}get parentReady(){return super.ready}async startNew(e,t={}){return Promise.reject(new Error("Not implemented in no-op Session Manager"))}connectTo(e){throw Error("Not implemented in no-op Session Manager")}get ready(){return this.parentReady.then((()=>this._readyPromise))}async shutdown(e){return Promise.reject(new Error("Not implemented in no-op Session Manager"))}async requestRunning(){return Promise.resolve()}}e.NoopManager=t})(d||(t.SessionManager=d={}))},70637:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SessionAPIClient=t.SESSION_SERVICE_URL=void 0;t.listRunning=r;t.getSessionUrl=a;t.shutdownSession=l;t.getSessionModel=d;t.startSession=c;t.updateSession=h;const i=n(1089);const s=n(30397);const o=n(11521);t.SESSION_SERVICE_URL="api/sessions";async function r(e=i.ServerConnection.makeSettings()){const n=s.URLExt.join(e.baseUrl,t.SESSION_SERVICE_URL);const r=await i.ServerConnection.makeRequest(n,{},e);if(r.status!==200){const e=await i.ServerConnection.ResponseError.create(r);throw e}const a=await r.json();if(!Array.isArray(a)){throw new Error("Invalid Session list")}a.forEach((e=>{(0,o.updateLegacySessionModel)(e);(0,o.validateModel)(e)}));return a}function a(e,n){const i=s.URLExt.join(e,t.SESSION_SERVICE_URL);const o=s.URLExt.join(i,n);if(!o.startsWith(i)){throw new Error("Can only be used for services requests")}return o}async function l(e,t=i.ServerConnection.makeSettings()){var n;const s=a(t.baseUrl,e);const o={method:"DELETE"};const r=await i.ServerConnection.makeRequest(s,o,t);if(r.status===404){const t=await r.json();const i=(n=t.message)!==null&&n!==void 0?n:`The session "${e}"" does not exist on the server`;console.warn(i)}else if(r.status===410){throw new i.ServerConnection.ResponseError(r,"The kernel was deleted but the session was not")}else if(r.status!==204){const e=await i.ServerConnection.ResponseError.create(r);throw e}}async function d(e,t=i.ServerConnection.makeSettings()){const n=a(t.baseUrl,e);const s=await i.ServerConnection.makeRequest(n,{},t);if(s.status!==200){const e=await i.ServerConnection.ResponseError.create(s);throw e}const r=await s.json();(0,o.updateLegacySessionModel)(r);(0,o.validateModel)(r);return r}async function c(e,n=i.ServerConnection.makeSettings()){const r=s.URLExt.join(n.baseUrl,t.SESSION_SERVICE_URL);const a={method:"POST",body:JSON.stringify(e)};const l=await i.ServerConnection.makeRequest(r,a,n);if(l.status!==201){const e=await i.ServerConnection.ResponseError.create(l);throw e}const d=await l.json();(0,o.updateLegacySessionModel)(d);(0,o.validateModel)(d);return d}async function h(e,t=i.ServerConnection.makeSettings()){const n=a(t.baseUrl,e.id);const s={method:"PATCH",body:JSON.stringify(e)};const r=await i.ServerConnection.makeRequest(n,s,t);if(r.status!==200){const e=await i.ServerConnection.ResponseError.create(r);throw e}const l=await r.json();(0,o.updateLegacySessionModel)(l);(0,o.validateModel)(l);return l}class u{constructor(e){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:i.ServerConnection.makeSettings()}async listRunning(){return r(this.serverSettings)}async getModel(e){return d(e,this.serverSettings)}async startNew(e){return c(e,this.serverSettings)}async shutdown(e){return l(e,this.serverSettings)}async update(e){return h(e,this.serverSettings)}}t.SessionAPIClient=u},82827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},11521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateModel=o;t.updateLegacySessionModel=r;t.validateModels=a;const i=n(38872);const s=n(1480);function o(e){(0,s.validateProperty)(e,"id","string");(0,s.validateProperty)(e,"type","string");(0,s.validateProperty)(e,"name","string");(0,s.validateProperty)(e,"path","string");(0,s.validateProperty)(e,"kernel","object");(0,i.validateModel)(e.kernel)}function r(e){if(e.path===undefined&&e.notebook!==undefined){e.path=e.notebook.path;e.type="notebook";e.name=""}}function a(e){if(!Array.isArray(e)){throw new Error("Invalid session list")}e.forEach((e=>o(e)))}},95399:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SettingManager=void 0;const i=n(30397);const s=n(94931);const o=n(1089);const r="api/settings";class a extends s.DataConnector{constructor(e={}){var t;super();this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:o.ServerConnection.makeSettings()}async fetch(e){if(!e){throw new Error("Plugin `id` parameter is required for settings fetch.")}const{serverSettings:t}=this;const{baseUrl:n,appUrl:i}=t;const{makeRequest:s,ResponseError:r}=o.ServerConnection;const a=n+i;const d=l.url(a,e);const c=await s(d,{},t);if(c.status!==200){const e=await r.create(c);throw e}return c.json()}async list(e){var t,n,i,s;const{serverSettings:r}=this;const{baseUrl:a,appUrl:d}=r;const{makeRequest:c,ResponseError:h}=o.ServerConnection;const u=a+d;const p=l.url(u,"",e==="ids");const m=await c(p,{},r);if(m.status!==200){throw new h(m)}const g=await m.json();const f=(n=(t=g===null||g===void 0?void 0:g["settings"])===null||t===void 0?void 0:t.map((e=>e.id)))!==null&&n!==void 0?n:[];let v=[];if(!e){v=(s=(i=g===null||g===void 0?void 0:g["settings"])===null||i===void 0?void 0:i.map((e=>{e.data={composite:{},user:{}};return e})))!==null&&s!==void 0?s:[]}return{ids:f,values:v}}async save(e,t){const{serverSettings:n}=this;const{baseUrl:i,appUrl:s}=n;const{makeRequest:r,ResponseError:a}=o.ServerConnection;const d=i+s;const c=l.url(d,e);const h={body:JSON.stringify({raw:t}),method:"PUT"};const u=await r(c,h,n);if(u.status!==204){throw new a(u)}}}t.SettingManager=a;var l;(function(e){function t(e,t,n){const s=n?i.URLExt.objectToQueryString({ids_only:true}):"";const o=i.URLExt.join(e,r);const a=i.URLExt.join(o,t);if(!a.startsWith(o)){throw new Error("Can only be used for workspaces requests")}return`${a}${s}`}e.url=t})(l||(l={}))},12100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TerminalConnection=void 0;const i=n(30397);const s=n(5592);const o=n(2336);const r=n(50608);const a=n(84903);class l{constructor(e){var t,n;this._createSocket=()=>{this._errorIfDisposed();this._clearSocket();this._updateConnectionStatus("connecting");const e=this._name;const t=this.serverSettings;let n=i.URLExt.join(t.wsUrl,"terminals","websocket",encodeURIComponent(e));const s=t.token;if(t.appendToken&&s!==""){n=n+`?token=${encodeURIComponent(s)}`}this._ws=new t.WebSocket(n);this._ws.onmessage=this._onWSMessage;this._ws.onclose=this._onWSClose;this._ws.onerror=this._onWSClose};this._onWSMessage=e=>{if(this._isDisposed){return}const t=JSON.parse(e.data);if(t[0]==="disconnect"){this.dispose()}if(this._connectionStatus==="connecting"){if(t[0]==="setup"){this._updateConnectionStatus("connected")}return}this._messageReceived.emit({type:t[0],content:t.slice(1)})};this._onWSClose=e=>{console.warn(`Terminal websocket closed: ${e.code}`);if(!this.isDisposed){this._reconnect()}};this._connectionStatus="connecting";this._connectionStatusChanged=new o.Signal(this);this._isDisposed=false;this._disposed=new o.Signal(this);this._messageReceived=new o.Signal(this);this._reconnectTimeout=null;this._ws=null;this._noOp=()=>{};this._reconnectLimit=7;this._reconnectAttempt=0;this._pendingMessages=[];this._name=e.model.name;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:r.ServerConnection.makeSettings();this._terminalAPIClient=(n=e.terminalAPIClient)!==null&&n!==void 0?n:new a.TerminalAPIClient({serverSettings:this.serverSettings});this._createSocket()}get disposed(){return this._disposed}get messageReceived(){return this._messageReceived}get name(){return this._name}get model(){return{name:this._name}}get isDisposed(){return this._isDisposed}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._disposed.emit();this._updateConnectionStatus("disconnected");this._clearSocket();o.Signal.clearData(this)}send(e){this._sendMessage(e)}_sendMessage(e,t=true){if(this._isDisposed||!e.content){return}if(this.connectionStatus==="connected"&&this._ws){const t=[e.type,...e.content];this._ws.send(JSON.stringify(t))}else if(t){this._pendingMessages.push(e)}else{throw new Error(`Could not send message: ${JSON.stringify(e)}`)}}_sendPending(){while(this.connectionStatus==="connected"&&this._pendingMessages.length>0){this._sendMessage(this._pendingMessages[0],false);this._pendingMessages.shift()}}reconnect(){this._errorIfDisposed();const e=new s.PromiseDelegate;const t=(n,i)=>{if(i==="connected"){e.resolve();this.connectionStatusChanged.disconnect(t,this)}else if(i==="disconnected"){e.reject(new Error("Terminal connection disconnected"));this.connectionStatusChanged.disconnect(t,this)}};this.connectionStatusChanged.connect(t,this);this._reconnectAttempt=0;this._reconnect();return e.promise}_reconnect(){this._errorIfDisposed();clearTimeout(this._reconnectTimeout);if(this._reconnectAttempt{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TerminalManager=void 0;const i=n(26568);const s=n(2336);const o=n(50608);const r=n(5412);const a=n(84903);const l=n(12100);class d extends r.BaseManager{constructor(e={}){var t,n;super(e);this._isReady=false;this._names=[];this._terminalConnections=new Set;this._runningChanged=new s.Signal(this);this._connectionFailure=new s.Signal(this);this._terminalAPIClient=(t=e.terminalAPIClient)!==null&&t!==void 0?t:new a.TerminalAPIClient({serverSettings:this.serverSettings});if(!this.isAvailable()){this._ready=Promise.reject("Terminals unavailable");this._ready.catch((e=>undefined));return}this._pollModels=new i.Poll({auto:false,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:true,max:300*1e3},name:`@jupyterlab/services:TerminalManager#models`,standby:(n=e.standby)!==null&&n!==void 0?n:"when-hidden"});this._ready=(async()=>{await this._pollModels.start();await this._pollModels.tick;this._isReady=true})()}get isReady(){return this._isReady}get ready(){return this._ready}get runningChanged(){return this._runningChanged}get connectionFailure(){return this._connectionFailure}dispose(){if(this.isDisposed){return}this._names.length=0;this._terminalConnections.forEach((e=>e.dispose()));this._pollModels.dispose();super.dispose()}isAvailable(){return this._terminalAPIClient.isAvailable}connectTo(e){const t=new l.TerminalConnection({...e,serverSettings:this.serverSettings,terminalAPIClient:this._terminalAPIClient});this._onStarted(t);if(!this._names.includes(e.model.name)){void this.refreshRunning().catch((()=>{}))}return t}running(){return this._models[Symbol.iterator]()}async refreshRunning(){await this._pollModels.refresh();await this._pollModels.tick}async startNew(e={}){const{name:t,cwd:n}=e;const i=await this._terminalAPIClient.startNew({name:t,cwd:n});await this.refreshRunning();return this.connectTo({model:i})}async shutdown(e){await this._terminalAPIClient.shutdown(e);await this.refreshRunning()}async shutdownAll(){await this.refreshRunning();await Promise.all(this._names.map((e=>this._terminalAPIClient.shutdown(e))));await this.refreshRunning()}async requestRunning(){var e,t;let n;try{n=await this._terminalAPIClient.listRunning()}catch(s){if(s instanceof o.ServerConnection.NetworkError||((e=s.response)===null||e===void 0?void 0:e.status)===503||((t=s.response)===null||t===void 0?void 0:t.status)===424){this._connectionFailure.emit(s)}throw s}if(this.isDisposed){return}const i=n.map((({name:e})=>e)).sort();if(i===this._names){return}this._names=i;this._terminalConnections.forEach((e=>{if(!i.includes(e.name)){e.dispose()}}));this._runningChanged.emit(this._models)}_onStarted(e){this._terminalConnections.add(e);e.disposed.connect(this._onDisposed,this)}_onDisposed(e){this._terminalConnections.delete(e);void this.refreshRunning().catch((()=>{}))}get _models(){return this._names.map((e=>({name:e})))}}t.TerminalManager=d;(function(e){class t extends e{constructor(){super(...arguments);this._readyPromise=new Promise((()=>{}))}get isActive(){return false}get parentReady(){return super.ready}get ready(){return this.parentReady.then((()=>this._readyPromise))}async startNew(e){return Promise.reject(new Error("Not implemented in no-op Terminal Manager"))}connectTo(e){throw Error("Not implemented in no-op Terminal Manager")}async shutdown(e){return Promise.reject(new Error("Not implemented in no-op Terminal Manager"))}async requestRunning(){return Promise.resolve()}}e.NoopManager=t})(d||(t.TerminalManager=d={}))},84903:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TerminalAPIClient=t.TERMINAL_SERVICE_URL=void 0;t.isAvailable=o;t.startNew=r;t.listRunning=a;t.shutdownTerminal=l;const i=n(30397);const s=n(1089);t.TERMINAL_SERVICE_URL="api/terminals";function o(){const e=String(i.PageConfig.getOption("terminalsAvailable"));return e.toLowerCase()==="true"}async function r(e=s.ServerConnection.makeSettings(),n,o){c.errorIfNotAvailable();const r=i.URLExt.join(e.baseUrl,t.TERMINAL_SERVICE_URL);const a={method:"POST",body:JSON.stringify({name:n,cwd:o})};const l=await s.ServerConnection.makeRequest(r,a,e);if(l.status!==200){const e=await s.ServerConnection.ResponseError.create(l);throw e}const d=await l.json();return d}async function a(e=s.ServerConnection.makeSettings()){c.errorIfNotAvailable();const n=i.URLExt.join(e.baseUrl,t.TERMINAL_SERVICE_URL);const o=await s.ServerConnection.makeRequest(n,{},e);if(o.status!==200){const e=await s.ServerConnection.ResponseError.create(o);throw e}const r=await o.json();if(!Array.isArray(r)){throw new Error("Invalid terminal list")}return r}async function l(e,n=s.ServerConnection.makeSettings()){var o;c.errorIfNotAvailable();const r=i.URLExt.join(n.baseUrl,t.TERMINAL_SERVICE_URL);const a=i.URLExt.join(r,e);if(!a.startsWith(r)){throw new Error("Can only be used for terminal requests")}const l={method:"DELETE"};const d=await s.ServerConnection.makeRequest(a,l,n);if(d.status===404){const t=await d.json();const n=(o=t.message)!==null&&o!==void 0?o:`The terminal session "${e}"" does not exist on the server`;console.warn(n)}else if(d.status!==204){const e=await s.ServerConnection.ResponseError.create(d);throw e}}class d{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:s.ServerConnection.makeSettings()}get isAvailable(){return o()}async startNew(e={}){const{name:t,cwd:n}=e;return r(this.serverSettings,t,n)}async listRunning(){return a(this.serverSettings)}async shutdown(e){return l(e,this.serverSettings)}}t.TerminalAPIClient=d;var c;(function(e){function t(){if(!o()){throw new Error("Terminals Unavailable")}}e.errorIfNotAvailable=t})(c||(c={}))},88917:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isAvailable=void 0;const i=n(84903);Object.defineProperty(t,"isAvailable",{enumerable:true,get:function(){return i.isAvailable}})},80856:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IWorkspaceManager=t.IUserManager=t.ITerminalManager=t.IServiceManager=t.ISettingManager=t.ISessionManager=t.IServerSettings=t.INbConvertManager=t.IKernelSpecManager=t.IKernelManager=t.IEventManager=t.IDefaultDrive=t.IContentsManager=t.IConfigSectionManager=t.IConnectionStatus=void 0;const i=n(5592);t.IConnectionStatus=new i.Token("@jupyterlab/application:IConnectionStatus","A service providing the application connection status.");t.IConfigSectionManager=new i.Token("@jupyterlab/services:IConfigSectionManager","A service providing the config section manager.");t.IContentsManager=new i.Token("@jupyterlab/services:IContentsManager","The contents manager token.");t.IDefaultDrive=new i.Token("@jupyterlab/services:IDefaultDrive","The default drive for the contents manager.");t.IEventManager=new i.Token("@jupyterlab/services:IEventManager","The event manager token.");t.IKernelManager=new i.Token("@jupyterlab/services:IKernelManager","The kernel manager token.");t.IKernelSpecManager=new i.Token("@jupyterlab/services:IKernelSpecManager","The kernel spec manager token.");t.INbConvertManager=new i.Token("@jupyterlab/services:INbConvertManager","The nbconvert manager token.");t.IServerSettings=new i.Token("@jupyterlab/services:IServerSettings","The server settings for the application.");t.ISessionManager=new i.Token("@jupyterlab/services:ISessionManager","The session manager token.");t.ISettingManager=new i.Token("@jupyterlab/services:ISettingManager","The setting manager token.");t.IServiceManager=new i.Token("@jupyterlab/services:IServiceManager","The service manager for the application.");t.ITerminalManager=new i.Token("@jupyterlab/services:ITerminalManager","The terminal manager token.");t.IUserManager=new i.Token("@jupyterlab/services:IUserManager","The user manager token.");t.IWorkspaceManager=new i.Token("@jupyterlab/services:IWorkspaceManager","The workspace manager token.")},18430:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UserManager=void 0;const i=n(30397);const s=n(5592);const o=n(26568);const r=n(2336);const a=n(1089);const l=n(5412);const d="api/me";const c="@jupyterlab/services:UserManager#user";class h extends l.BaseManager{constructor(e={}){var t;super(e);this._isReady=false;this._userChanged=new r.Signal(this);this._connectionFailure=new r.Signal(this);this._ready=this.requestUser().then((()=>{if(this.isDisposed){return}this._isReady=true})).catch((e=>new Promise((()=>{}))));this._pollSpecs=new o.Poll({auto:false,factory:()=>this.requestUser(),frequency:{interval:61*1e3,backoff:true,max:300*1e3},name:c,standby:(t=e.standby)!==null&&t!==void 0?t:"when-hidden"});void this.ready.then((()=>{void this._pollSpecs.start()}))}get isReady(){return this._isReady}get ready(){return this._ready}get identity(){return this._identity}get permissions(){return this._permissions}get userChanged(){return this._userChanged}get connectionFailure(){return this._connectionFailure}dispose(){this._pollSpecs.dispose();super.dispose()}async refreshUser(){await this._pollSpecs.refresh();await this._pollSpecs.tick}async requestUser(){if(this.isDisposed){return}const{baseUrl:e}=this.serverSettings;const{makeRequest:t,ResponseError:n}=a.ServerConnection;const o=i.URLExt.join(e,d);const r=await t(o,{},this.serverSettings);if(r.status!==200){const e=await n.create(r);throw e}const l={identity:this._identity,permissions:this._permissions};const h=await r.json();const p=h.identity;const{localStorage:m}=window;const g=m.getItem(c);if(g&&(!p.initials||!p.color)){const e=JSON.parse(g);p.initials=p.initials||e.initials||p.name.substring(0,1);p.color=p.color||e.color||u.getRandomColor()}if(!s.JSONExt.deepEqual(h,l)){this._identity=p;this._permissions=h.permissions;m.setItem(c,JSON.stringify(p));this._userChanged.emit(h)}}}t.UserManager=h;var u;(function(e){const t=["var(--jp-collaborator-color1)","var(--jp-collaborator-color2)","var(--jp-collaborator-color3)","var(--jp-collaborator-color4)","var(--jp-collaborator-color5)","var(--jp-collaborator-color6)","var(--jp-collaborator-color7)"];e.getRandomColor=()=>t[Math.floor(Math.random()*t.length)]})(u||(u={}))},1480:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateProperty=n;function n(e,t,n,i=[]){if(!e.hasOwnProperty(t)){throw Error(`Missing property '${t}'`)}const s=e[t];if(n!==void 0){let e=true;switch(n){case"array":e=Array.isArray(s);break;case"object":e=typeof s!=="undefined";break;default:e=typeof s===n}if(!e){throw new Error(`Property '${t}' is not of type '${n}'`)}if(i.length>0){let e=true;switch(n){case"string":case"number":case"boolean":e=i.includes(s);break;default:e=i.findIndex((e=>e===s))>=0;break}if(!e){throw new Error(`Property '${t}' is not one of the valid values ${JSON.stringify(i)}`)}}}}},90362:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WorkspaceManager=void 0;const i=n(30397);const s=n(94931);const o=n(1089);const r="api/workspaces";class a extends s.DataConnector{constructor(e={}){var t;super();this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:o.ServerConnection.makeSettings()}async fetch(e){const{serverSettings:t}=this;const{baseUrl:n,appUrl:i}=t;const{makeRequest:s,ResponseError:r}=o.ServerConnection;const a=n+i;const d=l.url(a,e);const c=await s(d,{},t);if(c.status!==200){const e=await r.create(c);throw e}return c.json()}async list(){const{serverSettings:e}=this;const{baseUrl:t,appUrl:n}=e;const{makeRequest:i,ResponseError:s}=o.ServerConnection;const r=t+n;const a=l.url(r,"");const d=await i(a,{},e);if(d.status!==200){const e=await s.create(d);throw e}const c=await d.json();return c.workspaces}async remove(e){const{serverSettings:t}=this;const{baseUrl:n,appUrl:i}=t;const{makeRequest:s,ResponseError:r}=o.ServerConnection;const a=n+i;const d=l.url(a,e);const c={method:"DELETE"};const h=await s(d,c,t);if(h.status!==204){const e=await r.create(h);throw e}}async save(e,t){const{serverSettings:n}=this;const{baseUrl:i,appUrl:s}=n;const{makeRequest:r,ResponseError:a}=o.ServerConnection;const d=i+s;const c=l.url(d,e);const h={body:JSON.stringify(t),method:"PUT"};const u=await r(c,h,n);if(u.status!==204){const e=await a.create(u);throw e}}}t.WorkspaceManager=a;var l;(function(e){function t(e,t){const n=i.URLExt.join(e,r);const s=i.URLExt.join(n,t);if(!s.startsWith(n)){throw new Error("Can only be used for workspaces requests")}return s}e.url=t})(l||(l={}))},34194:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>S});var i=n(94307);var s=n(14366);var o=n(54723);var r=n(26331);var a=n(44539);var l=n(667);var d=n(60075);var c=n(84739);var h=n(94931);var u=n(30619);var p=n(44914);var m=n.n(p);const g=e=>{const t=e.translator.load("jupyterlab");const[n,i]=(0,p.useState)(e.importedSettings.reduce(((e,t)=>{e[t]=true;return e}),{}));const s=(e,t)=>{const s={...n,[e]:t};i(s)};return m().createElement("div",{className:"jp-SettingsImport-container"},m().createElement("div",{className:"jp-SettingsImport-header"},m().createElement("span",{className:"jp-SettingsImport-title"},t.__("Select settings sections to import")),m().createElement("button",{className:"jp-Button jp-mod-styled jp-mod-accept",onClick:()=>{e.handleImport(Object.keys(n).filter((e=>!n[e])))}},t.__("Import"))),m().createElement("div",{className:"jp-SettingsImport-list"},e.importedSettings.map((e=>m().createElement("label",{key:e,className:"jp-SettingsImport-item"},m().createElement("span",{className:"jp-SettingsImport-itemKey"},e),m().createElement("input",{type:"checkbox",checked:n[e],onChange:t=>s(e,t.target.checked),className:"jp-SettingsImport-checkbox"}))))))};class f extends r.ReactWidget{constructor(e){const{importedSettings:t,handleImport:n,translator:i}=e;super();this.importedSettings=t;this.handleImport=n;this.addClass("jp-SettingsImport-widget");this.translator=i}render(){return m().createElement(g,{importedSettings:this.importedSettings,handleImport:this.handleImport,translator:this.translator})}}const v=e=>m().createElement("div",null,m().createElement("div",null,e.successMessage),e.failureMessage&&m().createElement("div",null,m().createElement("br",null),m().createElement("div",null,e.failureMessage),e.failedSettings&&e.failedSettings.map(((e,t)=>m().createElement("div",{key:t},e)))));class _ extends r.ReactWidget{constructor(e){super();this._props=e}render(){return m().createElement(v,{...this._props})}}var b;(function(e){e.open="settingeditor:open";e.openJSON="settingeditor:open-json";e.revert="settingeditor:revert";e.save="settingeditor:save";e.exportSettings="settingeditor:export";e.importSettings="settingeditor:import"})(b||(b={}));const y={id:"@jupyterlab/settingeditor-extension:form-ui",description:"Adds the interactive settings editor and provides its tracker.",requires:[c.ISettingRegistry,h.IStateDB,u.ITranslator,r.IFormRendererRegistry,i.ILabStatus],optional:[i.ILayoutRestorer,s.ICommandPalette,l.F,d.IPluginManager],autoStart:true,provides:l.z,activate:w};function w(e,t,i,o,a,l,d,c,h,u){const p=o.load("jupyterlab");const{commands:m,shell:g}=e;const f="setting-editor";const v=new s.WidgetTracker({namespace:f});if(d){void d.restore(v,{command:b.open,args:e=>({}),name:e=>f})}const _=async e=>{if(v.currentWidget&&!v.currentWidget.isDisposed){if(!v.currentWidget.isAttached){g.add(v.currentWidget,"main",{type:"Settings"})}g.activateById(v.currentWidget.id);if(e.query){v.currentWidget.content.updateQuery(e.query)}return}const d=y.id;const{SettingsEditor:c}=await n.e(6659).then(n.t.bind(n,86659,23));const _=new s.MainAreaWidget({content:new c({editorRegistry:a,key:d,registry:t,state:i,commands:m,toSkip:["@jupyterlab/application-extension:context-menu","@jupyterlab/mainmenu-extension:plugin"],translator:o,status:l,query:e.query})});_.toolbar.addItem("export-settings",new r.CommandToolbarButton({commands:m,id:b.exportSettings,icon:r.downloadIcon,label:p.__("Export"),caption:p.__("Export settings to a JSON file")}));_.toolbar.addItem("import-settings",new r.CommandToolbarButton({commands:m,id:b.importSettings,icon:r.fileUploadIcon,label:p.__("Import"),caption:p.__("Import settings from a JSON file")}));_.toolbar.addItem("spacer",r.Toolbar.createSpacerItem());if(u){_.toolbar.addItem("open-plugin-manager",new r.ToolbarButton({onClick:async()=>{await u.open()},icon:r.launchIcon,label:p.__("Plugin Manager")}))}if(h){_.toolbar.addItem("open-json-editor",new r.CommandToolbarButton({commands:m,id:b.openJSON,icon:r.launchIcon,label:p.__("JSON Settings Editor")}))}_.id=f;_.title.icon=r.settingsIcon;_.title.label=p.__("Settings");_.title.closable=true;void v.add(_);g.add(_,"main",{type:"Settings"})};m.addCommand(b.open,{execute:async e=>{var n;if(e.settingEditorType==="ui"){void m.execute(b.open,{query:(n=e.query)!==null&&n!==void 0?n:""})}else if(e.settingEditorType==="json"){void m.execute(b.openJSON)}else{void t.load(y.id).then((t=>{var n;t.get("settingEditorType").composite==="json"?void m.execute(b.openJSON):void _({query:(n=e.query)!==null&&n!==void 0?n:""})}))}},label:e=>{if(e.label){return e.label}return p.__("Settings Editor")}});if(c){c.addItem({category:p.__("Settings"),command:b.open,args:{settingEditorType:"ui"}})}return v}const C={id:"@jupyterlab/settingeditor-extension:plugin",description:"Adds the JSON settings editor and provides its tracker.",requires:[c.ISettingRegistry,o.IEditorServices,h.IStateDB,a.IRenderMimeRegistry,i.ILabStatus,u.ITranslator],optional:[i.ILayoutRestorer,s.ICommandPalette],autoStart:true,provides:l.F,activate:x};function x(e,t,i,o,a,l,d,c,h){const u=d.load("jupyterlab");const{commands:p,shell:m}=e;const g="json-setting-editor";const v=i.factoryService;const w=v.newInlineEditor;const C=new s.WidgetTracker({namespace:g});if(c){void c.restore(C,{command:b.openJSON,args:e=>({}),name:e=>g})}p.addCommand(b.openJSON,{execute:async()=>{if(C.currentWidget&&!C.currentWidget.isDisposed){if(!C.currentWidget.isAttached){m.add(C.currentWidget,"main",{type:"Advanced Settings"})}m.activateById(C.currentWidget.id);return}const i=y.id;const c=e.restored;const{JsonSettingEditor:h}=await n.e(6659).then(n.t.bind(n,86659,23));const f=new h({commands:{registry:p,revert:b.revert,save:b.save},editorFactory:w,key:i,registry:t,rendermime:a,state:o,translator:d,when:c});let v=null;f.commandsChanged.connect(((e,t)=>{t.forEach((e=>{p.notifyCommandChanged(e)}));if(f.canSaveRaw){if(!v){v=l.setDirty()}}else if(v){v.dispose();v=null}f.disposed.connect((()=>{if(v){v.dispose()}}))}));const _=new s.MainAreaWidget({content:f});_.id=g;_.title.icon=r.settingsIcon;_.title.label=u.__("Advanced Settings Editor");_.title.closable=true;void C.add(_);m.add(_,"main",{type:"Advanced Settings"})},label:u.__("Advanced Settings Editor")});if(h){h.addItem({category:u.__("Settings"),command:b.openJSON})}p.addCommand(b.revert,{execute:()=>{var e;(e=C.currentWidget)===null||e===void 0?void 0:e.content.revert()},icon:r.undoIcon,label:u.__("Revert User Settings"),isEnabled:()=>{var e,t;return(t=(e=C.currentWidget)===null||e===void 0?void 0:e.content.canRevertRaw)!==null&&t!==void 0?t:false}});p.addCommand(b.save,{execute:()=>{var e;return(e=C.currentWidget)===null||e===void 0?void 0:e.content.save()},icon:r.saveIcon,label:u.__("Save User Settings"),isEnabled:()=>{var e,t;return(t=(e=C.currentWidget)===null||e===void 0?void 0:e.content.canSaveRaw)!==null&&t!==void 0?t:false}});p.addCommand(b.exportSettings,{execute:()=>{const e=x(t);const n=JSON.stringify(e,null,2);S(n,"overrides.json")},label:u.__("Export Settings"),icon:r.downloadIcon});p.addCommand(b.importSettings,{execute:()=>{const n=document.createElement("input");n.type="file";n.accept=".json";const i=4;n.addEventListener("change",(async n=>{var o;const a=(o=n.target.files)===null||o===void 0?void 0:o[0];if(!a){return}try{const n=await a.text();const o=JSON.parse(n);if(typeof o!=="object"||Array.isArray(o)){throw new Error("Invalid settings file format")}const l=[];const c=async n=>{var r;const a=Object.entries(o);for(const[e,s]of a){if(typeof s==="object"&&!Array.isArray(s)){try{await t.upload(e,JSON.stringify(s,undefined,i))}catch(d){console.warn(`Failed to save settings for ${e}:`,d);l.push(e)}}else{console.warn(`Invalid settings for plugin ${e}. Skipping.`)}}(r=e.shell.currentWidget)===null||r===void 0?void 0:r.close();if(a.length){const e=a.length-l.length;const t=u.__(`Imported settings across ${e} ${e===1?"category":"categories"} successfully.`);const n=l.length?u.__(`Failed to upload settings for the following ${l.length} ${l.length===1?"plugin":"plugins"}`):"";const i=new _({successMessage:t,failureMessage:n,failedSettings:l});await(0,s.showDialog)({title:u.__("Settings Imported"),body:i,buttons:[s.Dialog.okButton()]})}};const h=Object.keys(o);const p=new f({importedSettings:h,handleImport:c,translator:d});const m=new s.MainAreaWidget({content:p});m.title.label=u.__("Import Settings");m.title.icon=r.fileUploadIcon;e.shell.add(m,"main");e.shell.activateById(m.id)}catch(l){await(0,s.showErrorMessage)("Failed to import settings",l)}}));n.click()},label:u.__("Import Settings"),icon:r.fileUploadIcon});function x(e){const t={};for(const[i,s]of Object.entries(e.plugins)){if(s){try{if(s.raw){const e=s.raw.replace(/\/\/.*$/gm,"");const n=e.replace(/\/\*[\s\S]*?\*\//g,"");const o=JSON.parse(n);if(Object.keys(o).length>0){t[i]=o}}}catch(n){console.error(`Error loading settings for plugin ${i}:`,n)}}}return t}function S(e,t){const n=new Blob([e],{type:"application/json"});const i=URL.createObjectURL(n);const s=document.createElement("a");s.href=i;s.download=t;document.body.appendChild(s);s.click();document.body.removeChild(s);URL.revokeObjectURL(i)}return C}const S=[y,C]},40779:(e,t,n)=>{"use strict";var i=n(40662);var s=n(97913);var o=n(17325);var r=n(5893);var a=n(3579);var l=n(14383);var d=n(10395);var c=n(52638);var h=n(85072);var u=n.n(h);var p=n(97825);var m=n.n(p);var g=n(77659);var f=n.n(g);var v=n(55056);var _=n.n(v);var b=n(10540);var y=n.n(b);var w=n(41113);var C=n.n(w);var x=n(45453);var S={};S.styleTagTransform=C();S.setAttributes=_();S.insert=f().bind(null,"head");S.domAPI=m();S.insertStyleElement=y();var k=u()(x.A,S);const j=x.A&&x.A.locals?x.A.locals:undefined},33296:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IJSONSettingEditorTracker:()=>H.F,ISettingEditorTracker:()=>H.z,JsonSettingEditor:()=>F,SettingsEditor:()=>x});var i=n(14366);var s=n(30619);var o=n(26331);var r=n(2336);var a=n(1143);var l=n(44914);var d=n.n(l);var c=n(34236);var h=n(5592);const u="jupyter.lab.setting-icon";const p="jupyter.lab.setting-icon-class";const m="jupyter.lab.setting-icon-label";class g extends i.ReactWidget{constructor(e){var t,n;super();this._changed=new r.Signal(this);this._handleSelectSignal=new r.Signal(this);this._updateFilterSignal=new r.Signal(this);this._scrollTop=0;this._selection="";this._registry=this.registry=e.registry;this.translator=e.translator||s.nullTranslator;this.addClass("jp-PluginList");this._confirm=e.confirm;this._model=(t=e.model)!==null&&t!==void 0?t:new g.Model(e);this._model.ready.then((()=>{this.update();this._model.changed.connect((()=>{this.update()}))})).catch((e=>{console.error(`Failed to load the plugin list model:\n${e}`)}));this.mapPlugins=this.mapPlugins.bind(this);this.setFilter=this.setFilter.bind(this);this.setFilter(e.query?(0,o.updateFilterFunction)(e.query,false,false):null);this.setError=this.setError.bind(this);this._evtMousedown=this._evtMousedown.bind(this);this._query=(n=e.query)!==null&&n!==void 0?n:"";this._errors={}}get changed(){return this._changed}get scrollTop(){var e;return(e=this.node.querySelector("ul"))===null||e===void 0?void 0:e.scrollTop}get hasErrors(){for(const e in this._errors){if(this._errors[e]){return true}}return false}get filter(){return this._filter}get selection(){return this._selection}set selection(e){this._selection=e;this.update()}get updateFilterSignal(){return this._updateFilterSignal}get handleSelectSignal(){return this._handleSelectSignal}onUpdateRequest(e){const t=this.node.querySelector("ul");if(t&&this._scrollTop!==undefined){t.scrollTop=this._scrollTop}super.onUpdateRequest(e)}_evtMousedown(e){const t=e.currentTarget;const n=t.getAttribute("data-id");if(!n){return}if(this._confirm){this._confirm(n).then((()=>{this.selection=n;this._changed.emit(undefined);this.update()})).catch((()=>{}))}else{this._scrollTop=this.scrollTop;this._selection=n;this._handleSelectSignal.emit(n);this._changed.emit(undefined);this.update()}}getHint(e,t,n){let i=n.data.user[e];if(!i){i=n.data.composite[e]}if(!i){i=n.schema[e]}if(!i){const{properties:n}=t.schema;i=n&&n[e]&&n[e].default}return typeof i==="string"?i:""}getFilterString(e,t,n,i){var s;if(i&&n){i=i.replace("#/definitions/","");t=(s=n[i])!==null&&s!==void 0?s:{}}if(t.properties){t=t.properties}else if(t.items){t=t.items}else{return[]}if(t["$ref"]){return this.getFilterString(e,t,n,t["$ref"])}if(Object.keys(t).length===0){return[]}return Object.keys(t).reduce(((i,s)=>{var o,r;const a=t[s];if(!a){if(e((o=t.title)!==null&&o!==void 0?o:"")){return t.title}if(e(s)){return s}}if(e((r=a.title)!==null&&r!==void 0?r:"")){i.push(a.title)}if(e(s)){i.push(s)}i.concat(this.getFilterString(e,a,n,a["$ref"]));return i}),[])}setFilter(e,t){if(e){this._filter=t=>{var n,i;if(!e||e((n=t.schema.title)!==null&&n!==void 0?n:"")){return null}const s=this.getFilterString(e,(i=t.schema)!==null&&i!==void 0?i:{},t.schema.definitions);return s}}else{this._filter=null}this._query=t;this._updateFilterSignal.emit(this._filter);this.update()}setError(e,t){if(this._errors[e]!==t){this._errors[e]=t;this.update()}else{this._errors[e]=t}}mapPlugins(e){var t,n,i,s;const{id:r,schema:a,version:l}=e;const h=this.translator.load("jupyterlab");const g=typeof a.title==="string"?h._p("schema",a.title):r;const f=c.StringExt.matchSumOfSquares(g.toLocaleLowerCase(),(n=(t=this._query)===null||t===void 0?void 0:t.toLocaleLowerCase())!==null&&n!==void 0?n:"");const v=c.StringExt.highlight(g,(i=f===null||f===void 0?void 0:f.indices)!==null&&i!==void 0?i:[],(e=>d().createElement("mark",null,e)));const _=typeof a.description==="string"?h._p("schema",a.description):"";const b=`${_}\n${r}\n${l}`;const y=this.getHint(u,this._registry,e);const w=this.getHint(p,this._registry,e);const C=this.getHint(m,this._registry,e);const x=this._filter?(s=this._filter(e))===null||s===void 0?void 0:s.map((e=>{var t,n,i;const s=c.StringExt.matchSumOfSquares(e.toLocaleLowerCase(),(n=(t=this._query)===null||t===void 0?void 0:t.toLocaleLowerCase())!==null&&n!==void 0?n:"");const o=c.StringExt.highlight(e,(i=s===null||s===void 0?void 0:s.indices)!==null&&i!==void 0?i:[],(e=>d().createElement("mark",null,e)));return d().createElement("li",{key:`${r}-${e}`}," ",o," ")})):undefined;return d().createElement("div",{onClick:this._evtMousedown,className:`${r===this.selection?"jp-mod-selected jp-PluginList-entry":"jp-PluginList-entry"} ${this._errors[r]?"jp-ErrorPlugin":""}`,"data-id":r,key:r,title:b},d().createElement("div",{className:"jp-PluginList-entry-label",role:"tab"},d().createElement("div",{className:"jp-SelectedIndicator"}),d().createElement(o.LabIcon.resolveReact,{icon:y||(w?undefined:o.settingsIcon),iconClass:(0,o.classes)(w,"jp-Icon"),title:C,tag:"span",stylesheet:"settingsEditor"}),d().createElement("span",{className:"jp-PluginList-entry-label-text"},v)),d().createElement("ul",null,x))}render(){const e=this.translator.load("jupyterlab");const t=this._model.plugins.filter((e=>{if(!this._filter){return false}const t=this._filter(e);return t===null||t.length>0}));const n=t.filter((e=>{var t;return(t=this._model.settings[e.id])===null||t===void 0?void 0:t.isModified}));const i=n.map(this.mapPlugins);const s=t.filter((e=>!n.includes(e))).map(this.mapPlugins);return d().createElement("div",{className:"jp-PluginList-wrapper"},d().createElement(o.FilterBox,{updateFilter:this.setFilter,useFuzzyFilter:false,placeholder:e.__("Search settings…"),forceRefresh:false,caseSensitive:false,initialQuery:this._query}),i.length>0&&d().createElement("div",null,d().createElement("h1",{className:"jp-PluginList-header"},e.__("Modified")),d().createElement("ul",null,i)),s.length>0&&d().createElement("div",null,d().createElement("h1",{className:"jp-PluginList-header"},e.__("Settings")),d().createElement("ul",null,s)),i.length===0&&s.length===0&&d().createElement("p",{className:"jp-PluginList-noResults"},e.__("No items match your search.")))}}(function(e){function t(e){return Object.keys(e.plugins).map((t=>e.plugins[t])).sort(((e,t)=>(e.schema.title||e.id).localeCompare(t.schema.title||t.id)))}e.sortPlugins=t;class n{constructor(e){var t;this._plugins=[];this._changed=new r.Signal(this);this._ready=new h.PromiseDelegate;this._settings={};this._settingsModified={};this._toSkip=(t=e.toSkip)!==null&&t!==void 0?t:[];this._registry=e.registry;this._registry.pluginChanged.connect((async(e,t)=>{let n=false;if(!this._plugins.map((e=>e.id)).includes(t)){this._plugins=this._loadPlugins();n=true}if(!this._settings[t]){const e=this._plugins.filter((e=>e.id===t));await this._loadSettings(e);n=true}if(n){this._changed.emit()}}),this);this._plugins=this._loadPlugins();this._loadSettings(this._plugins).then((()=>{this._ready.resolve(undefined)})).catch((e=>{console.error(`Failed to load the settings:\n${e}`)}))}get plugins(){return this._plugins}get ready(){return this._ready.promise}get settings(){return this._settings}get changed(){return this._changed}_loadPlugins(){return this._sortPlugins(this._registry).filter((e=>{const{schema:t}=e;const n=t["jupyter.lab.setting-deprecated"]===true;const i=Object.keys(t.properties||{}).length>0;const s=t.additionalProperties!==false;const o=!this._toSkip.includes(e.id);return!n&&o&&(i||s)}))}async _loadSettings(e){for(const t of e){const e=await this._registry.load(t.id);e.changed.connect((()=>{if(e.isModified!==this._settingsModified[t.id]){this._changed.emit();this._settingsModified[t.id]=e.isModified}}));this._settings[t.id]=e;this._settingsModified[t.id]=e.isModified}}_sortPlugins(e){return Object.keys(e.plugins).map((t=>e.plugins[t])).sort(((e,t)=>(e.schema.title||e.id).localeCompare(t.schema.title||t.id)))}}e.Model=n})(g||(g={}));var f=n(26568);var v=n(41742);var _=n.n(v);const b=4;class y extends d().Component{constructor(e){super(e);this.reset=async e=>{e.stopPropagation();for(const t in this.props.settings.user){await this.props.settings.remove(t)}this._formData=this.props.settings.composite;this.setState({isModified:false})};this._syncFormDataWithSettings=()=>{this._formData=this.props.settings.composite;this.setState(((e,t)=>({isModified:t.settings.isModified})))};this._onChange=e=>{this.props.hasError(e.errors.length!==0);const t=h.JSONExt.deepCopy(this._formData);if(e.formData){Object.keys(e.formData).forEach((n=>{const i=e.formData;if(i&&n in i){t[n]=i[n]}}))}this._formData=t;if(e.errors.length===0){this.props.updateDirtyState(true);void this._debouncer.invoke()}this.props.onSelect(this.props.settings.id)};const{settings:t}=e;t.changed.connect(this._syncFormDataWithSettings);this._formData=t.composite;this.state={isModified:t.isModified,uiSchema:{},filteredSchema:this.props.settings.schema,formContext:{defaultFormData:this.props.settings.default(),settings:this.props.settings,schema:h.JSONExt.deepCopy(this.props.settings.schema)}};this.handleChange=this.handleChange.bind(this);this._debouncer=new f.Debouncer(this.handleChange)}componentDidMount(){this._setUiSchema();this._setFilteredSchema()}componentDidUpdate(e){this._setUiSchema(e.renderers[e.settings.id]);this._setFilteredSchema(e.filteredValues);if(e.settings!==this.props.settings){this.setState((e=>({formContext:{...e.formContext,settings:this.props.settings,defaultFormData:this.props.settings.default()}})))}}componentWillUnmount(){this._debouncer.dispose()}handleChange(){if(!this.props.settings.isModified&&this._formData&&this.props.settings.isDefault(this._formData)){this.props.updateDirtyState(false);return}this.props.settings.save(JSON.stringify(this._formData,undefined,b)).then((()=>{this.props.updateDirtyState(false);this.setState({isModified:this.props.settings.isModified})})).catch((e=>{this.props.updateDirtyState(false);const t=this.props.translator.load("jupyterlab");void(0,i.showErrorMessage)(t.__("Error saving settings."),e)}))}render(){const e=this.props.translator.load("jupyterlab");return d().createElement(d().Fragment,null,d().createElement("div",{className:"jp-SettingsHeader"},d().createElement("h2",{className:"jp-SettingsHeader-title",title:this.props.settings.schema.description},this.props.settings.schema.title),d().createElement("div",{className:"jp-SettingsHeader-buttonbar"},this.state.isModified&&d().createElement(o.Button,{className:"jp-RestoreButton",onClick:this.reset},e.__("Restore to Defaults"))),d().createElement("div",{className:"jp-SettingsHeader-description"},this.props.settings.schema.description)),d().createElement(o.FormComponent,{validator:_(),schema:this.state.filteredSchema,formData:this._getFilteredFormData(this.state.filteredSchema),uiSchema:this.state.uiSchema,fields:this.props.renderers[this.props.settings.id],formContext:this.state.formContext,liveValidate:true,idPrefix:`jp-SettingsEditor-${this.props.settings.id}`,onChange:this._onChange,translator:this.props.translator,experimental_defaultFormStateBehavior:{emptyObjectFields:"populateRequiredDefaults"}}))}_setUiSchema(e){var t;const n=this.props.renderers[this.props.settings.id];if(!h.JSONExt.deepEqual(Object.keys(e!==null&&e!==void 0?e:{}).sort(),Object.keys(n!==null&&n!==void 0?n:{}).sort())){const e={};for(const n in this.props.renderers[this.props.settings.id]){if(Object.keys((t=this.props.settings.schema.properties)!==null&&t!==void 0?t:{}).includes(n)){e[n]={"ui:field":n}}}this.setState({uiSchema:e})}}_setFilteredSchema(e){var t,n,i,s;if(e===undefined||!h.JSONExt.deepEqual(e,this.props.filteredValues)||!h.JSONExt.deepEqual(this.state.formContext.schema,this.props.settings.schema)){const e=h.JSONExt.deepCopy(this.props.settings.schema);if((n=(t=this.props.filteredValues)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0>0){for(const t in e.properties){if(!((i=this.props.filteredValues)===null||i===void 0?void 0:i.includes((s=e.properties[t].title)!==null&&s!==void 0?s:t))){delete e.properties[t]}}}this.setState((t=>({filteredSchema:e,formContext:{...t.formContext,schema:h.JSONExt.deepCopy(this.props.settings.schema)}})))}}_getFilteredFormData(e){if(!(e===null||e===void 0?void 0:e.properties)){return this._formData}const t=h.JSONExt.deepCopy(this._formData);for(const n in t){if(!e.properties[n]){delete t[n]}}return t}}const w=({translator:e})=>{const t=e.load("jupyterlab");return d().createElement("div",{className:"jp-SettingsEditor-placeholder"},d().createElement("div",{className:"jp-SettingsEditor-placeholderContent"},d().createElement("h3",null,t.__("No Plugin Selected")),d().createElement("p",null,t.__("Select a plugin from the list to view and edit its preferences."))))};const C=({settings:e,editorRegistry:t,onSelect:n,handleSelectSignal:i,hasError:s,updateDirtyState:o,updateFilterSignal:r,translator:a,initialFilter:c})=>{const[h,u]=(0,l.useState)(null);const[p,m]=(0,l.useState)(c?()=>c:null);const g=d().useRef(null);const f=d().useRef({});(0,l.useEffect)((()=>{var e;const t=(e,t)=>{t?m((()=>t)):m(null)};r.connect(t);const n=(e,t)=>{u(t)};(e=i===null||i===void 0?void 0:i.connect)===null||e===void 0?void 0:e.call(i,n);return()=>{var e;r.disconnect(t);(e=i===null||i===void 0?void 0:i.disconnect)===null||e===void 0?void 0:e.call(i,n)}}),[]);const v=d().useCallback(((e,t)=>{if(f.current){f.current[e]=t;for(const e in f.current){if(f.current[e]){o(true);return}}}o(false)}),[f,o]);const _=d().useMemo((()=>Object.entries(t.renderers).reduce(((e,[t,n])=>{const i=t.lastIndexOf(".");const s=t.substring(0,i);const o=t.substring(i+1);if(!e[s]){e[s]={}}if(!e[s][o]&&n.fieldRenderer){e[s][o]=n.fieldRenderer}return e}),{})),[t]);if(!h&&!p){return d().createElement(w,{translator:a})}return d().createElement("div",{className:"jp-SettingsPanel",ref:g},e.map((e=>{const t=p?p(e.plugin):null;if(h&&h!==e.id||t!==null&&t.length===0){return undefined}return d().createElement("div",{className:"jp-SettingsForm",key:`${e.id}SettingsEditor`},d().createElement(y,{filteredValues:t,settings:e,renderers:_,hasError:t=>{s(e.id,t)},updateDirtyState:t=>{v(e.id,t)},onSelect:n,translator:a}))})))};class x extends a.SplitPanel{constructor(e){super({orientation:"horizontal",renderer:a.SplitPanel.defaultRenderer,spacing:1});this._clearDirty=null;this._dirty=false;this._saveStateChange=new r.Signal(this);this.translator=e.translator||s.nullTranslator;this._status=e.status;this._listModel=new g.Model({registry:e.registry,toSkip:e.toSkip});this._list=new g({registry:e.registry,translator:this.translator,query:e.query,model:this._listModel});this._listModel.changed.connect((()=>{this.update()}));this.addWidget(this._list);this.setDirtyState=this.setDirtyState.bind(this);const t=o.ReactWidget.create(d().createElement(o.UseSignal,{signal:this._listModel.changed},(()=>d().createElement(C,{settings:[...Object.values(this._listModel.settings)],editorRegistry:e.editorRegistry,handleSelectSignal:this._list.handleSelectSignal,onSelect:e=>this._list.selection=e,hasError:this._list.setError,updateFilterSignal:this._list.updateFilterSignal,updateDirtyState:this.setDirtyState,translator:this.translator,initialFilter:this._list.filter}))));this._listModel.ready.then((()=>{this.addWidget(t)})).catch((e=>{console.error(`Failed to load the setting plugins:\n${e}`)}))}get saveStateChanged(){return this._saveStateChange}setDirtyState(e){this._dirty=e;if(this._dirty&&!this._clearDirty){this._clearDirty=this._status.setDirty()}else if(!this._dirty&&this._clearDirty){this._clearDirty.dispose();this._clearDirty=null}if(e){if(!this.title.className.includes("jp-mod-dirty")){this.title.className+=" jp-mod-dirty"}}else{this.title.className=this.title.className.replace("jp-mod-dirty","")}this._saveStateChange.emit(e?"started":"completed")}updateQuery(e){this._list.setFilter(e?(0,o.updateFilterFunction)(e,false,false):null,e)}onCloseRequest(e){const t=this.translator.load("jupyterlab");if(this._list.hasErrors){void(0,i.showDialog)({title:t.__("Warning"),body:t.__("Unsaved changes due to validation error. Continue without saving?")}).then((t=>{if(t.button.accept){this.dispose();super.onCloseRequest(e)}}))}else if(this._dirty){void(0,i.showDialog)({title:t.__("Warning"),body:t.__("Some changes have not been saved. Continue without saving?")}).then((t=>{if(t.button.accept){this.dispose();super.onCloseRequest(e)}}))}else{this.dispose();super.onCloseRequest(e)}}}var S=n(54723);var k=n(65743);var j=n(44539);var I=n(94931);function E(e,t,n){n=n||s.nullTranslator;const i=n.load("jupyterlab");const o=new T(e,n);const r=new k.InspectorPanel({initialContent:i.__("Any errors will be listed here"),translator:n});const a=new k.InspectionHandler({connector:o,rendermime:t||new j.RenderMimeRegistry({initialFactories:j.standardRendererFactories,translator:n})});r.addClass("jp-SettingsDebug");r.source=a;a.editor=e.source;return r}class T extends I.DataConnector{constructor(e,t){super();this._current=0;this._editor=e;this._trans=(t!==null&&t!==void 0?t:s.nullTranslator).load("jupyterlab")}fetch(e){return new Promise((t=>{const n=this._current=window.setTimeout((()=>{if(n!==this._current){return t(undefined)}const i=this._validate(e.text);if(!i){return t({data:{"text/markdown":this._trans.__("No errors found")},metadata:{}})}t({data:this.render(i),metadata:{}})}),100)}))}render(e){return{"text/markdown":e.map(this.renderError.bind(this)).join("")}}renderError(e){var t;switch(e.keyword){case"additionalProperties":return`**\`[${this._trans.__("additional property error")}]\`**\n ${this._trans.__("`%1` is not a valid property",(t=e.params)===null||t===void 0?void 0:t.additionalProperty)}`;case"syntax":return`**\`[${this._trans.__("syntax error")}]\`** *${e.message}*`;case"type":return`**\`[${this._trans.__("type error")}]\`**\n \`${e.instancePath}\` ${e.message}`;default:return`**\`[${this._trans.__("error")}]\`** *${e.message}*`}}_validate(e){const t=this._editor;if(!t.settings){return null}const{id:n,schema:i,version:s}=t.settings;const o={composite:{},user:{}};const r=t.registry.validator;return r.validateData({data:o,id:n,raw:e,schema:i,version:s},false)}}const M="jp-SettingsRawEditor";const D="jp-SettingsRawEditor-user";const A="jp-mod-error";class P extends a.SplitPanel{constructor(e){super({orientation:"horizontal",renderer:a.SplitPanel.defaultRenderer,spacing:1});this._canRevert=false;this._canSave=false;this._commandsChanged=new r.Signal(this);this._settings=null;this._toolbar=new o.Toolbar;const{commands:t,editorFactory:n,registry:i,translator:l}=e;this.registry=i;this.translator=l||s.nullTranslator;this._commands=t;const d=this._defaults=new S.CodeEditorWrapper({editorOptions:{config:{readOnly:true}},model:new S.CodeEditor.Model({mimeType:"text/javascript"}),factory:n});const c=this._user=new S.CodeEditorWrapper({editorOptions:{config:{lineNumbers:true}},model:new S.CodeEditor.Model({mimeType:"text/javascript"}),factory:n});c.addClass(D);c.editor.model.sharedModel.changed.connect(this._onTextChanged,this);this._inspector=E(this,e.rendermime,this.translator);this.addClass(M);this._onSaveError=e.onSaveError;this.addWidget(L.defaultsEditor(d,this.translator));this.addWidget(L.userEditor(c,this._toolbar,this._inspector,this.translator))}get canRevert(){return this._canRevert}get canSave(){return this._canSave}get commandsChanged(){return this._commandsChanged}get isDirty(){var e,t;return(t=this._user.editor.model.sharedModel.getSource()!==((e=this._settings)===null||e===void 0?void 0:e.raw))!==null&&t!==void 0?t:""}get settings(){return this._settings}set settings(e){if(!e&&!this._settings){return}const t=e&&this._settings&&e.plugin===this._settings.plugin;if(t){return}const n=this._defaults;const i=this._user;if(this._settings){this._settings.changed.disconnect(this._onSettingsChanged,this)}if(e){this._settings=e;this._settings.changed.connect(this._onSettingsChanged,this);this._onSettingsChanged()}else{this._settings=null;n.editor.model.sharedModel.setSource("");i.editor.model.sharedModel.setSource("")}this.update()}get sizes(){return this.relativeSizes()}set sizes(e){this.setRelativeSizes(e)}get source(){return this._user.editor}dispose(){if(this.isDisposed){return}this._defaults.model.dispose();this._defaults.dispose();this._user.model.dispose();this._user.dispose();super.dispose()}revert(){var e,t;this._user.editor.model.sharedModel.setSource((t=(e=this.settings)===null||e===void 0?void 0:e.raw)!==null&&t!==void 0?t:"");this._updateToolbar(false,false)}save(){if(!this.isDirty||!this._settings){return Promise.resolve(undefined)}const e=this._settings;const t=this._user.editor.model.sharedModel.getSource();return e.save(t).then((()=>{this._updateToolbar(false,false)})).catch((e=>{this._updateToolbar(true,false);this._onSaveError(e,this.translator)}))}onAfterAttach(e){L.populateToolbar(this._commands,this._toolbar);this.update()}_onTextChanged(){const e=this._user.editor.model.sharedModel.getSource();const t=this._settings;this.removeClass(A);if(!t||t.raw===e){this._updateToolbar(false,false);return}const n=t.validate(e);if(n){this.addClass(A);this._updateToolbar(true,false);return}this._updateToolbar(true,true)}_onSettingsChanged(){var e,t;const n=this._settings;const i=this._defaults;const s=this._user;i.editor.model.sharedModel.setSource((e=n===null||n===void 0?void 0:n.annotatedDefaults())!==null&&e!==void 0?e:"");s.editor.model.sharedModel.setSource((t=n===null||n===void 0?void 0:n.raw)!==null&&t!==void 0?t:"")}_updateToolbar(e=this._canRevert,t=this._canSave){const n=this._commands;this._canRevert=e;this._canSave=t;this._commandsChanged.emit([n.revert,n.save])}}var L;(function(e){function t(e,t){t=t||s.nullTranslator;const n=t.load("jupyterlab");const i=new a.Widget;const r=i.layout=new a.BoxLayout({spacing:0});const l=new a.Widget;const d=new o.Toolbar;d.node.setAttribute("aria-label",n.__("Default editor toolbar"));const c=n.__("System Defaults");l.node.innerText=c;d.insertItem(0,"banner",l);r.addWidget(d);r.addWidget(e);return i}e.defaultsEditor=t;function n(e,t){const{registry:n,revert:i,save:s}=e;t.addItem("spacer",o.Toolbar.createSpacerItem());[i,s].forEach((e=>{const i=new o.CommandToolbarButton({commands:n,id:e});t.addItem(e,i)}))}e.populateToolbar=n;function i(e,t,n,i){i=i||s.nullTranslator;const o=i.load("jupyterlab");const r=o.__("User Preferences");const l=new a.Widget;const d=l.layout=new a.BoxLayout({spacing:0});const c=new a.Widget;c.node.innerText=r;t.insertItem(0,"banner",c);d.addWidget(t);d.addWidget(e);d.addWidget(n);return l}e.userEditor=i})(L||(L={}));const R="jp-PluginEditor";class N extends a.Widget{constructor(e){super();this._settings=null;this._stateChanged=new r.Signal(this);this.addClass(R);const{commands:t,editorFactory:n,registry:i,rendermime:o,translator:l}=e;this.translator=l||s.nullTranslator;this._trans=this.translator.load("jupyterlab");const d=this.layout=new a.StackedLayout;const{onSaveError:c}=O;this.raw=this._rawEditor=new P({commands:t,editorFactory:n,onSaveError:c,registry:i,rendermime:o,translator:l});this._rawEditor.handleMoved.connect(this._onStateChanged,this);d.addWidget(this._rawEditor)}get isDirty(){return this._rawEditor.isDirty}get settings(){return this._settings}set settings(e){if(this._settings===e){return}const t=this._rawEditor;this._settings=t.settings=e;this.update()}get state(){const e=this._settings?this._settings.id:"";const{sizes:t}=this._rawEditor;return{plugin:e,sizes:t}}set state(e){if(h.JSONExt.deepEqual(this.state,e)){return}this._rawEditor.sizes=e.sizes;this.update()}get stateChanged(){return this._stateChanged}confirm(){if(this.isHidden||!this.isAttached||!this.isDirty){return Promise.resolve(undefined)}return(0,i.showDialog)({title:this._trans.__("You have unsaved changes."),body:this._trans.__("Do you want to leave without saving?"),buttons:[i.Dialog.cancelButton({label:this._trans.__("Cancel")}),i.Dialog.okButton({label:this._trans.__("Ok")})]}).then((e=>{if(!e.button.accept){throw new Error("User canceled.")}}))}dispose(){if(this.isDisposed){return}super.dispose();this._rawEditor.dispose()}onAfterAttach(e){this.update()}onUpdateRequest(e){const t=this._rawEditor;const n=this._settings;if(!n){this.hide();return}this.show();t.show()}_onStateChanged(){this.stateChanged.emit(undefined)}}var O;(function(e){function t(e,t){t=t||s.nullTranslator;const n=t.load("jupyterlab");console.error(`Saving setting editor value failed: ${e.message}`);void(0,i.showErrorMessage)(n.__("Your changes were not saved."),e)}e.onSaveError=t})(O||(O={}));const B={sizes:[1,3],container:{editor:"raw",plugin:"",sizes:[1,1]}};class F extends a.SplitPanel{constructor(e){super({orientation:"horizontal",renderer:a.SplitPanel.defaultRenderer,spacing:1});this._fetching=null;this._saving=false;this._state=h.JSONExt.deepCopy(B);this.translator=e.translator||s.nullTranslator;this.addClass("jp-SettingEditor");this.key=e.key;this.state=e.state;const{commands:t,editorFactory:n,rendermime:i}=e;const r=this.registry=e.registry;const d=this._instructions=o.ReactWidget.create(l.createElement(w,{translator:this.translator}));d.addClass("jp-SettingEditorInstructions");const c=this._editor=new N({commands:t,editorFactory:n,registry:r,rendermime:i,translator:this.translator});const u=()=>c.confirm();const p=this._list=new g({confirm:u,registry:r,translator:this.translator});const m=e.when;if(m){this._when=Array.isArray(m)?Promise.all(m):m}this.addWidget(p);this.addWidget(d);a.SplitPanel.setStretch(p,0);a.SplitPanel.setStretch(d,1);a.SplitPanel.setStretch(c,1);c.stateChanged.connect(this._onStateChanged,this);p.changed.connect(this._onStateChanged,this);this.handleMoved.connect(this._onStateChanged,this)}get canRevertRaw(){return this._editor.raw.canRevert}get canSaveRaw(){return this._editor.raw.canSave}get commandsChanged(){return this._editor.raw.commandsChanged}get settings(){return this._editor.settings}get source(){return this._editor.raw.source}dispose(){if(this.isDisposed){return}super.dispose();this._editor.dispose();this._instructions.dispose();this._list.dispose()}revert(){this._editor.raw.revert()}save(){return this._editor.raw.save()}onAfterAttach(e){super.onAfterAttach(e);this.hide();this._fetchState().then((()=>{this.show();this._setState()})).catch((e=>{console.error("Fetching setting editor state failed",e);this.show();this._setState()}))}onCloseRequest(e){this._editor.confirm().then((()=>{super.onCloseRequest(e);this.dispose()})).catch((()=>{}))}_fetchState(){if(this._fetching){return this._fetching}const{key:e,state:t}=this;const n=[t.fetch(e),this._when];return this._fetching=Promise.all(n).then((([e])=>{this._fetching=null;if(this._saving){return}this._state=z.normalizeState(e,this._state)}))}async _onStateChanged(){this._state.sizes=this.relativeSizes();this._state.container=this._editor.state;this._state.container.plugin=this._list.selection;try{await this._saveState()}catch(e){console.error("Saving setting editor state failed",e)}this._setState()}async _saveState(){const{key:e,state:t}=this;const n=this._state;this._saving=true;try{await t.save(e,n);this._saving=false}catch(i){this._saving=false;throw i}}_setLayout(){const e=this._editor;const t=this._state;e.state=t.container;requestAnimationFrame((()=>{this.setRelativeSizes(t.sizes)}))}_setState(){const e=this._editor;const t=this._list;const{container:n}=this._state;if(!n.plugin){e.settings=null;t.selection="";this._setLayout();return}if(e.settings&&e.settings.id===n.plugin){this._setLayout();return}const i=this._instructions;this.registry.load(n.plugin).then((s=>{if(i.isAttached){i.parent=null}if(!e.isAttached){this.addWidget(e)}e.settings=s;t.selection=n.plugin;this._setLayout()})).catch((i=>{console.error(`Loading ${n.plugin} settings failed.`,i);t.selection=this._state.container.plugin="";e.settings=null;this._setLayout()}))}}var z;(function(e){function t(e,t){if(!e){return h.JSONExt.deepCopy(B)}if(!("sizes"in e)||!n(e.sizes)){e.sizes=h.JSONExt.deepCopy(B.sizes)}if(!("container"in e)){e.container=h.JSONExt.deepCopy(B.container);return e}const i="container"in e&&e.container&&typeof e.container==="object"?e.container:{};e.container={plugin:typeof i.plugin==="string"?i.plugin:B.container.plugin,sizes:n(i.sizes)?i.sizes:h.JSONExt.deepCopy(B.container.sizes)};return e}e.normalizeState=t;function n(e){return Array.isArray(e)&&e.every((e=>typeof e==="number"))}})(z||(z={}));var H=n(667)},667:(e,t,n)=>{"use strict";n.d(t,{F:()=>r,z:()=>o});var i=n(5592);var s=n.n(i);const o=new i.Token("@jupyterlab/settingeditor:ISettingEditorTracker",`A widget tracker for the interactive setting editor.\n Use this if you want to be able to iterate over and interact with setting editors\n created by the application.`);const r=new i.Token("@jupyterlab/settingeditor:IJSONSettingEditorTracker",`A widget tracker for the JSON setting editor.\n Use this if you want to be able to iterate over and interact with setting editors\n created by the application.`)},63075:(e,t,n)=>{"use strict";n.r(t);n.d(t,{BaseSettings:()=>f,DefaultSchemaValidator:()=>m,ISettingConnector:()=>b,ISettingRegistry:()=>y,SettingRegistry:()=>g,Settings:()=>v});var i=n(93247);var s=n(5592);var o=n(90044);var r=n(2336);var a=n(63282);var l=n.n(a);var d=n(81219);const c=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","title":"JupyterLab Plugin Settings/Preferences Schema","description":"JupyterLab plugin settings/preferences schema","version":"1.0.0","type":"object","additionalProperties":true,"properties":{"jupyter.lab.internationalization":{"type":"object","properties":{"selectors":{"type":"array","items":{"type":"string","minLength":1}},"domain":{"type":"string","minLength":1}}},"jupyter.lab.menus":{"type":"object","properties":{"main":{"title":"Main menu entries","description":"List of menu items to add to the main menubar.","items":{"$ref":"#/definitions/menu"},"type":"array","default":[]},"context":{"title":"The application context menu.","description":"List of context menu items.","items":{"allOf":[{"$ref":"#/definitions/menuItem"},{"properties":{"selector":{"description":"The CSS selector for the context menu item.","type":"string"}}}]},"type":"array","default":[]}},"additionalProperties":false},"jupyter.lab.metadataforms":{"items":{"$ref":"#/definitions/metadataForm"},"type":"array","default":[]},"jupyter.lab.setting-deprecated":{"type":"boolean","default":false},"jupyter.lab.setting-icon":{"type":"string","default":""},"jupyter.lab.setting-icon-class":{"type":"string","default":""},"jupyter.lab.setting-icon-label":{"type":"string","default":"Plugin"},"jupyter.lab.shortcuts":{"items":{"$ref":"#/definitions/shortcut"},"type":"array","default":[]},"jupyter.lab.toolbars":{"properties":{"^\\\\w[\\\\w-\\\\.]*$":{"items":{"$ref":"#/definitions/toolbarItem"},"type":"array","default":[]}},"type":"object","default":{}},"jupyter.lab.transform":{"type":"boolean","default":false}},"definitions":{"menu":{"properties":{"disabled":{"description":"Whether the menu is disabled or not","type":"boolean","default":false},"icon":{"description":"Menu icon id","type":"string"},"id":{"description":"Menu unique id","oneOf":[{"type":"string","enum":["jp-menu-file","jp-menu-file-new","jp-menu-edit","jp-menu-help","jp-menu-kernel","jp-menu-run","jp-menu-settings","jp-menu-view","jp-menu-tabs"]},{"type":"string","pattern":"[a-z][a-z0-9\\\\-_]+"}]},"items":{"description":"Menu items","type":"array","items":{"$ref":"#/definitions/menuItem"}},"label":{"description":"Menu label","type":"string"},"mnemonic":{"description":"Mnemonic index for the label","type":"number","minimum":-1,"default":-1},"rank":{"description":"Menu rank","type":"number","minimum":0}},"required":["id"],"type":"object"},"menuItem":{"properties":{"args":{"description":"Command arguments","type":"object"},"command":{"description":"Command id","type":"string"},"disabled":{"description":"Whether the item is disabled or not","type":"boolean","default":false},"type":{"description":"Item type","type":"string","enum":["command","submenu","separator"],"default":"command"},"rank":{"description":"Item rank","type":"number","minimum":0},"submenu":{"oneOf":[{"$ref":"#/definitions/menu"},{"type":"null"}]}},"type":"object"},"shortcut":{"properties":{"args":{"title":"The arguments for the command","type":"object"},"command":{"title":"The command id","description":"The command executed when the binding is matched.","type":"string"},"disabled":{"description":"Whether this shortcut is disabled or not.","type":"boolean","default":false},"keys":{"title":"The key sequence for the binding","description":"The key shortcut like `Accel A` or the sequence of shortcuts to press like [`Accel A`, `B`]","items":{"type":"string"},"type":"array"},"macKeys":{"title":"The key sequence for the binding on macOS","description":"The key shortcut like `Cmd A` or the sequence of shortcuts to press like [`Cmd A`, `B`]","items":{"type":"string"},"type":"array"},"winKeys":{"title":"The key sequence for the binding on Windows","description":"The key shortcut like `Ctrl A` or the sequence of shortcuts to press like [`Ctrl A`, `B`]","items":{"type":"string"},"type":"array"},"linuxKeys":{"title":"The key sequence for the binding on Linux","description":"The key shortcut like `Ctrl A` or the sequence of shortcuts to press like [`Ctrl A`, `B`]","items":{"type":"string"},"type":"array"},"selector":{"title":"CSS selector","type":"string"}},"required":["command","keys","selector"],"type":"object"},"toolbarItem":{"properties":{"name":{"title":"Unique name","type":"string"},"args":{"title":"Command arguments","type":"object"},"command":{"title":"Command id","type":"string","default":""},"disabled":{"title":"Whether the item is ignored or not","type":"boolean","default":false},"icon":{"title":"Item icon id","description":"If defined, it will override the command icon","type":"string"},"label":{"title":"Item label","description":"If defined, it will override the command label","type":"string"},"caption":{"title":"Item caption","description":"If defined, it will override the command caption","type":"string"},"type":{"title":"Item type","type":"string","enum":["command","spacer"]},"rank":{"title":"Item rank","type":"number","minimum":0,"default":50}},"required":["name"],"additionalProperties":false,"type":"object"},"metadataForm":{"type":"object","properties":{"id":{"type":"string","description":"The section ID"},"metadataSchema":{"type":"object","items":{"$ref":"#/definitions/metadataSchema"}},"uiSchema":{"type":"object"},"metadataOptions":{"type":"object","items":{"$ref":"#/definitions/metadataOptions"}},"label":{"type":"string","description":"The section label"},"rank":{"type":"integer","description":"The rank of the section in the right panel"},"showModified":{"type":"boolean","description":"Whether to show modified values from defaults"}},"required":["id","metadataSchema"]},"metadataSchema":{"properties":{"properties":{"type":"object","description":"The property set up by extension","properties":{"title":{"type":"string"},"description":{"type":"string"},"type":{"type":"string"}}}},"type":"object","required":["properties"]},"metadataOptions":{"properties":{"customRenderer":{"type":"string"},"metadataLevel":{"type":"string","enum":["cell","notebook"],"default":"cell"},"cellTypes":{"type":"array","items":{"type":"string","enum":["code","markdown","raw"]}},"writeDefault":{"type":"boolean"}},"type":"object"}}}');const h=s.JSONExt.deepCopy;const u={strict:false};const p=String.fromCharCode(30);class m{constructor(){this._composer=new(l())({useDefaults:true,...u});this._validator=new(l())({...u});this._composer.addSchema(c,"jupyterlab-plugin-schema");this._validator.addSchema(c,"jupyterlab-plugin-schema")}validateData(e,t=true){const n=this._validator.getSchema(e.id);const i=this._composer.getSchema(e.id);if(!n||!i){if(e.schema.type!=="object"){const t="schema";const n=`Setting registry schemas' root-level type must be `+`'object', rejecting type: ${e.schema.type}`;return[{instancePath:"type",keyword:t,schemaPath:"",message:n}]}const t=this._addSchema(e.id,e.schema);return t||this.validateData(e)}let s;try{s=d.parse(e.raw)}catch(r){if(r instanceof SyntaxError){return[{instancePath:"",keyword:"syntax",schemaPath:"",message:r.message}]}const{column:e,description:t}=r;const n=r.lineNumber;return[{instancePath:"",keyword:"parse",schemaPath:"",message:`${t} (line ${n} column ${e})`}]}if(!n(s)){return n.errors}const o=h(s);if(!i(o)){return i.errors}if(t){e.data={composite:o,user:s}}return null}_addSchema(e,t){const n=this._composer;const i=this._validator;const s=i.getSchema("jupyterlab-plugin-schema");if(!s(t)){return s.errors}if(!i.validateSchema(t)){return i.errors}n.removeSchema(e);i.removeSchema(e);n.addSchema(t,e);i.addSchema(t,e);return null}}class g{constructor(e){this.schema=c;this.plugins=Object.create(null);this._pluginChanged=new r.Signal(this);this._ready=Promise.resolve();this._transformers=Object.create(null);this._unloadedPlugins=new Map;this.connector=e.connector;this.validator=e.validator||new m;if(e.plugins){e.plugins.filter((e=>e.schema["jupyter.lab.transform"])).forEach((e=>this._unloadedPlugins.set(e.id,e)));this._ready=this._preload(e.plugins)}}get pluginChanged(){return this._pluginChanged}async get(e,t){await this._ready;const n=this.plugins;if(e in n){const{composite:i,user:s}=n[e].data;return{composite:i[t]!==undefined?h(i[t]):undefined,user:s[t]!==undefined?h(s[t]):undefined}}return this.load(e).then((()=>this.get(e,t)))}async load(e,t=false){await this._ready;const n=this.plugins;const i=this;if(e in n){if(t){n[e].data={composite:{},user:{}};await this._load(await this._transform("fetch",n[e]));this._pluginChanged.emit(e)}return new v({plugin:n[e],registry:i})}if(this._unloadedPlugins.has(e)&&e in this._transformers){await this._load(await this._transform("fetch",this._unloadedPlugins.get(e)));if(e in n){this._pluginChanged.emit(e);this._unloadedPlugins.delete(e);return new v({plugin:n[e],registry:i})}}return this.reload(e)}async reload(e){await this._ready;const t=await this.connector.fetch(e);const n=this.plugins;const i=this;if(t===undefined){throw[{instancePath:"",keyword:"id",message:`Could not fetch settings for ${e}.`,schemaPath:""}]}await this._load(await this._transform("fetch",t));this._pluginChanged.emit(e);return new v({plugin:n[e],registry:i})}async remove(e,t){await this._ready;const n=this.plugins;if(!(e in n)){return}const i=d.parse(n[e].raw);delete i[t];delete i[`// ${t}`];n[e].raw=_.annotatedPlugin(n[e],i);return this._save(e)}async set(e,t,n){await this._ready;const i=this.plugins;if(!(e in i)){return this.load(e).then((()=>this.set(e,t,n)))}const s=d.parse(i[e].raw);i[e].raw=_.annotatedPlugin(i[e],{...s,[t]:n});return this._save(e)}transform(e,t){const n=this._transformers;if(e in n){const t=new Error(`${e} already has a transformer.`);t.name="TransformError";throw t}n[e]={fetch:t.fetch||(e=>e),compose:t.compose||(e=>e)};return new o.DisposableDelegate((()=>{delete n[e]}))}async upload(e,t){await this._ready;const n=this.plugins;if(!(e in n)){return this.load(e).then((()=>this.upload(e,t)))}n[e].raw=t;return this._save(e)}get ready(){return this._ready}async _load(e){const t=e.id;try{await this._validate(e)}catch(n){const e=[`Validating ${t} failed:`];n.forEach(((t,n)=>{const{instancePath:i,schemaPath:s,keyword:o,message:r}=t;if(i||s){e.push(`${n} - schema @ ${s}, data @ ${i}`)}e.push(`{${o}} ${r}`)}));console.warn(e.join("\n"));throw n}}async _preload(e){await Promise.all(e.map((async e=>{var t;try{await this._load(await this._transform("fetch",e))}catch(n){if(((t=n[0])===null||t===void 0?void 0:t.keyword)!=="unset"){console.warn("Ignored setting registry preload errors.",n)}}})))}async _save(e){const t=this.plugins;if(!(e in t)){throw new Error(`${e} does not exist in setting registry.`)}try{await this._validate(t[e])}catch(i){console.warn(`${e} validation errors:`,i);throw new Error(`${e} failed to validate; check console.`)}await this.connector.save(e,t[e].raw);const n=await this.connector.fetch(e);if(n===undefined){throw[{instancePath:"",keyword:"id",message:`Could not fetch settings for ${e}.`,schemaPath:""}]}await this._load(await this._transform("fetch",n));this._pluginChanged.emit(e)}async _transform(e,t){const n=t.id;const i=this._transformers;if(!t.schema["jupyter.lab.transform"]){return t}if(n in i){const s=i[n][e].call(null,t);if(s.id!==n){throw[{instancePath:"",keyword:"id",message:"Plugin transformations cannot change plugin IDs.",schemaPath:""}]}return s}throw[{instancePath:"",keyword:"unset",message:`${t.id} has no transformers yet.`,schemaPath:""}]}async _validate(e){const t=this.validator.validateData(e);if(t){throw t}this.plugins[e.id]=await this._transform("compose",e)}}class f{constructor(e){this._schema=e.schema}get schema(){return this._schema}isDefault(e){for(const t in this.schema.properties){const n=e[t];const i=this.default(t);if(n===undefined||i===undefined||s.JSONExt.deepEqual(n,s.JSONExt.emptyObject)||s.JSONExt.deepEqual(n,s.JSONExt.emptyArray)){continue}if(!s.JSONExt.deepEqual(n,i)){return false}}return true}default(e){return _.reifyDefault(this.schema,e)}}class v extends f{constructor(e){super({schema:e.plugin.schema});this._changed=new r.Signal(this);this._isDisposed=false;this.id=e.plugin.id;this.registry=e.registry;this.registry.pluginChanged.connect(this._onPluginChanged,this)}get changed(){return this._changed}get composite(){return this.plugin.data.composite}get isDisposed(){return this._isDisposed}get plugin(){return this.registry.plugins[this.id]}get raw(){return this.plugin.raw}get isModified(){return!this.isDefault(this.user)}get user(){return this.plugin.data.user}get version(){return this.plugin.version}annotatedDefaults(){return _.annotatedDefaults(this.schema,this.id)}dispose(){if(this._isDisposed){return}this._isDisposed=true;r.Signal.clearData(this)}get(e){const{composite:t,user:n}=this;return{composite:t[e]!==undefined?h(t[e]):undefined,user:n[e]!==undefined?h(n[e]):undefined}}remove(e){return this.registry.remove(this.plugin.id,e)}save(e){return this.registry.upload(this.plugin.id,e)}set(e,t){return this.registry.set(this.plugin.id,e,t)}validate(e){const t={composite:{},user:{}};const{id:n,schema:i}=this.plugin;const s=this.registry.validator;const o=this.version;return s.validateData({data:t,id:n,raw:e,schema:i,version:o},false)}_onPluginChanged(e,t){if(t===this.plugin.id){this._changed.emit(undefined)}}}(function(e){function t(e,t,i=false,o=true){if(!e){return t&&o?s.JSONExt.deepCopy(t):[]}if(!t){return s.JSONExt.deepCopy(e)}const r=s.JSONExt.deepCopy(e);t.forEach((e=>{const t=r.findIndex((t=>t.id===e.id));if(t>=0){r[t]={...r[t],...e,items:n(r[t].items,e.items,i,o)}}else{if(o){r.push(e)}}}));return r}e.reconcileMenus=t;function n(e,n,i=false,o=true){if(!e){return n?s.JSONExt.deepCopy(n):undefined}if(!n){return s.JSONExt.deepCopy(e)}const r=s.JSONExt.deepCopy(e);n.forEach((e=>{var n;switch((n=e.type)!==null&&n!==void 0?n:"command"){case"separator":if(o){r.push({...e})}break;case"submenu":if(e.submenu){const n=r.findIndex((t=>{var n,i;return t.type==="submenu"&&((n=t.submenu)===null||n===void 0?void 0:n.id)===((i=e.submenu)===null||i===void 0?void 0:i.id)}));if(n<0){if(o){r.push(s.JSONExt.deepCopy(e))}}else{r[n]={...r[n],...e,submenu:t(r[n].submenu?[r[n].submenu]:null,[e.submenu],i,o)[0]}}}break;case"command":if(e.command){const t=r.findIndex((t=>{var n,i;return t.command===e.command&&t.selector===e.selector&&s.JSONExt.deepEqual((n=t.args)!==null&&n!==void 0?n:{},(i=e.args)!==null&&i!==void 0?i:{})}));if(t<0){if(o){r.push({...e})}}else{if(i){console.warn(`Menu entry for command '${e.command}' is duplicated.`)}r[t]={...r[t],...e}}}}}));return r}e.reconcileItems=n;function o(e){return e.reduce(((e,t)=>{var n;const i={...t};if(!i.disabled){if(i.type==="submenu"){const{submenu:e}=i;if(e&&!e.disabled){i.submenu={...e,items:o((n=e.items)!==null&&n!==void 0?n:[])}}}e.push(i)}return e}),[])}e.filterDisabledItems=o;function r(e,t){const n={};t=[...t.filter((e=>!!e.disabled)),...t.filter((e=>!e.disabled))].filter((e=>{const t=i.CommandRegistry.normalizeKeys(e).join(p);if(!t){console.warn("Skipping this shortcut because there are no actionable keys on this platform",e);return false}if(!(t in n)){n[t]={}}const{disabled:s,selector:o}=e;if(!(o in n[t])){n[t][o]={enabledUserShortcut:s?null:e,enabledDefaultShortcut:null,shouldDisableDefaultShortcut:!!s};return!s}if(n[t][o].enabledUserShortcut===null){if(s){n[t][o].shouldDisableDefaultShortcut=true;return false}else{n[t][o].enabledUserShortcut=e;return true}}else{console.warn("Skipping",e,"shortcut because it collides with another enabled shortcut:",n[t][o].enabledUserShortcut);return false}}));e=[...e.filter((e=>!!e.disabled)),...e.filter((e=>!e.disabled))].filter((e=>{const t=i.CommandRegistry.normalizeKeys(e).join(p);if(!t){return false}if(!(t in n)){n[t]={}}const{disabled:s,selector:o}=e;if(!(o in n[t])){n[t][o]={enabledUserShortcut:null,enabledDefaultShortcut:s?null:e,shouldDisableDefaultShortcut:!!s};return!s}if(n[t][o].enabledDefaultShortcut===null){if(s){n[t][o].shouldDisableDefaultShortcut=true;return false}else{if(n[t][o].shouldDisableDefaultShortcut){return false}else{n[t][o].enabledDefaultShortcut=e;return true}}}else{if(n[t][o].shouldDisableDefaultShortcut){return false}else{console.warn("Skipping",e,"default shortcut because it collides with another enabled default shortcut:",n[t][o].enabledDefaultShortcut);return false}}}));return _.upgradeShortcuts(t.concat(e).filter((e=>!e.disabled)).map((e=>({args:{},...e}))))}e.reconcileShortcuts=r;function a(e,t,n=false){if(!e){return t?s.JSONExt.deepCopy(t):undefined}if(!t){return s.JSONExt.deepCopy(e)}const i=s.JSONExt.deepCopy(e);t.forEach((e=>{const t=i.findIndex((t=>t.name===e.name));if(t<0){i.push({...e})}else{if(n&&s.JSONExt.deepEqual(Object.keys(e),Object.keys(i[t]))){console.warn(`Toolbar item '${e.name}' is duplicated.`)}i[t]={...i[t],...e}}}));return i}e.reconcileToolbarItems=a})(g||(g={}));var _;(function(e){const t=" ";const n="[missing schema description]";const i="[missing schema title]";function o(e,t){const{description:s,properties:o,title:r}=e;const l=o?Object.keys(o).sort(((e,t)=>e.localeCompare(t))):[];const h=Math.max((s||n).length,t.length);return["{",c(`${r||i}`),c(t),c(s||n),c("*".repeat(h)),"",d(l.map((t=>a(e,t)))),"}"].join("\n")}e.annotatedDefaults=o;function r(e,t){const{description:s,title:o}=e.schema;const r=Object.keys(t).sort(((e,t)=>e.localeCompare(t)));const a=Math.max((s||n).length,e.id.length);return["{",c(`${o||i}`),c(e.id),c(s||n),c("*".repeat(a)),"",d(r.map((n=>l(e.schema,n,t[n])))),"}"].join("\n")}e.annotatedPlugin=r;function a(e,i){const s=e.properties&&e.properties[i]||{};const o=s["type"];const r=s["description"]||n;const a=s["title"]||"";const l=h(e,i);const d=t.length;const u=l!==undefined?c(`"${i}": ${JSON.stringify(l,null,d)}`,t):c(`"${i}": ${o}`);return[c(a),c(r),u].filter((e=>e.length)).join("\n")}function l(e,s,o){const r=e.properties&&e.properties[s];const a=r&&r["description"]||n;const l=r&&r["title"]||i;const d=t.length;const h=c(`"${s}": ${JSON.stringify(o,null,d)}`,t);return[c(l),c(a),h].join("\n")}function d(e){return e.reduce(((t,n,i)=>{const s=n.split("\n");const o=s[s.length-1];const r=o.trim().indexOf("//")===0;const a=r||i===e.length-1?"":",";const l=i===e.length-1?"":"\n\n";return t+n+a+l}),"")}function c(e,n=`${t}// `){return n+e.split("\n").join(`\n${n}`)}function h(e,t,n,i){var o,r,a,l,d,c,u;n=n!==null&&n!==void 0?n:e.definitions;i=t?e.required instanceof Array&&((o=e.required)===null||o===void 0?void 0:o.includes(t)):i;e=(t?(r=e.properties)===null||r===void 0?void 0:r[t]:e)||{};if(e.type==="object"){const t=s.JSONExt.deepCopy(e.default);const i=e.properties||{};for(const s in i){t[s]=h(i[s],undefined,n,e.required instanceof Array&&((a=e.required)===null||a===void 0?void 0:a.includes(s)))}return t}else if(e.type==="array"){const t=typeof e.default!=="undefined";const o=t||i;if(!o){return undefined}const r=t?s.JSONExt.deepCopy(e.default):[];let a=e.items||{};if(a["$ref"]&&n){const e=a["$ref"].replace("#/definitions/","");a=(l=n[e])!==null&&l!==void 0?l:{}}for(const e in r){if(a.type==="object"){const t=(c=(d=h(a,undefined,n))!==null&&d!==void 0?d:r[e])!==null&&c!==void 0?c:{};for(const n in t){if((u=r[e])===null||u===void 0?void 0:u[n]){t[n]=r[e][n]}}r[e]=t}}return r}else{return e.default}}e.reifyDefault=h;const u=new Set;function p(e){const t=new Set;const n=[{old:".jp-Notebook:focus.jp-mod-commandMode",new:".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus",versionDeprecated:"JupyterLab 4.1"},{old:".jp-Notebook.jp-mod-commandMode :focus:not(:read-write)",new:".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus",versionDeprecated:"JupyterLab 4.1.1"},{old:".jp-Notebook:focus",new:".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus",versionDeprecated:"JupyterLab 4.1"},{old:"[data-jp-traversable]:focus",new:".jp-Notebook.jp-mod-commandMode:not(.jp-mod-readWrite) :focus",versionDeprecated:"JupyterLab 4.1"},{old:"[data-jp-kernel-user]:focus",new:"[data-jp-kernel-user]:not(.jp-mod-readWrite) :focus:not(:read-write)",versionDeprecated:"JupyterLab 4.1"},{old:"[data-jp-kernel-user] :focus:not(:read-write)",new:"[data-jp-kernel-user]:not(.jp-mod-readWrite) :focus:not(:read-write)",versionDeprecated:"JupyterLab 4.1.1"}];const i=e.map((e=>{const i=e.selector;let s=i;for(const o of n){if(i.includes(o.old)){s=i.replace(o.old,o.new);if(!u.has(i)){t.add(`"${o.old}" was replaced with "${o.new}" in ${o.versionDeprecated} (present in "${i}")`);u.add(i)}}}e.selector=s;return e}));if(t.size>0){console.warn("Deprecated shortcut selectors: "+[...t].join("\n")+"\n\nThe selectors will be substituted transparently this time, but need to be updated at source before next major release.")}return i}e.upgradeShortcuts=p})(_||(_={}));const b=new s.Token("@jupyterlab/coreutils:ISettingConnector","A service to connect to the settings endpoint.");const y=new s.Token("@jupyterlab/coreutils:ISettingRegistry",`A service for the JupyterLab settings system.\n Use this if you want to store settings for your application.\n See "schemaDir" for more information.`)},26217:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>R});var i=n(84739);var s=n(30619);var o=n(26331);var r=n(93247);var a=n(5592);var l=n(90044);var d=n(76326);var c;(function(e){e.editBinding="shortcuts:edit-keybinding";e.addBinding="shortcuts:add-keybinding";e.deleteBinding="shortcuts:delete-keybinding";e.toggleSelectors="shortcuts:toggle-selectors";e.resetAll="shortcuts:reset-all"})(c||(c={}));var h=n(44914);var u=n.n(h);var p=n(34236);var m=n(77162);const g="jp-Shortcuts-ConflictContainer";class f extends h.Component{constructor(e){super(e);this.handleSubmit=async()=>{if(!this._isReplacingExistingKeybinding){await this._updateShortcut();this.props.toggleInput()}else{if(this.state.selected){this.props.toggleInput()}else{await this._updateShortcut()}}};this._updateShortcut=async()=>{const e=[...this.state.keys,this.state.currentChain];this.setState({keys:e});if(this.props.keybinding){await this.props.replaceKeybinding(this.props.shortcut,this.props.keybinding,e)}else{await this.props.addKeybinding(this.props.shortcut,e)}};this._handleOverwrite=async(e,t)=>{for(const n of e){const e=n.keybindings.filter((e=>a.JSONExt.deepEqual(e.keys,t)||t.some((t=>a.JSONExt.deepEqual(e.keys,[t])))))[0];if(!e){console.error(`Conflicting binding could not be found for ${n} using keys ${t}`);continue}await this.props.deleteKeybinding(n,e)}await this._updateShortcut()};this.parseChaining=(e,t,n,i,s)=>{let o=m.EN_US.keyForKeydownEvent(e.nativeEvent);const r=["Shift","Control","Alt","Meta","Ctrl","Accel"];if(e.key==="Backspace"){n="";t="";i=[];s="";this.setState({value:t,userInput:n,keys:i,currentChain:s})}else if(e.key!=="CapsLock"){const t=n.substr(n.lastIndexOf(" ")+1,n.length).trim();if(r.lastIndexOf(t)===-1&&t!=""){n=n+",";i.push(s);s="";if(e.ctrlKey&&e.key!="Control"){n=(n+" Ctrl").trim();s=(s+" Ctrl").trim()}if(e.metaKey&&e.key!="Meta"){n=(n+" Accel").trim();s=(s+" Accel").trim()}if(e.altKey&&e.key!="Alt"){n=(n+" Alt").trim();s=(s+" Alt").trim()}if(e.shiftKey&&e.key!="Shift"){n=(n+" Shift").trim();s=(s+" Shift").trim()}if(r.lastIndexOf(e.key)===-1){n=(n+" "+o).trim();s=(s+" "+o).trim()}else{if(e.key==="Meta"){n=(n+" Accel").trim();s=(s+" Accel").trim()}else if(e.key==="Control"){n=(n+" Ctrl").trim();s=(s+" Ctrl").trim()}else if(e.key==="Shift"){n=(n+" Shift").trim();s=(s+" Shift").trim()}else if(e.key==="Alt"){n=(n+" Alt").trim();s=(s+" Alt").trim()}else{n=(n+" "+e.key).trim();s=(s+" "+e.key).trim()}}}else{if(e.key==="Control"){n=(n+" Ctrl").trim();s=(s+" Ctrl").trim()}else if(e.key==="Meta"){n=(n+" Accel").trim();s=(s+" Accel").trim()}else if(e.key==="Shift"){n=(n+" Shift").trim();s=(s+" Shift").trim()}else if(e.key==="Alt"){n=(n+" Alt").trim();s=(s+" Alt").trim()}else{n=(n+" "+o).trim();s=(s+" "+o).trim()}}}this.setState({keys:i,currentChain:s});return[n,i,s]};this.checkNonFunctional=()=>{const e=["Ctrl","Alt","Accel","Shift"];const t=this.state.currentChain.split(" ");const n=t[t.length-1];this.setState({isFunctional:!(e.indexOf(n)!==-1)});return e.indexOf(n)!==-1};this.checkShortcutAvailability=(e,t,n)=>{const i=this.props.findConflictsFor([...t,n],this.props.shortcut.selector);const s=e===""||i.length===0;if(!s){if(i.length===1&&i[0].id===this.props.shortcut.id&&this._isReplacingExistingKeybinding){this.setState({isAvailable:true});return[]}}this.setState({isAvailable:s});return i};this.handleInput=e=>{e.preventDefault();this.setState({selected:false});const t=this.parseChaining(e,this.state.value,this.state.userInput,this.state.keys,this.state.currentChain);const n=t[0];const i=t[1];const s=t[2];const o=this.props.toSymbols(n);let r=this.checkShortcutAvailability(n,i,s);this.setState({value:o,userInput:n,keys:i,currentChain:s},(()=>{this.checkNonFunctional();this._emitConflicts(r)}))};this._handleBlur=e=>{var t,n;if((t=this._ref.current)===null||t===void 0?void 0:t.contains(e.relatedTarget)){return}if((n=e.relatedTarget)===null||n===void 0?void 0:n.closest(`.${g}`)){return}this.props.toggleInput()};this._ref=h.createRef();this.state={value:this.props.placeholder,userInput:"",isAvailable:true,isFunctional:this._isReplacingExistingKeybinding,keys:[],currentChain:"",selected:true}}get _isReplacingExistingKeybinding(){return!!this.props.keybinding}_emitConflicts(e){const t=[...this.state.keys,this.state.currentChain];this.props.displayConflicts({conflictsWith:e,keys:this.state.keys,overwrite:async()=>{this.setState({isAvailable:true});await this._handleOverwrite(e,t);this.props.toggleInput()},cancel:()=>{this.props.toggleInput()}})}render(){const e=this.props.translator.load("jupyterlab");let t="jp-Shortcuts-Input";if(!this.state.isAvailable){t+=" jp-mod-unavailable-Input"}return h.createElement("div",{className:this.props.displayInput?!this._isReplacingExistingKeybinding?"jp-Shortcuts-InputBox jp-Shortcuts-InputBoxNew":"jp-Shortcuts-InputBox":"jp-mod-hidden",ref:this._ref,onBlur:this._handleBlur},h.createElement("div",{tabIndex:0,className:t,onKeyDown:this.handleInput,ref:e=>e&&e.focus(),"data-lm-suppress-shortcuts":"true"},h.createElement("p",{className:this.state.selected&&this._isReplacingExistingKeybinding?"jp-Shortcuts-InputText jp-mod-selected-InputText":this.state.value===""?"jp-Shortcuts-InputText jp-mod-waiting-InputText":"jp-Shortcuts-InputText"},this.state.value===""?e.__("press keys"):this.state.value)),h.createElement("button",{className:!this.state.isFunctional?"jp-Shortcuts-Submit jp-mod-defunc-Submit":!this.state.isAvailable?"jp-Shortcuts-Submit jp-mod-conflict-Submit":"jp-Shortcuts-Submit",disabled:!this.state.isAvailable||!this.state.isFunctional,onClick:this.handleSubmit,tabIndex:0},this.state.isAvailable?h.createElement(o.checkIcon.react,null):h.createElement(o.errorIcon.react,null)))}}class v extends h.Component{constructor(e){super(e);this.toggleInputNew=()=>{this.setState({displayNewInput:!this.state.displayNewInput,conflicts:new Map})};this.toSymbols=e=>e.split(" ").reduce(((e,t)=>{if(t==="Ctrl"){return(e+" ⌃").trim()}else if(t==="Alt"){return(e+" ⌥").trim()}else if(t==="Shift"){return(e+" ⇧").trim()}else if(t==="Accel"&&d.Platform.IS_MAC){return(e+" ⌘").trim()}else if(t==="Accel"){return(e+" ⌃").trim()}else{return(e+" "+t).trim()}}),"");this._trans=this.props.external.translator.load("jupyterlab");this.state={displayNewInput:false,displayReplaceInput:Object.freeze({}),conflicts:new Map}}componentDidMount(){this.props.external.actionRequested.connect(this._onActionRequested,this)}componentWillUnmount(){this.props.external.actionRequested.disconnect(this._onActionRequested,this)}async _onActionRequested(e,t){if("shortcutId"in t&&t.shortcutId!==this.props.shortcut.id){return}if(t.request==="add-keybinding"){return this.toggleInputNew()}if(t.request==="edit-keybinding"){this.toggleInputReplaceMethod(t.keybinding)}if(t.request==="delete-keybinding"){const e=this.props.shortcut;const n=e.keybindings[t.keybinding];this.props.deleteKeybinding(e,n).catch(console.error)}}getCategoryCell(){return h.createElement("div",{className:"jp-Shortcuts-Cell"},this.props.shortcut.category)}getLabelCell(){var e;return h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement("div",{className:"jp-label"},(e=this.props.shortcut.label)!==null&&e!==void 0?e:this._trans.__("(Command label missing)")))}getResetShortCutLink(){return h.createElement("a",{className:"jp-Shortcuts-Reset",onClick:()=>this.props.resetKeybindings(this.props.shortcut)},this._trans.__("Reset"))}getSourceCell(){const e=this.props.shortcut.keybindings.every((e=>e.isDefault));return h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement("div",{className:"jp-Shortcuts-SourceCell"},e?this._trans.__("Default"):this._trans.__("Custom")),!e?this.getResetShortCutLink():"")}getOptionalSelectorCell(){return this.props.showSelectors?h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement("div",{className:"jp-selector"},this.props.shortcut.selector)):null}getClassNameForShortCuts(e){const t=["jp-Shortcuts-ShortcutCell"];switch(e.length){case 1:t.push("jp-Shortcuts-SingleCell");break;case 0:t.push("jp-Shortcuts-EmptyCell");break}return t.join(" ")}toggleInputReplaceMethod(e){const t=this.state.displayReplaceInput[e];this.setState({displayReplaceInput:{...this.state.displayReplaceInput,[e]:!t},conflicts:new Map})}getDisplayReplaceInput(e){return this.state.displayReplaceInput[e]}getOrDiplayIfNeeded(e){const t=["jp-Shortcuts-Or"];if(e||this.state.displayNewInput){t.push("jp-Shortcuts-Or-Forced")}return h.createElement("div",{className:t.join(" ")},this._trans.__("or"))}getShortCutAsInput(e,t){return h.createElement(f,{addKeybinding:this.props.addKeybinding,replaceKeybinding:this.props.replaceKeybinding,deleteKeybinding:this.props.deleteKeybinding,findConflictsFor:this.props.findConflictsFor,toggleInput:()=>this.toggleInputReplaceMethod(t),shortcut:this.props.shortcut,keybinding:e,displayConflicts:t=>{const n=new Map(this.state.conflicts);n.set(e,t);this.setState({conflicts:n})},toSymbols:this.toSymbols,displayInput:this.getDisplayReplaceInput(t),placeholder:this.toSymbols(e.keys.join(", ")),translator:this.props.external.translator})}getShortCutForDisplayOnly(e){return e.keys.map(((t,n)=>h.createElement("div",{className:"jp-Shortcuts-ShortcutKeysContainer",key:n},h.createElement("div",{className:"jp-Shortcuts-ShortcutKeys"},this.toSymbols(t)),n+1this.toggleInputReplaceMethod(e)},this.isLocationBeingEdited(e)?this.getShortCutAsInput(t,e):this.getShortCutForDisplayOnly(t),!(e===this._nonEmptyBindings.length-1&&Object.values(this.state.displayReplaceInput).some(Boolean))&&this.getOrDiplayIfNeeded(e{this.toggleInputNew()}},this._trans.__("Add"))}getInputBoxWhenToggled(){return this.state.displayNewInput?h.createElement(f,{addKeybinding:this.props.addKeybinding,replaceKeybinding:this.props.replaceKeybinding,deleteKeybinding:this.props.deleteKeybinding,findConflictsFor:this.props.findConflictsFor,toggleInput:this.toggleInputNew,shortcut:this.props.shortcut,displayConflicts:e=>{const t=new Map(this.state.conflicts);t.set(null,e);this.setState({conflicts:t})},toSymbols:this.toSymbols,displayInput:this.state.displayNewInput,placeholder:"",translator:this.props.external.translator}):h.createElement("div",null)}getShortCutsCell(e){return h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement("div",{className:this.getClassNameForShortCuts(e)},e.map(((t,n)=>this.getDivForKey(n,t,e))),e.length>=1&&!this.state.displayNewInput&&!Object.values(this.state.displayReplaceInput).some(Boolean)&&this.getAddLink(),e.length===0&&!this.state.displayNewInput&&this.getAddLink(),this.getInputBoxWhenToggled()))}getConflicts(){const e=[...this.state.conflicts.values()].filter((e=>e.conflictsWith.length!==0));if(e.length===0){return h.createElement(h.Fragment,null)}return h.createElement("div",{className:"jp-Shortcuts-Row jp-Shortcuts-RowWithConflict"},h.createElement("div",{className:g},e.map((e=>{const t=e.keys.join(" ")+"_"+e.conflictsWith.map((e=>e.id)).join("");return h.createElement("div",{className:"jp-Shortcuts-Conflict",key:t},h.createElement("div",{className:"jp-Shortcuts-ErrorMessage"},this._trans.__("Shortcut already in use by %1. Overwrite it?",e.conflictsWith.map((e=>{var t;return(t=e.label)!==null&&t!==void 0?t:e.command})).join(", "))),h.createElement("div",{className:"jp-Shortcuts-ErrorButton"},h.createElement("button",{className:"jp-Button jp-mod-reject jp-mod-styled",onClick:()=>{this._clearConflict(e);e.cancel()}},this._trans.__("Cancel")),h.createElement("button",{className:"jp-Button jp-mod-warn jp-mod-styled",onClick:()=>{this._clearConflict(e);e.overwrite()}},this._trans.__("Overwrite"))))}))))}_clearConflict(e){const t=new Map;const n=this._conflictId(e);for(const[i,s]of this.state.conflicts.entries()){if(this._conflictId(s)!==n){t.set(i,s)}}this.setState({conflicts:t})}_conflictId(e){return e.keys.join(" ")+"_"+e.conflictsWith.map((e=>e.id)).join("")}get _nonEmptyBindings(){return this.props.shortcut.keybindings.filter((e=>e.keys.filter((e=>e!="")).length!==0))}render(){return h.createElement(h.Fragment,null,h.createElement("div",{className:"jp-Shortcuts-Row","data-shortcut":this.props.shortcut.id},this.getCategoryCell(),this.getLabelCell(),this.getShortCutsCell(this._nonEmptyBindings),this.getSourceCell(),this.getOptionalSelectorCell()),this.getConflicts())}}const _=115;class b extends h.Component{render(){return h.createElement("div",{className:"jp-Shortcuts-ShortcutListContainer",style:{height:`${this.props.height-_}px`},id:"shortcutListContainer"},h.createElement("div",{className:"jp-Shortcuts-ShortcutList"},this.props.shortcuts.map((e=>h.createElement(v,{key:e.id,addKeybinding:this.props.addKeybinding,replaceKeybinding:this.props.replaceKeybinding,deleteKeybinding:this.props.deleteKeybinding,resetKeybindings:this.props.resetKeybindings,findConflictsFor:this.props.findConflictsFor,shortcut:e,showSelectors:this.props.showSelectors,external:this.props.external})))))}}class y extends h.Component{render(){return h.createElement("div",{className:this.props.title.toLowerCase()===this.props.active?"jp-Shortcuts-Header jp-Shortcuts-CurrentHeader":"jp-Shortcuts-Header",onClick:()=>this.props.updateSort(this.props.columnId)},this.props.title,h.createElement(o.caretDownEmptyThinIcon.react,{className:"jp-Shortcuts-SortButton jp-ShortcutTitleItem-sortButton"}))}}function w(e){return h.createElement("div",{className:"jp-Shortcuts-Symbols"},h.createElement("table",null,h.createElement("tbody",null,h.createElement("tr",null,h.createElement("td",null,h.createElement("kbd",null,"Cmd")),h.createElement("td",null,"⌘"),h.createElement("td",null,h.createElement("kbd",null,"Ctrl")),h.createElement("td",null,"⌃")),h.createElement("tr",null,h.createElement("td",null,h.createElement("kbd",null,"Alt")),h.createElement("td",null,"⌥"),h.createElement("td",null,h.createElement("kbd",null,"Shift")),h.createElement("td",null,"⇧")))))}function C(e){const t=e.translator.load("jupyterlab");return h.createElement("div",{className:"jp-Shortcuts-AdvancedOptions"},h.createElement("a",{className:"jp-Shortcuts-AdvancedOptionsLink",onClick:()=>e.toggleSelectors()},e.showSelectors?t.__("Hide Selectors"):t.__("Show Selectors")),h.createElement("a",{className:"jp-Shortcuts-AdvancedOptionsLink",onClick:()=>e.resetShortcuts()},t.__("Reset All")))}class x extends h.Component{constructor(e){super(e)}getShortCutTitleItem(e,t){return h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement(y,{title:e,updateSort:this.props.updateSort,active:this.props.currentSort,columnId:t}))}render(){const e=this.props.translator.load("jupyterlab");return h.createElement("div",{className:"jp-Shortcuts-Top"},h.createElement("div",{className:"jp-Shortcuts-TopNav"},h.createElement(w,null),h.createElement(o.FilterBox,{"aria-label":e.__("Search shortcuts"),updateFilter:(e,t)=>this.props.updateSearchQuery(t!==null&&t!==void 0?t:""),placeholder:e.__("Search…"),useFuzzyFilter:false}),h.createElement(C,{toggleSelectors:this.props.toggleSelectors,showSelectors:this.props.showSelectors,resetShortcuts:this.props.resetShortcuts,translator:this.props.translator})),h.createElement("div",{className:"jp-Shortcuts-HeaderRowContainer"},h.createElement("div",{className:"jp-Shortcuts-HeaderRow"},this.getShortCutTitleItem(e.__("Category"),"category"),this.getShortCutTitleItem(e.__("Command"),"command"),h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement("div",{className:"title-div"},e.__("Shortcut"))),this.getShortCutTitleItem(e.__("Source"),"source"),this.props.showSelectors&&this.getShortCutTitleItem(e.__("Selectors"),"selector"))))}}class S extends Map{constructor(e){var t,n,i;super();const{settings:s,commandRegistry:o}=e;const r=(t=s.user.shortcuts)!==null&&t!==void 0?t:[];const a=new Set(r.map(this._computeKeybindingId.bind(this)));const l=(n=s.composite.shortcuts)!==null&&n!==void 0?n:[];for(const d of l){const e=this._computeTargetId(d);const t=this._computeKeybindingId(d);const n={keys:d.keys,isDefault:!a.has(t)};const s=this.get(e);if(s){s.keybindings.push(n)}else{const t=d.command.split(":");const s=(i=o.label(d.command,d.args))!==null&&i!==void 0?i:t.length>1?t[1]:undefined;const r=t[0];this.set(e,{id:e,selector:d.selector,command:d.command,category:r,label:s,args:d.args,keybindings:[n]})}}}findConflictsFor(e,t){const n=new k({registry:this});let i=n.findConflicts(e,t);if(i.length!==0){return i}for(const s of e){i=n.findConflicts([s],t);if(i.length!==0){return i}}return[]}_computeTargetId(e){var t;return e.command+"_"+e.selector+"_"+JSON.stringify((t=e.args)!==null&&t!==void 0?t:{})}_computeKeybindingId(e){var t;return[e.command,e.selector,JSON.stringify((t=e.args)!==null&&t!==void 0?t:{}),e.keys.join(" ")].join("_")}}class k{constructor(e){var t;const n=new Map;for(const i of e.registry.values()){for(const e of i.keybindings){const s=this._keybindingHash(e.keys,i.selector);const o=(t=n.get(s))!==null&&t!==void 0?t:[];o.push(i);n.set(s,o)}}this._keybindingsMap=n}findConflicts(e,t){var n;const i=this._keybindingHash(e,t);return(n=this._keybindingsMap.get(i))!==null&&n!==void 0?n:[]}_keybindingHash(e,t){return e.join(" ")+"_"+t}}function j(e){return e.replace(/\s+/g,"").toLowerCase()}function I(e,t){var n;const i=e.category.toLowerCase();const s=((n=e["label"])!==null&&n!==void 0?n:"").toLowerCase();const o=`${i} ${s}`;let r=Infinity;let a=null;const l=/\b\w/g;while(true){const e=l.exec(o);if(!e){break}const n=p.StringExt.matchSumOfDeltas(o,t,e.index);if(!n){break}if(n&&n.score<=r){r=n.score;a=n.indices}}if(!a||r===Infinity){return null}const d=i.length+1;const c=p.ArrayExt.lowerBound(a,d,((e,t)=>e-t));const h=a.slice(0,c);const u=a.slice(c);for(let p=0,m=u.length;p{this.setState({searchQuery:e},(()=>{const e=this.state.shortcutRegistry;this.setState({filteredShortcutList:this._searchFilterShortcuts(e)},(()=>{this.sortShortcuts()}))}))};this.resetShortcuts=async()=>{const e=await this.props.external.getSettings();await e.set("shortcuts",[]);await this._refreshShortcutList()};this.resetKeybindings=async e=>{await this._setKeybinding(e,[])};this.replaceKeybinding=async(e,t,n)=>this._setKeybinding(e,n,t);this.deleteKeybinding=async(e,t)=>{await this._setKeybinding(e,[],t)};this.addKeybinding=async(e,t)=>{await this._setKeybinding(e,t)};this.toggleSelectors=()=>{this.setState({showSelectors:!this.state.showSelectors})};this.updateSort=e=>{if(e!==this.state.currentSort){this.setState({currentSort:e},this.sortShortcuts)}};this.state={shortcutRegistry:null,filteredShortcutList:new Array,shortcutsFetched:false,searchQuery:"",showSelectors:false,currentSort:"category"}}componentDidMount(){this.props.external.actionRequested.connect(this._onActionRequested,this);void this._refreshShortcutList()}componentWillUnmount(){this.props.external.actionRequested.disconnect(this._onActionRequested,this)}async _onActionRequested(e,t){if(t.request==="toggle-selectors"){return this.toggleSelectors()}if(t.request==="reset-all"){await this.resetShortcuts()}}async _refreshShortcutList(){const e=await this.props.external.getSettings();const t=new S({commandRegistry:this.props.external.commandRegistry,settings:e});this.setState({shortcutRegistry:t,filteredShortcutList:this._searchFilterShortcuts(t),shortcutsFetched:true},(()=>{this.sortShortcuts()}))}_searchFilterShortcuts(e){if(!e){return[]}const t=E(e,this.state.searchQuery).map((e=>e.item));return t}async _setKeybinding(e,t,n){var i,s,o,r,l;if(t.length===1&&t[0]==""){t=[]}const d=await this.props.external.getSettings();const c=(i=d.user.shortcuts)!==null&&i!==void 0?i:[];const h=[];let u=false;for(let p of c){if(p.command===e.command&&p.selector===e.selector&&a.JSONExt.deepEqual((s=p.args)!==null&&s!==void 0?s:{},(o=e.args)!==null&&o!==void 0?o:{})&&n&&a.JSONExt.deepEqual(n.keys,p.keys)){const e=n&&n.isDefault&&a.JSONExt.deepEqual(n.keys,t);if(t.length!==0&&!e){h.push({command:p.command,selector:p.selector,keys:t})}u=true}else if(p.command===e.command&&p.selector===e.selector&&a.JSONExt.deepEqual((r=p.args)!==null&&r!==void 0?r:{},(l=e.args)!==null&&l!==void 0?l:{})&&!n&&t.length===0){continue}else{h.push(p)}}if(!u){const i=!n||!a.JSONExt.deepEqual(n.keys,t);const s=n&&n.isDefault&&i;if(s){h.push({command:e.command,selector:e.selector,disabled:true,keys:n.keys})}if(t.length!==0){h.push({command:e.command,selector:e.selector,keys:t})}}await d.set("shortcuts",h);await this._refreshShortcutList()}sortShortcuts(){const e=this.state.filteredShortcutList;let t=this.state.currentSort;if(t==="command"){t="label"}const n=e=>{var n;if(t==="source"){return e.keybindings.every((e=>e.isDefault))?"default":"other"}return(n=e[t])!==null&&n!==void 0?n:""};e.sort(((e,t)=>{var i,s;const o=n(e);const r=n(t);const a=o.localeCompare(r);if(a){return a}else{const n=(i=e["label"])!==null&&i!==void 0?i:"";const o=(s=t["label"])!==null&&s!==void 0?s:"";return n.localeCompare(o)}}));this.setState({filteredShortcutList:e})}render(){if(!this.state.shortcutsFetched){return null}return h.createElement("div",{className:"jp-Shortcuts-ShortcutUI",id:"jp-shortcutui"},h.createElement(x,{updateSearchQuery:this.updateSearchQuery,resetShortcuts:this.resetShortcuts,toggleSelectors:this.toggleSelectors,showSelectors:this.state.showSelectors,updateSort:this.updateSort,currentSort:this.state.currentSort,width:this.props.width,translator:this.props.external.translator}),h.createElement(b,{shortcuts:this.state.filteredShortcutList,resetKeybindings:this.resetKeybindings,addKeybinding:this.addKeybinding,replaceKeybinding:this.replaceKeybinding,deleteKeybinding:this.deleteKeybinding,showSelectors:this.state.showSelectors,findConflictsFor:(e,t)=>{if(this.state.shortcutRegistry){return this.state.shortcutRegistry.findConflictsFor(e,t)}else{console.error("Cannot search for keybinding conflicts at this time: registry is not ready");return[]}},height:this.props.height,external:this.props.external}))}}const M=e=>u().createElement(T,{external:e.external,height:1e3,width:1e3});var D=n(2336);const A="@jupyterlab/shortcuts-extension:shortcuts";function P(e,t,n,i){return{translator:n,getSettings:()=>e.load(A,true),commandRegistry:t.commands,actionRequested:i}}const L={id:A,description:"Adds the keyboard shortcuts editor.",requires:[i.ISettingRegistry],optional:[s.ITranslator,o.IFormRendererRegistry],activate:async(e,t,n,o)=>{const l=n!==null&&n!==void 0?n:s.nullTranslator;const h=l.load("jupyterlab");const{commands:u}=e;let p;let m;let g={};if(o){const n=new D.Signal({});const i=e=>e.dataset["shortcut"]!==undefined;e.commands.addCommand(c.editBinding,{label:h.__("Edit Keybinding"),caption:h.__("Edit existing keybinding"),execute:()=>{const t=e.contextMenuHitTest(i);const s=t===null||t===void 0?void 0:t.dataset["keybinding"];const o=t===null||t===void 0?void 0:t.dataset["shortcut"];if(!o||!s){return console.log("Missing shortcut id/keybinding information")}n.emit({request:"edit-keybinding",keybinding:parseInt(s,10),shortcutId:o})}});e.commands.addCommand(c.deleteBinding,{label:h.__("Delete Keybinding"),caption:h.__("Delete chosen keybinding"),execute:()=>{const t=e.contextMenuHitTest(i);const s=t===null||t===void 0?void 0:t.dataset["keybinding"];const o=t===null||t===void 0?void 0:t.dataset["shortcut"];if(!o||!s){return console.log("Missing shortcut id/keybinding information")}n.emit({request:"delete-keybinding",keybinding:parseInt(s,10),shortcutId:o})}});e.commands.addCommand(c.addBinding,{label:h.__("Add Keybinding"),caption:h.__("Add new keybinding for existing shortcut target"),execute:()=>{const t=e.contextMenuHitTest(i);const s=t===null||t===void 0?void 0:t.dataset["shortcut"];if(!s){return console.log("Missing shortcut id to add keybinding to")}n.emit({request:"add-keybinding",shortcutId:s})}});u.addCommand(c.toggleSelectors,{label:h.__("Toggle Selectors"),caption:h.__("Toggle command selectors"),execute:()=>{n.emit({request:"toggle-selectors"})}});u.addCommand(c.resetAll,{label:h.__("Reset All"),caption:h.__("Reset all shortcuts"),execute:()=>{n.emit({request:"reset-all"})}});const s={fieldRenderer:i=>M({external:P(t,e,l,n),...i})};o.addRenderer(`${L.id}.shortcuts`,s)}function f(n){const i=e.commands.listCommands().join("\n");if(!m){m=a.JSONExt.deepCopy(n.properties.shortcuts.default)}g={};n.properties.shortcuts.default=Object.keys(t.plugins).map((e=>{const n=t.plugins[e].schema["jupyter.lab.shortcuts"]||[];g[e]=n;return n})).concat([m]).reduce(((e,t)=>{if(d.Platform.IS_MAC){return e.concat(t)}else{return e.concat(t.filter((e=>!e.keys.some((e=>{const{cmd:t}=r.CommandRegistry.parseKeystroke(e);return t})))))}}),[]).sort(((e,t)=>e.command.localeCompare(t.command)));n.properties.shortcuts.description=h.__(`Note: To disable a system default shortcut,\ncopy it to User Preferences and add the\n"disabled" key, for example:\n{\n "command": "application:activate-next-tab",\n "keys": [\n "Ctrl Shift ]"\n ],\n "selector": "body",\n "disabled": true\n}\n\nList of commands followed by keyboard shortcuts:\n%1\n\nList of keyboard shortcuts:`,i)}t.pluginChanged.connect((async(e,n)=>{if(n!==L.id){const e=g[n];const i=t.plugins[n].schema["jupyter.lab.shortcuts"]||[];if(e===undefined||!a.JSONExt.deepEqual(e,i)){p=null;const e=t.plugins[L.id].schema;e.properties.shortcuts.default=m;await t.load(L.id,true)}}}));t.transform(L.id,{compose:e=>{var t,n,s,o;if(!p){p=a.JSONExt.deepCopy(e.schema);f(p)}const r=(s=(n=(t=p.properties)===null||t===void 0?void 0:t.shortcuts)===null||n===void 0?void 0:n.default)!==null&&s!==void 0?s:[];const l={shortcuts:(o=e.data.user.shortcuts)!==null&&o!==void 0?o:[]};const d={shortcuts:i.SettingRegistry.reconcileShortcuts(r,l.shortcuts)};e.data={composite:d,user:l};return e},fetch:e=>{if(!p){p=a.JSONExt.deepCopy(e.schema);f(p)}return{data:e.data,id:e.id,raw:e.raw,schema:p,version:e.version}}});try{p=null;const e=await t.load(L.id);N.loadShortcuts(u,e.composite);e.changed.connect((()=>{N.loadShortcuts(u,e.composite)}))}catch(v){console.error(`Loading ${L.id} failed.`,v)}},autoStart:true};const R=L;var N;(function(e){let t;function n(e,n){var s;const o=(s=n===null||n===void 0?void 0:n.shortcuts)!==null&&s!==void 0?s:[];if(t){t.dispose()}t=o.reduce(((t,n)=>{const s=i(n);if(s){t.add(e.addKeyBinding(s))}return t}),new l.DisposableSet)}e.loadShortcuts=n;function i(e){if(!e||typeof e!=="object"){return undefined}const{isArray:t}=Array;const n="command"in e&&"keys"in e&&"selector"in e&&t(e.keys);return n?e:undefined}})(N||(N={}))},48552:(e,t,n)=>{"use strict";var i=n(40662);var s=n(85072);var o=n.n(s);var r=n(97825);var a=n.n(r);var l=n(77659);var d=n.n(l);var c=n(55056);var h=n.n(c);var u=n(10540);var p=n.n(u);var m=n(41113);var g=n.n(m);var f=n(64547);var v={};v.styleTagTransform=g();v.setAttributes=h();v.insert=d().bind(null,"head");v.domAPI=a();v.insertStyleElement=p();var _=o()(f.A,v);const b=f.A&&f.A.locals?f.A.locals:undefined},4056:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DataConnector=void 0;class n{async list(e){throw new Error("DataConnector#list method has not been implemented.")}async remove(e){throw new Error("DataConnector#remove method has not been implemented.")}async save(e,t){throw new Error("DataConnector#save method has not been implemented.")}}t.DataConnector=n},19531:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});s(n(4056),t);s(n(78031),t);s(n(45310),t);s(n(19864),t);s(n(82877),t)},78031:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},45310:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RestorablePool=void 0;const i=n(5592);const s=n(94466);const o=n(2336);class r{constructor(e){this._added=new o.Signal(this);this._current=null;this._currentChanged=new o.Signal(this);this._hasRestored=false;this._isDisposed=false;this._objects=new Set;this._restore=null;this._restored=new i.PromiseDelegate;this._updated=new o.Signal(this);this.namespace=e.namespace}get added(){return this._added}get current(){return this._current}set current(e){if(this._current===e){return}if(e!==null&&this._objects.has(e)){this._current=e;this._currentChanged.emit(this._current)}}get currentChanged(){return this._currentChanged}get isDisposed(){return this._isDisposed}get restored(){return this._restored.promise}get size(){return this._objects.size}get updated(){return this._updated}async add(e){var t,n;if(e.isDisposed){const t="A disposed object cannot be added.";console.warn(t,e);throw new Error(t)}if(this._objects.has(e)){const t="This object already exists in the pool.";console.warn(t,e);throw new Error(t)}this._objects.add(e);e.disposed.connect(this._onInstanceDisposed,this);if(a.injectedProperty.get(e)){return}if(this._restore){const{connector:i}=this._restore;const s=this._restore.name(e);if(s){const o=`${this.namespace}:${s}`;const r=(n=(t=this._restore).args)===null||n===void 0?void 0:n.call(t,e);a.nameProperty.set(e,o);await i.save(o,{data:r})}}this._added.emit(e)}dispose(){if(this.isDisposed){return}this._current=null;this._isDisposed=true;this._objects.clear();o.Signal.clearData(this)}find(e){const t=this._objects.values();for(const n of t){if(e(n)){return n}}return undefined}forEach(e){this._objects.forEach(e)}filter(e){const t=[];this.forEach((n=>{if(e(n)){t.push(n)}}));return t}inject(e){a.injectedProperty.set(e,true);return this.add(e)}has(e){return this._objects.has(e)}async restore(e){if(this._hasRestored){throw new Error("This pool has already been restored.")}this._hasRestored=true;const{command:t,connector:n,registry:i,when:s}=e;const o=this.namespace;const r=s?[n.list(o)].concat(s):[n.list(o)];this._restore=e;const[a]=await Promise.all(r);const l=await Promise.all(a.ids.map((async(e,s)=>{const o=a.values[s];const r=o&&o.data;if(r===undefined){return n.remove(e)}return i.execute(t,r).catch((()=>n.remove(e)))})));this._restored.resolve();return l}async save(e){var t,n;const i=a.injectedProperty.get(e);if(!this._restore||!this.has(e)||i){return}const{connector:s}=this._restore;const o=this._restore.name(e);const r=a.nameProperty.get(e);const l=o?`${this.namespace}:${o}`:"";if(r&&r!==l){await s.remove(r)}a.nameProperty.set(e,l);if(l){const i=(n=(t=this._restore).args)===null||n===void 0?void 0:n.call(t,e);await s.save(l,{data:i})}if(r!==l){this._updated.emit(e)}}_onInstanceDisposed(e){this._objects.delete(e);if(e===this._current){this._current=null;this._currentChanged.emit(this._current)}if(a.injectedProperty.get(e)){return}if(!this._restore){return}const{connector:t}=this._restore;const n=a.nameProperty.get(e);if(n){void t.remove(n)}}}t.RestorablePool=r;var a;(function(e){e.injectedProperty=new s.AttachedProperty({name:"injected",create:()=>false});e.nameProperty=new s.AttachedProperty({name:"name",create:()=>""})})(a||(a={}))},19864:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StateDB=void 0;const i=n(2336);class s{constructor(e={}){this._changed=new i.Signal(this);const{connector:t,transform:n}=e;this._connector=t||new s.Connector;if(!n){this._ready=Promise.resolve(undefined)}else{this._ready=n.then((e=>{const{contents:t,type:n}=e;switch(n){case"cancel":return;case"clear":return this._clear();case"merge":return this._merge(t||{});case"overwrite":return this._overwrite(t||{});default:return}}))}}get changed(){return this._changed}async clear(){await this._ready;await this._clear()}async fetch(e){await this._ready;return this._fetch(e)}async list(e){await this._ready;return this._list(e)}async remove(e){await this._ready;await this._remove(e);this._changed.emit({id:e,type:"remove"})}async save(e,t){await this._ready;await this._save(e,t);this._changed.emit({id:e,type:"save"})}async toJSON(){await this._ready;const{ids:e,values:t}=await this._list();return t.reduce(((t,n,i)=>{t[e[i]]=n;return t}),{})}async _clear(){await Promise.all((await this._list()).ids.map((e=>this._remove(e))))}async _fetch(e){const t=await this._connector.fetch(e);if(t){return JSON.parse(t).v}}async _list(e=""){const{ids:t,values:n}=await this._connector.list(e);return{ids:t,values:n.map((e=>JSON.parse(e).v))}}async _merge(e){await Promise.all(Object.keys(e).map((t=>e[t]&&this._save(t,e[t]))))}async _overwrite(e){await this._clear();await this._merge(e)}async _remove(e){return this._connector.remove(e)}async _save(e,t){return this._connector.save(e,JSON.stringify({v:t}))}}t.StateDB=s;(function(e){class t{constructor(){this._storage={}}async fetch(e){return this._storage[e]}async list(e=""){return Object.keys(this._storage).reduce(((t,n)=>{if(e===""?true:e===n.split(":")[0]){t.ids.push(n);t.values.push(this._storage[n])}return t}),{ids:[],values:[]})}async remove(e){delete this._storage[e]}async save(e,t){this._storage[e]=t}}e.Connector=t})(s||(t.StateDB=s={}))},82877:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IStateDB=void 0;const i=n(5592);t.IStateDB=new i.Token("@jupyterlab/coreutils:IStateDB",`A service for the JupyterLab state database.\n Use this if you want to store data that will persist across page loads.\n See "state database" for more information.`)},6771:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>g});var i=n(94307);var s=n.n(i);var o=n(14366);var r=n.n(o);var a=n(84739);var l=n.n(a);var d=n(24735);var c=n.n(d);var h=n(30619);var u=n.n(h);const p="@jupyterlab/statusbar-extension:plugin";const m={id:p,description:"Provides the application status bar.",requires:[h.ITranslator],provides:d.IStatusBar,autoStart:true,activate:(e,t,n,i,s)=>{const o=t.load("jupyterlab");const r=new d.StatusBar;r.id="jp-main-statusbar";e.shell.add(r,"bottom");if(n){n.layoutModified.connect((()=>{r.update()}))}const a=o.__("Main Area");const l="statusbar:toggle";e.commands.addCommand(l,{label:o.__("Show Status Bar"),execute:()=>{r.setHidden(r.isVisible);if(i){void i.set(p,"visible",r.isVisible)}},isToggled:()=>r.isVisible});e.commands.commandExecuted.connect(((t,n)=>{if(n.id==="application:reset-layout"&&!r.isVisible){e.commands.execute(l).catch((e=>{console.error("Failed to show the status bar.",e)}))}}));if(s){s.addItem({command:l,category:a})}if(i){const t=i.load(p);const n=e=>{const t=e.get("visible").composite;r.setHidden(!t)};Promise.all([t,e.restored]).then((([e])=>{n(e);e.changed.connect((e=>{n(e)}))})).catch((e=>{console.error(e.message)}))}return r},optional:[i.ILabShell,a.ISettingRegistry,o.ICommandPalette]};const g=m},40005:(e,t,n)=>{"use strict";var i=n(24800);var s=n(97913);var o=n(3579)},57850:(e,t,n)=>{"use strict";n.r(t);n.d(t,{GroupItem:()=>o,IStatusBar:()=>b,Popup:()=>d,ProgressBar:()=>c,ProgressCircle:()=>p,StatusBar:()=>f,TextItem:()=>u,showPopup:()=>l});var i=n(44914);var s=n.n(i);function o(e){const{spacing:t,children:n,className:s,...o}=e;const r=i.Children.toArray(n).filter(Boolean);const a=r.length;return i.createElement("div",{className:`jp-StatusBar-GroupItem ${s||""}`,...o},r.map(((e,n)=>{const s=`group-item-${n}`;if(n===0){return i.createElement("div",{key:s,style:{marginRight:`${t}px`}},e)}else if(n===a-1){return i.createElement("div",{key:s,style:{marginLeft:`${t}px`}},e)}else{return i.createElement("div",{key:s,style:{margin:`0px ${t}px`}},e)}})))}var r=n(26331);var a=n(1143);function l(e){const t=new d(e);if(!e.startHidden){t.launch()}return t}class d extends a.Widget{constructor(e){super();this.addClass("jp-ThemedContainer");this._body=e.body;this._body.addClass("jp-StatusBar-HoverItem");this._anchor=e.anchor;this._align=e.align;if(e.hasDynamicSize){this._observer=new ResizeObserver((()=>{this.update()}))}const t=this.layout=new a.PanelLayout;t.addWidget(e.body);this._body.node.addEventListener("resize",(()=>{this.update()}))}launch(){this._setGeometry();a.Widget.attach(this,document.body);this.update();this._anchor.addClass("jp-mod-clicked");this._anchor.removeClass("jp-mod-highlight")}onUpdateRequest(e){this._setGeometry();super.onUpdateRequest(e)}onAfterAttach(e){var t;document.addEventListener("click",this,false);this.node.addEventListener("keydown",this,false);window.addEventListener("resize",this,false);(t=this._observer)===null||t===void 0?void 0:t.observe(this._body.node)}onBeforeDetach(e){var t;(t=this._observer)===null||t===void 0?void 0:t.disconnect();document.removeEventListener("click",this,false);this.node.removeEventListener("keydown",this,false);window.removeEventListener("resize",this,false)}onResize(){this.update()}dispose(){var e;(e=this._observer)===null||e===void 0?void 0:e.disconnect();super.dispose();this._anchor.removeClass("jp-mod-clicked");this._anchor.addClass("jp-mod-highlight")}handleEvent(e){switch(e.type){case"keydown":this._evtKeydown(e);break;case"click":this._evtClick(e);break;case"resize":this.onResize();break;default:break}}_evtClick(e){if(!!e.target&&!(this._body.node.contains(e.target)||this._anchor.node.contains(e.target))){this.dispose()}}_evtKeydown(e){switch(e.keyCode){case 27:e.stopPropagation();e.preventDefault();this.dispose();break;default:break}}_setGeometry(){let e=0;const t=this._anchor.node.getBoundingClientRect();const n=this._body.node.getBoundingClientRect();if(this._align==="right"){e=-(n.width-t.width)}const i=window.getComputedStyle(this._body.node);r.HoverBox.setGeometry({anchor:t,host:document.body,maxHeight:500,minHeight:20,node:this._body.node,offset:{horizontal:e},privilege:"forceAbove",style:i})}}function c(e){const{width:t,percentage:n,...s}=e;return i.createElement("div",{className:"jp-Statusbar-ProgressBar-progress-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n},i.createElement(h,{percentage:n,...s,contentWidth:t}))}function h(e){return i.createElement("div",{style:{width:`${e.percentage}%`}},i.createElement("p",null,e.content))}function u(e){const{title:t,source:n,className:s,...o}=e;return i.createElement("span",{className:`jp-StatusBar-TextItem ${s}`,title:t,...o},n)}function p(e){const t=104;const n=e=>{const n=Math.max(e*3.6,.1);const i=n*Math.PI/180,s=Math.sin(i)*t,o=Math.cos(i)*-t,r=n<180?1:0,a=`M 0 0 v -${t} A ${t} ${t} 1 `+r+" 0 "+s.toFixed(4)+" "+o.toFixed(4)+" z";return a};return s().createElement("div",{className:"jp-Statusbar-ProgressCircle",role:"progressbar","aria-label":e.label||"Unlabelled progress circle","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.progress},s().createElement("svg",{viewBox:"0 0 250 250"},s().createElement("circle",{cx:"125",cy:"125",r:`${t}`,stroke:"var(--jp-inverse-layout-color3)",strokeWidth:"20",fill:"none"}),s().createElement("path",{className:"jp-Statusbar-ProgressCirclePath",transform:"translate(125,125) scale(.9)",d:n(e.progress),fill:"var(--jp-inverse-layout-color3)"})))}var m=n(34236);var g=n(90044);class f extends a.Widget{constructor(){super();this._isWindowNarrow=()=>window.innerWidth<=630;this._leftRankItems=[];this._rightRankItems=[];this._statusItems={};this._disposables=new g.DisposableSet;this.addClass("jp-StatusBar-Widget");const e=this.layout=new a.PanelLayout;const t=this._leftSide=new a.Panel;const n=this._middlePanel=new a.Panel;const i=this._rightSide=new a.Panel;t.addClass("jp-StatusBar-Left");n.addClass("jp-StatusBar-Middle");i.addClass("jp-StatusBar-Right");e.addWidget(t);e.addWidget(n);e.addWidget(i)}registerStatusItem(e,t){if(e in this._statusItems){throw new Error(`Status item ${e} already registered.`)}const n={...v.statusItemDefaults,...t};const{align:i,item:s,rank:o,priority:r}=n;const a=()=>{this._refreshItem(e)};if(n.activeStateChanged){n.activeStateChanged.connect(a)}const l={id:e,rank:o,priority:r};n.item.addClass("jp-StatusBar-Item");this._statusItems[e]=n;if(i==="left"){const e=this._findInsertIndex(this._leftRankItems,l);if(e===-1){this._leftSide.addWidget(s);this._leftRankItems.push(l)}else{m.ArrayExt.insert(this._leftRankItems,e,l);this._leftSide.insertWidget(e,s)}}else if(i==="right"){const e=this._findInsertIndex(this._rightRankItems,l);if(e===-1){this._rightSide.addWidget(s);this._rightRankItems.push(l)}else{m.ArrayExt.insert(this._rightRankItems,e,l);this._rightSide.insertWidget(e,s)}}else{this._middlePanel.addWidget(s)}this._refreshItem(e);const d=new g.DisposableDelegate((()=>{delete this._statusItems[e];if(n.activeStateChanged){n.activeStateChanged.disconnect(a)}s.parent=null;s.dispose()}));this._disposables.add(d);return d}dispose(){this._leftRankItems.length=0;this._rightRankItems.length=0;this._disposables.dispose();super.dispose()}onUpdateRequest(e){this._refreshAll();super.onUpdateRequest(e)}_findInsertIndex(e,t){return m.ArrayExt.findFirstIndex(e,(e=>e.rank>t.rank))}_refreshItem(e){const t=this._statusItems[e];if(t.isActive()&&!(t.priority===0&&this._isWindowNarrow())){t.item.show();t.item.update()}else{t.item.hide()}}_refreshAll(){Object.keys(this._statusItems).forEach((e=>{this._refreshItem(e)}))}}var v;(function(e){e.statusItemDefaults={align:"left",rank:0,priority:0,isActive:()=>true,activeStateChanged:undefined}})(v||(v={}));var _=n(5592);const b=new _.Token("@jupyterlab/statusbar:IStatusBar","A service for the status bar on the application. Use this if you want to add new status bar items.")},24800:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(85072);var r=n.n(o);var a=n(97825);var l=n.n(a);var d=n(77659);var c=n.n(d);var h=n(55056);var u=n.n(h);var p=n(10540);var m=n.n(p);var g=n(41113);var f=n.n(g);var v=n(28423);var _={};_.styleTagTransform=f();_.setAttributes=u();_.insert=c().bind(null,"head");_.domAPI=l();_.insertStyleElement=m();var b=r()(v.A,_);const y=v.A&&v.A.locals?v.A.locals:undefined},59464:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>I});var i=n(94307);var s=n.n(i);var o=n(14366);var r=n.n(o);var a=n(74955);var l=n.n(a);var d=n(23899);var c=n.n(d);var h=n(45409);var u=n.n(h);var p=n(28548);var m=n.n(p);var g=n(84739);var f=n.n(g);var v=n(76387);var _=n.n(v);var b=n(30619);var y=n.n(b);var w=n(26331);var C=n.n(w);var x=n(1143);var S=n.n(x);var k;(function(e){e.copy="terminal:copy";e.createNew="terminal:create-new";e.open="terminal:open";e.refresh="terminal:refresh";e.increaseFont="terminal:increase-font";e.decreaseFont="terminal:decrease-font";e.paste="terminal:paste";e.setTheme="terminal:set-theme";e.shutdown="terminal:shut-down"})(k||(k={}));const j={activate:E,id:"@jupyterlab/terminal-extension:plugin",description:"Adds terminal and provides its tracker.",provides:v.ITerminalTracker,requires:[g.ISettingRegistry,b.ITranslator],optional:[o.ICommandPalette,a.ILauncher,i.ILayoutRestorer,d.IMainMenu,o.IThemeManager,h.IRunningSessionManagers],autoStart:true};const I=j;function E(e,t,n,i,s,r,a,l,d){const c=n.load("jupyterlab");const{serviceManager:h,commands:u}=e;const p=c.__("Terminal");const m="terminal";const g=new o.WidgetTracker({namespace:m});if(!h.terminals.isAvailable()){console.warn("Disabling terminals plugin because they are not available on the server");return g}if(r){void r.restore(g,{command:k.createNew,args:e=>({name:e.content.session.name}),name:e=>e.content.session.name})}const f={};function v(e){Object.keys(e.composite).forEach((t=>{f[t]=e.composite[t]}))}function _(e){const t=e.content;if(!t){return}Object.keys(f).forEach((e=>{t.setOption(e,f[e])}))}function b(){g.forEach((e=>_(e)))}t.load(j.id).then((e=>{v(e);b();e.changed.connect((()=>{v(e);b()}))})).catch(D.showErrorMessage);l===null||l===void 0?void 0:l.themeChanged.connect(((e,t)=>{g.forEach((e=>{const t=e.content;if(t.getOption("theme")==="inherit"){t.setOption("theme","inherit")}}))}));M(e,g,t,n,f);if(a){const e=new x.Menu({commands:u});e.title.label=c._p("menu","Terminal Theme");e.addItem({command:k.setTheme,args:{theme:"inherit",displayName:c.__("Inherit"),isPalette:false}});e.addItem({command:k.setTheme,args:{theme:"light",displayName:c.__("Light"),isPalette:false}});e.addItem({command:k.setTheme,args:{theme:"dark",displayName:c.__("Dark"),isPalette:false}});a.settingsMenu.addGroup([{command:k.increaseFont},{command:k.decreaseFont},{type:"submenu",submenu:e}],40);a.fileMenu.newMenu.addItem({command:k.createNew,rank:20});a.fileMenu.closeAndCleaners.add({id:k.shutdown,isEnabled:e=>g.currentWidget!==null&&g.has(e)})}if(i){[k.createNew,k.refresh,k.increaseFont,k.decreaseFont].forEach((e=>{i.addItem({command:e,category:p,args:{isPalette:true}})}));i.addItem({command:k.setTheme,category:p,args:{theme:"inherit",displayName:c.__("Inherit"),isPalette:true}});i.addItem({command:k.setTheme,category:p,args:{theme:"light",displayName:c.__("Light"),isPalette:true}});i.addItem({command:k.setTheme,category:p,args:{theme:"dark",displayName:c.__("Dark"),isPalette:true}})}if(s){s.add({command:k.createNew,category:c.__("Other"),rank:0})}if(d){T(d,e,n)}return g}function T(e,t,n){const i=n.load("jupyterlab");const s=t.serviceManager.terminals;class o{constructor(e){this._model=e}open(){void t.commands.execute("terminal:open",{name:this._model.name})}icon(){return w.terminalIcon}label(){return`terminals/${this._model.name}`}shutdown(){return s.shutdown(this._model.name)}}e.add({name:i.__("Terminals"),supportsMultipleViews:false,running:()=>Array.from(s.running()).map((e=>new o(e))),shutdownAll:()=>s.shutdownAll(),refreshRunning:()=>s.refreshRunning(),runningChanged:s.runningChanged,shutdownLabel:i.__("Shut Down"),shutdownAllLabel:i.__("Shut Down All"),shutdownAllConfirmationText:i.__("Are you sure you want to permanently shut down all running terminals?")})}function M(e,t,n,i,s){var r;const a=i.load("jupyterlab");const{commands:l,serviceManager:d}=e;const c=()=>t.currentWidget!==null&&t.currentWidget===e.shell.currentWidget;l.addCommand(k.createNew,{label:e=>e["isPalette"]?a.__("New Terminal"):a.__("Terminal"),caption:a.__("Start a new terminal session"),icon:e=>e["isPalette"]?undefined:w.terminalIcon,execute:async n=>{const r=n["name"];const a=n["cwd"];const l=a?d.contents.localPath(a):undefined;let c;if(r){const e=await p.TerminalAPI.listRunning(d.serverSettings);if(e.map((e=>e.name)).includes(r)){c=d.terminals.connectTo({model:{name:r}})}else{c=await d.terminals.startNew({name:r,cwd:l})}}else{c=await d.terminals.startNew({cwd:l})}const h=new v.Terminal(c,s,i);h.title.icon=w.terminalIcon;h.title.label="...";const u=new o.MainAreaWidget({content:h,reveal:h.ready});e.shell.add(u,"main",{type:"Terminal"});void t.add(u);e.shell.activateById(u.id);return u}});l.addCommand(k.open,{label:a.__("Open a terminal by its `name`."),execute:n=>{const i=n["name"];const s=t.find((e=>{const t=e.content;return t.session.name===i||false}));if(s){e.shell.activateById(s.id)}else{return l.execute(k.createNew,{name:i})}}});l.addCommand(k.refresh,{label:a.__("Refresh Terminal"),caption:a.__("Refresh the current terminal session"),execute:async()=>{const n=t.currentWidget;if(!n){return}e.shell.activateById(n.id);try{await n.content.refresh();if(n){n.content.activate()}}catch(i){D.showErrorMessage(i)}},icon:e=>e["isPalette"]?undefined:w.refreshIcon.bindprops({stylesheet:"menuItem"}),isEnabled:c});l.addCommand(k.copy,{execute:()=>{var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(!n){return}const i=n.getSelection();if(i){o.Clipboard.copyToSystem(i);n.activate()}},isEnabled:()=>{var e;if(!c()){return false}const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(!n){return false}return n.hasSelection()},icon:w.copyIcon.bindprops({stylesheet:"menuItem"}),label:a.__("Copy")});l.addCommand(k.paste,{execute:async()=>{var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(!n){return}const i=window.navigator.clipboard;const s=await i.readText();if(s){n.paste(s);n.activate()}},isEnabled:()=>{var e;return Boolean(c()&&((e=t.currentWidget)===null||e===void 0?void 0:e.content))},icon:w.pasteIcon.bindprops({stylesheet:"menuItem"}),label:a.__("Paste")});l.addCommand(k.shutdown,{label:a.__("Shutdown Terminal"),execute:()=>{const e=t.currentWidget;if(!e){return}return e.content.session.shutdown()},isEnabled:c});l.addCommand(k.increaseFont,{label:a.__("Increase Terminal Font Size"),execute:async()=>{const{fontSize:e}=s;if(e&&e<72){try{await n.set(j.id,"fontSize",e+1)}catch(t){D.showErrorMessage(t)}}}});l.addCommand(k.decreaseFont,{label:a.__("Decrease Terminal Font Size"),execute:async()=>{const{fontSize:e}=s;if(e&&e>9){try{await n.set(j.id,"fontSize",e-1)}catch(t){D.showErrorMessage(t)}}}});const h={inherit:a.__("Inherit"),light:a.__("Light"),dark:a.__("Dark")};l.addCommand(k.setTheme,{label:e=>{if(e.theme===undefined){return a.__("Set terminal theme to the provided `theme`.")}const t=e["theme"];const n=t in h?h[t]:a.__(t[0].toUpperCase()+t.slice(1));return e["isPalette"]?a.__("Use Terminal Theme: %1",n):n},caption:a.__("Set the terminal theme"),isToggled:e=>{const{theme:t}=s;return e["theme"]===t},execute:async e=>{const t=e["theme"];try{await n.set(j.id,"theme",t);l.notifyCommandChanged(k.setTheme)}catch(i){console.log(i);D.showErrorMessage(i)}}});const u=[k.refresh,k.copy,k.paste,k.shutdown];const m=()=>{u.forEach((e=>l.notifyCommandChanged(e)))};t.currentChanged.connect(m);(r=e.shell.currentChanged)===null||r===void 0?void 0:r.connect(m)}var D;(function(e){function t(e){console.error(`Failed to configure ${j.id}: ${e.message}`)}e.showErrorMessage=t})(D||(D={}))},70558:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(3579);var a=n(75797);var l=n(67996);var d=n(94780);var c=n(69448);var h=n(85072);var u=n.n(h);var p=n(97825);var m=n.n(p);var g=n(77659);var f=n.n(g);var v=n(55056);var _=n.n(v);var b=n(10540);var y=n.n(b);var w=n(41113);var C=n.n(w);var x=n(51466);var S={};S.styleTagTransform=C();S.setAttributes=_();S.insert=f().bind(null,"head");S.domAPI=m();S.insertStyleElement=y();var k=u()(x.A,S);const j=x.A&&x.A.locals?x.A.locals:undefined},4202:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ITerminal:()=>o,ITerminalTracker:()=>s,Terminal:()=>u});var i=n(5592);const s=new i.Token("@jupyterlab/terminal:ITerminalTracker",`A widget tracker for terminals.\n Use this if you want to be able to iterate over and interact with terminals\n created by the application.`);var o;(function(e){e.defaultOptions={theme:"inherit",fontFamily:'Menlo, Consolas, "DejaVu Sans Mono", monospace',fontSize:13,lineHeight:1,scrollback:1e3,shutdownOnClose:false,closeOnExit:true,cursorBlink:true,initialCommand:"",screenReaderMode:false,pasteWithCtrlV:true,autoFit:true,macOptionIsMeta:false}})(o||(o={}));var r=n(30619);var a=n(76326);var l=n(42856);var d=n(1143);const c="jp-Terminal";const h="jp-Terminal-body";class u extends d.Widget{constructor(e,t={},n){super();this._needsResize=true;this._offsetWidth=-1;this._offsetHeight=-1;this._isReady=false;this._ready=new i.PromiseDelegate;this._termOpened=false;n=n||r.nullTranslator;this._trans=n.load("jupyterlab");this.session=e;this._options={...o.defaultOptions,...t};const{theme:s,...a}=this._options;const l={theme:p.getXTermTheme(s),...a};this.addClass(c);this._setThemeAttribute(s);let d="";const h=(e,t)=>{switch(t.type){case"stdout":if(t.content){d+=t.content[0]}break;default:break}};e.messageReceived.connect(h);e.disposed.connect((()=>{if(this.getOption("closeOnExit")){this.dispose()}}),this);p.createTerminal(l).then((([t,n])=>{this._term=t;this._fitAddon=n;this._initializeTerm();this.id=`jp-Terminal-${p.id++}`;this.title.label=this._trans.__("Terminal");this._isReady=true;this._ready.resolve();if(d){this._term.write(d)}e.messageReceived.disconnect(h);e.messageReceived.connect(this._onMessage,this);if(e.connectionStatus==="connected"){this._initialConnection()}else{e.connectionStatusChanged.connect(this._initialConnection,this)}this.update()})).catch((e=>{console.error("Failed to create a terminal.\n",e);this._ready.reject(e)}))}get ready(){return this._ready.promise}getOption(e){return this._options[e]}setOption(e,t){if(e!=="theme"&&(this._options[e]===t||e==="initialCommand")){return}this._options[e]=t;switch(e){case"fontFamily":this._term.options.fontFamily=t;break;case"fontSize":this._term.options.fontSize=t;break;case"lineHeight":this._term.options.lineHeight=t;break;case"screenReaderMode":this._term.options.screenReaderMode=t;break;case"scrollback":this._term.options.scrollback=t;break;case"theme":this._term.options.theme={...p.getXTermTheme(t)};this._setThemeAttribute(t);break;case"macOptionIsMeta":this._term.options.macOptionIsMeta=t;break;default:break}this._needsResize=true;this.update()}dispose(){if(!this.session.isDisposed){if(this.getOption("shutdownOnClose")){this.session.shutdown().catch((e=>{console.error(`Terminal not shut down: ${e}`)}))}}void this.ready.then((()=>{this._term.dispose()}));super.dispose()}async refresh(){if(!this.isDisposed&&this._isReady){await this.session.reconnect();this._term.clear()}}hasSelection(){if(!this.isDisposed&&this._isReady){return this._term.hasSelection()}return false}paste(e){if(!this.isDisposed&&this._isReady){return this._term.paste(e)}}getSelection(){if(!this.isDisposed&&this._isReady){return this._term.getSelection()}return null}processMessage(e){super.processMessage(e);switch(e.type){case"fit-request":this.onFitRequest(e);break;default:break}}onAfterAttach(e){this.update()}onAfterShow(e){this.update()}onResize(e){this._offsetWidth=e.width;this._offsetHeight=e.height;this._needsResize=true;this.update()}onUpdateRequest(e){var t;if(!this.isVisible||!this.isAttached||!this._isReady){return}if(!this._termOpened){this._term.open(this.node);(t=this._term.element)===null||t===void 0?void 0:t.classList.add(h);this._termOpened=true}if(this._needsResize){this._resizeTerminal()}}onFitRequest(e){const t=d.Widget.ResizeMessage.UnknownSize;l.MessageLoop.sendMessage(this,t)}onActivateRequest(e){var t;(t=this._term)===null||t===void 0?void 0:t.focus()}_initialConnection(){if(this.isDisposed){return}if(this.session.connectionStatus!=="connected"){return}this.title.label=this._trans.__("Terminal %1",this.session.name);this._setSessionSize();if(this._options.initialCommand){this.session.send({type:"stdin",content:[this._options.initialCommand+"\r"]})}this.session.connectionStatusChanged.disconnect(this._initialConnection,this)}_initializeTerm(){const e=this._term;e.onData((e=>{if(this.isDisposed){return}this.session.send({type:"stdin",content:[e]})}));e.onTitleChange((e=>{this.title.label=e}));if(a.Platform.IS_MAC){return}e.attachCustomKeyEventHandler((t=>{if(t.ctrlKey&&t.key==="c"&&e.hasSelection()){return false}if(t.ctrlKey&&t.key==="v"&&this._options.pasteWithCtrlV){return false}return true}))}_onMessage(e,t){switch(t.type){case"stdout":if(t.content){this._term.write(t.content[0])}break;case"disconnect":this._term.write("\r\n\r\n[Finished… Term Session]\r\n");break;default:break}}_resizeTerminal(){if(this._options.autoFit){this._fitAddon.fit()}if(this._offsetWidth===-1){this._offsetWidth=this.node.offsetWidth}if(this._offsetHeight===-1){this._offsetHeight=this.node.offsetHeight}this._setSessionSize();this._needsResize=false}_setSessionSize(){const e=[this._term.rows,this._term.cols,this._offsetHeight,this._offsetWidth];if(!this.isDisposed){this.session.send({type:"set_size",content:e})}}_setThemeAttribute(e){if(this.isDisposed){return}this.node.setAttribute("data-term-theme",e?e.toLowerCase():"inherit")}}var p;(function(e){e.id=0;e.lightTheme={foreground:"#000",background:"#fff",cursor:"#616161",cursorAccent:"#F5F5F5",selectionBackground:"rgba(97, 97, 97, 0.3)",selectionInactiveBackground:"rgba(189, 189, 189, 0.3)"};e.darkTheme={foreground:"#fff",background:"#000",cursor:"#fff",cursorAccent:"#000",selectionBackground:"rgba(255, 255, 255, 0.3)",selectionInactiveBackground:"rgba(238, 238, 238, 0.3)"};e.inheritTheme=()=>({foreground:getComputedStyle(document.body).getPropertyValue("--jp-ui-font-color0").trim(),background:getComputedStyle(document.body).getPropertyValue("--jp-layout-color0").trim(),cursor:getComputedStyle(document.body).getPropertyValue("--jp-ui-font-color1").trim(),cursorAccent:getComputedStyle(document.body).getPropertyValue("--jp-ui-inverse-font-color0").trim(),selectionBackground:getComputedStyle(document.body).getPropertyValue("--jp-layout-color3").trim(),selectionInactiveBackground:getComputedStyle(document.body).getPropertyValue("--jp-layout-color2").trim()});function t(t){switch(t){case"light":return e.lightTheme;case"dark":return e.darkTheme;case"inherit":default:return e.inheritTheme()}}e.getXTermTheme=t})(p||(p={}));(function(e){let t=false;let i;let s;let o;let r;function a(){const e=document.createElement("canvas");const t=e.getContext("webgl")||e.getContext("experimental-webgl");try{return t instanceof WebGLRenderingContext}catch(n){return false}}function l(e){let n=new r;e.loadAddon(n);if(t){n.onContextLoss((t=>{console.debug("WebGL context lost - reinitialize Xtermjs renderer.");n.dispose();l(e)}))}}async function d(e){var d;if(!i){t=a();const[e,l,c,h]=await Promise.all([n.e(7856).then(n.t.bind(n,97856,23)),n.e(3616).then(n.t.bind(n,33616,23)),t?n.e(3799).then(n.t.bind(n,56180,23)):n.e(2880).then(n.t.bind(n,52880,23)),n.e(1832).then(n.t.bind(n,31832,23))]);i=e.Terminal;s=l.FitAddon;r=(d=c.WebglAddon)!==null&&d!==void 0?d:c.CanvasAddon;o=h.WebLinksAddon}const c=new i(e);l(c);const h=new s;c.loadAddon(h);c.loadAddon(new o);return[c,h]}e.createTerminal=d})(p||(p={}))},10020:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>l});var i=n(14366);var s=n.n(i);var o=n(30619);var r=n.n(o);const a={id:"@jupyterlab/theme-dark-extension:plugin",description:"Adds a dark theme.",requires:[i.IThemeManager,o.ITranslator],activate:(e,t,n)=>{const i=n.load("jupyterlab");const s="@jupyterlab/theme-dark-extension/index.css";t.register({name:"JupyterLab Dark",displayName:i.__("JupyterLab Dark"),isLight:false,themeScrollbars:true,load:()=>t.loadCSS(s),unload:()=>Promise.resolve(undefined)})},autoStart:true};const l=a},5180:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>l});var i=n(14366);var s=n.n(i);var o=n(30619);var r=n.n(o);const a={id:"@jupyterlab/theme-dark-high-contrast-extension:plugin",description:"Adds a dark high contrast theme.",requires:[i.IThemeManager,o.ITranslator],activate:(e,t,n)=>{const i=n.load("jupyterlab");const s="@jupyterlab/theme-dark-high-contrast-extension/index.css";t.register({name:"JupyterLab Dark High Contrast",displayName:i.__("JupyterLab Dark High Contrast"),isLight:false,themeScrollbars:true,load:()=>t.loadCSS(s),unload:()=>Promise.resolve(undefined)})},autoStart:true};const l=a},84988:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>l});var i=n(14366);var s=n.n(i);var o=n(30619);var r=n.n(o);const a={id:"@jupyterlab/theme-light-extension:plugin",description:"Adds a light theme.",requires:[i.IThemeManager,o.ITranslator],activate:(e,t,n)=>{const i=n.load("jupyterlab");const s="@jupyterlab/theme-light-extension/index.css";t.register({name:"JupyterLab Light",displayName:i.__("JupyterLab Light"),isLight:true,themeScrollbars:false,load:()=>t.loadCSS(s),unload:()=>Promise.resolve(undefined)})},autoStart:true};const l=a},27866:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>v});var i=n(94307);var s=n.n(i);var o=n(84739);var r=n.n(o);var a=n(62149);var l=n.n(a);var d=n(30619);var c=n.n(d);var h=n(26331);var u=n.n(h);var p;(function(e){e.displayNumbering="toc:display-numbering";e.displayH1Numbering="toc:display-h1-numbering";e.displayOutputNumbering="toc:display-outputs-numbering";e.showPanel="toc:show-panel";e.toggleCollapse="toc:toggle-collapse"})(p||(p={}));async function m(e,t,n,i,s,o){const r=(n!==null&&n!==void 0?n:d.nullTranslator).load("jupyterlab");let l={...a.TableOfContents.defaultConfig};const c=new a.TableOfContentsPanel(n!==null&&n!==void 0?n:undefined);c.title.icon=h.tocIcon;c.title.caption=r.__("Table of Contents");c.id="table-of-contents";c.node.setAttribute("role","region");c.node.setAttribute("aria-label",r.__("Table of Contents section"));e.commands.addCommand(p.displayH1Numbering,{label:r.__("Show first-level heading number"),execute:()=>{if(c.model){c.model.setConfiguration({numberingH1:!c.model.configuration.numberingH1})}},isEnabled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.supportedOptions.includes("numberingH1"))!==null&&t!==void 0?t:false},isToggled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.configuration.numberingH1)!==null&&t!==void 0?t:false}});e.commands.addCommand(p.displayNumbering,{label:r.__("Show heading number in the document"),icon:e=>e.toolbar?h.numberingIcon:undefined,execute:()=>{if(c.model){c.model.setConfiguration({numberHeaders:!c.model.configuration.numberHeaders});e.commands.notifyCommandChanged(p.displayNumbering)}},isEnabled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.supportedOptions.includes("numberHeaders"))!==null&&t!==void 0?t:false},isToggled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.configuration.numberHeaders)!==null&&t!==void 0?t:false}});e.commands.addCommand(p.displayOutputNumbering,{label:r.__("Show output headings"),execute:()=>{if(c.model){c.model.setConfiguration({includeOutput:!c.model.configuration.includeOutput})}},isEnabled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.supportedOptions.includes("includeOutput"))!==null&&t!==void 0?t:false},isToggled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.configuration.includeOutput)!==null&&t!==void 0?t:false}});e.commands.addCommand(p.showPanel,{label:r.__("Table of Contents"),execute:()=>{e.shell.activateById(c.id)}});function u(e){return e.headings.some((e=>{var t;return!((t=e.collapsed)!==null&&t!==void 0?t:false)}))}e.commands.addCommand(p.toggleCollapse,{label:()=>c.model&&!u(c.model)?r.__("Expand All Headings"):r.__("Collapse All Headings"),icon:e=>e.toolbar?c.model&&!u(c.model)?h.expandAllIcon:h.collapseAllIcon:undefined,execute:()=>{if(c.model){if(u(c.model)){c.model.toggleCollapse({collapsed:true})}else{c.model.toggleCollapse({collapsed:false})}}},isEnabled:()=>c.model!==null});const m=new a.TableOfContentsTracker;if(i){i.add(c,"@jupyterlab/toc:plugin")}let f;if(o){try{f=await o.load(g.id);const t=t=>{const n=t.composite;for(const e of[...Object.keys(l)]){const t=n[e];if(t!==undefined){l[e]=t}}if(s){for(const e of s.widgets("main")){const t=m.get(e);if(t){t.setConfiguration(l)}}}else{if(e.shell.currentWidget){const t=m.get(e.shell.currentWidget);if(t){t.setConfiguration(l)}}}};if(f){f.changed.connect(t);t(f)}}catch(x){console.error(`Failed to load settings for the Table of Contents extension.\n\n${x}`)}}const v=new h.CommandToolbarButton({commands:e.commands,id:p.displayNumbering,args:{toolbar:true},label:""});v.addClass("jp-toc-numberingButton");c.toolbar.node.setAttribute("aria-label",r.__("Table of contents sidepanel toolbar"));c.toolbar.addItem("display-numbering",v);c.toolbar.addItem("spacer",h.Toolbar.createSpacerItem());c.toolbar.addItem("collapse-all",new h.CommandToolbarButton({commands:e.commands,id:p.toggleCollapse,args:{toolbar:true},label:""}));const _=new h.MenuSvg({commands:e.commands});_.addItem({command:p.displayH1Numbering});_.addItem({command:p.displayOutputNumbering});const b=new h.ToolbarButton({tooltip:r.__("More actions…"),icon:h.ellipsesIcon,noFocusOnClick:false,onClick:()=>{const e=b.node.getBoundingClientRect();_.open(e.x,e.bottom)}});c.toolbar.addItem("submenu",b);e.shell.add(c,"left",{rank:400,type:"Table of Contents"});if(s){s.currentChanged.connect(y)}void e.restored.then((()=>{y()}));return m;function y(){var n;let i=e.shell.currentWidget;if(!i){return}let s=m.get(i);if(!s){s=(n=t.getModel(i,l))!==null&&n!==void 0?n:null;if(s){m.add(i,s)}i.disposed.connect((()=>{s===null||s===void 0?void 0:s.dispose()}))}if(c.model){c.model.headingsChanged.disconnect(C);c.model.collapseChanged.disconnect(C)}c.model=s;if(c.model){c.model.headingsChanged.connect(C);c.model.collapseChanged.connect(C)}w()}function w(){e.commands.notifyCommandChanged(p.displayNumbering);e.commands.notifyCommandChanged(p.toggleCollapse)}function C(){e.commands.notifyCommandChanged(p.toggleCollapse)}}const g={id:"@jupyterlab/toc-extension:registry",description:"Provides the table of contents registry.",autoStart:true,provides:a.ITableOfContentsRegistry,activate:()=>new a.TableOfContentsRegistry};const f={id:"@jupyterlab/toc-extension:tracker",description:"Adds the table of content widget and provides its tracker.",autoStart:true,provides:a.ITableOfContentsTracker,requires:[a.ITableOfContentsRegistry],optional:[d.ITranslator,i.ILayoutRestorer,i.ILabShell,o.ISettingRegistry],activate:m};const v=[g,f]},31747:(e,t,n)=>{"use strict";var i=n(40662);var s=n(3579);var o=n(66731);var r=n(85072);var a=n.n(r);var l=n(97825);var d=n.n(l);var c=n(77659);var h=n.n(c);var u=n(55056);var p=n.n(u);var m=n(10540);var g=n.n(m);var f=n(41113);var v=n.n(f);var _=n(38026);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.A,b);const w=_.A&&_.A.locals?_.A.locals:undefined},49830:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ITableOfContentsRegistry:()=>h,ITableOfContentsTracker:()=>u,TableOfContents:()=>p,TableOfContentsFactory:()=>a,TableOfContentsItem:()=>_,TableOfContentsModel:()=>m,TableOfContentsPanel:()=>w,TableOfContentsRegistry:()=>S,TableOfContentsTracker:()=>k,TableOfContentsTree:()=>b,TableOfContentsUtils:()=>s,TableOfContentsWidget:()=>y});var i={};n.r(i);n.d(i,{getHeadingId:()=>N,getHeadings:()=>O,isMarkdown:()=>z});var s={};n.r(s);n.d(s,{Markdown:()=>i,NUMBERING_CLASS:()=>j,addPrefix:()=>M,clearNumbering:()=>P,filterHeadings:()=>I,getHTMLHeadings:()=>T,getPrefix:()=>D,isHTML:()=>E});var o=n(30397);const r=1e3;class a{constructor(e){this.tracker=e}isApplicable(e){if(!this.tracker.has(e)){return false}return true}createNew(e,t){const n=this._createNew(e,t);const i=e.context;const s=()=>{n.refresh().catch((e=>{console.error("Failed to update the table of contents.",e)}))};const a=new o.ActivityMonitor({signal:i.model.contentChanged,timeout:r});a.activityStopped.connect(s);const l=()=>{n.title=o.PathExt.basename(i.localPath)};i.pathChanged.connect(l);i.ready.then((()=>{l();s()})).catch((e=>{console.error(`Failed to initiate headings for ${i.localPath}.`)}));e.disposed.connect((()=>{a.activityStopped.disconnect(s);i.pathChanged.disconnect(l)}));return n}}var l=n(26331);var d=n(5592);var c=n(2336);const h=new d.Token("@jupyterlab/toc:ITableOfContentsRegistry","A service to register table of content factory.");const u=new d.Token("@jupyterlab/toc:ITableOfContentsTracker","A widget tracker for table of contents.");var p;(function(e){e.defaultConfig={baseNumbering:1,maximalDepth:4,numberingH1:true,numberHeaders:false,includeOutput:true,syncCollapseState:false}})(p||(p={}));class m extends l.VDomModel{constructor(e,t){super();this.widget=e;this._activeHeading=null;this._activeHeadingChanged=new c.Signal(this);this._collapseChanged=new c.Signal(this);this._configuration=t!==null&&t!==void 0?t:{...p.defaultConfig};this._headings=new Array;this._headingsChanged=new c.Signal(this);this._isActive=false;this._isRefreshing=false;this._needsRefreshing=false}get activeHeading(){return this._activeHeading}get activeHeadingChanged(){return this._activeHeadingChanged}get collapseChanged(){return this._collapseChanged}get configuration(){return this._configuration}get headings(){return this._headings}get headingsChanged(){return this._headingsChanged}get isActive(){return this._isActive}set isActive(e){this._isActive=e;if(this._isActive&&!this.isAlwaysActive){this.refresh().catch((e=>{console.error("Failed to refresh ToC model.",e)}))}}get isAlwaysActive(){return false}get supportedOptions(){return["maximalDepth"]}get title(){return this._title}set title(e){if(e!==this._title){this._title=e;this.stateChanged.emit()}}async refresh(){if(this._isRefreshing){this._needsRefreshing=true;return Promise.resolve()}this._isRefreshing=true;try{const e=await this.getHeadings();if(this._needsRefreshing){this._needsRefreshing=false;this._isRefreshing=false;return this.refresh()}if(e&&!this._areHeadingsEqual(e,this._headings)){this._headings=e;this.stateChanged.emit();this._headingsChanged.emit()}}finally{this._isRefreshing=false}}setActiveHeading(e,t=true){if(this._activeHeading!==e){this._activeHeading=e;this.stateChanged.emit()}if(t){this._activeHeadingChanged.emit(this._activeHeading)}}setConfiguration(e){const t={...this._configuration,...e};if(!d.JSONExt.deepEqual(this._configuration,t)){this._configuration=t;this.refresh().catch((e=>{console.error("Failed to update the table of contents.",e)}))}}toggleCollapse(e){var t,n;if(e.heading){e.heading.collapsed=(t=e.collapsed)!==null&&t!==void 0?t:!e.heading.collapsed;this.stateChanged.emit();this._collapseChanged.emit(e.heading)}else{const t=(n=e.collapsed)!==null&&n!==void 0?n:!this.headings.some((e=>{var t;return!((t=e.collapsed)!==null&&t!==void 0?t:false)}));this.headings.forEach((e=>e.collapsed=t));this.stateChanged.emit();this._collapseChanged.emit(null)}}isHeadingEqual(e,t){return e.level===t.level&&e.text===t.text&&e.prefix===t.prefix}_areHeadingsEqual(e,t){if(e.length===t.length){for(let n=0;n{if(!e.defaultPrevented&&e.target.expanded!==!n.collapsed){e.preventDefault();i(n)}};return f.createElement(v.TreeItem,{className:"jp-tocItem jp-TreeItem nested",selected:t,expanded:!n.collapsed,onExpand:o,onMouseDown:e=>{if(!e.defaultPrevented){e.preventDefault();s(n)}},onKeyUp:e=>{if(!e.defaultPrevented&&e.key==="Enter"&&!t){e.preventDefault();s(n)}}},f.createElement("div",{className:"jp-tocItem-heading"},f.createElement("span",{className:"jp-tocItem-content",title:n.text,...n.dataset},n.prefix,n.text)),e)}}class b extends f.PureComponent{render(){const{documentType:e}=this.props;return f.createElement(v.TreeView,{className:"jp-TableOfContents-content jp-TreeView","data-document-type":e},this.buildTree())}buildTree(){if(this.props.headings.length===0){return[]}const e=t=>{const n=this.props.headings;const i=new Array;const s=n[t];let o=t+1;while(o{this.model.toggleCollapse({heading:e})},setActiveHeading:e=>{this.model.setActiveHeading(e)}})}}class w extends l.SidePanel{constructor(e){super({content:new g.Panel,translator:e});this._model=null;this.addClass("jp-TableOfContents");this._title=new C.Header(this._trans.__("Table of Contents"));this.header.addWidget(this._title);this._treeview=new y({placeholderHeadline:this._trans.__("No Headings"),placeholderText:this._trans.__("The table of contents shows headings in notebooks and supported files.")});this._treeview.addClass("jp-TableOfContents-tree");this.content.addWidget(this._treeview)}get model(){return this._model}set model(e){var t,n;if(this._model!==e){(t=this._model)===null||t===void 0?void 0:t.stateChanged.disconnect(this._onTitleChanged,this);this._model=e;if(this._model){this._model.isActive=this.isVisible}(n=this._model)===null||n===void 0?void 0:n.stateChanged.connect(this._onTitleChanged,this);this._onTitleChanged();this._treeview.model=this._model}}onAfterHide(e){super.onAfterHide(e);if(this._model){this._model.isActive=false}}onBeforeShow(e){super.onBeforeShow(e);if(this._model){this._model.isActive=true}}_onTitleChanged(){var e,t;this._title.setTitle((t=(e=this._model)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:this._trans.__("Table of Contents"))}}var C;(function(e){class t extends g.Widget{constructor(e){const t=document.createElement("h2");t.textContent=e;t.classList.add("jp-text-truncated");super({node:t});this._title=t}setTitle(e){this._title.textContent=e}}e.Header=t})(C||(C={}));var x=n(90044);class S{constructor(){this._generators=new Map;this._idCounter=0}getModel(e,t){for(const n of this._generators.values()){if(n.isApplicable(e)){return n.createNew(e,t)}}}add(e){const t=this._idCounter++;this._generators.set(t,e);return new x.DisposableDelegate((()=>{this._generators.delete(t)}))}}class k{constructor(){this.modelMapping=new WeakMap}add(e,t){this.modelMapping.set(e,t)}get(e){const t=this.modelMapping.get(e);return!t||t.isDisposed?null:t}}const j="numbering-entry";function I(e,t,n=[]){const i={...p.defaultConfig,...t};const s=n;let o=s.length;const r=new Array;for(const a of e){if(a.skip){continue}const e=a.level;if(e>0&&e<=i.maximalDepth){const t=D(e,o,s,i);o=e;r.push({...a,prefix:t})}}return r}function E(e){return e==="text/html"}function T(e,t=true){var n;const i=document.createElement("div");i.innerHTML=e;const s=new Array;const o=i.querySelectorAll("h1, h2, h3, h4, h5, h6");for(const r of o){const e=parseInt(r.tagName[1],10);s.push({text:(n=r.textContent)!==null&&n!==void 0?n:"",level:e,id:r===null||r===void 0?void 0:r.getAttribute("id"),skip:r.classList.contains("jp-toc-ignore")||r.classList.contains("tocSkip")})}return s}function M(e,t,n){let i=e.querySelector(t);if(!i){return null}if(!i.querySelector(`span.${j}`)){A(i,n)}else{const s=e.querySelectorAll(t);for(const e of s){if(!e.querySelector(`span.${j}`)){i=e;A(e,n);break}}}return i}function D(e,t,n,i){const{baseNumbering:s,numberingH1:o,numberHeaders:r}=i;let a="";if(r){const i=o?1:2;if(e>t){for(let i=t;ie!==null&&e!==void 0?e:0)).join(".")+". "}else{if(n.length>1){a=n.slice(1).map((e=>e!==null&&e!==void 0?e:0)).join(".")+". "}}}return a}function A(e,t){e.insertAdjacentHTML("afterbegin",`${t}`)}function P(e){e===null||e===void 0?void 0:e.querySelectorAll(`span.${j}`).forEach((e=>{e.remove()}))}var L=n(14366);var R=n(44539);async function N(e,t,n,i){try{const s=document.createElement("div");await(0,R.renderMarkdown)({markdownParser:e,host:s,source:t,trusted:false,sanitizer:i!==null&&i!==void 0?i:new L.Sanitizer,shouldTypeset:false,resolver:null,linkHandler:null,latexTypesetter:null});const o=s.querySelector(`h${n}`);if(!o){return null}return o.id}catch(s){console.error("Failed to parse a heading.",s)}return null}function O(e){const t=e.split("\n");const n=new Array;let i;let s=0;let o;let r=0;if(t[r]==="---"){for(let e=r+1;e=s){i=!i;s=0;o=""}}if(i){continue}const a=H(e,t[r+1]);if(a){n.push({...a,line:r})}}return n}function B(e){let t;if(e.startsWith("`"))t=e.match(/^(`{3,})/);else t=e.match(/^(~{3,})/);return t?t[0].length:0}const F=["text/x-ipythongfm","text/x-markdown","text/x-gfm","text/markdown"];function z(e){return F.includes(e)}function H(e,t){let n=e.match(/^([#]{1,6}) (.*)/);if(n){return{text:W(n[2]),level:n[1].length,raw:e,skip:V.test(n[0])}}if(t){n=t.match(/^ {0,3}([=]{2,}|[-]{2,})\s*$/);if(n){return{text:W(e),level:n[1][0]==="="?1:2,raw:[e,t].join("\n"),skip:V.test(e)}}}n=e.match(/(.*)<\/h\1>/i);if(n){return{text:n[2],level:parseInt(n[1],10),skip:V.test(n[0]),raw:e}}return null}function W(e){return e.replace(/\[(.+)\]\(.+\)/g,"$1")}const V=/<\w+\s(.*?\s)?class="(.*?\s)?(jp-toc-ignore|tocSkip)(\s.*?)?"(\s.*?)?>/},66731:(e,t,n)=>{"use strict";var i=n(10395);var s=n(40662);var o=n(97913);var r=n(5893);var a=n(79010);var l=n(85072);var d=n.n(l);var c=n(97825);var h=n.n(c);var u=n(77659);var p=n.n(u);var m=n(55056);var g=n.n(m);var f=n(10540);var v=n.n(f);var _=n(41113);var b=n.n(_);var y=n(75682);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.A,w);const x=y.A&&y.A.locals?y.A.locals:undefined},77083:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>I});var i=n(9155);var s=n.n(i);var o=n(30397);var r=n.n(o);var a=n(4341);var l=n.n(a);var d=n(80349);var c=n.n(d);var h=n(44539);var u=n.n(h);var p=n(44855);var m=n.n(p);var g=n(30619);var f=n.n(g);var v=n(34236);var _=n.n(v);var b=n(1143);var y=n.n(b);var w;(function(e){e.dismiss="tooltip:dismiss";e.launchConsole="tooltip:launch-console";e.launchNotebook="tooltip:launch-notebook";e.launchFile="tooltip:launch-file"})(w||(w={}));const C={id:"@jupyterlab/tooltip-extension:manager",description:"Provides the tooltip manager.",autoStart:true,optional:[g.ITranslator],provides:p.ITooltipManager,activate:(e,t)=>{const n=(t!==null&&t!==void 0?t:g.nullTranslator).load("jupyterlab");let i=null;e.commands.addCommand(w.dismiss,{label:n.__("Dismiss the tooltip"),execute:()=>{if(i){i.dispose();i=null}}});return{invoke(e){const t=0;const{anchor:n,editor:s,kernel:o,rendermime:r}=e;if(i){i.dispose();i=null}return E.fetch({detail:t,editor:s,kernel:o}).then((e=>{i=new p.Tooltip({anchor:n,bundle:e,editor:s,rendermime:r});b.Widget.attach(i,document.body)})).catch((()=>{}))}}}};const x={id:"@jupyterlab/tooltip-extension:consoles",description:"Adds the tooltip capability to consoles.",autoStart:true,optional:[g.ITranslator],requires:[p.ITooltipManager,i.IConsoleTracker],activate:(e,t,n,i)=>{const s=(i!==null&&i!==void 0?i:g.nullTranslator).load("jupyterlab");e.commands.addCommand(w.launchConsole,{label:s.__("Open the tooltip"),execute:()=>{var e,i;const s=n.currentWidget;if(!s){return}const o=s.console;const r=(e=o.promptCell)===null||e===void 0?void 0:e.editor;const a=(i=o.sessionContext.session)===null||i===void 0?void 0:i.kernel;const l=o.rendermime;if(!!r&&!!a&&!!l){return t.invoke({anchor:o,editor:r,kernel:a,rendermime:l})}}})}};const S={id:"@jupyterlab/tooltip-extension:notebooks",description:"Adds the tooltip capability to notebooks.",autoStart:true,optional:[g.ITranslator],requires:[p.ITooltipManager,d.INotebookTracker],activate:(e,t,n,i)=>{const s=(i!==null&&i!==void 0?i:g.nullTranslator).load("jupyterlab");e.commands.addCommand(w.launchNotebook,{label:s.__("Open the tooltip"),execute:()=>{var e,i;const s=n.currentWidget;if(!s){return}const o=s.content;const r=(e=o.activeCell)===null||e===void 0?void 0:e.editor;const a=(i=s.sessionContext.session)===null||i===void 0?void 0:i.kernel;const l=o.rendermime;if(!!r&&!!a&&!!l){return t.invoke({anchor:o,editor:r,kernel:a,rendermime:l})}}})}};const k={id:"@jupyterlab/tooltip-extension:files",description:"Adds the tooltip capability to file editors.",autoStart:true,optional:[g.ITranslator],requires:[p.ITooltipManager,a.IEditorTracker,h.IRenderMimeRegistry],activate:(e,t,n,i,s)=>{const o=(s!==null&&s!==void 0?s:g.nullTranslator).load("jupyterlab");const r={};const a=e.serviceManager.sessions;const l=(e,t)=>{n.forEach((e=>{const n=(0,v.find)(t,(t=>e.context.path===t.path));if(n){const t=r[e.id];if(t&&t.id===n.id){return}if(t){delete r[e.id];t.dispose()}const i=a.connectTo({model:n});r[e.id]=i}else{const t=r[e.id];if(t){t.dispose();delete r[e.id]}}}))};l(a,a.running());a.runningChanged.connect(l);n.widgetAdded.connect(((e,t)=>{t.disposed.connect((e=>{const t=r[e.id];if(t){t.dispose();delete r[e.id]}}))}));e.commands.addCommand(w.launchFile,{label:o.__("Open the tooltip"),execute:async()=>{const e=n.currentWidget;const s=e&&r[e.id]&&r[e.id].kernel;if(!s){return}const o=e.content;const a=o===null||o===void 0?void 0:o.editor;if(!!a&&!!s&&!!i){return t.invoke({anchor:o,editor:a,kernel:s,rendermime:i})}}})}};const j=[C,x,S,k];const I=j;var E;(function(e){let t=0;function n(e){const{detail:n,editor:i,kernel:s}=e;const r=i.model.sharedModel.getSource();const a=i.getCursorPosition();const l=o.Text.jsIndexToCharIndex(i.getOffsetAt(a),r);if(!r||!s){return Promise.reject(void 0)}const d={code:r,cursor_pos:l,detail_level:n||0};const c=++t;return s.requestInspect(d).then((e=>{const n=e.content;if(c!==t){return Promise.reject(void 0)}if(n.status!=="ok"||!n.found){return Promise.reject(void 0)}return Promise.resolve(n.data)}))}e.fetch=n})(E||(E={}))},95527:(e,t,n)=>{"use strict";var i=n(10395);var s=n(17325);var o=n(5893);var r=n(3579);var a=n(50286);var l=n(77748);var d=n(28006);var c=n(40662);var h=n(85072);var u=n.n(h);var p=n(97825);var m=n.n(p);var g=n(77659);var f=n.n(g);var v=n(55056);var _=n.n(v);var b=n(10540);var y=n.n(b);var w=n(41113);var C=n.n(w);var x=n(69231);var S={};S.styleTagTransform=C();S.setAttributes=_();S.insert=f().bind(null,"head");S.domAPI=m();S.insertStyleElement=y();var k=u()(x.A,S);const j=x.A&&x.A.locals?x.A.locals:undefined},22087:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ITooltipManager:()=>s,Tooltip:()=>m});var i=n(5592);const s=new i.Token("@jupyterlab/tooltip:ITooltipManager","A service for the tooltip manager for the application. Use this to allow your extension to invoke a tooltip.");var o=n(26331);var r=n(44539);var a=n(1143);const l="jp-Tooltip";const d="jp-Tooltip-content";const c="jp-mod-tooltip";const h=20;const u=250;const p=true;class m extends a.Widget{constructor(e){super();this._content=null;this.addClass("jp-ThemedContainer");const t=this.layout=new a.PanelLayout;const n=new r.MimeModel({data:e.bundle});this.anchor=e.anchor;this.addClass(l);this.hide();this._editor=e.editor;this._position=e.position;this._rendermime=e.rendermime;const i=this._rendermime.preferredMimeType(e.bundle,"any");if(!i){return}this._content=this._rendermime.createRenderer(i);this._content.renderModel(n).then((()=>this._setGeometry())).catch((e=>console.error("tooltip rendering failed",e)));this._content.addClass(d);t.addWidget(this._content)}dispose(){if(this._content){this._content.dispose();this._content=null}super.dispose()}handleEvent(e){if(this.isHidden||this.isDisposed){return}const{node:t}=this;const n=e.target;switch(e.type){case"keydown":if(t.contains(n)){return}this.dispose();break;case"mousedown":if(t.contains(n)){this.activate();return}this.dispose();break;case"scroll":this._evtScroll(e);break;default:break}}onActivateRequest(e){this.node.tabIndex=0;this.node.focus()}onAfterAttach(e){document.body.classList.add(c);document.addEventListener("keydown",this,p);document.addEventListener("mousedown",this,p);this.anchor.node.addEventListener("scroll",this,p);this.update()}onBeforeDetach(e){document.body.classList.remove(c);document.removeEventListener("keydown",this,p);document.removeEventListener("mousedown",this,p);this.anchor.node.removeEventListener("scroll",this,p)}onUpdateRequest(e){if(this.isHidden){this.show()}this._setGeometry();super.onUpdateRequest(e)}_evtScroll(e){if(this.node.contains(e.target)){return}this.update()}_getTokenPosition(){const e=this._editor;const t=e.getCursorPosition();const n=e.getOffsetAt(t);const i=e.getLine(t.line);if(!i){return}const s=i.substring(0,n).split(/\W+/);const o=s[s.length-1];const r=o?n-o.length:n;return e.getPositionAt(r)}_setGeometry(){const e=this._position?this._position:this._getTokenPosition();if(!e){return}const t=this._editor;const n=t.getCoordinateForPosition(e);if(!n){return}const i=window.getComputedStyle(this.node);const s=parseInt(i.paddingLeft,10)||0;const r=t.host.closest(".jp-MainAreaWidget > .lm-Widget")||t.host;o.HoverBox.setGeometry({anchor:n,host:r,maxHeight:u,minHeight:h,node:this.node,offset:{horizontal:-1*s},privilege:"below",outOfViewDisplay:{top:"stick-inside",bottom:"stick-inside"},style:i})}}},30963:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>_});var i=n(94307);var s=n.n(i);var o=n(14366);var r=n.n(o);var a=n(23899);var l=n.n(a);var d=n(84739);var c=n.n(d);var h=n(30619);var u=n.n(h);const p="@jupyterlab/translation-extension:plugin";const m={id:"@jupyterlab/translation-extension:translator-connector",description:"Provides the application translation connector.",autoStart:true,requires:[i.JupyterFrontEnd.IPaths],provides:h.ITranslatorConnector,activate:(e,t)=>{const n=t.urls.translations;const i=e.serviceManager.serverSettings;return new h.TranslatorConnector(n,i)}};const g={id:"@jupyterlab/translation-extension:translator",description:"Provides the application translation object.",autoStart:true,requires:[i.JupyterFrontEnd.IPaths,d.ISettingRegistry],optional:[i.ILabShell,h.ITranslatorConnector],provides:h.ITranslator,activate:async(e,t,n,i,s)=>{const r=await n.load(p);const a=r.get("locale").composite;let l=r.get("stringsPrefix").composite;const d=r.get("displayStringsPrefix").composite;l=d?l:"";const c=e.serviceManager.serverSettings;const u=new h.TranslationManager(t.urls.translations,l,c,s!==null&&s!==void 0?s:undefined);await u.fetch(a);document.documentElement.lang=u.languageCode;if(i){i.translator=u}o.Dialog.translator=u;return u}};const f={id:p,description:"Adds translation commands and settings.",requires:[d.ISettingRegistry,h.ITranslator,h.ITranslatorConnector],optional:[a.IMainMenu,o.ICommandPalette],autoStart:true,activate:(e,t,n,i,s,r)=>{var a;const l=n.load("jupyterlab");const{commands:d}=e;const c=s?(a=s.settingsMenu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-settings-language"})))===null||a===void 0?void 0:a.submenu:null;i.fetch().then((e=>{const i=n.languageCode.replace("-","_");for(const n in e.data){const s=e.data[n];const a=s.displayName;const h=s.nativeName;const u=i===n;const m=u?`${a}`:`${a} - ${h}`;const g=`jupyterlab-translation:${n}`;d.addCommand(g,{label:m,caption:l.__("Change interface language to %1",m),isEnabled:()=>!u,isToggled:()=>u,execute:async()=>{const e=await(0,o.showDialog)({title:l.__("Change interface language?"),body:l.__("After changing the interface language to %1, you will need to reload JupyterLab to see the changes.",m),buttons:[o.Dialog.cancelButton(),o.Dialog.okButton({label:l.__("Change and reload")})]});if(e.button.accept){try{await t.set(p,"locale",n);window.location.reload()}catch(i){console.error(`Failed to update language locale to ${n}`,i)}}}});if(c){c.addItem({command:g,args:{}})}if(r){r.addItem({category:l.__("Display Languages"),command:g})}}})).catch((e=>{console.error(`Available locales errored!\n${e}`)}))}};const v=[m,g,f];const _=v},50277:(e,t,n)=>{"use strict";var i=n(97913);var s=n(3579);var o=n(67996)},6401:(e,t,n)=>{"use strict";n.r(t);n.d(t,{DEFAULT_LANGUAGE_CODE:()=>d,Gettext:()=>m,ITranslator:()=>u,ITranslatorConnector:()=>c,NullTranslator:()=>g,TranslationManager:()=>_,TranslatorConnector:()=>h,nullTranslator:()=>v,requestTranslationsAPI:()=>l});var i=n(94931);var s=n(5592);var o=n(30397);var r=n(28548);const a="api/translations";async function l(e="",t="",n={},i=undefined){const s=i!==null&&i!==void 0?i:r.ServerConnection.makeSettings();e=e||`${s.appUrl}/${a}`;const l=o.URLExt.join(s.baseUrl,e);const d=o.URLExt.join(l,t);if(!d.startsWith(l)){throw new Error("Can only be used for translations requests")}let c;try{c=await r.ServerConnection.makeRequest(d,n,s)}catch(u){throw new r.ServerConnection.NetworkError(u)}let h=await c.text();if(h.length>0){try{h=JSON.parse(h)}catch(u){console.error("Not a JSON response body.",c)}}if(!c.ok){throw new r.ServerConnection.ResponseError(c,h.message||h)}return h}const d="en";const c=new s.Token("@jupyterlab/translation:ITranslatorConnector","A service to connect to the server translation endpoint.");class h extends i.DataConnector{constructor(e="",t){super();this._translationsUrl=e;this._serverSettings=t}async fetch(e){var t;return l(this._translationsUrl,(t=e===null||e===void 0?void 0:e.language)!==null&&t!==void 0?t:"",{},this._serverSettings)}}const u=new s.Token("@jupyterlab/translation:ITranslator","A service to translate strings.");function p(e){return e.replace("-","_")}class m{constructor(e){e=e||{};this._defaults={domain:"messages",locale:document.documentElement.getAttribute("lang")||d,pluralFunc:function(e){return{nplurals:2,plural:e!=1?1:0}},contextDelimiter:String.fromCharCode(4),stringsPrefix:""};this._locale=(e.locale||this._defaults.locale).replace("_","-");this._domain=p(e.domain||this._defaults.domain);this._contextDelimiter=e.contextDelimiter||this._defaults.contextDelimiter;this._stringsPrefix=e.stringsPrefix||this._defaults.stringsPrefix;this._pluralFuncs={};this._dictionary={};this._pluralForms={};if(e.messages){this._dictionary[this._domain]={};this._dictionary[this._domain][this._locale]=e.messages}if(e.pluralForms){this._pluralForms[this._locale]=e.pluralForms}}setContextDelimiter(e){this._contextDelimiter=e}getContextDelimiter(){return this._contextDelimiter}setLocale(e){this._locale=e.replace("_","-")}getLocale(){return this._locale}setDomain(e){this._domain=p(e)}getDomain(){return this._domain}setStringsPrefix(e){this._stringsPrefix=e}getStringsPrefix(){return this._stringsPrefix}static strfmt(e,...t){return e.replace(/%%/g,"%% ").replace(/%(\d+)/g,(function(e,n){return t[n-1]})).replace(/%% /g,"%")}loadJSON(e,t){if(!e[""]||!e[""]["language"]||!e[""]["pluralForms"]){throw new Error(`Wrong jsonData, it must have an empty key ("") with "language" and "pluralForms" information: ${e}`)}t=p(t);let n=e[""];let i=JSON.parse(JSON.stringify(e));delete i[""];this.setMessages(t||this._defaults.domain,n["language"],i,n["pluralForms"])}__(e,...t){return this.gettext(e,...t)}_n(e,t,n,...i){return this.ngettext(e,t,n,...i)}_p(e,t,...n){return this.pgettext(e,t,...n)}_np(e,t,n,i,...s){return this.npgettext(e,t,n,i,...s)}gettext(e,...t){return this.dcnpgettext("","",e,"",0,...t)}ngettext(e,t,n,...i){return this.dcnpgettext("","",e,t,n,...i)}pgettext(e,t,...n){return this.dcnpgettext("",e,t,"",0,...n)}npgettext(e,t,n,i,...s){return this.dcnpgettext("",e,t,n,i,...s)}dcnpgettext(e,t,n,i,s,...o){e=p(e)||this._domain;let r;let a=t?t+this._contextDelimiter+n:n;let l={pluralForm:false};let d=false;let c=this._locale;let h=this.expandLocale(this._locale);for(let p in h){c=h[p];d=this._dictionary[e]&&this._dictionary[e][c]&&this._dictionary[e][c][a];if(i){d=d&&this._dictionary[e][c][a].length>1}else{d=d&&this._dictionary[e][c][a].length==1}if(d){l.locale=c;break}}if(!d){r=[n];l.pluralFunc=this._defaults.pluralFunc}else{r=this._dictionary[e][c][a]}if(!i){return this.t(r,s,l,...o)}l.pluralForm=true;let u=d?r:[n,i];return this.t(u,s,l,...o)}expandLocale(e){let t=[e];let n=e.lastIndexOf("-");while(n>0){e=e.slice(0,n);t.push(e);n=e.lastIndexOf("-")}return t}getPluralFunc(e){let t=new RegExp("^\\s*nplurals\\s*=\\s*[0-9]+\\s*;\\s*plural\\s*=\\s*(?:\\s|[-\\?\\|&=!<>+*/%:;n0-9_()])+");if(!t.test(e))throw new Error(m.strfmt('The plural form "%1" is not valid',e));return new Function("n","let plural, nplurals; "+e+" return { nplurals: nplurals, plural: (plural === true ? 1 : (plural ? plural : 0)) };")}removeContext(e){if(e.indexOf(this._contextDelimiter)!==-1){let t=e.split(this._contextDelimiter);return t[1]}return e}t(e,t,n,...i){if(!n.pluralForm)return this._stringsPrefix+m.strfmt(this.removeContext(e[0]),...i);let s;if(n.pluralFunc){s=n.pluralFunc(t)}else if(!this._pluralFuncs[n.locale||""]){this._pluralFuncs[n.locale||""]=this.getPluralFunc(this._pluralForms[n.locale||""]);s=this._pluralFuncs[n.locale||""](t)}else{s=this._pluralFuncs[n.locale||""](t)}if("undefined"===typeof!s.plural||s.plural>s.nplurals||e.length<=s.plural)s.plural=0;return this._stringsPrefix+m.strfmt(this.removeContext(e[s.plural]),...[t].concat(i))}setMessages(e,t,n,i){e=p(e);if(i)this._pluralForms[t]=i;if(!this._dictionary[e])this._dictionary[e]={};this._dictionary[e][t]=n}}class g{constructor(e){this.languageCode=d;this._languageBundle=e}load(e){return this._languageBundle}}class f{__(e,...t){return this.gettext(e,...t)}_n(e,t,n,...i){return this.ngettext(e,t,n,...i)}_p(e,t,...n){return this.pgettext(e,t,...n)}_np(e,t,n,i,...s){return this.npgettext(e,t,n,i,...s)}gettext(e,...t){return m.strfmt(e,...t)}ngettext(e,t,n,...i){return m.strfmt(n==1?e:t,...[n].concat(i))}pgettext(e,t,...n){return m.strfmt(t,...n)}npgettext(e,t,n,i,...s){return this.ngettext(t,n,i,...s)}dcnpgettext(e,t,n,i,s,...o){return this.ngettext(n,i,s,...o)}}const v=new g(new f);class _{constructor(e="",t,n,i){this._domainData={};this._translationBundles={};this._connector=i!==null&&i!==void 0?i:new h(e,n);this._stringsPrefix=t||"";this._englishBundle=new m({stringsPrefix:this._stringsPrefix});this._currentLocale=d}get languageCode(){return this._currentLocale}async fetch(e){var t,n,i,s;this._languageData=await this._connector.fetch({language:e});let o;if(this._languageData&&e==="default"){try{for(const e of Object.values((t=this._languageData.data)!==null&&t!==void 0?t:{})){o=e[""]["language"];break}}catch(a){}}this._currentLocale=(e!=="default"?e:o!==null&&o!==void 0?o:d).replace("_","-");this._domainData=(i=(n=this._languageData)===null||n===void 0?void 0:n.data)!==null&&i!==void 0?i:{};const r=(s=this._languageData)===null||s===void 0?void 0:s.message;if(r&&this._currentLocale!==d){console.warn(r)}}load(e){if(this._domainData){if(this._currentLocale==d){return this._englishBundle}else{e=p(e);if(!(e in this._translationBundles)){let t=new m({domain:e,locale:this._currentLocale,stringsPrefix:this._stringsPrefix});if(e in this._domainData){const n=this._domainData[e][""];const i={...this._domainData[e],"":{...n,pluralForms:n.plural_forms}};t.loadJSON(i,e)}this._translationBundles[e]=t}return this._translationBundles[e]}}else{return this._englishBundle}}}},85205:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>a});var i=n(26331);var s=n.n(i);const o={id:"@jupyterlab/ui-components-extension:labicon-manager",description:"Provides the icon manager.",provides:i.ILabIconManager,autoStart:true,activate:e=>Object.create(null)};const r={id:"@jupyterlab/ui-components-extension:form-renderer-registry",description:"Provides the settings form renderer registry.",provides:i.IFormRendererRegistry,autoStart:true,activate:e=>{const t=new i.FormRendererRegistry;return t}};const a=[o,r]},77767:(e,t,n)=>{"use strict";var i=n(40662);var s=n(3579)},75634:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AddButton:()=>as,Button:()=>u,Collapser:()=>es,CommandPaletteSvg:()=>wo,CommandToolbarButton:()=>Ks,CommandToolbarButtonComponent:()=>qs,ContextMenuSvg:()=>xo,DEFAULT_STYLE_CLASS:()=>ms,DEFAULT_UI_OPTIONS:()=>ss,DockPanelSvg:()=>jo,DropButton:()=>rs,FilenameSearcher:()=>no,FilterBox:()=>eo,FormComponent:()=>ps,FormRendererRegistry:()=>Po,HTMLSelect:()=>fs,HTML_SELECT_CLASS:()=>gs,HoverBox:()=>Mo,IFormRendererRegistry:()=>Do,IFrame:()=>vs,ILabIconManager:()=>Ao,IRankedMenu:()=>Cs,InputGroup:()=>bs,LabIcon:()=>C,MenuSvg:()=>So,MoveButton:()=>os,PanelWithToolbar:()=>Xs,RankedMenu:()=>xs,ReactWidget:()=>Ds,ReactiveToolbar:()=>Hs,SidePanel:()=>oo,Spinner:()=>ro,Styling:()=>ao,Switch:()=>co,TABLE_CLASS:()=>ho,TabBarSvg:()=>ko,TabPanelSvg:()=>Io,Table:()=>uo,Toolbar:()=>zs,ToolbarButton:()=>Us,ToolbarButtonComponent:()=>Ws,UseSignal:()=>Ps,VDomModel:()=>Ls,VDomRenderer:()=>As,WindowedLayout:()=>_o,WindowedList:()=>vo,WindowedListModel:()=>fo,addAboveIcon:()=>Nt,addBelowIcon:()=>Ot,addCommandToolbarButtonClass:()=>$s,addIcon:()=>Bt,addToolbarButtonClass:()=>Vs,badIcon:()=>S,bellIcon:()=>Ft,blankIcon:()=>k,bugDotIcon:()=>zt,bugIcon:()=>Ht,buildIcon:()=>Wt,caretDownEmptyIcon:()=>Vt,caretDownEmptyThinIcon:()=>Ut,caretDownIcon:()=>qt,caretLeftIcon:()=>$t,caretRightIcon:()=>Kt,caretUpEmptyThinIcon:()=>Jt,caretUpIcon:()=>Gt,caseSensitiveIcon:()=>Yt,checkIcon:()=>Xt,circleEmptyIcon:()=>Qt,circleIcon:()=>Zt,classes:()=>a,classesDedupe:()=>l,cleaningIcon:()=>en,clearIcon:()=>tn,closeAllIcon:()=>nn,closeIcon:()=>sn,codeCheckIcon:()=>on,codeIcon:()=>rn,collapseAllIcon:()=>an,collapseIcon:()=>ln,consoleIcon:()=>dn,copyIcon:()=>cn,copyrightIcon:()=>hn,cutIcon:()=>un,deleteIcon:()=>pn,dockBottomIcon:()=>mn,dockLeftIcon:()=>gn,dockRightIcon:()=>fn,dockTopIcon:()=>vn,dotsIcon:()=>_n,downloadIcon:()=>bn,duplicateIcon:()=>yn,editIcon:()=>wn,ellipsesIcon:()=>Cn,errorIcon:()=>xn,exceptionsIcon:()=>Sn,expandAllIcon:()=>kn,expandIcon:()=>jn,extensionIcon:()=>In,fastForwardIcon:()=>En,fileIcon:()=>Tn,fileUploadIcon:()=>Mn,filterDotIcon:()=>Dn,filterIcon:()=>An,filterListIcon:()=>Pn,folderFavoriteIcon:()=>Ln,folderIcon:()=>Rn,fuzzySearch:()=>Qs,getReactAttrs:()=>d,getTreeItemElement:()=>h,historyIcon:()=>Nn,homeIcon:()=>On,html5Icon:()=>Bn,imageIcon:()=>Fn,infoIcon:()=>zn,inspectorIcon:()=>Hn,jsonIcon:()=>Wn,juliaIcon:()=>Vn,jupyterFaviconIcon:()=>Un,jupyterIcon:()=>qn,jupyterlabWordmarkIcon:()=>$n,kernelIcon:()=>Kn,keyboardIcon:()=>Jn,launchIcon:()=>Gn,launcherIcon:()=>Yn,lineFormIcon:()=>Xn,linkIcon:()=>Qn,listIcon:()=>Zn,lockIcon:()=>ei,markdownIcon:()=>ti,mermaidIcon:()=>ni,moveDownIcon:()=>ii,moveUpIcon:()=>si,newFolderIcon:()=>oi,notTrustedIcon:()=>ri,notebookIcon:()=>ai,numberingIcon:()=>li,offlineBoltIcon:()=>di,openKernelSourceIcon:()=>ci,paletteIcon:()=>hi,pasteIcon:()=>ui,pauseIcon:()=>pi,pdfIcon:()=>mi,pythonIcon:()=>gi,rKernelIcon:()=>fi,reactIcon:()=>vi,redoIcon:()=>_i,refreshIcon:()=>bi,regexIcon:()=>yi,runIcon:()=>wi,runningIcon:()=>Ci,saveIcon:()=>xi,searchIcon:()=>Si,settingsIcon:()=>ki,shareIcon:()=>ji,spreadsheetIcon:()=>Ii,stepIntoIcon:()=>Ei,stepOutIcon:()=>Ti,stepOverIcon:()=>Mi,stopIcon:()=>Di,tabIcon:()=>Ai,tableRowsIcon:()=>Pi,tagIcon:()=>Li,terminalIcon:()=>Ri,textEditorIcon:()=>Ni,tocIcon:()=>Oi,treeViewIcon:()=>Bi,trustedIcon:()=>Fi,undoIcon:()=>zi,updateFilterFunction:()=>Zs,userIcon:()=>Hi,usersIcon:()=>Wi,variableIcon:()=>Vi,vegaIcon:()=>Ui,viewBreakpointIcon:()=>qi,wordIcon:()=>$i,yamlIcon:()=>Ki});var i=n(44914);var s=n.n(i);var o=n(30397);function r(e){return e.map((e=>e&&typeof e==="object"?Object.keys(e).map((t=>!!e[t]&&t)):typeof e==="string"?e.split(/\s+/):[])).reduce(((e,t)=>e.concat(t)),[]).filter((e=>!!e))}function a(...e){return r(e).join(" ")}function l(...e){return[...new Set(r(e))].join(" ")}function d(e,{ignore:t=[]}={}){return e.getAttributeNames().reduce(((n,i)=>{if(i==="style"||t.includes(i)){void 0}else if(i.startsWith("data")||i.startsWith("aria")){n[i]=e.getAttribute(i)}else{n[o.Text.camelCase(i)]=e.getAttribute(i)}return n}),{})}function c(e){return e instanceof HTMLElement&&e.getAttribute("role")==="treeitem"}function h(e){let t=e;while(t&&!c(t)){t=t.parentElement}return c(t)?t:null}function u(e){const{minimal:t,small:n,children:i,...o}=e;return s().createElement("button",{...o,className:a(e.className,t?"jp-mod-minimal":"",n?"jp-mod-small":"","jp-Button")},i)}var p=n(2336);var m=n(1143);var g=n(5592);var f=n(5338);const v='\n \n\n';const _='\n \n\n';const b='\n \n\n';var y=n(21326);var w;(function(e){const t={breadCrumb:{container:{$nest:{"&:first-child svg":{bottom:"1px",marginLeft:"0px",position:"relative"},"&:hover":{backgroundColor:"var(--jp-layout-color2)"},[".jp-mod-dropTarget&"]:{backgroundColor:"var(--jp-brand-color2)",opacity:.7}}},element:{borderRadius:"var(--jp-border-radius)",cursor:"pointer",margin:"0px 2px",padding:"0px 2px",height:"16px",width:"16px",verticalAlign:"middle"}},commandPaletteHeader:{container:{height:"14px",margin:"0 14px 0 auto"},element:{height:"14px",width:"14px"},options:{elementPosition:"center"}},commandPaletteItem:{element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},launcherCard:{container:{height:"52px",width:"52px"},element:{height:"52px",width:"52px"},options:{elementPosition:"center"}},launcherSection:{container:{boxSizing:"border-box",marginRight:"12px",height:"32px",width:"32px"},element:{height:"32px",width:"32px"},options:{elementPosition:"center"}},listing:{container:{flex:"0 0 20px",marginRight:"4px",position:"relative"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},listingHeaderItem:{container:{display:"inline",height:"16px",width:"16px"},element:{height:"auto",margin:"-2px 0 0 0",width:"20px"},options:{elementPosition:"center"}},mainAreaTab:{container:{$nest:{".lm-DockPanel-tabBar &":{marginRight:"4px"}}},element:{$nest:{".lm-DockPanel-tabBar &":{height:"14px",width:"14px"}}},options:{elementPosition:"center"}},menuItem:{container:{display:"inline-block",verticalAlign:"middle"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},runningItem:{container:{margin:"0px 4px 0px 4px"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},select:{container:{pointerEvents:"none"},element:{position:"absolute",height:"auto",width:"16px"}},settingsEditor:{container:{display:"flex",flex:"0 0 20px",margin:"0 3px 0 0",position:"relative",height:"20px",width:"20px"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},sideBar:{element:{height:"auto",width:"20px"},options:{elementPosition:"center"}},splash:{container:{animation:"0.3s fade-in linear forwards",height:"100%",width:"100%",zIndex:1},element:{width:"100px"},options:{elementPosition:"center"}},statusBar:{element:{left:"0px",top:"0px",height:"18px",width:"20px",position:"relative"}},toolbarButton:{container:{display:"inline-block",verticalAlign:"middle"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}}};function n(e){return{container:{alignItems:"center",display:"flex"},element:{display:"block",...e}}}const i={center:n({margin:"0 auto",width:"100%"}),top:n({margin:"0 0 auto 0"}),right:n({margin:"0 0 0 auto"}),bottom:n({margin:"auto 0 0 0"}),left:n({margin:"0 auto 0 0"}),"top right":n({margin:"0 0 auto auto"}),"bottom right":n({margin:"auto 0 0 auto"}),"bottom left":n({margin:"auto auto 0 0"}),"top left":n({margin:"0 auto 0 auto"})};function s(e){return{element:{height:e,width:e}}}const o={small:s("14px"),normal:s("16px"),large:s("20px"),xlarge:s("24px")};function r(e){return{container:Object.assign({},...e.map((e=>e.container))),element:Object.assign({},...e.map((e=>e.element)))}}function a(e){if(!e){return[]}if(!Array.isArray(e)){e=[e]}return e.map((e=>typeof e==="string"?t[e]:e))}function l(e){const t=Object.assign({},...e.map((e=>e.options)));if(t.elementPosition){e.unshift(i[t.elementPosition])}if(t.elementSize){e.unshift(o[t.elementSize])}return r(e)}function d(e){var t;return(0,y.iF)({...e.container,$nest:{...(t=e.container)===null||t===void 0?void 0:t.$nest,["svg"]:e.element}})}const c=new Map;function h(e){if(!e||Object.keys(e).length===0){return""}let{elementPosition:t,elementSize:n,stylesheet:i,...s}=e;const o={...t&&{elementPosition:t},...n&&{elementSize:n}};const r=typeof i==="string"&&Object.keys(s).length===0;const h=r?[i,t,n].join(","):"";if(r&&c.has(h)){return c.get(h)}const u=a(i);u.push({element:s,options:o});const p=d(l(u));if(r){c.set(h,p)}return p}e.styleClass=h})(w||(w={}));class C{static remove(e){while(e.firstChild){e.firstChild.remove()}e.className="";return e}static resolve({icon:e}){if(e instanceof C){return e}if(typeof e==="string"){const t=C._instances.get(e);if(t){return t}if(C._debug){console.warn(`Lookup failed for icon, creating loading icon. icon: ${e}`)}return new C({name:e,svgstr:b,_loading:true})}return new C(e)}static resolveElement({icon:e,iconClass:t,fallback:n,...i}){if(!x.isResolvable(e)){if(!t&&n){return n.element(i)}i.className=a(t,i.className);return x.blankElement(i)}return C.resolve({icon:e}).element(i)}static resolveReact({icon:e,iconClass:t,fallback:n,...i}){if(!x.isResolvable(e)){if(!t&&n){return s().createElement(n.react,{...i})}i.className=a(t,i.className);return s().createElement(x.blankReact,{...i})}const o=C.resolve({icon:e});return s().createElement(o.react,{...i})}static resolveSvg({name:e,svgstr:t}){const n=(new DOMParser).parseFromString(x.svgstrShim(t),"image/svg+xml");const i=n.querySelector("parsererror");if(i){const n=`SVG HTML was malformed for LabIcon instance.\nname: ${e}, svgstr: ${t}`;if(C._debug){console.error(n);return i}else{console.warn(n);return null}}else{return n.documentElement}}static toggleDebug(e){C._debug=e!==null&&e!==void 0?e:!C._debug}constructor({name:e,svgstr:t,render:n,unrender:i,_loading:s=false}){this._props={};this._svgReplaced=new p.Signal(this);this._svgElement=undefined;this._svgInnerHTML=undefined;this._svgReactAttrs=undefined;if(!(e&&t)){console.error(`When defining a new LabIcon, name and svgstr must both be non-empty strings. name: ${e}, svgstr: ${t}`);return S}this._loading=s;if(C._instances.has(e)){const n=C._instances.get(e);if(this._loading){n.svgstr=t;this._loading=false;return n}else{if(C._debug){console.warn(`Redefining previously loaded icon svgstr. name: ${e}, svgstrOld: ${n.svgstr}, svgstr: ${t}`)}n.svgstr=t;return n}}this.name=e;this.react=this._initReact(e);this.svgstr=t;this._initRender({render:n,unrender:i});C._instances.set(this.name,this)}bindprops(e){const t=Object.create(this);t._props=e;t.react=t._initReact(t.name+"_bind");return t}element(e={}){var t;let{className:n,container:i,label:s,title:o,tag:r="div",...a}={...this._props,...e};const l=i===null||i===void 0?void 0:i.firstChild;if(((t=l===null||l===void 0?void 0:l.dataset)===null||t===void 0?void 0:t.iconId)===this._uuid){return l}if(!this.svgElement){return document.createElement("div")}if(i){while(i.firstChild){i.firstChild.remove()}}else if(r){i=document.createElement(r)}const d=this.svgElement.cloneNode(true);if(!i){if(s){console.warn()}return d}if(s!=null){i.textContent=s}x.initContainer({container:i,className:n,styleProps:a,title:o});i.appendChild(d);return i}render(e,t){var n;let i=(n=t===null||t===void 0?void 0:t.children)===null||n===void 0?void 0:n[0];if(typeof i!=="string"){i=undefined}this.element({container:e,label:i,...t===null||t===void 0?void 0:t.props})}get svgElement(){if(this._svgElement===undefined){this._svgElement=this._initSvg({uuid:this._uuid})}return this._svgElement}get svgInnerHTML(){if(this._svgInnerHTML===undefined){if(this.svgElement===null){this._svgInnerHTML=null}else{this._svgInnerHTML=this.svgElement.innerHTML}}return this._svgInnerHTML}get svgReactAttrs(){if(this._svgReactAttrs===undefined){if(this.svgElement===null){this._svgReactAttrs=null}else{this._svgReactAttrs=d(this.svgElement,{ignore:["data-icon-id"]})}}return this._svgReactAttrs}get svgstr(){return this._svgstr}set svgstr(e){this._svgstr=e;const t=g.UUID.uuid4();const n=this._uuid;this._uuid=t;this._svgElement=undefined;this._svgInnerHTML=undefined;this._svgReactAttrs=undefined;document.querySelectorAll(`[data-icon-id="${n}"]`).forEach((e=>{if(this.svgElement){e.replaceWith(this.svgElement.cloneNode(true))}}));this._svgReplaced.emit()}_initReact(e){const t=s().forwardRef(((e={},t)=>{const{className:n,container:i,label:o,title:r,slot:l,tag:d="div",...c}={...this._props,...e};const[,h]=s().useState(this._uuid);s().useEffect((()=>{const e=()=>{h(this._uuid)};this._svgReplaced.connect(e);return()=>{this._svgReplaced.disconnect(e)}}));const u=d!==null&&d!==void 0?d:s().Fragment;if(!(this.svgInnerHTML&&this.svgReactAttrs)){return s().createElement(s().Fragment,null)}const p={...this.svgReactAttrs};if(!d){Object.assign(p,{className:n||c?a(n,w.styleClass(c)):undefined,title:r,slot:l})}const m=s().createElement("svg",{...p,...this.svgReactAttrs,dangerouslySetInnerHTML:{__html:this.svgInnerHTML},ref:t});if(i){x.initContainer({container:i,className:n,styleProps:c,title:r});return s().createElement(s().Fragment,null,m,o)}else{let e={};if(u!==s().Fragment){e={className:n||c?a(n,w.styleClass(c)):undefined,title:r,slot:l}}return s().createElement(u,{...e},m,o)}}));t.displayName=`LabIcon_${e}`;return t}_initRender({render:e,unrender:t}){if(e){this.render=e;if(t){this.unrender=t}}else if(t){console.warn("In _initRender, ignoring unrender arg since render is undefined")}}_initSvg({title:e,uuid:t}={}){const n=C.resolveSvg(this);if(!n){return n}if(n.tagName!=="parsererror"){n.dataset.icon=this.name;if(t){n.dataset.iconId=t}if(e){x.setTitleSvg(n,e)}else{n.setAttribute("aria-hidden","true")}}return n}}C._debug=false;C._instances=new Map;var x;(function(e){function t({className:t="",container:n,label:i,title:s,tag:o="div",slot:r,...a}){if((n===null||n===void 0?void 0:n.className)===t){return n}if(n){while(n.firstChild){n.firstChild.remove()}}else{n=document.createElement(o!==null&&o!==void 0?o:"div")}if(i!=null){n.textContent=i}e.initContainer({container:n,className:t,styleProps:a,title:s});return n}e.blankElement=t;e.blankReact=s().forwardRef((({className:e="",container:t,label:i,title:o,tag:r="div",...l},d)=>{const c=r!==null&&r!==void 0?r:"div";if(t){n({container:t,className:e,styleProps:l,title:o});return s().createElement(s().Fragment,null)}else{return s().createElement(c,{className:a(e,w.styleClass(l))},d&&k.react({ref:d}),i)}}));e.blankReact.displayName="BlankReact";function n({container:e,className:t,styleProps:n,title:i}){if(i!=null){e.title=i}const s=w.styleClass(n);if(t!=null){const n=a(t,s);e.className=n;return n}else if(s){e.classList.add(s);return s}else{return""}}e.initContainer=n;function i(e){return!!(e&&(typeof e==="string"||e.name&&e.svgstr))}e.isResolvable=i;function o(e,t){const n=e.getElementsByTagName("title");if(n.length){n[0].textContent=t}else{const n=document.createElement("title");n.textContent=t;e.appendChild(n)}}e.setTitleSvg=o;function r(e,t=true){const[,n,i]=decodeURIComponent(e).replace(/>\s*\n\s*<").replace(/\s*\n\s*/g," ").match(t?/^(?:data:.*?(;base64)?,)?(.*)/:/(?:(base64).*)?({var t;const n=((t=e.translator)!==null&&t!==void 0?t:ts.nullTranslator).load("jupyterlab");let i;const o=()=>{if(e.direction==="up"){return!e.item.hasMoveUp}else{return!e.item.hasMoveDown}};if(e.buttonStyle==="icons"){const t={tag:"span",elementSize:"xlarge",elementPosition:"center"};i=e.direction==="up"?s().createElement(Gt.react,{...t}):s().createElement(qt.react,{...t})}else{i=e.direction==="up"?n.__("Move up"):n.__("Move down")}const r=e.direction==="up"?e.item.index-1:e.item.index+1;return s().createElement("button",{className:"jp-mod-styled jp-mod-reject jp-ArrayOperationsButton",onClick:e.item.onReorderClick(e.item.index,r),disabled:o()},i)};const rs=e=>{var t;const n=((t=e.translator)!==null&&t!==void 0?t:ts.nullTranslator).load("jupyterlab");let i;if(e.buttonStyle==="icons"){i=s().createElement(sn.react,{tag:"span",elementSize:"xlarge",elementPosition:"center"})}else{i=n.__("Remove")}return s().createElement("button",{className:"jp-mod-styled jp-mod-warn jp-ArrayOperationsButton",onClick:e.item.onDropIndexClick(e.item.index)},i)};const as=e=>{var t;const n=((t=e.translator)!==null&&t!==void 0?t:ts.nullTranslator).load("jupyterlab");let i;if(e.buttonStyle==="icons"){i=s().createElement(Bt.react,{tag:"span",elementSize:"xlarge",elementPosition:"center"})}else{i=n.__("Add")}return s().createElement("button",{className:"jp-mod-styled jp-mod-reject jp-ArrayOperationsButton",onClick:e.onAddClick},i)};function ls(e){const{component:t,name:n,buttonStyle:i,compact:s,showModifiedFromDefault:o,translator:r}=e;const a=s!==null&&s!==void 0?s:false;const l=i!==null&&i!==void 0?i:a?"icons":"text";const d=e=>t({...e,buttonStyle:l,compact:a,showModifiedFromDefault:o!==null&&o!==void 0?o:true,translator:r!==null&&r!==void 0?r:ts.nullTranslator});if(n){d.displayName=n}return d}function ds(e,t){const n=(0,is.getTemplate)("TitleFieldTemplate",e,t);const i=(0,is.getTemplate)("DescriptionFieldTemplate",e,t);return{TitleField:n,DescriptionField:i}}const cs=e=>ls({...e,name:"JupyterLabArrayTemplate",component:e=>{var t;const{schema:n,registry:i,uiSchema:o,required:r}=e;const a={schema:n,registry:i,uiSchema:o,required:r};const{TitleField:l,DescriptionField:d}=ds(i,o);return s().createElement("div",{className:e.className},e.compact?s().createElement("div",{className:"jp-FormGroup-compactTitle"},s().createElement("div",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem",id:`${e.idSchema.$id}__title`},e.title||""),s().createElement("div",{className:"jp-FormGroup-description",id:`${e.idSchema.$id}-description`},e.schema.description||"")):s().createElement(s().Fragment,null,e.title&&s().createElement(l,{...a,title:e.title,id:`${e.idSchema.$id}-title`}),s().createElement(d,{...a,id:`${e.idSchema.$id}-description`,description:(t=e.schema.description)!==null&&t!==void 0?t:""})),e.items.map((t=>s().createElement("div",{key:t.key,className:t.className},t.children,s().createElement("div",{className:"jp-ArrayOperations"},s().createElement(os,{buttonStyle:e.buttonStyle,translator:e.translator,item:t,direction:"up"}),s().createElement(os,{buttonStyle:e.buttonStyle,translator:e.translator,item:t,direction:"down"}),s().createElement(rs,{buttonStyle:e.buttonStyle,translator:e.translator,item:t}))))),e.canAdd&&s().createElement(as,{onAddClick:e.onAddClick,buttonStyle:e.buttonStyle,translator:e.translator}))}});const hs=e=>ls({...e,name:"JupyterLabObjectTemplate",component:e=>{var t;const{schema:n,registry:i,uiSchema:o,required:r}=e;const a={schema:n,registry:i,uiSchema:o,required:r};const{TitleField:l,DescriptionField:d}=ds(i,o);return s().createElement("fieldset",{id:e.idSchema.$id},e.compact?s().createElement("div",{className:"jp-FormGroup-compactTitle"},s().createElement("div",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem",id:`${e.idSchema.$id}__title`},e.title||""),s().createElement("div",{className:"jp-FormGroup-description",id:`${e.idSchema.$id}__description`},e.schema.description||"")):s().createElement(s().Fragment,null,(e.title||(e.uiSchema||g.JSONExt.emptyObject)["ui:title"])&&s().createElement(l,{...a,id:`${e.idSchema.$id}__title`,title:e.title||`${(e.uiSchema||g.JSONExt.emptyObject)["ui:title"]}`||""}),s().createElement(d,{...a,id:`${e.idSchema.$id}__description`,description:(t=e.schema.description)!==null&&t!==void 0?t:""})),e.properties.map((e=>e.content)),(0,is.canExpand)(e.schema,e.uiSchema,e.formData)&&s().createElement(as,{onAddClick:e.onAddClick(e.schema),buttonStyle:e.buttonStyle,translator:e.translator}))}});const us=e=>ls({...e,name:"JupyterLabFieldTemplate",component:e=>{var t;const n=((t=e.translator)!==null&&t!==void 0?t:ts.nullTranslator).load("jupyterlab");let i=false;let o;const{formData:r,schema:a,label:l,displayLabel:d,id:c,formContext:h,errors:u,rawErrors:p,children:m,onKeyChange:f,onDropPropertyClick:v}=e;const{defaultFormData:_}=h;const b=c.split("_");b.shift();const y=b.join(".");const w=y==="";const C=y===(e.uiSchema||g.JSONExt.emptyObject)["ui:field"];if(e.showModifiedFromDefault){o=b.reduce(((e,t)=>e===null||e===void 0?void 0:e[t]),_);i=!w&&r!==undefined&&o!==undefined&&!a.properties&&a.type!=="array"&&!g.JSONExt.deepEqual(r,o)}const x=!w&&a.type!="object"&&c!="jp-SettingsEditor-@jupyterlab/shortcuts-extension:shortcuts_shortcuts";const S=a.hasOwnProperty(is.ADDITIONAL_PROPERTY_FLAG);const k=!(a.type==="object"||a.type==="array");return s().createElement("div",{className:`form-group ${d||a.type==="boolean"?"small-field":""}`},!C&&((p===null||p===void 0?void 0:p.length)?s().createElement("div",{className:"jp-modifiedIndicator jp-errorIndicator"}):i&&s().createElement("div",{className:"jp-modifiedIndicator"})),s().createElement("div",{className:`jp-FormGroup-content ${e.compact?"jp-FormGroup-contentCompact":"jp-FormGroup-contentNormal"}`},k&&d&&!w&&l&&!S?e.compact?s().createElement("div",{className:"jp-FormGroup-compactTitle"},s().createElement("div",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},l),k&&a.description&&x&&s().createElement("div",{className:"jp-FormGroup-description"},a.description)):s().createElement("h3",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},l):s().createElement(s().Fragment,null),S&&s().createElement("input",{className:"jp-FormGroup-contentItem jp-mod-styled",type:"text",onBlur:e=>f(e.target.value),defaultValue:l}),s().createElement("div",{className:`${w?"jp-root":a.type==="object"?"jp-objectFieldWrapper":a.type==="array"?"jp-arrayFieldWrapper":"jp-inputFieldWrapper jp-FormGroup-contentItem"}`},m),S&&s().createElement("button",{className:"jp-FormGroup-contentItem jp-mod-styled jp-mod-warn jp-FormGroup-removeButton",onClick:v(l)},n.__("Remove")),!e.compact&&a.description&&x&&s().createElement("div",{className:"jp-FormGroup-description"},a.description),i&&o!==undefined&&a.type!=="object"&&s().createElement("div",{className:"jp-FormGroup-default"},n.__("Default: %1",o!==null?o.toLocaleString():"null")),s().createElement("div",{className:"validationErrors"},u)))}});function ps(e){const{buttonStyle:t,compact:n,showModifiedFromDefault:i,translator:o,formContext:r,...a}=e;const l={...a.uiSchema||g.JSONExt.emptyObject};l["ui:options"]={...ss,...l["ui:options"]};a.uiSchema=l;const{FieldTemplate:d,ArrayFieldTemplate:c,ObjectFieldTemplate:h}=e.templates||g.JSONExt.emptyObject;const u={buttonStyle:t,compact:n,showModifiedFromDefault:i,translator:o};const p=s().useMemo((()=>d!==null&&d!==void 0?d:us(u)),[d,t,n,i,o]);const m=s().useMemo((()=>c!==null&&c!==void 0?c:cs(u)),[c,t,n,i,o]);const f=s().useMemo((()=>h!==null&&h!==void 0?h:hs(u)),[h,t,n,i,o]);const v={FieldTemplate:p,ArrayFieldTemplate:m,ObjectFieldTemplate:f};return s().createElement(ns.Ay,{templates:v,formContext:r,...a})}const ms="jp-DefaultStyle";const gs="jp-HTMLSelect";class fs extends i.Component{render(){const{className:e,defaultStyle:t=true,disabled:n,elementRef:s,iconProps:o,icon:r=Vt,options:l=[],...d}=this.props;const c=a(gs,{[ms]:t},e);const h=e=>{e.stopPropagation()};const u=l.map((e=>{const t=typeof e==="object"?e:{value:e};return i.createElement("option",{...t,key:t.value},t.label||t.value)}));return i.createElement("div",{className:c},i.createElement("select",{onFocus:h,disabled:n,ref:s,...d,multiple:false},u,d.children),i.createElement(r.react,{tag:"span",stylesheet:"select",right:"4px",top:"8px",...o}))}}class vs extends m.Widget{constructor(e={}){super({node:_s.createNode()});this._sandbox=[];this.addClass("jp-IFrame");this.sandbox=e.sandbox||[];this.referrerPolicy=e.referrerPolicy||"no-referrer";this.loading=e.loading||"eager"}get referrerPolicy(){return this._referrerPolicy}set referrerPolicy(e){if(this._referrerPolicy===e){return}this._referrerPolicy=e;const t=this.node.querySelector("iframe");t.setAttribute("referrerpolicy",e)}get loading(){return this._loading}set loading(e){if(this._loading===e){return}this._loading=e;const t=this.node.querySelector("iframe");t.setAttribute("loading",e)}get sandbox(){return this._sandbox.slice()}set sandbox(e){this._sandbox=e.slice();const t=this.node.querySelector("iframe");const n=e.length?e.join(" "):"";t.setAttribute("sandbox",n)}get url(){return this.node.querySelector("iframe").getAttribute("src")||""}set url(e){this.node.querySelector("iframe").setAttribute("src",e)}}var _s;(function(e){function t(){const e=document.createElement("div");const t=document.createElement("iframe");t.setAttribute("sandbox","");t.style.height="100%";t.style.width="100%";e.appendChild(t);return e}e.createNode=t})(_s||(_s={}));function bs(e){const{className:t,inputRef:n,rightIcon:i,...o}=e;return s().createElement("div",{className:a("jp-InputGroup",t)},s().createElement("input",{ref:n,...o}),i&&s().createElement("span",{className:"jp-InputGroupAction"},typeof i==="string"?s().createElement(C.resolveReact,{icon:i,elementPosition:"center",tag:"span"}):s().createElement(i.react,{elementPosition:"center",tag:"span"})))}var ys=n(34236);var ws=n(90044);var Cs;(function(e){e.DEFAULT_RANK=100})(Cs||(Cs={}));class xs extends m.Menu{constructor(e){var t;super(e);this._ranks=[];this.addClass("jp-ThemedContainer");this._rank=e.rank;this._includeSeparators=(t=e.includeSeparators)!==null&&t!==void 0?t:true}get rank(){return this._rank}addGroup(e,t){if(e.length===0){return new ws.DisposableDelegate((()=>void 0))}const n=t!==null&&t!==void 0?t:Cs.DEFAULT_RANK;const i=e.map((e=>{var t;return{...e,rank:(t=e.rank)!==null&&t!==void 0?t:n}})).sort(((e,t)=>e.rank-t.rank));let s=this._ranks.findIndex((e=>i[0].rankthis.insertItem(s++,e))));if(this._includeSeparators){o.push(this.insertItem(s++,{type:"separator",rank:n}))}return new ws.DisposableDelegate((()=>{o.forEach((e=>e.dispose()))}))}addItem(e){let t=-1;if(e.rank){t=this._ranks.findIndex((t=>e.rank{e.disposed.disconnect(n,this);this.dispose()};this._menu.disposed.connect(n,this)}get isDisposed(){return this._isDisposed}get type(){return this._item.deref().type}get command(){return this._item.deref().command}get args(){return this._item.deref().args}get submenu(){return this._item.deref().submenu}get label(){return this._item.deref().label}get mnemonic(){return this._item.deref().mnemonic}get icon(){return this._item.deref().icon}get iconClass(){return this._item.deref().iconClass}get iconLabel(){return this._item.deref().iconLabel}get caption(){return this._item.deref().caption}get className(){return this._item.deref().className}get dataset(){return this._item.deref().dataset}get isEnabled(){return this._item.deref().isEnabled}get isToggled(){return this._item.deref().isToggled}get isVisible(){return this._item.deref().isVisible}get keyBinding(){return this._item.deref().keyBinding}dispose(){if(this._isDisposed){return}this._isDisposed=true;const e=this._item.deref();if(e&&!this._menu.isDisposed){this._menu.removeItem(e)}p.Signal.clearData(this)}}var ks=n(54158);var js=n(78173);var Is=n(93247);var Es=n(42856);var Ts=n(94466);var Ms=n(26568);class Ds extends m.Widget{constructor(){super();this._rootDOM=null}static create(e){return new class extends Ds{render(){return e}}}onUpdateRequest(e){this.renderPromise=this.renderDOM()}onAfterAttach(e){Es.MessageLoop.sendMessage(this,m.Widget.Msg.UpdateRequest)}onBeforeDetach(e){if(this._rootDOM!==null){this._rootDOM.unmount();this._rootDOM=null}}renderDOM(){return new Promise((e=>{const t=this.render();if(this._rootDOM===null){this._rootDOM=(0,f.H)(this.node)}if(Array.isArray(t)){this._rootDOM.render(t);requestIdleCallback((()=>e()))}else if(t){this._rootDOM.render(t);requestIdleCallback((()=>e()))}else{this._rootDOM.unmount();this._rootDOM=null;requestIdleCallback((()=>e()))}}))}}class As extends Ds{constructor(e){super();this._modelChanged=new p.Signal(this);this.model=e!==null&&e!==void 0?e:null}get modelChanged(){return this._modelChanged}set model(e){if(this._model===e){return}if(this._model){this._model.stateChanged.disconnect(this.update,this)}this._model=e;if(e){e.stateChanged.connect(this.update,this)}this.update();this._modelChanged.emit(void 0)}get model(){return this._model}dispose(){if(this.isDisposed){return}this._model=null;super.dispose()}}class Ps extends i.Component{constructor(e){super(e);this.slot=(e,t)=>{if(this.props.shouldUpdate&&!this.props.shouldUpdate(e,t)){return}this.setState({value:[e,t]})};this.state={value:[this.props.initialSender,this.props.initialArgs]}}componentDidMount(){this.props.signal.connect(this.slot)}componentWillUnmount(){this.props.signal.disconnect(this.slot)}render(){return this.props.children(...this.state.value)}}class Ls{constructor(){this.stateChanged=new p.Signal(this);this._isDisposed=false}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;p.Signal.clearData(this)}}(0,js.provideJupyterDesignSystem)().register([(0,js.jpButton)(),(0,js.jpToolbar)()]);(0,js.addJupyterLabThemeChangeListener)();const Rs="jp-Toolbar";const Ns="jp-Toolbar-item";const Os="toolbar-popup-opener";const Bs="jp-Toolbar-spacer";class Fs extends m.PanelLayout{constructor(){super(...arguments);this._dirty=false}onFitRequest(e){super.onFitRequest(e);if(this.parent.isAttached){if((0,ys.some)(this.widgets,(e=>!e.isHidden))){this.parent.node.style.minHeight="var(--jp-private-toolbar-height)";this.parent.removeClass("jp-Toolbar-micro")}else{this.parent.node.style.minHeight="";this.parent.addClass("jp-Toolbar-micro")}}this._dirty=true;if(this.parent.parent){Es.MessageLoop.sendMessage(this.parent.parent,m.Widget.Msg.FitRequest)}if(this._dirty){Es.MessageLoop.sendMessage(this.parent,m.Widget.Msg.UpdateRequest)}}onUpdateRequest(e){super.onUpdateRequest(e);if(this.parent.isVisible){this._dirty=false}}onChildShown(e){super.onChildShown(e);this.parent.fit()}onChildHidden(e){super.onChildHidden(e);this.parent.fit()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}attachWidget(e,t){super.attachWidget(e,t);this.parent.fit()}detachWidget(e,t){super.detachWidget(e,t);this.parent.fit()}}class zs extends m.Widget{constructor(e={}){var t,n;super({node:document.createElement("jp-toolbar")});this.addClass(Rs);this.layout=(t=e.layout)!==null&&t!==void 0?t:new Fs;this.noFocusOnClick=(n=e.noFocusOnClick)!==null&&n!==void 0?n:false}names(){const e=this.layout;return(0,ys.map)(e.widgets,(e=>Ys.nameProperty.get(e)))}addItem(e,t){const n=this.layout;return this.insertItem(n.widgets.length,e,t)}insertItem(e,t,n){const i=(0,ys.find)(this.names(),(e=>e===t));if(i){return false}n.addClass(Ns);const s=this.layout;const o=Math.max(0,Math.min(e,s.widgets.length));s.insertWidget(o,n);Ys.nameProperty.set(n,t);n.node.dataset["jpItemName"]=t;if(this.noFocusOnClick){n.node.dataset["noFocusOnClick"]="true"}return true}insertAfter(e,t,n){return this.insertRelative(e,1,t,n)}insertBefore(e,t,n){return this.insertRelative(e,0,t,n)}insertRelative(e,t,n,i){const s=(0,ys.map)(this.names(),((e,t)=>({name:e,index:t})));const o=(0,ys.find)(s,(t=>t.name===e));if(o){return this.insertItem(o.index+t,n,i)}return false}handleEvent(e){switch(e.type){case"click":this.handleClick(e);break;default:break}}handleClick(e){e.stopPropagation();if(e.target instanceof HTMLLabelElement){const t=e.target.getAttribute("for");if(t&&this.node.querySelector(`#${t}`)){return}}if(this.node.contains(document.activeElement)){return}if(this.parent){this.parent.activate()}}onAfterAttach(e){this.node.addEventListener("click",this)}onBeforeDetach(e){this.node.removeEventListener("click",this)}}class Hs extends zs{constructor(e={}){super(e);this.popupOpener=new Gs;this._widgetWidths=new Map;this._widgetPositions=new Map;this._zoomChanged=true;this.insertItem(0,Os,this.popupOpener);this.popupOpener.hide();this._resizer=new Ms.Throttler((async(e=false)=>{await this._onResize(e)}),500)}dispose(){if(this.isDisposed){return}if(this._resizer){this._resizer.dispose()}super.dispose()}insertAfter(e,t,n){if(e===Os){return false}return super.insertAfter(e,t,n)}insertRelative(e,t,n,i){const s=this._widgetPositions.get(e);const o=(s!==null&&s!==void 0?s:0)+t;return this.insertItem(o,n,i)}insertItem(e,t,n){var i;let s;if(n instanceof Gs){s=super.insertItem(e,t,n)}else{const i=Math.max(0,Math.min(e,this.layout.widgets.length-1));s=super.insertItem(i,t,n);if(i!==e){e=Math.max(0,Math.min(e,this._widgetPositions.size))}}if(t!==Os&&this._widgetPositions.get(t)!==e){const n=(i=this._widgetPositions.get(t))!==null&&i!==void 0?i:this._widgetPositions.size;this._widgetPositions.forEach(((t,i)=>{if(i!==Os){if(t>=e&&tn){this._widgetPositions.set(i,t-1)}}}));this._widgetPositions.set(t,e);if(this.isVisible){void this._resizer.invoke()}}return s}onAfterShow(e){void this._resizer.invoke(true)}onBeforeHide(e){this.popupOpener.hidePopup();super.onBeforeHide(e)}onResize(e){super.onResize(e);const t=Math.round(window.outerWidth/window.innerWidth*100);if(t!==this._zoom){this._zoomChanged=true;this._zoom=t}if(e.width>0&&this._resizer){void this._resizer.invoke()}}async _onResize(e=false){if(!(this.parent&&this.parent.isAttached)){return}const t=this.node.clientWidth;const n=this.popupOpener;const i=32;const s=2+5;let o=n.isHidden?s:s+i;return this._getWidgetsToRemove(o,t,i).then((async s=>{var o,r;let{width:a,widgetsToRemove:l}=s;while(l.length>0){const e=l.pop();const t=Ys.nameProperty.get(e);a-=this._widgetWidths.get(t)||0;const i=(o=this._widgetPositions.get(t))!==null&&o!==void 0?o:0;let s=this._widgetPositions.size;const d=n.widgetAt(0);if(d){const e=Ys.nameProperty.get(d);s=(r=this._widgetPositions.get(e))!==null&&r!==void 0?r:s}const c=i-s;n.insertWidget(c,e)}if(n.widgetCount()>0){const e=[];let s=0;const o=n.widgetCount();while(s0){const t=e.shift();const n=Ys.nameProperty.get(t);if(this._widgetPositions.has(n)){this.insertItem(this._widgetPositions.get(n),n,t)}else{this.addItem(n,t)}}}if(n.widgetCount()>0){n.updatePopup();n.show()}else{n.hide()}if(e){await this._onResize()}})).catch((e=>{console.error("Error while computing the ReactiveToolbar",e)}))}async _getWidgetsToRemove(e,t,n){var i;const s=this.popupOpener;const o=[...this.layout.widgets];const r=o.length-1;const a=[];let l=0;while(lt){e+=n}if(e>t||((i=this._widgetPositions.get(d))!==null&&i!==void 0?i:0)>l){a.push(r)}l++}this._zoomChanged=false;return{width:e,widgetsToRemove:a}}async _saveWidgetWidth(e,t){if(t instanceof Ds){await t.renderPromise}const n=t.hasClass(Bs)?2:t.node.clientWidth;this._widgetWidths.set(e,n);return n}_getWidgetWidth(e){const t=Ys.nameProperty.get(e);return this._widgetWidths.get(t)||0}}(function(e){function t(){return new Ys.Spacer}e.createSpacerItem=t})(zs||(zs={}));function Ws(e){var t,n,s;const o=((t=e.noFocusOnClick)!==null&&t!==void 0?t:false)?undefined:t=>{var n;if(t.button===0){(n=e.onClick)===null||n===void 0?void 0:n.call(e);t.target.focus()}};const r=((n=e.noFocusOnClick)!==null&&n!==void 0?n:false)?t=>{var n;if(t.button===0){t.preventDefault();(n=e.onClick)===null||n===void 0?void 0:n.call(e)}}:undefined;const l=t=>{var n;const{key:i}=t;if(i==="Enter"||i===" "){(n=e.onClick)===null||n===void 0?void 0:n.call(e)}};const d=()=>{if(e.enabled===false&&e.disabledTooltip){return e.disabledTooltip}else if(e.pressed&&e.pressedTooltip){return e.pressedTooltip}else{return e.tooltip||e.iconLabel}};const c=d();const h=e.enabled===false;return i.createElement(ks.Button,{appearance:"stealth",className:e.className?e.className+" jp-ToolbarButtonComponent":"jp-ToolbarButtonComponent","aria-disabled":h,"aria-label":e.label||c,"aria-pressed":e.pressed,...e.dataset,disabled:h,onClick:o,onMouseDown:r,onKeyDown:l,title:c},(e.icon||e.iconClass)&&i.createElement(C.resolveReact,{icon:e.pressed?(s=e.pressedIcon)!==null&&s!==void 0?s:e.icon:e.icon,iconClass:a(e.iconClass,"jp-Icon"),tag:null}),e.label&&i.createElement("span",{className:"jp-ToolbarButtonComponent-label"},e.label))}function Vs(e){e.addClass("jp-ToolbarButton");return e}class Us extends Ds{constructor(e={}){var t,n;super();this.props=e;Vs(this);this._enabled=(t=e.enabled)!==null&&t!==void 0?t:true;this._pressed=this._enabled&&((n=e.pressed)!==null&&n!==void 0?n:false);this._onClick=e.onClick}set pressed(e){if(this.enabled&&e!==this._pressed){this._pressed=e;this.update()}}get pressed(){return this._pressed}set enabled(e){if(e!=this._enabled){this._enabled=e;if(!this._enabled){this._pressed=false}this.update()}}get enabled(){return this._enabled}set onClick(e){if(e!==this._onClick){this._onClick=e;this.update()}}get onClick(){return this._onClick}render(){return i.createElement(Ws,{...this.props,noFocusOnClick:this.props.noFocusOnClick,pressed:this.pressed,enabled:this.enabled,onClick:this.onClick})}}function qs(e){return i.createElement(Ps,{signal:e.commands.commandChanged,shouldUpdate:(t,n)=>n.id===e.id&&n.type==="changed"||n.type==="many-changed"},(()=>e.commands.listCommands().includes(e.id)?i.createElement(Ws,{...Ys.propsFromCommand(e)}):null))}function $s(e){e.addClass("jp-CommandToolbarButton");return e}class Ks extends Ds{constructor(e){super();this.props=e;const{commands:t,id:n,args:i}=e;$s(this);this.setCommandAttributes(t,n,i);t.commandChanged.connect(((s,o)=>{if(o.id===e.id){this.setCommandAttributes(t,n,i)}}),this)}setCommandAttributes(e,t,n){if(e.isToggled(t,n)){this.addClass("lm-mod-toggled")}else{this.removeClass("lm-mod-toggled")}if(e.isVisible(t,n)){this.removeClass("lm-mod-hidden")}else{this.addClass("lm-mod-hidden")}if(e.isEnabled(t,n)){if("disabled"in this.node){this.node.disabled=false}}else{if("disabled"in this.node){this.node.disabled=true}}}render(){return i.createElement(qs,{...this.props})}get commandId(){return this.props.id}}class Js extends m.Widget{constructor(){super({node:document.createElement("jp-toolbar")});this.width=0;this.node.setAttribute("aria-label","Responsive popup toolbar");this.addClass("jp-Toolbar");this.addClass("jp-Toolbar-responsive-popup");this.addClass("jp-ThemedContainer");this.layout=new m.PanelLayout;m.Widget.attach(this,document.body);this.hide()}updateWidth(e){if(e>0){this.width=e;this.node.style.width=`${e}px`}}alignTo(e){const{height:t,width:n,x:i,y:s}=e.node.getBoundingClientRect();const o=this.width;this.node.style.left=`${i+n-o+1}px`;this.node.style.top=`${s+t+1}px`}insertWidget(e,t){this.layout.insertWidget(e,t)}widgetCount(){return this.layout.widgets.length}widgetAt(e){return this.layout.widgets[e]}}class Gs extends Us{constructor(e={}){const t=(e.translator||ts.nullTranslator).load("jupyterlab");super({icon:Cn,onClick:()=>{this.handleClick()},tooltip:t.__("More commands")});this.addClass("jp-Toolbar-responsive-opener");this.popup=new Js}addWidget(e){this.popup.insertWidget(0,e)}insertWidget(e,t){this.popup.insertWidget(e,t)}dispose(){if(this.isDisposed){return}this.popup.dispose();super.dispose()}hide(){super.hide();this.hidePopup()}hidePopup(){this.popup.hide()}updatePopup(){this.popup.updateWidth(this.parent.node.clientWidth);this.popup.alignTo(this.parent)}widgetAt(e){return this.popup.widgetAt(e)}widgetCount(){return this.popup.widgetCount()}handleClick(){this.updatePopup();this.popup.setHidden(!this.popup.isHidden)}}var Ys;(function(e){function t(e){var t,n;const{commands:i,id:s,args:o}=e;const r=i.iconClass(s,o);const a=i.iconLabel(s,o);const l=(t=e.icon)!==null&&t!==void 0?t:i.icon(s,o);const d=i.label(s,o);let c=i.className(s,o);let h;if(i.isToggleable(s,o)){h=i.isToggled(s,o);if(h){c+=" lm-mod-toggled"}}if(!i.isVisible(s,o)){c+=" lm-mod-hidden"}const u=typeof e.label==="function"?e.label(o!==null&&o!==void 0?o:{}):e.label;let p=i.caption(s,o)||u||d||a;const m=i.keyBindings.find((e=>e.command===s));if(m){const e=m.keys.map(Is.CommandRegistry.formatKeystroke).join(", ");p=`${p} (${e})`}const g=()=>{void i.execute(s,o)};const f=i.isEnabled(s,o);return{className:c,dataset:{"data-command":e.id},noFocusOnClick:e.noFocusOnClick,icon:l,iconClass:r,tooltip:(n=e.caption)!==null&&n!==void 0?n:p,onClick:g,enabled:f,label:u!==null&&u!==void 0?u:d,pressed:h}}e.propsFromCommand=t;e.nameProperty=new Ts.AttachedProperty({name:"name",create:()=>""});class n extends m.Widget{constructor(){super();this.addClass(Bs)}}e.Spacer=n})(Ys||(Ys={}));class Xs extends m.Panel{constructor(e={}){super(e);this._toolbar=new zs}get toolbar(){return this._toolbar}}function Qs(e,t){let n=Infinity;let i=null;const s=/[\p{L}\p{N}\p{M}]+/gu;let o=true;while(o){let o=s.exec(e);if(!o){break}let r=ys.StringExt.matchSumOfDeltas(e,t,o.index);if(!r){break}if(r&&r.score<=n){n=r.score;i=r.indices}}if(!i||n===Infinity){return null}return{score:n,indices:i}}const Zs=(e,t,n)=>i=>{if(t){const t=e.toLowerCase();return Qs(i,t)}if(!n){i=i.toLocaleLowerCase();e=e.toLocaleLowerCase()}const s=i.indexOf(e);if(s===-1){return null}return{indices:[...Array(e.length).keys()].map((e=>e+s))}};const eo=e=>{var t,n,o;const[r,a]=(0,i.useState)((t=e.initialQuery)!==null&&t!==void 0?t:"");if(e.forceRefresh){(0,i.useEffect)((()=>{e.updateFilter((e=>({})))}),[])}const l=(0,i.useRef)(true);const d=(n=e.inputRef)!==null&&n!==void 0?n:(0,i.useRef)();(0,i.useEffect)((()=>{if(l.current){l.current=false;if(e.initialQuery!==undefined){e.updateFilter(Zs(e.initialQuery,e.useFuzzyFilter,e.caseSensitive),e.initialQuery)}}else{if(d.current){e.updateFilter(Zs(d.current.value,e.useFuzzyFilter,e.caseSensitive),d.current.value)}}}),[e.updateFilter,e.useFuzzyFilter,e.caseSensitive]);const c=(0,i.useCallback)((t=>{const n=t.target;a(n.value);e.updateFilter(Zs(n.value,e.useFuzzyFilter,e.caseSensitive),n.value)}),[e.updateFilter,e.useFuzzyFilter,e.caseSensitive]);const h=(o=e.showIcon)!==null&&o!==void 0?o:true;return s().createElement(ks.Search,{className:"jp-FilterBox",ref:e.inputRef,value:r,onChange:c,onInput:c,placeholder:e.placeholder,disabled:e.disabled},h&&s().createElement(Si.react,{slot:"end",tag:null}))};class to extends Ds{constructor(e){var t;super();this._filterBoxProps={...e};(t=e===null||e===void 0?void 0:e.filterSettingsChanged)===null||t===void 0?void 0:t.connect(((e,t)=>{this._updateProps(t)}),this)}render(){return s().createElement(eo,{...this._filterBoxProps})}_updateProps(e){Object.assign(this._filterBoxProps,e);this.update()}}const no=e=>new to(e);class io extends m.AccordionLayout{constructor(){super(...arguments);this._toolbars=new WeakMap}insertWidget(e,t){if(t.toolbar){this._toolbars.set(t,t.toolbar);t.toolbar.addClass("jp-AccordionPanel-toolbar")}super.insertWidget(e,t)}removeWidgetAt(e){const t=this.widgets[e];super.removeWidgetAt(e);if(t&&this._toolbars.has(t)){this._toolbars.delete(t)}}updateTitle(e,t){super.updateTitle(e,t);this._addToolbar(e,t)}attachWidget(e,t){super.attachWidget(e,t);this._addToolbar(e,t)}detachWidget(e,t){const n=this._toolbars.get(t);if(n){if(this.parent.isAttached){Es.MessageLoop.sendMessage(n,m.Widget.Msg.BeforeDetach)}this.titles[e].removeChild(n.node);if(this.parent.isAttached){Es.MessageLoop.sendMessage(n,m.Widget.Msg.AfterDetach)}}super.detachWidget(e,t)}onBeforeAttach(e){this.notifyToolbars(e);super.onBeforeAttach(e)}onAfterAttach(e){super.onAfterAttach(e);this.notifyToolbars(e)}onBeforeDetach(e){this.notifyToolbars(e);super.onBeforeDetach(e)}onAfterDetach(e){super.onAfterDetach(e);this.notifyToolbars(e)}_addToolbar(e,t){const n=this._toolbars.get(t);if(n){if(this.parent.isAttached){Es.MessageLoop.sendMessage(n,m.Widget.Msg.BeforeAttach)}this.titles[e].appendChild(n.node);if(this.parent.isAttached){Es.MessageLoop.sendMessage(n,m.Widget.Msg.AfterAttach)}}}notifyToolbars(e){this.widgets.forEach((t=>{const n=this._toolbars.get(t);if(n){n.processMessage(e)}}))}}var so;(function(e){class t extends m.AccordionPanel.Renderer{createCollapseIcon(e){const t=document.createElement("div");qt.element({container:t});return t}createSectionTitle(e){const t=super.createSectionTitle(e);t.classList.add("jp-AccordionPanel-title");return t}}e.Renderer=t;e.defaultRenderer=new t;function n(t){var n;return t.layout||new io({renderer:t.renderer||e.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing,titleSpace:(n=t.titleSpace)!==null&&n!==void 0?n:32})}e.createLayout=n})(so||(so={}));class oo extends m.Widget{constructor(e={}){var t;super();const n=this.layout=new m.PanelLayout;this.addClass("jp-SidePanel");const i=this._trans=(e.translator||ts.nullTranslator).load("jupyterlab");if(e.header){this.addHeader(e.header)}const s=this._content=(t=e.content)!==null&&t!==void 0?t:new m.AccordionPanel({...e,layout:so.createLayout(e)});s.node.setAttribute("role","region");s.node.setAttribute("aria-label",i.__("side panel content"));s.addClass("jp-SidePanel-content");n.addWidget(s);if(e.toolbar){this.addToolbar(e.toolbar)}}get content(){return this._content}get header(){if(!this._header){this.addHeader()}return this._header}get toolbar(){if(!this._toolbar){this.addToolbar()}return this._toolbar}get widgets(){return this.content.widgets}addWidget(e){this.content.addWidget(e)}insertWidget(e,t){this.content.insertWidget(e,t)}addHeader(e){const t=this._header=e||new m.Panel;t.addClass("jp-SidePanel-header");this.layout.insertWidget(0,t)}addToolbar(e){const t=this._toolbar=e!==null&&e!==void 0?e:new zs;t.addClass("jp-SidePanel-toolbar");this.layout.insertWidget(this.layout.widgets.length-1,t)}}class ro extends m.Widget{constructor(){super();this.addClass("jp-Spinner");this.node.tabIndex=-1;const e=document.createElement("div");e.className="jp-SpinnerContent";this.node.appendChild(e)}onActivateRequest(e){this.node.focus()}}var ao;(function(e){function t(e,t=""){n(e,"select",t);n(e,"textarea",t);n(e,"input",t);n(e,"button",t)}e.styleNode=t;function n(e,t,n=""){if(e.localName===t){e.classList.add("jp-mod-styled")}if(e.localName==="select"){const t=e.hasAttribute("multiple");i(e,t)}const s=e.getElementsByTagName(t);for(let o=0;o{if(e===t.sortKey){n({sortKey:e,sortDirection:t.sortDirection*-1})}else{n({sortKey:e,sortDirection:1})}};let r=e.rows;const a=e.columns.filter((e=>e.id===t.sortKey))[0];if(a){const n=a.sort.bind(a);r=e.rows.sort(((e,i)=>n(e.data,i.data)*t.sortDirection))}const l=e.columns.filter((e=>(e.isAvailable?e.isAvailable():true)&&!e.isHidden));const d=r.map((t=>{const n=l.map((e=>s().createElement("td",{key:e.id+"-"+t.key},e.renderCell(t.data))));return s().createElement("tr",{key:t.key,"data-key":t.key,onClick:e.onRowClick,className:"jp-sortable-table-tr"},n)}));const c=l.map((e=>s().createElement(po,{label:e.label,id:e.id,state:t,key:e.id,onSort:()=>{o(e.id)}})));return s().createElement("table",{className:ho},s().createElement("thead",null,s().createElement("tr",{className:"jp-sortable-table-tr"},c)),s().createElement("tbody",null,d))}function po(e){const t=e.id===e.state.sortKey;const n=!t||e.state.sortDirection===1?Gt:qt;return s().createElement("th",{key:e.id,onClick:()=>e.onSort(),className:t?"jp-sorted-header":undefined,"data-id":e.id},s().createElement("div",{className:"jp-sortable-table-th-wrapper"},s().createElement("label",null,e.label),s().createElement(n.react,{tag:"span",className:"jp-sort-icon"})))}const mo=100;let go=false;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){go={passive:true}}}))}catch(Lo){}class fo{constructor(e={}){var t,n,i,s,o,r;this.scrollDownThreshold=1;this.scrollUpThreshold=0;this.paddingTop=0;this._estimatedWidgetSize=vo.DEFAULT_WIDGET_SIZE;this._stateChanged=new p.Signal(this);this._currentWindow=[-1,-1,-1,-1];this._height=0;this._isDisposed=false;this._itemsList=null;this._measuredAllUntilIndex=-1;this._overscanCount=1;this._scrollOffset=0;this._widgetCount=0;this._widgetSizers=[];this._windowingActive=true;this._widgetCount=(i=(n=(t=e.itemsList)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:e.count)!==null&&i!==void 0?i:0;this._overscanCount=(s=e.overscanCount)!==null&&s!==void 0?s:1;this._windowingActive=(o=e.windowingActive)!==null&&o!==void 0?o:true;this.itemsList=(r=e.itemsList)!==null&&r!==void 0?r:null}get height(){return this._height}set height(e){this._height=e}get isDisposed(){return this._isDisposed}get itemsList(){return this._itemsList}set itemsList(e){var t,n,i;if(this._itemsList!==e){if(this._itemsList){this._itemsList.changed.disconnect(this.onListChanged,this)}const s=this._itemsList;this._itemsList=e;if(this._itemsList){this._itemsList.changed.connect(this.onListChanged,this)}else{this._widgetCount=0}this._stateChanged.emit({name:"list",newValue:this._itemsList,oldValue:s});this._stateChanged.emit({name:"count",newValue:(n=(t=this._itemsList)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0,oldValue:(i=s===null||s===void 0?void 0:s.length)!==null&&i!==void 0?i:0})}}get overscanCount(){return this._overscanCount}set overscanCount(e){if(e>=1){if(this._overscanCount!==e){const t=this._overscanCount;this._overscanCount=e;this._stateChanged.emit({name:"overscanCount",newValue:e,oldValue:t})}}else{console.error(`Forbidden non-positive overscan count: got ${e}`)}}get scrollOffset(){return this._scrollOffset}set scrollOffset(e){this._scrollOffset=e}get widgetCount(){return this._itemsList?this._itemsList.length:this._widgetCount}set widgetCount(e){if(this.itemsList){console.error("It is not allow to change the widgets count of a windowed list if a items list is used.");return}if(e>=0){if(this._widgetCount!==e){const t=this._widgetCount;this._widgetCount=e;this._stateChanged.emit({name:"count",newValue:e,oldValue:t})}}else{console.error(`Forbidden negative widget count: got ${e}`)}}get windowingActive(){return this._windowingActive}set windowingActive(e){if(e!==this._windowingActive){const t=this._windowingActive;this._windowingActive=e;this._currentWindow=[-1,-1,-1,-1];this._measuredAllUntilIndex=-1;this._widgetSizers=[];this._stateChanged.emit({name:"windowingActive",newValue:e,oldValue:t})}}get stateChanged(){return this._stateChanged}dispose(){if(this.isDisposed){return}this._isDisposed=true;p.Signal.clearData(this)}getEstimatedTotalSize(){let e=0;if(this._measuredAllUntilIndex>=this.widgetCount){this._measuredAllUntilIndex=this.widgetCount-1}if(this._measuredAllUntilIndex>=0){const t=this._widgetSizers[this._measuredAllUntilIndex];e=t.offset+t.size}let t=0;for(let n=this._measuredAllUntilIndex+1;ng&&vg&&_f&&_=u-r&&p<=h+r;const n=v-g;const i=_-g;if(w||b&&n>=l||y&&ir){t="top-center"}else{t="center"}}}if(t==="auto"){if(w){return p}else if(s!==undefined){t=s}else if(b||v<=f){t="end"}else{t="start"}}switch(t){case"start":return Math.max(0,h-o*r)+m;case"end":return u+o*r+m;case"center":return u+(h-u)/2;case"top-center":return h-r/2}}getRangeToRender(){let e=[0,Math.max(this.widgetCount-1,-1),0,Math.max(this.widgetCount-1,-1)];const t=this._measuredAllUntilIndex;if(this.windowingActive){e=this._getRangeToRender()}const[n,i]=e;if(t<=i||this._currentWindow[0]!==n||this._currentWindow[1]!==i){this._currentWindow=e;return e}return null}getSpan(e,t){const n=this._getItemMetadata(e);const i=n.offset;const s=this._getItemMetadata(t);const o=s.offset-n.offset+s.size;return[i,o]}resetAfterIndex(e){const t=this._measuredAllUntilIndex;this._measuredAllUntilIndex=Math.min(e,this._measuredAllUntilIndex);for(const[n,i]of this._widgetSizers.entries()){if(n===0){continue}const e=this._widgetSizers[n-1];i.offset=e.offset+e.size}if(this._measuredAllUntilIndex!==t){this._stateChanged.emit({name:"index",newValue:e,oldValue:t})}}setWidgetSize(e){if(this._windowingActive||this._currentWindow[0]>=0){let t=Infinity;let n=-1;let i=0;let s=true;const o=new Map(e.map((e=>[e.index,e.size])));const r=Math.max(...o.keys());const a=[...this._widgetSizers.entries()];for(let e=this._widgetSizers.length;e<=r;e++){a.push([e,null])}for(let[e,l]of a){const r=o.get(e);let a=0;const d=!!l;if(!l){const t=this._widgetSizers[e-1];const n={offset:t?t.offset+t.size:0,size:r!==undefined?r:this.estimateWidgetSize(e),measured:r!==undefined};this._widgetSizers[e]=n;l=n}if(r!==undefined){if(l.size!=r){a=r-l.size;l.size=r;t=Math.min(t,e)}l.measured=true}if(s){if(l.measured){n=e}else{s=false}}if(d&&i!==0){l.offset+=i}i+=a}if(n!==-1){this._measuredAllUntilIndex=n}if(t!==Infinity){return true}}return false}onListChanged(e,t){switch(t.type){case"add":this._widgetSizers.splice(t.newIndex,0,...new Array(t.newValues.length).fill(undefined).map(((e,t)=>({offset:0,size:this.estimateWidgetSize(t)}))));this.resetAfterIndex(t.newIndex-1);break;case"move":ys.ArrayExt.move(this._widgetSizers,t.oldIndex,t.newIndex);this.resetAfterIndex(Math.min(t.newIndex,t.oldIndex)-1);break;case"remove":this._widgetSizers.splice(t.oldIndex,t.oldValues.length);this.resetAfterIndex(t.oldIndex-1);break;case"set":this.resetAfterIndex(t.newIndex-1);break}}_getItemMetadata(e){var t,n;if(e>this._measuredAllUntilIndex){let i=0;if(this._measuredAllUntilIndex>=0){const e=this._widgetSizers[this._measuredAllUntilIndex];i=e.offset+e.size}for(let s=this._measuredAllUntilIndex+1;s<=e;s++){let e=((t=this._widgetSizers[s])===null||t===void 0?void 0:t.measured)?this._widgetSizers[s].size:this.estimateWidgetSize(s);this._widgetSizers[s]={offset:i,size:e,measured:(n=this._widgetSizers[s])===null||n===void 0?void 0:n.measured};i+=e}for(let t=e+1;t0?this._widgetSizers[this._measuredAllUntilIndex].offset:0;if(t>=e){return this._findNearestItemBinarySearch(this._measuredAllUntilIndex,0,e)}else{return this._findNearestItemExponentialSearch(Math.max(0,this._measuredAllUntilIndex),e)}}_findNearestItemBinarySearch(e,t,n){while(t<=e){const i=t+Math.floor((e-t)/2);const s=this._getItemMetadata(i).offset;if(s===n){return i}else if(sn){e=i-1}}if(t>0){return t-1}else{return 0}}_findNearestItemExponentialSearch(e,t){let n=1;while(ethis.update()),50);this._viewModel=e.model;this._viewport=c;if(e.scrollbar){s.classList.add("jp-mod-virtual-scrollbar")}this.viewModel.stateChanged.connect(this.onStateChanged,this)}get isParentHidden(){return this._isParentHidden}set isParentHidden(e){this._isParentHidden=e}get layout(){return super.layout}get outerNode(){return this._outerElement}get viewportNode(){return this._viewport}get scrollbar(){return this.node.classList.contains("jp-mod-virtual-scrollbar")}set scrollbar(e){if(e){this.node.classList.add("jp-mod-virtual-scrollbar")}else{this.node.classList.remove("jp-mod-virtual-scrollbar")}this._adjustDimensionsForScrollbar();this.update()}get viewModel(){return this._viewModel}dispose(){this._updater.dispose();super.dispose()}handleEvent(e){switch(e.type){case"pointerdown":this._evtPointerDown(e);e.stopPropagation();break;case"scrollend":this._onScrollEnd();break;case"scroll":this.onScroll(e);break}}scrollTo(e){if(!this.viewModel.windowingActive){this._outerElement.scrollTo({top:e});return}e=Math.max(0,e);if(e!==this.viewModel.scrollOffset){this.viewModel.scrollOffset=e;this._scrollUpdateWasRequested=true;this.update()}}scrollToItem(e,t="auto",n=.25,i){if(!this._isScrolling||this._scrollToItem===null||this._scrollToItem[0]!==e||this._scrollToItem[1]!==t){if(this._isScrolling){this._isScrolling.reject("Scrolling to a new item is requested.")}this._isScrolling=new g.PromiseDelegate;this._isScrolling.promise.catch(console.debug)}this._scrollToItem=[e,t,n,i];this._resetScrollToItem();let s=undefined;if(!this.viewModel.windowingActive){const t=this._innerElement.querySelector(`[data-windowed-list-index="${e}"]`);if(!t||!(t instanceof HTMLElement)){console.debug(`Element with index ${e} not found`);return Promise.resolve()}s={totalSize:this._outerElement.scrollHeight,itemMetadata:{offset:t.offsetTop,size:t.clientHeight},currentOffset:this._outerElement.scrollTop}}this.scrollTo(this.viewModel.getOffsetForIndexAndAlignment(Math.max(0,Math.min(e,this.viewModel.widgetCount-1)),t,n,s,i));return this._isScrolling.promise}onAfterAttach(e){super.onAfterAttach(e);if(this.viewModel.windowingActive){this._applyWindowingStyles()}else{this._applyNoWindowingStyles()}this._addListeners();this.viewModel.height=this.node.getBoundingClientRect().height;const t=window.getComputedStyle(this._viewport);this.viewModel.paddingTop=parseFloat(t.paddingTop);this._viewportPaddingTop=this.viewModel.paddingTop;this._viewportPaddingBottom=parseFloat(t.paddingBottom);this._scrollbarElement.addEventListener("pointerdown",this);this._outerElement.addEventListener("scrollend",this)}onBeforeDetach(e){this._removeListeners();this._scrollbarElement.removeEventListener("pointerdown",this);this._outerElement.removeEventListener("scrollend",this);super.onBeforeDetach(e)}onScroll(e){const{clientHeight:t,scrollHeight:n,scrollTop:i}=e.currentTarget;if(!this._scrollUpdateWasRequested&&Math.abs(this.viewModel.scrollOffset-i)>1){const e=Math.max(0,Math.min(i,n-t));this.viewModel.scrollOffset=e;this._scrollUpdateWasRequested=false;if(this._viewport.dataset.isScrolling!="true"){this._viewport.dataset.isScrolling="true"}if(this._timerToClearScrollStatus){window.clearTimeout(this._timerToClearScrollStatus)}this._timerToClearScrollStatus=window.setTimeout((()=>{this._onScrollEnd()}),750);this.update()}}onResize(e){const t=this.viewModel.height;this.viewModel.height=e.height>=0?e.height:this.node.getBoundingClientRect().height;if(this.viewModel.height!==t){void this._updater.invoke()}super.onResize(e);void this._updater.invoke()}onStateChanged(e,t){switch(t.name){case"windowingActive":this._removeListeners();if(this.viewModel.windowingActive){this._applyWindowingStyles();this.onScroll({currentTarget:this.node});this._addListeners();return}else{this._applyNoWindowingStyles();this._addListeners()}break;case"estimatedWidgetSize":this._updateTotalSize();return}this.update()}onUpdateRequest(e){if(this.viewModel.windowingActive){if(this._scrollRepaint===null){this._needsUpdate=false;this._scrollRepaint=window.requestAnimationFrame((()=>{this._scrollRepaint=null;this._update();if(this._needsUpdate){this.update()}}))}else{this._needsUpdate=true}}else{this._update()}}_adjustDimensionsForScrollbar(){const e=this._outerElement;const t=this._scrollbarElement;if(this.scrollbar){let n=e.offsetWidth-e.clientWidth;if(n==0){n=1e3;e.style.paddingRight=`${n}px`;e.style.boxSizing="border-box"}else{e.style.paddingRight="0"}e.style.width=`calc(100% + ${n}px)`;this._innerElement.style.marginRight=`${t.offsetWidth}px`}else{e.style.width="100%";this._innerElement.style.marginRight="";e.style.paddingRight="0";e.style.boxSizing=""}}_addListeners(){if(this.viewModel.windowingActive){if(!this._itemsResizeObserver){this._itemsResizeObserver=new ResizeObserver(this._onItemResize.bind(this))}for(const e of this.layout.widgets){this._itemsResizeObserver.observe(e.node);e.disposed.connect((()=>{var t;return(t=this._itemsResizeObserver)===null||t===void 0?void 0:t.unobserve(e.node)}))}this._outerElement.addEventListener("scroll",this,go);this._scrollbarResizeObserver=new ResizeObserver(this._adjustDimensionsForScrollbar.bind(this));this._scrollbarResizeObserver.observe(this._outerElement);this._scrollbarResizeObserver.observe(this._scrollbarElement)}else{if(!this._areaResizeObserver){this._areaResizeObserver=new ResizeObserver(this._onAreaResize.bind(this));this._areaResizeObserver.observe(this._innerElement)}}}_applyNoWindowingStyles(){this._viewport.style.position="relative";this._viewport.style.top="0px";this._viewport.style.minHeight="";this._innerElement.style.height=""}_applyWindowingStyles(){this._viewport.style.position="absolute"}_removeListeners(){var e,t,n;this._outerElement.removeEventListener("scroll",this);(e=this._areaResizeObserver)===null||e===void 0?void 0:e.disconnect();this._areaResizeObserver=null;(t=this._itemsResizeObserver)===null||t===void 0?void 0:t.disconnect();this._itemsResizeObserver=null;(n=this._scrollbarResizeObserver)===null||n===void 0?void 0:n.disconnect();this._scrollbarResizeObserver=null}_update(){var e;if(this.isDisposed||!this.layout){return}const t=this.viewModel.getRangeToRender();if(t!==null){const[n,i,s,o]=t;if(this.scrollbar){const e=this._renderScrollbar();const t=e[s];const n=e[o];this._viewportIndicator.style.top=t.offsetTop-1+"px";this._viewportIndicator.style.height=n.offsetTop-t.offsetTop+n.offsetHeight+"px"}const r=[];if(i>=0){for(let e=n;e<=i;e++){const t=this.viewModel.widgetRenderer(e);t.dataset.windowedListIndex=`${e}`;r.push(t)}}const a=this.layout.widgets.length;for(let t=a-1;t>=0;t--){if(!r.includes(this.layout.widgets[t])){(e=this._itemsResizeObserver)===null||e===void 0?void 0:e.unobserve(this.layout.widgets[t].node);this.layout.removeWidget(this.layout.widgets[t])}}for(let e=0;e{var e;return(e=this._itemsResizeObserver)===null||e===void 0?void 0:e.unobserve(t.node)}))}this.layout.insertWidget(e,t)}if(this.viewModel.windowingActive){if(i>=0){this._updateTotalSize();let[e,t]=this.viewModel.getSpan(n,i);this._viewport.style.transform=`translateY(${e}px)`}else{this._innerElement.style.height=`0px`;this._viewport.style.top=`0px`;this._viewport.style.minHeight=`0px`}if(this._scrollUpdateWasRequested){this._outerElement.scrollTop=this.viewModel.scrollOffset;this._scrollUpdateWasRequested=false}}}let n=-1;for(const i of this._viewport.children){const e=parseInt(i.dataset.windowedListIndex,10);if(e{console.log(e)}))}_resetScrollToItem(){if(this._resetScrollToItemTimeout){clearTimeout(this._resetScrollToItemTimeout)}if(this._scrollToItem){this._resetScrollToItemTimeout=window.setTimeout((()=>{this._scrollToItem=null;if(this._isScrolling){this._isScrolling.resolve();this._isScrolling=null}}),mo)}}_renderScrollbar(){var e,t;const{node:n,renderer:i,viewModel:s}=this;const o=n.querySelector(".jp-WindowedPanel-scrollbar-content");const r=[];const a=(e,t)=>{if(e instanceof HTMLElement){return e}else{c.add(e.key);const n={index:t};const i=this._scrollbarItems[e.key];if(i&&!i.isDisposed){return i.render(n)}else{this._scrollbarItems[e.key]=e;const t=e.render(n);return t}}};const l=s.itemsList;const d=(e=l===null||l===void 0?void 0:l.length)!==null&&e!==void 0?e:s.widgetCount;const c=new Set;for(let p=0;p!c.has(e)));for(const p of h){this._scrollbarItems[p].dispose();delete this._scrollbarItems[p]}const u=[...o.childNodes];if(u.length!==r.length||!u.every(((e,t)=>r[t]===e))){o.replaceChildren(...r)}return r}_evtPointerDown(e){let t=e.target;while(t&&t.parentElement){if(t.hasAttribute("data-index")){const e=parseInt(t.getAttribute("data-index"),10);return void(async()=>{await this.scrollToItem(e);this.jumped.emit(e)})()}t=t.parentElement}}_onScrollEnd(){if(this._timerToClearScrollStatus){window.clearTimeout(this._timerToClearScrollStatus)}this._viewport.dataset.isScrolling="false";if(this._requiresTotalSizeUpdate){this._updateTotalSize()}this._requiresTotalSizeUpdate=false}_updateTotalSize(){if(this.viewModel.windowingActive){if(this._viewport.dataset.isScrolling=="true"){this._requiresTotalSizeUpdate=true;return}const e=this.viewModel.getEstimatedTotalSize();const t=e+this._viewportPaddingTop+this._viewportPaddingBottom;this._innerElement.style.height=`${t}px`}}}vo.DEFAULT_WIDGET_SIZE=50;class _o extends m.PanelLayout{constructor(){super({fitPolicy:"set-no-constraint"})}get parent(){return super.parent}set parent(e){super.parent=e}attachWidget(e,t){let n=this.parent.viewportNode.children[e];if(this.parent.isAttached){Es.MessageLoop.sendMessage(t,m.Widget.Msg.BeforeAttach)}this.parent.viewportNode.insertBefore(t.node,n);if(this.parent.isAttached){Es.MessageLoop.sendMessage(t,m.Widget.Msg.AfterAttach)}}detachWidget(e,t){if(this.parent.isAttached){Es.MessageLoop.sendMessage(t,m.Widget.Msg.BeforeDetach)}this.parent.viewportNode.removeChild(t.node);if(this.parent.isAttached){Es.MessageLoop.sendMessage(t,m.Widget.Msg.AfterDetach)}}moveWidget(e,t,n){let i=this.parent.viewportNode.children[t];if(e{if(n.submenu){e.overrideDefaultRenderer(n.submenu)}return i(t,n)};for(const e of n._items){if(e.submenu){t(e.submenu)}}}e.overrideDefaultRenderer=t;class n extends m.Menu.Renderer{renderIcon(e){const t=this.createIconClass(e);if(e.item.isToggled){return bo.h.div({className:t},Xt,e.item.iconLabel)}return bo.h.div({className:t},e.item.icon,e.item.iconLabel)}createIconClass(e){let t="lm-Menu-itemIcon";if(e.item.type==="separator"){return a(e.item.iconClass,t)}else{return a(w.styleClass({stylesheet:"menuItem"}),e.item.iconClass,t)}}renderSubmenu(e){const t="lm-Menu-itemSubmenuIcon";if(e.item.type==="submenu"){return bo.h.div({className:t},Co)}else{return bo.h.div({className:t})}}}e.Renderer=n;e.defaultRenderer=new n})(So||(So={}));class ko extends m.TabBar{constructor(e={}){var t;super({renderer:ko.defaultRenderer,...e});const n=((t=ko.translator)!==null&&t!==void 0?t:ts.nullTranslator).load("jupyterlab");Bt.element({container:this.addButtonNode,title:n.__("New Launcher")})}}ko.translator=null;(function(e){class t extends m.TabBar.Renderer{renderCloseIcon(t){var n;const i=((n=e.translator)!==null&&n!==void 0?n:ts.nullTranslator).load("jupyterlab");const s=t.title.label?i.__("Close %1",t.title.label):i.__("Close tab");const o=a("jp-icon-hover lm-TabBar-tabCloseIcon",w.styleClass({elementPosition:"center",height:"16px",width:"16px"}));return(0,bo.hpass)("div",{className:o,title:s},sn)}}e.Renderer=t;e.defaultRenderer=new t})(ko||(ko={}));class jo extends m.DockPanel{constructor(e={}){super({renderer:jo.defaultRenderer,...e})}}(function(e){class t extends m.DockPanel.Renderer{createTabBar(){const e=new ko;e.addClass("lm-DockPanel-tabBar");return e}}e.Renderer=t;e.defaultRenderer=new t})(jo||(jo={}));class Io extends m.TabPanel{constructor(e={}){e.renderer=e.renderer||ko.defaultRenderer;super(e)}}const Eo="jp-HoverBox";const To="-1000";var Mo;(function(e){function t(e){const{anchor:t,host:n,node:i,privilege:s,outOfViewDisplay:o}=e;const r=n.getBoundingClientRect();if(!i.classList.contains(Eo)){i.classList.add(Eo)}if(i.style.visibility){i.style.visibility=""}if(i.style.zIndex===""){i.style.zIndex=""}i.style.maxHeight="";i.style.marginTop="";const a=e.style||window.getComputedStyle(i);const l=t.top-r.top;const d=r.bottom-t.bottom;const c=parseInt(a.marginTop,10)||0;const h=parseInt(a.marginLeft,10)||0;const u=parseInt(a.minHeight,10)||e.minHeight;let p=parseInt(a.maxHeight,10)||e.maxHeight;const m=s==="forceAbove"?false:s==="forceBelow"?true:s==="above"?l=p||d>=l;if(m){p=Math.min(d-c,p)}else{p=Math.min(l,p);i.style.marginTop="0px"}i.style.maxHeight=`${p}px`;const g=p>=u&&(d>=u||l>=u);if(!g){i.style.zIndex=To;i.style.visibility="hidden";return}if(e.size){i.style.width=`${e.size.width}px`;i.style.height=`${e.size.height}px`;i.style.contain="strict"}else{i.style.contain="";i.style.width="auto";i.style.height=""}const f=e.size?e.size.height:i.getBoundingClientRect().height;const v=e.offset&&e.offset.vertical&&e.offset.vertical.above||0;const _=e.offset&&e.offset.vertical&&e.offset.vertical.below||0;let b=m?r.bottom-d+_:r.top+l-f+v;i.style.top=`${Math.floor(b)}px`;const y=e.offset&&e.offset.horizontal||0;let w=t.left+y;i.style.left=`${Math.ceil(w)}px`;let C=i.getBoundingClientRect();let x=C.right;if(x>window.innerWidth){w-=x-window.innerWidth;x=window.innerWidth;i.style.left=`${Math.ceil(w)}px`}if(wr.bottom;const O=w+hr.right;let F=false;let z=false;let H=false;if(R){switch((o===null||o===void 0?void 0:o.top)||"hidden-inside"){case"hidden-inside":if(!T){F=true}break;case"hidden-outside":if(!M){F=true}break;case"stick-inside":if(r.top>b){b=r.top;H=true}break;case"stick-outside":if(r.top>S){b=r.top-P;H=true}break}}if(N){switch((o===null||o===void 0?void 0:o.bottom)||"hidden-outside"){case"hidden-inside":if(!M){F=true}break;case"hidden-outside":if(!T){F=true}break;case"stick-inside":if(r.bottomw+h){w=r.left-h;z=true}break;case"stick-outside":if(r.left>x){w=r.left-h-L;z=true}break}}if(B){switch((o===null||o===void 0?void 0:o.right)||"hidden-outside"){case"hidden-inside":if(!A){F=true}break;case"hidden-outside":if(!D){F=true}break;case"stick-inside":if(r.right.'; got ${e}.`)}this._renderers[e]=t}get renderers(){return this._renderers}getRenderer(e){return this._renderers[e]}}},40662:(e,t,n)=>{"use strict";var i=n(10395);var s=n(85072);var o=n.n(s);var r=n(97825);var a=n.n(r);var l=n(77659);var d=n.n(l);var c=n(55056);var h=n.n(c);var u=n(10540);var p=n.n(u);var m=n(41113);var g=n.n(m);var f=n(28857);var v={};v.styleTagTransform=g();v.setAttributes=h();v.insert=d().bind(null,"head");v.domAPI=a();v.insertStyleElement=p();var _=o()(f.A,v);const b=f.A&&f.A.locals?f.A.locals:undefined},47872:(e,t,n)=>{"use strict";n.r(t);n.d(t,{RenderedVega:()=>u,VEGALITE3_MIME_TYPE:()=>d,VEGALITE4_MIME_TYPE:()=>c,VEGALITE5_MIME_TYPE:()=>h,VEGA_MIME_TYPE:()=>l,default:()=>g,rendererFactory:()=>p});var i=n(1143);var s=n.n(i);const o="jp-RenderedVegaCommon5";const r="jp-RenderedVega5";const a="jp-RenderedVegaLite";const l="application/vnd.vega.v5+json";const d="application/vnd.vegalite.v3+json";const c="application/vnd.vegalite.v4+json";const h="application/vnd.vegalite.v5+json";class u extends i.Widget{constructor(e){super();this._mimeType=e.mimeType;this._resolver=e.resolver;this.addClass(o);this.addClass(this._mimeType===l?r:a)}async renderModel(e){const t=e.data[this._mimeType];if(t===undefined){return}const n=e.metadata[this._mimeType];const i=n&&n.embed_options?n.embed_options:{};let s=document.body.dataset.jpThemeLight==="false";if(s){i.theme="dark"}const o=this._mimeType===l?"vega":"vega-lite";const r=f.vega!=null?f.vega:await f.ensureVega();const a=document.createElement("div");this.node.textContent="";this.node.appendChild(a);if(this._result){this._result.finalize()}const d=r.vega.loader({http:{credentials:"same-origin"}});const c=async(e,t)=>{const n=this._resolver;if((n===null||n===void 0?void 0:n.isLocal)&&n.isLocal(e)){const t=await n.resolveUrl(e);e=await n.getDownloadUrl(t)}return d.sanitize(e,t)};this._result=await r.default(a,t,{actions:true,defaultStyle:true,...i,mode:o,loader:{...d,sanitize:c}});if(e.data["image/png"]){return}const h=await this._result.view.toImageURL("png",typeof i.scaleFactor==="number"?i.scaleFactor:i.scaleFactor?i.scaleFactor.png:i.scaleFactor);e.setData({data:{...e.data,"image/png":h.split(",")[1]}})}dispose(){if(this._result){this._result.finalize()}super.dispose()}}const p={safe:true,mimeTypes:[l,d,c,h],createRenderer:e=>new u(e)};const m={id:"@jupyterlab/vega5-extension:factory",description:"Provides a renderer for Vega 5 and Vega-Lite 3 to 5 content.",rendererFactory:p,rank:57,dataType:"json",documentWidgetFactoryOptions:[{name:"Vega5",primaryFileType:"vega5",fileTypes:["vega5","json"],defaultFor:["vega5"]},{name:"Vega-Lite5",primaryFileType:"vega-lite5",fileTypes:["vega-lite3","vega-lite4","vega-lite5","json"],defaultFor:["vega-lite3","vega-lite4","vega-lite5"]}],fileTypes:[{mimeTypes:[l],name:"vega5",extensions:[".vg",".vg.json",".vega"],icon:"ui-components:vega"},{mimeTypes:[h],name:"vega-lite5",extensions:[".vl",".vl.json",".vegalite"],icon:"ui-components:vega"},{mimeTypes:[c],name:"vega-lite4",extensions:[],icon:"ui-components:vega"},{mimeTypes:[d],name:"vega-lite3",extensions:[],icon:"ui-components:vega"}]};const g=m;var f;(function(e){function t(){if(e.vegaReady){return e.vegaReady}e.vegaReady=n.e(908).then(n.t.bind(n,40908,23));return e.vegaReady}e.ensureVega=t})(f||(f={}))},54549:(e,t,n)=>{"use strict";var i=n(10395);var s=n(85072);var o=n.n(s);var r=n(97825);var a=n.n(r);var l=n(77659);var d=n.n(l);var c=n(55056);var h=n.n(c);var u=n(10540);var p=n.n(u);var m=n(41113);var g=n.n(m);var f=n(45512);var v={};v.styleTagTransform=g();v.setAttributes=h();v.insert=d().bind(null,"head");v.domAPI=a();v.insertStyleElement=p();var _=o()(f.A,v);const b=f.A&&f.A.locals?f.A.locals:undefined},42864:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>D});var i=n(6751);var s=n(94307);var o=n(14366);var r=n(30397);var a=n(42875);var l=n(94931);var d=n(30619);var c;(function(e){e.open="workspace-ui:open";e.save="workspace-ui:save";e.saveAs="workspace-ui:save-as";e.createNew="workspace-ui:create-new";e.deleteWorkspace="workspace-ui:delete";e.clone="workspace-ui:clone";e.rename="workspace-ui:rename";e.reset="workspace-ui:reset";e.importWorkspace="workspace-ui:import";e.exportWorkspace="workspace-ui:export"})(c||(c={}));const h="jupyterlab-workspace";const u="."+h;const p="workspace-ui:lastSave";const m="jp-mod-workspace";const g={id:"@jupyterlab/workspaces-extension:commands",description:"Add workspace commands.",autoStart:true,requires:[i.IWorkspacesModel,a.IDefaultFileBrowser,o.IWindowResolver,l.IStateDB,d.ITranslator,s.JupyterFrontEnd.IPaths],provides:i.IWorkspaceCommands,optional:[s.IRouter,o.ICommandPalette],activate:(e,t,n,i,s,l,d,h,g)=>{const v=l.load("jupyterlab");const _=v.__("Naming the workspace will create a unique URL. The name may contain letters, numbers, hyphens (-), and underscores (_).");const b=r.URLExt.join(d.urls.app,"workspaces");const y=b+"/";const w="[a-zA-Z0-9\\-_]+";const C=async e=>o.InputDialog.getText({label:_,prefix:y,pattern:w,required:true,placeholder:v.__("workspace-name"),...e});const x=e=>e.classList.contains(m);e.commands.addCommand(c.open,{label:e=>{const t=e.workspace;return t?v.__("Open Workspace"):v.__("Open Workspace…")},execute:async e=>{let n=e.workspace;if(!n){const e=await o.InputDialog.getItem({title:v.__("Choose Workspace To Open"),label:v.__("Choose an existing workspace to open."),items:t.identifiers,okLabel:v.__("Choose"),prefix:y});if(!e.value||!e.button.accept){return}n=e.value}if(!n||!t.identifiers.includes(n)){return}const i=r.URLExt.join(b,n);if(!i.startsWith(b)){throw new Error("Can only be used for workspaces")}if(h){h.navigate(i,{hard:true})}else{document.location.href=i}}});e.commands.addCommand(c.deleteWorkspace,{label:v.__("Delete Workspace…"),execute:async n=>{var i;const s=e.contextMenuHitTest(x);let r=(i=n.workspace)!==null&&i!==void 0?i:s===null||s===void 0?void 0:s.dataset["context"];if(!r){const e=await o.InputDialog.getItem({title:v.__("Choose Workspace To Delete"),label:v.__("Choose an existing workspace to delete."),items:t.identifiers,okLabel:v.__("Choose")});if(!e.value||!e.button.accept){return}r=e.value}if(!r){return}const a=await(0,o.showDialog)({title:v.__("Delete workspace"),body:v.__('Deleting workspace "%1" will also delete its URL. A deleted workspace cannot be recovered.',r),buttons:[o.Dialog.cancelButton(),o.Dialog.warnButton({label:v.__("Delete")})],defaultButton:0});if(a.button.accept){await t.remove(r)}}});e.commands.addCommand(c.createNew,{label:v.__("Create New Workspace…"),execute:async e=>{let n=e.workspace;if(!n){const e=await C({title:v.__("Create New Workspace"),okLabel:v.__("Create")});if(!e.value||!e.button.accept){return}n=e.value}if(!n){return}await t.create(n)}});e.commands.addCommand(c.clone,{label:v.__("Clone Workspace…"),execute:async n=>{var s;const r=e.contextMenuHitTest(x);let a=(s=n.workspace)!==null&&s!==void 0?s:r===null||r===void 0?void 0:r.dataset["context"];if(!a){const e=await o.InputDialog.getItem({title:v.__("Choose Workspace To Clone"),label:v.__("Choose an existing workspace to clone."),items:t.identifiers,okLabel:v.__("Choose")});if(!e.value||!e.button.accept){return}a=e.value}const l=await C({title:v.__("Clone Workspace"),text:v.__("%1-clone",a),okLabel:v.__("Clone")});if(!l.button.accept||!l.value){return}let d=l.value;await t.saveAs(a,d);if(a===i.name){return e.commands.execute(c.open,{workspace:d})}}});e.commands.addCommand(c.rename,{label:v.__("Rename Workspace…"),execute:async n=>{var s,o;const r=e.contextMenuHitTest(x);const a=(o=(s=n.workspace)!==null&&s!==void 0?s:r===null||r===void 0?void 0:r.dataset["context"])!==null&&o!==void 0?o:i.name;const l=a;const d=await C({title:v.__("Rename Workspace"),text:l,okLabel:v.__("Rename")});if(!d.button.accept||!d.value){return}let h=d.value;await t.rename(a,h);if(a===i.name){return e.commands.execute(c.open,{workspace:h})}}});e.commands.addCommand(c.reset,{label:v.__("Reset Workspace…"),execute:async n=>{var s,r,a,l,d,h;const u=e.contextMenuHitTest(x);const p=(r=(s=n.workspace)!==null&&s!==void 0?s:u===null||u===void 0?void 0:u.dataset["context"])!==null&&r!==void 0?r:i.name;const m=await e.serviceManager.workspaces.fetch(p);const g=(h=(d=(l=(a=m.data["layout-restorer:data"])===null||a===void 0?void 0:a.main)===null||l===void 0?void 0:l.dock)===null||d===void 0?void 0:d.widgets)===null||h===void 0?void 0:h.length;const f=await(0,o.showDialog)({title:v.__("Reset Workspace"),body:v._n("Resetting workspace %2 will close its %1 tab and return to default layout.","Resetting workspace %2 will close its %1 tabs and return to default layout.",g,p),buttons:[o.Dialog.cancelButton(),o.Dialog.warnButton({label:v.__("Reset")})],defaultButton:0});if(!f.button.accept){return}await t.reset(p);if(p===i.name){return e.commands.execute(c.open,{workspace:p})}else{await t.refresh()}}});e.commands.addCommand(c.importWorkspace,{label:v.__("Import Workspace…"),execute:async()=>{const{contents:i}=e.serviceManager;const s=await a.FileDialog.getOpenFiles({manager:n.model.manager,title:v.__("Select Workspace Files to Import"),filter:e=>e.type==="directory"||e.path.endsWith(u)?{}:null,label:v.__('Choose one or more workspace files to import. A Jupyter workspace file has the extension "%1".',u),translator:l});if(s.button.accept&&s.value&&s.value.length>=1){for(const t of s.value){const n=await i.get(t.path,{content:true});const s=JSON.parse(n.content);await e.serviceManager.workspaces.save(s.metadata.id,s)}await t.refresh()}}});e.commands.addCommand(c.exportWorkspace,{label:v.__("Export Workspace…"),execute:async r=>{var d,c;const{contents:h}=e.serviceManager;const p=e.contextMenuHitTest(x);let m=(c=(d=r.workspace)!==null&&d!==void 0?d:p===null||p===void 0?void 0:p.dataset["context"])!==null&&c!==void 0?c:i.name;if(!m){const e=await o.InputDialog.getItem({title:v.__("Choose Workspace To Export"),label:v.__("Choose an existing workspace to export."),items:t.identifiers,okLabel:v.__("Choose")});if(!e.value||!e.button.accept){return}m=e.value}const g=e.serviceManager.workspaces.fetch(m);const _=await a.FileDialog.getExistingDirectory({title:v.__("Choose Workspace Export Directory"),defaultPath:n.model.path,manager:n.model.manager,label:v.__('The "%1" workspace will be saved in the chosen directory as "%1%2".',m,u),translator:l});if(!_.button.accept||!_.value||_.value.length===0){return}if(_.value.length>1){console.warn("More than one directory was selected; the workspace will be exported to the first directory only")}const b=_.value[0].path+"/"+m+u;if(b){await f.save(b,h,g,s,false)}}});e.commands.addCommand(c.saveAs,{label:v.__("Save Current Workspace As…"),execute:async()=>{const{contents:t}=e.serviceManager;const o=e.serviceManager.workspaces.fetch(i.name);await f.saveAs(n,t,o,s,l)}});e.commands.addCommand(c.save,{label:v.__("Save Current Workspace"),execute:async()=>{const{contents:t}=e.serviceManager;const o=e.serviceManager.workspaces.fetch(i.name);const r=await s.fetch(p);if(r===undefined){await f.saveAs(n,t,o,s,l)}else{await f.save(r,t,o,s)}}});if(g){const e=v.__("Workspaces");const t=[c.open,c.save,c.saveAs,c.createNew,c.rename,c.clone,c.exportWorkspace,c.importWorkspace,c.reset,c.deleteWorkspace];for(const n of t){g.addItem({command:n,category:e})}}return{open:c.open,deleteWorkspace:c.deleteWorkspace}}};var f;(function(e){function t(e){let t=e.split("/").pop();if(t===undefined){return"unnamed-workspace"}if(t.endsWith(u)){t=t.slice(0,-u.length)}return t}e.createNameFromPath=t;async function n(e,n,i,s,o=true){const r=t(e);if(!e.endsWith(u)){e=e+u}if(o){await s.save(p,e)}const a=await i;a.metadata.id=`${r}`;await n.save(e,{type:"file",format:"text",content:JSON.stringify(a)})}e.save=n;async function i(e,t,i,o,r){var a;r=r||d.nullTranslator;const l=await o.fetch(p);let c;if(l===undefined){c="new-workspace"}else{c=(a=l.split("/").pop())===null||a===void 0?void 0:a.split(".")[0]}const h=e.model.path+"/"+c+u;const m=await s(h,r);if(m){await n(m,t,i,o)}}e.saveAs=i;async function s(e,t){t=t||d.nullTranslator;const n=t.load("jupyterlab");const i=await o.InputDialog.getText({title:n.__("Save Current Workspace As…"),text:e,placeholder:n.__("Path to save the workspace in"),okLabel:n.__("Save"),selectionRange:e.length-u.length});if(i.button.accept){return i.value}else{return null}}})(f||(f={}));var v=n(45409);var _=n(26331);const b={id:"@jupyterlab/workspaces-extension:sidebar",description:"Populates running sidebar with workspaces.",requires:[i.IWorkspaceCommands,i.IWorkspacesModel,v.IRunningSessionManagers,o.IWindowResolver],optional:[d.ITranslator],autoStart:true,activate:async(e,t,n,i,s,o)=>{const r=(o!==null&&o!==void 0?o:d.nullTranslator).load("jupyterlab");class a{constructor(e){this._workspace=e;this.context=e.metadata.id;this.className=m}open(){return e.commands.execute(t.open,{workspace:this._workspace.metadata.id})}async shutdown(){await e.commands.execute(t.deleteWorkspace,{workspace:this._workspace.metadata.id});await n.refresh()}icon(){return s.name===this._workspace.metadata.id?_.checkIcon:_.blankIcon}label(){return this._workspace.metadata.id}labelTitle(){var e,t,n,i;return r.__("%1 workspace with %2 tabs, last modified on %3",this._workspace.metadata.id,(i=(n=(t=(e=this._workspace.data["layout-restorer:data"])===null||e===void 0?void 0:e.main)===null||t===void 0?void 0:t.dock)===null||n===void 0?void 0:n.widgets)===null||i===void 0?void 0:i.length,this._workspace.metadata["last_modified"])}}i.add({name:r.__("Workspaces"),supportsMultipleViews:false,running:()=>n.workspaces.map((e=>new a(e))),shutdownAll:async()=>{await Promise.all(n.workspaces.map((e=>n.remove(e.metadata.id))));await n.refresh()},shutdownItemIcon:_.deleteIcon,refreshRunning:async()=>{await n.refresh()},runningChanged:n.refreshed,shutdownLabel:e=>r.__("Delete %1",e.label()),shutdownAllLabel:r.__("Delete All"),shutdownAllConfirmationText:r.__("Are you sure you want to delete all workspaces? Deleted workspaces cannot be recovered.")})}};var y=n(44914);var w=n.n(y);const C=({currentWorkspace:e,identifiers:t,openWorkspace:n,translator:i})=>{const[s,o]=(0,y.useState)(false);const[r,a]=(0,y.useState)("");const l=(0,y.useRef)(null);const d=(0,y.useId)();const c=i.load("jupyterlab");const h=t.filter((e=>e.toLowerCase().includes(r.toLowerCase())));(0,y.useEffect)((()=>{const e=e=>{if(l.current&&!l.current.contains(e.target)){o(false)}};document.addEventListener("mousedown",e);return()=>document.removeEventListener("mousedown",e)}),[]);return w().createElement("div",{className:"jp-WorkspaceSelector",ref:l},w().createElement("button",{className:"jp-WorkspaceSelector-header",onClick:()=>o(!s),"aria-expanded":s,"aria-controls":d},w().createElement("span",{className:"jp-WorkspaceSelector-current"},e.length>12?`${e.slice(0,12)}...`:e),w().createElement("span",{className:"jp-WorkspaceSelector-caret"},w().createElement(_.LabIcon.resolveReact,{icon:s?_.caretUpEmptyThinIcon:_.caretDownEmptyThinIcon}))),s&&w().createElement("div",{className:"jp-WorkspaceSelector-dropdown",id:d},w().createElement("div",{className:"jp-WorkspaceSelector-search"},w().createElement("div",{className:"jp-WorkspaceSelector-searchIcon"},w().createElement(_.LabIcon.resolveReact,{icon:_.searchIcon})),w().createElement("input",{type:"text",className:"jp-WorkspaceSelector-input",placeholder:c.__("Search workspace"),value:r,onChange:e=>a(e.target.value),autoFocus:true,"aria-autocomplete":"list",role:"combobox"})),w().createElement("ul",{className:"jp-WorkspaceSelector-list",role:"listbox","aria-label":c.__("Workspace")},h.map((t=>w().createElement("li",{key:t,className:"jp-WorkspaceSelector-item",onClick:()=>{if(t===e)return;n(t);o(false)}},w().createElement(_.LabIcon.resolveReact,{icon:t===e?_.checkIcon:_.blankIcon}),t.length>12?`${t.slice(0,12)}...`:t))))))};class x extends _.ReactWidget{constructor(e){super();this.id="jp-workspace-top-indicator";this._identifiers=e.identifiers;this._openWorkspace=e.openWorkspace;this._currentWorkspace=e.currentWorkspace;this._translator=e.translator;e.model.refreshed.connect((()=>{this._identifiers=e.model.identifiers;this.update()}))}render(){return w().createElement(C,{currentWorkspace:this._currentWorkspace,identifiers:this._identifiers,openWorkspace:this._openWorkspace,translator:this._translator})}}var S=n(84739);const k={id:"@jupyterlab/workspaces-extension:model",description:"Provides a model for available workspaces.",provides:i.IWorkspacesModel,autoStart:true,activate:e=>new i.WorkspacesModel({manager:e.serviceManager.workspaces})};const j={id:"@jupyterlab/workspaces-extension:menu",description:'Populates "File" main menu with Workspaces submenu.',requires:[i.IWorkspaceCommands],autoStart:true,activate:()=>{}};const I="@jupyterlab/workspaces-extension:indicator";const E="workspace-indicator:toggle";const T={id:I,description:"Adds a workspace indicator element at topbar",requires:[i.IWorkspacesModel,i.IWorkspaceCommands,o.IWindowResolver,d.ITranslator,S.ISettingRegistry,o.IToolbarWidgetRegistry],autoStart:true,activate:async(e,t,n,i,s,o,r)=>{const a=s.load("jupyterlab");const l=async t=>{await e.commands.execute(n.open,{workspace:t})};const d=new x({currentWorkspace:i.name,identifiers:t.identifiers,openWorkspace:l,model:t,translator:s});r.addFactory("TopBar","workspaceIndicator",(()=>d));e.commands.addCommand(E,{label:a.__("Show Workspace Indicator"),isToggled:()=>d.isVisible,execute:async()=>{const e=await o.get("@jupyterlab/application-extension:top-bar","toolbar");if(Array.isArray(e.composite)){const t=e.composite.map((e=>{if(e.name==="workspaceIndicator"){return{...e,disabled:!e.disabled}}return e}));await o.set("@jupyterlab/application-extension:top-bar","toolbar",t)}}})}};const M=[k,g,b,j,T];const D=M},75591:(e,t,n)=>{"use strict";var i=n(40662);var s=n(97913);var o=n(3579);var r=n(39063);var a=n(94780);var l=n(85072);var d=n.n(l);var c=n(97825);var h=n.n(c);var u=n(77659);var p=n.n(u);var m=n(55056);var g=n.n(m);var f=n(10540);var v=n.n(f);var _=n(41113);var b=n.n(_);var y=n(52680);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.A,w);const x=y.A&&y.A.locals?y.A.locals:undefined},33352:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IWorkspaceCommands:()=>l,IWorkspacesModel:()=>d,WorkspacesModel:()=>r});var i=n(26568);var s=n(2336);const o=1e4;class r{constructor(e){var t;this._refreshed=new s.Signal(this);this._isDisposed=false;this._workspaceData={ids:[],values:[]};this._manager=e.manager;const n=e.refreshInterval||o;this._poll=new i.Poll({auto:(t=e.auto)!==null&&t!==void 0?t:true,name:"@jupyterlab/workspaces:Model",factory:()=>this._fetchList(),frequency:{interval:n,backoff:true,max:300*1e3},standby:e.refreshStandby||"when-hidden"})}get workspaces(){return this._workspaceData.values}get identifiers(){return this._workspaceData.ids}async create(e){await this._manager.save(e,{metadata:{id:e},data:{}});await this.refresh()}get refreshed(){return this._refreshed}async refresh(){await this._poll.refresh();await this._poll.tick}async rename(e,t){const n=await this._manager.fetch(e);n.metadata.id=t;await this._manager.save(t,n);await this._manager.remove(e);await this.refresh()}async reset(e){const t=await this._manager.fetch(e);t.data={};await this._manager.save(e,t);await this.refresh()}async remove(e){await this._manager.remove(e);await this.refresh()}async saveAs(e,t){const n=await this._manager.fetch(e);n.metadata.id=t;await this._manager.save(t,n);await this.refresh()}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._poll.dispose();s.Signal.clearData(this)}async _fetchList(){this._workspaceData=await this._manager.list();this._refreshed.emit(void 0)}}var a=n(5592);const l=new a.Token("@jupyterlab/workspaces:IWorkspaceCommands","Provides identifiers of workspace commands.");const d=new a.Token("@jupyterlab/workspaces:IWorkspacesModel","Provides a model for available workspaces.")},56588:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ArrayExt:()=>i,StringExt:()=>I,chain:()=>s,each:()=>g,empty:()=>o,enumerate:()=>r,every:()=>f,filter:()=>a,find:()=>l,findIndex:()=>d,map:()=>_,max:()=>h,min:()=>c,minmax:()=>u,once:()=>x,range:()=>b,reduce:()=>w,repeat:()=>C,retro:()=>S,some:()=>v,stride:()=>j,take:()=>E,toArray:()=>p,toObject:()=>m,topologicSort:()=>k,zip:()=>T});var i;(function(e){function t(e,t,n=0,i=-1){let s=e.length;if(s===0){return-1}if(n<0){n=Math.max(0,n+s)}else{n=Math.min(n,s-1)}if(i<0){i=Math.max(0,i+s)}else{i=Math.min(i,s-1)}let o;if(i0){let i=a>>1;let s=r+i;if(n(e[s],t)<0){r=s+1;a-=i+1}else{a=i}}return r}e.lowerBound=a;function l(e,t,n,i=0,s=-1){let o=e.length;if(o===0){return 0}if(i<0){i=Math.max(0,i+o)}else{i=Math.min(i,o-1)}if(s<0){s=Math.max(0,s+o)}else{s=Math.min(s,o-1)}let r=i;let a=s-i+1;while(a>0){let i=a>>1;let s=r+i;if(n(e[s],t)>0){a=i}else{r=s+1;a-=i+1}}return r}e.upperBound=l;function d(e,t,n){if(e===t){return true}if(e.length!==t.length){return false}for(let i=0,s=e.length;i=o){n=s<0?o-1:o}if(i===undefined){i=s<0?-1:o}else if(i<0){i=Math.max(i+o,s<0?-1:0)}else if(i>=o){i=s<0?o-1:o}let r;if(s<0&&i>=n||s>0&&n>=i){r=0}else if(s<0){r=Math.floor((i-n+1)/s+1)}else{r=Math.floor((i-n-1)/s+1)}let a=[];for(let l=0;l=i){return}let o=i-n+1;if(t>0){t=t%o}else if(t<0){t=(t%o+o)%o}if(t===0){return}let r=n+t;u(e,n,r-1);u(e,r,i);u(e,n,i)}e.rotate=p;function m(e,t,n=0,i=-1){let s=e.length;if(s===0){return}if(n<0){n=Math.max(0,n+s)}else{n=Math.min(n,s-1)}if(i<0){i=Math.max(0,i+s)}else{i=Math.min(i,s-1)}let o;if(it;--s){e[s]=e[s-1]}e[t]=n}e.insert=g;function f(e,t){let n=e.length;if(t<0){t+=n}if(t<0||t>=n){return undefined}let i=e[t];for(let s=t+1;s=n&&r<=i&&e[r]===t){o++}else if(i=n)&&e[r]===t){o++}else if(o>0){e[r-o]=e[r]}}if(o>0){e.length=s-o}return o}e.removeAllOf=b;function y(e,t,n=0,s=-1){let o;let r=i(e,t,n,s);if(r!==-1){o=f(e,r)}return{index:r,value:o}}e.removeFirstWhere=y;function w(e,t,n=-1,i=0){let o;let r=s(e,t,n,i);if(r!==-1){o=f(e,r)}return{index:r,value:o}}e.removeLastWhere=w;function C(e,t,n=0,i=-1){let s=e.length;if(s===0){return 0}if(n<0){n=Math.max(0,n+s)}else{n=Math.min(n,s-1)}if(i<0){i=Math.max(0,i+s)}else{i=Math.min(i,s-1)}let o=0;for(let r=0;r=n&&r<=i&&t(e[r],r)){o++}else if(i=n)&&t(e[r],r)){o++}else if(o>0){e[r-o]=e[r]}}if(o>0){e.length=s-o}return o}e.removeAllWhere=C})(i||(i={}));function*s(...e){for(const t of e){yield*t}}function*o(){return}function*r(e,t=0){for(const n of e){yield[t++,n]}}function*a(e,t){let n=0;for(const i of e){if(t(i,n++)){yield i}}}function l(e,t){let n=0;for(const i of e){if(t(i,n++)){return i}}return undefined}function d(e,t){let n=0;for(const i of e){if(t(i,n++)){return n-1}}return-1}function c(e,t){let n=undefined;for(const i of e){if(n===undefined){n=i;continue}if(t(i,n)<0){n=i}}return n}function h(e,t){let n=undefined;for(const i of e){if(n===undefined){n=i;continue}if(t(i,n)>0){n=i}}return n}function u(e,t){let n=true;let i;let s;for(const o of e){if(n){i=o;s=o;n=false}else if(t(o,i)<0){i=o}else if(t(o,s)>0){s=o}}return n?undefined:[i,s]}function p(e){return Array.from(e)}function m(e){const t={};for(const[n,i]of e){t[n]=i}return t}function g(e,t){let n=0;for(const i of e){if(false===t(i,n++)){return}}}function f(e,t){let n=0;for(const i of e){if(false===t(i,n++)){return false}}return true}function v(e,t){let n=0;for(const i of e){if(t(i,n++)){return true}}return false}function*_(e,t){let n=0;for(const i of e){yield t(i,n++)}}function*b(e,t,n){if(t===undefined){t=e;e=0;n=1}else if(n===undefined){n=1}const i=y.rangeLength(e,t,n);for(let s=0;st&&n>0){return 0}if(e-1;t--){yield e[t]}}}function k(e){let t=[];let n=new Set;let i=new Map;for(const r of e){s(r)}for(const[r]of i){o(r)}return t;function s(e){let[t,n]=e;let s=i.get(n);if(s){s.push(t)}else{i.set(n,[t])}}function o(e){if(n.has(e)){return}n.add(e);let s=i.get(e);if(s){for(const e of s){o(e)}}t.push(e)}}function*j(e,t){let n=0;for(const i of e){if(0===n++%t){yield i}}}var I;(function(e){function t(e,t,n=0){let i=new Array(t.length);for(let s=0,o=n,r=t.length;st?1:0}e.cmp=o})(I||(I={}));function*E(e,t){if(t<1){return}const n=e[Symbol.iterator]();let i;while(0e[Symbol.iterator]()));let n=t.map((e=>e.next()));for(;f(n,(e=>!e.done));n=t.map((e=>e.next()))){yield n.map((e=>e.value))}}},86397:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Application:()=>d});var i=n(93247);var s=n.n(i);var o=n(5592);var r=n.n(o);var a=n(1143);var l=n.n(a);class d{constructor(e){var t;this._delegate=new o.PromiseDelegate;this._started=false;this._bubblingKeydown=false;this.pluginRegistry=(t=e.pluginRegistry)!==null&&t!==void 0?t:new o.PluginRegistry(e);this.pluginRegistry.application=this;this.commands=new i.CommandRegistry;this.contextMenu=new a.ContextMenu({commands:this.commands,renderer:e.contextMenuRenderer});this.shell=e.shell}get deferredPlugins(){return this.pluginRegistry.deferredPlugins}get started(){return this._delegate.promise}async activateDeferredPlugins(){await this.pluginRegistry.activatePlugins("defer")}async activatePlugin(e){return this.pluginRegistry.activatePlugin(e)}async deactivatePlugin(e){return this.pluginRegistry.deactivatePlugin(e)}deregisterPlugin(e,t){this.pluginRegistry.deregisterPlugin(e,t)}getPluginDescription(e){return this.pluginRegistry.getPluginDescription(e)}hasPlugin(e){return this.pluginRegistry.hasPlugin(e)}isPluginActivated(e){return this.pluginRegistry.isPluginActivated(e)}listPlugins(){return this.pluginRegistry.listPlugins()}registerPlugin(e){this.pluginRegistry.registerPlugin(e)}registerPlugins(e){this.pluginRegistry.registerPlugins(e)}async resolveOptionalService(e){return this.pluginRegistry.resolveOptionalService(e)}async resolveRequiredService(e){return this.pluginRegistry.resolveRequiredService(e)}async start(e={}){var t,n;if(this._started){return this._delegate.promise}this._started=true;this._bubblingKeydown=(t=e.bubblingKeydown)!==null&&t!==void 0?t:false;const i=(n=e.hostID)!==null&&n!==void 0?n:"";await this.pluginRegistry.activatePlugins("startUp",e);this.attachShell(i);this.addEventListeners();this._delegate.resolve()}handleEvent(e){switch(e.type){case"resize":this.evtResize(e);break;case"keydown":this.evtKeydown(e);break;case"keyup":this.evtKeyup(e);break;case"contextmenu":this.evtContextMenu(e);break}}attachShell(e){a.Widget.attach(this.shell,e&&document.getElementById(e)||document.body)}addEventListeners(){document.addEventListener("contextmenu",this);document.addEventListener("keydown",this,!this._bubblingKeydown);document.addEventListener("keyup",this,!this._bubblingKeydown);window.addEventListener("resize",this)}evtKeydown(e){this.commands.processKeydownEvent(e)}evtKeyup(e){this.commands.processKeyupEvent(e)}evtContextMenu(e){if(e.shiftKey){return}if(this.contextMenu.open(e)){e.preventDefault();e.stopPropagation()}}evtResize(e){this.shell.update()}}},893:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CommandRegistry:()=>g});var i=n(34236);var s=n.n(i);var o=n(5592);var r=n.n(o);var a=n(90044);var l=n.n(a);var d=n(76326);var c=n.n(d);var h=n(77162);var u=n.n(h);var p=n(2336);var m=n.n(p);class g{constructor(){this._timerID=0;this._timerModifierID=0;this._replaying=false;this._keystrokes=[];this._keydownEvents=[];this._keyBindings=[];this._exactKeyMatch=null;this._commands=new Map;this._commandChanged=new p.Signal(this);this._commandExecuted=new p.Signal(this);this._keyBindingChanged=new p.Signal(this);this._holdKeyBindingPromises=new Map}get commandChanged(){return this._commandChanged}get commandExecuted(){return this._commandExecuted}get keyBindingChanged(){return this._keyBindingChanged}get keyBindings(){return this._keyBindings}listCommands(){return Array.from(this._commands.keys())}hasCommand(e){return this._commands.has(e)}addCommand(e,t){if(this._commands.has(e)){throw new Error(`Command '${e}' already registered.`)}this._commands.set(e,f.createCommand(t));this._commandChanged.emit({id:e,type:"added"});return new a.DisposableDelegate((()=>{this._commands.delete(e);this._commandChanged.emit({id:e,type:"removed"})}))}notifyCommandChanged(e){if(e!==undefined&&!this._commands.has(e)){throw new Error(`Command '${e}' is not registered.`)}this._commandChanged.emit({id:e,type:e?"changed":"many-changed"})}describedBy(e,t=o.JSONExt.emptyObject){var n;let i=this._commands.get(e);return Promise.resolve((n=i===null||i===void 0?void 0:i.describedBy.call(undefined,t))!==null&&n!==void 0?n:{args:null})}label(e,t=o.JSONExt.emptyObject){var n;let i=this._commands.get(e);return(n=i===null||i===void 0?void 0:i.label.call(undefined,t))!==null&&n!==void 0?n:""}mnemonic(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.mnemonic.call(undefined,t):-1}icon(e,t=o.JSONExt.emptyObject){var n;return(n=this._commands.get(e))===null||n===void 0?void 0:n.icon.call(undefined,t)}iconClass(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.iconClass.call(undefined,t):""}iconLabel(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.iconLabel.call(undefined,t):""}caption(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.caption.call(undefined,t):""}usage(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.usage.call(undefined,t):""}className(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.className.call(undefined,t):""}dataset(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.dataset.call(undefined,t):{}}isEnabled(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.isEnabled.call(undefined,t):false}isToggled(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.isToggled.call(undefined,t):false}isToggleable(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.isToggleable:false}isVisible(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.isVisible.call(undefined,t):false}execute(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);if(!n){return Promise.reject(new Error(`Command '${e}' not registered.`))}let i;try{i=n.execute.call(undefined,t)}catch(r){i=Promise.reject(r)}let s=Promise.resolve(i);this._commandExecuted.emit({id:e,args:t,result:s});return s}addKeyBinding(e){let t=f.createKeyBinding(e);this._keyBindings.push(t);this._keyBindingChanged.emit({binding:t,type:"added"});return new a.DisposableDelegate((()=>{i.ArrayExt.removeFirstOf(this._keyBindings,t);this._keyBindingChanged.emit({binding:t,type:"removed"})}))}processKeydownEvent(e){if(e.defaultPrevented||this._replaying){return}const t=g.keystrokeForKeydownEvent(e);if(!t){this._replayKeydownEvents();this._clearPendingState();return}if(g.isModifierKeyPressed(e)){let{exact:n}=f.matchKeyBinding(this._keyBindings,[t],e);if(n){e.preventDefault();e.stopPropagation();this._startModifierTimer(n)}else{this._clearModifierTimer()}return}this._keystrokes.push(t);const{exact:n,partial:i}=f.matchKeyBinding(this._keyBindings,this._keystrokes,e);const s=i.length!==0;if(!n&&!s){this._replayKeydownEvents();this._clearPendingState();return}if((n===null||n===void 0?void 0:n.preventDefault)||i.some((e=>e.preventDefault))){e.preventDefault();e.stopPropagation()}this._keydownEvents.push(e);if(n&&!s){this._executeKeyBinding(n);this._clearPendingState();return}if(n){this._exactKeyMatch=n}this._startTimer()}holdKeyBindingExecution(e,t){this._holdKeyBindingPromises.set(e,t)}processKeyupEvent(e){this._clearModifierTimer()}_startModifierTimer(e){this._clearModifierTimer();this._timerModifierID=window.setTimeout((()=>{this._executeKeyBinding(e)}),f.modifierkeyTimeOut)}_clearModifierTimer(){if(this._timerModifierID!==0){clearTimeout(this._timerModifierID);this._timerModifierID=0}}_startTimer(){this._clearTimer();this._timerID=window.setTimeout((()=>{this._onPendingTimeout()}),f.CHORD_TIMEOUT)}_clearTimer(){if(this._timerID!==0){clearTimeout(this._timerID);this._timerID=0}}_replayKeydownEvents(){if(this._keydownEvents.length===0){return}this._replaying=true;this._keydownEvents.forEach(f.replayKeyEvent);this._replaying=false}async _executeKeyBinding(e){if(this._holdKeyBindingPromises.size!==0){const e=[...this._keydownEvents];const t=(await Promise.race([Promise.all(e.map((async e=>{var t;return(t=this._holdKeyBindingPromises.get(e))!==null&&t!==void 0?t:Promise.resolve(true)}))),new Promise((e=>{setTimeout((()=>e([false])),f.KEYBINDING_HOLD_TIMEOUT)}))])).every(Boolean);this._holdKeyBindingPromises.clear();if(!t){return}}let{command:t,args:n}=e;let i={_luminoEvent:{type:"keybinding",keys:e.keys},...n};if(!this.hasCommand(t)||!this.isEnabled(t,i)){let n=this.hasCommand(t)?"enabled":"registered";let i=e.keys.join(", ");let s=`Cannot execute key binding '${i}':`;let o=`command '${t}' is not ${n}.`;console.warn(`${s} ${o}`);return}await this.execute(t,i)}_clearPendingState(){this._clearTimer();this._clearModifierTimer();this._exactKeyMatch=null;this._keystrokes.length=0;this._keydownEvents.length=0}_onPendingTimeout(){this._timerID=0;if(this._exactKeyMatch){this._executeKeyBinding(this._exactKeyMatch)}else{this._replayKeydownEvents()}this._clearPendingState()}}(function(e){function t(e){let t="";let n=false;let i=false;let s=false;let o=false;for(let r of e.split(/\s+/)){if(r==="Accel"){if(d.Platform.IS_MAC){i=true}else{s=true}}else if(r==="Alt"){n=true}else if(r==="Cmd"){i=true}else if(r==="Ctrl"){s=true}else if(r==="Shift"){o=true}else if(r.length>0){t=r}}return{cmd:i,ctrl:s,alt:n,shift:o,key:t}}e.parseKeystroke=t;function n(e){let n="";let i=t(e);if(i.ctrl){n+="Ctrl "}if(i.alt){n+="Alt "}if(i.shift){n+="Shift "}if(i.cmd&&d.Platform.IS_MAC){n+="Cmd "}if(!i.key){return n.trim()}return n+i.key}e.normalizeKeystroke=n;function i(e){let t;if(d.Platform.IS_WIN){t=e.winKeys||e.keys}else if(d.Platform.IS_MAC){t=e.macKeys||e.keys}else{t=e.linuxKeys||e.keys}return t.map(n)}e.normalizeKeys=i;function s(e){return typeof e==="string"?n(e):e.map(n).join(", ");function n(e){let n=[];let i=d.Platform.IS_MAC?" ":"+";let s=t(e);if(s.ctrl){n.push("Ctrl")}if(s.alt){n.push("Alt")}if(s.shift){n.push("Shift")}if(d.Platform.IS_MAC&&s.cmd){n.push("Cmd")}n.push(s.key);return n.map(f.formatKey).join(i)}}e.formatKeystroke=s;function o(e){let t=(0,h.getKeyboardLayout)();let n=t.keyForKeydownEvent(e);return t.isModifierKey(n)}e.isModifierKeyPressed=o;function r(e){let t=(0,h.getKeyboardLayout)();let n=t.keyForKeydownEvent(e);let i=[];if(e.ctrlKey){i.push("Ctrl")}if(e.altKey){i.push("Alt")}if(e.shiftKey){i.push("Shift")}if(e.metaKey&&d.Platform.IS_MAC){i.push("Cmd")}if(!t.isModifierKey(n)){i.push(n)}return i.join(" ")}e.keystrokeForKeydownEvent=r})(g||(g={}));var f;(function(e){e.CHORD_TIMEOUT=1e3;e.KEYBINDING_HOLD_TIMEOUT=1e3;e.modifierkeyTimeOut=500;function t(e){return{execute:e.execute,describedBy:v(typeof e.describedBy==="function"?e.describedBy:{args:null,...e.describedBy},(()=>({args:null}))),label:v(e.label,c),mnemonic:v(e.mnemonic,h),icon:v(e.icon,f),iconClass:v(e.iconClass,c),iconLabel:v(e.iconLabel,c),caption:v(e.caption,c),usage:v(e.usage,c),className:v(e.className,c),dataset:v(e.dataset,m),isEnabled:e.isEnabled||u,isToggled:e.isToggled||p,isToggleable:e.isToggleable||!!e.isToggled,isVisible:e.isVisible||u}}e.createCommand=t;function n(e){var t;return{keys:g.normalizeKeys(e),selector:_(e),command:e.command,args:e.args||o.JSONExt.emptyObject,preventDefault:(t=e.preventDefault)!==null&&t!==void 0?t:true}}e.createKeyBinding=n;function i(e,t,n){let i=null;let s=[];let o=Infinity;let r=0;for(let a=0,l=e.length;ao){continue}let u=d.Selector.calculateSpecificity(l.selector);if(!i||h=r){i=l;o=h;r=u}}return{exact:i,partial:s}}e.matchKeyBinding=i;function s(e){e.target.dispatchEvent(w(e))}e.replayKeyEvent=s;function r(e){if(d.Platform.IS_MAC){return a.hasOwnProperty(e)?a[e]:e}else{return l.hasOwnProperty(e)?l[e]:e}}e.formatKey=r;const a={Backspace:"⌫",Tab:"⇥",Enter:"⏎",Shift:"⇧",Ctrl:"⌃",Alt:"⌥",Escape:"⎋",PageUp:"⇞",PageDown:"⇟",End:"↘",Home:"↖",ArrowLeft:"←",ArrowUp:"↑",ArrowRight:"→",ArrowDown:"↓",Delete:"⌦",Cmd:"⌘"};const l={Escape:"Esc",PageUp:"Page Up",PageDown:"Page Down",ArrowLeft:"Left",ArrowUp:"Up",ArrowRight:"Right",ArrowDown:"Down",Delete:"Del"};const c=()=>"";const h=()=>-1;const u=()=>true;const p=()=>false;const m=()=>({});const f=()=>undefined;function v(e,t){if(e===undefined){return t}if(typeof e==="function"){return e}return()=>e}function _(e){if(e.selector.indexOf(",")!==-1){throw new Error(`Selector cannot contain commas: ${e.selector}`)}if(!d.Selector.isValid(e.selector)){throw new Error(`Invalid selector: ${e.selector}`)}return e.selector}function b(e,t){if(e.lengtht.length){return 2}return 1}function y(e,t){let n=t.target;let i=t.currentTarget;for(let s=0;n!==null;n=n.parentElement,++s){if(n.hasAttribute("data-lm-suppress-shortcuts")){return-1}if(d.Selector.matches(n,e)){return s}if(n===i){return-1}}return-1}function w(e){let t=document.createEvent("Event");let n=e.bubbles||true;let i=e.cancelable||true;t.initEvent(e.type||"keydown",n,i);t.key=e.key||"";t.keyCode=e.keyCode||0;t.which=e.keyCode||0;t.ctrlKey=e.ctrlKey||false;t.altKey=e.altKey||false;t.shiftKey=e.shiftKey||false;t.metaKey=e.metaKey||false;t.view=e.view||window;return t}})(f||(f={}))},45899:function(e,t,n){(function(e,i){true?i(t,n(34236)):0})(this,(function(e,t){"use strict";e.JSONExt=void 0;(function(e){e.emptyObject=Object.freeze({});e.emptyArray=Object.freeze([]);function t(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"}e.isPrimitive=t;function n(e){return Array.isArray(e)}e.isArray=n;function i(e){return!t(e)&&!n(e)}e.isObject=i;function s(e,i){if(e===i){return true}if(t(e)||t(i)){return false}let s=n(e);let o=n(i);if(s!==o){return false}if(s&&o){return r(e,i)}return a(e,i)}e.deepEqual=s;function o(e){if(t(e)){return e}if(n(e)){return l(e)}return d(e)}e.deepCopy=o;function r(e,t){if(e===t){return true}if(e.length!==t.length){return false}for(let n=0,i=e.length;ntrue;this._plugins=new Map;this._services=new Map;if(e.validatePlugin){console.info("Plugins may be rejected by the custom validation plugin method.");this._validatePlugin=e.validatePlugin}}get application(){return this._application}set application(e){if(this._application!==null){throw Error("PluginRegistry.application is already set. It cannot be overridden.")}this._application=e}get deferredPlugins(){return Array.from(this._plugins).filter((([e,t])=>t.autoStart==="defer")).map((([e,t])=>e))}getPluginDescription(e){var t,n;return(n=(t=this._plugins.get(e))===null||t===void 0?void 0:t.description)!==null&&n!==void 0?n:""}hasPlugin(e){return this._plugins.has(e)}isPluginActivated(e){var t,n;return(n=(t=this._plugins.get(e))===null||t===void 0?void 0:t.activated)!==null&&n!==void 0?n:false}listPlugins(){return Array.from(this._plugins.keys())}registerPlugin(e){if(this._plugins.has(e.id)){throw new TypeError(`Plugin '${e.id}' is already registered.`)}if(!this._validatePlugin(e)){throw new Error(`Plugin '${e.id}' is not valid.`)}const t=s.createPluginData(e);s.ensureNoCycle(t,this._plugins,this._services);if(t.provides){this._services.set(t.provides,t.id)}this._plugins.set(t.id,t)}registerPlugins(e){for(const t of e){this.registerPlugin(t)}}deregisterPlugin(e,t){const n=this._plugins.get(e);if(!n){return}if(n.activated&&!t){throw new Error(`Plugin '${e}' is still active.`)}this._plugins.delete(e)}async activatePlugin(e){const t=this._plugins.get(e);if(!t){throw new ReferenceError(`Plugin '${e}' is not registered.`)}if(t.activated){return}if(t.promise){return t.promise}const n=t.requires.map((e=>this.resolveRequiredService(e)));const i=t.optional.map((e=>this.resolveOptionalService(e)));t.promise=Promise.all([...n,...i]).then((e=>t.activate.apply(undefined,[this.application,...e]))).then((e=>{t.service=e;t.activated=true;t.promise=null})).catch((e=>{t.promise=null;throw e}));return t.promise}async activatePlugins(e,t={}){switch(e){case"defer":{const e=this.deferredPlugins.filter((e=>this._plugins.get(e).autoStart)).map((e=>this.activatePlugin(e)));await Promise.all(e);break}case"startUp":{const e=s.collectStartupPlugins(this._plugins,t);const n=e.map((async e=>{try{return await this.activatePlugin(e)}catch(t){console.error(`Plugin '${e}' failed to activate.`,t)}}));await Promise.all(n);break}}}async deactivatePlugin(e){const t=this._plugins.get(e);if(!t){throw new ReferenceError(`Plugin '${e}' is not registered.`)}if(!t.activated){return[]}if(!t.deactivate){throw new TypeError(`Plugin '${e}'#deactivate() method missing`)}const n=s.findDependents(e,this._plugins,this._services);const i=n.map((e=>this._plugins.get(e)));for(const s of i){if(!s.deactivate){throw new TypeError(`Plugin ${s.id}#deactivate() method missing (depends on ${e})`)}}for(const s of i){const e=[...s.requires,...s.optional].map((e=>{const t=this._services.get(e);return t?this._plugins.get(t).service:null}));await s.deactivate(this.application,...e);s.service=null;s.activated=false}n.pop();return n}async resolveRequiredService(e){const t=this._services.get(e);if(!t){throw new TypeError(`No provider for: ${e.name}.`)}const n=this._plugins.get(t);if(!n.activated){await this.activatePlugin(t)}return n.service}async resolveOptionalService(e){const t=this._services.get(e);if(!t){return null}const n=this._plugins.get(t);if(!n.activated){try{await this.activatePlugin(t)}catch(i){console.error(i);return null}}return n.service}}var s;(function(e){class n{constructor(e){var t,n,i,s;this._activated=false;this._promise=null;this._service=null;this.id=e.id;this.description=(t=e.description)!==null&&t!==void 0?t:"";this.activate=e.activate;this.deactivate=(n=e.deactivate)!==null&&n!==void 0?n:null;this.provides=(i=e.provides)!==null&&i!==void 0?i:null;this.autoStart=(s=e.autoStart)!==null&&s!==void 0?s:false;this.requires=e.requires?e.requires.slice():[];this.optional=e.optional?e.optional.slice():[]}get activated(){return this._activated}set activated(e){this._activated=e}get service(){return this._service}set service(e){this._service=e}get promise(){return this._promise}set promise(e){this._promise=e}}function i(e){return new n(e)}e.createPluginData=i;function s(e,t,n){const i=[...e.requires,...e.optional];const s=i=>{if(i===e.provides){return true}const r=n.get(i);if(!r){return false}const a=t.get(r);const l=[...a.requires,...a.optional];if(l.length===0){return false}o.push(r);if(l.some(s)){return true}o.pop();return false};if(!e.provides||i.length===0){return}const o=[e.id];if(i.some(s)){throw new ReferenceError(`Cycle detected: ${o.join(" -> ")}.`)}}e.ensureNoCycle=s;function o(e,n,i){const s=new Array;const o=e=>{const t=n.get(e);const o=[...t.requires,...t.optional];s.push(...o.reduce(((t,n)=>{const s=i.get(n);if(s){t.push([e,s])}return t}),[]))};for(const t of n.keys()){o(t)}const r=s.filter((t=>t[1]===e));let a=0;while(r.length>a){const e=r.length;const t=new Set(r.map((e=>e[0])));for(const n of t){s.filter((e=>e[1]===n)).forEach((e=>{if(!r.includes(e)){r.push(e)}}))}a=e}const l=t.topologicSort(r);const d=l.findIndex((t=>t===e));if(d===-1){return[e]}return l.slice(0,d+1)}e.findDependents=o;function r(e,t){const n=new Set;for(const i of e.keys()){if(e.get(i).autoStart===true){n.add(i)}}if(t.startPlugins){for(const e of t.startPlugins){n.add(e)}}if(t.ignorePlugins){for(const e of t.ignorePlugins){n.delete(e)}}return Array.from(n)}e.collectStartupPlugins=r})(s||(s={}));class o{constructor(){this.promise=new Promise(((e,t)=>{this._resolve=e;this._reject=t}))}resolve(e){let t=this._resolve;t(e)}reject(e){let t=this._reject;t(e)}}class r{constructor(e,t){this.name=e;this.description=t!==null&&t!==void 0?t:"";this._tokenStructuralPropertyT=null}}function a(e){let t=0;for(let n=0,i=e.length;n>>0}e[n]=t&255;t>>>=8}}e.Random=void 0;(function(e){e.getRandomValues=(()=>{const e=typeof window!=="undefined"&&(window.crypto||window.msCrypto)||null;if(e&&typeof e.getRandomValues==="function"){return function t(n){return e.getRandomValues(n)}}return a})()})(e.Random||(e.Random={}));function l(e){const t=new Uint8Array(16);const n=new Array(256);for(let i=0;i<16;++i){n[i]="0"+i.toString(16)}for(let i=16;i<256;++i){n[i]=i.toString(16)}return function i(){e(t);t[6]=64|t[6]&15;t[8]=128|t[8]&63;return n[t[0]]+n[t[1]]+n[t[2]]+n[t[3]]+"-"+n[t[4]]+n[t[5]]+"-"+n[t[6]]+n[t[7]]+"-"+n[t[8]]+n[t[9]]+"-"+n[t[10]]+n[t[11]]+n[t[12]]+n[t[13]]+n[t[14]]+n[t[15]]}}e.UUID=void 0;(function(t){t.uuid4=l(e.Random.getRandomValues)})(e.UUID||(e.UUID={}));e.MimeData=n;e.PluginRegistry=i;e.PromiseDelegate=o;e.Token=r}))},20785:(e,t,n)=>{"use strict";n.r(t);n.d(t,{DisposableDelegate:()=>o,DisposableSet:()=>a,ObservableDisposableDelegate:()=>r,ObservableDisposableSet:()=>l});var i=n(2336);var s=n.n(i);class o{constructor(e){this._fn=e}get isDisposed(){return!this._fn}dispose(){if(!this._fn){return}let e=this._fn;this._fn=null;e()}}class r extends o{constructor(){super(...arguments);this._disposed=new i.Signal(this)}get disposed(){return this._disposed}dispose(){if(this.isDisposed){return}super.dispose();this._disposed.emit(undefined);i.Signal.clearData(this)}}class a{constructor(){this._isDisposed=false;this._items=new Set}get isDisposed(){return this._isDisposed}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._items.forEach((e=>{e.dispose()}));this._items.clear()}contains(e){return this._items.has(e)}add(e){this._items.add(e)}remove(e){this._items.delete(e)}clear(){this._items.clear()}}(function(e){function t(t){let n=new e;for(const e of t){n.add(e)}return n}e.from=t})(a||(a={}));class l extends a{constructor(){super(...arguments);this._disposed=new i.Signal(this)}get disposed(){return this._disposed}dispose(){if(this.isDisposed){return}super.dispose();this._disposed.emit(undefined);i.Signal.clearData(this)}}(function(e){function t(t){let n=new e;for(const e of t){n.add(e)}return n}e.from=t})(l||(l={}))},60008:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ClipboardExt:()=>i,ElementExt:()=>s,Platform:()=>o,Selector:()=>r});var i;(function(e){function t(e){const t=document.body;const n=i=>{i.preventDefault();i.stopPropagation();i.clipboardData.setData("text",e);t.removeEventListener("copy",n,true)};t.addEventListener("copy",n,true);document.execCommand("copy")}e.copyText=t})(i||(i={}));var s;(function(e){function t(e){let t=window.getComputedStyle(e);let n=parseFloat(t.borderTopWidth)||0;let i=parseFloat(t.borderLeftWidth)||0;let s=parseFloat(t.borderRightWidth)||0;let o=parseFloat(t.borderBottomWidth)||0;let r=parseFloat(t.paddingTop)||0;let a=parseFloat(t.paddingLeft)||0;let l=parseFloat(t.paddingRight)||0;let d=parseFloat(t.paddingBottom)||0;let c=i+a+l+s;let h=n+r+d+o;return{borderTop:n,borderLeft:i,borderRight:s,borderBottom:o,paddingTop:r,paddingLeft:a,paddingRight:l,paddingBottom:d,horizontalSum:c,verticalSum:h}}e.boxSizing=t;function n(e){let t=window.getComputedStyle(e);let n=parseFloat(t.minWidth)||0;let i=parseFloat(t.minHeight)||0;let s=parseFloat(t.maxWidth)||Infinity;let o=parseFloat(t.maxHeight)||Infinity;s=Math.max(n,s);o=Math.max(i,o);return{minWidth:n,minHeight:i,maxWidth:s,maxHeight:o}}e.sizeLimits=n;function i(e,t,n){let i=e.getBoundingClientRect();return t>=i.left&&t=i.top&&n=n.bottom){return}if(i.topn.bottom&&i.height>=n.height){e.scrollTop-=n.top-i.top;return}if(i.topn.height){e.scrollTop-=n.bottom-i.bottom;return}if(i.bottom>n.bottom&&i.height{let e=Element.prototype;return e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){let t=this;let n=t.ownerDocument?t.ownerDocument.querySelectorAll(e):[];return Array.prototype.indexOf.call(n,t)!==-1}})();function t(e){e=e.split(",",1)[0];let t=0;let c=0;let h=0;function u(t){let n=e.match(t);if(n===null){return false}e=e.slice(n[0].length);return true}e=e.replace(d," $1 ");while(e.length>0){if(u(n)){t++;continue}if(u(i)){c++;continue}if(u(s)){c++;continue}if(u(r)){h++;continue}if(u(a)){c++;continue}if(u(o)){h++;continue}if(u(l)){continue}return 0}t=Math.min(t,255);c=Math.min(c,255);h=Math.min(h,255);return t<<16|c<<8|h}e.calculateSingle=t;const n=/^#[^\s\+>~#\.\[:]+/;const i=/^\.[^\s\+>~#\.\[:]+/;const s=/^\[[^\]]+\]/;const o=/^[^\s\+>~#\.\[:]+/;const r=/^(::[^\s\+>~#\.\[:]+|:first-line|:first-letter|:before|:after)/;const a=/^:[^\s\+>~#\.\[:]+/;const l=/^[\s\+>~\*]+/;const d=/:not\(([^\)]+)\)/g})(a||(a={}))},1506:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Drag:()=>o});var i=n(90044);var s=n.n(i);class o{constructor(e){this._onScrollFrame=()=>{if(!this._scrollTarget){return}let{element:e,edge:t,distance:n}=this._scrollTarget;let i=r.SCROLL_EDGE_SIZE-n;let s=Math.pow(i/r.SCROLL_EDGE_SIZE,2);let o=Math.max(1,Math.round(s*r.SCROLL_EDGE_SIZE));switch(t){case"top":e.scrollTop-=o;break;case"left":e.scrollLeft-=o;break;case"right":e.scrollLeft+=o;break;case"bottom":e.scrollTop+=o;break}requestAnimationFrame(this._onScrollFrame)};this._disposed=false;this._dropAction="none";this._override=null;this._currentTarget=null;this._currentElement=null;this._promise=null;this._scrollTarget=null;this._resolve=null;this.document=e.document||document;this.mimeData=e.mimeData;this.dragImage=e.dragImage||null;this.proposedAction=e.proposedAction||"copy";this.supportedActions=e.supportedActions||"all";this.source=e.source||null}dispose(){if(this._disposed){return}this._disposed=true;if(this._currentTarget){let e=new PointerEvent("pointerup",{bubbles:true,cancelable:true,clientX:-1,clientY:-1});r.dispatchDragLeave(this,this._currentTarget,null,e)}this._finalize("none")}get isDisposed(){return this._disposed}start(e,t){if(this._disposed){return Promise.resolve("none")}if(this._promise){return this._promise}this._addListeners();this._attachDragImage(e,t);this._promise=new Promise((e=>{this._resolve=e}));let n=new PointerEvent("pointermove",{bubbles:true,cancelable:true,clientX:e,clientY:t});document.dispatchEvent(n);return this._promise}handleEvent(e){switch(e.type){case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;default:e.preventDefault();e.stopPropagation();break}}moveDragImage(e,t){if(!this.dragImage){return}let n=this.dragImage.style;n.transform=`translate(${e}px, ${t}px)`}_evtPointerMove(e){e.preventDefault();e.stopPropagation();this._updateCurrentTarget(e);this._updateDragScroll(e);this.moveDragImage(e.clientX,e.clientY)}_evtPointerUp(e){e.preventDefault();e.stopPropagation();if(e.button!==0){return}this._updateCurrentTarget(e);if(!this._currentTarget){this._finalize("none");return}if(this._dropAction==="none"){r.dispatchDragLeave(this,this._currentTarget,null,e);this._finalize("none");return}let t=r.dispatchDrop(this,this._currentTarget,e);this._finalize(t)}_evtKeyDown(e){e.preventDefault();e.stopPropagation();if(e.keyCode===27){this.dispose()}}_addListeners(){document.addEventListener("pointerdown",this,true);document.addEventListener("pointermove",this,true);document.addEventListener("pointerup",this,true);document.addEventListener("pointerenter",this,true);document.addEventListener("pointerleave",this,true);document.addEventListener("pointerover",this,true);document.addEventListener("pointerout",this,true);document.addEventListener("keydown",this,true);document.addEventListener("keyup",this,true);document.addEventListener("keypress",this,true);document.addEventListener("contextmenu",this,true)}_removeListeners(){document.removeEventListener("pointerdown",this,true);document.removeEventListener("pointermove",this,true);document.removeEventListener("pointerup",this,true);document.removeEventListener("pointerenter",this,true);document.removeEventListener("pointerleave",this,true);document.removeEventListener("pointerover",this,true);document.removeEventListener("pointerout",this,true);document.removeEventListener("keydown",this,true);document.removeEventListener("keyup",this,true);document.removeEventListener("keypress",this,true);document.removeEventListener("contextmenu",this,true)}_updateDragScroll(e){let t=r.findScrollTarget(e);if(!this._scrollTarget&&!t){return}if(!this._scrollTarget){setTimeout(this._onScrollFrame,500)}this._scrollTarget=t}_updateCurrentTarget(e){let t=this._currentTarget;let n=this._currentTarget;let i=this._currentElement;let s=r.findElementBehindBackdrop(e,this.document);this._currentElement=s;if(s!==i&&s!==n){r.dispatchDragExit(this,n,s,e)}if(s!==i&&s!==n){n=r.dispatchDragEnter(this,s,n,e)}if(n!==t){this._currentTarget=n;r.dispatchDragLeave(this,t,n,e)}let o=r.dispatchDragOver(this,n,e);this._setDropAction(o)}_attachDragImage(e,t){if(!this.dragImage){return}this.dragImage.classList.add("lm-mod-drag-image");let n=this.dragImage.style;n.pointerEvents="none";n.position="fixed";n.transform=`translate(${e}px, ${t}px)`;const i=this.document instanceof Document?this.document.body:this.document.firstElementChild;i.appendChild(this.dragImage)}_detachDragImage(){if(!this.dragImage){return}let e=this.dragImage.parentNode;if(!e){return}e.removeChild(this.dragImage)}_setDropAction(e){e=r.validateAction(e,this.supportedActions);if(this._override&&this._dropAction===e){return}switch(e){case"none":this._dropAction=e;this._override=o.overrideCursor("no-drop",this.document);break;case"copy":this._dropAction=e;this._override=o.overrideCursor("copy",this.document);break;case"link":this._dropAction=e;this._override=o.overrideCursor("alias",this.document);break;case"move":this._dropAction=e;this._override=o.overrideCursor("move",this.document);break}}_finalize(e){let t=this._resolve;this._removeListeners();this._detachDragImage();if(this._override){this._override.dispose();this._override=null}this.mimeData.clear();this._disposed=true;this._dropAction="none";this._currentTarget=null;this._currentElement=null;this._scrollTarget=null;this._promise=null;this._resolve=null;if(t){t(e)}}}(function(e){class t extends DragEvent{constructor(e,t){super(t.type,{bubbles:true,cancelable:true,altKey:e.altKey,button:e.button,clientX:e.clientX,clientY:e.clientY,ctrlKey:e.ctrlKey,detail:0,metaKey:e.metaKey,relatedTarget:t.related,screenX:e.screenX,screenY:e.screenY,shiftKey:e.shiftKey,view:window});const{drag:n}=t;this.dropAction="none";this.mimeData=n.mimeData;this.proposedAction=n.proposedAction;this.supportedActions=n.supportedActions;this.source=n.source}}e.Event=t;function n(e,t=document){return r.overrideCursor(e,t)}e.overrideCursor=n})(o||(o={}));var r;(function(e){e.SCROLL_EDGE_SIZE=20;function t(e,t){return p[e]&m[t]?e:"none"}e.validateAction=t;function n(t,n=document){if(t){if(s&&t==s.event){return s.element}e.cursorBackdrop.style.zIndex="-1000";const i=n.elementFromPoint(t.clientX,t.clientY);e.cursorBackdrop.style.zIndex="";s={event:t,element:i};return i}else{const t=e.cursorBackdrop.style.transform;if(r&&t===r.transform){return r.element}const i=e.cursorBackdrop.getBoundingClientRect();e.cursorBackdrop.style.zIndex="-1000";const s=n.elementFromPoint(i.left+i.width/2,i.top+i.height/2);e.cursorBackdrop.style.zIndex="";r={transform:t,element:s};return s}}e.findElementBehindBackdrop=n;let s=null;let r=null;function a(t){let i=t.clientX;let s=t.clientY;let o=n(t);for(;o;o=o.parentElement){if(!o.hasAttribute("data-lm-dragscroll")){continue}let t=0;let n=0;if(o===document.body){t=window.pageXOffset;n=window.pageYOffset}let r=o.getBoundingClientRect();let a=r.top+n;let l=r.left+t;let d=l+r.width;let c=a+r.height;if(i=d||s=c){continue}let h=i-l+1;let u=s-a+1;let p=d-i;let m=c-s;let g=Math.min(h,u,p,m);if(g>e.SCROLL_EDGE_SIZE){continue}let f;switch(g){case m:f="bottom";break;case u:f="top";break;case p:f="right";break;case h:f="left";break;default:throw"unreachable"}let v=o.scrollWidth-o.clientWidth;let _=o.scrollHeight-o.clientHeight;let b;switch(f){case"top":b=_>0&&o.scrollTop>0;break;case"left":b=v>0&&o.scrollLeft>0;break;case"right":b=v>0&&o.scrollLeft0&&o.scrollTop<_;break;default:throw"unreachable"}if(!b){continue}return{element:o,edge:f,distance:g}}return null}e.findScrollTarget=a;function l(e,t,n,i){if(!t){return null}let s=new o.Event(i,{drag:e,related:n,type:"lm-dragenter"});let r=!t.dispatchEvent(s);if(r){return t}const a=e.document instanceof Document?e.document.body:e.document.firstElementChild;if(t===a){return n}s=new o.Event(i,{drag:e,related:n,type:"lm-dragenter"});a.dispatchEvent(s);return a}e.dispatchDragEnter=l;function d(e,t,n,i){if(!t){return}let s=new o.Event(i,{drag:e,related:n,type:"lm-dragexit"});t.dispatchEvent(s)}e.dispatchDragExit=d;function c(e,t,n,i){if(!t){return}let s=new o.Event(i,{drag:e,related:n,type:"lm-dragleave"});t.dispatchEvent(s)}e.dispatchDragLeave=c;function h(e,t,n){if(!t){return"none"}let i=new o.Event(n,{drag:e,related:null,type:"lm-dragover"});let s=!t.dispatchEvent(i);if(s){return i.dropAction}return"none"}e.dispatchDragOver=h;function u(e,t,n){if(!t){return"none"}let i=new o.Event(n,{drag:e,related:null,type:"lm-drop"});let s=!t.dispatchEvent(i);if(s){return i.dropAction}return"none"}e.dispatchDrop=u;const p={none:0,copy:1,link:2,move:4};const m={none:p["none"],copy:p["copy"],link:p["link"],move:p["move"],"copy-link":p["copy"]|p["link"],"copy-move":p["copy"]|p["move"],"link-move":p["link"]|p["move"],all:p["copy"]|p["link"]|p["move"]};function g(t,n=document){let s=++w;const o=n instanceof Document?n.body:n.firstElementChild;if(!e.cursorBackdrop.isConnected){e.cursorBackdrop.style.transform="scale(0)";o.appendChild(e.cursorBackdrop);_();document.addEventListener("pointermove",f,{capture:true,passive:true});e.cursorBackdrop.addEventListener("scroll",v,{capture:true,passive:true})}e.cursorBackdrop.style.cursor=t;return new i.DisposableDelegate((()=>{if(s===w&&e.cursorBackdrop.isConnected){document.removeEventListener("pointermove",f,true);e.cursorBackdrop.removeEventListener("scroll",v,true);o.removeChild(e.cursorBackdrop)}}))}e.overrideCursor=g;function f(t){if(!e.cursorBackdrop){return}e.cursorBackdrop.style.transform=`translate(${t.clientX}px, ${t.clientY}px)`}function v(t){if(!e.cursorBackdrop){return}let i=n();if(!i){return}const s=i.closest("[data-lm-dragscroll]");if(!s){return}s.scrollTop+=e.cursorBackdrop.scrollTop-b;s.scrollLeft+=e.cursorBackdrop.scrollLeft-b;_()}function _(){e.cursorBackdrop.scrollTop=b;e.cursorBackdrop.scrollLeft=b}const b=500;function y(){const e=document.createElement("div");e.classList.add("lm-cursor-backdrop");return e}let w=0;e.cursorBackdrop=y()})(r||(r={}))},38457:(e,t,n)=>{"use strict";var i=n(85072);var s=n.n(i);var o=n(97825);var r=n.n(o);var a=n(77659);var l=n.n(a);var d=n(55056);var c=n.n(d);var h=n(10540);var u=n.n(h);var p=n(41113);var m=n.n(p);var g=n(91266);var f={};f.styleTagTransform=m();f.setAttributes=c();f.insert=l().bind(null,"head");f.domAPI=r();f.insertStyleElement=u();var v=s()(g.A,f);const _=g.A&&g.A.locals?g.A.locals:undefined},72996:(e,t,n)=>{"use strict";n.r(t);n.d(t,{EN_US:()=>r,KeycodeLayout:()=>o,getKeyboardLayout:()=>i,setKeyboardLayout:()=>s});function i(){return a.keyboardLayout}function s(e){a.keyboardLayout=e}class o{constructor(e,t,n=[]){this.name=e;this._codes=t;this._keys=o.extractKeys(t);this._modifierKeys=o.convertToKeySet(n)}keys(){return Object.keys(this._keys)}isValidKey(e){return e in this._keys}isModifierKey(e){return e in this._modifierKeys}keyForKeydownEvent(e){return this._codes[e.keyCode]||""}}(function(e){function t(e){let t=Object.create(null);for(let n in e){t[e[n]]=true}return t}e.extractKeys=t;function n(e){let t=Object(null);for(let n=0,i=e.length;n{"use strict";n.r(t);n.d(t,{ConflatableMessage:()=>a,Message:()=>r,MessageLoop:()=>l});var i=n(34236);class s{constructor(){this._first=null;this._last=null;this._size=0}get isEmpty(){return this._size===0}get size(){return this._size}get length(){return this._size}get first(){return this._first?this._first.value:undefined}get last(){return this._last?this._last.value:undefined}get firstNode(){return this._first}get lastNode(){return this._last}*[Symbol.iterator](){let e=this._first;while(e){yield e.value;e=e.next}}*retro(){let e=this._last;while(e){yield e.value;e=e.prev}}*nodes(){let e=this._first;while(e){yield e;e=e.next}}*retroNodes(){let e=this._last;while(e){yield e;e=e.prev}}assign(e){this.clear();for(const t of e){this.addLast(t)}}push(e){this.addLast(e)}pop(){return this.removeLast()}shift(e){this.addFirst(e)}unshift(){return this.removeFirst()}addFirst(e){let t=new o.LinkedListNode(this,e);if(!this._first){this._first=t;this._last=t}else{t.next=this._first;this._first.prev=t;this._first=t}this._size++;return t}addLast(e){let t=new o.LinkedListNode(this,e);if(!this._last){this._first=t;this._last=t}else{t.prev=this._last;this._last.next=t;this._last=t}this._size++;return t}insertBefore(e,t){if(!t||t===this._first){return this.addFirst(e)}if(!(t instanceof o.LinkedListNode)||t.list!==this){throw new Error("Reference node is not owned by the list.")}let n=new o.LinkedListNode(this,e);let i=t;let s=i.prev;n.next=i;n.prev=s;i.prev=n;s.next=n;this._size++;return n}insertAfter(e,t){if(!t||t===this._last){return this.addLast(e)}if(!(t instanceof o.LinkedListNode)||t.list!==this){throw new Error("Reference node is not owned by the list.")}let n=new o.LinkedListNode(this,e);let i=t;let s=i.next;n.next=s;n.prev=i;i.next=n;s.prev=n;this._size++;return n}removeFirst(){let e=this._first;if(!e){return undefined}if(e===this._last){this._first=null;this._last=null}else{this._first=e.next;this._first.prev=null}e.list=null;e.next=null;e.prev=null;this._size--;return e.value}removeLast(){let e=this._last;if(!e){return undefined}if(e===this._first){this._first=null;this._last=null}else{this._last=e.prev;this._last.next=null}e.list=null;e.next=null;e.prev=null;this._size--;return e.value}removeNode(e){if(!(e instanceof o.LinkedListNode)||e.list!==this){throw new Error("Node is not owned by the list.")}let t=e;if(t===this._first&&t===this._last){this._first=null;this._last=null}else if(t===this._first){this._first=t.next;this._first.prev=null}else if(t===this._last){this._last=t.prev;this._last.next=null}else{t.next.prev=t.prev;t.prev.next=t.next}t.list=null;t.next=null;t.prev=null;this._size--}clear(){let e=this._first;while(e){let t=e.next;e.list=null;e.prev=null;e.next=null;e=t}this._first=null;this._last=null;this._size=0}}(function(e){function t(t){let n=new e;n.assign(t);return n}e.from=t})(s||(s={}));var o;(function(e){class t{constructor(e,t){this.list=null;this.next=null;this.prev=null;this.list=e;this.value=t}}e.LinkedListNode=t})(o||(o={}));class r{constructor(e){this.type=e}get isConflatable(){return false}conflate(e){return false}}class a extends r{get isConflatable(){return true}conflate(e){return true}}var l;(function(e){let t=null;const n=(e=>t=>{let n=false;e.then((()=>!n&&t()));return()=>{n=true}})(Promise.resolve());function o(e,t){let n=m.get(e);if(!n||n.length===0){b(e,t);return}let s=(0,i.every)((0,i.retro)(n),(n=>n?_(n,e,t):true));if(s){b(e,t)}}e.sendMessage=o;function r(e,t){if(!t.isConflatable){y(e,t);return}let n=(0,i.some)(p,(n=>{if(n.handler!==e){return false}if(!n.msg){return false}if(n.msg.type!==t.type){return false}if(!n.msg.isConflatable){return false}return n.msg.conflate(t)}));if(!n){y(e,t)}}e.postMessage=r;function a(e,t){let n=m.get(e);if(n&&n.indexOf(t)!==-1){return}if(!n){m.set(e,[t])}else{n.push(t)}}e.installMessageHook=a;function l(e,t){let n=m.get(e);if(!n){return}let i=n.indexOf(t);if(i===-1){return}n[i]=null;C(n)}e.removeMessageHook=l;function d(e){let t=m.get(e);if(t&&t.length>0){i.ArrayExt.fill(t,null);C(t)}for(const n of p){if(n.handler===e){n.handler=null;n.msg=null}}}e.clearData=d;function c(){if(v||t===null){return}t();t=null;v=true;w();v=false}e.flush=c;function h(){return f}e.getExceptionHandler=h;function u(e){let t=f;f=e;return t}e.setExceptionHandler=u;const p=new s;const m=new WeakMap;const g=new Set;let f=e=>{console.error(e)};let v=false;function _(e,t,n){let i=true;try{if(typeof e==="function"){i=e(t,n)}else{i=e.messageHook(t,n)}}catch(s){f(s)}return i}function b(e,t){try{e.processMessage(t)}catch(n){f(n)}}function y(e,i){p.addLast({handler:e,msg:i});if(t!==null){return}t=n(w)}function w(){t=null;if(p.isEmpty){return}let e={handler:null,msg:null};p.addLast(e);while(true){let t=p.removeFirst();if(t===e){return}if(t.handler&&t.msg){o(t.handler,t.msg)}}}function C(e){if(g.size===0){n(x)}g.add(e)}function x(){g.forEach(S);g.clear()}function S(e){i.ArrayExt.removeAllWhere(e,k)}function k(e){return e===null}})(l||(l={}))},68534:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Debouncer:()=>c,Poll:()=>a,RateLimiter:()=>d,Throttler:()=>h});var i=n(5592);var s=n.n(i);var o=n(2336);var r=n.n(o);class a{constructor(e){var t;this._disposed=new o.Signal(this);this._lingered=0;this._tick=new i.PromiseDelegate;this._ticked=new o.Signal(this);this._factory=e.factory;this._linger=(t=e.linger)!==null&&t!==void 0?t:l.DEFAULT_LINGER;this._standby=e.standby||l.DEFAULT_STANDBY;this._state={...l.DEFAULT_STATE,timestamp:(new Date).getTime()};const n=e.frequency||{};const s=Math.max(n.interval||0,n.max||0,l.DEFAULT_FREQUENCY.max);this.frequency={...l.DEFAULT_FREQUENCY,...n,...{max:s}};this.name=e.name||l.DEFAULT_NAME;if("auto"in e?e.auto:true){setTimeout((()=>this.start()))}}get disposed(){return this._disposed}get frequency(){return this._frequency}set frequency(e){if(this.isDisposed||i.JSONExt.deepEqual(e,this.frequency||{})){return}let{backoff:t,interval:n,max:s}=e;n=Math.round(n);s=Math.round(s);if(typeof t==="number"&&t<1){throw new Error("Poll backoff growth factor must be at least 1")}if((n<0||n>s)&&n!==a.NEVER){throw new Error("Poll interval must be between 0 and max")}if(s>a.MAX_INTERVAL&&s!==a.NEVER){throw new Error(`Max interval must be less than ${a.MAX_INTERVAL}`)}this._frequency={backoff:t,interval:n,max:s}}get isDisposed(){return this.state.phase==="disposed"}get standby(){return this._standby}set standby(e){if(this.isDisposed||this.standby===e){return}this._standby=e}get state(){return this._state}get tick(){return this._tick.promise}get ticked(){return this._ticked}async*[Symbol.asyncIterator](){while(!this.isDisposed){yield this.state;await this.tick.catch((()=>undefined))}}dispose(){if(this.isDisposed){return}this._state={...l.DISPOSED_STATE,timestamp:(new Date).getTime()};this._tick.promise.catch((e=>undefined));this._tick.reject(new Error(`Poll (${this.name}) is disposed.`));this._disposed.emit(undefined);o.Signal.clearData(this)}refresh(){return this.schedule({cancel:({phase:e})=>e==="refreshed",interval:a.IMMEDIATE,phase:"refreshed"})}async schedule(e={}){if(this.isDisposed){return}if(e.cancel&&e.cancel(this.state)){return}const t=this._tick;const n=new i.PromiseDelegate;const s={interval:this.frequency.interval,payload:null,phase:"standby",timestamp:(new Date).getTime(),...e};this._state=s;this._tick=n;clearTimeout(this._timeout);this._ticked.emit(this.state);t.resolve(this);await t.promise;if(s.interval===a.NEVER){this._timeout=undefined;return}const o=()=>{if(this.isDisposed||this.tick!==n.promise){return}this._execute()};this._timeout=setTimeout(o,s.interval)}start(){return this.schedule({cancel:({phase:e})=>e!=="constructed"&&e!=="standby"&&e!=="stopped",interval:a.IMMEDIATE,phase:"started"})}stop(){return this.schedule({cancel:({phase:e})=>e==="stopped",interval:a.NEVER,phase:"stopped"})}get hidden(){return l.hidden}_execute(){let e=typeof this.standby==="function"?this.standby():this.standby;if(e==="never"){e=false}else if(e==="when-hidden"){if(this.hidden){e=++this._lingered>this._linger}else{this._lingered=0;e=false}}if(e){void this.schedule();return}const t=this.tick;this._factory(this.state).then((e=>{if(this.isDisposed||this.tick!==t){return}void this.schedule({payload:e,phase:this.state.phase==="rejected"?"reconnected":"resolved"})})).catch((e=>{if(this.isDisposed||this.tick!==t){return}void this.schedule({interval:l.sleep(this.frequency,this.state),payload:e,phase:"rejected"})}))}}(function(e){e.IMMEDIATE=0;e.MAX_INTERVAL=2147483647;e.NEVER=Infinity})(a||(a={}));var l;(function(e){e.DEFAULT_BACKOFF=3;e.DEFAULT_FREQUENCY={backoff:true,interval:1e3,max:30*1e3};e.DEFAULT_LINGER=1;e.DEFAULT_NAME="unknown";e.DEFAULT_STANDBY="when-hidden";e.DEFAULT_STATE={interval:a.NEVER,payload:null,phase:"constructed",timestamp:new Date(0).getTime()};e.DISPOSED_STATE={interval:a.NEVER,payload:null,phase:"disposed",timestamp:new Date(0).getTime()};function t(t,i){const{backoff:s,interval:o,max:r}=t;if(o===a.NEVER){return o}const l=s===true?e.DEFAULT_BACKOFF:s===false?1:s;const d=n(o,i.interval*l);return Math.min(r,d)}e.sleep=t;e.hidden=(()=>{if(typeof document==="undefined"){return false}document.addEventListener("visibilitychange",(()=>{e.hidden=document.visibilityState==="hidden"}));document.addEventListener("pagehide",(()=>{e.hidden=document.visibilityState==="hidden"}));return document.visibilityState==="hidden"})();function n(e,t){e=Math.ceil(e);t=Math.floor(t);return Math.floor(Math.random()*(t-e+1))+e}})(l||(l={}));class d{constructor(e,t=500){this.args=undefined;this.payload=null;this.limit=t;this.poll=new a({auto:false,factory:async()=>{const{args:t}=this;this.args=undefined;return e(...t)},frequency:{backoff:false,interval:a.NEVER,max:a.NEVER},standby:"never"});this.payload=new i.PromiseDelegate;this.poll.ticked.connect(((e,t)=>{const{payload:n}=this;if(t.phase==="resolved"){this.payload=new i.PromiseDelegate;n.resolve(t.payload);return}if(t.phase==="rejected"||t.phase==="stopped"){this.payload=new i.PromiseDelegate;n.promise.catch((e=>undefined));n.reject(t.payload);return}}),this)}get isDisposed(){return this.payload===null}dispose(){if(this.isDisposed){return}this.args=undefined;this.payload=null;this.poll.dispose()}async stop(){return this.poll.stop()}}class c extends d{invoke(...e){this.args=e;void this.poll.schedule({interval:this.limit,phase:"invoked"});return this.payload.promise}}class h extends d{constructor(e,t){super(e,typeof t==="number"?t:t&&t.limit);this._trailing=false;if(typeof t!=="number"&&t&&t.edge==="trailing"){this._trailing=true}this._interval=this._trailing?this.limit:a.IMMEDIATE}invoke(...e){const t=this.poll.state.phase!=="invoked";if(t||this._trailing){this.args=e}if(t){void this.poll.schedule({interval:this._interval,phase:"invoked"})}return this.payload.promise}}},21628:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AttachedProperty:()=>i});class i{constructor(e){this._pid=s.nextPID();this.name=e.name;this._create=e.create;this._coerce=e.coerce||null;this._compare=e.compare||null;this._changed=e.changed||null}get(e){let t;let n=s.ensureMap(e);if(this._pid in n){t=n[this._pid]}else{t=n[this._pid]=this._createValue(e)}return t}set(e,t){let n;let i=s.ensureMap(e);if(this._pid in i){n=i[this._pid]}else{n=i[this._pid]=this._createValue(e)}let o=this._coerceValue(e,t);this._maybeNotify(e,n,i[this._pid]=o)}coerce(e){let t;let n=s.ensureMap(e);if(this._pid in n){t=n[this._pid]}else{t=n[this._pid]=this._createValue(e)}let i=this._coerceValue(e,t);this._maybeNotify(e,t,n[this._pid]=i)}_createValue(e){let t=this._create;return t(e)}_coerceValue(e,t){let n=this._coerce;return n?n(e,t):t}_compareValue(e,t){let n=this._compare;return n?n(e,t):e===t}_maybeNotify(e,t,n){let i=this._changed;if(i&&!this._compareValue(t,n)){i(e,t,n)}}}(function(e){function t(e){s.ownerData.delete(e)}e.clearData=t})(i||(i={}));var s;(function(e){e.ownerData=new WeakMap;e.nextPID=(()=>{let e=0;return()=>{let t=Math.random();let n=`${t}`.slice(2);return`pid-${n}-${e++}`}})();function t(t){let n=e.ownerData.get(t);if(n){return n}n=Object.create(null);e.ownerData.set(t,n);return n}e.ensureMap=t})(s||(s={}))},96903:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Signal:()=>a,Stream:()=>l});var i=n(34236);var s=n.n(i);var o=n(5592);var r=n.n(o);class a{constructor(e){this.sender=e}connect(e,t){return d.connect(this,e,t)}disconnect(e,t){return d.disconnect(this,e,t)}emit(e){d.emit(this,e)}}(function(e){function t(e,t){d.disconnectBetween(e,t)}e.disconnectBetween=t;function n(e){d.disconnectSender(e)}e.disconnectSender=n;function i(e){d.disconnectReceiver(e)}e.disconnectReceiver=i;function s(e){d.disconnectAll(e)}e.disconnectAll=s;function o(e){d.disconnectAll(e)}e.clearData=o;function r(){return d.exceptionHandler}e.getExceptionHandler=r;function a(e){let t=d.exceptionHandler;d.exceptionHandler=e;return t}e.setExceptionHandler=a})(a||(a={}));class l extends a{constructor(){super(...arguments);this._pending=new o.PromiseDelegate}async*[Symbol.asyncIterator](){let e=this._pending;while(true){try{const{args:t,next:n}=await e.promise;e=n;yield t}catch(t){return}}}emit(e){const t=this._pending;const n=this._pending=new o.PromiseDelegate;t.resolve({args:e,next:n});super.emit(e)}stop(){this._pending.promise.catch((()=>undefined));this._pending.reject("stop");this._pending=new o.PromiseDelegate}}var d;(function(e){e.exceptionHandler=e=>{console.error(e)};function t(e,t,n){n=n||undefined;let i=d.get(e.sender);if(!i){i=[];d.set(e.sender,i)}if(p(i,e,t,n)){return false}let s=n||t;let o=c.get(s);if(!o){o=[];c.set(s,o)}let r={signal:e,slot:t,thisArg:n};i.push(r);o.push(r);return true}e.connect=t;function n(e,t,n){n=n||undefined;let i=d.get(e.sender);if(!i||i.length===0){return false}let s=p(i,e,t,n);if(!s){return false}let o=n||t;let r=c.get(o);s.signal=null;g(i);g(r);return true}e.disconnect=n;function s(e,t){let n=d.get(e);if(!n||n.length===0){return}let i=c.get(t);if(!i||i.length===0){return}for(const s of i){if(!s.signal){continue}if(s.signal.sender===e){s.signal=null}}g(n);g(i)}e.disconnectBetween=s;function o(e){let t=d.get(e);if(!t||t.length===0){return}for(const n of t){if(!n.signal){continue}let e=n.thisArg||n.slot;n.signal=null;g(c.get(e))}g(t)}e.disconnectSender=o;function r(e){let t=c.get(e);if(!t||t.length===0){return}for(const n of t){if(!n.signal){continue}let e=n.signal.sender;n.signal=null;g(d.get(e))}g(t)}e.disconnectReceiver=r;function a(e){o(e);r(e)}e.disconnectAll=a;function l(e,t){let n=d.get(e.sender);if(!n||n.length===0){return}for(let i=0,s=n.length;i{let e=typeof requestAnimationFrame==="function";return e?requestAnimationFrame:setImmediate})();function p(e,t,n,s){return(0,i.find)(e,(e=>e.signal===t&&e.slot===n&&e.thisArg===s))}function m(t,n){let{signal:i,slot:s,thisArg:o}=t;try{s.call(o,i.sender,n)}catch(r){e.exceptionHandler(r)}}function g(e){if(h.size===0){u(f)}h.add(e)}function f(){h.forEach(v);h.clear()}function v(e){i.ArrayExt.removeAllWhere(e,_)}function _(e){return e.signal===null}})(d||(d={}))},57340:(e,t,n)=>{"use strict";n.r(t);n.d(t,{VirtualDOM:()=>c,VirtualElement:()=>r,VirtualElementPass:()=>a,VirtualText:()=>o,h:()=>l,hpass:()=>d});var i=n(34236);var s=n.n(i);class o{constructor(e){this.type="text";this.content=e}}class r{constructor(e,t,n,i){this.type="element";this.tag=e;this.attrs=t;this.children=n;this.renderer=i}}class a extends r{constructor(e,t,n){super(e,t,[],n||undefined)}}function l(e){let t={};let n;let i=[];for(let a=1,l=arguments.length;a3){throw new Error("hpass() should be called with 1, 2, or 3 arguments")}return new a(e,t,n)}var c;(function(e){function t(e){return h.createDOMNode(e)}e.realize=t;function n(e,t){let n=h.hostMap.get(t)||[];let i=h.asContentArray(e);h.hostMap.set(t,i);h.updateContent(t,n,i)}e.render=n})(c||(c={}));var h;(function(e){e.hostMap=new WeakMap;function t(e){if(!e){return[]}if(e instanceof Array){return e}return[e]}e.asContentArray=t;function n(e){let t=arguments[1]||null;const i=arguments[2]||null;if(t){t.insertBefore(n(e),i)}else{if(e.type==="text"){return document.createTextNode(e.content)}t=document.createElement(e.tag);a(t,e.attrs);if(e.renderer){e.renderer.render(t,{attrs:e.attrs,children:e.children});return t}for(let i=0,s=e.children.length;i=d.length){n(r[o],e);continue}let t=d[o];let h=r[o];if(t===h){c=c.nextSibling;continue}if(t.type==="text"&&h.type==="text"){if(c.textContent!==h.content){c.textContent=h.content}c=c.nextSibling;continue}if(t.type==="text"||h.type==="text"){i.ArrayExt.insert(d,o,h);n(h,e,c);continue}if(!t.renderer!=!h.renderer){i.ArrayExt.insert(d,o,h);n(h,e,c);continue}let u=h.attrs.key;if(u&&u in a){let n=a[u];if(n.vNode!==t){i.ArrayExt.move(d,d.indexOf(n.vNode,o+1),o);e.insertBefore(n.element,c);t=n.vNode;c=n.element}}if(t===h){c=c.nextSibling;continue}let p=t.attrs.key;if(p&&p!==u){i.ArrayExt.insert(d,o,h);n(h,e,c);continue}if(t.tag!==h.tag){i.ArrayExt.insert(d,o,h);n(h,e,c);continue}l(c,t.attrs,h.attrs);if(h.renderer){h.renderer.render(c,{attrs:h.attrs,children:h.children})}else{s(c,t.children,h.children)}c=c.nextSibling}o(e,d,h,true)}e.updateContent=s;function o(e,t,n,i){for(let s=t.length-1;s>=n;--s){const n=t[s];const r=i?e.lastChild:e.childNodes[s];if(n.type==="text");else if(n.renderer&&n.renderer.unrender){n.renderer.unrender(r,{attrs:n.attrs,children:n.children})}else{o(r,n.children,0,false)}if(i){e.removeChild(r)}}}const r={key:true,className:true,htmlFor:true,dataset:true,style:true};function a(e,t){for(let n in t){if(n in r){continue}if(n.substr(0,2)==="on"){e[n]=t[n]}else{e.setAttribute(n,t[n])}}if(t.className!==undefined){e.setAttribute("class",t.className)}if(t.htmlFor!==undefined){e.setAttribute("for",t.htmlFor)}if(t.dataset){d(e,t.dataset)}if(t.style){h(e,t.style)}}function l(e,t,n){if(t===n){return}let i;for(i in t){if(i in r||i in n){continue}if(i.substr(0,2)==="on"){e[i]=null}else{e.removeAttribute(i)}}for(i in n){if(i in r||t[i]===n[i]){continue}if(i.substr(0,2)==="on"){e[i]=n[i]}else{e.setAttribute(i,n[i])}}if(t.className!==n.className){if(n.className!==undefined){e.setAttribute("class",n.className)}else{e.removeAttribute("class")}}if(t.htmlFor!==n.htmlFor){if(n.htmlFor!==undefined){e.setAttribute("for",n.htmlFor)}else{e.removeAttribute("for")}}if(t.dataset!==n.dataset){c(e,t.dataset||{},n.dataset||{})}if(t.style!==n.style){u(e,t.style||{},n.style||{})}}function d(e,t){for(let n in t){e.setAttribute(`data-${n}`,t[n])}}function c(e,t,n){for(let i in t){if(!(i in n)){e.removeAttribute(`data-${i}`)}}for(let i in n){if(t[i]!==n[i]){e.setAttribute(`data-${i}`,n[i])}}}function h(e,t){let n=e.style;let i;for(i in t){n[i]=t[i]}}function u(e,t,n){let i=e.style;let s;for(s in t){if(!(s in n)){i[s]=""}}for(s in n){if(t[s]!==n[s]){i[s]=n[s]}}}function p(e,t){let n=e.firstChild;let i=Object.create(null);for(let s of t){if(s.type==="element"&&s.attrs.key){i[s.attrs.key]={vNode:s,element:n}}n=n.nextSibling}return i}})(h||(h={}))},14292:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AccordionLayout:()=>B,AccordionPanel:()=>U,BoxEngine:()=>j,BoxLayout:()=>$,BoxPanel:()=>J,BoxSizer:()=>k,CommandPalette:()=>Y,ContextMenu:()=>ee,DockLayout:()=>oe,DockPanel:()=>ae,FocusTracker:()=>de,GridLayout:()=>ce,Layout:()=>M,LayoutItem:()=>D,Menu:()=>Q,MenuBar:()=>ue,Panel:()=>z,PanelLayout:()=>P,ScrollBar:()=>me,SingletonLayout:()=>fe,SplitLayout:()=>N,SplitPanel:()=>W,StackedLayout:()=>ve,StackedPanel:()=>_e,TabBar:()=>ie,TabPanel:()=>ye,Title:()=>I,Widget:()=>E});var i=n(34236);var s=n.n(i);var o=n(5592);var r=n.n(o);var a=n(76326);var l=n.n(a);var d=n(42856);var c=n.n(d);var h=n(94466);var u=n.n(h);var p=n(2336);var m=n.n(p);var g=n(10970);var f=n.n(g);var v=n(93247);var _=n.n(v);var b=n(97290);var y=n.n(b);var w=n(90044);var C=n.n(w);var x=n(77162);var S=n.n(x);class k{constructor(){this.sizeHint=0;this.minSize=0;this.maxSize=Infinity;this.stretch=1;this.size=0;this.done=false}}var j;(function(e){function t(e,t){let n=e.length;if(n===0){return t}let i=0;let s=0;let o=0;let r=0;let a=0;for(let c=0;c0){r+=t.stretch;a++}}if(t===o){return 0}if(t<=i){for(let t=0;t=s){for(let t=0;t0&&i>l){let t=i;let s=r;for(let o=0;o0&&i>l){let t=i/d;for(let s=0;s0&&i>l){let t=i;let s=r;for(let o=0;o=n.maxSize){i-=n.maxSize-n.size;r-=n.stretch;n.size=n.maxSize;n.done=true;d--;a--}else{i-=l;n.size+=l}}}while(d>0&&i>l){let t=i/d;for(let s=0;s=n.maxSize){i-=n.maxSize-n.size;n.size=n.maxSize;n.done=true;d--}else{i-=t;n.size+=t}}}}return 0}e.calc=t;function n(e,t,n){if(e.length===0||n===0){return}if(n>0){i(e,t,n)}else{s(e,t,-n)}}e.adjust=n;function i(e,t,n){let i=0;for(let a=0;a<=t;++a){let t=e[a];i+=t.maxSize-t.size}let s=0;for(let a=t+1,l=e.length;a=0&&o>0;--a){let t=e[a];let n=t.maxSize-t.size;if(n>=o){t.sizeHint=t.size+o;o=0}else{t.sizeHint=t.size+n;o-=n}}let r=n;for(let a=t+1,l=e.length;a0;++a){let t=e[a];let n=t.size-t.minSize;if(n>=r){t.sizeHint=t.size-r;r=0}else{t.sizeHint=t.size-n;r-=n}}}function s(e,t,n){let i=0;for(let a=t+1,l=e.length;a0;++a){let t=e[a];let n=t.maxSize-t.size;if(n>=o){t.sizeHint=t.size+o;o=0}else{t.sizeHint=t.size+n;o-=n}}let r=n;for(let a=t;a>=0&&r>0;--a){let t=e[a];let n=t.size-t.minSize;if(n>=r){t.sizeHint=t.size-r;r=0}else{t.sizeHint=t.size-n;r-=n}}}})(j||(j={}));class I{constructor(e){this._label="";this._caption="";this._mnemonic=-1;this._icon=undefined;this._iconClass="";this._iconLabel="";this._className="";this._closable=false;this._changed=new p.Signal(this);this._isDisposed=false;this.owner=e.owner;if(e.label!==undefined){this._label=e.label}if(e.mnemonic!==undefined){this._mnemonic=e.mnemonic}if(e.icon!==undefined){this._icon=e.icon}if(e.iconClass!==undefined){this._iconClass=e.iconClass}if(e.iconLabel!==undefined){this._iconLabel=e.iconLabel}if(e.caption!==undefined){this._caption=e.caption}if(e.className!==undefined){this._className=e.className}if(e.closable!==undefined){this._closable=e.closable}this._dataset=e.dataset||{}}get changed(){return this._changed}get label(){return this._label}set label(e){if(this._label===e){return}this._label=e;this._changed.emit(undefined)}get mnemonic(){return this._mnemonic}set mnemonic(e){if(this._mnemonic===e){return}this._mnemonic=e;this._changed.emit(undefined)}get icon(){return this._icon}set icon(e){if(this._icon===e){return}this._icon=e;this._changed.emit(undefined)}get iconClass(){return this._iconClass}set iconClass(e){if(this._iconClass===e){return}this._iconClass=e;this._changed.emit(undefined)}get iconLabel(){return this._iconLabel}set iconLabel(e){if(this._iconLabel===e){return}this._iconLabel=e;this._changed.emit(undefined)}get caption(){return this._caption}set caption(e){if(this._caption===e){return}this._caption=e;this._changed.emit(undefined)}get className(){return this._className}set className(e){if(this._className===e){return}this._className=e;this._changed.emit(undefined)}get closable(){return this._closable}set closable(e){if(this._closable===e){return}this._closable=e;this._changed.emit(undefined)}get dataset(){return this._dataset}set dataset(e){if(this._dataset===e){return}this._dataset=e;this._changed.emit(undefined)}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;p.Signal.clearData(this)}}class E{constructor(e={}){this._flags=0;this._layout=null;this._parent=null;this._disposed=new p.Signal(this);this._hiddenMode=E.HiddenMode.Display;this.node=T.createNode(e);this.addClass("lm-Widget")}dispose(){if(this.isDisposed){return}this.setFlag(E.Flag.IsDisposed);this._disposed.emit(undefined);if(this.parent){this.parent=null}else if(this.isAttached){E.detach(this)}if(this._layout){this._layout.dispose();this._layout=null}this.title.dispose();p.Signal.clearData(this);d.MessageLoop.clearData(this);h.AttachedProperty.clearData(this)}get disposed(){return this._disposed}get isDisposed(){return this.testFlag(E.Flag.IsDisposed)}get isAttached(){return this.testFlag(E.Flag.IsAttached)}get isHidden(){return this.testFlag(E.Flag.IsHidden)}get isVisible(){let e=this;do{if(e.isHidden||!e.isAttached){return false}e=e.parent}while(e!=null);return true}get title(){return T.titleProperty.get(this)}get id(){return this.node.id}set id(e){this.node.id=e}get dataset(){return this.node.dataset}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){if(this._hiddenMode===e){return}if(this.isHidden){this._toggleHidden(false)}if(e==E.HiddenMode.Scale){this.node.style.willChange="transform"}else{this.node.style.willChange="auto"}this._hiddenMode=e;if(this.isHidden){this._toggleHidden(true)}}get parent(){return this._parent}set parent(e){if(this._parent===e){return}if(e&&this.contains(e)){throw new Error("Invalid parent widget.")}if(this._parent&&!this._parent.isDisposed){let e=new E.ChildMessage("child-removed",this);d.MessageLoop.sendMessage(this._parent,e)}this._parent=e;if(this._parent&&!this._parent.isDisposed){let e=new E.ChildMessage("child-added",this);d.MessageLoop.sendMessage(this._parent,e)}if(!this.isDisposed){d.MessageLoop.sendMessage(this,E.Msg.ParentChanged)}}get layout(){return this._layout}set layout(e){if(this._layout===e){return}if(this.testFlag(E.Flag.DisallowLayout)){throw new Error("Cannot set widget layout.")}if(this._layout){throw new Error("Cannot change widget layout.")}if(e.parent){throw new Error("Cannot change layout parent.")}this._layout=e;e.parent=this}*children(){if(this._layout){yield*this._layout}}contains(e){for(let t=e;t;t=t._parent){if(t===this){return true}}return false}hasClass(e){return this.node.classList.contains(e)}addClass(e){this.node.classList.add(e)}removeClass(e){this.node.classList.remove(e)}toggleClass(e,t){if(t===true){this.node.classList.add(e);return true}if(t===false){this.node.classList.remove(e);return false}return this.node.classList.toggle(e)}update(){d.MessageLoop.postMessage(this,E.Msg.UpdateRequest)}fit(){d.MessageLoop.postMessage(this,E.Msg.FitRequest)}activate(){d.MessageLoop.postMessage(this,E.Msg.ActivateRequest)}close(){d.MessageLoop.sendMessage(this,E.Msg.CloseRequest)}show(){if(!this.testFlag(E.Flag.IsHidden)){return}if(this.isAttached&&(!this.parent||this.parent.isVisible)){d.MessageLoop.sendMessage(this,E.Msg.BeforeShow)}this.clearFlag(E.Flag.IsHidden);this._toggleHidden(false);if(this.isAttached&&(!this.parent||this.parent.isVisible)){d.MessageLoop.sendMessage(this,E.Msg.AfterShow)}if(this.parent){let e=new E.ChildMessage("child-shown",this);d.MessageLoop.sendMessage(this.parent,e)}}hide(){if(this.testFlag(E.Flag.IsHidden)){return}if(this.isAttached&&(!this.parent||this.parent.isVisible)){d.MessageLoop.sendMessage(this,E.Msg.BeforeHide)}this.setFlag(E.Flag.IsHidden);this._toggleHidden(true);if(this.isAttached&&(!this.parent||this.parent.isVisible)){d.MessageLoop.sendMessage(this,E.Msg.AfterHide)}if(this.parent){let e=new E.ChildMessage("child-hidden",this);d.MessageLoop.sendMessage(this.parent,e)}}setHidden(e){if(e){this.hide()}else{this.show()}}testFlag(e){return(this._flags&e)!==0}setFlag(e){this._flags|=e}clearFlag(e){this._flags&=~e}processMessage(e){switch(e.type){case"resize":this.notifyLayout(e);this.onResize(e);break;case"update-request":this.notifyLayout(e);this.onUpdateRequest(e);break;case"fit-request":this.notifyLayout(e);this.onFitRequest(e);break;case"before-show":this.notifyLayout(e);this.onBeforeShow(e);break;case"after-show":this.setFlag(E.Flag.IsVisible);this.notifyLayout(e);this.onAfterShow(e);break;case"before-hide":this.notifyLayout(e);this.onBeforeHide(e);break;case"after-hide":this.clearFlag(E.Flag.IsVisible);this.notifyLayout(e);this.onAfterHide(e);break;case"before-attach":this.notifyLayout(e);this.onBeforeAttach(e);break;case"after-attach":if(!this.isHidden&&(!this.parent||this.parent.isVisible)){this.setFlag(E.Flag.IsVisible)}this.setFlag(E.Flag.IsAttached);this.notifyLayout(e);this.onAfterAttach(e);break;case"before-detach":this.notifyLayout(e);this.onBeforeDetach(e);break;case"after-detach":this.clearFlag(E.Flag.IsVisible);this.clearFlag(E.Flag.IsAttached);this.notifyLayout(e);this.onAfterDetach(e);break;case"activate-request":this.notifyLayout(e);this.onActivateRequest(e);break;case"close-request":this.notifyLayout(e);this.onCloseRequest(e);break;case"child-added":this.notifyLayout(e);this.onChildAdded(e);break;case"child-removed":this.notifyLayout(e);this.onChildRemoved(e);break;default:this.notifyLayout(e);break}}notifyLayout(e){if(this._layout){this._layout.processParentMessage(e)}}onCloseRequest(e){if(this.parent){this.parent=null}else if(this.isAttached){E.detach(this)}}onResize(e){}onUpdateRequest(e){}onFitRequest(e){}onActivateRequest(e){}onBeforeShow(e){}onAfterShow(e){}onBeforeHide(e){}onAfterHide(e){}onBeforeAttach(e){}onAfterAttach(e){}onBeforeDetach(e){}onAfterDetach(e){}onChildAdded(e){}onChildRemoved(e){}_toggleHidden(e){if(e){switch(this._hiddenMode){case E.HiddenMode.Display:this.addClass("lm-mod-hidden");break;case E.HiddenMode.Scale:this.node.style.transform="scale(0)";this.node.setAttribute("aria-hidden","true");break;case E.HiddenMode.ContentVisibility:this.node.style.contentVisibility="hidden";this.node.style.zIndex="-1";break}}else{switch(this._hiddenMode){case E.HiddenMode.Display:this.removeClass("lm-mod-hidden");break;case E.HiddenMode.Scale:this.node.style.transform="";this.node.removeAttribute("aria-hidden");break;case E.HiddenMode.ContentVisibility:this.node.style.contentVisibility="";this.node.style.zIndex="";break}}}}(function(e){(function(e){e[e["Display"]=0]="Display";e[e["Scale"]=1]="Scale";e[e["ContentVisibility"]=2]="ContentVisibility"})(e.HiddenMode||(e.HiddenMode={}));(function(e){e[e["IsDisposed"]=1]="IsDisposed";e[e["IsAttached"]=2]="IsAttached";e[e["IsHidden"]=4]="IsHidden";e[e["IsVisible"]=8]="IsVisible";e[e["DisallowLayout"]=16]="DisallowLayout"})(e.Flag||(e.Flag={}));(function(e){e.BeforeShow=new d.Message("before-show");e.AfterShow=new d.Message("after-show");e.BeforeHide=new d.Message("before-hide");e.AfterHide=new d.Message("after-hide");e.BeforeAttach=new d.Message("before-attach");e.AfterAttach=new d.Message("after-attach");e.BeforeDetach=new d.Message("before-detach");e.AfterDetach=new d.Message("after-detach");e.ParentChanged=new d.Message("parent-changed");e.UpdateRequest=new d.ConflatableMessage("update-request");e.FitRequest=new d.ConflatableMessage("fit-request");e.ActivateRequest=new d.ConflatableMessage("activate-request");e.CloseRequest=new d.ConflatableMessage("close-request")})(e.Msg||(e.Msg={}));class t extends d.Message{constructor(e,t){super(e);this.child=t}}e.ChildMessage=t;class n extends d.Message{constructor(e,t){super("resize");this.width=e;this.height=t}}e.ResizeMessage=n;(function(e){e.UnknownSize=new e(-1,-1)})(n=e.ResizeMessage||(e.ResizeMessage={}));function i(t,n,i=null){if(t.parent){throw new Error("Cannot attach a child widget.")}if(t.isAttached||t.node.isConnected){throw new Error("Widget is already attached.")}if(!n.isConnected){throw new Error("Host is not attached.")}d.MessageLoop.sendMessage(t,e.Msg.BeforeAttach);n.insertBefore(t.node,i);d.MessageLoop.sendMessage(t,e.Msg.AfterAttach)}e.attach=i;function s(t){if(t.parent){throw new Error("Cannot detach a child widget.")}if(!t.isAttached||!t.node.isConnected){throw new Error("Widget is not attached.")}d.MessageLoop.sendMessage(t,e.Msg.BeforeDetach);t.node.parentNode.removeChild(t.node);d.MessageLoop.sendMessage(t,e.Msg.AfterDetach)}e.detach=s})(E||(E={}));var T;(function(e){e.titleProperty=new h.AttachedProperty({name:"title",create:e=>new I({owner:e})});function t(e){return e.node||document.createElement(e.tag||"div")}e.createNode=t})(T||(T={}));class M{constructor(e={}){this._disposed=false;this._parent=null;this._fitPolicy=e.fitPolicy||"set-min-size"}dispose(){this._parent=null;this._disposed=true;p.Signal.clearData(this);h.AttachedProperty.clearData(this)}get isDisposed(){return this._disposed}get parent(){return this._parent}set parent(e){if(this._parent===e){return}if(this._parent){throw new Error("Cannot change parent widget.")}if(e.layout!==this){throw new Error("Invalid parent widget.")}this._parent=e;this.init()}get fitPolicy(){return this._fitPolicy}set fitPolicy(e){if(this._fitPolicy===e){return}this._fitPolicy=e;if(this._parent){let e=this._parent.node.style;e.minWidth="";e.minHeight="";e.maxWidth="";e.maxHeight="";this._parent.fit()}}processParentMessage(e){switch(e.type){case"resize":this.onResize(e);break;case"update-request":this.onUpdateRequest(e);break;case"fit-request":this.onFitRequest(e);break;case"before-show":this.onBeforeShow(e);break;case"after-show":this.onAfterShow(e);break;case"before-hide":this.onBeforeHide(e);break;case"after-hide":this.onAfterHide(e);break;case"before-attach":this.onBeforeAttach(e);break;case"after-attach":this.onAfterAttach(e);break;case"before-detach":this.onBeforeDetach(e);break;case"after-detach":this.onAfterDetach(e);break;case"child-removed":this.onChildRemoved(e);break;case"child-shown":this.onChildShown(e);break;case"child-hidden":this.onChildHidden(e);break}}init(){for(const e of this){e.parent=this.parent}}onResize(e){for(const t of this){d.MessageLoop.sendMessage(t,E.ResizeMessage.UnknownSize)}}onUpdateRequest(e){for(const t of this){d.MessageLoop.sendMessage(t,E.ResizeMessage.UnknownSize)}}onBeforeAttach(e){for(const t of this){d.MessageLoop.sendMessage(t,e)}}onAfterAttach(e){for(const t of this){d.MessageLoop.sendMessage(t,e)}}onBeforeDetach(e){for(const t of this){d.MessageLoop.sendMessage(t,e)}}onAfterDetach(e){for(const t of this){d.MessageLoop.sendMessage(t,e)}}onBeforeShow(e){for(const t of this){if(!t.isHidden){d.MessageLoop.sendMessage(t,e)}}}onAfterShow(e){for(const t of this){if(!t.isHidden){d.MessageLoop.sendMessage(t,e)}}}onBeforeHide(e){for(const t of this){if(!t.isHidden){d.MessageLoop.sendMessage(t,e)}}}onAfterHide(e){for(const t of this){if(!t.isHidden){d.MessageLoop.sendMessage(t,e)}}}onChildRemoved(e){this.removeWidget(e.child)}onFitRequest(e){}onChildShown(e){}onChildHidden(e){}}(function(e){function t(e){return A.horizontalAlignmentProperty.get(e)}e.getHorizontalAlignment=t;function n(e,t){A.horizontalAlignmentProperty.set(e,t)}e.setHorizontalAlignment=n;function i(e){return A.verticalAlignmentProperty.get(e)}e.getVerticalAlignment=i;function s(e,t){A.verticalAlignmentProperty.set(e,t)}e.setVerticalAlignment=s})(M||(M={}));class D{constructor(e){this._top=NaN;this._left=NaN;this._width=NaN;this._height=NaN;this._minWidth=0;this._minHeight=0;this._maxWidth=Infinity;this._maxHeight=Infinity;this._disposed=false;this.widget=e;this.widget.node.style.position="absolute";this.widget.node.style.contain="strict"}dispose(){if(this._disposed){return}this._disposed=true;let e=this.widget.node.style;e.position="";e.top="";e.left="";e.width="";e.height="";e.contain=""}get minWidth(){return this._minWidth}get minHeight(){return this._minHeight}get maxWidth(){return this._maxWidth}get maxHeight(){return this._maxHeight}get isDisposed(){return this._disposed}get isHidden(){return this.widget.isHidden}get isVisible(){return this.widget.isVisible}get isAttached(){return this.widget.isAttached}fit(){let e=a.ElementExt.sizeLimits(this.widget.node);this._minWidth=e.minWidth;this._minHeight=e.minHeight;this._maxWidth=e.maxWidth;this._maxHeight=e.maxHeight}update(e,t,n,i){let s=Math.max(this._minWidth,Math.min(n,this._maxWidth));let o=Math.max(this._minHeight,Math.min(i,this._maxHeight));if(s"center",changed:t});e.verticalAlignmentProperty=new h.AttachedProperty({name:"verticalAlignment",create:()=>"top",changed:t});function t(e){if(e.parent&&e.parent.layout){e.parent.update()}}})(A||(A={}));class P extends M{constructor(){super(...arguments);this._widgets=[]}dispose(){while(this._widgets.length>0){this._widgets.pop().dispose()}super.dispose()}get widgets(){return this._widgets}*[Symbol.iterator](){yield*this._widgets}addWidget(e){this.insertWidget(this._widgets.length,e)}insertWidget(e,t){t.parent=this.parent;let n=this._widgets.indexOf(t);let s=Math.max(0,Math.min(e,this._widgets.length));if(n===-1){i.ArrayExt.insert(this._widgets,s,t);if(this.parent){this.attachWidget(s,t)}return}if(s===this._widgets.length){s--}if(n===s){return}i.ArrayExt.move(this._widgets,n,s);if(this.parent){this.moveWidget(n,s,t)}}removeWidget(e){this.removeWidgetAt(this._widgets.indexOf(e))}removeWidgetAt(e){let t=i.ArrayExt.removeAt(this._widgets,e);if(t&&this.parent){this.detachWidget(e,t)}}init(){super.init();let e=0;for(const t of this){this.attachWidget(e++,t)}}attachWidget(e,t){let n=this.parent.node.children[e];if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.BeforeAttach)}this.parent.node.insertBefore(t.node,n);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.AfterAttach)}}moveWidget(e,t,n){if(this.parent.isAttached){d.MessageLoop.sendMessage(n,E.Msg.BeforeDetach)}this.parent.node.removeChild(n.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(n,E.Msg.AfterDetach)}let i=this.parent.node.children[t];if(this.parent.isAttached){d.MessageLoop.sendMessage(n,E.Msg.BeforeAttach)}this.parent.node.insertBefore(n.node,i);if(this.parent.isAttached){d.MessageLoop.sendMessage(n,E.Msg.AfterAttach)}}detachWidget(e,t){if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.BeforeDetach)}this.parent.node.removeChild(t.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.AfterDetach)}}}var L;(function(e){function t(e){return Math.max(0,Math.floor(e))}e.clampDimension=t})(L||(L={}));var R=L;class N extends P{constructor(e){super();this.widgetOffset=0;this._fixed=0;this._spacing=4;this._dirty=false;this._hasNormedSizes=false;this._sizers=[];this._items=[];this._handles=[];this._box=null;this._alignment="start";this._orientation="horizontal";this.renderer=e.renderer;if(e.orientation!==undefined){this._orientation=e.orientation}if(e.alignment!==undefined){this._alignment=e.alignment}if(e.spacing!==undefined){this._spacing=L.clampDimension(e.spacing)}}dispose(){for(const e of this._items){e.dispose()}this._box=null;this._items.length=0;this._sizers.length=0;this._handles.length=0;super.dispose()}get orientation(){return this._orientation}set orientation(e){if(this._orientation===e){return}this._orientation=e;if(!this.parent){return}this.parent.dataset["orientation"]=e;this.parent.fit()}get alignment(){return this._alignment}set alignment(e){if(this._alignment===e){return}this._alignment=e;if(!this.parent){return}this.parent.dataset["alignment"]=e;this.parent.update()}get spacing(){return this._spacing}set spacing(e){e=L.clampDimension(e);if(this._spacing===e){return}this._spacing=e;if(!this.parent){return}this.parent.fit()}get handles(){return this._handles}absoluteSizes(){return this._sizers.map((e=>e.size))}relativeSizes(){return O.normalize(this._sizers.map((e=>e.size)))}setRelativeSizes(e,t=true){let n=this._sizers.length;let i=e.slice(0,n);while(i.length0){s.sizeHint=s.size}}j.adjust(this._sizers,e,i);if(this.parent){this.parent.update()}}init(){this.parent.dataset["orientation"]=this.orientation;this.parent.dataset["alignment"]=this.alignment;super.init()}attachWidget(e,t){let n=new D(t);let s=O.createHandle(this.renderer);let o=O.averageSize(this._sizers);let r=O.createSizer(o);i.ArrayExt.insert(this._items,e,n);i.ArrayExt.insert(this._sizers,e,r);i.ArrayExt.insert(this._handles,e,s);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.BeforeAttach)}this.parent.node.appendChild(t.node);this.parent.node.appendChild(s);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.AfterAttach)}this.parent.fit()}moveWidget(e,t,n){i.ArrayExt.move(this._items,e,t);i.ArrayExt.move(this._sizers,e,t);i.ArrayExt.move(this._handles,e,t);this.parent.fit()}detachWidget(e,t){let n=i.ArrayExt.removeAt(this._items,e);let s=i.ArrayExt.removeAt(this._handles,e);i.ArrayExt.removeAt(this._sizers,e);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.BeforeDetach)}this.parent.node.removeChild(t.node);this.parent.node.removeChild(s);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.AfterDetach)}n.dispose();this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e);this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){if(this.parent.isVisible){this._update(e.width,e.height)}}onUpdateRequest(e){if(this.parent.isVisible){this._update(-1,-1)}}onFitRequest(e){if(this.parent.isAttached){this._fit()}}updateItemPosition(e,t,n,i,s,o,r){const a=this._items[e];if(a.isHidden){return}let l=this._handles[e].style;if(t){n+=this.widgetOffset;a.update(n,i,r,s);n+=r;l.top=`${i}px`;l.left=`${n}px`;l.width=`${this._spacing}px`;l.height=`${s}px`}else{i+=this.widgetOffset;a.update(n,i,o,r);i+=r;l.top=`${i}px`;l.left=`${n}px`;l.width=`${o}px`;l.height=`${this._spacing}px`}}_fit(){let e=0;let t=-1;for(let a=0,l=this._items.length;a0){t.sizeHint=t.size}if(e.isHidden){t.minSize=0;t.maxSize=0;continue}e.fit();t.stretch=N.getStretch(e.widget);if(n){t.minSize=e.minWidth;t.maxSize=e.maxWidth;i+=e.minWidth;s=Math.max(s,e.minHeight)}else{t.minSize=e.minHeight;t.maxSize=e.maxHeight;s+=e.minHeight;i=Math.max(i,e.minWidth)}}let o=this._box=a.ElementExt.boxSizing(this.parent.node);i+=o.horizontalSum;s+=o.verticalSum;let r=this.parent.node.style;r.minWidth=`${i}px`;r.minHeight=`${s}px`;this._dirty=true;if(this.parent.parent){d.MessageLoop.sendMessage(this.parent.parent,E.Msg.FitRequest)}if(this._dirty){d.MessageLoop.sendMessage(this.parent,E.Msg.UpdateRequest)}}_update(e,t){this._dirty=false;let n=0;for(let a=0,h=this._items.length;a0){let e;if(c){e=Math.max(0,o-this._fixed)}else{e=Math.max(0,r-this._fixed)}if(this._hasNormedSizes){for(let t of this._sizers){t.sizeHint*=e}this._hasNormedSizes=false}let t=j.calc(this._sizers,e);if(t>0){switch(this._alignment){case"start":break;case"center":l=0;d=t/2;break;case"end":l=0;d=t;break;case"justify":l=t/n;d=0;break;default:throw"unreachable"}}}for(let a=0,h=this._items.length;a0,coerce:(e,t)=>Math.max(0,Math.floor(t)),changed:o});function t(e){let t=new k;t.sizeHint=Math.floor(e);return t}e.createSizer=t;function n(e){let t=e.createHandle();t.style.position="absolute";t.style.contain="style";return t}e.createHandle=n;function i(e){return e.reduce(((e,t)=>e+t.size),0)/e.length||0}e.averageSize=i;function s(e){let t=e.length;if(t===0){return[]}let n=e.reduce(((e,t)=>e+Math.abs(t)),0);return n===0?e.map((e=>1/t)):e.map((e=>e/n))}e.normalize=s;function o(e){if(e.parent&&e.parent.layout instanceof N){e.parent.fit()}}})(O||(O={}));class B extends N{constructor(e){super({...e,orientation:e.orientation||"vertical"});this._titles=[];this.titleSpace=e.titleSpace||22}get titleSpace(){return this.widgetOffset}set titleSpace(e){e=R.clampDimension(e);if(this.widgetOffset===e){return}this.widgetOffset=e;if(!this.parent){return}this.parent.fit()}get titles(){return this._titles}dispose(){if(this.isDisposed){return}this._titles.length=0;super.dispose()}updateTitle(e,t){const n=this._titles[e];const i=n.classList.contains("lm-mod-expanded");const s=F.createTitle(this.renderer,t.title,i);this._titles[e]=s;this.parent.node.replaceChild(s,n)}insertWidget(e,t){if(!t.id){t.id=`id-${o.UUID.uuid4()}`}super.insertWidget(e,t)}attachWidget(e,t){const n=F.createTitle(this.renderer,t.title);i.ArrayExt.insert(this._titles,e,n);this.parent.node.appendChild(n);t.node.setAttribute("role","region");t.node.setAttribute("aria-labelledby",n.id);super.attachWidget(e,t)}moveWidget(e,t,n){i.ArrayExt.move(this._titles,e,t);super.moveWidget(e,t,n)}detachWidget(e,t){const n=i.ArrayExt.removeAt(this._titles,e);this.parent.node.removeChild(n);super.detachWidget(e,t)}updateItemPosition(e,t,n,i,s,o,r){const a=this._titles[e].style;a.top=`${i}px`;a.left=`${n}px`;a.height=`${this.widgetOffset}px`;if(t){a.width=`${s}px`}else{a.width=`${o}px`}super.updateItemPosition(e,t,n,i,s,o,r)}}var F;(function(e){function t(e,t,n=true){const i=e.createSectionTitle(t);i.style.position="absolute";i.style.contain="strict";i.setAttribute("aria-label",`${t.label} Section`);i.setAttribute("aria-expanded",n?"true":"false");i.setAttribute("aria-controls",t.owner.id);if(n){i.classList.add("lm-mod-expanded")}return i}e.createTitle=t})(F||(F={}));class z extends E{constructor(e={}){super();this.addClass("lm-Panel");this.layout=H.createLayout(e)}get widgets(){return this.layout.widgets}addWidget(e){this.layout.addWidget(e)}insertWidget(e,t){this.layout.insertWidget(e,t)}}var H;(function(e){function t(e){return e.layout||new P}e.createLayout=t})(H||(H={}));class W extends z{constructor(e={}){super({layout:V.createLayout(e)});this._handleMoved=new p.Signal(this);this._pressData=null;this.addClass("lm-SplitPanel")}dispose(){this._releaseMouse();super.dispose()}get orientation(){return this.layout.orientation}set orientation(e){this.layout.orientation=e}get alignment(){return this.layout.alignment}set alignment(e){this.layout.alignment=e}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}get renderer(){return this.layout.renderer}get handleMoved(){return this._handleMoved}get handles(){return this.layout.handles}relativeSizes(){return this.layout.relativeSizes()}setRelativeSizes(e,t=true){this.layout.setRelativeSizes(e,t)}handleEvent(e){switch(e.type){case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault();e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("pointerdown",this)}onAfterDetach(e){this.node.removeEventListener("pointerdown",this);this._releaseMouse()}onChildAdded(e){e.child.addClass("lm-SplitPanel-child");this._releaseMouse()}onChildRemoved(e){e.child.removeClass("lm-SplitPanel-child");this._releaseMouse()}_evtKeyDown(e){if(this._pressData){e.preventDefault();e.stopPropagation()}if(e.keyCode===27){this._releaseMouse()}}_evtPointerDown(e){if(e.button!==0){return}let t=this.layout;let n=i.ArrayExt.findFirstIndex(t.handles,(t=>t.contains(e.target)));if(n===-1){return}e.preventDefault();e.stopPropagation();document.addEventListener("pointerup",this,true);document.addEventListener("pointermove",this,true);document.addEventListener("keydown",this,true);document.addEventListener("contextmenu",this,true);let s;let o=t.handles[n];let r=o.getBoundingClientRect();if(t.orientation==="horizontal"){s=e.clientX-r.left}else{s=e.clientY-r.top}let a=window.getComputedStyle(o);let l=g.Drag.overrideCursor(a.cursor);this._pressData={index:n,delta:s,override:l}}_evtPointerMove(e){e.preventDefault();e.stopPropagation();let t;let n=this.layout;let i=this.node.getBoundingClientRect();if(n.orientation==="horizontal"){t=e.clientX-i.left-this._pressData.delta}else{t=e.clientY-i.top-this._pressData.delta}n.moveHandle(this._pressData.index,t)}_evtPointerUp(e){if(e.button!==0){return}e.preventDefault();e.stopPropagation();this._releaseMouse()}_releaseMouse(){if(!this._pressData){return}this._pressData.override.dispose();this._pressData=null;this._handleMoved.emit();document.removeEventListener("keydown",this,true);document.removeEventListener("pointerup",this,true);document.removeEventListener("pointermove",this,true);document.removeEventListener("contextmenu",this,true)}}(function(e){class t{createHandle(){let e=document.createElement("div");e.className="lm-SplitPanel-handle";return e}}e.Renderer=t;e.defaultRenderer=new t;function n(e){return N.getStretch(e)}e.getStretch=n;function i(e,t){N.setStretch(e,t)}e.setStretch=i})(W||(W={}));var V;(function(e){function t(e){return e.layout||new N({renderer:e.renderer||W.defaultRenderer,orientation:e.orientation,alignment:e.alignment,spacing:e.spacing})}e.createLayout=t})(V||(V={}));class U extends W{constructor(e={}){super({...e,layout:q.createLayout(e)});this._widgetSizesCache=new WeakMap;this._expansionToggled=new p.Signal(this);this.addClass("lm-AccordionPanel")}get renderer(){return this.layout.renderer}get titleSpace(){return this.layout.titleSpace}set titleSpace(e){this.layout.titleSpace=e}get titles(){return this.layout.titles}get expansionToggled(){return this._expansionToggled}addWidget(e){super.addWidget(e);e.title.changed.connect(this._onTitleChanged,this)}collapse(e){const t=this.layout.widgets[e];if(t&&!t.isHidden){this._toggleExpansion(e)}}expand(e){const t=this.layout.widgets[e];if(t&&t.isHidden){this._toggleExpansion(e)}}insertWidget(e,t){super.insertWidget(e,t);t.title.changed.connect(this._onTitleChanged,this)}handleEvent(e){super.handleEvent(e);switch(e.type){case"click":this._evtClick(e);break;case"keydown":this._eventKeyDown(e);break}}onBeforeAttach(e){this.node.addEventListener("click",this);this.node.addEventListener("keydown",this);super.onBeforeAttach(e)}onAfterDetach(e){super.onAfterDetach(e);this.node.removeEventListener("click",this);this.node.removeEventListener("keydown",this)}_onTitleChanged(e){const t=i.ArrayExt.findFirstIndex(this.widgets,(t=>t.contains(e.owner)));if(t>=0){this.layout.updateTitle(t,e.owner);this.update()}}_computeWidgetSize(e){const t=this.layout;const n=t.widgets[e];if(!n){return undefined}const i=n.isHidden;const s=t.absoluteSizes();const o=(i?-1:1)*this.spacing;const r=s.reduce(((e,t)=>e+t));let a=[...s];if(!i){const t=s[e];this._widgetSizesCache.set(n,t);a[e]=0;const i=a.map((e=>e>0)).lastIndexOf(true);if(i===-1){return undefined}a[i]=s[i]+t+o}else{const t=this._widgetSizesCache.get(n);if(!t){return undefined}a[e]+=t;const i=a.map((e=>e-t>0)).lastIndexOf(true);if(i===-1){a.forEach(((n,i)=>{if(i!==e){a[i]-=s[i]/r*(t-o)}}))}else{a[i]-=t-o}}return a.map((e=>e/(r+o)))}_evtClick(e){const t=e.target;if(t){const n=i.ArrayExt.findFirstIndex(this.titles,(e=>e.contains(t)));if(n>=0){e.preventDefault();e.stopPropagation();this._toggleExpansion(n)}}}_eventKeyDown(e){if(e.defaultPrevented){return}const t=e.target;let n=false;if(t){const s=i.ArrayExt.findFirstIndex(this.titles,(e=>e.contains(t)));if(s>=0){const i=e.keyCode.toString();if(e.key.match(/Space|Enter/)||i.match(/13|32/)){t.click();n=true}else if(this.orientation==="horizontal"?e.key.match(/ArrowLeft|ArrowRight/)||i.match(/37|39/):e.key.match(/ArrowUp|ArrowDown/)||i.match(/38|40/)){const t=e.key.match(/ArrowLeft|ArrowUp/)||i.match(/37|38/)?-1:1;const o=this.titles.length;const r=(s+o+t)%o;this.titles[r].focus();n=true}else if(e.key==="End"||i==="35"){this.titles[this.titles.length-1].focus();n=true}else if(e.key==="Home"||i==="36"){this.titles[0].focus();n=true}}if(n){e.preventDefault()}}}_toggleExpansion(e){const t=this.titles[e];const n=this.layout.widgets[e];const i=this._computeWidgetSize(e);if(i){this.setRelativeSizes(i,false)}if(n.isHidden){t.classList.add("lm-mod-expanded");t.setAttribute("aria-expanded","true");n.show()}else{t.classList.remove("lm-mod-expanded");t.setAttribute("aria-expanded","false");n.hide()}this._expansionToggled.emit(e)}}(function(e){class t extends W.Renderer{constructor(){super();this.titleClassName="lm-AccordionPanel-title";this._titleID=0;this._titleKeys=new WeakMap;this._uuid=++t._nInstance}createCollapseIcon(e){return document.createElement("span")}createSectionTitle(e){const t=document.createElement("h3");t.setAttribute("tabindex","0");t.id=this.createTitleKey(e);t.className=this.titleClassName;for(const s in e.dataset){t.dataset[s]=e.dataset[s]}const n=t.appendChild(this.createCollapseIcon(e));n.className="lm-AccordionPanel-titleCollapser";const i=t.appendChild(document.createElement("span"));i.className="lm-AccordionPanel-titleLabel";i.textContent=e.label;i.title=e.caption||e.label;return t}createTitleKey(e){let t=this._titleKeys.get(e);if(t===undefined){t=`title-key-${this._uuid}-${this._titleID++}`;this._titleKeys.set(e,t)}return t}}t._nInstance=0;e.Renderer=t;e.defaultRenderer=new t})(U||(U={}));var q;(function(e){function t(e){return e.layout||new B({renderer:e.renderer||U.defaultRenderer,orientation:e.orientation,alignment:e.alignment,spacing:e.spacing,titleSpace:e.titleSpace})}e.createLayout=t})(q||(q={}));class $ extends P{constructor(e={}){super();this._fixed=0;this._spacing=4;this._dirty=false;this._sizers=[];this._items=[];this._box=null;this._alignment="start";this._direction="top-to-bottom";if(e.direction!==undefined){this._direction=e.direction}if(e.alignment!==undefined){this._alignment=e.alignment}if(e.spacing!==undefined){this._spacing=R.clampDimension(e.spacing)}}dispose(){for(const e of this._items){e.dispose()}this._box=null;this._items.length=0;this._sizers.length=0;super.dispose()}get direction(){return this._direction}set direction(e){if(this._direction===e){return}this._direction=e;if(!this.parent){return}this.parent.dataset["direction"]=e;this.parent.fit()}get alignment(){return this._alignment}set alignment(e){if(this._alignment===e){return}this._alignment=e;if(!this.parent){return}this.parent.dataset["alignment"]=e;this.parent.update()}get spacing(){return this._spacing}set spacing(e){e=R.clampDimension(e);if(this._spacing===e){return}this._spacing=e;if(!this.parent){return}this.parent.fit()}init(){this.parent.dataset["direction"]=this.direction;this.parent.dataset["alignment"]=this.alignment;super.init()}attachWidget(e,t){i.ArrayExt.insert(this._items,e,new D(t));i.ArrayExt.insert(this._sizers,e,new k);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.BeforeAttach)}this.parent.node.appendChild(t.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.AfterAttach)}this.parent.fit()}moveWidget(e,t,n){i.ArrayExt.move(this._items,e,t);i.ArrayExt.move(this._sizers,e,t);this.parent.update()}detachWidget(e,t){let n=i.ArrayExt.removeAt(this._items,e);i.ArrayExt.removeAt(this._sizers,e);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.BeforeDetach)}this.parent.node.removeChild(t.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.AfterDetach)}n.dispose();this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e);this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){if(this.parent.isVisible){this._update(e.width,e.height)}}onUpdateRequest(e){if(this.parent.isVisible){this._update(-1,-1)}}onFitRequest(e){if(this.parent.isAttached){this._fit()}}_fit(){let e=0;for(let r=0,a=this._items.length;r0){switch(this._alignment){case"start":break;case"center":d=0;c=l/2;break;case"end":d=0;c=l;break;case"justify":d=l/n;c=0;break;default:throw"unreachable"}}for(let a=0,h=this._items.length;a0,coerce:(e,t)=>Math.max(0,Math.floor(t)),changed:i});e.sizeBasisProperty=new h.AttachedProperty({name:"sizeBasis",create:()=>0,coerce:(e,t)=>Math.max(0,Math.floor(t)),changed:i});function t(e){return e==="left-to-right"||e==="right-to-left"}e.isHorizontal=t;function n(e){return Math.max(0,Math.floor(e))}e.clampSpacing=n;function i(e){if(e.parent&&e.parent.layout instanceof $){e.parent.fit()}}})(K||(K={}));class J extends z{constructor(e={}){super({layout:G.createLayout(e)});this.addClass("lm-BoxPanel")}get direction(){return this.layout.direction}set direction(e){this.layout.direction=e}get alignment(){return this.layout.alignment}set alignment(e){this.layout.alignment=e}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}onChildAdded(e){e.child.addClass("lm-BoxPanel-child")}onChildRemoved(e){e.child.removeClass("lm-BoxPanel-child")}}(function(e){function t(e){return $.getStretch(e)}e.getStretch=t;function n(e,t){$.setStretch(e,t)}e.setStretch=n;function i(e){return $.getSizeBasis(e)}e.getSizeBasis=i;function s(e,t){$.setSizeBasis(e,t)}e.setSizeBasis=s})(J||(J={}));var G;(function(e){function t(e){return e.layout||new $(e)}e.createLayout=t})(G||(G={}));class Y extends E{constructor(e){super({node:X.createNode()});this._activeIndex=-1;this._items=[];this._results=null;this.addClass("lm-CommandPalette");this.setFlag(E.Flag.DisallowLayout);this.commands=e.commands;this.renderer=e.renderer||Y.defaultRenderer;this.commands.commandChanged.connect(this._onGenericChange,this);this.commands.keyBindingChanged.connect(this._onGenericChange,this)}dispose(){this._items.length=0;this._results=null;super.dispose()}get searchNode(){return this.node.getElementsByClassName("lm-CommandPalette-search")[0]}get inputNode(){return this.node.getElementsByClassName("lm-CommandPalette-input")[0]}get contentNode(){return this.node.getElementsByClassName("lm-CommandPalette-content")[0]}get items(){return this._items}addItem(e){let t=X.createItem(this.commands,e);this._items.push(t);this.refresh();return t}addItems(e){const t=e.map((e=>X.createItem(this.commands,e)));t.forEach((e=>this._items.push(e)));this.refresh();return t}removeItem(e){this.removeItemAt(this._items.indexOf(e))}removeItemAt(e){let t=i.ArrayExt.removeAt(this._items,e);if(!t){return}this.refresh()}clearItems(){if(this._items.length===0){return}this._items.length=0;this.refresh()}refresh(){this._results=null;if(this.inputNode.value!==""){let e=this.node.getElementsByClassName("lm-close-icon")[0];e.style.display="inherit"}else{let e=this.node.getElementsByClassName("lm-close-icon")[0];e.style.display="none"}this.update()}handleEvent(e){switch(e.type){case"click":this._evtClick(e);break;case"keydown":this._evtKeyDown(e);break;case"input":this.refresh();break;case"focus":case"blur":this._toggleFocused();break}}onBeforeAttach(e){this.node.addEventListener("click",this);this.node.addEventListener("keydown",this);this.node.addEventListener("input",this);this.node.addEventListener("focus",this,true);this.node.addEventListener("blur",this,true)}onAfterDetach(e){this.node.removeEventListener("click",this);this.node.removeEventListener("keydown",this);this.node.removeEventListener("input",this);this.node.removeEventListener("focus",this,true);this.node.removeEventListener("blur",this,true)}onAfterShow(e){this.update();super.onAfterShow(e)}onActivateRequest(e){if(this.isAttached){let e=this.inputNode;e.focus();e.select()}}onUpdateRequest(e){if(!this.isVisible){b.VirtualDOM.render(null,this.contentNode);return}let t=this.inputNode.value;let n=this.contentNode;let s=this._results;if(!s){s=this._results=X.search(this._items,t);this._activeIndex=t?i.ArrayExt.findFirstIndex(s,X.canActivate):-1}if(!t&&s.length===0){b.VirtualDOM.render(null,n);return}if(t&&s.length===0){let e=this.renderer.renderEmptyMessage({query:t});b.VirtualDOM.render(e,n);return}let o=this.renderer;let r=this._activeIndex;let l=new Array(s.length);for(let i=0,a=s.length;i=s.length){n.scrollTop=0}else{let e=n.children[r];a.ElementExt.scrollIntoViewIfNeeded(n,e)}}_evtClick(e){if(e.button!==0){return}if(e.target.classList.contains("lm-close-icon")){this.inputNode.value="";this.refresh();return}let t=i.ArrayExt.findFirstIndex(this.contentNode.children,(t=>t.contains(e.target)));if(t===-1){return}e.preventDefault();e.stopPropagation();this._execute(t)}_evtKeyDown(e){if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey){return}switch(e.keyCode){case 13:e.preventDefault();e.stopPropagation();this._execute(this._activeIndex);break;case 38:e.preventDefault();e.stopPropagation();this._activatePreviousItem();break;case 40:e.preventDefault();e.stopPropagation();this._activateNextItem();break}}_activateNextItem(){if(!this._results||this._results.length===0){return}let e=this._activeIndex;let t=this._results.length;let n=ee-t));let h=a.slice(0,c);let u=a.slice(c);for(let i=0,p=u.length;in.command===e&&o.JSONExt.deepEqual(n.args,t)))||null}}})(X||(X={}));class Q extends E{constructor(e){super({node:Z.createNode()});this._childIndex=-1;this._activeIndex=-1;this._openTimerID=0;this._closeTimerID=0;this._items=[];this._childMenu=null;this._parentMenu=null;this._aboutToClose=new p.Signal(this);this._menuRequested=new p.Signal(this);this.addClass("lm-Menu");this.setFlag(E.Flag.DisallowLayout);this.commands=e.commands;this.renderer=e.renderer||Q.defaultRenderer}dispose(){this.close();this._items.length=0;super.dispose()}get aboutToClose(){return this._aboutToClose}get menuRequested(){return this._menuRequested}get parentMenu(){return this._parentMenu}get childMenu(){return this._childMenu}get rootMenu(){let e=this;while(e._parentMenu){e=e._parentMenu}return e}get leafMenu(){let e=this;while(e._childMenu){e=e._childMenu}return e}get contentNode(){return this.node.getElementsByClassName("lm-Menu-content")[0]}get activeItem(){return this._items[this._activeIndex]||null}set activeItem(e){this.activeIndex=e?this._items.indexOf(e):-1}get activeIndex(){return this._activeIndex}set activeIndex(e){if(e<0||e>=this._items.length){e=-1}if(e!==-1&&!Z.canActivate(this._items[e])){e=-1}if(this._activeIndex===e){return}this._activeIndex=e;if(this._activeIndex>=0&&this.contentNode.childNodes[this._activeIndex]){this.contentNode.childNodes[this._activeIndex].focus()}this.update()}get items(){return this._items}activateNextItem(){let e=this._items.length;let t=this._activeIndex;let n=t{this.activeIndex=r}})}b.VirtualDOM.render(o,this.contentNode)}onCloseRequest(e){this._cancelOpenTimer();this._cancelCloseTimer();this.activeIndex=-1;let t=this._childMenu;if(t){this._childIndex=-1;this._childMenu=null;t._parentMenu=null;t.close()}let n=this._parentMenu;if(n){this._parentMenu=null;n._childIndex=-1;n._childMenu=null;n.activate()}if(this.isAttached){this._aboutToClose.emit(undefined)}super.onCloseRequest(e)}_evtKeyDown(e){e.preventDefault();e.stopPropagation();let t=e.keyCode;if(t===13){this.triggerActiveItem();return}if(t===27){this.close();return}if(t===37){if(this._parentMenu){this.close()}else{this._menuRequested.emit("previous")}return}if(t===38){this.activatePreviousItem();return}if(t===39){let e=this.activeItem;if(e&&e.type==="submenu"){this.triggerActiveItem()}else{this.rootMenu._menuRequested.emit("next")}return}if(t===40){this.activateNextItem();return}let n=(0,x.getKeyboardLayout)().keyForKeydownEvent(e);if(!n){return}let i=this._activeIndex+1;let s=Z.findMnemonic(this._items,n,i);if(s.index!==-1&&!s.multiple){this.activeIndex=s.index;this.triggerActiveItem()}else if(s.index!==-1){this.activeIndex=s.index}else if(s.auto!==-1){this.activeIndex=s.auto}}_evtMouseUp(e){if(e.button!==0){return}e.preventDefault();e.stopPropagation();this.triggerActiveItem()}_evtMouseMove(e){let t=i.ArrayExt.findFirstIndex(this.contentNode.children,(t=>a.ElementExt.hitTest(t,e.clientX,e.clientY)));if(t===this._activeIndex){return}this.activeIndex=t;t=this.activeIndex;if(t===this._childIndex){this._cancelOpenTimer();this._cancelCloseTimer();return}if(this._childIndex!==-1){this._startCloseTimer()}this._cancelOpenTimer();let n=this.activeItem;if(!n||n.type!=="submenu"||!n.submenu){return}this._startOpenTimer()}_evtMouseEnter(e){for(let t=this._parentMenu;t;t=t._parentMenu){t._cancelOpenTimer();t._cancelCloseTimer();t.activeIndex=t._childIndex}}_evtMouseLeave(e){this._cancelOpenTimer();if(!this._childMenu){this.activeIndex=-1;return}let{clientX:t,clientY:n}=e;if(a.ElementExt.hitTest(this._childMenu.node,t,n)){this._cancelCloseTimer();return}this.activeIndex=-1;this._startCloseTimer()}_evtMouseDown(e){if(this._parentMenu){return}if(Z.hitTestMenus(this,e.clientX,e.clientY)){e.preventDefault();e.stopPropagation()}else{this.close()}}_openChildMenu(e=false){let t=this.activeItem;if(!t||t.type!=="submenu"||!t.submenu){this._closeChildMenu();return}let n=t.submenu;if(n===this._childMenu){return}Q.saveWindowData();this._closeChildMenu();this._childMenu=n;this._childIndex=this._activeIndex;n._parentMenu=this;d.MessageLoop.sendMessage(this,E.Msg.UpdateRequest);let i=this.contentNode.children[this._activeIndex];Z.openSubmenu(n,i);if(e){n.activeIndex=-1;n.activateNextItem()}n.activate()}_closeChildMenu(){if(this._childMenu){this._childMenu.close()}}_startOpenTimer(){if(this._openTimerID===0){this._openTimerID=window.setTimeout((()=>{this._openTimerID=0;this._openChildMenu()}),Z.TIMER_DELAY)}}_startCloseTimer(){if(this._closeTimerID===0){this._closeTimerID=window.setTimeout((()=>{this._closeTimerID=0;this._closeChildMenu()}),Z.TIMER_DELAY)}}_cancelOpenTimer(){if(this._openTimerID!==0){clearTimeout(this._openTimerID);this._openTimerID=0}}_cancelCloseTimer(){if(this._closeTimerID!==0){clearTimeout(this._closeTimerID);this._closeTimerID=0}}static saveWindowData(){Z.saveWindowData()}}(function(e){class t{renderItem(e){let t=this.createItemClass(e);let n=this.createItemDataset(e);let i=this.createItemARIA(e);return b.h.li({className:t,dataset:n,tabindex:"0",onfocus:e.onfocus,...i},this.renderIcon(e),this.renderLabel(e),this.renderShortcut(e),this.renderSubmenu(e))}renderIcon(e){let t=this.createIconClass(e);return b.h.div({className:t},e.item.icon,e.item.iconLabel)}renderLabel(e){let t=this.formatLabel(e);return b.h.div({className:"lm-Menu-itemLabel"},t)}renderShortcut(e){let t=this.formatShortcut(e);return b.h.div({className:"lm-Menu-itemShortcut"},t)}renderSubmenu(e){return b.h.div({className:"lm-Menu-itemSubmenuIcon"})}createItemClass(e){let t="lm-Menu-item";if(!e.item.isEnabled){t+=" lm-mod-disabled"}if(e.item.isToggled){t+=" lm-mod-toggled"}if(!e.item.isVisible){t+=" lm-mod-hidden"}if(e.active){t+=" lm-mod-active"}if(e.collapsed){t+=" lm-mod-collapsed"}let n=e.item.className;if(n){t+=` ${n}`}return t}createItemDataset(e){let t;let{type:n,command:i,dataset:s}=e.item;if(n==="command"){t={...s,type:n,command:i}}else{t={...s,type:n}}return t}createIconClass(e){let t="lm-Menu-itemIcon";let n=e.item.iconClass;return n?`${t} ${n}`:t}createItemARIA(e){let t={};switch(e.item.type){case"separator":t.role="presentation";break;case"submenu":t["aria-haspopup"]="true";if(!e.item.isEnabled){t["aria-disabled"]="true"}break;default:if(!e.item.isEnabled){t["aria-disabled"]="true"}if(e.item.isToggled){t.role="menuitemcheckbox";t["aria-checked"]="true"}else{t.role="menuitem"}}return t}formatLabel(e){let{label:t,mnemonic:n}=e.item;if(n<0||n>=t.length){return t}let i=t.slice(0,n);let s=t.slice(n+1);let o=t[n];let r=b.h.span({className:"lm-Menu-itemMnemonic"},o);return[i,r,s]}formatShortcut(e){let t=e.item.keyBinding;return t?v.CommandRegistry.formatKeystroke(t.keys):null}}e.Renderer=t;e.defaultRenderer=new t})(Q||(Q={}));var Z;(function(e){e.TIMER_DELAY=300;e.SUBMENU_OVERLAP=3;let t=null;let n=0;function s(){if(n>0){n--;return t}return m()}function r(){t=m();n++}e.saveWindowData=r;function l(){let e=document.createElement("div");let t=document.createElement("ul");t.className="lm-Menu-content";e.appendChild(t);t.setAttribute("role","menu");e.tabIndex=0;return e}e.createNode=l;function c(e){return e.type!=="separator"&&e.isEnabled&&e.isVisible}e.canActivate=c;function h(e,t){return new _(e.commands,t)}e.createItem=h;function u(e,t,n){for(let i=e;i;i=i.childMenu){if(a.ElementExt.hitTest(i.node,t,n)){return true}}return false}e.hitTestMenus=u;function p(e){let t=new Array(e.length);i.ArrayExt.fill(t,false);let n=0;let s=e.length;for(;n=0;--o){let n=e[o];if(!n.isVisible){continue}if(n.type!=="separator"){break}t[o]=true}let r=false;while(++nh+p){t=h+p-_}if(!o&&n+b>u+m){if(n>u+m){n=u+m-b}else{n=n-b}}v.transform=`translate(${Math.max(0,t)}px, ${Math.max(0,n)}px`;v.opacity="1"}e.openRootMenu=g;function f(t,n){const i=s();let o=i.pageXOffset;let r=i.pageYOffset;let l=i.clientWidth;let c=i.clientHeight;d.MessageLoop.sendMessage(t,E.Msg.UpdateRequest);let h=c;let u=t.node;let p=u.style;p.opacity="0";p.maxHeight=`${h}px`;E.attach(t,document.body);let{width:m,height:g}=u.getBoundingClientRect();let f=a.ElementExt.boxSizing(t.node);let v=n.getBoundingClientRect();let _=v.right-e.SUBMENU_OVERLAP;if(_+m>o+l){_=v.left+e.SUBMENU_OVERLAP-m}let b=v.top-f.borderTop-f.paddingTop;if(b+g>r+c){b=v.bottom+f.borderBottom+f.paddingBottom-g}p.transform=`translate(${Math.max(0,_)}px, ${Math.max(0,b)}px`;p.opacity="1"}e.openSubmenu=f;function v(e,t,n){let i=-1;let s=-1;let o=false;let r=t.toUpperCase();for(let a=0,l=e.length;a=0&&un.command===e&&o.JSONExt.deepEqual(n.args,t)))||null}return null}}})(Z||(Z={}));class ee{constructor(e){this._groupByTarget=true;this._idTick=0;this._items=[];this._sortBySelector=true;const{groupByTarget:t,sortBySelector:n,...i}=e;this.menu=new Q(i);this._groupByTarget=t!==false;this._sortBySelector=n!==false}addItem(e){let t=te.createItem(e,this._idTick++);this._items.push(t);return new w.DisposableDelegate((()=>{i.ArrayExt.removeFirstOf(this._items,t)}))}open(e){Q.saveWindowData();this.menu.clearItems();if(this._items.length===0){return false}let t=te.matchItems(this._items,e,this._groupByTarget,this._sortBySelector);if(!t||t.length===0){return false}for(const n of t){this.menu.addItem(n)}this.menu.open(e.clientX,e.clientY);return true}}var te;(function(e){function t(e,t){let n=i(e.selector);let s=e.rank!==undefined?e.rank:Infinity;return{...e,selector:n,rank:s,id:t}}e.createItem=t;function n(e,t,n,i){let r=t.target;if(!r){return null}let l=t.currentTarget;if(!l){return null}if(!l.contains(r)){r=document.elementFromPoint(t.clientX,t.clientY);if(!r||!l.contains(r)){return null}}let d=[];let c=e.slice();while(r!==null){let e=[];for(let t=0,n=c.length;t=this._titles.length){e=-1}if(this._currentIndex===e){return}let t=this._currentIndex;let n=this._titles[t]||null;let i=e;let s=this._titles[i]||null;this._currentIndex=i;this._previousTitle=n;this.update();this._currentChanged.emit({previousIndex:t,previousTitle:n,currentIndex:i,currentTitle:s})}get name(){return this._name}set name(e){this._name=e;if(e){this.contentNode.setAttribute("aria-label",e)}else{this.contentNode.removeAttribute("aria-label")}}get orientation(){return this._orientation}set orientation(e){if(this._orientation===e){return}this._releaseMouse();this._orientation=e;this.dataset["orientation"]=e;this.contentNode.setAttribute("aria-orientation",e)}get addButtonEnabled(){return this._addButtonEnabled}set addButtonEnabled(e){if(this._addButtonEnabled===e){return}this._addButtonEnabled=e;if(e){this.addButtonNode.classList.remove("lm-mod-hidden")}else{this.addButtonNode.classList.add("lm-mod-hidden")}}get titles(){return this._titles}get contentNode(){return this.node.getElementsByClassName("lm-TabBar-content")[0]}get addButtonNode(){return this.node.getElementsByClassName("lm-TabBar-addButton")[0]}addTab(e){return this.insertTab(this._titles.length,e)}insertTab(e,t){this._releaseMouse();let n=se.asTitle(t);let s=this._titles.indexOf(n);let o=Math.max(0,Math.min(e,this._titles.length));if(s===-1){i.ArrayExt.insert(this._titles,o,n);n.changed.connect(this._onTitleChanged,this);this.update();this._adjustCurrentForInsert(o,n);return n}if(o===this._titles.length){o--}if(s===o){return n}i.ArrayExt.move(this._titles,s,o);this.update();this._adjustCurrentForMove(s,o);return n}removeTab(e){this.removeTabAt(this._titles.indexOf(e))}removeTabAt(e){this._releaseMouse();let t=i.ArrayExt.removeAt(this._titles,e);if(!t){return}t.changed.disconnect(this._onTitleChanged,this);if(t===this._previousTitle){this._previousTitle=null}this.update();this._adjustCurrentForRemove(e,t)}clearTabs(){if(this._titles.length===0){return}this._releaseMouse();for(let n of this._titles){n.changed.disconnect(this._onTitleChanged,this)}let e=this.currentIndex;let t=this.currentTitle;this._currentIndex=-1;this._previousTitle=null;this._titles.length=0;this.update();if(e===-1){return}this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,currentTitle:null})}releaseMouse(){this._releaseMouse()}handleEvent(e){switch(e.type){case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"dblclick":this._evtDblClick(e);break;case"keydown":e.eventPhase===Event.CAPTURING_PHASE?this._evtKeyDownCapturing(e):this._evtKeyDown(e);break;case"contextmenu":e.preventDefault();e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("pointerdown",this);this.node.addEventListener("dblclick",this);this.node.addEventListener("keydown",this)}onAfterDetach(e){this.node.removeEventListener("pointerdown",this);this.node.removeEventListener("dblclick",this);this.node.removeEventListener("keydown",this);this._releaseMouse()}onUpdateRequest(e){var t;let n=this._titles;let i=this.renderer;let s=this.currentTitle;let o=new Array(n.length);const r=(t=this._getCurrentTabindex())!==null&&t!==void 0?t:this._currentIndex>-1?this._currentIndex:0;for(let a=0,l=n.length;aa.ElementExt.hitTest(t,e.clientX,e.clientY)));if(n===-1){return}let s=this.titles[n];let o=t[n].querySelector(".lm-TabBar-tabLabel");if(o&&o.contains(e.target)){let e=s.label||"";let t=o.innerHTML;o.innerHTML="";let n=document.createElement("input");n.classList.add("lm-TabBar-tabInput");n.value=e;o.appendChild(n);let i=()=>{n.removeEventListener("blur",i);o.innerHTML=t;this.node.addEventListener("keydown",this)};n.addEventListener("dblclick",(e=>e.stopPropagation()));n.addEventListener("blur",i);n.addEventListener("keydown",(e=>{if(e.key==="Enter"){if(n.value!==""){s.label=s.caption=n.value}i()}else if(e.key==="Escape"){i()}}));this.node.removeEventListener("keydown",this);n.select();n.focus();if(o.children.length>0){o.children[0].focus()}}}_evtKeyDownCapturing(e){if(e.eventPhase!==Event.CAPTURING_PHASE){return}e.preventDefault();e.stopPropagation();if(e.key==="Escape"){this._releaseMouse()}}_evtKeyDown(e){var t,n,s;if(e.key==="Tab"||e.eventPhase===Event.CAPTURING_PHASE){return}if(e.key==="Enter"||e.key==="Spacebar"||e.key===" "){const t=document.activeElement;if(this.addButtonEnabled&&this.addButtonNode.contains(t)){e.preventDefault();e.stopPropagation();this._addRequested.emit()}else{const n=i.ArrayExt.findFirstIndex(this.contentNode.children,(e=>e.contains(t)));if(n>=0){e.preventDefault();e.stopPropagation();this.currentIndex=n}}}else if(ne.includes(e.key)){const i=[...this.contentNode.children];if(this.addButtonEnabled){i.push(this.addButtonNode)}if(i.length<=1){return}e.preventDefault();e.stopPropagation();let o=i.indexOf(document.activeElement);if(o===-1){o=this._currentIndex}let r;if(e.key==="ArrowRight"&&this._orientation==="horizontal"||e.key==="ArrowDown"&&this._orientation==="vertical"){r=(t=i[o+1])!==null&&t!==void 0?t:i[0]}else if(e.key==="ArrowLeft"&&this._orientation==="horizontal"||e.key==="ArrowUp"&&this._orientation==="vertical"){r=(n=i[o-1])!==null&&n!==void 0?n:i[i.length-1]}else if(e.key==="Home"){r=i[0]}else if(e.key==="End"){r=i[i.length-1]}if(r){(s=i[o])===null||s===void 0?void 0:s.setAttribute("tabindex","-1");r===null||r===void 0?void 0:r.setAttribute("tabindex","0");r.focus()}}}_evtPointerDown(e){if(e.button!==0&&e.button!==1){return}if(this._dragData){return}if(e.target.classList.contains("lm-TabBar-tabInput")){return}let t=this.addButtonEnabled&&this.addButtonNode.contains(e.target);let n=this.contentNode.children;let s=i.ArrayExt.findFirstIndex(n,(t=>a.ElementExt.hitTest(t,e.clientX,e.clientY)));if(s===-1&&!t){return}e.preventDefault();e.stopPropagation();this._dragData={tab:n[s],index:s,pressX:e.clientX,pressY:e.clientY,tabPos:-1,tabSize:-1,tabPressPos:-1,targetIndex:-1,tabLayout:null,contentRect:null,override:null,dragActive:false,dragAborted:false,detachRequested:false};this.document.addEventListener("pointerup",this,true);if(e.button===1||t){return}let o=n[s].querySelector(this.renderer.closeIconSelector);if(o&&o.contains(e.target)){return}if(this.tabsMovable){this.document.addEventListener("pointermove",this,true);this.document.addEventListener("keydown",this,true);this.document.addEventListener("contextmenu",this,true)}if(this.allowDeselect&&this.currentIndex===s){this.currentIndex=-1}else{this.currentIndex=s}if(this.currentIndex===-1){return}this._tabActivateRequested.emit({index:this.currentIndex,title:this.currentTitle})}_evtPointerMove(e){let t=this._dragData;if(!t){return}e.preventDefault();e.stopPropagation();let n=this.contentNode.children;if(!t.dragActive&&!se.dragExceeded(t,e)){return}if(!t.dragActive){let e=t.tab.getBoundingClientRect();if(this._orientation==="horizontal"){t.tabPos=t.tab.offsetLeft;t.tabSize=e.width;t.tabPressPos=t.pressX-e.left}else{t.tabPos=t.tab.offsetTop;t.tabSize=e.height;t.tabPressPos=t.pressY-e.top}t.tabPressOffset={x:t.pressX-e.left,y:t.pressY-e.top};t.tabLayout=se.snapTabLayout(n,this._orientation);t.contentRect=this.contentNode.getBoundingClientRect();t.override=g.Drag.overrideCursor("default");t.tab.classList.add("lm-mod-dragging");this.addClass("lm-mod-dragging");t.dragActive=true}if(!t.detachRequested&&se.detachExceeded(t,e)){t.detachRequested=true;let i=t.index;let s=e.clientX;let o=e.clientY;let r=n[i];let a=this._titles[i];this._tabDetachRequested.emit({index:i,title:a,tab:r,clientX:s,clientY:o,offset:t.tabPressOffset});if(t.dragAborted){return}}se.layoutTabs(n,t,e,this._orientation)}_evtPointerUp(e){if(e.button!==0&&e.button!==1){return}const t=this._dragData;if(!t){return}e.preventDefault();e.stopPropagation();this.document.removeEventListener("pointermove",this,true);this.document.removeEventListener("pointerup",this,true);this.document.removeEventListener("keydown",this,true);this.document.removeEventListener("contextmenu",this,true);if(!t.dragActive){this._dragData=null;let n=this.addButtonEnabled&&this.addButtonNode.contains(e.target);if(n){this._addRequested.emit(undefined);return}let s=this.contentNode.children;let o=i.ArrayExt.findFirstIndex(s,(t=>a.ElementExt.hitTest(t,e.clientX,e.clientY)));if(o!==t.index){return}let r=this._titles[o];if(!r.closable){return}if(e.button===1){this._tabCloseRequested.emit({index:o,title:r});return}let l=s[o].querySelector(this.renderer.closeIconSelector);if(l&&l.contains(e.target)){this._tabCloseRequested.emit({index:o,title:r});return}return}if(e.button!==0){return}se.finalizeTabPosition(t,this._orientation);t.tab.classList.remove("lm-mod-dragging");let n=se.parseTransitionDuration(t.tab);setTimeout((()=>{if(t.dragAborted){return}this._dragData=null;se.resetTabPositions(this.contentNode.children,this._orientation);t.override.dispose();this.removeClass("lm-mod-dragging");let e=t.index;let n=t.targetIndex;if(n===-1||e===n){return}i.ArrayExt.move(this._titles,e,n);this._adjustCurrentForMove(e,n);this._tabMoved.emit({fromIndex:e,toIndex:n,title:this._titles[n]});d.MessageLoop.sendMessage(this,E.Msg.UpdateRequest)}),n)}_releaseMouse(){let e=this._dragData;if(!e){return}this._dragData=null;this.document.removeEventListener("pointermove",this,true);this.document.removeEventListener("pointerup",this,true);this.document.removeEventListener("keydown",this,true);this.document.removeEventListener("contextmenu",this,true);e.dragAborted=true;if(!e.dragActive){return}se.resetTabPositions(this.contentNode.children,this._orientation);e.override.dispose();e.tab.classList.remove("lm-mod-dragging");this.removeClass("lm-mod-dragging")}_adjustCurrentForInsert(e,t){let n=this.currentTitle;let i=this._currentIndex;let s=this.insertBehavior;if(s==="select-tab"||s==="select-tab-if-needed"&&i===-1){this._currentIndex=e;this._previousTitle=n;this._currentChanged.emit({previousIndex:i,previousTitle:n,currentIndex:e,currentTitle:t});return}if(i>=e){this._currentIndex++}}_adjustCurrentForMove(e,t){if(this._currentIndex===e){this._currentIndex=t}else if(this._currentIndex=t){this._currentIndex++}else if(this._currentIndex>e&&this._currentIndex<=t){this._currentIndex--}}_adjustCurrentForRemove(e,t){let n=this._currentIndex;let i=this.removeBehavior;if(n!==e){if(n>e){this._currentIndex--}return}if(this._titles.length===0){this._currentIndex=-1;this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,currentTitle:null});return}if(i==="select-tab-after"){this._currentIndex=Math.min(e,this._titles.length-1);this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}if(i==="select-tab-before"){this._currentIndex=Math.max(0,e-1);this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}if(i==="select-previous-tab"){if(this._previousTitle){this._currentIndex=this._titles.indexOf(this._previousTitle);this._previousTitle=null}else{this._currentIndex=Math.min(e,this._titles.length-1)}this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}this._currentIndex=-1;this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,currentTitle:null})}_onTitleChanged(e){this.update()}}(function(e){class t{constructor(){this.closeIconSelector=".lm-TabBar-tabCloseIcon";this._tabID=0;this._tabKeys=new WeakMap;this._uuid=++t._nInstance}renderTab(e){let t=e.title.caption;let n=this.createTabKey(e);let i=n;let s=this.createTabStyle(e);let o=this.createTabClass(e);let r=this.createTabDataset(e);let a=this.createTabARIA(e);if(e.title.closable){return b.h.li({id:i,key:n,className:o,title:t,style:s,dataset:r,...a},this.renderIcon(e),this.renderLabel(e),this.renderCloseIcon(e))}else{return b.h.li({id:i,key:n,className:o,title:t,style:s,dataset:r,...a},this.renderIcon(e),this.renderLabel(e))}}renderIcon(e){const{title:t}=e;let n=this.createIconClass(e);return b.h.div({className:n},t.icon,t.iconLabel)}renderLabel(e){return b.h.div({className:"lm-TabBar-tabLabel"},e.title.label)}renderCloseIcon(e){return b.h.div({className:"lm-TabBar-tabCloseIcon"})}createTabKey(e){let t=this._tabKeys.get(e.title);if(t===undefined){t=`tab-key-${this._uuid}-${this._tabID++}`;this._tabKeys.set(e.title,t)}return t}createTabStyle(e){return{zIndex:`${e.zIndex}`}}createTabClass(e){let t="lm-TabBar-tab";if(e.title.className){t+=` ${e.title.className}`}if(e.title.closable){t+=" lm-mod-closable"}if(e.current){t+=" lm-mod-current"}return t}createTabDataset(e){return e.title.dataset}createTabARIA(e){var t;return{role:"tab","aria-selected":e.current.toString(),tabindex:`${(t=e.tabIndex)!==null&&t!==void 0?t:"-1"}`}}createIconClass(e){let t="lm-TabBar-tabIcon";let n=e.title.iconClass;return n?`${t} ${n}`:t}}t._nInstance=0;e.Renderer=t;e.defaultRenderer=new t;e.addButtonSelector=".lm-TabBar-addButton"})(ie||(ie={}));var se;(function(e){e.DRAG_THRESHOLD=5;e.DETACH_THRESHOLD=20;function t(){let e=document.createElement("div");let t=document.createElement("ul");t.setAttribute("role","tablist");t.className="lm-TabBar-content";e.appendChild(t);let n=document.createElement("div");n.className="lm-TabBar-addButton lm-mod-hidden";n.setAttribute("tabindex","-1");n.setAttribute("role","button");e.appendChild(n);return e}e.createNode=t;function n(e){return e instanceof I?e:new I(e)}e.asTitle=n;function i(e){let t=window.getComputedStyle(e);return 1e3*(parseFloat(t.transitionDuration)||0)}e.parseTransitionDuration=i;function s(e,t){let n=new Array(e.length);for(let i=0,s=e.length;i=e.DRAG_THRESHOLD||s>=e.DRAG_THRESHOLD}e.dragExceeded=o;function r(t,n){let i=t.contentRect;return n.clientX=i.right+e.DETACH_THRESHOLD||n.clientY=i.bottom+e.DETACH_THRESHOLD}e.detachExceeded=r;function a(e,t,n,i){let s;let o;let r;let a;if(i==="horizontal"){s=t.pressX;o=n.clientX-t.contentRect.left;r=n.clientX;a=t.contentRect.width}else{s=t.pressY;o=n.clientY-t.contentRect.top;r=n.clientY;a=t.contentRect.height}let l=t.index;let d=o-t.tabPressPos;let c=d+t.tabSize;for(let h=0,u=e.length;h>1);if(ht.index&&c>u){n=`${-t.tabSize-o.margin}px`;l=Math.max(l,h)}else if(h===t.index){let e=r-s;let i=a-(t.tabPos+t.tabSize);n=`${Math.max(-t.tabPos,Math.min(e,i))}px`}else{n=""}if(i==="horizontal"){e[h].style.left=n}else{e[h].style.top=n}}t.targetIndex=l}e.layoutTabs=a;function l(e,t){let n;if(t==="horizontal"){n=e.contentRect.width}else{n=e.contentRect.height}let i;if(e.targetIndex===e.index){i=0}else if(e.targetIndex>e.index){let t=e.tabLayout[e.targetIndex];i=t.pos+t.size-e.tabSize-e.tabPos}else{let t=e.tabLayout[e.targetIndex];i=t.pos-e.tabPos}let s=n-(e.tabPos+e.tabSize);let o=Math.max(-e.tabPos,Math.min(i,s));if(t==="horizontal"){e.tab.style.left=`${o}px`}else{e.tab.style.top=`${o}px`}}e.finalizeTabPosition=l;function d(e,t){for(const n of e){if(t==="horizontal"){n.style.left=""}else{n.style.top=""}}}e.resetTabPositions=d})(se||(se={}));class oe extends M{constructor(e){super();this._spacing=4;this._dirty=false;this._root=null;this._box=null;this._items=new Map;this.renderer=e.renderer;if(e.spacing!==undefined){this._spacing=R.clampDimension(e.spacing)}this._document=e.document||document;this._hiddenMode=e.hiddenMode!==undefined?e.hiddenMode:E.HiddenMode.Display}dispose(){let e=this[Symbol.iterator]();this._items.forEach((e=>{e.dispose()}));this._box=null;this._root=null;this._items.clear();for(const t of e){t.dispose()}super.dispose()}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){if(this._hiddenMode===e){return}this._hiddenMode=e;for(const t of this.tabBars()){if(t.titles.length>1){for(const e of t.titles){e.owner.hiddenMode=this._hiddenMode}}}}get spacing(){return this._spacing}set spacing(e){e=R.clampDimension(e);if(this._spacing===e){return}this._spacing=e;if(!this.parent){return}this.parent.fit()}get isEmpty(){return this._root===null}[Symbol.iterator](){return this._root?this._root.iterAllWidgets():(0,i.empty)()}widgets(){return this._root?this._root.iterUserWidgets():(0,i.empty)()}selectedWidgets(){return this._root?this._root.iterSelectedWidgets():(0,i.empty)()}tabBars(){return this._root?this._root.iterTabBars():(0,i.empty)()}handles(){return this._root?this._root.iterHandles():(0,i.empty)()}moveHandle(e,t,n){let i=e.classList.contains("lm-mod-hidden");if(!this._root||i){return}let s=this._root.findSplitNode(e);if(!s){return}let o;if(s.node.orientation==="horizontal"){o=t-e.offsetLeft}else{o=n-e.offsetTop}if(o===0){return}s.node.holdSizes();j.adjust(s.node.sizers,s.index,o);if(this.parent){this.parent.update()}}saveLayout(){if(!this._root){return{main:null}}this._root.holdAllSizes();return{main:this._root.createConfig()}}restoreLayout(e){let t=new Set;let n;if(e.main){n=re.normalizeAreaConfig(e.main,t)}else{n=null}let i=this.widgets();let s=this.tabBars();let o=this.handles();this._root=null;for(const r of i){if(!t.has(r)){r.parent=null}}for(const r of s){r.dispose()}for(const r of o){if(r.parentNode){r.parentNode.removeChild(r)}}for(const r of t){r.parent=this.parent}if(n){this._root=re.realizeAreaConfig(n,{createTabBar:e=>this._createTabBar(),createHandle:()=>this._createHandle()},this._document)}else{this._root=null}if(!this.parent){return}t.forEach((e=>{this.attachWidget(e)}));this.parent.fit()}addWidget(e,t={}){let n=t.ref||null;let i=t.mode||"tab-after";let s=null;if(this._root&&n){s=this._root.findTabNode(n)}if(n&&!s){throw new Error("Reference widget is not in the layout.")}e.parent=this.parent;switch(i){case"tab-after":this._insertTab(e,n,s,true);break;case"tab-before":this._insertTab(e,n,s,false);break;case"split-top":this._insertSplit(e,n,s,"vertical",false);break;case"split-left":this._insertSplit(e,n,s,"horizontal",false);break;case"split-right":this._insertSplit(e,n,s,"horizontal",true);break;case"split-bottom":this._insertSplit(e,n,s,"vertical",true);break;case"merge-top":this._insertSplit(e,n,s,"vertical",false,true);break;case"merge-left":this._insertSplit(e,n,s,"horizontal",false,true);break;case"merge-right":this._insertSplit(e,n,s,"horizontal",true,true);break;case"merge-bottom":this._insertSplit(e,n,s,"vertical",true,true);break}if(!this.parent){return}this.attachWidget(e);this.parent.fit()}removeWidget(e){this._removeWidget(e);if(!this.parent){return}this.detachWidget(e);this.parent.fit()}hitTestTabAreas(e,t){if(!this._root||!this.parent||!this.parent.isVisible){return null}if(!this._box){this._box=a.ElementExt.boxSizing(this.parent.node)}let n=this.parent.node.getBoundingClientRect();let i=e-n.left-this._box.borderLeft;let s=t-n.top-this._box.borderTop;let o=this._root.hitTestTabNodes(i,s);if(!o){return null}let{tabBar:r,top:l,left:d,width:c,height:h}=o;let u=this._box.borderLeft+this._box.borderRight;let p=this._box.borderTop+this._box.borderBottom;let m=n.width-u-(d+c);let g=n.height-p-(l+h);return{tabBar:r,x:i,y:s,top:l,left:d,right:m,bottom:g,width:c,height:h}}init(){super.init();for(const e of this){this.attachWidget(e)}for(const e of this.handles()){this.parent.node.appendChild(e)}this.parent.fit()}attachWidget(e){if(this.parent.node===e.node.parentNode){return}this._items.set(e,new D(e));if(this.parent.isAttached){d.MessageLoop.sendMessage(e,E.Msg.BeforeAttach)}this.parent.node.appendChild(e.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(e,E.Msg.AfterAttach)}}detachWidget(e){if(this.parent.node!==e.node.parentNode){return}if(this.parent.isAttached){d.MessageLoop.sendMessage(e,E.Msg.BeforeDetach)}this.parent.node.removeChild(e.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(e,E.Msg.AfterDetach)}let t=this._items.get(e);if(t){this._items.delete(e);t.dispose()}}onBeforeShow(e){super.onBeforeShow(e);this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){if(this.parent.isVisible){this._update(e.width,e.height)}}onUpdateRequest(e){if(this.parent.isVisible){this._update(-1,-1)}}onFitRequest(e){if(this.parent.isAttached){this._fit()}}_removeWidget(e){if(!this._root){return}let t=this._root.findTabNode(e);if(!t){return}re.removeAria(e);if(t.tabBar.titles.length>1){t.tabBar.removeTab(e.title);if(this._hiddenMode===E.HiddenMode.Scale&&t.tabBar.titles.length==1){const e=t.tabBar.titles[0].owner;e.hiddenMode=E.HiddenMode.Display}return}t.tabBar.dispose();if(this._root===t){this._root=null;return}this._root.holdAllSizes();let n=t.parent;t.parent=null;let s=i.ArrayExt.removeFirstOf(n.children,t);let o=i.ArrayExt.removeAt(n.handles,s);i.ArrayExt.removeAt(n.sizers,s);if(o.parentNode){o.parentNode.removeChild(o)}if(n.children.length>1){n.syncHandles();return}let r=n.parent;n.parent=null;let a=n.children[0];let l=n.handles[0];n.children.length=0;n.handles.length=0;n.sizers.length=0;if(l.parentNode){l.parentNode.removeChild(l)}if(this._root===n){a.parent=null;this._root=a;return}let d=r;let c=d.children.indexOf(n);if(a instanceof re.TabLayoutNode){a.parent=d;d.children[c]=a;return}let h=i.ArrayExt.removeAt(d.handles,c);i.ArrayExt.removeAt(d.children,c);i.ArrayExt.removeAt(d.sizers,c);if(h.parentNode){h.parentNode.removeChild(h)}for(let u=0,p=a.children.length;u=this._left+this._width){return null}if(t=this._top+this._height){return null}return this}createConfig(){let e=this.tabBar.titles.map((e=>e.owner));let t=this.tabBar.currentIndex;return{type:"tab-area",widgets:e,currentIndex:t}}holdAllSizes(){return}fit(e,t){let n=0;let i=0;let s=Infinity;let o=Infinity;let r=t.get(this.tabBar);let a=this.tabBar.currentTitle;let l=a?t.get(a.owner):undefined;let[d,c]=this.sizers;if(r){r.fit()}if(l){l.fit()}if(r&&!r.isHidden){n=Math.max(n,r.minWidth);i+=r.minHeight;d.minSize=r.minHeight;d.maxSize=r.maxHeight}else{d.minSize=0;d.maxSize=0}if(l&&!l.isHidden){n=Math.max(n,l.minWidth);i+=l.minHeight;c.minSize=l.minHeight;c.maxSize=Infinity}else{c.minSize=0;c.maxSize=Infinity}return{minWidth:n,minHeight:i,maxWidth:s,maxHeight:o}}update(e,t,n,i,s,o){this._top=t;this._left=e;this._width=n;this._height=i;let r=o.get(this.tabBar);let a=this.tabBar.currentTitle;let l=a?o.get(a.owner):undefined;j.calc(this.sizers,i);if(r&&!r.isHidden){let i=this.sizers[0].size;r.update(e,t,n,i);t+=i}if(l&&!l.isHidden){let i=this.sizers[1].size;l.update(e,t,n,i)}}}e.TabLayoutNode=s;class o{constructor(e){this.parent=null;this.normalized=false;this.children=[];this.sizers=[];this.handles=[];this.orientation=e}*iterAllWidgets(){for(const e of this.children){yield*e.iterAllWidgets()}}*iterUserWidgets(){for(const e of this.children){yield*e.iterUserWidgets()}}*iterSelectedWidgets(){for(const e of this.children){yield*e.iterSelectedWidgets()}}*iterTabBars(){for(const e of this.children){yield*e.iterTabBars()}}*iterHandles(){yield*this.handles;for(const e of this.children){yield*e.iterHandles()}}findTabNode(e){for(let t=0,n=this.children.length;te.createConfig()));return{type:"split-area",orientation:e,children:n,sizes:t}}syncHandles(){this.handles.forEach(((e,t)=>{e.setAttribute("data-orientation",this.orientation);if(t===this.handles.length-1){e.classList.add("lm-mod-hidden")}else{e.classList.remove("lm-mod-hidden")}}))}holdSizes(){for(const e of this.sizers){e.sizeHint=e.size}}holdAllSizes(){for(const e of this.children){e.holdAllSizes()}this.holdSizes()}normalizeSizes(){let e=this.sizers.length;if(e===0){return}this.holdSizes();let t=this.sizers.reduce(((e,t)=>e+t.sizeHint),0);if(t===0){for(const t of this.sizers){t.size=t.sizeHint=1/e}}else{for(const e of this.sizers){e.size=e.sizeHint/=t}}this.normalized=true}createNormalizedSizes(){let e=this.sizers.length;if(e===0){return[]}let t=this.sizers.map((e=>e.size));let n=t.reduce(((e,t)=>e+t),0);if(n===0){for(let n=t.length-1;n>-1;n--){t[n]=1/e}}else{for(let e=t.length-1;e>-1;e--){t[e]/=n}}return t}fit(e,t){let n=this.orientation==="horizontal";let i=Math.max(0,this.children.length-1)*e;let s=n?i:0;let o=n?0:i;let r=Infinity;let a=Infinity;for(let l=0,d=this.children.length;l=n.length)){i=0}return{type:"tab-area",widgets:n,currentIndex:i}}function d(e,t){let i=e.orientation;let s=[];let o=[];for(let r=0,a=e.children.length;r{let l=i(o,n,s);let d=t(e.sizes[a]);let c=n.createHandle();r.children.push(l);r.handles.push(c);r.sizers.push(d);l.parent=r}));r.syncHandles();r.normalizeSizes();return r}})(re||(re={}));class ae extends E{constructor(e={}){super();this._drag=null;this._tabsMovable=true;this._tabsConstrained=false;this._addButtonEnabled=false;this._pressData=null;this._layoutModified=new p.Signal(this);this._addRequested=new p.Signal(this);this.addClass("lm-DockPanel");this._document=e.document||document;this._mode=e.mode||"multiple-document";this._renderer=e.renderer||ae.defaultRenderer;this._edges=e.edges||le.DEFAULT_EDGES;if(e.tabsMovable!==undefined){this._tabsMovable=e.tabsMovable}if(e.tabsConstrained!==undefined){this._tabsConstrained=e.tabsConstrained}if(e.addButtonEnabled!==undefined){this._addButtonEnabled=e.addButtonEnabled}this.dataset["mode"]=this._mode;let t={createTabBar:()=>this._createTabBar(),createHandle:()=>this._createHandle()};this.layout=new oe({document:this._document,renderer:t,spacing:e.spacing,hiddenMode:e.hiddenMode});this.overlay=e.overlay||new ae.Overlay;this.node.appendChild(this.overlay.node)}dispose(){this._releaseMouse();this.overlay.hide(0);if(this._drag){this._drag.dispose()}super.dispose()}get hiddenMode(){return this.layout.hiddenMode}set hiddenMode(e){this.layout.hiddenMode=e}get layoutModified(){return this._layoutModified}get addRequested(){return this._addRequested}get renderer(){return this.layout.renderer}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}get mode(){return this._mode}set mode(e){if(this._mode===e){return}this._mode=e;this.dataset["mode"]=e;let t=this.layout;switch(e){case"multiple-document":for(const e of t.tabBars()){e.show()}break;case"single-document":t.restoreLayout(le.createSingleDocumentConfig(this));break;default:throw"unreachable"}d.MessageLoop.postMessage(this,le.LayoutModified)}get tabsMovable(){return this._tabsMovable}set tabsMovable(e){this._tabsMovable=e;for(const t of this.tabBars()){t.tabsMovable=e}}get tabsConstrained(){return this._tabsConstrained}set tabsConstrained(e){this._tabsConstrained=e}get addButtonEnabled(){return this._addButtonEnabled}set addButtonEnabled(e){this._addButtonEnabled=e;for(const t of this.tabBars()){t.addButtonEnabled=e}}get isEmpty(){return this.layout.isEmpty}*widgets(){yield*this.layout.widgets()}*selectedWidgets(){yield*this.layout.selectedWidgets()}*tabBars(){yield*this.layout.tabBars()}*handles(){yield*this.layout.handles()}selectWidget(e){let t=(0,i.find)(this.tabBars(),(t=>t.titles.indexOf(e.title)!==-1));if(!t){throw new Error("Widget is not contained in the dock panel.")}t.currentTitle=e.title}activateWidget(e){this.selectWidget(e);e.activate()}saveLayout(){return this.layout.saveLayout()}restoreLayout(e){this._mode="multiple-document";this.layout.restoreLayout(e);if(a.Platform.IS_EDGE||a.Platform.IS_IE){d.MessageLoop.flush()}d.MessageLoop.postMessage(this,le.LayoutModified)}addWidget(e,t={}){if(this._mode==="single-document"){this.layout.addWidget(e)}else{this.layout.addWidget(e,t)}d.MessageLoop.postMessage(this,le.LayoutModified)}processMessage(e){if(e.type==="layout-modified"){this._layoutModified.emit(undefined)}else{super.processMessage(e)}}handleEvent(e){switch(e.type){case"lm-dragenter":this._evtDragEnter(e);break;case"lm-dragleave":this._evtDragLeave(e);break;case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault();e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("lm-dragenter",this);this.node.addEventListener("lm-dragleave",this);this.node.addEventListener("lm-dragover",this);this.node.addEventListener("lm-drop",this);this.node.addEventListener("pointerdown",this)}onAfterDetach(e){this.node.removeEventListener("lm-dragenter",this);this.node.removeEventListener("lm-dragleave",this);this.node.removeEventListener("lm-dragover",this);this.node.removeEventListener("lm-drop",this);this.node.removeEventListener("pointerdown",this);this._releaseMouse()}onChildAdded(e){if(le.isGeneratedTabBarProperty.get(e.child)){return}e.child.addClass("lm-DockPanel-widget")}onChildRemoved(e){if(le.isGeneratedTabBarProperty.get(e.child)){return}e.child.removeClass("lm-DockPanel-widget");d.MessageLoop.postMessage(this,le.LayoutModified)}_evtDragEnter(e){if(e.mimeData.hasData("application/vnd.lumino.widget-factory")){e.preventDefault();e.stopPropagation()}}_evtDragLeave(e){e.preventDefault();if(this._tabsConstrained&&e.source!==this)return;e.stopPropagation();this.overlay.hide(1)}_evtDragOver(e){e.preventDefault();if(this._tabsConstrained&&e.source!==this||this._showOverlay(e.clientX,e.clientY)==="invalid"){e.dropAction="none"}else{e.stopPropagation();e.dropAction=e.proposedAction}}_evtDrop(e){e.preventDefault();this.overlay.hide(0);if(e.proposedAction==="none"){e.dropAction="none";return}let{clientX:t,clientY:n}=e;let{zone:i,target:s}=le.findDropTarget(this,t,n,this._edges);if(this._tabsConstrained&&e.source!==this||i==="invalid"){e.dropAction="none";return}let o=e.mimeData;let r=o.getData("application/vnd.lumino.widget-factory");if(typeof r!=="function"){e.dropAction="none";return}let a=r();if(!(a instanceof E)){e.dropAction="none";return}if(a.contains(this)){e.dropAction="none";return}let l=s?le.getDropRef(s.tabBar):null;switch(i){case"root-all":this.addWidget(a);break;case"root-top":this.addWidget(a,{mode:"split-top"});break;case"root-left":this.addWidget(a,{mode:"split-left"});break;case"root-right":this.addWidget(a,{mode:"split-right"});break;case"root-bottom":this.addWidget(a,{mode:"split-bottom"});break;case"widget-all":this.addWidget(a,{mode:"tab-after",ref:l});break;case"widget-top":this.addWidget(a,{mode:"split-top",ref:l});break;case"widget-left":this.addWidget(a,{mode:"split-left",ref:l});break;case"widget-right":this.addWidget(a,{mode:"split-right",ref:l});break;case"widget-bottom":this.addWidget(a,{mode:"split-bottom",ref:l});break;case"widget-tab":this.addWidget(a,{mode:"tab-after",ref:l});break;default:throw"unreachable"}e.dropAction=e.proposedAction;e.stopPropagation();this.activateWidget(a)}_evtKeyDown(e){e.preventDefault();e.stopPropagation();if(e.keyCode===27){this._releaseMouse();d.MessageLoop.postMessage(this,le.LayoutModified)}}_evtPointerDown(e){if(e.button!==0){return}let t=this.layout;let n=e.target;let s=(0,i.find)(t.handles(),(e=>e.contains(n)));if(!s){return}e.preventDefault();e.stopPropagation();this._document.addEventListener("keydown",this,true);this._document.addEventListener("pointerup",this,true);this._document.addEventListener("pointermove",this,true);this._document.addEventListener("contextmenu",this,true);let o=s.getBoundingClientRect();let r=e.clientX-o.left;let a=e.clientY-o.top;let l=window.getComputedStyle(s);let d=g.Drag.overrideCursor(l.cursor,this._document);this._pressData={handle:s,deltaX:r,deltaY:a,override:d}}_evtPointerMove(e){if(!this._pressData){return}e.preventDefault();e.stopPropagation();let t=this.node.getBoundingClientRect();let n=e.clientX-t.left-this._pressData.deltaX;let i=e.clientY-t.top-this._pressData.deltaY;let s=this.layout;s.moveHandle(this._pressData.handle,n,i)}_evtPointerUp(e){if(e.button!==0){return}e.preventDefault();e.stopPropagation();this._releaseMouse();d.MessageLoop.postMessage(this,le.LayoutModified)}_releaseMouse(){if(!this._pressData){return}this._pressData.override.dispose();this._pressData=null;this._document.removeEventListener("keydown",this,true);this._document.removeEventListener("pointerup",this,true);this._document.removeEventListener("pointermove",this,true);this._document.removeEventListener("contextmenu",this,true)}_showOverlay(e,t){let{zone:n,target:i}=le.findDropTarget(this,e,t,this._edges);if(n==="invalid"){this.overlay.hide(100);return n}let s;let o;let r;let l;let d=a.ElementExt.boxSizing(this.node);let c=this.node.getBoundingClientRect();switch(n){case"root-all":s=d.paddingTop;o=d.paddingLeft;r=d.paddingRight;l=d.paddingBottom;break;case"root-top":s=d.paddingTop;o=d.paddingLeft;r=d.paddingRight;l=c.height*le.GOLDEN_RATIO;break;case"root-left":s=d.paddingTop;o=d.paddingLeft;r=c.width*le.GOLDEN_RATIO;l=d.paddingBottom;break;case"root-right":s=d.paddingTop;o=c.width*le.GOLDEN_RATIO;r=d.paddingRight;l=d.paddingBottom;break;case"root-bottom":s=c.height*le.GOLDEN_RATIO;o=d.paddingLeft;r=d.paddingRight;l=d.paddingBottom;break;case"widget-all":s=i.top;o=i.left;r=i.right;l=i.bottom;break;case"widget-top":s=i.top;o=i.left;r=i.right;l=i.bottom+i.height/2;break;case"widget-left":s=i.top;o=i.left;r=i.right+i.width/2;l=i.bottom;break;case"widget-right":s=i.top;o=i.left+i.width/2;r=i.right;l=i.bottom;break;case"widget-bottom":s=i.top+i.height/2;o=i.left;r=i.right;l=i.bottom;break;case"widget-tab":{const e=i.tabBar.node.getBoundingClientRect().height;s=i.top;o=i.left;r=i.right;l=i.bottom+i.height-e;break}default:throw"unreachable"}this.overlay.show({top:s,left:o,right:r,bottom:l});return n}_createTabBar(){let e=this._renderer.createTabBar(this._document);le.isGeneratedTabBarProperty.set(e,true);if(this._mode==="single-document"){e.hide()}e.tabsMovable=this._tabsMovable;e.allowDeselect=false;e.addButtonEnabled=this._addButtonEnabled;e.removeBehavior="select-previous-tab";e.insertBehavior="select-tab-if-needed";e.tabMoved.connect(this._onTabMoved,this);e.currentChanged.connect(this._onCurrentChanged,this);e.tabCloseRequested.connect(this._onTabCloseRequested,this);e.tabDetachRequested.connect(this._onTabDetachRequested,this);e.tabActivateRequested.connect(this._onTabActivateRequested,this);e.addRequested.connect(this._onTabAddRequested,this);return e}_createHandle(){return this._renderer.createHandle()}_onTabMoved(){d.MessageLoop.postMessage(this,le.LayoutModified)}_onCurrentChanged(e,t){let{previousTitle:n,currentTitle:i}=t;if(n){n.owner.hide()}if(i){i.owner.show()}if(a.Platform.IS_EDGE||a.Platform.IS_IE){d.MessageLoop.flush()}d.MessageLoop.postMessage(this,le.LayoutModified)}_onTabAddRequested(e){this._addRequested.emit(e)}_onTabActivateRequested(e,t){t.title.owner.activate()}_onTabCloseRequested(e,t){t.title.owner.close()}_onTabDetachRequested(e,t){if(this._drag){return}e.releaseMouse();let{title:n,tab:i,clientX:s,clientY:r,offset:a}=t;let l=new o.MimeData;let d=()=>n.owner;l.setData("application/vnd.lumino.widget-factory",d);let c=i.cloneNode(true);if(a){c.style.top=`-${a.y}px`;c.style.left=`-${a.x}px`}this._drag=new g.Drag({document:this._document,mimeData:l,dragImage:c,proposedAction:"move",supportedActions:"move",source:this});i.classList.add("lm-mod-hidden");let h=()=>{this._drag=null;i.classList.remove("lm-mod-hidden")};this._drag.start(s,r).then(h)}}(function(e){class t{constructor(){this._timer=-1;this._hidden=true;this.node=document.createElement("div");this.node.classList.add("lm-DockPanel-overlay");this.node.classList.add("lm-mod-hidden");this.node.style.position="absolute";this.node.style.contain="strict"}show(e){let t=this.node.style;t.top=`${e.top}px`;t.left=`${e.left}px`;t.right=`${e.right}px`;t.bottom=`${e.bottom}px`;clearTimeout(this._timer);this._timer=-1;if(!this._hidden){return}this._hidden=false;this.node.classList.remove("lm-mod-hidden")}hide(e){if(this._hidden){return}if(e<=0){clearTimeout(this._timer);this._timer=-1;this._hidden=true;this.node.classList.add("lm-mod-hidden");return}if(this._timer!==-1){return}this._timer=window.setTimeout((()=>{this._timer=-1;this._hidden=true;this.node.classList.add("lm-mod-hidden")}),e)}}e.Overlay=t;class n{createTabBar(e){let t=new ie({document:e});t.addClass("lm-DockPanel-tabBar");return t}createHandle(){let e=document.createElement("div");e.className="lm-DockPanel-handle";return e}}e.Renderer=n;e.defaultRenderer=new n})(ae||(ae={}));var le;(function(e){e.GOLDEN_RATIO=.618;e.DEFAULT_EDGES={top:12,right:40,bottom:40,left:40};e.LayoutModified=new d.ConflatableMessage("layout-modified");e.isGeneratedTabBarProperty=new h.AttachedProperty({name:"isGeneratedTabBar",create:()=>false});function t(e){if(e.isEmpty){return{main:null}}let t=Array.from(e.widgets());let n=e.selectedWidgets().next().value;let i=n?t.indexOf(n):-1;return{main:{type:"tab-area",widgets:t,currentIndex:i}}}e.createSingleDocumentConfig=t;function n(e,t,n,i){if(!a.ElementExt.hitTest(e.node,t,n)){return{zone:"invalid",target:null}}let s=e.layout;if(s.isEmpty){return{zone:"root-all",target:null}}if(e.mode==="multiple-document"){let s=e.node.getBoundingClientRect();let o=t-s.left+1;let r=n-s.top+1;let a=s.right-t;let l=s.bottom-n;let d=Math.min(r,a,l,o);switch(d){case r:if(ru&&d>u&&l>p&&c>p){return{zone:"widget-all",target:o}}r/=u;l/=p;d/=u;c/=p;let m=Math.min(r,l,d,c);let g;switch(m){case r:g="widget-left";break;case l:g="widget-top";break;case d:g="widget-right";break;case c:g="widget-bottom";break;default:throw"unreachable"}return{zone:g,target:o}}e.findDropTarget=n;function i(e){if(e.titles.length===0){return null}if(e.currentTitle){return e.currentTitle.owner}return e.titles[e.titles.length-1].owner}e.getDropRef=i})(le||(le={}));class de{constructor(){this._counter=0;this._widgets=[];this._activeWidget=null;this._currentWidget=null;this._numbers=new Map;this._nodes=new Map;this._activeChanged=new p.Signal(this);this._currentChanged=new p.Signal(this)}dispose(){if(this._counter<0){return}this._counter=-1;p.Signal.clearData(this);for(const e of this._widgets){e.node.removeEventListener("focus",this,true);e.node.removeEventListener("blur",this,true)}this._activeWidget=null;this._currentWidget=null;this._nodes.clear();this._numbers.clear();this._widgets.length=0}get currentChanged(){return this._currentChanged}get activeChanged(){return this._activeChanged}get isDisposed(){return this._counter<0}get currentWidget(){return this._currentWidget}get activeWidget(){return this._activeWidget}get widgets(){return this._widgets}focusNumber(e){let t=this._numbers.get(e);return t===undefined?-1:t}has(e){return this._numbers.has(e)}add(e){if(this._numbers.has(e)){return}let t=e.node.contains(document.activeElement);let n=t?this._counter++:-1;this._widgets.push(e);this._numbers.set(e,n);this._nodes.set(e.node,e);e.node.addEventListener("focus",this,true);e.node.addEventListener("blur",this,true);e.disposed.connect(this._onWidgetDisposed,this);if(t){this._setWidgets(e,e)}}remove(e){if(!this._numbers.has(e)){return}e.disposed.disconnect(this._onWidgetDisposed,this);e.node.removeEventListener("focus",this,true);e.node.removeEventListener("blur",this,true);i.ArrayExt.removeFirstOf(this._widgets,e);this._nodes.delete(e.node);this._numbers.delete(e);if(this._currentWidget!==e){return}let t=this._widgets.filter((e=>this._numbers.get(e)!==-1));let n=(0,i.max)(t,((e,t)=>{let n=this._numbers.get(e);let i=this._numbers.get(t);return n-i}))||null;this._setWidgets(n,null)}handleEvent(e){switch(e.type){case"focus":this._evtFocus(e);break;case"blur":this._evtBlur(e);break}}_setWidgets(e,t){let n=this._currentWidget;this._currentWidget=e;let i=this._activeWidget;this._activeWidget=t;if(n!==e){this._currentChanged.emit({oldValue:n,newValue:e})}if(i!==t){this._activeChanged.emit({oldValue:i,newValue:t})}}_evtFocus(e){let t=this._nodes.get(e.currentTarget);if(t!==this._currentWidget){this._numbers.set(t,this._counter++)}this._setWidgets(t,t)}_evtBlur(e){let t=this._nodes.get(e.currentTarget);let n=e.relatedTarget;if(!n){this._setWidgets(this._currentWidget,null);return}if(t.node.contains(n)){return}if(!(0,i.find)(this._widgets,(e=>e.node.contains(n)))){this._setWidgets(this._currentWidget,null);return}}_onWidgetDisposed(e){this.remove(e)}}class ce extends M{constructor(e={}){super(e);this._dirty=false;this._rowSpacing=4;this._columnSpacing=4;this._items=[];this._rowStarts=[];this._columnStarts=[];this._rowSizers=[new k];this._columnSizers=[new k];this._box=null;if(e.rowCount!==undefined){he.reallocSizers(this._rowSizers,e.rowCount)}if(e.columnCount!==undefined){he.reallocSizers(this._columnSizers,e.columnCount)}if(e.rowSpacing!==undefined){this._rowSpacing=he.clampValue(e.rowSpacing)}if(e.columnSpacing!==undefined){this._columnSpacing=he.clampValue(e.columnSpacing)}}dispose(){for(const e of this._items){let t=e.widget;e.dispose();t.dispose()}this._box=null;this._items.length=0;this._rowStarts.length=0;this._rowSizers.length=0;this._columnStarts.length=0;this._columnSizers.length=0;super.dispose()}get rowCount(){return this._rowSizers.length}set rowCount(e){if(e===this.rowCount){return}he.reallocSizers(this._rowSizers,e);if(this.parent){this.parent.fit()}}get columnCount(){return this._columnSizers.length}set columnCount(e){if(e===this.columnCount){return}he.reallocSizers(this._columnSizers,e);if(this.parent){this.parent.fit()}}get rowSpacing(){return this._rowSpacing}set rowSpacing(e){e=he.clampValue(e);if(this._rowSpacing===e){return}this._rowSpacing=e;if(this.parent){this.parent.fit()}}get columnSpacing(){return this._columnSpacing}set columnSpacing(e){e=he.clampValue(e);if(this._columnSpacing===e){return}this._columnSpacing=e;if(this.parent){this.parent.fit()}}rowStretch(e){let t=this._rowSizers[e];return t?t.stretch:-1}setRowStretch(e,t){let n=this._rowSizers[e];if(!n){return}t=he.clampValue(t);if(n.stretch===t){return}n.stretch=t;if(this.parent){this.parent.update()}}columnStretch(e){let t=this._columnSizers[e];return t?t.stretch:-1}setColumnStretch(e,t){let n=this._columnSizers[e];if(!n){return}t=he.clampValue(t);if(n.stretch===t){return}n.stretch=t;if(this.parent){this.parent.update()}}*[Symbol.iterator](){for(const e of this._items){yield e.widget}}addWidget(e){let t=i.ArrayExt.findFirstIndex(this._items,(t=>t.widget===e));if(t!==-1){return}this._items.push(new D(e));if(this.parent){this.attachWidget(e)}}removeWidget(e){let t=i.ArrayExt.findFirstIndex(this._items,(t=>t.widget===e));if(t===-1){return}let n=i.ArrayExt.removeAt(this._items,t);if(this.parent){this.detachWidget(e)}n.dispose()}init(){super.init();for(const e of this){this.attachWidget(e)}}attachWidget(e){if(this.parent.isAttached){d.MessageLoop.sendMessage(e,E.Msg.BeforeAttach)}this.parent.node.appendChild(e.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(e,E.Msg.AfterAttach)}this.parent.fit()}detachWidget(e){if(this.parent.isAttached){d.MessageLoop.sendMessage(e,E.Msg.BeforeDetach)}this.parent.node.removeChild(e.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(e,E.Msg.AfterDetach)}this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e);this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){if(this.parent.isVisible){this._update(e.width,e.height)}}onUpdateRequest(e){if(this.parent.isVisible){this._update(-1,-1)}}onFitRequest(e){if(this.parent.isAttached){this._fit()}}_fit(){for(let a=0,l=this.rowCount;a!e.isHidden));for(let a=0,l=e.length;a({row:0,column:0,rowSpan:1,columnSpan:1}),changed:a});function t(e){let t=Math.max(0,Math.floor(e.row||0));let n=Math.max(0,Math.floor(e.column||0));let i=Math.max(1,Math.floor(e.rowSpan||0));let s=Math.max(1,Math.floor(e.columnSpan||0));return{row:t,column:n,rowSpan:i,columnSpan:s}}e.normalizeConfig=t;function n(e){return Math.max(0,Math.floor(e))}e.clampValue=n;function i(t,n){let i=e.cellConfigProperty.get(t.widget);let s=e.cellConfigProperty.get(n.widget);return i.rowSpan-s.rowSpan}e.rowSpanCmp=i;function s(t,n){let i=e.cellConfigProperty.get(t.widget);let s=e.cellConfigProperty.get(n.widget);return i.columnSpan-s.columnSpan}e.columnSpanCmp=s;function o(e,t){t=Math.max(1,Math.floor(t));while(e.lengtht){e.length=t}}e.reallocSizers=o;function r(e,t,n,i){if(n=i){return}let o=(i-s)/(n-t+1);for(let r=t;r<=n;++r){e[r].minSize+=o}}e.distributeMin=r;function a(e){if(e.parent&&e.parent.layout instanceof ce){e.parent.fit()}}})(he||(he={}));class ue extends E{constructor(e={}){super({node:pe.createNode()});this._activeIndex=-1;this._tabFocusIndex=0;this._menus=[];this._childMenu=null;this._overflowMenu=null;this._menuItemSizes=[];this._overflowIndex=-1;this.addClass("lm-MenuBar");this.setFlag(E.Flag.DisallowLayout);this.renderer=e.renderer||ue.defaultRenderer;this._forceItemsPosition=e.forceItemsPosition||{forceX:true,forceY:true};this._overflowMenuOptions=e.overflowMenuOptions||{isVisible:true}}dispose(){this._closeChildMenu();this._menus.length=0;super.dispose()}get childMenu(){return this._childMenu}get overflowIndex(){return this._overflowIndex}get overflowMenu(){return this._overflowMenu}get contentNode(){return this.node.getElementsByClassName("lm-MenuBar-content")[0]}get activeMenu(){return this._menus[this._activeIndex]||null}set activeMenu(e){this.activeIndex=e?this._menus.indexOf(e):-1}get activeIndex(){return this._activeIndex}set activeIndex(e){if(e<0||e>=this._menus.length){e=-1}if(e>-1&&this._menus[e].items.length===0){e=-1}if(this._activeIndex===e){return}this._activeIndex=e;this.update()}get menus(){return this._menus}openActiveMenu(){if(this._activeIndex===-1){return}this._openChildMenu();if(this._childMenu){this._childMenu.activeIndex=-1;this._childMenu.activateNextItem()}}addMenu(e,t=true){this.insertMenu(this._menus.length,e,t)}insertMenu(e,t,n=true){this._closeChildMenu();let s=this._menus.indexOf(t);let o=Math.max(0,Math.min(e,this._menus.length));if(s===-1){i.ArrayExt.insert(this._menus,o,t);t.addClass("lm-MenuBar-menu");t.aboutToClose.connect(this._onMenuAboutToClose,this);t.menuRequested.connect(this._onMenuMenuRequested,this);t.title.changed.connect(this._onTitleChanged,this);if(n){this.update()}return}if(o===this._menus.length){o--}if(s===o){return}i.ArrayExt.move(this._menus,s,o);if(n){this.update()}}removeMenu(e,t=true){this.removeMenuAt(this._menus.indexOf(e),t)}removeMenuAt(e,t=true){this._closeChildMenu();let n=i.ArrayExt.removeAt(this._menus,e);if(!n){return}n.aboutToClose.disconnect(this._onMenuAboutToClose,this);n.menuRequested.disconnect(this._onMenuMenuRequested,this);n.title.changed.disconnect(this._onTitleChanged,this);n.removeClass("lm-MenuBar-menu");if(t){this.update()}}clearMenus(){if(this._menus.length===0){return}this._closeChildMenu();for(let e of this._menus){e.aboutToClose.disconnect(this._onMenuAboutToClose,this);e.menuRequested.disconnect(this._onMenuMenuRequested,this);e.title.changed.disconnect(this._onTitleChanged,this);e.removeClass("lm-MenuBar-menu")}this._menus.length=0;this.update()}handleEvent(e){switch(e.type){case"keydown":this._evtKeyDown(e);break;case"mousedown":this._evtMouseDown(e);break;case"mousemove":this._evtMouseMove(e);break;case"focusout":this._evtFocusOut(e);break;case"contextmenu":e.preventDefault();e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("keydown",this);this.node.addEventListener("mousedown",this);this.node.addEventListener("mousemove",this);this.node.addEventListener("focusout",this);this.node.addEventListener("contextmenu",this)}onAfterDetach(e){this.node.removeEventListener("keydown",this);this.node.removeEventListener("mousedown",this);this.node.removeEventListener("mousemove",this);this.node.removeEventListener("focusout",this);this.node.removeEventListener("contextmenu",this);this._closeChildMenu()}onActivateRequest(e){if(this.isAttached){this._focusItemAt(0)}}onResize(e){this.update();super.onResize(e)}onUpdateRequest(e){var t;let n=this._menus;let i=this.renderer;let s=this._activeIndex;let o=this._tabFocusIndex>=0&&this._tabFocusIndex-1?this._overflowIndex:n.length;let a=0;let l=false;r=this._overflowMenu!==null?r-1:r;let d=new Array(r);for(let c=0;c{this._tabFocusIndex=c;this.activeIndex=c}});a+=this._menuItemSizes[c];if(n[c].title.label===this._overflowMenuOptions.title){l=true;r--}}if(this._overflowMenuOptions.isVisible){if(this._overflowIndex>-1&&!l){if(this._overflowMenu===null){const e=(t=this._overflowMenuOptions.title)!==null&&t!==void 0?t:"...";this._overflowMenu=new Q({commands:new v.CommandRegistry});this._overflowMenu.title.label=e;this._overflowMenu.title.mnemonic=0;this.addMenu(this._overflowMenu,false)}for(let e=n.length-2;e>=r;e--){const t=this.menus[e];t.title.mnemonic=0;this._overflowMenu.insertItem(0,{type:"submenu",submenu:t});this.removeMenu(t,false)}d[r]=i.renderItem({title:this._overflowMenu.title,active:r===s&&n[r].items.length!==0,tabbable:r===o,disabled:n[r].items.length===0,onfocus:()=>{this._tabFocusIndex=r;this.activeIndex=r}});r++}else if(this._overflowMenu!==null){let e=this._overflowMenu.items;let t=this.node.offsetWidth;let s=this._overflowMenu.items.length;for(let l=0;lthis._menuItemSizes[s]){let t=e[0].submenu;this._overflowMenu.removeItemAt(0);this.insertMenu(r,t,false);d[r]=i.renderItem({title:t.title,active:false,tabbable:r===o,disabled:n[r].items.length===0,onfocus:()=>{this._tabFocusIndex=r;this.activeIndex=r}});r++}}if(this._overflowMenu.items.length===0){this.removeMenu(this._overflowMenu,false);d.pop();this._overflowMenu=null;this._overflowIndex=-1}}}b.VirtualDOM.render(d,this.contentNode);this._updateOverflowIndex()}_updateOverflowIndex(){if(!this._overflowMenuOptions.isVisible){return}const e=this.contentNode.childNodes;let t=this.node.offsetWidth;let n=0;let i=-1;let s=e.length;if(this._menuItemSizes.length==0){for(let o=0;ot&&i===-1){i=o}}}else{for(let e=0;et){i=e;break}}}this._overflowIndex=i}_evtKeyDown(e){let t=e.keyCode;if(t===9){this.activeIndex=-1;return}e.preventDefault();e.stopPropagation();if(t===13||t===32||t===38||t===40){this.activeIndex=this._tabFocusIndex;if(this.activeIndex!==this._tabFocusIndex){return}this.openActiveMenu();return}if(t===27){this._closeChildMenu();this._focusItemAt(this.activeIndex);return}if(t===37||t===39){let e=t===37?-1:1;let n=this._tabFocusIndex+e;let i=this._menus.length;for(let t=0;ta.ElementExt.hitTest(t,e.clientX,e.clientY)));if(t===-1){this._closeChildMenu();return}if(e.button!==0){return}if(this._childMenu){this._closeChildMenu();this.activeIndex=t}else{e.preventDefault();const n=this._positionForMenu(t);Q.saveWindowData();this.activeIndex=t;this._openChildMenu(n)}}_evtMouseMove(e){let t=i.ArrayExt.findFirstIndex(this.contentNode.children,(t=>a.ElementExt.hitTest(t,e.clientX,e.clientY)));if(t===this._activeIndex){return}if(t===-1&&this._childMenu){return}const n=t>=0&&this._childMenu?this._positionForMenu(t):null;Q.saveWindowData();this.activeIndex=t;if(n){this._openChildMenu(n)}}_positionForMenu(e){let t=this.contentNode.children[e];let{left:n,bottom:i}=t.getBoundingClientRect();return{top:i,left:n}}_evtFocusOut(e){if(!this._childMenu&&!this.node.contains(e.relatedTarget)){this.activeIndex=-1}}_focusItemAt(e){const t=this.contentNode.childNodes[e];if(t){t.focus()}}_openChildMenu(e={}){let t=this.activeMenu;if(!t){this._closeChildMenu();return}let n=this._childMenu;if(n===t){return}this._childMenu=t;if(n){n.close()}else{document.addEventListener("mousedown",this,true)}this._tabFocusIndex=this.activeIndex;d.MessageLoop.sendMessage(this,E.Msg.UpdateRequest);let{left:i,top:s}=e;if(typeof i==="undefined"||typeof s==="undefined"){({left:i,top:s}=this._positionForMenu(this._activeIndex))}if(!n){this.addClass("lm-mod-active")}if(t.items.length>0){t.open(i,s,this._forceItemsPosition)}}_closeChildMenu(){if(!this._childMenu){return}this.removeClass("lm-mod-active");document.removeEventListener("mousedown",this,true);let e=this._childMenu;this._childMenu=null;e.close();this.activeIndex=-1}_onMenuAboutToClose(e){if(e!==this._childMenu){return}this.removeClass("lm-mod-active");document.removeEventListener("mousedown",this,true);this._childMenu=null;this.activeIndex=-1}_onMenuMenuRequested(e,t){if(e!==this._childMenu){return}let n=this._activeIndex;let i=this._menus.length;switch(t){case"next":this.activeIndex=n===i-1?0:n+1;break;case"previous":this.activeIndex=n===0?i-1:n-1;break}this.openActiveMenu()}_onTitleChanged(){this.update()}}(function(e){class t{renderItem(e){let t=this.createItemClass(e);let n=this.createItemDataset(e);let i=this.createItemARIA(e);return b.h.li({className:t,dataset:n,...e.disabled?{}:{tabindex:e.tabbable?"0":"-1"},onfocus:e.onfocus,...i},this.renderIcon(e),this.renderLabel(e))}renderIcon(e){let t=this.createIconClass(e);return b.h.div({className:t},e.title.icon,e.title.iconLabel)}renderLabel(e){let t=this.formatLabel(e);return b.h.div({className:"lm-MenuBar-itemLabel"},t)}createItemClass(e){let t="lm-MenuBar-item";if(e.title.className){t+=` ${e.title.className}`}if(e.active&&!e.disabled){t+=" lm-mod-active"}return t}createItemDataset(e){return e.title.dataset}createItemARIA(e){return{role:"menuitem","aria-haspopup":"true","aria-disabled":e.disabled?"true":"false"}}createIconClass(e){let t="lm-MenuBar-itemIcon";let n=e.title.iconClass;return n?`${t} ${n}`:t}formatLabel(e){let{label:t,mnemonic:n}=e.title;if(n<0||n>=t.length){return t}let i=t.slice(0,n);let s=t.slice(n+1);let o=t[n];let r=b.h.span({className:"lm-MenuBar-itemMnemonic"},o);return[i,r,s]}}e.Renderer=t;e.defaultRenderer=new t})(ue||(ue={}));var pe;(function(e){function t(){let e=document.createElement("div");let t=document.createElement("ul");t.className="lm-MenuBar-content";e.appendChild(t);t.setAttribute("role","menubar");return e}e.createNode=t;function n(e,t,n){let i=-1;let s=-1;let o=false;let r=t.toUpperCase();for(let a=0,l=e.length;a=0&&c{this._repeatTimer=-1;if(!this._pressData){return}let e=this._pressData.part;if(e==="thumb"){return}this._repeatTimer=window.setTimeout(this._onRepeat,20);let t=this._pressData.mouseX;let n=this._pressData.mouseY;if(e==="decrement"){if(!a.ElementExt.hitTest(this.decrementNode,t,n)){return}this._stepRequested.emit("decrement");return}if(e==="increment"){if(!a.ElementExt.hitTest(this.incrementNode,t,n)){return}this._stepRequested.emit("increment");return}if(e==="track"){if(!a.ElementExt.hitTest(this.trackNode,t,n)){return}let e=this.thumbNode;if(a.ElementExt.hitTest(e,t,n)){return}let i=e.getBoundingClientRect();let s;if(this._orientation==="horizontal"){s=t1){this.widgets.forEach((e=>{e.hiddenMode=this._hiddenMode}))}}dispose(){for(const e of this._items){e.dispose()}this._box=null;this._items.length=0;super.dispose()}attachWidget(e,t){if(this._hiddenMode===E.HiddenMode.Scale&&this._items.length>0){if(this._items.length===1){this.widgets[0].hiddenMode=E.HiddenMode.Scale}t.hiddenMode=E.HiddenMode.Scale}else{t.hiddenMode=E.HiddenMode.Display}i.ArrayExt.insert(this._items,e,new D(t));if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.BeforeAttach)}this.parent.node.appendChild(t.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.AfterAttach)}this.parent.fit()}moveWidget(e,t,n){i.ArrayExt.move(this._items,e,t);this.parent.update()}detachWidget(e,t){let n=i.ArrayExt.removeAt(this._items,e);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.BeforeDetach)}this.parent.node.removeChild(t.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.AfterDetach)}n.widget.node.style.zIndex="";if(this._hiddenMode===E.HiddenMode.Scale){t.hiddenMode=E.HiddenMode.Display;if(this._items.length===1){this._items[0].widget.hiddenMode=E.HiddenMode.Display}}n.dispose();this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e);this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){if(this.parent.isVisible){this._update(e.width,e.height)}}onUpdateRequest(e){if(this.parent.isVisible){this._update(-1,-1)}}onFitRequest(e){if(this.parent.isAttached){this._fit()}}_fit(){let e=0;let t=0;for(let s=0,o=this._items.length;s{"use strict";var i=n(85072);var s=n.n(i);var o=n(97825);var r=n.n(o);var a=n(77659);var l=n.n(a);var d=n(55056);var c=n.n(d);var h=n(10540);var u=n.n(h);var p=n(41113);var m=n.n(p);var g=n(43210);var f={};f.styleTagTransform=m();f.setAttributes=c();f.insert=l().bind(null,"head");f.domAPI=r();f.insertStyleElement=u();var v=s()(g.A,f);const _=g.A&&g.A.locals?g.A.locals:undefined},24118:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n|\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n#jp-MainLogo {\n width: calc(var(--jp-private-sidebar-tab-width) + var(--jp-border-width));\n}\n\n#jp-top-bar {\n --jp-private-toolbar-height: var(--jp-private-menu-panel-height);\n\n flex: 1 1 auto;\n padding: 0 2px;\n box-shadow: none;\n border: none;\n align-items: center;\n}\n",""]);const l=a},30966:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=n(14016);var l=n(5173);var d=n(51632);var c=n(60341);var h=n(10891);var u=n(83161);var p=n(68010);var m=n(40348);var g=n(43701);var f=n(93768);var v=r()(s());v.i(a.A);v.i(l.A);v.i(d.A);v.i(c.A);v.i(h.A);v.i(u.A);v.i(p.A);v.i(m.A);v.i(g.A);v.i(f.A);v.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/* Sibling imports */\n",""]);const _=v},68010:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-flat-button-height: 24px;\n --jp-flat-button-padding: 8px 12px;\n}\n\n/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-ThemedContainer button {\n border-radius: var(--jp-border-radius);\n}\n\n.jp-ThemedContainer button:focus-visible {\n outline: 1px solid var(--jp-accept-color-active, var(--jp-brand-color1));\n outline-offset: -1px;\n}\n\nbutton.jp-mod-styled.jp-mod-accept {\n background: var(--jp-accept-color-normal, var(--md-blue-500, #2196f3));\n border: 0;\n color: white;\n}\n\nbutton.jp-mod-styled.jp-mod-accept:hover {\n background: var(--jp-accept-color-hover, var(--md-blue-600, #1e88e5));\n}\n\nbutton.jp-mod-styled.jp-mod-accept:active {\n background: var(--jp-accept-color-active, var(--md-blue-700, #1976d2));\n}\n\nbutton.jp-mod-styled.jp-mod-accept:focus-visible {\n outline: 1px solid var(--jp-accept-color-active, var(--jp-brand-color1));\n}\n\nbutton.jp-mod-styled.jp-mod-reject {\n background: var(--jp-reject-color-normal, var(--md-grey-500, #9e9e9e));\n border: 0;\n color: white;\n}\n\nbutton.jp-mod-styled.jp-mod-reject:hover {\n background: var(--jp-reject-color-hover, var(--md-grey-600, #757575));\n}\n\nbutton.jp-mod-styled.jp-mod-reject:active {\n background: var(--jp-reject-color-active, var(--md-grey-700, #616161));\n}\n\nbutton.jp-mod-styled.jp-mod-reject:focus-visible {\n outline: 1px solid var(--jp-reject-color-active, var(--md-grey-700, #616161));\n}\n\nbutton.jp-mod-styled.jp-mod-warn {\n background: var(--jp-warn-color-normal, var(--jp-error-color1));\n border: 0;\n color: white;\n}\n\nbutton.jp-mod-styled.jp-mod-warn:hover {\n background: var(--jp-warn-color-hover, var(--md-red-600, #e53935));\n}\n\nbutton.jp-mod-styled.jp-mod-warn:active {\n background: var(--jp-warn-color-active, var(--md-red-700, #d32f2f));\n}\n\nbutton.jp-mod-styled.jp-mod-warn:focus-visible {\n outline: 1px solid var(--jp-warn-color-active, var(--md-red-700, #d32f2f));\n}\n\n.jp-Button-flat {\n text-decoration: none;\n padding: var(--jp-flat-button-padding);\n font-weight: 500;\n background-color: transparent;\n height: var(--jp-private-running-shutdown-button-height);\n line-height: var(--jp-private-running-shutdown-button-height);\n transition: background-color 0.1s ease;\n border-radius: 2px;\n}\n\n.jp-Button-flat:focus {\n border: none;\n box-shadow: none;\n}\n",""]);const l=a},14016:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-menu-panel-height: 27px;\n}\n\n.lm-Widget.lm-mod-hidden {\n display: none !important;\n}\n\n.jp-ThemedContainer {\n font-family: var(--jp-ui-font-family);\n background: var(--jp-layout-color3);\n margin: 0;\n padding: 0;\n overflow: hidden;\n}\n\n.jp-LabShell {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n\n.jp-LabShell.jp-mod-devMode {\n border-top: 4px solid red;\n}\n\n#jp-main-dock-panel {\n padding: 5px;\n}\n\n#jp-main-dock-panel[data-mode='single-document'] {\n padding: 0;\n}\n\n#jp-main-dock-panel[data-mode='single-document'] .jp-MainAreaWidget {\n border: none;\n}\n\n#jp-top-panel {\n border-bottom: var(--jp-border-width) solid var(--jp-border-color0);\n background: var(--jp-layout-color1);\n display: flex;\n min-height: var(--jp-private-menubar-height);\n overflow: visible;\n\n /* relax lumino strict CSS contaiment to allow painting the menu bar item\n over the menu in order to create an illusion of partial border */\n contain: style size !important;\n}\n\n#jp-menu-panel {\n min-height: var(--jp-private-menu-panel-height);\n background: var(--jp-layout-color1);\n}\n\n#jp-down-stack {\n border-bottom: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n.jp-LabShell[data-shell-mode='single-document'] #jp-top-panel {\n border-bottom: none;\n}\n\n.jp-LabShell[data-shell-mode='single-document'] #jp-menu-panel {\n padding-left: calc(\n var(--jp-private-sidebar-tab-width) + var(--jp-border-width)\n );\n border-bottom: var(--jp-border-width) solid var(--jp-border-color0);\n\n /* Adjust min-height so open menus show up in the right place */\n min-height: calc(\n var(--jp-private-menu-panel-height) + var(--jp-border-width)\n );\n}\n\n#jp-bottom-panel {\n background: var(--jp-layout-color1);\n display: flex;\n}\n\n#jp-single-document-mode {\n margin: 0 8px;\n display: flex;\n align-items: center;\n}\n",""]);const l=a},5173:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.lm-DataGrid {\n min-width: 64px;\n min-height: 64px;\n border: 1px solid #a0a0a0;\n}\n\n.lm-DataGrid-scrollCorner {\n background-color: #f0f0f0;\n}\n\n.lm-DataGrid-scrollCorner::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n background-color: #a0a0a0;\n}\n",""]);const l=a},51632:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| DockPanel\n|----------------------------------------------------------------------------*/\n\n.lm-DockPanel-widget,\n.lm-TabPanel-stackedPanel {\n background: var(--jp-layout-color0);\n border-left: var(--jp-border-width) solid var(--jp-border-color1);\n border-right: var(--jp-border-width) solid var(--jp-border-color1);\n border-bottom: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n.lm-DockPanel-overlay {\n background: rgba(33, 150, 243, 0.1);\n border: var(--jp-border-width) dashed var(--jp-brand-color1);\n transition-property: top, left, right, bottom;\n transition-duration: 150ms;\n transition-timing-function: ease;\n}\n\n.lm-DockPanel-overlay.lm-mod-root-top,\n.lm-DockPanel-overlay.lm-mod-root-left,\n.lm-DockPanel-overlay.lm-mod-root-right,\n.lm-DockPanel-overlay.lm-mod-root-bottom,\n.lm-DockPanel-overlay.lm-mod-root-center {\n border-width: 2px;\n}\n",""]);const l=a},60341:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-menubar-height: 28px;\n --jp-private-menu-item-height: 24px;\n}\n\n/*-----------------------------------------------------------------------------\n| MenuBar\n|----------------------------------------------------------------------------*/\n\n.lm-MenuBar {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n overflow: hidden;\n}\n\n.lm-MenuBar:hover {\n overflow-x: auto;\n}\n\n.lm-MenuBar-menu.jp-ThemedContainer {\n top: calc(-2 * var(--jp-border-width));\n scrollbar-width: none;\n -ms-overflow-style: none;\n overflow: auto;\n background:\n linear-gradient(var(--jp-layout-color0) 30%, rgba(0, 0, 0, 0)) center top,\n linear-gradient(rgba(0, 0, 0, 0), var(--jp-layout-color0) 70%) center bottom,\n radial-gradient(\n farthest-side at 50% 0,\n color-mix(\n in hsl,\n var(--jp-layout-color0) 50%,\n var(--jp-inverse-layout-color0) 30%\n ),\n rgba(0, 0, 0, 0)\n )\n center top,\n radial-gradient(\n farthest-side at 50% 100%,\n color-mix(\n in hsl,\n var(--jp-layout-color0) 50%,\n var(--jp-inverse-layout-color0) 30%\n ),\n rgba(0, 0, 0, 0)\n )\n center bottom;\n background-color: var(--jp-layout-color0);\n background-repeat: no-repeat;\n background-size:\n 100% 40px,\n 100% 40px,\n 100% 14px,\n 100% 14px;\n background-attachment: local, local, scroll, scroll;\n}\n\n.lm-MenuBar-menu.jp-ThemedContainer::-webkit-scrollbar {\n display: none;\n}\n\n.lm-MenuBar-item {\n padding: 0 8px;\n border-left: var(--jp-border-width) solid transparent;\n border-right: var(--jp-border-width) solid transparent;\n border-top: var(--jp-border-width) solid transparent;\n line-height: calc(\n var(--jp-private-menubar-height) - var(--jp-border-width) * 2\n );\n}\n\n.lm-MenuBar-content:focus-visible {\n outline-offset: -3px; /* this value is a compromise between Firefox, Chrome,\n and Safari over this outline's visibility and discretion */\n}\n\n.lm-MenuBar:focus-visible {\n outline: 1px solid var(--jp-accept-color-active, var(--jp-brand-color1));\n outline-offset: -1px;\n}\n\n.lm-MenuBar-menu:focus-visible,\n.lm-MenuBar-item:focus-visible,\n.lm-Menu-item:focus-visible {\n outline: unset;\n outline-offset: unset;\n -moz-outline-radius: unset;\n}\n\n.lm-MenuBar-item.lm-mod-active {\n background: var(--jp-layout-color2);\n}\n\n.lm-MenuBar.lm-mod-active .lm-MenuBar-item.lm-mod-active {\n z-index: 10001;\n background: var(--jp-layout-color0);\n color: var(--jp-ui-font-color0);\n border-left: var(--jp-border-width) solid var(--jp-border-color1);\n border-right: var(--jp-border-width) solid var(--jp-border-color1);\n box-shadow: var(--jp-elevation-z6);\n}\n\n/* stylelint-disable-next-line selector-max-class */\n.jp-LabShell[data-shell-mode='single-document']\n .lm-MenuBar.lm-mod-active\n .lm-MenuBar-item.lm-mod-active {\n border-top: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n.lm-MenuBar-item.lm-mod-disabled {\n color: var(--jp-ui-font-color3);\n}\n\n.lm-MenuBar-item.lm-type-separator {\n margin: 2px;\n padding: 0;\n border: none;\n border-left: var(--jp-border-width) solid var(--jp-border-color2);\n}\n\n.lm-MenuBar-itemMnemonic {\n text-decoration: underline;\n}\n\n/*-----------------------------------------------------------------------------\n| Menu\n|----------------------------------------------------------------------------*/\n\n.lm-Menu {\n z-index: 10000;\n padding: 4px 0;\n background: var(--jp-layout-color0);\n color: var(--jp-ui-font-color0);\n border: var(--jp-border-width) solid var(--jp-border-color1);\n font-size: var(--jp-ui-font-size1);\n box-shadow: var(--jp-elevation-z6);\n}\n\n.lm-Menu-item {\n min-height: var(--jp-private-menu-item-height);\n max-height: var(--jp-private-menu-item-height);\n padding: 0;\n line-height: var(--jp-private-menu-item-height);\n}\n\n.lm-Menu-item.lm-mod-active {\n background: var(--jp-layout-color2);\n}\n\n.lm-Menu-item.lm-mod-disabled {\n color: var(--jp-ui-font-color3);\n}\n\n.lm-Menu-itemIcon {\n width: 21px;\n padding: 0 2px 0 4px;\n margin-top: -2px;\n}\n\n.lm-Menu-itemLabel {\n padding: 0 32px 0 2px;\n}\n\n.lm-Menu-itemMnemonic {\n text-decoration: underline;\n}\n\n.lm-Menu-itemShortcut {\n padding: 0;\n}\n\n.lm-Menu-itemSubmenuIcon {\n width: 18px;\n padding: 0 4px 0 0;\n}\n\n.lm-Menu-item[data-type='separator'] > div {\n padding: 0;\n height: 9px;\n}\n\n.lm-Menu-item[data-type='separator'] > div::after {\n content: '';\n display: block;\n position: relative;\n top: 4px;\n border-top: var(--jp-border-width) solid var(--jp-layout-color2);\n mix-blend-mode: multiply;\n}\n\n/* gray out icon/caret for disabled menu items */\n.lm-Menu-item.lm-mod-disabled > .lm-Menu-itemIcon,\n.lm-Menu-item[data-type='submenu'].lm-mod-disabled > .lm-Menu-itemSubmenuIcon {\n opacity: 0.4;\n}\n",""]);const l=a},10891:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*\n * Mozilla scrollbar styling\n */\n\n/* use standard opaque scrollbars for most nodes */\n[data-jp-theme-scrollbars='true'] {\n scrollbar-color: rgb(var(--jp-scrollbar-thumb-color))\n var(--jp-scrollbar-background-color);\n}\n\n/* for code nodes, use a transparent style of scrollbar. These selectors\n * will match lower in the tree, and so will override the above */\n[data-jp-theme-scrollbars='true'] .CodeMirror-hscrollbar,\n[data-jp-theme-scrollbars='true'] .CodeMirror-vscrollbar {\n scrollbar-color: rgba(var(--jp-scrollbar-thumb-color), 0.5) transparent;\n}\n\n/* tiny scrollbar */\n\n.jp-scrollbar-tiny {\n scrollbar-color: rgba(var(--jp-scrollbar-thumb-color), 0.5) transparent;\n scrollbar-width: thin;\n}\n\n/* tiny scrollbar */\n\n.jp-scrollbar-tiny::-webkit-scrollbar,\n.jp-scrollbar-tiny::-webkit-scrollbar-corner {\n background-color: transparent;\n height: 4px;\n width: 4px;\n}\n\n.jp-scrollbar-tiny::-webkit-scrollbar-thumb {\n background: rgba(var(--jp-scrollbar-thumb-color), 0.5);\n}\n\n.jp-scrollbar-tiny::-webkit-scrollbar-track:horizontal {\n border-left: 0 solid transparent;\n border-right: 0 solid transparent;\n}\n\n.jp-scrollbar-tiny::-webkit-scrollbar-track:vertical {\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n}\n\n/*\n * Lumino\n */\n\n.lm-ScrollBar[data-orientation='horizontal'] {\n min-height: 16px;\n max-height: 16px;\n min-width: 45px;\n border-top: 1px solid #a0a0a0;\n}\n\n.lm-ScrollBar[data-orientation='vertical'] {\n min-width: 16px;\n max-width: 16px;\n min-height: 45px;\n border-left: 1px solid #a0a0a0;\n}\n\n.lm-ScrollBar-button {\n background-color: #f0f0f0;\n background-position: center center;\n min-height: 15px;\n max-height: 15px;\n min-width: 15px;\n max-width: 15px;\n}\n\n.lm-ScrollBar-button:hover {\n background-color: #dadada;\n}\n\n.lm-ScrollBar-button.lm-mod-active {\n background-color: #cdcdcd;\n}\n\n.lm-ScrollBar-track {\n background: #f0f0f0;\n}\n\n.lm-ScrollBar-thumb {\n background: #cdcdcd;\n}\n\n.lm-ScrollBar-thumb:hover {\n background: #bababa;\n}\n\n.lm-ScrollBar-thumb.lm-mod-active {\n background: #a0a0a0;\n}\n\n.lm-ScrollBar[data-orientation='horizontal'] .lm-ScrollBar-thumb {\n height: 100%;\n min-width: 15px;\n border-left: 1px solid #a0a0a0;\n border-right: 1px solid #a0a0a0;\n}\n\n.lm-ScrollBar[data-orientation='vertical'] .lm-ScrollBar-thumb {\n width: 100%;\n min-height: 15px;\n border-top: 1px solid #a0a0a0;\n border-bottom: 1px solid #a0a0a0;\n}\n\n.lm-ScrollBar[data-orientation='horizontal']\n .lm-ScrollBar-button[data-action='decrement'] {\n background-image: var(--jp-icon-caret-left);\n background-size: 17px;\n}\n\n.lm-ScrollBar[data-orientation='horizontal']\n .lm-ScrollBar-button[data-action='increment'] {\n background-image: var(--jp-icon-caret-right);\n background-size: 17px;\n}\n\n.lm-ScrollBar[data-orientation='vertical']\n .lm-ScrollBar-button[data-action='decrement'] {\n background-image: var(--jp-icon-caret-up);\n background-size: 17px;\n}\n\n.lm-ScrollBar[data-orientation='vertical']\n .lm-ScrollBar-button[data-action='increment'] {\n background-image: var(--jp-icon-caret-down);\n background-size: 17px;\n}\n",""]);const l=a},40348:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-sidebar-tab-width: 32px;\n}\n\n/*-----------------------------------------------------------------------------\n| SideBar\n|----------------------------------------------------------------------------*/\n\n.jp-SideBar {\n /* This is needed so that all font sizing of children done in ems is\n * relative to this base size */\n font-size: var(--jp-ui-font-size1);\n}\n\n.jp-SideBar.lm-TabBar,\n#jp-down-stack .lm-TabBar {\n color: var(--jp-ui-font-color2);\n background: var(--jp-layout-color2);\n font-size: var(--jp-ui-font-size1);\n overflow: visible;\n}\n\n.jp-SideBar.lm-TabBar {\n min-width: calc(var(--jp-private-sidebar-tab-width) + var(--jp-border-width));\n max-width: calc(var(--jp-private-sidebar-tab-width) + var(--jp-border-width));\n display: block;\n}\n\n.jp-SideBar .lm-TabBar-content {\n margin: 0;\n padding: 0;\n display: flex;\n align-items: stretch;\n list-style-type: none;\n height: var(--jp-private-sidebar-tab-width);\n}\n\n.jp-SideBar .lm-TabBar-tab {\n padding: 16px 0;\n border: none;\n overflow: visible;\n flex-direction: column;\n position: relative;\n}\n\n.jp-SideBar .lm-TabBar-tab:focus-visible {\n /* --accent-fill-focus is computed by the jp toolkit to ensure accessibility */\n outline: 2px solid var(--accent-fill-focus, var(--jp-brand-color1));\n outline-offset: -3px;\n}\n\n.jp-SideBar .lm-TabBar-tab.lm-mod-current::after {\n /* Internal border override pseudo-element */\n position: absolute;\n content: '';\n bottom: 0;\n right: 0;\n top: 0;\n left: 0;\n border: var(--jp-border-width) solid var(--jp-layout-color1);\n}\n\n.jp-SideBar .lm-TabBar-tab:not(.lm-mod-current),\n#jp-down-stack .lm-TabBar-tab:not(.lm-mod-current) {\n background: var(--jp-layout-color2);\n}\n\n.jp-SideBar .lm-TabBar-tabIcon.jp-SideBar-tabIcon {\n min-width: 20px;\n min-height: 20px;\n background-size: 20px;\n display: inline-block;\n vertical-align: middle;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.jp-SideBar .lm-TabBar-tabLabel {\n line-height: var(--jp-private-sidebar-tab-width);\n}\n\n.jp-SideBar .lm-TabBar-tab:hover:not(.lm-mod-current),\n#jp-down-stack .lm-TabBar-tab:hover:not(.lm-mod-current) {\n background: var(--jp-layout-color1);\n}\n\n.jp-SideBar.lm-TabBar::after {\n /* Internal border pseudo-element */\n position: absolute;\n content: '';\n bottom: 0;\n right: 0;\n top: 0;\n left: 0;\n pointer-events: none;\n}\n\n/* Borders */\n\n/* stylelint-disable selector-max-class */\n\n.jp-SideBar.lm-TabBar .lm-TabBar-tab + .lm-TabBar-tab {\n border-top: var(--jp-border-width) solid var(--jp-layout-color2);\n}\n\n.jp-SideBar.lm-TabBar .lm-TabBar-tab.lm-mod-current + .lm-TabBar-tab {\n border-top: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n.jp-SideBar.lm-TabBar .lm-TabBar-tab + .lm-TabBar-tab.lm-mod-current {\n border-top: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n.jp-SideBar.lm-TabBar .lm-TabBar-tab.lm-mod-current:last-child {\n border-bottom: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n.jp-SideBar.lm-TabBar .lm-TabBar-tabLabel {\n writing-mode: vertical-rl;\n}\n\n/* Left */\n\n/* Borders */\n\n.jp-SideBar.lm-TabBar.jp-mod-left .lm-TabBar-content {\n /* Internal border spacing */\n margin-right: var(--jp-border-width);\n}\n\n.jp-SideBar.lm-TabBar.jp-mod-left .lm-TabBar-tab.lm-mod-current::after {\n /* Internal border override */\n right: calc(-1 * var(--jp-border-width));\n}\n\n.jp-SideBar.lm-TabBar.jp-mod-left::after {\n /* Internal border */\n border-right: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n/* Transforms */\n\n.jp-SideBar.lm-TabBar.jp-mod-left .lm-TabBar-tabLabel {\n transform: rotate(180deg);\n}\n\n/* Right */\n\n/* Borders */\n\n.jp-SideBar.lm-TabBar.jp-mod-right .lm-TabBar-content {\n /* Internal border spacing */\n margin-left: var(--jp-border-width);\n}\n\n.jp-SideBar.lm-TabBar.jp-mod-right .lm-TabBar-tab.lm-mod-current::after {\n /* Internal border override */\n left: calc(-1 * var(--jp-border-width));\n}\n\n.jp-SideBar.lm-TabBar.jp-mod-right::after {\n /* Internal border */\n border-left: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n/* Down */\n\n/* Borders */\n\n#jp-down-stack > .lm-TabBar {\n border-top: var(--jp-border-width) solid var(--jp-border-color0);\n border-bottom: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n#jp-down-stack > .lm-TabBar .lm-TabBar-tab {\n border-left: none;\n border-right: none;\n}\n\n#jp-down-stack > .lm-TabBar .lm-TabBar-tab.lm-mod-current {\n border: var(--jp-border-width) solid var(--jp-border-color1);\n border-bottom: none;\n transform: translateY(var(--jp-border-width));\n}\n\n#jp-down-stack > .lm-TabBar .lm-TabBar-tab.lm-mod-current:first-child {\n border: none;\n border-right: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n/* stylelint-enable selector-max-class */\n\n/* Stack panels */\n\n#jp-left-stack > .lm-Widget,\n#jp-right-stack > .lm-Widget {\n min-width: var(--jp-sidebar-min-width);\n background-color: var(--jp-layout-color1);\n}\n\n#jp-right-stack {\n border-left: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n#jp-left-stack {\n border-right: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n#jp-down-stack > .lm-TabPanel-stackedPanel {\n border: none;\n}\n",""]);const l=a},93768:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n|\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-skiplink-wrapper {\n overflow: visible;\n\n /* override strict containment added via Lumino PR\n [#506](https://github.com/jupyterlab/lumino/pull/506) */\n contain: size style !important;\n}\n\n.jp-skiplink {\n position: absolute;\n top: -100em;\n}\n\n.jp-skiplink:focus-within {\n position: absolute;\n z-index: 10000;\n top: 0;\n left: 46%;\n margin: 0 auto;\n padding: 1em;\n width: 15%;\n box-shadow: var(--jp-elevation-z4);\n border-radius: 4px;\n background: var(--jp-layout-color0);\n text-align: center;\n}\n\n.jp-skiplink:focus-within a {\n text-decoration: underline;\n color: var(--jp-content-link-color);\n}\n",""]);const l=a},83161:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n:root {\n /* These need to be root because tabs get attached to the body during dragging. */\n --jp-private-horizontal-tab-height: 24px;\n --jp-private-horizontal-tab-width: 216px;\n --jp-private-horizontal-tab-active-top-border: 2px;\n}\n\n/*-----------------------------------------------------------------------------\n| Tabs in the dock panel\n|----------------------------------------------------------------------------*/\n\n.lm-DockPanel-tabBar,\n.lm-TabPanel-tabBar {\n overflow: visible;\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n}\n\n.lm-DockPanel-tabBar[data-orientation='horizontal'],\n.lm-TabPanel-tabBar[data-orientation='horizontal'] {\n min-height: calc(\n var(--jp-private-horizontal-tab-height) + 2 * var(--jp-border-width)\n );\n}\n\n.lm-DockPanel-tabBar[data-orientation='vertical'] {\n min-width: 80px;\n}\n\n.lm-DockPanel-tabBar > .lm-TabBar-content,\n.lm-TabPanel-tabBar > .lm-TabBar-content {\n align-items: flex-end;\n min-width: 0;\n min-height: 0;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab,\n.lm-TabPanel-tabBar .lm-TabBar-tab {\n flex: 0 1 var(--jp-private-horizontal-tab-width);\n align-items: center;\n min-height: calc(\n var(--jp-private-horizontal-tab-height) + 2 * var(--jp-border-width)\n );\n min-width: 0;\n margin-left: calc(-1 * var(--jp-border-width));\n line-height: var(--jp-private-horizontal-tab-height);\n padding: 0 8px;\n background: var(--jp-layout-color2);\n border: var(--jp-border-width) solid var(--jp-border-color1);\n border-bottom: none;\n position: relative;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab:focus-visible,\n.lm-DockPanel-tabBar .lm-TabBar-addButton:focus-visible,\n.lm-TabPanel-tabBar .lm-TabBar-tab:focus-visible {\n border: 1px solid var(--accent-fill-focus);\n border-bottom: none;\n\n /* Thicken the border by 1px within the element border */\n box-shadow: 0 0 0 1px inset var(--accent-fill-focus);\n outline: none;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab:not(.lm-mod-current):focus-visible::after,\n.lm-TabPanel-tabBar .lm-TabBar-tab:not(.lm-mod-current):focus-visible::after {\n border-bottom-color: var(--accent-fill-focus);\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab:hover:not(.lm-mod-current),\n.lm-TabPanel-tabBar .lm-TabBar-tab:hover:not(.lm-mod-current) {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab:not(.lm-mod-current)::after,\n.lm-DockPanel-tabBar .lm-TabBar-addButton::after {\n position: absolute;\n content: '';\n bottom: 0;\n left: calc(-1 * var(--jp-border-width));\n width: calc(100% + 2 * var(--jp-border-width));\n border-bottom: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab:first-child,\n.lm-TabPanel-tabBar .lm-TabBar-tab:first-child {\n margin-left: 0;\n}\n\n/* This is a current tab of a tab bar in the dock panel: each tab bar has 1. */\n.lm-DockPanel-tabBar .lm-TabBar-tab.lm-mod-current {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n}\n\n.lm-TabPanel-tabBar .lm-TabBar-tab.lm-mod-current {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n}\n\n/* This is the main application level current tab: only 1 exists. */\n.lm-DockPanel-tabBar .lm-TabBar-tab.jp-mod-current::before {\n position: absolute;\n top: calc(-1 * var(--jp-border-width) + 1px);\n left: calc(-1 * var(--jp-border-width));\n content: '';\n height: var(--jp-private-horizontal-tab-active-top-border);\n width: calc(100% + 2 * var(--jp-border-width));\n background: var(--jp-brand-color1);\n}\n\n/* This is the left tab bar current tab: only 1 exists. */\n.lm-TabBar-tab.lm-mod-current {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n}\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-left .lm-TabBar-tab,\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-right .lm-TabBar-tab {\n flex: 0 1 40px;\n margin-top: -1px;\n line-height: 40px;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-left .lm-TabBar-tab {\n border-right: none;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-right .lm-TabBar-tab {\n border-left: none;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-left .lm-TabBar-tab:first-child,\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-right .lm-TabBar-tab:first-child {\n margin-top: 0;\n}\n\n/* stylelint-disable selector-max-class */\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-left .lm-TabBar-tab.lm-mod-current,\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-right .lm-TabBar-tab.lm-mod-current {\n min-width: 80px;\n max-width: 80px;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-right .lm-TabBar-tab.lm-mod-current {\n transform: translateX(-1px);\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab .lm-TabBar-tabIcon,\n.lm-TabBar-tab.lm-mod-drag-image .lm-TabBar-tabIcon,\n.lm-TabPanel-tabBar .lm-TabBar-tab .lm-TabBar-tabIcon {\n width: 14px;\n background-position: left center;\n background-repeat: no-repeat;\n background-size: 14px;\n margin-right: 4px;\n}\n\n/* stylelint-enable selector-max-class */\n\n.lm-TabBar-tab.lm-mod-drag-image {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n border: var(--jp-border-width) solid var(--jp-border-color1);\n border-top: var(--jp-border-width) solid var(--jp-brand-color1);\n box-shadow: var(--jp-elevation-z4);\n font-size: var(--jp-ui-font-size1);\n line-height: var(--jp-private-horizontal-tab-height);\n min-height: var(--jp-private-horizontal-tab-height);\n min-width: var(--jp-private-horizontal-tab-width);\n padding: 0 10px;\n transform: translateX(-40%) translateY(-58%);\n}\n",""]);const l=a},43701:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-title-panel-height: 28px;\n}\n\n#jp-title-panel {\n min-height: var(--jp-private-title-panel-height);\n width: 100%;\n display: flex;\n background: var(--jp-layout-color1);\n}\n\n#jp-title-panel-title {\n flex: 1 1 auto;\n margin-left: 8px;\n}\n\n#jp-title-panel-title input {\n background: transparent;\n margin: 0;\n height: 28px;\n width: 100%;\n box-sizing: border-box;\n border: none;\n font-size: 18px;\n font-weight: normal;\n font-family: var(--jp-ui-font-family);\n line-height: var(--jp-private-title-panel-height);\n color: var(--jp-ui-font-color0);\n outline: none;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n}\n",""]);const l=a},61510:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=n(7924);var l=n(97980);var d=n(1165);var c=r()(s());c.i(a.A);c.i(l.A);c.i(d.A);c.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n",""]);const h=c},1165:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n:root {\n --jp-private-shortcuts-key-padding-horizontal: 0.47em;\n --jp-private-shortcuts-key-padding-vertical: 0.28em;\n --jp-private-shortcuts-label-padding-horizontal: 0.47em;\n}\n\n.jp-ContextualShortcut-TableRow {\n font-size: var(--jp-ui-font-size1);\n font-family: var(--jp-ui-font-family);\n}\n\n.jp-ContextualShortcut-TableItem {\n margin-left: auto;\n margin-right: auto;\n color: var(--jp-inverse-layout-color0);\n font-size: var(--jp-ui-font-size1);\n line-height: 2em;\n padding-right: var(--jp-private-shortcuts-label-padding-horizontal);\n}\n\n.jp-ContextualShortcut-TableLastRow {\n height: 2em;\n}\n\n.jp-ContextualShortcut-Key {\n font-family: var(--jp-code-font-family);\n border-width: var(--jp-border-width);\n border-radius: var(--jp-border-radius);\n border-style: solid;\n border-color: var(--jp-border-color1);\n color: var(--jp-ui-font-color1);\n background: var(--jp-layout-color1);\n padding-left: var(--jp-private-shortcuts-key-padding-horizontal);\n padding-right: var(--jp-private-shortcuts-key-padding-horizontal);\n padding-top: var(--jp-private-shortcuts-key-padding-vertical);\n padding-bottom: var(--jp-private-shortcuts-key-padding-vertical);\n}\n",""]);const l=a},7924:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=n(9112);var l=r()(s());l.i(a.A);l.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n:root {\n --toastify-color-light: var(--jp-layout-color1);\n --toastify-color-dark: var(--jp-layout-color1);\n --toastify-color-info: var(--jp-info-color1);\n --toastify-color-success: var(--jp-success-color1);\n --toastify-color-warning: var(--jp-warn-color1);\n --toastify-color-error: var(--jp-error-color1);\n --toastify-color-transparent: rgba(255, 255, 255, 0.7);\n --toastify-icon-color-info: var(--toastify-color-info);\n --toastify-icon-color-success: var(--toastify-color-success);\n --toastify-icon-color-warning: var(--toastify-color-warning);\n --toastify-icon-color-error: var(--toastify-color-error);\n --toastify-toast-width: 25em;\n --toastify-toast-background: var(--jp-layout-color1);\n --toastify-toast-min-height: 64px;\n --toastify-toast-max-height: 800px;\n --toastify-font-family: var(--jp-ui-font-family);\n --toastify-z-index: 9999;\n --toastify-text-color-light: var(--jp-ui-font-color1);\n --toastify-text-color-dark: var(--jp-ui-font-color1);\n --toastify-text-color-info: var(--jp-ui-font-color1);\n --toastify-text-color-success: var(--jp-ui-font-color1);\n --toastify-text-color-warning: var(--jp-ui-font-color1);\n --toastify-text-color-error: var(--jp-ui-font-color1);\n --toastify-spinner-color: #616161;\n --toastify-spinner-color-empty-area: #e0e0e0;\n --toastify-color-progress-light: linear-gradient(\n to right,\n #4cd964,\n #5ac8fa,\n #007aff,\n #34aadc,\n #5856d6,\n #ff2d55\n );\n --toastify-color-progress-dark: #bb86fc;\n --toastify-color-progress-info: var(--toastify-color-info);\n --toastify-color-progress-success: var(--toastify-color-success);\n --toastify-color-progress-warning: var(--toastify-color-warning);\n --toastify-color-progress-error: var(--toastify-color-error);\n}\n\n.jp-Notification-List {\n list-style: none;\n margin: 0;\n padding: 4px;\n width: var(--toastify-toast-width);\n overflow-y: auto;\n max-height: 55vh;\n box-sizing: border-box;\n background-color: var(--jp-layout-color2);\n}\n\n.jp-Notification-Header {\n display: flex;\n font-size: var(--jp-ui-font-size1);\n padding-left: 8px;\n padding-right: 4px;\n margin: 0;\n align-items: center;\n user-select: none;\n}\n\n.jp-Notification-List-Item {\n padding: 2px 0;\n}\n\n.jp-Notification-List .Toastify__toast {\n margin: 0;\n}\n\n.jp-Notification-Status.jp-mod-selected {\n background-color: var(--jp-brand-color1);\n}\n\n.jp-Notification-Status.jp-mod-selected .jp-Notification-Status-Text {\n color: var(--jp-ui-inverse-font-color1);\n}\n\n.Toastify__toast {\n min-height: unset;\n padding: 4px;\n font-size: var(--jp-ui-font-size1);\n border-width: var(--jp-border-width);\n border-radius: var(--jp-border-radius);\n border-color: var(--jp-border-color1);\n box-shadow: var(--jp-elevation-z4);\n cursor: default;\n}\n\n.Toastify__toast-body {\n display: flex;\n flex-grow: 1;\n}\n\n.jp-Notification-Toast-Close {\n padding: 0;\n position: absolute;\n right: 0.1px;\n cursor: pointer;\n}\n\n.jp-Notification-Toast-Close-Margin {\n margin-right: 4px;\n}\n\n.jp-toastContainer .jp-Notification-Toast-Close:hover {\n /* The close button has its own hover style */\n background: none;\n}\n\n.Toastify__toast.jp-Notification-Toast-error {\n border-top: 5px solid var(--jp-error-color1);\n}\n\n.Toastify__toast.jp-Notification-Toast-warning {\n border-top: 5px solid var(--jp-warn-color1);\n}\n\n.Toastify__toast.jp-Notification-Toast-info {\n border-top: 5px solid var(--jp-info-color1);\n}\n\n.Toastify__toast.jp-Notification-Toast-success {\n border-top: 5px solid var(--jp-success-color1);\n}\n\n.Toastify__toast.jp-Notification-Toast-in-progress {\n border-top: 5px solid var(--jp-layout-color1);\n}\n\n.Toastify__toast-body a {\n color: var(--jp-content-link-color);\n}\n\n.Toastify__toast-body a:hover {\n color: var(--jp-content-link-color);\n text-decoration: underline;\n}\n\n.jp-toast-message {\n padding-inline-end: 16px;\n}\n\n/* p elements are added by the markdown rendering.\n * Removing its default margin allows to reduce toast size.\n */\n.Toastify__toast-body p:first-child,\n.Toastify__toast-body h1:first-child,\n.Toastify__toast-body h2:first-child,\n.Toastify__toast-body h3:first-child,\n.Toastify__toast-body h4:first-child,\n.Toastify__toast-body h5:first-child,\n.Toastify__toast-body h6:first-child,\n.Toastify__toast-body ol:first-child,\n.Toastify__toast-body ul:first-child {\n margin-top: 0;\n}\n\n.Toastify__toast-body p:last-child,\n.Toastify__toast-body h1:last-child,\n.Toastify__toast-body h2:last-child,\n.Toastify__toast-body h3:last-child,\n.Toastify__toast-body h4:last-child,\n.Toastify__toast-body h5:last-child,\n.Toastify__toast-body h6:last-child,\n.Toastify__toast-body ol:last-child,\n.Toastify__toast-body ul:last-child {\n margin-bottom: 0;\n}\n\n.jp-toast-buttonBar {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n flex: 0 0 auto;\n padding-block-start: 8px;\n}\n\n.jp-toast-spacer {\n flex-grow: 1;\n flex-shrink: 1;\n}\n\n.jp-toast-button {\n margin-top: 1px;\n margin-bottom: 1px;\n margin-right: 0;\n margin-left: 3px;\n color: var(--jp-ui-font-color1);\n background-color: var(--jp-layout-color2);\n border: none;\n}\n\n.jp-toast-button:focus {\n outline: 1px solid var(--jp-reject-color-normal, var(--jp-layout-color2));\n outline-offset: 1px;\n -moz-outline-radius: 0;\n}\n\n.jp-toast-button:focus-visible {\n border: none;\n}\n\n.jp-toast-button:hover {\n background-color: var(--jp-layout-color3);\n}\n\n.jp-toast-button.jp-mod-accept {\n background: var(--jp-accept-color-normal, var(--jp-brand-color1));\n color: var(--jp-ui-inverse-font-color1);\n}\n\n.jp-toast-button.jp-mod-accept:focus {\n outline-color: var(--jp-accept-color-normal, var(--jp-brand-color1));\n}\n\n.jp-toast-button.jp-mod-accept:hover {\n background: var(--jp-accept-color-hover, var(--jp-brand-color0));\n}\n\n.jp-toast-button.jp-mod-warn {\n background: var(--jp-warn-color-normal, var(--jp-warn-color1));\n color: var(--jp-ui-inverse-font-color1);\n}\n\n.jp-toast-button.jp-mod-warn:focus {\n outline-color: var(--jp-warn-color-normal, var(--jp-warn-color1));\n}\n\n.jp-toast-button.jp-mod-warn:hover {\n background: var(--jp-warn-color-hover, var(--jp-warn-color0));\n}\n\n.jp-toast-button.jp-mod-link {\n color: var(--jp-content-link-color);\n text-decoration: underline;\n text-decoration-color: var(--jp-content-link-color);\n}\n",""]);const d=l},97980:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n#jupyterlab-splash {\n z-index: 10;\n position: absolute;\n overflow: hidden;\n width: 100%;\n height: 100%;\n background-position: center 40%;\n background-repeat: no-repeat;\n background-size: cover;\n}\n\n#jupyterlab-splash.light {\n background-color: white;\n}\n\n#jupyterlab-splash.dark {\n background-color: var(--md-grey-900, #212121);\n}\n\n.splash-fade {\n animation: 0.5s fade-out forwards;\n}\n\n#galaxy {\n position: relative;\n width: 100%;\n height: 100%;\n}\n\n.planet {\n background-repeat: no-repeat;\n background-size: cover;\n animation-iteration-count: infinite;\n animation-name: orbit;\n}\n\n#moon1.orbit {\n opacity: 1;\n animation: orbit 2s ease;\n width: 200px;\n height: 140px;\n margin-top: -53px;\n margin-left: -54px;\n}\n\n#moon2.orbit {\n opacity: 1;\n animation: orbit 2s ease;\n width: 132px;\n height: 180px;\n margin-top: -66px;\n margin-left: -85px;\n}\n\n#moon3.orbit {\n opacity: 1;\n display: flex;\n align-items: flex-end;\n animation: orbit 2s ease;\n width: 220px;\n height: 166px;\n margin-top: -96px;\n margin-left: -50px;\n}\n\n#moon1 .planet {\n height: 12px;\n width: 12px;\n border-radius: 50%;\n}\n\n#moon2 .planet {\n height: 16px;\n width: 16px;\n border-radius: 50%;\n float: right;\n}\n\n#moon3 .planet {\n height: 20px;\n width: 20px;\n border-radius: 50%;\n}\n\n#jupyterlab-splash.light #moon1 .planet {\n background-color: #6f7070;\n}\n\n#jupyterlab-splash.light #moon2 .planet {\n background-color: #767677;\n}\n\n#jupyterlab-splash.light #moon3 .planet {\n background-color: #989798;\n}\n\n#jupyterlab-splash.dark #moon1 .planet,\n#jupyterlab-splash.dark #moon2 .planet,\n#jupyterlab-splash.dark #moon3 .planet {\n background-color: white;\n}\n\n.orbit {\n animation-iteration-count: 1;\n position: absolute;\n top: 50%;\n left: 50%;\n border-radius: 50%;\n}\n\n@keyframes orbit {\n 0% {\n transform: rotateZ(0deg);\n }\n\n 100% {\n transform: rotateZ(-720deg);\n }\n}\n\n@keyframes orbit2 {\n 0% {\n transform: rotateZ(0deg);\n }\n\n 100% {\n transform: rotateZ(720deg);\n }\n}\n\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes fade-out {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n}\n",""]);const l=a},41510:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=n(28261);var l=n(52269);var d=n(5729);var c=n(48293);var h=n(17333);var u=n(76486);var p=n(8812);var m=r()(s());m.i(a.A);m.i(l.A);m.i(d.A);m.i(c.A);m.i(h.A);m.i(u.A);m.i(p.A);m.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n",""]);const g=m},28261:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-commandpalette-search-height: 28px;\n}\n\n/*-----------------------------------------------------------------------------\n| Overall styles\n|----------------------------------------------------------------------------*/\n\n.lm-CommandPalette {\n padding-bottom: 0;\n color: var(--jp-ui-font-color1);\n background: var(--jp-layout-color1);\n\n /* This is needed so that all font sizing of children done in ems is\n * relative to this base size */\n font-size: var(--jp-ui-font-size1);\n}\n\n/*-----------------------------------------------------------------------------\n| Modal variant\n|----------------------------------------------------------------------------*/\n\n.jp-ModalCommandPalette.jp-ThemedContainer {\n position: absolute;\n z-index: 10000;\n top: 38px;\n left: 30%;\n margin: 0;\n padding: 4px;\n width: 40%;\n box-shadow: var(--jp-elevation-z4);\n border-radius: 4px;\n background: var(--jp-layout-color0);\n}\n\n.jp-ModalCommandPalette .lm-CommandPalette {\n max-height: 40vh;\n}\n\n.jp-ModalCommandPalette .lm-CommandPalette .lm-close-icon::after {\n display: none;\n}\n\n.jp-ModalCommandPalette .lm-CommandPalette .lm-CommandPalette-header {\n display: none;\n}\n\n.jp-ModalCommandPalette .lm-CommandPalette .lm-CommandPalette-item {\n margin-left: 4px;\n margin-right: 4px;\n}\n\n.jp-ModalCommandPalette\n .lm-CommandPalette\n .lm-CommandPalette-item.lm-mod-disabled {\n display: none;\n}\n\n/*-----------------------------------------------------------------------------\n| Search\n|----------------------------------------------------------------------------*/\n\n.lm-CommandPalette-search {\n padding: 4px;\n background-color: var(--jp-layout-color1);\n z-index: 2;\n}\n\n.lm-CommandPalette-wrapper {\n /* stylelint-disable-next-line csstree/validator */\n overflow: overlay;\n padding: 0 9px;\n background-color: var(--jp-input-active-background);\n height: 30px;\n box-shadow: inset 0 0 0 var(--jp-border-width) var(--jp-input-border-color);\n}\n\n.lm-CommandPalette.lm-mod-focused .lm-CommandPalette-wrapper {\n box-shadow:\n inset 0 0 0 1px var(--jp-input-active-box-shadow-color),\n inset 0 0 0 3px var(--jp-input-active-box-shadow-color);\n}\n\n.jp-SearchIconGroup {\n color: white;\n background-color: var(--jp-brand-color1);\n position: absolute;\n top: 4px;\n right: 4px;\n padding: 5px 5px 1px;\n}\n\n.jp-SearchIconGroup svg {\n height: 20px;\n width: 20px;\n}\n\n.jp-SearchIconGroup .jp-icon3[fill] {\n fill: var(--jp-layout-color0);\n}\n\n.lm-CommandPalette-input {\n background: transparent;\n width: calc(100% - 18px);\n float: left;\n border: none;\n outline: none;\n font-size: var(--jp-ui-font-size1);\n color: var(--jp-ui-font-color0);\n line-height: var(--jp-private-commandpalette-search-height);\n}\n\n.lm-CommandPalette-input::-webkit-input-placeholder,\n.lm-CommandPalette-input::-moz-placeholder,\n.lm-CommandPalette-input:-ms-input-placeholder {\n color: var(--jp-ui-font-color2);\n font-size: var(--jp-ui-font-size1);\n}\n\n/*-----------------------------------------------------------------------------\n| Results\n|----------------------------------------------------------------------------*/\n\n.lm-CommandPalette-header:first-child {\n margin-top: 0;\n}\n\n.lm-CommandPalette-header {\n border-bottom: solid var(--jp-border-width) var(--jp-border-color2);\n color: var(--jp-ui-font-color1);\n cursor: pointer;\n display: flex;\n font-size: var(--jp-ui-font-size0);\n font-weight: 600;\n letter-spacing: 1px;\n margin-top: 8px;\n padding: 8px 0 8px 12px;\n text-transform: uppercase;\n}\n\n.lm-CommandPalette-header.lm-mod-active {\n background: var(--jp-layout-color2);\n}\n\n.lm-CommandPalette-header > mark {\n background-color: transparent;\n font-weight: bold;\n color: var(--jp-ui-font-color1);\n}\n\n.lm-CommandPalette-item {\n padding: 4px 12px 4px 4px;\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n font-weight: 400;\n display: flex;\n}\n\n.lm-CommandPalette-item.lm-mod-disabled {\n color: var(--jp-ui-font-color2);\n}\n\n.lm-CommandPalette-item.lm-mod-active {\n color: var(--jp-ui-inverse-font-color1);\n background: var(--jp-brand-color1);\n}\n\n.lm-CommandPalette-item.lm-mod-active .lm-CommandPalette-itemLabel > mark {\n color: var(--jp-ui-inverse-font-color0);\n}\n\n.lm-CommandPalette-item.lm-mod-active .jp-icon-selectable[fill] {\n fill: var(--jp-layout-color0);\n}\n\n.lm-CommandPalette-item.lm-mod-active:hover:not(.lm-mod-disabled) {\n color: var(--jp-ui-inverse-font-color1);\n background: var(--jp-brand-color1);\n}\n\n.lm-CommandPalette-item:hover:not(.lm-mod-active):not(.lm-mod-disabled) {\n background: var(--jp-layout-color2);\n}\n\n.lm-CommandPalette-itemContent {\n overflow: hidden;\n}\n\n.lm-CommandPalette-itemLabel > mark {\n color: var(--jp-ui-font-color0);\n background-color: transparent;\n font-weight: bold;\n}\n\n.lm-CommandPalette-item.lm-mod-disabled mark {\n color: var(--jp-ui-font-color2);\n}\n\n.lm-CommandPalette-item .lm-CommandPalette-itemIcon {\n margin: 0 4px 0 0;\n position: relative;\n width: 16px;\n top: 2px;\n flex: 0 0 auto;\n}\n\n.lm-CommandPalette-item.lm-mod-disabled .lm-CommandPalette-itemIcon {\n opacity: 0.6;\n}\n\n.lm-CommandPalette-item .lm-CommandPalette-itemShortcut {\n flex: 0 0 auto;\n}\n\n.lm-CommandPalette-itemCaption {\n display: none;\n}\n\n.lm-CommandPalette-content {\n background-color: var(--jp-layout-color1);\n}\n\n.lm-CommandPalette-content:empty::after {\n content: 'No results';\n margin: auto;\n margin-top: 20px;\n width: 100px;\n display: block;\n font-size: var(--jp-ui-font-size2);\n font-family: var(--jp-ui-font-family);\n font-weight: lighter;\n}\n\n.lm-CommandPalette-emptyMessage {\n text-align: center;\n margin-top: 24px;\n line-height: 1.32;\n padding: 0 8px;\n color: var(--jp-content-font-color3);\n}\n",""]);const l=a},52269:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-Dialog.jp-ThemedContainer {\n position: absolute;\n z-index: 10000;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n background: var(--jp-dialog-background);\n /* stylelint-disable */\n container-type: inline-size;\n /* stylelint-enable */\n}\n\n.jp-Dialog-content {\n display: flex;\n flex-direction: column;\n margin-left: auto;\n margin-right: auto;\n background: var(--jp-layout-color1);\n padding: 24px 24px 12px;\n min-width: 300px;\n min-height: 150px;\n max-width: 1000px;\n max-height: 500px;\n box-sizing: border-box;\n box-shadow: var(--jp-elevation-z20);\n word-wrap: break-word;\n border-radius: var(--jp-border-radius);\n\n /* This is needed so that all font sizing of children done in ems is\n * relative to this base size */\n font-size: var(--jp-ui-font-size1);\n color: var(--jp-ui-font-color1);\n resize: both;\n overflow: hidden;\n}\n\n.jp-Dialog-content.jp-Dialog-content-small {\n max-width: 500px;\n}\n\n.jp-Dialog-button {\n overflow: visible;\n}\n\nbutton.jp-Dialog-button:disabled {\n opacity: 0.6;\n}\n\nbutton.jp-Dialog-button:focus {\n outline: 1px solid var(--jp-brand-color1);\n outline-offset: 4px;\n -moz-outline-radius: 0;\n}\n\nbutton.jp-Dialog-button:focus::-moz-focus-inner {\n border: 0;\n}\n\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-accept:focus,\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-warn:focus,\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-reject:focus {\n outline-offset: 4px;\n -moz-outline-radius: 0;\n}\n\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-accept:focus {\n outline: 1px solid var(--jp-accept-color-normal, var(--jp-brand-color1));\n}\n\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-warn:focus {\n outline: 1px solid var(--jp-warn-color-normal, var(--jp-error-color1));\n}\n\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-reject:focus {\n outline: 1px solid var(--jp-reject-color-normal, var(--md-grey-600, #757575));\n}\n\nbutton.jp-Dialog-close-button {\n padding: 0;\n height: 100%;\n min-width: unset;\n min-height: unset;\n}\n\n.jp-Dialog-header {\n display: flex;\n justify-content: space-between;\n flex: 0 0 auto;\n padding-bottom: 12px;\n font-size: var(--jp-ui-font-size3);\n font-weight: 400;\n color: var(--jp-ui-font-color1);\n}\n\n.jp-Dialog-body {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n font-size: var(--jp-ui-font-size1);\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n overflow: auto;\n}\n\n.jp-Dialog-footer {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n flex: 0 0 auto;\n margin-left: -12px;\n margin-right: -12px;\n padding: 12px;\n}\n\n.jp-Dialog-checkbox {\n padding-right: 5px;\n display: flex;\n align-items: center;\n}\n\n.jp-Dialog-spacer {\n flex: 1 1 auto;\n}\n\n.jp-Dialog-title {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.jp-Dialog-body > .jp-select-wrapper {\n width: 100%;\n}\n\n.jp-Dialog-body > button {\n padding: 0 16px;\n}\n\n.jp-Dialog-body > label {\n line-height: 1.4;\n color: var(--jp-ui-font-color0);\n}\n\n.jp-Dialog-button.jp-mod-styled:not(:last-child) {\n margin-right: 12px;\n}\n\n/* stylelint-disable */\n@container (max-width: 560px) {\n /* stylelint-enable */\n .jp-Dialog-footer {\n flex-direction: column;\n align-items: center;\n gap: 7px;\n }\n}\n",""]);const l=a},5729:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n.jp-Input-Boolean-Dialog {\n flex-direction: row-reverse;\n align-items: end;\n width: 100%;\n}\n\n.jp-Input-Boolean-Dialog > label {\n flex: 1 1 auto;\n}\n\n.jp-InputDialog-inputWrapper {\n display: flex;\n align-items: baseline;\n}\n\n.jp-InputDialog-inputWrapper > input.jp-mod-styled:invalid {\n border-color: var(--jp-error-color0);\n background: var(--jp-error-color3);\n}\n\n.jp-InputDialog-inputWrapper\n > input[required].jp-mod-styled:invalid:placeholder-shown {\n /* Do not show invalid style when placeholder is shown */\n border-color: unset;\n background: unset;\n}\n",""]);const l=a},48293:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/* licenses */\n.jp-Licenses {\n display: flex;\n flex-direction: row;\n align-items: stretch;\n background-color: var(--jp-layout-color0);\n}\n\n.jp-Licenses-FormArea {\n display: flex;\n flex-direction: column;\n min-width: calc(10 * var(--jp-ui-font-size1));\n width: calc(18 * var(--jp-ui-font-size1));\n}\n\n.jp-Licenses .lm-SplitPanel-handle:hover {\n background-color: var(--jp-brand-color2);\n}\n\n/* filters */\n.jp-Licenses-Filters {\n padding: var(--jp-ui-font-size1) calc(var(--jp-ui-font-size1) / 2) 0\n var(--jp-ui-font-size1);\n}\n\n.jp-Licenses-Filters label {\n display: block;\n}\n\n.jp-Licenses-Filters-title {\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 1px;\n font-size: var(--jp-ui-font-size0);\n color: var(--jp-ui-font-color0);\n}\n\n.jp-RenderedHTMLCommon.jp-Licenses-Filters ul,\n.jp-RenderedHTMLCommon.jp-Licenses-Filters li {\n list-style: none;\n color: var(--jp-ui-font-color0);\n}\n\n.jp-Licenses-Filters input {\n width: 100%;\n}\n\n.jp-RenderedHTMLCommon.jp-Licenses-Filters ul {\n padding: 0 0 var(--jp-ui-font-size1) 0;\n margin: 0;\n padding-bottom: var(--jp-ui-font-size1);\n}\n\n/* bundles */\n.jp-Licenses-Bundles {\n background-color: var(--jp-layout-color2);\n overflow-y: auto;\n flex: 1;\n}\n\n.jp-Licenses-Bundles .lm-TabBar-content {\n width: 100%;\n}\n\n.jp-Licenses-Bundles .lm-TabBar-tab {\n padding: calc(var(--jp-ui-font-size1) / 2);\n background-color: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n}\n\n.jp-Licenses-Bundles .lm-TabBar-tabLabel {\n text-overflow: ellipsis;\n}\n\n.jp-Licenses-Bundles .lm-TabBar-tab label {\n background-color: var(--jp-layout-color2);\n border-radius: var(--jp-ui-font-size1);\n width: calc(2.5 * var(--jp-ui-font-size1));\n padding: 0 calc(var(--jp-ui-font-size1) / 2);\n text-align: center;\n margin-left: calc(var(--jp-ui-font-size1) / 2);\n}\n\n.jp-Licenses-Bundles .lm-TabBar-tab.lm-mod-current {\n background-color: var(--jp-brand-color1);\n color: #fff;\n}\n\n.jp-Licenses-Bundles .lm-TabBar-tab.lm-mod-current label {\n background-color: #fff;\n color: var(--jp-brand-color1);\n}\n\n/* license grid */\n.jp-Licenses-Grid.jp-RenderedHTMLCommon {\n min-width: calc(var(--jp-ui-font-size1) * 10);\n display: flex;\n flex-direction: column;\n padding: 0;\n}\n\n.jp-Licenses-Grid.jp-RenderedHTMLCommon form {\n flex: 1;\n display: flex;\n flex-direction: column;\n overflow-y: scroll;\n margin: 0;\n padding: 0;\n}\n\n.jp-RenderedHTMLCommon.jp-Licenses-Grid table {\n flex: 1;\n max-width: 100%;\n border: solid var(--jp-border-width) var(--jp-border-color2);\n border-top: 0;\n border-bottom: 0;\n margin: 0;\n}\n\n.jp-Licenses-Grid.jp-RenderedHTMLCommon td,\n.jp-Licenses-Grid.jp-RenderedHTMLCommon th {\n text-align: left;\n}\n\n.jp-Licenses-Grid td:nth-child(1) {\n max-width: calc(2 * var(--jp-ui-font-size1));\n}\n\n.jp-Licenses-Grid label {\n width: 100%;\n}\n\n.jp-Licenses .jp-Licenses-Grid.jp-RenderedHTMLCommon code {\n background-color: transparent;\n padding: 0;\n}\n\n.jp-Licenses-Grid.jp-RenderedHTMLCommon tr.jp-mod-selected {\n background-color: var(--jp-brand-color1);\n color: #fff;\n}\n\n.jp-Licenses-Grid.jp-RenderedHTMLCommon .jp-mod-selected code {\n color: #fff;\n}\n\n/* license text */\n.jp-Licenses-Text {\n min-width: calc(10 * var(--jp-ui-font-size1));\n padding: 0 0 0 var(--jp-ui-font-size1);\n display: flex;\n flex-direction: column;\n}\n\n.jp-Licenses-Text h1 {\n flex: initial;\n margin-bottom: 0;\n}\n\n.jp-Licenses-Text h1:empty {\n display: none;\n}\n\n.jp-Licenses-Text blockquote {\n flex: initial;\n}\n\n.jp-Licenses-Text.jp-RenderedHTMLCommon code {\n overflow-wrap: anywhere;\n overflow-y: auto;\n flex: 1;\n padding-right: var(--jp-ui-font-size1);\n margin-bottom: 0;\n padding-bottom: var(--jp-ui-font-size1);\n}\n\n.jp-Licenses-Text code:empty {\n display: none;\n}\n",""]);const l=a},17333:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-MainAreaWidget > :focus {\n outline: none;\n}\n\n.jp-MainAreaWidget .jp-MainAreaWidget-error {\n padding: 6px;\n}\n\n.jp-MainAreaWidget .jp-MainAreaWidget-error > pre {\n width: auto;\n padding: 10px;\n background: var(--jp-error-color3);\n border: var(--jp-border-width) solid var(--jp-error-color1);\n border-radius: var(--jp-border-radius);\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n",""]);const l=a},76486:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n/**\n * google-material-color v1.2.6\n * https://github.com/danlevan/google-material-color\n */\n:root {\n --md-red-50: #ffebee;\n --md-red-100: #ffcdd2;\n --md-red-200: #ef9a9a;\n --md-red-300: #e57373;\n --md-red-400: #ef5350;\n --md-red-500: #f44336;\n --md-red-600: #e53935;\n --md-red-700: #d32f2f;\n --md-red-800: #c62828;\n --md-red-900: #b71c1c;\n --md-red-A100: #ff8a80;\n --md-red-A200: #ff5252;\n --md-red-A400: #ff1744;\n --md-red-A700: #d50000;\n --md-pink-50: #fce4ec;\n --md-pink-100: #f8bbd0;\n --md-pink-200: #f48fb1;\n --md-pink-300: #f06292;\n --md-pink-400: #ec407a;\n --md-pink-500: #e91e63;\n --md-pink-600: #d81b60;\n --md-pink-700: #c2185b;\n --md-pink-800: #ad1457;\n --md-pink-900: #880e4f;\n --md-pink-A100: #ff80ab;\n --md-pink-A200: #ff4081;\n --md-pink-A400: #f50057;\n --md-pink-A700: #c51162;\n --md-purple-50: #f3e5f5;\n --md-purple-100: #e1bee7;\n --md-purple-200: #ce93d8;\n --md-purple-300: #ba68c8;\n --md-purple-400: #ab47bc;\n --md-purple-500: #9c27b0;\n --md-purple-600: #8e24aa;\n --md-purple-700: #7b1fa2;\n --md-purple-800: #6a1b9a;\n --md-purple-900: #4a148c;\n --md-purple-A100: #ea80fc;\n --md-purple-A200: #e040fb;\n --md-purple-A400: #d500f9;\n --md-purple-A700: #a0f;\n --md-deep-purple-50: #ede7f6;\n --md-deep-purple-100: #d1c4e9;\n --md-deep-purple-200: #b39ddb;\n --md-deep-purple-300: #9575cd;\n --md-deep-purple-400: #7e57c2;\n --md-deep-purple-500: #673ab7;\n --md-deep-purple-600: #5e35b1;\n --md-deep-purple-700: #512da8;\n --md-deep-purple-800: #4527a0;\n --md-deep-purple-900: #311b92;\n --md-deep-purple-A100: #b388ff;\n --md-deep-purple-A200: #7c4dff;\n --md-deep-purple-A400: #651fff;\n --md-deep-purple-A700: #6200ea;\n --md-indigo-50: #e8eaf6;\n --md-indigo-100: #c5cae9;\n --md-indigo-200: #9fa8da;\n --md-indigo-300: #7986cb;\n --md-indigo-400: #5c6bc0;\n --md-indigo-500: #3f51b5;\n --md-indigo-600: #3949ab;\n --md-indigo-700: #303f9f;\n --md-indigo-800: #283593;\n --md-indigo-900: #1a237e;\n --md-indigo-A100: #8c9eff;\n --md-indigo-A200: #536dfe;\n --md-indigo-A400: #3d5afe;\n --md-indigo-A700: #304ffe;\n --md-blue-50: #e3f2fd;\n --md-blue-100: #bbdefb;\n --md-blue-200: #90caf9;\n --md-blue-300: #64b5f6;\n --md-blue-400: #42a5f5;\n --md-blue-500: #2196f3;\n --md-blue-600: #1e88e5;\n --md-blue-700: #1976d2;\n --md-blue-800: #1565c0;\n --md-blue-900: #0d47a1;\n --md-blue-A100: #82b1ff;\n --md-blue-A200: #448aff;\n --md-blue-A400: #2979ff;\n --md-blue-A700: #2962ff;\n --md-light-blue-50: #e1f5fe;\n --md-light-blue-100: #b3e5fc;\n --md-light-blue-200: #81d4fa;\n --md-light-blue-300: #4fc3f7;\n --md-light-blue-400: #29b6f6;\n --md-light-blue-500: #03a9f4;\n --md-light-blue-600: #039be5;\n --md-light-blue-700: #0288d1;\n --md-light-blue-800: #0277bd;\n --md-light-blue-900: #01579b;\n --md-light-blue-A100: #80d8ff;\n --md-light-blue-A200: #40c4ff;\n --md-light-blue-A400: #00b0ff;\n --md-light-blue-A700: #0091ea;\n --md-cyan-50: #e0f7fa;\n --md-cyan-100: #b2ebf2;\n --md-cyan-200: #80deea;\n --md-cyan-300: #4dd0e1;\n --md-cyan-400: #26c6da;\n --md-cyan-500: #00bcd4;\n --md-cyan-600: #00acc1;\n --md-cyan-700: #0097a7;\n --md-cyan-800: #00838f;\n --md-cyan-900: #006064;\n --md-cyan-A100: #84ffff;\n --md-cyan-A200: #18ffff;\n --md-cyan-A400: #00e5ff;\n --md-cyan-A700: #00b8d4;\n --md-teal-50: #e0f2f1;\n --md-teal-100: #b2dfdb;\n --md-teal-200: #80cbc4;\n --md-teal-300: #4db6ac;\n --md-teal-400: #26a69a;\n --md-teal-500: #009688;\n --md-teal-600: #00897b;\n --md-teal-700: #00796b;\n --md-teal-800: #00695c;\n --md-teal-900: #004d40;\n --md-teal-A100: #a7ffeb;\n --md-teal-A200: #64ffda;\n --md-teal-A400: #1de9b6;\n --md-teal-A700: #00bfa5;\n --md-green-50: #e8f5e9;\n --md-green-100: #c8e6c9;\n --md-green-200: #a5d6a7;\n --md-green-300: #81c784;\n --md-green-400: #66bb6a;\n --md-green-500: #4caf50;\n --md-green-600: #43a047;\n --md-green-700: #388e3c;\n --md-green-800: #2e7d32;\n --md-green-900: #1b5e20;\n --md-green-A100: #b9f6ca;\n --md-green-A200: #69f0ae;\n --md-green-A400: #00e676;\n --md-green-A700: #00c853;\n --md-light-green-50: #f1f8e9;\n --md-light-green-100: #dcedc8;\n --md-light-green-200: #c5e1a5;\n --md-light-green-300: #aed581;\n --md-light-green-400: #9ccc65;\n --md-light-green-500: #8bc34a;\n --md-light-green-600: #7cb342;\n --md-light-green-700: #689f38;\n --md-light-green-800: #558b2f;\n --md-light-green-900: #33691e;\n --md-light-green-A100: #ccff90;\n --md-light-green-A200: #b2ff59;\n --md-light-green-A400: #76ff03;\n --md-light-green-A700: #64dd17;\n --md-lime-50: #f9fbe7;\n --md-lime-100: #f0f4c3;\n --md-lime-200: #e6ee9c;\n --md-lime-300: #dce775;\n --md-lime-400: #d4e157;\n --md-lime-500: #cddc39;\n --md-lime-600: #c0ca33;\n --md-lime-700: #afb42b;\n --md-lime-800: #9e9d24;\n --md-lime-900: #827717;\n --md-lime-A100: #f4ff81;\n --md-lime-A200: #eeff41;\n --md-lime-A400: #c6ff00;\n --md-lime-A700: #aeea00;\n --md-yellow-50: #fffde7;\n --md-yellow-100: #fff9c4;\n --md-yellow-200: #fff59d;\n --md-yellow-300: #fff176;\n --md-yellow-400: #ffee58;\n --md-yellow-500: #ffeb3b;\n --md-yellow-600: #fdd835;\n --md-yellow-700: #fbc02d;\n --md-yellow-800: #f9a825;\n --md-yellow-900: #f57f17;\n --md-yellow-A100: #ffff8d;\n --md-yellow-A200: #ff0;\n --md-yellow-A400: #ffea00;\n --md-yellow-A700: #ffd600;\n --md-amber-50: #fff8e1;\n --md-amber-100: #ffecb3;\n --md-amber-200: #ffe082;\n --md-amber-300: #ffd54f;\n --md-amber-400: #ffca28;\n --md-amber-500: #ffc107;\n --md-amber-600: #ffb300;\n --md-amber-700: #ffa000;\n --md-amber-800: #ff8f00;\n --md-amber-900: #ff6f00;\n --md-amber-A100: #ffe57f;\n --md-amber-A200: #ffd740;\n --md-amber-A400: #ffc400;\n --md-amber-A700: #ffab00;\n --md-orange-50: #fff3e0;\n --md-orange-100: #ffe0b2;\n --md-orange-200: #ffcc80;\n --md-orange-300: #ffb74d;\n --md-orange-400: #ffa726;\n --md-orange-500: #ff9800;\n --md-orange-600: #fb8c00;\n --md-orange-700: #f57c00;\n --md-orange-800: #ef6c00;\n --md-orange-900: #e65100;\n --md-orange-A100: #ffd180;\n --md-orange-A200: #ffab40;\n --md-orange-A400: #ff9100;\n --md-orange-A700: #ff6d00;\n --md-deep-orange-50: #fbe9e7;\n --md-deep-orange-100: #ffccbc;\n --md-deep-orange-200: #ffab91;\n --md-deep-orange-300: #ff8a65;\n --md-deep-orange-400: #ff7043;\n --md-deep-orange-500: #ff5722;\n --md-deep-orange-600: #f4511e;\n --md-deep-orange-700: #e64a19;\n --md-deep-orange-800: #d84315;\n --md-deep-orange-900: #bf360c;\n --md-deep-orange-A100: #ff9e80;\n --md-deep-orange-A200: #ff6e40;\n --md-deep-orange-A400: #ff3d00;\n --md-deep-orange-A700: #dd2c00;\n --md-brown-50: #efebe9;\n --md-brown-100: #d7ccc8;\n --md-brown-200: #bcaaa4;\n --md-brown-300: #a1887f;\n --md-brown-400: #8d6e63;\n --md-brown-500: #795548;\n --md-brown-600: #6d4c41;\n --md-brown-700: #5d4037;\n --md-brown-800: #4e342e;\n --md-brown-900: #3e2723;\n --md-grey-50: #fafafa;\n --md-grey-100: #f5f5f5;\n --md-grey-200: #eee;\n --md-grey-300: #e0e0e0;\n --md-grey-400: #bdbdbd;\n --md-grey-500: #9e9e9e;\n --md-grey-600: #757575;\n --md-grey-700: #616161;\n --md-grey-800: #424242;\n --md-grey-900: #212121;\n --md-blue-grey-50: #eceff1;\n --md-blue-grey-100: #cfd8dc;\n --md-blue-grey-200: #b0bec5;\n --md-blue-grey-300: #90a4ae;\n --md-blue-grey-400: #78909c;\n --md-blue-grey-500: #607d8b;\n --md-blue-grey-600: #546e7a;\n --md-blue-grey-700: #455a64;\n --md-blue-grey-800: #37474f;\n --md-blue-grey-900: #263238;\n}\n",""]);const l=a},8812:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n/* @deprecated dead code to be removed in JupyterLab 5 */\n.jp-Toolbar-item.jp-Toolbar-kernelStatus {\n display: inline-block;\n width: 32px;\n background-repeat: no-repeat;\n background-position: center;\n background-size: 16px;\n}\n",""]);const l=a},31772:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n.jp-cell-button .jp-icon3[fill] {\n fill: var(--jp-inverse-layout-color4);\n}\n\n.jp-cell-button:hover .jp-icon3[fill] {\n fill: var(--jp-inverse-layout-color2);\n}\n\n.jp-toolbar-overlap .jp-cell-toolbar {\n display: none;\n}\n\n.jp-cell-toolbar {\n display: flex;\n flex-direction: row;\n padding: 0;\n min-height: 25px;\n z-index: 6;\n position: absolute;\n right: 3px;\n\n /* Override .jp-Toolbar */\n background-color: transparent;\n border-bottom: inherit;\n box-shadow: none;\n}\n\n/* Overrides for mobile view hiding cell toolbar */\n@media only screen and (width <= 760px) {\n .jp-cell-toolbar {\n display: none;\n }\n}\n\n.jp-cell-toolbar button.jp-ToolbarButtonComponent {\n cursor: pointer;\n}\n\n.jp-cell-toolbar .jp-ToolbarButton button {\n display: none;\n}\n\n.jp-cell-toolbar .jp-ToolbarButton .jp-cell-all,\n.jp-CodeCell .jp-ToolbarButton .jp-cell-code,\n.jp-MarkdownCell .jp-ToolbarButton .jp-cell-markdown,\n.jp-RawCell .jp-ToolbarButton .jp-cell-raw {\n display: block;\n}\n\n.jp-cell-toolbar .jp-Toolbar-spacer {\n flex: 1 1 auto;\n}\n\n.jp-cell-mod-click {\n cursor: pointer;\n}\n\n/* Custom styling for rendered markdown cells so that cell toolbar is visible */\n.jp-MarkdownOutput {\n border-width: var(--jp-border-width);\n border-color: transparent;\n border-style: solid;\n}\n\n.jp-mod-active .jp-MarkdownOutput {\n border-color: var(--jp-cell-editor-border-color);\n}\n",""]);const l=a},55717:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=n(35541);var l=n(30684);var d=n(25147);var c=n(88771);var h=n(60846);var u=r()(s());u.i(a.A);u.i(l.A);u.i(d.A);u.i(c.A);u.i(h.A);u.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n",""]);const p=u},35541:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,'/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-Collapser {\n flex: 0 0 var(--jp-cell-collapser-width);\n padding: 0;\n margin: 0;\n border: none;\n outline: none;\n background: transparent;\n border-radius: var(--jp-border-radius);\n opacity: 1;\n}\n\n.jp-Collapser-child {\n display: block;\n width: 100%;\n box-sizing: border-box;\n\n /* height: 100% doesn\'t work because the height of its parent is computed from content */\n position: absolute;\n top: 0;\n bottom: 0;\n}\n\n/*-----------------------------------------------------------------------------\n| Printing\n|----------------------------------------------------------------------------*/\n\n/*\nHiding collapsers in print mode.\n\nNote: input and output wrappers have "display: block" property in print mode.\n*/\n\n@media print {\n .jp-Collapser {\n display: none;\n }\n}\n',""]);const l=a},30684:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Header/Footer\n|----------------------------------------------------------------------------*/\n\n/* Hidden by zero height by default */\n.jp-CellHeader,\n.jp-CellFooter {\n height: 0;\n width: 100%;\n padding: 0;\n margin: 0;\n border: none;\n outline: none;\n background: transparent;\n}\n",""]);const l=a},25147:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Input\n|----------------------------------------------------------------------------*/\n\n/* All input areas */\n.jp-InputArea {\n display: flex;\n flex-direction: row;\n width: 100%;\n overflow: hidden;\n}\n\n.jp-InputArea-editor {\n flex: 1 1 auto;\n overflow: hidden;\n\n /* This is the non-active, default styling */\n border: var(--jp-border-width) solid var(--jp-cell-editor-border-color);\n border-radius: 0;\n background: var(--jp-cell-editor-background);\n}\n\n.jp-InputPrompt {\n flex: 0 0 var(--jp-cell-prompt-width);\n width: var(--jp-cell-prompt-width);\n color: var(--jp-cell-inprompt-font-color);\n font-family: var(--jp-cell-prompt-font-family);\n padding: var(--jp-code-padding);\n letter-spacing: var(--jp-cell-prompt-letter-spacing);\n opacity: var(--jp-cell-prompt-opacity);\n line-height: var(--jp-code-line-height);\n font-size: var(--jp-code-font-size);\n border: var(--jp-border-width) solid transparent;\n\n /* Right align prompt text, don't wrap to handle large prompt numbers */\n text-align: right;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n /* Disable text selection */\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n/*-----------------------------------------------------------------------------\n| Print\n|----------------------------------------------------------------------------*/\n@media print {\n .jp-InputArea {\n display: table;\n table-layout: fixed;\n }\n\n .jp-InputArea-editor {\n display: table-cell;\n vertical-align: top;\n }\n\n .jp-InputPrompt {\n display: table-cell;\n vertical-align: top;\n }\n}\n\n/*-----------------------------------------------------------------------------\n| Mobile\n|----------------------------------------------------------------------------*/\n@media only screen and (width <= 760px) {\n .jp-InputArea {\n flex-direction: column;\n }\n\n .jp-InputArea-editor {\n margin-left: var(--jp-code-padding);\n }\n\n .jp-InputPrompt {\n flex: 0 0 auto;\n text-align: left;\n }\n}\n",""]);const l=a},88771:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Placeholder\n|----------------------------------------------------------------------------*/\n\n.jp-Placeholder {\n display: flex;\n flex-direction: row;\n width: 100%;\n}\n\n.jp-Placeholder-prompt {\n flex: 0 0 var(--jp-cell-prompt-width);\n box-sizing: border-box;\n}\n\n.jp-Placeholder-content {\n flex: 1 1 auto;\n padding: 4px 6px;\n border: 1px solid transparent;\n border-radius: 0;\n background: none;\n box-sizing: border-box;\n cursor: pointer;\n}\n\n.jp-Placeholder-contentContainer {\n display: flex;\n}\n\n.jp-Placeholder-content:hover,\n.jp-InputPlaceholder > .jp-Placeholder-content:hover {\n border-color: var(--jp-layout-color3);\n}\n\n.jp-Placeholder-content .jp-MoreHorizIcon {\n width: 32px;\n height: 16px;\n border: 1px solid transparent;\n border-radius: var(--jp-border-radius);\n}\n\n.jp-Placeholder-content .jp-MoreHorizIcon:hover {\n border: 1px solid var(--jp-border-color1);\n box-shadow: var(--jp-toolbar-box-shadow);\n background-color: var(--jp-layout-color0);\n}\n\n.jp-PlaceholderText {\n white-space: nowrap;\n overflow-x: hidden;\n color: var(--jp-inverse-layout-color3);\n font-family: var(--jp-code-font-family);\n}\n\n.jp-InputPlaceholder > .jp-Placeholder-content {\n border-color: var(--jp-cell-editor-border-color);\n background: var(--jp-cell-editor-background);\n}\n\n/*-----------------------------------------------------------------------------\n| Print\n|----------------------------------------------------------------------------*/\n@media print {\n .jp-Placeholder {\n display: table;\n table-layout: fixed;\n }\n\n .jp-Placeholder-content {\n display: table-cell;\n }\n\n .jp-Placeholder-prompt {\n display: table-cell;\n }\n}\n",""]);const l=a},60846:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Private CSS variables\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-cell-scrolling-output-offset: 5px;\n}\n\n/*-----------------------------------------------------------------------------\n| Cell\n|----------------------------------------------------------------------------*/\n\n.jp-Cell {\n padding: var(--jp-cell-padding);\n margin: 0;\n border: none;\n outline: none;\n background: transparent;\n}\n\n/*-----------------------------------------------------------------------------\n| Common input/output\n|----------------------------------------------------------------------------*/\n\n.jp-Cell-inputWrapper,\n.jp-Cell-outputWrapper {\n display: flex;\n flex-direction: row;\n padding: 0;\n margin: 0;\n\n /* Added to reveal the box-shadow on the input and output collapsers. */\n overflow: visible;\n}\n\n/* Only input/output areas inside cells */\n.jp-Cell-inputArea,\n.jp-Cell-outputArea {\n flex: 1 1 auto;\n}\n\n/*-----------------------------------------------------------------------------\n| Collapser\n|----------------------------------------------------------------------------*/\n\n/* Make the output collapser disappear when there is not output, but do so\n * in a manner that leaves it in the layout and preserves its width.\n */\n.jp-Cell.jp-mod-noOutputs .jp-Cell-outputCollapser {\n border: none !important;\n background: transparent !important;\n}\n\n.jp-Cell:not(.jp-mod-noOutputs) .jp-Cell-outputCollapser {\n min-height: var(--jp-cell-collapser-min-height);\n}\n\n/*-----------------------------------------------------------------------------\n| Output\n|----------------------------------------------------------------------------*/\n\n/* Put a space between input and output when there IS output */\n.jp-Cell:not(.jp-mod-noOutputs) .jp-Cell-outputWrapper {\n margin-top: 5px;\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-Cell-outputArea {\n overflow-y: auto;\n max-height: 24em;\n margin-left: var(--jp-private-cell-scrolling-output-offset);\n resize: vertical;\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-Cell-outputArea[style*='height'] {\n max-height: unset;\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-Cell-outputArea::after {\n content: ' ';\n box-shadow: inset 0 0 6px 2px rgb(0 0 0 / 30%);\n width: 100%;\n height: 100%;\n position: sticky;\n bottom: 0;\n top: 0;\n margin-top: -50%;\n float: left;\n display: block;\n pointer-events: none;\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-OutputArea-child {\n padding-top: 6px;\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-OutputArea-prompt {\n width: calc(\n var(--jp-cell-prompt-width) - var(--jp-private-cell-scrolling-output-offset)\n );\n flex: 0 0\n calc(\n var(--jp-cell-prompt-width) -\n var(--jp-private-cell-scrolling-output-offset)\n );\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-OutputArea-promptOverlay {\n left: calc(-1 * var(--jp-private-cell-scrolling-output-offset));\n}\n\n/*-----------------------------------------------------------------------------\n| CodeCell\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| MarkdownCell\n|----------------------------------------------------------------------------*/\n\n.jp-MarkdownOutput {\n flex: 1 1 auto;\n width: 100%;\n margin-top: 0;\n margin-bottom: 0;\n padding-left: var(--jp-code-padding);\n}\n\n.jp-MarkdownOutput.jp-RenderedHTMLCommon {\n overflow: auto;\n}\n\n/* collapseHeadingButton (show always if hiddenCellsButton is _not_ shown) */\n.jp-collapseHeadingButton {\n display: flex;\n min-height: var(--jp-cell-collapser-min-height);\n font-size: var(--jp-code-font-size);\n position: absolute;\n background-color: transparent;\n background-size: 25px;\n background-repeat: no-repeat;\n background-position-x: center;\n background-position-y: top;\n background-image: var(--jp-icon-caret-down);\n right: 0;\n top: 0;\n bottom: 0;\n}\n\n.jp-collapseHeadingButton.jp-mod-collapsed {\n background-image: var(--jp-icon-caret-right);\n}\n\n/*\n set the container font size to match that of content\n so that the nested collapse buttons have the right size\n*/\n.jp-MarkdownCell .jp-InputPrompt {\n font-size: var(--jp-content-font-size1);\n}\n\n/*\n Align collapseHeadingButton with cell top header\n The font sizes are identical to the ones in packages/rendermime/style/base.css\n*/\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='1'] {\n font-size: var(--jp-content-font-size5);\n background-position-y: calc(0.3 * var(--jp-content-font-size5));\n}\n\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='2'] {\n font-size: var(--jp-content-font-size4);\n background-position-y: calc(0.3 * var(--jp-content-font-size4));\n}\n\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='3'] {\n font-size: var(--jp-content-font-size3);\n background-position-y: calc(0.3 * var(--jp-content-font-size3));\n}\n\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='4'] {\n font-size: var(--jp-content-font-size2);\n background-position-y: calc(0.3 * var(--jp-content-font-size2));\n}\n\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='5'] {\n font-size: var(--jp-content-font-size1);\n background-position-y: top;\n}\n\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='6'] {\n font-size: var(--jp-content-font-size0);\n background-position-y: top;\n}\n\n/* collapseHeadingButton (show only on (hover,active) if hiddenCellsButton is shown) */\n.jp-Notebook.jp-mod-showHiddenCellsButton .jp-collapseHeadingButton {\n display: none;\n}\n\n.jp-Notebook.jp-mod-showHiddenCellsButton\n :is(.jp-MarkdownCell:hover, .jp-mod-active)\n .jp-collapseHeadingButton {\n display: flex;\n}\n\n/* showHiddenCellsButton (only show if jp-mod-showHiddenCellsButton is set, which\nis a consequence of the showHiddenCellsButton option in Notebook Settings)*/\n.jp-Notebook.jp-mod-showHiddenCellsButton .jp-showHiddenCellsButton {\n margin-left: calc(var(--jp-cell-prompt-width) + 2 * var(--jp-code-padding));\n margin-top: var(--jp-code-padding);\n border: 1px solid var(--jp-border-color2);\n background-color: var(--jp-border-color3) !important;\n color: var(--jp-content-font-color0) !important;\n display: flex;\n}\n\n.jp-Notebook.jp-mod-showHiddenCellsButton .jp-showHiddenCellsButton:hover {\n background-color: var(--jp-border-color2) !important;\n}\n\n.jp-showHiddenCellsButton {\n display: none;\n}\n\n/*-----------------------------------------------------------------------------\n| Printing\n|----------------------------------------------------------------------------*/\n\n/*\nUsing block instead of flex to allow the use of the break-inside CSS property for\ncell outputs.\n*/\n\n@media print {\n .jp-Cell-inputWrapper,\n .jp-Cell-outputWrapper {\n display: block;\n }\n\n .jp-MarkdownOutput {\n display: table-cell;\n }\n}\n",""]);const l=a},96415:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n:root {\n --jp-add-tag-extra-width: 8px;\n}\n\n.jp-CellTags-Tag {\n height: 20px;\n border-radius: 10px;\n margin-right: 5px;\n margin-bottom: 10px;\n padding: 0 8px;\n font-size: var(--jp-ui-font-size1);\n display: inline-flex;\n justify-content: center;\n align-items: center;\n max-width: calc(100% - 25px);\n border: 1px solid var(--jp-border-color1);\n color: var(--jp-ui-font-color1);\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.jp-CellTags-Unapplied {\n background-color: var(--jp-layout-color2);\n}\n\n.jp-CellTags-Applied {\n background-color: var(--jp-layout-color3);\n}\n\n.jp-CellTags-Add {\n white-space: nowrap;\n overflow: hidden;\n border: none;\n outline: none;\n resize: horizontal;\n font-size: var(--jp-ui-font-size1);\n color: var(--jp-ui-font-color1);\n background: var(--jp-layout-color2);\n}\n\n.jp-CellTags-Holder {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.jp-CellTags-Empty {\n width: 4em;\n}\n",""]);const l=a},9534:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=n(94925);var l=r()(s());l.i(a.A);l.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-JSONEditor {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n\n.jp-JSONEditor-host {\n flex: 1 1 auto;\n border: var(--jp-border-width) solid var(--jp-input-border-color);\n border-radius: 0;\n background: var(--jp-layout-color0);\n min-height: 50px;\n padding: 1px;\n}\n\n.jp-JSONEditor.jp-mod-error .jp-JSONEditor-host {\n border-color: red;\n outline-color: red;\n}\n\n.jp-JSONEditor-header {\n display: flex;\n flex: 1 0 auto;\n padding: 0 0 0 12px;\n}\n\n.jp-JSONEditor-header label {\n flex: 0 0 auto;\n}\n\n.jp-JSONEditor-commitButton {\n height: 16px;\n width: 16px;\n background-size: 18px;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.jp-JSONEditor-host.jp-mod-focused {\n background-color: var(--jp-input-active-background);\n border: 1px solid var(--jp-input-active-border-color);\n box-shadow: var(--jp-input-box-shadow);\n}\n\n.jp-Editor.jp-mod-dropTarget {\n border: var(--jp-border-width) solid var(--jp-input-active-border-color);\n box-shadow: var(--jp-input-box-shadow);\n}\n",""]);const d=l},94925:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n.jp-lineFormSearch {\n padding: 4px 12px;\n background-color: var(--jp-layout-color2);\n box-shadow: var(--jp-toolbar-box-shadow);\n z-index: 2;\n font-size: var(--jp-ui-font-size1);\n}\n\n.jp-lineFormCaption {\n font-size: var(--jp-ui-font-size0);\n line-height: var(--jp-ui-font-size1);\n margin-top: 4px;\n color: var(--jp-ui-font-color0);\n}\n\n.jp-baseLineForm {\n border: none;\n border-top-right-radius: var(--jp-border-radius);\n border-bottom-right-radius: var(--jp-border-radius);\n position: absolute;\n background-size: 16px;\n background-repeat: no-repeat;\n background-position: center;\n outline: none;\n}\n\n.jp-lineFormButtonContainer {\n top: 4px;\n right: 8px;\n height: 24px;\n padding: 0 12px;\n width: 12px;\n}\n\n.jp-lineFormButtonIcon {\n top: 0;\n right: 0;\n background-color: var(--jp-brand-color1);\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n padding: 4px 6px;\n}\n\n.jp-lineFormButton {\n top: 0;\n right: 0;\n background-color: transparent;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n}\n\n.jp-lineFormWrapper {\n overflow: hidden;\n padding: 0 8px;\n border: 1px solid var(--jp-border-color0);\n border-top-left-radius: var(--jp-border-radius);\n border-bottom-left-radius: var(--jp-border-radius);\n background-color: var(--jp-input-active-background);\n height: 22px;\n}\n\n.jp-lineFormWrapperFocusWithin {\n border: var(--jp-border-width) solid var(--jp-input-active-border-color);\n box-shadow: var(--jp-input-box-shadow);\n}\n\n.jp-lineFormInput {\n background: transparent;\n width: 200px;\n height: 100%;\n border: none;\n outline: none;\n color: var(--jp-ui-font-color0);\n padding: 0;\n}\n",""]);const l=a},29500:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=n(4417);var l=n.n(a);var d=new URL(n(78269),n.b);var c=r()(s());var h=l()(d);c.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.cm-editor {\n line-height: var(--jp-code-line-height);\n font-size: var(--jp-code-font-size);\n font-family: var(--jp-code-font-family);\n border: 0;\n border-radius: 0;\n height: auto;\n\n /* Changed to auto to autogrow */\n}\n\n/* Suppress automatic focus indicator outline */\n.cm-editor.cm-focused {\n outline: unset;\n}\n\n.cm-editor pre {\n padding: 0 var(--jp-code-padding);\n}\n\n.jp-CodeMirrorEditor[data-type='inline'] .cm-dialog {\n background-color: var(--jp-layout-color0);\n color: var(--jp-content-font-color1);\n}\n\n.jp-CodeMirrorEditor {\n cursor: text;\n}\n\n/* When zoomed out 67% and 33% on a screen of 1440 width x 900 height */\n@media screen and (width >= 2138px) and (width <= 4319px) {\n .jp-CodeMirrorEditor[data-type='inline'] .cm-cursor {\n border-left: var(--jp-code-cursor-width1) solid\n var(--jp-editor-cursor-color);\n }\n}\n\n/* When zoomed out less than 33% */\n@media screen and (width >= 4320px) {\n .jp-CodeMirrorEditor[data-type='inline'] .cm-cursor {\n border-left: var(--jp-code-cursor-width2) solid\n var(--jp-editor-cursor-color);\n }\n}\n\n/* stylelint-disable selector-max-class */\n\n/* We need all this classes for higher specificity to override CodeMirror's rule */\n.cm-editor.jp-mod-readOnly > .cm-scroller > .cm-cursorLayer .cm-cursor {\n display: none;\n}\n\n/* stylelint-enable selector-max-class */\n\n.jp-CollaboratorCursor {\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-top: none;\n border-bottom: 3px solid;\n background-clip: content-box;\n margin-left: -5px;\n margin-right: -5px;\n}\n\n.cm-builtin {\n color: var(--jp-mirror-editor-builtin-color);\n}\n\n.cm-searching,\n.cm-searching span {\n /* `.cm-searching span`: we need to override syntax highlighting */\n background-color: var(--jp-search-unselected-match-background-color);\n color: var(--jp-search-unselected-match-color);\n}\n\n.cm-searching::selection,\n.cm-searching span::selection {\n background-color: var(--jp-search-unselected-match-background-color);\n color: var(--jp-search-unselected-match-color);\n}\n\n.jp-current-match > .cm-searching,\n.jp-current-match > .cm-searching span,\n.cm-searching > .jp-current-match,\n.cm-searching > .jp-current-match span {\n background-color: var(--jp-search-selected-match-background-color);\n color: var(--jp-search-selected-match-color);\n}\n\n.jp-current-match > .cm-searching::selection,\n.jp-current-match > .cm-searching span::selection,\n.cm-searching > .jp-current-match::selection,\n.cm-searching > .jp-current-match span::selection {\n background-color: var(--jp-search-selected-match-background-color);\n color: var(--jp-search-selected-match-color);\n}\n\n.cm-trailingspace {\n background-image: url("+h+");\n background-position: center left;\n background-repeat: repeat-x;\n}\n\n.jp-CollaboratorCursor-hover {\n position: absolute;\n z-index: 1;\n transform: translateX(-50%);\n color: white;\n border-radius: 3px;\n padding-left: 4px;\n padding-right: 4px;\n padding-top: 1px;\n padding-bottom: 1px;\n text-align: center;\n font-size: var(--jp-ui-font-size1);\n white-space: nowrap;\n}\n\n.jp-CodeMirror-ruler {\n border-left: 1px dashed var(--jp-border-color2);\n}\n\n/* Styles for shared cursors (remote cursor locations and selected ranges) */\n.jp-CodeMirrorEditor .cm-ySelectionCaret {\n position: relative;\n border-left: 1px solid black;\n margin-left: -1px;\n margin-right: -1px;\n box-sizing: border-box;\n}\n\n.jp-CodeMirrorEditor .cm-ySelectionCaret > .cm-ySelectionInfo {\n white-space: nowrap;\n position: absolute;\n top: -1.15em;\n padding-bottom: 0.05em;\n left: -1px;\n font-size: 0.95em;\n font-family: var(--jp-ui-font-family);\n font-weight: bold;\n line-height: normal;\n user-select: none;\n color: white;\n padding-left: 2px;\n padding-right: 2px;\n z-index: 101;\n transition: opacity 0.3s ease-in-out;\n}\n\n.jp-CodeMirrorEditor .cm-ySelectionInfo {\n transition-delay: 0.7s;\n opacity: 0;\n}\n\n.jp-CodeMirrorEditor .cm-ySelectionCaret:hover > .cm-ySelectionInfo {\n opacity: 1;\n transition-delay: 0s;\n}\n",""]);const u=c},57331:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-completer-item-height: 24px;\n\n /* Shift the baseline of the type character to align with the match text */\n --jp-private-completer-type-offset: 2px;\n}\n\n.jp-Completer {\n box-shadow: var(--jp-elevation-z6);\n background: var(--jp-layout-color1);\n color: var(--jp-content-font-color1);\n border: var(--jp-border-width) solid var(--jp-border-color1);\n padding: 0;\n display: flex;\n flex-direction: row;\n\n /* Needed to avoid scrollbar issues when using cached width. */\n box-sizing: content-box;\n\n /* Position the completer relative to the text editor, align the '.' */\n margin: 4px 0 0 -30px;\n z-index: 10001;\n}\n\n.jp-Completer-docpanel {\n border-left: var(--jp-border-width) solid var(--jp-border-color1);\n width: 400px;\n flex-shrink: 0;\n overflow-y: scroll;\n overflow-x: auto;\n padding: 8px;\n max-height: calc((10 * var(--jp-private-completer-item-height)) - 16px);\n}\n\n.jp-Completer-docpanel pre {\n border: none;\n margin: 0;\n padding: 0;\n white-space: pre-wrap;\n}\n\n.jp-Completer-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n overflow-y: scroll;\n overflow-x: hidden;\n max-height: calc((10 * var(--jp-private-completer-item-height)));\n min-height: calc(var(--jp-private-completer-item-height));\n width: 100%;\n}\n\n.jp-Completer-item {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n height: var(--jp-private-completer-item-height);\n min-width: 150px;\n display: grid;\n grid-template-columns: min-content 1fr min-content;\n position: relative;\n}\n\n.jp-Completer-item .jp-Completer-match {\n box-sizing: border-box;\n margin: 0;\n padding: 0 8px 0 6px;\n height: var(--jp-private-completer-item-height);\n font-family: var(--jp-code-font-family);\n font-size: var(--jp-code-font-size);\n line-height: var(--jp-private-completer-item-height);\n white-space: nowrap;\n}\n\n.jp-Completer-deprecated .jp-Completer-match {\n text-decoration: line-through;\n color: var(--jp-content-font-color2);\n}\n\n.jp-Completer-item .jp-Completer-type {\n box-sizing: border-box;\n height: var(--jp-private-completer-item-height);\n background: transparent;\n width: var(--jp-private-completer-item-height);\n}\n\n.jp-Completer-item .jp-Completer-icon {\n /* Normal element size from LabIconStyle.ISheetOptions */\n height: 16px;\n width: 16px;\n}\n\n.jp-Completer-item .jp-Completer-monogram {\n text-align: center;\n color: white;\n width: var(--jp-private-completer-item-height);\n font-family: var(--jp-ui-font-family);\n font-size: var(--jp-ui-font-size1);\n line-height: calc(\n var(--jp-private-completer-item-height) -\n var(--jp-private-completer-type-offset)\n );\n padding-bottom: var(--jp-private-completer-type-offset);\n}\n\n.jp-Completer-item .jp-Completer-typeExtended {\n box-sizing: border-box;\n height: var(--jp-private-completer-item-height);\n text-align: right;\n background: transparent;\n color: var(--jp-ui-font-color2);\n font-family: var(--jp-code-font-family);\n font-size: var(--jp-code-font-size);\n line-height: var(--jp-private-completer-item-height);\n padding-right: 8px;\n}\n\n.jp-Completer-item:hover {\n background: var(--jp-layout-color2);\n opacity: 0.8;\n}\n\n.jp-Completer-item.jp-mod-active {\n background: var(--jp-brand-color1);\n color: white;\n}\n\n.jp-Completer-item .jp-Completer-match mark {\n font-weight: bold;\n background: inherit;\n color: inherit;\n}\n\n.jp-Completer-type[data-color-index='0'] {\n background: var(--jp-completer-type-background0, transparent);\n}\n\n.jp-Completer-type[data-color-index='1'] {\n background: var(--jp-completer-type-background1, #1f77b4);\n}\n\n.jp-Completer-type[data-color-index='2'] {\n background: var(--jp-completer-type-background2, #ff7f0e);\n}\n\n.jp-Completer-type[data-color-index='3'] {\n background: var(--jp-completer-type-background3, #2ca02c);\n}\n\n.jp-Completer-type[data-color-index='4'] {\n background: var(--jp-completer-type-background4, #d62728);\n}\n\n.jp-Completer-type[data-color-index='5'] {\n background: var(--jp-completer-type-background5, #9467bd);\n}\n\n.jp-Completer-type[data-color-index='6'] {\n background: var(--jp-completer-type-background6, #8c564b);\n}\n\n.jp-Completer-type[data-color-index='7'] {\n background: var(--jp-completer-type-background7, #e377c2);\n}\n\n.jp-Completer-type[data-color-index='8'] {\n background: var(--jp-completer-type-background8, #7f7f7f);\n}\n\n.jp-Completer-type[data-color-index='9'] {\n background: var(--jp-completer-type-background9, #bcbd22);\n}\n\n.jp-Completer-type[data-color-index='10'] {\n background: var(--jp-completer-type-background10, #17becf);\n}\n\n.jp-Completer-loading-bar-container {\n height: 2px;\n width: calc(100% - var(--jp-private-completer-item-height));\n left: var(--jp-private-completer-item-height);\n position: absolute;\n overflow: hidden;\n top: 0;\n}\n\n.jp-Completer-loading-bar {\n height: 100%;\n width: 50%;\n background-color: var(--jp-accent-color2);\n position: absolute;\n left: -50%;\n animation: jp-Completer-loading 2s ease-in 0.5s infinite;\n}\n\n@keyframes jp-Completer-loading {\n 0% {\n transform: translateX(0);\n }\n\n 100% {\n transform: translateX(400%);\n }\n}\n\n.jp-GhostText {\n color: var(--jp-ui-font-color3);\n white-space: pre-wrap;\n}\n\n.jp-GhostText-lineSpacer,\n.jp-GhostText-letterSpacer {\n opacity: 0;\n display: inline-block;\n vertical-align: top;\n /* stylelint-disable-next-line csstree/validator */\n text-wrap: none;\n}\n\n.jp-GhostText-letterSpacer {\n max-width: 0;\n}\n\n.jp-GhostText-lineSpacer {\n /* duration and delay are overwritten by inline styles */\n animation: jp-GhostText-hide 300ms 700ms ease-out forwards;\n}\n\n@keyframes jp-GhostText-hide {\n 0% {\n font-size: unset;\n }\n\n 100% {\n font-size: 0;\n }\n}\n\n.jp-GhostText-expandHidden {\n border: 1px solid var(--jp-border-color0);\n border-radius: var(--jp-border-radius);\n background: var(--jp-layout-color0);\n color: var(--jp-content-font-color3);\n padding: 0 4px;\n margin: 0 4px;\n cursor: default;\n}\n\n.jp-GhostText-hiddenWrapper:hover > .jp-GhostText-hiddenLines {\n display: inline;\n}\n\n.jp-GhostText-hiddenLines {\n display: none;\n}\n\n.jp-GhostText[data-animation='uncover'] {\n position: relative;\n}\n\n.jp-GhostText-streamedToken {\n white-space: pre;\n}\n\n.jp-GhostText[data-animation='uncover'] > .jp-GhostText-streamedToken {\n animation: jp-GhostText-typing 2s forwards;\n display: inline-flex;\n overflow: hidden;\n}\n\n@keyframes jp-GhostText-typing {\n from {\n max-width: 0;\n }\n\n to {\n max-width: 100%;\n }\n}\n\n.jp-GhostText-streamingIndicator::after {\n animation: jp-GhostText-streaming 2s infinite;\n animation-delay: 400ms;\n content: ' ';\n background: var(--jp-layout-color4);\n opacity: 0.2;\n}\n\n@keyframes jp-GhostText-streaming {\n 0% {\n opacity: 0.2;\n }\n\n 20% {\n opacity: 0.4;\n }\n\n 40% {\n opacity: 0.2;\n }\n}\n\n.jp-GhostText-errorIndicator::after {\n animation: jp-GhostText-error 500ms 1;\n animation-delay: 3500ms;\n color: var(--jp-error-color1);\n font-size: 150%;\n line-height: 10px;\n margin-left: 2px;\n padding: 0 4px;\n content: '⚠';\n cursor: help;\n position: relative;\n top: 2px;\n}\n\n@keyframes jp-GhostText-error {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n}\n\n.jp-InlineCompleter {\n box-shadow: var(--jp-elevation-z2);\n background: var(--jp-layout-color1);\n color: var(--jp-content-font-color1);\n border: var(--jp-border-width) solid var(--jp-border-color1);\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 0 8px;\n}\n\n.jp-InlineCompleter-progressBar {\n height: 2px;\n position: absolute;\n top: 0;\n left: 0;\n background-color: var(--jp-accent-color2);\n}\n\n.jp-InlineCompleter[data-display='onHover'] {\n opacity: 0;\n transition:\n visibility 0s linear 0.1s,\n opacity 0.1s linear;\n visibility: hidden;\n}\n\n.jp-InlineCompleter[data-display='onHover']:hover,\n.jp-InlineCompleter-hover[data-display='onHover'] {\n opacity: 1;\n visibility: visible;\n transition-delay: 0s;\n}\n\n.jp-InlineCompleter[data-display='never'] {\n display: none;\n}\n\n.jp-InlineCompleter > .jp-Toolbar {\n box-shadow: none;\n border-bottom: none;\n background: none;\n}\n\n.jp-InlineCompleter[data-show-shortcuts='false']\n .jp-ToolbarButtonComponent-label {\n display: none;\n}\n\n.jp-InlineCompleter [data-command='inline-completer:next'] > svg,\n.jp-InlineCompleter [data-command='inline-completer:previous'] > svg {\n scale: 1.5;\n}\n",""]);const l=a},19961:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/* Toolbar menu to select the prompt cell position */\n.jp-CodeConsolePromptMenu {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n\n.jp-CodeConsolePromptMenu .lm-Menu-itemIcon > svg {\n vertical-align: sub;\n}\n",""]);const l=a},16513:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-ConsolePanel {\n display: flex;\n margin-top: -1px;\n min-width: 240px;\n min-height: 120px;\n}\n\n.jp-CodeConsole {\n height: 100%;\n padding: 0;\n display: flex;\n}\n\n.jp-CodeConsole .jp-Cell {\n padding: var(--jp-cell-padding);\n}\n\n/*-----------------------------------------------------------------------------\n| Content (already run cells)\n|----------------------------------------------------------------------------*/\n\n.jp-CodeConsole-content {\n background: var(--jp-layout-color0);\n overflow: auto;\n padding: 0 var(--jp-console-padding);\n min-width: calc(10 * var(--jp-ui-font-size1));\n min-height: calc(5 * var(--jp-ui-font-size1));\n}\n\n.jp-CodeConsole-content .jp-Cell:not(.jp-mod-active) .jp-InputPrompt {\n opacity: var(--jp-cell-prompt-not-active-opacity);\n color: var(--jp-cell-inprompt-font-color);\n cursor: move;\n}\n\n.jp-CodeConsole-content .jp-Cell:not(.jp-mod-active) .jp-OutputPrompt {\n opacity: var(--jp-cell-prompt-not-active-opacity);\n color: var(--jp-cell-outprompt-font-color);\n}\n\n/* This rule is for styling cell run by another activity in this console */\n\n/* .jp-CodeConsole-content .jp-Cell.jp-CodeConsole-foreignCell {\n} */\n\n.jp-CodeConsole-content .jp-InputArea-editor.jp-InputArea-editor {\n background: transparent;\n border: 1px solid transparent;\n}\n\n.jp-CodeConsole-content .jp-CodeConsole-banner .jp-InputPrompt {\n display: none;\n}\n\n/* collapser is hovered */\n.jp-CodeConsole-content .jp-Cell .jp-Collapser:hover {\n box-shadow: var(--jp-elevation-z2);\n background: var(--jp-brand-color1);\n opacity: var(--jp-cell-collapser-not-active-hover-opacity);\n}\n\n/*-----------------------------------------------------------------------------\n| Input/prompt cell\n|----------------------------------------------------------------------------*/\n\n.jp-CodeConsole-input {\n overflow: auto;\n padding: var(--jp-cell-padding) var(--jp-console-padding);\n\n /* This matches the box shadow on the notebook toolbar, eventually we should create\n * CSS variables for this */\n box-shadow: 0 0.4px 6px 0 rgba(0, 0, 0, 0.1);\n background: var(--jp-layout-color0);\n min-width: calc(10 * var(--jp-ui-font-size1));\n min-height: calc(4 * var(--jp-ui-font-size1));\n}\n\n.jp-CodeConsole-input .jp-CodeConsole-prompt .jp-InputArea {\n height: 100%;\n min-height: 100%;\n}\n\n.jp-CodeConsole-promptCell .jp-InputArea-editor.jp-mod-focused {\n border: var(--jp-border-width) solid var(--jp-cell-editor-active-border-color);\n box-shadow: var(--jp-input-box-shadow);\n background-color: var(--jp-cell-editor-active-background);\n}\n\n/*-----------------------------------------------------------------------------\n| Presentation Mode (.jp-mod-presentationMode)\n|----------------------------------------------------------------------------*/\n\n.jp-mod-presentationMode .jp-CodeConsole {\n --jp-content-font-size1: var(--jp-content-presentation-font-size1);\n --jp-code-font-size: var(--jp-code-presentation-font-size);\n}\n\n.jp-mod-presentationMode .jp-CodeConsole .jp-Cell .jp-InputPrompt,\n.jp-mod-presentationMode .jp-CodeConsole .jp-Cell .jp-OutputPrompt {\n flex: 0 0 110px;\n}\n\n/*-----------------------------------------------------------------------------\n| Split Panel Container\n|----------------------------------------------------------------------------*/\n.jp-CodeConsole-split {\n display: flex;\n height: 100%;\n width: 100%;\n overflow: hidden;\n}\n\n.jp-CodeConsole-split.lm-SplitPanel .lm-SplitPanel-handle::after {\n background-color: var(--jp-border-color2);\n min-height: calc(2 * var(--jp-border-width));\n min-width: calc(2 * var(--jp-border-width));\n}\n\n/*-----------------------------------------------------------------------------\n| Mobile\n|----------------------------------------------------------------------------*/\n@media only screen and (width <= 760px) {\n .jp-CodeConsole-input {\n min-height: calc(6 * var(--jp-ui-font-size1));\n }\n}\n",""]);const l=a},40538:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-CSVViewer {\n display: flex;\n flex-direction: column;\n outline: none;\n\n /* This is needed so that all font sizing of children done in ems is\n * relative to this base size */\n font-size: var(--jp-ui-font-size1);\n}\n\n.jp-CSVDelimiter {\n display: flex;\n flex: 0 0 auto;\n flex-direction: row;\n border: none;\n min-height: 24px;\n background: var(--jp-toolbar-background);\n z-index: 1;\n}\n\n.jp-CSVDelimiter .jp-CSVDelimiter-label {\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n padding-left: 8px;\n padding-right: 8px;\n}\n\n.jp-CSVDelimiter .jp-CSVDelimiter-dropdown {\n flex: 0 0 auto;\n vertical-align: middle;\n border-radius: 0;\n outline: none;\n height: 20px;\n margin-top: 2px;\n margin-bottom: 2px;\n}\n\n.jp-CSVDelimiter .jp-CSVDelimiter-dropdown select.jp-mod-styled {\n color: var(--jp-ui-font-color1);\n background: var(--jp-layout-color1);\n font-size: var(--jp-ui-font-size1);\n height: 20px;\n padding-right: 20px;\n}\n\n.jp-CSVViewer-grid {\n flex: 1 1 auto;\n}\n",""]);const l=a},1597:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=n(21584);var l=n(41076);var d=n(26933);var c=n(41575);var h=n(16204);var u=n(52498);var p=n(11919);var m=r()(s());m.i(a.A);m.i(l.A);m.i(d.A);m.i(c.A);m.i(h.A);m.i(u.A);m.i(p.A);m.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-left-truncated {\n overflow: hidden;\n text-overflow: ellipsis;\n direction: rtl;\n}\n\n#jp-debugger .jp-switch-label {\n margin-right: 0;\n}\n\n.jp-DebuggerBugButton[aria-pressed='true'] {\n /* Undo default toolkit style */\n box-shadow: none;\n}\n\n.jp-DebuggerBugButton[aria-pressed='true'] path {\n fill: var(--jp-warn-color0);\n}\n",""]);const g=m},21584:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-DebuggerBreakpoints {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n padding-top: 3px;\n}\n\n.jp-DebuggerBreakpoints-body {\n padding: 10px;\n overflow: auto;\n}\n\n.jp-DebuggerBreakpoint {\n display: flex;\n align-items: center;\n}\n\n.jp-DebuggerBreakpoint:hover {\n background: var(--jp-layout-color2);\n cursor: pointer;\n}\n\n.jp-DebuggerBreakpoint-marker {\n font-size: 20px;\n padding-right: 5px;\n content: '●';\n color: var(--jp-error-color1);\n}\n\n.jp-DebuggerBreakpoint-source {\n white-space: nowrap;\n margin-right: 5px;\n}\n\n.jp-DebuggerBreakpoint-line {\n margin-left: auto;\n}\n\n.jp-DebuggerCallstackFrame {\n display: flex;\n align-items: center;\n}\n\n.jp-DebuggerCallstackFrame-name {\n white-space: nowrap;\n margin-right: 5px;\n}\n\n.jp-DebuggerCallstackFrame-location {\n margin-left: auto;\n}\n\n[data-jp-debugger='true'] .cm-breakpoint-gutter .cm-gutterElement:empty::after {\n content: '●';\n color: var(--jp-error-color1);\n opacity: 0;\n}\n\n.cm-gutter {\n cursor: default;\n}\n\n.cm-breakpoint-gutter .cm-gutterElement {\n color: var(--jp-error-color1);\n padding-left: 5px;\n font-size: 20px;\n position: relative;\n top: -5px;\n}\n\n[data-jp-debugger='true'].jp-Editor\n .cm-breakpoint-gutter\n .cm-gutterElement:empty:hover::after,\n[data-jp-debugger='true']\n .jp-Notebook\n .jp-CodeCell.jp-mod-selected\n .cm-breakpoint-gutter:empty:hover::after,\n[data-jp-debugger='true']\n .jp-Editor\n .cm-breakpoint-gutter\n .cm-gutterElement:empty:hover::after {\n opacity: 0.5;\n}\n",""]);const l=a},41076:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-DebuggerCallstack {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n padding-top: 3px;\n}\n\n.jp-DebuggerCallstack-body {\n overflow: auto;\n}\n\n.jp-DebuggerCallstack-body ul {\n list-style: none;\n margin: 0;\n padding: 0;\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n}\n\n.jp-DebuggerCallstack-body li {\n padding: 5px;\n padding-left: 8px;\n}\n\n.jp-DebuggerCallstack-body li.selected {\n color: white;\n background: var(--jp-brand-color1);\n}\n\n.jp-DebuggerCallstack .jp-ToolbarButtonComponent-label {\n display: none;\n}\n",""]);const l=a},26933:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-DebuggerEditor-highlight {\n text-shadow: 0 0 1px var(--jp-layout-color0);\n outline: 1px solid;\n}\n\nbody[data-jp-theme-light='false'] .jp-DebuggerEditor-highlight {\n background-color: var(--md-brown-800, #4e342e);\n outline-color: var(--md-brown-600, #6d4c41);\n}\n\nbody[data-jp-theme-light='true'] .jp-DebuggerEditor-highlight {\n background-color: var(--md-brown-100, #d7ccc8);\n outline-color: var(--md-brown-300, #a1887f);\n}\n\n.jp-DebuggerEditor-marker {\n position: absolute;\n left: -34px;\n top: -1px;\n color: var(--jp-error-color1);\n}\n",""]);const l=a},41575:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-DebuggerKernelSources {\n min-height: 50px;\n margin-top: 3px;\n}\n\n[data-jp-debugger='true'].jp-Editor .jp-mod-readOnly {\n background: var(--jp-layout-color2);\n height: 100%;\n}\n\n.jp-DebuggerKernelSources-body [data-jp-debugger='true'].jp-Editor {\n height: 100%;\n}\n\n.jp-DebuggerKernelSources-body {\n height: 100%;\n overflow-y: auto;\n}\n\n.jp-DebuggerKernelSource-filterBox {\n padding: 0;\n flex: 0 0 auto;\n margin: 0;\n position: sticky;\n top: 0;\n background-color: var(--jp-layout-color1);\n}\n\n.jp-DebuggerKernelSource-filterBox-hidden {\n display: none;\n}\n\n.jp-DebuggerKernelSource-source {\n display: flex;\n align-items: center;\n padding: 4px;\n cursor: pointer;\n}\n\n.jp-DebuggerKernelSource-source:hover {\n background-color: var(--jp-layout-color2);\n}\n\n.jp-DebuggerKernelSource-source > svg {\n height: 16px;\n width: 16px;\n}\n",""]);const l=a},16204:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-SidePanel-header > h2 {\n /* Set font-size to override default h2 sizing but keeping default --jp-ui-font-size0 */\n font-size: 100%;\n font-weight: 600;\n margin: 0 auto 0 0;\n padding: 4px 10px;\n}\n\n.jp-DebuggerSidebar-body\n .jp-AccordionPanel-title\n jp-toolbar::part(positioning-region) {\n flex-wrap: nowrap;\n}\n",""]);const l=a},52498:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-DebuggerSources {\n min-height: 50px;\n margin-top: 3px;\n}\n\n[data-jp-debugger='true'].jp-Editor .jp-mod-readOnly {\n background: var(--jp-layout-color2);\n height: 100%;\n}\n\n.jp-DebuggerSources-body [data-jp-debugger='true'].jp-Editor {\n height: 100%;\n}\n\n.jp-DebuggerSources-body {\n height: 100%;\n}\n\n.jp-DebuggerSources-header-path {\n overflow: hidden;\n cursor: pointer;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: var(--jp-ui-font-size0);\n color: var(--jp-ui-font-color1);\n user-select: text;\n}\n",""]);const l=a},11919:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-DebuggerVariables {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n padding-top: 3px;\n}\n\n.jp-DebuggerVariables-body {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n min-height: 24px;\n overflow: auto;\n\n /* For absolute positioning of jp-DebuggerVariables-buttons. */\n position: relative;\n}\n\n.jp-DebuggerVariables-name {\n color: var(--jp-mirror-editor-attribute-color);\n grid-area: name;\n}\n\n.jp-DebuggerVariables-name:last-of-type {\n flex: 1 1 auto;\n}\n\n.jp-DebuggerVariables-name::after {\n content: ':';\n margin-right: 5px;\n}\n\n.jp-DebuggerVariables-detail {\n /* detail contains value for primitive types or name of the type otherwise */\n color: var(--jp-mirror-editor-string-color);\n flex: 1 1 auto;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.jp-DebuggerVariables-grid {\n flex: 1 1 auto;\n}\n\n.jp-DebuggerVariables-grid .lm-DataGrid {\n border: none;\n}\n\n.jp-DebuggerVariables-colorPalette {\n visibility: hidden;\n z-index: -999;\n position: absolute;\n left: -999px;\n top: -999px;\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-void {\n color: var(--jp-layout-color1);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-background {\n color: var(--jp-rendermime-table-row-background);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-header-background {\n color: var(--jp-layout-color2);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-grid-line {\n color: var(--jp-border-color3);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-header-grid-line {\n color: var(--jp-border-color3);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-selection {\n /* TODO: Fix JupyterLab light theme (alpha) so this can be a variable. */\n color: rgba(3, 169, 244, 0.2);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-text {\n color: var(--jp-content-font-color0);\n}\n\n.jp-VariableRendererPanel {\n overflow: auto;\n}\n\n.jp-VariableRendererPanel-renderer {\n overflow: auto;\n height: 100%;\n}\n\n.jp-VariableRenderer-TrustButton[aria-pressed='true'] {\n box-shadow: inset 0 var(--jp-border-width) 4px\n rgba(\n var(--jp-shadow-base-lightness),\n var(--jp-shadow-base-lightness),\n var(--jp-shadow-base-lightness),\n 0.6\n );\n}\n\n.jp-DebuggerRichVariable div[data-mime-type='text/plain'] > pre {\n white-space: normal;\n}\n",""]);const l=a},79993:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-MimeDocument {\n outline: none;\n}\n",""]);const l=a},20939:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(31601);var s=n.n(i);var o=n(76314);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n.jp-DocumentSearch-input {\n border: none;\n outline: none;\n color: var(--jp-ui-font-color0);\n font-size: var(--jp-ui-font-size1);\n background-color: var(--jp-layout-color0);\n font-family: var(--jp-ui-font-family);\n padding: 2px 1px;\n resize: none;\n white-space: pre;\n}\n\n.jp-DocumentSearch-overlay {\n position: absolute;\n background-color: var(--jp-toolbar-background);\n border-bottom: var(--jp-border-width) solid var(--jp-toolbar-border-color);\n border-left: var(--jp-border-width) solid var(--jp-toolbar-border-color);\n top: 0;\n right: 0;\n z-index: 7;\n min-width: 405px;\n padding: 2px;\n font-size: var(--jp-ui-font-size1);\n\n --jp-private-document-search-button-height: 20px;\n}\n\n.jp-DocumentSearch-overlay button {\n background-color: var(--jp-toolbar-background);\n outline: 0;\n}\n\n.jp-DocumentSearch-button-wrapper:disabled > .jp-DocumentSearch-button-content {\n opacity: 0.6;\n cursor: not-allowed;\n}\n\n.jp-DocumentSearch-overlay button:not(:disabled):hover {\n background-color: var(--jp-layout-color2);\n}\n\n.jp-DocumentSearch-overlay button:not(:disabled):active {\n background-color: var(--jp-layout-color3);\n}\n\n.jp-DocumentSearch-overlay-row {\n display: flex;\n align-items: center;\n margin-bottom: 2px;\n}\n\n.jp-DocumentSearch-button-content {\n display: inline-block;\n cursor: pointer;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n}\n\n.jp-DocumentSearch-button-content svg {\n width: 100%;\n height: 100%;\n}\n\n.jp-DocumentSearch-input-wrapper {\n border: var(--jp-border-width) solid var(--jp-border-color0);\n display: flex;\n background-color: var(--jp-layout-color0);\n margin: 2px;\n}\n\n.jp-DocumentSearch-input-wrapper:focus-within {\n border-color: var(--jp-cell-editor-active-border-color);\n}\n\n.jp-DocumentSearch-toggle-wrapper,\n.jp-DocumentSearch-button-wrapper {\n all: initial;\n overflow: hidden;\n display: inline-block;\n border: none;\n box-sizing: border-box;\n}\n\n.jp-DocumentSearch-toggle-wrapper {\n flex-shrink: 0;\n width: 14px;\n height: 14px;\n}\n\n.jp-DocumentSearch-button-wrapper {\n flex-shrink: 0;\n width: var(--jp-private-document-search-button-height);\n height: var(--jp-private-document-search-button-height);\n}\n\n.jp-DocumentSearch-toggle-wrapper:focus,\n.jp-DocumentSearch-button-wrapper:focus {\n outline: var(--jp-border-width) solid\n var(--jp-cell-editor-active-border-color);\n outline-offset: -1px;\n}\n\n.jp-DocumentSearch-toggle-wrapper,\n.jp-DocumentSearch-button-wrapper,\n.jp-DocumentSearch-button-content:focus {\n outline: none;\n}\n\n.jp-DocumentSearch-toggle-placeholder {\n width: 5px;\n}\n\n.jp-DocumentSearch-input-button::before {\n display: block;\n padding-top: 100%;\n}\n\n.jp-DocumentSearch-input-button-off {\n opacity: var(--jp-search-toggle-off-opacity);\n}\n\n.jp-DocumentSearch-input-button-off:hover {\n opacity: var(--jp-search-toggle-hover-opacity);\n}\n\n.jp-DocumentSearch-input-button-on {\n opacity: var(--jp-search-toggle-on-opacity);\n}\n\n.jp-DocumentSearch-index-counter {\n padding-left: 10px;\n padding-right: 10px;\n user-select: none;\n min-width: 35px;\n display: inline-block;\n}\n\n.jp-DocumentSearch-up-down-wrapper {\n display: inline-block;\n padding-right: 2px;\n margin-left: auto;\n white-space: nowrap;\n}\n\n.jp-DocumentSearch-spacer {\n margin-left: auto;\n}\n\n.jp-DocumentSearch-up-down-wrapper button {\n outline: 0;\n border: none;\n width: var(--jp-private-document-search-button-height);\n height: var(--jp-private-document-search-button-height);\n vertical-align: middle;\n margin: 1px 5px 2px;\n}\n\nbutton:not(:disabled) > .jp-DocumentSearch-up-down-button:hover {\n background-color: var(--jp-layout-color2);\n}\n\nbutton:not(:disabled) > .jp-DocumentSearch-up-down-button:active {\n background-color: var(--jp-layout-color3);\n}\n\n.jp-DocumentSearch-filter-button {\n border-radius: var(--jp-border-radius);\n}\n\n.jp-DocumentSearch-filter-button:hover {\n background-color: var(--jp-layout-color2);\n}\n\n.jp-DocumentSearch-filter-button-enabled {\n background-color: var(--jp-layout-color2);\n}\n\n.jp-DocumentSearch-filter-button-enabled:hover {\n background-color: var(--jp-layout-color3);\n}\n\n.jp-DocumentSearch-search-options {\n padding: 0 8px;\n margin-left: 3px;\n width: 100%;\n display: grid;\n justify-content: start;\n grid-template-columns: 1fr 1fr;\n align-items: center;\n justify-items: stretch;\n}\n\n.jp-DocumentSearch-search-filter-disabled {\n color: var(--jp-ui-font-color2);\n}\n\n.jp-DocumentSearch-search-filter {\n display: flex;\n align-items: center;\n user-select: none;\n}\n\n.jp-DocumentSearch-regex-error {\n color: var(--jp-error-color0);\n}\n\n.jp-DocumentSearch-replace-button-wrapper {\n overflow: hidden;\n display: inline-block;\n box-sizing: border-box;\n border: var(--jp-border-width) solid var(--jp-border-color0);\n margin: auto 2px;\n padding: 1px 4px;\n height: calc(var(--jp-private-document-search-button-height) + 2px);\n flex-shrink: 0;\n}\n\n.jp-DocumentSearch-replace-button-wrapper:focus {\n border: var(--jp-border-width) solid var(--jp-cell-editor-active-border-color);\n}\n\n.jp-DocumentSearch-replace-button {\n display: inline-block;\n text-align: center;\n cursor: pointer;\n box-sizing: border-box;\n color: var(--jp-ui-font-color1);\n\n /* height - 2 * (padding of wrapper) */\n line-height: calc(var(--jp-private-document-search-button-height) - 2px);\n width: 100%;\n height: 100%;\n}\n\n.jp-DocumentSearch-replace-button:focus {\n outline: none;\n}\n\n.jp-DocumentSearch-replace-wrapper-class {\n margin-left: 14px;\n display: flex;\n}\n\n.jp-DocumentSearch-replace-toggle {\n border: none;\n background-color: var(--jp-toolbar-background);\n border-radius: var(--jp-border-radius);\n}\n\n.jp-DocumentSearch-replace-toggle:hover {\n background-color: var(--jp-layout-color2);\n}\n\n/*\n The following few rules allow the search box to expand horizontally,\n as the text within it grows. This is done by using putting\n the text within a wrapper element and using that wrapper for sizing,\n as