@hpcc-js/graph 2.75.0 → 2.79.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/graphvizlib.wasm +0 -0
- package/dist/index.es6.js +8 -10
- package/dist/index.es6.js.map +1 -1
- package/dist/index.js +8 -10
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +14 -30
- package/src/Graph.ts +1 -1
- package/src/GraphData.ts +6 -4
- package/src/Vertex.ts +1 -1
- package/src/__package__.ts +2 -2
- package/src/graph2/graph.ts +1 -3
- package/src/graph2/layouts/dagreWorker.ts +8 -1
- package/src/graph2/layouts/graphviz.ts +0 -2
- package/src/graph2/layouts/graphvizWorker.ts +2 -2
- package/types/GraphData.d.ts +6 -3
- package/types/GraphData.d.ts.map +1 -1
- package/types/__package__.d.ts +2 -2
- package/types/__package__.d.ts.map +1 -1
- package/types/graph2/graph.d.ts.map +1 -1
- package/types/graph2/layouts/dagreWorker.d.ts.map +1 -1
- package/types/graph2/layouts/graphviz.d.ts.map +1 -1
- package/types-3.4/GraphData.d.ts +6 -3
- package/types-3.4/__package__.d.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
})(this, (function (exports, common, util$b, api, react, html) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var PKG_NAME = "@hpcc-js/graph";
|
|
8
|
-
var PKG_VERSION = "2.
|
|
9
|
-
var BUILD_VERSION = "2.
|
|
8
|
+
var PKG_VERSION = "2.79.1";
|
|
9
|
+
var BUILD_VERSION = "2.102.4";
|
|
10
10
|
|
|
11
11
|
/*! *****************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
@@ -3804,7 +3804,7 @@
|
|
|
3804
3804
|
});
|
|
3805
3805
|
this
|
|
3806
3806
|
.filterEdges(function (item) { return edgeIDs_1.indexOf(item.name) < 0; })
|
|
3807
|
-
.forEach(function (item) { return _this._g.removeEdge(item.v, item.w
|
|
3807
|
+
.forEach(function (item) { return _this._g.removeEdge(item.v, item.w); });
|
|
3808
3808
|
var vertexIDs_1 = allVertices.map(function (item) {
|
|
3809
3809
|
return item._id;
|
|
3810
3810
|
});
|
|
@@ -5275,7 +5275,7 @@
|
|
|
5275
5275
|
if (annotationWidget[key]) {
|
|
5276
5276
|
annotationWidget[key](d[key]);
|
|
5277
5277
|
}
|
|
5278
|
-
else if (
|
|
5278
|
+
else if (globalThis.__hpcc_debug) {
|
|
5279
5279
|
console.log("Invalid annotation property: " + key);
|
|
5280
5280
|
}
|
|
5281
5281
|
}
|
|
@@ -5928,7 +5928,7 @@
|
|
|
5928
5928
|
_this.forceLayout = null;
|
|
5929
5929
|
context._dragging = true;
|
|
5930
5930
|
context._graphData.nodes().forEach(function (item) {
|
|
5931
|
-
var pos = layoutEngine.nodePos(item.
|
|
5931
|
+
var pos = layoutEngine.nodePos(item.id());
|
|
5932
5932
|
if (item instanceof Graph.Subgraph) {
|
|
5933
5933
|
item
|
|
5934
5934
|
.pos({ x: pos.x, y: pos.y })
|
|
@@ -7137,7 +7137,7 @@
|
|
|
7137
7137
|
|
|
7138
7138
|
function dagre(data, options) {
|
|
7139
7139
|
// eslint-disable-next-line quotes
|
|
7140
|
-
var workerCode = "!function(){\"use strict\";var e,n=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:{};try{e=require(\"graphlib\")}catch(e){}e||(e=window.graphlib);var r,t=e;try{r={cloneDeep:require(\"lodash/cloneDeep\"),constant:require(\"lodash/constant\"),defaults:require(\"lodash/defaults\"),each:require(\"lodash/each\"),filter:require(\"lodash/filter\"),find:require(\"lodash/find\"),flatten:require(\"lodash/flatten\"),forEach:require(\"lodash/forEach\"),forIn:require(\"lodash/forIn\"),has:require(\"lodash/has\"),isUndefined:require(\"lodash/isUndefined\"),last:require(\"lodash/last\"),map:require(\"lodash/map\"),mapValues:require(\"lodash/mapValues\"),max:require(\"lodash/max\"),merge:require(\"lodash/merge\"),min:require(\"lodash/min\"),minBy:require(\"lodash/minBy\"),now:require(\"lodash/now\"),pick:require(\"lodash/pick\"),range:require(\"lodash/range\"),reduce:require(\"lodash/reduce\"),sortBy:require(\"lodash/sortBy\"),uniqueId:require(\"lodash/uniqueId\"),values:require(\"lodash/values\"),zipObject:require(\"lodash/zipObject\")}}catch(e){}r||(r=window._);var o=r,i=a;function a(){var e={};e._next=e._prev=e,this._sentinel=e}function u(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function c(e,n){if(\"_next\"!==e&&\"_prev\"!==e)return n}a.prototype.dequeue=function(){var e=this._sentinel,n=e._prev;if(n!==e)return u(n),n},a.prototype.enqueue=function(e){var n=this._sentinel;e._prev&&e._next&&u(e),e._next=n._next,n._next._prev=e,n._next=e,e._prev=n},a.prototype.toString=function(){for(var e=[],n=this._sentinel,r=n._prev;r!==n;)e.push(JSON.stringify(r,c)),r=r._prev;return\"[\"+e.join(\", \")+\"]\"};var s=o,f=t.Graph,d=i,h=function(e,n){if(e.nodeCount()<=1)return[];var r=function(e,n){var r=new f,t=0,o=0;s.forEach(e.nodes(),(function(e){r.setNode(e,{v:e,in:0,out:0})})),s.forEach(e.edges(),(function(e){var i=r.edge(e.v,e.w)||0,a=n(e),u=i+a;r.setEdge(e.v,e.w,u),o=Math.max(o,r.node(e.v).out+=a),t=Math.max(t,r.node(e.w).in+=a)}));var i=s.range(o+t+3).map((function(){return new d})),a=t+1;return s.forEach(r.nodes(),(function(e){g(i,a,r.node(e))})),{graph:r,buckets:i,zeroIdx:a}}(e,n||l),t=function(e,n,r){var t,o=[],i=n[n.length-1],a=n[0];for(;e.nodeCount();){for(;t=a.dequeue();)v(e,n,r,t);for(;t=i.dequeue();)v(e,n,r,t);if(e.nodeCount())for(var u=n.length-2;u>0;--u)if(t=n[u].dequeue()){o=o.concat(v(e,n,r,t,!0));break}}return o}(r.graph,r.buckets,r.zeroIdx);return s.flatten(s.map(t,(function(n){return e.outEdges(n.v,n.w)})),!0)},l=s.constant(1);function v(e,n,r,t,o){var i=o?[]:void 0;return s.forEach(e.inEdges(t.v),(function(t){var a=e.edge(t),u=e.node(t.v);o&&i.push({v:t.v,w:t.w}),u.out-=a,g(n,r,u)})),s.forEach(e.outEdges(t.v),(function(t){var o=e.edge(t),i=t.w,a=e.node(i);a.in-=o,g(n,r,a)})),e.removeNode(t.v),i}function g(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}var p=o,m=h,w={run:function(e){var n=\"greedy\"===e.graph().acyclicer?m(e,function(e){return function(n){return e.edge(n).weight}}(e)):function(e){var n=[],r={},t={};function o(i){p.has(t,i)||(t[i]=!0,r[i]=!0,p.forEach(e.outEdges(i),(function(e){p.has(r,e.w)?n.push(e):o(e.w)})),delete r[i])}return p.forEach(e.nodes(),o),n}(e);p.forEach(n,(function(n){var r=e.edge(n);e.removeEdge(n),r.forwardName=n.name,r.reversed=!0,e.setEdge(n.w,n.v,r,p.uniqueId(\"rev\"))}))},undo:function(e){p.forEach(e.edges(),(function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}}))}};var E=o,y=t.Graph,b={addDummyNode:_,simplify:function(e){var n=(new y).setGraph(e.graph());return E.forEach(e.nodes(),(function(r){n.setNode(r,e.node(r))})),E.forEach(e.edges(),(function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},o=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+o.weight,minlen:Math.max(t.minlen,o.minlen)})})),n},asNonCompoundGraph:function(e){var n=new y({multigraph:e.isMultigraph()}).setGraph(e.graph());return E.forEach(e.nodes(),(function(r){e.children(r).length||n.setNode(r,e.node(r))})),E.forEach(e.edges(),(function(r){n.setEdge(r,e.edge(r))})),n},successorWeights:function(e){var n=E.map(e.nodes(),(function(n){var r={};return E.forEach(e.outEdges(n),(function(n){r[n.w]=(r[n.w]||0)+e.edge(n).weight})),r}));return E.zipObject(e.nodes(),n)},predecessorWeights:function(e){var n=E.map(e.nodes(),(function(n){var r={};return E.forEach(e.inEdges(n),(function(n){r[n.v]=(r[n.v]||0)+e.edge(n).weight})),r}));return E.zipObject(e.nodes(),n)},intersectRect:function(e,n){var r,t,o=e.x,i=e.y,a=n.x-o,u=n.y-i,c=e.width/2,s=e.height/2;if(!a&&!u)throw new Error(\"Not possible to find intersection inside of the rectangle\");Math.abs(u)*c>Math.abs(a)*s?(u<0&&(s=-s),r=s*a/u,t=s):(a<0&&(c=-c),r=c,t=c*u/a);return{x:o+r,y:i+t}},buildLayerMatrix:function(e){var n=E.map(E.range(x(e)+1),(function(){return[]}));return E.forEach(e.nodes(),(function(r){var t=e.node(r),o=t.rank;E.isUndefined(o)||(n[o][t.order]=r)})),n},normalizeRanks:function(e){var n=E.min(E.map(e.nodes(),(function(n){return e.node(n).rank})));E.forEach(e.nodes(),(function(r){var t=e.node(r);E.has(t,\"rank\")&&(t.rank-=n)}))},removeEmptyRanks:function(e){var n=E.min(E.map(e.nodes(),(function(n){return e.node(n).rank}))),r=[];E.forEach(e.nodes(),(function(t){var o=e.node(t).rank-n;r[o]||(r[o]=[]),r[o].push(t)}));var t=0,o=e.graph().nodeRankFactor;E.forEach(r,(function(n,r){E.isUndefined(n)&&r%o!=0?--t:t&&E.forEach(n,(function(n){e.node(n).rank+=t}))}))},addBorderNode:function(e,n,r,t){var o={width:0,height:0};arguments.length>=4&&(o.rank=r,o.order=t);return _(e,\"border\",o,n)},maxRank:x,partition:function(e,n){var r={lhs:[],rhs:[]};return E.forEach(e,(function(e){n(e)?r.lhs.push(e):r.rhs.push(e)})),r},time:function(e,n){var r=E.now();try{return n()}finally{console.log(e+\" time: \"+(E.now()-r)+\"ms\")}},notime:function(e,n){return n()}};function _(e,n,r,t){var o;do{o=E.uniqueId(t)}while(e.hasNode(o));return r.dummy=n,e.setNode(o,r),o}function x(e){return E.max(E.map(e.nodes(),(function(n){var r=e.node(n).rank;if(!E.isUndefined(r))return r})))}var k=o,N=b,I={run:function(e){e.graph().dummyChains=[],k.forEach(e.edges(),(function(n){!function(e,n){var r,t,o,i=n.v,a=e.node(i).rank,u=n.w,c=e.node(u).rank,s=n.name,f=e.edge(n),d=f.labelRank;if(c===a+1)return;for(e.removeEdge(n),o=0,++a;a<c;++o,++a)f.points=[],t={width:0,height:0,edgeLabel:f,edgeObj:n,rank:a},r=N.addDummyNode(e,\"edge\",t,\"_d\"),a===d&&(t.width=f.width,t.height=f.height,t.dummy=\"edge-label\",t.labelpos=f.labelpos),e.setEdge(i,r,{weight:f.weight},s),0===o&&e.graph().dummyChains.push(r),i=r;e.setEdge(i,u,{weight:f.weight},s)}(e,n)}))},undo:function(e){k.forEach(e.graph().dummyChains,(function(n){var r,t=e.node(n),o=t.edgeLabel;for(e.setEdge(t.edgeObj,o);t.dummy;)r=e.successors(n)[0],e.removeNode(n),o.points.push({x:t.x,y:t.y}),\"edge-label\"===t.dummy&&(o.x=t.x,o.y=t.y,o.width=t.width,o.height=t.height),n=r,t=e.node(n)}))}};var q=o,M={longestPath:function(e){var n={};q.forEach(e.sources(),(function r(t){var o=e.node(t);if(q.has(n,t))return o.rank;n[t]=!0;var i=q.min(q.map(e.outEdges(t),(function(n){return r(n.w)-e.edge(n).minlen})));return i!==Number.POSITIVE_INFINITY&&null!=i||(i=0),o.rank=i}))},slack:function(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}};var T=o,R=t.Graph,L=M.slack,C=function(e){var n,r,t=new R({directed:!1}),o=e.nodes()[0],i=e.nodeCount();t.setNode(o,{});for(;P(t,e)<i;)n=S(t,e),r=t.hasNode(n.v)?L(e,n):-L(e,n),B(t,e,r);return t};function P(e,n){return T.forEach(e.nodes(),(function r(t){T.forEach(n.nodeEdges(t),(function(o){var i=o.v,a=t===i?o.w:i;e.hasNode(a)||L(n,o)||(e.setNode(a,{}),e.setEdge(t,a,{}),r(a))}))})),e.nodeCount()}function S(e,n){return T.minBy(n.edges(),(function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return L(n,r)}))}function B(e,n,r){T.forEach(e.nodes(),(function(e){n.node(e).rank+=r}))}var G=o,j=C,O=M.slack,A=M.longestPath,V=t.alg.preorder,D=t.alg.postorder,F=b.simplify,U=z;function z(e){e=F(e),A(e);var n,r=j(e);for(J(r),Y(r,e);n=H(r);)X(r,e,n,Q(r,e,n))}function Y(e,n){var r=D(e,e.nodes());r=r.slice(0,r.length-1),G.forEach(r,(function(r){!function(e,n,r){var t=e.node(r).parent;e.edge(r,t).cutvalue=W(e,n,r)}(e,n,r)}))}function W(e,n,r){var t=e.node(r).parent,o=!0,i=n.edge(r,t),a=0;return i||(o=!1,i=n.edge(t,r)),a=i.weight,G.forEach(n.nodeEdges(r),(function(i){var u,c,s=i.v===r,f=s?i.w:i.v;if(f!==t){var d=s===o,h=n.edge(i).weight;if(a+=d?h:-h,u=r,c=f,e.hasEdge(u,c)){var l=e.edge(r,f).cutvalue;a+=d?-l:l}}})),a}function J(e,n){arguments.length<2&&(n=e.nodes()[0]),K(e,{},1,n)}function K(e,n,r,t,o){var i=r,a=e.node(t);return n[t]=!0,G.forEach(e.neighbors(t),(function(o){G.has(n,o)||(r=K(e,n,r,o,t))})),a.low=i,a.lim=r++,o?a.parent=o:delete a.parent,r}function H(e){return G.find(e.edges(),(function(n){return e.edge(n).cutvalue<0}))}function Q(e,n,r){var t=r.v,o=r.w;n.hasEdge(t,o)||(t=r.w,o=r.v);var i=e.node(t),a=e.node(o),u=i,c=!1;i.lim>a.lim&&(u=a,c=!0);var s=G.filter(n.edges(),(function(n){return c===Z(e,e.node(n.v),u)&&c!==Z(e,e.node(n.w),u)}));return G.minBy(s,(function(e){return O(n,e)}))}function X(e,n,r,t){var o=r.v,i=r.w;e.removeEdge(o,i),e.setEdge(t.v,t.w,{}),J(e),Y(e,n),function(e,n){var r=G.find(e.nodes(),(function(e){return!n.node(e).parent})),t=V(e,r);t=t.slice(1),G.forEach(t,(function(r){var t=e.node(r).parent,o=n.edge(r,t),i=!1;o||(o=n.edge(t,r),i=!0),n.node(r).rank=n.node(t).rank+(i?o.minlen:-o.minlen)}))}(e,n)}function Z(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}z.initLowLimValues=J,z.initCutValues=Y,z.calcCutValue=W,z.leaveEdge=H,z.enterEdge=Q,z.exchangeEdges=X;var $=M.longestPath,ee=C,ne=U,re=function(e){switch(e.graph().ranker){case\"network-simplex\":default:oe(e);break;case\"tight-tree\":!function(e){$(e),ee(e)}(e);break;case\"longest-path\":te(e)}};var te=$;function oe(e){ne(e)}var ie=o,ae=function(e){var n=function(e){var n={},r=0;function t(o){var i=r;ie.forEach(e.children(o),t),n[o]={low:i,lim:r++}}return ie.forEach(e.children(),t),n}(e);ie.forEach(e.graph().dummyChains,(function(r){for(var t=e.node(r),o=t.edgeObj,i=function(e,n,r,t){var o,i,a=[],u=[],c=Math.min(n[r].low,n[t].low),s=Math.max(n[r].lim,n[t].lim);o=r;do{o=e.parent(o),a.push(o)}while(o&&(n[o].low>c||s>n[o].lim));i=o,o=t;for(;(o=e.parent(o))!==i;)u.push(o);return{path:a.concat(u.reverse()),lca:i}}(e,n,o.v,o.w),a=i.path,u=i.lca,c=0,s=a[c],f=!0;r!==o.w;){if(t=e.node(r),f){for(;(s=a[c])!==u&&e.node(s).maxRank<t.rank;)c++;s===u&&(f=!1)}if(!f){for(;c<a.length-1&&e.node(s=a[c+1]).minRank<=t.rank;)c++;s=a[c]}e.setParent(r,s),r=e.successors(r)[0]}}))};var ue=o,ce=b,se={run:function(e){var n=ce.addDummyNode(e,\"root\",{},\"_root\"),r=function(e){var n={};function r(t,o){var i=e.children(t);i&&i.length&&ue.forEach(i,(function(e){r(e,o+1)})),n[t]=o}return ue.forEach(e.children(),(function(e){r(e,1)})),n}(e),t=ue.max(ue.values(r))-1,o=2*t+1;e.graph().nestingRoot=n,ue.forEach(e.edges(),(function(n){e.edge(n).minlen*=o}));var i=function(e){return ue.reduce(e.edges(),(function(n,r){return n+e.edge(r).weight}),0)}(e)+1;ue.forEach(e.children(),(function(a){fe(e,n,o,i,t,r,a)})),e.graph().nodeRankFactor=o},cleanup:function(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,ue.forEach(e.edges(),(function(n){e.edge(n).nestingEdge&&e.removeEdge(n)}))}};function fe(e,n,r,t,o,i,a){var u=e.children(a);if(u.length){var c=ce.addBorderNode(e,\"_bt\"),s=ce.addBorderNode(e,\"_bb\"),f=e.node(a);e.setParent(c,a),f.borderTop=c,e.setParent(s,a),f.borderBottom=s,ue.forEach(u,(function(u){fe(e,n,r,t,o,i,u);var f=e.node(u),d=f.borderTop?f.borderTop:u,h=f.borderBottom?f.borderBottom:u,l=f.borderTop?t:2*t,v=d!==h?1:o-i[a]+1;e.setEdge(c,d,{weight:l,minlen:v,nestingEdge:!0}),e.setEdge(h,s,{weight:l,minlen:v,nestingEdge:!0})})),e.parent(a)||e.setEdge(n,c,{weight:0,minlen:o+i[a]})}else a!==n&&e.setEdge(n,a,{weight:0,minlen:r})}var de=o,he=b,le=function(e){de.forEach(e.children(),(function n(r){var t=e.children(r),o=e.node(r);if(t.length&&de.forEach(t,n),de.has(o,\"minRank\")){o.borderLeft=[],o.borderRight=[];for(var i=o.minRank,a=o.maxRank+1;i<a;++i)ve(e,\"borderLeft\",\"_bl\",r,o,i),ve(e,\"borderRight\",\"_br\",r,o,i)}}))};function ve(e,n,r,t,o,i){var a={width:0,height:0,rank:i,borderType:n},u=o[n][i-1],c=he.addDummyNode(e,\"border\",a,r);o[n][i]=c,e.setParent(c,t),u&&e.setEdge(u,c,{weight:1})}var ge=o,pe={adjust:function(e){var n=e.graph().rankdir.toLowerCase();\"lr\"!==n&&\"rl\"!==n||me(e)},undo:function(e){var n=e.graph().rankdir.toLowerCase();\"bt\"!==n&&\"rl\"!==n||function(e){ge.forEach(e.nodes(),(function(n){Ee(e.node(n))})),ge.forEach(e.edges(),(function(n){var r=e.edge(n);ge.forEach(r.points,Ee),ge.has(r,\"y\")&&Ee(r)}))}(e);\"lr\"!==n&&\"rl\"!==n||(!function(e){ge.forEach(e.nodes(),(function(n){ye(e.node(n))})),ge.forEach(e.edges(),(function(n){var r=e.edge(n);ge.forEach(r.points,ye),ge.has(r,\"x\")&&ye(r)}))}(e),me(e))}};function me(e){ge.forEach(e.nodes(),(function(n){we(e.node(n))})),ge.forEach(e.edges(),(function(n){we(e.edge(n))}))}function we(e){var n=e.width;e.width=e.height,e.height=n}function Ee(e){e.y=-e.y}function ye(e){var n=e.x;e.x=e.y,e.y=n}var be=o,_e=function(e){var n={},r=be.filter(e.nodes(),(function(n){return!e.children(n).length})),t=be.max(be.map(r,(function(n){return e.node(n).rank}))),o=be.map(be.range(t+1),(function(){return[]}));function i(r){if(!be.has(n,r)){n[r]=!0;var t=e.node(r);o[t.rank].push(r),be.forEach(e.successors(r),i)}}var a=be.sortBy(r,(function(n){return e.node(n).rank}));return be.forEach(a,i),o};var xe=o,ke=function(e,n){for(var r=0,t=1;t<n.length;++t)r+=Ne(e,n[t-1],n[t]);return r};function Ne(e,n,r){for(var t=xe.zipObject(r,xe.map(r,(function(e,n){return n}))),o=xe.flatten(xe.map(n,(function(n){return xe.sortBy(xe.map(e.outEdges(n),(function(n){return{pos:t[n.w],weight:e.edge(n).weight}})),\"pos\")})),!0),i=1;i<r.length;)i<<=1;var a=2*i-1;i-=1;var u=xe.map(new Array(a),(function(){return 0})),c=0;return xe.forEach(o.forEach((function(e){var n=e.pos+i;u[n]+=e.weight;for(var r=0;n>0;)n%2&&(r+=u[n+1]),u[n=n-1>>1]+=e.weight;c+=e.weight*r}))),c}var Ie=o;var qe=o;var Me=o,Te=b;function Re(e,n,r){for(var t;n.length&&(t=Me.last(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}var Le=o,Ce=function(e,n){return Ie.map(n,(function(n){var r=e.inEdges(n);if(r.length){var t=Ie.reduce(r,(function(n,r){var t=e.edge(r),o=e.node(r.v);return{sum:n.sum+t.weight*o.order,weight:n.weight+t.weight}}),{sum:0,weight:0});return{v:n,barycenter:t.sum/t.weight,weight:t.weight}}return{v:n}}))},Pe=function(e,n){var r={};return qe.forEach(e,(function(e,n){var t=r[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:n};qe.isUndefined(e.barycenter)||(t.barycenter=e.barycenter,t.weight=e.weight)})),qe.forEach(n.edges(),(function(e){var n=r[e.v],t=r[e.w];qe.isUndefined(n)||qe.isUndefined(t)||(t.indegree++,n.out.push(r[e.w]))})),function(e){var n=[];function r(e){return function(n){n.merged||(qe.isUndefined(n.barycenter)||qe.isUndefined(e.barycenter)||n.barycenter>=e.barycenter)&&function(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight);n.weight&&(r+=n.barycenter*n.weight,t+=n.weight);e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}(e,n)}}function t(n){return function(r){r.in.push(n),0==--r.indegree&&e.push(r)}}for(;e.length;){var o=e.pop();n.push(o),qe.forEach(o.in.reverse(),r(o)),qe.forEach(o.out,t(o))}return qe.map(qe.filter(n,(function(e){return!e.merged})),(function(e){return qe.pick(e,[\"vs\",\"i\",\"barycenter\",\"weight\"])}))}(qe.filter(r,(function(e){return!e.indegree})))},Se=function(e,n){var r=Te.partition(e,(function(e){return Me.has(e,\"barycenter\")})),t=r.lhs,o=Me.sortBy(r.rhs,(function(e){return-e.i})),i=[],a=0,u=0,c=0;t.sort((s=!!n,function(e,n){return e.barycenter<n.barycenter?-1:e.barycenter>n.barycenter?1:s?n.i-e.i:e.i-n.i})),c=Re(i,o,c),Me.forEach(t,(function(e){c+=e.vs.length,i.push(e.vs),a+=e.barycenter*e.weight,u+=e.weight,c=Re(i,o,c)}));var s;var f={vs:Me.flatten(i,!0)};u&&(f.barycenter=a/u,f.weight=u);return f},Be=function e(n,r,t,o){var i=n.children(r),a=n.node(r),u=a?a.borderLeft:void 0,c=a?a.borderRight:void 0,s={};u&&(i=Le.filter(i,(function(e){return e!==u&&e!==c})));var f=Ce(n,i);Le.forEach(f,(function(r){if(n.children(r.v).length){var i=e(n,r.v,t,o);s[r.v]=i,Le.has(i,\"barycenter\")&&(a=r,u=i,Le.isUndefined(a.barycenter)?(a.barycenter=u.barycenter,a.weight=u.weight):(a.barycenter=(a.barycenter*a.weight+u.barycenter*u.weight)/(a.weight+u.weight),a.weight+=u.weight))}var a,u}));var d=Pe(f,t);!function(e,n){Le.forEach(e,(function(e){e.vs=Le.flatten(e.vs.map((function(e){return n[e]?n[e].vs:e})),!0)}))}(d,s);var h=Se(d,o);if(u&&(h.vs=Le.flatten([u,h.vs,c],!0),n.predecessors(u).length)){var l=n.node(n.predecessors(u)[0]),v=n.node(n.predecessors(c)[0]);Le.has(h,\"barycenter\")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+l.order+v.order)/(h.weight+2),h.weight+=2}return h};var Ge=o,je=t.Graph,Oe=function(e,n,r){var t=function(e){var n;for(;e.hasNode(n=Ge.uniqueId(\"_root\")););return n}(e),o=new je({compound:!0}).setGraph({root:t}).setDefaultNodeLabel((function(n){return e.node(n)}));return Ge.forEach(e.nodes(),(function(i){var a=e.node(i),u=e.parent(i);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(o.setNode(i),o.setParent(i,u||t),Ge.forEach(e[r](i),(function(n){var r=n.v===i?n.w:n.v,t=o.edge(r,i),a=Ge.isUndefined(t)?0:t.weight;o.setEdge(r,i,{weight:e.edge(n).weight+a})})),Ge.has(a,\"minRank\")&&o.setNode(i,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))})),o};var Ae=o;var Ve=o,De=_e,Fe=ke,Ue=Be,ze=Oe,Ye=function(e,n,r){var t,o={};Ae.forEach(r,(function(r){for(var i,a,u=e.parent(r);u;){if((i=e.parent(u))?(a=o[i],o[i]=u):(a=t,t=u),a&&a!==u)return void n.setEdge(a,u);u=i}}))},We=t.Graph,Je=b,Ke=function(e){var n=Je.maxRank(e),r=He(e,Ve.range(1,n+1),\"inEdges\"),t=He(e,Ve.range(n-1,-1,-1),\"outEdges\"),o=De(e);Xe(e,o);for(var i,a=Number.POSITIVE_INFINITY,u=0,c=0;c<4;++u,++c){Qe(u%2?r:t,u%4>=2),o=Je.buildLayerMatrix(e);var s=Fe(e,o);s<a&&(c=0,i=Ve.cloneDeep(o),a=s)}Xe(e,i)};function He(e,n,r){return Ve.map(n,(function(n){return ze(e,n,r)}))}function Qe(e,n){var r=new We;Ve.forEach(e,(function(e){var t=e.graph().root,o=Ue(e,t,r,n);Ve.forEach(o.vs,(function(n,r){e.node(n).order=r})),Ye(e,r,o.vs)}))}function Xe(e,n){Ve.forEach(n,(function(n){Ve.forEach(n,(function(n,r){e.node(n).order=r}))}))}var Ze=o,$e=t.Graph,en=b,nn=function(e){var n,r=en.buildLayerMatrix(e),t=Ze.merge(rn(e,r),tn(e,r)),o={};Ze.forEach([\"u\",\"d\"],(function(i){n=\"u\"===i?r:Ze.values(r).reverse(),Ze.forEach([\"l\",\"r\"],(function(r){\"r\"===r&&(n=Ze.map(n,(function(e){return Ze.values(e).reverse()})));var a=(\"u\"===i?e.predecessors:e.successors).bind(e),u=un(e,n,t,a),c=cn(e,n,u.root,u.align,\"r\"===r);\"r\"===r&&(c=Ze.mapValues(c,(function(e){return-e}))),o[i+r]=c}))}));var i=sn(e,o);return fn(o,i),dn(o,e.graph().align)};function rn(e,n){var r={};return Ze.reduce(n,(function(n,t){var o=0,i=0,a=n.length,u=Ze.last(t);return Ze.forEach(t,(function(n,c){var s=function(e,n){if(e.node(n).dummy)return Ze.find(e.predecessors(n),(function(n){return e.node(n).dummy}))}(e,n),f=s?e.node(s).order:a;(s||n===u)&&(Ze.forEach(t.slice(i,c+1),(function(n){Ze.forEach(e.predecessors(n),(function(t){var i=e.node(t),a=i.order;!(a<o||f<a)||i.dummy&&e.node(n).dummy||on(r,t,n)}))})),i=c+1,o=f)})),t})),r}function tn(e,n){var r={};function t(n,t,o,i,a){var u;Ze.forEach(Ze.range(t,o),(function(t){u=n[t],e.node(u).dummy&&Ze.forEach(e.predecessors(u),(function(n){var t=e.node(n);t.dummy&&(t.order<i||t.order>a)&&on(r,n,u)}))}))}return Ze.reduce(n,(function(n,r){var o,i=-1,a=0;return Ze.forEach(r,(function(u,c){if(\"border\"===e.node(u).dummy){var s=e.predecessors(u);s.length&&(o=e.node(s[0]).order,t(r,a,c,i,o),a=c,i=o)}t(r,a,r.length,o,n.length)})),r})),r}function on(e,n,r){if(n>r){var t=n;n=r,r=t}var o=e[n];o||(e[n]=o={}),o[r]=!0}function an(e,n,r){if(n>r){var t=n;n=r,r=t}return Ze.has(e[n],r)}function un(e,n,r,t){var o={},i={},a={};return Ze.forEach(n,(function(e){Ze.forEach(e,(function(e,n){o[e]=e,i[e]=e,a[e]=n}))})),Ze.forEach(n,(function(e){var n=-1;Ze.forEach(e,(function(e){var u=t(e);if(u.length){u=Ze.sortBy(u,(function(e){return a[e]}));for(var c=(u.length-1)/2,s=Math.floor(c),f=Math.ceil(c);s<=f;++s){var d=u[s];i[e]===e&&n<a[d]&&!an(r,e,d)&&(i[d]=e,i[e]=o[e]=o[d],n=a[d])}}}))})),{root:o,align:i}}function cn(e,n,r,t,o){var i={},a=function(e,n,r,t){var o=new $e,i=e.graph(),a=function(e,n,r){return function(t,o,i){var a,u=t.node(o),c=t.node(i),s=0;if(s+=u.width/2,Ze.has(u,\"labelpos\"))switch(u.labelpos.toLowerCase()){case\"l\":a=-u.width/2;break;case\"r\":a=u.width/2}if(a&&(s+=r?a:-a),a=0,s+=(u.dummy?n:e)/2,s+=(c.dummy?n:e)/2,s+=c.width/2,Ze.has(c,\"labelpos\"))switch(c.labelpos.toLowerCase()){case\"l\":a=c.width/2;break;case\"r\":a=-c.width/2}return a&&(s+=r?a:-a),a=0,s}}(i.nodesep,i.edgesep,t);return Ze.forEach(n,(function(n){var t;Ze.forEach(n,(function(n){var i=r[n];if(o.setNode(i),t){var u=r[t],c=o.edge(u,i);o.setEdge(u,i,Math.max(a(e,n,t),c||0))}t=n}))})),o}(e,n,r,o),u=o?\"borderLeft\":\"borderRight\";function c(e,n){for(var r=a.nodes(),t=r.pop(),o={};t;)o[t]?e(t):(o[t]=!0,r.push(t),r=r.concat(n(t))),t=r.pop()}return c((function(e){i[e]=a.inEdges(e).reduce((function(e,n){return Math.max(e,i[n.v]+a.edge(n))}),0)}),a.predecessors.bind(a)),c((function(n){var r=a.outEdges(n).reduce((function(e,n){return Math.min(e,i[n.w]-a.edge(n))}),Number.POSITIVE_INFINITY),t=e.node(n);r!==Number.POSITIVE_INFINITY&&t.borderType!==u&&(i[n]=Math.max(i[n],r))}),a.successors.bind(a)),Ze.forEach(t,(function(e){i[e]=i[r[e]]})),i}function sn(e,n){return Ze.minBy(Ze.values(n),(function(n){var r=Number.NEGATIVE_INFINITY,t=Number.POSITIVE_INFINITY;return Ze.forIn(n,(function(n,o){var i=function(e,n){return e.node(n).width}(e,o)/2;r=Math.max(n+i,r),t=Math.min(n-i,t)})),r-t}))}function fn(e,n){var r=Ze.values(n),t=Ze.min(r),o=Ze.max(r);Ze.forEach([\"u\",\"d\"],(function(r){Ze.forEach([\"l\",\"r\"],(function(i){var a,u=r+i,c=e[u];if(c!==n){var s=Ze.values(c);(a=\"l\"===i?t-Ze.min(s):o-Ze.max(s))&&(e[u]=Ze.mapValues(c,(function(e){return e+a})))}}))}))}function dn(e,n){return Ze.mapValues(e.ul,(function(r,t){if(n)return e[n.toLowerCase()][t];var o=Ze.sortBy(Ze.map(e,t));return(o[1]+o[2])/2}))}var hn=o,ln=b,vn=nn;var gn=o,pn=w,mn=I,wn=re,En=b.normalizeRanks,yn=ae,bn=b.removeEmptyRanks,_n=se,xn=le,kn=pe,Nn=Ke,In=function(e){(function(e){var n=ln.buildLayerMatrix(e),r=e.graph().ranksep,t=0;hn.forEach(n,(function(n){var o=hn.max(hn.map(n,(function(n){return e.node(n).height})));hn.forEach(n,(function(n){e.node(n).y=t+o/2})),t+=o+r}))})(e=ln.asNonCompoundGraph(e)),hn.forEach(vn(e),(function(n,r){e.node(r).x=n}))},qn=b,Mn=t.Graph,Tn=function(e,n){var r=n&&n.debugTiming?qn.time:qn.notime;r(\"layout\",(function(){var n=r(\" buildLayoutGraph\",(function(){return function(e){var n=new Mn({multigraph:!0,compound:!0}),r=An(e.graph());return n.setGraph(gn.merge({},Ln,On(r,Rn),gn.pick(r,Cn))),gn.forEach(e.nodes(),(function(r){var t=An(e.node(r));n.setNode(r,gn.defaults(On(t,Pn),Sn)),n.setParent(r,e.parent(r))})),gn.forEach(e.edges(),(function(r){var t=An(e.edge(r));n.setEdge(r,gn.merge({},Gn,On(t,Bn),gn.pick(t,jn)))})),n}(e)}));r(\" runLayout\",(function(){!function(e,n){n(\" makeSpaceForEdgeLabels\",(function(){!function(e){var n=e.graph();n.ranksep/=2,gn.forEach(e.edges(),(function(r){var t=e.edge(r);t.minlen*=2,\"c\"!==t.labelpos.toLowerCase()&&(\"TB\"===n.rankdir||\"BT\"===n.rankdir?t.width+=t.labeloffset:t.height+=t.labeloffset)}))}(e)})),n(\" removeSelfEdges\",(function(){!function(e){gn.forEach(e.edges(),(function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}}))}(e)})),n(\" acyclic\",(function(){pn.run(e)})),n(\" nestingGraph.run\",(function(){_n.run(e)})),n(\" rank\",(function(){wn(qn.asNonCompoundGraph(e))})),n(\" injectEdgeLabelProxies\",(function(){!function(e){gn.forEach(e.edges(),(function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),o={rank:(e.node(n.w).rank-t.rank)/2+t.rank,e:n};qn.addDummyNode(e,\"edge-proxy\",o,\"_ep\")}}))}(e)})),n(\" removeEmptyRanks\",(function(){bn(e)})),n(\" nestingGraph.cleanup\",(function(){_n.cleanup(e)})),n(\" normalizeRanks\",(function(){En(e)})),n(\" assignRankMinMax\",(function(){!function(e){var n=0;gn.forEach(e.nodes(),(function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=gn.max(n,t.maxRank))})),e.graph().maxRank=n}(e)})),n(\" removeEdgeLabelProxies\",(function(){!function(e){gn.forEach(e.nodes(),(function(n){var r=e.node(n);\"edge-proxy\"===r.dummy&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))}))}(e)})),n(\" normalize.run\",(function(){mn.run(e)})),n(\" parentDummyChains\",(function(){yn(e)})),n(\" addBorderSegments\",(function(){xn(e)})),n(\" order\",(function(){Nn(e)})),n(\" insertSelfEdges\",(function(){!function(e){var n=qn.buildLayerMatrix(e);gn.forEach(n,(function(n){var r=0;gn.forEach(n,(function(n,t){var o=e.node(n);o.order=t+r,gn.forEach(o.selfEdges,(function(n){qn.addDummyNode(e,\"selfedge\",{width:n.label.width,height:n.label.height,rank:o.rank,order:t+ ++r,e:n.e,label:n.label},\"_se\")})),delete o.selfEdges}))}))}(e)})),n(\" adjustCoordinateSystem\",(function(){kn.adjust(e)})),n(\" position\",(function(){In(e)})),n(\" positionSelfEdges\",(function(){!function(e){gn.forEach(e.nodes(),(function(n){var r=e.node(n);if(\"selfedge\"===r.dummy){var t=e.node(r.e.v),o=t.x+t.width/2,i=t.y,a=r.x-o,u=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:o+2*a/3,y:i-u},{x:o+5*a/6,y:i-u},{x:o+a,y:i},{x:o+5*a/6,y:i+u},{x:o+2*a/3,y:i+u}],r.label.x=r.x,r.label.y=r.y}}))}(e)})),n(\" removeBorderNodes\",(function(){!function(e){gn.forEach(e.nodes(),(function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),o=e.node(r.borderBottom),i=e.node(gn.last(r.borderLeft)),a=e.node(gn.last(r.borderRight));r.width=Math.abs(a.x-i.x),r.height=Math.abs(o.y-t.y),r.x=i.x+r.width/2,r.y=t.y+r.height/2}})),gn.forEach(e.nodes(),(function(n){\"border\"===e.node(n).dummy&&e.removeNode(n)}))}(e)})),n(\" normalize.undo\",(function(){mn.undo(e)})),n(\" fixupEdgeLabelCoords\",(function(){!function(e){gn.forEach(e.edges(),(function(n){var r=e.edge(n);if(gn.has(r,\"x\"))switch(\"l\"!==r.labelpos&&\"r\"!==r.labelpos||(r.width-=r.labeloffset),r.labelpos){case\"l\":r.x-=r.width/2+r.labeloffset;break;case\"r\":r.x+=r.width/2+r.labeloffset}}))}(e)})),n(\" undoCoordinateSystem\",(function(){kn.undo(e)})),n(\" translateGraph\",(function(){!function(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,o=0,i=e.graph(),a=i.marginx||0,u=i.marginy||0;function c(e){var i=e.x,a=e.y,u=e.width,c=e.height;n=Math.min(n,i-u/2),r=Math.max(r,i+u/2),t=Math.min(t,a-c/2),o=Math.max(o,a+c/2)}gn.forEach(e.nodes(),(function(n){c(e.node(n))})),gn.forEach(e.edges(),(function(n){var r=e.edge(n);gn.has(r,\"x\")&&c(r)})),n-=a,t-=u,gn.forEach(e.nodes(),(function(r){var o=e.node(r);o.x-=n,o.y-=t})),gn.forEach(e.edges(),(function(r){var o=e.edge(r);gn.forEach(o.points,(function(e){e.x-=n,e.y-=t})),gn.has(o,\"x\")&&(o.x-=n),gn.has(o,\"y\")&&(o.y-=t)})),i.width=r-n+a,i.height=o-t+u}(e)})),n(\" assignNodeIntersects\",(function(){!function(e){gn.forEach(e.edges(),(function(n){var r,t,o=e.edge(n),i=e.node(n.v),a=e.node(n.w);o.points?(r=o.points[0],t=o.points[o.points.length-1]):(o.points=[],r=a,t=i),o.points.unshift(qn.intersectRect(i,r)),o.points.push(qn.intersectRect(a,t))}))}(e)})),n(\" reversePoints\",(function(){!function(e){gn.forEach(e.edges(),(function(n){var r=e.edge(n);r.reversed&&r.points.reverse()}))}(e)})),n(\" acyclic.undo\",(function(){pn.undo(e)}))}(n,r)})),r(\" updateInputGraph\",(function(){!function(e,n){gn.forEach(e.nodes(),(function(r){var t=e.node(r),o=n.node(r);t&&(t.x=o.x,t.y=o.y,n.children(r).length&&(t.width=o.width,t.height=o.height))})),gn.forEach(e.edges(),(function(r){var t=e.edge(r),o=n.edge(r);t.points=o.points,gn.has(o,\"x\")&&(t.x=o.x,t.y=o.y)})),e.graph().width=n.graph().width,e.graph().height=n.graph().height}(e,n)}))}))};var Rn=[\"nodesep\",\"edgesep\",\"ranksep\",\"marginx\",\"marginy\"],Ln={ranksep:50,edgesep:20,nodesep:50,rankdir:\"tb\"},Cn=[\"acyclicer\",\"ranker\",\"rankdir\",\"align\"],Pn=[\"width\",\"height\"],Sn={width:0,height:0},Bn=[\"minlen\",\"weight\",\"width\",\"height\",\"labeloffset\"],Gn={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:\"r\"},jn=[\"labelpos\"];function On(e,n){return gn.mapValues(gn.pick(e,n),Number)}function An(e){var n={};return gn.forEach(e,(function(e,r){n[r.toLowerCase()]=e})),n}var Vn=o,Dn=b,Fn=t.Graph;var Un={graphlib:t,layout:Tn,debug:{debugOrdering:function(e){var n=Dn.buildLayerMatrix(e),r=new Fn({compound:!0,multigraph:!0}).setGraph({});return Vn.forEach(e.nodes(),(function(n){r.setNode(n,{label:n}),r.setParent(n,\"layer\"+e.node(n).rank)})),Vn.forEach(e.edges(),(function(e){r.setEdge(e.v,e.w,{},e.name)})),Vn.forEach(n,(function(e,n){var t=\"layer\"+n;r.setNode(t,{rank:\"same\"}),Vn.reduce(e,(function(e,n){return r.setEdge(e,n,{style:\"invis\"}),n}))})),r}},util:{time:b.time,notime:b.notime},version:\"0.8.5\"},zn={exports:{}};function Yn(e,n){var r=e.subgraphs,t=e.nodes,o=e.links,i=e.hierarchy,a=new Un.graphlib.Graph({multigraph:!0,compound:!0,directed:!1!==n.digraph}).setGraph(n).setDefaultNodeLabel((function(){return{}})).setDefaultEdgeLabel((function(){return{}}));r.forEach((function(e){a.setNode(e.id,e)})),t.forEach((function(e){a.setNode(e.id,e)})),o.forEach((function(e){a.setEdge(e.source.id,e.target.id,e,e.id)})),i.forEach((function(e){a.setParent(e.child,e.parent)})),Un.layout(a,{debugTiming:!1});var u=-a.graph().width/2||0,c=-a.graph().height/2;return a.nodes().forEach((function(e){var n=a.node(e);n.x+=u,n.y+=c})),a.edges().forEach((function(e){var n=a.edge(e);n.points=n.points.map((function(e){return[e.x+u,e.y+c]}))})),{subgraphs:r,nodes:t,links:o}}zn.exports=function(){function e(e){var n=typeof e;return null!==e&&(\"object\"===n||\"function\"===n)}function r(e){return\"function\"==typeof e}var t=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},o=0,i=void 0,a=void 0,u=function(e,n){y[o]=e,y[o+1]=n,2===(o+=2)&&(a?a(b):x())};function c(e){a=e}function s(e){u=e}var f=\"undefined\"!=typeof window?window:void 0,d=f||{},h=d.MutationObserver||d.WebKitMutationObserver,l=\"undefined\"==typeof self&&\"undefined\"!=typeof process&&\"[object process]\"==={}.toString.call(process),v=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function g(){return function(){return process.nextTick(b)}}function p(){return void 0!==i?function(){i(b)}:E()}function m(){var e=0,n=new h(b),r=document.createTextNode(\"\");return n.observe(r,{characterData:!0}),function(){r.data=e=++e%2}}function w(){var e=new MessageChannel;return e.port1.onmessage=b,function(){return e.port2.postMessage(0)}}function E(){var e=setTimeout;return function(){return e(b,1)}}var y=new Array(1e3);function b(){for(var e=0;e<o;e+=2)(0,y[e])(y[e+1]),y[e]=void 0,y[e+1]=void 0;o=0}function _(){try{var e=Function(\"return this\")().require(\"vertx\");return i=e.runOnLoop||e.runOnContext,p()}catch(e){return E()}}var x=void 0;function k(e,n){var r=this,t=new this.constructor(q);void 0===t[I]&&J(t);var o=r._state;if(o){var i=arguments[o-1];u((function(){return U(o,t,i,r._result)}))}else D(r,t,e,n);return t}function N(e){var n=this;if(e&&\"object\"==typeof e&&e.constructor===n)return e;var r=new n(q);return j(r,e),r}x=l?g():h?m():v?w():void 0===f?_():E();var I=Math.random().toString(36).substring(2);function q(){}var M=void 0,T=1,R=2;function L(){return new TypeError(\"You cannot resolve a promise with itself\")}function C(){return new TypeError(\"A promises callback cannot return that same promise.\")}function P(e,n,r,t){try{e.call(n,r,t)}catch(e){return e}}function S(e,n,r){u((function(e){var t=!1,o=P(r,n,(function(r){t||(t=!0,n!==r?j(e,r):A(e,r))}),(function(n){t||(t=!0,V(e,n))}),\"Settle: \"+(e._label||\" unknown promise\"));!t&&o&&(t=!0,V(e,o))}),e)}function B(e,n){n._state===T?A(e,n._result):n._state===R?V(e,n._result):D(n,void 0,(function(n){return j(e,n)}),(function(n){return V(e,n)}))}function G(e,n,t){n.constructor===e.constructor&&t===k&&n.constructor.resolve===N?B(e,n):void 0===t?A(e,n):r(t)?S(e,n,t):A(e,n)}function j(n,r){if(n===r)V(n,L());else if(e(r)){var t=void 0;try{t=r.then}catch(e){return void V(n,e)}G(n,r,t)}else A(n,r)}function O(e){e._onerror&&e._onerror(e._result),F(e)}function A(e,n){e._state===M&&(e._result=n,e._state=T,0!==e._subscribers.length&&u(F,e))}function V(e,n){e._state===M&&(e._state=R,e._result=n,u(O,e))}function D(e,n,r,t){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=n,o[i+T]=r,o[i+R]=t,0===i&&e._state&&u(F,e)}function F(e){var n=e._subscribers,r=e._state;if(0!==n.length){for(var t=void 0,o=void 0,i=e._result,a=0;a<n.length;a+=3)t=n[a],o=n[a+r],t?U(r,t,o,i):o(i);e._subscribers.length=0}}function U(e,n,t,o){var i=r(t),a=void 0,u=void 0,c=!0;if(i){try{a=t(o)}catch(e){c=!1,u=e}if(n===a)return void V(n,C())}else a=o;n._state!==M||(i&&c?j(n,a):!1===c?V(n,u):e===T?A(n,a):e===R&&V(n,a))}function z(e,n){try{n((function(n){j(e,n)}),(function(n){V(e,n)}))}catch(n){V(e,n)}}var Y=0;function W(){return Y++}function J(e){e[I]=Y++,e._state=void 0,e._result=void 0,e._subscribers=[]}function K(){return new Error(\"Array Methods must be provided an Array\")}var H=function(){function e(e,n){this._instanceConstructor=e,this.promise=new e(q),this.promise[I]||J(this.promise),t(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?A(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&A(this.promise,this._result))):V(this.promise,K())}return e.prototype._enumerate=function(e){for(var n=0;this._state===M&&n<e.length;n++)this._eachEntry(e[n],n)},e.prototype._eachEntry=function(e,n){var r=this._instanceConstructor,t=r.resolve;if(t===N){var o=void 0,i=void 0,a=!1;try{o=e.then}catch(e){a=!0,i=e}if(o===k&&e._state!==M)this._settledAt(e._state,n,e._result);else if(\"function\"!=typeof o)this._remaining--,this._result[n]=e;else if(r===ne){var u=new r(q);a?V(u,i):G(u,e,o),this._willSettleAt(u,n)}else this._willSettleAt(new r((function(n){return n(e)})),n)}else this._willSettleAt(t(e),n)},e.prototype._settledAt=function(e,n,r){var t=this.promise;t._state===M&&(this._remaining--,e===R?V(t,r):this._result[n]=r),0===this._remaining&&A(t,this._result)},e.prototype._willSettleAt=function(e,n){var r=this;D(e,void 0,(function(e){return r._settledAt(T,n,e)}),(function(e){return r._settledAt(R,n,e)}))},e}();function Q(e){return new H(this,e).promise}function X(e){var n=this;return t(e)?new n((function(r,t){for(var o=e.length,i=0;i<o;i++)n.resolve(e[i]).then(r,t)})):new n((function(e,n){return n(new TypeError(\"You must pass an array to race.\"))}))}function Z(e){var n=new this(q);return V(n,e),n}function $(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}function ee(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}var ne=function(){function e(n){this[I]=W(),this._result=this._state=void 0,this._subscribers=[],q!==n&&(\"function\"!=typeof n&&$(),this instanceof e?z(this,n):ee())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var n=this,t=n.constructor;return r(e)?n.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))})):n.then(e,e)},e}();function re(){var e=void 0;if(void 0!==n)e=n;else if(\"undefined\"!=typeof self)e=self;else try{e=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var r=e.Promise;if(r){var t=null;try{t=Object.prototype.toString.call(r.resolve())}catch(e){}if(\"[object Promise]\"===t&&!r.cast)return}e.Promise=ne}return ne.prototype.then=k,ne.all=Q,ne.race=X,ne.resolve=N,ne.reject=Z,ne._setScheduler=c,ne._setAsap=s,ne._asap=u,ne.polyfill=re,ne.Promise=ne,ne}(),zn.exports.polyfill(),self.onmessage=function(e){var n=Yn.apply(void 0,e.data);self.postMessage(n)}}();";
|
|
7140
|
+
var workerCode = "!function(){\"use strict\";var e=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:{};function t(e){throw new Error('Could not dynamically require \"'+e+'\". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var n={exports:{}};n.exports=function(){function e(n,r,o){function i(s,u){if(!r[s]){if(!n[s]){if(!u&&t)return t(s);if(a)return a(s,!0);var c=new Error(\"Cannot find module '\"+s+\"'\");throw c.code=\"MODULE_NOT_FOUND\",c}var f=r[s]={exports:{}};n[s][0].call(f.exports,(function(e){return i(n[s][1][e]||e)}),f,f.exports,e,n,r,o)}return r[s].exports}for(var a=t,s=0;s<o.length;s++)i(o[s]);return i}return e}()({1:[function(e,t,n){t.exports={graphlib:e(\"./lib/graphlib\"),layout:e(\"./lib/layout\"),debug:e(\"./lib/debug\"),util:{time:e(\"./lib/util\").time,notime:e(\"./lib/util\").notime},version:e(\"./lib/version\")}},{\"./lib/debug\":6,\"./lib/graphlib\":7,\"./lib/layout\":9,\"./lib/util\":29,\"./lib/version\":30}],2:[function(e,t,n){var r=e(\"./lodash\"),o=e(\"./greedy-fas\");function i(e){var t=\"greedy\"===e.graph().acyclicer?o(e,n(e)):a(e);function n(e){return function(t){return e.edge(t).weight}}r.forEach(t,(function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,r.uniqueId(\"rev\"))}))}function a(e){var t=[],n={},o={};function i(a){r.has(o,a)||(o[a]=!0,n[a]=!0,r.forEach(e.outEdges(a),(function(e){r.has(n,e.w)?t.push(e):i(e.w)})),delete n[a])}return r.forEach(e.nodes(),i),t}function s(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}}))}t.exports={run:i,undo:s}},{\"./greedy-fas\":8,\"./lodash\":10}],3:[function(e,t,n){var r=e(\"./lodash\"),o=e(\"./util\");function i(e){function t(n){var o=e.children(n),i=e.node(n);if(o.length&&r.forEach(o,t),r.has(i,\"minRank\")){i.borderLeft=[],i.borderRight=[];for(var s=i.minRank,u=i.maxRank+1;s<u;++s)a(e,\"borderLeft\",\"_bl\",n,i,s),a(e,\"borderRight\",\"_br\",n,i,s)}}r.forEach(e.children(),t)}function a(e,t,n,r,i,a){var s={width:0,height:0,rank:a,borderType:t},u=i[t][a-1],c=o.addDummyNode(e,\"border\",s,n);i[t][a]=c,e.setParent(c,r),u&&e.setEdge(u,c,{weight:1})}t.exports=i},{\"./lodash\":10,\"./util\":29}],4:[function(e,t,n){var r=e(\"./lodash\");function o(e){var t=e.graph().rankdir.toLowerCase();\"lr\"!==t&&\"rl\"!==t||a(e)}function i(e){var t=e.graph().rankdir.toLowerCase();\"bt\"!==t&&\"rl\"!==t||u(e),\"lr\"!==t&&\"rl\"!==t||(f(e),a(e))}function a(e){r.forEach(e.nodes(),(function(t){s(e.node(t))})),r.forEach(e.edges(),(function(t){s(e.edge(t))}))}function s(e){var t=e.width;e.width=e.height,e.height=t}function u(e){r.forEach(e.nodes(),(function(t){c(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,c),r.has(n,\"y\")&&c(n)}))}function c(e){e.y=-e.y}function f(e){r.forEach(e.nodes(),(function(t){d(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,d),r.has(n,\"x\")&&d(n)}))}function d(e){var t=e.x;e.x=e.y,e.y=t}t.exports={adjust:o,undo:i}},{\"./lodash\":10}],5:[function(e,t,n){function r(){var e={};e._next=e._prev=e,this._sentinel=e}function o(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function i(e,t){if(\"_next\"!==e&&\"_prev\"!==e)return t}t.exports=r,r.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return o(t),t},r.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&o(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},r.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,i)),n=n._prev;return\"[\"+e.join(\", \")+\"]\"}},{}],6:[function(e,t,n){var r=e(\"./lodash\"),o=e(\"./util\"),i=e(\"./graphlib\").Graph;function a(e){var t=o.buildLayerMatrix(e),n=new i({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),(function(t){n.setNode(t,{label:t}),n.setParent(t,\"layer\"+e.node(t).rank)})),r.forEach(e.edges(),(function(e){n.setEdge(e.v,e.w,{},e.name)})),r.forEach(t,(function(e,t){var o=\"layer\"+t;n.setNode(o,{rank:\"same\"}),r.reduce(e,(function(e,t){return n.setEdge(e,t,{style:\"invis\"}),t}))})),n}t.exports={debugOrdering:a}},{\"./graphlib\":7,\"./lodash\":10,\"./util\":29}],7:[function(e,t,n){var r;if(\"function\"==typeof e)try{r=e(\"graphlib\")}catch(e){}r||(r=window.graphlib),t.exports=r},{graphlib:31}],8:[function(e,t,n){var r=e(\"./lodash\"),o=e(\"./graphlib\").Graph,i=e(\"./data/list\");t.exports=s;var a=r.constant(1);function s(e,t){if(e.nodeCount()<=1)return[];var n=f(e,t||a),o=u(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(o,(function(t){return e.outEdges(t.v,t.w)})),!0)}function u(e,t,n){for(var r,o=[],i=t[t.length-1],a=t[0];e.nodeCount();){for(;r=a.dequeue();)c(e,t,n,r);for(;r=i.dequeue();)c(e,t,n,r);if(e.nodeCount())for(var s=t.length-2;s>0;--s)if(r=t[s].dequeue()){o=o.concat(c(e,t,n,r,!0));break}}return o}function c(e,t,n,o,i){var a=i?[]:void 0;return r.forEach(e.inEdges(o.v),(function(r){var o=e.edge(r),s=e.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,d(t,n,s)})),r.forEach(e.outEdges(o.v),(function(r){var o=e.edge(r),i=r.w,a=e.node(i);a.in-=o,d(t,n,a)})),e.removeNode(o.v),a}function f(e,t){var n=new o,a=0,s=0;r.forEach(e.nodes(),(function(e){n.setNode(e,{v:e,in:0,out:0})})),r.forEach(e.edges(),(function(e){var r=n.edge(e.v,e.w)||0,o=t(e),i=r+o;n.setEdge(e.v,e.w,i),s=Math.max(s,n.node(e.v).out+=o),a=Math.max(a,n.node(e.w).in+=o)}));var u=r.range(s+a+3).map((function(){return new i})),c=a+1;return r.forEach(n.nodes(),(function(e){d(u,c,n.node(e))})),{graph:n,buckets:u,zeroIdx:c}}function d(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},{\"./data/list\":5,\"./graphlib\":7,\"./lodash\":10}],9:[function(e,t,n){var r=e(\"./lodash\"),o=e(\"./acyclic\"),i=e(\"./normalize\"),a=e(\"./rank\"),s=e(\"./util\").normalizeRanks,u=e(\"./parent-dummy-chains\"),c=e(\"./util\").removeEmptyRanks,f=e(\"./nesting-graph\"),d=e(\"./add-border-segments\"),h=e(\"./coordinate-system\"),l=e(\"./order\"),p=e(\"./position\"),v=e(\"./util\"),_=e(\"./graphlib\").Graph;function y(e,t){var n=t&&t.debugTiming?v.time:v.notime;n(\"layout\",(function(){var t=n(\" buildLayoutGraph\",(function(){return I(e)}));n(\" runLayout\",(function(){g(t,n)})),n(\" updateInputGraph\",(function(){b(e,t)}))}))}function g(e,t){t(\" makeSpaceForEdgeLabels\",(function(){S(e)})),t(\" removeSelfEdges\",(function(){B(e)})),t(\" acyclic\",(function(){o.run(e)})),t(\" nestingGraph.run\",(function(){f.run(e)})),t(\" rank\",(function(){a(v.asNonCompoundGraph(e))})),t(\" injectEdgeLabelProxies\",(function(){C(e)})),t(\" removeEmptyRanks\",(function(){c(e)})),t(\" nestingGraph.cleanup\",(function(){f.cleanup(e)})),t(\" normalizeRanks\",(function(){s(e)})),t(\" assignRankMinMax\",(function(){N(e)})),t(\" removeEdgeLabelProxies\",(function(){T(e)})),t(\" normalize.run\",(function(){i.run(e)})),t(\" parentDummyChains\",(function(){u(e)})),t(\" addBorderSegments\",(function(){d(e)})),t(\" order\",(function(){l(e)})),t(\" insertSelfEdges\",(function(){G(e)})),t(\" adjustCoordinateSystem\",(function(){h.adjust(e)})),t(\" position\",(function(){p(e)})),t(\" positionSelfEdges\",(function(){R(e)})),t(\" removeBorderNodes\",(function(){D(e)})),t(\" normalize.undo\",(function(){i.undo(e)})),t(\" fixupEdgeLabelCoords\",(function(){P(e)})),t(\" undoCoordinateSystem\",(function(){h.undo(e)})),t(\" translateGraph\",(function(){M(e)})),t(\" assignNodeIntersects\",(function(){L(e)})),t(\" reversePoints\",(function(){F(e)})),t(\" acyclic.undo\",(function(){o.undo(e)}))}function b(e,t){r.forEach(e.nodes(),(function(n){var r=e.node(n),o=t.node(n);r&&(r.x=o.x,r.y=o.y,t.children(n).length&&(r.width=o.width,r.height=o.height))})),r.forEach(e.edges(),(function(n){var o=e.edge(n),i=t.edge(n);o.points=i.points,r.has(i,\"x\")&&(o.x=i.x,o.y=i.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}t.exports=y;var m=[\"nodesep\",\"edgesep\",\"ranksep\",\"marginx\",\"marginy\"],x={ranksep:50,edgesep:20,nodesep:50,rankdir:\"tb\"},w=[\"acyclicer\",\"ranker\",\"rankdir\",\"align\"],E=[\"width\",\"height\"],j={width:0,height:0},k=[\"minlen\",\"weight\",\"width\",\"height\",\"labeloffset\"],A={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:\"r\"},O=[\"labelpos\"];function I(e){var t=new _({multigraph:!0,compound:!0}),n=z(e.graph());return t.setGraph(r.merge({},x,U(n,m),r.pick(n,w))),r.forEach(e.nodes(),(function(n){var o=z(e.node(n));t.setNode(n,r.defaults(U(o,E),j)),t.setParent(n,e.parent(n))})),r.forEach(e.edges(),(function(n){var o=z(e.edge(n));t.setEdge(n,r.merge({},A,U(o,k),r.pick(o,O)))})),t}function S(e){var t=e.graph();t.ranksep/=2,r.forEach(e.edges(),(function(n){var r=e.edge(n);r.minlen*=2,\"c\"!==r.labelpos.toLowerCase()&&(\"TB\"===t.rankdir||\"BT\"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}function C(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),o={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};v.addDummyNode(e,\"edge-proxy\",o,\"_ep\")}}))}function N(e){var t=0;r.forEach(e.nodes(),(function(n){var o=e.node(n);o.borderTop&&(o.minRank=e.node(o.borderTop).rank,o.maxRank=e.node(o.borderBottom).rank,t=r.max(t,o.maxRank))})),e.graph().maxRank=t}function T(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);\"edge-proxy\"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}function M(e){var t=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,i=0,a=e.graph(),s=a.marginx||0,u=a.marginy||0;function c(e){var r=e.x,a=e.y,s=e.width,u=e.height;t=Math.min(t,r-s/2),n=Math.max(n,r+s/2),o=Math.min(o,a-u/2),i=Math.max(i,a+u/2)}r.forEach(e.nodes(),(function(t){c(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.has(n,\"x\")&&c(n)})),t-=s,o-=u,r.forEach(e.nodes(),(function(n){var r=e.node(n);r.x-=t,r.y-=o})),r.forEach(e.edges(),(function(n){var i=e.edge(n);r.forEach(i.points,(function(e){e.x-=t,e.y-=o})),r.has(i,\"x\")&&(i.x-=t),r.has(i,\"y\")&&(i.y-=o)})),a.width=n-t+s,a.height=i-o+u}function L(e){r.forEach(e.edges(),(function(t){var n,r,o=e.edge(t),i=e.node(t.v),a=e.node(t.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=a,r=i),o.points.unshift(v.intersectRect(i,n)),o.points.push(v.intersectRect(a,r))}))}function P(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(r.has(n,\"x\"))switch(\"l\"!==n.labelpos&&\"r\"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case\"l\":n.x-=n.width/2+n.labeloffset;break;case\"r\":n.x+=n.width/2+n.labeloffset}}))}function F(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);n.reversed&&n.points.reverse()}))}function D(e){r.forEach(e.nodes(),(function(t){if(e.children(t).length){var n=e.node(t),o=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(r.last(n.borderLeft)),s=e.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(i.y-o.y),n.x=a.x+n.width/2,n.y=o.y+n.height/2}})),r.forEach(e.nodes(),(function(t){\"border\"===e.node(t).dummy&&e.removeNode(t)}))}function B(e){r.forEach(e.edges(),(function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}function G(e){var t=v.buildLayerMatrix(e);r.forEach(t,(function(t){var n=0;r.forEach(t,(function(t,o){var i=e.node(t);i.order=o+n,r.forEach(i.selfEdges,(function(t){v.addDummyNode(e,\"selfedge\",{width:t.label.width,height:t.label.height,rank:i.rank,order:o+ ++n,e:t.e,label:t.label},\"_se\")})),delete i.selfEdges}))}))}function R(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);if(\"selfedge\"===n.dummy){var r=e.node(n.e.v),o=r.x+r.width/2,i=r.y,a=n.x-o,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:o+2*a/3,y:i-s},{x:o+5*a/6,y:i-s},{x:o+a,y:i},{x:o+5*a/6,y:i+s},{x:o+2*a/3,y:i+s}],n.label.x=n.x,n.label.y=n.y}}))}function U(e,t){return r.mapValues(r.pick(e,t),Number)}function z(e){var t={};return r.forEach(e,(function(e,n){t[n.toLowerCase()]=e})),t}},{\"./acyclic\":2,\"./add-border-segments\":3,\"./coordinate-system\":4,\"./graphlib\":7,\"./lodash\":10,\"./nesting-graph\":11,\"./normalize\":12,\"./order\":17,\"./parent-dummy-chains\":22,\"./position\":24,\"./rank\":26,\"./util\":29}],10:[function(e,t,n){var r;if(\"function\"==typeof e)try{r={cloneDeep:e(\"lodash/cloneDeep\"),constant:e(\"lodash/constant\"),defaults:e(\"lodash/defaults\"),each:e(\"lodash/each\"),filter:e(\"lodash/filter\"),find:e(\"lodash/find\"),flatten:e(\"lodash/flatten\"),forEach:e(\"lodash/forEach\"),forIn:e(\"lodash/forIn\"),has:e(\"lodash/has\"),isUndefined:e(\"lodash/isUndefined\"),last:e(\"lodash/last\"),map:e(\"lodash/map\"),mapValues:e(\"lodash/mapValues\"),max:e(\"lodash/max\"),merge:e(\"lodash/merge\"),min:e(\"lodash/min\"),minBy:e(\"lodash/minBy\"),now:e(\"lodash/now\"),pick:e(\"lodash/pick\"),range:e(\"lodash/range\"),reduce:e(\"lodash/reduce\"),sortBy:e(\"lodash/sortBy\"),uniqueId:e(\"lodash/uniqueId\"),values:e(\"lodash/values\"),zipObject:e(\"lodash/zipObject\")}}catch(e){}r||(r=window._),t.exports=r},{\"lodash/cloneDeep\":227,\"lodash/constant\":228,\"lodash/defaults\":229,\"lodash/each\":230,\"lodash/filter\":232,\"lodash/find\":233,\"lodash/flatten\":235,\"lodash/forEach\":236,\"lodash/forIn\":237,\"lodash/has\":239,\"lodash/isUndefined\":258,\"lodash/last\":261,\"lodash/map\":262,\"lodash/mapValues\":263,\"lodash/max\":264,\"lodash/merge\":266,\"lodash/min\":267,\"lodash/minBy\":268,\"lodash/now\":270,\"lodash/pick\":271,\"lodash/range\":273,\"lodash/reduce\":274,\"lodash/sortBy\":276,\"lodash/uniqueId\":286,\"lodash/values\":287,\"lodash/zipObject\":288}],11:[function(e,t,n){var r=e(\"./lodash\"),o=e(\"./util\");function i(e){var t=o.addDummyNode(e,\"root\",{},\"_root\"),n=s(e),i=r.max(r.values(n))-1,c=2*i+1;e.graph().nestingRoot=t,r.forEach(e.edges(),(function(t){e.edge(t).minlen*=c}));var f=u(e)+1;r.forEach(e.children(),(function(r){a(e,t,c,f,i,n,r)})),e.graph().nodeRankFactor=c}function a(e,t,n,i,s,u,c){var f=e.children(c);if(f.length){var d=o.addBorderNode(e,\"_bt\"),h=o.addBorderNode(e,\"_bb\"),l=e.node(c);e.setParent(d,c),l.borderTop=d,e.setParent(h,c),l.borderBottom=h,r.forEach(f,(function(r){a(e,t,n,i,s,u,r);var o=e.node(r),f=o.borderTop?o.borderTop:r,l=o.borderBottom?o.borderBottom:r,p=o.borderTop?i:2*i,v=f!==l?1:s-u[c]+1;e.setEdge(d,f,{weight:p,minlen:v,nestingEdge:!0}),e.setEdge(l,h,{weight:p,minlen:v,nestingEdge:!0})})),e.parent(c)||e.setEdge(t,d,{weight:0,minlen:s+u[c]})}else c!==t&&e.setEdge(t,c,{weight:0,minlen:n})}function s(e){var t={};function n(o,i){var a=e.children(o);a&&a.length&&r.forEach(a,(function(e){n(e,i+1)})),t[o]=i}return r.forEach(e.children(),(function(e){n(e,1)})),t}function u(e){return r.reduce(e.edges(),(function(t,n){return t+e.edge(n).weight}),0)}function c(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.forEach(e.edges(),(function(t){e.edge(t).nestingEdge&&e.removeEdge(t)}))}t.exports={run:i,cleanup:c}},{\"./lodash\":10,\"./util\":29}],12:[function(e,t,n){var r=e(\"./lodash\"),o=e(\"./util\");function i(e){e.graph().dummyChains=[],r.forEach(e.edges(),(function(t){a(e,t)}))}function a(e,t){var n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,s=t.name,u=e.edge(t),c=u.labelRank;if(a!==r+1){var f,d,h;for(e.removeEdge(t),h=0,++r;r<a;++h,++r)u.points=[],d={width:0,height:0,edgeLabel:u,edgeObj:t,rank:r},f=o.addDummyNode(e,\"edge\",d,\"_d\"),r===c&&(d.width=u.width,d.height=u.height,d.dummy=\"edge-label\",d.labelpos=u.labelpos),e.setEdge(n,f,{weight:u.weight},s),0===h&&e.graph().dummyChains.push(f),n=f;e.setEdge(n,i,{weight:u.weight},s)}}function s(e){r.forEach(e.graph().dummyChains,(function(t){var n,r=e.node(t),o=r.edgeLabel;for(e.setEdge(r.edgeObj,o);r.dummy;)n=e.successors(t)[0],e.removeNode(t),o.points.push({x:r.x,y:r.y}),\"edge-label\"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),t=n,r=e.node(t)}))}t.exports={run:i,undo:s}},{\"./lodash\":10,\"./util\":29}],13:[function(e,t,n){var r=e(\"../lodash\");function o(e,t,n){var o,i={};r.forEach(n,(function(n){for(var r,a,s=e.parent(n);s;){if((r=e.parent(s))?(a=i[r],i[r]=s):(a=o,o=s),a&&a!==s)return void t.setEdge(a,s);s=r}}))}t.exports=o},{\"../lodash\":10}],14:[function(e,t,n){var r=e(\"../lodash\");function o(e,t){return r.map(t,(function(t){var n=e.inEdges(t);if(n.length){var o=r.reduce(n,(function(t,n){var r=e.edge(n),o=e.node(n.v);return{sum:t.sum+r.weight*o.order,weight:t.weight+r.weight}}),{sum:0,weight:0});return{v:t,barycenter:o.sum/o.weight,weight:o.weight}}return{v:t}}))}t.exports=o},{\"../lodash\":10}],15:[function(e,t,n){var r=e(\"../lodash\"),o=e(\"../graphlib\").Graph;function i(e,t,n){var i=a(e),s=new o({compound:!0}).setGraph({root:i}).setDefaultNodeLabel((function(t){return e.node(t)}));return r.forEach(e.nodes(),(function(o){var a=e.node(o),u=e.parent(o);(a.rank===t||a.minRank<=t&&t<=a.maxRank)&&(s.setNode(o),s.setParent(o,u||i),r.forEach(e[n](o),(function(t){var n=t.v===o?t.w:t.v,i=s.edge(n,o),a=r.isUndefined(i)?0:i.weight;s.setEdge(n,o,{weight:e.edge(t).weight+a})})),r.has(a,\"minRank\")&&s.setNode(o,{borderLeft:a.borderLeft[t],borderRight:a.borderRight[t]}))})),s}function a(e){for(var t;e.hasNode(t=r.uniqueId(\"_root\")););return t}t.exports=i},{\"../graphlib\":7,\"../lodash\":10}],16:[function(e,t,n){var r=e(\"../lodash\");function o(e,t){for(var n=0,r=1;r<t.length;++r)n+=i(e,t[r-1],t[r]);return n}function i(e,t,n){for(var o=r.zipObject(n,r.map(n,(function(e,t){return t}))),i=r.flatten(r.map(t,(function(t){return r.sortBy(r.map(e.outEdges(t),(function(t){return{pos:o[t.w],weight:e.edge(t).weight}})),\"pos\")})),!0),a=1;a<n.length;)a<<=1;var s=2*a-1;a-=1;var u=r.map(new Array(s),(function(){return 0})),c=0;return r.forEach(i.forEach((function(e){var t=e.pos+a;u[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=u[t+1]),u[t=t-1>>1]+=e.weight;c+=e.weight*n}))),c}t.exports=o},{\"../lodash\":10}],17:[function(e,t,n){var r=e(\"../lodash\"),o=e(\"./init-order\"),i=e(\"./cross-count\"),a=e(\"./sort-subgraph\"),s=e(\"./build-layer-graph\"),u=e(\"./add-subgraph-constraints\"),c=e(\"../graphlib\").Graph,f=e(\"../util\");function d(e){var t=f.maxRank(e),n=h(e,r.range(1,t+1),\"inEdges\"),a=h(e,r.range(t-1,-1,-1),\"outEdges\"),s=o(e);p(e,s);for(var u,c=Number.POSITIVE_INFINITY,d=0,v=0;v<4;++d,++v){l(d%2?n:a,d%4>=2),s=f.buildLayerMatrix(e);var _=i(e,s);_<c&&(v=0,u=r.cloneDeep(s),c=_)}p(e,u)}function h(e,t,n){return r.map(t,(function(t){return s(e,t,n)}))}function l(e,t){var n=new c;r.forEach(e,(function(e){var o=e.graph().root,i=a(e,o,n,t);r.forEach(i.vs,(function(t,n){e.node(t).order=n})),u(e,n,i.vs)}))}function p(e,t){r.forEach(t,(function(t){r.forEach(t,(function(t,n){e.node(t).order=n}))}))}t.exports=d},{\"../graphlib\":7,\"../lodash\":10,\"../util\":29,\"./add-subgraph-constraints\":13,\"./build-layer-graph\":15,\"./cross-count\":16,\"./init-order\":18,\"./sort-subgraph\":20}],18:[function(e,t,n){var r=e(\"../lodash\");function o(e){var t={},n=r.filter(e.nodes(),(function(t){return!e.children(t).length})),o=r.max(r.map(n,(function(t){return e.node(t).rank}))),i=r.map(r.range(o+1),(function(){return[]}));function a(n){if(!r.has(t,n)){t[n]=!0;var o=e.node(n);i[o.rank].push(n),r.forEach(e.successors(n),a)}}var s=r.sortBy(n,(function(t){return e.node(t).rank}));return r.forEach(s,a),i}t.exports=o},{\"../lodash\":10}],19:[function(e,t,n){var r=e(\"../lodash\");function o(e,t){var n={};return r.forEach(e,(function(e,t){var o=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};r.isUndefined(e.barycenter)||(o.barycenter=e.barycenter,o.weight=e.weight)})),r.forEach(t.edges(),(function(e){var t=n[e.v],o=n[e.w];r.isUndefined(t)||r.isUndefined(o)||(o.indegree++,t.out.push(n[e.w]))})),i(r.filter(n,(function(e){return!e.indegree})))}function i(e){var t=[];function n(e){return function(t){t.merged||(r.isUndefined(t.barycenter)||r.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&a(e,t)}}function o(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}for(;e.length;){var i=e.pop();t.push(i),r.forEach(i.in.reverse(),n(i)),r.forEach(i.out,o(i))}return r.map(r.filter(t,(function(e){return!e.merged})),(function(e){return r.pick(e,[\"vs\",\"i\",\"barycenter\",\"weight\"])}))}function a(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}t.exports=o},{\"../lodash\":10}],20:[function(e,t,n){var r=e(\"../lodash\"),o=e(\"./barycenter\"),i=e(\"./resolve-conflicts\"),a=e(\"./sort\");function s(e,t,n,f){var d=e.children(t),h=e.node(t),l=h?h.borderLeft:void 0,p=h?h.borderRight:void 0,v={};l&&(d=r.filter(d,(function(e){return e!==l&&e!==p})));var _=o(e,d);r.forEach(_,(function(t){if(e.children(t.v).length){var o=s(e,t.v,n,f);v[t.v]=o,r.has(o,\"barycenter\")&&c(t,o)}}));var y=i(_,n);u(y,v);var g=a(y,f);if(l&&(g.vs=r.flatten([l,g.vs,p],!0),e.predecessors(l).length)){var b=e.node(e.predecessors(l)[0]),m=e.node(e.predecessors(p)[0]);r.has(g,\"barycenter\")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+b.order+m.order)/(g.weight+2),g.weight+=2}return g}function u(e,t){r.forEach(e,(function(e){e.vs=r.flatten(e.vs.map((function(e){return t[e]?t[e].vs:e})),!0)}))}function c(e,t){r.isUndefined(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}t.exports=s},{\"../lodash\":10,\"./barycenter\":14,\"./resolve-conflicts\":19,\"./sort\":21}],21:[function(e,t,n){var r=e(\"../lodash\"),o=e(\"../util\");function i(e,t){var n=o.partition(e,(function(e){return r.has(e,\"barycenter\")})),i=n.lhs,u=r.sortBy(n.rhs,(function(e){return-e.i})),c=[],f=0,d=0,h=0;i.sort(s(!!t)),h=a(c,u,h),r.forEach(i,(function(e){h+=e.vs.length,c.push(e.vs),f+=e.barycenter*e.weight,d+=e.weight,h=a(c,u,h)}));var l={vs:r.flatten(c,!0)};return d&&(l.barycenter=f/d,l.weight=d),l}function a(e,t,n){for(var o;t.length&&(o=r.last(t)).i<=n;)t.pop(),e.push(o.vs),n++;return n}function s(e){return function(t,n){return t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i}}t.exports=i},{\"../lodash\":10,\"../util\":29}],22:[function(e,t,n){var r=e(\"./lodash\");function o(e){var t=a(e);r.forEach(e.graph().dummyChains,(function(n){for(var r=e.node(n),o=r.edgeObj,a=i(e,t,o.v,o.w),s=a.path,u=a.lca,c=0,f=s[c],d=!0;n!==o.w;){if(r=e.node(n),d){for(;(f=s[c])!==u&&e.node(f).maxRank<r.rank;)c++;f===u&&(d=!1)}if(!d){for(;c<s.length-1&&e.node(f=s[c+1]).minRank<=r.rank;)c++;f=s[c]}e.setParent(n,f),n=e.successors(n)[0]}}))}function i(e,t,n,r){var o,i,a=[],s=[],u=Math.min(t[n].low,t[r].low),c=Math.max(t[n].lim,t[r].lim);o=n;do{o=e.parent(o),a.push(o)}while(o&&(t[o].low>u||c>t[o].lim));for(i=o,o=r;(o=e.parent(o))!==i;)s.push(o);return{path:a.concat(s.reverse()),lca:i}}function a(e){var t={},n=0;function o(i){var a=n;r.forEach(e.children(i),o),t[i]={low:a,lim:n++}}return r.forEach(e.children(),o),t}t.exports=o},{\"./lodash\":10}],23:[function(e,t,n){var r=e(\"../lodash\"),o=e(\"../graphlib\").Graph,i=e(\"../util\");function a(e,t){var n={};function o(t,o){var i=0,a=0,s=t.length,f=r.last(o);return r.forEach(o,(function(t,d){var h=u(e,t),l=h?e.node(h).order:s;(h||t===f)&&(r.forEach(o.slice(a,d+1),(function(t){r.forEach(e.predecessors(t),(function(r){var o=e.node(r),a=o.order;!(a<i||l<a)||o.dummy&&e.node(t).dummy||c(n,r,t)}))})),a=d+1,i=l)})),o}return r.reduce(t,o),n}function s(e,t){var n={};function o(t,o,i,a,s){var u;r.forEach(r.range(o,i),(function(o){u=t[o],e.node(u).dummy&&r.forEach(e.predecessors(u),(function(t){var r=e.node(t);r.dummy&&(r.order<a||r.order>s)&&c(n,t,u)}))}))}function i(t,n){var i,a=-1,s=0;return r.forEach(n,(function(r,u){if(\"border\"===e.node(r).dummy){var c=e.predecessors(r);c.length&&(i=e.node(c[0]).order,o(n,s,u,a,i),s=u,a=i)}o(n,s,n.length,i,t.length)})),n}return r.reduce(t,i),n}function u(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),(function(t){return e.node(t).dummy}))}function c(e,t,n){if(t>n){var r=t;t=n,n=r}var o=e[t];o||(e[t]=o={}),o[n]=!0}function f(e,t,n){if(t>n){var o=t;t=n,n=o}return r.has(e[t],n)}function d(e,t,n,o){var i={},a={},s={};return r.forEach(t,(function(e){r.forEach(e,(function(e,t){i[e]=e,a[e]=e,s[e]=t}))})),r.forEach(t,(function(e){var t=-1;r.forEach(e,(function(e){var u=o(e);if(u.length){u=r.sortBy(u,(function(e){return s[e]}));for(var c=(u.length-1)/2,d=Math.floor(c),h=Math.ceil(c);d<=h;++d){var l=u[d];a[e]===e&&t<s[l]&&!f(n,e,l)&&(a[l]=e,a[e]=i[e]=i[l],t=s[l])}}}))})),{root:i,align:a}}function h(e,t,n,o,i){var a={},s=l(e,t,n,i),u=i?\"borderLeft\":\"borderRight\";function c(e,t){for(var n=s.nodes(),r=n.pop(),o={};r;)o[r]?e(r):(o[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}function f(e){a[e]=s.inEdges(e).reduce((function(e,t){return Math.max(e,a[t.v]+s.edge(t))}),0)}function d(t){var n=s.outEdges(t).reduce((function(e,t){return Math.min(e,a[t.w]-s.edge(t))}),Number.POSITIVE_INFINITY),r=e.node(t);n!==Number.POSITIVE_INFINITY&&r.borderType!==u&&(a[t]=Math.max(a[t],n))}return c(f,s.predecessors.bind(s)),c(d,s.successors.bind(s)),r.forEach(o,(function(e){a[e]=a[n[e]]})),a}function l(e,t,n,i){var a=new o,s=e.graph(),u=g(s.nodesep,s.edgesep,i);return r.forEach(t,(function(t){var o;r.forEach(t,(function(t){var r=n[t];if(a.setNode(r),o){var i=n[o],s=a.edge(i,r);a.setEdge(i,r,Math.max(u(e,t,o),s||0))}o=t}))})),a}function p(e,t){return r.minBy(r.values(t),(function(t){var n=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return r.forIn(t,(function(t,r){var i=b(e,r)/2;n=Math.max(t+i,n),o=Math.min(t-i,o)})),n-o}))}function v(e,t){var n=r.values(t),o=r.min(n),i=r.max(n);r.forEach([\"u\",\"d\"],(function(n){r.forEach([\"l\",\"r\"],(function(a){var s,u=n+a,c=e[u];if(c!==t){var f=r.values(c);(s=\"l\"===a?o-r.min(f):i-r.max(f))&&(e[u]=r.mapValues(c,(function(e){return e+s})))}}))}))}function _(e,t){return r.mapValues(e.ul,(function(n,o){if(t)return e[t.toLowerCase()][o];var i=r.sortBy(r.map(e,o));return(i[1]+i[2])/2}))}function y(e){var t,n=i.buildLayerMatrix(e),o=r.merge(a(e,n),s(e,n)),u={};r.forEach([\"u\",\"d\"],(function(i){t=\"u\"===i?n:r.values(n).reverse(),r.forEach([\"l\",\"r\"],(function(n){\"r\"===n&&(t=r.map(t,(function(e){return r.values(e).reverse()})));var a=(\"u\"===i?e.predecessors:e.successors).bind(e),s=d(e,t,o,a),c=h(e,t,s.root,s.align,\"r\"===n);\"r\"===n&&(c=r.mapValues(c,(function(e){return-e}))),u[i+n]=c}))}));var c=p(e,u);return v(u,c),_(u,e.graph().align)}function g(e,t,n){return function(o,i,a){var s,u=o.node(i),c=o.node(a),f=0;if(f+=u.width/2,r.has(u,\"labelpos\"))switch(u.labelpos.toLowerCase()){case\"l\":s=-u.width/2;break;case\"r\":s=u.width/2}if(s&&(f+=n?s:-s),s=0,f+=(u.dummy?t:e)/2,f+=(c.dummy?t:e)/2,f+=c.width/2,r.has(c,\"labelpos\"))switch(c.labelpos.toLowerCase()){case\"l\":s=c.width/2;break;case\"r\":s=-c.width/2}return s&&(f+=n?s:-s),s=0,f}}function b(e,t){return e.node(t).width}t.exports={positionX:y,findType1Conflicts:a,findType2Conflicts:s,addConflict:c,hasConflict:f,verticalAlignment:d,horizontalCompaction:h,alignCoordinates:v,findSmallestWidthAlignment:p,balance:_}},{\"../graphlib\":7,\"../lodash\":10,\"../util\":29}],24:[function(e,t,n){var r=e(\"../lodash\"),o=e(\"../util\"),i=e(\"./bk\").positionX;function a(e){s(e=o.asNonCompoundGraph(e)),r.forEach(i(e),(function(t,n){e.node(n).x=t}))}function s(e){var t=o.buildLayerMatrix(e),n=e.graph().ranksep,i=0;r.forEach(t,(function(t){var o=r.max(r.map(t,(function(t){return e.node(t).height})));r.forEach(t,(function(t){e.node(t).y=i+o/2})),i+=o+n}))}t.exports=a},{\"../lodash\":10,\"../util\":29,\"./bk\":23}],25:[function(e,t,n){var r=e(\"../lodash\"),o=e(\"../graphlib\").Graph,i=e(\"./util\").slack;function a(e){var t,n,r=new o({directed:!1}),a=e.nodes()[0],f=e.nodeCount();for(r.setNode(a,{});s(r,e)<f;)t=u(r,e),n=r.hasNode(t.v)?i(e,t):-i(e,t),c(r,e,n);return r}function s(e,t){function n(o){r.forEach(t.nodeEdges(o),(function(r){var a=r.v,s=o===a?r.w:a;e.hasNode(s)||i(t,r)||(e.setNode(s,{}),e.setEdge(o,s,{}),n(s))}))}return r.forEach(e.nodes(),n),e.nodeCount()}function u(e,t){return r.minBy(t.edges(),(function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return i(t,n)}))}function c(e,t,n){r.forEach(e.nodes(),(function(e){t.node(e).rank+=n}))}t.exports=a},{\"../graphlib\":7,\"../lodash\":10,\"./util\":28}],26:[function(e,t,n){var r=e(\"./util\").longestPath,o=e(\"./feasible-tree\"),i=e(\"./network-simplex\");function a(e){switch(e.graph().ranker){case\"network-simplex\":default:c(e);break;case\"tight-tree\":u(e);break;case\"longest-path\":s(e)}}t.exports=a;var s=r;function u(e){r(e),o(e)}function c(e){i(e)}},{\"./feasible-tree\":25,\"./network-simplex\":27,\"./util\":28}],27:[function(e,t,n){var r=e(\"../lodash\"),o=e(\"./feasible-tree\"),i=e(\"./util\").slack,a=e(\"./util\").longestPath,s=e(\"../graphlib\").alg.preorder,u=e(\"../graphlib\").alg.postorder,c=e(\"../util\").simplify;function f(e){e=c(e),a(e);var t,n=o(e);for(p(n),d(n,e);t=_(n);)g(n,e,t,y(n,e,t))}function d(e,t){var n=u(e,e.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){h(e,t,n)}))}function h(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=l(e,t,n)}function l(e,t,n){var o=e.node(n).parent,i=!0,a=t.edge(n,o),s=0;return a||(i=!1,a=t.edge(o,n)),s=a.weight,r.forEach(t.nodeEdges(n),(function(r){var a=r.v===n,u=a?r.w:r.v;if(u!==o){var c=a===i,f=t.edge(r).weight;if(s+=c?f:-f,m(e,n,u)){var d=e.edge(n,u).cutvalue;s+=c?-d:d}}})),s}function p(e,t){arguments.length<2&&(t=e.nodes()[0]),v(e,{},1,t)}function v(e,t,n,o,i){var a=n,s=e.node(o);return t[o]=!0,r.forEach(e.neighbors(o),(function(i){r.has(t,i)||(n=v(e,t,n,i,o))})),s.low=a,s.lim=n++,i?s.parent=i:delete s.parent,n}function _(e){return r.find(e.edges(),(function(t){return e.edge(t).cutvalue<0}))}function y(e,t,n){var o=n.v,a=n.w;t.hasEdge(o,a)||(o=n.w,a=n.v);var s=e.node(o),u=e.node(a),c=s,f=!1;s.lim>u.lim&&(c=u,f=!0);var d=r.filter(t.edges(),(function(t){return f===x(e,e.node(t.v),c)&&f!==x(e,e.node(t.w),c)}));return r.minBy(d,(function(e){return i(t,e)}))}function g(e,t,n,r){var o=n.v,i=n.w;e.removeEdge(o,i),e.setEdge(r.v,r.w,{}),p(e),d(e,t),b(e,t)}function b(e,t){var n=r.find(e.nodes(),(function(e){return!t.node(e).parent})),o=s(e,n);o=o.slice(1),r.forEach(o,(function(n){var r=e.node(n).parent,o=t.edge(n,r),i=!1;o||(o=t.edge(r,n),i=!0),t.node(n).rank=t.node(r).rank+(i?o.minlen:-o.minlen)}))}function m(e,t,n){return e.hasEdge(t,n)}function x(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}t.exports=f,f.initLowLimValues=p,f.initCutValues=d,f.calcCutValue=l,f.leaveEdge=_,f.enterEdge=y,f.exchangeEdges=g},{\"../graphlib\":7,\"../lodash\":10,\"../util\":29,\"./feasible-tree\":25,\"./util\":28}],28:[function(e,t,n){var r=e(\"../lodash\");function o(e){var t={};function n(o){var i=e.node(o);if(r.has(t,o))return i.rank;t[o]=!0;var a=r.min(r.map(e.outEdges(o),(function(t){return n(t.w)-e.edge(t).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),i.rank=a}r.forEach(e.sources(),n)}function i(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}t.exports={longestPath:o,slack:i}},{\"../lodash\":10}],29:[function(e,t,n){var r=e(\"./lodash\"),o=e(\"./graphlib\").Graph;function i(e,t,n,o){var i;do{i=r.uniqueId(o)}while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function a(e){var t=(new o).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},o=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})})),t}function s(e){var t=new o({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t}function u(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.outEdges(t),(function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)}function c(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.inEdges(t),(function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)}function f(e,t){var n,r,o=e.x,i=e.y,a=t.x-o,s=t.y-i,u=e.width/2,c=e.height/2;if(!a&&!s)throw new Error(\"Not possible to find intersection inside of the rectangle\");return Math.abs(s)*u>Math.abs(a)*c?(s<0&&(c=-c),n=c*a/s,r=c):(a<0&&(u=-u),n=u,r=u*s/a),{x:o+n,y:i+r}}function d(e){var t=r.map(r.range(v(e)+1),(function(){return[]}));return r.forEach(e.nodes(),(function(n){var o=e.node(n),i=o.rank;r.isUndefined(i)||(t[i][o.order]=n)})),t}function h(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank})));r.forEach(e.nodes(),(function(n){var o=e.node(n);r.has(o,\"rank\")&&(o.rank-=t)}))}function l(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank}))),n=[];r.forEach(e.nodes(),(function(r){var o=e.node(r).rank-t;n[o]||(n[o]=[]),n[o].push(r)}));var o=0,i=e.graph().nodeRankFactor;r.forEach(n,(function(t,n){r.isUndefined(t)&&n%i!=0?--o:o&&r.forEach(t,(function(t){e.node(t).rank+=o}))}))}function p(e,t,n,r){var o={width:0,height:0};return arguments.length>=4&&(o.rank=n,o.order=r),i(e,\"border\",o,t)}function v(e){return r.max(r.map(e.nodes(),(function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n})))}function _(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n}function y(e,t){var n=r.now();try{return t()}finally{console.log(e+\" time: \"+(r.now()-n)+\"ms\")}}function g(e,t){return t()}t.exports={addDummyNode:i,simplify:a,asNonCompoundGraph:s,successorWeights:u,predecessorWeights:c,intersectRect:f,buildLayerMatrix:d,normalizeRanks:h,removeEmptyRanks:l,addBorderNode:p,maxRank:v,partition:_,time:y,notime:g}},{\"./graphlib\":7,\"./lodash\":10}],30:[function(e,t,n){t.exports=\"0.8.5\"},{}],31:[function(e,t,n){var r=e(\"./lib\");t.exports={Graph:r.Graph,json:e(\"./lib/json\"),alg:e(\"./lib/alg\"),version:r.version}},{\"./lib\":47,\"./lib/alg\":38,\"./lib/json\":48}],32:[function(e,t,n){var r=e(\"../lodash\");function o(e){var t,n={},o=[];function i(o){r.has(n,o)||(n[o]=!0,t.push(o),r.each(e.successors(o),i),r.each(e.predecessors(o),i))}return r.each(e.nodes(),(function(e){t=[],i(e),t.length&&o.push(t)})),o}t.exports=o},{\"../lodash\":49}],33:[function(e,t,n){var r=e(\"../lodash\");function o(e,t,n){r.isArray(t)||(t=[t]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],s={};return r.each(t,(function(t){if(!e.hasNode(t))throw new Error(\"Graph does not have node: \"+t);i(e,t,\"post\"===n,s,o,a)})),a}function i(e,t,n,o,a,s){r.has(o,t)||(o[t]=!0,n||s.push(t),r.each(a(t),(function(t){i(e,t,n,o,a,s)})),n&&s.push(t))}t.exports=o},{\"../lodash\":49}],34:[function(e,t,n){var r=e(\"./dijkstra\"),o=e(\"../lodash\");function i(e,t,n){return o.transform(e.nodes(),(function(o,i){o[i]=r(e,i,t,n)}),{})}t.exports=i},{\"../lodash\":49,\"./dijkstra\":35}],35:[function(e,t,n){var r=e(\"../lodash\"),o=e(\"../data/priority-queue\");t.exports=a;var i=r.constant(1);function a(e,t,n,r){return s(e,String(t),n||i,r||function(t){return e.outEdges(t)})}function s(e,t,n,r){var i,a,s={},u=new o,c=function(e){var t=e.v!==i?e.v:e.w,r=s[t],o=n(e),c=a.distance+o;if(o<0)throw new Error(\"dijkstra does not allow negative edge weights. Bad edge: \"+e+\" Weight: \"+o);c<r.distance&&(r.distance=c,r.predecessor=i,u.decrease(t,c))};for(e.nodes().forEach((function(e){var n=e===t?0:Number.POSITIVE_INFINITY;s[e]={distance:n},u.add(e,n)}));u.size()>0&&(i=u.removeMin(),(a=s[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return s}},{\"../data/priority-queue\":45,\"../lodash\":49}],36:[function(e,t,n){var r=e(\"../lodash\"),o=e(\"./tarjan\");function i(e){return r.filter(o(e),(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])}))}t.exports=i},{\"../lodash\":49,\"./tarjan\":43}],37:[function(e,t,n){var r=e(\"../lodash\");t.exports=i;var o=r.constant(1);function i(e,t,n){return a(e,t||o,n||function(t){return e.outEdges(t)})}function a(e,t,n){var r={},o=e.nodes();return o.forEach((function(e){r[e]={},r[e][e]={distance:0},o.forEach((function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})})),n(e).forEach((function(n){var o=n.v===e?n.w:n.v,i=t(n);r[e][o]={distance:i,predecessor:e}}))})),o.forEach((function(e){var t=r[e];o.forEach((function(n){var i=r[n];o.forEach((function(n){var r=i[e],o=t[n],a=i[n],s=r.distance+o.distance;s<a.distance&&(a.distance=s,a.predecessor=o.predecessor)}))}))})),r}},{\"../lodash\":49}],38:[function(e,t,n){t.exports={components:e(\"./components\"),dijkstra:e(\"./dijkstra\"),dijkstraAll:e(\"./dijkstra-all\"),findCycles:e(\"./find-cycles\"),floydWarshall:e(\"./floyd-warshall\"),isAcyclic:e(\"./is-acyclic\"),postorder:e(\"./postorder\"),preorder:e(\"./preorder\"),prim:e(\"./prim\"),tarjan:e(\"./tarjan\"),topsort:e(\"./topsort\")}},{\"./components\":32,\"./dijkstra\":35,\"./dijkstra-all\":34,\"./find-cycles\":36,\"./floyd-warshall\":37,\"./is-acyclic\":39,\"./postorder\":40,\"./preorder\":41,\"./prim\":42,\"./tarjan\":43,\"./topsort\":44}],39:[function(e,t,n){var r=e(\"./topsort\");function o(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}t.exports=o},{\"./topsort\":44}],40:[function(e,t,n){var r=e(\"./dfs\");function o(e,t){return r(e,t,\"post\")}t.exports=o},{\"./dfs\":33}],41:[function(e,t,n){var r=e(\"./dfs\");function o(e,t){return r(e,t,\"pre\")}t.exports=o},{\"./dfs\":33}],42:[function(e,t,n){var r=e(\"../lodash\"),o=e(\"../graph\"),i=e(\"../data/priority-queue\");function a(e,t){var n,a=new o,s={},u=new i;function c(e){var r=e.v===n?e.w:e.v,o=u.priority(r);if(void 0!==o){var i=t(e);i<o&&(s[r]=n,u.decrease(r,i))}}if(0===e.nodeCount())return a;r.each(e.nodes(),(function(e){u.add(e,Number.POSITIVE_INFINITY),a.setNode(e)})),u.decrease(e.nodes()[0],0);for(var f=!1;u.size()>0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(f)throw new Error(\"Input graph is not connected: \"+e);f=!0}e.nodeEdges(n).forEach(c)}return a}t.exports=a},{\"../data/priority-queue\":45,\"../graph\":46,\"../lodash\":49}],43:[function(e,t,n){var r=e(\"../lodash\");function o(e){var t=0,n=[],o={},i=[];function a(s){var u=o[s]={onStack:!0,lowlink:t,index:t++};if(n.push(s),e.successors(s).forEach((function(e){r.has(o,e)?o[e].onStack&&(u.lowlink=Math.min(u.lowlink,o[e].index)):(a(e),u.lowlink=Math.min(u.lowlink,o[e].lowlink))})),u.lowlink===u.index){var c,f=[];do{c=n.pop(),o[c].onStack=!1,f.push(c)}while(s!==c);i.push(f)}}return e.nodes().forEach((function(e){r.has(o,e)||a(e)})),i}t.exports=o},{\"../lodash\":49}],44:[function(e,t,n){var r=e(\"../lodash\");function o(e){var t={},n={},o=[];function a(s){if(r.has(n,s))throw new i;r.has(t,s)||(n[s]=!0,t[s]=!0,r.each(e.predecessors(s),a),delete n[s],o.push(s))}if(r.each(e.sinks(),a),r.size(t)!==e.nodeCount())throw new i;return o}function i(){}t.exports=o,o.CycleException=i,i.prototype=new Error},{\"../lodash\":49}],45:[function(e,t,n){var r=e(\"../lodash\");function o(){this._arr=[],this._keyIndices={}}t.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error(\"Queue underflow\");return this._arr[0].key},o.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var o=this._arr,i=o.length;return n[e]=i,o.push({key:e,priority:t}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error(\"New priority is greater than current priority. Key: \"+e+\" Old: \"+this._arr[n].priority+\" New: \"+t);this._arr[n].priority=t,this._decrease(n)},o.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,o=e;n<t.length&&(o=t[n].priority<t[o].priority?n:o,r<t.length&&(o=t[r].priority<t[o].priority?r:o),o!==e&&(this._swap(e,o),this._heapify(o)))},o.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},o.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,o=n[e],i=n[t];n[e]=i,n[t]=o,r[i.key]=e,r[o.key]=t}},{\"../lodash\":49}],46:[function(e,t,n){var r=e(\"./lodash\");t.exports=s;var o=\"\\0\",i=\"\\0\",a=\"\u0001\";function s(e){this._isDirected=!r.has(e,\"directed\")||e.directed,this._isMultigraph=!!r.has(e,\"multigraph\")&&e.multigraph,this._isCompound=!!r.has(e,\"compound\")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[i]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function u(e,t){e[t]?e[t]++:e[t]=1}function c(e,t){--e[t]||delete e[t]}function f(e,t,n,i){var s=\"\"+t,u=\"\"+n;if(!e&&s>u){var c=s;s=u,u=c}return s+a+u+a+(r.isUndefined(i)?o:i)}function d(e,t,n,r){var o=\"\"+t,i=\"\"+n;if(!e&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};return r&&(s.name=r),s}function h(e,t){return f(e,t.v,t.w,t.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(e){return this._label=e,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return r.keys(this._nodes)},s.prototype.sources=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._in[t])}))},s.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._out[t])}))},s.prototype.setNodes=function(e,t){var n=arguments,o=this;return r.each(e,(function(e){n.length>1?o.setNode(e,t):o.setNode(e)})),this},s.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=i,this._children[e]={},this._children[i][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},s.prototype.node=function(e){return this._nodes[e]},s.prototype.hasNode=function(e){return r.has(this._nodes,e)},s.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},s.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error(\"Cannot set parent in a non-compound graph\");if(r.isUndefined(t))t=i;else{for(var n=t+=\"\";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error(\"Setting \"+t+\" as parent of \"+e+\" would create a cycle\");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},s.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},s.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==i)return t}},s.prototype.children=function(e){if(r.isUndefined(e)&&(e=i),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===i)return this.nodes();if(this.hasNode(e))return[]}},s.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},s.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},s.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},s.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},s.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),r.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var o={};function i(e){var r=n.parent(e);return void 0===r||t.hasNode(r)?(o[e]=r,r):r in o?o[r]:i(r)}return this._isCompound&&r.each(t.nodes(),(function(e){t.setParent(e,i(e))})),t},s.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return r.values(this._edgeObjs)},s.prototype.setPath=function(e,t){var n=this,o=arguments;return r.reduce(e,(function(e,r){return o.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r})),this},s.prototype.setEdge=function(){var e,t,n,o,i=!1,a=arguments[0];\"object\"==typeof a&&null!==a&&\"v\"in a?(e=a.v,t=a.w,n=a.name,2===arguments.length&&(o=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),e=\"\"+e,t=\"\"+t,r.isUndefined(n)||(n=\"\"+n);var s=f(this._isDirected,e,t,n);if(r.has(this._edgeLabels,s))return i&&(this._edgeLabels[s]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error(\"Cannot set a named edge when isMultigraph = false\");this.setNode(e),this.setNode(t),this._edgeLabels[s]=i?o:this._defaultEdgeLabelFn(e,t,n);var c=d(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[s]=c,u(this._preds[t],e),u(this._sucs[e],t),this._in[t][s]=c,this._out[e][s]=c,this._edgeCount++,this},s.prototype.edge=function(e,t,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):f(this._isDirected,e,t,n);return this._edgeLabels[r]},s.prototype.hasEdge=function(e,t,n){var o=1===arguments.length?h(this._isDirected,arguments[0]):f(this._isDirected,e,t,n);return r.has(this._edgeLabels,o)},s.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):f(this._isDirected,e,t,n),o=this._edgeObjs[r];return o&&(e=o.v,t=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],c(this._preds[t],e),c(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},s.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var o=r.values(n);return t?r.filter(o,(function(e){return e.v===t})):o}},s.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var o=r.values(n);return t?r.filter(o,(function(e){return e.w===t})):o}},s.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},{\"./lodash\":49}],47:[function(e,t,n){t.exports={Graph:e(\"./graph\"),version:e(\"./version\")}},{\"./graph\":46,\"./version\":50}],48:[function(e,t,n){var r=e(\"./lodash\"),o=e(\"./graph\");function i(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:a(e),edges:s(e)};return r.isUndefined(e.graph())||(t.value=r.clone(e.graph())),t}function a(e){return r.map(e.nodes(),(function(t){var n=e.node(t),o=e.parent(t),i={v:t};return r.isUndefined(n)||(i.value=n),r.isUndefined(o)||(i.parent=o),i}))}function s(e){return r.map(e.edges(),(function(t){var n=e.edge(t),o={v:t.v,w:t.w};return r.isUndefined(t.name)||(o.name=t.name),r.isUndefined(n)||(o.value=n),o}))}function u(e){var t=new o(e.options).setGraph(e.value);return r.each(e.nodes,(function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)})),r.each(e.edges,(function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)})),t}t.exports={write:i,read:u}},{\"./graph\":46,\"./lodash\":49}],49:[function(e,t,n){var r;if(\"function\"==typeof e)try{r={clone:e(\"lodash/clone\"),constant:e(\"lodash/constant\"),each:e(\"lodash/each\"),filter:e(\"lodash/filter\"),has:e(\"lodash/has\"),isArray:e(\"lodash/isArray\"),isEmpty:e(\"lodash/isEmpty\"),isFunction:e(\"lodash/isFunction\"),isUndefined:e(\"lodash/isUndefined\"),keys:e(\"lodash/keys\"),map:e(\"lodash/map\"),reduce:e(\"lodash/reduce\"),size:e(\"lodash/size\"),transform:e(\"lodash/transform\"),union:e(\"lodash/union\"),values:e(\"lodash/values\")}}catch(e){}r||(r=window._),t.exports=r},{\"lodash/clone\":226,\"lodash/constant\":228,\"lodash/each\":230,\"lodash/filter\":232,\"lodash/has\":239,\"lodash/isArray\":243,\"lodash/isEmpty\":247,\"lodash/isFunction\":248,\"lodash/isUndefined\":258,\"lodash/keys\":259,\"lodash/map\":262,\"lodash/reduce\":274,\"lodash/size\":275,\"lodash/transform\":284,\"lodash/union\":285,\"lodash/values\":287}],50:[function(e,t,n){t.exports=\"2.1.8\"},{}],51:[function(e,t,n){var r=e(\"./_getNative\")(e(\"./_root\"),\"DataView\");t.exports=r},{\"./_getNative\":163,\"./_root\":208}],52:[function(e,t,n){var r=e(\"./_hashClear\"),o=e(\"./_hashDelete\"),i=e(\"./_hashGet\"),a=e(\"./_hashHas\"),s=e(\"./_hashSet\");function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},{\"./_hashClear\":172,\"./_hashDelete\":173,\"./_hashGet\":174,\"./_hashHas\":175,\"./_hashSet\":176}],53:[function(e,t,n){var r=e(\"./_listCacheClear\"),o=e(\"./_listCacheDelete\"),i=e(\"./_listCacheGet\"),a=e(\"./_listCacheHas\"),s=e(\"./_listCacheSet\");function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},{\"./_listCacheClear\":188,\"./_listCacheDelete\":189,\"./_listCacheGet\":190,\"./_listCacheHas\":191,\"./_listCacheSet\":192}],54:[function(e,t,n){var r=e(\"./_getNative\")(e(\"./_root\"),\"Map\");t.exports=r},{\"./_getNative\":163,\"./_root\":208}],55:[function(e,t,n){var r=e(\"./_mapCacheClear\"),o=e(\"./_mapCacheDelete\"),i=e(\"./_mapCacheGet\"),a=e(\"./_mapCacheHas\"),s=e(\"./_mapCacheSet\");function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},{\"./_mapCacheClear\":193,\"./_mapCacheDelete\":194,\"./_mapCacheGet\":195,\"./_mapCacheHas\":196,\"./_mapCacheSet\":197}],56:[function(e,t,n){var r=e(\"./_getNative\")(e(\"./_root\"),\"Promise\");t.exports=r},{\"./_getNative\":163,\"./_root\":208}],57:[function(e,t,n){var r=e(\"./_getNative\")(e(\"./_root\"),\"Set\");t.exports=r},{\"./_getNative\":163,\"./_root\":208}],58:[function(e,t,n){var r=e(\"./_MapCache\"),o=e(\"./_setCacheAdd\"),i=e(\"./_setCacheHas\");function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},{\"./_MapCache\":55,\"./_setCacheAdd\":210,\"./_setCacheHas\":211}],59:[function(e,t,n){var r=e(\"./_ListCache\"),o=e(\"./_stackClear\"),i=e(\"./_stackDelete\"),a=e(\"./_stackGet\"),s=e(\"./_stackHas\"),u=e(\"./_stackSet\");function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},{\"./_ListCache\":53,\"./_stackClear\":215,\"./_stackDelete\":216,\"./_stackGet\":217,\"./_stackHas\":218,\"./_stackSet\":219}],60:[function(e,t,n){var r=e(\"./_root\").Symbol;t.exports=r},{\"./_root\":208}],61:[function(e,t,n){var r=e(\"./_root\").Uint8Array;t.exports=r},{\"./_root\":208}],62:[function(e,t,n){var r=e(\"./_getNative\")(e(\"./_root\"),\"WeakMap\");t.exports=r},{\"./_getNative\":163,\"./_root\":208}],63:[function(e,t,n){function r(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=r},{}],64:[function(e,t,n){function r(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}t.exports=r},{}],65:[function(e,t,n){function r(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}t.exports=r},{}],66:[function(e,t,n){var r=e(\"./_baseIndexOf\");function o(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}t.exports=o},{\"./_baseIndexOf\":95}],67:[function(e,t,n){function r(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}t.exports=r},{}],68:[function(e,t,n){var r=e(\"./_baseTimes\"),o=e(\"./isArguments\"),i=e(\"./isArray\"),a=e(\"./isBuffer\"),s=e(\"./_isIndex\"),u=e(\"./isTypedArray\"),c=Object.prototype.hasOwnProperty;function f(e,t){var n=i(e),f=!n&&o(e),d=!n&&!f&&a(e),h=!n&&!f&&!d&&u(e),l=n||f||d||h,p=l?r(e.length,String):[],v=p.length;for(var _ in e)!t&&!c.call(e,_)||l&&(\"length\"==_||d&&(\"offset\"==_||\"parent\"==_)||h&&(\"buffer\"==_||\"byteLength\"==_||\"byteOffset\"==_)||s(_,v))||p.push(_);return p}t.exports=f},{\"./_baseTimes\":125,\"./_isIndex\":181,\"./isArguments\":242,\"./isArray\":243,\"./isBuffer\":246,\"./isTypedArray\":257}],69:[function(e,t,n){function r(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}t.exports=r},{}],70:[function(e,t,n){function r(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}t.exports=r},{}],71:[function(e,t,n){function r(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}t.exports=r},{}],72:[function(e,t,n){function r(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=r},{}],73:[function(e,t,n){var r=e(\"./_baseProperty\")(\"length\");t.exports=r},{\"./_baseProperty\":117}],74:[function(e,t,n){var r=e(\"./_baseAssignValue\"),o=e(\"./eq\");function i(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}t.exports=i},{\"./_baseAssignValue\":79,\"./eq\":231}],75:[function(e,t,n){var r=e(\"./_baseAssignValue\"),o=e(\"./eq\"),i=Object.prototype.hasOwnProperty;function a(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}t.exports=a},{\"./_baseAssignValue\":79,\"./eq\":231}],76:[function(e,t,n){var r=e(\"./eq\");function o(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}t.exports=o},{\"./eq\":231}],77:[function(e,t,n){var r=e(\"./_copyObject\"),o=e(\"./keys\");function i(e,t){return e&&r(t,o(t),e)}t.exports=i},{\"./_copyObject\":143,\"./keys\":259}],78:[function(e,t,n){var r=e(\"./_copyObject\"),o=e(\"./keysIn\");function i(e,t){return e&&r(t,o(t),e)}t.exports=i},{\"./_copyObject\":143,\"./keysIn\":260}],79:[function(e,t,n){var r=e(\"./_defineProperty\");function o(e,t,n){\"__proto__\"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}t.exports=o},{\"./_defineProperty\":153}],80:[function(e,t,n){var r=e(\"./_Stack\"),o=e(\"./_arrayEach\"),i=e(\"./_assignValue\"),a=e(\"./_baseAssign\"),s=e(\"./_baseAssignIn\"),u=e(\"./_cloneBuffer\"),c=e(\"./_copyArray\"),f=e(\"./_copySymbols\"),d=e(\"./_copySymbolsIn\"),h=e(\"./_getAllKeys\"),l=e(\"./_getAllKeysIn\"),p=e(\"./_getTag\"),v=e(\"./_initCloneArray\"),_=e(\"./_initCloneByTag\"),y=e(\"./_initCloneObject\"),g=e(\"./isArray\"),b=e(\"./isBuffer\"),m=e(\"./isMap\"),x=e(\"./isObject\"),w=e(\"./isSet\"),E=e(\"./keys\"),j=1,k=2,A=4,O=\"[object Arguments]\",I=\"[object Array]\",S=\"[object Boolean]\",C=\"[object Date]\",N=\"[object Error]\",T=\"[object Function]\",M=\"[object GeneratorFunction]\",L=\"[object Map]\",P=\"[object Number]\",F=\"[object Object]\",D=\"[object RegExp]\",B=\"[object Set]\",G=\"[object String]\",R=\"[object Symbol]\",U=\"[object WeakMap]\",z=\"[object ArrayBuffer]\",V=\"[object DataView]\",q=\"[object Float32Array]\",K=\"[object Float64Array]\",H=\"[object Int8Array]\",Y=\"[object Int16Array]\",$=\"[object Int32Array]\",W=\"[object Uint8Array]\",J=\"[object Uint8ClampedArray]\",X=\"[object Uint16Array]\",Z=\"[object Uint32Array]\",Q={};function ee(e,t,n,I,S,C){var N,L=t&j,P=t&k,D=t&A;if(n&&(N=S?n(e,I,S,C):n(e)),void 0!==N)return N;if(!x(e))return e;var B=g(e);if(B){if(N=v(e),!L)return c(e,N)}else{var G=p(e),R=G==T||G==M;if(b(e))return u(e,L);if(G==F||G==O||R&&!S){if(N=P||R?{}:y(e),!L)return P?d(e,s(N,e)):f(e,a(N,e))}else{if(!Q[G])return S?e:{};N=_(e,G,L)}}C||(C=new r);var U=C.get(e);if(U)return U;C.set(e,N),w(e)?e.forEach((function(r){N.add(ee(r,t,n,r,e,C))})):m(e)&&e.forEach((function(r,o){N.set(o,ee(r,t,n,o,e,C))}));var z=D?P?l:h:P?keysIn:E,V=B?void 0:z(e);return o(V||e,(function(r,o){V&&(r=e[o=r]),i(N,o,ee(r,t,n,o,e,C))})),N}Q[O]=Q[I]=Q[z]=Q[V]=Q[S]=Q[C]=Q[q]=Q[K]=Q[H]=Q[Y]=Q[$]=Q[L]=Q[P]=Q[F]=Q[D]=Q[B]=Q[G]=Q[R]=Q[W]=Q[J]=Q[X]=Q[Z]=!0,Q[N]=Q[T]=Q[U]=!1,t.exports=ee},{\"./_Stack\":59,\"./_arrayEach\":64,\"./_assignValue\":75,\"./_baseAssign\":77,\"./_baseAssignIn\":78,\"./_cloneBuffer\":135,\"./_copyArray\":142,\"./_copySymbols\":144,\"./_copySymbolsIn\":145,\"./_getAllKeys\":159,\"./_getAllKeysIn\":160,\"./_getTag\":168,\"./_initCloneArray\":177,\"./_initCloneByTag\":178,\"./_initCloneObject\":179,\"./isArray\":243,\"./isBuffer\":246,\"./isMap\":250,\"./isObject\":251,\"./isSet\":254,\"./keys\":259}],81:[function(e,t,n){var r=e(\"./isObject\"),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();t.exports=i},{\"./isObject\":251}],82:[function(e,t,n){var r=e(\"./_baseForOwn\"),o=e(\"./_createBaseEach\")(r);t.exports=o},{\"./_baseForOwn\":88,\"./_createBaseEach\":148}],83:[function(e,t,n){var r=e(\"./isSymbol\");function o(e,t,n){for(var o=-1,i=e.length;++o<i;){var a=e[o],s=t(a);if(null!=s&&(void 0===u?s==s&&!r(s):n(s,u)))var u=s,c=a}return c}t.exports=o},{\"./isSymbol\":256}],84:[function(e,t,n){var r=e(\"./_baseEach\");function o(e,t){var n=[];return r(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}t.exports=o},{\"./_baseEach\":82}],85:[function(e,t,n){function r(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}t.exports=r},{}],86:[function(e,t,n){var r=e(\"./_arrayPush\"),o=e(\"./_isFlattenable\");function i(e,t,n,a,s){var u=-1,c=e.length;for(n||(n=o),s||(s=[]);++u<c;){var f=e[u];t>0&&n(f)?t>1?i(f,t-1,n,a,s):r(s,f):a||(s[s.length]=f)}return s}t.exports=i},{\"./_arrayPush\":70,\"./_isFlattenable\":180}],87:[function(e,t,n){var r=e(\"./_createBaseFor\")();t.exports=r},{\"./_createBaseFor\":149}],88:[function(e,t,n){var r=e(\"./_baseFor\"),o=e(\"./keys\");function i(e,t){return e&&r(e,t,o)}t.exports=i},{\"./_baseFor\":87,\"./keys\":259}],89:[function(e,t,n){var r=e(\"./_castPath\"),o=e(\"./_toKey\");function i(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}t.exports=i},{\"./_castPath\":133,\"./_toKey\":223}],90:[function(e,t,n){var r=e(\"./_arrayPush\"),o=e(\"./isArray\");function i(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}t.exports=i},{\"./_arrayPush\":70,\"./isArray\":243}],91:[function(e,t,n){var r=e(\"./_Symbol\"),o=e(\"./_getRawTag\"),i=e(\"./_objectToString\"),a=\"[object Null]\",s=\"[object Undefined]\",u=r?r.toStringTag:void 0;function c(e){return null==e?void 0===e?s:a:u&&u in Object(e)?o(e):i(e)}t.exports=c},{\"./_Symbol\":60,\"./_getRawTag\":165,\"./_objectToString\":205}],92:[function(e,t,n){function r(e,t){return e>t}t.exports=r},{}],93:[function(e,t,n){var r=Object.prototype.hasOwnProperty;function o(e,t){return null!=e&&r.call(e,t)}t.exports=o},{}],94:[function(e,t,n){function r(e,t){return null!=e&&t in Object(e)}t.exports=r},{}],95:[function(e,t,n){var r=e(\"./_baseFindIndex\"),o=e(\"./_baseIsNaN\"),i=e(\"./_strictIndexOf\");function a(e,t,n){return t==t?i(e,t,n):r(e,o,n)}t.exports=a},{\"./_baseFindIndex\":85,\"./_baseIsNaN\":101,\"./_strictIndexOf\":220}],96:[function(e,t,n){var r=e(\"./_baseGetTag\"),o=e(\"./isObjectLike\"),i=\"[object Arguments]\";function a(e){return o(e)&&r(e)==i}t.exports=a},{\"./_baseGetTag\":91,\"./isObjectLike\":252}],97:[function(e,t,n){var r=e(\"./_baseIsEqualDeep\"),o=e(\"./isObjectLike\");function i(e,t,n,a,s){return e===t||(null==e||null==t||!o(e)&&!o(t)?e!=e&&t!=t:r(e,t,n,a,i,s))}t.exports=i},{\"./_baseIsEqualDeep\":98,\"./isObjectLike\":252}],98:[function(e,t,n){var r=e(\"./_Stack\"),o=e(\"./_equalArrays\"),i=e(\"./_equalByTag\"),a=e(\"./_equalObjects\"),s=e(\"./_getTag\"),u=e(\"./isArray\"),c=e(\"./isBuffer\"),f=e(\"./isTypedArray\"),d=1,h=\"[object Arguments]\",l=\"[object Array]\",p=\"[object Object]\",v=Object.prototype.hasOwnProperty;function _(e,t,n,_,y,g){var b=u(e),m=u(t),x=b?l:s(e),w=m?l:s(t),E=(x=x==h?p:x)==p,j=(w=w==h?p:w)==p,k=x==w;if(k&&c(e)){if(!c(t))return!1;b=!0,E=!1}if(k&&!E)return g||(g=new r),b||f(e)?o(e,t,n,_,y,g):i(e,t,x,n,_,y,g);if(!(n&d)){var A=E&&v.call(e,\"__wrapped__\"),O=j&&v.call(t,\"__wrapped__\");if(A||O){var I=A?e.value():e,S=O?t.value():t;return g||(g=new r),y(I,S,n,_,g)}}return!!k&&(g||(g=new r),a(e,t,n,_,y,g))}t.exports=_},{\"./_Stack\":59,\"./_equalArrays\":154,\"./_equalByTag\":155,\"./_equalObjects\":156,\"./_getTag\":168,\"./isArray\":243,\"./isBuffer\":246,\"./isTypedArray\":257}],99:[function(e,t,n){var r=e(\"./_getTag\"),o=e(\"./isObjectLike\"),i=\"[object Map]\";function a(e){return o(e)&&r(e)==i}t.exports=a},{\"./_getTag\":168,\"./isObjectLike\":252}],100:[function(e,t,n){var r=e(\"./_Stack\"),o=e(\"./_baseIsEqual\"),i=1,a=2;function s(e,t,n,s){var u=n.length,c=u,f=!s;if(null==e)return!c;for(e=Object(e);u--;){var d=n[u];if(f&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++u<c;){var h=(d=n[u])[0],l=e[h],p=d[1];if(f&&d[2]){if(void 0===l&&!(h in e))return!1}else{var v=new r;if(s)var _=s(l,p,h,e,t,v);if(!(void 0===_?o(p,l,i|a,s,v):_))return!1}}return!0}t.exports=s},{\"./_Stack\":59,\"./_baseIsEqual\":97}],101:[function(e,t,n){function r(e){return e!=e}t.exports=r},{}],102:[function(e,t,n){var r=e(\"./isFunction\"),o=e(\"./_isMasked\"),i=e(\"./isObject\"),a=e(\"./_toSource\"),s=/[\\\\^$.*+?()[\\]{}|]/g,u=/^\\[object .+?Constructor\\]$/,c=Function.prototype,f=Object.prototype,d=c.toString,h=f.hasOwnProperty,l=RegExp(\"^\"+d.call(h).replace(s,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\");function p(e){return!(!i(e)||o(e))&&(r(e)?l:u).test(a(e))}t.exports=p},{\"./_isMasked\":185,\"./_toSource\":224,\"./isFunction\":248,\"./isObject\":251}],103:[function(e,t,n){var r=e(\"./_getTag\"),o=e(\"./isObjectLike\"),i=\"[object Set]\";function a(e){return o(e)&&r(e)==i}t.exports=a},{\"./_getTag\":168,\"./isObjectLike\":252}],104:[function(e,t,n){var r=e(\"./_baseGetTag\"),o=e(\"./isLength\"),i=e(\"./isObjectLike\"),a=\"[object Arguments]\",s=\"[object Array]\",u=\"[object Boolean]\",c=\"[object Date]\",f=\"[object Error]\",d=\"[object Function]\",h=\"[object Map]\",l=\"[object Number]\",p=\"[object Object]\",v=\"[object RegExp]\",_=\"[object Set]\",y=\"[object String]\",g=\"[object WeakMap]\",b=\"[object ArrayBuffer]\",m=\"[object DataView]\",x=\"[object Float64Array]\",w=\"[object Int8Array]\",E=\"[object Int16Array]\",j=\"[object Int32Array]\",k=\"[object Uint8Array]\",A=\"[object Uint8ClampedArray]\",O=\"[object Uint16Array]\",I=\"[object Uint32Array]\",S={};function C(e){return i(e)&&o(e.length)&&!!S[r(e)]}S[\"[object Float32Array]\"]=S[x]=S[w]=S[E]=S[j]=S[k]=S[A]=S[O]=S[I]=!0,S[a]=S[s]=S[b]=S[u]=S[m]=S[c]=S[f]=S[d]=S[h]=S[l]=S[p]=S[v]=S[_]=S[y]=S[g]=!1,t.exports=C},{\"./_baseGetTag\":91,\"./isLength\":249,\"./isObjectLike\":252}],105:[function(e,t,n){var r=e(\"./_baseMatches\"),o=e(\"./_baseMatchesProperty\"),i=e(\"./identity\"),a=e(\"./isArray\"),s=e(\"./property\");function u(e){return\"function\"==typeof e?e:null==e?i:\"object\"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}t.exports=u},{\"./_baseMatches\":110,\"./_baseMatchesProperty\":111,\"./identity\":241,\"./isArray\":243,\"./property\":272}],106:[function(e,t,n){var r=e(\"./_isPrototype\"),o=e(\"./_nativeKeys\"),i=Object.prototype.hasOwnProperty;function a(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&\"constructor\"!=n&&t.push(n);return t}t.exports=a},{\"./_isPrototype\":186,\"./_nativeKeys\":202}],107:[function(e,t,n){var r=e(\"./isObject\"),o=e(\"./_isPrototype\"),i=e(\"./_nativeKeysIn\"),a=Object.prototype.hasOwnProperty;function s(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)(\"constructor\"!=s||!t&&a.call(e,s))&&n.push(s);return n}t.exports=s},{\"./_isPrototype\":186,\"./_nativeKeysIn\":203,\"./isObject\":251}],108:[function(e,t,n){function r(e,t){return e<t}t.exports=r},{}],109:[function(e,t,n){var r=e(\"./_baseEach\"),o=e(\"./isArrayLike\");function i(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}t.exports=i},{\"./_baseEach\":82,\"./isArrayLike\":244}],110:[function(e,t,n){var r=e(\"./_baseIsMatch\"),o=e(\"./_getMatchData\"),i=e(\"./_matchesStrictComparable\");function a(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}t.exports=a},{\"./_baseIsMatch\":100,\"./_getMatchData\":162,\"./_matchesStrictComparable\":199}],111:[function(e,t,n){var r=e(\"./_baseIsEqual\"),o=e(\"./get\"),i=e(\"./hasIn\"),a=e(\"./_isKey\"),s=e(\"./_isStrictComparable\"),u=e(\"./_matchesStrictComparable\"),c=e(\"./_toKey\"),f=1,d=2;function h(e,t){return a(e)&&s(t)?u(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,f|d)}}t.exports=h},{\"./_baseIsEqual\":97,\"./_isKey\":183,\"./_isStrictComparable\":187,\"./_matchesStrictComparable\":199,\"./_toKey\":223,\"./get\":238,\"./hasIn\":240}],112:[function(e,t,n){var r=e(\"./_Stack\"),o=e(\"./_assignMergeValue\"),i=e(\"./_baseFor\"),a=e(\"./_baseMergeDeep\"),s=e(\"./isObject\"),u=e(\"./keysIn\"),c=e(\"./_safeGet\");function f(e,t,n,d,h){e!==t&&i(t,(function(i,u){if(h||(h=new r),s(i))a(e,t,u,n,f,d,h);else{var l=d?d(c(e,u),i,u+\"\",e,t,h):void 0;void 0===l&&(l=i),o(e,u,l)}}),u)}t.exports=f},{\"./_Stack\":59,\"./_assignMergeValue\":74,\"./_baseFor\":87,\"./_baseMergeDeep\":113,\"./_safeGet\":209,\"./isObject\":251,\"./keysIn\":260}],113:[function(e,t,n){var r=e(\"./_assignMergeValue\"),o=e(\"./_cloneBuffer\"),i=e(\"./_cloneTypedArray\"),a=e(\"./_copyArray\"),s=e(\"./_initCloneObject\"),u=e(\"./isArguments\"),c=e(\"./isArray\"),f=e(\"./isArrayLikeObject\"),d=e(\"./isBuffer\"),h=e(\"./isFunction\"),l=e(\"./isObject\"),p=e(\"./isPlainObject\"),v=e(\"./isTypedArray\"),_=e(\"./_safeGet\"),y=e(\"./toPlainObject\");function g(e,t,n,g,b,m,x){var w=_(e,n),E=_(t,n),j=x.get(E);if(j)r(e,n,j);else{var k=m?m(w,E,n+\"\",e,t,x):void 0,A=void 0===k;if(A){var O=c(E),I=!O&&d(E),S=!O&&!I&&v(E);k=E,O||I||S?c(w)?k=w:f(w)?k=a(w):I?(A=!1,k=o(E,!0)):S?(A=!1,k=i(E,!0)):k=[]:p(E)||u(E)?(k=w,u(w)?k=y(w):l(w)&&!h(w)||(k=s(E))):A=!1}A&&(x.set(E,k),b(k,E,g,m,x),x.delete(E)),r(e,n,k)}}t.exports=g},{\"./_assignMergeValue\":74,\"./_cloneBuffer\":135,\"./_cloneTypedArray\":139,\"./_copyArray\":142,\"./_initCloneObject\":179,\"./_safeGet\":209,\"./isArguments\":242,\"./isArray\":243,\"./isArrayLikeObject\":245,\"./isBuffer\":246,\"./isFunction\":248,\"./isObject\":251,\"./isPlainObject\":253,\"./isTypedArray\":257,\"./toPlainObject\":282}],114:[function(e,t,n){var r=e(\"./_arrayMap\"),o=e(\"./_baseIteratee\"),i=e(\"./_baseMap\"),a=e(\"./_baseSortBy\"),s=e(\"./_baseUnary\"),u=e(\"./_compareMultiple\"),c=e(\"./identity\");function f(e,t,n){var f=-1;t=r(t.length?t:[c],s(o));var d=i(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++f,value:e}}));return a(d,(function(e,t){return u(e,t,n)}))}t.exports=f},{\"./_arrayMap\":69,\"./_baseIteratee\":105,\"./_baseMap\":109,\"./_baseSortBy\":124,\"./_baseUnary\":127,\"./_compareMultiple\":141,\"./identity\":241}],115:[function(e,t,n){var r=e(\"./_basePickBy\"),o=e(\"./hasIn\");function i(e,t){return r(e,t,(function(t,n){return o(e,n)}))}t.exports=i},{\"./_basePickBy\":116,\"./hasIn\":240}],116:[function(e,t,n){var r=e(\"./_baseGet\"),o=e(\"./_baseSet\"),i=e(\"./_castPath\");function a(e,t,n){for(var a=-1,s=t.length,u={};++a<s;){var c=t[a],f=r(e,c);n(f,c)&&o(u,i(c,e),f)}return u}t.exports=a},{\"./_baseGet\":89,\"./_baseSet\":122,\"./_castPath\":133}],117:[function(e,t,n){function r(e){return function(t){return null==t?void 0:t[e]}}t.exports=r},{}],118:[function(e,t,n){var r=e(\"./_baseGet\");function o(e){return function(t){return r(t,e)}}t.exports=o},{\"./_baseGet\":89}],119:[function(e,t,n){var r=Math.ceil,o=Math.max;function i(e,t,n,i){for(var a=-1,s=o(r((t-e)/(n||1)),0),u=Array(s);s--;)u[i?s:++a]=e,e+=n;return u}t.exports=i},{}],120:[function(e,t,n){function r(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}t.exports=r},{}],121:[function(e,t,n){var r=e(\"./identity\"),o=e(\"./_overRest\"),i=e(\"./_setToString\");function a(e,t){return i(o(e,t,r),e+\"\")}t.exports=a},{\"./_overRest\":207,\"./_setToString\":213,\"./identity\":241}],122:[function(e,t,n){var r=e(\"./_assignValue\"),o=e(\"./_castPath\"),i=e(\"./_isIndex\"),a=e(\"./isObject\"),s=e(\"./_toKey\");function u(e,t,n,u){if(!a(e))return e;for(var c=-1,f=(t=o(t,e)).length,d=f-1,h=e;null!=h&&++c<f;){var l=s(t[c]),p=n;if(c!=d){var v=h[l];void 0===(p=u?u(v,l,h):void 0)&&(p=a(v)?v:i(t[c+1])?[]:{})}r(h,l,p),h=h[l]}return e}t.exports=u},{\"./_assignValue\":75,\"./_castPath\":133,\"./_isIndex\":181,\"./_toKey\":223,\"./isObject\":251}],123:[function(e,t,n){var r=e(\"./constant\"),o=e(\"./_defineProperty\"),i=e(\"./identity\"),a=o?function(e,t){return o(e,\"toString\",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;t.exports=a},{\"./_defineProperty\":153,\"./constant\":228,\"./identity\":241}],124:[function(e,t,n){function r(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}t.exports=r},{}],125:[function(e,t,n){function r(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=r},{}],126:[function(e,t,n){var r=e(\"./_Symbol\"),o=e(\"./_arrayMap\"),i=e(\"./isArray\"),a=e(\"./isSymbol\"),s=1/0,u=r?r.prototype:void 0,c=u?u.toString:void 0;function f(e){if(\"string\"==typeof e)return e;if(i(e))return o(e,f)+\"\";if(a(e))return c?c.call(e):\"\";var t=e+\"\";return\"0\"==t&&1/e==-s?\"-0\":t}t.exports=f},{\"./_Symbol\":60,\"./_arrayMap\":69,\"./isArray\":243,\"./isSymbol\":256}],127:[function(e,t,n){function r(e){return function(t){return e(t)}}t.exports=r},{}],128:[function(e,t,n){var r=e(\"./_SetCache\"),o=e(\"./_arrayIncludes\"),i=e(\"./_arrayIncludesWith\"),a=e(\"./_cacheHas\"),s=e(\"./_createSet\"),u=e(\"./_setToArray\"),c=200;function f(e,t,n){var f=-1,d=o,h=e.length,l=!0,p=[],v=p;if(n)l=!1,d=i;else if(h>=c){var _=t?null:s(e);if(_)return u(_);l=!1,d=a,v=new r}else v=t?[]:p;e:for(;++f<h;){var y=e[f],g=t?t(y):y;if(y=n||0!==y?y:0,l&&g==g){for(var b=v.length;b--;)if(v[b]===g)continue e;t&&v.push(g),p.push(y)}else d(v,g,n)||(v!==p&&v.push(g),p.push(y))}return p}t.exports=f},{\"./_SetCache\":58,\"./_arrayIncludes\":66,\"./_arrayIncludesWith\":67,\"./_cacheHas\":131,\"./_createSet\":152,\"./_setToArray\":212}],129:[function(e,t,n){var r=e(\"./_arrayMap\");function o(e,t){return r(t,(function(t){return e[t]}))}t.exports=o},{\"./_arrayMap\":69}],130:[function(e,t,n){function r(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var s=r<i?t[r]:void 0;n(a,e[r],s)}return a}t.exports=r},{}],131:[function(e,t,n){function r(e,t){return e.has(t)}t.exports=r},{}],132:[function(e,t,n){var r=e(\"./identity\");function o(e){return\"function\"==typeof e?e:r}t.exports=o},{\"./identity\":241}],133:[function(e,t,n){var r=e(\"./isArray\"),o=e(\"./_isKey\"),i=e(\"./_stringToPath\"),a=e(\"./toString\");function s(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}t.exports=s},{\"./_isKey\":183,\"./_stringToPath\":222,\"./isArray\":243,\"./toString\":283}],134:[function(e,t,n){var r=e(\"./_Uint8Array\");function o(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}t.exports=o},{\"./_Uint8Array\":61}],135:[function(e,t,n){var r=e(\"./_root\"),o=\"object\"==typeof n&&n&&!n.nodeType&&n,i=o&&\"object\"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;function u(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}t.exports=u},{\"./_root\":208}],136:[function(e,t,n){var r=e(\"./_cloneArrayBuffer\");function o(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}t.exports=o},{\"./_cloneArrayBuffer\":134}],137:[function(e,t,n){var r=/\\w*$/;function o(e){var t=new e.constructor(e.source,r.exec(e));return t.lastIndex=e.lastIndex,t}t.exports=o},{}],138:[function(e,t,n){var r=e(\"./_Symbol\"),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;function a(e){return i?Object(i.call(e)):{}}t.exports=a},{\"./_Symbol\":60}],139:[function(e,t,n){var r=e(\"./_cloneArrayBuffer\");function o(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}t.exports=o},{\"./_cloneArrayBuffer\":134}],140:[function(e,t,n){var r=e(\"./isSymbol\");function o(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),s=void 0!==t,u=null===t,c=t==t,f=r(t);if(!u&&!f&&!a&&e>t||a&&s&&c&&!u&&!f||o&&s&&c||!n&&c||!i)return 1;if(!o&&!a&&!f&&e<t||f&&n&&i&&!o&&!a||u&&n&&i||!s&&i||!c)return-1}return 0}t.exports=o},{\"./isSymbol\":256}],141:[function(e,t,n){var r=e(\"./_compareAscending\");function o(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,s=i.length,u=n.length;++o<s;){var c=r(i[o],a[o]);if(c)return o>=u?c:c*(\"desc\"==n[o]?-1:1)}return e.index-t.index}t.exports=o},{\"./_compareAscending\":140}],142:[function(e,t,n){function r(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}t.exports=r},{}],143:[function(e,t,n){var r=e(\"./_assignValue\"),o=e(\"./_baseAssignValue\");function i(e,t,n,i){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var c=t[s],f=i?i(n[c],e[c],c,n,e):void 0;void 0===f&&(f=e[c]),a?o(n,c,f):r(n,c,f)}return n}t.exports=i},{\"./_assignValue\":75,\"./_baseAssignValue\":79}],144:[function(e,t,n){var r=e(\"./_copyObject\"),o=e(\"./_getSymbols\");function i(e,t){return r(e,o(e),t)}t.exports=i},{\"./_copyObject\":143,\"./_getSymbols\":166}],145:[function(e,t,n){var r=e(\"./_copyObject\"),o=e(\"./_getSymbolsIn\");function i(e,t){return r(e,o(e),t)}t.exports=i},{\"./_copyObject\":143,\"./_getSymbolsIn\":167}],146:[function(e,t,n){var r=e(\"./_root\")[\"__core-js_shared__\"];t.exports=r},{\"./_root\":208}],147:[function(e,t,n){var r=e(\"./_baseRest\"),o=e(\"./_isIterateeCall\");function i(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&\"function\"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}t.exports=i},{\"./_baseRest\":121,\"./_isIterateeCall\":182}],148:[function(e,t,n){var r=e(\"./isArrayLike\");function o(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,s=Object(n);(t?a--:++a<i)&&!1!==o(s[a],a,s););return n}}t.exports=o},{\"./isArrayLike\":244}],149:[function(e,t,n){function r(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++o];if(!1===n(i[u],u,i))break}return t}}t.exports=r},{}],150:[function(e,t,n){var r=e(\"./_baseIteratee\"),o=e(\"./isArrayLike\"),i=e(\"./keys\");function a(e){return function(t,n,a){var s=Object(t);if(!o(t)){var u=r(n,3);t=i(t),n=function(e){return u(s[e],e,s)}}var c=e(t,n,a);return c>-1?s[u?t[c]:c]:void 0}}t.exports=a},{\"./_baseIteratee\":105,\"./isArrayLike\":244,\"./keys\":259}],151:[function(e,t,n){var r=e(\"./_baseRange\"),o=e(\"./_isIterateeCall\"),i=e(\"./toFinite\");function a(e){return function(t,n,a){return a&&\"number\"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}t.exports=a},{\"./_baseRange\":119,\"./_isIterateeCall\":182,\"./toFinite\":279}],152:[function(e,t,n){var r=e(\"./_Set\"),o=e(\"./noop\"),i=e(\"./_setToArray\"),a=1/0,s=r&&1/i(new r([,-0]))[1]==a?function(e){return new r(e)}:o;t.exports=s},{\"./_Set\":57,\"./_setToArray\":212,\"./noop\":269}],153:[function(e,t,n){var r=e(\"./_getNative\"),o=function(){try{var e=r(Object,\"defineProperty\");return e({},\"\",{}),e}catch(e){}}();t.exports=o},{\"./_getNative\":163}],154:[function(e,t,n){var r=e(\"./_SetCache\"),o=e(\"./_arraySome\"),i=e(\"./_cacheHas\"),a=1,s=2;function u(e,t,n,u,c,f){var d=n&a,h=e.length,l=t.length;if(h!=l&&!(d&&l>h))return!1;var p=f.get(e);if(p&&f.get(t))return p==t;var v=-1,_=!0,y=n&s?new r:void 0;for(f.set(e,t),f.set(t,e);++v<h;){var g=e[v],b=t[v];if(u)var m=d?u(b,g,v,t,e,f):u(g,b,v,e,t,f);if(void 0!==m){if(m)continue;_=!1;break}if(y){if(!o(t,(function(e,t){if(!i(y,t)&&(g===e||c(g,e,n,u,f)))return y.push(t)}))){_=!1;break}}else if(g!==b&&!c(g,b,n,u,f)){_=!1;break}}return f.delete(e),f.delete(t),_}t.exports=u},{\"./_SetCache\":58,\"./_arraySome\":72,\"./_cacheHas\":131}],155:[function(e,t,n){var r=e(\"./_Symbol\"),o=e(\"./_Uint8Array\"),i=e(\"./eq\"),a=e(\"./_equalArrays\"),s=e(\"./_mapToArray\"),u=e(\"./_setToArray\"),c=1,f=2,d=\"[object Boolean]\",h=\"[object Date]\",l=\"[object Error]\",p=\"[object Map]\",v=\"[object Number]\",_=\"[object RegExp]\",y=\"[object Set]\",g=\"[object String]\",b=\"[object Symbol]\",m=\"[object ArrayBuffer]\",x=\"[object DataView]\",w=r?r.prototype:void 0,E=w?w.valueOf:void 0;function j(e,t,n,r,w,j,k){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case m:return!(e.byteLength!=t.byteLength||!j(new o(e),new o(t)));case d:case h:case v:return i(+e,+t);case l:return e.name==t.name&&e.message==t.message;case _:case g:return e==t+\"\";case p:var A=s;case y:var O=r&c;if(A||(A=u),e.size!=t.size&&!O)return!1;var I=k.get(e);if(I)return I==t;r|=f,k.set(e,t);var S=a(A(e),A(t),r,w,j,k);return k.delete(e),S;case b:if(E)return E.call(e)==E.call(t)}return!1}t.exports=j},{\"./_Symbol\":60,\"./_Uint8Array\":61,\"./_equalArrays\":154,\"./_mapToArray\":198,\"./_setToArray\":212,\"./eq\":231}],156:[function(e,t,n){var r=e(\"./_getAllKeys\"),o=1,i=Object.prototype.hasOwnProperty;function a(e,t,n,a,s,u){var c=n&o,f=r(e),d=f.length;if(d!=r(t).length&&!c)return!1;for(var h=d;h--;){var l=f[h];if(!(c?l in t:i.call(t,l)))return!1}var p=u.get(e);if(p&&u.get(t))return p==t;var v=!0;u.set(e,t),u.set(t,e);for(var _=c;++h<d;){var y=e[l=f[h]],g=t[l];if(a)var b=c?a(g,y,l,t,e,u):a(y,g,l,e,t,u);if(!(void 0===b?y===g||s(y,g,n,a,u):b)){v=!1;break}_||(_=\"constructor\"==l)}if(v&&!_){var m=e.constructor,x=t.constructor;m==x||!(\"constructor\"in e)||!(\"constructor\"in t)||\"function\"==typeof m&&m instanceof m&&\"function\"==typeof x&&x instanceof x||(v=!1)}return u.delete(e),u.delete(t),v}t.exports=a},{\"./_getAllKeys\":159}],157:[function(e,t,n){var r=e(\"./flatten\"),o=e(\"./_overRest\"),i=e(\"./_setToString\");function a(e){return i(o(e,void 0,r),e+\"\")}t.exports=a},{\"./_overRest\":207,\"./_setToString\":213,\"./flatten\":235}],158:[function(t,n,r){(function(e){var t=\"object\"==typeof e&&e&&e.Object===Object&&e;n.exports=t}).call(this,void 0!==e?e:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}],159:[function(e,t,n){var r=e(\"./_baseGetAllKeys\"),o=e(\"./_getSymbols\"),i=e(\"./keys\");function a(e){return r(e,i,o)}t.exports=a},{\"./_baseGetAllKeys\":90,\"./_getSymbols\":166,\"./keys\":259}],160:[function(e,t,n){var r=e(\"./_baseGetAllKeys\"),o=e(\"./_getSymbolsIn\"),i=e(\"./keysIn\");function a(e){return r(e,i,o)}t.exports=a},{\"./_baseGetAllKeys\":90,\"./_getSymbolsIn\":167,\"./keysIn\":260}],161:[function(e,t,n){var r=e(\"./_isKeyable\");function o(e,t){var n=e.__data__;return r(t)?n[\"string\"==typeof t?\"string\":\"hash\"]:n.map}t.exports=o},{\"./_isKeyable\":184}],162:[function(e,t,n){var r=e(\"./_isStrictComparable\"),o=e(\"./keys\");function i(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}t.exports=i},{\"./_isStrictComparable\":187,\"./keys\":259}],163:[function(e,t,n){var r=e(\"./_baseIsNative\"),o=e(\"./_getValue\");function i(e,t){var n=o(e,t);return r(n)?n:void 0}t.exports=i},{\"./_baseIsNative\":102,\"./_getValue\":169}],164:[function(e,t,n){var r=e(\"./_overArg\")(Object.getPrototypeOf,Object);t.exports=r},{\"./_overArg\":206}],165:[function(e,t,n){var r=e(\"./_Symbol\"),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;function u(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}t.exports=u},{\"./_Symbol\":60}],166:[function(e,t,n){var r=e(\"./_arrayFilter\"),o=e(\"./stubArray\"),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;t.exports=s},{\"./_arrayFilter\":65,\"./stubArray\":277}],167:[function(e,t,n){var r=e(\"./_arrayPush\"),o=e(\"./_getPrototype\"),i=e(\"./_getSymbols\"),a=e(\"./stubArray\"),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;t.exports=s},{\"./_arrayPush\":70,\"./_getPrototype\":164,\"./_getSymbols\":166,\"./stubArray\":277}],168:[function(e,t,n){var r=e(\"./_DataView\"),o=e(\"./_Map\"),i=e(\"./_Promise\"),a=e(\"./_Set\"),s=e(\"./_WeakMap\"),u=e(\"./_baseGetTag\"),c=e(\"./_toSource\"),f=\"[object Map]\",d=\"[object Object]\",h=\"[object Promise]\",l=\"[object Set]\",p=\"[object WeakMap]\",v=\"[object DataView]\",_=c(r),y=c(o),g=c(i),b=c(a),m=c(s),x=u;(r&&x(new r(new ArrayBuffer(1)))!=v||o&&x(new o)!=f||i&&x(i.resolve())!=h||a&&x(new a)!=l||s&&x(new s)!=p)&&(x=function(e){var t=u(e),n=t==d?e.constructor:void 0,r=n?c(n):\"\";if(r)switch(r){case _:return v;case y:return f;case g:return h;case b:return l;case m:return p}return t}),t.exports=x},{\"./_DataView\":51,\"./_Map\":54,\"./_Promise\":56,\"./_Set\":57,\"./_WeakMap\":62,\"./_baseGetTag\":91,\"./_toSource\":224}],169:[function(e,t,n){function r(e,t){return null==e?void 0:e[t]}t.exports=r},{}],170:[function(e,t,n){var r=e(\"./_castPath\"),o=e(\"./isArguments\"),i=e(\"./isArray\"),a=e(\"./_isIndex\"),s=e(\"./isLength\"),u=e(\"./_toKey\");function c(e,t,n){for(var c=-1,f=(t=r(t,e)).length,d=!1;++c<f;){var h=u(t[c]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++c!=f?d:!!(f=null==e?0:e.length)&&s(f)&&a(h,f)&&(i(e)||o(e))}t.exports=c},{\"./_castPath\":133,\"./_isIndex\":181,\"./_toKey\":223,\"./isArguments\":242,\"./isArray\":243,\"./isLength\":249}],171:[function(e,t,n){var r=RegExp(\"[\\\\u200d\\\\ud800-\\\\udfff\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\\\\ufe0e\\\\ufe0f]\");function o(e){return r.test(e)}t.exports=o},{}],172:[function(e,t,n){var r=e(\"./_nativeCreate\");function o(){this.__data__=r?r(null):{},this.size=0}t.exports=o},{\"./_nativeCreate\":201}],173:[function(e,t,n){function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}t.exports=r},{}],174:[function(e,t,n){var r=e(\"./_nativeCreate\"),o=\"__lodash_hash_undefined__\",i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}t.exports=a},{\"./_nativeCreate\":201}],175:[function(e,t,n){var r=e(\"./_nativeCreate\"),o=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}t.exports=i},{\"./_nativeCreate\":201}],176:[function(e,t,n){var r=e(\"./_nativeCreate\"),o=\"__lodash_hash_undefined__\";function i(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}t.exports=i},{\"./_nativeCreate\":201}],177:[function(e,t,n){var r=Object.prototype.hasOwnProperty;function o(e){var t=e.length,n=new e.constructor(t);return t&&\"string\"==typeof e[0]&&r.call(e,\"index\")&&(n.index=e.index,n.input=e.input),n}t.exports=o},{}],178:[function(e,t,n){var r=e(\"./_cloneArrayBuffer\"),o=e(\"./_cloneDataView\"),i=e(\"./_cloneRegExp\"),a=e(\"./_cloneSymbol\"),s=e(\"./_cloneTypedArray\"),u=\"[object Boolean]\",c=\"[object Date]\",f=\"[object Map]\",d=\"[object Number]\",h=\"[object RegExp]\",l=\"[object Set]\",p=\"[object String]\",v=\"[object Symbol]\",_=\"[object ArrayBuffer]\",y=\"[object DataView]\",g=\"[object Float32Array]\",b=\"[object Float64Array]\",m=\"[object Int8Array]\",x=\"[object Int16Array]\",w=\"[object Int32Array]\",E=\"[object Uint8Array]\",j=\"[object Uint8ClampedArray]\",k=\"[object Uint16Array]\",A=\"[object Uint32Array]\";function O(e,t,n){var O=e.constructor;switch(t){case _:return r(e);case u:case c:return new O(+e);case y:return o(e,n);case g:case b:case m:case x:case w:case E:case j:case k:case A:return s(e,n);case f:return new O;case d:case p:return new O(e);case h:return i(e);case l:return new O;case v:return a(e)}}t.exports=O},{\"./_cloneArrayBuffer\":134,\"./_cloneDataView\":136,\"./_cloneRegExp\":137,\"./_cloneSymbol\":138,\"./_cloneTypedArray\":139}],179:[function(e,t,n){var r=e(\"./_baseCreate\"),o=e(\"./_getPrototype\"),i=e(\"./_isPrototype\");function a(e){return\"function\"!=typeof e.constructor||i(e)?{}:r(o(e))}t.exports=a},{\"./_baseCreate\":81,\"./_getPrototype\":164,\"./_isPrototype\":186}],180:[function(e,t,n){var r=e(\"./_Symbol\"),o=e(\"./isArguments\"),i=e(\"./isArray\"),a=r?r.isConcatSpreadable:void 0;function s(e){return i(e)||o(e)||!!(a&&e&&e[a])}t.exports=s},{\"./_Symbol\":60,\"./isArguments\":242,\"./isArray\":243}],181:[function(e,t,n){var r=9007199254740991,o=/^(?:0|[1-9]\\d*)$/;function i(e,t){var n=typeof e;return!!(t=null==t?r:t)&&(\"number\"==n||\"symbol\"!=n&&o.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i},{}],182:[function(e,t,n){var r=e(\"./eq\"),o=e(\"./isArrayLike\"),i=e(\"./_isIndex\"),a=e(\"./isObject\");function s(e,t,n){if(!a(n))return!1;var s=typeof t;return!!(\"number\"==s?o(n)&&i(t,n.length):\"string\"==s&&t in n)&&r(n[t],e)}t.exports=s},{\"./_isIndex\":181,\"./eq\":231,\"./isArrayLike\":244,\"./isObject\":251}],183:[function(e,t,n){var r=e(\"./isArray\"),o=e(\"./isSymbol\"),i=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,a=/^\\w*$/;function s(e,t){if(r(e))return!1;var n=typeof e;return!(\"number\"!=n&&\"symbol\"!=n&&\"boolean\"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}t.exports=s},{\"./isArray\":243,\"./isSymbol\":256}],184:[function(e,t,n){function r(e){var t=typeof e;return\"string\"==t||\"number\"==t||\"symbol\"==t||\"boolean\"==t?\"__proto__\"!==e:null===e}t.exports=r},{}],185:[function(e,t,n){var r,o=e(\"./_coreJsData\"),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||\"\"))?\"Symbol(src)_1.\"+r:\"\";function a(e){return!!i&&i in e}t.exports=a},{\"./_coreJsData\":146}],186:[function(e,t,n){var r=Object.prototype;function o(e){var t=e&&e.constructor;return e===(\"function\"==typeof t&&t.prototype||r)}t.exports=o},{}],187:[function(e,t,n){var r=e(\"./isObject\");function o(e){return e==e&&!r(e)}t.exports=o},{\"./isObject\":251}],188:[function(e,t,n){function r(){this.__data__=[],this.size=0}t.exports=r},{}],189:[function(e,t,n){var r=e(\"./_assocIndexOf\"),o=Array.prototype.splice;function i(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}t.exports=i},{\"./_assocIndexOf\":76}],190:[function(e,t,n){var r=e(\"./_assocIndexOf\");function o(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}t.exports=o},{\"./_assocIndexOf\":76}],191:[function(e,t,n){var r=e(\"./_assocIndexOf\");function o(e){return r(this.__data__,e)>-1}t.exports=o},{\"./_assocIndexOf\":76}],192:[function(e,t,n){var r=e(\"./_assocIndexOf\");function o(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}t.exports=o},{\"./_assocIndexOf\":76}],193:[function(e,t,n){var r=e(\"./_Hash\"),o=e(\"./_ListCache\"),i=e(\"./_Map\");function a(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}t.exports=a},{\"./_Hash\":52,\"./_ListCache\":53,\"./_Map\":54}],194:[function(e,t,n){var r=e(\"./_getMapData\");function o(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}t.exports=o},{\"./_getMapData\":161}],195:[function(e,t,n){var r=e(\"./_getMapData\");function o(e){return r(this,e).get(e)}t.exports=o},{\"./_getMapData\":161}],196:[function(e,t,n){var r=e(\"./_getMapData\");function o(e){return r(this,e).has(e)}t.exports=o},{\"./_getMapData\":161}],197:[function(e,t,n){var r=e(\"./_getMapData\");function o(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}t.exports=o},{\"./_getMapData\":161}],198:[function(e,t,n){function r(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}t.exports=r},{}],199:[function(e,t,n){function r(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}t.exports=r},{}],200:[function(e,t,n){var r=e(\"./memoize\"),o=500;function i(e){var t=r(e,(function(e){return n.size===o&&n.clear(),e})),n=t.cache;return t}t.exports=i},{\"./memoize\":265}],201:[function(e,t,n){var r=e(\"./_getNative\")(Object,\"create\");t.exports=r},{\"./_getNative\":163}],202:[function(e,t,n){var r=e(\"./_overArg\")(Object.keys,Object);t.exports=r},{\"./_overArg\":206}],203:[function(e,t,n){function r(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}t.exports=r},{}],204:[function(e,t,n){var r=e(\"./_freeGlobal\"),o=\"object\"==typeof n&&n&&!n.nodeType&&n,i=o&&\"object\"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require(\"util\").types;return e||a&&a.binding&&a.binding(\"util\")}catch(e){}}();t.exports=s},{\"./_freeGlobal\":158}],205:[function(e,t,n){var r=Object.prototype.toString;function o(e){return r.call(e)}t.exports=o},{}],206:[function(e,t,n){function r(e,t){return function(n){return e(t(n))}}t.exports=r},{}],207:[function(e,t,n){var r=e(\"./_apply\"),o=Math.max;function i(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),u=Array(s);++a<s;)u[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(u),r(e,this,c)}}t.exports=i},{\"./_apply\":63}],208:[function(e,t,n){var r=e(\"./_freeGlobal\"),o=\"object\"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function(\"return this\")();t.exports=i},{\"./_freeGlobal\":158}],209:[function(e,t,n){function r(e,t){if((\"constructor\"!==t||\"function\"!=typeof e[t])&&\"__proto__\"!=t)return e[t]}t.exports=r},{}],210:[function(e,t,n){var r=\"__lodash_hash_undefined__\";function o(e){return this.__data__.set(e,r),this}t.exports=o},{}],211:[function(e,t,n){function r(e){return this.__data__.has(e)}t.exports=r},{}],212:[function(e,t,n){function r(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}t.exports=r},{}],213:[function(e,t,n){var r=e(\"./_baseSetToString\"),o=e(\"./_shortOut\")(r);t.exports=o},{\"./_baseSetToString\":123,\"./_shortOut\":214}],214:[function(e,t,n){var r=800,o=16,i=Date.now;function a(e){var t=0,n=0;return function(){var a=i(),s=o-(a-n);if(n=a,s>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=a},{}],215:[function(e,t,n){var r=e(\"./_ListCache\");function o(){this.__data__=new r,this.size=0}t.exports=o},{\"./_ListCache\":53}],216:[function(e,t,n){function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=r},{}],217:[function(e,t,n){function r(e){return this.__data__.get(e)}t.exports=r},{}],218:[function(e,t,n){function r(e){return this.__data__.has(e)}t.exports=r},{}],219:[function(e,t,n){var r=e(\"./_ListCache\"),o=e(\"./_Map\"),i=e(\"./_MapCache\"),a=200;function s(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}t.exports=s},{\"./_ListCache\":53,\"./_Map\":54,\"./_MapCache\":55}],220:[function(e,t,n){function r(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}t.exports=r},{}],221:[function(e,t,n){var r=e(\"./_asciiSize\"),o=e(\"./_hasUnicode\"),i=e(\"./_unicodeSize\");function a(e){return o(e)?i(e):r(e)}t.exports=a},{\"./_asciiSize\":73,\"./_hasUnicode\":171,\"./_unicodeSize\":225}],222:[function(e,t,n){var r=e(\"./_memoizeCapped\"),o=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,i=/\\\\(\\\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(\"\"),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,\"$1\"):n||e)})),t}));t.exports=a},{\"./_memoizeCapped\":200}],223:[function(e,t,n){var r=e(\"./isSymbol\"),o=1/0;function i(e){if(\"string\"==typeof e||r(e))return e;var t=e+\"\";return\"0\"==t&&1/e==-o?\"-0\":t}t.exports=i},{\"./isSymbol\":256}],224:[function(e,t,n){var r=Function.prototype.toString;function o(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+\"\"}catch(e){}}return\"\"}t.exports=o},{}],225:[function(e,t,n){var r=\"\\\\ud800-\\\\udfff\",o=\"[\"+r+\"]\",i=\"[\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff]\",a=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",s=\"[^\"+r+\"]\",u=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",c=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",f=\"(?:\"+i+\"|\"+a+\")?\",d=\"[\\\\ufe0e\\\\ufe0f]?\",h=d+f+\"(?:\\\\u200d(?:\"+[s,u,c].join(\"|\")+\")\"+d+f+\")*\",l=\"(?:\"+[s+i+\"?\",i,u,c,o].join(\"|\")+\")\",p=RegExp(a+\"(?=\"+a+\")|\"+l+h,\"g\");function v(e){for(var t=p.lastIndex=0;p.test(e);)++t;return t}t.exports=v},{}],226:[function(e,t,n){var r=e(\"./_baseClone\"),o=4;function i(e){return r(e,o)}t.exports=i},{\"./_baseClone\":80}],227:[function(e,t,n){var r=e(\"./_baseClone\"),o=1,i=4;function a(e){return r(e,o|i)}t.exports=a},{\"./_baseClone\":80}],228:[function(e,t,n){function r(e){return function(){return e}}t.exports=r},{}],229:[function(e,t,n){var r=e(\"./_baseRest\"),o=e(\"./eq\"),i=e(\"./_isIterateeCall\"),a=e(\"./keysIn\"),s=Object.prototype,u=s.hasOwnProperty,c=r((function(e,t){e=Object(e);var n=-1,r=t.length,c=r>2?t[2]:void 0;for(c&&i(t[0],t[1],c)&&(r=1);++n<r;)for(var f=t[n],d=a(f),h=-1,l=d.length;++h<l;){var p=d[h],v=e[p];(void 0===v||o(v,s[p])&&!u.call(e,p))&&(e[p]=f[p])}return e}));t.exports=c},{\"./_baseRest\":121,\"./_isIterateeCall\":182,\"./eq\":231,\"./keysIn\":260}],230:[function(e,t,n){t.exports=e(\"./forEach\")},{\"./forEach\":236}],231:[function(e,t,n){function r(e,t){return e===t||e!=e&&t!=t}t.exports=r},{}],232:[function(e,t,n){var r=e(\"./_arrayFilter\"),o=e(\"./_baseFilter\"),i=e(\"./_baseIteratee\"),a=e(\"./isArray\");function s(e,t){return(a(e)?r:o)(e,i(t,3))}t.exports=s},{\"./_arrayFilter\":65,\"./_baseFilter\":84,\"./_baseIteratee\":105,\"./isArray\":243}],233:[function(e,t,n){var r=e(\"./_createFind\")(e(\"./findIndex\"));t.exports=r},{\"./_createFind\":150,\"./findIndex\":234}],234:[function(e,t,n){var r=e(\"./_baseFindIndex\"),o=e(\"./_baseIteratee\"),i=e(\"./toInteger\"),a=Math.max;function s(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var u=null==n?0:i(n);return u<0&&(u=a(s+u,0)),r(e,o(t,3),u)}t.exports=s},{\"./_baseFindIndex\":85,\"./_baseIteratee\":105,\"./toInteger\":280}],235:[function(e,t,n){var r=e(\"./_baseFlatten\");function o(e){return null!=e&&e.length?r(e,1):[]}t.exports=o},{\"./_baseFlatten\":86}],236:[function(e,t,n){var r=e(\"./_arrayEach\"),o=e(\"./_baseEach\"),i=e(\"./_castFunction\"),a=e(\"./isArray\");function s(e,t){return(a(e)?r:o)(e,i(t))}t.exports=s},{\"./_arrayEach\":64,\"./_baseEach\":82,\"./_castFunction\":132,\"./isArray\":243}],237:[function(e,t,n){var r=e(\"./_baseFor\"),o=e(\"./_castFunction\"),i=e(\"./keysIn\");function a(e,t){return null==e?e:r(e,o(t),i)}t.exports=a},{\"./_baseFor\":87,\"./_castFunction\":132,\"./keysIn\":260}],238:[function(e,t,n){var r=e(\"./_baseGet\");function o(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}t.exports=o},{\"./_baseGet\":89}],239:[function(e,t,n){var r=e(\"./_baseHas\"),o=e(\"./_hasPath\");function i(e,t){return null!=e&&o(e,t,r)}t.exports=i},{\"./_baseHas\":93,\"./_hasPath\":170}],240:[function(e,t,n){var r=e(\"./_baseHasIn\"),o=e(\"./_hasPath\");function i(e,t){return null!=e&&o(e,t,r)}t.exports=i},{\"./_baseHasIn\":94,\"./_hasPath\":170}],241:[function(e,t,n){function r(e){return e}t.exports=r},{}],242:[function(e,t,n){var r=e(\"./_baseIsArguments\"),o=e(\"./isObjectLike\"),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,\"callee\")&&!s.call(e,\"callee\")};t.exports=u},{\"./_baseIsArguments\":96,\"./isObjectLike\":252}],243:[function(e,t,n){var r=Array.isArray;t.exports=r},{}],244:[function(e,t,n){var r=e(\"./isFunction\"),o=e(\"./isLength\");function i(e){return null!=e&&o(e.length)&&!r(e)}t.exports=i},{\"./isFunction\":248,\"./isLength\":249}],245:[function(e,t,n){var r=e(\"./isArrayLike\"),o=e(\"./isObjectLike\");function i(e){return o(e)&&r(e)}t.exports=i},{\"./isArrayLike\":244,\"./isObjectLike\":252}],246:[function(e,t,n){var r=e(\"./_root\"),o=e(\"./stubFalse\"),i=\"object\"==typeof n&&n&&!n.nodeType&&n,a=i&&\"object\"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===i?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||o;t.exports=u},{\"./_root\":208,\"./stubFalse\":278}],247:[function(e,t,n){var r=e(\"./_baseKeys\"),o=e(\"./_getTag\"),i=e(\"./isArguments\"),a=e(\"./isArray\"),s=e(\"./isArrayLike\"),u=e(\"./isBuffer\"),c=e(\"./_isPrototype\"),f=e(\"./isTypedArray\"),d=\"[object Map]\",h=\"[object Set]\",l=Object.prototype.hasOwnProperty;function p(e){if(null==e)return!0;if(s(e)&&(a(e)||\"string\"==typeof e||\"function\"==typeof e.splice||u(e)||f(e)||i(e)))return!e.length;var t=o(e);if(t==d||t==h)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(l.call(e,n))return!1;return!0}t.exports=p},{\"./_baseKeys\":106,\"./_getTag\":168,\"./_isPrototype\":186,\"./isArguments\":242,\"./isArray\":243,\"./isArrayLike\":244,\"./isBuffer\":246,\"./isTypedArray\":257}],248:[function(e,t,n){var r=e(\"./_baseGetTag\"),o=e(\"./isObject\"),i=\"[object AsyncFunction]\",a=\"[object Function]\",s=\"[object GeneratorFunction]\",u=\"[object Proxy]\";function c(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==u}t.exports=c},{\"./_baseGetTag\":91,\"./isObject\":251}],249:[function(e,t,n){var r=9007199254740991;function o(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=r}t.exports=o},{}],250:[function(e,t,n){var r=e(\"./_baseIsMap\"),o=e(\"./_baseUnary\"),i=e(\"./_nodeUtil\"),a=i&&i.isMap,s=a?o(a):r;t.exports=s},{\"./_baseIsMap\":99,\"./_baseUnary\":127,\"./_nodeUtil\":204}],251:[function(e,t,n){function r(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)}t.exports=r},{}],252:[function(e,t,n){function r(e){return null!=e&&\"object\"==typeof e}t.exports=r},{}],253:[function(e,t,n){var r=e(\"./_baseGetTag\"),o=e(\"./_getPrototype\"),i=e(\"./isObjectLike\"),a=\"[object Object]\",s=Function.prototype,u=Object.prototype,c=s.toString,f=u.hasOwnProperty,d=c.call(Object);function h(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=f.call(t,\"constructor\")&&t.constructor;return\"function\"==typeof n&&n instanceof n&&c.call(n)==d}t.exports=h},{\"./_baseGetTag\":91,\"./_getPrototype\":164,\"./isObjectLike\":252}],254:[function(e,t,n){var r=e(\"./_baseIsSet\"),o=e(\"./_baseUnary\"),i=e(\"./_nodeUtil\"),a=i&&i.isSet,s=a?o(a):r;t.exports=s},{\"./_baseIsSet\":103,\"./_baseUnary\":127,\"./_nodeUtil\":204}],255:[function(e,t,n){var r=e(\"./_baseGetTag\"),o=e(\"./isArray\"),i=e(\"./isObjectLike\"),a=\"[object String]\";function s(e){return\"string\"==typeof e||!o(e)&&i(e)&&r(e)==a}t.exports=s},{\"./_baseGetTag\":91,\"./isArray\":243,\"./isObjectLike\":252}],256:[function(e,t,n){var r=e(\"./_baseGetTag\"),o=e(\"./isObjectLike\"),i=\"[object Symbol]\";function a(e){return\"symbol\"==typeof e||o(e)&&r(e)==i}t.exports=a},{\"./_baseGetTag\":91,\"./isObjectLike\":252}],257:[function(e,t,n){var r=e(\"./_baseIsTypedArray\"),o=e(\"./_baseUnary\"),i=e(\"./_nodeUtil\"),a=i&&i.isTypedArray,s=a?o(a):r;t.exports=s},{\"./_baseIsTypedArray\":104,\"./_baseUnary\":127,\"./_nodeUtil\":204}],258:[function(e,t,n){function r(e){return void 0===e}t.exports=r},{}],259:[function(e,t,n){var r=e(\"./_arrayLikeKeys\"),o=e(\"./_baseKeys\"),i=e(\"./isArrayLike\");function a(e){return i(e)?r(e):o(e)}t.exports=a},{\"./_arrayLikeKeys\":68,\"./_baseKeys\":106,\"./isArrayLike\":244}],260:[function(e,t,n){var r=e(\"./_arrayLikeKeys\"),o=e(\"./_baseKeysIn\"),i=e(\"./isArrayLike\");function a(e){return i(e)?r(e,!0):o(e)}t.exports=a},{\"./_arrayLikeKeys\":68,\"./_baseKeysIn\":107,\"./isArrayLike\":244}],261:[function(e,t,n){function r(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}t.exports=r},{}],262:[function(e,t,n){var r=e(\"./_arrayMap\"),o=e(\"./_baseIteratee\"),i=e(\"./_baseMap\"),a=e(\"./isArray\");function s(e,t){return(a(e)?r:i)(e,o(t,3))}t.exports=s},{\"./_arrayMap\":69,\"./_baseIteratee\":105,\"./_baseMap\":109,\"./isArray\":243}],263:[function(e,t,n){var r=e(\"./_baseAssignValue\"),o=e(\"./_baseForOwn\"),i=e(\"./_baseIteratee\");function a(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,o,t(e,o,i))})),n}t.exports=a},{\"./_baseAssignValue\":79,\"./_baseForOwn\":88,\"./_baseIteratee\":105}],264:[function(e,t,n){var r=e(\"./_baseExtremum\"),o=e(\"./_baseGt\"),i=e(\"./identity\");function a(e){return e&&e.length?r(e,i,o):void 0}t.exports=a},{\"./_baseExtremum\":83,\"./_baseGt\":92,\"./identity\":241}],265:[function(e,t,n){var r=e(\"./_MapCache\"),o=\"Expected a function\";function i(e,t){if(\"function\"!=typeof e||null!=t&&\"function\"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},{\"./_MapCache\":55}],266:[function(e,t,n){var r=e(\"./_baseMerge\"),o=e(\"./_createAssigner\")((function(e,t,n){r(e,t,n)}));t.exports=o},{\"./_baseMerge\":112,\"./_createAssigner\":147}],267:[function(e,t,n){var r=e(\"./_baseExtremum\"),o=e(\"./_baseLt\"),i=e(\"./identity\");function a(e){return e&&e.length?r(e,i,o):void 0}t.exports=a},{\"./_baseExtremum\":83,\"./_baseLt\":108,\"./identity\":241}],268:[function(e,t,n){var r=e(\"./_baseExtremum\"),o=e(\"./_baseIteratee\"),i=e(\"./_baseLt\");function a(e,t){return e&&e.length?r(e,o(t,2),i):void 0}t.exports=a},{\"./_baseExtremum\":83,\"./_baseIteratee\":105,\"./_baseLt\":108}],269:[function(e,t,n){function r(){}t.exports=r},{}],270:[function(e,t,n){var r=e(\"./_root\"),o=function(){return r.Date.now()};t.exports=o},{\"./_root\":208}],271:[function(e,t,n){var r=e(\"./_basePick\"),o=e(\"./_flatRest\")((function(e,t){return null==e?{}:r(e,t)}));t.exports=o},{\"./_basePick\":115,\"./_flatRest\":157}],272:[function(e,t,n){var r=e(\"./_baseProperty\"),o=e(\"./_basePropertyDeep\"),i=e(\"./_isKey\"),a=e(\"./_toKey\");function s(e){return i(e)?r(a(e)):o(e)}t.exports=s},{\"./_baseProperty\":117,\"./_basePropertyDeep\":118,\"./_isKey\":183,\"./_toKey\":223}],273:[function(e,t,n){var r=e(\"./_createRange\")();t.exports=r},{\"./_createRange\":151}],274:[function(e,t,n){var r=e(\"./_arrayReduce\"),o=e(\"./_baseEach\"),i=e(\"./_baseIteratee\"),a=e(\"./_baseReduce\"),s=e(\"./isArray\");function u(e,t,n){var u=s(e)?r:a,c=arguments.length<3;return u(e,i(t,4),n,c,o)}t.exports=u},{\"./_arrayReduce\":71,\"./_baseEach\":82,\"./_baseIteratee\":105,\"./_baseReduce\":120,\"./isArray\":243}],275:[function(e,t,n){var r=e(\"./_baseKeys\"),o=e(\"./_getTag\"),i=e(\"./isArrayLike\"),a=e(\"./isString\"),s=e(\"./_stringSize\"),u=\"[object Map]\",c=\"[object Set]\";function f(e){if(null==e)return 0;if(i(e))return a(e)?s(e):e.length;var t=o(e);return t==u||t==c?e.size:r(e).length}t.exports=f},{\"./_baseKeys\":106,\"./_getTag\":168,\"./_stringSize\":221,\"./isArrayLike\":244,\"./isString\":255}],276:[function(e,t,n){var r=e(\"./_baseFlatten\"),o=e(\"./_baseOrderBy\"),i=e(\"./_baseRest\"),a=e(\"./_isIterateeCall\"),s=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));t.exports=s},{\"./_baseFlatten\":86,\"./_baseOrderBy\":114,\"./_baseRest\":121,\"./_isIterateeCall\":182}],277:[function(e,t,n){function r(){return[]}t.exports=r},{}],278:[function(e,t,n){function r(){return!1}t.exports=r},{}],279:[function(e,t,n){var r=e(\"./toNumber\"),o=1/0,i=17976931348623157e292;function a(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*i:e==e?e:0:0===e?e:0}t.exports=a},{\"./toNumber\":281}],280:[function(e,t,n){var r=e(\"./toFinite\");function o(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}t.exports=o},{\"./toFinite\":279}],281:[function(e,t,n){var r=e(\"./isObject\"),o=e(\"./isSymbol\"),i=NaN,a=/^\\s+|\\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt;function d(e){if(\"number\"==typeof e)return e;if(o(e))return i;if(r(e)){var t=\"function\"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+\"\":t}if(\"string\"!=typeof e)return 0===e?e:+e;e=e.replace(a,\"\");var n=u.test(e);return n||c.test(e)?f(e.slice(2),n?2:8):s.test(e)?i:+e}t.exports=d},{\"./isObject\":251,\"./isSymbol\":256}],282:[function(e,t,n){var r=e(\"./_copyObject\"),o=e(\"./keysIn\");function i(e){return r(e,o(e))}t.exports=i},{\"./_copyObject\":143,\"./keysIn\":260}],283:[function(e,t,n){var r=e(\"./_baseToString\");function o(e){return null==e?\"\":r(e)}t.exports=o},{\"./_baseToString\":126}],284:[function(e,t,n){var r=e(\"./_arrayEach\"),o=e(\"./_baseCreate\"),i=e(\"./_baseForOwn\"),a=e(\"./_baseIteratee\"),s=e(\"./_getPrototype\"),u=e(\"./isArray\"),c=e(\"./isBuffer\"),f=e(\"./isFunction\"),d=e(\"./isObject\"),h=e(\"./isTypedArray\");function l(e,t,n){var l=u(e),p=l||c(e)||h(e);if(t=a(t,4),null==n){var v=e&&e.constructor;n=p?l?new v:[]:d(e)&&f(v)?o(s(e)):{}}return(p?r:i)(e,(function(e,r,o){return t(n,e,r,o)})),n}t.exports=l},{\"./_arrayEach\":64,\"./_baseCreate\":81,\"./_baseForOwn\":88,\"./_baseIteratee\":105,\"./_getPrototype\":164,\"./isArray\":243,\"./isBuffer\":246,\"./isFunction\":248,\"./isObject\":251,\"./isTypedArray\":257}],285:[function(e,t,n){var r=e(\"./_baseFlatten\"),o=e(\"./_baseRest\"),i=e(\"./_baseUniq\"),a=e(\"./isArrayLikeObject\"),s=o((function(e){return i(r(e,1,a,!0))}));t.exports=s},{\"./_baseFlatten\":86,\"./_baseRest\":121,\"./_baseUniq\":128,\"./isArrayLikeObject\":245}],286:[function(e,t,n){var r=e(\"./toString\"),o=0;function i(e){var t=++o;return r(e)+t}t.exports=i},{\"./toString\":283}],287:[function(e,t,n){var r=e(\"./_baseValues\"),o=e(\"./keys\");function i(e){return null==e?[]:r(e,o(e))}t.exports=i},{\"./_baseValues\":129,\"./keys\":259}],288:[function(e,t,n){var r=e(\"./_assignValue\"),o=e(\"./_baseZipObject\");function i(e,t){return o(e||[],t||[],r)}t.exports=i},{\"./_assignValue\":75,\"./_baseZipObject\":130}]},{},[1])(1);var r={exports:{}};\n/*!\n\t * @overview es6-promise - a tiny implementation of Promises/A+.\n\t * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)\n\t * @license Licensed under MIT license\n\t * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE\n\t * @version v4.2.8+1e68dce6\n\t */function o(e,t){var r=e.subgraphs,o=e.nodes,i=e.links,a=e.hierarchy,s=new n.exports.graphlib.Graph({multigraph:!0,compound:!0,directed:!1!==t.digraph}).setGraph(t).setDefaultNodeLabel((function(){return{}})).setDefaultEdgeLabel((function(){return{}}));r.forEach((function(e){s.setNode(e.id,e)})),o.forEach((function(e){s.setNode(e.id,e)})),i.forEach((function(e){s.setEdge(e.source.id,e.target.id,e,e.id)})),a.forEach((function(e){s.setParent(e.child,e.parent)})),n.exports.layout(s,{debugTiming:!1});var u=-s.graph().width/2||0,c=-s.graph().height/2;return s.nodes().forEach((function(e){var t=s.node(e);t.x+=u,t.y+=c})),s.edges().forEach((function(e){var t=s.edge(e);t.points=t.points.map((function(e){return[e.x+u,e.y+c]}))})),{subgraphs:r,nodes:o,links:i}}!function(t,n){t.exports=function(){function t(e){var t=typeof e;return null!==e&&(\"object\"===t||\"function\"===t)}function n(e){return\"function\"==typeof e}var r=Array.isArray?Array.isArray:function(e){return\"[object Array]\"===Object.prototype.toString.call(e)},o=0,i=void 0,a=void 0,s=function(e,t){m[o]=e,m[o+1]=t,2===(o+=2)&&(a?a(x):E())};function u(e){a=e}function c(e){s=e}var f=\"undefined\"!=typeof window?window:void 0,d=f||{},h=d.MutationObserver||d.WebKitMutationObserver,l=\"undefined\"==typeof self&&\"undefined\"!=typeof process&&\"[object process]\"==={}.toString.call(process),p=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function v(){return function(){return process.nextTick(x)}}function _(){return void 0!==i?function(){i(x)}:b()}function y(){var e=0,t=new h(x),n=document.createTextNode(\"\");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function g(){var e=new MessageChannel;return e.port1.onmessage=x,function(){return e.port2.postMessage(0)}}function b(){var e=setTimeout;return function(){return e(x,1)}}var m=new Array(1e3);function x(){for(var e=0;e<o;e+=2)(0,m[e])(m[e+1]),m[e]=void 0,m[e+1]=void 0;o=0}function w(){try{var e=Function(\"return this\")().require(\"vertx\");return i=e.runOnLoop||e.runOnContext,_()}catch(e){return b()}}var E=void 0;function j(e,t){var n=this,r=new this.constructor(O);void 0===r[A]&&Y(r);var o=n._state;if(o){var i=arguments[o-1];s((function(){return V(o,r,i,n._result)}))}else U(n,r,e,t);return r}function k(e){var t=this;if(e&&\"object\"==typeof e&&e.constructor===t)return e;var n=new t(O);return D(n,e),n}E=l?v():h?y():p?g():void 0===f?w():b();var A=Math.random().toString(36).substring(2);function O(){}var I=void 0,S=1,C=2;function N(){return new TypeError(\"You cannot resolve a promise with itself\")}function T(){return new TypeError(\"A promises callback cannot return that same promise.\")}function M(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}function L(e,t,n){s((function(e){var r=!1,o=M(n,t,(function(n){r||(r=!0,t!==n?D(e,n):G(e,n))}),(function(t){r||(r=!0,R(e,t))}),\"Settle: \"+(e._label||\" unknown promise\"));!r&&o&&(r=!0,R(e,o))}),e)}function P(e,t){t._state===S?G(e,t._result):t._state===C?R(e,t._result):U(t,void 0,(function(t){return D(e,t)}),(function(t){return R(e,t)}))}function F(e,t,r){t.constructor===e.constructor&&r===j&&t.constructor.resolve===k?P(e,t):void 0===r?G(e,t):n(r)?L(e,t,r):G(e,t)}function D(e,n){if(e===n)R(e,N());else if(t(n)){var r=void 0;try{r=n.then}catch(t){return void R(e,t)}F(e,n,r)}else G(e,n)}function B(e){e._onerror&&e._onerror(e._result),z(e)}function G(e,t){e._state===I&&(e._result=t,e._state=S,0!==e._subscribers.length&&s(z,e))}function R(e,t){e._state===I&&(e._state=C,e._result=t,s(B,e))}function U(e,t,n,r){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+S]=n,o[i+C]=r,0===i&&e._state&&s(z,e)}function z(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,i=e._result,a=0;a<t.length;a+=3)r=t[a],o=t[a+n],r?V(n,r,o,i):o(i);e._subscribers.length=0}}function V(e,t,r,o){var i=n(r),a=void 0,s=void 0,u=!0;if(i){try{a=r(o)}catch(e){u=!1,s=e}if(t===a)return void R(t,T())}else a=o;t._state!==I||(i&&u?D(t,a):!1===u?R(t,s):e===S?G(t,a):e===C&&R(t,a))}function q(e,t){try{t((function(t){D(e,t)}),(function(t){R(e,t)}))}catch(t){R(e,t)}}var K=0;function H(){return K++}function Y(e){e[A]=K++,e._state=void 0,e._result=void 0,e._subscribers=[]}function $(){return new Error(\"Array Methods must be provided an Array\")}var W=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(O),this.promise[A]||Y(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?G(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&G(this.promise,this._result))):R(this.promise,$())}return e.prototype._enumerate=function(e){for(var t=0;this._state===I&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===k){var o=void 0,i=void 0,a=!1;try{o=e.then}catch(e){a=!0,i=e}if(o===j&&e._state!==I)this._settledAt(e._state,t,e._result);else if(\"function\"!=typeof o)this._remaining--,this._result[t]=e;else if(n===te){var s=new n(O);a?R(s,i):F(s,e,o),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===I&&(this._remaining--,e===C?R(r,n):this._result[t]=n),0===this._remaining&&G(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;U(e,void 0,(function(e){return n._settledAt(S,t,e)}),(function(e){return n._settledAt(C,t,e)}))},e}();function J(e){return new W(this,e).promise}function X(e){var t=this;return r(e)?new t((function(n,r){for(var o=e.length,i=0;i<o;i++)t.resolve(e[i]).then(n,r)})):new t((function(e,t){return t(new TypeError(\"You must pass an array to race.\"))}))}function Z(e){var t=new this(O);return R(t,e),t}function Q(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}function ee(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}var te=function(){function e(t){this[A]=H(),this._result=this._state=void 0,this._subscribers=[],O!==t&&(\"function\"!=typeof t&&Q(),this instanceof e?q(this,t):ee())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var t=this,r=t.constructor;return n(e)?t.then((function(t){return r.resolve(e()).then((function(){return t}))}),(function(t){return r.resolve(e()).then((function(){throw t}))})):t.then(e,e)},e}();function ne(){var t=void 0;if(void 0!==e)t=e;else if(\"undefined\"!=typeof self)t=self;else try{t=Function(\"return this\")()}catch(e){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var n=t.Promise;if(n){var r=null;try{r=Object.prototype.toString.call(n.resolve())}catch(e){}if(\"[object Promise]\"===r&&!n.cast)return}t.Promise=te}return te.prototype.then=j,te.all=J,te.race=X,te.resolve=k,te.reject=Z,te._setScheduler=u,te._setAsap=c,te._asap=s,te.polyfill=ne,te.Promise=te,te}()}(r),r.exports.polyfill(),self.onmessage=function(e){var t=o.apply(void 0,e.data);self.postMessage(t)}}();";
|
|
7141
7141
|
var workerBlob = new Blob([workerCode], { type: "application/javascript" });
|
|
7142
7142
|
var workerUrl = URL.createObjectURL(workerBlob);
|
|
7143
7143
|
var worker = new Worker(workerUrl);
|
|
@@ -7359,7 +7359,7 @@
|
|
|
7359
7359
|
|
|
7360
7360
|
function graphviz$1(data, options) {
|
|
7361
7361
|
// eslint-disable-next-line quotes
|
|
7362
|
-
var workerCode = "!function(){\"use strict\";\n/*! *****************************************************************************\n Copyright (c) Microsoft Corporation.\n\n Permission to use, copy, modify, and/or distribute this software for any\n purpose with or without fee is hereby granted.\n\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n PERFORMANCE OF THIS SOFTWARE.\n ***************************************************************************** */function r(r,e,t){if(t||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return r.concat(n||Array.prototype.slice.call(e))}var e,t,n,o={exports:{}};e=o,t=\"undefined\"!=typeof document&&document.currentScript?document.currentScript.src:void 0,n=function(r){var e,n,o=void 0!==(r=r||{})?r:{};o.ready=new Promise((function(r,t){e=r,n=t}));var i,a={};for(i in o)o.hasOwnProperty(i)&&(a[i]=o[i]);var s,u,c=\"./this.program\",f=\"\";\"undefined\"!=typeof document&&document.currentScript&&(f=document.currentScript.src),t&&(f=t),f=0!==f.indexOf(\"blob:\")?f.substr(0,f.lastIndexOf(\"/\")+1):\"\",s=function(r){var e=new XMLHttpRequest;return e.open(\"GET\",r,!1),e.send(null),e.responseText},u=function(r,e,t){var n=new XMLHttpRequest;n.open(\"GET\",r,!0),n.responseType=\"arraybuffer\",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):t()},n.onerror=t,n.send(null)};var l,d,p=o.print||console.log.bind(console),h=o.printErr||console.warn.bind(console);for(i in a)a.hasOwnProperty(i)&&(o[i]=a[i]);a=null,o.arguments,o.thisProgram&&(c=o.thisProgram),o.quit,o.wasmBinary&&(l=o.wasmBinary),o.noExitRuntime,\"object\"!=typeof WebAssembly&&I(\"no native wasm support detected\");var m=!1;function v(r,e){r||I(\"Assertion failed: \"+e)}var w,_,y,g,E,b,k=\"undefined\"!=typeof TextDecoder?new TextDecoder(\"utf8\"):void 0;function D(r,e,t){for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.subarray&&k)return k.decode(r.subarray(e,o));for(var i=\"\";e<o;){var a=r[e++];if(128&a){var s=63&r[e++];if(192!=(224&a)){var u=63&r[e++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&r[e++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function S(r,e){return r?D(y,r,e):\"\"}function P(r,e,t,n){if(!(n>0))return 0;for(var o=t,i=t+n-1,a=0;a<r.length;++a){var s=r.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&r.charCodeAt(++a)),s<=127){if(t>=i)break;e[t++]=s}else if(s<=2047){if(t+1>=i)break;e[t++]=192|s>>6,e[t++]=128|63&s}else if(s<=65535){if(t+2>=i)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|63&s}else{if(t+3>=i)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|63&s}}return e[t]=0,t-o}function F(r){for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&r.charCodeAt(++t)),n<=127?++e:e+=n<=2047?2:n<=65535?3:4}return e}function x(r){w=r,o.HEAP8=_=new Int8Array(r),o.HEAP16=new Int16Array(r),o.HEAP32=g=new Int32Array(r),o.HEAPU8=y=new Uint8Array(r),o.HEAPU16=new Uint16Array(r),o.HEAPU32=new Uint32Array(r),o.HEAPF32=new Float32Array(r),o.HEAPF64=E=new Float64Array(r)}o.INITIAL_MEMORY;var A,M,R,C,z=[],T=[],j=[],B=0,N=null;function O(r){B++,o.monitorRunDependencies&&o.monitorRunDependencies(B)}function L(r){if(B--,o.monitorRunDependencies&&o.monitorRunDependencies(B),0==B&&N){var e=N;N=null,e()}}function I(r){o.onAbort&&o.onAbort(r),h(r+=\"\"),m=!0,r=\"abort(\"+r+\"). Build with -s ASSERTIONS=1 for more info.\";var e=new WebAssembly.RuntimeError(r);throw n(e),e}function U(r){return r.startsWith(\"data:application/octet-stream;base64,\")}function H(r){try{if(r==A&&l)return new Uint8Array(l);throw\"both async and sync fetching of the wasm failed\"}catch(r){I(r)}}o.preloadedImages={},o.preloadedAudios={},U(A=\"expatlib.wasm\")||(M=A,A=o.locateFile?o.locateFile(M,f):f+M);var W={11922:function(r){var e=o.getCache(o.CExpatJS)[r];if(!e.hasOwnProperty(\"startElement\"))throw\"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.\";e.startElement()},12140:function(r){var e=o.getCache(o.CExpatJS)[r];if(!e.hasOwnProperty(\"endElement\"))throw\"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.\";e.endElement()},12352:function(r){var e=o.getCache(o.CExpatJS)[r];if(!e.hasOwnProperty(\"characterData\"))throw\"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.\";e.characterData()}};function G(r){for(;r.length>0;){var e=r.shift();if(\"function\"!=typeof e){var t=e.func;\"number\"==typeof t?void 0===e.arg?b.get(t)():b.get(t)(e.arg):t(void 0===e.arg?null:e.arg)}else e(o)}}var q={splitPath:function(r){return/^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/.exec(r).slice(1)},normalizeArray:function(r,e){for(var t=0,n=r.length-1;n>=0;n--){var o=r[n];\".\"===o?r.splice(n,1):\"..\"===o?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t;t--)r.unshift(\"..\");return r},normalize:function(r){var e=\"/\"===r.charAt(0),t=\"/\"===r.substr(-1);return(r=q.normalizeArray(r.split(\"/\").filter((function(r){return!!r})),!e).join(\"/\"))||e||(r=\".\"),r&&t&&(r+=\"/\"),(e?\"/\":\"\")+r},dirname:function(r){var e=q.splitPath(r),t=e[0],n=e[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):\".\"},basename:function(r){if(\"/\"===r)return\"/\";var e=(r=(r=q.normalize(r)).replace(/\\/$/,\"\")).lastIndexOf(\"/\");return-1===e?r:r.substr(e+1)},extname:function(r){return q.splitPath(r)[3]},join:function(){var r=Array.prototype.slice.call(arguments,0);return q.normalize(r.join(\"/\"))},join2:function(r,e){return q.normalize(r+\"/\"+e)}},V={resolve:function(){for(var r=\"\",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var n=t>=0?arguments[t]:Y.cwd();if(\"string\"!=typeof n)throw new TypeError(\"Arguments to path.resolve must be strings\");if(!n)return\"\";r=n+\"/\"+r,e=\"/\"===n.charAt(0)}return(e?\"/\":\"\")+(r=q.normalizeArray(r.split(\"/\").filter((function(r){return!!r})),!e).join(\"/\"))||\".\"},relative:function(r,e){function t(r){for(var e=0;e<r.length&&\"\"===r[e];e++);for(var t=r.length-1;t>=0&&\"\"===r[t];t--);return e>t?[]:r.slice(e,t-e+1)}r=V.resolve(r).substr(1),e=V.resolve(e).substr(1);for(var n=t(r.split(\"/\")),o=t(e.split(\"/\")),i=Math.min(n.length,o.length),a=i,s=0;s<i;s++)if(n[s]!==o[s]){a=s;break}var u=[];for(s=a;s<n.length;s++)u.push(\"..\");return(u=u.concat(o.slice(a))).join(\"/\")}},J={ttys:[],init:function(){},shutdown:function(){},register:function(r,e){J.ttys[r]={input:[],output:[],ops:e},Y.registerDevice(r,J.stream_ops)},stream_ops:{open:function(r){var e=J.ttys[r.node.rdev];if(!e)throw new Y.ErrnoError(43);r.tty=e,r.seekable=!1},close:function(r){r.tty.ops.flush(r.tty)},flush:function(r){r.tty.ops.flush(r.tty)},read:function(r,e,t,n,o){if(!r.tty||!r.tty.ops.get_char)throw new Y.ErrnoError(60);for(var i=0,a=0;a<n;a++){var s;try{s=r.tty.ops.get_char(r.tty)}catch(r){throw new Y.ErrnoError(29)}if(void 0===s&&0===i)throw new Y.ErrnoError(6);if(null==s)break;i++,e[t+a]=s}return i&&(r.node.timestamp=Date.now()),i},write:function(r,e,t,n,o){if(!r.tty||!r.tty.ops.put_char)throw new Y.ErrnoError(60);try{for(var i=0;i<n;i++)r.tty.ops.put_char(r.tty,e[t+i])}catch(r){throw new Y.ErrnoError(29)}return n&&(r.node.timestamp=Date.now()),i}},default_tty_ops:{get_char:function(r){if(!r.input.length){var e=null;if(\"undefined\"!=typeof window&&\"function\"==typeof window.prompt?null!==(e=window.prompt(\"Input: \"))&&(e+=\"\\n\"):\"function\"==typeof readline&&null!==(e=readline())&&(e+=\"\\n\"),!e)return null;r.input=or(e,!0)}return r.input.shift()},put_char:function(r,e){null===e||10===e?(p(D(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},flush:function(r){r.output&&r.output.length>0&&(p(D(r.output,0)),r.output=[])}},default_tty1_ops:{put_char:function(r,e){null===e||10===e?(h(D(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},flush:function(r){r.output&&r.output.length>0&&(h(D(r.output,0)),r.output=[])}}},X={ops_table:null,mount:function(r){return X.createNode(null,\"/\",16895,0)},createNode:function(r,e,t,n){if(Y.isBlkdev(t)||Y.isFIFO(t))throw new Y.ErrnoError(63);X.ops_table||(X.ops_table={dir:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr,lookup:X.node_ops.lookup,mknod:X.node_ops.mknod,rename:X.node_ops.rename,unlink:X.node_ops.unlink,rmdir:X.node_ops.rmdir,readdir:X.node_ops.readdir,symlink:X.node_ops.symlink},stream:{llseek:X.stream_ops.llseek}},file:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr},stream:{llseek:X.stream_ops.llseek,read:X.stream_ops.read,write:X.stream_ops.write,allocate:X.stream_ops.allocate,mmap:X.stream_ops.mmap,msync:X.stream_ops.msync}},link:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr,readlink:X.node_ops.readlink},stream:{}},chrdev:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr},stream:Y.chrdev_stream_ops}});var o=Y.createNode(r,e,t,n);return Y.isDir(o.mode)?(o.node_ops=X.ops_table.dir.node,o.stream_ops=X.ops_table.dir.stream,o.contents={}):Y.isFile(o.mode)?(o.node_ops=X.ops_table.file.node,o.stream_ops=X.ops_table.file.stream,o.usedBytes=0,o.contents=null):Y.isLink(o.mode)?(o.node_ops=X.ops_table.link.node,o.stream_ops=X.ops_table.link.stream):Y.isChrdev(o.mode)&&(o.node_ops=X.ops_table.chrdev.node,o.stream_ops=X.ops_table.chrdev.stream),o.timestamp=Date.now(),r&&(r.contents[e]=o,r.timestamp=o.timestamp),o},getFileDataAsTypedArray:function(r){return r.contents?r.contents.subarray?r.contents.subarray(0,r.usedBytes):new Uint8Array(r.contents):new Uint8Array(0)},expandFileStorage:function(r,e){var t=r.contents?r.contents.length:0;if(!(t>=e)){e=Math.max(e,t*(t<1048576?2:1.125)>>>0),0!=t&&(e=Math.max(e,256));var n=r.contents;r.contents=new Uint8Array(e),r.usedBytes>0&&r.contents.set(n.subarray(0,r.usedBytes),0)}},resizeFileStorage:function(r,e){if(r.usedBytes!=e)if(0==e)r.contents=null,r.usedBytes=0;else{var t=r.contents;r.contents=new Uint8Array(e),t&&r.contents.set(t.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}},node_ops:{getattr:function(r){var e={};return e.dev=Y.isChrdev(r.mode)?r.id:1,e.ino=r.id,e.mode=r.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=r.rdev,Y.isDir(r.mode)?e.size=4096:Y.isFile(r.mode)?e.size=r.usedBytes:Y.isLink(r.mode)?e.size=r.link.length:e.size=0,e.atime=new Date(r.timestamp),e.mtime=new Date(r.timestamp),e.ctime=new Date(r.timestamp),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr:function(r,e){void 0!==e.mode&&(r.mode=e.mode),void 0!==e.timestamp&&(r.timestamp=e.timestamp),void 0!==e.size&&X.resizeFileStorage(r,e.size)},lookup:function(r,e){throw Y.genericErrors[44]},mknod:function(r,e,t,n){return X.createNode(r,e,t,n)},rename:function(r,e,t){if(Y.isDir(r.mode)){var n;try{n=Y.lookupNode(e,t)}catch(r){}if(n)for(var o in n.contents)throw new Y.ErrnoError(55)}delete r.parent.contents[r.name],r.parent.timestamp=Date.now(),r.name=t,e.contents[t]=r,e.timestamp=r.parent.timestamp,r.parent=e},unlink:function(r,e){delete r.contents[e],r.timestamp=Date.now()},rmdir:function(r,e){var t=Y.lookupNode(r,e);for(var n in t.contents)throw new Y.ErrnoError(55);delete r.contents[e],r.timestamp=Date.now()},readdir:function(r){var e=[\".\",\"..\"];for(var t in r.contents)r.contents.hasOwnProperty(t)&&e.push(t);return e},symlink:function(r,e,t){var n=X.createNode(r,e,41471,0);return n.link=t,n},readlink:function(r){if(!Y.isLink(r.mode))throw new Y.ErrnoError(28);return r.link}},stream_ops:{read:function(r,e,t,n,o){var i=r.node.contents;if(o>=r.node.usedBytes)return 0;var a=Math.min(r.node.usedBytes-o,n);if(a>8&&i.subarray)e.set(i.subarray(o,o+a),t);else for(var s=0;s<a;s++)e[t+s]=i[o+s];return a},write:function(r,e,t,n,o,i){if(e.buffer===_.buffer&&(i=!1),!n)return 0;var a=r.node;if(a.timestamp=Date.now(),e.subarray&&(!a.contents||a.contents.subarray)){if(i)return a.contents=e.subarray(t,t+n),a.usedBytes=n,n;if(0===a.usedBytes&&0===o)return a.contents=e.slice(t,t+n),a.usedBytes=n,n;if(o+n<=a.usedBytes)return a.contents.set(e.subarray(t,t+n),o),n}if(X.expandFileStorage(a,o+n),a.contents.subarray&&e.subarray)a.contents.set(e.subarray(t,t+n),o);else for(var s=0;s<n;s++)a.contents[o+s]=e[t+s];return a.usedBytes=Math.max(a.usedBytes,o+n),n},llseek:function(r,e,t){var n=e;if(1===t?n+=r.position:2===t&&Y.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new Y.ErrnoError(28);return n},allocate:function(r,e,t){X.expandFileStorage(r.node,e+t),r.node.usedBytes=Math.max(r.node.usedBytes,e+t)},mmap:function(r,e,t,n,o,i){if(0!==e)throw new Y.ErrnoError(28);if(!Y.isFile(r.node.mode))throw new Y.ErrnoError(43);var a,s,u=r.node.contents;if(2&i||u.buffer!==w){if((n>0||n+t<u.length)&&(u=u.subarray?u.subarray(n,n+t):Array.prototype.slice.call(u,n,n+t)),s=!0,!(a=void I()))throw new Y.ErrnoError(48);_.set(u,a)}else s=!1,a=u.byteOffset;return{ptr:a,allocated:s}},msync:function(r,e,t,n,o){if(!Y.isFile(r.node.mode))throw new Y.ErrnoError(43);return 2&o||X.stream_ops.write(r,e,0,n,t,!1),0}}},Y={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:\"/\",initialized:!1,ignorePermissions:!0,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:function(r,e){if(e=e||{},!(r=V.resolve(Y.cwd(),r)))return{path:\"\",node:null};var t={follow_mount:!0,recurse_count:0};for(var n in t)void 0===e[n]&&(e[n]=t[n]);if(e.recurse_count>8)throw new Y.ErrnoError(32);for(var o=q.normalizeArray(r.split(\"/\").filter((function(r){return!!r})),!1),i=Y.root,a=\"/\",s=0;s<o.length;s++){var u=s===o.length-1;if(u&&e.parent)break;if(i=Y.lookupNode(i,o[s]),a=q.join2(a,o[s]),Y.isMountpoint(i)&&(!u||u&&e.follow_mount)&&(i=i.mounted.root),!u||e.follow)for(var c=0;Y.isLink(i.mode);){var f=Y.readlink(a);if(a=V.resolve(q.dirname(a),f),i=Y.lookupPath(a,{recurse_count:e.recurse_count}).node,c++>40)throw new Y.ErrnoError(32)}}return{path:a,node:i}},getPath:function(r){for(var e;;){if(Y.isRoot(r)){var t=r.mount.mountpoint;return e?\"/\"!==t[t.length-1]?t+\"/\"+e:t+e:t}e=e?r.name+\"/\"+e:r.name,r=r.parent}},hashName:function(r,e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(r+t>>>0)%Y.nameTable.length},hashAddNode:function(r){var e=Y.hashName(r.parent.id,r.name);r.name_next=Y.nameTable[e],Y.nameTable[e]=r},hashRemoveNode:function(r){var e=Y.hashName(r.parent.id,r.name);if(Y.nameTable[e]===r)Y.nameTable[e]=r.name_next;else for(var t=Y.nameTable[e];t;){if(t.name_next===r){t.name_next=r.name_next;break}t=t.name_next}},lookupNode:function(r,e){var t=Y.mayLookup(r);if(t)throw new Y.ErrnoError(t,r);for(var n=Y.hashName(r.id,e),o=Y.nameTable[n];o;o=o.name_next){var i=o.name;if(o.parent.id===r.id&&i===e)return o}return Y.lookup(r,e)},createNode:function(r,e,t,n){var o=new Y.FSNode(r,e,t,n);return Y.hashAddNode(o),o},destroyNode:function(r){Y.hashRemoveNode(r)},isRoot:function(r){return r===r.parent},isMountpoint:function(r){return!!r.mounted},isFile:function(r){return 32768==(61440&r)},isDir:function(r){return 16384==(61440&r)},isLink:function(r){return 40960==(61440&r)},isChrdev:function(r){return 8192==(61440&r)},isBlkdev:function(r){return 24576==(61440&r)},isFIFO:function(r){return 4096==(61440&r)},isSocket:function(r){return 49152==(49152&r)},flagModes:{r:0,\"r+\":2,w:577,\"w+\":578,a:1089,\"a+\":1090},modeStringToFlags:function(r){var e=Y.flagModes[r];if(void 0===e)throw new Error(\"Unknown file open mode: \"+r);return e},flagsToPermissionString:function(r){var e=[\"r\",\"w\",\"rw\"][3&r];return 512&r&&(e+=\"w\"),e},nodePermissions:function(r,e){return Y.ignorePermissions||(!e.includes(\"r\")||292&r.mode)&&(!e.includes(\"w\")||146&r.mode)&&(!e.includes(\"x\")||73&r.mode)?0:2},mayLookup:function(r){var e=Y.nodePermissions(r,\"x\");return e||(r.node_ops.lookup?0:2)},mayCreate:function(r,e){try{return Y.lookupNode(r,e),20}catch(r){}return Y.nodePermissions(r,\"wx\")},mayDelete:function(r,e,t){var n;try{n=Y.lookupNode(r,e)}catch(r){return r.errno}var o=Y.nodePermissions(r,\"wx\");if(o)return o;if(t){if(!Y.isDir(n.mode))return 54;if(Y.isRoot(n)||Y.getPath(n)===Y.cwd())return 10}else if(Y.isDir(n.mode))return 31;return 0},mayOpen:function(r,e){return r?Y.isLink(r.mode)?32:Y.isDir(r.mode)&&(\"r\"!==Y.flagsToPermissionString(e)||512&e)?31:Y.nodePermissions(r,Y.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(r,e){r=r||0,e=e||Y.MAX_OPEN_FDS;for(var t=r;t<=e;t++)if(!Y.streams[t])return t;throw new Y.ErrnoError(33)},getStream:function(r){return Y.streams[r]},createStream:function(r,e,t){Y.FSStream||(Y.FSStream=function(){},Y.FSStream.prototype={object:{get:function(){return this.node},set:function(r){this.node=r}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var n=new Y.FSStream;for(var o in r)n[o]=r[o];r=n;var i=Y.nextfd(e,t);return r.fd=i,Y.streams[i]=r,r},closeStream:function(r){Y.streams[r]=null},chrdev_stream_ops:{open:function(r){var e=Y.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open&&r.stream_ops.open(r)},llseek:function(){throw new Y.ErrnoError(70)}},major:function(r){return r>>8},minor:function(r){return 255&r},makedev:function(r,e){return r<<8|e},registerDevice:function(r,e){Y.devices[r]={stream_ops:e}},getDevice:function(r){return Y.devices[r]},getMounts:function(r){for(var e=[],t=[r];t.length;){var n=t.pop();e.push(n),t.push.apply(t,n.mounts)}return e},syncfs:function(r,e){\"function\"==typeof r&&(e=r,r=!1),Y.syncFSRequests++,Y.syncFSRequests>1&&h(\"warning: \"+Y.syncFSRequests+\" FS.syncfs operations in flight at once, probably just doing extra work\");var t=Y.getMounts(Y.root.mount),n=0;function o(r){return Y.syncFSRequests--,e(r)}function i(r){if(r)return i.errored?void 0:(i.errored=!0,o(r));++n>=t.length&&o(null)}t.forEach((function(e){if(!e.type.syncfs)return i(null);e.type.syncfs(e,r,i)}))},mount:function(r,e,t){var n,o=\"/\"===t,i=!t;if(o&&Y.root)throw new Y.ErrnoError(10);if(!o&&!i){var a=Y.lookupPath(t,{follow_mount:!1});if(t=a.path,n=a.node,Y.isMountpoint(n))throw new Y.ErrnoError(10);if(!Y.isDir(n.mode))throw new Y.ErrnoError(54)}var s={type:r,opts:e,mountpoint:t,mounts:[]},u=r.mount(s);return u.mount=s,s.root=u,o?Y.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount:function(r){var e=Y.lookupPath(r,{follow_mount:!1});if(!Y.isMountpoint(e.node))throw new Y.ErrnoError(28);var t=e.node,n=t.mounted,o=Y.getMounts(n);Object.keys(Y.nameTable).forEach((function(r){for(var e=Y.nameTable[r];e;){var t=e.name_next;o.includes(e.mount)&&Y.destroyNode(e),e=t}})),t.mounted=null;var i=t.mount.mounts.indexOf(n);t.mount.mounts.splice(i,1)},lookup:function(r,e){return r.node_ops.lookup(r,e)},mknod:function(r,e,t){var n=Y.lookupPath(r,{parent:!0}).node,o=q.basename(r);if(!o||\".\"===o||\"..\"===o)throw new Y.ErrnoError(28);var i=Y.mayCreate(n,o);if(i)throw new Y.ErrnoError(i);if(!n.node_ops.mknod)throw new Y.ErrnoError(63);return n.node_ops.mknod(n,o,e,t)},create:function(r,e){return e=void 0!==e?e:438,e&=4095,e|=32768,Y.mknod(r,e,0)},mkdir:function(r,e){return e=void 0!==e?e:511,e&=1023,e|=16384,Y.mknod(r,e,0)},mkdirTree:function(r,e){for(var t=r.split(\"/\"),n=\"\",o=0;o<t.length;++o)if(t[o]){n+=\"/\"+t[o];try{Y.mkdir(n,e)}catch(r){if(20!=r.errno)throw r}}},mkdev:function(r,e,t){return void 0===t&&(t=e,e=438),e|=8192,Y.mknod(r,e,t)},symlink:function(r,e){if(!V.resolve(r))throw new Y.ErrnoError(44);var t=Y.lookupPath(e,{parent:!0}).node;if(!t)throw new Y.ErrnoError(44);var n=q.basename(e),o=Y.mayCreate(t,n);if(o)throw new Y.ErrnoError(o);if(!t.node_ops.symlink)throw new Y.ErrnoError(63);return t.node_ops.symlink(t,n,r)},rename:function(r,e){var t,n,o=q.dirname(r),i=q.dirname(e),a=q.basename(r),s=q.basename(e);if(t=Y.lookupPath(r,{parent:!0}).node,n=Y.lookupPath(e,{parent:!0}).node,!t||!n)throw new Y.ErrnoError(44);if(t.mount!==n.mount)throw new Y.ErrnoError(75);var u,c=Y.lookupNode(t,a),f=V.relative(r,i);if(\".\"!==f.charAt(0))throw new Y.ErrnoError(28);if(\".\"!==(f=V.relative(e,o)).charAt(0))throw new Y.ErrnoError(55);try{u=Y.lookupNode(n,s)}catch(r){}if(c!==u){var l=Y.isDir(c.mode),d=Y.mayDelete(t,a,l);if(d)throw new Y.ErrnoError(d);if(d=u?Y.mayDelete(n,s,l):Y.mayCreate(n,s))throw new Y.ErrnoError(d);if(!t.node_ops.rename)throw new Y.ErrnoError(63);if(Y.isMountpoint(c)||u&&Y.isMountpoint(u))throw new Y.ErrnoError(10);if(n!==t&&(d=Y.nodePermissions(t,\"w\")))throw new Y.ErrnoError(d);try{Y.trackingDelegate.willMovePath}catch(t){h(\"FS.trackingDelegate['willMovePath']('\"+r+\"', '\"+e+\"') threw an exception: \"+t.message)}Y.hashRemoveNode(c);try{t.node_ops.rename(c,n,s)}catch(r){throw r}finally{Y.hashAddNode(c)}try{Y.trackingDelegate.onMovePath}catch(t){h(\"FS.trackingDelegate['onMovePath']('\"+r+\"', '\"+e+\"') threw an exception: \"+t.message)}}},rmdir:function(r){var e=Y.lookupPath(r,{parent:!0}).node,t=q.basename(r),n=Y.lookupNode(e,t),o=Y.mayDelete(e,t,!0);if(o)throw new Y.ErrnoError(o);if(!e.node_ops.rmdir)throw new Y.ErrnoError(63);if(Y.isMountpoint(n))throw new Y.ErrnoError(10);try{Y.trackingDelegate.willDeletePath}catch(e){h(\"FS.trackingDelegate['willDeletePath']('\"+r+\"') threw an exception: \"+e.message)}e.node_ops.rmdir(e,t),Y.destroyNode(n);try{Y.trackingDelegate.onDeletePath}catch(e){h(\"FS.trackingDelegate['onDeletePath']('\"+r+\"') threw an exception: \"+e.message)}},readdir:function(r){var e=Y.lookupPath(r,{follow:!0}).node;if(!e.node_ops.readdir)throw new Y.ErrnoError(54);return e.node_ops.readdir(e)},unlink:function(r){var e=Y.lookupPath(r,{parent:!0}).node,t=q.basename(r),n=Y.lookupNode(e,t),o=Y.mayDelete(e,t,!1);if(o)throw new Y.ErrnoError(o);if(!e.node_ops.unlink)throw new Y.ErrnoError(63);if(Y.isMountpoint(n))throw new Y.ErrnoError(10);try{Y.trackingDelegate.willDeletePath}catch(e){h(\"FS.trackingDelegate['willDeletePath']('\"+r+\"') threw an exception: \"+e.message)}e.node_ops.unlink(e,t),Y.destroyNode(n);try{Y.trackingDelegate.onDeletePath}catch(e){h(\"FS.trackingDelegate['onDeletePath']('\"+r+\"') threw an exception: \"+e.message)}},readlink:function(r){var e=Y.lookupPath(r).node;if(!e)throw new Y.ErrnoError(44);if(!e.node_ops.readlink)throw new Y.ErrnoError(28);return V.resolve(Y.getPath(e.parent),e.node_ops.readlink(e))},stat:function(r,e){var t=Y.lookupPath(r,{follow:!e}).node;if(!t)throw new Y.ErrnoError(44);if(!t.node_ops.getattr)throw new Y.ErrnoError(63);return t.node_ops.getattr(t)},lstat:function(r){return Y.stat(r,!0)},chmod:function(r,e,t){var n;if(!(n=\"string\"==typeof r?Y.lookupPath(r,{follow:!t}).node:r).node_ops.setattr)throw new Y.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&e|-4096&n.mode,timestamp:Date.now()})},lchmod:function(r,e){Y.chmod(r,e,!0)},fchmod:function(r,e){var t=Y.getStream(r);if(!t)throw new Y.ErrnoError(8);Y.chmod(t.node,e)},chown:function(r,e,t,n){var o;if(!(o=\"string\"==typeof r?Y.lookupPath(r,{follow:!n}).node:r).node_ops.setattr)throw new Y.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:function(r,e,t){Y.chown(r,e,t,!0)},fchown:function(r,e,t){var n=Y.getStream(r);if(!n)throw new Y.ErrnoError(8);Y.chown(n.node,e,t)},truncate:function(r,e){if(e<0)throw new Y.ErrnoError(28);var t;if(!(t=\"string\"==typeof r?Y.lookupPath(r,{follow:!0}).node:r).node_ops.setattr)throw new Y.ErrnoError(63);if(Y.isDir(t.mode))throw new Y.ErrnoError(31);if(!Y.isFile(t.mode))throw new Y.ErrnoError(28);var n=Y.nodePermissions(t,\"w\");if(n)throw new Y.ErrnoError(n);t.node_ops.setattr(t,{size:e,timestamp:Date.now()})},ftruncate:function(r,e){var t=Y.getStream(r);if(!t)throw new Y.ErrnoError(8);if(0==(2097155&t.flags))throw new Y.ErrnoError(28);Y.truncate(t.node,e)},utime:function(r,e,t){var n=Y.lookupPath(r,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(e,t)})},open:function(r,e,t,n,i){if(\"\"===r)throw new Y.ErrnoError(44);var a;if(t=void 0===t?438:t,t=64&(e=\"string\"==typeof e?Y.modeStringToFlags(e):e)?4095&t|32768:0,\"object\"==typeof r)a=r;else{r=q.normalize(r);try{a=Y.lookupPath(r,{follow:!(131072&e)}).node}catch(r){}}var s=!1;if(64&e)if(a){if(128&e)throw new Y.ErrnoError(20)}else a=Y.mknod(r,t,0),s=!0;if(!a)throw new Y.ErrnoError(44);if(Y.isChrdev(a.mode)&&(e&=-513),65536&e&&!Y.isDir(a.mode))throw new Y.ErrnoError(54);if(!s){var u=Y.mayOpen(a,e);if(u)throw new Y.ErrnoError(u)}512&e&&Y.truncate(a,0),e&=-131713;var c=Y.createStream({node:a,path:Y.getPath(a),flags:e,seekable:!0,position:0,stream_ops:a.stream_ops,ungotten:[],error:!1},n,i);c.stream_ops.open&&c.stream_ops.open(c),!o.logReadFiles||1&e||(Y.readFiles||(Y.readFiles={}),r in Y.readFiles||(Y.readFiles[r]=1,h(\"FS.trackingDelegate error on read file: \"+r)));try{Y.trackingDelegate.onOpenFile}catch(e){h(\"FS.trackingDelegate['onOpenFile']('\"+r+\"', flags) threw an exception: \"+e.message)}return c},close:function(r){if(Y.isClosed(r))throw new Y.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(r){throw r}finally{Y.closeStream(r.fd)}r.fd=null},isClosed:function(r){return null===r.fd},llseek:function(r,e,t){if(Y.isClosed(r))throw new Y.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new Y.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new Y.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,t),r.ungotten=[],r.position},read:function(r,e,t,n,o){if(n<0||o<0)throw new Y.ErrnoError(28);if(Y.isClosed(r))throw new Y.ErrnoError(8);if(1==(2097155&r.flags))throw new Y.ErrnoError(8);if(Y.isDir(r.node.mode))throw new Y.ErrnoError(31);if(!r.stream_ops.read)throw new Y.ErrnoError(28);var i=void 0!==o;if(i){if(!r.seekable)throw new Y.ErrnoError(70)}else o=r.position;var a=r.stream_ops.read(r,e,t,n,o);return i||(r.position+=a),a},write:function(r,e,t,n,o,i){if(n<0||o<0)throw new Y.ErrnoError(28);if(Y.isClosed(r))throw new Y.ErrnoError(8);if(0==(2097155&r.flags))throw new Y.ErrnoError(8);if(Y.isDir(r.node.mode))throw new Y.ErrnoError(31);if(!r.stream_ops.write)throw new Y.ErrnoError(28);r.seekable&&1024&r.flags&&Y.llseek(r,0,2);var a=void 0!==o;if(a){if(!r.seekable)throw new Y.ErrnoError(70)}else o=r.position;var s=r.stream_ops.write(r,e,t,n,o,i);a||(r.position+=s);try{r.path&&Y.trackingDelegate.onWriteToFile&&Y.trackingDelegate.onWriteToFile(r.path)}catch(e){h(\"FS.trackingDelegate['onWriteToFile']('\"+r.path+\"') threw an exception: \"+e.message)}return s},allocate:function(r,e,t){if(Y.isClosed(r))throw new Y.ErrnoError(8);if(e<0||t<=0)throw new Y.ErrnoError(28);if(0==(2097155&r.flags))throw new Y.ErrnoError(8);if(!Y.isFile(r.node.mode)&&!Y.isDir(r.node.mode))throw new Y.ErrnoError(43);if(!r.stream_ops.allocate)throw new Y.ErrnoError(138);r.stream_ops.allocate(r,e,t)},mmap:function(r,e,t,n,o,i){if(0!=(2&o)&&0==(2&i)&&2!=(2097155&r.flags))throw new Y.ErrnoError(2);if(1==(2097155&r.flags))throw new Y.ErrnoError(2);if(!r.stream_ops.mmap)throw new Y.ErrnoError(43);return r.stream_ops.mmap(r,e,t,n,o,i)},msync:function(r,e,t,n,o){return r&&r.stream_ops.msync?r.stream_ops.msync(r,e,t,n,o):0},munmap:function(r){return 0},ioctl:function(r,e,t){if(!r.stream_ops.ioctl)throw new Y.ErrnoError(59);return r.stream_ops.ioctl(r,e,t)},readFile:function(r,e){if((e=e||{}).flags=e.flags||0,e.encoding=e.encoding||\"binary\",\"utf8\"!==e.encoding&&\"binary\"!==e.encoding)throw new Error('Invalid encoding type \"'+e.encoding+'\"');var t,n=Y.open(r,e.flags),o=Y.stat(r).size,i=new Uint8Array(o);return Y.read(n,i,0,o,0),\"utf8\"===e.encoding?t=D(i,0):\"binary\"===e.encoding&&(t=i),Y.close(n),t},writeFile:function(r,e,t){(t=t||{}).flags=t.flags||577;var n=Y.open(r,t.flags,t.mode);if(\"string\"==typeof e){var o=new Uint8Array(F(e)+1),i=P(e,o,0,o.length);Y.write(n,o,0,i,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(e))throw new Error(\"Unsupported data type\");Y.write(n,e,0,e.byteLength,void 0,t.canOwn)}Y.close(n)},cwd:function(){return Y.currentPath},chdir:function(r){var e=Y.lookupPath(r,{follow:!0});if(null===e.node)throw new Y.ErrnoError(44);if(!Y.isDir(e.node.mode))throw new Y.ErrnoError(54);var t=Y.nodePermissions(e.node,\"x\");if(t)throw new Y.ErrnoError(t);Y.currentPath=e.path},createDefaultDirectories:function(){Y.mkdir(\"/tmp\"),Y.mkdir(\"/home\"),Y.mkdir(\"/home/web_user\")},createDefaultDevices:function(){Y.mkdir(\"/dev\"),Y.registerDevice(Y.makedev(1,3),{read:function(){return 0},write:function(r,e,t,n,o){return n}}),Y.mkdev(\"/dev/null\",Y.makedev(1,3)),J.register(Y.makedev(5,0),J.default_tty_ops),J.register(Y.makedev(6,0),J.default_tty1_ops),Y.mkdev(\"/dev/tty\",Y.makedev(5,0)),Y.mkdev(\"/dev/tty1\",Y.makedev(6,0));var r=function(){if(\"object\"==typeof crypto&&\"function\"==typeof crypto.getRandomValues){var r=new Uint8Array(1);return function(){return crypto.getRandomValues(r),r[0]}}return function(){I(\"randomDevice\")}}();Y.createDevice(\"/dev\",\"random\",r),Y.createDevice(\"/dev\",\"urandom\",r),Y.mkdir(\"/dev/shm\"),Y.mkdir(\"/dev/shm/tmp\")},createSpecialDirectories:function(){Y.mkdir(\"/proc\");var r=Y.mkdir(\"/proc/self\");Y.mkdir(\"/proc/self/fd\"),Y.mount({mount:function(){var e=Y.createNode(r,\"fd\",16895,73);return e.node_ops={lookup:function(r,e){var t=+e,n=Y.getStream(t);if(!n)throw new Y.ErrnoError(8);var o={parent:null,mount:{mountpoint:\"fake\"},node_ops:{readlink:function(){return n.path}}};return o.parent=o,o}},e}},{},\"/proc/self/fd\")},createStandardStreams:function(){o.stdin?Y.createDevice(\"/dev\",\"stdin\",o.stdin):Y.symlink(\"/dev/tty\",\"/dev/stdin\"),o.stdout?Y.createDevice(\"/dev\",\"stdout\",null,o.stdout):Y.symlink(\"/dev/tty\",\"/dev/stdout\"),o.stderr?Y.createDevice(\"/dev\",\"stderr\",null,o.stderr):Y.symlink(\"/dev/tty1\",\"/dev/stderr\"),Y.open(\"/dev/stdin\",0),Y.open(\"/dev/stdout\",1),Y.open(\"/dev/stderr\",1)},ensureErrnoError:function(){Y.ErrnoError||(Y.ErrnoError=function(r,e){this.node=e,this.setErrno=function(r){this.errno=r},this.setErrno(r),this.message=\"FS error\"},Y.ErrnoError.prototype=new Error,Y.ErrnoError.prototype.constructor=Y.ErrnoError,[44].forEach((function(r){Y.genericErrors[r]=new Y.ErrnoError(r),Y.genericErrors[r].stack=\"<generic error, no stack>\"})))},staticInit:function(){Y.ensureErrnoError(),Y.nameTable=new Array(4096),Y.mount(X,{},\"/\"),Y.createDefaultDirectories(),Y.createDefaultDevices(),Y.createSpecialDirectories(),Y.filesystems={MEMFS:X}},init:function(r,e,t){Y.init.initialized=!0,Y.ensureErrnoError(),o.stdin=r||o.stdin,o.stdout=e||o.stdout,o.stderr=t||o.stderr,Y.createStandardStreams()},quit:function(){Y.init.initialized=!1;var r=o._fflush;r&&r(0);for(var e=0;e<Y.streams.length;e++){var t=Y.streams[e];t&&Y.close(t)}},getMode:function(r,e){var t=0;return r&&(t|=365),e&&(t|=146),t},findObject:function(r,e){var t=Y.analyzePath(r,e);return t.exists?t.object:null},analyzePath:function(r,e){try{r=(n=Y.lookupPath(r,{follow:!e})).path}catch(r){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=Y.lookupPath(r,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=q.basename(r),n=Y.lookupPath(r,{follow:!e}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot=\"/\"===n.path}catch(r){t.error=r.errno}return t},createPath:function(r,e,t,n){r=\"string\"==typeof r?r:Y.getPath(r);for(var o=e.split(\"/\").reverse();o.length;){var i=o.pop();if(i){var a=q.join2(r,i);try{Y.mkdir(a)}catch(r){}r=a}}return a},createFile:function(r,e,t,n,o){var i=q.join2(\"string\"==typeof r?r:Y.getPath(r),e),a=Y.getMode(n,o);return Y.create(i,a)},createDataFile:function(r,e,t,n,o,i){var a=e?q.join2(\"string\"==typeof r?r:Y.getPath(r),e):r,s=Y.getMode(n,o),u=Y.create(a,s);if(t){if(\"string\"==typeof t){for(var c=new Array(t.length),f=0,l=t.length;f<l;++f)c[f]=t.charCodeAt(f);t=c}Y.chmod(u,146|s);var d=Y.open(u,577);Y.write(d,t,0,t.length,0,i),Y.close(d),Y.chmod(u,s)}return u},createDevice:function(r,e,t,n){var o=q.join2(\"string\"==typeof r?r:Y.getPath(r),e),i=Y.getMode(!!t,!!n);Y.createDevice.major||(Y.createDevice.major=64);var a=Y.makedev(Y.createDevice.major++,0);return Y.registerDevice(a,{open:function(r){r.seekable=!1},close:function(r){n&&n.buffer&&n.buffer.length&&n(10)},read:function(r,e,n,o,i){for(var a=0,s=0;s<o;s++){var u;try{u=t()}catch(r){throw new Y.ErrnoError(29)}if(void 0===u&&0===a)throw new Y.ErrnoError(6);if(null==u)break;a++,e[n+s]=u}return a&&(r.node.timestamp=Date.now()),a},write:function(r,e,t,o,i){for(var a=0;a<o;a++)try{n(e[t+a])}catch(r){throw new Y.ErrnoError(29)}return o&&(r.node.timestamp=Date.now()),a}}),Y.mkdev(o,i,a)},forceLoadFile:function(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;if(\"undefined\"!=typeof XMLHttpRequest)throw new Error(\"Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.\");if(!s)throw new Error(\"Cannot load without read() or XMLHttpRequest.\");try{r.contents=or(s(r.url),!0),r.usedBytes=r.contents.length}catch(r){throw new Y.ErrnoError(29)}},createLazyFile:function(r,e,t,n,o){function i(){this.lengthKnown=!1,this.chunks=[]}if(i.prototype.get=function(r){if(!(r>this.length-1||r<0)){var e=r%this.chunkSize,t=r/this.chunkSize|0;return this.getter(t)[e]}},i.prototype.setDataGetter=function(r){this.getter=r},i.prototype.cacheLength=function(){var r=new XMLHttpRequest;if(r.open(\"HEAD\",t,!1),r.send(null),!(r.status>=200&&r.status<300||304===r.status))throw new Error(\"Couldn't load \"+t+\". Status: \"+r.status);var e,n=Number(r.getResponseHeader(\"Content-length\")),o=(e=r.getResponseHeader(\"Accept-Ranges\"))&&\"bytes\"===e,i=(e=r.getResponseHeader(\"Content-Encoding\"))&&\"gzip\"===e,a=1048576;o||(a=n);var s=this;s.setDataGetter((function(r){var e=r*a,o=(r+1)*a-1;if(o=Math.min(o,n-1),void 0===s.chunks[r]&&(s.chunks[r]=function(r,e){if(r>e)throw new Error(\"invalid range (\"+r+\", \"+e+\") or no bytes requested!\");if(e>n-1)throw new Error(\"only \"+n+\" bytes available! programmer error!\");var o=new XMLHttpRequest;if(o.open(\"GET\",t,!1),n!==a&&o.setRequestHeader(\"Range\",\"bytes=\"+r+\"-\"+e),\"undefined\"!=typeof Uint8Array&&(o.responseType=\"arraybuffer\"),o.overrideMimeType&&o.overrideMimeType(\"text/plain; charset=x-user-defined\"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error(\"Couldn't load \"+t+\". Status: \"+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):or(o.responseText||\"\",!0)}(e,o)),void 0===s.chunks[r])throw new Error(\"doXHR failed!\");return s.chunks[r]})),!i&&n||(a=n=1,n=this.getter(0).length,a=n,p(\"LazyFiles on gzip forces download of the whole file when length is accessed\")),this._length=n,this._chunkSize=a,this.lengthKnown=!0},\"undefined\"!=typeof XMLHttpRequest)throw\"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc\";var a={isDevice:!1,url:t},s=Y.createFile(r,e,a,n,o);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach((function(r){var e=s.stream_ops[r];u[r]=function(){return Y.forceLoadFile(s),e.apply(null,arguments)}})),u.read=function(r,e,t,n,o){Y.forceLoadFile(s);var i=r.node.contents;if(o>=i.length)return 0;var a=Math.min(i.length-o,n);if(i.slice)for(var u=0;u<a;u++)e[t+u]=i[o+u];else for(u=0;u<a;u++)e[t+u]=i.get(o+u);return a},s.stream_ops=u,s},createPreloadedFile:function(r,e,t,n,i,a,s,c,f,l){Browser.init();var d=e?V.resolve(q.join2(r,e)):r;function p(t){function u(t){l&&l(),c||Y.createDataFile(r,e,t,n,i,f),a&&a(),L()}var p=!1;o.preloadPlugins.forEach((function(r){p||r.canHandle(d)&&(r.handle(t,d,u,(function(){s&&s(),L()})),p=!0)})),p||u(t)}O(),\"string\"==typeof t?function(r,e,t,n){var o=n?\"\":\"al \"+r;u(r,(function(t){v(t,'Loading data file \"'+r+'\" failed (no arrayBuffer).'),e(new Uint8Array(t)),o&&L()}),(function(e){if(!t)throw'Loading data file \"'+r+'\" failed.';t()})),o&&O()}(t,(function(r){p(r)}),s):p(t)},indexedDB:function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},DB_NAME:function(){return\"EM_FS_\"+window.location.pathname},DB_VERSION:20,DB_STORE_NAME:\"FILE_DATA\",saveFilesToDB:function(r,e,t){e=e||function(){},t=t||function(){};var n=Y.indexedDB();try{var o=n.open(Y.DB_NAME(),Y.DB_VERSION)}catch(r){return t(r)}o.onupgradeneeded=function(){p(\"creating db\"),o.result.createObjectStore(Y.DB_STORE_NAME)},o.onsuccess=function(){var n=o.result.transaction([Y.DB_STORE_NAME],\"readwrite\"),i=n.objectStore(Y.DB_STORE_NAME),a=0,s=0,u=r.length;function c(){0==s?e():t()}r.forEach((function(r){var e=i.put(Y.analyzePath(r).object.contents,r);e.onsuccess=function(){++a+s==u&&c()},e.onerror=function(){s++,a+s==u&&c()}})),n.onerror=t},o.onerror=t},loadFilesFromDB:function(r,e,t){e=e||function(){},t=t||function(){};var n=Y.indexedDB();try{var o=n.open(Y.DB_NAME(),Y.DB_VERSION)}catch(r){return t(r)}o.onupgradeneeded=t,o.onsuccess=function(){var n=o.result;try{var i=n.transaction([Y.DB_STORE_NAME],\"readonly\")}catch(r){return void t(r)}var a=i.objectStore(Y.DB_STORE_NAME),s=0,u=0,c=r.length;function f(){0==u?e():t()}r.forEach((function(r){var e=a.get(r);e.onsuccess=function(){Y.analyzePath(r).exists&&Y.unlink(r),Y.createDataFile(q.dirname(r),q.basename(r),e.result,!0,!0,!0),++s+u==c&&f()},e.onerror=function(){u++,s+u==c&&f()}})),i.onerror=t},o.onerror=t}},K={mappings:{},DEFAULT_POLLMASK:5,umask:511,calculateAt:function(r,e,t){if(\"/\"===e[0])return e;var n;if(-100===r)n=Y.cwd();else{var o=Y.getStream(r);if(!o)throw new Y.ErrnoError(8);n=o.path}if(0==e.length){if(!t)throw new Y.ErrnoError(44);return n}return q.join2(n,e)},doStat:function(r,e,t){try{var n=r(e)}catch(r){if(r&&r.node&&q.normalize(e)!==q.normalize(Y.getPath(r.node)))return-54;throw r}return g[t>>2]=n.dev,g[t+4>>2]=0,g[t+8>>2]=n.ino,g[t+12>>2]=n.mode,g[t+16>>2]=n.nlink,g[t+20>>2]=n.uid,g[t+24>>2]=n.gid,g[t+28>>2]=n.rdev,g[t+32>>2]=0,C=[n.size>>>0,(R=n.size,+Math.abs(R)>=1?R>0?(0|Math.min(+Math.floor(R/4294967296),4294967295))>>>0:~~+Math.ceil((R-+(~~R>>>0))/4294967296)>>>0:0)],g[t+40>>2]=C[0],g[t+44>>2]=C[1],g[t+48>>2]=4096,g[t+52>>2]=n.blocks,g[t+56>>2]=n.atime.getTime()/1e3|0,g[t+60>>2]=0,g[t+64>>2]=n.mtime.getTime()/1e3|0,g[t+68>>2]=0,g[t+72>>2]=n.ctime.getTime()/1e3|0,g[t+76>>2]=0,C=[n.ino>>>0,(R=n.ino,+Math.abs(R)>=1?R>0?(0|Math.min(+Math.floor(R/4294967296),4294967295))>>>0:~~+Math.ceil((R-+(~~R>>>0))/4294967296)>>>0:0)],g[t+80>>2]=C[0],g[t+84>>2]=C[1],0},doMsync:function(r,e,t,n,o){var i=y.slice(r,r+t);Y.msync(e,i,o,t,n)},doMkdir:function(r,e){return\"/\"===(r=q.normalize(r))[r.length-1]&&(r=r.substr(0,r.length-1)),Y.mkdir(r,e,0),0},doMknod:function(r,e,t){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return Y.mknod(r,e,t),0},doReadlink:function(r,e,t){if(t<=0)return-28;var n=Y.readlink(r),o=Math.min(t,F(n)),i=_[e+o];return P(n,y,e,t+1),_[e+o]=i,o},doAccess:function(r,e){if(-8&e)return-28;var t;if(!(t=Y.lookupPath(r,{follow:!0}).node))return-44;var n=\"\";return 4&e&&(n+=\"r\"),2&e&&(n+=\"w\"),1&e&&(n+=\"x\"),n&&Y.nodePermissions(t,n)?-2:0},doDup:function(r,e,t){var n=Y.getStream(t);return n&&Y.close(n),Y.open(r,e,0,t,t).fd},doReadv:function(r,e,t,n){for(var o=0,i=0;i<t;i++){var a=g[e+8*i>>2],s=g[e+(8*i+4)>>2],u=Y.read(r,_,a,s,n);if(u<0)return-1;if(o+=u,u<s)break}return o},doWritev:function(r,e,t,n){for(var o=0,i=0;i<t;i++){var a=g[e+8*i>>2],s=g[e+(8*i+4)>>2],u=Y.write(r,_,a,s,n);if(u<0)return-1;o+=u}return o},varargs:void 0,get:function(){return K.varargs+=4,g[K.varargs-4>>2]},getStr:function(r){return S(r)},getStreamFromFD:function(r){var e=Y.getStream(r);if(!e)throw new Y.ErrnoError(8);return e},get64:function(r,e){return r}},$=[];function Q(r){try{return d.grow(r-w.byteLength+65535>>>16),x(d.buffer),1}catch(r){}}var Z={};function rr(){if(!rr.strings){var r={USER:\"web_user\",LOGNAME:\"web_user\",PATH:\"/\",PWD:\"/\",HOME:\"/home/web_user\",LANG:(\"object\"==typeof navigator&&navigator.languages&&navigator.languages[0]||\"C\").replace(\"-\",\"_\")+\".UTF-8\",_:c||\"./this.program\"};for(var e in Z)void 0===Z[e]?delete r[e]:r[e]=Z[e];var t=[];for(var e in r)t.push(e+\"=\"+r[e]);rr.strings=t}return rr.strings}var er=function(r,e,t,n){r||(r=this),this.parent=r,this.mount=r.mount,this.mounted=null,this.id=Y.nextInode++,this.name=e,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},tr=365,nr=146;function or(r,e,t){var n=t>0?t:F(r)+1,o=new Array(n),i=P(r,o,0,o.length);return e&&(o.length=i),o}Object.defineProperties(er.prototype,{read:{get:function(){return(this.mode&tr)===tr},set:function(r){r?this.mode|=tr:this.mode&=-366}},write:{get:function(){return(this.mode&nr)===nr},set:function(r){r?this.mode|=nr:this.mode&=-147}},isFolder:{get:function(){return Y.isDir(this.mode)}},isDevice:{get:function(){return Y.isChrdev(this.mode)}}}),Y.FSNode=er,Y.staticInit();var ir={g:function(){return 42},i:function(r,e,t){K.varargs=t;try{var n=K.getStr(r),o=t?K.get():0;return Y.open(n,e,o).fd}catch(r){return void 0!==Y&&r instanceof Y.ErrnoError||I(r),-r.errno}},b:function(){I()},a:function(r,e,t){var n=function(r,e){var t;for($.length=0,e>>=2;t=y[r++];){var n=t<105;n&&1&e&&e++,$.push(n?E[e++>>1]:g[e]),++e}return $}(e,t);return W[r].apply(null,n)},k:function(r,e,t){y.copyWithin(r,e,e+t)},l:function(r){var e,t,n=y.length,o=2147483648;if((r>>>=0)>o)return!1;for(var i=1;i<=4;i*=2){var a=n*(1+.2/i);if(a=Math.min(a,r+100663296),Q(Math.min(o,((e=Math.max(r,a))%(t=65536)>0&&(e+=t-e%t),e))))return!0}return!1},e:function(r,e){try{var t=0;return rr().forEach((function(n,o){var i=e+t;g[r+4*o>>2]=i,function(r,e,t){for(var n=0;n<r.length;++n)_[e++>>0]=r.charCodeAt(n);t||(_[e>>0]=0)}(n,i),t+=n.length+1})),0}catch(r){return void 0!==Y&&r instanceof Y.ErrnoError||I(r),r.errno}},f:function(r,e){try{var t=rr();g[r>>2]=t.length;var n=0;return t.forEach((function(r){n+=r.length+1})),g[e>>2]=n,0}catch(r){return void 0!==Y&&r instanceof Y.ErrnoError||I(r),r.errno}},c:function(r){try{var e=K.getStreamFromFD(r);return Y.close(e),0}catch(r){return void 0!==Y&&r instanceof Y.ErrnoError||I(r),r.errno}},h:function(r,e,t,n){try{var o=K.getStreamFromFD(r),i=K.doReadv(o,e,t);return g[n>>2]=i,0}catch(r){return void 0!==Y&&r instanceof Y.ErrnoError||I(r),r.errno}},j:function(r,e,t,n,o){try{var i=K.getStreamFromFD(r),a=4294967296*t+(e>>>0),s=9007199254740992;return a<=-s||a>=s?-61:(Y.llseek(i,a,n),C=[i.position>>>0,(R=i.position,+Math.abs(R)>=1?R>0?(0|Math.min(+Math.floor(R/4294967296),4294967295))>>>0:~~+Math.ceil((R-+(~~R>>>0))/4294967296)>>>0:0)],g[o>>2]=C[0],g[o+4>>2]=C[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0)}catch(r){return void 0!==Y&&r instanceof Y.ErrnoError||I(r),r.errno}},d:function(r,e,t,n){try{var o=K.getStreamFromFD(r),i=K.doWritev(o,e,t);return g[n>>2]=i,0}catch(r){return void 0!==Y&&r instanceof Y.ErrnoError||I(r),r.errno}},m:function(r){var e=Date.now();return g[r>>2]=e/1e3|0,g[r+4>>2]=e%1e3*1e3|0,0}};!function(){var r={a:ir};function e(r,e){var t,n=r.exports;o.asm=n,x((d=o.asm.n).buffer),b=o.asm.H,t=o.asm.o,T.unshift(t),L()}function t(r){e(r.instance)}function i(e){return(l||\"function\"!=typeof fetch?Promise.resolve().then((function(){return H(A)})):fetch(A,{credentials:\"same-origin\"}).then((function(r){if(!r.ok)throw\"failed to load wasm binary file at '\"+A+\"'\";return r.arrayBuffer()})).catch((function(){return H(A)}))).then((function(e){return WebAssembly.instantiate(e,r)})).then(e,(function(r){h(\"failed to asynchronously prepare wasm: \"+r),I(r)}))}if(O(),o.instantiateWasm)try{return o.instantiateWasm(r,e)}catch(r){return h(\"Module.instantiateWasm callback failed with error: \"+r),!1}(l||\"function\"!=typeof WebAssembly.instantiateStreaming||U(A)||\"function\"!=typeof fetch?i(t):fetch(A,{credentials:\"same-origin\"}).then((function(e){return WebAssembly.instantiateStreaming(e,r).then(t,(function(r){return h(\"wasm streaming compile failed: \"+r),h(\"falling back to ArrayBuffer instantiation\"),i(t)}))}))).catch(n)}(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.o).apply(null,arguments)};var ar,sr=o._emscripten_bind_CExpat_CExpat_0=function(){return(sr=o._emscripten_bind_CExpat_CExpat_0=o.asm.p).apply(null,arguments)},ur=o._emscripten_bind_CExpat_version_0=function(){return(ur=o._emscripten_bind_CExpat_version_0=o.asm.q).apply(null,arguments)},cr=o._emscripten_bind_CExpat_create_0=function(){return(cr=o._emscripten_bind_CExpat_create_0=o.asm.r).apply(null,arguments)},fr=o._emscripten_bind_CExpat_destroy_0=function(){return(fr=o._emscripten_bind_CExpat_destroy_0=o.asm.s).apply(null,arguments)},lr=o._emscripten_bind_CExpat_parse_1=function(){return(lr=o._emscripten_bind_CExpat_parse_1=o.asm.t).apply(null,arguments)},dr=o._emscripten_bind_CExpat_tag_0=function(){return(dr=o._emscripten_bind_CExpat_tag_0=o.asm.u).apply(null,arguments)},pr=o._emscripten_bind_CExpat_attrs_0=function(){return(pr=o._emscripten_bind_CExpat_attrs_0=o.asm.v).apply(null,arguments)},hr=o._emscripten_bind_CExpat_content_0=function(){return(hr=o._emscripten_bind_CExpat_content_0=o.asm.w).apply(null,arguments)},mr=o._emscripten_bind_CExpat_startElement_0=function(){return(mr=o._emscripten_bind_CExpat_startElement_0=o.asm.x).apply(null,arguments)},vr=o._emscripten_bind_CExpat_endElement_0=function(){return(vr=o._emscripten_bind_CExpat_endElement_0=o.asm.y).apply(null,arguments)},wr=o._emscripten_bind_CExpat_characterData_0=function(){return(wr=o._emscripten_bind_CExpat_characterData_0=o.asm.z).apply(null,arguments)},_r=o._emscripten_bind_CExpat___destroy___0=function(){return(_r=o._emscripten_bind_CExpat___destroy___0=o.asm.A).apply(null,arguments)},yr=o._emscripten_bind_VoidPtr___destroy___0=function(){return(yr=o._emscripten_bind_VoidPtr___destroy___0=o.asm.B).apply(null,arguments)},gr=o._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(gr=o._emscripten_bind_CExpatJS_CExpatJS_0=o.asm.C).apply(null,arguments)},Er=o._emscripten_bind_CExpatJS_startElement_0=function(){return(Er=o._emscripten_bind_CExpatJS_startElement_0=o.asm.D).apply(null,arguments)},br=o._emscripten_bind_CExpatJS_endElement_0=function(){return(br=o._emscripten_bind_CExpatJS_endElement_0=o.asm.E).apply(null,arguments)},kr=o._emscripten_bind_CExpatJS_characterData_0=function(){return(kr=o._emscripten_bind_CExpatJS_characterData_0=o.asm.F).apply(null,arguments)},Dr=o._emscripten_bind_CExpatJS___destroy___0=function(){return(Dr=o._emscripten_bind_CExpatJS___destroy___0=o.asm.G).apply(null,arguments)};function Sr(r){function t(){ar||(ar=!0,o.calledRun=!0,m||(o.noFSInit||Y.init.initialized||Y.init(),Y.ignorePermissions=!1,G(T),e(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),function(){if(o.postRun)for(\"function\"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)r=o.postRun.shift(),j.unshift(r);var r;G(j)}()))}B>0||(function(){if(o.preRun)for(\"function\"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)r=o.preRun.shift(),z.unshift(r);var r;G(z)}(),B>0||(o.setStatus?(o.setStatus(\"Running...\"),setTimeout((function(){setTimeout((function(){o.setStatus(\"\")}),1),t()}),1)):t()))}if(o._malloc=function(){return(o._malloc=o.asm.I).apply(null,arguments)},N=function r(){ar||Sr(),ar||(N=r)},o.run=Sr,o.preInit)for(\"function\"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();function Pr(){}function Fr(r){return(r||Pr).__cache__}function xr(r,e){var t=Fr(e),n=t[r];return n||((n=Object.create((e||Pr).prototype)).ptr=r,t[r]=n)}Sr(),Pr.prototype=Object.create(Pr.prototype),Pr.prototype.constructor=Pr,Pr.prototype.__class__=Pr,Pr.__cache__={},o.WrapperObject=Pr,o.getCache=Fr,o.wrapPointer=xr,o.castObject=function(r,e){return xr(r.ptr,e)},o.NULL=xr(0),o.destroy=function(r){if(!r.__destroy__)throw\"Error: Cannot destroy object. (Did you create it yourself?)\";r.__destroy__(),delete Fr(r.__class__)[r.ptr]},o.compare=function(r,e){return r.ptr===e.ptr},o.getPointer=function(r){return r.ptr},o.getClass=function(r){return r.__class__};var Ar={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Ar.needed){for(var r=0;r<Ar.temps.length;r++)o._free(Ar.temps[r]);Ar.temps.length=0,o._free(Ar.buffer),Ar.buffer=0,Ar.size+=Ar.needed,Ar.needed=0}Ar.buffer||(Ar.size+=128,Ar.buffer=o._malloc(Ar.size),v(Ar.buffer)),Ar.pos=0},alloc:function(r,e){v(Ar.buffer);var t,n=e.BYTES_PER_ELEMENT,i=r.length*n;return i=i+7&-8,Ar.pos+i>=Ar.size?(v(i>0),Ar.needed+=i,t=o._malloc(i),Ar.temps.push(t)):(t=Ar.buffer+Ar.pos,Ar.pos+=i),t},copy:function(r,e,t){switch(t>>>=0,e.BYTES_PER_ELEMENT){case 2:t>>>=1;break;case 4:t>>>=2;break;case 8:t>>>=3}for(var n=0;n<r.length;n++)e[t+n]=r[n]}};function Mr(){this.ptr=sr(),Fr(Mr)[this.ptr]=this}function Rr(){throw\"cannot construct a VoidPtr, no constructor in IDL\"}function Cr(){this.ptr=gr(),Fr(Cr)[this.ptr]=this}return Mr.prototype=Object.create(Pr.prototype),Mr.prototype.constructor=Mr,Mr.prototype.__class__=Mr,Mr.__cache__={},o.CExpat=Mr,Mr.prototype.version=Mr.prototype.version=function(){var r=this.ptr;return S(ur(r))},Mr.prototype.create=Mr.prototype.create=function(){var r=this.ptr;return!!cr(r)},Mr.prototype.destroy=Mr.prototype.destroy=function(){var r=this.ptr;fr(r)},Mr.prototype.parse=Mr.prototype.parse=function(r){var e=this.ptr;return Ar.prepare(),r=r&&\"object\"==typeof r?r.ptr:function(r){if(\"string\"==typeof r){var e=or(r),t=Ar.alloc(e,_);return Ar.copy(e,_,t),t}return r}(r),!!lr(e,r)},Mr.prototype.tag=Mr.prototype.tag=function(){var r=this.ptr;return S(dr(r))},Mr.prototype.attrs=Mr.prototype.attrs=function(){var r=this.ptr;return S(pr(r))},Mr.prototype.content=Mr.prototype.content=function(){var r=this.ptr;return S(hr(r))},Mr.prototype.startElement=Mr.prototype.startElement=function(){var r=this.ptr;mr(r)},Mr.prototype.endElement=Mr.prototype.endElement=function(){var r=this.ptr;vr(r)},Mr.prototype.characterData=Mr.prototype.characterData=function(){var r=this.ptr;wr(r)},Mr.prototype.__destroy__=Mr.prototype.__destroy__=function(){var r=this.ptr;_r(r)},Rr.prototype=Object.create(Pr.prototype),Rr.prototype.constructor=Rr,Rr.prototype.__class__=Rr,Rr.__cache__={},o.VoidPtr=Rr,Rr.prototype.__destroy__=Rr.prototype.__destroy__=function(){var r=this.ptr;yr(r)},Cr.prototype=Object.create(Mr.prototype),Cr.prototype.constructor=Cr,Cr.prototype.__class__=Cr,Cr.__cache__={},o.CExpatJS=Cr,Cr.prototype.startElement=Cr.prototype.startElement=function(){var r=this.ptr;Er(r)},Cr.prototype.endElement=Cr.prototype.endElement=function(){var r=this.ptr;br(r)},Cr.prototype.characterData=Cr.prototype.characterData=function(){var r=this.ptr;kr(r)},Cr.prototype.__destroy__=Cr.prototype.__destroy__=function(){var r=this.ptr;Dr(r)},r.ready},e.exports=n;var i=function(){if(\"undefined\"!=typeof self)return self;if(\"undefined\"!=typeof window)return window;if(\"undefined\"!=typeof global)return global;throw new Error(\"unable to locate global object\")}().__hpcc_wasmFolder||void 0;function a(r,e,t){var n=r.default||r;return n.__hpcc_promise||(n.__hpcc_promise=n({wasmBinary:t,locateFile:function(r,t){return function(r,e){for(;r.charAt(r.length-1)===e;)r=r.substring(0,r.length-1);return r}(e||function(r){if(!arguments.length)return i;var e=i;return i=r,e}()||t||\".\",\"/\")+\"/\"+function(r,e){for(;r.charAt(0)===e;)r=r.substring(1);return r}(r,\"/\")}})),n.__hpcc_promise}!function(){function r(r,e){this.tag=r,this.attrs=e,this._content=\"\"}Object.defineProperty(r.prototype,\"content\",{get:function(){return this._content},enumerable:!1,configurable:!0}),r.prototype.appendContent=function(r){this._content+=r}}();var s={exports:{}};!function(r,e){var t=function(){var r=\"undefined\"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return function(e){var t,n,o=void 0!==(e=e||{})?e:{};o.ready=new Promise((function(r,e){t=r,n=e}));var i,a={};for(i in o)o.hasOwnProperty(i)&&(a[i]=o[i]);var s,u,c=\"./this.program\",f=function(r,e){throw e},l=\"\";\"undefined\"!=typeof document&&document.currentScript&&(l=document.currentScript.src),r&&(l=r),l=0!==l.indexOf(\"blob:\")?l.substr(0,l.lastIndexOf(\"/\")+1):\"\",s=function(r){var e=new XMLHttpRequest;return e.open(\"GET\",r,!1),e.send(null),e.responseText},u=function(r,e,t){var n=new XMLHttpRequest;n.open(\"GET\",r,!0),n.responseType=\"arraybuffer\",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):t()},n.onerror=t,n.send(null)};var d=o.print||console.log.bind(console),p=o.printErr||console.warn.bind(console);for(i in a)a.hasOwnProperty(i)&&(o[i]=a[i]);a=null,o.arguments,o.thisProgram&&(c=o.thisProgram),o.quit&&(f=o.quit);var h,m=0;o.wasmBinary&&(h=o.wasmBinary);var v,w=o.noExitRuntime||!0;\"object\"!=typeof WebAssembly&&I(\"no native wasm support detected\");var _=!1;function y(r,e){r||I(\"Assertion failed: \"+e)}var g,E,b,k,D,S,P,F=\"undefined\"!=typeof TextDecoder?new TextDecoder(\"utf8\"):void 0;function x(r,e,t){for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.subarray&&F)return F.decode(r.subarray(e,o));for(var i=\"\";e<o;){var a=r[e++];if(128&a){var s=63&r[e++];if(192!=(224&a)){var u=63&r[e++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&r[e++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function A(r,e){return r?x(b,r,e):\"\"}function M(r,e,t,n){if(!(n>0))return 0;for(var o=t,i=t+n-1,a=0;a<r.length;++a){var s=r.charCodeAt(a);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&r.charCodeAt(++a);if(s<=127){if(t>=i)break;e[t++]=s}else if(s<=2047){if(t+1>=i)break;e[t++]=192|s>>6,e[t++]=128|63&s}else if(s<=65535){if(t+2>=i)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|63&s}else{if(t+3>=i)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|63&s}}return e[t]=0,t-o}function R(r){for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&r.charCodeAt(++t)),n<=127?++e:e+=n<=2047?2:n<=65535?3:4}return e}function C(r){g=r,o.HEAP8=E=new Int8Array(r),o.HEAP16=k=new Int16Array(r),o.HEAP32=D=new Int32Array(r),o.HEAPU8=b=new Uint8Array(r),o.HEAPU16=new Uint16Array(r),o.HEAPU32=new Uint32Array(r),o.HEAPF32=new Float32Array(r),o.HEAPF64=S=new Float64Array(r)}o.INITIAL_MEMORY;var z=[],T=[],j=[];var B=0,N=null;function O(r){B++,o.monitorRunDependencies&&o.monitorRunDependencies(B)}function L(r){if(B--,o.monitorRunDependencies&&o.monitorRunDependencies(B),0==B&&N){var e=N;N=null,e()}}function I(r){o.onAbort&&o.onAbort(r),p(r+=\"\"),_=!0,r=\"abort(\"+r+\"). Build with -s ASSERTIONS=1 for more info.\";var e=new WebAssembly.RuntimeError(r);throw n(e),e}o.preloadedImages={},o.preloadedAudios={};var U,H,W,G;function q(r){return r.startsWith(\"data:application/octet-stream;base64,\")}function V(r){try{if(r==U&&h)return new Uint8Array(h);throw\"both async and sync fetching of the wasm failed\"}catch(r){I(r)}}q(U=\"graphvizlib.wasm\")||(H=U,U=o.locateFile?o.locateFile(H,l):l+H);var J,X={141888:function(r,e){var t=A(r),n=A(e);nr.createPath(\"/\",$.dirname(t)),nr.writeFile($.join(\"/\",t),n)}};function Y(r){for(;r.length>0;){var e=r.shift();if(\"function\"!=typeof e){var t=e.func;\"number\"==typeof t?void 0===e.arg?P.get(t)():P.get(t)(e.arg):t(void 0===e.arg?null:e.arg)}else e(o)}}J=function(){return performance.now()};function K(r){return D[kr()>>2]=r,r}var $={splitPath:function(r){return/^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/.exec(r).slice(1)},normalizeArray:function(r,e){for(var t=0,n=r.length-1;n>=0;n--){var o=r[n];\".\"===o?r.splice(n,1):\"..\"===o?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t;t--)r.unshift(\"..\");return r},normalize:function(r){var e=\"/\"===r.charAt(0),t=\"/\"===r.substr(-1);return(r=$.normalizeArray(r.split(\"/\").filter((function(r){return!!r})),!e).join(\"/\"))||e||(r=\".\"),r&&t&&(r+=\"/\"),(e?\"/\":\"\")+r},dirname:function(r){var e=$.splitPath(r),t=e[0],n=e[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):\".\"},basename:function(r){if(\"/\"===r)return\"/\";var e=(r=(r=$.normalize(r)).replace(/\\/$/,\"\")).lastIndexOf(\"/\");return-1===e?r:r.substr(e+1)},extname:function(r){return $.splitPath(r)[3]},join:function(){var r=Array.prototype.slice.call(arguments,0);return $.normalize(r.join(\"/\"))},join2:function(r,e){return $.normalize(r+\"/\"+e)}};var Q={resolve:function(){for(var r=\"\",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var n=t>=0?arguments[t]:nr.cwd();if(\"string\"!=typeof n)throw new TypeError(\"Arguments to path.resolve must be strings\");if(!n)return\"\";r=n+\"/\"+r,e=\"/\"===n.charAt(0)}return(e?\"/\":\"\")+(r=$.normalizeArray(r.split(\"/\").filter((function(r){return!!r})),!e).join(\"/\"))||\".\"},relative:function(r,e){function t(r){for(var e=0;e<r.length&&\"\"===r[e];e++);for(var t=r.length-1;t>=0&&\"\"===r[t];t--);return e>t?[]:r.slice(e,t-e+1)}r=Q.resolve(r).substr(1),e=Q.resolve(e).substr(1);for(var n=t(r.split(\"/\")),o=t(e.split(\"/\")),i=Math.min(n.length,o.length),a=i,s=0;s<i;s++)if(n[s]!==o[s]){a=s;break}var u=[];for(s=a;s<n.length;s++)u.push(\"..\");return(u=u.concat(o.slice(a))).join(\"/\")}},Z={ttys:[],init:function(){},shutdown:function(){},register:function(r,e){Z.ttys[r]={input:[],output:[],ops:e},nr.registerDevice(r,Z.stream_ops)},stream_ops:{open:function(r){var e=Z.ttys[r.node.rdev];if(!e)throw new nr.ErrnoError(43);r.tty=e,r.seekable=!1},close:function(r){r.tty.ops.flush(r.tty)},flush:function(r){r.tty.ops.flush(r.tty)},read:function(r,e,t,n,o){if(!r.tty||!r.tty.ops.get_char)throw new nr.ErrnoError(60);for(var i=0,a=0;a<n;a++){var s;try{s=r.tty.ops.get_char(r.tty)}catch(r){throw new nr.ErrnoError(29)}if(void 0===s&&0===i)throw new nr.ErrnoError(6);if(null==s)break;i++,e[t+a]=s}return i&&(r.node.timestamp=Date.now()),i},write:function(r,e,t,n,o){if(!r.tty||!r.tty.ops.put_char)throw new nr.ErrnoError(60);try{for(var i=0;i<n;i++)r.tty.ops.put_char(r.tty,e[t+i])}catch(r){throw new nr.ErrnoError(29)}return n&&(r.node.timestamp=Date.now()),i}},default_tty_ops:{get_char:function(r){if(!r.input.length){var e=null;if(\"undefined\"!=typeof window&&\"function\"==typeof window.prompt?null!==(e=window.prompt(\"Input: \"))&&(e+=\"\\n\"):\"function\"==typeof readline&&null!==(e=readline())&&(e+=\"\\n\"),!e)return null;r.input=dr(e,!0)}return r.input.shift()},put_char:function(r,e){null===e||10===e?(d(x(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},flush:function(r){r.output&&r.output.length>0&&(d(x(r.output,0)),r.output=[])}},default_tty1_ops:{put_char:function(r,e){null===e||10===e?(p(x(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},flush:function(r){r.output&&r.output.length>0&&(p(x(r.output,0)),r.output=[])}}};function rr(r,e){b.fill(0,r,r+e)}function er(r){r=function(r,e){return e||(e=16),Math.ceil(r/e)*e}(r,65536);var e=Fr(65536,r);return e?(rr(e,r),e):0}var tr={ops_table:null,mount:function(r){return tr.createNode(null,\"/\",16895,0)},createNode:function(r,e,t,n){if(nr.isBlkdev(t)||nr.isFIFO(t))throw new nr.ErrnoError(63);tr.ops_table||(tr.ops_table={dir:{node:{getattr:tr.node_ops.getattr,setattr:tr.node_ops.setattr,lookup:tr.node_ops.lookup,mknod:tr.node_ops.mknod,rename:tr.node_ops.rename,unlink:tr.node_ops.unlink,rmdir:tr.node_ops.rmdir,readdir:tr.node_ops.readdir,symlink:tr.node_ops.symlink},stream:{llseek:tr.stream_ops.llseek}},file:{node:{getattr:tr.node_ops.getattr,setattr:tr.node_ops.setattr},stream:{llseek:tr.stream_ops.llseek,read:tr.stream_ops.read,write:tr.stream_ops.write,allocate:tr.stream_ops.allocate,mmap:tr.stream_ops.mmap,msync:tr.stream_ops.msync}},link:{node:{getattr:tr.node_ops.getattr,setattr:tr.node_ops.setattr,readlink:tr.node_ops.readlink},stream:{}},chrdev:{node:{getattr:tr.node_ops.getattr,setattr:tr.node_ops.setattr},stream:nr.chrdev_stream_ops}});var o=nr.createNode(r,e,t,n);return nr.isDir(o.mode)?(o.node_ops=tr.ops_table.dir.node,o.stream_ops=tr.ops_table.dir.stream,o.contents={}):nr.isFile(o.mode)?(o.node_ops=tr.ops_table.file.node,o.stream_ops=tr.ops_table.file.stream,o.usedBytes=0,o.contents=null):nr.isLink(o.mode)?(o.node_ops=tr.ops_table.link.node,o.stream_ops=tr.ops_table.link.stream):nr.isChrdev(o.mode)&&(o.node_ops=tr.ops_table.chrdev.node,o.stream_ops=tr.ops_table.chrdev.stream),o.timestamp=Date.now(),r&&(r.contents[e]=o,r.timestamp=o.timestamp),o},getFileDataAsTypedArray:function(r){return r.contents?r.contents.subarray?r.contents.subarray(0,r.usedBytes):new Uint8Array(r.contents):new Uint8Array(0)},expandFileStorage:function(r,e){var t=r.contents?r.contents.length:0;if(!(t>=e)){e=Math.max(e,t*(t<1048576?2:1.125)>>>0),0!=t&&(e=Math.max(e,256));var n=r.contents;r.contents=new Uint8Array(e),r.usedBytes>0&&r.contents.set(n.subarray(0,r.usedBytes),0)}},resizeFileStorage:function(r,e){if(r.usedBytes!=e)if(0==e)r.contents=null,r.usedBytes=0;else{var t=r.contents;r.contents=new Uint8Array(e),t&&r.contents.set(t.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}},node_ops:{getattr:function(r){var e={};return e.dev=nr.isChrdev(r.mode)?r.id:1,e.ino=r.id,e.mode=r.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=r.rdev,nr.isDir(r.mode)?e.size=4096:nr.isFile(r.mode)?e.size=r.usedBytes:nr.isLink(r.mode)?e.size=r.link.length:e.size=0,e.atime=new Date(r.timestamp),e.mtime=new Date(r.timestamp),e.ctime=new Date(r.timestamp),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr:function(r,e){void 0!==e.mode&&(r.mode=e.mode),void 0!==e.timestamp&&(r.timestamp=e.timestamp),void 0!==e.size&&tr.resizeFileStorage(r,e.size)},lookup:function(r,e){throw nr.genericErrors[44]},mknod:function(r,e,t,n){return tr.createNode(r,e,t,n)},rename:function(r,e,t){if(nr.isDir(r.mode)){var n;try{n=nr.lookupNode(e,t)}catch(r){}if(n)for(var o in n.contents)throw new nr.ErrnoError(55)}delete r.parent.contents[r.name],r.parent.timestamp=Date.now(),r.name=t,e.contents[t]=r,e.timestamp=r.parent.timestamp,r.parent=e},unlink:function(r,e){delete r.contents[e],r.timestamp=Date.now()},rmdir:function(r,e){var t=nr.lookupNode(r,e);for(var n in t.contents)throw new nr.ErrnoError(55);delete r.contents[e],r.timestamp=Date.now()},readdir:function(r){var e=[\".\",\"..\"];for(var t in r.contents)r.contents.hasOwnProperty(t)&&e.push(t);return e},symlink:function(r,e,t){var n=tr.createNode(r,e,41471,0);return n.link=t,n},readlink:function(r){if(!nr.isLink(r.mode))throw new nr.ErrnoError(28);return r.link}},stream_ops:{read:function(r,e,t,n,o){var i=r.node.contents;if(o>=r.node.usedBytes)return 0;var a=Math.min(r.node.usedBytes-o,n);if(a>8&&i.subarray)e.set(i.subarray(o,o+a),t);else for(var s=0;s<a;s++)e[t+s]=i[o+s];return a},write:function(r,e,t,n,o,i){if(e.buffer===E.buffer&&(i=!1),!n)return 0;var a=r.node;if(a.timestamp=Date.now(),e.subarray&&(!a.contents||a.contents.subarray)){if(i)return a.contents=e.subarray(t,t+n),a.usedBytes=n,n;if(0===a.usedBytes&&0===o)return a.contents=e.slice(t,t+n),a.usedBytes=n,n;if(o+n<=a.usedBytes)return a.contents.set(e.subarray(t,t+n),o),n}if(tr.expandFileStorage(a,o+n),a.contents.subarray&&e.subarray)a.contents.set(e.subarray(t,t+n),o);else for(var s=0;s<n;s++)a.contents[o+s]=e[t+s];return a.usedBytes=Math.max(a.usedBytes,o+n),n},llseek:function(r,e,t){var n=e;if(1===t?n+=r.position:2===t&&nr.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new nr.ErrnoError(28);return n},allocate:function(r,e,t){tr.expandFileStorage(r.node,e+t),r.node.usedBytes=Math.max(r.node.usedBytes,e+t)},mmap:function(r,e,t,n,o,i){if(0!==e)throw new nr.ErrnoError(28);if(!nr.isFile(r.node.mode))throw new nr.ErrnoError(43);var a,s,u=r.node.contents;if(2&i||u.buffer!==g){if((n>0||n+t<u.length)&&(u=u.subarray?u.subarray(n,n+t):Array.prototype.slice.call(u,n,n+t)),s=!0,!(a=er(t)))throw new nr.ErrnoError(48);E.set(u,a)}else s=!1,a=u.byteOffset;return{ptr:a,allocated:s}},msync:function(r,e,t,n,o){if(!nr.isFile(r.node.mode))throw new nr.ErrnoError(43);return 2&o||tr.stream_ops.write(r,e,0,n,t,!1),0}}};var nr={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:\"/\",initialized:!1,ignorePermissions:!0,trackingDelegate:{},tracking:{openFlags:{READ:1,WRITE:2}},ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:function(r,e){if(e=e||{},!(r=Q.resolve(nr.cwd(),r)))return{path:\"\",node:null};var t={follow_mount:!0,recurse_count:0};for(var n in t)void 0===e[n]&&(e[n]=t[n]);if(e.recurse_count>8)throw new nr.ErrnoError(32);for(var o=$.normalizeArray(r.split(\"/\").filter((function(r){return!!r})),!1),i=nr.root,a=\"/\",s=0;s<o.length;s++){var u=s===o.length-1;if(u&&e.parent)break;if(i=nr.lookupNode(i,o[s]),a=$.join2(a,o[s]),nr.isMountpoint(i)&&(!u||u&&e.follow_mount)&&(i=i.mounted.root),!u||e.follow)for(var c=0;nr.isLink(i.mode);){var f=nr.readlink(a);if(a=Q.resolve($.dirname(a),f),i=nr.lookupPath(a,{recurse_count:e.recurse_count}).node,c++>40)throw new nr.ErrnoError(32)}}return{path:a,node:i}},getPath:function(r){for(var e;;){if(nr.isRoot(r)){var t=r.mount.mountpoint;return e?\"/\"!==t[t.length-1]?t+\"/\"+e:t+e:t}e=e?r.name+\"/\"+e:r.name,r=r.parent}},hashName:function(r,e){for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(r+t>>>0)%nr.nameTable.length},hashAddNode:function(r){var e=nr.hashName(r.parent.id,r.name);r.name_next=nr.nameTable[e],nr.nameTable[e]=r},hashRemoveNode:function(r){var e=nr.hashName(r.parent.id,r.name);if(nr.nameTable[e]===r)nr.nameTable[e]=r.name_next;else for(var t=nr.nameTable[e];t;){if(t.name_next===r){t.name_next=r.name_next;break}t=t.name_next}},lookupNode:function(r,e){var t=nr.mayLookup(r);if(t)throw new nr.ErrnoError(t,r);for(var n=nr.hashName(r.id,e),o=nr.nameTable[n];o;o=o.name_next){var i=o.name;if(o.parent.id===r.id&&i===e)return o}return nr.lookup(r,e)},createNode:function(r,e,t,n){var o=new nr.FSNode(r,e,t,n);return nr.hashAddNode(o),o},destroyNode:function(r){nr.hashRemoveNode(r)},isRoot:function(r){return r===r.parent},isMountpoint:function(r){return!!r.mounted},isFile:function(r){return 32768==(61440&r)},isDir:function(r){return 16384==(61440&r)},isLink:function(r){return 40960==(61440&r)},isChrdev:function(r){return 8192==(61440&r)},isBlkdev:function(r){return 24576==(61440&r)},isFIFO:function(r){return 4096==(61440&r)},isSocket:function(r){return 49152==(49152&r)},flagModes:{r:0,\"r+\":2,w:577,\"w+\":578,a:1089,\"a+\":1090},modeStringToFlags:function(r){var e=nr.flagModes[r];if(void 0===e)throw new Error(\"Unknown file open mode: \"+r);return e},flagsToPermissionString:function(r){var e=[\"r\",\"w\",\"rw\"][3&r];return 512&r&&(e+=\"w\"),e},nodePermissions:function(r,e){return nr.ignorePermissions||(!e.includes(\"r\")||292&r.mode)&&(!e.includes(\"w\")||146&r.mode)&&(!e.includes(\"x\")||73&r.mode)?0:2},mayLookup:function(r){var e=nr.nodePermissions(r,\"x\");return e||(r.node_ops.lookup?0:2)},mayCreate:function(r,e){try{nr.lookupNode(r,e);return 20}catch(r){}return nr.nodePermissions(r,\"wx\")},mayDelete:function(r,e,t){var n;try{n=nr.lookupNode(r,e)}catch(r){return r.errno}var o=nr.nodePermissions(r,\"wx\");if(o)return o;if(t){if(!nr.isDir(n.mode))return 54;if(nr.isRoot(n)||nr.getPath(n)===nr.cwd())return 10}else if(nr.isDir(n.mode))return 31;return 0},mayOpen:function(r,e){return r?nr.isLink(r.mode)?32:nr.isDir(r.mode)&&(\"r\"!==nr.flagsToPermissionString(e)||512&e)?31:nr.nodePermissions(r,nr.flagsToPermissionString(e)):44},MAX_OPEN_FDS:4096,nextfd:function(r,e){r=r||0,e=e||nr.MAX_OPEN_FDS;for(var t=r;t<=e;t++)if(!nr.streams[t])return t;throw new nr.ErrnoError(33)},getStream:function(r){return nr.streams[r]},createStream:function(r,e,t){nr.FSStream||(nr.FSStream=function(){},nr.FSStream.prototype={object:{get:function(){return this.node},set:function(r){this.node=r}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}});var n=new nr.FSStream;for(var o in r)n[o]=r[o];r=n;var i=nr.nextfd(e,t);return r.fd=i,nr.streams[i]=r,r},closeStream:function(r){nr.streams[r]=null},chrdev_stream_ops:{open:function(r){var e=nr.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open&&r.stream_ops.open(r)},llseek:function(){throw new nr.ErrnoError(70)}},major:function(r){return r>>8},minor:function(r){return 255&r},makedev:function(r,e){return r<<8|e},registerDevice:function(r,e){nr.devices[r]={stream_ops:e}},getDevice:function(r){return nr.devices[r]},getMounts:function(r){for(var e=[],t=[r];t.length;){var n=t.pop();e.push(n),t.push.apply(t,n.mounts)}return e},syncfs:function(r,e){\"function\"==typeof r&&(e=r,r=!1),nr.syncFSRequests++,nr.syncFSRequests>1&&p(\"warning: \"+nr.syncFSRequests+\" FS.syncfs operations in flight at once, probably just doing extra work\");var t=nr.getMounts(nr.root.mount),n=0;function o(r){return nr.syncFSRequests--,e(r)}function i(r){if(r)return i.errored?void 0:(i.errored=!0,o(r));++n>=t.length&&o(null)}t.forEach((function(e){if(!e.type.syncfs)return i(null);e.type.syncfs(e,r,i)}))},mount:function(r,e,t){var n,o=\"/\"===t,i=!t;if(o&&nr.root)throw new nr.ErrnoError(10);if(!o&&!i){var a=nr.lookupPath(t,{follow_mount:!1});if(t=a.path,n=a.node,nr.isMountpoint(n))throw new nr.ErrnoError(10);if(!nr.isDir(n.mode))throw new nr.ErrnoError(54)}var s={type:r,opts:e,mountpoint:t,mounts:[]},u=r.mount(s);return u.mount=s,s.root=u,o?nr.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount:function(r){var e=nr.lookupPath(r,{follow_mount:!1});if(!nr.isMountpoint(e.node))throw new nr.ErrnoError(28);var t=e.node,n=t.mounted,o=nr.getMounts(n);Object.keys(nr.nameTable).forEach((function(r){for(var e=nr.nameTable[r];e;){var t=e.name_next;o.includes(e.mount)&&nr.destroyNode(e),e=t}})),t.mounted=null;var i=t.mount.mounts.indexOf(n);t.mount.mounts.splice(i,1)},lookup:function(r,e){return r.node_ops.lookup(r,e)},mknod:function(r,e,t){var n=nr.lookupPath(r,{parent:!0}).node,o=$.basename(r);if(!o||\".\"===o||\"..\"===o)throw new nr.ErrnoError(28);var i=nr.mayCreate(n,o);if(i)throw new nr.ErrnoError(i);if(!n.node_ops.mknod)throw new nr.ErrnoError(63);return n.node_ops.mknod(n,o,e,t)},create:function(r,e){return e=void 0!==e?e:438,e&=4095,e|=32768,nr.mknod(r,e,0)},mkdir:function(r,e){return e=void 0!==e?e:511,e&=1023,e|=16384,nr.mknod(r,e,0)},mkdirTree:function(r,e){for(var t=r.split(\"/\"),n=\"\",o=0;o<t.length;++o)if(t[o]){n+=\"/\"+t[o];try{nr.mkdir(n,e)}catch(r){if(20!=r.errno)throw r}}},mkdev:function(r,e,t){return void 0===t&&(t=e,e=438),e|=8192,nr.mknod(r,e,t)},symlink:function(r,e){if(!Q.resolve(r))throw new nr.ErrnoError(44);var t=nr.lookupPath(e,{parent:!0}).node;if(!t)throw new nr.ErrnoError(44);var n=$.basename(e),o=nr.mayCreate(t,n);if(o)throw new nr.ErrnoError(o);if(!t.node_ops.symlink)throw new nr.ErrnoError(63);return t.node_ops.symlink(t,n,r)},rename:function(r,e){var t,n,o=$.dirname(r),i=$.dirname(e),a=$.basename(r),s=$.basename(e);if(t=nr.lookupPath(r,{parent:!0}).node,n=nr.lookupPath(e,{parent:!0}).node,!t||!n)throw new nr.ErrnoError(44);if(t.mount!==n.mount)throw new nr.ErrnoError(75);var u,c=nr.lookupNode(t,a),f=Q.relative(r,i);if(\".\"!==f.charAt(0))throw new nr.ErrnoError(28);if(\".\"!==(f=Q.relative(e,o)).charAt(0))throw new nr.ErrnoError(55);try{u=nr.lookupNode(n,s)}catch(r){}if(c!==u){var l=nr.isDir(c.mode),d=nr.mayDelete(t,a,l);if(d)throw new nr.ErrnoError(d);if(d=u?nr.mayDelete(n,s,l):nr.mayCreate(n,s))throw new nr.ErrnoError(d);if(!t.node_ops.rename)throw new nr.ErrnoError(63);if(nr.isMountpoint(c)||u&&nr.isMountpoint(u))throw new nr.ErrnoError(10);if(n!==t&&(d=nr.nodePermissions(t,\"w\")))throw new nr.ErrnoError(d);try{nr.trackingDelegate.willMovePath}catch(t){p(\"FS.trackingDelegate['willMovePath']('\"+r+\"', '\"+e+\"') threw an exception: \"+t.message)}nr.hashRemoveNode(c);try{t.node_ops.rename(c,n,s)}catch(r){throw r}finally{nr.hashAddNode(c)}try{nr.trackingDelegate.onMovePath}catch(t){p(\"FS.trackingDelegate['onMovePath']('\"+r+\"', '\"+e+\"') threw an exception: \"+t.message)}}},rmdir:function(r){var e=nr.lookupPath(r,{parent:!0}).node,t=$.basename(r),n=nr.lookupNode(e,t),o=nr.mayDelete(e,t,!0);if(o)throw new nr.ErrnoError(o);if(!e.node_ops.rmdir)throw new nr.ErrnoError(63);if(nr.isMountpoint(n))throw new nr.ErrnoError(10);try{nr.trackingDelegate.willDeletePath}catch(e){p(\"FS.trackingDelegate['willDeletePath']('\"+r+\"') threw an exception: \"+e.message)}e.node_ops.rmdir(e,t),nr.destroyNode(n);try{nr.trackingDelegate.onDeletePath}catch(e){p(\"FS.trackingDelegate['onDeletePath']('\"+r+\"') threw an exception: \"+e.message)}},readdir:function(r){var e=nr.lookupPath(r,{follow:!0}).node;if(!e.node_ops.readdir)throw new nr.ErrnoError(54);return e.node_ops.readdir(e)},unlink:function(r){var e=nr.lookupPath(r,{parent:!0}).node,t=$.basename(r),n=nr.lookupNode(e,t),o=nr.mayDelete(e,t,!1);if(o)throw new nr.ErrnoError(o);if(!e.node_ops.unlink)throw new nr.ErrnoError(63);if(nr.isMountpoint(n))throw new nr.ErrnoError(10);try{nr.trackingDelegate.willDeletePath}catch(e){p(\"FS.trackingDelegate['willDeletePath']('\"+r+\"') threw an exception: \"+e.message)}e.node_ops.unlink(e,t),nr.destroyNode(n);try{nr.trackingDelegate.onDeletePath}catch(e){p(\"FS.trackingDelegate['onDeletePath']('\"+r+\"') threw an exception: \"+e.message)}},readlink:function(r){var e=nr.lookupPath(r).node;if(!e)throw new nr.ErrnoError(44);if(!e.node_ops.readlink)throw new nr.ErrnoError(28);return Q.resolve(nr.getPath(e.parent),e.node_ops.readlink(e))},stat:function(r,e){var t=nr.lookupPath(r,{follow:!e}).node;if(!t)throw new nr.ErrnoError(44);if(!t.node_ops.getattr)throw new nr.ErrnoError(63);return t.node_ops.getattr(t)},lstat:function(r){return nr.stat(r,!0)},chmod:function(r,e,t){var n;\"string\"==typeof r?n=nr.lookupPath(r,{follow:!t}).node:n=r;if(!n.node_ops.setattr)throw new nr.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&e|-4096&n.mode,timestamp:Date.now()})},lchmod:function(r,e){nr.chmod(r,e,!0)},fchmod:function(r,e){var t=nr.getStream(r);if(!t)throw new nr.ErrnoError(8);nr.chmod(t.node,e)},chown:function(r,e,t,n){var o;\"string\"==typeof r?o=nr.lookupPath(r,{follow:!n}).node:o=r;if(!o.node_ops.setattr)throw new nr.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:function(r,e,t){nr.chown(r,e,t,!0)},fchown:function(r,e,t){var n=nr.getStream(r);if(!n)throw new nr.ErrnoError(8);nr.chown(n.node,e,t)},truncate:function(r,e){if(e<0)throw new nr.ErrnoError(28);var t;\"string\"==typeof r?t=nr.lookupPath(r,{follow:!0}).node:t=r;if(!t.node_ops.setattr)throw new nr.ErrnoError(63);if(nr.isDir(t.mode))throw new nr.ErrnoError(31);if(!nr.isFile(t.mode))throw new nr.ErrnoError(28);var n=nr.nodePermissions(t,\"w\");if(n)throw new nr.ErrnoError(n);t.node_ops.setattr(t,{size:e,timestamp:Date.now()})},ftruncate:function(r,e){var t=nr.getStream(r);if(!t)throw new nr.ErrnoError(8);if(0==(2097155&t.flags))throw new nr.ErrnoError(28);nr.truncate(t.node,e)},utime:function(r,e,t){var n=nr.lookupPath(r,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(e,t)})},open:function(r,e,t,n,i){if(\"\"===r)throw new nr.ErrnoError(44);var a;if(t=void 0===t?438:t,t=64&(e=\"string\"==typeof e?nr.modeStringToFlags(e):e)?4095&t|32768:0,\"object\"==typeof r)a=r;else{r=$.normalize(r);try{a=nr.lookupPath(r,{follow:!(131072&e)}).node}catch(r){}}var s=!1;if(64&e)if(a){if(128&e)throw new nr.ErrnoError(20)}else a=nr.mknod(r,t,0),s=!0;if(!a)throw new nr.ErrnoError(44);if(nr.isChrdev(a.mode)&&(e&=-513),65536&e&&!nr.isDir(a.mode))throw new nr.ErrnoError(54);if(!s){var u=nr.mayOpen(a,e);if(u)throw new nr.ErrnoError(u)}512&e&&nr.truncate(a,0),e&=-131713;var c=nr.createStream({node:a,path:nr.getPath(a),flags:e,seekable:!0,position:0,stream_ops:a.stream_ops,ungotten:[],error:!1},n,i);c.stream_ops.open&&c.stream_ops.open(c),!o.logReadFiles||1&e||(nr.readFiles||(nr.readFiles={}),r in nr.readFiles||(nr.readFiles[r]=1,p(\"FS.trackingDelegate error on read file: \"+r)));try{nr.trackingDelegate.onOpenFile}catch(e){p(\"FS.trackingDelegate['onOpenFile']('\"+r+\"', flags) threw an exception: \"+e.message)}return c},close:function(r){if(nr.isClosed(r))throw new nr.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(r){throw r}finally{nr.closeStream(r.fd)}r.fd=null},isClosed:function(r){return null===r.fd},llseek:function(r,e,t){if(nr.isClosed(r))throw new nr.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new nr.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new nr.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,t),r.ungotten=[],r.position},read:function(r,e,t,n,o){if(n<0||o<0)throw new nr.ErrnoError(28);if(nr.isClosed(r))throw new nr.ErrnoError(8);if(1==(2097155&r.flags))throw new nr.ErrnoError(8);if(nr.isDir(r.node.mode))throw new nr.ErrnoError(31);if(!r.stream_ops.read)throw new nr.ErrnoError(28);var i=void 0!==o;if(i){if(!r.seekable)throw new nr.ErrnoError(70)}else o=r.position;var a=r.stream_ops.read(r,e,t,n,o);return i||(r.position+=a),a},write:function(r,e,t,n,o,i){if(n<0||o<0)throw new nr.ErrnoError(28);if(nr.isClosed(r))throw new nr.ErrnoError(8);if(0==(2097155&r.flags))throw new nr.ErrnoError(8);if(nr.isDir(r.node.mode))throw new nr.ErrnoError(31);if(!r.stream_ops.write)throw new nr.ErrnoError(28);r.seekable&&1024&r.flags&&nr.llseek(r,0,2);var a=void 0!==o;if(a){if(!r.seekable)throw new nr.ErrnoError(70)}else o=r.position;var s=r.stream_ops.write(r,e,t,n,o,i);a||(r.position+=s);try{r.path&&nr.trackingDelegate.onWriteToFile&&nr.trackingDelegate.onWriteToFile(r.path)}catch(e){p(\"FS.trackingDelegate['onWriteToFile']('\"+r.path+\"') threw an exception: \"+e.message)}return s},allocate:function(r,e,t){if(nr.isClosed(r))throw new nr.ErrnoError(8);if(e<0||t<=0)throw new nr.ErrnoError(28);if(0==(2097155&r.flags))throw new nr.ErrnoError(8);if(!nr.isFile(r.node.mode)&&!nr.isDir(r.node.mode))throw new nr.ErrnoError(43);if(!r.stream_ops.allocate)throw new nr.ErrnoError(138);r.stream_ops.allocate(r,e,t)},mmap:function(r,e,t,n,o,i){if(0!=(2&o)&&0==(2&i)&&2!=(2097155&r.flags))throw new nr.ErrnoError(2);if(1==(2097155&r.flags))throw new nr.ErrnoError(2);if(!r.stream_ops.mmap)throw new nr.ErrnoError(43);return r.stream_ops.mmap(r,e,t,n,o,i)},msync:function(r,e,t,n,o){return r&&r.stream_ops.msync?r.stream_ops.msync(r,e,t,n,o):0},munmap:function(r){return 0},ioctl:function(r,e,t){if(!r.stream_ops.ioctl)throw new nr.ErrnoError(59);return r.stream_ops.ioctl(r,e,t)},readFile:function(r,e){if((e=e||{}).flags=e.flags||0,e.encoding=e.encoding||\"binary\",\"utf8\"!==e.encoding&&\"binary\"!==e.encoding)throw new Error('Invalid encoding type \"'+e.encoding+'\"');var t,n=nr.open(r,e.flags),o=nr.stat(r).size,i=new Uint8Array(o);return nr.read(n,i,0,o,0),\"utf8\"===e.encoding?t=x(i,0):\"binary\"===e.encoding&&(t=i),nr.close(n),t},writeFile:function(r,e,t){(t=t||{}).flags=t.flags||577;var n=nr.open(r,t.flags,t.mode);if(\"string\"==typeof e){var o=new Uint8Array(R(e)+1),i=M(e,o,0,o.length);nr.write(n,o,0,i,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(e))throw new Error(\"Unsupported data type\");nr.write(n,e,0,e.byteLength,void 0,t.canOwn)}nr.close(n)},cwd:function(){return nr.currentPath},chdir:function(r){var e=nr.lookupPath(r,{follow:!0});if(null===e.node)throw new nr.ErrnoError(44);if(!nr.isDir(e.node.mode))throw new nr.ErrnoError(54);var t=nr.nodePermissions(e.node,\"x\");if(t)throw new nr.ErrnoError(t);nr.currentPath=e.path},createDefaultDirectories:function(){nr.mkdir(\"/tmp\"),nr.mkdir(\"/home\"),nr.mkdir(\"/home/web_user\")},createDefaultDevices:function(){nr.mkdir(\"/dev\"),nr.registerDevice(nr.makedev(1,3),{read:function(){return 0},write:function(r,e,t,n,o){return n}}),nr.mkdev(\"/dev/null\",nr.makedev(1,3)),Z.register(nr.makedev(5,0),Z.default_tty_ops),Z.register(nr.makedev(6,0),Z.default_tty1_ops),nr.mkdev(\"/dev/tty\",nr.makedev(5,0)),nr.mkdev(\"/dev/tty1\",nr.makedev(6,0));var r=function(){if(\"object\"==typeof crypto&&\"function\"==typeof crypto.getRandomValues){var r=new Uint8Array(1);return function(){return crypto.getRandomValues(r),r[0]}}return function(){I(\"randomDevice\")}}();nr.createDevice(\"/dev\",\"random\",r),nr.createDevice(\"/dev\",\"urandom\",r),nr.mkdir(\"/dev/shm\"),nr.mkdir(\"/dev/shm/tmp\")},createSpecialDirectories:function(){nr.mkdir(\"/proc\");var r=nr.mkdir(\"/proc/self\");nr.mkdir(\"/proc/self/fd\"),nr.mount({mount:function(){var e=nr.createNode(r,\"fd\",16895,73);return e.node_ops={lookup:function(r,e){var t=+e,n=nr.getStream(t);if(!n)throw new nr.ErrnoError(8);var o={parent:null,mount:{mountpoint:\"fake\"},node_ops:{readlink:function(){return n.path}}};return o.parent=o,o}},e}},{},\"/proc/self/fd\")},createStandardStreams:function(){o.stdin?nr.createDevice(\"/dev\",\"stdin\",o.stdin):nr.symlink(\"/dev/tty\",\"/dev/stdin\"),o.stdout?nr.createDevice(\"/dev\",\"stdout\",null,o.stdout):nr.symlink(\"/dev/tty\",\"/dev/stdout\"),o.stderr?nr.createDevice(\"/dev\",\"stderr\",null,o.stderr):nr.symlink(\"/dev/tty1\",\"/dev/stderr\"),nr.open(\"/dev/stdin\",0),nr.open(\"/dev/stdout\",1),nr.open(\"/dev/stderr\",1)},ensureErrnoError:function(){nr.ErrnoError||(nr.ErrnoError=function(r,e){this.node=e,this.setErrno=function(r){this.errno=r},this.setErrno(r),this.message=\"FS error\"},nr.ErrnoError.prototype=new Error,nr.ErrnoError.prototype.constructor=nr.ErrnoError,[44].forEach((function(r){nr.genericErrors[r]=new nr.ErrnoError(r),nr.genericErrors[r].stack=\"<generic error, no stack>\"})))},staticInit:function(){nr.ensureErrnoError(),nr.nameTable=new Array(4096),nr.mount(tr,{},\"/\"),nr.createDefaultDirectories(),nr.createDefaultDevices(),nr.createSpecialDirectories(),nr.filesystems={MEMFS:tr}},init:function(r,e,t){nr.init.initialized=!0,nr.ensureErrnoError(),o.stdin=r||o.stdin,o.stdout=e||o.stdout,o.stderr=t||o.stderr,nr.createStandardStreams()},quit:function(){nr.init.initialized=!1;var r=o._fflush;r&&r(0);for(var e=0;e<nr.streams.length;e++){var t=nr.streams[e];t&&nr.close(t)}},getMode:function(r,e){var t=0;return r&&(t|=365),e&&(t|=146),t},findObject:function(r,e){var t=nr.analyzePath(r,e);return t.exists?t.object:null},analyzePath:function(r,e){try{r=(n=nr.lookupPath(r,{follow:!e})).path}catch(r){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=nr.lookupPath(r,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=$.basename(r),n=nr.lookupPath(r,{follow:!e}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot=\"/\"===n.path}catch(r){t.error=r.errno}return t},createPath:function(r,e,t,n){r=\"string\"==typeof r?r:nr.getPath(r);for(var o=e.split(\"/\").reverse();o.length;){var i=o.pop();if(i){var a=$.join2(r,i);try{nr.mkdir(a)}catch(r){}r=a}}return a},createFile:function(r,e,t,n,o){var i=$.join2(\"string\"==typeof r?r:nr.getPath(r),e),a=nr.getMode(n,o);return nr.create(i,a)},createDataFile:function(r,e,t,n,o,i){var a=e?$.join2(\"string\"==typeof r?r:nr.getPath(r),e):r,s=nr.getMode(n,o),u=nr.create(a,s);if(t){if(\"string\"==typeof t){for(var c=new Array(t.length),f=0,l=t.length;f<l;++f)c[f]=t.charCodeAt(f);t=c}nr.chmod(u,146|s);var d=nr.open(u,577);nr.write(d,t,0,t.length,0,i),nr.close(d),nr.chmod(u,s)}return u},createDevice:function(r,e,t,n){var o=$.join2(\"string\"==typeof r?r:nr.getPath(r),e),i=nr.getMode(!!t,!!n);nr.createDevice.major||(nr.createDevice.major=64);var a=nr.makedev(nr.createDevice.major++,0);return nr.registerDevice(a,{open:function(r){r.seekable=!1},close:function(r){n&&n.buffer&&n.buffer.length&&n(10)},read:function(r,e,n,o,i){for(var a=0,s=0;s<o;s++){var u;try{u=t()}catch(r){throw new nr.ErrnoError(29)}if(void 0===u&&0===a)throw new nr.ErrnoError(6);if(null==u)break;a++,e[n+s]=u}return a&&(r.node.timestamp=Date.now()),a},write:function(r,e,t,o,i){for(var a=0;a<o;a++)try{n(e[t+a])}catch(r){throw new nr.ErrnoError(29)}return o&&(r.node.timestamp=Date.now()),a}}),nr.mkdev(o,i,a)},forceLoadFile:function(r){if(r.isDevice||r.isFolder||r.link||r.contents)return!0;if(\"undefined\"!=typeof XMLHttpRequest)throw new Error(\"Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.\");if(!s)throw new Error(\"Cannot load without read() or XMLHttpRequest.\");try{r.contents=dr(s(r.url),!0),r.usedBytes=r.contents.length}catch(r){throw new nr.ErrnoError(29)}},createLazyFile:function(r,e,t,n,o){function i(){this.lengthKnown=!1,this.chunks=[]}if(i.prototype.get=function(r){if(!(r>this.length-1||r<0)){var e=r%this.chunkSize,t=r/this.chunkSize|0;return this.getter(t)[e]}},i.prototype.setDataGetter=function(r){this.getter=r},i.prototype.cacheLength=function(){var r=new XMLHttpRequest;if(r.open(\"HEAD\",t,!1),r.send(null),!(r.status>=200&&r.status<300||304===r.status))throw new Error(\"Couldn't load \"+t+\". Status: \"+r.status);var e,n=Number(r.getResponseHeader(\"Content-length\")),o=(e=r.getResponseHeader(\"Accept-Ranges\"))&&\"bytes\"===e,i=(e=r.getResponseHeader(\"Content-Encoding\"))&&\"gzip\"===e,a=1048576;o||(a=n);var s=this;s.setDataGetter((function(r){var e=r*a,o=(r+1)*a-1;if(o=Math.min(o,n-1),void 0===s.chunks[r]&&(s.chunks[r]=function(r,e){if(r>e)throw new Error(\"invalid range (\"+r+\", \"+e+\") or no bytes requested!\");if(e>n-1)throw new Error(\"only \"+n+\" bytes available! programmer error!\");var o=new XMLHttpRequest;if(o.open(\"GET\",t,!1),n!==a&&o.setRequestHeader(\"Range\",\"bytes=\"+r+\"-\"+e),\"undefined\"!=typeof Uint8Array&&(o.responseType=\"arraybuffer\"),o.overrideMimeType&&o.overrideMimeType(\"text/plain; charset=x-user-defined\"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error(\"Couldn't load \"+t+\". Status: \"+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):dr(o.responseText||\"\",!0)}(e,o)),void 0===s.chunks[r])throw new Error(\"doXHR failed!\");return s.chunks[r]})),!i&&n||(a=n=1,n=this.getter(0).length,a=n,d(\"LazyFiles on gzip forces download of the whole file when length is accessed\")),this._length=n,this._chunkSize=a,this.lengthKnown=!0},\"undefined\"!=typeof XMLHttpRequest)throw\"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc\";var a={isDevice:!1,url:t},s=nr.createFile(r,e,a,n,o);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach((function(r){var e=s.stream_ops[r];u[r]=function(){return nr.forceLoadFile(s),e.apply(null,arguments)}})),u.read=function(r,e,t,n,o){nr.forceLoadFile(s);var i=r.node.contents;if(o>=i.length)return 0;var a=Math.min(i.length-o,n);if(i.slice)for(var u=0;u<a;u++)e[t+u]=i[o+u];else for(u=0;u<a;u++)e[t+u]=i.get(o+u);return a},s.stream_ops=u,s},createPreloadedFile:function(r,e,t,n,i,a,s,c,f,l){Browser.init();var d=e?Q.resolve($.join2(r,e)):r;function p(t){function u(t){l&&l(),c||nr.createDataFile(r,e,t,n,i,f),a&&a(),L()}var p=!1;o.preloadPlugins.forEach((function(r){p||r.canHandle(d)&&(r.handle(t,d,u,(function(){s&&s(),L()})),p=!0)})),p||u(t)}O(),\"string\"==typeof t?function(r,e,t,n){var o=n?\"\":\"al \"+r;u(r,(function(t){y(t,'Loading data file \"'+r+'\" failed (no arrayBuffer).'),e(new Uint8Array(t)),o&&L()}),(function(e){if(!t)throw'Loading data file \"'+r+'\" failed.';t()})),o&&O()}(t,(function(r){p(r)}),s):p(t)},indexedDB:function(){return window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB},DB_NAME:function(){return\"EM_FS_\"+window.location.pathname},DB_VERSION:20,DB_STORE_NAME:\"FILE_DATA\",saveFilesToDB:function(r,e,t){e=e||function(){},t=t||function(){};var n=nr.indexedDB();try{var o=n.open(nr.DB_NAME(),nr.DB_VERSION)}catch(r){return t(r)}o.onupgradeneeded=function(){d(\"creating db\"),o.result.createObjectStore(nr.DB_STORE_NAME)},o.onsuccess=function(){var n=o.result.transaction([nr.DB_STORE_NAME],\"readwrite\"),i=n.objectStore(nr.DB_STORE_NAME),a=0,s=0,u=r.length;function c(){0==s?e():t()}r.forEach((function(r){var e=i.put(nr.analyzePath(r).object.contents,r);e.onsuccess=function(){++a+s==u&&c()},e.onerror=function(){s++,a+s==u&&c()}})),n.onerror=t},o.onerror=t},loadFilesFromDB:function(r,e,t){e=e||function(){},t=t||function(){};var n=nr.indexedDB();try{var o=n.open(nr.DB_NAME(),nr.DB_VERSION)}catch(r){return t(r)}o.onupgradeneeded=t,o.onsuccess=function(){var n=o.result;try{var i=n.transaction([nr.DB_STORE_NAME],\"readonly\")}catch(r){return void t(r)}var a=i.objectStore(nr.DB_STORE_NAME),s=0,u=0,c=r.length;function f(){0==u?e():t()}r.forEach((function(r){var e=a.get(r);e.onsuccess=function(){nr.analyzePath(r).exists&&nr.unlink(r),nr.createDataFile($.dirname(r),$.basename(r),e.result,!0,!0,!0),++s+u==c&&f()},e.onerror=function(){u++,s+u==c&&f()}})),i.onerror=t},o.onerror=t}},or={mappings:{},DEFAULT_POLLMASK:5,umask:511,calculateAt:function(r,e,t){if(\"/\"===e[0])return e;var n;if(-100===r)n=nr.cwd();else{var o=nr.getStream(r);if(!o)throw new nr.ErrnoError(8);n=o.path}if(0==e.length){if(!t)throw new nr.ErrnoError(44);return n}return $.join2(n,e)},doStat:function(r,e,t){try{var n=r(e)}catch(r){if(r&&r.node&&$.normalize(e)!==$.normalize(nr.getPath(r.node)))return-54;throw r}return D[t>>2]=n.dev,D[t+4>>2]=0,D[t+8>>2]=n.ino,D[t+12>>2]=n.mode,D[t+16>>2]=n.nlink,D[t+20>>2]=n.uid,D[t+24>>2]=n.gid,D[t+28>>2]=n.rdev,D[t+32>>2]=0,G=[n.size>>>0,(W=n.size,+Math.abs(W)>=1?W>0?(0|Math.min(+Math.floor(W/4294967296),4294967295))>>>0:~~+Math.ceil((W-+(~~W>>>0))/4294967296)>>>0:0)],D[t+40>>2]=G[0],D[t+44>>2]=G[1],D[t+48>>2]=4096,D[t+52>>2]=n.blocks,D[t+56>>2]=n.atime.getTime()/1e3|0,D[t+60>>2]=0,D[t+64>>2]=n.mtime.getTime()/1e3|0,D[t+68>>2]=0,D[t+72>>2]=n.ctime.getTime()/1e3|0,D[t+76>>2]=0,G=[n.ino>>>0,(W=n.ino,+Math.abs(W)>=1?W>0?(0|Math.min(+Math.floor(W/4294967296),4294967295))>>>0:~~+Math.ceil((W-+(~~W>>>0))/4294967296)>>>0:0)],D[t+80>>2]=G[0],D[t+84>>2]=G[1],0},doMsync:function(r,e,t,n,o){var i=b.slice(r,r+t);nr.msync(e,i,o,t,n)},doMkdir:function(r,e){return\"/\"===(r=$.normalize(r))[r.length-1]&&(r=r.substr(0,r.length-1)),nr.mkdir(r,e,0),0},doMknod:function(r,e,t){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return nr.mknod(r,e,t),0},doReadlink:function(r,e,t){if(t<=0)return-28;var n=nr.readlink(r),o=Math.min(t,R(n)),i=E[e+o];return M(n,b,e,t+1),E[e+o]=i,o},doAccess:function(r,e){if(-8&e)return-28;var t;if(!(t=nr.lookupPath(r,{follow:!0}).node))return-44;var n=\"\";return 4&e&&(n+=\"r\"),2&e&&(n+=\"w\"),1&e&&(n+=\"x\"),n&&nr.nodePermissions(t,n)?-2:0},doDup:function(r,e,t){var n=nr.getStream(t);return n&&nr.close(n),nr.open(r,e,0,t,t).fd},doReadv:function(r,e,t,n){for(var o=0,i=0;i<t;i++){var a=D[e+8*i>>2],s=D[e+(8*i+4)>>2],u=nr.read(r,E,a,s,n);if(u<0)return-1;if(o+=u,u<s)break}return o},doWritev:function(r,e,t,n){for(var o=0,i=0;i<t;i++){var a=D[e+8*i>>2],s=D[e+(8*i+4)>>2],u=nr.write(r,E,a,s,n);if(u<0)return-1;o+=u}return o},varargs:void 0,get:function(){return or.varargs+=4,D[or.varargs-4>>2]},getStr:function(r){return A(r)},getStreamFromFD:function(r){var e=nr.getStream(r);if(!e)throw new nr.ErrnoError(8);return e},get64:function(r,e){return r}};var ir=[];function ar(r){try{return v.grow(r-g.byteLength+65535>>>16),C(v.buffer),1}catch(r){}}var sr={};function ur(){if(!ur.strings){var r={USER:\"web_user\",LOGNAME:\"web_user\",PATH:\"/\",PWD:\"/\",HOME:\"/home/web_user\",LANG:(\"object\"==typeof navigator&&navigator.languages&&navigator.languages[0]||\"C\").replace(\"-\",\"_\")+\".UTF-8\",_:c||\"./this.program\"};for(var e in sr)void 0===sr[e]?delete r[e]:r[e]=sr[e];var t=[];for(var e in r)t.push(e+\"=\"+r[e]);ur.strings=t}return ur.strings}var cr=function(r,e,t,n){r||(r=this),this.parent=r,this.mount=r.mount,this.mounted=null,this.id=nr.nextInode++,this.name=e,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},fr=365,lr=146;function dr(r,e,t){var n=t>0?t:R(r)+1,o=new Array(n),i=M(r,o,0,o.length);return e&&(o.length=i),o}Object.defineProperties(cr.prototype,{read:{get:function(){return(this.mode&fr)===fr},set:function(r){r?this.mode|=fr:this.mode&=-366}},write:{get:function(){return(this.mode&lr)===lr},set:function(r){r?this.mode|=lr:this.mode&=-147}},isFolder:{get:function(){return nr.isDir(this.mode)}},isDevice:{get:function(){return nr.isChrdev(this.mode)}}}),nr.FSNode=cr,nr.staticInit();var pr={z:function(r,e){return function(r,e){var t;if(0===r)t=Date.now();else{if(1!==r&&4!==r)return K(28),-1;t=J()}return D[e>>2]=t/1e3|0,D[e+4>>2]=t%1e3*1e3*1e3|0,0}(r,e)},A:function(r,e){try{return r=or.getStr(r),or.doAccess(r,e)}catch(r){return void 0!==nr&&r instanceof nr.ErrnoError||I(r),-r.errno}},i:function(r,e,t){or.varargs=t;try{var n=or.getStreamFromFD(r);switch(e){case 0:return(o=or.get())<0?-28:nr.open(n.path,n.flags,0,o).fd;case 1:case 2:case 13:case 14:return 0;case 3:return n.flags;case 4:var o=or.get();return n.flags|=o,0;case 12:o=or.get();return k[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return K(28),-1}}catch(r){return void 0!==nr&&r instanceof nr.ErrnoError||I(r),-r.errno}},l:function(r,e){try{var t=or.getStreamFromFD(r);return or.doStat(nr.stat,t.path,e)}catch(r){return void 0!==nr&&r instanceof nr.ErrnoError||I(r),-r.errno}},e:function(){return 42},B:function(r,e,t){or.varargs=t;try{var n=or.getStreamFromFD(r);switch(e){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var o=or.get();return D[o>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:o=or.get();return nr.ioctl(n,e,o);default:I(\"bad ioctl syscall \"+e)}}catch(r){return void 0!==nr&&r instanceof nr.ErrnoError||I(r),-r.errno}},y:function(r,e,t,n,o,i){try{return function(r,e,t,n,o,i){var a;i<<=12;var s=!1;if(0!=(16&n)&&r%65536!=0)return-28;if(0!=(32&n)){if(!(a=er(e)))return-48;s=!0}else{var u=nr.getStream(o);if(!u)return-8;var c=nr.mmap(u,r,e,i,t,n);a=c.ptr,s=c.allocated}return or.mappings[a]={malloc:a,len:e,allocated:s,fd:o,prot:t,flags:n,offset:i},a}(r,e,t,n,o,i)}catch(r){return void 0!==nr&&r instanceof nr.ErrnoError||I(r),-r.errno}},x:function(r,e){try{return function(r,e){var t=or.mappings[r];if(0===e||!t)return-28;if(e===t.len){var n=nr.getStream(t.fd);n&&2&t.prot&&or.doMsync(r,n,e,t.flags,t.offset),or.mappings[r]=null,t.allocated&&br(t.malloc)}return 0}(r,e)}catch(r){return void 0!==nr&&r instanceof nr.ErrnoError||I(r),-r.errno}},f:function(r,e,t){or.varargs=t;try{var n=or.getStr(r),o=t?or.get():0;return nr.open(n,e,o).fd}catch(r){return void 0!==nr&&r instanceof nr.ErrnoError||I(r),-r.errno}},D:function(r,e){try{return r=or.getStr(r),or.doStat(nr.stat,r,e)}catch(r){return void 0!==nr&&r instanceof nr.ErrnoError||I(r),-r.errno}},C:function(r){try{return r=or.getStr(r),nr.unlink(r),0}catch(r){return void 0!==nr&&r instanceof nr.ErrnoError||I(r),-r.errno}},t:function(){throw\"longjmp\"},s:function(){I()},E:function(r,e,t){var n=function(r,e){var t;for(ir.length=0,e>>=2;t=b[r++];){var n=t<105;n&&1&e&&e++,ir.push(n?S[e++>>1]:D[e]),++e}return ir}(e,t);return X[r].apply(null,n)},q:function(r,e,t){b.copyWithin(r,e,e+t)},r:function(r){var e,t,n=b.length,o=2147483648;if((r>>>=0)>o)return!1;for(var i=1;i<=4;i*=2){var a=n*(1+.2/i);if(a=Math.min(a,r+100663296),ar(Math.min(o,((e=Math.max(r,a))%(t=65536)>0&&(e+=t-e%t),e))))return!0}return!1},v:function(r,e){try{var t=0;return ur().forEach((function(n,o){var i=e+t;D[r+4*o>>2]=i,function(r,e,t){for(var n=0;n<r.length;++n)E[e++>>0]=r.charCodeAt(n);t||(E[e>>0]=0)}(n,i),t+=n.length+1})),0}catch(r){return void 0!==nr&&r instanceof nr.ErrnoError||I(r),r.errno}},w:function(r,e){try{var t=ur();D[r>>2]=t.length;var n=0;return t.forEach((function(r){n+=r.length+1})),D[e>>2]=n,0}catch(r){return void 0!==nr&&r instanceof nr.ErrnoError||I(r),r.errno}},a:function(r){!function(r,e){w||(o.onExit&&o.onExit(r),_=!0);f(r,new xr(r))}(r)},d:function(r){try{var e=or.getStreamFromFD(r);return nr.close(e),0}catch(r){return void 0!==nr&&r instanceof nr.ErrnoError||I(r),r.errno}},u:function(r,e){try{var t=or.getStreamFromFD(r),n=t.tty?2:nr.isDir(t.mode)?3:nr.isLink(t.mode)?7:4;return E[e>>0]=n,0}catch(r){return void 0!==nr&&r instanceof nr.ErrnoError||I(r),r.errno}},k:function(r,e,t,n){try{var o=or.getStreamFromFD(r),i=or.doReadv(o,e,t);return D[n>>2]=i,0}catch(r){return void 0!==nr&&r instanceof nr.ErrnoError||I(r),r.errno}},o:function(r,e,t,n,o){try{var i=or.getStreamFromFD(r),a=4294967296*t+(e>>>0),s=9007199254740992;return a<=-s||a>=s?-61:(nr.llseek(i,a,n),G=[i.position>>>0,(W=i.position,+Math.abs(W)>=1?W>0?(0|Math.min(+Math.floor(W/4294967296),4294967295))>>>0:~~+Math.ceil((W-+(~~W>>>0))/4294967296)>>>0:0)],D[o>>2]=G[0],D[o+4>>2]=G[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0)}catch(r){return void 0!==nr&&r instanceof nr.ErrnoError||I(r),r.errno}},j:function(r,e,t,n){try{var o=or.getStreamFromFD(r),i=or.doWritev(o,e,t);return D[n>>2]=i,0}catch(r){return void 0!==nr&&r instanceof nr.ErrnoError||I(r),r.errno}},c:function(){return m},p:function(r){var e=Date.now();return D[r>>2]=e/1e3|0,D[r+4>>2]=e%1e3*1e3|0,0},m:function(r,e,t,n,o,i,a){var s=Dr();try{return P.get(r)(e,t,n,o,i,a)}catch(r){if(Sr(s),r!==r+0&&\"longjmp\"!==r)throw r;Pr(1,0)}},n:function(r,e){var t=Dr();try{P.get(r)(e)}catch(r){if(Sr(t),r!==r+0&&\"longjmp\"!==r)throw r;Pr(1,0)}},b:function(r){m=r},g:function(r){var e=Date.now()/1e3|0;return r&&(D[r>>2]=e),e},h:function(r){return 0!==r&&rr(r,16),0}};!function(){var r={a:pr};function e(r,e){var t,n=r.exports;o.asm=n,C((v=o.asm.F).buffer),P=o.asm.O,t=o.asm.G,T.unshift(t),L()}function t(r){e(r.instance)}function i(e){return(h||\"function\"!=typeof fetch?Promise.resolve().then((function(){return V(U)})):fetch(U,{credentials:\"same-origin\"}).then((function(r){if(!r.ok)throw\"failed to load wasm binary file at '\"+U+\"'\";return r.arrayBuffer()})).catch((function(){return V(U)}))).then((function(e){return WebAssembly.instantiate(e,r)})).then(e,(function(r){p(\"failed to asynchronously prepare wasm: \"+r),I(r)}))}if(O(),o.instantiateWasm)try{return o.instantiateWasm(r,e)}catch(r){return p(\"Module.instantiateWasm callback failed with error: \"+r),!1}(h||\"function\"!=typeof WebAssembly.instantiateStreaming||q(U)||\"function\"!=typeof fetch?i(t):fetch(U,{credentials:\"same-origin\"}).then((function(e){return WebAssembly.instantiateStreaming(e,r).then(t,(function(r){return p(\"wasm streaming compile failed: \"+r),p(\"falling back to ArrayBuffer instantiation\"),i(t)}))}))).catch(n)}(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.G).apply(null,arguments)};var hr=o._emscripten_bind_VoidPtr___destroy___0=function(){return(hr=o._emscripten_bind_VoidPtr___destroy___0=o.asm.H).apply(null,arguments)},mr=o._emscripten_bind_Graphviz_Graphviz_2=function(){return(mr=o._emscripten_bind_Graphviz_Graphviz_2=o.asm.I).apply(null,arguments)},vr=o._emscripten_bind_Graphviz_version_0=function(){return(vr=o._emscripten_bind_Graphviz_version_0=o.asm.J).apply(null,arguments)},wr=o._emscripten_bind_Graphviz_lastError_0=function(){return(wr=o._emscripten_bind_Graphviz_lastError_0=o.asm.K).apply(null,arguments)},_r=o._emscripten_bind_Graphviz_layout_3=function(){return(_r=o._emscripten_bind_Graphviz_layout_3=o.asm.L).apply(null,arguments)},yr=o._emscripten_bind_Graphviz_createFile_2=function(){return(yr=o._emscripten_bind_Graphviz_createFile_2=o.asm.M).apply(null,arguments)},gr=o._emscripten_bind_Graphviz___destroy___0=function(){return(gr=o._emscripten_bind_Graphviz___destroy___0=o.asm.N).apply(null,arguments)};o._malloc=function(){return(o._malloc=o.asm.P).apply(null,arguments)};var Er,br=o._free=function(){return(br=o._free=o.asm.Q).apply(null,arguments)},kr=o.___errno_location=function(){return(kr=o.___errno_location=o.asm.R).apply(null,arguments)},Dr=o.stackSave=function(){return(Dr=o.stackSave=o.asm.S).apply(null,arguments)},Sr=o.stackRestore=function(){return(Sr=o.stackRestore=o.asm.T).apply(null,arguments)},Pr=o._setThrew=function(){return(Pr=o._setThrew=o.asm.U).apply(null,arguments)},Fr=o._memalign=function(){return(Fr=o._memalign=o.asm.V).apply(null,arguments)};function xr(r){this.name=\"ExitStatus\",this.message=\"Program terminated with exit(\"+r+\")\",this.status=r}function Ar(r){function e(){Er||(Er=!0,o.calledRun=!0,_||(o.noFSInit||nr.init.initialized||nr.init(),nr.ignorePermissions=!1,Y(T),t(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),function(){if(o.postRun)for(\"function\"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)r=o.postRun.shift(),j.unshift(r);var r;Y(j)}()))}B>0||(!function(){if(o.preRun)for(\"function\"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)r=o.preRun.shift(),z.unshift(r);var r;Y(z)}(),B>0||(o.setStatus?(o.setStatus(\"Running...\"),setTimeout((function(){setTimeout((function(){o.setStatus(\"\")}),1),e()}),1)):e()))}if(N=function r(){Er||Ar(),Er||(N=r)},o.run=Ar,o.preInit)for(\"function\"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();function Mr(){}function Rr(r){return(r||Mr).__cache__}function Cr(r,e){var t=Rr(e),n=t[r];return n||((n=Object.create((e||Mr).prototype)).ptr=r,t[r]=n)}Ar(),Mr.prototype=Object.create(Mr.prototype),Mr.prototype.constructor=Mr,Mr.prototype.__class__=Mr,Mr.__cache__={},o.WrapperObject=Mr,o.getCache=Rr,o.wrapPointer=Cr,o.castObject=function(r,e){return Cr(r.ptr,e)},o.NULL=Cr(0),o.destroy=function(r){if(!r.__destroy__)throw\"Error: Cannot destroy object. (Did you create it yourself?)\";r.__destroy__(),delete Rr(r.__class__)[r.ptr]},o.compare=function(r,e){return r.ptr===e.ptr},o.getPointer=function(r){return r.ptr},o.getClass=function(r){return r.__class__};var zr={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(zr.needed){for(var r=0;r<zr.temps.length;r++)o._free(zr.temps[r]);zr.temps.length=0,o._free(zr.buffer),zr.buffer=0,zr.size+=zr.needed,zr.needed=0}zr.buffer||(zr.size+=128,zr.buffer=o._malloc(zr.size),y(zr.buffer)),zr.pos=0},alloc:function(r,e){y(zr.buffer);var t,n=e.BYTES_PER_ELEMENT,i=r.length*n;return i=i+7&-8,zr.pos+i>=zr.size?(y(i>0),zr.needed+=i,t=o._malloc(i),zr.temps.push(t)):(t=zr.buffer+zr.pos,zr.pos+=i),t},copy:function(r,e,t){switch(t>>>=0,e.BYTES_PER_ELEMENT){case 2:t>>>=1;break;case 4:t>>>=2;break;case 8:t>>>=3}for(var n=0;n<r.length;n++)e[t+n]=r[n]}};function Tr(r){if(\"string\"==typeof r){var e=dr(r),t=zr.alloc(e,E);return zr.copy(e,E,t),t}return r}function jr(){throw\"cannot construct a VoidPtr, no constructor in IDL\"}function Br(r,e){r&&\"object\"==typeof r&&(r=r.ptr),e&&\"object\"==typeof e&&(e=e.ptr),this.ptr=mr(r,e),Rr(Br)[this.ptr]=this}return jr.prototype=Object.create(Mr.prototype),jr.prototype.constructor=jr,jr.prototype.__class__=jr,jr.__cache__={},o.VoidPtr=jr,jr.prototype.__destroy__=jr.prototype.__destroy__=function(){var r=this.ptr;hr(r)},Br.prototype=Object.create(Mr.prototype),Br.prototype.constructor=Br,Br.prototype.__class__=Br,Br.__cache__={},o.Graphviz=Br,Br.prototype.version=Br.prototype.version=function(){var r=this.ptr;return A(vr(r))},Br.prototype.lastError=Br.prototype.lastError=function(){var r=this.ptr;return A(wr(r))},Br.prototype.layout=Br.prototype.layout=function(r,e,t){var n=this.ptr;return zr.prepare(),r=r&&\"object\"==typeof r?r.ptr:Tr(r),e=e&&\"object\"==typeof e?e.ptr:Tr(e),t=t&&\"object\"==typeof t?t.ptr:Tr(t),A(_r(n,r,e,t))},Br.prototype.createFile=Br.prototype.createFile=function(r,e){var t=this.ptr;zr.prepare(),r=r&&\"object\"==typeof r?r.ptr:Tr(r),e=e&&\"object\"==typeof e?e.ptr:Tr(e),yr(t,r,e)},Br.prototype.__destroy__=Br.prototype.__destroy__=function(){var r=this.ptr;gr(r)},e.ready}}();r.exports=t}(s);var u=s.exports,c=Object.freeze(Object.assign(Object.create(null),s.exports,{default:u})),f=function(){return f=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},f.apply(this,arguments)},l=function(r,e){for(var t=0,n=e.length,o=r.length;t<n;t++,o++)r[o]=e[t];return r};function d(r){return{path:r.path,data:'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\\n<svg width=\"'+r.width+'\" height=\"'+r.height+'\"></svg>'}}function p(r,e){var t,n=f({images:[],files:[]},e);l(l([],n.files),(t=n.images,t.map(d))).forEach((function(e){return r.createFile(e.path,e.data)}))}var h={layout:function(r,e,t,n){return void 0===e&&(e=\"svg\"),void 0===t&&(t=\"dot\"),r?a(c,null==n?void 0:n.wasmFolder,null==n?void 0:n.wasmBinary).then((function(o){var i=new o.Graphviz(void 0!==(null==n?void 0:n.yInvert)&&(null==n?void 0:n.yInvert),void 0!==(null==n?void 0:n.nop)?null==n?void 0:n.nop:0);p(i,n);var a=i.layout(r,e,t);if(o.destroy(i),!a)throw new Error(o.Graphviz.prototype.lastError());return a})):Promise.resolve(\"\")},circo:function(r,e,t){return void 0===e&&(e=\"svg\"),this.layout(r,e,\"circo\",t)},dot:function(r,e,t){return void 0===e&&(e=\"svg\"),this.layout(r,e,\"dot\",t)},fdp:function(r,e,t){return void 0===e&&(e=\"svg\"),this.layout(r,e,\"fdp\",t)},sfdp:function(r,e,t){return void 0===e&&(e=\"svg\"),this.layout(r,e,\"sfdp\",t)},neato:function(r,e,t){return void 0===e&&(e=\"svg\"),this.layout(r,e,\"neato\",t)},osage:function(r,e,t){return void 0===e&&(e=\"svg\"),this.layout(r,e,\"osage\",t)},patchwork:function(r,e,t){return void 0===e&&(e=\"svg\"),this.layout(r,e,\"patchwork\",t)},twopi:function(r,e,t){return void 0===e&&(e=\"svg\"),this.layout(r,e,\"twopi\",t)}},m=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:{};var v={exports:{}};\n/*!\n * @overview es6-promise - a tiny implementation of Promises/A+.\n * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)\n * @license Licensed under MIT license\n * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE\n * @version v4.2.8+1e68dce6\n */function w(r){return void 0!==r.children}!function(r,e){r.exports=function(){function r(r){var e=typeof r;return null!==r&&(\"object\"===e||\"function\"===e)}function e(r){return\"function\"==typeof r}var t=Array.isArray?Array.isArray:function(r){return\"[object Array]\"===Object.prototype.toString.call(r)},n=0,o=void 0,i=void 0,a=function(r,e){g[n]=r,g[n+1]=e,2===(n+=2)&&(i?i(E):k())};function s(r){i=r}function u(r){a=r}var c=\"undefined\"!=typeof window?window:void 0,f=c||{},l=f.MutationObserver||f.WebKitMutationObserver,d=\"undefined\"==typeof self&&\"undefined\"!=typeof process&&\"[object process]\"==={}.toString.call(process),p=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function h(){return function(){return process.nextTick(E)}}function v(){return void 0!==o?function(){o(E)}:y()}function w(){var r=0,e=new l(E),t=document.createTextNode(\"\");return e.observe(t,{characterData:!0}),function(){t.data=r=++r%2}}function _(){var r=new MessageChannel;return r.port1.onmessage=E,function(){return r.port2.postMessage(0)}}function y(){var r=setTimeout;return function(){return r(E,1)}}var g=new Array(1e3);function E(){for(var r=0;r<n;r+=2)(0,g[r])(g[r+1]),g[r]=void 0,g[r+1]=void 0;n=0}function b(){try{var r=Function(\"return this\")().require(\"vertx\");return o=r.runOnLoop||r.runOnContext,v()}catch(r){return y()}}var k=void 0;function D(r,e){var t=this,n=new this.constructor(F);void 0===n[P]&&J(n);var o=t._state;if(o){var i=arguments[o-1];a((function(){return W(o,n,i,t._result)}))}else U(t,n,r,e);return n}function S(r){var e=this;if(r&&\"object\"==typeof r&&r.constructor===e)return r;var t=new e(F);return N(t,r),t}k=d?h():l?w():p?_():void 0===c?b():y();var P=Math.random().toString(36).substring(2);function F(){}var x=void 0,A=1,M=2;function R(){return new TypeError(\"You cannot resolve a promise with itself\")}function C(){return new TypeError(\"A promises callback cannot return that same promise.\")}function z(r,e,t,n){try{r.call(e,t,n)}catch(r){return r}}function T(r,e,t){a((function(r){var n=!1,o=z(t,e,(function(t){n||(n=!0,e!==t?N(r,t):L(r,t))}),(function(e){n||(n=!0,I(r,e))}),\"Settle: \"+(r._label||\" unknown promise\"));!n&&o&&(n=!0,I(r,o))}),r)}function j(r,e){e._state===A?L(r,e._result):e._state===M?I(r,e._result):U(e,void 0,(function(e){return N(r,e)}),(function(e){return I(r,e)}))}function B(r,t,n){t.constructor===r.constructor&&n===D&&t.constructor.resolve===S?j(r,t):void 0===n?L(r,t):e(n)?T(r,t,n):L(r,t)}function N(e,t){if(e===t)I(e,R());else if(r(t)){var n=void 0;try{n=t.then}catch(r){return void I(e,r)}B(e,t,n)}else L(e,t)}function O(r){r._onerror&&r._onerror(r._result),H(r)}function L(r,e){r._state===x&&(r._result=e,r._state=A,0!==r._subscribers.length&&a(H,r))}function I(r,e){r._state===x&&(r._state=M,r._result=e,a(O,r))}function U(r,e,t,n){var o=r._subscribers,i=o.length;r._onerror=null,o[i]=e,o[i+A]=t,o[i+M]=n,0===i&&r._state&&a(H,r)}function H(r){var e=r._subscribers,t=r._state;if(0!==e.length){for(var n=void 0,o=void 0,i=r._result,a=0;a<e.length;a+=3)n=e[a],o=e[a+t],n?W(t,n,o,i):o(i);r._subscribers.length=0}}function W(r,t,n,o){var i=e(n),a=void 0,s=void 0,u=!0;if(i){try{a=n(o)}catch(r){u=!1,s=r}if(t===a)return void I(t,C())}else a=o;t._state!==x||(i&&u?N(t,a):!1===u?I(t,s):r===A?L(t,a):r===M&&I(t,a))}function G(r,e){try{e((function(e){N(r,e)}),(function(e){I(r,e)}))}catch(e){I(r,e)}}var q=0;function V(){return q++}function J(r){r[P]=q++,r._state=void 0,r._result=void 0,r._subscribers=[]}function X(){return new Error(\"Array Methods must be provided an Array\")}var Y=function(){function r(r,e){this._instanceConstructor=r,this.promise=new r(F),this.promise[P]||J(this.promise),t(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?L(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&L(this.promise,this._result))):I(this.promise,X())}return r.prototype._enumerate=function(r){for(var e=0;this._state===x&&e<r.length;e++)this._eachEntry(r[e],e)},r.prototype._eachEntry=function(r,e){var t=this._instanceConstructor,n=t.resolve;if(n===S){var o=void 0,i=void 0,a=!1;try{o=r.then}catch(r){a=!0,i=r}if(o===D&&r._state!==x)this._settledAt(r._state,e,r._result);else if(\"function\"!=typeof o)this._remaining--,this._result[e]=r;else if(t===er){var s=new t(F);a?I(s,i):B(s,r,o),this._willSettleAt(s,e)}else this._willSettleAt(new t((function(e){return e(r)})),e)}else this._willSettleAt(n(r),e)},r.prototype._settledAt=function(r,e,t){var n=this.promise;n._state===x&&(this._remaining--,r===M?I(n,t):this._result[e]=t),0===this._remaining&&L(n,this._result)},r.prototype._willSettleAt=function(r,e){var t=this;U(r,void 0,(function(r){return t._settledAt(A,e,r)}),(function(r){return t._settledAt(M,e,r)}))},r}();function K(r){return new Y(this,r).promise}function $(r){var e=this;return t(r)?new e((function(t,n){for(var o=r.length,i=0;i<o;i++)e.resolve(r[i]).then(t,n)})):new e((function(r,e){return e(new TypeError(\"You must pass an array to race.\"))}))}function Q(r){var e=new this(F);return I(e,r),e}function Z(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}function rr(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}var er=function(){function r(e){this[P]=V(),this._result=this._state=void 0,this._subscribers=[],F!==e&&(\"function\"!=typeof e&&Z(),this instanceof r?G(this,e):rr())}return r.prototype.catch=function(r){return this.then(null,r)},r.prototype.finally=function(r){var t=this,n=t.constructor;return e(r)?t.then((function(e){return n.resolve(r()).then((function(){return e}))}),(function(e){return n.resolve(r()).then((function(){throw e}))})):t.then(r,r)},r}();function tr(){var r=void 0;if(void 0!==m)r=m;else if(\"undefined\"!=typeof self)r=self;else try{r=Function(\"return this\")()}catch(r){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var e=r.Promise;if(e){var t=null;try{t=Object.prototype.toString.call(e.resolve())}catch(r){}if(\"[object Promise]\"===t&&!e.cast)return}r.Promise=er}return er.prototype.then=D,er.all=K,er.race=$,er.resolve=S,er.reject=Q,er._setScheduler=s,er._setAsap=u,er._asap=a,er.polyfill=tr,er.Promise=er,er}()}(v),v.exports.polyfill();var _=function(r){var e=[];return r.children.forEach((function(r){w(r)?e.push(_(r)):e.push(y(r))})),\"subgraph cluster_\".concat(r.id,' {\\nid=\"').concat(r.id,'\";\\nlabel=\"').concat(r.text,'\";\\nmargin=16;\\n').concat(e.join(\"\\n\"),\"\\n}\")},y=function(r){return\"\".concat(r.id,' [id=\"').concat(r.id,'\" label=\"').concat(r.text,'\" width=').concat(b(r.width),\" height=\").concat(b(r.height),\"]\")},g=function(r){return 96*r/72},E=function(r){return 96*r},b=function(r){return r/96};function k(r){var e=r?r.split(\",\").map((function(r){return g(+r)})):[0,0,0,0],t=e[0],n=e[1],o=e[2]-t,i=e[3]-n;return{x:t-o/2,y:n-i/2,width:o,height:i}}function D(r,e){var t=r.split(\",\").map((function(r){return g(+r)})),n=t[0],o=t[1];return{x:-n+e.width,y:-o+e.height}}function S(r,e,t){return void 0===t&&(t=\"json\"),h[r](e,t).then((function(r){return\"json\"===t?JSON.parse(r):r}))}function P(e,t){if(self.document=self.document||{currentScript:{src:t.wasmFolder+\"/dummy.js\"}},e.raw)return S(t.engine,e.raw,\"svg\");var n={},o=[],i=[],a={},s=[],u=[],c={},f=[],l=[];function d(r,e){w(r)?(n[r.id]=r,o.push(r),r.children.forEach((function(r){return d(r,!1)})),e&&i.push(_(r))):(a[r.id]=r,s.push(r),e&&u.push(y(r)))}return e.items.forEach((function(r){return d(r,!0)})),e.links.forEach((function(r){var e,t,n,o;c[r.id]=r,f.push(r),l.push((e=r.source.id,t=r.target.id,n=r.id,o=r.text,\"\".concat(e,\" -> \").concat(t,' [id=\"').concat(n,'\", label=\"').concat(o,'\"]')))})),S(t.engine,\"digraph G {\\n graph [fontname=Verdana,fontsize=11.0];\\n graph [rankdir=TB];\\n node [shape=rect,fontname=Verdana,fontsize=11.0,fixedsize=true];\\n edge [fontname=Verdana,fontsize=11.0];\\n\\n\".concat(i.join(\"\\n\"),\"\\n\\n\").concat(l.join(\"\\n\"),\"\\n\\n\").concat(u.join(\"\\n\"),\"\\n}\")).then((function(e){var t=k(e.bb);return e.objects&&e.objects.forEach((function(r){if(r.nodes){var e=function(r,e){var t=k(r);return{x:-t.x+e.width,y:-t.y+e.height,width:t.width,height:t.height}}(r.bb,t),o=n[r.id];o.x=e.x-t.width/2,o.y=e.y-t.height/2,o.width=e.width,o.height=e.height}else{var i=(u=r.pos,c=r.width,f=r.height,l=D(u,t),d=E(+c),p=E(+f),{x:l.x,y:l.y,width:d,height:p}),s=a[r.id];s&&(s.x=i.x-t.width/2,s.y=i.y-t.height/2)}var u,c,f,l,d,p})),e.edges&&e.edges.forEach((function(e){var n=c[e.id];n&&(n.points=function(e,t){if(e.pos){var n=e.pos.substr(2).split(\" \").map((function(r){return D(r,t)})).map((function(r){return[r.x-t.width/2,r.y-t.height/2]})),o=n.shift();return r(r([],n,!0),[o],!1)}return[]}(e,t))})),{clusters:o,nodes:s,links:f}}))}self.onmessage=function(r){P.apply(void 0,r.data).then((function(r){self.postMessage(r)}))}}();";
|
|
7362
|
+
var workerCode = "!function(){\"use strict\";\n/*! *****************************************************************************\n Copyright (c) Microsoft Corporation.\n\n Permission to use, copy, modify, and/or distribute this software for any\n purpose with or without fee is hereby granted.\n\n THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n PERFORMANCE OF THIS SOFTWARE.\n ***************************************************************************** */function r(r,e,t){if(t||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return r.concat(n||Array.prototype.slice.call(e))}function e(r,e){return e.forEach((function(e){e&&\"string\"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(t){if(\"default\"!==t&&!(t in r)){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}}))})),Object.freeze(r)}var t,n,o,i={exports:{}};t=i,n=\"undefined\"!=typeof document&&document.currentScript?document.currentScript.src:void 0,o=function(r){var e,t,o=void 0!==(r=r||{})?r:{};o.ready=new Promise((function(r,n){e=r,t=n}));var i,a,s=Object.assign({},o),u=\"./this.program\",c=\"\";\"undefined\"!=typeof document&&document.currentScript&&(c=document.currentScript.src),n&&(c=n),c=0!==c.indexOf(\"blob:\")?c.substr(0,c.replace(/[?#].*/,\"\").lastIndexOf(\"/\")+1):\"\",i=r=>{var e=new XMLHttpRequest;return e.open(\"GET\",r,!1),e.send(null),e.responseText},a=(r,e,t)=>{var n=new XMLHttpRequest;n.open(\"GET\",r,!0),n.responseType=\"arraybuffer\",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):t()},n.onerror=t,n.send(null)};var l,d,f=o.print||console.log.bind(console),p=o.printErr||console.warn.bind(console);Object.assign(o,s),s=null,o.arguments,o.thisProgram&&(u=o.thisProgram),o.quit,o.wasmBinary&&(l=o.wasmBinary),o.noExitRuntime,\"object\"!=typeof WebAssembly&&L(\"no native wasm support detected\");var h=!1;function m(r,e){r||L(e)}var v,w,_,y,E,g,b=\"undefined\"!=typeof TextDecoder?new TextDecoder(\"utf8\"):void 0;function k(r,e,t){for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.subarray&&b)return b.decode(r.subarray(e,o));for(var i=\"\";e<o;){var a=r[e++];if(128&a){var s=63&r[e++];if(192!=(224&a)){var u=63&r[e++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&r[e++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function D(r,e){return r?k(_,r,e):\"\"}function S(r,e,t,n){if(!(n>0))return 0;for(var o=t,i=t+n-1,a=0;a<r.length;++a){var s=r.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&r.charCodeAt(++a)),s<=127){if(t>=i)break;e[t++]=s}else if(s<=2047){if(t+1>=i)break;e[t++]=192|s>>6,e[t++]=128|63&s}else if(s<=65535){if(t+2>=i)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|63&s}else{if(t+3>=i)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|63&s}}return e[t]=0,t-o}function A(r){for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&r.charCodeAt(++t)),n<=127?++e:e+=n<=2047?2:n<=65535?3:4}return e}function P(r){v=r,o.HEAP8=w=new Int8Array(r),o.HEAP16=new Int16Array(r),o.HEAP32=y=new Int32Array(r),o.HEAPU8=_=new Uint8Array(r),o.HEAPU16=new Uint16Array(r),o.HEAPU32=new Uint32Array(r),o.HEAPF32=new Float32Array(r),o.HEAPF64=E=new Float64Array(r)}o.INITIAL_MEMORY;var x,F,M,R,C=[],j=[],z=[],T=0,B=null;function N(r){T++,o.monitorRunDependencies&&o.monitorRunDependencies(T)}function O(r){if(T--,o.monitorRunDependencies&&o.monitorRunDependencies(T),0==T&&B){var e=B;B=null,e()}}function L(r){o.onAbort&&o.onAbort(r),p(r=\"Aborted(\"+r+\")\"),h=!0,r+=\". Build with -s ASSERTIONS=1 for more info.\";var e=new WebAssembly.RuntimeError(r);throw t(e),e}function I(r){return r.startsWith(\"data:application/octet-stream;base64,\")}function U(r){try{if(r==x&&l)return new Uint8Array(l);throw\"both async and sync fetching of the wasm failed\"}catch(r){L(r)}}o.preloadedImages={},o.preloadedAudios={},I(x=\"expatlib.wasm\")||(F=x,x=o.locateFile?o.locateFile(F,c):c+F);var H={11678:function(r){var e=o.getCache(o.CExpatJS)[r];if(!e.hasOwnProperty(\"startElement\"))throw\"a JSImplementation must implement all functions, you forgot CExpatJS::startElement.\";e.startElement()},11896:function(r){var e=o.getCache(o.CExpatJS)[r];if(!e.hasOwnProperty(\"endElement\"))throw\"a JSImplementation must implement all functions, you forgot CExpatJS::endElement.\";e.endElement()},12108:function(r){var e=o.getCache(o.CExpatJS)[r];if(!e.hasOwnProperty(\"characterData\"))throw\"a JSImplementation must implement all functions, you forgot CExpatJS::characterData.\";e.characterData()}};function G(r){for(;r.length>0;){var e=r.shift();if(\"function\"!=typeof e){var t=e.func;\"number\"==typeof t?void 0===e.arg?q(t)():q(t)(e.arg):t(void 0===e.arg?null:e.arg)}else e(o)}}function q(r){return g.get(r)}var W={splitPath:function(r){return/^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/.exec(r).slice(1)},normalizeArray:function(r,e){for(var t=0,n=r.length-1;n>=0;n--){var o=r[n];\".\"===o?r.splice(n,1):\"..\"===o?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t;t--)r.unshift(\"..\");return r},normalize:function(r){var e=\"/\"===r.charAt(0),t=\"/\"===r.substr(-1);return(r=W.normalizeArray(r.split(\"/\").filter((function(r){return!!r})),!e).join(\"/\"))||e||(r=\".\"),r&&t&&(r+=\"/\"),(e?\"/\":\"\")+r},dirname:function(r){var e=W.splitPath(r),t=e[0],n=e[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):\".\"},basename:function(r){if(\"/\"===r)return\"/\";var e=(r=(r=W.normalize(r)).replace(/\\/$/,\"\")).lastIndexOf(\"/\");return-1===e?r:r.substr(e+1)},extname:function(r){return W.splitPath(r)[3]},join:function(){var r=Array.prototype.slice.call(arguments,0);return W.normalize(r.join(\"/\"))},join2:function(r,e){return W.normalize(r+\"/\"+e)}},V={resolve:function(){for(var r=\"\",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var n=t>=0?arguments[t]:Y.cwd();if(\"string\"!=typeof n)throw new TypeError(\"Arguments to path.resolve must be strings\");if(!n)return\"\";r=n+\"/\"+r,e=\"/\"===n.charAt(0)}return(e?\"/\":\"\")+(r=W.normalizeArray(r.split(\"/\").filter((function(r){return!!r})),!e).join(\"/\"))||\".\"},relative:function(r,e){function t(r){for(var e=0;e<r.length&&\"\"===r[e];e++);for(var t=r.length-1;t>=0&&\"\"===r[t];t--);return e>t?[]:r.slice(e,t-e+1)}r=V.resolve(r).substr(1),e=V.resolve(e).substr(1);for(var n=t(r.split(\"/\")),o=t(e.split(\"/\")),i=Math.min(n.length,o.length),a=i,s=0;s<i;s++)if(n[s]!==o[s]){a=s;break}var u=[];for(s=a;s<n.length;s++)u.push(\"..\");return(u=u.concat(o.slice(a))).join(\"/\")}},J={ttys:[],init:function(){},shutdown:function(){},register:function(r,e){J.ttys[r]={input:[],output:[],ops:e},Y.registerDevice(r,J.stream_ops)},stream_ops:{open:function(r){var e=J.ttys[r.node.rdev];if(!e)throw new Y.ErrnoError(43);r.tty=e,r.seekable=!1},close:function(r){r.tty.ops.flush(r.tty)},flush:function(r){r.tty.ops.flush(r.tty)},read:function(r,e,t,n,o){if(!r.tty||!r.tty.ops.get_char)throw new Y.ErrnoError(60);for(var i=0,a=0;a<n;a++){var s;try{s=r.tty.ops.get_char(r.tty)}catch(r){throw new Y.ErrnoError(29)}if(void 0===s&&0===i)throw new Y.ErrnoError(6);if(null==s)break;i++,e[t+a]=s}return i&&(r.node.timestamp=Date.now()),i},write:function(r,e,t,n,o){if(!r.tty||!r.tty.ops.put_char)throw new Y.ErrnoError(60);try{for(var i=0;i<n;i++)r.tty.ops.put_char(r.tty,e[t+i])}catch(r){throw new Y.ErrnoError(29)}return n&&(r.node.timestamp=Date.now()),i}},default_tty_ops:{get_char:function(r){if(!r.input.length){var e=null;if(\"undefined\"!=typeof window&&\"function\"==typeof window.prompt?null!==(e=window.prompt(\"Input: \"))&&(e+=\"\\n\"):\"function\"==typeof readline&&null!==(e=readline())&&(e+=\"\\n\"),!e)return null;r.input=or(e,!0)}return r.input.shift()},put_char:function(r,e){null===e||10===e?(f(k(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},flush:function(r){r.output&&r.output.length>0&&(f(k(r.output,0)),r.output=[])}},default_tty1_ops:{put_char:function(r,e){null===e||10===e?(p(k(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},flush:function(r){r.output&&r.output.length>0&&(p(k(r.output,0)),r.output=[])}}},X={ops_table:null,mount:function(r){return X.createNode(null,\"/\",16895,0)},createNode:function(r,e,t,n){if(Y.isBlkdev(t)||Y.isFIFO(t))throw new Y.ErrnoError(63);X.ops_table||(X.ops_table={dir:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr,lookup:X.node_ops.lookup,mknod:X.node_ops.mknod,rename:X.node_ops.rename,unlink:X.node_ops.unlink,rmdir:X.node_ops.rmdir,readdir:X.node_ops.readdir,symlink:X.node_ops.symlink},stream:{llseek:X.stream_ops.llseek}},file:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr},stream:{llseek:X.stream_ops.llseek,read:X.stream_ops.read,write:X.stream_ops.write,allocate:X.stream_ops.allocate,mmap:X.stream_ops.mmap,msync:X.stream_ops.msync}},link:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr,readlink:X.node_ops.readlink},stream:{}},chrdev:{node:{getattr:X.node_ops.getattr,setattr:X.node_ops.setattr},stream:Y.chrdev_stream_ops}});var o=Y.createNode(r,e,t,n);return Y.isDir(o.mode)?(o.node_ops=X.ops_table.dir.node,o.stream_ops=X.ops_table.dir.stream,o.contents={}):Y.isFile(o.mode)?(o.node_ops=X.ops_table.file.node,o.stream_ops=X.ops_table.file.stream,o.usedBytes=0,o.contents=null):Y.isLink(o.mode)?(o.node_ops=X.ops_table.link.node,o.stream_ops=X.ops_table.link.stream):Y.isChrdev(o.mode)&&(o.node_ops=X.ops_table.chrdev.node,o.stream_ops=X.ops_table.chrdev.stream),o.timestamp=Date.now(),r&&(r.contents[e]=o,r.timestamp=o.timestamp),o},getFileDataAsTypedArray:function(r){return r.contents?r.contents.subarray?r.contents.subarray(0,r.usedBytes):new Uint8Array(r.contents):new Uint8Array(0)},expandFileStorage:function(r,e){var t=r.contents?r.contents.length:0;if(!(t>=e)){e=Math.max(e,t*(t<1048576?2:1.125)>>>0),0!=t&&(e=Math.max(e,256));var n=r.contents;r.contents=new Uint8Array(e),r.usedBytes>0&&r.contents.set(n.subarray(0,r.usedBytes),0)}},resizeFileStorage:function(r,e){if(r.usedBytes!=e)if(0==e)r.contents=null,r.usedBytes=0;else{var t=r.contents;r.contents=new Uint8Array(e),t&&r.contents.set(t.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}},node_ops:{getattr:function(r){var e={};return e.dev=Y.isChrdev(r.mode)?r.id:1,e.ino=r.id,e.mode=r.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=r.rdev,Y.isDir(r.mode)?e.size=4096:Y.isFile(r.mode)?e.size=r.usedBytes:Y.isLink(r.mode)?e.size=r.link.length:e.size=0,e.atime=new Date(r.timestamp),e.mtime=new Date(r.timestamp),e.ctime=new Date(r.timestamp),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr:function(r,e){void 0!==e.mode&&(r.mode=e.mode),void 0!==e.timestamp&&(r.timestamp=e.timestamp),void 0!==e.size&&X.resizeFileStorage(r,e.size)},lookup:function(r,e){throw Y.genericErrors[44]},mknod:function(r,e,t,n){return X.createNode(r,e,t,n)},rename:function(r,e,t){if(Y.isDir(r.mode)){var n;try{n=Y.lookupNode(e,t)}catch(r){}if(n)for(var o in n.contents)throw new Y.ErrnoError(55)}delete r.parent.contents[r.name],r.parent.timestamp=Date.now(),r.name=t,e.contents[t]=r,e.timestamp=r.parent.timestamp,r.parent=e},unlink:function(r,e){delete r.contents[e],r.timestamp=Date.now()},rmdir:function(r,e){var t=Y.lookupNode(r,e);for(var n in t.contents)throw new Y.ErrnoError(55);delete r.contents[e],r.timestamp=Date.now()},readdir:function(r){var e=[\".\",\"..\"];for(var t in r.contents)r.contents.hasOwnProperty(t)&&e.push(t);return e},symlink:function(r,e,t){var n=X.createNode(r,e,41471,0);return n.link=t,n},readlink:function(r){if(!Y.isLink(r.mode))throw new Y.ErrnoError(28);return r.link}},stream_ops:{read:function(r,e,t,n,o){var i=r.node.contents;if(o>=r.node.usedBytes)return 0;var a=Math.min(r.node.usedBytes-o,n);if(a>8&&i.subarray)e.set(i.subarray(o,o+a),t);else for(var s=0;s<a;s++)e[t+s]=i[o+s];return a},write:function(r,e,t,n,o,i){if(e.buffer===w.buffer&&(i=!1),!n)return 0;var a=r.node;if(a.timestamp=Date.now(),e.subarray&&(!a.contents||a.contents.subarray)){if(i)return a.contents=e.subarray(t,t+n),a.usedBytes=n,n;if(0===a.usedBytes&&0===o)return a.contents=e.slice(t,t+n),a.usedBytes=n,n;if(o+n<=a.usedBytes)return a.contents.set(e.subarray(t,t+n),o),n}if(X.expandFileStorage(a,o+n),a.contents.subarray&&e.subarray)a.contents.set(e.subarray(t,t+n),o);else for(var s=0;s<n;s++)a.contents[o+s]=e[t+s];return a.usedBytes=Math.max(a.usedBytes,o+n),n},llseek:function(r,e,t){var n=e;if(1===t?n+=r.position:2===t&&Y.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new Y.ErrnoError(28);return n},allocate:function(r,e,t){X.expandFileStorage(r.node,e+t),r.node.usedBytes=Math.max(r.node.usedBytes,e+t)},mmap:function(r,e,t,n,o,i){if(0!==e)throw new Y.ErrnoError(28);if(!Y.isFile(r.node.mode))throw new Y.ErrnoError(43);var a,s,u=r.node.contents;if(2&i||u.buffer!==v){if((n>0||n+t<u.length)&&(u=u.subarray?u.subarray(n,n+t):Array.prototype.slice.call(u,n,n+t)),s=!0,!(a=void L()))throw new Y.ErrnoError(48);w.set(u,a)}else s=!1,a=u.byteOffset;return{ptr:a,allocated:s}},msync:function(r,e,t,n,o){if(!Y.isFile(r.node.mode))throw new Y.ErrnoError(43);return 2&o||X.stream_ops.write(r,e,0,n,t,!1),0}}},Y={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:\"/\",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:(r,e={})=>{if(!(r=V.resolve(Y.cwd(),r)))return{path:\"\",node:null};var t={follow_mount:!0,recurse_count:0};for(var n in t)void 0===e[n]&&(e[n]=t[n]);if(e.recurse_count>8)throw new Y.ErrnoError(32);for(var o=W.normalizeArray(r.split(\"/\").filter((r=>!!r)),!1),i=Y.root,a=\"/\",s=0;s<o.length;s++){var u=s===o.length-1;if(u&&e.parent)break;if(i=Y.lookupNode(i,o[s]),a=W.join2(a,o[s]),Y.isMountpoint(i)&&(!u||u&&e.follow_mount)&&(i=i.mounted.root),!u||e.follow)for(var c=0;Y.isLink(i.mode);){var l=Y.readlink(a);if(a=V.resolve(W.dirname(a),l),i=Y.lookupPath(a,{recurse_count:e.recurse_count}).node,c++>40)throw new Y.ErrnoError(32)}}return{path:a,node:i}},getPath:r=>{for(var e;;){if(Y.isRoot(r)){var t=r.mount.mountpoint;return e?\"/\"!==t[t.length-1]?t+\"/\"+e:t+e:t}e=e?r.name+\"/\"+e:r.name,r=r.parent}},hashName:(r,e)=>{for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(r+t>>>0)%Y.nameTable.length},hashAddNode:r=>{var e=Y.hashName(r.parent.id,r.name);r.name_next=Y.nameTable[e],Y.nameTable[e]=r},hashRemoveNode:r=>{var e=Y.hashName(r.parent.id,r.name);if(Y.nameTable[e]===r)Y.nameTable[e]=r.name_next;else for(var t=Y.nameTable[e];t;){if(t.name_next===r){t.name_next=r.name_next;break}t=t.name_next}},lookupNode:(r,e)=>{var t=Y.mayLookup(r);if(t)throw new Y.ErrnoError(t,r);for(var n=Y.hashName(r.id,e),o=Y.nameTable[n];o;o=o.name_next){var i=o.name;if(o.parent.id===r.id&&i===e)return o}return Y.lookup(r,e)},createNode:(r,e,t,n)=>{var o=new Y.FSNode(r,e,t,n);return Y.hashAddNode(o),o},destroyNode:r=>{Y.hashRemoveNode(r)},isRoot:r=>r===r.parent,isMountpoint:r=>!!r.mounted,isFile:r=>32768==(61440&r),isDir:r=>16384==(61440&r),isLink:r=>40960==(61440&r),isChrdev:r=>8192==(61440&r),isBlkdev:r=>24576==(61440&r),isFIFO:r=>4096==(61440&r),isSocket:r=>49152==(49152&r),flagModes:{r:0,\"r+\":2,w:577,\"w+\":578,a:1089,\"a+\":1090},modeStringToFlags:r=>{var e=Y.flagModes[r];if(void 0===e)throw new Error(\"Unknown file open mode: \"+r);return e},flagsToPermissionString:r=>{var e=[\"r\",\"w\",\"rw\"][3&r];return 512&r&&(e+=\"w\"),e},nodePermissions:(r,e)=>Y.ignorePermissions||(!e.includes(\"r\")||292&r.mode)&&(!e.includes(\"w\")||146&r.mode)&&(!e.includes(\"x\")||73&r.mode)?0:2,mayLookup:r=>{var e=Y.nodePermissions(r,\"x\");return e||(r.node_ops.lookup?0:2)},mayCreate:(r,e)=>{try{return Y.lookupNode(r,e),20}catch(r){}return Y.nodePermissions(r,\"wx\")},mayDelete:(r,e,t)=>{var n;try{n=Y.lookupNode(r,e)}catch(r){return r.errno}var o=Y.nodePermissions(r,\"wx\");if(o)return o;if(t){if(!Y.isDir(n.mode))return 54;if(Y.isRoot(n)||Y.getPath(n)===Y.cwd())return 10}else if(Y.isDir(n.mode))return 31;return 0},mayOpen:(r,e)=>r?Y.isLink(r.mode)?32:Y.isDir(r.mode)&&(\"r\"!==Y.flagsToPermissionString(e)||512&e)?31:Y.nodePermissions(r,Y.flagsToPermissionString(e)):44,MAX_OPEN_FDS:4096,nextfd:(r=0,e=Y.MAX_OPEN_FDS)=>{for(var t=r;t<=e;t++)if(!Y.streams[t])return t;throw new Y.ErrnoError(33)},getStream:r=>Y.streams[r],createStream:(r,e,t)=>{Y.FSStream||(Y.FSStream=function(){},Y.FSStream.prototype={object:{get:function(){return this.node},set:function(r){this.node=r}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}),r=Object.assign(new Y.FSStream,r);var n=Y.nextfd(e,t);return r.fd=n,Y.streams[n]=r,r},closeStream:r=>{Y.streams[r]=null},chrdev_stream_ops:{open:r=>{var e=Y.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open&&r.stream_ops.open(r)},llseek:()=>{throw new Y.ErrnoError(70)}},major:r=>r>>8,minor:r=>255&r,makedev:(r,e)=>r<<8|e,registerDevice:(r,e)=>{Y.devices[r]={stream_ops:e}},getDevice:r=>Y.devices[r],getMounts:r=>{for(var e=[],t=[r];t.length;){var n=t.pop();e.push(n),t.push.apply(t,n.mounts)}return e},syncfs:(r,e)=>{\"function\"==typeof r&&(e=r,r=!1),Y.syncFSRequests++,Y.syncFSRequests>1&&p(\"warning: \"+Y.syncFSRequests+\" FS.syncfs operations in flight at once, probably just doing extra work\");var t=Y.getMounts(Y.root.mount),n=0;function o(r){return Y.syncFSRequests--,e(r)}function i(r){if(r)return i.errored?void 0:(i.errored=!0,o(r));++n>=t.length&&o(null)}t.forEach((e=>{if(!e.type.syncfs)return i(null);e.type.syncfs(e,r,i)}))},mount:(r,e,t)=>{var n,o=\"/\"===t,i=!t;if(o&&Y.root)throw new Y.ErrnoError(10);if(!o&&!i){var a=Y.lookupPath(t,{follow_mount:!1});if(t=a.path,n=a.node,Y.isMountpoint(n))throw new Y.ErrnoError(10);if(!Y.isDir(n.mode))throw new Y.ErrnoError(54)}var s={type:r,opts:e,mountpoint:t,mounts:[]},u=r.mount(s);return u.mount=s,s.root=u,o?Y.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount:r=>{var e=Y.lookupPath(r,{follow_mount:!1});if(!Y.isMountpoint(e.node))throw new Y.ErrnoError(28);var t=e.node,n=t.mounted,o=Y.getMounts(n);Object.keys(Y.nameTable).forEach((r=>{for(var e=Y.nameTable[r];e;){var t=e.name_next;o.includes(e.mount)&&Y.destroyNode(e),e=t}})),t.mounted=null;var i=t.mount.mounts.indexOf(n);t.mount.mounts.splice(i,1)},lookup:(r,e)=>r.node_ops.lookup(r,e),mknod:(r,e,t)=>{var n=Y.lookupPath(r,{parent:!0}).node,o=W.basename(r);if(!o||\".\"===o||\"..\"===o)throw new Y.ErrnoError(28);var i=Y.mayCreate(n,o);if(i)throw new Y.ErrnoError(i);if(!n.node_ops.mknod)throw new Y.ErrnoError(63);return n.node_ops.mknod(n,o,e,t)},create:(r,e)=>(e=void 0!==e?e:438,e&=4095,e|=32768,Y.mknod(r,e,0)),mkdir:(r,e)=>(e=void 0!==e?e:511,e&=1023,e|=16384,Y.mknod(r,e,0)),mkdirTree:(r,e)=>{for(var t=r.split(\"/\"),n=\"\",o=0;o<t.length;++o)if(t[o]){n+=\"/\"+t[o];try{Y.mkdir(n,e)}catch(r){if(20!=r.errno)throw r}}},mkdev:(r,e,t)=>(void 0===t&&(t=e,e=438),e|=8192,Y.mknod(r,e,t)),symlink:(r,e)=>{if(!V.resolve(r))throw new Y.ErrnoError(44);var t=Y.lookupPath(e,{parent:!0}).node;if(!t)throw new Y.ErrnoError(44);var n=W.basename(e),o=Y.mayCreate(t,n);if(o)throw new Y.ErrnoError(o);if(!t.node_ops.symlink)throw new Y.ErrnoError(63);return t.node_ops.symlink(t,n,r)},rename:(r,e)=>{var t,n,o=W.dirname(r),i=W.dirname(e),a=W.basename(r),s=W.basename(e);if(t=Y.lookupPath(r,{parent:!0}).node,n=Y.lookupPath(e,{parent:!0}).node,!t||!n)throw new Y.ErrnoError(44);if(t.mount!==n.mount)throw new Y.ErrnoError(75);var u,c=Y.lookupNode(t,a),l=V.relative(r,i);if(\".\"!==l.charAt(0))throw new Y.ErrnoError(28);if(\".\"!==(l=V.relative(e,o)).charAt(0))throw new Y.ErrnoError(55);try{u=Y.lookupNode(n,s)}catch(r){}if(c!==u){var d=Y.isDir(c.mode),f=Y.mayDelete(t,a,d);if(f)throw new Y.ErrnoError(f);if(f=u?Y.mayDelete(n,s,d):Y.mayCreate(n,s))throw new Y.ErrnoError(f);if(!t.node_ops.rename)throw new Y.ErrnoError(63);if(Y.isMountpoint(c)||u&&Y.isMountpoint(u))throw new Y.ErrnoError(10);if(n!==t&&(f=Y.nodePermissions(t,\"w\")))throw new Y.ErrnoError(f);Y.hashRemoveNode(c);try{t.node_ops.rename(c,n,s)}catch(r){throw r}finally{Y.hashAddNode(c)}}},rmdir:r=>{var e=Y.lookupPath(r,{parent:!0}).node,t=W.basename(r),n=Y.lookupNode(e,t),o=Y.mayDelete(e,t,!0);if(o)throw new Y.ErrnoError(o);if(!e.node_ops.rmdir)throw new Y.ErrnoError(63);if(Y.isMountpoint(n))throw new Y.ErrnoError(10);e.node_ops.rmdir(e,t),Y.destroyNode(n)},readdir:r=>{var e=Y.lookupPath(r,{follow:!0}).node;if(!e.node_ops.readdir)throw new Y.ErrnoError(54);return e.node_ops.readdir(e)},unlink:r=>{var e=Y.lookupPath(r,{parent:!0}).node;if(!e)throw new Y.ErrnoError(44);var t=W.basename(r),n=Y.lookupNode(e,t),o=Y.mayDelete(e,t,!1);if(o)throw new Y.ErrnoError(o);if(!e.node_ops.unlink)throw new Y.ErrnoError(63);if(Y.isMountpoint(n))throw new Y.ErrnoError(10);e.node_ops.unlink(e,t),Y.destroyNode(n)},readlink:r=>{var e=Y.lookupPath(r).node;if(!e)throw new Y.ErrnoError(44);if(!e.node_ops.readlink)throw new Y.ErrnoError(28);return V.resolve(Y.getPath(e.parent),e.node_ops.readlink(e))},stat:(r,e)=>{var t=Y.lookupPath(r,{follow:!e}).node;if(!t)throw new Y.ErrnoError(44);if(!t.node_ops.getattr)throw new Y.ErrnoError(63);return t.node_ops.getattr(t)},lstat:r=>Y.stat(r,!0),chmod:(r,e,t)=>{var n;if(!(n=\"string\"==typeof r?Y.lookupPath(r,{follow:!t}).node:r).node_ops.setattr)throw new Y.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&e|-4096&n.mode,timestamp:Date.now()})},lchmod:(r,e)=>{Y.chmod(r,e,!0)},fchmod:(r,e)=>{var t=Y.getStream(r);if(!t)throw new Y.ErrnoError(8);Y.chmod(t.node,e)},chown:(r,e,t,n)=>{var o;if(!(o=\"string\"==typeof r?Y.lookupPath(r,{follow:!n}).node:r).node_ops.setattr)throw new Y.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:(r,e,t)=>{Y.chown(r,e,t,!0)},fchown:(r,e,t)=>{var n=Y.getStream(r);if(!n)throw new Y.ErrnoError(8);Y.chown(n.node,e,t)},truncate:(r,e)=>{if(e<0)throw new Y.ErrnoError(28);var t;if(!(t=\"string\"==typeof r?Y.lookupPath(r,{follow:!0}).node:r).node_ops.setattr)throw new Y.ErrnoError(63);if(Y.isDir(t.mode))throw new Y.ErrnoError(31);if(!Y.isFile(t.mode))throw new Y.ErrnoError(28);var n=Y.nodePermissions(t,\"w\");if(n)throw new Y.ErrnoError(n);t.node_ops.setattr(t,{size:e,timestamp:Date.now()})},ftruncate:(r,e)=>{var t=Y.getStream(r);if(!t)throw new Y.ErrnoError(8);if(0==(2097155&t.flags))throw new Y.ErrnoError(28);Y.truncate(t.node,e)},utime:(r,e,t)=>{var n=Y.lookupPath(r,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(e,t)})},open:(r,e,t,n,i)=>{if(\"\"===r)throw new Y.ErrnoError(44);var a;if(t=void 0===t?438:t,t=64&(e=\"string\"==typeof e?Y.modeStringToFlags(e):e)?4095&t|32768:0,\"object\"==typeof r)a=r;else{r=W.normalize(r);try{a=Y.lookupPath(r,{follow:!(131072&e)}).node}catch(r){}}var s=!1;if(64&e)if(a){if(128&e)throw new Y.ErrnoError(20)}else a=Y.mknod(r,t,0),s=!0;if(!a)throw new Y.ErrnoError(44);if(Y.isChrdev(a.mode)&&(e&=-513),65536&e&&!Y.isDir(a.mode))throw new Y.ErrnoError(54);if(!s){var u=Y.mayOpen(a,e);if(u)throw new Y.ErrnoError(u)}512&e&&Y.truncate(a,0),e&=-131713;var c=Y.createStream({node:a,path:Y.getPath(a),flags:e,seekable:!0,position:0,stream_ops:a.stream_ops,ungotten:[],error:!1},n,i);return c.stream_ops.open&&c.stream_ops.open(c),!o.logReadFiles||1&e||(Y.readFiles||(Y.readFiles={}),r in Y.readFiles||(Y.readFiles[r]=1)),c},close:r=>{if(Y.isClosed(r))throw new Y.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(r){throw r}finally{Y.closeStream(r.fd)}r.fd=null},isClosed:r=>null===r.fd,llseek:(r,e,t)=>{if(Y.isClosed(r))throw new Y.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new Y.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new Y.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,t),r.ungotten=[],r.position},read:(r,e,t,n,o)=>{if(n<0||o<0)throw new Y.ErrnoError(28);if(Y.isClosed(r))throw new Y.ErrnoError(8);if(1==(2097155&r.flags))throw new Y.ErrnoError(8);if(Y.isDir(r.node.mode))throw new Y.ErrnoError(31);if(!r.stream_ops.read)throw new Y.ErrnoError(28);var i=void 0!==o;if(i){if(!r.seekable)throw new Y.ErrnoError(70)}else o=r.position;var a=r.stream_ops.read(r,e,t,n,o);return i||(r.position+=a),a},write:(r,e,t,n,o,i)=>{if(n<0||o<0)throw new Y.ErrnoError(28);if(Y.isClosed(r))throw new Y.ErrnoError(8);if(0==(2097155&r.flags))throw new Y.ErrnoError(8);if(Y.isDir(r.node.mode))throw new Y.ErrnoError(31);if(!r.stream_ops.write)throw new Y.ErrnoError(28);r.seekable&&1024&r.flags&&Y.llseek(r,0,2);var a=void 0!==o;if(a){if(!r.seekable)throw new Y.ErrnoError(70)}else o=r.position;var s=r.stream_ops.write(r,e,t,n,o,i);return a||(r.position+=s),s},allocate:(r,e,t)=>{if(Y.isClosed(r))throw new Y.ErrnoError(8);if(e<0||t<=0)throw new Y.ErrnoError(28);if(0==(2097155&r.flags))throw new Y.ErrnoError(8);if(!Y.isFile(r.node.mode)&&!Y.isDir(r.node.mode))throw new Y.ErrnoError(43);if(!r.stream_ops.allocate)throw new Y.ErrnoError(138);r.stream_ops.allocate(r,e,t)},mmap:(r,e,t,n,o,i)=>{if(0!=(2&o)&&0==(2&i)&&2!=(2097155&r.flags))throw new Y.ErrnoError(2);if(1==(2097155&r.flags))throw new Y.ErrnoError(2);if(!r.stream_ops.mmap)throw new Y.ErrnoError(43);return r.stream_ops.mmap(r,e,t,n,o,i)},msync:(r,e,t,n,o)=>r&&r.stream_ops.msync?r.stream_ops.msync(r,e,t,n,o):0,munmap:r=>0,ioctl:(r,e,t)=>{if(!r.stream_ops.ioctl)throw new Y.ErrnoError(59);return r.stream_ops.ioctl(r,e,t)},readFile:(r,e={})=>{if(e.flags=e.flags||0,e.encoding=e.encoding||\"binary\",\"utf8\"!==e.encoding&&\"binary\"!==e.encoding)throw new Error('Invalid encoding type \"'+e.encoding+'\"');var t,n=Y.open(r,e.flags),o=Y.stat(r).size,i=new Uint8Array(o);return Y.read(n,i,0,o,0),\"utf8\"===e.encoding?t=k(i,0):\"binary\"===e.encoding&&(t=i),Y.close(n),t},writeFile:(r,e,t={})=>{t.flags=t.flags||577;var n=Y.open(r,t.flags,t.mode);if(\"string\"==typeof e){var o=new Uint8Array(A(e)+1),i=S(e,o,0,o.length);Y.write(n,o,0,i,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(e))throw new Error(\"Unsupported data type\");Y.write(n,e,0,e.byteLength,void 0,t.canOwn)}Y.close(n)},cwd:()=>Y.currentPath,chdir:r=>{var e=Y.lookupPath(r,{follow:!0});if(null===e.node)throw new Y.ErrnoError(44);if(!Y.isDir(e.node.mode))throw new Y.ErrnoError(54);var t=Y.nodePermissions(e.node,\"x\");if(t)throw new Y.ErrnoError(t);Y.currentPath=e.path},createDefaultDirectories:()=>{Y.mkdir(\"/tmp\"),Y.mkdir(\"/home\"),Y.mkdir(\"/home/web_user\")},createDefaultDevices:()=>{Y.mkdir(\"/dev\"),Y.registerDevice(Y.makedev(1,3),{read:()=>0,write:(r,e,t,n,o)=>n}),Y.mkdev(\"/dev/null\",Y.makedev(1,3)),J.register(Y.makedev(5,0),J.default_tty_ops),J.register(Y.makedev(6,0),J.default_tty1_ops),Y.mkdev(\"/dev/tty\",Y.makedev(5,0)),Y.mkdev(\"/dev/tty1\",Y.makedev(6,0));var r=function(){if(\"object\"==typeof crypto&&\"function\"==typeof crypto.getRandomValues){var r=new Uint8Array(1);return function(){return crypto.getRandomValues(r),r[0]}}return function(){L(\"randomDevice\")}}();Y.createDevice(\"/dev\",\"random\",r),Y.createDevice(\"/dev\",\"urandom\",r),Y.mkdir(\"/dev/shm\"),Y.mkdir(\"/dev/shm/tmp\")},createSpecialDirectories:()=>{Y.mkdir(\"/proc\");var r=Y.mkdir(\"/proc/self\");Y.mkdir(\"/proc/self/fd\"),Y.mount({mount:()=>{var e=Y.createNode(r,\"fd\",16895,73);return e.node_ops={lookup:(r,e)=>{var t=+e,n=Y.getStream(t);if(!n)throw new Y.ErrnoError(8);var o={parent:null,mount:{mountpoint:\"fake\"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},e}},{},\"/proc/self/fd\")},createStandardStreams:()=>{o.stdin?Y.createDevice(\"/dev\",\"stdin\",o.stdin):Y.symlink(\"/dev/tty\",\"/dev/stdin\"),o.stdout?Y.createDevice(\"/dev\",\"stdout\",null,o.stdout):Y.symlink(\"/dev/tty\",\"/dev/stdout\"),o.stderr?Y.createDevice(\"/dev\",\"stderr\",null,o.stderr):Y.symlink(\"/dev/tty1\",\"/dev/stderr\"),Y.open(\"/dev/stdin\",0),Y.open(\"/dev/stdout\",1),Y.open(\"/dev/stderr\",1)},ensureErrnoError:()=>{Y.ErrnoError||(Y.ErrnoError=function(r,e){this.node=e,this.setErrno=function(r){this.errno=r},this.setErrno(r),this.message=\"FS error\"},Y.ErrnoError.prototype=new Error,Y.ErrnoError.prototype.constructor=Y.ErrnoError,[44].forEach((r=>{Y.genericErrors[r]=new Y.ErrnoError(r),Y.genericErrors[r].stack=\"<generic error, no stack>\"})))},staticInit:()=>{Y.ensureErrnoError(),Y.nameTable=new Array(4096),Y.mount(X,{},\"/\"),Y.createDefaultDirectories(),Y.createDefaultDevices(),Y.createSpecialDirectories(),Y.filesystems={MEMFS:X}},init:(r,e,t)=>{Y.init.initialized=!0,Y.ensureErrnoError(),o.stdin=r||o.stdin,o.stdout=e||o.stdout,o.stderr=t||o.stderr,Y.createStandardStreams()},quit:()=>{Y.init.initialized=!1;for(var r=0;r<Y.streams.length;r++){var e=Y.streams[r];e&&Y.close(e)}},getMode:(r,e)=>{var t=0;return r&&(t|=365),e&&(t|=146),t},findObject:(r,e)=>{var t=Y.analyzePath(r,e);return t.exists?t.object:null},analyzePath:(r,e)=>{try{r=(n=Y.lookupPath(r,{follow:!e})).path}catch(r){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=Y.lookupPath(r,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=W.basename(r),n=Y.lookupPath(r,{follow:!e}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot=\"/\"===n.path}catch(r){t.error=r.errno}return t},createPath:(r,e,t,n)=>{r=\"string\"==typeof r?r:Y.getPath(r);for(var o=e.split(\"/\").reverse();o.length;){var i=o.pop();if(i){var a=W.join2(r,i);try{Y.mkdir(a)}catch(r){}r=a}}return a},createFile:(r,e,t,n,o)=>{var i=W.join2(\"string\"==typeof r?r:Y.getPath(r),e),a=Y.getMode(n,o);return Y.create(i,a)},createDataFile:(r,e,t,n,o,i)=>{var a=e;r&&(r=\"string\"==typeof r?r:Y.getPath(r),a=e?W.join2(r,e):r);var s=Y.getMode(n,o),u=Y.create(a,s);if(t){if(\"string\"==typeof t){for(var c=new Array(t.length),l=0,d=t.length;l<d;++l)c[l]=t.charCodeAt(l);t=c}Y.chmod(u,146|s);var f=Y.open(u,577);Y.write(f,t,0,t.length,0,i),Y.close(f),Y.chmod(u,s)}return u},createDevice:(r,e,t,n)=>{var o=W.join2(\"string\"==typeof r?r:Y.getPath(r),e),i=Y.getMode(!!t,!!n);Y.createDevice.major||(Y.createDevice.major=64);var a=Y.makedev(Y.createDevice.major++,0);return Y.registerDevice(a,{open:r=>{r.seekable=!1},close:r=>{n&&n.buffer&&n.buffer.length&&n(10)},read:(r,e,n,o,i)=>{for(var a=0,s=0;s<o;s++){var u;try{u=t()}catch(r){throw new Y.ErrnoError(29)}if(void 0===u&&0===a)throw new Y.ErrnoError(6);if(null==u)break;a++,e[n+s]=u}return a&&(r.node.timestamp=Date.now()),a},write:(r,e,t,o,i)=>{for(var a=0;a<o;a++)try{n(e[t+a])}catch(r){throw new Y.ErrnoError(29)}return o&&(r.node.timestamp=Date.now()),a}}),Y.mkdev(o,i,a)},forceLoadFile:r=>{if(r.isDevice||r.isFolder||r.link||r.contents)return!0;if(\"undefined\"!=typeof XMLHttpRequest)throw new Error(\"Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.\");if(!i)throw new Error(\"Cannot load without read() or XMLHttpRequest.\");try{r.contents=or(i(r.url),!0),r.usedBytes=r.contents.length}catch(r){throw new Y.ErrnoError(29)}},createLazyFile:(r,e,t,n,o)=>{function i(){this.lengthKnown=!1,this.chunks=[]}if(i.prototype.get=function(r){if(!(r>this.length-1||r<0)){var e=r%this.chunkSize,t=r/this.chunkSize|0;return this.getter(t)[e]}},i.prototype.setDataGetter=function(r){this.getter=r},i.prototype.cacheLength=function(){var r=new XMLHttpRequest;if(r.open(\"HEAD\",t,!1),r.send(null),!(r.status>=200&&r.status<300||304===r.status))throw new Error(\"Couldn't load \"+t+\". Status: \"+r.status);var e,n=Number(r.getResponseHeader(\"Content-length\")),o=(e=r.getResponseHeader(\"Accept-Ranges\"))&&\"bytes\"===e,i=(e=r.getResponseHeader(\"Content-Encoding\"))&&\"gzip\"===e,a=1048576;o||(a=n);var s=this;s.setDataGetter((r=>{var e=r*a,o=(r+1)*a-1;if(o=Math.min(o,n-1),void 0===s.chunks[r]&&(s.chunks[r]=((r,e)=>{if(r>e)throw new Error(\"invalid range (\"+r+\", \"+e+\") or no bytes requested!\");if(e>n-1)throw new Error(\"only \"+n+\" bytes available! programmer error!\");var o=new XMLHttpRequest;if(o.open(\"GET\",t,!1),n!==a&&o.setRequestHeader(\"Range\",\"bytes=\"+r+\"-\"+e),o.responseType=\"arraybuffer\",o.overrideMimeType&&o.overrideMimeType(\"text/plain; charset=x-user-defined\"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error(\"Couldn't load \"+t+\". Status: \"+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):or(o.responseText||\"\",!0)})(e,o)),void 0===s.chunks[r])throw new Error(\"doXHR failed!\");return s.chunks[r]})),!i&&n||(a=n=1,n=this.getter(0).length,a=n,f(\"LazyFiles on gzip forces download of the whole file when length is accessed\")),this._length=n,this._chunkSize=a,this.lengthKnown=!0},\"undefined\"!=typeof XMLHttpRequest)throw\"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc\";var a={isDevice:!1,url:t},s=Y.createFile(r,e,a,n,o);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach((r=>{var e=s.stream_ops[r];u[r]=function(){return Y.forceLoadFile(s),e.apply(null,arguments)}})),u.read=(r,e,t,n,o)=>{Y.forceLoadFile(s);var i=r.node.contents;if(o>=i.length)return 0;var a=Math.min(i.length-o,n);if(i.slice)for(var u=0;u<a;u++)e[t+u]=i[o+u];else for(u=0;u<a;u++)e[t+u]=i.get(o+u);return a},s.stream_ops=u,s},createPreloadedFile:(r,e,t,n,o,i,s,u,c,l)=>{var d=e?V.resolve(W.join2(r,e)):r;function f(t){function a(t){l&&l(),u||Y.createDataFile(r,e,t,n,o,c),i&&i(),O()}Browser.handledByPreloadPlugin(t,d,a,(()=>{s&&s(),O()}))||a(t)}N(),\"string\"==typeof t?function(r,e,t,n){var o=n?\"\":\"al \"+r;a(r,(function(t){m(t,'Loading data file \"'+r+'\" failed (no arrayBuffer).'),e(new Uint8Array(t)),o&&O()}),(function(e){if(!t)throw'Loading data file \"'+r+'\" failed.';t()})),o&&N()}(t,(r=>f(r)),s):f(t)},indexedDB:()=>window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,DB_NAME:()=>\"EM_FS_\"+window.location.pathname,DB_VERSION:20,DB_STORE_NAME:\"FILE_DATA\",saveFilesToDB:(r,e,t)=>{e=e||(()=>{}),t=t||(()=>{});var n=Y.indexedDB();try{var o=n.open(Y.DB_NAME(),Y.DB_VERSION)}catch(r){return t(r)}o.onupgradeneeded=()=>{f(\"creating db\"),o.result.createObjectStore(Y.DB_STORE_NAME)},o.onsuccess=()=>{var n=o.result.transaction([Y.DB_STORE_NAME],\"readwrite\"),i=n.objectStore(Y.DB_STORE_NAME),a=0,s=0,u=r.length;function c(){0==s?e():t()}r.forEach((r=>{var e=i.put(Y.analyzePath(r).object.contents,r);e.onsuccess=()=>{++a+s==u&&c()},e.onerror=()=>{s++,a+s==u&&c()}})),n.onerror=t},o.onerror=t},loadFilesFromDB:(r,e,t)=>{e=e||(()=>{}),t=t||(()=>{});var n=Y.indexedDB();try{var o=n.open(Y.DB_NAME(),Y.DB_VERSION)}catch(r){return t(r)}o.onupgradeneeded=t,o.onsuccess=()=>{var n=o.result;try{var i=n.transaction([Y.DB_STORE_NAME],\"readonly\")}catch(r){return void t(r)}var a=i.objectStore(Y.DB_STORE_NAME),s=0,u=0,c=r.length;function l(){0==u?e():t()}r.forEach((r=>{var e=a.get(r);e.onsuccess=()=>{Y.analyzePath(r).exists&&Y.unlink(r),Y.createDataFile(W.dirname(r),W.basename(r),e.result,!0,!0,!0),++s+u==c&&l()},e.onerror=()=>{u++,s+u==c&&l()}})),i.onerror=t},o.onerror=t}},K={DEFAULT_POLLMASK:5,calculateAt:function(r,e,t){if(\"/\"===e[0])return e;var n;if(-100===r)n=Y.cwd();else{var o=Y.getStream(r);if(!o)throw new Y.ErrnoError(8);n=o.path}if(0==e.length){if(!t)throw new Y.ErrnoError(44);return n}return W.join2(n,e)},doStat:function(r,e,t){try{var n=r(e)}catch(r){if(r&&r.node&&W.normalize(e)!==W.normalize(Y.getPath(r.node)))return-54;throw r}return y[t>>2]=n.dev,y[t+4>>2]=0,y[t+8>>2]=n.ino,y[t+12>>2]=n.mode,y[t+16>>2]=n.nlink,y[t+20>>2]=n.uid,y[t+24>>2]=n.gid,y[t+28>>2]=n.rdev,y[t+32>>2]=0,R=[n.size>>>0,(M=n.size,+Math.abs(M)>=1?M>0?(0|Math.min(+Math.floor(M/4294967296),4294967295))>>>0:~~+Math.ceil((M-+(~~M>>>0))/4294967296)>>>0:0)],y[t+40>>2]=R[0],y[t+44>>2]=R[1],y[t+48>>2]=4096,y[t+52>>2]=n.blocks,y[t+56>>2]=n.atime.getTime()/1e3|0,y[t+60>>2]=0,y[t+64>>2]=n.mtime.getTime()/1e3|0,y[t+68>>2]=0,y[t+72>>2]=n.ctime.getTime()/1e3|0,y[t+76>>2]=0,R=[n.ino>>>0,(M=n.ino,+Math.abs(M)>=1?M>0?(0|Math.min(+Math.floor(M/4294967296),4294967295))>>>0:~~+Math.ceil((M-+(~~M>>>0))/4294967296)>>>0:0)],y[t+80>>2]=R[0],y[t+84>>2]=R[1],0},doMsync:function(r,e,t,n,o){var i=_.slice(r,r+t);Y.msync(e,i,o,t,n)},doMkdir:function(r,e){return\"/\"===(r=W.normalize(r))[r.length-1]&&(r=r.substr(0,r.length-1)),Y.mkdir(r,e,0),0},doMknod:function(r,e,t){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return Y.mknod(r,e,t),0},doReadlink:function(r,e,t){if(t<=0)return-28;var n=Y.readlink(r),o=Math.min(t,A(n)),i=w[e+o];return S(n,_,e,t+1),w[e+o]=i,o},doAccess:function(r,e){if(-8&e)return-28;var t=Y.lookupPath(r,{follow:!0}).node;if(!t)return-44;var n=\"\";return 4&e&&(n+=\"r\"),2&e&&(n+=\"w\"),1&e&&(n+=\"x\"),n&&Y.nodePermissions(t,n)?-2:0},doDup:function(r,e,t){var n=Y.getStream(t);return n&&Y.close(n),Y.open(r,e,0,t,t).fd},doReadv:function(r,e,t,n){for(var o=0,i=0;i<t;i++){var a=y[e+8*i>>2],s=y[e+(8*i+4)>>2],u=Y.read(r,w,a,s,n);if(u<0)return-1;if(o+=u,u<s)break}return o},doWritev:function(r,e,t,n){for(var o=0,i=0;i<t;i++){var a=y[e+8*i>>2],s=y[e+(8*i+4)>>2],u=Y.write(r,w,a,s,n);if(u<0)return-1;o+=u}return o},varargs:void 0,get:function(){return K.varargs+=4,y[K.varargs-4>>2]},getStr:function(r){return D(r)},getStreamFromFD:function(r){var e=Y.getStream(r);if(!e)throw new Y.ErrnoError(8);return e},get64:function(r,e){return r}},$=[];function Q(r){try{return d.grow(r-v.byteLength+65535>>>16),P(d.buffer),1}catch(r){}}var Z={};function rr(){if(!rr.strings){var r={USER:\"web_user\",LOGNAME:\"web_user\",PATH:\"/\",PWD:\"/\",HOME:\"/home/web_user\",LANG:(\"object\"==typeof navigator&&navigator.languages&&navigator.languages[0]||\"C\").replace(\"-\",\"_\")+\".UTF-8\",_:u||\"./this.program\"};for(var e in Z)void 0===Z[e]?delete r[e]:r[e]=Z[e];var t=[];for(var e in r)t.push(e+\"=\"+r[e]);rr.strings=t}return rr.strings}var er=function(r,e,t,n){r||(r=this),this.parent=r,this.mount=r.mount,this.mounted=null,this.id=Y.nextInode++,this.name=e,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},tr=365,nr=146;function or(r,e,t){var n=t>0?t:A(r)+1,o=new Array(n),i=S(r,o,0,o.length);return e&&(o.length=i),o}Object.defineProperties(er.prototype,{read:{get:function(){return(this.mode&tr)===tr},set:function(r){r?this.mode|=tr:this.mode&=-366}},write:{get:function(){return(this.mode&nr)===nr},set:function(r){r?this.mode|=nr:this.mode&=-147}},isFolder:{get:function(){return Y.isDir(this.mode)}},isDevice:{get:function(){return Y.isChrdev(this.mode)}}}),Y.FSNode=er,Y.staticInit();var ir={g:function(r,e,t){K.varargs=t;try{var n=K.getStr(r),o=t?K.get():0;return Y.open(n,e,o).fd}catch(r){if(void 0===Y||!(r instanceof Y.ErrnoError))throw r;return-r.errno}},d:function(){L(\"\")},a:function(r,e,t){var n=function(r,e){var t;for($.length=0,e>>=2;t=_[r++];){var n=t<105;n&&1&e&&e++,$.push(n?E[e++>>1]:y[e]),++e}return $}(e,t);return H[r].apply(null,n)},j:function(r,e,t){_.copyWithin(r,e,e+t)},e:function(r){var e,t,n=_.length,o=2147483648;if((r>>>=0)>o)return!1;for(var i=1;i<=4;i*=2){var a=n*(1+.2/i);if(a=Math.min(a,r+100663296),Q(Math.min(o,(e=Math.max(r,a))+((t=65536)-e%t)%t)))return!0}return!1},h:function(r,e){var t=0;return rr().forEach((function(n,o){var i=e+t;y[r+4*o>>2]=i,function(r,e,t){for(var n=0;n<r.length;++n)w[e++>>0]=r.charCodeAt(n);t||(w[e>>0]=0)}(n,i),t+=n.length+1})),0},i:function(r,e){var t=rr();y[r>>2]=t.length;var n=0;return t.forEach((function(r){n+=r.length+1})),y[e>>2]=n,0},c:function(r){try{var e=K.getStreamFromFD(r);return Y.close(e),0}catch(r){if(void 0===Y||!(r instanceof Y.ErrnoError))throw r;return r.errno}},f:function(r,e,t,n){try{var o=K.getStreamFromFD(r),i=K.doReadv(o,e,t);return y[n>>2]=i,0}catch(r){if(void 0===Y||!(r instanceof Y.ErrnoError))throw r;return r.errno}},k:function(r,e,t,n,o){try{var i=K.getStreamFromFD(r),a=4294967296*t+(e>>>0),s=9007199254740992;return a<=-s||a>=s?-61:(Y.llseek(i,a,n),R=[i.position>>>0,(M=i.position,+Math.abs(M)>=1?M>0?(0|Math.min(+Math.floor(M/4294967296),4294967295))>>>0:~~+Math.ceil((M-+(~~M>>>0))/4294967296)>>>0:0)],y[o>>2]=R[0],y[o+4>>2]=R[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0)}catch(r){if(void 0===Y||!(r instanceof Y.ErrnoError))throw r;return r.errno}},b:function(r,e,t,n){try{var o=K.getStreamFromFD(r),i=K.doWritev(o,e,t);return y[n>>2]=i,0}catch(r){if(void 0===Y||!(r instanceof Y.ErrnoError))throw r;return r.errno}},l:function(r){var e=Date.now();return y[r>>2]=e/1e3|0,y[r+4>>2]=e%1e3*1e3|0,0}};!function(){var r={a:ir};function e(r,e){var t,n=r.exports;o.asm=n,P((d=o.asm.m).buffer),g=o.asm.G,t=o.asm.n,j.unshift(t),O()}function n(r){e(r.instance)}function i(e){return(l||\"function\"!=typeof fetch?Promise.resolve().then((function(){return U(x)})):fetch(x,{credentials:\"same-origin\"}).then((function(r){if(!r.ok)throw\"failed to load wasm binary file at '\"+x+\"'\";return r.arrayBuffer()})).catch((function(){return U(x)}))).then((function(e){return WebAssembly.instantiate(e,r)})).then((function(r){return r})).then(e,(function(r){p(\"failed to asynchronously prepare wasm: \"+r),L(r)}))}if(N(),o.instantiateWasm)try{return o.instantiateWasm(r,e)}catch(r){return p(\"Module.instantiateWasm callback failed with error: \"+r),!1}(l||\"function\"!=typeof WebAssembly.instantiateStreaming||I(x)||\"function\"!=typeof fetch?i(n):fetch(x,{credentials:\"same-origin\"}).then((function(e){return WebAssembly.instantiateStreaming(e,r).then(n,(function(r){return p(\"wasm streaming compile failed: \"+r),p(\"falling back to ArrayBuffer instantiation\"),i(n)}))}))).catch(t)}(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.n).apply(null,arguments)};var ar,sr=o._emscripten_bind_CExpat_CExpat_0=function(){return(sr=o._emscripten_bind_CExpat_CExpat_0=o.asm.o).apply(null,arguments)},ur=o._emscripten_bind_CExpat_version_0=function(){return(ur=o._emscripten_bind_CExpat_version_0=o.asm.p).apply(null,arguments)},cr=o._emscripten_bind_CExpat_create_0=function(){return(cr=o._emscripten_bind_CExpat_create_0=o.asm.q).apply(null,arguments)},lr=o._emscripten_bind_CExpat_destroy_0=function(){return(lr=o._emscripten_bind_CExpat_destroy_0=o.asm.r).apply(null,arguments)},dr=o._emscripten_bind_CExpat_parse_1=function(){return(dr=o._emscripten_bind_CExpat_parse_1=o.asm.s).apply(null,arguments)},fr=o._emscripten_bind_CExpat_tag_0=function(){return(fr=o._emscripten_bind_CExpat_tag_0=o.asm.t).apply(null,arguments)},pr=o._emscripten_bind_CExpat_attrs_0=function(){return(pr=o._emscripten_bind_CExpat_attrs_0=o.asm.u).apply(null,arguments)},hr=o._emscripten_bind_CExpat_content_0=function(){return(hr=o._emscripten_bind_CExpat_content_0=o.asm.v).apply(null,arguments)},mr=o._emscripten_bind_CExpat_startElement_0=function(){return(mr=o._emscripten_bind_CExpat_startElement_0=o.asm.w).apply(null,arguments)},vr=o._emscripten_bind_CExpat_endElement_0=function(){return(vr=o._emscripten_bind_CExpat_endElement_0=o.asm.x).apply(null,arguments)},wr=o._emscripten_bind_CExpat_characterData_0=function(){return(wr=o._emscripten_bind_CExpat_characterData_0=o.asm.y).apply(null,arguments)},_r=o._emscripten_bind_CExpat___destroy___0=function(){return(_r=o._emscripten_bind_CExpat___destroy___0=o.asm.z).apply(null,arguments)},yr=o._emscripten_bind_VoidPtr___destroy___0=function(){return(yr=o._emscripten_bind_VoidPtr___destroy___0=o.asm.A).apply(null,arguments)},Er=o._emscripten_bind_CExpatJS_CExpatJS_0=function(){return(Er=o._emscripten_bind_CExpatJS_CExpatJS_0=o.asm.B).apply(null,arguments)},gr=o._emscripten_bind_CExpatJS_startElement_0=function(){return(gr=o._emscripten_bind_CExpatJS_startElement_0=o.asm.C).apply(null,arguments)},br=o._emscripten_bind_CExpatJS_endElement_0=function(){return(br=o._emscripten_bind_CExpatJS_endElement_0=o.asm.D).apply(null,arguments)},kr=o._emscripten_bind_CExpatJS_characterData_0=function(){return(kr=o._emscripten_bind_CExpatJS_characterData_0=o.asm.E).apply(null,arguments)},Dr=o._emscripten_bind_CExpatJS___destroy___0=function(){return(Dr=o._emscripten_bind_CExpatJS___destroy___0=o.asm.F).apply(null,arguments)};function Sr(r){function t(){ar||(ar=!0,o.calledRun=!0,h||(o.noFSInit||Y.init.initialized||Y.init(),Y.ignorePermissions=!1,G(j),e(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),function(){if(o.postRun)for(\"function\"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)r=o.postRun.shift(),z.unshift(r);var r;G(z)}()))}T>0||(function(){if(o.preRun)for(\"function\"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)r=o.preRun.shift(),C.unshift(r);var r;G(C)}(),T>0||(o.setStatus?(o.setStatus(\"Running...\"),setTimeout((function(){setTimeout((function(){o.setStatus(\"\")}),1),t()}),1)):t()))}if(o._malloc=function(){return(o._malloc=o.asm.H).apply(null,arguments)},B=function r(){ar||Sr(),ar||(B=r)},o.run=Sr,o.preInit)for(\"function\"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();function Ar(){}function Pr(r){return(r||Ar).__cache__}function xr(r,e){var t=Pr(e),n=t[r];return n||((n=Object.create((e||Ar).prototype)).ptr=r,t[r]=n)}Sr(),Ar.prototype=Object.create(Ar.prototype),Ar.prototype.constructor=Ar,Ar.prototype.__class__=Ar,Ar.__cache__={},o.WrapperObject=Ar,o.getCache=Pr,o.wrapPointer=xr,o.castObject=function(r,e){return xr(r.ptr,e)},o.NULL=xr(0),o.destroy=function(r){if(!r.__destroy__)throw\"Error: Cannot destroy object. (Did you create it yourself?)\";r.__destroy__(),delete Pr(r.__class__)[r.ptr]},o.compare=function(r,e){return r.ptr===e.ptr},o.getPointer=function(r){return r.ptr},o.getClass=function(r){return r.__class__};var Fr={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Fr.needed){for(var r=0;r<Fr.temps.length;r++)o._free(Fr.temps[r]);Fr.temps.length=0,o._free(Fr.buffer),Fr.buffer=0,Fr.size+=Fr.needed,Fr.needed=0}Fr.buffer||(Fr.size+=128,Fr.buffer=o._malloc(Fr.size),m(Fr.buffer)),Fr.pos=0},alloc:function(r,e){m(Fr.buffer);var t,n=e.BYTES_PER_ELEMENT,i=r.length*n;return i=i+7&-8,Fr.pos+i>=Fr.size?(m(i>0),Fr.needed+=i,t=o._malloc(i),Fr.temps.push(t)):(t=Fr.buffer+Fr.pos,Fr.pos+=i),t},copy:function(r,e,t){switch(t>>>=0,e.BYTES_PER_ELEMENT){case 2:t>>>=1;break;case 4:t>>>=2;break;case 8:t>>>=3}for(var n=0;n<r.length;n++)e[t+n]=r[n]}};function Mr(){this.ptr=sr(),Pr(Mr)[this.ptr]=this}function Rr(){throw\"cannot construct a VoidPtr, no constructor in IDL\"}function Cr(){this.ptr=Er(),Pr(Cr)[this.ptr]=this}return Mr.prototype=Object.create(Ar.prototype),Mr.prototype.constructor=Mr,Mr.prototype.__class__=Mr,Mr.__cache__={},o.CExpat=Mr,Mr.prototype.version=Mr.prototype.version=function(){var r=this.ptr;return D(ur(r))},Mr.prototype.create=Mr.prototype.create=function(){var r=this.ptr;return!!cr(r)},Mr.prototype.destroy=Mr.prototype.destroy=function(){var r=this.ptr;lr(r)},Mr.prototype.parse=Mr.prototype.parse=function(r){var e=this.ptr;return Fr.prepare(),r=r&&\"object\"==typeof r?r.ptr:function(r){if(\"string\"==typeof r){var e=or(r),t=Fr.alloc(e,w);return Fr.copy(e,w,t),t}return r}(r),!!dr(e,r)},Mr.prototype.tag=Mr.prototype.tag=function(){var r=this.ptr;return D(fr(r))},Mr.prototype.attrs=Mr.prototype.attrs=function(){var r=this.ptr;return D(pr(r))},Mr.prototype.content=Mr.prototype.content=function(){var r=this.ptr;return D(hr(r))},Mr.prototype.startElement=Mr.prototype.startElement=function(){var r=this.ptr;mr(r)},Mr.prototype.endElement=Mr.prototype.endElement=function(){var r=this.ptr;vr(r)},Mr.prototype.characterData=Mr.prototype.characterData=function(){var r=this.ptr;wr(r)},Mr.prototype.__destroy__=Mr.prototype.__destroy__=function(){var r=this.ptr;_r(r)},Rr.prototype=Object.create(Ar.prototype),Rr.prototype.constructor=Rr,Rr.prototype.__class__=Rr,Rr.__cache__={},o.VoidPtr=Rr,Rr.prototype.__destroy__=Rr.prototype.__destroy__=function(){var r=this.ptr;yr(r)},Cr.prototype=Object.create(Mr.prototype),Cr.prototype.constructor=Cr,Cr.prototype.__class__=Cr,Cr.__cache__={},o.CExpatJS=Cr,Cr.prototype.startElement=Cr.prototype.startElement=function(){var r=this.ptr;gr(r)},Cr.prototype.endElement=Cr.prototype.endElement=function(){var r=this.ptr;br(r)},Cr.prototype.characterData=Cr.prototype.characterData=function(){var r=this.ptr;kr(r)},Cr.prototype.__destroy__=Cr.prototype.__destroy__=function(){var r=this.ptr;Dr(r)},r.ready},t.exports=o;var a=function(){if(\"undefined\"!=typeof self)return self;if(\"undefined\"!=typeof window)return window;if(\"undefined\"!=typeof global)return global;throw new Error(\"unable to locate global object\")}().__hpcc_wasmFolder||void 0;function s(r,e,t){var n=r.default||r;return n.__hpcc_promise||(n.__hpcc_promise=n({wasmBinary:t,locateFile:function(r,t){return\"\".concat(function(r,e){for(;r.charAt(r.length-1)===e;)r=r.substring(0,r.length-1);return r}(e||function(r){if(!arguments.length)return a;var e=a;return a=r,e}()||t||\".\",\"/\"),\"/\").concat(function(r,e){for(;r.charAt(0)===e;)r=r.substring(1);return r}(r,\"/\"))}})),n.__hpcc_promise}!function(){function r(r,e){this.tag=r,this.attrs=e,this._content=\"\"}Object.defineProperty(r.prototype,\"content\",{get:function(){return this._content},enumerable:!1,configurable:!0}),r.prototype.appendContent=function(r){this._content+=r}}();var u={exports:{}};!function(r,e){var t=(()=>{var r=\"undefined\"!=typeof document&&document.currentScript?document.currentScript.src:void 0;return function(e){var t,n,o=void 0!==(e=e||{})?e:{};o.ready=new Promise((function(r,e){t=r,n=e}));var i,a,s=Object.assign({},o),u=\"./this.program\",c=(r,e)=>{throw e},l=\"\";\"undefined\"!=typeof document&&document.currentScript&&(l=document.currentScript.src),r&&(l=r),l=0!==l.indexOf(\"blob:\")?l.substr(0,l.replace(/[?#].*/,\"\").lastIndexOf(\"/\")+1):\"\",i=r=>{var e=new XMLHttpRequest;return e.open(\"GET\",r,!1),e.send(null),e.responseText},a=(r,e,t)=>{var n=new XMLHttpRequest;n.open(\"GET\",r,!0),n.responseType=\"arraybuffer\",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):t()},n.onerror=t,n.send(null)};var d=o.print||console.log.bind(console),f=o.printErr||console.warn.bind(console);Object.assign(o,s),s=null,o.arguments,o.thisProgram&&(u=o.thisProgram),o.quit&&(c=o.quit);var p,h=0;o.wasmBinary&&(p=o.wasmBinary);var m,v=o.noExitRuntime||!0;\"object\"!=typeof WebAssembly&&L(\"no native wasm support detected\");var w=!1;function _(r,e){r||L(e)}var y,E,g,b,k,D,S,A=\"undefined\"!=typeof TextDecoder?new TextDecoder(\"utf8\"):void 0;function P(r,e,t){for(var n=e+t,o=e;r[o]&&!(o>=n);)++o;if(o-e>16&&r.subarray&&A)return A.decode(r.subarray(e,o));for(var i=\"\";e<o;){var a=r[e++];if(128&a){var s=63&r[e++];if(192!=(224&a)){var u=63&r[e++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&r[e++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function x(r,e){return r?P(g,r,e):\"\"}function F(r,e,t,n){if(!(n>0))return 0;for(var o=t,i=t+n-1,a=0;a<r.length;++a){var s=r.charCodeAt(a);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&r.charCodeAt(++a);if(s<=127){if(t>=i)break;e[t++]=s}else if(s<=2047){if(t+1>=i)break;e[t++]=192|s>>6,e[t++]=128|63&s}else if(s<=65535){if(t+2>=i)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|63&s}else{if(t+3>=i)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|63&s}}return e[t]=0,t-o}function M(r){for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&r.charCodeAt(++t)),n<=127?++e:e+=n<=2047?2:n<=65535?3:4}return e}function R(r){y=r,o.HEAP8=E=new Int8Array(r),o.HEAP16=b=new Int16Array(r),o.HEAP32=k=new Int32Array(r),o.HEAPU8=g=new Uint8Array(r),o.HEAPU16=new Uint16Array(r),o.HEAPU32=new Uint32Array(r),o.HEAPF32=new Float32Array(r),o.HEAPF64=D=new Float64Array(r)}o.INITIAL_MEMORY;var C=[],j=[],z=[];var T=0,B=null;function N(r){T++,o.monitorRunDependencies&&o.monitorRunDependencies(T)}function O(r){if(T--,o.monitorRunDependencies&&o.monitorRunDependencies(T),0==T&&B){var e=B;B=null,e()}}function L(r){o.onAbort&&o.onAbort(r),f(r=\"Aborted(\"+r+\")\"),w=!0,r+=\". Build with -s ASSERTIONS=1 for more info.\";var e=new WebAssembly.RuntimeError(r);throw n(e),e}o.preloadedImages={},o.preloadedAudios={};var I,U,H,G;function q(r){return r.startsWith(\"data:application/octet-stream;base64,\")}function W(r){try{if(r==I&&p)return new Uint8Array(p);throw\"both async and sync fetching of the wasm failed\"}catch(r){L(r)}}q(I=\"graphvizlib.wasm\")||(U=I,I=o.locateFile?o.locateFile(U,l):l+U);var V,J={161520:function(r,e){var t=x(r),n=x(e);tr.createPath(\"/\",$.dirname(t)),tr.writeFile($.join(\"/\",t),n)}};function X(r){for(;r.length>0;){var e=r.shift();if(\"function\"!=typeof e){var t=e.func;\"number\"==typeof t?void 0===e.arg?Y(t)():Y(t)(e.arg):t(void 0===e.arg?null:e.arg)}else e(o)}}function Y(r){return S.get(r)}V=()=>performance.now();function K(r){return k[gr()>>2]=r,r}var $={splitPath:function(r){return/^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/.exec(r).slice(1)},normalizeArray:function(r,e){for(var t=0,n=r.length-1;n>=0;n--){var o=r[n];\".\"===o?r.splice(n,1):\"..\"===o?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t;t--)r.unshift(\"..\");return r},normalize:function(r){var e=\"/\"===r.charAt(0),t=\"/\"===r.substr(-1);return(r=$.normalizeArray(r.split(\"/\").filter((function(r){return!!r})),!e).join(\"/\"))||e||(r=\".\"),r&&t&&(r+=\"/\"),(e?\"/\":\"\")+r},dirname:function(r){var e=$.splitPath(r),t=e[0],n=e[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):\".\"},basename:function(r){if(\"/\"===r)return\"/\";var e=(r=(r=$.normalize(r)).replace(/\\/$/,\"\")).lastIndexOf(\"/\");return-1===e?r:r.substr(e+1)},extname:function(r){return $.splitPath(r)[3]},join:function(){var r=Array.prototype.slice.call(arguments,0);return $.normalize(r.join(\"/\"))},join2:function(r,e){return $.normalize(r+\"/\"+e)}};var Q={resolve:function(){for(var r=\"\",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var n=t>=0?arguments[t]:tr.cwd();if(\"string\"!=typeof n)throw new TypeError(\"Arguments to path.resolve must be strings\");if(!n)return\"\";r=n+\"/\"+r,e=\"/\"===n.charAt(0)}return(e?\"/\":\"\")+(r=$.normalizeArray(r.split(\"/\").filter((function(r){return!!r})),!e).join(\"/\"))||\".\"},relative:function(r,e){function t(r){for(var e=0;e<r.length&&\"\"===r[e];e++);for(var t=r.length-1;t>=0&&\"\"===r[t];t--);return e>t?[]:r.slice(e,t-e+1)}r=Q.resolve(r).substr(1),e=Q.resolve(e).substr(1);for(var n=t(r.split(\"/\")),o=t(e.split(\"/\")),i=Math.min(n.length,o.length),a=i,s=0;s<i;s++)if(n[s]!==o[s]){a=s;break}var u=[];for(s=a;s<n.length;s++)u.push(\"..\");return(u=u.concat(o.slice(a))).join(\"/\")}},Z={ttys:[],init:function(){},shutdown:function(){},register:function(r,e){Z.ttys[r]={input:[],output:[],ops:e},tr.registerDevice(r,Z.stream_ops)},stream_ops:{open:function(r){var e=Z.ttys[r.node.rdev];if(!e)throw new tr.ErrnoError(43);r.tty=e,r.seekable=!1},close:function(r){r.tty.ops.flush(r.tty)},flush:function(r){r.tty.ops.flush(r.tty)},read:function(r,e,t,n,o){if(!r.tty||!r.tty.ops.get_char)throw new tr.ErrnoError(60);for(var i=0,a=0;a<n;a++){var s;try{s=r.tty.ops.get_char(r.tty)}catch(r){throw new tr.ErrnoError(29)}if(void 0===s&&0===i)throw new tr.ErrnoError(6);if(null==s)break;i++,e[t+a]=s}return i&&(r.node.timestamp=Date.now()),i},write:function(r,e,t,n,o){if(!r.tty||!r.tty.ops.put_char)throw new tr.ErrnoError(60);try{for(var i=0;i<n;i++)r.tty.ops.put_char(r.tty,e[t+i])}catch(r){throw new tr.ErrnoError(29)}return n&&(r.node.timestamp=Date.now()),i}},default_tty_ops:{get_char:function(r){if(!r.input.length){var e=null;if(\"undefined\"!=typeof window&&\"function\"==typeof window.prompt?null!==(e=window.prompt(\"Input: \"))&&(e+=\"\\n\"):\"function\"==typeof readline&&null!==(e=readline())&&(e+=\"\\n\"),!e)return null;r.input=dr(e,!0)}return r.input.shift()},put_char:function(r,e){null===e||10===e?(d(P(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},flush:function(r){r.output&&r.output.length>0&&(d(P(r.output,0)),r.output=[])}},default_tty1_ops:{put_char:function(r,e){null===e||10===e?(f(P(r.output,0)),r.output=[]):0!=e&&r.output.push(e)},flush:function(r){r.output&&r.output.length>0&&(f(P(r.output,0)),r.output=[])}}};function rr(r){r=function(r,e){return Math.ceil(r/e)*e}(r,65536);var e=br(65536,r);return e?(function(r,e){g.fill(0,r,r+e)}(e,r),e):0}var er={ops_table:null,mount:function(r){return er.createNode(null,\"/\",16895,0)},createNode:function(r,e,t,n){if(tr.isBlkdev(t)||tr.isFIFO(t))throw new tr.ErrnoError(63);er.ops_table||(er.ops_table={dir:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr,lookup:er.node_ops.lookup,mknod:er.node_ops.mknod,rename:er.node_ops.rename,unlink:er.node_ops.unlink,rmdir:er.node_ops.rmdir,readdir:er.node_ops.readdir,symlink:er.node_ops.symlink},stream:{llseek:er.stream_ops.llseek}},file:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr},stream:{llseek:er.stream_ops.llseek,read:er.stream_ops.read,write:er.stream_ops.write,allocate:er.stream_ops.allocate,mmap:er.stream_ops.mmap,msync:er.stream_ops.msync}},link:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr,readlink:er.node_ops.readlink},stream:{}},chrdev:{node:{getattr:er.node_ops.getattr,setattr:er.node_ops.setattr},stream:tr.chrdev_stream_ops}});var o=tr.createNode(r,e,t,n);return tr.isDir(o.mode)?(o.node_ops=er.ops_table.dir.node,o.stream_ops=er.ops_table.dir.stream,o.contents={}):tr.isFile(o.mode)?(o.node_ops=er.ops_table.file.node,o.stream_ops=er.ops_table.file.stream,o.usedBytes=0,o.contents=null):tr.isLink(o.mode)?(o.node_ops=er.ops_table.link.node,o.stream_ops=er.ops_table.link.stream):tr.isChrdev(o.mode)&&(o.node_ops=er.ops_table.chrdev.node,o.stream_ops=er.ops_table.chrdev.stream),o.timestamp=Date.now(),r&&(r.contents[e]=o,r.timestamp=o.timestamp),o},getFileDataAsTypedArray:function(r){return r.contents?r.contents.subarray?r.contents.subarray(0,r.usedBytes):new Uint8Array(r.contents):new Uint8Array(0)},expandFileStorage:function(r,e){var t=r.contents?r.contents.length:0;if(!(t>=e)){e=Math.max(e,t*(t<1048576?2:1.125)>>>0),0!=t&&(e=Math.max(e,256));var n=r.contents;r.contents=new Uint8Array(e),r.usedBytes>0&&r.contents.set(n.subarray(0,r.usedBytes),0)}},resizeFileStorage:function(r,e){if(r.usedBytes!=e)if(0==e)r.contents=null,r.usedBytes=0;else{var t=r.contents;r.contents=new Uint8Array(e),t&&r.contents.set(t.subarray(0,Math.min(e,r.usedBytes))),r.usedBytes=e}},node_ops:{getattr:function(r){var e={};return e.dev=tr.isChrdev(r.mode)?r.id:1,e.ino=r.id,e.mode=r.mode,e.nlink=1,e.uid=0,e.gid=0,e.rdev=r.rdev,tr.isDir(r.mode)?e.size=4096:tr.isFile(r.mode)?e.size=r.usedBytes:tr.isLink(r.mode)?e.size=r.link.length:e.size=0,e.atime=new Date(r.timestamp),e.mtime=new Date(r.timestamp),e.ctime=new Date(r.timestamp),e.blksize=4096,e.blocks=Math.ceil(e.size/e.blksize),e},setattr:function(r,e){void 0!==e.mode&&(r.mode=e.mode),void 0!==e.timestamp&&(r.timestamp=e.timestamp),void 0!==e.size&&er.resizeFileStorage(r,e.size)},lookup:function(r,e){throw tr.genericErrors[44]},mknod:function(r,e,t,n){return er.createNode(r,e,t,n)},rename:function(r,e,t){if(tr.isDir(r.mode)){var n;try{n=tr.lookupNode(e,t)}catch(r){}if(n)for(var o in n.contents)throw new tr.ErrnoError(55)}delete r.parent.contents[r.name],r.parent.timestamp=Date.now(),r.name=t,e.contents[t]=r,e.timestamp=r.parent.timestamp,r.parent=e},unlink:function(r,e){delete r.contents[e],r.timestamp=Date.now()},rmdir:function(r,e){var t=tr.lookupNode(r,e);for(var n in t.contents)throw new tr.ErrnoError(55);delete r.contents[e],r.timestamp=Date.now()},readdir:function(r){var e=[\".\",\"..\"];for(var t in r.contents)r.contents.hasOwnProperty(t)&&e.push(t);return e},symlink:function(r,e,t){var n=er.createNode(r,e,41471,0);return n.link=t,n},readlink:function(r){if(!tr.isLink(r.mode))throw new tr.ErrnoError(28);return r.link}},stream_ops:{read:function(r,e,t,n,o){var i=r.node.contents;if(o>=r.node.usedBytes)return 0;var a=Math.min(r.node.usedBytes-o,n);if(a>8&&i.subarray)e.set(i.subarray(o,o+a),t);else for(var s=0;s<a;s++)e[t+s]=i[o+s];return a},write:function(r,e,t,n,o,i){if(e.buffer===E.buffer&&(i=!1),!n)return 0;var a=r.node;if(a.timestamp=Date.now(),e.subarray&&(!a.contents||a.contents.subarray)){if(i)return a.contents=e.subarray(t,t+n),a.usedBytes=n,n;if(0===a.usedBytes&&0===o)return a.contents=e.slice(t,t+n),a.usedBytes=n,n;if(o+n<=a.usedBytes)return a.contents.set(e.subarray(t,t+n),o),n}if(er.expandFileStorage(a,o+n),a.contents.subarray&&e.subarray)a.contents.set(e.subarray(t,t+n),o);else for(var s=0;s<n;s++)a.contents[o+s]=e[t+s];return a.usedBytes=Math.max(a.usedBytes,o+n),n},llseek:function(r,e,t){var n=e;if(1===t?n+=r.position:2===t&&tr.isFile(r.node.mode)&&(n+=r.node.usedBytes),n<0)throw new tr.ErrnoError(28);return n},allocate:function(r,e,t){er.expandFileStorage(r.node,e+t),r.node.usedBytes=Math.max(r.node.usedBytes,e+t)},mmap:function(r,e,t,n,o,i){if(0!==e)throw new tr.ErrnoError(28);if(!tr.isFile(r.node.mode))throw new tr.ErrnoError(43);var a,s,u=r.node.contents;if(2&i||u.buffer!==y){if((n>0||n+t<u.length)&&(u=u.subarray?u.subarray(n,n+t):Array.prototype.slice.call(u,n,n+t)),s=!0,!(a=rr(t)))throw new tr.ErrnoError(48);E.set(u,a)}else s=!1,a=u.byteOffset;return{ptr:a,allocated:s}},msync:function(r,e,t,n,o){if(!tr.isFile(r.node.mode))throw new tr.ErrnoError(43);return 2&o||er.stream_ops.write(r,e,0,n,t,!1),0}}};var tr={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:\"/\",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:(r,e={})=>{if(!(r=Q.resolve(tr.cwd(),r)))return{path:\"\",node:null};var t={follow_mount:!0,recurse_count:0};for(var n in t)void 0===e[n]&&(e[n]=t[n]);if(e.recurse_count>8)throw new tr.ErrnoError(32);for(var o=$.normalizeArray(r.split(\"/\").filter((r=>!!r)),!1),i=tr.root,a=\"/\",s=0;s<o.length;s++){var u=s===o.length-1;if(u&&e.parent)break;if(i=tr.lookupNode(i,o[s]),a=$.join2(a,o[s]),tr.isMountpoint(i)&&(!u||u&&e.follow_mount)&&(i=i.mounted.root),!u||e.follow)for(var c=0;tr.isLink(i.mode);){var l=tr.readlink(a);if(a=Q.resolve($.dirname(a),l),i=tr.lookupPath(a,{recurse_count:e.recurse_count}).node,c++>40)throw new tr.ErrnoError(32)}}return{path:a,node:i}},getPath:r=>{for(var e;;){if(tr.isRoot(r)){var t=r.mount.mountpoint;return e?\"/\"!==t[t.length-1]?t+\"/\"+e:t+e:t}e=e?r.name+\"/\"+e:r.name,r=r.parent}},hashName:(r,e)=>{for(var t=0,n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return(r+t>>>0)%tr.nameTable.length},hashAddNode:r=>{var e=tr.hashName(r.parent.id,r.name);r.name_next=tr.nameTable[e],tr.nameTable[e]=r},hashRemoveNode:r=>{var e=tr.hashName(r.parent.id,r.name);if(tr.nameTable[e]===r)tr.nameTable[e]=r.name_next;else for(var t=tr.nameTable[e];t;){if(t.name_next===r){t.name_next=r.name_next;break}t=t.name_next}},lookupNode:(r,e)=>{var t=tr.mayLookup(r);if(t)throw new tr.ErrnoError(t,r);for(var n=tr.hashName(r.id,e),o=tr.nameTable[n];o;o=o.name_next){var i=o.name;if(o.parent.id===r.id&&i===e)return o}return tr.lookup(r,e)},createNode:(r,e,t,n)=>{var o=new tr.FSNode(r,e,t,n);return tr.hashAddNode(o),o},destroyNode:r=>{tr.hashRemoveNode(r)},isRoot:r=>r===r.parent,isMountpoint:r=>!!r.mounted,isFile:r=>32768==(61440&r),isDir:r=>16384==(61440&r),isLink:r=>40960==(61440&r),isChrdev:r=>8192==(61440&r),isBlkdev:r=>24576==(61440&r),isFIFO:r=>4096==(61440&r),isSocket:r=>49152==(49152&r),flagModes:{r:0,\"r+\":2,w:577,\"w+\":578,a:1089,\"a+\":1090},modeStringToFlags:r=>{var e=tr.flagModes[r];if(void 0===e)throw new Error(\"Unknown file open mode: \"+r);return e},flagsToPermissionString:r=>{var e=[\"r\",\"w\",\"rw\"][3&r];return 512&r&&(e+=\"w\"),e},nodePermissions:(r,e)=>tr.ignorePermissions||(!e.includes(\"r\")||292&r.mode)&&(!e.includes(\"w\")||146&r.mode)&&(!e.includes(\"x\")||73&r.mode)?0:2,mayLookup:r=>{var e=tr.nodePermissions(r,\"x\");return e||(r.node_ops.lookup?0:2)},mayCreate:(r,e)=>{try{tr.lookupNode(r,e);return 20}catch(r){}return tr.nodePermissions(r,\"wx\")},mayDelete:(r,e,t)=>{var n;try{n=tr.lookupNode(r,e)}catch(r){return r.errno}var o=tr.nodePermissions(r,\"wx\");if(o)return o;if(t){if(!tr.isDir(n.mode))return 54;if(tr.isRoot(n)||tr.getPath(n)===tr.cwd())return 10}else if(tr.isDir(n.mode))return 31;return 0},mayOpen:(r,e)=>r?tr.isLink(r.mode)?32:tr.isDir(r.mode)&&(\"r\"!==tr.flagsToPermissionString(e)||512&e)?31:tr.nodePermissions(r,tr.flagsToPermissionString(e)):44,MAX_OPEN_FDS:4096,nextfd:(r=0,e=tr.MAX_OPEN_FDS)=>{for(var t=r;t<=e;t++)if(!tr.streams[t])return t;throw new tr.ErrnoError(33)},getStream:r=>tr.streams[r],createStream:(r,e,t)=>{tr.FSStream||(tr.FSStream=function(){},tr.FSStream.prototype={object:{get:function(){return this.node},set:function(r){this.node=r}},isRead:{get:function(){return 1!=(2097155&this.flags)}},isWrite:{get:function(){return 0!=(2097155&this.flags)}},isAppend:{get:function(){return 1024&this.flags}}}),r=Object.assign(new tr.FSStream,r);var n=tr.nextfd(e,t);return r.fd=n,tr.streams[n]=r,r},closeStream:r=>{tr.streams[r]=null},chrdev_stream_ops:{open:r=>{var e=tr.getDevice(r.node.rdev);r.stream_ops=e.stream_ops,r.stream_ops.open&&r.stream_ops.open(r)},llseek:()=>{throw new tr.ErrnoError(70)}},major:r=>r>>8,minor:r=>255&r,makedev:(r,e)=>r<<8|e,registerDevice:(r,e)=>{tr.devices[r]={stream_ops:e}},getDevice:r=>tr.devices[r],getMounts:r=>{for(var e=[],t=[r];t.length;){var n=t.pop();e.push(n),t.push.apply(t,n.mounts)}return e},syncfs:(r,e)=>{\"function\"==typeof r&&(e=r,r=!1),tr.syncFSRequests++,tr.syncFSRequests>1&&f(\"warning: \"+tr.syncFSRequests+\" FS.syncfs operations in flight at once, probably just doing extra work\");var t=tr.getMounts(tr.root.mount),n=0;function o(r){return tr.syncFSRequests--,e(r)}function i(r){if(r)return i.errored?void 0:(i.errored=!0,o(r));++n>=t.length&&o(null)}t.forEach((e=>{if(!e.type.syncfs)return i(null);e.type.syncfs(e,r,i)}))},mount:(r,e,t)=>{var n,o=\"/\"===t,i=!t;if(o&&tr.root)throw new tr.ErrnoError(10);if(!o&&!i){var a=tr.lookupPath(t,{follow_mount:!1});if(t=a.path,n=a.node,tr.isMountpoint(n))throw new tr.ErrnoError(10);if(!tr.isDir(n.mode))throw new tr.ErrnoError(54)}var s={type:r,opts:e,mountpoint:t,mounts:[]},u=r.mount(s);return u.mount=s,s.root=u,o?tr.root=u:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),u},unmount:r=>{var e=tr.lookupPath(r,{follow_mount:!1});if(!tr.isMountpoint(e.node))throw new tr.ErrnoError(28);var t=e.node,n=t.mounted,o=tr.getMounts(n);Object.keys(tr.nameTable).forEach((r=>{for(var e=tr.nameTable[r];e;){var t=e.name_next;o.includes(e.mount)&&tr.destroyNode(e),e=t}})),t.mounted=null;var i=t.mount.mounts.indexOf(n);t.mount.mounts.splice(i,1)},lookup:(r,e)=>r.node_ops.lookup(r,e),mknod:(r,e,t)=>{var n=tr.lookupPath(r,{parent:!0}).node,o=$.basename(r);if(!o||\".\"===o||\"..\"===o)throw new tr.ErrnoError(28);var i=tr.mayCreate(n,o);if(i)throw new tr.ErrnoError(i);if(!n.node_ops.mknod)throw new tr.ErrnoError(63);return n.node_ops.mknod(n,o,e,t)},create:(r,e)=>(e=void 0!==e?e:438,e&=4095,e|=32768,tr.mknod(r,e,0)),mkdir:(r,e)=>(e=void 0!==e?e:511,e&=1023,e|=16384,tr.mknod(r,e,0)),mkdirTree:(r,e)=>{for(var t=r.split(\"/\"),n=\"\",o=0;o<t.length;++o)if(t[o]){n+=\"/\"+t[o];try{tr.mkdir(n,e)}catch(r){if(20!=r.errno)throw r}}},mkdev:(r,e,t)=>(void 0===t&&(t=e,e=438),e|=8192,tr.mknod(r,e,t)),symlink:(r,e)=>{if(!Q.resolve(r))throw new tr.ErrnoError(44);var t=tr.lookupPath(e,{parent:!0}).node;if(!t)throw new tr.ErrnoError(44);var n=$.basename(e),o=tr.mayCreate(t,n);if(o)throw new tr.ErrnoError(o);if(!t.node_ops.symlink)throw new tr.ErrnoError(63);return t.node_ops.symlink(t,n,r)},rename:(r,e)=>{var t,n,o=$.dirname(r),i=$.dirname(e),a=$.basename(r),s=$.basename(e);if(t=tr.lookupPath(r,{parent:!0}).node,n=tr.lookupPath(e,{parent:!0}).node,!t||!n)throw new tr.ErrnoError(44);if(t.mount!==n.mount)throw new tr.ErrnoError(75);var u,c=tr.lookupNode(t,a),l=Q.relative(r,i);if(\".\"!==l.charAt(0))throw new tr.ErrnoError(28);if(\".\"!==(l=Q.relative(e,o)).charAt(0))throw new tr.ErrnoError(55);try{u=tr.lookupNode(n,s)}catch(r){}if(c!==u){var d=tr.isDir(c.mode),f=tr.mayDelete(t,a,d);if(f)throw new tr.ErrnoError(f);if(f=u?tr.mayDelete(n,s,d):tr.mayCreate(n,s))throw new tr.ErrnoError(f);if(!t.node_ops.rename)throw new tr.ErrnoError(63);if(tr.isMountpoint(c)||u&&tr.isMountpoint(u))throw new tr.ErrnoError(10);if(n!==t&&(f=tr.nodePermissions(t,\"w\")))throw new tr.ErrnoError(f);tr.hashRemoveNode(c);try{t.node_ops.rename(c,n,s)}catch(r){throw r}finally{tr.hashAddNode(c)}}},rmdir:r=>{var e=tr.lookupPath(r,{parent:!0}).node,t=$.basename(r),n=tr.lookupNode(e,t),o=tr.mayDelete(e,t,!0);if(o)throw new tr.ErrnoError(o);if(!e.node_ops.rmdir)throw new tr.ErrnoError(63);if(tr.isMountpoint(n))throw new tr.ErrnoError(10);e.node_ops.rmdir(e,t),tr.destroyNode(n)},readdir:r=>{var e=tr.lookupPath(r,{follow:!0}).node;if(!e.node_ops.readdir)throw new tr.ErrnoError(54);return e.node_ops.readdir(e)},unlink:r=>{var e=tr.lookupPath(r,{parent:!0}).node;if(!e)throw new tr.ErrnoError(44);var t=$.basename(r),n=tr.lookupNode(e,t),o=tr.mayDelete(e,t,!1);if(o)throw new tr.ErrnoError(o);if(!e.node_ops.unlink)throw new tr.ErrnoError(63);if(tr.isMountpoint(n))throw new tr.ErrnoError(10);e.node_ops.unlink(e,t),tr.destroyNode(n)},readlink:r=>{var e=tr.lookupPath(r).node;if(!e)throw new tr.ErrnoError(44);if(!e.node_ops.readlink)throw new tr.ErrnoError(28);return Q.resolve(tr.getPath(e.parent),e.node_ops.readlink(e))},stat:(r,e)=>{var t=tr.lookupPath(r,{follow:!e}).node;if(!t)throw new tr.ErrnoError(44);if(!t.node_ops.getattr)throw new tr.ErrnoError(63);return t.node_ops.getattr(t)},lstat:r=>tr.stat(r,!0),chmod:(r,e,t)=>{var n;\"string\"==typeof r?n=tr.lookupPath(r,{follow:!t}).node:n=r;if(!n.node_ops.setattr)throw new tr.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&e|-4096&n.mode,timestamp:Date.now()})},lchmod:(r,e)=>{tr.chmod(r,e,!0)},fchmod:(r,e)=>{var t=tr.getStream(r);if(!t)throw new tr.ErrnoError(8);tr.chmod(t.node,e)},chown:(r,e,t,n)=>{var o;\"string\"==typeof r?o=tr.lookupPath(r,{follow:!n}).node:o=r;if(!o.node_ops.setattr)throw new tr.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:(r,e,t)=>{tr.chown(r,e,t,!0)},fchown:(r,e,t)=>{var n=tr.getStream(r);if(!n)throw new tr.ErrnoError(8);tr.chown(n.node,e,t)},truncate:(r,e)=>{if(e<0)throw new tr.ErrnoError(28);var t;\"string\"==typeof r?t=tr.lookupPath(r,{follow:!0}).node:t=r;if(!t.node_ops.setattr)throw new tr.ErrnoError(63);if(tr.isDir(t.mode))throw new tr.ErrnoError(31);if(!tr.isFile(t.mode))throw new tr.ErrnoError(28);var n=tr.nodePermissions(t,\"w\");if(n)throw new tr.ErrnoError(n);t.node_ops.setattr(t,{size:e,timestamp:Date.now()})},ftruncate:(r,e)=>{var t=tr.getStream(r);if(!t)throw new tr.ErrnoError(8);if(0==(2097155&t.flags))throw new tr.ErrnoError(28);tr.truncate(t.node,e)},utime:(r,e,t)=>{var n=tr.lookupPath(r,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(e,t)})},open:(r,e,t,n,i)=>{if(\"\"===r)throw new tr.ErrnoError(44);var a;if(t=void 0===t?438:t,t=64&(e=\"string\"==typeof e?tr.modeStringToFlags(e):e)?4095&t|32768:0,\"object\"==typeof r)a=r;else{r=$.normalize(r);try{a=tr.lookupPath(r,{follow:!(131072&e)}).node}catch(r){}}var s=!1;if(64&e)if(a){if(128&e)throw new tr.ErrnoError(20)}else a=tr.mknod(r,t,0),s=!0;if(!a)throw new tr.ErrnoError(44);if(tr.isChrdev(a.mode)&&(e&=-513),65536&e&&!tr.isDir(a.mode))throw new tr.ErrnoError(54);if(!s){var u=tr.mayOpen(a,e);if(u)throw new tr.ErrnoError(u)}512&e&&tr.truncate(a,0),e&=-131713;var c=tr.createStream({node:a,path:tr.getPath(a),flags:e,seekable:!0,position:0,stream_ops:a.stream_ops,ungotten:[],error:!1},n,i);return c.stream_ops.open&&c.stream_ops.open(c),!o.logReadFiles||1&e||(tr.readFiles||(tr.readFiles={}),r in tr.readFiles||(tr.readFiles[r]=1)),c},close:r=>{if(tr.isClosed(r))throw new tr.ErrnoError(8);r.getdents&&(r.getdents=null);try{r.stream_ops.close&&r.stream_ops.close(r)}catch(r){throw r}finally{tr.closeStream(r.fd)}r.fd=null},isClosed:r=>null===r.fd,llseek:(r,e,t)=>{if(tr.isClosed(r))throw new tr.ErrnoError(8);if(!r.seekable||!r.stream_ops.llseek)throw new tr.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new tr.ErrnoError(28);return r.position=r.stream_ops.llseek(r,e,t),r.ungotten=[],r.position},read:(r,e,t,n,o)=>{if(n<0||o<0)throw new tr.ErrnoError(28);if(tr.isClosed(r))throw new tr.ErrnoError(8);if(1==(2097155&r.flags))throw new tr.ErrnoError(8);if(tr.isDir(r.node.mode))throw new tr.ErrnoError(31);if(!r.stream_ops.read)throw new tr.ErrnoError(28);var i=void 0!==o;if(i){if(!r.seekable)throw new tr.ErrnoError(70)}else o=r.position;var a=r.stream_ops.read(r,e,t,n,o);return i||(r.position+=a),a},write:(r,e,t,n,o,i)=>{if(n<0||o<0)throw new tr.ErrnoError(28);if(tr.isClosed(r))throw new tr.ErrnoError(8);if(0==(2097155&r.flags))throw new tr.ErrnoError(8);if(tr.isDir(r.node.mode))throw new tr.ErrnoError(31);if(!r.stream_ops.write)throw new tr.ErrnoError(28);r.seekable&&1024&r.flags&&tr.llseek(r,0,2);var a=void 0!==o;if(a){if(!r.seekable)throw new tr.ErrnoError(70)}else o=r.position;var s=r.stream_ops.write(r,e,t,n,o,i);return a||(r.position+=s),s},allocate:(r,e,t)=>{if(tr.isClosed(r))throw new tr.ErrnoError(8);if(e<0||t<=0)throw new tr.ErrnoError(28);if(0==(2097155&r.flags))throw new tr.ErrnoError(8);if(!tr.isFile(r.node.mode)&&!tr.isDir(r.node.mode))throw new tr.ErrnoError(43);if(!r.stream_ops.allocate)throw new tr.ErrnoError(138);r.stream_ops.allocate(r,e,t)},mmap:(r,e,t,n,o,i)=>{if(0!=(2&o)&&0==(2&i)&&2!=(2097155&r.flags))throw new tr.ErrnoError(2);if(1==(2097155&r.flags))throw new tr.ErrnoError(2);if(!r.stream_ops.mmap)throw new tr.ErrnoError(43);return r.stream_ops.mmap(r,e,t,n,o,i)},msync:(r,e,t,n,o)=>r&&r.stream_ops.msync?r.stream_ops.msync(r,e,t,n,o):0,munmap:r=>0,ioctl:(r,e,t)=>{if(!r.stream_ops.ioctl)throw new tr.ErrnoError(59);return r.stream_ops.ioctl(r,e,t)},readFile:(r,e={})=>{if(e.flags=e.flags||0,e.encoding=e.encoding||\"binary\",\"utf8\"!==e.encoding&&\"binary\"!==e.encoding)throw new Error('Invalid encoding type \"'+e.encoding+'\"');var t,n=tr.open(r,e.flags),o=tr.stat(r).size,i=new Uint8Array(o);return tr.read(n,i,0,o,0),\"utf8\"===e.encoding?t=P(i,0):\"binary\"===e.encoding&&(t=i),tr.close(n),t},writeFile:(r,e,t={})=>{t.flags=t.flags||577;var n=tr.open(r,t.flags,t.mode);if(\"string\"==typeof e){var o=new Uint8Array(M(e)+1),i=F(e,o,0,o.length);tr.write(n,o,0,i,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(e))throw new Error(\"Unsupported data type\");tr.write(n,e,0,e.byteLength,void 0,t.canOwn)}tr.close(n)},cwd:()=>tr.currentPath,chdir:r=>{var e=tr.lookupPath(r,{follow:!0});if(null===e.node)throw new tr.ErrnoError(44);if(!tr.isDir(e.node.mode))throw new tr.ErrnoError(54);var t=tr.nodePermissions(e.node,\"x\");if(t)throw new tr.ErrnoError(t);tr.currentPath=e.path},createDefaultDirectories:()=>{tr.mkdir(\"/tmp\"),tr.mkdir(\"/home\"),tr.mkdir(\"/home/web_user\")},createDefaultDevices:()=>{tr.mkdir(\"/dev\"),tr.registerDevice(tr.makedev(1,3),{read:()=>0,write:(r,e,t,n,o)=>n}),tr.mkdev(\"/dev/null\",tr.makedev(1,3)),Z.register(tr.makedev(5,0),Z.default_tty_ops),Z.register(tr.makedev(6,0),Z.default_tty1_ops),tr.mkdev(\"/dev/tty\",tr.makedev(5,0)),tr.mkdev(\"/dev/tty1\",tr.makedev(6,0));var r=function(){if(\"object\"==typeof crypto&&\"function\"==typeof crypto.getRandomValues){var r=new Uint8Array(1);return function(){return crypto.getRandomValues(r),r[0]}}return function(){L(\"randomDevice\")}}();tr.createDevice(\"/dev\",\"random\",r),tr.createDevice(\"/dev\",\"urandom\",r),tr.mkdir(\"/dev/shm\"),tr.mkdir(\"/dev/shm/tmp\")},createSpecialDirectories:()=>{tr.mkdir(\"/proc\");var r=tr.mkdir(\"/proc/self\");tr.mkdir(\"/proc/self/fd\"),tr.mount({mount:()=>{var e=tr.createNode(r,\"fd\",16895,73);return e.node_ops={lookup:(r,e)=>{var t=+e,n=tr.getStream(t);if(!n)throw new tr.ErrnoError(8);var o={parent:null,mount:{mountpoint:\"fake\"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},e}},{},\"/proc/self/fd\")},createStandardStreams:()=>{o.stdin?tr.createDevice(\"/dev\",\"stdin\",o.stdin):tr.symlink(\"/dev/tty\",\"/dev/stdin\"),o.stdout?tr.createDevice(\"/dev\",\"stdout\",null,o.stdout):tr.symlink(\"/dev/tty\",\"/dev/stdout\"),o.stderr?tr.createDevice(\"/dev\",\"stderr\",null,o.stderr):tr.symlink(\"/dev/tty1\",\"/dev/stderr\"),tr.open(\"/dev/stdin\",0),tr.open(\"/dev/stdout\",1),tr.open(\"/dev/stderr\",1)},ensureErrnoError:()=>{tr.ErrnoError||(tr.ErrnoError=function(r,e){this.node=e,this.setErrno=function(r){this.errno=r},this.setErrno(r),this.message=\"FS error\"},tr.ErrnoError.prototype=new Error,tr.ErrnoError.prototype.constructor=tr.ErrnoError,[44].forEach((r=>{tr.genericErrors[r]=new tr.ErrnoError(r),tr.genericErrors[r].stack=\"<generic error, no stack>\"})))},staticInit:()=>{tr.ensureErrnoError(),tr.nameTable=new Array(4096),tr.mount(er,{},\"/\"),tr.createDefaultDirectories(),tr.createDefaultDevices(),tr.createSpecialDirectories(),tr.filesystems={MEMFS:er}},init:(r,e,t)=>{tr.init.initialized=!0,tr.ensureErrnoError(),o.stdin=r||o.stdin,o.stdout=e||o.stdout,o.stderr=t||o.stderr,tr.createStandardStreams()},quit:()=>{tr.init.initialized=!1;for(var r=0;r<tr.streams.length;r++){var e=tr.streams[r];e&&tr.close(e)}},getMode:(r,e)=>{var t=0;return r&&(t|=365),e&&(t|=146),t},findObject:(r,e)=>{var t=tr.analyzePath(r,e);return t.exists?t.object:null},analyzePath:(r,e)=>{try{r=(n=tr.lookupPath(r,{follow:!e})).path}catch(r){}var t={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=tr.lookupPath(r,{parent:!0});t.parentExists=!0,t.parentPath=n.path,t.parentObject=n.node,t.name=$.basename(r),n=tr.lookupPath(r,{follow:!e}),t.exists=!0,t.path=n.path,t.object=n.node,t.name=n.node.name,t.isRoot=\"/\"===n.path}catch(r){t.error=r.errno}return t},createPath:(r,e,t,n)=>{r=\"string\"==typeof r?r:tr.getPath(r);for(var o=e.split(\"/\").reverse();o.length;){var i=o.pop();if(i){var a=$.join2(r,i);try{tr.mkdir(a)}catch(r){}r=a}}return a},createFile:(r,e,t,n,o)=>{var i=$.join2(\"string\"==typeof r?r:tr.getPath(r),e),a=tr.getMode(n,o);return tr.create(i,a)},createDataFile:(r,e,t,n,o,i)=>{var a=e;r&&(r=\"string\"==typeof r?r:tr.getPath(r),a=e?$.join2(r,e):r);var s=tr.getMode(n,o),u=tr.create(a,s);if(t){if(\"string\"==typeof t){for(var c=new Array(t.length),l=0,d=t.length;l<d;++l)c[l]=t.charCodeAt(l);t=c}tr.chmod(u,146|s);var f=tr.open(u,577);tr.write(f,t,0,t.length,0,i),tr.close(f),tr.chmod(u,s)}return u},createDevice:(r,e,t,n)=>{var o=$.join2(\"string\"==typeof r?r:tr.getPath(r),e),i=tr.getMode(!!t,!!n);tr.createDevice.major||(tr.createDevice.major=64);var a=tr.makedev(tr.createDevice.major++,0);return tr.registerDevice(a,{open:r=>{r.seekable=!1},close:r=>{n&&n.buffer&&n.buffer.length&&n(10)},read:(r,e,n,o,i)=>{for(var a=0,s=0;s<o;s++){var u;try{u=t()}catch(r){throw new tr.ErrnoError(29)}if(void 0===u&&0===a)throw new tr.ErrnoError(6);if(null==u)break;a++,e[n+s]=u}return a&&(r.node.timestamp=Date.now()),a},write:(r,e,t,o,i)=>{for(var a=0;a<o;a++)try{n(e[t+a])}catch(r){throw new tr.ErrnoError(29)}return o&&(r.node.timestamp=Date.now()),a}}),tr.mkdev(o,i,a)},forceLoadFile:r=>{if(r.isDevice||r.isFolder||r.link||r.contents)return!0;if(\"undefined\"!=typeof XMLHttpRequest)throw new Error(\"Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.\");if(!i)throw new Error(\"Cannot load without read() or XMLHttpRequest.\");try{r.contents=dr(i(r.url),!0),r.usedBytes=r.contents.length}catch(r){throw new tr.ErrnoError(29)}},createLazyFile:(r,e,t,n,o)=>{function i(){this.lengthKnown=!1,this.chunks=[]}if(i.prototype.get=function(r){if(!(r>this.length-1||r<0)){var e=r%this.chunkSize,t=r/this.chunkSize|0;return this.getter(t)[e]}},i.prototype.setDataGetter=function(r){this.getter=r},i.prototype.cacheLength=function(){var r=new XMLHttpRequest;if(r.open(\"HEAD\",t,!1),r.send(null),!(r.status>=200&&r.status<300||304===r.status))throw new Error(\"Couldn't load \"+t+\". Status: \"+r.status);var e,n=Number(r.getResponseHeader(\"Content-length\")),o=(e=r.getResponseHeader(\"Accept-Ranges\"))&&\"bytes\"===e,i=(e=r.getResponseHeader(\"Content-Encoding\"))&&\"gzip\"===e,a=1048576;o||(a=n);var s=this;s.setDataGetter((r=>{var e=r*a,o=(r+1)*a-1;if(o=Math.min(o,n-1),void 0===s.chunks[r]&&(s.chunks[r]=((r,e)=>{if(r>e)throw new Error(\"invalid range (\"+r+\", \"+e+\") or no bytes requested!\");if(e>n-1)throw new Error(\"only \"+n+\" bytes available! programmer error!\");var o=new XMLHttpRequest;if(o.open(\"GET\",t,!1),n!==a&&o.setRequestHeader(\"Range\",\"bytes=\"+r+\"-\"+e),o.responseType=\"arraybuffer\",o.overrideMimeType&&o.overrideMimeType(\"text/plain; charset=x-user-defined\"),o.send(null),!(o.status>=200&&o.status<300||304===o.status))throw new Error(\"Couldn't load \"+t+\". Status: \"+o.status);return void 0!==o.response?new Uint8Array(o.response||[]):dr(o.responseText||\"\",!0)})(e,o)),void 0===s.chunks[r])throw new Error(\"doXHR failed!\");return s.chunks[r]})),!i&&n||(a=n=1,n=this.getter(0).length,a=n,d(\"LazyFiles on gzip forces download of the whole file when length is accessed\")),this._length=n,this._chunkSize=a,this.lengthKnown=!0},\"undefined\"!=typeof XMLHttpRequest)throw\"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc\";var a={isDevice:!1,url:t},s=tr.createFile(r,e,a,n,o);a.contents?s.contents=a.contents:a.url&&(s.contents=null,s.url=a.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var u={};return Object.keys(s.stream_ops).forEach((r=>{var e=s.stream_ops[r];u[r]=function(){return tr.forceLoadFile(s),e.apply(null,arguments)}})),u.read=(r,e,t,n,o)=>{tr.forceLoadFile(s);var i=r.node.contents;if(o>=i.length)return 0;var a=Math.min(i.length-o,n);if(i.slice)for(var u=0;u<a;u++)e[t+u]=i[o+u];else for(u=0;u<a;u++)e[t+u]=i.get(o+u);return a},s.stream_ops=u,s},createPreloadedFile:(r,e,t,n,o,i,s,u,c,l)=>{var d=e?Q.resolve($.join2(r,e)):r;function f(t){function a(t){l&&l(),u||tr.createDataFile(r,e,t,n,o,c),i&&i(),O()}Browser.handledByPreloadPlugin(t,d,a,(()=>{s&&s(),O()}))||a(t)}N(),\"string\"==typeof t?function(r,e,t,n){var o=n?\"\":\"al \"+r;a(r,(function(t){_(t,'Loading data file \"'+r+'\" failed (no arrayBuffer).'),e(new Uint8Array(t)),o&&O()}),(function(e){if(!t)throw'Loading data file \"'+r+'\" failed.';t()})),o&&N()}(t,(r=>f(r)),s):f(t)},indexedDB:()=>window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,DB_NAME:()=>\"EM_FS_\"+window.location.pathname,DB_VERSION:20,DB_STORE_NAME:\"FILE_DATA\",saveFilesToDB:(r,e,t)=>{e=e||(()=>{}),t=t||(()=>{});var n=tr.indexedDB();try{var o=n.open(tr.DB_NAME(),tr.DB_VERSION)}catch(r){return t(r)}o.onupgradeneeded=()=>{d(\"creating db\"),o.result.createObjectStore(tr.DB_STORE_NAME)},o.onsuccess=()=>{var n=o.result.transaction([tr.DB_STORE_NAME],\"readwrite\"),i=n.objectStore(tr.DB_STORE_NAME),a=0,s=0,u=r.length;function c(){0==s?e():t()}r.forEach((r=>{var e=i.put(tr.analyzePath(r).object.contents,r);e.onsuccess=()=>{++a+s==u&&c()},e.onerror=()=>{s++,a+s==u&&c()}})),n.onerror=t},o.onerror=t},loadFilesFromDB:(r,e,t)=>{e=e||(()=>{}),t=t||(()=>{});var n=tr.indexedDB();try{var o=n.open(tr.DB_NAME(),tr.DB_VERSION)}catch(r){return t(r)}o.onupgradeneeded=t,o.onsuccess=()=>{var n=o.result;try{var i=n.transaction([tr.DB_STORE_NAME],\"readonly\")}catch(r){return void t(r)}var a=i.objectStore(tr.DB_STORE_NAME),s=0,u=0,c=r.length;function l(){0==u?e():t()}r.forEach((r=>{var e=a.get(r);e.onsuccess=()=>{tr.analyzePath(r).exists&&tr.unlink(r),tr.createDataFile($.dirname(r),$.basename(r),e.result,!0,!0,!0),++s+u==c&&l()},e.onerror=()=>{u++,s+u==c&&l()}})),i.onerror=t},o.onerror=t}},nr={DEFAULT_POLLMASK:5,calculateAt:function(r,e,t){if(\"/\"===e[0])return e;var n;if(-100===r)n=tr.cwd();else{var o=tr.getStream(r);if(!o)throw new tr.ErrnoError(8);n=o.path}if(0==e.length){if(!t)throw new tr.ErrnoError(44);return n}return $.join2(n,e)},doStat:function(r,e,t){try{var n=r(e)}catch(r){if(r&&r.node&&$.normalize(e)!==$.normalize(tr.getPath(r.node)))return-54;throw r}return k[t>>2]=n.dev,k[t+4>>2]=0,k[t+8>>2]=n.ino,k[t+12>>2]=n.mode,k[t+16>>2]=n.nlink,k[t+20>>2]=n.uid,k[t+24>>2]=n.gid,k[t+28>>2]=n.rdev,k[t+32>>2]=0,G=[n.size>>>0,(H=n.size,+Math.abs(H)>=1?H>0?(0|Math.min(+Math.floor(H/4294967296),4294967295))>>>0:~~+Math.ceil((H-+(~~H>>>0))/4294967296)>>>0:0)],k[t+40>>2]=G[0],k[t+44>>2]=G[1],k[t+48>>2]=4096,k[t+52>>2]=n.blocks,k[t+56>>2]=n.atime.getTime()/1e3|0,k[t+60>>2]=0,k[t+64>>2]=n.mtime.getTime()/1e3|0,k[t+68>>2]=0,k[t+72>>2]=n.ctime.getTime()/1e3|0,k[t+76>>2]=0,G=[n.ino>>>0,(H=n.ino,+Math.abs(H)>=1?H>0?(0|Math.min(+Math.floor(H/4294967296),4294967295))>>>0:~~+Math.ceil((H-+(~~H>>>0))/4294967296)>>>0:0)],k[t+80>>2]=G[0],k[t+84>>2]=G[1],0},doMsync:function(r,e,t,n,o){var i=g.slice(r,r+t);tr.msync(e,i,o,t,n)},doMkdir:function(r,e){return\"/\"===(r=$.normalize(r))[r.length-1]&&(r=r.substr(0,r.length-1)),tr.mkdir(r,e,0),0},doMknod:function(r,e,t){switch(61440&e){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return tr.mknod(r,e,t),0},doReadlink:function(r,e,t){if(t<=0)return-28;var n=tr.readlink(r),o=Math.min(t,M(n)),i=E[e+o];return F(n,g,e,t+1),E[e+o]=i,o},doAccess:function(r,e){if(-8&e)return-28;var t=tr.lookupPath(r,{follow:!0}).node;if(!t)return-44;var n=\"\";return 4&e&&(n+=\"r\"),2&e&&(n+=\"w\"),1&e&&(n+=\"x\"),n&&tr.nodePermissions(t,n)?-2:0},doDup:function(r,e,t){var n=tr.getStream(t);return n&&tr.close(n),tr.open(r,e,0,t,t).fd},doReadv:function(r,e,t,n){for(var o=0,i=0;i<t;i++){var a=k[e+8*i>>2],s=k[e+(8*i+4)>>2],u=tr.read(r,E,a,s,n);if(u<0)return-1;if(o+=u,u<s)break}return o},doWritev:function(r,e,t,n){for(var o=0,i=0;i<t;i++){var a=k[e+8*i>>2],s=k[e+(8*i+4)>>2],u=tr.write(r,E,a,s,n);if(u<0)return-1;o+=u}return o},varargs:void 0,get:function(){return nr.varargs+=4,k[nr.varargs-4>>2]},getStr:function(r){return x(r)},getStreamFromFD:function(r){var e=tr.getStream(r);if(!e)throw new tr.ErrnoError(8);return e},get64:function(r,e){return r}};var or=[];function ir(r){try{return m.grow(r-y.byteLength+65535>>>16),R(m.buffer),1}catch(r){}}var ar={};function sr(){if(!sr.strings){var r={USER:\"web_user\",LOGNAME:\"web_user\",PATH:\"/\",PWD:\"/\",HOME:\"/home/web_user\",LANG:(\"object\"==typeof navigator&&navigator.languages&&navigator.languages[0]||\"C\").replace(\"-\",\"_\")+\".UTF-8\",_:u||\"./this.program\"};for(var e in ar)void 0===ar[e]?delete r[e]:r[e]=ar[e];var t=[];for(var e in r)t.push(e+\"=\"+r[e]);sr.strings=t}return sr.strings}var ur=function(r,e,t,n){r||(r=this),this.parent=r,this.mount=r.mount,this.mounted=null,this.id=tr.nextInode++,this.name=e,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n},cr=365,lr=146;function dr(r,e,t){var n=t>0?t:M(r)+1,o=new Array(n),i=F(r,o,0,o.length);return e&&(o.length=i),o}Object.defineProperties(ur.prototype,{read:{get:function(){return(this.mode&cr)===cr},set:function(r){r?this.mode|=cr:this.mode&=-366}},write:{get:function(){return(this.mode&lr)===lr},set:function(r){r?this.mode|=lr:this.mode&=-147}},isFolder:{get:function(){return tr.isDir(this.mode)}},isDevice:{get:function(){return tr.isChrdev(this.mode)}}}),tr.FSNode=ur,tr.staticInit();var fr={s:function(r,e){return function(r,e){var t;if(0===r)t=Date.now();else{if(1!==r&&4!==r)return K(28),-1;t=V()}return k[e>>2]=t/1e3|0,k[e+4>>2]=t%1e3*1e3*1e3|0,0}(r,e)},j:function(r,e,t,n){try{return e=nr.getStr(e),e=nr.calculateAt(r,e),nr.doAccess(e,t)}catch(r){if(void 0===tr||!(r instanceof tr.ErrnoError))throw r;return-r.errno}},i:function(r,e,t){nr.varargs=t;try{var n=nr.getStreamFromFD(r);switch(e){case 0:return(o=nr.get())<0?-28:tr.open(n.path,n.flags,0,o).fd;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:var o=nr.get();return n.flags|=o,0;case 5:o=nr.get();return b[o+0>>1]=2,0;case 16:case 8:default:return-28;case 9:return K(28),-1}}catch(r){if(void 0===tr||!(r instanceof tr.ErrnoError))throw r;return-r.errno}},z:function(r,e){try{var t=nr.getStreamFromFD(r);return nr.doStat(tr.stat,t.path,e)}catch(r){if(void 0===tr||!(r instanceof tr.ErrnoError))throw r;return-r.errno}},x:function(r,e,t,n){try{e=nr.getStr(e);var o=256&n,i=4096&n;return n&=-4353,e=nr.calculateAt(r,e,i),nr.doStat(o?tr.lstat:tr.stat,e,t)}catch(r){if(void 0===tr||!(r instanceof tr.ErrnoError))throw r;return-r.errno}},A:function(r,e,t){nr.varargs=t;try{var n=nr.getStreamFromFD(r);switch(e){case 21509:case 21505:case 21510:case 21511:case 21512:case 21506:case 21507:case 21508:case 21523:case 21524:return n.tty?0:-59;case 21519:if(!n.tty)return-59;var o=nr.get();return k[o>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:o=nr.get();return tr.ioctl(n,e,o);default:L(\"bad ioctl syscall \"+e)}}catch(r){if(void 0===tr||!(r instanceof tr.ErrnoError))throw r;return-r.errno}},d:function(r,e,t){nr.varargs=t;try{var n=nr.getStr(r),o=t?nr.get():0;return tr.open(n,e,o).fd}catch(r){if(void 0===tr||!(r instanceof tr.ErrnoError))throw r;return-r.errno}},y:function(r,e){try{return r=nr.getStr(r),nr.doStat(tr.stat,r,e)}catch(r){if(void 0===tr||!(r instanceof tr.ErrnoError))throw r;return-r.errno}},r:function(r){try{return r=nr.getStr(r),tr.unlink(r),0}catch(r){if(void 0===tr||!(r instanceof tr.ErrnoError))throw r;return-r.errno}},p:function(){throw 1/0},t:function(r,e,t,n,o,i,a,s){try{var u=tr.getStream(o);if(!u)return-8;var c=tr.mmap(u,r,e,i,t,n),l=c.ptr;return k[a>>2]=c.allocated,l}catch(r){if(void 0===tr||!(r instanceof tr.ErrnoError))throw r;return-r.errno}},u:function(r,e,t,n,o,i){try{var a=tr.getStream(o);a&&(2&t&&nr.doMsync(r,a,e,n,i),tr.munmap(a))}catch(r){if(void 0===tr||!(r instanceof tr.ErrnoError))throw r;return-r.errno}},o:function(){L(\"\")},C:function(r,e,t){var n=function(r,e){var t;for(or.length=0,e>>=2;t=g[r++];){var n=t<105;n&&1&e&&e++,or.push(n?D[e++>>1]:k[e]),++e}return or}(e,t);return J[r].apply(null,n)},B:function(r,e,t){g.copyWithin(r,e,e+t)},q:function(r){var e,t,n=g.length,o=2147483648;if((r>>>=0)>o)return!1;for(var i=1;i<=4;i*=2){var a=n*(1+.2/i);if(a=Math.min(a,r+100663296),ir(Math.min(o,(e=Math.max(r,a))+((t=65536)-e%t)%t)))return!0}return!1},v:function(r,e){var t=0;return sr().forEach((function(n,o){var i=e+t;k[r+4*o>>2]=i,function(r,e,t){for(var n=0;n<r.length;++n)E[e++>>0]=r.charCodeAt(n);t||(E[e>>0]=0)}(n,i),t+=n.length+1})),0},w:function(r,e){var t=sr();k[r>>2]=t.length;var n=0;return t.forEach((function(r){n+=r.length+1})),k[e>>2]=n,0},e:function(r){!function(r,e){!function(r){v||(o.onExit&&o.onExit(r),w=!0);c(r,new Ar(r))}(r)}(r)},c:function(r){try{var e=nr.getStreamFromFD(r);return tr.close(e),0}catch(r){if(void 0===tr||!(r instanceof tr.ErrnoError))throw r;return r.errno}},g:function(r,e,t,n){try{var o=nr.getStreamFromFD(r),i=nr.doReadv(o,e,t);return k[n>>2]=i,0}catch(r){if(void 0===tr||!(r instanceof tr.ErrnoError))throw r;return r.errno}},n:function(r,e,t,n,o){try{var i=nr.getStreamFromFD(r),a=4294967296*t+(e>>>0),s=9007199254740992;return a<=-s||a>=s?-61:(tr.llseek(i,a,n),G=[i.position>>>0,(H=i.position,+Math.abs(H)>=1?H>0?(0|Math.min(+Math.floor(H/4294967296),4294967295))>>>0:~~+Math.ceil((H-+(~~H>>>0))/4294967296)>>>0:0)],k[o>>2]=G[0],k[o+4>>2]=G[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0)}catch(r){if(void 0===tr||!(r instanceof tr.ErrnoError))throw r;return r.errno}},h:function(r,e,t,n){try{var o=nr.getStreamFromFD(r),i=nr.doWritev(o,e,t);return k[n>>2]=i,0}catch(r){if(void 0===tr||!(r instanceof tr.ErrnoError))throw r;return r.errno}},b:function(){return h},k:function(r){var e=Date.now();return k[r>>2]=e/1e3|0,k[r+4>>2]=e%1e3*1e3|0,0},l:function(r,e,t,n,o,i,a){var s=Dr();try{return Y(r)(e,t,n,o,i,a)}catch(r){if(Sr(s),r!==r+0)throw r;kr(1,0)}},m:function(r,e){var t=Dr();try{Y(r)(e)}catch(r){if(Sr(t),r!==r+0)throw r;kr(1,0)}},a:function(r){h=r},f:function(r){var e=Date.now()/1e3|0;return r&&(k[r>>2]=e),e}};!function(){var r={a:fr};function e(r,e){var t,n=r.exports;o.asm=n,R((m=o.asm.D).buffer),S=o.asm.M,t=o.asm.E,j.unshift(t),O()}function t(r){e(r.instance)}function i(e){return(p||\"function\"!=typeof fetch?Promise.resolve().then((function(){return W(I)})):fetch(I,{credentials:\"same-origin\"}).then((function(r){if(!r.ok)throw\"failed to load wasm binary file at '\"+I+\"'\";return r.arrayBuffer()})).catch((function(){return W(I)}))).then((function(e){return WebAssembly.instantiate(e,r)})).then((function(r){return r})).then(e,(function(r){f(\"failed to asynchronously prepare wasm: \"+r),L(r)}))}if(N(),o.instantiateWasm)try{return o.instantiateWasm(r,e)}catch(r){return f(\"Module.instantiateWasm callback failed with error: \"+r),!1}(p||\"function\"!=typeof WebAssembly.instantiateStreaming||q(I)||\"function\"!=typeof fetch?i(t):fetch(I,{credentials:\"same-origin\"}).then((function(e){return WebAssembly.instantiateStreaming(e,r).then(t,(function(r){return f(\"wasm streaming compile failed: \"+r),f(\"falling back to ArrayBuffer instantiation\"),i(t)}))}))).catch(n)}(),o.___wasm_call_ctors=function(){return(o.___wasm_call_ctors=o.asm.E).apply(null,arguments)};var pr=o._emscripten_bind_VoidPtr___destroy___0=function(){return(pr=o._emscripten_bind_VoidPtr___destroy___0=o.asm.F).apply(null,arguments)},hr=o._emscripten_bind_Graphviz_Graphviz_2=function(){return(hr=o._emscripten_bind_Graphviz_Graphviz_2=o.asm.G).apply(null,arguments)},mr=o._emscripten_bind_Graphviz_version_0=function(){return(mr=o._emscripten_bind_Graphviz_version_0=o.asm.H).apply(null,arguments)},vr=o._emscripten_bind_Graphviz_lastError_0=function(){return(vr=o._emscripten_bind_Graphviz_lastError_0=o.asm.I).apply(null,arguments)},wr=o._emscripten_bind_Graphviz_layout_3=function(){return(wr=o._emscripten_bind_Graphviz_layout_3=o.asm.J).apply(null,arguments)},_r=o._emscripten_bind_Graphviz_createFile_2=function(){return(_r=o._emscripten_bind_Graphviz_createFile_2=o.asm.K).apply(null,arguments)},yr=o._emscripten_bind_Graphviz___destroy___0=function(){return(yr=o._emscripten_bind_Graphviz___destroy___0=o.asm.L).apply(null,arguments)};o._malloc=function(){return(o._malloc=o.asm.N).apply(null,arguments)},o._free=function(){return(o._free=o.asm.O).apply(null,arguments)};var Er,gr=o.___errno_location=function(){return(gr=o.___errno_location=o.asm.P).apply(null,arguments)},br=o._emscripten_builtin_memalign=function(){return(br=o._emscripten_builtin_memalign=o.asm.Q).apply(null,arguments)},kr=o._setThrew=function(){return(kr=o._setThrew=o.asm.R).apply(null,arguments)},Dr=o.stackSave=function(){return(Dr=o.stackSave=o.asm.S).apply(null,arguments)},Sr=o.stackRestore=function(){return(Sr=o.stackRestore=o.asm.T).apply(null,arguments)};function Ar(r){this.name=\"ExitStatus\",this.message=\"Program terminated with exit(\"+r+\")\",this.status=r}function Pr(r){function e(){Er||(Er=!0,o.calledRun=!0,w||(o.noFSInit||tr.init.initialized||tr.init(),tr.ignorePermissions=!1,X(j),t(o),o.onRuntimeInitialized&&o.onRuntimeInitialized(),function(){if(o.postRun)for(\"function\"==typeof o.postRun&&(o.postRun=[o.postRun]);o.postRun.length;)r=o.postRun.shift(),z.unshift(r);var r;X(z)}()))}T>0||(!function(){if(o.preRun)for(\"function\"==typeof o.preRun&&(o.preRun=[o.preRun]);o.preRun.length;)r=o.preRun.shift(),C.unshift(r);var r;X(C)}(),T>0||(o.setStatus?(o.setStatus(\"Running...\"),setTimeout((function(){setTimeout((function(){o.setStatus(\"\")}),1),e()}),1)):e()))}if(B=function r(){Er||Pr(),Er||(B=r)},o.run=Pr,o.preInit)for(\"function\"==typeof o.preInit&&(o.preInit=[o.preInit]);o.preInit.length>0;)o.preInit.pop()();function xr(){}function Fr(r){return(r||xr).__cache__}function Mr(r,e){var t=Fr(e),n=t[r];return n||((n=Object.create((e||xr).prototype)).ptr=r,t[r]=n)}Pr(),xr.prototype=Object.create(xr.prototype),xr.prototype.constructor=xr,xr.prototype.__class__=xr,xr.__cache__={},o.WrapperObject=xr,o.getCache=Fr,o.wrapPointer=Mr,o.castObject=function(r,e){return Mr(r.ptr,e)},o.NULL=Mr(0),o.destroy=function(r){if(!r.__destroy__)throw\"Error: Cannot destroy object. (Did you create it yourself?)\";r.__destroy__(),delete Fr(r.__class__)[r.ptr]},o.compare=function(r,e){return r.ptr===e.ptr},o.getPointer=function(r){return r.ptr},o.getClass=function(r){return r.__class__};var Rr={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(Rr.needed){for(var r=0;r<Rr.temps.length;r++)o._free(Rr.temps[r]);Rr.temps.length=0,o._free(Rr.buffer),Rr.buffer=0,Rr.size+=Rr.needed,Rr.needed=0}Rr.buffer||(Rr.size+=128,Rr.buffer=o._malloc(Rr.size),_(Rr.buffer)),Rr.pos=0},alloc:function(r,e){_(Rr.buffer);var t,n=e.BYTES_PER_ELEMENT,i=r.length*n;return i=i+7&-8,Rr.pos+i>=Rr.size?(_(i>0),Rr.needed+=i,t=o._malloc(i),Rr.temps.push(t)):(t=Rr.buffer+Rr.pos,Rr.pos+=i),t},copy:function(r,e,t){switch(t>>>=0,e.BYTES_PER_ELEMENT){case 2:t>>>=1;break;case 4:t>>>=2;break;case 8:t>>>=3}for(var n=0;n<r.length;n++)e[t+n]=r[n]}};function Cr(r){if(\"string\"==typeof r){var e=dr(r),t=Rr.alloc(e,E);return Rr.copy(e,E,t),t}return r}function jr(){throw\"cannot construct a VoidPtr, no constructor in IDL\"}function zr(r,e){r&&\"object\"==typeof r&&(r=r.ptr),e&&\"object\"==typeof e&&(e=e.ptr),this.ptr=hr(r,e),Fr(zr)[this.ptr]=this}return jr.prototype=Object.create(xr.prototype),jr.prototype.constructor=jr,jr.prototype.__class__=jr,jr.__cache__={},o.VoidPtr=jr,jr.prototype.__destroy__=jr.prototype.__destroy__=function(){var r=this.ptr;pr(r)},zr.prototype=Object.create(xr.prototype),zr.prototype.constructor=zr,zr.prototype.__class__=zr,zr.__cache__={},o.Graphviz=zr,zr.prototype.version=zr.prototype.version=function(){var r=this.ptr;return x(mr(r))},zr.prototype.lastError=zr.prototype.lastError=function(){var r=this.ptr;return x(vr(r))},zr.prototype.layout=zr.prototype.layout=function(r,e,t){var n=this.ptr;return Rr.prepare(),r=r&&\"object\"==typeof r?r.ptr:Cr(r),e=e&&\"object\"==typeof e?e.ptr:Cr(e),t=t&&\"object\"==typeof t?t.ptr:Cr(t),x(wr(n,r,e,t))},zr.prototype.createFile=zr.prototype.createFile=function(r,e){var t=this.ptr;Rr.prepare(),r=r&&\"object\"==typeof r?r.ptr:Cr(r),e=e&&\"object\"==typeof e?e.ptr:Cr(e),_r(t,r,e)},zr.prototype.__destroy__=zr.prototype.__destroy__=function(){var r=this.ptr;yr(r)},e.ready}})();r.exports=t}(u);var c=u.exports,l=Object.freeze(e({__proto__:null,default:c},[u.exports])),d=function(){return d=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},d.apply(this,arguments)},f=function(r,e,t){if(t||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return r.concat(n||Array.prototype.slice.call(e))};function p(r){return{path:r.path,data:'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\\n<svg width=\"'.concat(r.width,'\" height=\"').concat(r.height,'\"></svg>')}}function h(r,e){var t,n=d({images:[],files:[]},e);f(f([],n.files,!0),(t=n.images,t.map(p)),!0).forEach((function(e){return r.createFile(e.path,e.data)}))}var m={layout:function(r,e,t,n){return void 0===e&&(e=\"svg\"),void 0===t&&(t=\"dot\"),r?s(l,null==n?void 0:n.wasmFolder,null==n?void 0:n.wasmBinary).then((function(o){var i=new o.Graphviz(void 0!==(null==n?void 0:n.yInvert)&&(null==n?void 0:n.yInvert),void 0!==(null==n?void 0:n.nop)?null==n?void 0:n.nop:0);h(i,n);var a=i.layout(r,e,t);if(o.destroy(i),!a)throw new Error(o.Graphviz.prototype.lastError());return a})):Promise.resolve(\"\")},circo:function(r,e,t){return void 0===e&&(e=\"svg\"),this.layout(r,e,\"circo\",t)},dot:function(r,e,t){return void 0===e&&(e=\"svg\"),this.layout(r,e,\"dot\",t)},fdp:function(r,e,t){return void 0===e&&(e=\"svg\"),this.layout(r,e,\"fdp\",t)},sfdp:function(r,e,t){return void 0===e&&(e=\"svg\"),this.layout(r,e,\"sfdp\",t)},neato:function(r,e,t){return void 0===e&&(e=\"svg\"),this.layout(r,e,\"neato\",t)},osage:function(r,e,t){return void 0===e&&(e=\"svg\"),this.layout(r,e,\"osage\",t)},patchwork:function(r,e,t){return void 0===e&&(e=\"svg\"),this.layout(r,e,\"patchwork\",t)},twopi:function(r,e,t){return void 0===e&&(e=\"svg\"),this.layout(r,e,\"twopi\",t)}},v=\"undefined\"!=typeof globalThis?globalThis:\"undefined\"!=typeof window?window:\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:{};var w={exports:{}};\n/*!\n * @overview es6-promise - a tiny implementation of Promises/A+.\n * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)\n * @license Licensed under MIT license\n * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE\n * @version v4.2.8+1e68dce6\n */function _(r){return void 0!==r.children}!function(r,e){r.exports=function(){function r(r){var e=typeof r;return null!==r&&(\"object\"===e||\"function\"===e)}function e(r){return\"function\"==typeof r}var t=Array.isArray?Array.isArray:function(r){return\"[object Array]\"===Object.prototype.toString.call(r)},n=0,o=void 0,i=void 0,a=function(r,e){E[n]=r,E[n+1]=e,2===(n+=2)&&(i?i(g):k())};function s(r){i=r}function u(r){a=r}var c=\"undefined\"!=typeof window?window:void 0,l=c||{},d=l.MutationObserver||l.WebKitMutationObserver,f=\"undefined\"==typeof self&&\"undefined\"!=typeof process&&\"[object process]\"==={}.toString.call(process),p=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function h(){return function(){return process.nextTick(g)}}function m(){return void 0!==o?function(){o(g)}:y()}function w(){var r=0,e=new d(g),t=document.createTextNode(\"\");return e.observe(t,{characterData:!0}),function(){t.data=r=++r%2}}function _(){var r=new MessageChannel;return r.port1.onmessage=g,function(){return r.port2.postMessage(0)}}function y(){var r=setTimeout;return function(){return r(g,1)}}var E=new Array(1e3);function g(){for(var r=0;r<n;r+=2)(0,E[r])(E[r+1]),E[r]=void 0,E[r+1]=void 0;n=0}function b(){try{var r=Function(\"return this\")().require(\"vertx\");return o=r.runOnLoop||r.runOnContext,m()}catch(r){return y()}}var k=void 0;function D(r,e){var t=this,n=new this.constructor(P);void 0===n[A]&&J(n);var o=t._state;if(o){var i=arguments[o-1];a((function(){return G(o,n,i,t._result)}))}else U(t,n,r,e);return n}function S(r){var e=this;if(r&&\"object\"==typeof r&&r.constructor===e)return r;var t=new e(P);return N(t,r),t}k=f?h():d?w():p?_():void 0===c?b():y();var A=Math.random().toString(36).substring(2);function P(){}var x=void 0,F=1,M=2;function R(){return new TypeError(\"You cannot resolve a promise with itself\")}function C(){return new TypeError(\"A promises callback cannot return that same promise.\")}function j(r,e,t,n){try{r.call(e,t,n)}catch(r){return r}}function z(r,e,t){a((function(r){var n=!1,o=j(t,e,(function(t){n||(n=!0,e!==t?N(r,t):L(r,t))}),(function(e){n||(n=!0,I(r,e))}),\"Settle: \"+(r._label||\" unknown promise\"));!n&&o&&(n=!0,I(r,o))}),r)}function T(r,e){e._state===F?L(r,e._result):e._state===M?I(r,e._result):U(e,void 0,(function(e){return N(r,e)}),(function(e){return I(r,e)}))}function B(r,t,n){t.constructor===r.constructor&&n===D&&t.constructor.resolve===S?T(r,t):void 0===n?L(r,t):e(n)?z(r,t,n):L(r,t)}function N(e,t){if(e===t)I(e,R());else if(r(t)){var n=void 0;try{n=t.then}catch(r){return void I(e,r)}B(e,t,n)}else L(e,t)}function O(r){r._onerror&&r._onerror(r._result),H(r)}function L(r,e){r._state===x&&(r._result=e,r._state=F,0!==r._subscribers.length&&a(H,r))}function I(r,e){r._state===x&&(r._state=M,r._result=e,a(O,r))}function U(r,e,t,n){var o=r._subscribers,i=o.length;r._onerror=null,o[i]=e,o[i+F]=t,o[i+M]=n,0===i&&r._state&&a(H,r)}function H(r){var e=r._subscribers,t=r._state;if(0!==e.length){for(var n=void 0,o=void 0,i=r._result,a=0;a<e.length;a+=3)n=e[a],o=e[a+t],n?G(t,n,o,i):o(i);r._subscribers.length=0}}function G(r,t,n,o){var i=e(n),a=void 0,s=void 0,u=!0;if(i){try{a=n(o)}catch(r){u=!1,s=r}if(t===a)return void I(t,C())}else a=o;t._state!==x||(i&&u?N(t,a):!1===u?I(t,s):r===F?L(t,a):r===M&&I(t,a))}function q(r,e){try{e((function(e){N(r,e)}),(function(e){I(r,e)}))}catch(e){I(r,e)}}var W=0;function V(){return W++}function J(r){r[A]=W++,r._state=void 0,r._result=void 0,r._subscribers=[]}function X(){return new Error(\"Array Methods must be provided an Array\")}var Y=function(){function r(r,e){this._instanceConstructor=r,this.promise=new r(P),this.promise[A]||J(this.promise),t(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?L(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&L(this.promise,this._result))):I(this.promise,X())}return r.prototype._enumerate=function(r){for(var e=0;this._state===x&&e<r.length;e++)this._eachEntry(r[e],e)},r.prototype._eachEntry=function(r,e){var t=this._instanceConstructor,n=t.resolve;if(n===S){var o=void 0,i=void 0,a=!1;try{o=r.then}catch(r){a=!0,i=r}if(o===D&&r._state!==x)this._settledAt(r._state,e,r._result);else if(\"function\"!=typeof o)this._remaining--,this._result[e]=r;else if(t===er){var s=new t(P);a?I(s,i):B(s,r,o),this._willSettleAt(s,e)}else this._willSettleAt(new t((function(e){return e(r)})),e)}else this._willSettleAt(n(r),e)},r.prototype._settledAt=function(r,e,t){var n=this.promise;n._state===x&&(this._remaining--,r===M?I(n,t):this._result[e]=t),0===this._remaining&&L(n,this._result)},r.prototype._willSettleAt=function(r,e){var t=this;U(r,void 0,(function(r){return t._settledAt(F,e,r)}),(function(r){return t._settledAt(M,e,r)}))},r}();function K(r){return new Y(this,r).promise}function $(r){var e=this;return t(r)?new e((function(t,n){for(var o=r.length,i=0;i<o;i++)e.resolve(r[i]).then(t,n)})):new e((function(r,e){return e(new TypeError(\"You must pass an array to race.\"))}))}function Q(r){var e=new this(P);return I(e,r),e}function Z(){throw new TypeError(\"You must pass a resolver function as the first argument to the promise constructor\")}function rr(){throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\")}var er=function(){function r(e){this[A]=V(),this._result=this._state=void 0,this._subscribers=[],P!==e&&(\"function\"!=typeof e&&Z(),this instanceof r?q(this,e):rr())}return r.prototype.catch=function(r){return this.then(null,r)},r.prototype.finally=function(r){var t=this,n=t.constructor;return e(r)?t.then((function(e){return n.resolve(r()).then((function(){return e}))}),(function(e){return n.resolve(r()).then((function(){throw e}))})):t.then(r,r)},r}();function tr(){var r=void 0;if(void 0!==v)r=v;else if(\"undefined\"!=typeof self)r=self;else try{r=Function(\"return this\")()}catch(r){throw new Error(\"polyfill failed because global object is unavailable in this environment\")}var e=r.Promise;if(e){var t=null;try{t=Object.prototype.toString.call(e.resolve())}catch(r){}if(\"[object Promise]\"===t&&!e.cast)return}r.Promise=er}return er.prototype.then=D,er.all=K,er.race=$,er.resolve=S,er.reject=Q,er._setScheduler=s,er._setAsap=u,er._asap=a,er.polyfill=tr,er.Promise=er,er}()}(w),w.exports.polyfill();var y=function(r){var e=[];return r.children.forEach((function(r){_(r)?e.push(y(r)):e.push(E(r))})),\"subgraph cluster_\".concat(r.id,' {\\nid=\"').concat(r.id,'\";\\nlabel=\"').concat(r.text,'\";\\nmargin=16;\\n').concat(e.join(\"\\n\"),\"\\n}\")},E=function(r){return\"\".concat(r.id,' [id=\"').concat(r.id,'\" label=\"').concat(r.text,'\" width=').concat(k(r.width),\" height=\").concat(k(r.height),\"]\")},g=function(r){return 96*r/72},b=function(r){return 96*r},k=function(r){return r/96};function D(r){var e=r?r.split(\",\").map((function(r){return g(+r)})):[0,0,0,0],t=e[0],n=e[1],o=e[2]-t,i=e[3]-n;return{x:t-o/2,y:n-i/2,width:o,height:i}}function S(r,e){var t=r.split(\",\").map((function(r){return g(+r)})),n=t[0],o=t[1];return{x:-n+e.width,y:-o+e.height}}function A(r,e,t){return void 0===t&&(t=\"json\"),m[r](e,t).then((function(r){return\"json\"===t?JSON.parse(r):r}))}function P(e,t){if(self.document=self.document||{currentScript:{src:t.wasmFolder+\"/dummy.js\"}},e.raw)return A(t.engine,e.raw,\"svg\");var n={},o=[],i=[],a={},s=[],u=[],c={},l=[],d=[];function f(r,e){_(r)?(n[r.id]=r,o.push(r),r.children.forEach((function(r){return f(r,!1)})),e&&i.push(y(r))):(a[r.id]=r,s.push(r),e&&u.push(E(r)))}return e.items.forEach((function(r){return f(r,!0)})),e.links.forEach((function(r){var e,t,n,o;c[r.id]=r,l.push(r),d.push((e=r.source.id,t=r.target.id,n=r.id,o=r.text,\"\".concat(e,\" -> \").concat(t,' [id=\"').concat(n,'\", label=\"').concat(o,'\"]')))})),A(t.engine,\"digraph G {\\n graph [fontname=Verdana,fontsize=11.0];\\n graph [rankdir=TB];\\n node [shape=rect,fontname=Verdana,fontsize=11.0,fixedsize=true];\\n edge [fontname=Verdana,fontsize=11.0];\\n\\n\".concat(i.join(\"\\n\"),\"\\n\\n\").concat(d.join(\"\\n\"),\"\\n\\n\").concat(u.join(\"\\n\"),\"\\n}\")).then((function(e){var t=D(e.bb);return e.objects&&e.objects.forEach((function(r){if(r.nodes){var e=function(r,e){var t=D(r);return{x:-t.x+e.width,y:-t.y+e.height,width:t.width,height:t.height}}(r.bb,t),o=n[r.id];o.x=e.x-t.width/2,o.y=e.y-t.height/2,o.width=e.width,o.height=e.height}else{var i=(u=r.pos,c=r.width,l=r.height,d=S(u,t),f=b(+c),p=b(+l),{x:d.x,y:d.y,width:f,height:p}),s=a[r.id];s&&(s.x=i.x-t.width/2,s.y=i.y-t.height/2)}var u,c,l,d,f,p})),e.edges&&e.edges.forEach((function(e){var n=c[e.id];n&&(n.points=function(e,t){if(e.pos){var n=e.pos.substr(2).split(\" \").map((function(r){return S(r,t)})).map((function(r){return[r.x-t.width/2,r.y-t.height/2]})),o=n.shift();return r(r([],n,!0),[o],!1)}return[]}(e,t))})),{clusters:o,nodes:s,links:l}}))}self.onmessage=function(r){P.apply(void 0,r.data).then((function(r){self.postMessage(r)}))}}();";
|
|
7363
7363
|
var workerBlob = new Blob([workerCode], { type: "application/javascript" });
|
|
7364
7364
|
var workerUrl = URL.createObjectURL(workerBlob);
|
|
7365
7365
|
var worker = new Worker(workerUrl);
|
|
@@ -8601,9 +8601,7 @@
|
|
|
8601
8601
|
var vp = _this._graphData.item(item.id);
|
|
8602
8602
|
return {
|
|
8603
8603
|
_id: vp.id,
|
|
8604
|
-
element: function () {
|
|
8605
|
-
return vp.element;
|
|
8606
|
-
}
|
|
8604
|
+
element: function () { return vp.element; }
|
|
8607
8605
|
};
|
|
8608
8606
|
}));
|
|
8609
8607
|
return this;
|