1234567891011121314151617181920212223242526272829303132333435363738394041 |
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babylonjs")):"function"==typeof define&&define.amd?define("babylonjs-node-editor",["babylonjs"],t):"object"==typeof exports?exports["babylonjs-node-editor"]=t(require("babylonjs")):e.NODEEDITOR=t(e.BABYLON)}("undefined"!=typeof self?self:"undefined"!=typeof global?global:this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=12)}([function(e,t,n){"use strict";e.exports=n(13)},function(t,n){t.exports=e},function(e,t,n){e.exports=n(19)()},function(e,t,n){var r;window,r=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=45)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports={Always:1,Never:2,IfAtMostOneObstacle:3,OnlyWhenNoObstacles:4}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t,n){var r=e.call(this,n)||this;return r.className=t,r}return o(t,e),t.prototype.bem=function(e){return(this.props.baseClass||this.className)+e+" "},t.prototype.getClassName=function(){return(this.props.baseClass||this.className)+" "+(this.props.className?this.props.className+" ":"")},t.prototype.getProps=function(){return i({},this.props.extraProps||{},{className:this.getClassName()})},t}(n(1).Component);t.BaseWidget=a},function(e,t){function n(e){for(var t=[[e.x,e.y]];e.parent;)e=e.parent,t.push([e.x,e.y]);return t.reverse()}function r(e,t,n,r){var o,i,a,l,u,s,c=Math.abs,f=[];for(o=e<n?1:-1,i=t<r?1:-1,u=(a=c(n-e))-(l=c(r-t));f.push([e,t]),e!==n||t!==r;)(s=2*u)>-l&&(u-=l,e+=o),s<a&&(u+=a,t+=i);return f}t.backtrace=n,t.biBacktrace=function(e,t){var r=n(e),o=n(t);return r.concat(o.reverse())},t.pathLength=function(e){var t,n,r,o,i,a=0;for(t=1;t<e.length;++t)n=e[t-1],r=e[t],o=n[0]-r[0],i=n[1]-r[1],a+=Math.sqrt(o*o+i*i);return a},t.interpolate=r,t.expandPath=function(e){var t,n,o,i,a,l,u=[],s=e.length;if(s<2)return u;for(a=0;a<s-1;++a)for(t=e[a],n=e[a+1],i=(o=r(t[0],t[1],n[0],n[1])).length,l=0;l<i-1;++l)u.push(o[l]);return u.push(e[s-1]),u},t.smoothenPath=function(e,t){var n,o,i,a,l,u,s,c,f,p=t.length,d=t[0][0],h=t[0][1],m=t[p-1][0],g=t[p-1][1];for(i=[[n=d,o=h]],a=2;a<p;++a){for(s=r(n,o,(u=t[a])[0],u[1]),f=!1,l=1;l<s.length;++l)if(c=s[l],!e.isWalkableAt(c[0],c[1])){f=!0;break}f&&(lastValidCoord=t[a-1],i.push(lastValidCoord),n=lastValidCoord[0],o=lastValidCoord[1])}return i.push([m,g]),i},t.compressPath=function(e){if(e.length<3)return e;var t,n,r,o,i,a,l=[],u=e[0][0],s=e[0][1],c=e[1][0],f=e[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<e.length;a++)t=c,n=f,r=p,o=d,p=(c=e[a][0])-t,d=(f=e[a][1])-n,d/=i=Math.sqrt(p*p+d*d),(p/=i)===r&&d===o||l.push([t,n]);return l.push([c,f]),l}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),a=n(0),l=function(e){function t(t,n){var r=e.call(this)||this;return r.x=n.x,r.y=n.y,r.parent=t,r}return o(t,e),t.prototype.getSelectedEntities=function(){return e.prototype.isSelected.call(this)&&!this.isConnectedToPort()?[this]:[]},t.prototype.isConnectedToPort=function(){return null!==this.parent.getPortForPoint(this)},t.prototype.getLink=function(){return this.getParent()},t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.x=t.x,this.y=t.y},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{x:this.x,y:this.y})},t.prototype.remove=function(){this.parent&&this.parent.removePoint(this),e.prototype.remove.call(this)},t.prototype.updateLocation=function(e){this.x=e.x,this.y=e.y},t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t.prototype.isLocked=function(){return e.prototype.isLocked.call(this)||this.getParent().isLocked()},t}(i.BaseModel);t.PointModel=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(13),l=n(0),u=function(e){function t(t,n){var r=e.call(this,n)||this;return r.type=t,r.selected=!1,r}return o(t,e),t.prototype.getParent=function(){return this.parent},t.prototype.setParent=function(e){this.parent=e},t.prototype.getSelectedEntities=function(){return this.isSelected()?[this]:[]},t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.type=t.type,this.selected=t.selected},t.prototype.serialize=function(){return l.merge(e.prototype.serialize.call(this),{type:this.type,selected:this.selected})},t.prototype.getType=function(){return this.type},t.prototype.getID=function(){return this.id},t.prototype.isSelected=function(){return this.selected},t.prototype.setSelected=function(e){void 0===e&&(e=!0),this.selected=e,this.iterateListeners(function(t,n){t.selectionChanged&&t.selectionChanged(i({},n,{isSelected:e}))})},t.prototype.remove=function(){this.iterateListeners(function(e,t){e.entityRemoved&&e.entityRemoved(t)})},t}(a.BaseEntity);t.BaseModel=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(70),o=n(16),i=n(51),a=function(){function e(){}return e.UID=function(){return e.TESTING?(e.TESTING_UID++,""+e.TESTING_UID):"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},e.closest=function(e,t){return document.body.closest?e.closest(t):r(e,t)},e.generateLinePath=function(e,t){return"M"+e.x+","+e.y+" L "+t.x+","+t.y},e.generateCurvePath=function(e,t,n){void 0===n&&(n=0);var r=Math.abs(e.x-t.x)>Math.abs(e.y-t.y),o=r?n:0,i=r?0:n;return"M"+e.x+","+e.y+" C "+(e.x+o)+","+(e.y+i)+"\n "+(t.x-o)+","+(t.y-i)+" "+t.x+","+t.y},e.generateDynamicPath=function(e){var t=i();return t=t.moveto(e[0][0]*o.ROUTING_SCALING_FACTOR,e[0][1]*o.ROUTING_SCALING_FACTOR),e.slice(1).forEach(function(e){t=t.lineto(e[0]*o.ROUTING_SCALING_FACTOR,e[1]*o.ROUTING_SCALING_FACTOR)}),t.print()},e.TESTING=!1,e.TESTING_UID=0,e}();t.Toolkit=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.type=e}return e.prototype.getType=function(){return this.type},e}();t.AbstractFactory=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),a=n(0),l=function(e){function t(t,n){void 0===t&&(t="default");var r=e.call(this,t,n)||this;return r.x=0,r.y=0,r.extras={},r.ports={},r}return o(t,e),t.prototype.setPosition=function(e,t){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+e-n,a.y=a.y+t-r})}),this.x=e,this.y=t},t.prototype.getSelectedEntities=function(){var t=e.prototype.getSelectedEntities.call(this);return this.isSelected()&&a.forEach(this.ports,function(e){t=t.concat(a.map(e.getLinks(),function(t){return t.getPointForPort(e)}))}),t},t.prototype.deSerialize=function(t,n){var r=this;e.prototype.deSerialize.call(this,t,n),this.x=t.x,this.y=t.y,this.extras=t.extras,a.forEach(t.ports,function(e){var t=n.getPortFactory(e.type).getNewInstance();t.deSerialize(e,n),r.addPort(t)})},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{x:this.x,y:this.y,extras:this.extras,ports:a.map(this.ports,function(e){return e.serialize()})})},t.prototype.doClone=function(e,t){void 0===e&&(e={}),t.ports={},a.forEach(this.ports,function(n){t.addPort(n.clone(e))})},t.prototype.remove=function(){e.prototype.remove.call(this),a.forEach(this.ports,function(e){a.forEach(e.getLinks(),function(e){e.remove()})})},t.prototype.getPortFromID=function(e){for(var t in this.ports)if(this.ports[t].id===e)return this.ports[t];return null},t.prototype.getPort=function(e){return this.ports[e]},t.prototype.getPorts=function(){return this.ports},t.prototype.removePort=function(e){this.ports[e.name]&&(this.ports[e.name].setParent(null),delete this.ports[e.name])},t.prototype.addPort=function(e){return e.setParent(this),this.ports[e.name]=e,e},t.prototype.updateDimensions=function(e){var t=e.width,n=e.height;this.width=t,this.height=n},t}(i.BaseModel);t.NodeModel=l},function(e,t){e.exports={manhattan:function(e,t){return e+t},euclidean:function(e,t){return Math.sqrt(e*e+t*t)},octile:function(e,t){var n=Math.SQRT2-1;return e<t?n*e+t:n*t+e},chebyshev:function(e,t){return Math.max(e,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){this.mouseX=e,this.mouseY=t,this.ms=(new Date).getTime()}}();t.BaseAction=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),a=n(0),l=function(e){function t(t,n,r,o){var i=e.call(this,n,r)||this;return i.name=t,i.links={},i.maximumLinks=o,i}return o(t,e),t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.name=t.name,this.maximumLinks=t.maximumLinks},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{name:this.name,parentNode:this.parent.id,links:a.map(this.links,function(e){return e.id}),maximumLinks:this.maximumLinks})},t.prototype.doClone=function(e,t){void 0===e&&(e={}),t.links={},t.parentNode=this.getParent().clone(e)},t.prototype.getNode=function(){return this.getParent()},t.prototype.getName=function(){return this.name},t.prototype.getMaximumLinks=function(){return this.maximumLinks},t.prototype.setMaximumLinks=function(e){this.maximumLinks=e},t.prototype.removeLink=function(e){delete this.links[e.getID()]},t.prototype.addLink=function(e){this.links[e.getID()]=e},t.prototype.getLinks=function(){return this.links},t.prototype.createLinkModel=function(){if(a.isFinite(this.maximumLinks)){var e=a.size(this.links);if(1===this.maximumLinks&&e>=1)return a.values(this.links)[0];if(e>=this.maximumLinks)return null}return null},t.prototype.updateCoords=function(e){var t=e.x,n=e.y,r=e.width,o=e.height;this.x=t,this.y=n,this.width=r,this.height=o},t.prototype.canLinkToPort=function(e){return!0},t.prototype.isLocked=function(){return e.prototype.isLocked.call(this)||this.getParent().isLocked()},t}(i.BaseModel);t.PortModel=l},function(e,t,n){"use strict";var r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),i=n(0),a=function(){function e(e){this.listeners={},this.id=e||o.Toolkit.UID(),this.locked=!1}return e.prototype.getID=function(){return this.id},e.prototype.doClone=function(e,t){void 0===e&&(e={})},e.prototype.clone=function(e){if(void 0===e&&(e={}),e[this.id])return e[this.id];var t=i.clone(this);return t.id=o.Toolkit.UID(),t.clearListeners(),e[this.id]=t,this.doClone(e,t),t},e.prototype.clearListeners=function(){this.listeners={}},e.prototype.deSerialize=function(e,t){this.id=e.id},e.prototype.serialize=function(){return{id:this.id}},e.prototype.iterateListeners=function(e){var t={id:o.Toolkit.UID(),firing:!0,entity:this,stopPropagation:function(){t.firing=!1}};for(var n in this.listeners)if(this.listeners.hasOwnProperty(n)){if(!t.firing)return;e(this.listeners[n],t)}},e.prototype.removeListener=function(e){return!!this.listeners[e]&&(delete this.listeners[e],!0)},e.prototype.addListener=function(e){var t=o.Toolkit.UID();return this.listeners[t]=e,t},e.prototype.isLocked=function(){return this.locked},e.prototype.setLocked=function(e){void 0===e&&(e=!0),this.locked=e,this.iterateListeners(function(t,n){t.lockChanged&&t.lockChanged(r({},n,{locked:e}))})},e}();t.BaseEntity=a},function(e,t,n){var r=n(15),o=n(4),i=n(10);n(2);function a(e){e=e||{},this.heuristic=e.heuristic||i.manhattan,this.trackJumpRecursion=e.trackJumpRecursion||!1}a.prototype.findPath=function(e,t,n,i,a){var l,u=this.openList=new r(function(e,t){return e.f-t.f}),s=this.startNode=a.getNodeAt(e,t),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(e){var t,n,r,o,a,l,u,s,c,f,p=this.grid,d=this.heuristic,h=this.openList,m=this.endNode.x,g=this.endNode.y,v=e.x,y=e.y,b=Math.abs;Math.max;for(o=0,a=(t=this._findNeighbors(e)).length;o<a;++o)if(n=t[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=e.g+s,(!f.opened||c<f.g)&&(f.g=c,f.h=f.h||d(b(l-m),b(u-g)),f.f=f.g+f.h,f.parent=e,f.opened?h.updateItem(f):(h.push(f),f.opened=!0))}},e.exports=a},function(e,t,n){e.exports=n(66)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(68);t.ROUTING_SCALING_FACTOR=5;var o=new r.JumpPointFinder({heuristic:r.Heuristic.manhattan,diagonalMovement:r.DiagonalMovement.Never}),i=function(){function e(e){this.instance=o,this.diagramEngine=e}return e.prototype.calculateDirectPath=function(e,n){var i=this.diagramEngine.getCanvasMatrix(),a=new r.Grid(i);return o.findPath(this.diagramEngine.translateRoutingX(Math.floor(e.x/t.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingY(Math.floor(e.y/t.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingX(Math.floor(n.x/t.ROUTING_SCALING_FACTOR)),this.diagramEngine.translateRoutingY(Math.floor(n.y/t.ROUTING_SCALING_FACTOR)),a)},e.prototype.calculateLinkStartEndCoords=function(e,t){var n=t.findIndex(function(t){return 0===e[t[1]][t[0]]}),r=t.length-1-t.slice().reverse().findIndex(function(t){return 0===e[t[1]][t[0]]});if(-1!==n&&-1!==r){var o=t.slice(0,n),i=t.slice(r);return{start:{x:t[n][0],y:t[n][1]},end:{x:t[r][0],y:t[r][1]},pathToStart:o,pathToEnd:i}}},e.prototype.calculateDynamicPath=function(e,t,n,i,a){var l=this,u=new r.Grid(e),s=o.findPath(t.x,t.y,n.x,n.y,u),c=i.concat(s,a).map(function(e){return[l.diagramEngine.translateRoutingX(e[0],!0),l.diagramEngine.translateRoutingY(e[1],!0)]});return r.Util.compressPath(c)},e}();t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),a=n(0),l=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.offsetX=0,r.offsetY=0,r}return o(t,e),t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.offsetX=t.offsetX,this.offsetY=t.offsetY},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{offsetX:this.offsetX,offsetY:this.offsetY})},t}(i.BaseModel);t.LabelModel=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(0),l=function(e){function t(){var t=e.call(this,"default")||this;return t.offsetY=-23,t}return o(t,e),t.prototype.setLabel=function(e){this.label=e},t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.label=t.label},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{label:this.label})},t}(i.LabelModel);t.DefaultLabelModel=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(21),l=n(0),u=n(18),s=n(17),c=function(e){function t(t){void 0===t&&(t="default");var n=e.call(this,t)||this;return n.color="rgba(255,255,255,0.5)",n.width=3,n.curvyness=50,n}return o(t,e),t.prototype.serialize=function(){return l.merge(e.prototype.serialize.call(this),{width:this.width,color:this.color,curvyness:this.curvyness})},t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.color=t.color,this.width=t.width,this.curvyness=t.curvyness},t.prototype.addLabel=function(t){if(t instanceof s.LabelModel)return e.prototype.addLabel.call(this,t);var n=new u.DefaultLabelModel;return n.setLabel(t),e.prototype.addLabel.call(this,n)},t.prototype.setWidth=function(e){this.width=e,this.iterateListeners(function(t,n){t.widthChanged&&t.widthChanged(i({},n,{width:e}))})},t.prototype.setColor=function(e){this.color=e,this.iterateListeners(function(t,n){t.colorChanged&&t.colorChanged(i({},n,{color:e}))})},t}(a.LinkModel);t.DefaultLinkModel=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(12),l=n(19),u=function(e){function t(t,n,r,o){void 0===r&&(r=null);var i=e.call(this,n,"default",o)||this;return i.in=t,i.label=r||n,i}return o(t,e),t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.in=t.in,this.label=t.label},t.prototype.serialize=function(){return i.merge(e.prototype.serialize.call(this),{in:this.in,label:this.label})},t.prototype.link=function(e){var t=this.createLinkModel();return t.setSourcePort(this),t.setTargetPort(e),t},t.prototype.canLinkToPort=function(e){return!(e instanceof t)||this.in!==e.in},t.prototype.createLinkModel=function(){return e.prototype.createLinkModel.call(this)||new l.DefaultLinkModel},t}(a.PortModel);t.DefaultPortModel=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),l=n(5),u=n(0),s=function(e){function t(t,n){void 0===t&&(t="default");var r=e.call(this,t,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(t,e),t.prototype.deSerialize=function(t,n){var r=this;e.prototype.deSerialize.call(this,t,n),this.extras=t.extras,this.points=u.map(t.points||[],function(e){var t=new l.PointModel(r,{x:e.x,y:e.y});return t.deSerialize(e,n),t}),u.forEach(t.labels||[],function(e){var t=n.getLabelFactory(e.type).getNewInstance();t.deSerialize(e,n),r.addLabel(t)}),t.target&&this.setTargetPort(this.getParent().getNode(t.target).getPortFromID(t.targetPort)),t.source&&this.setSourcePort(this.getParent().getNode(t.source).getPortFromID(t.sourcePort))},t.prototype.serialize=function(){return u.merge(e.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(e){return e.serialize()}),extras:this.extras,labels:u.map(this.labels,function(e){return e.serialize()})})},t.prototype.doClone=function(e,t){void 0===e&&(e={}),t.setPoints(u.map(this.getPoints(),function(t){return t.clone(e)})),this.sourcePort&&t.setSourcePort(this.sourcePort.clone(e)),this.targetPort&&t.setTargetPort(this.targetPort.clone(e))},t.prototype.remove=function(){this.sourcePort&&this.sourcePort.removeLink(this),this.targetPort&&this.targetPort.removeLink(this),e.prototype.remove.call(this)},t.prototype.isLastPoint=function(e){return this.getPointIndex(e)===this.points.length-1},t.prototype.getPointIndex=function(e){return this.points.indexOf(e)},t.prototype.getPointModel=function(e){for(var t=0;t<this.points.length;t++)if(this.points[t].id===e)return this.points[t];return null},t.prototype.getPortForPoint=function(e){return null!==this.sourcePort&&this.getFirstPoint().getID()===e.getID()?this.sourcePort:null!==this.targetPort&&this.getLastPoint().getID()===e.getID()?this.targetPort:null},t.prototype.getPointForPort=function(e){return null!==this.sourcePort&&this.sourcePort.getID()===e.getID()?this.getFirstPoint():null!==this.targetPort&&this.targetPort.getID()===e.getID()?this.getLastPoint():null},t.prototype.getFirstPoint=function(){return this.points[0]},t.prototype.getLastPoint=function(){return this.points[this.points.length-1]},t.prototype.setSourcePort=function(e){null!==e&&e.addLink(this),null!==this.sourcePort&&this.sourcePort.removeLink(this),this.sourcePort=e,this.iterateListeners(function(t,n){t.sourcePortChanged&&t.sourcePortChanged(i({},n,{port:e}))})},t.prototype.getSourcePort=function(){return this.sourcePort},t.prototype.getTargetPort=function(){return this.targetPort},t.prototype.setTargetPort=function(e){null!==e&&e.addLink(this),null!==this.targetPort&&this.targetPort.removeLink(this),this.targetPort=e,this.iterateListeners(function(t,n){t.targetPortChanged&&t.targetPortChanged(i({},n,{port:e}))})},t.prototype.point=function(e,t){return this.addPoint(this.generatePoint(e,t))},t.prototype.addLabel=function(e){e.setParent(this),this.labels.push(e)},t.prototype.getPoints=function(){return this.points},t.prototype.setPoints=function(e){var t=this;u.forEach(e,function(e){e.setParent(t)}),this.points=e},t.prototype.removePoint=function(e){this.points.splice(this.getPointIndex(e),1)},t.prototype.removePointsBefore=function(e){this.points.splice(0,this.getPointIndex(e))},t.prototype.removePointsAfter=function(e){this.points.splice(this.getPointIndex(e)+1)},t.prototype.removeMiddlePoints=function(){this.points.length>2&&this.points.splice(0,this.points.length-2)},t.prototype.addPoint=function(e,t){return void 0===t&&(t=1),e.setParent(this),this.points.splice(t,0,e),e},t.prototype.generatePoint=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),new l.PointModel(this,{x:e,y:t})},t}(a.BaseModel);t.LinkModel=s},function(e,t,n){var r=n(15),o=n(4),i=n(10),a=n(2);function l(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.diagonalMovement=e.diagonalMovement,this.heuristic=e.heuristic||i.manhattan,this.weight=e.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=e.heuristic||i.manhattan:this.heuristic=e.heuristic||i.octile}l.prototype.findPath=function(e,t,n,i,a){var l,u,s,c,f,p,d,h,m=function(e,t){return e.f-t.f},g=new r(m),v=new r(m),y=a.getNodeAt(e,t),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,g.push(y),y.opened=1,b.g=0,b.f=0,v.push(b),b.opened=2;!g.empty()&&!v.empty();){for((l=g.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?g.updateItem(s):(g.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-e),k(d-t)),s.f=s.g+s.h,s.parent=l,s.opened?v.updateItem(s):(v.push(s),s.opened=2))}}return[]},e.exports=l},function(e,t,n){var r=n(15),o=n(4),i=n(10),a=n(2);function l(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.heuristic=e.heuristic||i.manhattan,this.weight=e.weight||1,this.diagonalMovement=e.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=e.heuristic||i.manhattan:this.heuristic=e.heuristic||i.octile}l.prototype.findPath=function(e,t,n,i,a){var l,u,s,c,f,p,d,h,m=new r(function(e,t){return e.f-t.f}),g=a.getNodeAt(e,t),v=a.getNodeAt(n,i),y=this.heuristic,b=this.diagonalMovement,_=this.weight,x=Math.abs,w=Math.SQRT2;for(g.g=0,g.f=0,m.push(g),g.opened=!0;!m.empty();){if((l=m.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?m.updateItem(s):(m.push(s),s.opened=!0)))}return[]},e.exports=l},function(e,t){e.exports=function(e,t,n){this.x=e,this.y=t,this.walkable=void 0===n||n}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),l=function(e){function t(t){var n=e.call(this,"srd-node",t)||this;return n.state={},n}return o(t,e),t.prototype.shouldComponentUpdate=function(){return this.props.diagramEngine.canEntityRepaint(this.props.node)},t.prototype.getClassName=function(){return"node "+e.prototype.getClassName.call(this)+(this.props.node.isSelected()?this.bem("--selected"):"")},t.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)},t}(n(3).BaseWidget);t.NodeWidget=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),l=n(0),u=n(25),s=function(e){function t(t){var n=e.call(this,"srd-node-layer",t)||this;return n.updateNodeDimensions=function(){if(!n.props.diagramEngine.nodesRendered){var e=n.props.diagramEngine.getDiagramModel();l.map(e.getNodes(),function(e){e.updateDimensions(n.props.diagramEngine.getNodeDimensions(e))})}},n.state={},n}return o(t,e),t.prototype.componentDidUpdate=function(){this.updateNodeDimensions(),this.props.diagramEngine.nodesRendered=!0},t.prototype.render=function(){var e=this,t=this.props.diagramEngine.getDiagramModel();return a.createElement("div",i({},this.getProps(),{style:{transform:"translate("+t.getOffsetX()+"px,"+t.getOffsetY()+"px) scale("+t.getZoomLevel()/100+")"}}),l.map(t.getNodes(),function(t){return a.createElement(u.NodeWidget,{diagramEngine:e.props.diagramEngine,key:t.id,node:t},e.props.diagramEngine.generateWidgetForNode(t))}))},t}(n(3).BaseWidget);t.NodeLayerWidget=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=e.call(this,"srd-link",t)||this;return n.state={},n}return o(t,e),t.prototype.shouldComponentUpdate=function(){return this.props.diagramEngine.canEntityRepaint(this.props.link)},t.prototype.render=function(){return this.props.children},t}(n(3).BaseWidget);t.LinkWidget=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),l=n(27),u=n(0),s=function(e){function t(t){var n=e.call(this,"srd-link-layer",t)||this;return n.state={},n}return o(t,e),t.prototype.render=function(){var e=this,t=this.props.diagramEngine.getDiagramModel();return a.createElement("svg",i({},this.getProps(),{style:{transform:"translate("+t.getOffsetX()+"px,"+t.getOffsetY()+"px) scale("+t.getZoomLevel()/100+")"}}),this.props.diagramEngine.canvas&&u.map(t.getLinks(),function(t){if(e.props.diagramEngine.nodesRendered&&!e.props.diagramEngine.linksThatHaveInitiallyRendered[t.id]){if(null!==t.sourcePort)try{var n=e.props.diagramEngine.getPortCenter(t.sourcePort);t.points[0].updateLocation(n);var r=e.props.diagramEngine.getPortCoords(t.sourcePort);t.sourcePort.updateCoords(r),e.props.diagramEngine.linksThatHaveInitiallyRendered[t.id]=!0}catch(e){}if(null!==t.targetPort)try{n=e.props.diagramEngine.getPortCenter(t.targetPort);u.last(t.points).updateLocation(n);r=e.props.diagramEngine.getPortCoords(t.targetPort);t.targetPort.updateCoords(r),e.props.diagramEngine.linksThatHaveInitiallyRendered[t.id]=!0}catch(e){}}var o=e.props.diagramEngine.generateWidgetForLink(t);if(!o)throw new Error("no link generated for type: "+t.getType());return a.createElement(l.LinkWidget,{key:t.getID(),link:t,diagramEngine:e.props.diagramEngine},a.cloneElement(o,{pointAdded:e.props.pointAdded}))}))},t}(n(3).BaseWidget);t.LinkLayerWidget=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.mouseX2=t,r.mouseY2=n,r}return o(t,e),t.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}},t.prototype.containsElement=function(e,t,n){var r=n.getZoomLevel()/100,o=this.getBoxDimensions();return e*r+n.getOffsetX()>o.left&&e*r+n.getOffsetX()<o.right&&t*r+n.getOffsetY()>o.top&&t*r+n.getOffsetY()<o.bottom},t}(n(11).BaseAction);t.SelectingAction=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;o.moved=!1,r.enableRepaintEntities(r.getDiagramModel().getSelectedItems());var i=r.getDiagramModel().getSelectedItems();return i=i.filter(function(e){return!r.isModelLocked(e)}),o.selectionModels=i.map(function(e){return{model:e,initialX:e.x,initialY:e.y}}),o}return o(t,e),t}(n(11).BaseAction);t.MoveItemsAction=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.initialOffsetX=r.getOffsetX(),o.initialOffsetY=r.getOffsetY(),o}return o(t,e),t}(n(11).BaseAction);t.MoveCanvasAction=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(8).AbstractFactory);t.AbstractNodeFactory=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),l=function(e){function t(t){var n=e.call(this,"srd-port",t)||this;return n.state={selected:!1},n}return o(t,e),t.prototype.getClassName=function(){return"port "+e.prototype.getClassName.call(this)+(this.state.selected?this.bem("--selected"):"")},t.prototype.render=function(){var e=this;return a.createElement("div",i({},this.getProps(),{onMouseEnter:function(){e.setState({selected:!0})},onMouseLeave:function(){e.setState({selected:!1})},"data-name":this.props.name,"data-nodeid":this.props.node.getID()}))},t}(n(3).BaseWidget);t.PortWidget=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),l=n(33),u=function(e){function t(t){return e.call(this,"srd-default-port",t)||this}return o(t,e),t.prototype.getClassName=function(){return e.prototype.getClassName.call(this)+(this.props.model.in?this.bem("--in"):this.bem("--out"))},t.prototype.render=function(){var e=a.createElement(l.PortWidget,{node:this.props.model.getParent(),name:this.props.model.name}),t=a.createElement("div",{className:"name"},this.props.model.label);return a.createElement("div",i({},this.getProps()),this.props.model.in?e:t,this.props.model.in?t:e)},t}(n(3).BaseWidget);t.DefaultPortLabel=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),l=n(0),u=n(34),s=function(e){function t(t){var n=e.call(this,"srd-default-node",t)||this;return n.state={},n}return o(t,e),t.prototype.generatePort=function(e){return a.createElement(u.DefaultPortLabel,{model:e,key:e.id})},t.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)))))},t}(n(3).BaseWidget);t.DefaultNodeWidget=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(8).AbstractFactory);t.AbstractLinkFactory=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),l=n(5),u=n(7),s=n(16),c=n(0),f=function(e){function t(t){var n=e.call(this,"srd-default-link",t)||this;return n.addPointToLink=function(e,t){if(!e.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(e));r.setSelected(!0),n.forceUpdate(),n.props.link.addPoint(r,t),n.props.pointAdded(r,e)}},n.findPathAndRelativePositionToRenderLabel=function(e){for(var t=n.refPaths.map(function(e){return e.getTotalLength()}),r=t.reduce(function(e,t){return e+t},0)*(e/(n.props.link.labels.length+1)),o=0;o<n.refPaths.length;){if(r-t[o]<0)return{path:n.refPaths[o],position:r};r-=t[o],o++}},n.calculateLabelPosition=function(e,t){if(n.refLabels[e.id]){var r=n.findPathAndRelativePositionToRenderLabel(t),o=r.path,i=r.position,a=n.refLabels[e.id].offsetWidth,l=n.refLabels[e.id].offsetHeight,u=o.getPointAtLength(i),s=u.x-a/2+e.offsetX,c=u.y-l/2+e.offsetY;n.refLabels[e.id].setAttribute("style","transform: translate("+s+"px, "+c+"px);")}},n.refLabels={},n.refPaths=[],n.state={selected:!1},t.diagramEngine.isSmartRoutingEnabled()&&(n.pathFinding=new s.default(n.props.diagramEngine)),n}return o(t,e),t.prototype.calculateAllLabelPosition=function(){var e=this;c.forEach(this.props.link.labels,function(t,n){e.calculateLabelPosition(t,n+1)})},t.prototype.componentDidUpdate=function(){this.props.link.labels.length>0&&window.requestAnimationFrame(this.calculateAllLabelPosition.bind(this))},t.prototype.componentDidMount=function(){this.props.link.labels.length>0&&window.requestAnimationFrame(this.calculateAllLabelPosition.bind(this))},t.prototype.generatePoint=function(e){var t=this,n=this.props.link.points[e].x,r=this.props.link.points[e].y;return a.createElement("g",{key:"point-"+this.props.link.points[e].id},a.createElement("circle",{cx:n,cy:r,r:5,className:"point "+this.bem("__point")+(this.props.link.points[e].isSelected()?this.bem("--point-selected"):"")}),a.createElement("circle",{onMouseLeave:function(){t.setState({selected:!1})},onMouseEnter:function(){t.setState({selected:!0})},"data-id":this.props.link.points[e].id,"data-linkid":this.props.link.id,cx:n,cy:r,r:15,opacity:0,className:"point "+this.bem("__point")}))},t.prototype.generateLabel=function(e){var t=this,n=this.props.diagramEngine.canvas;return a.createElement("foreignObject",{key:e.id,className:this.bem("__label"),width:n.offsetWidth,height:n.offsetHeight},a.createElement("div",{ref:function(n){return t.refLabels[e.id]=n}},this.props.diagramEngine.getFactoryForLabel(e).generateReactWidget(this.props.diagramEngine,e)))},t.prototype.generateLink=function(e,t,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(),e),{ref:function(e){return e&&r.refPaths.push(e)}}),u=a.cloneElement(l,i({},t,{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)},t.prototype.isSmartRoutingApplicable=function(){var e=this.props,t=e.diagramEngine,n=e.link;return!!t.isSmartRoutingEnabled()&&(2===n.points.length&&(null!==n.sourcePort&&null!==n.targetPort))},t.prototype.render=function(){var e=this,t=this.props.diagramEngine;if(!t.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=t.getRoutingMatrix(),s=this.pathFinding.calculateLinkStartEndCoords(l,o);if(s){var f=s.start,p=s.end,d=s.pathToStart,h=s.pathToEnd,m=this.pathFinding.calculateDynamicPath(l,f,p,d,h);r.push(this.generateLink(u.Toolkit.generateDynamicPath(m),{onMouseDown:function(t){e.addPointToLink(t,1)}},"0"))}}if(0===r.length)if(2===n.length){var g=Math.abs(n[0].x-n[1].x)>Math.abs(n[0].y-n[1].y)?"x":"y";Math.abs(n[0][g]-n[1][g])<50&&5;var v=n[0],y=n[1];v[g]>y[g]&&(v=n[1],y=n[0]),r.push(this.generateLink(u.Toolkit.generateCurvePath(v,y,this.props.link.curvyness),{onMouseDown:function(t){e.addPointToLink(t,1)}},"0")),null===this.props.link.targetPort&&r.push(this.generatePoint(1))}else{for(var b=function(t){r.push(_.generateLink(u.Toolkit.generateLinePath(n[t],n[t+1]),{"data-linkid":_.props.link.id,"data-point":t,onMouseDown:function(n){e.addPointToLink(n,t+1)}},t))},_=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(t){return e.generateLabel(t)}))},t.defaultProps={color:"black",width:3,link:null,engine:null,smooth:!1,diagramEngine:null},t}(n(3).BaseWidget);t.DefaultLinkWidget=f},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(20),a=n(0),l=n(9),u=n(7),s=function(e){function t(t,n){void 0===t&&(t="Untitled"),void 0===n&&(n="rgb(0,192,255)");var r=e.call(this,"default")||this;return r.name=t,r.color=n,r}return o(t,e),t.prototype.addInPort=function(e){return this.addPort(new i.DefaultPortModel(!0,u.Toolkit.UID(),e))},t.prototype.addOutPort=function(e){return this.addPort(new i.DefaultPortModel(!1,u.Toolkit.UID(),e))},t.prototype.deSerialize=function(t,n){e.prototype.deSerialize.call(this,t,n),this.name=t.name,this.color=t.color},t.prototype.serialize=function(){return a.merge(e.prototype.serialize.call(this),{name:this.name,color:this.color})},t.prototype.getInPorts=function(){return a.filter(this.ports,function(e){return e.in})},t.prototype.getOutPorts=function(){return a.filter(this.ports,function(e){return!e.in})},t}(l.NodeModel);t.DefaultNodeModel=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1),l=function(e){function t(t){return e.call(this,"srd-default-label",t)||this}return o(t,e),t.prototype.render=function(){return a.createElement("div",i({},this.getProps()),this.props.model.label)},t}(n(3).BaseWidget);t.DefaultLabelWidget=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(8).AbstractFactory);t.AbstractLabelFactory=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(40),l=n(18),u=n(39),s=function(e){function t(){return e.call(this,"default")||this}return o(t,e),t.prototype.generateReactWidget=function(e,t){return i.createElement(u.DefaultLabelWidget,{model:t})},t.prototype.getNewInstance=function(e){return new l.DefaultLabelModel},t}(a.AbstractLabelFactory);t.DefaultLabelFactory=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(8).AbstractFactory);t.AbstractPortFactory=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(20),a=function(e){function t(){return e.call(this,"default")||this}return o(t,e),t.prototype.getNewInstance=function(e){return new i.DefaultPortModel(!0,"unknown")},t}(n(42).AbstractPortFactory);t.DefaultPortFactory=a},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(13),l=n(0),u=n(21),s=n(9),c=n(12),f=n(5),p=function(e){function t(){var t=e.call(this)||this;return t.links={},t.nodes={},t.offsetX=0,t.offsetY=0,t.zoom=100,t.rendered=!1,t.gridSize=0,t}return o(t,e),t.prototype.setGridSize=function(e){void 0===e&&(e=0),this.gridSize=e,this.iterateListeners(function(t,n){t.gridUpdated&&t.gridUpdated(i({},n,{size:e}))})},t.prototype.getGridPosition=function(e){return 0===this.gridSize?e:this.gridSize*Math.floor((e+this.gridSize/2)/this.gridSize)},t.prototype.deSerializeDiagram=function(e,t){var n=this;this.deSerialize(e,t),this.offsetX=e.offsetX,this.offsetY=e.offsetY,this.zoom=e.zoom,this.gridSize=e.gridSize,l.forEach(e.nodes,function(e){var r=t.getNodeFactory(e.type).getNewInstance(e);r.setParent(n),r.deSerialize(e,t),n.addNode(r)}),l.forEach(e.links,function(e){var r=t.getLinkFactory(e.type).getNewInstance();r.setParent(n),r.deSerialize(e,t),n.addLink(r)})},t.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(e){return e.serialize()}),nodes:l.map(this.nodes,function(e){return e.serialize()})})},t.prototype.clearSelection=function(e){void 0===e&&(e=null),l.forEach(this.getSelectedItems(),function(t){e&&e.getID()===t.getID()||t.setSelected(!1)})},t.prototype.getSelectedItems=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];Array.isArray(e)||(e=[e]);var n=[];return n=(n=(n=n.concat(l.flatMap(this.nodes,function(e){return e.getSelectedEntities()}))).concat(l.flatMap(this.links,function(e){return e.getSelectedEntities()}))).concat(l.flatMap(this.links,function(e){return l.flatMap(e.points,function(e){return e.getSelectedEntities()})})),n=l.uniq(n),e.length>0&&(n=l.filter(l.uniq(n),function(t){return!!(l.includes(e,"node")&&t instanceof s.NodeModel)||(!!(l.includes(e,"link")&&t instanceof u.LinkModel)||(!!(l.includes(e,"port")&&t instanceof c.PortModel)||!!(l.includes(e,"point")&&t instanceof f.PointModel)))})),n},t.prototype.setZoomLevel=function(e){this.zoom=e,this.iterateListeners(function(t,n){t.zoomUpdated&&t.zoomUpdated(i({},n,{zoom:e}))})},t.prototype.setOffset=function(e,t){this.offsetX=e,this.offsetY=t,this.iterateListeners(function(n,r){n.offsetUpdated&&n.offsetUpdated(i({},r,{offsetX:e,offsetY:t}))})},t.prototype.setOffsetX=function(e){var t=this;this.offsetX=e,this.iterateListeners(function(n,r){n.offsetUpdated&&n.offsetUpdated(i({},r,{offsetX:e,offsetY:t.offsetY}))})},t.prototype.setOffsetY=function(e){var t=this;this.offsetY=e,this.iterateListeners(function(e,n){e.offsetUpdated&&e.offsetUpdated(i({},n,{offsetX:t.offsetX,offsetY:t.offsetY}))})},t.prototype.getOffsetY=function(){return this.offsetY},t.prototype.getOffsetX=function(){return this.offsetX},t.prototype.getZoomLevel=function(){return this.zoom},t.prototype.getNode=function(e){return e instanceof s.NodeModel?e:this.nodes[e]?this.nodes[e]:null},t.prototype.getLink=function(e){return e instanceof u.LinkModel?e:this.links[e]?this.links[e]:null},t.prototype.addAll=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return l.forEach(t,function(t){t instanceof u.LinkModel?e.addLink(t):t instanceof s.NodeModel&&e.addNode(t)}),t},t.prototype.addLink=function(e){var t=this;return e.addListener({entityRemoved:function(){t.removeLink(e)}}),this.links[e.getID()]=e,this.iterateListeners(function(t,n){t.linksUpdated&&t.linksUpdated(i({},n,{link:e,isCreated:!0}))}),e},t.prototype.addNode=function(e){var t=this;return e.addListener({entityRemoved:function(){t.removeNode(e)}}),this.nodes[e.getID()]=e,this.iterateListeners(function(t,n){t.nodesUpdated&&t.nodesUpdated(i({},n,{node:e,isCreated:!0}))}),e},t.prototype.removeLink=function(e){e=this.getLink(e),delete this.links[e.getID()],this.iterateListeners(function(t,n){t.linksUpdated&&t.linksUpdated(i({},n,{link:e,isCreated:!1}))})},t.prototype.removeNode=function(e){e=this.getNode(e),delete this.nodes[e.getID()],this.iterateListeners(function(t,n){t.nodesUpdated&&t.nodesUpdated(i({},n,{node:e,isCreated:!1}))})},t.prototype.getLinks=function(){return this.links},t.prototype.getNodes=function(){return this.nodes},t}(a.BaseEntity);t.DiagramModel=p},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__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(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};Object.defineProperty(t,"__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),m=n(5),g=n(12),v=function(e){function t(t){var n=e.call(this,"srd-diagram",t)||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(t,e),t.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)},t.prototype.componentWillReceiveProps=function(e){var t=this;if(this.props.diagramEngine!==e.diagramEngine){this.props.diagramEngine.removeListener(this.state.diagramEngineListener);var n=e.diagramEngine.addListener({repaintCanvas:function(){return t.forceUpdate()}});this.setState({diagramEngineListener:n})}},t.prototype.componentWillUpdate=function(e){this.props.diagramEngine.diagramModel.id!==e.diagramEngine.diagramModel.id&&(this.setState({renderedNodes:!1}),e.diagramEngine.diagramModel.rendered=!0),e.diagramEngine.diagramModel.rendered||(this.setState({renderedNodes:!1}),e.diagramEngine.diagramModel.rendered=!0)},t.prototype.componentDidUpdate=function(){this.state.renderedNodes||this.setState({renderedNodes:!0})},t.prototype.componentDidMount=function(){var e=this;this.onKeyUpPointer=this.onKeyUp.bind(this),this.setState({document:document,renderedNodes:!0,diagramEngineListener:this.props.diagramEngine.addListener({repaintCanvas:function(){e.forceUpdate()}})}),window.addEventListener("keyup",this.onKeyUpPointer,!1),window.focus()},t.prototype.getMouseElement=function(e){var t=e.target,n=this.props.diagramEngine.diagramModel,r=c.Toolkit.closest(t,".port[data-name]");if(r){var o=c.Toolkit.closest(t,".node[data-nodeid]");return{model:n.getNode(o.getAttribute("data-nodeid")).getPort(r.getAttribute("data-name")),element:r}}return(r=c.Toolkit.closest(t,".point[data-id]"))?{model:n.getLink(r.getAttribute("data-linkid")).getPointModel(r.getAttribute("data-id")),element:r}:(r=c.Toolkit.closest(t,"[data-linkid]"))?{model:n.getLink(r.getAttribute("data-linkid")),element:r}:(r=c.Toolkit.closest(t,".node[data-nodeid]"))?{model:n.getNode(r.getAttribute("data-nodeid")),element:r}:null},t.prototype.fireAction=function(){this.state.action&&this.props.actionStillFiring&&this.props.actionStillFiring(this.state.action)},t.prototype.stopFiringAction=function(e){this.props.actionStoppedFiring&&!e&&this.props.actionStoppedFiring(this.state.action),this.setState({action:null})},t.prototype.startFiringAction=function(e){var t=!0;this.props.actionStartedFiring&&(t=this.props.actionStartedFiring(e)),t&&this.setState({action:e})},t.prototype.onMouseMove=function(e){var t=this,n=this.props.diagramEngine,r=n.getDiagramModel();if(this.state.action instanceof d.SelectingAction){var o=n.getRelativePoint(e.clientX,e.clientY);return l.forEach(r.getNodes(),function(e){t.state.action.containsElement(e.x,e.y,r)&&e.setSelected(!0)}),l.forEach(r.getLinks(),function(e){var n=!0;l.forEach(e.points,function(e){t.state.action.containsElement(e.x,e.y,r)?e.setSelected(!0):n=!1}),n&&e.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=e.clientX-this.state.action.mouseX,a=e.clientY-this.state.action.mouseY,u=r.getZoomLevel()/100;l.forEach(this.state.action.selectionModels,function(e){e.model instanceof h.NodeModel||e.model instanceof m.PointModel&&!e.model.isConnectedToPort()?(e.model.x=r.getGridPosition(e.initialX+i/u),e.model.y=r.getGridPosition(e.initialY+a/u),e.model instanceof h.NodeModel&&l.forEach(e.model.getPorts(),function(e){var n=t.props.diagramEngine.getPortCoords(e);e.updateCoords(n)}),n.isSmartRoutingEnabled()&&n.calculateRoutingMatrix()):e.model instanceof m.PointModel&&(e.model.x=e.initialX+r.getGridPosition(i/u),e.model.y=e.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+(e.clientX-this.state.action.mouseX),this.state.action.initialOffsetY+(e.clientY-this.state.action.mouseY)),this.fireAction(),this.forceUpdate())},t.prototype.onKeyUp=function(e){var t=this;-1!==this.props.deleteKeys.indexOf(e.keyCode)&&(l.forEach(this.props.diagramEngine.getDiagramModel().getSelectedItems(),function(e){t.props.diagramEngine.isModelLocked(e)||e.remove()}),this.forceUpdate())},t.prototype.onMouseUp=function(e){var t=this,n=this.props.diagramEngine;if(this.state.action instanceof p.MoveItemsAction){var r=this.getMouseElement(e);l.forEach(this.state.action.selectionModels,function(e){if(e.model instanceof m.PointModel&&r&&r.model instanceof g.PortModel&&!n.isModelLocked(r.model)){var o=e.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(e.model)]),o.removePointsAfter(e.model),n.getDiagramModel().addLink(a)}else o.getTargetPort()===r.model?o.removePointsAfter(e.model):o.getSourcePort()===r.model&&o.removePointsBefore(e.model);else o.setTargetPort(r.model);delete t.props.diagramEngine.linksThatHaveInitiallyRendered[o.getID()]}}),!this.props.allowLooseLinks&&this.state.wasMoved&&l.forEach(this.state.action.selectionModels,function(e){if(e.model instanceof m.PointModel){var t=e.model.getLink();null!==t.getSourcePort()&&null!==t.getTargetPort()||t.remove()}}),l.forEach(this.state.action.selectionModels,function(e){if(e.model instanceof m.PointModel){var t=e.model.getLink(),n=t.getSourcePort(),r=t.getTargetPort();null!==n&&null!==r&&(n.canLinkToPort(r)?l.some(l.values(r.getLinks()),function(e){return e!==t&&(e.getSourcePort()===n||e.getTargetPort()===n)})&&t.remove():t.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)},t.prototype.drawSelectionBox=function(){var e=this.state.action.getBoxDimensions();return a.createElement("div",{className:this.bem("__selector"),style:{top:e.top,left:e.left,width:e.width,height:e.height}})},t.prototype.render=function(){var e=this,t=this.props.diagramEngine;t.setMaxNumberPointsPerLink(this.props.maxNumberPointsPerLink),t.setSmartRoutingStatus(this.props.smartRouting);var n=t.getDiagramModel();return a.createElement("div",i({},this.getProps(),{ref:function(t){t&&e.props.diagramEngine.setCanvas(t)},onWheel:function(r){if(e.props.allowCanvasZoom){r.preventDefault(),r.stopPropagation();var o=n.getZoomLevel()/100,i=e.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,m=(d-n.getOffsetY())/o/s;n.setOffset(n.getOffsetX()-c*h,n.getOffsetY()-f*m),t.enableRepaintEntities([]),e.forceUpdate()}},onMouseDown:function(r){e.setState(i({},e.state,{wasMoved:!1})),t.clearRepaintEntities();var o=e.getMouseElement(r);if(null===o)if(r.shiftKey){var a=t.getRelativePoint(r.clientX,r.clientY);e.startFiringAction(new d.SelectingAction(a.x,a.y))}else n.clearSelection(),e.startFiringAction(new f.MoveCanvasAction(r.clientX,r.clientY,n));else if(o.model instanceof g.PortModel)if(e.props.diagramEngine.isModelLocked(o.model))n.clearSelection();else{a=t.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),e.startFiringAction(new p.MoveItemsAction(r.clientX,r.clientY,t)))}else r.shiftKey||o.model.isSelected()||n.clearSelection(),o.model.setSelected(!0),e.startFiringAction(new p.MoveItemsAction(r.clientX,r.clientY,t));e.state.document.addEventListener("mousemove",e.onMouseMove),e.state.document.addEventListener("mouseup",e.onMouseUp)}}),this.state.renderedNodes&&a.createElement(u.LinkLayerWidget,{diagramEngine:t,pointAdded:function(r,o){e.state.document.addEventListener("mousemove",e.onMouseMove),e.state.document.addEventListener("mouseup",e.onMouseUp),o.stopPropagation(),n.clearSelection(r),e.setState({action:new p.MoveItemsAction(o.clientX,o.clientY,t)})}}),a.createElement(s.NodeLayerWidget,{diagramEngine:t}),this.state.action instanceof d.SelectingAction&&this.drawSelectionBox())},t.defaultProps={diagramEngine:null,allowLooseLinks:!0,allowCanvasTranslation:!0,allowCanvasZoom:!0,inverseZoom:!1,maxNumberPointsPerLink:1/0,smartRouting:!1,deleteKeys:[46,8]},t}(n(3).BaseWidget);t.DiagramWidget=v},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(38),a=n(1),l=n(35),u=function(e){function t(){return e.call(this,"default")||this}return o(t,e),t.prototype.generateReactWidget=function(e,t){return a.createElement(l.DefaultNodeWidget,{node:t,diagramEngine:e})},t.prototype.getNewInstance=function(e){return new i.DefaultNodeModel},t}(n(32).AbstractNodeFactory);t.DefaultNodeFactory=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),a=n(37),l=n(36),u=n(19),s=function(e){function t(){return e.call(this,"default")||this}return o(t,e),t.prototype.generateReactWidget=function(e,t){return i.createElement(a.DefaultLinkWidget,{link:t,diagramEngine:e})},t.prototype.getNewInstance=function(e){return new u.DefaultLinkModel},t.prototype.generateLinkSegment=function(e,t,n,r){return i.createElement("path",{className:n?t.bem("--path-selected"):"",strokeWidth:e.width,stroke:e.color,d:r})},t}(l.AbstractLinkFactory);t.DefaultLinkFactory=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__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),m=function(e){function t(){var t=e.call(this)||this;return t.canvasMatrix=[],t.routingMatrix=[],t.hAdjustmentFactor=0,t.vAdjustmentFactor=0,t.calculateMatrixDimensions=function(){var e=l.values(t.diagramModel.nodes).map(function(e){return{x:e.x,width:e.width,y:e.y,height:e.height}}),n=l.values(t.diagramModel.links),r=l.flatMap(n.map(function(e){return[e.sourcePort,e.targetPort]})).filter(function(e){return null!==e}).map(function(e){return{x:e.x,width:e.width,y:e.y,height:e.height}}),o=l.flatMap(n.map(function(e){return e.points})).map(function(e){return{x:e.x,width:0,y:e.y,height:0}}),i=t.canvas,a=Math.floor(Math.min(l.minBy(l.concat(e,r,o),function(e){return e.x}).x,0)/f.ROUTING_SCALING_FACTOR)*f.ROUTING_SCALING_FACTOR,u=l.maxBy(l.concat(e,r,o),function(e){return e.x+e.width}),s=Math.max(u.x+u.width,i.offsetWidth),c=Math.floor(Math.min(l.minBy(l.concat(e,r,o),function(e){return e.y}).y,0)/f.ROUTING_SCALING_FACTOR)*f.ROUTING_SCALING_FACTOR,p=l.maxBy(l.concat(e,r,o),function(e){return e.y+e.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}},t.markNodes=function(e){l.values(t.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++)t.markMatrixPoint(e,t.translateRoutingX(l),t.translateRoutingY(u))})},t.markPorts=function(e){l.flatMap(l.values(t.diagramModel.links).map(function(e){return[].concat(e.sourcePort,e.targetPort)})).filter(function(e){return null!==e}).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++)t.markMatrixPoint(e,t.translateRoutingX(l),t.translateRoutingY(u))})},t.markMatrixPoint=function(e,t,n){void 0!==e[n]&&void 0!==e[n][t]&&(e[n][t]=1)},t.diagramModel=new a.DiagramModel,t.nodeFactories={},t.linkFactories={},t.portFactories={},t.labelFactories={},t.canvas=null,t.paintableWidgets=null,t.linksThatHaveInitiallyRendered={},h.Toolkit.TESTING&&(h.Toolkit.TESTING_UID=0,window&&(window.diagram_instance=t)),t}return o(t,e),t.prototype.installDefaultFactories=function(){this.registerNodeFactory(new c.DefaultNodeFactory),this.registerLinkFactory(new c.DefaultLinkFactory),this.registerPortFactory(new p.DefaultPortFactory),this.registerLabelFactory(new d.DefaultLabelFactory)},t.prototype.repaintCanvas=function(){this.iterateListeners(function(e){e.repaintCanvas&&e.repaintCanvas()})},t.prototype.clearRepaintEntities=function(){this.paintableWidgets=null},t.prototype.enableRepaintEntities=function(e){var t=this;this.paintableWidgets={},e.forEach(function(e){e instanceof u.NodeModel&&l.forEach(e.getPorts(),function(e){l.forEach(e.getLinks(),function(e){t.paintableWidgets[e.getID()]=!0})}),e instanceof s.PointModel&&(t.paintableWidgets[e.getLink().getID()]=!0),t.paintableWidgets[e.getID()]=!0})},t.prototype.isModelLocked=function(e){return!!this.diagramModel.isLocked()||e.isLocked()},t.prototype.recalculatePortsVisually=function(){this.nodesRendered=!1,this.linksThatHaveInitiallyRendered={}},t.prototype.canEntityRepaint=function(e){return null===this.paintableWidgets||void 0!==this.paintableWidgets[e.getID()]},t.prototype.setCanvas=function(e){this.canvas=e},t.prototype.setDiagramModel=function(e){this.diagramModel=e,this.recalculatePortsVisually()},t.prototype.getDiagramModel=function(){return this.diagramModel},
- //!-------------- FACTORIES ------------
- t.prototype.getNodeFactories=function(){return this.nodeFactories},t.prototype.getLinkFactories=function(){return this.linkFactories},t.prototype.getLabelFactories=function(){return this.labelFactories},t.prototype.registerLabelFactory=function(e){this.labelFactories[e.getType()]=e,this.iterateListeners(function(e){e.labelFactoriesUpdated&&e.labelFactoriesUpdated()})},t.prototype.registerPortFactory=function(e){this.portFactories[e.getType()]=e,this.iterateListeners(function(e){e.portFactoriesUpdated&&e.portFactoriesUpdated()})},t.prototype.registerNodeFactory=function(e){this.nodeFactories[e.getType()]=e,this.iterateListeners(function(e){e.nodeFactoriesUpdated&&e.nodeFactoriesUpdated()})},t.prototype.registerLinkFactory=function(e){this.linkFactories[e.getType()]=e,this.iterateListeners(function(e){e.linkFactoriesUpdated&&e.linkFactoriesUpdated()})},t.prototype.getPortFactory=function(e){if(this.portFactories[e])return this.portFactories[e];throw new Error("cannot find factory for port of type: ["+e+"]")},t.prototype.getNodeFactory=function(e){if(this.nodeFactories[e])return this.nodeFactories[e];throw new Error("cannot find factory for node of type: ["+e+"]")},t.prototype.getLinkFactory=function(e){if(this.linkFactories[e])return this.linkFactories[e];throw new Error("cannot find factory for link of type: ["+e+"]")},t.prototype.getLabelFactory=function(e){if(this.labelFactories[e])return this.labelFactories[e];throw new Error("cannot find factory for label of type: ["+e+"]")},t.prototype.getFactoryForNode=function(e){return this.getNodeFactory(e.getType())},t.prototype.getFactoryForLink=function(e){return this.getLinkFactory(e.getType())},t.prototype.getFactoryForLabel=function(e){return this.getLabelFactory(e.getType())},t.prototype.generateWidgetForLink=function(e){var t=this.getFactoryForLink(e);if(!t)throw new Error("Cannot find link factory for link: "+e.getType());return t.generateReactWidget(this,e)},t.prototype.generateWidgetForNode=function(e){var t=this.getFactoryForNode(e);if(!t)throw new Error("Cannot find widget factory for node: "+e.getType());return t.generateReactWidget(this,e)},t.prototype.getRelativeMousePoint=function(e){var t=this.getRelativePoint(e.clientX,e.clientY);return{x:(t.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100),y:(t.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)}},t.prototype.getRelativePoint=function(e,t){var n=this.canvas.getBoundingClientRect();return{x:e-n.left,y:t-n.top}},t.prototype.getNodeElement=function(e){var t=this.canvas.querySelector('.node[data-nodeid="'+e.getID()+'"]');if(null===t)throw new Error("Cannot find Node element with nodeID: ["+e.getID()+"]");return t},t.prototype.getNodePortElement=function(e){var t=this.canvas.querySelector('.port[data-name="'+e.getName()+'"][data-nodeid="'+e.getParent().getID()+'"]');if(null===t)throw new Error("Cannot find Node Port element with nodeID: ["+e.getParent().getID()+"] and name: ["+e.getName()+"]");return t},t.prototype.getPortCenter=function(e){var t=this.getNodePortElement(e),n=t.getBoundingClientRect(),r=this.getRelativePoint(n.left,n.top);return{x:t.offsetWidth/2+(r.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100),y:t.offsetHeight/2+(r.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)}},t.prototype.getPortCoords=function(e){var t=this.getNodePortElement(e).getBoundingClientRect(),n=this.canvas.getBoundingClientRect();return{x:(t.x-this.diagramModel.getOffsetX())/(this.diagramModel.getZoomLevel()/100)-n.left,y:(t.y-this.diagramModel.getOffsetY())/(this.diagramModel.getZoomLevel()/100)-n.top,width:t.width,height:t.height}},t.prototype.getNodeDimensions=function(e){if(!this.canvas)return{width:0,height:0};var t=this.getNodeElement(e).getBoundingClientRect();return{width:t.width,height:t.height}},t.prototype.getMaxNumberPointsPerLink=function(){return this.maxNumberPointsPerLink},t.prototype.setMaxNumberPointsPerLink=function(e){this.maxNumberPointsPerLink=e},t.prototype.isSmartRoutingEnabled=function(){return!!this.smartRouting},t.prototype.setSmartRoutingStatus=function(e){this.smartRouting=e},t.prototype.getCanvasMatrix=function(){return 0===this.canvasMatrix.length&&this.calculateCanvasMatrix(),this.canvasMatrix},t.prototype.calculateCanvasMatrix=function(){var e=this.calculateMatrixDimensions(),t=e.width,n=e.hAdjustmentFactor,r=e.height,o=e.vAdjustmentFactor;this.hAdjustmentFactor=n,this.vAdjustmentFactor=o;var i=Math.ceil(t/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)})},t.prototype.getRoutingMatrix=function(){return 0===this.routingMatrix.length&&this.calculateRoutingMatrix(),this.routingMatrix},t.prototype.calculateRoutingMatrix=function(){var e=l.cloneDeep(this.getCanvasMatrix());this.markNodes(e),this.markPorts(e),this.routingMatrix=e},t.prototype.translateRoutingX=function(e,t){return void 0===t&&(t=!1),e+this.hAdjustmentFactor*(t?-1:1)},t.prototype.translateRoutingY=function(e,t){return void 0===t&&(t=!1),e+this.vAdjustmentFactor*(t?-1:1)},t.prototype.zoomToFit=function(){var e=this.canvas.clientWidth/this.canvas.scrollWidth,t=this.canvas.clientHeight/this.canvas.scrollHeight,n=e<t?e:t;this.diagramModel.setZoomLevel(this.diagramModel.getZoomLevel()*n),this.diagramModel.setOffset(0,0),this.repaintCanvas()},t}(i.BaseEntity);t.DiagramEngine=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(e){return e*e},i=function(e,t){var n=r(e,2),i=n[0],a=n[1],l=r(t,2),u=l[0],s=l[1];return Math.sqrt(o(i-u)+o(a-s))};t.default={distPointToPoint:i,distPointToParabol:function(e,t){var n=i(e,t);return 0==n?1/0:o(n)/(2*Math.abs(e[1]-t[1]))},circumCenter:function(e,t,n){var r=(e[0]-n[0])*(t[1]-n[1])-(t[0]-n[0])*(e[1]-n[1]);return 0==r?[1/0,1/0]:[(((e[0]-n[0])*(e[0]+n[0])+(e[1]-n[1])*(e[1]+n[1]))/2*(t[1]-n[1])-((t[0]-n[0])*(t[0]+n[0])+(t[1]-n[1])*(t[1]+n[1]))/2*(e[1]-n[1]))/r,(((t[0]-n[0])*(t[0]+n[0])+(t[1]-n[1])*(t[1]+n[1]))/2*(e[0]-n[0])-((e[0]-n[0])*(e[0]+n[0])+(e[1]-n[1])*(e[1]+n[1]))/2*(t[0]-n[0]))/r]},parabolsCrossX:function(e,t,n){if(e[1]===t[1])return[(e[0]+t[0])/2,(e[0]+t[0])/2];var r=(e[1]*t[0]-e[0]*t[1]+e[0]*n-t[0]*n+Math.sqrt((e[0]*e[0]+e[1]*e[1]-2*e[0]*t[0]+t[0]*t[0]-2*e[1]*t[1]+t[1]*t[1])*(e[1]*t[1]-e[1]*n-t[1]*n+n*n)))/(e[1]-t[1]),o=(e[1]*t[0]-e[0]*t[1]+e[0]*n-t[0]*n-Math.sqrt((e[0]*e[0]+e[1]*e[1]-2*e[0]*t[0]+t[0]*t[0]-2*e[1]*t[1]+t[1]*t[1])*(e[1]*t[1]-e[1]*n-t[1]*n+n*n)))/(e[1]-t[1]);return r<o?[r,o]:[o,r]},doHalflinesCross:function(e,t){var n=arguments.length<=2||void 0===arguments[2]?1e-10:arguments[2],r=t.ps[0]-e.ps[0],o=t.ps[1]-e.ps[1];if(e.m==1/0)return e.hp*(t.m*r-o)<=n&&t.vec[0]*r<=n;if(t.m==1/0)return t.hp*(e.m*r-o)>=-n&&e.vec[0]*r>=-n;var i=t.vec[0]*e.vec[1]-t.vec[1]*e.vec[0];if(0===i)return!1;var a=(o*t.vec[0]-r*t.vec[1])/i,l=(o*e.vec[0]-r*e.vec[1])/i;return a>=-n&&l>=n||a>=n&&l>=-n},matrixTransform:function(e,t){return e.map(function(e){return{x:e.x*t[0]+e.y*t[2]+t[4],y:e.x*t[1]+e.y*t[3]+t[5]}})},transformEllipse:function(e,t,n,r){var o=Math.PI/180,i=Math.cos(n*o),a=Math.sin(n*o),l=[e*(r[0]*i+r[2]*a),e*(r[1]*i+r[3]*a),t*(-r[0]*a+r[2]*i),t*(-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,m=void 0,g=void 0,v=void 0;return(m=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?(g=Math.sqrt(d),v=Math.sqrt(h)):(m+=90,g=Math.sqrt(h),v=Math.sqrt(d)),{rx:g,ry:v,ax:m,isDegenerate:g<1e-10*v||v<1e-10*g}}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=n(50),i=function e(t){var n=t||[],i=function(e){return e.command+" "+e.params.map(function(e){return t=6,function(e,t){for(var n=e.length;"0"===e.charAt(n-1);)n-=1;return"."===e.charAt(n-1)&&(n-=1),e.substr(0,n)}(e.toFixed(t));var t}).join(" ")},a=function(e,t){var n=e.command,r=e.params;switch(n){case"M":case"L":return[r[0],r[1]];case"H":return[r[0],t[1]];case"V":return[t[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(e,t,n){var r=e.params,i={V:function(e,t,n){var i=[{x:n[0],y:r[1]}],a=(0,o.matrixTransform)(i,t);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(e,t,n){var i=[{x:r[0],y:n[1]}],a=(0,o.matrixTransform)(i,t);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(e,t,n){var i=(0,o.transformEllipse)(r[0],r[1],r[2],t),a=r[4];t[0]*t[3]-t[1]*t[2]<0&&(a=a?"0":"1");var l=[{x:r[5],y:r[6]}],u=(0,o.matrixTransform)(l,t);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(e,t,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,t);return{command:"C",params:[a[0].x,a[0].y,a[1].x,a[1].y,a[2].x,a[2].y]}},Z:function(e,t,n){return{command:"Z",params:[]}},default:function(e,t,n){var i=[{x:r[0],y:r[1]}],a=(0,o.matrixTransform)(i,t),l=e.params.slice(0,e.params.length);return l.splice(0,2,a[0].x,a[0].y),{command:e.command,params:l}}};return i[e.command]?i[e.command](e,t,n):i.default(e,t,n)},u=function(e,t){return function(n){var r="object"==typeof n?e.map(function(e){return n[e]}):arguments;return t.apply(null,r)}},s=function(t){return e((o=t,(i=(r=n).slice(0,r.length)).push(o),i));var r,o,i};return{moveto:u(["x","y"],function(e,t){return s({command:"M",params:[e,t]})}),lineto:u(["x","y"],function(e,t){return s({command:"L",params:[e,t]})}),hlineto:u(["x"],function(e){return s({command:"H",params:[e]})}),vlineto:u(["y"],function(e){return s({command:"V",params:[e]})}),closepath:function(){return s({command:"Z",params:[]})},curveto:u(["x1","y1","x2","y2","x","y"],function(e,t,n,r,o,i){return s({command:"C",params:[e,t,n,r,o,i]})}),smoothcurveto:u(["x2","y2","x","y"],function(e,t,n,r){return s({command:"S",params:[e,t,n,r]})}),qcurveto:u(["x1","y1","x","y"],function(e,t,n,r){return s({command:"Q",params:[e,t,n,r]})}),smoothqcurveto:u(["x","y"],function(e,t){return s({command:"T",params:[e,t]})}),arc:u(["rx","ry","xrot","largeArcFlag","sweepFlag","x","y"],function(e,t,n,r,o,i,a){return s({command:"A",params:[e,t,n,r,o,i,a]})}),translate:u(["dx","dy"],function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0],r=arguments.length<=1||void 0===arguments[1]?0:arguments[1];if(0===t&&0===t)return e(n);var o,i,u,s=(o=[0,0],i=[1,0,0,1,t,r],u=n.map(function(e){var t=l(e,i,o);return o=a(e,o),t}),{v:e(u)});return"object"==typeof s?s.v:void 0}),rotate:u(["angle","rx","ry"],function(t){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===t)return e(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(e){var t=l(e,u,i);return i=a(e,i),t}));var c=t*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(e){var t=l(e,u,i);return i=a(e,i),t}),0!==r&&0!==o&&(i=[0,0],u=[1,0,0,1,r,o],s=s.map(function(e){var t=l(e,u,i);return i=a(e,i),t})),{v:e(s)}}();return"object"==typeof i?i.v:void 0}),scale:u(["sx","sy"],function(){var t=arguments.length<=0||void 0===arguments[0]?1:arguments[0],r=arguments.length<=1||void 0===arguments[1]?t:arguments[1];return function(){if(1===t&&1===r)return e(n);var o,i,u,s=(o=[0,0],i=[t,0,0,r,0,0],u=n.map(function(e){var t=l(e,i,o);return o=a(e,o),t}),{v:e(u)});return"object"==typeof s?s.v:void 0}()}),shearX:u(["angle"],function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0];if(0===t)return e(n);var r,o,i,u=(r=[0,0],o=[1,0,Math.tan(t*Math.PI/180),1,0,0],i=n.map(function(e){var t=l(e,o,r);return r=a(e,r),t}),{v:e(i)});return"object"==typeof u?u.v:void 0}),shearY:u(["angle"],function(){var t=arguments.length<=0||void 0===arguments[0]?0:arguments[0];if(0===t)return e(n);var r,o,i,u=(r=[0,0],o=[1,Math.tan(t*Math.PI/180),0,1,0,0],i=n.map(function(e){var t=l(e,o,r);return r=a(e,r),t}),{v:e(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 e=[],t=[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,t);t=c,c&&e.push(c)}}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return e},instructions:function(){return n.slice(0,n.length)},connect:function(t){var o,i,a,l,u,s,c,f=this.points(),p=f[f.length-1],d=t.points()[0],h=void 0;return"Z"!==n[n.length-1].command?(h=t.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=t.instructions(),e(this.instructions().concat(h))}}};t.default=function(){return i()},e.exports=t.default},function(e,t,n){var r=n(14),o=n(2);function i(e){r.call(this,e)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(e,t,n,r){var o=this.grid,i=e-n,a=t-r;if(!o.isWalkableAt(e,t))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(e,t).tested=!0),o.getNodeAt(e,t)===this.endNode)return[e,t];if(0!==i&&0!==a){if(o.isWalkableAt(e-i,t+a)&&!o.isWalkableAt(e-i,t)||o.isWalkableAt(e+i,t-a)&&!o.isWalkableAt(e,t-a))return[e,t];if(this._jump(e+i,t,e,t)||this._jump(e,t+a,e,t))return[e,t]}else if(0!==i){if(o.isWalkableAt(e+i,t+1)&&!o.isWalkableAt(e,t+1)||o.isWalkableAt(e+i,t-1)&&!o.isWalkableAt(e,t-1))return[e,t]}else if(o.isWalkableAt(e+1,t+a)&&!o.isWalkableAt(e+1,t)||o.isWalkableAt(e-1,t+a)&&!o.isWalkableAt(e-1,t))return[e,t];return o.isWalkableAt(e+i,t)||o.isWalkableAt(e,t+a)?this._jump(e+i,t+a,e,t):null},i.prototype._findNeighbors=function(e){var t,n,r,i,a,l,u,s,c=e.parent,f=e.x,p=e.y,d=this.grid,h=[];if(c)t=c.x,n=c.y,r=(f-t)/Math.max(Math.abs(f-t),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(e,o.IfAtMostOneObstacle)).length;u<s;++u)l=a[u],h.push([l.x,l.y]);return h},e.exports=i},function(e,t,n){var r=n(14),o=n(2);function i(e){r.call(this,e)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(e,t,n,r){var o=this.grid,i=e-n,a=t-r;if(!o.isWalkableAt(e,t))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(e,t).tested=!0),o.getNodeAt(e,t)===this.endNode)return[e,t];if(0!==i&&0!==a){if(this._jump(e+i,t,e,t)||this._jump(e,t+a,e,t))return[e,t]}else if(0!==i){if(o.isWalkableAt(e,t-1)&&!o.isWalkableAt(e-i,t-1)||o.isWalkableAt(e,t+1)&&!o.isWalkableAt(e-i,t+1))return[e,t]}else if(0!==a&&(o.isWalkableAt(e-1,t)&&!o.isWalkableAt(e-1,t-a)||o.isWalkableAt(e+1,t)&&!o.isWalkableAt(e+1,t-a)))return[e,t];return o.isWalkableAt(e+i,t)&&o.isWalkableAt(e,t+a)?this._jump(e+i,t+a,e,t):null},i.prototype._findNeighbors=function(e){var t,n,r,i,a,l,u,s,c,f=e.parent,p=e.x,d=e.y,h=this.grid,m=[];if(f){if(t=f.x,n=f.y,r=(p-t)/Math.max(Math.abs(p-t),1),i=(d-n)/Math.max(Math.abs(d-n),1),0!==r&&0!==i)h.isWalkableAt(p,d+i)&&m.push([p,d+i]),h.isWalkableAt(p+r,d)&&m.push([p+r,d]),h.isWalkableAt(p,d+i)&&h.isWalkableAt(p+r,d)&&m.push([p+r,d+i]);else if(0!==r){c=h.isWalkableAt(p+r,d);var g=h.isWalkableAt(p,d+1),v=h.isWalkableAt(p,d-1);c&&(m.push([p+r,d]),g&&m.push([p+r,d+1]),v&&m.push([p+r,d-1])),g&&m.push([p,d+1]),v&&m.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&&(m.push([p,d+i]),y&&m.push([p+1,d+i]),b&&m.push([p-1,d+i])),y&&m.push([p+1,d]),b&&m.push([p-1,d])}}else for(u=0,s=(a=h.getNeighbors(e,o.OnlyWhenNoObstacles)).length;u<s;++u)l=a[u],m.push([l.x,l.y]);return m},e.exports=i},function(e,t,n){var r=n(14),o=n(2);function i(e){r.call(this,e)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(e,t,n,r){var o=this.grid,i=e-n,a=t-r;if(!o.isWalkableAt(e,t))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(e,t).tested=!0),o.getNodeAt(e,t)===this.endNode)return[e,t];if(0!==i&&0!==a){if(o.isWalkableAt(e-i,t+a)&&!o.isWalkableAt(e-i,t)||o.isWalkableAt(e+i,t-a)&&!o.isWalkableAt(e,t-a))return[e,t];if(this._jump(e+i,t,e,t)||this._jump(e,t+a,e,t))return[e,t]}else if(0!==i){if(o.isWalkableAt(e+i,t+1)&&!o.isWalkableAt(e,t+1)||o.isWalkableAt(e+i,t-1)&&!o.isWalkableAt(e,t-1))return[e,t]}else if(o.isWalkableAt(e+1,t+a)&&!o.isWalkableAt(e+1,t)||o.isWalkableAt(e-1,t+a)&&!o.isWalkableAt(e-1,t))return[e,t];return this._jump(e+i,t+a,e,t)},i.prototype._findNeighbors=function(e){var t,n,r,i,a,l,u,s,c=e.parent,f=e.x,p=e.y,d=this.grid,h=[];if(c)t=c.x,n=c.y,r=(f-t)/Math.max(Math.abs(f-t),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(e,o.Always)).length;u<s;++u)l=a[u],h.push([l.x,l.y]);return h},e.exports=i},function(e,t,n){var r=n(14),o=n(2);function i(e){r.call(this,e)}i.prototype=new r,i.prototype.constructor=i,i.prototype._jump=function(e,t,n,r){var o=this.grid,i=e-n,a=t-r;if(!o.isWalkableAt(e,t))return null;if(!0===this.trackJumpRecursion&&(o.getNodeAt(e,t).tested=!0),o.getNodeAt(e,t)===this.endNode)return[e,t];if(0!==i){if(o.isWalkableAt(e,t-1)&&!o.isWalkableAt(e-i,t-1)||o.isWalkableAt(e,t+1)&&!o.isWalkableAt(e-i,t+1))return[e,t]}else{if(0===a)throw new Error("Only horizontal and vertical movements are allowed");if(o.isWalkableAt(e-1,t)&&!o.isWalkableAt(e-1,t-a)||o.isWalkableAt(e+1,t)&&!o.isWalkableAt(e+1,t-a))return[e,t];if(this._jump(e+1,t,e,t)||this._jump(e-1,t,e,t))return[e,t]}return this._jump(e+i,t+a,e,t)},i.prototype._findNeighbors=function(e){var t,n,r,i,a,l,u,s,c=e.parent,f=e.x,p=e.y,d=this.grid,h=[];if(c)t=c.x,n=c.y,r=(f-t)/Math.max(Math.abs(f-t),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(e,o.Never)).length;u<s;++u)l=a[u],h.push([l.x,l.y]);return h},e.exports=i},function(e,t,n){var r=n(2),o=n(55),i=n(54),a=n(53),l=n(52);e.exports=function(e){return(e=e||{}).diagonalMovement===r.Never?new o(e):e.diagonalMovement===r.Always?new i(e):e.diagonalMovement===r.OnlyWhenNoObstacles?new a(e):new l(e)}},function(e,t,n){n(4);var r=n(10),o=n(24),i=n(2);function a(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.diagonalMovement=e.diagonalMovement,this.heuristic=e.heuristic||r.manhattan,this.weight=e.weight||1,this.trackRecursion=e.trackRecursion||!1,this.timeLimit=e.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=e.heuristic||r.manhattan:this.heuristic=e.heuristic||r.octile}a.prototype.findPath=function(e,t,n,r,i){var a,l,u,s=(new Date).getTime(),c=function(e,t){return this.heuristic(Math.abs(t.x-e.x),Math.abs(t.y-e.y))}.bind(this),f=function(e,t,n,r,a){if(0,this.timeLimit>0&&(new Date).getTime()-s>1e3*this.timeLimit)return 1/0;var l,u,p,h,m=t+c(e,d)*this.weight;if(m>n)return m;if(e==d)return r[a]=[e.x,e.y],e;var g,v,y=i.getNeighbors(e,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,t+(v=h,(g=e).x===v.x||g.y===v.y?1:Math.SQRT2),n,r,a+1))instanceof o)return r[a]=[e.x,e.y],u;this.trackRecursion&&0==--h.retainCount&&(h.tested=!1),u<l&&(l=u)}return l}.bind(this),p=i.getNodeAt(e,t),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[]},e.exports=a},function(e,t,n){var r=n(22);function o(e){r.call(this,e),this.heuristic=function(e,t){return 0}}o.prototype=new r,o.prototype.constructor=o,e.exports=o},function(e,t,n){var r=n(4),o=n(2);function i(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.diagonalMovement=e.diagonalMovement,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=o.OnlyWhenNoObstacles:this.diagonalMovement=o.IfAtMostOneObstacle:this.diagonalMovement=o.Never)}i.prototype.findPath=function(e,t,n,o,i){var a,l,u,s,c,f=i.getNodeAt(e,t),p=i.getNodeAt(n,o),d=[],h=[],m=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,m)).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,m)).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[]},e.exports=i},function(e,t,n){var r=n(22);function o(e){r.call(this,e);var t=this.heuristic;this.heuristic=function(e,n){return 1e6*t(e,n)}}o.prototype=new r,o.prototype.constructor=o,e.exports=o},function(e,t,n){var r=n(23);function o(e){r.call(this,e),this.heuristic=function(e,t){return 0}}o.prototype=new r,o.prototype.constructor=o,e.exports=o},function(e,t,n){var r=n(4),o=n(2);function i(e){e=e||{},this.allowDiagonal=e.allowDiagonal,this.dontCrossCorners=e.dontCrossCorners,this.diagonalMovement=e.diagonalMovement,this.diagonalMovement||(this.allowDiagonal?this.dontCrossCorners?this.diagonalMovement=o.OnlyWhenNoObstacles:this.diagonalMovement=o.IfAtMostOneObstacle:this.diagonalMovement=o.Never)}i.prototype.findPath=function(e,t,n,o,i){var a,l,u,s,c,f=[],p=this.diagonalMovement,d=i.getNodeAt(e,t),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[]},e.exports=i},function(e,t,n){var r=n(23);function o(e){r.call(this,e);var t=this.heuristic;this.heuristic=function(e,n){return 1e6*t(e,n)}}o.prototype=new r,o.prototype.constructor=o,e.exports=o},function(e,t,n){var r=n(24),o=n(2);function i(e,t,n){var r;"object"!=typeof e?r=e:(t=e.length,r=e[0].length,n=e),this.width=r,this.height=t,this.nodes=this._buildNodes(r,t,n)}i.prototype._buildNodes=function(e,t,n){var o,i,a=new Array(t);for(o=0;o<t;++o)for(a[o]=new Array(e),i=0;i<e;++i)a[o][i]=new r(i,o);if(void 0===n)return a;if(n.length!==t||n[0].length!==e)throw new Error("Matrix size does not fit");for(o=0;o<t;++o)for(i=0;i<e;++i)n[o][i]&&(a[o][i].walkable=!1);return a},i.prototype.getNodeAt=function(e,t){return this.nodes[t][e]},i.prototype.isWalkableAt=function(e,t){return this.isInside(e,t)&&this.nodes[t][e].walkable},i.prototype.isInside=function(e,t){return e>=0&&e<this.width&&t>=0&&t<this.height},i.prototype.setWalkableAt=function(e,t,n){this.nodes[t][e].walkable=n},i.prototype.getNeighbors=function(e,t){var n=e.x,r=e.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),t===o.Never)return i;if(t===o.OnlyWhenNoObstacles)l=p&&a,s=a&&u,f=u&&c,d=c&&p;else if(t===o.IfAtMostOneObstacle)l=p||a,s=a||u,f=u||c,d=c||p;else{if(t!==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 e,t,n=this.width,o=this.height,a=this.nodes,l=new i(n,o),u=new Array(o);for(e=0;e<o;++e)for(u[e]=new Array(n),t=0;t<n;++t)u[e][t]=new r(t,e,a[e][t].walkable);return l.nodes=u,l},e.exports=i},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){(function(e){(function(){var t,n,r,o,i,a,l,u,s,c,f,p,d,h,m;r=Math.floor,c=Math.min,n=function(e,t){return e<t?-1:e>t?1:0},s=function(e,t,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=e.length);o<i;)a(t,e[l=r((o+i)/2)])<0?i=l:o=l+1;return[].splice.apply(e,[o,o-o].concat(t)),t},a=function(e,t,r){return null==r&&(r=n),e.push(t),h(e,0,e.length-1,r)},i=function(e,t){var r,o;return null==t&&(t=n),r=e.pop(),e.length?(o=e[0],e[0]=r,m(e,0,t)):o=r,o},u=function(e,t,r){var o;return null==r&&(r=n),o=e[0],e[0]=t,m(e,0,r),o},l=function(e,t,r){var o;return null==r&&(r=n),e.length&&r(e[0],t)<0&&(t=(o=[e[0],t])[0],e[0]=o[1],m(e,0,r)),t},o=function(e,t){var o,i,a,l,u,s;for(null==t&&(t=n),u=[],i=0,a=(l=function(){s=[];for(var t=0,n=r(e.length/2);0<=n?t<n:t>n;0<=n?t++:t--)s.push(t);return s}.apply(this).reverse()).length;i<a;i++)o=l[i],u.push(m(e,o,t));return u},d=function(e,t,r){var o;if(null==r&&(r=n),-1!==(o=e.indexOf(t)))return h(e,0,o,r),m(e,o,r)},f=function(e,t,r){var i,a,u,s,c;if(null==r&&(r=n),!(a=e.slice(0,t)).length)return a;for(o(a,r),u=0,s=(c=e.slice(t)).length;u<s;u++)i=c[u],l(a,i,r);return a.sort(r).reverse()},p=function(e,t,r){var a,l,u,f,p,d,h,m,g;if(null==r&&(r=n),10*t<=e.length){if(!(u=e.slice(0,t).sort(r)).length)return u;for(l=u[u.length-1],f=0,d=(h=e.slice(t)).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(e,r),g=[],p=0,m=c(t,e.length);0<=m?p<m:p>m;0<=m?++p:--p)g.push(i(e,r));return g},h=function(e,t,r,o){var i,a,l;for(null==o&&(o=n),i=e[r];r>t&&o(i,a=e[l=r-1>>1])<0;)e[r]=a,r=l;return e[r]=i},m=function(e,t,r){var o,i,a,l,u;for(null==r&&(r=n),i=e.length,u=t,a=e[t],o=2*t+1;o<i;)(l=o+1)<i&&!(r(e[o],e[l])<0)&&(o=l),e[t]=e[o],o=2*(t=o)+1;return e[t]=a,h(e,u,t,r)},t=function(){function e(e){this.cmp=null!=e?e:n,this.nodes=[]}return e.push=a,e.pop=i,e.replace=u,e.pushpop=l,e.heapify=o,e.updateItem=d,e.nlargest=f,e.nsmallest=p,e.prototype.push=function(e){return a(this.nodes,e,this.cmp)},e.prototype.pop=function(){return i(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return-1!==this.nodes.indexOf(e)},e.prototype.replace=function(e){return u(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return l(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return o(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return d(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return 0===this.nodes.length},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t;return(t=new e).nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),(null!=e?e.exports:void 0)?e.exports=t:window.Heap=t}).call(this)}).call(this,n(65)(e))},function(e,t,n){e.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(e,t,n){e.exports=n(67)},function(e,t){var n=Element.prototype,r=n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector;e.exports=function(e,t){if(r)return r.call(e,t);for(var n=e.parentNode.querySelectorAll(t),o=0;o<n.length;++o)if(n[o]==e)return!0;return!1}},function(e,t,n){var r=n(69);e.exports=function(e,t,n){for(var o=n?e:e.parentNode;o&&o!==document;){if(r(o,t))return o;o=o.parentNode}}}])},e.exports=r(n(17),n(0))},function(e,t,n){"use strict";(function(e){n.d(t,"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!==e?e:"undefined"!=typeof self?self:{};var s,c=(function(e){var t,n,r,o,i,a,l,s,c,f,p,d,h,m,g;t=u,n=function(e,t,r){if(!s(t)||f(t)||p(t)||d(t)||l(t))return t;var o,i=0,a=0;if(c(t))for(o=[],a=t.length;i<a;i++)o.push(n(e,t[i],r));else for(var u in o={},t)Object.prototype.hasOwnProperty.call(t,u)&&(o[e(u,r)]=n(e,t[u],r));return o},r=function(e){return h(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1)},o=function(e){var t=r(e);return t.substr(0,1).toUpperCase()+t.substr(1)},i=function(e,t){return function(e,t){var n=(t=t||{}).separator||"_",r=t.split||/(?=[A-Z])/;return e.split(r).join(n)}(e,t).toLowerCase()},a=Object.prototype.toString,l=function(e){return"function"==typeof e},s=function(e){return e===Object(e)},c=function(e){return"[object Array]"==a.call(e)},f=function(e){return"[object Date]"==a.call(e)},p=function(e){return"[object RegExp]"==a.call(e)},d=function(e){return"[object Boolean]"==a.call(e)},h=function(e){return(e-=0)==e},m=function(e,t){var n=t&&"process"in t?t.process:t;return"function"!=typeof n?e:function(t,r){return n(t,e,r)}},g={camelize:r,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(e,t){return n(m(r,t),e)},decamelizeKeys:function(e,t){return n(m(i,t),e,t)},pascalizeKeys:function(e,t){return n(m(o,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}},e.exports?e.exports=g:t.humps=g}(s={exports:{}},s.exports),s.exports),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},m=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)};var g=!1;try{g=!0}catch(e){}function v(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?p({},e,t):{}}function y(e){return null===e?null:"object"===(void 0===e?"undefined":f(e))&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function b(e){var t=e.icon,n=e.mask,o=e.symbol,i=e.className,a=e.title,l=y(t),u=v("classes",[].concat(m(function(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-inverse":e.inverse,"fa-border":e.border,"fa-li":e.listItem,"fa-flip-horizontal":"horizontal"===e.flip||"both"===e.flip,"fa-flip-vertical":"vertical"===e.flip||"both"===e.flip},p(t,"fa-"+e.size,null!==e.size),p(t,"fa-rotate-"+e.rotation,null!==e.rotation),p(t,"fa-pull-"+e.pull,null!==e.pull),t);return Object.keys(n).map(function(e){return n[e]?e:null}).filter(function(e){return e})}(e)),m(i.split(" ")))),s=v("transform","string"==typeof e.transform?r.b.transform(e.transform):e.transform),c=v("mask",y(n)),f=Object(r.a)(l,d({},u,s,c,{symbol:o,title:a}));if(!f)return function(){var e;!g&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",l),null;var h=f.abstract,x={};return Object.keys(e).forEach(function(t){b.defaultProps.hasOwnProperty(t)||(x[t]=e[t])}),_(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 e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var o=(n.children||[]).map(e.bind(null,t)),i=Object.keys(n.attributes||{}).reduce(function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map(function(e){return e.trim()}).filter(function(e){return e}).reduce(function(e,t){var n,r=t.indexOf(":"),o=c.camelize(t.slice(0,r)),i=t.slice(r+1).trim();return o.startsWith("webkit")?e[(n=o,n.charAt(0).toUpperCase()+n.slice(1))]=i:e[o]=i,e},{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[c.camelize(t)]=r}return e},{attrs:{}}),a=r.style,l=void 0===a?{}:a,u=h(r,["style"]);return i.attrs.style=d({},i.attrs.style,l),t.apply(void 0,[n.tag,d({},i.attrs,u)].concat(m(o)))}.bind(null,l.a.createElement)}).call(this,n(7))},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"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(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,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(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=function(e){return document.querySelector(e)}.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),u=null,s=0,c=[],f=n(23);function p(e,t){for(var n=0;n<e.length;n++){var r=e[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],t))}else{var l=[];for(a=0;a<r.parts.length;a++)l.push(y(r.parts[a],t));i[r.id]={id:r.id,refs:1,parts:l}}}}function d(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.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(e,t){var n=l(e.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"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),c.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.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(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,o)}}function m(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=c.indexOf(e);t>=0&&c.splice(t,1)}function g(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),v(t,e.attrs),h(e,t),t}function v(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function y(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var a=s++;n=u||(u=g(t)),r=x.bind(null,n,a,!1),o=x.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",v(t,e.attrs),h(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.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=e.href;e.href=URL.createObjectURL(a),l&&URL.revokeObjectURL(l)}.bind(null,n,t),o=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=d(e,t);return p(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var a=n[o];(l=i[a.id]).refs--,r.push(l)}e&&p(d(e,t),t);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(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function x(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(0),o=n(9),i=n(1),a=function(){return function(){this.onSelectionChangedObservable=new i.Observable,this.onRebuildRequiredObservable=new i.Observable}}(),l=function(e,t){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function u(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=n(3),c=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return u(t,e),t.prototype.render=function(){var e="",t=new Array,n=new Array;if(this.props.node)for(var o in this.props.node.header&&(e=this.props.node.header),this.props.node.ports){var i=this.props.node.ports[o];"input"===i.position?t.push(r.createElement("div",{key:o,className:"input-port"},r.createElement("div",{className:"input-port-plug"},r.createElement(s.PortWidget,{key:o,name:i.name,node:this.props.node})),r.createElement("div",{className:"input-port-label"},i.name))):n.push(r.createElement("div",{key:o,className:"output-port"},r.createElement("div",{className:"output-port-label"},i.name),r.createElement("div",{className:"output-port-plug"},r.createElement(s.PortWidget,{key:o,name:i.name,node:this.props.node}))))}return r.createElement("div",{className:"diagramBlock"+(0===n.length?" output":"")},r.createElement("div",{className:"header"},e),r.createElement("div",{className:"inputs"},t),r.createElement("div",{className:"outputs"},n))},t}(r.Component),f=function(e){function t(n,r){void 0===r&&(r="input");var o=e.call(this,n,"generic")||this;return o.connection=null,o.getValue=function(){return null},o.position=r,t.idCounter++,o}return u(t,e),t.prototype.syncWithNodeMaterialConnectionPoint=function(e){this.connection=e,this.name=e.name},t.prototype.getNodeModel=function(){return this.parent},t.prototype.link=function(e){var t=this.createLinkModel();return t.setSourcePort(this),t.setTargetPort(e),t},t.prototype.getInputFromBlock=function(){},t.prototype.createLinkModel=function(){return new s.DefaultLinkModel},t.SortInputOutput=function(e,t){return e&&t?"output"==e.position&&"input"==t.position?{input:t,output:e}:"output"==t.position&&"input"==e.position?{input:e,output:t}:null:null},t.idCounter=0,t}(s.PortModel),p=function(e){function t(t){var n=e.call(this,t)||this;return n.block=null,n}return u(t,e),t.prototype.prepare=function(e,t,n,r,o){var a=this;this.block=e.nodeMaterialBlock||null,e.nodeMaterialBlock&&(e.nodeMaterialBlock._outputs.forEach(function(e){var t=new f(e.name,"output");t.syncWithNodeMaterialConnectionPoint(e),a.addPort(t)}),e.nodeMaterialBlock._inputs.forEach(function(l){if(!(o.length>0&&-1===o.indexOf(l.name))){var u=new f(l.name,"input");if(u.connection=l,a.addPort(u),console.log(l.name+" for "+e.nodeMaterialBlock.name),l.connectedPoint){var s=t.filter(function(e){return e.block===l._connectedPoint._ownerBlock}),c=(0==s.length?r.createNodeFromObject({column:e.column+1,nodeMaterialBlock:l.connectedPoint._ownerBlock}):s[0]).ports[l.connectedPoint.name].link(u);n.addAll(c)}else{var p="";l.type==i.NodeMaterialBlockConnectionPointTypes.Texture?p="Texture":l.type==i.NodeMaterialBlockConnectionPointTypes.Matrix?p="Matrix":l.type&i.NodeMaterialBlockConnectionPointTypes.Vector3OrColor3?p="Vector3":l.type&i.NodeMaterialBlockConnectionPointTypes.Vector2?p="Vector2":l.type&i.NodeMaterialBlockConnectionPointTypes.Vector3OrColor3OrVector4OrColor4&&(p="Vector4");var d=r.addValueNode(p,e.column+1,l);if(d){var h=d.getPorts();for(var m in h){c=h[m].link(u);n.addAll(c)}}}}}))},t.prototype.renderProperties=function(e){return null},t}(s.NodeModel),d=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.onLink=function(){this.props.onLink&&this.props.onLink()},t.prototype.renderContent=function(){var e=this;return this.props.onLink?r.createElement("div",{className:"link-value",title:this.props.value,onClick:function(){return e.onLink()}},this.props.value||"no name"):r.createElement("div",{className:"value",title:this.props.value,style:{color:this.props.color?this.props.color:""}},this.props.value||"no name")},t.prototype.render=function(){return r.createElement("div",{className:this.props.underline?"textLine underline":"textLine"},r.createElement("div",{className:"label"},this.props.label),this.renderContent())},t}(r.Component),h=function(e){function t(){var t=e.call(this,"generic")||this;return t.header="",t.vector2=null,t.vector3=null,t.vector4=null,t.matrix=null,t}return u(t,e),t.prototype.prepare=function(t,n,r,o,i){t.nodeMaterialBlock&&(this.header=t.nodeMaterialBlock.name),e.prototype.prepare.call(this,t,n,r,o,i)},t.prototype.renderProperties=function(e){return r.createElement("div",null,r.createElement(d,{label:"Type",value:this.block.getClassName()}))},t}(p),m=function(e){function t(t){var n=e.call(this,"generic")||this;return n._globalState=t,n}return u(t,e),t.prototype.generateReactWidget=function(e,t){return r.createElement(c,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new h},t}(s.AbstractNodeFactory),g=n(4),v={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"]},y={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"]},b={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"]},_=function(e){function t(n){var r,o=e.call(this,n)||this;try{r=t._InMemoryStorage&&void 0!==t._InMemoryStorage[o.props.title]?t._InMemoryStorage[o.props.title]:"undefined"!=typeof Storage&&null!==localStorage.getItem(o.props.title)?"true"===localStorage.getItem(o.props.title):!o.props.closed}catch(e){t._InMemoryStorage={},t._InMemoryStorage[o.props.title]=!o.props.closed,r=!o.props.closed}return o.state={isExpanded:r},o}return u(t,e),t.prototype.switchExpandedState=function(){var e=!this.state.isExpanded;try{t._InMemoryStorage?t._InMemoryStorage[this.props.title]=e:"undefined"!=typeof Storage&&localStorage.setItem(this.props.title,e?"true":"false")}catch(n){t._InMemoryStorage={},t._InMemoryStorage[this.props.title]=e}this.setState({isExpanded:e})},t.prototype.renderHeader=function(){var e=this,t=this.state.isExpanded?"collapse":"collapse closed";return r.createElement("div",{className:"header",onClick:function(){return e.switchExpandedState()}},r.createElement("div",{className:"title"},this.props.title),r.createElement("div",{className:t},r.createElement(g.a,{icon:v})))},t.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()))},t}(r.Component),x=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.render=function(){var e=this;return r.createElement("div",{className:"buttonLine"},r.createElement("button",{onClick:function(){return e.props.onClick()}},this.props.label))},t}(r.Component);n(21);var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this,t={Vertex:[i.BonesBlock,i.InstancesBlock,i.MorphTargetsBlock],Fragment:[i.AlphaTestBlock,,i.ImageProcessingBlock,i.RGBAMergerBlock,i.RGBASplitterBlock,i.TextureBlock],Outputs:[i.VertexOutputBlock,i.FragmentOutputBlock],Dual:[i.FogBlock],Math:[i.AddBlock,i.ClampBlock,i.MatrixMultiplicationBlock,i.MultiplyBlock,i.Vector2TransformBlock,i.Vector3TransformBlock,i.Vector4TransformBlock],Inputs:["Texture","Vector2","Vector3","Matrix"]},n=[];for(var o in t){var a=t[o].map(function(t){var n="string"==typeof t?t:t.prototype.getClassName().replace("Block",""),o="string"==typeof t?function(){e.props.onAddValueNode(t)}:function(){e.props.onAddNodeFromClass(t)};return r.createElement(x,{label:n,onClick:o})});n.push(r.createElement(_,{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)))},t}(r.Component);n(24);var k=function(e){function t(t){var n=e.call(this,t)||this;return n.state={currentNode:null},n}return u(t,e),t.prototype.componentWillMount=function(){var e=this;this.props.globalState.onSelectionChangedObservable.add(function(t){e.setState({currentNode:t})})},t.prototype.render=function(){return this.state.currentNode?r.createElement("div",{id:"propertyTab"},this.state.currentNode.renderProperties(this.props.globalState)):r.createElement("div",{id:"propertyTab"})},t}(r.Component),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){return o.createPortal(this.props.children,this.props.globalState.hostElement)},t}(r.Component),E=function(e){function t(t){var n=e.call(this,t)||this;return n.state={displayRed:!0,displayGreen:!0,displayBlue:!0,displayAlpha:!0,face:0},n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){return e.texture!==this.props.texture||t.displayRed!==this.state.displayRed||t.displayGreen!==this.state.displayGreen||t.displayBlue!==this.state.displayBlue||t.displayAlpha!==this.state.displayAlpha||t.face!==this.state.face},t.prototype.componentDidMount=function(){this.updatePreview()},t.prototype.componentDidUpdate=function(){this.updatePreview()},t.prototype.updatePreview=function(){var e=this,t=this.props.texture;!t.isReady()&&t._texture&&t._texture.onLoadedObservable.addOnce(function(){e.updatePreview()});var n,r=t.getScene(),o=r.getEngine(),a=t.getSize(),l=a.width/a.height,u=this.props.width,s=u/l|1;if(t.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 e.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(e){e.setTexture("textureSampler",t)};var d=p.getInternalTexture();if(d){r.postProcessManager.directRender([n],d);var h=4*u,m=s/2,g=o.readPixels(0,0,u,s);if(!(t.isCube||this.state.displayRed&&this.state.displayGreen&&this.state.displayBlue))for(var v=0;v<u*s*4;v+=4)if(this.state.displayRed||(g[v]=0),this.state.displayGreen||(g[v+1]=0),this.state.displayBlue||(g[v+2]=0),this.state.displayAlpha){var y=g[v+2];g[v]=y,g[v+1]=y,g[v+2]=y,g[v+2]=0}if(t.invertY||t.isCube)for(v=0;v<m;v++)for(var b=0;b<h;b++){var _=b+v*h,x=b+(s-v-1)*h,w=g[_];g[_]=g[x],g[x]=w}f.width=u,f.height=s;var k=f.getContext("2d");if(k){var P=k.createImageData(u,s);P.data.set(g),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)},t.prototype.render=function(){var e=this,t=this.props.texture;return r.createElement("div",{className:"textureLine"},!this.props.hideChannelSelect&&t.isCube&&r.createElement("div",{className:"control3D"},r.createElement("button",{className:0===this.state.face?"px command selected":"px command",onClick:function(){return e.setState({face:0})}},"PX"),r.createElement("button",{className:1===this.state.face?"nx command selected":"nx command",onClick:function(){return e.setState({face:1})}},"NX"),r.createElement("button",{className:2===this.state.face?"py command selected":"py command",onClick:function(){return e.setState({face:2})}},"PY"),r.createElement("button",{className:3===this.state.face?"ny command selected":"ny command",onClick:function(){return e.setState({face:3})}},"NY"),r.createElement("button",{className:4===this.state.face?"pz command selected":"pz command",onClick:function(){return e.setState({face:4})}},"PZ"),r.createElement("button",{className:5===this.state.face?"nz command selected":"nz command",onClick:function(){return e.setState({face:5})}},"NZ")),!this.props.hideChannelSelect&&!t.isCube&&r.createElement("div",{className:"control"},r.createElement("button",{className:this.state.displayRed&&!this.state.displayGreen?"red command selected":"red command",onClick:function(){return e.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 e.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 e.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 e.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 e.setState({displayRed:!0,displayGreen:!0,displayBlue:!0,displayAlpha:!0})}},"ALL")),r.createElement("canvas",{ref:"canvas",className:"preview"}))},t}(r.Component),C=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return u(t,e),t.prototype.render=function(){var e=new Array,t=new Array;if(this.props.node)for(var n in this.props.node.ports){var o=this.props.node.ports[n];"output"===o.position?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})))):"uv"===o.name&&e.push(r.createElement("div",{key:n,className:"input-port"},r.createElement("div",{className:"input-port-plug"},r.createElement(s.PortWidget,{key:n,name:o.name,node:this.props.node})),r.createElement("div",{className:"input-port-label"},o.name)))}return r.createElement("div",{className:"diagramBlock"},r.createElement("div",{className:"header"},"Texture ("+(this.props.node&&this.props.node.texture?this.props.node.texture.name:"not set")+")"),r.createElement("div",{className:"inputs"},e),r.createElement("div",{className:"outputs"},t),this.props.node&&this.props.node.texture&&r.createElement(E,{ref:"textureView",width:200,height:180,texture:this.props.node.texture,hideChannelSelect:!0}))},t}(r.Component),O=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.onChange=function(e){var t=e.target.files;t&&t.length&&this.props.onClick(t[0]),e.target.value=""},t.prototype.render=function(){var e=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(t){return e.onChange(t)}}))},t}(r.Component),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.replaceTexture=function(e){var t=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(e,function(r){var o=new Blob([r],{type:"octet/stream"}),i=URL.createObjectURL(o);if(n.isCube){var a=void 0;e.name.toLowerCase().indexOf(".dds")>0?a=".dds":e.name.toLowerCase().indexOf(".env")>0&&(a=".env"),n.updateURL(i,a,function(){return t.forceUpdate()})}else n.updateURL(i,null,function(){return t.forceUpdate()})},void 0,!0)}},t.prototype.render=function(){var e=this;return r.createElement("div",null,r.createElement("h1",null,"Texture"),r.createElement(O,{label:"Replace texture",onClick:function(t){return e.replaceTexture(t)},accept:".jpg, .png, .tga, .dds, .env"}))},t}(r.Component),T=function(e){function t(){var t=e.call(this,"texture")||this;return t.texture=null,t}return u(t,e),t.prototype.renderProperties=function(e){return r.createElement(S,{globalState:e,node:this})},t.prototype.prepare=function(t,n,r,o,i){var a=t.nodeMaterialBlock;this.texture=a.texture.value,e.prototype.prepare.call(this,t,n,r,o,i)},t}(p),M=function(e){function t(t){var n=e.call(this,"texture")||this;return n._globalState=t,n}return u(t,e),t.prototype.generateReactWidget=function(e,t){return r.createElement(C,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new T},t}(s.AbstractNodeFactory),N=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={value:n.props.value.toFixed(3)},n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this._localChange?(this._localChange=!1,!0):e.value.toString()!==t.value&&(t.value=e.value.toFixed(3),!0)},t.prototype.updateValue=function(e){var t=e.target.value;if(!/[^0-9\.\-]/g.test(t)){var n=parseFloat(t);this._localChange=!0,this.setState({value:t}),isNaN(n)||this.props.onChange(n)}},t.prototype.render=function(){var e=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(t){return e.updateValue(t)}}))},t.defaultProps={step:1},t}(r.Component),L=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={isExpanded:!1,value:n.props.target[n.props.propertyName].clone()},n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e.target[e.propertyName];return!(n.equals(t.value)&&!this._localChange)&&(t.value=n.clone(),this._localChange=!1,!0)},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e){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:e})},t.prototype.updateStateX=function(e){this._localChange=!0;var t=this.state.value.clone();this.props.target[this.props.propertyName].x=e,this.state.value.x=e,this.setState({value:this.state.value}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateY=function(e){this._localChange=!0;var t=this.state.value.clone();this.props.target[this.props.propertyName].y=e,this.state.value.y=e,this.setState({value:this.state.value}),this.raiseOnPropertyChanged(t)},t.prototype.render=function(){var e=this,t=this.state.isExpanded?r.createElement(g.a,{icon:y}):r.createElement(g.a,{icon:b});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 e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&r.createElement("div",{className:"secondLine"},r.createElement(N,{label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),r.createElement(N,{label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}})))},t.defaultProps={step:.001},t}(r.Component),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){return r.createElement(L,{label:"Value",target:this.props.connection,propertyName:"value"})},t}(r.Component),j=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={isExpanded:!1,value:n.props.target[n.props.propertyName].clone()},n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e.target[e.propertyName];return!(n.equals(t.value)&&!this._localChange)&&(t.value=n.clone(),this._localChange=!1,!0)},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e){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:e})},t.prototype.updateVector3=function(){var e=this.props.target[this.props.propertyName].clone();this.props.target[this.props.propertyName]=this.state.value,this.setState({value:e}),this.raiseOnPropertyChanged(e)},t.prototype.updateStateX=function(e){this._localChange=!0,this.state.value.x=e,this.updateVector3()},t.prototype.updateStateY=function(e){this._localChange=!0,this.state.value.y=e,this.updateVector3()},t.prototype.updateStateZ=function(e){this._localChange=!0,this.state.value.z=e,this.updateVector3()},t.prototype.render=function(){var e=this,t=this.state.isExpanded?r.createElement(g.a,{icon:y}):r.createElement(g.a,{icon:b});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 e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&r.createElement("div",{className:"secondLine"},r.createElement(N,{label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),r.createElement(N,{label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}}),r.createElement(N,{label:"z",step:this.props.step,value:this.state.value.z,onChange:function(t){return e.updateStateZ(t)}})))},t.defaultProps={step:.001},t}(r.Component),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){return r.createElement(j,{label:"Value",target:this.props.connection,propertyName:"value"})},t}(r.Component),R=function(e){function t(n){var r=e.call(this,n)||this;return r._localChange=!1,r._uniqueId=t._UniqueIdSeed++,r.props.isSelected?r.state={isSelected:r.props.isSelected()}:r.state={isSelected:!0===r.props.target[r.props.propertyName]},r}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n;return!((n=this.props.isSelected?e.isSelected():!0===e.target[e.propertyName])===t.isSelected&&!this._localChange)&&(t.isSelected=n,this._localChange=!1,!0)},t.prototype.onChange=function(){this._localChange=!0,this.props.onSelect?this.props.onSelect(!this.state.isSelected):(this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:!this.state.isSelected,initialValue:this.state.isSelected}),this.props.target[this.props.propertyName]=!this.state.isSelected),this.props.onValueChanged&&this.props.onValueChanged(),this.setState({isSelected:!this.state.isSelected})},t.prototype.render=function(){var e=this;return r.createElement("div",{className:"checkBoxLine"},r.createElement("div",{className:"label"},this.props.label),r.createElement("div",{className:"checkBox"},r.createElement("input",{type:"checkbox",id:"checkbox"+this._uniqueId,className:"cbx hidden",checked:this.state.isSelected,onChange:function(){return e.onChange()}}),r.createElement("label",{htmlFor:"checkbox"+this._uniqueId,className:"lbl"})))},t._UniqueIdSeed=0,t}(r.Component),F=(function(){}(),function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={value:t.target[t.propertyName]},n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var n=e.target[e.propertyName];return null!=n&&n!==t.value&&(t.value=n,!0)},t.prototype.raiseOnPropertyChanged=function(e,t){this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t})},t.prototype.updateValue=function(e){var t=parseInt(e);this._localChange=!0;var n=this.state.value;this.props.noDirectUpdate||(this.props.target[this.props.propertyName]=t),this.setState({value:t}),this.raiseOnPropertyChanged(t,n),this.props.onSelect&&this.props.onSelect(t)},t.prototype.render=function(){var e=this;return r.createElement("div",{className:"listLine"},r.createElement("div",{className:"label"},this.props.label),r.createElement("div",{className:"options"},r.createElement("select",{onChange:function(t){return e.updateValue(t.target.value)},value:this.state.value},this.props.options.map(function(e){return r.createElement("option",{key:e.label,value:e.value},e.label)}))))},t}(r.Component)),D=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderValue=function(e){var t=this.props.inputNode.connection;switch(t.type){case i.NodeMaterialBlockConnectionPointTypes.Vector2:return r.createElement(A,{globalState:e,connection:t});case i.NodeMaterialBlockConnectionPointTypes.Vector3:case i.NodeMaterialBlockConnectionPointTypes.Color3:case i.NodeMaterialBlockConnectionPointTypes.Vector3OrColor3:return r.createElement(I,{globalState:e,connection:t})}return null},t.prototype.setDefaultValue=function(){var e=this.props.inputNode.connection;switch(e.type){case i.NodeMaterialBlockConnectionPointTypes.Vector2:e.value=i.Vector2.Zero();break;case i.NodeMaterialBlockConnectionPointTypes.Vector3:case i.NodeMaterialBlockConnectionPointTypes.Color3:case i.NodeMaterialBlockConnectionPointTypes.Vector3OrColor3:e.value=i.Vector3.Zero();break;case i.NodeMaterialBlockConnectionPointTypes.Matrix:e.value=i.Matrix.Identity()}},t.prototype.render=function(){var e=this,t=this.props.inputNode.connection,n=[{label:"World",value:i.NodeMaterialWellKnownValues.World},{label:"WorldxView",value:i.NodeMaterialWellKnownValues.WorldView},{label:"WorldxViewxProjection",value:i.NodeMaterialWellKnownValues.WorldViewProjection},{label:"View",value:i.NodeMaterialWellKnownValues.View},{label:"ViewxProjection",value:i.NodeMaterialWellKnownValues.ViewProjection},{label:"Projection",value:i.NodeMaterialWellKnownValues.Projection},{label:"Automatic",value:i.NodeMaterialWellKnownValues.Automatic}];return r.createElement("div",null,r.createElement("h1",null,function(e){switch(e){case i.NodeMaterialBlockConnectionPointTypes.Vector3OrColor3:case i.NodeMaterialBlockConnectionPointTypes.Color3:return i.NodeMaterialBlockConnectionPointTypes[i.NodeMaterialBlockConnectionPointTypes.Vector3];case i.NodeMaterialBlockConnectionPointTypes.Vector4OrColor4:case i.NodeMaterialBlockConnectionPointTypes.Vector3OrVector4:case i.NodeMaterialBlockConnectionPointTypes.Color3OrColor4:case i.NodeMaterialBlockConnectionPointTypes.Vector3OrColor3OrVector4OrColor4:case i.NodeMaterialBlockConnectionPointTypes.Color4:return i.NodeMaterialBlockConnectionPointTypes[i.NodeMaterialBlockConnectionPointTypes.Vector4];default:return i.NodeMaterialBlockConnectionPointTypes[e]}}(t.type)),r.createElement(R,{label:"Is mesh attribute",onSelect:function(n){t.isAttribute=n,e.props.globalState.onRebuildRequiredObservable.notifyObservers(),e.forceUpdate()},isSelected:function(){return t.isAttribute}}),t.isUniform&&r.createElement(R,{label:"Is well known value",onSelect:function(n){n?t.setAsWellKnownValue(i.NodeMaterialWellKnownValues.World):(t.setAsWellKnownValue(null),e.setDefaultValue()),e.props.globalState.onRebuildRequiredObservable.notifyObservers(),e.forceUpdate()},isSelected:function(){return t.isWellKnownValue}}),t.isUniform&&!t.isWellKnownValue&&this.renderValue(this.props.globalState),t.isUniform&&t.isWellKnownValue&&r.createElement(F,{label:"Well known value",options:n,target:t,propertyName:"wellKnownValue",onSelect:function(n){t.setAsWellKnownValue(n),e.forceUpdate(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}}))},t}(r.Component),W=function(e){function t(){return e.call(this,"input")||this}return u(t,e),t.prototype.renderProperties=function(e){return this.connection?r.createElement(D,{globalState:e,inputNode:this}):null},t}(p),z=function(e){function t(t){var n=e.call(this,t)||this;return n.state={},n.props.node&&n.props.node.addListener({selectionChanged:function(){var e=n.props.node.selected;n.props.globalState.onSelectionChangedObservable.notifyObservers(e?n.props.node:null)}}),n}return u(t,e),t.prototype.render=function(){var e,t=new Array;if(this.props.node)for(var n in this.props.node.ports){e=this.props.node.ports[n],t.push(r.createElement("div",{key:n,className:"output-port"},r.createElement("div",{className:"output-port-label"}),r.createElement("div",{className:"output-port-plug"},r.createElement(s.PortWidget,{key:n,name:e.name,node:this.props.node}))));break}var o=this.props.node.connection,a="";if(o.isAttribute)a="mesh."+o.name;else if(o.isWellKnownValue)switch(o.wellKnownValue){case i.NodeMaterialWellKnownValues.World:a="World";break;case i.NodeMaterialWellKnownValues.WorldView:a="World x View";break;case i.NodeMaterialWellKnownValues.WorldViewProjection:a="World x View x Projection";break;case i.NodeMaterialWellKnownValues.View:a="View";break;case i.NodeMaterialWellKnownValues.ViewProjection:a="View x Projection";break;case i.NodeMaterialWellKnownValues.Projection:a="Projection";break;case i.NodeMaterialWellKnownValues.Automatic:a="Automatic"}return r.createElement("div",{className:"diagramBlock input"+(o.isAttribute?" attribute":"")},r.createElement("div",{className:"header"},e.name),r.createElement("div",{className:"outputs"},t),r.createElement("div",{className:"value"},a))},t}(r.Component),U=function(e){function t(t){var n=e.call(this,"input")||this;return n._globalState=t,n}return u(t,e),t.prototype.generateReactWidget=function(e,t){return r.createElement(z,{node:t,globalState:this._globalState})},t.prototype.getNewInstance=function(){return new W},t}(s.AbstractNodeFactory);n(26),n(28),n(30);var B=function(e){function t(t){var n=e.call(this,t)||this;if(n._nodes=new Array,n._rowPos=new Array,n._engine=new s.DiagramEngine,n._engine.installDefaultFactories(),n._engine.registerNodeFactory(new m(n.props.globalState)),n._engine.registerNodeFactory(new M(n.props.globalState)),n._engine.registerNodeFactory(new U(n.props.globalState)),n._model=new s.DiagramModel,n._model.addListener({linksUpdated:function(e){if(e.isCreated)console.log("link created"),console.log(e.link.sourcePort);else{console.log("link deleted");var t=f.SortInputOutput(e.link.sourcePort,e.link.targetPort);console.log(t),t&&(t.output.connection&&t.input.connection?(console.log("disconnected "+t.output.connection.name+" from "+t.input.connection.name),t.output.connection.disconnectFrom(t.input.connection),t.input.syncWithNodeMaterialConnectionPoint(t.input.connection),t.output.syncWithNodeMaterialConnectionPoint(t.output.connection)):t.input.connection&&t.input.connection.value?(console.log("value link removed"),t.input.connection.value=null):console.log("invalid link error"))}e.link.addListener({sourcePortChanged:function(){console.log("port change")},targetPortChanged:function(){console.log("Link set to target");var t=f.SortInputOutput(e.link.sourcePort,e.link.targetPort);t&&(t.output.connection&&t.input.connection?(console.log("link standard blocks"),t.output.connection.connectTo(t.input.connection)):t.input.connection&&(console.log("link value to standard block"),t.input.connection.value=t.output.getValue()),n.props.globalState.nodeMaterial&&n.props.globalState.nodeMaterial.build())}})},nodesUpdated:function(e){e.isCreated?console.log("new node"):console.log("node deleted")}}),n.props.globalState.onRebuildRequiredObservable.add(function(){n.props.globalState.nodeMaterial&&n.props.globalState.nodeMaterial.build()}),n.props.globalState.nodeMaterial){var r=n.props.globalState.nodeMaterial;r._vertexOutputNodes.forEach(function(e){n.createNodeFromObject({column:0,nodeMaterialBlock:e})}),r._fragmentOutputNodes.forEach(function(e){n.createNodeFromObject({column:0,nodeMaterialBlock:e})})}return n._model.setZoomLevel(80),n._engine.setDiagramModel(n._model),n}return u(t,e),t.prototype.createNodeFromObject=function(e){var t;null==this._rowPos[e.column]?this._rowPos[e.column]=0:this._rowPos[e.column]++;var n=[];return e.nodeMaterialBlock?e.nodeMaterialBlock instanceof i.TextureBlock?(t=new T,n.push("uv")):t=new h:(t=new W).connection=e.connection,this._nodes.push(t),t.setPosition(1600-300*e.column,210*this._rowPos[e.column]),this._model.addAll(t),e.nodeMaterialBlock&&t.prepare(e,this._nodes,this._model,this,n),t},t.prototype.componentDidMount=function(){if(this.props.globalState.hostDocument){var e=this.refs.test;e.setState({document:this.props.globalState.hostDocument}),this.props.globalState.hostDocument.addEventListener("keyup",e.onKeyUpPointer,!1)}},t.prototype.componentWillUnmount=function(){if(this.props.globalState.hostDocument){var e=this.refs.test;this.props.globalState.hostDocument.removeEventListener("keyup",e.onKeyUpPointer,!1)}},t.prototype.addNodeFromClass=function(e){var t=this,n=new e(e.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,t._model))},500),r},t.prototype.addValueNode=function(e,t,n){void 0===t&&(t=0);var r=this.createNodeFromObject({column:t,type:e,connection:n}),o=new f(e,"output");return r.addPort(o),this.forceUpdate(),r},t.prototype.render=function(){var e=this;return r.createElement(P,{globalState:this.props.globalState},r.createElement("div",{id:"node-editor-graph-root"},r.createElement(w,{globalState:this.props.globalState,onAddValueNode:function(t){return e.addValueNode(t)},onAddNodeFromClass:function(t){return e.addNodeFromClass(t)}}),r.createElement(s.DiagramWidget,{deleteKeys:[46],ref:"test",inverseZoom:!0,className:"diagram-container",diagramEngine:this._engine,maxNumberPointsPerLink:0}),r.createElement(k,{globalState:this.props.globalState})))},t}(r.Component),V=function(){function e(){}return e.CreatePopup=function(e,t,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(e){return e+"="+i[e]}).join(","),l=window.open("",e,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=e,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[t]=l,c},e._CopyStyles=function(e,t){for(var n=0;n<e.styleSheets.length;n++){var r=e.styleSheets[n];try{if(r.cssRules){for(var o=e.createElement("style"),i=0,a=r.cssRules;i<a.length;i++){var l=a[i];o.appendChild(e.createTextNode(l.cssText))}t.head.appendChild(o)}else if(r.href){var u=e.createElement("link");u.rel="stylesheet",u.href=r.href,t.head.appendChild(u)}}catch(e){console.log(e)}}},e}(),Y=function(){function e(){}return e.Show=function(e){var t=V.CreatePopup("BABYLON.JS NODE EDITOR","node-editor",1e3,800),n=new a;n.nodeMaterial=e.nodeMaterial,n.hostElement=t,n.hostDocument=t.ownerDocument;var i=r.createElement(B,{globalState:n});o.render(i,t);var l=V["node-editor"];n.nodeMaterial&&l&&(n.nodeMaterial.getScene().onDisposeObservable.addOnce(function(){l&&l.close()}),window.onbeforeunload=function(e){var t=V["node-editor"];t&&t.close()})},e}();n.d(t,"a",function(){return Y})},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(14)},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){o(e,t,n[t])})}return e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(t,"a",function(){return le}),n.d(t,"b",function(){return ae});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(e){}var f=(u.navigator||{}).userAgent,p=void 0===f?"":f,d=u,h=s,m=c,g=(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(e){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(e){return"".concat(e,"x")})).concat(x.map(function(e){return"w-".concat(e)})),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(e){var t=a(e,2),n=t[0],r=t[1],o=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=h.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(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=[];g&&((h.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(h.readyState)||h.addEventListener("DOMContentLoaded",function e(){h.removeEventListener("DOMContentLoaded",e),1,O.map(function(e){return e()})}));var S={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function T(e){if(e&&g){var t=h.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;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(t,r),e}}var M="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function N(){for(var e=12,t="";e-- >0;)t+=M[62*Math.random()|0];return t}function L(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function A(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n],";")},"")}function j(e){return e.size!==S.size||e.x!==S.x||e.y!==S.y||e.rotate!==S.rotate||e.flipX||e.flipY}function I(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.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(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,a=e.iconName,l=e.transform,u=e.symbol,s=e.title,c=e.extra,f=e.watchable,p=void 0!==f&&f,d=r.found?r:n,h=d.width,m=d.height,g="fa-w-".concat(Math.ceil(h/m*16)),v=[P.replacementClass,a?"".concat(P.familyPrefix,"-").concat(a):"",g].filter(function(e){return-1===c.classes.indexOf(e)}).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(m)})};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(e){var t=e.children,n=e.attributes,r=e.main,o=e.mask,a=e.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]},m="mask-".concat(N()),g="clip-".concat(N()),v={tag:"defs",children:[{tag:"clipPath",attributes:{id:g},children:[c]},{tag:"mask",attributes:i({},R,{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,h]}]};return t.push(v,{tag:"rect",attributes:i({fill:"currentColor","clip-path":"url(#".concat(g,")"),mask:"url(#".concat(m,")")},R)}),{children:t,attributes:n}}(_):function(e){var t=e.children,n=e.attributes,r=e.main,o=e.transform,a=A(e.styles);if(a.length>0&&(n.style=a),j(o)){var l=I({transform:o,containerWidth:r.width,iconWidth:r.width});t.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 t.push(r.icon);return{children:t,attributes:n}}(_),w=x.children,k=x.attributes;return _.children=w,_.attributes=k,u?function(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,a=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:i({},o,{id:!0===a?"".concat(t,"-").concat(P.familyPrefix,"-").concat(n):a}),children:r}]}]}(_):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,a=e.styles,l=e.transform;if(j(l)&&n.found&&!r.found){var u={x:n.width/n.height/2,y:.5};o.style=A(i({},a,{"transform-origin":"".concat(u.x+l.x/16,"em ").concat(u.y+l.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(_)}var D=function(){},W=(P.measurePerformance&&m&&m.mark&&m.measure,function(e,t,n,r){var o,i,a,l=Object.keys(e),u=l.length,s=void 0!==r?function(e,t){return function(n,r,o,i){return e.call(t,n,r,o,i)}}(t,r):t;for(void 0===n?(o=1,a=e[l[0]]):(o=0,a=n);o<u;o++)a=s(a,e[i=l[o]],i,e);return a}),z=C.styles,U=C.shims,B=function(){var e=function(e){return W(z,function(t,n,r){return t[r]=W(n,e,{}),t},{})};e(function(e,t,n){return e[t[3]]=n,e}),e(function(e,t,n){var r=t[2];return e[n]=n,r.forEach(function(t){e[t]=n}),e});var t="far"in z;W(U,function(e,n){var r=n[0],o=n[1],i=n[2];return"far"!==o||t||(o="fas"),e[r]={prefix:o,iconName:i},e},{})};B();C.styles;function V(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function Y(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,o=e.children,i=void 0===o?[]:o;return"string"==typeof e?L(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(L(e[n]),'" ')},"").trim()}(r),">").concat(i.map(Y).join(""),"</").concat(t,">")}var X=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce(function(e,t){var n=t.toLowerCase().split("-"),r=n[0],o=n.slice(1).join("-");if(r&&"h"===o)return e.flipX=!0,e;if(r&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(r){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e},t):t};function G(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}G.prototype=Object.create(Error.prototype),G.prototype.constructor=G;var H={fill:"currentColor"},K={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"})},$=i({},K,{attributeName:"opacity"});i({},H,{cx:"256",cy:"364",r:"28"}),i({},K,{attributeName:"r",values:"28;14;28;28;14;28;"}),i({},$,{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({},$,{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({},$,{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 e=v,t=y,n=P.familyPrefix,r=P.replacementClass,o=Z;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,".".concat(r))}return o}function J(e){return{found:!0,width:e[0],height:e[1],icon:{tag:"path",attributes:{fill:"currentColor",d:e.slice(4)[0]}}}}function ee(){P.autoAddCss&&!ie&&(T(Q()),ie=!0)}function te(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(e){return Y(e)})}}),Object.defineProperty(e,"node",{get:function(){if(g){var t=h.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function ne(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return V(oe.definitions,n,r)||V(C.styles,n,r)}var re,oe=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n,o;return t=e,(n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(t){e.definitions[t]=i({},e.definitions[t]||{},o[t]),function e(t,n){var r=Object.keys(n).reduce(function(e,t){var r=n[t];return r.icon?e[r.iconName]=r.icon:e[t]=r,e},{});"function"==typeof C.hooks.addPack?C.hooks.addPack(t,r):C.styles[t]=i({},C.styles[t]||{},r),"fas"===t&&e("fa",n)}(t,o[t]),B()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map(function(t){var r=n[t],o=r.prefix,i=r.iconName,a=r.icon;e[o]||(e[o]={}),e[o][i]=a}),e}}])&&r(t.prototype,n),o&&r(t,o),e}()),ie=!1,ae={transform:function(e){return X(e)}},le=(re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?S:n,o=t.symbol,a=void 0!==o&&o,l=t.mask,u=void 0===l?null:l,s=t.title,c=void 0===s?null:s,f=t.classes,p=void 0===f?[]:f,d=t.attributes,h=void 0===d?{}:d,m=t.styles,g=void 0===m?{}:m;if(e){var v=e.prefix,y=e.iconName,b=e.icon;return te(i({type:"icon"},e),function(){return ee(),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:g,classes:p}})})}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:ne(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:ne(r||{})),re(n,i({},t,{mask:r}))})},function(e,t,n){"use strict";
- /*
- object-assign
- (c) Sindre Sorhus
- @license MIT
- */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),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(e,t,n){"use strict";n.r(t),function(e){var r=n(8);n.d(t,"NodeEditor",function(){return r.a});var o=void 0!==e?e:"undefined"!=typeof window?window:void 0;void 0!==o&&(o.BABYLON=o.BABYLON||{},o.BABYLON.NodeEditor=r.a)}.call(this,n(7))},function(e,t,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,m=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,v="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,i,a,l){if(!e){if(e=void 0,void 0===t)e=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;(e=Error(t.replace(/%s/g,function(){return u[s++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; 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(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||b}function w(){}function k(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||b}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&y("85"),this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"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(e,t,n){var r=void 0,o={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)C.call(t,r)&&!O.hasOwnProperty(r)&&(o[r]=t[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(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:i,type:e,key:a,ref:l,props:o,_owner:E.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var M=/\/+/g,N=[];function L(e,t,n,r){if(N.length){var o=N.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function A(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>N.length&&N.push(e)}function j(e,t,n){return null==e?0:function e(t,n,r,o){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case a:u=!0}}if(u)return r(o,t,""===n?"."+I(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s<t.length;s++){var c=n+I(l=t[s],s);u+=e(l,c,r,o)}else if(c=null===t||"object"!=typeof t?null:"function"==typeof(c=v&&t[v]||t["@@iterator"])?c:null,"function"==typeof c)for(t=c.call(t),s=0;!(l=t.next()).done;)u+=e(l=l.value,c=n+I(l,s++),r,o);else"object"===l&&y("31","[object Object]"==(r=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return u}(e,"",t,n)}function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function R(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?D(e,r,n,function(e){return e}):null!=e&&(T(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(M,"$&/")+"/")+n)),r.push(e))}function D(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(M,"$&/")+"/"),j(e,F,t=L(t,i,r,o)),A(t)}var W={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return D(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;j(e,R,t=L(null,null,t,n)),A(t)},count:function(e){return j(e,function(){return null},null)},toArray:function(e){var t=[];return D(e,t,null,function(e){return e}),t},only:function(e){return T(e)||y("143"),e}},createRef:function(){return{current:null}},Component:x,PureComponent:k,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:d,render:e}},lazy:function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},Fragment:l,StrictMode:u,Suspense:h,createElement:S,cloneElement:function(e,t,n){null==e&&y("267",e);var o=void 0,a=r({},e.props),l=e.key,u=e.ref,s=e._owner;if(null!=t){void 0!==t.ref&&(u=t.ref,s=E.current),void 0!==t.key&&(l=""+t.key);var c=void 0;for(o in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)C.call(t,o)&&!O.hasOwnProperty(o)&&(a[o]=void 0===t[o]&&void 0!==c?c[o]:t[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:e.type,key:l,ref:u,props:a,_owner:s}},createFactory:function(e){var t=S.bind(null,e);return t.type=e,t},isValidElement:T,version:"16.6.3",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:E,assign:r}};W.unstable_ConcurrentMode=p,W.unstable_Profiler=s;var z={default:W},U=z&&W||z;e.exports=U.default||U},function(e,t,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(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);!function(e,t,n,r,o,i,a,l){if(!e){if(e=void 0,void 0===t)e=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;(e=Error(t.replace(/%s/g,function(){return u[s++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; 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(e){l=!0,u=e}};function p(e,t,n,r,o,i,a,s,c){l=!1,u=null,function(e,t,n,r,o,i,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}.apply(f,arguments)}var d=null,h={};function m(){if(d)for(var e in h){var t=h[e],n=d.indexOf(e);if(-1<n||a("96",e),!v[n])for(var r in t.extractEvents||a("97",e),v[n]=t,n=t.eventTypes){var o=void 0,i=n[r],l=t,u=r;y.hasOwnProperty(u)&&a("99",u),y[u]=i;var s=i.phasedRegistrationNames;if(s){for(o in s)s.hasOwnProperty(o)&&g(s[o],l,u);o=!0}else i.registrationName?(g(i.registrationName,l,u),o=!0):o=!1;o||a("98",r,e)}}}function g(e,t,n){b[e]&&a("100",e),b[e]=t,_[e]=t.eventTypes[n].dependencies}var v=[],y={},b={},_={},x=null,w=null,k=null;function P(e,t,n){var r=e.type||"unknown-event";e.currentTarget=k(n),function(e,t,n,r,o,i,f,d,h){if(p.apply(this,arguments),l){if(l){var m=u;l=!1,u=null}else a("198"),m=void 0;s||(s=!0,c=m)}}(r,t,void 0,e),e.currentTarget=null}function E(e,t){return null==t&&a("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function C(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var O=null;function S(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)P(e,t[r],n[r]);else t&&P(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}var T={injectEventPluginOrder:function(e){d&&a("101"),d=Array.prototype.slice.call(e),m()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];h.hasOwnProperty(t)&&h[t]===r||(h[t]&&a("102",t),h[t]=r,n=!0)}n&&m()}};function M(e,t){var n=e.stateNode;if(!n)return null;var r=x(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&a("231",t,typeof n),n)}function N(e){if(null!==e&&(O=E(O,e)),e=O,O=null,e&&(C(e,S),O&&a("95"),s))throw e=c,s=!1,c=null,e}var L=Math.random().toString(36).slice(2),A="__reactInternalInstance$"+L,j="__reactEventHandlers$"+L;function I(e){if(e[A])return e[A];for(;!e[A];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[A]).tag||6===e.tag?e:null}function R(e){return!(e=e[A])||5!==e.tag&&6!==e.tag?null:e}function F(e){if(5===e.tag||6===e.tag)return e.stateNode;a("33")}function D(e){return e[j]||null}function W(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function z(e,t,n){(t=M(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=E(n._dispatchListeners,t),n._dispatchInstances=E(n._dispatchInstances,e))}function U(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=W(t);for(t=n.length;0<t--;)z(n[t],"captured",e);for(t=0;t<n.length;t++)z(n[t],"bubbled",e)}}function B(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=M(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=E(n._dispatchListeners,t),n._dispatchInstances=E(n._dispatchInstances,e))}function V(e){e&&e.dispatchConfig.registrationName&&B(e._targetInst,null,e)}function Y(e){C(e,U)}var X=!("undefined"==typeof window||!window.document||!window.document.createElement);function G(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var H={animationend:G("Animation","AnimationEnd"),animationiteration:G("Animation","AnimationIteration"),animationstart:G("Animation","AnimationStart"),transitionend:G("Transition","TransitionEnd")},K={},q={};function $(e){if(K[e])return K[e];if(!H[e])return e;var t,n=H[e];for(t in n)if(n.hasOwnProperty(t)&&t in q)return K[e]=n[t];return e}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=$("animationend"),Q=$("animationiteration"),J=$("animationstart"),ee=$("transitionend"),te="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ne=null,re=null,oe=null;function ie(){if(oe)return oe;var e,t,n=re,r=n.length,o="value"in ne?ne.value:ne.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return oe=o.slice(e,1<t?1-t:void 0)}function ae(){return!0}function le(){return!1}function ue(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ae:le,this.isPropagationStopped=le,this}function se(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function ce(e){e instanceof this||a("279"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=se,e.release=ce}o(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:le,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=le,this._dispatchInstances=this._dispatchListeners=null}}),ue.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ue.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,fe(n),n},fe(ue);var pe=ue.extend({data:null}),de=ue.extend({data:null}),he=[9,13,27,32],me=X&&"CompositionEvent"in window,ge=null;X&&"documentMode"in document&&(ge=document.documentMode);var ve=X&&"TextEvent"in window&&!ge,ye=X&&(!me||ge&&8<ge&&11>=ge),be=String.fromCharCode(32),_e={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(" ")}},xe=!1;function we(e,t){switch(e){case"keyup":return-1!==he.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ke(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Pe=!1;var Ee={eventTypes:_e,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(me)e:{switch(e){case"compositionstart":o=_e.compositionStart;break e;case"compositionend":o=_e.compositionEnd;break e;case"compositionupdate":o=_e.compositionUpdate;break e}o=void 0}else Pe?we(e,n)&&(o=_e.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=_e.compositionStart);return o?(ye&&"ko"!==n.locale&&(Pe||o!==_e.compositionStart?o===_e.compositionEnd&&Pe&&(i=ie()):(re="value"in(ne=r)?ne.value:ne.textContent,Pe=!0)),o=pe.getPooled(o,t,n,r),i?o.data=i:null!==(i=ke(n))&&(o.data=i),Y(o),i=o):i=null,(e=ve?function(e,t){switch(e){case"compositionend":return ke(t);case"keypress":return 32!==t.which?null:(xe=!0,be);case"textInput":return(e=t.data)===be&&xe?null:e;default:return null}}(e,n):function(e,t){if(Pe)return"compositionend"===e||!me&&we(e,t)?(e=ie(),oe=re=ne=null,Pe=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ye&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=de.getPooled(_e.beforeInput,t,n,r)).data=e,Y(t)):t=null,null===i?t:null===t?i:[i,t]}},Ce=null,Oe=null,Se=null;function Te(e){if(e=w(e)){"function"!=typeof Ce&&a("280");var t=x(e.stateNode);Ce(e.stateNode,e.type,t)}}function Me(e){Oe?Se?Se.push(e):Se=[e]:Oe=e}function Ne(){if(Oe){var e=Oe,t=Se;if(Se=Oe=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Le(e,t){return e(t)}function Ae(e,t,n){return e(t,n)}function je(){}var Ie=!1;function Re(e,t){if(Ie)return e(t);Ie=!0;try{return Le(e,t)}finally{Ie=!1,(null!==Oe||null!==Se)&&(je(),Ne())}}var Fe={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 De(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fe[e.type]:"textarea"===t}function We(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ze(e){if(!X)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function Ue(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Be(e){e._valueTracker||(e._valueTracker=function(e){var t=Ue(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ve(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ue(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var Ye=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xe=/^(.*)[\\\/]/,Ge="function"==typeof Symbol&&Symbol.for,He=Ge?Symbol.for("react.element"):60103,Ke=Ge?Symbol.for("react.portal"):60106,qe=Ge?Symbol.for("react.fragment"):60107,$e=Ge?Symbol.for("react.strict_mode"):60108,Ze=Ge?Symbol.for("react.profiler"):60114,Qe=Ge?Symbol.for("react.provider"):60109,Je=Ge?Symbol.for("react.context"):60110,et=Ge?Symbol.for("react.concurrent_mode"):60111,tt=Ge?Symbol.for("react.forward_ref"):60112,nt=Ge?Symbol.for("react.suspense"):60113,rt=Ge?Symbol.for("react.memo"):60115,ot=Ge?Symbol.for("react.lazy"):60116,it="function"==typeof Symbol&&Symbol.iterator;function at(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=it&&e[it]||e["@@iterator"])?e:null}function lt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case et:return"ConcurrentMode";case qe:return"Fragment";case Ke:return"Portal";case Ze:return"Profiler";case $e:return"StrictMode";case nt:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case Je:return"Context.Consumer";case Qe:return"Context.Provider";case tt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case rt:return lt(e.type);case ot:if(e=1===e._status?e._result:null)return lt(e)}return null}function ut(e){var t="";do{e:switch(e.tag){case 2:case 16:case 0:case 1:case 5:case 8:case 13:var n=e._debugOwner,r=e._debugSource,o=lt(e.type),i=null;n&&(i=lt(n.type)),n=o,o="",r?o=" (at "+r.fileName.replace(Xe,"")+":"+r.lineNumber+")":i&&(o=" (created by "+i+")"),i="\n in "+(n||"Unknown")+o;break e;default:i=""}t+=i,e=e.return}while(e);return t}var st=/^[: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]*$/,ct=Object.prototype.hasOwnProperty,ft={},pt={};function dt(e,t,n,r,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t}var ht={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ht[e]=new dt(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ht[t]=new dt(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ht[e]=new dt(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ht[e]=new dt(e,2,!1,e,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(e){ht[e]=new dt(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){ht[e]=new dt(e,3,!0,e,null)}),["capture","download"].forEach(function(e){ht[e]=new dt(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){ht[e]=new dt(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){ht[e]=new dt(e,5,!1,e.toLowerCase(),null)});var mt=/[\-:]([a-z])/g;function gt(e){return e[1].toUpperCase()}function vt(e,t,n,r){var o=ht.hasOwnProperty(t)?ht[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!ct.call(pt,e)||!ct.call(ft,e)&&(st.test(e)?pt[e]=!0:(ft[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function yt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function bt(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function _t(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=yt(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function xt(e,t){null!=(t=t.checked)&&vt(e,"checked",t,!1)}function wt(e,t){xt(e,t);var n=yt(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Pt(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pt(e,t.type,yt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function kt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Pt(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.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(e){var t=e.replace(mt,gt);ht[t]=new dt(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(mt,gt);ht[t]=new dt(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(mt,gt);ht[t]=new dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),ht.tabIndex=new dt("tabIndex",1,!1,"tabindex",null);var Et={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Ct(e,t,n){return(e=ue.getPooled(Et.change,e,t,n)).type="change",Me(n),Y(e),e}var Ot=null,St=null;function Tt(e){N(e)}function Mt(e){if(Ve(F(e)))return e}function Nt(e,t){if("change"===e)return t}var Lt=!1;function At(){Ot&&(Ot.detachEvent("onpropertychange",jt),St=Ot=null)}function jt(e){"value"===e.propertyName&&Mt(St)&&Re(Tt,e=Ct(St,e,We(e)))}function It(e,t,n){"focus"===e?(At(),St=n,(Ot=t).attachEvent("onpropertychange",jt)):"blur"===e&&At()}function Rt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Mt(St)}function Ft(e,t){if("click"===e)return Mt(t)}function Dt(e,t){if("input"===e||"change"===e)return Mt(t)}X&&(Lt=ze("input")&&(!document.documentMode||9<document.documentMode));var Wt={eventTypes:Et,_isInputEventSupported:Lt,extractEvents:function(e,t,n,r){var o=t?F(t):window,i=void 0,a=void 0,l=o.nodeName&&o.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===o.type?i=Nt:De(o)?Lt?i=Dt:(i=Rt,a=It):(l=o.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=Ft),i&&(i=i(e,t)))return Ct(i,n,r);a&&a(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Pt(o,"number",o.value)}},zt=ue.extend({view:null,detail:null}),Ut={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ut[e])&&!!t[e]}function Vt(){return Bt}var Yt=0,Xt=0,Gt=!1,Ht=!1,Kt=zt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Vt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Yt;return Yt=e.screenX,Gt?"mousemove"===e.type?e.screenX-t:0:(Gt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Xt;return Xt=e.screenY,Ht?"mousemove"===e.type?e.screenY-t:0:(Ht=!0,0)}}),qt=Kt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),$t={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Zt={eventTypes:$t,extractEvents:function(e,t,n,r){var o="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;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=t,t=(t=n.relatedTarget||n.toElement)?I(t):null):i=null,i===t)return null;var a=void 0,l=void 0,u=void 0,s=void 0;"mouseout"===e||"mouseover"===e?(a=Kt,l=$t.mouseLeave,u=$t.mouseEnter,s="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=qt,l=$t.pointerLeave,u=$t.pointerEnter,s="pointer");var c=null==i?o:F(i);if(o=null==t?o:F(t),(e=a.getPooled(l,i,n,r)).type=s+"leave",e.target=c,e.relatedTarget=o,(n=a.getPooled(u,t,n,r)).type=s+"enter",n.target=o,n.relatedTarget=c,r=t,i&&r)e:{for(o=r,s=0,a=t=i;a;a=W(a))s++;for(a=0,u=o;u;u=W(u))a++;for(;0<s-a;)t=W(t),s--;for(;0<a-s;)o=W(o),a--;for(;s--;){if(t===o||t===o.alternate)break e;t=W(t),o=W(o)}t=null}else t=null;for(o=t,t=[];i&&i!==o&&(null===(s=i.alternate)||s!==o);)t.push(i),i=W(i);for(i=[];r&&r!==o&&(null===(s=r.alternate)||s!==o);)i.push(r),r=W(r);for(r=0;r<t.length;r++)B(t[r],"bubbled",e);for(r=i.length;0<r--;)B(i[r],"captured",n);return[e,n]}},Qt=Object.prototype.hasOwnProperty;function Jt(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function en(e,t){if(Jt(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Qt.call(t,n[r])||!Jt(e[n[r]],t[n[r]]))return!1;return!0}function tn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function nn(e){2!==tn(e)&&a("188")}function rn(e){if(!(e=function(e){var t=e.alternate;if(!t)return 3===(t=tn(e))&&a("188"),1===t?null:e;for(var n=e,r=t;;){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),e;if(l===r)return nn(o),t;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?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var on=ue.extend({animationName:null,elapsedTime:null,pseudoElement:null}),an=ue.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ln=zt.extend({relatedTarget:null});function un(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}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=zt.extend({key:function(e){if(e.key){var t=sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=un(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?cn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Vt,charCode:function(e){return"keypress"===e.type?un(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?un(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),pn=Kt.extend({dataTransfer:null}),dn=zt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Vt}),hn=ue.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),mn=Kt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),gn=[["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"],[ee,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],vn={},yn={};function bn(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},vn[e]=t,yn[n]=t}[["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(e){bn(e,!0)}),gn.forEach(function(e){bn(e,!1)});var _n={eventTypes:vn,isInteractiveTopLevelEventType:function(e){return void 0!==(e=yn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var o=yn[e];if(!o)return null;switch(e){case"keypress":if(0===un(n))return null;case"keydown":case"keyup":e=fn;break;case"blur":case"focus":e=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":e=Kt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=dn;break;case Z:case Q:case J:e=on;break;case ee:e=hn;break;case"scroll":e=zt;break;case"wheel":e=mn;break;case"copy":case"cut":case"paste":e=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=qt;break;default:e=ue}return Y(t=e.getPooled(o,t,n,r)),t}},xn=_n.isInteractiveTopLevelEventType,wn=[];function kn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=I(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=We(e.nativeEvent);r=e.topLevelType;for(var i=e.nativeEvent,a=null,l=0;l<v.length;l++){var u=v[l];u&&(u=u.extractEvents(r,t,i,o))&&(a=E(a,u))}N(a)}}var Pn=!0;function En(e,t){if(!t)return null;var n=(xn(e)?On:Sn).bind(null,e);t.addEventListener(e,n,!1)}function Cn(e,t){if(!t)return null;var n=(xn(e)?On:Sn).bind(null,e);t.addEventListener(e,n,!0)}function On(e,t){Ae(Sn,e,t)}function Sn(e,t){if(Pn){var n=We(t);if(null===(n=I(n))||"number"!=typeof n.tag||2===tn(n)||(n=null),wn.length){var r=wn.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Re(kn,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>wn.length&&wn.push(e)}}}var Tn={},Mn=0,Nn="_reactListenersID"+(""+Math.random()).slice(2);function Ln(e){return Object.prototype.hasOwnProperty.call(e,Nn)||(e[Nn]=Mn++,Tn[e[Nn]]={}),Tn[e[Nn]]}function An(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function jn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function In(e,t){var n,r=jn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=jn(r)}}function Rn(){for(var e=window,t=An();t instanceof e.HTMLIFrameElement;){try{e=t.contentDocument.defaultView}catch(e){break}t=An(e.document)}return t}function Fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Dn=X&&"documentMode"in document&&11>=document.documentMode,Wn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},zn=null,Un=null,Bn=null,Vn=!1;function Yn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Vn||null==zn||zn!==An(n)?null:("selectionStart"in(n=zn)&&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&&en(Bn,n)?null:(Bn=n,(e=ue.getPooled(Wn.select,Un,e,t)).type="select",e.target=zn,Y(e),e))}var Xn={eventTypes:Wn,extractEvents:function(e,t,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){e:{i=Ln(i),o=_.onSelect;for(var a=0;a<o.length;a++){var l=o[a];if(!i.hasOwnProperty(l)||!i[l]){i=!1;break e}}i=!0}o=!i}if(o)return null;switch(i=t?F(t):window,e){case"focus":(De(i)||"true"===i.contentEditable)&&(zn=i,Un=t,Bn=null);break;case"blur":Bn=Un=zn=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(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(t.children))&&(e.children=t),e}function Hn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+yt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Kn(e,t){return null!=t.dangerouslySetInnerHTML&&a("91"),o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function qn(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&a("92"),Array.isArray(t)&&(1>=t.length||a("93"),t=t[0]),n=t),null==n&&(n="")),e._wrapperState={initialValue:yt(n)}}function $n(e,t){var n=yt(t.value),r=yt(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Zn(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}T.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),x=D,w=R,k=F,T.injectEventPluginsByName({SimpleEventPlugin:_n,EnterLeaveEventPlugin:Zt,ChangeEventPlugin:Wt,SelectEventPlugin:Xn,BeforeInputEventPlugin:Ee});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(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function er(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Jn(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var tr,nr=void 0,rr=(tr=function(e,t){if(e.namespaceURI!==Qn.svg||"innerHTML"in e)e.innerHTML=t;else{for((nr=nr||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=nr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return tr(e,t)})}:tr);function or(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var 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(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ir.hasOwnProperty(e)&&ir[e]?(""+t).trim():t+"px"}function ur(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=lr(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ir).forEach(function(e){ar.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ir[t]=ir[e]})});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(e,t){t&&(sr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&a("137",e,""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&a("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||a("61")),null!=t.style&&"object"!=typeof t.style&&a("62",""))}function fr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function pr(e,t){var n=Ln(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=_[t];for(var r=0;r<t.length;r++){var o=t[r];if(!n.hasOwnProperty(o)||!n[o]){switch(o){case"scroll":Cn("scroll",e);break;case"focus":case"blur":Cn("focus",e),Cn("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":ze(o)&&Cn(o,e);break;case"invalid":case"submit":case"reset":break;default:-1===te.indexOf(o)&&En(o,e)}n[o]=!0}}}function dr(){}var hr=null,mr=null;function gr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function vr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var yr="function"==typeof setTimeout?setTimeout:void 0,br="function"==typeof clearTimeout?clearTimeout:void 0;function _r(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function xr(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var wr=[],kr=-1;function Pr(e){0>kr||(e.current=wr[kr],wr[kr]=null,kr--)}function Er(e,t){wr[++kr]=e.current,e.current=t}var Cr={},Or={current:Cr},Sr={current:!1},Tr=Cr;function Mr(e,t){var n=e.type.contextTypes;if(!n)return Cr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Nr(e){return null!=(e=e.childContextTypes)}function Lr(e){Pr(Sr),Pr(Or)}function Ar(e){Pr(Sr),Pr(Or)}function jr(e,t,n){Or.current!==Cr&&a("168"),Er(Or,t),Er(Sr,n)}function Ir(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())i in e||a("108",lt(t)||"Unknown",i);return o({},n,r)}function Rr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Cr,Tr=Or.current,Er(Or,t),Er(Sr,Sr.current),!0}function Fr(e,t,n){var r=e.stateNode;r||a("169"),n?(t=Ir(e,t,Tr),r.__reactInternalMemoizedMergedChildContext=t,Pr(Sr),Pr(Or),Er(Or,t)):Pr(Sr),Er(Sr,n)}var Dr=null,Wr=null;function zr(e){return function(t){try{return e(t)}catch(e){}}}function Ur(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.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(e,t,n,r){return new Ur(e,t,n,r)}function Vr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Yr(e,t){var n=e.alternate;return null===n?((n=Br(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,n.firstContextDependency=e.firstContextDependency,n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xr(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Vr(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case qe:return Gr(n.children,o,i,t);case et:return Hr(n,3|o,i,t);case $e:return Hr(n,2|o,i,t);case Ze:return(e=Br(12,n,t,4|o)).elementType=Ze,e.type=Ze,e.expirationTime=i,e;case nt:return(e=Br(13,n,t,o)).elementType=nt,e.type=nt,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Qe:l=10;break e;case Je:l=9;break e;case tt:l=11;break e;case rt:l=14;break e;case ot:l=16,r=null;break e}a("130",null==e?e:typeof e,"")}return(t=Br(l,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Gr(e,t,n,r){return(e=Br(7,e,r,t)).expirationTime=n,e}function Hr(e,t,n,r){return e=Br(8,e,r,t),t=0==(1&t)?$e:et,e.elementType=t,e.type=t,e.expirationTime=n,e}function Kr(e,t,n){return(e=Br(6,e,null,t)).expirationTime=n,e}function qr(e,t,n){return(t=Br(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $r(e,t){e.didError=!1;var n=e.earliestPendingTime;0===n?e.earliestPendingTime=e.latestPendingTime=t:n<t?e.earliestPendingTime=t:e.latestPendingTime>t&&(e.latestPendingTime=t),Jr(t,e)}function Zr(e,t){e.didError=!1;var n=e.latestPingedTime;0!==n&&n>=t&&(e.latestPingedTime=0),n=e.earliestPendingTime;var r=e.latestPendingTime;n===t?e.earliestPendingTime=r===t?e.latestPendingTime=0:r:r===t&&(e.latestPendingTime=n),n=e.earliestSuspendedTime,r=e.latestSuspendedTime,0===n?e.earliestSuspendedTime=e.latestSuspendedTime=t:n<t?e.earliestSuspendedTime=t:r>t&&(e.latestSuspendedTime=t),Jr(t,e)}function Qr(e,t){var n=e.earliestPendingTime;return n>t&&(t=n),(e=e.earliestSuspendedTime)>t&&(t=e),t}function Jr(e,t){var n=t.earliestSuspendedTime,r=t.latestSuspendedTime,o=t.earliestPendingTime,i=t.latestPingedTime;0===(o=0!==o?o:i)&&(0===e||r<e)&&(o=r),0!==(e=o)&&n>e&&(e=n),t.nextExpirationTimeToWorkOn=o,t.expirationTime=e}var eo=!1;function to(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function no(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function ro(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function oo(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function io(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=to(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=to(e.memoizedState),o=n.updateQueue=to(n.memoizedState)):r=e.updateQueue=no(o):null===o&&(o=n.updateQueue=no(r));null===o||r===o?oo(r,t):null===r.lastUpdate||null===o.lastUpdate?(oo(r,t),oo(o,t)):(oo(r,t),o.lastUpdate=t)}function ao(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=to(e.memoizedState):lo(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function lo(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=no(t)),t}function uo(e,t,n,r,i,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,r,i):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=n.payload)?e.call(a,r,i):e))break;return o({},r,i);case 2:eo=!0}return r}function so(e,t,n,r,o){eo=!1;for(var i=(t=lo(e,t)).baseState,a=null,l=0,u=t.firstUpdate,s=i;null!==u;){var c=u.expirationTime;c<o?(null===a&&(a=u,i=s),l<c&&(l=c)):(s=uo(e,0,u,s,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=u:(t.lastEffect.nextEffect=u,t.lastEffect=u))),u=u.next}for(c=null,u=t.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f<o?(null===c&&(c=u,null===a&&(i=s)),l<f&&(l=f)):(s=uo(e,0,u,s,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=u:(t.lastCapturedEffect.nextEffect=u,t.lastCapturedEffect=u))),u=u.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(i=s),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=l,e.memoizedState=s}function co(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),fo(t.firstEffect,n),t.firstEffect=t.lastEffect=null,fo(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function fo(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;"function"!=typeof n&&a("191",n),n.call(r)}e=e.nextEffect}}function po(e,t){return{value:e,source:t,stack:ut(t)}}var ho={current:null},mo=null,go=null,vo=null;function yo(e,t){var n=e.type._context;Er(ho,n._currentValue),n._currentValue=t}function bo(e){var t=ho.current;Pr(ho),e.type._context._currentValue=t}function _o(e){mo=e,vo=go=null,e.firstContextDependency=null}function xo(e,t){return vo!==e&&!1!==t&&0!==t&&("number"==typeof t&&1073741823!==t||(vo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===go?(null===mo&&a("293"),mo.firstContextDependency=go=t):go=go.next=t),e._currentValue}var wo={},ko={current:wo},Po={current:wo},Eo={current:wo};function Co(e){return e===wo&&a("174"),e}function Oo(e,t){Er(Eo,t),Er(Po,e),Er(ko,wo);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:er(null,"");break;default:t=er(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Pr(ko),Er(ko,t)}function So(e){Pr(ko),Pr(Po),Pr(Eo)}function To(e){Co(Eo.current);var t=Co(ko.current),n=er(t,e.type);t!==n&&(Er(Po,e),Er(ko,n))}function Mo(e){Po.current===e&&(Pr(ko),Pr(Po))}function No(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Lo=Ye.ReactCurrentOwner,Ao=(new r.Component).refs;function jo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var Io={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===tn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Pa(),o=ro(r=$i(r,e));o.payload=t,null!=n&&(o.callback=n),Xi(),io(e,o),Ji(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Pa(),o=ro(r=$i(r,e));o.tag=1,o.payload=t,null!=n&&(o.callback=n),Xi(),io(e,o),Ji(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Pa(),r=ro(n=$i(n,e));r.tag=2,null!=t&&(r.callback=t),Xi(),io(e,r),Ji(e,n)}};function Ro(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!en(n,r)||!en(o,i))}function Fo(e,t,n){var r=!1,o=Cr,i=t.contextType;return"object"==typeof i&&null!==i?i=Lo.currentDispatcher.readContext(i):(o=Nr(t)?Tr:Or.current,i=(r=null!=(r=t.contextTypes))?Mr(e,o):Cr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Io,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Do(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Io.enqueueReplaceState(t,t.state,null)}function Wo(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Ao;var i=t.contextType;"object"==typeof i&&null!==i?o.context=Lo.currentDispatcher.readContext(i):(i=Nr(t)?Tr:Or.current,o.context=Mr(e,i)),null!==(i=e.updateQueue)&&(so(e,i,n,o,r),o.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(jo(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Io.enqueueReplaceState(o,o.state,null),null!==(i=e.updateQueue)&&(so(e,i,n,o,r),o.state=e.memoizedState)),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var zo=Array.isArray;function Uo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&a("289"),r=n.stateNode),r||a("147",e);var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=r.refs;t===Ao&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}"string"!=typeof e&&a("284"),n._owner||a("290",e)}return e}function Bo(e,t){"textarea"!==e.type&&a("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Vo(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t,n){return(e=Yr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Kr(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Uo(e,t,n),r.return=e,r):((r=Xr(n.type,n.key,n.props,null,e.mode,r)).ref=Uo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=qr(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Gr(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Kr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case He:return(n=Xr(t.type,t.key,t.props,null,e.mode,n)).ref=Uo(e,null,t),n.return=e,n;case Ke:return(t=qr(t,e.mode,n)).return=e,t}if(zo(t)||at(t))return(t=Gr(t,e.mode,n,null)).return=e,t;Bo(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case He:return n.key===o?n.type===qe?f(e,t,n.props.children,r,o):s(e,t,n,r):null;case Ke:return n.key===o?c(e,t,n,r):null}if(zo(n)||at(n))return null!==o?null:f(e,t,n,r,null);Bo(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case He:return e=e.get(null===r.key?n:r.key)||null,r.type===qe?f(t,e,r.props.children,o,r.key):s(t,e,r,o);case Ke:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(zo(r)||at(r))return f(t,e=e.get(n)||null,r,o,null);Bo(t,r)}return null}function m(o,a,l,u){for(var s=null,c=null,f=a,m=a=0,g=null;null!==f&&m<l.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var v=d(o,f,l[m],u);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(o,f),a=i(v,a,m),null===c?s=v:c.sibling=v,c=v,f=g}if(m===l.length)return n(o,f),s;if(null===f){for(;m<l.length;m++)(f=p(o,l[m],u))&&(a=i(f,a,m),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(o,f);m<l.length;m++)(g=h(f,o,m,l[m],u))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),a=i(g,a,m),null===c?s=g:c.sibling=g,c=g);return e&&f.forEach(function(e){return t(o,e)}),s}function g(o,l,u,s){var c=at(u);"function"!=typeof c&&a("150"),null==(u=c.call(u))&&a("151");for(var f=c=null,m=l,g=l=0,v=null,y=u.next();null!==m&&!y.done;g++,y=u.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=d(o,m,y.value,s);if(null===b){m||(m=v);break}e&&m&&null===b.alternate&&t(o,m),l=i(b,l,g),null===f?c=b:f.sibling=b,f=b,m=v}if(y.done)return n(o,m),c;if(null===m){for(;!y.done;g++,y=u.next())null!==(y=p(o,y.value,s))&&(l=i(y,l,g),null===f?c=y:f.sibling=y,f=y);return c}for(m=r(o,m);!y.done;g++,y=u.next())null!==(y=h(m,o,g,y.value,s))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),l=i(y,l,g),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach(function(e){return t(o,e)}),c}return function(e,r,i,u){var s="object"==typeof i&&null!==i&&i.type===qe&&null===i.key;s&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case He:e:{for(c=i.key,s=r;null!==s;){if(s.key===c){if(7===s.tag?i.type===qe:s.elementType===i.type){n(e,s.sibling),(r=o(s,i.type===qe?i.props.children:i.props)).ref=Uo(e,s,i),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}i.type===qe?((r=Gr(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Xr(i.type,i.key,i.props,null,e.mode,u)).ref=Uo(e,r,i),u.return=e,e=u)}return l(e);case Ke:e:{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(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=qr(i,e.mode,u)).return=e,e=r}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Kr(i,e.mode,u)).return=e,e=r),l(e);if(zo(i))return m(e,r,i,u);if(at(i))return g(e,r,i,u);if(c&&Bo(e,i),void 0===i&&!s)switch(e.tag){case 1:case 0:a("152",(u=e.type).displayName||u.name||"Component")}return n(e,r)}}var Yo=Vo(!0),Xo=Vo(!1),Go=null,Ho=null,Ko=!1;function qo(e,t){var n=Br(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function $o(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Zo(e){if(Ko){var t=Ho;if(t){var n=t;if(!$o(e,t)){if(!(t=_r(n))||!$o(e,t))return e.effectTag|=2,Ko=!1,void(Go=e);qo(Go,n)}Go=e,Ho=xr(t)}else e.effectTag|=2,Ko=!1,Go=e}}function Qo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;Go=e}function Jo(e){if(e!==Go)return!1;if(!Ko)return Qo(e),Ko=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!vr(t,e.memoizedProps))for(t=Ho;t;)qo(e,t),t=_r(t);return Qo(e),Ho=Go?_r(e.stateNode):null,!0}function ei(){Ho=Go=null,Ko=!1}var ti=Ye.ReactCurrentOwner;function ni(e,t,n,r){t.child=null===e?Xo(t,null,n,r):Yo(t,e.child,n,r)}function ri(e,t,n,r,o){n=n.render;var i=t.ref;return _o(t),r=n(r,i),t.effectTag|=1,ni(e,t,r,o),t.child}function oi(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Vr(a)||void 0!==a.defaultProps||null!==n.compare?((e=Xr(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ii(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:en)(o,r)&&e.ref===t.ref)?pi(e,t,i):(t.effectTag|=1,(e=Yr(a,r)).ref=t.ref,e.return=t,t.child=e)}function ii(e,t,n,r,o,i){return null!==e&&o<i&&en(e.memoizedProps,r)&&e.ref===t.ref?pi(e,t,i):li(e,t,n,r,i)}function ai(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function li(e,t,n,r,o){var i=Nr(n)?Tr:Or.current;return i=Mr(t,i),_o(t),n=n(r,i),t.effectTag|=1,ni(e,t,n,o),t.child}function ui(e,t,n,r,o){if(Nr(n)){var i=!0;Rr(t)}else i=!1;if(_o(t),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Fo(t,n,r),Wo(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=n.contextType;"object"==typeof s&&null!==s?s=Lo.currentDispatcher.readContext(s):s=Mr(t,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(t,a,r,s),eo=!1;var p=t.memoizedState;u=a.state=p;var d=t.updateQueue;null!==d&&(so(t,d,r,a,o),u=t.memoizedState),l!==r||p!==u||Sr.current||eo?("function"==typeof c&&(jo(t,n,c,r),u=t.memoizedState),(l=eo||Ro(t,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&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,l=t.memoizedProps,a.props=t.type===t.elementType?l:No(t.type,l),u=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Lo.currentDispatcher.readContext(s):s=Mr(t,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(t,a,r,s),eo=!1,u=t.memoizedState,p=a.state=u,null!==(d=t.updateQueue)&&(so(t,d,r,a,o),p=t.memoizedState),l!==r||u!==p||Sr.current||eo?("function"==typeof c&&(jo(t,n,c,r),p=t.memoizedState),(c=eo||Ro(t,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&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=s,r=c):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return si(e,t,n,r,i,o)}function si(e,t,n,r,o,i){ai(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&Fr(t,n,!1),pi(e,t,i);r=t.stateNode,ti.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Yo(t,e.child,null,i),t.child=Yo(t,null,l,i)):ni(e,t,l,i),t.memoizedState=r.state,o&&Fr(t,n,!0),t.child}function ci(e){var t=e.stateNode;t.pendingContext?jr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&jr(0,t.context,!1),Oo(e,t.containerInfo)}function fi(e,t,n){var r=t.mode,o=t.pendingProps,i=t.memoizedState;if(0==(64&t.effectTag)){i=null;var a=!1}else i={timedOutAt:null!==i?i.timedOutAt:0},a=!0,t.effectTag&=-65;return null===e?a?(a=o.fallback,o=Gr(null,r,0,null),0==(1&t.mode)&&(o.child=null!==t.memoizedState?t.child.child:t.child),r=Gr(a,r,n,null),o.sibling=r,(n=o).return=r.return=t):n=r=Xo(t,null,o.children,n):null!==e.memoizedState?(e=(r=e.child).sibling,a?(n=o.fallback,o=Yr(r,r.pendingProps),0==(1&t.mode)&&((a=null!==t.memoizedState?t.child.child:t.child)!==r.child&&(o.child=a)),r=o.sibling=Yr(e,n,e.expirationTime),n=o,o.childExpirationTime=0,n.return=r.return=t):n=r=Yo(t,r.child,o.children,n)):(e=e.child,a?(a=o.fallback,(o=Gr(null,r,0,null)).child=e,0==(1&t.mode)&&(o.child=null!==t.memoizedState?t.child.child:t.child),(r=o.sibling=Gr(a,r,n,null)).effectTag|=2,n=o,o.childExpirationTime=0,n.return=r.return=t):r=n=Yo(t,e,o.children,n)),t.memoizedState=i,t.child=n,r}function pi(e,t,n){if(null!==e&&(t.firstContextDependency=e.firstContextDependency),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child&&a("153"),null!==t.child){for(n=Yr(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Yr(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function di(e,t,n){var r=t.expirationTime;if(null!==e&&e.memoizedProps===t.pendingProps&&!Sr.current&&r<n){switch(t.tag){case 3:ci(t),ei();break;case 5:To(t);break;case 1:Nr(t.type)&&Rr(t);break;case 4:Oo(t,t.stateNode.containerInfo);break;case 10:yo(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?fi(e,t,n):null!==(t=pi(e,t,n))?t.sibling:null}return pi(e,t,n)}switch(t.expirationTime=0,t.tag){case 2:r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps;var o=Mr(t,Or.current);if(_o(t),o=r(e,o),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,Nr(r)){var i=!0;Rr(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var l=r.getDerivedStateFromProps;"function"==typeof l&&jo(t,r,l,e),o.updater=Io,t.stateNode=o,o._reactInternalFiber=t,Wo(t,r,e,n),t=si(null,t,r,!0,i,n)}else t.tag=0,ni(null,t,o,n),t=t.child;return t;case 16:switch(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),i=t.pendingProps,e=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:throw e._status=0,(t=(t=e._ctor)()).then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._result=t,t}}(o),t.type=e,o=t.tag=function(e){if("function"==typeof e)return Vr(e)?1:0;if(null!=e){if((e=e.$$typeof)===tt)return 11;if(e===rt)return 14}return 2}(e),i=No(e,i),l=void 0,o){case 0:l=li(null,t,e,i,n);break;case 1:l=ui(null,t,e,i,n);break;case 11:l=ri(null,t,e,i,n);break;case 14:l=oi(null,t,e,No(e.type,i),r,n);break;default:a("283",e)}return l;case 0:return r=t.type,o=t.pendingProps,li(e,t,r,o=t.elementType===r?o:No(r,o),n);case 1:return r=t.type,o=t.pendingProps,ui(e,t,r,o=t.elementType===r?o:No(r,o),n);case 3:return ci(t),null===(r=t.updateQueue)&&a("282"),o=null!==(o=t.memoizedState)?o.element:null,so(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===o?(ei(),t=pi(e,t,n)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(Ho=xr(t.stateNode.containerInfo),Go=t,o=Ko=!0),o?(t.effectTag|=2,t.child=Xo(t,null,r,n)):(ni(e,t,r,n),ei()),t=t.child),t;case 5:return To(t),null===e&&Zo(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,vr(r,o)?l=null:null!==i&&vr(r,i)&&(t.effectTag|=16),ai(e,t),1!==n&&1&t.mode&&o.hidden?(t.expirationTime=1,t=null):(ni(e,t,l,n),t=t.child),t;case 6:return null===e&&Zo(t),null;case 13:return fi(e,t,n);case 4:return Oo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Yo(t,null,r,n):ni(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,ri(e,t,r,o=t.elementType===r?o:No(r,o),n);case 7:return ni(e,t,t.pendingProps,n),t.child;case 8:case 12:return ni(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,yo(t,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){t=pi(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);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===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}}ni(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,_o(t),r=r(o=xo(o,i.unstable_observedBits)),t.effectTag|=1,ni(e,t,r,n),t.child;case 14:return oi(e,t,o=t.type,i=No(o.type,t.pendingProps),r,n);case 15:return ii(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:No(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Nr(r)?(e=!0,Rr(t)):e=!1,_o(t),Fo(t,r,o),Wo(t,r,o,n),si(null,t,r,!0,e,n);default:a("156")}}function hi(e){e.effectTag|=4}var mi=void 0,gi=void 0,vi=void 0,yi=void 0;function bi(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ut(n)),null!==n&<(n.type),t=t.value,null!==e&&1===e.tag&<(e.type);try{console.error(t)}catch(e){setTimeout(function(){throw e})}}function _i(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){qi(e,t)}else t.current=null}function xi(e){switch("function"==typeof Wr&&Wr(e),e.tag){case 0:case 11:case 14:case 15:var t=e.updateQueue;if(null!==t&&null!==(t=t.lastEffect)){var n=t=t.next;do{var r=n.destroy;if(null!==r){var o=e;try{r()}catch(e){qi(o,e)}}n=n.next}while(n!==t)}break;case 1:if(_i(e),"function"==typeof(t=e.stateNode).componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){qi(e,t)}break;case 5:_i(e);break;case 4:Pi(e)}}function wi(e){return 5===e.tag||3===e.tag||4===e.tag}function ki(e){e:{for(var t=e.return;null!==t;){if(wi(t)){var n=t;break e}t=t.return}a("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:a("161")}16&n.effectTag&&(or(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||wi(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var o=e;;){if(5===o.tag||6===o.tag)if(n)if(r){var i=t,l=o.stateNode,u=n;8===i.nodeType?i.parentNode.insertBefore(l,u):i.insertBefore(l,u)}else t.insertBefore(o.stateNode,n);else r?(l=t,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)):t.appendChild(o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function Pi(e){for(var t=e,n=!1,r=void 0,o=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&a("160"),n.tag){case 5:r=n.stateNode,o=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,o=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var i=t,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 e;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(i=r,l=t.stateNode,8===i.nodeType?i.parentNode.removeChild(l):i.removeChild(l)):r.removeChild(t.stateNode)}else if(4===t.tag?(r=t.stateNode.containerInfo,o=!0):xi(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Ei(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[j]=r,"input"===e&&"radio"===r.type&&null!=r.name&&xt(n,r),fr(e,o),t=fr(e,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):vt(n,l,u,t)}switch(e){case"input":wt(n,r);break;case"textarea":$n(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Hn(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Hn(n,!!r.multiple,r.defaultValue,!0):Hn(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 6:null===t.stateNode&&a("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(e=t,null===(n=t.memoizedState)?r=!1:(r=!0,e=t.child,0===n.timedOutAt&&(n.timedOutAt=Pa())),null!==e)e:for(t=n=e;;){if(5===t.tag)e=t.stateNode,r?e.style.display="none":(e=t.stateNode,i=null!=(i=t.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,e.style.display=lr("display",i));else if(6===t.tag)t.stateNode.nodeValue=r?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState){(e=t.child.sibling).return=t,t=e;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===n)break e;for(;null===t.sibling;){if(null===t.return||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}break;case 17:break;default:a("163")}}function Ci(e,t,n){(n=ro(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ja(r),bi(e,t)},n}function Oi(e,t,n){(n=ro(n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)}}var i=e.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=t.value,o=t.stack;bi(e,t),this.componentDidCatch(n,{componentStack:null!==o?o:""})}),n}function Si(e){switch(e.tag){case 1:Nr(e.type)&&Lr();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:return So(),Ar(),0!=(64&(t=e.effectTag))&&a("285"),e.effectTag=-2049&t|64,e;case 5:return Mo(e),null;case 13:return 2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 4:return So(),null;case 10:return bo(e),null;default:return null}}mi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},gi=function(){},vi=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var l=t.stateNode;switch(Co(ko.current),e=null,n){case"input":a=bt(l,a),r=bt(l,r),e=[];break;case"option":a=Gn(l,a),r=Gn(l,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Kn(l,a),r=Kn(l,r),e=[];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)?e||(e=[]):(e=e||[]).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||(e||(e=[]),e.push(n,u)),u=c;else"dangerouslySetInnerHTML"===n?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(e=e||[]).push(n,""+c)):"children"===n?s===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(n,""+c):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(b.hasOwnProperty(n)?(null!=c&&pr(i,n),e||s===c||(e=[])):(e=e||[]).push(n,c))}u&&(e=e||[]).push("style",u),i=e,(t.updateQueue=i)&&hi(t)}},yi=function(e,t,n,r){n!==r&&hi(t)};var Ti={readContext:xo},Mi=Ye.ReactCurrentOwner,Ni=1073741822,Li=0,Ai=!1,ji=null,Ii=null,Ri=0,Fi=-1,Di=!1,Wi=null,zi=!1,Ui=null,Bi=null,Vi=null;function Yi(){if(null!==ji)for(var e=ji.return;null!==e;){var t=e;switch(t.tag){case 1:var n=t.type.childContextTypes;null!=n&&Lr();break;case 3:So(),Ar();break;case 5:Mo(t);break;case 4:So();break;case 10:bo(t)}e=e.return}Ii=null,Ri=0,Fi=-1,Di=!1,ji=null}function Xi(){null!==Bi&&(i.unstable_cancelCallback(Ui),Bi())}function Gi(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(1024&e.effectTag)){ji=e;e:{var i=t,l=Ri,u=(t=e).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Nr(t.type)&&Lr();break;case 3:So(),Ar(),(u=t.stateNode).pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),null!==i&&null!==i.child||(Jo(t),t.effectTag&=-3),gi(t);break;case 5:Mo(t);var s=Co(Eo.current);if(l=t.type,null!==i&&null!=t.stateNode)vi(i,t,l,u,s),i.ref!==t.ref&&(t.effectTag|=128);else if(u){var c=Co(ko.current);if(Jo(t)){i=(u=t).stateNode;var f=u.type,p=u.memoizedProps,d=s;switch(i[A]=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<te.length;f++)En(te[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":_t(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":Be(i),kt(i,p,!0);break;case"textarea":Be(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(t)}else{p=t,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)[A]=p,i[j]=u,mi(i,t,!1,!1),d=i;var h=s,m=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<te.length;s++)En(te[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":_t(d,p),s=bt(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=Kn(d,p),En("invalid",d),pr(h,"onChange");break;default:s=p}cr(f,s),c=void 0;var g=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"!==g||""!==_)&&or(v,_):"number"==typeof _&&or(v,""+_):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(b.hasOwnProperty(c)?null!=_&&pr(h,c):null!=_&&vt(v,c,_,m))}switch(f){case"input":Be(d),kt(d,p,!1);break;case"textarea":Be(d),Zn(d);break;case"option":null!=p.value&&d.setAttribute("value",""+yt(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=gr(l,u))&&hi(t),t.stateNode=i}null!==t.ref&&(t.effectTag|=128)}else null===t.stateNode&&a("166");break;case 6:i&&null!=t.stateNode?yi(i,t,i.memoizedProps,u):("string"!=typeof u&&(null===t.stateNode&&a("166")),i=Co(Eo.current),Co(ko.current),Jo(t)?(l=(u=t).stateNode,i=u.memoizedProps,l[A]=u,(u=l.nodeValue!==i)&&hi(t)):(l=t,(u=(9===i.nodeType?i:i.ownerDocument).createTextNode(u))[A]=t,l.stateNode=u));break;case 11:break;case 13:if(u=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=l,ji=t;break e}u=null!==u,l=null!==i&&null!==i.memoizedState,null!==i&&!u&&l&&(null!==(i=i.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=i,i.nextEffect=s):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),(u!==l||0==(1&t.effectTag)&&u)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:So(),gi(t);break;case 10:bo(t);break;case 9:case 14:break;case 17:Nr(t.type)&&Lr();break;default:a("156")}ji=null}if(t=e,1===Ri||1!==t.childExpirationTime){for(u=0,l=t.child;null!==l;)(i=l.expirationTime)>u&&(u=i),(s=l.childExpirationTime)>u&&(u=s),l=l.sibling;t.childExpirationTime=u}if(null!==ji)return ji;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e))}else{if(null!==(e=Si(e)))return e.effectTag&=1023,e;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;e=n}return null}function Hi(e){var t=di(e.alternate,e,Ri);return e.memoizedProps=e.pendingProps,null===t&&(t=Gi(e)),Mi.current=null,t}function Ki(e,t){Ai&&a("243"),Xi(),Ai=!0,Mi.currentDispatcher=Ti;var n=e.nextExpirationTimeToWorkOn;n===Ri&&e===Ii&&null!==ji||(Yi(),Ri=n,ji=Yr((Ii=e).current,null),e.pendingCommitExpirationTime=0);for(var r=!1;;){try{if(t)for(;null!==ji&&!Sa();)ji=Hi(ji);else for(;null!==ji;)ji=Hi(ji)}catch(t){if(vo=go=mo=null,null===ji)r=!0,ja(t);else{null===ji&&a("271");var o=ji,i=o.return;if(null!==i){e:{var l=e,u=i,s=o,c=t;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 e}-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 e}c=c.return}while(null!==c);c=Error((lt(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."+ut(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 e;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 e}}l=l.return}while(null!==l)}ji=Gi(o);continue}r=!0,ja(t)}}break}if(Ai=!1,vo=go=mo=Mi.currentDispatcher=null,r)Ii=null,e.finishedWork=null;else if(null!==ji)e.finishedWork=null;else{if(null===(r=e.current.alternate)&&a("281"),Ii=null,Di){if(o=e.latestPendingTime,i=e.latestSuspendedTime,l=e.latestPingedTime,0!==o&&o<n||0!==i&&i<n||0!==l&&l<n)return Zr(e,n),void ka(e,r,n,e.expirationTime,-1);if(!e.didError&&t)return e.didError=!0,n=e.nextExpirationTimeToWorkOn=n,t=e.expirationTime=1073741823,void ka(e,r,n,t,-1)}t&&-1!==Fi?(Zr(e,n),(t=10*(1073741822-Qr(e,n)))<Fi&&(Fi=t),t=10*(1073741822-Pa()),t=Fi-t,ka(e,r,n,e.expirationTime,0>t?0:t)):(e.pendingCommitExpirationTime=n,e.finishedWork=r)}}function qi(e,t){for(var n=e.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,e=Oi(n,e=po(t,e),1073741823)),void Ji(n,1073741823);break;case 3:return io(n,e=Ci(n,e=po(t,e),1073741823)),void Ji(n,1073741823)}n=n.return}3===e.tag&&(io(e,n=Ci(e,n=po(t,e),1073741823)),Ji(e,1073741823))}function $i(e,t){return 0!==Li?e=Li:Ai?e=zi?1073741823:Ri:1&t.mode?(e=da?1073741822-10*(1+((1073741822-e+15)/10|0)):1073741822-25*(1+((1073741822-e+500)/25|0)),null!==Ii&&e===Ri&&--e):e=1073741823,da&&(0===ua||e<ua)&&(ua=e),e}function Zi(e,t,n,r){var o=e.earliestSuspendedTime,i=e.latestSuspendedTime;if(0!==o&&r<=o&&r>=i){i=o=r,e.didError=!1;var a=e.latestPingedTime;(0===a||a>i)&&(e.latestPingedTime=i),Jr(i,e)}else $r(e,o=$i(o=Pa(),t));0!=(1&t.mode)&&e===Ii&&Ri===r&&(Ii=null),Qi(t,o),0==(1&t.mode)&&(Qi(n,o),1===n.tag&&null!==n.stateNode&&((t=ro(o)).tag=2,io(n,t))),0!==(n=e.expirationTime)&&Ea(e,n)}function Qi(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return o}function Ji(e,t){null!==(e=Qi(e,t))&&(!Ai&&0!==Ri&&t>Ri&&Yi(),$r(e,t),Ai&&!zi&&Ii===e||Ea(e,e.expirationTime),ba>ya&&(ba=0,a("185")))}function ea(e,t,n,r,o){var i=Li;Li=1073741823;try{return e(t,n,r,o)}finally{Li=i}}var ta=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,ma=i.unstable_now(),ga=1073741822-(ma/10|0),va=ga,ya=50,ba=0,_a=null;function xa(){ga=1073741822-((i.unstable_now()-ma)/10|0)}function wa(e,t){if(0!==ra){if(t<ra)return;null!==oa&&i.unstable_cancelCallback(oa)}ra=t,e=i.unstable_now()-ma,oa=i.unstable_scheduleCallback(Ta,{timeout:10*(1073741822-t)-e})}function ka(e,t,n,r,o){e.expirationTime=r,0!==o||Sa()?0<o&&(e.timeoutHandle=yr(function(e,t,n){e.pendingCommitExpirationTime=n,e.finishedWork=t,xa(),va=ga,Na(e,n)}.bind(null,e,t,n),o)):(e.pendingCommitExpirationTime=n,e.finishedWork=t)}function Pa(){return ia?va:(Ca(),0!==la&&1!==la||(xa(),va=ga),va)}function Ea(e,t){null===e.nextScheduledRoot?(e.expirationTime=t,null===na?(ta=na=e,e.nextScheduledRoot=e):(na=na.nextScheduledRoot=e).nextScheduledRoot=ta):t>e.expirationTime&&(e.expirationTime=t),ia||(fa?pa&&(aa=e,la=1073741823,La(e,1073741823,!1)):1073741823===t?Ma(1073741823,!1):wa(e,t))}function Ca(){var e=0,t=null;if(null!==na)for(var n=na,r=ta;null!==r;){var o=r.expirationTime;if(0===o){if((null===n||null===na)&&a("244"),r===r.nextScheduledRoot){ta=na=r.nextScheduledRoot=null;break}if(r===ta)ta=o=r.nextScheduledRoot,na.nextScheduledRoot=o,r.nextScheduledRoot=null;else{if(r===na){(na=n).nextScheduledRoot=ta,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(o>e&&(e=o,t=r),r===na)break;if(1073741823===e)break;n=r,r=r.nextScheduledRoot}}aa=t,la=e}var Oa=!1;function Sa(){return!!Oa||!!i.unstable_shouldYield()&&(Oa=!0)}function Ta(){try{if(!Sa()&&null!==ta){xa();var e=ta;do{var t=e.expirationTime;0!==t&&ga<=t&&(e.nextExpirationTimeToWorkOn=ga),e=e.nextScheduledRoot}while(e!==ta)}Ma(0,!0)}finally{Oa=!1}}function Ma(e,t){if(Ca(),t)for(xa(),va=ga;null!==aa&&0!==la&&e<=la&&!(Oa&&ga>la);)La(aa,la,ga>la),Ca(),xa(),va=ga;else for(;null!==aa&&0!==la&&e<=la;)La(aa,la,!1),Ca();if(t&&(ra=0,oa=null),0!==la&&wa(aa,la),ba=0,_a=null,null!==ha)for(e=ha,ha=null,t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){sa||(sa=!0,ca=e)}}if(sa)throw e=ca,ca=null,sa=!1,e}function Na(e,t){ia&&a("253"),aa=e,la=t,La(e,t,!1),Ma(1073741823,!1)}function La(e,t,n){if(ia&&a("245"),ia=!0,n){var r=e.finishedWork;null!==r?Aa(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,br(r)),Ki(e,n),null!==(r=e.finishedWork)&&(Sa()?e.finishedWork=r:Aa(e,r,t)))}else null!==(r=e.finishedWork)?Aa(e,r,t):(e.finishedWork=null,-1!==(r=e.timeoutHandle)&&(e.timeoutHandle=-1,br(r)),Ki(e,n),null!==(r=e.finishedWork)&&Aa(e,r,t));ia=!1}function Aa(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===ha?ha=[r]:ha.push(r),r._defer))return e.finishedWork=t,void(e.expirationTime=0);e.finishedWork=null,e===_a?ba++:(_a=e,ba=0),zi=Ai=!0,e.current===t&&a("177"),0===(n=e.pendingCommitExpirationTime)&&a("261"),e.pendingCommitExpirationTime=0,r=t.expirationTime;var o=t.childExpirationTime;if(r=o>r?o:r,e.didError=!1,0===r?(e.earliestPendingTime=0,e.latestPendingTime=0,e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0):(0!==(o=e.latestPendingTime)&&(o>r?e.earliestPendingTime=e.latestPendingTime=0:e.earliestPendingTime>r&&(e.earliestPendingTime=e.latestPendingTime)),0===(o=e.earliestSuspendedTime)?$r(e,r):r<e.latestSuspendedTime?(e.earliestSuspendedTime=0,e.latestSuspendedTime=0,e.latestPingedTime=0,$r(e,r)):r>o&&$r(e,r)),Jr(0,e),Mi.current=null,1<t.effectTag?null!==t.lastEffect?(t.lastEffect.nextEffect=t,r=t.firstEffect):r=t:r=t.firstEffect,hr=Pn,Fn(o=Rn())){if("selectionStart"in o)var i={start:o.selectionStart,end:o.selectionEnd};else e:{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(e){i=null;break e}var c=0,f=-1,p=-1,d=0,h=0,m=o,g=null;t:for(;;){for(var v;m!==i||0!==u&&3!==m.nodeType||(f=c+u),m!==s||0!==l&&3!==m.nodeType||(p=c+l),3===m.nodeType&&(c+=m.nodeValue.length),null!==(v=m.firstChild);)g=m,m=v;for(;;){if(m===o)break t;if(g===i&&++d===u&&(f=c),g===s&&++h===l&&(p=c),null!==(v=m.nextSibling))break;g=(m=g).parentNode}m=v}i=-1===f||-1===p?null:{start:f,end:p}}else i=null}i=i||{start:0,end:0}}else i=null;for(mr={focusedElem:o,selectionRange:i},Pn=!1,Wi=r;null!==Wi;){o=!1,i=void 0;try{for(;null!==Wi;){if(256&Wi.effectTag)e:{var y=Wi.alternate;switch((u=Wi).tag){case 0:case 11:case 15:break e;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 e;case 3:case 5:case 6:case 4:case 17:break e;default:a("163")}}Wi=Wi.nextEffect}}catch(e){o=!0,i=e}o&&(null===Wi&&a("178"),qi(Wi,i),null!==Wi&&(Wi=Wi.nextEffect))}for(Wi=r;null!==Wi;){y=!1,b=void 0;try{for(;null!==Wi;){var k=Wi.effectTag;if(16&k&&or(Wi.stateNode,""),128&k){var P=Wi.alternate;if(null!==P){var E=P.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(14&k){case 2:ki(Wi),Wi.effectTag&=-3;break;case 6:ki(Wi),Wi.effectTag&=-3,Ei(Wi.alternate,Wi);break;case 4:Ei(Wi.alternate,Wi);break;case 8:Pi(_=Wi),_.return=null,_.child=null,_.alternate&&(_.alternate.child=null,_.alternate.return=null)}Wi=Wi.nextEffect}}catch(e){y=!0,b=e}y&&(null===Wi&&a("178"),qi(Wi,b),null!==Wi&&(Wi=Wi.nextEffect))}if(E=mr,P=Rn(),k=E.focusedElem,b=E.selectionRange,P!==k&&k&&k.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.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(mr=null,Pn=!!hr,hr=null,e.current=t,Wi=r;null!==Wi;){r=!1,k=void 0;try{for(P=n;null!==Wi;){var C=Wi.effectTag;if(36&C){var O=Wi.alternate;switch(y=P,(E=Wi).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 L=E.stateNode;null===O&&4&E.effectTag&&gr(E.type,E.memoizedProps)&&L.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:a("163")}}if(128&C){var A=Wi.ref;if(null!==A){var j=Wi.stateNode;switch(Wi.tag){case 5:var I=j;break;default:I=j}"function"==typeof A?A(I):A.current=I}}Wi=Wi.nextEffect}}catch(e){r=!0,k=e}r&&(null===Wi&&a("178"),qi(Wi,k),null!==Wi&&(Wi=Wi.nextEffect))}Ai=zi=!1,"function"==typeof Dr&&Dr(t.stateNode),C=t.expirationTime,0===(t=(t=t.childExpirationTime)>C?t:C)&&(Vi=null),e.expirationTime=t,e.finishedWork=null}function ja(e){null===aa&&a("246"),aa.expirationTime=0,sa||(sa=!0,ca=e)}function Ia(e,t){var n=fa;fa=!0;try{return e(t)}finally{(fa=n)||ia||Ma(1073741823,!1)}}function Ra(e,t){if(fa&&!pa){pa=!0;try{return e(t)}finally{pa=!1}}return e(t)}function Fa(e,t,n){if(da)return e(t,n);fa||ia||0===ua||(Ma(ua,!1),ua=0);var r=da,o=fa;fa=da=!0;try{return e(t,n)}finally{da=r,(fa=o)||ia||Ma(1073741823,!1)}}function Da(e,t,n,r,o){var i=t.current;e:if(n){t:{2===tn(n=n._reactInternalFiber)&&1===n.tag||a("170");var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Nr(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}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 e}}n=l}else n=Cr;return null===t.context?t.context=n:t.pendingContext=n,t=o,(o=ro(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),Xi(),io(i,o),Ji(i,r),r}function Wa(e,t,n,r){var o=t.current;return Da(e,t,n,o=$i(Pa(),o),r)}function za(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ua(e){var t=1073741822-25*(1+((1073741822-Pa()+500)/25|0));t>=Ni&&(t=Ni-1),this._expirationTime=Ni=t,this._root=e,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(e,t,n){e={current:t=Br(3,null,null,t?3:0),containerInfo:e,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=t.stateNode=e}function Ya(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xa(e,t,n,r,o){Ya(n)||a("200");var i=n._reactRootContainer;if(i){if("function"==typeof o){var l=o;o=function(){var e=za(i._internalRoot);l.call(e)}}null!=e?i.legacy_renderSubtreeIntoContainer(e,t,o):i.render(t,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Va(e,!1,t)}(n,r),"function"==typeof o){var u=o;o=function(){var e=za(i._internalRoot);u.call(e)}}Ra(function(){null!=e?i.legacy_renderSubtreeIntoContainer(e,t,o):i.render(t,o)})}return za(i._internalRoot)}function Ga(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Ya(t)||a("200"),function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ke,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ce=function(e,t,n){switch(t){case"input":if(wt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=D(r);o||a("90"),Ve(r),wt(r,o)}}}break;case"textarea":$n(e,n);break;case"select":null!=(t=n.value)&&Hn(e,!!n.multiple,t,!1)}},Ua.prototype.render=function(e){this._defer||a("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new Ba;return Da(e,t,null,n,r._onCommit),r},Ua.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Ua.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||a("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,o=t;o!==this;)r=o,o=o._next;null===r&&a("251"),r._next=o._next,this._next=t,e.firstBatch=this}this._defer=!1,Na(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Ua.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},Ba.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Ba.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&a("191",n),n()}}},Va.prototype.render=function(e,t){var n=this._internalRoot,r=new Ba;return null!==(t=void 0===t?null:t)&&r.then(t),Wa(e,n,null,r._onCommit),r},Va.prototype.unmount=function(e){var t=this._internalRoot,n=new Ba;return null!==(e=void 0===e?null:e)&&n.then(e),Wa(null,t,null,n._onCommit),n},Va.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,o=new Ba;return null!==(n=void 0===n?null:n)&&o.then(n),Wa(t,r,e,o._onCommit),o},Va.prototype.createBatch=function(){var e=new Ua(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Le=Ia,Ae=Fa,je=function(){ia||0===ua||(Ma(ua,!1),ua=0)};var Ha={createPortal:Ga,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?a("188"):a("268",Object.keys(e))),e=null===(e=rn(t))?null:e.stateNode},hydrate:function(e,t,n){return Xa(null,e,t,!0,n)},render:function(e,t,n){return Xa(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return(null==e||void 0===e._reactInternalFiber)&&a("38"),Xa(e,t,n,!1,r)},unmountComponentAtNode:function(e){return Ya(e)||a("40"),!!e._reactRootContainer&&(Ra(function(){Xa(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Ga.apply(void 0,arguments)},unstable_batchedUpdates:Ia,unstable_interactiveUpdates:Fa,flushSync:function(e,t){ia&&a("187");var n=fa;fa=!0;try{return ea(e,t)}finally{fa=n,Ma(1073741823,!1)}},unstable_flushControlled:function(e){var t=fa;fa=!0;try{ea(e)}finally{(fa=t)||ia||Ma(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[R,F,D,T.injectEventPluginsByName,y,Y,function(e){C(e,V)},Me,Ne,Sn,N]},unstable_createRoot:function(e,t){return Ya(e)||a("299","unstable_createRoot"),new Va(e,!0,null!=t&&!0===t.hydrate)}};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Dr=zr(function(e){return t.onCommitFiberRoot(n,e)}),Wr=zr(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}})(o({},e,{findHostInstanceByFiber:function(e){return null===(e=rn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}({findFiberByHostInstance:I,bundleType:0,version:"16.6.3",rendererPackageName:"react-dom"});var Ka={default:Ha},qa=Ka&&Ha||Ka;e.exports=qa.default||qa},function(e,t,n){"use strict";e.exports=n(16)},function(e,t,n){"use strict";(function(e){
- /** @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(t,"__esModule",{value:!0});var n=null,r=!1,o=3,i=-1,a=-1,l=!1,u=!1;function s(){if(!l){var e=n.expirationTime;u?k():u=!0,w(p,e)}}function c(){var e=n,t=n.next;if(n===t)n=null;else{var r=n.previous;n=r.next=t,t.previous=r}e.next=e.previous=null,r=e.callback,t=e.expirationTime,e=e.priorityLevel;var i=o,l=a;o=e,a=t;try{var u=r()}finally{o=i,a=l}if("function"==typeof u)if(u={callback:u,priorityLevel:e,expirationTime:t,next:null,previous:null},null===n)n=u.next=u.previous=u;else{r=null,e=n;do{if(e.expirationTime>=t){r=e;break}e=e.next}while(e!==n);null===r?r=n:r===n&&(n=u,s()),(t=r.previous).next=r.previous=u,u.next=r,u.previous=t}}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(e){l=!0;var o=r;r=e;try{if(e)for(;null!==n;){var i=t.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,m=Date,g="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 _(e){d=y(function(t){v(h),e(t)}),h=g(function(){b(d),e(t.unstable_now())},100)}if("object"==typeof performance&&"function"==typeof performance.now){var x=performance;t.unstable_now=function(){return x.now()}}else t.unstable_now=function(){return m.now()};var w,k,P,E=null;if("undefined"!=typeof window?E=window:void 0!==e&&(E=e),E&&E._schedMock){var C=E._schedMock;w=C[0],k=C[1],P=C[2],t.unstable_now=C[3]}else if("undefined"==typeof window||"function"!=typeof MessageChannel){var O=null,S=function(e){if(null!==O)try{O(e)}finally{O=null}};w=function(e){null!==O?setTimeout(w,0,e):(O=e,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,L=!1,A=!1,j=0,I=33,R=33;P=function(){return j<=t.unstable_now()};var F=new MessageChannel,D=F.port2;F.port1.onmessage=function(){M=!1;var e=T,n=N;T=null,N=-1;var r=t.unstable_now(),o=!1;if(0>=j-r){if(!(-1!==n&&n<=r))return L||(L=!0,_(W)),T=e,void(N=n);o=!0}if(null!==e){A=!0;try{e(o)}finally{A=!1}}};var W=function(e){if(null!==T){_(W);var t=e-j+R;t<R&&I<R?(8>t&&(t=8),R=t<I?I:t):I=t,j=e+R,M||(M=!0,D.postMessage(void 0))}else L=!1};w=function(e,t){T=e,N=t,A||0>t?D.postMessage(void 0):L||(L=!0,_(W))},k=function(){T=null,M=!1,N=-1}}t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=o,a=i;o=e,i=t.unstable_now();try{return n()}finally{o=r,i=a,f()}},t.unstable_scheduleCallback=function(e,r){var a=-1!==i?i:t.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(e={callback:e,priorityLevel:o,expirationTime:r,next:null,previous:null},null===n)n=e.next=e.previous=e,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=e,s()),(r=a.previous).next=a.previous=e,e.next=a,e.previous=r}return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(t===e)n=null;else{e===n&&(n=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var n=o;return function(){var r=o,a=i;o=n,i=t.unstable_now();try{return e.apply(this,arguments)}finally{o=r,i=a,f()}}},t.unstable_getCurrentPriorityLevel=function(){return o},t.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime<a||P())}}).call(this,n(7))},function(e,t,n){(function(e,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,m=1,g=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,L=2,A=1/0,j=9007199254740991,I=1.7976931348623157e308,R=NaN,F=4294967295,D=F-1,W=F>>>1,z=[["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]",K="[object Function]",q="[object GeneratorFunction]",$="[object Map]",Z="[object Number]",Q="[object Null]",J="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",ae="[object WeakMap]",le="[object WeakSet]",ue="[object ArrayBuffer]",se="[object DataView]",ce="[object Float32Array]",fe="[object Float64Array]",pe="[object Int8Array]",de="[object Int16Array]",he="[object Int32Array]",me="[object Uint8Array]",ge="[object Uint8ClampedArray]",ve="[object Uint16Array]",ye="[object Uint32Array]",be=/\b__p \+= '';/g,_e=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,we=/&(?:amp|lt|gt|quot|#39);/g,ke=/[&<>"']/g,Pe=RegExp(we.source),Ee=RegExp(ke.source),Ce=/<%-([\s\S]+?)%>/g,Oe=/<%([\s\S]+?)%>/g,Se=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Me=/^\w*$/,Ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Le=/[\\^$.*+?()[\]{}|]/g,Ae=RegExp(Le.source),je=/^\s+|\s+$/g,Ie=/^\s+/,Re=/\s+$/,Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,We=/,? & /,ze=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/\\(\\)?/g,Be=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ve=/\w*$/,Ye=/^[-+]0x[0-9a-f]+$/i,Xe=/^0b[01]+$/i,Ge=/^\[object .+?Constructor\]$/,He=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$e=/($^)/,Ze=/['\n\r\u2028\u2029\\]/g,Qe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Je="\\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",et="[\\ud800-\\udfff]",tt="["+Je+"]",nt="["+Qe+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Je+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",lt="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",st="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pt="(?:"+it+"|"+at+")",dt="(?:"+ft+"|"+at+")",ht="(?:"+nt+"|"+lt+")"+"?",mt="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[ut,st,ct].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),gt="(?:"+[ot,st,ct].join("|")+")"+mt,vt="(?:"+[ut+nt+"?",nt,st,ct,et].join("|")+")",yt=RegExp("['’]","g"),bt=RegExp(nt,"g"),_t=RegExp(lt+"(?="+lt+")|"+vt+mt,"g"),xt=RegExp([ft+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ft,"$"].join("|")+")",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ft+pt,"$"].join("|")+")",ft+"?"+pt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ft+"+(?:['’](?: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_])",rt,gt].join("|"),"g"),wt=RegExp("[\\u200d\\ud800-\\udfff"+Qe+"\\ufe0e\\ufe0f]"),kt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pt=["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"],Et=-1,Ct={};Ct[ce]=Ct[fe]=Ct[pe]=Ct[de]=Ct[he]=Ct[me]=Ct[ge]=Ct[ve]=Ct[ye]=!0,Ct[U]=Ct[B]=Ct[ue]=Ct[Y]=Ct[se]=Ct[X]=Ct[H]=Ct[K]=Ct[$]=Ct[Z]=Ct[J]=Ct[te]=Ct[ne]=Ct[re]=Ct[ae]=!1;var Ot={};Ot[U]=Ot[B]=Ot[ue]=Ot[se]=Ot[Y]=Ot[X]=Ot[ce]=Ot[fe]=Ot[pe]=Ot[de]=Ot[he]=Ot[$]=Ot[Z]=Ot[J]=Ot[te]=Ot[ne]=Ot[re]=Ot[oe]=Ot[me]=Ot[ge]=Ot[ve]=Ot[ye]=!0,Ot[H]=Ot[K]=Ot[ae]=!1;var St={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Tt=parseFloat,Mt=parseInt,Nt="object"==typeof e&&e&&e.Object===Object&&e,Lt="object"==typeof self&&self&&self.Object===Object&&self,At=Nt||Lt||Function("return this")(),jt=t&&!t.nodeType&&t,It=jt&&"object"==typeof r&&r&&!r.nodeType&&r,Rt=It&&It.exports===jt,Ft=Rt&&Nt.process,Dt=function(){try{var e=It&&It.require&&It.require("util").types;return e||Ft&&Ft.binding&&Ft.binding("util")}catch(e){}}(),Wt=Dt&&Dt.isArrayBuffer,zt=Dt&&Dt.isDate,Ut=Dt&&Dt.isMap,Bt=Dt&&Dt.isRegExp,Vt=Dt&&Dt.isSet,Yt=Dt&&Dt.isTypedArray;function Xt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Gt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Ht(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Kt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function qt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function $t(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Zt(e,t){return!!(null==e?0:e.length)&&un(e,t,0)>-1}function Qt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Jt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function en(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function tn(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function nn(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function rn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var on=pn("length");function an(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function ln(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function un(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):ln(e,cn,n)}function sn(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function cn(e){return e!=e}function fn(e,t){var n=null==e?0:e.length;return n?mn(e,t)/n:R}function pn(e){return function(t){return null==t?i:t[e]}}function dn(e){return function(t){return null==e?i:e[t]}}function hn(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function mn(e,t){for(var n,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==i&&(n=n===i?a:n+a)}return n}function gn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function vn(e){return function(t){return e(t)}}function yn(e,t){return Jt(t,function(t){return e[t]})}function bn(e,t){return e.has(t)}function _n(e,t){for(var n=-1,r=e.length;++n<r&&un(t,e[n],0)>-1;);return n}function xn(e,t){for(var n=e.length;n--&&un(t,e[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(e){return"\\"+St[e]}function En(e){return wt.test(e)}function Cn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function On(e,t){return function(n){return e(t(n))}}function Sn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==f||(e[n]=f,i[o++]=n)}return i}function Tn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function Mn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Nn(e){return En(e)?function(e){var t=_t.lastIndex=0;for(;_t.test(e);)++t;return t}(e):on(e)}function Ln(e){return En(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.split("")}(e)}var An=dn({"&":"&","<":"<",">":">",""":'"',"'":"'"});var jn=function e(t){var n,r=(t=null==t?At:jn.defaults(At.Object(),t,jn.pick(At,Pt))).Array,o=t.Date,Qe=t.Error,Je=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,ot=t.TypeError,it=r.prototype,at=Je.prototype,lt=tt.prototype,ut=t["__core-js_shared__"],st=at.toString,ct=lt.hasOwnProperty,ft=0,pt=(n=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",dt=lt.toString,ht=st.call(tt),mt=At._,gt=nt("^"+st.call(ct).replace(Le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vt=Rt?t.Buffer:i,_t=t.Symbol,wt=t.Uint8Array,St=vt?vt.allocUnsafe:i,Nt=On(tt.getPrototypeOf,tt),Lt=tt.create,jt=lt.propertyIsEnumerable,It=it.splice,Ft=_t?_t.isConcatSpreadable:i,Dt=_t?_t.iterator:i,on=_t?_t.toStringTag:i,dn=function(){try{var e=Wi(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),In=t.clearTimeout!==At.clearTimeout&&t.clearTimeout,Rn=o&&o.now!==At.Date.now&&o.now,Fn=t.setTimeout!==At.setTimeout&&t.setTimeout,Dn=et.ceil,Wn=et.floor,zn=tt.getOwnPropertySymbols,Un=vt?vt.isBuffer:i,Bn=t.isFinite,Vn=it.join,Yn=On(tt.keys,tt),Xn=et.max,Gn=et.min,Hn=o.now,Kn=t.parseInt,qn=et.random,$n=it.reverse,Zn=Wi(t,"DataView"),Qn=Wi(t,"Map"),Jn=Wi(t,"Promise"),er=Wi(t,"Set"),tr=Wi(t,"WeakMap"),nr=Wi(tt,"create"),rr=tr&&new tr,or={},ir=fa(Zn),ar=fa(Qn),lr=fa(Jn),ur=fa(er),sr=fa(tr),cr=_t?_t.prototype:i,fr=cr?cr.valueOf:i,pr=cr?cr.toString:i;function dr(e){if(Sl(e)&&!vl(e)&&!(e instanceof vr)){if(e instanceof gr)return e;if(ct.call(e,"__wrapped__"))return pa(e)}return new gr(e)}var hr=function(){function e(){}return function(t){if(!Ol(t))return{};if(Lt)return Lt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function mr(){}function gr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function vr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=F,this.__views__=[]}function yr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function br(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new _r;++t<n;)this.add(e[t])}function wr(e){var t=this.__data__=new br(e);this.size=t.size}function kr(e,t){var n=vl(e),r=!n&&gl(e),o=!n&&!r&&xl(e),i=!n&&!r&&!o&&Rl(e),a=n||r||o||i,l=a?gn(e.length,rt):[],u=l.length;for(var s in e)!t&&!ct.call(e,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(e){var t=e.length;return t?e[wo(0,t-1)]:i}function Er(e,t){return ua(ri(e),jr(t,0,e.length))}function Cr(e){return ua(ri(e))}function Or(e,t,n){(n===i||dl(e[t],n))&&(n!==i||t in e)||Lr(e,t,n)}function Sr(e,t,n){var r=e[t];ct.call(e,t)&&dl(r,n)&&(n!==i||t in e)||Lr(e,t,n)}function Tr(e,t){for(var n=e.length;n--;)if(dl(e[n][0],t))return n;return-1}function Mr(e,t,n,r){return Wr(e,function(e,o,i){t(r,e,n(e),i)}),r}function Nr(e,t){return e&&oi(t,ou(t),e)}function Lr(e,t,n){"__proto__"==t&&dn?dn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ar(e,t){for(var n=-1,o=t.length,a=r(o),l=null==e;++n<o;)a[n]=l?i:Jl(e,t[n]);return a}function jr(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function Ir(e,t,n,r,o,a){var l,u=t&p,s=t&d,c=t&h;if(n&&(l=o?n(e,r,o,a):n(e)),l!==i)return l;if(!Ol(e))return e;var f=vl(e);if(f){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return ri(e,l)}else{var m=Bi(e),g=m==K||m==q;if(xl(e))return Zo(e,u);if(m==J||m==U||g&&!o){if(l=s||g?{}:Yi(e),!u)return s?function(e,t){return oi(e,Ui(e),t)}(e,function(e,t){return e&&oi(t,iu(t),e)}(l,e)):function(e,t){return oi(e,zi(e),t)}(e,Nr(l,e))}else{if(!Ot[m])return o?e:{};l=function(e,t,n){var r,o,i,a=e.constructor;switch(t){case ue:return Qo(e);case Y:case X:return new a(+e);case se:return function(e,t){var n=t?Qo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ce:case fe:case pe:case de:case he:case me:case ge:case ve:case ye:return Jo(e,n);case $:return new a;case Z:case re:return new a(e);case te:return(i=new(o=e).constructor(o.source,Ve.exec(o))).lastIndex=o.lastIndex,i;case ne:return new a;case oe:return r=e,fr?tt(fr.call(r)):{}}}(e,m,u)}}a||(a=new wr);var v=a.get(e);if(v)return v;if(a.set(e,l),Al(e))return e.forEach(function(r){l.add(Ir(r,t,n,r,e,a))}),l;if(Tl(e))return e.forEach(function(r,o){l.set(o,Ir(r,t,n,o,e,a))}),l;var y=f?i:(c?s?Li:Ni:s?iu:ou)(e);return Ht(y||e,function(r,o){y&&(r=e[o=r]),Sr(l,o,Ir(r,t,n,o,e,a))}),l}function Rr(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var o=n[r],a=t[o],l=e[o];if(l===i&&!(o in e)||!a(l))return!1}return!0}function Fr(e,t,n){if("function"!=typeof e)throw new ot(u);return oa(function(){e.apply(i,n)},t)}function Dr(e,t,n,r){var o=-1,i=Zt,l=!0,u=e.length,s=[],c=t.length;if(!u)return s;n&&(t=Jt(t,vn(n))),r?(i=Qt,l=!1):t.length>=a&&(i=bn,l=!1,t=new xr(t));e:for(;++o<u;){var f=e[o],p=null==n?f:n(f);if(f=r||0!==f?f:0,l&&p==p){for(var d=c;d--;)if(t[d]===p)continue e;s.push(f)}else i(t,p,r)||s.push(f)}return s}dr.templateSettings={escape:Ce,evaluate:Oe,interpolate:Se,variable:"",imports:{_:dr}},dr.prototype=mr.prototype,dr.prototype.constructor=dr,gr.prototype=hr(mr.prototype),gr.prototype.constructor=gr,vr.prototype=hr(mr.prototype),vr.prototype.constructor=vr,yr.prototype.clear=function(){this.__data__=nr?nr(null):{},this.size=0},yr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},yr.prototype.get=function(e){var t=this.__data__;if(nr){var n=t[e];return n===s?i:n}return ct.call(t,e)?t[e]:i},yr.prototype.has=function(e){var t=this.__data__;return nr?t[e]!==i:ct.call(t,e)},yr.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nr&&t===i?s:t,this},br.prototype.clear=function(){this.__data__=[],this.size=0},br.prototype.delete=function(e){var t=this.__data__,n=Tr(t,e);return!(n<0||(n==t.length-1?t.pop():It.call(t,n,1),--this.size,0))},br.prototype.get=function(e){var t=this.__data__,n=Tr(t,e);return n<0?i:t[n][1]},br.prototype.has=function(e){return Tr(this.__data__,e)>-1},br.prototype.set=function(e,t){var n=this.__data__,r=Tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},_r.prototype.clear=function(){this.size=0,this.__data__={hash:new yr,map:new(Qn||br),string:new yr}},_r.prototype.delete=function(e){var t=Fi(this,e).delete(e);return this.size-=t?1:0,t},_r.prototype.get=function(e){return Fi(this,e).get(e)},_r.prototype.has=function(e){return Fi(this,e).has(e)},_r.prototype.set=function(e,t){var n=Fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xr.prototype.add=xr.prototype.push=function(e){return this.__data__.set(e,s),this},xr.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.clear=function(){this.__data__=new br,this.size=0},wr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},wr.prototype.get=function(e){return this.__data__.get(e)},wr.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Qn||r.length<a-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new _r(r)}return n.set(e,t),this.size=n.size,this};var Wr=li(Hr),zr=li(Kr,!0);function Ur(e,t){var n=!0;return Wr(e,function(e,r,o){return n=!!t(e,r,o)}),n}function Br(e,t,n){for(var r=-1,o=e.length;++r<o;){var a=e[r],l=t(a);if(null!=l&&(u===i?l==l&&!Il(l):n(l,u)))var u=l,s=a}return s}function Vr(e,t){var n=[];return Wr(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function Yr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=Xi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?Yr(l,t-1,n,r,o):en(o,l):r||(o[o.length]=l)}return o}var Xr=ui(),Gr=ui(!0);function Hr(e,t){return e&&Xr(e,t,ou)}function Kr(e,t){return e&&Gr(e,t,ou)}function qr(e,t){return $t(t,function(t){return Pl(e[t])})}function $r(e,t){for(var n=0,r=(t=Ho(t,e)).length;null!=e&&n<r;)e=e[ca(t[n++])];return n&&n==r?e:i}function Zr(e,t,n){var r=t(e);return vl(e)?r:en(r,n(e))}function Qr(e){return null==e?e===i?ie:Q:on&&on in tt(e)?function(e){var t=ct.call(e,on),n=e[on];try{e[on]=i;var r=!0}catch(e){}var o=dt.call(e);return r&&(t?e[on]=n:delete e[on]),o}(e):function(e){return dt.call(e)}(e)}function Jr(e,t){return e>t}function eo(e,t){return null!=e&&ct.call(e,t)}function to(e,t){return null!=e&&t in tt(e)}function no(e,t,n){for(var o=n?Qt:Zt,a=e[0].length,l=e.length,u=l,s=r(l),c=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Jt(p,vn(t))),c=Gn(p.length,c),s[u]=!n&&(t||a>=120&&p.length>=120)?new xr(u&&p):i}p=e[0];var d=-1,h=s[0];e:for(;++d<a&&f.length<c;){var m=p[d],g=t?t(m):m;if(m=n||0!==m?m:0,!(h?bn(h,g):o(f,g,n))){for(u=l;--u;){var v=s[u];if(!(v?bn(v,g):o(e[u],g,n)))continue e}h&&h.push(g),f.push(m)}}return f}function ro(e,t,n){var r=null==(e=ta(e,t=Ho(t,e)))?e:e[ca(ka(t))];return null==r?i:Xt(r,e,n)}function oo(e){return Sl(e)&&Qr(e)==U}function io(e,t,n,r,o){return e===t||(null==e||null==t||!Sl(e)&&!Sl(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var l=vl(e),u=vl(t),s=l?B:Bi(e),c=u?B:Bi(t),f=(s=s==U?J:s)==J,p=(c=c==U?J:c)==J,d=s==c;if(d&&xl(e)){if(!xl(t))return!1;l=!0,f=!1}if(d&&!f)return a||(a=new wr),l||Rl(e)?Ti(e,t,n,r,o,a):function(e,t,n,r,o,i,a){switch(n){case se:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ue:return!(e.byteLength!=t.byteLength||!i(new wt(e),new wt(t)));case Y:case X:case Z:return dl(+e,+t);case H:return e.name==t.name&&e.message==t.message;case te:case re:return e==t+"";case $:var l=Cn;case ne:var u=r&m;if(l||(l=Tn),e.size!=t.size&&!u)return!1;var s=a.get(e);if(s)return s==t;r|=g,a.set(e,t);var c=Ti(l(e),l(t),r,o,i,a);return a.delete(e),c;case oe:if(fr)return fr.call(e)==fr.call(t)}return!1}(e,t,s,n,r,o,a);if(!(n&m)){var h=f&&ct.call(e,"__wrapped__"),v=p&&ct.call(t,"__wrapped__");if(h||v){var y=h?e.value():e,b=v?t.value():t;return a||(a=new wr),o(y,b,n,r,a)}}return!!d&&(a||(a=new wr),function(e,t,n,r,o,a){var l=n&m,u=Ni(e),s=u.length,c=Ni(t).length;if(s!=c&&!l)return!1;for(var f=s;f--;){var p=u[f];if(!(l?p in t:ct.call(t,p)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var h=!0;a.set(e,t),a.set(t,e);for(var g=l;++f<s;){p=u[f];var v=e[p],y=t[p];if(r)var b=l?r(y,v,p,t,e,a):r(v,y,p,e,t,a);if(!(b===i?v===y||o(v,y,n,r,a):b)){h=!1;break}g||(g="constructor"==p)}if(h&&!g){var _=e.constructor,x=t.constructor;_!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x)&&(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,r,o,a))}(e,t,n,r,io,o))}function ao(e,t,n,r){var o=n.length,a=o,l=!r;if(null==e)return!a;for(e=tt(e);o--;){var u=n[o];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var s=(u=n[o])[0],c=e[s],f=u[1];if(l&&u[2]){if(c===i&&!(s in e))return!1}else{var p=new wr;if(r)var d=r(c,f,s,e,t,p);if(!(d===i?io(f,c,m|g,r,p):d))return!1}}return!0}function lo(e){return!(!Ol(e)||(t=e,pt&&pt in t))&&(Pl(e)?gt:Ge).test(fa(e));var t}function uo(e){return"function"==typeof e?e:null==e?Mu:"object"==typeof e?vl(e)?mo(e[0],e[1]):ho(e):Wu(e)}function so(e){if(!Zi(e))return Yn(e);var t=[];for(var n in tt(e))ct.call(e,n)&&"constructor"!=n&&t.push(n);return t}function co(e){if(!Ol(e))return function(e){var t=[];if(null!=e)for(var n in tt(e))t.push(n);return t}(e);var t=Zi(e),n=[];for(var r in e)("constructor"!=r||!t&&ct.call(e,r))&&n.push(r);return n}function fo(e,t){return e<t}function po(e,t){var n=-1,o=bl(e)?r(e.length):[];return Wr(e,function(e,r,i){o[++n]=t(e,r,i)}),o}function ho(e){var t=Di(e);return 1==t.length&&t[0][2]?Ji(t[0][0],t[0][1]):function(n){return n===e||ao(n,e,t)}}function mo(e,t){return Ki(e)&&Qi(t)?Ji(ca(e),t):function(n){var r=Jl(n,e);return r===i&&r===t?eu(n,e):io(t,r,m|g)}}function go(e,t,n,r,o){e!==t&&Xr(t,function(a,l){if(Ol(a))o||(o=new wr),function(e,t,n,r,o,a,l){var u=na(e,n),s=na(t,n),c=l.get(s);if(c)Or(e,n,c);else{var f=a?a(u,s,n+"",e,t,l):i,p=f===i;if(p){var d=vl(s),h=!d&&xl(s),m=!d&&!h&&Rl(s);f=s,d||h||m?vl(u)?f=u:_l(u)?f=ri(u):h?(p=!1,f=Zo(s,!0)):m?(p=!1,f=Jo(s,!0)):f=[]:Nl(s)||gl(s)?(f=u,gl(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(e,n,f)}}(e,t,l,n,go,r,o);else{var u=r?r(na(e,l),a,l+"",e,t,o):i;u===i&&(u=a),Or(e,l,u)}},iu)}function vo(e,t){var n=e.length;if(n)return Gi(t+=t<0?n:0,n)?e[t]:i}function yo(e,t,n){var r=-1;return t=Jt(t.length?t:[Mu],vn(Ri())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(po(e,function(e,n,o){return{criteria:Jt(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;++r<a;){var u=ei(o[r],i[r]);if(u){if(r>=l)return u;var s=n[r];return u*("desc"==s?-1:1)}}return e.index-t.index}(e,t,n)})}function bo(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=$r(e,a);n(l,a)&&Oo(i,Ho(a,e),l)}return i}function _o(e,t,n,r){var o=r?sn:un,i=-1,a=t.length,l=e;for(e===t&&(t=ri(t)),n&&(l=Jt(e,vn(n)));++i<a;)for(var u=0,s=t[i],c=n?n(s):s;(u=o(l,c,u,r))>-1;)l!==e&&It.call(l,u,1),It.call(e,u,1);return e}function xo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Gi(o)?It.call(e,o,1):Wo(e,o)}}return e}function wo(e,t){return e+Wn(qn()*(t-e+1))}function ko(e,t){var n="";if(!e||t<1||t>j)return n;do{t%2&&(n+=e),(t=Wn(t/2))&&(e+=e)}while(t);return n}function Po(e,t){return ia(ea(e,t,Mu),e+"")}function Eo(e){return Pr(du(e))}function Co(e,t){var n=du(e);return ua(n,jr(t,0,n.length))}function Oo(e,t,n,r){if(!Ol(e))return e;for(var o=-1,a=(t=Ho(t,e)).length,l=a-1,u=e;null!=u&&++o<a;){var s=ca(t[o]),c=n;if(o!=l){var f=u[s];(c=r?r(f,s,u):i)===i&&(c=Ol(f)?f:Gi(t[o+1])?[]:{})}Sr(u,s,c),u=u[s]}return e}var So=rr?function(e,t){return rr.set(e,t),e}:Mu,To=dn?function(e,t){return dn(e,"toString",{configurable:!0,enumerable:!1,value:Ou(t),writable:!0})}:Mu;function Mo(e){return ua(du(e))}function No(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function Lo(e,t){var n;return Wr(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function Ao(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=W){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!Il(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return jo(e,t,Mu,n)}function jo(e,t,n,r){t=n(t);for(var o=0,a=null==e?0:e.length,l=t!=t,u=null===t,s=Il(t),c=t===i;o<a;){var f=Wn((o+a)/2),p=n(e[f]),d=p!==i,h=null===p,m=p==p,g=Il(p);if(l)var v=r||m;else v=c?m&&(r||d):u?m&&d&&(r||!h):s?m&&d&&!h&&(r||!g):!h&&!g&&(r?p<=t:p<t);v?o=f+1:a=f}return Gn(a,D)}function Io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!dl(l,u)){var u=l;i[o++]=0===a?0:a}}return i}function Ro(e){return"number"==typeof e?e:Il(e)?R:+e}function Fo(e){if("string"==typeof e)return e;if(vl(e))return Jt(e,Fo)+"";if(Il(e))return pr?pr.call(e):"";var t=e+"";return"0"==t&&1/e==-A?"-0":t}function Do(e,t,n){var r=-1,o=Zt,i=e.length,l=!0,u=[],s=u;if(n)l=!1,o=Qt;else if(i>=a){var c=t?null:ki(e);if(c)return Tn(c);l=!1,o=bn,s=new xr}else s=t?[]:u;e:for(;++r<i;){var f=e[r],p=t?t(f):f;if(f=n||0!==f?f:0,l&&p==p){for(var d=s.length;d--;)if(s[d]===p)continue e;t&&s.push(p),u.push(f)}else o(s,p,n)||(s!==u&&s.push(p),u.push(f))}return u}function Wo(e,t){return null==(e=ta(e,t=Ho(t,e)))||delete e[ca(ka(t))]}function zo(e,t,n,r){return Oo(e,t,n($r(e,t)),r)}function Uo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?No(e,r?0:i,r?i+1:o):No(e,r?i+1:0,r?o:i)}function Bo(e,t){var n=e;return n instanceof vr&&(n=n.value()),tn(t,function(e,t){return t.func.apply(t.thisArg,en([e],t.args))},n)}function Vo(e,t,n){var o=e.length;if(o<2)return o?Do(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var l=e[i],u=-1;++u<o;)u!=i&&(a[i]=Dr(a[i]||l,e[u],t,n));return Do(Yr(a,1),t,n)}function Yo(e,t,n){for(var r=-1,o=e.length,a=t.length,l={};++r<o;){var u=r<a?t[r]:i;n(l,e[r],u)}return l}function Xo(e){return _l(e)?e:[]}function Go(e){return"function"==typeof e?e:Mu}function Ho(e,t){return vl(e)?e:Ki(e,t)?[e]:sa(Xl(e))}var Ko=Po;function qo(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:No(e,t,n)}var $o=In||function(e){return At.clearTimeout(e)};function Zo(e,t){if(t)return e.slice();var n=e.length,r=St?St(n):new e.constructor(n);return e.copy(r),r}function Qo(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Jo(e,t){var n=t?Qo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ei(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=Il(e),l=t!==i,u=null===t,s=t==t,c=Il(t);if(!u&&!c&&!a&&e>t||a&&l&&s&&!u&&!c||r&&l&&s||!n&&s||!o)return 1;if(!r&&!a&&!c&&e<t||c&&n&&o&&!r&&!a||u&&n&&o||!l&&o||!s)return-1}return 0}function ti(e,t,n,o){for(var i=-1,a=e.length,l=n.length,u=-1,s=t.length,c=Xn(a-l,0),f=r(s+c),p=!o;++u<s;)f[u]=t[u];for(;++i<l;)(p||i<a)&&(f[n[i]]=e[i]);for(;c--;)f[u++]=e[i++];return f}function ni(e,t,n,o){for(var i=-1,a=e.length,l=-1,u=n.length,s=-1,c=t.length,f=Xn(a-u,0),p=r(f+c),d=!o;++i<f;)p[i]=e[i];for(var h=i;++s<c;)p[h+s]=t[s];for(;++l<u;)(d||i<a)&&(p[h+n[l]]=e[i++]);return p}function ri(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function oi(e,t,n,r){var o=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var u=t[a],s=r?r(n[u],e[u],u,n,e):i;s===i&&(s=e[u]),o?Lr(n,u,s):Sr(n,u,s)}return n}function ii(e,t){return function(n,r){var o=vl(n)?Gt:Mr,i=t?t():{};return o(n,e,Ri(r,2),i)}}function ai(e){return Po(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:i,l=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,l&&Hi(n[0],n[1],l)&&(a=o<3?i:a,o=1),t=tt(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t})}function li(e,t){return function(n,r){if(null==n)return n;if(!bl(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=tt(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function ui(e){return function(t,n,r){for(var o=-1,i=tt(t),a=r(t),l=a.length;l--;){var u=a[e?l:++o];if(!1===n(i[u],u,i))break}return t}}function si(e){return function(t){var n=En(t=Xl(t))?Ln(t):i,r=n?n[0]:t.charAt(0),o=n?qo(n,1).join(""):t.slice(1);return r[e]()+o}}function ci(e){return function(t){return tn(Pu(gu(t).replace(yt,"")),e,"")}}function fi(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=hr(e.prototype),r=e.apply(n,t);return Ol(r)?r:n}}function pi(e){return function(t,n,r){var o=tt(t);if(!bl(t)){var a=Ri(n,3);t=ou(t),n=function(e){return a(o[e],e,o)}}var l=e(t,n,r);return l>-1?o[a?t[l]:l]:i}}function di(e){return Mi(function(t){var n=t.length,r=n,o=gr.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ot(u);if(o&&!l&&"wrapper"==ji(a))var l=new gr([],!0)}for(r=l?r:n;++r<n;){var s=ji(a=t[r]),c="wrapper"==s?Ai(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 e=arguments,r=e[0];if(l&&1==e.length&&vl(r))return l.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}function hi(e,t,n,o,a,l,u,s,c,f){var p=t&P,d=t&v,h=t&y,m=t&(_|x),g=t&C,b=h?i:fi(e);return function v(){for(var y=arguments.length,_=r(y),x=y;x--;)_[x]=arguments[x];if(m)var w=Ii(v),k=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(_,w);if(o&&(_=ti(_,o,a,m)),l&&(_=ni(_,l,u,m)),y-=k,m&&y<f){var P=Sn(_,w);return xi(e,t,hi,v.placeholder,n,_,P,s,c,f-y)}var E=d?n:this,C=h?E[e]:e;return y=_.length,s?_=function(e,t){for(var n=e.length,r=Gn(t.length,n),o=ri(e);r--;){var a=t[r];e[r]=Gi(a,n)?o[a]:i}return e}(_,s):g&&y>1&&_.reverse(),p&&c<y&&(_.length=c),this&&this!==At&&this instanceof v&&(C=b||fi(C)),C.apply(E,_)}}function mi(e,t){return function(n,r){return function(e,t,n,r){return Hr(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}function gi(e,t){return function(n,r){var o;if(n===i&&r===i)return t;if(n!==i&&(o=n),r!==i){if(o===i)return r;"string"==typeof n||"string"==typeof r?(n=Fo(n),r=Fo(r)):(n=Ro(n),r=Ro(r)),o=e(n,r)}return o}}function vi(e){return Mi(function(t){return t=Jt(t,vn(Ri())),Po(function(n){var r=this;return e(t,function(e){return Xt(e,r,n)})})})}function yi(e,t){var n=(t=t===i?" ":Fo(t)).length;if(n<2)return n?ko(t,e):t;var r=ko(t,Dn(e/Nn(t)));return En(t)?qo(Ln(r),0,e).join(""):r.slice(0,e)}function bi(e){return function(t,n,o){return o&&"number"!=typeof o&&Hi(t,n,o)&&(n=o=i),t=zl(t),n===i?(n=t,t=0):n=zl(n),function(e,t,n,o){for(var i=-1,a=Xn(Dn((t-e)/(n||1)),0),l=r(a);a--;)l[o?a:++i]=e,e+=n;return l}(t,n,o=o===i?t<n?1:-1:zl(o),e)}}function _i(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Vl(t),n=Vl(n)),e(t,n)}}function xi(e,t,n,r,o,a,l,u,s,c){var f=t&_;t|=f?w:k,(t&=~(f?k:w))&b||(t&=~(v|y));var p=[e,t,o,f?a:i,f?l:i,f?i:a,f?i:l,u,s,c],d=n.apply(i,p);return qi(e)&&ra(d,p),d.placeholder=r,aa(d,e,t)}function wi(e){var t=et[e];return function(e,n){if(e=Vl(e),n=null==n?0:Gn(Ul(n),292)){var r=(Xl(e)+"e").split("e");return+((r=(Xl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var ki=er&&1/Tn(new er([,-0]))[1]==A?function(e){return new er(e)}:Iu;function Pi(e){return function(t){var n=Bi(t);return n==$?Cn(t):n==ne?Mn(t):function(e,t){return Jt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Ei(e,t,n,o,a,l,s,c){var p=t&y;if(!p&&"function"!=typeof e)throw new ot(u);var d=o?o.length:0;if(d||(t&=~(w|k),o=a=i),s=s===i?s:Xn(Ul(s),0),c=c===i?c:Ul(c),d-=a?a.length:0,t&k){var h=o,m=a;o=a=i}var g=p?i:Ai(e),C=[e,t,n,o,a,h,m,l,s,c];if(g&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<(v|y|P),a=r==P&&n==_||r==P&&n==E&&e[7].length<=t[8]||r==(P|E)&&t[7].length<=t[8]&&n==_;if(!i&&!a)return e;r&v&&(e[2]=t[2],o|=n&v?0:b);var l=t[3];if(l){var u=e[3];e[3]=u?ti(u,l,t[4]):l,e[4]=u?Sn(e[3],f):t[4]}(l=t[5])&&(u=e[5],e[5]=u?ni(u,l,t[6]):l,e[6]=u?Sn(e[5],f):t[6]),(l=t[7])&&(e[7]=l),r&P&&(e[8]=null==e[8]?t[8]:Gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(C,g),e=C[0],t=C[1],n=C[2],o=C[3],a=C[4],!(c=C[9]=C[9]===i?p?0:e.length:Xn(C[9]-d,0))&&t&(_|x)&&(t&=~(_|x)),t&&t!=v)O=t==_||t==x?function(e,t,n){var o=fi(e);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(e,t,hi,a.placeholder,i,u,f,i,i,n-l):Xt(this&&this!==At&&this instanceof a?o:e,this,u)}}(e,t,c):t!=w&&t!=(v|w)||a.length?hi.apply(i,C):function(e,t,n,o){var i=t&v,a=fi(e);return function t(){for(var l=-1,u=arguments.length,s=-1,c=o.length,f=r(c+u),p=this&&this!==At&&this instanceof t?a:e;++s<c;)f[s]=o[s];for(;u--;)f[s++]=arguments[++l];return Xt(p,i?n:this,f)}}(e,t,n,o);else var O=function(e,t,n){var r=t&v,o=fi(e);return function t(){return(this&&this!==At&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return aa((g?So:ra)(O,C),e,t)}function Ci(e,t,n,r){return e===i||dl(e,lt[n])&&!ct.call(r,n)?t:e}function Oi(e,t,n,r,o,a){return Ol(e)&&Ol(t)&&(a.set(t,e),go(e,t,i,Oi,a),a.delete(t)),e}function Si(e){return Nl(e)?i:e}function Ti(e,t,n,r,o,a){var l=n&m,u=e.length,s=t.length;if(u!=s&&!(l&&s>u))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var f=-1,p=!0,d=n&g?new xr:i;for(a.set(e,t),a.set(t,e);++f<u;){var h=e[f],v=t[f];if(r)var y=l?r(v,h,f,t,e,a):r(h,v,f,e,t,a);if(y!==i){if(y)continue;p=!1;break}if(d){if(!rn(t,function(e,t){if(!bn(d,t)&&(h===e||o(h,e,n,r,a)))return d.push(t)})){p=!1;break}}else if(h!==v&&!o(h,v,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function Mi(e){return ia(ea(e,i,ya),e+"")}function Ni(e){return Zr(e,ou,zi)}function Li(e){return Zr(e,iu,Ui)}var Ai=rr?function(e){return rr.get(e)}:Iu;function ji(e){for(var t=e.name+"",n=or[t],r=ct.call(or,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Ii(e){return(ct.call(dr,"placeholder")?dr:e).placeholder}function Ri(){var e=dr.iteratee||Nu;return e=e===Nu?uo:e,arguments.length?e(arguments[0],arguments[1]):e}function Fi(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Di(e){for(var t=ou(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Qi(o)]}return t}function Wi(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return lo(n)?n:i}var zi=zn?function(e){return null==e?[]:(e=tt(e),$t(zn(e),function(t){return jt.call(e,t)}))}:Bu,Ui=zn?function(e){for(var t=[];e;)en(t,zi(e)),e=Nt(e);return t}:Bu,Bi=Qr;function Vi(e,t,n){for(var r=-1,o=(t=Ho(t,e)).length,i=!1;++r<o;){var a=ca(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Cl(o)&&Gi(a,o)&&(vl(e)||gl(e))}function Yi(e){return"function"!=typeof e.constructor||Zi(e)?{}:hr(Nt(e))}function Xi(e){return vl(e)||gl(e)||!!(Ft&&e&&e[Ft])}function Gi(e,t){var n=typeof e;return!!(t=null==t?j:t)&&("number"==n||"symbol"!=n&&Ke.test(e))&&e>-1&&e%1==0&&e<t}function Hi(e,t,n){if(!Ol(n))return!1;var r=typeof t;return!!("number"==r?bl(n)&&Gi(t,n.length):"string"==r&&t in n)&&dl(n[t],e)}function Ki(e,t){if(vl(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Il(e))||Me.test(e)||!Te.test(e)||null!=t&&e in tt(t)}function qi(e){var t=ji(e),n=dr[t];if("function"!=typeof n||!(t in vr.prototype))return!1;if(e===n)return!0;var r=Ai(n);return!!r&&e===r[0]}(Zn&&Bi(new Zn(new ArrayBuffer(1)))!=se||Qn&&Bi(new Qn)!=$||Jn&&"[object Promise]"!=Bi(Jn.resolve())||er&&Bi(new er)!=ne||tr&&Bi(new tr)!=ae)&&(Bi=function(e){var t=Qr(e),n=t==J?e.constructor:i,r=n?fa(n):"";if(r)switch(r){case ir:return se;case ar:return $;case lr:return"[object Promise]";case ur:return ne;case sr:return ae}return t});var $i=ut?Pl:Vu;function Zi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||lt)}function Qi(e){return e==e&&!Ol(e)}function Ji(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in tt(n))}}function ea(e,t,n){return t=Xn(t===i?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=Xn(o.length-t,0),l=r(a);++i<a;)l[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(l),Xt(e,this,u)}}function ta(e,t){return t.length<2?e:$r(e,No(t,0,-1))}function na(e,t){if("__proto__"!=t)return e[t]}var ra=la(So),oa=Fn||function(e,t){return At.setTimeout(e,t)},ia=la(To);function aa(e,t,n){var r=t+"";return ia(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Fe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ht(z,function(n){var r="_."+n[0];t&n[1]&&!Zt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(De);return t?t[1].split(We):[]}(r),n)))}function la(e){var t=0,n=0;return function(){var r=Hn(),o=M-(r-n);if(n=r,o>0){if(++t>=T)return arguments[0]}else t=0;return e.apply(i,arguments)}}function ua(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n<t;){var a=wo(n,o),l=e[a];e[a]=e[n],e[n]=l}return e.length=t,e}var sa=function(e){var t=ll(e,function(e){return n.size===c&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ne,function(e,n,r,o){t.push(r?o.replace(Ue,"$1"):n||e)}),t});function ca(e){if("string"==typeof e||Il(e))return e;var t=e+"";return"0"==t&&1/e==-A?"-0":t}function fa(e){if(null!=e){try{return st.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function pa(e){if(e instanceof vr)return e.clone();var t=new gr(e.__wrapped__,e.__chain__);return t.__actions__=ri(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var da=Po(function(e,t){return _l(e)?Dr(e,Yr(t,1,_l,!0)):[]}),ha=Po(function(e,t){var n=ka(t);return _l(n)&&(n=i),_l(e)?Dr(e,Yr(t,1,_l,!0),Ri(n,2)):[]}),ma=Po(function(e,t){var n=ka(t);return _l(n)&&(n=i),_l(e)?Dr(e,Yr(t,1,_l,!0),i,n):[]});function ga(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ul(n);return o<0&&(o=Xn(r+o,0)),ln(e,Ri(t,3),o)}function va(e,t,n){var r=null==e?0:e.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(e,Ri(t,3),o,!0)}function ya(e){return null!=e&&e.length?Yr(e,1):[]}function ba(e){return e&&e.length?e[0]:i}var _a=Po(function(e){var t=Jt(e,Xo);return t.length&&t[0]===e[0]?no(t):[]}),xa=Po(function(e){var t=ka(e),n=Jt(e,Xo);return t===ka(n)?t=i:n.pop(),n.length&&n[0]===e[0]?no(n,Ri(t,2)):[]}),wa=Po(function(e){var t=ka(e),n=Jt(e,Xo);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?no(n,i,t):[]});function ka(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Pa=Po(Ea);function Ea(e,t){return e&&e.length&&t&&t.length?_o(e,t):e}var Ca=Mi(function(e,t){var n=null==e?0:e.length,r=Ar(e,t);return xo(e,Jt(t,function(e){return Gi(e,n)?+e:e}).sort(ei)),r});function Oa(e){return null==e?e:$n.call(e)}var Sa=Po(function(e){return Do(Yr(e,1,_l,!0))}),Ta=Po(function(e){var t=ka(e);return _l(t)&&(t=i),Do(Yr(e,1,_l,!0),Ri(t,2))}),Ma=Po(function(e){var t=ka(e);return t="function"==typeof t?t:i,Do(Yr(e,1,_l,!0),i,t)});function Na(e){if(!e||!e.length)return[];var t=0;return e=$t(e,function(e){if(_l(e))return t=Xn(e.length,t),!0}),gn(t,function(t){return Jt(e,pn(t))})}function La(e,t){if(!e||!e.length)return[];var n=Na(e);return null==t?n:Jt(n,function(e){return Xt(t,i,e)})}var Aa=Po(function(e,t){return _l(e)?Dr(e,t):[]}),ja=Po(function(e){return Vo($t(e,_l))}),Ia=Po(function(e){var t=ka(e);return _l(t)&&(t=i),Vo($t(e,_l),Ri(t,2))}),Ra=Po(function(e){var t=ka(e);return t="function"==typeof t?t:i,Vo($t(e,_l),i,t)}),Fa=Po(Na);var Da=Po(function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,La(e,n)});function Wa(e){var t=dr(e);return t.__chain__=!0,t}function za(e,t){return t(e)}var Ua=Mi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof vr&&Gi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:za,args:[o],thisArg:i}),new gr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var Ba=ii(function(e,t,n){ct.call(e,n)?++e[n]:Lr(e,n,1)});var Va=pi(ga),Ya=pi(va);function Xa(e,t){return(vl(e)?Ht:Wr)(e,Ri(t,3))}function Ga(e,t){return(vl(e)?Kt:zr)(e,Ri(t,3))}var Ha=ii(function(e,t,n){ct.call(e,n)?e[n].push(t):Lr(e,n,[t])});var Ka=Po(function(e,t,n){var o=-1,i="function"==typeof t,a=bl(e)?r(e.length):[];return Wr(e,function(e){a[++o]=i?Xt(t,e,n):ro(e,t,n)}),a}),qa=ii(function(e,t,n){Lr(e,n,t)});function $a(e,t){return(vl(e)?Jt:po)(e,Ri(t,3))}var Za=ii(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Qa=Po(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Hi(e,t[0],t[1])?t=[]:n>2&&Hi(t[0],t[1],t[2])&&(t=[t[0]]),yo(e,Yr(t,1),[])}),Ja=Rn||function(){return At.Date.now()};function el(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Ei(e,P,i,i,i,i,t)}function tl(e,t){var n;if("function"!=typeof t)throw new ot(u);return e=Ul(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var nl=Po(function(e,t,n){var r=v;if(n.length){var o=Sn(n,Ii(nl));r|=w}return Ei(e,r,t,n,o)}),rl=Po(function(e,t,n){var r=v|y;if(n.length){var o=Sn(n,Ii(rl));r|=w}return Ei(t,r,e,n,o)});function ol(e,t,n){var r,o,a,l,s,c,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new ot(u);function m(t){var n=r,a=o;return r=o=i,f=t,l=e.apply(a,n)}function g(e){var n=e-c;return c===i||n>=t||n<0||d&&e-f>=a}function v(){var e=Ja();if(g(e))return y(e);s=oa(v,function(e){var n=t-(e-c);return d?Gn(n,a-(e-f)):n}(e))}function y(e){return s=i,h&&r?m(e):(r=o=i,l)}function b(){var e=Ja(),n=g(e);if(r=arguments,o=this,c=e,n){if(s===i)return function(e){return f=e,s=oa(v,t),p?m(e):l}(c);if(d)return s=oa(v,t),m(c)}return s===i&&(s=oa(v,t)),l}return t=Vl(t)||0,Ol(n)&&(p=!!n.leading,a=(d="maxWait"in n)?Xn(Vl(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),b.cancel=function(){s!==i&&$o(s),f=0,r=c=o=s=i},b.flush=function(){return s===i?l:y(Ja())},b}var il=Po(function(e,t){return Fr(e,1,t)}),al=Po(function(e,t,n){return Fr(e,Vl(t)||0,n)});function ll(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(u);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ll.Cache||_r),n}function ul(e){if("function"!=typeof e)throw new ot(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ll.Cache=_r;var sl=Ko(function(e,t){var n=(t=1==t.length&&vl(t[0])?Jt(t[0],vn(Ri())):Jt(Yr(t,1),vn(Ri()))).length;return Po(function(r){for(var o=-1,i=Gn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Xt(e,this,r)})}),cl=Po(function(e,t){var n=Sn(t,Ii(cl));return Ei(e,w,i,t,n)}),fl=Po(function(e,t){var n=Sn(t,Ii(fl));return Ei(e,k,i,t,n)}),pl=Mi(function(e,t){return Ei(e,E,i,i,i,t)});function dl(e,t){return e===t||e!=e&&t!=t}var hl=_i(Jr),ml=_i(function(e,t){return e>=t}),gl=oo(function(){return arguments}())?oo:function(e){return Sl(e)&&ct.call(e,"callee")&&!jt.call(e,"callee")},vl=r.isArray,yl=Wt?vn(Wt):function(e){return Sl(e)&&Qr(e)==ue};function bl(e){return null!=e&&Cl(e.length)&&!Pl(e)}function _l(e){return Sl(e)&&bl(e)}var xl=Un||Vu,wl=zt?vn(zt):function(e){return Sl(e)&&Qr(e)==X};function kl(e){if(!Sl(e))return!1;var t=Qr(e);return t==H||t==G||"string"==typeof e.message&&"string"==typeof e.name&&!Nl(e)}function Pl(e){if(!Ol(e))return!1;var t=Qr(e);return t==K||t==q||t==V||t==ee}function El(e){return"number"==typeof e&&e==Ul(e)}function Cl(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=j}function Ol(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Sl(e){return null!=e&&"object"==typeof e}var Tl=Ut?vn(Ut):function(e){return Sl(e)&&Bi(e)==$};function Ml(e){return"number"==typeof e||Sl(e)&&Qr(e)==Z}function Nl(e){if(!Sl(e)||Qr(e)!=J)return!1;var t=Nt(e);if(null===t)return!0;var n=ct.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&st.call(n)==ht}var Ll=Bt?vn(Bt):function(e){return Sl(e)&&Qr(e)==te};var Al=Vt?vn(Vt):function(e){return Sl(e)&&Bi(e)==ne};function jl(e){return"string"==typeof e||!vl(e)&&Sl(e)&&Qr(e)==re}function Il(e){return"symbol"==typeof e||Sl(e)&&Qr(e)==oe}var Rl=Yt?vn(Yt):function(e){return Sl(e)&&Cl(e.length)&&!!Ct[Qr(e)]};var Fl=_i(fo),Dl=_i(function(e,t){return e<=t});function Wl(e){if(!e)return[];if(bl(e))return jl(e)?Ln(e):ri(e);if(Dt&&e[Dt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Dt]());var t=Bi(e);return(t==$?Cn:t==ne?Tn:du)(e)}function zl(e){return e?(e=Vl(e))===A||e===-A?(e<0?-1:1)*I:e==e?e:0:0===e?e:0}function Ul(e){var t=zl(e),n=t%1;return t==t?n?t-n:t:0}function Bl(e){return e?jr(Ul(e),0,F):0}function Vl(e){if("number"==typeof e)return e;if(Il(e))return R;if(Ol(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ol(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(je,"");var n=Xe.test(e);return n||He.test(e)?Mt(e.slice(2),n?2:8):Ye.test(e)?R:+e}function Yl(e){return oi(e,iu(e))}function Xl(e){return null==e?"":Fo(e)}var Gl=ai(function(e,t){if(Zi(t)||bl(t))oi(t,ou(t),e);else for(var n in t)ct.call(t,n)&&Sr(e,n,t[n])}),Hl=ai(function(e,t){oi(t,iu(t),e)}),Kl=ai(function(e,t,n,r){oi(t,iu(t),e,r)}),ql=ai(function(e,t,n,r){oi(t,ou(t),e,r)}),$l=Mi(Ar);var Zl=Po(function(e,t){e=tt(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Hi(t[0],t[1],o)&&(r=1);++n<r;)for(var a=t[n],l=iu(a),u=-1,s=l.length;++u<s;){var c=l[u],f=e[c];(f===i||dl(f,lt[c])&&!ct.call(e,c))&&(e[c]=a[c])}return e}),Ql=Po(function(e){return e.push(i,Oi),Xt(lu,i,e)});function Jl(e,t,n){var r=null==e?i:$r(e,t);return r===i?n:r}function eu(e,t){return null!=e&&Vi(e,t,to)}var tu=mi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=dt.call(t)),e[t]=n},Ou(Mu)),nu=mi(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=dt.call(t)),ct.call(e,t)?e[t].push(n):e[t]=[n]},Ri),ru=Po(ro);function ou(e){return bl(e)?kr(e):so(e)}function iu(e){return bl(e)?kr(e,!0):co(e)}var au=ai(function(e,t,n){go(e,t,n)}),lu=ai(function(e,t,n,r){go(e,t,n,r)}),uu=Mi(function(e,t){var n={};if(null==e)return n;var r=!1;t=Jt(t,function(t){return t=Ho(t,e),r||(r=t.length>1),t}),oi(e,Li(e),n),r&&(n=Ir(n,p|d|h,Si));for(var o=t.length;o--;)Wo(n,t[o]);return n});var su=Mi(function(e,t){return null==e?{}:function(e,t){return bo(e,t,function(t,n){return eu(e,n)})}(e,t)});function cu(e,t){if(null==e)return{};var n=Jt(Li(e),function(e){return[e]});return t=Ri(t),bo(e,n,function(e,n){return t(e,n[0])})}var fu=Pi(ou),pu=Pi(iu);function du(e){return null==e?[]:yn(e,ou(e))}var hu=ci(function(e,t,n){return t=t.toLowerCase(),e+(n?mu(t):t)});function mu(e){return ku(Xl(e).toLowerCase())}function gu(e){return(e=Xl(e))&&e.replace(qe,wn).replace(bt,"")}var vu=ci(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),yu=ci(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bu=si("toLowerCase");var _u=ci(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var xu=ci(function(e,t,n){return e+(n?" ":"")+ku(t)});var wu=ci(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ku=si("toUpperCase");function Pu(e,t,n){return e=Xl(e),(t=n?i:t)===i?function(e){return kt.test(e)}(e)?function(e){return e.match(xt)||[]}(e):function(e){return e.match(ze)||[]}(e):e.match(t)||[]}var Eu=Po(function(e,t){try{return Xt(e,i,t)}catch(e){return kl(e)?e:new Qe(e)}}),Cu=Mi(function(e,t){return Ht(t,function(t){t=ca(t),Lr(e,t,nl(e[t],e))}),e});function Ou(e){return function(){return e}}var Su=di(),Tu=di(!0);function Mu(e){return e}function Nu(e){return uo("function"==typeof e?e:Ir(e,p))}var Lu=Po(function(e,t){return function(n){return ro(n,e,t)}}),Au=Po(function(e,t){return function(n){return ro(e,n,t)}});function ju(e,t,n){var r=ou(t),o=qr(t,r);null!=n||Ol(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=qr(t,ou(t)));var i=!(Ol(n)&&"chain"in n&&!n.chain),a=Pl(e);return Ht(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ri(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Iu(){}var Ru=vi(Jt),Fu=vi(qt),Du=vi(rn);function Wu(e){return Ki(e)?pn(ca(e)):function(e){return function(t){return $r(t,e)}}(e)}var zu=bi(),Uu=bi(!0);function Bu(){return[]}function Vu(){return!1}var Yu=gi(function(e,t){return e+t},0),Xu=wi("ceil"),Gu=gi(function(e,t){return e/t},1),Hu=wi("floor");var Ku,qu=gi(function(e,t){return e*t},1),$u=wi("round"),Zu=gi(function(e,t){return e-t},0);return dr.after=function(e,t){if("function"!=typeof t)throw new ot(u);return e=Ul(e),function(){if(--e<1)return t.apply(this,arguments)}},dr.ary=el,dr.assign=Gl,dr.assignIn=Hl,dr.assignInWith=Kl,dr.assignWith=ql,dr.at=$l,dr.before=tl,dr.bind=nl,dr.bindAll=Cu,dr.bindKey=rl,dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return vl(e)?e:[e]},dr.chain=Wa,dr.chunk=function(e,t,n){t=(n?Hi(e,t,n):t===i)?1:Xn(Ul(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,l=0,u=r(Dn(o/t));a<o;)u[l++]=No(e,a,a+=t);return u},dr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},dr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return en(vl(n)?ri(n):[n],Yr(t,1))},dr.cond=function(e){var t=null==e?0:e.length,n=Ri();return e=t?Jt(e,function(e){if("function"!=typeof e[1])throw new ot(u);return[n(e[0]),e[1]]}):[],Po(function(n){for(var r=-1;++r<t;){var o=e[r];if(Xt(o[0],this,n))return Xt(o[1],this,n)}})},dr.conforms=function(e){return function(e){var t=ou(e);return function(n){return Rr(n,e,t)}}(Ir(e,p))},dr.constant=Ou,dr.countBy=Ba,dr.create=function(e,t){var n=hr(e);return null==t?n:Nr(n,t)},dr.curry=function e(t,n,r){var o=Ei(t,_,i,i,i,i,i,n=r?i:n);return o.placeholder=e.placeholder,o},dr.curryRight=function e(t,n,r){var o=Ei(t,x,i,i,i,i,i,n=r?i:n);return o.placeholder=e.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=ma,dr.drop=function(e,t,n){var r=null==e?0:e.length;return r?No(e,(t=n||t===i?1:Ul(t))<0?0:t,r):[]},dr.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?No(e,0,(t=r-(t=n||t===i?1:Ul(t)))<0?0:t):[]},dr.dropRightWhile=function(e,t){return e&&e.length?Uo(e,Ri(t,3),!0,!0):[]},dr.dropWhile=function(e,t){return e&&e.length?Uo(e,Ri(t,3),!0):[]},dr.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Hi(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.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;)e[n++]=t;return e}(e,t,n,r)):[]},dr.filter=function(e,t){return(vl(e)?$t:Vr)(e,Ri(t,3))},dr.flatMap=function(e,t){return Yr($a(e,t),1)},dr.flatMapDeep=function(e,t){return Yr($a(e,t),A)},dr.flatMapDepth=function(e,t,n){return n=n===i?1:Ul(n),Yr($a(e,t),n)},dr.flatten=ya,dr.flattenDeep=function(e){return null!=e&&e.length?Yr(e,A):[]},dr.flattenDepth=function(e,t){return null!=e&&e.length?Yr(e,t=t===i?1:Ul(t)):[]},dr.flip=function(e){return Ei(e,C)},dr.flow=Su,dr.flowRight=Tu,dr.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},dr.functions=function(e){return null==e?[]:qr(e,ou(e))},dr.functionsIn=function(e){return null==e?[]:qr(e,iu(e))},dr.groupBy=Ha,dr.initial=function(e){return null!=e&&e.length?No(e,0,-1):[]},dr.intersection=_a,dr.intersectionBy=xa,dr.intersectionWith=wa,dr.invert=tu,dr.invertBy=nu,dr.invokeMap=Ka,dr.iteratee=Nu,dr.keyBy=qa,dr.keys=ou,dr.keysIn=iu,dr.map=$a,dr.mapKeys=function(e,t){var n={};return t=Ri(t,3),Hr(e,function(e,r,o){Lr(n,t(e,r,o),e)}),n},dr.mapValues=function(e,t){var n={};return t=Ri(t,3),Hr(e,function(e,r,o){Lr(n,r,t(e,r,o))}),n},dr.matches=function(e){return ho(Ir(e,p))},dr.matchesProperty=function(e,t){return mo(e,Ir(t,p))},dr.memoize=ll,dr.merge=au,dr.mergeWith=lu,dr.method=Lu,dr.methodOf=Au,dr.mixin=ju,dr.negate=ul,dr.nthArg=function(e){return e=Ul(e),Po(function(t){return vo(t,e)})},dr.omit=uu,dr.omitBy=function(e,t){return cu(e,ul(Ri(t)))},dr.once=function(e){return tl(2,e)},dr.orderBy=function(e,t,n,r){return null==e?[]:(vl(t)||(t=null==t?[]:[t]),vl(n=r?i:n)||(n=null==n?[]:[n]),yo(e,t,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=Wu,dr.propertyOf=function(e){return function(t){return null==e?i:$r(e,t)}},dr.pull=Pa,dr.pullAll=Ea,dr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?_o(e,t,Ri(n,2)):e},dr.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?_o(e,t,i,n):e},dr.pullAt=Ca,dr.range=zu,dr.rangeRight=Uu,dr.rearg=pl,dr.reject=function(e,t){return(vl(e)?$t:Vr)(e,ul(Ri(t,3)))},dr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=Ri(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return xo(e,o),n},dr.rest=function(e,t){if("function"!=typeof e)throw new ot(u);return Po(e,t=t===i?t:Ul(t))},dr.reverse=Oa,dr.sampleSize=function(e,t,n){return t=(n?Hi(e,t,n):t===i)?1:Ul(t),(vl(e)?Er:Co)(e,t)},dr.set=function(e,t,n){return null==e?e:Oo(e,t,n)},dr.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Oo(e,t,n,r)},dr.shuffle=function(e){return(vl(e)?Cr:Mo)(e)},dr.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Hi(e,t,n)?(t=0,n=r):(t=null==t?0:Ul(t),n=n===i?r:Ul(n)),No(e,t,n)):[]},dr.sortBy=Qa,dr.sortedUniq=function(e){return e&&e.length?Io(e):[]},dr.sortedUniqBy=function(e,t){return e&&e.length?Io(e,Ri(t,2)):[]},dr.split=function(e,t,n){return n&&"number"!=typeof n&&Hi(e,t,n)&&(t=n=i),(n=n===i?F:n>>>0)?(e=Xl(e))&&("string"==typeof t||null!=t&&!Ll(t))&&!(t=Fo(t))&&En(e)?qo(Ln(e),0,n):e.split(t,n):[]},dr.spread=function(e,t){if("function"!=typeof e)throw new ot(u);return t=null==t?0:Xn(Ul(t),0),Po(function(n){var r=n[t],o=qo(n,0,t);return r&&en(o,r),Xt(e,this,o)})},dr.tail=function(e){var t=null==e?0:e.length;return t?No(e,1,t):[]},dr.take=function(e,t,n){return e&&e.length?No(e,0,(t=n||t===i?1:Ul(t))<0?0:t):[]},dr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?No(e,(t=r-(t=n||t===i?1:Ul(t)))<0?0:t,r):[]},dr.takeRightWhile=function(e,t){return e&&e.length?Uo(e,Ri(t,3),!1,!0):[]},dr.takeWhile=function(e,t){return e&&e.length?Uo(e,Ri(t,3)):[]},dr.tap=function(e,t){return t(e),e},dr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ot(u);return Ol(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ol(e,t,{leading:r,maxWait:t,trailing:o})},dr.thru=za,dr.toArray=Wl,dr.toPairs=fu,dr.toPairsIn=pu,dr.toPath=function(e){return vl(e)?Jt(e,ca):Il(e)?[e]:ri(sa(Xl(e)))},dr.toPlainObject=Yl,dr.transform=function(e,t,n){var r=vl(e),o=r||xl(e)||Rl(e);if(t=Ri(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Ol(e)&&Pl(i)?hr(Nt(e)):{}}return(o?Ht:Hr)(e,function(e,r,o){return t(n,e,r,o)}),n},dr.unary=function(e){return el(e,1)},dr.union=Sa,dr.unionBy=Ta,dr.unionWith=Ma,dr.uniq=function(e){return e&&e.length?Do(e):[]},dr.uniqBy=function(e,t){return e&&e.length?Do(e,Ri(t,2)):[]},dr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Do(e,i,t):[]},dr.unset=function(e,t){return null==e||Wo(e,t)},dr.unzip=Na,dr.unzipWith=La,dr.update=function(e,t,n){return null==e?e:zo(e,t,Go(n))},dr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:zo(e,t,Go(n),r)},dr.values=du,dr.valuesIn=function(e){return null==e?[]:yn(e,iu(e))},dr.without=Aa,dr.words=Pu,dr.wrap=function(e,t){return cl(Go(t),e)},dr.xor=ja,dr.xorBy=Ia,dr.xorWith=Ra,dr.zip=Fa,dr.zipObject=function(e,t){return Yo(e||[],t||[],Sr)},dr.zipObjectDeep=function(e,t){return Yo(e||[],t||[],Oo)},dr.zipWith=Da,dr.entries=fu,dr.entriesIn=pu,dr.extend=Hl,dr.extendWith=Kl,ju(dr,dr),dr.add=Yu,dr.attempt=Eu,dr.camelCase=hu,dr.capitalize=mu,dr.ceil=Xu,dr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Vl(n))==n?n:0),t!==i&&(t=(t=Vl(t))==t?t:0),jr(Vl(e),t,n)},dr.clone=function(e){return Ir(e,h)},dr.cloneDeep=function(e){return Ir(e,p|h)},dr.cloneDeepWith=function(e,t){return Ir(e,p|h,t="function"==typeof t?t:i)},dr.cloneWith=function(e,t){return Ir(e,h,t="function"==typeof t?t:i)},dr.conformsTo=function(e,t){return null==t||Rr(e,t,ou(t))},dr.deburr=gu,dr.defaultTo=function(e,t){return null==e||e!=e?t:e},dr.divide=Gu,dr.endsWith=function(e,t,n){e=Xl(e),t=Fo(t);var r=e.length,o=n=n===i?r:jr(Ul(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},dr.eq=dl,dr.escape=function(e){return(e=Xl(e))&&Ee.test(e)?e.replace(ke,kn):e},dr.escapeRegExp=function(e){return(e=Xl(e))&&Ae.test(e)?e.replace(Le,"\\$&"):e},dr.every=function(e,t,n){var r=vl(e)?qt:Ur;return n&&Hi(e,t,n)&&(t=i),r(e,Ri(t,3))},dr.find=Va,dr.findIndex=ga,dr.findKey=function(e,t){return an(e,Ri(t,3),Hr)},dr.findLast=Ya,dr.findLastIndex=va,dr.findLastKey=function(e,t){return an(e,Ri(t,3),Kr)},dr.floor=Hu,dr.forEach=Xa,dr.forEachRight=Ga,dr.forIn=function(e,t){return null==e?e:Xr(e,Ri(t,3),iu)},dr.forInRight=function(e,t){return null==e?e:Gr(e,Ri(t,3),iu)},dr.forOwn=function(e,t){return e&&Hr(e,Ri(t,3))},dr.forOwnRight=function(e,t){return e&&Kr(e,Ri(t,3))},dr.get=Jl,dr.gt=hl,dr.gte=ml,dr.has=function(e,t){return null!=e&&Vi(e,t,eo)},dr.hasIn=eu,dr.head=ba,dr.identity=Mu,dr.includes=function(e,t,n,r){e=bl(e)?e:du(e),n=n&&!r?Ul(n):0;var o=e.length;return n<0&&(n=Xn(o+n,0)),jl(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&un(e,t,n)>-1},dr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ul(n);return o<0&&(o=Xn(r+o,0)),un(e,t,o)},dr.inRange=function(e,t,n){return t=zl(t),n===i?(n=t,t=0):n=zl(n),function(e,t,n){return e>=Gn(t,n)&&e<Xn(t,n)}(e=Vl(e),t,n)},dr.invoke=ru,dr.isArguments=gl,dr.isArray=vl,dr.isArrayBuffer=yl,dr.isArrayLike=bl,dr.isArrayLikeObject=_l,dr.isBoolean=function(e){return!0===e||!1===e||Sl(e)&&Qr(e)==Y},dr.isBuffer=xl,dr.isDate=wl,dr.isElement=function(e){return Sl(e)&&1===e.nodeType&&!Nl(e)},dr.isEmpty=function(e){if(null==e)return!0;if(bl(e)&&(vl(e)||"string"==typeof e||"function"==typeof e.splice||xl(e)||Rl(e)||gl(e)))return!e.length;var t=Bi(e);if(t==$||t==ne)return!e.size;if(Zi(e))return!so(e).length;for(var n in e)if(ct.call(e,n))return!1;return!0},dr.isEqual=function(e,t){return io(e,t)},dr.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?io(e,t,i,n):!!r},dr.isError=kl,dr.isFinite=function(e){return"number"==typeof e&&Bn(e)},dr.isFunction=Pl,dr.isInteger=El,dr.isLength=Cl,dr.isMap=Tl,dr.isMatch=function(e,t){return e===t||ao(e,t,Di(t))},dr.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,ao(e,t,Di(t),n)},dr.isNaN=function(e){return Ml(e)&&e!=+e},dr.isNative=function(e){if($i(e))throw new Qe(l);return lo(e)},dr.isNil=function(e){return null==e},dr.isNull=function(e){return null===e},dr.isNumber=Ml,dr.isObject=Ol,dr.isObjectLike=Sl,dr.isPlainObject=Nl,dr.isRegExp=Ll,dr.isSafeInteger=function(e){return El(e)&&e>=-j&&e<=j},dr.isSet=Al,dr.isString=jl,dr.isSymbol=Il,dr.isTypedArray=Rl,dr.isUndefined=function(e){return e===i},dr.isWeakMap=function(e){return Sl(e)&&Bi(e)==ae},dr.isWeakSet=function(e){return Sl(e)&&Qr(e)==le},dr.join=function(e,t){return null==e?"":Vn.call(e,t)},dr.kebabCase=vu,dr.last=ka,dr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Ul(n))<0?Xn(r+o,0):Gn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):ln(e,cn,o,!0)},dr.lowerCase=yu,dr.lowerFirst=bu,dr.lt=Fl,dr.lte=Dl,dr.max=function(e){return e&&e.length?Br(e,Mu,Jr):i},dr.maxBy=function(e,t){return e&&e.length?Br(e,Ri(t,2),Jr):i},dr.mean=function(e){return fn(e,Mu)},dr.meanBy=function(e,t){return fn(e,Ri(t,2))},dr.min=function(e){return e&&e.length?Br(e,Mu,fo):i},dr.minBy=function(e,t){return e&&e.length?Br(e,Ri(t,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(e,t){return e&&e.length?vo(e,Ul(t)):i},dr.noConflict=function(){return At._===this&&(At._=mt),this},dr.noop=Iu,dr.now=Ja,dr.pad=function(e,t,n){e=Xl(e);var r=(t=Ul(t))?Nn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return yi(Wn(o),n)+e+yi(Dn(o),n)},dr.padEnd=function(e,t,n){e=Xl(e);var r=(t=Ul(t))?Nn(e):0;return t&&r<t?e+yi(t-r,n):e},dr.padStart=function(e,t,n){e=Xl(e);var r=(t=Ul(t))?Nn(e):0;return t&&r<t?yi(t-r,n)+e:e},dr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Kn(Xl(e).replace(Ie,""),t||0)},dr.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Hi(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=zl(e),t===i?(t=e,e=0):t=zl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=qn();return Gn(e+o*(t-e+Tt("1e-"+((o+"").length-1))),t)}return wo(e,t)},dr.reduce=function(e,t,n){var r=vl(e)?tn:hn,o=arguments.length<3;return r(e,Ri(t,4),n,o,Wr)},dr.reduceRight=function(e,t,n){var r=vl(e)?nn:hn,o=arguments.length<3;return r(e,Ri(t,4),n,o,zr)},dr.repeat=function(e,t,n){return t=(n?Hi(e,t,n):t===i)?1:Ul(t),ko(Xl(e),t)},dr.replace=function(){var e=arguments,t=Xl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},dr.result=function(e,t,n){var r=-1,o=(t=Ho(t,e)).length;for(o||(o=1,e=i);++r<o;){var a=null==e?i:e[ca(t[r])];a===i&&(r=o,a=n),e=Pl(a)?a.call(e):a}return e},dr.round=$u,dr.runInContext=e,dr.sample=function(e){return(vl(e)?Pr:Eo)(e)},dr.size=function(e){if(null==e)return 0;if(bl(e))return jl(e)?Nn(e):e.length;var t=Bi(e);return t==$||t==ne?e.size:so(e).length},dr.snakeCase=_u,dr.some=function(e,t,n){var r=vl(e)?rn:Lo;return n&&Hi(e,t,n)&&(t=i),r(e,Ri(t,3))},dr.sortedIndex=function(e,t){return Ao(e,t)},dr.sortedIndexBy=function(e,t,n){return jo(e,t,Ri(n,2))},dr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Ao(e,t);if(r<n&&dl(e[r],t))return r}return-1},dr.sortedLastIndex=function(e,t){return Ao(e,t,!0)},dr.sortedLastIndexBy=function(e,t,n){return jo(e,t,Ri(n,2),!0)},dr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Ao(e,t,!0)-1;if(dl(e[n],t))return n}return-1},dr.startCase=xu,dr.startsWith=function(e,t,n){return e=Xl(e),n=null==n?0:jr(Ul(n),0,e.length),t=Fo(t),e.slice(n,n+t.length)==t},dr.subtract=Zu,dr.sum=function(e){return e&&e.length?mn(e,Mu):0},dr.sumBy=function(e,t){return e&&e.length?mn(e,Ri(t,2)):0},dr.template=function(e,t,n){var r=dr.templateSettings;n&&Hi(e,t,n)&&(t=i),e=Xl(e),t=Kl({},t,r,Ci);var o,a,l=Kl({},t.imports,r.imports,Ci),u=ou(l),s=yn(l,u),c=0,f=t.interpolate||$e,p="__p += '",d=nt((t.escape||$e).source+"|"+f.source+"|"+(f===Se?Be:$e).source+"|"+(t.evaluate||$e).source+"|$","g"),h="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Et+"]")+"\n";e.replace(d,function(t,n,r,i,l,u){return r||(r=i),p+=e.slice(c,u).replace(Ze,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+t.length,t}),p+="';\n";var m=t.variable;m||(p="with (obj) {\n"+p+"\n}\n"),p=(a?p.replace(be,""):p).replace(_e,"$1").replace(xe,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"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 g=Eu(function(){return Je(u,h+"return "+p).apply(i,s)});if(g.source=p,kl(g))throw g;return g},dr.times=function(e,t){if((e=Ul(e))<1||e>j)return[];var n=F,r=Gn(e,F);t=Ri(t),e-=F;for(var o=gn(r,t);++n<e;)t(n);return o},dr.toFinite=zl,dr.toInteger=Ul,dr.toLength=Bl,dr.toLower=function(e){return Xl(e).toLowerCase()},dr.toNumber=Vl,dr.toSafeInteger=function(e){return e?jr(Ul(e),-j,j):0===e?e:0},dr.toString=Xl,dr.toUpper=function(e){return Xl(e).toUpperCase()},dr.trim=function(e,t,n){if((e=Xl(e))&&(n||t===i))return e.replace(je,"");if(!e||!(t=Fo(t)))return e;var r=Ln(e),o=Ln(t);return qo(r,_n(r,o),xn(r,o)+1).join("")},dr.trimEnd=function(e,t,n){if((e=Xl(e))&&(n||t===i))return e.replace(Re,"");if(!e||!(t=Fo(t)))return e;var r=Ln(e);return qo(r,0,xn(r,Ln(t))+1).join("")},dr.trimStart=function(e,t,n){if((e=Xl(e))&&(n||t===i))return e.replace(Ie,"");if(!e||!(t=Fo(t)))return e;var r=Ln(e);return qo(r,_n(r,Ln(t))).join("")},dr.truncate=function(e,t){var n=O,r=S;if(Ol(t)){var o="separator"in t?t.separator:o;n="length"in t?Ul(t.length):n,r="omission"in t?Fo(t.omission):r}var a=(e=Xl(e)).length;if(En(e)){var l=Ln(e);a=l.length}if(n>=a)return e;var u=n-Nn(r);if(u<1)return r;var s=l?qo(l,0,u).join(""):e.slice(0,u);if(o===i)return s+r;if(l&&(u+=s.length-u),Ll(o)){if(e.slice(u).search(o)){var c,f=s;for(o.global||(o=nt(o.source,Xl(Ve.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var p=c.index;s=s.slice(0,p===i?u:p)}}else if(e.indexOf(Fo(o),u)!=u){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+r},dr.unescape=function(e){return(e=Xl(e))&&Pe.test(e)?e.replace(we,An):e},dr.uniqueId=function(e){var t=++ft;return Xl(e)+t},dr.upperCase=wu,dr.upperFirst=ku,dr.each=Xa,dr.eachRight=Ga,dr.first=ba,ju(dr,(Ku={},Hr(dr,function(e,t){ct.call(dr.prototype,t)||(Ku[t]=e)}),Ku),{chain:!1}),dr.VERSION="4.17.11",Ht(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){dr[e].placeholder=dr}),Ht(["drop","take"],function(e,t){vr.prototype[e]=function(n){n=n===i?1:Xn(Ul(n),0);var r=this.__filtered__&&!t?new vr(this):this.clone();return r.__filtered__?r.__takeCount__=Gn(n,r.__takeCount__):r.__views__.push({size:Gn(n,F),type:e+(r.__dir__<0?"Right":"")}),r},vr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Ht(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==N||3==n;vr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ri(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Ht(["head","last"],function(e,t){var n="take"+(t?"Right":"");vr.prototype[e]=function(){return this[n](1).value()[0]}}),Ht(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");vr.prototype[e]=function(){return this.__filtered__?new vr(this):this[n](1)}}),vr.prototype.compact=function(){return this.filter(Mu)},vr.prototype.find=function(e){return this.filter(e).head()},vr.prototype.findLast=function(e){return this.reverse().find(e)},vr.prototype.invokeMap=Po(function(e,t){return"function"==typeof e?new vr(this):this.map(function(n){return ro(n,e,t)})}),vr.prototype.reject=function(e){return this.filter(ul(Ri(e)))},vr.prototype.slice=function(e,t){e=Ul(e);var n=this;return n.__filtered__&&(e>0||t<0)?new vr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Ul(t))<0?n.dropRight(-t):n.take(t-e)),n)},vr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},vr.prototype.toArray=function(){return this.take(F)},Hr(vr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=dr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(dr.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,u=t instanceof vr,s=l[0],c=u||vl(t),f=function(e){var t=o.apply(dr,en([e],l));return r&&p?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(u=c=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,m=u&&!d;if(!a&&c){t=m?t:new vr(this);var g=e.apply(t,l);return g.__actions__.push({func:za,args:[f],thisArg:i}),new gr(g,p)}return h&&m?e.apply(this,l):(g=this.thru(f),h?r?g.value()[0]:g.value():g)})}),Ht(["pop","push","shift","sort","splice","unshift"],function(e){var t=it[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);dr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(vl(o)?o:[],e)}return this[n](function(n){return t.apply(vl(n)?n:[],e)})}}),Hr(vr.prototype,function(e,t){var n=dr[t];if(n){var r=n.name+"";(or[r]||(or[r]=[])).push({name:t,func:n})}}),or[hi(i,y).name]=[{name:"wrapper",func:i}],vr.prototype.clone=function(){var e=new vr(this.__wrapped__);return e.__actions__=ri(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ri(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ri(this.__views__),e},vr.prototype.reverse=function(){if(this.__filtered__){var e=new vr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},vr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=vl(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Gn(t,e+a);break;case"takeRight":e=Xn(e,t-a)}}return{start:e,end:t}}(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(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var m=-1,g=e[s+=t];++m<f;){var v=c[m],y=v.iteratee,b=v.type,_=y(g);if(b==L)g=_;else if(!_){if(b==N)continue e;break e}}h[p++]=g}return h},dr.prototype.at=Ua,dr.prototype.chain=function(){return Wa(this)},dr.prototype.commit=function(){return new gr(this.value(),this.__chain__)},dr.prototype.next=function(){this.__values__===i&&(this.__values__=Wl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},dr.prototype.plant=function(e){for(var t,n=this;n instanceof mr;){var r=pa(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},dr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof vr){var t=e;return this.__actions__.length&&(t=new vr(this)),(t=t.reverse()).__actions__.push({func:za,args:[Oa],thisArg:i}),new gr(t,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,Dt&&(dr.prototype[Dt]=function(){return this}),dr}();At._=jn,(o=function(){return jn}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(7),n(18)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=n(20);function o(){}e.exports=function(){function e(e,t,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 t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(22);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!1)).push([e.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(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var o,i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")})}},function(e,t,n){var r=n(25);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!1)).push([e.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 #propertyTab .checkBoxLine {\n padding-left: 2px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .checkBoxLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .checkBoxLine .checkBox {\n grid-column: 2;\n display: flex;\n align-items: center; }\n #propertyTab .checkBoxLine .checkBox .lbl {\n position: relative;\n display: block;\n height: 14px;\n width: 34px;\n margin-right: 5px;\n background: #898989;\n border-radius: 100px;\n cursor: pointer;\n transition: all 0.3s ease; }\n #propertyTab .checkBoxLine .checkBox .lbl:after {\n position: absolute;\n left: 3px;\n top: 2px;\n display: block;\n width: 10px;\n height: 10px;\n border-radius: 100px;\n background: #fff;\n box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.05);\n content: '';\n transition: all 0.15s ease; }\n #propertyTab .checkBoxLine .checkBox .lbl:active:after {\n transform: scale(1.15, 0.85); }\n #propertyTab .checkBoxLine .checkBox .cbx:checked ~ label {\n background: #337ab7; }\n #propertyTab .checkBoxLine .checkBox .cbx:checked ~ label:after {\n left: 20px;\n background: #164975; }\n #propertyTab .checkBoxLine .checkBox .hidden {\n display: none; }\n #propertyTab .listLine {\n padding-left: 2px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .listLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .listLine .options {\n grid-column: 2;\n display: flex;\n align-items: center;\n margin-right: 5px; }\n #propertyTab .listLine .options select {\n width: 115px; }\n #propertyTab .textLine {\n padding-left: 2px;\n height: 30px;\n display: grid;\n grid-template-columns: 1fr auto; }\n #propertyTab .textLine .label {\n grid-column: 1;\n display: flex;\n align-items: center; }\n #propertyTab .textLine .link-value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 140px;\n text-decoration: underline;\n cursor: pointer; }\n #propertyTab .textLine .value {\n grid-column: 2;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n text-align: end;\n opacity: 0.8;\n margin: 5px;\n margin-top: 6px;\n max-width: 200px;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text; }\n #propertyTab .textLine .value.check {\n color: green; }\n #propertyTab .textLine .value.uncheck {\n color: red; }\n",""])},function(e,t,n){var r=n(27);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!1)).push([e.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(e,t,n){var r=n(29);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!1)).push([e.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(e,t,n){var r=n(31);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(6)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(5)(!1)).push([e.i,".diagramBlock {\n background: white;\n width: 200px;\n border: 4px solid black; }\n .diagramBlock.input {\n background: green;\n color: white; }\n .diagramBlock.attribute {\n background: orange; }\n .diagramBlock.output {\n background: blue;\n color: white; }\n .diagramBlock.output .inputs {\n color: white; }\n .diagramBlock .header {\n margin: 10px;\n font-size: 16px;\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden; }\n .diagramBlock .value {\n height: 34px;\n text-align: center;\n font-size: 20px;\n font-weight: bold; }\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",""])}])});
|