text: /*! For license information please see main.9e80ba78.js.LICENSE.txt */
  !function(){var e={7228:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},2858:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},3884:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(s){u=!0,i=s}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}},e.exports.__esModule=!0,e.exports.default=e.exports},521:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},3038:function(e,t,n){var r=n(2858),i=n(3884),o=n(379),a=n(521);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},379:function(e,t,n){var r=n(7228);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},4196:function(e){e.exports=function(e,t){var n=t.length;if(0!==n){var r=e.length;e.length+=n;for(var i=0;i<n;i++)e[r+i]=t[i]}}},1694:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=i.apply(null,n);a&&e.push(a)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var u in n)r.call(n,u)&&n[u]&&e.push(u);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},7465:function(e){"use strict";var t,n="object"===typeof Reflect?Reflect:null,r=n&&"function"===typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!==e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"===typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}g(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&g(e,"error",t,n)}(e,i,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var a=10;function u(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,o,a,l;if(u(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"===typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=s(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,l=c,console&&console.warn&&console.warn(l)}return e}function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=c.bind(r);return i.listener=n,r.wrapFn=i,i}function d(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):p(i,i.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"===typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!==typeof e||e<0||i(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||i(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return s(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var s=o[e];if(void 0===s)return!1;if("function"===typeof s)r(s,this,t);else{var l=s.length,c=p(s,l);for(n=0;n<l;++n)r(c[n],this,t)}return!0},o.prototype.addListener=function(e,t){return l(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return l(this,e,t,!0)},o.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,r,i,o,a;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},o.prototype.listeners=function(e){return d(this,e,!0)},o.prototype.rawListeners=function(e){return d(this,e,!1)},o.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},o.prototype.listenerCount=h,o.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},4609:function(e){e.exports={linLogMode:!1,outboundAttractionDistribution:!1,adjustSizes:!1,edgeWeightInfluence:1,scalingRatio:1,strongGravityMode:!1,gravity:1,slowDown:1,barnesHutOptimize:!1,barnesHutTheta:.5}},9400:function(e,t){t.assign=function(e){e=e||{};var t,n,r,i=Array.prototype.slice.call(arguments).slice(1);for(t=0,r=i.length;t<r;t++)if(i[t])for(n in i[t])e[n]=i[t][n];return e},t.validateSettings=function(e){return"linLogMode"in e&&"boolean"!==typeof e.linLogMode?{message:"the `linLogMode` setting should be a boolean."}:"outboundAttractionDistribution"in e&&"boolean"!==typeof e.outboundAttractionDistribution?{message:"the `outboundAttractionDistribution` setting should be a boolean."}:"adjustSizes"in e&&"boolean"!==typeof e.adjustSizes?{message:"the `adjustSizes` setting should be a boolean."}:"edgeWeightInfluence"in e&&"number"!==typeof e.edgeWeightInfluence?{message:"the `edgeWeightInfluence` setting should be a number."}:!("scalingRatio"in e)||"number"===typeof e.scalingRatio&&e.scalingRatio>=0?"strongGravityMode"in e&&"boolean"!==typeof e.strongGravityMode?{message:"the `strongGravityMode` setting should be a boolean."}:!("gravity"in e)||"number"===typeof e.gravity&&e.gravity>=0?"slowDown"in e&&!("number"===typeof e.slowDown||e.slowDown>=0)?{message:"the `slowDown` setting should be a number >= 0."}:"barnesHutOptimize"in e&&"boolean"!==typeof e.barnesHutOptimize?{message:"the `barnesHutOptimize` setting should be a boolean."}:!("barnesHutTheta"in e)||"number"===typeof e.barnesHutTheta&&e.barnesHutTheta>=0?null:{message:"the `barnesHutTheta` setting should be a number >= 0."}:{message:"the `gravity` setting should be a number >= 0."}:{message:"the `scalingRatio` setting should be a number >= 0."}},t.graphToByteArrays=function(e,t){var n,r=e.order,i=e.size,o={},a=new Float32Array(10*r),u=new Float32Array(3*i);n=0,e.forEachNode((function(t,r){o[t]=n,a[n]=r.x,a[n+1]=r.y,a[n+2]=0,a[n+3]=0,a[n+4]=0,a[n+5]=0,a[n+6]=1+e.degree(t),a[n+7]=1,a[n+8]=r.size||1,a[n+9]=r.fixed?1:0,n+=10}));return n=0,e.forEachEdge((function(e,r,i,a){u[n]=o[i],u[n+1]=o[a],u[n+2]=function(e){if(!t)return 1;var n=e[t];return("number"!==typeof n||isNaN(n))&&(n=1),n}(r),n+=3})),{nodes:a,edges:u}},t.assignLayoutChanges=function(e,t){var n=0;e.updateEachNodeAttributes((function(e,r){return r.x=t[n],r.y=t[n+1],n+=10,r}),{attributes:["x","y"]})},t.collectLayoutChanges=function(e,t){for(var n=e.nodes(),r={},i=0,o=0,a=t.length;i<a;i+=10)r[n[o]]={x:t[i],y:t[i+1]},o++;return r},t.createWorker=function(e){var t=window.URL||window.webkitURL,n=e.toString(),r=t.createObjectURL(new Blob(["("+n+").call(this);"],{type:"text/javascript"})),i=new Worker(r);return t.revokeObjectURL(r),i}},4351:function(e){e.exports=function(){var e,t,n={};!function(){var e=10;n.exports=function(t,n,r){var i,o,a,u,s,l,c,f,d,h,p,g,v,y,m,b,w,_,x,E,k,S,C,L=n.length,T=r.length,O=t.adjustSizes,P=t.barnesHutTheta*t.barnesHutTheta,A=[];for(a=0;a<L;a+=e)n[a+4]=n[a+2],n[a+5]=n[a+3],n[a+2]=0,n[a+3]=0;if(t.outboundAttractionDistribution){for(p=0,a=0;a<L;a+=e)p+=n[a+6];p/=L/e}if(t.barnesHutOptimize){var N,M,j,R=1/0,z=-1/0,D=1/0,G=-1/0;for(a=0;a<L;a+=e)R=Math.min(R,n[a+0]),z=Math.max(z,n[a+0]),D=Math.min(D,n[a+1]),G=Math.max(G,n[a+1]);var I=z-R,F=G-D;for(I>F?G=(D-=(I-F)/2)+I:z=(R-=(F-I)/2)+F,A[0]=-1,A[1]=(R+z)/2,A[2]=(D+G)/2,A[3]=Math.max(z-R,G-D),A[4]=-1,A[5]=-1,A[6]=0,A[7]=0,A[8]=0,i=1,a=0;a<L;a+=e)for(o=0,j=3;;){if(!(A[o+5]>=0)){if(A[o+0]<0){A[o+0]=a;break}if(A[o+5]=9*i,f=A[o+3]/2,A[(d=A[o+5])+0]=-1,A[d+1]=A[o+1]-f,A[d+2]=A[o+2]-f,A[d+3]=f,A[d+4]=d+9,A[d+5]=-1,A[d+6]=0,A[d+7]=0,A[d+8]=0,A[(d+=9)+0]=-1,A[d+1]=A[o+1]-f,A[d+2]=A[o+2]+f,A[d+3]=f,A[d+4]=d+9,A[d+5]=-1,A[d+6]=0,A[d+7]=0,A[d+8]=0,A[(d+=9)+0]=-1,A[d+1]=A[o+1]+f,A[d+2]=A[o+2]-f,A[d+3]=f,A[d+4]=d+9,A[d+5]=-1,A[d+6]=0,A[d+7]=0,A[d+8]=0,A[(d+=9)+0]=-1,A[d+1]=A[o+1]+f,A[d+2]=A[o+2]+f,A[d+3]=f,A[d+4]=A[o+4],A[d+5]=-1,A[d+6]=0,A[d+7]=0,A[d+8]=0,i+=4,N=n[A[o+0]+0]<A[o+1]?n[A[o+0]+1]<A[o+2]?A[o+5]:A[o+5]+9:n[A[o+0]+1]<A[o+2]?A[o+5]+18:A[o+5]+27,A[o+6]=n[A[o+0]+6],A[o+7]=n[A[o+0]+0],A[o+8]=n[A[o+0]+1],A[N+0]=A[o+0],A[o+0]=-1,N===(M=n[a+0]<A[o+1]?n[a+1]<A[o+2]?A[o+5]:A[o+5]+9:n[a+1]<A[o+2]?A[o+5]+18:A[o+5]+27)){if(j--){o=N;continue}j=3;break}A[M+0]=a;break}N=n[a+0]<A[o+1]?n[a+1]<A[o+2]?A[o+5]:A[o+5]+9:n[a+1]<A[o+2]?A[o+5]+18:A[o+5]+27,A[o+7]=(A[o+7]*A[o+6]+n[a+0]*n[a+6])/(A[o+6]+n[a+6]),A[o+8]=(A[o+8]*A[o+6]+n[a+1]*n[a+6])/(A[o+6]+n[a+6]),A[o+6]+=n[a+6],o=N}}if(t.barnesHutOptimize){for(g=t.scalingRatio,a=0;a<L;a+=e)for(o=0;;)if(A[o+5]>=0){if(b=Math.pow(n[a+0]-A[o+7],2)+Math.pow(n[a+1]-A[o+8],2),4*(h=A[o+3])*h/b<P){if(v=n[a+0]-A[o+7],y=n[a+1]-A[o+8],!0===O?b>0?(w=g*n[a+6]*A[o+6]/b,n[a+2]+=v*w,n[a+3]+=y*w):b<0&&(w=-g*n[a+6]*A[o+6]/Math.sqrt(b),n[a+2]+=v*w,n[a+3]+=y*w):b>0&&(w=g*n[a+6]*A[o+6]/b,n[a+2]+=v*w,n[a+3]+=y*w),(o=A[o+4])<0)break;continue}o=A[o+5]}else if((l=A[o+0])>=0&&l!==a&&(b=(v=n[a+0]-n[l+0])*v+(y=n[a+1]-n[l+1])*y,!0===O?b>0?(w=g*n[a+6]*n[l+6]/b,n[a+2]+=v*w,n[a+3]+=y*w):b<0&&(w=-g*n[a+6]*n[l+6]/Math.sqrt(b),n[a+2]+=v*w,n[a+3]+=y*w):b>0&&(w=g*n[a+6]*n[l+6]/b,n[a+2]+=v*w,n[a+3]+=y*w)),(o=A[o+4])<0)break}else for(g=t.scalingRatio,u=0;u<L;u+=e)for(s=0;s<u;s+=e)v=n[u+0]-n[s+0],y=n[u+1]-n[s+1],!0===O?(b=Math.sqrt(v*v+y*y)-n[u+8]-n[s+8])>0?(w=g*n[u+6]*n[s+6]/b/b,n[u+2]+=v*w,n[u+3]+=y*w,n[s+2]+=v*w,n[s+3]+=y*w):b<0&&(w=100*g*n[u+6]*n[s+6],n[u+2]+=v*w,n[u+3]+=y*w,n[s+2]-=v*w,n[s+3]-=y*w):(b=Math.sqrt(v*v+y*y))>0&&(w=g*n[u+6]*n[s+6]/b/b,n[u+2]+=v*w,n[u+3]+=y*w,n[s+2]-=v*w,n[s+3]-=y*w);for(d=t.gravity/t.scalingRatio,g=t.scalingRatio,a=0;a<L;a+=e)w=0,v=n[a+0],y=n[a+1],b=Math.sqrt(Math.pow(v,2)+Math.pow(y,2)),t.strongGravityMode?b>0&&(w=g*n[a+6]*d):b>0&&(w=g*n[a+6]*d/b),n[a+2]-=v*w,n[a+3]-=y*w;for(g=1*(t.outboundAttractionDistribution?p:1),c=0;c<T;c+=3)u=r[c+0],s=r[c+1],f=r[c+2],m=Math.pow(f,t.edgeWeightInfluence),v=n[u+0]-n[s+0],y=n[u+1]-n[s+1],!0===O?(b=Math.sqrt(Math.pow(v,2)+Math.pow(y,2)-n[u+8]-n[s+8]),t.linLogMode?t.outboundAttractionDistribution?b>0&&(w=-g*m*Math.log(1+b)/b/n[u+6]):b>0&&(w=-g*m*Math.log(1+b)/b):t.outboundAttractionDistribution?b>0&&(w=-g*m/n[u+6]):b>0&&(w=-g*m)):(b=Math.sqrt(Math.pow(v,2)+Math.pow(y,2)),t.linLogMode?t.outboundAttractionDistribution?b>0&&(w=-g*m*Math.log(1+b)/b/n[u+6]):b>0&&(w=-g*m*Math.log(1+b)/b):t.outboundAttractionDistribution?(b=1,w=-g*m/n[u+6]):(b=1,w=-g*m)),b>0&&(n[u+2]+=v*w,n[u+3]+=y*w,n[s+2]-=v*w,n[s+3]-=y*w);if(!0===O)for(a=0;a<L;a+=e)1!==n[a+9]&&((_=Math.sqrt(Math.pow(n[a+2],2)+Math.pow(n[a+3],2)))>10&&(n[a+2]=10*n[a+2]/_,n[a+3]=10*n[a+3]/_),x=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),E=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,k=.1*Math.log(1+E)/(1+Math.sqrt(x)),S=n[a+0]+n[a+2]*(k/t.slowDown),n[a+0]=S,C=n[a+1]+n[a+3]*(k/t.slowDown),n[a+1]=C);else for(a=0;a<L;a+=e)1!==n[a+9]&&(x=n[a+6]*Math.sqrt((n[a+4]-n[a+2])*(n[a+4]-n[a+2])+(n[a+5]-n[a+3])*(n[a+5]-n[a+3])),E=Math.sqrt((n[a+4]+n[a+2])*(n[a+4]+n[a+2])+(n[a+5]+n[a+3])*(n[a+5]+n[a+3]))/2,k=n[a+7]*Math.log(1+E)/(1+Math.sqrt(x)),n[a+7]=Math.min(1,Math.sqrt(k*(Math.pow(n[a+2],2)+Math.pow(n[a+3],2))/(1+Math.sqrt(x)))),S=n[a+0]+n[a+2]*(k/t.slowDown),n[a+0]=S,C=n[a+1]+n[a+3]*(k/t.slowDown),n[a+1]=C);return{}}}();var r=n.exports;self.addEventListener("message",(function(n){var i=n.data;e=new Float32Array(i.nodes),i.edges&&(t=new Float32Array(i.edges)),r(i.settings,e,t),self.postMessage({nodes:e.buffer},[e.buffer])}))}},3204:function(e,t,n){var r=n(4351),i=n(362),o=n(9400),a=n(4609);function u(e,t){if(t=t||{},!i(e))throw new Error("graphology-layout-forceatlas2/worker: the given graph is not a valid graphology instance.");var n=t.attributes||{},r=t.weighted?n.weight||"weight":null,u=o.assign({},a,t.settings),s=o.validateSettings(u);if(s)throw new Error("graphology-layout-forceatlas2/worker: "+s.message);this.worker=null,this.graph=e,this.settings=u,this.weightAttribute=r,this.matrices=null,this.running=!1,this.killed=!1,this.handleMessage=this.handleMessage.bind(this);var l=void 0,c=this;this.handleGraphUpdate=function(){c.worker&&c.worker.terminate(),l&&clearTimeout(l),l=setTimeout((function(){l=void 0,c.spawnWorker()}),0)},e.on("nodeAdded",this.handleGraphUpdate),e.on("edgeAdded",this.handleGraphUpdate),e.on("nodeDropped",this.handleGraphUpdate),e.on("edgeDropped",this.handleGraphUpdate),this.spawnWorker()}u.prototype.isRunning=function(){return this.running},u.prototype.spawnWorker=function(){this.worker&&this.worker.terminate(),this.worker=o.createWorker(r),this.worker.addEventListener("message",this.handleMessage),this.running&&(this.running=!1,this.start())},u.prototype.handleMessage=function(e){if(this.running){var t=new Float32Array(e.data.nodes);o.assignLayoutChanges(this.graph,t),this.matrices.nodes=t,this.askForIterations()}},u.prototype.askForIterations=function(e){var t=this.matrices,n={settings:this.settings,nodes:t.nodes.buffer},r=[t.nodes.buffer];return e&&(n.edges=t.edges.buffer,r.push(t.edges.buffer)),this.worker.postMessage(n,r),this},u.prototype.start=function(){if(this.killed)throw new Error("graphology-layout-forceatlas2/worker.start: layout was killed.");return this.running||(this.matrices=o.graphToByteArrays(this.graph,this.weightAttribute),this.running=!0,this.askForIterations(!0)),this},u.prototype.stop=function(){return this.running=!1,this},u.prototype.kill=function(){if(this.killed)return this;this.running=!1,this.killed=!0,this.matrices=null,this.worker.terminate(),this.graph.removeListener("nodeAdded",this.handleGraphUpdate),this.graph.removeListener("edgeAdded",this.handleGraphUpdate),this.graph.removeListener("nodeDropped",this.handleGraphUpdate),this.graph.removeListener("edgeDropped",this.handleGraphUpdate)},e.exports=u},3508:function(e,t,n){var r=n(362);function i(e,t){if(!r(e))throw new Error("graphology-metrics/extent: the given graph is not a valid graphology instance.");var n,i,o,a=[].concat(t),u={};for(o=0;o<a.length;o++)i=a[o],u[i]=[1/0,-1/0];return e.forEachNode((function(e,t){for(o=0;o<a.length;o++)i=a[o],(n=t[i])<u[i][0]&&(u[i][0]=n),n>u[i][1]&&(u[i][1]=n)})),"string"===typeof t?u[t]:u}var o=i;o.nodeExtent=i,o.edgeExtent=function(e,t){if(!r(e))throw new Error("graphology-metrics/extent: the given graph is not a valid graphology instance.");var n,i,o,a=[].concat(t),u={};for(o=0;o<a.length;o++)i=a[o],u[i]=[1/0,-1/0];return e.forEachEdge((function(e,t){for(o=0;o<a.length;o++)i=a[o],(n=t[i])<u[i][0]&&(u[i][0]=n),n>u[i][1]&&(u[i][1]=n)})),"string"===typeof t?u[t]:u},e.exports=o},362:function(e){e.exports=function(e){return null!==e&&"object"===typeof e&&"function"===typeof e.addUndirectedEdgeWithKey&&"function"===typeof e.dropNode&&"boolean"===typeof e.multi}},6095:function(e){e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function i(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function o(e,t,n){return o=i()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},o.apply(null,arguments)}function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||(i=e,-1===Function.toString.call(i).indexOf("[native code]")))return e;var i;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return o(e,arguments,n(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r(a,e)},a(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var s=function(){for(var e=arguments[0],t=1,n=arguments.length;t<n;t++)if(arguments[t])for(var r in arguments[t])e[r]=arguments[t][r];return e};function l(e,t,n,r){var i=e._nodes.get(t),o=null;return i?o="mixed"===r?i.out&&i.out[n]||i.undirected&&i.undirected[n]:"directed"===r?i.out&&i.out[n]:i.undirected&&i.undirected[n]:o}function c(t){return null!==t&&"object"===e(t)&&"function"==typeof t.addUndirectedEdgeWithKey&&"function"==typeof t.dropNode}function f(t){return"object"===e(t)&&null!==t&&t.constructor===Object}function d(e){var t;for(t in e)return!1;return!0}function h(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!1,writable:!0,value:n})}function p(e,t,n){var r={enumerable:!0,configurable:!0};"function"==typeof n?r.get=n:(r.value=n,r.writable=!1),Object.defineProperty(e,t,r)}function g(e){return!!f(e)&&!(e.attributes&&!Array.isArray(e.attributes))}"function"==typeof Object.assign&&(s=Object.assign);var v,y={exports:{}},m="object"==typeof Reflect?Reflect:null,b=m&&"function"==typeof m.apply?m.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};v=m&&"function"==typeof m.ownKeys?m.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var w=Number.isNaN||function(e){return e!=e};function _(){_.init.call(this)}y.exports=_,y.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}A(e,t,o,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&A(e,"error",t,n)}(e,i,{once:!0})}))},_.EventEmitter=_,_.prototype._events=void 0,_.prototype._eventsCount=0,_.prototype._maxListeners=void 0;var x=10;function E(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function k(e){return void 0===e._maxListeners?_.defaultMaxListeners:e._maxListeners}function S(e,t,n,r){var i,o,a,u;if(E(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=k(e))>0&&a.length>i&&!a.warned){a.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=a.length,u=s,console&&console.warn&&console.warn(u)}return e}function C(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function L(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=C.bind(r);return i.listener=n,r.wrapFn=i,i}function T(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):P(i,i.length)}function O(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function P(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function A(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(o){r.once&&e.removeEventListener(t,i),n(o)}))}}function N(e){if("function"!=typeof e)throw new Error("obliterator/iterator: expecting a function!");this.next=e}Object.defineProperty(_,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(e){if("number"!=typeof e||e<0||w(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");x=e}}),_.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},_.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||w(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},_.prototype.getMaxListeners=function(){return k(this)},_.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)b(u,this,t);else{var s=u.length,l=P(u,s);for(n=0;n<s;++n)b(l[n],this,t)}return!0},_.prototype.addListener=function(e,t){return S(this,e,t,!1)},_.prototype.on=_.prototype.addListener,_.prototype.prependListener=function(e,t){return S(this,e,t,!0)},_.prototype.once=function(e,t){return E(t),this.on(e,L(this,e,t)),this},_.prototype.prependOnceListener=function(e,t){return E(t),this.prependListener(e,L(this,e,t)),this},_.prototype.removeListener=function(e,t){var n,r,i,o,a;if(E(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},_.prototype.off=_.prototype.removeListener,_.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},_.prototype.listeners=function(e){return T(this,e,!0)},_.prototype.rawListeners=function(e){return T(this,e,!1)},_.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):O.call(e,t)},_.prototype.listenerCount=O,_.prototype.eventNames=function(){return this._eventsCount>0?v(this._events):[]},"undefined"!=typeof Symbol&&(N.prototype[Symbol.iterator]=function(){return this}),N.of=function(){var e=arguments,t=e.length,n=0;return new N((function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}}))},N.empty=function(){return new N((function(){return{done:!0}}))},N.fromSequence=function(e){var t=0,n=e.length;return new N((function(){return t>=n?{done:!0}:{done:!1,value:e[t++]}}))},N.is=function(e){return e instanceof N||"object"==typeof e&&null!==e&&"function"==typeof e.next};var M=N,j={};j.ARRAY_BUFFER_SUPPORT="undefined"!=typeof ArrayBuffer,j.SYMBOL_SUPPORT="undefined"!=typeof Symbol;var R=M,z=j,D=z.ARRAY_BUFFER_SUPPORT,G=z.SYMBOL_SUPPORT,I=function(e){var t=function(e){return"string"==typeof e||Array.isArray(e)||D&&ArrayBuffer.isView(e)?R.fromSequence(e):"object"!=typeof e||null===e?null:G&&"function"==typeof e[Symbol.iterator]?e[Symbol.iterator]():"function"==typeof e.next?e:null}(e);if(!t)throw new Error("obliterator: target is not iterable nor a valid iterator.");return t},F=I,U=function(e,t){for(var n,r=arguments.length>1?t:1/0,i=r!==1/0?new Array(r):[],o=0,a=F(e);;){if(o===r)return i;if((n=a.next()).done)return o!==t&&(i.length=o),i;i[o++]=n.value}},W=function(e){function n(t){var n;return(n=e.call(this)||this).name="GraphError",n.message=t,n}return t(n,e),n}(a(Error)),B=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="InvalidArgumentsGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(u(r),n.prototype.constructor),r}return t(n,e),n}(W),H=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="NotFoundGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(u(r),n.prototype.constructor),r}return t(n,e),n}(W),q=function(e){function n(t){var r;return(r=e.call(this,t)||this).name="UsageGraphError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(u(r),n.prototype.constructor),r}return t(n,e),n}(W);function V(e,t){this.key=e,this.attributes=t,this.clear()}function $(e,t){this.key=e,this.attributes=t,this.clear()}function Y(e,t){this.key=e,this.attributes=t,this.clear()}function K(e,t,n,r,i){this.key=t,this.attributes=i,this.undirected=e,this.source=n,this.target=r}function Q(e,t,n,r,i,o,a){var u,s,l="out",c="in";if(t&&(l=c="undirected"),e.multi){if(void 0===(s=(u=o[l])[i])&&(s=new Set,u[i]=s),s.add(n),r===i&&t)return;void 0===(u=a[c])[r]&&(u[r]=s)}else{if(o[l][i]=n,r===i&&t)return;a[c][r]=n}}function Z(e,t,n){var r=e.multi,i=n.source,o=n.target,a=i.key,u=o.key,s=i[t?"undirected":"out"],l=t?"undirected":"in";if(u in s)if(r){var c=s[u];1===c.size?(delete s[u],delete o[l][a]):c.delete(n)}else delete s[u];r||delete o[l][a]}function X(e,t,n,r,i,o,a){var u,s,l,c;if(r=""+r,0===n){if(!(u=e._nodes.get(r)))throw new H("Graph.".concat(t,': could not find the "').concat(r,'" node in the graph.'));l=i,c=o}else if(3===n){if(i=""+i,!(s=e._edges.get(i)))throw new H("Graph.".concat(t,': could not find the "').concat(i,'" edge in the graph.'));var f=s.source.key,d=s.target.key;if(r===f)u=s.target;else{if(r!==d)throw new H("Graph.".concat(t,': the "').concat(r,'" node is not attached to the "').concat(i,'" edge (').concat(f,", ").concat(d,")."));u=s.source}l=o,c=a}else{if(!(s=e._edges.get(r)))throw new H("Graph.".concat(t,': could not find the "').concat(r,'" edge in the graph.'));u=1===n?s.source:s.target,l=i,c=o}return[u,l,c]}V.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.undirectedDegree=0,this.directedSelfLoops=0,this.undirectedSelfLoops=0,this.in={},this.out={},this.undirected={}},$.prototype.clear=function(){this.inDegree=0,this.outDegree=0,this.directedSelfLoops=0,this.in={},this.out={}},$.prototype.upgradeToMixed=function(){this.undirectedDegree=0,this.undirectedSelfLoops=0,this.undirected={}},Y.prototype.clear=function(){this.undirectedDegree=0,this.undirectedSelfLoops=0,this.undirected={}},Y.prototype.upgradeToMixed=function(){this.inDegree=0,this.outDegree=0,this.directedSelfLoops=0,this.in={},this.out={}};var J=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=X(this,t,n,e,r,i),a=o[0],u=o[1];return a.attributes[u]}}},{name:function(e){return"get".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){return X(this,t,n,e,r)[0].attributes}}},{name:function(e){return"has".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=X(this,t,n,e,r,i),a=o[0],u=o[1];return a.attributes.hasOwnProperty(u)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i,o){var a=X(this,t,n,e,r,i,o),u=a[0],s=a[1],l=a[2];return u.attributes[s]=l,this.emit("nodeAttributesUpdated",{key:u.key,type:"set",attributes:u.attributes,name:s}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i,o){var a=X(this,t,n,e,r,i,o),u=a[0],s=a[1],l=a[2];if("function"!=typeof l)throw new B("Graph.".concat(t,": updater should be a function."));var c=u.attributes,f=l(c[s]);return c[s]=f,this.emit("nodeAttributesUpdated",{key:u.key,type:"set",attributes:u.attributes,name:s}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=X(this,t,n,e,r,i),a=o[0],u=o[1];return delete a.attributes[u],this.emit("nodeAttributesUpdated",{key:a.key,type:"remove",attributes:a.attributes,name:u}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=X(this,t,n,e,r,i),a=o[0],u=o[1];if(!f(u))throw new B("Graph.".concat(t,": provided attributes are not a plain object."));return a.attributes=u,this.emit("nodeAttributesUpdated",{key:a.key,type:"replace",attributes:a.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=X(this,t,n,e,r,i),a=o[0],u=o[1];if(!f(u))throw new B("Graph.".concat(t,": provided attributes are not a plain object."));return s(a.attributes,u),this.emit("nodeAttributesUpdated",{key:a.key,type:"merge",attributes:a.attributes,data:u}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o=X(this,t,n,e,r,i),a=o[0],u=o[1];if("function"!=typeof u)throw new B("Graph.".concat(t,": provided updater is not a function."));return a.attributes=u(a.attributes),this.emit("nodeAttributesUpdated",{key:a.key,type:"update",attributes:a.attributes}),this}}}],ee=[{name:function(e){return"get".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'));if("mixed"!==n&&i.undirected!==("undirected"===n))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" ').concat(n," edge in the graph."));return i.attributes[r]}}},{name:function(e){return"get".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e){var r;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>1){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var i=""+e,o=""+arguments[1];if(!(r=l(this,i,o,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(i,'" - "').concat(o,'").'))}else if(e=""+e,!(r=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'));if("mixed"!==n&&r.undirected!==("undirected"===n))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" ').concat(n," edge in the graph."));return r.attributes}}},{name:function(e){return"has".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'));if("mixed"!==n&&i.undirected!==("undirected"===n))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" ').concat(n," edge in the graph."));return i.attributes.hasOwnProperty(r)}}},{name:function(e){return"set".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var a=""+e,u=""+r;if(r=arguments[2],i=arguments[3],!(o=l(this,a,u,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(u,'").'))}else if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'));if("mixed"!==n&&o.undirected!==("undirected"===n))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" ').concat(n," edge in the graph."));return o.attributes[r]=i,this.emit("edgeAttributesUpdated",{key:o.key,type:"set",attributes:o.attributes,name:r}),this}}},{name:function(e){return"update".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r,i){var o;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>3){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var a=""+e,u=""+r;if(r=arguments[2],i=arguments[3],!(o=l(this,a,u,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(a,'" - "').concat(u,'").'))}else if(e=""+e,!(o=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'));if("function"!=typeof i)throw new B("Graph.".concat(t,": updater should be a function."));if("mixed"!==n&&o.undirected!==("undirected"===n))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" ').concat(n," edge in the graph."));return o.attributes[r]=i(o.attributes[r]),this.emit("edgeAttributesUpdated",{key:o.key,type:"set",attributes:o.attributes,name:r}),this}}},{name:function(e){return"remove".concat(e,"Attribute")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'));if("mixed"!==n&&i.undirected!==("undirected"===n))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" ').concat(n," edge in the graph."));return delete i.attributes[r],this.emit("edgeAttributesUpdated",{key:i.key,type:"remove",attributes:i.attributes,name:r}),this}}},{name:function(e){return"replace".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'));if(!f(r))throw new B("Graph.".concat(t,": provided attributes are not a plain object."));if("mixed"!==n&&i.undirected!==("undirected"===n))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" ').concat(n," edge in the graph."));return i.attributes=r,this.emit("edgeAttributesUpdated",{key:i.key,type:"replace",attributes:i.attributes}),this}}},{name:function(e){return"merge".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'));if(!f(r))throw new B("Graph.".concat(t,": provided attributes are not a plain object."));if("mixed"!==n&&i.undirected!==("undirected"===n))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" ').concat(n," edge in the graph."));return s(i.attributes,r),this.emit("edgeAttributesUpdated",{key:i.key,type:"merge",attributes:i.attributes,data:r}),this}}},{name:function(e){return"update".concat(e,"Attributes")},attacher:function(e,t,n){e.prototype[t]=function(e,r){var i;if("mixed"!==this.type&&"mixed"!==n&&n!==this.type)throw new q("Graph.".concat(t,": cannot find this type of edges in your ").concat(this.type," graph."));if(arguments.length>2){if(this.multi)throw new q("Graph.".concat(t,": cannot use a {source,target} combo when asking about an edge's attributes in a MultiGraph since we cannot infer the one you want information about."));var o=""+e,a=""+r;if(r=arguments[2],!(i=l(this,o,a,n)))throw new H("Graph.".concat(t,': could not find an edge for the given path ("').concat(o,'" - "').concat(a,'").'))}else if(e=""+e,!(i=this._edges.get(e)))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" edge in the graph.'));if("function"!=typeof r)throw new B("Graph.".concat(t,": provided updater is not a function."));if("mixed"!==n&&i.undirected!==("undirected"===n))throw new H("Graph.".concat(t,': could not find the "').concat(e,'" ').concat(n," edge in the graph."));return i.attributes=r(i.attributes),this.emit("edgeAttributesUpdated",{key:i.key,type:"update",attributes:i.attributes}),this}}}],te=M,ne=I,re=function(){var e=arguments,t=null,n=-1;return new te((function r(){if(null===t){if(++n>=e.length)return{done:!0};t=ne(e[n])}var i=t.next();return i.done?(t=null,r()):i}))},ie=[{name:"edges",type:"mixed"},{name:"inEdges",type:"directed",direction:"in"},{name:"outEdges",type:"directed",direction:"out"},{name:"inboundEdges",type:"mixed",direction:"in"},{name:"outboundEdges",type:"mixed",direction:"out"},{name:"directedEdges",type:"directed"},{name:"undirectedEdges",type:"undirected"}];function oe(e,t){for(var n in t)e.push(t[n].key)}function ae(e,t){for(var n in t)t[n].forEach((function(t){return e.push(t.key)}))}function ue(e,t,n){for(var r in e)if(r!==n){var i=e[r];t(i.key,i.attributes,i.source.key,i.target.key,i.source.attributes,i.target.attributes,i.undirected)}}function se(e,t,n){for(var r in e)r!==n&&e[r].forEach((function(e){return t(e.key,e.attributes,e.source.key,e.target.key,e.source.attributes,e.target.attributes,e.undirected)}))}function le(e,t,n){for(var r in e)if(r!==n){var i=e[r];if(t(i.key,i.attributes,i.source.key,i.target.key,i.source.attributes,i.target.attributes,i.undirected))return i.key}}function ce(e,t,n){var r,i,o,a,u;for(var s in e)if(s!==n)for(r=e[s].values();!0!==(i=r.next()).done;)if(a=(o=i.value).source,u=o.target,t(o.key,o.attributes,a.key,u.key,a.attributes,u.attributes,o.undirected))return o.key}function fe(e,t){var n=Object.keys(e),r=n.length,i=null,o=0;return new M((function a(){var u;if(i){var s=i.next();if(s.done)return i=null,o++,a();u=s.value}else{if(o>=r)return{done:!0};var l=n[o];if(l===t)return o++,a();if((u=e[l])instanceof Set)return i=u.values(),a();o++}return{done:!1,value:{edge:u.key,attributes:u.attributes,source:u.source.key,target:u.target.key,sourceAttributes:u.source.attributes,targetAttributes:u.target.attributes,undirected:u.undirected}}}))}function de(e,t,n){var r=t[n];r&&e.push(r.key)}function he(e,t,n){var r=t[n];r&&r.forEach((function(t){return e.push(t.key)}))}function pe(e,t,n){var r=e[t];if(r){var i=r.source,o=r.target;n(r.key,r.attributes,i.key,o.key,i.attributes,o.attributes,r.undirected)}}function ge(e,t,n){var r=e[t];r&&r.forEach((function(e){return n(e.key,e.attributes,e.source.key,e.target.key,e.source.attributes,e.target.attributes,e.undirected)}))}function ve(e,t,n){var r=e[t];if(r){var i=r.source,o=r.target;return n(r.key,r.attributes,i.key,o.key,i.attributes,o.attributes,r.undirected)?r.key:void 0}}function ye(e,t,n){var r=e[t];if(r)for(var i,o,a=r.values();!0!==(i=a.next()).done;)if(n((o=i.value).key,o.attributes,o.source.key,o.target.key,o.source.attributes,o.target.attributes,o.undirected))return o.key}function me(e,t){var n=e[t];if(n instanceof Set){var r=n.values();return new M((function(){var e=r.next();if(e.done)return e;var t=e.value;return{done:!1,value:{edge:t.key,attributes:t.attributes,source:t.source.key,target:t.target.key,sourceAttributes:t.source.attributes,targetAttributes:t.target.attributes,undirected:t.undirected}}}))}return M.of([n.key,n.attributes,n.source.key,n.target.key,n.source.attributes,n.target.attributes])}function be(e,t){if(0===e.size)return[];if("mixed"===t||t===e.type)return"function"==typeof Array.from?Array.from(e._edges.keys()):U(e._edges.keys(),e._edges.size);for(var n,r,i="undirected"===t?e.undirectedSize:e.directedSize,o=new Array(i),a="undirected"===t,u=e._edges.values(),s=0;!0!==(n=u.next()).done;)(r=n.value).undirected===a&&(o[s++]=r.key);return o}function we(e,t,n){if(0!==e.size)for(var r,i,o="mixed"!==t&&t!==e.type,a="undirected"===t,u=e._edges.values();!0!==(r=u.next()).done;)if(i=r.value,!o||i.undirected===a){var s=i,l=s.key,c=s.attributes,f=s.source,d=s.target;n(l,c,f.key,d.key,f.attributes,d.attributes,i.undirected)}}function _e(e,t,n){if(0!==e.size)for(var r,i,o="mixed"!==t&&t!==e.type,a="undirected"===t,u=e._edges.values();!0!==(r=u.next()).done;)if(i=r.value,!o||i.undirected===a){var s=i,l=s.key,c=s.attributes,f=s.source,d=s.target;if(n(l,c,f.key,d.key,f.attributes,d.attributes,i.undirected))return l}}function xe(e,t){if(0===e.size)return M.empty();var n="mixed"!==t&&t!==e.type,r="undirected"===t,i=e._edges.values();return new M((function(){for(var e,t;;){if((e=i.next()).done)return e;if(t=e.value,!n||t.undirected===r)break}return{value:{edge:t.key,attributes:t.attributes,source:t.source.key,target:t.target.key,sourceAttributes:t.source.attributes,targetAttributes:t.target.attributes,undirected:t.undirected},done:!1}}))}function Ee(e,t,n,r){var i=[],o=e?ae:oe;return"undirected"!==t&&("out"!==n&&o(i,r.in),"in"!==n&&o(i,r.out),!n&&r.directedSelfLoops>0&&i.splice(i.lastIndexOf(r.key),1)),"directed"!==t&&o(i,r.undirected),i}function ke(e,t,n,r,i){var o=e?se:ue;"undirected"!==t&&("out"!==n&&o(r.in,i),"in"!==n&&o(r.out,i,n?null:r.key)),"directed"!==t&&o(r.undirected,i)}function Se(e,t,n,r,i){var o,a=e?ce:le;if("undirected"!==t){if("out"!==n&&(o=a(r.in,i)))return o;if("in"!==n&&(o=a(r.out,i,n?null:r.key)))return o}if("directed"!==t&&(o=a(r.undirected,i)))return o}function Ce(e,t,n){var r=M.empty();return"undirected"!==e&&("out"!==t&&void 0!==n.in&&(r=re(r,fe(n.in))),"in"!==t&&void 0!==n.out&&(r=re(r,fe(n.out,t?null:n.key)))),"directed"!==e&&void 0!==n.undirected&&(r=re(r,fe(n.undirected))),r}function Le(e,t,n,r,i){var o=t?he:de,a=[];return"undirected"!==e&&(void 0!==r.in&&"out"!==n&&o(a,r.in,i),void 0!==r.out&&"in"!==n&&o(a,r.out,i),!n&&r.directedSelfLoops>0&&a.splice(a.lastIndexOf(r.key),1)),"directed"!==e&&void 0!==r.undirected&&o(a,r.undirected,i),a}function Te(e,t,n,r,i,o){var a=t?ge:pe;"undirected"!==e&&(void 0!==r.in&&"out"!==n&&a(r.in,i,o),r.key!==i&&void 0!==r.out&&"in"!==n&&a(r.out,i,o)),"directed"!==e&&void 0!==r.undirected&&a(r.undirected,i,o)}function Oe(e,t,n,r,i,o){var a,u=t?ye:ve;if("undirected"!==e){if(void 0!==r.in&&"out"!==n&&(a=u(r.in,i,o)))return a;if(r.key!==i&&void 0!==r.out&&"in"!==n&&(a=u(r.out,i,o,n?null:r.key)))return a}if("directed"!==e&&void 0!==r.undirected&&(a=u(r.undirected,i,o)))return a}function Pe(e,t,n,r){var i=M.empty();return"undirected"!==e&&(void 0!==n.in&&"out"!==t&&r in n.in&&(i=re(i,me(n.in,r))),void 0!==n.out&&"in"!==t&&r in n.out&&(i=re(i,me(n.out,r)))),"directed"!==e&&void 0!==n.undirected&&r in n.undirected&&(i=re(i,me(n.undirected,r))),i}var Ae=[{name:"neighbors",type:"mixed"},{name:"inNeighbors",type:"directed",direction:"in"},{name:"outNeighbors",type:"directed",direction:"out"},{name:"inboundNeighbors",type:"mixed",direction:"in"},{name:"outboundNeighbors",type:"mixed",direction:"out"},{name:"directedNeighbors",type:"directed"},{name:"undirectedNeighbors",type:"undirected"}];function Ne(e,t){if(void 0!==t)for(var n in t)e.add(n)}function Me(e,t,n){for(var r in t){var i=t[r];i instanceof Set&&(i=i.values().next().value);var o=i.source,a=i.target,u=o===e?a:o;n(u.key,u.attributes)}}function je(e,t,n,r){for(var i in n){var o=n[i];o instanceof Set&&(o=o.values().next().value);var a=o.source,u=o.target,s=a===t?u:a;e.has(s.key)||(e.add(s.key),r(s.key,s.attributes))}}function Re(e,t,n){for(var r in t){var i=t[r];i instanceof Set&&(i=i.values().next().value);var o=i.source,a=i.target,u=o===e?a:o;if(n(u.key,u.attributes))return u.key}}function ze(e,t,n,r){for(var i in n){var o=n[i];o instanceof Set&&(o=o.values().next().value);var a=o.source,u=o.target,s=a===t?u:a;if(!e.has(s.key)&&(e.add(s.key),r(s.key,s.attributes)))return s.key}}function De(e,t){var n=Object.keys(t),r=n.length,i=0;return new M((function(){if(i>=r)return{done:!0};var o=t[n[i++]];o instanceof Set&&(o=o.values().next().value);var a=o.source,u=o.target,s=a===e?u:a;return{done:!1,value:{neighbor:s.key,attributes:s.attributes}}}))}function Ge(e,t,n){var r=Object.keys(n),i=r.length,o=0;return new M((function a(){if(o>=i)return{done:!0};var u=n[r[o++]];u instanceof Set&&(u=u.values().next().value);var s=u.source,l=u.target,c=s===t?l:s;return e.has(c.key)?a():(e.add(c.key),{done:!1,value:{neighbor:c.key,attributes:c.attributes}})}))}function Ie(e,t){var n=t.name,r=t.type,i=t.direction;e.prototype[n]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new H("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return Object.keys(n.undirected);if("string"==typeof t)return Object.keys(n[t])}var r=new Set;return"undirected"!==e&&("out"!==t&&Ne(r,n.in),"in"!==t&&Ne(r,n.out)),"directed"!==e&&Ne(r,n.undirected),U(r.values(),r.size)}("mixed"===r?this.type:r,i,t)}}function Fe(e,t){var n=t.name,r=t.type,i=t.direction,o="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(e,t){if("mixed"===r||"mixed"===this.type||r===this.type){e=""+e;var n=this._nodes.get(e);if(void 0===n)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));!function(e,t,n,r){if("mixed"!==e){if("undirected"===e)return Me(n,n.undirected,r);if("string"==typeof t)return Me(n,n[t],r)}var i=new Set;"undirected"!==e&&("out"!==t&&je(i,n,n.in,r),"in"!==t&&je(i,n,n.out,r)),"directed"!==e&&je(i,n,n.undirected,r)}("mixed"===r?this.type:r,i,n,t)}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(e,t){var n=[];return this[o](e,(function(e,r){n.push(t(e,r))})),n};var u="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(e,t){var n=[];return this[o](e,(function(e,r){t(e,r)&&n.push(e)})),n};var s="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(e,t,n){if(arguments.length<3)throw new B("Graph.".concat(s,": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array."));var r=n;return this[o](e,(function(e,n){r=t(r,e,n)})),r}}function Ue(e,t){var n=t.name,r=t.type,i=t.direction,o=n[0].toUpperCase()+n.slice(1,-1),a="find"+o;e.prototype[a]=function(e,t){if("mixed"===r||"mixed"===this.type||r===this.type){e=""+e;var n=this._nodes.get(e);if(void 0===n)throw new H("Graph.".concat(a,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n,r){if("mixed"!==e){if("undirected"===e)return Re(n,n.undirected,r);if("string"==typeof t)return Re(n,n[t],r)}var i,o=new Set;if("undirected"!==e){if("out"!==t&&(i=ze(o,n,n.in,r)))return i;if("in"!==t&&(i=ze(o,n,n.out,r)))return i}if("directed"!==e&&(i=ze(o,n,n.undirected,r)))return i}("mixed"===r?this.type:r,i,n,t)}};var u="some"+o;e.prototype[u]=function(e,t){return!!this[a](e,t)};var s="every"+o;e.prototype[s]=function(e,t){return!this[a](e,(function(e,n){return!t(e,n)}))}}function We(e,t){var n=t.name,r=t.type,i=t.direction,o=n.slice(0,-1)+"Entries";e.prototype[o]=function(e){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return M.empty();e=""+e;var t=this._nodes.get(e);if(void 0===t)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return function(e,t,n){if("mixed"!==e){if("undirected"===e)return De(n,n.undirected);if("string"==typeof t)return De(n,n[t])}var r=M.empty(),i=new Set;return"undirected"!==e&&("out"!==t&&(r=re(r,Ge(i,n,n.in))),"in"!==t&&(r=re(r,Ge(i,n,n.out)))),"directed"!==e&&(r=re(r,Ge(i,n,n.undirected))),r}("mixed"===r?this.type:r,i,t)}}function Be(e,t,n,r,i){for(var o,a,u,s,l,c,f,d=r._nodes.values(),h=r.type;!0!==(o=d.next()).done;){var p=!1;if(a=o.value,"undirected"!==h)for(u in s=a.out)if(c=(l=s[u]).target,p=!0,f=i(a.key,c.key,a.attributes,c.attributes,l.key,l.attributes,l.undirected),e&&f)return l;if("directed"!==h)for(u in s=a.undirected)if(!(t&&a.key>u)&&((c=(l=s[u]).target).key!==u&&(c=l.source),p=!0,f=i(a.key,c.key,a.attributes,c.attributes,l.key,l.attributes,l.undirected),e&&f))return l;if(n&&!p&&(f=i(a.key,null,a.attributes,null,null,null,null),e&&f))return null}}function He(e,t,n,r,i){for(var o,a,u,s,l,c,f,d,h,p=r._nodes.values(),g=r.type;!0!==(o=p.next()).done;){var v=!1;if(a=o.value,"undirected"!==g)for(u in c=a.out)for(s=c[u].values();!0!==(l=s.next()).done;)if(d=(f=l.value).target,v=!0,h=i(a.key,d.key,a.attributes,d.attributes,f.key,f.attributes,f.undirected),e&&h)return f;if("directed"!==g)for(u in c=a.undirected)if(!(t&&a.key>u))for(s=c[u].values();!0!==(l=s.next()).done;)if((d=(f=l.value).target).key!==u&&(d=f.source),v=!0,h=i(a.key,d.key,a.attributes,d.attributes,f.key,f.attributes,f.undirected),e&&h)return f;if(n&&!v&&(h=i(a.key,null,a.attributes,null,null,null,null),e&&h))return null}}function qe(e,t){var n={key:e};return d(t.attributes)||(n.attributes=s({},t.attributes)),n}function Ve(e,t){var n={key:e,source:t.source.key,target:t.target.key};return d(t.attributes)||(n.attributes=s({},t.attributes)),t.undirected&&(n.undirected=!0),n}function $e(e){return f(e)?"key"in e?!("attributes"in e)||f(e.attributes)&&null!==e.attributes?null:"invalid-attributes":"no-key":"not-object"}function Ye(e){return f(e)?"source"in e?"target"in e?!("attributes"in e)||f(e.attributes)&&null!==e.attributes?"undirected"in e&&"boolean"!=typeof e.undirected?"invalid-undirected":null:"invalid-attributes":"no-target":"no-source":"not-object"}var Ke,Qe=(Ke=255&Math.floor(256*Math.random()),function(){return Ke++}),Ze=new Set(["directed","undirected","mixed"]),Xe=new Set(["domain","_events","_eventsCount","_maxListeners"]),Je={allowSelfLoops:!0,multi:!1,type:"mixed"};function et(e,t,n){var r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}function tt(e,t,n,r,i,o,a,u){if(!r&&"undirected"===e.type)throw new q("Graph.".concat(t,": you cannot add a directed edge to an undirected graph. Use the #.addEdge or #.addUndirectedEdge instead."));if(r&&"directed"===e.type)throw new q("Graph.".concat(t,": you cannot add an undirected edge to a directed graph. Use the #.addEdge or #.addDirectedEdge instead."));if(u&&!f(u))throw new B("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(u,'"'));if(o=""+o,a=""+a,u=u||{},!e.allowSelfLoops&&o===a)throw new q("Graph.".concat(t,': source & target are the same ("').concat(o,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var s=e._nodes.get(o),l=e._nodes.get(a);if(!s)throw new H("Graph.".concat(t,': source node "').concat(o,'" not found.'));if(!l)throw new H("Graph.".concat(t,': target node "').concat(a,'" not found.'));var c={key:null,undirected:r,source:o,target:a,attributes:u};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new q("Graph.".concat(t,': the "').concat(i,'" edge already exists in the graph.'));if(!e.multi&&(r?void 0!==s.undirected[a]:void 0!==s.out[a]))throw new q("Graph.".concat(t,': an edge linking "').concat(o,'" to "').concat(a,"\" already exists. If you really want to add multiple edges linking those nodes, you should create a multi graph by using the 'multi' option."));var d=new K(r,i,s,l,u);return e._edges.set(i,d),o===a?r?(s.undirectedSelfLoops++,e._undirectedSelfLoopCount++):(s.directedSelfLoops++,e._directedSelfLoopCount++):r?(s.undirectedDegree++,l.undirectedDegree++):(s.outDegree++,l.inDegree++),Q(e,r,d,o,a,s,l),r?e._undirectedSize++:e._directedSize++,c.key=i,e.emit("edgeAdded",c),i}function nt(e,t,n,r,i,o,a,u,l){if(!r&&"undirected"===e.type)throw new q("Graph.".concat(t,": you cannot merge/update a directed edge to an undirected graph. Use the #.mergeEdge/#.updateEdge or #.addUndirectedEdge instead."));if(r&&"directed"===e.type)throw new q("Graph.".concat(t,": you cannot merge/update an undirected edge to a directed graph. Use the #.mergeEdge/#.updateEdge or #.addDirectedEdge instead."));if(u)if(l){if("function"!=typeof u)throw new B("Graph.".concat(t,': invalid updater function. Expecting a function but got "').concat(u,'"'))}else if(!f(u))throw new B("Graph.".concat(t,': invalid attributes. Expecting an object but got "').concat(u,'"'));var c;if(o=""+o,a=""+a,l&&(c=u,u=void 0),!e.allowSelfLoops&&o===a)throw new q("Graph.".concat(t,': source & target are the same ("').concat(o,"\"), thus creating a loop explicitly forbidden by this graph 'allowSelfLoops' option set to false."));var d,h,p=e._nodes.get(o),g=e._nodes.get(a);if(!n&&(d=e._edges.get(i))){if(!(d.source.key===o&&d.target.key===a||r&&d.source.key===a&&d.target.key===o))throw new q("Graph.".concat(t,': inconsistency detected when attempting to merge the "').concat(i,'" edge with "').concat(o,'" source & "').concat(a,'" target vs. ("').concat(d.source.key,'", "').concat(d.target.key,'").'));h=d}if(h||e.multi||!p||(h=r?p.undirected[a]:p.out[a]),h){var v=[h.key,!1,!1,!1];if(l?!c:!u)return v;if(l){var y=h.attributes;h.attributes=c(y),e.emit("edgeAttributesUpdated",{type:"replace",key:h.key,attributes:h.attributes})}else s(h.attributes,u),e.emit("edgeAttributesUpdated",{type:"merge",key:h.key,attributes:h.attributes,data:u});return v}u=u||{},l&&c&&(u=c(u));var m={key:null,undirected:r,source:o,target:a,attributes:u};if(n)i=e._edgeKeyGenerator();else if(i=""+i,e._edges.has(i))throw new q("Graph.".concat(t,': the "').concat(i,'" edge already exists in the graph.'));var b=!1,w=!1;return p||(p=et(e,o,{}),b=!0,o===a&&(g=p,w=!0)),g||(g=et(e,a,{}),w=!0),d=new K(r,i,p,g,u),e._edges.set(i,d),o===a?r?(p.undirectedSelfLoops++,e._undirectedSelfLoopCount++):(p.directedSelfLoops++,e._directedSelfLoopCount++):r?(p.undirectedDegree++,g.undirectedDegree++):(p.outDegree++,g.inDegree++),Q(e,r,d,o,a,p,g),r?e._undirectedSize++:e._directedSize++,m.key=i,e.emit("edgeAdded",m),[i,!0,b,w]}var rt=function(n){function r(e){var t;if(t=n.call(this)||this,"boolean"!=typeof(e=s({},Je,e)).multi)throw new B("Graph.constructor: invalid 'multi' option. Expecting a boolean but got \"".concat(e.multi,'".'));if(!Ze.has(e.type))throw new B('Graph.constructor: invalid \'type\' option. Should be one of "mixed", "directed" or "undirected" but got "'.concat(e.type,'".'));if("boolean"!=typeof e.allowSelfLoops)throw new B("Graph.constructor: invalid 'allowSelfLoops' option. Expecting a boolean but got \"".concat(e.allowSelfLoops,'".'));var r="mixed"===e.type?V:"directed"===e.type?$:Y;h(u(t),"NodeDataClass",r);var i=Qe(),o=0;return h(u(t),"_attributes",{}),h(u(t),"_nodes",new Map),h(u(t),"_edges",new Map),h(u(t),"_directedSize",0),h(u(t),"_undirectedSize",0),h(u(t),"_directedSelfLoopCount",0),h(u(t),"_undirectedSelfLoopCount",0),h(u(t),"_edgeKeyGenerator",(function(){var e;do{e="geid_"+i+"_"+o++}while(t._edges.has(e));return e})),h(u(t),"_options",e),Xe.forEach((function(e){return h(u(t),e,t[e])})),p(u(t),"order",(function(){return t._nodes.size})),p(u(t),"size",(function(){return t._edges.size})),p(u(t),"directedSize",(function(){return t._directedSize})),p(u(t),"undirectedSize",(function(){return t._undirectedSize})),p(u(t),"selfLoopCount",(function(){return t._directedSelfLoopCount+t._undirectedSelfLoopCount})),p(u(t),"directedSelfLoopCount",(function(){return t._directedSelfLoopCount})),p(u(t),"undirectedSelfLoopCount",(function(){return t._undirectedSelfLoopCount})),p(u(t),"multi",t._options.multi),p(u(t),"type",t._options.type),p(u(t),"allowSelfLoops",t._options.allowSelfLoops),p(u(t),"implementation",(function(){return"graphology"})),t}t(r,n);var i=r.prototype;return i._resetInstanceCounters=function(){this._directedSize=0,this._undirectedSize=0,this._directedSelfLoopCount=0,this._undirectedSelfLoopCount=0},i.hasNode=function(e){return this._nodes.has(""+e)},i.hasDirectedEdge=function(e,t){if("undirected"===this.type)return!1;if(1===arguments.length){var n=""+e,r=this._edges.get(n);return!!r&&!r.undirected}if(2===arguments.length){e=""+e,t=""+t;var i=this._nodes.get(e);if(!i)return!1;var o=i.out[t];return!!o&&(!this.multi||!!o.size)}throw new B("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},i.hasUndirectedEdge=function(e,t){if("directed"===this.type)return!1;if(1===arguments.length){var n=""+e,r=this._edges.get(n);return!!r&&r.undirected}if(2===arguments.length){e=""+e,t=""+t;var i=this._nodes.get(e);if(!i)return!1;var o=i.undirected[t];return!!o&&(!this.multi||!!o.size)}throw new B("Graph.hasDirectedEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},i.hasEdge=function(e,t){if(1===arguments.length){var n=""+e;return this._edges.has(n)}if(2===arguments.length){e=""+e,t=""+t;var r=this._nodes.get(e);if(!r)return!1;var i=void 0!==r.out&&r.out[t];return i||(i=void 0!==r.undirected&&r.undirected[t]),!!i&&(!this.multi||!!i.size)}throw new B("Graph.hasEdge: invalid arity (".concat(arguments.length,", instead of 1 or 2). You can either ask for an edge id or for the existence of an edge between a source & a target."))},i.directedEdge=function(e,t){if("undirected"!==this.type){if(e=""+e,t=""+t,this.multi)throw new q("Graph.directedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.directedEdges instead.");var n=this._nodes.get(e);if(!n)throw new H('Graph.directedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.directedEdge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.out&&n.out[t]||void 0;return r?r.key:void 0}},i.undirectedEdge=function(e,t){if("directed"!==this.type){if(e=""+e,t=""+t,this.multi)throw new q("Graph.undirectedEdge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.undirectedEdges instead.");var n=this._nodes.get(e);if(!n)throw new H('Graph.undirectedEdge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.undirectedEdge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.undirected&&n.undirected[t]||void 0;return r?r.key:void 0}},i.edge=function(e,t){if(this.multi)throw new q("Graph.edge: this method is irrelevant with multigraphs since there might be multiple edges between source & target. See #.edges instead.");e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.edge: could not find the "'.concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H('Graph.edge: could not find the "'.concat(t,'" target node in the graph.'));var r=n.out&&n.out[t]||n.undirected&&n.undirected[t]||void 0;if(r)return r.key},i.areDirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areDirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)},i.areOutNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areOutNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out},i.areInNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areInNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in},i.areUndirectedNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areUndirectedNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"directed"!==this.type&&t in n.undirected},i.areNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&(t in n.in||t in n.out)||"directed"!==this.type&&t in n.undirected},i.areInboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areInboundNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.in||"directed"!==this.type&&t in n.undirected},i.areOutboundNeighbors=function(e,t){e=""+e,t=""+t;var n=this._nodes.get(e);if(!n)throw new H('Graph.areOutboundNeighbors: could not find the "'.concat(e,'" node in the graph.'));return"undirected"!==this.type&&t in n.out||"directed"!==this.type&&t in n.undirected},i.inDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree+t.directedSelfLoops},i.outDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outDegree: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.outDegree+t.directedSelfLoops},i.directedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.directedDegree: could not find the "'.concat(e,'" node in the graph.'));if("undirected"===this.type)return 0;var n=t.directedSelfLoops;return t.inDegree+n+(t.outDegree+n)},i.undirectedDegree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.undirectedDegree: could not find the "'.concat(e,'" node in the graph.'));if("directed"===this.type)return 0;var n=t.undirectedSelfLoops;return t.undirectedDegree+2*n},i.degree=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.degree: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree+2*t.undirectedSelfLoops),"undirected"!==this.type&&(n+=t.inDegree+t.outDegree+2*t.directedSelfLoops),n},i.inDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.inDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree},i.outDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.outDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.outDegree},i.directedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.directedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"undirected"===this.type?0:t.inDegree+t.outDegree},i.undirectedDegreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.undirectedDegreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));return"directed"===this.type?0:t.undirectedDegree},i.degreeWithoutSelfLoops=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.degreeWithoutSelfLoops: could not find the "'.concat(e,'" node in the graph.'));var n=0;return"directed"!==this.type&&(n+=t.undirectedDegree),"undirected"!==this.type&&(n+=t.inDegree+t.outDegree),n},i.source=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.source: could not find the "'.concat(e,'" edge in the graph.'));return t.source.key},i.target=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.target: could not find the "'.concat(e,'" edge in the graph.'));return t.target.key},i.extremities=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.extremities: could not find the "'.concat(e,'" edge in the graph.'));return[t.source.key,t.target.key]},i.opposite=function(e,t){e=""+e,t=""+t;var n=this._edges.get(t);if(!n)throw new H('Graph.opposite: could not find the "'.concat(t,'" edge in the graph.'));var r=n.source.key,i=n.target.key;if(e===r)return i;if(e===i)return r;throw new H('Graph.opposite: the "'.concat(e,'" node is not attached to the "').concat(t,'" edge (').concat(r,", ").concat(i,")."))},i.hasExtremity=function(e,t){e=""+e,t=""+t;var n=this._edges.get(e);if(!n)throw new H('Graph.hasExtremity: could not find the "'.concat(e,'" edge in the graph.'));return n.source.key===t||n.target.key===t},i.isUndirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isUndirected: could not find the "'.concat(e,'" edge in the graph.'));return t.undirected},i.isDirected=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isDirected: could not find the "'.concat(e,'" edge in the graph.'));return!t.undirected},i.isSelfLoop=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.isSelfLoop: could not find the "'.concat(e,'" edge in the graph.'));return t.source===t.target},i.addNode=function(e,t){var n=function(e,t,n){if(n&&!f(n))throw new B('Graph.addNode: invalid attributes. Expecting an object but got "'.concat(n,'"'));if(t=""+t,n=n||{},e._nodes.has(t))throw new q('Graph.addNode: the "'.concat(t,'" node already exist in the graph.'));var r=new e.NodeDataClass(t,n);return e._nodes.set(t,r),e.emit("nodeAdded",{key:t,attributes:n}),r}(this,e,t);return n.key},i.mergeNode=function(e,t){if(t&&!f(t))throw new B('Graph.mergeNode: invalid attributes. Expecting an object but got "'.concat(t,'"'));e=""+e,t=t||{};var n=this._nodes.get(e);return n?(t&&(s(n.attributes,t),this.emit("nodeAttributesUpdated",{type:"merge",key:e,attributes:n.attributes,data:t})),[e,!1]):(n=new this.NodeDataClass(e,t),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:t}),[e,!0])},i.updateNode=function(e,t){if(t&&"function"!=typeof t)throw new B('Graph.updateNode: invalid updater function. Expecting a function but got "'.concat(t,'"'));e=""+e;var n=this._nodes.get(e);if(n){if(t){var r=n.attributes;n.attributes=t(r),this.emit("nodeAttributesUpdated",{type:"replace",key:e,attributes:n.attributes})}return[e,!1]}var i=t?t({}):{};return n=new this.NodeDataClass(e,i),this._nodes.set(e,n),this.emit("nodeAdded",{key:e,attributes:i}),[e,!0]},i.dropNode=function(e){var t=this;e=""+e;var n=this._nodes.get(e);if(!n)throw new H('Graph.dropNode: could not find the "'.concat(e,'" node in the graph.'));this.forEachEdge(e,(function(e){t.dropEdge(e)})),this._nodes.delete(e),this.emit("nodeDropped",{key:e,attributes:n.attributes})},i.dropEdge=function(e){var t;if(arguments.length>1){var n=""+arguments[0],r=""+arguments[1];if(!(t=l(this,n,r,this.type)))throw new H('Graph.dropEdge: could not find the "'.concat(n,'" -> "').concat(r,'" edge in the graph.'))}else if(e=""+e,!(t=this._edges.get(e)))throw new H('Graph.dropEdge: could not find the "'.concat(e,'" edge in the graph.'));this._edges.delete(t.key);var i=t,o=i.source,a=i.target,u=i.attributes,s=t.undirected;return o===a?s?(o.undirectedSelfLoops--,this._undirectedSelfLoopCount--):(o.directedSelfLoops--,this._directedSelfLoopCount--):s?(o.undirectedDegree--,a.undirectedDegree--):(o.outDegree--,a.inDegree--),Z(this,s,t),s?this._undirectedSize--:this._directedSize--,this.emit("edgeDropped",{key:e,attributes:u,source:o.key,target:a.key,undirected:s}),this},i.clear=function(){this._edges.clear(),this._nodes.clear(),this._resetInstanceCounters(),this.emit("cleared")},i.clearEdges=function(){!function(e){for(var t,n=e._nodes.values();!0!==(t=n.next()).done;)t.value.clear()}(this),this._edges.clear(),this._resetInstanceCounters(),this.emit("edgesCleared")},i.getAttribute=function(e){return this._attributes[e]},i.getAttributes=function(){return this._attributes},i.hasAttribute=function(e){return this._attributes.hasOwnProperty(e)},i.setAttribute=function(e,t){return this._attributes[e]=t,this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},i.updateAttribute=function(e,t){if("function"!=typeof t)throw new B("Graph.updateAttribute: updater should be a function.");var n=this._attributes[e];return this._attributes[e]=t(n),this.emit("attributesUpdated",{type:"set",attributes:this._attributes,name:e}),this},i.removeAttribute=function(e){return delete this._attributes[e],this.emit("attributesUpdated",{type:"remove",attributes:this._attributes,name:e}),this},i.replaceAttributes=function(e){if(!f(e))throw new B("Graph.replaceAttributes: provided attributes are not a plain object.");return this._attributes=e,this.emit("attributesUpdated",{type:"replace",attributes:this._attributes}),this},i.mergeAttributes=function(e){if(!f(e))throw new B("Graph.mergeAttributes: provided attributes are not a plain object.");return s(this._attributes,e),this.emit("attributesUpdated",{type:"merge",attributes:this._attributes,data:e}),this},i.updateAttributes=function(e){if("function"!=typeof e)throw new B("Graph.updateAttributes: provided updater is not a function.");return this._attributes=e(this._attributes),this.emit("attributesUpdated",{type:"update",attributes:this._attributes}),this},i.updateEachNodeAttributes=function(e,t){if("function"!=typeof e)throw new B("Graph.updateEachNodeAttributes: expecting an updater function.");if(t&&!g(t))throw new B("Graph.updateEachNodeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,i=this._nodes.values();!0!==(n=i.next()).done;)(r=n.value).attributes=e(r.key,r.attributes);this.emit("eachNodeAttributesUpdated",{hints:t||null})},i.updateEachEdgeAttributes=function(e,t){if("function"!=typeof e)throw new B("Graph.updateEachEdgeAttributes: expecting an updater function.");if(t&&!g(t))throw new B("Graph.updateEachEdgeAttributes: invalid hints. Expecting an object having the following shape: {attributes?: [string]}");for(var n,r,i,o,a=this._edges.values();!0!==(n=a.next()).done;)i=(r=n.value).source,o=r.target,r.attributes=e(r.key,r.attributes,i.key,o.key,i.attributes,o.attributes,r.undirected);this.emit("eachEdgeAttributesUpdated",{hints:t||null})},i.forEachAdjacencyEntry=function(e){if("function"!=typeof e)throw new B("Graph.forEachAdjacencyEntry: expecting a callback.");this.multi?He(!1,!1,!1,this,e):Be(!1,!1,!1,this,e)},i.forEachAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new B("Graph.forEachAdjacencyEntryWithOrphans: expecting a callback.");this.multi?He(!1,!1,!0,this,e):Be(!1,!1,!0,this,e)},i.forEachAssymetricAdjacencyEntry=function(e){if("function"!=typeof e)throw new B("Graph.forEachAssymetricAdjacencyEntry: expecting a callback.");this.multi?He(!1,!0,!1,this,e):Be(!1,!0,!1,this,e)},i.forEachAssymetricAdjacencyEntryWithOrphans=function(e){if("function"!=typeof e)throw new B("Graph.forEachAssymetricAdjacencyEntryWithOrphans: expecting a callback.");this.multi?He(!1,!0,!0,this,e):Be(!1,!0,!0,this,e)},i.nodes=function(){return"function"==typeof Array.from?Array.from(this._nodes.keys()):U(this._nodes.keys(),this._nodes.size)},i.forEachNode=function(e){if("function"!=typeof e)throw new B("Graph.forEachNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)},i.findNode=function(e){if("function"!=typeof e)throw new B("Graph.findNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(e((n=t.value).key,n.attributes))return n.key},i.mapNodes=function(e){if("function"!=typeof e)throw new B("Graph.mapNode: expecting a callback.");for(var t,n,r=this._nodes.values(),i=new Array(this.order),o=0;!0!==(t=r.next()).done;)n=t.value,i[o++]=e(n.key,n.attributes);return i},i.someNode=function(e){if("function"!=typeof e)throw new B("Graph.someNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(e((n=t.value).key,n.attributes))return!0;return!1},i.everyNode=function(e){if("function"!=typeof e)throw new B("Graph.everyNode: expecting a callback.");for(var t,n,r=this._nodes.values();!0!==(t=r.next()).done;)if(!e((n=t.value).key,n.attributes))return!1;return!0},i.filterNodes=function(e){if("function"!=typeof e)throw new B("Graph.filterNodes: expecting a callback.");for(var t,n,r=this._nodes.values(),i=[];!0!==(t=r.next()).done;)e((n=t.value).key,n.attributes)&&i.push(n.key);return i},i.reduceNodes=function(e,t){if("function"!=typeof e)throw new B("Graph.reduceNodes: expecting a callback.");if(arguments.length<2)throw new B("Graph.reduceNodes: missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array.");for(var n,r,i=t,o=this._nodes.values();!0!==(n=o.next()).done;)i=e(i,(r=n.value).key,r.attributes);return i},i.nodeEntries=function(){var e=this._nodes.values();return new M((function(){var t=e.next();if(t.done)return t;var n=t.value;return{value:{node:n.key,attributes:n.attributes},done:!1}}))},i.exportNode=function(e){e=""+e;var t=this._nodes.get(e);if(!t)throw new H('Graph.exportNode: could not find the "'.concat(e,'" node in the graph.'));return qe(e,t)},i.exportEdge=function(e){e=""+e;var t=this._edges.get(e);if(!t)throw new H('Graph.exportEdge: could not find the "'.concat(e,'" edge in the graph.'));return Ve(e,t)},i.export=function(){var e=new Array(this._nodes.size),t=0;this._nodes.forEach((function(n,r){e[t++]=qe(r,n)}));var n=new Array(this._edges.size);return t=0,this._edges.forEach((function(e,r){n[t++]=Ve(r,e)})),{attributes:this.getAttributes(),nodes:e,edges:n,options:{type:this.type,multi:this.multi,allowSelfLoops:this.allowSelfLoops}}},i.importNode=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=$e(e);if(n){if("not-object"===n)throw new B('Graph.importNode: invalid serialized node. A serialized node should be a plain object with at least a "key" property.');if("no-key"===n)throw new B("Graph.importNode: no key provided.");if("invalid-attributes"===n)throw new B("Graph.importNode: invalid attributes. Attributes should be a plain object, null or omitted.")}var r=e.key,i=e.attributes,o=void 0===i?{}:i;return t?this.mergeNode(r,o):this.addNode(r,o),this},i.importEdge=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Ye(e);if(n){if("not-object"===n)throw new B('Graph.importEdge: invalid serialized edge. A serialized edge should be a plain object with at least a "source" & "target" property.');if("no-source"===n)throw new B("Graph.importEdge: missing souce.");if("no-target"===n)throw new B("Graph.importEdge: missing target.");if("invalid-attributes"===n)throw new B("Graph.importEdge: invalid attributes. Attributes should be a plain object, null or omitted.");if("invalid-undirected"===n)throw new B("Graph.importEdge: invalid undirected. Undirected should be boolean or omitted.")}var r=e.source,i=e.target,o=e.attributes,a=void 0===o?{}:o,u=e.undirected,s=void 0!==u&&u;return"key"in e?(t?s?this.mergeUndirectedEdgeWithKey:this.mergeDirectedEdgeWithKey:s?this.addUndirectedEdgeWithKey:this.addDirectedEdgeWithKey).call(this,e.key,r,i,a):(t?s?this.mergeUndirectedEdge:this.mergeDirectedEdge:s?this.addUndirectedEdge:this.addDirectedEdge).call(this,r,i,a),this},i.import=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(c(e))return this.import(e.export(),i),this;if(!f(e))throw new B("Graph.import: invalid argument. Expecting a serialized graph or, alternatively, a Graph instance.");if(e.attributes){if(!f(e.attributes))throw new B("Graph.import: invalid attributes. Expecting a plain object.");i?this.mergeAttributes(e.attributes):this.replaceAttributes(e.attributes)}if(e.nodes){if(r=e.nodes,!Array.isArray(r))throw new B("Graph.import: invalid nodes. Expecting an array.");for(t=0,n=r.length;t<n;t++)this.importNode(r[t],i)}if(e.edges){if(r=e.edges,!Array.isArray(r))throw new B("Graph.import: invalid edges. Expecting an array.");for(t=0,n=r.length;t<n;t++)this.importEdge(r[t],i)}return this},i.nullCopy=function(e){var t=new r(s({},this._options,e));return t.replaceAttributes(s({},this.getAttributes())),t},i.emptyCopy=function(e){var t=this.nullCopy(e);return this._nodes.forEach((function(e,n){var r=s({},e.attributes);e=new t.NodeDataClass(n,r),t._nodes.set(n,e)})),t},i.copy=function(){for(var e,t,n=this.emptyCopy(),r=this._edges.values();!0!==(e=r.next()).done;)tt(n,"copy",!1,(t=e.value).undirected,t.key,t.source.key,t.target.key,s({},t.attributes));return n},i.upgradeToMixed=function(){return"mixed"===this.type||(this._nodes.forEach((function(e){return e.upgradeToMixed()})),this._options.type="mixed",p(this,"type",this._options.type),h(this,"NodeDataClass",V)),this},i.upgradeToMulti=function(){return this.multi||(this._options.multi=!0,p(this,"multi",!0),(e=this)._nodes.forEach((function(t,n){if(t.out)for(var r in t.out){var i=new Set;i.add(t.out[r]),t.out[r]=i,e._nodes.get(r).in[n]=i}if(t.undirected)for(var o in t.undirected)if(!(o>n)){var a=new Set;a.add(t.undirected[o]),t.undirected[o]=a,e._nodes.get(o).undirected[n]=a}}))),this;var e},i.toJSON=function(){return this.export()},i.toString=function(){return"[object Graph]"},i.inspect=function(){var t=this,n={};this._nodes.forEach((function(e,t){n[t]=e.attributes}));var r={},i={};this._edges.forEach((function(e,n){var o,a=e.undirected?"--":"->",u="",s=e.source.key,l=e.target.key;e.undirected&&s>l&&(o=s,s=l,l=o);var c="(".concat(s,")").concat(a,"(").concat(l,")");n.startsWith("geid_")?t.multi&&(void 0===i[c]?i[c]=0:i[c]++,u+="".concat(i[c],". ")):u+="[".concat(n,"]: "),r[u+=c]=e.attributes}));var o={};for(var a in this)this.hasOwnProperty(a)&&!Xe.has(a)&&"function"!=typeof this[a]&&"symbol"!==e(a)&&(o[a]=this[a]);return o.attributes=this._attributes,o.nodes=n,o.edges=r,h(o,"constructor",this.constructor),o},r}(y.exports.EventEmitter);"undefined"!=typeof Symbol&&(rt.prototype[Symbol.for("nodejs.util.inspect.custom")]=rt.prototype.inspect),[{name:function(e){return"".concat(e,"Edge")},generateKey:!0},{name:function(e){return"".concat(e,"DirectedEdge")},generateKey:!0,type:"directed"},{name:function(e){return"".concat(e,"UndirectedEdge")},generateKey:!0,type:"undirected"},{name:function(e){return"".concat(e,"EdgeWithKey")}},{name:function(e){return"".concat(e,"DirectedEdgeWithKey")},type:"directed"},{name:function(e){return"".concat(e,"UndirectedEdgeWithKey")},type:"undirected"}].forEach((function(e){["add","merge","update"].forEach((function(t){var n=e.name(t),r="add"===t?tt:nt;e.generateKey?rt.prototype[n]=function(i,o,a){return r(this,n,!0,"undirected"===(e.type||this.type),null,i,o,a,"update"===t)}:rt.prototype[n]=function(i,o,a,u){return r(this,n,!1,"undirected"===(e.type||this.type),i,o,a,u,"update"===t)}}))})),function(e){J.forEach((function(t){var n=t.name,r=t.attacher;r(e,n("Node"),0),r(e,n("Source"),1),r(e,n("Target"),2),r(e,n("Opposite"),3)}))}(rt),function(e){ee.forEach((function(t){var n=t.name,r=t.attacher;r(e,n("Edge"),"mixed"),r(e,n("DirectedEdge"),"directed"),r(e,n("UndirectedEdge"),"undirected")}))}(rt),function(e){ie.forEach((function(t){!function(e,t){var n=t.name,r=t.type,i=t.direction;e.prototype[n]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return[];if(!arguments.length)return be(this,r);if(1===arguments.length){e=""+e;var o=this._nodes.get(e);if(void 0===o)throw new H("Graph.".concat(n,': could not find the "').concat(e,'" node in the graph.'));return Ee(this.multi,"mixed"===r?this.type:r,i,o)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new H("Graph.".concat(n,':  could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(n,':  could not find the "').concat(t,'" target node in the graph.'));return Le(r,this.multi,i,a,t)}throw new B("Graph.".concat(n,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o="forEach"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(e,t,n){if("mixed"===r||"mixed"===this.type||r===this.type){if(1===arguments.length)return we(this,r,n=e);if(2===arguments.length){e=""+e,n=t;var a=this._nodes.get(e);if(void 0===a)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return ke(this.multi,"mixed"===r?this.type:r,i,a,n)}if(3===arguments.length){e=""+e,t=""+t;var u=this._nodes.get(e);if(!u)throw new H("Graph.".concat(o,':  could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(o,':  could not find the "').concat(t,'" target node in the graph.'));return Te(r,this.multi,i,u,t,n)}throw new B("Graph.".concat(o,": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length,")."))}};var a="map"+n[0].toUpperCase()+n.slice(1);e.prototype[a]=function(){var e,t=Array.prototype.slice.call(arguments),n=t.pop();if(0===t.length){var i=0;"directed"!==r&&(i+=this.undirectedSize),"undirected"!==r&&(i+=this.directedSize),e=new Array(i);var a=0;t.push((function(t,r,i,o,u,s,l){e[a++]=n(t,r,i,o,u,s,l)}))}else e=[],t.push((function(t,r,i,o,a,u,s){e.push(n(t,r,i,o,a,u,s))}));return this[o].apply(this,t),e};var u="filter"+n[0].toUpperCase()+n.slice(1);e.prototype[u]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop(),n=[];return e.push((function(e,r,i,o,a,u,s){t(e,r,i,o,a,u,s)&&n.push(e)})),this[o].apply(this,e),n};var s="reduce"+n[0].toUpperCase()+n.slice(1);e.prototype[s]=function(){var e,t,n=Array.prototype.slice.call(arguments);if(n.length<2||n.length>4)throw new B("Graph.".concat(s,": invalid number of arguments (expecting 2, 3 or 4 and got ").concat(n.length,")."));if("function"==typeof n[n.length-1]&&"function"!=typeof n[n.length-2])throw new B("Graph.".concat(s,": missing initial value. You must provide it because the callback takes more than one argument and we cannot infer the initial value from the first iteration, as you could with a simple array."));2===n.length?(e=n[0],t=n[1],n=[]):3===n.length?(e=n[1],t=n[2],n=[n[0]]):4===n.length&&(e=n[2],t=n[3],n=[n[0],n[1]]);var r=t;return n.push((function(t,n,i,o,a,u,s){r=e(r,t,n,i,o,a,u,s)})),this[o].apply(this,n),r}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o="find"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[o]=function(e,t,n){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return!1;if(1===arguments.length)return _e(this,r,n=e);if(2===arguments.length){e=""+e,n=t;var a=this._nodes.get(e);if(void 0===a)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return Se(this.multi,"mixed"===r?this.type:r,i,a,n)}if(3===arguments.length){e=""+e,t=""+t;var u=this._nodes.get(e);if(!u)throw new H("Graph.".concat(o,':  could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(o,':  could not find the "').concat(t,'" target node in the graph.'));return Oe(r,this.multi,i,u,t,n)}throw new B("Graph.".concat(o,": too many arguments (expecting 1, 2 or 3 and got ").concat(arguments.length,")."))};var a="some"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[a]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((function(e,n,r,i,o,a,u){return t(e,n,r,i,o,a,u)})),!!this[o].apply(this,e)};var u="every"+n[0].toUpperCase()+n.slice(1,-1);e.prototype[u]=function(){var e=Array.prototype.slice.call(arguments),t=e.pop();return e.push((function(e,n,r,i,o,a,u){return!t(e,n,r,i,o,a,u)})),!this[o].apply(this,e)}}(e,t),function(e,t){var n=t.name,r=t.type,i=t.direction,o=n.slice(0,-1)+"Entries";e.prototype[o]=function(e,t){if("mixed"!==r&&"mixed"!==this.type&&r!==this.type)return M.empty();if(!arguments.length)return xe(this,r);if(1===arguments.length){e=""+e;var n=this._nodes.get(e);if(!n)throw new H("Graph.".concat(o,': could not find the "').concat(e,'" node in the graph.'));return Ce(r,i,n)}if(2===arguments.length){e=""+e,t=""+t;var a=this._nodes.get(e);if(!a)throw new H("Graph.".concat(o,':  could not find the "').concat(e,'" source node in the graph.'));if(!this._nodes.has(t))throw new H("Graph.".concat(o,':  could not find the "').concat(t,'" target node in the graph.'));return Pe(r,i,a,t)}throw new B("Graph.".concat(o,": too many arguments (expecting 0, 1 or 2 and got ").concat(arguments.length,")."))}}(e,t)}))}(rt),function(e){Ae.forEach((function(t){Ie(e,t),Fe(e,t),Ue(e,t),We(e,t)}))}(rt);var it=function(e){function n(t){var n=s({type:"directed"},t);if("multi"in n&&!1!==n.multi)throw new B("DirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("directed"!==n.type)throw new B('DirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(rt),ot=function(e){function n(t){var n=s({type:"undirected"},t);if("multi"in n&&!1!==n.multi)throw new B("UndirectedGraph.from: inconsistent indication that the graph should be multi in given options!");if("undirected"!==n.type)throw new B('UndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(rt),at=function(e){function n(t){var n=s({multi:!0},t);if("multi"in n&&!0!==n.multi)throw new B("MultiGraph.from: inconsistent indication that the graph should be simple in given options!");return e.call(this,n)||this}return t(n,e),n}(rt),ut=function(e){function n(t){var n=s({type:"directed",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new B("MultiDirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("directed"!==n.type)throw new B('MultiDirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(rt),st=function(e){function n(t){var n=s({type:"undirected",multi:!0},t);if("multi"in n&&!0!==n.multi)throw new B("MultiUndirectedGraph.from: inconsistent indication that the graph should be simple in given options!");if("undirected"!==n.type)throw new B('MultiUndirectedGraph.from: inconsistent "'+n.type+'" type in given options!');return e.call(this,n)||this}return t(n,e),n}(rt);function lt(e){e.from=function(t,n){var r=s({},t.options,n),i=new e(r);return i.import(t),i}}return lt(rt),lt(it),lt(ot),lt(at),lt(ut),lt(st),rt.Graph=rt,rt.DirectedGraph=it,rt.UndirectedGraph=ot,rt.MultiGraph=at,rt.MultiDirectedGraph=ut,rt.MultiUndirectedGraph=st,rt.InvalidArgumentsGraphError=B,rt.NotFoundGraphError=H,rt.UsageGraphError=q,rt}()},763:function(e,t,n){var r;e=n.nmd(e),function(){var i,o="Expected a function",a="__lodash_hash_undefined__",u="__lodash_placeholder__",s=16,l=32,c=64,f=128,d=256,h=1/0,p=9007199254740991,g=NaN,v=4294967295,y=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",l],["partialRight",c],["rearg",d]],m="[object Arguments]",b="[object Array]",w="[object Boolean]",_="[object Date]",x="[object Error]",E="[object Function]",k="[object GeneratorFunction]",S="[object Map]",C="[object Number]",L="[object Object]",T="[object Promise]",O="[object RegExp]",P="[object Set]",A="[object String]",N="[object Symbol]",M="[object WeakMap]",j="[object ArrayBuffer]",R="[object DataView]",z="[object Float32Array]",D="[object Float64Array]",G="[object Int8Array]",I="[object Int16Array]",F="[object Int32Array]",U="[object Uint8Array]",W="[object Uint8ClampedArray]",B="[object Uint16Array]",H="[object Uint32Array]",q=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Q=RegExp(Y.source),Z=RegExp(K.source),X=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,oe=RegExp(ie.source),ae=/^\s+/,ue=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,he=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Le="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Oe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="['\u2019]",Ae="[\\ud800-\\udfff]",Ne="["+Oe+"]",Me="["+ke+"]",je="\\d+",Re="[\\u2700-\\u27bf]",ze="["+Ce+"]",De="[^\\ud800-\\udfff"+Oe+je+Se+Ce+Le+"]",Ge="\\ud83c[\\udffb-\\udfff]",Ie="[^\\ud800-\\udfff]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+Le+"]",Be="(?:"+ze+"|"+De+")",He="(?:"+We+"|"+De+")",qe="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ve="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Me+"|"+Ge+")"+"?",Ye="[\\ufe0e\\ufe0f]?",Ke=Ye+$e+("(?:\\u200d(?:"+[Ie,Fe,Ue].join("|")+")"+Ye+$e+")*"),Qe="(?:"+[Re,Fe,Ue].join("|")+")"+Ke,Ze="(?:"+[Ie+Me+"?",Me,Fe,Ue,Ae].join("|")+")",Xe=RegExp(Pe,"g"),Je=RegExp(Me,"g"),et=RegExp(Ge+"(?="+Ge+")|"+Ze+Ke,"g"),tt=RegExp([We+"?"+ze+"+"+qe+"(?="+[Ne,We,"$"].join("|")+")",He+"+"+Ve+"(?="+[Ne,We+Be,"$"].join("|")+")",We+"?"+Be+"+"+qe,We+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",je,Qe].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+ke+Te+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,it=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ot=-1,at={};at[z]=at[D]=at[G]=at[I]=at[F]=at[U]=at[W]=at[B]=at[H]=!0,at[m]=at[b]=at[j]=at[w]=at[R]=at[_]=at[x]=at[E]=at[S]=at[C]=at[L]=at[O]=at[P]=at[A]=at[M]=!1;var ut={};ut[m]=ut[b]=ut[j]=ut[R]=ut[w]=ut[_]=ut[z]=ut[D]=ut[G]=ut[I]=ut[F]=ut[S]=ut[C]=ut[L]=ut[O]=ut[P]=ut[A]=ut[N]=ut[U]=ut[W]=ut[B]=ut[H]=!0,ut[x]=ut[E]=ut[M]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,ct=parseInt,ft="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,dt="object"==typeof self&&self&&self.Object===Object&&self,ht=ft||dt||Function("return this")(),pt=t&&!t.nodeType&&t,gt=pt&&e&&!e.nodeType&&e,vt=gt&&gt.exports===pt,yt=vt&&ft.process,mt=function(){try{var e=gt&&gt.require&&gt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(t){}}(),bt=mt&&mt.isArrayBuffer,wt=mt&&mt.isDate,_t=mt&&mt.isMap,xt=mt&&mt.isRegExp,Et=mt&&mt.isSet,kt=mt&&mt.isTypedArray;function St(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function At(e,t){return!!(null==e?0:e.length)&&Ut(e,t,0)>-1}function Nt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Mt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function jt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Rt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function zt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Gt=qt("length");function It(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Ft(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function Ut(e,t,n){return t===t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):Ft(e,Bt,n)}function Wt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Bt(e){return e!==e}function Ht(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:g}function qt(e){return function(t){return null==t?i:t[e]}}function Vt(e){return function(t){return null==e?i:e[t]}}function $t(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Yt(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function Kt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Qt(e){return e?e.slice(0,gn(e)+1).replace(ae,""):e}function Zt(e){return function(t){return e(t)}}function Xt(e,t){return Mt(t,(function(t){return e[t]}))}function Jt(e,t){return e.has(t)}function en(e,t){for(var n=-1,r=e.length;++n<r&&Ut(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length;n--&&Ut(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=Vt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),on=Vt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function an(e){return"\\"+st[e]}function un(e){return nt.test(e)}function sn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==u||(e[n]=u,o[i++]=n)}return o}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return un(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):Gt(e)}function pn(e){return un(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&ue.test(e.charAt(t)););return t}var vn=Vt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var yn=function e(t){var n=(t=null==t?ht:yn.defaults(ht.Object(),t,yn.pick(ht,it))).Array,r=t.Date,ue=t.Error,ke=t.Function,Se=t.Math,Ce=t.Object,Le=t.RegExp,Te=t.String,Oe=t.TypeError,Pe=n.prototype,Ae=ke.prototype,Ne=Ce.prototype,Me=t["__core-js_shared__"],je=Ae.toString,Re=Ne.hasOwnProperty,ze=0,De=function(){var e=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ge=Ne.toString,Ie=je.call(Ce),Fe=ht._,Ue=Le("^"+je.call(Re).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=vt?t.Buffer:i,Be=t.Symbol,He=t.Uint8Array,qe=We?We.allocUnsafe:i,Ve=ln(Ce.getPrototypeOf,Ce),$e=Ce.create,Ye=Ne.propertyIsEnumerable,Ke=Pe.splice,Qe=Be?Be.isConcatSpreadable:i,Ze=Be?Be.iterator:i,et=Be?Be.toStringTag:i,nt=function(){try{var e=ho(Ce,"defineProperty");return e({},"",{}),e}catch(t){}}(),st=t.clearTimeout!==ht.clearTimeout&&t.clearTimeout,ft=r&&r.now!==ht.Date.now&&r.now,dt=t.setTimeout!==ht.setTimeout&&t.setTimeout,pt=Se.ceil,gt=Se.floor,yt=Ce.getOwnPropertySymbols,mt=We?We.isBuffer:i,Gt=t.isFinite,Vt=Pe.join,mn=ln(Ce.keys,Ce),bn=Se.max,wn=Se.min,_n=r.now,xn=t.parseInt,En=Se.random,kn=Pe.reverse,Sn=ho(t,"DataView"),Cn=ho(t,"Map"),Ln=ho(t,"Promise"),Tn=ho(t,"Set"),On=ho(t,"WeakMap"),Pn=ho(Ce,"create"),An=On&&new On,Nn={},Mn=Fo(Sn),jn=Fo(Cn),Rn=Fo(Ln),zn=Fo(Tn),Dn=Fo(On),Gn=Be?Be.prototype:i,In=Gn?Gn.valueOf:i,Fn=Gn?Gn.toString:i;function Un(e){if(ru(e)&&!Va(e)&&!(e instanceof qn)){if(e instanceof Hn)return e;if(Re.call(e,"__wrapped__"))return Uo(e)}return new Hn(e)}var Wn=function(){function e(){}return function(t){if(!nu(t))return{};if($e)return $e(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Bn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=v,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Yn;++t<n;)this.add(e[t])}function Qn(e){var t=this.__data__=new $n(e);this.size=t.size}function Zn(e,t){var n=Va(e),r=!n&&qa(e),i=!n&&!r&&Qa(e),o=!n&&!r&&!i&&fu(e),a=n||r||i||o,u=a?Kt(e.length,Te):[],s=u.length;for(var l in e)!t&&!Re.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||wo(l,s))||u.push(l);return u}function Xn(e){var t=e.length;return t?e[Kr(0,t-1)]:i}function Jn(e,t){return Do(Pi(e),sr(t,0,e.length))}function er(e){return Do(Pi(e))}function tr(e,t,n){(n!==i&&!Wa(e[t],n)||n===i&&!(t in e))&&ar(e,t,n)}function nr(e,t,n){var r=e[t];Re.call(e,t)&&Wa(r,n)&&(n!==i||t in e)||ar(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(Wa(e[n][0],t))return n;return-1}function ir(e,t,n,r){return hr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function or(e,t){return e&&Ai(t,Mu(t),e)}function ar(e,t,n){"__proto__"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ur(e,t){for(var r=-1,o=t.length,a=n(o),u=null==e;++r<o;)a[r]=u?i:Tu(e,t[r]);return a}function sr(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function lr(e,t,n,r,o,a){var u,s=1&t,l=2&t,c=4&t;if(n&&(u=o?n(e,r,o,a):n(e)),u!==i)return u;if(!nu(e))return e;var f=Va(e);if(f){if(u=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return Pi(e,u)}else{var d=vo(e),h=d==E||d==k;if(Qa(e))return ki(e,s);if(d==L||d==m||h&&!o){if(u=l||h?{}:mo(e),!s)return l?function(e,t){return Ai(e,go(e),t)}(e,function(e,t){return e&&Ai(t,ju(t),e)}(u,e)):function(e,t){return Ai(e,po(e),t)}(e,or(u,e))}else{if(!ut[d])return o?e:{};u=function(e,t,n){var r=e.constructor;switch(t){case j:return Si(e);case w:case _:return new r(+e);case R:return function(e,t){var n=t?Si(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case z:case D:case G:case I:case F:case U:case W:case B:case H:return Ci(e,n);case S:return new r;case C:case A:return new r(e);case O:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case P:return new r;case N:return i=e,In?Ce(In.call(i)):{}}var i}(e,d,s)}}a||(a=new Qn);var p=a.get(e);if(p)return p;a.set(e,u),su(e)?e.forEach((function(r){u.add(lr(r,t,n,r,e,a))})):iu(e)&&e.forEach((function(r,i){u.set(i,lr(r,t,n,i,e,a))}));var g=f?i:(c?l?oo:io:l?ju:Mu)(e);return Lt(g||e,(function(r,i){g&&(r=e[i=r]),nr(u,i,lr(r,t,n,i,e,a))})),u}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ce(e);r--;){var o=n[r],a=t[o],u=e[o];if(u===i&&!(o in e)||!a(u))return!1}return!0}function fr(e,t,n){if("function"!=typeof e)throw new Oe(o);return Mo((function(){e.apply(i,n)}),t)}function dr(e,t,n,r){var i=-1,o=At,a=!0,u=e.length,s=[],l=t.length;if(!u)return s;n&&(t=Mt(t,Zt(n))),r?(o=Nt,a=!1):t.length>=200&&(o=Jt,a=!1,t=new Kn(t));e:for(;++i<u;){var c=e[i],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f===f){for(var d=l;d--;)if(t[d]===f)continue e;s.push(c)}else o(t,f,r)||s.push(c)}return s}Un.templateSettings={escape:X,evaluate:J,interpolate:ee,variable:"",imports:{_:Un}},Un.prototype=Bn.prototype,Un.prototype.constructor=Un,Hn.prototype=Wn(Bn.prototype),Hn.prototype.constructor=Hn,qn.prototype=Wn(Bn.prototype),qn.prototype.constructor=qn,Vn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if(Pn){var n=t[e];return n===a?i:n}return Re.call(t,e)?t[e]:i},Vn.prototype.has=function(e){var t=this.__data__;return Pn?t[e]!==i:Re.call(t,e)},Vn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Pn&&t===i?a:t,this},$n.prototype.clear=function(){this.__data__=[],this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},$n.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?i:t[n][1]},$n.prototype.has=function(e){return rr(this.__data__,e)>-1},$n.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(Cn||$n),string:new Vn}},Yn.prototype.delete=function(e){var t=co(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return co(this,e).get(e)},Yn.prototype.has=function(e){return co(this,e).has(e)},Yn.prototype.set=function(e,t){var n=co(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,a),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.clear=function(){this.__data__=new $n,this.size=0},Qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Qn.prototype.get=function(e){return this.__data__.get(e)},Qn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof $n){var r=n.__data__;if(!Cn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var hr=ji(_r),pr=ji(xr,!0);function gr(e,t){var n=!0;return hr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function vr(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],u=t(a);if(null!=u&&(s===i?u===u&&!cu(u):n(u,s)))var s=u,l=a}return l}function yr(e,t){var n=[];return hr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function mr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=bo),i||(i=[]);++o<a;){var u=e[o];t>0&&n(u)?t>1?mr(u,t-1,n,r,i):jt(i,u):r||(i[i.length]=u)}return i}var br=Ri(),wr=Ri(!0);function _r(e,t){return e&&br(e,t,Mu)}function xr(e,t){return e&&wr(e,t,Mu)}function Er(e,t){return Pt(t,(function(t){return Ja(e[t])}))}function kr(e,t){for(var n=0,r=(t=wi(t,e)).length;null!=e&&n<r;)e=e[Io(t[n++])];return n&&n==r?e:i}function Sr(e,t,n){var r=t(e);return Va(e)?r:jt(r,n(e))}function Cr(e){return null==e?e===i?"[object Undefined]":"[object Null]":et&&et in Ce(e)?function(e){var t=Re.call(e,et),n=e[et];try{e[et]=i;var r=!0}catch(a){}var o=Ge.call(e);r&&(t?e[et]=n:delete e[et]);return o}(e):function(e){return Ge.call(e)}(e)}function Lr(e,t){return e>t}function Tr(e,t){return null!=e&&Re.call(e,t)}function Or(e,t){return null!=e&&t in Ce(e)}function Pr(e,t,r){for(var o=r?Nt:At,a=e[0].length,u=e.length,s=u,l=n(u),c=1/0,f=[];s--;){var d=e[s];s&&t&&(d=Mt(d,Zt(t))),c=wn(d.length,c),l[s]=!r&&(t||a>=120&&d.length>=120)?new Kn(s&&d):i}d=e[0];var h=-1,p=l[0];e:for(;++h<a&&f.length<c;){var g=d[h],v=t?t(g):g;if(g=r||0!==g?g:0,!(p?Jt(p,v):o(f,v,r))){for(s=u;--s;){var y=l[s];if(!(y?Jt(y,v):o(e[s],v,r)))continue e}p&&p.push(v),f.push(g)}}return f}function Ar(e,t,n){var r=null==(e=Oo(e,t=wi(t,e)))?e:e[Io(Xo(t))];return null==r?i:St(r,e,n)}function Nr(e){return ru(e)&&Cr(e)==m}function Mr(e,t,n,r,o){return e===t||(null==e||null==t||!ru(e)&&!ru(t)?e!==e&&t!==t:function(e,t,n,r,o,a){var u=Va(e),s=Va(t),l=u?b:vo(e),c=s?b:vo(t),f=(l=l==m?L:l)==L,d=(c=c==m?L:c)==L,h=l==c;if(h&&Qa(e)){if(!Qa(t))return!1;u=!0,f=!1}if(h&&!f)return a||(a=new Qn),u||fu(e)?no(e,t,n,r,o,a):function(e,t,n,r,i,o,a){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case j:return!(e.byteLength!=t.byteLength||!o(new He(e),new He(t)));case w:case _:case C:return Wa(+e,+t);case x:return e.name==t.name&&e.message==t.message;case O:case A:return e==t+"";case S:var u=sn;case P:var s=1&r;if(u||(u=fn),e.size!=t.size&&!s)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var c=no(u(e),u(t),r,i,o,a);return a.delete(e),c;case N:if(In)return In.call(e)==In.call(t)}return!1}(e,t,l,n,r,o,a);if(!(1&n)){var p=f&&Re.call(e,"__wrapped__"),g=d&&Re.call(t,"__wrapped__");if(p||g){var v=p?e.value():e,y=g?t.value():t;return a||(a=new Qn),o(v,y,n,r,a)}}if(!h)return!1;return a||(a=new Qn),function(e,t,n,r,o,a){var u=1&n,s=io(e),l=s.length,c=io(t).length;if(l!=c&&!u)return!1;var f=l;for(;f--;){var d=s[f];if(!(u?d in t:Re.call(t,d)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var g=!0;a.set(e,t),a.set(t,e);var v=u;for(;++f<l;){var y=e[d=s[f]],m=t[d];if(r)var b=u?r(m,y,d,t,e,a):r(y,m,d,e,t,a);if(!(b===i?y===m||o(y,m,n,r,a):b)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var w=e.constructor,_=t.constructor;w==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,n,r,o,a)}(e,t,n,r,Mr,o))}function jr(e,t,n,r){var o=n.length,a=o,u=!r;if(null==e)return!a;for(e=Ce(e);o--;){var s=n[o];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var l=(s=n[o])[0],c=e[l],f=s[1];if(u&&s[2]){if(c===i&&!(l in e))return!1}else{var d=new Qn;if(r)var h=r(c,f,l,e,t,d);if(!(h===i?Mr(f,c,3,r,d):h))return!1}}return!0}function Rr(e){return!(!nu(e)||(t=e,De&&De in t))&&(Ja(e)?Ue:me).test(Fo(e));var t}function zr(e){return"function"==typeof e?e:null==e?os:"object"==typeof e?Va(e)?Wr(e[0],e[1]):Ur(e):ps(e)}function Dr(e){if(!So(e))return mn(e);var t=[];for(var n in Ce(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Gr(e){if(!nu(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=So(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}function Ir(e,t){return e<t}function Fr(e,t){var r=-1,i=Ya(e)?n(e.length):[];return hr(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function Ur(e){var t=fo(e);return 1==t.length&&t[0][2]?Lo(t[0][0],t[0][1]):function(n){return n===e||jr(n,e,t)}}function Wr(e,t){return xo(e)&&Co(t)?Lo(Io(e),t):function(n){var r=Tu(n,e);return r===i&&r===t?Ou(n,e):Mr(t,r,3)}}function Br(e,t,n,r,o){e!==t&&br(t,(function(a,u){if(o||(o=new Qn),nu(a))!function(e,t,n,r,o,a,u){var s=Ao(e,n),l=Ao(t,n),c=u.get(l);if(c)return void tr(e,n,c);var f=a?a(s,l,n+"",e,t,u):i,d=f===i;if(d){var h=Va(l),p=!h&&Qa(l),g=!h&&!p&&fu(l);f=l,h||p||g?Va(s)?f=s:Ka(s)?f=Pi(s):p?(d=!1,f=ki(l,!0)):g?(d=!1,f=Ci(l,!0)):f=[]:au(l)||qa(l)?(f=s,qa(s)?f=bu(s):nu(s)&&!Ja(s)||(f=mo(l))):d=!1}d&&(u.set(l,f),o(f,l,r,a,u),u.delete(l));tr(e,n,f)}(e,t,u,n,Br,r,o);else{var s=r?r(Ao(e,u),a,u+"",e,t,o):i;s===i&&(s=a),tr(e,u,s)}}),ju)}function Hr(e,t){var n=e.length;if(n)return wo(t+=t<0?n:0,n)?e[t]:i}function qr(e,t,n){t=t.length?Mt(t,(function(e){return Va(e)?function(t){return kr(t,1===e.length?e[0]:e)}:e})):[os];var r=-1;t=Mt(t,Zt(lo()));var i=Fr(e,(function(e,n,i){var o=Mt(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(i,(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,u=n.length;for(;++r<a;){var s=Li(i[r],o[r]);if(s)return r>=u?s:s*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Vr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],u=kr(e,a);n(u,a)&&ei(o,wi(a,e),u)}return o}function $r(e,t,n,r){var i=r?Wt:Ut,o=-1,a=t.length,u=e;for(e===t&&(t=Pi(t)),n&&(u=Mt(e,Zt(n)));++o<a;)for(var s=0,l=t[o],c=n?n(l):l;(s=i(u,c,s,r))>-1;)u!==e&&Ke.call(u,s,1),Ke.call(e,s,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;wo(i)?Ke.call(e,i,1):di(e,i)}}return e}function Kr(e,t){return e+gt(En()*(t-e+1))}function Qr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return jo(To(e,t,os),e+"")}function Xr(e){return Xn(Wu(e))}function Jr(e,t){var n=Wu(e);return Do(n,sr(t,0,n.length))}function ei(e,t,n,r){if(!nu(e))return e;for(var o=-1,a=(t=wi(t,e)).length,u=a-1,s=e;null!=s&&++o<a;){var l=Io(t[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=u){var f=s[l];(c=r?r(f,l,s):i)===i&&(c=nu(f)?f:wo(t[o+1])?[]:{})}nr(s,l,c),s=s[l]}return e}var ti=An?function(e,t){return An.set(e,t),e}:os,ni=nt?function(e,t){return nt(e,"toString",{configurable:!0,enumerable:!1,value:ns(t),writable:!0})}:os;function ri(e){return Do(Wu(e))}function ii(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i<o;)a[i]=e[i+t];return a}function oi(e,t){var n;return hr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ai(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!cu(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return ui(e,t,os,n)}function ui(e,t,n,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var u=(t=n(t))!==t,s=null===t,l=cu(t),c=t===i;o<a;){var f=gt((o+a)/2),d=n(e[f]),h=d!==i,p=null===d,g=d===d,v=cu(d);if(u)var y=r||g;else y=c?g&&(r||h):s?g&&h&&(r||!p):l?g&&h&&!p&&(r||!v):!p&&!v&&(r?d<=t:d<t);y?o=f+1:a=f}return wn(a,4294967294)}function si(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],u=t?t(a):a;if(!n||!Wa(u,s)){var s=u;o[i++]=0===a?0:a}}return o}function li(e){return"number"==typeof e?e:cu(e)?g:+e}function ci(e){if("string"==typeof e)return e;if(Va(e))return Mt(e,ci)+"";if(cu(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fi(e,t,n){var r=-1,i=At,o=e.length,a=!0,u=[],s=u;if(n)a=!1,i=Nt;else if(o>=200){var l=t?null:Qi(e);if(l)return fn(l);a=!1,i=Jt,s=new Kn}else s=t?[]:u;e:for(;++r<o;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,a&&f===f){for(var d=s.length;d--;)if(s[d]===f)continue e;t&&s.push(f),u.push(c)}else i(s,f,n)||(s!==u&&s.push(f),u.push(c))}return u}function di(e,t){return null==(e=Oo(e,t=wi(t,e)))||delete e[Io(Xo(t))]}function hi(e,t,n,r){return ei(e,t,n(kr(e,t)),r)}function pi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ii(e,r?0:o,r?o+1:i):ii(e,r?o+1:0,r?i:o)}function gi(e,t){var n=e;return n instanceof qn&&(n=n.value()),Rt(t,(function(e,t){return t.func.apply(t.thisArg,jt([e],t.args))}),n)}function vi(e,t,r){var i=e.length;if(i<2)return i?fi(e[0]):[];for(var o=-1,a=n(i);++o<i;)for(var u=e[o],s=-1;++s<i;)s!=o&&(a[o]=dr(a[o]||u,e[s],t,r));return fi(mr(a,1),t,r)}function yi(e,t,n){for(var r=-1,o=e.length,a=t.length,u={};++r<o;){var s=r<a?t[r]:i;n(u,e[r],s)}return u}function mi(e){return Ka(e)?e:[]}function bi(e){return"function"==typeof e?e:os}function wi(e,t){return Va(e)?e:xo(e,t)?[e]:Go(wu(e))}var _i=Zr;function xi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ii(e,t,n)}var Ei=st||function(e){return ht.clearTimeout(e)};function ki(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function Si(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Ci(e,t){var n=t?Si(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Li(e,t){if(e!==t){var n=e!==i,r=null===e,o=e===e,a=cu(e),u=t!==i,s=null===t,l=t===t,c=cu(t);if(!s&&!c&&!a&&e>t||a&&u&&l&&!s&&!c||r&&u&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||s&&n&&o||!u&&o||!l)return-1}return 0}function Ti(e,t,r,i){for(var o=-1,a=e.length,u=r.length,s=-1,l=t.length,c=bn(a-u,0),f=n(l+c),d=!i;++s<l;)f[s]=t[s];for(;++o<u;)(d||o<a)&&(f[r[o]]=e[o]);for(;c--;)f[s++]=e[o++];return f}function Oi(e,t,r,i){for(var o=-1,a=e.length,u=-1,s=r.length,l=-1,c=t.length,f=bn(a-s,0),d=n(f+c),h=!i;++o<f;)d[o]=e[o];for(var p=o;++l<c;)d[p+l]=t[l];for(;++u<s;)(h||o<a)&&(d[p+r[u]]=e[o++]);return d}function Pi(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function Ai(e,t,n,r){var o=!n;n||(n={});for(var a=-1,u=t.length;++a<u;){var s=t[a],l=r?r(n[s],e[s],s,n,e):i;l===i&&(l=e[s]),o?ar(n,s,l):nr(n,s,l)}return n}function Ni(e,t){return function(n,r){var i=Va(n)?Ct:ir,o=t?t():{};return i(n,e,lo(r,2),o)}}function Mi(e){return Zr((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,u=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,u&&_o(n[0],n[1],u)&&(a=o<3?i:a,o=1),t=Ce(t);++r<o;){var s=n[r];s&&e(t,s,r,a)}return t}))}function ji(e,t){return function(n,r){if(null==n)return n;if(!Ya(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Ce(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ri(e){return function(t,n,r){for(var i=-1,o=Ce(t),a=r(t),u=a.length;u--;){var s=a[e?u:++i];if(!1===n(o[s],s,o))break}return t}}function zi(e){return function(t){var n=un(t=wu(t))?pn(t):i,r=n?n[0]:t.charAt(0),o=n?xi(n,1).join(""):t.slice(1);return r[e]()+o}}function Di(e){return function(t){return Rt(Ju(qu(t).replace(Xe,"")),e,"")}}function Gi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Wn(e.prototype),r=e.apply(n,t);return nu(r)?r:n}}function Ii(e){return function(t,n,r){var o=Ce(t);if(!Ya(t)){var a=lo(n,3);t=Mu(t),n=function(e){return a(o[e],e,o)}}var u=e(t,n,r);return u>-1?o[a?t[u]:u]:i}}function Fi(e){return ro((function(t){var n=t.length,r=n,a=Hn.prototype.thru;for(e&&t.reverse();r--;){var u=t[r];if("function"!=typeof u)throw new Oe(o);if(a&&!s&&"wrapper"==uo(u))var s=new Hn([],!0)}for(r=s?r:n;++r<n;){var l=uo(u=t[r]),c="wrapper"==l?ao(u):i;s=c&&Eo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[uo(c[0])].apply(s,c[3]):1==u.length&&Eo(u)?s[l]():s.thru(u)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Va(r))return s.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Ui(e,t,r,o,a,u,s,l,c,d){var h=t&f,p=1&t,g=2&t,v=24&t,y=512&t,m=g?i:Gi(e);return function i(){for(var f=arguments.length,b=n(f),w=f;w--;)b[w]=arguments[w];if(v)var _=so(i),x=nn(b,_);if(o&&(b=Ti(b,o,a,v)),u&&(b=Oi(b,u,s,v)),f-=x,v&&f<d){var E=cn(b,_);return Yi(e,t,Ui,i.placeholder,r,b,E,l,c,d-f)}var k=p?r:this,S=g?k[e]:e;return f=b.length,l?b=Po(b,l):y&&f>1&&b.reverse(),h&&c<f&&(b.length=c),this&&this!==ht&&this instanceof i&&(S=m||Gi(S)),S.apply(k,b)}}function Wi(e,t){return function(n,r){return function(e,t,n,r){return _r(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Bi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=ci(n),r=ci(r)):(n=li(n),r=li(r)),o=e(n,r)}return o}}function Hi(e){return ro((function(t){return t=Mt(t,Zt(lo())),Zr((function(n){var r=this;return e(t,(function(e){return St(e,r,n)}))}))}))}function qi(e,t){var n=(t=t===i?" ":ci(t)).length;if(n<2)return n?Qr(t,e):t;var r=Qr(t,pt(e/hn(t)));return un(t)?xi(pn(r),0,e).join(""):r.slice(0,e)}function Vi(e){return function(t,r,o){return o&&"number"!=typeof o&&_o(t,r,o)&&(r=o=i),t=gu(t),r===i?(r=t,t=0):r=gu(r),function(e,t,r,i){for(var o=-1,a=bn(pt((t-e)/(r||1)),0),u=n(a);a--;)u[i?a:++o]=e,e+=r;return u}(t,r,o=o===i?t<r?1:-1:gu(o),e)}}function $i(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=mu(t),n=mu(n)),e(t,n)}}function Yi(e,t,n,r,o,a,u,s,f,d){var h=8&t;t|=h?l:c,4&(t&=~(h?c:l))||(t&=-4);var p=[e,t,o,h?a:i,h?u:i,h?i:a,h?i:u,s,f,d],g=n.apply(i,p);return Eo(e)&&No(g,p),g.placeholder=r,Ro(g,e,t)}function Ki(e){var t=Se[e];return function(e,n){if(e=mu(e),(n=null==n?0:wn(vu(n),292))&&Gt(e)){var r=(wu(e)+"e").split("e");return+((r=(wu(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Qi=Tn&&1/fn(new Tn([,-0]))[1]==h?function(e){return new Tn(e)}:cs;function Zi(e){return function(t){var n=vo(t);return n==S?sn(t):n==P?dn(t):function(e,t){return Mt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xi(e,t,r,a,h,p,g,v){var y=2&t;if(!y&&"function"!=typeof e)throw new Oe(o);var m=a?a.length:0;if(m||(t&=-97,a=h=i),g=g===i?g:bn(vu(g),0),v=v===i?v:vu(v),m-=h?h.length:0,t&c){var b=a,w=h;a=h=i}var _=y?i:ao(e),x=[e,t,r,a,h,b,w,p,g,v];if(_&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==f&&8==n||r==f&&n==d&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?Ti(l,s,t[4]):s,e[4]=l?cn(e[3],u):t[4]}(s=t[5])&&(l=e[5],e[5]=l?Oi(l,s,t[6]):s,e[6]=l?cn(e[5],u):t[6]);(s=t[7])&&(e[7]=s);r&f&&(e[8]=null==e[8]?t[8]:wn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(x,_),e=x[0],t=x[1],r=x[2],a=x[3],h=x[4],!(v=x[9]=x[9]===i?y?0:e.length:bn(x[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||t==s?function(e,t,r){var o=Gi(e);return function a(){for(var u=arguments.length,s=n(u),l=u,c=so(a);l--;)s[l]=arguments[l];var f=u<3&&s[0]!==c&&s[u-1]!==c?[]:cn(s,c);return(u-=f.length)<r?Yi(e,t,Ui,a.placeholder,i,s,f,i,i,r-u):St(this&&this!==ht&&this instanceof a?o:e,this,s)}}(e,t,v):t!=l&&33!=t||h.length?Ui.apply(i,x):function(e,t,r,i){var o=1&t,a=Gi(e);return function t(){for(var u=-1,s=arguments.length,l=-1,c=i.length,f=n(c+s),d=this&&this!==ht&&this instanceof t?a:e;++l<c;)f[l]=i[l];for(;s--;)f[l++]=arguments[++u];return St(d,o?r:this,f)}}(e,t,r,a);else var E=function(e,t,n){var r=1&t,i=Gi(e);return function t(){return(this&&this!==ht&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return Ro((_?ti:No)(E,x),e,t)}function Ji(e,t,n,r){return e===i||Wa(e,Ne[n])&&!Re.call(r,n)?t:e}function eo(e,t,n,r,o,a){return nu(e)&&nu(t)&&(a.set(t,e),Br(e,t,i,eo,a),a.delete(t)),e}function to(e){return au(e)?i:e}function no(e,t,n,r,o,a){var u=1&n,s=e.length,l=t.length;if(s!=l&&!(u&&l>s))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,h=!0,p=2&n?new Kn:i;for(a.set(e,t),a.set(t,e);++d<s;){var g=e[d],v=t[d];if(r)var y=u?r(v,g,d,t,e,a):r(g,v,d,e,t,a);if(y!==i){if(y)continue;h=!1;break}if(p){if(!Dt(t,(function(e,t){if(!Jt(p,t)&&(g===e||o(g,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(g!==v&&!o(g,v,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function ro(e){return jo(To(e,i,$o),e+"")}function io(e){return Sr(e,Mu,po)}function oo(e){return Sr(e,ju,go)}var ao=An?function(e){return An.get(e)}:cs;function uo(e){for(var t=e.name+"",n=Nn[t],r=Re.call(Nn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function so(e){return(Re.call(Un,"placeholder")?Un:e).placeholder}function lo(){var e=Un.iteratee||as;return e=e===as?zr:e,arguments.length?e(arguments[0],arguments[1]):e}function co(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function fo(e){for(var t=Mu(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Co(i)]}return t}function ho(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Rr(n)?n:i}var po=yt?function(e){return null==e?[]:(e=Ce(e),Pt(yt(e),(function(t){return Ye.call(e,t)})))}:ys,go=yt?function(e){for(var t=[];e;)jt(t,po(e)),e=Ve(e);return t}:ys,vo=Cr;function yo(e,t,n){for(var r=-1,i=(t=wi(t,e)).length,o=!1;++r<i;){var a=Io(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&tu(i)&&wo(a,i)&&(Va(e)||qa(e))}function mo(e){return"function"!=typeof e.constructor||So(e)?{}:Wn(Ve(e))}function bo(e){return Va(e)||qa(e)||!!(Qe&&e&&e[Qe])}function wo(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function _o(e,t,n){if(!nu(n))return!1;var r=typeof t;return!!("number"==r?Ya(n)&&wo(t,n.length):"string"==r&&t in n)&&Wa(n[t],e)}function xo(e,t){if(Va(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cu(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ce(t))}function Eo(e){var t=uo(e),n=Un[t];if("function"!=typeof n||!(t in qn.prototype))return!1;if(e===n)return!0;var r=ao(n);return!!r&&e===r[0]}(Sn&&vo(new Sn(new ArrayBuffer(1)))!=R||Cn&&vo(new Cn)!=S||Ln&&vo(Ln.resolve())!=T||Tn&&vo(new Tn)!=P||On&&vo(new On)!=M)&&(vo=function(e){var t=Cr(e),n=t==L?e.constructor:i,r=n?Fo(n):"";if(r)switch(r){case Mn:return R;case jn:return S;case Rn:return T;case zn:return P;case Dn:return M}return t});var ko=Me?Ja:ms;function So(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ne)}function Co(e){return e===e&&!nu(e)}function Lo(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in Ce(n)))}}function To(e,t,r){return t=bn(t===i?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=bn(i.length-t,0),u=n(a);++o<a;)u[o]=i[t+o];o=-1;for(var s=n(t+1);++o<t;)s[o]=i[o];return s[t]=r(u),St(e,this,s)}}function Oo(e,t){return t.length<2?e:kr(e,ii(t,0,-1))}function Po(e,t){for(var n=e.length,r=wn(t.length,n),o=Pi(e);r--;){var a=t[r];e[r]=wo(a,n)?o[a]:i}return e}function Ao(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var No=zo(ti),Mo=dt||function(e,t){return ht.setTimeout(e,t)},jo=zo(ni);function Ro(e,t,n){var r=t+"";return jo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Lt(y,(function(n){var r="_."+n[0];t&n[1]&&!At(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(ce):[]}(r),n)))}function zo(e){var t=0,n=0;return function(){var r=_n(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Do(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=Kr(n,o),u=e[a];e[a]=e[n],e[n]=u}return e.length=t,e}var Go=function(e){var t=za(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,i){t.push(r?i.replace(he,"$1"):n||e)})),t}));function Io(e){if("string"==typeof e||cu(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fo(e){if(null!=e){try{return je.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Uo(e){if(e instanceof qn)return e.clone();var t=new Hn(e.__wrapped__,e.__chain__);return t.__actions__=Pi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Wo=Zr((function(e,t){return Ka(e)?dr(e,mr(t,1,Ka,!0)):[]})),Bo=Zr((function(e,t){var n=Xo(t);return Ka(n)&&(n=i),Ka(e)?dr(e,mr(t,1,Ka,!0),lo(n,2)):[]})),Ho=Zr((function(e,t){var n=Xo(t);return Ka(n)&&(n=i),Ka(e)?dr(e,mr(t,1,Ka,!0),i,n):[]}));function qo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vu(n);return i<0&&(i=bn(r+i,0)),Ft(e,lo(t,3),i)}function Vo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==i&&(o=vu(n),o=n<0?bn(r+o,0):wn(o,r-1)),Ft(e,lo(t,3),o,!0)}function $o(e){return(null==e?0:e.length)?mr(e,1):[]}function Yo(e){return e&&e.length?e[0]:i}var Ko=Zr((function(e){var t=Mt(e,mi);return t.length&&t[0]===e[0]?Pr(t):[]})),Qo=Zr((function(e){var t=Xo(e),n=Mt(e,mi);return t===Xo(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Pr(n,lo(t,2)):[]})),Zo=Zr((function(e){var t=Xo(e),n=Mt(e,mi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Pr(n,i,t):[]}));function Xo(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Jo=Zr(ea);function ea(e,t){return e&&e.length&&t&&t.length?$r(e,t):e}var ta=ro((function(e,t){var n=null==e?0:e.length,r=ur(e,t);return Yr(e,Mt(t,(function(e){return wo(e,n)?+e:e})).sort(Li)),r}));function na(e){return null==e?e:kn.call(e)}var ra=Zr((function(e){return fi(mr(e,1,Ka,!0))})),ia=Zr((function(e){var t=Xo(e);return Ka(t)&&(t=i),fi(mr(e,1,Ka,!0),lo(t,2))})),oa=Zr((function(e){var t=Xo(e);return t="function"==typeof t?t:i,fi(mr(e,1,Ka,!0),i,t)}));function aa(e){if(!e||!e.length)return[];var t=0;return e=Pt(e,(function(e){if(Ka(e))return t=bn(e.length,t),!0})),Kt(t,(function(t){return Mt(e,qt(t))}))}function ua(e,t){if(!e||!e.length)return[];var n=aa(e);return null==t?n:Mt(n,(function(e){return St(t,i,e)}))}var sa=Zr((function(e,t){return Ka(e)?dr(e,t):[]})),la=Zr((function(e){return vi(Pt(e,Ka))})),ca=Zr((function(e){var t=Xo(e);return Ka(t)&&(t=i),vi(Pt(e,Ka),lo(t,2))})),fa=Zr((function(e){var t=Xo(e);return t="function"==typeof t?t:i,vi(Pt(e,Ka),i,t)})),da=Zr(aa);var ha=Zr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,ua(e,n)}));function pa(e){var t=Un(e);return t.__chain__=!0,t}function ga(e,t){return t(e)}var va=ro((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return ur(t,e)};return!(t>1||this.__actions__.length)&&r instanceof qn&&wo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ga,args:[o],thisArg:i}),new Hn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(o)}));var ya=Ni((function(e,t,n){Re.call(e,n)?++e[n]:ar(e,n,1)}));var ma=Ii(qo),ba=Ii(Vo);function wa(e,t){return(Va(e)?Lt:hr)(e,lo(t,3))}function _a(e,t){return(Va(e)?Tt:pr)(e,lo(t,3))}var xa=Ni((function(e,t,n){Re.call(e,n)?e[n].push(t):ar(e,n,[t])}));var Ea=Zr((function(e,t,r){var i=-1,o="function"==typeof t,a=Ya(e)?n(e.length):[];return hr(e,(function(e){a[++i]=o?St(t,e,r):Ar(e,t,r)})),a})),ka=Ni((function(e,t,n){ar(e,n,t)}));function Sa(e,t){return(Va(e)?Mt:Fr)(e,lo(t,3))}var Ca=Ni((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var La=Zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_o(e,t[0],t[1])?t=[]:n>2&&_o(t[0],t[1],t[2])&&(t=[t[0]]),qr(e,mr(t,1),[])})),Ta=ft||function(){return ht.Date.now()};function Oa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Xi(e,f,i,i,i,i,t)}function Pa(e,t){var n;if("function"!=typeof t)throw new Oe(o);return e=vu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Aa=Zr((function(e,t,n){var r=1;if(n.length){var i=cn(n,so(Aa));r|=l}return Xi(e,r,t,n,i)})),Na=Zr((function(e,t,n){var r=3;if(n.length){var i=cn(n,so(Na));r|=l}return Xi(t,r,e,n,i)}));function Ma(e,t,n){var r,a,u,s,l,c,f=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new Oe(o);function g(t){var n=r,o=a;return r=a=i,f=t,s=e.apply(o,n)}function v(e){return f=e,l=Mo(m,t),d?g(e):s}function y(e){var n=e-c;return c===i||n>=t||n<0||h&&e-f>=u}function m(){var e=Ta();if(y(e))return b(e);l=Mo(m,function(e){var n=t-(e-c);return h?wn(n,u-(e-f)):n}(e))}function b(e){return l=i,p&&r?g(e):(r=a=i,s)}function w(){var e=Ta(),n=y(e);if(r=arguments,a=this,c=e,n){if(l===i)return v(c);if(h)return Ei(l),l=Mo(m,t),g(c)}return l===i&&(l=Mo(m,t)),s}return t=mu(t)||0,nu(n)&&(d=!!n.leading,u=(h="maxWait"in n)?bn(mu(n.maxWait)||0,t):u,p="trailing"in n?!!n.trailing:p),w.cancel=function(){l!==i&&Ei(l),f=0,r=c=a=l=i},w.flush=function(){return l===i?s:b(Ta())},w}var ja=Zr((function(e,t){return fr(e,1,t)})),Ra=Zr((function(e,t,n){return fr(e,mu(t)||0,n)}));function za(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(o);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(za.Cache||Yn),n}function Da(e){if("function"!=typeof e)throw new Oe(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}za.Cache=Yn;var Ga=_i((function(e,t){var n=(t=1==t.length&&Va(t[0])?Mt(t[0],Zt(lo())):Mt(mr(t,1),Zt(lo()))).length;return Zr((function(r){for(var i=-1,o=wn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return St(e,this,r)}))})),Ia=Zr((function(e,t){var n=cn(t,so(Ia));return Xi(e,l,i,t,n)})),Fa=Zr((function(e,t){var n=cn(t,so(Fa));return Xi(e,c,i,t,n)})),Ua=ro((function(e,t){return Xi(e,d,i,i,i,t)}));function Wa(e,t){return e===t||e!==e&&t!==t}var Ba=$i(Lr),Ha=$i((function(e,t){return e>=t})),qa=Nr(function(){return arguments}())?Nr:function(e){return ru(e)&&Re.call(e,"callee")&&!Ye.call(e,"callee")},Va=n.isArray,$a=bt?Zt(bt):function(e){return ru(e)&&Cr(e)==j};function Ya(e){return null!=e&&tu(e.length)&&!Ja(e)}function Ka(e){return ru(e)&&Ya(e)}var Qa=mt||ms,Za=wt?Zt(wt):function(e){return ru(e)&&Cr(e)==_};function Xa(e){if(!ru(e))return!1;var t=Cr(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!au(e)}function Ja(e){if(!nu(e))return!1;var t=Cr(e);return t==E||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eu(e){return"number"==typeof e&&e==vu(e)}function tu(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function nu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ru(e){return null!=e&&"object"==typeof e}var iu=_t?Zt(_t):function(e){return ru(e)&&vo(e)==S};function ou(e){return"number"==typeof e||ru(e)&&Cr(e)==C}function au(e){if(!ru(e)||Cr(e)!=L)return!1;var t=Ve(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&je.call(n)==Ie}var uu=xt?Zt(xt):function(e){return ru(e)&&Cr(e)==O};var su=Et?Zt(Et):function(e){return ru(e)&&vo(e)==P};function lu(e){return"string"==typeof e||!Va(e)&&ru(e)&&Cr(e)==A}function cu(e){return"symbol"==typeof e||ru(e)&&Cr(e)==N}var fu=kt?Zt(kt):function(e){return ru(e)&&tu(e.length)&&!!at[Cr(e)]};var du=$i(Ir),hu=$i((function(e,t){return e<=t}));function pu(e){if(!e)return[];if(Ya(e))return lu(e)?pn(e):Pi(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=vo(e);return(t==S?sn:t==P?fn:Wu)(e)}function gu(e){return e?(e=mu(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function vu(e){var t=gu(e),n=t%1;return t===t?n?t-n:t:0}function yu(e){return e?sr(vu(e),0,v):0}function mu(e){if("number"==typeof e)return e;if(cu(e))return g;if(nu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=nu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=ye.test(e);return n||be.test(e)?ct(e.slice(2),n?2:8):ve.test(e)?g:+e}function bu(e){return Ai(e,ju(e))}function wu(e){return null==e?"":ci(e)}var _u=Mi((function(e,t){if(So(t)||Ya(t))Ai(t,Mu(t),e);else for(var n in t)Re.call(t,n)&&nr(e,n,t[n])})),xu=Mi((function(e,t){Ai(t,ju(t),e)})),Eu=Mi((function(e,t,n,r){Ai(t,ju(t),e,r)})),ku=Mi((function(e,t,n,r){Ai(t,Mu(t),e,r)})),Su=ro(ur);var Cu=Zr((function(e,t){e=Ce(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&_o(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],u=ju(a),s=-1,l=u.length;++s<l;){var c=u[s],f=e[c];(f===i||Wa(f,Ne[c])&&!Re.call(e,c))&&(e[c]=a[c])}return e})),Lu=Zr((function(e){return e.push(i,eo),St(zu,i,e)}));function Tu(e,t,n){var r=null==e?i:kr(e,t);return r===i?n:r}function Ou(e,t){return null!=e&&yo(e,t,Or)}var Pu=Wi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ge.call(t)),e[t]=n}),ns(os)),Au=Wi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ge.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),lo),Nu=Zr(Ar);function Mu(e){return Ya(e)?Zn(e):Dr(e)}function ju(e){return Ya(e)?Zn(e,!0):Gr(e)}var Ru=Mi((function(e,t,n){Br(e,t,n)})),zu=Mi((function(e,t,n,r){Br(e,t,n,r)})),Du=ro((function(e,t){var n={};if(null==e)return n;var r=!1;t=Mt(t,(function(t){return t=wi(t,e),r||(r=t.length>1),t})),Ai(e,oo(e),n),r&&(n=lr(n,7,to));for(var i=t.length;i--;)di(n,t[i]);return n}));var Gu=ro((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return Ou(e,n)}))}(e,t)}));function Iu(e,t){if(null==e)return{};var n=Mt(oo(e),(function(e){return[e]}));return t=lo(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Fu=Zi(Mu),Uu=Zi(ju);function Wu(e){return null==e?[]:Xt(e,Mu(e))}var Bu=Di((function(e,t,n){return t=t.toLowerCase(),e+(n?Hu(t):t)}));function Hu(e){return Xu(wu(e).toLowerCase())}function qu(e){return(e=wu(e))&&e.replace(_e,rn).replace(Je,"")}var Vu=Di((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),$u=Di((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Yu=zi("toLowerCase");var Ku=Di((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Qu=Di((function(e,t,n){return e+(n?" ":"")+Xu(t)}));var Zu=Di((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xu=zi("toUpperCase");function Ju(e,t,n){return e=wu(e),(t=n?i:t)===i?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(fe)||[]}(e):e.match(t)||[]}var es=Zr((function(e,t){try{return St(e,i,t)}catch(n){return Xa(n)?n:new ue(n)}})),ts=ro((function(e,t){return Lt(t,(function(t){t=Io(t),ar(e,t,Aa(e[t],e))})),e}));function ns(e){return function(){return e}}var rs=Fi(),is=Fi(!0);function os(e){return e}function as(e){return zr("function"==typeof e?e:lr(e,1))}var us=Zr((function(e,t){return function(n){return Ar(n,e,t)}})),ss=Zr((function(e,t){return function(n){return Ar(e,n,t)}}));function ls(e,t,n){var r=Mu(t),i=Er(t,r);null!=n||nu(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,Mu(t)));var o=!(nu(n)&&"chain"in n)||!!n.chain,a=Ja(e);return Lt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Pi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,jt([this.value()],arguments))})})),e}function cs(){}var fs=Hi(Mt),ds=Hi(Ot),hs=Hi(Dt);function ps(e){return xo(e)?qt(Io(e)):function(e){return function(t){return kr(t,e)}}(e)}var gs=Vi(),vs=Vi(!0);function ys(){return[]}function ms(){return!1}var bs=Bi((function(e,t){return e+t}),0),ws=Ki("ceil"),_s=Bi((function(e,t){return e/t}),1),xs=Ki("floor");var Es=Bi((function(e,t){return e*t}),1),ks=Ki("round"),Ss=Bi((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Oe(o);return e=vu(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Oa,Un.assign=_u,Un.assignIn=xu,Un.assignInWith=Eu,Un.assignWith=ku,Un.at=Su,Un.before=Pa,Un.bind=Aa,Un.bindAll=ts,Un.bindKey=Na,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Va(e)?e:[e]},Un.chain=pa,Un.chunk=function(e,t,r){t=(r?_o(e,t,r):t===i)?1:bn(vu(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,u=0,s=n(pt(o/t));a<o;)s[u++]=ii(e,a,a+=t);return s},Un.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Un.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return jt(Va(r)?Pi(r):[r],mr(t,1))},Un.cond=function(e){var t=null==e?0:e.length,n=lo();return e=t?Mt(e,(function(e){if("function"!=typeof e[1])throw new Oe(o);return[n(e[0]),e[1]]})):[],Zr((function(n){for(var r=-1;++r<t;){var i=e[r];if(St(i[0],this,n))return St(i[1],this,n)}}))},Un.conforms=function(e){return function(e){var t=Mu(e);return function(n){return cr(n,e,t)}}(lr(e,1))},Un.constant=ns,Un.countBy=ya,Un.create=function(e,t){var n=Wn(e);return null==t?n:or(n,t)},Un.curry=function e(t,n,r){var o=Xi(t,8,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Un.curryRight=function e(t,n,r){var o=Xi(t,s,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},Un.debounce=Ma,Un.defaults=Cu,Un.defaultsDeep=Lu,Un.defer=ja,Un.delay=Ra,Un.difference=Wo,Un.differenceBy=Bo,Un.differenceWith=Ho,Un.drop=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=n||t===i?1:vu(t))<0?0:t,r):[]},Un.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,0,(t=r-(t=n||t===i?1:vu(t)))<0?0:t):[]},Un.dropRightWhile=function(e,t){return e&&e.length?pi(e,lo(t,3),!0,!0):[]},Un.dropWhile=function(e,t){return e&&e.length?pi(e,lo(t,3),!0):[]},Un.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&_o(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=vu(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:vu(r))<0&&(r+=o),r=n>r?0:yu(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Un.filter=function(e,t){return(Va(e)?Pt:yr)(e,lo(t,3))},Un.flatMap=function(e,t){return mr(Sa(e,t),1)},Un.flatMapDeep=function(e,t){return mr(Sa(e,t),h)},Un.flatMapDepth=function(e,t,n){return n=n===i?1:vu(n),mr(Sa(e,t),n)},Un.flatten=$o,Un.flattenDeep=function(e){return(null==e?0:e.length)?mr(e,h):[]},Un.flattenDepth=function(e,t){return(null==e?0:e.length)?mr(e,t=t===i?1:vu(t)):[]},Un.flip=function(e){return Xi(e,512)},Un.flow=rs,Un.flowRight=is,Un.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Un.functions=function(e){return null==e?[]:Er(e,Mu(e))},Un.functionsIn=function(e){return null==e?[]:Er(e,ju(e))},Un.groupBy=xa,Un.initial=function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},Un.intersection=Ko,Un.intersectionBy=Qo,Un.intersectionWith=Zo,Un.invert=Pu,Un.invertBy=Au,Un.invokeMap=Ea,Un.iteratee=as,Un.keyBy=ka,Un.keys=Mu,Un.keysIn=ju,Un.map=Sa,Un.mapKeys=function(e,t){var n={};return t=lo(t,3),_r(e,(function(e,r,i){ar(n,t(e,r,i),e)})),n},Un.mapValues=function(e,t){var n={};return t=lo(t,3),_r(e,(function(e,r,i){ar(n,r,t(e,r,i))})),n},Un.matches=function(e){return Ur(lr(e,1))},Un.matchesProperty=function(e,t){return Wr(e,lr(t,1))},Un.memoize=za,Un.merge=Ru,Un.mergeWith=zu,Un.method=us,Un.methodOf=ss,Un.mixin=ls,Un.negate=Da,Un.nthArg=function(e){return e=vu(e),Zr((function(t){return Hr(t,e)}))},Un.omit=Du,Un.omitBy=function(e,t){return Iu(e,Da(lo(t)))},Un.once=function(e){return Pa(2,e)},Un.orderBy=function(e,t,n,r){return null==e?[]:(Va(t)||(t=null==t?[]:[t]),Va(n=r?i:n)||(n=null==n?[]:[n]),qr(e,t,n))},Un.over=fs,Un.overArgs=Ga,Un.overEvery=ds,Un.overSome=hs,Un.partial=Ia,Un.partialRight=Fa,Un.partition=Ca,Un.pick=Gu,Un.pickBy=Iu,Un.property=ps,Un.propertyOf=function(e){return function(t){return null==e?i:kr(e,t)}},Un.pull=Jo,Un.pullAll=ea,Un.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,lo(n,2)):e},Un.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?$r(e,t,i,n):e},Un.pullAt=ta,Un.range=gs,Un.rangeRight=vs,Un.rearg=Ua,Un.reject=function(e,t){return(Va(e)?Pt:yr)(e,Da(lo(t,3)))},Un.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=lo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Yr(e,i),n},Un.rest=function(e,t){if("function"!=typeof e)throw new Oe(o);return Zr(e,t=t===i?t:vu(t))},Un.reverse=na,Un.sampleSize=function(e,t,n){return t=(n?_o(e,t,n):t===i)?1:vu(t),(Va(e)?Jn:Jr)(e,t)},Un.set=function(e,t,n){return null==e?e:ei(e,t,n)},Un.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ei(e,t,n,r)},Un.shuffle=function(e){return(Va(e)?er:ri)(e)},Un.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&_o(e,t,n)?(t=0,n=r):(t=null==t?0:vu(t),n=n===i?r:vu(n)),ii(e,t,n)):[]},Un.sortBy=La,Un.sortedUniq=function(e){return e&&e.length?si(e):[]},Un.sortedUniqBy=function(e,t){return e&&e.length?si(e,lo(t,2)):[]},Un.split=function(e,t,n){return n&&"number"!=typeof n&&_o(e,t,n)&&(t=n=i),(n=n===i?v:n>>>0)?(e=wu(e))&&("string"==typeof t||null!=t&&!uu(t))&&!(t=ci(t))&&un(e)?xi(pn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Oe(o);return t=null==t?0:bn(vu(t),0),Zr((function(n){var r=n[t],i=xi(n,0,t);return r&&jt(i,r),St(e,this,i)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ii(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?ii(e,0,(t=n||t===i?1:vu(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=r-(t=n||t===i?1:vu(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?pi(e,lo(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?pi(e,lo(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Oe(o);return nu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ma(e,t,{leading:r,maxWait:t,trailing:i})},Un.thru=ga,Un.toArray=pu,Un.toPairs=Fu,Un.toPairsIn=Uu,Un.toPath=function(e){return Va(e)?Mt(e,Io):cu(e)?[e]:Pi(Go(wu(e)))},Un.toPlainObject=bu,Un.transform=function(e,t,n){var r=Va(e),i=r||Qa(e)||fu(e);if(t=lo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:nu(e)&&Ja(o)?Wn(Ve(e)):{}}return(i?Lt:_r)(e,(function(e,r,i){return t(n,e,r,i)})),n},Un.unary=function(e){return Oa(e,1)},Un.union=ra,Un.unionBy=ia,Un.unionWith=oa,Un.uniq=function(e){return e&&e.length?fi(e):[]},Un.uniqBy=function(e,t){return e&&e.length?fi(e,lo(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?fi(e,i,t):[]},Un.unset=function(e,t){return null==e||di(e,t)},Un.unzip=aa,Un.unzipWith=ua,Un.update=function(e,t,n){return null==e?e:hi(e,t,bi(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:hi(e,t,bi(n),r)},Un.values=Wu,Un.valuesIn=function(e){return null==e?[]:Xt(e,ju(e))},Un.without=sa,Un.words=Ju,Un.wrap=function(e,t){return Ia(bi(t),e)},Un.xor=la,Un.xorBy=ca,Un.xorWith=fa,Un.zip=da,Un.zipObject=function(e,t){return yi(e||[],t||[],nr)},Un.zipObjectDeep=function(e,t){return yi(e||[],t||[],ei)},Un.zipWith=ha,Un.entries=Fu,Un.entriesIn=Uu,Un.extend=xu,Un.extendWith=Eu,ls(Un,Un),Un.add=bs,Un.attempt=es,Un.camelCase=Bu,Un.capitalize=Hu,Un.ceil=ws,Un.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=mu(n))===n?n:0),t!==i&&(t=(t=mu(t))===t?t:0),sr(mu(e),t,n)},Un.clone=function(e){return lr(e,4)},Un.cloneDeep=function(e){return lr(e,5)},Un.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:i)},Un.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:i)},Un.conformsTo=function(e,t){return null==t||cr(e,t,Mu(t))},Un.deburr=qu,Un.defaultTo=function(e,t){return null==e||e!==e?t:e},Un.divide=_s,Un.endsWith=function(e,t,n){e=wu(e),t=ci(t);var r=e.length,o=n=n===i?r:sr(vu(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Un.eq=Wa,Un.escape=function(e){return(e=wu(e))&&Z.test(e)?e.replace(K,on):e},Un.escapeRegExp=function(e){return(e=wu(e))&&oe.test(e)?e.replace(ie,"\\$&"):e},Un.every=function(e,t,n){var r=Va(e)?Ot:gr;return n&&_o(e,t,n)&&(t=i),r(e,lo(t,3))},Un.find=ma,Un.findIndex=qo,Un.findKey=function(e,t){return It(e,lo(t,3),_r)},Un.findLast=ba,Un.findLastIndex=Vo,Un.findLastKey=function(e,t){return It(e,lo(t,3),xr)},Un.floor=xs,Un.forEach=wa,Un.forEachRight=_a,Un.forIn=function(e,t){return null==e?e:br(e,lo(t,3),ju)},Un.forInRight=function(e,t){return null==e?e:wr(e,lo(t,3),ju)},Un.forOwn=function(e,t){return e&&_r(e,lo(t,3))},Un.forOwnRight=function(e,t){return e&&xr(e,lo(t,3))},Un.get=Tu,Un.gt=Ba,Un.gte=Ha,Un.has=function(e,t){return null!=e&&yo(e,t,Tr)},Un.hasIn=Ou,Un.head=Yo,Un.identity=os,Un.includes=function(e,t,n,r){e=Ya(e)?e:Wu(e),n=n&&!r?vu(n):0;var i=e.length;return n<0&&(n=bn(i+n,0)),lu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ut(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vu(n);return i<0&&(i=bn(r+i,0)),Ut(e,t,i)},Un.inRange=function(e,t,n){return t=gu(t),n===i?(n=t,t=0):n=gu(n),function(e,t,n){return e>=wn(t,n)&&e<bn(t,n)}(e=mu(e),t,n)},Un.invoke=Nu,Un.isArguments=qa,Un.isArray=Va,Un.isArrayBuffer=$a,Un.isArrayLike=Ya,Un.isArrayLikeObject=Ka,Un.isBoolean=function(e){return!0===e||!1===e||ru(e)&&Cr(e)==w},Un.isBuffer=Qa,Un.isDate=Za,Un.isElement=function(e){return ru(e)&&1===e.nodeType&&!au(e)},Un.isEmpty=function(e){if(null==e)return!0;if(Ya(e)&&(Va(e)||"string"==typeof e||"function"==typeof e.splice||Qa(e)||fu(e)||qa(e)))return!e.length;var t=vo(e);if(t==S||t==P)return!e.size;if(So(e))return!Dr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Un.isEqual=function(e,t){return Mr(e,t)},Un.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Mr(e,t,i,n):!!r},Un.isError=Xa,Un.isFinite=function(e){return"number"==typeof e&&Gt(e)},Un.isFunction=Ja,Un.isInteger=eu,Un.isLength=tu,Un.isMap=iu,Un.isMatch=function(e,t){return e===t||jr(e,t,fo(t))},Un.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,jr(e,t,fo(t),n)},Un.isNaN=function(e){return ou(e)&&e!=+e},Un.isNative=function(e){if(ko(e))throw new ue("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},Un.isNil=function(e){return null==e},Un.isNull=function(e){return null===e},Un.isNumber=ou,Un.isObject=nu,Un.isObjectLike=ru,Un.isPlainObject=au,Un.isRegExp=uu,Un.isSafeInteger=function(e){return eu(e)&&e>=-9007199254740991&&e<=p},Un.isSet=su,Un.isString=lu,Un.isSymbol=cu,Un.isTypedArray=fu,Un.isUndefined=function(e){return e===i},Un.isWeakMap=function(e){return ru(e)&&vo(e)==M},Un.isWeakSet=function(e){return ru(e)&&"[object WeakSet]"==Cr(e)},Un.join=function(e,t){return null==e?"":Vt.call(e,t)},Un.kebabCase=Vu,Un.last=Xo,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=vu(n))<0?bn(r+o,0):wn(o,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):Ft(e,Bt,o,!0)},Un.lowerCase=$u,Un.lowerFirst=Yu,Un.lt=du,Un.lte=hu,Un.max=function(e){return e&&e.length?vr(e,os,Lr):i},Un.maxBy=function(e,t){return e&&e.length?vr(e,lo(t,2),Lr):i},Un.mean=function(e){return Ht(e,os)},Un.meanBy=function(e,t){return Ht(e,lo(t,2))},Un.min=function(e){return e&&e.length?vr(e,os,Ir):i},Un.minBy=function(e,t){return e&&e.length?vr(e,lo(t,2),Ir):i},Un.stubArray=ys,Un.stubFalse=ms,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=Es,Un.nth=function(e,t){return e&&e.length?Hr(e,vu(t)):i},Un.noConflict=function(){return ht._===this&&(ht._=Fe),this},Un.noop=cs,Un.now=Ta,Un.pad=function(e,t,n){e=wu(e);var r=(t=vu(t))?hn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return qi(gt(i),n)+e+qi(pt(i),n)},Un.padEnd=function(e,t,n){e=wu(e);var r=(t=vu(t))?hn(e):0;return t&&r<t?e+qi(t-r,n):e},Un.padStart=function(e,t,n){e=wu(e);var r=(t=vu(t))?hn(e):0;return t&&r<t?qi(t-r,n)+e:e},Un.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),xn(wu(e).replace(ae,""),t||0)},Un.random=function(e,t,n){if(n&&"boolean"!=typeof n&&_o(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=gu(e),t===i?(t=e,e=0):t=gu(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=En();return wn(e+o*(t-e+lt("1e-"+((o+"").length-1))),t)}return Kr(e,t)},Un.reduce=function(e,t,n){var r=Va(e)?Rt:$t,i=arguments.length<3;return r(e,lo(t,4),n,i,hr)},Un.reduceRight=function(e,t,n){var r=Va(e)?zt:$t,i=arguments.length<3;return r(e,lo(t,4),n,i,pr)},Un.repeat=function(e,t,n){return t=(n?_o(e,t,n):t===i)?1:vu(t),Qr(wu(e),t)},Un.replace=function(){var e=arguments,t=wu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,o=(t=wi(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[Io(t[r])];a===i&&(r=o,a=n),e=Ja(a)?a.call(e):a}return e},Un.round=ks,Un.runInContext=e,Un.sample=function(e){return(Va(e)?Xn:Xr)(e)},Un.size=function(e){if(null==e)return 0;if(Ya(e))return lu(e)?hn(e):e.length;var t=vo(e);return t==S||t==P?e.size:Dr(e).length},Un.snakeCase=Ku,Un.some=function(e,t,n){var r=Va(e)?Dt:oi;return n&&_o(e,t,n)&&(t=i),r(e,lo(t,3))},Un.sortedIndex=function(e,t){return ai(e,t)},Un.sortedIndexBy=function(e,t,n){return ui(e,t,lo(n,2))},Un.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ai(e,t);if(r<n&&Wa(e[r],t))return r}return-1},Un.sortedLastIndex=function(e,t){return ai(e,t,!0)},Un.sortedLastIndexBy=function(e,t,n){return ui(e,t,lo(n,2),!0)},Un.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ai(e,t,!0)-1;if(Wa(e[n],t))return n}return-1},Un.startCase=Qu,Un.startsWith=function(e,t,n){return e=wu(e),n=null==n?0:sr(vu(n),0,e.length),t=ci(t),e.slice(n,n+t.length)==t},Un.subtract=Ss,Un.sum=function(e){return e&&e.length?Yt(e,os):0},Un.sumBy=function(e,t){return e&&e.length?Yt(e,lo(t,2)):0},Un.template=function(e,t,n){var r=Un.templateSettings;n&&_o(e,t,n)&&(t=i),e=wu(e),t=Eu({},t,r,Ji);var o,a,u=Eu({},t.imports,r.imports,Ji),s=Mu(u),l=Xt(u,s),c=0,f=t.interpolate||xe,d="__p += '",h=Le((t.escape||xe).source+"|"+f.source+"|"+(f===ee?pe:xe).source+"|"+(t.evaluate||xe).source+"|$","g"),p="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ot+"]")+"\n";e.replace(h,(function(t,n,r,i,u,s){return r||(r=i),d+=e.slice(c,s).replace(Ee,an),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),u&&(a=!0,d+="';\n"+u+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=s+t.length,t})),d+="';\n";var g=Re.call(t,"variable")&&t.variable;if(g){if(de.test(g))throw new ue("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(q,""):d).replace(V,"$1").replace($,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=es((function(){return ke(s,p+"return "+d).apply(i,l)}));if(v.source=d,Xa(v))throw v;return v},Un.times=function(e,t){if((e=vu(e))<1||e>p)return[];var n=v,r=wn(e,v);t=lo(t),e-=v;for(var i=Kt(r,t);++n<e;)t(n);return i},Un.toFinite=gu,Un.toInteger=vu,Un.toLength=yu,Un.toLower=function(e){return wu(e).toLowerCase()},Un.toNumber=mu,Un.toSafeInteger=function(e){return e?sr(vu(e),-9007199254740991,p):0===e?e:0},Un.toString=wu,Un.toUpper=function(e){return wu(e).toUpperCase()},Un.trim=function(e,t,n){if((e=wu(e))&&(n||t===i))return Qt(e);if(!e||!(t=ci(t)))return e;var r=pn(e),o=pn(t);return xi(r,en(r,o),tn(r,o)+1).join("")},Un.trimEnd=function(e,t,n){if((e=wu(e))&&(n||t===i))return e.slice(0,gn(e)+1);if(!e||!(t=ci(t)))return e;var r=pn(e);return xi(r,0,tn(r,pn(t))+1).join("")},Un.trimStart=function(e,t,n){if((e=wu(e))&&(n||t===i))return e.replace(ae,"");if(!e||!(t=ci(t)))return e;var r=pn(e);return xi(r,en(r,pn(t))).join("")},Un.truncate=function(e,t){var n=30,r="...";if(nu(t)){var o="separator"in t?t.separator:o;n="length"in t?vu(t.length):n,r="omission"in t?ci(t.omission):r}var a=(e=wu(e)).length;if(un(e)){var u=pn(e);a=u.length}if(n>=a)return e;var s=n-hn(r);if(s<1)return r;var l=u?xi(u,0,s).join(""):e.slice(0,s);if(o===i)return l+r;if(u&&(s+=l.length-s),uu(o)){if(e.slice(s).search(o)){var c,f=l;for(o.global||(o=Le(o.source,wu(ge.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var d=c.index;l=l.slice(0,d===i?s:d)}}else if(e.indexOf(ci(o),s)!=s){var h=l.lastIndexOf(o);h>-1&&(l=l.slice(0,h))}return l+r},Un.unescape=function(e){return(e=wu(e))&&Q.test(e)?e.replace(Y,vn):e},Un.uniqueId=function(e){var t=++ze;return wu(e)+t},Un.upperCase=Zu,Un.upperFirst=Xu,Un.each=wa,Un.eachRight=_a,Un.first=Yo,ls(Un,function(){var e={};return _r(Un,(function(t,n){Re.call(Un.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Un.VERSION="4.17.21",Lt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),Lt(["drop","take"],(function(e,t){qn.prototype[e]=function(n){n=n===i?1:bn(vu(n),0);var r=this.__filtered__&&!t?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,v),type:e+(r.__dir__<0?"Right":"")}),r},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Lt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:lo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Lt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}})),Lt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(os)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Zr((function(e,t){return"function"==typeof e?new qn(this):this.map((function(n){return Ar(n,e,t)}))})),qn.prototype.reject=function(e){return this.filter(Da(lo(e)))},qn.prototype.slice=function(e,t){e=vu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new qn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=vu(t))<0?n.dropRight(-t):n.take(t-e)),n)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(v)},_r(qn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Un[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Un.prototype[t]=function(){var t=this.__wrapped__,u=r?[1]:arguments,s=t instanceof qn,l=u[0],c=s||Va(t),f=function(e){var t=o.apply(Un,jt([e],u));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var d=this.__chain__,h=!!this.__actions__.length,p=a&&!d,g=s&&!h;if(!a&&c){t=g?t:new qn(this);var v=e.apply(t,u);return v.__actions__.push({func:ga,args:[f],thisArg:i}),new Hn(v,d)}return p&&g?e.apply(this,u):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),Lt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Va(i)?i:[],e)}return this[n]((function(n){return t.apply(Va(n)?n:[],e)}))}})),_r(qn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Re.call(Nn,r)||(Nn[r]=[]),Nn[r].push({name:t,func:n})}})),Nn[Ui(i,2).name]=[{name:"wrapper",func:i}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=Pi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pi(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Va(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=wn(t,e+a);break;case"takeRight":e=bn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,u=o.end,s=u-a,l=r?u:a-1,c=this.__iteratees__,f=c.length,d=0,h=wn(s,this.__takeCount__);if(!n||!r&&i==s&&h==s)return gi(e,this.__actions__);var p=[];e:for(;s--&&d<h;){for(var g=-1,v=e[l+=t];++g<f;){var y=c[g],m=y.iteratee,b=y.type,w=m(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}p[d++]=v}return p},Un.prototype.at=va,Un.prototype.chain=function(){return pa(this)},Un.prototype.commit=function(){return new Hn(this.value(),this.__chain__)},Un.prototype.next=function(){this.__values__===i&&(this.__values__=pu(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Bn;){var r=Uo(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var t=e;return this.__actions__.length&&(t=new qn(this)),(t=t.reverse()).__actions__.push({func:ga,args:[na],thisArg:i}),new Hn(t,this.__chain__)}return this.thru(na)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,Ze&&(Un.prototype[Ze]=function(){return this}),Un}();ht._=yn,(r=function(){return yn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},1725:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,o){for(var a,u,s=i(e),l=1;l<arguments.length;l++){for(var c in a=Object(arguments[l]))n.call(a,c)&&(s[c]=a[c]);if(t){u=t(a);for(var f=0;f<u.length;f++)r.call(a,u[f])&&(s[u[f]]=a[u[f]])}}return s}},888:function(e,t,n){"use strict";var r=n(9047);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},2007:function(e,t,n){e.exports=n(888)()},9047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2590:function(e,t,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=l(n(2791)),u=l(n(2007)),s=l(n(1694));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"},d=["animateOpacity","animationStateClasses","applyInlineTransitions","children","contentClassName","delay","duration","easing","height","onAnimationEnd","onAnimationStart"];function h(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;for(var i={},o=Object.keys(e),a=0;a<o.length;a++){var u=o[a];-1===n.indexOf(u)&&(i[u]=e[u])}return i}function p(e){e.forEach((function(e){return cancelAnimationFrame(e)}))}function g(e){return!isNaN(parseFloat(e))&&isFinite(e)}function v(e){return"string"===typeof e&&e.search("%")===e.length-1&&g(e.substr(0,e.length-1))}function y(e,t){e&&"function"===typeof e&&e(t)}var m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.animationFrameIDs=[];var r="auto",o="visible";g(e.height)?(r=e.height<0||"0"===e.height?0:e.height,o="hidden"):v(e.height)&&(r="0%"===e.height?0:e.height,o="hidden"),n.animationStateClasses=i({},f,e.animationStateClasses);var a=n.getStaticStateClasses(r);return n.state={animationStateClasses:a,height:r,overflow:o,shouldUseTransitions:!1},n}return 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=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this.state.height;this.contentElement&&this.contentElement.style&&this.hideContent(e)}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.props,i=r.delay,o=r.duration,a=r.height,u=r.onAnimationEnd,l=r.onAnimationStart;if(this.contentElement&&a!==e.height){var f;this.showContent(t.height),this.contentElement.style.overflow="hidden";var d=this.contentElement.offsetHeight;this.contentElement.style.overflow="";var h=o+i,m=null,b={height:null,overflow:"hidden"},w="auto"===t.height;g(a)?(m=a<0||"0"===a?0:a,b.height=m):v(a)?(m="0%"===a?0:a,b.height=m):(m=d,b.height="auto",b.overflow=null),w&&(b.height=m,m=d);var _=(0,s.default)((c(f={},this.animationStateClasses.animating,!0),c(f,this.animationStateClasses.animatingUp,"auto"===e.height||a<e.height),c(f,this.animationStateClasses.animatingDown,"auto"===a||a>e.height),c(f,this.animationStateClasses.animatingToHeightZero,0===b.height),c(f,this.animationStateClasses.animatingToHeightAuto,"auto"===b.height),c(f,this.animationStateClasses.animatingToHeightSpecific,b.height>0),f)),x=this.getStaticStateClasses(b.height);this.setState({animationStateClasses:_,height:m,overflow:"hidden",shouldUseTransitions:!w}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),w?(b.shouldUseTransitions=!0,p(this.animationFrameIDs),this.animationFrameIDs=function(e){var t=[];return t[0]=requestAnimationFrame((function(){t[1]=requestAnimationFrame((function(){e()}))})),t}((function(){n.setState(b),y(l,{newHeight:b.height})})),this.animationClassesTimeoutID=setTimeout((function(){n.setState({animationStateClasses:x,shouldUseTransitions:!1}),n.hideContent(b.height),y(u,{newHeight:b.height})}),h)):(y(l,{newHeight:m}),this.timeoutID=setTimeout((function(){b.animationStateClasses=x,b.shouldUseTransitions=!1,n.setState(b),"auto"!==a&&n.hideContent(m),y(u,{newHeight:m})}),h))}}},{key:"componentWillUnmount",value:function(){p(this.animationFrameIDs),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null,this.animationClassesTimeoutID=null,this.animationStateClasses=null}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,s.default)((c(t={},this.animationStateClasses.static,!0),c(t,this.animationStateClasses.staticHeightZero,0===e),c(t,this.animationStateClasses.staticHeightSpecific,e>0),c(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.animateOpacity,o=n.applyInlineTransitions,u=n.children,l=n.className,f=n.contentClassName,p=n.delay,g=n.duration,v=n.easing,y=n.id,m=n.style,b=this.state,w=b.height,_=b.overflow,x=b.animationStateClasses,E=b.shouldUseTransitions,k=i({},m,{height:w,overflow:_||m.overflow});E&&o&&(k.transition="height "+g+"ms "+v+" "+p+"ms",m.transition&&(k.transition=m.transition+", "+k.transition),k.WebkitTransition=k.transition);var S={};r&&(S.transition="opacity "+g+"ms "+v+" "+p+"ms",S.WebkitTransition=S.transition,0===w&&(S.opacity=0));var C=(0,s.default)((c(e={},x,!0),c(e,l,l),e)),L="undefined"!==typeof this.props["aria-hidden"]?this.props["aria-hidden"]:0===w;return a.default.createElement("div",i({},h.apply(void 0,[this.props].concat(d)),{"aria-hidden":L,className:C,id:y,style:k}),a.default.createElement("div",{className:f,style:S,ref:function(e){return t.contentElement=e}},u))}}]),t}(a.default.Component);m.propTypes={"aria-hidden":u.default.bool,animateOpacity:u.default.bool,animationStateClasses:u.default.object,applyInlineTransitions:u.default.bool,children:u.default.any.isRequired,className:u.default.string,contentClassName:u.default.string,delay:u.default.number,duration:u.default.number,easing:u.default.string,height:function(e,t,n){var i=e[t];return"number"===typeof i&&i>=0||v(i)||"auto"===i?null:new TypeError('value "'+i+'" of type "'+("undefined"===typeof i?"undefined":r(i))+'" is invalid type for '+t+" in "+n+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},id:u.default.string,onAnimationEnd:u.default.func,onAnimationStart:u.default.func,style:u.default.object},m.defaultProps={animateOpacity:!1,animationStateClasses:f,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.Z=m},4463:function(e,t,n){"use strict";var r=n(2791),i=n(1725),o=n(5296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var u=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)u.add(t[e])}var f=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,p={},g={};function v(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(g,e)||!h.call(p,e)&&(d.test(e)?g[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,b);y[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,b);y[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,b);y[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=60103,E=60106,k=60107,S=60108,C=60114,L=60109,T=60110,O=60112,P=60113,A=60120,N=60115,M=60116,j=60121,R=60128,z=60129,D=60130,G=60131;if("function"===typeof Symbol&&Symbol.for){var I=Symbol.for;x=I("react.element"),E=I("react.portal"),k=I("react.fragment"),S=I("react.strict_mode"),C=I("react.profiler"),L=I("react.provider"),T=I("react.context"),O=I("react.forward_ref"),P=I("react.suspense"),A=I("react.suspense_list"),N=I("react.memo"),M=I("react.lazy"),j=I("react.block"),I("react.scope"),R=I("react.opaque.id"),z=I("react.debug_trace_mode"),D=I("react.offscreen"),G=I("react.legacy_hidden")}var F,U="function"===typeof Symbol&&Symbol.iterator;function W(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=U&&e[U]||e["@@iterator"])?e:null}function B(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var H=!1;function q(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&"string"===typeof s.stack){for(var i=s.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,u=o.length-1;1<=a&&0<=u&&i[a]!==o[u];)u--;for(;1<=a&&0<=u;a--,u--)if(i[a]!==o[u]){if(1!==a||1!==u)do{if(a--,0>--u||i[a]!==o[u])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=u);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?B(e):""}function V(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return e=q(e.type,!1);case 11:return e=q(e.type.render,!1);case 22:return e=q(e.type._render,!1);case 1:return e=q(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case E:return"Portal";case C:return"Profiler";case S:return"StrictMode";case P:return"Suspense";case A:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case L:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case N:return $(e.type);case j:return $(e._render);case M:t=e._payload,e=e._init;try{return $(e(t))}catch(n){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Z(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function X(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&X(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ue(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function le(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function he(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ge,ve,ye=(ve=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((ge=ge||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ge.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ve(e,t)}))}:ve);function me(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},we=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function xe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Ee=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ke(e,t){if(t){if(Ee[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Le=null,Te=null,Oe=null;function Pe(e){if(e=ri(e)){if("function"!==typeof Le)throw Error(a(280));var t=e.stateNode;t&&(t=oi(t),Le(e.stateNode,e.type,t))}}function Ae(e){Te?Oe?Oe.push(e):Oe=[e]:Te=e}function Ne(){if(Te){var e=Te,t=Oe;if(Oe=Te=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function Me(e,t){return e(t)}function je(e,t,n,r,i){return e(t,n,r,i)}function Re(){}var ze=Me,De=!1,Ge=!1;function Ie(){null===Te&&null===Oe||(Re(),Ne())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=oi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Ue=!1;if(f)try{var We={};Object.defineProperty(We,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",We,We),window.removeEventListener("test",We,We)}catch(ve){Ue=!1}function Be(e,t,n,r,i,o,a,u,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var He=!1,qe=null,Ve=!1,$e=null,Ye={onError:function(e){He=!0,qe=e}};function Ke(e,t,n,r,i,o,a,u,s){He=!1,qe=null,Be.apply(Ye,arguments)}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ze(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Qe(e)!==e)throw Error(a(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Xe(i),e;if(o===r)return Xe(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var u=!1,s=i.child;s;){if(s===n){u=!0,n=i,r=o;break}if(s===r){u=!0,r=i,n=o;break}s=s.sibling}if(!u){for(s=o.child;s;){if(s===n){u=!0,n=o,r=i;break}if(s===r){u=!0,r=o,n=i;break}s=s.sibling}if(!u)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,it,ot=!1,at=[],ut=null,st=null,lt=null,ct=new Map,ft=new Map,dt=[],ht="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function gt(e,t){switch(e){case"focusin":case"focusout":ut=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function vt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=pt(t,n,r,i,o),null!==t&&(null!==(t=ri(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function yt(e){var t=ni(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ze(n)))return e.blockedOn=t,void it(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ri(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){mt(e)&&n.delete(t)}function wt(){for(ot=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=ri(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==ut&&mt(ut)&&(ut=null),null!==st&&mt(st)&&(st=null),null!==lt&&mt(lt)&&(lt=null),ct.forEach(bt),ft.forEach(bt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,wt)))}function xt(e){function t(t){return _t(t,e)}if(0<at.length){_t(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ut&&_t(ut,e),null!==st&&_t(st,e),null!==lt&&_t(lt,e),ct.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)yt(n),null===n.blockedOn&&dt.shift()}function Et(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kt={animationend:Et("Animation","AnimationEnd"),animationiteration:Et("Animation","AnimationIteration"),animationstart:Et("Animation","AnimationStart"),transitionend:Et("Transition","TransitionEnd")},St={},Ct={};function Lt(e){if(St[e])return St[e];if(!kt[e])return e;var t,n=kt[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ct)return St[e]=n[t];return e}f&&(Ct=document.createElement("div").style,"AnimationEvent"in window||(delete kt.animationend.animation,delete kt.animationiteration.animation,delete kt.animationstart.animation),"TransitionEvent"in window||delete kt.transitionend.transition);var Tt=Lt("animationend"),Ot=Lt("animationiteration"),Pt=Lt("animationstart"),At=Lt("transitionend"),Nt=new Map,Mt=new Map,jt=["abort","abort",Tt,"animationEnd",Ot,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",At,"transitionEnd","waiting","waiting"];function Rt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Mt.set(r,t),Nt.set(r,i),l(i,[r])}}(0,o.unstable_now)();var zt=8;function Dt(e){if(0!==(1&e))return zt=15,1;if(0!==(2&e))return zt=14,2;if(0!==(4&e))return zt=13,4;var t=24&e;return 0!==t?(zt=12,t):0!==(32&e)?(zt=11,32):0!==(t=192&e)?(zt=10,t):0!==(256&e)?(zt=9,256):0!==(t=3584&e)?(zt=8,t):0!==(4096&e)?(zt=7,4096):0!==(t=4186112&e)?(zt=6,t):0!==(t=62914560&e)?(zt=5,t):67108864&e?(zt=4,67108864):0!==(134217728&e)?(zt=3,134217728):0!==(t=805306368&e)?(zt=2,t):0!==(1073741824&e)?(zt=1,1073741824):(zt=8,e)}function Gt(e,t){var n=e.pendingLanes;if(0===n)return zt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,u=e.pingedLanes;if(0!==o)r=o,i=zt=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=Dt(s),i=zt):0!==(u&=o)&&(r=Dt(u),i=zt)}else 0!==(o=n&~a)?(r=Dt(o),i=zt):0!==u&&(r=Dt(u),i=zt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Dt(t),i<=zt)return t;zt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Ht(t)),r|=e[n],t&=~i;return r}function It(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?Ft(10,t):e;case 10:return 0===(e=Ut(192&~t))?Ft(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Ut(e){return e&-e}function Wt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(qt(e)/Vt|0)|0},qt=Math.log,Vt=Math.LN2;var $t=o.unstable_UserBlockingPriority,Yt=o.unstable_runWithPriority,Kt=!0;function Qt(e,t,n,r){De||Re();var i=Xt,o=De;De=!0;try{je(i,e,t,n,r)}finally{(De=o)||Ie()}}function Zt(e,t,n,r){Yt($t,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var i;if(Kt)if((i=0===(4&t))&&0<at.length&&-1<ht.indexOf(e))e=pt(null,e,t,n,r),at.push(e);else{var o=Jt(e,t,n,r);if(null===o)i&&gt(e,r);else{if(i){if(-1<ht.indexOf(e))return e=pt(o,e,t,n,r),void at.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return ut=vt(ut,e,t,n,r,i),!0;case"dragenter":return st=vt(st,e,t,n,r,i),!0;case"mouseover":return lt=vt(lt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ct.set(o,vt(ct.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ft.set(o,vt(ft.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;gt(e,r)}Rr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=Ce(r);if(null!==(i=ni(i))){var o=Qe(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Ze(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Rr(e,t,r,i,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,i="value"in en?en.value:en.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return nn=i.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function un(){return!1}function sn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?an:un,this.isPropagationStopped=un,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var ln,cn,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=sn(dn),pn=i({},dn,{view:0,detail:0}),gn=sn(pn),vn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(ln=e.screenX-fn.screenX,cn=e.screenY-fn.screenY):cn=ln=0,fn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),yn=sn(vn),mn=sn(i({},vn,{dataTransfer:0})),bn=sn(i({},pn,{relatedTarget:0})),wn=sn(i({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=i({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xn=sn(_n),En=sn(i({},dn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ln(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function Tn(){return Ln}var On=i({},pn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=sn(On),An=sn(i({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=sn(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Mn=sn(i({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=i({},vn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=sn(jn),zn=[9,13,27,32],Dn=f&&"CompositionEvent"in window,Gn=null;f&&"documentMode"in document&&(Gn=document.documentMode);var In=f&&"TextEvent"in window&&!Gn,Fn=f&&(!Dn||Gn&&8<Gn&&11>=Gn),Un=String.fromCharCode(32),Wn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Yn(e,t,n,r){Ae(r),0<(t=Dr(t,"onChange")).length&&(n=new hn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Qn=null;function Zn(e){Or(e,0)}function Xn(e){if(Z(ii(e)))return e}function Jn(e,t){if("change"===e)return t}var er=!1;if(f){var tr;if(f){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"===typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function ir(){Kn&&(Kn.detachEvent("onpropertychange",or),Qn=Kn=null)}function or(e){if("value"===e.propertyName&&Xn(Qn)){var t=[];if(Yn(t,Qn,e,Ce(e)),e=Zn,De)e(t);else{De=!0;try{Me(e,t)}finally{De=!1,Ie()}}}}function ar(e,t,n){"focusin"===e?(ir(),Qn=n,(Kn=t).attachEvent("onpropertychange",or)):"focusout"===e&&ir()}function ur(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Qn)}function sr(e,t){if("click"===e)return Xn(t)}function lr(e,t){if("input"===e||"change"===e)return Xn(t)}var cr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},fr=Object.prototype.hasOwnProperty;function dr(e,t){if(cr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!fr.call(t,n[r])||!cr(e[n[r]],t[n[r]]))return!1;return!0}function hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pr(e,t){var n,r=hr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=hr(r)}}function gr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?gr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function vr(){for(var e=window,t=X();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=X((e=t.contentWindow).document)}return t}function yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mr=f&&"documentMode"in document&&11>=document.documentMode,br=null,wr=null,_r=null,xr=!1;function Er(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;xr||null==br||br!==X(r)||("selectionStart"in(r=br)&&yr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},_r&&dr(_r,r)||(_r=r,0<(r=Dr(wr,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}Rt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Rt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Rt(jt,2);for(var kr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sr=0;Sr<kr.length;Sr++)Mt.set(kr[Sr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cr));function Tr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,u,s,l){if(Ke.apply(this,arguments),He){if(!He)throw Error(a(198));var c=qe;He=!1,qe=null,Ve||(Ve=!0,$e=c)}}(r,t,void 0,e),e.currentTarget=null}function Or(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var u=r[a],s=u.instance,l=u.currentTarget;if(u=u.listener,s!==o&&i.isPropagationStopped())break e;Tr(i,u,l),o=s}else for(a=0;a<r.length;a++){if(s=(u=r[a]).instance,l=u.currentTarget,u=u.listener,s!==o&&i.isPropagationStopped())break e;Tr(i,u,l),o=s}}}if(Ve)throw e=$e,Ve=!1,$e=null,e}function Pr(e,t){var n=ai(t),r=e+"__bubble";n.has(r)||(jr(t,e,2,!1),n.add(r))}var Ar="_reactListening"+Math.random().toString(36).slice(2);function Nr(e){e[Ar]||(e[Ar]=!0,u.forEach((function(t){Lr.has(t)||Mr(t,!1,e,null),Mr(t,!0,e,null)})))}function Mr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Lr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ai(o),u=e+"__"+(t?"capture":"bubble");a.has(u)||(t&&(i|=4),jr(o,e,i,t),a.add(u))}function jr(e,t,n,r){var i=Mt.get(t);switch(void 0===i?2:i){case 0:i=Qt;break;case 1:i=Zt;break;default:i=Xt}n=i.bind(null,t,n,e),i=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Rr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var u=r.stateNode.containerInfo;if(u===i||8===u.nodeType&&u.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===i||8===s.nodeType&&s.parentNode===i))return;a=a.return}for(;null!==u;){if(null===(a=ni(u)))return;if(5===(s=a.tag)||6===s){r=o=a;continue e}u=u.parentNode}}r=r.return}!function(e,t,n){if(Ge)return e(t,n);Ge=!0;try{ze(e,t,n)}finally{Ge=!1,Ie()}}((function(){var r=o,i=Ce(n),a=[];e:{var u=Nt.get(e);if(void 0!==u){var s=hn,l=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":s=Pn;break;case"focusin":l="focus",s=bn;break;case"focusout":l="blur",s=bn;break;case"beforeblur":case"afterblur":s=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=yn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Nn;break;case Tt:case Ot:case Pt:s=wn;break;case At:s=Mn;break;case"scroll":s=gn;break;case"wheel":s=Rn;break;case"copy":case"cut":case"paste":s=xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=An}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==u?u+"Capture":null:u;c=[];for(var h,p=r;null!==p;){var g=(h=p).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==d&&(null!=(g=Fe(p,d))&&c.push(zr(p,g,h)))),f)break;p=p.return}0<c.length&&(u=new s(u,l,null,n,i),a.push({event:u,listeners:c}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(l=n.relatedTarget||n.fromElement)||!ni(l)&&!l[ei])&&(s||u)&&(u=i.window===i?i:(u=i.ownerDocument)?u.defaultView||u.parentWindow:window,s?(s=r,null!==(l=(l=n.relatedTarget||n.toElement)?ni(l):null)&&(l!==(f=Qe(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(s=null,l=r),s!==l)){if(c=yn,g="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=An,g="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==s?u:ii(s),h=null==l?u:ii(l),(u=new c(g,p+"leave",s,n,i)).target=f,u.relatedTarget=h,g=null,ni(i)===r&&((c=new c(d,p+"enter",l,n,i)).target=h,c.relatedTarget=f,g=c),f=g,s&&l)e:{for(d=l,p=0,h=c=s;h;h=Gr(h))p++;for(h=0,g=d;g;g=Gr(g))h++;for(;0<p-h;)c=Gr(c),p--;for(;0<h-p;)d=Gr(d),h--;for(;p--;){if(c===d||null!==d&&c===d.alternate)break e;c=Gr(c),d=Gr(d)}c=null}else c=null;null!==s&&Ir(a,u,s,c,!1),null!==l&&null!==f&&Ir(a,f,l,c,!0)}if("select"===(s=(u=r?ii(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===s&&"file"===u.type)var v=Jn;else if($n(u))if(er)v=lr;else{v=ur;var y=ar}else(s=u.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(v=sr);switch(v&&(v=v(e,r))?Yn(a,v,n,i):(y&&y(e,u,r),"focusout"===e&&(y=u._wrapperState)&&y.controlled&&"number"===u.type&&ie(u,"number",u.value)),y=r?ii(r):window,e){case"focusin":($n(y)||"true"===y.contentEditable)&&(br=y,wr=r,_r=null);break;case"focusout":_r=wr=br=null;break;case"mousedown":xr=!0;break;case"contextmenu":case"mouseup":case"dragend":xr=!1,Er(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":Er(a,n,i)}var m;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(m=rn()):(tn="value"in(en=i)?en.value:en.textContent,qn=!0)),0<(y=Dr(r,b)).length&&(b=new En(b,e,null,n,i),a.push({event:b,listeners:y}),m?b.data=m:null!==(m=Hn(n))&&(b.data=m))),(m=In?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Wn=!0,Un);case"textInput":return(e=t.data)===Un&&Wn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!Dn&&Bn(e,t)?(e=rn(),nn=tn=en=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Dr(r,"onBeforeInput")).length&&(i=new En("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=m))}Or(a,t)}))}function zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Fe(e,n))&&r.unshift(zr(e,o,i)),null!=(o=Fe(e,t))&&r.push(zr(e,o,i))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ir(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var u=n,s=u.alternate,l=u.stateNode;if(null!==s&&s===r)break;5===u.tag&&null!==l&&(u=l,i?null!=(s=Fe(n,o))&&a.unshift(zr(n,s,u)):i||null!=(s=Fe(n,o))&&a.push(zr(n,s,u))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Fr(){}var Ur=null,Wr=null;function Br(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Hr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var qr="function"===typeof setTimeout?setTimeout:void 0,Vr="function"===typeof clearTimeout?clearTimeout:void 0;function $r(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Yr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Kr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Qr=0;var Zr=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Zr,Jr="__reactProps$"+Zr,ei="__reactContainer$"+Zr,ti="__reactEvents$"+Zr;function ni(e){var t=e[Xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ei]||n[Xr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Kr(e);null!==e;){if(n=e[Xr])return n;e=Kr(e)}return t}n=(e=n).parentNode}return null}function ri(e){return!(e=e[Xr]||e[ei])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ii(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function oi(e){return e[Jr]||null}function ai(e){var t=e[ti];return void 0===t&&(t=e[ti]=new Set),t}var ui=[],si=-1;function li(e){return{current:e}}function ci(e){0>si||(e.current=ui[si],ui[si]=null,si--)}function fi(e,t){si++,ui[si]=e.current,e.current=t}var di={},hi=li(di),pi=li(!1),gi=di;function vi(e,t){var n=e.type.contextTypes;if(!n)return di;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function yi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function mi(){ci(pi),ci(hi)}function bi(e,t,n){if(hi.current!==di)throw Error(a(168));fi(hi,t),fi(pi,n)}function wi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,$(t)||"Unknown",o));return i({},n,r)}function _i(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||di,gi=hi.current,fi(hi,e),fi(pi,pi.current),!0}function xi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=wi(e,t,gi),r.__reactInternalMemoizedMergedChildContext=e,ci(pi),ci(hi),fi(hi,e)):ci(pi),fi(pi,n)}var Ei=null,ki=null,Si=o.unstable_runWithPriority,Ci=o.unstable_scheduleCallback,Li=o.unstable_cancelCallback,Ti=o.unstable_shouldYield,Oi=o.unstable_requestPaint,Pi=o.unstable_now,Ai=o.unstable_getCurrentPriorityLevel,Ni=o.unstable_ImmediatePriority,Mi=o.unstable_UserBlockingPriority,ji=o.unstable_NormalPriority,Ri=o.unstable_LowPriority,zi=o.unstable_IdlePriority,Di={},Gi=void 0!==Oi?Oi:function(){},Ii=null,Fi=null,Ui=!1,Wi=Pi(),Bi=1e4>Wi?Pi:function(){return Pi()-Wi};function Hi(){switch(Ai()){case Ni:return 99;case Mi:return 98;case ji:return 97;case Ri:return 96;case zi:return 95;default:throw Error(a(332))}}function qi(e){switch(e){case 99:return Ni;case 98:return Mi;case 97:return ji;case 96:return Ri;case 95:return zi;default:throw Error(a(332))}}function Vi(e,t){return e=qi(e),Si(e,t)}function $i(e,t,n){return e=qi(e),Ci(e,t,n)}function Yi(){if(null!==Fi){var e=Fi;Fi=null,Li(e)}Ki()}function Ki(){if(!Ui&&null!==Ii){Ui=!0;var e=0;try{var t=Ii;Vi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ii=null}catch(n){throw null!==Ii&&(Ii=Ii.slice(e+1)),Ci(Ni,Yi),n}finally{Ui=!1}}}var Qi=_.ReactCurrentBatchConfig;function Zi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Xi=li(null),Ji=null,eo=null,to=null;function no(){to=eo=Ji=null}function ro(e){var t=Xi.current;ci(Xi),e.type._context._currentValue=t}function io(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function oo(e,t){Ji=e,to=eo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Da=!0),e.firstContext=null)}function ao(e,t){if(to!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(to=e,t=1073741823),t={context:e,observedBits:t,next:null},null===eo){if(null===Ji)throw Error(a(308));eo=t,Ji.dependencies={lanes:0,firstContext:t,responders:null}}else eo=eo.next=t;return e._currentValue}var uo=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function co(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ho(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function po(e,t,n,r){var o=e.updateQueue;uo=!1;var a=o.firstBaseUpdate,u=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===u?a=c:u.next=c,u=l;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==u&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=l)}}if(null!==a){for(d=o.baseState,u=0,f=c=l=null;;){s=a.lane;var h=a.eventTime;if((r&s)===s){null!==f&&(f=f.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,g=a;switch(s=t,h=n,g.tag){case 1:if("function"===typeof(p=g.payload)){d=p.call(h,d,s);break e}d=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null===(s="function"===typeof(p=g.payload)?p.call(h,d,s):p)||void 0===s)break e;d=i({},d,s);break e;case 2:uo=!0}}null!==a.callback&&(e.flags|=32,null===(s=o.effects)?o.effects=[a]:s.push(a))}else h={eventTime:h,lane:s,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=h,l=d):f=f.next=h,u|=s;if(null===(a=a.next)){if(null===(s=o.shared.pending))break;a=s.next,s.next=null,o.lastBaseUpdate=s,o.shared.pending=null}}null===f&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=f,Uu|=u,e.lanes=u,e.memoizedState=d}}function go(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var vo=(new r.Component).refs;function yo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var mo={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ds(),i=hs(e),o=co(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),fo(e,o),ps(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ds(),i=hs(e),o=co(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),fo(e,o),ps(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ds(),r=hs(e),i=co(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),fo(e,i),ps(e,r,n)}};function bo(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!dr(n,r)||!dr(i,o))}function wo(e,t,n){var r=!1,i=di,o=t.contextType;return"object"===typeof o&&null!==o?o=ao(o):(i=yi(t)?gi:hi.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?vi(e,i):di),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=mo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function _o(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&mo.enqueueReplaceState(t,t.state,null)}function xo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=vo,so(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=ao(o):(o=yi(t)?gi:hi.current,i.context=vi(e,o)),po(e,n,i,r),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(yo(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&mo.enqueueReplaceState(i,i.state,null),po(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4)}var Eo=Array.isArray;function ko(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=r.refs;t===vo&&(t=r.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function So(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Co(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Vs(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function u(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Qs(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=ko(e,t,n),r.return=e,r):((r=$s(n.type,n.key,n.props,null,e.mode,r)).ref=ko(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Zs(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Ys(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Qs(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=$s(t.type,t.key,t.props,null,e.mode,n)).ref=ko(e,null,t),n.return=e,n;case E:return(t=Zs(t,e.mode,n)).return=e,t}if(Eo(t)||W(t))return(t=Ys(t,e.mode,n,null)).return=e,t;So(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?n.type===k?f(e,t,n.props.children,r,i):l(e,t,n,r):null;case E:return n.key===i?c(e,t,n,r):null}if(Eo(n)||W(n))return null!==i?null:f(e,t,n,r,null);So(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return e=e.get(null===r.key?n:r.key)||null,r.type===k?f(t,e,r.props.children,i,r.key):l(t,e,r,i);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(Eo(r)||W(r))return f(t,e=e.get(n)||null,r,i,null);So(t,r)}return null}function g(i,a,u,s){for(var l=null,c=null,f=a,g=a=0,v=null;null!==f&&g<u.length;g++){f.index>g?(v=f,f=null):v=f.sibling;var y=h(i,f,u[g],s);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(i,f),a=o(y,a,g),null===c?l=y:c.sibling=y,c=y,f=v}if(g===u.length)return n(i,f),l;if(null===f){for(;g<u.length;g++)null!==(f=d(i,u[g],s))&&(a=o(f,a,g),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(i,f);g<u.length;g++)null!==(v=p(f,i,g,u[g],s))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),a=o(v,a,g),null===c?l=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),l}function v(i,u,s,l){var c=W(s);if("function"!==typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var f=c=null,g=u,v=u=0,y=null,m=s.next();null!==g&&!m.done;v++,m=s.next()){g.index>v?(y=g,g=null):y=g.sibling;var b=h(i,g,m.value,l);if(null===b){null===g&&(g=y);break}e&&g&&null===b.alternate&&t(i,g),u=o(b,u,v),null===f?c=b:f.sibling=b,f=b,g=y}if(m.done)return n(i,g),c;if(null===g){for(;!m.done;v++,m=s.next())null!==(m=d(i,m.value,l))&&(u=o(m,u,v),null===f?c=m:f.sibling=m,f=m);return c}for(g=r(i,g);!m.done;v++,m=s.next())null!==(m=p(g,i,v,m.value,l))&&(e&&null!==m.alternate&&g.delete(null===m.key?v:m.key),u=o(m,u,v),null===f?c=m:f.sibling=m,f=m);return e&&g.forEach((function(e){return t(i,e)})),c}return function(e,r,o,s){var l="object"===typeof o&&null!==o&&o.type===k&&null===o.key;l&&(o=o.props.children);var c="object"===typeof o&&null!==o;if(c)switch(o.$$typeof){case x:e:{for(c=o.key,l=r;null!==l;){if(l.key===c){if(7===l.tag){if(o.type===k){n(e,l.sibling),(r=i(l,o.props.children)).return=e,e=r;break e}}else if(l.elementType===o.type){n(e,l.sibling),(r=i(l,o.props)).ref=ko(e,l,o),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}o.type===k?((r=Ys(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=$s(o.type,o.key,o.props,null,e.mode,s)).ref=ko(e,r,o),s.return=e,e=s)}return u(e);case E:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Zs(o,e.mode,s)).return=e,e=r}return u(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Qs(o,e.mode,s)).return=e,e=r),u(e);if(Eo(o))return g(e,r,o,s);if(W(o))return v(e,r,o,s);if(c&&So(e,o),"undefined"===typeof o&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,$(e.type)||"Component"))}return n(e,r)}}var Lo=Co(!0),To=Co(!1),Oo={},Po=li(Oo),Ao=li(Oo),No=li(Oo);function Mo(e){if(e===Oo)throw Error(a(174));return e}function jo(e,t){switch(fi(No,t),fi(Ao,e),fi(Po,Oo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ci(Po),fi(Po,t)}function Ro(){ci(Po),ci(Ao),ci(No)}function zo(e){Mo(No.current);var t=Mo(Po.current),n=pe(t,e.type);t!==n&&(fi(Ao,e),fi(Po,n))}function Do(e){Ao.current===e&&(ci(Po),ci(Ao))}var Go=li(0);function Io(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fo=null,Uo=null,Wo=!1;function Bo(e,t){var n=Hs(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ho(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function qo(e){if(Wo){var t=Uo;if(t){var n=t;if(!Ho(e,t)){if(!(t=Yr(n.nextSibling))||!Ho(e,t))return e.flags=-1025&e.flags|2,Wo=!1,void(Fo=e);Bo(Fo,n)}Fo=e,Uo=Yr(t.firstChild)}else e.flags=-1025&e.flags|2,Wo=!1,Fo=e}}function Vo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Fo=e}function $o(e){if(e!==Fo)return!1;if(!Wo)return Vo(e),Wo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=Uo;t;)Bo(e,t),t=Yr(t.nextSibling);if(Vo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Uo=Yr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Uo=null}}else Uo=Fo?Yr(e.stateNode.nextSibling):null;return!0}function Yo(){Uo=Fo=null,Wo=!1}var Ko=[];function Qo(){for(var e=0;e<Ko.length;e++)Ko[e]._workInProgressVersionPrimary=null;Ko.length=0}var Zo=_.ReactCurrentDispatcher,Xo=_.ReactCurrentBatchConfig,Jo=0,ea=null,ta=null,na=null,ra=!1,ia=!1;function oa(){throw Error(a(321))}function aa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function ua(e,t,n,r,i,o){if(Jo=o,ea=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zo.current=null===e||null===e.memoizedState?Ma:ja,e=n(r,i),ia){o=0;do{if(ia=!1,!(25>o))throw Error(a(301));o+=1,na=ta=null,t.updateQueue=null,Zo.current=Ra,e=n(r,i)}while(ia)}if(Zo.current=Na,t=null!==ta&&null!==ta.next,Jo=0,na=ta=ea=null,ra=!1,t)throw Error(a(300));return e}function sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===na?ea.memoizedState=na=e:na=na.next=e,na}function la(){if(null===ta){var e=ea.alternate;e=null!==e?e.memoizedState:null}else e=ta.next;var t=null===na?ea.memoizedState:na.next;if(null!==t)na=t,ta=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ta=e).memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},null===na?ea.memoizedState=na=e:na=na.next=e}return na}function ca(e,t){return"function"===typeof t?t(e):t}function fa(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ta,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var u=i.next;i.next=o.next,o.next=u}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=u=o=null,l=i;do{var c=l.lane;if((Jo&c)===c)null!==s&&(s=s.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var f={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===s?(u=s=f,o=r):s=s.next=f,ea.lanes|=c,Uu|=c}l=l.next}while(null!==l&&l!==i);null===s?o=r:s.next=u,cr(r,t.memoizedState)||(Da=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function da(e){var t=la(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var u=i=i.next;do{o=e(o,u.action),u=u.next}while(u!==i);cr(o,t.memoizedState)||(Da=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ha(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Jo&e)===e)&&(t._workInProgressVersionPrimary=r,Ko.push(t))),e)return n(t._source);throw Ko.push(t),Error(a(350))}function pa(e,t,n,r){var i=Mu;if(null===i)throw Error(a(349));var o=t._getVersion,u=o(t._source),s=Zo.current,l=s.useState((function(){return ha(i,t,n)})),c=l[1],f=l[0];l=na;var d=e.memoizedState,h=d.refs,p=h.getSnapshot,g=d.source;d=d.subscribe;var v=ea;return e.memoizedState={refs:h,source:t,subscribe:r},s.useEffect((function(){h.getSnapshot=n,h.setSnapshot=c;var e=o(t._source);if(!cr(u,e)){e=n(t._source),cr(f,e)||(c(e),e=hs(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var s=31-Ht(a),l=1<<s;r[s]|=e,a&=~l}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=hs(v);i.mutableReadLanes|=r&i.pendingLanes}catch(o){n((function(){throw o}))}}))}),[t,r]),cr(p,n)&&cr(g,t)&&cr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:f}).dispatch=c=Aa.bind(null,ea,e),l.queue=e,l.baseQueue=null,f=ha(i,t,n),l.memoizedState=l.baseState=f),f}function ga(e,t,n){return pa(la(),e,t,n)}function va(e){var t=sa();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e}).dispatch=Aa.bind(null,ea,e),[t.memoizedState,e]}function ya(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ea.updateQueue)?(t={lastEffect:null},ea.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ma(e){return e={current:e},sa().memoizedState=e}function ba(){return la().memoizedState}function wa(e,t,n,r){var i=sa();ea.flags|=e,i.memoizedState=ya(1|t,n,void 0,void 0===r?null:r)}function _a(e,t,n,r){var i=la();r=void 0===r?null:r;var o=void 0;if(null!==ta){var a=ta.memoizedState;if(o=a.destroy,null!==r&&aa(r,a.deps))return void ya(t,n,o,r)}ea.flags|=e,i.memoizedState=ya(1|t,n,o,r)}function xa(e,t){return wa(516,4,e,t)}function Ea(e,t){return _a(516,4,e,t)}function ka(e,t){return _a(4,2,e,t)}function Sa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ca(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,_a(4,2,Sa.bind(null,t,e),n)}function La(){}function Ta(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Oa(e,t){var n=la();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Pa(e,t){var n=Hi();Vi(98>n?98:n,(function(){e(!0)})),Vi(97<n?97:n,(function(){var n=Xo.transition;Xo.transition=1;try{e(!1),t()}finally{Xo.transition=n}}))}function Aa(e,t,n){var r=ds(),i=hs(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===ea||null!==a&&a===ea)ia=ra=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var u=t.lastRenderedState,s=a(u,n);if(o.eagerReducer=a,o.eagerState=s,cr(s,u))return}catch(l){}ps(e,i,r)}}var Na={readContext:ao,useCallback:oa,useContext:oa,useEffect:oa,useImperativeHandle:oa,useLayoutEffect:oa,useMemo:oa,useReducer:oa,useRef:oa,useState:oa,useDebugValue:oa,useDeferredValue:oa,useTransition:oa,useMutableSource:oa,useOpaqueIdentifier:oa,unstable_isNewReconciler:!1},Ma={readContext:ao,useCallback:function(e,t){return sa().memoizedState=[e,void 0===t?null:t],e},useContext:ao,useEffect:xa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,wa(4,2,Sa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wa(4,2,e,t)},useMemo:function(e,t){var n=sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=sa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Aa.bind(null,ea,e),[r.memoizedState,e]},useRef:ma,useState:va,useDebugValue:La,useDeferredValue:function(e){var t=va(e),n=t[0],r=t[1];return xa((function(){var t=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=t}}),[e]),n},useTransition:function(){var e=va(!1),t=e[0];return ma(e=Pa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=sa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},pa(r,e,t,n)},useOpaqueIdentifier:function(){if(Wo){var e=!1,t=function(e){return{$$typeof:R,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Qr++).toString(36))),Error(a(355))})),n=va(t)[1];return 0===(2&ea.mode)&&(ea.flags|=516,ya(5,(function(){n("r:"+(Qr++).toString(36))}),void 0,null)),t}return va(t="r:"+(Qr++).toString(36)),t},unstable_isNewReconciler:!1},ja={readContext:ao,useCallback:Ta,useContext:ao,useEffect:Ea,useImperativeHandle:Ca,useLayoutEffect:ka,useMemo:Oa,useReducer:fa,useRef:ba,useState:function(){return fa(ca)},useDebugValue:La,useDeferredValue:function(e){var t=fa(ca),n=t[0],r=t[1];return Ea((function(){var t=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=t}}),[e]),n},useTransition:function(){var e=fa(ca)[0];return[ba().current,e]},useMutableSource:ga,useOpaqueIdentifier:function(){return fa(ca)[0]},unstable_isNewReconciler:!1},Ra={readContext:ao,useCallback:Ta,useContext:ao,useEffect:Ea,useImperativeHandle:Ca,useLayoutEffect:ka,useMemo:Oa,useReducer:da,useRef:ba,useState:function(){return da(ca)},useDebugValue:La,useDeferredValue:function(e){var t=da(ca),n=t[0],r=t[1];return Ea((function(){var t=Xo.transition;Xo.transition=1;try{r(e)}finally{Xo.transition=t}}),[e]),n},useTransition:function(){var e=da(ca)[0];return[ba().current,e]},useMutableSource:ga,useOpaqueIdentifier:function(){return da(ca)[0]},unstable_isNewReconciler:!1},za=_.ReactCurrentOwner,Da=!1;function Ga(e,t,n,r){t.child=null===e?To(t,null,n,r):Lo(t,e.child,n,r)}function Ia(e,t,n,r,i){n=n.render;var o=t.ref;return oo(t,i),r=ua(e,t,n,r,o,i),null===e||Da?(t.flags|=1,Ga(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ou(e,t,i))}function Fa(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!==typeof a||qs(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=$s(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ua(e,t,a,r,i,o))}return a=e.child,0===(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:dr)(i,r)&&e.ref===t.ref)?ou(e,t,o):(t.flags|=1,(e=Vs(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ua(e,t,n,r,i,o){if(null!==e&&dr(e.memoizedProps,r)&&e.ref===t.ref){if(Da=!1,0===(o&i))return t.lanes=e.lanes,ou(e,t,o);0!==(16384&e.flags)&&(Da=!0)}return Ha(e,t,n,r,o)}function Wa(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},xs(t,n);else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},xs(t,e),null;t.memoizedState={baseLanes:0},xs(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,xs(t,r);return Ga(e,t,i,n),t.child}function Ba(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ha(e,t,n,r,i){var o=yi(n)?gi:hi.current;return o=vi(t,o),oo(t,i),n=ua(e,t,n,r,o,i),null===e||Da?(t.flags|=1,Ga(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ou(e,t,i))}function qa(e,t,n,r,i){if(yi(n)){var o=!0;_i(t)}else o=!1;if(oo(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),wo(t,n,r),xo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var s=a.context,l=n.contextType;"object"===typeof l&&null!==l?l=ao(l):l=vi(t,l=yi(n)?gi:hi.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(u!==r||s!==l)&&_o(t,a,r,l),uo=!1;var d=t.memoizedState;a.state=d,po(t,r,a,i),s=t.memoizedState,u!==r||d!==s||pi.current||uo?("function"===typeof c&&(yo(t,n,c,r),s=t.memoizedState),(u=uo||bo(t,n,u,r,d,s,l))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=l,r=u):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,lo(e,t),u=t.memoizedProps,l=t.type===t.elementType?u:Zi(t.type,u),a.props=l,f=t.pendingProps,d=a.context,"object"===typeof(s=n.contextType)&&null!==s?s=ao(s):s=vi(t,s=yi(n)?gi:hi.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(u!==f||d!==s)&&_o(t,a,r,s),uo=!1,d=t.memoizedState,a.state=d,po(t,r,a,i);var p=t.memoizedState;u!==f||d!==p||pi.current||uo?("function"===typeof h&&(yo(t,n,h,r),p=t.memoizedState),(l=uo||bo(t,n,l,r,d,p,s))?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,s),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,s)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=s,r=l):("function"!==typeof a.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Va(e,t,n,r,o,i)}function Va(e,t,n,r,i,o){Ba(e,t);var a=0!==(64&t.flags);if(!r&&!a)return i&&xi(t,n,!1),ou(e,t,o);r=t.stateNode,za.current=t;var u=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Lo(t,e.child,null,o),t.child=Lo(t,null,u,o)):Ga(e,t,u,o),t.memoizedState=r.state,i&&xi(t,n,!0),t.child}function $a(e){var t=e.stateNode;t.pendingContext?bi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bi(0,t.context,!1),jo(e,t.containerInfo)}var Ya,Ka,Qa,Za={dehydrated:null,retryLane:0};function Xa(e,t,n){var r,i=t.pendingProps,o=Go.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),fi(Go,1&o),null===e?(void 0!==i.fallback&&qo(t),e=i.children,o=i.fallback,a?(e=Ja(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Za,e):"number"===typeof i.unstable_expectedLoadTime?(e=Ja(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Za,t.lanes=33554432,e):((n=Ks({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=tu(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Za,i):(n=eu(e,t,i.children,n),t.memoizedState=null,n))}function Ja(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0===(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Ks(t,i,0,null),n=Ys(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function eu(e,t,n,r){var i=e.child;return e=i.sibling,n=Vs(i,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function tu(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var u={mode:"hidden",children:n};return 0===(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=u,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Vs(a,u),null!==e?r=Vs(e,r):(r=Ys(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function nu(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),io(e.return,t)}function ru(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function iu(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ga(e,t,r.children,n),0!==(2&(r=Go.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&nu(e,n);else if(19===e.tag)nu(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fi(Go,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Io(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ru(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Io(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ru(t,!0,n,null,o,t.lastEffect);break;case"together":ru(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ou(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Uu|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Vs(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vs(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function au(e,t){if(!Wo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function uu(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return yi(t.type)&&mi(),null;case 3:return Ro(),ci(pi),ci(hi),Qo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||($o(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Do(t);var o=Mo(No.current);if(n=t.type,null!==e&&null!=t.stateNode)Ka(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Mo(Po.current),$o(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[Xr]=t,r[Jr]=u,n){case"dialog":Pr("cancel",r),Pr("close",r);break;case"iframe":case"object":case"embed":Pr("load",r);break;case"video":case"audio":for(e=0;e<Cr.length;e++)Pr(Cr[e],r);break;case"source":Pr("error",r);break;case"img":case"image":case"link":Pr("error",r),Pr("load",r);break;case"details":Pr("toggle",r);break;case"input":ee(r,u),Pr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Pr("invalid",r);break;case"textarea":se(r,u),Pr("invalid",r)}for(var l in ke(n,u),e=null,u)u.hasOwnProperty(l)&&(o=u[l],"children"===l?"string"===typeof o?r.textContent!==o&&(e=["children",o]):"number"===typeof o&&r.textContent!==""+o&&(e=["children",""+o]):s.hasOwnProperty(l)&&null!=o&&"onScroll"===l&&Pr("scroll",r));switch(n){case"input":Q(r),re(r,u,!0);break;case"textarea":Q(r),ce(r);break;case"select":case"option":break;default:"function"===typeof u.onClick&&(r.onclick=Fr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===o.nodeType?o:o.ownerDocument,e===fe&&(e=he(n)),e===fe?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Xr]=t,e[Jr]=r,Ya(e,t),t.stateNode=e,l=Se(n,r),n){case"dialog":Pr("cancel",e),Pr("close",e),o=r;break;case"iframe":case"object":case"embed":Pr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Cr.length;o++)Pr(Cr[o],e);o=r;break;case"source":Pr("error",e),o=r;break;case"img":case"image":case"link":Pr("error",e),Pr("load",e),o=r;break;case"details":Pr("toggle",e),o=r;break;case"input":ee(e,r),o=J(e,r),Pr("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Pr("invalid",e);break;case"textarea":se(e,r),o=ue(e,r),Pr("invalid",e);break;default:o=r}ke(n,o);var c=o;for(u in c)if(c.hasOwnProperty(u)){var f=c[u];"style"===u?xe(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&ye(e,f):"children"===u?"string"===typeof f?("textarea"!==n||""!==f)&&me(e,f):"number"===typeof f&&me(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?null!=f&&"onScroll"===u&&Pr("scroll",e):null!=f&&w(e,u,f,l))}switch(n){case"input":Q(e),re(e,r,!1);break;case"textarea":Q(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(u=r.value)?ae(e,!!r.multiple,u,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Fr)}Br(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Qa(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Mo(No.current),Mo(Po.current),$o(t)?(r=t.stateNode,n=t.memoizedProps,r[Xr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Xr]=t,t.stateNode=r)}return null;case 13:return ci(Go),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&$o(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Go.current)?0===Gu&&(Gu=3):(0!==Gu&&3!==Gu||(Gu=4),null===Mu||0===(134217727&Uu)&&0===(134217727&Wu)||ms(Mu,Ru))),(r||n)&&(t.flags|=4),null);case 4:return Ro(),null===e&&Nr(t.stateNode.containerInfo),null;case 10:return ro(t),null;case 19:if(ci(Go),null===(r=t.memoizedState))return null;if(u=0!==(64&t.flags),null===(l=r.rendering))if(u)au(r,!1);else{if(0!==Gu||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=Io(e))){for(t.flags|=64,au(r,!1),null!==(u=l.updateQueue)&&(t.updateQueue=u,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(u=n).flags&=2,u.nextEffect=null,u.firstEffect=null,u.lastEffect=null,null===(l=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=l.childLanes,u.lanes=l.lanes,u.child=l.child,u.memoizedProps=l.memoizedProps,u.memoizedState=l.memoizedState,u.updateQueue=l.updateQueue,u.type=l.type,e=l.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fi(Go,1&Go.current|2),t.child}e=e.sibling}null!==r.tail&&Bi()>Vu&&(t.flags|=64,u=!0,au(r,!1),t.lanes=33554432)}else{if(!u)if(null!==(e=Io(l))){if(t.flags|=64,u=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),au(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!Wo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Bi()-r.renderingStartTime>Vu&&1073741824!==n&&(t.flags|=64,u=!0,au(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Bi(),n.sibling=null,t=Go.current,fi(Go,u?1&t|2:1&t),n):null;case 23:case 24:return Es(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function su(e){switch(e.tag){case 1:yi(e.type)&&mi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ro(),ci(pi),ci(hi),Qo(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Do(e),null;case 13:return ci(Go),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ci(Go),null;case 4:return Ro(),null;case 10:return ro(e),null;case 23:case 24:return Es(),null;default:return null}}function lu(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i}}function cu(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Ya=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ka=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Mo(Po.current);var a,u=null;switch(n){case"input":o=J(e,o),r=J(e,r),u=[];break;case"option":o=oe(e,o),r=oe(e,r),u=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),u=[];break;case"textarea":o=ue(e,o),r=ue(e,r),u=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Fr)}for(f in ke(n,r),n=null,o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&null!=o[f])if("style"===f){var l=o[f];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(s.hasOwnProperty(f)?u||(u=[]):(u=u||[]).push(f,null));for(f in r){var c=r[f];if(l=null!=o?o[f]:void 0,r.hasOwnProperty(f)&&c!==l&&(null!=c||null!=l))if("style"===f)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(u||(u=[]),u.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(u=u||[]).push(f,c)):"children"===f?"string"!==typeof c&&"number"!==typeof c||(u=u||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(s.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Pr("scroll",e),u||l===c||(u=[])):"object"===typeof c&&null!==c&&c.$$typeof===R?c.toString():(u=u||[]).push(f,c))}n&&(u=u||[]).push("style",n);var f=u;(t.updateQueue=f)&&(t.flags|=4)}},Qa=function(e,t,n,r){n!==r&&(t.flags|=4)};var fu="function"===typeof WeakMap?WeakMap:Map;function du(e,t,n){(n=co(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Qu||(Qu=!0,Zu=r),cu(0,t)},n}function hu(e,t,n){(n=co(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return cu(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Xu?Xu=new Set([this]):Xu.add(this),cu(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var pu="function"===typeof WeakSet?WeakSet:Set;function gu(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Fs(e,n)}else t.current=null}function vu(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Zi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&$r(t.stateNode.containerInfo))}throw Error(a(163))}function yu(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(Ds(n,e),zs(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Zi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&go(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}go(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Br(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&xt(n)))))}throw Error(a(163))}function mu(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=_e("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function bu(e,t){if(ki&&"function"===typeof ki.onCommitFiberUnmount)try{ki.onCommitFiberUnmount(Ei,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))Ds(t,n);else{r=t;try{i()}catch(o){Fs(r,o)}}n=n.next}while(n!==e)}break;case 1:if(gu(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Fs(t,o)}break;case 5:gu(t);break;case 4:Su(e,t)}}function wu(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function _u(e){return 5===e.tag||3===e.tag||4===e.tag}function xu(e){e:{for(var t=e.return;null!==t;){if(_u(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(me(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||_u(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Eu(e,n,t):ku(e,n,t)}function Eu(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Fr));else if(4!==r&&null!==(e=e.child))for(Eu(e,t,n),e=e.sibling;null!==e;)Eu(e,t,n),e=e.sibling}function ku(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ku(e,t,n),e=e.sibling;null!==e;)ku(e,t,n),e=e.sibling}function Su(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var u=e,s=i,l=s;;)if(bu(u,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===s)break e;for(;null===l.sibling;){if(null===l.return||l.return===s)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(u=n,s=i.stateNode,8===u.nodeType?u.parentNode.removeChild(s):u.removeChild(s)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(bu(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Cu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Jr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,i),t=Se(e,r),i=0;i<o.length;i+=2){var u=o[i],s=o[i+1];"style"===u?xe(n,s):"dangerouslySetInnerHTML"===u?ye(n,s):"children"===u?me(n,s):w(n,u,s,t)}switch(e){case"input":ne(n,r);break;case"textarea":le(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,xt(n.containerInfo)));case 13:return null!==t.memoizedState&&(qu=Bi(),mu(t.child,!0)),void Lu(t);case 19:return void Lu(t);case 23:case 24:return void mu(t,null!==t.memoizedState)}throw Error(a(163))}function Lu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new pu),t.forEach((function(t){var r=Ws.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Tu(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Ou=Math.ceil,Pu=_.ReactCurrentDispatcher,Au=_.ReactCurrentOwner,Nu=0,Mu=null,ju=null,Ru=0,zu=0,Du=li(0),Gu=0,Iu=null,Fu=0,Uu=0,Wu=0,Bu=0,Hu=null,qu=0,Vu=1/0;function $u(){Vu=Bi()+500}var Yu,Ku=null,Qu=!1,Zu=null,Xu=null,Ju=!1,es=null,ts=90,ns=[],rs=[],is=null,os=0,as=null,us=-1,ss=0,ls=0,cs=null,fs=!1;function ds(){return 0!==(48&Nu)?Bi():-1!==us?us:us=Bi()}function hs(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Hi()?1:2;if(0===ss&&(ss=Fu),0!==Qi.transition){0!==ls&&(ls=null!==Hu?Hu.pendingLanes:0),e=ss;var t=4186112&~ls;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Hi(),0!==(4&Nu)&&98===e?e=Ft(12,ss):e=Ft(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ss),e}function ps(e,t,n){if(50<os)throw os=0,as=null,Error(a(185));if(null===(e=gs(e,t)))return null;Bt(e,t,n),e===Mu&&(Wu|=t,4===Gu&&ms(e,Ru));var r=Hi();1===t?0!==(8&Nu)&&0===(48&Nu)?bs(e):(vs(e,n),0===Nu&&($u(),Yi())):(0===(4&Nu)||98!==r&&99!==r||(null===is?is=new Set([e]):is.add(e)),vs(e,n)),Hu=e}function gs(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function vs(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes;0<u;){var s=31-Ht(u),l=1<<s,c=o[s];if(-1===c){if(0===(l&r)||0!==(l&i)){c=t,Dt(l);var f=zt;o[s]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);u&=~l}if(r=Gt(e,e===Mu?Ru:0),t=zt,0===r)null!==n&&(n!==Di&&Li(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Di&&Li(n)}15===t?(n=bs.bind(null,e),null===Ii?(Ii=[n],Fi=Ci(Ni,Ki)):Ii.push(n),n=Di):14===t?n=$i(99,bs.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=$i(n,ys.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function ys(e){if(us=-1,ls=ss=0,0!==(48&Nu))throw Error(a(327));var t=e.callbackNode;if(Rs()&&e.callbackNode!==t)return null;var n=Gt(e,e===Mu?Ru:0);if(0===n)return null;var r=n,i=Nu;Nu|=16;var o=Cs();for(Mu===e&&Ru===r||($u(),ks(e,r));;)try{Os();break}catch(s){Ss(e,s)}if(no(),Pu.current=o,Nu=i,null!==ju?r=0:(Mu=null,Ru=0,r=Gu),0!==(Fu&Wu))ks(e,0);else if(0!==r){if(2===r&&(Nu|=64,e.hydrate&&(e.hydrate=!1,$r(e.containerInfo)),0!==(n=It(e))&&(r=Ls(e,n))),1===r)throw t=Iu,ks(e,0),ms(e,n),vs(e,Bi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Ns(e);break;case 3:if(ms(e,n),(62914560&n)===n&&10<(r=qu+500-Bi())){if(0!==Gt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ds(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=qr(Ns.bind(null,e),r);break}Ns(e);break;case 4:if(ms(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var u=31-Ht(n);o=1<<u,(u=r[u])>i&&(i=u),n&=~o}if(n=i,10<(n=(120>(n=Bi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ou(n/1960))-n)){e.timeoutHandle=qr(Ns.bind(null,e),n);break}Ns(e);break;default:throw Error(a(329))}}return vs(e,Bi()),e.callbackNode===t?ys.bind(null,e):null}function ms(e,t){for(t&=~Bu,t&=~Wu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function bs(e){if(0!==(48&Nu))throw Error(a(327));if(Rs(),e===Mu&&0!==(e.expiredLanes&Ru)){var t=Ru,n=Ls(e,t);0!==(Fu&Wu)&&(n=Ls(e,t=Gt(e,t)))}else n=Ls(e,t=Gt(e,0));if(0!==e.tag&&2===n&&(Nu|=64,e.hydrate&&(e.hydrate=!1,$r(e.containerInfo)),0!==(t=It(e))&&(n=Ls(e,t))),1===n)throw n=Iu,ks(e,0),ms(e,t),vs(e,Bi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ns(e),vs(e,Bi()),null}function ws(e,t){var n=Nu;Nu|=1;try{return e(t)}finally{0===(Nu=n)&&($u(),Yi())}}function _s(e,t){var n=Nu;Nu&=-2,Nu|=8;try{return e(t)}finally{0===(Nu=n)&&($u(),Yi())}}function xs(e,t){fi(Du,zu),zu|=t,Fu|=t}function Es(){zu=Du.current,ci(Du)}function ks(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Vr(n)),null!==ju)for(n=ju.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&mi();break;case 3:Ro(),ci(pi),ci(hi),Qo();break;case 5:Do(r);break;case 4:Ro();break;case 13:case 19:ci(Go);break;case 10:ro(r);break;case 23:case 24:Es()}n=n.return}Mu=e,ju=Vs(e.current,null),Ru=zu=Fu=t,Gu=0,Iu=null,Bu=Wu=Uu=0}function Ss(e,t){for(;;){var n=ju;try{if(no(),Zo.current=Na,ra){for(var r=ea.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ra=!1}if(Jo=0,na=ta=ea=null,ia=!1,Au.current=null,null===n||null===n.return){Gu=1,Iu=t,ju=null;break}e:{var o=e,a=n.return,u=n,s=t;if(t=Ru,u.flags|=2048,u.firstEffect=u.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var l=s;if(0===(2&u.mode)){var c=u.alternate;c?(u.updateQueue=c.updateQueue,u.memoizedState=c.memoizedState,u.lanes=c.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=0!==(1&Go.current),d=a;do{var h;if(h=13===d.tag){var p=d.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var g=d.memoizedProps;h=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!f)}}if(h){var v=d.updateQueue;if(null===v){var y=new Set;y.add(l),d.updateQueue=y}else v.add(l);if(0===(2&d.mode)){if(d.flags|=64,u.flags|=16384,u.flags&=-2981,1===u.tag)if(null===u.alternate)u.tag=17;else{var m=co(-1,1);m.tag=2,fo(u,m)}u.lanes|=1;break e}s=void 0,u=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new fu,s=new Set,b.set(l,s)):void 0===(s=b.get(l))&&(s=new Set,b.set(l,s)),!s.has(u)){s.add(u);var w=Us.bind(null,o,l,u);l.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);s=Error(($(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Gu&&(Gu=2),s=lu(s,u),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,t&=-t,d.lanes|=t,ho(d,du(0,o,t));break e;case 1:o=s;var _=d.type,x=d.stateNode;if(0===(64&d.flags)&&("function"===typeof _.getDerivedStateFromError||null!==x&&"function"===typeof x.componentDidCatch&&(null===Xu||!Xu.has(x)))){d.flags|=4096,t&=-t,d.lanes|=t,ho(d,hu(d,o,t));break e}}d=d.return}while(null!==d)}As(n)}catch(E){t=E,ju===n&&null!==n&&(ju=n=n.return);continue}break}}function Cs(){var e=Pu.current;return Pu.current=Na,null===e?Na:e}function Ls(e,t){var n=Nu;Nu|=16;var r=Cs();for(Mu===e&&Ru===t||ks(e,t);;)try{Ts();break}catch(i){Ss(e,i)}if(no(),Nu=n,Pu.current=r,null!==ju)throw Error(a(261));return Mu=null,Ru=0,Gu}function Ts(){for(;null!==ju;)Ps(ju)}function Os(){for(;null!==ju&&!Ti();)Ps(ju)}function Ps(e){var t=Yu(e.alternate,e,zu);e.memoizedProps=e.pendingProps,null===t?As(e):ju=t,Au.current=null}function As(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=uu(n,t,zu)))return void(ju=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&zu)||0===(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=su(t)))return n.flags&=2047,void(ju=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(ju=t);ju=t=e}while(null!==t);0===Gu&&(Gu=5)}function Ns(e){var t=Hi();return Vi(99,Ms.bind(null,e,t)),null}function Ms(e,t){do{Rs()}while(null!==es);if(0!==(48&Nu))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var u=e.eventTimes,s=e.expirationTimes;0<o;){var l=31-Ht(o),c=1<<l;i[l]=0,u[l]=-1,s[l]=-1,o&=~c}if(null!==is&&0===(24&r)&&is.has(e)&&is.delete(e),e===Mu&&(ju=Mu=null,Ru=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Nu,Nu|=32,Au.current=null,Ur=Kt,yr(u=vr())){if("selectionStart"in u)s={start:u.selectionStart,end:u.selectionEnd};else e:if(s=(s=u.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&0!==c.rangeCount){s=c.anchorNode,o=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{s.nodeType,l.nodeType}catch(C){s=null;break e}var f=0,d=-1,h=-1,p=0,g=0,v=u,y=null;t:for(;;){for(var m;v!==s||0!==o&&3!==v.nodeType||(d=f+o),v!==l||0!==c&&3!==v.nodeType||(h=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(m=v.firstChild);)y=v,v=m;for(;;){if(v===u)break t;if(y===s&&++p===o&&(d=f),y===l&&++g===c&&(h=f),null!==(m=v.nextSibling))break;y=(v=y).parentNode}v=m}s=-1===d||-1===h?null:{start:d,end:h}}else s=null;s=s||{start:0,end:0}}else s=null;Wr={focusedElem:u,selectionRange:s},Kt=!1,cs=null,fs=!1,Ku=r;do{try{js()}catch(C){if(null===Ku)throw Error(a(330));Fs(Ku,C),Ku=Ku.nextEffect}}while(null!==Ku);cs=null,Ku=r;do{try{for(u=e;null!==Ku;){var b=Ku.flags;if(16&b&&me(Ku.stateNode,""),128&b){var w=Ku.alternate;if(null!==w){var _=w.ref;null!==_&&("function"===typeof _?_(null):_.current=null)}}switch(1038&b){case 2:xu(Ku),Ku.flags&=-3;break;case 6:xu(Ku),Ku.flags&=-3,Cu(Ku.alternate,Ku);break;case 1024:Ku.flags&=-1025;break;case 1028:Ku.flags&=-1025,Cu(Ku.alternate,Ku);break;case 4:Cu(Ku.alternate,Ku);break;case 8:Su(u,s=Ku);var x=s.alternate;wu(s),null!==x&&wu(x)}Ku=Ku.nextEffect}}catch(C){if(null===Ku)throw Error(a(330));Fs(Ku,C),Ku=Ku.nextEffect}}while(null!==Ku);if(_=Wr,w=vr(),b=_.focusedElem,u=_.selectionRange,w!==b&&b&&b.ownerDocument&&gr(b.ownerDocument.documentElement,b)){null!==u&&yr(b)&&(w=u.start,void 0===(_=u.end)&&(_=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(_,b.value.length)):(_=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(_=_.getSelection(),s=b.textContent.length,x=Math.min(u.start,s),u=void 0===u.end?x:Math.min(u.end,s),!_.extend&&x>u&&(s=u,u=x,x=s),s=pr(b,x),o=pr(b,u),s&&o&&(1!==_.rangeCount||_.anchorNode!==s.node||_.anchorOffset!==s.offset||_.focusNode!==o.node||_.focusOffset!==o.offset)&&((w=w.createRange()).setStart(s.node,s.offset),_.removeAllRanges(),x>u?(_.addRange(w),_.extend(o.node,o.offset)):(w.setEnd(o.node,o.offset),_.addRange(w))))),w=[];for(_=b;_=_.parentNode;)1===_.nodeType&&w.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<w.length;b++)(_=w[b]).element.scrollLeft=_.left,_.element.scrollTop=_.top}Kt=!!Ur,Wr=Ur=null,e.current=n,Ku=r;do{try{for(b=e;null!==Ku;){var E=Ku.flags;if(36&E&&yu(b,Ku.alternate,Ku),128&E){w=void 0;var k=Ku.ref;if(null!==k){var S=Ku.stateNode;Ku.tag,w=S,"function"===typeof k?k(w):k.current=w}}Ku=Ku.nextEffect}}catch(C){if(null===Ku)throw Error(a(330));Fs(Ku,C),Ku=Ku.nextEffect}}while(null!==Ku);Ku=null,Gi(),Nu=i}else e.current=n;if(Ju)Ju=!1,es=e,ts=t;else for(Ku=r;null!==Ku;)t=Ku.nextEffect,Ku.nextEffect=null,8&Ku.flags&&((E=Ku).sibling=null,E.stateNode=null),Ku=t;if(0===(r=e.pendingLanes)&&(Xu=null),1===r?e===as?os++:(os=0,as=e):os=0,n=n.stateNode,ki&&"function"===typeof ki.onCommitFiberRoot)try{ki.onCommitFiberRoot(Ei,n,void 0,64===(64&n.current.flags))}catch(C){}if(vs(e,Bi()),Qu)throw Qu=!1,e=Zu,Zu=null,e;return 0!==(8&Nu)||Yi(),null}function js(){for(;null!==Ku;){var e=Ku.alternate;fs||null===cs||(0!==(8&Ku.flags)?et(Ku,cs)&&(fs=!0):13===Ku.tag&&Tu(e,Ku)&&et(Ku,cs)&&(fs=!0));var t=Ku.flags;0!==(256&t)&&vu(e,Ku),0===(512&t)||Ju||(Ju=!0,$i(97,(function(){return Rs(),null}))),Ku=Ku.nextEffect}}function Rs(){if(90!==ts){var e=97<ts?97:ts;return ts=90,Vi(e,Gs)}return!1}function zs(e,t){ns.push(t,e),Ju||(Ju=!0,$i(97,(function(){return Rs(),null})))}function Ds(e,t){rs.push(t,e),Ju||(Ju=!0,$i(97,(function(){return Rs(),null})))}function Gs(){if(null===es)return!1;var e=es;if(es=null,0!==(48&Nu))throw Error(a(331));var t=Nu;Nu|=32;var n=rs;rs=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],u=i.destroy;if(i.destroy=void 0,"function"===typeof u)try{u()}catch(l){if(null===o)throw Error(a(330));Fs(o,l)}}for(n=ns,ns=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var s=i.create;i.destroy=s()}catch(l){if(null===o)throw Error(a(330));Fs(o,l)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return Nu=t,Yi(),!0}function Is(e,t,n){fo(e,t=du(0,t=lu(n,t),1)),t=ds(),null!==(e=gs(e,1))&&(Bt(e,1,t),vs(e,t))}function Fs(e,t){if(3===e.tag)Is(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Is(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Xu||!Xu.has(r))){var i=hu(n,e=lu(t,e),1);if(fo(n,i),i=ds(),null!==(n=gs(n,1)))Bt(n,1,i),vs(n,i);else if("function"===typeof r.componentDidCatch&&(null===Xu||!Xu.has(r)))try{r.componentDidCatch(t,e)}catch(o){}break}}n=n.return}}function Us(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ds(),e.pingedLanes|=e.suspendedLanes&n,Mu===e&&(Ru&n)===n&&(4===Gu||3===Gu&&(62914560&Ru)===Ru&&500>Bi()-qu?ks(e,0):Bu|=n),vs(e,t)}function Ws(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Hi()?1:2:(0===ss&&(ss=Fu),0===(t=Ut(62914560&~ss))&&(t=4194304))),n=ds(),null!==(e=gs(e,t))&&(Bt(e,t,n),vs(e,n))}function Bs(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Hs(e,t,n,r){return new Bs(e,t,n,r)}function qs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vs(e,t){var n=e.alternate;return null===n?((n=Hs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $s(e,t,n,r,i,o){var u=2;if(r=e,"function"===typeof e)qs(e)&&(u=1);else if("string"===typeof e)u=5;else e:switch(e){case k:return Ys(n.children,i,o,t);case z:u=8,i|=16;break;case S:u=8,i|=1;break;case C:return(e=Hs(12,n,t,8|i)).elementType=C,e.type=C,e.lanes=o,e;case P:return(e=Hs(13,n,t,i)).type=P,e.elementType=P,e.lanes=o,e;case A:return(e=Hs(19,n,t,i)).elementType=A,e.lanes=o,e;case D:return Ks(n,i,o,t);case G:return(e=Hs(24,n,t,i)).elementType=G,e.lanes=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case L:u=10;break e;case T:u=9;break e;case O:u=11;break e;case N:u=14;break e;case M:u=16,r=null;break e;case j:u=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Hs(u,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Ys(e,t,n,r){return(e=Hs(7,e,r,t)).lanes=n,e}function Ks(e,t,n,r){return(e=Hs(23,e,r,t)).elementType=D,e.lanes=n,e}function Qs(e,t,n){return(e=Hs(6,e,null,t)).lanes=n,e}function Zs(e,t,n){return(t=Hs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xs(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Wt(0),this.expirationTimes=Wt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wt(0),this.mutableSourceEagerHydrationData=null}function Js(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function el(e,t,n,r){var i=t.current,o=ds(),u=hs(i);e:if(n){t:{if(Qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(yi(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(a(171))}if(1===n.tag){var l=n.type;if(yi(l)){n=wi(n,l,s);break e}}n=s}else n=di;return null===t.context?t.context=n:t.pendingContext=n,(t=co(o,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),fo(i,t),ps(i,u,o),u}function tl(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rl(e,t){nl(e,t),(e=e.alternate)&&nl(e,t)}function il(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Xs(e,t,null!=n&&!0===n.hydrate),t=Hs(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,so(t),e[ei]=n.current,Nr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function ol(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function al(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var u=i;i=function(){var e=tl(a);u.call(e)}}el(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new il(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var s=i;i=function(){var e=tl(a);s.call(e)}}_s((function(){el(t,a,e,i)}))}return tl(a)}function ul(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ol(t))throw Error(a(200));return Js(e,t,null,n)}Yu=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||pi.current)Da=!0;else{if(0===(n&r)){switch(Da=!1,t.tag){case 3:$a(t),Yo();break;case 5:zo(t);break;case 1:yi(t.type)&&_i(t);break;case 4:jo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;fi(Xi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Xa(e,t,n):(fi(Go,1&Go.current),null!==(t=ou(e,t,n))?t.sibling:null);fi(Go,1&Go.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return iu(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),fi(Go,Go.current),r)break;return null;case 23:case 24:return t.lanes=0,Wa(e,t,n)}return ou(e,t,n)}Da=0!==(16384&e.flags)}else Da=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=vi(t,hi.current),oo(t,n),i=ua(null,t,r,e,i,n),t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,yi(r)){var o=!0;_i(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,so(t);var u=r.getDerivedStateFromProps;"function"===typeof u&&yo(t,r,u,e),i.updater=mo,t.stateNode=i,i._reactInternals=t,xo(t,r,e,n),t=Va(null,t,r,!0,o,n)}else t.tag=0,Ga(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"===typeof e)return qs(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===O)return 11;if(e===N)return 14}return 2}(i),e=Zi(i,e),o){case 0:t=Ha(null,t,i,e,n);break e;case 1:t=qa(null,t,i,e,n);break e;case 11:t=Ia(null,t,i,e,n);break e;case 14:t=Fa(null,t,i,Zi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ha(e,t,r,i=t.elementType===r?i:Zi(r,i),n);case 1:return r=t.type,i=t.pendingProps,qa(e,t,r,i=t.elementType===r?i:Zi(r,i),n);case 3:if($a(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,lo(e,t),po(t,r,null,n),(r=t.memoizedState.element)===i)Yo(),t=ou(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Uo=Yr(t.stateNode.containerInfo.firstChild),Fo=t,o=Wo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Ko.push(o);for(n=To(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ga(e,t,r,n),Yo();t=t.child}return t;case 5:return zo(t),null===e&&qo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,u=i.children,Hr(r,i)?u=null:null!==o&&Hr(r,o)&&(t.flags|=16),Ba(e,t),Ga(e,t,u,n),t.child;case 6:return null===e&&qo(t),null;case 13:return Xa(e,t,n);case 4:return jo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Lo(t,null,r,n):Ga(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ia(e,t,r,i=t.elementType===r?i:Zi(r,i),n);case 7:return Ga(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ga(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,u=t.memoizedProps,o=i.value;var s=t.type._context;if(fi(Xi,s._currentValue),s._currentValue=o,null!==u)if(s=u.value,0===(o=cr(s,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(u.children===i.children&&!pi.current){t=ou(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){u=s.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&o)){1===s.tag&&((c=co(-1,n&-n)).tag=2,fo(s,c)),s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),io(s.return,n),l.lanes|=n;break}c=c.next}}else u=10===s.tag&&s.type===t.type?null:s.child;if(null!==u)u.return=s;else for(u=s;null!==u;){if(u===t){u=null;break}if(null!==(s=u.sibling)){s.return=u.return,u=s;break}u=u.return}s=u}Ga(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,oo(t,n),r=r(i=ao(i,o.unstable_observedBits)),t.flags|=1,Ga(e,t,r,n),t.child;case 14:return o=Zi(i=t.type,t.pendingProps),Fa(e,t,i,o=Zi(i.type,o),r,n);case 15:return Ua(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Zi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,yi(r)?(e=!0,_i(t)):e=!1,oo(t,n),wo(t,r,i),xo(t,r,i,n),Va(null,t,r,!0,e,n);case 19:return iu(e,t,n);case 23:case 24:return Wa(e,t,n)}throw Error(a(156,t.tag))},il.prototype.render=function(e){el(e,this._internalRoot,null,null)},il.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;el(null,e,null,(function(){t[ei]=null}))},tt=function(e){13===e.tag&&(ps(e,4,ds()),rl(e,4))},nt=function(e){13===e.tag&&(ps(e,67108864,ds()),rl(e,67108864))},rt=function(e){if(13===e.tag){var t=ds(),n=hs(e);ps(e,n,t),rl(e,n)}},it=function(e,t){return t()},Le=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=oi(r);if(!i)throw Error(a(90));Z(r),ne(r,i)}}}break;case"textarea":le(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Me=ws,je=function(e,t,n,r,i){var o=Nu;Nu|=4;try{return Vi(98,e.bind(null,t,n,r,i))}finally{0===(Nu=o)&&($u(),Yi())}},Re=function(){0===(49&Nu)&&(function(){if(null!==is){var e=is;is=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,vs(e,Bi())}))}Yi()}(),Rs())},ze=function(e,t){var n=Nu;Nu|=2;try{return e(t)}finally{0===(Nu=n)&&($u(),Yi())}};var sl={Events:[ri,ii,oi,Ae,Ne,Rs,{current:!1}]},ll={findFiberByHostInstance:ni,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},cl={bundleType:ll.bundleType,version:ll.version,rendererPackageName:ll.rendererPackageName,rendererConfig:ll.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:ll.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var fl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fl.isDisabled&&fl.supportsFiber)try{Ei=fl.inject(cl),ki=fl}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl,t.createPortal=ul,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Nu;if(0!==(48&n))return e(t);Nu|=1;try{if(e)return Vi(99,e.bind(null,t))}finally{Nu=n,Yi()}},t.hydrate=function(e,t,n){if(!ol(t))throw Error(a(200));return al(null,e,t,!0,n)},t.render=function(e,t,n){if(!ol(t))throw Error(a(200));return al(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ol(e))throw Error(a(40));return!!e._reactRootContainer&&(_s((function(){al(null,null,e,!1,(function(){e._reactRootContainer=null,e[ei]=null}))})),!0)},t.unstable_batchedUpdates=ws,t.unstable_createPortal=function(e,t){return ul(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ol(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return al(e,t,n,!1,r)},t.version="17.0.2"},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},1917:function(e,t,n){"use strict";var r=n(3038).default;Object.defineProperty(t,"__esModule",{value:!0}),t.SigmaContainer=void 0;var i=n(9388),o=i.__importStar(n(2791)),a=n(2447),u=i.__importDefault(n(6095)),s=n(788),l=n(763);t.SigmaContainer=function(e){var t=e.graphOptions,n=e.id,i=e.className,c=e.style,f=e.initialSettings,d=e.children,h=o.useRef(null),p=o.useRef(null),g={className:"react-sigma-v2 ".concat(i||""),id:n,style:c},v=o.useState(null),y=r(v,2),m=y[0],b=y[1],w=o.useRef();l.isEqual(w.current,f)||(w.current=f);var _=o.useRef();l.isEqual(_.current,t)||(_.current=t),o.useEffect((function(){var e=null;return null!==p.current&&(e=new a.Sigma(new u.default(_.current),p.current,w.current),b(e)),function(){b((function(){return e&&e.kill(),null}))}}),[p,_,w]);var x=o.useMemo((function(){return m&&h.current?{sigma:m,container:h.current}:null}),[m,h.current]),E=null!==x?o.default.createElement(s.SigmaProvider,{value:x},d):null;return o.default.createElement("div",Object.assign({},g,{ref:h}),o.default.createElement("div",{className:"sigma-container",ref:p}),E)}},788:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSigmaContext=t.SigmaProvider=t.SigmaContext=void 0;var r=n(2791);t.SigmaContext=r.createContext(null),t.SigmaProvider=t.SigmaContext.Provider,t.useSigmaContext=function(){var e=r.useContext(t.SigmaContext);if(null==e)throw new Error("No context provided: useSigmaContext() can only be used in a descendant of <SigmaContainer>");return e}},7149:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlsContainer=void 0;var r=n(9388).__importDefault(n(2791));t.ControlsContainer=function(e){var t=e.id,n=e.className,i=e.style,o=e.children,a=e.position,u=void 0===a?"bottom-left":a,s={className:"react-sigma-controls ".concat(n||""," ").concat(u),id:t,style:i};return r.default.createElement("div",Object.assign({},s),o)}},4887:function(e,t,n){"use strict";var r=n(3038).default;Object.defineProperty(t,"__esModule",{value:!0}),t.ForceAtlasControl=void 0;var i=n(9388),o=i.__importStar(n(2791)),a=i.__importDefault(n(3204)),u=n(763),s=n(7375);t.ForceAtlasControl=function(e){var t=e.id,n=e.className,i=e.style,l=e.settings,c=e.autoRunFor,f=void 0===c?-1:c,d=e.customStopLayout,h=e.customStartLayout,p=s.useSigma(),g=o.useRef(null);l&&!u.isEqual(g.current,l)&&(g.current=l);var v=o.useState(null),y=r(v,2),m=y[0],b=y[1],w=o.useState(!1),_=r(w,2),x=_[0],E=_[1];o.useEffect((function(){if(p){var e=new a.default(p.getGraph(),g.current||{});b(e);var t=null;return f>-1&&p.getGraph().order>0&&(E(!0),t=f>0?window.setTimeout((function(){E(!1)}),f):null),function(){e&&e.kill(),t&&clearTimeout(t)}}}),[f,g,p]),o.useEffect((function(){try{m&&(!0===x?m.start():m.stop())}catch(e){}}),[m,x]);var k=!0===x&&!d||!1===x&&!h?"default":"",S={className:"react-sigma-control-forceatlas2 ".concat(x?"running":"stopped"," ").concat(n||""),id:t,style:i};return o.default.createElement("div",Object.assign({},S),o.default.createElement("button",{className:k,onClick:function(){return E((function(e){return!e}))},title:x?"Stop the layout animation":"Start the layout animation"},!0===x?d:h))}},2088:function(e,t,n){"use strict";var r=n(3038).default;Object.defineProperty(t,"__esModule",{value:!0}),t.FullScreenControl=void 0;var i=n(9388).__importStar(n(2791)),o=n(788);t.FullScreenControl=function(e){var t=e.id,n=e.className,a=e.style,u=e.customEnterFullScreen,s=e.customExitFullScreen,l=o.useSigmaContext().container,c=i.useState(!1),f=r(c,2),d=f[0],h=f[1],p=function(){return h((function(e){return!e}))};i.useEffect((function(){return document.addEventListener("fullscreenchange",p),function(){return document.removeEventListener("fullscreenchange",p)}}),[p]);var g=d&&!s||!d&&!u?"default":"",v={className:"react-sigma-control-".concat(d?"normalscreen":"fullscreen"," ").concat(n||""),id:t,style:a};return document.fullscreenEnabled?i.default.createElement("div",Object.assign({},v),i.default.createElement("button",{className:g,onClick:function(){return e=l,void(document.fullscreenElement!==e?e.requestFullscreen():document.exitFullscreen&&document.exitFullscreen());var e},title:"Toggle Fullscreen"},d?s:u)):null}},2024:function(e,t,n){"use strict";var r=n(3038).default;Object.defineProperty(t,"__esModule",{value:!0}),t.SearchControl=void 0;var i=n(9388).__importStar(n(2791)),o=n(7375);t.SearchControl=function(e){var t=e.id,n=e.className,a=e.style,u=o.useSigma(),s=i.useState(""),l=r(s,2),c=l[0],f=l[1],d=i.useState([]),h=r(d,2),p=h[0],g=h[1],v=i.useState(null),y=r(v,2),m=y[0],b=y[1];i.useEffect((function(){var e=[];!m&&c.length>1&&u.getGraph().forEachNode((function(t,n){n.label&&n.label.toLowerCase().includes(c.toLowerCase())&&e.push({id:t,label:n.label})})),g(e)}),[c]),i.useEffect((function(){if(m){u.getGraph().setNodeAttribute(m,"highlighted",!0);var e=u.getNodeDisplayData(m);return e&&u.getCamera().animate(e,{easing:"linear",duration:500}),function(){u.getGraph().setNodeAttribute(m,"highlighted",!1)}}}),[m]);var w={className:"react-sigma-search ".concat(n||""),id:t,style:a};return i.default.createElement("div",Object.assign({},w),i.default.createElement("input",{type:"text",placeholder:"Search...",list:"nodes",value:c,onChange:function(e){var t=e.target.value,n=p.find((function(e){return e.label===t}));n?(f(n.label),g([]),b(n.id)):(b(null),f(t))}}),i.default.createElement("datalist",{id:"nodes"},p.map((function(e){return i.default.createElement("option",{key:e.id,value:e.label},e.label)}))))}},1887:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZoomControl=void 0;var r=n(9388).__importDefault(n(2791)),i=n(7375);t.ZoomControl=function(e){var t=e.className,n=e.style,o=e.animationDuration,a=void 0===o?200:o,u=e.customZoomIn,s=e.customZoomOut,l=e.customZoomCenter,c=i.useSigma();function f(e){c&&(e?e>0?c.getCamera().animatedZoom({duration:a,factor:1.5}):e<0&&c.getCamera().animatedUnzoom({duration:a,factor:1.5}):c.getCamera().animatedReset({duration:a}))}var d={className:t,style:n};return r.default.createElement(r.default.Fragment,null,r.default.createElement("div",Object.assign({},d,{className:"react-sigma-control-zoom-in ".concat(t||"")}),r.default.createElement("button",{className:u?"":"default",onClick:function(){return f(1)},title:"Zoom In"},u)),r.default.createElement("div",Object.assign({},d,{className:"react-sigma-control-zoom-out ".concat(t||"")}),r.default.createElement("button",{className:s?"":"default",onClick:function(){return f(-1)},title:"Zoom Out"},s)),r.default.createElement("div",Object.assign({},d,{className:"react-sigma-control-zoom-center ".concat(t||"")}),r.default.createElement("button",{className:l?"":"default",onClick:function(){return f()},title:"See whole graph"},l)))}},110:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useLoadGraph=void 0;var r=n(2791),i=n(7375);t.useLoadGraph=function(){var e=i.useSigma();return r.useCallback((function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&t&&(n&&e.getGraph().order>0&&e.getGraph().clear(),e.getGraph().import(t),e.refresh())}),[e])}},832:function(e,t,n){"use strict";var r=n(3038).default;Object.defineProperty(t,"__esModule",{value:!0}),t.useRegisterEvents=void 0;var i=n(2791),o=n(7375),a=n(3189),u=["clickNode","rightClickNode","downNode","enterNode","leaveNode","doubleClickNode","wheelNode","clickEdge","rightClickEdge","downEdge","enterEdge","leaveEdge","doubleClickEdge","wheelEdge","clickStage","rightClickStage","downStage","doubleClickStage","wheelStage","kill"],s=["click","rightClick","mouseup","mousedown","mousemove","doubleClick","wheel"],l=["mouseup","mousedown","mousemove"],c=["cameraUpdated"];t.useRegisterEvents=function(){var e=o.useSigma(),t=a.useSetSettings(),n=i.useState({}),f=r(n,2),d=f[0],h=f[1];return i.useEffect((function(){if(e&&d){var n=Object.keys(d),r={},i={},o=e.getSettings();return n.some((function(e){return["clickEdge","rightClickEdge","doubleClickEdge","downEdge"].includes(e)}))&&!1===o.enableEdgeClickEvents&&(r.enableEdgeClickEvents=!0,i.enableEdgeClickEvents=!1),n.some((function(e){return["enterEdge","leaveEdge"].includes(e)}))&&!1===o.enableEdgeHoverEvents&&(r.enableEdgeHoverEvents=!0,i.enableEdgeHoverEvents=!1),n.some((function(e){return["wheelEdge"].includes(e)}))&&!1===o.enableEdgeWheelEvents&&(r.enableEdgeWheelEvents=!0,i.enableEdgeWheelEvents=!1),Object.keys(r).length>0&&t(r),n.forEach((function(t){var n=d[t];u.includes(t)&&e.on(t,n),s.includes(t)&&e.getMouseCaptor().on(t,n),l.includes(t)&&e.getTouchCaptor().on(t,n),c.includes(t)&&e.getCamera().on("updated",n)})),function(){var n;for(n in Object.keys(i).length>0&&t(i),d){var r=d[n];u.includes(n)&&e.removeListener(n,r),s.includes(n)&&e.getMouseCaptor().removeListener(n,r),l.includes(n)&&e.getTouchCaptor().removeListener(n,r),c.includes(n)&&e.getCamera().removeListener("updated",r)}}}}),[e,d,t]),h}},3189:function(e,t,n){"use strict";var r=n(3038).default;Object.defineProperty(t,"__esModule",{value:!0}),t.useSetSettings=void 0;var i=n(2791),o=n(7375);t.useSetSettings=function(){var e=o.useSigma(),t=i.useState({}),n=r(t,2),a=n[0],u=n[1];return i.useEffect((function(){if(e&&a){var t={};return Object.keys(a).forEach((function(n){t[n]=a[n],e.setSetting(n,a[n])})),function(){Object.keys(t).forEach((function(n){e.setSetting(n,t[n])}))}}}),[e,a]),u}},7375:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSigma=void 0;var r=n(788);t.useSigma=function(){return r.useSigmaContext().sigma}},6622:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9388);r.__exportStar(n(1917),t),r.__exportStar(n(7375),t),r.__exportStar(n(832),t),r.__exportStar(n(110),t),r.__exportStar(n(3189),t),r.__exportStar(n(7149),t),r.__exportStar(n(4887),t),r.__exportStar(n(1887),t),r.__exportStar(n(2088),t),r.__exportStar(n(2024),t),r.__exportStar(n(7279),t)},7279:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6374:function(e,t,n){"use strict";n(1725);var r=n(2791),i=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,o={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)u.call(t,r)&&!s.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:o,_owner:a.current}}t.jsx=l,t.jsxs=l},9117:function(e,t,n){"use strict";var r=n(1725),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,u=60110,s=60112;t.Suspense=60113;var l=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),u=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),l=f("react.memo"),c=f("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function y(){}function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var b=m.prototype=new y;b.constructor=m,r(b,v.prototype),b.isPureReactComponent=!0;var w={current:null},_=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,o={},a=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,r)&&!x.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:i,type:e,key:a,ref:u,props:o,_owner:w.current}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function C(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function L(e,t,n,r,a){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case o:s=!0}}if(s)return a=a(s=e),e=""===r?"."+C(s,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),L(a,t,n,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(S,"$&/")+"/")+e)),t.push(a)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=r+C(u=e[l],l);s+=L(u,t,n,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),l=0;!(u=e.next()).done;)s+=L(u=u.value,t,n,c=r+C(u,l++),a);else if("object"===u)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function T(e,t,n){if(null==e)return e;var r=[],i=0;return L(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function O(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var P={current:null};function A(){var e=P.current;if(null===e)throw Error(h(321));return e}var N={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error(h(143));return e}},t.Component=v,t.PureComponent=m,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(h(267,e));var o=r({},e.props),a=e.key,u=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,s=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)_.call(t,c)&&!x.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];o.children=l}return{$$typeof:i,type:e.type,key:a,ref:u,props:o,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return A().useCallback(e,t)},t.useContext=function(e,t){return A().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return A().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return A().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return A().useLayoutEffect(e,t)},t.useMemo=function(e,t){return A().useMemo(e,t)},t.useReducer=function(e,t,n){return A().useReducer(e,t,n)},t.useRef=function(e){return A().useRef(e)},t.useState=function(e){return A().useState(e)},t.version="17.0.2"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},6813:function(e,t){"use strict";var n,r,i,o;if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var l=null,c=null,f=function e(){if(null!==l)try{var n=t.unstable_now();l(!0,n),l=null}catch(r){throw setTimeout(e,0),r}};n=function(e){null!==l?setTimeout(n,0,e):(l=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,h=window.clearTimeout;if("undefined"!==typeof console){var p=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof p&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,v=null,y=-1,m=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):m=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,_=w.port2;w.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();b=e+m;try{v(!0,e)?_.postMessage(null):(g=!1,v=null)}catch(n){throw _.postMessage(null),n}}else g=!1},n=function(e){v=e,g||(g=!0,_.postMessage(null))},r=function(e,n){y=d((function(){e(t.unstable_now())}),n)},i=function(){h(y),y=-1}}function x(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<S(i,t)))break e;e[r]=t,e[n]=i,n=r}}function E(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],u=o+1,s=e[u];if(void 0!==a&&0>S(a,n))void 0!==s&&0>S(s,a)?(e[r]=s,e[u]=n,r=u):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>S(s,n)))break e;e[r]=s,e[u]=n,r=u}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],L=[],T=1,O=null,P=3,A=!1,N=!1,M=!1;function j(e){for(var t=E(L);null!==t;){if(null===t.callback)k(L);else{if(!(t.startTime<=e))break;k(L),t.sortIndex=t.expirationTime,x(C,t)}t=E(L)}}function R(e){if(M=!1,j(e),!N)if(null!==E(C))N=!0,n(z);else{var t=E(L);null!==t&&r(R,t.startTime-e)}}function z(e,n){N=!1,M&&(M=!1,i()),A=!0;var o=P;try{for(j(n),O=E(C);null!==O&&(!(O.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=O.callback;if("function"===typeof a){O.callback=null,P=O.priorityLevel;var u=a(O.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?O.callback=u:O===E(C)&&k(C),j(n)}else k(C);O=E(C)}if(null!==O)var s=!0;else{var l=E(L);null!==l&&r(R,l.startTime-n),s=!1}return s}finally{O=null,P=o,A=!1}}var D=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||A||(N=!0,n(z))},t.unstable_getCurrentPriorityLevel=function(){return P},t.unstable_getFirstCallbackNode=function(){return E(C)},t.unstable_next=function(e){switch(P){case 1:case 2:case 3:var t=3;break;default:t=P}var n=P;P=t;try{return e()}finally{P=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=D,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=P;P=e;try{return t()}finally{P=n}},t.unstable_scheduleCallback=function(e,o,a){var u=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?u+a:u:a=u,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:T++,callback:o,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>u?(e.sortIndex=a,x(L,e),null===E(C)&&e===E(L)&&(M?i():M=!0,r(R,a-u))):(e.sortIndex=s,x(C,e),N||A||(N=!0,n(z))),e},t.unstable_wrapCallback=function(e){var t=P;return function(){var n=P;P=t;try{return e.apply(this,arguments)}finally{P=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},9672:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(7465),a=n(157),u=i(n(4498)),s=n(6045),l=1.5,c=function(e){function t(){var t=e.call(this)||this;return t.x=.5,t.y=.5,t.angle=0,t.ratio=1,t.nextFrame=null,t.previousState=null,t.enabled=!0,t.previousState=t.getState(),t}return r(t,e),t.from=function(e){return(new t).setState(e)},t.prototype.enable=function(){return this.enabled=!0,this},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.getState=function(){return{x:this.x,y:this.y,angle:this.angle,ratio:this.ratio}},t.prototype.hasState=function(e){return this.x===e.x&&this.y===e.y&&this.ratio===e.ratio&&this.angle===e.angle},t.prototype.getPreviousState=function(){var e=this.previousState;return e?{x:e.x,y:e.y,angle:e.angle,ratio:e.ratio}:null},t.prototype.isAnimated=function(){return!!this.nextFrame},t.prototype.setState=function(e){return this.enabled?(this.previousState=this.getState(),"number"===typeof e.x&&(this.x=e.x),"number"===typeof e.y&&(this.y=e.y),"number"===typeof e.angle&&(this.angle=e.angle),"number"===typeof e.ratio&&(this.ratio=e.ratio),this.hasState(this.previousState)||this.emit("updated",this.getState()),this):this},t.prototype.animate=function(e,t,n){var r=this;if(this.enabled){var i=Object.assign({},a.ANIMATE_DEFAULTS,t),o="function"===typeof i.easing?i.easing:u.default[i.easing],l=Date.now(),c=this.getState(),f=function t(){var n=(Date.now()-l)/i.duration;if(n>=1)return r.nextFrame=null,r.setState(e),void(r.animationCallback&&(r.animationCallback.call(null),r.animationCallback=void 0));var a=o(n),u={};e.x&&(u.x=c.x+(e.x-c.x)*a),e.y&&(u.y=c.y+(e.y-c.y)*a),e.angle&&(u.angle=c.angle+(e.angle-c.angle)*a),e.ratio&&(u.ratio=c.ratio+(e.ratio-c.ratio)*a),r.setState(u),r.nextFrame=(0,s.requestFrame)(t)};this.nextFrame?((0,s.cancelFrame)(this.nextFrame),this.animationCallback&&this.animationCallback.call(null),this.nextFrame=(0,s.requestFrame)(f)):f(),this.animationCallback=n}},t.prototype.animatedZoom=function(e){if(e){if("number"===typeof e)return this.animate({ratio:this.ratio/e});this.animate({ratio:this.ratio/(e.factor||l)},e)}else this.animate({ratio:this.ratio/l})},t.prototype.animatedUnzoom=function(e){if(e){if("number"===typeof e)return this.animate({ratio:this.ratio*e});this.animate({ratio:this.ratio*(e.factor||l)},e)}else this.animate({ratio:this.ratio*l})},t.prototype.animatedReset=function(e){this.animate({x:.5,y:.5,ratio:1,angle:0},e)},t.prototype.copy=function(){return t.from(this.getState())},t}(o.EventEmitter);t.default=c},5381:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getWheelDelta=t.getTouchCoords=t.getTouchesArray=t.getWheelCoords=t.getMouseCoords=t.getPosition=void 0;var o=n(7465);function a(e,t){var n=t.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}}function u(e,t){return i(i({},a(e,t)),{clientX:e.clientX,clientY:e.clientY,ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,shiftKey:e.shiftKey,sigmaDefaultPrevented:!1,preventSigmaDefault:function(){this.sigmaDefaultPrevented=!0},original:e})}t.getPosition=a,t.getMouseCoords=u,t.getWheelCoords=function(e,t){return i(i({},u(e,t)),{deltaY:e.deltaY,delta:l(e)})};function s(e){for(var t=[],n=0,r=Math.min(e.length,2);n<r;n++)t.push(e[n]);return t}function l(e){if("undefined"!==typeof e.deltaY)return-3*e.deltaY/360;if("undefined"!==typeof e.detail)return e.detail/-9;throw new Error("Captor: could not extract delta from event.")}t.getTouchesArray=s,t.getTouchCoords=function(e,t){return{touches:s(e.touches).map((function(e){return a(e,t)})),ctrlKey:e.ctrlKey,metaKey:e.metaKey,altKey:e.altKey,shiftKey:e.shiftKey,preventDefault:e.preventDefault.bind(e),original:e}},t.getWheelDelta=l;var c=function(e){function t(t,n){var r=e.call(this)||this;return r.container=t,r.renderer=n,r}return r(t,e),t}(o.EventEmitter);t.default=c},7100:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var u=a(n(5381)),s=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.draggedEvents=0,r.downStartTime=null,r.lastMouseX=null,r.lastMouseY=null,r.isMouseDown=!1,r.isMoving=!1,r.movingTimeout=null,r.startCameraState=null,r.clicks=0,r.doubleClickTimeout=null,r.currentWheelDirection=0,r.handleClick=r.handleClick.bind(r),r.handleRightClick=r.handleRightClick.bind(r),r.handleDown=r.handleDown.bind(r),r.handleUp=r.handleUp.bind(r),r.handleMove=r.handleMove.bind(r),r.handleWheel=r.handleWheel.bind(r),r.handleOut=r.handleOut.bind(r),t.addEventListener("click",r.handleClick,!1),t.addEventListener("contextmenu",r.handleRightClick,!1),t.addEventListener("mousedown",r.handleDown,!1),t.addEventListener("wheel",r.handleWheel,!1),t.addEventListener("mouseout",r.handleOut,!1),document.addEventListener("mousemove",r.handleMove,!1),document.addEventListener("mouseup",r.handleUp,!1),r}return r(t,e),t.prototype.kill=function(){var e=this.container;e.removeEventListener("click",this.handleClick),e.removeEventListener("contextmenu",this.handleRightClick),e.removeEventListener("mousedown",this.handleDown),e.removeEventListener("wheel",this.handleWheel),e.removeEventListener("mouseout",this.handleOut),document.removeEventListener("mousemove",this.handleMove),document.removeEventListener("mouseup",this.handleUp)},t.prototype.handleClick=function(e){var t=this;if(this.enabled){if(this.clicks++,2===this.clicks)return this.clicks=0,"number"===typeof this.doubleClickTimeout&&(clearTimeout(this.doubleClickTimeout),this.doubleClickTimeout=null),this.handleDoubleClick(e);setTimeout((function(){t.clicks=0,t.doubleClickTimeout=null}),300),this.draggedEvents<3&&this.emit("click",(0,u.getMouseCoords)(e,this.container))}},t.prototype.handleRightClick=function(e){this.enabled&&this.emit("rightClick",(0,u.getMouseCoords)(e,this.container))},t.prototype.handleDoubleClick=function(e){if(this.enabled){e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation();var t=(0,u.getMouseCoords)(e,this.container);if(this.emit("doubleClick",t),t.sigmaDefaultPrevented)return!1;var n=this.renderer.getCamera(),r=n.getState().ratio/2.2;return n.animate(this.renderer.getViewportZoomedState((0,u.getPosition)(e,this.container),r),{easing:"quadraticInOut",duration:200}),!1}},t.prototype.handleDown=function(e){if(this.enabled){this.startCameraState=this.renderer.getCamera().getState();var t=(0,u.getPosition)(e,this.container),n=t.x,r=t.y;this.lastMouseX=n,this.lastMouseY=r,this.draggedEvents=0,this.downStartTime=Date.now(),e.which,this.isMouseDown=!0,this.emit("mousedown",(0,u.getMouseCoords)(e,this.container))}},t.prototype.handleUp=function(e){var t=this;if(this.enabled&&this.isMouseDown){var n=this.renderer.getCamera();this.isMouseDown=!1,"number"===typeof this.movingTimeout&&(clearTimeout(this.movingTimeout),this.movingTimeout=null);var r=(0,u.getPosition)(e,this.container),i=r.x,o=r.y,a=n.getState(),s=n.getPreviousState()||{x:0,y:0};this.isMoving?n.animate({x:a.x+3*(a.x-s.x),y:a.y+3*(a.y-s.y)},{duration:200,easing:"quadraticOut"}):this.lastMouseX===i&&this.lastMouseY===o||n.setState({x:a.x,y:a.y}),this.isMoving=!1,setTimeout((function(){t.draggedEvents=0,t.renderer.refresh()}),0),this.emit("mouseup",(0,u.getMouseCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t=this;if(this.enabled){var n=(0,u.getMouseCoords)(e,this.container);if(this.emit("mousemovebody",n),e.target===this.container&&(this.emit("mousemove",n),this.isMouseDown)){this.isMoving=!0,this.draggedEvents++,"number"===typeof this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){t.movingTimeout=null,t.isMoving=!1}),100);var r=this.renderer.getCamera(),i=(0,u.getPosition)(e,this.container),o=i.x,a=i.y,s=this.renderer.viewportToFramedGraph({x:this.lastMouseX,y:this.lastMouseY}),l=this.renderer.viewportToFramedGraph({x:o,y:a}),c=s.x-l.x,f=s.y-l.y,d=r.getState(),h=d.x+c,p=d.y+f;return r.setState({x:h,y:p}),this.lastMouseX=o,this.lastMouseY=a,e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation(),!1}}},t.prototype.handleWheel=function(e){var t=this;if(!this.enabled)return!1;e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation();var n=(0,u.getWheelDelta)(e);if(!n)return!1;var r=(0,u.getWheelCoords)(e,this.container);if(this.emit("wheel",r),r.sigmaDefaultPrevented)return!1;var i=n>0?1/1.7:1.7,o=this.renderer.getCamera(),a=o.getState().ratio*i,s=n>0?1:-1,l=Date.now();return this.currentWheelDirection===s&&this.lastWheelTriggerTime&&l-this.lastWheelTriggerTime<50||(o.animate(this.renderer.getViewportZoomedState((0,u.getPosition)(e,this.container),a),{easing:"quadraticOut",duration:250},(function(){t.currentWheelDirection=0})),this.currentWheelDirection=s,this.lastWheelTriggerTime=l),!1},t.prototype.handleOut=function(){},t}(u.default);t.default=s},2066:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},u=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(5381)),l=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.enabled=!0,r.isMoving=!1,r.touchMode=0,r.handleStart=r.handleStart.bind(r),r.handleLeave=r.handleLeave.bind(r),r.handleMove=r.handleMove.bind(r),t.addEventListener("touchstart",r.handleStart,!1),t.addEventListener("touchend",r.handleLeave,!1),t.addEventListener("touchcancel",r.handleLeave,!1),t.addEventListener("touchmove",r.handleMove,!1),r}return r(t,e),t.prototype.kill=function(){var e=this.container;e.removeEventListener("touchstart",this.handleStart),e.removeEventListener("touchend",this.handleLeave),e.removeEventListener("touchcancel",this.handleLeave),e.removeEventListener("touchmove",this.handleMove)},t.prototype.getDimensions=function(){return{width:this.container.offsetWidth,height:this.container.offsetHeight}},t.prototype.dispatchRelatedMouseEvent=function(e,t,n,r){var i=n||(0,s.getPosition)(t.touches[0],this.container),o=new MouseEvent(e,{clientX:i.x,clientY:i.y,altKey:t.altKey,ctrlKey:t.ctrlKey});(r||this.container).dispatchEvent(o)},t.prototype.handleStart=function(e){var t=this;if(this.enabled){e.preventDefault(),1===e.touches.length&&this.dispatchRelatedMouseEvent("mousedown",e);var n=(0,s.getTouchesArray)(e.touches);if(this.isMoving=!0,this.touchMode=n.length,this.startCameraState=this.renderer.getCamera().getState(),this.startTouchesPositions=n.map((function(e){return(0,s.getPosition)(e,t.container)})),this.lastTouchesPositions=this.startTouchesPositions,2===this.touchMode){var r=u(this.startTouchesPositions,2),i=r[0],o=i.x,a=i.y,l=r[1],c=l.x,f=l.y;this.startTouchesAngle=Math.atan2(f-a,c-o),this.startTouchesDistance=Math.sqrt(Math.pow(c-o,2)+Math.pow(f-a,2))}this.emit("touchdown",(0,s.getTouchCoords)(e,this.container))}},t.prototype.handleLeave=function(e){if(this.enabled){switch(e.preventDefault(),0===e.touches.length&&this.lastTouchesPositions&&this.lastTouchesPositions.length&&(this.dispatchRelatedMouseEvent("mouseup",e,this.lastTouchesPositions[0],document),this.dispatchRelatedMouseEvent("click",e,this.lastTouchesPositions[0])),this.movingTimeout&&(this.isMoving=!1,clearTimeout(this.movingTimeout)),this.touchMode){case 2:if(1===e.touches.length){this.handleStart(e),e.preventDefault();break}case 1:if(this.isMoving){var t=this.renderer.getCamera(),n=t.getState(),r=t.getPreviousState()||{x:0,y:0};t.animate({x:n.x+3*(n.x-r.x),y:n.y+3*(n.y-r.y)},{duration:200,easing:"quadraticOut"})}this.isMoving=!1,this.touchMode=0}this.emit("touchup",(0,s.getTouchCoords)(e,this.container))}},t.prototype.handleMove=function(e){var t,n=this;if(this.enabled){e.preventDefault(),1===e.touches.length&&this.dispatchRelatedMouseEvent("mousemove",e);var r=this.startCameraState,i=(0,s.getTouchesArray)(e.touches).map((function(e){return(0,s.getPosition)(e,n.container)}));switch(this.lastTouchesPositions=i,this.isMoving=!0,this.movingTimeout&&clearTimeout(this.movingTimeout),this.movingTimeout=window.setTimeout((function(){n.isMoving=!1}),200),this.touchMode){case 1:var o=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0]),a=o.x,l=o.y,c=this.renderer.viewportToFramedGraph(i[0]),f=c.x,d=c.y;this.renderer.getCamera().setState({x:r.x+a-f,y:r.y+l-d});break;case 2:var h={},p=i[0],g=p.x,v=p.y,y=i[1],m=y.x,b=y.y,w=Math.atan2(b-v,m-g)-this.startTouchesAngle,_=Math.hypot(b-v,m-g)/this.startTouchesDistance;h.ratio=r.ratio/_,h.angle=r.angle+w;var x=this.getDimensions(),E=this.renderer.viewportToFramedGraph((this.startTouchesPositions||[])[0],{cameraState:r}),k=Math.min(x.width,x.height),S=k/x.width,C=k/x.height,L=h.ratio/k;d=v-k/2/C;f=(t=u([(f=g-k/2/S)*Math.cos(-h.angle)-d*Math.sin(-h.angle),d*Math.cos(-h.angle)+f*Math.sin(-h.angle)],2))[0],d=t[1],h.x=E.x-f*L,h.y=E.y+d*L,this.renderer.getCamera().setState(h)}this.emit("touchmove",(0,s.getTouchCoords)(e,this.container))}},t}(s.default);t.default=l},3619:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.edgeLabelsToDisplayFromNodes=t.LabelGrid=void 0;var n=function(){function e(e,t){this.key=e,this.size=t}return e.compare=function(e,t){return e.size>t.size?-1:e.size<t.size||e.key>t.key?1:-1},e}(),r=function(){function e(){this.width=0,this.height=0,this.cellSize=0,this.columns=0,this.rows=0,this.cells={}}return e.prototype.resizeAndClear=function(e,t){this.width=e.width,this.height=e.height,this.cellSize=t,this.columns=Math.ceil(e.width/t),this.rows=Math.ceil(e.height/t),this.cells={}},e.prototype.getIndex=function(e){var t=Math.floor(e.x/this.cellSize),n=Math.floor(e.y/this.cellSize);return t*this.columns+n},e.prototype.add=function(e,t,r){var i=new n(e,t),o=this.getIndex(r),a=this.cells[o];a||(a=[],this.cells[o]=a),a.push(i)},e.prototype.organize=function(){for(var e in this.cells){this.cells[e].sort(n.compare)}},e.prototype.getLabelsToDisplay=function(e,t){var n=this.cellSize*this.cellSize,r=n/e/e*t/n,i=Math.ceil(r),o=[];for(var a in this.cells)for(var u=this.cells[a],s=0;s<Math.min(i,u.length);s++)o.push(u[s].key);return o},e}();t.LabelGrid=r,t.edgeLabelsToDisplayFromNodes=function(e){var t=e.graph,n=e.hoveredNode,r=e.highlightedNodes,i=e.displayedNodeLabels,o=[];return t.forEachEdge((function(e,t,a,u){(a===n||u===n||r.has(a)||r.has(u)||i.has(a)&&i.has(u))&&o.push(e)})),o}},7787:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.rectangleCollidesWithQuad=t.squareCollidesWithQuad=t.getCircumscribedAlignedRectangle=t.isRectangleAligned=void 0;var a=o(n(4196)),u=!1;function s(e){return e.x1===e.x2||e.y1===e.y2}function l(e){var t=Math.sqrt(Math.pow(e.x2-e.x1,2)+Math.pow(e.y2-e.y1,2)),n=(e.y1-e.y2)*e.height/t,r=(e.x2-e.x1)*e.height/t,i={x:e.x1,y:e.y1},o={x:e.x2,y:e.y2},a={x:e.x1+n,y:e.y1+r},u={x:e.x2+n,y:e.y2+r},s=Math.min(i.x,o.x,a.x,u.x),l=Math.max(i.x,o.x,a.x,u.x),c=Math.min(i.y,o.y,a.y,u.y);return{x1:s,y1:c,x2:l,y2:c,height:Math.max(i.y,o.y,a.y,u.y)-c}}function c(e,t,n,r,i,o,a){return e<r+o&&e+n>r&&t<i+a&&t+n>i}function f(e,t,n,r,i,o,a,u){return e<i+a&&e+n>i&&t<o+u&&t+r>o}function d(e,t,n,r,i,o){var a=e<n+i/2;return t<r+o/2?a?1:2:a?3:4}t.isRectangleAligned=s,t.getCircumscribedAlignedRectangle=l,t.squareCollidesWithQuad=c,t.rectangleCollidesWithQuad=f;var h=function(){function e(e){var t;void 0===e&&(e={}),this.containers=((t={}).outside=[],t),this.cache=null,this.lastRectangle=null;var n=Math.pow(4,5);this.data=new Float32Array((4*n-1)/3*4),e.boundaries?this.resize(e.boundaries):this.resize({x:0,y:0,width:1,height:1})}return e.prototype.add=function(e,t,n,r){return function(e,t,n,r,i,o,a){for(var s=i-a,l=o-a,f=2*a,d=0,h=0;;){if(d>=e)return n[h]=n[h]||[],void n[h].push(r);var p=4*h+4,g=4*h+8,v=4*h+12,y=4*h+16,m=c(s,l,f,t[p+0],t[p+1],t[p+2],t[p+3]),b=c(s,l,f,t[g+0],t[g+1],t[g+2],t[g+3]),w=c(s,l,f,t[v+0],t[v+1],t[v+2],t[v+3]),_=c(s,l,f,t[y+0],t[y+1],t[y+2],t[y+3]),x=[m,b,w,_].reduce((function(e,t){return t?e+1:e}),0);if(0===x&&0===d)return n.outside.push(r),void(!u&&n.outside.length>=5&&(u=!0,console.warn("sigma/quadtree.insertNode: At least 5 nodes are outside the global quadtree zone. You might have a problem with the normalization function or the custom bounding box.")));if(0===x)throw new Error("sigma/quadtree.insertNode: no collision (level: "+d+", key: "+r+", x: "+i+", y: "+o+", size: "+a+").");if(3===x)throw new Error("sigma/quadtree.insertNode: 3 impossible collisions (level: "+d+", key: "+r+", x: "+i+", y: "+o+", size: "+a+").");if(x>1)return n[h]=n[h]||[],void n[h].push(r);d++,m&&(h=p),b&&(h=g),w&&(h=v),_&&(h=y)}}(5,this.data,this.containers,e,t,n,r),this},e.prototype.resize=function(e){this.clear(),this.data[0]=e.x,this.data[1]=e.y,this.data[2]=e.width,this.data[3]=e.height,function(e,t){for(var n=[0,0];n.length;){var r=n.pop(),i=n.pop(),o=4*i+4,a=4*i+8,u=4*i+12,s=4*i+16,l=t[i+0],c=t[i+1],f=t[i+2]/2,d=t[i+3]/2;t[o+0]=l,t[o+1]=c,t[o+2]=f,t[o+3]=d,t[a+0]=l+f,t[a+1]=c,t[a+2]=f,t[a+3]=d,t[u+0]=l,t[u+1]=c+d,t[u+2]=f,t[u+3]=d,t[s+0]=l+f,t[s+1]=c+d,t[s+2]=f,t[s+3]=d,r<e-1&&(n.push(s,r+1),n.push(u,r+1),n.push(a,r+1),n.push(o,r+1))}}(5,this.data)},e.prototype.clear=function(){var e;return this.containers=((e={}).outside=[],e),this},e.prototype.point=function(e,t){var n=this.containers.outside,o=0,a=0;do{this.containers[o]&&n.push.apply(n,i([],r(this.containers[o]),!1)),o=4*o+4*d(e,t,this.data[o+0],this.data[o+1],this.data[o+2],this.data[o+3]),a++}while(a<=5);return n},e.prototype.rectangle=function(e,t,n,o,u){var c,d=this.lastRectangle;return d&&e===d.x1&&n===d.x2&&t===d.y1&&o===d.y2&&u===d.height||(this.lastRectangle={x1:e,y1:t,x2:n,y2:o,height:u},s(this.lastRectangle)||(this.lastRectangle=l(this.lastRectangle)),this.cache=function(e,t,n,r,i,o,u){for(var s,l=[0,0],c=[];l.length;){var d=l.pop(),h=l.pop();if((s=n[h])&&(0,a.default)(c,s),!(d>=e)){var p=4*h+4,g=4*h+8,v=4*h+12,y=4*h+16,m=f(r,i,o,u,t[p+0],t[p+1],t[p+2],t[p+3]),b=f(r,i,o,u,t[g+0],t[g+1],t[g+2],t[g+3]),w=f(r,i,o,u,t[v+0],t[v+1],t[v+2],t[v+3]),_=f(r,i,o,u,t[y+0],t[y+1],t[y+2],t[y+3]);m&&l.push(p,d+1),b&&l.push(g,d+1),w&&l.push(v,d+1),_&&l.push(y,d+1)}}return c}(5,this.data,this.containers,e,t,Math.abs(e-n)||Math.abs(t-o),u),(c=this.cache).push.apply(c,i([],r(this.containers.outside),!1))),this.cache},e}();t.default=h},2447:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Sigma=t.MouseCaptor=t.QuadTree=t.Camera=void 0;var i=r(n(554));t.Sigma=i.default;var o=r(n(9672));t.Camera=o.default;var a=r(n(7787));t.QuadTree=a.default;var u=r(n(7100));t.MouseCaptor=u.default,t.default=i.default},1889:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){var o=i.edgeLabelSize,a=i.edgeLabelFont,u=i.edgeLabelWeight,s=i.edgeLabelColor.attribute?t[i.edgeLabelColor.attribute]||i.edgeLabelColor.color||"#000":i.edgeLabelColor.color,l=t.label;if(l){e.fillStyle=s,e.font=u+" "+o+"px "+a;var c,f,d=n.size,h=r.size,p=n.x,g=n.y,v=r.x,y=r.y,m=v-p,b=y-g,w=Math.sqrt(m*m+b*b);if(!(w<d+h)){c=((p+=m*d/w)+(v-=m*h/w))/2,f=((g+=b*d/w)+(y-=b*h/w))/2,m=v-p,b=y-g,w=Math.sqrt(m*m+b*b);var _,x=e.measureText(l).width;if(x>w){for(l+="\u2026",x=e.measureText(l).width;x>w&&l.length>1;)l=l.slice(0,-2)+"\u2026",x=e.measureText(l).width;if(l.length<4)return}_=m>0?b>0?Math.acos(m/w):Math.asin(b/w):b>0?Math.acos(m/w)+Math.PI:Math.asin(m/w)+Math.PI/2,e.save(),e.translate(c,f),e.rotate(_),e.fillText(l,-x/2,t.size/2+o),e.restore()}}}},2300:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(5604));t.default=function(e,t,n){var r=n.labelSize,o=n.labelFont,a=n.labelWeight;if(e.font=a+" "+r+"px "+o,e.fillStyle="#FFF",e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=8,e.shadowColor="#000","string"===typeof t.label){var u=e.measureText(t.label).width,s=Math.round(u+5),l=Math.round(r+4),c=Math.max(t.size,r/2)+2,f=Math.asin(l/2/c),d=Math.sqrt(Math.abs(Math.pow(c,2)-Math.pow(l/2,2)));e.beginPath(),e.moveTo(t.x+d,t.y+l/2),e.lineTo(t.x+c+s,t.y+l/2),e.lineTo(t.x+c+s,t.y-l/2),e.lineTo(t.x+d,t.y-l/2),e.arc(t.x,t.y,c,f,-f),e.closePath(),e.fill()}else e.beginPath(),e.arc(t.x,t.y,t.size+2,0,2*Math.PI),e.closePath(),e.fill();e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0,(0,i.default)(e,t,n)}},5604:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(t.label){var r=n.labelSize,i=n.labelFont,o=n.labelWeight,a=n.labelColor.attribute?t[n.labelColor.attribute]||n.labelColor.color||"#000":n.labelColor.color;e.fillStyle=a,e.font=o+" "+r+"px "+i,e.fillText(t.label,t.x+t.size+3,t.y+r/3)}}},6612:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.createEdgeCompoundProgram=t.AbstractEdgeProgram=void 0;var i=function(e){function t(t,n,r,i,o){return e.call(this,t,n,r,i,o)||this}return r(t,e),t}(n(2493).AbstractProgram);t.AbstractEdgeProgram=i,t.createEdgeCompoundProgram=function(e){return function(){function t(t,n){this.programs=e.map((function(e){return new e(t,n)}))}return t.prototype.bufferData=function(){this.programs.forEach((function(e){return e.bufferData()}))},t.prototype.allocate=function(e){this.programs.forEach((function(t){return t.allocate(e)}))},t.prototype.bind=function(){},t.prototype.computeIndices=function(){this.programs.forEach((function(e){return e.computeIndices()}))},t.prototype.render=function(e){this.programs.forEach((function(t){t.bind(),t.bufferData(),t.render(e)}))},t.prototype.process=function(e,t,n,r,i){this.programs.forEach((function(o){return o.process(e,t,n,r,i)}))},t}()}},9353:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.createNodeCompoundProgram=t.AbstractNodeProgram=void 0;var i=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r,i,o)||this;a.positionLocation=t.getAttribLocation(a.program,"a_position"),a.sizeLocation=t.getAttribLocation(a.program,"a_size"),a.colorLocation=t.getAttribLocation(a.program,"a_color");var u=t.getUniformLocation(a.program,"u_matrix");if(null===u)throw new Error("AbstractNodeProgram: error while getting matrixLocation");a.matrixLocation=u;var s=t.getUniformLocation(a.program,"u_ratio");if(null===s)throw new Error("AbstractNodeProgram: error while getting ratioLocation");a.ratioLocation=s;var l=t.getUniformLocation(a.program,"u_scale");if(null===l)throw new Error("AbstractNodeProgram: error while getting scaleLocation");return a.scaleLocation=l,a}return r(t,e),t.prototype.bind=function(){var e=this.gl;e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.sizeLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.sizeLocation,1,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,this.attributes*Float32Array.BYTES_PER_ELEMENT,12)},t}(n(2493).AbstractProgram);t.AbstractNodeProgram=i,t.createNodeCompoundProgram=function(e){return function(){function t(t,n){this.programs=e.map((function(e){return new e(t,n)}))}return t.prototype.bufferData=function(){this.programs.forEach((function(e){return e.bufferData()}))},t.prototype.allocate=function(e){this.programs.forEach((function(t){return t.allocate(e)}))},t.prototype.bind=function(){},t.prototype.render=function(e){this.programs.forEach((function(t){return t.render(e)}))},t.prototype.process=function(e,t,n){this.programs.forEach((function(r){return r.process(e,t,n)}))},t}()}},2493:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractProgram=void 0;var r=n(3311),i=function(){function e(e,t,n,i,o){this.array=new Float32Array,this.points=i,this.attributes=o,this.gl=e,this.vertexShaderSource=t,this.fragmentShaderSource=n;var a=e.createBuffer();if(null===a)throw new Error("AbstractProgram: error while creating the buffer");this.buffer=a,e.bindBuffer(e.ARRAY_BUFFER,this.buffer),this.vertexShader=(0,r.loadVertexShader)(e,this.vertexShaderSource),this.fragmentShader=(0,r.loadFragmentShader)(e,this.fragmentShaderSource),this.program=(0,r.loadProgram)(e,[this.vertexShader,this.fragmentShader])}return e.prototype.bufferData=function(){var e=this.gl;e.bufferData(e.ARRAY_BUFFER,this.array,e.DYNAMIC_DRAW)},e.prototype.allocate=function(e){this.array=new Float32Array(this.points*this.attributes*e)},e.prototype.hasNothingToRender=function(){return 0===this.array.length},e}();t.AbstractProgram=i},1922:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(6612),o=r(n(6037)),a=r(n(575)),u=(0,i.createEdgeCompoundProgram)([a.default,o.default]);t.default=u},6037:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(6045),a=i(n(8825)),u=i(n(1194)),s=n(6612),l=function(e){function t(t){var n=e.call(this,t,a.default,u.default,3,9)||this;n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal"),n.radiusLocation=t.getAttribLocation(n.program,"a_radius"),n.barycentricLocation=t.getAttribLocation(n.program,"a_barycentric");var r=t.getUniformLocation(n.program,"u_matrix");if(null===r)throw new Error("EdgeArrowHeadProgram: error while getting matrixLocation");n.matrixLocation=r;var i=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===i)throw new Error("EdgeArrowHeadProgram: error while getting sqrtZoomRatioLocation");n.sqrtZoomRatioLocation=i;var o=t.getUniformLocation(n.program,"u_correctionRatio");if(null===o)throw new Error("EdgeArrowHeadProgram: error while getting correctionRatioLocation");return n.correctionRatioLocation=o,n.bind(),n}return r(t,e),t.prototype.bind=function(){var e=this.gl;e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.radiusLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.barycentricLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,9*Float32Array.BYTES_PER_ELEMENT,20),e.vertexAttribPointer(this.barycentricLocation,3,e.FLOAT,!1,9*Float32Array.BYTES_PER_ELEMENT,24)},t.prototype.computeIndices=function(){},t.prototype.process=function(e,t,n,r,i){if(r)for(var a=27*i,u=a+27;a<u;a++)this.array[a]=0;else{var s=n.size||1,l=t.size||1,c=e.x,f=e.y,d=t.x,h=t.y,p=(0,o.floatColor)(n.color),g=d-c,v=h-f,y=g*g+v*v,m=0,b=0;y&&(m=-v*(y=1/Math.sqrt(y))*s,b=g*y*s);var w=27*i,_=this.array;_[w++]=d,_[w++]=h,_[w++]=-m,_[w++]=-b,_[w++]=l,_[w++]=p,_[w++]=1,_[w++]=0,_[w++]=0,_[w++]=d,_[w++]=h,_[w++]=-m,_[w++]=-b,_[w++]=l,_[w++]=p,_[w++]=0,_[w++]=1,_[w++]=0,_[w++]=d,_[w++]=h,_[w++]=-m,_[w++]=-b,_[w++]=l,_[w++]=p,_[w++]=0,_[w++]=0,_[w]=1}},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawArrays(t.TRIANGLES,0,this.array.length/9)}},t}(s.AbstractEdgeProgram);t.default=l},575:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(6612),a=n(6045),u=i(n(40)),s=i(n(4012)),l=function(e){function t(t){var n=e.call(this,t,u.default,s.default,4,6)||this,r=t.createBuffer();if(null===r)throw new Error("EdgeClampedProgram: error while getting resolutionLocation");n.indicesBuffer=r,n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal"),n.radiusLocation=t.getAttribLocation(n.program,"a_radius");var i=t.getUniformLocation(n.program,"u_matrix");if(null===i)throw new Error("EdgeClampedProgram: error while getting matrixLocation");n.matrixLocation=i;var o=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===o)throw new Error("EdgeClampedProgram: error while getting cameraRatioLocation");n.sqrtZoomRatioLocation=o;var l=t.getUniformLocation(n.program,"u_correctionRatio");if(null===l)throw new Error("EdgeClampedProgram: error while getting viewportRatioLocation");return n.correctionRatioLocation=l,n.canUse32BitsIndices=(0,a.canUse32BitsIndices)(t),n.IndicesArray=n.canUse32BitsIndices?Uint32Array:Uint16Array,n.indicesArray=new n.IndicesArray,n.indicesType=n.canUse32BitsIndices?t.UNSIGNED_INT:t.UNSIGNED_SHORT,n.bind(),n}return r(t,e),t.prototype.bind=function(){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.enableVertexAttribArray(this.radiusLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,6*Float32Array.BYTES_PER_ELEMENT,16),e.vertexAttribPointer(this.radiusLocation,1,e.FLOAT,!1,6*Float32Array.BYTES_PER_ELEMENT,20)},t.prototype.process=function(e,t,n,r,i){if(r)for(var o=24*i,u=o+24;o<u;o++)this.array[o]=0;else{var s=n.size||1,l=e.x,c=e.y,f=t.x,d=t.y,h=t.size||1,p=(0,a.floatColor)(n.color),g=f-l,v=d-c,y=g*g+v*v,m=0,b=0;y&&(m=-v*(y=1/Math.sqrt(y))*s,b=g*y*s);var w=24*i,_=this.array;_[w++]=l,_[w++]=c,_[w++]=m,_[w++]=b,_[w++]=p,_[w++]=0,_[w++]=l,_[w++]=c,_[w++]=-m,_[w++]=-b,_[w++]=p,_[w++]=0,_[w++]=f,_[w++]=d,_[w++]=m,_[w++]=b,_[w++]=p,_[w++]=h,_[w++]=f,_[w++]=d,_[w++]=-m,_[w++]=-b,_[w++]=p,_[w]=-h}},t.prototype.computeIndices=function(){for(var e=this.array.length/6,t=e+e/2,n=new this.IndicesArray(t),r=0,i=0;r<e;r+=4)n[i++]=r,n[i++]=r+1,n[i++]=r+2,n[i++]=r+2,n[i++]=r+1,n[i++]=r+3;this.indicesArray=n},t.prototype.bufferData=function(){e.prototype.bufferData.call(this);var t=this.gl;t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indicesArray,t.STATIC_DRAW)},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}},t}(o.AbstractEdgeProgram);t.default=l},7304:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(6045),a=i(n(2605)),u=i(n(4012)),s=n(6612),l=function(e){function t(t){var n=e.call(this,t,a.default,u.default,4,5)||this,r=t.createBuffer();if(null===r)throw new Error("EdgeProgram: error while creating indicesBuffer");n.indicesBuffer=r,n.positionLocation=t.getAttribLocation(n.program,"a_position"),n.colorLocation=t.getAttribLocation(n.program,"a_color"),n.normalLocation=t.getAttribLocation(n.program,"a_normal");var i=t.getUniformLocation(n.program,"u_matrix");if(null===i)throw new Error("EdgeProgram: error while getting matrixLocation");n.matrixLocation=i;var s=t.getUniformLocation(n.program,"u_correctionRatio");if(null===s)throw new Error("EdgeProgram: error while getting correctionRatioLocation");n.correctionRatioLocation=s;var l=t.getUniformLocation(n.program,"u_sqrtZoomRatio");if(null===l)throw new Error("EdgeProgram: error while getting sqrtZoomRatioLocation");return n.sqrtZoomRatioLocation=l,n.canUse32BitsIndices=(0,o.canUse32BitsIndices)(t),n.IndicesArray=n.canUse32BitsIndices?Uint32Array:Uint16Array,n.indicesArray=new n.IndicesArray,n.indicesType=n.canUse32BitsIndices?t.UNSIGNED_INT:t.UNSIGNED_SHORT,n.bind(),n}return r(t,e),t.prototype.bind=function(){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,this.indicesBuffer),e.enableVertexAttribArray(this.positionLocation),e.enableVertexAttribArray(this.normalLocation),e.enableVertexAttribArray(this.colorLocation),e.vertexAttribPointer(this.positionLocation,2,e.FLOAT,!1,5*Float32Array.BYTES_PER_ELEMENT,0),e.vertexAttribPointer(this.normalLocation,2,e.FLOAT,!1,5*Float32Array.BYTES_PER_ELEMENT,8),e.vertexAttribPointer(this.colorLocation,4,e.UNSIGNED_BYTE,!0,5*Float32Array.BYTES_PER_ELEMENT,16)},t.prototype.computeIndices=function(){for(var e=this.array.length/5,t=e+e/2,n=new this.IndicesArray(t),r=0,i=0;r<e;r+=4)n[i++]=r,n[i++]=r+1,n[i++]=r+2,n[i++]=r+2,n[i++]=r+1,n[i++]=r+3;this.indicesArray=n},t.prototype.bufferData=function(){e.prototype.bufferData.call(this);var t=this.gl;t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indicesArray,t.STATIC_DRAW)},t.prototype.process=function(e,t,n,r,i){if(r)for(var a=20*i,u=a+20;a<u;a++)this.array[a]=0;else{var s=n.size||1,l=e.x,c=e.y,f=t.x,d=t.y,h=(0,o.floatColor)(n.color),p=f-l,g=d-c,v=p*p+g*g,y=0,m=0;v&&(y=-g*(v=1/Math.sqrt(v))*s,m=p*v*s);var b=20*i,w=this.array;w[b++]=l,w[b++]=c,w[b++]=y,w[b++]=m,w[b++]=h,w[b++]=l,w[b++]=c,w[b++]=-y,w[b++]=-m,w[b++]=h,w[b++]=f,w[b++]=d,w[b++]=y,w[b++]=m,w[b++]=h,w[b++]=f,w[b++]=d,w[b++]=-y,w[b++]=-m,w[b]=h}},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1f(this.sqrtZoomRatioLocation,Math.sqrt(e.ratio)),t.uniform1f(this.correctionRatioLocation,e.correctionRatio),t.drawElements(t.TRIANGLES,this.indicesArray.length,this.indicesType,0)}},t}(s.AbstractEdgeProgram);t.default=l},9501:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(6045),a=i(n(1572)),u=i(n(3040)),s=n(9353),l=function(e){function t(t){var n=e.call(this,t,a.default,u.default,1,4)||this;return n.bind(),n}return r(t,e),t.prototype.process=function(e,t,n){var r=this.array,i=1*n*4;if(t)return r[i++]=0,r[i++]=0,r[i++]=0,void(r[i++]=0);var a=(0,o.floatColor)(e.color);r[i++]=e.x,r[i++]=e.y,r[i++]=e.size,r[i]=a},t.prototype.render=function(e){if(!this.hasNothingToRender()){var t=this.gl,n=this.program;t.useProgram(n),t.uniform1f(this.ratioLocation,1/Math.sqrt(e.ratio)),t.uniform1f(this.scaleLocation,e.scalingRatio),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.drawArrays(t.POINTS,0,this.array.length/4)}},t}(s.AbstractNodeProgram);t.default=l},5017:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=n(6045),s=a(n(8554)),l=a(n(7974)),c=n(9353);!function(e){function t(t,n){return e.call(this,t,s.default,l.default,1,8)||this}r(t,e),t.prototype.bind=function(){},t.prototype.process=function(e,t,n){},t.prototype.render=function(e){},t.prototype.rebindTexture=function(){}}(c.AbstractNodeProgram);t.default=function(){var e,t=[],n={},a=!1,f=void 0;function d(r){if(!n[r]){var u=new Image;u.addEventListener("load",(function(){n[r]={status:"pending",image:u},"number"!==typeof f&&(f=requestAnimationFrame((function(){return function(){f=void 0;var r=[];for(var u in n){var s=n[u];"pending"===s.status&&r.push({id:u,image:s.image})}var l=e.width;(function(n){var r=document.createElement("canvas"),u=r.getContext("2d");r.width=n.reduce((function(e,t){return e+t.width}),a?e.width:0),r.height=Math.max.apply(Math,o([a?e.height:0],i(n.map((function(e){return e.height}))),!1));var s=0;a&&(u.putImageData(e,0,0),s=e.width);n.forEach((function(e){u.drawImage(e,s,0,e.width||1,e.height||1),s+=e.width})),e=u.getImageData(0,0,r.width,r.height),a=!0,t.forEach((function(e){return e()}))})(r.map((function(e){return e.image}))),r.forEach((function(e){var t=e.id,r=e.image;n[t]={status:"ready",x:l,y:0,width:r.width,height:r.height},l+=r.width}))}()})))})),u.addEventListener("error",(function(){n[r]={status:"error"}})),n[r]={status:"loading"},u.setAttribute("crossOrigin",""),u.src=r}}return function(i){function o(n,r){var o=i.call(this,n,s.default,l.default,1,8)||this;t.push((function(){o&&o.rebindTexture&&o.rebindTexture(),r&&r.scheduleRefresh&&r.scheduleRefresh()})),e=new ImageData(1,1),o.textureLocation=n.getAttribLocation(o.program,"a_texture");var a=n.getUniformLocation(o.program,"u_atlas");if(null===a)throw new Error("NodeProgramImage: error while getting atlasLocation");return o.atlasLocation=a,o.texture=n.createTexture(),n.bindTexture(n.TEXTURE_2D,o.texture),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,1,1,0,n.RGBA,n.UNSIGNED_BYTE,new Uint8Array([0,0,0,0])),o.bind(),o}return r(o,i),o.prototype.bind=function(){i.prototype.bind.call(this);var e=this.gl;e.enableVertexAttribArray(this.textureLocation),e.vertexAttribPointer(this.textureLocation,4,e.FLOAT,!1,this.attributes*Float32Array.BYTES_PER_ELEMENT,16)},o.prototype.process=function(t,r,i){var o=this.array,a=1*i*8,s=t.image,l=s&&n[s];if("string"!==typeof s||l||d(s),r)return o[a++]=0,o[a++]=0,o[a++]=0,o[a++]=0,o[a++]=0,o[a++]=0,o[a++]=0,void(o[a++]=0);if(o[a++]=t.x,o[a++]=t.y,o[a++]=t.size,o[a++]=(0,u.floatColor)(t.color),l&&"ready"===l.status){var c=e.width,f=e.height;o[a++]=l.x/c,o[a++]=l.y/f,o[a++]=l.width/c,o[a++]=l.height/f}else o[a++]=0,o[a++]=0,o[a++]=0,o[a++]=0},o.prototype.render=function(e){if(!this.hasNothingToRender()){this.latestRenderParams=e;var t=this.gl,n=this.program;t.useProgram(n),t.uniform1f(this.ratioLocation,1/Math.sqrt(e.ratio)),t.uniform1f(this.scaleLocation,e.scalingRatio),t.uniformMatrix3fv(this.matrixLocation,!1,e.matrix),t.uniform1i(this.atlasLocation,0),t.drawArrays(t.POINTS,0,this.array.length/8)}},o.prototype.rebindTexture=function(){var t=this.gl;t.bindTexture(t.TEXTURE_2D,this.texture),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),t.generateMipmap(t.TEXTURE_2D),this.latestRenderParams&&(this.bind(),this.bufferData(),this.render(this.latestRenderParams))},o}(c.AbstractNodeProgram)}},1194:function(e){!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:function(){return r}});var r="precision mediump float;\n\nvarying vec4 v_color;\n\nvoid main(void) {\n  gl_FragColor = v_color;\n}\n";e.exports=n}()},8825:function(e){!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:function(){return r}});var r="attribute vec2 a_position;\nattribute vec2 a_normal;\nattribute float a_radius;\nattribute vec4 a_color;\nattribute vec3 a_barycentric;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadWidthLengthRatio = 0.66;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n  float normalLength = length(a_normal);\n  vec2 unitNormal = a_normal / normalLength;\n\n  // These first computations are taken from edge.vert.glsl and\n  // edge.clamped.vert.glsl. Please read it to get better comments on what's\n  // happening:\n  float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n  float webGLThickness = pixelsThickness * u_correctionRatio;\n  float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n  float adaptedWebGLNodeRadius = a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n  float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio;\n  float adaptedWebGLArrowHeadHalfWidth = adaptedWebGLArrowHeadLength * arrowHeadWidthLengthRatio / 2.0;\n\n  float da = a_barycentric.x;\n  float db = a_barycentric.y;\n  float dc = a_barycentric.z;\n\n  vec2 delta = vec2(\n      da * (adaptedWebGLNodeRadius * unitNormal.y)\n    + db * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y + adaptedWebGLArrowHeadHalfWidth * unitNormal.x)\n    + dc * ((adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.y - adaptedWebGLArrowHeadHalfWidth * unitNormal.x),\n\n      da * (-adaptedWebGLNodeRadius * unitNormal.x)\n    + db * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x + adaptedWebGLArrowHeadHalfWidth * unitNormal.y)\n    + dc * (-(adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength) * unitNormal.x - adaptedWebGLArrowHeadHalfWidth * unitNormal.y)\n  );\n\n  vec2 position = (u_matrix * vec3(a_position + delta, 1)).xy;\n\n  gl_Position = vec4(position, 0, 1);\n\n  // Extract the color:\n  v_color = a_color;\n  v_color.a *= bias;\n}\n";e.exports=n}()},40:function(e){!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:function(){return r}});var r="attribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\nattribute float a_radius;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\nconst float arrowHeadLengthThicknessRatio = 2.5;\n\nvoid main() {\n  float normalLength = length(a_normal);\n  vec2 unitNormal = a_normal / normalLength;\n\n  // These first computations are taken from edge.vert.glsl. Please read it to\n  // get better comments on what's happening:\n  float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n  float webGLThickness = pixelsThickness * u_correctionRatio;\n  float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n  // Here, we move the point to leave space for the arrow head:\n  float direction = sign(a_radius);\n  float adaptedWebGLNodeRadius = direction * a_radius * 2.0 * u_correctionRatio * u_sqrtZoomRatio;\n  float adaptedWebGLArrowHeadLength = adaptedWebGLThickness * 2.0 * arrowHeadLengthThicknessRatio;\n\n  vec2 compensationVector = vec2(-direction * unitNormal.y, direction * unitNormal.x) * (adaptedWebGLNodeRadius + adaptedWebGLArrowHeadLength);\n\n  // Here is the proper position of the vertex\n  gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness + compensationVector, 1)).xy, 0, 1);\n\n  v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n  v_normal = unitNormal;\n  v_color = a_color;\n  v_color.a *= bias;\n}\n";e.exports=n}()},4012:function(e){!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:function(){return r}});var r="precision mediump float;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float feather = 0.001;\nconst vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\n\n\nvoid main(void) {\n  float dist = length(v_normal) * v_thickness;\n\n  float t = smoothstep(\n    v_thickness - feather,\n    v_thickness,\n    dist\n  );\n\n  gl_FragColor = mix(v_color, transparent, t);\n}";e.exports=n}()},2605:function(e){!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:function(){return r}});var r='attribute vec4 a_color;\nattribute vec2 a_normal;\nattribute vec2 a_position;\n\nuniform mat3 u_matrix;\nuniform float u_sqrtZoomRatio;\nuniform float u_correctionRatio;\n\nvarying vec4 v_color;\nvarying vec2 v_normal;\nvarying float v_thickness;\n\nconst float minThickness = 1.7;\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n  float normalLength = length(a_normal);\n  vec2 unitNormal = a_normal / normalLength;\n\n  // We require edges to be at least `minThickness` pixels thick *on screen*\n  // (so we need to compensate the SQRT zoom ratio):\n  float pixelsThickness = max(normalLength, minThickness * u_sqrtZoomRatio);\n\n  // Then, we need to retrieve the normalized thickness of the edge in the WebGL\n  // referential (in a ([0, 1], [0, 1]) space), using our "magic" correction\n  // ratio:\n  float webGLThickness = pixelsThickness * u_correctionRatio;\n\n  // Finally, we adapt the edge thickness to the "SQRT rule" in sigma (so that\n  // items are not too big when zoomed in, and not too small when zoomed out).\n  // The exact computation should be `adapted = value * zoom / sqrt(zoom)`, but\n  // it\'s simpler like this:\n  float adaptedWebGLThickness = webGLThickness * u_sqrtZoomRatio;\n\n  // Here is the proper position of the vertex\n  gl_Position = vec4((u_matrix * vec3(a_position + unitNormal * adaptedWebGLThickness, 1)).xy, 0, 1);\n\n  // For the fragment shader though, we need a thickness that takes the "magic"\n  // correction ratio into account (as in webGLThickness), but so that the\n  // antialiasint effect does not depend on the zoom level. So here\'s yet\n  // another thickness version:\n  v_thickness = webGLThickness / u_sqrtZoomRatio;\n\n  v_normal = unitNormal;\n  v_color = a_color;\n  v_color.a *= bias;\n}\n';e.exports=n}()},3040:function(e){!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:function(){return r}});var r="precision mediump float;\n\nvarying vec4 v_color;\nvarying float v_border;\n\nconst float radius = 0.5;\n\nvoid main(void) {\n  vec4 color0 = vec4(0.0, 0.0, 0.0, 0.0);\n  vec2 m = gl_PointCoord - vec2(0.5, 0.5);\n  float dist = radius - length(m);\n\n  float t = 0.0;\n  if (dist > v_border)\n    t = 1.0;\n  else if (dist > 0.0)\n    t = dist / v_border;\n\n  gl_FragColor = mix(color0, v_color, t);\n}\n";e.exports=n}()},1572:function(e){!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:function(){return r}});var r="attribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying vec4 v_color;\nvarying float v_border;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n  gl_Position = vec4(\n    (u_matrix * vec3(a_position, 1)).xy,\n    0,\n    1\n  );\n\n  // Multiply the point size twice:\n  //  - x SCALING_RATIO to correct the canvas scaling\n  //  - x 2 to correct the formulae\n  gl_PointSize = a_size * u_ratio * u_scale * 2.0;\n\n  v_border = (1.0 / u_ratio) * (0.5 / a_size);\n\n  // Extract the color:\n  v_color = a_color;\n  v_color.a *= bias;\n}\n";e.exports=n}()},7974:function(e){!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:function(){return r}});var r="precision mediump float;\n\nvarying vec4 v_color;\nvarying float v_border;\nvarying vec4 v_texture;\n\nuniform sampler2D u_atlas;\n\nconst float radius = 0.5;\n\nvoid main(void) {\n  vec4 transparent = vec4(0.0, 0.0, 0.0, 0.0);\n  vec4 color;\n\n  if (v_texture.w > 0.0) {\n    vec4 texel = texture2D(u_atlas, v_texture.xy + gl_PointCoord * v_texture.zw, -1.0);\n    color = vec4(mix(v_color, texel, texel.a).rgb, max(texel.a, v_color.a));\n  } else {\n    color = v_color;\n  }\n\n  vec2 m = gl_PointCoord - vec2(0.5, 0.5);\n  float dist = length(m);\n\n  if (dist < radius - v_border) {\n    gl_FragColor = color;\n  } else if (dist < radius) {\n    gl_FragColor = mix(transparent, color, (radius - dist) / v_border);\n  } else {\n    gl_FragColor = transparent;\n  }\n}\n";e.exports=n}()},8554:function(e){!function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{default:function(){return r}});var r="attribute vec2 a_position;\nattribute float a_size;\nattribute vec4 a_color;\nattribute vec4 a_texture;\n\nuniform float u_ratio;\nuniform float u_scale;\nuniform mat3 u_matrix;\n\nvarying vec4 v_color;\nvarying float v_border;\nvarying vec4 v_texture;\n\nconst float bias = 255.0 / 254.0;\n\nvoid main() {\n  gl_Position = vec4(\n    (u_matrix * vec3(a_position, 1)).xy,\n    0,\n    1\n  );\n\n  // Multiply the point size twice:\n  //  - x SCALING_RATIO to correct the canvas scaling\n  //  - x 2 to correct the formulae\n  gl_PointSize = a_size * u_ratio * u_scale * 2.0;\n\n  v_border = (1.0 / u_ratio) * (0.5 / a_size);\n\n  // Extract the color:\n  v_color = a_color;\n  v_color.a *= bias;\n\n  // Pass the texture coordinates:\n  v_texture = a_texture;\n}\n";e.exports=n}()},3311:function(e,t){"use strict";function n(e,t,n){var r="VERTEX"===e?t.VERTEX_SHADER:t.FRAGMENT_SHADER,i=t.createShader(r);if(null===i)throw new Error("loadShader: error while creating the shader");if(t.shaderSource(i,n),t.compileShader(i),!t.getShaderParameter(i,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(i);throw t.deleteShader(i),new Error("loadShader: error while compiling the shader:\n"+o+"\n"+n)}return i}Object.defineProperty(t,"__esModule",{value:!0}),t.loadProgram=t.loadFragmentShader=t.loadVertexShader=void 0,t.loadVertexShader=function(e,t){return n("VERTEX",e,t)},t.loadFragmentShader=function(e,t){return n("FRAGMENT",e,t)},t.loadProgram=function(e,t){var n,r,i=e.createProgram();if(null===i)throw new Error("loadProgram: error while creating the program.");for(n=0,r=t.length;n<r;n++)e.attachShader(i,t[n]);if(e.linkProgram(i),!e.getProgramParameter(i,e.LINK_STATUS))throw e.deleteProgram(i),new Error("loadProgram: error while linking the program.");return i}},1362:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_SETTINGS=t.validateSettings=void 0;var i=r(n(5604)),o=r(n(2300)),a=r(n(1889)),u=r(n(9501)),s=r(n(7304)),l=r(n(1922));t.validateSettings=function(e){if("number"!==typeof e.labelDensity||e.labelDensity<0)throw new Error("Settings: invalid `labelDensity`. Expecting a positive number.")},t.DEFAULT_SETTINGS={hideEdgesOnMove:!1,hideLabelsOnMove:!1,renderLabels:!0,renderEdgeLabels:!1,enableEdgeClickEvents:!1,enableEdgeWheelEvents:!1,enableEdgeHoverEvents:!1,defaultNodeColor:"#999",defaultNodeType:"circle",defaultEdgeColor:"#ccc",defaultEdgeType:"line",labelFont:"Arial",labelSize:14,labelWeight:"normal",labelColor:{color:"#000"},edgeLabelFont:"Arial",edgeLabelSize:14,edgeLabelWeight:"normal",edgeLabelColor:{attribute:"color"},stagePadding:30,labelDensity:.07,labelGridCellSize:60,labelRenderedSizeThreshold:6,nodeReducer:null,edgeReducer:null,zIndex:!1,labelRenderer:i.default,hoverRenderer:o.default,edgeLabelRenderer:a.default,nodeProgramClasses:{circle:u.default},edgeProgramClasses:{arrow:l.default,line:s.default}}},554:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(7465),u=o(n(3508)),s=o(n(9672)),l=o(n(7100)),c=o(n(7787)),f=n(6045),d=n(3619),h=n(1362),p=o(n(2066)),g=n(2826),v=n(2583),y=u.default.nodeExtent,m=(0,f.getPixelRatio)();function b(e,t,n){if(!n.hasOwnProperty("x")||!n.hasOwnProperty("y"))throw new Error('Sigma: could not find a valid position (x, y) for node "'+t+'". All your nodes must have a number "x" and "y". Maybe your forgot to apply a layout or your "nodeReducer" is not returning the correct data?');return n.color||(n.color=e.defaultNodeColor),n.label||""===n.label||(n.label=null),void 0!==n.label&&null!==n.label?n.label=""+n.label:n.label=null,n.size||(n.size=2),n.hasOwnProperty("hidden")||(n.hidden=!1),n.hasOwnProperty("highlighted")||(n.highlighted=!1),n.type&&""!==n.type||(n.type=e.defaultNodeType),n.zIndex||(n.zIndex=0),n}function w(e,t,n){return n.color||(n.color=e.defaultEdgeColor),n.label||(n.label=""),n.size||(n.size=.5),n.hasOwnProperty("hidden")||(n.hidden=!1),n.type&&""!==n.type||(n.type=e.defaultEdgeType),n.zIndex||(n.zIndex=0),n}var _=function(e){function t(t,n,r){void 0===r&&(r={});var i=e.call(this)||this;if(i.elements={},i.canvasContexts={},i.webGLContexts={},i.activeListeners={},i.quadtree=new c.default,i.labelGrid=new d.LabelGrid,i.nodeDataCache={},i.edgeDataCache={},i.nodeKeyToIndex={},i.edgeKeyToIndex={},i.nodeExtent={x:[0,1],y:[0,1]},i.matrix=(0,g.identity)(),i.invMatrix=(0,g.identity)(),i.correctionRatio=1,i.customBBox=null,i.normalizationFunction=(0,f.createNormalizationFunction)({x:[-1/0,1/0],y:[-1/0,1/0]}),i.cameraSizeRatio=1,i.width=0,i.height=0,i.displayedLabels=new Set,i.highlightedNodes=new Set,i.hoveredNode=null,i.hoveredEdge=null,i.renderFrame=null,i.renderHighlightedNodesFrame=null,i.needToProcess=!1,i.needToSoftProcess=!1,i.checkEdgesEventsFrame=null,i.nodePrograms={},i.hoverNodePrograms={},i.edgePrograms={},i.settings=(0,f.assign)({},h.DEFAULT_SETTINGS,r),(0,h.validateSettings)(i.settings),(0,f.validateGraph)(t),!(n instanceof HTMLElement))throw new Error("Sigma: container should be an html element.");i.graph=t,i.container=n,i.initializeCache(),i.createWebGLContext("edges",{preserveDrawingBuffer:!0}),i.createCanvasContext("edgeLabels"),i.createWebGLContext("nodes"),i.createCanvasContext("labels"),i.createCanvasContext("hovers"),i.createWebGLContext("hoverNodes"),i.createCanvasContext("mouse");var o=i.webGLContexts.nodes;for(var a in o.blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA),o.enable(o.BLEND),(o=i.webGLContexts.edges).blendFunc(o.ONE,o.ONE_MINUS_SRC_ALPHA),o.enable(o.BLEND),i.settings.nodeProgramClasses){var u=i.settings.nodeProgramClasses[a];i.nodePrograms[a]=new u(i.webGLContexts.nodes,i),i.hoverNodePrograms[a]=new u(i.webGLContexts.hoverNodes,i)}for(var a in i.settings.edgeProgramClasses){var v=i.settings.edgeProgramClasses[a];i.edgePrograms[a]=new v(i.webGLContexts.edges,i)}return i.resize(),i.camera=new s.default,i.bindCameraHandlers(),i.mouseCaptor=new l.default(i.elements.mouse,i),i.touchCaptor=new p.default(i.elements.mouse,i),i.bindEventHandlers(),i.bindGraphHandlers(),i.process(),i.render(),i}return r(t,e),t.prototype.createCanvas=function(e){var t=(0,f.createElement)("canvas",{position:"absolute"},{class:"sigma-"+e});return this.elements[e]=t,this.container.appendChild(t),t},t.prototype.createCanvasContext=function(e){var t=this.createCanvas(e);return this.canvasContexts[e]=t.getContext("2d",{preserveDrawingBuffer:!1,antialias:!1}),this},t.prototype.createWebGLContext=function(e,t){var n,r=this.createCanvas(e),o=i({preserveDrawingBuffer:!1,antialias:!1},t||{});return(n=r.getContext("webgl2",o))||(n=r.getContext("webgl",o)),n||(n=r.getContext("experimental-webgl",o)),this.webGLContexts[e]=n,this},t.prototype.initializeCache=function(){var e=this,t=this.graph,n=0;t.forEachNode((function(t){e.nodeKeyToIndex[t]=n++})),n=0,t.forEachEdge((function(t){e.edgeKeyToIndex[t]=n++}))},t.prototype.bindCameraHandlers=function(){var e=this;return this.activeListeners.camera=function(){e._scheduleRefresh()},this.camera.on("updated",this.activeListeners.camera),this},t.prototype.bindEventHandlers=function(){var e=this;this.activeListeners.handleResize=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},window.addEventListener("resize",this.activeListeners.handleResize);var t=function(e,t,n,r,i){return e>n-i&&e<n+i&&t>r-i&&t<r+i&&Math.sqrt(Math.pow(e-n,2)+Math.pow(t-r,2))<i};this.activeListeners.handleMove=function(n){for(var r=function(t,n){var r=e.viewportToFramedGraph({x:t,y:n});return e.quadtree.point(r.x,1-r.y)}(n.x,n.y),i=1/0,o=null,a=0,u=r.length;a<u;a++){var s=r[a],l=e.nodeDataCache[s],c=e.framedGraphToViewport(l),d=e.scaleSize(l.size);if(!l.hidden&&t(n.x,n.y,c.x,c.y,d)){var h=Math.sqrt(Math.pow(n.x-c.x,2)+Math.pow(n.y-c.y,2));h<i&&(i=h,o=s)}}if(o&&e.hoveredNode!==o&&!e.nodeDataCache[o].hidden)return e.hoveredNode&&e.emit("leaveNode",{node:e.hoveredNode}),e.hoveredNode=o,e.emit("enterNode",{node:o}),void e.scheduleHighlightedNodesRender();if(e.hoveredNode){l=e.nodeDataCache[e.hoveredNode],c=e.framedGraphToViewport(l),d=e.scaleSize(l.size);if(!t(n.x,n.y,c.x,c.y,d)){s=e.hoveredNode;return e.hoveredNode=null,e.emit("leaveNode",{node:s}),e.scheduleHighlightedNodesRender()}}var p={x:n.x,y:n.y};!0===e.settings.enableEdgeHoverEvents?e.checkEdgeHoverEvents(p):"debounce"===e.settings.enableEdgeHoverEvents&&(e.checkEdgesEventsFrame||(e.checkEdgesEventsFrame=(0,f.requestFrame)((function(){e.checkEdgeHoverEvents(p),e.checkEdgesEventsFrame=null}))))};var n=function(t){return function(n){var r={event:n,preventSigmaDefault:function(){this.event.preventSigmaDefault()}};if(e.hoveredNode)return e.emit(t+"Node",i(i({},r),{node:e.hoveredNode}));if("wheel"===t?e.settings.enableEdgeWheelEvents:e.settings.enableEdgeClickEvents){var o=e.getEdgeAtPoint(n.x,n.y);if(o)return e.emit(t+"Edge",i(i({},r),{edge:o}))}return e.emit(t+"Stage",r)}};return this.activeListeners.handleClick=n("click"),this.activeListeners.handleRightClick=n("rightClick"),this.activeListeners.handleDoubleClick=n("doubleClick"),this.activeListeners.handleWheel=n("wheel"),this.activeListeners.handleDown=n("down"),this.mouseCaptor.on("mousemove",this.activeListeners.handleMove),this.mouseCaptor.on("click",this.activeListeners.handleClick),this.mouseCaptor.on("rightClick",this.activeListeners.handleRightClick),this.mouseCaptor.on("doubleClick",this.activeListeners.handleDoubleClick),this.mouseCaptor.on("wheel",this.activeListeners.handleWheel),this.mouseCaptor.on("mousedown",this.activeListeners.handleDown),this},t.prototype.bindGraphHandlers=function(){var e=this,t=this.graph;return this.activeListeners.graphUpdate=function(){e.needToProcess=!0,e._scheduleRefresh()},this.activeListeners.softGraphUpdate=function(){e.needToSoftProcess=!0,e._scheduleRefresh()},this.activeListeners.addNodeGraphUpdate=function(n){e.nodeKeyToIndex[n.key]=t.order-1,e.activeListeners.graphUpdate()},this.activeListeners.addEdgeGraphUpdate=function(n){e.nodeKeyToIndex[n.key]=t.order-1,e.activeListeners.graphUpdate()},t.on("nodeAdded",this.activeListeners.addNodeGraphUpdate),t.on("nodeDropped",this.activeListeners.graphUpdate),t.on("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgeAdded",this.activeListeners.addEdgeGraphUpdate),t.on("edgeDropped",this.activeListeners.graphUpdate),t.on("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),t.on("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),t.on("edgesCleared",this.activeListeners.graphUpdate),t.on("cleared",this.activeListeners.graphUpdate),this},t.prototype.checkEdgeHoverEvents=function(e){var t=this.hoveredNode?null:this.getEdgeAtPoint(e.x,e.y);return t!==this.hoveredEdge&&(this.hoveredEdge&&this.emit("leaveEdge",{edge:this.hoveredEdge}),t&&this.emit("enterEdge",{edge:t}),this.hoveredEdge=t),this},t.prototype.getEdgeAtPoint=function(e,t){var n=this,r=this.edgeDataCache,i=this.nodeDataCache;if(!(0,v.isPixelColored)(this.webGLContexts.edges,e*m,t*m))return null;var o=this.viewportToGraph({x:e,y:t}),a=o.x,u=o.y,s=0;return this.graph.someEdge((function(e,t,o,a,u,l){var c=u.x,f=u.y,d=l.x,h=l.y;if(r[e].hidden||i[o].hidden||i[a].hidden)return!1;if(c!==d||f!==h){var p=Math.sqrt(Math.pow(d-c,2)+Math.pow(h-f,2)),g=n.graphToViewport({x:c,y:f}),v=g.x,y=g.y,m=n.graphToViewport({x:d,y:h}),b=m.x,w=m.y,_=Math.sqrt(Math.pow(b-v,2)+Math.pow(w-y,2));return s=p/_,!0}})),s&&this.graph.findEdge((function(e,t,i,o,l,c){if((0,v.doEdgeCollideWithPoint)(a,u,l.x,l.y,c.x,c.y,r[e].size*s/n.cameraSizeRatio))return!0}))||null},t.prototype.process=function(e){var t=this;void 0===e&&(e=!1);var n=this.graph,r=this.settings,i=this.getDimensions(),o=[1/0,-1/0],a=[1/0,-1/0];this.quadtree.clear(),this.labelGrid.resizeAndClear(i,r.labelGridCellSize),this.highlightedNodes=new Set;this.nodeExtent=y(n,["x","y"]);var u=new s.default,l=(0,f.matrixFromCamera)(u.getState(),this.getDimensions(),this.getGraphDimensions(),this.getSetting("stagePadding")||0);this.normalizationFunction=(0,f.createNormalizationFunction)(this.customBBox||this.nodeExtent);for(var c={},d=n.nodes(),h=0,p=d.length;h<p;h++){var g=d[h],v=Object.assign({},n.getNodeAttributes(g));r.nodeReducer&&(v=r.nodeReducer(g,v)),c[(_=b(this.settings,g,v)).type]=(c[_.type]||0)+1,this.nodeDataCache[g]=_,this.normalizationFunction.applyTo(_),this.settings.zIndex&&(_.zIndex<o[0]&&(o[0]=_.zIndex),_.zIndex>o[1]&&(o[1]=_.zIndex))}for(var m in this.nodePrograms){if(!this.nodePrograms.hasOwnProperty(m))throw new Error('Sigma: could not find a suitable program for node type "'+m+'"!');e||this.nodePrograms[m].allocate(c[m]||0),c[m]=0}this.settings.zIndex&&o[0]!==o[1]&&(d=(0,f.zIndexOrdering)(o,(function(e){return t.nodeDataCache[e].zIndex}),d));for(h=0,p=d.length;h<p;h++){g=d[h];var _=this.nodeDataCache[g];this.quadtree.add(g,_.x,1-_.y,_.size/this.width),_.label&&this.labelGrid.add(g,_.size,this.framedGraphToViewport(_,{matrix:l})),this.nodePrograms[_.type].process(_,_.hidden,c[_.type]++),_.highlighted&&!_.hidden&&this.highlightedNodes.add(g),this.nodeKeyToIndex[g]=h}this.labelGrid.organize();var x={},E=n.edges();for(h=0,p=E.length;h<p;h++){var k=E[h];v=Object.assign({},n.getEdgeAttributes(k));r.edgeReducer&&(v=r.edgeReducer(k,v)),x[(_=w(this.settings,0,v)).type]=(x[_.type]||0)+1,this.edgeDataCache[k]=_,this.settings.zIndex&&(_.zIndex<a[0]&&(a[0]=_.zIndex),_.zIndex>a[1]&&(a[1]=_.zIndex))}for(var m in this.edgePrograms){if(!this.edgePrograms.hasOwnProperty(m))throw new Error('Sigma: could not find a suitable program for edge type "'+m+'"!');e||this.edgePrograms[m].allocate(x[m]||0),x[m]=0}this.settings.zIndex&&a[0]!==a[1]&&(E=(0,f.zIndexOrdering)(a,(function(e){return t.edgeDataCache[e].zIndex}),E));for(h=0,p=E.length;h<p;h++){k=E[h],_=this.edgeDataCache[k];var S=n.extremities(k),C=this.nodeDataCache[S[0]],L=this.nodeDataCache[S[1]],T=_.hidden||C.hidden||L.hidden;this.edgePrograms[_.type].process(C,L,_,T,x[_.type]++),this.nodeKeyToIndex[k]=h}for(var m in this.edgePrograms){var O=this.edgePrograms[m];e||"function"!==typeof O.computeIndices||O.computeIndices()}return this},t.prototype._refresh=function(){return this.needToProcess?this.process():this.needToSoftProcess&&this.process(!0),this.needToProcess=!1,this.needToSoftProcess=!1,this.render(),this},t.prototype._scheduleRefresh=function(){var e=this;return this.renderFrame||(this.renderFrame=(0,f.requestFrame)((function(){e._refresh(),e.renderFrame=null}))),this},t.prototype.renderLabels=function(){if(!this.settings.renderLabels)return this;var e,t=this.camera.getState();if(t.ratio>=1)e=new Set(this.graph.nodes());else{var n=this.viewRectangle();e=new Set(this.quadtree.rectangle(n.x1,1-n.y1,n.x2,1-n.y2,n.height))}var r=this.labelGrid.getLabelsToDisplay(t.ratio,this.settings.labelDensity);this.displayedLabels=new Set;for(var i=this.canvasContexts.labels,o=0,a=r.length;o<a;o++){var u=r[o],s=this.nodeDataCache[u];if(!s.hidden){var l=this.framedGraphToViewport(s),c=l.x,f=l.y,d=this.scaleSize(s.size);d<this.settings.labelRenderedSizeThreshold||e.has(u)&&(this.displayedLabels.add(u),this.settings.labelRenderer(i,{key:u,label:s.label,color:s.color,size:d,x:c,y:f},this.settings))}}return this},t.prototype.renderEdgeLabels=function(){if(!this.settings.renderEdgeLabels)return this;var e=this.canvasContexts.edgeLabels;e.clearRect(0,0,this.width,this.height);for(var t=(0,d.edgeLabelsToDisplayFromNodes)({graph:this.graph,hoveredNode:this.hoveredNode,displayedNodeLabels:this.displayedLabels,highlightedNodes:this.highlightedNodes}),n=0,r=t.length;n<r;n++){var o=t[n],a=this.graph.extremities(o),u=this.nodeDataCache[a[0]],s=this.nodeDataCache[a[1]],l=this.edgeDataCache[o];l.hidden||u.hidden||s.hidden||this.settings.edgeLabelRenderer(e,{key:o,label:l.label,color:l.color,size:this.scaleSize(l.size)},i(i(i({key:a[0]},u),this.framedGraphToViewport(u)),{size:this.scaleSize(u.size)}),i(i(i({key:a[1]},s),this.framedGraphToViewport(s)),{size:this.scaleSize(s.size)}),this.settings)}return this},t.prototype.renderHighlightedNodes=function(){var e=this,t=this.canvasContexts.hovers;t.clearRect(0,0,this.width,this.height);var n=[];this.hoveredNode&&!this.nodeDataCache[this.hoveredNode].hidden&&n.push(this.hoveredNode),this.highlightedNodes.forEach((function(t){t!==e.hoveredNode&&n.push(t)})),n.forEach((function(n){return function(n){var r=e.nodeDataCache[n],i=e.framedGraphToViewport(r),o=i.x,a=i.y,u=e.scaleSize(r.size);e.settings.hoverRenderer(t,{key:n,label:r.label,color:r.color,size:u,x:o,y:a},e.settings)}(n)}));var r={};for(var i in n.forEach((function(t){var n=e.nodeDataCache[t].type;r[n]=(r[n]||0)+1})),this.hoverNodePrograms)this.hoverNodePrograms[i].allocate(r[i]||0),r[i]=0;for(var i in n.forEach((function(t){var n=e.nodeDataCache[t];e.hoverNodePrograms[n.type].process(n,n.hidden,r[n.type]++)})),this.hoverNodePrograms){var o=this.hoverNodePrograms[i];o.bind(),o.bufferData(),o.render({matrix:this.matrix,width:this.width,height:this.height,ratio:this.camera.ratio,correctionRatio:this.correctionRatio/this.camera.ratio,scalingRatio:m})}},t.prototype.scheduleHighlightedNodesRender=function(){var e=this;this.renderHighlightedNodesFrame||this.renderFrame||(this.renderHighlightedNodesFrame=(0,f.requestFrame)((function(){e.renderHighlightedNodesFrame=null,e.renderHighlightedNodes(),e.renderEdgeLabels()})))},t.prototype.render=function(){if(this.renderFrame&&((0,f.cancelFrame)(this.renderFrame),this.renderFrame=null,this.needToProcess=!1,this.needToSoftProcess=!1),this.resize(),this.clear(),this.updateCachedValues(),!this.graph.order)return this;var e=this.mouseCaptor,t=this.camera.isAnimated()||e.isMoving||e.draggedEvents||e.currentWheelDirection,n=this.camera.getState(),r=this.getDimensions(),i=this.getGraphDimensions(),o=this.getSetting("stagePadding")||0;for(var a in this.matrix=(0,f.matrixFromCamera)(n,r,i,o),this.invMatrix=(0,f.matrixFromCamera)(n,r,i,o,!0),this.correctionRatio=(0,f.getMatrixImpact)(this.matrix,n,r),this.nodePrograms){(u=this.nodePrograms[a]).bind(),u.bufferData(),u.render({matrix:this.matrix,width:this.width,height:this.height,ratio:n.ratio,correctionRatio:this.correctionRatio/n.ratio,scalingRatio:m})}if(!this.settings.hideEdgesOnMove||!t)for(var a in this.edgePrograms){var u;(u=this.edgePrograms[a]).bind(),u.bufferData(),u.render({matrix:this.matrix,width:this.width,height:this.height,ratio:n.ratio,correctionRatio:this.correctionRatio/n.ratio,scalingRatio:m})}return this.settings.hideLabelsOnMove&&t||(this.renderLabels(),this.renderEdgeLabels(),this.renderHighlightedNodes(),this.emit("afterRender")),this},t.prototype.updateCachedValues=function(){var e=this.camera.getState().ratio;this.cameraSizeRatio=Math.sqrt(e)},t.prototype.getCamera=function(){return this.camera},t.prototype.getGraph=function(){return this.graph},t.prototype.getMouseCaptor=function(){return this.mouseCaptor},t.prototype.getTouchCaptor=function(){return this.touchCaptor},t.prototype.getDimensions=function(){return{width:this.width,height:this.height}},t.prototype.getGraphDimensions=function(){var e=this.customBBox||this.nodeExtent;return{width:e.x[1]-e.x[0]||1,height:e.y[1]-e.y[0]||1}},t.prototype.getNodeDisplayData=function(e){var t=this.nodeDataCache[e];return t?Object.assign({},t):void 0},t.prototype.getEdgeDisplayData=function(e){var t=this.edgeDataCache[e];return t?Object.assign({},t):void 0},t.prototype.getSettings=function(){return i({},this.settings)},t.prototype.getSetting=function(e){return this.settings[e]},t.prototype.setSetting=function(e,t){return this.settings[e]=t,(0,h.validateSettings)(this.settings),this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.updateSetting=function(e,t){return this.settings[e]=t(this.settings[e]),(0,h.validateSettings)(this.settings),this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.resize=function(){var e=this.width,t=this.height;if(this.width=this.container.offsetWidth,this.height=this.container.offsetHeight,0===this.width)throw new Error("Sigma: container has no width.");if(0===this.height)throw new Error("Sigma: container has no height.");if(e===this.width&&t===this.height)return this;for(var n in this.elements){var r=this.elements[n];r.style.width=this.width+"px",r.style.height=this.height+"px"}for(var n in this.canvasContexts)this.elements[n].setAttribute("width",this.width*m+"px"),this.elements[n].setAttribute("height",this.height*m+"px"),1!==m&&this.canvasContexts[n].scale(m,m);for(var n in this.webGLContexts)this.elements[n].setAttribute("width",this.width*m+"px"),this.elements[n].setAttribute("height",this.height*m+"px"),this.webGLContexts[n].viewport(0,0,this.width*m,this.height*m);return this},t.prototype.clear=function(){return this.webGLContexts.nodes.clear(this.webGLContexts.nodes.COLOR_BUFFER_BIT),this.webGLContexts.edges.clear(this.webGLContexts.edges.COLOR_BUFFER_BIT),this.webGLContexts.hoverNodes.clear(this.webGLContexts.nodes.COLOR_BUFFER_BIT),this.canvasContexts.labels.clearRect(0,0,this.width,this.height),this.canvasContexts.hovers.clearRect(0,0,this.width,this.height),this.canvasContexts.edgeLabels.clearRect(0,0,this.width,this.height),this},t.prototype.refresh=function(){return this.needToProcess=!0,this._refresh(),this},t.prototype.scheduleRefresh=function(){return this.needToProcess=!0,this._scheduleRefresh(),this},t.prototype.getViewportZoomedState=function(e,t){var n=this.camera.getState(),r=n.ratio,i=n.angle,o=n.x,a=n.y,u=t/r,s={x:this.width/2,y:this.height/2},l=this.viewportToFramedGraph(e),c=this.viewportToFramedGraph(s);return{angle:i,x:(l.x-c.x)*(1-u)+o,y:(l.y-c.y)*(1-u)+a,ratio:t}},t.prototype.viewRectangle=function(){var e=0*this.width/8,t=0*this.height/8,n=this.viewportToFramedGraph({x:0-e,y:0-t}),r=this.viewportToFramedGraph({x:this.width+e,y:0-t}),i=this.viewportToFramedGraph({x:0,y:this.height+t});return{x1:n.x,y1:n.y,x2:r.x,y2:r.y,height:r.y-i.y}},t.prototype.framedGraphToViewport=function(e,t){void 0===t&&(t={});var n=!!t.cameraState||!!t.viewportDimensions||!!t.graphDimensions,r=t.matrix?t.matrix:n?(0,f.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0):this.matrix,i=[e.x,e.y,1],o=(0,g.multiplyVec)(r,i);return{x:(1+o[0])*this.width/2,y:(1-o[1])*this.height/2}},t.prototype.viewportToFramedGraph=function(e,t){void 0===t&&(t={});var n=!!t.cameraState||!!t.viewportDimensions||!t.graphDimensions,r=t.matrix?t.matrix:n?(0,f.matrixFromCamera)(t.cameraState||this.camera.getState(),t.viewportDimensions||this.getDimensions(),t.graphDimensions||this.getGraphDimensions(),t.padding||this.getSetting("stagePadding")||0,!0):this.invMatrix,i=[e.x/this.width*2-1,1-e.y/this.height*2,1],o=(0,g.multiplyVec)(r,i);return{x:o[0],y:o[1]}},t.prototype.viewportToGraph=function(e){return this.normalizationFunction.inverse(this.viewportToFramedGraph(e))},t.prototype.graphToViewport=function(e){return this.framedGraphToViewport(this.normalizationFunction(e))},t.prototype.getBBox=function(){return y(this.graph,["x","y"])},t.prototype.getCustomBBox=function(){return this.customBBox},t.prototype.setCustomBBox=function(e){return this.customBBox=e,this._scheduleRefresh(),this},t.prototype.kill=function(){var e=this.graph;this.emit("kill"),this.removeAllListeners(),this.camera.removeListener("updated",this.activeListeners.camera),window.removeEventListener("resize",this.activeListeners.handleResize),this.mouseCaptor.kill(),this.touchCaptor.kill(),e.removeListener("nodeAdded",this.activeListeners.addNodeGraphUpdate),e.removeListener("nodeDropped",this.activeListeners.graphUpdate),e.removeListener("nodeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachNodeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgeAdded",this.activeListeners.addEdgeGraphUpdate),e.removeListener("edgeDropped",this.activeListeners.graphUpdate),e.removeListener("edgeAttributesUpdated",this.activeListeners.softGraphUpdate),e.removeListener("eachEdgeAttributesUpdated",this.activeListeners.graphUpdate),e.removeListener("edgesCleared",this.activeListeners.graphUpdate),e.removeListener("cleared",this.activeListeners.graphUpdate),this.quadtree=new c.default,this.nodeDataCache={},this.edgeDataCache={},this.highlightedNodes.clear(),this.renderFrame&&((0,f.cancelFrame)(this.renderFrame),this.renderFrame=null),this.renderHighlightedNodesFrame&&((0,f.cancelFrame)(this.renderHighlightedNodesFrame),this.renderHighlightedNodesFrame=null);for(var t=this.container;t.firstChild;)t.removeChild(t.firstChild)},t.prototype.scaleSize=function(e){return e/this.cameraSizeRatio},t.prototype.getCanvases=function(){return i({},this.elements)},t}(a.EventEmitter);t.default=_},157:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.animateNodes=t.ANIMATE_DEFAULTS=void 0;var i=n(6045),o=r(n(4498));t.ANIMATE_DEFAULTS={easing:"quadraticInOut",duration:150},t.animateNodes=function(e,n,r,a){var u=Object.assign({},t.ANIMATE_DEFAULTS,r),s="function"===typeof u.easing?u.easing:o.default[u.easing],l=Date.now(),c={};for(var f in n){var d=n[f];for(var h in c[f]={},d)c[f][h]=e.getNodeAttribute(f,h)}var p=null;return function t(){var r=(Date.now()-l)/u.duration;if(r>=1){for(var o in n){var f=n[o];for(var d in f)e.setNodeAttribute(o,d,f[d])}"function"===typeof a&&a()}else{for(var o in r=s(r),n){f=n[o];var h=c[o];for(var d in f)e.setNodeAttribute(o,d,f[d]*r+h[d]*(1-r))}p=(0,i.requestFrame)(t)}}(),function(){p&&(0,i.cancelFrame)(p)}}},4498:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cubicInOut=t.cubicOut=t.cubicIn=t.quadraticInOut=t.quadraticOut=t.quadraticIn=t.linear=void 0;t.linear=function(e){return e};t.quadraticIn=function(e){return e*e};t.quadraticOut=function(e){return e*(2-e)};t.quadraticInOut=function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)};t.cubicIn=function(e){return e*e*e};t.cubicOut=function(e){return--e*e*e+1};t.cubicInOut=function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)};var n={linear:t.linear,quadraticIn:t.quadraticIn,quadraticOut:t.quadraticOut,quadraticInOut:t.quadraticInOut,cubicIn:t.cubicIn,cubicOut:t.cubicOut,cubicInOut:t.cubicInOut};t.default=n},2583:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.doEdgeCollideWithPoint=t.isPixelColored=void 0,t.isPixelColored=function(e,t,n){var r=new Uint8Array(4);return e.readPixels(t,e.drawingBufferHeight-n,1,1,e.RGBA,e.UNSIGNED_BYTE,r),r[3]>0},t.doEdgeCollideWithPoint=function(e,t,n,r,i,o,a){return!(e<n-a&&e<i-a)&&(!(t<r-a&&t<o-a)&&(!(e>n+a&&e>i+a)&&(!(t>r+a&&t>o+a)&&Math.abs((i-n)*(r-t)-(n-e)*(o-r))/Math.sqrt(Math.pow(i-n,2)+Math.pow(o-r,2))<a/2)))}},6045:function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateGraph=t.canUse32BitsIndices=t.extractPixel=t.getMatrixImpact=t.matrixFromCamera=t.getCorrectionRatio=t.floatColor=t.zIndexOrdering=t.createNormalizationFunction=t.getPixelRatio=t.createElement=t.cancelFrame=t.requestFrame=t.assignDeep=t.assign=t.isPlainObject=void 0;var o=i(n(362)),a=n(2826);function u(e){return"object"===typeof e&&null!==e&&e.constructor===Object}t.isPlainObject=u,t.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e=e||{};for(var r=0,i=t.length;r<i;r++){var o=t[r];o&&Object.assign(e,o)}return e},t.assignDeep=function e(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t=t||{};for(var i=0,o=n.length;i<o;i++){var a=n[i];if(a)for(var s in a)u(a[s])?t[s]=e(t[s],a[s]):t[s]=a[s]}return t},t.requestFrame="undefined"!==typeof requestAnimationFrame?function(e){return requestAnimationFrame(e)}:function(e){return setTimeout(e,0)},t.cancelFrame="undefined"!==typeof cancelAnimationFrame?function(e){return cancelAnimationFrame(e)}:function(e){return clearTimeout(e)},t.createElement=function(e,t,n){var r=document.createElement(e);if(t)for(var i in t)r.style[i]=t[i];if(n)for(var i in n)r.setAttribute(i,n[i]);return r},t.getPixelRatio=function(){return"undefined"!==typeof window.devicePixelRatio?window.devicePixelRatio:1},t.createNormalizationFunction=function(e){var t=r(e.x,2),n=t[0],i=t[1],o=r(e.y,2),a=o[0],u=o[1],s=Math.max(i-n,u-a);0===s&&(s=1);var l=(i+n)/2,c=(u+a)/2,f=function(e){return{x:.5+(e.x-l)/s,y:.5+(e.y-c)/s}};return f.applyTo=function(e){e.x=.5+(e.x-l)/s,e.y=.5+(e.y-c)/s},f.inverse=function(e){return{x:l+s*(e.x-.5),y:c+s*(e.y-.5)}},f.ratio=s,f},t.zIndexOrdering=function(e,t,n){return n.sort((function(e,n){var r=t(e)||0,i=t(n)||0;return r<i?-1:r>i?1:0}))};var s={},l=new Int8Array(4),c=new Int32Array(l.buffer,0,1),f=new Float32Array(l.buffer,0,1),d=/^\s*rgba?\s*\(/,h=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/;function p(e,t){var n=e.height/e.width,r=t.height/t.width;return n<1&&r>1||n>1&&r<1?1:Math.min(Math.max(r,1/r),Math.max(1/n,n))}t.floatColor=function(e){if("undefined"!==typeof s[e])return s[e];var t=0,n=0,r=0,i=1;if("#"===e[0])4===e.length?(t=parseInt(e.charAt(1)+e.charAt(1),16),n=parseInt(e.charAt(2)+e.charAt(2),16),r=parseInt(e.charAt(3)+e.charAt(3),16)):(t=parseInt(e.charAt(1)+e.charAt(2),16),n=parseInt(e.charAt(3)+e.charAt(4),16),r=parseInt(e.charAt(5)+e.charAt(6),16));else if(d.test(e)){var o=e.match(h);o&&(t=+o[1],n=+o[2],r=+o[3],o[4]&&(i=+o[4]))}i=255*i|0,c[0]=4278190079&(i<<24|r<<16|n<<8|t);var a=f[0];return s[e]=a,a},t.getCorrectionRatio=p,t.matrixFromCamera=function(e,t,n,r,i){var o=e.angle,u=e.ratio,s=e.x,l=e.y,c=t.width,f=t.height,d=(0,a.identity)(),h=Math.min(c,f)-2*r,g=p(t,n);return i?((0,a.multiply)(d,(0,a.translate)((0,a.identity)(),s,l)),(0,a.multiply)(d,(0,a.scale)((0,a.identity)(),u)),(0,a.multiply)(d,(0,a.rotate)((0,a.identity)(),o)),(0,a.multiply)(d,(0,a.scale)((0,a.identity)(),c/h/2/g,f/h/2/g))):((0,a.multiply)(d,(0,a.scale)((0,a.identity)(),h/c*2*g,h/f*2*g)),(0,a.multiply)(d,(0,a.rotate)((0,a.identity)(),-o)),(0,a.multiply)(d,(0,a.scale)((0,a.identity)(),1/u)),(0,a.multiply)(d,(0,a.translate)((0,a.identity)(),-s,-l))),d},t.getMatrixImpact=function(e,t,n){var i=r((0,a.multiplyVec)(e,[Math.cos(t.angle),Math.sin(t.angle),0]),2),o=i[0],u=i[1];return 1/Math.sqrt(Math.pow(o,2)+Math.pow(u,2))/n.width},t.extractPixel=function(e,t,n,r){var i=r||new Uint8Array(4);return e.readPixels(t,n,1,1,e.RGBA,e.UNSIGNED_BYTE,i),i},t.canUse32BitsIndices=function(e){return"undefined"!==typeof WebGL2RenderingContext&&e instanceof WebGL2RenderingContext||!!e.getExtension("OES_element_index_uint")},t.validateGraph=function(e){if(!(0,o.default)(e))throw new Error("Sigma: invalid graph instance.");e.forEachNode((function(e,t){if(!Number.isFinite(t.x)||!Number.isFinite(t.y))throw new Error("Sigma: Coordinates of node "+e+" are invalid. A node must have a numeric 'x' and 'y' attribute.")}))}},2826:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiplyVec=t.multiply=t.translate=t.rotate=t.scale=t.identity=void 0,t.identity=function(){return Float32Array.of(1,0,0,0,1,0,0,0,1)},t.scale=function(e,t,n){return e[0]=t,e[4]="number"===typeof n?n:t,e},t.rotate=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[3]=-n,e[4]=r,e},t.translate=function(e,t,n){return e[6]=t,e[7]=n,e},t.multiply=function(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],u=e[5],s=e[6],l=e[7],c=e[8],f=t[0],d=t[1],h=t[2],p=t[3],g=t[4],v=t[5],y=t[6],m=t[7],b=t[8];return e[0]=f*n+d*o+h*s,e[1]=f*r+d*a+h*l,e[2]=f*i+d*u+h*c,e[3]=p*n+g*o+v*s,e[4]=p*r+g*a+v*l,e[5]=p*i+g*u+v*c,e[6]=y*n+m*o+b*s,e[7]=y*r+m*a+b*l,e[8]=y*i+m*u+b*c,e},t.multiplyVec=function(e,t){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],u=e[5],s=e[6],l=e[7],c=e[8],f=t[0],d=t[1],h=t[2],p=Array.isArray(t)?[0,0,0]:Float32Array.of(0,0,0);return p[0]=f*n+d*o+h*s,p[1]=f*r+d*a+h*l,p[2]=f*i+d*u+h*c,p}},9388:function(e,t,n){"use strict";n.r(t),n.d(t,{__extends:function(){return i},__assign:function(){return o},__rest:function(){return a},__decorate:function(){return u},__param:function(){return s},__metadata:function(){return l},__awaiter:function(){return c},__generator:function(){return f},__createBinding:function(){return d},__exportStar:function(){return h},__values:function(){return p},__read:function(){return g},__spread:function(){return v},__spreadArrays:function(){return y},__spreadArray:function(){return m},__await:function(){return b},__asyncGenerator:function(){return w},__asyncDelegator:function(){return _},__asyncValues:function(){return x},__makeTemplateObject:function(){return E},__importStar:function(){return S},__importDefault:function(){return C},__classPrivateFieldGet:function(){return L},__classPrivateFieldSet:function(){return T}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function u(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function s(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function u(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(u){o=[6,u],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}var d=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function h(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||d(t,e,n)}function p(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(u){i={error:u}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function y(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)r[i]=o[a];return r}function m(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(s,l):c(o[0][2],n)}catch(r){c(o[0][3],r)}var n}function s(e){u("next",e)}function l(e){u("throw",e)}function c(e,t){e(t),o.shift(),o.length&&u(o[0][0],o[0][1])}}function _(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&d(t,e,n);return k(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function L(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function T(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){"use strict";var e=n(2791),t=n(4164);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){if(e){if("string"===typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(s){u=!0,i=s}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}}(e,t)||u(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var l=n(6622),c=n(763),f=n(5017),d=n.n(f),h="#000000";function p(e,t,n){if(t.label){var r=n.labelSize,i=n.labelFont,o=n.labelWeight;e.font="".concat(o," ").concat(r,"px ").concat(i);var a=e.measureText(t.label).width+8;e.fillStyle="#ffffffcc",e.fillRect(t.x+t.size,t.y+r/3-15,a,20),e.fillStyle="#000",e.fillText(t.label,t.x+t.size+3,t.y+r/3)}}var g=function(t,n){var r=s((0,e.useState)(t),2),i=r[0],o=r[1];return(0,e.useEffect)((function(){var e=setTimeout((function(){t!==i&&o(t)}),n);return function(){clearTimeout(e)}}),[t,n]),i},v=n(184),y=function(t){var n=t.children,r=t.hoveredNode,i=(0,l.useSigma)(),a=i.getGraph(),u=g(r,40);return(0,e.useEffect)((function(){i.setSetting("hoverRenderer",(function(e,t,n){return function(e,t,n){var r=n.labelSize,i=n.labelFont,o=n.labelWeight,a=r-2,u=t.label,s="unknown"!==t.tag?t.tag:"",l=t.clusterLabel;e.beginPath(),e.fillStyle="#fff",e.shadowOffsetX=0,e.shadowOffsetY=2,e.shadowBlur=8,e.shadowColor="#000",e.font="".concat(o," ").concat(r,"px ").concat(i);var c=e.measureText(u).width;e.font="".concat(o," ").concat(a,"px ").concat(i);var f=s?e.measureText(s).width:0;e.font="".concat(o," ").concat(a,"px ").concat(i);var d=l?e.measureText(l).width:0,p=Math.max(c,f,d),g=Math.round(t.x),v=Math.round(t.y),y=Math.round(p+r/2+t.size+3),m=Math.round(r/2+4),b=s?Math.round(a/2+9):0;!function(e,t,n,r,i,o){e.beginPath(),e.moveTo(t+o,n),e.lineTo(t+r-o,n),e.quadraticCurveTo(t+r,n,t+r,n+o),e.lineTo(t+r,n+i-o),e.quadraticCurveTo(t+r,n+i,t+r-o,n+i),e.lineTo(t+o,n+i),e.quadraticCurveTo(t,n+i,t,n+i-o),e.lineTo(t,n+o),e.quadraticCurveTo(t,n,t+o,n),e.closePath()}(e,g,v-b-12,y,Math.round(a/2+9)+m+b+12,5),e.closePath(),e.fill(),e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0,e.fillStyle=h,e.font="".concat(o," ").concat(r,"px ").concat(i),e.fillText(u,t.x+t.size+3,t.y+r/3),s&&(e.fillStyle=h,e.font="".concat(o," ").concat(a,"px ").concat(i),e.fillText(s,t.x+t.size+3,t.y-2*r/3-2)),e.fillStyle=t.color,e.font="".concat(o," ").concat(a,"px ").concat(i),e.fillText(l,t.x+t.size+3,t.y+r/3+3+a)}(e,o(o({},i.getNodeDisplayData(t.key)),t),n)}))}),[i,a]),(0,e.useEffect)((function(){var e=u?i.getNodeDisplayData(u).color:"";i.setSetting("nodeReducer",u?function(e,t){return e===u||a.hasEdge(e,u)||a.hasEdge(u,e)?o(o({},t),{},{zIndex:1}):o(o({},t),{},{zIndex:0,label:"",color:"#bbb",image:null,highlighted:!1})}:null),i.setSetting("edgeReducer",u?function(t,n){return a.hasExtremity(t,u)?o(o({},n),{},{color:e,size:4}):o(o({},n),{},{color:"#eee",hidden:!0})}:null)}),[u]),(0,v.jsx)(v.Fragment,{children:n})};function m(){return document.querySelector(".sigma-mouse")}var b=function(t){var n=t.setHoveredNode,r=t.children,i=(0,l.useSigma)().getGraph(),o=(0,l.useRegisterEvents)();return(0,e.useEffect)((function(){o({clickNode:function(e){var t=e.node;i.getNodeAttribute(t,"hidden")||window.open(i.getNodeAttribute(t,"URL"),"_blank")},enterNode:function(e){var t=e.node;n(t);var r=m();r&&r.classList.add("mouse-pointer")},leaveNode:function(){n(null);var e=m();e&&e.classList.remove("mouse-pointer")}})}),[]),(0,v.jsx)(v.Fragment,{children:r})};function w(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var _=function(t){var n=t.dataset,r=t.filters,i=t.children,a=(0,l.useSigma)().getGraph();return(0,e.useEffect)((function(){if(a&&n){var e=(0,c.keyBy)(n.clusters,"key"),t=(0,c.keyBy)(n.tags,"key");n.nodes.forEach((function(n){return a.addNode(n.key,o(o(o({},n),(0,c.omit)(e[n.cluster],"key")),{},{image:"".concat(".","/images/").concat(t[n.tag].image)}))})),n.edges.forEach((function(e){var t=s(e,2),n=t[0],r=t[1];return a.addEdge(n,r,{size:1})}));var r=a.nodes().map((function(e){return a.getNodeAttribute(e,"score")})),i=Math.min.apply(Math,w(r)),u=Math.max.apply(Math,w(r));return a.forEachNode((function(e){return a.setNodeAttribute(e,"size",(a.getNodeAttribute(e,"score")-i)/(u-i)*9+1)})),function(){return a.clear()}}}),[a,n]),(0,e.useEffect)((function(){var e=r.clusters,t=r.tags;a.forEachNode((function(n,r){var i=r.cluster,o=r.tag;return a.setNodeAttribute(n,"hidden",!e[i]||!t[o])}))}),[a,r]),(0,v.jsx)(v.Fragment,{children:i})},x={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},E=e.createContext&&e.createContext(x),k=function(){return k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},k.apply(this,arguments)},S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function C(t){return t&&t.map((function(t,n){return e.createElement(t.tag,k({key:n},t.attr),C(t.child))}))}function L(t){return function(n){return e.createElement(T,k({attr:k({},t.attr)},n),C(t.child))}}function T(t){var n=function(n){var r,i=t.attr,o=t.size,a=t.title,u=S(t,["attr","size","title"]),s=o||n.size||"1em";return n.className&&(r=n.className),t.className&&(r=(r?r+" ":"")+t.className),e.createElement("svg",k({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,u,{className:r,style:k(k({color:t.color||n.color},n.style),t.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),a&&e.createElement("title",null,a),t.children)};return void 0!==E?e.createElement(E.Consumer,null,(function(e){return n(e)})):n(x)}function O(e){return L({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.828 10.172a.5.5 0 0 0-.707 0l-4.096 4.096V11.5a.5.5 0 0 0-1 0v3.975a.5.5 0 0 0 .5.5H4.5a.5.5 0 0 0 0-1H1.732l4.096-4.096a.5.5 0 0 0 0-.707zm4.344 0a.5.5 0 0 1 .707 0l4.096 4.096V11.5a.5.5 0 1 1 1 0v3.975a.5.5 0 0 1-.5.5H11.5a.5.5 0 0 1 0-1h2.768l-4.096-4.096a.5.5 0 0 1 0-.707zm0-4.344a.5.5 0 0 0 .707 0l4.096-4.096V4.5a.5.5 0 1 0 1 0V.525a.5.5 0 0 0-.5-.5H11.5a.5.5 0 0 0 0 1h2.768l-4.096 4.096a.5.5 0 0 0 0 .707zm-4.344 0a.5.5 0 0 1-.707 0L1.025 1.732V4.5a.5.5 0 0 1-1 0V.525a.5.5 0 0 1 .5-.5H4.5a.5.5 0 0 1 0 1H1.732l4.096 4.096a.5.5 0 0 1 0 .707z"}}]})(e)}function P(e){return L({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.5 0a.5.5 0 0 1 .5.5v4A1.5 1.5 0 0 1 4.5 6h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5zm5 0a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 10 4.5v-4a.5.5 0 0 1 .5-.5zM0 10.5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 6 11.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5zm10 1a1.5 1.5 0 0 1 1.5-1.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0v-4z"}}]})(e)}function A(e){return L({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}},{tag:"path",attr:{d:"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"}}]})(e)}function N(e){return L({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"}}]})(e)}function M(e){return L({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6.5 12a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11zM13 6.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0z"}},{tag:"path",attr:{d:"M10.344 11.742c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1 6.538 6.538 0 0 1-1.398 1.4z"}},{tag:"path",attr:{fillRule:"evenodd",d:"M6.5 3a.5.5 0 0 1 .5.5V6h2.5a.5.5 0 0 1 0 1H7v2.5a.5.5 0 0 1-1 0V7H3.5a.5.5 0 0 1 0-1H6V3.5a.5.5 0 0 1 .5-.5z"}}]})(e)}function j(e){return L({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6.5 12a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11zM13 6.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0z"}},{tag:"path",attr:{d:"M10.344 11.742c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1 6.538 6.538 0 0 1-1.398 1.4z"}},{tag:"path",attr:{fillRule:"evenodd",d:"M3 6.5a.5.5 0 0 1 .5-.5h6a.5.5 0 0 1 0 1h-6a.5.5 0 0 1-.5-.5z"}}]})(e)}function R(e){return L({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5a2.5 2.5 0 010-5 2.5 2.5 0 010 5zM9.5 8a2.5 2.5 0 015 0 2.5 2.5 0 01-5 0zm6.5 9.5a2.5 2.5 0 010-5 2.5 2.5 0 010 5z"}}]})(e)}function z(e){return L({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 2l-5.5 9h11z"}},{tag:"circle",attr:{cx:"17.5",cy:"17.5",r:"4.5"}},{tag:"path",attr:{d:"M3 13.5h8v8H3z"}}]})(e)}function D(e){return L({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}}]})(e)}function G(e){return L({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}}]})(e)}var I=n(2590),F=function(t){var n=t.title,r=t.initiallyDeployed,i=t.children,o=s((0,e.useState)(r||!1),2),a=o[0],u=o[1],l=(0,e.useRef)(null);return(0,e.useEffect)((function(){a&&setTimeout((function(){l.current&&l.current.parentElement.scrollTo({top:l.current.offsetTop-5,behavior:"smooth"})}),300)}),[a]),(0,v.jsxs)("div",{className:"panel",ref:l,children:[(0,v.jsxs)("h2",{children:[n," ",(0,v.jsx)("button",{type:"button",onClick:function(){return u((function(e){return!e}))},children:a?(0,v.jsx)(D,{}):(0,v.jsx)(G,{})})]}),(0,v.jsx)(I.Z,{duration:300,height:a?"auto":0,children:i})]})},U=function(){return(0,v.jsx)(F,{initiallyDeployed:!0,title:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(A,{className:"text-muted"})," Description"]}),children:(0,v.jsx)("p",{children:(0,v.jsx)("ul",{children:(0,v.jsx)("li",{children:"Search requires an exact node match"})})})})};function W(e){return L({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0 0 51.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]})(e)}function B(e){return L({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 0 0-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attr:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]})(e)}var H=function(t){var n=t.clusters,r=t.filters,i=t.toggleCluster,o=t.setClusters,a=(0,l.useSigma)().getGraph(),u=(0,e.useMemo)((function(){var e={};return a.forEachNode((function(t,n){var r=n.cluster;return e[r]=(e[r]||0)+1})),e}),[]),f=(0,e.useMemo)((function(){return Math.max.apply(Math,w((0,c.values)(u)))}),[u]),d=(0,e.useMemo)((function(){return Object.keys(r.clusters).length}),[r]),h=s((0,e.useState)(u),2),p=h[0],g=h[1];(0,e.useEffect)((function(){requestAnimationFrame((function(){var e={};a.forEachNode((function(t,n){var r=n.cluster;return!n.hidden&&(e[r]=(e[r]||0)+1)})),g(e)}))}),[r]);var y=(0,e.useMemo)((function(){return(0,c.sortBy)(n,(function(e){return-u[e.key]}))}),[n,u]);return(0,v.jsxs)(F,{title:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(R,{className:"text-muted"})," Clusters",d<n.length?(0,v.jsxs)("span",{className:"text-muted text-small",children:[" ","(",d," / ",n.length,")"]}):""]}),children:[(0,v.jsx)("p",{children:(0,v.jsx)("i",{className:"text-muted",children:"Click a cluster to show/hide related pages from the network."})}),(0,v.jsxs)("p",{className:"buttons",children:[(0,v.jsxs)("button",{className:"btn",onClick:function(){return o((0,c.mapValues)((0,c.keyBy)(n,"key"),(function(){return!0})))},children:[(0,v.jsx)(W,{})," Check all"]})," ",(0,v.jsxs)("button",{className:"btn",onClick:function(){return o({})},children:[(0,v.jsx)(B,{})," Uncheck all"]})]}),(0,v.jsx)("ul",{children:y.map((function(e){var t=u[e.key],n=p[e.key]||0;return(0,v.jsxs)("li",{className:"caption-row",title:"".concat(t," page").concat(t>1?"s":"").concat(n!==t?" (only ".concat(n," visible)"):""),children:[(0,v.jsx)("input",{type:"checkbox",checked:r.clusters[e.key]||!1,onChange:function(){return i(e.key)},id:"cluster-".concat(e.key)}),(0,v.jsxs)("label",{htmlFor:"cluster-".concat(e.key),children:[(0,v.jsx)("span",{className:"circle",style:{background:e.color,borderColor:e.color}})," ",(0,v.jsxs)("div",{className:"node-label",children:[(0,v.jsx)("span",{children:e.clusterLabel}),(0,v.jsx)("div",{className:"bar",style:{width:100*t/f+"%"},children:(0,v.jsx)("div",{className:"inside-bar",style:{width:100*n/t+"%"}})})]})]})]},e.key)}))})]})},q=function(t){var n=t.filters,r=(0,l.useSigma)(),i=s((0,e.useState)(""),2),a=i[0],u=i[1],c=s((0,e.useState)([]),2),f=c[0],d=c[1],h=s((0,e.useState)(null),2),p=h[0],g=h[1],y=function(){var e=[],t=a.toLowerCase();!p&&a.length>1&&r.getGraph().forEachNode((function(n,r){!r.hidden&&r.label&&0===r.label.toLowerCase().indexOf(t)&&e.push({id:n,label:r.label})})),d(e)};(0,e.useEffect)((function(){return y()}),[a]),(0,e.useEffect)((function(){requestAnimationFrame(y)}),[n]),(0,e.useEffect)((function(){if(p){r.getGraph().setNodeAttribute(p,"highlighted",!0);var e=r.getNodeDisplayData(p);return e&&r.getCamera().animate(o(o({},e),{},{ratio:.05}),{duration:600}),function(){r.getGraph().setNodeAttribute(p,"highlighted",!1)}}}),[p]);return(0,v.jsxs)("div",{className:"search-wrapper",children:[(0,v.jsx)("input",{type:"search",placeholder:"Search in nodes...",list:"nodes",value:a,onChange:function(e){var t=e.target.value,n=f.find((function(e){return e.label===t}));n?(u(n.label),d([]),g(n.id)):(g(null),u(t))},onKeyPress:function(e){"Enter"===e.key&&f.length&&(u(f[0].label),g(f[0].id))}}),(0,v.jsx)(N,{className:"icon"}),(0,v.jsx)("datalist",{id:"nodes",children:f.map((function(e){return(0,v.jsx)("option",{value:e.label,children:e.label},e.id)}))})]})};function V(e){return(100*e).toFixed(1)+"%"}var $=function(t){var n=t.filters,r=(0,l.useSigma)().getGraph(),i=s((0,e.useState)({nodes:0,edges:0}),2),o=i[0],a=i[1];return(0,e.useEffect)((function(){requestAnimationFrame((function(){var e={nodes:0,edges:0};r.forEachNode((function(t,n){return!n.hidden&&e.nodes++})),r.forEachEdge((function(t,n,r,i,o,a){return!o.hidden&&!a.hidden&&e.edges++})),a(e)}))}),[n]),(0,v.jsxs)("div",{className:"graph-title",children:[(0,v.jsx)("h1",{children:"Longitude"}),(0,v.jsx)("h2",{children:(0,v.jsxs)("i",{children:[r.order," node",r.order>1?"s":""," ",o.nodes!==r.order?" (only ".concat(V(o.nodes/r.order)," visible)"):"",", ",r.size," edge",r.size>1?"s":""," ",o.edges!==r.size?" (only ".concat(V(o.edges/r.size)," visible)"):""]})})]})},Y=function(t){var n=t.tags,r=t.filters,i=t.toggleTag,o=t.setTags,a=(0,l.useSigma)().getGraph(),u=(0,e.useMemo)((function(){var e={};return a.forEachNode((function(t,n){var r=n.tag;return e[r]=(e[r]||0)+1})),e}),[]),f=(0,e.useMemo)((function(){return Math.max.apply(Math,w((0,c.values)(u)))}),[u]),d=(0,e.useMemo)((function(){return Object.keys(r.tags).length}),[r]),h=s((0,e.useState)(u),2),p=h[0],g=h[1];(0,e.useEffect)((function(){requestAnimationFrame((function(){var e={};a.forEachNode((function(t,n){var r=n.tag;return!n.hidden&&(e[r]=(e[r]||0)+1)})),g(e)}))}),[r]);var y=(0,e.useMemo)((function(){return(0,c.sortBy)(n,(function(e){return"unknown"===e.key?1/0:-u[e.key]}))}),[n,u]);return(0,v.jsxs)(F,{title:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(z,{className:"text-muted"})," Categories",d<n.length?(0,v.jsxs)("span",{className:"text-muted text-small",children:[" ","(",d," / ",n.length,")"]}):""]}),children:[(0,v.jsx)("p",{children:(0,v.jsx)("i",{className:"text-muted",children:"Click a category to show/hide related pages from the network."})}),(0,v.jsxs)("p",{className:"buttons",children:[(0,v.jsxs)("button",{className:"btn",onClick:function(){return o((0,c.mapValues)((0,c.keyBy)(n,"key"),(function(){return!0})))},children:[(0,v.jsx)(W,{})," Check all"]})," ",(0,v.jsxs)("button",{className:"btn",onClick:function(){return o({})},children:[(0,v.jsx)(B,{})," Uncheck all"]})]}),(0,v.jsx)("ul",{children:y.map((function(e){var t=u[e.key],n=p[e.key]||0;return(0,v.jsxs)("li",{className:"caption-row",title:"".concat(t," page").concat(t>1?"s":"").concat(n!==t?" (only ".concat(n," visible)"):""),children:[(0,v.jsx)("input",{type:"checkbox",checked:r.tags[e.key]||!1,onChange:function(){return i(e.key)},id:"tag-".concat(e.key)}),(0,v.jsxs)("label",{htmlFor:"tag-".concat(e.key),children:[(0,v.jsx)("span",{className:"circle",style:{backgroundImage:"url(".concat(".","/images/").concat(e.image,")")}})," ",(0,v.jsxs)("div",{className:"node-label",children:[(0,v.jsx)("span",{children:e.key}),(0,v.jsx)("div",{className:"bar",style:{width:100*t/f+"%"},children:(0,v.jsx)("div",{className:"inside-bar",style:{width:100*n/t+"%"}})})]})]})]},e.key)}))})]})};function K(e){return L({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",stroke:"#000",strokeWidth:"2",d:"M3,3 L21,21 M3,21 L21,3"}}]})(e)}function Q(e){return L({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20 3H4c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2zM4 19V5h7v14H4zm9 0V5h7l.001 14H13z"}},{tag:"path",attr:{d:"M15 7h3v2h-3zm0 4h3v2h-3z"}}]})(e)}function Z(e){return L({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 5c-3.859 0-7 3.141-7 7s3.141 7 7 7 7-3.141 7-7-3.141-7-7-7zm0 12c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z"}},{tag:"path",attr:{d:"M12 9c-1.627 0-3 1.373-3 3s1.373 3 3 3 3-1.373 3-3-1.373-3-3-3z"}}]})(e)}var X=function(){var t=s((0,e.useState)(!1),2),n=t[0],i=t[1],a=s((0,e.useState)(!1),2),u=a[0],f=a[1],h=s((0,e.useState)(null),2),g=h[0],m=h[1],w=s((0,e.useState)({clusters:{},tags:{}}),2),x=w[0],E=w[1],k=s((0,e.useState)(null),2),S=k[0],C=k[1];return(0,e.useEffect)((function(){fetch("".concat(".","/dataset.json")).then((function(e){return e.json()})).then((function(e){m(e),E({clusters:(0,c.mapValues)((0,c.keyBy)(e.clusters,"key"),(0,c.constant)(!0)),tags:(0,c.mapValues)((0,c.keyBy)(e.tags,"key"),(0,c.constant)(!0))}),requestAnimationFrame((function(){return f(!0)}))}))}),[]),g?(0,v.jsx)("div",{id:"app-root",className:n?"show-contents":"",children:(0,v.jsxs)(l.SigmaContainer,{graphOptions:{type:"directed"},initialSettings:{nodeProgramClasses:{image:d()()},labelRenderer:p,defaultNodeType:"image",defaultEdgeType:"arrow",labelDensity:.07,labelGridCellSize:60,labelRenderedSizeThreshold:15,labelFont:"Lato, sans-serif",zIndex:!0},className:"react-sigma",children:[(0,v.jsx)(y,{hoveredNode:S}),(0,v.jsx)(b,{setHoveredNode:C}),(0,v.jsx)(_,{dataset:g,filters:x}),u&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("div",{className:"controls",children:[(0,v.jsx)("div",{className:"ico",children:(0,v.jsx)("button",{type:"button",className:"show-contents",onClick:function(){return i(!0)},title:"Show caption and description",children:(0,v.jsx)(Q,{})})}),(0,v.jsx)(l.FullScreenControl,{className:"ico",customEnterFullScreen:(0,v.jsx)(O,{}),customExitFullScreen:(0,v.jsx)(P,{})}),(0,v.jsx)(l.ZoomControl,{className:"ico",customZoomIn:(0,v.jsx)(M,{}),customZoomOut:(0,v.jsx)(j,{}),customZoomCenter:(0,v.jsx)(Z,{})})]}),(0,v.jsxs)("div",{className:"contents",children:[(0,v.jsx)("div",{className:"ico",children:(0,v.jsx)("button",{type:"button",className:"ico hide-contents",onClick:function(){return i(!1)},title:"Show caption and description",children:(0,v.jsx)(K,{})})}),(0,v.jsx)($,{filters:x}),(0,v.jsxs)("div",{className:"panels",children:[(0,v.jsx)(q,{filters:x}),(0,v.jsx)(U,{}),(0,v.jsx)(H,{clusters:g.clusters,filters:x,setClusters:function(e){return E((function(t){return o(o({},t),{},{clusters:e})}))},toggleCluster:function(e){E((function(t){return o(o({},t),{},{clusters:t.clusters[e]?(0,c.omit)(t.clusters,e):o(o({},t.clusters),{},r({},e,!0))})}))}}),(0,v.jsx)(Y,{tags:g.tags,filters:x,setTags:function(e){return E((function(t){return o(o({},t),{},{tags:e})}))},toggleTag:function(e){E((function(t){return o(o({},t),{},{tags:t.tags[e]?(0,c.omit)(t.tags,e):o(o({},t.tags),{},r({},e,!0))})}))}})]})]})]})]})}):null};t.render((0,v.jsx)(e.StrictMode,{children:(0,v.jsx)(X,{})}),document.getElementById("root"))}()}();
  //# sourceMappingURL=main.9e80ba78.js.map