1234567891011121314151617181920212223242526272829303132333435363738394041 |
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("babylonjs")):"function"==typeof define&&define.amd?define("babylonjs-node-editor",["babylonjs"],e):"object"==typeof exports?exports["babylonjs-node-editor"]=e(require("babylonjs")):t.NODEEDITOR=e(t.BABYLON)}("undefined"!=typeof self?self:"undefined"!=typeof global?global:this,function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=12)}([function(t,e,n){"use strict";t.exports=n(13)},function(e,n){e.exports=t},function(t,e,n){t.exports=n(19)()},function(t,e,n){var r;window,r=function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=45)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e){t.exports={Always:1,Never:2,IfAtMostOneObstacle:3,OnlyWhenNoObstacles:4}},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(e,n){var r=t.call(this,n)||this;return r.className=e,r}return o(e,t),e.prototype.bem=function(t){return(this.props.baseClass||this.className)+t+" "},e.prototype.getClassName=function(){return(this.props.baseClass||this.className)+" "+(this.props.className?this.props.className+" ":"")},e.prototype.getProps=function(){return i({},this.props.extraProps||{},{className:this.getClassName()})},e}(n(1).Component);e.BaseWidget=a},function(t,e){function n(t){for(var e=[[t.x,t.y]];t.parent;)t=t.parent,e.push([t.x,t.y]);return e.reverse()}function r(t,e,n,r){var o,i,a,l,u,s,c=Math.abs,f=[];for(o=t<n?1:-1,i=e<r?1:-1,u=(a=c(n-t))-(l=c(r-e));f.push([t,e]),t!==n||e!==r;)(s=2*u)>-l&&(u-=l,t+=o),s<a&&(u+=a,e+=i);return f}e.backtrace=n,e.biBacktrace=function(t,e){var r=n(t),o=n(e);return r.concat(o.reverse())},e.pathLength=function(t){var e,n,r,o,i,a=0;for(e=1;e<t.length;++e)n=t[e-1],r=t[e],o=n[0]-r[0],i=n[1]-r[1],a+=Math.sqrt(o*o+i*i);return a},e.interpolate=r,e.expandPath=function(t){var e,n,o,i,a,l,u=[],s=t.length;if(s<2)return u;for(a=0;a<s-1;++a)for(e=t[a],n=t[a+1],i=(o=r(e[0],e[1],n[0],n[1])).length,l=0;l<i-1;++l)u.push(o[l]);return u.push(t[s-1]),u},e.smoothenPath=function(t,e){var n,o,i,a,l,u,s,c,f,p=e.length,d=e[0][0],h=e[0][1],g=e[p-1][0],m=e[p-1][1];for(i=[[n=d,o=h]],a=2;a<p;++a){for(s=r(n,o,(u=e[a])[0],u[1]),f=!1,l=1;l<s.length;++l)if(c=s[l],!t.isWalkableAt(c[0],c[1])){f=!0;break}f&&(lastValidCoord=e[a-1],i.push(lastValidCoord),n=lastValidCoord[0],o=lastValidCoord[1])}return i.push([g,m]),i},e.compressPath=function(t){if(t.length<3)return t;var e,n,r,o,i,a,l=[],u=t[0][0],s=t[0][1],c=t[1][0],f=t[1][1],p=c-u,d=f-s;for(p/=i=Math.sqrt(p*p+d*d),d/=i,l.push([u,s]),a=2;a<t.length;a++)e=c,n=f,r=p,o=d,p=(c=t[a][0])-e,d=(f=t[a][1])-n,d/=i=Math.sqrt(p*p+d*d),(p/=i)===r&&d===o||l.push([e,n]);return l.push([c,f]),l}},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),a=n(0),l=function(t){function e(e,n){var r=t.call(this)||this;return r.x=n.x,r.y=n.y,r.parent=e,r}return o(e,t),e.prototype.getSelectedEntities=function(){return t.prototype.isSelected.call(this)&&!this.isConnectedToPort()?[this]:[]},e.prototype.isConnectedToPort=function(){return null!==this.parent.getPortForPoint(this)},e.prototype.getLink=function(){return this.getParent()},e.prototype.deSerialize=function(e,n){t.prototype.deSerialize.call(this,e,n),this.x=e.x,this.y=e.y},e.prototype.serialize=function(){return a.merge(t.prototype.serialize.call(this),{x:this.x,y:this.y})},e.prototype.remove=function(){this.parent&&this.parent.removePoint(this),t.prototype.remove.call(this)},e.prototype.updateLocation=function(t){this.x=t.x,this.y=t.y},e.prototype.getX=function(){return this.x},e.prototype.getY=function(){return this.y},e.prototype.isLocked=function(){return t.prototype.isLocked.call(this)||this.getParent().isLocked()},e}(i.BaseModel);e.PointModel=l},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};Object.defineProperty(e,"__esModule",{value:!0});var a=n(13),l=n(0),u=function(t){function e(e,n){var r=t.call(this,n)||this;return r.type=e,r.selected=!1,r}return o(e,t),e.prototype.getParent=function(){return this.parent},e.prototype.setParent=function(t){this.parent=t},e.prototype.getSelectedEntities=function(){return this.isSelected()?[this]:[]},e.prototype.deSerialize=function(e,n){t.prototype.deSerialize.call(this,e,n),this.type=e.type,this.selected=e.selected},e.prototype.serialize=function(){return l.merge(t.prototype.serialize.call(this),{type:this.type,selected:this.selected})},e.prototype.getType=function(){return this.type},e.prototype.getID=function(){return this.id},e.prototype.isSelected=function(){return this.selected},e.prototype.setSelected=function(t){void 0===t&&(t=!0),this.selected=t,this.iterateListeners(function(e,n){e.selectionChanged&&e.selectionChanged(i({},n,{isSelected:t}))})},e.prototype.remove=function(){this.iterateListeners(function(t,e){t.entityRemoved&&t.entityRemoved(e)})},e}(a.BaseEntity);e.BaseModel=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(70),o=n(16),i=n(51),a=function(){function t(){}return t.UID=function(){return t.TESTING?(t.TESTING_UID++,""+t.TESTING_UID):"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})},t.closest=function(t,e){return document.body.closest?t.closest(e):r(t,e)},t.generateLinePath=function(t,e){return"M"+t.x+","+t.y+" L "+e.x+","+e.y},t.generateCurvePath=function(t,e,n){void 0===n&&(n=0);var r=Math.abs(t.x-e.x)>Math.abs(t.y-e.y),o=r?n:0,i=r?0:n;return"M"+t.x+","+t.y+" C "+(t.x+o)+","+(t.y+i)+"\n "+(e.x-o)+","+(e.y-i)+" "+e.x+","+e.y},t.generateDynamicPath=function(t){var e=i();return e=e.moveto(t[0][0]*o.ROUTING_SCALING_FACTOR,t[0][1]*o.ROUTING_SCALING_FACTOR),t.slice(1).forEach(function(t){e=e.lineto(t[0]*o.ROUTING_SCALING_FACTOR,t[1]*o.ROUTING_SCALING_FACTOR)}),e.print()},t.TESTING=!1,t.TESTING_UID=0,t}();e.Toolkit=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){this.type=t}return t.prototype.getType=function(){return this.type},t}();e.AbstractFactory=r},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),a=n(0),l=function(t){function e(e,n){void 0===e&&(e="default");var r=t.call(this,e,n)||this;return r.x=0,r.y=0,r.extras={},r.ports={},r}return o(e,t),e.prototype.setPosition=function(t,e){var n=this.x,r=this.y;a.forEach(this.ports,function(o){a.forEach(o.getLinks(),function(i){var a=i.getPointForPort(o);a.x=a.x+t-n,a.y=a.y+e-r})}),this.x=t,this.y=e},e.prototype.getSelectedEntities=function(){var e=t.prototype.getSelectedEntities.call(this);return this.isSelected()&&a.forEach(this.ports,function(t){e=e.concat(a.map(t.getLinks(),function(e){return e.getPointForPort(t)}))}),e},e.prototype.deSerialize=function(e,n){var r=this;t.prototype.deSerialize.call(this,e,n),this.x=e.x,this.y=e.y,this.extras=e.extras,a.forEach(e.ports,function(t){var e=n.getPortFactory(t.type).getNewInstance();e.deSerialize(t,n),r.addPort(e)})},e.prototype.serialize=function(){return a.merge(t.prototype.serialize.call(this),{x:this.x,y:this.y,extras:this.extras,ports:a.map(this.ports,function(t){return t.serialize()})})},e.prototype.doClone=function(t,e){void 0===t&&(t={}),e.ports={},a.forEach(this.ports,function(n){e.addPort(n.clone(t))})},e.prototype.remove=function(){t.prototype.remove.call(this),a.forEach(this.ports,function(t){a.forEach(t.getLinks(),function(t){t.remove()})})},e.prototype.getPortFromID=function(t){for(var e in this.ports)if(this.ports[e].id===t)return this.ports[e];return null},e.prototype.getPort=function(t){return this.ports[t]},e.prototype.getPorts=function(){return this.ports},e.prototype.removePort=function(t){this.ports[t.name]&&(this.ports[t.name].setParent(null),delete this.ports[t.name])},e.prototype.addPort=function(t){return t.setParent(this),this.ports[t.name]=t,t},e.prototype.updateDimensions=function(t){var e=t.width,n=t.height;this.width=e,this.height=n},e}(i.BaseModel);e.NodeModel=l},function(t,e){t.exports={manhattan:function(t,e){return t+e},euclidean:function(t,e){return Math.sqrt(t*t+e*e)},octile:function(t,e){var n=Math.SQRT2-1;return t<e?n*t+e:n*e+t},chebyshev:function(t,e){return Math.max(t,e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){return function(t,e){this.mouseX=t,this.mouseY=e,this.ms=(new Date).getTime()}}();e.BaseAction=r},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),a=n(0),l=function(t){function e(e,n,r,o){var i=t.call(this,n,r)||this;return i.name=e,i.links={},i.maximumLinks=o,i}return o(e,t),e.prototype.deSerialize=function(e,n){t.prototype.deSerialize.call(this,e,n),this.name=e.name,this.maximumLinks=e.maximumLinks},e.prototype.serialize=function(){return a.merge(t.prototype.serialize.call(this),{name:this.name,parentNode:this.parent.id,links:a.map(this.links,function(t){return t.id}),maximumLinks:this.maximumLinks})},e.prototype.doClone=function(t,e){void 0===t&&(t={}),e.links={},e.parentNode=this.getParent().clone(t)},e.prototype.getNode=function(){return this.getParent()},e.prototype.getName=function(){return this.name},e.prototype.getMaximumLinks=function(){return this.maximumLinks},e.prototype.setMaximumLinks=function(t){this.maximumLinks=t},e.prototype.removeLink=function(t){delete this.links[t.getID()]},e.prototype.addLink=function(t){this.links[t.getID()]=t},e.prototype.getLinks=function(){return this.links},e.prototype.createLinkModel=function(){if(a.isFinite(this.maximumLinks)){var t=a.size(this.links);if(1===this.maximumLinks&&t>=1)return a.values(this.links)[0];if(t>=this.maximumLinks)return null}return null},e.prototype.updateCoords=function(t){var e=t.x,n=t.y,r=t.width,o=t.height;this.x=e,this.y=n,this.width=r,this.height=o},e.prototype.canLinkToPort=function(t){return!0},e.prototype.isLocked=function(){return t.prototype.isLocked.call(this)||this.getParent().isLocked()},e}(i.BaseModel);e.PortModel=l},function(t,e,n){"use strict";var r=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};Object.defineProperty(e,"__esModule",{value:!0});var o=n(7),i=n(0),a=function(){function t(t){this.listeners={},this.id=t||o.Toolkit.UID(),this.locked=!1}return t.prototype.getID=function(){return this.id},t.prototype.doClone=function(t,e){void 0===t&&(t={})},t.prototype.clone=function(t){if(void 0===t&&(t={}),t[this.id])return t[this.id];var e=i.clone(this);return e.id=o.Toolkit.UID(),e.clearListeners(),t[this.id]=e,this.doClone(t,e),e},t.prototype.clearListeners=function(){this.listeners={}},t.prototype.deSerialize=function(t,e){this.id=t.id},t.prototype.serialize=function(){return{id:this.id}},t.prototype.iterateListeners=function(t){var e={id:o.Toolkit.UID(),firing:!0,entity:this,stopPropagation:function(){e.firing=!1}};for(var n in this.listeners)if(this.listeners.hasOwnProperty(n)){if(!e.firing)return;t(this.listeners[n],e)}},t.prototype.removeListener=function(t){return!!this.listeners[t]&&(delete this.listeners[t],!0)},t.prototype.addListener=function(t){var e=o.Toolkit.UID();return this.listeners[e]=t,e},t.prototype.isLocked=function(){return this.locked},t.prototype.setLocked=function(t){void 0===t&&(t=!0),this.locked=t,this.iterateListeners(function(e,n){e.lockChanged&&e.lockChanged(r({},n,{locked:t}))})},t}();e.BaseEntity=a},function(t,e,n){var r=n(15),o=n(4),i=n(10);n(2);function a(t){t=t||{},this.heuristic=t.heuristic||i.manhattan,this.trackJumpRecursion=t.trackJumpRecursion||!1}a.prototype.findPath=function(t,e,n,i,a){var l,u=this.openList=new r(function(t,e){return t.f-e.f}),s=this.startNode=a.getNodeAt(t,e),c=this.endNode=a.getNodeAt(n,i);for(this.grid=a,s.g=0,s.f=0,u.push(s),s.opened=!0;!u.empty();){if((l=u.pop()).closed=!0,l===c)return o.expandPath(o.backtrace(c));this._identifySuccessors(l)}return[]},a.prototype._identifySuccessors=function(t){var e,n,r,o,a,l,u,s,c,f,p=this.grid,d=this.heuristic,h=this.openList,g=this.endNode.x,m=this.endNode.y,v=t.x,y=t.y,b=Math.abs;Math.max;for(o=0,a=(e=this._findNeighbors(t)).length;o<a;++o)if(n=e[o],r=this._jump(n[0],n[1],v,y)){if(l=r[0],u=r[1],(f=p.getNodeAt(l,u)).closed)continue;s=i.octile(b(l-v),b(u-y)),c=t.g+s,(!f.opened||c<f.g)&&(f.g=c,f.h=f.h||d(b(l-g),b(u-m)),f.f=f.g+f.h,f.parent=t,f.opened?h.updateItem(f):(h.push(f),f.opened=!0))}},t.exports=a},function(t,e,n){t.exports=n(66)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(68);e.ROUTING_SCALING_FACTOR=5;var o=new r.JumpPointFinder({heuristic:r.Heuristic.manhattan,diagonalMovement:r.DiagonalMovement.Never}),i=function(){function t(t){this.instance=o,this.diagramEngine=t}return t.prototype.calculateDirectPath=function(t,n){var i=this.diagramEngine.getCanvasMatrix(),a=new r.Grid(i);return o.findPath(this.diagramEngine.translateRoutingX(Math.floor(t.x/e.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingY(Math.floor(t.y/e.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingX(Math.floor(n.x/e.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingY(Math.floor(n.y/e.ROUTING_SCALING_FACTOR)),a)},t.prototype.calculateLinkStartEndCoords=function(t,e){var n=e.findIndex(function(e){return 0===t[e[1]][e[0]]}),r=e.length-1-e.slice().reverse().findIndex(function(e){return 0===t[e[1]][e[0]]});if(-1!==n&&-1!==r){var o=e.slice(0,n),i=e.slice(r);return{start:{x:e[n][0],y:e[n][1]},end:{x:e[r][0],y:e[r][1]},pathToStart:o,pathToEnd:i}}},t.prototype.calculateDynamicPath=function(t,e,n,i,a){var l=this,u=new r.Grid(t),s=o.findPath(e.x,e.y,n.x,n.y,u),c=i.concat(s,a).map(function(t){return[l.diagramEngine.translateRoutingX(t[0],!0),l.diagramEngine.translateRoutingY(t[1],!0)]});return r.Util.compressPath(c)},t}();e.default=i},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),a=n(0),l=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.offsetX=0,r.offsetY=0,r}return o(e,t),e.prototype.deSerialize=function(e,n){t.prototype.deSerialize.call(this,e,n),this.offsetX=e.offsetX,this.offsetY=e.offsetY},e.prototype.serialize=function(){return a.merge(t.prototype.serialize.call(this),{offsetX:this.offsetX,offsetY:this.offsetY})},e}(i.BaseModel);e.LabelModel=l},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),a=n(0),l=function(t){function e(){var e=t.call(this,"default")||this;return e.offsetY=-23,e}return o(e,t),e.prototype.setLabel=function(t){this.label=t},e.prototype.deSerialize=function(e,n){t.prototype.deSerialize.call(this,e,n),this.label=e.label},e.prototype.serialize=function(){return a.merge(t.prototype.serialize.call(this),{label:this.label})},e}(i.LabelModel);e.DefaultLabelModel=l},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};Object.defineProperty(e,"__esModule",{value:!0});var a=n(21),l=n(0),u=n(18),s=n(17),c=function(t){function e(e){void 0===e&&(e="default");var n=t.call(this,e)||this;return n.color="rgba(255,255,255,0.5)",n.width=3,n.curvyness=50,n}return o(e,t),e.prototype.serialize=function(){return l.merge(t.prototype.serialize.call(this),{width:this.width,color:this.color,curvyness:this.curvyness})},e.prototype.deSerialize=function(e,n){t.prototype.deSerialize.call(this,e,n),this.color=e.color,this.width=e.width,this.curvyness=e.curvyness},e.prototype.addLabel=function(e){if(e instanceof s.LabelModel)return t.prototype.addLabel.call(this,e);var n=new u.DefaultLabelModel;return n.setLabel(e),t.prototype.addLabel.call(this,n)},e.prototype.setWidth=function(t){this.width=t,this.iterateListeners(function(e,n){e.widthChanged&&e.widthChanged(i({},n,{width:t}))})},e.prototype.setColor=function(t){this.color=t,this.iterateListeners(function(e,n){e.colorChanged&&e.colorChanged(i({},n,{color:t}))})},e}(a.LinkModel);e.DefaultLinkModel=c},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),a=n(12),l=n(19),u=function(t){function e(e,n,r,o){void 0===r&&(r=null);var i=t.call(this,n,"default",o)||this;return i.in=e,i.label=r||n,i}return o(e,t),e.prototype.deSerialize=function(e,n){t.prototype.deSerialize.call(this,e,n),this.in=e.in,this.label=e.label},e.prototype.serialize=function(){return i.merge(t.prototype.serialize.call(this),{in:this.in,label:this.label})},e.prototype.link=function(t){var e=this.createLinkModel();return e.setSourcePort(this),e.setTargetPort(t),e},e.prototype.canLinkToPort=function(t){return!(t instanceof e)||this.in!==t.in},e.prototype.createLinkModel=function(){return t.prototype.createLinkModel.call(this)||new l.DefaultLinkModel},e}(a.PortModel);e.DefaultPortModel=u},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};Object.defineProperty(e,"__esModule",{value:!0});var a=n(6),l=n(5),u=n(0),s=function(t){function e(e,n){void 0===e&&(e="default");var r=t.call(this,e,n)||this;return r.points=[new l.PointModel(r,{x:0,y:0}),new l.PointModel(r,{x:0,y:0})],r.extras={},r.sourcePort=null,r.targetPort=null,r.labels=[],r}return o(e,t),e.prototype.deSerialize=function(e,n){var r=this;t.prototype.deSerialize.call(this,e,n),this.extras=e.extras,this.points=u.map(e.points||[],function(t){var e=new l.PointModel(r,{x:t.x,y:t.y});return e.deSerialize(t,n),e}),u.forEach(e.labels||[],function(t){var e=n.getLabelFactory(t.type).getNewInstance();e.deSerialize(t,n),r.addLabel(e)}),e.target&&this.setTargetPort(this.getParent().getNode(e.target).getPortFromID(e.targetPort)),e.source&&this.setSourcePort(this.getParent().getNode(e.source).getPortFromID(e.sourcePort))},e.prototype.serialize=function(){return u.merge(t.prototype.serialize.call(this),{source:this.sourcePort?this.sourcePort.getParent().id:null,sourcePort:this.sourcePort?this.sourcePort.id:null,target:this.targetPort?this.targetPort.getParent().id:null,targetPort:this.targetPort?this.targetPort.id:null,points:u.map(this.points,function(t){return t.serialize()}),extras:this.extras,labels:u.map(this.labels,function(t){return t.serialize()})})},e.prototype.doClone=function(t,e){void 0===t&&(t={}),e.setPoints(u.map(this.getPoints(),function(e){return e.clone(t)})),this.sourcePort&&e.setSourcePort(this.sourcePort.clone(t)),this.targetPort&&e.setTargetPort(this.targetPort.clone(t))},e.prototype.remove=function(){this.sourcePort&&this.sourcePort.removeLink(this),this.targetPort&&this.targetPort.removeLink(this),t.prototype.remove.call(this)},e.prototype.isLastPoint=function(t){return this.getPointIndex(t)===this.points.length-1},e.prototype.getPointIndex=function(t){return this.points.indexOf(t)},e.prototype.getPointModel=function(t){for(var e=0;e<this.points.length;e++)if(this.points[e].id===t)return this.points[e];return null},e.prototype.getPortForPoint=function(t){return null!==this.sourcePort&&this.getFirstPoint().getID()===t.getID()?this.sourcePort:null!==this.targetPort&&this.getLastPoint().getID()===t.getID()?this.targetPort:null},e.prototype.getPointForPort=function(t){return null!==this.sourcePort&&this.sourcePort.getID()===t.getID()?this.getFirstPoint():null!==this.targetPort&&this.targetPort.getID()===t.getID()?this.getLastPoint():null},e.prototype.getFirstPoint=function(){return this.points[0]},e.prototype.getLastPoint=function(){return this.points[this.points.length-1]},e.prototype.setSourcePort=function(t){null!==t&&t.addLink(this),null!==this.sourcePort&&this.sourcePort.removeLink(this),this.sourcePort=t,this.iterateListeners(function(e,n){e.sourcePortChanged&&e.sourcePortChanged(i({},n,{port:t}))})},e.prototype.getSourcePort=function(){return this.sourcePort},e.prototype.getTargetPort=function(){return this.targetPort},e.prototype.setTargetPort=function(t){null!==t&&t.addLink(this),null!==this.targetPort&&this.targetPort.removeLink(this),this.targetPort=t,this.iterateListeners(function(e,n){e.targetPortChanged&&e.targetPortChanged(i({},n,{port:t}))})},e.prototype.point=function(t,e){return this.addPoint(this.generatePoint(t,e))},e.prototype.addLabel=function(t){t.setParent(this),this.labels.push(t)},e.prototype.getPoints=function(){return this.points},e.prototype.setPoints=function(t){var e=this;u.forEach(t,function(t){t.setParent(e)}),this.points=t},e.prototype.removePoint=function(t){this.points.splice(this.getPointIndex(t),1)},e.prototype.removePointsBefore=function(t){this.points.splice(0,this.getPointIndex(t))},e.prototype.removePointsAfter=function(t){this.points.splice(this.getPointIndex(t)+1)},e.prototype.removeMiddlePoints=function(){this.points.length>2&&this.points.splice(0,this.points.length-2)},e.prototype.addPoint=function(t,e){return void 0===e&&(e=1),t.setParent(this),this.points.splice(e,0,t),t},e.prototype.generatePoint=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=0),new l.PointModel(this,{x:t,y:e})},e}(a.BaseModel);e.LinkModel=s},function(t,e,n){var r=n(15),o=n(4),i=n(10),a=n(2);function l(t){t=t||{},this.allowDiagonal=t.allowDiagonal,this.dontCrossCorners=t.dontCrossCorners,this.diagonalMovement=t.diagonalMovement,this.heuristic=t.heuristic||i.manhattan,this.weight=t.weight||1,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=a.OnlyWhenNoObstacles:this.diagonalMovement=a.IfAtMostOneObstacle:this.diagonalMovement=a.Never),this.diagonalMovement===a.Never?this.heuristic=t.heuristic||i.manhattan:this.heuristic=t.heuristic||i.octile}l.prototype.findPath=function(t,e,n,i,a){var l,u,s,c,f,p,d,h,g=function(t,e){return t.f-e.f},m=new r(g),v=new r(g),y=a.getNodeAt(t,e),b=a.getNodeAt(n,i),_=this.heuristic,x=this.diagonalMovement,w=this.weight,k=Math.abs,P=Math.SQRT2;for(y.g=0,y.f=0,m.push(y),y.opened=1,b.g=0,b.f=0,v.push(b),b.opened=2;!m.empty()&&!v.empty();){for((l=m.pop()).closed=!0,c=0,f=(u=a.getNeighbors(l,x)).length;c<f;++c)if(!(s=u[c]).closed){if(2===s.opened)return o.biBacktrace(l,s);p=s.x,d=s.y,h=l.g+(p-l.x==0||d-l.y==0?1:P),(!s.opened||h<s.g)&&(s.g=h,s.h=s.h||w*_(k(p-n),k(d-i)),s.f=s.g+s.h,s.parent=l,s.opened?m.updateItem(s):(m.push(s),s.opened=1))}for((l=v.pop()).closed=!0,c=0,f=(u=a.getNeighbors(l,x)).length;c<f;++c)if(!(s=u[c]).closed){if(1===s.opened)return o.biBacktrace(s,l);p=s.x,d=s.y,h=l.g+(p-l.x==0||d-l.y==0?1:P),(!s.opened||h<s.g)&&(s.g=h,s.h=s.h||w*_(k(p-t),k(d-e)),s.f=s.g+s.h,s.parent=l,s.opened?v.updateItem(s):(v.push(s),s.opened=2))}}return[]},t.exports=l},function(t,e,n){var r=n(15),o=n(4),i=n(10),a=n(2);function l(t){t=t||{},this.allowDiagonal=t.allowDiagonal,this.dontCrossCorners=t.dontCrossCorners,this.heuristic=t.heuristic||i.manhattan,this.weight=t.weight||1,this.diagonalMovement=t.diagonalMovement,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=a.OnlyWhenNoObstacles:this.diagonalMovement=a.IfAtMostOneObstacle:this.diagonalMovement=a.Never),this.diagonalMovement===a.Never?this.heuristic=t.heuristic||i.manhattan:this.heuristic=t.heuristic||i.octile}l.prototype.findPath=function(t,e,n,i,a){var l,u,s,c,f,p,d,h,g=new r(function(t,e){return t.f-e.f}),m=a.getNodeAt(t,e),v=a.getNodeAt(n,i),y=this.heuristic,b=this.diagonalMovement,_=this.weight,x=Math.abs,w=Math.SQRT2;for(m.g=0,m.f=0,g.push(m),m.opened=!0;!g.empty();){if((l=g.pop()).closed=!0,l===v)return o.backtrace(v);for(c=0,f=(u=a.getNeighbors(l,b)).length;c<f;++c)(s=u[c]).closed||(p=s.x,d=s.y,h=l.g+(p-l.x==0||d-l.y==0?1:w),(!s.opened||h<s.g)&&(s.g=h,s.h=s.h||_*y(x(p-n),x(d-i)),s.f=s.g+s.h,s.parent=l,s.opened?g.updateItem(s):(g.push(s),s.opened=!0)))}return[]},t.exports=l},function(t,e){t.exports=function(t,e,n){this.x=t,this.y=e,this.walkable=void 0===n||n}},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),l=function(t){function e(e){var n=t.call(this,"srd-node",e)||this;return n.state={},n}return o(e,t),e.prototype.shouldComponentUpdate=function(){return this.props.diagramEngine.canEntityRepaint(this.props.node)},e.prototype.getClassName=function(){return"node "+t.prototype.getClassName.call(this)+(this.props.node.isSelected()?this.bem("--selected"):"")},e.prototype.render=function(){return a.createElement("div",i({},this.getProps(),{"data-nodeid":this.props.node.id,style:{top:this.props.node.y,left:this.props.node.x}}),this.props.children)},e}(n(3).BaseWidget);e.NodeWidget=l},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),l=n(0),u=n(25),s=function(t){function e(e){var n=t.call(this,"srd-node-layer",e)||this;return n.updateNodeDimensions=function(){if(!n.props.diagramEngine.nodesRendered){var t=n.props.diagramEngine.getDiagramModel();l.map(t.getNodes(),function(t){t.updateDimensions(n.props.diagramEngine.getNodeDimensions(t))})}},n.state={},n}return o(e,t),e.prototype.componentDidUpdate=function(){this.updateNodeDimensions(),this.props.diagramEngine.nodesRendered=!0},e.prototype.render=function(){var t=this,e=this.props.diagramEngine.getDiagramModel();return a.createElement("div",i({},this.getProps(),{style:{transform:"translate("+e.getOffsetX()+"px,"+e.getOffsetY()+"px) scale("+e.getZoomLevel()/100+")"}}),l.map(e.getNodes(),function(e){return a.createElement(u.NodeWidget,{diagramEngine:t.props.diagramEngine,key:e.id,node:e},t.props.diagramEngine.generateWidgetForNode(e))}))},e}(n(3).BaseWidget);e.NodeLayerWidget=s},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){var n=t.call(this,"srd-link",e)||this;return n.state={},n}return o(e,t),e.prototype.shouldComponentUpdate=function(){return this.props.diagramEngine.canEntityRepaint(this.props.link)},e.prototype.render=function(){return this.props.children},e}(n(3).BaseWidget);e.LinkWidget=i},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),l=n(27),u=n(0),s=function(t){function e(e){var n=t.call(this,"srd-link-layer",e)||this;return n.state={},n}return o(e,t),e.prototype.render=function(){var t=this,e=this.props.diagramEngine.getDiagramModel();return a.createElement("svg",i({},this.getProps(),{style:{transform:"translate("+e.getOffsetX()+"px,"+e.getOffsetY()+"px) scale("+e.getZoomLevel()/100+")"}}),this.props.diagramEngine.canvas&&u.map(e.getLinks(),function(e){if(t.props.diagramEngine.nodesRendered&&!t.props.diagramEngine.linksThatHaveInitiallyRendered[e.id]){if(null!==e.sourcePort)try{var n=t.props.diagramEngine.getPortCenter(e.sourcePort);e.points[0].updateLocation(n);var r=t.props.diagramEngine.getPortCoords(e.sourcePort);e.sourcePort.updateCoords(r),t.props.diagramEngine.linksThatHaveInitiallyRendered[e.id]=!0}catch(t){}if(null!==e.targetPort)try{n=t.props.diagramEngine.getPortCenter(e.targetPort);u.last(e.points).updateLocation(n);r=t.props.diagramEngine.getPortCoords(e.targetPort);e.targetPort.updateCoords(r),t.props.diagramEngine.linksThatHaveInitiallyRendered[e.id]=!0}catch(t){}}var o=t.props.diagramEngine.generateWidgetForLink(e);if(!o)throw new Error("no link generated for type: "+e.getType());return a.createElement(l.LinkWidget,{key:e.getID(),link:e,diagramEngine:t.props.diagramEngine},a.cloneElement(o,{pointAdded:t.props.pointAdded}))}))},e}(n(3).BaseWidget);e.LinkLayerWidget=s},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.mouseX2=e,r.mouseY2=n,r}return o(e,t),e.prototype.getBoxDimensions=function(){return{left:this.mouseX2>this.mouseX?this.mouseX:this.mouseX2,top:this.mouseY2>this.mouseY?this.mouseY:this.mouseY2,width:Math.abs(this.mouseX2-this.mouseX),height:Math.abs(this.mouseY2-this.mouseY),right:this.mouseX2<this.mouseX?this.mouseX:this.mouseX2,bottom:this.mouseY2<this.mouseY?this.mouseY:this.mouseY2}},e.prototype.containsElement=function(t,e,n){var r=n.getZoomLevel()/100,o=this.getBoxDimensions();return t*r+n.getOffsetX()>o.left&&t*r+n.getOffsetX()<o.right&&e*r+n.getOffsetY()>o.top&&e*r+n.getOffsetY()<o.bottom},e}(n(11).BaseAction);e.SelectingAction=i},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;o.moved=!1,r.enableRepaintEntities(r.getDiagramModel().getSelectedItems());var i=r.getDiagramModel().getSelectedItems();return i=i.filter(function(t){return!r.isModelLocked(t)}),o.selectionModels=i.map(function(t){return{model:t,initialX:t.x,initialY:t.y}}),o}return o(e,t),e}(n(11).BaseAction);e.MoveItemsAction=i},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e,n,r){var o=t.call(this,e,n)||this;return o.initialOffsetX=r.getOffsetX(),o.initialOffsetY=r.getOffsetY(),o}return o(e,t),e}(n(11).BaseAction);e.MoveCanvasAction=i},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(n(8).AbstractFactory);e.AbstractNodeFactory=i},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),l=function(t){function e(e){var n=t.call(this,"srd-port",e)||this;return n.state={selected:!1},n}return o(e,t),e.prototype.getClassName=function(){return"port "+t.prototype.getClassName.call(this)+(this.state.selected?this.bem("--selected"):"")},e.prototype.render=function(){var t=this;return a.createElement("div",i({},this.getProps(),{onMouseEnter:function(){t.setState({selected:!0})},onMouseLeave:function(){t.setState({selected:!1})},"data-name":this.props.name,"data-nodeid":this.props.node.getID()}))},e}(n(3).BaseWidget);e.PortWidget=l},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),l=n(33),u=function(t){function e(e){return t.call(this,"srd-default-port",e)||this}return o(e,t),e.prototype.getClassName=function(){return t.prototype.getClassName.call(this)+(this.props.model.in?this.bem("--in"):this.bem("--out"))},e.prototype.render=function(){var t=a.createElement(l.PortWidget,{node:this.props.model.getParent(),name:this.props.model.name}),e=a.createElement("div",{className:"name"},this.props.model.label);return a.createElement("div",i({},this.getProps()),this.props.model.in?t:e,this.props.model.in?e:t)},e}(n(3).BaseWidget);e.DefaultPortLabel=u},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),l=n(0),u=n(34),s=function(t){function e(e){var n=t.call(this,"srd-default-node",e)||this;return n.state={},n}return o(e,t),e.prototype.generatePort=function(t){return a.createElement(u.DefaultPortLabel,{model:t,key:t.id})},e.prototype.render=function(){return a.createElement("div",i({},this.getProps(),{style:{background:this.props.node.color}}),a.createElement("div",{className:this.bem("__title")},a.createElement("div",{className:this.bem("__name")},this.props.node.name)),a.createElement("div",{className:this.bem("__ports")},a.createElement("div",{className:this.bem("__in")},l.map(this.props.node.getInPorts(),this.generatePort.bind(this))),a.createElement("div",{className:this.bem("__out")},l.map(this.props.node.getOutPorts(),this.generatePort.bind(this)))))},e}(n(3).BaseWidget);e.DefaultNodeWidget=s},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(n(8).AbstractFactory);e.AbstractLinkFactory=i},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),l=n(5),u=n(7),s=n(16),c=n(0),f=function(t){function e(e){var n=t.call(this,"srd-default-link",e)||this;return n.addPointToLink=function(t,e){if(!t.shiftKey&&!n.props.diagramEngine.isModelLocked(n.props.link)&&n.props.link.points.length-1<=n.props.diagramEngine.getMaxNumberPointsPerLink()){var r=new l.PointModel(n.props.link,n.props.diagramEngine.getRelativeMousePoint(t));r.setSelected(!0),n.forceUpdate(),n.props.link.addPoint(r,e),n.props.pointAdded(r,t)}},n.findPathAndRelativePositionToRenderLabel=function(t){for(var e=n.refPaths.map(function(t){return t.getTotalLength()}),r=e.reduce(function(t,e){return t+e},0)*(t/(n.props.link.labels.length+1)),o=0;o<n.refPaths.length;){if(r-e[o]<0)return{path:n.refPaths[o],position:r};r-=e[o],o++}},n.calculateLabelPosition=function(t,e){if(n.refLabels[t.id]){var r=n.findPathAndRelativePositionToRenderLabel(e),o=r.path,i=r.position,a=n.refLabels[t.id].offsetWidth,l=n.refLabels[t.id].offsetHeight,u=o.getPointAtLength(i),s=u.x-a/2+t.offsetX,c=u.y-l/2+t.offsetY;n.refLabels[t.id].setAttribute("style","transform: translate("+s+"px, "+c+"px);")}},n.refLabels={},n.refPaths=[],n.state={selected:!1},e.diagramEngine.isSmartRoutingEnabled()&&(n.pathFinding=new s.default(n.props.diagramEngine)),n}return o(e,t),e.prototype.calculateAllLabelPosition=function(){var t=this;c.forEach(this.props.link.labels,function(e,n){t.calculateLabelPosition(e,n+1)})},e.prototype.componentDidUpdate=function(){this.props.link.labels.length>0&&window.requestAnimationFrame(this.calculateAllLabelPosition.bind(this))},e.prototype.componentDidMount=function(){this.props.link.labels.length>0&&window.requestAnimationFrame(this.calculateAllLabelPosition.bind(this))},e.prototype.generatePoint=function(t){var e=this,n=this.props.link.points[t].x,r=this.props.link.points[t].y;return a.createElement("g",{key:"point-"+this.props.link.points[t].id},a.createElement("circle",{cx:n,cy:r,r:5,className:"point "+this.bem("__point")+(this.props.link.points[t].isSelected()?this.bem("--point-selected"):"")}),a.createElement("circle",{onMouseLeave:function(){e.setState({selected:!1})},onMouseEnter:function(){e.setState({selected:!0})},"data-id":this.props.link.points[t].id,"data-linkid":this.props.link.id,cx:n,cy:r,r:15,opacity:0,className:"point "+this.bem("__point")}))},e.prototype.generateLabel=function(t){var e=this,n=this.props.diagramEngine.canvas;return a.createElement("foreignObject",{key:t.id,className:this.bem("__label"),width:n.offsetWidth,height:n.offsetHeight},a.createElement("div",{ref:function(n){return e.refLabels[t.id]=n}},this.props.diagramEngine.getFactoryForLabel(t).generateReactWidget(this.props.diagramEngine,t)))},e.prototype.generateLink=function(t,e,n){var r=this,o=this.props,l=a.cloneElement(o.diagramEngine.getFactoryForLink(this.props.link).generateLinkSegment(this.props.link,this,this.state.selected||this.props.link.isSelected(),t),{ref:function(t){return t&&r.refPaths.push(t)}}),u=a.cloneElement(l,i({},e,{strokeLinecap:"round",onMouseLeave:function(){r.setState({selected:!1})},onMouseEnter:function(){r.setState({selected:!0})},ref:null,"data-linkid":this.props.link.getID(),strokeOpacity:this.state.selected?.1:0,strokeWidth:20,onContextMenu:function(){r.props.diagramEngine.isModelLocked(r.props.link)||(event.preventDefault(),r.props.link.remove())}}));return a.createElement("g",{key:"link-"+n},l,u)},e.prototype.isSmartRoutingApplicable=function(){var t=this.props,e=t.diagramEngine,n=t.link;return!!e.isSmartRoutingEnabled()&&(2===n.points.length&&(null!==n.sourcePort&&null!==n.targetPort))},e.prototype.render=function(){var t=this,e=this.props.diagramEngine;if(!e.nodesRendered)return null;var n=this.props.link.points,r=[];if(this.isSmartRoutingApplicable()){var o=this.pathFinding.calculateDirectPath(c.first(n),c.last(n)),l=e.getRoutingMatrix(),s=this.pathFinding.calculateLinkStartEndCoords(l,o);if(s){var f=s.start,p=s.end,d=s.pathToStart,h=s.pathToEnd,g=this.pathFinding.calculateDynamicPath(l,f,p,d,h);r.push(this.generateLink(u.Toolkit.generateDynamicPath(g),{onMouseDown:function(e){t.addPointToLink(e,1)}},"0"))}}if(0===r.length)if(2===n.length){var m=Math.abs(n[0].x-n[1].x)>Math.abs(n[0].y-n[1].y)?"x":"y";Math.abs(n[0][m]-n[1][m])<50&&5;var v=n[0],y=n[1];v[m]>y[m]&&(v=n[1],y=n[0]),r.push(this.generateLink(u.Toolkit.generateCurvePath(v,y,this.props.link.curvyness),{onMouseDown:function(e){t.addPointToLink(e,1)}},"0")),null===this.props.link.targetPort&&r.push(this.generatePoint(1))}else{for(var b=function(e){r.push(_.generateLink(u.Toolkit.generateLinePath(n[e],n[e+1]),{"data-linkid":_.props.link.id,"data-point":e,onMouseDown:function(n){t.addPointToLink(n,e+1)}},e))},_=this,x=0;x<n.length-1;x++)b(x);for(var w=1;w<n.length-1;w++)r.push(this.generatePoint(w));null===this.props.link.targetPort&&r.push(this.generatePoint(n.length-1))}return this.refPaths=[],a.createElement("g",i({},this.getProps()),r,c.map(this.props.link.labels,function(e){return t.generateLabel(e)}))},e.defaultProps={color:"black",width:3,link:null,engine:null,smooth:!1,diagramEngine:null},e}(n(3).BaseWidget);e.DefaultLinkWidget=f},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(20),a=n(0),l=n(9),u=n(7),s=function(t){function e(e,n){void 0===e&&(e="Untitled"),void 0===n&&(n="rgb(0,192,255)");var r=t.call(this,"default")||this;return r.name=e,r.color=n,r}return o(e,t),e.prototype.addInPort=function(t){return this.addPort(new i.DefaultPortModel(!0,u.Toolkit.UID(),t))},e.prototype.addOutPort=function(t){return this.addPort(new i.DefaultPortModel(!1,u.Toolkit.UID(),t))},e.prototype.deSerialize=function(e,n){t.prototype.deSerialize.call(this,e,n),this.name=e.name,this.color=e.color},e.prototype.serialize=function(){return a.merge(t.prototype.serialize.call(this),{name:this.name,color:this.color})},e.prototype.getInPorts=function(){return a.filter(this.ports,function(t){return t.in})},e.prototype.getOutPorts=function(){return a.filter(this.ports,function(t){return!t.in})},e}(l.NodeModel);e.DefaultNodeModel=s},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),l=function(t){function e(e){return t.call(this,"srd-default-label",e)||this}return o(e,t),e.prototype.render=function(){return a.createElement("div",i({},this.getProps()),this.props.model.label)},e}(n(3).BaseWidget);e.DefaultLabelWidget=l},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(n(8).AbstractFactory);e.AbstractLabelFactory=i},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),a=n(40),l=n(18),u=n(39),s=function(t){function e(){return t.call(this,"default")||this}return o(e,t),e.prototype.generateReactWidget=function(t,e){return i.createElement(u.DefaultLabelWidget,{model:e})},e.prototype.getNewInstance=function(t){return new l.DefaultLabelModel},e}(a.AbstractLabelFactory);e.DefaultLabelFactory=s},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(n(8).AbstractFactory);e.AbstractPortFactory=i},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(20),a=function(t){function e(){return t.call(this,"default")||this}return o(e,t),e.prototype.getNewInstance=function(t){return new i.DefaultPortModel(!0,"unknown")},e}(n(42).AbstractPortFactory);e.DefaultPortFactory=a},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};Object.defineProperty(e,"__esModule",{value:!0});var a=n(13),l=n(0),u=n(21),s=n(9),c=n(12),f=n(5),p=function(t){function e(){var e=t.call(this)||this;return e.links={},e.nodes={},e.offsetX=0,e.offsetY=0,e.zoom=100,e.rendered=!1,e.gridSize=0,e}return o(e,t),e.prototype.setGridSize=function(t){void 0===t&&(t=0),this.gridSize=t,this.iterateListeners(function(e,n){e.gridUpdated&&e.gridUpdated(i({},n,{size:t}))})},e.prototype.getGridPosition=function(t){return 0===this.gridSize?t:this.gridSize*Math.floor((t+this.gridSize/2)/this.gridSize)},e.prototype.deSerializeDiagram=function(t,e){var n=this;this.deSerialize(t,e),this.offsetX=t.offsetX,this.offsetY=t.offsetY,this.zoom=t.zoom,this.gridSize=t.gridSize,l.forEach(t.nodes,function(t){var r=e.getNodeFactory(t.type).getNewInstance(t);r.setParent(n),r.deSerialize(t,e),n.addNode(r)}),l.forEach(t.links,function(t){var r=e.getLinkFactory(t.type).getNewInstance();r.setParent(n),r.deSerialize(t,e),n.addLink(r)})},e.prototype.serializeDiagram=function(){return l.merge(this.serialize(),{offsetX:this.offsetX,offsetY:this.offsetY,zoom:this.zoom,gridSize:this.gridSize,links:l.map(this.links,function(t){return t.serialize()}),nodes:l.map(this.nodes,function(t){return t.serialize()})})},e.prototype.clearSelection=function(t){void 0===t&&(t=null),l.forEach(this.getSelectedItems(),function(e){t&&t.getID()===e.getID()||e.setSelected(!1)})},e.prototype.getSelectedItems=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];Array.isArray(t)||(t=[t]);var n=[];return n=(n=(n=n.concat(l.flatMap(this.nodes,function(t){return t.getSelectedEntities()}))).concat(l.flatMap(this.links,function(t){return t.getSelectedEntities()}))).concat(l.flatMap(this.links,function(t){return l.flatMap(t.points,function(t){return t.getSelectedEntities()})})),n=l.uniq(n),t.length>0&&(n=l.filter(l.uniq(n),function(e){return!!(l.includes(t,"node")&&e instanceof s.NodeModel)||(!!(l.includes(t,"link")&&e instanceof u.LinkModel)||(!!(l.includes(t,"port")&&e instanceof c.PortModel)||!!(l.includes(t,"point")&&e instanceof f.PointModel)))})),n},e.prototype.setZoomLevel=function(t){this.zoom=t,this.iterateListeners(function(e,n){e.zoomUpdated&&e.zoomUpdated(i({},n,{zoom:t}))})},e.prototype.setOffset=function(t,e){this.offsetX=t,this.offsetY=e,this.iterateListeners(function(n,r){n.offsetUpdated&&n.offsetUpdated(i({},r,{offsetX:t,offsetY:e}))})},e.prototype.setOffsetX=function(t){var e=this;this.offsetX=t,this.iterateListeners(function(n,r){n.offsetUpdated&&n.offsetUpdated(i({},r,{offsetX:t,offsetY:e.offsetY}))})},e.prototype.setOffsetY=function(t){var e=this;this.offsetY=t,this.iterateListeners(function(t,n){t.offsetUpdated&&t.offsetUpdated(i({},n,{offsetX:e.offsetX,offsetY:e.offsetY}))})},e.prototype.getOffsetY=function(){return this.offsetY},e.prototype.getOffsetX=function(){return this.offsetX},e.prototype.getZoomLevel=function(){return this.zoom},e.prototype.getNode=function(t){return t instanceof s.NodeModel?t:this.nodes[t]?this.nodes[t]:null},e.prototype.getLink=function(t){return t instanceof u.LinkModel?t:this.links[t]?this.links[t]:null},e.prototype.addAll=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return l.forEach(e,function(e){e instanceof u.LinkModel?t.addLink(e):e instanceof s.NodeModel&&t.addNode(e)}),e},e.prototype.addLink=function(t){var e=this;return t.addListener({entityRemoved:function(){e.removeLink(t)}}),this.links[t.getID()]=t,this.iterateListeners(function(e,n){e.linksUpdated&&e.linksUpdated(i({},n,{link:t,isCreated:!0}))}),t},e.prototype.addNode=function(t){var e=this;return t.addListener({entityRemoved:function(){e.removeNode(t)}}),this.nodes[t.getID()]=t,this.iterateListeners(function(e,n){e.nodesUpdated&&e.nodesUpdated(i({},n,{node:t,isCreated:!0}))}),t},e.prototype.removeLink=function(t){t=this.getLink(t),delete this.links[t.getID()],this.iterateListeners(function(e,n){e.linksUpdated&&e.linksUpdated(i({},n,{link:t,isCreated:!1}))})},e.prototype.removeNode=function(t){t=this.getNode(t),delete this.nodes[t.getID()],this.iterateListeners(function(e,n){e.nodesUpdated&&e.nodesUpdated(i({},n,{node:t,isCreated:!1}))})},e.prototype.getLinks=function(){return this.links},e.prototype.getNodes=function(){return this.nodes},e}(a.BaseEntity);e.DiagramModel=p},function(t,e,n){"use strict";function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),r(n(7)),r(n(13)),r(n(49)),r(n(38)),r(n(20)),r(n(19)),r(n(18)),r(n(48)),r(n(47)),r(n(43)),r(n(41)),r(n(37)),r(n(39)),r(n(35)),r(n(34)),r(n(8)),r(n(40)),r(n(36)),r(n(32)),r(n(42)),r(n(16)),r(n(11)),r(n(31)),r(n(30)),r(n(29)),r(n(6)),r(n(44)),r(n(21)),r(n(9)),r(n(5)),r(n(12)),r(n(17)),r(n(46)),r(n(27)),r(n(25)),r(n(33)),r(n(3)),r(n(28)),r(n(26))},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t};Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),l=n(0),u=n(28),s=n(26),c=n(7),f=n(31),p=n(30),d=n(29),h=n(9),g=n(5),m=n(12),v=function(t){function e(e){var n=t.call(this,"srd-diagram",e)||this;return n.onKeyUpPointer=null,n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n.state={action:null,wasMoved:!1,renderedNodes:!1,windowListener:null,diagramEngineListener:null,document:null},n}return o(e,t),e.prototype.componentWillUnmount=function(){this.props.diagramEngine.removeListener(this.state.diagramEngineListener),this.props.diagramEngine.setCanvas(null),window.removeEventListener("keyup",this.onKeyUpPointer),window.removeEventListener("mouseUp",this.onMouseUp),window.removeEventListener("mouseMove",this.onMouseMove)},e.prototype.componentWillReceiveProps=function(t){var e=this;if(this.props.diagramEngine!==t.diagramEngine){this.props.diagramEngine.removeListener(this.state.diagramEngineListener);var n=t.diagramEngine.addListener({repaintCanvas:function(){return e.forceUpdate()}});this.setState({diagramEngineListener:n})}},e.prototype.componentWillUpdate=function(t){this.props.diagramEngine.diagramModel.id!==t.diagramEngine.diagramModel.id&&(this.setState({renderedNodes:!1}),t.diagramEngine.diagramModel.rendered=!0),t.diagramEngine.diagramModel.rendered||(this.setState({renderedNodes:!1}),t.diagramEngine.diagramModel.rendered=!0)},e.prototype.componentDidUpdate=function(){this.state.renderedNodes||this.setState({renderedNodes:!0})},e.prototype.componentDidMount=function(){var t=this;this.onKeyUpPointer=this.onKeyUp.bind(this),this.setState({document:document,renderedNodes:!0,diagramEngineListener:this.props.diagramEngine.addListener({repaintCanvas:function(){t.forceUpdate()}})}),window.addEventListener("keyup",this.onKeyUpPointer,!1),window.focus()},e.prototype.getMouseElement=function(t){var e=t.target,n=this.props.diagramEngine.diagramModel,r=c.Toolkit.closest(e,".port[data-name]");if(r){var o=c.Toolkit.closest(e,".node[data-nodeid]");return{model:n.getNode(o.getAttribute("data-nodeid")).getPort(r.getAttribute("data-name")),element:r}}return(r=c.Toolkit.closest(e,".point[data-id]"))?{model:n.getLink(r.getAttribute("data-linkid")).getPointModel(r.getAttribute("data-id")),element:r}:(r=c.Toolkit.closest(e,"[data-linkid]"))?{model:n.getLink(r.getAttribute("data-linkid")),element:r}:(r=c.Toolkit.closest(e,".node[data-nodeid]"))?{model:n.getNode(r.getAttribute("data-nodeid")),element:r}:null},e.prototype.fireAction=function(){this.state.action&&this.props.actionStillFiring&&this.props.actionStillFiring(this.state.action)},e.prototype.stopFiringAction=function(t){this.props.actionStoppedFiring&&!t&&this.props.actionStoppedFiring(this.state.action),this.setState({action:null})},e.prototype.startFiringAction=function(t){var e=!0;this.props.actionStartedFiring&&(e=this.props.actionStartedFiring(t)),e&&this.setState({action:t})},e.prototype.onMouseMove=function(t){var e=this,n=this.props.diagramEngine,r=n.getDiagramModel();if(this.state.action instanceof d.SelectingAction){var o=n.getRelativePoint(t.clientX,t.clientY);return l.forEach(r.getNodes(),function(t){e.state.action.containsElement(t.x,t.y,r)&&t.setSelected(!0)}),l.forEach(r.getLinks(),function(t){var n=!0;l.forEach(t.points,function(t){e.state.action.containsElement(t.x,t.y,r)?t.setSelected(!0):n=!1}),n&&t.setSelected(!0)}),this.state.action.mouseX2=o.x,this.state.action.mouseY2=o.y,this.fireAction(),void this.setState({action:this.state.action})}if(this.state.action instanceof p.MoveItemsAction){var i=t.clientX-this.state.action.mouseX,a=t.clientY-this.state.action.mouseY,u=r.getZoomLevel()/100;l.forEach(this.state.action.selectionModels,function(t){t.model instanceof h.NodeModel||t.model instanceof g.PointModel&&!t.model.isConnectedToPort()?(t.model.x=r.getGridPosition(t.initialX+i/u),t.model.y=r.getGridPosition(t.initialY+a/u),t.model instanceof h.NodeModel&&l.forEach(t.model.getPorts(),function(t){var n=e.props.diagramEngine.getPortCoords(t);t.updateCoords(n)}),n.isSmartRoutingEnabled()&&n.calculateRoutingMatrix()):t.model instanceof g.PointModel&&(t.model.x=t.initialX+r.getGridPosition(i/u),t.model.y=t.initialY+r.getGridPosition(a/u))}),n.isSmartRoutingEnabled()&&n.calculateCanvasMatrix(),this.fireAction(),this.state.wasMoved?this.forceUpdate():this.setState({wasMoved:!0})}else this.state.action instanceof f.MoveCanvasAction&&this.props.allowCanvasTranslation&&(r.setOffset(this.state.action.initialOffsetX+(t.clientX-this.state.action.mouseX),this.state.action.initialOffsetY+(t.clientY-this.state.action.mouseY)),this.fireAction(),this.forceUpdate())},e.prototype.onKeyUp=function(t){var e=this;-1!==this.props.deleteKeys.indexOf(t.keyCode)&&(l.forEach(this.props.diagramEngine.getDiagramModel().getSelectedItems(),function(t){e.props.diagramEngine.isModelLocked(t)||t.remove()}),this.forceUpdate())},e.prototype.onMouseUp=function(t){var e=this,n=this.props.diagramEngine;if(this.state.action instanceof p.MoveItemsAction){var r=this.getMouseElement(t);l.forEach(this.state.action.selectionModels,function(t){if(t.model instanceof g.PointModel&&r&&r.model instanceof m.PortModel&&!n.isModelLocked(r.model)){var o=t.model.getLink();if(null!==o.getTargetPort())if(o.getTargetPort()!==r.model&&o.getSourcePort()!==r.model){var i=o.getTargetPort(),a=o.clone({});a.setSourcePort(r.model),a.setTargetPort(i),o.setTargetPort(r.model),i.removeLink(o),a.removePointsBefore(a.getPoints()[o.getPointIndex(t.model)]),o.removePointsAfter(t.model),n.getDiagramModel().addLink(a)}else o.getTargetPort()===r.model?o.removePointsAfter(t.model):o.getSourcePort()===r.model&&o.removePointsBefore(t.model);else o.setTargetPort(r.model);delete e.props.diagramEngine.linksThatHaveInitiallyRendered[o.getID()]}}),!this.props.allowLooseLinks&&this.state.wasMoved&&l.forEach(this.state.action.selectionModels,function(t){if(t.model instanceof g.PointModel){var e=t.model.getLink();null!==e.getSourcePort()&&null!==e.getTargetPort()||e.remove()}}),l.forEach(this.state.action.selectionModels,function(t){if(t.model instanceof g.PointModel){var e=t.model.getLink(),n=e.getSourcePort(),r=e.getTargetPort();null!==n&&null!==r&&(n.canLinkToPort(r)?l.some(l.values(r.getLinks()),function(t){return t!==e&&(t.getSourcePort()===n||t.getTargetPort()===n)})&&e.remove():e.remove())}}),n.clearRepaintEntities(),this.stopFiringAction(!this.state.wasMoved)}else n.clearRepaintEntities(),this.stopFiringAction();this.state.document.removeEventListener("mousemove",this.onMouseMove),this.state.document.removeEventListener("mouseup",this.onMouseUp)},e.prototype.drawSelectionBox=function(){var t=this.state.action.getBoxDimensions();return a.createElement("div",{className:this.bem("__selector"),style:{top:t.top,left:t.left,width:t.width,height:t.height}})},e.prototype.render=function(){var t=this,e=this.props.diagramEngine;e.setMaxNumberPointsPerLink(this.props.maxNumberPointsPerLink),e.setSmartRoutingStatus(this.props.smartRouting);var n=e.getDiagramModel();return a.createElement("div",i({},this.getProps(),{ref:function(e){e&&t.props.diagramEngine.setCanvas(e)},onWheel:function(r){if(t.props.allowCanvasZoom){r.preventDefault(),r.stopPropagation();var o=n.getZoomLevel()/100,i=t.props.inverseZoom?-r.deltaY:r.deltaY;r.ctrlKey&&i%1!=0?i/=3:i/=60,n.getZoomLevel()+i>10&&n.setZoomLevel(n.getZoomLevel()+i);var a=n.getZoomLevel()/100,l=r.currentTarget.getBoundingClientRect(),u=l.width,s=l.height,c=u*a-u*o,f=s*a-s*o,p=r.clientX-l.left,d=r.clientY-l.top,h=(p-n.getOffsetX())/o/u,g=(d-n.getOffsetY())/o/s;n.setOffset(n.getOffsetX()-c*h,n.getOffsetY()-f*g),e.enableRepaintEntities([]),t.forceUpdate()}},onMouseDown:function(r){t.setState(i({},t.state,{wasMoved:!1})),e.clearRepaintEntities();var o=t.getMouseElement(r);if(null===o)if(r.shiftKey){var a=e.getRelativePoint(r.clientX,r.clientY);t.startFiringAction(new d.SelectingAction(a.x,a.y))}else n.clearSelection(),t.startFiringAction(new f.MoveCanvasAction(r.clientX,r.clientY,n));else if(o.model instanceof m.PortModel)if(t.props.diagramEngine.isModelLocked(o.model))n.clearSelection();else{a=e.getRelativeMousePoint(r);var l=o.model,u=l.createLinkModel();u.setSourcePort(l),u&&(u.removeMiddlePoints(),u.getSourcePort()!==l&&u.setSourcePort(l),u.setTargetPort(null),u.getFirstPoint().updateLocation(a),u.getLastPoint().updateLocation(a),n.clearSelection(),u.getLastPoint().setSelected(!0),n.addLink(u),t.startFiringAction(new p.MoveItemsAction(r.clientX,r.clientY,e)))}else r.shiftKey||o.model.isSelected()||n.clearSelection(),o.model.setSelected(!0),t.startFiringAction(new p.MoveItemsAction(r.clientX,r.clientY,e));t.state.document.addEventListener("mousemove",t.onMouseMove),t.state.document.addEventListener("mouseup",t.onMouseUp)}}),this.state.renderedNodes&&a.createElement(u.LinkLayerWidget,{diagramEngine:e,pointAdded:function(r,o){t.state.document.addEventListener("mousemove",t.onMouseMove),t.state.document.addEventListener("mouseup",t.onMouseUp),o.stopPropagation(),n.clearSelection(r),t.setState({action:new p.MoveItemsAction(o.clientX,o.clientY,e)})}}),a.createElement(s.NodeLayerWidget,{diagramEngine:e}),this.state.action instanceof d.SelectingAction&&this.drawSelectionBox())},e.defaultProps={diagramEngine:null,allowLooseLinks:!0,allowCanvasTranslation:!0,allowCanvasZoom:!0,inverseZoom:!1,maxNumberPointsPerLink:1/0,smartRouting:!1,deleteKeys:[46,8]},e}(n(3).BaseWidget);e.DiagramWidget=v},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(38),a=n(1),l=n(35),u=function(t){function e(){return t.call(this,"default")||this}return o(e,t),e.prototype.generateReactWidget=function(t,e){return a.createElement(l.DefaultNodeWidget,{node:e,diagramEngine:t})},e.prototype.getNewInstance=function(t){return new i.DefaultNodeModel},e}(n(32).AbstractNodeFactory);e.DefaultNodeFactory=u},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),a=n(37),l=n(36),u=n(19),s=function(t){function e(){return t.call(this,"default")||this}return o(e,t),e.prototype.generateReactWidget=function(t,e){return i.createElement(a.DefaultLinkWidget,{link:e,diagramEngine:t})},e.prototype.getNewInstance=function(t){return new u.DefaultLinkModel},e.prototype.generateLinkSegment=function(t,e,n,r){return i.createElement("path",{className:n?e.bem("--path-selected"):"",strokeWidth:t.width,stroke:t.color,d:r})},e}(l.AbstractLinkFactory);e.DefaultLinkFactory=s},function(t,e,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(13),a=n(44),l=n(0),u=n(9),s=n(5),c=n(45),f=n(16),p=n(43),d=n(41),h=n(7),g=function(t){function e(){var e=t.call(this)||this;return e.canvasMatrix=[],e.routingMatrix=[],e.hAdjustmentFactor=0,e.vAdjustmentFactor=0,e.calculateMatrixDimensions=function(){var t=l.values(e.diagramModel.nodes).map(function(t){return{x:t.x,width:t.width,y:t.y,height:t.height}}),n=l.values(e.diagramModel.links),r=l.flatMap(n.map(function(t){return[t.sourcePort,t.targetPort]})).filter(function(t){return null!==t}).map(function(t){return{x:t.x,width:t.width,y:t.y,height:t.height}}),o=l.flatMap(n.map(function(t){return t.points})).map(function(t){return{x:t.x,width:0,y:t.y,height:0}}),i=e.canvas,a=Math.floor(Math.min(l.minBy(l.concat(t,r,o),function(t){return t.x}).x,0)/f.ROUTING_SCALING_FACTOR)*f.ROUTING_SCALING_FACTOR,u=l.maxBy(l.concat(t,r,o),function(t){return t.x+t.width}),s=Math.max(u.x+u.width,i.offsetWidth),c=Math.floor(Math.min(l.minBy(l.concat(t,r,o),function(t){return t.y}).y,0)/f.ROUTING_SCALING_FACTOR)*f.ROUTING_SCALING_FACTOR,p=l.maxBy(l.concat(t,r,o),function(t){return t.y+t.height}),d=Math.max(p.y+p.height,i.offsetHeight);return{width:Math.ceil(Math.abs(a)+s),hAdjustmentFactor:Math.abs(a)/f.ROUTING_SCALING_FACTOR+1,height:Math.ceil(Math.abs(c)+d),vAdjustmentFactor:Math.abs(c)/f.ROUTING_SCALING_FACTOR+1}},e.markNodes=function(t){l.values(e.diagramModel.nodes).forEach(function(n){for(var r=Math.floor(n.x/f.ROUTING_SCALING_FACTOR),o=Math.ceil((n.x+n.width)/f.ROUTING_SCALING_FACTOR),i=Math.floor(n.y/f.ROUTING_SCALING_FACTOR),a=Math.ceil((n.y+n.height)/f.ROUTING_SCALING_FACTOR),l=r-1;l<=o+1;l++)for(var u=i-1;u<a+1;u++)e.markMatrixPoint(t,e.translateRoutingX(l),e.translateRoutingY(u))})},e.markPorts=function(t){l.flatMap(l.values(e.diagramModel.links).map(function(t){return[].concat(t.sourcePort,t.targetPort)})).filter(function(t){return null!==t}).forEach(function(n){for(var r=Math.floor(n.x/f.ROUTING_SCALING_FACTOR),o=Math.ceil((n.x+n.width)/f.ROUTING_SCALING_FACTOR),i=Math.floor(n.y/f.ROUTING_SCALING_FACTOR),a=Math.ceil((n.y+n.height)/f.ROUTING_SCALING_FACTOR),l=r-1;l<=o+1;l++)for(var u=i-1;u<a+1;u++)e.markMatrixPoint(t,e.translateRoutingX(l),e.translateRoutingY(u))})},e.markMatrixPoint=function(t,e,n){void 0!==t[n]&&void 0!==t[n][e]&&(t[n][e]=1)},e.diagramModel=new a.DiagramModel,e.nodeFactories={},e.linkFactories={},e.portFactories={},e.labelFactories={},e.canvas=null,e.paintableWidgets=null,e.linksThatHaveInitiallyRendered={},h.Toolkit.TESTING&&(h.Toolkit.TESTING_UID=0,window&&(window.diagram_instance=e)),e}return o(e,t),e.prototype.installDefaultFactories=function(){this.registerNodeFactory(new c.DefaultNodeFactory),this.registerLinkFactory(new c.DefaultLinkFactory),this.registerPortFactory(new p.DefaultPortFactory),this.registerLabelFactory(new d.DefaultLabelFactory)},e.prototype.repaintCanvas=function(){this.iterateListeners(function(t){t.repaintCanvas&&t.repaintCanvas()})},e.prototype.clearRepaintEntities=function(){this.paintableWidgets=null},e.prototype.enableRepaintEntities=function(t){var e=this;this.paintableWidgets={},t.forEach(function(t){t instanceof u.NodeModel&&l.forEach(t.getPorts(),function(t){l.forEach(t.getLinks(),function(t){e.paintableWidgets[t.getID()]=!0})}),t instanceof s.PointModel&&(e.paintableWidgets[t.getLink().getID()]=!0),e.paintableWidgets[t.getID()]=!0})},e.prototype.isModelLocked=function(t){return!!this.diagramModel.isLocked()||t.isLocked()},e.prototype.recalculatePortsVisually=function(){this.nodesRendered=!1,this.linksThatHaveInitiallyRendered={}},e.prototype.canEntityRepaint=function(t){return null===this.paintableWidgets||void 0!==this.paintableWidgets[t.getID()]},e.prototype.setCanvas=function(t){this.canvas=t},e.prototype.setDiagramModel=function(t){this.diagramModel=t,this.recalculatePortsVisually()},e.prototype.getDiagramModel=function(){return this.diagramModel},
- //!-------------- FACTORIES ------------
- e.prototype.getNodeFactories=function(){return this.nodeFactories},e.prototype.getLinkFactories=function(){return this.linkFactories},e.prototype.getLabelFactories=function(){return this.labelFactories},e.prototype.registerLabelFactory=function(t){this.labelFactories[t.getType()]=t,this.iterateListeners(function(t){t.labelFactoriesUpdated&&t.labelFactoriesUpdated()})},e.prototype.registerPortFactory=function(t){this.portFactories[t.getType()]=t,this.iterateListeners(function(t){t.portFactoriesUpdated&&t.portFactoriesUpdated()})},e.prototype.registerNodeFactory=function(t){this.nodeFactories[t.getType()]=t,this.iterateListeners(function(t){t.nodeFactoriesUpdated&&t.nodeFactoriesUpdated()})},e.prototype.registerLinkFactory=function(t){this.linkFactories[t.getType()]=t,this.iterateListeners(function(t){t.linkFactoriesUpdated&&t.linkFactoriesUpdated()})},e.prototype.getPortFactory=function(t){if(this.portFactories[t])return this.portFactories[t];throw new Error("cannot find factory for port of type: ["+t+"]")},e.prototype.getNodeFactory=function(t){if(this.nodeFactories[t])return this.nodeFactories[t];throw new Error("cannot find factory for node of type: ["+t+"]")},e.prototype.getLinkFactory=function(t){if(this.linkFactories[t])return this.linkFactories[t];throw new Error("cannot find factory for link of type: ["+t+"]")},e.prototype.getLabelFactory=function(t){if(this.labelFactories[t])return this.labelFactories[t];throw new Error("cannot find factory for label of type: ["+t+"]")},e.prototype.getFactoryForNode=function(t){return this.getNodeFactory(t.getType())},e.prototype.getFactoryForLink=function(t){return this.getLinkFactory(t.getType())},e.prototype.getFactoryForLabel=function(t){return this.getLabelFactory(t.getType())},e.prototype.generateWidgetForLink=function(t){var e=this.getFactoryForLink(t);if(!e)throw new Error("Cannot find link factory for link: "+t.getType());return e.generateReactWidget(this,t)},e.prototype.generateWidgetForNode=function(t){var e=this.getFactoryForNode(t);if(!e)throw new Error("Cannot find widget factory for node: "+t.getType());return e.generateReactWidget(this,t)},e.prototype.getRelativeMousePoint=function(t){var e=this.getRelativePoint(t.clientX,t.clientY);return{x:(e.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100),y:(e.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)}},e.prototype.getRelativePoint=function(t,e){var n=this.canvas.getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getNodeElement=function(t){var e=this.canvas.querySelector('.node[data-nodeid="'+t.getID()+'"]');if(null===e)throw new Error("Cannot find Node element with nodeID: ["+t.getID()+"]");return e},e.prototype.getNodePortElement=function(t){var e=this.canvas.querySelector('.port[data-name="'+t.getName()+'"][data-nodeid="'+t.getParent().getID()+'"]');if(null===e)throw new Error("Cannot find Node Port element with nodeID: ["+t.getParent().getID()+"] and name: ["+t.getName()+"]");return e},e.prototype.getPortCenter=function(t){var e=this.getNodePortElement(t),n=e.getBoundingClientRect(),r=this.getRelativePoint(n.left,n.top);return{x:e.offsetWidth/2+(r.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100),y:e.offsetHeight/2+(r.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)}},e.prototype.getPortCoords=function(t){var e=this.getNodePortElement(t).getBoundingClientRect(),n=this.canvas.getBoundingClientRect();return{x:(e.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100)-n.left,y:(e.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)-n.top,width:e.width,height:e.height}},e.prototype.getNodeDimensions=function(t){if(!this.canvas)return{width:0,height:0};var e=this.getNodeElement(t).getBoundingClientRect();return{width:e.width,height:e.height}},e.prototype.getMaxNumberPointsPerLink=function(){return this.maxNumberPointsPerLink},e.prototype.setMaxNumberPointsPerLink=function(t){this.maxNumberPointsPerLink=t},e.prototype.isSmartRoutingEnabled=function(){return!!this.smartRouting},e.prototype.setSmartRoutingStatus=function(t){this.smartRouting=t},e.prototype.getCanvasMatrix=function(){return 0===this.canvasMatrix.length&&this.calculateCanvasMatrix(),this.canvasMatrix},e.prototype.calculateCanvasMatrix=function(){var t=this.calculateMatrixDimensions(),e=t.width,n=t.hAdjustmentFactor,r=t.height,o=t.vAdjustmentFactor;this.hAdjustmentFactor=n,this.vAdjustmentFactor=o;var i=Math.ceil(e/f.ROUTING_SCALING_FACTOR),a=Math.ceil(r/f.ROUTING_SCALING_FACTOR);this.canvasMatrix=l.range(0,a).map(function(){return new Array(i).fill(0)})},e.prototype.getRoutingMatrix=function(){return 0===this.routingMatrix.length&&this.calculateRoutingMatrix(),this.routingMatrix},e.prototype.calculateRoutingMatrix=function(){var t=l.cloneDeep(this.getCanvasMatrix());this.markNodes(t),this.markPorts(t),this.routingMatrix=t},e.prototype.translateRoutingX=function(t,e){return void 0===e&&(e=!1),t+this.hAdjustmentFactor*(e?-1:1)},e.prototype.translateRoutingY=function(t,e){return void 0===e&&(e=!1),t+this.vAdjustmentFactor*(e?-1:1)},e.prototype.zoomToFit=function(){var t=this.canvas.clientWidth/this.canvas.scrollWidth,e=this.canvas.clientHeight/this.canvas.scrollHeight,n=t<e?t:e;this.diagramModel.setZoomLevel(this.diagramModel.getZoomLevel()*n),this.diagramModel.setOffset(0,0),this.repaintCanvas()},e}(i.BaseEntity);e.DiagramEngine=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(t){return t*t},i=function(t,e){var n=r(t,2),i=n[0],a=n[1],l=r(e,2),u=l[0],s=l[1];return Math.sqrt(o(i-u)+o(a-s))};e.default={distPointToPoint:i,distPointToParabol:function(t,e){var n=i(t,e);return 0==n?1/0:o(n)/(2*Math.abs(t[1]-e[1]))},circumCenter:function(t,e,n){var r=(t[0]-n[0])*(e[1]-n[1])-(e[0]-n[0])*(t[1]-n[1]);return 0==r?[1/0,1/0]:[(((t[0]-n[0])*(t[0]+n[0])+(t[1]-n[1])*(t[1]+n[1]))/2*(e[1]-n[1])-((e[0]-n[0])*(e[0]+n[0])+(e[1]-n[1])*(e[1]+n[1]))/2*(t[1]-n[1]))/r,(((e[0]-n[0])*(e[0]+n[0])+(e[1]-n[1])*(e[1]+n[1]))/2*(t[0]-n[0])-((t[0]-n[0])*(t[0]+n[0])+(t[1]-n[1])*(t[1]+n[1]))/2*(e[0]-n[0]))/r]},parabolsCrossX:function(t,e,n){if(t[1]===e[1])return[(t[0]+e[0])/2,(t[0]+e[0])/2];var r=(t[1]*e[0]-t[0]*e[1]+t[0]*n-e[0]*n+Math.sqrt((t[0]*t[0]+t[1]*t[1]-2*t[0]*e[0]+e[0]*e[0]-2*t[1]*e[1]+e[1]*e[1])*(t[1]*e[1]-t[1]*n-e[1]*n+n*n)))/(t[1]-e[1]),o=(t[1]*e[0]-t[0]*e[1]+t[0]*n-e[0]*n-Math.sqrt((t[0]*t[0]+t[1]*t[1]-2*t[0]*e[0]+e[0]*e[0]-2*t[1]*e[1]+e[1]*e[1])*(t[1]*e[1]-t[1]*n-e[1]*n+n*n)))/(t[1]-e[1]);return r<o?[r,o]:[o,r]},doHalflinesCross:function(t,e){var n=arguments.length<=2||void 0===arguments[2]?1e-10:arguments[2],r=e.ps[0]-t.ps[0],o=e.ps[1]-t.ps[1];if(t.m==1/0)return t.hp*(e.m*r-o)<=n&&e.vec[0]*r<=n;if(e.m==1/0)return e.hp*(t.m*r-o)>=-n&&t.vec[0]*r>=-n;var i=e.vec[0]*t.vec[1]-e.vec[1]*t.vec[0];if(0===i)return!1;var a=(o*e.vec[0]-r*e.vec[1])/i,l=(o*t.vec[0]-r*t.vec[1])/i;return a>=-n&&l>=n||a>=n&&l>=-n},matrixTransform:function(t,e){return t.map(function(t){return{x:t.x*e[0]+t.y*e[2]+e[4],y:t.x*e[1]+t.y*e[3]+e[5]}})},transformEllipse:function(t,e,n,r){var o=Math.PI/180,i=Math.cos(n*o),a=Math.sin(n*o),l=[t*(r[0]*i+r[2]*a),t*(r[1]*i+r[3]*a),e*(-r[0]*a+r[2]*i),e*(-r[1]*a+r[3]*i)],u=l[0]*l[0]+l[2]*l[2],s=l[1]*l[1]+l[3]*l[3],c=((l[0]-l[3])*(l[0]-l[3])+(l[2]+l[1])*(l[2]+l[1]))*((l[0]+l[3])*(l[0]+l[3])+(l[2]-l[1])*(l[2]-l[1])),f=(u+s)/2;if(c<1e-10*f)return{rx:Math.sqrt(f),ry:Math.sqrt(f),ax:0,isDegenerate:!1};var p=l[0]*l[1]+l[2]*l[3],d=f+(c=Math.sqrt(c))/2,h=f-c/2,g=void 0,m=void 0,v=void 0;return(g=Math.abs(p)<1e-10&&Math.abs(d-s)<1e-10?90:180*Math.atan(Math.abs(p)>Math.abs(d-s)?(d-u)/p:p/(d-s))/Math.PI)>=0?(m=Math.sqrt(d),v=Math.sqrt(h)):(g+=90,m=Math.sqrt(h),v=Math.sqrt(d)),{rx:m,ry:v,ax:g,isDegenerate:m<1e-10*v||v<1e-10*m}}},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(50),i=function t(e){var n=e||[],i=function(t){return t.command+" "+t.params.map(function(t){return e=6,function(t,e){for(var n=t.length;"0"===t.charAt(n-1);)n-=1;return"."===t.charAt(n-1)&&(n-=1),t.substr(0,n)}(t.toFixed(e));var e}).join(" ")},a=function(t,e){var n=t.command,r=t.params;switch(n){case"M":case"L":return[r[0],r[1]];case"H":return[r[0],e[1]];case"V":return[e[0],r[0]];case"Z":return null;case"C":return[r[4],r[5]];case"S":case"Q":return[r[2],r[3]];case"T":return[r[0],r[1]];case"A":return[r[5],r[6]]}},l=function(t,e,n){var r=t.params,i={V:function(t,e,n){var i=[{x:n[0],y:r[1]}],a=(0,o.matrixTransform)(i,e);return a[0].x===(0,o.matrixTransform)([{x:n[0],y:n[1]}])[0].x?{command:"V",params:[a[0].y]}:{command:"L",params:[a[0].x,a[0].y]}},H:function(t,e,n){var i=[{x:r[0],y:n[1]}],a=(0,o.matrixTransform)(i,e);return a[0].y===(0,o.matrixTransform)([{x:n[0],y:n[1]}])[0].y?{command:"H",params:[a[0].x]}:{command:"L",params:[a[0].x,a[0].y]}},A:function(t,e,n){var i=(0,o.transformEllipse)(r[0],r[1],r[2],e),a=r[4];e[0]*e[3]-e[1]*e[2]<0&&(a=a?"0":"1");var l=[{x:r[5],y:r[6]}],u=(0,o.matrixTransform)(l,e);return i.isDegenerate?{command:"L",params:[u[0].x,u[0].y]}:{command:"A",params:[i.rx,i.ry,i.ax,r[3],a,u[0].x,u[0].y]}},C:function(t,e,n){var i=[{x:r[0],y:r[1]},{x:r[2],y:r[3]},{x:r[4],y:r[5]}],a=(0,o.matrixTransform)(i,e);return{command:"C",params:[a[0].x,a[0].y,a[1].x,a[1].y,a[2].x,a[2].y]}},Z:function(t,e,n){return{command:"Z",params:[]}},default:function(t,e,n){var i=[{x:r[0],y:r[1]}],a=(0,o.matrixTransform)(i,e),l=t.params.slice(0,t.params.length);return l.splice(0,2,a[0].x,a[0].y),{command:t.command,params:l}}};return i[t.command]?i[t.command](t,e,n):i.default(t,e,n)},u=function(t,e){return function(n){var r="object"==typeof n?t.map(function(t){return n[t]}):arguments;return e.apply(null,r)}},s=function(e){return t((o=e,(i=(r=n).slice(0,r.length)).push(o),i));var r,o,i};return{moveto:u(["x","y"],function(t,e){return s({command:"M",params:[t,e]})}),lineto:u(["x","y"],function(t,e){return s({command:"L",params:[t,e]})}),hlineto:u(["x"],function(t){return s({command:"H",params:[t]})}),vlineto:u(["y"],function(t){return s({command:"V",params:[t]})}),closepath:function(){return s({command:"Z",params:[]})},curveto:u(["x1","y1","x2","y2","x","y"],function(t,e,n,r,o,i){return s({command:"C",params:[t,e,n,r,o,i]})}),smoothcurveto:u(["x2","y2","x","y"],function(t,e,n,r){return s({command:"S",params:[t,e,n,r]})}),qcurveto:u(["x1","y1","x","y"],function(t,e,n,r){return s({command:"Q",params:[t,e,n,r]})}),smoothqcurveto:u(["x","y"],function(t,e){return s({command:"T",params:[t,e]})}),arc:u(["rx","ry","xrot","largeArcFlag","sweepFlag","x","y"],function(t,e,n,r,o,i,a){return s({command:"A",params:[t,e,n,r,o,i,a]})}),translate:u(["dx","dy"],function(){var e=arguments.length<=0||void 0===arguments[0]?0:arguments[0],r=arguments.length<=1||void 0===arguments[1]?0:arguments[1];if(0===e&&0===e)return t(n);var o,i,u,s=(o=[0,0],i=[1,0,0,1,e,r],u=n.map(function(t){var e=l(t,i,o);return o=a(t,o),e}),{v:t(u)});return"object"==typeof s?s.v:void 0}),rotate:u(["angle","rx","ry"],function(e){var r=arguments.length<=1||void 0===arguments[1]?0:arguments[1],o=arguments.length<=2||void 0===arguments[2]?0:arguments[2];if(0===e)return t(n);var i=function(){var i=void 0,u=void 0,s=n;0!==r&&0!==o&&(i=[0,0],u=[1,0,0,1,-r,-o],s=s.map(function(t){var e=l(t,u,i);return i=a(t,i),e}));var c=e*Math.PI/180,f=Math.cos(c),p=Math.sin(c);return i=[0,0],u=[f,p,-p,f,0,0],s=s.map(function(t){var e=l(t,u,i);return i=a(t,i),e}),0!==r&&0!==o&&(i=[0,0],u=[1,0,0,1,r,o],s=s.map(function(t){var e=l(t,u,i);return i=a(t,i),e})),{v:t(s)}}();return"object"==typeof i?i.v:void 0}),scale:u(["sx","sy"],function(){var e=arguments.length<=0||void 0===arguments[0]?1:arguments[0],r=arguments.length<=1||void 0===arguments[1]?e:arguments[1];return function(){if(1===e&&1===r)return t(n);var o,i,u,s=(o=[0,0],i=[e,0,0,r,0,0],u=n.map(function(t){var e=l(t,i,o);return o=a(t,o),e}),{v:t(u)});return"object"==typeof s?s.v:void 0}()}),shearX:u(["angle"],function(){var e=arguments.length<=0||void 0===arguments[0]?0:arguments[0];if(0===e)return t(n);var r,o,i,u=(r=[0,0],o=[1,0,Math.tan(e*Math.PI/180),1,0,0],i=n.map(function(t){var e=l(t,o,r);return r=a(t,r),e}),{v:t(i)});return"object"==typeof u?u.v:void 0}),shearY:u(["angle"],function(){var e=arguments.length<=0||void 0===arguments[0]?0:arguments[0];if(0===e)return t(n);var r,o,i,u=(r=[0,0],o=[1,Math.tan(e*Math.PI/180),0,1,0,0],i=n.map(function(t){var e=l(t,o,r);return r=a(t,r),e}),{v:t(i)});return"object"==typeof u?u.v:void 0}),print:function(){return n.map(i).join(" ")},toString:function(){return(void 0).print()},points:function(){var t=[],e=[0,0],r=!0,o=!1,i=void 0;try{for(var l,u=n[Symbol.iterator]();!(r=(l=u.next()).done);r=!0){var s=l.value,c=a(s,e);e=c,c&&t.push(c)}}catch(t){o=!0,i=t}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return t},instructions:function(){return n.slice(0,n.length)},connect:function(e){var o,i,a,l,u,s,c,f=this.points(),p=f[f.length-1],d=e.points()[0],h=void 0;return"Z"!==n[n.length-1].command?(h=e.instructions().slice(1),o=d,i=r(p,2),a=i[0],l=i[1],u=r(o,2),s=u[0],c=u[1],(a!==s||l!==c)&&h.unshift({command:"L",params:d})):h=e.instructions(),t(this.instructions().concat(h))}}};e.default=function(){return i()},t.exports=e.default},function(t,e,n){var r=n(14),o=n(2);function i(t){r.call(this,t)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(t,e,n,r){var o=this.grid,i=t-n,a=e-r;if(!o.isWalkableAt(t,e))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(t,e).tested=!0),o.getNodeAt(t,e)===this.endNode)return[t,e];if(0!==i&&0!==a){if(o.isWalkableAt(t-i,e+a)&&!o.isWalkableAt(t-i,e)||o.isWalkableAt(t+i,e-a)&&!o.isWalkableAt(t,e-a))return[t,e];if(this._jump(t+i,e,t,e)||this._jump(t,e+a,t,e))return[t,e]}else if(0!==i){if(o.isWalkableAt(t+i,e+1)&&!o.isWalkableAt(t,e+1)||o.isWalkableAt(t+i,e-1)&&!o.isWalkableAt(t,e-1))return[t,e]}else if(o.isWalkableAt(t+1,e+a)&&!o.isWalkableAt(t+1,e)||o.isWalkableAt(t-1,e+a)&&!o.isWalkableAt(t-1,e))return[t,e];return o.isWalkableAt(t+i,e)||o.isWalkableAt(t,e+a)?this._jump(t+i,e+a,t,e):null},i.prototype._findNeighbors=function(t){var e,n,r,i,a,l,u,s,c=t.parent,f=t.x,p=t.y,d=this.grid,h=[];if(c)e=c.x,n=c.y,r=(f-e)/Math.max(Math.abs(f-e),1),i=(p-n)/Math.max(Math.abs(p-n),1),0!==r&&0!==i?(d.isWalkableAt(f,p+i)&&h.push([f,p+i]),d.isWalkableAt(f+r,p)&&h.push([f+r,p]),(d.isWalkableAt(f,p+i)||d.isWalkableAt(f+r,p))&&h.push([f+r,p+i]),!d.isWalkableAt(f-r,p)&&d.isWalkableAt(f,p+i)&&h.push([f-r,p+i]),!d.isWalkableAt(f,p-i)&&d.isWalkableAt(f+r,p)&&h.push([f+r,p-i])):0===r?d.isWalkableAt(f,p+i)&&(h.push([f,p+i]),d.isWalkableAt(f+1,p)||h.push([f+1,p+i]),d.isWalkableAt(f-1,p)||h.push([f-1,p+i])):d.isWalkableAt(f+r,p)&&(h.push([f+r,p]),d.isWalkableAt(f,p+1)||h.push([f+r,p+1]),d.isWalkableAt(f,p-1)||h.push([f+r,p-1]));else for(u=0,s=(a=d.getNeighbors(t,o.IfAtMostOneObstacle)).length;u<s;++u)l=a[u],h.push([l.x,l.y]);return h},t.exports=i},function(t,e,n){var r=n(14),o=n(2);function i(t){r.call(this,t)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(t,e,n,r){var o=this.grid,i=t-n,a=e-r;if(!o.isWalkableAt(t,e))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(t,e).tested=!0),o.getNodeAt(t,e)===this.endNode)return[t,e];if(0!==i&&0!==a){if(this._jump(t+i,e,t,e)||this._jump(t,e+a,t,e))return[t,e]}else if(0!==i){if(o.isWalkableAt(t,e-1)&&!o.isWalkableAt(t-i,e-1)||o.isWalkableAt(t,e+1)&&!o.isWalkableAt(t-i,e+1))return[t,e]}else if(0!==a&&(o.isWalkableAt(t-1,e)&&!o.isWalkableAt(t-1,e-a)||o.isWalkableAt(t+1,e)&&!o.isWalkableAt(t+1,e-a)))return[t,e];return o.isWalkableAt(t+i,e)&&o.isWalkableAt(t,e+a)?this._jump(t+i,e+a,t,e):null},i.prototype._findNeighbors=function(t){var e,n,r,i,a,l,u,s,c,f=t.parent,p=t.x,d=t.y,h=this.grid,g=[];if(f){if(e=f.x,n=f.y,r=(p-e)/Math.max(Math.abs(p-e),1),i=(d-n)/Math.max(Math.abs(d-n),1),0!==r&&0!==i)h.isWalkableAt(p,d+i)&&g.push([p,d+i]),h.isWalkableAt(p+r,d)&&g.push([p+r,d]),h.isWalkableAt(p,d+i)&&h.isWalkableAt(p+r,d)&&g.push([p+r,d+i]);else if(0!==r){c=h.isWalkableAt(p+r,d);var m=h.isWalkableAt(p,d+1),v=h.isWalkableAt(p,d-1);c&&(g.push([p+r,d]),m&&g.push([p+r,d+1]),v&&g.push([p+r,d-1])),m&&g.push([p,d+1]),v&&g.push([p,d-1])}else if(0!==i){c=h.isWalkableAt(p,d+i);var y=h.isWalkableAt(p+1,d),b=h.isWalkableAt(p-1,d);c&&(g.push([p,d+i]),y&&g.push([p+1,d+i]),b&&g.push([p-1,d+i])),y&&g.push([p+1,d]),b&&g.push([p-1,d])}}else for(u=0,s=(a=h.getNeighbors(t,o.OnlyWhenNoObstacles)).length;u<s;++u)l=a[u],g.push([l.x,l.y]);return g},t.exports=i},function(t,e,n){var r=n(14),o=n(2);function i(t){r.call(this,t)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(t,e,n,r){var o=this.grid,i=t-n,a=e-r;if(!o.isWalkableAt(t,e))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(t,e).tested=!0),o.getNodeAt(t,e)===this.endNode)return[t,e];if(0!==i&&0!==a){if(o.isWalkableAt(t-i,e+a)&&!o.isWalkableAt(t-i,e)||o.isWalkableAt(t+i,e-a)&&!o.isWalkableAt(t,e-a))return[t,e];if(this._jump(t+i,e,t,e)||this._jump(t,e+a,t,e))return[t,e]}else if(0!==i){if(o.isWalkableAt(t+i,e+1)&&!o.isWalkableAt(t,e+1)||o.isWalkableAt(t+i,e-1)&&!o.isWalkableAt(t,e-1))return[t,e]}else if(o.isWalkableAt(t+1,e+a)&&!o.isWalkableAt(t+1,e)||o.isWalkableAt(t-1,e+a)&&!o.isWalkableAt(t-1,e))return[t,e];return this._jump(t+i,e+a,t,e)},i.prototype._findNeighbors=function(t){var e,n,r,i,a,l,u,s,c=t.parent,f=t.x,p=t.y,d=this.grid,h=[];if(c)e=c.x,n=c.y,r=(f-e)/Math.max(Math.abs(f-e),1),i=(p-n)/Math.max(Math.abs(p-n),1),0!==r&&0!==i?(d.isWalkableAt(f,p+i)&&h.push([f,p+i]),d.isWalkableAt(f+r,p)&&h.push([f+r,p]),d.isWalkableAt(f+r,p+i)&&h.push([f+r,p+i]),d.isWalkableAt(f-r,p)||h.push([f-r,p+i]),d.isWalkableAt(f,p-i)||h.push([f+r,p-i])):0===r?(d.isWalkableAt(f,p+i)&&h.push([f,p+i]),d.isWalkableAt(f+1,p)||h.push([f+1,p+i]),d.isWalkableAt(f-1,p)||h.push([f-1,p+i])):(d.isWalkableAt(f+r,p)&&h.push([f+r,p]),d.isWalkableAt(f,p+1)||h.push([f+r,p+1]),d.isWalkableAt(f,p-1)||h.push([f+r,p-1]));else for(u=0,s=(a=d.getNeighbors(t,o.Always)).length;u<s;++u)l=a[u],h.push([l.x,l.y]);return h},t.exports=i},function(t,e,n){var r=n(14),o=n(2);function i(t){r.call(this,t)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(t,e,n,r){var o=this.grid,i=t-n,a=e-r;if(!o.isWalkableAt(t,e))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(t,e).tested=!0),o.getNodeAt(t,e)===this.endNode)return[t,e];if(0!==i){if(o.isWalkableAt(t,e-1)&&!o.isWalkableAt(t-i,e-1)||o.isWalkableAt(t,e+1)&&!o.isWalkableAt(t-i,e+1))return[t,e]}else{if(0===a)throw new Error("Only horizontal and vertical movements are allowed");if(o.isWalkableAt(t-1,e)&&!o.isWalkableAt(t-1,e-a)||o.isWalkableAt(t+1,e)&&!o.isWalkableAt(t+1,e-a))return[t,e];if(this._jump(t+1,e,t,e)||this._jump(t-1,e,t,e))return[t,e]}return this._jump(t+i,e+a,t,e)},i.prototype._findNeighbors=function(t){var e,n,r,i,a,l,u,s,c=t.parent,f=t.x,p=t.y,d=this.grid,h=[];if(c)e=c.x,n=c.y,r=(f-e)/Math.max(Math.abs(f-e),1),i=(p-n)/Math.max(Math.abs(p-n),1),0!==r?(d.isWalkableAt(f,p-1)&&h.push([f,p-1]),d.isWalkableAt(f,p+1)&&h.push([f,p+1]),d.isWalkableAt(f+r,p)&&h.push([f+r,p])):0!==i&&(d.isWalkableAt(f-1,p)&&h.push([f-1,p]),d.isWalkableAt(f+1,p)&&h.push([f+1,p]),d.isWalkableAt(f,p+i)&&h.push([f,p+i]));else for(u=0,s=(a=d.getNeighbors(t,o.Never)).length;u<s;++u)l=a[u],h.push([l.x,l.y]);return h},t.exports=i},function(t,e,n){var r=n(2),o=n(55),i=n(54),a=n(53),l=n(52);t.exports=function(t){return(t=t||{}).diagonalMovement===r.Never?new o(t):t.diagonalMovement===r.Always?new i(t):t.diagonalMovement===r.OnlyWhenNoObstacles?new a(t):new l(t)}},function(t,e,n){n(4);var r=n(10),o=n(24),i=n(2);function a(t){t=t||{},this.allowDiagonal=t.allowDiagonal,this.dontCrossCorners=t.dontCrossCorners,this.diagonalMovement=t.diagonalMovement,this.heuristic=t.heuristic||r.manhattan,this.weight=t.weight||1,this.trackRecursion=t.trackRecursion||!1,this.timeLimit=t.timeLimit||1/0,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=i.OnlyWhenNoObstacles:this.diagonalMovement=i.IfAtMostOneObstacle:this.diagonalMovement=i.Never),this.diagonalMovement===i.Never?this.heuristic=t.heuristic||r.manhattan:this.heuristic=t.heuristic||r.octile}a.prototype.findPath=function(t,e,n,r,i){var a,l,u,s=(new Date).getTime(),c=function(t,e){return this.heuristic(Math.abs(e.x-t.x),Math.abs(e.y-t.y))}.bind(this),f=function(t,e,n,r,a){if(0,this.timeLimit>0&&(new Date).getTime()-s>1e3*this.timeLimit)return 1/0;var l,u,p,h,g=e+c(t,d)*this.weight;if(g>n)return g;if(t==d)return r[a]=[t.x,t.y],t;var m,v,y=i.getNeighbors(t,this.diagonalMovement);for(p=0,l=1/0;h=y[p];++p){if(this.trackRecursion&&(h.retainCount=h.retainCount+1||1,!0!==h.tested&&(h.tested=!0)),(u=f(h,e+(v=h,(m=t).x===v.x||m.y===v.y?1:Math.SQRT2),n,r,a+1))instanceof o)return r[a]=[t.x,t.y],u;this.trackRecursion&&0==--h.retainCount&&(h.tested=!1),u<l&&(l=u)}return l}.bind(this),p=i.getNodeAt(t,e),d=i.getNodeAt(n,r),h=c(p,d);for(a=0;;++a){if((u=f(p,0,h,l=[],0))===1/0)return[];if(u instanceof o)return l;h=u}return[]},t.exports=a},function(t,e,n){var r=n(22);function o(t){r.call(this,t),this.heuristic=function(t,e){return 0}}o.prototype=new r,o.prototype.constructor=o,t.exports=o},function(t,e,n){var r=n(4),o=n(2);function i(t){t=t||{},this.allowDiagonal=t.allowDiagonal,this.dontCrossCorners=t.dontCrossCorners,this.diagonalMovement=t.diagonalMovement,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=o.OnlyWhenNoObstacles:this.diagonalMovement=o.IfAtMostOneObstacle:this.diagonalMovement=o.Never)}i.prototype.findPath=function(t,e,n,o,i){var a,l,u,s,c,f=i.getNodeAt(t,e),p=i.getNodeAt(n,o),d=[],h=[],g=this.diagonalMovement;for(d.push(f),f.opened=!0,f.by=0,h.push(p),p.opened=!0,p.by=1;d.length&&h.length;){for((u=d.shift()).closed=!0,s=0,c=(a=i.getNeighbors(u,g)).length;s<c;++s)if(!(l=a[s]).closed)if(l.opened){if(1===l.by)return r.biBacktrace(u,l)}else d.push(l),l.parent=u,l.opened=!0,l.by=0;for((u=h.shift()).closed=!0,s=0,c=(a=i.getNeighbors(u,g)).length;s<c;++s)if(!(l=a[s]).closed)if(l.opened){if(0===l.by)return r.biBacktrace(l,u)}else h.push(l),l.parent=u,l.opened=!0,l.by=1}return[]},t.exports=i},function(t,e,n){var r=n(22);function o(t){r.call(this,t);var e=this.heuristic;this.heuristic=function(t,n){return 1e6*e(t,n)}}o.prototype=new r,o.prototype.constructor=o,t.exports=o},function(t,e,n){var r=n(23);function o(t){r.call(this,t),this.heuristic=function(t,e){return 0}}o.prototype=new r,o.prototype.constructor=o,t.exports=o},function(t,e,n){var r=n(4),o=n(2);function i(t){t=t||{},this.allowDiagonal=t.allowDiagonal,this.dontCrossCorners=t.dontCrossCorners,this.diagonalMovement=t.diagonalMovement,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=o.OnlyWhenNoObstacles:this.diagonalMovement=o.IfAtMostOneObstacle:this.diagonalMovement=o.Never)}i.prototype.findPath=function(t,e,n,o,i){var a,l,u,s,c,f=[],p=this.diagonalMovement,d=i.getNodeAt(t,e),h=i.getNodeAt(n,o);for(f.push(d),d.opened=!0;f.length;){if((u=f.shift()).closed=!0,u===h)return r.backtrace(h);for(s=0,c=(a=i.getNeighbors(u,p)).length;s<c;++s)(l=a[s]).closed||l.opened||(f.push(l),l.opened=!0,l.parent=u)}return[]},t.exports=i},function(t,e,n){var r=n(23);function o(t){r.call(this,t);var e=this.heuristic;this.heuristic=function(t,n){return 1e6*e(t,n)}}o.prototype=new r,o.prototype.constructor=o,t.exports=o},function(t,e,n){var r=n(24),o=n(2);function i(t,e,n){var r;"object"!=typeof t?r=t:(e=t.length,r=t[0].length,n=t),this.width=r,this.height=e,this.nodes=this._buildNodes(r,e,n)}i.prototype._buildNodes=function(t,e,n){var o,i,a=new Array(e);for(o=0;o<e;++o)for(a[o]=new Array(t),i=0;i<t;++i)a[o][i]=new r(i,o);if(void 0===n)return a;if(n.length!==e||n[0].length!==t)throw new Error("Matrix size does not fit");for(o=0;o<e;++o)for(i=0;i<t;++i)n[o][i]&&(a[o][i].walkable=!1);return a},i.prototype.getNodeAt=function(t,e){return this.nodes[e][t]},i.prototype.isWalkableAt=function(t,e){return this.isInside(t,e)&&this.nodes[e][t].walkable},i.prototype.isInside=function(t,e){return t>=0&&t<this.width&&e>=0&&e<this.height},i.prototype.setWalkableAt=function(t,e,n){this.nodes[e][t].walkable=n},i.prototype.getNeighbors=function(t,e){var n=t.x,r=t.y,i=[],a=!1,l=!1,u=!1,s=!1,c=!1,f=!1,p=!1,d=!1,h=this.nodes;if(this.isWalkableAt(n,r-1)&&(i.push(h[r-1][n]),a=!0),this.isWalkableAt(n+1,r)&&(i.push(h[r][n+1]),u=!0),this.isWalkableAt(n,r+1)&&(i.push(h[r+1][n]),c=!0),this.isWalkableAt(n-1,r)&&(i.push(h[r][n-1]),p=!0),e===o.Never)return i;if(e===o.OnlyWhenNoObstacles)l=p&&a,s=a&&u,f=u&&c,d=c&&p;else if(e===o.IfAtMostOneObstacle)l=p||a,s=a||u,f=u||c,d=c||p;else{if(e!==o.Always)throw new Error("Incorrect value of diagonalMovement");l=!0,s=!0,f=!0,d=!0}return l&&this.isWalkableAt(n-1,r-1)&&i.push(h[r-1][n-1]),s&&this.isWalkableAt(n+1,r-1)&&i.push(h[r-1][n+1]),f&&this.isWalkableAt(n+1,r+1)&&i.push(h[r+1][n+1]),d&&this.isWalkableAt(n-1,r+1)&&i.push(h[r+1][n-1]),i},i.prototype.clone=function(){var t,e,n=this.width,o=this.height,a=this.nodes,l=new i(n,o),u=new Array(o);for(t=0;t<o;++t)for(u[t]=new Array(n),e=0;e<n;++e)u[t][e]=new r(e,t,a[t][e].walkable);return l.nodes=u,l},t.exports=i},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){(function(t){(function(){var e,n,r,o,i,a,l,u,s,c,f,p,d,h,g;r=Math.floor,c=Math.min,n=function(t,e){return t<e?-1:t>e?1:0},s=function(t,e,o,i,a){var l;if(null==o&&(o=0),null==a&&(a=n),o<0)throw new Error("lo must be non-negative");for(null==i&&(i=t.length);o<i;)a(e,t[l=r((o+i)/2)])<0?i=l:o=l+1;return[].splice.apply(t,[o,o-o].concat(e)),e},a=function(t,e,r){return null==r&&(r=n),t.push(e),h(t,0,t.length-1,r)},i=function(t,e){var r,o;return null==e&&(e=n),r=t.pop(),t.length?(o=t[0],t[0]=r,g(t,0,e)):o=r,o},u=function(t,e,r){var o;return null==r&&(r=n),o=t[0],t[0]=e,g(t,0,r),o},l=function(t,e,r){var o;return null==r&&(r=n),t.length&&r(t[0],e)<0&&(e=(o=[t[0],e])[0],t[0]=o[1],g(t,0,r)),e},o=function(t,e){var o,i,a,l,u,s;for(null==e&&(e=n),u=[],i=0,a=(l=function(){s=[];for(var e=0,n=r(t.length/2);0<=n?e<n:e>n;0<=n?e++:e--)s.push(e);return s}.apply(this).reverse()).length;i<a;i++)o=l[i],u.push(g(t,o,e));return u},d=function(t,e,r){var o;if(null==r&&(r=n),-1!==(o=t.indexOf(e)))return h(t,0,o,r),g(t,o,r)},f=function(t,e,r){var i,a,u,s,c;if(null==r&&(r=n),!(a=t.slice(0,e)).length)return a;for(o(a,r),u=0,s=(c=t.slice(e)).length;u<s;u++)i=c[u],l(a,i,r);return a.sort(r).reverse()},p=function(t,e,r){var a,l,u,f,p,d,h,g,m;if(null==r&&(r=n),10*e<=t.length){if(!(u=t.slice(0,e).sort(r)).length)return u;for(l=u[u.length-1],f=0,d=(h=t.slice(e)).length;f<d;f++)r(a=h[f],l)<0&&(s(u,a,0,null,r),u.pop(),l=u[u.length-1]);return u}for(o(t,r),m=[],p=0,g=c(e,t.length);0<=g?p<g:p>g;0<=g?++p:--p)m.push(i(t,r));return m},h=function(t,e,r,o){var i,a,l;for(null==o&&(o=n),i=t[r];r>e&&o(i,a=t[l=r-1>>1])<0;)t[r]=a,r=l;return t[r]=i},g=function(t,e,r){var o,i,a,l,u;for(null==r&&(r=n),i=t.length,u=e,a=t[e],o=2*e+1;o<i;)(l=o+1)<i&&!(r(t[o],t[l])<0)&&(o=l),t[e]=t[o],o=2*(e=o)+1;return t[e]=a,h(t,u,e,r)},e=function(){function t(t){this.cmp=null!=t?t:n,this.nodes=[]}return t.push=a,t.pop=i,t.replace=u,t.pushpop=l,t.heapify=o,t.updateItem=d,t.nlargest=f,t.nsmallest=p,t.prototype.push=function(t){return a(this.nodes,t,this.cmp)},t.prototype.pop=function(){return i(this.nodes,this.cmp)},t.prototype.peek=function(){return this.nodes[0]},t.prototype.contains=function(t){return-1!==this.nodes.indexOf(t)},t.prototype.replace=function(t){return u(this.nodes,t,this.cmp)},t.prototype.pushpop=function(t){return l(this.nodes,t,this.cmp)},t.prototype.heapify=function(){return o(this.nodes,this.cmp)},t.prototype.updateItem=function(t){return d(this.nodes,t,this.cmp)},t.prototype.clear=function(){return this.nodes=[]},t.prototype.empty=function(){return 0===this.nodes.length},t.prototype.size=function(){return this.nodes.length},t.prototype.clone=function(){var e;return(e=new t).nodes=this.nodes.slice(0),e},t.prototype.toArray=function(){return this.nodes.slice(0)},t.prototype.insert=t.prototype.push,t.prototype.top=t.prototype.peek,t.prototype.front=t.prototype.peek,t.prototype.has=t.prototype.contains,t.prototype.copy=t.prototype.clone,t}(),(null!=t?t.exports:void 0)?t.exports=e:window.Heap=e}).call(this)}).call(this,n(65)(t))},function(t,e,n){t.exports={Heap:n(15),Node:n(24),Grid:n(64),Util:n(4),DiagonalMovement:n(2),Heuristic:n(10),AStarFinder:n(23),BestFirstFinder:n(63),BreadthFirstFinder:n(62),DijkstraFinder:n(61),BiAStarFinder:n(22),BiBestFirstFinder:n(60),BiBreadthFirstFinder:n(59),BiDijkstraFinder:n(58),IDAStarFinder:n(57),JumpPointFinder:n(56)}},function(t,e,n){t.exports=n(67)},function(t,e){var n=Element.prototype,r=n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector;t.exports=function(t,e){if(r)return r.call(t,e);for(var n=t.parentNode.querySelectorAll(e),o=0;o<n.length;++o)if(n[o]==t)return!0;return!1}},function(t,e,n){var r=n(69);t.exports=function(t,e,n){for(var o=n?t:t.parentNode;o&&o!==document;){if(r(o,e))return o;o=o.parentNode}}}])},t.exports=r(n(17),n(0))},function(t,e,n){"use strict";(function(t){n.d(e,"a",function(){return b});var r=n(10),o=n(2),i=n.n(o),a=n(0),l=n.n(a),u="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};var s,c=(function(t){var e,n,r,o,i,a,l,s,c,f,p,d,h,g,m;e=u,n=function(t,e,r){if(!s(e)||f(e)||p(e)||d(e)||l(e))return e;var o,i=0,a=0;if(c(e))for(o=[],a=e.length;i<a;i++)o.push(n(t,e[i],r));else for(var u in o={},e)Object.prototype.hasOwnProperty.call(e,u)&&(o[t(u,r)]=n(t,e[u],r));return o},r=function(t){return h(t)?t:(t=t.replace(/[\-_\s]+(.)?/g,function(t,e){return e?e.toUpperCase():""})).substr(0,1).toLowerCase()+t.substr(1)},o=function(t){var e=r(t);return e.substr(0,1).toUpperCase()+e.substr(1)},i=function(t,e){return function(t,e){var n=(e=e||{}).separator||"_",r=e.split||/(?=[A-Z])/;return t.split(r).join(n)}(t,e).toLowerCase()},a=Object.prototype.toString,l=function(t){return"function"==typeof t},s=function(t){return t===Object(t)},c=function(t){return"[object Array]"==a.call(t)},f=function(t){return"[object Date]"==a.call(t)},p=function(t){return"[object RegExp]"==a.call(t)},d=function(t){return"[object Boolean]"==a.call(t)},h=function(t){return(t-=0)==t},g=function(t,e){var n=e&&"process"in e?e.process:e;return"function"!=typeof n?t:function(e,r){return n(e,t,r)}},m={camelize:r,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(t,e){return n(g(r,e),t)},decamelizeKeys:function(t,e){return n(g(i,e),t,e)},pascalizeKeys:function(t,e){return n(g(o,e),t)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}},t.exports?t.exports=m:e.humps=m}(s={exports:{}},s.exports),s.exports),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},h=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},g=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)};var m=!1;try{m=!0}catch(t){}function v(t,e){return Array.isArray(e)&&e.length>0||!Array.isArray(e)&&e?p({},t,e):{}}function y(t){return null===t?null:"object"===(void 0===t?"undefined":f(t))&&t.prefix&&t.iconName?t:Array.isArray(t)&&2===t.length?{prefix:t[0],iconName:t[1]}:"string"==typeof t?{prefix:"fas",iconName:t}:void 0}function b(t){var e=t.icon,n=t.mask,o=t.symbol,i=t.className,a=t.title,l=y(e),u=v("classes",[].concat(g(function(t){var e,n=(e={"fa-spin":t.spin,"fa-pulse":t.pulse,"fa-fw":t.fixedWidth,"fa-inverse":t.inverse,"fa-border":t.border,"fa-li":t.listItem,"fa-flip-horizontal":"horizontal"===t.flip||"both"===t.flip,"fa-flip-vertical":"vertical"===t.flip||"both"===t.flip},p(e,"fa-"+t.size,null!==t.size),p(e,"fa-rotate-"+t.rotation,null!==t.rotation),p(e,"fa-pull-"+t.pull,null!==t.pull),e);return Object.keys(n).map(function(t){return n[t]?t:null}).filter(function(t){return t})}(t)),g(i.split(" ")))),s=v("transform","string"==typeof t.transform?r.b.transform(t.transform):t.transform),c=v("mask",y(n)),f=Object(r.a)(l,d({},u,s,c,{symbol:o,title:a}));if(!f)return function(){var t;!m&&console&&"function"==typeof console.error&&(t=console).error.apply(t,arguments)}("Could not find icon",l),null;var h=f.abstract,x={};return Object.keys(t).forEach(function(e){b.defaultProps.hasOwnProperty(e)||(x[e]=t[e])}),_(h[0],x)}b.displayName="FontAwesomeIcon",b.propTypes={border:i.a.bool,className:i.a.string,mask:i.a.oneOfType([i.a.object,i.a.array,i.a.string]),fixedWidth:i.a.bool,inverse:i.a.bool,flip:i.a.oneOf(["horizontal","vertical","both"]),icon:i.a.oneOfType([i.a.object,i.a.array,i.a.string]),listItem:i.a.bool,pull:i.a.oneOf(["right","left"]),pulse:i.a.bool,rotation:i.a.oneOf([90,180,270]),size:i.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:i.a.bool,symbol:i.a.oneOfType([i.a.bool,i.a.string]),title:i.a.string,transform:i.a.oneOfType([i.a.string,i.a.object])},b.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null};var _=function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var o=(n.children||[]).map(t.bind(null,e)),i=Object.keys(n.attributes||{}).reduce(function(t,e){var r=n.attributes[e];switch(e){case"class":t.attrs.className=r,delete n.attributes.class;break;case"style":t.attrs.style=r.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,e){var n,r=e.indexOf(":"),o=c.camelize(e.slice(0,r)),i=e.slice(r+1).trim();return o.startsWith("webkit")?t[(n=o,n.charAt(0).toUpperCase()+n.slice(1))]=i:t[o]=i,t},{});break;default:0===e.indexOf("aria-")||0===e.indexOf("data-")?t.attrs[e.toLowerCase()]=r:t.attrs[c.camelize(e)]=r}return t},{attrs:{}}),a=r.style,l=void 0===a?{}:a,u=h(r,["style"]);return i.attrs.style=d({},i.attrs.style,l),e.apply(void 0,[n.tag,d({},i.attrs,u)].concat(g(o)))}.bind(null,l.a.createElement)}).call(this,n(7))},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){var r,o,i={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),l=function(t){var e={};return function(t){if("function"==typeof t)return t();if(void 0===e[t]){var n=function(t){return document.querySelector(t)}.call(this,t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}}(),u=null,s=0,c=[],f=n(23);function p(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=i[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(y(r.parts[a],e))}else{var l=[];for(a=0;a<r.parts.length;a++)l.push(y(r.parts[a],e));i[r.id]={id:r.id,refs:1,parts:l}}}}function d(t,e){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=e.base?i[0]+e.base:i[0],l={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,parts:[l]})}return n}function h(t,e){var n=l(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=c[c.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),c.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=l(t.insertInto+" "+t.insertAt.before);n.insertBefore(e,o)}}function g(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=c.indexOf(t);e>=0&&c.splice(e,1)}function m(t){var e=document.createElement("style");return void 0===t.attrs.type&&(t.attrs.type="text/css"),v(e,t.attrs),h(t,e),e}function v(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}function y(t,e){var n,r,o,i;if(e.transform&&t.css){if(!(i=e.transform(t.css)))return function(){};t.css=i}if(e.singleton){var a=s++;n=u||(u=m(e)),r=x.bind(null,n,a,!1),o=x.bind(null,n,a,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",v(e,t.attrs),h(t,e),e}(e),r=function(t,e,n){var r=n.css,o=n.sourceMap,i=void 0===e.convertToAbsoluteUrls&&o;(e.convertToAbsoluteUrls||i)&&(r=f(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),l=t.href;t.href=URL.createObjectURL(a),l&&URL.revokeObjectURL(l)}.bind(null,n,e),o=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(e),r=function(t,e){var n=e.css,r=e.media;r&&t.setAttribute("media",r);if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){g(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=a()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=d(t,e);return p(n,e),function(t){for(var r=[],o=0;o<n.length;o++){var a=n[o];(l=i[a.id]).refs--,r.push(l)}t&&p(d(t,e),e);for(o=0;o<r.length;o++){var l;if(0===(l=r[o]).refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete i[l.id]}}}};var b,_=(b=[],function(t,e){return b[t]=e,b.filter(Boolean).join("\n")});function x(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=_(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r=n(0),o=n(9),i=n(1),a=function(){return function(){this.onSelectionChangedObservable=new i.Observable}}(),l=function(t,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function u(t,e){function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var s=n(3),c=function(t){function e(e){var n=t.call(this,e)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var t=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(t?n.props.node:null)}}),n}return u(e,t),e.prototype.render=function(){var t=new Array,e=new Array,n=new Array,o=r.createElement("div",null);if(this.props.node)for(var i in this.props.node.headerLabels.length&&this.props.node.headerLabels.forEach(function(e,n){t.push(r.createElement("div",{className:"header-labels",key:n},e.text))}),this.props.node.ports){var a=this.props.node.ports[i];if("input"==a.position){var l=r.createElement("div",null);e.push(r.createElement("div",{key:i,className:"input-port"},r.createElement("div",{className:"input-port-plug"},r.createElement(s.PortWidget,{key:i,name:a.name,node:this.props.node})),r.createElement("div",{className:"input-port-label"},a.name),l))}else n.push(r.createElement("div",{key:i,className:"output-port"},r.createElement("div",{className:"output-port-label"},a.name),r.createElement("div",{className:"output-port-plug"},r.createElement(s.PortWidget,{key:i,name:a.name,node:this.props.node}))))}var u=this.props.node&&this.props.node.headerLabels.length,c=0===n.length;return r.createElement("div",{className:"diagramBlock"+(u?"":" input")+(c?" output":"")},r.createElement("div",{className:"header"},t),r.createElement("div",{className:"inputs"},e),r.createElement("div",{className:"outputs"},n),o)},e}(r.Component),f=function(t){function e(n,r){void 0===r&&(r="input");var o=t.call(this,n,"generic")||this;return o.connection=null,o.getValue=function(){return null},o.position=r,e.idCounter++,o}return u(e,t),e.prototype.syncWithNodeMaterialConnectionPoint=function(t){this.connection=t,this.name=t.name},e.prototype.getNodeModel=function(){return this.parent},e.prototype.link=function(t){var e=this.createLinkModel();return e.setSourcePort(this),e.setTargetPort(t),e},e.prototype.getInputFromBlock=function(){},e.prototype.createLinkModel=function(){return new s.DefaultLinkModel},e.SortInputOutput=function(t,e){return t&&e?"output"==t.position&&"input"==e.position?{input:e,output:t}:"output"==e.position&&"input"==t.position?{input:t,output:e}:null:null},e.idCounter=0,e}(s.PortModel),p=function(t){function e(e){var n=t.call(this,e)||this;return n.block=null,n}return u(e,t),e.prototype.prepareConnection=function(t,e,n){},e.prototype.prepare=function(t,e,n,r){var o=this;this.block=t.nodeMaterialBlock||null,t.nodeMaterialBlock&&(t.nodeMaterialBlock._outputs.forEach(function(t){var e=new f(t.name,"output");e.syncWithNodeMaterialConnectionPoint(t),o.addPort(e)}),t.nodeMaterialBlock._inputs.forEach(function(a){var l=new f(a.name,"input");if(l.connection=a,o.addPort(l),console.log(a.name+" for "+t.nodeMaterialBlock.name),a.connectedPoint){var u=e.filter(function(t){return t.block===a._connectedPoint._ownerBlock}),s=(0==u.length?r.createNodeFromObject({column:t.column+1,nodeMaterialBlock:a.connectedPoint._ownerBlock}):u[0]).ports[a.connectedPoint.name].link(l);n.addAll(s)}else if(a.isAttribute);else{var c="";a.type==i.NodeMaterialBlockConnectionPointTypes.Texture?c="Texture":a.type==i.NodeMaterialBlockConnectionPointTypes.Matrix?c="Matrix":a.type&i.NodeMaterialBlockConnectionPointTypes.Vector3OrColor3?c="Vector3":a.type&i.NodeMaterialBlockConnectionPointTypes.Vector2?c="Vector2":a.type&i.NodeMaterialBlockConnectionPointTypes.Vector3OrColor3OrVector4OrColor4&&(c="Vector4");var p=r.addValueNode(c,t.column+1,a);if(p){var d=p.getPorts();for(var h in d){s=d[h].link(l);n.addAll(s)}}}}))},e.prototype.renderProperties=function(t){return null},e}(s.NodeModel),d=function(t){function e(e){var n=t.call(this,e)||this;return n._localChange=!1,n.state={value:n.props.value.toFixed(3)},n}return u(e,t),e.prototype.shouldComponentUpdate=function(t,e){return this._localChange?(this._localChange=!1,!0):t.value.toString()!==e.value&&(e.value=t.value.toFixed(3),!0)},e.prototype.updateValue=function(t){var e=t.target.value;if(!/[^0-9\.\-]/g.test(e)){var n=parseFloat(e);this._localChange=!0,this.setState({value:e}),isNaN(n)||this.props.onChange(n)}},e.prototype.render=function(){var t=this;return r.createElement("div",{className:"numeric"},this.props.label&&r.createElement("div",{className:"numeric-label"},this.props.label+": "),r.createElement("input",{type:"number",step:this.props.step,className:"numeric-input",value:this.state.value,onChange:function(e){return t.updateValue(e)}}))},e.defaultProps={step:1},e}(r.Component),h=n(4),g={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"]},m={prefix:"fas",iconName:"minus",icon:[448,512,[],"f068","M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},v={prefix:"fas",iconName:"plus",icon:[448,512,[],"f067","M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},y=function(t){function e(e){var n=t.call(this,e)||this;return n._localChange=!1,n.state={isExpanded:!1,value:n.props.target[n.props.propertyName].clone()},n}return u(e,t),e.prototype.shouldComponentUpdate=function(t,e){var n=t.target[t.propertyName];return!(n.equals(e.value)&&!this._localChange)&&(e.value=n.clone(),this._localChange=!1,!0)},e.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},e.prototype.raiseOnPropertyChanged=function(t){this.props.onChange&&this.props.onChange(this.state.value),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.value,initialValue:t})},e.prototype.updateStateX=function(t){this._localChange=!0;var e=this.state.value.clone();this.props.target[this.props.propertyName].x=t,this.state.value.x=t,this.setState({value:this.state.value}),this.raiseOnPropertyChanged(e)},e.prototype.updateStateY=function(t){this._localChange=!0;var e=this.state.value.clone();this.props.target[this.props.propertyName].y=t,this.state.value.y=t,this.setState({value:this.state.value}),this.raiseOnPropertyChanged(e)},e.prototype.render=function(){var t=this,e=this.state.isExpanded?r.createElement(h.a,{icon:m}):r.createElement(h.a,{icon:v});return r.createElement("div",{className:"vector3Line"},r.createElement("div",{className:"firstLine"},r.createElement("div",{className:"label"},this.props.label),r.createElement("div",{className:"vector"},"X: "+this.state.value.x.toFixed(2)+", Y: "+this.state.value.y.toFixed(2)),r.createElement("div",{className:"expand hoverIcon",onClick:function(){return t.switchExpandState()},title:"Expand"},e)),this.state.isExpanded&&r.createElement("div",{className:"secondLine"},r.createElement(d,{label:"x",step:this.props.step,value:this.state.value.x,onChange:function(e){return t.updateStateX(e)}}),r.createElement(d,{label:"y",step:this.props.step,value:this.state.value.y,onChange:function(e){return t.updateStateY(e)}})))},e.defaultProps={step:.001},e}(r.Component),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.render=function(){return r.createElement(y,{label:"Value",target:this.props.node,propertyName:"vector2"})},e}(r.Component),_=function(t){function e(e){var n=t.call(this,e)||this;return n._localChange=!1,n.state={isExpanded:!1,value:n.props.target[n.props.propertyName].clone()},n}return u(e,t),e.prototype.shouldComponentUpdate=function(t,e){var n=t.target[t.propertyName];return!(n.equals(e.value)&&!this._localChange)&&(e.value=n.clone(),this._localChange=!1,!0)},e.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},e.prototype.raiseOnPropertyChanged=function(t){this.props.onChange&&this.props.onChange(this.state.value),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.value,initialValue:t})},e.prototype.updateVector3=function(){var t=this.props.target[this.props.propertyName].clone();this.props.target[this.props.propertyName]=this.state.value,this.setState({value:t}),this.raiseOnPropertyChanged(t)},e.prototype.updateStateX=function(t){this._localChange=!0,this.state.value.x=t,this.updateVector3()},e.prototype.updateStateY=function(t){this._localChange=!0,this.state.value.y=t,this.updateVector3()},e.prototype.updateStateZ=function(t){this._localChange=!0,this.state.value.z=t,this.updateVector3()},e.prototype.render=function(){var t=this,e=this.state.isExpanded?r.createElement(h.a,{icon:m}):r.createElement(h.a,{icon:v});return r.createElement("div",{className:"vector3Line"},r.createElement("div",{className:"firstLine"},r.createElement("div",{className:"label"},this.props.label),r.createElement("div",{className:"vector"},"X: "+this.state.value.x.toFixed(2)+", Y: "+this.state.value.y.toFixed(2)+", Z: "+this.state.value.z.toFixed(2)),r.createElement("div",{className:"expand hoverIcon",onClick:function(){return t.switchExpandState()},title:"Expand"},e)),this.state.isExpanded&&r.createElement("div",{className:"secondLine"},r.createElement(d,{label:"x",step:this.props.step,value:this.state.value.x,onChange:function(e){return t.updateStateX(e)}}),r.createElement(d,{label:"y",step:this.props.step,value:this.state.value.y,onChange:function(e){return t.updateStateY(e)}}),r.createElement(d,{label:"z",step:this.props.step,value:this.state.value.z,onChange:function(e){return t.updateStateZ(e)}})))},e.defaultProps={step:.001},e}(r.Component),x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.render=function(){return r.createElement(_,{label:"Value",target:this.props.node,propertyName:"vector3"})},e}(r.Component),w=function(t){function e(){var e=t.call(this,"generic")||this;return e.headerLabels=[],e.vector2=null,e.vector3=null,e.vector4=null,e.matrix=null,e}return u(e,t),e.prototype.prepareConnection=function(t,e,n){var r=this;switch(t){case"Vector2":e.getValue=function(){return r.vector2},n&&n.value?this.vector2=n.value:this.vector2=new i.Vector2;break;case"Vector3":e.getValue=function(){return r.vector3},n&&n.value?this.vector3=n.value:this.vector3=new i.Vector3;break;case"Vector4":e.getValue=function(){return r.vector4},n&&n.value?this.vector4=n.value:this.vector4=new i.Vector4(0,0,0,1);break;case"Matrix":e.getValue=function(){return r.matrix},n&&n.value?this.matrix=n.value:this.matrix=new i.Matrix}},e.prototype.prepare=function(e,n,r,o){e.nodeMaterialBlock&&this.headerLabels.push({text:e.nodeMaterialBlock.getClassName()}),t.prototype.prepare.call(this,e,n,r,o)},e.prototype.renderProperties=function(t){return this.vector2?r.createElement(b,{globalState:t,node:this}):this.vector3?r.createElement(x,{globalState:t,node:this}):null},e}(p),k=function(t){function e(e){var n=t.call(this,"generic")||this;return n._globalState=e,n}return u(e,t),e.prototype.generateReactWidget=function(t,e){return r.createElement(c,{node:e,globalState:this._globalState})},e.prototype.getNewInstance=function(){return new w},e}(s.AbstractNodeFactory),P=function(t){function e(n){var r,o=t.call(this,n)||this;try{r=e._InMemoryStorage&&void 0!==e._InMemoryStorage[o.props.title]?e._InMemoryStorage[o.props.title]:"undefined"!=typeof Storage&&null!==localStorage.getItem(o.props.title)?"true"===localStorage.getItem(o.props.title):!o.props.closed}catch(t){e._InMemoryStorage={},e._InMemoryStorage[o.props.title]=!o.props.closed,r=!o.props.closed}return o.state={isExpanded:r},o}return u(e,t),e.prototype.switchExpandedState=function(){var t=!this.state.isExpanded;try{e._InMemoryStorage?e._InMemoryStorage[this.props.title]=t:"undefined"!=typeof Storage&&localStorage.setItem(this.props.title,t?"true":"false")}catch(n){e._InMemoryStorage={},e._InMemoryStorage[this.props.title]=t}this.setState({isExpanded:t})},e.prototype.renderHeader=function(){var t=this,e=this.state.isExpanded?"collapse":"collapse closed";return r.createElement("div",{className:"header",onClick:function(){return t.switchExpandedState()}},r.createElement("div",{className:"title"},this.props.title),r.createElement("div",{className:e},r.createElement(h.a,{icon:g})))},e.prototype.render=function(){return this.state.isExpanded?r.createElement("div",{className:"paneContainer"},r.createElement("div",{className:"paneContainer-content"},this.renderHeader(),r.createElement("div",{className:"paneList"},this.props.children))):r.createElement("div",{className:"paneContainer"},r.createElement("div",{className:"paneContainer-content"},this.renderHeader()))},e}(r.Component),E=function(t){function e(e){return t.call(this,e)||this}return u(e,t),e.prototype.render=function(){var t=this;return r.createElement("div",{className:"buttonLine"},r.createElement("button",{onClick:function(){return t.props.onClick()}},this.props.label))},e}(r.Component);n(21);var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.render=function(){var t=this,e={Fragment:[i.AlphaTestBlock,i.FragmentOutputBlock,i.ImageProcessingBlock,i.RGBAMergerBlock,i.RGBASplitterBlock,i.TextureBlock],Vertex:[i.BonesBlock,i.InstancesBlock,i.MorphTargetsBlock,i.VertexOutputBlock],Dual:[i.FogBlock],Other:[i.AddBlock,i.ClampBlock,i.MatrixMultiplicationBlock,i.MultiplyBlock,i.Vector2TransformBlock,i.Vector3TransformBlock,i.Vector4TransformBlock],Value:["Texture","Vector2","Vector3","Matrix"]},n=[];for(var o in e){var a=e[o].map(function(e){var n="string"==typeof e?e:e.prototype.getClassName(),o="string"==typeof e?function(){t.props.onAddValueNode(e)}:function(){t.props.onAddNodeFromClass(e)};return r.createElement(E,{label:n,onClick:o})});n.push(r.createElement(P,{title:o+" blocks",closed:!1},a))}return r.createElement("div",{id:"nodeList",style:{borderRightStyle:"solid",borderColor:"grey",borderWidth:"1px"}},r.createElement("div",{className:"panes"},r.createElement("div",{className:"pane"},n)))},e}(r.Component);n(24);var O=function(t){function e(e){var n=t.call(this,e)||this;return n.state={currentNode:null},n}return u(e,t),e.prototype.componentWillMount=function(){var t=this;this.props.globalState.onSelectionChangedObservable.add(function(e){t.setState({currentNode:e})})},e.prototype.render=function(){return this.state.currentNode?r.createElement("div",{id:"propertyTab"},this.state.currentNode.renderProperties(this.props.globalState)):r.createElement("div",{id:"propertyTab"})},e}(r.Component),S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.render=function(){return o.createPortal(this.props.children,this.props.globalState.hostElement)},e}(r.Component),T=function(t){function e(e){var n=t.call(this,e)||this;return n.state={displayRed:!0,displayGreen:!0,displayBlue:!0,displayAlpha:!0,face:0},n}return u(e,t),e.prototype.shouldComponentUpdate=function(t,e){return t.texture!==this.props.texture||e.displayRed!==this.state.displayRed||e.displayGreen!==this.state.displayGreen||e.displayBlue!==this.state.displayBlue||e.displayAlpha!==this.state.displayAlpha||e.face!==this.state.face},e.prototype.componentDidMount=function(){this.updatePreview()},e.prototype.componentDidUpdate=function(){this.updatePreview()},e.prototype.updatePreview=function(){var t=this,e=this.props.texture;!e.isReady()&&e._texture&&e._texture.onLoadedObservable.addOnce(function(){t.updatePreview()});var n,r=e.getScene(),o=r.getEngine(),a=e.getSize(),l=a.width/a.height,u=this.props.width,s=u/l|1;if(e.isCube){var c=new i.PassCubePostProcess("pass",1,null,i.Texture.NEAREST_SAMPLINGMODE,o,!1,i.Constants.TEXTURETYPE_UNSIGNED_INT);c.face=this.state.face,n=c}else n=new i.PassPostProcess("pass",1,null,i.Texture.NEAREST_SAMPLINGMODE,o,!1,i.Constants.TEXTURETYPE_UNSIGNED_INT);if(!n.getEffect().isReady())return n.dispose(),void setTimeout(function(){return t.updatePreview()},250);var f=this.refs.canvas;this.props.globalState&&(this.props.globalState.blockMutationUpdates=!0);var p=new i.RenderTargetTexture("temp",{width:u,height:s},r,!1);n.onApply=function(t){t.setTexture("textureSampler",e)};var d=p.getInternalTexture();if(d){r.postProcessManager.directRender([n],d);var h=4*u,g=s/2,m=o.readPixels(0,0,u,s);if(!(e.isCube||this.state.displayRed&&this.state.displayGreen&&this.state.displayBlue))for(var v=0;v<u*s*4;v+=4)if(this.state.displayRed||(m[v]=0),this.state.displayGreen||(m[v+1]=0),this.state.displayBlue||(m[v+2]=0),this.state.displayAlpha){var y=m[v+2];m[v]=y,m[v+1]=y,m[v+2]=y,m[v+2]=0}if(e.invertY||e.isCube)for(v=0;v<g;v++)for(var b=0;b<h;b++){var _=b+v*h,x=b+(s-v-1)*h,w=m[_];m[_]=m[x],m[x]=w}f.width=u,f.height=s;var k=f.getContext("2d");if(k){var P=k.createImageData(u,s);P.data.set(m),k.putImageData(P,0,0)}o.unBindFramebuffer(d)}p.dispose(),n.dispose(),f.style.height=s+"px",this.props.globalState&&(this.props.globalState.blockMutationUpdates=!1)},e.prototype.render=function(){var t=this,e=this.props.texture;return r.createElement("div",{className:"textureLine"},!this.props.hideChannelSelect&&e.isCube&&r.createElement("div",{className:"control3D"},r.createElement("button",{className:0===this.state.face?"px command selected":"px command",onClick:function(){return t.setState({face:0})}},"PX"),r.createElement("button",{className:1===this.state.face?"nx command selected":"nx command",onClick:function(){return t.setState({face:1})}},"NX"),r.createElement("button",{className:2===this.state.face?"py command selected":"py command",onClick:function(){return t.setState({face:2})}},"PY"),r.createElement("button",{className:3===this.state.face?"ny command selected":"ny command",onClick:function(){return t.setState({face:3})}},"NY"),r.createElement("button",{className:4===this.state.face?"pz command selected":"pz command",onClick:function(){return t.setState({face:4})}},"PZ"),r.createElement("button",{className:5===this.state.face?"nz command selected":"nz command",onClick:function(){return t.setState({face:5})}},"NZ")),!this.props.hideChannelSelect&&!e.isCube&&r.createElement("div",{className:"control"},r.createElement("button",{className:this.state.displayRed&&!this.state.displayGreen?"red command selected":"red command",onClick:function(){return t.setState({displayRed:!0,displayGreen:!1,displayBlue:!1,displayAlpha:!1})}},"R"),r.createElement("button",{className:this.state.displayGreen&&!this.state.displayBlue?"green command selected":"green command",onClick:function(){return t.setState({displayRed:!1,displayGreen:!0,displayBlue:!1,displayAlpha:!1})}},"G"),r.createElement("button",{className:this.state.displayBlue&&!this.state.displayAlpha?"blue command selected":"blue command",onClick:function(){return t.setState({displayRed:!1,displayGreen:!1,displayBlue:!0,displayAlpha:!1})}},"B"),r.createElement("button",{className:this.state.displayAlpha&&!this.state.displayRed?"alpha command selected":"alpha command",onClick:function(){return t.setState({displayRed:!1,displayGreen:!1,displayBlue:!1,displayAlpha:!0})}},"A"),r.createElement("button",{className:this.state.displayRed&&this.state.displayGreen?"all command selected":"all command",onClick:function(){return t.setState({displayRed:!0,displayGreen:!0,displayBlue:!0,displayAlpha:!0})}},"ALL")),r.createElement("canvas",{ref:"canvas",className:"preview"}))},e}(r.Component),M=function(t){function e(e){var n=t.call(this,e)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var t=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(t?n.props.node:null)}}),n}return u(e,t),e.prototype.render=function(){var t=new Array,e=r.createElement("div",null);if(this.props.node){for(var n in this.props.node.ports){var o=this.props.node.ports[n];t.push(r.createElement("div",{key:n,className:"output-port"},r.createElement("div",{className:"output-port-label"},o.name),r.createElement("div",{className:"output-port-plug"},r.createElement(s.PortWidget,{key:n,name:o.name,node:this.props.node}))))}this.props.node.texture&&(e=r.createElement(T,{ref:"textureView",width:200,height:180,texture:this.props.node.texture,hideChannelSelect:!0}))}return r.createElement("div",{className:"diagramBlock"},r.createElement("div",{className:"header"},"Texture"),r.createElement("div",{className:"outputs"},t),e)},e}(r.Component),N=function(t){function e(e){return t.call(this,e)||this}return u(e,t),e.prototype.onChange=function(t){var e=t.target.files;e&&e.length&&this.props.onClick(e[0]),t.target.value=""},e.prototype.render=function(){var t=this;return r.createElement("div",{className:"buttonLine"},r.createElement("label",{htmlFor:"file-upload",className:"file-upload"},this.props.label),r.createElement("input",{ref:"upload",id:"file-upload",type:"file",accept:this.props.accept,onChange:function(e){return t.onChange(e)}}))},e}(r.Component),A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.replaceTexture=function(t){var e=this;if(this.props.node){var n=this.props.node.texture;n||(this.props.node.texture=new i.Texture(null,i.Engine.LastCreatedScene),n=this.props.node.texture),i.Tools.ReadFile(t,function(r){var o=new Blob([r],{type:"octet/stream"}),i=URL.createObjectURL(o);if(n.isCube){var a=void 0;t.name.toLowerCase().indexOf(".dds")>0?a=".dds":t.name.toLowerCase().indexOf(".env")>0&&(a=".env"),n.updateURL(i,a,function(){return e.forceUpdate()})}else n.updateURL(i,null,function(){return e.forceUpdate()})},void 0,!0)}},e.prototype.render=function(){var t=this;return r.createElement(N,{label:"Replace texture",onClick:function(e){return t.replaceTexture(e)},accept:".jpg, .png, .tga, .dds, .env"})},e}(r.Component),L=function(t){function e(){var e=t.call(this,"texture")||this;return e.texture=null,e}return u(e,t),e.prototype.renderProperties=function(t){return r.createElement(A,{globalState:t,node:this})},e}(p),j=function(t){function e(e){var n=t.call(this,"texture")||this;return n._globalState=e,n}return u(e,t),e.prototype.generateReactWidget=function(t,e){return r.createElement(M,{node:e,globalState:this._globalState})},e.prototype.getNewInstance=function(){return new L},e}(s.AbstractNodeFactory);n(26),n(28),n(30);var I=function(t){function e(e){var n=t.call(this,e)||this;if(n._nodes=new Array,n._rowPos=new Array,n._engine=new s.DiagramEngine,n._engine.installDefaultFactories(),n._engine.registerNodeFactory(new k(n.props.globalState)),n._engine.registerNodeFactory(new j(n.props.globalState)),n._model=new s.DiagramModel,n._model.addListener({linksUpdated:function(t){if(t.isCreated)console.log("link created"),console.log(t.link.sourcePort);else{console.log("link deleted");var e=f.SortInputOutput(t.link.sourcePort,t.link.targetPort);console.log(e),e&&(e.output.connection&&e.input.connection?(console.log("disconnected "+e.output.connection.name+" from "+e.input.connection.name),e.output.connection.disconnectFrom(e.input.connection),e.input.syncWithNodeMaterialConnectionPoint(e.input.connection),e.output.syncWithNodeMaterialConnectionPoint(e.output.connection)):e.input.connection&&e.input.connection.value?(console.log("value link removed"),e.input.connection.value=null):console.log("invalid link error"))}t.link.addListener({sourcePortChanged:function(){console.log("port change")},targetPortChanged:function(){console.log("Link set to target");var e=f.SortInputOutput(t.link.sourcePort,t.link.targetPort);e&&(e.output.connection&&e.input.connection?(console.log("link standard blocks"),e.output.connection.connectTo(e.input.connection)):e.input.connection&&(console.log("link value to standard block"),e.input.connection.value=e.output.getValue()),n.props.globalState.nodeMaterial&&n.props.globalState.nodeMaterial.build())}})},nodesUpdated:function(t){t.isCreated?console.log("new node"):console.log("node deleted")}}),n.props.globalState.nodeMaterial){var r=n.props.globalState.nodeMaterial;r._vertexOutputNodes.forEach(function(t){n.createNodeFromObject({column:0,nodeMaterialBlock:t})}),r._fragmentOutputNodes.forEach(function(t){n.createNodeFromObject({column:0,nodeMaterialBlock:t})})}return n._model.setZoomLevel(80),n._engine.setDiagramModel(n._model),n}return u(e,t),e.prototype.createNodeFromObject=function(t){null==this._rowPos[t.column]?this._rowPos[t.column]=0:this._rowPos[t.column]++;var e="Texture"===t.type?new L:new w;return this._nodes.push(e),e.setPosition(1600-300*t.column,210*this._rowPos[t.column]),this._model.addAll(e),t.nodeMaterialBlock&&e.prepare(t,this._nodes,this._model,this),e},e.prototype.componentDidMount=function(){if(this.props.globalState.hostDocument){var t=this.refs.test;t.setState({document:this.props.globalState.hostDocument}),this.props.globalState.hostDocument.addEventListener("keyup",t.onKeyUpPointer,!1)}},e.prototype.componentWillUnmount=function(){if(this.props.globalState.hostDocument){var t=this.refs.test;this.props.globalState.hostDocument.removeEventListener("keyup",t.onKeyUpPointer,!1)}},e.prototype.addNodeFromClass=function(t){var e=this,n=new t(t.prototype.getClassName()+"sdfsdf"),r=this.createNodeFromObject({column:0,nodeMaterialBlock:n}),o=this.refs.test;return this.forceUpdate(),setTimeout(function(){o.startFiringAction(new s.MoveCanvasAction(1,0,e._model))},500),r},e.prototype.addValueNode=function(t,e,n){if(void 0===e&&(e=0),n&&n.isAttribute)return this.forceUpdate(),null;var r=this.createNodeFromObject({column:e,type:t}),o=new f(t,"output");return r.prepareConnection(t,o,n),r.addPort(o),this.forceUpdate(),r},e.prototype.render=function(){var t=this;return r.createElement(S,{globalState:this.props.globalState},r.createElement("div",{id:"node-editor-graph-root"},r.createElement(C,{globalState:this.props.globalState,onAddValueNode:function(e){return t.addValueNode(e)},onAddNodeFromClass:function(e){return t.addNodeFromClass(e)}}),r.createElement(s.DiagramWidget,{deleteKeys:[46],ref:"test",inverseZoom:!0,className:"diagram-container",diagramEngine:this._engine,maxNumberPointsPerLink:0}),r.createElement(O,{globalState:this.props.globalState})))},e}(r.Component),R=function(){function t(){}return t.CreatePopup=function(t,e,n,r){var o=this;void 0===n&&(n=300),void 0===r&&(r=800);var i={width:n,height:r,top:(window.innerHeight-n)/2+window.screenY,left:(window.innerWidth-r)/2+window.screenX},a=Object.keys(i).map(function(t){return t+"="+i[t]}).join(","),l=window.open("",t,a);if(!l)return null;var u=l.document,s=u.createElement("link");s.rel="stylesheet",s.href="https://use.typekit.net/cta4xsb.css",u.head.appendChild(s),u.title=t,u.body.style.width="100%",u.body.style.height="100%",u.body.style.margin="0",u.body.style.padding="0";var c=u.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.margin="0",c.style.padding="0",l.document.body.appendChild(c),this._CopyStyles(window.document,u),setTimeout(function(){o._CopyStyles(window.document,u)},0),this[e]=l,c},t._CopyStyles=function(t,e){for(var n=0;n<t.styleSheets.length;n++){var r=t.styleSheets[n];try{if(r.cssRules){for(var o=t.createElement("style"),i=0,a=r.cssRules;i<a.length;i++){var l=a[i];o.appendChild(t.createTextNode(l.cssText))}e.head.appendChild(o)}else if(r.href){var u=t.createElement("link");u.rel="stylesheet",u.href=r.href,e.head.appendChild(u)}}catch(t){console.log(t)}}},t}(),F=function(){function t(){}return t.Show=function(t){var e=R.CreatePopup("BABYLON.JS NODE EDITOR","node-editor",1e3,800),n=new a;n.nodeMaterial=t.nodeMaterial,n.hostElement=e,n.hostDocument=e.ownerDocument;var i=r.createElement(I,{globalState:n});o.render(i,e);var l=R["node-editor"];n.nodeMaterial&&l&&(n.nodeMaterial.getScene().onDisposeObservable.addOnce(function(){l&&l.close()}),window.onbeforeunload=function(t){var e=R["node-editor"];e&&e.close()})},t}();n.d(e,"a",function(){return F})},function(t,e,n){"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}(),t.exports=n(14)},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){o(t,e,n[e])})}return t}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=t[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(e,"a",function(){return lt}),n.d(e,"b",function(){return at});var l=function(){},u={},s={},c={mark:l,measure:l};try{"undefined"!=typeof window&&(u=window),"undefined"!=typeof document&&(s=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(c=performance)}catch(t){}var f=(u.navigator||{}).userAgent,p=void 0===f?"":f,d=u,h=s,g=c,m=(d.document,!!h.documentElement&&!!h.head&&"function"==typeof h.addEventListener&&"function"==typeof h.createElement),v=(~p.indexOf("MSIE")||p.indexOf("Trident/"),"fa"),y="svg-inline--fa",b="data-fa-i2svg",_=(function(){try{}catch(t){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),x=_.concat([11,12,13,14,15,16,17,18,19,20]),w=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter"].concat(_.map(function(t){return"".concat(t,"x")})).concat(x.map(function(t){return"w-".concat(t)})),d.FontAwesomeConfig||{});if(h&&"function"==typeof h.querySelector){[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(t){var e=a(t,2),n=e[0],r=e[1],o=function(t){return""===t||"false"!==t&&("true"===t||t)}(function(t){var e=h.querySelector("script["+t+"]");if(e)return e.getAttribute(t)}(n));null!=o&&(w[r]=o)})}var k=i({familyPrefix:v,replacementClass:y,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},w);k.autoReplaceSvg||(k.observeMutations=!1);var P=i({},k);d.FontAwesomeConfig=P;var E=d||{};E.___FONT_AWESOME___||(E.___FONT_AWESOME___={}),E.___FONT_AWESOME___.styles||(E.___FONT_AWESOME___.styles={}),E.___FONT_AWESOME___.hooks||(E.___FONT_AWESOME___.hooks={}),E.___FONT_AWESOME___.shims||(E.___FONT_AWESOME___.shims=[]);var C=E.___FONT_AWESOME___,O=[];m&&((h.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(h.readyState)||h.addEventListener("DOMContentLoaded",function t(){h.removeEventListener("DOMContentLoaded",t),1,O.map(function(t){return t()})}));var S={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function T(t){if(t&&m){var e=h.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t;for(var n=h.head.childNodes,r=null,o=n.length-1;o>-1;o--){var i=n[o],a=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=i)}return h.head.insertBefore(e,r),t}}var M="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function N(){for(var t=12,e="";t-- >0;)e+=M[62*Math.random()|0];return e}function A(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function L(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,": ").concat(t[n],";")},"")}function j(t){return t.size!==S.size||t.x!==S.x||t.y!==S.y||t.rotate!==S.rotate||t.flipX||t.flipY}function I(t){var e=t.transform,n=t.containerWidth,r=t.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*e.x,", ").concat(32*e.y,") "),a="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),l="rotate(".concat(e.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(a," ").concat(l)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var R={x:0,y:0,width:"100%",height:"100%"};function F(t){var e=t.icons,n=e.main,r=e.mask,o=t.prefix,a=t.iconName,l=t.transform,u=t.symbol,s=t.title,c=t.extra,f=t.watchable,p=void 0!==f&&f,d=r.found?r:n,h=d.width,g=d.height,m="fa-w-".concat(Math.ceil(h/g*16)),v=[P.replacementClass,a?"".concat(P.familyPrefix,"-").concat(a):"",m].filter(function(t){return-1===c.classes.indexOf(t)}).concat(c.classes).join(" "),y={children:[],attributes:i({},c.attributes,{"data-prefix":o,"data-icon":a,class:v,role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(h," ").concat(g)})};p&&(y.attributes[b]=""),s&&y.children.push({tag:"title",attributes:{id:y.attributes["aria-labelledby"]||"title-".concat(N())},children:[s]});var _=i({},y,{prefix:o,iconName:a,main:n,mask:r,transform:l,symbol:u,styles:c.styles}),x=r.found&&n.found?function(t){var e=t.children,n=t.attributes,r=t.main,o=t.mask,a=t.transform,l=r.width,u=r.icon,s=o.width,c=o.icon,f=I({transform:a,containerWidth:s,iconWidth:l}),p={tag:"rect",attributes:i({},R,{fill:"white"})},d={tag:"g",attributes:i({},f.inner),children:[{tag:"path",attributes:i({},u.attributes,f.path,{fill:"black"})}]},h={tag:"g",attributes:i({},f.outer),children:[d]},g="mask-".concat(N()),m="clip-".concat(N()),v={tag:"defs",children:[{tag:"clipPath",attributes:{id:m},children:[c]},{tag:"mask",attributes:i({},R,{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,h]}]};return e.push(v,{tag:"rect",attributes:i({fill:"currentColor","clip-path":"url(#".concat(m,")"),mask:"url(#".concat(g,")")},R)}),{children:e,attributes:n}}(_):function(t){var e=t.children,n=t.attributes,r=t.main,o=t.transform,a=L(t.styles);if(a.length>0&&(n.style=a),j(o)){var l=I({transform:o,containerWidth:r.width,iconWidth:r.width});e.push({tag:"g",attributes:i({},l.outer),children:[{tag:"g",attributes:i({},l.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:i({},r.icon.attributes,l.path)}]}]})}else e.push(r.icon);return{children:e,attributes:n}}(_),w=x.children,k=x.attributes;return _.children=w,_.attributes=k,u?function(t){var e=t.prefix,n=t.iconName,r=t.children,o=t.attributes,a=t.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:i({},o,{id:!0===a?"".concat(e,"-").concat(P.familyPrefix,"-").concat(n):a}),children:r}]}]}(_):function(t){var e=t.children,n=t.main,r=t.mask,o=t.attributes,a=t.styles,l=t.transform;if(j(l)&&n.found&&!r.found){var u={x:n.width/n.height/2,y:.5};o.style=L(i({},a,{"transform-origin":"".concat(u.x+l.x/16,"em ").concat(u.y+l.y/16,"em")}))}return[{tag:"svg",attributes:o,children:e}]}(_)}var D=function(){},z=(P.measurePerformance&&g&&g.mark&&g.measure,function(t,e,n,r){var o,i,a,l=Object.keys(t),u=l.length,s=void 0!==r?function(t,e){return function(n,r,o,i){return t.call(e,n,r,o,i)}}(e,r):e;for(void 0===n?(o=1,a=t[l[0]]):(o=0,a=n);o<u;o++)a=s(a,t[i=l[o]],i,t);return a}),W=C.styles,U=C.shims,B=function(){var t=function(t){return z(W,function(e,n,r){return e[r]=z(n,t,{}),e},{})};t(function(t,e,n){return t[e[3]]=n,t}),t(function(t,e,n){var r=e[2];return t[n]=n,r.forEach(function(e){t[e]=n}),t});var e="far"in W;z(U,function(t,n){var r=n[0],o=n[1],i=n[2];return"far"!==o||e||(o="fas"),t[r]={prefix:o,iconName:i},t},{})};B();C.styles;function V(t,e,n){if(t&&t[e]&&t[e][n])return{prefix:e,iconName:n,icon:t[e][n]}}function Y(t){var e=t.tag,n=t.attributes,r=void 0===n?{}:n,o=t.children,i=void 0===o?[]:o;return"string"==typeof t?A(t):"<".concat(e," ").concat(function(t){return Object.keys(t||{}).reduce(function(e,n){return e+"".concat(n,'="').concat(A(t[n]),'" ')},"").trim()}(r),">").concat(i.map(Y).join(""),"</").concat(e,">")}var X=function(t){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t?t.toLowerCase().split(" ").reduce(function(t,e){var n=e.toLowerCase().split("-"),r=n[0],o=n.slice(1).join("-");if(r&&"h"===o)return t.flipX=!0,t;if(r&&"v"===o)return t.flipY=!0,t;if(o=parseFloat(o),isNaN(o))return t;switch(r){case"grow":t.size=t.size+o;break;case"shrink":t.size=t.size-o;break;case"left":t.x=t.x-o;break;case"right":t.x=t.x+o;break;case"up":t.y=t.y-o;break;case"down":t.y=t.y+o;break;case"rotate":t.rotate=t.rotate+o}return t},e):e};function G(t){this.name="MissingIcon",this.message=t||"Icon unavailable",this.stack=(new Error).stack}G.prototype=Object.create(Error.prototype),G.prototype.constructor=G;var H={fill:"currentColor"},$={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},q={tag:"path",attributes:i({},H,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},K=i({},$,{attributeName:"opacity"});i({},H,{cx:"256",cy:"364",r:"28"}),i({},$,{attributeName:"r",values:"28;14;28;28;14;28;"}),i({},K,{values:"1;0;1;1;0;1;"}),i({},H,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),i({},K,{values:"1;0;0;0;0;1;"}),i({},H,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),i({},K,{values:"0;0;1;1;0;0;"}),C.styles;var Z='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}';function Q(){var t=v,e=y,n=P.familyPrefix,r=P.replacementClass,o=Z;if(n!==t||r!==e){var i=new RegExp("\\.".concat(t,"\\-"),"g"),a=new RegExp("\\.".concat(e),"g");o=o.replace(i,".".concat(n,"-")).replace(a,".".concat(r))}return o}function J(t){return{found:!0,width:t[0],height:t[1],icon:{tag:"path",attributes:{fill:"currentColor",d:t.slice(4)[0]}}}}function tt(){P.autoAddCss&&!it&&(T(Q()),it=!0)}function et(t,e){return Object.defineProperty(t,"abstract",{get:e}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(t){return Y(t)})}}),Object.defineProperty(t,"node",{get:function(){if(m){var e=h.createElement("div");return e.innerHTML=t.html,e.children}}}),t}function nt(t){var e=t.prefix,n=void 0===e?"fa":e,r=t.iconName;if(r)return V(ot.definitions,n,r)||V(C.styles,n,r)}var rt,ot=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.definitions={}}var e,n,o;return e=t,(n=[{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(e){t.definitions[e]=i({},t.definitions[e]||{},o[e]),function t(e,n){var r=Object.keys(n).reduce(function(t,e){var r=n[e];return r.icon?t[r.iconName]=r.icon:t[e]=r,t},{});"function"==typeof C.hooks.addPack?C.hooks.addPack(e,r):C.styles[e]=i({},C.styles[e]||{},r),"fas"===e&&t("fa",n)}(e,o[e]),B()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,e){var n=e.prefix&&e.iconName&&e.icon?{0:e}:e;return Object.keys(n).map(function(e){var r=n[e],o=r.prefix,i=r.iconName,a=r.icon;t[o]||(t[o]={}),t[o][i]=a}),t}}])&&r(e.prototype,n),o&&r(e,o),t}()),it=!1,at={transform:function(t){return X(t)}},lt=(rt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.transform,r=void 0===n?S:n,o=e.symbol,a=void 0!==o&&o,l=e.mask,u=void 0===l?null:l,s=e.title,c=void 0===s?null:s,f=e.classes,p=void 0===f?[]:f,d=e.attributes,h=void 0===d?{}:d,g=e.styles,m=void 0===g?{}:g;if(t){var v=t.prefix,y=t.iconName,b=t.icon;return et(i({type:"icon"},t),function(){return tt(),P.autoA11y&&(c?h["aria-labelledby"]="".concat(P.replacementClass,"-title-").concat(N()):h["aria-hidden"]="true"),F({icons:{main:J(b),mask:u?J(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:v,iconName:y,transform:i({},S,r),symbol:a,title:c,extra:{attributes:h,styles:m,classes:p}})})}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(t||{}).icon?t:nt(t||{}),r=e.mask;return r&&(r=(r||{}).icon?r:nt(r||{})),rt(n,i({},e,{mask:r}))})},function(t,e,n){"use strict";
- /*
- object-assign
- (c) Sindre Sorhus
- @license MIT
- */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,l=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;u<arguments.length;u++){for(var s in n=Object(arguments[u]))o.call(n,s)&&(l[s]=n[s]);if(r){a=r(n);for(var c=0;c<a.length;c++)i.call(n,a[c])&&(l[a[c]]=n[a[c]])}}return l}},function(t,e,n){"use strict";n.r(e),function(t){var r=n(8);n.d(e,"NodeEditor",function(){return r.a});var o=void 0!==t?t:"undefined"!=typeof window?window:void 0;void 0!==o&&(o.BABYLON=o.BABYLON||{},o.BABYLON.NodeEditor=r.a)}.call(this,n(7))},function(t,e,n){"use strict";
- /** @license React v16.6.1
- * react.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var r=n(11),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,u=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.concurrent_mode"):60111,d=o?Symbol.for("react.forward_ref"):60112,h=o?Symbol.for("react.suspense"):60113,g=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function y(t){for(var e=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(t,e,n,r,o,i,a,l){if(!t){if(t=void 0,void 0===e)t=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,l],s=0;(t=Error(e.replace(/%s/g,function(){return u[s++]}))).name="Invariant Violation"}throw t.framesToPop=1,t}}(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function x(t,e,n){this.props=t,this.context=e,this.refs=_,this.updater=n||b}function w(){}function k(t,e,n){this.props=t,this.context=e,this.refs=_,this.updater=n||b}x.prototype.isReactComponent={},x.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&y("85"),this.updater.enqueueSetState(this,t,e,"setState")},x.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},w.prototype=x.prototype;var P=k.prototype=new w;P.constructor=k,r(P,x.prototype),P.isPureReactComponent=!0;var E={current:null,currentDispatcher:null},C=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function S(t,e,n){var r=void 0,o={},a=null,l=null;if(null!=e)for(r in void 0!==e.ref&&(l=e.ref),void 0!==e.key&&(a=""+e.key),e)C.call(e,r)&&!O.hasOwnProperty(r)&&(o[r]=e[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}if(t&&t.defaultProps)for(r in u=t.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:i,type:t,key:a,ref:l,props:o,_owner:E.current}}function T(t){return"object"==typeof t&&null!==t&&t.$$typeof===i}var M=/\/+/g,N=[];function A(t,e,n,r){if(N.length){var o=N.pop();return o.result=t,o.keyPrefix=e,o.func=n,o.context=r,o.count=0,o}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function L(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>N.length&&N.push(t)}function j(t,e,n){return null==t?0:function t(e,n,r,o){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case a:u=!0}}if(u)return r(o,e,""===n?"."+I(e,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=n+I(l=e[s],s);u+=t(l,c,r,o)}else if(c=null===e||"object"!=typeof e?null:"function"==typeof(c=v&&e[v]||e["@@iterator"])?c:null,"function"==typeof c)for(e=c.call(e),s=0;!(l=e.next()).done;)u+=t(l=l.value,c=n+I(l,s++),r,o);else"object"===l&&y("31","[object Object]"==(r=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":r,"");return u}(t,"",e,n)}function I(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,function(t){return e[t]})}(t.key):e.toString(36)}function R(t,e){t.func.call(t.context,e,t.count++)}function F(t,e,n){var r=t.result,o=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?D(t,r,n,function(t){return t}):null!=t&&(T(t)&&(t=function(t,e){return{$$typeof:i,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,o+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(M,"$&/")+"/")+n)),r.push(t))}function D(t,e,n,r,o){var i="";null!=n&&(i=(""+n).replace(M,"$&/")+"/"),j(t,F,e=A(e,i,r,o)),L(e)}var z={Children:{map:function(t,e,n){if(null==t)return t;var r=[];return D(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;j(t,R,e=A(null,null,e,n)),L(e)},count:function(t){return j(t,function(){return null},null)},toArray:function(t){var e=[];return D(t,e,null,function(t){return t}),e},only:function(t){return T(t)||y("143"),t}},createRef:function(){return{current:null}},Component:x,PureComponent:k,createContext:function(t,e){return void 0===e&&(e=null),(t={$$typeof:f,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:t},t.Consumer=t},forwardRef:function(t){return{$$typeof:d,render:t}},lazy:function(t){return{$$typeof:m,_ctor:t,_status:-1,_result:null}},memo:function(t,e){return{$$typeof:g,type:t,compare:void 0===e?null:e}},Fragment:l,StrictMode:u,Suspense:h,createElement:S,cloneElement:function(t,e,n){null==t&&y("267",t);var o=void 0,a=r({},t.props),l=t.key,u=t.ref,s=t._owner;if(null!=e){void 0!==e.ref&&(u=e.ref,s=E.current),void 0!==e.key&&(l=""+e.key);var c=void 0;for(o in t.type&&t.type.defaultProps&&(c=t.type.defaultProps),e)C.call(e,o)&&!O.hasOwnProperty(o)&&(a[o]=void 0===e[o]&&void 0!==c?c[o]:e[o])}if(1===(o=arguments.length-2))a.children=n;else if(1<o){c=Array(o);for(var f=0;f<o;f++)c[f]=arguments[f+2];a.children=c}return{$$typeof:i,type:t.type,key:l,ref:u,props:a,_owner:s}},createFactory:function(t){var e=S.bind(null,t);return e.type=t,e},isValidElement:T,version:"16.6.3",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:E,assign:r}};z.unstable_ConcurrentMode=p,z.unstable_Profiler=s;var W={default:z},U=W&&z||W;t.exports=U.default||U},function(t,e,n){"use strict";
- /** @license React v16.6.1
- * react-dom.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */var r=n(0),o=n(11),i=n(15);function a(t){for(var e=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(t,e,n,r,o,i,a,l){if(!t){if(t=void 0,void 0===e)t=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,l],s=0;(t=Error(e.replace(/%s/g,function(){return u[s++]}))).name="Invariant Violation"}throw t.framesToPop=1,t}}(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}r||a("227");var l=!1,u=null,s=!1,c=null,f={onError:function(t){l=!0,u=t}};function p(t,e,n,r,o,i,a,s,c){l=!1,u=null,function(t,e,n,r,o,i,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{e.apply(n,s)}catch(t){this.onError(t)}}.apply(f,arguments)}var d=null,h={};function g(){if(d)for(var t in h){var e=h[t],n=d.indexOf(t);if(-1<n||a("96",t),!v[n])for(var r in e.extractEvents||a("97",t),v[n]=e,n=e.eventTypes){var o=void 0,i=n[r],l=e,u=r;y.hasOwnProperty(u)&&a("99",u),y[u]=i;var s=i.phasedRegistrationNames;if(s){for(o in s)s.hasOwnProperty(o)&&m(s[o],l,u);o=!0}else i.registrationName?(m(i.registrationName,l,u),o=!0):o=!1;o||a("98",r,t)}}}function m(t,e,n){b[t]&&a("100",t),b[t]=e,_[t]=e.eventTypes[n].dependencies}var v=[],y={},b={},_={},x=null,w=null,k=null;function P(t,e,n){var r=t.type||"unknown-event";t.currentTarget=k(n),function(t,e,n,r,o,i,f,d,h){if(p.apply(this,arguments),l){if(l){var g=u;l=!1,u=null}else a("198"),g=void 0;s||(s=!0,c=g)}}(r,e,void 0,t),t.currentTarget=null}function E(t,e){return null==e&&a("30"),null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function C(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var O=null;function S(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var r=0;r<e.length&&!t.isPropagationStopped();r++)P(t,e[r],n[r]);else e&&P(t,e,n);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}var T={injectEventPluginOrder:function(t){d&&a("101"),d=Array.prototype.slice.call(t),g()},injectEventPluginsByName:function(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];h.hasOwnProperty(e)&&h[e]===r||(h[e]&&a("102",e),h[e]=r,n=!0)}n&&g()}};function M(t,e){var n=t.stateNode;if(!n)return null;var r=x(n);if(!r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}return t?null:(n&&"function"!=typeof n&&a("231",e,typeof n),n)}function N(t){if(null!==t&&(O=E(O,t)),t=O,O=null,t&&(C(t,S),O&&a("95"),s))throw t=c,s=!1,c=null,t}var A=Math.random().toString(36).slice(2),L="__reactInternalInstance$"+A,j="__reactEventHandlers$"+A;function I(t){if(t[L])return t[L];for(;!t[L];){if(!t.parentNode)return null;t=t.parentNode}return 5===(t=t[L]).tag||6===t.tag?t:null}function R(t){return!(t=t[L])||5!==t.tag&&6!==t.tag?null:t}function F(t){if(5===t.tag||6===t.tag)return t.stateNode;a("33")}function D(t){return t[j]||null}function z(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function W(t,e,n){(e=M(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=E(n._dispatchListeners,e),n._dispatchInstances=E(n._dispatchInstances,t))}function U(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=z(e);for(e=n.length;0<e--;)W(n[e],"captured",t);for(e=0;e<n.length;e++)W(n[e],"bubbled",t)}}function B(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=M(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=E(n._dispatchListeners,e),n._dispatchInstances=E(n._dispatchInstances,t))}function V(t){t&&t.dispatchConfig.registrationName&&B(t._targetInst,null,t)}function Y(t){C(t,U)}var X=!("undefined"==typeof window||!window.document||!window.document.createElement);function G(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var H={animationend:G("Animation","AnimationEnd"),animationiteration:G("Animation","AnimationIteration"),animationstart:G("Animation","AnimationStart"),transitionend:G("Transition","TransitionEnd")},$={},q={};function K(t){if($[t])return $[t];if(!H[t])return t;var e,n=H[t];for(e in n)if(n.hasOwnProperty(e)&&e in q)return $[t]=n[e];return t}X&&(q=document.createElement("div").style,"AnimationEvent"in window||(delete H.animationend.animation,delete H.animationiteration.animation,delete H.animationstart.animation),"TransitionEvent"in window||delete H.transitionend.transition);var Z=K("animationend"),Q=K("animationiteration"),J=K("animationstart"),tt=K("transitionend"),et="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),nt=null,rt=null,ot=null;function it(){if(ot)return ot;var t,e,n=rt,r=n.length,o="value"in nt?nt.value:nt.textContent,i=o.length;for(t=0;t<r&&n[t]===o[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===o[i-e];e++);return ot=o.slice(t,1<e?1-e:void 0)}function at(){return!0}function lt(){return!1}function ut(t,e,n,r){for(var o in this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,t=this.constructor.Interface)t.hasOwnProperty(o)&&((e=t[o])?this[o]=e(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?at:lt,this.isPropagationStopped=lt,this}function st(t,e,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,t,e,n,r),o}return new this(t,e,n,r)}function ct(t){t instanceof this||a("279"),t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function ft(t){t.eventPool=[],t.getPooled=st,t.release=ct}o(ut.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=at)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=at)},persist:function(){this.isPersistent=at},isPersistent:lt,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=lt,this._dispatchInstances=this._dispatchListeners=null}}),ut.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ut.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var i=new e;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,t),n.extend=r.extend,ft(n),n},ft(ut);var pt=ut.extend({data:null}),dt=ut.extend({data:null}),ht=[9,13,27,32],gt=X&&"CompositionEvent"in window,mt=null;X&&"documentMode"in document&&(mt=document.documentMode);var vt=X&&"TextEvent"in window&&!mt,yt=X&&(!gt||mt&&8<mt&&11>=mt),bt=String.fromCharCode(32),_t={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},xt=!1;function wt(t,e){switch(t){case"keyup":return-1!==ht.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function kt(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var Pt=!1;var Et={eventTypes:_t,extractEvents:function(t,e,n,r){var o=void 0,i=void 0;if(gt)t:{switch(t){case"compositionstart":o=_t.compositionStart;break t;case"compositionend":o=_t.compositionEnd;break t;case"compositionupdate":o=_t.compositionUpdate;break t}o=void 0}else Pt?wt(t,n)&&(o=_t.compositionEnd):"keydown"===t&&229===n.keyCode&&(o=_t.compositionStart);return o?(yt&&"ko"!==n.locale&&(Pt||o!==_t.compositionStart?o===_t.compositionEnd&&Pt&&(i=it()):(rt="value"in(nt=r)?nt.value:nt.textContent,Pt=!0)),o=pt.getPooled(o,e,n,r),i?o.data=i:null!==(i=kt(n))&&(o.data=i),Y(o),i=o):i=null,(t=vt?function(t,e){switch(t){case"compositionend":return kt(e);case"keypress":return 32!==e.which?null:(xt=!0,bt);case"textInput":return(t=e.data)===bt&&xt?null:t;default:return null}}(t,n):function(t,e){if(Pt)return"compositionend"===t||!gt&&wt(t,e)?(t=it(),ot=rt=nt=null,Pt=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return yt&&"ko"!==e.locale?null:e.data;default:return null}}(t,n))?((e=dt.getPooled(_t.beforeInput,e,n,r)).data=t,Y(e)):e=null,null===i?e:null===e?i:[i,e]}},Ct=null,Ot=null,St=null;function Tt(t){if(t=w(t)){"function"!=typeof Ct&&a("280");var e=x(t.stateNode);Ct(t.stateNode,t.type,e)}}function Mt(t){Ot?St?St.push(t):St=[t]:Ot=t}function Nt(){if(Ot){var t=Ot,e=St;if(St=Ot=null,Tt(t),e)for(t=0;t<e.length;t++)Tt(e[t])}}function At(t,e){return t(e)}function Lt(t,e,n){return t(e,n)}function jt(){}var It=!1;function Rt(t,e){if(It)return t(e);It=!0;try{return At(t,e)}finally{It=!1,(null!==Ot||null!==St)&&(jt(),Nt())}}var Ft={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 Dt(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!Ft[t.type]:"textarea"===e}function zt(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function Wt(t){if(!X)return!1;var e=(t="on"+t)in document;return e||((e=document.createElement("div")).setAttribute(t,"return;"),e="function"==typeof e[t]),e}function Ut(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function Bt(t){t._valueTracker||(t._valueTracker=function(t){var e=Ut(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(t){r=""+t,i.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function Vt(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Ut(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}var Yt=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xt=/^(.*)[\\\/]/,Gt="function"==typeof Symbol&&Symbol.for,Ht=Gt?Symbol.for("react.element"):60103,$t=Gt?Symbol.for("react.portal"):60106,qt=Gt?Symbol.for("react.fragment"):60107,Kt=Gt?Symbol.for("react.strict_mode"):60108,Zt=Gt?Symbol.for("react.profiler"):60114,Qt=Gt?Symbol.for("react.provider"):60109,Jt=Gt?Symbol.for("react.context"):60110,te=Gt?Symbol.for("react.concurrent_mode"):60111,ee=Gt?Symbol.for("react.forward_ref"):60112,ne=Gt?Symbol.for("react.suspense"):60113,re=Gt?Symbol.for("react.memo"):60115,oe=Gt?Symbol.for("react.lazy"):60116,ie="function"==typeof Symbol&&Symbol.iterator;function ae(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=ie&&t[ie]||t["@@iterator"])?t:null}function le(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case te:return"ConcurrentMode";case qt:return"Fragment";case $t:return"Portal";case Zt:return"Profiler";case Kt:return"StrictMode";case ne:return"Suspense"}if("object"==typeof t)switch(t.$$typeof){case Jt:return"Context.Consumer";case Qt:return"Context.Provider";case ee:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case re:return le(t.type);case oe:if(t=1===t._status?t._result:null)return le(t)}return null}function ue(t){var e="";do{t:switch(t.tag){case 2:case 16:case 0:case 1:case 5:case 8:case 13:var n=t._debugOwner,r=t._debugSource,o=le(t.type),i=null;n&&(i=le(n.type)),n=o,o="",r?o=" (at "+r.fileName.replace(Xt,"")+":"+r.lineNumber+")":i&&(o=" (created by "+i+")"),i="\n in "+(n||"Unknown")+o;break t;default:i=""}e+=i,t=t.return}while(t);return e}var se=/^[: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]*$/,ce=Object.prototype.hasOwnProperty,fe={},pe={};function de(t,e,n,r,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e}var he={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){he[t]=new de(t,0,!1,t,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];he[e]=new de(e,1,!1,t[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){he[t]=new de(t,2,!1,t.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){he[t]=new de(t,2,!1,t,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){he[t]=new de(t,3,!1,t.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(t){he[t]=new de(t,3,!0,t,null)}),["capture","download"].forEach(function(t){he[t]=new de(t,4,!1,t,null)}),["cols","rows","size","span"].forEach(function(t){he[t]=new de(t,6,!1,t,null)}),["rowSpan","start"].forEach(function(t){he[t]=new de(t,5,!1,t.toLowerCase(),null)});var ge=/[\-:]([a-z])/g;function me(t){return t[1].toUpperCase()}function ve(t,e,n,r){var o=he.hasOwnProperty(e)?he[e]:null;(null!==o?0===o.type:!r&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(function(t,e,n,r){if(null==e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,o,r)&&(n=null),r||null===o?function(t){return!!ce.call(pe,t)||!ce.call(fe,t)&&(se.test(t)?pe[t]=!0:(fe[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):o.mustUseProperty?t[o.propertyName]=null===n?3!==o.type&&"":n:(e=o.attributeName,r=o.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}function ye(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function be(t,e){var n=e.checked;return o({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function _e(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=ye(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function xe(t,e){null!=(e=e.checked)&&ve(t,"checked",e,!1)}function we(t,e){xe(t,e);var n=ye(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?Pe(t,e.type,n):e.hasOwnProperty("defaultValue")&&Pe(t,e.type,ye(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function ke(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!t.defaultChecked,t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function Pe(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+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(t){var e=t.replace(ge,me);he[e]=new de(e,1,!1,t,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(ge,me);he[e]=new de(e,1,!1,t,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(ge,me);he[e]=new de(e,1,!1,t,"http://www.w3.org/XML/1998/namespace")}),he.tabIndex=new de("tabIndex",1,!1,"tabindex",null);var Ee={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Ce(t,e,n){return(t=ut.getPooled(Ee.change,t,e,n)).type="change",Mt(n),Y(t),t}var Oe=null,Se=null;function Te(t){N(t)}function Me(t){if(Vt(F(t)))return t}function Ne(t,e){if("change"===t)return e}var Ae=!1;function Le(){Oe&&(Oe.detachEvent("onpropertychange",je),Se=Oe=null)}function je(t){"value"===t.propertyName&&Me(Se)&&Rt(Te,t=Ce(Se,t,zt(t)))}function Ie(t,e,n){"focus"===t?(Le(),Se=n,(Oe=e).attachEvent("onpropertychange",je)):"blur"===t&&Le()}function Re(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return Me(Se)}function Fe(t,e){if("click"===t)return Me(e)}function De(t,e){if("input"===t||"change"===t)return Me(e)}X&&(Ae=Wt("input")&&(!document.documentMode||9<document.documentMode));var ze={eventTypes:Ee,_isInputEventSupported:Ae,extractEvents:function(t,e,n,r){var o=e?F(e):window,i=void 0,a=void 0,l=o.nodeName&&o.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===o.type?i=Ne:Dt(o)?Ae?i=De:(i=Re,a=Ie):(l=o.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=Fe),i&&(i=i(t,e)))return Ce(i,n,r);a&&a(t,o,e),"blur"===t&&(t=o._wrapperState)&&t.controlled&&"number"===o.type&&Pe(o,"number",o.value)}},We=ut.extend({view:null,detail:null}),Ue={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Be(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Ue[t])&&!!e[t]}function Ve(){return Be}var Ye=0,Xe=0,Ge=!1,He=!1,$e=We.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ve,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},movementX:function(t){if("movementX"in t)return t.movementX;var e=Ye;return Ye=t.screenX,Ge?"mousemove"===t.type?t.screenX-e:0:(Ge=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=Xe;return Xe=t.screenY,He?"mousemove"===t.type?t.screenY-e:0:(He=!0,0)}}),qe=$e.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Ke={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Ze={eventTypes:Ke,extractEvents:function(t,e,n,r){var o="mouseover"===t||"pointerover"===t,i="mouseout"===t||"pointerout"===t;if(o&&(n.relatedTarget||n.fromElement)||!i&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,i?(i=e,e=(e=n.relatedTarget||n.toElement)?I(e):null):i=null,i===e)return null;var a=void 0,l=void 0,u=void 0,s=void 0;"mouseout"===t||"mouseover"===t?(a=$e,l=Ke.mouseLeave,u=Ke.mouseEnter,s="mouse"):"pointerout"!==t&&"pointerover"!==t||(a=qe,l=Ke.pointerLeave,u=Ke.pointerEnter,s="pointer");var c=null==i?o:F(i);if(o=null==e?o:F(e),(t=a.getPooled(l,i,n,r)).type=s+"leave",t.target=c,t.relatedTarget=o,(n=a.getPooled(u,e,n,r)).type=s+"enter",n.target=o,n.relatedTarget=c,r=e,i&&r)t:{for(o=r,s=0,a=e=i;a;a=z(a))s++;for(a=0,u=o;u;u=z(u))a++;for(;0<s-a;)e=z(e),s--;for(;0<a-s;)o=z(o),a--;for(;s--;){if(e===o||e===o.alternate)break t;e=z(e),o=z(o)}e=null}else e=null;for(o=e,e=[];i&&i!==o&&(null===(s=i.alternate)||s!==o);)e.push(i),i=z(i);for(i=[];r&&r!==o&&(null===(s=r.alternate)||s!==o);)i.push(r),r=z(r);for(r=0;r<e.length;r++)B(e[r],"bubbled",t);for(r=i.length;0<r--;)B(i[r],"captured",n);return[t,n]}},Qe=Object.prototype.hasOwnProperty;function Je(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function tn(t,e){if(Je(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Qe.call(e,n[r])||!Je(t[n[r]],e[n[r]]))return!1;return!0}function en(t){var e=t;if(t.alternate)for(;e.return;)e=e.return;else{if(0!=(2&e.effectTag))return 1;for(;e.return;)if(0!=(2&(e=e.return).effectTag))return 1}return 3===e.tag?2:3}function nn(t){2!==en(t)&&a("188")}function rn(t){if(!(t=function(t){var e=t.alternate;if(!e)return 3===(e=en(t))&&a("188"),1===e?null:t;for(var n=t,r=e;;){var o=n.return,i=o?o.alternate:null;if(!o||!i)break;if(o.child===i.child){for(var l=o.child;l;){if(l===n)return nn(o),t;if(l===r)return nn(o),e;l=l.sibling}a("188")}if(n.return!==r.return)n=o,r=i;else{l=!1;for(var u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}l||a("189")}}n.alternate!==r&&a("190")}return 3!==n.tag&&a("188"),n.stateNode.current===n?t:e}(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}var on=ut.extend({animationName:null,elapsedTime:null,pseudoElement:null}),an=ut.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ln=We.extend({relatedTarget:null});function un(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}var sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cn={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"},fn=We.extend({key:function(t){if(t.key){var e=sn[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=un(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?cn[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ve,charCode:function(t){return"keypress"===t.type?un(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?un(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),pn=$e.extend({dataTransfer:null}),dn=We.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ve}),hn=ut.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),gn=$e.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),mn=[["abort","abort"],[Z,"animationEnd"],[Q,"animationIteration"],[J,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[tt,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],vn={},yn={};function bn(t,e){var n=t[0],r="on"+((t=t[1])[0].toUpperCase()+t.slice(1));e={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:e},vn[t]=e,yn[n]=e}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["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"]].forEach(function(t){bn(t,!0)}),mn.forEach(function(t){bn(t,!1)});var _n={eventTypes:vn,isInteractiveTopLevelEventType:function(t){return void 0!==(t=yn[t])&&!0===t.isInteractive},extractEvents:function(t,e,n,r){var o=yn[t];if(!o)return null;switch(t){case"keypress":if(0===un(n))return null;case"keydown":case"keyup":t=fn;break;case"blur":case"focus":t=ln;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=$e;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=dn;break;case Z:case Q:case J:t=on;break;case tt:t=hn;break;case"scroll":t=We;break;case"wheel":t=gn;break;case"copy":case"cut":case"paste":t=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=qe;break;default:t=ut}return Y(e=t.getPooled(o,e,n,r)),e}},xn=_n.isInteractiveTopLevelEventType,wn=[];function kn(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;t.ancestors.push(n),n=I(r)}while(n);for(n=0;n<t.ancestors.length;n++){e=t.ancestors[n];var o=zt(t.nativeEvent);r=t.topLevelType;for(var i=t.nativeEvent,a=null,l=0;l<v.length;l++){var u=v[l];u&&(u=u.extractEvents(r,e,i,o))&&(a=E(a,u))}N(a)}}var Pn=!0;function En(t,e){if(!e)return null;var n=(xn(t)?On:Sn).bind(null,t);e.addEventListener(t,n,!1)}function Cn(t,e){if(!e)return null;var n=(xn(t)?On:Sn).bind(null,t);e.addEventListener(t,n,!0)}function On(t,e){Lt(Sn,t,e)}function Sn(t,e){if(Pn){var n=zt(e);if(null===(n=I(n))||"number"!=typeof n.tag||2===en(n)||(n=null),wn.length){var r=wn.pop();r.topLevelType=t,r.nativeEvent=e,r.targetInst=n,t=r}else t={topLevelType:t,nativeEvent:e,targetInst:n,ancestors:[]};try{Rt(kn,t)}finally{t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>wn.length&&wn.push(t)}}}var Tn={},Mn=0,Nn="_reactListenersID"+(""+Math.random()).slice(2);function An(t){return Object.prototype.hasOwnProperty.call(t,Nn)||(t[Nn]=Mn++,Tn[t[Nn]]={}),Tn[t[Nn]]}function Ln(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function jn(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function In(t,e){var n,r=jn(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=jn(r)}}function Rn(){for(var t=window,e=Ln();e instanceof t.HTMLIFrameElement;){try{t=e.contentDocument.defaultView}catch(t){break}e=Ln(t.document)}return e}function Fn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var Dn=X&&"documentMode"in document&&11>=document.documentMode,zn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Wn=null,Un=null,Bn=null,Vn=!1;function Yn(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Vn||null==Wn||Wn!==Ln(n)?null:("selectionStart"in(n=Wn)&&Fn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Bn&&tn(Bn,n)?null:(Bn=n,(t=ut.getPooled(zn.select,Un,t,e)).type="select",t.target=Wn,Y(t),t))}var Xn={eventTypes:zn,extractEvents:function(t,e,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){t:{i=An(i),o=_.onSelect;for(var a=0;a<o.length;a++){var l=o[a];if(!i.hasOwnProperty(l)||!i[l]){i=!1;break t}}i=!0}o=!i}if(o)return null;switch(i=e?F(e):window,t){case"focus":(Dt(i)||"true"===i.contentEditable)&&(Wn=i,Un=e,Bn=null);break;case"blur":Bn=Un=Wn=null;break;case"mousedown":Vn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vn=!1,Yn(n,r);case"selectionchange":if(Dn)break;case"keydown":case"keyup":return Yn(n,r)}return null}};function Gn(t,e){return t=o({children:void 0},e),(e=function(t){var e="";return r.Children.forEach(t,function(t){null!=t&&(e+=t)}),e}(e.children))&&(t.children=e),t}function Hn(t,e,n,r){if(t=t.options,e){e={};for(var o=0;o<n.length;o++)e["$"+n[o]]=!0;for(n=0;n<t.length;n++)o=e.hasOwnProperty("$"+t[n].value),t[n].selected!==o&&(t[n].selected=o),o&&r&&(t[n].defaultSelected=!0)}else{for(n=""+ye(n),e=null,o=0;o<t.length;o++){if(t[o].value===n)return t[o].selected=!0,void(r&&(t[o].defaultSelected=!0));null!==e||t[o].disabled||(e=t[o])}null!==e&&(e.selected=!0)}}function $n(t,e){return null!=e.dangerouslySetInnerHTML&&a("91"),o({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function qn(t,e){var n=e.value;null==n&&(n=e.defaultValue,null!=(e=e.children)&&(null!=n&&a("92"),Array.isArray(e)&&(1>=e.length||a("93"),e=e[0]),n=e),null==n&&(n="")),t._wrapperState={initialValue:ye(n)}}function Kn(t,e){var n=ye(e.value),r=ye(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function Zn(t){var e=t.textContent;e===t._wrapperState.initialValue&&(t.value=e)}T.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),x=D,w=R,k=F,T.injectEventPluginsByName({SimpleEventPlugin:_n,EnterLeaveEventPlugin:Ze,ChangeEventPlugin:ze,SelectEventPlugin:Xn,BeforeInputEventPlugin:Et});var Qn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Jn(t){switch(t){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 tr(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?Jn(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var er,nr=void 0,rr=(er=function(t,e){if(t.namespaceURI!==Qn.svg||"innerHTML"in t)t.innerHTML=e;else{for((nr=nr||document.createElement("div")).innerHTML="<svg>"+e+"</svg>",e=nr.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,r){MSApp.execUnsafeLocalFunction(function(){return er(t,e)})}:er);function or(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}var ir={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},ar=["Webkit","ms","Moz","O"];function lr(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||ir.hasOwnProperty(t)&&ir[t]?(""+e).trim():e+"px"}function ur(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=lr(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,o):t[n]=o}}Object.keys(ir).forEach(function(t){ar.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ir[e]=ir[t]})});var sr=o({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 cr(t,e){e&&(sr[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&a("137",t,""),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&a("60"),"object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML||a("61")),null!=e.style&&"object"!=typeof e.style&&a("62",""))}function fr(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){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 pr(t,e){var n=An(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=_[e];for(var r=0;r<e.length;r++){var o=e[r];if(!n.hasOwnProperty(o)||!n[o]){switch(o){case"scroll":Cn("scroll",t);break;case"focus":case"blur":Cn("focus",t),Cn("blur",t),n.blur=!0,n.focus=!0;break;case"cancel":case"close":Wt(o)&&Cn(o,t);break;case"invalid":case"submit":case"reset":break;default:-1===et.indexOf(o)&&En(o,t)}n[o]=!0}}}function dr(){}var hr=null,gr=null;function mr(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function vr(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var yr="function"==typeof setTimeout?setTimeout:void 0,br="function"==typeof clearTimeout?clearTimeout:void 0;function _r(t){for(t=t.nextSibling;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t}function xr(t){for(t=t.firstChild;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t}new Set;var wr=[],kr=-1;function Pr(t){0>kr||(t.current=wr[kr],wr[kr]=null,kr--)}function Er(t,e){wr[++kr]=t.current,t.current=e}var Cr={},Or={current:Cr},Sr={current:!1},Tr=Cr;function Mr(t,e){var n=t.type.contextTypes;if(!n)return Cr;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=e[o];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Nr(t){return null!=(t=t.childContextTypes)}function Ar(t){Pr(Sr),Pr(Or)}function Lr(t){Pr(Sr),Pr(Or)}function jr(t,e,n){Or.current!==Cr&&a("168"),Er(Or,e),Er(Sr,n)}function Ir(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())i in t||a("108",le(e)||"Unknown",i);return o({},n,r)}function Rr(t){var e=t.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||Cr,Tr=Or.current,Er(Or,e),Er(Sr,Sr.current),!0}function Fr(t,e,n){var r=t.stateNode;r||a("169"),n?(e=Ir(t,e,Tr),r.__reactInternalMemoizedMergedChildContext=e,Pr(Sr),Pr(Or),Er(Or,e)):Pr(Sr),Er(Sr,n)}var Dr=null,zr=null;function Wr(t){return function(e){try{return t(e)}catch(t){}}}function Ur(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.firstContextDependency=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Br(t,e,n,r){return new Ur(t,e,n,r)}function Vr(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Yr(t,e){var n=t.alternate;return null===n?((n=Br(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=t.childExpirationTime,n.expirationTime=t.expirationTime,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,n.firstContextDependency=t.firstContextDependency,n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Xr(t,e,n,r,o,i){var l=2;if(r=t,"function"==typeof t)Vr(t)&&(l=1);else if("string"==typeof t)l=5;else t:switch(t){case qt:return Gr(n.children,o,i,e);case te:return Hr(n,3|o,i,e);case Kt:return Hr(n,2|o,i,e);case Zt:return(t=Br(12,n,e,4|o)).elementType=Zt,t.type=Zt,t.expirationTime=i,t;case ne:return(t=Br(13,n,e,o)).elementType=ne,t.type=ne,t.expirationTime=i,t;default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case Qt:l=10;break t;case Jt:l=9;break t;case ee:l=11;break t;case re:l=14;break t;case oe:l=16,r=null;break t}a("130",null==t?t:typeof t,"")}return(e=Br(l,n,e,o)).elementType=t,e.type=r,e.expirationTime=i,e}function Gr(t,e,n,r){return(t=Br(7,t,r,e)).expirationTime=n,t}function Hr(t,e,n,r){return t=Br(8,t,r,e),e=0==(1&e)?Kt:te,t.elementType=e,t.type=e,t.expirationTime=n,t}function $r(t,e,n){return(t=Br(6,t,null,e)).expirationTime=n,t}function qr(t,e,n){return(e=Br(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Kr(t,e){t.didError=!1;var n=t.earliestPendingTime;0===n?t.earliestPendingTime=t.latestPendingTime=e:n<e?t.earliestPendingTime=e:t.latestPendingTime>e&&(t.latestPendingTime=e),Jr(e,t)}function Zr(t,e){t.didError=!1;var n=t.latestPingedTime;0!==n&&n>=e&&(t.latestPingedTime=0),n=t.earliestPendingTime;var r=t.latestPendingTime;n===e?t.earliestPendingTime=r===e?t.latestPendingTime=0:r:r===e&&(t.latestPendingTime=n),n=t.earliestSuspendedTime,r=t.latestSuspendedTime,0===n?t.earliestSuspendedTime=t.latestSuspendedTime=e:n<e?t.earliestSuspendedTime=e:r>e&&(t.latestSuspendedTime=e),Jr(e,t)}function Qr(t,e){var n=t.earliestPendingTime;return n>e&&(e=n),(t=t.earliestSuspendedTime)>e&&(e=t),e}function Jr(t,e){var n=e.earliestSuspendedTime,r=e.latestSuspendedTime,o=e.earliestPendingTime,i=e.latestPingedTime;0===(o=0!==o?o:i)&&(0===t||r<t)&&(o=r),0!==(t=o)&&n>t&&(t=n),e.nextExpirationTimeToWorkOn=o,e.expirationTime=t}var to=!1;function eo(t){return{baseState:t,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function no(t){return{baseState:t.baseState,firstUpdate:t.firstUpdate,lastUpdate:t.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function ro(t){return{expirationTime:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function oo(t,e){null===t.lastUpdate?t.firstUpdate=t.lastUpdate=e:(t.lastUpdate.next=e,t.lastUpdate=e)}function io(t,e){var n=t.alternate;if(null===n){var r=t.updateQueue,o=null;null===r&&(r=t.updateQueue=eo(t.memoizedState))}else r=t.updateQueue,o=n.updateQueue,null===r?null===o?(r=t.updateQueue=eo(t.memoizedState),o=n.updateQueue=eo(n.memoizedState)):r=t.updateQueue=no(o):null===o&&(o=n.updateQueue=no(r));null===o||r===o?oo(r,e):null===r.lastUpdate||null===o.lastUpdate?(oo(r,e),oo(o,e)):(oo(r,e),o.lastUpdate=e)}function ao(t,e){var n=t.updateQueue;null===(n=null===n?t.updateQueue=eo(t.memoizedState):lo(t,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=e:(n.lastCapturedUpdate.next=e,n.lastCapturedUpdate=e)}function lo(t,e){var n=t.alternate;return null!==n&&e===n.updateQueue&&(e=t.updateQueue=no(e)),e}function uo(t,e,n,r,i,a){switch(n.tag){case 1:return"function"==typeof(t=n.payload)?t.call(a,r,i):t;case 3:t.effectTag=-2049&t.effectTag|64;case 0:if(null==(i="function"==typeof(t=n.payload)?t.call(a,r,i):t))break;return o({},r,i);case 2:to=!0}return r}function so(t,e,n,r,o){to=!1;for(var i=(e=lo(t,e)).baseState,a=null,l=0,u=e.firstUpdate,s=i;null!==u;){var c=u.expirationTime;c<o?(null===a&&(a=u,i=s),l<c&&(l=c)):(s=uo(t,0,u,s,n,r),null!==u.callback&&(t.effectTag|=32,u.nextEffect=null,null===e.lastEffect?e.firstEffect=e.lastEffect=u:(e.lastEffect.nextEffect=u,e.lastEffect=u))),u=u.next}for(c=null,u=e.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f<o?(null===c&&(c=u,null===a&&(i=s)),l<f&&(l=f)):(s=uo(t,0,u,s,n,r),null!==u.callback&&(t.effectTag|=32,u.nextEffect=null,null===e.lastCapturedEffect?e.firstCapturedEffect=e.lastCapturedEffect=u:(e.lastCapturedEffect.nextEffect=u,e.lastCapturedEffect=u))),u=u.next}null===a&&(e.lastUpdate=null),null===c?e.lastCapturedUpdate=null:t.effectTag|=32,null===a&&null===c&&(i=s),e.baseState=i,e.firstUpdate=a,e.firstCapturedUpdate=c,t.expirationTime=l,t.memoizedState=s}function co(t,e,n){null!==e.firstCapturedUpdate&&(null!==e.lastUpdate&&(e.lastUpdate.next=e.firstCapturedUpdate,e.lastUpdate=e.lastCapturedUpdate),e.firstCapturedUpdate=e.lastCapturedUpdate=null),fo(e.firstEffect,n),e.firstEffect=e.lastEffect=null,fo(e.firstCapturedEffect,n),e.firstCapturedEffect=e.lastCapturedEffect=null}function fo(t,e){for(;null!==t;){var n=t.callback;if(null!==n){t.callback=null;var r=e;"function"!=typeof n&&a("191",n),n.call(r)}t=t.nextEffect}}function po(t,e){return{value:t,source:e,stack:ue(e)}}var ho={current:null},go=null,mo=null,vo=null;function yo(t,e){var n=t.type._context;Er(ho,n._currentValue),n._currentValue=e}function bo(t){var e=ho.current;Pr(ho),t.type._context._currentValue=e}function _o(t){go=t,vo=mo=null,t.firstContextDependency=null}function xo(t,e){return vo!==t&&!1!==e&&0!==e&&("number"==typeof e&&1073741823!==e||(vo=t,e=1073741823),e={context:t,observedBits:e,next:null},null===mo?(null===go&&a("293"),go.firstContextDependency=mo=e):mo=mo.next=e),t._currentValue}var wo={},ko={current:wo},Po={current:wo},Eo={current:wo};function Co(t){return t===wo&&a("174"),t}function Oo(t,e){Er(Eo,e),Er(Po,t),Er(ko,wo);var n=e.nodeType;switch(n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:tr(null,"");break;default:e=tr(e=(n=8===n?e.parentNode:e).namespaceURI||null,n=n.tagName)}Pr(ko),Er(ko,e)}function So(t){Pr(ko),Pr(Po),Pr(Eo)}function To(t){Co(Eo.current);var e=Co(ko.current),n=tr(e,t.type);e!==n&&(Er(Po,t),Er(ko,n))}function Mo(t){Po.current===t&&(Pr(ko),Pr(Po))}function No(t,e){if(t&&t.defaultProps)for(var n in e=o({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}var Ao=Yt.ReactCurrentOwner,Lo=(new r.Component).refs;function jo(t,e,n,r){n=null==(n=n(r,e=t.memoizedState))?e:o({},e,n),t.memoizedState=n,null!==(r=t.updateQueue)&&0===t.expirationTime&&(r.baseState=n)}var Io={isMounted:function(t){return!!(t=t._reactInternalFiber)&&2===en(t)},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=Pa(),o=ro(r=Ki(r,t));o.payload=e,null!=n&&(o.callback=n),Xi(),io(t,o),Ji(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=Pa(),o=ro(r=Ki(r,t));o.tag=1,o.payload=e,null!=n&&(o.callback=n),Xi(),io(t,o),Ji(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=Pa(),r=ro(n=Ki(n,t));r.tag=2,null!=e&&(r.callback=e),Xi(),io(t,r),Ji(t,n)}};function Ro(t,e,n,r,o,i,a){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,i,a):!e.prototype||!e.prototype.isPureReactComponent||(!tn(n,r)||!tn(o,i))}function Fo(t,e,n){var r=!1,o=Cr,i=e.contextType;return"object"==typeof i&&null!==i?i=Ao.currentDispatcher.readContext(i):(o=Nr(e)?Tr:Or.current,i=(r=null!=(r=e.contextTypes))?Mr(t,o):Cr),e=new e(n,i),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=Io,t.stateNode=e,e._reactInternalFiber=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=i),e}function Do(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&Io.enqueueReplaceState(e,e.state,null)}function zo(t,e,n,r){var o=t.stateNode;o.props=n,o.state=t.memoizedState,o.refs=Lo;var i=e.contextType;"object"==typeof i&&null!==i?o.context=Ao.currentDispatcher.readContext(i):(i=Nr(e)?Tr:Or.current,o.context=Mr(t,i)),null!==(i=t.updateQueue)&&(so(t,i,n,o,r),o.state=t.memoizedState),"function"==typeof(i=e.getDerivedStateFromProps)&&(jo(t,e,i,n),o.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(e=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),e!==o.state&&Io.enqueueReplaceState(o,o.state,null),null!==(i=t.updateQueue)&&(so(t,i,n,o,r),o.state=t.memoizedState)),"function"==typeof o.componentDidMount&&(t.effectTag|=4)}var Wo=Array.isArray;function Uo(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&a("289"),r=n.stateNode),r||a("147",t);var o=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===o?e.ref:((e=function(t){var e=r.refs;e===Lo&&(e=r.refs={}),null===t?delete e[o]:e[o]=t})._stringRef=o,e)}"string"!=typeof t&&a("284"),n._owner||a("290",t)}return t}function Bo(t,e){"textarea"!==t.type&&a("31","[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,"")}function Vo(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(t,e,n){return(t=Yr(t,e)).index=0,t.sibling=null,t}function i(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.effectTag=2,n):r:(e.effectTag=2,n):n}function l(e){return t&&null===e.alternate&&(e.effectTag=2),e}function u(t,e,n,r){return null===e||6!==e.tag?((e=$r(n,t.mode,r)).return=t,e):((e=o(e,n)).return=t,e)}function s(t,e,n,r){return null!==e&&e.elementType===n.type?((r=o(e,n.props)).ref=Uo(t,e,n),r.return=t,r):((r=Xr(n.type,n.key,n.props,null,t.mode,r)).ref=Uo(t,e,n),r.return=t,r)}function c(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=qr(n,t.mode,r)).return=t,e):((e=o(e,n.children||[])).return=t,e)}function f(t,e,n,r,i){return null===e||7!==e.tag?((e=Gr(n,t.mode,r,i)).return=t,e):((e=o(e,n)).return=t,e)}function p(t,e,n){if("string"==typeof e||"number"==typeof e)return(e=$r(""+e,t.mode,n)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case Ht:return(n=Xr(e.type,e.key,e.props,null,t.mode,n)).ref=Uo(t,null,e),n.return=t,n;case $t:return(e=qr(e,t.mode,n)).return=t,e}if(Wo(e)||ae(e))return(e=Gr(e,t.mode,n,null)).return=t,e;Bo(t,e)}return null}function d(t,e,n,r){var o=null!==e?e.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:u(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ht:return n.key===o?n.type===qt?f(t,e,n.props.children,r,o):s(t,e,n,r):null;case $t:return n.key===o?c(t,e,n,r):null}if(Wo(n)||ae(n))return null!==o?null:f(t,e,n,r,null);Bo(t,n)}return null}function h(t,e,n,r,o){if("string"==typeof r||"number"==typeof r)return u(e,t=t.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Ht:return t=t.get(null===r.key?n:r.key)||null,r.type===qt?f(e,t,r.props.children,o,r.key):s(e,t,r,o);case $t:return c(e,t=t.get(null===r.key?n:r.key)||null,r,o)}if(Wo(r)||ae(r))return f(e,t=t.get(n)||null,r,o,null);Bo(e,r)}return null}function g(o,a,l,u){for(var s=null,c=null,f=a,g=a=0,m=null;null!==f&&g<l.length;g++){f.index>g?(m=f,f=null):m=f.sibling;var v=d(o,f,l[g],u);if(null===v){null===f&&(f=m);break}t&&f&&null===v.alternate&&e(o,f),a=i(v,a,g),null===c?s=v:c.sibling=v,c=v,f=m}if(g===l.length)return n(o,f),s;if(null===f){for(;g<l.length;g++)(f=p(o,l[g],u))&&(a=i(f,a,g),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(o,f);g<l.length;g++)(m=h(f,o,g,l[g],u))&&(t&&null!==m.alternate&&f.delete(null===m.key?g:m.key),a=i(m,a,g),null===c?s=m:c.sibling=m,c=m);return t&&f.forEach(function(t){return e(o,t)}),s}function m(o,l,u,s){var c=ae(u);"function"!=typeof c&&a("150"),null==(u=c.call(u))&&a("151");for(var f=c=null,g=l,m=l=0,v=null,y=u.next();null!==g&&!y.done;m++,y=u.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=d(o,g,y.value,s);if(null===b){g||(g=v);break}t&&g&&null===b.alternate&&e(o,g),l=i(b,l,m),null===f?c=b:f.sibling=b,f=b,g=v}if(y.done)return n(o,g),c;if(null===g){for(;!y.done;m++,y=u.next())null!==(y=p(o,y.value,s))&&(l=i(y,l,m),null===f?c=y:f.sibling=y,f=y);return c}for(g=r(o,g);!y.done;m++,y=u.next())null!==(y=h(g,o,m,y.value,s))&&(t&&null!==y.alternate&&g.delete(null===y.key?m:y.key),l=i(y,l,m),null===f?c=y:f.sibling=y,f=y);return t&&g.forEach(function(t){return e(o,t)}),c}return function(t,r,i,u){var s="object"==typeof i&&null!==i&&i.type===qt&&null===i.key;s&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case Ht:t:{for(c=i.key,s=r;null!==s;){if(s.key===c){if(7===s.tag?i.type===qt:s.elementType===i.type){n(t,s.sibling),(r=o(s,i.type===qt?i.props.children:i.props)).ref=Uo(t,s,i),r.return=t,t=r;break t}n(t,s);break}e(t,s),s=s.sibling}i.type===qt?((r=Gr(i.props.children,t.mode,u,i.key)).return=t,t=r):((u=Xr(i.type,i.key,i.props,null,t.mode,u)).ref=Uo(t,r,i),u.return=t,t=u)}return l(t);case $t:t:{for(s=i.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(t,r.sibling),(r=o(r,i.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=qr(i,t.mode,u)).return=t,t=r}return l(t)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(t,r.sibling),(r=o(r,i)).return=t,t=r):(n(t,r),(r=$r(i,t.mode,u)).return=t,t=r),l(t);if(Wo(i))return g(t,r,i,u);if(ae(i))return m(t,r,i,u);if(c&&Bo(t,i),void 0===i&&!s)switch(t.tag){case 1:case 0:a("152",(u=t.type).displayName||u.name||"Component")}return n(t,r)}}var Yo=Vo(!0),Xo=Vo(!1),Go=null,Ho=null,$o=!1;function qo(t,e){var n=Br(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function Ko(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);default:return!1}}function Zo(t){if($o){var e=Ho;if(e){var n=e;if(!Ko(t,e)){if(!(e=_r(n))||!Ko(t,e))return t.effectTag|=2,$o=!1,void(Go=t);qo(Go,n)}Go=t,Ho=xr(e)}else t.effectTag|=2,$o=!1,Go=t}}function Qo(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag;)t=t.return;Go=t}function Jo(t){if(t!==Go)return!1;if(!$o)return Qo(t),$o=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!vr(e,t.memoizedProps))for(e=Ho;e;)qo(t,e),e=_r(e);return Qo(t),Ho=Go?_r(t.stateNode):null,!0}function ti(){Ho=Go=null,$o=!1}var ei=Yt.ReactCurrentOwner;function ni(t,e,n,r){e.child=null===t?Xo(e,null,n,r):Yo(e,t.child,n,r)}function ri(t,e,n,r,o){n=n.render;var i=e.ref;return _o(e),r=n(r,i),e.effectTag|=1,ni(t,e,r,o),e.child}function oi(t,e,n,r,o,i){if(null===t){var a=n.type;return"function"!=typeof a||Vr(a)||void 0!==a.defaultProps||null!==n.compare?((t=Xr(n.type,null,r,null,e.mode,i)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,ii(t,e,a,r,o,i))}return a=t.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:tn)(o,r)&&t.ref===e.ref)?pi(t,e,i):(e.effectTag|=1,(t=Yr(a,r)).ref=e.ref,t.return=e,e.child=t)}function ii(t,e,n,r,o,i){return null!==t&&o<i&&tn(t.memoizedProps,r)&&t.ref===e.ref?pi(t,e,i):li(t,e,n,r,i)}function ai(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function li(t,e,n,r,o){var i=Nr(n)?Tr:Or.current;return i=Mr(e,i),_o(e),n=n(r,i),e.effectTag|=1,ni(t,e,n,o),e.child}function ui(t,e,n,r,o){if(Nr(n)){var i=!0;Rr(e)}else i=!1;if(_o(e),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),Fo(e,n,r),zo(e,n,r,o),r=!0;else if(null===t){var a=e.stateNode,l=e.memoizedProps;a.props=l;var u=a.context,s=n.contextType;"object"==typeof s&&null!==s?s=Ao.currentDispatcher.readContext(s):s=Mr(e,s=Nr(n)?Tr:Or.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==s)&&Do(e,a,r,s),to=!1;var p=e.memoizedState;u=a.state=p;var d=e.updateQueue;null!==d&&(so(e,d,r,a,o),u=e.memoizedState),l!==r||p!==u||Sr.current||to?("function"==typeof c&&(jo(e,n,c,r),u=e.memoizedState),(l=to||Ro(e,n,l,r,p,u,s))?(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&&(e.effectTag|=4)):("function"==typeof a.componentDidMount&&(e.effectTag|=4),e.memoizedProps=r,e.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):("function"==typeof a.componentDidMount&&(e.effectTag|=4),r=!1)}else a=e.stateNode,l=e.memoizedProps,a.props=e.type===e.elementType?l:No(e.type,l),u=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Ao.currentDispatcher.readContext(s):s=Mr(e,s=Nr(n)?Tr:Or.current),(f="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==s)&&Do(e,a,r,s),to=!1,u=e.memoizedState,p=a.state=u,null!==(d=e.updateQueue)&&(so(e,d,r,a,o),p=e.memoizedState),l!==r||u!==p||Sr.current||to?("function"==typeof c&&(jo(e,n,c,r),p=e.memoizedState),(c=to||Ro(e,n,l,r,u,p,s))?(f||"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&&(e.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!=typeof a.componentDidUpdate||l===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=256),e.memoizedProps=r,e.memoizedState=p),a.props=r,a.state=p,a.context=s,r=c):("function"!=typeof a.componentDidUpdate||l===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=256),r=!1);return si(t,e,n,r,i,o)}function si(t,e,n,r,o,i){ai(t,e);var a=0!=(64&e.effectTag);if(!r&&!a)return o&&Fr(e,n,!1),pi(t,e,i);r=e.stateNode,ei.current=e;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return e.effectTag|=1,null!==t&&a?(e.child=Yo(e,t.child,null,i),e.child=Yo(e,null,l,i)):ni(t,e,l,i),e.memoizedState=r.state,o&&Fr(e,n,!0),e.child}function ci(t){var e=t.stateNode;e.pendingContext?jr(0,e.pendingContext,e.pendingContext!==e.context):e.context&&jr(0,e.context,!1),Oo(t,e.containerInfo)}function fi(t,e,n){var r=e.mode,o=e.pendingProps,i=e.memoizedState;if(0==(64&e.effectTag)){i=null;var a=!1}else i={timedOutAt:null!==i?i.timedOutAt:0},a=!0,e.effectTag&=-65;return null===t?a?(a=o.fallback,o=Gr(null,r,0,null),0==(1&e.mode)&&(o.child=null!==e.memoizedState?e.child.child:e.child),r=Gr(a,r,n,null),o.sibling=r,(n=o).return=r.return=e):n=r=Xo(e,null,o.children,n):null!==t.memoizedState?(t=(r=t.child).sibling,a?(n=o.fallback,o=Yr(r,r.pendingProps),0==(1&e.mode)&&((a=null!==e.memoizedState?e.child.child:e.child)!==r.child&&(o.child=a)),r=o.sibling=Yr(t,n,t.expirationTime),n=o,o.childExpirationTime=0,n.return=r.return=e):n=r=Yo(e,r.child,o.children,n)):(t=t.child,a?(a=o.fallback,(o=Gr(null,r,0,null)).child=t,0==(1&e.mode)&&(o.child=null!==e.memoizedState?e.child.child:e.child),(r=o.sibling=Gr(a,r,n,null)).effectTag|=2,n=o,o.childExpirationTime=0,n.return=r.return=e):r=n=Yo(e,t,o.children,n)),e.memoizedState=i,e.child=n,r}function pi(t,e,n){if(null!==t&&(e.firstContextDependency=t.firstContextDependency),e.childExpirationTime<n)return null;if(null!==t&&e.child!==t.child&&a("153"),null!==e.child){for(n=Yr(t=e.child,t.pendingProps,t.expirationTime),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Yr(t,t.pendingProps,t.expirationTime)).return=e;n.sibling=null}return e.child}function di(t,e,n){var r=e.expirationTime;if(null!==t&&t.memoizedProps===e.pendingProps&&!Sr.current&&r<n){switch(e.tag){case 3:ci(e),ti();break;case 5:To(e);break;case 1:Nr(e.type)&&Rr(e);break;case 4:Oo(e,e.stateNode.containerInfo);break;case 10:yo(e,e.memoizedProps.value);break;case 13:if(null!==e.memoizedState)return 0!==(r=e.child.childExpirationTime)&&r>=n?fi(t,e,n):null!==(e=pi(t,e,n))?e.sibling:null}return pi(t,e,n)}switch(e.expirationTime=0,e.tag){case 2:r=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps;var o=Mr(e,Or.current);if(_o(e),o=r(t,o),e.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(e.tag=1,Nr(r)){var i=!0;Rr(e)}else i=!1;e.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var l=r.getDerivedStateFromProps;"function"==typeof l&&jo(e,r,l,t),o.updater=Io,e.stateNode=o,o._reactInternalFiber=e,zo(e,r,t,n),e=si(null,e,r,!0,i,n)}else e.tag=0,ni(null,e,o,n),e=e.child;return e;case 16:switch(o=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),i=e.pendingProps,t=function(t){var e=t._result;switch(t._status){case 1:return e;case 2:case 0:throw e;default:throw t._status=0,(e=(e=t._ctor)()).then(function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)},function(e){0===t._status&&(t._status=2,t._result=e)}),t._result=e,e}}(o),e.type=t,o=e.tag=function(t){if("function"==typeof t)return Vr(t)?1:0;if(null!=t){if((t=t.$$typeof)===ee)return 11;if(t===re)return 14}return 2}(t),i=No(t,i),l=void 0,o){case 0:l=li(null,e,t,i,n);break;case 1:l=ui(null,e,t,i,n);break;case 11:l=ri(null,e,t,i,n);break;case 14:l=oi(null,e,t,No(t.type,i),r,n);break;default:a("283",t)}return l;case 0:return r=e.type,o=e.pendingProps,li(t,e,r,o=e.elementType===r?o:No(r,o),n);case 1:return r=e.type,o=e.pendingProps,ui(t,e,r,o=e.elementType===r?o:No(r,o),n);case 3:return ci(e),null===(r=e.updateQueue)&&a("282"),o=null!==(o=e.memoizedState)?o.element:null,so(e,r,e.pendingProps,null,n),(r=e.memoizedState.element)===o?(ti(),e=pi(t,e,n)):(o=e.stateNode,(o=(null===t||null===t.child)&&o.hydrate)&&(Ho=xr(e.stateNode.containerInfo),Go=e,o=$o=!0),o?(e.effectTag|=2,e.child=Xo(e,null,r,n)):(ni(t,e,r,n),ti()),e=e.child),e;case 5:return To(e),null===t&&Zo(e),r=e.type,o=e.pendingProps,i=null!==t?t.memoizedProps:null,l=o.children,vr(r,o)?l=null:null!==i&&vr(r,i)&&(e.effectTag|=16),ai(t,e),1!==n&&1&e.mode&&o.hidden?(e.expirationTime=1,e=null):(ni(t,e,l,n),e=e.child),e;case 6:return null===t&&Zo(e),null;case 13:return fi(t,e,n);case 4:return Oo(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=Yo(e,null,r,n):ni(t,e,r,n),e.child;case 11:return r=e.type,o=e.pendingProps,ri(t,e,r,o=e.elementType===r?o:No(r,o),n);case 7:return ni(t,e,e.pendingProps,n),e.child;case 8:case 12:return ni(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(r=e.type._context,o=e.pendingProps,l=e.memoizedProps,yo(e,i=o.value),null!==l){var u=l.value;if(0===(i=u===i&&(0!==u||1/u==1/i)||u!=u&&i!=i?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(l.children===o.children&&!Sr.current){e=pi(t,e,n);break t}}else for(null!==(l=e.child)&&(l.return=e);null!==l;){if(null!==(u=l.firstContextDependency))do{if(u.context===r&&0!=(u.observedBits&i)){if(1===l.tag){var s=ro(n);s.tag=2,io(l,s)}l.expirationTime<n&&(l.expirationTime=n),null!==(s=l.alternate)&&s.expirationTime<n&&(s.expirationTime=n);for(var c=l.return;null!==c;){if(s=c.alternate,c.childExpirationTime<n)c.childExpirationTime=n,null!==s&&s.childExpirationTime<n&&(s.childExpirationTime=n);else{if(!(null!==s&&s.childExpirationTime<n))break;s.childExpirationTime=n}c=c.return}}s=l.child,u=u.next}while(null!==u);else s=10===l.tag&&l.type===e.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===e){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}}ni(t,e,o.children,n),e=e.child}return e;case 9:return o=e.type,r=(i=e.pendingProps).children,_o(e),r=r(o=xo(o,i.unstable_observedBits)),e.effectTag|=1,ni(t,e,r,n),e.child;case 14:return oi(t,e,o=e.type,i=No(o.type,e.pendingProps),r,n);case 15:return ii(t,e,e.type,e.pendingProps,r,n);case 17:return r=e.type,o=e.pendingProps,o=e.elementType===r?o:No(r,o),null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,Nr(r)?(t=!0,Rr(e)):t=!1,_o(e),Fo(e,r,o),zo(e,r,o,n),si(null,e,r,!0,t,n);default:a("156")}}function hi(t){t.effectTag|=4}var gi=void 0,mi=void 0,vi=void 0,yi=void 0;function bi(t,e){var n=e.source,r=e.stack;null===r&&null!==n&&(r=ue(n)),null!==n&&le(n.type),e=e.value,null!==t&&1===t.tag&&le(t.type);try{console.error(e)}catch(t){setTimeout(function(){throw t})}}function _i(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){qi(t,e)}else e.current=null}function xi(t){switch("function"==typeof zr&&zr(t),t.tag){case 0:case 11:case 14:case 15:var e=t.updateQueue;if(null!==e&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n.destroy;if(null!==r){var o=t;try{r()}catch(t){qi(o,t)}}n=n.next}while(n!==e)}break;case 1:if(_i(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){qi(t,e)}break;case 5:_i(t);break;case 4:Pi(t)}}function wi(t){return 5===t.tag||3===t.tag||4===t.tag}function ki(t){t:{for(var e=t.return;null!==e;){if(wi(e)){var n=e;break t}e=e.return}a("160"),n=void 0}var r=e=void 0;switch(n.tag){case 5:e=n.stateNode,r=!1;break;case 3:case 4:e=n.stateNode.containerInfo,r=!0;break;default:a("161")}16&n.effectTag&&(or(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||wi(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}for(var o=t;;){if(5===o.tag||6===o.tag)if(n)if(r){var i=e,l=o.stateNode,u=n;8===i.nodeType?i.parentNode.insertBefore(l,u):i.insertBefore(l,u)}else e.insertBefore(o.stateNode,n);else r?(l=e,u=o.stateNode,8===l.nodeType?(i=l.parentNode).insertBefore(u,l):(i=l).appendChild(u),null!=(l=l._reactRootContainer)||null!==i.onclick||(i.onclick=dr)):e.appendChild(o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function Pi(t){for(var e=t,n=!1,r=void 0,o=void 0;;){if(!n){n=e.return;t:for(;;){switch(null===n&&a("160"),n.tag){case 5:r=n.stateNode,o=!1;break t;case 3:case 4:r=n.stateNode.containerInfo,o=!0;break t}n=n.return}n=!0}if(5===e.tag||6===e.tag){t:for(var i=e,l=i;;)if(xi(l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===i)break;for(;null===l.sibling;){if(null===l.return||l.return===i)break t;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(i=r,l=e.stateNode,8===i.nodeType?i.parentNode.removeChild(l):i.removeChild(l)):r.removeChild(e.stateNode)}else if(4===e.tag?(r=e.stateNode.containerInfo,o=!0):xi(e),null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;4===(e=e.return).tag&&(n=!1)}e.sibling.return=e.return,e=e.sibling}}function Ei(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 1:break;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps,o=null!==t?t.memoizedProps:r;t=e.type;var i=e.updateQueue;if(e.updateQueue=null,null!==i){for(n[j]=r,"input"===t&&"radio"===r.type&&null!=r.name&&xe(n,r),fr(t,o),e=fr(t,r),o=0;o<i.length;o+=2){var l=i[o],u=i[o+1];"style"===l?ur(n,u):"dangerouslySetInnerHTML"===l?rr(n,u):"children"===l?or(n,u):ve(n,l,u,e)}switch(t){case"input":we(n,r);break;case"textarea":Kn(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(t=r.value)?Hn(n,!!r.multiple,t,!1):e!==!!r.multiple&&(null!=r.defaultValue?Hn(n,!!r.multiple,r.defaultValue,!0):Hn(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 6:null===e.stateNode&&a("162"),e.stateNode.nodeValue=e.memoizedProps;break;case 3:case 12:break;case 13:if(t=e,null===(n=e.memoizedState)?r=!1:(r=!0,t=e.child,0===n.timedOutAt&&(n.timedOutAt=Pa())),null!==t)t:for(e=n=t;;){if(5===e.tag)t=e.stateNode,r?t.style.display="none":(t=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,t.style.display=lr("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState){(t=e.child.sibling).return=e,e=t;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break t;for(;null===e.sibling;){if(null===e.return||e.return===n)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}break;case 17:break;default:a("163")}}function Ci(t,e,n){(n=ro(n)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){ja(r),bi(t,e)},n}function Oi(t,e,n){(n=ro(n)).tag=3;var r=t.type.getDerivedStateFromError;if("function"==typeof r){var o=e.value;n.payload=function(){return r(o)}}var i=t.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Vi?Vi=new Set([this]):Vi.add(this));var n=e.value,o=e.stack;bi(t,e),this.componentDidCatch(n,{componentStack:null!==o?o:""})}),n}function Si(t){switch(t.tag){case 1:Nr(t.type)&&Ar();var e=t.effectTag;return 2048&e?(t.effectTag=-2049&e|64,t):null;case 3:return So(),Lr(),0!=(64&(e=t.effectTag))&&a("285"),t.effectTag=-2049&e|64,t;case 5:return Mo(t),null;case 13:return 2048&(e=t.effectTag)?(t.effectTag=-2049&e|64,t):null;case 4:return So(),null;case 10:return bo(t),null;default:return null}}gi=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&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}},mi=function(){},vi=function(t,e,n,r,i){var a=t.memoizedProps;if(a!==r){var l=e.stateNode;switch(Co(ko.current),t=null,n){case"input":a=be(l,a),r=be(l,r),t=[];break;case"option":a=Gn(l,a),r=Gn(l,r),t=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),t=[];break;case"textarea":a=$n(l,a),r=$n(l,r),t=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(l.onclick=dr)}cr(n,r),l=n=void 0;var u=null;for(n in a)if(!r.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var s=a[n];for(l in s)s.hasOwnProperty(l)&&(u||(u={}),u[l]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(b.hasOwnProperty(n)?t||(t=[]):(t=t||[]).push(n,null));for(n in r){var c=r[n];if(s=null!=a?a[n]:void 0,r.hasOwnProperty(n)&&c!==s&&(null!=c||null!=s))if("style"===n)if(s){for(l in s)!s.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(u||(u={}),u[l]="");for(l in c)c.hasOwnProperty(l)&&s[l]!==c[l]&&(u||(u={}),u[l]=c[l])}else u||(t||(t=[]),t.push(n,u)),u=c;else"dangerouslySetInnerHTML"===n?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(t=t||[]).push(n,""+c)):"children"===n?s===c||"string"!=typeof c&&"number"!=typeof c||(t=t||[]).push(n,""+c):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(b.hasOwnProperty(n)?(null!=c&&pr(i,n),t||s===c||(t=[])):(t=t||[]).push(n,c))}u&&(t=t||[]).push("style",u),i=t,(e.updateQueue=i)&&hi(e)}},yi=function(t,e,n,r){n!==r&&hi(e)};var Ti={readContext:xo},Mi=Yt.ReactCurrentOwner,Ni=1073741822,Ai=0,Li=!1,ji=null,Ii=null,Ri=0,Fi=-1,Di=!1,zi=null,Wi=!1,Ui=null,Bi=null,Vi=null;function Yi(){if(null!==ji)for(var t=ji.return;null!==t;){var e=t;switch(e.tag){case 1:var n=e.type.childContextTypes;null!=n&&Ar();break;case 3:So(),Lr();break;case 5:Mo(e);break;case 4:So();break;case 10:bo(e)}t=t.return}Ii=null,Ri=0,Fi=-1,Di=!1,ji=null}function Xi(){null!==Bi&&(i.unstable_cancelCallback(Ui),Bi())}function Gi(t){for(;;){var e=t.alternate,n=t.return,r=t.sibling;if(0==(1024&t.effectTag)){ji=t;t:{var i=e,l=Ri,u=(e=t).pendingProps;switch(e.tag){case 2:case 16:break;case 15:case 0:break;case 1:Nr(e.type)&&Ar();break;case 3:So(),Lr(),(u=e.stateNode).pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),null!==i&&null!==i.child||(Jo(e),e.effectTag&=-3),mi(e);break;case 5:Mo(e);var s=Co(Eo.current);if(l=e.type,null!==i&&null!=e.stateNode)vi(i,e,l,u,s),i.ref!==e.ref&&(e.effectTag|=128);else if(u){var c=Co(ko.current);if(Jo(e)){i=(u=e).stateNode;var f=u.type,p=u.memoizedProps,d=s;switch(i[L]=u,i[j]=p,l=void 0,s=f){case"iframe":case"object":En("load",i);break;case"video":case"audio":for(f=0;f<et.length;f++)En(et[f],i);break;case"source":En("error",i);break;case"img":case"image":case"link":En("error",i),En("load",i);break;case"form":En("reset",i),En("submit",i);break;case"details":En("toggle",i);break;case"input":_e(i,p),En("invalid",i),pr(d,"onChange");break;case"select":i._wrapperState={wasMultiple:!!p.multiple},En("invalid",i),pr(d,"onChange");break;case"textarea":qn(i,p),En("invalid",i),pr(d,"onChange")}for(l in cr(s,p),f=null,p)p.hasOwnProperty(l)&&(c=p[l],"children"===l?"string"==typeof c?i.textContent!==c&&(f=["children",c]):"number"==typeof c&&i.textContent!==""+c&&(f=["children",""+c]):b.hasOwnProperty(l)&&null!=c&&pr(d,l));switch(s){case"input":Bt(i),ke(i,p,!0);break;case"textarea":Bt(i),Zn(i);break;case"select":case"option":break;default:"function"==typeof p.onClick&&(i.onclick=dr)}l=f,u.updateQueue=l,(u=null!==l)&&hi(e)}else{p=e,i=l,d=u,f=9===s.nodeType?s:s.ownerDocument,c===Qn.html&&(c=Jn(i)),c===Qn.html?"script"===i?((i=f.createElement("div")).innerHTML="<script><\/script>",f=i.removeChild(i.firstChild)):"string"==typeof d.is?f=f.createElement(i,{is:d.is}):(f=f.createElement(i),"select"===i&&d.multiple&&(f.multiple=!0)):f=f.createElementNS(c,i),(i=f)[L]=p,i[j]=u,gi(i,e,!1,!1),d=i;var h=s,g=fr(f=l,p=u);switch(f){case"iframe":case"object":En("load",d),s=p;break;case"video":case"audio":for(s=0;s<et.length;s++)En(et[s],d);s=p;break;case"source":En("error",d),s=p;break;case"img":case"image":case"link":En("error",d),En("load",d),s=p;break;case"form":En("reset",d),En("submit",d),s=p;break;case"details":En("toggle",d),s=p;break;case"input":_e(d,p),s=be(d,p),En("invalid",d),pr(h,"onChange");break;case"option":s=Gn(d,p);break;case"select":d._wrapperState={wasMultiple:!!p.multiple},s=o({},p,{value:void 0}),En("invalid",d),pr(h,"onChange");break;case"textarea":qn(d,p),s=$n(d,p),En("invalid",d),pr(h,"onChange");break;default:s=p}cr(f,s),c=void 0;var m=f,v=d,y=s;for(c in y)if(y.hasOwnProperty(c)){var _=y[c];"style"===c?ur(v,_):"dangerouslySetInnerHTML"===c?null!=(_=_?_.__html:void 0)&&rr(v,_):"children"===c?"string"==typeof _?("textarea"!==m||""!==_)&&or(v,_):"number"==typeof _&&or(v,""+_):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(b.hasOwnProperty(c)?null!=_&&pr(h,c):null!=_&&ve(v,c,_,g))}switch(f){case"input":Bt(d),ke(d,p,!1);break;case"textarea":Bt(d),Zn(d);break;case"option":null!=p.value&&d.setAttribute("value",""+ye(p.value));break;case"select":(s=d).multiple=!!p.multiple,null!=(d=p.value)?Hn(s,!!p.multiple,d,!1):null!=p.defaultValue&&Hn(s,!!p.multiple,p.defaultValue,!0);break;default:"function"==typeof s.onClick&&(d.onclick=dr)}(u=mr(l,u))&&hi(e),e.stateNode=i}null!==e.ref&&(e.effectTag|=128)}else null===e.stateNode&&a("166");break;case 6:i&&null!=e.stateNode?yi(i,e,i.memoizedProps,u):("string"!=typeof u&&(null===e.stateNode&&a("166")),i=Co(Eo.current),Co(ko.current),Jo(e)?(l=(u=e).stateNode,i=u.memoizedProps,l[L]=u,(u=l.nodeValue!==i)&&hi(e)):(l=e,(u=(9===i.nodeType?i:i.ownerDocument).createTextNode(u))[L]=e,l.stateNode=u));break;case 11:break;case 13:if(u=e.memoizedState,0!=(64&e.effectTag)){e.expirationTime=l,ji=e;break t}u=null!==u,l=null!==i&&null!==i.memoizedState,null!==i&&!u&&l&&(null!==(i=i.child.sibling)&&(null!==(s=e.firstEffect)?(e.firstEffect=i,i.nextEffect=s):(e.firstEffect=e.lastEffect=i,i.nextEffect=null),i.effectTag=8)),(u!==l||0==(1&e.effectTag)&&u)&&(e.effectTag|=4);break;case 7:case 8:case 12:break;case 4:So(),mi(e);break;case 10:bo(e);break;case 9:case 14:break;case 17:Nr(e.type)&&Ar();break;default:a("156")}ji=null}if(e=t,1===Ri||1!==e.childExpirationTime){for(u=0,l=e.child;null!==l;)(i=l.expirationTime)>u&&(u=i),(s=l.childExpirationTime)>u&&(u=s),l=l.sibling;e.childExpirationTime=u}if(null!==ji)return ji;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=t.firstEffect),n.lastEffect=t.lastEffect),1<t.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=t:n.firstEffect=t,n.lastEffect=t))}else{if(null!==(t=Si(t)))return t.effectTag&=1023,t;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;t=n}return null}function Hi(t){var e=di(t.alternate,t,Ri);return t.memoizedProps=t.pendingProps,null===e&&(e=Gi(t)),Mi.current=null,e}function $i(t,e){Li&&a("243"),Xi(),Li=!0,Mi.currentDispatcher=Ti;var n=t.nextExpirationTimeToWorkOn;n===Ri&&t===Ii&&null!==ji||(Yi(),Ri=n,ji=Yr((Ii=t).current,null),t.pendingCommitExpirationTime=0);for(var r=!1;;){try{if(e)for(;null!==ji&&!Sa();)ji=Hi(ji);else for(;null!==ji;)ji=Hi(ji)}catch(e){if(vo=mo=go=null,null===ji)r=!0,ja(e);else{null===ji&&a("271");var o=ji,i=o.return;if(null!==i){t:{var l=t,u=i,s=o,c=e;if(i=Ri,s.effectTag|=1024,s.firstEffect=s.lastEffect=null,null!==c&&"object"==typeof c&&"function"==typeof c.then){var f=c;c=u;var p=-1,d=-1;do{if(13===c.tag){var h=c.alternate;if(null!==h&&null!==(h=h.memoizedState)){d=10*(1073741822-h.timedOutAt);break}"number"==typeof(h=c.pendingProps.maxDuration)&&(0>=h?p=0:(-1===p||h<p)&&(p=h))}c=c.return}while(null!==c);c=u;do{if((h=13===c.tag)&&(h=void 0!==c.memoizedProps.fallback&&null===c.memoizedState),h){if(u=Zi.bind(null,l,c,s,0==(1&c.mode)?1073741823:i),f.then(u,u),0==(1&c.mode)){c.effectTag|=64,s.effectTag&=-1957,1===s.tag&&null===s.alternate&&(s.tag=17),s.expirationTime=i;break t}-1===p?l=1073741823:(-1===d&&(d=10*(1073741822-Qr(l,i))-5e3),l=d+p),0<=l&&Fi<l&&(Fi=l),c.effectTag|=2048,c.expirationTime=i;break t}c=c.return}while(null!==c);c=Error((le(s.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."+ue(s))}Di=!0,c=po(c,s),l=u;do{switch(l.tag){case 3:s=c,l.effectTag|=2048,l.expirationTime=i,ao(l,i=Ci(l,s,i));break t;case 1:if(s=c,u=l.type,f=l.stateNode,0==(64&l.effectTag)&&("function"==typeof u.getDerivedStateFromError||null!==f&&"function"==typeof f.componentDidCatch&&(null===Vi||!Vi.has(f)))){l.effectTag|=2048,l.expirationTime=i,ao(l,i=Oi(l,s,i));break t}}l=l.return}while(null!==l)}ji=Gi(o);continue}r=!0,ja(e)}}break}if(Li=!1,vo=mo=go=Mi.currentDispatcher=null,r)Ii=null,t.finishedWork=null;else if(null!==ji)t.finishedWork=null;else{if(null===(r=t.current.alternate)&&a("281"),Ii=null,Di){if(o=t.latestPendingTime,i=t.latestSuspendedTime,l=t.latestPingedTime,0!==o&&o<n||0!==i&&i<n||0!==l&&l<n)return Zr(t,n),void ka(t,r,n,t.expirationTime,-1);if(!t.didError&&e)return t.didError=!0,n=t.nextExpirationTimeToWorkOn=n,e=t.expirationTime=1073741823,void ka(t,r,n,e,-1)}e&&-1!==Fi?(Zr(t,n),(e=10*(1073741822-Qr(t,n)))<Fi&&(Fi=e),e=10*(1073741822-Pa()),e=Fi-e,ka(t,r,n,t.expirationTime,0>e?0:e)):(t.pendingCommitExpirationTime=n,t.finishedWork=r)}}function qi(t,e){for(var n=t.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vi||!Vi.has(r)))return io(n,t=Oi(n,t=po(e,t),1073741823)),void Ji(n,1073741823);break;case 3:return io(n,t=Ci(n,t=po(e,t),1073741823)),void Ji(n,1073741823)}n=n.return}3===t.tag&&(io(t,n=Ci(t,n=po(e,t),1073741823)),Ji(t,1073741823))}function Ki(t,e){return 0!==Ai?t=Ai:Li?t=Wi?1073741823:Ri:1&e.mode?(t=da?1073741822-10*(1+((1073741822-t+15)/10|0)):1073741822-25*(1+((1073741822-t+500)/25|0)),null!==Ii&&t===Ri&&--t):t=1073741823,da&&(0===ua||t<ua)&&(ua=t),t}function Zi(t,e,n,r){var o=t.earliestSuspendedTime,i=t.latestSuspendedTime;if(0!==o&&r<=o&&r>=i){i=o=r,t.didError=!1;var a=t.latestPingedTime;(0===a||a>i)&&(t.latestPingedTime=i),Jr(i,t)}else Kr(t,o=Ki(o=Pa(),e));0!=(1&e.mode)&&t===Ii&&Ri===r&&(Ii=null),Qi(e,o),0==(1&e.mode)&&(Qi(n,o),1===n.tag&&null!==n.stateNode&&((e=ro(o)).tag=2,io(n,e))),0!==(n=t.expirationTime)&&Ea(t,n)}function Qi(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e);var r=t.return,o=null;if(null===r&&3===t.tag)o=t.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<e&&(r.childExpirationTime=e),null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return o}function Ji(t,e){null!==(t=Qi(t,e))&&(!Li&&0!==Ri&&e>Ri&&Yi(),Kr(t,e),Li&&!Wi&&Ii===t||Ea(t,t.expirationTime),ba>ya&&(ba=0,a("185")))}function ta(t,e,n,r,o){var i=Ai;Ai=1073741823;try{return t(e,n,r,o)}finally{Ai=i}}var ea=null,na=null,ra=0,oa=void 0,ia=!1,aa=null,la=0,ua=0,sa=!1,ca=null,fa=!1,pa=!1,da=!1,ha=null,ga=i.unstable_now(),ma=1073741822-(ga/10|0),va=ma,ya=50,ba=0,_a=null;function xa(){ma=1073741822-((i.unstable_now()-ga)/10|0)}function wa(t,e){if(0!==ra){if(e<ra)return;null!==oa&&i.unstable_cancelCallback(oa)}ra=e,t=i.unstable_now()-ga,oa=i.unstable_scheduleCallback(Ta,{timeout:10*(1073741822-e)-t})}function ka(t,e,n,r,o){t.expirationTime=r,0!==o||Sa()?0<o&&(t.timeoutHandle=yr(function(t,e,n){t.pendingCommitExpirationTime=n,t.finishedWork=e,xa(),va=ma,Na(t,n)}.bind(null,t,e,n),o)):(t.pendingCommitExpirationTime=n,t.finishedWork=e)}function Pa(){return ia?va:(Ca(),0!==la&&1!==la||(xa(),va=ma),va)}function Ea(t,e){null===t.nextScheduledRoot?(t.expirationTime=e,null===na?(ea=na=t,t.nextScheduledRoot=t):(na=na.nextScheduledRoot=t).nextScheduledRoot=ea):e>t.expirationTime&&(t.expirationTime=e),ia||(fa?pa&&(aa=t,la=1073741823,Aa(t,1073741823,!1)):1073741823===e?Ma(1073741823,!1):wa(t,e))}function Ca(){var t=0,e=null;if(null!==na)for(var n=na,r=ea;null!==r;){var o=r.expirationTime;if(0===o){if((null===n||null===na)&&a("244"),r===r.nextScheduledRoot){ea=na=r.nextScheduledRoot=null;break}if(r===ea)ea=o=r.nextScheduledRoot,na.nextScheduledRoot=o,r.nextScheduledRoot=null;else{if(r===na){(na=n).nextScheduledRoot=ea,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(o>t&&(t=o,e=r),r===na)break;if(1073741823===t)break;n=r,r=r.nextScheduledRoot}}aa=e,la=t}var Oa=!1;function Sa(){return!!Oa||!!i.unstable_shouldYield()&&(Oa=!0)}function Ta(){try{if(!Sa()&&null!==ea){xa();var t=ea;do{var e=t.expirationTime;0!==e&&ma<=e&&(t.nextExpirationTimeToWorkOn=ma),t=t.nextScheduledRoot}while(t!==ea)}Ma(0,!0)}finally{Oa=!1}}function Ma(t,e){if(Ca(),e)for(xa(),va=ma;null!==aa&&0!==la&&t<=la&&!(Oa&&ma>la);)Aa(aa,la,ma>la),Ca(),xa(),va=ma;else for(;null!==aa&&0!==la&&t<=la;)Aa(aa,la,!1),Ca();if(e&&(ra=0,oa=null),0!==la&&wa(aa,la),ba=0,_a=null,null!==ha)for(t=ha,ha=null,e=0;e<t.length;e++){var n=t[e];try{n._onComplete()}catch(t){sa||(sa=!0,ca=t)}}if(sa)throw t=ca,ca=null,sa=!1,t}function Na(t,e){ia&&a("253"),aa=t,la=e,Aa(t,e,!1),Ma(1073741823,!1)}function Aa(t,e,n){if(ia&&a("245"),ia=!0,n){var r=t.finishedWork;null!==r?La(t,r,e):(t.finishedWork=null,-1!==(r=t.timeoutHandle)&&(t.timeoutHandle=-1,br(r)),$i(t,n),null!==(r=t.finishedWork)&&(Sa()?t.finishedWork=r:La(t,r,e)))}else null!==(r=t.finishedWork)?La(t,r,e):(t.finishedWork=null,-1!==(r=t.timeoutHandle)&&(t.timeoutHandle=-1,br(r)),$i(t,n),null!==(r=t.finishedWork)&&La(t,r,e));ia=!1}function La(t,e,n){var r=t.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===ha?ha=[r]:ha.push(r),r._defer))return t.finishedWork=e,void(t.expirationTime=0);t.finishedWork=null,t===_a?ba++:(_a=t,ba=0),Wi=Li=!0,t.current===e&&a("177"),0===(n=t.pendingCommitExpirationTime)&&a("261"),t.pendingCommitExpirationTime=0,r=e.expirationTime;var o=e.childExpirationTime;if(r=o>r?o:r,t.didError=!1,0===r?(t.earliestPendingTime=0,t.latestPendingTime=0,t.earliestSuspendedTime=0,t.latestSuspendedTime=0,t.latestPingedTime=0):(0!==(o=t.latestPendingTime)&&(o>r?t.earliestPendingTime=t.latestPendingTime=0:t.earliestPendingTime>r&&(t.earliestPendingTime=t.latestPendingTime)),0===(o=t.earliestSuspendedTime)?Kr(t,r):r<t.latestSuspendedTime?(t.earliestSuspendedTime=0,t.latestSuspendedTime=0,t.latestPingedTime=0,Kr(t,r)):r>o&&Kr(t,r)),Jr(0,t),Mi.current=null,1<e.effectTag?null!==e.lastEffect?(e.lastEffect.nextEffect=e,r=e.firstEffect):r=e:r=e.firstEffect,hr=Pn,Fn(o=Rn())){if("selectionStart"in o)var i={start:o.selectionStart,end:o.selectionEnd};else t:{var l=(i=(i=o.ownerDocument)&&i.defaultView||window).getSelection&&i.getSelection();if(l&&0!==l.rangeCount){i=l.anchorNode;var u=l.anchorOffset,s=l.focusNode;l=l.focusOffset;try{i.nodeType,s.nodeType}catch(t){i=null;break t}var c=0,f=-1,p=-1,d=0,h=0,g=o,m=null;e:for(;;){for(var v;g!==i||0!==u&&3!==g.nodeType||(f=c+u),g!==s||0!==l&&3!==g.nodeType||(p=c+l),3===g.nodeType&&(c+=g.nodeValue.length),null!==(v=g.firstChild);)m=g,g=v;for(;;){if(g===o)break e;if(m===i&&++d===u&&(f=c),m===s&&++h===l&&(p=c),null!==(v=g.nextSibling))break;m=(g=m).parentNode}g=v}i=-1===f||-1===p?null:{start:f,end:p}}else i=null}i=i||{start:0,end:0}}else i=null;for(gr={focusedElem:o,selectionRange:i},Pn=!1,zi=r;null!==zi;){o=!1,i=void 0;try{for(;null!==zi;){if(256&zi.effectTag)t:{var y=zi.alternate;switch((u=zi).tag){case 0:case 11:case 15:break t;case 1:if(256&u.effectTag&&null!==y){var b=y.memoizedProps,_=y.memoizedState,x=u.stateNode,w=x.getSnapshotBeforeUpdate(u.elementType===u.type?b:No(u.type,b),_);x.__reactInternalSnapshotBeforeUpdate=w}break t;case 3:case 5:case 6:case 4:case 17:break t;default:a("163")}}zi=zi.nextEffect}}catch(t){o=!0,i=t}o&&(null===zi&&a("178"),qi(zi,i),null!==zi&&(zi=zi.nextEffect))}for(zi=r;null!==zi;){y=!1,b=void 0;try{for(;null!==zi;){var k=zi.effectTag;if(16&k&&or(zi.stateNode,""),128&k){var P=zi.alternate;if(null!==P){var E=P.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(14&k){case 2:ki(zi),zi.effectTag&=-3;break;case 6:ki(zi),zi.effectTag&=-3,Ei(zi.alternate,zi);break;case 4:Ei(zi.alternate,zi);break;case 8:Pi(_=zi),_.return=null,_.child=null,_.alternate&&(_.alternate.child=null,_.alternate.return=null)}zi=zi.nextEffect}}catch(t){y=!0,b=t}y&&(null===zi&&a("178"),qi(zi,b),null!==zi&&(zi=zi.nextEffect))}if(E=gr,P=Rn(),k=E.focusedElem,b=E.selectionRange,P!==k&&k&&k.ownerDocument&&function t(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}(k.ownerDocument.documentElement,k)){null!==b&&Fn(k)&&(P=b.start,void 0===(E=b.end)&&(E=P),"selectionStart"in k?(k.selectionStart=P,k.selectionEnd=Math.min(E,k.value.length)):(E=(P=k.ownerDocument||document)&&P.defaultView||window).getSelection&&(E=E.getSelection(),_=k.textContent.length,y=Math.min(b.start,_),b=void 0===b.end?y:Math.min(b.end,_),!E.extend&&y>b&&(_=b,b=y,y=_),_=In(k,y),x=In(k,b),_&&x&&(1!==E.rangeCount||E.anchorNode!==_.node||E.anchorOffset!==_.offset||E.focusNode!==x.node||E.focusOffset!==x.offset)&&((P=P.createRange()).setStart(_.node,_.offset),E.removeAllRanges(),y>b?(E.addRange(P),E.extend(x.node,x.offset)):(P.setEnd(x.node,x.offset),E.addRange(P))))),P=[];for(E=k;E=E.parentNode;)1===E.nodeType&&P.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof k.focus&&k.focus(),k=0;k<P.length;k++)(E=P[k]).element.scrollLeft=E.left,E.element.scrollTop=E.top}for(gr=null,Pn=!!hr,hr=null,t.current=e,zi=r;null!==zi;){r=!1,k=void 0;try{for(P=n;null!==zi;){var C=zi.effectTag;if(36&C){var O=zi.alternate;switch(y=P,(E=zi).tag){case 0:case 11:case 15:break;case 1:var S=E.stateNode;if(4&E.effectTag)if(null===O)S.componentDidMount();else{var T=E.elementType===E.type?O.memoizedProps:No(E.type,O.memoizedProps);S.componentDidUpdate(T,O.memoizedState,S.__reactInternalSnapshotBeforeUpdate)}var M=E.updateQueue;null!==M&&co(0,M,S);break;case 3:var N=E.updateQueue;if(null!==N){if(b=null,null!==E.child)switch(E.child.tag){case 5:b=E.child.stateNode;break;case 1:b=E.child.stateNode}co(0,N,b)}break;case 5:var A=E.stateNode;null===O&&4&E.effectTag&&mr(E.type,E.memoizedProps)&&A.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:a("163")}}if(128&C){var L=zi.ref;if(null!==L){var j=zi.stateNode;switch(zi.tag){case 5:var I=j;break;default:I=j}"function"==typeof L?L(I):L.current=I}}zi=zi.nextEffect}}catch(t){r=!0,k=t}r&&(null===zi&&a("178"),qi(zi,k),null!==zi&&(zi=zi.nextEffect))}Li=Wi=!1,"function"==typeof Dr&&Dr(e.stateNode),C=e.expirationTime,0===(e=(e=e.childExpirationTime)>C?e:C)&&(Vi=null),t.expirationTime=e,t.finishedWork=null}function ja(t){null===aa&&a("246"),aa.expirationTime=0,sa||(sa=!0,ca=t)}function Ia(t,e){var n=fa;fa=!0;try{return t(e)}finally{(fa=n)||ia||Ma(1073741823,!1)}}function Ra(t,e){if(fa&&!pa){pa=!0;try{return t(e)}finally{pa=!1}}return t(e)}function Fa(t,e,n){if(da)return t(e,n);fa||ia||0===ua||(Ma(ua,!1),ua=0);var r=da,o=fa;fa=da=!0;try{return t(e,n)}finally{da=r,(fa=o)||ia||Ma(1073741823,!1)}}function Da(t,e,n,r,o){var i=e.current;t:if(n){e:{2===en(n=n._reactInternalFiber)&&1===n.tag||a("170");var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(Nr(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(null!==l);a("171"),l=void 0}if(1===n.tag){var u=n.type;if(Nr(u)){n=Ir(n,u,l);break t}}n=l}else n=Cr;return null===e.context?e.context=n:e.pendingContext=n,e=o,(o=ro(r)).payload={element:t},null!==(e=void 0===e?null:e)&&(o.callback=e),Xi(),io(i,o),Ji(i,r),r}function za(t,e,n,r){var o=e.current;return Da(t,e,n,o=Ki(Pa(),o),r)}function Wa(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function Ua(t){var e=1073741822-25*(1+((1073741822-Pa()+500)/25|0));e>=Ni&&(e=Ni-1),this._expirationTime=Ni=e,this._root=t,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Ba(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Va(t,e,n){t={current:e=Br(3,null,null,e?3:0),containerInfo:t,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=e.stateNode=t}function Ya(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Xa(t,e,n,r,o){Ya(n)||a("200");var i=n._reactRootContainer;if(i){if("function"==typeof o){var l=o;o=function(){var t=Wa(i._internalRoot);l.call(t)}}null!=t?i.legacy_renderSubtreeIntoContainer(t,e,o):i.render(e,o)}else{if(i=n._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new Va(t,!1,e)}(n,r),"function"==typeof o){var u=o;o=function(){var t=Wa(i._internalRoot);u.call(t)}}Ra(function(){null!=t?i.legacy_renderSubtreeIntoContainer(t,e,o):i.render(e,o)})}return Wa(i._internalRoot)}function Ga(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Ya(e)||a("200"),function(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:$t,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}(t,e,null,n)}Ct=function(t,e,n){switch(e){case"input":if(we(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var o=D(r);o||a("90"),Vt(r),we(r,o)}}}break;case"textarea":Kn(t,n);break;case"select":null!=(e=n.value)&&Hn(t,!!n.multiple,e,!1)}},Ua.prototype.render=function(t){this._defer||a("250"),this._hasChildren=!0,this._children=t;var e=this._root._internalRoot,n=this._expirationTime,r=new Ba;return Da(t,e,null,n,r._onCommit),r},Ua.prototype.then=function(t){if(this._didComplete)t();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(t)}},Ua.prototype.commit=function(){var t=this._root._internalRoot,e=t.firstBatch;if(this._defer&&null!==e||a("251"),this._hasChildren){var n=this._expirationTime;if(e!==this){this._hasChildren&&(n=this._expirationTime=e._expirationTime,this.render(this._children));for(var r=null,o=e;o!==this;)r=o,o=o._next;null===r&&a("251"),r._next=o._next,this._next=e,t.firstBatch=this}this._defer=!1,Na(t,n),e=this._next,this._next=null,null!==(e=t.firstBatch=e)&&e._hasChildren&&e.render(e._children)}else this._next=null,this._defer=!1},Ua.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var t=this._callbacks;if(null!==t)for(var e=0;e<t.length;e++)(0,t[e])()}},Ba.prototype.then=function(t){if(this._didCommit)t();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(t)}},Ba.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var t=this._callbacks;if(null!==t)for(var e=0;e<t.length;e++){var n=t[e];"function"!=typeof n&&a("191",n),n()}}},Va.prototype.render=function(t,e){var n=this._internalRoot,r=new Ba;return null!==(e=void 0===e?null:e)&&r.then(e),za(t,n,null,r._onCommit),r},Va.prototype.unmount=function(t){var e=this._internalRoot,n=new Ba;return null!==(t=void 0===t?null:t)&&n.then(t),za(null,e,null,n._onCommit),n},Va.prototype.legacy_renderSubtreeIntoContainer=function(t,e,n){var r=this._internalRoot,o=new Ba;return null!==(n=void 0===n?null:n)&&o.then(n),za(e,r,t,o._onCommit),o},Va.prototype.createBatch=function(){var t=new Ua(this),e=t._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=t,t._next=null;else{for(n=null;null!==r&&r._expirationTime>=e;)n=r,r=r._next;t._next=r,null!==n&&(n._next=t)}return t},At=Ia,Lt=Fa,jt=function(){ia||0===ua||(Ma(ua,!1),ua=0)};var Ha={createPortal:Ga,findDOMNode:function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;return void 0===e&&("function"==typeof t.render?a("188"):a("268",Object.keys(t))),t=null===(t=rn(e))?null:t.stateNode},hydrate:function(t,e,n){return Xa(null,t,e,!0,n)},render:function(t,e,n){return Xa(null,t,e,!1,n)},unstable_renderSubtreeIntoContainer:function(t,e,n,r){return(null==t||void 0===t._reactInternalFiber)&&a("38"),Xa(t,e,n,!1,r)},unmountComponentAtNode:function(t){return Ya(t)||a("40"),!!t._reactRootContainer&&(Ra(function(){Xa(null,null,t,!1,function(){t._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Ga.apply(void 0,arguments)},unstable_batchedUpdates:Ia,unstable_interactiveUpdates:Fa,flushSync:function(t,e){ia&&a("187");var n=fa;fa=!0;try{return ta(t,e)}finally{fa=n,Ma(1073741823,!1)}},unstable_flushControlled:function(t){var e=fa;fa=!0;try{ta(t)}finally{(fa=e)||ia||Ma(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[R,F,D,T.injectEventPluginsByName,y,Y,function(t){C(t,V)},Mt,Nt,Sn,N]},unstable_createRoot:function(t,e){return Ya(t)||a("299","unstable_createRoot"),new Va(t,!0,null!=e&&!0===e.hydrate)}};!function(t){var e=t.findFiberByHostInstance;(function(t){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);Dr=Wr(function(t){return e.onCommitFiberRoot(n,t)}),zr=Wr(function(t){return e.onCommitFiberUnmount(n,t)})}catch(t){}})(o({},t,{findHostInstanceByFiber:function(t){return null===(t=rn(t))?null:t.stateNode},findFiberByHostInstance:function(t){return e?e(t):null}}))}({findFiberByHostInstance:I,bundleType:0,version:"16.6.3",rendererPackageName:"react-dom"});var $a={default:Ha},qa=$a&&Ha||$a;t.exports=qa.default||qa},function(t,e,n){"use strict";t.exports=n(16)},function(t,e,n){"use strict";(function(t){
- /** @license React v0.11.3
- * scheduler.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
- Object.defineProperty(e,"__esModule",{value:!0});var n=null,r=!1,o=3,i=-1,a=-1,l=!1,u=!1;function s(){if(!l){var t=n.expirationTime;u?k():u=!0,w(p,t)}}function c(){var t=n,e=n.next;if(n===e)n=null;else{var r=n.previous;n=r.next=e,e.previous=r}t.next=t.previous=null,r=t.callback,e=t.expirationTime,t=t.priorityLevel;var i=o,l=a;o=t,a=e;try{var u=r()}finally{o=i,a=l}if("function"==typeof u)if(u={callback:u,priorityLevel:t,expirationTime:e,next:null,previous:null},null===n)n=u.next=u.previous=u;else{r=null,t=n;do{if(t.expirationTime>=e){r=t;break}t=t.next}while(t!==n);null===r?r=n:r===n&&(n=u,s()),(e=r.previous).next=r.previous=u,u.next=r,u.previous=e}}function f(){if(-1===i&&null!==n&&1===n.priorityLevel){l=!0;try{do{c()}while(null!==n&&1===n.priorityLevel)}finally{l=!1,null!==n?s():u=!1}}}function p(t){l=!0;var o=r;r=t;try{if(t)for(;null!==n;){var i=e.unstable_now();if(!(n.expirationTime<=i))break;do{c()}while(null!==n&&n.expirationTime<=i)}else if(null!==n)do{c()}while(null!==n&&!P())}finally{l=!1,r=o,null!==n?s():u=!1,f()}}var d,h,g=Date,m="function"==typeof setTimeout?setTimeout:void 0,v="function"==typeof clearTimeout?clearTimeout:void 0,y="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,b="function"==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function _(t){d=y(function(e){v(h),t(e)}),h=m(function(){b(d),t(e.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var x=performance;e.unstable_now=function(){return x.now()}}else e.unstable_now=function(){return g.now()};var w,k,P,E=null;if("undefined"!=typeof window?E=window:void 0!==t&&(E=t),E&&E._schedMock){var C=E._schedMock;w=C[0],k=C[1],P=C[2],e.unstable_now=C[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var O=null,S=function(t){if(null!==O)try{O(t)}finally{O=null}};w=function(t){null!==O?setTimeout(w,0,t):(O=t,setTimeout(S,0,!1))},k=function(){O=null},P=function(){return!1}}else{"undefined"!=typeof console&&("function"!=typeof y&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"));var T=null,M=!1,N=-1,A=!1,L=!1,j=0,I=33,R=33;P=function(){return j<=e.unstable_now()};var F=new MessageChannel,D=F.port2;F.port1.onmessage=function(){M=!1;var t=T,n=N;T=null,N=-1;var r=e.unstable_now(),o=!1;if(0>=j-r){if(!(-1!==n&&n<=r))return A||(A=!0,_(z)),T=t,void(N=n);o=!0}if(null!==t){L=!0;try{t(o)}finally{L=!1}}};var z=function(t){if(null!==T){_(z);var e=t-j+R;e<R&&I<R?(8>e&&(e=8),R=e<I?I:e):I=e,j=t+R,M||(M=!0,D.postMessage(void 0))}else A=!1};w=function(t,e){T=t,N=e,L||0>e?D.postMessage(void 0):A||(A=!0,_(z))},k=function(){T=null,M=!1,N=-1}}e.unstable_ImmediatePriority=1,e.unstable_UserBlockingPriority=2,e.unstable_NormalPriority=3,e.unstable_IdlePriority=5,e.unstable_LowPriority=4,e.unstable_runWithPriority=function(t,n){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var r=o,a=i;o=t,i=e.unstable_now();try{return n()}finally{o=r,i=a,f()}},e.unstable_scheduleCallback=function(t,r){var a=-1!==i?i:e.unstable_now();if("object"==typeof r&&null!==r&&"number"==typeof r.timeout)r=a+r.timeout;else switch(o){case 1:r=a+-1;break;case 2:r=a+250;break;case 5:r=a+1073741823;break;case 4:r=a+1e4;break;default:r=a+5e3}if(t={callback:t,priorityLevel:o,expirationTime:r,next:null,previous:null},null===n)n=t.next=t.previous=t,s();else{a=null;var l=n;do{if(l.expirationTime>r){a=l;break}l=l.next}while(l!==n);null===a?a=n:a===n&&(n=t,s()),(r=a.previous).next=a.previous=t,t.next=a,t.previous=r}return t},e.unstable_cancelCallback=function(t){var e=t.next;if(null!==e){if(e===t)n=null;else{t===n&&(n=e);var r=t.previous;r.next=e,e.previous=r}t.next=t.previous=null}},e.unstable_wrapCallback=function(t){var n=o;return function(){var r=o,a=i;o=n,i=e.unstable_now();try{return t.apply(this,arguments)}finally{o=r,i=a,f()}}},e.unstable_getCurrentPriorityLevel=function(){return o},e.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime<a||P())}}).call(this,n(7))},function(t,e,n){(function(t,r){var o;
- /**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright JS Foundation and other contributors <https://js.foundation/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */(function(){var i,a=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",s="__lodash_hash_undefined__",c=500,f="__lodash_placeholder__",p=1,d=2,h=4,g=1,m=2,v=1,y=2,b=4,_=8,x=16,w=32,k=64,P=128,E=256,C=512,O=30,S="...",T=800,M=16,N=1,A=2,L=1/0,j=9007199254740991,I=1.7976931348623157e308,R=NaN,F=4294967295,D=F-1,z=F>>>1,W=[["ary",P],["bind",v],["bindKey",y],["curry",_],["curryRight",x],["flip",C],["partial",w],["partialRight",k],["rearg",E]],U="[object Arguments]",B="[object Array]",V="[object AsyncFunction]",Y="[object Boolean]",X="[object Date]",G="[object DOMException]",H="[object Error]",$="[object Function]",q="[object GeneratorFunction]",K="[object Map]",Z="[object Number]",Q="[object Null]",J="[object Object]",tt="[object Proxy]",et="[object RegExp]",nt="[object Set]",rt="[object String]",ot="[object Symbol]",it="[object Undefined]",at="[object WeakMap]",lt="[object WeakSet]",ut="[object ArrayBuffer]",st="[object DataView]",ct="[object Float32Array]",ft="[object Float64Array]",pt="[object Int8Array]",dt="[object Int16Array]",ht="[object Int32Array]",gt="[object Uint8Array]",mt="[object Uint8ClampedArray]",vt="[object Uint16Array]",yt="[object Uint32Array]",bt=/\b__p \+= '';/g,_t=/\b(__p \+=) '' \+/g,xt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wt=/&(?:amp|lt|gt|quot|#39);/g,kt=/[&<>"']/g,Pt=RegExp(wt.source),Et=RegExp(kt.source),Ct=/<%-([\s\S]+?)%>/g,Ot=/<%([\s\S]+?)%>/g,St=/<%=([\s\S]+?)%>/g,Tt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mt=/^\w*$/,Nt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,At=/[\\^$.*+?()[\]{}|]/g,Lt=RegExp(At.source),jt=/^\s+|\s+$/g,It=/^\s+/,Rt=/\s+$/,Ft=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Dt=/\{\n\/\* \[wrapped with (.+)\] \*/,zt=/,? & /,Wt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ut=/\\(\\)?/g,Bt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vt=/\w*$/,Yt=/^[-+]0x[0-9a-f]+$/i,Xt=/^0b[01]+$/i,Gt=/^\[object .+?Constructor\]$/,Ht=/^0o[0-7]+$/i,$t=/^(?:0|[1-9]\d*)$/,qt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kt=/($^)/,Zt=/['\n\r\u2028\u2029\\]/g,Qt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Jt="\\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",te="[\\ud800-\\udfff]",ee="["+Jt+"]",ne="["+Qt+"]",re="\\d+",oe="[\\u2700-\\u27bf]",ie="[a-z\\xdf-\\xf6\\xf8-\\xff]",ae="[^\\ud800-\\udfff"+Jt+re+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",le="\\ud83c[\\udffb-\\udfff]",ue="[^\\ud800-\\udfff]",se="(?:\\ud83c[\\udde6-\\uddff]){2}",ce="[\\ud800-\\udbff][\\udc00-\\udfff]",fe="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pe="(?:"+ie+"|"+ae+")",de="(?:"+fe+"|"+ae+")",he="(?:"+ne+"|"+le+")"+"?",ge="[\\ufe0e\\ufe0f]?"+he+("(?:\\u200d(?:"+[ue,se,ce].join("|")+")[\\ufe0e\\ufe0f]?"+he+")*"),me="(?:"+[oe,se,ce].join("|")+")"+ge,ve="(?:"+[ue+ne+"?",ne,se,ce,te].join("|")+")",ye=RegExp("['’]","g"),be=RegExp(ne,"g"),_e=RegExp(le+"(?="+le+")|"+ve+ge,"g"),xe=RegExp([fe+"?"+ie+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ee,fe,"$"].join("|")+")",de+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ee,fe+pe,"$"].join("|")+")",fe+"?"+pe+"+(?:['’](?:d|ll|m|re|s|t|ve))?",fe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",re,me].join("|"),"g"),we=RegExp("[\\u200d\\ud800-\\udfff"+Qt+"\\ufe0e\\ufe0f]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pe=["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"],Ee=-1,Ce={};Ce[ct]=Ce[ft]=Ce[pt]=Ce[dt]=Ce[ht]=Ce[gt]=Ce[mt]=Ce[vt]=Ce[yt]=!0,Ce[U]=Ce[B]=Ce[ut]=Ce[Y]=Ce[st]=Ce[X]=Ce[H]=Ce[$]=Ce[K]=Ce[Z]=Ce[J]=Ce[et]=Ce[nt]=Ce[rt]=Ce[at]=!1;var Oe={};Oe[U]=Oe[B]=Oe[ut]=Oe[st]=Oe[Y]=Oe[X]=Oe[ct]=Oe[ft]=Oe[pt]=Oe[dt]=Oe[ht]=Oe[K]=Oe[Z]=Oe[J]=Oe[et]=Oe[nt]=Oe[rt]=Oe[ot]=Oe[gt]=Oe[mt]=Oe[vt]=Oe[yt]=!0,Oe[H]=Oe[$]=Oe[at]=!1;var Se={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Te=parseFloat,Me=parseInt,Ne="object"==typeof t&&t&&t.Object===Object&&t,Ae="object"==typeof self&&self&&self.Object===Object&&self,Le=Ne||Ae||Function("return this")(),je=e&&!e.nodeType&&e,Ie=je&&"object"==typeof r&&r&&!r.nodeType&&r,Re=Ie&&Ie.exports===je,Fe=Re&&Ne.process,De=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Fe&&Fe.binding&&Fe.binding("util")}catch(t){}}(),ze=De&&De.isArrayBuffer,We=De&&De.isDate,Ue=De&&De.isMap,Be=De&&De.isRegExp,Ve=De&&De.isSet,Ye=De&&De.isTypedArray;function Xe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ge(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(r,a,n(a),t)}return r}function He(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function $e(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function qe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Ke(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}function Ze(t,e){return!!(null==t?0:t.length)&&un(t,e,0)>-1}function Qe(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}function Je(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function tn(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}function en(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}function nn(t,e,n,r){var o=null==t?0:t.length;for(r&&o&&(n=t[--o]);o--;)n=e(n,t[o],o,t);return n}function rn(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var on=pn("length");function an(t,e,n){var r;return n(t,function(t,n,o){if(e(t,n,o))return r=n,!1}),r}function ln(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}function un(t,e,n){return e==e?function(t,e,n){var r=n-1,o=t.length;for(;++r<o;)if(t[r]===e)return r;return-1}(t,e,n):ln(t,cn,n)}function sn(t,e,n,r){for(var o=n-1,i=t.length;++o<i;)if(r(t[o],e))return o;return-1}function cn(t){return t!=t}function fn(t,e){var n=null==t?0:t.length;return n?gn(t,e)/n:R}function pn(t){return function(e){return null==e?i:e[t]}}function dn(t){return function(e){return null==t?i:t[e]}}function hn(t,e,n,r,o){return o(t,function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)}),n}function gn(t,e){for(var n,r=-1,o=t.length;++r<o;){var a=e(t[r]);a!==i&&(n=n===i?a:n+a)}return n}function mn(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function vn(t){return function(e){return t(e)}}function yn(t,e){return Je(e,function(e){return t[e]})}function bn(t,e){return t.has(e)}function _n(t,e){for(var n=-1,r=t.length;++n<r&&un(e,t[n],0)>-1;);return n}function xn(t,e){for(var n=t.length;n--&&un(e,t[n],0)>-1;);return n}var wn=dn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),kn=dn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Pn(t){return"\\"+Se[t]}function En(t){return we.test(t)}function Cn(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function On(t,e){return function(n){return t(e(n))}}function Sn(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var a=t[n];a!==e&&a!==f||(t[n]=f,i[o++]=n)}return i}function Tn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function Mn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function Nn(t){return En(t)?function(t){var e=_e.lastIndex=0;for(;_e.test(t);)++e;return e}(t):on(t)}function An(t){return En(t)?function(t){return t.match(_e)||[]}(t):function(t){return t.split("")}(t)}var Ln=dn({"&":"&","<":"<",">":">",""":'"',"'":"'"});var jn=function t(e){var n,r=(e=null==e?Le:jn.defaults(Le.Object(),e,jn.pick(Le,Pe))).Array,o=e.Date,Qt=e.Error,Jt=e.Function,te=e.Math,ee=e.Object,ne=e.RegExp,re=e.String,oe=e.TypeError,ie=r.prototype,ae=Jt.prototype,le=ee.prototype,ue=e["__core-js_shared__"],se=ae.toString,ce=le.hasOwnProperty,fe=0,pe=(n=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",de=le.toString,he=se.call(ee),ge=Le._,me=ne("^"+se.call(ce).replace(At,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ve=Re?e.Buffer:i,_e=e.Symbol,we=e.Uint8Array,Se=ve?ve.allocUnsafe:i,Ne=On(ee.getPrototypeOf,ee),Ae=ee.create,je=le.propertyIsEnumerable,Ie=ie.splice,Fe=_e?_e.isConcatSpreadable:i,De=_e?_e.iterator:i,on=_e?_e.toStringTag:i,dn=function(){try{var t=zi(ee,"defineProperty");return t({},"",{}),t}catch(t){}}(),In=e.clearTimeout!==Le.clearTimeout&&e.clearTimeout,Rn=o&&o.now!==Le.Date.now&&o.now,Fn=e.setTimeout!==Le.setTimeout&&e.setTimeout,Dn=te.ceil,zn=te.floor,Wn=ee.getOwnPropertySymbols,Un=ve?ve.isBuffer:i,Bn=e.isFinite,Vn=ie.join,Yn=On(ee.keys,ee),Xn=te.max,Gn=te.min,Hn=o.now,$n=e.parseInt,qn=te.random,Kn=ie.reverse,Zn=zi(e,"DataView"),Qn=zi(e,"Map"),Jn=zi(e,"Promise"),tr=zi(e,"Set"),er=zi(e,"WeakMap"),nr=zi(ee,"create"),rr=er&&new er,or={},ir=fa(Zn),ar=fa(Qn),lr=fa(Jn),ur=fa(tr),sr=fa(er),cr=_e?_e.prototype:i,fr=cr?cr.valueOf:i,pr=cr?cr.toString:i;function dr(t){if(Sl(t)&&!vl(t)&&!(t instanceof vr)){if(t instanceof mr)return t;if(ce.call(t,"__wrapped__"))return pa(t)}return new mr(t)}var hr=function(){function t(){}return function(e){if(!Ol(e))return{};if(Ae)return Ae(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function gr(){}function mr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function vr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=F,this.__views__=[]}function yr(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function br(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function _r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function xr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new _r;++e<n;)this.add(t[e])}function wr(t){var e=this.__data__=new br(t);this.size=e.size}function kr(t,e){var n=vl(t),r=!n&&ml(t),o=!n&&!r&&xl(t),i=!n&&!r&&!o&&Rl(t),a=n||r||o||i,l=a?mn(t.length,re):[],u=l.length;for(var s in t)!e&&!ce.call(t,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Gi(s,u))||l.push(s);return l}function Pr(t){var e=t.length;return e?t[wo(0,e-1)]:i}function Er(t,e){return ua(ri(t),jr(e,0,t.length))}function Cr(t){return ua(ri(t))}function Or(t,e,n){(n===i||dl(t[e],n))&&(n!==i||e in t)||Ar(t,e,n)}function Sr(t,e,n){var r=t[e];ce.call(t,e)&&dl(r,n)&&(n!==i||e in t)||Ar(t,e,n)}function Tr(t,e){for(var n=t.length;n--;)if(dl(t[n][0],e))return n;return-1}function Mr(t,e,n,r){return zr(t,function(t,o,i){e(r,t,n(t),i)}),r}function Nr(t,e){return t&&oi(e,ou(e),t)}function Ar(t,e,n){"__proto__"==e&&dn?dn(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Lr(t,e){for(var n=-1,o=e.length,a=r(o),l=null==t;++n<o;)a[n]=l?i:Jl(t,e[n]);return a}function jr(t,e,n){return t==t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function Ir(t,e,n,r,o,a){var l,u=e&p,s=e&d,c=e&h;if(n&&(l=o?n(t,r,o,a):n(t)),l!==i)return l;if(!Ol(t))return t;var f=vl(t);if(f){if(l=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&ce.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!u)return ri(t,l)}else{var g=Bi(t),m=g==$||g==q;if(xl(t))return Zo(t,u);if(g==J||g==U||m&&!o){if(l=s||m?{}:Yi(t),!u)return s?function(t,e){return oi(t,Ui(t),e)}(t,function(t,e){return t&&oi(e,iu(e),t)}(l,t)):function(t,e){return oi(t,Wi(t),e)}(t,Nr(l,t))}else{if(!Oe[g])return o?t:{};l=function(t,e,n){var r,o,i,a=t.constructor;switch(e){case ut:return Qo(t);case Y:case X:return new a(+t);case st:return function(t,e){var n=e?Qo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case ct:case ft:case pt:case dt:case ht:case gt:case mt:case vt:case yt:return Jo(t,n);case K:return new a;case Z:case rt:return new a(t);case et:return(i=new(o=t).constructor(o.source,Vt.exec(o))).lastIndex=o.lastIndex,i;case nt:return new a;case ot:return r=t,fr?ee(fr.call(r)):{}}}(t,g,u)}}a||(a=new wr);var v=a.get(t);if(v)return v;if(a.set(t,l),Ll(t))return t.forEach(function(r){l.add(Ir(r,e,n,r,t,a))}),l;if(Tl(t))return t.forEach(function(r,o){l.set(o,Ir(r,e,n,o,t,a))}),l;var y=f?i:(c?s?Ai:Ni:s?iu:ou)(t);return He(y||t,function(r,o){y&&(r=t[o=r]),Sr(l,o,Ir(r,e,n,o,t,a))}),l}function Rr(t,e,n){var r=n.length;if(null==t)return!r;for(t=ee(t);r--;){var o=n[r],a=e[o],l=t[o];if(l===i&&!(o in t)||!a(l))return!1}return!0}function Fr(t,e,n){if("function"!=typeof t)throw new oe(u);return oa(function(){t.apply(i,n)},e)}function Dr(t,e,n,r){var o=-1,i=Ze,l=!0,u=t.length,s=[],c=e.length;if(!u)return s;n&&(e=Je(e,vn(n))),r?(i=Qe,l=!1):e.length>=a&&(i=bn,l=!1,e=new xr(e));t:for(;++o<u;){var f=t[o],p=null==n?f:n(f);if(f=r||0!==f?f:0,l&&p==p){for(var d=c;d--;)if(e[d]===p)continue t;s.push(f)}else i(e,p,r)||s.push(f)}return s}dr.templateSettings={escape:Ct,evaluate:Ot,interpolate:St,variable:"",imports:{_:dr}},dr.prototype=gr.prototype,dr.prototype.constructor=dr,mr.prototype=hr(gr.prototype),mr.prototype.constructor=mr,vr.prototype=hr(gr.prototype),vr.prototype.constructor=vr,yr.prototype.clear=function(){this.__data__=nr?nr(null):{},this.size=0},yr.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},yr.prototype.get=function(t){var e=this.__data__;if(nr){var n=e[t];return n===s?i:n}return ce.call(e,t)?e[t]:i},yr.prototype.has=function(t){var e=this.__data__;return nr?e[t]!==i:ce.call(e,t)},yr.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nr&&e===i?s:e,this},br.prototype.clear=function(){this.__data__=[],this.size=0},br.prototype.delete=function(t){var e=this.__data__,n=Tr(e,t);return!(n<0||(n==e.length-1?e.pop():Ie.call(e,n,1),--this.size,0))},br.prototype.get=function(t){var e=this.__data__,n=Tr(e,t);return n<0?i:e[n][1]},br.prototype.has=function(t){return Tr(this.__data__,t)>-1},br.prototype.set=function(t,e){var n=this.__data__,r=Tr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},_r.prototype.clear=function(){this.size=0,this.__data__={hash:new yr,map:new(Qn||br),string:new yr}},_r.prototype.delete=function(t){var e=Fi(this,t).delete(t);return this.size-=e?1:0,e},_r.prototype.get=function(t){return Fi(this,t).get(t)},_r.prototype.has=function(t){return Fi(this,t).has(t)},_r.prototype.set=function(t,e){var n=Fi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},xr.prototype.add=xr.prototype.push=function(t){return this.__data__.set(t,s),this},xr.prototype.has=function(t){return this.__data__.has(t)},wr.prototype.clear=function(){this.__data__=new br,this.size=0},wr.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},wr.prototype.get=function(t){return this.__data__.get(t)},wr.prototype.has=function(t){return this.__data__.has(t)},wr.prototype.set=function(t,e){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Qn||r.length<a-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new _r(r)}return n.set(t,e),this.size=n.size,this};var zr=li(Hr),Wr=li($r,!0);function Ur(t,e){var n=!0;return zr(t,function(t,r,o){return n=!!e(t,r,o)}),n}function Br(t,e,n){for(var r=-1,o=t.length;++r<o;){var a=t[r],l=e(a);if(null!=l&&(u===i?l==l&&!Il(l):n(l,u)))var u=l,s=a}return s}function Vr(t,e){var n=[];return zr(t,function(t,r,o){e(t,r,o)&&n.push(t)}),n}function Yr(t,e,n,r,o){var i=-1,a=t.length;for(n||(n=Xi),o||(o=[]);++i<a;){var l=t[i];e>0&&n(l)?e>1?Yr(l,e-1,n,r,o):tn(o,l):r||(o[o.length]=l)}return o}var Xr=ui(),Gr=ui(!0);function Hr(t,e){return t&&Xr(t,e,ou)}function $r(t,e){return t&&Gr(t,e,ou)}function qr(t,e){return Ke(e,function(e){return Pl(t[e])})}function Kr(t,e){for(var n=0,r=(e=Ho(e,t)).length;null!=t&&n<r;)t=t[ca(e[n++])];return n&&n==r?t:i}function Zr(t,e,n){var r=e(t);return vl(t)?r:tn(r,n(t))}function Qr(t){return null==t?t===i?it:Q:on&&on in ee(t)?function(t){var e=ce.call(t,on),n=t[on];try{t[on]=i;var r=!0}catch(t){}var o=de.call(t);return r&&(e?t[on]=n:delete t[on]),o}(t):function(t){return de.call(t)}(t)}function Jr(t,e){return t>e}function to(t,e){return null!=t&&ce.call(t,e)}function eo(t,e){return null!=t&&e in ee(t)}function no(t,e,n){for(var o=n?Qe:Ze,a=t[0].length,l=t.length,u=l,s=r(l),c=1/0,f=[];u--;){var p=t[u];u&&e&&(p=Je(p,vn(e))),c=Gn(p.length,c),s[u]=!n&&(e||a>=120&&p.length>=120)?new xr(u&&p):i}p=t[0];var d=-1,h=s[0];t:for(;++d<a&&f.length<c;){var g=p[d],m=e?e(g):g;if(g=n||0!==g?g:0,!(h?bn(h,m):o(f,m,n))){for(u=l;--u;){var v=s[u];if(!(v?bn(v,m):o(t[u],m,n)))continue t}h&&h.push(m),f.push(g)}}return f}function ro(t,e,n){var r=null==(t=ea(t,e=Ho(e,t)))?t:t[ca(ka(e))];return null==r?i:Xe(r,t,n)}function oo(t){return Sl(t)&&Qr(t)==U}function io(t,e,n,r,o){return t===e||(null==t||null==e||!Sl(t)&&!Sl(e)?t!=t&&e!=e:function(t,e,n,r,o,a){var l=vl(t),u=vl(e),s=l?B:Bi(t),c=u?B:Bi(e),f=(s=s==U?J:s)==J,p=(c=c==U?J:c)==J,d=s==c;if(d&&xl(t)){if(!xl(e))return!1;l=!0,f=!1}if(d&&!f)return a||(a=new wr),l||Rl(t)?Ti(t,e,n,r,o,a):function(t,e,n,r,o,i,a){switch(n){case st:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case ut:return!(t.byteLength!=e.byteLength||!i(new we(t),new we(e)));case Y:case X:case Z:return dl(+t,+e);case H:return t.name==e.name&&t.message==e.message;case et:case rt:return t==e+"";case K:var l=Cn;case nt:var u=r&g;if(l||(l=Tn),t.size!=e.size&&!u)return!1;var s=a.get(t);if(s)return s==e;r|=m,a.set(t,e);var c=Ti(l(t),l(e),r,o,i,a);return a.delete(t),c;case ot:if(fr)return fr.call(t)==fr.call(e)}return!1}(t,e,s,n,r,o,a);if(!(n&g)){var h=f&&ce.call(t,"__wrapped__"),v=p&&ce.call(e,"__wrapped__");if(h||v){var y=h?t.value():t,b=v?e.value():e;return a||(a=new wr),o(y,b,n,r,a)}}return!!d&&(a||(a=new wr),function(t,e,n,r,o,a){var l=n&g,u=Ni(t),s=u.length,c=Ni(e).length;if(s!=c&&!l)return!1;for(var f=s;f--;){var p=u[f];if(!(l?p in e:ce.call(e,p)))return!1}var d=a.get(t);if(d&&a.get(e))return d==e;var h=!0;a.set(t,e),a.set(e,t);for(var m=l;++f<s;){p=u[f];var v=t[p],y=e[p];if(r)var b=l?r(y,v,p,e,t,a):r(v,y,p,t,e,a);if(!(b===i?v===y||o(v,y,n,r,a):b)){h=!1;break}m||(m="constructor"==p)}if(h&&!m){var _=t.constructor,x=e.constructor;_!=x&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x)&&(h=!1)}return a.delete(t),a.delete(e),h}(t,e,n,r,o,a))}(t,e,n,r,io,o))}function ao(t,e,n,r){var o=n.length,a=o,l=!r;if(null==t)return!a;for(t=ee(t);o--;){var u=n[o];if(l&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<a;){var s=(u=n[o])[0],c=t[s],f=u[1];if(l&&u[2]){if(c===i&&!(s in t))return!1}else{var p=new wr;if(r)var d=r(c,f,s,t,e,p);if(!(d===i?io(f,c,g|m,r,p):d))return!1}}return!0}function lo(t){return!(!Ol(t)||(e=t,pe&&pe in e))&&(Pl(t)?me:Gt).test(fa(t));var e}function uo(t){return"function"==typeof t?t:null==t?Mu:"object"==typeof t?vl(t)?go(t[0],t[1]):ho(t):zu(t)}function so(t){if(!Zi(t))return Yn(t);var e=[];for(var n in ee(t))ce.call(t,n)&&"constructor"!=n&&e.push(n);return e}function co(t){if(!Ol(t))return function(t){var e=[];if(null!=t)for(var n in ee(t))e.push(n);return e}(t);var e=Zi(t),n=[];for(var r in t)("constructor"!=r||!e&&ce.call(t,r))&&n.push(r);return n}function fo(t,e){return t<e}function po(t,e){var n=-1,o=bl(t)?r(t.length):[];return zr(t,function(t,r,i){o[++n]=e(t,r,i)}),o}function ho(t){var e=Di(t);return 1==e.length&&e[0][2]?Ji(e[0][0],e[0][1]):function(n){return n===t||ao(n,t,e)}}function go(t,e){return $i(t)&&Qi(e)?Ji(ca(t),e):function(n){var r=Jl(n,t);return r===i&&r===e?tu(n,t):io(e,r,g|m)}}function mo(t,e,n,r,o){t!==e&&Xr(e,function(a,l){if(Ol(a))o||(o=new wr),function(t,e,n,r,o,a,l){var u=na(t,n),s=na(e,n),c=l.get(s);if(c)Or(t,n,c);else{var f=a?a(u,s,n+"",t,e,l):i,p=f===i;if(p){var d=vl(s),h=!d&&xl(s),g=!d&&!h&&Rl(s);f=s,d||h||g?vl(u)?f=u:_l(u)?f=ri(u):h?(p=!1,f=Zo(s,!0)):g?(p=!1,f=Jo(s,!0)):f=[]:Nl(s)||ml(s)?(f=u,ml(u)?f=Yl(u):Ol(u)&&!Pl(u)||(f=Yi(s))):p=!1}p&&(l.set(s,f),o(f,s,r,a,l),l.delete(s)),Or(t,n,f)}}(t,e,l,n,mo,r,o);else{var u=r?r(na(t,l),a,l+"",t,e,o):i;u===i&&(u=a),Or(t,l,u)}},iu)}function vo(t,e){var n=t.length;if(n)return Gi(e+=e<0?n:0,n)?t[e]:i}function yo(t,e,n){var r=-1;return e=Je(e.length?e:[Mu],vn(Ri())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(po(t,function(t,n,o){return{criteria:Je(e,function(e){return e(t)}),index:++r,value:t}}),function(t,e){return function(t,e,n){for(var r=-1,o=t.criteria,i=e.criteria,a=o.length,l=n.length;++r<a;){var u=ti(o[r],i[r]);if(u){if(r>=l)return u;var s=n[r];return u*("desc"==s?-1:1)}}return t.index-e.index}(t,e,n)})}function bo(t,e,n){for(var r=-1,o=e.length,i={};++r<o;){var a=e[r],l=Kr(t,a);n(l,a)&&Oo(i,Ho(a,t),l)}return i}function _o(t,e,n,r){var o=r?sn:un,i=-1,a=e.length,l=t;for(t===e&&(e=ri(e)),n&&(l=Je(t,vn(n)));++i<a;)for(var u=0,s=e[i],c=n?n(s):s;(u=o(l,c,u,r))>-1;)l!==t&&Ie.call(l,u,1),Ie.call(t,u,1);return t}function xo(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;Gi(o)?Ie.call(t,o,1):zo(t,o)}}return t}function wo(t,e){return t+zn(qn()*(e-t+1))}function ko(t,e){var n="";if(!t||e<1||e>j)return n;do{e%2&&(n+=t),(e=zn(e/2))&&(t+=t)}while(e);return n}function Po(t,e){return ia(ta(t,e,Mu),t+"")}function Eo(t){return Pr(du(t))}function Co(t,e){var n=du(t);return ua(n,jr(e,0,n.length))}function Oo(t,e,n,r){if(!Ol(t))return t;for(var o=-1,a=(e=Ho(e,t)).length,l=a-1,u=t;null!=u&&++o<a;){var s=ca(e[o]),c=n;if(o!=l){var f=u[s];(c=r?r(f,s,u):i)===i&&(c=Ol(f)?f:Gi(e[o+1])?[]:{})}Sr(u,s,c),u=u[s]}return t}var So=rr?function(t,e){return rr.set(t,e),t}:Mu,To=dn?function(t,e){return dn(t,"toString",{configurable:!0,enumerable:!1,value:Ou(e),writable:!0})}:Mu;function Mo(t){return ua(du(t))}function No(t,e,n){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=r(i);++o<i;)a[o]=t[o+e];return a}function Ao(t,e){var n;return zr(t,function(t,r,o){return!(n=e(t,r,o))}),!!n}function Lo(t,e,n){var r=0,o=null==t?r:t.length;if("number"==typeof e&&e==e&&o<=z){for(;r<o;){var i=r+o>>>1,a=t[i];null!==a&&!Il(a)&&(n?a<=e:a<e)?r=i+1:o=i}return o}return jo(t,e,Mu,n)}function jo(t,e,n,r){e=n(e);for(var o=0,a=null==t?0:t.length,l=e!=e,u=null===e,s=Il(e),c=e===i;o<a;){var f=zn((o+a)/2),p=n(t[f]),d=p!==i,h=null===p,g=p==p,m=Il(p);if(l)var v=r||g;else v=c?g&&(r||d):u?g&&d&&(r||!h):s?g&&d&&!h&&(r||!m):!h&&!m&&(r?p<=e:p<e);v?o=f+1:a=f}return Gn(a,D)}function Io(t,e){for(var n=-1,r=t.length,o=0,i=[];++n<r;){var a=t[n],l=e?e(a):a;if(!n||!dl(l,u)){var u=l;i[o++]=0===a?0:a}}return i}function Ro(t){return"number"==typeof t?t:Il(t)?R:+t}function Fo(t){if("string"==typeof t)return t;if(vl(t))return Je(t,Fo)+"";if(Il(t))return pr?pr.call(t):"";var e=t+"";return"0"==e&&1/t==-L?"-0":e}function Do(t,e,n){var r=-1,o=Ze,i=t.length,l=!0,u=[],s=u;if(n)l=!1,o=Qe;else if(i>=a){var c=e?null:ki(t);if(c)return Tn(c);l=!1,o=bn,s=new xr}else s=e?[]:u;t:for(;++r<i;){var f=t[r],p=e?e(f):f;if(f=n||0!==f?f:0,l&&p==p){for(var d=s.length;d--;)if(s[d]===p)continue t;e&&s.push(p),u.push(f)}else o(s,p,n)||(s!==u&&s.push(p),u.push(f))}return u}function zo(t,e){return null==(t=ea(t,e=Ho(e,t)))||delete t[ca(ka(e))]}function Wo(t,e,n,r){return Oo(t,e,n(Kr(t,e)),r)}function Uo(t,e,n,r){for(var o=t.length,i=r?o:-1;(r?i--:++i<o)&&e(t[i],i,t););return n?No(t,r?0:i,r?i+1:o):No(t,r?i+1:0,r?o:i)}function Bo(t,e){var n=t;return n instanceof vr&&(n=n.value()),en(e,function(t,e){return e.func.apply(e.thisArg,tn([t],e.args))},n)}function Vo(t,e,n){var o=t.length;if(o<2)return o?Do(t[0]):[];for(var i=-1,a=r(o);++i<o;)for(var l=t[i],u=-1;++u<o;)u!=i&&(a[i]=Dr(a[i]||l,t[u],e,n));return Do(Yr(a,1),e,n)}function Yo(t,e,n){for(var r=-1,o=t.length,a=e.length,l={};++r<o;){var u=r<a?e[r]:i;n(l,t[r],u)}return l}function Xo(t){return _l(t)?t:[]}function Go(t){return"function"==typeof t?t:Mu}function Ho(t,e){return vl(t)?t:$i(t,e)?[t]:sa(Xl(t))}var $o=Po;function qo(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:No(t,e,n)}var Ko=In||function(t){return Le.clearTimeout(t)};function Zo(t,e){if(e)return t.slice();var n=t.length,r=Se?Se(n):new t.constructor(n);return t.copy(r),r}function Qo(t){var e=new t.constructor(t.byteLength);return new we(e).set(new we(t)),e}function Jo(t,e){var n=e?Qo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function ti(t,e){if(t!==e){var n=t!==i,r=null===t,o=t==t,a=Il(t),l=e!==i,u=null===e,s=e==e,c=Il(e);if(!u&&!c&&!a&&t>e||a&&l&&s&&!u&&!c||r&&l&&s||!n&&s||!o)return 1;if(!r&&!a&&!c&&t<e||c&&n&&o&&!r&&!a||u&&n&&o||!l&&o||!s)return-1}return 0}function ei(t,e,n,o){for(var i=-1,a=t.length,l=n.length,u=-1,s=e.length,c=Xn(a-l,0),f=r(s+c),p=!o;++u<s;)f[u]=e[u];for(;++i<l;)(p||i<a)&&(f[n[i]]=t[i]);for(;c--;)f[u++]=t[i++];return f}function ni(t,e,n,o){for(var i=-1,a=t.length,l=-1,u=n.length,s=-1,c=e.length,f=Xn(a-u,0),p=r(f+c),d=!o;++i<f;)p[i]=t[i];for(var h=i;++s<c;)p[h+s]=e[s];for(;++l<u;)(d||i<a)&&(p[h+n[l]]=t[i++]);return p}function ri(t,e){var n=-1,o=t.length;for(e||(e=r(o));++n<o;)e[n]=t[n];return e}function oi(t,e,n,r){var o=!n;n||(n={});for(var a=-1,l=e.length;++a<l;){var u=e[a],s=r?r(n[u],t[u],u,n,t):i;s===i&&(s=t[u]),o?Ar(n,u,s):Sr(n,u,s)}return n}function ii(t,e){return function(n,r){var o=vl(n)?Ge:Mr,i=e?e():{};return o(n,t,Ri(r,2),i)}}function ai(t){return Po(function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,l=o>2?n[2]:i;for(a=t.length>3&&"function"==typeof a?(o--,a):i,l&&Hi(n[0],n[1],l)&&(a=o<3?i:a,o=1),e=ee(e);++r<o;){var u=n[r];u&&t(e,u,r,a)}return e})}function li(t,e){return function(n,r){if(null==n)return n;if(!bl(n))return t(n,r);for(var o=n.length,i=e?o:-1,a=ee(n);(e?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function ui(t){return function(e,n,r){for(var o=-1,i=ee(e),a=r(e),l=a.length;l--;){var u=a[t?l:++o];if(!1===n(i[u],u,i))break}return e}}function si(t){return function(e){var n=En(e=Xl(e))?An(e):i,r=n?n[0]:e.charAt(0),o=n?qo(n,1).join(""):e.slice(1);return r[t]()+o}}function ci(t){return function(e){return en(Pu(mu(e).replace(ye,"")),t,"")}}function fi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=hr(t.prototype),r=t.apply(n,e);return Ol(r)?r:n}}function pi(t){return function(e,n,r){var o=ee(e);if(!bl(e)){var a=Ri(n,3);e=ou(e),n=function(t){return a(o[t],t,o)}}var l=t(e,n,r);return l>-1?o[a?e[l]:l]:i}}function di(t){return Mi(function(e){var n=e.length,r=n,o=mr.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new oe(u);if(o&&!l&&"wrapper"==ji(a))var l=new mr([],!0)}for(r=l?r:n;++r<n;){var s=ji(a=e[r]),c="wrapper"==s?Li(a):i;l=c&&qi(c[0])&&c[1]==(P|_|w|E)&&!c[4].length&&1==c[9]?l[ji(c[0])].apply(l,c[3]):1==a.length&&qi(a)?l[s]():l.thru(a)}return function(){var t=arguments,r=t[0];if(l&&1==t.length&&vl(r))return l.plant(r).value();for(var o=0,i=n?e[o].apply(this,t):r;++o<n;)i=e[o].call(this,i);return i}})}function hi(t,e,n,o,a,l,u,s,c,f){var p=e&P,d=e&v,h=e&y,g=e&(_|x),m=e&C,b=h?i:fi(t);return function v(){for(var y=arguments.length,_=r(y),x=y;x--;)_[x]=arguments[x];if(g)var w=Ii(v),k=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(_,w);if(o&&(_=ei(_,o,a,g)),l&&(_=ni(_,l,u,g)),y-=k,g&&y<f){var P=Sn(_,w);return xi(t,e,hi,v.placeholder,n,_,P,s,c,f-y)}var E=d?n:this,C=h?E[t]:t;return y=_.length,s?_=function(t,e){for(var n=t.length,r=Gn(e.length,n),o=ri(t);r--;){var a=e[r];t[r]=Gi(a,n)?o[a]:i}return t}(_,s):m&&y>1&&_.reverse(),p&&c<y&&(_.length=c),this&&this!==Le&&this instanceof v&&(C=b||fi(C)),C.apply(E,_)}}function gi(t,e){return function(n,r){return function(t,e,n,r){return Hr(t,function(t,o,i){e(r,n(t),o,i)}),r}(n,t,e(r),{})}}function mi(t,e){return function(n,r){var o;if(n===i&&r===i)return e;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=Fo(n),r=Fo(r)):(n=Ro(n),r=Ro(r)),o=t(n,r)}return o}}function vi(t){return Mi(function(e){return e=Je(e,vn(Ri())),Po(function(n){var r=this;return t(e,function(t){return Xe(t,r,n)})})})}function yi(t,e){var n=(e=e===i?" ":Fo(e)).length;if(n<2)return n?ko(e,t):e;var r=ko(e,Dn(t/Nn(e)));return En(e)?qo(An(r),0,t).join(""):r.slice(0,t)}function bi(t){return function(e,n,o){return o&&"number"!=typeof o&&Hi(e,n,o)&&(n=o=i),e=Wl(e),n===i?(n=e,e=0):n=Wl(n),function(t,e,n,o){for(var i=-1,a=Xn(Dn((e-t)/(n||1)),0),l=r(a);a--;)l[o?a:++i]=t,t+=n;return l}(e,n,o=o===i?e<n?1:-1:Wl(o),t)}}function _i(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Vl(e),n=Vl(n)),t(e,n)}}function xi(t,e,n,r,o,a,l,u,s,c){var f=e&_;e|=f?w:k,(e&=~(f?k:w))&b||(e&=~(v|y));var p=[t,e,o,f?a:i,f?l:i,f?i:a,f?i:l,u,s,c],d=n.apply(i,p);return qi(t)&&ra(d,p),d.placeholder=r,aa(d,t,e)}function wi(t){var e=te[t];return function(t,n){if(t=Vl(t),n=null==n?0:Gn(Ul(n),292)){var r=(Xl(t)+"e").split("e");return+((r=(Xl(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var ki=tr&&1/Tn(new tr([,-0]))[1]==L?function(t){return new tr(t)}:Iu;function Pi(t){return function(e){var n=Bi(e);return n==K?Cn(e):n==nt?Mn(e):function(t,e){return Je(e,function(e){return[e,t[e]]})}(e,t(e))}}function Ei(t,e,n,o,a,l,s,c){var p=e&y;if(!p&&"function"!=typeof t)throw new oe(u);var d=o?o.length:0;if(d||(e&=~(w|k),o=a=i),s=s===i?s:Xn(Ul(s),0),c=c===i?c:Ul(c),d-=a?a.length:0,e&k){var h=o,g=a;o=a=i}var m=p?i:Li(t),C=[t,e,n,o,a,h,g,l,s,c];if(m&&function(t,e){var n=t[1],r=e[1],o=n|r,i=o<(v|y|P),a=r==P&&n==_||r==P&&n==E&&t[7].length<=e[8]||r==(P|E)&&e[7].length<=e[8]&&n==_;if(!i&&!a)return t;r&v&&(t[2]=e[2],o|=n&v?0:b);var l=e[3];if(l){var u=t[3];t[3]=u?ei(u,l,e[4]):l,t[4]=u?Sn(t[3],f):e[4]}(l=e[5])&&(u=t[5],t[5]=u?ni(u,l,e[6]):l,t[6]=u?Sn(t[5],f):e[6]),(l=e[7])&&(t[7]=l),r&P&&(t[8]=null==t[8]?e[8]:Gn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=o}(C,m),t=C[0],e=C[1],n=C[2],o=C[3],a=C[4],!(c=C[9]=C[9]===i?p?0:t.length:Xn(C[9]-d,0))&&e&(_|x)&&(e&=~(_|x)),e&&e!=v)O=e==_||e==x?function(t,e,n){var o=fi(t);return function a(){for(var l=arguments.length,u=r(l),s=l,c=Ii(a);s--;)u[s]=arguments[s];var f=l<3&&u[0]!==c&&u[l-1]!==c?[]:Sn(u,c);return(l-=f.length)<n?xi(t,e,hi,a.placeholder,i,u,f,i,i,n-l):Xe(this&&this!==Le&&this instanceof a?o:t,this,u)}}(t,e,c):e!=w&&e!=(v|w)||a.length?hi.apply(i,C):function(t,e,n,o){var i=e&v,a=fi(t);return function e(){for(var l=-1,u=arguments.length,s=-1,c=o.length,f=r(c+u),p=this&&this!==Le&&this instanceof e?a:t;++s<c;)f[s]=o[s];for(;u--;)f[s++]=arguments[++l];return Xe(p,i?n:this,f)}}(t,e,n,o);else var O=function(t,e,n){var r=e&v,o=fi(t);return function e(){return(this&&this!==Le&&this instanceof e?o:t).apply(r?n:this,arguments)}}(t,e,n);return aa((m?So:ra)(O,C),t,e)}function Ci(t,e,n,r){return t===i||dl(t,le[n])&&!ce.call(r,n)?e:t}function Oi(t,e,n,r,o,a){return Ol(t)&&Ol(e)&&(a.set(e,t),mo(t,e,i,Oi,a),a.delete(e)),t}function Si(t){return Nl(t)?i:t}function Ti(t,e,n,r,o,a){var l=n&g,u=t.length,s=e.length;if(u!=s&&!(l&&s>u))return!1;var c=a.get(t);if(c&&a.get(e))return c==e;var f=-1,p=!0,d=n&m?new xr:i;for(a.set(t,e),a.set(e,t);++f<u;){var h=t[f],v=e[f];if(r)var y=l?r(v,h,f,e,t,a):r(h,v,f,t,e,a);if(y!==i){if(y)continue;p=!1;break}if(d){if(!rn(e,function(t,e){if(!bn(d,e)&&(h===t||o(h,t,n,r,a)))return d.push(e)})){p=!1;break}}else if(h!==v&&!o(h,v,n,r,a)){p=!1;break}}return a.delete(t),a.delete(e),p}function Mi(t){return ia(ta(t,i,ya),t+"")}function Ni(t){return Zr(t,ou,Wi)}function Ai(t){return Zr(t,iu,Ui)}var Li=rr?function(t){return rr.get(t)}:Iu;function ji(t){for(var e=t.name+"",n=or[e],r=ce.call(or,e)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==t)return o.name}return e}function Ii(t){return(ce.call(dr,"placeholder")?dr:t).placeholder}function Ri(){var t=dr.iteratee||Nu;return t=t===Nu?uo:t,arguments.length?t(arguments[0],arguments[1]):t}function Fi(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Di(t){for(var e=ou(t),n=e.length;n--;){var r=e[n],o=t[r];e[n]=[r,o,Qi(o)]}return e}function zi(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return lo(n)?n:i}var Wi=Wn?function(t){return null==t?[]:(t=ee(t),Ke(Wn(t),function(e){return je.call(t,e)}))}:Bu,Ui=Wn?function(t){for(var e=[];t;)tn(e,Wi(t)),t=Ne(t);return e}:Bu,Bi=Qr;function Vi(t,e,n){for(var r=-1,o=(e=Ho(e,t)).length,i=!1;++r<o;){var a=ca(e[r]);if(!(i=null!=t&&n(t,a)))break;t=t[a]}return i||++r!=o?i:!!(o=null==t?0:t.length)&&Cl(o)&&Gi(a,o)&&(vl(t)||ml(t))}function Yi(t){return"function"!=typeof t.constructor||Zi(t)?{}:hr(Ne(t))}function Xi(t){return vl(t)||ml(t)||!!(Fe&&t&&t[Fe])}function Gi(t,e){var n=typeof t;return!!(e=null==e?j:e)&&("number"==n||"symbol"!=n&&$t.test(t))&&t>-1&&t%1==0&&t<e}function Hi(t,e,n){if(!Ol(n))return!1;var r=typeof e;return!!("number"==r?bl(n)&&Gi(e,n.length):"string"==r&&e in n)&&dl(n[e],t)}function $i(t,e){if(vl(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Il(t))||Mt.test(t)||!Tt.test(t)||null!=e&&t in ee(e)}function qi(t){var e=ji(t),n=dr[e];if("function"!=typeof n||!(e in vr.prototype))return!1;if(t===n)return!0;var r=Li(n);return!!r&&t===r[0]}(Zn&&Bi(new Zn(new ArrayBuffer(1)))!=st||Qn&&Bi(new Qn)!=K||Jn&&"[object Promise]"!=Bi(Jn.resolve())||tr&&Bi(new tr)!=nt||er&&Bi(new er)!=at)&&(Bi=function(t){var e=Qr(t),n=e==J?t.constructor:i,r=n?fa(n):"";if(r)switch(r){case ir:return st;case ar:return K;case lr:return"[object Promise]";case ur:return nt;case sr:return at}return e});var Ki=ue?Pl:Vu;function Zi(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||le)}function Qi(t){return t==t&&!Ol(t)}function Ji(t,e){return function(n){return null!=n&&n[t]===e&&(e!==i||t in ee(n))}}function ta(t,e,n){return e=Xn(e===i?t.length-1:e,0),function(){for(var o=arguments,i=-1,a=Xn(o.length-e,0),l=r(a);++i<a;)l[i]=o[e+i];i=-1;for(var u=r(e+1);++i<e;)u[i]=o[i];return u[e]=n(l),Xe(t,this,u)}}function ea(t,e){return e.length<2?t:Kr(t,No(e,0,-1))}function na(t,e){if("__proto__"!=e)return t[e]}var ra=la(So),oa=Fn||function(t,e){return Le.setTimeout(t,e)},ia=la(To);function aa(t,e,n){var r=e+"";return ia(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(Ft,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return He(W,function(n){var r="_."+n[0];e&n[1]&&!Ze(t,r)&&t.push(r)}),t.sort()}(function(t){var e=t.match(Dt);return e?e[1].split(zt):[]}(r),n)))}function la(t){var e=0,n=0;return function(){var r=Hn(),o=M-(r-n);if(n=r,o>0){if(++e>=T)return arguments[0]}else e=0;return t.apply(i,arguments)}}function ua(t,e){var n=-1,r=t.length,o=r-1;for(e=e===i?r:e;++n<e;){var a=wo(n,o),l=t[a];t[a]=t[n],t[n]=l}return t.length=e,t}var sa=function(t){var e=ll(t,function(t){return n.size===c&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Nt,function(t,n,r,o){e.push(r?o.replace(Ut,"$1"):n||t)}),e});function ca(t){if("string"==typeof t||Il(t))return t;var e=t+"";return"0"==e&&1/t==-L?"-0":e}function fa(t){if(null!=t){try{return se.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function pa(t){if(t instanceof vr)return t.clone();var e=new mr(t.__wrapped__,t.__chain__);return e.__actions__=ri(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var da=Po(function(t,e){return _l(t)?Dr(t,Yr(e,1,_l,!0)):[]}),ha=Po(function(t,e){var n=ka(e);return _l(n)&&(n=i),_l(t)?Dr(t,Yr(e,1,_l,!0),Ri(n,2)):[]}),ga=Po(function(t,e){var n=ka(e);return _l(n)&&(n=i),_l(t)?Dr(t,Yr(e,1,_l,!0),i,n):[]});function ma(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:Ul(n);return o<0&&(o=Xn(r+o,0)),ln(t,Ri(e,3),o)}function va(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r-1;return n!==i&&(o=Ul(n),o=n<0?Xn(r+o,0):Gn(o,r-1)),ln(t,Ri(e,3),o,!0)}function ya(t){return null!=t&&t.length?Yr(t,1):[]}function ba(t){return t&&t.length?t[0]:i}var _a=Po(function(t){var e=Je(t,Xo);return e.length&&e[0]===t[0]?no(e):[]}),xa=Po(function(t){var e=ka(t),n=Je(t,Xo);return e===ka(n)?e=i:n.pop(),n.length&&n[0]===t[0]?no(n,Ri(e,2)):[]}),wa=Po(function(t){var e=ka(t),n=Je(t,Xo);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?no(n,i,e):[]});function ka(t){var e=null==t?0:t.length;return e?t[e-1]:i}var Pa=Po(Ea);function Ea(t,e){return t&&t.length&&e&&e.length?_o(t,e):t}var Ca=Mi(function(t,e){var n=null==t?0:t.length,r=Lr(t,e);return xo(t,Je(e,function(t){return Gi(t,n)?+t:t}).sort(ti)),r});function Oa(t){return null==t?t:Kn.call(t)}var Sa=Po(function(t){return Do(Yr(t,1,_l,!0))}),Ta=Po(function(t){var e=ka(t);return _l(e)&&(e=i),Do(Yr(t,1,_l,!0),Ri(e,2))}),Ma=Po(function(t){var e=ka(t);return e="function"==typeof e?e:i,Do(Yr(t,1,_l,!0),i,e)});function Na(t){if(!t||!t.length)return[];var e=0;return t=Ke(t,function(t){if(_l(t))return e=Xn(t.length,e),!0}),mn(e,function(e){return Je(t,pn(e))})}function Aa(t,e){if(!t||!t.length)return[];var n=Na(t);return null==e?n:Je(n,function(t){return Xe(e,i,t)})}var La=Po(function(t,e){return _l(t)?Dr(t,e):[]}),ja=Po(function(t){return Vo(Ke(t,_l))}),Ia=Po(function(t){var e=ka(t);return _l(e)&&(e=i),Vo(Ke(t,_l),Ri(e,2))}),Ra=Po(function(t){var e=ka(t);return e="function"==typeof e?e:i,Vo(Ke(t,_l),i,e)}),Fa=Po(Na);var Da=Po(function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,Aa(t,n)});function za(t){var e=dr(t);return e.__chain__=!0,e}function Wa(t,e){return e(t)}var Ua=Mi(function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,o=function(e){return Lr(e,t)};return!(e>1||this.__actions__.length)&&r instanceof vr&&Gi(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:Wa,args:[o],thisArg:i}),new mr(r,this.__chain__).thru(function(t){return e&&!t.length&&t.push(i),t})):this.thru(o)});var Ba=ii(function(t,e,n){ce.call(t,n)?++t[n]:Ar(t,n,1)});var Va=pi(ma),Ya=pi(va);function Xa(t,e){return(vl(t)?He:zr)(t,Ri(e,3))}function Ga(t,e){return(vl(t)?$e:Wr)(t,Ri(e,3))}var Ha=ii(function(t,e,n){ce.call(t,n)?t[n].push(e):Ar(t,n,[e])});var $a=Po(function(t,e,n){var o=-1,i="function"==typeof e,a=bl(t)?r(t.length):[];return zr(t,function(t){a[++o]=i?Xe(e,t,n):ro(t,e,n)}),a}),qa=ii(function(t,e,n){Ar(t,n,e)});function Ka(t,e){return(vl(t)?Je:po)(t,Ri(e,3))}var Za=ii(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var Qa=Po(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Hi(t,e[0],e[1])?e=[]:n>2&&Hi(e[0],e[1],e[2])&&(e=[e[0]]),yo(t,Yr(e,1),[])}),Ja=Rn||function(){return Le.Date.now()};function tl(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Ei(t,P,i,i,i,i,e)}function el(t,e){var n;if("function"!=typeof e)throw new oe(u);return t=Ul(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var nl=Po(function(t,e,n){var r=v;if(n.length){var o=Sn(n,Ii(nl));r|=w}return Ei(t,r,e,n,o)}),rl=Po(function(t,e,n){var r=v|y;if(n.length){var o=Sn(n,Ii(rl));r|=w}return Ei(e,r,t,n,o)});function ol(t,e,n){var r,o,a,l,s,c,f=0,p=!1,d=!1,h=!0;if("function"!=typeof t)throw new oe(u);function g(e){var n=r,a=o;return r=o=i,f=e,l=t.apply(a,n)}function m(t){var n=t-c;return c===i||n>=e||n<0||d&&t-f>=a}function v(){var t=Ja();if(m(t))return y(t);s=oa(v,function(t){var n=e-(t-c);return d?Gn(n,a-(t-f)):n}(t))}function y(t){return s=i,h&&r?g(t):(r=o=i,l)}function b(){var t=Ja(),n=m(t);if(r=arguments,o=this,c=t,n){if(s===i)return function(t){return f=t,s=oa(v,e),p?g(t):l}(c);if(d)return s=oa(v,e),g(c)}return s===i&&(s=oa(v,e)),l}return e=Vl(e)||0,Ol(n)&&(p=!!n.leading,a=(d="maxWait"in n)?Xn(Vl(n.maxWait)||0,e):a,h="trailing"in n?!!n.trailing:h),b.cancel=function(){s!==i&&Ko(s),f=0,r=c=o=s=i},b.flush=function(){return s===i?l:y(Ja())},b}var il=Po(function(t,e){return Fr(t,1,e)}),al=Po(function(t,e,n){return Fr(t,Vl(e)||0,n)});function ll(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new oe(u);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ll.Cache||_r),n}function ul(t){if("function"!=typeof t)throw new oe(u);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}ll.Cache=_r;var sl=$o(function(t,e){var n=(e=1==e.length&&vl(e[0])?Je(e[0],vn(Ri())):Je(Yr(e,1),vn(Ri()))).length;return Po(function(r){for(var o=-1,i=Gn(r.length,n);++o<i;)r[o]=e[o].call(this,r[o]);return Xe(t,this,r)})}),cl=Po(function(t,e){var n=Sn(e,Ii(cl));return Ei(t,w,i,e,n)}),fl=Po(function(t,e){var n=Sn(e,Ii(fl));return Ei(t,k,i,e,n)}),pl=Mi(function(t,e){return Ei(t,E,i,i,i,e)});function dl(t,e){return t===e||t!=t&&e!=e}var hl=_i(Jr),gl=_i(function(t,e){return t>=e}),ml=oo(function(){return arguments}())?oo:function(t){return Sl(t)&&ce.call(t,"callee")&&!je.call(t,"callee")},vl=r.isArray,yl=ze?vn(ze):function(t){return Sl(t)&&Qr(t)==ut};function bl(t){return null!=t&&Cl(t.length)&&!Pl(t)}function _l(t){return Sl(t)&&bl(t)}var xl=Un||Vu,wl=We?vn(We):function(t){return Sl(t)&&Qr(t)==X};function kl(t){if(!Sl(t))return!1;var e=Qr(t);return e==H||e==G||"string"==typeof t.message&&"string"==typeof t.name&&!Nl(t)}function Pl(t){if(!Ol(t))return!1;var e=Qr(t);return e==$||e==q||e==V||e==tt}function El(t){return"number"==typeof t&&t==Ul(t)}function Cl(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=j}function Ol(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Sl(t){return null!=t&&"object"==typeof t}var Tl=Ue?vn(Ue):function(t){return Sl(t)&&Bi(t)==K};function Ml(t){return"number"==typeof t||Sl(t)&&Qr(t)==Z}function Nl(t){if(!Sl(t)||Qr(t)!=J)return!1;var e=Ne(t);if(null===e)return!0;var n=ce.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&se.call(n)==he}var Al=Be?vn(Be):function(t){return Sl(t)&&Qr(t)==et};var Ll=Ve?vn(Ve):function(t){return Sl(t)&&Bi(t)==nt};function jl(t){return"string"==typeof t||!vl(t)&&Sl(t)&&Qr(t)==rt}function Il(t){return"symbol"==typeof t||Sl(t)&&Qr(t)==ot}var Rl=Ye?vn(Ye):function(t){return Sl(t)&&Cl(t.length)&&!!Ce[Qr(t)]};var Fl=_i(fo),Dl=_i(function(t,e){return t<=e});function zl(t){if(!t)return[];if(bl(t))return jl(t)?An(t):ri(t);if(De&&t[De])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[De]());var e=Bi(t);return(e==K?Cn:e==nt?Tn:du)(t)}function Wl(t){return t?(t=Vl(t))===L||t===-L?(t<0?-1:1)*I:t==t?t:0:0===t?t:0}function Ul(t){var e=Wl(t),n=e%1;return e==e?n?e-n:e:0}function Bl(t){return t?jr(Ul(t),0,F):0}function Vl(t){if("number"==typeof t)return t;if(Il(t))return R;if(Ol(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ol(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(jt,"");var n=Xt.test(t);return n||Ht.test(t)?Me(t.slice(2),n?2:8):Yt.test(t)?R:+t}function Yl(t){return oi(t,iu(t))}function Xl(t){return null==t?"":Fo(t)}var Gl=ai(function(t,e){if(Zi(e)||bl(e))oi(e,ou(e),t);else for(var n in e)ce.call(e,n)&&Sr(t,n,e[n])}),Hl=ai(function(t,e){oi(e,iu(e),t)}),$l=ai(function(t,e,n,r){oi(e,iu(e),t,r)}),ql=ai(function(t,e,n,r){oi(e,ou(e),t,r)}),Kl=Mi(Lr);var Zl=Po(function(t,e){t=ee(t);var n=-1,r=e.length,o=r>2?e[2]:i;for(o&&Hi(e[0],e[1],o)&&(r=1);++n<r;)for(var a=e[n],l=iu(a),u=-1,s=l.length;++u<s;){var c=l[u],f=t[c];(f===i||dl(f,le[c])&&!ce.call(t,c))&&(t[c]=a[c])}return t}),Ql=Po(function(t){return t.push(i,Oi),Xe(lu,i,t)});function Jl(t,e,n){var r=null==t?i:Kr(t,e);return r===i?n:r}function tu(t,e){return null!=t&&Vi(t,e,eo)}var eu=gi(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=de.call(e)),t[e]=n},Ou(Mu)),nu=gi(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=de.call(e)),ce.call(t,e)?t[e].push(n):t[e]=[n]},Ri),ru=Po(ro);function ou(t){return bl(t)?kr(t):so(t)}function iu(t){return bl(t)?kr(t,!0):co(t)}var au=ai(function(t,e,n){mo(t,e,n)}),lu=ai(function(t,e,n,r){mo(t,e,n,r)}),uu=Mi(function(t,e){var n={};if(null==t)return n;var r=!1;e=Je(e,function(e){return e=Ho(e,t),r||(r=e.length>1),e}),oi(t,Ai(t),n),r&&(n=Ir(n,p|d|h,Si));for(var o=e.length;o--;)zo(n,e[o]);return n});var su=Mi(function(t,e){return null==t?{}:function(t,e){return bo(t,e,function(e,n){return tu(t,n)})}(t,e)});function cu(t,e){if(null==t)return{};var n=Je(Ai(t),function(t){return[t]});return e=Ri(e),bo(t,n,function(t,n){return e(t,n[0])})}var fu=Pi(ou),pu=Pi(iu);function du(t){return null==t?[]:yn(t,ou(t))}var hu=ci(function(t,e,n){return e=e.toLowerCase(),t+(n?gu(e):e)});function gu(t){return ku(Xl(t).toLowerCase())}function mu(t){return(t=Xl(t))&&t.replace(qt,wn).replace(be,"")}var vu=ci(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),yu=ci(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),bu=si("toLowerCase");var _u=ci(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});var xu=ci(function(t,e,n){return t+(n?" ":"")+ku(e)});var wu=ci(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),ku=si("toUpperCase");function Pu(t,e,n){return t=Xl(t),(e=n?i:e)===i?function(t){return ke.test(t)}(t)?function(t){return t.match(xe)||[]}(t):function(t){return t.match(Wt)||[]}(t):t.match(e)||[]}var Eu=Po(function(t,e){try{return Xe(t,i,e)}catch(t){return kl(t)?t:new Qt(t)}}),Cu=Mi(function(t,e){return He(e,function(e){e=ca(e),Ar(t,e,nl(t[e],t))}),t});function Ou(t){return function(){return t}}var Su=di(),Tu=di(!0);function Mu(t){return t}function Nu(t){return uo("function"==typeof t?t:Ir(t,p))}var Au=Po(function(t,e){return function(n){return ro(n,t,e)}}),Lu=Po(function(t,e){return function(n){return ro(t,n,e)}});function ju(t,e,n){var r=ou(e),o=qr(e,r);null!=n||Ol(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=qr(e,ou(e)));var i=!(Ol(n)&&"chain"in n&&!n.chain),a=Pl(t);return He(o,function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__);return(n.__actions__=ri(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,tn([this.value()],arguments))})}),t}function Iu(){}var Ru=vi(Je),Fu=vi(qe),Du=vi(rn);function zu(t){return $i(t)?pn(ca(t)):function(t){return function(e){return Kr(e,t)}}(t)}var Wu=bi(),Uu=bi(!0);function Bu(){return[]}function Vu(){return!1}var Yu=mi(function(t,e){return t+e},0),Xu=wi("ceil"),Gu=mi(function(t,e){return t/e},1),Hu=wi("floor");var $u,qu=mi(function(t,e){return t*e},1),Ku=wi("round"),Zu=mi(function(t,e){return t-e},0);return dr.after=function(t,e){if("function"!=typeof e)throw new oe(u);return t=Ul(t),function(){if(--t<1)return e.apply(this,arguments)}},dr.ary=tl,dr.assign=Gl,dr.assignIn=Hl,dr.assignInWith=$l,dr.assignWith=ql,dr.at=Kl,dr.before=el,dr.bind=nl,dr.bindAll=Cu,dr.bindKey=rl,dr.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return vl(t)?t:[t]},dr.chain=za,dr.chunk=function(t,e,n){e=(n?Hi(t,e,n):e===i)?1:Xn(Ul(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var a=0,l=0,u=r(Dn(o/e));a<o;)u[l++]=No(t,a,a+=e);return u},dr.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,o=[];++e<n;){var i=t[e];i&&(o[r++]=i)}return o},dr.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],o=t;o--;)e[o-1]=arguments[o];return tn(vl(n)?ri(n):[n],Yr(e,1))},dr.cond=function(t){var e=null==t?0:t.length,n=Ri();return t=e?Je(t,function(t){if("function"!=typeof t[1])throw new oe(u);return[n(t[0]),t[1]]}):[],Po(function(n){for(var r=-1;++r<e;){var o=t[r];if(Xe(o[0],this,n))return Xe(o[1],this,n)}})},dr.conforms=function(t){return function(t){var e=ou(t);return function(n){return Rr(n,t,e)}}(Ir(t,p))},dr.constant=Ou,dr.countBy=Ba,dr.create=function(t,e){var n=hr(t);return null==e?n:Nr(n,e)},dr.curry=function t(e,n,r){var o=Ei(e,_,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},dr.curryRight=function t(e,n,r){var o=Ei(e,x,i,i,i,i,i,n=r?i:n);return o.placeholder=t.placeholder,o},dr.debounce=ol,dr.defaults=Zl,dr.defaultsDeep=Ql,dr.defer=il,dr.delay=al,dr.difference=da,dr.differenceBy=ha,dr.differenceWith=ga,dr.drop=function(t,e,n){var r=null==t?0:t.length;return r?No(t,(e=n||e===i?1:Ul(e))<0?0:e,r):[]},dr.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?No(t,0,(e=r-(e=n||e===i?1:Ul(e)))<0?0:e):[]},dr.dropRightWhile=function(t,e){return t&&t.length?Uo(t,Ri(e,3),!0,!0):[]},dr.dropWhile=function(t,e){return t&&t.length?Uo(t,Ri(e,3),!0):[]},dr.fill=function(t,e,n,r){var o=null==t?0:t.length;return o?(n&&"number"!=typeof n&&Hi(t,e,n)&&(n=0,r=o),function(t,e,n,r){var o=t.length;for((n=Ul(n))<0&&(n=-n>o?0:o+n),(r=r===i||r>o?o:Ul(r))<0&&(r+=o),r=n>r?0:Bl(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},dr.filter=function(t,e){return(vl(t)?Ke:Vr)(t,Ri(e,3))},dr.flatMap=function(t,e){return Yr(Ka(t,e),1)},dr.flatMapDeep=function(t,e){return Yr(Ka(t,e),L)},dr.flatMapDepth=function(t,e,n){return n=n===i?1:Ul(n),Yr(Ka(t,e),n)},dr.flatten=ya,dr.flattenDeep=function(t){return null!=t&&t.length?Yr(t,L):[]},dr.flattenDepth=function(t,e){return null!=t&&t.length?Yr(t,e=e===i?1:Ul(e)):[]},dr.flip=function(t){return Ei(t,C)},dr.flow=Su,dr.flowRight=Tu,dr.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r},dr.functions=function(t){return null==t?[]:qr(t,ou(t))},dr.functionsIn=function(t){return null==t?[]:qr(t,iu(t))},dr.groupBy=Ha,dr.initial=function(t){return null!=t&&t.length?No(t,0,-1):[]},dr.intersection=_a,dr.intersectionBy=xa,dr.intersectionWith=wa,dr.invert=eu,dr.invertBy=nu,dr.invokeMap=$a,dr.iteratee=Nu,dr.keyBy=qa,dr.keys=ou,dr.keysIn=iu,dr.map=Ka,dr.mapKeys=function(t,e){var n={};return e=Ri(e,3),Hr(t,function(t,r,o){Ar(n,e(t,r,o),t)}),n},dr.mapValues=function(t,e){var n={};return e=Ri(e,3),Hr(t,function(t,r,o){Ar(n,r,e(t,r,o))}),n},dr.matches=function(t){return ho(Ir(t,p))},dr.matchesProperty=function(t,e){return go(t,Ir(e,p))},dr.memoize=ll,dr.merge=au,dr.mergeWith=lu,dr.method=Au,dr.methodOf=Lu,dr.mixin=ju,dr.negate=ul,dr.nthArg=function(t){return t=Ul(t),Po(function(e){return vo(e,t)})},dr.omit=uu,dr.omitBy=function(t,e){return cu(t,ul(Ri(e)))},dr.once=function(t){return el(2,t)},dr.orderBy=function(t,e,n,r){return null==t?[]:(vl(e)||(e=null==e?[]:[e]),vl(n=r?i:n)||(n=null==n?[]:[n]),yo(t,e,n))},dr.over=Ru,dr.overArgs=sl,dr.overEvery=Fu,dr.overSome=Du,dr.partial=cl,dr.partialRight=fl,dr.partition=Za,dr.pick=su,dr.pickBy=cu,dr.property=zu,dr.propertyOf=function(t){return function(e){return null==t?i:Kr(t,e)}},dr.pull=Pa,dr.pullAll=Ea,dr.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?_o(t,e,Ri(n,2)):t},dr.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?_o(t,e,i,n):t},dr.pullAt=Ca,dr.range=Wu,dr.rangeRight=Uu,dr.rearg=pl,dr.reject=function(t,e){return(vl(t)?Ke:Vr)(t,ul(Ri(e,3)))},dr.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,o=[],i=t.length;for(e=Ri(e,3);++r<i;){var a=t[r];e(a,r,t)&&(n.push(a),o.push(r))}return xo(t,o),n},dr.rest=function(t,e){if("function"!=typeof t)throw new oe(u);return Po(t,e=e===i?e:Ul(e))},dr.reverse=Oa,dr.sampleSize=function(t,e,n){return e=(n?Hi(t,e,n):e===i)?1:Ul(e),(vl(t)?Er:Co)(t,e)},dr.set=function(t,e,n){return null==t?t:Oo(t,e,n)},dr.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Oo(t,e,n,r)},dr.shuffle=function(t){return(vl(t)?Cr:Mo)(t)},dr.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&Hi(t,e,n)?(e=0,n=r):(e=null==e?0:Ul(e),n=n===i?r:Ul(n)),No(t,e,n)):[]},dr.sortBy=Qa,dr.sortedUniq=function(t){return t&&t.length?Io(t):[]},dr.sortedUniqBy=function(t,e){return t&&t.length?Io(t,Ri(e,2)):[]},dr.split=function(t,e,n){return n&&"number"!=typeof n&&Hi(t,e,n)&&(e=n=i),(n=n===i?F:n>>>0)?(t=Xl(t))&&("string"==typeof e||null!=e&&!Al(e))&&!(e=Fo(e))&&En(t)?qo(An(t),0,n):t.split(e,n):[]},dr.spread=function(t,e){if("function"!=typeof t)throw new oe(u);return e=null==e?0:Xn(Ul(e),0),Po(function(n){var r=n[e],o=qo(n,0,e);return r&&tn(o,r),Xe(t,this,o)})},dr.tail=function(t){var e=null==t?0:t.length;return e?No(t,1,e):[]},dr.take=function(t,e,n){return t&&t.length?No(t,0,(e=n||e===i?1:Ul(e))<0?0:e):[]},dr.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?No(t,(e=r-(e=n||e===i?1:Ul(e)))<0?0:e,r):[]},dr.takeRightWhile=function(t,e){return t&&t.length?Uo(t,Ri(e,3),!1,!0):[]},dr.takeWhile=function(t,e){return t&&t.length?Uo(t,Ri(e,3)):[]},dr.tap=function(t,e){return e(t),t},dr.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new oe(u);return Ol(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ol(t,e,{leading:r,maxWait:e,trailing:o})},dr.thru=Wa,dr.toArray=zl,dr.toPairs=fu,dr.toPairsIn=pu,dr.toPath=function(t){return vl(t)?Je(t,ca):Il(t)?[t]:ri(sa(Xl(t)))},dr.toPlainObject=Yl,dr.transform=function(t,e,n){var r=vl(t),o=r||xl(t)||Rl(t);if(e=Ri(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:Ol(t)&&Pl(i)?hr(Ne(t)):{}}return(o?He:Hr)(t,function(t,r,o){return e(n,t,r,o)}),n},dr.unary=function(t){return tl(t,1)},dr.union=Sa,dr.unionBy=Ta,dr.unionWith=Ma,dr.uniq=function(t){return t&&t.length?Do(t):[]},dr.uniqBy=function(t,e){return t&&t.length?Do(t,Ri(e,2)):[]},dr.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?Do(t,i,e):[]},dr.unset=function(t,e){return null==t||zo(t,e)},dr.unzip=Na,dr.unzipWith=Aa,dr.update=function(t,e,n){return null==t?t:Wo(t,e,Go(n))},dr.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Wo(t,e,Go(n),r)},dr.values=du,dr.valuesIn=function(t){return null==t?[]:yn(t,iu(t))},dr.without=La,dr.words=Pu,dr.wrap=function(t,e){return cl(Go(e),t)},dr.xor=ja,dr.xorBy=Ia,dr.xorWith=Ra,dr.zip=Fa,dr.zipObject=function(t,e){return Yo(t||[],e||[],Sr)},dr.zipObjectDeep=function(t,e){return Yo(t||[],e||[],Oo)},dr.zipWith=Da,dr.entries=fu,dr.entriesIn=pu,dr.extend=Hl,dr.extendWith=$l,ju(dr,dr),dr.add=Yu,dr.attempt=Eu,dr.camelCase=hu,dr.capitalize=gu,dr.ceil=Xu,dr.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=Vl(n))==n?n:0),e!==i&&(e=(e=Vl(e))==e?e:0),jr(Vl(t),e,n)},dr.clone=function(t){return Ir(t,h)},dr.cloneDeep=function(t){return Ir(t,p|h)},dr.cloneDeepWith=function(t,e){return Ir(t,p|h,e="function"==typeof e?e:i)},dr.cloneWith=function(t,e){return Ir(t,h,e="function"==typeof e?e:i)},dr.conformsTo=function(t,e){return null==e||Rr(t,e,ou(e))},dr.deburr=mu,dr.defaultTo=function(t,e){return null==t||t!=t?e:t},dr.divide=Gu,dr.endsWith=function(t,e,n){t=Xl(t),e=Fo(e);var r=t.length,o=n=n===i?r:jr(Ul(n),0,r);return(n-=e.length)>=0&&t.slice(n,o)==e},dr.eq=dl,dr.escape=function(t){return(t=Xl(t))&&Et.test(t)?t.replace(kt,kn):t},dr.escapeRegExp=function(t){return(t=Xl(t))&&Lt.test(t)?t.replace(At,"\\$&"):t},dr.every=function(t,e,n){var r=vl(t)?qe:Ur;return n&&Hi(t,e,n)&&(e=i),r(t,Ri(e,3))},dr.find=Va,dr.findIndex=ma,dr.findKey=function(t,e){return an(t,Ri(e,3),Hr)},dr.findLast=Ya,dr.findLastIndex=va,dr.findLastKey=function(t,e){return an(t,Ri(e,3),$r)},dr.floor=Hu,dr.forEach=Xa,dr.forEachRight=Ga,dr.forIn=function(t,e){return null==t?t:Xr(t,Ri(e,3),iu)},dr.forInRight=function(t,e){return null==t?t:Gr(t,Ri(e,3),iu)},dr.forOwn=function(t,e){return t&&Hr(t,Ri(e,3))},dr.forOwnRight=function(t,e){return t&&$r(t,Ri(e,3))},dr.get=Jl,dr.gt=hl,dr.gte=gl,dr.has=function(t,e){return null!=t&&Vi(t,e,to)},dr.hasIn=tu,dr.head=ba,dr.identity=Mu,dr.includes=function(t,e,n,r){t=bl(t)?t:du(t),n=n&&!r?Ul(n):0;var o=t.length;return n<0&&(n=Xn(o+n,0)),jl(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&un(t,e,n)>-1},dr.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:Ul(n);return o<0&&(o=Xn(r+o,0)),un(t,e,o)},dr.inRange=function(t,e,n){return e=Wl(e),n===i?(n=e,e=0):n=Wl(n),function(t,e,n){return t>=Gn(e,n)&&t<Xn(e,n)}(t=Vl(t),e,n)},dr.invoke=ru,dr.isArguments=ml,dr.isArray=vl,dr.isArrayBuffer=yl,dr.isArrayLike=bl,dr.isArrayLikeObject=_l,dr.isBoolean=function(t){return!0===t||!1===t||Sl(t)&&Qr(t)==Y},dr.isBuffer=xl,dr.isDate=wl,dr.isElement=function(t){return Sl(t)&&1===t.nodeType&&!Nl(t)},dr.isEmpty=function(t){if(null==t)return!0;if(bl(t)&&(vl(t)||"string"==typeof t||"function"==typeof t.splice||xl(t)||Rl(t)||ml(t)))return!t.length;var e=Bi(t);if(e==K||e==nt)return!t.size;if(Zi(t))return!so(t).length;for(var n in t)if(ce.call(t,n))return!1;return!0},dr.isEqual=function(t,e){return io(t,e)},dr.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?io(t,e,i,n):!!r},dr.isError=kl,dr.isFinite=function(t){return"number"==typeof t&&Bn(t)},dr.isFunction=Pl,dr.isInteger=El,dr.isLength=Cl,dr.isMap=Tl,dr.isMatch=function(t,e){return t===e||ao(t,e,Di(e))},dr.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,ao(t,e,Di(e),n)},dr.isNaN=function(t){return Ml(t)&&t!=+t},dr.isNative=function(t){if(Ki(t))throw new Qt(l);return lo(t)},dr.isNil=function(t){return null==t},dr.isNull=function(t){return null===t},dr.isNumber=Ml,dr.isObject=Ol,dr.isObjectLike=Sl,dr.isPlainObject=Nl,dr.isRegExp=Al,dr.isSafeInteger=function(t){return El(t)&&t>=-j&&t<=j},dr.isSet=Ll,dr.isString=jl,dr.isSymbol=Il,dr.isTypedArray=Rl,dr.isUndefined=function(t){return t===i},dr.isWeakMap=function(t){return Sl(t)&&Bi(t)==at},dr.isWeakSet=function(t){return Sl(t)&&Qr(t)==lt},dr.join=function(t,e){return null==t?"":Vn.call(t,e)},dr.kebabCase=vu,dr.last=ka,dr.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Ul(n))<0?Xn(r+o,0):Gn(o,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,o):ln(t,cn,o,!0)},dr.lowerCase=yu,dr.lowerFirst=bu,dr.lt=Fl,dr.lte=Dl,dr.max=function(t){return t&&t.length?Br(t,Mu,Jr):i},dr.maxBy=function(t,e){return t&&t.length?Br(t,Ri(e,2),Jr):i},dr.mean=function(t){return fn(t,Mu)},dr.meanBy=function(t,e){return fn(t,Ri(e,2))},dr.min=function(t){return t&&t.length?Br(t,Mu,fo):i},dr.minBy=function(t,e){return t&&t.length?Br(t,Ri(e,2),fo):i},dr.stubArray=Bu,dr.stubFalse=Vu,dr.stubObject=function(){return{}},dr.stubString=function(){return""},dr.stubTrue=function(){return!0},dr.multiply=qu,dr.nth=function(t,e){return t&&t.length?vo(t,Ul(e)):i},dr.noConflict=function(){return Le._===this&&(Le._=ge),this},dr.noop=Iu,dr.now=Ja,dr.pad=function(t,e,n){t=Xl(t);var r=(e=Ul(e))?Nn(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return yi(zn(o),n)+t+yi(Dn(o),n)},dr.padEnd=function(t,e,n){t=Xl(t);var r=(e=Ul(e))?Nn(t):0;return e&&r<e?t+yi(e-r,n):t},dr.padStart=function(t,e,n){t=Xl(t);var r=(e=Ul(e))?Nn(t):0;return e&&r<e?yi(e-r,n)+t:t},dr.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),$n(Xl(t).replace(It,""),e||0)},dr.random=function(t,e,n){if(n&&"boolean"!=typeof n&&Hi(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=Wl(t),e===i?(e=t,t=0):e=Wl(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var o=qn();return Gn(t+o*(e-t+Te("1e-"+((o+"").length-1))),e)}return wo(t,e)},dr.reduce=function(t,e,n){var r=vl(t)?en:hn,o=arguments.length<3;return r(t,Ri(e,4),n,o,zr)},dr.reduceRight=function(t,e,n){var r=vl(t)?nn:hn,o=arguments.length<3;return r(t,Ri(e,4),n,o,Wr)},dr.repeat=function(t,e,n){return e=(n?Hi(t,e,n):e===i)?1:Ul(e),ko(Xl(t),e)},dr.replace=function(){var t=arguments,e=Xl(t[0]);return t.length<3?e:e.replace(t[1],t[2])},dr.result=function(t,e,n){var r=-1,o=(e=Ho(e,t)).length;for(o||(o=1,t=i);++r<o;){var a=null==t?i:t[ca(e[r])];a===i&&(r=o,a=n),t=Pl(a)?a.call(t):a}return t},dr.round=Ku,dr.runInContext=t,dr.sample=function(t){return(vl(t)?Pr:Eo)(t)},dr.size=function(t){if(null==t)return 0;if(bl(t))return jl(t)?Nn(t):t.length;var e=Bi(t);return e==K||e==nt?t.size:so(t).length},dr.snakeCase=_u,dr.some=function(t,e,n){var r=vl(t)?rn:Ao;return n&&Hi(t,e,n)&&(e=i),r(t,Ri(e,3))},dr.sortedIndex=function(t,e){return Lo(t,e)},dr.sortedIndexBy=function(t,e,n){return jo(t,e,Ri(n,2))},dr.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=Lo(t,e);if(r<n&&dl(t[r],e))return r}return-1},dr.sortedLastIndex=function(t,e){return Lo(t,e,!0)},dr.sortedLastIndexBy=function(t,e,n){return jo(t,e,Ri(n,2),!0)},dr.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=Lo(t,e,!0)-1;if(dl(t[n],e))return n}return-1},dr.startCase=xu,dr.startsWith=function(t,e,n){return t=Xl(t),n=null==n?0:jr(Ul(n),0,t.length),e=Fo(e),t.slice(n,n+e.length)==e},dr.subtract=Zu,dr.sum=function(t){return t&&t.length?gn(t,Mu):0},dr.sumBy=function(t,e){return t&&t.length?gn(t,Ri(e,2)):0},dr.template=function(t,e,n){var r=dr.templateSettings;n&&Hi(t,e,n)&&(e=i),t=Xl(t),e=$l({},e,r,Ci);var o,a,l=$l({},e.imports,r.imports,Ci),u=ou(l),s=yn(l,u),c=0,f=e.interpolate||Kt,p="__p += '",d=ne((e.escape||Kt).source+"|"+f.source+"|"+(f===St?Bt:Kt).source+"|"+(e.evaluate||Kt).source+"|$","g"),h="//# sourceURL="+("sourceURL"in e?e.sourceURL:"lodash.templateSources["+ ++Ee+"]")+"\n";t.replace(d,function(e,n,r,i,l,u){return r||(r=i),p+=t.slice(c,u).replace(Zt,Pn),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),l&&(a=!0,p+="';\n"+l+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+e.length,e}),p+="';\n";var g=e.variable;g||(p="with (obj) {\n"+p+"\n}\n"),p=(a?p.replace(bt,""):p).replace(_t,"$1").replace(xt,"$1;"),p="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")+p+"return __p\n}";var m=Eu(function(){return Jt(u,h+"return "+p).apply(i,s)});if(m.source=p,kl(m))throw m;return m},dr.times=function(t,e){if((t=Ul(t))<1||t>j)return[];var n=F,r=Gn(t,F);e=Ri(e),t-=F;for(var o=mn(r,e);++n<t;)e(n);return o},dr.toFinite=Wl,dr.toInteger=Ul,dr.toLength=Bl,dr.toLower=function(t){return Xl(t).toLowerCase()},dr.toNumber=Vl,dr.toSafeInteger=function(t){return t?jr(Ul(t),-j,j):0===t?t:0},dr.toString=Xl,dr.toUpper=function(t){return Xl(t).toUpperCase()},dr.trim=function(t,e,n){if((t=Xl(t))&&(n||e===i))return t.replace(jt,"");if(!t||!(e=Fo(e)))return t;var r=An(t),o=An(e);return qo(r,_n(r,o),xn(r,o)+1).join("")},dr.trimEnd=function(t,e,n){if((t=Xl(t))&&(n||e===i))return t.replace(Rt,"");if(!t||!(e=Fo(e)))return t;var r=An(t);return qo(r,0,xn(r,An(e))+1).join("")},dr.trimStart=function(t,e,n){if((t=Xl(t))&&(n||e===i))return t.replace(It,"");if(!t||!(e=Fo(e)))return t;var r=An(t);return qo(r,_n(r,An(e))).join("")},dr.truncate=function(t,e){var n=O,r=S;if(Ol(e)){var o="separator"in e?e.separator:o;n="length"in e?Ul(e.length):n,r="omission"in e?Fo(e.omission):r}var a=(t=Xl(t)).length;if(En(t)){var l=An(t);a=l.length}if(n>=a)return t;var u=n-Nn(r);if(u<1)return r;var s=l?qo(l,0,u).join(""):t.slice(0,u);if(o===i)return s+r;if(l&&(u+=s.length-u),Al(o)){if(t.slice(u).search(o)){var c,f=s;for(o.global||(o=ne(o.source,Xl(Vt.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var p=c.index;s=s.slice(0,p===i?u:p)}}else if(t.indexOf(Fo(o),u)!=u){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+r},dr.unescape=function(t){return(t=Xl(t))&&Pt.test(t)?t.replace(wt,Ln):t},dr.uniqueId=function(t){var e=++fe;return Xl(t)+e},dr.upperCase=wu,dr.upperFirst=ku,dr.each=Xa,dr.eachRight=Ga,dr.first=ba,ju(dr,($u={},Hr(dr,function(t,e){ce.call(dr.prototype,e)||($u[e]=t)}),$u),{chain:!1}),dr.VERSION="4.17.11",He(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){dr[t].placeholder=dr}),He(["drop","take"],function(t,e){vr.prototype[t]=function(n){n=n===i?1:Xn(Ul(n),0);var r=this.__filtered__&&!e?new vr(this):this.clone();return r.__filtered__?r.__takeCount__=Gn(n,r.__takeCount__):r.__views__.push({size:Gn(n,F),type:t+(r.__dir__<0?"Right":"")}),r},vr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}}),He(["filter","map","takeWhile"],function(t,e){var n=e+1,r=n==N||3==n;vr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Ri(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}}),He(["head","last"],function(t,e){var n="take"+(e?"Right":"");vr.prototype[t]=function(){return this[n](1).value()[0]}}),He(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");vr.prototype[t]=function(){return this.__filtered__?new vr(this):this[n](1)}}),vr.prototype.compact=function(){return this.filter(Mu)},vr.prototype.find=function(t){return this.filter(t).head()},vr.prototype.findLast=function(t){return this.reverse().find(t)},vr.prototype.invokeMap=Po(function(t,e){return"function"==typeof t?new vr(this):this.map(function(n){return ro(n,t,e)})}),vr.prototype.reject=function(t){return this.filter(ul(Ri(t)))},vr.prototype.slice=function(t,e){t=Ul(t);var n=this;return n.__filtered__&&(t>0||e<0)?new vr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=Ul(e))<0?n.dropRight(-e):n.take(e-t)),n)},vr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},vr.prototype.toArray=function(){return this.take(F)},Hr(vr.prototype,function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),o=dr[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);o&&(dr.prototype[e]=function(){var e=this.__wrapped__,l=r?[1]:arguments,u=e instanceof vr,s=l[0],c=u||vl(e),f=function(t){var e=o.apply(dr,tn([t],l));return r&&p?e[0]:e};c&&n&&"function"==typeof s&&1!=s.length&&(u=c=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,g=u&&!d;if(!a&&c){e=g?e:new vr(this);var m=t.apply(e,l);return m.__actions__.push({func:Wa,args:[f],thisArg:i}),new mr(m,p)}return h&&g?t.apply(this,l):(m=this.thru(f),h?r?m.value()[0]:m.value():m)})}),He(["pop","push","shift","sort","splice","unshift"],function(t){var e=ie[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);dr.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply(vl(o)?o:[],t)}return this[n](function(n){return e.apply(vl(n)?n:[],t)})}}),Hr(vr.prototype,function(t,e){var n=dr[e];if(n){var r=n.name+"";(or[r]||(or[r]=[])).push({name:e,func:n})}}),or[hi(i,y).name]=[{name:"wrapper",func:i}],vr.prototype.clone=function(){var t=new vr(this.__wrapped__);return t.__actions__=ri(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ri(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ri(this.__views__),t},vr.prototype.reverse=function(){if(this.__filtered__){var t=new vr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},vr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=vl(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=Gn(e,t+a);break;case"takeRight":t=Xn(t,e-a)}}return{start:t,end:e}}(0,o,this.__views__),a=i.start,l=i.end,u=l-a,s=r?l:a-1,c=this.__iteratees__,f=c.length,p=0,d=Gn(u,this.__takeCount__);if(!n||!r&&o==u&&d==u)return Bo(t,this.__actions__);var h=[];t:for(;u--&&p<d;){for(var g=-1,m=t[s+=e];++g<f;){var v=c[g],y=v.iteratee,b=v.type,_=y(m);if(b==A)m=_;else if(!_){if(b==N)continue t;break t}}h[p++]=m}return h},dr.prototype.at=Ua,dr.prototype.chain=function(){return za(this)},dr.prototype.commit=function(){return new mr(this.value(),this.__chain__)},dr.prototype.next=function(){this.__values__===i&&(this.__values__=zl(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},dr.prototype.plant=function(t){for(var e,n=this;n instanceof gr;){var r=pa(n);r.__index__=0,r.__values__=i,e?o.__wrapped__=r:e=r;var o=r;n=n.__wrapped__}return o.__wrapped__=t,e},dr.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof vr){var e=t;return this.__actions__.length&&(e=new vr(this)),(e=e.reverse()).__actions__.push({func:Wa,args:[Oa],thisArg:i}),new mr(e,this.__chain__)}return this.thru(Oa)},dr.prototype.toJSON=dr.prototype.valueOf=dr.prototype.value=function(){return Bo(this.__wrapped__,this.__actions__)},dr.prototype.first=dr.prototype.head,De&&(dr.prototype[De]=function(){return this}),dr}();Le._=jn,(o=function(){return jn}.call(e,n,e,r))===i||(r.exports=o)}).call(this)}).call(this,n(7),n(18)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";var r=n(20);function o(){}t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var l=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 l.name="Invariant Violation",l}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=o,n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r=n(22);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(5)(!1)).push([t.i,"#nodeList {\n background: #333333;\n height: 100%;\n margin: 0;\n padding: 0;\n display: grid;\n width: 200px;\n overflow: hidden; }\n #nodeList .pane {\n color: white;\n overflow-x: hidden;\n overflow-y: auto;\n height: 100%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n #nodeList .pane .underline {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.5); }\n #nodeList .pane .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch; }\n #nodeList .pane .buttonLine button {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9; }\n #nodeList .pane .buttonLine button:hover {\n opacity: 1.0; }\n #nodeList .pane .buttonLine button:active {\n background: #282828; }\n #nodeList .pane .buttonLine button:focus {\n border: 1px solid #337ab7;\n outline: 0px; }\n #nodeList .pane .paneContainer {\n margin-top: 3px;\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 100%; }\n #nodeList .pane .paneContainer .paneList {\n border-left: 3px solid transparent; }\n #nodeList .pane .paneContainer:hover .paneList {\n border-left: 3px solid rgba(51, 122, 183, 0.8); }\n #nodeList .pane .paneContainer:hover .paneContainer-content .header .title {\n border-left: 3px solid #337ab7; }\n #nodeList .pane .paneContainer .paneContainer-content {\n grid-row: 1;\n grid-column: 1; }\n #nodeList .pane .paneContainer .paneContainer-content .header {\n display: grid;\n grid-template-columns: 1fr auto;\n background: #555555;\n height: 30px;\n padding-right: 5px;\n cursor: pointer; }\n #nodeList .pane .paneContainer .paneContainer-content .header .title {\n border-left: 3px solid transparent;\n padding-left: 5px;\n grid-column: 1;\n display: flex;\n align-items: center; }\n #nodeList .pane .paneContainer .paneContainer-content .header .collapse {\n grid-column: 2;\n display: flex;\n align-items: center;\n justify-items: center;\n transform-origin: center; }\n #nodeList .pane .paneContainer .paneContainer-content .header .collapse.closed {\n transform: rotate(180deg); }\n #nodeList .pane .paneContainer .paneContainer-content .paneList > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n #nodeList .pane .paneContainer .paneContainer-content .fragment > div:not(:last-child) {\n border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }\n",""])},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,r=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var o,i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?t:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(t,e,n){var r=n(25);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(5)(!1)).push([t.i,'#propertyTab {\n padding: 5px;\n color: white; }\n #propertyTab .vector3Line {\n padding-left: 2px;\n display: grid; }\n #propertyTab .vector3Line .firstLine {\n display: grid;\n grid-template-columns: 1fr auto 20px;\n height: 30px; }\n #propertyTab .vector3Line .firstLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .vector3Line .firstLine .vector {\n grid-column: 2;\n display: flex;\n align-items: center;\n text-align: right;\n opacity: 0.8; }\n #propertyTab .vector3Line .firstLine .expand {\n grid-column: 3;\n display: grid;\n align-items: center;\n justify-items: center;\n cursor: pointer; }\n #propertyTab .vector3Line .secondLine {\n display: grid;\n padding-right: 5px;\n border-left: 1px solid #337ab7; }\n #propertyTab .vector3Line .secondLine .numeric {\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .vector3Line .secondLine .numeric-label {\n text-align: right;\n grid-column: 1;\n display: flex;\n align-items: center;\n justify-self: right;\n margin-right: 10px; }\n #propertyTab .vector3Line .secondLine .numeric-value {\n width: 120px;\n grid-column: 2;\n display: flex;\n align-items: center;\n border: 1px solid #337ab7; }\n #propertyTab .buttonLine {\n height: 30px;\n display: grid;\n align-items: center;\n justify-items: stretch; }\n #propertyTab .buttonLine input[type="file"] {\n display: none; }\n #propertyTab .buttonLine .file-upload {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9;\n cursor: pointer;\n text-align: center; }\n #propertyTab .buttonLine .file-upload:hover {\n opacity: 1.0; }\n #propertyTab .buttonLine .file-upload:active {\n transform: scale(0.98);\n transform-origin: 0.5 0.5; }\n #propertyTab .buttonLine button {\n background: #222222;\n border: 1px solid #337ab7;\n margin: 5px 10px 5px 10px;\n color: white;\n padding: 4px 5px;\n opacity: 0.9; }\n #propertyTab .buttonLine button:hover {\n opacity: 1.0; }\n #propertyTab .buttonLine button:active {\n background: #282828; }\n #propertyTab .buttonLine button:focus {\n border: 1px solid #337ab7;\n outline: 0px; }\n',""])},function(t,e,n){var r=n(27);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(5)(!1)).push([t.i,".srd-diagram{position:relative;flex-grow:1;display:flex;cursor:move;overflow:hidden}.srd-diagram__selector{position:absolute;background-color:rgba(0,192,255,0.2);border:solid 2px #00c0ff}.srd-link-layer{position:absolute;height:100%;width:100%;transform-origin:0 0;overflow:visible !important;top:0;bottom:0;left:0;right:0}.srd-node-layer{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;transform-origin:0 0;width:100%;height:100%}.srd-node{position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:move;pointer-events:all}.srd-node--selected>*{border-color:#00c0ff !important}.srd-port{width:15px;height:15px;background:rgba(255,255,255,0.1)}.srd-port:hover,.srd-port.selected{background:#c0ff00}.srd-default-node{background-color:#1e1e1e;border-radius:5px;font-family:sans-serif;color:white;border:solid 2px black;overflow:visible;font-size:11px}.srd-default-node__title{background:rgba(0,0,0,0.3);display:flex;white-space:nowrap}.srd-default-node__title>*{align-self:center}.srd-default-node__title .fa{padding:5px;opacity:0.2;cursor:pointer}.srd-default-node__title .fa:hover{opacity:1.0}.srd-default-node__name{flex-grow:1;padding:5px 5px}.srd-default-node__ports{display:flex;background-image:linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.2))}.srd-default-node__in,.srd-default-node__out{flex-grow:1;display:flex;flex-direction:column}.srd-default-port{display:flex;margin-top:1px}.srd-default-port>*{align-self:center}.srd-default-port__name{padding:0 5px}.srd-default-port--out{justify-content:flex-end}.srd-default-port--out .srd-default-port__name{justify-content:flex-end;text-align:right}.srd-default-label{background:rgba(70,70,70,0.8);border:1px solid #333;border-radius:4px;color:#fff;display:inline-block;font-size:smaller;padding:5px}@keyframes dash{from{stroke-dashoffset:24}to{stroke-dashoffset:0}}.srd-default-link path{fill:none;pointer-events:all}.srd-default-link--path-selected{stroke:#00c0ff !important;stroke-dasharray:10,2;animation:dash 1s linear infinite}.srd-default-link__label{pointer-events:none}.srd-default-link__label>div{display:inline-block;position:absolute}.srd-default-link__point{fill:rgba(255,255,255,0.5)}.srd-default-link--point-selected{fill:#00c0ff}\n",""])},function(t,e,n){var r=n(29);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(5)(!1)).push([t.i,'#node-editor-graph-root {\n display: grid;\n grid-template-rows: 100%;\n grid-template-columns: 200px calc(100% - 500px) 300px;\n height: 100%;\n width: 100%;\n background: #464646;\n font: 14px "acumin-pro"; }\n\n#nodeList {\n grid-row: 1;\n grid-column: 1; }\n\n.diagram-container {\n grid-row: 1;\n grid-column: 2;\n background: #222222; }\n\n#propertyTab {\n grid-row: 1;\n grid-column: 3; }\n',""])},function(t,e,n){var r=n(31);"string"==typeof r&&(r=[[t.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(t.exports=r.locals)},function(t,e,n){(t.exports=n(5)(!1)).push([t.i,".diagramBlock {\n background: white;\n width: 200px;\n border: 4px solid black; }\n .diagramBlock.input {\n background: green;\n color: white; }\n .diagramBlock.output {\n background: blue;\n color: white; }\n .diagramBlock.output .inputs {\n color: white; }\n .diagramBlock .header {\n margin: 10px; }\n .diagramBlock .header .header-labels {\n font-size: 16px;\n text-align: center; }\n .diagramBlock .inputs .input-port {\n display: grid;\n grid-template-columns: 4px calc(100% - 4px);\n grid-template-rows: 100%; }\n .diagramBlock .inputs .input-port .input-port-plug {\n grid-column: 1;\n grid-row: 1;\n display: grid;\n align-content: center;\n margin-left: -11px; }\n .diagramBlock .inputs .input-port .input-port-plug .srd-port {\n background: grey; }\n .diagramBlock .inputs .input-port .input-port-label {\n margin-left: 10px;\n grid-column: 2;\n grid-row: 1;\n margin-bottom: 2px; }\n .diagramBlock .outputs .output-port {\n display: grid;\n grid-template-columns: calc(100% - 4px) 4px;\n grid-template-rows: 100%; }\n .diagramBlock .outputs .output-port .output-port-plug {\n grid-column: 2;\n grid-row: 1;\n display: grid;\n align-content: center; }\n .diagramBlock .outputs .output-port .output-port-plug .srd-port {\n background: grey; }\n .diagramBlock .outputs .output-port .output-port-label {\n text-align: right;\n margin-right: 10px;\n grid-column: 1;\n grid-row: 1;\n margin-bottom: 2px; }\n",""])}])});
|