mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-19 15:41:30 +08:00
10 lines
242 KiB
JavaScript
10 lines
242 KiB
JavaScript
//* Licensed under the BSD license
|
|
//* Copyright (C) 2012 Felix Kling felix.kling@gmx.net
|
|
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.jsnx=e()}}(function(){return function e(t,r,n){function a(o,u){if(!r[o]){if(!t[o]){var s="function"==typeof require&&require;if(!u&&s)return s(o,!0);if(i)return i(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[o]={exports:{}};t[o][0].call(c.exports,function(e){var r=t[o][1][e];return a(r?r:e)},c,c.exports,e,t,r,n)}return r[o].exports}for(var i="function"==typeof require&&require,o=0;o<n.length;o++)a(n[o]);return a}({1:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]={workerPath:"jsnetworkx.js"},t.exports=r["default"]},{}],2:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0});var a=e("lodash/collection/shuffle"),i=n(a),o=e("lodash/collection/sample"),u=n(o);r["default"]={shuffle:i["default"],sample:u["default"]},t.exports=r["default"]},{"babel-runtime/helpers/interop-require-default":107,"lodash/collection/sample":170,"lodash/collection/shuffle":171}],3:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/create-class")["default"],a=e("babel-runtime/helpers/class-call-check")["default"],i=e("babel-runtime/helpers/sliced-to-array")["default"],o=e("babel-runtime/core-js/object/create")["default"],u=e("babel-runtime/core-js/get-iterator")["default"],s=e("babel-runtime/regenerator")["default"],l=e("babel-runtime/core-js/symbol/iterator")["default"],c=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0});var f=e("./clear"),d=c(f),h=e("./isIterable"),p=c(h),v=e("lodash/lang/isFunction"),b=c(v),g=e("lodash/lang/isObject"),y=c(g),m=e("./isArrayLike"),w=c(m),x=e("lodash/collection/size"),k=c(x),j=function(){function e(t){if(a(this,e),this._stringValues=o(null),this._numberValues=o(null),this._values=o(null),this._keys=o(null),null!=t)if(p["default"](t)){var r=!0,n=!1,s=void 0;try{for(var l,c=u(t);!(r=(l=c.next()).done);r=!0){var f=i(l.value,2),d=f[0],h=f[1];this.set(d,h)}}catch(v){n=!0,s=v}finally{try{!r&&c["return"]&&c["return"]()}finally{if(n)throw s}}}else if(w["default"](t))for(var b=0;b<t.length;b++){var g=i(t[b],2),d=g[0],h=g[1];this.set(d,h)}else if(y["default"](t))for(var d in t)this.set(isNaN(+d)?d:+d,t[d])}return n(e,[{key:"_getStorage",value:function(e){switch(typeof e){case"number":return this._numberValues;case"string":return this._stringValues;default:return this._values}}},{key:"get",value:function(e,t){var r=this._getStorage(e);return e in r?r[e]:t}},{key:"has",value:function(e){return e in this._getStorage(e)}},{key:"set",value:function(e,t){var r=this._getStorage(e);return r[e]=t,r===this._values&&(this._keys[e]=e),this}},{key:"delete",value:function(e){var t=this._getStorage(e);return e in t?(delete t[e],t===this._values&&delete this._keys[e],!0):!1}},{key:"entries",value:s.mark(function t(){var e;return s.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=s.keys(this._numberValues);case 1:if((t.t1=t.t0()).done){t.next=7;break}return e=t.t1.value,t.next=5,[+e,this._numberValues[e]];case 5:t.next=1;break;case 7:t.t2=s.keys(this._stringValues);case 8:if((t.t3=t.t2()).done){t.next=14;break}return e=t.t3.value,t.next=12,[e,this._stringValues[e]];case 12:t.next=8;break;case 14:t.t4=s.keys(this._values);case 15:if((t.t5=t.t4()).done){t.next=21;break}return e=t.t5.value,t.next=19,[this._keys[e],this._values[e]];case 19:t.next=15;break;case 21:case"end":return t.stop()}},t,this)})},{key:"keys",value:s.mark(function r(){var e;return s.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=s.keys(this._numberValues);case 1:if((t.t1=t.t0()).done){t.next=7;break}return e=t.t1.value,t.next=5,+e;case 5:t.next=1;break;case 7:t.t2=s.keys(this._stringValues);case 8:if((t.t3=t.t2()).done){t.next=14;break}return e=t.t3.value,t.next=12,e;case 12:t.next=8;break;case 14:t.t4=s.keys(this._values);case 15:if((t.t5=t.t4()).done){t.next=21;break}return e=t.t5.value,t.next=19,this._keys[e];case 19:t.next=15;break;case 21:case"end":return t.stop()}},r,this)})},{key:"values",value:s.mark(function c(){var e;return s.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=s.keys(this._numberValues);case 1:if((t.t1=t.t0()).done){t.next=7;break}return e=t.t1.value,t.next=5,this._numberValues[e];case 5:t.next=1;break;case 7:t.t2=s.keys(this._stringValues);case 8:if((t.t3=t.t2()).done){t.next=14;break}return e=t.t3.value,t.next=12,this._stringValues[e];case 12:t.next=8;break;case 14:t.t4=s.keys(this._values);case 15:if((t.t5=t.t4()).done){t.next=21;break}return e=t.t5.value,t.next=19,this._values[e];case 19:t.next=15;break;case 21:case"end":return t.stop()}},c,this)})},{key:"clear",value:function(){d["default"](this._stringValues),d["default"](this._numberValues),d["default"](this._values),d["default"](this._keys)}},{key:"forEach",value:function(e,t){if(!b["default"](e))throw new TypeError("callback must be a function");var r=!0,n=!1,a=void 0;try{for(var i,o=u(this.entries());!(r=(i=o.next()).done);r=!0){var s=i.value;e.call(t,s[1],s[0],this)}}catch(l){n=!0,a=l}finally{try{!r&&o["return"]&&o["return"]()}finally{if(n)throw a}}}},{key:l,value:function(){return this.entries()}},{key:"size",get:function(){return k["default"](this._values)+k["default"](this._numberValues)+k["default"](this._stringValues)}}]),e}();r["default"]=j,t.exports=r["default"]},{"./clear":7,"./isArrayLike":21,"./isIterable":24,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/object/create":93,"babel-runtime/core-js/symbol/iterator":100,"babel-runtime/helpers/class-call-check":101,"babel-runtime/helpers/create-class":102,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/sliced-to-array":109,"babel-runtime/regenerator":166,"lodash/collection/size":172,"lodash/lang/isFunction":227,"lodash/lang/isObject":229}],4:[function(e,t,r){"use strict";function n(e,t){return t[0]-e[0]}var a=e("babel-runtime/helpers/create-class")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/sliced-to-array")["default"],u=e("babel-runtime/core-js/get-iterator")["default"];Object.defineProperty(r,"__esModule",{value:!0});var s=function(){function e(t){if(i(this,e),this._values=[],null!=t){var r=!0,a=!1,s=void 0;try{for(var l,c=u(t);!(r=(l=c.next()).done);r=!0){var f=o(l.value,2),d=f[0],h=f[1];this._values.push([d,h])}}catch(p){a=!0,s=p}finally{try{!r&&c["return"]&&c["return"]()}finally{if(a)throw s}}this._values.sort(n)}}return a(e,[{key:"enqueue",value:function(e,t){this._values.push([e,t]),this._values.sort(n)}},{key:"dequeue",value:function(){return this._values.pop()}},{key:"size",get:function(){return this._values.length}}]),e}();r["default"]=s,t.exports=r["default"]},{"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/class-call-check":101,"babel-runtime/helpers/create-class":102,"babel-runtime/helpers/sliced-to-array":109}],5:[function(e,t,r){"use strict";function n(e,t){var r=new v(e),n=!0,a=!1,i=void 0;try{for(var o,s=u(t);!(n=(o=s.next()).done);n=!0){var l=o.value;e.has(l)?r["delete"](l):r.add(l)}}catch(c){a=!0,i=c}finally{try{!n&&s["return"]&&s["return"]()}finally{if(a)throw i}}return r}function a(e,t){var r=new v(e),n=!0,a=!1,i=void 0;try{for(var o,s=u(t);!(n=(o=s.next()).done);n=!0){var l=o.value;r.add(l)}}catch(c){a=!0,i=c}finally{try{!n&&s["return"]&&s["return"]()}finally{if(a)throw i}}return r}var i=e("babel-runtime/helpers/create-class")["default"],o=e("babel-runtime/helpers/class-call-check")["default"],u=e("babel-runtime/core-js/get-iterator")["default"],s=e("babel-runtime/regenerator")["default"],l=e("babel-runtime/core-js/symbol/iterator")["default"],c=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.symmetricDifference=n,r.union=a;var f=e("./Map"),d=c(f),h=e("./toIterator"),p=c(h),v=function(){function e(t){if(o(this,e),this._map=new d["default"],null!=t){var r=!0,n=!1,a=void 0;try{for(var i,s=u(p["default"](t));!(r=(i=s.next()).done);r=!0){var l=i.value;this.add(l)}}catch(c){n=!0,a=c}finally{try{!r&&s["return"]&&s["return"]()}finally{if(n)throw a}}}}return i(e,[{key:"has",value:function(e){return this._map.has(e)}},{key:"add",value:function(e){this._map.set(e,!0)}},{key:"delete",value:function(e){return this._map["delete"](e)}},{key:"values",value:function(){return this._map.keys()}},{key:"keys",value:function(){return this.values()}},{key:"entries",value:s.mark(function t(){var e,r,n,a,i,o;return s.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=!0,r=!1,n=void 0,t.prev=3,a=u(this.values());case 5:if(e=(i=a.next()).done){t.next=12;break}return o=i.value,t.next=9,[o,o];case 9:e=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t["catch"](3),r=!0,n=t.t0;case 18:t.prev=18,t.prev=19,!e&&a["return"]&&a["return"]();case 21:if(t.prev=21,!r){t.next=24;break}throw n;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},t,this,[[3,14,18,26],[19,,21,25]])})},{key:"clear",value:function(){this._map.clear()}},{key:"forEach",value:function(e,t){var r=!0,n=!1,a=void 0;try{for(var i,o=u(this.values());!(r=(i=o.next()).done);r=!0){var s=i.value;e.call(t,s,s,this)}}catch(l){n=!0,a=l}finally{try{!r&&o["return"]&&o["return"]()}finally{if(n)throw a}}}},{key:"difference",value:function(){for(var t=new e(this),r=arguments.length,n=Array(r),a=0;r>a;a++)n[a]=arguments[a];for(var i=0,o=n.length;o>i;i++){var s=!0,l=!1,c=void 0;try{for(var f,d=u(n[i]);!(s=(f=d.next()).done);s=!0){var h=f.value;t["delete"](h)}}catch(p){l=!0,c=p}finally{try{!s&&d["return"]&&d["return"]()}finally{if(l)throw c}}}return t}},{key:"intersection",value:function(){var t=new e,r=!0,n=!1,a=void 0;try{for(var i,o=u(this);!(r=(i=o.next()).done);r=!0){for(var s=i.value,l=arguments.length,c=Array(l),f=0;l>f;f++)c[f]=arguments[f];c.every(function(e){return e.has(s)})&&t.add(s)}}catch(d){n=!0,a=d}finally{try{!r&&o["return"]&&o["return"]()}finally{if(n)throw a}}return t}},{key:"pop",value:function(){try{var e=this.values().next().value;return this["delete"](e),e}catch(t){}}},{key:l,value:function(){return this.values()}},{key:"size",get:function(){return this._map.size}}]),e}();r["default"]=v},{"./Map":3,"./toIterator":39,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/symbol/iterator":100,"babel-runtime/helpers/class-call-check":101,"babel-runtime/helpers/create-class":102,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/regenerator":166}],6:[function(e,t,r){(function(e){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=e.Worker,t.exports=r["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],7:[function(e,t,r){"use strict";function n(e){for(var t in e)delete e[t]}Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n,t.exports=r["default"]},{}],8:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0});var a=e("lodash/lang/clone"),i=n(a);r["default"]=i["default"],t.exports=r["default"]},{"babel-runtime/helpers/interop-require-default":107,"lodash/lang/clone":223}],9:[function(e,t,r){"use strict";function n(e,t,r){var n=function(){};n.prototype=e.constructor.prototype;var i,o,u={};for(i in e)e.hasOwnProperty(i)&&(u[i]=e[i]);u=a(u,t,r),o=new n;for(i in u)o[i]=u[i];return o}function a(e,t,r){return s["default"](e,!0,function(e){if(d["default"](e)||p["default"](e)||c["default"](e)){var a=n(e,t,r);return t.push(e),r.push(a),a}},null,null,t,r)}function i(e){return a(e,[],[])}var o=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=i;var u=e("lodash/internal/baseClone"),s=o(u),l=e("./isGraph"),c=o(l),f=e("./isMap"),d=o(f),h=e("./isSet"),p=o(h);t.exports=r["default"]},{"./isGraph":23,"./isMap":26,"./isSet":28,"babel-runtime/helpers/interop-require-default":107,"lodash/internal/baseClone":179}],10:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0});var a=e("lodash/object/merge"),i=n(a);r["default"]=i["default"],t.exports=r["default"]},{"babel-runtime/helpers/interop-require-default":107,"lodash/object/merge":238}],11:[function(e,t,r){"use strict";function n(e,t){return new a(function(r,n){try{var a=s["default"].methodLookupFunction(e).apply(null,t);c["default"](a)&&(a=i(a)),r(a)}catch(o){n(o)}})}var a=e("babel-runtime/core-js/promise")["default"],i=e("babel-runtime/core-js/array/from")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n;var u=e("../WorkerSettings"),s=o(u),l=e("./isIterator"),c=o(l);t.exports=r["default"]},{"../WorkerSettings":1,"./isIterator":25,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/promise":98,"babel-runtime/helpers/interop-require-default":107}],12:[function(e,t,r){"use strict";function n(e,t){return o(e,t)}var a=e("babel-runtime/core-js/promise")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n;var o,u=e("./Worker"),s=i(u),l=e("../WorkerSettings"),c=i(l),f=e("./delegateSync"),d=i(f),h=e("./message");o="function"==typeof s["default"]?function(e,t){var r=h.serializeAll(t),n=r.serializable,i=r.serializedValues;return n?new a(function(t,r){var n=new s["default"](c["default"].workerPath);n.addEventListener("message",function(e){return t(h.deserialize(e.data))},!1),n.addEventListener("error",r,!1),n.postMessage({method:e,args:i})}):(console.info("At least one argument can't be serialized and sent to the worker. "+("We will run "+e+" in the same thread instead.")),d["default"](e,t))}:function(e,t){return console.info('Workers are not supported in this environment, so "'+e+'" will run in the same thread instead. This might block the environment.'),d["default"](e,t)},t.exports=r["default"]},{"../WorkerSettings":1,"./Worker":6,"./delegateSync":11,"./message":32,"babel-runtime/core-js/promise":98,"babel-runtime/helpers/interop-require-default":107}],13:[function(e,t,r){"use strict";function n(e,t){for(var r=new Array(e),n=0;e>n;n++)r[n]=t;return r}Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n,t.exports=r["default"]},{}],14:[function(e,t,r){"use strict";function n(e,t,r){if(Array.isArray(e)){var n=0,i=e.length;if(r)for(;i>n;n++)t.call(r,e[n],n);else for(;i>n;n++)t(e[n],n)}else if(u["default"](e)&&(e=a(e)),l["default"](e)){var o,s;if(void 0!==r){var c=!0,f=!1,d=void 0;try{for(var h,p=a(e);!(c=(h=p.next()).done);c=!0)o=h.value,s+=1,t.call(r,o,s)}catch(v){f=!0,d=v}finally{try{!c&&p["return"]&&p["return"]()}finally{if(f)throw d}}}else{var b=!0,g=!1,y=void 0;try{for(var m,w=a(e);!(b=(m=w.next()).done);b=!0)o=m.value,s+=1,t(o,s)}catch(v){g=!0,y=v}finally{try{!b&&w["return"]&&w["return"]()}finally{if(g)throw y}}}}else if(e&&"object"==typeof e)if(r)for(var x in e)t.call(r,e[x],x);else for(var x in e)t(e[x],x)}var a=e("babel-runtime/core-js/get-iterator")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n;var o=e("./isIterable"),u=i(o),s=e("./isIterator"),l=i(s);t.exports=r["default"]},{"./isIterable":24,"./isIterator":25,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":107}],15:[function(e,t,r){"use strict";function n(e,t){for(;0!==t;){var r=e;e=t,t=r%t}return e}Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n,t.exports=r["default"]},{}],16:[function(e,t,r){"use strict";function n(e){return e.slice().reverse()}function a(e,t){var r,a,u,l,f,d,h;return i.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(r=o(e),a=r.length,!(t>a)){i.next=4;break}return i.abrupt("return");case 4:return u=c["default"](t),l=n(u),i.next=8,u.map(function(e){return r[e]});case 8:f=void 0,d=0;case 11:if(!(d<l.length)){i.next=18;break}if(f=l[d],u[f]===f+a-t){i.next=15;break}return i.abrupt("break",18);case 15:d++,i.next=11;break;case 18:if(l.length!==d){i.next=20;break}return i.abrupt("return");case 20:for(u[f]+=1,h=f+1;t>h;h++)u[h]=u[h-1]+1;return i.next=24,u.map(function(e){return r[e]});case 24:i.next=8;break;case 26:case"end":return i.stop()}},s[0],this)}var i=e("babel-runtime/regenerator")["default"],o=e("babel-runtime/core-js/array/from")["default"],u=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=a;var s=[a].map(i.mark),l=e("./range"),c=u(l);t.exports=r["default"]},{"./range":35,"babel-runtime/core-js/array/from":88,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/regenerator":166}],17:[function(e,t,r){"use strict";function n(e,t){var r,n,o,s,c,f,d,h,p;return a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(r=i(e),n=r.length,t=null==t?n:t,!(t>n)){a.next=5;break}return a.abrupt("return");case 5:return o=l["default"](n),s=l["default"](n,n-t,-1),c=l["default"](t-1,-1,-1),a.next=10,o.slice(0,t).map(function(e){return r[e]});case 10:f=0;case 12:if(!(f<c.length)){a.next=31;break}if(d=c[f],s[d]-=1,h=o[d],0!==s[d]){a.next=22;break}o.splice(d,1),o.push(h),s[d]=n-d,a.next=28;break;case 22:return p=s[d],o[d]=o[o.length-p],o[o.length-p]=h,a.next=27,o.slice(0,t).map(function(e){return r[e]});case 27:return a.abrupt("break",31);case 28:f++,a.next=12;break;case 31:if(c.length!==f){a.next=33;break}return a.abrupt("return");case 33:a.next=10;break;case 35:case"end":return a.stop()}},u[0],this)}var a=e("babel-runtime/regenerator")["default"],i=e("babel-runtime/core-js/array/from")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n;var u=[n].map(a.mark),s=e("./range"),l=o(s);t.exports=r["default"]},{"./range":35,"babel-runtime/core-js/array/from":88,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/regenerator":166}],18:[function(e,t,r){"use strict";function n(e,t,r){var n,o;return a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(null!=e){a.next=4;break}return a.abrupt("return");case 4:if(null!=t){a.next=10;break}t=e,e=0,r=1,a.next=16;break;case 10:if(null!=r){a.next=14;break}r=1,a.next=16;break;case 14:if(0!==r){a.next=16;break}throw new RangeError("opt_step can't be 0");case 16:n=0>r,o=e;case 18:if(!(n&&o>t||!n&&t>o)){a.next=24;break}return a.next=21,o;case 21:o+=r,a.next=18;break;case 24:case"end":return a.stop()}},i[0],this)}var a=e("babel-runtime/regenerator")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n;var i=[n].map(a.mark);t.exports=r["default"]},{"babel-runtime/regenerator":166}],19:[function(e,t,r){"use strict";function n(e,t){return null==e?t:e}Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n,t.exports=r["default"]},{}],20:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default")["default"],a=e("babel-runtime/helpers/interop-require-wildcard")["default"],i=e("babel-runtime/helpers/defaults")["default"];Object.defineProperty(r,"__esModule",{value:!0});var o=e("./Arrays"),u=n(o),s=e("./Map"),l=n(s),c=e("./PriorityQueue"),f=n(c),d=e("./Set"),h=n(d),p=e("./clone"),v=n(p),b=e("./clear"),g=n(b),y=e("./deepcopy"),m=n(y),w=e("./deepmerge"),x=n(w),k=e("./gcd"),j=n(k),E=e("./genCombinations"),_=n(E),S=e("./genPermutations"),O=n(S),M=e("./genRange"),I=n(M),P=e("./getDefault"),N=n(P),A=e("./fillArray"),$=n(A),q=e("./forEach"),D=n(q),L=e("./isArrayLike"),F=n(L),G=e("./isBoolean"),C=n(G),z=e("./isGraph"),T=n(z),J=e("./isIterable"),R=n(J),X=e("./isIterator"),B=n(X),U=e("./isMap"),V=n(U),W=e("./isPlainObject"),H=n(W),K=e("./mapIterator"),Y=n(K),Q=e("./mapSequence"),Z=n(Q),ee=e("./max"),te=n(ee),re=e("./next"),ne=n(re),ae=e("./nodesAreEqual"),ie=n(ae),oe=e("./range"),ue=n(oe),se=e("./someIterator"),le=n(se),ce=e("./toIterator"),fe=n(ce),de=e("./tuple"),he=a(de),pe=e("./size"),ve=n(pe),be=e("./sprintf"),ge=n(be),ye=e("./zipIterator"),me=n(ye),we=e("./zipSequence"),xe=n(we);r.Arrays=u["default"],r.Map=l["default"],r.PriorityQueue=f["default"],r.Set=h["default"],r.clone=v["default"],r.clear=g["default"],r.deepcopy=m["default"],r.deepmerge=x["default"],r.gcd=j["default"],r.genCombinations=_["default"],r.genPermutations=O["default"],r.genRange=I["default"],r.getDefault=N["default"],r.fillArray=$["default"],r.forEach=D["default"],r.isArrayLike=F["default"],r.isBoolean=C["default"],r.isGraph=T["default"],r.isIterable=R["default"],r.isIterator=B["default"],r.isMap=V["default"],r.isPlainObject=H["default"],r.mapIterator=Y["default"],r.mapSequence=Z["default"],r.max=te["default"],r.next=ne["default"],r.nodesAreEqual=ie["default"],r.range=ue["default"],r.someIterator=le["default"],r.toIterator=fe["default"],r.tuple=he,r.size=ve["default"],r.sprintf=ge["default"],r.zipIterator=me["default"],r.zipSequence=xe["default"],i(r,a(de))},{"./Arrays":2,"./Map":3,"./PriorityQueue":4,"./Set":5,"./clear":7,"./clone":8,"./deepcopy":9,"./deepmerge":10,"./fillArray":13,"./forEach":14,"./gcd":15,"./genCombinations":16,"./genPermutations":17,"./genRange":18,"./getDefault":19,"./isArrayLike":21,"./isBoolean":22,"./isGraph":23,"./isIterable":24,"./isIterator":25,"./isMap":26,"./isPlainObject":27,"./mapIterator":29,"./mapSequence":30,"./max":31,"./next":33,"./nodesAreEqual":34,"./range":35,"./size":36,"./someIterator":37,"./sprintf":38,"./toIterator":39,"./tuple":40,"./zipIterator":41,"./zipSequence":42,"babel-runtime/helpers/defaults":103,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/interop-require-wildcard":108}],21:[function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"number"==typeof e.length&&"function"!=typeof e}Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n,t.exports=r["default"]},{}],22:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0});var a=e("lodash/lang/isBoolean"),i=n(a);r["default"]=i["default"],t.exports=r["default"]},{"babel-runtime/helpers/interop-require-default":107,"lodash/lang/isBoolean":226}],23:[function(e,t,r){"use strict";function n(e){return e&&"function"==typeof e.addNode}Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n,t.exports=r["default"]},{}],24:[function(e,t,r){"use strict";function n(e){return"function"==typeof e[a]}var a=e("babel-runtime/core-js/symbol/iterator")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n,t.exports=r["default"]},{"babel-runtime/core-js/symbol/iterator":100}],25:[function(e,t,r){"use strict";function n(e){return e&&"function"==typeof e.next}Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n,t.exports=r["default"]},{}],26:[function(e,t,r){"use strict";function n(e){return e instanceof o["default"]}var a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n;var i=e("./Map"),o=a(i);t.exports=r["default"]},{"./Map":3,"babel-runtime/helpers/interop-require-default":107}],27:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0});var a=e("lodash/lang/isPlainObject"),i=n(a);r["default"]=i["default"],t.exports=r["default"]},{"babel-runtime/helpers/interop-require-default":107,"lodash/lang/isPlainObject":230}],28:[function(e,t,r){"use strict";function n(e){return e instanceof o["default"]}var a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n;var i=e("./Set"),o=a(i);t.exports=r["default"]},{"./Set":5,"babel-runtime/helpers/interop-require-default":107}],29:[function(e,t,r){"use strict";function n(e,t,r){var n,u,s,l,c,f;return a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:n=!0,u=!1,s=void 0,a.prev=3,l=i(e);case 5:if(n=(c=l.next()).done){a.next=12;break}return f=c.value,a.next=9,t.call(r,f);case 9:n=!0,a.next=5;break;case 12:a.next=18;break;case 14:a.prev=14,a.t0=a["catch"](3),u=!0,s=a.t0;case 18:a.prev=18,a.prev=19,!n&&l["return"]&&l["return"]();case 21:if(a.prev=21,!u){a.next=24;break}throw s;case 24:return a.finish(21);case 25:return a.finish(18);case 26:case"end":return a.stop()}},o[0],this,[[3,14,18,26],[19,,21,25]])}var a=e("babel-runtime/regenerator")["default"],i=e("babel-runtime/core-js/get-iterator")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n;var o=[n].map(a.mark);t.exports=r["default"]},{"babel-runtime/core-js/get-iterator":89,"babel-runtime/regenerator":166}],30:[function(e,t,r){"use strict";function n(e,t,r){if(f["default"](e))return y.call(e,t,r);if(h["default"](e)&&(e=a(e)),v["default"](e))return g["default"](e,t,r);if(u["default"](e))return l["default"](e,t,r);throw new TypeError("Can't map value of type %s",typeof e)}var a=e("babel-runtime/core-js/get-iterator")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n;var o=e("lodash/lang/isPlainObject"),u=i(o),s=e("lodash/object/mapValues"),l=i(s),c=e("./isArrayLike"),f=i(c),d=e("./isIterable"),h=i(d),p=e("./isIterator"),v=i(p),b=e("./mapIterator"),g=i(b),y=Array.prototype.map;t.exports=r["default"]},{"./isArrayLike":21,"./isIterable":24,"./isIterator":25,"./mapIterator":29,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":107,"lodash/lang/isPlainObject":230,"lodash/object/mapValues":237}],31:[function(e,t,r){"use strict";function n(e,t){var r,n=-(1/0);return o["default"](e,function(e){var a=t?t(e):e;a>n&&(n=a,r=e)}),r}var a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n;var i=e("./forEach"),o=a(i);t.exports=r["default"]},{"./forEach":14,"babel-runtime/helpers/interop-require-default":107}],32:[function(e,t,r){"use strict";function n(e){var t;return t={},h(t,I,"Set"),h(t,"data",v(e.values())),t}function a(e){return new S["default"](e.data)}function i(e){var t;return t={},h(t,I,"Map"),h(t,"data",function(){var t=[],r=!0,n=!1,a=void 0;try{for(var i,o=b(e);!(r=(i=o.next()).done);r=!0){var u=p(i.value,2),s=u[0],l=u[1];t.push([s,c(l)])}}catch(f){n=!0,a=f}finally{try{!r&&o["return"]&&o["return"]()}finally{if(n)throw a}}return t}()),t}function o(e){return new E["default"](e.data.map(function(e){return e[1]=f(e[1]),e}))}function u(e){var t;return t={},h(t,I,e.constructor.__name__),h(t,"data",e.graph),h(t,"nodes",v(e.node)),h(t,"edges",e.edges(null,!0)),t}function s(e){var t=new M[e[I]](e.edges,e.data);return t.addNodesFrom(e.nodes),t}function l(e){var t=typeof e;return null==e||"string"===t||"number"===t||"boolean"===t||k["default"](e)||Array.isArray(e)||e instanceof E["default"]||e instanceof S["default"]||"Graph"===e.constructor.__name__||"DiGraph"===e.constructor.__name__||w["default"](e)}function c(e){var t=typeof e;return e&&"string"!==t&&"number"!==t&&"boolean"!==t?e instanceof S["default"]?n(e):e instanceof E["default"]?i(e):"Graph"===e.constructor.__name__||"DiGraph"===e.constructor.__name__?u(e):w["default"](e)?v(e):e:e}function f(e){var t=typeof e;if(!e||"string"===t||"number"===t||"boolean"===t)return e;if(e[I])switch(e[I]){case"Map":return o(e);case"Set":return a(e);case"Graph":case"DiGraph":return s(e)}return e}function d(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=new Array(e.length),r=e.every(function(e,r){var n=l(e);return n&&(t[r]=c(e)),n});return{serializable:r,serializedValues:t}}var h=e("babel-runtime/helpers/define-property")["default"],p=e("babel-runtime/helpers/sliced-to-array")["default"],v=e("babel-runtime/core-js/array/from")["default"],b=e("babel-runtime/core-js/get-iterator")["default"],g=e("babel-runtime/helpers/interop-require-default")["default"],y=e("babel-runtime/helpers/interop-require-wildcard")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.isSupported=l,r.serialize=c,r.deserialize=f,r.serializeAll=d;var m=e("./isIterable"),w=g(m),x=e("./isPlainObject"),k=g(x),j=e("./Map"),E=g(j),_=e("./Set"),S=g(_),O=e("../classes"),M=y(O),I="__type-jsnx__"},{"../classes":65,"./Map":3,"./Set":5,"./isIterable":24,"./isPlainObject":27,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/define-property":104,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/interop-require-wildcard":108,"babel-runtime/helpers/sliced-to-array":109}],33:[function(e,t,r){"use strict";function n(e){var t=e.next();if(t.done)throw new Error("Iterator is already exhausted");return t.value}Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n,t.exports=r["default"]},{}],34:[function(e,t,r){"use strict";function n(e,t){return e===t||"object"==typeof e&&e.toString()===t.toString()}Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n,t.exports=r["default"]},{}],35:[function(e,t,r){"use strict";function n(e,t,r){return a(u["default"](e,t,r))}var a=e("babel-runtime/core-js/array/from")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n;var o=e("./genRange"),u=i(o);t.exports=r["default"]},{"./genRange":18,"babel-runtime/core-js/array/from":88,"babel-runtime/helpers/interop-require-default":107}],36:[function(e,t,r){"use strict";function n(e){if(s["default"](e))return e.numberOfNodes();if("string"==typeof e||o["default"](e))return e.length;if(c["default"](e))return d["default"](e);throw new TypeError("Expected a graph object, array, string or object, but got %s instead",typeof e)}var a=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n;var i=e("./isArrayLike"),o=a(i),u=e("./isGraph"),s=a(u),l=e("lodash/lang/isPlainObject"),c=a(l),f=e("lodash/collection/size"),d=a(f);t.exports=r["default"]},{"./isArrayLike":21,"./isGraph":23,"babel-runtime/helpers/interop-require-default":107,"lodash/collection/size":172,"lodash/lang/isPlainObject":230}],37:[function(e,t,r){"use strict";function n(e,t){var r=!0,n=!1,i=void 0;try{for(var o,u=a(e);!(r=(o=u.next()).done);r=!0){var s=o.value;if(t(s))return!0}}catch(l){n=!0,i=l}finally{try{!r&&u["return"]&&u["return"]()}finally{if(n)throw i}}return!1}var a=e("babel-runtime/core-js/get-iterator")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n,t.exports=r["default"]},{"babel-runtime/core-js/get-iterator":89}],38:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0});var a,i=e("tiny-sprintf"),o=n(i);o["default"].j=function(e){if(e===a)return a+"";try{return JSON.stringify(e)}catch(t){return e+""}},r["default"]=o["default"],t.exports=r["default"]},{"babel-runtime/helpers/interop-require-default":107,"tiny-sprintf":243}],39:[function(e,t,r){"use strict";function n(e){if(c["default"](e))return e;if(d["default"](e))return a(e);if(Array.isArray(e)||s["default"](e))return i.mark(function t(e){var r,n;return i.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=0,n=e.length;case 1:if(!(n>r)){t.next=7;break}return t.next=4,e[r];case 4:r++,t.next=1;break;case 7:case"end":return t.stop()}},t,this)})(e);throw new TypeError("Unable to convert "+e+" to an iterator")}var a=e("babel-runtime/core-js/get-iterator")["default"],i=e("babel-runtime/regenerator")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];
|
|
Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n;var u=e("./isArrayLike"),s=o(u),l=e("./isIterator"),c=o(l),f=e("./isIterable"),d=o(f);t.exports=r["default"]},{"./isArrayLike":21,"./isIterable":24,"./isIterator":25,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/regenerator":166}],40:[function(e,t,r){"use strict";function n(e,t){return c[0]=e,c[1]=t,c}function a(e,t,r){return f[0]=e,f[1]=t,f[2]=r,f}function i(e,t,r,n){return d[0]=e,d[1]=t,d[2]=r,d[3]=n,d}function o(e,t,r){return r.length=2,r[0]=e,r[1]=t,r}function u(e,t,r,n){return n.length=3,n[0]=e,n[1]=t,n[2]=r,n}function s(e,t,r,n,a){return a.length=4,a[0]=e,a[1]=t,a[2]=r,a[3]=n,a}function l(e){var t=new Array(e);switch(e){case 2:return function(e,r){return t[0]=e,t[1]=r,t};case 3:return function(e,r,n){return t[0]=e,t[1]=r,t[2]=n,t};default:throw new Error("Typle size not supported.")}}Object.defineProperty(r,"__esModule",{value:!0}),r.tuple2=n,r.tuple3=a,r.tuple4=i,r.tuple2c=o,r.tuple3c=u,r.tuple4c=s,r.createTupleFactory=l;var c=new Array(2),f=new Array(3),d=new Array(4)},{}],41:[function(e,t,r){"use strict";function n(){var e,t,r,n,o,u,s=arguments;return a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:e=s,t=e.length;case 2:r=!1,n=new Array(t),o=0;case 6:if(!(t>o)){a.next=15;break}if(u=e[o].next(),!u.done){a.next=11;break}return r=!0,a.abrupt("break",15);case 11:n[o]=u.value;case 12:o++,a.next=6;break;case 15:if(!r){a.next=17;break}return a.abrupt("break",21);case 17:return a.next=19,n;case 19:a.next=2;break;case 21:case"end":return a.stop()}},i[0],this)}var a=e("babel-runtime/regenerator")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n;var i=[n].map(a.mark);t.exports=r["default"]},{"babel-runtime/regenerator":166}],42:[function(e,t,r){"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];var n,a,i=t.length,o=1/0,u=new Array(i);for(n=0;i>n;n++){var s=t[n],l=s.length;if(o>l&&(o=l,0===o))return[];u[n]=s[0]}for(a=new Array(o),a[0]=u,n=1;o>n;n++){u=new Array(i);for(var c=0;i>c;c++)u[c]=t[c][n];a[n]=u}return a}function a(){for(var e=arguments.length,t=Array(e),r=0;e>r;r++)t[r]=arguments[r];var a=t[0];if(u["default"](a))return n.apply(null,t);if(l["default"](a))return f["default"].apply(null,t);throw new TypeError("Expected an iterator, array-like object or object, but got %s instead",a)}var i=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=a;var o=e("./isArrayLike"),u=i(o),s=e("./isIterator"),l=i(s),c=e("./zipIterator"),f=i(c);t.exports=r["default"]},{"./isArrayLike":21,"./isIterator":25,"./zipIterator":41,"babel-runtime/helpers/interop-require-default":107}],43:[function(e,t,r){"use strict";function n(e){var t=this,r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.k,a=r.normalized,i=r.weight,o=r.endpoints;a=null==a?!0:a,o=null==o?!1:o;var f=new w.Map(v.mark(function g(){var r,n,a,i,o,u;return v.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=!0,n=!1,a=void 0,t.prev=3,i=b(e);case 5:if(r=(o=i.next()).done){t.next=12;break}return u=o.value,t.next=9,w.tuple2(u,0);case 9:r=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t["catch"](3),n=!0,a=t.t0;case 18:t.prev=18,t.prev=19,!r&&i["return"]&&i["return"]();case 21:if(t.prev=21,!n){t.next=24;break}throw a;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},g,t,[[3,14,18,26],[19,,21,25]])})()),h=e.nodes();return null!=n&&(h=w.Arrays.sample(h,n)),h.forEach(function(t){var r=null==i?u(e,t):s(e,t,i),n=p(r,3),a=n[0],d=n[1],h=n[2];f=o?c(f,a,d,h,t):l(f,a,d,h,t)}),d(f,e.order(),a,e.isDirected(),n)}function a(e,t){return m["default"]("betweennessCentrality",[e,t])}function i(e){var t=this,r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.normalized,a=r.weight;n=null==n?!0:n;var i=new w.Map(v.mark(function G(){var r,n,a,i,o,u;return v.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=!0,n=!1,a=void 0,t.prev=3,i=b(e);case 5:if(r=(o=i.next()).done){t.next=12;break}return u=o.value,t.next=9,w.tuple2(u,0);case 9:r=!0,t.next=5;break;case 12:t.next=18;break;case 14:t.prev=14,t.t0=t["catch"](3),n=!0,a=t.t0;case 18:t.prev=18,t.prev=19,!r&&i["return"]&&i["return"]();case 21:if(t.prev=21,!n){t.next=24;break}throw a;case 24:return t.finish(21);case 25:return t.finish(18);case 26:case"end":return t.stop()}},G,t,[[3,14,18,26],[19,,21,25]])})()),o=!0,l=!1,c=void 0;try{for(var d,g=b(e.edgesIter());!(o=(d=g.next()).done);o=!0){var y=d.value;i.set(y,0)}}catch(m){l=!0,c=m}finally{try{!o&&g["return"]&&g["return"]()}finally{if(l)throw c}}var x=!0,k=!1,j=void 0;try{for(var E,_=b(e);!(x=(E=_.next()).done);x=!0){var S=E.value,O=null==a?u(e,S):s(e,S,a),M=p(O,3),I=M[0],P=M[1],N=M[2];i=f(i,I,P,N,S)}}catch(m){k=!0,j=m}finally{try{!x&&_["return"]&&_["return"]()}finally{if(k)throw j}}var A=!0,$=!1,q=void 0;try{for(var D,L=b(e);!(A=(D=L.next()).done);A=!0){var F=D.value;i["delete"](F)}}catch(m){$=!0,q=m}finally{try{!A&&L["return"]&&L["return"]()}finally{if($)throw q}}return h(i,e.order(),n,e.isDirected())}function o(e,t){return m["default"]("edgeBetweennessCentrality",[e,t])}function u(e,t){var r=this,n=[],a=new w.Map(v.mark(function f(){var t,n,a,i,o,u;return v.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:t=!0,n=!1,a=void 0,r.prev=3,i=b(e);case 5:if(t=(o=i.next()).done){r.next=12;break}return u=o.value,r.next=9,w.tuple2(u,[]);case 9:t=!0,r.next=5;break;case 12:r.next=18;break;case 14:r.prev=14,r.t0=r["catch"](3),n=!0,a=r.t0;case 18:r.prev=18,r.prev=19,!t&&i["return"]&&i["return"]();case 21:if(r.prev=21,!n){r.next=24;break}throw a;case 24:return r.finish(21);case 25:return r.finish(18);case 26:case"end":return r.stop()}},f,r,[[3,14,18,26],[19,,21,25]])})()),i=new w.Map(v.mark(function d(){var t,n,a,i,o,u;return v.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:t=!0,n=!1,a=void 0,r.prev=3,i=b(e);case 5:if(t=(o=i.next()).done){r.next=12;break}return u=o.value,r.next=9,w.tuple2(u,0);case 9:t=!0,r.next=5;break;case 12:r.next=18;break;case 14:r.prev=14,r.t0=r["catch"](3),n=!0,a=r.t0;case 18:r.prev=18,r.prev=19,!t&&i["return"]&&i["return"]();case 21:if(r.prev=21,!n){r.next=24;break}throw a;case 24:return r.finish(21);case 25:return r.finish(18);case 26:case"end":return r.stop()}},d,r,[[3,14,18,26],[19,,21,25]])})()),o=new w.Map;i.set(t,1),o.set(t,0);for(var u=[t];u.length>0;){var s=u.shift();n.push(s);var l=o.get(s),c=i.get(s);e.neighbors(s).forEach(function(e){o.has(e)||(u.push(e),o.set(e,l+1)),o.get(e)===l+1&&(i.set(e,i.get(e)+c),a.get(e).push(s))})}return[n,a,i]}function s(e,t){var r=this,n=arguments.length<=2||void 0===arguments[2]?"weight":arguments[2],a=[],i=new w.Map(v.mark(function P(){var t,n,a,i,o,u;return v.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:t=!0,n=!1,a=void 0,r.prev=3,i=b(e);case 5:if(t=(o=i.next()).done){r.next=12;break}return u=o.value,r.next=9,w.tuple2(u,[]);case 9:t=!0,r.next=5;break;case 12:r.next=18;break;case 14:r.prev=14,r.t0=r["catch"](3),n=!0,a=r.t0;case 18:r.prev=18,r.prev=19,!t&&i["return"]&&i["return"]();case 21:if(r.prev=21,!n){r.next=24;break}throw a;case 24:return r.finish(21);case 25:return r.finish(18);case 26:case"end":return r.stop()}},P,r,[[3,14,18,26],[19,,21,25]])})()),o=new w.Map(v.mark(function N(){var t,n,a,i,o,u;return v.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:t=!0,n=!1,a=void 0,r.prev=3,i=b(e);case 5:if(t=(o=i.next()).done){r.next=12;break}return u=o.value,r.next=9,w.tuple2(u,0);case 9:t=!0,r.next=5;break;case 12:r.next=18;break;case 14:r.prev=14,r.t0=r["catch"](3),n=!0,a=r.t0;case 18:r.prev=18,r.prev=19,!t&&i["return"]&&i["return"]();case 21:if(r.prev=21,!n){r.next=24;break}throw a;case 24:return r.finish(21);case 25:return r.finish(18);case 26:case"end":return r.stop()}},N,r,[[3,14,18,26],[19,,21,25]])})()),u=new w.Map;o.set(t,1);var s=new w.Map([w.tuple2(t,0)]),l=new w.PriorityQueue;for(l.enqueue(0,[t,t]);l.size>0;){var c=l.dequeue(),f=p(c,2),d=f[0],h=p(f[1],2),g=h[0],y=h[1];if(!u.has(y)){o.set(y,o.get(y)+o.get(g)),a.push(y),u.set(y,d);var m=!0,x=!1,k=void 0;try{for(var j,E=b(e.get(y));!(m=(j=E.next()).done);m=!0){var _=p(j.value,2),S=_[0],O=_[1],M=d+w.getDefault(O[n],1);u.has(S)||s.has(S)&&!(M<s.get(S))?M===s.get(S)&&(o.set(S,o.get(S)+o.get(y)),i.get(S).push(y)):(s.set(S,M),l.enqueue(M,[y,S]),o.set(S,0),i.set(S,[y]))}}catch(I){x=!0,k=I}finally{try{!m&&E["return"]&&E["return"]()}finally{if(x)throw k}}}}return[a,i,o]}function l(e,t,r,n,a){for(var i=this,o=new w.Map(v.mark(function l(){var e,r,n,a,o,u;return v.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:e=!0,r=!1,n=void 0,i.prev=3,a=b(t);case 5:if(e=(o=a.next()).done){i.next=12;break}return u=o.value,i.next=9,w.tuple2(u,0);case 9:e=!0,i.next=5;break;case 12:i.next=18;break;case 14:i.prev=14,i.t0=i["catch"](3),r=!0,n=i.t0;case 18:i.prev=18,i.prev=19,!e&&a["return"]&&a["return"]();case 21:if(i.prev=21,!r){i.next=24;break}throw n;case 24:return i.finish(21);case 25:return i.finish(18);case 26:case"end":return i.stop()}},l,i,[[3,14,18,26],[19,,21,25]])})());t.length>0;){var u=t.pop(),s=(1+o.get(u))/n.get(u);r.get(u).forEach(function(e){o.set(e,o.get(e)+n.get(e)*s)}),(u!==a||"object"==typeof u&&u.toString()!==a.toString())&&e.set(u,e.get(u)+o.get(u))}return e}function c(e,t,r,n,a){var i=this;e.set(a,e.get(a)+t.length-1);for(var o=new w.Map(v.mark(function l(){var e,r,n,a,o,u;return v.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:e=!0,r=!1,n=void 0,i.prev=3,a=b(t);case 5:if(e=(o=a.next()).done){i.next=12;break}return u=o.value,i.next=9,w.tuple2(u,0);case 9:e=!0,i.next=5;break;case 12:i.next=18;break;case 14:i.prev=14,i.t0=i["catch"](3),r=!0,n=i.t0;case 18:i.prev=18,i.prev=19,!e&&a["return"]&&a["return"]();case 21:if(i.prev=21,!r){i.next=24;break}throw n;case 24:return i.finish(21);case 25:return i.finish(18);case 26:case"end":return i.stop()}},l,i,[[3,14,18,26],[19,,21,25]])})());t.length>0;){var u=t.pop(),s=(1+o.get(u))/n.get(u);r.get(u).forEach(function(e){o.set(e,o.get(e)+n.get(e)*s)}),(u!==a||"object"==typeof u&&u.toString()!==a.toString())&&e.set(u,e.get(u)+o.get(u)+1)}return e}function f(e,t,r,n,a){for(var i=this,o=new w.Map(v.mark(function l(){var e,r,n,a,o,u;return v.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:e=!0,r=!1,n=void 0,i.prev=3,a=b(t);case 5:if(e=(o=a.next()).done){i.next=12;break}return u=o.value,i.next=9,w.tuple2(u,0);case 9:e=!0,i.next=5;break;case 12:i.next=18;break;case 14:i.prev=14,i.t0=i["catch"](3),r=!0,n=i.t0;case 18:i.prev=18,i.prev=19,!e&&a["return"]&&a["return"]();case 21:if(i.prev=21,!r){i.next=24;break}throw n;case 24:return i.finish(21);case 25:return i.finish(18);case 26:case"end":return i.stop()}},l,i,[[3,14,18,26],[19,,21,25]])})());t.length>0;){var u=t.pop(),s=(1+o.get(u))/n.get(u);r.get(u).forEach(function(t){var r=n.get(t)*s,a=[t,u];e.has(a)||(a=[u,t]),e.set(a,e.get(a)+r),o.set(t,o.get(t)+r)}),(u!==a||"object"==typeof u&&u.toString()!==a.toString())&&e.set(u,e.get(u)+o.get(u))}return e}function d(e,t,r,n,a){void 0===n&&(n=!1);var i;return i=r?2>=t?null:1/((t-1)*(t-2)):n?null:.5,null!=i&&(null!=a&&(i=i*t/a),e.forEach(function(t,r){return e.set(r,t*i)})),e}function h(e,t,r,n){var a;return a=r?1>=t?null:1/(t*(t-1)):n?null:.5,null!=a&&e.forEach(function(t,r){return e.set(r,t*a)}),e}var p=e("babel-runtime/helpers/sliced-to-array")["default"],v=e("babel-runtime/regenerator")["default"],b=e("babel-runtime/core-js/get-iterator")["default"],g=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.betweennessCentrality=n,r.genBetweennessCentrality=a,r.edgeBetweennessCentrality=i,r.genEdgeBetweennessCentrality=o;var y=e("../../_internals/delegate"),m=g(y),w=e("../../_internals")},{"../../_internals":20,"../../_internals/delegate":12,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/sliced-to-array":109,"babel-runtime/regenerator":166}],44:[function(e,t,r){"use strict";function n(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=t.maxIter,n=void 0===r?100:r,a=t.tolerance,u=void 0===a?1e-6:a,s=t.nstart,l=t.weight,d=Math.sqrt,h=Math.pow,p=Math.abs;if(e.isMultigraph())throw new c.JSNetworkXException("Not defined for multigraphs.");if(0===e.order())throw new c.JSNetworkXException("Empty graph.");var v=void 0,b=new f.Map;if(s){v=s;var g=!0,y=!1,m=void 0;try{for(var w,x=o(v.keys());!(g=(w=x.next()).done);g=!0){var k=w.value;b.set(k,0)}}catch(j){y=!0,m=j}finally{try{!g&&x["return"]&&x["return"]()}finally{if(y)throw m}}}else{var E=1/e.order();v=new f.Map;var _=!0,S=!1,O=void 0;try{for(var M,I=o(e);!(_=(M=I.next()).done);_=!0){var k=M.value;v.set(k,E),b.set(k,0)}}catch(j){S=!0,O=j}finally{try{!_&&I["return"]&&I["return"]()}finally{if(S)throw O}}}var P=0,N=!0,A=!1,$=void 0;try{for(var q,D=o(v.values());!(N=(q=D.next()).done);N=!0){var L=q.value;P+=L}}catch(j){A=!0,$=j}finally{try{!N&&D["return"]&&D["return"]()}finally{if(A)throw $}}P=1/P;var F=!0,G=!1,C=void 0;try{for(var z,T=o(v);!(F=(z=T.next()).done);F=!0){var J=i(z.value,2),R=J[0],L=J[1];v.set(R,L*P)}}catch(j){G=!0,C=j}finally{try{!F&&T["return"]&&T["return"]()}finally{if(G)throw C}}u=e.order()*u;for(var X=0;n>X;X++){var B=v;v=new f.Map(b);var U=!0,V=!1,W=void 0;try{for(var H,K=o(v);!(U=(H=K.next()).done);U=!0){var Y=i(H.value,2),k=Y[0],L=Y[1],Q=!0,Z=!1,ee=void 0;try{for(var te,re=o(e.get(k));!(Q=(te=re.next()).done);Q=!0){var ne=i(te.value,2),ae=ne[0],ie=ne[1];v.set(ae,v.get(ae)+B.get(k)*f.getDefault(l&&ie[l],1))}}catch(j){Z=!0,ee=j}finally{try{!Q&&re["return"]&&re["return"]()}finally{if(Z)throw ee}}}}catch(j){V=!0,W=j}finally{try{!U&&K["return"]&&K["return"]()}finally{if(V)throw W}}var oe=0,ue=!0,se=!1,le=void 0;try{for(var ce,fe=o(v.values());!(ue=(ce=fe.next()).done);ue=!0){var L=ce.value;oe+=h(L,2)}}catch(j){se=!0,le=j}finally{try{!ue&&fe["return"]&&fe["return"]()}finally{if(se)throw le}}oe=d(oe),oe=0===oe?1:1/oe;var de=0,he=!0,pe=!1,ve=void 0;try{for(var be,ge=o(v);!(he=(be=ge.next()).done);he=!0){var ye=i(be.value,2),k=ye[0],L=ye[1];L*=oe,v.set(k,L),de+=p(L-B.get(k))}}catch(j){pe=!0,ve=j}finally{try{!he&&ge["return"]&&ge["return"]()}finally{if(pe)throw ve}}if(u>de)return v}throw new c.JSNetworkXError("eigenvectorCentrality(): power iteration failed to converge in "+(n+" iterations."))}function a(e,t){return l["default"]("eigenvectorCentrality",[e,t])}var i=e("babel-runtime/helpers/sliced-to-array")["default"],o=e("babel-runtime/core-js/get-iterator")["default"],u=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.eigenvectorCentrality=n,r.genEigenvectorCentrality=a;var s=e("../../_internals/delegate"),l=u(s),c=e("../../exceptions"),f=e("../../_internals")},{"../../_internals":20,"../../_internals/delegate":12,"../../exceptions":78,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/sliced-to-array":109}],45:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-wildcard")["default"],a=e("babel-runtime/helpers/defaults")["default"];Object.defineProperty(r,"__esModule",{value:!0});var i=e("./betweenness"),o=n(i),u=e("./eigenvector"),s=n(u);r.betweenness=o,r.eigenvector=s,a(r,n(i)),a(r,n(u))},{"./betweenness":43,"./eigenvector":44,"babel-runtime/helpers/defaults":103,"babel-runtime/helpers/interop-require-wildcard":108}],46:[function(e,t,r){"use strict";function n(e){var t,r,n,a,i,o,u,s,l,c,f,d,v;return p.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(0!==e.numberOfNodes()){p.next=2;break}return p.abrupt("return",[]);case 2:t=new x.Map(x.mapIterator(e,function(t){var r=new x.Set(e.neighborsIter(t));return r["delete"](t),x.tuple2(t,r)})),r=new x.Set(e),n=new x.Set(e),a=[null],i=x.max(r,function(e){return n.intersection(t.get(e)).size}),o=n.difference(t.get(i)),u=[];case 9:if(!(o.size>0)){p.next=25;break}if(s=o.pop(),n["delete"](s),a[a.length-1]=s,l=t.get(s),c=r.intersection(l),0!==c.size){p.next=21;break}return p.next=19,a.slice();case 19:p.next=23;break;case 21:f=n.intersection(l),f.size>0&&(u.push([r,n,o]),a.push(null),r=c,n=f,i=x.max(r,function(e){return n.intersection(t.get(e)).size}),o=n.difference(t.get(i)));case 23:p.next=33;break;case 25:if(0!==a.length&&0!==u.length){p.next=27;break}return p.abrupt("break",35);case 27:a.pop(),d=u.pop(),v=h(d,3),r=v[0],n=v[1],o=v[2];case 33:p.next=9;break;case 35:case"end":return p.stop()}},y[0],this)}function a(e){return w["default"]("findCliques",[e])}function i(e){var t,r,n,a;return p.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(a=function o(e,a){var i,u,s,l,c,f,d,h,b,g;return p.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:i=x.max(e,function(e){return a.intersection(r.get(e)).size}),u=!0,s=!1,l=void 0,t.prev=4,c=v(a.difference(r.get(i)));case 6:if(u=(f=c.next()).done){t.next=24;break}if(d=f.value,a["delete"](d),n.push(d),h=r.get(d),b=e.intersection(h),0!==b.size){t.next=17;break}return t.next=15,n.slice();case 15:t.next=20;break;case 17:if(g=a.intersection(h),!(g.size>0)){t.next=20;break}return t.delegateYield(o(b,g),"t0",20);case 20:n.pop();case 21:u=!0,t.next=6;break;case 24:t.next=30;break;case 26:t.prev=26,t.t1=t["catch"](4),s=!0,l=t.t1;case 30:t.prev=30,t.prev=31,!u&&c["return"]&&c["return"]();case 33:if(t.prev=33,!s){t.next=36;break}throw l;case 36:return t.finish(33);case 37:return t.finish(30);case 38:case"end":return t.stop()}},t[0],this,[[4,26,30,38],[31,,33,37]])},t=[a].map(p.mark),0!==e.size){i.next=5;break}return i.next=5,[];case 5:return r=new x.Map(x.mapIterator(e,function(t){var r=new x.Set(e.neighborsIter(t));return r["delete"](t),x.tuple2(t,r)})),n=[],i.delegateYield(a(new x.Set(e),new x.Set(e)),"t0",8);case 8:case"end":return i.stop()}},y[1],this)}function o(e){return w["default"]("findCliquesRecursive",[e])}function u(e,t){return null==t&&(t=n(e)),x.max(t,function(e){return e.length}).length}function s(e,t){return w["default"]("graphCliqueNumber",[e,t])}function l(e,t){return null==t&&(t=n(e)),b(t).length}function c(e,t){return w["default"]("graphNumberOfCliques",[e,t])}function f(e,t,r){r=b(r||n(e)),null==t&&(t=e.nodes());var a;if(Array.isArray(t))r=r.map(function(e){return new x.Set(e)}),a=new x.Map,t.forEach(function(e){a.set(e,r.filter(function(t){return t.has(e)}).length)});else{var i=t;a=r.filter(function(e){return new x.Set(e).has(i)}).length}return a}function d(e,t,r){return w["default"]("numberOfCliques",[e,t,r])}var h=e("babel-runtime/helpers/sliced-to-array")["default"],p=e("babel-runtime/regenerator")["default"],v=e("babel-runtime/core-js/get-iterator")["default"],b=e("babel-runtime/core-js/array/from")["default"],g=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.findCliques=n,r.genFindCliques=a,r.findCliquesRecursive=i,r.genFindCliquesRecursive=o,r.graphCliqueNumber=u,r.genGraphCliqueNumber=s,r.graphNumberOfCliques=l,r.genGraphNumberOfCliques=c,r.numberOfCliques=f,r.genNumberOfCliques=d;var y=[n,i].map(p.mark),m=e("../_internals/delegate"),w=g(m),x=e("../_internals")},{"../_internals":20,"../_internals/delegate":12,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/sliced-to-array":109,"babel-runtime/regenerator":166}],47:[function(e,t,r){"use strict";function n(e,t){if(e.isDirected())throw new E["default"]("triangles() is not defined for directed graphs.");return null!=t&&e.hasNode(t)?Math.floor(_.next(i(e,t))[2]/2):new _.Map(_.mapIterator(i(e,t),function(e){var t=v(e,3),r=t[0],n=(t[1],t[2]);return _.tuple2(r,Math.floor(n/2),r)}))}function a(e,t){return k["default"]("triangles",[e,t])}function i(e,t){var r,n,a,i,o,u,s,l,c,f,d,h,p,y,m,x,k,j;return b.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!e.isMultigraph()){b.next=2;break}throw new E["default"]("Not defined for multigraphs.");case 2:r=_.mapIterator(null==t?e:e.nbunchIter(t),function(t){return _.tuple2(t,e.get(t))}),n=!0,a=!1,i=void 0,b.prev=6,o=g(r);case 8:if(n=(u=o.next()).done){b.next=39;break}for(s=v(u.value,2),l=s[0],c=s[1],f=new _.Set(c.keys()),f["delete"](l),d=0,h=!0,p=!1,y=void 0,b.prev=18,m=g(f);!(h=(x=m.next()).done);h=!0)k=x.value,j=new _.Set(e.get(k).keys()),j["delete"](k),d+=f.intersection(j).size;b.next=26;break;case 22:b.prev=22,b.t0=b["catch"](18),p=!0,y=b.t0;case 26:b.prev=26,b.prev=27,!h&&m["return"]&&m["return"]();case 29:if(b.prev=29,!p){b.next=32;break}throw y;case 32:return b.finish(29);case 33:return b.finish(26);case 34:return b.next=36,_.tuple3(l,f.size,d);case 36:n=!0,b.next=8;break;case 39:b.next=45;break;case 41:b.prev=41,b.t1=b["catch"](6),a=!0,i=b.t1;case 45:b.prev=45,b.prev=46,!n&&o["return"]&&o["return"]();case 48:if(b.prev=48,!a){b.next=51;break}throw i;case 51:return b.finish(48);case 52:return b.finish(45);case 53:case"end":return b.stop()}},w[0],this,[[6,41,45,53],[18,22,26,34],[27,,29,33],[46,,48,52]])}function o(e,t){var r,n,a,i,o,u,s,l,c,f,d,h,p,y,m,x,k,j,S,O,M,I,P,N,A,$,q,D,L,F=arguments.length<=2||void 0===arguments[2]?"weight":arguments[2];return b.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!e.isMultigraph()){b.next=2;break}throw new E["default"]("Not defined for multigraphs.");case 2:r=null==F||0===e.edges().length?1:_.max(_.mapIterator(e.edgesIter(!0),function(e){var t=v(e,3),r=(t[0],t[1],t[2]);return _.getDefault(r[F],1)})),n=_.mapIterator(null==t?e:e.nbunchIter(t),function(t){return _.tuple2(t,e.get(t))}),a=!0,i=!1,o=void 0,b.prev=7,u=g(n);case 9:if(a=(s=u.next()).done){b.next=67;break}l=v(s.value,2),c=l[0],f=l[1],d=new _.Set(f.keys()).difference([c]),h=0,p=new _.Set,y=!0,m=!1,x=void 0,b.prev=19,k=g(d);case 21:if(y=(j=k.next()).done){b.next=48;break}for(S=j.value,O=_.getDefault(f.get(S)[F],1)/r,p.add(S),M=new _.Set(e.get(S).keys()).difference(p),I=!0,P=!1,N=void 0,b.prev=29,A=g(d.intersection(M));!(I=($=A.next()).done);I=!0)q=$.value,D=_.getDefault(e.get(S).get(q)[F],1)/r,L=_.getDefault(f.get(q)[F],1)/r,h+=Math.pow(O*D*L,1/3);b.next=37;break;case 33:b.prev=33,b.t0=b["catch"](29),P=!0,N=b.t0;case 37:b.prev=37,b.prev=38,!I&&A["return"]&&A["return"]();case 40:if(b.prev=40,!P){b.next=43;break}throw N;case 43:return b.finish(40);case 44:return b.finish(37);case 45:y=!0,b.next=21;break;case 48:b.next=54;break;case 50:b.prev=50,b.t1=b["catch"](19),m=!0,x=b.t1;case 54:b.prev=54,b.prev=55,!y&&k["return"]&&k["return"]();case 57:if(b.prev=57,!m){b.next=60;break}throw x;case 60:return b.finish(57);case 61:return b.finish(54);case 62:return b.next=64,_.tuple3(c,d.size,2*h);case 64:a=!0,b.next=9;break;case 67:b.next=73;break;case 69:b.prev=69,b.t2=b["catch"](7),i=!0,o=b.t2;case 73:b.prev=73,b.prev=74,!a&&u["return"]&&u["return"]();case 76:if(b.prev=76,!i){b.next=79;break}throw o;case 79:return b.finish(76);case 80:return b.finish(73);case 81:case"end":return b.stop()}},w[1],this,[[7,69,73,81],[19,50,54,62],[29,33,37,45],[38,,40,44],[55,,57,61],[74,,76,80]])}function u(e,t,r){var n=arguments.length<=3||void 0===arguments[3]?!0:arguments[3],a=y(l(e,t,r).values());return n||(a=a.filter(function(e){return e>0})),a.reduce(function(e,t){return e+t},0)/a.length}function s(e,t,r,n){return k["default"]("averageClustering",[e,t,r,n])}function l(e,t,r){if(e.isDirected())throw new E["default"]("Clustering algorithms are not defined for directed graphs.");var n=null==r?i(e,t):o(e,t,r),a=new _.Map(_.mapIterator(n,function(e){var t=v(e,3),r=t[0],n=t[1],a=t[2];return _.tuple2(r,0===a?0:a/(n*(n-1)))}));return e.hasNode(t)?_.next(a.values()):a}function c(e,t,r){return k["default"]("clustering",[e,t,r])}function f(e){var t=0,r=0,n=!0,a=!1,o=void 0;try{for(var u,s=g(i(e));!(n=(u=s.next()).done);n=!0){var l=v(u.value,3),c=(l[0],l[1]),f=l[2];r+=c*(c-1),t+=f}}catch(d){a=!0,o=d}finally{try{!n&&s["return"]&&s["return"]()}finally{if(a)throw o}}return 0===t?0:t/r}function d(e){return k["default"]("transitivity",[e])}function h(e,t){var r=null==t?e:e.nbunchIter(t),n=new _.Map,a=!0,i=!1,o=void 0;try{for(var u,s=g(r);!(a=(u=s.next()).done);a=!0){var l=u.value;n.set(l,0);var c=0,f=!0,d=!1,h=void 0;try{for(var p,b=g(_.genCombinations(e.get(l).keys(),2));!(f=(p=b.next()).done);f=!0){var y=v(p.value,2),m=y[0],w=y[1],x=new _.Set(e.get(m).keys()).intersection(new _.Set(e.get(w).keys()));x["delete"](l),x=x.size,n.set(l,n.get(l)+x);var k=x+1;e.get(m).has(w)&&(k+=1),c+=(e.get(m).size-k)*(e.get(w).size-k)+x}}catch(j){d=!0,h=j}finally{try{!f&&b["return"]&&b["return"]()}finally{if(d)throw h}}c>0&&n.set(l,n.get(l)/c)}}catch(j){i=!0,o=j}finally{try{!a&&s["return"]&&s["return"]()}finally{if(i)throw o}}return e.hasNode(t)?_.next(n.values()):n}function p(e,t){return k["default"]("squareClustering",[e,t])}var v=e("babel-runtime/helpers/sliced-to-array")["default"],b=e("babel-runtime/regenerator")["default"],g=e("babel-runtime/core-js/get-iterator")["default"],y=e("babel-runtime/core-js/array/from")["default"],m=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.triangles=n,r.genTriangles=a,r.averageClustering=u,r.genAverageClustering=s,r.clustering=l,r.genClustering=c,r.transitivity=f,r.genTransitivity=d,r.squareClustering=h,r.genSquareClustering=p;var w=[i,o].map(b.mark),x=e("../_internals/delegate"),k=m(x),j=e("../exceptions/JSNetworkXError"),E=m(j),_=e("../_internals")},{"../_internals":20,"../_internals/delegate":12,"../exceptions/JSNetworkXError":73,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/sliced-to-array":109,"babel-runtime/regenerator":166}],48:[function(e,t,r){"use strict";function n(e){try{return i(e),!0}catch(t){if(t instanceof g["default"])return!1;throw t}}function a(e){return h["default"]("isDirectedAcyclicGraph",[e])}function i(e,t){if(!e.isDirected())throw new v["default"]("Topological sort not defined on undirected graphs.");var r=new y.Set,n=[],a=new y.Set;return null==t&&(t=e.nodesIter()),y.forEach(t,function(t){if(!a.has(t))for(var i=[t];i.length>0;){var o=i[i.length-1];if(a.has(o))i.pop();else{r.add(o);var u=[];e.get(o).forEach(function(e,t){if(!a.has(t)){if(r.has(t))throw new g["default"]("Graph contains a cycle.");u.push(t)}}),u.length>0?i.push.apply(i,u):(a.add(o),n.unshift(o))}}}),n}function o(e,t){return h["default"]("topologicalSort",[e,t])}function u(e,t){function r(e,t,n,a){return t.add(a),e.get(a).forEach(function(a,i){if(t.has(i)){if(t.has(i)&&-1===n.indexOf(i))throw new g["default"]("Graph contains a cycle.")}else if(!r(e,t,n,i))return!1}),n.unshift(a),!0}if(!e.isDirected())throw new v["default"]("Topological sort not defined on undirected graphs.");var n=new y.Set,a=[];return null==t&&(t=e.nodesIter()),y.forEach(t,function(t){if(-1===a.indexOf(t)&&!r(e,n,a,t))throw new g["default"]("Graph contains a cycle.")}),a}function s(e,t){return h["default"]("topologicalSortRecursive",[e,t])}function l(e){for(var t,r=!0;r;){var n=e;if(a=i=o=u=s=l=c=f=void 0,r=!1,!n.isDirected())throw new v["default"]("is_aperiodic not defined for undirected graphs.");var a=n.nodesIter().next();if(a.done)return!0;var i=new y.Map;i.set(a.value,0);for(var o=[a.value],u=0,s=1;o.length>0;){for(var l=[],c=0;c<o.length;c++){var f=o[c];n.get(f).forEach(function(e,t){i.has(t)?u=y.gcd(u,i.get(f)-i.get(t)+1):(l.push(t),i.set(t,s))})}o=l,s+=1}if(i.size===n.numberOfNodes())return 1===u;if(!(t=1===u))return t;e=n.subgraph(new y.Set(n.nodes()).difference(i.keys())),r=!0}}function c(e){return h["default"]("isAperiodic",[e])}var f=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.isDirectedAcyclicGraph=n,r.genIsDirectedAcyclicGraph=a,r.topologicalSort=i,r.genTopologicalSort=o,r.topologicalSortRecursive=u,r.genTopologicalSortRecursive=s,r.isAperiodic=l,r.genIsAperiodic=c;var d=e("../_internals/delegate"),h=f(d),p=e("../exceptions/JSNetworkXError"),v=f(p),b=e("../exceptions/JSNetworkXUnfeasible"),g=f(b),y=e("../_internals")},{"../_internals":20,"../_internals/delegate":12,"../exceptions/JSNetworkXError":73,"../exceptions/JSNetworkXUnfeasible":76,"babel-runtime/helpers/interop-require-default":107}],49:[function(e,t,r){"use strict";function n(e){var t=arguments.length<=1||void 0===arguments[1]?"hh":arguments[1];switch(t){case"eg":return c(h(e));case"hh":return s(h(e));default:throw new g.JSNetworkXException("`opt_method` must be 'eg' or 'hh'")}}function a(e,t){return b["default"]("isGraphical",[e,t])}function i(e,t){return n(e,t)}function o(e,t){return b["default"]("isValidDegreeSequence",[e,t])}function u(e){if(!e.every(function(e){return Math.floor(e)===e}))throw new g.JSNetworkXUnfeasible;for(var t=e.length,r=m["default"](t,0),n=0,a=t,i=0,o=0,u=0;t>u;u++){var s=e[u];if(0>s||s>=t)throw new g.JSNetworkXUnfeasible;s>0&&(n=Math.max(n,s),a=Math.min(a,s),i+=s,o+=1,r[s]+=1)}if(i%2===1||i>o*(o-1))throw new g.JSNetworkXUnfeasible;return[n,a,i,o,r]}function s(e){var t,r,n,a,i;try{var o=u(e),s=d(o,5);r=s[0],n=s[1],t=s[2],a=s[3],i=s[4]}catch(l){if(l instanceof g.JSNetworkXUnfeasible)return!1;throw l}if(0===a||4*n*a>=Math.pow(r+n+1,2))return!0;for(var c=m["default"](r+1,0);a>0;){for(;0===i[r];)r-=1;if(r>a-1)return!1;i[r]-=1,a-=1;for(var f=0,h=r,p=0;r>p;p++){for(;0===i[h];)h-=1;i[h]-=1,a-=1,h>1&&(c[f]=h-1,f+=1)}for(p=0;f>p;p++){var v=c[p];i[v]+=1,a+=1}}return!0}function l(e){return b["default"]("isValidDegreeSequenceHavelHakimi",[e])}function c(e){var t,r,n,a,i;try{var o=u(e),s=d(o,5);t=s[0],r=s[1],n=s[2],a=s[3],i=s[4]}catch(l){if(l instanceof g.JSNetworkXUnfeasible)return!1;throw l}if(0===a||4*r*a>=Math.pow(t+r+1,2))return!0;for(var c=0,f=0,h=0,p=0,v=t;v>=r;v-=1){if(c+1>v)return!0;if(i[v]>0){var b=i[v];c+b>v&&(b=v-c),f+=b*v;for(var y=0;b>y;y++)h+=i[c+y],p+=(c+y)*i[c+y];if(c+=b,f>c*(a-1)-c*h+p)return!1}}return!0}function f(e){return b["default"]("isValidDegreeSequenceErdosGallai",[e])}var d=e("babel-runtime/helpers/sliced-to-array")["default"],h=e("babel-runtime/core-js/array/from")["default"],p=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.isGraphical=n,r.genIsGraphical=a,r.isValidDegreeSequence=i,r.genIsValidDegreeSequence=o,r.isValidDegreeSequenceHavelHakimi=s,r.genIsValidDegreeSequenceHavelHakimi=l,r.isValidDegreeSequenceErdosGallai=c,r.genIsValidDegreeSequenceErdosGallai=f;var v=e("../_internals/delegate"),b=p(v),g=e("../exceptions"),y=e("../_internals/fillArray"),m=p(y)},{"../_internals/delegate":12,"../_internals/fillArray":13,"../exceptions":78,"babel-runtime/core-js/array/from":88,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/sliced-to-array":109}],50:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-wildcard")["default"],a=e("babel-runtime/helpers/defaults")["default"];Object.defineProperty(r,"__esModule",{value:!0});var i=e("./centrality"),o=n(i),u=e("./clique"),s=n(u),l=e("./cluster"),c=n(l),f=e("./dag"),d=n(f),h=e("./graphical"),p=n(h),v=e("./isomorphism"),b=n(v),g=e("./operators"),y=n(g),m=e("./shortestPaths"),w=n(m);r.centrality=o,r.clique=s,r.cluster=c,r.dag=d,r.graphical=p,r.isomorphism=b,r.operators=y,r.shortestPaths=w,a(r,n(i)),a(r,n(u)),a(r,n(l)),a(r,n(f)),a(r,n(h)),a(r,n(v)),a(r,n(g)),a(r,n(m))},{"./centrality":45,"./clique":46,"./cluster":47,"./dag":48,"./graphical":49,"./isomorphism":51,"./operators":54,"./shortestPaths":56,"babel-runtime/helpers/defaults":103,"babel-runtime/helpers/interop-require-wildcard":108}],51:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-wildcard")["default"],a=e("babel-runtime/helpers/defaults")["default"];Object.defineProperty(r,"__esModule",{value:!0});var i=e("./isomorph"),o=n(i);r.isomorph=o,a(r,n(i))},{"./isomorph":52,"babel-runtime/helpers/defaults":103,"babel-runtime/helpers/interop-require-wildcard":108}],52:[function(e,t,r){"use strict";function n(e,t){if(e.order()!==t.order())return!1;
|
|
var r=e.degree(),n=p.triangles(e),a=h.numberOfCliques(e),i=[];r.forEach(function(e,t){i.push([r.get(t),n.get(t),a.get(t)])}),i.sort(function(e,t){return e[0]-t[0]||e[1]-t[1]||e[2]-t[2]});var o=t.degree(),u=p.triangles(t),s=h.numberOfCliques(t),l=[];return o.forEach(function(e,t){l.push([o.get(t),u.get(t),s.get(t)])}),l.sort(function(e,t){return e[0]-t[0]||e[1]-t[1]||e[2]-t[2]}),i.every(function(e,t){var r=l[t];return e[0]===r[0]&&e[1]===r[1]&&e[2]===r[2]})}function a(e,t){return d["default"]("couldBeIsomorphic",[e,t])}function i(e,t){if(e.order()!==t.order())return!1;var r=e.degree(),n=p.triangles(e),a=[];r.forEach(function(e,t){a.push([r.get(t),n.get(t)])}),a.sort(function(e,t){return e[0]-t[0]||e[1]-t[1]});var i=t.degree(),o=p.triangles(t),u=[];return i.forEach(function(e,t){u.push([i.get(t),o.get(t)])}),u.sort(function(e,t){return e[0]-t[0]||e[1]-t[1]}),a.every(function(e,t){var r=u[t];return e[0]===r[0]&&e[1]===r[1]})}function o(e,t){return d["default"]("fastCouldBeIsomorphic",[e,t])}function u(e,t){if(e.order()!==t.order())return!1;var r=l(e.degree().values());r.sort(function(e,t){return e-t});var n=l(t.degree().values());return n.sort(function(e,t){return e-t}),r.every(function(e,t){return e===n[t]})}function s(e,t){return d["default"]("fasterCouldBeIsomorphic",[e,t])}var l=e("babel-runtime/core-js/array/from")["default"],c=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.couldBeIsomorphic=n,r.genCouldBeIsomorphic=a,r.fastCouldBeIsomorphic=i,r.genFastCouldBeIsomorphic=o,r.fasterCouldBeIsomorphic=u,r.genFasterCouldBeIsomorphic=s;var f=e("../../_internals/delegate"),d=c(f),h=e("../clique"),p=e("../cluster")},{"../../_internals/delegate":12,"../clique":46,"../cluster":47,"babel-runtime/core-js/array/from":88,"babel-runtime/helpers/interop-require-default":107}],53:[function(e,t,r){"use strict";function n(e,t){var r=new S["default"](t),n=new S["default"](e);if(r.size!==n.size||O.someIterator(n.values(),function(e){return!r.has(e)}))throw new k["default"]("Node sets of graphs are not equal.")}function a(e,t){function r(e,t){return t?j.relabelNodes(e,function(e){return t+e.toString()}):e}var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],a=n.rename,i=void 0===a?[null,null]:a;if(e.isMultigraph()!==t.isMultigraph())throw new k["default"]("G and H must both be graphs or multigraphs");var o=new e.constructor;if(o.name="union("+e.name+", "+t.name+")",e=r(e,i[0]),t=r(t,i[1]),new S["default"](e).intersection(new S["default"](t)).size>0)throw new k["default"]("The node sets of G and H are not disjoint. Use appropriate {rename: [Gprefix, Hprefix]} or use disjointUnion({G, H})");return o.addNodesFrom(e.nodesIter(!0)),o.addNodesFrom(t.nodesIter(!0)),o.addEdgesFrom(e.isMultigraph()?e.edgesIter(!0,!0):e.edgesIter(!0)),o.addEdgesFrom(t.isMultigraph()?t.edgesIter(!0,!0):t.edgesIter(!0)),b(o.graph,e.graph,t.graph),o}function i(e,t,r){return w["default"]("union",[e,t,r])}function o(e,t){var r=j.convertNodeLabelsToIntegers(e),n=j.convertNodeLabelsToIntegers(t,r.order()),i=a(r,n);return i.name="disjointUnion("+e.name+", "+t.name+")",b(i.graph,e.graph,t.graph),i}function u(e,t){return w["default"]("disjointUnion",[e,t])}function s(e,t){if(e.isMultigraph()!==t.isMultigraph())throw new k["default"]("G and H must both be graphs or multigraphs");var r=E.createEmptyCopy(e);r.name="Intersection of ("+e.name+" and "+t.name+")",n(e,t);var a=e.numberOfEdges()<t.numberOfEdges()?e:t,i=a===e?t:e,o=a.isMultigraph()?a.edgesIter(!1,!0):a.edgesIter(),u=i.hasEdge,s=r.addEdge,l=!0,c=!1,f=void 0;try{for(var d,h=g(o);!(l=(d=h.next()).done);l=!0){var p=d.value;u.apply(i,p)&&s.apply(r,p)}}catch(v){c=!0,f=v}finally{try{!l&&h["return"]&&h["return"]()}finally{if(c)throw f}}return r}function l(e,t){return w["default"]("intersection",[e,t])}function c(e,t){if(e.isMultigraph()!==t.isMultigraph())throw new k["default"]("G and H must both be graphs or multigraphs");var r=E.createEmptyCopy(e);e.name="Difference of ("+e.name+" and "+t.name+")",n(e,t);var a=e.isMultigraph()?e.edgesIter(!1,!0):e.edgesIter(),i=t.hasEdge,o=r.addEdge,u=!0,s=!1,l=void 0;try{for(var c,f=g(a);!(u=(c=f.next()).done);u=!0){var d=c.value;i.apply(t,d)||o.apply(r,d)}}catch(h){s=!0,l=h}finally{try{!u&&f["return"]&&f["return"]()}finally{if(s)throw l}}return r}function f(e,t){return w["default"]("difference",[e,t])}function d(e,t){if(e.isMultigraph()!==t.isMultigraph())throw new k["default"]("G and H must both be graphs or multigraphs");var r=E.createEmptyCopy(e);r.name="Symmetric difference of ("+e.name+" and "+t.name+")",n(e,t),r.addNodesFrom(_.symmetricDifference(new S["default"](e),new S["default"](t)));var a=e.isMultigraph()?e.edgesIter(!1,!0):e.edgesIter(),i=r.addEdge,o=t.hasEdge,u=!0,s=!1,l=void 0;try{for(var c,f=g(a);!(u=(c=f.next()).done);u=!0){var d=c.value;o.apply(t,d)||i.apply(r,d)}}catch(h){s=!0,l=h}finally{try{!u&&f["return"]&&f["return"]()}finally{if(s)throw l}}a=t.isMultigraph()?t.edgesIter(!1,!0):t.edgesIter(),o=t.hasEdge;var p=!0,v=!1,b=void 0;try{for(var y,m=g(a);!(p=(y=m.next()).done);p=!0){var d=y.value;o.apply(e,d)||i.apply(r,d)}}catch(h){v=!0,b=h}finally{try{!p&&m["return"]&&m["return"]()}finally{if(v)throw b}}return r}function h(e,t){return w["default"]("symmetricDifference",[e,t])}function p(e,t){if(e.isMultigraph()!==t.isMultigraph())throw new k["default"]("G and H must both be graphs or multigraphs");var r=new e.constructor;return r.name="compose("+e.name+", "+t.name+")",r.addNodesFrom(e.nodesIter(!0)),r.addNodesFrom(t.nodesIter(!0)),r.addEdgesFrom(e.isMultigraph()?e.edgesIter(!0,!0):e.edgesIter(!0)),r.addEdgesFrom(t.isMultigraph()?t.edgesIter(!0,!0):t.edgesIter(!0)),b(r.graph,e.graph,t.graph),r}function v(e,t){return w["default"]("compose",[e,t])}var b=e("babel-runtime/core-js/object/assign")["default"],g=e("babel-runtime/core-js/get-iterator")["default"],y=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.union=a,r.genUnion=i,r.disjointUnion=o,r.genDisjointUnion=u,r.intersection=s,r.genIntersection=l,r.difference=c,r.genDifference=f,r.symmetricDifference=d,r.genSymmetricDifference=h,r.compose=p,r.genCompose=v;var m=e("../../_internals/delegate"),w=y(m),x=e("../../exceptions/JSNetworkXError"),k=y(x),j=e("../../relabel"),E=e("../../classes/functions"),_=e("../../_internals/Set"),S=y(_),O=e("../../_internals")},{"../../_internals":20,"../../_internals/Set":5,"../../_internals/delegate":12,"../../classes/functions":64,"../../exceptions/JSNetworkXError":73,"../../relabel":87,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/object/assign":92,"babel-runtime/helpers/interop-require-default":107}],54:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-wildcard")["default"],a=e("babel-runtime/helpers/defaults")["default"];Object.defineProperty(r,"__esModule",{value:!0});var i=e("./binary"),o=n(i);r.binary=o,a(r,n(i))},{"./binary":53,"babel-runtime/helpers/defaults":103,"babel-runtime/helpers/interop-require-wildcard":108}],55:[function(e,t,r){"use strict";function n(e,t){var r=t.source,n=t.target;try{i(e,{source:r,target:n})}catch(a){if(a instanceof p.JSNetworkXNoPath)return!1;throw a}return!0}function a(e,t){return h["default"]("hasPath",[e,t])}function i(e){var t,r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.source,a=r.target,i=r.weight;if(null==n)if(null==a)t=null==i?v.allPairsShortestPath(e):b.allPairsDijkstraPath(e,{weight:i});else{var o=e.isDirected();try{o&&e.reverse(!1),t=null==i?v.singleSourceShortestPath(e,a):b.singleSourceDijkstraPath(e,{target:a,weight:i});var u=!0,s=!1,f=void 0;try{for(var d,h=c(t);!(u=(d=h.next()).done);u=!0){var p=l(d.value,2),g=p[0],y=p[1];t.set(g,y.reverse())}}catch(m){s=!0,f=m}finally{try{!u&&h["return"]&&h["return"]()}finally{if(s)throw f}}}finally{o&&e.reverse(!1)}}else t=null==a?null==i?v.singleSourceShortestPath(e,n):b.singleSourceDijkstraPath(e,{source:n,weight:i}):null==i?v.bidirectionalShortestPath(e,n,a):b.dijkstraPath(e,{source:n,target:a,weight:i});return t}function o(e,t){return h["default"]("shortestPath",[e,t])}function u(e){var t,r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=r.source,a=r.target,i=r.weight;if(null==n)if(null==a)t=null==i?v.allPairsShortestPathLength(e):b.allPairsDijkstraPathLength(e,{weight:i});else{var o=e.isDirected();try{o&&e.reverse(!1),t=null==i?v.singleSourceShortestPathLength(e,a):b.singleSourceDijkstraPathLength(e,{target:a,weight:i})}finally{o&&e.reverse(!1)}}else null==a?t=null==i?v.singleSourceShortestPathLength(e,n):b.singleSourceDijkstraPathLength(e,{source:n,weight:i}):null==i?(t=v.bidirectionalShortestPath(e,n,a),t=t.length-1):t=b.dijkstraPathLength(e,{source:n,target:a,weight:i});return t}function s(e,t){return h["default"]("shortestPathLength",[e,t])}var l=e("babel-runtime/helpers/sliced-to-array")["default"],c=e("babel-runtime/core-js/get-iterator")["default"],f=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.hasPath=n,r.genHasPath=a,r.shortestPath=i,r.genShortestPath=o,r.shortestPathLength=u,r.genShortestPathLength=s;var d=e("../../_internals/delegate"),h=f(d),p=e("../../exceptions"),v=e("./unweighted"),b=e("./weighted")},{"../../_internals/delegate":12,"../../exceptions":78,"./unweighted":57,"./weighted":58,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/sliced-to-array":109}],56:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-wildcard")["default"],a=e("babel-runtime/helpers/defaults")["default"];Object.defineProperty(r,"__esModule",{value:!0});var i=e("./generic"),o=n(i),u=e("./unweighted"),s=n(u),l=e("./weighted"),c=n(l);r.generic=o,r.unweighted=s,r.weighted=c,a(r,n(i)),a(r,n(u)),a(r,n(l))},{"./generic":55,"./unweighted":57,"./weighted":58,"babel-runtime/helpers/defaults":103,"babel-runtime/helpers/interop-require-wildcard":108}],57:[function(e,t,r){"use strict";function n(e,t,r){for(var n=new k.Map,a=0,i=new k.Map([[t,1]]);i.size>0;){var o=i;i=new k.Map;var u=!0,s=!1,l=void 0;try{for(var c,f=g(o.keys());!(u=(c=f.next()).done);u=!0){var d=c.value;n.has(d)||(n.set(d,a),e.get(d).forEach(function(e,t){return i.set(t,1)}))}}catch(h){s=!0,l=h}finally{try{!u&&f["return"]&&f["return"]()}finally{if(s)throw l}}if(null!=r&&a>=r)break;a+=1}return n}function a(e,t,r){return w["default"]("singleSourceShortestPathLength",[e,t,r])}function i(e,t){var r=new k.Map,a=!0,i=!1,o=void 0;try{for(var u,s=g(e);!(a=(u=s.next()).done);a=!0){var l=u.value;r.set(l,n(e,l,t))}}catch(c){i=!0,o=c}finally{try{!a&&s["return"]&&s["return"]()}finally{if(i)throw o}}return r}function o(e,t){return w["default"]("allPairsShortestPathLength",[e,t])}function u(e,t,r){for(var n=l(e,t,r),a=b(n,3),i=a[0],o=a[1],u=a[2],s=[];null!=u;)s.push(u),u=i.get(u);for(u=o.get(s[0]),s.reverse();null!=u;)s.push(u),u=o.get(u);return s}function s(e,t,r){return w["default"]("bidirectionalShortestPath",[e,t,r])}function l(e,t,r){if(k.nodesAreEqual(t,r))return[new k.Map([[t,null]]),new k.Map([[r,null]]),t];var n,a;e.isDirected()?(n=e.predecessorsIter.bind(e),a=e.successorsIter.bind(e)):(n=e.neighborsIter.bind(e),a=e.neighborsIter.bind(e));for(var i,o=new k.Map([[t,null]]),u=new k.Map([[r,null]]),s=[t],l=[r];s.length>0&&l.length>0;)if(s.length<=l.length){i=s,s=[];var c=!0,f=!1,d=void 0;try{for(var h,p=g(i);!(c=(h=p.next()).done);c=!0){var v=h.value,b=!0,y=!1,m=void 0;try{for(var w,j=g(a(v));!(b=(w=j.next()).done);b=!0){var E=w.value;if(o.has(E)||(s.push(E),o.set(E,v)),u.has(E))return[o,u,E]}}catch(_){y=!0,m=_}finally{try{!b&&j["return"]&&j["return"]()}finally{if(y)throw m}}}}catch(_){f=!0,d=_}finally{try{!c&&p["return"]&&p["return"]()}finally{if(f)throw d}}}else{i=l,l=[];var S=!0,O=!1,M=void 0;try{for(var I,P=g(i);!(S=(I=P.next()).done);S=!0){var v=I.value,N=!0,A=!1,$=void 0;try{for(var q,D=g(n(v));!(N=(q=D.next()).done);N=!0){var E=q.value;if(u.has(E)||(l.push(E),u.set(E,v)),o.has(E))return[o,u,E]}}catch(_){A=!0,$=_}finally{try{!N&&D["return"]&&D["return"]()}finally{if(A)throw $}}}}catch(_){O=!0,M=_}finally{try{!S&&P["return"]&&P["return"]()}finally{if(O)throw M}}}throw new x.JSNetworkXNoPath(k.sprintf("No path between `%j` and `%j`.",t,r))}function c(e,t,r){var n=0,a=new k.Map([[t,1]]),i=new k.Map([[t,[t]]]);if(0===r)return i;for(;a.size>0;){var o=a;a=new k.Map;var u=!0,s=!1,l=void 0;try{for(var c,f=g(o.keys());!(u=(c=f.next()).done);u=!0){var d=c.value,h=!0,p=!1,v=void 0;try{for(var b,y=g(e.get(d).keys());!(h=(b=y.next()).done);h=!0){var m=b.value;i.has(m)||(i.set(m,i.get(d).concat([m])),a.set(m,1))}}catch(w){p=!0,v=w}finally{try{!h&&y["return"]&&y["return"]()}finally{if(p)throw v}}}}catch(w){s=!0,l=w}finally{try{!u&&f["return"]&&f["return"]()}finally{if(s)throw l}}if(n+=1,null!=r&&n>=r)break}return i}function f(e,t,r){return w["default"]("singleSourceShortestPath",[e,t,r])}function d(e,t){var r=new k.Map,n=!0,a=!1,i=void 0;try{for(var o,u=g(e);!(n=(o=u.next()).done);n=!0){var s=o.value;r.set(s,c(e,s,t))}}catch(l){a=!0,i=l}finally{try{!n&&u["return"]&&u["return"]()}finally{if(a)throw i}}return r}function h(e,t){return w["default"]("allPairsShortestPath",[e,t])}function p(e,t){for(var r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],n=r.target,a=r.cutoff,i=r.returnSeen,o=0,u=[t],s=new k.Map([[t,o]]),l=new k.Map([[t,[]]]);u.length>0;){o+=1;var c=u;if(u=[],c.forEach(function(t){e.get(t).forEach(function(e,r){s.has(r)?s.get(r)===o&&l.get(r).push(t):(l.set(r,[t]),s.set(r,o),u.push(r))})}),null!=a&&o>=a)break}return null!=n?i?l.has(n)?[l.get(n),s.get(n)]:[[],-1]:k.getDefault(l.get(n),[]):i?[l,s]:l}function v(e,t,r){return w["default"]("predecessor",[e,t,r])}var b=e("babel-runtime/helpers/sliced-to-array")["default"],g=e("babel-runtime/core-js/get-iterator")["default"],y=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.singleSourceShortestPathLength=n,r.genSingleSourceShortestPathLength=a,r.allPairsShortestPathLength=i,r.genAllPairsShortestPathLength=o,r.bidirectionalShortestPath=u,r.genBidirectionalShortestPath=s,r.singleSourceShortestPath=c,r.genSingleSourceShortestPath=f,r.allPairsShortestPath=d,r.genAllPairsShortestPath=h,r.predecessor=p,r.genPredecessor=v;var m=e("../../_internals/delegate"),w=y(m),x=e("../../exceptions"),k=e("../../_internals")},{"../../_internals":20,"../../_internals/delegate":12,"../../exceptions":78,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/sliced-to-array":109}],58:[function(e,t,r){"use strict";function n(e,t){var r=t.source,n=t.target,a=t.weight,i=void 0===a?"weight":a,o=d(e,{source:r,target:n,weight:i}),u=m(o,2),s=(u[0],u[1]),l=s.get(n);if(!l)throw new S["default"](E.sprintf("Node %j is not reachable from %j",r,n));return l}function a(e,t){return j["default"]("dijkstraPath",[e,t])}function i(e,t){var r=t.source,n=t.target,a=t.weight,i=void 0===a?"weight":a,o=c(e,{source:r,weight:i}),u=o.get(n);if(null==u)throw new S["default"](E.sprintf("Node %j is not reachable from %j",r,n));return u}function o(e,t){return j["default"]("dijkstraPathLength",[e,t])}function u(e,t){var r=1/0;for(var n in e){var a=E.getDefault(e[n][t],1);r>a&&(r=a)}return r}function s(e,t){var r=t.source,n=t.cutoff,a=t.weight,i=void 0===a?"weight":a,o=d(e,{source:r,cutoff:n,weight:i}),u=m(o,2),s=(u[0],u[1]);return s}function l(e,t){return j["default"]("singleSourceDijkstraPath",[e,t])}function c(e,t){var r=t.source,n=t.cutoff,a=t.weight,i=void 0===a?"weight":a,o=new E.Map,s=new E.Map([[r,0]]),l=new E.PriorityQueue,c=0;for(l.enqueue(0,[c++,r]);l.size>0;){var f=l.dequeue(),d=m(f,2),h=d[0],p=m(d[1],2),v=(p[0],p[1]);if(!o.has(v)){o.set(v,h);var b=void 0;b=e.isMultigraph()?E.mapIterator(e.get(v),function(e){var t=m(e,2),r=t[0],n=t[1];return[r,y({},i,u(n,i))]}):e.get(v);var g=!0,x=!1,k=void 0;try{for(var j,_=w(b);!(g=(j=_.next()).done);g=!0){var S=m(j.value,2),O=S[0],M=S[1],I=h+E.getDefault(M[i],1);if(!(null!=n&&I>n))if(o.has(O)){if(I<o.get(O))throw new Error("Contradictory paths found: negative weights?")}else(!s.has(O)||I<s.get(O))&&(s.set(O,I),l.enqueue(I,[c++,O]))}}catch(P){x=!0,k=P}finally{try{!g&&_["return"]&&_["return"]()}finally{if(x)throw k}}}}return o}function f(e,t){return j["default"]("singleSourceDijkstraPathLength",[e,t])}function d(e,t){var r=t.source,n=t.target,a=t.cutoff,i=t.weight,o=void 0===i?"weight":i;if(E.nodesAreEqual(r,n))return[new E.Map([[r,0]]),new E.Map([[r,n]])];var s=new E.Map,l=new E.Map([[r,[r]]]),c=new E.Map([[r,0]]),f=new E.PriorityQueue,d=0;for(f.enqueue(0,[d++,r]);f.size>0;){var h=f.dequeue(),p=m(h,2),v=p[0],b=m(p[1],2),g=(b[0],b[1]);if(!s.has(g)){if(s.set(g,v),E.nodesAreEqual(g,n))break;var x=void 0;x=e.isMultigraph()?E.mapIterator(e.get(g),function(e){var t=m(e,2),r=t[0],n=t[1];return[r,y({},o,u(n,o))]}):e.get(g);var k=!0,j=!1,_=void 0;try{for(var S,O=w(x);!(k=(S=O.next()).done);k=!0){var M=m(S.value,2),I=M[0],P=M[1],N=v+E.getDefault(P[o],1);if(!(null!=a&&N>a))if(s.has(I)){if(N<s.get(I))throw new Error("Contradictory paths found: negative weights?")}else(!c.has(I)||N<c.get(I))&&(c.set(I,N),f.enqueue(N,[d++,I]),l.set(I,l.get(g).concat([I])))}}catch(A){j=!0,_=A}finally{try{!k&&O["return"]&&O["return"]()}finally{if(j)throw _}}}}return[s,l]}function h(e,t){return j["default"]("singleSourceDijkstra",[e,t])}function p(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=t.cutoff,n=t.weight,a=void 0===n?"weight":n,i=new E.Map,o={weight:a,cutoff:r},u=!0,s=!1,l=void 0;try{for(var f,d=w(e);!(u=(f=d.next()).done);u=!0){var h=f.value;o.source=h,i.set(h,c(e,o))}}catch(p){s=!0,l=p}finally{try{!u&&d["return"]&&d["return"]()}finally{if(s)throw l}}return i}function v(e,t){return j["default"]("allPairsDijkstraPathLength",[e,t])}function b(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=t.cutoff,n=t.weight,a=void 0===n?"weight":n,i=new E.Map,o={weight:a,cutoff:r},u=!0,l=!1,c=void 0;try{for(var f,d=w(e);!(u=(f=d.next()).done);u=!0){var h=f.value;o.source=h,i.set(h,s(e,o))}}catch(p){l=!0,c=p}finally{try{!u&&d["return"]&&d["return"]()}finally{if(l)throw c}}return i}function g(e,t){return j["default"]("allPairsDijkstraPath",[e,t])}var y=e("babel-runtime/helpers/define-property")["default"],m=e("babel-runtime/helpers/sliced-to-array")["default"],w=e("babel-runtime/core-js/get-iterator")["default"],x=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.dijkstraPath=n,r.genDijkstraPath=a,r.dijkstraPathLength=i,r.genDijkstraPathLength=o,r.singleSourceDijkstraPath=s,r.genSingleSourceDijkstraPath=l,r.singleSourceDijkstraPathLength=c,r.genSingleSourceDijkstraPathLength=f,r.singleSourceDijkstra=d,r.genSingleSourceDijkstra=h,r.allPairsDijkstraPathLength=p,r.genAllPairsDijkstraPathLength=v,r.allPairsDijkstraPath=b,r.genAllPairsDijkstraPath=g;var k=e("../../_internals/delegate"),j=x(k),E=e("../../_internals"),_=e("../../exceptions/JSNetworkXNoPath"),S=x(_)},{"../../_internals":20,"../../_internals/delegate":12,"../../exceptions/JSNetworkXNoPath":75,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/define-property":104,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/sliced-to-array":109}],59:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default")["default"],a=e("babel-runtime/helpers/interop-require-wildcard")["default"];Object.defineProperty(r,"__esModule",{value:!0});var i=e("./WorkerSettings"),o=n(i),u=e("./initializeBrowserWorker"),s=n(u),l=e("./"),c=a(l);Object.defineProperty(c,"workerPath",{set:function(e){o["default"].workerPath=e},get:function(){return o["default"].workerPath}}),o["default"].methodLookupFunction=function(e){return c[e]},s["default"](),r["default"]=c,t.exports=r["default"]},{"./":85,"./WorkerSettings":1,"./initializeBrowserWorker":86,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/interop-require-wildcard":108}],60:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/get")["default"],a=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/create-class")["default"],o=e("babel-runtime/helpers/class-call-check")["default"],u=e("babel-runtime/helpers/sliced-to-array")["default"],s=e("babel-runtime/core-js/object/assign")["default"],l=e("babel-runtime/core-js/array/from")["default"],c=e("babel-runtime/regenerator")["default"],f=e("babel-runtime/core-js/get-iterator")["default"],d=e("babel-runtime/helpers/interop-require-default")["default"],h=e("babel-runtime/helpers/interop-require-wildcard")["default"];Object.defineProperty(r,"__esModule",{value:!0});var p=e("./Graph"),v=d(p),b=e("../_internals/Map"),g=d(b),y=e("../exceptions/JSNetworkXError"),m=d(y),w=e("../convert"),x=h(w),k=e("../_internals"),j=function(e){function t(e,r){o(this,t),n(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.graph={},this.node=new g["default"],this.adj=new g["default"],this.pred=new g["default"],this.succ=this.adj,null!=e&&x.toNetworkxGraph(e,this),s(this.graph,r||{}),this.edge=this.adj}return a(t,e),i(t,[{key:"addNode",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(!k.isPlainObject(t))throw new m["default"]("The opt_attr_dict argument must be an object.");this.succ.has(e)?s(this.node.get(e),t):(this.succ.set(e,new g["default"]),this.pred.set(e,new g["default"]),this.node.set(e,t))}},{key:"addNodesFrom",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];k.forEach(e,function(e){var r=!this.succ.has(e);if(Array.isArray(e)&&2===e.length&&k.isPlainObject(e[1])){var n=e[0],a=e[1];if(this.succ.has(n)){var i=this.node.get(n);s(i,t,a)}else{this.succ.set(n,new g["default"]),this.pred.set(n,new g["default"]);var o=k.clone(t);s(o,a),this.node.set(n,o)}}else r?(this.succ.set(e,new g["default"]),this.pred.set(e,new g["default"]),this.node.set(e,k.clone(t))):s(this.node.get(e),t)},this)}},{key:"removeNode",value:function(e){if(!this.node["delete"](e))throw new m["default"](k.sprintf('The node "%j" is not in the graph',e));var t=this.succ.get(e);t.forEach(function(t,r){this.pred.get(r)["delete"](e)},this),this.succ["delete"](e),this.pred.get(e).forEach(function(t,r){this.succ.get(r)["delete"](e)},this),this.pred["delete"](e)}},{key:"removeNodesFrom",value:function(e){k.forEach(e,function(e){if(this.succ.has(e)){var t=this.succ.get(e);this.node["delete"](e),t.forEach(function(t,r){this.pred.get(r)["delete"](e)},this),this.succ["delete"](e),this.pred.get(e).forEach(function(t,r){this.succ.get(r)["delete"](e)},this),this.pred["delete"](e)}},this)}},{key:"addEdge",value:function(e,t){var r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];if(!k.isPlainObject(r))throw new m["default"]("The optAttrDict argument must be a plain object.");this.succ.has(e)||(this.succ.set(e,new g["default"]),this.pred.set(e,new g["default"]),this.node.set(e,{})),this.succ.has(t)||(this.succ.set(t,new g["default"]),this.pred.set(t,new g["default"]),this.node.set(t,{}));var n=this.adj.get(e).get(t)||{};s(n,r),this.succ.get(e).set(t,n),this.pred.get(t).set(e,n)}},{key:"addEdgesFrom",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(!k.isPlainObject(t))throw new m["default"]("The opt_attr_dict argument must be an object.");k.forEach(e,function(e){var r,n,a,i=k.size(e);if(3===i)r=e[0],n=e[1],a=e[2];else{if(2!==i)throw new m["default"](k.sprintf('Edge tuple "%j" must be a 2-tuple or 3-tuple.',e));r=e[0],n=e[1],a={}}this.succ.has(r)||(this.succ.set(r,new g["default"]),this.pred.set(r,new g["default"]),this.node.set(r,{})),this.succ.has(n)||(this.succ.set(n,new g["default"]),this.pred.set(n,new g["default"]),this.node.set(n,{}));var o=this.adj.get(r).get(n)||{};s(o,t,a),this.succ.get(r).set(n,o),this.pred.get(n).set(r,o)},this)}},{key:"removeEdge",value:function(e,t){var r=this.succ.get(e);if(void 0===r||!r["delete"](t))throw new m["default"](k.sprintf('The edge "%j-%j" is not in the graph',e,t));this.pred.get(t)["delete"](e)}},{key:"removeEdgesFrom",value:function(e){k.forEach(e,function(e){var t=e[0],r=e[1];try{this.succ.get(t)["delete"](r),this.pred.get(r)["delete"](t)}catch(n){}},this)}},{key:"hasSuccessor",value:function(e,t){return this.succ.has(e)&&this.succ.get(e).has(t)}},{key:"hasPredecessor",value:function(e,t){return this.pred.has(e)&&this.pred.get(e).has(t)}},{key:"successorsIter",value:function(e){var t=this.succ.get(e);if(void 0!==t)return t.keys();throw new m["default"](k.sprintf('The node "%j" is not in the digraph.',e))}},{key:"predecessorsIter",value:function(e){var t=this.pred.get(e);if(void 0!==t)return t.keys();throw new m["default"](k.sprintf('The node "%j" is not in the digraph.',e))}},{key:"successors",value:function(e){return l(this.successorsIter(e))}},{key:"predecessors",value:function(e){return l(this.predecessorsIter(e))}},{key:"neighbors",value:function(e){return this.successors(e)}},{key:"neighborsIter",value:function(e){return this.successorsIter(e)}},{key:"edgesIter",value:c.mark(function r(e){var t,n,a,i,o,u,s,l,d,h,p,v,b,g,y=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];return c.wrap(function(r){for(var c=this;;)switch(r.prev=r.next){case 0:k.isBoolean(e)&&(y=e,e=void 0),t=void 0===e?this.adj:k.mapIterator(this.nbunchIter(e),function(e){return k.tuple2(e,c.adj.get(e))}),n=!0,a=!1,i=void 0,r.prev=5,o=f(t);case 7:if(n=(u=o.next()).done){r.next=40;break}s=u.value,l=!0,d=!1,h=void 0,r.prev=12,p=f(s[1]);case 14:if(l=(v=p.next()).done){r.next=23;break}return b=v.value,g=[s[0],b[0]],y&&(g[2]=b[1]),r.next=20,g;case 20:l=!0,r.next=14;break;case 23:r.next=29;break;case 25:r.prev=25,r.t0=r["catch"](12),d=!0,h=r.t0;case 29:r.prev=29,r.prev=30,!l&&p["return"]&&p["return"]();case 32:if(r.prev=32,!d){r.next=35;break}throw h;case 35:return r.finish(32);case 36:return r.finish(29);case 37:n=!0,r.next=7;break;case 40:r.next=46;break;case 42:r.prev=42,r.t1=r["catch"](5),a=!0,i=r.t1;case 46:r.prev=46,r.prev=47,!n&&o["return"]&&o["return"]();case 49:if(r.prev=49,!a){r.next=52;break}throw i;case 52:return r.finish(49);case 53:return r.finish(46);case 54:case"end":return r.stop()}},r,this,[[5,42,46,54],[12,25,29,37],[30,,32,36],[47,,49,53]])})},{key:"outEdgesIter",value:function(e,t){return this.edgesIter(e,t)}},{key:"outEdges",value:function(e,t){return this.edges(e,t)}},{key:"inEdgesIter",value:c.mark(function d(e){var t,r,n,a,i,o,u,s,l,h,p,v,b,g,y=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];return c.wrap(function(c){for(var d=this;;)switch(c.prev=c.next){case 0:k.isBoolean(e)&&(y=e,e=void 0),t=void 0===e?this.pred:k.mapIterator(this.nbunchIter(e),function(e){return k.tuple2(e,d.pred.get(e))}),r=!0,n=!1,a=void 0,c.prev=5,i=f(t);case 7:if(r=(o=i.next()).done){c.next=40;break}u=o.value,s=!0,l=!1,h=void 0,c.prev=12,p=f(u[1]);case 14:if(s=(v=p.next()).done){c.next=23;break}return b=v.value,g=[b[0],u[0]],y&&(g[2]=b[1]),c.next=20,g;case 20:s=!0,c.next=14;break;case 23:c.next=29;break;case 25:c.prev=25,c.t0=c["catch"](12),l=!0,h=c.t0;case 29:c.prev=29,c.prev=30,!s&&p["return"]&&p["return"]();case 32:if(c.prev=32,!l){c.next=35;break}throw h;case 35:return c.finish(32);case 36:return c.finish(29);case 37:r=!0,c.next=7;break;case 40:c.next=46;break;case 42:c.prev=42,c.t1=c["catch"](5),n=!0,a=c.t1;case 46:c.prev=46,c.prev=47,!r&&i["return"]&&i["return"]();case 49:if(c.prev=49,!n){c.next=52;break}throw a;case 52:return c.finish(49);case 53:return c.finish(46);case 54:case"end":return c.stop()}},d,this,[[5,42,46,54],[12,25,29,37],[30,,32,36],[47,,49,53]])})},{key:"inEdges",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];return l(this.inEdgesIter(e,t))}},{key:"degreeIter",value:function(e,t){var r,n=this;if(null==e)r=k.zipIterator(this.succ.entries(),this.pred.entries());else{var a=k.createTupleFactory(2),i=k.createTupleFactory(2);r=k.zipIterator(k.mapIterator(this.nbunchIter(e),function(e){return a(e,n.succ.get(e))}),k.mapIterator(this.nbunchIter(e),function(e){return i(e,n.pred.get(e))}))}return null==t?k.mapIterator(r,function(e){var t=u(e,2),r=u(t[0],2),n=r[0],a=r[1],i=u(t[1],2),o=(i[0],i[1]);return[n,o.size+a.size]}):k.mapIterator(r,function(e){function r(e){var r=e[t];c+=null!=r?+r:1}var n=u(e,2),a=u(n[0],2),i=a[0],o=a[1],s=u(n[1],2),l=(s[0],s[1]),c=0;return o.forEach(r),l.forEach(r),[i,c]})}},{key:"inDegreeIter",value:function(e,t){var r,n=this;return r=null==e?this.pred:k.mapIterator(this.nbunchIter(e),function(e){return k.tuple2(e,n.pred.get(e))}),null==t?k.mapIterator(r,function(e){var t=u(e,2),r=t[0],n=t[1];return[r,n.size]}):k.mapIterator(r,function(e){var r=u(e,2),n=r[0],a=r[1],i=0;return a.forEach(function(e){var r=e[t];i+=null!=r?+r:1}),[n,i]})}},{key:"outDegreeIter",value:function(e,t){var r,n=this;return r=null==e?this.succ:k.mapIterator(this.nbunchIter(e),function(e){return k.tuple2(e,n.succ.get(e))}),null==t?k.mapIterator(r,function(e){var t=u(e,2),r=t[0],n=t[1];return[r,n.size]}):k.mapIterator(r,function(e){var r=u(e,2),n=r[0],a=r[1],i=0;return a.forEach(function(e){var r=e[t];i+=null!=r?+r:1}),[n,i]})}},{key:"inDegree",value:function(e,t){return null!=e&&this.hasNode(e)?k.next(this.inDegreeIter(e,t))[1]:new g["default"](this.inDegreeIter(e,t))}},{key:"outDegree",value:function(e,t){return null!=e&&this.hasNode(e)?k.next(this.outDegreeIter(e,t))[1]:new g["default"](this.outDegreeIter(e,t))}},{key:"clear",value:function(){this.succ.clear(),this.pred.clear(),this.node.clear(),k.clear(this.graph)}},{key:"isMultigraph",value:function(){return!1}},{key:"isDirected",value:function(){return!0}},{key:"toDirected",value:function(){return k.deepcopy(this)}},{key:"toUndirected",value:function(e){var t=new v["default"];t.name=this.name,t.addNodesFrom(this);var r=this.pred;return e?t.addEdgesFrom(c.mark(function n(){var e,t,a,i,o,u,s,l,d,h,p,v,b,g;return c.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:e=!0,t=!1,a=void 0,n.prev=3,i=f(this.adjacencyIter());case 5:if(e=(o=i.next()).done){n.next=39;break}u=o.value,s=u[0],l=r.get(s),d=!0,h=!1,p=void 0,n.prev=12,v=f(u[1]);case 14:if(d=(b=v.next()).done){n.next=22;break}if(g=b.value,!l.has(g[0])){n.next=19;break}return n.next=19,k.tuple3(s,g[0],k.deepcopy(g[1]));case 19:d=!0,n.next=14;break;case 22:n.next=28;break;case 24:n.prev=24,n.t0=n["catch"](12),h=!0,p=n.t0;case 28:n.prev=28,n.prev=29,!d&&v["return"]&&v["return"]();case 31:if(n.prev=31,!h){n.next=34;break}throw p;case 34:return n.finish(31);case 35:return n.finish(28);case 36:e=!0,n.next=5;break;case 39:n.next=45;break;case 41:n.prev=41,n.t1=n["catch"](3),t=!0,a=n.t1;case 45:n.prev=45,n.prev=46,!e&&i["return"]&&i["return"]();case 48:if(n.prev=48,!t){n.next=51;break}throw a;case 51:return n.finish(48);case 52:return n.finish(45);case 53:case"end":return n.stop()}},n,this,[[3,41,45,53],[12,24,28,36],[29,,31,35],[46,,48,52]])}).call(this)):t.addEdgesFrom(c.mark(function a(){var e,t,r,n,i,o,u,s,l,d,h,p;return c.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:e=!0,t=!1,r=void 0,a.prev=3,n=f(this.adjacencyIter());case 5:if(e=(i=n.next()).done){a.next=36;break}o=i.value,u=!0,s=!1,l=void 0,a.prev=10,d=f(o[1]);case 12:if(u=(h=d.next()).done){a.next=19;break}return p=h.value,a.next=16,k.tuple3(o[0],p[0],k.deepcopy(p[1]));case 16:u=!0,a.next=12;break;case 19:a.next=25;break;case 21:a.prev=21,a.t0=a["catch"](10),s=!0,l=a.t0;case 25:a.prev=25,a.prev=26,!u&&d["return"]&&d["return"]();case 28:if(a.prev=28,!s){a.next=31;break}throw l;case 31:return a.finish(28);case 32:return a.finish(25);case 33:e=!0,a.next=5;break;case 36:a.next=42;break;case 38:a.prev=38,a.t1=a["catch"](3),t=!0,r=a.t1;case 42:a.prev=42,a.prev=43,!e&&n["return"]&&n["return"]();case 45:if(a.prev=45,!t){a.next=48;break}throw r;case 48:return a.finish(45);case 49:return a.finish(42);case 50:case"end":return a.stop()}},a,this,[[3,38,42,50],[10,21,25,33],[26,,28,32],[43,,45,49]])}).call(this)),
|
|
t.graph=k.deepcopy(this.graph),t.node=k.deepcopy(this.node),t}},{key:"reverse",value:function(){var e,t=arguments.length<=0||void 0===arguments[0]?!0:arguments[0];if(t)e=new this.constructor(null,{name:"Reverse of ("+this.name+")"}),e.addNodesFrom(this),e.addEdgesFrom(k.mapIterator(this.edgesIter(null,!0),function(e){return k.tuple3c(e[1],e[0],k.deepcopy(e[2]),e)})),e.graph=k.deepcopy(this.graph),e.node=k.deepcopy(this.node);else{var r=this.pred,n=this.succ;this.succ=r,this.pred=n,this.adj=this.succ,e=this}return e}},{key:"subgraph",value:function(e){var t,r=this.nbunchIter(e),n=new this.constructor,a=!0,i=!1,o=void 0;try{for(var s,l=f(r);!(a=(s=l.next()).done);a=!0)t=s.value,n.node.set(t,this.node.get(t))}catch(c){i=!0,o=c}finally{try{!a&&l["return"]&&l["return"]()}finally{if(i)throw o}}var d=n.succ,h=n.pred,p=!0,v=!1,b=void 0;try{for(var y,m=f(n);!(p=(y=m.next()).done);p=!0)t=y.value,d.set(t,new g["default"]),h.set(t,new g["default"])}catch(c){v=!0,b=c}finally{try{!p&&m["return"]&&m["return"]()}finally{if(v)throw b}}var w=!0,x=!1,k=void 0;try{for(var j,E=f(d);!(w=(j=E.next()).done);w=!0){var _=j.value,S=u(_,2),O=S[0],M=S[1],I=!0,P=!1,N=void 0;try{for(var A,$=f(this.succ.get(O));!(I=(A=$.next()).done);I=!0){var q=A.value,D=u(q,2),L=D[0],F=D[1];d.has(L)&&(M.set(L,F),h.get(L).set(O,F))}}catch(c){P=!0,N=c}finally{try{!I&&$["return"]&&$["return"]()}finally{if(P)throw N}}}}catch(c){x=!0,k=c}finally{try{!w&&E["return"]&&E["return"]()}finally{if(x)throw k}}return n.graph=this.graph,n}}],[{key:"__name__",get:function(){return"DiGraph"}}]),t}(v["default"]);r["default"]=j,t.exports=r["default"]},{"../_internals":20,"../_internals/Map":3,"../convert":69,"../exceptions/JSNetworkXError":73,"./Graph":61,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/object/assign":92,"babel-runtime/helpers/class-call-check":101,"babel-runtime/helpers/create-class":102,"babel-runtime/helpers/get":105,"babel-runtime/helpers/inherits":106,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/interop-require-wildcard":108,"babel-runtime/helpers/sliced-to-array":109,"babel-runtime/regenerator":166}],61:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/create-class")["default"],a=e("babel-runtime/helpers/class-call-check")["default"],i=e("babel-runtime/helpers/sliced-to-array")["default"],o=e("babel-runtime/core-js/object/assign")["default"],u=e("babel-runtime/core-js/array/from")["default"],s=e("babel-runtime/core-js/get-iterator")["default"],l=e("babel-runtime/regenerator")["default"],c=e("babel-runtime/core-js/symbol/iterator")["default"],f=e("babel-runtime/helpers/interop-require-default")["default"],d=e("babel-runtime/helpers/interop-require-wildcard")["default"];Object.defineProperty(r,"__esModule",{value:!0});var h=e("../exceptions/KeyError"),p=f(h),v=e("../_internals/Map"),b=f(v),g=e("../_internals/Set"),y=f(g),m=e("../exceptions/JSNetworkXError"),w=f(m),x=e("lodash/lang/isBoolean"),k=f(x),j=e("lodash/lang/isString"),E=f(j),_=e("../convert"),S=d(_),O=e("../_internals"),M=function(){function t(e,r){return a(this,t),this instanceof t?(this.graph={},this.node=new b["default"],this.adj=new b["default"],null!=e&&S.toNetworkxGraph(e,this),r&&o(this.graph,r),void(this.edge=this.adj)):new t(e,r)}return n(t,[{key:"toString",value:function(){return this.name}},{key:"get",value:function(e){var t=this.adj.get(e);if("undefined"==typeof t)throw new p["default"]("Graph does not contain node "+e+".");return t}},{key:"addNode",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(!O.isPlainObject(t))throw new w["default"]("The attr_dict argument must be an object.");this.node.has(e)?o(this.node.get(e),t):(this.adj.set(e,new b["default"]),this.node.set(e,t))}},{key:"addNodesFrom",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];O.forEach(e,function(e){if(Array.isArray(e)&&2===e.length&&O.isPlainObject(e[1])){var r=i(e,2),n=r[0],a=r[1];if(this.adj.has(n)){var u=this.node.get(n);o(u,t,a)}else{this.adj.set(n,new b["default"]);var s=O.clone(t);this.node.set(n,o(s,a))}}else{var l=!this.node.has(e);l?(this.adj.set(e,new b["default"]),this.node.set(e,O.clone(t))):o(this.node.get(e),t)}},this)}},{key:"removeNode",value:function(e){var t=this.adj;if(!this.node["delete"](e))throw new w["default"]("The node %s is not in the graph",e);t.get(e).forEach(function(r,n){return t.get(n)["delete"](e)}),t["delete"](e)}},{key:"removeNodesFrom",value:function(e){var t=this.adj,r=this.node;O.forEach(e,function(e){r["delete"](e)&&(t.get(e).forEach(function(r,n){return t.get(n)["delete"](e)}),t["delete"](e))})}},{key:"nodesIter",value:function(){var e=arguments.length<=0||void 0===arguments[0]?!1:arguments[0];return e?O.toIterator(this.node):this.node.keys()}},{key:"nodes",value:function(){var e=arguments.length<=0||void 0===arguments[0]?!1:arguments[0];return u(e?this.node.entries():this.node.keys())}},{key:"numberOfNodes",value:function(){return this.node.size}},{key:"order",value:function(){return this.node.size}},{key:"hasNode",value:function(e){return this.node.has(e)}},{key:"addEdge",value:function(e,t,r){if(r&&!O.isPlainObject(r))throw new w["default"]("The attr_dict argument must be an object.");this.node.has(e)||(this.adj.set(e,new b["default"]),this.node.set(e,{})),this.node.has(t)||(this.adj.set(t,new b["default"]),this.node.set(t,{}));var n=this.adj.get(e).get(t)||{};o(n,r),this.adj.get(e).set(t,n),this.adj.get(t).set(e,n)}},{key:"addEdgesFrom",value:function(e,t){if(t&&!O.isPlainObject(t))throw new w["default"]("The attr_dict argument must be an object.");var r=!0,n=!1,a=void 0;try{for(var u,l=s(e);!(r=(u=l.next()).done);r=!0){var c=u.value;if(null==c.length)throw new w["default"](O.sprintf("Edge tuple %j must be a 2-tuple or 3-tuple.",c));var f=i(c,3),d=f[0],h=f[1],p=f[2];if(O.isPlainObject(p)||(p={}),null==d||null==h||null!=c[3])throw new w["default"](O.sprintf("Edge tuple %j must be a 2-tuple or 3-tuple.",c));this.node.has(d)||(this.adj.set(d,new b["default"]),this.node.set(d,{})),this.node.has(h)||(this.adj.set(h,new b["default"]),this.node.set(h,{}));var v=this.adj.get(d).get(h)||{};o(v,t,p),this.adj.get(d).set(h,v),this.adj.get(h).set(d,v)}}catch(g){n=!0,a=g}finally{try{!r&&l["return"]&&l["return"]()}finally{if(n)throw a}}}},{key:"addWeightedEdgesFrom",value:function(e,t,r){r=r||{},E["default"](t)||(r=t,t="weight"),this.addEdgesFrom(O.mapSequence(e,function(e){var r={};if(r[t]=e[2],null==r[t])throw new TypeError("Values must consist of three elements: %s.",e);return[e[0],e[1],r]}),r)}},{key:"removeEdge",value:function(e,t){var r=this.adj.get(e);if(null==r)throw new w["default"]("The edge %s-%s is not in the graph",e,t);r["delete"](t);var n=this.adj.get(t);n!==r&&n["delete"](e)}},{key:"removeEdgesFrom",value:function(e){var t=this.adj;O.forEach(e,function(e){var r=i(e,2),n=r[0],a=r[1],o=t.get(n);if(null!=o&&o.has(a)){o["delete"](a);var u=t.get(a);u!==o&&u["delete"](n)}})}},{key:"hasEdge",value:function(e,t){var r=this.adj.get(e);return r&&r.has(t)}},{key:"neighbors",value:function(e){return u(this.neighborsIter(e))}},{key:"neighborsIter",value:function(e){var t=this.adj.get(e);if(null!=t)return t.keys();throw new w["default"]("The node %s is not in the graph.",e)}},{key:"edges",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];return u(this.edgesIter(e,t))}},{key:"edgesIter",value:l.mark(function r(e){var t,n,a,i,o,u,c,f,d,h,p,v,b,g,m,w,x=arguments.length<=1||void 0===arguments[1]?!1:arguments[1];return l.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:k["default"](e)&&(x=e,e=null),t=new y["default"],null==e?n=this.adj.entries():(a=this.adj,n=O.mapIterator(this.nbunchIter(e),function(e){return O.tuple2(e,a.get(e))})),i=!0,o=!1,u=void 0,r.prev=6,c=s(n);case 8:if(i=(f=c.next()).done){r.next=49;break}d=f.value,h=d[0],p=!0,v=!1,b=void 0,r.prev=14,g=s(d[1].entries());case 16:if(p=(m=g.next()).done){r.next=30;break}if(w=m.value,t.has(w[0])){r.next=27;break}if(!x){r.next=25;break}return w.unshift(h),r.next=23,w;case 23:r.next=27;break;case 25:return r.next=27,[h,w[0]];case 27:p=!0,r.next=16;break;case 30:r.next=36;break;case 32:r.prev=32,r.t0=r["catch"](14),v=!0,b=r.t0;case 36:r.prev=36,r.prev=37,!p&&g["return"]&&g["return"]();case 39:if(r.prev=39,!v){r.next=42;break}throw b;case 42:return r.finish(39);case 43:return r.finish(36);case 44:t.add(h),d.length=0;case 46:i=!0,r.next=8;break;case 49:r.next=55;break;case 51:r.prev=51,r.t1=r["catch"](6),o=!0,u=r.t1;case 55:r.prev=55,r.prev=56,!i&&c["return"]&&c["return"]();case 58:if(r.prev=58,!o){r.next=61;break}throw u;case 61:return r.finish(58);case 62:return r.finish(55);case 63:case"end":return r.stop()}},r,this,[[6,51,55,63],[14,32,36,44],[37,,39,43],[56,,58,62]])})},{key:"getEdgeData",value:function(e,t){var r=arguments.length<=2||void 0===arguments[2]?null:arguments[2],n=this.adj.get(e);if(null!=n){var a=n.get(t);if(null!=a)return a}return r}},{key:"adjacencyList",value:function(){return u(O.mapIterator(this.adjacencyIter(),function(e){var t=i(e,2),r=(t[0],t[1]);return u(r.keys())}))}},{key:"adjacencyIter",value:function(){return this.adj.entries()}},{key:"degree",value:function(e,t){return null!=e&&this.hasNode(e)?this.degreeIter(e,t).next().value[1]:new b["default"](this.degreeIter(e,t))}},{key:"degreeIter",value:function(e,t){var r,n,a=this;return null==e?r=this.adj.entries():!function(){var t=a.adj;r=O.mapIterator(a.nbunchIter(e),function(e){return O.tuple2(e,t.get(e))})}(),n=t?O.mapIterator(r,function(e){var r=i(e,2),n=r[0],a=r[1],o=0;if(a.forEach(function(e){var r=e[t];o+=+(null!=r?r:1)}),a.has(n)){var u=a.get(n)[t];o+=+(null!=u?u:1)}return[n,o]}):O.mapIterator(r,function(e){var t=i(e,2),r=t[0],n=t[1];return[r,n.size+ +n.has(r)]})}},{key:"clear",value:function(){this.name="",this.adj.clear(),this.node.clear(),O.clear(this.graph)}},{key:"copy",value:function(){return O.deepcopy(this)}},{key:"isMultigraph",value:function(){return!1}},{key:"isDirected",value:function(){return!1}},{key:"toDirected",value:function(){var t=new(e("./DiGraph"));return t.name=this.name,t.addNodesFrom(this),t.addEdgesFrom(l.mark(function r(){var e,t,n,a,i,o,u,c,f,d,h,p,v;return l.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:e=!0,t=!1,n=void 0,r.prev=3,a=s(this.adjacencyIter());case 5:if(e=(i=a.next()).done){r.next=37;break}o=i.value,u=o[0],c=!0,f=!1,d=void 0,r.prev=11,h=s(o[1]);case 13:if(c=(p=h.next()).done){r.next=20;break}return v=p.value,r.next=17,O.tuple3(u,v[0],O.deepcopy(v[1]));case 17:c=!0,r.next=13;break;case 20:r.next=26;break;case 22:r.prev=22,r.t0=r["catch"](11),f=!0,d=r.t0;case 26:r.prev=26,r.prev=27,!c&&h["return"]&&h["return"]();case 29:if(r.prev=29,!f){r.next=32;break}throw d;case 32:return r.finish(29);case 33:return r.finish(26);case 34:e=!0,r.next=5;break;case 37:r.next=43;break;case 39:r.prev=39,r.t1=r["catch"](3),t=!0,n=r.t1;case 43:r.prev=43,r.prev=44,!e&&a["return"]&&a["return"]();case 46:if(r.prev=46,!t){r.next=49;break}throw n;case 49:return r.finish(46);case 50:return r.finish(43);case 51:case"end":return r.stop()}},r,this,[[3,39,43,51],[11,22,26,34],[27,,29,33],[44,,46,50]])}).call(this)),t.graph=O.deepcopy(this.graph),t.node=O.deepcopy(this.node),t}},{key:"toUndirected",value:function(){return O.deepcopy(this)}},{key:"subgraph",value:function(e){var t,r=this.nbunchIter(e),n=new this.constructor,a=!0,i=!1,o=void 0;try{for(var u,l=s(r);!(a=(u=l.next()).done);a=!0)t=u.value,n.node.set(t,this.node.get(t))}catch(c){i=!0,o=c}finally{try{!a&&l["return"]&&l["return"]()}finally{if(i)throw o}}var f=n.adj,d=this.adj,h=!0,p=!1,v=void 0;try{for(var g,y=s(n);!(h=(g=y.next()).done);h=!0){t=g.value;var m=new b["default"];f.set(t,m);var w=!0,x=!1,k=void 0;try{for(var j,E=s(d.get(t));!(w=(j=E.next()).done);w=!0){var _=j.value,S=_[0],O=_[1];f.has(S)&&(m.set(S,O),f.get(S).set(t,O))}}catch(c){x=!0,k=c}finally{try{!w&&E["return"]&&E["return"]()}finally{if(x)throw k}}}}catch(c){p=!0,v=c}finally{try{!h&&y["return"]&&y["return"]()}finally{if(p)throw v}}return n.graph=this.graph,n}},{key:"nodesWithSelfloops",value:function(){var e=[],t=!0,r=!1,n=void 0;try{for(var a,i=s(this.adj.entries());!(t=(a=i.next()).done);t=!0){var o=a.value;o[1].has(o[0])&&e.push(o[0])}}catch(u){r=!0,n=u}finally{try{!t&&i["return"]&&i["return"]()}finally{if(r)throw n}}return e}},{key:"selfloopEdges",value:function(){var e=arguments.length<=0||void 0===arguments[0]?!1:arguments[0],t=[],r=!0,n=!1,a=void 0;try{for(var o,u=s(this.adj.entries());!(r=(o=u.next()).done);r=!0){var l=o.value,c=i(l,2),f=c[0],d=c[1];d.has(f)&&(e?t.push(O.tuple3c(f,f,d.get(f),l)):t.push(O.tuple2c(f,f,l)))}}catch(h){n=!0,a=h}finally{try{!r&&u["return"]&&u["return"]()}finally{if(n)throw a}}return t}},{key:"numberOfSelfloops",value:function(){return this.selfloopEdges().length}},{key:"size",value:function(e){var t=0,r=!0,n=!1,a=void 0;try{for(var i,o=s(this.degree(null,e).values());!(r=(i=o.next()).done);r=!0){var u=i.value;t+=u}}catch(l){n=!0,a=l}finally{try{!r&&o["return"]&&o["return"]()}finally{if(n)throw a}}return t/=2,null==e?Math.floor(t):t}},{key:"numberOfEdges",value:function(e,t){return null==e?Math.floor(this.size()):this.adj.get(e).has(t)?1:0}},{key:"addStar",value:function(e,t){var r=O.toIterator(e),n=r.next().value,a=O.mapIterator(r,function(e){return O.tuple2(n,e)});this.addEdgesFrom(a,t)}},{key:"addPath",value:function(e,t){var r=u(e),n=O.zipSequence(r.slice(0,r.length-1),r.slice(1));this.addEdgesFrom(n,t)}},{key:"addCycle",value:function(e,t){var r=u(e),n=O.zipSequence(r,r.slice(1).concat([r[0]]));this.addEdgesFrom(n,t)}},{key:"nbunchIter",value:l.mark(function f(e){var t,r,n,a,i,o,u;return l.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(null!=e){l.next=4;break}return l.delegateYield(this.adj.keys(),"t0",2);case 2:l.next=44;break;case 4:if(!this.hasNode(e)){l.next=9;break}return l.next=7,e;case 7:l.next=44;break;case 9:t=this.adj,l.prev=10,r=!0,n=!1,a=void 0,l.prev=14,i=s(O.toIterator(e));case 16:if(r=(o=i.next()).done){l.next=24;break}if(u=o.value,!t.has(u)){l.next=21;break}return l.next=21,u;case 21:r=!0,l.next=16;break;case 24:l.next=30;break;case 26:l.prev=26,l.t1=l["catch"](14),n=!0,a=l.t1;case 30:l.prev=30,l.prev=31,!r&&i["return"]&&i["return"]();case 33:if(l.prev=33,!n){l.next=36;break}throw a;case 36:return l.finish(33);case 37:return l.finish(30);case 38:l.next=44;break;case 40:if(l.prev=40,l.t2=l["catch"](10),!(l.t2 instanceof TypeError)){l.next=44;break}throw new w["default"]("nbunch is not a node or a sequence of nodes");case 44:case"end":return l.stop()}},f,this,[[10,40],[14,26,30,38],[31,,33,37]])})},{key:c,value:function(){return this.node.keys()}},{key:"name",get:function(){return this.graph.name||""},set:function(e){this.graph.name=e}}],[{key:"__name__",get:function(){return"Graph"}}]),t}();r["default"]=M,t.exports=r["default"]},{"../_internals":20,"../_internals/Map":3,"../_internals/Set":5,"../convert":69,"../exceptions/JSNetworkXError":73,"../exceptions/KeyError":77,"./DiGraph":60,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/object/assign":92,"babel-runtime/core-js/symbol/iterator":100,"babel-runtime/helpers/class-call-check":101,"babel-runtime/helpers/create-class":102,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/interop-require-wildcard":108,"babel-runtime/helpers/sliced-to-array":109,"babel-runtime/regenerator":166,"lodash/lang/isBoolean":226,"lodash/lang/isString":231}],62:[function(e,t,r){"use strict";function n(e,t,r,n){var a,i,o,u,s,l,c,h,p,v,g,y,w,x,k,j,E,_;return d.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:a=!0,i=!1,o=void 0,m.prev=3,u=b(e);case 5:if(a=(s=u.next()).done){m.next=48;break}l=f(s.value,2),c=l[0],h=l[1],p=!0,v=!1,g=void 0,m.prev=12,y=b(h);case 14:if(p=(w=y.next()).done){m.next=31;break}x=f(w.value,2),k=x[0],j=x[1],m.t0=d.keys(j);case 19:if((m.t1=m.t0()).done){m.next=28;break}return E=m.t1.value,_="out"===n?[c,k]:[k,c],r&&(_[2]=isNaN(E)?E:+E),t&&_.push(j[E]),m.next=26,_;case 26:m.next=19;break;case 28:p=!0,m.next=14;break;case 31:m.next=37;break;case 33:m.prev=33,m.t2=m["catch"](12),v=!0,g=m.t2;case 37:m.prev=37,m.prev=38,!p&&y["return"]&&y["return"]();case 40:if(m.prev=40,!v){m.next=43;break}throw g;case 43:return m.finish(40);case 44:return m.finish(37);case 45:a=!0,m.next=5;break;case 48:m.next=54;break;case 50:m.prev=50,m.t3=m["catch"](3),i=!0,o=m.t3;case 54:m.prev=54,m.prev=55,!a&&u["return"]&&u["return"]();case 57:if(m.prev=57,!i){m.next=60;break}throw o;case 60:return m.finish(57);case 61:return m.finish(54);case 62:case"end":return m.stop()}},m[0],this,[[3,50,54,62],[12,33,37,45],[38,,40,44],[55,,57,61]])}function a(e,t,r){var n=0,a=!0,i=!1,o=void 0;try{for(var u,s=b(e.values());!(a=(u=s.next()).done);a=!0){var l=u.value;for(var c in l)n+=S.getDefault(l[c][t],r)}}catch(f){i=!0,o=f}finally{try{!a&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}function i(e,t,r,n){var i,o,u,s,l,c,p,v,g,y,w,x,k,j,E,_,O,M,I,P,N,A;return d.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(i=null==r?t:S.mapIterator(e.nbunchIter(r),function(e){return S.tuple2(e,t.get(e))}),null!=n){d.next=52;break}o=!0,u=!1,s=void 0,d.prev=5,l=b(i);case 7:if(o=(c=l.next()).done){d.next=36;break}for(p=f(c.value,2),v=p[0],g=p[1],y=0,w=!0,x=!1,k=void 0,d.prev=15,j=b(g.values());!(w=(E=j.next()).done);w=!0)_=E.value,y+=h(_).length;d.next=23;break;case 19:d.prev=19,d.t0=d["catch"](15),x=!0,k=d.t0;case 23:d.prev=23,d.prev=24,!w&&j["return"]&&j["return"]();case 26:if(d.prev=26,!x){d.next=29;break}throw k;case 29:return d.finish(26);case 30:return d.finish(23);case 31:return d.next=33,[v,y];case 33:o=!0,d.next=7;break;case 36:d.next=42;break;case 38:d.prev=38,d.t1=d["catch"](5),u=!0,s=d.t1;case 42:d.prev=42,d.prev=43,!o&&l["return"]&&l["return"]();case 45:if(d.prev=45,!u){d.next=48;break}throw s;case 48:return d.finish(45);case 49:return d.finish(42);case 50:d.next=80;break;case 52:O=!0,M=!1,I=void 0,d.prev=55,P=b(i);case 57:if(O=(N=P.next()).done){d.next=66;break}return A=f(N.value,2),v=A[0],g=A[1],d.next=63,[v,a(g,n,1)];case 63:O=!0,d.next=57;break;case 66:d.next=72;break;case 68:d.prev=68,d.t2=d["catch"](55),M=!0,I=d.t2;case 72:d.prev=72,d.prev=73,!O&&P["return"]&&P["return"]();case 75:if(d.prev=75,!M){d.next=78;break}throw I;case 78:return d.finish(75);case 79:return d.finish(72);case 80:case"end":return d.stop()}},m[1],this,[[5,38,42,50],[15,19,23,31],[24,,26,30],[43,,45,49],[55,68,72,80],[73,,75,79]])}var o=e("babel-runtime/helpers/get")["default"],u=e("babel-runtime/helpers/inherits")["default"],s=e("babel-runtime/helpers/create-class")["default"],l=e("babel-runtime/helpers/class-call-check")["default"],c=e("babel-runtime/helpers/define-property")["default"],f=e("babel-runtime/helpers/sliced-to-array")["default"],d=e("babel-runtime/regenerator")["default"],h=e("babel-runtime/core-js/object/keys")["default"],p=e("babel-runtime/core-js/object/assign")["default"],v=e("babel-runtime/core-js/array/from")["default"],b=e("babel-runtime/core-js/get-iterator")["default"],g=e("babel-runtime/core-js/object/get-own-property-names")["default"],y=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0});var m=[n,i].map(d.mark),w=e("./DiGraph"),x=y(w),k=e("./MultiGraph"),j=y(k),E=e("../exceptions/JSNetworkXError"),_=y(E),S=e("../_internals"),O=function(e){function t(e,r){l(this,t),o(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e,r)}return u(t,e),s(t,[{key:"addEdge",value:function(e,t,r,n){if(r&&"object"==typeof r&&(n=r,r=null),n&&!S.isPlainObject(n))throw new _["default"]("The optAttrDict argument must be a plain object.");var a;if(this.succ.has(e)||(this.succ.set(e,new S.Map),this.pred.set(e,new S.Map),this.node.set(e,{})),this.succ.has(t)||(this.succ.set(t,new S.Map),this.pred.set(t,new S.Map),this.node.set(t,{})),this.succ.get(e).has(t)){if(a=this.get(e).get(t),null==r)for(r=h(a).length;a[r];)r+=1;a[r]=p(S.getDefault(a[r],{}),n)}else null==r&&(r=0),a=c({},r,p({},n)),this.succ.get(e).set(t,a),this.pred.get(t).set(e,a)}},{key:"removeEdge",value:function(e,t,r){var n,a=this.adj.get(e);if(a&&(n=a.get(t)),null==n)throw new _["default"](S.sprintf("The edge %j-%j is not in the graph",e,t));if(null==r)for(var i in n){delete n[i];break}else{if(!n[r])throw new _["default"](S.sprintf("The edge %j-%j with key %j is not in the graph",e,t,r));delete n[r]}0===h(n).length&&(this.succ.get(e)["delete"](t),this.pred.get(t)["delete"](e))}},{key:"edgesIter",value:d.mark(function r(e){var t,a=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],i=arguments.length<=2||void 0===arguments[2]?!1:arguments[2];return d.wrap(function(r){for(var o=this;;)switch(r.prev=r.next){case 0:return"boolean"==typeof e&&(i=a,a=e,e=null),t=null==e?this.adj:S.mapIterator(this.nbunchIter(e),function(e){return S.tuple2(e,o.adj.get(e))}),r.delegateYield(n(t,a,i,"out"),"t0",3);case 3:case"end":return r.stop()}},r,this)})},{key:"outEdgesIter",value:function(e,t,r){return this.edgesIter(e,t,r)}},{key:"outEdges",value:function(e,t,r){return v(this.outEdgesIter(e,t,r))}},{key:"inEdgesIter",value:d.mark(function g(e){var t,r=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],a=arguments.length<=2||void 0===arguments[2]?!1:arguments[2];return d.wrap(function(i){for(var o=this;;)switch(i.prev=i.next){case 0:return"boolean"==typeof e&&(a=r,r=e,e=null),t=null==e?this.pred:S.mapIterator(this.nbunchIter(e),function(e){return S.tuple2(e,o.pred.get(e))}),i.delegateYield(n(t,r,a,"in"),"t0",3);case 3:case"end":return i.stop()}},g,this)})},{key:"inEdges",value:function(e,t,r){return v(this.inEdgesIter(e,t,r))}},{key:"degreeIter",value:d.mark(function y(e,t){var r,n,i,o,u,s,l,c,p,v,g,m,w,x,k,j,E,_,O,M,I,P,N,A,$,q,D,L,F,G,C,z,T,J,R,X;return d.wrap(function(d){for(var y=this;;)switch(d.prev=d.next){case 0:if(r=S.createTupleFactory(2),n=S.createTupleFactory(2),i=null==e?S.zipIterator(this.succ.entries(),this.pred.entries()):S.zipIterator(S.mapIterator(this.nbunchIter(e),function(e){return r(e,y.succ.get(e))}),S.mapIterator(this.nbunchIter(e),function(e){return n(e,y.pred.get(e))})),null!=t){d.next=78;break}o=!0,u=!1,s=void 0,d.prev=7,l=b(i);case 9:if(o=(c=l.next()).done){d.next=62;break}for(p=f(c.value,2),v=f(p[0],2),g=v[0],m=v[1],w=f(p[1],2),x=w[0],k=w[1],E=0,_=!0,O=!1,M=void 0,d.prev=21,I=b(k.values());!(_=(P=I.next()).done);_=!0)j=P.value,E+=h(j).length;d.next=29;break;case 25:d.prev=25,d.t0=d["catch"](21),O=!0,M=d.t0;case 29:d.prev=29,d.prev=30,!_&&I["return"]&&I["return"]();case 32:if(d.prev=32,!O){d.next=35;break}throw M;case 35:return d.finish(32);case 36:return d.finish(29);case 37:for(N=0,A=!0,$=!1,q=void 0,d.prev=41,D=b(m.values());!(A=(L=D.next()).done);A=!0)j=L.value,E+=h(j).length;d.next=49;break;case 45:d.prev=45,d.t1=d["catch"](41),$=!0,q=d.t1;case 49:d.prev=49,d.prev=50,!A&&D["return"]&&D["return"]();case 52:if(d.prev=52,!$){d.next=55;break}throw q;case 55:return d.finish(52);case 56:return d.finish(49);case 57:return d.next=59,[g,E+N];case 59:o=!0,d.next=9;break;case 62:d.next=68;break;case 64:d.prev=64,d.t2=d["catch"](7),u=!0,s=d.t2;case 68:d.prev=68,d.prev=69,!o&&l["return"]&&l["return"]();case 71:if(d.prev=71,!u){d.next=74;break}throw s;case 74:return d.finish(71);case 75:return d.finish(68);case 76:d.next=110;break;case 78:F=!0,G=!1,C=void 0,d.prev=81,z=b(i);case 83:if(F=(T=z.next()).done){d.next=96;break}return J=f(T.value,2),R=f(J[0],2),g=R[0],m=R[1],X=f(J[1],2),x=X[0],k=X[1],d.next=93,[g,a(k,t,1)+a(m,t,1)];case 93:F=!0,d.next=83;break;case 96:d.next=102;break;case 98:d.prev=98,d.t3=d["catch"](81),G=!0,C=d.t3;case 102:d.prev=102,d.prev=103,!F&&z["return"]&&z["return"]();case 105:if(d.prev=105,!G){d.next=108;break}throw C;case 108:return d.finish(105);case 109:return d.finish(102);case 110:case"end":return d.stop()}},y,this,[[7,64,68,76],[21,25,29,37],[30,,32,36],[41,45,49,57],[50,,52,56],[69,,71,75],[81,98,102,110],[103,,105,109]])})},{key:"inDegreeIter",value:d.mark(function m(e,t){return d.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.delegateYield(i(this,this.pred,e,t),"t0",1);case 1:case"end":return r.stop()}},m,this)})},{key:"outDegreeIter",value:d.mark(function w(e,t){return d.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.delegateYield(i(this,this.succ,e,t),"t0",1);case 1:case"end":return r.stop()}},w,this)})},{key:"isMultigraph",value:function(){return!0}},{key:"isDirected",value:function(){return!0}},{key:"toDirected",value:function(){return S.deepcopy(this)}},{key:"toUndirected",value:function(e){var t=new j["default"];t.name=this.name,t.addNodesFrom(this);var r=!0,n=!1,a=void 0;try{for(var i,o=b(this.adjacencyIter());!(r=(i=o.next()).done);r=!0){var u=f(i.value,2),s=u[0],l=u[1],c=!0,d=!1,h=void 0;try{for(var p,v=b(l);!(c=(p=v.next()).done);c=!0){var g=f(p.value,2),y=g[0],m=g[1];for(var w in m)(!e||this.hasEdge(y,s,w))&&t.addEdge(s,y,w,S.deepcopy(m[w]))}}catch(x){d=!0,h=x}finally{try{!c&&v["return"]&&v["return"]()}finally{if(d)throw h}}}}catch(x){n=!0,a=x}finally{try{!r&&o["return"]&&o["return"]()}finally{if(n)throw a}}return t.graph=S.deepcopy(this.graph),t.node=S.deepcopy(this.node),t}},{key:"subgraph",value:function(e){var t=this.nbunchIter(e),r=new this.constructor,n=!0,a=!1,i=void 0;try{for(var o,u=b(t);!(n=(o=u.next()).done);n=!0){var s=o.value;r.node.set(s,this.node.get(s))}}catch(l){a=!0,i=l}finally{try{!n&&u["return"]&&u["return"]()}finally{if(a)throw i}}var c=r.succ,d=r.pred,h=this.succ,p=!0,v=!1,g=void 0;try{for(var y,m=b(r);!(p=(y=m.next()).done);p=!0){var s=y.value;c.set(s,new S.Map),d.set(s,new S.Map)}}catch(l){v=!0,g=l}finally{try{!p&&m["return"]&&m["return"]()}finally{if(v)throw g}}var w=!0,x=!1,k=void 0;try{for(var j,E=b(c);!(w=(j=E.next()).done);w=!0){var _=f(j.value,2),O=_[0],M=_[1],I=!0,P=!1,N=void 0;try{for(var A,$=b(h.get(O));!(I=(A=$.next()).done);I=!0){var q=f(A.value,2),D=q[0],L=q[1];if(c.has(D)){var F=S.clone(L);M.set(D,F),d.get(D).set(O,F)}}}catch(l){P=!0,N=l}finally{try{!I&&$["return"]&&$["return"]()}finally{if(P)throw N}}}}catch(l){x=!0,k=l}finally{try{!w&&E["return"]&&E["return"]()}finally{if(x)throw k}}return r.graph=this.graph,r}},{key:"reverse",value:function(){var e,t=arguments.length<=0||void 0===arguments[0]?!0:arguments[0];if(t)e=new this.constructor(null,{name:S.sprintf("Reverse of (%s)",this.name)}),e.addNodesFrom(this),e.addEdgesFrom(S.mapIterator(this.edges(!0,!0),function(e){var t=f(e,4),r=t[0],n=t[1],a=t[2],i=t[3];return S.tuple4(n,r,a,S.deepcopy(i))})),e.graph=S.deepcopy(this.graph),e.node=S.deepcopy(this.node);else{var r=[this.succ,this.pred];this.pred=r[0],this.succ=r[1],this.adj=this.succ,e=this}return e}}],[{key:"__name__",get:function(){return"MultiDiGraph"}}]),t}(x["default"]);r["default"]=O,g(j["default"].prototype).forEach(function(e){O.prototype.hasOwnProperty(e)||(O.prototype[e]=j["default"].prototype[e])}),t.exports=r["default"]},{"../_internals":20,"../exceptions/JSNetworkXError":73,"./DiGraph":60,"./MultiGraph":63,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/object/assign":92,"babel-runtime/core-js/object/get-own-property-names":96,"babel-runtime/core-js/object/keys":97,"babel-runtime/helpers/class-call-check":101,"babel-runtime/helpers/create-class":102,"babel-runtime/helpers/define-property":104,"babel-runtime/helpers/get":105,"babel-runtime/helpers/inherits":106,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/sliced-to-array":109,"babel-runtime/regenerator":166}],63:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/get")["default"],a=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/create-class")["default"],o=e("babel-runtime/helpers/class-call-check")["default"],u=e("babel-runtime/helpers/sliced-to-array")["default"],s=e("babel-runtime/core-js/object/keys")["default"],l=e("babel-runtime/core-js/object/assign")["default"],c=e("babel-runtime/core-js/object/create")["default"],f=e("babel-runtime/core-js/array/from")["default"],d=e("babel-runtime/regenerator")["default"],h=e("babel-runtime/core-js/get-iterator")["default"],p=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0});var v=e("./Graph"),b=p(v),g=e("../exceptions/JSNetworkXError"),y=p(g),m=e("../_internals"),w=function(t){function r(e,t){o(this,r),n(Object.getPrototypeOf(r.prototype),"constructor",this).call(this,e,t)}return a(r,t),i(r,[{key:"addEdge",value:function(e,t,r,n){var a=typeof r;if(null!=r&&"number"!==a&&"string"!==a&&(n=r,r=null),n&&!m.isPlainObject(n))throw new y["default"]("The optAttrDict argument must be an object.");this.adj.has(e)||(this.adj.set(e,new m.Map),this.node.set(e,{})),this.adj.has(t)||(this.adj.set(t,new m.Map),this.node.set(t,{}));var i;if(this.adj.get(e).has(t)){if(i=this.adj.get(e).get(t),null==r)for(r=s(i).length;i[r];)r+=1;var o=i[r]||{};i[r]=l(o,n)}else null==r&&(r=0),i=c(null),i[r]=l({},n),this.adj.get(e).set(t,i),this.adj.get(t).set(e,i)}},{key:"addEdgesFrom",value:function(e,t){var r=this;if(t&&!m.isPlainObject(t))throw new y["default"]("The optAttrDict argument must be an object.");m.forEach(e,function(e){var n,a,i,o;switch(e.length){case 4:n=e[0],a=e[1],i=e[2],o=e[3];break;case 3:n=e[0],a=e[1],o=e[2];break;case 2:n=e[0],a=e[1];break;default:if(!m.isArrayLike(e))throw new TypeError("Elements in edgelists must be tuples.");throw new y["default"](m.sprintf("Edge tuple %j must be a 2-tuple, 3-tuple or 4-tuple.",e))}var u=r.adj.has(n)?r.adj.get(n).get(a)||c(null):c(null);if(null==i)for(i=s(u).length;u[i];)i+=1;var f=u[i]||{};l(f,t,o),r.addEdge(n,a,i,f)})}},{key:"removeEdge",value:function(e,t,r){var n,a=this.adj.get(e);if(a&&(n=a.get(t)),null==n)throw new y["default"](m.sprintf("The edge %j-%j is not in the graph",e,t));if(null==r)for(var i in n){delete n[i];break}else{if(!n[r])throw new y["default"](m.sprintf("The edge %j-%j with key %j is not in the graph",e,t,r));delete n[r]}0===s(n).length&&(a["delete"](t),m.nodesAreEqual(e,t)||this.adj.get(t)["delete"](e))}},{key:"removeEdgesFrom",value:function(e){var t=this;m.forEach(e,function(e){try{t.removeEdge(e[0],e[1],e[2])}catch(r){if(!(r instanceof y["default"]))throw r}})}},{key:"hasEdge",value:function(e,t,r){var n=this.adj.get(e);return n?n.has(t)&&(null==r||!!n.get(t)[r]):!1}},{key:"edges",value:function(e,t,r){return f(this.edgesIter(e,t,r))}},{key:"edgesIter",value:d.mark(function p(e){var t,r,n,a,i,o,s,l,c,f,v,b,g,y,w,x,k,j,E,_,S=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],O=arguments.length<=2||void 0===arguments[2]?!1:arguments[2];return d.wrap(function(p){for(var M=this;;)switch(p.prev=p.next){case 0:"boolean"==typeof e&&(O=S,S=e,e=null),t=new m.Set,r=null==e?this.adj:m.mapIterator(this.nbunchIter(e),function(e){return m.tuple2(e,M.adj.get(e))}),n=!0,a=!1,i=void 0,p.prev=6,o=h(r);case 8:if(n=(s=o.next()).done){p.next=53;break}l=u(s.value,2),c=l[0],f=l[1],v=!0,b=!1,g=void 0,p.prev=15,y=h(f);case 17:if(v=(w=y.next()).done){p.next=36;break}if(x=u(w.value,2),k=x[0],j=x[1],t.has(k)){p.next=33;break}p.t0=d.keys(j);case 23:if((p.t1=p.t0()).done){p.next=32;break}return E=p.t1.value,_=[c,k],O&&(_[2]=E),S&&_.push(j[E]),p.next=30,_;case 30:p.next=23;break;case 32:t.add(c);case 33:v=!0,p.next=17;break;case 36:p.next=42;break;case 38:p.prev=38,p.t2=p["catch"](15),b=!0,g=p.t2;case 42:p.prev=42,p.prev=43,!v&&y["return"]&&y["return"]();case 45:if(p.prev=45,!b){p.next=48;break}throw g;case 48:return p.finish(45);case 49:return p.finish(42);case 50:n=!0,p.next=8;break;case 53:p.next=59;break;case 55:p.prev=55,p.t3=p["catch"](6),a=!0,i=p.t3;case 59:p.prev=59,p.prev=60,!n&&o["return"]&&o["return"]();case 62:if(p.prev=62,!a){p.next=65;break}throw i;case 65:return p.finish(62);case 66:return p.finish(59);case 67:case"end":return p.stop()}},p,this,[[6,55,59,67],[15,38,42,50],[43,,45,49],[60,,62,66]])})},{key:"getEdgeData",value:function(e,t,r,n){var a=this.adj.get(e);return a?null==r?a.get(t)||n:a.has(t)&&a.get(t)[r]||n:void 0;
|
|
}},{key:"degreeIter",value:d.mark(function v(e,t){var r,n,a,i,o,l,c,f,p,b,g,y;return d.wrap(function(d){for(var v=this;;)switch(d.prev=d.next){case 0:"string"==typeof e&&(t=e,e=null),r=null==e?this.adj:m.mapIterator(this.nbunchIter(e),function(e){return m.tuple2(e,v.adj.get(e))}),n=!0,a=!1,i=void 0,d.prev=5,o=h(r);case 7:if(n=(l=o.next()).done){d.next=25;break}if(c=u(l.value,2),f=c[0],p=c[1],b=0,null!=t){d.next=18;break}return p.forEach(function(e){return b+=s(e).length}),d.next=16,[f,b+ +(p.has(f)&&s(p.get(f)).length)];case 16:d.next=22;break;case 18:if(p.forEach(function(e){for(var r in e)b+=m.getDefault(e[r][t],1)}),p.has(f)){g=p.get(f);for(y in g)b+=m.getDefault(g[y][t],1)}return d.next=22,[f,b];case 22:n=!0,d.next=7;break;case 25:d.next=31;break;case 27:d.prev=27,d.t0=d["catch"](5),a=!0,i=d.t0;case 31:d.prev=31,d.prev=32,!n&&o["return"]&&o["return"]();case 34:if(d.prev=34,!a){d.next=37;break}throw i;case 37:return d.finish(34);case 38:return d.finish(31);case 39:case"end":return d.stop()}},v,this,[[5,27,31,39],[32,,34,38]])})},{key:"isMultigraph",value:function(){return!0}},{key:"isDirected",value:function(){return!1}},{key:"toDirected",value:function(){var t=new(e("./MultiDiGraph"));t.addNodesFrom(this);var r=!0,n=!1,a=void 0;try{for(var i,o=h(this.adjacencyIter());!(r=(i=o.next()).done);r=!0){var s=u(i.value,2),l=s[0],c=s[1],f=!0,d=!1,p=void 0;try{for(var v,b=h(c);!(f=(v=b.next()).done);f=!0){var g=u(v.value,2),y=g[0],w=g[1];for(var x in w)t.addEdge(l,y,x,m.deepcopy(w[x]))}}catch(k){d=!0,p=k}finally{try{!f&&b["return"]&&b["return"]()}finally{if(d)throw p}}}}catch(k){n=!0,a=k}finally{try{!r&&o["return"]&&o["return"]()}finally{if(n)throw a}}return t.graph=m.deepcopy(this.graph),t.node=m.deepcopy(this.node),t}},{key:"selfloopEdges",value:function(){var e=arguments.length<=0||void 0===arguments[0]?!1:arguments[0],t=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],r=[],n=!0,a=!1,i=void 0;try{for(var o,s=h(this.adj);!(n=(o=s.next()).done);n=!0){var l=u(o.value,2),c=l[0],f=l[1];if(f.has(c)){var d=f.get(c);for(var p in d){var v=[c,c];t&&(v[2]=p),e&&v.push(d[p]),r.push(v)}}}}catch(b){a=!0,i=b}finally{try{!n&&s["return"]&&s["return"]()}finally{if(a)throw i}}return r}},{key:"numberOfEdges",value:function(e,t){if(null==e||null==t)return this.size();var r=this.get(e);return r&&r.has(t)?s(r.get(t)).length:0}},{key:"subgraph",value:function(e){var t=this.nbunchIter(e),r=new this.constructor;this.node.forEach(function(e,t){return r.node.set(t,e)});var n=r.adj,a=this.adj,i=!0,o=!1,s=void 0;try{for(var l,c=h(t);!(i=(l=c.next()).done);i=!0){var f=l.value,d=new m.Map;n.set(f,d);var p=!0,v=!1,b=void 0;try{for(var g,y=h(a.get(f));!(p=(g=y.next()).done);p=!0){var w=u(g.value,2),x=w[0],k=w[1];if(n.has(x)){var j=m.clone(k);d.set(x,j),n.get(x).set(f,j)}}}catch(E){v=!0,b=E}finally{try{!p&&y["return"]&&y["return"]()}finally{if(v)throw b}}}}catch(E){o=!0,s=E}finally{try{!i&&c["return"]&&c["return"]()}finally{if(o)throw s}}return r.graph=this.graph,r}}],[{key:"__name__",get:function(){return"MultiGraph"}}]),r}(b["default"]);r["default"]=w,t.exports=r["default"]},{"../_internals":20,"../exceptions/JSNetworkXError":73,"./Graph":61,"./MultiDiGraph":62,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/object/assign":92,"babel-runtime/core-js/object/create":93,"babel-runtime/core-js/object/keys":97,"babel-runtime/helpers/class-call-check":101,"babel-runtime/helpers/create-class":102,"babel-runtime/helpers/get":105,"babel-runtime/helpers/inherits":106,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/sliced-to-array":109,"babel-runtime/regenerator":166}],64:[function(e,t,r){"use strict";function n(e){return e.nodes()}function a(e){return e.nodesIter()}function i(e,t){return e.edges(t)}function o(e,t){return e.edgesIter(t)}function u(e,t,r){return e.degree(t,r)}function s(e,t){return e.neighbors(t)}function l(e){return e.numberOfNodes()}function c(e){return e.numberOfEdges()}function f(e){var t,r=e.numberOfNodes(),n=e.numberOfEdges();return t=0===n?0:e.isDirected()?n/(r*(r-1)):2*n/(r*(r-1))}function d(e){var t=j(e.degree().values()),r=Math.max.apply(Math,t)+1,n=I.fillArray(r,0);return t.forEach(function(e){n[e]+=1}),n}function h(e){return e.isDirected()}function p(e){function t(){throw new M["default"]("Frozen graph can't be modified")}return e.addNode=t,e.addNodesFrom=t,e.removeNode=t,e.removeNodesFrom=t,e.addEdge=t,e.addEdgesFrom=t,e.removeEdge=t,e.removeEdgesFrom=t,e.clear=t,e.frozen=!0,e}function v(e){return!!e.frozen}function b(e,t){return e.subgraph(t)}function g(e){var t=arguments.length<=1||void 0===arguments[1]?!0:arguments[1],r=new e.constructor;return t&&r.addNodesFrom(e),r}function y(e,t){var r="";if(null==t){var n="Name: %s\nType: %s\nNumber of nodes: %s\nNumber of edges: %s\n",a=e.numberOfNodes();if(r=I.sprintf(n,e.name,e.constructor.__name__,a,e.numberOfEdges()),a>0)if(e.isDirected()){var i=0,o=0,u=!0,s=!1,l=void 0;try{for(var c,f=E(e.inDegree().values());!(u=(c=f.next()).done);u=!0){var d=c.value;i+=d}}catch(h){s=!0,l=h}finally{try{!u&&f["return"]&&f["return"]()}finally{if(s)throw l}}var p=!0,v=!1,b=void 0;try{for(var g,y=E(e.outDegree().values());!(p=(g=y.next()).done);p=!0){var m=g.value;o+=m}}catch(h){v=!0,b=h}finally{try{!p&&y["return"]&&y["return"]()}finally{if(v)throw b}}r+=I.sprintf("Average in degree: %s\nAverage out degree: %s",(i/a).toFixed(4),(o/a).toFixed(4))}else{var w=0,x=!0,k=!1,j=void 0;try{for(var _,S=E(e.degree().values());!(x=(_=S.next()).done);x=!0){var O=_.value;w+=O}}catch(h){k=!0,j=h}finally{try{!x&&S["return"]&&S["return"]()}finally{if(k)throw j}}r+=I.sprintf("Average degree: %s",(w/a).toFixed(4))}}else{if(!e.hasNode(t))throw new M["default"](I.sprintf("Node %j not in graph.",t));r=I.sprintf("Node %j has the following properties:\nDegree: %s\nNeighbors: %s",t,e.degree(t),e.neighbors(t).map(function(e){return JSON.stringify(e)}).join(" "))}return r}function m(e,t,r){if(I.isMap(r))r.forEach(function(r,n){return e.node.get(n)[t]=r});else{if(!I.isPlainObject(r))throw new TypeError("Attributes must be a Map or a plain object");for(var n in r)n=isNaN(n)?n:+n,e.node.get(n)[t]=r[n]}}function w(e,t){var r=new _;return e.node.forEach(function(e,n){n.hasOwnProperty(t)&&r.set(e,n[t])}),r}function x(e,t,r){r.forEach(function(r,n){e.get(r[0]).get(r[1])[t]=n})}function k(e,t){var r=new _;return e.edges(null,!0).forEach(function(e){if(e[2].hasOwnProperty(t)){var n=e[2][t];e.length=2,r.set(e,n)}}),r}var j=e("babel-runtime/core-js/array/from")["default"],E=e("babel-runtime/core-js/get-iterator")["default"],_=e("babel-runtime/core-js/map")["default"],S=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.nodes=n,r.nodesIter=a,r.edges=i,r.edgesIter=o,r.degree=u,r.neighbors=s,r.numberOfNodes=l,r.numberOfEdges=c,r.density=f,r.degreeHistogram=d,r.isDirected=h,r.freeze=p,r.isFrozen=v,r.subgraph=b,r.createEmptyCopy=g,r.info=y,r.setNodeAttributes=m,r.getNodeAttributes=w,r.setEdgeAttributes=x,r.getEdgeAttributes=k;var O=e("../exceptions/JSNetworkXError"),M=S(O),I=e("../_internals")},{"../_internals":20,"../exceptions/JSNetworkXError":73,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/map":91,"babel-runtime/helpers/interop-require-default":107}],65:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default")["default"],a=e("babel-runtime/helpers/interop-require-wildcard")["default"],i=e("babel-runtime/helpers/defaults")["default"];Object.defineProperty(r,"__esModule",{value:!0});var o=e("./Graph"),u=n(o),s=e("./DiGraph"),l=n(s),c=e("./MultiGraph"),f=n(c),d=e("./MultiDiGraph"),h=n(d),p=e("./functions"),v=a(p);r.Graph=u["default"],r.DiGraph=l["default"],r.MultiGraph=f["default"],r.MultiDiGraph=h["default"],r.functions=v,i(r,a(p))},{"./DiGraph":60,"./Graph":61,"./MultiDiGraph":62,"./MultiGraph":63,"./functions":64,"babel-runtime/helpers/defaults":103,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/interop-require-wildcard":108}],66:[function(e,t,r){"use strict";function n(e,t){var r=new h.Map;if(null!=t)s(t).forEach(function(n){return r.set(n,e.neighbors(n).filter(function(e){return t.indexOf(e)>-1}))});else{var n=!0,a=!1,i=void 0;try{for(var o,u=l(e);!(n=(o=u.next()).done);n=!0){var c=o.value;r.set(c,e.neighbors(c))}}catch(f){a=!0,i=f}finally{try{!n&&u["return"]&&u["return"]()}finally{if(a)throw i}}}return r}function a(e,t){var r=d["default"](t);if(r.addNodesFrom(e.keys()),r.isMultigraph()&&!r.isDirected()){var n=new h.Set;e.forEach(function(e,t){e.forEach(function(e){n.has(e)||r.addEdge(t,e)}),n.add(t)})}else e.forEach(function(e,t){e.forEach(function(e){return r.addEdge(t,e)})});return r}function i(e,t,r){var n=new h.Map;if(null!=t)t=s(t),t.forEach(function(a){var i=n.set(a,new h.Map);e.get(a).forEach(function(e,n){t.indexOf(e)>-1&&i.set(e,null==r?n:r)})});else{var a=!0,i=!1,o=void 0;try{for(var c,f=function(){var e=u(c.value,2),t=e[0],a=e[1],i=n.set(a,new h.Map);t.forEach(function(e,t){i.set(t,null==r?e:r)})},d=l(e.adjacencyIter());!(a=(c=d.next()).done);a=!0)f()}catch(p){i=!0,o=p}finally{try{!a&&d["return"]&&d["return"]()}finally{if(i)throw o}}}return n}function o(e,t,r){var n=d["default"](t),a=new h.Set;if(n.addNodesFrom(e.keys()),r)if(n.isDirected())e.forEach(function(e,t){if(h.isArrayLike(e))throw new TypeError("Value is not a map.");e.forEach(function(e,r){for(var a in e){var i=e[a];n.isMultigraph()?n.addEdge(t,r,a,i):n.addEdge(t,r,i)}})});else{var i=n.isMultigraph();e.forEach(function(e,t){if(h.isArrayLike(e))throw new TypeError("Not a map");e.forEach(function(e,r){if(!a.has(h.tuple2(t,r))){for(var o in e){var u=e[o];i?n.addEdge(t,r,o,u):n.addEdge(t,r,u)}a.add(h.tuple2(r,t))}})})}else n.isMultigraph()&&!n.isDirected()?e.forEach(function(e,t){if(h.isArrayLike(e))throw new TypeError("Value is not a map");e.forEach(function(e,r){a.has(h.tuple2(t,r))||(n.addEdge(t,r,e),a.add(h.tuple2(r,t)))})}):e.forEach(function(e,t){if(h.isArrayLike(e))throw new TypeError("Value is not a map");e.forEach(function(e,r){n.addEdge(t,r,e)})});return n}var u=e("babel-runtime/helpers/sliced-to-array")["default"],s=e("babel-runtime/core-js/array/from")["default"],l=e("babel-runtime/core-js/get-iterator")["default"],c=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.toMapOfLists=n,r.fromMapOfLists=a,r.toMapOfMaps=i,r.fromMapOfMaps=o;var f=e("./prepCreateUsing"),d=c(f),h=e("../_internals")},{"../_internals":20,"./prepCreateUsing":68,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/sliced-to-array":109}],67:[function(e,t,r){"use strict";function n(e){function t(e,t,a,i){var o=r[e.type];if(o){for(var u=0,s=o.length;s>u&&!e.isPropgationStopped();u+=3)o[u+2]&&o[u].call(o[u+1]||t,e);if(!e.isDefaultPrevented()&&(i?n[a].apply(t,i):n[a].call(t),!e.isPropgationStopped()))for(u=0,s=o.length;s>u&&!e.isPropgationStopped();u+=3)o[u+2]||o[u].call(o[u+1]||t,e)}}if("function"==typeof e.on)return e;var r={addNodes:[],removeNodes:[],addEdges:[],removeEdges:[],clear:[]},n=e.constructor.prototype;return e.on=function(e,t,n,a){if(!r[e])throw new Error('Event "'+e+'" is not supported.');r[e].push(t,n,!!a)},e.off=function(e,t,n){var a,i,o;if(1===arguments.length)r[e].length=0;else if(2===arguments.length)for(a=r[e],i=a.length-2,"function"!=typeof t&&(i+=1),o=i;o>0;o-=2)a[o]===t&&a.splice(o,3);else for(a=r[e],i=a.length-2,o=i;o>0;o-=2)a[o]===t&&a[o+1]===n&&a.splice(o,2)},e.addNode=function(r){var n=e.hasNode(r)?[]:[r],a=new c("addNodes",this);a.nodes=[r],a.newNodes=n,t(a,this,"addNode",arguments)},e.addNodesFrom=function(r){var n=[],a=[],i=!0,o=!1,u=void 0;try{for(var f,d=s(r);!(i=(f=d.next()).done);i=!0){var h=f.value,p=Array.isArray(h)?h[0]:h;n.push(Array.isArray(h)?h.slice():h),e.hasNode(p)||a.push(p)}}catch(v){o=!0,u=v}finally{try{!i&&d["return"]&&d["return"]()}finally{if(o)throw u}}var b=new c("addNodes",this);b.nodes=n.filter(function(e){return Array.isArray(e)?e[0]:e}),b.newNodes=a;var g=l(arguments);g[0]=n,t(b,this,"addNodesFrom",g)},e.addEdge=function(e,r){var n=[[e,r]],a=this.hasEdge(e,r)?[]:n,i=new c("addEdges",this);i.edges=n,i.newEdges=a,t(i,this,"addEdge",arguments)},e.addEdgesFrom=function(e){var r=[],n=[],a=!0,i=!1,o=void 0;try{for(var u,f=s(e);!(a=(u=f.next()).done);a=!0){var d=u.value;r.push(d.slice()),this.hasEdge(d[0],d[1])||n.push(d.slice(0,2))}}catch(h){i=!0,o=h}finally{try{!a&&f["return"]&&f["return"]()}finally{if(i)throw o}}var p=new c("addEdges",this);p.edges=r,p.newEdges=n;var v=l(arguments);v[0]=r,t(p,this,"addEdgesFrom",v)},e.removeNode=function(e){var r=new c("removeNodes",this);r.nodes=[e],t(r,this,"removeNode",arguments)},e.removeNodesFrom=function(e){var r=[],n=!0,a=!1,i=void 0;try{for(var o,u=s(e);!(n=(o=u.next()).done);n=!0){var f=o.value;r.push(Array.isArray(f)?f.slice():f)}}catch(d){a=!0,i=d}finally{try{!n&&u["return"]&&u["return"]()}finally{if(a)throw i}}var h=new c("removeNodes",this);h.nodes=r;var p=l(arguments);p[0]=r,t(h,this,"removeNodesFrom",p)},e.removeEdge=function(e,r){var n=new c("removeEdges",this);n.edges=[[e,r]],t(n,this,"removeEdge",arguments)},e.removeEdgesFrom=function(e){var r=[],n=!0,a=!1,i=void 0;try{for(var o,u=s(e);!(n=(o=u.next()).done);n=!0){var f=o.value;r.push(f.slice())}}catch(d){a=!0,i=d}finally{try{!n&&u["return"]&&u["return"]()}finally{if(a)throw i}}var h=new c("removeEdges");h.edges=r;var p=l(arguments);p[0]=r,t(h,this,"removeEdgesFrom",p)},e.clear=function(){t(new c("clear",this),this,"clear")},e}function a(e){var t=e.constructor.prototype;return"function"!=typeof e.on?e:(e.addNode=t.addNode,e.addNodesFrome=t.addNodesFrom,e.addEdge=t.addEdge,e.addEdgesFrome=t.addEdgesFrom,e.removeNode=t.removeNode,e.removeEdge=t.removeEdge,e.removeNodesFrom=t.removeNodesFrom,e.removeEdgesFrom=t.removeEdgesFrom,e.clear=t.clear,delete e.on,delete e.off,e)}function i(e){return"function"==typeof e.on&&"function"==typeof e.off}var o=e("babel-runtime/helpers/create-class")["default"],u=e("babel-runtime/helpers/class-call-check")["default"],s=e("babel-runtime/core-js/get-iterator")["default"],l=e("babel-runtime/core-js/array/from")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.observe=n,r.unobserve=a,r.isObservable=i;var c=function(){function e(t,r){u(this,e),this.type=t,this.target=r,this._defaultAction=!0,this._propagate=!0}return o(e,[{key:"stopPropagation",value:function(){this._propagate=!1}},{key:"isPropgationStopped",value:function(){return!this._propagate}},{key:"preventDefault",value:function(){this._defaultAction=!1}},{key:"isDefaultPrevented",value:function(){return!this._defaultAction}}]),e}()},{"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/class-call-check":101,"babel-runtime/helpers/create-class":102}],68:[function(e,t,r){"use strict";function n(t){var r,n=e("../classes/Graph");if(null==t)r=new n;else{r=t;try{r.clear()}catch(a){throw new TypeError("Input graph is not a jsnx graph type")}}return r}Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=n,t.exports=r["default"]},{"../classes/Graph":61}],69:[function(e,t,r){"use strict";function n(e,t){var r=arguments.length<=2||void 0===arguments[2]?!1:arguments[2],n=null;if(S.call(e,"adj"))try{return n=w.fromMapOfMaps(e.adj,t,e.isMultigraph()),S.call(e,"graph")&&"object"==typeof e.graph&&(n.graph=_.clone(e.graph)),S.call(e,"node")&&_.isMap(e.node)&&(n.node=new _.Map,e.node.forEach(function(e,t){return n.node.set(t,_.clone(e))})),n}catch(a){throw a}if(_.isMap(e))try{return w.fromMapOfMaps(e,t,r)}catch(i){try{return w.fromMapOfLists(e,t)}catch(a){throw new Error("Map data structure cannot be converted to a graph.")}}if(_.isPlainObject(e))try{return l(e,t,r)}catch(i){try{return u(e,t)}catch(a){throw new Error("Object data structure cannot be converted to a graph.")}}if(_.isArrayLike(e))try{return f(e,t)}catch(i){throw new Error("Input is not a valid edge list")}return n}function a(e){return e.toUndirected()}function i(e){return e.toDirected()}function o(e,t){var r=function(e){return t.indexOf(e)>-1},n=h(null);null==t?(t=e,r=function(e){return t.hasNode(e)}):t=p(t);var a=!0,i=!1,o=void 0;try{for(var u,s=v(t);!(a=(u=s.next()).done);a=!0){var l=u.value;n[l]=e.neighbors(l).filter(r)}}catch(c){i=!0,o=c}finally{try{!a&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}function u(e,t){var r=k["default"](t);r.addNodesFrom(b.mark(function u(){var t;return b.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:r.t0=b.keys(e);case 1:if((r.t1=r.t0()).done){r.next=7;break}return t=r.t1.value,r.next=5,isNaN(t)?t:+t;case 5:r.next=1;break;case 7:case"end":return r.stop()}},u,this)})());var n,a;if(r.isMultigraph()&&!r.isDirected()){var i=new _.Set;for(n in e)a=e[n],n=isNaN(n)?n:+n,_.forEach(a,function(e){i.has(e)||r.addEdge(n,e)}),i.add(n)}else{var o=[];for(n in e)a=e[n],n=isNaN(n)?n:+n,_.forEach(a,function(e){o.push([n,e])});r.addEdgesFrom(o)}return r}function s(e,t,r){var n={};if(null!=t)t=p(t),null!=r?t.forEach(function(a){n[a]={},e.get(a).forEach(function(e,i){t.indexOf(i)>-1&&(n[a][i]=r)})}):t.forEach(function(r){n[r]={},e.get(r).forEach(function(e,a){t.indexOf(a)>-1&&(n[r][a]=e)})});else if(null!=r){var a=!0,i=!1,o=void 0;try{for(var u,s=v(e.adjacencyIter());!(a=(u=s.next()).done);a=!0){var l=d(u.value,2),c=l[0],f=l[1];n[f]=E["default"](c,function(){return r})}}catch(h){i=!0,o=h}finally{try{!a&&s["return"]&&s["return"]()}finally{if(i)throw o}}}else{var b=!0,g=!1,y=void 0;try{for(var m,w=v(e.adjacencyIter());!(b=(m=w.next()).done);b=!0){var x=d(m.value,2),c=x[0],f=x[1];n[f]=_.clone(c)}}catch(h){g=!0,y=h}finally{try{!b&&w["return"]&&w["return"]()}finally{if(g)throw y}}}return n}function l(e,t){var r=arguments.length<=2||void 0===arguments[2]?!1:arguments[2],n=k["default"](t),a=new _.Set;if(n.addNodesFrom(b.mark(function f(){var t;return b.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:r.t0=b.keys(e);case 1:if((r.t1=r.t0()).done){r.next=7;break}return t=r.t1.value,r.next=5,isNaN(t)?t:+t;case 5:r.next=1;break;case 7:case"end":return r.stop()}},f,this)})()),r)if(n.isDirected())for(var i in e){var o=e[i];if(_.isArrayLike(o))throw new TypeError("Inner object seems to be an array");i=isNaN(i)?i:+i;for(var u in o){var s=o[u];u=isNaN(u)?u:+u;for(var l in s)n.isMultigraph()?n.addEdge(i,u,l,s[l]):n.addEdge(i,u,s[l])}}else for(var i in e){var o=e[i];if(_.isArrayLike(o))throw new TypeError("Inner object seems to be an array");i=isNaN(i)?i:+i;for(var u in o){var s=o[u];if(u=isNaN(u)?u:+u,!a.has([i,u])){for(var l in s)n.isMultigraph()?n.addEdge(i,u,l,s[l]):n.addEdge(i,u,s[l]);a.add([u,i])}}}else if(n.isMultigraph()&&!n.isDirected())for(var i in e){var o=e[i];if(_.isArrayLike(o))throw new TypeError("Inner object seems to be an array");i=isNaN(i)?i:+i;for(var u in o){var c=o[u];u=isNaN(u)?u:+u,a.has([i,u])||(n.addEdge(i,u,c),a.add([u,i]))}}else for(var i in e){var o=e[i];if(_.isArrayLike(o))throw new TypeError("Inner object seems to be an array");i=isNaN(i)?i:+i;for(var u in o){var c=o[u];u=isNaN(u)?u:+u,n.addEdge(i,u,c)}}return n}function c(e,t){return null!=t?e.edges(t,!0):e.edges(null,!0)}function f(e,t){var r=k["default"](t);return r.addEdgesFrom(e),r}var d=e("babel-runtime/helpers/sliced-to-array")["default"],h=e("babel-runtime/core-js/object/create")["default"],p=e("babel-runtime/core-js/array/from")["default"],v=e("babel-runtime/core-js/get-iterator")["default"],b=e("babel-runtime/regenerator")["default"],g=e("babel-runtime/helpers/interop-require-wildcard")["default"],y=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.toNetworkxGraph=n,r.convertToUndirected=a,r.convertToDirected=i,r.toDictOfLists=o,r.fromDictOfLists=u,r.toDictOfDicts=s,r.fromDictOfDicts=l,r.toEdgelist=c,r.fromEdgelist=f;var m=e("./contrib/convert"),w=g(m),x=e("./contrib/prepCreateUsing"),k=y(x),j=e("lodash/object/mapValues"),E=y(j),_=e("./_internals"),S=Object.prototype.hasOwnProperty},{"./_internals":20,"./contrib/convert":66,"./contrib/prepCreateUsing":68,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/object/create":93,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/interop-require-wildcard":108,"babel-runtime/helpers/sliced-to-array":109,"babel-runtime/regenerator":166,"lodash/object/mapValues":237}],70:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default")["default"],a=e("babel-runtime/helpers/defaults")["default"],i=e("babel-runtime/helpers/interop-require-wildcard")["default"];Object.defineProperty(r,"__esModule",{value:!0});var o=e("./svg"),u=n(o);r.svg=u["default"],a(r,i(o))},{"./svg":71,"babel-runtime/helpers/defaults":103,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/interop-require-wildcard":108}],71:[function(e,t,r){(function(t){"use strict";function n(e,t,r,n){return 180*Math.atan2(n-t,r-e)/Math.PI}function a(e){if(Array.isArray(e))return e;var t=[],r=0,n=!0,a=!1,i=void 0;try{for(var o,u=m(e);!(n=(o=u.next()).done);n=!0){var s=o.value;t[r++]=Array.isArray(s)?w(s):s}}catch(l){a=!0,i=l}finally{try{!n&&u["return"]&&u["return"]()}finally{if(a)throw i}}return t}function i(e,t,r){if("boolean"==typeof t&&(r=t,t=null),t=t||_||{},_=t,t.d3&&(M=t.d3),t=k.deepmerge({},I,t),!M)throw new Error("D3 requried for draw()");if(null==t.element&&null==E)throw new Error("Output element required for draw()");E=t.element||E,M.select(E).select("svg.jsnx").remove();var a,i,c,f=M.select(E),d=[],h=[],y=f.append("svg").classed("jsnx",!0).attr("pointer-events","all"),w=y.append("g"),x=w.append("g").classed("edges",!0).selectAll("g.edge"),S=w.append("g").classed("nodes",!0).selectAll("g.node"),O=M.layout.force(),P=t.width||parseInt(f.style("width"),10),N=t.height||parseInt(f.style("height"),10),A=t.layoutAttr,$=t.nodelist||null,q=e.isDirected(),D=t.weighted,L={nodeSelection:S,edgeSelection:x};if(t.withLabels){var F=t.labels;switch(typeof F){case"object":a=function(e){return k.getDefault(F[e.node],"")};break;case"function":a=F;break;case"string":a=function(e){return e.data[F]};break;default:a=function(e){return e.node}}}if(t.labels=a,D){var G=t.weights;switch(typeof weigths){case"object":c=function(e){return k.getDefault(G[e.node],1)};break;case"function":c=G;break;case"string":c=function(e){return k.getDefault(e.data[G],1)};break;default:c=function(e){return 1}}}if(t.withEdgeLabels){var C=t.edgeLabels;if(D&&null==C)i=c;else switch(typeof C){case"object":i=function(e){return k.getDefault(F[e.node],"")};break;case"function":i=C;break;case"string":i=function(e){return e.data[C]};break;default:i=function(e){return e.edge}}t.edgeLabels=i}if(D&&t.weightedStroke){var z=1,T=!0,J=!1,R=void 0;try{for(var X,B=m(e.edgesIter(null,!0));!(T=(X=B.next()).done);T=!0){var U=X.value,V=(U.u,U.v,U.data),W=c({data:V});W>z&&(z=W)}}catch(H){J=!0,R=H}finally{try{!T&&B["return"]&&B["return"]()}finally{if(J)throw R}}var K=M.scale.linear().range([2,t.edgeStyle["stroke-width"]]).domain([0,z]);t.edgeStyle["stroke-width"]=function(e){return K(c.call(this,e))}}y.select("svg.jsnx").remove(),y.attr("width",P+"px").attr("height",N+"px").style("opacity",1e-6).transition().duration(1e3).style("opacity",1);var Y={size:!0,nodes:!0,links:!0,start:!0};for(var Q in A)Y[Q]!==!0&&O[Q](A[Q]);O.nodes(d).links(h).size([P,N]);var Z=1,ee=1;t.panZoom.enabled&&!function(){var e=t.panZoom.scale,r=!1,n=1,a=Z;y.call(M.behavior.zoom().on("zoom",function(){if(M.event.sourceEvent){var t=M.event.sourceEvent.shiftKey,i=e&&t||!(e||t);i&&!r?(n=M.event.scale,a=Z,r=!0):!i&&r&&(r=!1),Z=i?a*(M.event.scale/n):Z,ee=i?ee:Z/M.event.scale;var o=M.event.translate;w.attr("transform","translate("+o[0]+","+o[1]+")scale("+M.event.scale+")"),ue()}}))}();var te=j,re=t.edgeOffset,ne=t.nodeAttr.r,ae=t.nodeStyle["stroke-width"];"circle"===t.nodeShape?("function"!=typeof ne&&(ne=function(){return t.nodeAttr.r}),"function"!=typeof ae&&(ae=function(){return t.nodeStyle["stroke-width"]}),re=function(e){return[ne(e.source)+ae(e.source),ne(e.target)+ae(e.target)]}):Array.isArray(re)?re=function(){return t.edgeOffset}:"number"==typeof re&&(re=function(){return[t.edgeOffset,t.edgeOffset]});var ie=t.edgeStyle["stroke-width"];"function"!=typeof ie&&(ie=function(){return t.edgeStyle["stroke-width"]});var oe=t.edgeLabelOffset;te=q?function(){L.edgeSelection.each(function(e){if(e.source!==e.target){var t=M.select(this),r=e.source.x,a=e.source.y,i=e.target.x,o=e.target.y,u=n(r,a,i,o),s=Math.sqrt(Math.pow(i-r,2)+Math.pow(o-a,2)),l=re(e);l=[l[0]*ee,l[1]*ee],t.attr("transform",["translate(",r,",",a,")","rotate(",u,")"].join(""));var c=ie(e)*ee,f=s-l[1]-2*c,d=c/2;t.select(".line").attr("d",["M",l[0],0,"L",l[0],-d,"L",f,-d,"L",f,-c,"L",s-l[1],0,"z"].join(" "));var h=1/ee;t.select("text").attr("x",oe.x*h+l[0]+(s*h-l[0]-l[1])/2).attr("y",-ie(e)/2+-oe.y*h).attr("transform","scale("+ee+")")}})}:function(){L.edgeSelection.each(function(e){if(e.source!==e.target){var r=M.select(this),a=e.source.x,i=e.source.y,o=e.target.x,u=e.target.y,s=n(a,i,o,u),l=Math.sqrt(Math.pow(o-a,2)+Math.pow(u-i,2)),c=l/2,f=re(e);f=[f[0]*ee,f[1]*ee];var d=1/ee,h=ie(e)*ee,p=s>90&&279>s;r.attr("transform",["translate(",a,",",i,")","rotate(",s,")"].join("")),r.select(".line").attr("d",["M",f[0],h/4,"L",f[0],-h/4,"L",l-f[1],-h/4,"L",l-f[1],h/4,"z"].join(" ")),t.withEdgeLabels&&r.select("text").attr("x",(p?1:-1)*oe.x*d+f[0]+(l*d-f[0]-f[1])/2).attr("y",-ie(e)/4+-oe.y*d).attr("transform","scale("+ee+")"+(p?"rotate(180,"+c*(1/ee)+",0)":""))}})};var ue=function(){L.nodeSelection.attr("transform",function(e){return["translate(",e.x,",",e.y,")","scale(",ee,")"].join("")}),te()};O.on("tick",ue);var se=e.nodesIter(),le=e.edgesIter();return $&&(r=!1,se=e.nbunch_iter($),le=e.edges_iter($)),L.nodeSelection=o(e,se,O,S,t),L.edgeSelection=u(e,le,O,x,i),s(L.nodeSelection,t),l(L.edgeSelection,t,null,q),r?p(e,O,t,L):v(e)?b(e):g(e),O.start(),O}function o(e,t,r,n,a){var i=r.nodes(),o=!0,u=!1,s=void 0;try{for(var l,f=m(t);!(o=(l=f.next()).done);o=!0){var d=l.value,h=e.node.get(d),p={node:d,data:h,G:e};i.push(p),h[O]=p}}catch(v){u=!0,s=v}finally{try{!o&&f["return"]&&f["return"]()}finally{if(u)throw s}}n=n.data(i,c);var b=r.drag().on("dragstart",function(e){M.event.sourceEvent.stopPropagation(),a.stickyDrag&&(e.fixed=!0,M.select(this).classed("fixed",!0))}),g=n.enter().append("g").classed("node",!0).call(b);return g.append(a.nodeShape).classed("node-shape",!0),a.labels&&g.append("text").text(a.labels),n}function u(e,t,r,n,a){var i=r.links(),o=!0,u=!1,s=void 0;try{for(var l,c=m(t);!(o=(l=c.next()).done);o=!0){var d=y(l.value,3),h=d[0],p=d[1],v=d[2];v=v||e.getEdgeData(h,p);var b={edge:[h,p],source:e.node.get(h)[O],target:e.node.get(p)[O],data:v,G:e};i.push(b),v[O]=b}}catch(g){u=!0,s=g}finally{try{!o&&c["return"]&&c["return"]()}finally{if(u)throw s}}n=n.data(i,f);var w=n.enter().append("g").classed("edge",!0);return w.append("path").classed("line",!0),a&&w.append("text").text(a),n}function s(e,t,r){if(null!=r){var n=new k.Set,a=!0,i=!1,o=void 0;try{for(var u,s=m(r);!(a=(u=s.next()).done);a=!0){var l=u.value;n.add(k.isArrayLike(l)?l[0]:l)}}catch(c){i=!0,o=c}finally{try{!a&&s["return"]&&s["return"]()}finally{if(i)throw o}}e=e.filter(function(e){return n.has(e.node)})}e.selectAll(".node-shape").attr(t.nodeAttr).style(t.nodeStyle),t.withLabels&&e.selectAll("text").attr(t.labelAttr).style(t.labelStyle)}function l(e,t,r,n){if(null!=r){var a=new k.Map,i=!0,o=!1,u=void 0;try{for(var s,l=m(r);!(i=(s=l.next()).done);i=!0){var c=y(s.value,2),f=c[0],d=c[1];a.set(f,d)}}catch(h){o=!0,u=h}finally{try{!i&&l["return"]&&l["return"]()}finally{if(o)throw u}}e=e.filter(function(e){var t=e.edge;return a.get(t[0])===t[1]||n||a.get(t[1])===t[0]})}e.selectAll(".line").attr(t.edgeAttr).style(t.edgeStyle).style("stroke-width",0),t.withEdgeLabels&&e.selectAll("text").attr(t.edgeLabelAttr).style(t.edgeLabelStyle)}function c(e){return e.node}function f(e){return e.edge}function d(e,t,r,n){var a=r.nodes(),i=!0,o=!1,u=void 0;try{for(var s,l=m(e.nbunchIter(t));!(i=(s=l.next()).done);i=!0){var f=s.value,d=a.indexOf(e.node.get(f)[O]);d>-1&&a.splice(d,1)}}catch(h){o=!0,u=h}finally{try{!i&&l["return"]&&l["return"]()}finally{if(o)throw u}}return n=n.data(a,c),n.exit().remove(),n}function h(e,t,r,n){var a=r.links(),i=!0,o=!1,u=void 0;try{for(var s,l=m(t);!(i=(s=l.next()).done);i=!0){var c=y(s.value,2),d=c[0],h=c[1],p=a.indexOf(e.getEdgeData(d,h,{})[O]);p>-1&&a.splice(p,1)}}catch(v){o=!0,u=v}finally{try{!i&&l["return"]&&l["return"]()}finally{if(o)throw u}}return n=n.data(a,f),n.exit().remove(),n}function p(e,t,r,n){b(e,!1);var i=e.constructor.prototype,p=r.edgeLabels,v=e.isDirected();e.addNode=function(e,a){var u=!this.hasNode(e);i.addNode.call(this,e,a),u&&(n.nodeSelection=o(this,[e],t,n.nodeSelection,r)),s(n.nodeSelection,r,[e]),t.start()},e.addNodesFrom=function(e,u){var l=this;e=a(e);var c=e.filter(function(e){return!l.hasNode(k.isArrayLike(e)?e[0]:e)});i.addNodesFrom.call(this,e,u),c.length>0&&(n.nodeSelection=o(this,c,t,n.nodeSelection,r)),s(n.nodeSelection,r,e),t.start()},e.addEdge=function(a,c,f){var d=this,h=!this.hasEdge(a,c),b=[[a,c]],g=h?(a===c?[a]:b[0]).filter(function(e){return!d.hasNode(e)}):[];i.addEdge.call(e,a,c,f),g.length>0&&(n.nodeSelection=o(this,g,t,n.nodeSelection,r),s(n.nodeSelection,r,g)),h&&(n.edgeSelection=u(this,b,t,n.edgeSelection,p)),l(n.edgeSelection,r,b,v),t.start()},e.addEdgesFrom=function(c,f){var d=[],h=[],b=new k.Map,g=new k.Set;c=a(c);var w=!0,x=!1,j=void 0;try{for(var E,_=m(c);!(w=(E=_.next()).done);w=!0){var S=y(E.value,2),O=S[0],M=S[1];this.hasEdge(O,M)||b.get(O)===M||!v&&b.get(M)!==O||(d.push([O,M]),b.set(O,M),this.hasNode(O)||g.has(O)||(h.push(O),g.add(O)),this.hasNode(M)||g.has(M)||(h.push(M),g.add(M)))}}catch(I){x=!0,j=I}finally{try{!w&&_["return"]&&_["return"]()}finally{if(x)throw j}}i.addEdgesFrom.call(e,c,f),h.length>0&&(n.nodeSelection=o(this,h,t,n.nodeSelection,r),s(n.nodeSelection,r,h)),d.length>0&&(n.edgeSelection=u(this,d,t,n.edgeSelection,p)),l(n.edgeSelection,r,d,v),t.start()},e.removeNode=function(e){if(this.hasNode(e)){n.nodeSelection=d(this,[e],t,n.nodeSelection);var r=this.edgesIter([e]);this.isDirected()&&(r=x.mark(function a(t,r){return x.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.delegateYield(r,"t0",1);case 1:return n.delegateYield(t.inEdgesIter([e]),"t1",2);case 2:case"end":return n.stop()}},a,this)})(this,r)),n.edgeSelection=h(this,r,t,n.edgeSelection),t.resume()}i.removeNode.call(this,e)},e.removeNodesFrom=function(e){e=a(e),n.nodeSelection=d(this,e,t,n.nodeSelection);var r=this.edgesIter(e);this.isDirected()&&(r=x.mark(function o(t,r){return x.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.delegateYield(r,"t0",1);case 1:return n.delegateYield(t.inEdgesIter(e),"t1",2);case 2:case"end":return n.stop()}},o,this)})(this,r)),n.edgeSelection=h(this,r,t,n.edgeSelection),t.resume(),i.removeNodesFrom.call(this,e)},e.removeEdge=function(e,r){n.edgeSelection=h(this,[[e,r]],t,n.edgeSelection),t.resume(),i.removeEdge.call(this,e,r)},e.removeEdgesFrom=function(r){r=a(r),n.edgeSelection=h(this,r,t,n.edgeSelection),t.resume(),i.removeEdgesFrom.call(e,r)},e.clear=function(){n.nodeSelection=n.nodeSelection.data([],c),n.nodeSelection.exit().remove(),n.edgeSelection=n.edgeSelection.data([],f),n.edgeSelection.exit().remove(),t.nodes([]).links([]).resume(),i.clear.call(this)},e.bound=!0}function v(e){return e.bound}function b(e){var t=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];if(v(e)){var r=e.constructor.prototype;S.forEach(function(t){return e[t]=r[t]}),delete e.bound,t&&g(e)}}function g(e){var t=!0,r=!1,n=void 0;try{for(var a,i=m(e.nodesIter(!0));!(t=(a=i.next()).done);t=!0){var o=y(a.value,2),u=(o[0],o[1]);delete u[O]}}catch(s){r=!0,n=s}finally{try{!t&&i["return"]&&i["return"]()}finally{if(r)throw n}}var l=!0,c=!1,f=void 0;
|
|
try{for(var d,h=m(e.edgesIter(null,!0));!(l=(d=h.next()).done);l=!0){var p=y(d.value,3),u=(p[0],p[1],p[2]);delete u[O]}}catch(s){c=!0,f=s}finally{try{!l&&h["return"]&&h["return"]()}finally{if(c)throw f}}}var y=e("babel-runtime/helpers/sliced-to-array")["default"],m=e("babel-runtime/core-js/get-iterator")["default"],w=e("babel-runtime/core-js/array/from")["default"],x=e("babel-runtime/regenerator")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.draw=i;var k=e("../_internals"),j=function(){},E=null,_=null,S=["addNode","addNodesFrom","addEdge","addEdgesFrom","removeNode","removeNodesFrom","removeEdge","removeEdgesFrom","clear"],O="__d3datum__",M=t.d3,I={layoutAttr:{charge:-120,linkDistance:60},nodeShape:"circle",nodeAttr:{r:10},nodeStyle:{"stroke-width":2,stroke:"#333",fill:"#999",cursor:"pointer"},edgeAttr:{},edgeStyle:{fill:"#000","stroke-width":3},labelAttr:{},labelStyle:{"text-anchor":"middle","dominant-baseline":"central",cursor:"pointer","-webkit-user-select":"none",fill:"#000"},edgeLabelAttr:{},edgeLabelStyle:{"font-size":"0.8em","text-anchor":"middle","-webkit-user-select":"none"},edgeLabelOffset:{x:0,y:.5},withLabels:!1,withEdgeLabels:!1,edgeOffset:10,weighted:!1,weights:"weight",weightedStroke:!0,panZoom:{enabled:!0,scale:!0}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../_internals":20,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/sliced-to-array":109,"babel-runtime/regenerator":166}],72:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/get")["default"],a=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0});var u=e("./JSNetworkXException"),s=o(u),l=function(e){function t(e){i(this,t),n(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.name="JSNetworkXAlgorithmError"}return a(t,e),t}(s["default"]);r["default"]=l,t.exports=r["default"]},{"./JSNetworkXException":74,"babel-runtime/helpers/class-call-check":101,"babel-runtime/helpers/get":105,"babel-runtime/helpers/inherits":106,"babel-runtime/helpers/interop-require-default":107}],73:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/get")["default"],a=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0});var u=e("./JSNetworkXException"),s=o(u),l=function(e){function t(e){i(this,t),n(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.name="JSNetworkXError"}return a(t,e),t}(s["default"]);r["default"]=l,t.exports=r["default"]},{"./JSNetworkXException":74,"babel-runtime/helpers/class-call-check":101,"babel-runtime/helpers/get":105,"babel-runtime/helpers/inherits":106,"babel-runtime/helpers/interop-require-default":107}],74:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/class-call-check")["default"];Object.defineProperty(r,"__esModule",{value:!0});var a=function i(e){n(this,i),this.name="JSNetworkXException",this.message=e};r["default"]=a,t.exports=r["default"]},{"babel-runtime/helpers/class-call-check":101}],75:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/get")["default"],a=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0});var u=e("./JSNetworkXUnfeasible"),s=o(u),l=function(e){function t(e){i(this,t),n(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.name="JSNetworkXNoPath"}return a(t,e),t}(s["default"]);r["default"]=l,t.exports=r["default"]},{"./JSNetworkXUnfeasible":76,"babel-runtime/helpers/class-call-check":101,"babel-runtime/helpers/get":105,"babel-runtime/helpers/inherits":106,"babel-runtime/helpers/interop-require-default":107}],76:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/get")["default"],a=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"],o=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0});var u=e("./JSNetworkXAlgorithmError"),s=o(u),l=function(e){function t(e){i(this,t),n(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.name="JSNetworkXUnfeasible"}return a(t,e),t}(s["default"]);r["default"]=l,t.exports=r["default"]},{"./JSNetworkXAlgorithmError":72,"babel-runtime/helpers/class-call-check":101,"babel-runtime/helpers/get":105,"babel-runtime/helpers/inherits":106,"babel-runtime/helpers/interop-require-default":107}],77:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/get")["default"],a=e("babel-runtime/helpers/inherits")["default"],i=e("babel-runtime/helpers/class-call-check")["default"];Object.defineProperty(r,"__esModule",{value:!0});var o=function(e){function t(e){i(this,t),n(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.name="KeyError",this.message=e}return a(t,e),t}(Error);r["default"]=o,t.exports=r["default"]},{"babel-runtime/helpers/class-call-check":101,"babel-runtime/helpers/get":105,"babel-runtime/helpers/inherits":106}],78:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0});var a=e("./KeyError"),i=n(a),o=e("./JSNetworkXAlgorithmError"),u=n(o),s=e("./JSNetworkXError"),l=n(s),c=e("./JSNetworkXException"),f=n(c),d=e("./JSNetworkXNoPath"),h=n(d),p=e("./JSNetworkXUnfeasible"),v=n(p);r.KeyError=i["default"],r.JSNetworkXAlgorithmError=u["default"],r.JSNetworkXError=l["default"],r.JSNetworkXException=f["default"],r.JSNetworkXNoPath=h["default"],r.JSNetworkXUnfeasible=v["default"]},{"./JSNetworkXAlgorithmError":72,"./JSNetworkXError":73,"./JSNetworkXException":74,"./JSNetworkXNoPath":75,"./JSNetworkXUnfeasible":76,"./KeyError":77,"babel-runtime/helpers/interop-require-default":107}],79:[function(e,t,r){"use strict";function n(e,t){var r,n,a,i,o;return h.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(r=y.genRange(e),0!==e){u.next=3;break}return u.abrupt("return");case 3:n=[y.next(r)];case 4:if(!(n.length>0)){u.next=20;break}a=n.shift(),i=0;case 7:if(!(t>i)){u.next=18;break}if(o=r.next(),!o.done){u.next=11;break}return u.abrupt("return");case 11:return o=o.value,n.push(o),u.next=15,y.tuple2(a,o);case 15:i++,u.next=7;break;case 18:u.next=4;break;case 20:case"end":return u.stop()}},v[0],this)}function a(e,t,r){var a=s(t,r);return a.addEdgesFrom(n(t,e)),a}function i(e,t,r){var a=1===e?t:Math.floor((1-Math.pow(e,t+1))/(1-e)),i=s(a,r);return i.addEdgesFrom(n(a,e)),i}function o(e,t){var r=s(e,t);return r.name="complete_graph("+e+")",e>1&&r.addEdgesFrom(r.isDirected()?y.genPermutations(y.range(e),2):y.genCombinations(y.range(e),2)),r}function u(e,t){var r=f(e,t);return r.name="cycle_graph("+e+")",e>1&&r.addEdge(e-1,0),r}function s(e,t){y.isGraph(e)&&(t=e,e=null),null==e&&(e=0);var r;return null==t?r=new g["default"]:(r=t,r.clear()),r.addNodesFrom(y.genRange(e)),r.name="emptyGraph("+e+")",r}function l(e,t){var r=arguments.length<=2||void 0===arguments[2]?!1:arguments[2],n=arguments.length<=3||void 0===arguments[3]?null:arguments[3],a=s(0,n);a.name="grid2dGraph";var i,o;for(i=0;e>i;i++)for(o=0;t>o;o++)a.addNode([i,o]);for(i=1;e>i;i++)for(o=0;t>o;o++)a.addEdge([i,o],[i-1,o]);for(i=0;e>i;i++)for(o=1;t>o;o++)a.addEdge([i,o],[i,o-1]);if(a.isDirected()){for(i=0;e-1>i;i++)for(o=0;t>o;o++)a.addEdge([i,o],[i+1,o]);for(i=0;e>i;i++)for(o=0;t-1>o;o++)a.addEdge([i,o],[i,o+1])}if(r){if(t>2){for(i=0;e>i;i++)a.addEdge([i,0],[i,t-1]);if(a.isDirected())for(i=0;e>i;i++)a.addEdge([i,t-1],[i,0])}if(e>2){for(o=0;t>o;o++)a.addEdge([0,o],[e-1,o]);if(a.isDirected())for(o=0;t>o;o++)a.addEdge([e-1,o],[0,o])}a.name="periodicGrid2dGraph("+e+", "+t+")"}return a}function c(e){var t=s(0,e);return t.name="nullGraph()",t}function f(e,t){var r=s(e,t);return r.name="pathGraph("+e+")",r.addEdgesFrom(y.mapIterator(y.genRange(e-1),function(e){return y.tuple2(e,e+1)})),r}function d(e){var t=s(1,e);return t.name="nullGraph()",t}var h=e("babel-runtime/regenerator")["default"],p=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.fullRaryTree=a,r.balancedTree=i,r.completeGraph=o,r.cycleGraph=u,r.emptyGraph=s,r.grid2dGraph=l,r.nullGraph=c,r.pathGraph=f,r.trivialGraph=d;var v=[n].map(h.mark),b=e("../classes/Graph"),g=p(b),y=e("../_internals")},{"../_internals":20,"../classes/Graph":61,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/regenerator":166}],80:[function(e,t,r){"use strict";function n(e,t){if(e=o(e),!d.isValidDegreeSequence(e))throw new f["default"]("Invalid degree sequence");if(null!=t&&t.isDirected())throw new f["default"]("Directed Graph not supported");for(var r=e.length,n=h.emptyGraph(r,t),a=new Array(r),u=0;r>u;u++)a[u]=[];var s=0,l=0,c=0;for(u=0;r>u;u++){var p=e[u];p>0&&(a[p].push(c),s=Math.max(s,p),l+=p,c+=1)}if(0===c)return n;var b=new Array(s+1);for(u=0;s+1>u;u++)b[u]=[0,0];for(;c>0;){for(;0===a[s].length;)s-=1;if(s>c-1)throw new f["default"]("Non-graphical integer sequence");var g=a[s].pop();c-=1;var y=0,m=s;for(u=0;s>u;u++){for(;0===a[m].length;)m-=1;var w=a[m].pop();n.addEdge(g,w),c-=1,m>1&&(b[y]=[m-1,w],y+=1)}for(u=0;y>u;u++){var x=i(b[u],2),k=x[0],j=x[1];a[k].push(j),c+=1}}return n.name=v["default"]("havelHakimiGraph %s nodes %d edges",n.order(),n.size()),n}function a(e,t){return l["default"]("havelHakimiGraph",[e,t])}var i=e("babel-runtime/helpers/sliced-to-array")["default"],o=e("babel-runtime/core-js/array/from")["default"],u=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.havelHakimiGraph=n,r.genHavelHakimiGraph=a;var s=e("../_internals/delegate"),l=u(s),c=e("../exceptions/JSNetworkXError"),f=u(c),d=e("../algorithms/graphical"),h=e("./classic"),p=e("../_internals/sprintf"),v=u(p)},{"../_internals/delegate":12,"../_internals/sprintf":38,"../algorithms/graphical":49,"../exceptions/JSNetworkXError":73,"./classic":79,"babel-runtime/core-js/array/from":88,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/sliced-to-array":109}],81:[function(e,t,r){"use strict";var n=e("babel-runtime/helpers/interop-require-wildcard")["default"],a=e("babel-runtime/helpers/defaults")["default"];Object.defineProperty(r,"__esModule",{value:!0});var i=e("./classic"),o=n(i),u=e("./degreeSequence"),s=n(u),l=e("./randomGraphs"),c=n(l),f=e("./small"),d=n(f),h=e("./social"),p=n(h);r.classic=o,r.degreeSequence=s,r.randomGraphs=c,r.small=d,r.social=p,a(r,n(i)),a(r,n(u)),a(r,n(l)),a(r,n(f)),a(r,n(h))},{"./classic":79,"./degreeSequence":80,"./randomGraphs":82,"./small":83,"./social":84,"babel-runtime/helpers/defaults":103,"babel-runtime/helpers/interop-require-wildcard":108}],82:[function(e,t,r){"use strict";function n(e,t){var r=arguments.length<=2||void 0===arguments[2]?!1:arguments[2],n=m.emptyGraph(e);if(n.name=w.sprintf("fastGnpRandomGraph(%s, %s)",e,t),0>=t||t>=1)return i(e,t,r);var a,o,u=-1,s=Math.log(1-t);if(r)for(a=0,n=new b["default"](n);e>a;){for(o=Math.log(1-Math.random()),u=u+1+Math.floor(o/s),a===u&&(u+=1);u>=e&&e>a;)u-=e,a+=1,a===u&&(u+=1);e>a&&n.addEdge(a,u)}else for(a=1;e>a;){for(o=Math.log(1-Math.random()),u=u+1+Math.floor(o/s);u>=a&&e>a;)u-=a,a+=1;e>a&&n.addEdge(a,u)}return n}function a(e,t,r){return p["default"]("fastGnpRandomGraph",[e,t,r])}function i(e,t){var r,n=arguments.length<=2||void 0===arguments[2]?!1:arguments[2],a=n?new b["default"]:new y["default"],i=w.range(e);if(a.addNodesFrom(i),a.name=w.sprintf("gnpRandomGraph(%s, %s)",e,t),0>=t)return a;if(t>=1)return m.completeGraph(e,a);r=a.isDirected()?w.genPermutations(i,2):w.genCombinations(i,2);var o=!0,u=!1,s=void 0;try{for(var l,c=f(r);!(o=(l=c.next()).done);o=!0){var d=l.value;Math.random()<t&&a.addEdge(d[0],d[1])}}catch(h){u=!0,s=h}finally{try{!o&&c["return"]&&c["return"]()}finally{if(u)throw s}}return a}function o(e,t,r){return p["default"]("gnpRandomGraph",[e,t,r])}function u(e,t,r){return i(e,t,r)}function s(e,t,r){return p["default"]("binomialGraph",[e,t,r])}function l(e,t,r){return i(e,t,r)}function c(e,t,r){return p["default"]("erdosRenyiGraph",[e,t,r])}var f=e("babel-runtime/core-js/get-iterator")["default"],d=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.fastGnpRandomGraph=n,r.genFastGnpRandomGraph=a,r.gnpRandomGraph=i,r.genGnpRandomGraph=o,r.binomialGraph=u,r.genBinomialGraph=s,r.erdosRenyiGraph=l,r.genErdosRenyiGraph=c;var h=e("../_internals/delegate"),p=d(h),v=e("../classes/DiGraph"),b=d(v),g=e("../classes/Graph"),y=d(g),m=e("./classic"),w=e("../_internals")},{"../_internals":20,"../_internals/delegate":12,"../classes/DiGraph":60,"../classes/Graph":61,"./classic":79,"babel-runtime/core-js/get-iterator":89,"babel-runtime/helpers/interop-require-default":107}],83:[function(e,t,r){"use strict";function n(e,t){if(null!=t&&t.isDirected())throw new c["default"]("Directed Graph not supported");return a(e,t)}function a(e,t){var r=e.type,n=e.name,a=e.n,i=e.list,o=f.emptyGraph(a,t),s=o.nodes();if("adjacencylist"===r){if(i.length!==a)throw new c["default"]("invalid graphDescription");s.forEach(function(e){d.forEach(i[e],function(t){return o.addEdge(t-1,e)})})}else"edgelist"===r&&d.forEach(i,function(e){var t=u(e,2),r=t[0],n=t[1];if(r-=1,n-=1,0>r||r>a-1||0>n||n>a-1)throw new c["default"]("invalid graphDescription");o.addEdge(r,n)});return o.name=n,o}function i(e){var t="adjacencylist",r="Bull Graph",a=5,i=[[2,3],[1,3,4],[1,2,5],[2],[3]];return n({type:t,name:r,n:a,list:i},e)}function o(e){var t="adjacencylist",r="Krackhardt Kite Social Network",a=10,i=[[2,3,4,6],[1,4,5,7],[1,4,6],[1,2,3,5,6,7],[2,4,7],[1,3,4,7,8],[2,4,5,6,8],[6,7,9],[8,10],[9]];return n({type:t,name:r,n:a,list:i},e)}var u=e("babel-runtime/helpers/sliced-to-array")["default"],s=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.makeSmallUndirectedGraph=n,r.makeSmallGraph=a,r.bullGraph=i,r.krackhardtKiteGraph=o;var l=e("../exceptions/JSNetworkXError"),c=s(l),f=e("./classic"),d=e("../_internals")},{"../_internals":20,"../exceptions/JSNetworkXError":73,"./classic":79,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/sliced-to-array":109}],84:[function(e,t,r){"use strict";function n(){var e=new s["default"];e.addNodesFrom(c["default"](34)),e.name="Zachary's Karate Club";var t=["0 1 1 1 1 1 1 1 1 0 1 1 1 1 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0","1 0 1 1 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 1 0 0 0","1 1 0 1 0 0 0 1 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 1 0","1 1 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1","0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1","1 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1","0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1","1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1","1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 1","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1 0 0","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 0","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1","0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1","0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 1","0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1","1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 1 1","0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 1 0 0 1 0 1 0 1 1 0 0 0 0 0 1 1 1 0 1","0 0 0 0 0 0 0 0 1 1 0 0 0 1 1 1 0 0 1 1 1 0 1 1 0 0 1 1 1 1 1 1 1 0"];return t.forEach(function(t,r){var n=t.split(" ");n.forEach(function(t,n){"1"===t&&e.addEdge(r,n)})}),e.addNodesFrom([0,1,2,3,4,5,6,7,8,10,11,12,13,16,17,19,21],{club:"Mr. Hi"}),e.addNodesFrom([9,14,15,18,20,22,23,24,25,26,27,28,29,30,31,32,33],{club:"Officer"}),e}function a(){var e=new s["default"];return e.addNodesFrom(["Evelyn Jefferson","Laura Mandeville","Theresa Anderson","Brenda Rogers","Charlotte McDowd","Frances Anderson","Eleanor Nye","Pearl Oglethorpe","Ruth DeSand","Verne Sanderson","Myra Liddel","Katherina Rogers","Sylvia Avondale","Nora Fayette","Helen Lloyd","Dorothy Murchison","Olivia Carleton","Flora Price"],{bipartite:0}),e.addNodesFrom(["E1","E2","E3","E4","E5","E6","E7","E8","E9","E10","E11","E12","E13","E14"],{bipartite:1}),e.add_edges_from([["Evelyn Jefferson","E1"],["Evelyn Jefferson","E2"],["Evelyn Jefferson","E3"],["Evelyn Jefferson","E4"],["Evelyn Jefferson","E5"],["Evelyn Jefferson","E6"],["Evelyn Jefferson","E8"],["Evelyn Jefferson","E9"],["Laura Mandeville","E1"],["Laura Mandeville","E2"],["Laura Mandeville","E3"],["Laura Mandeville","E5"],["Laura Mandeville","E6"],["Laura Mandeville","E7"],["Laura Mandeville","E8"],["Theresa Anderson","E2"],["Theresa Anderson","E3"],["Theresa Anderson","E4"],["Theresa Anderson","E5"],["Theresa Anderson","E6"],["Theresa Anderson","E7"],["Theresa Anderson","E8"],["Theresa Anderson","E9"],["Brenda Rogers","E1"],["Brenda Rogers","E3"],["Brenda Rogers","E4"],["Brenda Rogers","E5"],["Brenda Rogers","E6"],["Brenda Rogers","E7"],["Brenda Rogers","E8"],["Charlotte McDowd","E3"],["Charlotte McDowd","E4"],["Charlotte McDowd","E5"],["Charlotte McDowd","E7"],["Frances Anderson","E3"],["Frances Anderson","E5"],["Frances Anderson","E6"],["Frances Anderson","E8"],["Eleanor Nye","E5"],["Eleanor Nye","E6"],["Eleanor Nye","E7"],["Eleanor Nye","E8"],["Pearl Oglethorpe","E6"],["Pearl Oglethorpe","E8"],["Pearl Oglethorpe","E9"],["Ruth DeSand","E5"],["Ruth DeSand","E7"],["Ruth DeSand","E8"],["Ruth DeSand","E9"],["Verne Sanderson","E7"],["Verne Sanderson","E8"],["Verne Sanderson","E9"],["Verne Sanderson","E12"],["Myra Liddel","E8"],["Myra Liddel","E9"],["Myra Liddel","E10"],["Myra Liddel","E12"],["Katherina Rogers","E8"],["Katherina Rogers","E9"],["Katherina Rogers","E10"],["Katherina Rogers","E12"],["Katherina Rogers","E13"],["Katherina Rogers","E14"],["Sylvia Avondale","E7"],["Sylvia Avondale","E8"],["Sylvia Avondale","E9"],["Sylvia Avondale","E10"],["Sylvia Avondale","E12"],["Sylvia Avondale","E13"],["Sylvia Avondale","E14"],["Nora Fayette","E6"],["Nora Fayette","E7"],["Nora Fayette","E9"],["Nora Fayette","E10"],["Nora Fayette","E11"],["Nora Fayette","E12"],["Nora Fayette","E13"],["Nora Fayette","E14"],["Helen Lloyd","E7"],["Helen Lloyd","E8"],["Helen Lloyd","E10"],["Helen Lloyd","E11"],["Helen Lloyd","E12"],["Dorothy Murchison","E8"],["Dorothy Murchison","E9"],["Olivia Carleton","E9"],["Olivia Carleton","E11"],["Flora Price","E9"],["Flora Price","E11"]]),e}function i(){var e=new s["default"];return e.addEdge("Acciaiuoli","Medici"),e.addEdge("Castellani","Peruzzi"),e.addEdge("Castellani","Strozzi"),e.addEdge("Castellani","Barbadori"),e.addEdge("Medici","Barbadori"),e.addEdge("Medici","Ridolfi"),e.addEdge("Medici","Tornabuoni"),e.addEdge("Medici","Albizzi"),e.addEdge("Medici","Salviati"),e.addEdge("Salviati","Pazzi"),e.addEdge("Peruzzi","Strozzi"),e.addEdge("Peruzzi","Bischeri"),e.addEdge("Strozzi","Ridolfi"),e.addEdge("Strozzi","Bischeri"),e.addEdge("Ridolfi","Tornabuoni"),e.addEdge("Tornabuoni","Guadagni"),e.addEdge("Albizzi","Ginori"),e.addEdge("Albizzi","Guadagni"),e.addEdge("Bischeri","Guadagni"),e.addEdge("Guadagni","Lamberteschi"),e}var o=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.karateClubGraph=n,r.davisSouthernWomenGraph=a,r.florentineFamiliesGraph=i;var u=e("../classes/Graph"),s=o(u),l=e("../_internals/range"),c=o(l)},{"../_internals/range":35,"../classes/Graph":61,"babel-runtime/helpers/interop-require-default":107}],85:[function(e,t,r){"use strict";var n=e("babel-runtime/core-js/array/from")["default"],a=e("babel-runtime/helpers/interop-require-wildcard")["default"],i=e("babel-runtime/helpers/interop-require-default")["default"],o=e("babel-runtime/helpers/defaults")["default"];Object.defineProperty(r,"__esModule",{value:!0});var u=e("./algorithms"),s=a(u),l=e("./classes"),c=a(l),f=e("./convert"),d=a(f),h=e("./drawing"),p=a(h),v=e("./exceptions"),b=a(v),g=e("./generators"),y=a(g),m=e("./relabel"),w=a(m),x=e("./_internals/Map"),k=i(x),j=e("./_internals/Set"),E=i(j),_=e("./_internals/forEach"),S=i(_);r.Map=k["default"],r.Set=E["default"],r.forEach=S["default"],r.algorithms=s,r.classes=c,r.convert=d,r.drawing=p,r.exceptions=b,r.generators=y,r.relabel=w;var O=n;r.toArray=O,o(r,a(u)),o(r,a(l)),o(r,a(f)),o(r,a(h));var M=e("./contrib/observer");o(r,a(M)),o(r,a(v)),o(r,a(g)),o(r,a(m))},{"./_internals/Map":3,"./_internals/Set":5,"./_internals/forEach":14,"./algorithms":50,"./classes":65,"./contrib/observer":67,"./convert":69,"./drawing":70,"./exceptions":78,"./generators":81,"./relabel":87,"babel-runtime/core-js/array/from":88,"babel-runtime/helpers/defaults":103,"babel-runtime/helpers/interop-require-default":107,"babel-runtime/helpers/interop-require-wildcard":108}],86:[function(e,t,r){(function(n){"use strict";function a(){n.document||(n.onmessage=function(e){var t=e.data.args.map(o.deserialize),r=s["default"].methodLookupFunction(e.data.method).apply(null,t);n.postMessage(o.serialize(r)),n.close()})}var i=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r["default"]=a;var o=e("./_internals/message"),u=e("./WorkerSettings"),s=i(u);t.exports=r["default"]}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./WorkerSettings":1,"./_internals/message":32,"babel-runtime/helpers/interop-require-default":107}],87:[function(e,t,r){"use strict";function n(e,t){var r=arguments.length<=2||void 0===arguments[2]?!0:arguments[2],n=t;return"function"!=typeof t?h.isMap(n)||(n=new h.Map(n)):n=new h.Map(h.mapIterator(e.nodesIter(),function(e){return h.tuple2(e,t(e))})),r?i(e,n):a(e,n)}function a(e,t){var r,n=new h.Set(t.keys());if(h.someIterator(t.values(),function(e){return n.has(e)})){var a=new f["default"](t);a.removeEdgesFrom(a.selfloopEdges());try{r=h.topologicalSort(a)}catch(i){if(i instanceof d.JSNetworkXUnfeasible)throw new d.JSNetworkXUnfeasible("The node label sets are overlapping and no ordering can resolve the mapping. Use copy=True.")}r.reverse()}else r=n.values();var o,u=e.isMultigraph(),s=e.isDirected();return h.forEach(r,function(r){var n;if(t.has(r)){if(n=t.get(r),!e.hasNode(r))throw new d.JSNetworkXError(h.sprintf("Node %j is not in the graph.",r));e.addNode(n,e.node.get(r)),u?(o=e.edges(r,!0,!0).map(function(e){return h.tuple4c(n,e[1],e[2],e[3],e)}),s&&(o=o.concat(e.inEdges(r,!0,!0).map(function(e){return h.tuple4c(e[0],n,e[2],e[3],e)})))):(o=e.edges(r,!0).map(function(e){return h.tuple3c(n,e[1],e[2],e)}),s&&(o=o.concat(e.inEdges(r,!0).map(function(e){return h.tuple3c(e[0],n,e[2],e)})))),e.removeNode(r),e.addEdgesFrom(o)}}),e}function i(e,t){var r=new e.constructor;return r.name="("+e.name+")",e.isMultigraph()?r.addEdgesFrom(h.mapIterator(e.edgesIter(null,!0,!0),function(e){return h.tuple4c(t.has(e[0])?t.get(e[0]):e[0],t.has(e[1])?t.get(e[1]):e[1],e[2],h.clone(e[3]),e)})):r.addEdgesFrom(h.mapIterator(e.edgesIter(null,!0),function(e){return h.tuple3c(t.has(e[0])?t.get(e[0]):e[0],t.has(e[1])?t.get(e[1]):e[1],h.clone(e[3]),e)})),e.node.forEach(function(e,n){return r.addNode(t.has(n)?t.get(n):n,h.clone(e))}),u(r.graph,h.clone(e.graph)),r}function o(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],r=arguments.length<=2||void 0===arguments[2]?"default":arguments[2],a=arguments.length<=3||void 0===arguments[3]?!0:arguments[3];switch("boolean"==typeof r&&(a=r,r="default"),typeof t){case"string":r=t,t=0;break;case"boolean":a=t,t=0}var i,o,u,l,c,f=new h.Map;switch(r){case"default":for(i=e.nodes(),u=0,l=t,c=i.length;c>u;u++,l++)f.set(i[u],l);break;case"sorted":for(i=e.nodes(),i.sort(),u=0,l=t,c=i.length;c>u;u++,l++)f.set(i[u],l);break;case"increasing degree":for(o=s(e.degreeIter()),o.sort(function(e,t){return e[1]-t[1]}),u=0,l=t,c=o.length;c>u;u++,l++)f.set(o[u][0],l);break;case"decreasing degree":for(o=s(e.degreeIter()),o.sort(function(e,t){return t[1]-e[1]}),u=0,l=t,c=o.length;c>u;u++,l++)f.set(o[u][0],l);break;default:throw new d.JSNetworkXError(h.sprintf('Unkown node ordering: "%s"',r))}var p=n(e,f);return p.name="("+e.name+")WithIntLabels",a||(p.nodeLabels=f),p}var u=e("babel-runtime/core-js/object/assign")["default"],s=e("babel-runtime/core-js/array/from")["default"],l=e("babel-runtime/helpers/interop-require-default")["default"];Object.defineProperty(r,"__esModule",{value:!0}),r.relabelNodes=n,r.convertNodeLabelsToIntegers=o;var c=e("./classes/DiGraph"),f=l(c),d=e("./exceptions"),h=e("./_internals")},{"./_internals":20,"./classes/DiGraph":60,"./exceptions":78,"babel-runtime/core-js/array/from":88,"babel-runtime/core-js/object/assign":92,"babel-runtime/helpers/interop-require-default":107}],88:[function(e,t,r){t.exports={"default":e("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":110}],89:[function(e,t,r){t.exports={"default":e("core-js/library/fn/get-iterator"),__esModule:!0}},{"core-js/library/fn/get-iterator":111}],90:[function(e,t,r){t.exports={"default":e("core-js/library/fn/is-iterable"),__esModule:!0}},{"core-js/library/fn/is-iterable":112}],91:[function(e,t,r){t.exports={"default":e("core-js/library/fn/map"),__esModule:!0}},{"core-js/library/fn/map":113}],92:[function(e,t,r){t.exports={"default":e("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":114}],93:[function(e,t,r){t.exports={"default":e("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":115}],94:[function(e,t,r){t.exports={"default":e("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":116}],95:[function(e,t,r){t.exports={"default":e("core-js/library/fn/object/get-own-property-descriptor"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-descriptor":117}],96:[function(e,t,r){t.exports={"default":e("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":118}],97:[function(e,t,r){t.exports={"default":e("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":119}],98:[function(e,t,r){t.exports={"default":e("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":120}],99:[function(e,t,r){t.exports={"default":e("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":121}],100:[function(e,t,r){t.exports={"default":e("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":122}],101:[function(e,t,r){"use strict";r["default"]=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},r.__esModule=!0},{}],102:[function(e,t,r){"use strict";var n=e("babel-runtime/core-js/object/define-property")["default"];r["default"]=function(){function e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),n(e,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),r.__esModule=!0},{"babel-runtime/core-js/object/define-property":94}],103:[function(e,t,r){"use strict";var n=e("babel-runtime/core-js/object/get-own-property-names")["default"],a=e("babel-runtime/core-js/object/get-own-property-descriptor")["default"],i=e("babel-runtime/core-js/object/define-property")["default"];r["default"]=function(e,t){for(var r=n(t),o=0;o<r.length;o++){var u=r[o],s=a(t,u);s&&s.configurable&&void 0===e[u]&&i(e,u,s)}return e},r.__esModule=!0},{"babel-runtime/core-js/object/define-property":94,"babel-runtime/core-js/object/get-own-property-descriptor":95,"babel-runtime/core-js/object/get-own-property-names":96}],104:[function(e,t,r){"use strict";var n=e("babel-runtime/core-js/object/define-property")["default"];r["default"]=function(e,t,r){return t in e?n(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},r.__esModule=!0},{"babel-runtime/core-js/object/define-property":94}],105:[function(e,t,r){"use strict";var n=e("babel-runtime/core-js/object/get-own-property-descriptor")["default"];r["default"]=function(e,t,r){for(var a=!0;a;){var i=e,o=t,u=r;s=c=l=void 0,a=!1,null===i&&(i=Function.prototype);var s=n(i,o);if(void 0!==s){if("value"in s)return s.value;var l=s.get;return void 0===l?void 0:l.call(u)}var c=Object.getPrototypeOf(i);if(null===c)return void 0;e=c,t=o,r=u,a=!0}},r.__esModule=!0},{"babel-runtime/core-js/object/get-own-property-descriptor":95}],106:[function(e,t,r){"use strict";var n=e("babel-runtime/core-js/object/create")["default"];r["default"]=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=n(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)},r.__esModule=!0},{"babel-runtime/core-js/object/create":93}],107:[function(e,t,r){"use strict";r["default"]=function(e){return e&&e.__esModule?e:{"default":e}},r.__esModule=!0},{}],108:[function(e,t,r){"use strict";r["default"]=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t["default"]=e,t},r.__esModule=!0},{}],109:[function(e,t,r){"use strict";var n=e("babel-runtime/core-js/get-iterator")["default"],a=e("babel-runtime/core-js/is-iterable")["default"];r["default"]=function(){function e(e,t){var r=[],a=!0,i=!1,o=void 0;try{for(var u,s=n(e);!(a=(u=s.next()).done)&&(r.push(u.value),!t||r.length!==t);a=!0);}catch(l){i=!0,o=l}finally{try{!a&&s["return"]&&s["return"]()}finally{if(i)throw o}}return r}return function(t,r){if(Array.isArray(t))return t;if(a(Object(t)))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),r.__esModule=!0},{"babel-runtime/core-js/get-iterator":89,"babel-runtime/core-js/is-iterable":90}],110:[function(e,t,r){e("../../modules/es6.string.iterator"),e("../../modules/es6.array.from"),t.exports=e("../../modules/$").core.Array.from},{"../../modules/$":141,"../../modules/es6.array.from":155,"../../modules/es6.string.iterator":162}],111:[function(e,t,r){e("../modules/web.dom.iterable"),e("../modules/es6.string.iterator"),e("../modules/core.iter-helpers"),t.exports=e("../modules/$").core.getIterator},{"../modules/$":141,"../modules/core.iter-helpers":154,"../modules/es6.string.iterator":162,"../modules/web.dom.iterable":165
|
|
}],112:[function(e,t,r){e("../modules/web.dom.iterable"),e("../modules/es6.string.iterator"),e("../modules/core.iter-helpers"),t.exports=e("../modules/$").core.isIterable},{"../modules/$":141,"../modules/core.iter-helpers":154,"../modules/es6.string.iterator":162,"../modules/web.dom.iterable":165}],113:[function(e,t,r){e("../modules/es6.object.to-string"),e("../modules/es6.string.iterator"),e("../modules/web.dom.iterable"),e("../modules/es6.map"),e("../modules/es7.map.to-json"),t.exports=e("../modules/$").core.Map},{"../modules/$":141,"../modules/es6.map":157,"../modules/es6.object.to-string":160,"../modules/es6.string.iterator":162,"../modules/es7.map.to-json":164,"../modules/web.dom.iterable":165}],114:[function(e,t,r){e("../../modules/es6.object.assign"),t.exports=e("../../modules/$").core.Object.assign},{"../../modules/$":141,"../../modules/es6.object.assign":158}],115:[function(e,t,r){var n=e("../../modules/$");t.exports=function(e,t){return n.create(e,t)}},{"../../modules/$":141}],116:[function(e,t,r){var n=e("../../modules/$");t.exports=function(e,t,r){return n.setDesc(e,t,r)}},{"../../modules/$":141}],117:[function(e,t,r){var n=e("../../modules/$");e("../../modules/es6.object.statics-accept-primitives"),t.exports=function(e,t){return n.getDesc(e,t)}},{"../../modules/$":141,"../../modules/es6.object.statics-accept-primitives":159}],118:[function(e,t,r){var n=e("../../modules/$");e("../../modules/es6.object.statics-accept-primitives"),t.exports=function(e){return n.getNames(e)}},{"../../modules/$":141,"../../modules/es6.object.statics-accept-primitives":159}],119:[function(e,t,r){e("../../modules/es6.object.statics-accept-primitives"),t.exports=e("../../modules/$").core.Object.keys},{"../../modules/$":141,"../../modules/es6.object.statics-accept-primitives":159}],120:[function(e,t,r){e("../modules/es6.object.to-string"),e("../modules/es6.string.iterator"),e("../modules/web.dom.iterable"),e("../modules/es6.promise"),t.exports=e("../modules/$").core.Promise},{"../modules/$":141,"../modules/es6.object.to-string":160,"../modules/es6.promise":161,"../modules/es6.string.iterator":162,"../modules/web.dom.iterable":165}],121:[function(e,t,r){e("../../modules/es6.symbol"),t.exports=e("../../modules/$").core.Symbol},{"../../modules/$":141,"../../modules/es6.symbol":163}],122:[function(e,t,r){e("../../modules/es6.string.iterator"),e("../../modules/web.dom.iterable"),t.exports=e("../../modules/$.wks")("iterator")},{"../../modules/$.wks":153,"../../modules/es6.string.iterator":162,"../../modules/web.dom.iterable":165}],123:[function(e,t,r){function n(e,t,r){if(!e)throw TypeError(r?t+r:t)}var a=e("./$");n.def=a.assertDefined,n.fn=function(e){if(!a.isFunction(e))throw TypeError(e+" is not a function!");return e},n.obj=function(e){if(!a.isObject(e))throw TypeError(e+" is not an object!");return e},n.inst=function(e,t,r){if(!(e instanceof t))throw TypeError(r+": use the 'new' operator!");return e},t.exports=n},{"./$":141}],124:[function(e,t,r){var n=e("./$"),a=e("./$.enum-keys");t.exports=Object.assign||function(e,t){for(var r=Object(n.assertDefined(e)),i=arguments.length,o=1;i>o;)for(var u,s=n.ES5Object(arguments[o++]),l=a(s),c=l.length,f=0;c>f;)r[u=l[f++]]=s[u];return r}},{"./$":141,"./$.enum-keys":132}],125:[function(e,t,r){function n(e){return o.call(e).slice(8,-1)}var a=e("./$"),i=e("./$.wks")("toStringTag"),o={}.toString;n.classof=function(e){var t,r;return void 0==e?void 0===e?"Undefined":"Null":"string"==typeof(r=(t=Object(e))[i])?r:n(t)},n.set=function(e,t,r){e&&!a.has(e=r?e:e.prototype,i)&&a.hide(e,i,t)},t.exports=n},{"./$":141,"./$.wks":153}],126:[function(e,t,r){"use strict";function n(e,t){if(!h(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!f(e,b)){if(!v(e))return"F";if(!t)return"E";p(e,b,++k)}return"O"+e[b]}function a(e,t){var r,a=n(t);if("F"!==a)return e[g][a];for(r=e[m];r;r=r.n)if(r.k==t)return r}var i=e("./$"),o=e("./$.ctx"),u=e("./$.uid").safe,s=e("./$.assert"),l=e("./$.for-of"),c=e("./$.iter").step,f=i.has,d=i.set,h=i.isObject,p=i.hide,v=Object.isExtensible||h,b=u("id"),g=u("O1"),y=u("last"),m=u("first"),w=u("iter"),x=i.DESC?u("size"):"size",k=0;t.exports={getConstructor:function(t,r,n,u){var c=t(function(e,t){s.inst(e,c,r),d(e,g,i.create(null)),d(e,x,0),d(e,y,void 0),d(e,m,void 0),void 0!=t&&l(t,n,e[u],e)});return e("./$.mix")(c.prototype,{clear:function(){for(var e=this,t=e[g],r=e[m];r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete t[r.i];e[m]=e[y]=void 0,e[x]=0},"delete":function(e){var t=this,r=a(t,e);if(r){var n=r.n,i=r.p;delete t[g][r.i],r.r=!0,i&&(i.n=n),n&&(n.p=i),t[m]==r&&(t[m]=n),t[y]==r&&(t[y]=i),t[x]--}return!!r},forEach:function(e){for(var t,r=o(e,arguments[1],3);t=t?t.n:this[m];)for(r(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!a(this,e)}}),i.DESC&&i.setDesc(c.prototype,"size",{get:function(){return s.def(this[x])}}),c},def:function(e,t,r){var i,o,u=a(e,t);return u?u.v=r:(e[y]=u={i:o=n(t,!0),k:t,v:r,p:i=e[y],n:void 0,r:!1},e[m]||(e[m]=u),i&&(i.n=u),e[x]++,"F"!==o&&(e[g][o]=u)),e},getEntry:a,setIter:function(t,r,n){e("./$.iter-define")(t,r,function(e,t){d(this,w,{o:e,k:t})},function(){for(var e=this[w],t=e.k,r=e.l;r&&r.r;)r=r.p;return e.o&&(e.l=r=r?r.n:e.o[m])?"keys"==t?c(0,r.k):"values"==t?c(0,r.v):c(0,[r.k,r.v]):(e.o=void 0,c(1))},n?"entries":"values",!n,!0)}}},{"./$":141,"./$.assert":123,"./$.ctx":129,"./$.for-of":133,"./$.iter":140,"./$.iter-define":138,"./$.mix":143,"./$.uid":151}],127:[function(e,t,r){var n=e("./$.def"),a=e("./$.for-of");t.exports=function(e){n(n.P,e,{toJSON:function(){var e=[];return a(this,!1,e.push,e),e}})}},{"./$.def":130,"./$.for-of":133}],128:[function(e,t,r){"use strict";var n=e("./$"),a=e("./$.def"),i=e("./$.iter"),o=i.BUGGY,u=e("./$.for-of"),s=e("./$.assert").inst,l=e("./$.uid").safe("internal");t.exports=function(t,r,i,c,f,d){var h=n.g[t],p=h,v=f?"set":"add",b=p&&p.prototype,g={};return n.DESC&&n.isFunction(p)&&(d||!o&&b.forEach&&b.entries)?(p=r(function(e,r){s(e,p,t),e[l]=new h,void 0!=r&&u(r,f,e[v],e)}),n.each.call("add,clear,delete,forEach,get,has,set,keys,values,entries".split(","),function(e){var t="add"==e||"set"==e;e in b&&n.hide(p.prototype,e,function(r,n){var a=this[l][e](0===r?0:r,n);return t?this:a})}),"size"in b&&n.setDesc(p.prototype,"size",{get:function(){return this[l].size}})):(p=c.getConstructor(r,t,f,v),e("./$.mix")(p.prototype,i)),e("./$.cof").set(p,t),g[t]=p,a(a.G+a.W+a.F,g),e("./$.species")(p),d||c.setIter(p,t,f),p}},{"./$":141,"./$.assert":123,"./$.cof":125,"./$.def":130,"./$.for-of":133,"./$.iter":140,"./$.mix":143,"./$.species":148,"./$.uid":151}],129:[function(e,t,r){var n=e("./$.assert").fn;t.exports=function(e,t,r){if(n(e),~r&&void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,a){return e.call(t,r,n,a)}}return function(){return e.apply(t,arguments)}}},{"./$.assert":123}],130:[function(e,t,r){function n(e,t){return function(){return e.apply(t,arguments)}}function a(e,t,r){var i,l,c,f,d=e&a.G,h=e&a.P,p=d?o:e&a.S?o[t]:(o[t]||{}).prototype,v=d?u:u[t]||(u[t]={});d&&(r=t);for(i in r)l=!(e&a.F)&&p&&i in p,l&&i in v||(c=l?p[i]:r[i],d&&!s(p[i])?f=r[i]:e&a.B&&l?f=n(c,o):e&a.W&&p[i]==c?!function(e){f=function(t){return this instanceof e?new e(t):e(t)},f.prototype=e.prototype}(c):f=h&&s(c)?n(Function.call,c):c,v[i]=f,h&&((v.prototype||(v.prototype={}))[i]=c))}var i=e("./$"),o=i.g,u=i.core,s=i.isFunction;a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,t.exports=a},{"./$":141}],131:[function(e,t,r){var n=e("./$"),a=n.g.document,i=n.isObject,o=i(a)&&i(a.createElement);t.exports=function(e){return o?a.createElement(e):{}}},{"./$":141}],132:[function(e,t,r){var n=e("./$");t.exports=function(e){var t=n.getKeys(e),r=n.getDesc,a=n.getSymbols;return a&&n.each.call(a(e),function(n){r(e,n).enumerable&&t.push(n)}),t}},{"./$":141}],133:[function(e,t,r){var n=e("./$.ctx"),a=e("./$.iter").get,i=e("./$.iter-call");t.exports=function(e,t,r,o){for(var u,s=a(e),l=n(r,o,t?2:1);!(u=s.next()).done;)if(i(s,l,u.value,t)===!1)return i.close(s)}},{"./$.ctx":129,"./$.iter":140,"./$.iter-call":137}],134:[function(e,t,r){t.exports=function(e){return e.FW=!1,e.path=e.core,e}},{}],135:[function(e,t,r){function n(e){try{return o(e)}catch(t){return u.slice()}}var a=e("./$"),i={}.toString,o=a.getNames,u="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.get=function(e){return u&&"[object Window]"==i.call(e)?n(e):o(a.toObject(e))}},{"./$":141}],136:[function(e,t,r){t.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3]);case 5:return n?e(t[0],t[1],t[2],t[3],t[4]):e.call(r,t[0],t[1],t[2],t[3],t[4])}return e.apply(r,t)}},{}],137:[function(e,t,r){function n(e){var t=e["return"];void 0!==t&&i(t.call(e))}function a(e,t,r,a){try{return a?t(i(r)[0],r[1]):t(r)}catch(o){throw n(e),o}}var i=e("./$.assert").obj;a.close=n,t.exports=a},{"./$.assert":123}],138:[function(e,t,r){var n=e("./$.def"),a=e("./$.redef"),i=e("./$"),o=e("./$.cof"),u=e("./$.iter"),s=e("./$.wks")("iterator"),l="@@iterator",c="keys",f="values",d=u.Iterators;t.exports=function(e,t,r,h,p,v,b){function g(e){function t(t){return new r(t,e)}switch(e){case c:return function(){return t(this)};case f:return function(){return t(this)}}return function(){return t(this)}}u.create(r,t,h);var y,m,w=t+" Iterator",x=e.prototype,k=x[s]||x[l]||p&&x[p],j=k||g(p);if(k){var E=i.getProto(j.call(new e));o.set(E,w,!0),i.FW&&i.has(x,l)&&u.set(E,i.that)}if((i.FW||b)&&u.set(x,j),d[t]=j,d[w]=i.that,p)if(y={keys:v?j:g(c),values:p==f?j:g(f),entries:p!=f?j:g("entries")},b)for(m in y)m in x||a(x,m,y[m]);else n(n.P+n.F*u.BUGGY,t,y)}},{"./$":141,"./$.cof":125,"./$.def":130,"./$.iter":140,"./$.redef":144,"./$.wks":153}],139:[function(e,t,r){var n=e("./$.wks")("iterator"),a=!1;try{var i=[7][n]();i["return"]=function(){a=!0},Array.from(i,function(){throw 2})}catch(o){}t.exports=function(e){if(!a)return!1;var t=!1;try{var r=[7],i=r[n]();i.next=function(){t=!0},r[n]=function(){return i},e(r)}catch(o){}return t}},{"./$.wks":153}],140:[function(e,t,r){"use strict";function n(e,t){a.hide(e,l,t),c in[]&&a.hide(e,c,t)}var a=e("./$"),i=e("./$.cof"),o=i.classof,u=e("./$.assert"),s=u.obj,l=e("./$.wks")("iterator"),c="@@iterator",f=e("./$.shared")("iterators"),d={};n(d,a.that),t.exports={BUGGY:"keys"in[]&&!("next"in[].keys()),Iterators:f,step:function(e,t){return{value:t,done:!!e}},is:function(e){var t=Object(e),r=a.g.Symbol;return(r&&r.iterator||c)in t||l in t||a.has(f,o(t))},get:function(e){var t,r=a.g.Symbol;return void 0!=e&&(t=e[r&&r.iterator||c]||e[l]||f[o(e)]),u(a.isFunction(t),e," is not iterable!"),s(t.call(e))},set:n,create:function(e,t,r,n){e.prototype=a.create(n||d,{next:a.desc(1,r)}),i.set(e,t+" Iterator")}}},{"./$":141,"./$.assert":123,"./$.cof":125,"./$.shared":147,"./$.wks":153}],141:[function(e,t,r){"use strict";function n(e){return isNaN(e=+e)?0:(e>0?v:p)(e)}function a(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}function i(e,t,r){return e[t]=r,e}function o(e){return y?function(t,r,n){return w.setDesc(t,r,a(e,n))}:i}function u(e){return null!==e&&("object"==typeof e||"function"==typeof e)}function s(e){return"function"==typeof e}function l(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}var c="undefined"!=typeof self?self:Function("return this")(),f={},d=Object.defineProperty,h={}.hasOwnProperty,p=Math.ceil,v=Math.floor,b=Math.max,g=Math.min,y=!!function(){try{return 2==d({},"a",{get:function(){return 2}}).a}catch(e){}}(),m=o(1),w=t.exports=e("./$.fw")({g:c,core:f,html:c.document&&document.documentElement,isObject:u,isFunction:s,that:function(){return this},toInteger:n,toLength:function(e){return e>0?g(n(e),9007199254740991):0},toIndex:function(e,t){return e=n(e),0>e?b(e+t,0):g(e,t)},has:function(e,t){return h.call(e,t)},create:Object.create,getProto:Object.getPrototypeOf,DESC:y,desc:a,getDesc:Object.getOwnPropertyDescriptor,setDesc:d,setDescs:Object.defineProperties,getKeys:Object.keys,getNames:Object.getOwnPropertyNames,getSymbols:Object.getOwnPropertySymbols,assertDefined:l,ES5Object:Object,toObject:function(e){return w.ES5Object(l(e))},hide:m,def:o(0),set:c.Symbol?i:m,each:[].forEach});"undefined"!=typeof __e&&(__e=f),"undefined"!=typeof __g&&(__g=c)},{"./$.fw":134}],142:[function(e,t,r){var n=e("./$");t.exports=function(e,t){for(var r,a=n.toObject(e),i=n.getKeys(a),o=i.length,u=0;o>u;)if(a[r=i[u++]]===t)return r}},{"./$":141}],143:[function(e,t,r){var n=e("./$.redef");t.exports=function(e,t){for(var r in t)n(e,r,t[r]);return e}},{"./$.redef":144}],144:[function(e,t,r){t.exports=e("./$").hide},{"./$":141}],145:[function(e,t,r){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},{}],146:[function(e,t,r){function n(e,t){i.obj(e),i(null===t||a.isObject(t),t,": can't set as prototype!")}var a=e("./$"),i=e("./$.assert");t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,r){try{r=e("./$.ctx")(Function.call,a.getDesc(Object.prototype,"__proto__").set,2),r({},[])}catch(i){t=!0}return function(e,a){return n(e,a),t?e.__proto__=a:r(e,a),e}}():void 0),check:n}},{"./$":141,"./$.assert":123,"./$.ctx":129}],147:[function(e,t,r){var n=e("./$"),a="__core-js_shared__",i=n.g[a]||(n.g[a]={});t.exports=function(e){return i[e]||(i[e]={})}},{"./$":141}],148:[function(e,t,r){var n=e("./$"),a=e("./$.wks")("species");t.exports=function(e){!n.DESC||a in e||n.setDesc(e,a,{configurable:!0,get:n.that})}},{"./$":141,"./$.wks":153}],149:[function(e,t,r){var n=e("./$");t.exports=function(e){return function(t,r){var a,i,o=String(n.assertDefined(t)),u=n.toInteger(r),s=o.length;return 0>u||u>=s?e?"":void 0:(a=o.charCodeAt(u),55296>a||a>56319||u+1===s||(i=o.charCodeAt(u+1))<56320||i>57343?e?o.charAt(u):a:e?o.slice(u,u+2):(a-55296<<10)+(i-56320)+65536)}}},{"./$":141}],150:[function(e,t,r){"use strict";function n(){var e=+this;if(s.has(x,e)){var t=x[e];delete x[e],t()}}function a(e){n.call(e.data)}var i,o,u,s=e("./$"),l=e("./$.ctx"),c=e("./$.cof"),f=e("./$.invoke"),d=e("./$.dom-create"),h=s.g,p=s.isFunction,v=s.html,b=h.process,g=h.setImmediate,y=h.clearImmediate,m=h.MessageChannel,w=0,x={},k="onreadystatechange";p(g)&&p(y)||(g=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return x[++w]=function(){f(p(e)?e:Function(e),t)},i(w),w},y=function(e){delete x[e]},"process"==c(b)?i=function(e){b.nextTick(l(n,e,1))}:h.addEventListener&&p(h.postMessage)&&!h.importScripts?(i=function(e){h.postMessage(e,"*")},h.addEventListener("message",a,!1)):p(m)?(o=new m,u=o.port2,o.port1.onmessage=a,i=l(u.postMessage,u,1)):i=k in d("script")?function(e){v.appendChild(d("script"))[k]=function(){v.removeChild(this),n.call(e)}}:function(e){setTimeout(l(n,e,1),0)}),t.exports={set:g,clear:y}},{"./$":141,"./$.cof":125,"./$.ctx":129,"./$.dom-create":131,"./$.invoke":136}],151:[function(e,t,r){function n(e){return"Symbol(".concat(void 0===e?"":e,")_",(++a+Math.random()).toString(36))}var a=0;n.safe=e("./$").g.Symbol||n,t.exports=n},{"./$":141}],152:[function(e,t,r){t.exports=function(){}},{}],153:[function(e,t,r){var n=e("./$").g,a=e("./$.shared")("wks");t.exports=function(t){return a[t]||(a[t]=n.Symbol&&n.Symbol[t]||e("./$.uid").safe("Symbol."+t))}},{"./$":141,"./$.shared":147,"./$.uid":151}],154:[function(e,t,r){var n=e("./$").core,a=e("./$.iter");n.isIterable=a.is,n.getIterator=a.get},{"./$":141,"./$.iter":140}],155:[function(e,t,r){var n=e("./$"),a=e("./$.ctx"),i=e("./$.def"),o=e("./$.iter"),u=e("./$.iter-call");i(i.S+i.F*!e("./$.iter-detect")(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,i,s,l=Object(n.assertDefined(e)),c=arguments[1],f=void 0!==c,d=f?a(c,arguments[2],2):void 0,h=0;if(o.is(l))for(s=o.get(l),r=new("function"==typeof this?this:Array);!(i=s.next()).done;h++)r[h]=f?u(s,d,[i.value,h],!0):i.value;else for(r=new("function"==typeof this?this:Array)(t=n.toLength(l.length));t>h;h++)r[h]=f?d(l[h],h):l[h];return r.length=h,r}})},{"./$":141,"./$.ctx":129,"./$.def":130,"./$.iter":140,"./$.iter-call":137,"./$.iter-detect":139}],156:[function(e,t,r){var n=e("./$"),a=e("./$.unscope"),i=e("./$.uid").safe("iter"),o=e("./$.iter"),u=o.step,s=o.Iterators;e("./$.iter-define")(Array,"Array",function(e,t){n.set(this,i,{o:n.toObject(e),i:0,k:t})},function(){var e=this[i],t=e.o,r=e.k,n=e.i++;return!t||n>=t.length?(e.o=void 0,u(1)):"keys"==r?u(0,n):"values"==r?u(0,t[n]):u(0,[n,t[n]])},"values"),s.Arguments=s.Array,a("keys"),a("values"),a("entries")},{"./$":141,"./$.iter":140,"./$.iter-define":138,"./$.uid":151,"./$.unscope":152}],157:[function(e,t,r){"use strict";var n=e("./$.collection-strong");e("./$.collection")("Map",function(e){return function(){return e(this,arguments[0])}},{get:function(e){var t=n.getEntry(this,e);return t&&t.v},set:function(e,t){return n.def(this,0===e?0:e,t)}},n,!0)},{"./$.collection":128,"./$.collection-strong":126}],158:[function(e,t,r){var n=e("./$.def");n(n.S,"Object",{assign:e("./$.assign")})},{"./$.assign":124,"./$.def":130}],159:[function(e,t,r){var n=e("./$"),a=e("./$.def"),i=n.isObject,o=n.toObject;n.each.call("freeze,seal,preventExtensions,isFrozen,isSealed,isExtensible,getOwnPropertyDescriptor,getPrototypeOf,keys,getOwnPropertyNames".split(","),function(t,r){var u=(n.core.Object||{})[t]||Object[t],s=0,l={};l[t]=0==r?function(e){return i(e)?u(e):e}:1==r?function(e){return i(e)?u(e):e}:2==r?function(e){return i(e)?u(e):e}:3==r?function(e){return i(e)?u(e):!0}:4==r?function(e){return i(e)?u(e):!0}:5==r?function(e){return i(e)?u(e):!1}:6==r?function(e,t){return u(o(e),t)}:7==r?function(e){return u(Object(n.assertDefined(e)))}:8==r?function(e){return u(o(e))}:e("./$.get-names").get;try{u("z")}catch(c){s=1}a(a.S+a.F*s,"Object",l)})},{"./$":141,"./$.def":130,"./$.get-names":135}],160:[function(e,t,r){"use strict";var n=e("./$.cof"),a={};a[e("./$.wks")("toStringTag")]="z",e("./$").FW&&"z"!=n(a)&&e("./$.redef")(Object.prototype,"toString",function(){return"[object "+n.classof(this)+"]"},!0)},{"./$":141,"./$.cof":125,"./$.redef":144,"./$.wks":153}],161:[function(e,t,r){"use strict";function n(e){var t=new I(function(){});return e&&(t.constructor=Object),I.resolve(t)===t}function a(e){return N(e)&&(q?"Promise"==v.classof(e):j in e)}function i(e,t){return h.FW||e!==I||t!==d?w(e,t):!0}function o(e){var t=$(e)[k];return void 0!=t?t:e}function u(e){var t;return N(e)&&(t=e.then),P(t)?t:!1}function s(e){var t=e.c;t.length&&M.call(_,function(){function r(t){var r,i,o=a?t.ok:t.fail;try{o?(a||(e.h=!0),r=o===!0?n:o(n),r===t.P?t.rej(TypeError("Promise-chain cycle")):(i=u(r))?i.call(r,t.res,t.rej):t.res(r)):t.rej(n)}catch(s){t.rej(s)}}for(var n=e.v,a=1==e.s,i=0;t.length>i;)r(t[i++]);t.length=0})}function l(e){var t,r=e[j],n=r.a||r.c,a=0;if(r.h)return!1;for(;n.length>a;)if(t=n[a++],t.fail||!l(t.P))return!1;return!0}function c(e){var t,r=this;r.d||(r.d=!0,r=r.r||r,r.v=e,r.s=2,r.a=r.c.slice(),setTimeout(function(){M.call(_,function(){l(t=r.p)&&(O?S.emit("unhandledRejection",e,t):_.console&&console.error&&console.error("Unhandled promise rejection",e)),r.a=void 0})},1),s(r))}function f(e){var t,r=this;if(!r.d){r.d=!0,r=r.r||r;try{(t=u(e))?M.call(_,function(){var n={r:r,d:!1};try{t.call(e,p(f,n,1),p(c,n,1))}catch(a){c.call(n,a)}}):(r.v=e,r.s=1,s(r))}catch(n){c.call({r:r,d:!1},n)}}}var d,h=e("./$"),p=e("./$.ctx"),v=e("./$.cof"),b=e("./$.def"),g=e("./$.assert"),y=e("./$.for-of"),m=e("./$.set-proto").set,w=e("./$.same"),x=e("./$.species"),k=e("./$.wks")("species"),j=e("./$.uid").safe("record"),E="Promise",_=h.g,S=_.process,O="process"==v(S),M=S&&S.nextTick||e("./$.task").set,I=_[E],P=h.isFunction,N=h.isObject,A=g.fn,$=g.obj,q=function(){function e(t){var r=new I(t);return m(r,e.prototype),r}var t=!1;try{if(t=P(I)&&P(I.resolve)&&n(),m(e,I),e.prototype=h.create(I.prototype,{constructor:{value:e}}),e.resolve(5).then(function(){})instanceof e||(t=!1),t&&h.DESC){var r=!1;I.resolve(h.setDesc({},"then",{get:function(){r=!0}})),t=r}}catch(a){t=!1}return t}();q||(I=function(e){A(e);var t={p:g.inst(this,I,E),c:[],a:void 0,s:0,d:!1,v:void 0,h:!1};h.hide(this,j,t);try{e(p(f,t,1),p(c,t,1))}catch(r){c.call(t,r)}},e("./$.mix")(I.prototype,{then:function(e,t){var r=$($(this).constructor)[k],n={ok:P(e)?e:!0,fail:P(t)?t:!1},a=n.P=new(void 0!=r?r:I)(function(e,t){n.res=A(e),n.rej=A(t)}),i=this[j];return i.c.push(n),i.a&&i.a.push(n),i.s&&s(i),a},"catch":function(e){return this.then(void 0,e)}})),b(b.G+b.W+b.F*!q,{Promise:I}),v.set(I,E),x(I),x(d=h.core[E]),b(b.S+b.F*!q,E,{reject:function(e){return new(o(this))(function(t,r){r(e)})}}),b(b.S+b.F*(!q||n(!0)),E,{resolve:function(e){return a(e)&&i(e.constructor,this)?e:new this(function(t){t(e)})}}),b(b.S+b.F*!(q&&e("./$.iter-detect")(function(e){I.all(e)["catch"](function(){})})),E,{all:function(e){var t=o(this),r=[];return new t(function(n,a){y(e,!1,r.push,r);var i=r.length,o=Array(i);i?h.each.call(r,function(e,r){t.resolve(e).then(function(e){o[r]=e,--i||n(o)},a)}):n(o)})},race:function(e){var t=o(this);return new t(function(r,n){y(e,!1,function(e){t.resolve(e).then(r,n)})})}})},{"./$":141,"./$.assert":123,"./$.cof":125,"./$.ctx":129,"./$.def":130,"./$.for-of":133,"./$.iter-detect":139,"./$.mix":143,"./$.same":145,"./$.set-proto":146,"./$.species":148,"./$.task":150,"./$.uid":151,"./$.wks":153}],162:[function(e,t,r){var n=e("./$").set,a=e("./$.string-at")(!0),i=e("./$.uid").safe("iter"),o=e("./$.iter"),u=o.step;e("./$.iter-define")(String,"String",function(e){n(this,i,{o:String(e),i:0})},function(){var e,t=this[i],r=t.o,n=t.i;return n>=r.length?u(1):(e=a(r,n),t.i+=e.length,u(0,e))})},{"./$":141,"./$.iter":140,"./$.iter-define":138,"./$.string-at":149,"./$.uid":151}],163:[function(e,t,r){"use strict";function n(e){var t=L[e]=f.set(j(P.prototype),A,e);return x&&N&&G(w,e,{configurable:!0,set:function(t){k(this,$)&&k(this[$],e)&&(this[$][e]=!1),G(this,e,S(1,t))}}),t}function a(e,t,r){return r&&k(L,t)?(r.enumerable?(k(e,$)&&e[$][t]&&(e[$][t]=!1),r=j(r,{enumerable:S(0,!1)})):(k(e,$)||_(e,$,S(1,{})),e[$][t]=!0),G(e,t,r)):_(e,t,r)}function i(e,t){m(e);for(var r,n=y(t=I(t)),i=0,o=n.length;o>i;)a(e,r=n[i++],t[r]);return e}function o(e,t){return void 0===t?j(e):i(j(e),t)}function u(e){var t=q.call(this,e);return t||!k(this,e)||!k(L,e)||k(this,$)&&this[$][e]?t:!0}function s(e,t){var r=E(e=I(e),t);return!r||!k(L,t)||k(e,$)&&e[$][t]||(r.enumerable=!0),r}function l(e){for(var t,r=M(I(e)),n=[],a=0;r.length>a;)k(L,t=r[a++])||t==$||n.push(t);return n}function c(e){for(var t,r=M(I(e)),n=[],a=0;r.length>a;)k(L,t=r[a++])&&n.push(L[t]);return n}var f=e("./$"),d=e("./$.cof").set,h=e("./$.uid"),p=e("./$.shared"),v=e("./$.def"),b=e("./$.redef"),g=e("./$.keyof"),y=e("./$.enum-keys"),m=e("./$.assert").obj,w=Object.prototype,x=f.DESC,k=f.has,j=f.create,E=f.getDesc,_=f.setDesc,S=f.desc,O=e("./$.get-names"),M=O.get,I=f.toObject,P=f.g.Symbol,N=!1,A=h("tag"),$=h("hidden"),q={}.propertyIsEnumerable,D=p("symbol-registry"),L=p("symbols"),F=f.isFunction(P),G=x?function(){try{return j(_({},$,{get:function(){return _(this,$,{value:!1})[$]}}))[$]||_}catch(e){return function(e,t,r){var n=E(w,t);n&&delete w[t],_(e,t,r),n&&e!==w&&_(w,t,n)}}}():_;F||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor");return n(h(arguments[0]))},b(P.prototype,"toString",function(){return this[A]}),f.create=o,f.setDesc=a,f.getDesc=s,f.setDescs=i,f.getNames=O.get=l,f.getSymbols=c,f.DESC&&f.FW&&b(w,"propertyIsEnumerable",u,!0));var C={"for":function(e){return k(D,e+="")?D[e]:D[e]=P(e)},keyFor:function(e){return g(D,e)},useSetter:function(){N=!0},useSimple:function(){N=!1}};f.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var r=e("./$.wks")(t);C[t]=F?r:n(r)}),N=!0,v(v.G+v.W,{Symbol:P}),v(v.S,"Symbol",C),v(v.S+v.F*!F,"Object",{create:o,defineProperty:a,defineProperties:i,getOwnPropertyDescriptor:s,getOwnPropertyNames:l,getOwnPropertySymbols:c}),d(P,"Symbol"),d(Math,"Math",!0),d(f.g.JSON,"JSON",!0)},{"./$":141,"./$.assert":123,"./$.cof":125,"./$.def":130,"./$.enum-keys":132,"./$.get-names":135,"./$.keyof":142,"./$.redef":144,"./$.shared":147,"./$.uid":151,"./$.wks":153}],164:[function(e,t,r){e("./$.collection-to-json")("Map")},{"./$.collection-to-json":127}],165:[function(e,t,r){e("./es6.array.iterator");var n=e("./$"),a=e("./$.iter").Iterators,i=e("./$.wks")("iterator"),o=a.Array,u=n.g.NodeList,s=n.g.HTMLCollection,l=u&&u.prototype,c=s&&s.prototype;n.FW&&(!u||i in l||n.hide(l,i,o),!s||i in c||n.hide(c,i,o)),a.NodeList=a.HTMLCollection=o},{"./$":141,"./$.iter":140,"./$.wks":153,"./es6.array.iterator":156}],166:[function(e,t,r){(function(r){var n="object"==typeof r?r:"object"==typeof window?window:"object"==typeof self?self:this,a=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=a&&n.regeneratorRuntime;n.regeneratorRuntime=void 0,t.exports=e("./runtime"),a?n.regeneratorRuntime=i:delete n.regeneratorRuntime,t.exports={"default":t.exports,__esModule:!0}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./runtime":167}],167:[function(e,t,r){(function(r,n){"use strict";var a=e("babel-runtime/core-js/symbol")["default"],i=e("babel-runtime/core-js/symbol/iterator")["default"],o=e("babel-runtime/core-js/object/create")["default"],u=e("babel-runtime/core-js/promise")["default"];!function(e){function n(e,t,r,n){var a=o((t||l).prototype);return a._invoke=v(e,r||null,new y(n||[])),a}function s(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}function l(){}function c(){}function f(){}function d(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function h(e){this.arg=e}function p(e){function t(t,r){var n=e[t](r),a=n.value;return a instanceof h?u.resolve(a.arg).then(i,o):u.resolve(a).then(function(e){return n.value=e,n})}function n(e,r){var n=a?a.then(function(){return t(e,r)}):new u(function(n){n(t(e,r))});return a=n["catch"](function(e){}),n}"object"==typeof r&&r.domain&&(t=r.domain.bind(t));var a,i=t.bind(e,"next"),o=t.bind(e,"throw");t.bind(e,"return");this._invoke=n}function v(e,t,r){var n=S;return function(a,i){if(n===M)throw new Error("Generator is already running");if(n===I){if("throw"===a)throw i;return w()}for(;;){var o=r.delegate;if(o){if("return"===a||"throw"===a&&o.iterator[a]===x){r.delegate=null;var u=o.iterator["return"];if(u){var l=s(u,o.iterator,i);if("throw"===l.type){a="throw",i=l.arg;continue}}if("return"===a)continue}var l=s(o.iterator[a],o.iterator,i);if("throw"===l.type){r.delegate=null,a="throw",i=l.arg;continue}a="next",i=x;var c=l.arg;if(!c.done)return n=O,c;r[o.resultName]=c.value,r.next=o.nextLoc,r.delegate=null}if("next"===a)n===O?r.sent=i:r.sent=x;else if("throw"===a){if(n===S)throw n=I,i;r.dispatchException(i)&&(a="next",i=x)}else"return"===a&&r.abrupt("return",i);n=M;var l=s(e,t,r);if("normal"===l.type){n=r.done?I:O;var c={value:l.arg,done:r.done};if(l.arg!==P)return c;r.delegate&&"next"===a&&(i=x)}else"throw"===l.type&&(n=I,a="throw",i=l.arg)}}}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function g(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function y(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function m(e){if(e){var t=e[j];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function a(){for(;++r<e.length;)if(k.call(e,r))return a.value=e[r],a.done=!1,a;return a.value=x,a.done=!0,a};return n.next=n}}return{next:w}}function w(){return{value:x,done:!0}}var x,k=Object.prototype.hasOwnProperty,j="function"==typeof a&&i||"@@iterator",E="object"==typeof t,_=e.regeneratorRuntime;if(_)return void(E&&(t.exports=_));_=e.regeneratorRuntime=E?t.exports:{},_.wrap=n;var S="suspendedStart",O="suspendedYield",M="executing",I="completed",P={},N=f.prototype=l.prototype;c.prototype=N.constructor=f,f.constructor=c,c.displayName="GeneratorFunction",_.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return t?t===c||"GeneratorFunction"===(t.displayName||t.name):!1},_.mark=function(e){return e.__proto__=f,e.prototype=o(N),e},_.awrap=function(e){return new h(e)},d(p.prototype),_.async=function(e,t,r,a){var i=new p(n(e,t,r,a));return _.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},d(N),N[j]=function(){return this},N.toString=function(){return"[object Generator]"},_.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},_.values=m,y.prototype={constructor:y,reset:function(e){if(this.prev=0,this.next=0,this.sent=x,this.done=!1,this.delegate=null,this.tryEntries.forEach(g),!e)for(var t in this)"t"===t.charAt(0)&&k.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=x)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,n){return i.type="throw",i.arg=e,r.next=t,!!n}if(this.done)throw e;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],i=a.completion;if("root"===a.tryLoc)return t("end");if(a.tryLoc<=this.prev){var o=k.call(a,"catchLoc"),u=k.call(a,"finallyLoc");if(o&&u){if(this.prev<a.catchLoc)return t(a.catchLoc,!0);if(this.prev<a.finallyLoc)return t(a.finallyLoc)}else if(o){if(this.prev<a.catchLoc)return t(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return t(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&k.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?this.next=a.finallyLoc:this.complete(i),P},complete:function(e,t){if("throw"===e.type)throw e.arg;"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=e.arg,this.next="end"):"normal"===e.type&&t&&(this.next=t)},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),g(r),P}},"catch":function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;g(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:m(e),resultName:t,nextLoc:r},P}}}("object"==typeof n?n:"object"==typeof window?window:"object"==typeof self?self:void 0)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:168,"babel-runtime/core-js/object/create":93,"babel-runtime/core-js/promise":98,"babel-runtime/core-js/symbol":99,"babel-runtime/core-js/symbol/iterator":100}],168:[function(e,t,r){function n(){c=!1,u.length?l=u.concat(l):f=-1,l.length&&a()}function a(){if(!c){var e=setTimeout(n);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u[f].run();f=-1,t=l.length}u=null,c=!1,clearTimeout(e)}}function i(e,t){this.fun=e,this.array=t}function o(){}var u,s=t.exports={},l=[],c=!1,f=-1;s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new i(e,t)),1!==l.length||c||setTimeout(a,0)},i.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=o,s.addListener=o,s.once=o,s.off=o,s.removeListener=o,s.removeAllListeners=o,
|
|
s.emit=o,s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},{}],169:[function(e,t,r){function n(e){var t=e?e.length:0;return t?e[t-1]:void 0}t.exports=n},{}],170:[function(e,t,r){function n(e,t,r){if(r?i(e,t,r):null==t){e=u(e);var n=e.length;return n>0?e[a(0,n-1)]:void 0}var l=-1,c=o(e),n=c.length,f=n-1;for(t=s(0>t?0:+t||0,n);++l<t;){var d=a(l,f),h=c[d];c[d]=c[l],c[l]=h}return c.length=t,c}var a=e("../internal/baseRandom"),i=e("../internal/isIterateeCall"),o=e("../lang/toArray"),u=e("../internal/toIterable"),s=Math.min;t.exports=n},{"../internal/baseRandom":194,"../internal/isIterateeCall":214,"../internal/toIterable":220,"../lang/toArray":233}],171:[function(e,t,r){function n(e){return a(e,i)}var a=e("./sample"),i=Number.POSITIVE_INFINITY;t.exports=n},{"./sample":170}],172:[function(e,t,r){function n(e){var t=e?a(e):0;return i(t)?t:o(e).length}var a=e("../internal/getLength"),i=e("../internal/isLength"),o=e("../object/keys");t.exports=n},{"../internal/getLength":206,"../internal/isLength":216,"../object/keys":235}],173:[function(e,t,r){function n(e,t){if("function"!=typeof e)throw new TypeError(a);return t=i(void 0===t?e.length-1:+t||0,0),function(){for(var r=arguments,n=-1,a=i(r.length-t,0),o=Array(a);++n<a;)o[n]=r[t+n];switch(t){case 0:return e.call(this,o);case 1:return e.call(this,r[0],o);case 2:return e.call(this,r[0],r[1],o)}var u=Array(t+1);for(n=-1;++n<t;)u[n]=r[n];return u[t]=o,e.apply(this,u)}}var a="Expected a function",i=Math.max;t.exports=n},{}],174:[function(e,t,r){function n(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}t.exports=n},{}],175:[function(e,t,r){function n(e,t){for(var r=-1,n=e.length;++r<n&&t(e[r],r,e)!==!1;);return e}t.exports=n},{}],176:[function(e,t,r){function n(e,t){for(var r=-1,n=e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}t.exports=n},{}],177:[function(e,t,r){function n(e,t){return null==t?e:a(t,i(t),e)}var a=e("./baseCopy"),i=e("../object/keys");t.exports=n},{"../object/keys":235,"./baseCopy":180}],178:[function(e,t,r){function n(e,t,r){var n=typeof e;return"function"==n?void 0===t?e:o(e,t,r):null==e?u:"object"==n?a(e):void 0===t?s(e):i(e,t)}var a=e("./baseMatches"),i=e("./baseMatchesProperty"),o=e("./bindCallback"),u=e("../utility/identity"),s=e("../utility/property");t.exports=n},{"../utility/identity":241,"../utility/property":242,"./baseMatches":188,"./baseMatchesProperty":189,"./bindCallback":198}],179:[function(e,t,r){function n(e,t,r,p,v,b,g){var m;if(r&&(m=v?r(e,p,v):r(e)),void 0!==m)return m;if(!d(e))return e;var w=f(e);if(w){if(m=s(e),!t)return a(e,m)}else{var k=G.call(e),j=k==y;if(k!=x&&k!=h&&(!j||v))return L[k]?l(e,k,t):v?e:{};if(m=c(j?{}:e),!t)return o(m,e)}b||(b=[]),g||(g=[]);for(var E=b.length;E--;)if(b[E]==e)return g[E];return b.push(e),g.push(m),(w?i:u)(e,function(a,i){m[i]=n(a,t,r,i,e,b,g)}),m}var a=e("./arrayCopy"),i=e("./arrayEach"),o=e("./baseAssign"),u=e("./baseForOwn"),s=e("./initCloneArray"),l=e("./initCloneByTag"),c=e("./initCloneObject"),f=e("../lang/isArray"),d=e("../lang/isObject"),h="[object Arguments]",p="[object Array]",v="[object Boolean]",b="[object Date]",g="[object Error]",y="[object Function]",m="[object Map]",w="[object Number]",x="[object Object]",k="[object RegExp]",j="[object Set]",E="[object String]",_="[object WeakMap]",S="[object ArrayBuffer]",O="[object Float32Array]",M="[object Float64Array]",I="[object Int8Array]",P="[object Int16Array]",N="[object Int32Array]",A="[object Uint8Array]",$="[object Uint8ClampedArray]",q="[object Uint16Array]",D="[object Uint32Array]",L={};L[h]=L[p]=L[S]=L[v]=L[b]=L[O]=L[M]=L[I]=L[P]=L[N]=L[w]=L[x]=L[k]=L[E]=L[A]=L[$]=L[q]=L[D]=!0,L[g]=L[y]=L[m]=L[j]=L[_]=!1;var F=Object.prototype,G=F.toString;t.exports=n},{"../lang/isArray":225,"../lang/isObject":229,"./arrayCopy":174,"./arrayEach":175,"./baseAssign":177,"./baseForOwn":183,"./initCloneArray":209,"./initCloneByTag":210,"./initCloneObject":211}],180:[function(e,t,r){function n(e,t,r){r||(r={});for(var n=-1,a=t.length;++n<a;){var i=t[n];r[i]=e[i]}return r}t.exports=n},{}],181:[function(e,t,r){var n=e("./createBaseFor"),a=n();t.exports=a},{"./createBaseFor":201}],182:[function(e,t,r){function n(e,t){return a(e,t,i)}var a=e("./baseFor"),i=e("../object/keysIn");t.exports=n},{"../object/keysIn":236,"./baseFor":181}],183:[function(e,t,r){function n(e,t){return a(e,t,i)}var a=e("./baseFor"),i=e("../object/keys");t.exports=n},{"../object/keys":235,"./baseFor":181}],184:[function(e,t,r){function n(e,t,r){if(null!=e){void 0!==r&&r in a(e)&&(t=[r]);for(var n=0,i=t.length;null!=e&&i>n;)e=e[t[n++]];return n&&n==i?e:void 0}}var a=e("./toObject");t.exports=n},{"./toObject":221}],185:[function(e,t,r){function n(e,t,r,u,s,l){return e===t?!0:null==e||null==t||!i(e)&&!o(t)?e!==e&&t!==t:a(e,t,n,r,u,s,l)}var a=e("./baseIsEqualDeep"),i=e("../lang/isObject"),o=e("./isObjectLike");t.exports=n},{"../lang/isObject":229,"./baseIsEqualDeep":186,"./isObjectLike":217}],186:[function(e,t,r){function n(e,t,r,n,d,v,b){var g=u(e),y=u(t),m=c,w=c;g||(m=p.call(e),m==l?m=f:m!=f&&(g=s(e))),y||(w=p.call(t),w==l?w=f:w!=f&&(y=s(t)));var x=m==f,k=w==f,j=m==w;if(j&&!g&&!x)return i(e,t,m);if(!d){var E=x&&h.call(e,"__wrapped__"),_=k&&h.call(t,"__wrapped__");if(E||_)return r(E?e.value():e,_?t.value():t,n,d,v,b)}if(!j)return!1;v||(v=[]),b||(b=[]);for(var S=v.length;S--;)if(v[S]==e)return b[S]==t;v.push(e),b.push(t);var O=(g?a:o)(e,t,r,n,d,v,b);return v.pop(),b.pop(),O}var a=e("./equalArrays"),i=e("./equalByTag"),o=e("./equalObjects"),u=e("../lang/isArray"),s=e("../lang/isTypedArray"),l="[object Arguments]",c="[object Array]",f="[object Object]",d=Object.prototype,h=d.hasOwnProperty,p=d.toString;t.exports=n},{"../lang/isArray":225,"../lang/isTypedArray":232,"./equalArrays":203,"./equalByTag":204,"./equalObjects":205}],187:[function(e,t,r){function n(e,t,r){var n=t.length,o=n,u=!r;if(null==e)return!o;for(e=i(e);n--;){var s=t[n];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++n<o;){s=t[n];var l=s[0],c=e[l],f=s[1];if(u&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=r?r(c,f,l):void 0;if(!(void 0===d?a(f,c,r,!0):d))return!1}}return!0}var a=e("./baseIsEqual"),i=e("./toObject");t.exports=n},{"./baseIsEqual":185,"./toObject":221}],188:[function(e,t,r){function n(e){var t=i(e);if(1==t.length&&t[0][2]){var r=t[0][0],n=t[0][1];return function(e){return null==e?!1:e[r]===n&&(void 0!==n||r in o(e))}}return function(e){return a(e,t)}}var a=e("./baseIsMatch"),i=e("./getMatchData"),o=e("./toObject");t.exports=n},{"./baseIsMatch":187,"./getMatchData":207,"./toObject":221}],189:[function(e,t,r){function n(e,t){var r=u(e),n=s(e)&&l(t),h=e+"";return e=d(e),function(u){if(null==u)return!1;var s=h;if(u=f(u),!(!r&&n||s in u)){if(u=1==e.length?u:a(u,o(e,0,-1)),null==u)return!1;s=c(e),u=f(u)}return u[s]===t?void 0!==t||s in u:i(t,u[s],void 0,!0)}}var a=e("./baseGet"),i=e("./baseIsEqual"),o=e("./baseSlice"),u=e("../lang/isArray"),s=e("./isKey"),l=e("./isStrictComparable"),c=e("../array/last"),f=e("./toObject"),d=e("./toPath");t.exports=n},{"../array/last":169,"../lang/isArray":225,"./baseGet":184,"./baseIsEqual":185,"./baseSlice":195,"./isKey":215,"./isStrictComparable":218,"./toObject":221,"./toPath":222}],190:[function(e,t,r){function n(e,t,r,d,h){if(!s(e))return e;var p=u(t)&&(o(t)||c(t)),v=p?void 0:f(t);return a(v||t,function(a,o){if(v&&(o=a,a=t[o]),l(a))d||(d=[]),h||(h=[]),i(e,t,o,n,r,d,h);else{var u=e[o],s=r?r(u,a,o,e,t):void 0,c=void 0===s;c&&(s=a),void 0===s&&(!p||o in e)||!c&&(s===s?s===u:u!==u)||(e[o]=s)}}),e}var a=e("./arrayEach"),i=e("./baseMergeDeep"),o=e("../lang/isArray"),u=e("./isArrayLike"),s=e("../lang/isObject"),l=e("./isObjectLike"),c=e("../lang/isTypedArray"),f=e("../object/keys");t.exports=n},{"../lang/isArray":225,"../lang/isObject":229,"../lang/isTypedArray":232,"../object/keys":235,"./arrayEach":175,"./baseMergeDeep":191,"./isArrayLike":212,"./isObjectLike":217}],191:[function(e,t,r){function n(e,t,r,n,f,d,h){for(var p=d.length,v=t[r];p--;)if(d[p]==v)return void(e[r]=h[p]);var b=e[r],g=f?f(b,v,r,e,t):void 0,y=void 0===g;y&&(g=v,u(v)&&(o(v)||l(v))?g=o(b)?b:u(b)?a(b):[]:s(v)||i(v)?g=i(b)?c(b):s(b)?b:{}:y=!1),d.push(v),h.push(g),y?e[r]=n(g,v,f,d,h):(g===g?g!==b:b===b)&&(e[r]=g)}var a=e("./arrayCopy"),i=e("../lang/isArguments"),o=e("../lang/isArray"),u=e("./isArrayLike"),s=e("../lang/isPlainObject"),l=e("../lang/isTypedArray"),c=e("../lang/toPlainObject");t.exports=n},{"../lang/isArguments":224,"../lang/isArray":225,"../lang/isPlainObject":230,"../lang/isTypedArray":232,"../lang/toPlainObject":234,"./arrayCopy":174,"./isArrayLike":212}],192:[function(e,t,r){function n(e){return function(t){return null==t?void 0:t[e]}}t.exports=n},{}],193:[function(e,t,r){function n(e){var t=e+"";return e=i(e),function(r){return a(r,e,t)}}var a=e("./baseGet"),i=e("./toPath");t.exports=n},{"./baseGet":184,"./toPath":222}],194:[function(e,t,r){function n(e,t){return e+a(i()*(t-e+1))}var a=Math.floor,i=Math.random;t.exports=n},{}],195:[function(e,t,r){function n(e,t,r){var n=-1,a=e.length;t=null==t?0:+t||0,0>t&&(t=-t>a?0:a+t),r=void 0===r||r>a?a:+r||0,0>r&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n<a;)i[n]=e[n+t];return i}t.exports=n},{}],196:[function(e,t,r){function n(e){return null==e?"":e+""}t.exports=n},{}],197:[function(e,t,r){function n(e,t){for(var r=-1,n=t.length,a=Array(n);++r<n;)a[r]=e[t[r]];return a}t.exports=n},{}],198:[function(e,t,r){function n(e,t,r){if("function"!=typeof e)return a;if(void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 3:return function(r,n,a){return e.call(t,r,n,a)};case 4:return function(r,n,a,i){return e.call(t,r,n,a,i)};case 5:return function(r,n,a,i,o){return e.call(t,r,n,a,i,o)}}return function(){return e.apply(t,arguments)}}var a=e("../utility/identity");t.exports=n},{"../utility/identity":241}],199:[function(e,t,r){(function(e){function r(e){var t=new n(e.byteLength),r=new a(t);return r.set(new a(e)),t}var n=e.ArrayBuffer,a=e.Uint8Array;t.exports=r}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],200:[function(e,t,r){function n(e){return o(function(t,r){var n=-1,o=null==t?0:r.length,u=o>2?r[o-2]:void 0,s=o>2?r[2]:void 0,l=o>1?r[o-1]:void 0;for("function"==typeof u?(u=a(u,l,5),o-=2):(u="function"==typeof l?l:void 0,o-=u?1:0),s&&i(r[0],r[1],s)&&(u=3>o?void 0:u,o=1);++n<o;){var c=r[n];c&&e(t,c,u)}return t})}var a=e("./bindCallback"),i=e("./isIterateeCall"),o=e("../function/restParam");t.exports=n},{"../function/restParam":173,"./bindCallback":198,"./isIterateeCall":214}],201:[function(e,t,r){function n(e){return function(t,r,n){for(var i=a(t),o=n(t),u=o.length,s=e?u:-1;e?s--:++s<u;){var l=o[s];if(r(i[l],l,i)===!1)break}return t}}var a=e("./toObject");t.exports=n},{"./toObject":221}],202:[function(e,t,r){function n(e){return function(t,r,n){var o={};return r=a(r,n,3),i(t,function(t,n,a){var i=r(t,n,a);n=e?i:n,t=e?t:i,o[n]=t}),o}}var a=e("./baseCallback"),i=e("./baseForOwn");t.exports=n},{"./baseCallback":178,"./baseForOwn":183}],203:[function(e,t,r){function n(e,t,r,n,i,o,u){var s=-1,l=e.length,c=t.length;if(l!=c&&!(i&&c>l))return!1;for(;++s<l;){var f=e[s],d=t[s],h=n?n(i?d:f,i?f:d,s):void 0;if(void 0!==h){if(h)continue;return!1}if(i){if(!a(t,function(e){return f===e||r(f,e,n,i,o,u)}))return!1}else if(f!==d&&!r(f,d,n,i,o,u))return!1}return!0}var a=e("./arraySome");t.exports=n},{"./arraySome":176}],204:[function(e,t,r){function n(e,t,r){switch(r){case a:case i:return+e==+t;case o:return e.name==t.name&&e.message==t.message;case u:return e!=+e?t!=+t:e==+t;case s:case l:return e==t+""}return!1}var a="[object Boolean]",i="[object Date]",o="[object Error]",u="[object Number]",s="[object RegExp]",l="[object String]";t.exports=n},{}],205:[function(e,t,r){function n(e,t,r,n,i,u,s){var l=a(e),c=l.length,f=a(t),d=f.length;if(c!=d&&!i)return!1;for(var h=c;h--;){var p=l[h];if(!(i?p in t:o.call(t,p)))return!1}for(var v=i;++h<c;){p=l[h];var b=e[p],g=t[p],y=n?n(i?g:b,i?b:g,p):void 0;if(!(void 0===y?r(b,g,n,i,u,s):y))return!1;v||(v="constructor"==p)}if(!v){var m=e.constructor,w=t.constructor;if(m!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof w&&w instanceof w))return!1}return!0}var a=e("../object/keys"),i=Object.prototype,o=i.hasOwnProperty;t.exports=n},{"../object/keys":235}],206:[function(e,t,r){var n=e("./baseProperty"),a=n("length");t.exports=a},{"./baseProperty":192}],207:[function(e,t,r){function n(e){for(var t=i(e),r=t.length;r--;)t[r][2]=a(t[r][1]);return t}var a=e("./isStrictComparable"),i=e("../object/pairs");t.exports=n},{"../object/pairs":239,"./isStrictComparable":218}],208:[function(e,t,r){function n(e,t){var r=null==e?void 0:e[t];return a(r)?r:void 0}var a=e("../lang/isNative");t.exports=n},{"../lang/isNative":228}],209:[function(e,t,r){function n(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&i.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var a=Object.prototype,i=a.hasOwnProperty;t.exports=n},{}],210:[function(e,t,r){function n(e,t,r){var n=e.constructor;switch(t){case c:return a(e);case i:case o:return new n(+e);case f:case d:case h:case p:case v:case b:case g:case y:case m:var x=e.buffer;return new n(r?a(x):x,e.byteOffset,e.length);case u:case l:return new n(e);case s:var k=new n(e.source,w.exec(e));k.lastIndex=e.lastIndex}return k}var a=e("./bufferClone"),i="[object Boolean]",o="[object Date]",u="[object Number]",s="[object RegExp]",l="[object String]",c="[object ArrayBuffer]",f="[object Float32Array]",d="[object Float64Array]",h="[object Int8Array]",p="[object Int16Array]",v="[object Int32Array]",b="[object Uint8Array]",g="[object Uint8ClampedArray]",y="[object Uint16Array]",m="[object Uint32Array]",w=/\w*$/;t.exports=n},{"./bufferClone":199}],211:[function(e,t,r){function n(e){var t=e.constructor;return"function"==typeof t&&t instanceof t||(t=Object),new t}t.exports=n},{}],212:[function(e,t,r){function n(e){return null!=e&&i(a(e))}var a=e("./getLength"),i=e("./isLength");t.exports=n},{"./getLength":206,"./isLength":216}],213:[function(e,t,r){function n(e,t){return e="number"==typeof e||a.test(e)?+e:-1,t=null==t?i:t,e>-1&&e%1==0&&t>e}var a=/^\d+$/,i=9007199254740991;t.exports=n},{}],214:[function(e,t,r){function n(e,t,r){if(!o(r))return!1;var n=typeof t;if("number"==n?a(r)&&i(t,r.length):"string"==n&&t in r){var u=r[t];return e===e?e===u:u!==u}return!1}var a=e("./isArrayLike"),i=e("./isIndex"),o=e("../lang/isObject");t.exports=n},{"../lang/isObject":229,"./isArrayLike":212,"./isIndex":213}],215:[function(e,t,r){function n(e,t){var r=typeof e;if("string"==r&&u.test(e)||"number"==r)return!0;if(a(e))return!1;var n=!o.test(e);return n||null!=t&&e in i(t)}var a=e("../lang/isArray"),i=e("./toObject"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=n},{"../lang/isArray":225,"./toObject":221}],216:[function(e,t,r){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&a>=e}var a=9007199254740991;t.exports=n},{}],217:[function(e,t,r){function n(e){return!!e&&"object"==typeof e}t.exports=n},{}],218:[function(e,t,r){function n(e){return e===e&&!a(e)}var a=e("../lang/isObject");t.exports=n},{"../lang/isObject":229}],219:[function(e,t,r){function n(e){for(var t=s(e),r=t.length,n=r&&e.length,l=!!n&&u(n)&&(i(e)||a(e)),f=-1,d=[];++f<r;){var h=t[f];(l&&o(h,n)||c.call(e,h))&&d.push(h)}return d}var a=e("../lang/isArguments"),i=e("../lang/isArray"),o=e("./isIndex"),u=e("./isLength"),s=e("../object/keysIn"),l=Object.prototype,c=l.hasOwnProperty;t.exports=n},{"../lang/isArguments":224,"../lang/isArray":225,"../object/keysIn":236,"./isIndex":213,"./isLength":216}],220:[function(e,t,r){function n(e){return null==e?[]:a(e)?i(e)?e:Object(e):o(e)}var a=e("./isArrayLike"),i=e("../lang/isObject"),o=e("../object/values");t.exports=n},{"../lang/isObject":229,"../object/values":240,"./isArrayLike":212}],221:[function(e,t,r){function n(e){return a(e)?e:Object(e)}var a=e("../lang/isObject");t.exports=n},{"../lang/isObject":229}],222:[function(e,t,r){function n(e){if(i(e))return e;var t=[];return a(e).replace(o,function(e,r,n,a){t.push(n?a.replace(u,"$1"):r||e)}),t}var a=e("./baseToString"),i=e("../lang/isArray"),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,u=/\\(\\)?/g;t.exports=n},{"../lang/isArray":225,"./baseToString":196}],223:[function(e,t,r){function n(e,t,r,n){return t&&"boolean"!=typeof t&&o(e,t,r)?t=!1:"function"==typeof t&&(n=r,r=t,t=!1),"function"==typeof r?a(e,t,i(r,n,1)):a(e,t)}var a=e("../internal/baseClone"),i=e("../internal/bindCallback"),o=e("../internal/isIterateeCall");t.exports=n},{"../internal/baseClone":179,"../internal/bindCallback":198,"../internal/isIterateeCall":214}],224:[function(e,t,r){function n(e){return i(e)&&a(e)&&u.call(e,"callee")&&!s.call(e,"callee")}var a=e("../internal/isArrayLike"),i=e("../internal/isObjectLike"),o=Object.prototype,u=o.hasOwnProperty,s=o.propertyIsEnumerable;t.exports=n},{"../internal/isArrayLike":212,"../internal/isObjectLike":217}],225:[function(e,t,r){var n=e("../internal/getNative"),a=e("../internal/isLength"),i=e("../internal/isObjectLike"),o="[object Array]",u=Object.prototype,s=u.toString,l=n(Array,"isArray"),c=l||function(e){return i(e)&&a(e.length)&&s.call(e)==o};t.exports=c},{"../internal/getNative":208,"../internal/isLength":216,"../internal/isObjectLike":217}],226:[function(e,t,r){function n(e){return e===!0||e===!1||a(e)&&u.call(e)==i}var a=e("../internal/isObjectLike"),i="[object Boolean]",o=Object.prototype,u=o.toString;t.exports=n},{"../internal/isObjectLike":217}],227:[function(e,t,r){function n(e){return a(e)&&u.call(e)==i}var a=e("./isObject"),i="[object Function]",o=Object.prototype,u=o.toString;t.exports=n},{"./isObject":229}],228:[function(e,t,r){function n(e){return null==e?!1:a(e)?c.test(s.call(e)):i(e)&&o.test(e)}var a=e("./isFunction"),i=e("../internal/isObjectLike"),o=/^\[object .+?Constructor\]$/,u=Object.prototype,s=Function.prototype.toString,l=u.hasOwnProperty,c=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=n},{"../internal/isObjectLike":217,"./isFunction":227}],229:[function(e,t,r){function n(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=n},{}],230:[function(e,t,r){function n(e){var t;if(!o(e)||c.call(e)!=u||i(e)||!l.call(e,"constructor")&&(t=e.constructor,"function"==typeof t&&!(t instanceof t)))return!1;var r;return a(e,function(e,t){r=t}),void 0===r||l.call(e,r)}var a=e("../internal/baseForIn"),i=e("./isArguments"),o=e("../internal/isObjectLike"),u="[object Object]",s=Object.prototype,l=s.hasOwnProperty,c=s.toString;t.exports=n},{"../internal/baseForIn":182,"../internal/isObjectLike":217,"./isArguments":224}],231:[function(e,t,r){function n(e){return"string"==typeof e||a(e)&&u.call(e)==i}var a=e("../internal/isObjectLike"),i="[object String]",o=Object.prototype,u=o.toString;t.exports=n},{"../internal/isObjectLike":217}],232:[function(e,t,r){function n(e){return i(e)&&a(e.length)&&!!I[N.call(e)]}var a=e("../internal/isLength"),i=e("../internal/isObjectLike"),o="[object Arguments]",u="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",h="[object Number]",p="[object Object]",v="[object RegExp]",b="[object Set]",g="[object String]",y="[object WeakMap]",m="[object ArrayBuffer]",w="[object Float32Array]",x="[object Float64Array]",k="[object Int8Array]",j="[object Int16Array]",E="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",O="[object Uint16Array]",M="[object Uint32Array]",I={};I[w]=I[x]=I[k]=I[j]=I[E]=I[_]=I[S]=I[O]=I[M]=!0,I[o]=I[u]=I[m]=I[s]=I[l]=I[c]=I[f]=I[d]=I[h]=I[p]=I[v]=I[b]=I[g]=I[y]=!1;var P=Object.prototype,N=P.toString;t.exports=n},{"../internal/isLength":216,"../internal/isObjectLike":217}],233:[function(e,t,r){function n(e){var t=e?i(e):0;return o(t)?t?a(e):[]:u(e)}var a=e("../internal/arrayCopy"),i=e("../internal/getLength"),o=e("../internal/isLength"),u=e("../object/values");t.exports=n},{"../internal/arrayCopy":174,"../internal/getLength":206,"../internal/isLength":216,"../object/values":240}],234:[function(e,t,r){function n(e){return a(e,i(e))}var a=e("../internal/baseCopy"),i=e("../object/keysIn");t.exports=n},{"../internal/baseCopy":180,"../object/keysIn":236}],235:[function(e,t,r){var n=e("../internal/getNative"),a=e("../internal/isArrayLike"),i=e("../lang/isObject"),o=e("../internal/shimKeys"),u=n(Object,"keys"),s=u?function(e){var t=null==e?void 0:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&a(e)?o(e):i(e)?u(e):[]}:o;t.exports=s},{"../internal/getNative":208,"../internal/isArrayLike":212,"../internal/shimKeys":219,"../lang/isObject":229}],236:[function(e,t,r){function n(e){if(null==e)return[];s(e)||(e=Object(e));var t=e.length;t=t&&u(t)&&(i(e)||a(e))&&t||0;for(var r=e.constructor,n=-1,l="function"==typeof r&&r.prototype===e,f=Array(t),d=t>0;++n<t;)f[n]=n+"";for(var h in e)d&&o(h,t)||"constructor"==h&&(l||!c.call(e,h))||f.push(h);return f}var a=e("../lang/isArguments"),i=e("../lang/isArray"),o=e("../internal/isIndex"),u=e("../internal/isLength"),s=e("../lang/isObject"),l=Object.prototype,c=l.hasOwnProperty;t.exports=n},{"../internal/isIndex":213,"../internal/isLength":216,"../lang/isArguments":224,"../lang/isArray":225,"../lang/isObject":229}],237:[function(e,t,r){var n=e("../internal/createObjectMapper"),a=n();t.exports=a},{"../internal/createObjectMapper":202}],238:[function(e,t,r){var n=e("../internal/baseMerge"),a=e("../internal/createAssigner"),i=a(n);t.exports=i},{"../internal/baseMerge":190,"../internal/createAssigner":200}],239:[function(e,t,r){function n(e){e=i(e);for(var t=-1,r=a(e),n=r.length,o=Array(n);++t<n;){var u=r[t];o[t]=[u,e[u]]}return o}var a=e("./keys"),i=e("../internal/toObject");t.exports=n},{"../internal/toObject":221,"./keys":235}],240:[function(e,t,r){function n(e){return a(e,i(e))}var a=e("../internal/baseValues"),i=e("./keys");t.exports=n},{"../internal/baseValues":197,"./keys":235}],241:[function(e,t,r){function n(e){return e}t.exports=n},{}],242:[function(e,t,r){function n(e){return o(e)?a(e):i(e)}var a=e("../internal/baseProperty"),i=e("../internal/basePropertyDeep"),o=e("../internal/isKey");t.exports=n},{"../internal/baseProperty":192,"../internal/basePropertyDeep":193,"../internal/isKey":215}],243:[function(e,t,r){var n,a=/%(\+)?(\d+\$)?(0|'.)?(-)?(\d+)?(\.\d+)?(.)/g,i=function(e){for(var t,r,o,u,s,l=1;r=a.exec(e);){if(t=r[7],(u=r[2])&&"$"==u[o=u.length-1]&&(u=u.substr(0,o)),i[o=t.toLowerCase()]&&(s=i[o](arguments[u||l],/[A-Z]/.test(t),r[1]))!==n){if(t=""+s,(o=r[3])?"'"==o[0]&&(o=o[1]):o=" ",u=r[5])for(;t.length<u;)t=r[4]?t+o:o+t;(o=r[6]&&r[6].substr(1))&&t.length>o&&(t=r[4]?t.substr(0,o):t.substr(t.length-o)),l++}e=e.substr(0,o=r.index)+t+e.substr(a.lastIndex),a.lastIndex=t.length+o}return e};i.s=function(e,t){return t?n:e+""},t.exports=i},{}]},{},[59])(59)});
|