12345678910111213141516171819202122232425262728293031323334 |
- !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=125)}([function(t,n){t.exports=e},function(e,t,n){"use strict";e.exports=n(126)},function(e,t,n){e.exports=n(133)()},function(e,t,n){var r;try{r={cloneDeep:n(256),constant:n(61),defaults:n(257),each:n(90),filter:n(93),find:n(258),flatten:n(120),forEach:n(91),forIn:n(263),has:n(104),isUndefined:n(105),last:n(264),map:n(106),mapValues:n(265),max:n(266),merge:n(268),min:n(274),minBy:n(275),now:n(276),pick:n(277),range:n(282),reduce:n(108),sortBy:n(285),uniqueId:n(290),values:n(113),zipObject:n(291)}}catch(e){}r||(r=window._),e.exports=r},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var r=n(3),o=n(8).Graph;function i(e,t,n,o){var i;do{i=r.uniqueId(o)}while(e.hasNode(i));return n.dummy=t,e.setNode(i,n),i}function a(e){return r.max(r.map(e.nodes(),(function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n})))}e.exports={addDummyNode:i,simplify:function(e){var t=(new o).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},o=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})})),t},asNonCompoundGraph:function(e){var t=new o({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t},successorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.outEdges(t),(function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.inEdges(t),(function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,o=e.x,i=e.y,a=t.x-o,l=t.y-i,s=e.width/2,c=e.height/2;if(!a&&!l)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(l)*s>Math.abs(a)*c?(l<0&&(c=-c),n=c*a/l,r=c):(a<0&&(s=-s),n=s,r=s*l/a);return{x:o+n,y:i+r}},buildLayerMatrix:function(e){var t=r.map(r.range(a(e)+1),(function(){return[]}));return r.forEach(e.nodes(),(function(n){var o=e.node(n),i=o.rank;r.isUndefined(i)||(t[i][o.order]=n)})),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank})));r.forEach(e.nodes(),(function(n){var o=e.node(n);r.has(o,"rank")&&(o.rank-=t)}))},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank}))),n=[];r.forEach(e.nodes(),(function(r){var o=e.node(r).rank-t;n[o]||(n[o]=[]),n[o].push(r)}));var o=0,i=e.graph().nodeRankFactor;r.forEach(n,(function(t,n){r.isUndefined(t)&&n%i!=0?--o:o&&r.forEach(t,(function(t){e.node(t).rank+=o}))}))},addBorderNode:function(e,t,n,r){var o={width:0,height:0};arguments.length>=4&&(o.rank=n,o.order=r);return i(e,"border",o,t)},maxRank:a,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},function(e,t,n){var r;try{r={clone:n(144),constant:n(61),each:n(90),filter:n(93),has:n(104),isArray:n(4),isEmpty:n(220),isFunction:n(27),isUndefined:n(105),keys:n(14),map:n(106),reduce:n(108),size:n(223),transform:n(229),union:n(230),values:n(113)}}catch(e){}r||(r=window._),e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r;try{r=n(142)}catch(e){}r||(r=window.graphlib),e.exports=r},function(e,t,n){var r=n(73),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(27),o=n(55);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(200),o=n(210),i=n(17),a=n(4),l=n(217);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):l(e)}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(127)},function(e,t,n){var r=n(76),o=n(57),i=n(11);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(155),o=n(160);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(19),o=n(156),i=n(157),a="[object Null]",l="[object Undefined]",s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?l:a:s&&s in Object(e)?o(e):i(e)}},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(9).Symbol;e.exports=r},function(e,t,n){(function(e){var r=n(9),o=n(176),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,l=a&&a.exports===i?r.Buffer:void 0,s=(l?l.isBuffer:void 0)||o;e.exports=s}).call(this,n(54)(e))},function(e,t,n){var r=n(76),o=n(180),i=n(11);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t,n){var r=n(185),o=n(51),i=n(186),a=n(85),l=n(187),s=n(16),c=n(74),u=c(r),p=c(o),d=c(i),f=c(a),h=c(l),m=s;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||i&&"[object Promise]"!=m(i.resolve())||a&&"[object Set]"!=m(new a)||l&&"[object WeakMap]"!=m(new l))&&(m=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case u:return"[object DataView]";case p:return"[object Map]";case d:return"[object Promise]";case f:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(16),o=n(10),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==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){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){return document.querySelector(e)},s=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=l.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]}}(),c=null,u=0,p=[],d=n(137);function f(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 h(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 m(e,t){var n=s(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=p[p.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),p.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=s(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,o)}}function g(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=p.indexOf(e);t>=0&&p.splice(t,1)}function v(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),b(t,e.attrs),m(e,t),t}function b(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=u++;n=c||(c=v(t)),r=k.bind(null,n,a,!1),o=k.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",b(t,e.attrs),m(e,t),t}(t),r=C.bind(null,n,t),o=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=_.bind(null,n),o=function(){g(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=h(e,t);return f(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&&f(h(e,t),t);for(o=0;o<r.length;o++){var l;if(0===(l=r[o]).refs){for(var s=0;s<l.parts.length;s++)l.parts[s]();delete i[l.id]}}}};var w,x=(w=[],function(e,t){return w[e]=t,w.filter(Boolean).join("\n")});function k(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=x(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=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function C(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=d(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)}},function(e,t,n){var r=n(16),o=n(7),i="[object AsyncFunction]",a="[object Function]",l="[object GeneratorFunction]",s="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==l||t==i||t==s}},function(e,t,n){var r=n(37),o=n(38);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var l=-1,s=t.length;++l<s;){var c=t[l],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?o(n,c,u):r(n,c,u)}return n}},function(e,t,n){var r=n(175),o=n(10),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},function(e,t,n){var r=n(177),o=n(40),i=n(56),a=i&&i.isTypedArray,l=a?o(a):r;e.exports=l},function(e,t,n){var r=n(23),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},function(e,t,n){var r=n(33),o=n(150),i=n(151),a=n(152),l=n(153),s=n(154);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=l,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(145),o=n(146),i=n(147),a=n(148),l=n(149);function s(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])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},function(e,t,n){var r=n(18);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(15)(Object,"create");e.exports=r},function(e,t,n){var r=n(169);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(38),o=n(18),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(75);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(77)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(62),o=n(198)(r);e.exports=o},function(e,t,n){var r=n(4),o=n(66),i=n(212),a=n(100);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t){e.exports=function(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(e,t,n){var r=n(17),o=n(109),i=n(110);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){var r=n(18),o=n(11),i=n(39),a=n(7);e.exports=function(e,t,n){if(!a(n))return!1;var l=typeof t;return!!("number"==l?o(n)&&i(t,n.length):"string"==l&&t in n)&&r(n[t],e)}},function(e,t,n){"use strict";var r=n(3);e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),(function n(o){var i=e.node(o);if(r.has(t,o))return i.rank;t[o]=!0;var a=r.min(r.map(e.outEdges(o),(function(t){return n(t.w)-e.edge(t).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),i.rank=a}))},slack:function(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}}},function(e,t,n){"use strict";var r,o=n(1),i=n.n(o),a=n(13),l=n(0);!function(e){e[e.Sphere=0]="Sphere",e[e.Box=1]="Box",e[e.Torus=2]="Torus",e[e.Cylinder=3]="Cylinder",e[e.Plane=4]="Plane",e[e.ShaderBall=5]="ShaderBall",e[e.Custom=6]="Custom"}(r||(r={}));var s=function(){function e(){}return e.ReadBoolean=function(e,t){try{return this._InMemoryStorage&&void 0!==this._InMemoryStorage[e]?this._InMemoryStorage[e]:"undefined"!=typeof Storage&&null!==localStorage.getItem(e)?"true"===localStorage.getItem(e):t}catch(n){return this._InMemoryStorage={},this._InMemoryStorage[e]=t,t}},e.StoreBoolean=function(e,t){try{this._InMemoryStorage?this._InMemoryStorage[e]=t:"undefined"!=typeof Storage&&localStorage.setItem(e,t?"true":"false")}catch(n){this._InMemoryStorage={},this._InMemoryStorage[e]=t}},e.ReadNumber=function(e,t){try{return this._InMemoryStorage&&void 0!==this._InMemoryStorage[e]?this._InMemoryStorage[e]:"undefined"!=typeof Storage&&null!==localStorage.getItem(e)?parseFloat(localStorage.getItem(e)):t}catch(n){return this._InMemoryStorage={},this._InMemoryStorage[e]=t,t}},e.StoreNumber=function(e,t){try{this._InMemoryStorage?this._InMemoryStorage[e]=t:"undefined"!=typeof Storage&&localStorage.setItem(e,t.toString())}catch(n){this._InMemoryStorage={},this._InMemoryStorage[e]=t}},e}(),c=function(){this.onSelectionChangedObservable=new l.Observable,this.onRebuildRequiredObservable=new l.Observable,this.onBuiltObservable=new l.Observable,this.onResetRequiredObservable=new l.Observable,this.onUpdateRequiredObservable=new l.Observable,this.onZoomToFitRequiredObservable=new l.Observable,this.onReOrganizedRequiredObservable=new l.Observable,this.onLogRequiredObservable=new l.Observable,this.onErrorMessageDialogRequiredObservable=new l.Observable,this.onIsLoadingChanged=new l.Observable,this.onPreviewCommandActivated=new l.Observable,this.onLightUpdated=new l.Observable,this.onPreviewBackgroundChanged=new l.Observable,this.onBackFaceCullingChanged=new l.Observable,this.onDepthPrePassChanged=new l.Observable,this.onAnimationCommandActivated=new l.Observable,this.onCandidateLinkMoved=new l.Observable,this.onSelectionBoxMoved=new l.Observable,this.onFrameCreated=new l.Observable,this.onCandidatePortSelected=new l.Observable,this.onGridSizeChanged=new l.Observable,this.blockKeyboardEvents=!1,this.previewMeshType=s.ReadNumber("PreviewMeshType",r.Box),this.backFaceCulling=s.ReadBoolean("BackFaceCulling",!0),this.depthPrePass=s.ReadBoolean("DepthPrePass",!1),this.hemisphericLight=s.ReadBoolean("HemisphericLight",!0),this.directionalLight0=s.ReadBoolean("DirectionalLight0",!1),this.directionalLight1=s.ReadBoolean("DirectionalLight1",!1),this.controlCamera=s.ReadBoolean("ControlCamera",!0);var e=s.ReadNumber("BackgroundColorR",.37),t=s.ReadNumber("BackgroundColorG",.37),n=s.ReadNumber("BackgroundColorB",.37);this.backgroundColor=new l.Color4(e,t,n,1)},u=function(e,t){return(u=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 p(e,t){function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var d=function(){return(d=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}).apply(this,arguments)};var f=n(69),h=n(2),m=n.n(h);function g(e){return(g="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})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(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){v(e,t,n[t])}))}return e}function y(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function w(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function x(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var k=!1;try{k=!0}catch(e){}function _(e){return null===e?null:"object"===g(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 C(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?v({},e,t):{}}function E(e){var t=e.icon,n=e.mask,r=e.symbol,o=e.className,i=e.title,a=_(t),l=C("classes",[].concat(w(function(e){var t,n=e.spin,r=e.pulse,o=e.fixedWidth,i=e.inverse,a=e.border,l=e.listItem,s=e.flip,c=e.size,u=e.rotation,p=e.pull,d=(v(t={"fa-spin":n,"fa-pulse":r,"fa-fw":o,"fa-inverse":i,"fa-border":a,"fa-li":l,"fa-flip-horizontal":"horizontal"===s||"both"===s,"fa-flip-vertical":"vertical"===s||"both"===s},"fa-".concat(c),void 0!==c),v(t,"fa-rotate-".concat(u),void 0!==u),v(t,"fa-pull-".concat(p),void 0!==p),v(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(d).map((function(e){return d[e]?e:null})).filter((function(e){return e}))}(e)),w(o.split(" ")))),s=C("transform","string"==typeof e.transform?f.b.transform(e.transform):e.transform),c=C("mask",_(n)),u=Object(f.a)(a,b({},l,s,c,{symbol:r,title:i}));if(!u)return function(){var e;!k&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",a),null;var p=u.abstract,d={};return Object.keys(e).forEach((function(t){E.defaultProps.hasOwnProperty(t)||(d[t]=e[t])})),S(p[0],d)}E.displayName="FontAwesomeIcon",E.propTypes={border:m.a.bool,className:m.a.string,mask:m.a.oneOfType([m.a.object,m.a.array,m.a.string]),fixedWidth:m.a.bool,inverse:m.a.bool,flip:m.a.oneOf(["horizontal","vertical","both"]),icon:m.a.oneOfType([m.a.object,m.a.array,m.a.string]),listItem:m.a.bool,pull:m.a.oneOf(["right","left"]),pulse:m.a.bool,rotation:m.a.oneOf([90,180,270]),size:m.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:m.a.bool,symbol:m.a.oneOfType([m.a.bool,m.a.string]),title:m.a.string,transform:m.a.oneOfType([m.a.string,m.a.object]),swapOpacity:m.a.bool},E.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,swapOpacity:!1};var S=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((function(n){return e(t,n)})),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=x(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[x(t)]=r}return e}),{attrs:{}}),a=r.style,l=void 0===a?{}:a,s=y(r,["style"]);return i.attrs.style=b({},i.attrs.style,l),t.apply(void 0,[n.tag,b({},i.attrs,s)].concat(w(o)))}.bind(null,i.a.createElement),T={prefix:"fas",iconName:"check-double",icon:[512,512,[],"f560","M504.5 171.95l-36.2-36.41c-10-10.05-26.21-10.05-36.2 0L192 377.02 79.9 264.28c-10-10.06-26.21-10.06-36.2 0L7.5 300.69c-10 10.05-10 26.36 0 36.41l166.4 167.36c10 10.06 26.21 10.06 36.2 0l294.4-296.09c10-10.06 10-26.36 0-36.42zM166.57 282.71c6.84 7.02 18.18 7.02 25.21.18L403.85 72.62c7.02-6.84 7.02-18.18.18-25.21L362.08 5.29c-6.84-7.02-18.18-7.02-25.21-.18L179.71 161.19l-68.23-68.77c-6.84-7.02-18.18-7.02-25.2-.18l-42.13 41.77c-7.02 6.84-7.02 18.18-.18 25.2l122.6 123.5z"]},P={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"]},N={prefix:"fas",iconName:"circle",icon:[512,512,[],"f111","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"]},O={prefix:"fas",iconName:"clone",icon:[512,512,[],"f24d","M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"]},B={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"]},M={prefix:"fas",iconName:"cube",icon:[512,512,[],"f1b2","M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"]},L={prefix:"fas",iconName:"dot-circle",icon:[512,512,[],"f192","M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"]},R={prefix:"fas",iconName:"hockey-puck",icon:[512,512,[],"f453","M0 160c0-53 114.6-96 256-96s256 43 256 96-114.6 96-256 96S0 213 0 160zm0 82.2V352c0 53 114.6 96 256 96s256-43 256-96V242.2c-113.4 82.3-398.5 82.4-512 0z"]},I={prefix:"fas",iconName:"location-arrow",icon:[512,512,[],"f124","M444.52 3.52L28.74 195.42c-47.97 22.39-31.98 92.75 19.19 92.75h175.91v175.91c0 51.17 70.36 67.17 92.75 19.19l191.9-415.78c15.99-38.39-25.59-79.97-63.97-63.97z"]},A={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"]},j={prefix:"fas",iconName:"palette",icon:[512,512,[],"f53f","M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]},D={prefix:"fas",iconName:"play",icon:[448,512,[],"f04b","M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"]},z={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"]},F={prefix:"fas",iconName:"ring",icon:[512,512,[],"f70b","M256 64C110.06 64 0 125.91 0 208v98.13C0 384.48 114.62 448 256 448s256-63.52 256-141.87V208c0-82.09-110.06-144-256-144zm0 64c106.04 0 192 35.82 192 80 0 9.26-3.97 18.12-10.91 26.39C392.15 208.21 328.23 192 256 192s-136.15 16.21-181.09 42.39C67.97 226.12 64 217.26 64 208c0-44.18 85.96-80 192-80zM120.43 264.64C155.04 249.93 201.64 240 256 240s100.96 9.93 135.57 24.64C356.84 279.07 308.93 288 256 288s-100.84-8.93-135.57-23.36z"]},U={prefix:"fas",iconName:"square-full",icon:[512,512,[],"f45c","M512 512H0V0h512v512z"]},V={prefix:"fas",iconName:"stop",icon:[448,512,[],"f04d","M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"]},W={prefix:"fas",iconName:"sun",icon:[512,512,[],"f185","M274.835 12.646l25.516 62.393c4.213 10.301 16.671 14.349 26.134 8.492l57.316-35.479c15.49-9.588 34.808 4.447 30.475 22.142l-16.03 65.475c-2.647 10.81 5.053 21.408 16.152 22.231l67.224 4.987c18.167 1.348 25.546 24.057 11.641 35.826L441.81 242.26c-8.495 7.19-8.495 20.289 0 27.479l51.454 43.548c13.906 11.769 6.527 34.478-11.641 35.826l-67.224 4.987c-11.099.823-18.799 11.421-16.152 22.231l16.03 65.475c4.332 17.695-14.986 31.73-30.475 22.142l-57.316-35.479c-9.463-5.858-21.922-1.81-26.134 8.492l-25.516 62.393c-6.896 16.862-30.774 16.862-37.67 0l-25.516-62.393c-4.213-10.301-16.671-14.349-26.134-8.492l-57.317 35.479c-15.49 9.588-34.808-4.447-30.475-22.142l16.03-65.475c2.647-10.81-5.053-21.408-16.152-22.231l-67.224-4.987c-18.167-1.348-25.546-24.057-11.641-35.826L70.19 269.74c8.495-7.19 8.495-20.289 0-27.479l-51.454-43.548c-13.906-11.769-6.527-34.478 11.641-35.826l67.224-4.987c11.099-.823 18.799-11.421 16.152-22.231l-16.03-65.475c-4.332-17.695 14.986-31.73 30.475-22.142l57.317 35.479c9.463 5.858 21.921 1.81 26.134-8.492l25.516-62.393c6.896-16.861 30.774-16.861 37.67 0zM392 256c0-74.991-61.01-136-136-136-74.991 0-136 61.009-136 136s61.009 136 136 136c74.99 0 136-61.009 136-136zm-32 0c0 57.346-46.654 104-104 104s-104-46.654-104-104 46.654-104 104-104 104 46.654 104 104z"]},Y={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M0 84V56c0-13.3 10.7-24 24-24h112l9.4-18.7c4-8.2 12.3-13.3 21.4-13.3h114.3c9.1 0 17.4 5.1 21.5 13.3L312 32h112c13.3 0 24 10.7 24 24v28c0 6.6-5.4 12-12 12H12C5.4 96 0 90.6 0 84zm415.2 56.7L394.8 467c-1.6 25.3-22.6 45-47.9 45H101.1c-25.3 0-46.3-19.7-47.9-45L32.8 140.7c-.4-6.9 5.1-12.7 12-12.7h358.5c6.8 0 12.3 5.8 11.9 12.7z"]},H={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"]},G=function(e){function t(t){var n=e.call(this,t)||this,r=s.ReadBoolean(n.props.title,!n.props.closed);return n.state={isExpanded:r},n}return p(t,e),t.prototype.switchExpandedState=function(){var e=!this.state.isExpanded;s.StoreBoolean(this.props.title,e),this.setState({isExpanded:e})},t.prototype.renderHeader=function(){var e=this,t=this.state.isExpanded?"collapse":"collapse closed";return o.createElement("div",{className:"header",onClick:function(){return e.switchExpandedState()}},o.createElement("div",{className:"title"},this.props.title),o.createElement("div",{className:t},o.createElement(E,{icon:P})))},t.prototype.render=function(){return this.state.isExpanded?o.createElement("div",{className:"paneContainer"},o.createElement("div",{className:"paneContainer-content"},this.renderHeader(),o.createElement("div",{className:"paneList"},this.props.children))):o.createElement("div",{className:"paneContainer"},o.createElement("div",{className:"paneContainer-content"},this.renderHeader()))},t}(o.Component),q=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement("div",{className:"draggableLine",title:this.props.tooltip,draggable:!0,onDragStart:function(t){t.dataTransfer.setData("babylonjs-material-node",e.props.data)}},this.props.data.replace("Block",""))},t}(o.Component);
- /*!
- * Font Awesome Free 5.4.2 by @fontawesome - https://fontawesome.com
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
- */n(135);var X=function(e){function t(t){var n=e.call(this,t)||this;return n.state={filter:""},n}return p(t,e),t.prototype.filterContent=function(e){this.setState({filter:e})},t.prototype.render=function(){var e=this,n={Animation:["BonesBlock","MorphTargetsBlock"],Color_Management:["ReplaceColorBlock","PosterizeBlock","GradientBlock","DesaturateBlock"],Conversion_Blocks:["ColorMergerBlock","ColorSplitterBlock","VectorMergerBlock","VectorSplitterBlock"],Inputs:["Float","Vector2","Vector3","Vector4","Color3","Color4","TextureBlock","ReflectionTextureBlock","TimeBlock","DeltaTimeBlock"],Interpolation:["LerpBlock","StepBlock","SmoothStepBlock","NLerpBlock"],Math__Standard:["AddBlock","DivideBlock","MaxBlock","MinBlock","MultiplyBlock","NegateBlock","OneMinusBlock","ReciprocalBlock","ScaleBlock","SignBlock","SqrtBlock","SubtractBlock"],Math__Scientific:["AbsBlock","ArcCosBlock","ArcSinBlock","ArcTanBlock","ArcTan2Block","CosBlock","DegreesToRadiansBlock","ExpBlock","Exp2Block","FractBlock","LogBlock","PowBlock","RadiansToDegreesBlock","SawToothWaveBlock","SinBlock","SquareWaveBlock","TanBlock","TriangleWaveBlock"],Math__Vector:["CrossBlock","DerivativeBlock","DistanceBlock","DotBlock","FresnelBlock","LengthBlock","ReflectBlock","RefractBlock","Rotate2dBlock","TransformBlock"],Matrices:["Matrix","WorldMatrixBlock","WorldViewMatrixBlock","WorldViewProjectionMatrixBlock","ViewMatrixBlock","ViewProjectionMatrixBlock","ProjectionMatrixBlock"],Mesh:["InstancesBlock","PositionBlock","UVBlock","ColorBlock","NormalBlock","PerturbNormalBlock","NormalBlendBlock","TangentBlock","MatrixIndicesBlock","MatrixWeightsBlock","WorldPositionBlock","WorldNormalBlock","WorldTangentBlock","FrontFacingBlock"],Noises:["RandomNumberBlock","SimplexPerlin3DBlock","WorleyNoise3DBlock"],Output_Nodes:["VertexOutputBlock","FragmentOutputBlock","DiscardBlock"],Range:["ClampBlock","RemapBlock","NormalizeBlock"],Round:["RoundBlock","CeilingBlock","FloorBlock"],Scene:["FogBlock","CameraPositionBlock","FogColorBlock","ImageProcessingBlock","LightBlock","LightInformationBlock","ViewDirectionBlock"]},r=[];for(var i in n){var a=n[i].filter((function(t){return!e.state.filter||-1!==t.toLowerCase().indexOf(e.state.filter.toLowerCase())})).sort((function(e,t){return e.localeCompare(t)})).map((function(e,n){var r=t._Tooltips[e]||"";return o.createElement(q,{key:e,data:e,tooltip:r})}));a.length&&r.push(o.createElement(G,{key:i+" blocks",title:i.replace("__",": ").replace("_"," "),closed:!1},a))}return o.createElement("div",{id:"nodeList"},o.createElement("div",{className:"panes"},o.createElement("div",{className:"pane"},o.createElement("div",{className:"filter"},o.createElement("input",{type:"text",placeholder:"Filter",onChange:function(t){return e.filterContent(t.target.value)}})),o.createElement("div",{className:"list-container"},r))))},t._Tooltips={BonesBlock:"Provides a world matrix for each vertex, based on skeletal (bone/joint) animation",MorphTargetsBlock:"Provides the final positions, normals, tangents, and uvs based on morph targets in a mesh",AddBlock:"Adds the left and right inputs of the same type together",DistanceBlock:"Provides a distance vector based on the left and right input vectors",DivideBlock:"Divides the left input by the right input of the same type",LengthBlock:"Outputs the length of an input vector",MaxBlock:"Outputs the largest value between the left and right inputs of the same type",MinBlock:"Outputs the smallest value between the left and right inputs of the same type",MultiplyBlock:"Multiplies the left and right inputs of the same type together",NegateBlock:"Multiplies the input by -1",OneMinusBlock:"Subtracts each channel of the input value from 1 (1 - input)",RandomNumberBlock:"Provides a random number based on an input seed",ReciprocalBlock:"Quotient of 1 divided by the input",ScaleBlock:"Multiplies the input channels by a float factor",SubtractBlock:"Subtracts the right input from the left input of the same type",GradientBlock:"Returns the color in the gradient represented by the target value of the input",PosterizeBlock:"Reduces the number of values in each channel to the number in the corresponding channel of steps",ReplaceColorBlock:"Replaces a reference color in value with the color in replacement blended by distance",ColorMergerBlock:"Combines float input channels into a color",ColorSplitterBlock:"Separates color input channels into individual floats",VectorMergerBlock:"Combines up to four input floats into a vector",VectorSplitterBlock:"Separates vectors input channels into individual floats",Color3:"A color made up of red, green, and blue channel values",Color4:"A color made up of red, green, blue, and alpha channel values",DeltaTimeBlock:"A float representing the time that has passed since the last frame was rendered",Float:"A floating point number representing a value with a fractional component",TextureBlock:"A node for reading a linked or embedded texture file",TimeBlock:"A float value that represents the time that has passed since the scene was loaded",Vector2:"a vector composed of X and Y channels",Vector3:"a vector composed of X, Y, and Z channels",Vector4:"a vector composed of X, Y, Z, and W channels",LerpBlock:"Outputs a value that is a mix of the left and right inputs based on the target value",NLerpBlock:"Outputs a value that is a mix of the left and right inputs based on the target's normalized value",SmoothStepBlock:"Outputs a value based on a the input value's position on a curve between the two edge values",StepBlock:"Outputs 1 for any input value above the edge input, outputs 0 for any input value below the edge input",Matrix:"A 4x4 table of related values",ProjectionMatrixBlock:"A matrix to remap points in 3D space to 2D plane relative to the screen",ViewMatrixBlock:"A matrix to remap points in 3D space to 2D plane relative to the view of the scene camera",ViewProjectionMatrixBlock:"A matrix to remap points in 3D space to 2D view space before remapping to 2D screen space",WorldMatrixBlock:"A matrix to remap points in 3D local space to 3D world space",WorldViewProjectionMatrixBlock:"A matrix to remap points in 3D local space to 3D world space, then to 2D camera space, and ending in 2D screen space",ColorBlock:"Outputs the RGBA color of each vertex in the mesh",InstancesBlock:"Provides the world matrix for each instance to apply this material to all instances",MatrixIndicesBlock:"A Vector4 representing the vertex to bone skinning assignments",MatrixWeightsBlock:"A Vector4 representing the vertex to bone skinning weights",NormalBlock:"A Vector3 representing the normal of each vertex of the attached mesh",PositionBlock:"A Vector3 representing the position of each vertex of the attached mesh",TangentBlock:"A Vector3 representing the tangent of each vertex of the attached mesh",UVBlock:"A Vector2 representing the UV coordinates of each vertex of the attached mesh",WorldNormal:"A Vector4 representing the normal of each vertex of the attached mesh transformed into world space",WorldTangent:"A Vector4 representing the tangent of each vertex of the attached mesh transformed into world space",PerturbNormalBlock:"Creates high-frequency detail normal vectors based on a normal map, the world position, and world normal",NormalBlend:"Outputs the result of blending two normal maps together using a per-channel screen",WorldPosition:"A Vector4 representing the position of each vertex of the attached mesh transformed into world space",DiscardBlock:"A final node that will not output a pixel below the cutoff value",FragmentOutputBlock:"A mandatory final node for outputing the color of each pixel",VertexOutputBlock:"A mandatory final node for outputing the position of each vertex",ClampBlock:"Outputs values above the maximum or below minimum as maximum or minimum values respectively",NormalizeBlock:"Remaps the length of a vector or color to 1",RemapBlock:"Remaps input value between sourceMin and sourceMax to a new range between targetMin and targetMax",CeilingBlock:"Outputs fractional values as the next higher whole number",FloorBlock:"Outputs fractional values as the next lower whole number",RoundBlock:"Outputs fractional values rounded to the nearest whole number",CameraPositionBlock:"Outputs a Vector3 position of the active scene camera",FogBlock:"Applies fog to the scene with an increasing opacity based on distance from the camera",FogColorBlock:"The system value for fog color pulled from the scene",ImageProcessingBlock:"Provides access to all of the Babylon image processing properties",LightBlock:"Outputs diffuse and specular contributions from one or more scene lights",LightInformationBlock:"Provides the direction, color and intensity of a selected light based on its world position",ReflectionTextureBlock:"Creates a reflection from the input texture",ViewDirectionBlock:"Outputs the direction vector of where the camera is aimed",AbsBlock:"Outputs the absolute value of the input value",ArcCosBlock:"Outputs the inverse of the cosine value based on the input value",ArcSinBlock:"Outputs the inverse of the sine value based on the input value",ArcTan2Block:"Outputs the inverse of the tangent value based on the input value",ArcTanBlock:"Outputs the inverse of the tangent value based on the input value",CosBlock:"Outputs the cosine value based on the input value",DegreesToRadiansBlock:"Converts the input degrees value to radians",Exp2Block:"Outputs the input value multiplied by itself 1 time. (Exponent of 2)",ExpBlock:"Outputs the input value multiplied by itself 9 time. (Exponent of 10)",FractBlock:"Outputs only the fractional value of a floating point number",LogBlock:"The logarithmic value based on the input value",PowBlock:"Outputs the input value multiplied by itself the number of times equal to the power input (Exponent of power)",RadiansToDegreesBlock:"Converts the input radians value to degrees",SawToothWaveBlock:"Outputs a sawtooth pattern value between -1 and 1 based on the input value",SignBlock:"returns 1 if the input is positive, 0 if input is equal to 0, or -1 if the input is negative",SinBlock:"Outputs the the sine value based on the input value",SqrtBlock:"Outputs the the square root of the input value",SquareWaveBlock:"Outputs a stepped pattern value between -1 and 1 based on the input value",TanBlock:"Outputs the the tangent value based on the input value",TriangleWaveBlock:"Outputs a sawtooth pattern value between 0 and 1 based on the input value",CrossBlock:"Outputs a vector that is perpendicular to two input vectors",DotBlock:"Outputs the cos of the angle between two vectors",FresnelBlock:"Outputs the grazing angle of the surface of the mesh, relative to a camera influenced by the bias and power inputs",TransformBlock:"Transforms a input vector based on the input matrix",DerivativeBlock:"FRAGMENT SHADER ONLY. Provides the rate of change for an input on a given axis (x,y).",DesaturateBlock:"Convert a color input into a grayscale representation.",WorldViewMatrixBlock:"A matrix to remap points in 3D local space to 3D world space, and ending in 2D camera space.",FrontFacingBlock:"Returns 1 if a mesh triangle faces the normal direction and 0 if it does not.",SimplexPerlin3DBlock:"Creates a type of gradient noise with few directional artifacts.",WorleyNoise3DBlock:"Creates a random pattern resembling cells.",ReflectBlock:"Outputs the direction of the input vector reflected across the surface normal.",RefractBlock:"Outputs a direction simulating a deflection of the input vector.",Rotate2dBlock:"Rotates UV coordinates around the W axis."},t}(o.Component),Z=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement("div",{className:"buttonLine"},o.createElement("button",{onClick:function(){return e.props.onClick()}},this.props.label))},t}(o.Component),Q=function(){function e(){}return e._SaveAs=function(e,t,n){var r=this;if("download"in HTMLAnchorElement.prototype){var o=window.URL||window.webkitURL,i=n.createElement("a");return i.download=t,i.rel="noopener",i.href=o.createObjectURL(e),setTimeout((function(){o.revokeObjectURL(i.href)}),4e4),void setTimeout((function(){r._Click(i,n)}),0)}var a=open("","_blank");a&&(a.document.title=a.document.body.innerText="downloading...");var l="application/octet-stream"===e.type,s=/constructor/i.test(window.HTMLElement)||window.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||l&&s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},u.readAsDataURL(e)}else{var p=(o=window.URL||window.webkitURL).createObjectURL(e);a?a.location.href=p:location.href=p,a=null,setTimeout((function(){o.revokeObjectURL(p)}),4e4)}},e._Click=function(e,t){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var n=t.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}},e.GetBaseType=function(e){return l.NodeMaterialBlockConnectionPointTypes[e]},e.DownloadAsFile=function(e,t,n){var r=new Blob([t],{type:"application/octet-stream"});this._SaveAs(r,n,e)},e}(),$=function(e){function t(t){return e.call(this,t)||this}return p(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 o.createElement("div",{className:"buttonLine"},o.createElement("label",{htmlFor:"file-upload",className:"file-upload"},this.props.label),o.createElement("input",{ref:"upload",id:"file-upload",type:"file",accept:this.props.accept,onChange:function(t){return e.onChange(t)}}))},t}(o.Component),K=function(){function e(){}return e.UpdateLocations=function(e,t){e.editorData={locations:[]};for(var n=0,r=e.attachedBlocks;n<r.length;n++){var o=r[n],i=t.onGetNodeFromBlock(o);e.editorData.locations.push({blockId:o.uniqueId,x:i?i.x:0,y:i?i.y:0})}t.storeEditorData(e.editorData)},e.Serialize=function(e,t,n){var r=l.Texture.SerializeBuffers;l.Texture.SerializeBuffers=s.ReadBoolean("EmbedTextures",!0),this.UpdateLocations(e,t);var o=e.serialize(n);return l.Texture.SerializeBuffers=r,JSON.stringify(o,void 0,2)},e.Deserialize=function(e,t){t.onIsLoadingChanged.notifyObservers(!0),t.nodeMaterial.loadFromSerialization(e,""),t.onResetRequiredObservable.notifyObservers()},e}(),J=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:1==r.props.target[r.props.propertyName]},r}return p(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n;return(n=e.isSelected?e.isSelected():1==e.target[e.propertyName])!==t.isSelected||this._localChange?(t.isSelected=n,this._localChange=!1,!0):e.label!==this.props.label},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 o.createElement("div",{className:"checkBoxLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"checkBox"},o.createElement("input",{type:"checkbox",id:"checkbox"+this._uniqueId,className:"cbx hidden",checked:this.state.isSelected,onChange:function(){return e.onChange()}}),o.createElement("label",{htmlFor:"checkbox"+this._uniqueId,className:"lbl"})))},t._UniqueIdSeed=0,t}(o.Component),ee=function(e){function t(t){var n=e.call(this,t)||this;n._localChange=!1;var r=n.props.target[n.props.propertyName];return n.state={value:r?n.props.isInteger?r.toFixed(0):r.toFixed(n.props.digits||2):"0"},n._store=r,n}return p(t,e),t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var n=e.target[e.propertyName],r=n?this.props.isInteger?n.toFixed(0):n.toFixed(this.props.digits||2):"0";return r!==t.value&&(t.value=r,!0)},t.prototype.raiseOnPropertyChanged=function(e,t){this.props.onChange&&this.props.onChange(e),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;/[^0-9\.\-]/g.test(e)||(e=e.replace(/(.+\...).+/,"$1"),t=this.props.isInteger?parseInt(e):parseFloat(e),this._localChange=!0,this.setState({value:e}),isNaN(t)||(this.props.target[this.props.propertyName]=t,this.raiseOnPropertyChanged(t,this._store),this._store=t))},t.prototype.render=function(){var e=this;return o.createElement("div",null,o.createElement("div",{className:this.props.additionalClass?this.props.additionalClass+" floatLine":"floatLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"value"},o.createElement("input",{type:"number",step:this.props.step||"0.01",className:"numeric-input",value:this.state.value,onChange:function(t){return e.updateValue(t.target.value)}}))))},t}(o.Component),te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement(ee,{label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.inputBlock.isConstant&&e.props.globalState.onRebuildRequiredObservable.notifyObservers(),e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),ne=function(e){function t(t){var n=e.call(this,t)||this;if(n._localChange=!1,void 0!==n.props.directValue)n.state={value:n.props.directValue};else{var r=n.props.target[n.props.propertyName];void 0===r&&(r=n.props.maximum),n.state={value:r}}return n}return p(t,e),t.prototype.shouldComponentUpdate=function(e,t){if(void 0!==e.directValue)return t.value=e.directValue,!0;var n=e.target[e.propertyName];return void 0===n&&(n=e.maximum),!(n===t.value&&e.minimum===this.props.minimum&&e.maximum===this.props.maximum&&!this._localChange)&&(t.value=n,this._localChange=!1,!0)},t.prototype.onChange=function(e){this._localChange=!0;var t=parseFloat(e);this.props.useEuler&&(t=l.Tools.ToRadians(t)),this.props.target&&(this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:t,initialValue:this.state.value}),this.props.target[this.props.propertyName]=t),this.props.onChange&&this.props.onChange(t),this.setState({value:t})},t.prototype.onInput=function(e){var t=parseFloat(e);this.props.onInput&&this.props.onInput(t)},t.prototype.prepareDataToRead=function(e){return this.props.useEuler?l.Tools.ToDegrees(e):e},t.prototype.render=function(){var e=this,t=void 0!==this.props.decimalCount?this.props.decimalCount:2;return o.createElement("div",{className:"sliderLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"slider"},this.state.value?this.prepareDataToRead(this.state.value).toFixed(t):"0"," ",o.createElement("input",{className:"range",type:"range",step:this.props.step,min:this.prepareDataToRead(this.props.minimum),max:this.prepareDataToRead(this.props.maximum),value:this.prepareDataToRead(this.state.value),onInput:function(t){return e.onInput(t.target.value)},onChange:function(t){return e.onChange(t.target.value)}})))},t}(o.Component),re=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 p(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 o.createElement("div",{className:"numeric"},this.props.label&&o.createElement("div",{className:"numeric-label"},this.props.label+": "),o.createElement("input",{type:"number",onFocus:function(){return e.props.globalState.blockKeyboardEvents=!0},onBlur:function(t){e.props.globalState.blockKeyboardEvents=!1},step:this.props.step,className:"numeric-input",value:this.state.value,onChange:function(t){return e.updateValue(t)}}))},t.defaultProps={step:1},t}(o.Component),oe=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 p(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?o.createElement(E,{icon:A}):o.createElement(E,{icon:z});return o.createElement("div",{className:"vector3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"vector"},"X: "+this.state.value.x.toFixed(2)+", Y: "+this.state.value.y.toFixed(2)),o.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&o.createElement("div",{className:"secondLine"},o.createElement(re,{globalState:this.props.globalState,label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),o.createElement(re,{globalState:this.props.globalState,label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}})))},t.defaultProps={step:.001},t}(o.Component),ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement(oe,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),ae=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={isExpanded:!1,color:n.props.target[n.props.propertyName].clone()},n}return p(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e.target[e.propertyName];return!(n.equals(t.color)&&!this._localChange)&&(t.color=n.clone(),this._localChange=!1,!0)},t.prototype.onChange=function(e){this._localChange=!0;var t=l.Color3.FromHexString(e);this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:t,initialValue:this.state.color}),"Color4"===this.props.target[this.props.propertyName].getClassName()?this.props.target[this.props.propertyName]=new l.Color4(t.r,t.g,t.b,1):this.props.target[this.props.propertyName]=t,this.setState({color:t}),this.props.onChange&&this.props.onChange()},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.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.color,initialValue:e})},t.prototype.updateStateR=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].x=e,this.state.color.r=e,this.props.target[this.props.propertyName]=this.state.color,this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateG=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].g=e,this.state.color.g=e,this.props.target[this.props.propertyName]=this.state.color,this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateB=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].b=e,this.state.color.b=e,this.props.target[this.props.propertyName]=this.state.color,this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.copyToClipboard=function(){var e=document.createElement("div");if(e.textContent=this.state.color.toHexString(),document.body.appendChild(e),window.getSelection){var t=document.createRange();t.selectNode(e),window.getSelection().removeAllRanges(),window.getSelection().addRange(t)}document.execCommand("copy"),e.remove()},t.prototype.render=function(){var e=this,t=this.state.isExpanded?o.createElement(E,{icon:A}):o.createElement(E,{icon:z}),n="Color3"===this.state.color.getClassName()?this.state.color:new l.Color3(this.state.color.r,this.state.color.g,this.state.color.b);return o.createElement("div",{className:"color3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"color3"},o.createElement("input",{type:"color",value:n.toHexString(),onChange:function(t){return e.onChange(t.target.value)}})),o.createElement("div",{className:"copy hoverIcon",onClick:function(){return e.copyToClipboard()},title:"Copy to clipboard"},o.createElement(E,{icon:B})),o.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&o.createElement("div",{className:"secondLine"},o.createElement(re,{globalState:this.props.globalState,label:"r",value:this.state.color.r,onChange:function(t){return e.updateStateR(t)}}),o.createElement(re,{globalState:this.props.globalState,label:"g",value:this.state.color.g,onChange:function(t){return e.updateStateG(t)}}),o.createElement(re,{globalState:this.props.globalState,label:"b",value:this.state.color.b,onChange:function(t){return e.updateStateB(t)}})))},t}(o.Component),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement(ae,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),se=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 p(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?o.createElement(E,{icon:A}):o.createElement(E,{icon:z});return o.createElement("div",{className:"vector3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"label"},this.props.label),o.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)),o.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&o.createElement("div",{className:"secondLine"},o.createElement(re,{globalState:this.props.globalState,label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),o.createElement(re,{globalState:this.props.globalState,label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}}),o.createElement(re,{globalState:this.props.globalState,label:"z",step:this.props.step,value:this.state.value.z,onChange:function(t){return e.updateStateZ(t)}})))},t.defaultProps={step:.001},t}(o.Component),ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement(se,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),ue=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={isExpanded:!1,value:(n.props.value||n.props.target[n.props.propertyName]).clone()},n}return p(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e.value||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.propertyName&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.value,initialValue:e})},t.prototype.updateVector4=function(){var e=(this.props.value||this.props.target[this.props.propertyName]).clone();this.props.value?this.props.value.copyFrom(this.state.value):this.props.target[this.props.propertyName]=this.state.value,this.forceUpdate(),this.raiseOnPropertyChanged(e)},t.prototype.updateStateX=function(e){this._localChange=!0,this.state.value.x=e,this.updateVector4()},t.prototype.updateStateY=function(e){this._localChange=!0,this.state.value.y=e,this.updateVector4()},t.prototype.updateStateZ=function(e){this._localChange=!0,this.state.value.z=e,this.updateVector4()},t.prototype.updateStateW=function(e){this._localChange=!0,this.state.value.w=e,this.updateVector4()},t.prototype.render=function(){var e=this,t=this.state.isExpanded?o.createElement(E,{icon:A}):o.createElement(E,{icon:z});return o.createElement("div",{className:"vector3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"label"},this.props.label),o.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)+", W: "+this.state.value.w.toFixed(2)),o.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&o.createElement("div",{className:"secondLine"},o.createElement(re,{globalState:this.props.globalState,label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),o.createElement(re,{globalState:this.props.globalState,label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}}),o.createElement(re,{globalState:this.props.globalState,label:"z",step:this.props.step,value:this.state.value.z,onChange:function(t){return e.updateStateZ(t)}}),o.createElement(re,{globalState:this.props.globalState,label:"w",step:this.props.step,value:this.state.value.w,onChange:function(t){return e.updateStateW(t)}})))},t.defaultProps={step:.001},t}(o.Component),pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement(ue,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),de=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={value:n._getValue(t)},n}return p(t,e),t.prototype._getValue=function(e){return e.getSelection?e.getSelection(e.target):e.target&&e.propertyName?e.target[e.propertyName]:e.options[e.defaultIfNull||0]},t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var n=this._getValue(e);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=this.props.valuesAreStrings?e: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,t=this;return o.createElement("div",{className:"listLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"options"+(this.props.className?" "+this.props.className:"")},o.createElement("select",{onChange:function(e){return t.updateValue(e.target.value)},value:(e=this.state.value,null!=e?e:"")},this.props.options.map((function(e){return o.createElement("option",{key:e.label,value:e.value},e.label)})))))},t}(o.Component),fe=function(e){function t(t){var n=e.call(this,t)||this;n._localChange=!1;var r=n.props.target[n.props.propertyName].clone(),o=0;if(n.props.mode){var i=new l.Quaternion;r.decompose(void 0,i);var a=i.toEulerAngles();switch(n.props.mode){case 1:o=a.x;break;case 2:o=a.y;break;case 3:o=a.z}}return n.state={value:r,mode:n.props.mode||0,angle:o},n}return p(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.mode!==this.state.mode||t.angle!==this.state.angle},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.updateMatrix=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.updateRow=function(e,t){this._localChange=!0,this.state.value.setRow(t,e),this.updateMatrix()},t.prototype.updateBasedOnMode=function(e){switch(this.state.mode){case 1:l.Matrix.RotationXToRef(this.state.angle,this.state.value);break;case 2:l.Matrix.RotationYToRef(this.state.angle,this.state.value);break;case 3:l.Matrix.RotationZToRef(this.state.angle,this.state.value)}this.updateMatrix(),this.setState({angle:e})},t.prototype.render=function(){var e=this;return o.createElement("div",{className:"vector3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"label"},this.props.label)),o.createElement("div",{className:"secondLine"},o.createElement(de,{label:"Mode",className:"no-right-margin",options:[{label:"User-defined",value:0},{label:"Rotation over X axis",value:1},{label:"Rotation over Y axis",value:2},{label:"Rotation over Z axis",value:3}],target:this,noDirectUpdate:!0,getSelection:function(){return e.state.mode},onSelect:function(t){e.props.target[e.props.propertyName]=l.Matrix.Identity(),l.Matrix.IdentityToRef(e.state.value),e.setState({mode:t,angle:0}),e.updateMatrix(),e.props.onModeChange&&e.props.onModeChange(t)}})),0===this.state.mode&&o.createElement("div",{className:"secondLine"},o.createElement(ue,{globalState:this.props.globalState,label:"Row #0",value:this.state.value.getRow(0),onChange:function(t){return e.updateRow(t,0)}}),o.createElement(ue,{globalState:this.props.globalState,label:"Row #1",value:this.state.value.getRow(1),onChange:function(t){return e.updateRow(t,1)}}),o.createElement(ue,{globalState:this.props.globalState,label:"Row #2",value:this.state.value.getRow(2),onChange:function(t){return e.updateRow(t,2)}}),o.createElement(ue,{globalState:this.props.globalState,label:"Row #3",value:this.state.value.getRow(3),onChange:function(t){return e.updateRow(t,3)}})),0!==this.state.mode&&o.createElement("div",{className:"secondLine"},o.createElement(ne,{label:"Angle",minimum:0,maximum:2*Math.PI,useEuler:!0,step:.1,directValue:this.state.angle,onChange:function(t){return e.updateBasedOnMode(t)}})))},t}(o.Component),he=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement(fe,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()},mode:this.props.inputBlock.matrixMode,onModeChange:function(t){e.props.inputBlock.matrixMode=t}})},t}(o.Component),me=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={value:void 0!==n.props.value?n.props.value:n.props.target[n.props.propertyName]||""},n}return p(t,e),t.prototype.shouldComponentUpdate=function(e,t){if(this._localChange)return this._localChange=!1,!0;var n=void 0!==e.value?e.value:e.target[e.propertyName];return n!==t.value&&(t.value=n||"",!0)},t.prototype.raiseOnPropertyChanged=function(e,t){this.props.onChange?this.props.onChange(e):this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:e,initialValue:t})},t.prototype.updateValue=function(e,t){this._localChange=!0;var n=void 0!==this.props.value?this.props.value:this.props.target[this.props.propertyName];this.setState({value:e}),t&&this.raiseOnPropertyChanged(e,n),this.props.propertyName&&(this.props.target[this.props.propertyName]=e)},t.prototype.render=function(){var e=this;return o.createElement("div",{className:"textInputLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"value"},o.createElement("input",{value:this.state.value,onFocus:function(){return e.props.globalState.blockKeyboardEvents=!0},onChange:function(t){return e.updateValue(t.target.value,!1)},onKeyDown:function(t){13===t.keyCode&&e.updateValue(e.state.value,!0)},onBlur:function(t){e.updateValue(t.target.value,!0),e.props.globalState.blockKeyboardEvents=!1}})))},t}(o.Component),ge=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.onLink=function(){this.props.onLink&&this.props.onLink()},t.prototype.renderContent=function(){var e=this;return this.props.onLink?o.createElement("div",{className:"link-value",title:this.props.value,onClick:function(){return e.onLink()}},this.props.value||"no name"):o.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 o.createElement("div",{className:this.props.underline?"textLine underline":"textLine"},o.createElement("div",{className:"label"},this.props.label),this.renderContent())},t}(o.Component),ve=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement(o.Fragment,null,o.createElement(G,{title:"GENERAL"},(!this.props.block.isInput||!this.props.block.isAttribute)&&o.createElement(me,{globalState:this.props.globalState,label:"Name",propertyName:"name",target:this.props.block,onChange:function(){return e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),o.createElement(ge,{label:"Type",value:this.props.block.getClassName()}),o.createElement(me,{globalState:this.props.globalState,label:"Comments",propertyName:"comments",target:this.props.block,onChange:function(){return e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})))},t}(o.Component),be=function(e){function t(t){var n=e.call(this,t)||this;n._localChange=!1;var r=n.props.target[n.props.propertyName],o="Color4"===r.getClassName()?r.clone():new l.Color4(r.r,r.g,r.b,1);return n.state={isExpanded:!1,color:o},n}return p(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=this.props.target[this.props.propertyName],r="Color4"===n.getClassName()?n:new l.Color4(n.r,n.g,n.b,1);return!(r.equals(t.color)&&!this._localChange)&&(t.color=r.clone(),this._localChange=!1,!0)},t.prototype.onChange=function(e){this._localChange=!0;var t=l.Color3.FromHexString(e);this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:t,initialValue:this.state.color}),this.props.target[this.props.propertyName]=new l.Color4(t.r,t.g,t.b,this.props.target[this.props.propertyName].a),this.setState({color:this.props.target[this.props.propertyName]}),this.props.onChange&&this.props.onChange()},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.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.color,initialValue:e})},t.prototype.updateStateR=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].x=e,this.state.color.r=e,this.props.target[this.props.propertyName]=this.state.color,this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateG=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].g=e,this.state.color.g=e,this.props.target[this.props.propertyName]=this.state.color,this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateB=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].b=e,this.state.color.b=e,this.props.target[this.props.propertyName]=this.state.color,this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateA=function(e){this._localChange=!0;var t=this.state.color.clone();this.props.target[this.props.propertyName].a=e,this.state.color.a=e,this.props.target[this.props.propertyName]=this.state.color,this.setState({color:this.state.color}),this.raiseOnPropertyChanged(t)},t.prototype.copyToClipboard=function(){var e=document.createElement("div");if(e.textContent=this.state.color.toHexString(),document.body.appendChild(e),window.getSelection){var t=document.createRange();t.selectNode(e),window.getSelection().removeAllRanges(),window.getSelection().addRange(t)}document.execCommand("copy"),e.remove()},t.prototype.render=function(){var e=this,t=this.state.isExpanded?o.createElement(E,{icon:A}):o.createElement(E,{icon:z}),n=new l.Color3(this.state.color.r,this.state.color.g,this.state.color.b);return o.createElement("div",{className:"color3Line"},o.createElement("div",{className:"firstLine"},o.createElement("div",{className:"label"},this.props.label),o.createElement("div",{className:"color3"},o.createElement("input",{type:"color",value:n.toHexString(),onChange:function(t){return e.onChange(t.target.value)}})),o.createElement("div",{className:"copy hoverIcon",onClick:function(){return e.copyToClipboard()},title:"Copy to clipboard"},o.createElement(E,{icon:B})),o.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&o.createElement("div",{className:"secondLine"},o.createElement(re,{globalState:this.props.globalState,label:"r",value:this.state.color.r,onChange:function(t){return e.updateStateR(t)}}),o.createElement(re,{globalState:this.props.globalState,label:"g",value:this.state.color.g,onChange:function(t){return e.updateStateG(t)}}),o.createElement(re,{globalState:this.props.globalState,label:"b",value:this.state.color.b,onChange:function(t){return e.updateStateB(t)}}),o.createElement(re,{globalState:this.props.globalState,label:"a",value:this.state.color.a,onChange:function(t){return e.updateStateA(t)}})))},t}(o.Component),ye=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement(be,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),we=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.renderValue=function(e){var t=this,n=this.props.block;switch(n.type){case l.NodeMaterialBlockConnectionPointTypes.Float:var r=isNaN(n.min)||isNaN(n.max)||n.min===n.max;return o.createElement(o.Fragment,null,o.createElement(J,{label:"Is boolean",target:n,propertyName:"isBoolean",onValueChanged:function(){t.forceUpdate()}}),n.isBoolean&&o.createElement(J,{label:"Value",isSelected:function(){return 1===n.value},onSelect:function(e){n.value=e?1:0,n.isConstant&&t.props.globalState.onRebuildRequiredObservable.notifyObservers(),t.props.globalState.onUpdateRequiredObservable.notifyObservers(),t.forceUpdate()}}),!n.isBoolean&&o.createElement(ee,{label:"Min",target:n,propertyName:"min",onChange:function(){t.forceUpdate()}}),!n.isBoolean&&o.createElement(ee,{label:"Max",target:n,propertyName:"max",onChange:function(){t.forceUpdate()}}),!n.isBoolean&&r&&o.createElement(te,{globalState:e,inputBlock:n}),!n.isBoolean&&!r&&o.createElement(ne,{label:"Value",target:n,propertyName:"value",step:(n.max-n.min)/100,minimum:n.min,maximum:n.max,onChange:function(){n.isConstant&&t.props.globalState.onRebuildRequiredObservable.notifyObservers(),t.props.globalState.onUpdateRequiredObservable.notifyObservers()}}));case l.NodeMaterialBlockConnectionPointTypes.Vector2:return o.createElement(ie,{globalState:e,inputBlock:n});case l.NodeMaterialBlockConnectionPointTypes.Color3:return o.createElement(le,{globalState:e,inputBlock:n});case l.NodeMaterialBlockConnectionPointTypes.Color4:return o.createElement(ye,{globalState:e,inputBlock:n});case l.NodeMaterialBlockConnectionPointTypes.Vector3:return o.createElement(ce,{globalState:e,inputBlock:n});case l.NodeMaterialBlockConnectionPointTypes.Vector4:return o.createElement(pe,{globalState:e,inputBlock:n});case l.NodeMaterialBlockConnectionPointTypes.Matrix:return o.createElement(he,{globalState:e,inputBlock:n})}return null},t.prototype.setDefaultValue=function(){this.props.block.setDefaultValue()},t.prototype.render=function(){var e=this,t=this.props.block,n=[],r=[],i=[];switch(t.type){case l.NodeMaterialBlockConnectionPointTypes.Float:i=[{label:"None",value:l.AnimatedInputBlockTypes.None},{label:"Time",value:l.AnimatedInputBlockTypes.Time}],n=[{label:"Delta time",value:l.NodeMaterialSystemValues.DeltaTime}];break;case l.NodeMaterialBlockConnectionPointTypes.Matrix:n=[{label:"World",value:l.NodeMaterialSystemValues.World},{label:"World x View",value:l.NodeMaterialSystemValues.WorldView},{label:"World x ViewxProjection",value:l.NodeMaterialSystemValues.WorldViewProjection},{label:"View",value:l.NodeMaterialSystemValues.View},{label:"View x Projection",value:l.NodeMaterialSystemValues.ViewProjection},{label:"Projection",value:l.NodeMaterialSystemValues.Projection}];break;case l.NodeMaterialBlockConnectionPointTypes.Color3:n=[{label:"Fog color",value:l.NodeMaterialSystemValues.FogColor}];break;case l.NodeMaterialBlockConnectionPointTypes.Color4:r=[{label:"color",value:"color"}];break;case l.NodeMaterialBlockConnectionPointTypes.Vector2:r=[{label:"uv",value:"uv"},{label:"uv2",value:"uv2"}];break;case l.NodeMaterialBlockConnectionPointTypes.Vector3:n=[{label:"Camera position",value:l.NodeMaterialSystemValues.CameraPosition}],r=[{label:"position",value:"position"},{label:"normal",value:"normal"},{label:"tangent",value:"tangent"}];break;case l.NodeMaterialBlockConnectionPointTypes.Vector4:r=[{label:"matricesIndices",value:"matricesIndices"},{label:"matricesWeights",value:"matricesWeights"}]}var a=[{label:"User-defined",value:0}];r.length>0&&a.push({label:"Mesh attribute",value:1}),n.length>0&&a.push({label:"System value",value:2});return o.createElement("div",null,o.createElement(ve,{globalState:this.props.globalState,block:this.props.block}),o.createElement(G,{title:"PROPERTIES"},t.isUniform&&!t.isSystemValue&&t.animationType===l.AnimatedInputBlockTypes.None&&o.createElement(de,{label:"Type",options:[{label:"None",value:0},{label:"Visible in the inspector",value:1},{label:"Constant",value:2}],target:t,noDirectUpdate:!0,getSelection:function(e){return e.visibleInInspector?1:e.isConstant?2:0},onSelect:function(n){switch(n){case 0:t.visibleInInspector=!1,t.isConstant=!1;break;case 1:t.visibleInInspector=!0,t.isConstant=!1;break;case 2:t.visibleInInspector=!1,t.isConstant=!0}e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}}),t.visibleInInspector&&o.createElement(me,{globalState:this.props.globalState,label:"Group",propertyName:"groupInInspector",target:this.props.block,onChange:function(){e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}}),o.createElement(de,{label:"Mode",options:a,target:t,noDirectUpdate:!0,getSelection:function(e){return e.isAttribute?1:e.isSystemValue?2:0},onSelect:function(o){switch(o){case 0:t.isUniform=!0,t.setAsSystemValue(null),e.setDefaultValue();break;case 1:t.setAsAttribute(r[0].value);break;case 2:t.setAsSystemValue(n[0].value)}e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}}),t.isAttribute&&o.createElement(de,{label:"Attribute",valuesAreStrings:!0,options:r,target:t,propertyName:"name",onSelect:function(n){t.setAsAttribute(n),e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}}),t.isUniform&&i.length>0&&o.createElement(de,{label:"Animation type",options:i,target:t,propertyName:"animationType",onSelect:function(t){e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}}),t.isUniform&&!t.isSystemValue&&t.animationType===l.AnimatedInputBlockTypes.None&&this.renderValue(this.props.globalState),t.isUniform&&t.isSystemValue&&o.createElement(de,{label:"System value",options:n,target:t,propertyName:"systemValue",onSelect:function(n){t.setAsSystemValue(n),e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}})))},t}(o.Component),xe=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement(o.Fragment,null,o.createElement(ve,{globalState:this.props.globalState,block:this.props.block}),o.createElement(G,{title:"PROPERTIES"},o.createElement(J,{label:"Transform as direction",onSelect:function(t){var n=e.props.block;n.complementW=t?0:1,e.props.globalState.onRebuildRequiredObservable.notifyObservers()},isSelected:function(){return 0===e.props.block.complementW}})))},t}(o.Component),ke=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement(o.Fragment,null,o.createElement(ve,{globalState:this.props.globalState,block:this.props.block}),o.createElement(G,{title:"PROPERTIES"},o.createElement(J,{label:"Invert X axis",target:this.props.block,propertyName:"invertX",onValueChanged:function(){return e.props.globalState.onRebuildRequiredObservable.notifyObservers()}}),o.createElement(J,{label:"Invert Y axis",target:this.props.block,propertyName:"invertY",onValueChanged:function(){return e.props.globalState.onRebuildRequiredObservable.notifyObservers()}})))},t}(o.Component),_e=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.render=function(){var e=this;return o.createElement(o.Fragment,null,o.createElement(ve,{globalState:this.props.globalState,block:this.props.block}),o.createElement(G,{title:"PROPERTIES"},o.createElement(J,{label:"Use Manhattan Distance",target:this.props.block,propertyName:"manhattanDistance",onValueChanged:function(){return e.props.globalState.onRebuildRequiredObservable.notifyObservers()}})))},t}(o.Component),Ce=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.forceRebuild=function(){this.props.globalState.onUpdateRequiredObservable.notifyObservers(),this.props.globalState.onRebuildRequiredObservable.notifyObservers()},t.prototype.render=function(){var e=this,t=this.props.block;return o.createElement("div",null,o.createElement(ve,{globalState:this.props.globalState,block:this.props.block}),o.createElement(G,{title:"PROPERTIES"},o.createElement(ee,{label:"Minimum",propertyName:"minimum",target:t,onChange:function(){return e.forceRebuild()}}),o.createElement(ee,{label:"Maximum",propertyName:"maximum",target:t,onChange:function(){return e.forceRebuild()}})))},t}(o.Component),Ee=function(e){function t(t){var n=e.call(this,t)||this;return n.state={gradient:t.step.step},n}return p(t,e),t.prototype.updateColor=function(e){this.props.step.color=l.Color3.FromHexString(e),this.props.onUpdateStep(),this.forceUpdate()},t.prototype.updateStep=function(e){this.props.step.step=e,this.setState({gradient:e}),this.props.onUpdateStep()},t.prototype.onPointerUp=function(){this.props.onCheckForReOrder()},t.prototype.render=function(){var e=this,t=this.props.step;return o.createElement("div",{className:"gradient-step"},o.createElement("div",{className:"step"},"#"+this.props.lineIndex),o.createElement("input",{type:"color",value:t.color.toHexString(),onChange:function(t){return e.updateColor(t.target.value)}}),o.createElement("div",{className:"step-value"},t.step.toFixed(2)),o.createElement("div",{className:"step-slider"},o.createElement("input",{className:"range",type:"range",step:.01,min:0,max:1,value:t.step,onPointerUp:function(t){return e.onPointerUp()},onChange:function(t){return e.updateStep(parseFloat(t.target.value))}})),o.createElement("div",{className:"gradient-delete",onClick:function(){return e.props.onDelete()}},o.createElement(E,{icon:Y})))},t}(o.Component),Se=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.forceRebuild=function(){this.props.globalState.onUpdateRequiredObservable.notifyObservers(),this.props.globalState.onRebuildRequiredObservable.notifyObservers()},t.prototype.deleteStep=function(e){var t=this.props.block,n=t.colorSteps.indexOf(e);n>-1&&(t.colorSteps.splice(n,1),this.forceRebuild(),this.forceUpdate())},t.prototype.addNewStep=function(){var e=this.props.block,t=new l.GradientBlockColorStep(1,l.Color3.White());e.colorSteps.push(t),this.forceRebuild(),this.forceUpdate()},t.prototype.checkForReOrder=function(){this.props.block.colorSteps.sort((function(e,t){return e.step===t.step?0:e.step>t.step?1:-1})),this.props.globalState.onUpdateRequiredObservable.notifyObservers(),this.forceUpdate()},t.prototype.render=function(){var e=this,t=this.props.block;return o.createElement("div",null,o.createElement(ve,{globalState:this.props.globalState,block:this.props.block}),o.createElement(G,{title:"STEPS"},o.createElement(Z,{label:"Add new step",onClick:function(){return e.addNewStep()}}),t.colorSteps.map((function(t,n){return o.createElement(Ee,{globalState:e.props.globalState,onCheckForReOrder:function(){return e.checkForReOrder()},onUpdateStep:function(){return e.forceRebuild()},key:"step-"+n,lineIndex:n,step:t,onDelete:function(){return e.deleteStep(t)}})}))))},t}(o.Component),Te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e=this,t=this.props.globalState.nodeMaterial.getScene(),n=t.lights.map((function(e){return{label:e.name,value:e.name}}));n.splice(0,0,{label:"All",value:""});var r=this.props.block;return o.createElement("div",null,o.createElement(ve,{globalState:this.props.globalState,block:this.props.block}),o.createElement(G,{title:"PROPERTIES"},o.createElement(de,{label:"Light",defaultIfNull:0,noDirectUpdate:!0,valuesAreStrings:!0,options:n,target:r,propertyName:"name",onSelect:function(n){r.light=""===n?null:t.getLightByName(n),e.forceUpdate(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}})))},t}(o.Component),Pe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){var e=this,t=this.props.globalState.nodeMaterial.getScene(),n=t.lights.map((function(e){return{label:e.name,value:e.name}})),r=this.props.block;return o.createElement("div",null,o.createElement(ve,{globalState:this.props.globalState,block:this.props.block}),o.createElement(G,{title:"PROPERTIES"},o.createElement(de,{label:"Light",noDirectUpdate:!0,valuesAreStrings:!0,options:n,target:r,propertyName:"name",onSelect:function(n){r.light=t.getLightByName(n),e.forceUpdate(),e.props.globalState.onRebuildRequiredObservable.notifyObservers()}})))},t}(o.Component),Ne=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.forceRebuild=function(){this.props.globalState.onUpdateRequiredObservable.notifyObservers(),this.props.globalState.onRebuildRequiredObservable.notifyObservers()},t.prototype.render=function(){var e=this,t=this.props.block;return o.createElement("div",null,o.createElement(ve,{globalState:this.props.globalState,block:this.props.block}),o.createElement(G,{title:"PROPERTIES"},o.createElement(oe,{globalState:this.props.globalState,label:"From",propertyName:"sourceRange",target:t,onChange:function(){return e.forceRebuild()}}),o.createElement(oe,{globalState:this.props.globalState,label:"To",propertyName:"targetRange",target:t,onChange:function(){return e.forceRebuild()}})))},t}(o.Component),Oe=function(e){function t(t){var n=e.call(this,t)||this,r=n.textureBlock.texture;return n.state={isEmbedded:!r||"data"===r.name.substring(0,4),loadAsCubeTexture:r&&r.isCube},n}return p(t,e),Object.defineProperty(t.prototype,"textureBlock",{get:function(){return this.props.block},enumerable:!0,configurable:!0}),t.prototype.UNSAFE_componentWillUpdate=function(e,t){if(e.block!==this.props.block){var n=e.block.texture;t.isEmbedded=!n||"data"===n.name.substring(0,4),t.loadAsCubeTexture=n&&n.isCube}},t.prototype._generateRandomForCache=function(){return"xxxxxxxxxxxxxxxxxxxx".replace(/[x]/g,(function(e){return(10*Math.random()|0).toString()}))},t.prototype.updateAfterTextureLoad=function(){this.props.globalState.onUpdateRequiredObservable.notifyObservers(),this.props.globalState.onRebuildRequiredObservable.notifyObservers(),this.forceUpdate()},t.prototype.removeTexture=function(){var e=this.textureBlock.texture;e&&(e.dispose(),e=null,this.textureBlock.texture=null),this.updateAfterTextureLoad()},t.prototype._prepareTexture=function(){var e=this.textureBlock.texture;e&&e.isCube!==this.state.loadAsCubeTexture&&(e.dispose(),e=null),e||(this.state.loadAsCubeTexture?(this.textureBlock.texture=new l.CubeTexture("",this.props.globalState.nodeMaterial.getScene()),(e=this.textureBlock.texture).coordinatesMode=l.Texture.CUBIC_MODE):(this.textureBlock.texture=new l.Texture(null,this.props.globalState.nodeMaterial.getScene(),!1,this.textureBlock instanceof l.ReflectionTextureBlock),(e=this.textureBlock.texture).coordinatesMode=l.Texture.EQUIRECTANGULAR_MODE))},t.prototype.replaceTexture=function(e){var t=this;this._prepareTexture();var n=this.textureBlock.texture;l.Tools.ReadFile(e,(function(r){var o=new Blob([r],{type:"octet/stream"}),i=new FileReader;i.readAsDataURL(o),i.onloadend=function(){var r=i.result,o=void 0;e.name.toLowerCase().indexOf(".dds")>0?o=".dds":e.name.toLowerCase().indexOf(".env")>0&&(o=".env"),n.updateURL(r,o,(function(){return t.updateAfterTextureLoad()}))}}),void 0,!0)},t.prototype.replaceTextureWithUrl=function(e){var t=this;this._prepareTexture();var n=this.textureBlock.texture;if(n.isCube||this.textureBlock instanceof l.ReflectionTextureBlock){var r=void 0;e.toLowerCase().indexOf(".dds")>0?r=".dds":e.toLowerCase().indexOf(".env")>0&&(r=".env"),n.updateURL(e,r,(function(){return t.updateAfterTextureLoad()}))}else n.updateURL(e,null,(function(){return t.updateAfterTextureLoad()}))},t.prototype.render=function(){var e=this,t="",n=this.textureBlock.texture;n&&n.name&&"data"!==n.name.substring(0,4)&&(t=n.name),t=t.replace(/\?nocache=\d+/,"");var r=this.textureBlock instanceof l.ReflectionTextureBlock,i=[{label:"Cubic",value:l.Texture.CUBIC_MODE},{label:"Equirectangular",value:l.Texture.EQUIRECTANGULAR_MODE},{label:"Explicit",value:l.Texture.EXPLICIT_MODE},{label:"Fixed equirectangular",value:l.Texture.FIXED_EQUIRECTANGULAR_MODE},{label:"Fixed mirrored equirectangular",value:l.Texture.FIXED_EQUIRECTANGULAR_MIRRORED_MODE},{label:"Planar",value:l.Texture.PLANAR_MODE},{label:"Projection",value:l.Texture.PROJECTION_MODE},{label:"Skybox",value:l.Texture.SKYBOX_MODE},{label:"Spherical",value:l.Texture.SPHERICAL_MODE}];return o.createElement("div",null,o.createElement(ve,{globalState:this.props.globalState,block:this.props.block}),o.createElement(G,{title:"PROPERTIES"},o.createElement(J,{label:"Auto select UV",propertyName:"autoSelectUV",target:this.props.block,onValueChanged:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(J,{label:"Convert to gamma space",propertyName:"convertToGammaSpace",target:this.props.block,onValueChanged:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&r&&o.createElement(de,{label:"Reflection mode",options:i,target:n,propertyName:"coordinatesMode",onSelect:function(t){n.coordinatesMode=t,e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(J,{label:"Clamp U",isSelected:function(){return n.wrapU===l.Texture.CLAMP_ADDRESSMODE},onSelect:function(t){n.wrapU=t?l.Texture.CLAMP_ADDRESSMODE:l.Texture.WRAP_ADDRESSMODE,e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(J,{label:"Clamp V",isSelected:function(){return n.wrapV===l.Texture.CLAMP_ADDRESSMODE},onSelect:function(t){n.wrapV=t?l.Texture.CLAMP_ADDRESSMODE:l.Texture.WRAP_ADDRESSMODE,e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(ee,{label:"Offset U",target:n,propertyName:"uOffset",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(ee,{label:"Offset V",target:n,propertyName:"vOffset",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(ee,{label:"Scale U",target:n,propertyName:"uScale",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(ee,{label:"Scale V",target:n,propertyName:"vScale",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(ne,{label:"Rotation U",target:n,propertyName:"uAng",minimum:0,maximum:2*Math.PI,useEuler:!0,step:.1,onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(ne,{label:"Rotation V",target:n,propertyName:"vAng",minimum:0,maximum:2*Math.PI,useEuler:!0,step:.1,onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(ne,{label:"Rotation W",target:n,propertyName:"wAng",minimum:0,maximum:2*Math.PI,useEuler:!0,step:.1,onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})),o.createElement(G,{title:"SOURCE"},o.createElement(J,{label:"Embed static texture",isSelected:function(){return e.state.isEmbedded},onSelect:function(t){e.setState({isEmbedded:t}),e.textureBlock.texture=null,e.updateAfterTextureLoad()}}),r&&o.createElement(J,{label:"Load as cube texture",isSelected:function(){return e.state.loadAsCubeTexture},onSelect:function(t){return e.setState({loadAsCubeTexture:t})}}),this.state.isEmbedded&&o.createElement($,{label:"Upload",onClick:function(t){return e.replaceTexture(t)},accept:".jpg, .png, .tga, .dds, .env"}),!this.state.isEmbedded&&o.createElement(me,{label:"Link",globalState:this.props.globalState,value:t,onChange:function(t){return e.replaceTextureWithUrl(t)}}),!this.state.isEmbedded&&t&&o.createElement(Z,{label:"Refresh",onClick:function(){return e.replaceTextureWithUrl(t+"?nocache="+e._generateRandomForCache())}}),n&&o.createElement(Z,{label:"Remove",onClick:function(){return e.removeTexture()}})))},t}(o.Component),Be=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.render=function(){var e=this,t=this.props.block,n=[{label:"Cos",value:l.TrigonometryBlockOperations.Cos},{label:"Sin",value:l.TrigonometryBlockOperations.Sin},{label:"Abs",value:l.TrigonometryBlockOperations.Abs},{label:"Exp",value:l.TrigonometryBlockOperations.Exp},{label:"Exp2",value:l.TrigonometryBlockOperations.Exp2},{label:"Round",value:l.TrigonometryBlockOperations.Round},{label:"Ceiling",value:l.TrigonometryBlockOperations.Ceiling},{label:"Floor",value:l.TrigonometryBlockOperations.Floor},{label:"ArcCos",value:l.TrigonometryBlockOperations.ArcCos},{label:"ArcSin",value:l.TrigonometryBlockOperations.ArcSin},{label:"ArcTan",value:l.TrigonometryBlockOperations.ArcTan},{label:"Tan",value:l.TrigonometryBlockOperations.Tan},{label:"Log",value:l.TrigonometryBlockOperations.Log},{label:"Fract",value:l.TrigonometryBlockOperations.Fract},{label:"Sign",value:l.TrigonometryBlockOperations.Sign},{label:"Radians to degrees",value:l.TrigonometryBlockOperations.Degrees},{label:"Degrees to radians",value:l.TrigonometryBlockOperations.Radians}];return n.sort((function(e,t){return e.label.localeCompare(t.label)})),o.createElement("div",null,o.createElement(ve,{globalState:this.props.globalState,block:this.props.block}),o.createElement(G,{title:"PROPERTIES"},o.createElement(de,{label:"Operation",options:n,target:t,propertyName:"operation",onSelect:function(t){e.props.globalState.onUpdateRequiredObservable.notifyObservers(),e.props.globalState.onRebuildRequiredObservable.notifyObservers(),e.forceUpdate()}})))},t}(o.Component),Me=function(){function e(){}return e.RegisteredControls={},e}();Me.RegisteredControls.TransformBlock=xe,Me.RegisteredControls.InputBlock=we,Me.RegisteredControls.PerturbNormalBlock=ke,Me.RegisteredControls.WorleyNoise3DBlock=_e,Me.RegisteredControls.ClampBlock=Ce,Me.RegisteredControls.GradientBlock=Se,Me.RegisteredControls.LightBlock=Te,Me.RegisteredControls.LightInformationBlock=Pe,Me.RegisteredControls.RemapBlock=Ne,Me.RegisteredControls.TextureBlock=Oe,Me.RegisteredControls.ReflectionTextureBlock=Oe,Me.RegisteredControls.TrigonometryBlock=Be;var Le=function(){function e(){}return e.GetBlockFromString=function(e,t,n){switch(e){case"DesaturateBlock":return new l.DesaturateBlock("Desaturate");case"RefractBlock":return new l.RefractBlock("Refract");case"ReflectBlock":return new l.ReflectBlock("Reflect");case"DerivativeBlock":return new l.DerivativeBlock("Derivative");case"Rotate2dBlock":return new l.Rotate2dBlock("Rotate2d");case"NormalBlendBlock":return new l.NormalBlendBlock("NormalBlend");case"WorleyNoise3DBlock":return new l.WorleyNoise3DBlock("WorleyNoise3D");case"SimplexPerlin3DBlock":return new l.SimplexPerlin3DBlock("SimplexPerlin3D");case"BonesBlock":return new l.BonesBlock("Bones");case"InstancesBlock":return new l.InstancesBlock("Instances");case"MorphTargetsBlock":return new l.MorphTargetsBlock("MorphTargets");case"DiscardBlock":return new l.DiscardBlock("Discard");case"ImageProcessingBlock":return new l.ImageProcessingBlock("ImageProcessing");case"ColorMergerBlock":return new l.ColorMergerBlock("ColorMerger");case"VectorMergerBlock":return new l.VectorMergerBlock("VectorMerger");case"ColorSplitterBlock":return new l.ColorSplitterBlock("ColorSplitter");case"VectorSplitterBlock":return new l.VectorSplitterBlock("VectorSplitter");case"TextureBlock":return new l.TextureBlock("Texture");case"ReflectionTextureBlock":return new l.ReflectionTextureBlock("Reflection texture");case"LightBlock":return new l.LightBlock("Lights");case"FogBlock":return new l.FogBlock("Fog");case"VertexOutputBlock":return new l.VertexOutputBlock("VertexOutput");case"FragmentOutputBlock":return new l.FragmentOutputBlock("FragmentOutput");case"AddBlock":return new l.AddBlock("Add");case"ClampBlock":return new l.ClampBlock("Clamp");case"ScaleBlock":return new l.ScaleBlock("Scale");case"CrossBlock":return new l.CrossBlock("Cross");case"DotBlock":return new l.DotBlock("Dot");case"PowBlock":return new l.PowBlock("Pow");case"MultiplyBlock":return new l.MultiplyBlock("Multiply");case"TransformBlock":return new l.TransformBlock("Transform");case"TrigonometryBlock":return new l.TrigonometryBlock("Trigonometry");case"RemapBlock":return new l.RemapBlock("Remap");case"NormalizeBlock":return new l.NormalizeBlock("Normalize");case"FresnelBlock":return new l.FresnelBlock("Fresnel");case"LerpBlock":return new l.LerpBlock("Lerp");case"NLerpBlock":return new l.NLerpBlock("NLerp");case"DivideBlock":return new l.DivideBlock("Divide");case"SubtractBlock":return new l.SubtractBlock("Subtract");case"StepBlock":return new l.StepBlock("Step");case"SmoothStepBlock":return new l.SmoothStepBlock("Smooth step");case"OneMinusBlock":return new l.OneMinusBlock("One minus");case"ReciprocalBlock":return new l.ReciprocalBlock("Reciprocal");case"ViewDirectionBlock":return new l.ViewDirectionBlock("View direction");case"LightInformationBlock":var r=new l.LightInformationBlock("Light information");return r.light=t.lights.length?t.lights[0]:null,r;case"MaxBlock":return new l.MaxBlock("Max");case"MinBlock":return new l.MinBlock("Min");case"LengthBlock":return new l.LengthBlock("Length");case"DistanceBlock":return new l.DistanceBlock("Distance");case"NegateBlock":return new l.NegateBlock("Negate");case"PerturbNormalBlock":return new l.PerturbNormalBlock("Perturb normal");case"RandomNumberBlock":return new l.RandomNumberBlock("Random number");case"ReplaceColorBlock":return new l.ReplaceColorBlock("Replace color");case"PosterizeBlock":return new l.PosterizeBlock("Posterize");case"ArcTan2Block":return new l.ArcTan2Block("ArcTan2");case"GradientBlock":return new l.GradientBlock("Gradient");case"FrontFacingBlock":return new l.FrontFacingBlock("Front facing");case"CosBlock":var o=new l.TrigonometryBlock("Cos");return o.operation=l.TrigonometryBlockOperations.Cos,o;case"SinBlock":var i=new l.TrigonometryBlock("Sin");return i.operation=l.TrigonometryBlockOperations.Sin,i;case"AbsBlock":var a=new l.TrigonometryBlock("Abs");return a.operation=l.TrigonometryBlockOperations.Abs,a;case"SqrtBlock":var s=new l.TrigonometryBlock("Sqrt");return s.operation=l.TrigonometryBlockOperations.Sqrt,s;case"ArcCosBlock":var c=new l.TrigonometryBlock("ArcCos");return c.operation=l.TrigonometryBlockOperations.ArcCos,c;case"ArcSinBlock":var u=new l.TrigonometryBlock("ArcSin");return u.operation=l.TrigonometryBlockOperations.ArcSin,u;case"TanBlock":var p=new l.TrigonometryBlock("Tan");return p.operation=l.TrigonometryBlockOperations.Tan,p;case"ArcTanBlock":var d=new l.TrigonometryBlock("ArcTan");return d.operation=l.TrigonometryBlockOperations.ArcTan,d;case"FractBlock":var f=new l.TrigonometryBlock("Fract");return f.operation=l.TrigonometryBlockOperations.Fract,f;case"SignBlock":var h=new l.TrigonometryBlock("Sign");return h.operation=l.TrigonometryBlockOperations.Sign,h;case"LogBlock":var m=new l.TrigonometryBlock("Log");return m.operation=l.TrigonometryBlockOperations.Log,m;case"ExpBlock":var g=new l.TrigonometryBlock("Exp");return g.operation=l.TrigonometryBlockOperations.Exp,g;case"Exp2Block":var v=new l.TrigonometryBlock("Exp2");return v.operation=l.TrigonometryBlockOperations.Exp2,v;case"DegreesToRadiansBlock":var b=new l.TrigonometryBlock("Degrees to radians");return b.operation=l.TrigonometryBlockOperations.Radians,b;case"RadiansToDegreesBlock":var y=new l.TrigonometryBlock("Radians to degrees");return y.operation=l.TrigonometryBlockOperations.Degrees,y;case"RoundBlock":var w=new l.TrigonometryBlock("Round");return w.operation=l.TrigonometryBlockOperations.Round,w;case"CeilingBlock":var x=new l.TrigonometryBlock("Ceiling");return x.operation=l.TrigonometryBlockOperations.Ceiling,x;case"FloorBlock":var k=new l.TrigonometryBlock("Floor");return k.operation=l.TrigonometryBlockOperations.Floor,k;case"SawToothWaveBlock":var _=new l.WaveBlock("SawTooth wave");return _.kind=l.WaveBlockKind.SawTooth,_;case"SquareWaveBlock":var C=new l.WaveBlock("Square wave");return C.kind=l.WaveBlockKind.Square,C;case"TriangleWaveBlock":var E=new l.WaveBlock("Triangle wave");return E.kind=l.WaveBlockKind.Triangle,E;case"WorldMatrixBlock":return(H=new l.InputBlock("World")).setAsSystemValue(l.NodeMaterialSystemValues.World),H;case"WorldViewMatrixBlock":var S=new l.InputBlock("World x View");return S.setAsSystemValue(l.NodeMaterialSystemValues.WorldView),S;case"WorldViewProjectionMatrixBlock":var T=new l.InputBlock("World x View x Projection");return T.setAsSystemValue(l.NodeMaterialSystemValues.WorldViewProjection),T;case"ViewMatrixBlock":var P=new l.InputBlock("View");return P.setAsSystemValue(l.NodeMaterialSystemValues.View),P;case"ViewProjectionMatrixBlock":var N=new l.InputBlock("View x Projection");return N.setAsSystemValue(l.NodeMaterialSystemValues.ViewProjection),N;case"ProjectionMatrixBlock":var O=new l.InputBlock("Projection");return O.setAsSystemValue(l.NodeMaterialSystemValues.Projection),O;case"CameraPositionBlock":var B=new l.InputBlock("Camera position");return B.setAsSystemValue(l.NodeMaterialSystemValues.CameraPosition),B;case"FogColorBlock":var M=new l.InputBlock("Fog color");return M.setAsSystemValue(l.NodeMaterialSystemValues.FogColor),M;case"PositionBlock":var L=new l.InputBlock("position");return L.setAsAttribute("position"),L;case"UVBlock":var R=new l.InputBlock("uv");return R.setAsAttribute("uv"),R;case"ColorBlock":var I=new l.InputBlock("color");return I.setAsAttribute("color"),I;case"NormalBlock":var A=new l.InputBlock("normal");return A.setAsAttribute("normal"),A;case"TangentBlock":var j=new l.InputBlock("tangent");return j.setAsAttribute("tangent"),j;case"MatrixIndicesBlock":var D=new l.InputBlock("matricesIndices");return D.setAsAttribute("matricesIndices"),D;case"MatrixWeightsBlock":var z=new l.InputBlock("matricesWeights");return z.setAsAttribute("matricesWeights"),z;case"TimeBlock":var F=new l.InputBlock("Time",void 0,l.NodeMaterialBlockConnectionPointTypes.Float);return F.animationType=l.AnimatedInputBlockTypes.Time,F;case"DeltaTimeBlock":var U=new l.InputBlock("Delta time");return U.setAsSystemValue(l.NodeMaterialSystemValues.DeltaTime),U;case"WorldPositionBlock":var V=n.getInputBlockByPredicate((function(e){return e.isAttribute&&"position"===e.name}));V||(V=new l.InputBlock("position")).setAsAttribute("position"),(H=n.getInputBlockByPredicate((function(e){return e.isSystemValue&&e.systemValue===l.NodeMaterialSystemValues.World})))||(H=new l.InputBlock("World")).setAsSystemValue(l.NodeMaterialSystemValues.World);var W=new l.TransformBlock("World position");return V.connectTo(W),H.connectTo(W),W;case"WorldNormalBlock":var Y=n.getInputBlockByPredicate((function(e){return e.isAttribute&&"normal"===e.name}));Y||(Y=new l.InputBlock("normal")).setAsAttribute("normal"),(H=n.getInputBlockByPredicate((function(e){return e.isSystemValue&&e.systemValue===l.NodeMaterialSystemValues.World})))||(H=new l.InputBlock("World")).setAsSystemValue(l.NodeMaterialSystemValues.World);W=new l.TransformBlock("World normal");return Y.connectTo(W),H.connectTo(W),W;case"WorldTangentBlock":var H,G=n.getInputBlockByPredicate((function(e){return e.isAttribute&&"tangent"===e.name}));G||(G=new l.InputBlock("tangent")).setAsAttribute("tangent"),(H=n.getInputBlockByPredicate((function(e){return e.isSystemValue&&e.systemValue===l.NodeMaterialSystemValues.World})))||(H=new l.InputBlock("World")).setAsSystemValue(l.NodeMaterialSystemValues.World);W=new l.TransformBlock("World tangent");return G.connectTo(W),H.connectTo(W),W}return null},e.GetColorFromConnectionNodeType=function(e){var t="#880000";switch(e){case l.NodeMaterialBlockConnectionPointTypes.Float:t="#cb9e27";break;case l.NodeMaterialBlockConnectionPointTypes.Vector2:t="#16bcb1";break;case l.NodeMaterialBlockConnectionPointTypes.Vector3:case l.NodeMaterialBlockConnectionPointTypes.Color3:t="#b786cb";break;case l.NodeMaterialBlockConnectionPointTypes.Vector4:case l.NodeMaterialBlockConnectionPointTypes.Color4:t="#be5126";break;case l.NodeMaterialBlockConnectionPointTypes.Matrix:t="#591990"}return t},e.GetConnectionNodeTypeFromString=function(e){switch(e){case"Float":return l.NodeMaterialBlockConnectionPointTypes.Float;case"Vector2":return l.NodeMaterialBlockConnectionPointTypes.Vector2;case"Vector3":return l.NodeMaterialBlockConnectionPointTypes.Vector3;case"Vector4":return l.NodeMaterialBlockConnectionPointTypes.Vector4;case"Matrix":return l.NodeMaterialBlockConnectionPointTypes.Matrix;case"Color3":return l.NodeMaterialBlockConnectionPointTypes.Color3;case"Color4":return l.NodeMaterialBlockConnectionPointTypes.Color4}return l.NodeMaterialBlockConnectionPointTypes.AutoDetect},e.GetStringFromConnectionNodeType=function(e){switch(e){case l.NodeMaterialBlockConnectionPointTypes.Float:return"Float";case l.NodeMaterialBlockConnectionPointTypes.Vector2:return"Vector2";case l.NodeMaterialBlockConnectionPointTypes.Vector3:return"Vector3";case l.NodeMaterialBlockConnectionPointTypes.Vector4:return"Vector4";case l.NodeMaterialBlockConnectionPointTypes.Color3:return"Color3";case l.NodeMaterialBlockConnectionPointTypes.Color4:return"Color4";case l.NodeMaterialBlockConnectionPointTypes.Matrix:return"Matrix"}return""},e}(),Re=function(){function e(){}return e.prototype.getHeaderClass=function(e){var t=e;return t.isConstant?"constant":t.visibleInInspector?"inspector":""},e.prototype.shouldDisplayPortLabels=function(e){return!1},e.prototype.getHeaderText=function(e){var t=e,n=t.name+" ("+Q.GetBaseType(t.output.type)+")";return t.isAttribute&&(n=Q.GetBaseType(t.output.type)),n},e.prototype.getBackgroundColor=function(e){var t="",n=e;switch(n.type){case l.NodeMaterialBlockConnectionPointTypes.Color3:case l.NodeMaterialBlockConnectionPointTypes.Color4:if(n.value){t=n.value.toHexString();break}default:t=Le.GetColorFromConnectionNodeType(n.type)}return t},e.prototype.updatePreviewContent=function(e,t){var n="",r=e;if(r.isAttribute)n="mesh."+r.name;else if(r.isSystemValue)switch(r.systemValue){case l.NodeMaterialSystemValues.World:n="World";break;case l.NodeMaterialSystemValues.WorldView:n="World x View";break;case l.NodeMaterialSystemValues.WorldViewProjection:n="World x View x Projection";break;case l.NodeMaterialSystemValues.View:n="View";break;case l.NodeMaterialSystemValues.ViewProjection:n="View x Projection";break;case l.NodeMaterialSystemValues.Projection:n="Projection";break;case l.NodeMaterialSystemValues.CameraPosition:n="Camera position";break;case l.NodeMaterialSystemValues.FogColor:n="Fog color";break;case l.NodeMaterialSystemValues.DeltaTime:n="Delta time"}else switch(r.type){case l.NodeMaterialBlockConnectionPointTypes.Float:n=r.animationType!==l.AnimatedInputBlockTypes.None?l.AnimatedInputBlockTypes[r.animationType]:r.value.toFixed(2);break;case l.NodeMaterialBlockConnectionPointTypes.Vector2:var o=r.value;n="("+o.x.toFixed(2)+", "+o.y.toFixed(2)+")";break;case l.NodeMaterialBlockConnectionPointTypes.Vector3:var i=r.value;n="("+i.x.toFixed(2)+", "+i.y.toFixed(2)+", "+i.z.toFixed(2)+")";break;case l.NodeMaterialBlockConnectionPointTypes.Vector4:var a=r.value;n="("+a.x.toFixed(2)+", "+a.y.toFixed(2)+", "+a.z.toFixed(2)+", "+a.w.toFixed(2)+")"}t.innerHTML=n,t.classList.add("input-block")},e}(),Ie=function(){function e(){}return e.prototype.getHeaderClass=function(e){return""},e.prototype.shouldDisplayPortLabels=function(e){return!0},e.prototype.getHeaderText=function(e){return e.name},e.prototype.getBackgroundColor=function(e){return"rgb(106, 44, 131)"},e.prototype.updatePreviewContent=function(e,t){t.classList.add("output-block")},e}(),Ae=function(){function e(){}return e.prototype.getHeaderClass=function(e){return""},e.prototype.shouldDisplayPortLabels=function(e){return!1},e.prototype.getHeaderText=function(e){return e.name},e.prototype.getBackgroundColor=function(e){return"#4086BB"},e.prototype.updatePreviewContent=function(e,t){var n=e;t.classList.add("clamp-block"),t.innerHTML="["+n.minimum+", "+n.maximum+"]"},e}(),je=function(){function e(){}return e.prototype.getHeaderClass=function(e){return""},e.prototype.shouldDisplayPortLabels=function(e){return!1},e.prototype.getHeaderText=function(e){return e.name},e.prototype.getBackgroundColor=function(e){var t=e.colorSteps.map((function(e){return"rgb("+255*e.color.r+", "+255*e.color.g+", "+255*e.color.b+") "+100*e.step+"%"}));return t.length?"linear-gradient(90deg, "+t.join(", ")+")":"black"},e.prototype.updatePreviewContent=function(e,t){t.classList.add("gradient-block")},e}(),De=function(){function e(){}return e.prototype.getHeaderClass=function(e){return""},e.prototype.shouldDisplayPortLabels=function(e){return!0},e.prototype.getHeaderText=function(e){return e.name},e.prototype.getBackgroundColor=function(e){return"#4086BB"},e.prototype._extractInputValue=function(e){var t=e.connectedPoint.ownerBlock;if(t.isInput){var n=t;if(n.isUniform&&!n.isSystemValue)return n.value}return"?"},e.prototype.updatePreviewContent=function(e,t){var n=e,r=n.sourceMin.isConnected?this._extractInputValue(n.sourceMin):n.sourceRange.x,o=n.sourceMax.isConnected?this._extractInputValue(n.sourceMax):n.sourceRange.y,i=n.targetMin.isConnected?this._extractInputValue(n.targetMin):n.targetRange.x,a=n.targetMax.isConnected?this._extractInputValue(n.targetMax):n.targetRange.y;t.classList.add("remap-block"),t.innerHTML="["+r+", "+o+"] -> ["+i+", "+a+"]"},e}(),ze=function(){function e(){}return e.prototype.getHeaderClass=function(e){return""},e.prototype.shouldDisplayPortLabels=function(e){return!1},e.prototype.getHeaderText=function(e){return e.name},e.prototype.getBackgroundColor=function(e){return"#405C86"},e.prototype.updatePreviewContent=function(e,t){var n=e;t.classList.add("trigonometry-block"),t.innerHTML=l.TrigonometryBlockOperations[n.operation]},e}(),Fe=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 p(t,e),t.prototype.shouldComponentUpdate=function(e,t){return!0},t.prototype.componentDidMount=function(){this.updatePreview()},t.prototype.componentDidUpdate=function(){this.updatePreview()},t.prototype.updatePreview=function(){t.UpdatePreview(this.refs.canvas,this.props.texture,this.props.width,this.state,void 0,this.props.globalState)},t.UpdatePreview=function(e,n,r,o,i,a){!n.isReady()&&n._texture&&n._texture.onLoadedObservable.addOnce((function(){t.UpdatePreview(e,n,r,o,i,a)}));var s,c=n.getScene(),u=c.getEngine(),p=n.getSize(),d=p.width/p.height,f=r/d|1;if(n.isCube){var h=new l.PassCubePostProcess("pass",1,null,l.Texture.NEAREST_SAMPLINGMODE,u,!1,l.Constants.TEXTURETYPE_UNSIGNED_INT);h.face=o.face,s=h}else s=new l.PassPostProcess("pass",1,null,l.Texture.NEAREST_SAMPLINGMODE,u,!1,l.Constants.TEXTURETYPE_UNSIGNED_INT);if(!s.getEffect().isReady())return s.dispose(),void setTimeout((function(){return t.UpdatePreview(e,n,r,o,i,a)}),250);a&&(a.blockMutationUpdates=!0);var m=new l.RenderTargetTexture("temp",{width:r,height:f},c,!1);s.onApply=function(e){e.setTexture("textureSampler",n)};var g=m.getInternalTexture();if(g){c.postProcessManager.directRender([s],g);var v=4*r,b=f/2,y=u.readPixels(0,0,r,f);if(!(n.isCube||o.displayRed&&o.displayGreen&&o.displayBlue))for(var w=0;w<r*f*4;w+=4)if(o.displayRed||(y[w]=0),o.displayGreen||(y[w+1]=0),o.displayBlue||(y[w+2]=0),o.displayAlpha){var x=y[w+2];y[w]=x,y[w+1]=x,y[w+2]=x,y[w+2]=0}if(n.invertY||n.isCube)for(w=0;w<b;w++)for(var k=0;k<v;k++){var _=k+w*v,C=k+(f-w-1)*v,E=y[_];y[_]=y[C],y[C]=E}e.width=r,e.height=f;var S=e.getContext("2d");if(S){var T=S.createImageData(r,f);T.data.set(y),S.putImageData(T,0,0),i&&i()}u.unBindFramebuffer(g)}m.dispose(),s.dispose(),e.style.height=f+"px",a&&(a.blockMutationUpdates=!1)},t.prototype.render=function(){var e=this,t=this.props.texture;return o.createElement("div",{className:"textureLine"},!this.props.hideChannelSelect&&t.isCube&&o.createElement("div",{className:"control3D"},o.createElement("button",{className:0===this.state.face?"px command selected":"px command",onClick:function(){return e.setState({face:0})}},"PX"),o.createElement("button",{className:1===this.state.face?"nx command selected":"nx command",onClick:function(){return e.setState({face:1})}},"NX"),o.createElement("button",{className:2===this.state.face?"py command selected":"py command",onClick:function(){return e.setState({face:2})}},"PY"),o.createElement("button",{className:3===this.state.face?"ny command selected":"ny command",onClick:function(){return e.setState({face:3})}},"NY"),o.createElement("button",{className:4===this.state.face?"pz command selected":"pz command",onClick:function(){return e.setState({face:4})}},"PZ"),o.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&&o.createElement("div",{className:"control"},o.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"),o.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"),o.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"),o.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"),o.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")),o.createElement("canvas",{ref:"canvas",className:"preview"}))},t}(o.Component),Ue=function(){function e(){}return e.prototype.getHeaderClass=function(e){return""},e.prototype.shouldDisplayPortLabels=function(e){return!0},e.prototype.getHeaderText=function(e){return e.name},e.prototype.getBackgroundColor=function(e){return"#323232"},e.prototype.updatePreviewContent=function(e,t){var n=this,r=e;this._previewCanvas||(t.classList.add("texture-block"),e instanceof l.TextureBlock&&t.classList.add("regular-texture-block"),this._previewCanvas=t.ownerDocument.createElement("canvas"),this._previewImage=t.ownerDocument.createElement("img"),t.appendChild(this._previewImage),this._previewImage.classList.add("empty")),r.texture?Fe.UpdatePreview(this._previewCanvas,r.texture,140,{face:0,displayRed:!0,displayAlpha:!0,displayBlue:!0,displayGreen:!0},(function(){n._previewImage.src=n._previewCanvas.toDataURL("image/png"),n._previewImage.classList.remove("empty")})):this._previewImage.classList.add("empty")},e}(),Ve=function(){function e(){}return e.prototype.getHeaderClass=function(e){return""},e.prototype.shouldDisplayPortLabels=function(e){return!0},e.prototype.getHeaderText=function(e){return e.name},e.prototype.getBackgroundColor=function(e){return"#540b0b"},e.prototype.updatePreviewContent=function(e,t){t.classList.add("discard-block")},e}(),We=function(){function e(){}return e.RegisteredControls={},e}();We.RegisteredControls.InputBlock=Re,We.RegisteredControls.VertexOutputBlock=Ie,We.RegisteredControls.FragmentOutputBlock=Ie,We.RegisteredControls.ClampBlock=Ae,We.RegisteredControls.GradientBlock=je,We.RegisteredControls.RemapBlock=De,We.RegisteredControls.TrigonometryBlock=ze,We.RegisteredControls.TextureBlock=Ue,We.RegisteredControls.ReflectionTextureBlock=Ue,We.RegisteredControls.DiscardBlock=Ve;var Ye=function(){function e(e,t,n,r){var o=this;this.connectionPoint=t,this.node=n,this.delegatedPort=null,this._element=e.ownerDocument.createElement("div"),this._element.classList.add("port"),e.appendChild(this._element),this._globalState=r,this._img=e.ownerDocument.createElement("img"),this._element.appendChild(this._img),this._element.port=this,this._element.ondragstart=function(){return!1},this._onCandidateLinkMovedObserver=r.onCandidateLinkMoved.add((function(e){var t=o._element.getBoundingClientRect();!e||t.left>e.x||t.right<e.x||t.top>e.y||t.bottom<e.y?o._element.classList.remove("selected"):(o._element.classList.add("selected"),o._globalState.onCandidatePortSelected.notifyObservers(o))})),this.refresh()}return Object.defineProperty(e.prototype,"element",{get:function(){return this.delegatedPort?this.delegatedPort.element:this._element},enumerable:!0,configurable:!0}),e.prototype.refresh=function(){switch(this._element.style.background=Le.GetColorFromConnectionNodeType(this.connectionPoint.type),this.connectionPoint.type){case l.NodeMaterialBlockConnectionPointTypes.Float:case l.NodeMaterialBlockConnectionPointTypes.Int:this._img.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IxPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48Y2lyY2xlIGNsYXNzPSJjbHMtMSIgY3g9IjEwLjUiIGN5PSIxMC41IiByPSI3LjUiLz48L2c+PC9zdmc+";break;case l.NodeMaterialBlockConnectionPointTypes.Vector2:this._img.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IyPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zLDEwLjVhNy41Miw3LjUyLDAsMCwwLDYuNSw3LjQzVjMuMDdBNy41Miw3LjUyLDAsMCwwLDMsMTAuNVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMS41LDMuMDdWMTcuOTNhNy41LDcuNSwwLDAsMCwwLTE0Ljg2WiIvPjwvZz48L3N2Zz4=";break;case l.NodeMaterialBlockConnectionPointTypes.Vector3:case l.NodeMaterialBlockConnectionPointTypes.Color3:this._img.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IzPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zLjU3LDEzLjMxLDkuNSw5Ljg5VjNBNy41MSw3LjUxLDAsMCwwLDMsMTAuNDYsNy4zMiw3LjMyLDAsMCwwLDMuNTcsMTMuMzFaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTYuNDMsMTUsMTAuNSwxMS42Miw0LjU3LDE1YTcuNDgsNy40OCwwLDAsMCwxMS44NiwwWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE4LDEwLjQ2QTcuNTEsNy41MSwwLDAsMCwxMS41LDNWOS44OWw1LjkzLDMuNDJBNy4zMiw3LjMyLDAsMCwwLDE4LDEwLjQ2WiIvPjwvZz48L3N2Zz4=";break;case l.NodeMaterialBlockConnectionPointTypes.Vector4:case l.NodeMaterialBlockConnectionPointTypes.Color4:this._img.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3I0PC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xMS41LDExLjV2Ni40M2E3LjUxLDcuNTEsMCwwLDAsNi40My02LjQzWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMy4wN1Y5LjVoNi40M0E3LjUxLDcuNTEsMCwwLDAsMTEuNSwzLjA3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTkuNSwxNy45M1YxMS41SDMuMDdBNy41MSw3LjUxLDAsMCwwLDkuNSwxNy45M1oiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik05LjUsMy4wN0E3LjUxLDcuNTEsMCwwLDAsMy4wNyw5LjVIOS41WiIvPjwvZz48L3N2Zz4=";break;case l.NodeMaterialBlockConnectionPointTypes.Matrix:this._img.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5NYXRyaXg8L3RpdGxlPjxnIGlkPSJMYXllcl81IiBkYXRhLW5hbWU9IkxheWVyIDUiPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsNi4xMVY5LjVoMy4zOUE0LjUxLDQuNTEsMCwwLDAsMTEuNSw2LjExWiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMTQuODlhNC41MSw0LjUxLDAsMCwwLDMuMzktMy4zOUgxMS41WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTExLjUsMy4wN3YyQTUuNTQsNS41NCwwLDAsMSwxNS45Miw5LjVoMkE3LjUxLDcuNTEsMCwwLDAsMTEuNSwzLjA3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE1LjkyLDExLjVhNS41NCw1LjU0LDAsMCwxLTQuNDIsNC40MnYyYTcuNTEsNy41MSwwLDAsMCw2LjQzLTYuNDNaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNS4wOCwxMS41aC0yQTcuNTEsNy41MSwwLDAsMCw5LjUsMTcuOTN2LTJBNS41NCw1LjU0LDAsMCwxLDUuMDgsMTEuNVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik05LjUsMy4wN0E3LjUxLDcuNTEsMCwwLDAsMy4wNyw5LjVoMkE1LjU0LDUuNTQsMCwwLDEsOS41LDUuMDhaIi8+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNOS41LDExLjVINi4xMUE0LjUxLDQuNTEsMCwwLDAsOS41LDE0Ljg5WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTkuNSw2LjExQTQuNTEsNC41MSwwLDAsMCw2LjExLDkuNUg5LjVaIi8+PC9nPjwvc3ZnPg=="}},e.prototype.dispose=function(){this._globalState.onCandidateLinkMoved.remove(this._onCandidateLinkMovedObserver)},e.CreatePortElement=function(t,n,r,o,i){var a=r.ownerDocument.createElement("div"),l=t.ownerBlock;if(a.classList.add("portLine"),r.appendChild(a),!o||o.shouldDisplayPortLabels(l)){var s=r.ownerDocument.createElement("div");s.classList.add("port-label"),s.innerHTML=t.name,a.appendChild(s)}return new e(a,t,n,i)},e}(),He=function(){function e(e,t){var n=this;this.block=e,this._inputPorts=[],this._outputPorts=[],this._links=[],this._x=0,this._y=0,this._gridAlignedX=0,this._gridAlignedY=0,this._mouseStartPointX=null,this._mouseStartPointY=null,this._displayManager=null,this._isVisible=!0,this._globalState=t,this._onSelectionChangedObserver=this._globalState.onSelectionChangedObservable.add((function(e){e===n?n._visual.classList.add("selected"):setTimeout((function(){-1===n._ownerCanvas.selectedNodes.indexOf(n)&&n._visual.classList.remove("selected")}))})),this._onUpdateRequiredObserver=this._globalState.onUpdateRequiredObservable.add((function(){n.refresh()})),this._onSelectionBoxMovedObserver=this._globalState.onSelectionBoxMoved.add((function(e){var t=n._visual.getBoundingClientRect(),r=!(e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom);n.isSelected=r})),this._onFrameCreatedObserver=this._globalState.onFrameCreated.add((function(e){n._ownerCanvas.frames.some((function(e){return-1!==e.nodes.indexOf(n)}))||n.isOverlappingFrame(e)&&e.nodes.push(n)}))}return Object.defineProperty(e.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,e?this._visual.classList.remove("hidden"):this._visual.classList.add("hidden");for(var t=0,n=this._links;t<n.length;t++){n[t].isVisible=e}this._refreshLinks()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputPorts",{get:function(){return this._outputPorts},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputPorts",{get:function(){return this._inputPorts},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"links",{get:function(){return this._links},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridAlignedX",{get:function(){return this._gridAlignedX},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridAlignedY",{get:function(){return this._gridAlignedY},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this._gridAlignedX=this._ownerCanvas.getGridPosition(e),this._visual.style.left=this._gridAlignedX+"px",this._refreshLinks(),this._refreshFrames())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this._gridAlignedY=this._ownerCanvas.getGridPosition(e),this._visual.style.top=this._gridAlignedY+"px",this._refreshLinks(),this._refreshFrames())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._visual.clientWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._visual.clientHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.block.uniqueId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.block.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this._isSelected},set:function(e){if(this._isSelected!==e)if(this._isSelected=e,e)this._globalState.onSelectionChangedObservable.notifyObservers(this);else{this._visual.classList.remove("selected");var t=this._ownerCanvas.selectedNodes.indexOf(this);t>-1&&this._ownerCanvas.selectedNodes.splice(t,1)}},enumerable:!0,configurable:!0}),e.prototype.isOverlappingFrame=function(e){var t=this._visual.getBoundingClientRect(),n=e.element.getBoundingClientRect();return!(n.right<t.left||n.left>t.right||n.bottom<t.top||n.top>t.bottom)},e.prototype.getPortForConnectionPoint=function(e){for(var t=0,n=this._inputPorts;t<n.length;t++){if((i=n[t]).connectionPoint===e)return i}for(var r=0,o=this._outputPorts;r<o.length;r++){var i;if((i=o[r]).connectionPoint===e)return i}return null},e.prototype.getLinksForConnectionPoint=function(e){return this._links.filter((function(t){return t.portA.connectionPoint===e||t.portB.connectionPoint===e}))},e.prototype._refreshFrames=function(){if(!this._ownerCanvas._frameIsMoving)for(var e=0,t=this._ownerCanvas.frames;e<t.length;e++){t[e].syncNode(this)}},e.prototype._refreshLinks=function(){for(var e=0,t=this._links;e<t.length;e++){t[e].update()}},e.prototype.refresh=function(){if(this._displayManager){this._header.innerHTML=this._displayManager.getHeaderText(this.block),this._displayManager.updatePreviewContent(this.block,this._content),this._visual.style.background=this._displayManager.getBackgroundColor(this.block);var e=this._displayManager.getHeaderClass(this.block);this._header.classList.value="header",e&&this._header.classList.add(e)}else this._header.innerHTML=this.block.name;for(var t=0,n=this._inputPorts;t<n.length;t++){n[t].refresh()}for(var r=0,o=this._outputPorts;r<o.length;r++){o[r].refresh()}this._comments.innerHTML=this.block.comments||"",this._comments.title=this.block.comments||""},e.prototype._onDown=function(e){if(!e.srcElement||"IMG"!==e.srcElement.nodeName){-1===this._ownerCanvas.selectedNodes.indexOf(this)?this._globalState.onSelectionChangedObservable.notifyObservers(this):e.ctrlKey&&(this.isSelected=!1),e.stopPropagation();for(var t=0,n=this._ownerCanvas.selectedNodes;t<n.length;t++){n[t].cleanAccumulation()}this._mouseStartPointX=e.clientX,this._mouseStartPointY=e.clientY,this._visual.setPointerCapture(e.pointerId)}},e.prototype.cleanAccumulation=function(e){void 0===e&&(e=!1),this.x=this._ownerCanvas.getGridPosition(this.x,e),this.y=this._ownerCanvas.getGridPosition(this.y,e)},e.prototype._onUp=function(e){e.stopPropagation();for(var t=0,n=this._ownerCanvas.selectedNodes;t<n.length;t++){n[t].cleanAccumulation()}this._mouseStartPointX=null,this._mouseStartPointY=null,this._visual.releasePointerCapture(e.pointerId)},e.prototype._onMove=function(e){if(null!==this._mouseStartPointX&&null!==this._mouseStartPointY&&!e.ctrlKey){for(var t=(e.clientX-this._mouseStartPointX)/this._ownerCanvas.zoom,n=(e.clientY-this._mouseStartPointY)/this._ownerCanvas.zoom,r=0,o=this._ownerCanvas.selectedNodes;r<o.length;r++){var i=o[r];i.x+=t,i.y+=n}this._mouseStartPointX=e.clientX,this._mouseStartPointY=e.clientY,e.stopPropagation()}},e.prototype.renderProperties=function(){var e=Me.RegisteredControls[this.block.getClassName()];return e||(e=ve),o.createElement(e,{globalState:this._globalState,block:this.block})},e.prototype.appendVisual=function(e,t){var n=this;this._ownerCanvas=t;var r=We.RegisteredControls[this.block.getClassName()];r&&(this._displayManager=new r),this._visual=e.ownerDocument.createElement("div"),this._visual.classList.add("visual"),this._visual.addEventListener("pointerdown",(function(e){return n._onDown(e)})),this._visual.addEventListener("pointerup",(function(e){return n._onUp(e)})),this._visual.addEventListener("pointermove",(function(e){return n._onMove(e)})),this._header=e.ownerDocument.createElement("div"),this._header.classList.add("header"),this._visual.appendChild(this._header),this._connections=e.ownerDocument.createElement("div"),this._connections.classList.add("connections"),this._visual.appendChild(this._connections),this._inputsContainer=e.ownerDocument.createElement("div"),this._inputsContainer.classList.add("inputsContainer"),this._connections.appendChild(this._inputsContainer),this._outputsContainer=e.ownerDocument.createElement("div"),this._outputsContainer.classList.add("outputsContainer"),this._connections.appendChild(this._outputsContainer),this._content=e.ownerDocument.createElement("div"),this._content.classList.add("content"),this._visual.appendChild(this._content);var o=e.ownerDocument.createElement("div");o.classList.add("selection-border"),this._visual.appendChild(o),e.appendChild(this._visual),this._comments=e.ownerDocument.createElement("div"),this._comments.classList.add("comments"),this._visual.appendChild(this._comments);for(var i=0,a=this.block.inputs;i<a.length;i++){var l=a[i];this._inputPorts.push(Ye.CreatePortElement(l,this,this._inputsContainer,this._displayManager,this._globalState))}for(var s=0,c=this.block.outputs;s<c.length;s++){var u=c[s];this._outputPorts.push(Ye.CreatePortElement(u,this,this._outputsContainer,this._displayManager,this._globalState))}this.refresh()},e.prototype.dispose=function(){this._onSelectionChangedObserver&&this._globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver),this._onUpdateRequiredObserver&&this._globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver),this._onSelectionBoxMovedObserver&&this._globalState.onSelectionBoxMoved.remove(this._onSelectionBoxMovedObserver),this._visual.parentElement&&this._visual.parentElement.removeChild(this._visual),this._onFrameCreatedObserver&&this._globalState.onFrameCreated.remove(this._onFrameCreatedObserver);for(var e=0,t=this._inputPorts;e<t.length;e++){t[e].dispose()}for(var n=0,r=this._outputPorts;n<r.length;n++){r[n].dispose()}for(var o=0,i=this._links.slice(0);o<i.length;o++){i[o].dispose()}this.block.dispose()},e}(),Ge=function(){function e(t,n,r){var o=this;void 0===r&&(r=!1),this.CollapsedWidth=200,this._x=0,this._y=0,this._gridAlignedX=0,this._gridAlignedY=0,this._nodes=[],this._mouseStartPointX=null,this._mouseStartPointY=null,this._isCollapsed=!1,this._ports=[],this._controlledPorts=[],this.onExpandStateChanged=new l.Observable,this.CloseSVG='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><g id="Layer_2" data-name="Layer 2"><path d="M16,15l5.85,5.84-1,1L15,15.93,9.15,21.78l-1-1L14,15,8.19,9.12l1-1L15,14l5.84-5.84,1,1Z"/></g></svg>',this.ExpandSVG='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><g id="Layer_2" data-name="Layer 2"><path d="M22.31,7.69V22.31H7.69V7.69ZM21.19,8.81H8.81V21.19H21.19Zm-6.75,6.75H11.06V14.44h3.38V11.06h1.12v3.38h3.38v1.12H15.56v3.38H14.44Z"/></g></svg>',this.CollapseSVG='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"><g id="Layer_2" data-name="Layer 2"><path d="M22.31,7.69V22.31H7.69V7.69ZM21.19,8.81H8.81V21.19H21.19Zm-2.25,6.75H11.06V14.44h7.88Z"/></g></svg>',this._id=e._FrameCounter++,this._ownerCanvas=n;var i=n.frameContainer;this.element=i.ownerDocument.createElement("div"),this.element.classList.add("frame-box"),i.appendChild(this.element),this._headerElement=i.ownerDocument.createElement("div"),this._headerElement.classList.add("frame-box-header"),this._headerElement.addEventListener("dblclick",(function(){o.isCollapsed=!o.isCollapsed})),this.element.appendChild(this._headerElement),this._borderElement=i.ownerDocument.createElement("div"),this._borderElement.classList.add("frame-box-border"),this.element.appendChild(this._borderElement),this._headerTextElement=i.ownerDocument.createElement("div"),this._headerTextElement.classList.add("frame-box-header-title"),this._headerElement.appendChild(this._headerTextElement),this._headerCollapseElement=i.ownerDocument.createElement("div"),this._headerCollapseElement.classList.add("frame-box-header-collapse"),this._headerCollapseElement.classList.add("frame-box-header-button"),this._headerCollapseElement.title="Collapse",this._headerCollapseElement.ondragstart=function(){return!1},this._headerCollapseElement.addEventListener("pointerdown",(function(e){o._headerCollapseElement.classList.add("down"),e.stopPropagation()})),this._headerCollapseElement.addEventListener("pointerup",(function(e){e.stopPropagation(),o._headerCollapseElement.classList.remove("down"),o.isCollapsed=!o.isCollapsed})),this._headerCollapseElement.innerHTML=this.CollapseSVG,this._headerElement.appendChild(this._headerCollapseElement),this._headerCloseElement=i.ownerDocument.createElement("div"),this._headerCloseElement.classList.add("frame-box-header-close"),this._headerCloseElement.classList.add("frame-box-header-button"),this._headerCloseElement.title="Close",this._headerCloseElement.ondragstart=function(){return!1},this._headerCloseElement.addEventListener("pointerdown",(function(e){e.stopPropagation()})),this._headerCloseElement.addEventListener("pointerup",(function(e){e.stopPropagation(),o.dispose()})),this._headerCloseElement.innerHTML=this.CloseSVG,this._headerElement.appendChild(this._headerCloseElement),this._portContainer=i.ownerDocument.createElement("div"),this._portContainer.classList.add("port-container"),this.element.appendChild(this._portContainer),this._outputPortContainer=i.ownerDocument.createElement("div"),this._outputPortContainer.classList.add("outputsContainer"),this._portContainer.appendChild(this._outputPortContainer),this._inputPortContainer=i.ownerDocument.createElement("div"),this._inputPortContainer.classList.add("inputsContainer"),this._portContainer.appendChild(this._inputPortContainer),this.name="Frame",this.color=l.Color3.FromInts(72,72,72),t&&(this.x=parseFloat(t.style.left.replace("px","")),this.y=parseFloat(t.style.top.replace("px","")),this.width=parseFloat(t.style.width.replace("px","")),this.height=parseFloat(t.style.height.replace("px","")),this.cleanAccumulation()),this._headerTextElement.addEventListener("pointerdown",(function(e){return o._onDown(e)})),this._headerTextElement.addEventListener("pointerup",(function(e){return o._onUp(e)})),this._headerTextElement.addEventListener("pointermove",(function(e){return o._onMove(e)})),this._onSelectionChangedObserver=n.globalState.onSelectionChangedObservable.add((function(e){e===o?o.element.classList.add("selected"):o.element.classList.remove("selected")})),this._commentsElement=document.createElement("div"),this._commentsElement.className="frame-comments",this._commentsElement.style.color="white",this._commentsElement.style.fontSize="16px",this.element.appendChild(this._commentsElement),r||this.refresh()}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isCollapsed",{get:function(){return this._isCollapsed},set:function(e){if(this._isCollapsed!==e){if(this._isCollapsed=e,this._ownerCanvas._frameIsMoving=!0,e){this.element.classList.add("collapsed"),this._moveFrame((this.width-this.CollapsedWidth)/2,0);for(var t=0,n=this._nodes;t<n.length;t++){(v=n[t]).isVisible=!1;for(var r=0,o=v.outputPorts;r<o.length;r++){if((p=o[r]).connectionPoint.hasEndpoints)for(var i=!1,a=0,l=v.links;a<l.length;a++){if((h=l[a]).portA===p&&-1===this.nodes.indexOf(h.nodeB)){var s=void 0;i?s=this._ports.filter((function(e){return e.connectionPoint===p.connectionPoint}))[0]:(i=!0,s=Ye.CreatePortElement(p.connectionPoint,h.nodeB,this._outputPortContainer,null,this._ownerCanvas.globalState),this._ports.push(s)),p.delegatedPort=s,this._controlledPorts.push(p),h.isVisible=!0}}else{s=Ye.CreatePortElement(p.connectionPoint,v,this._outputPortContainer,null,this._ownerCanvas.globalState);this._ports.push(s),p.delegatedPort=s,this._controlledPorts.push(p)}}for(var c=0,u=v.inputPorts;c<u.length;c++){var p;if((p=u[c]).connectionPoint.isConnected)for(var d=0,f=v.links;d<f.length;d++){var h;(h=f[d]).portB===p&&-1===this.nodes.indexOf(h.nodeA)&&(this._createInputPort(p,v),h.isVisible=!0)}else this._createInputPort(p,v)}}}else{this.element.classList.remove("collapsed"),this._outputPortContainer.innerHTML="",this._inputPortContainer.innerHTML="",this._ports.forEach((function(e){e.dispose()})),this._controlledPorts.forEach((function(e){e.delegatedPort=null,e.refresh()})),this._ports=[],this._controlledPorts=[];for(var m=0,g=this._nodes;m<g.length;m++){var v;(v=g[m]).isVisible=!0}this._moveFrame(-(this.width-this.CollapsedWidth)/2,0)}this.cleanAccumulation(),this._ownerCanvas._frameIsMoving=!1,this._isCollapsed?(this._headerCollapseElement.innerHTML=this.ExpandSVG,this._headerCollapseElement.title="Expand"):(this._headerCollapseElement.innerHTML=this.CollapseSVG,this._headerCollapseElement.title="Collapse"),this.onExpandStateChanged.notifyObservers(this)}},enumerable:!0,configurable:!0}),e.prototype._createInputPort=function(e,t){var n=Ye.CreatePortElement(e.connectionPoint,t,this._inputPortContainer,null,this._ownerCanvas.globalState);this._ports.push(n),e.delegatedPort=n,this._controlledPorts.push(e)},Object.defineProperty(e.prototype,"nodes",{get:function(){return this._nodes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e,this._headerTextElement.innerHTML=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e,this._headerElement.style.background="rgba("+255*e.r+", "+255*e.g+", "+255*e.b+", 1)",this._headerElement.style.borderColor="rgba("+255*e.r+", "+255*e.g+", "+255*e.b+", 1)",this.element.style.background="rgba("+255*e.r+", "+255*e.g+", "+255*e.b+", 0.7)"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this._gridAlignedX=this._ownerCanvas.getGridPosition(e),this.element.style.left=this._gridAlignedX+"px")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this._gridAlignedY=this._ownerCanvas.getGridPosition(e),this.element.style.top=this._gridAlignedY+"px")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(e){if(this._width!==e){this._width=e;var t=this._ownerCanvas.getGridPositionCeil(e+this._gridAlignedX);this.element.style.width=t-this._gridAlignedX+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(e){if(this._height!==e){this._height=e;var t=this._ownerCanvas.getGridPositionCeil(e+this._gridAlignedY);this.element.style.height=t-this._gridAlignedY+"px"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"comments",{get:function(){return this._comments},set:function(e){e.length>0&&(this.element.style.gridTemplateRows="40px 40px calc(100% - 80px)",this._borderElement.style.gridRow="1 / span 3",this._portContainer.style.gridRow="3",this._commentsElement.style.display="grid",this._commentsElement.style.gridRow="2",this._commentsElement.style.gridColumn="1",this._commentsElement.style.paddingLeft="10px",this._commentsElement.style.fontStyle="italic"),this._comments=e,this._commentsElement.innerText=e},enumerable:!0,configurable:!0}),e.prototype.refresh=function(){this._nodes=[],this._ownerCanvas.globalState.onFrameCreated.notifyObservers(this)},e.prototype.addNode=function(e){-1===this.nodes.indexOf(e)&&this.nodes.push(e)},e.prototype.removeNode=function(e){var t=this.nodes.indexOf(e);t>-1&&this.nodes.splice(t,1)},e.prototype.syncNode=function(e){this.isCollapsed||(e.isOverlappingFrame(this)?this.addNode(e):this.removeNode(e))},e.prototype.cleanAccumulation=function(){for(var e=0,t=this._nodes;e<t.length;e++){t[e].cleanAccumulation()}this.x=this._ownerCanvas.getGridPosition(this.x),this.y=this._ownerCanvas.getGridPosition(this.y)},e.prototype._onDown=function(e){e.stopPropagation(),this._mouseStartPointX=e.clientX,this._mouseStartPointY=e.clientY,this._headerTextElement.setPointerCapture(e.pointerId),this._ownerCanvas.globalState.onSelectionChangedObservable.notifyObservers(this),this._ownerCanvas._frameIsMoving=!0,this.move(this._ownerCanvas.getGridPosition(this.x),this._ownerCanvas.getGridPosition(this.y))},e.prototype.move=function(e,t,n){void 0===n&&(n=!0);var r=this.x,o=this.y;this.x=e,this.y=t;for(var i=0,a=this._nodes;i<a.length;i++){var l=a[i];l.x+=this.x-r,l.y+=this.y-o,n&&l.cleanAccumulation(!0)}},e.prototype._onUp=function(e){e.stopPropagation(),this.cleanAccumulation(),this._mouseStartPointX=null,this._mouseStartPointY=null,this._headerTextElement.releasePointerCapture(e.pointerId),this._ownerCanvas._frameIsMoving=!1},e.prototype._moveFrame=function(e,t){this.x+=e,this.y+=t;for(var n=0,r=this._nodes;n<r.length;n++){var o=r[n];o.x+=e,o.y+=t}},e.prototype._onMove=function(e){if(null!==this._mouseStartPointX&&null!==this._mouseStartPointY&&!e.ctrlKey){var t=(e.clientX-this._mouseStartPointX)/this._ownerCanvas.zoom,n=(e.clientY-this._mouseStartPointY)/this._ownerCanvas.zoom;this._moveFrame(t,n),this._mouseStartPointX=e.clientX,this._mouseStartPointY=e.clientY,e.stopPropagation()}},e.prototype.dispose=function(){this.isCollapsed=!1,this._onSelectionChangedObserver&&this._ownerCanvas.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver),this.element.parentElement.removeChild(this.element),this._ownerCanvas.frames.splice(this._ownerCanvas.frames.indexOf(this),1),this.onExpandStateChanged.clear()},e.prototype.serialize=function(){return{x:this._x,y:this._y,width:this._width,height:this._height,color:this._color.asArray(),name:this.name,isCollapsed:this.isCollapsed,blocks:this.nodes.map((function(e){return e.block.uniqueId})),comments:this._comments}},e.prototype.export=function(){var e=this._ownerCanvas.globalState,t=K.Serialize(e.nodeMaterial,e,this.nodes.map((function(e){return e.block})));Q.DownloadAsFile(e.hostDocument,t,this._name+".json")},e.Parse=function(t,n,r){var o=new e(null,n,!0),i=!!t.isCollapsed;if(o.x=t.x,o.y=t.y,o.width=t.width,o.height=t.height,o.name=t.name,o.color=l.Color3.FromArray(t.color),o.comments=t.comments,t.blocks&&r)for(var a=function(){var e=r[u],t=n.nodes.filter((function(t){return t.block.uniqueId===e}));t.length&&o.nodes.push(t[0])},s=0,c=t.blocks;s<c.length;s++){var u=c[s];a()}else o.refresh();if(o.isCollapsed=i,i){n._frameIsMoving=!0,o._moveFrame(-(o.width-o.CollapsedWidth)/2,0);var p=t.x-o.x;o._moveFrame(p,0),o.cleanAccumulation();for(var d=0,f=o.nodes;d<f.length;d++){f[d].refresh()}n._frameIsMoving=!1}return o},e._FrameCounter=0,e}(),qe=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.componentDidMount=function(){var e=this;this.onFrameExpandStateChangedObserver=this.props.frame.onExpandStateChanged.add((function(){return e.forceUpdate()}))},t.prototype.componentWillUnmount=function(){this.onFrameExpandStateChangedObserver&&(this.props.frame.onExpandStateChanged.remove(this.onFrameExpandStateChangedObserver),this.onFrameExpandStateChangedObserver=null)},t.prototype.render=function(){var e=this;return o.createElement("div",{id:"propertyTab"},o.createElement("div",{id:"header"},o.createElement("img",{id:"logo",src:"https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png"}),o.createElement("div",{id:"title"},"NODE MATERIAL EDITOR")),o.createElement("div",null,o.createElement(G,{title:"GENERAL"},o.createElement(me,{globalState:this.props.globalState,label:"Name",propertyName:"name",target:this.props.frame}),o.createElement(ae,{globalState:this.props.globalState,label:"Color",target:this.props.frame,propertyName:"color"}),o.createElement(me,{globalState:this.props.globalState,label:"Comments",propertyName:"comments",target:this.props.frame}),!this.props.frame.isCollapsed&&o.createElement(Z,{label:"Collapse",onClick:function(){e.props.frame.isCollapsed=!0}}),this.props.frame.isCollapsed&&o.createElement(Z,{label:"Expand",onClick:function(){e.props.frame.isCollapsed=!1}}))))},t}(o.Component);n(138);var Xe=function(e){function t(t){var n=e.call(this,t)||this;return n.state={currentNode:null,currentFrame:null},n}return p(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.globalState.onSelectionChangedObservable.add((function(t){t instanceof He?e.setState({currentNode:t,currentFrame:null}):t instanceof Ge?e.setState({currentNode:null,currentFrame:t}):e.setState({currentNode:null,currentFrame:null})})),this._onBuiltObserver=this.props.globalState.onBuiltObservable.add((function(){e.forceUpdate()}))},t.prototype.componentWillReceiveProps=function(){this.props.globalState.onBuiltObservable.remove(this._onBuiltObserver)},t.prototype.processInputBlockUpdate=function(e){this.props.globalState.onUpdateRequiredObservable.notifyObservers(),e.isConstant&&this.props.globalState.onRebuildRequiredObservable.notifyObservers()},t.prototype.renderInputBlock=function(e){var t=this;switch(e.type){case l.NodeMaterialBlockConnectionPointTypes.Float:var n=isNaN(e.min)||isNaN(e.max)||e.min===e.max;return o.createElement("div",{key:e.uniqueId},e.isBoolean&&o.createElement(J,{key:e.uniqueId,label:e.name,target:e,propertyName:"value",onValueChanged:function(){t.processInputBlockUpdate(e)}}),!e.isBoolean&&n&&o.createElement(ee,{key:e.uniqueId,label:e.name,target:e,propertyName:"value",onChange:function(){return t.processInputBlockUpdate(e)}}),!e.isBoolean&&!n&&o.createElement(ne,{key:e.uniqueId,label:e.name,target:e,propertyName:"value",step:(e.max-e.min)/100,minimum:e.min,maximum:e.max,onChange:function(){return t.processInputBlockUpdate(e)}}));case l.NodeMaterialBlockConnectionPointTypes.Color3:return o.createElement(ae,{globalState:this.props.globalState,key:e.uniqueId,label:e.name,target:e,propertyName:"value",onChange:function(){return t.processInputBlockUpdate(e)}});case l.NodeMaterialBlockConnectionPointTypes.Color4:return o.createElement(be,{globalState:this.props.globalState,key:e.uniqueId,label:e.name,target:e,propertyName:"value",onChange:function(){return t.processInputBlockUpdate(e)}});case l.NodeMaterialBlockConnectionPointTypes.Vector2:return o.createElement(oe,{globalState:this.props.globalState,key:e.uniqueId,label:e.name,target:e,propertyName:"value",onChange:function(){return t.processInputBlockUpdate(e)}});case l.NodeMaterialBlockConnectionPointTypes.Vector3:return o.createElement(se,{globalState:this.props.globalState,key:e.uniqueId,label:e.name,target:e,propertyName:"value",onChange:function(){return t.processInputBlockUpdate(e)}});case l.NodeMaterialBlockConnectionPointTypes.Vector4:return o.createElement(ue,{globalState:this.props.globalState,key:e.uniqueId,label:e.name,target:e,propertyName:"value",onChange:function(){return t.processInputBlockUpdate(e)}})}return null},t.prototype.load=function(e){var t=this;l.Tools.ReadFile(e,(function(e){var n=new TextDecoder("utf-8");K.Deserialize(JSON.parse(n.decode(e)),t.props.globalState)}),void 0,!0)},t.prototype.save=function(){var e=K.Serialize(this.props.globalState.nodeMaterial,this.props.globalState);Q.DownloadAsFile(this.props.globalState.hostDocument,e,"nodeMaterial.json")},t.prototype.customSave=function(){var e=this;this.props.globalState.onLogRequiredObservable.notifyObservers({message:"Saving your material to Babylon.js snippet server...",isError:!1}),this.props.globalState.customSave.action(K.Serialize(this.props.globalState.nodeMaterial,this.props.globalState)).then((function(){e.props.globalState.onLogRequiredObservable.notifyObservers({message:"Material saved successfully",isError:!1})})).catch((function(t){e.props.globalState.onLogRequiredObservable.notifyObservers({message:t,isError:!0})}))},t.prototype.render=function(){var e=this;if(this.state.currentNode)return o.createElement("div",{id:"propertyTab"},o.createElement("div",{id:"header"},o.createElement("img",{id:"logo",src:"https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png"}),o.createElement("div",{id:"title"},"NODE MATERIAL EDITOR")),this.state.currentNode.renderProperties());if(this.state.currentFrame)return o.createElement(qe,{globalState:this.props.globalState,frame:this.state.currentFrame});var t=s.ReadNumber("GridSize",20);return o.createElement("div",{id:"propertyTab"},o.createElement("div",{id:"header"},o.createElement("img",{id:"logo",src:"https://www.babylonjs.com/Assets/logo-babylonjs-social-twitter.png"}),o.createElement("div",{id:"title"},"NODE MATERIAL EDITOR")),o.createElement("div",null,o.createElement(G,{title:"GENERAL"},o.createElement(ge,{label:"Version",value:l.Engine.Version}),o.createElement(ge,{label:"Help",value:"doc.babylonjs.com",underline:!0,onLink:function(){return window.open("https://doc.babylonjs.com/how_to/node_material","_blank")}}),o.createElement(Z,{label:"Reset to default",onClick:function(){e.props.globalState.nodeMaterial.setToDefault(),e.props.globalState.onResetRequiredObservable.notifyObservers()}})),o.createElement(G,{title:"UI"},o.createElement(Z,{label:"Zoom to fit",onClick:function(){e.props.globalState.onZoomToFitRequiredObservable.notifyObservers()}}),o.createElement(Z,{label:"Reorganize",onClick:function(){e.props.globalState.onReOrganizedRequiredObservable.notifyObservers()}})),o.createElement(G,{title:"OPTIONS"},o.createElement(J,{label:"Embed textures when saving",isSelected:function(){return s.ReadBoolean("EmbedTextures",!0)},onSelect:function(e){s.StoreBoolean("EmbedTextures",e)}}),o.createElement(ne,{label:"Grid size",minimum:0,maximum:100,step:5,decimalCount:0,directValue:t,onChange:function(t){s.StoreNumber("GridSize",t),e.props.globalState.onGridSizeChanged.notifyObservers(),e.forceUpdate()}}),o.createElement(J,{label:"Show grid",isSelected:function(){return s.ReadBoolean("ShowGrid",!0)},onSelect:function(t){s.StoreBoolean("ShowGrid",t),e.props.globalState.onGridSizeChanged.notifyObservers()}})),o.createElement(G,{title:"FILE"},o.createElement($,{label:"Load",onClick:function(t){return e.load(t)},accept:".json"}),o.createElement(Z,{label:"Save",onClick:function(){e.save()}}),this.props.globalState.customSave&&o.createElement(Z,{label:this.props.globalState.customSave.label,onClick:function(){e.customSave()}}),o.createElement(Z,{label:"Generate code",onClick:function(){Q.DownloadAsFile(e.props.globalState.hostDocument,e.props.globalState.nodeMaterial.generateCode(),"code.txt")}}),o.createElement(Z,{label:"Export shaders",onClick:function(){Q.DownloadAsFile(e.props.globalState.hostDocument,e.props.globalState.nodeMaterial.compiledShaders,"shaders.txt")}})),o.createElement(G,{title:"INPUTS"},this.props.globalState.nodeMaterial.getInputBlocks().map((function(t){return t.isUniform&&!t.isSystemValue&&t.name?e.renderInputBlock(t):null})))))},t}(o.Component),Ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(){return a.createPortal(this.props.children,this.props.globalState.hostElement)},t}(o.Component);n(140);var Qe=function(e,t){this.message=e,this.isError=t},$e=function(e){function t(t){var n=e.call(this,t)||this;return n.state={logs:[]},n}return p(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.globalState.onLogRequiredObservable.add((function(t){var n=e.state.logs;n.push(t),e.setState({logs:n})}))},t.prototype.componentDidUpdate=function(){var e=a.findDOMNode(this.refs["log-console"]);e&&(e.scrollTop=e.scrollHeight)},t.prototype.render=function(){var e=new Date,t=e.getHours(),n=e.getMinutes(),r=e.getSeconds();return o.createElement("div",{id:"log-console",ref:"log-console"},this.state.logs.map((function(e,i){return o.createElement("div",{key:i,className:"log"+(e.isError?" error":"")},t+":"+n+":"+r+": "+e.message)})))},t}(o.Component),Ke=function(e){function t(t){var n=e.call(this,t)||this;return n.state={message:"",isError:!1},n.props.globalState.onErrorMessageDialogRequiredObservable.add((function(e){n.setState({message:e,isError:!0})})),n}return p(t,e),t.prototype.render=function(){var e=this;return this.state.message?o.createElement("div",{className:"dialog-container"},o.createElement("div",{className:"dialog"},o.createElement("div",{className:"dialog-message"},this.state.message),o.createElement("div",{className:"dialog-buttons"},o.createElement("div",{className:"dialog-button-ok"+(this.state.isError?" error":""),onClick:function(){return e.setState({message:""})}},"OK")))):null},t}(o.Component),Je=function(){function e(e,t){var n=this;this._nodeMaterial=t.nodeMaterial,this._globalState=t,this._onBuildObserver=this._nodeMaterial.onBuildObservable.add((function(e){var t=e.serialize();n._updatePreview(t)})),this._onPreviewCommandActivatedObserver=t.onPreviewCommandActivated.add((function(){n._refreshPreviewMesh()})),this._onLightUpdatedObserver=t.onLightUpdated.add((function(){n._prepareLights()})),this._onUpdateRequiredObserver=t.onUpdateRequiredObservable.add((function(){var e=n._nodeMaterial.serialize();n._updatePreview(e)})),this._onPreviewBackgroundChangedObserver=t.onPreviewBackgroundChanged.add((function(){n._scene.clearColor=n._globalState.backgroundColor})),this._onAnimationCommandActivatedObserver=t.onAnimationCommandActivated.add((function(){n._handleAnimations()})),this._onBackFaceCullingChangedObserver=t.onBackFaceCullingChanged.add((function(){n._material.backFaceCulling=n._globalState.backFaceCulling})),this._onDepthPrePassChangedObserver=t.onDepthPrePassChanged.add((function(){n._material.needDepthPrePass=n._globalState.depthPrePass})),this._engine=new l.Engine(e,!0),this._scene=new l.Scene(this._engine),this._camera=new l.ArcRotateCamera("Camera",0,.8,4,l.Vector3.Zero(),this._scene),this._camera.lowerRadiusLimit=3,this._camera.upperRadiusLimit=10,this._camera.wheelPrecision=20,this._camera.minZ=.1,this._camera.attachControl(e,!1),this._lightParent=new l.TransformNode("LightParent",this._scene),this._refreshPreviewMesh(),this._engine.runRenderLoop((function(){n._engine.resize(),n._scene.render()}));var r=void 0;this._scene.onPointerObservable.add((function(e){if(!n._globalState.controlCamera)if(e.type!==l.PointerEventTypes.POINTERUP){if(1===e.event.buttons){void 0===r&&(r=e.event.offsetX);var t=.01*(r-e.event.offsetX);n._lightParent.rotation.y+=t,r=e.event.offsetX}}else r=void 0}))}return e.prototype._handleAnimations=function(){if(this._scene.stopAllAnimations(),this._globalState.rotatePreview)for(var e=0,t=this._scene.rootNodes;e<t.length;e++){var n=t[e],r=n;"TransformNode"!==r.getClassName()&&"Mesh"!==r.getClassName()&&"GroundMesh"!==r.getClassName()||(r.rotationQuaternion&&(r.rotation=r.rotationQuaternion.toEulerAngles(),r.rotationQuaternion=null),l.Animation.CreateAndStartAnimation("turnTable",n,"rotation.y",60,1200,r.rotation.y,r.rotation.y+2*Math.PI,1))}},e.prototype._prepareLights=function(){for(var e=0,t=this._scene.lights.slice(0);e<t.length;e++){t[e].dispose()}if(this._globalState.hemisphericLight&&new l.HemisphericLight("Hemispheric light",new l.Vector3(0,1,0),this._scene),this._globalState.directionalLight0){var n=new l.DirectionalLight("Directional light #0",new l.Vector3(.841626576496605,-.2193391004130599,-.49351298337996535),this._scene);n.intensity=.9,n.diffuse=new l.Color3(.9294117647058824,.9725490196078431,.996078431372549),n.specular=new l.Color3(.9294117647058824,.9725490196078431,.996078431372549),n.parent=this._lightParent}if(this._globalState.directionalLight1){var r=new l.DirectionalLight("Directional light #1",new l.Vector3(-.9519937437504213,-.24389315636999764,-.1849974057546125),this._scene);r.intensity=1.2,r.specular=new l.Color3(.9803921568627451,.9529411764705882,.7725490196078432),r.diffuse=new l.Color3(.9803921568627451,.9529411764705882,.7725490196078432),r.parent=this._lightParent}},e.prototype._prepareMeshes=function(){this._prepareLights(),this._camera.useFramingBehavior=!0;var e=this._camera.getBehaviorByName("Framing");if(e.framingTime=0,e.elevationReturnTime=-1,this._scene.meshes.length){var t=this._scene.getWorldExtends();this._camera.lowerRadiusLimit=null,this._camera.upperRadiusLimit=null,e.zoomOnBoundingInfo(t.min,t.max)}this._camera.pinchPrecision=200/this._camera.radius,this._camera.upperRadiusLimit=5*this._camera.radius,this._camera.wheelDeltaPercentage=.01,this._camera.pinchDeltaPercentage=.01,this._handleAnimations();var n=this._nodeMaterial.serialize();this._updatePreview(n)},e.prototype._refreshPreviewMesh=function(){var e=this;if(this._currentType!==this._globalState.previewMeshType||this._currentType===r.Custom){if(this._currentType=this._globalState.previewMeshType,this._meshes&&this._meshes.length)for(var t=0,n=this._meshes;t<n.length;t++){n[t].dispose()}this._meshes=[];for(var o=0,i=this._scene.lights.slice(0);o<i.length;o++){i[o].dispose()}switch(this._engine.releaseEffects(),l.SceneLoader.ShowLoadingScreen=!1,this._globalState.onIsLoadingChanged.notifyObservers(!0),this._globalState.previewMeshType){case r.Box:l.SceneLoader.AppendAsync("https://models.babylonjs.com/","roundedCube.glb",this._scene).then((function(){var t;(t=e._meshes).push.apply(t,e._scene.meshes),e._prepareMeshes()}));break;case r.Sphere:this._meshes.push(l.Mesh.CreateSphere("dummy-sphere",32,2,this._scene));break;case r.Torus:this._meshes.push(l.Mesh.CreateTorus("dummy-torus",2,.5,32,this._scene));break;case r.Cylinder:return void l.SceneLoader.AppendAsync("https://models.babylonjs.com/","roundedCylinder.glb",this._scene).then((function(){var t;(t=e._meshes).push.apply(t,e._scene.meshes),e._prepareMeshes()}));case r.Plane:var a=l.Mesh.CreateGround("dummy-plane",2,2,128,this._scene);a.scaling.y=-1,a.rotation.x=Math.PI,this._meshes.push(a);break;case r.ShaderBall:return void l.SceneLoader.AppendAsync("https://models.babylonjs.com/","shaderBall.glb",this._scene).then((function(){var t;(t=e._meshes).push.apply(t,e._scene.meshes),e._prepareMeshes()}));case r.Custom:return void l.SceneLoader.AppendAsync("file:",this._globalState.previewMeshFile,this._scene).then((function(){var t;(t=e._meshes).push.apply(t,e._scene.meshes),e._prepareMeshes()}))}this._prepareMeshes()}},e.prototype._forceCompilationAsync=function(e,t){return e.forceCompilationAsync(t)},e.prototype._updatePreview=function(e){var t=this;try{var n=l.NodeMaterial.Parse(e,this._scene);if(n.backFaceCulling=this._globalState.backFaceCulling,n.needDepthPrePass=this._globalState.depthPrePass,this._meshes.length){var r=this._meshes.map((function(e){return t._forceCompilationAsync(n,e)}));Promise.all(r).then((function(){for(var e=0,r=t._meshes;e<r.length;e++){r[e].material=n}t._material&&t._material.dispose(),t._material=n,t._globalState.onIsLoadingChanged.notifyObservers(!1)})).catch((function(e){t._globalState.onLogRequiredObservable.notifyObservers(new Qe("Shader compilation error:\r\n"+e,!0)),t._globalState.onIsLoadingChanged.notifyObservers(!1)}))}else this._material=n}catch(e){}},e.prototype.dispose=function(){this._nodeMaterial.onBuildObservable.remove(this._onBuildObserver),this._globalState.onPreviewCommandActivated.remove(this._onPreviewCommandActivatedObserver),this._globalState.onUpdateRequiredObservable.remove(this._onUpdateRequiredObserver),this._globalState.onAnimationCommandActivated.remove(this._onAnimationCommandActivatedObserver),this._globalState.onPreviewBackgroundChanged.remove(this._onPreviewBackgroundChangedObserver),this._globalState.onBackFaceCullingChanged.remove(this._onBackFaceCullingChangedObserver),this._globalState.onDepthPrePassChanged.remove(this._onDepthPrePassChangedObserver),this._globalState.onLightUpdated.remove(this._onLightUpdatedObserver),this._material&&this._material.dispose(),this._camera.dispose();for(var e=0,t=this._meshes;e<t.length;e++){t[e].dispose()}this._scene.dispose(),this._engine.dispose()},e}(),et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.changeMeshType=function(e){this.props.globalState.previewMeshType!==e&&(this.props.globalState.previewMeshType=e,this.props.globalState.onPreviewCommandActivated.notifyObservers(),s.StoreNumber("PreviewMeshType",e),this.forceUpdate())},t.prototype.useCustomMesh=function(e){var t=e.target.files;if(t&&t.length){var n=t[0];this.props.globalState.previewMeshFile=n,this.props.globalState.previewMeshType=r.Custom,this.props.globalState.onPreviewCommandActivated.notifyObservers(),this.forceUpdate()}document.getElementById("file-picker").value=""},t.prototype.onPopUp=function(){this.props.togglePreviewAreaComponent()},t.prototype.render=function(){var e=this;return o.createElement("div",{id:"preview-mesh-bar"},o.createElement("div",{title:"Preview with a cube",onClick:function(){return e.changeMeshType(r.Box)},className:"button"+(this.props.globalState.previewMeshType===r.Box?" selected":"")},o.createElement(E,{icon:M})),o.createElement("div",{title:"Preview with a sphere",onClick:function(){return e.changeMeshType(r.Sphere)},className:"button"+(this.props.globalState.previewMeshType===r.Sphere?" selected":"")},o.createElement(E,{icon:N})),o.createElement("div",{title:"Preview with a torus",onClick:function(){return e.changeMeshType(r.Torus)},className:"button"+(this.props.globalState.previewMeshType===r.Torus?" selected":"")},o.createElement(E,{icon:F})),o.createElement("div",{title:"Preview with a cylinder",onClick:function(){return e.changeMeshType(r.Cylinder)},className:"button"+(this.props.globalState.previewMeshType===r.Cylinder?" selected":"")},o.createElement(E,{icon:R})),o.createElement("div",{title:"Preview with a plane",onClick:function(){return e.changeMeshType(r.Plane)},className:"button"+(this.props.globalState.previewMeshType===r.Plane?" selected":"")},o.createElement(E,{icon:U})),o.createElement("div",{title:"Preview with a shader ball",onClick:function(){return e.changeMeshType(r.ShaderBall)},className:"button"+(this.props.globalState.previewMeshType===r.ShaderBall?" selected":"")},o.createElement(E,{icon:L})),o.createElement("div",{className:"button align",title:"Preview with a custom mesh"},o.createElement("label",{htmlFor:"file-picker",id:"file-picker-label"},o.createElement(E,{icon:z})),o.createElement("input",{ref:"file-picker",id:"file-picker",type:"file",onChange:function(t){return e.useCustomMesh(t)},accept:".gltf, .glb, .babylon, .obj"})),o.createElement("div",{title:"Open preview in new window",id:"preview-new-window",onClick:function(){return e.onPopUp()},className:"button"},o.createElement(E,{icon:H})))},t}(o.Component),tt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isLoading:!0},n.props.globalState.onIsLoadingChanged.add((function(e){return n.setState({isLoading:e})})),n}return p(t,e),t.prototype.changeAnimation=function(){this.props.globalState.rotatePreview=!this.props.globalState.rotatePreview,this.props.globalState.onAnimationCommandActivated.notifyObservers(),this.forceUpdate()},t.prototype.changeBackground=function(e){var t=l.Color3.FromHexString(e);s.StoreNumber("BackgroundColorR",t.r),s.StoreNumber("BackgroundColorG",t.g),s.StoreNumber("BackgroundColorB",t.b),this.props.globalState.backgroundColor=l.Color4.FromColor3(t,1),this.props.globalState.onPreviewBackgroundChanged.notifyObservers()},t.prototype.changeBackFaceCulling=function(e){this.props.globalState.backFaceCulling=e,s.StoreBoolean("BackFaceCulling",e),this.props.globalState.onBackFaceCullingChanged.notifyObservers(),this.forceUpdate()},t.prototype.changeDepthPrePass=function(e){this.props.globalState.depthPrePass=e,s.StoreBoolean("DepthPrePass",e),this.props.globalState.onDepthPrePassChanged.notifyObservers(),this.forceUpdate()},t.prototype.render=function(){var e=this;return o.createElement(o.Fragment,null,o.createElement("div",{id:"preview",style:{height:this.props.width+"px"}},o.createElement("canvas",{id:"preview-canvas"}),o.createElement("div",{className:"waitPanel"+(this.state.isLoading?"":" hidden")},"Please wait, loading...")),o.createElement("div",{id:"preview-config-bar"},o.createElement("div",{title:"Turn-table animation",onClick:function(){return e.changeAnimation()},className:"button"},o.createElement(E,{icon:this.props.globalState.rotatePreview?V:D})),o.createElement("div",{title:"Background color",className:"button align"},o.createElement("label",{htmlFor:"color-picker",id:"color-picker-label"},o.createElement(E,{icon:j})),o.createElement("input",{ref:"color-picker",id:"color-picker",type:"color",onChange:function(t){return e.changeBackground(t.target.value)}})),o.createElement("div",{title:"Render without back face culling",onClick:function(){return e.changeBackFaceCulling(!e.props.globalState.backFaceCulling)},className:"button"+(this.props.globalState.backFaceCulling?"":" selected")},o.createElement(E,{icon:T})),o.createElement("div",{title:"Render with depth pre-pass",onClick:function(){return e.changeDepthPrePass(!e.props.globalState.depthPrePass)},className:"button"+(this.props.globalState.depthPrePass?" selected":"")},o.createElement(E,{icon:O})),o.createElement("div",{title:"Turn on/off hemispheric light",onClick:function(){e.props.globalState.hemisphericLight=!e.props.globalState.hemisphericLight,s.StoreBoolean("HemisphericLight",e.props.globalState.hemisphericLight),e.props.globalState.onLightUpdated.notifyObservers(),e.forceUpdate()},className:"button"+(this.props.globalState.hemisphericLight?" selected":"")},o.createElement(E,{icon:W})),o.createElement("div",{title:"Turn on/off direction light #0",onClick:function(){e.props.globalState.directionalLight0=!e.props.globalState.directionalLight0,s.StoreBoolean("DirectionalLight0",e.props.globalState.directionalLight0),e.props.globalState.onLightUpdated.notifyObservers(),e.forceUpdate()},className:"button"+(this.props.globalState.directionalLight0?" selected":"")},o.createElement(E,{icon:I})),o.createElement("div",{title:"Turn on/off direction light #1",onClick:function(){e.props.globalState.directionalLight1=!e.props.globalState.directionalLight1,s.StoreBoolean("DirectionalLight1",e.props.globalState.directionalLight1),e.props.globalState.onLightUpdated.notifyObservers(),e.forceUpdate()},className:"button"+(this.props.globalState.directionalLight1?" selected":"")},o.createElement(E,{icon:I}))))},t}(o.Component),nt=n(70),rt=function(){function e(e,t,n,r,o){var i=this;this._isVisible=!0,this.onDisposedObservable=new l.Observable,this._portA=t,this._portB=r,this._nodeA=n,this._nodeB=o,this._graphCanvas=e;var a=t.element.ownerDocument,s=e.svgCanvas;this._path=a.createElementNS("http://www.w3.org/2000/svg","path"),this._path.setAttribute("fill","none"),this._path.classList.add("link"),s.appendChild(this._path),this._selectionPath=a.createElementNS("http://www.w3.org/2000/svg","path"),this._selectionPath.setAttribute("fill","none"),this._selectionPath.classList.add("selection-link"),s.appendChild(this._selectionPath),this._selectionPath.onmousedown=function(){return i.onClick()},this._portB&&this.update(),this._onSelectionChangedObserver=this._graphCanvas.globalState.onSelectionChangedObservable.add((function(e){e===i?(i._path.classList.add("selected"),i._selectionPath.classList.add("selected")):(i._path.classList.remove("selected"),i._selectionPath.classList.remove("selected"))}))}return Object.defineProperty(e.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,e?(this._path.classList.remove("hidden"),this._selectionPath.classList.remove("hidden")):(this._path.classList.add("hidden"),this._selectionPath.classList.add("hidden")),this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"portA",{get:function(){return this._portA},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"portB",{get:function(){return this._portB},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodeA",{get:function(){return this._nodeA},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodeB",{get:function(){return this._nodeB},enumerable:!0,configurable:!0}),e.prototype.update=function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1);var r=this._portA.element.getBoundingClientRect(),o=this._graphCanvas.canvasContainer.getBoundingClientRect(),i=this._graphCanvas.zoom,a=o.left,l=o.top,s=(r.left-a+.5*r.width)/i,c=(r.top-l+.5*r.height)/i;if(this._portB){var u=this._portB.element.getBoundingClientRect();e=(u.left-a+.5*u.width)/i,t=(u.top-l+.5*u.height)/i}if(n)this._path.setAttribute("d","M"+s+","+c+" L"+e+","+t),this._path.setAttribute("stroke-dasharray","10, 10"),this._path.setAttribute("stroke-linecap","round");else{var p=e-s,d=t-c,f=Math.min(.5*Math.sqrt(p*p+d*d),300);this._path.setAttribute("d","M"+s+","+c+" C"+(s+f)+","+c+" "+(e-f)+","+t+" "+e+","+t),this._selectionPath.setAttribute("d","M"+s+","+c+" C"+(s+f)+","+c+" "+(e-f)+","+t+" "+e+","+t)}this._path.setAttribute("stroke",this._portA.element.style.backgroundColor)},e.prototype.onClick=function(){this._graphCanvas.globalState.onSelectionChangedObservable.notifyObservers(this)},e.prototype.dispose=function(){this._graphCanvas.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver),this._path.parentElement&&this._path.parentElement.removeChild(this._path),this._selectionPath.parentElement&&this._selectionPath.parentElement.removeChild(this._selectionPath),this._nodeB&&(this._nodeA.links.splice(this._nodeA.links.indexOf(this),1),this._nodeB.links.splice(this._nodeB.links.indexOf(this),1),this._graphCanvas.links.splice(this._graphCanvas.links.indexOf(this),1),this._portA.connectionPoint.disconnectFrom(this._portB.connectionPoint)),this.onDisposedObservable.notifyObservers(this)},e}();n(316);var ot=function(e){function t(t){var n=e.call(this,t)||this;return n.MinZoom=.1,n.MaxZoom=4,n._nodes=[],n._links=[],n._mouseStartPointX=null,n._mouseStartPointY=null,n._dropPointX=0,n._dropPointY=0,n._selectionStartX=0,n._selectionStartY=0,n._x=0,n._y=0,n._zoom=1,n._selectedNodes=[],n._selectedLink=null,n._candidateLink=null,n._candidatePort=null,n._gridSize=20,n._selectionBox=null,n._selectedFrame=null,n._frameCandidate=null,n._frames=[],n._altKeyIsPressed=!1,n._ctrlKeyIsPressed=!1,n._oldY=-1,n._frameIsMoving=!1,t.globalState.onSelectionChangedObservable.add((function(e){e?e instanceof rt?(n._selectedNodes=[],n._selectedFrame=null,n._selectedLink=e):e instanceof Ge?(n._selectedNodes=[],n._selectedFrame=e,n._selectedLink=null):n._ctrlKeyIsPressed?-1===n._selectedNodes.indexOf(e)&&n._selectedNodes.push(e):n._selectedNodes=[e]:(n._selectedNodes=[],n._selectedLink=null,n._selectedFrame=null)})),t.globalState.onCandidatePortSelected.add((function(e){n._candidatePort=e})),t.globalState.onGridSizeChanged.add((function(){n.gridSize=s.ReadNumber("GridSize",20)})),n.props.globalState.hostDocument.addEventListener("keyup",(function(){return n.onKeyUp()}),!1),n.props.globalState.hostDocument.addEventListener("keydown",(function(e){n._altKeyIsPressed=e.altKey,n._ctrlKeyIsPressed=e.ctrlKey}),!1),n.props.globalState.hostDocument.defaultView.addEventListener("blur",(function(){n._altKeyIsPressed=!1,n._ctrlKeyIsPressed=!1}),!1),n.props.globalState.storeEditorData=function(e){e.zoom=n.zoom,e.x=n.x,e.y=n.y,e.frames=[];for(var t=0,r=n._frames;t<r.length;t++){var o=r[t];e.frames.push(o.serialize())}},n}return p(t,e),Object.defineProperty(t.prototype,"gridSize",{get:function(){return this._gridSize},set:function(e){this._gridSize=e,this.updateTransform()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"globalState",{get:function(){return this.props.globalState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nodes",{get:function(){return this._nodes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"links",{get:function(){return this._links},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"frames",{get:function(){return this._frames},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"zoom",{get:function(){return this._zoom},set:function(e){this._zoom!==e&&(this._zoom=e,this.updateTransform())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this.updateTransform()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this.updateTransform()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedNodes",{get:function(){return this._selectedNodes},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedLink",{get:function(){return this._selectedLink},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedFrame",{get:function(){return this._selectedFrame},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canvasContainer",{get:function(){return this._graphCanvas},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"svgCanvas",{get:function(){return this._svgCanvas},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectionContainer",{get:function(){return this._selectionContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"frameContainer",{get:function(){return this._frameContainer},enumerable:!0,configurable:!0}),t.prototype.getGridPosition=function(e,t){void 0===t&&(t=!1);var n=this.gridSize;return 0===n?e:t?n*Math.ceil(e/n):n*Math.floor(e/n)},t.prototype.getGridPositionCeil=function(e){var t=this.gridSize;return 0===t?e:t*Math.ceil(e/t)},t.prototype.updateTransform=function(){this._rootContainer.style.transform="translate("+this._x+"px, "+this._y+"px) scale("+this._zoom+")",s.ReadBoolean("ShowGrid",!0)?(this._hostCanvas.style.backgroundSize=this._gridSize*this._zoom+"px "+this._gridSize*this._zoom+"px",this._hostCanvas.style.backgroundPosition=this._x+"px "+this._y+"px"):this._hostCanvas.style.backgroundSize="0"},t.prototype.onKeyUp=function(){this._altKeyIsPressed=!1,this._ctrlKeyIsPressed=!1,this._oldY=-1},t.prototype.findNodeFromBlock=function(e){return this.nodes.filter((function(t){return t.block===e}))[0]},t.prototype.reset=function(){for(var e=0,t=this._nodes;e<t.length;e++){t[e].dispose()}for(var n=0,r=this._frames.splice(0);n<r.length;n++){r[n].dispose()}this._nodes=[],this._frames=[],this._links=[],this._graphCanvas.innerHTML="",this._svgCanvas.innerHTML=""},t.prototype.connectPorts=function(e,t){var n=e.ownerBlock,r=t.ownerBlock,o=this.findNodeFromBlock(n),i=this.findNodeFromBlock(r);if(o&&i){var a=o.getPortForConnectionPoint(e),l=i.getPortForConnectionPoint(t);if(a&&l){for(var s=0,c=this._links;s<c.length;s++){var u=c[s];if(u.portA===a&&u.portB===l)return;if(u.portA===l&&u.portB===a)return}var p=new rt(this,a,o,l,i);this._links.push(p),o.links.push(p),i.links.push(p)}}},t.prototype.removeLink=function(e){var t=this._links.indexOf(e);t>-1&&this._links.splice(t,1),e.dispose()},t.prototype.appendBlock=function(e){var t=new He(e,this.props.globalState);return t.appendVisual(this._graphCanvas,this),this._nodes.push(t),t},t.prototype.distributeGraph=function(){var e=this;this.x=0,this.y=0,this.zoom=1;var t=new nt.graphlib.Graph;t.setGraph({}),t.setDefaultEdgeLabel((function(){return{}})),t.graph().rankdir="LR",this._nodes.forEach((function(n){e._frames.some((function(e){return-1!==e.nodes.indexOf(n)}))||t.setNode(n.id.toString(),{id:n.id,type:"node",width:n.width,height:n.height})})),this._frames.forEach((function(e){t.setNode(e.id.toString(),{id:e.id,type:"frame",width:e.element.clientWidth,height:e.element.clientHeight})})),this._nodes.forEach((function(n){n.block.outputs.forEach((function(r){r.hasEndpoints&&r.endpoints.forEach((function(r){var o=e._frames.filter((function(e){return-1!==e.nodes.indexOf(n)})),i=e._frames.filter((function(e){return e.nodes.some((function(e){return e.block===r.ownerBlock}))})),a=o.length>0?o[0].id:n.id,l=i.length>0?i[0].id:r.ownerBlock.uniqueId;t.setEdge(a.toString(),l.toString())}))}))})),nt.layout(t),t.nodes().map((function(e){return t.node(e)})).forEach((function(t){if("node"!==t.type)for(var n=0,r=e._frames;n<r.length;n++){var o=r[n];if(o.id===t.id)return e._frameIsMoving=!0,o.move(t.x-t.width/2,t.y-t.height/2,!1),o.cleanAccumulation(),void(e._frameIsMoving=!1)}else for(var i=0,a=e._nodes;i<a.length;i++){var l=a[i];if(l.id===t.id)return l.x=t.x-t.width/2,l.y=t.y-t.height/2,void l.cleanAccumulation()}}))},t.prototype.componentDidMount=function(){this._hostCanvas=this.props.globalState.hostDocument.getElementById("graph-canvas"),this._rootContainer=this.props.globalState.hostDocument.getElementById("graph-container"),this._graphCanvas=this.props.globalState.hostDocument.getElementById("graph-canvas-container"),this._svgCanvas=this.props.globalState.hostDocument.getElementById("graph-svg-container"),this._selectionContainer=this.props.globalState.hostDocument.getElementById("selection-container"),this._frameContainer=this.props.globalState.hostDocument.getElementById("frame-container"),this.gridSize=s.ReadNumber("GridSize",20),this.updateTransform()},t.prototype.onMove=function(e){if(this._selectionBox){var t=this.canvasContainer.getBoundingClientRect(),n=e.pageX-t.left,r=e.pageY-t.top;return n>this._selectionStartX?(this._selectionBox.style.left=this._selectionStartX/this.zoom+"px",this._selectionBox.style.width=(n-this._selectionStartX)/this.zoom+"px"):(this._selectionBox.style.left=n/this.zoom+"px",this._selectionBox.style.width=(this._selectionStartX-n)/this.zoom+"px"),r>this._selectionStartY?(this._selectionBox.style.top=this._selectionStartY/this.zoom+"px",this._selectionBox.style.height=(r-this._selectionStartY)/this.zoom+"px"):(this._selectionBox.style.top=r/this.zoom+"px",this._selectionBox.style.height=(this._selectionStartY-r)/this.zoom+"px"),void this.props.globalState.onSelectionBoxMoved.notifyObservers(this._selectionBox.getBoundingClientRect())}if(this._frameCandidate){t=this.canvasContainer.getBoundingClientRect(),n=e.pageX-t.left,r=e.pageY-t.top;return n>this._selectionStartX?(this._frameCandidate.style.left=this._selectionStartX/this.zoom+"px",this._frameCandidate.style.width=(n-this._selectionStartX)/this.zoom+"px"):(this._frameCandidate.style.left=n/this.zoom+"px",this._frameCandidate.style.width=(this._selectionStartX-n)/this.zoom+"px"),void(r>this._selectionStartY?(this._frameCandidate.style.top=this._selectionStartY/this.zoom+"px",this._frameCandidate.style.height=(r-this._selectionStartY)/this.zoom+"px"):(this._frameCandidate.style.top=r/this.zoom+"px",this._frameCandidate.style.height=(this._selectionStartY-r)/this.zoom+"px"))}if(this._candidateLink){t=this.canvasContainer.getBoundingClientRect();return this._candidatePort=null,this.props.globalState.onCandidateLinkMoved.notifyObservers(new l.Vector2(e.pageX,e.pageY)),this._dropPointX=(e.pageX-t.left)/this.zoom,this._dropPointY=(e.pageY-t.top)/this.zoom,void this._candidateLink.update(this._dropPointX,this._dropPointY,!0)}if(this._altKeyIsPressed&&1===e.buttons){this._oldY<0&&(this._oldY=e.pageY);var o=(e.pageY-this._oldY)/10;if(Math.abs(o)>5){var i=this.zoom;this.zoom=Math.max(Math.min(this.MaxZoom,this.zoom+o/100),this.MinZoom);var a=e.currentTarget.getBoundingClientRect(),s=a.width,c=s*this.zoom-s*i,u=(e.clientX-a.left-this.x)/i/s;this.x=this.x-c*u,this._oldY=e.pageY}}else this._rootContainer.style.cursor="move",null!==this._mouseStartPointX&&null!==this._mouseStartPointY&&(this.x+=e.clientX-this._mouseStartPointX,this.y+=e.clientY-this._mouseStartPointY,this._mouseStartPointX=e.clientX,this._mouseStartPointY=e.clientY)},t.prototype.onDown=function(e){if(this._rootContainer.setPointerCapture(e.pointerId),e.currentTarget===this._hostCanvas&&e.ctrlKey){this._selectionBox=this.props.globalState.hostDocument.createElement("div"),this._selectionBox.classList.add("selection-box"),this._selectionContainer.appendChild(this._selectionBox);var t=this.canvasContainer.getBoundingClientRect();return this._selectionStartX=e.pageX-t.left,this._selectionStartY=e.pageY-t.top,this._selectionBox.style.left=this._selectionStartX/this.zoom+"px",this._selectionBox.style.top=this._selectionStartY/this.zoom+"px",this._selectionBox.style.width="0px",void(this._selectionBox.style.height="0px")}if(e.currentTarget===this._hostCanvas&&e.shiftKey){this._frameCandidate=this.props.globalState.hostDocument.createElement("div"),this._frameCandidate.classList.add("frame-box"),this._frameContainer.appendChild(this._frameCandidate);t=this.canvasContainer.getBoundingClientRect();return this._selectionStartX=e.pageX-t.left,this._selectionStartY=e.pageY-t.top,this._frameCandidate.style.left=this._selectionStartX/this.zoom+"px",this._frameCandidate.style.top=this._selectionStartY/this.zoom+"px",this._frameCandidate.style.width="0px",void(this._frameCandidate.style.height="0px")}if(e.nativeEvent.srcElement&&"IMG"===e.nativeEvent.srcElement.nodeName){if(!this._candidateLink){var n=e.nativeEvent.srcElement.parentElement.port;this._candidateLink=new rt(this,n,n.node)}}else this.props.globalState.onSelectionChangedObservable.notifyObservers(null),this._mouseStartPointX=e.clientX,this._mouseStartPointY=e.clientY},t.prototype.onUp=function(e){if(this._mouseStartPointX=null,this._mouseStartPointY=null,this._rootContainer.releasePointerCapture(e.pointerId),this._oldY=-1,this._candidateLink&&(this.processCandidatePort(),this.props.globalState.onCandidateLinkMoved.notifyObservers(null),this._candidateLink.dispose(),this._candidateLink=null,this._candidatePort=null),this._selectionBox&&(this._selectionBox.parentElement.removeChild(this._selectionBox),this._selectionBox=null),this._frameCandidate){var t=new Ge(this._frameCandidate,this);this._frames.push(t),this._frameCandidate.parentElement.removeChild(this._frameCandidate),this._frameCandidate=null,this.props.globalState.onSelectionChangedObservable.notifyObservers(t)}},t.prototype.onWheel=function(e){var t=e.deltaY<0?.1:-.1,n=this.zoom;this.zoom=Math.min(Math.max(this.MinZoom,this.zoom+t*this.zoom),this.MaxZoom);var r=e.currentTarget.getBoundingClientRect(),o=r.width,i=r.height,a=o*this.zoom-o*n,l=i*this.zoom-i*n,s=e.clientX-r.left,c=e.clientY-r.top,u=(s-this.x)/n/o,p=(c-this.y)/n/i;this.x=this.x-a*u,this.y=this.y-l*p,e.stopPropagation()},t.prototype.zoomToFit=function(){var e=this,t=0,n=0;this._nodes.forEach((function(r){e._frames.some((function(e){return-1!==e.nodes.indexOf(r)}))||(r.x<t&&(t=r.x),r.y<n&&(n=r.y))})),this._frames.forEach((function(e){e.x<t&&(t=e.x),e.y<n&&(n=e.y)})),this._frames.forEach((function(e){e.x+=-t,e.y+=-n,e.cleanAccumulation()})),this._nodes.forEach((function(e){e.x+=-t,e.y+=-n,e.cleanAccumulation()}));var r=this._rootContainer.clientWidth/this._rootContainer.scrollWidth,o=this._rootContainer.clientHeight/this._rootContainer.scrollHeight,i=r<o?r:o;this.zoom=i,this.x=0,this.y=0},t.prototype.processCandidatePort=function(){var e,t,n=this._candidateLink.portA.connectionPoint,r=this._candidateLink.portA.node;if(this._candidatePort)e=this._candidatePort.connectionPoint,t=this._candidatePort.node;else{if(n.direction===l.NodeMaterialConnectionPointDirection.Output)return;var o=new l.InputBlock("",void 0,this._candidateLink.portA.connectionPoint.type);e=o.output,(t=this.appendBlock(o)).x=this._dropPointX-200,t.y=this._dropPointY-50}if(e.direction===l.NodeMaterialConnectionPointDirection.Input){var i=n;n=e,e=i;var a=t;t=r,r=a}if(n.connectedPoint!==e&&n!==e&&n.direction!==e.direction&&n.ownerBlock!==e.ownerBlock){var s="FragmentOutputBlock"===n.ownerBlock.getClassName(),c=e.checkCompatibilityState(n);if(c===l.NodeMaterialConnectionPointCompatibilityStates.Compatible){if(s){var u=n.ownerBlock;"rgb"===n.name&&u.rgba.isConnected?r.getLinksForConnectionPoint(u.rgba)[0].dispose():"rgba"===n.name&&u.rgb.isConnected&&r.getLinksForConnectionPoint(u.rgb)[0].dispose()}if(n.isConnected)r.getLinksForConnectionPoint(n).forEach((function(e){e.dispose()}));n.ownerBlock.inputsAreExclusive&&n.ownerBlock.inputs.forEach((function(e){r.getLinksForConnectionPoint(e).forEach((function(e){e.dispose()}))})),e.connectTo(n),this.connectPorts(e,n),r.refresh(),this.props.globalState.onRebuildRequiredObservable.notifyObservers()}else{var p="";switch(c){case l.NodeMaterialConnectionPointCompatibilityStates.TypeIncompatible:p="Cannot connect two different connection types";break;case l.NodeMaterialConnectionPointCompatibilityStates.TargetIncompatible:p="Source block can only work in fragment shader whereas destination block is currently aimed for the vertex shader"}this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers(p)}}},t.prototype.processEditorData=function(e){for(var t=0,n=this._frames.splice(0);t<n.length;t++){(a=n[t]).dispose()}if(this._frames=[],this.x=e.x||0,this.y=e.y||0,this.zoom=e.zoom||1,e.frames)for(var r=0,o=e.frames;r<o.length;r++){var i=o[r],a=Ge.Parse(i,this,e.map);this._frames.push(a)}},t.prototype.render=function(){var e=this;return o.createElement("div",{id:"graph-canvas",onWheel:function(t){return e.onWheel(t)},onPointerMove:function(t){return e.onMove(t)},onPointerDown:function(t){return e.onDown(t)},onPointerUp:function(t){return e.onUp(t)}},o.createElement("div",{id:"graph-container"},o.createElement("div",{id:"graph-canvas-container"}),o.createElement("div",{id:"frame-container"}),o.createElement("svg",{id:"graph-svg-container"}),o.createElement("div",{id:"selection-container"})))},t}(o.Component);n(318);var it=function(e){function t(t){var n=e.call(this,t)||this;return n.NodeWidth=100,n._leftWidth=s.ReadNumber("LeftWidth",200),n._rightWidth=s.ReadNumber("RightWidth",300),n._blocks=new Array,n._copiedNodes=[],n._copiedFrame=null,n._mouseLocationX=0,n._mouseLocationY=0,n.state={showPreviewPopUp:!1},n.handlePopUp=function(){n.setState({showPreviewPopUp:!0}),n.createPopUp(),n.props.globalState.hostWindow.addEventListener("beforeunload",n.handleClosingPopUp)},n.handleClosingPopUp=function(){n._previewManager.dispose(),n._popUpWindow.close(),n.setState({showPreviewPopUp:!1},(function(){return n.initiatePreviewArea()}))},n.initiatePreviewArea=function(e){void 0===e&&(e=n.props.globalState.hostDocument.getElementById("preview-canvas")),n._previewManager=new Je(e,n.props.globalState)},n.createPopUp=function(){var e=d({embedHostWidth:"100%",popup:!0},{original:!0,popup:!1,overlay:!1,embedMode:!1,enableClose:!0,handleResize:!0,enablePopup:!0}),t=n.createPopupWindow("PREVIEW AREA","_PreviewHostWindow");if(t){t.addEventListener("beforeunload",n.handleClosingPopUp);var r=t.document.getElementById("node-editor-graph-root");n.createPreviewMeshControlHost(e,r),n.createPreviewHost(e,r),r&&(n.fixPopUpStyles(r.ownerDocument),n.initiatePreviewArea(r.ownerDocument.getElementById("preview-canvas")))}},n.createPopupWindow=function(e,t,r,o){void 0===r&&(r=500),void 0===o&&(o=500);var i={width:r,height:o,top:(n.props.globalState.hostWindow.innerHeight-r)/2+window.screenY,left:(n.props.globalState.hostWindow.innerWidth-o)/2+window.screenX},a=Object.keys(i).map((function(e){return e+"="+i[e]})).join(","),l=n.props.globalState.hostWindow.open("",e,a);if(!l)return null;var s=l.document;s.title=e,s.body.style.width="100%",s.body.style.height="100%",s.body.style.margin="0",s.body.style.padding="0";var c=s.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.margin="0",c.style.padding="0",c.style.display="block",c.style.gridTemplateRows="unset",c.id="node-editor-graph-root",c.className="right-panel",l.document.body.appendChild(c),n.copyStyles(n.props.globalState.hostWindow.document,s),n[t]=l,n._popUpWindow=l,l},n.copyStyles=function(e,t){for(var n=[],r=0;r<e.styleSheets.length;r++){var o=e.styleSheets[r];try{if(o.href){var i=e.createElement("link");i.rel="stylesheet",i.href=o.href,t.head.appendChild(i),n.push(i)}else if(o.cssRules){for(var a=e.createElement("style"),l=0,s=o.cssRules;l<s.length;l++){var c=s[l];".right-panel #preview-config-bar .button"!==c.selectorText&&a.appendChild(e.createTextNode(c.cssText))}t.head.appendChild(a),n.push(a)}}catch(e){console.log(e)}}},n.createPreviewMeshControlHost=function(e,t){if(t){var r=t.ownerDocument.createElement("div");r.id="PreviewMeshControl-host",r.style.width=e.embedHostWidth||"auto",r.style.display="block",r.style.height="30px",t.appendChild(r);var i=o.createElement(et,{globalState:n.props.globalState,togglePreviewAreaComponent:n.handlePopUp});a.render(i,r)}},n.createPreviewHost=function(e,t){if(t){var r=t.ownerDocument.createElement("div");r.id="PreviewAreaComponent-host",r.style.width=e.embedHostWidth||"auto",r.style.display="block",t.appendChild(r),n._previewHost=r,e.overlay||(n._previewHost.style.position="relative")}if(n._previewHost){var i=o.createElement(tt,{globalState:n.props.globalState,width:200});a.render(i,n._previewHost)}},n.fixPopUpStyles=function(e){var t=e.getElementById("preview");t&&(t.style.height="calc(100% - 60px)");var n=e.getElementById("preview-new-window");n&&(n.style.display="none")},n.state={showPreviewPopUp:!1},n.props.globalState.onRebuildRequiredObservable.add((function(){n.props.globalState.nodeMaterial&&n.buildMaterial()})),n.props.globalState.onResetRequiredObservable.add((function(){n.build(),n.props.globalState.nodeMaterial&&n.buildMaterial()})),n.props.globalState.onZoomToFitRequiredObservable.add((function(){n.zoomToFit()})),n.props.globalState.onReOrganizedRequiredObservable.add((function(){n.reOrganize()})),n.props.globalState.onGetNodeFromBlock=function(e){return n._graphCanvas.findNodeFromBlock(e)},n.props.globalState.hostDocument.addEventListener("keydown",(function(e){if((46===e.keyCode||8===e.keyCode)&&!n.props.globalState.blockKeyboardEvents){for(var t=0,r=l=n._graphCanvas.selectedNodes;t<r.length;t++){var o=r[t];o.dispose();var i=o.block;n.props.globalState.nodeMaterial.removeBlock(i);var a=n._blocks.indexOf(i);a>-1&&n._blocks.splice(a,1)}return n._graphCanvas.selectedLink&&n._graphCanvas.selectedLink.dispose(),n._graphCanvas.selectedFrame&&n._graphCanvas.selectedFrame.dispose(),n.props.globalState.onSelectionChangedObservable.notifyObservers(null),void n.props.globalState.onRebuildRequiredObservable.notifyObservers()}if(e.ctrlKey&&!n.props.globalState.blockKeyboardEvents)if("c"===e.key){if(n._copiedNodes=[],n._copiedFrame=null,n._graphCanvas.selectedFrame)return void(n._copiedFrame=n._graphCanvas.selectedFrame);var l;if(!(l=n._graphCanvas.selectedNodes).length)return;if(!l[0].block)return;n._copiedNodes=l.slice(0)}else if("v"===e.key){var s=n.props.globalState.hostDocument.querySelector(".diagram-container"),c=n._graphCanvas.zoom,u=(n._mouseLocationY-s.offsetTop-n._graphCanvas.y-20)/c;if(n._copiedFrame){var p=new Ge(null,n._graphCanvas,!0);n._graphCanvas.frames.push(p),p.width=n._copiedFrame.width,p.height=n._copiedFrame.height,p.width,p.name=n._copiedFrame.name,p.color=n._copiedFrame.color;var d=(n._mouseLocationX-s.offsetLeft-n._graphCanvas.x)/c;return p.x=d-p.width/2,p.y=u,n._copiedFrame.nodes.length&&(d=p.x+n._copiedFrame.nodes[0].x-n._copiedFrame.x,u=p.y+n._copiedFrame.nodes[0].y-n._copiedFrame.y,n.pasteSelection(n._copiedFrame.nodes,d,u)),void(n._copiedFrame.isCollapsed&&(p.isCollapsed=!0))}if(!n._copiedNodes.length)return;var f=(n._mouseLocationX-s.offsetLeft-n._graphCanvas.x-n.NodeWidth)/c;n.pasteSelection(n._copiedNodes,f,u)}}),!1),n}return p(t,e),t.prototype.createNodeFromObject=function(e,t){if(void 0===t&&(t=!0),-1!==this._blocks.indexOf(e))return this._graphCanvas.nodes.filter((function(t){return t.block===e}))[0];if(this._blocks.push(e),-1===this.props.globalState.nodeMaterial.attachedBlocks.indexOf(e)&&this.props.globalState.nodeMaterial.attachedBlocks.push(e),e.isFinalMerger&&this.props.globalState.nodeMaterial.addOutputNode(e),e.inputs.length)for(var n=0,r=e.inputs;n<r.length;n++){(l=r[n]).isConnected&&t&&this.createNodeFromObject(l.sourceBlock)}var o=this._graphCanvas.appendBlock(e);if(e.inputs.length&&t)for(var i=0,a=e.inputs;i<a.length;i++){var l;(l=a[i]).isConnected&&this._graphCanvas.connectPorts(l.connectedPoint,l)}return o},t.prototype.addValueNode=function(e){var t=Le.GetConnectionNodeTypeFromString(e),n=new l.InputBlock(e,void 0,t);return this.createNodeFromObject(n)},t.prototype.componentDidMount=function(){this.props.globalState.hostDocument&&(this._graphCanvas=this.refs.graphCanvas,this._previewManager=new Je(this.props.globalState.hostDocument.getElementById("preview-canvas"),this.props.globalState)),-1!==navigator.userAgent.indexOf("Mobile")&&((this.props.globalState.hostDocument||document).querySelector(".blocker").style.visibility="visible"),this.build()},t.prototype.componentWillUnmount=function(){this.props.globalState.hostDocument&&this.props.globalState.hostDocument.removeEventListener("keyup",this._onWidgetKeyUpPointer,!1),this._previewManager&&this._previewManager.dispose()},t.prototype.reconnectNewNodes=function(e,t,n,r){if(!r[e]){for(var o=t[e],i=o.block,a=n[e],l=function(){var e=a.block.inputs[c],o=i.inputs[c];if(!e.isConnected)return"continue";var l=e.connectedPoint.ownerBlock,u=n.filter((function(e){return e.block===l}));if(u.length>0){var p=u[0],d=n.indexOf(p);s.reconnectNewNodes(d,t,n,r);var f=l.outputs.indexOf(e.connectedPoint);t[d].block.outputs[f].connectTo(o)}else e._connectedPoint.connectTo(o);s._graphCanvas.connectPorts(o.connectedPoint,o)},s=this,c=0;c<a.block.inputs.length;c++)l();o.refresh(),r[e]=!0}},t.prototype.pasteSelection=function(e,t,n){for(var r=null,o=[],i=0,a=e;i<a.length;i++){var l=a[i],s=l.block;if(s){var c=s.clone(this.props.globalState.nodeMaterial.getScene());if(!c)return;var u=this.createNodeFromObject(c,!1),p=0,d=0;r?(p=t+l.x-r.x,d=n+l.y-r.y):(r=l,p=t,d=n),u.x=p,u.y=d,u.cleanAccumulation(),o.push(u)}}for(var f=new Array(o.length),h=0;h<o.length;h++)this.reconnectNewNodes(h,o,e,f)},t.prototype.zoomToFit=function(){this._graphCanvas.zoomToFit()},t.prototype.buildMaterial=function(){if(this.props.globalState.nodeMaterial){try{this.props.globalState.nodeMaterial.options.emitComments=!0,this.props.globalState.nodeMaterial.build(!0),this.props.globalState.onLogRequiredObservable.notifyObservers(new Qe("Node material build successful",!1))}catch(e){this.props.globalState.onLogRequiredObservable.notifyObservers(new Qe(e,!0))}K.UpdateLocations(this.props.globalState.nodeMaterial,this.props.globalState),this.props.globalState.onBuiltObservable.notifyObservers()}},t.prototype.build=function(){var e=this,t=this.props.globalState.nodeMaterial.editorData;if(t instanceof Array&&(t={locations:t}),this._blocks=[],this._graphCanvas.reset(),this.props.globalState.nodeMaterial){var n=this.props.globalState.nodeMaterial;n._vertexOutputNodes.forEach((function(t){e.createNodeFromObject(t)})),n._fragmentOutputNodes.forEach((function(t){e.createNodeFromObject(t)})),n.attachedBlocks.forEach((function(t){e.createNodeFromObject(t)})),n.attachedBlocks.forEach((function(t){if(t.inputs.length)for(var n=0,r=t.inputs;n<r.length;n++){var o=r[n];o.isConnected&&e._graphCanvas.connectPorts(o.connectedPoint,o)}}))}this.reOrganize(t)},t.prototype.reOrganize=function(e){if(void 0===e&&(e=null),e&&e.locations){for(var t=0,n=e.locations;t<n.length;t++)for(var r=n[t],o=0,i=this._graphCanvas.nodes;o<i.length;o++){var a=i[o];if(a.block&&a.block.uniqueId===r.blockId){a.x=r.x,a.y=r.y,a.cleanAccumulation();break}}this._graphCanvas.processEditorData(e)}else this._graphCanvas.distributeGraph()},t.prototype.onPointerDown=function(e){this._startX=e.clientX,this._moveInProgress=!0,e.currentTarget.setPointerCapture(e.pointerId)},t.prototype.onPointerUp=function(e){this._moveInProgress=!1,e.currentTarget.releasePointerCapture(e.pointerId)},t.prototype.resizeColumns=function(e,t){if(void 0===t&&(t=!0),this._moveInProgress){var n=e.clientX-this._startX,r=e.currentTarget.ownerDocument.getElementById("node-editor-graph-root");t?(this._leftWidth+=n,this._leftWidth=Math.max(150,Math.min(400,this._leftWidth)),s.StoreNumber("LeftWidth",this._leftWidth)):(this._rightWidth-=n,this._rightWidth=Math.max(250,Math.min(500,this._rightWidth)),s.StoreNumber("RightWidth",this._rightWidth),r.ownerDocument.getElementById("preview").style.height=this._rightWidth+"px"),r.style.gridTemplateColumns=this.buildColumnLayout(),this._startX=e.clientX}},t.prototype.buildColumnLayout=function(){return this._leftWidth+"px 4px calc(100% - "+(this._leftWidth+8+this._rightWidth)+"px) 4px "+this._rightWidth+"px"},t.prototype.emitNewBlock=function(e){var t,n=this,r=e.dataTransfer.getData("babylonjs-material-node");if(-1===r.indexOf("Block"))t=this.addValueNode(r);else{var o=Le.GetBlockFromString(r,this.props.globalState.nodeMaterial.getScene(),this.props.globalState.nodeMaterial);if(o.isUnique)for(var i=o.getClassName(),a=0,l=this._blocks;a<l.length;a++){var s=l[a];if(s!==o&&s.getClassName()===i)return void this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers("You can only have one "+i+" per graph")}o.autoConfigure(this.props.globalState.nodeMaterial),t=this.createNodeFromObject(o)}var c=e.clientX-e.currentTarget.offsetLeft-this._graphCanvas.x-this.NodeWidth,u=e.clientY-e.currentTarget.offsetTop-this._graphCanvas.y-20;t.x=c/this._graphCanvas.zoom,t.y=u/this._graphCanvas.zoom,t.cleanAccumulation(),this.props.globalState.onSelectionChangedObservable.notifyObservers(null),this.props.globalState.onSelectionChangedObservable.notifyObservers(t);var p=t.block;c-=this.NodeWidth+150,p.inputs.forEach((function(e){if(e.connectedPoint){var t=n._graphCanvas.nodes.filter((function(t){return t.block===e.connectedPoint.ownerBlock}))[0];0===t.x&&0===t.y&&(t.x=c/n._graphCanvas.zoom,t.y=u/n._graphCanvas.zoom,t.cleanAccumulation(),u+=80)}})),this.forceUpdate()},t.prototype.render=function(){var e=this;return o.createElement(Ze,{globalState:this.props.globalState},o.createElement("div",{id:"node-editor-graph-root",style:{gridTemplateColumns:this.buildColumnLayout()},onMouseMove:function(t){e._mouseLocationX=t.pageX,e._mouseLocationY=t.pageY},onMouseDown:function(t){"INPUT"!==t.target.nodeName&&(e.props.globalState.blockKeyboardEvents=!1)}},o.createElement(X,{globalState:this.props.globalState}),o.createElement("div",{id:"leftGrab",onPointerDown:function(t){return e.onPointerDown(t)},onPointerUp:function(t){return e.onPointerUp(t)},onPointerMove:function(t){return e.resizeColumns(t)}}),o.createElement("div",{className:"diagram-container",onDrop:function(t){e.emitNewBlock(t)},onDragOver:function(e){e.preventDefault()}},o.createElement(ot,{ref:"graphCanvas",globalState:this.props.globalState})),o.createElement("div",{id:"rightGrab",onPointerDown:function(t){return e.onPointerDown(t)},onPointerUp:function(t){return e.onPointerUp(t)},onPointerMove:function(t){return e.resizeColumns(t,!1)}}),o.createElement("div",{className:"right-panel"},o.createElement(Xe,{globalState:this.props.globalState}),this.state.showPreviewPopUp?null:o.createElement(et,{globalState:this.props.globalState,togglePreviewAreaComponent:this.handlePopUp}),this.state.showPreviewPopUp?null:o.createElement(tt,{globalState:this.props.globalState,width:this._rightWidth})),o.createElement($e,{globalState:this.props.globalState})),o.createElement(Ke,{globalState:this.props.globalState}),o.createElement("div",{className:"blocker"},"Node Material Editor runs only on desktop"))},t}(o.Component),at=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 s=l.document,c=s.createElement("link");c.rel="stylesheet",c.href="https://use.typekit.net/cta4xsb.css",s.head.appendChild(c),s.title=e,s.body.style.width="100%",s.body.style.height="100%",s.body.style.margin="0",s.body.style.padding="0";var u=s.createElement("div");return u.style.width="100%",u.style.height="100%",u.style.margin="0",u.style.padding="0",l.document.body.appendChild(u),this._CopyStyles(window.document,s),setTimeout((function(){o._CopyStyles(window.document,s)}),0),this[t]=l,u},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 s=e.createElement("link");s.rel="stylesheet",s.href=r.href,t.head.appendChild(s)}}catch(e){console.log(e)}}},e}(),lt=function(){function e(){}return e.Show=function(e){this._CurrentState&&((i=at["node-editor"])&&i.close());var t=e.hostElement;t||(t=at.CreatePopup("BABYLON.JS NODE EDITOR","node-editor",1e3,800));var n=new c;n.nodeMaterial=e.nodeMaterial,n.hostElement=t,n.hostDocument=t.ownerDocument,n.customSave=e.customSave,n.hostWindow=t.ownerDocument.defaultView;var r=o.createElement(it,{globalState:n});a.render(r,t),e.customLoadObservable&&e.customLoadObservable.add((function(e){K.Deserialize(e,n),n.onBuiltObservable.notifyObservers()})),this._CurrentState=n;var i=at["node-editor"];n.nodeMaterial&&i&&(n.nodeMaterial.getScene().onDisposeObservable.addOnce((function(){i&&i.close()})),window.onbeforeunload=function(){var e=at["node-editor"];e&&e.close()})},e}();n.d(t,"a",(function(){return lt}))},function(e,t,n){"use strict";var r=n(6);e.exports=l;var o="\0",i="\0",a="";function l(e){this._isDirected=!r.has(e,"directed")||e.directed,this._isMultigraph=!!r.has(e,"multigraph")&&e.multigraph,this._isCompound=!!r.has(e,"compound")&&e.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[i]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function s(e,t){e[t]?e[t]++:e[t]=1}function c(e,t){--e[t]||delete e[t]}function u(e,t,n,i){var l=""+t,s=""+n;if(!e&&l>s){var c=l;l=s,s=c}return l+a+s+a+(r.isUndefined(i)?o:i)}function p(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}var l={v:o,w:i};return r&&(l.name=r),l}function d(e,t){return u(e,t.v,t.w,t.name)}l.prototype._nodeCount=0,l.prototype._edgeCount=0,l.prototype.isDirected=function(){return this._isDirected},l.prototype.isMultigraph=function(){return this._isMultigraph},l.prototype.isCompound=function(){return this._isCompound},l.prototype.setGraph=function(e){return this._label=e,this},l.prototype.graph=function(){return this._label},l.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},l.prototype.nodeCount=function(){return this._nodeCount},l.prototype.nodes=function(){return r.keys(this._nodes)},l.prototype.sources=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._in[t])}))},l.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._out[t])}))},l.prototype.setNodes=function(e,t){var n=arguments,o=this;return r.each(e,(function(e){n.length>1?o.setNode(e,t):o.setNode(e)})),this},l.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=i,this._children[e]={},this._children[i][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},l.prototype.node=function(e){return this._nodes[e]},l.prototype.hasNode=function(e){return r.has(this._nodes,e)},l.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},l.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=i;else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},l.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},l.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==i)return t}},l.prototype.children=function(e){if(r.isUndefined(e)&&(e=i),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===i)return this.nodes();if(this.hasNode(e))return[]}},l.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},l.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},l.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},l.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},l.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),r.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var o={};return this._isCompound&&r.each(t.nodes(),(function(e){t.setParent(e,function e(r){var i=n.parent(r);return void 0===i||t.hasNode(i)?(o[r]=i,i):i in o?o[i]:e(i)}(e))})),t},l.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},l.prototype.edgeCount=function(){return this._edgeCount},l.prototype.edges=function(){return r.values(this._edgeObjs)},l.prototype.setPath=function(e,t){var n=this,o=arguments;return r.reduce(e,(function(e,r){return o.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r})),this},l.prototype.setEdge=function(){var e,t,n,o,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(e=a.v,t=a.w,n=a.name,2===arguments.length&&(o=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var l=u(this._isDirected,e,t,n);if(r.has(this._edgeLabels,l))return i&&(this._edgeLabels[l]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[l]=i?o:this._defaultEdgeLabelFn(e,t,n);var c=p(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[l]=c,s(this._preds[t],e),s(this._sucs[e],t),this._in[t][l]=c,this._out[e][l]=c,this._edgeCount++,this},l.prototype.edge=function(e,t,n){var r=1===arguments.length?d(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return this._edgeLabels[r]},l.prototype.hasEdge=function(e,t,n){var o=1===arguments.length?d(this._isDirected,arguments[0]):u(this._isDirected,e,t,n);return r.has(this._edgeLabels,o)},l.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?d(this._isDirected,arguments[0]):u(this._isDirected,e,t,n),o=this._edgeObjs[r];return o&&(e=o.v,t=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],c(this._preds[t],e),c(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},l.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var o=r.values(n);return t?r.filter(o,(function(e){return e.v===t})):o}},l.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var o=r.values(n);return t?r.filter(o,(function(e){return e.w===t})):o}},l.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t,n){var r=n(15)(n(9),"Map");e.exports=r},function(e,t,n){var r=n(161),o=n(168),i=n(170),a=n(171),l=n(172);function s(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])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return 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){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){(function(e){var r=n(73),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l}).call(this,n(54)(e))},function(e,t,n){var r=n(41),o=n(178),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(80),o=n(81),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=l},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(86);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(63),o=n(14);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(197)();e.exports=r},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(44),o=n(31);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(4),o=n(23),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(59),o=n(231);e.exports=function e(t,n,i,a,l){var s=-1,c=t.length;for(i||(i=o),l||(l=[]);++s<c;){var u=t[s];n>0&&i(u)?n>1?e(u,n-1,i,a,l):r(l,u):a||(l[l.length]=u)}return l}},function(e,t,n){var r=n(23);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o<i;){var a=e[o],l=t(a);if(null!=l&&(void 0===s?l==l&&!r(l):n(l,s)))var s=l,c=a}return c}},function(e,t,n){"use strict";(function(e,r){function o(e){return(o="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})(e)}function i(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 a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(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){a(e,t,n[t])}))}return e}function s(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 Me}));var c=function(){},u={},p={},d={mark:c,measure:c};try{"undefined"!=typeof window&&(u=window),"undefined"!=typeof document&&(p=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&(d=performance)}catch(e){}var f=(u.navigator||{}).userAgent,h=void 0===f?"":f,m=u,g=p,v=d,b=(m.document,!!g.documentElement&&!!g.head&&"function"==typeof g.addEventListener&&"function"==typeof g.createElement),y=(~h.indexOf("MSIE")||h.indexOf("Trident/"),"fa"),w="svg-inline--fa",x="data-fa-i2svg",k=(function(){try{}catch(e){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),_=k.concat([11,12,13,14,15,16,17,18,19,20]),C={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},E=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",C.GROUP,C.SWAP_OPACITY,C.PRIMARY,C.SECONDARY].concat(k.map((function(e){return"".concat(e,"x")}))).concat(_.map((function(e){return"w-".concat(e)}))),m.FontAwesomeConfig||{});if(g&&"function"==typeof g.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-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=s(e,2),n=t[0],r=t[1],o=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=g.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=o&&(E[r]=o)}))}var S=l({},{familyPrefix:y,replacementClass:w,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},E);S.autoReplaceSvg||(S.observeMutations=!1);var T=l({},S);m.FontAwesomeConfig=T;var P=m||{};P.___FONT_AWESOME___||(P.___FONT_AWESOME___={}),P.___FONT_AWESOME___.styles||(P.___FONT_AWESOME___.styles={}),P.___FONT_AWESOME___.hooks||(P.___FONT_AWESOME___.hooks={}),P.___FONT_AWESOME___.shims||(P.___FONT_AWESOME___.shims=[]);var N=P.___FONT_AWESOME___,O=[];b&&((g.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(g.readyState)||g.addEventListener("DOMContentLoaded",(function e(){g.removeEventListener("DOMContentLoaded",e),1,O.map((function(e){return e()}))})));var B,M="pending",L="settled",R="fulfilled",I="rejected",A=function(){},j=void 0!==e&&void 0!==e.process&&"function"==typeof e.process.emit,D=void 0===r?setTimeout:r,z=[];function F(){for(var e=0;e<z.length;e++)z[e][0](z[e][1]);z=[],B=!1}function U(e,t){z.push([e,t]),B||(B=!0,D(F,0))}function V(e){var t=e.owner,n=t._state,r=t._data,o=e[n],i=e.then;if("function"==typeof o){n=R;try{r=o(r)}catch(e){G(i,e)}}W(i,r)||(n===R&&Y(i,r),n===I&&G(i,r))}function W(e,t){var n;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"===o(t))){var r=t.then;if("function"==typeof r)return r.call(t,(function(r){n||(n=!0,t===r?H(e,r):Y(e,r))}),(function(t){n||(n=!0,G(e,t))})),!0}}catch(t){return n||G(e,t),!0}return!1}function Y(e,t){e!==t&&W(e,t)||H(e,t)}function H(e,t){e._state===M&&(e._state=L,e._data=t,U(X,e))}function G(e,t){e._state===M&&(e._state=L,e._data=t,U(Z,e))}function q(e){e._then=e._then.forEach(V)}function X(e){e._state=R,q(e)}function Z(t){t._state=I,q(t),!t._handled&&j&&e.process.emit("unhandledRejection",t._data,t)}function Q(t){e.process.emit("rejectionHandled",t)}function $(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof $==!1)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(e,t){function n(e){G(t,e)}try{e((function(e){Y(t,e)}),n)}catch(e){n(e)}}(e,this)}$.prototype={constructor:$,_state:M,_then:null,_data:void 0,_handled:!1,then:function(e,t){var n={owner:this,then:new this.constructor(A),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,this._state===I&&j&&U(Q,this)),this._state===R||this._state===I?U(V,n):this._then.push(n),n.then},catch:function(e){return this.then(null,e)}},$.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new $((function(t,n){var r=[],o=0;function i(e){return o++,function(n){r[e]=n,--o||t(r)}}for(var a,l=0;l<e.length;l++)(a=e[l])&&"function"==typeof a.then?a.then(i(l),n):r[l]=a;o||t(r)}))},$.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new $((function(t,n){for(var r,o=0;o<e.length;o++)(r=e[o])&&"function"==typeof r.then?r.then(t,n):t(r)}))},$.resolve=function(e){return e&&"object"===o(e)&&e.constructor===$?e:new $((function(t){t(e)}))},$.reject=function(e){return new $((function(t,n){n(e)}))};"function"==typeof Promise&&Promise;var K={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function J(e){if(e&&b){var t=g.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=g.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 g.head.insertBefore(t,r),e}}var ee="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function te(){for(var e=12,t="";e-- >0;)t+=ee[62*Math.random()|0];return t}function ne(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function re(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function oe(e){return e.size!==K.size||e.x!==K.x||e.y!==K.y||e.rotate!==K.rotate||e.flipX||e.flipY}function ie(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 ae={x:0,y:0,width:"100%",height:"100%"};function le(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function se(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,i=e.iconName,a=e.transform,s=e.symbol,c=e.title,u=e.extra,p=e.watchable,d=void 0!==p&&p,f=r.found?r:n,h=f.width,m=f.height,g="fa-w-".concat(Math.ceil(h/m*16)),v=[T.replacementClass,i?"".concat(T.familyPrefix,"-").concat(i):"",g].filter((function(e){return-1===u.classes.indexOf(e)})).concat(u.classes).join(" "),b={children:[],attributes:l({},u.attributes,{"data-prefix":o,"data-icon":i,class:v,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(h," ").concat(m)})};d&&(b.attributes[x]=""),c&&b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(te())},children:[c]});var y=l({},b,{prefix:o,iconName:i,main:n,mask:r,transform:a,symbol:s,styles:u.styles}),w=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,o=e.main,i=e.mask,a=e.transform,s=o.width,c=o.icon,u=i.width,p=i.icon,d=ie({transform:a,containerWidth:u,iconWidth:s}),f={tag:"rect",attributes:l({},ae,{fill:"white"})},h=c.children?{children:c.children.map(le)}:{},m={tag:"g",attributes:l({},d.inner),children:[le(l({tag:c.tag,attributes:l({},c.attributes,d.path)},h))]},g={tag:"g",attributes:l({},d.outer),children:[m]},v="mask-".concat(te()),b="clip-".concat(te()),y={tag:"mask",attributes:l({},ae,{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,g]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(t=p,"g"===t.tag?t.children:[t])},y]};return n.push(w,{tag:"rect",attributes:l({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(v,")")},ae)}),{children:n,attributes:r}}(y):function(e){var t=e.children,n=e.attributes,r=e.main,o=e.transform,i=re(e.styles);if(i.length>0&&(n.style=i),oe(o)){var a=ie({transform:o,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:l({},a.outer),children:[{tag:"g",attributes:l({},a.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:l({},r.icon.attributes,a.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(y),k=w.children,_=w.attributes;return y.children=k,y.attributes=_,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,i=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:l({},o,{id:!0===i?"".concat(t,"-").concat(T.familyPrefix,"-").concat(n):i}),children:r}]}]}(y):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,i=e.styles,a=e.transform;if(oe(a)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};o.style=re(l({},i,{"transform-origin":"".concat(s.x+a.x/16,"em ").concat(s.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(y)}var ce=function(){},ue=(T.measurePerformance&&v&&v.mark&&v.measure,function(e,t,n,r){var o,i,a,l=Object.keys(e),s=l.length,c=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<s;o++)a=c(a,e[i=l[o]],i,e);return a});function pe(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,r=void 0!==n&&n,o=Object.keys(t).reduce((function(e,n){var r=t[n];return!!r.icon?e[r.iconName]=r.icon:e[n]=r,e}),{});"function"!=typeof N.hooks.addPack||r?N.styles[e]=l({},N.styles[e]||{},o):N.hooks.addPack(e,o),"fas"===e&&pe("fa",t)}var de=N.styles,fe=N.shims,he=function(){var e=function(e){return ue(de,(function(t,n,r){return t[r]=ue(n,e,{}),t}),{})};e((function(e,t,n){return t[3]&&(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 de;ue(fe,(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}),{})};he();N.styles;function me(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function ge(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?ne(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(ne(e[n]),'" ')}),"").trim()}(r),">").concat(i.map(ge).join(""),"</").concat(t,">")}var ve=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 be(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}be.prototype=Object.create(Error.prototype),be.prototype.constructor=be;var ye={fill:"currentColor"},we={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},xe={tag:"path",attributes:l({},ye,{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"})},ke=l({},we,{attributeName:"opacity"});l({},ye,{cx:"256",cy:"364",r:"28"}),l({},we,{attributeName:"r",values:"28;14;28;28;14;28;"}),l({},ke,{values:"1;0;1;1;0;1;"}),l({},ye,{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"}),l({},ke,{values:"1;0;0;0;0;1;"}),l({},ye,{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"}),l({},ke,{values:"0;0;1;1;0;0;"}),N.styles;function _e(e){var t=e[0],n=e[1],r=s(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(T.familyPrefix,"-").concat(C.GROUP)},children:[{tag:"path",attributes:{class:"".concat(T.familyPrefix,"-").concat(C.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(T.familyPrefix,"-").concat(C.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}N.styles;var Ce='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-both, .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:root .fa-flip-both {\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}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';function Ee(){var e=y,t=w,n=T.familyPrefix,r=T.replacementClass,o=Ce;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(l,".".concat(r))}return o}function Se(){T.autoAddCss&&!Be&&(J(Ee()),Be=!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 ge(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(b){var t=g.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Pe(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return me(Oe.definitions,n,r)||me(N.styles,n,r)}var Ne,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,r;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]=l({},e.definitions[t]||{},o[t]),pe(t,o[t]),he()}))}},{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}}])&&i(t.prototype,n),r&&i(t,r),e}()),Be=!1,Me={transform:function(e){return ve(e)}},Le=(Ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?K:n,o=t.symbol,i=void 0!==o&&o,a=t.mask,s=void 0===a?null:a,c=t.title,u=void 0===c?null:c,p=t.classes,d=void 0===p?[]:p,f=t.attributes,h=void 0===f?{}:f,m=t.styles,g=void 0===m?{}:m;if(e){var v=e.prefix,b=e.iconName,y=e.icon;return Te(l({type:"icon"},e),(function(){return Se(),T.autoA11y&&(u?h["aria-labelledby"]="".concat(T.replacementClass,"-title-").concat(te()):(h["aria-hidden"]="true",h.focusable="false")),se({icons:{main:_e(y),mask:s?_e(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:v,iconName:b,transform:l({},K,r),symbol:i,title:u,extra:{attributes:h,styles:g,classes:d}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:Pe(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:Pe(r||{})),Ne(n,l({},t,{mask:r}))})}).call(this,n(24),n(130).setImmediate)},function(e,t,n){e.exports={graphlib:n(8),layout:n(255),debug:n(314),util:{time:n(5).time,notime:n(5).notime},version:n(315)}},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;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=a(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(s[u]=n[u]);if(r){l=r(n);for(var p=0;p<l.length;p++)i.call(n,l[p])&&(s[l[p]]=n[l[p]])}}return s}},function(e,t,n){var r=n(32),o=n(53),i=n(37),a=n(173),l=n(179),s=n(78),c=n(79),u=n(182),p=n(183),d=n(83),f=n(184),h=n(22),m=n(188),g=n(189),v=n(88),b=n(4),y=n(20),w=n(193),x=n(7),k=n(195),_=n(14),C=1,E=2,S=4,T="[object Arguments]",P="[object Function]",N="[object GeneratorFunction]",O="[object Object]",B={};B[T]=B["[object Array]"]=B["[object ArrayBuffer]"]=B["[object DataView]"]=B["[object Boolean]"]=B["[object Date]"]=B["[object Float32Array]"]=B["[object Float64Array]"]=B["[object Int8Array]"]=B["[object Int16Array]"]=B["[object Int32Array]"]=B["[object Map]"]=B["[object Number]"]=B[O]=B["[object RegExp]"]=B["[object Set]"]=B["[object String]"]=B["[object Symbol]"]=B["[object Uint8Array]"]=B["[object Uint8ClampedArray]"]=B["[object Uint16Array]"]=B["[object Uint32Array]"]=!0,B["[object Error]"]=B[P]=B["[object WeakMap]"]=!1,e.exports=function e(t,n,M,L,R,I){var A,j=n&C,D=n&E,z=n&S;if(M&&(A=R?M(t,L,R,I):M(t)),void 0!==A)return A;if(!x(t))return t;var F=b(t);if(F){if(A=m(t),!j)return c(t,A)}else{var U=h(t),V=U==P||U==N;if(y(t))return s(t,j);if(U==O||U==T||V&&!R){if(A=D||V?{}:v(t),!j)return D?p(t,l(A,t)):u(t,a(A,t))}else{if(!B[U])return R?t:{};A=g(t,U,j)}}I||(I=new r);var W=I.get(t);if(W)return W;I.set(t,A),k(t)?t.forEach((function(r){A.add(e(r,n,M,r,t,I))})):w(t)&&t.forEach((function(r,o){A.set(o,e(r,n,M,o,t,I))}));var Y=z?D?f:d:D?keysIn:_,H=F?void 0:Y(t);return o(H||t,(function(r,o){H&&(r=t[o=r]),i(A,o,e(r,n,M,o,t,I))})),A}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(24))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(15),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(174),o=n(29),i=n(4),a=n(20),l=n(39),s=n(30),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),p=!n&&!u&&a(e),d=!n&&!u&&!p&&s(e),f=n||u||p||d,h=f?r(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||f&&("length"==g||p&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||l(g,m))||h.push(g);return h}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){(function(e){var r=n(9),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,l=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(54)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t){e.exports=function(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(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(59),o=n(42),i=n(58),a=n(81),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=l},function(e,t,n){var r=n(84),o=n(58),i=n(14);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(59),o=n(4);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(15)(n(9),"Set");e.exports=r},function(e,t,n){var r=n(9).Uint8Array;e.exports=r},function(e,t,n){var r=n(60);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(89),o=n(42),i=n(41);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(7),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){e.exports=n(91)},function(e,t,n){var r=n(53),o=n(43),i=n(92),a=n(4);e.exports=function(e,t){return(a(e)?r:o)(e,i(t))}},function(e,t,n){var r=n(17);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(80),o=n(199),i=n(12),a=n(4);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},function(e,t,n){var r=n(202),o=n(10);e.exports=function e(t,n,i,a,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,l))}},function(e,t,n){var r=n(96),o=n(205),i=n(97),a=1,l=2;e.exports=function(e,t,n,s,c,u){var p=n&a,d=e.length,f=t.length;if(d!=f&&!(p&&f>d))return!1;var h=u.get(e);if(h&&u.get(t))return h==t;var m=-1,g=!0,v=n&l?new r:void 0;for(u.set(e,t),u.set(t,e);++m<d;){var b=e[m],y=t[m];if(s)var w=p?s(y,b,m,t,e,u):s(b,y,m,e,t,u);if(void 0!==w){if(w)continue;g=!1;break}if(v){if(!o(t,(function(e,t){if(!i(v,t)&&(b===e||c(b,e,n,s,u)))return v.push(t)}))){g=!1;break}}else if(b!==y&&!c(b,y,n,s,u)){g=!1;break}}return u.delete(e),u.delete(t),g}},function(e,t,n){var r=n(52),o=n(203),i=n(204);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(7);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(215);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(216),o=n(102);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){var r=n(44),o=n(29),i=n(4),a=n(39),l=n(55),s=n(31);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,p=!1;++c<u;){var d=s(t[c]);if(!(p=null!=e&&n(e,d)))break;e=e[d]}return p||++c!=u?p:!!(u=null==e?0:e.length)&&l(u)&&a(d,u)&&(i(e)||o(e))}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(219),o=n(102);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){var r=n(45),o=n(12),i=n(107),a=n(4);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},function(e,t,n){var r=n(43),o=n(11);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},function(e,t,n){var r=n(221),o=n(43),i=n(12),a=n(222),l=n(4);e.exports=function(e,t,n){var s=l(e)?r:a,c=arguments.length<3;return s(e,i(t,4),n,c,o)}},function(e,t,n){var r=n(232),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,l=o(i.length-t,0),s=Array(l);++a<l;)s[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(s),r(e,this,c)}}},function(e,t,n){var r=n(233),o=n(234)(r);e.exports=o},function(e,t){e.exports=function(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(e,t,n){var r=n(11),o=n(10);e.exports=function(e){return o(e)&&r(e)}},function(e,t,n){var r=n(243),o=n(14);e.exports=function(e){return null==e?[]:r(e,o(e))}},function(e,t,n){var r=n(6),o=n(115);e.exports=function(e,t,n,r){return function(e,t,n,r){var i,a,l={},s=new o,c=function(e){var t=e.v!==i?e.v:e.w,r=l[t],o=n(e),c=a.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+e+" Weight: "+o);c<r.distance&&(r.distance=c,r.predecessor=i,s.decrease(t,c))};e.nodes().forEach((function(e){var n=e===t?0:Number.POSITIVE_INFINITY;l[e]={distance:n},s.add(e,n)}));for(;s.size()>0&&(i=s.removeMin(),(a=l[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return l}(e,String(t),n||i,r||function(t){return e.outEdges(t)})};var i=r.constant(1)},function(e,t,n){var r=n(6);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var o=this._arr,i=o.length;return n[e]=i,o.push({key:e,priority:t}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},o.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,o=e;n<t.length&&(o=t[n].priority<t[o].priority?n:o,r<t.length&&(o=t[r].priority<t[o].priority?r:o),o!==e&&(this._swap(e,o),this._heapify(o)))},o.prototype._decrease=function(e){for(var t,n=this._arr,r=n[e].priority;0!==e&&!(n[t=e>>1].priority<r);)this._swap(e,t),e=t},o.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,o=n[e],i=n[t];n[e]=i,n[t]=o,r[i.key]=e,r[o.key]=t}},function(e,t,n){var r=n(6);e.exports=function(e){var t=0,n=[],o={},i=[];return e.nodes().forEach((function(a){r.has(o,a)||function a(l){var s=o[l]={onStack:!0,lowlink:t,index:t++};n.push(l);e.successors(l).forEach((function(e){r.has(o,e)?o[e].onStack&&(s.lowlink=Math.min(s.lowlink,o[e].index)):(a(e),s.lowlink=Math.min(s.lowlink,o[e].lowlink))}));if(s.lowlink===s.index){var c,u=[];do{c=n.pop(),o[c].onStack=!1,u.push(c)}while(l!==c);i.push(u)}}(a)})),i}},function(e,t,n){var r=n(6);function o(e){var t={},n={},o=[];if(r.each(e.sinks(),(function a(l){if(r.has(n,l))throw new i;r.has(t,l)||(n[l]=!0,t[l]=!0,r.each(e.predecessors(l),a),delete n[l],o.push(l))})),r.size(t)!==e.nodeCount())throw new i;return o}function i(){}e.exports=o,o.CycleException=i,i.prototype=new Error},function(e,t,n){var r=n(6);e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return r.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);!function e(t,n,o,i,a,l){r.has(i,n)||(i[n]=!0,o||l.push(n),r.each(a(n),(function(n){e(t,n,o,i,a,l)})),o&&l.push(n))}(e,t,"post"===n,a,o,i)})),i}},function(e,t,n){var r=n(262),o=1/0,i=17976931348623157e292;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*i:e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(67);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(38),o=n(18);e.exports=function(e,t,n){(void 0===n||o(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t){e.exports=function(e,t){return e<t}},function(e,t,n){"use strict";var r=n(3),o=n(8).Graph,i=n(48).slack;function a(e,t){return r.forEach(e.nodes(),(function n(o){r.forEach(t.nodeEdges(o),(function(r){var a=r.v,l=o===a?r.w:a;e.hasNode(l)||i(t,r)||(e.setNode(l,{}),e.setEdge(o,l,{}),n(l))}))})),e.nodeCount()}function l(e,t){return r.minBy(t.edges(),(function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return i(t,n)}))}function s(e,t,n){r.forEach(e.nodes(),(function(e){t.node(e).rank+=n}))}e.exports=function(e){var t,n,r=new o({directed:!1}),c=e.nodes()[0],u=e.nodeCount();r.setNode(c,{});for(;a(r,e)<u;)t=l(r,e),n=r.hasNode(t.v)?i(e,t):-i(e,t),s(r,e,n);return r}},function(e,t,n){"use strict";n.r(t),function(e){var r=n(49);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(24))},function(e,t,n){"use strict";
- /** @license React v16.9.0
- * 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(71),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,s=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,u=o?Symbol.for("react.provider"):60109,p=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.forward_ref"):60112,f=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.suspense_list"):60120,m=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116;o&&Symbol.for("react.fundamental"),o&&Symbol.for("react.responder");var v="function"==typeof Symbol&&Symbol.iterator;function b(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w={};function x(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||y}function k(){}function _(e,t,n){this.props=e,this.context=t,this.refs=w,this.updater=n||y}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw b(Error(85));this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=x.prototype;var C=_.prototype=new k;C.constructor=_,r(C,x.prototype),C.isPureReactComponent=!0;var E={current:null},S={suspense:null},T={current:null},P=Object.prototype.hasOwnProperty,N={key:!0,ref:!0,__self:!0,__source:!0};function O(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)P.call(t,r)&&!N.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:i,type:e,key:a,ref:l,props:o,_owner:T.current}}function B(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var M=/\/+/g,L=[];function R(e,t,n,r){if(L.length){var o=L.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 I(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>L.length&&L.push(e)}function A(e,t,n){return null==e?0:function e(t,n,r,o){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var s=!1;if(null===t)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case i:case a:s=!0}}if(s)return r(o,t,""===n?"."+j(t,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var u=n+j(l=t[c],c);s+=e(l,u,r,o)}else if(null===t||"object"!=typeof t?u=null:u="function"==typeof(u=v&&t[v]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),c=0;!(l=t.next()).done;)s+=e(l=l.value,u=n+j(l,c++),r,o);else if("object"===l)throw r=""+t,b(Error(31),"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,"");return s}(e,"",t,n)}function j(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 D(e,t){e.func.call(e.context,t,e.count++)}function z(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?F(e,r,n,(function(e){return e})):null!=e&&(B(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 F(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(M,"$&/")+"/"),A(e,z,t=R(t,i,r,o)),I(t)}function U(){var e=E.current;if(null===e)throw b(Error(321));return e}var V={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return F(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;A(e,D,t=R(null,null,t,n)),I(t)},count:function(e){return A(e,(function(){return null}),null)},toArray:function(e){var t=[];return F(e,t,null,(function(e){return e})),t},only:function(e){if(!B(e))throw b(Error(143));return e}},createRef:function(){return{current:null}},Component:x,PureComponent:_,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_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}},useCallback:function(e,t){return U().useCallback(e,t)},useContext:function(e,t){return U().useContext(e,t)},useEffect:function(e,t){return U().useEffect(e,t)},useImperativeHandle:function(e,t,n){return U().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return U().useLayoutEffect(e,t)},useMemo:function(e,t){return U().useMemo(e,t)},useReducer:function(e,t,n){return U().useReducer(e,t,n)},useRef:function(e){return U().useRef(e)},useState:function(e){return U().useState(e)},Fragment:l,Profiler:c,StrictMode:s,Suspense:f,unstable_SuspenseList:h,createElement:O,cloneElement:function(e,t,n){if(null==e)throw b(Error(267),e);var o=void 0,a=r({},e.props),l=e.key,s=e.ref,c=e._owner;if(null!=t){void 0!==t.ref&&(s=t.ref,c=T.current),void 0!==t.key&&(l=""+t.key);var u=void 0;for(o in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)P.call(t,o)&&!N.hasOwnProperty(o)&&(a[o]=void 0===t[o]&&void 0!==u?u[o]:t[o])}if(1===(o=arguments.length-2))a.children=n;else if(1<o){u=Array(o);for(var p=0;p<o;p++)u[p]=arguments[p+2];a.children=u}return{$$typeof:i,type:e.type,key:l,ref:s,props:a,_owner:c}},createFactory:function(e){var t=O.bind(null,e);return t.type=e,t},isValidElement:B,version:"16.9.0",unstable_withSuspenseConfig:function(e,t){var n=S.suspense;S.suspense=void 0===t?null:t;try{e()}finally{S.suspense=n}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:E,ReactCurrentBatchConfig:S,ReactCurrentOwner:T,IsSomeRendererActing:{current:!1},assign:r}},W={default:V},Y=W&&V||W;e.exports=Y.default||Y},function(e,t,n){"use strict";
- /** @license React v16.9.0
- * 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(1),o=n(71),i=n(128);function a(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}if(!r)throw a(Error(227));var l=null,s={};function c(){if(l)for(var e in s){var t=s[e],n=l.indexOf(e);if(!(-1<n))throw a(Error(96),e);if(!p[n]){if(!t.extractEvents)throw a(Error(97),e);for(var r in p[n]=t,n=t.eventTypes){var o=void 0,i=n[r],c=t,f=r;if(d.hasOwnProperty(f))throw a(Error(99),f);d[f]=i;var h=i.phasedRegistrationNames;if(h){for(o in h)h.hasOwnProperty(o)&&u(h[o],c,f);o=!0}else i.registrationName?(u(i.registrationName,c,f),o=!0):o=!1;if(!o)throw a(Error(98),r,e)}}}}function u(e,t,n){if(f[e])throw a(Error(100),e);f[e]=t,h[e]=t.eventTypes[n].dependencies}var p=[],d={},f={},h={};function m(e,t,n,r,o,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var g=!1,v=null,b=!1,y=null,w={onError:function(e){g=!0,v=e}};function x(e,t,n,r,o,i,a,l,s){g=!1,v=null,m.apply(w,arguments)}var k=null,_=null,C=null;function E(e,t,n){var r=e.type||"unknown-event";e.currentTarget=C(n),function(e,t,n,r,o,i,l,s,c){if(x.apply(this,arguments),g){if(!g)throw a(Error(198));var u=v;g=!1,v=null,b||(b=!0,y=u)}}(r,t,void 0,e),e.currentTarget=null}function S(e,t){if(null==t)throw a(Error(30));return 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 T(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var P=null;function N(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)E(e,t[r],n[r]);else t&&E(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function O(e){if(null!==e&&(P=S(P,e)),e=P,P=null,e){if(T(e,N),P)throw a(Error(95));if(b)throw e=y,b=!1,y=null,e}}var B={injectEventPluginOrder:function(e){if(l)throw a(Error(101));l=Array.prototype.slice.call(e),c()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!s.hasOwnProperty(t)||s[t]!==r){if(s[t])throw a(Error(102),t);s[t]=r,n=!0}}n&&c()}};function M(e,t){var n=e.stateNode;if(!n)return null;var r=k(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}if(e)return null;if(n&&"function"!=typeof n)throw a(Error(231),t,typeof n);return n}var L=Math.random().toString(36).slice(2),R="__reactInternalInstance$"+L,I="__reactEventHandlers$"+L;function A(e){if(e[R])return e[R];for(;!e[R];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[R]).tag||6===e.tag?e:null}function j(e){return!(e=e[R])||5!==e.tag&&6!==e.tag?null:e}function D(e){if(5===e.tag||6===e.tag)return e.stateNode;throw a(Error(33))}function z(e){return e[I]||null}function F(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function U(e,t,n){(t=M(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=S(n._dispatchListeners,t),n._dispatchInstances=S(n._dispatchInstances,e))}function V(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=F(t);for(t=n.length;0<t--;)U(n[t],"captured",e);for(t=0;t<n.length;t++)U(n[t],"bubbled",e)}}function W(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=M(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=S(n._dispatchListeners,t),n._dispatchInstances=S(n._dispatchInstances,e))}function Y(e){e&&e.dispatchConfig.registrationName&&W(e._targetInst,null,e)}function H(e){T(e,V)}var G=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement);function q(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var X={animationend:q("Animation","AnimationEnd"),animationiteration:q("Animation","AnimationIteration"),animationstart:q("Animation","AnimationStart"),transitionend:q("Transition","TransitionEnd")},Z={},Q={};function $(e){if(Z[e])return Z[e];if(!X[e])return e;var t,n=X[e];for(t in n)if(n.hasOwnProperty(t)&&t in Q)return Z[e]=n[t];return e}G&&(Q=document.createElement("div").style,"AnimationEvent"in window||(delete X.animationend.animation,delete X.animationiteration.animation,delete X.animationstart.animation),"TransitionEvent"in window||delete X.transitionend.transition);var K=$("animationend"),J=$("animationiteration"),ee=$("animationstart"),te=$("transitionend"),ne="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),re=null,oe=null,ie=null;function ae(){if(ie)return ie;var e,t,n=oe,r=n.length,o="value"in re?re.value:re.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 ie=o.slice(e,1<t?1-t:void 0)}function le(){return!0}function se(){return!1}function ce(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)?le:se,this.isPropagationStopped=se,this}function ue(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 pe(e){if(!(e instanceof this))throw a(Error(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function de(e){e.eventPool=[],e.getPooled=ue,e.release=pe}o(ce.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=le)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=le)},persist:function(){this.isPersistent=le},isPersistent:se,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=se,this._dispatchInstances=this._dispatchListeners=null}}),ce.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},ce.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,de(n),n},de(ce);var fe=ce.extend({data:null}),he=ce.extend({data:null}),me=[9,13,27,32],ge=G&&"CompositionEvent"in window,ve=null;G&&"documentMode"in document&&(ve=document.documentMode);var be=G&&"TextEvent"in window&&!ve,ye=G&&(!ge||ve&&8<ve&&11>=ve),we=String.fromCharCode(32),xe={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(" ")}},ke=!1;function _e(e,t){switch(e){case"keyup":return-1!==me.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ce(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ee=!1;var Se={eventTypes:xe,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(ge)e:{switch(e){case"compositionstart":o=xe.compositionStart;break e;case"compositionend":o=xe.compositionEnd;break e;case"compositionupdate":o=xe.compositionUpdate;break e}o=void 0}else Ee?_e(e,n)&&(o=xe.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=xe.compositionStart);return o?(ye&&"ko"!==n.locale&&(Ee||o!==xe.compositionStart?o===xe.compositionEnd&&Ee&&(i=ae()):(oe="value"in(re=r)?re.value:re.textContent,Ee=!0)),o=fe.getPooled(o,t,n,r),i?o.data=i:null!==(i=Ce(n))&&(o.data=i),H(o),i=o):i=null,(e=be?function(e,t){switch(e){case"compositionend":return Ce(t);case"keypress":return 32!==t.which?null:(ke=!0,we);case"textInput":return(e=t.data)===we&&ke?null:e;default:return null}}(e,n):function(e,t){if(Ee)return"compositionend"===e||!ge&&_e(e,t)?(e=ae(),ie=oe=re=null,Ee=!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=he.getPooled(xe.beforeInput,t,n,r)).data=e,H(t)):t=null,null===i?t:null===t?i:[i,t]}},Te=null,Pe=null,Ne=null;function Oe(e){if(e=_(e)){if("function"!=typeof Te)throw a(Error(280));var t=k(e.stateNode);Te(e.stateNode,e.type,t)}}function Be(e){Pe?Ne?Ne.push(e):Ne=[e]:Pe=e}function Me(){if(Pe){var e=Pe,t=Ne;if(Ne=Pe=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function Le(e,t){return e(t)}function Re(e,t,n,r){return e(t,n,r)}function Ie(){}var Ae=Le,je=!1;function De(){null===Pe&&null===Ne||(Ie(),Me())}var ze={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 Fe(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ze[e.type]:"textarea"===t}function Ue(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Ve(e){if(!G)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 We(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ye(e){e._valueTracker||(e._valueTracker=function(e){var t=We(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 He(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=We(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var Ge=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ge.hasOwnProperty("ReactCurrentDispatcher")||(Ge.ReactCurrentDispatcher={current:null}),Ge.hasOwnProperty("ReactCurrentBatchConfig")||(Ge.ReactCurrentBatchConfig={suspense:null});var qe=/^(.*)[\\\/]/,Xe="function"==typeof Symbol&&Symbol.for,Ze=Xe?Symbol.for("react.element"):60103,Qe=Xe?Symbol.for("react.portal"):60106,$e=Xe?Symbol.for("react.fragment"):60107,Ke=Xe?Symbol.for("react.strict_mode"):60108,Je=Xe?Symbol.for("react.profiler"):60114,et=Xe?Symbol.for("react.provider"):60109,tt=Xe?Symbol.for("react.context"):60110,nt=Xe?Symbol.for("react.concurrent_mode"):60111,rt=Xe?Symbol.for("react.forward_ref"):60112,ot=Xe?Symbol.for("react.suspense"):60113,it=Xe?Symbol.for("react.suspense_list"):60120,at=Xe?Symbol.for("react.memo"):60115,lt=Xe?Symbol.for("react.lazy"):60116;Xe&&Symbol.for("react.fundamental"),Xe&&Symbol.for("react.responder");var st="function"==typeof Symbol&&Symbol.iterator;function ct(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=st&&e[st]||e["@@iterator"])?e:null}function ut(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 $e:return"Fragment";case Qe:return"Portal";case Je:return"Profiler";case Ke:return"StrictMode";case ot:return"Suspense";case it:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case tt:return"Context.Consumer";case et:return"Context.Provider";case rt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case at:return ut(e.type);case lt:if(e=1===e._status?e._result:null)return ut(e)}return null}function pt(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=ut(e.type);n=null,r&&(n=ut(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(qe,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}var dt=/^[: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]*$/,ft=Object.prototype.hasOwnProperty,ht={},mt={};function gt(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var vt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){vt[e]=new gt(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];vt[t]=new gt(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){vt[e]=new gt(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){vt[e]=new gt(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){vt[e]=new gt(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){vt[e]=new gt(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){vt[e]=new gt(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){vt[e]=new gt(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){vt[e]=new gt(e,5,!1,e.toLowerCase(),null,!1)}));var bt=/[\-:]([a-z])/g;function yt(e){return e[1].toUpperCase()}function wt(e,t,n,r){var o=vt.hasOwnProperty(t)?vt[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!!ft.call(mt,e)||!ft.call(ht,e)&&(dt.test(e)?mt[e]=!0:(ht[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 xt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function kt(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=xt(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 Ct(e,t){null!=(t=t.checked)&&wt(e,"checked",t,!1)}function Et(e,t){Ct(e,t);var n=xt(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")?Tt(e,t.type,n):t.hasOwnProperty("defaultValue")&&Tt(e,t.type,xt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function St(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 Tt(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(bt,yt);vt[t]=new gt(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(bt,yt);vt[t]=new gt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(bt,yt);vt[t]=new gt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){vt[e]=new gt(e,1,!1,e.toLowerCase(),null,!1)})),vt.xlinkHref=new gt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){vt[e]=new gt(e,1,!1,e.toLowerCase(),null,!0)}));var Pt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Nt(e,t,n){return(e=ce.getPooled(Pt.change,e,t,n)).type="change",Be(n),H(e),e}var Ot=null,Bt=null;function Mt(e){O(e)}function Lt(e){if(He(D(e)))return e}function Rt(e,t){if("change"===e)return t}var It=!1;function At(){Ot&&(Ot.detachEvent("onpropertychange",jt),Bt=Ot=null)}function jt(e){if("value"===e.propertyName&&Lt(Bt))if(e=Nt(Bt,e,Ue(e)),je)O(e);else{je=!0;try{Le(Mt,e)}finally{je=!1,De()}}}function Dt(e,t,n){"focus"===e?(At(),Bt=n,(Ot=t).attachEvent("onpropertychange",jt)):"blur"===e&&At()}function zt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Lt(Bt)}function Ft(e,t){if("click"===e)return Lt(t)}function Ut(e,t){if("input"===e||"change"===e)return Lt(t)}G&&(It=Ve("input")&&(!document.documentMode||9<document.documentMode));var Vt={eventTypes:Pt,_isInputEventSupported:It,extractEvents:function(e,t,n,r){var o=t?D(t):window,i=void 0,a=void 0,l=o.nodeName&&o.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===o.type?i=Rt:Fe(o)?It?i=Ut:(i=zt,a=Dt):(l=o.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=Ft),i&&(i=i(e,t)))return Nt(i,n,r);a&&a(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Tt(o,"number",o.value)}},Wt=ce.extend({view:null,detail:null}),Yt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ht(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Yt[e])&&!!t[e]}function Gt(){return Ht}var qt=0,Xt=0,Zt=!1,Qt=!1,$t=Wt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Gt,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=qt;return qt=e.screenX,Zt?"mousemove"===e.type?e.screenX-t:0:(Zt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Xt;return Xt=e.screenY,Qt?"mousemove"===e.type?e.screenY-t:0:(Qt=!0,0)}}),Kt=$t.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Jt={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},en={eventTypes:Jt,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)?A(t):null):i=null,i===t)return null;var a=void 0,l=void 0,s=void 0,c=void 0;"mouseout"===e||"mouseover"===e?(a=$t,l=Jt.mouseLeave,s=Jt.mouseEnter,c="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=Kt,l=Jt.pointerLeave,s=Jt.pointerEnter,c="pointer");var u=null==i?o:D(i);if(o=null==t?o:D(t),(e=a.getPooled(l,i,n,r)).type=c+"leave",e.target=u,e.relatedTarget=o,(n=a.getPooled(s,t,n,r)).type=c+"enter",n.target=o,n.relatedTarget=u,r=t,i&&r)e:{for(o=r,c=0,a=t=i;a;a=F(a))c++;for(a=0,s=o;s;s=F(s))a++;for(;0<c-a;)t=F(t),c--;for(;0<a-c;)o=F(o),a--;for(;c--;){if(t===o||t===o.alternate)break e;t=F(t),o=F(o)}t=null}else t=null;for(o=t,t=[];i&&i!==o&&(null===(c=i.alternate)||c!==o);)t.push(i),i=F(i);for(i=[];r&&r!==o&&(null===(c=r.alternate)||c!==o);)i.push(r),r=F(r);for(r=0;r<t.length;r++)W(t[r],"bubbled",e);for(r=i.length;0<r--;)W(i[r],"captured",n);return[e,n]}};function tn(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var nn=Object.prototype.hasOwnProperty;function rn(e,t){if(tn(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(!nn.call(t,n[r])||!tn(e[n[r]],t[n[r]]))return!1;return!0}function on(e,t){return{responder:e,props:t}}function an(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 ln(e){if(2!==an(e))throw a(Error(188))}function sn(e){if(!(e=function(e){var t=e.alternate;if(!t){if(3===(t=an(e)))throw a(Error(188));return 1===t?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return ln(o),e;if(i===r)return ln(o),t;i=i.sibling}throw a(Error(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw a(Error(189))}}if(n.alternate!==r)throw a(Error(190))}if(3!==n.tag)throw a(Error(188));return 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}new Map,new Map,new Set,new Map;var cn=ce.extend({animationName:null,elapsedTime:null,pseudoElement:null}),un=ce.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pn=Wt.extend({relatedTarget:null});function dn(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}for(var fn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hn={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"},mn=Wt.extend({key:function(e){if(e.key){var t=fn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=dn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Gt,charCode:function(e){return"keypress"===e.type?dn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?dn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),gn=$t.extend({dataTransfer:null}),vn=Wt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Gt}),bn=ce.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),yn=$t.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}),wn=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[K,"animationEnd",2],[J,"animationIteration",2],[ee,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[te,"transitionEnd",2],["waiting","waiting",2]],xn={},kn={},_n=0;_n<wn.length;_n++){var Cn=wn[_n],En=Cn[0],Sn=Cn[1],Tn=Cn[2],Pn="on"+(Sn[0].toUpperCase()+Sn.slice(1)),Nn={phasedRegistrationNames:{bubbled:Pn,captured:Pn+"Capture"},dependencies:[En],eventPriority:Tn};xn[Sn]=Nn,kn[En]=Nn}var On={eventTypes:xn,getEventPriority:function(e){return void 0!==(e=kn[e])?e.eventPriority:2},extractEvents:function(e,t,n,r){var o=kn[e];if(!o)return null;switch(e){case"keypress":if(0===dn(n))return null;case"keydown":case"keyup":e=mn;break;case"blur":case"focus":e=pn;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=$t;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=vn;break;case K:case J:case ee:e=cn;break;case te:e=bn;break;case"scroll":e=Wt;break;case"wheel":e=yn;break;case"copy":case"cut":case"paste":e=un;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Kt;break;default:e=ce}return H(t=e.getPooled(o,t,n,r)),t}},Bn=On.getEventPriority,Mn=[];function Ln(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=A(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=Ue(e.nativeEvent);r=e.topLevelType;for(var i=e.nativeEvent,a=null,l=0;l<p.length;l++){var s=p[l];s&&(s=s.extractEvents(r,t,i,o))&&(a=S(a,s))}O(a)}}var Rn=!0;function In(e,t){An(t,e,!1)}function An(e,t,n){switch(Bn(t)){case 0:var r=jn.bind(null,t,1);break;case 1:r=Dn.bind(null,t,1);break;default:r=zn.bind(null,t,1)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function jn(e,t,n){je||Ie();var r=zn,o=je;je=!0;try{Re(r,e,t,n)}finally{(je=o)||De()}}function Dn(e,t,n){zn(e,t,n)}function zn(e,t,n){if(Rn){if(null===(t=A(t=Ue(n)))||"number"!=typeof t.tag||2===an(t)||(t=null),Mn.length){var r=Mn.pop();r.topLevelType=e,r.nativeEvent=n,r.targetInst=t,e=r}else e={topLevelType:e,nativeEvent:n,targetInst:t,ancestors:[]};try{if(n=e,je)Ln(n);else{je=!0;try{Ae(Ln,n,void 0)}finally{je=!1,De()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Mn.length&&Mn.push(e)}}}var Fn=new("function"==typeof WeakMap?WeakMap:Map);function Un(e){var t=Fn.get(e);return void 0===t&&(t=new Set,Fn.set(e,t)),t}function Vn(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 Wn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yn(e,t){var n,r=Wn(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=Wn(r)}}function Hn(){for(var e=window,t=Vn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Vn((e=t.contentWindow).document)}return t}function Gn(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 qn=G&&"documentMode"in document&&11>=document.documentMode,Xn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Zn=null,Qn=null,$n=null,Kn=!1;function Jn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Kn||null==Zn||Zn!==Vn(n)?null:("selectionStart"in(n=Zn)&&Gn(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},$n&&rn($n,n)?null:($n=n,(e=ce.getPooled(Xn.select,Qn,e,t)).type="select",e.target=Zn,H(e),e))}var er={eventTypes:Xn,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=Un(i),o=h.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?D(t):window,e){case"focus":(Fe(i)||"true"===i.contentEditable)&&(Zn=i,Qn=t,$n=null);break;case"blur":$n=Qn=Zn=null;break;case"mousedown":Kn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Kn=!1,Jn(n,r);case"selectionchange":if(qn)break;case"keydown":case"keyup":return Jn(n,r)}return null}};function tr(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 nr(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=""+xt(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 rr(e,t){if(null!=t.dangerouslySetInnerHTML)throw a(Error(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function or(e,t){var n=t.value;if(null==n){if(n=t.defaultValue,null!=(t=t.children)){if(null!=n)throw a(Error(92));if(Array.isArray(t)){if(!(1>=t.length))throw a(Error(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:xt(n)}}function ir(e,t){var n=xt(t.value),r=xt(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 ar(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}B.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),k=z,_=j,C=D,B.injectEventPluginsByName({SimpleEventPlugin:On,EnterLeaveEventPlugin:en,ChangeEventPlugin:Vt,SelectEventPlugin:er,BeforeInputEventPlugin:Se});var lr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function sr(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 cr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?sr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ur=void 0,pr=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==lr.svg||"innerHTML"in e)e.innerHTML=t;else{for((ur=ur||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=ur.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function dr(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 fr={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},hr=["Webkit","ms","Moz","O"];function mr(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fr.hasOwnProperty(e)&&fr[e]?(""+t).trim():t+"px"}function gr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=mr(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(fr).forEach((function(e){hr.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fr[t]=fr[e]}))}));var vr=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 br(e,t){if(t){if(vr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw a(Error(137),e,"");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw a(Error(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw a(Error(61))}if(null!=t.style&&"object"!=typeof t.style)throw a(Error(62),"")}}function yr(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 wr(e,t){var n=Un(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=h[t];for(var r=0;r<t.length;r++){var o=t[r];if(!n.has(o)){switch(o){case"scroll":An(e,"scroll",!0);break;case"focus":case"blur":An(e,"focus",!0),An(e,"blur",!0),n.add("blur"),n.add("focus");break;case"cancel":case"close":Ve(o)&&An(e,o,!0);break;case"invalid":case"submit":case"reset":break;default:-1===ne.indexOf(o)&&In(o,e)}n.add(o)}}}function xr(){}var kr=null,_r=null;function Cr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Er(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 Sr="function"==typeof setTimeout?setTimeout:void 0,Tr="function"==typeof clearTimeout?clearTimeout:void 0;function Pr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}new Set;var Nr=[],Or=-1;function Br(e){0>Or||(e.current=Nr[Or],Nr[Or]=null,Or--)}function Mr(e,t){Nr[++Or]=e.current,e.current=t}var Lr={},Rr={current:Lr},Ir={current:!1},Ar=Lr;function jr(e,t){var n=e.type.contextTypes;if(!n)return Lr;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 Dr(e){return null!=(e=e.childContextTypes)}function zr(e){Br(Ir),Br(Rr)}function Fr(e){Br(Ir),Br(Rr)}function Ur(e,t,n){if(Rr.current!==Lr)throw a(Error(168));Mr(Rr,t),Mr(Ir,n)}function Vr(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw a(Error(108),ut(t)||"Unknown",i);return o({},n,r)}function Wr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Lr,Ar=Rr.current,Mr(Rr,t),Mr(Ir,Ir.current),!0}function Yr(e,t,n){var r=e.stateNode;if(!r)throw a(Error(169));n?(t=Vr(e,t,Ar),r.__reactInternalMemoizedMergedChildContext=t,Br(Ir),Br(Rr),Mr(Rr,t)):Br(Ir),Mr(Ir,n)}var Hr=i.unstable_runWithPriority,Gr=i.unstable_scheduleCallback,qr=i.unstable_cancelCallback,Xr=i.unstable_shouldYield,Zr=i.unstable_requestPaint,Qr=i.unstable_now,$r=i.unstable_getCurrentPriorityLevel,Kr=i.unstable_ImmediatePriority,Jr=i.unstable_UserBlockingPriority,eo=i.unstable_NormalPriority,to=i.unstable_LowPriority,no=i.unstable_IdlePriority,ro={},oo=void 0!==Zr?Zr:function(){},io=null,ao=null,lo=!1,so=Qr(),co=1e4>so?Qr:function(){return Qr()-so};function uo(){switch($r()){case Kr:return 99;case Jr:return 98;case eo:return 97;case to:return 96;case no:return 95;default:throw a(Error(332))}}function po(e){switch(e){case 99:return Kr;case 98:return Jr;case 97:return eo;case 96:return to;case 95:return no;default:throw a(Error(332))}}function fo(e,t){return e=po(e),Hr(e,t)}function ho(e,t,n){return e=po(e),Gr(e,t,n)}function mo(e){return null===io?(io=[e],ao=Gr(Kr,vo)):io.push(e),ro}function go(){null!==ao&&qr(ao),vo()}function vo(){if(!lo&&null!==io){lo=!0;var e=0;try{var t=io;fo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),io=null}catch(t){throw null!==io&&(io=io.slice(e+1)),Gr(Kr,go),t}finally{lo=!1}}}function bo(e,t){return 1073741823===t?99:1===t?95:0>=(e=10*(1073741821-t)-10*(1073741821-e))?99:250>=e?98:5250>=e?97:95}function yo(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 wo={current:null},xo=null,ko=null,_o=null;function Co(){_o=ko=xo=null}function Eo(e,t){var n=e.type._context;Mr(wo,n._currentValue),n._currentValue=t}function So(e){var t=wo.current;Br(wo),e.type._context._currentValue=t}function To(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function Po(e,t){xo=e,_o=ko=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(pa=!0),e.firstContext=null)}function No(e,t){if(_o!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(_o=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ko){if(null===xo)throw a(Error(308));ko=t,xo.dependencies={expirationTime:0,firstContext:t,responders:null}}else ko=ko.next=t;return e._currentValue}var Oo=!1;function Bo(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Mo(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Lo(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Ro(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=Bo(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=Bo(e.memoizedState),o=n.updateQueue=Bo(n.memoizedState)):r=e.updateQueue=Mo(o):null===o&&(o=n.updateQueue=Mo(r));null===o||r===o?Ro(r,t):null===r.lastUpdate||null===o.lastUpdate?(Ro(r,t),Ro(o,t)):(Ro(r,t),o.lastUpdate=t)}function Ao(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Bo(e.memoizedState):jo(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function jo(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Mo(t)),t}function Do(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:Oo=!0}return r}function zo(e,t,n,r,o){Oo=!1;for(var i=(t=jo(e,t)).baseState,a=null,l=0,s=t.firstUpdate,c=i;null!==s;){var u=s.expirationTime;u<o?(null===a&&(a=s,i=c),l<u&&(l=u)):(Vl(u,s.suspenseConfig),c=Do(e,0,s,c,n,r),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=s:(t.lastEffect.nextEffect=s,t.lastEffect=s))),s=s.next}for(u=null,s=t.firstCapturedUpdate;null!==s;){var p=s.expirationTime;p<o?(null===u&&(u=s,null===a&&(i=c)),l<p&&(l=p)):(c=Do(e,0,s,c,n,r),null!==s.callback&&(e.effectTag|=32,s.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=s:(t.lastCapturedEffect.nextEffect=s,t.lastCapturedEffect=s))),s=s.next}null===a&&(t.lastUpdate=null),null===u?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===u&&(i=c),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=u,e.expirationTime=l,e.memoizedState=c}function Fo(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),Uo(t.firstEffect,n),t.firstEffect=t.lastEffect=null,Uo(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function Uo(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;if("function"!=typeof n)throw a(Error(191),n);n.call(r)}e=e.nextEffect}}var Vo=Ge.ReactCurrentBatchConfig,Wo=(new r.Component).refs;function Yo(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 Ho={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===an(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Nl(),o=Vo.suspense;(o=Lo(r=Ol(r,e,o),o)).payload=t,null!=n&&(o.callback=n),Io(e,o),Ml(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Nl(),o=Vo.suspense;(o=Lo(r=Ol(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),Io(e,o),Ml(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Nl(),r=Vo.suspense;(r=Lo(n=Ol(n,e,r),r)).tag=2,null!=t&&(r.callback=t),Io(e,r),Ml(e,n)}};function Go(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!rn(n,r)||!rn(o,i))}function qo(e,t,n){var r=!1,o=Lr,i=t.contextType;return"object"==typeof i&&null!==i?i=No(i):(o=Dr(t)?Ar:Rr.current,i=(r=null!=(r=t.contextTypes))?jr(e,o):Lr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ho,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Xo(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&&Ho.enqueueReplaceState(t,t.state,null)}function Zo(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Wo;var i=t.contextType;"object"==typeof i&&null!==i?o.context=No(i):(i=Dr(t)?Ar:Rr.current,o.context=jr(e,i)),null!==(i=e.updateQueue)&&(zo(e,i,n,o,r),o.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(Yo(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&&Ho.enqueueReplaceState(o,o.state,null),null!==(i=e.updateQueue)&&(zo(e,i,n,o,r),o.state=e.memoizedState)),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var Qo=Array.isArray;function $o(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var r=void 0;if(n){if(1!==n.tag)throw a(Error(309));r=n.stateNode}if(!r)throw a(Error(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===Wo&&(t=r.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw a(Error(284));if(!n._owner)throw a(Error(290),e)}return e}function Ko(e,t){if("textarea"!==e.type)throw a(Error(31),"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function Jo(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=is(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 s(e,t,n,r){return null===t||6!==t.tag?((t=ss(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=$o(e,t,n),r.return=e,r):((r=as(n.type,n.key,n.props,null,e.mode,r)).ref=$o(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=cs(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function p(e,t,n,r,i){return null===t||7!==t.tag?((t=ls(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=ss(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ze:return(n=as(t.type,t.key,t.props,null,e.mode,n)).ref=$o(e,null,t),n.return=e,n;case Qe:return(t=cs(t,e.mode,n)).return=e,t}if(Qo(t)||ct(t))return(t=ls(t,e.mode,n,null)).return=e,t;Ko(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Ze:return n.key===o?n.type===$e?p(e,t,n.props.children,r,o):c(e,t,n,r):null;case Qe:return n.key===o?u(e,t,n,r):null}if(Qo(n)||ct(n))return null!==o?null:p(e,t,n,r,null);Ko(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Ze:return e=e.get(null===r.key?n:r.key)||null,r.type===$e?p(t,e,r.props.children,o,r.key):c(t,e,r,o);case Qe:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Qo(r)||ct(r))return p(t,e=e.get(n)||null,r,o,null);Ko(t,r)}return null}function m(o,a,l,s){for(var c=null,u=null,p=a,m=a=0,g=null;null!==p&&m<l.length;m++){p.index>m?(g=p,p=null):g=p.sibling;var v=f(o,p,l[m],s);if(null===v){null===p&&(p=g);break}e&&p&&null===v.alternate&&t(o,p),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v,p=g}if(m===l.length)return n(o,p),c;if(null===p){for(;m<l.length;m++)null!==(p=d(o,l[m],s))&&(a=i(p,a,m),null===u?c=p:u.sibling=p,u=p);return c}for(p=r(o,p);m<l.length;m++)null!==(g=h(p,o,m,l[m],s))&&(e&&null!==g.alternate&&p.delete(null===g.key?m:g.key),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&p.forEach((function(e){return t(o,e)})),c}function g(o,l,s,c){var u=ct(s);if("function"!=typeof u)throw a(Error(150));if(null==(s=u.call(s)))throw a(Error(151));for(var p=u=null,m=l,g=l=0,v=null,b=s.next();null!==m&&!b.done;g++,b=s.next()){m.index>g?(v=m,m=null):v=m.sibling;var y=f(o,m,b.value,c);if(null===y){null===m&&(m=v);break}e&&m&&null===y.alternate&&t(o,m),l=i(y,l,g),null===p?u=y:p.sibling=y,p=y,m=v}if(b.done)return n(o,m),u;if(null===m){for(;!b.done;g++,b=s.next())null!==(b=d(o,b.value,c))&&(l=i(b,l,g),null===p?u=b:p.sibling=b,p=b);return u}for(m=r(o,m);!b.done;g++,b=s.next())null!==(b=h(m,o,g,b.value,c))&&(e&&null!==b.alternate&&m.delete(null===b.key?g:b.key),l=i(b,l,g),null===p?u=b:p.sibling=b,p=b);return e&&m.forEach((function(e){return t(o,e)})),u}return function(e,r,i,s){var c="object"==typeof i&&null!==i&&i.type===$e&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case Ze:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){if(7===c.tag?i.type===$e:c.elementType===i.type){n(e,c.sibling),(r=o(c,i.type===$e?i.props.children:i.props)).ref=$o(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===$e?((r=ls(i.props.children,e.mode,s,i.key)).return=e,e=r):((s=as(i.type,i.key,i.props,null,e.mode,s)).ref=$o(e,r,i),s.return=e,e=s)}return l(e);case Qe:e:{for(c=i.key;null!==r;){if(r.key===c){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=cs(i,e.mode,s)).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=ss(i,e.mode,s)).return=e,e=r),l(e);if(Qo(i))return m(e,r,i,s);if(ct(i))return g(e,r,i,s);if(u&&Ko(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,a(Error(152),e.displayName||e.name||"Component")}return n(e,r)}}var ei=Jo(!0),ti=Jo(!1),ni={},ri={current:ni},oi={current:ni},ii={current:ni};function ai(e){if(e===ni)throw a(Error(174));return e}function li(e,t){Mr(ii,t),Mr(oi,e),Mr(ri,ni);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:cr(null,"");break;default:t=cr(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Br(ri),Mr(ri,t)}function si(e){Br(ri),Br(oi),Br(ii)}function ci(e){ai(ii.current);var t=ai(ri.current),n=cr(t,e.type);t!==n&&(Mr(oi,e),Mr(ri,n))}function ui(e){oi.current===e&&(Br(ri),Br(oi))}var pi=1,di=1,fi=2,hi={current:0};function mi(e){for(var t=e;null!==t;){if(13===t.tag){if(null!==t.memoizedState)return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gi=0,vi=2,bi=4,yi=8,wi=16,xi=32,ki=64,_i=128,Ci=Ge.ReactCurrentDispatcher,Ei=0,Si=null,Ti=null,Pi=null,Ni=null,Oi=null,Bi=null,Mi=0,Li=null,Ri=0,Ii=!1,Ai=null,ji=0;function Di(){throw a(Error(321))}function zi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tn(e[n],t[n]))return!1;return!0}function Fi(e,t,n,r,o,i){if(Ei=i,Si=t,Pi=null!==e?e.memoizedState:null,Ci.current=null===Pi?Ji:ea,t=n(r,o),Ii){do{Ii=!1,ji+=1,Pi=null!==e?e.memoizedState:null,Bi=Ni,Li=Oi=Ti=null,Ci.current=ea,t=n(r,o)}while(Ii);Ai=null,ji=0}if(Ci.current=Ki,(e=Si).memoizedState=Ni,e.expirationTime=Mi,e.updateQueue=Li,e.effectTag|=Ri,e=null!==Ti&&null!==Ti.next,Ei=0,Bi=Oi=Ni=Pi=Ti=Si=null,Mi=0,Li=null,Ri=0,e)throw a(Error(300));return t}function Ui(){Ci.current=Ki,Ei=0,Bi=Oi=Ni=Pi=Ti=Si=null,Mi=0,Li=null,Ri=0,Ii=!1,Ai=null,ji=0}function Vi(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Oi?Ni=Oi=e:Oi=Oi.next=e,Oi}function Wi(){if(null!==Bi)Bi=(Oi=Bi).next,Pi=null!==(Ti=Pi)?Ti.next:null;else{if(null===Pi)throw a(Error(310));var e={memoizedState:(Ti=Pi).memoizedState,baseState:Ti.baseState,queue:Ti.queue,baseUpdate:Ti.baseUpdate,next:null};Oi=null===Oi?Ni=e:Oi.next=e,Pi=Ti.next}return Oi}function Yi(e,t){return"function"==typeof t?t(e):t}function Hi(e){var t=Wi(),n=t.queue;if(null===n)throw a(Error(311));if(n.lastRenderedReducer=e,0<ji){var r=n.dispatch;if(null!==Ai){var o=Ai.get(n);if(void 0!==o){Ai.delete(n);var i=t.memoizedState;do{i=e(i,o.action),o=o.next}while(null!==o);return tn(i,t.memoizedState)||(pa=!0),t.memoizedState=i,t.baseUpdate===n.last&&(t.baseState=i),n.lastRenderedState=i,[i,r]}}return[t.memoizedState,r]}r=n.last;var l=t.baseUpdate;if(i=t.baseState,null!==l?(null!==r&&(r.next=null),r=l.next):r=null!==r?r.next:null,null!==r){var s=o=null,c=r,u=!1;do{var p=c.expirationTime;p<Ei?(u||(u=!0,s=l,o=i),p>Mi&&(Mi=p)):(Vl(p,c.suspenseConfig),i=c.eagerReducer===e?c.eagerState:e(i,c.action)),l=c,c=c.next}while(null!==c&&c!==r);u||(s=l,o=i),tn(i,t.memoizedState)||(pa=!0),t.memoizedState=i,t.baseUpdate=s,t.baseState=o,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function Gi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===Li?(Li={lastEffect:null}).lastEffect=e.next=e:null===(t=Li.lastEffect)?Li.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Li.lastEffect=e),e}function qi(e,t,n,r){var o=Vi();Ri|=e,o.memoizedState=Gi(t,n,void 0,void 0===r?null:r)}function Xi(e,t,n,r){var o=Wi();r=void 0===r?null:r;var i=void 0;if(null!==Ti){var a=Ti.memoizedState;if(i=a.destroy,null!==r&&zi(r,a.deps))return void Gi(gi,n,i,r)}Ri|=e,o.memoizedState=Gi(t,n,i,r)}function Zi(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qi(){}function $i(e,t,n){if(!(25>ji))throw a(Error(301));var r=e.alternate;if(e===Si||null!==r&&r===Si)if(Ii=!0,e={expirationTime:Ei,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===Ai&&(Ai=new Map),void 0===(n=Ai.get(t)))Ai.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var o=Nl(),i=Vo.suspense;i={expirationTime:o=Ol(o,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var l=t.last;if(null===l)i.next=i;else{var s=l.next;null!==s&&(i.next=s),l.next=i}if(t.last=i,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var c=t.lastRenderedState,u=r(c,n);if(i.eagerReducer=r,i.eagerState=u,tn(u,c))return}catch(e){}Ml(e,o)}}var Ki={readContext:No,useCallback:Di,useContext:Di,useEffect:Di,useImperativeHandle:Di,useLayoutEffect:Di,useMemo:Di,useReducer:Di,useRef:Di,useState:Di,useDebugValue:Di,useResponder:Di},Ji={readContext:No,useCallback:function(e,t){return Vi().memoizedState=[e,void 0===t?null:t],e},useContext:No,useEffect:function(e,t){return qi(516,_i|ki,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,qi(4,bi|xi,Zi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qi(4,bi|xi,e,t)},useMemo:function(e,t){var n=Vi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=$i.bind(null,Si,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Vi().memoizedState=e},useState:function(e){var t=Vi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:Yi,lastRenderedState:e}).dispatch=$i.bind(null,Si,e),[t.memoizedState,e]},useDebugValue:Qi,useResponder:on},ea={readContext:No,useCallback:function(e,t){var n=Wi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&zi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:No,useEffect:function(e,t){return Xi(516,_i|ki,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Xi(4,bi|xi,Zi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xi(4,bi|xi,e,t)},useMemo:function(e,t){var n=Wi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&zi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:Hi,useRef:function(){return Wi().memoizedState},useState:function(e){return Hi(Yi)},useDebugValue:Qi,useResponder:on},ta=null,na=null,ra=!1;function oa(e,t){var n=rs(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 ia(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);case 13:default:return!1}}function aa(e){if(ra){var t=na;if(t){var n=t;if(!ia(e,t)){if(!(t=Pr(n.nextSibling))||!ia(e,t))return e.effectTag|=2,ra=!1,void(ta=e);oa(ta,n)}ta=e,na=Pr(t.firstChild)}else e.effectTag|=2,ra=!1,ta=e}}function la(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;ta=e}function sa(e){if(e!==ta)return!1;if(!ra)return la(e),ra=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Er(t,e.memoizedProps))for(t=na;t;)oa(e,t),t=Pr(t.nextSibling);return la(e),na=ta?Pr(e.stateNode.nextSibling):null,!0}function ca(){na=ta=null,ra=!1}var ua=Ge.ReactCurrentOwner,pa=!1;function da(e,t,n,r){t.child=null===e?ti(t,null,n,r):ei(t,e.child,n,r)}function fa(e,t,n,r,o){n=n.render;var i=t.ref;return Po(t,o),r=Fi(e,t,n,r,i,o),null===e||pa?(t.effectTag|=1,da(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ea(e,t,o))}function ha(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||os(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=as(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ma(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:rn)(o,r)&&e.ref===t.ref)?Ea(e,t,i):(t.effectTag|=1,(e=is(a,r)).ref=t.ref,e.return=t,t.child=e)}function ma(e,t,n,r,o,i){return null!==e&&rn(e.memoizedProps,r)&&e.ref===t.ref&&(pa=!1,o<i)?Ea(e,t,i):va(e,t,n,r,i)}function ga(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function va(e,t,n,r,o){var i=Dr(n)?Ar:Rr.current;return i=jr(t,i),Po(t,o),n=Fi(e,t,n,r,i,o),null===e||pa?(t.effectTag|=1,da(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ea(e,t,o))}function ba(e,t,n,r,o){if(Dr(n)){var i=!0;Wr(t)}else i=!1;if(Po(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),qo(t,n,r),Zo(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=No(c):c=jr(t,c=Dr(n)?Ar:Rr.current);var u=n.getDerivedStateFromProps,p="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;p||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&Xo(t,a,r,c),Oo=!1;var d=t.memoizedState;s=a.state=d;var f=t.updateQueue;null!==f&&(zo(t,f,r,a,o),s=t.memoizedState),l!==r||d!==s||Ir.current||Oo?("function"==typeof u&&(Yo(t,n,u,r),s=t.memoizedState),(l=Oo||Go(t,n,l,r,d,s,c))?(p||"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=s),a.props=r,a.state=s,a.context=c,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:yo(t.type,l),s=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=No(c):c=jr(t,c=Dr(n)?Ar:Rr.current),(p="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==c)&&Xo(t,a,r,c),Oo=!1,s=t.memoizedState,d=a.state=s,null!==(f=t.updateQueue)&&(zo(t,f,r,a,o),d=t.memoizedState),l!==r||s!==d||Ir.current||Oo?("function"==typeof u&&(Yo(t,n,u,r),d=t.memoizedState),(u=Oo||Go(t,n,l,r,s,d,c))?(p||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=c,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),r=!1);return ya(e,t,n,r,i,o)}function ya(e,t,n,r,o,i){ga(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&Yr(t,n,!1),Ea(e,t,i);r=t.stateNode,ua.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=ei(t,e.child,null,i),t.child=ei(t,null,l,i)):da(e,t,l,i),t.memoizedState=r.state,o&&Yr(t,n,!0),t.child}function wa(e){var t=e.stateNode;t.pendingContext?Ur(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ur(0,t.context,!1),li(e,t.containerInfo)}var xa={};function ka(e,t,n){var r,o=t.mode,i=t.pendingProps,a=hi.current,l=null,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(a&fi)&&(null===e||null!==e.memoizedState)),r?(l=xa,s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=di),Mr(hi,a&=pi),null===e)if(s){if(i=i.fallback,(e=ls(null,o,0,null)).return=t,0==(2&t.mode))for(s=null!==t.memoizedState?t.child.child:t.child,e.child=s;null!==s;)s.return=e,s=s.sibling;(n=ls(i,o,n,null)).return=t,e.sibling=n,o=e}else o=n=ti(t,null,i.children,n);else{if(null!==e.memoizedState)if(o=(a=e.child).sibling,s){if(i=i.fallback,(n=is(a,a.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==a.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;(i=is(o,i,o.expirationTime)).return=t,n.sibling=i,o=n,n.childExpirationTime=0,n=i}else o=n=ei(t,a.child,i.children,n);else if(a=e.child,s){if(s=i.fallback,(i=ls(null,o,0,null)).return=t,i.child=a,null!==a&&(a.return=i),0==(2&t.mode))for(a=null!==t.memoizedState?t.child.child:t.child,i.child=a;null!==a;)a.return=i,a=a.sibling;(n=ls(s,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,o=i,i.childExpirationTime=0}else n=o=ei(t,a,i.children,n);t.stateNode=e.stateNode}return t.memoizedState=l,t.child=o,n}function _a(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,last:r,tail:n,tailExpiration:0,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.last=r,i.tail=n,i.tailExpiration=0,i.tailMode=o)}function Ca(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(da(e,t,r.children,n),0!=((r=hi.current)&fi))r=r&pi|fi,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag){if(null!==e.memoizedState){e.expirationTime<n&&(e.expirationTime=n);var a=e.alternate;null!==a&&a.expirationTime<n&&(a.expirationTime=n),To(e.return,n)}}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=pi}if(Mr(hi,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(r=n.alternate)&&null===mi(r)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),_a(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(r=o.alternate)&&null===mi(r)){t.child=o;break}r=o.sibling,o.sibling=n,n=o,o=r}_a(t,!0,n,null,i);break;case"together":_a(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ea(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw a(Error(153));if(null!==t.child){for(n=is(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=is(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Sa(e){e.effectTag|=4}var Ta=void 0,Pa=void 0,Na=void 0,Oa=void 0;function Ba(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ma(e){switch(e.tag){case 1:Dr(e.type)&&zr();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:if(si(),Fr(),0!=(64&(t=e.effectTag)))throw a(Error(285));return e.effectTag=-2049&t|64,e;case 5:return ui(e),null;case 13:return Br(hi),2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 19:return Br(hi),null;case 4:return si(),null;case 10:return So(e),null;default:return null}}function La(e,t){return{value:e,source:t,stack:pt(t)}}Ta=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(20===n.tag)e.appendChild(n.stateNode.instance);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}},Pa=function(){},Na=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var l=t.stateNode;switch(ai(ri.current),e=null,n){case"input":a=kt(l,a),r=kt(l,r),e=[];break;case"option":a=tr(l,a),r=tr(l,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=rr(l,a),r=rr(l,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(l.onclick=xr)}br(n,r),l=n=void 0;var s=null;for(n in a)if(!r.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var c=a[n];for(l in c)c.hasOwnProperty(l)&&(s||(s={}),s[l]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(f.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var u=r[n];if(c=null!=a?a[n]:void 0,r.hasOwnProperty(n)&&u!==c&&(null!=u||null!=c))if("style"===n)if(c){for(l in c)!c.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(s||(s={}),s[l]="");for(l in u)u.hasOwnProperty(l)&&c[l]!==u[l]&&(s||(s={}),s[l]=u[l])}else s||(e||(e=[]),e.push(n,s)),s=u;else"dangerouslySetInnerHTML"===n?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(n,""+u)):"children"===n?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(n,""+u):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(f.hasOwnProperty(n)?(null!=u&&wr(i,n),e||c===u||(e=[])):(e=e||[]).push(n,u))}s&&(e=e||[]).push("style",s),i=e,(t.updateQueue=i)&&Sa(t)}},Oa=function(e,t,n,r){n!==r&&Sa(t)};var Ra="function"==typeof WeakSet?WeakSet:Set;function Ia(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=pt(n)),null!==n&&ut(n.type),t=t.value,null!==e&&1===e.tag&&ut(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function Aa(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Ql(e,t)}else t.current=null}function ja(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if((r.tag&e)!==gi){var o=r.destroy;r.destroy=void 0,void 0!==o&&o()}(r.tag&t)!==gi&&(o=r.create,r.destroy=o()),r=r.next}while(r!==n)}}function Da(e,t){switch("function"==typeof ts&&ts(e),e.tag){case 0:case 11:case 14:case 15:var n=e.updateQueue;if(null!==n&&null!==(n=n.lastEffect)){var r=n.next;fo(97<t?97:t,(function(){var t=r;do{var n=t.destroy;if(void 0!==n){var o=e;try{n()}catch(e){Ql(o,e)}}t=t.next}while(t!==r)}))}break;case 1:Aa(e),"function"==typeof(t=e.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Ql(e,t)}}(e,t);break;case 5:Aa(e);break;case 4:Va(e,t)}}function za(e,t){for(var n=e;;)if(Da(n,t),null!==n.child&&4!==n.tag)n.child.return=n,n=n.child;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Fa(e){return 5===e.tag||3===e.tag||4===e.tag}function Ua(e){e:{for(var t=e.return;null!==t;){if(Fa(t)){var n=t;break e}t=t.return}throw a(Error(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw a(Error(161))}16&n.effectTag&&(dr(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Fa(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.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;;){var i=5===o.tag||6===o.tag;if(i||20===o.tag){var l=i?o.stateNode:o.stateNode.instance;if(n)if(r){var s=l;l=n,8===(i=t).nodeType?i.parentNode.insertBefore(s,l):i.insertBefore(s,l)}else t.insertBefore(l,n);else r?(8===(s=t).nodeType?(i=s.parentNode).insertBefore(l,s):(i=s).appendChild(l),null!=(s=s._reactRootContainer)||null!==i.onclick||(i.onclick=xr)):t.appendChild(l)}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 Va(e,t){for(var n=e,r=!1,o=void 0,i=void 0;;){if(!r){r=n.return;e:for(;;){if(null===r)throw a(Error(160));switch(o=r.stateNode,r.tag){case 5:i=!1;break e;case 3:case 4:o=o.containerInfo,i=!0;break e}r=r.return}r=!0}if(5===n.tag||6===n.tag)if(za(n,t),i){var l=o,s=n.stateNode;8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)}else o.removeChild(n.stateNode);else if(20===n.tag)s=n.stateNode.instance,za(n,t),i?8===(l=o).nodeType?l.parentNode.removeChild(s):l.removeChild(s):o.removeChild(s);else if(4===n.tag){if(null!==n.child){o=n.stateNode.containerInfo,i=!0,n.child.return=n,n=n.child;continue}}else if(Da(n,t),null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;4===(n=n.return).tag&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function Wa(e,t){switch(t.tag){case 0:case 11:case 14:case 15:ja(bi,yi,t);break;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[I]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ct(n,r),yr(e,o),t=yr(e,r),o=0;o<i.length;o+=2){var l=i[o],s=i[o+1];"style"===l?gr(n,s):"dangerouslySetInnerHTML"===l?pr(n,s):"children"===l?dr(n,s):wt(n,l,s,t)}switch(e){case"input":Et(n,r);break;case"textarea":ir(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?nr(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?nr(n,!!r.multiple,r.defaultValue,!0):nr(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 6:if(null===t.stateNode)throw a(Error(162));t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,ml=co()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=mr("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}Ya(t);break;case 19:Ya(t);break;case 17:case 20:break;default:throw a(Error(163))}}function Ya(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ra),t.forEach((function(t){var r=Kl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var Ha="function"==typeof WeakMap?WeakMap:Map;function Ga(e,t,n){(n=Lo(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){bl||(bl=!0,yl=r),Ia(e,t)},n}function qa(e,t,n){(n=Lo(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return Ia(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===wl?wl=new Set([this]):wl.add(this),Ia(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Xa=Math.ceil,Za=Ge.ReactCurrentDispatcher,Qa=Ge.ReactCurrentOwner,$a=0,Ka=8,Ja=16,el=32,tl=0,nl=1,rl=2,ol=3,il=4,al=$a,ll=null,sl=null,cl=0,ul=tl,pl=1073741823,dl=1073741823,fl=null,hl=!1,ml=0,gl=500,vl=null,bl=!1,yl=null,wl=null,xl=!1,kl=null,_l=90,Cl=0,El=null,Sl=0,Tl=null,Pl=0;function Nl(){return(al&(Ja|el))!==$a?1073741821-(co()/10|0):0!==Pl?Pl:Pl=1073741821-(co()/10|0)}function Ol(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=uo();if(0==(4&t))return 99===r?1073741823:1073741822;if((al&Ja)!==$a)return cl;if(null!==n)e=1073741821-25*(1+((1073741821-e+(0|n.timeoutMs||5e3)/10)/25|0));else switch(r){case 99:e=1073741823;break;case 98:e=1073741821-10*(1+((1073741821-e+15)/10|0));break;case 97:case 96:e=1073741821-25*(1+((1073741821-e+500)/25|0));break;case 95:e=1;break;default:throw a(Error(326))}return null!==ll&&e===cl&&--e,e}var Bl=0;function Ml(e,t){if(50<Sl)throw Sl=0,Tl=null,a(Error(185));if(null!==(e=Ll(e,t))){e.pingTime=0;var n=uo();if(1073741823===t)if((al&Ka)!==$a&&(al&(Ja|el))===$a)for(var r=Ul(e,1073741823,!0);null!==r;)r=r(!0);else Rl(e,99,1073741823),al===$a&&go();else Rl(e,n,t);(4&al)===$a||98!==n&&99!==n||(null===El?El=new Map([[e,t]]):(void 0===(n=El.get(e))||n>t)&&El.set(e,t))}}function Ll(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 null!==o&&(t>o.firstPendingTime&&(o.firstPendingTime=t),0===(e=o.lastPendingTime)||t<e)&&(o.lastPendingTime=t),o}function Rl(e,t,n){if(e.callbackExpirationTime<n){var r=e.callbackNode;null!==r&&r!==ro&&qr(r),e.callbackExpirationTime=n,1073741823===n?e.callbackNode=mo(Il.bind(null,e,Ul.bind(null,e,n))):(r=null,1!==n&&(r={timeout:10*(1073741821-n)-co()}),e.callbackNode=ho(t,Il.bind(null,e,Ul.bind(null,e,n)),r))}}function Il(e,t,n){var r=e.callbackNode,o=null;try{return null!==(o=t(n))?Il.bind(null,e,o):null}finally{null===o&&r===e.callbackNode&&(e.callbackNode=null,e.callbackExpirationTime=0)}}function Al(){(al&(1|Ja|el))===$a&&(function(){if(null!==El){var e=El;El=null,e.forEach((function(e,t){mo(Ul.bind(null,t,e))})),go()}}(),ql())}function jl(e,t){var n=al;al|=1;try{return e(t)}finally{(al=n)===$a&&go()}}function Dl(e,t,n,r){var o=al;al|=4;try{return fo(98,e.bind(null,t,n,r))}finally{(al=o)===$a&&go()}}function zl(e,t){var n=al;al&=-2,al|=Ka;try{return e(t)}finally{(al=n)===$a&&go()}}function Fl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Tr(n)),null!==sl)for(n=sl.return;null!==n;){var r=n;switch(r.tag){case 1:var o=r.type.childContextTypes;null!=o&&zr();break;case 3:si(),Fr();break;case 5:ui(r);break;case 4:si();break;case 13:case 19:Br(hi);break;case 10:So(r)}n=n.return}ll=e,sl=is(e.current,null),cl=t,ul=tl,dl=pl=1073741823,fl=null,hl=!1}function Ul(e,t,n){if((al&(Ja|el))!==$a)throw a(Error(327));if(e.firstPendingTime<t)return null;if(n&&e.finishedExpirationTime===t)return Hl.bind(null,e);if(ql(),e!==ll||t!==cl)Fl(e,t);else if(ul===ol)if(hl)Fl(e,t);else{var r=e.lastPendingTime;if(r<t)return Ul.bind(null,e,r)}if(null!==sl){r=al,al|=Ja;var o=Za.current;if(null===o&&(o=Ki),Za.current=Ki,n){if(1073741823!==t){var i=Nl();if(i<t)return al=r,Co(),Za.current=o,Ul.bind(null,e,i)}}else Pl=0;for(;;)try{if(n)for(;null!==sl;)sl=Wl(sl);else for(;null!==sl&&!Xr();)sl=Wl(sl);break}catch(n){if(Co(),Ui(),null===(i=sl)||null===i.return)throw Fl(e,t),al=r,n;e:{var l=e,s=i.return,c=i,u=n,p=cl;if(c.effectTag|=1024,c.firstEffect=c.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var d=u,f=0!=(hi.current&di);u=s;do{var h;if((h=13===u.tag)&&(null!==u.memoizedState?h=!1:h=void 0!==(h=u.memoizedProps).fallback&&(!0!==h.unstable_avoidThisFallback||!f)),h){if(null===(s=u.updateQueue)?((s=new Set).add(d),u.updateQueue=s):s.add(d),0==(2&u.mode)){u.effectTag|=64,c.effectTag&=-1957,1===c.tag&&(null===c.alternate?c.tag=17:((p=Lo(1073741823,null)).tag=2,Io(c,p))),c.expirationTime=1073741823;break e}c=l,l=p,null===(f=c.pingCache)?(f=c.pingCache=new Ha,s=new Set,f.set(d,s)):void 0===(s=f.get(d))&&(s=new Set,f.set(d,s)),s.has(l)||(s.add(l),c=$l.bind(null,c,d,l),d.then(c,c)),u.effectTag|=2048,u.expirationTime=p;break e}u=u.return}while(null!==u);u=Error((ut(c.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."+pt(c))}ul!==il&&(ul=nl),u=La(u,c),c=s;do{switch(c.tag){case 3:c.effectTag|=2048,c.expirationTime=p,Ao(c,p=Ga(c,u,p));break e;case 1:if(d=u,l=c.type,s=c.stateNode,0==(64&c.effectTag)&&("function"==typeof l.getDerivedStateFromError||null!==s&&"function"==typeof s.componentDidCatch&&(null===wl||!wl.has(s)))){c.effectTag|=2048,c.expirationTime=p,Ao(c,p=qa(c,d,p));break e}}c=c.return}while(null!==c)}sl=Yl(i)}if(al=r,Co(),Za.current=o,null!==sl)return Ul.bind(null,e,t)}if(e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,function(e,t){var n=e.firstBatch;return!!(null!==n&&n._defer&&n._expirationTime>=t)&&(ho(97,(function(){return n._onComplete(),null})),!0)}(e,t))return null;switch(ll=null,ul){case tl:throw a(Error(328));case nl:return(r=e.lastPendingTime)<t?Ul.bind(null,e,r):n?Hl.bind(null,e):(Fl(e,t),mo(Ul.bind(null,e,t)),null);case rl:return 1073741823===pl&&!n&&10<(n=ml+gl-co())?hl?(Fl(e,t),Ul.bind(null,e,t)):(r=e.lastPendingTime)<t?Ul.bind(null,e,r):(e.timeoutHandle=Sr(Hl.bind(null,e),n),null):Hl.bind(null,e);case ol:if(!n){if(hl)return Fl(e,t),Ul.bind(null,e,t);if((n=e.lastPendingTime)<t)return Ul.bind(null,e,n);if(1073741823!==dl?n=10*(1073741821-dl)-co():1073741823===pl?n=0:(n=10*(1073741821-pl)-5e3,0>(n=(r=co())-n)&&(n=0),(t=10*(1073741821-t)-r)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Xa(n/1960))-n)&&(n=t)),10<n)return e.timeoutHandle=Sr(Hl.bind(null,e),n),null}return Hl.bind(null,e);case il:return!n&&1073741823!==pl&&null!==fl&&(r=pl,0>=(t=0|(o=fl).busyMinDurationMs)?t=0:(n=0|o.busyDelayMs,t=(r=co()-(10*(1073741821-r)-(0|o.timeoutMs||5e3)))<=n?0:n+t-r),10<t)?(e.timeoutHandle=Sr(Hl.bind(null,e),t),null):Hl.bind(null,e);default:throw a(Error(329))}}function Vl(e,t){e<pl&&1<e&&(pl=e),null!==t&&e<dl&&1<e&&(dl=e,fl=t)}function Wl(e){var t=Jl(e.alternate,e,cl);return e.memoizedProps=e.pendingProps,null===t&&(t=Yl(e)),Qa.current=null,t}function Yl(e){sl=e;do{var t=sl.alternate;if(e=sl.return,0==(1024&sl.effectTag)){e:{var n=t,r=cl,i=(t=sl).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Dr(t.type)&&zr();break;case 3:si(),Fr(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==n&&null!==n.child||(sa(t),t.effectTag&=-3),Pa(t);break;case 5:ui(t),r=ai(ii.current);var l=t.type;if(null!==n&&null!=t.stateNode)Na(n,t,l,i,r),n.ref!==t.ref&&(t.effectTag|=128);else if(i){var s=ai(ri.current);if(sa(t)){i=void 0,l=(n=t).stateNode;var c=n.type,u=n.memoizedProps;switch(l[R]=n,l[I]=u,c){case"iframe":case"object":case"embed":In("load",l);break;case"video":case"audio":for(var p=0;p<ne.length;p++)In(ne[p],l);break;case"source":In("error",l);break;case"img":case"image":case"link":In("error",l),In("load",l);break;case"form":In("reset",l),In("submit",l);break;case"details":In("toggle",l);break;case"input":_t(l,u),In("invalid",l),wr(r,"onChange");break;case"select":l._wrapperState={wasMultiple:!!u.multiple},In("invalid",l),wr(r,"onChange");break;case"textarea":or(l,u),In("invalid",l),wr(r,"onChange")}for(i in br(c,u),p=null,u)u.hasOwnProperty(i)&&(s=u[i],"children"===i?"string"==typeof s?l.textContent!==s&&(p=["children",s]):"number"==typeof s&&l.textContent!==""+s&&(p=["children",""+s]):f.hasOwnProperty(i)&&null!=s&&wr(r,i));switch(c){case"input":Ye(l),St(l,u,!0);break;case"textarea":Ye(l),ar(l);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(l.onclick=xr)}r=p,n.updateQueue=r,null!==r&&Sa(t)}else{u=l,n=i,c=t,p=9===r.nodeType?r:r.ownerDocument,s===lr.html&&(s=sr(u)),s===lr.html?"script"===u?((u=p.createElement("div")).innerHTML="<script><\/script>",p=u.removeChild(u.firstChild)):"string"==typeof n.is?p=p.createElement(u,{is:n.is}):(p=p.createElement(u),"select"===u&&(u=p,n.multiple?u.multiple=!0:n.size&&(u.size=n.size))):p=p.createElementNS(s,u),(u=p)[R]=c,u[I]=n,Ta(n=u,t,!1,!1),c=n;var d=r,h=yr(l,i);switch(l){case"iframe":case"object":case"embed":In("load",c),r=i;break;case"video":case"audio":for(r=0;r<ne.length;r++)In(ne[r],c);r=i;break;case"source":In("error",c),r=i;break;case"img":case"image":case"link":In("error",c),In("load",c),r=i;break;case"form":In("reset",c),In("submit",c),r=i;break;case"details":In("toggle",c),r=i;break;case"input":_t(c,i),r=kt(c,i),In("invalid",c),wr(d,"onChange");break;case"option":r=tr(c,i);break;case"select":c._wrapperState={wasMultiple:!!i.multiple},r=o({},i,{value:void 0}),In("invalid",c),wr(d,"onChange");break;case"textarea":or(c,i),r=rr(c,i),In("invalid",c),wr(d,"onChange");break;default:r=i}br(l,r),u=void 0,p=l,s=c;var m=r;for(u in m)if(m.hasOwnProperty(u)){var g=m[u];"style"===u?gr(s,g):"dangerouslySetInnerHTML"===u?null!=(g=g?g.__html:void 0)&&pr(s,g):"children"===u?"string"==typeof g?("textarea"!==p||""!==g)&&dr(s,g):"number"==typeof g&&dr(s,""+g):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(f.hasOwnProperty(u)?null!=g&&wr(d,u):null!=g&&wt(s,u,g,h))}switch(l){case"input":Ye(c),St(c,i,!1);break;case"textarea":Ye(c),ar(c);break;case"option":null!=i.value&&c.setAttribute("value",""+xt(i.value));break;case"select":r=c,c=i,r.multiple=!!c.multiple,null!=(u=c.value)?nr(r,!!c.multiple,u,!1):null!=c.defaultValue&&nr(r,!!c.multiple,c.defaultValue,!0);break;default:"function"==typeof r.onClick&&(c.onclick=xr)}Cr(l,i)&&Sa(t),t.stateNode=n}null!==t.ref&&(t.effectTag|=128)}else if(null===t.stateNode)throw a(Error(166));break;case 6:if(n&&null!=t.stateNode)Oa(n,t,n.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw a(Error(166));n=ai(ii.current),ai(ri.current),sa(t)?(r=t.stateNode,n=t.memoizedProps,r[R]=t,r.nodeValue!==n&&Sa(t)):(r=t,(n=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[R]=t,r.stateNode=n)}break;case 11:break;case 13:if(Br(hi),i=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=r;break e}r=null!==i,i=!1,null===n?sa(t):(i=null!==(l=n.memoizedState),r||null===l||null!==(l=n.child.sibling)&&(null!==(c=t.firstEffect)?(t.firstEffect=l,l.nextEffect=c):(t.firstEffect=t.lastEffect=l,l.nextEffect=null),l.effectTag=8)),r&&!i&&0!=(2&t.mode)&&(null===n&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(hi.current&di)?ul===tl&&(ul=rl):ul!==tl&&ul!==rl||(ul=ol)),(r||i)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:si(),Pa(t);break;case 10:So(t);break;case 9:case 14:break;case 17:Dr(t.type)&&zr();break;case 18:break;case 19:if(Br(hi),null===(i=t.memoizedState))break;if(l=0!=(64&t.effectTag),null===(c=i.rendering)){if(l)Ba(i,!1);else if(ul!==tl||null!==n&&0!=(64&n.effectTag))for(n=t.child;null!==n;){if(null!==(c=mi(n))){for(t.effectTag|=64,Ba(i,!1),null!==(n=c.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),t.firstEffect=t.lastEffect=null,n=t.child;null!==n;)l=r,(i=n).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(c=i.alternate)?(i.childExpirationTime=0,i.expirationTime=l,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=c.childExpirationTime,i.expirationTime=c.expirationTime,i.child=c.child,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,l=c.dependencies,i.dependencies=null===l?null:{expirationTime:l.expirationTime,firstContext:l.firstContext,responders:l.responders}),n=n.sibling;Mr(hi,hi.current&pi|fi),t=t.child;break e}n=n.sibling}}else{if(!l)if(null!==(n=mi(c))){if(t.effectTag|=64,l=!0,Ba(i,!0),null===i.tail&&"hidden"===i.tailMode){null!==(r=n.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),null!==(t=t.lastEffect=i.lastEffect)&&(t.nextEffect=null);break}}else co()>i.tailExpiration&&1<r&&(t.effectTag|=64,l=!0,Ba(i,!1),t.expirationTime=t.childExpirationTime=r-1);i.isBackwards?(c.sibling=t.child,t.child=c):(null!==(r=i.last)?r.sibling=c:t.child=c,i.last=c)}if(null!==i.tail){0===i.tailExpiration&&(i.tailExpiration=co()+500),r=i.tail,i.rendering=r,i.tail=r.sibling,i.lastEffect=t.lastEffect,r.sibling=null,n=hi.current,Mr(hi,n=l?n&pi|fi:n&pi),t=r;break e}break;case 20:break;default:throw a(Error(156))}t=null}if(r=sl,1===cl||1!==r.childExpirationTime){for(n=0,i=r.child;null!==i;)(l=i.expirationTime)>n&&(n=l),(c=i.childExpirationTime)>n&&(n=c),i=i.sibling;r.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(1024&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=sl.firstEffect),null!==sl.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=sl.firstEffect),e.lastEffect=sl.lastEffect),1<sl.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=sl:e.firstEffect=sl,e.lastEffect=sl))}else{if(null!==(t=Ma(sl)))return t.effectTag&=1023,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=1024)}if(null!==(t=sl.sibling))return t;sl=e}while(null!==sl);return ul===tl&&(ul=il),null}function Hl(e){var t=uo();return fo(99,Gl.bind(null,e,t)),null!==kl&&ho(97,(function(){return ql(),null})),null}function Gl(e,t){if(ql(),(al&(Ja|el))!==$a)throw a(Error(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw a(Error(177));e.callbackNode=null,e.callbackExpirationTime=0;var o=n.expirationTime,i=n.childExpirationTime;if(o=i>o?i:o,e.firstPendingTime=o,o<e.lastPendingTime&&(e.lastPendingTime=o),e===ll&&(sl=ll=null,cl=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){i=al,al|=el,Qa.current=null,kr=Rn;var l=Hn();if(Gn(l)){if("selectionStart"in l)var s={start:l.selectionStart,end:l.selectionEnd};else e:{var c=(s=(s=l.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(c&&0!==c.rangeCount){s=c.anchorNode;var u=c.anchorOffset,p=c.focusNode;c=c.focusOffset;try{s.nodeType,p.nodeType}catch(e){s=null;break e}var d=0,f=-1,h=-1,m=0,g=0,v=l,b=null;t:for(;;){for(var y;v!==s||0!==u&&3!==v.nodeType||(f=d+u),v!==p||0!==c&&3!==v.nodeType||(h=d+c),3===v.nodeType&&(d+=v.nodeValue.length),null!==(y=v.firstChild);)b=v,v=y;for(;;){if(v===l)break t;if(b===s&&++m===u&&(f=d),b===p&&++g===c&&(h=d),null!==(y=v.nextSibling))break;b=(v=b).parentNode}v=y}s=-1===f||-1===h?null:{start:f,end:h}}else s=null}s=s||{start:0,end:0}}else s=null;_r={focusedElem:l,selectionRange:s},Rn=!1,vl=o;do{try{for(;null!==vl;){if(0!=(256&vl.effectTag)){var w=vl.alternate;switch((l=vl).tag){case 0:case 11:case 15:ja(vi,gi,l);break;case 1:if(256&l.effectTag&&null!==w){var x=w.memoizedProps,k=w.memoizedState,_=l.stateNode,C=_.getSnapshotBeforeUpdate(l.elementType===l.type?x:yo(l.type,x),k);_.__reactInternalSnapshotBeforeUpdate=C}break;case 3:case 5:case 6:case 4:case 17:break;default:throw a(Error(163))}}vl=vl.nextEffect}}catch(e){if(null===vl)throw a(Error(330));Ql(vl,e),vl=vl.nextEffect}}while(null!==vl);vl=o;do{try{for(w=t;null!==vl;){var E=vl.effectTag;if(16&E&&dr(vl.stateNode,""),128&E){var S=vl.alternate;if(null!==S){var T=S.ref;null!==T&&("function"==typeof T?T(null):T.current=null)}}switch(14&E){case 2:Ua(vl),vl.effectTag&=-3;break;case 6:Ua(vl),vl.effectTag&=-3,Wa(vl.alternate,vl);break;case 4:Wa(vl.alternate,vl);break;case 8:Va(x=vl,w),x.return=null,x.child=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null;var P=x.alternate;null!==P&&(P.return=null,P.child=null,P.memoizedState=null,P.updateQueue=null,P.dependencies=null)}vl=vl.nextEffect}}catch(e){if(null===vl)throw a(Error(330));Ql(vl,e),vl=vl.nextEffect}}while(null!==vl);if(T=_r,S=Hn(),E=T.focusedElem,w=T.selectionRange,S!==E&&E&&E.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))))}(E.ownerDocument.documentElement,E)){null!==w&&Gn(E)&&(S=w.start,void 0===(T=w.end)&&(T=S),"selectionStart"in E?(E.selectionStart=S,E.selectionEnd=Math.min(T,E.value.length)):(T=(S=E.ownerDocument||document)&&S.defaultView||window).getSelection&&(T=T.getSelection(),x=E.textContent.length,P=Math.min(w.start,x),w=void 0===w.end?P:Math.min(w.end,x),!T.extend&&P>w&&(x=w,w=P,P=x),x=Yn(E,P),k=Yn(E,w),x&&k&&(1!==T.rangeCount||T.anchorNode!==x.node||T.anchorOffset!==x.offset||T.focusNode!==k.node||T.focusOffset!==k.offset)&&((S=S.createRange()).setStart(x.node,x.offset),T.removeAllRanges(),P>w?(T.addRange(S),T.extend(k.node,k.offset)):(S.setEnd(k.node,k.offset),T.addRange(S))))),S=[];for(T=E;T=T.parentNode;)1===T.nodeType&&S.push({element:T,left:T.scrollLeft,top:T.scrollTop});for("function"==typeof E.focus&&E.focus(),E=0;E<S.length;E++)(T=S[E]).element.scrollLeft=T.left,T.element.scrollTop=T.top}_r=null,Rn=!!kr,kr=null,e.current=n,vl=o;do{try{for(E=r;null!==vl;){var N=vl.effectTag;if(36&N){var O=vl.alternate;switch(T=E,(S=vl).tag){case 0:case 11:case 15:ja(wi,xi,S);break;case 1:var B=S.stateNode;if(4&S.effectTag)if(null===O)B.componentDidMount();else{var M=S.elementType===S.type?O.memoizedProps:yo(S.type,O.memoizedProps);B.componentDidUpdate(M,O.memoizedState,B.__reactInternalSnapshotBeforeUpdate)}var L=S.updateQueue;null!==L&&Fo(0,L,B);break;case 3:var R=S.updateQueue;if(null!==R){if(P=null,null!==S.child)switch(S.child.tag){case 5:P=S.child.stateNode;break;case 1:P=S.child.stateNode}Fo(0,R,P)}break;case 5:var I=S.stateNode;null===O&&4&S.effectTag&&(T=I,Cr(S.type,S.memoizedProps)&&T.focus());break;case 6:case 4:case 12:break;case 13:case 19:case 17:case 20:break;default:throw a(Error(163))}}if(128&N){var A=vl.ref;if(null!==A){var j=vl.stateNode;switch(vl.tag){case 5:var D=j;break;default:D=j}"function"==typeof A?A(D):A.current=D}}512&N&&(xl=!0),vl=vl.nextEffect}}catch(e){if(null===vl)throw a(Error(330));Ql(vl,e),vl=vl.nextEffect}}while(null!==vl);vl=null,oo(),al=i}else e.current=n;if(xl)xl=!1,kl=e,Cl=r,_l=t;else for(vl=o;null!==vl;)t=vl.nextEffect,vl.nextEffect=null,vl=t;if(0!==(t=e.firstPendingTime)?Rl(e,N=bo(N=Nl(),t),t):wl=null,"function"==typeof es&&es(n.stateNode,r),1073741823===t?e===Tl?Sl++:(Sl=0,Tl=e):Sl=0,bl)throw bl=!1,e=yl,yl=null,e;return(al&Ka)!==$a?null:(go(),null)}function ql(){if(null===kl)return!1;var e=kl,t=Cl,n=_l;return kl=null,Cl=0,_l=90,fo(97<n?97:n,Xl.bind(null,e,t))}function Xl(e){if((al&(Ja|el))!==$a)throw a(Error(331));var t=al;for(al|=el,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:ja(_i,gi,n),ja(gi,ki,n)}}catch(t){if(null===e)throw a(Error(330));Ql(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return al=t,go(),!0}function Zl(e,t,n){Io(e,t=Ga(e,t=La(n,t),1073741823)),null!==(e=Ll(e,1073741823))&&Rl(e,99,1073741823)}function Ql(e,t){if(3===e.tag)Zl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Zl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===wl||!wl.has(r))){Io(n,e=qa(n,e=La(t,e),1073741823)),null!==(n=Ll(n,1073741823))&&Rl(n,99,1073741823);break}}n=n.return}}function $l(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),ll===e&&cl===n?ul===ol||ul===rl&&1073741823===pl&&co()-ml<gl?Fl(e,cl):hl=!0:e.lastPendingTime<n||(0!==(t=e.pingTime)&&t<n||(e.pingTime=n,e.finishedExpirationTime===n&&(e.finishedExpirationTime=0,e.finishedWork=null),Rl(e,t=bo(t=Nl(),n),n)))}function Kl(e,t){var n=e.stateNode;null!==n&&n.delete(t),n=bo(n=Nl(),t=Ol(n,e,null)),null!==(e=Ll(e,t))&&Rl(e,n,t)}var Jl=void 0;Jl=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||Ir.current)pa=!0;else if(r<n){switch(pa=!1,t.tag){case 3:wa(t),ca();break;case 5:if(ci(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:Dr(t.type)&&Wr(t);break;case 4:li(t,t.stateNode.containerInfo);break;case 10:Eo(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?ka(e,t,n):(Mr(hi,hi.current&pi),null!==(t=Ea(e,t,n))?t.sibling:null);Mr(hi,hi.current&pi);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Ca(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),Mr(hi,hi.current),!r)return null}return Ea(e,t,n)}}else pa=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=jr(t,Rr.current),Po(t,n),o=Fi(null,t,r,e,o,n),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,Ui(),Dr(r)){var i=!0;Wr(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var l=r.getDerivedStateFromProps;"function"==typeof l&&Yo(t,r,l,e),o.updater=Ho,t.stateNode=o,o._reactInternalFiber=t,Zo(t,r,e,n),t=ya(null,t,r,!0,i,n)}else t.tag=0,da(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),e=t.pendingProps,o=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(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._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(o),t.type=o,i=t.tag=function(e){if("function"==typeof e)return os(e)?1:0;if(null!=e){if((e=e.$$typeof)===rt)return 11;if(e===at)return 14}return 2}(o),e=yo(o,e),i){case 0:t=va(null,t,o,e,n);break;case 1:t=ba(null,t,o,e,n);break;case 11:t=fa(null,t,o,e,n);break;case 14:t=ha(null,t,o,yo(o.type,e),r,n);break;default:throw a(Error(306),o,"")}return t;case 0:return r=t.type,o=t.pendingProps,va(e,t,r,o=t.elementType===r?o:yo(r,o),n);case 1:return r=t.type,o=t.pendingProps,ba(e,t,r,o=t.elementType===r?o:yo(r,o),n);case 3:if(wa(t),null===(r=t.updateQueue))throw a(Error(282));return o=null!==(o=t.memoizedState)?o.element:null,zo(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===o?(ca(),t=Ea(e,t,n)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(na=Pr(t.stateNode.containerInfo.firstChild),ta=t,o=ra=!0),o?(t.effectTag|=2,t.child=ti(t,null,r,n)):(da(e,t,r,n),ca()),t=t.child),t;case 5:return ci(t),null===e&&aa(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,Er(r,o)?l=null:null!==i&&Er(r,i)&&(t.effectTag|=16),ga(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(da(e,t,l,n),t=t.child),t;case 6:return null===e&&aa(t),null;case 13:return ka(e,t,n);case 4:return li(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ei(t,null,r,n):da(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,fa(e,t,r,o=t.elementType===r?o:yo(r,o),n);case 7:return da(e,t,t.pendingProps,n),t.child;case 8:case 12:return da(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,Eo(t,i=o.value),null!==l){var s=l.value;if(0===(i=tn(s,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,i):1073741823))){if(l.children===o.children&&!Ir.current){t=Ea(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var c=s.dependencies;if(null!==c){l=s.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&i)){1===s.tag&&((u=Lo(n,null)).tag=2,Io(s,u)),s.expirationTime<n&&(s.expirationTime=n),null!==(u=s.alternate)&&u.expirationTime<n&&(u.expirationTime=n),To(s.return,n),c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}}da(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,Po(t,n),r=r(o=No(o,i.unstable_observedBits)),t.effectTag|=1,da(e,t,r,n),t.child;case 14:return i=yo(o=t.type,t.pendingProps),ha(e,t,o,i=yo(o.type,i),r,n);case 15:return ma(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:yo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Dr(r)?(e=!0,Wr(t)):e=!1,Po(t,n),qo(t,r,o),Zo(t,r,o,n),ya(null,t,r,!0,e,n);case 19:return Ca(e,t,n)}throw a(Error(156))};var es=null,ts=null;function ns(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function rs(e,t,n,r){return new ns(e,t,n,r)}function os(e){return!(!(e=e.prototype)||!e.isReactComponent)}function is(e,t){var n=e.alternate;return null===n?((n=rs(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,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function as(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)os(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case $e:return ls(n.children,o,i,t);case nt:l=8,o|=7;break;case Ke:l=8,o|=1;break;case Je:return(e=rs(12,n,t,8|o)).elementType=Je,e.type=Je,e.expirationTime=i,e;case ot:return(e=rs(13,n,t,o)).type=ot,e.elementType=ot,e.expirationTime=i,e;case it:return(e=rs(19,n,t,o)).elementType=it,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case et:l=10;break e;case tt:l=9;break e;case rt:l=11;break e;case at:l=14;break e;case lt:l=16,r=null;break e}throw a(Error(130),null==e?e:typeof e,"")}return(t=rs(l,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function ls(e,t,n,r){return(e=rs(7,e,r,t)).expirationTime=n,e}function ss(e,t,n){return(e=rs(6,e,null,t)).expirationTime=n,e}function cs(e,t,n){return(t=rs(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function us(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=this.firstBatch=null,this.pingTime=this.lastPendingTime=this.firstPendingTime=this.callbackExpirationTime=0}function ps(e,t,n){return e=new us(e,t,n),t=rs(3,null,null,2===t?7:1===t?3:0),e.current=t,t.stateNode=e}function ds(e,t,n,r,o,i){var l=t.current;e:if(n){t:{if(2!==an(n=n._reactInternalFiber)||1!==n.tag)throw a(Error(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Dr(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw a(Error(171))}if(1===n.tag){var c=n.type;if(Dr(c)){n=Vr(n,c,s);break e}}n=s}else n=Lr;return null===t.context?t.context=n:t.pendingContext=n,t=i,(o=Lo(r,o)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),Io(l,o),Ml(l,r),r}function fs(e,t,n,r){var o=t.current,i=Nl(),a=Vo.suspense;return ds(e,t,n,o=Ol(i,o,a),a,r)}function hs(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function ms(e){var t=1073741821-25*(1+((1073741821-Nl()+500)/25|0));t<=Bl&&--t,this._expirationTime=Bl=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function gs(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function vs(e,t,n){this._internalRoot=ps(e,t,n)}function bs(e,t){this._internalRoot=ps(e,2,t)}function ys(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ws(e,t,n,r,o){var i=n._reactRootContainer,a=void 0;if(i){if(a=i._internalRoot,"function"==typeof o){var l=o;o=function(){var e=hs(a);l.call(e)}}fs(t,a,e,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 vs(e,0,t)}(n,r),a=i._internalRoot,"function"==typeof o){var s=o;o=function(){var e=hs(a);s.call(e)}}zl((function(){fs(t,a,e,o)}))}return hs(a)}function xs(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ys(t))throw a(Error(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Qe,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Te=function(e,t,n){switch(t){case"input":if(Et(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=z(r);if(!o)throw a(Error(90));He(r),Et(r,o)}}}break;case"textarea":ir(e,n);break;case"select":null!=(t=n.value)&&nr(e,!!n.multiple,t,!1)}},ms.prototype.render=function(e){if(!this._defer)throw a(Error(250));this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new gs;return ds(e,t,null,n,null,r._onCommit),r},ms.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},ms.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(!this._defer||null===t)throw a(Error(251));if(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;if(null===r)throw a(Error(251));r._next=o._next,this._next=t,e.firstBatch=this}if(this._defer=!1,t=n,(al&(Ja|el))!==$a)throw a(Error(253));mo(Ul.bind(null,e,t)),go(),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},ms.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])()}},gs.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},gs.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];if("function"!=typeof n)throw a(Error(191),n);n()}}},bs.prototype.render=vs.prototype.render=function(e,t){var n=this._internalRoot,r=new gs;return null!==(t=void 0===t?null:t)&&r.then(t),fs(e,n,null,r._onCommit),r},bs.prototype.unmount=vs.prototype.unmount=function(e){var t=this._internalRoot,n=new gs;return null!==(e=void 0===e?null:e)&&n.then(e),fs(null,t,null,n._onCommit),n},bs.prototype.createBatch=function(){var e=new ms(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=jl,Re=Dl,Ie=Al,Ae=function(e,t){var n=al;al|=2;try{return e(t)}finally{(al=n)===$a&&go()}};var ks,_s,Cs={createPortal:xs,findDOMNode:function(e){if(null==e)e=null;else if(1!==e.nodeType){var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw a(Error(188));throw a(Error(268),Object.keys(e))}e=null===(e=sn(t))?null:e.stateNode}return e},hydrate:function(e,t,n){if(!ys(t))throw a(Error(200));return ws(null,e,t,!0,n)},render:function(e,t,n){if(!ys(t))throw a(Error(200));return ws(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){if(!ys(n))throw a(Error(200));if(null==e||void 0===e._reactInternalFiber)throw a(Error(38));return ws(e,t,n,!1,r)},unmountComponentAtNode:function(e){if(!ys(e))throw a(Error(40));return!!e._reactRootContainer&&(zl((function(){ws(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return xs.apply(void 0,arguments)},unstable_batchedUpdates:jl,unstable_interactiveUpdates:function(e,t,n,r){return Al(),Dl(e,t,n,r)},unstable_discreteUpdates:Dl,unstable_flushDiscreteUpdates:Al,flushSync:function(e,t){if((al&(Ja|el))!==$a)throw a(Error(187));var n=al;al|=1;try{return fo(99,e.bind(null,t))}finally{al=n,go()}},unstable_createRoot:function(e,t){if(!ys(e))throw a(Error(299),"unstable_createRoot");return new bs(e,null!=t&&!0===t.hydrate)},unstable_createSyncRoot:function(e,t){if(!ys(e))throw a(Error(299),"unstable_createRoot");return new vs(e,1,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=al;al|=1;try{fo(99,e)}finally{(al=t)===$a&&go()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[j,D,z,B.injectEventPluginsByName,d,H,function(e){T(e,Y)},Be,Me,zn,O,ql,{current:!1}]}};_s=(ks={findFiberByHostInstance:A,bundleType:0,version:"16.9.0",rendererPackageName:"react-dom"}).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);es=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},ts=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(o({},ks,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ge.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=sn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return _s?_s(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}));var Es={default:Cs},Ss=Es&&Cs||Es;e.exports=Ss.default||Ss},function(e,t,n){"use strict";e.exports=n(129)},function(e,t,n){"use strict";
- /** @license React v0.15.0
- * 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 r=void 0,o=void 0,i=void 0,a=void 0,l=void 0;if(t.unstable_now=void 0,t.unstable_forceFrameRate=void 0,"undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,u=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(u,0),e}};t.unstable_now=function(){return Date.now()},r=function(e){null!==s?setTimeout(r,0,e):(s=e,setTimeout(u,0))},o=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},a=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,f=window.setTimeout,h=window.clearTimeout,m=window.requestAnimationFrame,g=window.cancelAnimationFrame;"undefined"!=typeof console&&("function"!=typeof m&&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 g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),t.unstable_now="object"==typeof p&&"function"==typeof p.now?function(){return p.now()}:function(){return d.now()};var v=!1,b=null,y=-1,w=-1,x=33.33,k=-1,_=-1,C=0,E=!1;a=function(){return t.unstable_now()>=C},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):0<e?(x=Math.floor(1e3/e),E=!0):(x=33.33,E=!1)};var S=function(){if(null!==b){var e=t.unstable_now(),n=0<C-e;try{b(n,e)||(b=null)}catch(e){throw P.postMessage(null),e}}},T=new MessageChannel,P=T.port2;T.port1.onmessage=S;var N=function(e){if(null===b)_=k=-1,v=!1;else{v=!0,m((function(e){h(y),N(e)}));var n=function(){C=t.unstable_now()+x/2,S(),y=f(n,3*x)};if(y=f(n,3*x),-1!==k&&.1<e-k){var r=e-k;!E&&-1!==_&&r<x&&_<x&&(8.33>(x=r<_?_:r)&&(x=8.33)),_=r}k=e,C=e+x,P.postMessage(null)}};r=function(e){b=e,v||(v=!0,m((function(e){N(e)})))},o=function(e,n){w=f((function(){e(t.unstable_now())}),n)},i=function(){h(w),w=-1}}var O=null,B=null,M=null,L=3,R=!1,I=!1,A=!1;function j(e,t){var n=e.next;if(n===e)O=null;else{e===O&&(O=n);var r=e.previous;r.next=n,n.previous=r}e.next=e.previous=null,n=e.callback,r=L;var o=M;L=e.priorityLevel,M=e;try{var i=e.expirationTime<=t;switch(L){case 1:var a=n(i);break;case 2:case 3:case 4:a=n(i);break;case 5:a=n(i)}}catch(e){throw e}finally{L=r,M=o}if("function"==typeof a)if(t=e.expirationTime,e.callback=a,null===O)O=e.next=e.previous=e;else{a=null,i=O;do{if(t<=i.expirationTime){a=i;break}i=i.next}while(i!==O);null===a?a=O:a===O&&(O=e),(t=a.previous).next=a.previous=e,e.next=a,e.previous=t}}function D(e){if(null!==B&&B.startTime<=e)do{var t=B,n=t.next;if(t===n)B=null;else{B=n;var r=t.previous;r.next=n,n.previous=r}t.next=t.previous=null,V(t,t.expirationTime)}while(null!==B&&B.startTime<=e)}function z(e){A=!1,D(e),I||(null!==O?(I=!0,r(F)):null!==B&&o(z,B.startTime-e))}function F(e,n){I=!1,A&&(A=!1,i()),D(n),R=!0;try{if(e){if(null!==O)do{j(O,n),D(n=t.unstable_now())}while(null!==O&&!a())}else for(;null!==O&&O.expirationTime<=n;)j(O,n),D(n=t.unstable_now());return null!==O||(null!==B&&o(z,B.startTime-n),!1)}finally{R=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}function V(e,t){if(null===O)O=e.next=e.previous=e;else{var n=null,r=O;do{if(t<r.expirationTime){n=r;break}r=r.next}while(r!==O);null===n?n=O:n===O&&(O=e),(t=n.previous).next=n.previous=e,e.next=n,e.previous=t}}var W=l;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,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=L;L=e;try{return t()}finally{L=n}},t.unstable_next=function(e){switch(L){case 1:case 2:case 3:var t=3;break;default:t=L}var n=L;L=t;try{return e()}finally{L=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();if("object"==typeof a&&null!==a){var s=a.delay;s="number"==typeof s&&0<s?l+s:l,a="number"==typeof a.timeout?a.timeout:U(e)}else a=U(e),s=l;if(e={callback:n,priorityLevel:e,startTime:s,expirationTime:a=s+a,next:null,previous:null},s>l){if(a=s,null===B)B=e.next=e.previous=e;else{n=null;var c=B;do{if(a<c.startTime){n=c;break}c=c.next}while(c!==B);null===n?n=B:n===B&&(B=e),(a=n.previous).next=n.previous=e,e.next=n,e.previous=a}null===O&&B===e&&(A?i():A=!0,o(z,s-l))}else V(e,a),I||R||(I=!0,r(F));return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(e===t)e===O?O=null:e===B&&(B=null);else{e===O?O=t:e===B&&(B=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var t=L;return function(){var n=L;L=t;try{return e.apply(this,arguments)}finally{L=n}}},t.unstable_getCurrentPriorityLevel=function(){return L},t.unstable_shouldYield=function(){var e=t.unstable_now();return D(e),null!==M&&null!==O&&O.startTime<=e&&O.expirationTime<M.expirationTime||a()},t.unstable_requestPaint=W,t.unstable_continueExecution=function(){I||R||(I=!0,r(F))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return O}},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(131),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(24))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,l,s=1,c={},u=!1,p=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){i.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(o=p.documentElement,r=function(e){var t=p.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",l=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),r=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return c[s]=o,r(s),s++},d.clearImmediate=f}function f(e){delete c[e]}function h(e){if(u)setTimeout(h,0,e);else{var t=c[e];if(t){u=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}(t)}finally{f(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(24),n(132))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,c=[],u=!1,p=-1;function d(){u&&s&&(u=!1,s.length?c=s.concat(c):p=-1,c.length&&f())}function f(){if(!u){var e=l(d);u=!0;for(var t=c.length;t;){for(s=c,c=[];++p<t;)s&&s[p].run();p=-1,t=c.length}s=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||u||l(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(134);function o(){}function i(){}i.resetWarningCache=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,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return 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(136);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(26)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(25)(!1)).push([e.i,"#nodeList{background:#333333;height:100%;margin:0;padding:0;display:grid;width:100%;overflow:hidden}#nodeList .panes{overflow:hidden}#nodeList .panes .pane{color:white;overflow:hidden;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#nodeList .panes .pane .filter{display:flex;align-items:stretch}#nodeList .panes .pane .filter input{width:100%;margin:10px 10px 5px 10px;display:block;border:none;padding:0;border-bottom:solid 1px #337ab7;background:linear-gradient(to bottom, rgba(255,255,255,0) 96%, #337ab7 4%);background-position:-1000px 0;background-size:1000px 100%;background-repeat:no-repeat;color:white}#nodeList .panes .pane .filter input:focus{box-shadow:none;outline:none;background-position:0 0}#nodeList .panes .pane .filter input::placeholder{color:gray}#nodeList .panes .pane .list-container{overflow-x:hidden;overflow-y:auto;height:calc(100% - 32px)}#nodeList .panes .pane .list-container .underline{border-bottom:0.5px solid rgba(255,255,255,0.5)}#nodeList .panes .pane .list-container .draggableLine{height:30px;display:grid;align-items:center;justify-items:stretch;background:#222222;cursor:grab;text-align:center;margin:0;box-sizing:border-box}#nodeList .panes .pane .list-container .draggableLine:hover{background:#337ab7;color:white}#nodeList .panes .pane .list-container .buttonLine{height:30px;display:grid;align-items:center;justify-items:stretch}#nodeList .panes .pane .list-container .buttonLine button{background:#222222;margin:5px 10px 5px 10px;color:white;padding:4px 5px;opacity:0.9}#nodeList .panes .pane .list-container .buttonLine button:hover{opacity:1.0}#nodeList .panes .pane .list-container .buttonLine button:active{background:#282828}#nodeList .panes .pane .list-container .buttonLine button:focus{outline:0px}#nodeList .panes .pane .list-container .paneContainer{margin-top:3px;display:grid;grid-template-rows:100%;grid-template-columns:100%}#nodeList .panes .pane .list-container .paneContainer .paneContainer-content{grid-row:1;grid-column:1}#nodeList .panes .pane .list-container .paneContainer .paneContainer-content .header{display:grid;grid-template-columns:1fr auto;background:#555555;height:30px;padding-right:5px;cursor:pointer}#nodeList .panes .pane .list-container .paneContainer .paneContainer-content .header .title{border-left:3px solid transparent;padding-left:5px;grid-column:1;display:flex;align-items:center}#nodeList .panes .pane .list-container .paneContainer .paneContainer-content .header .collapse{grid-column:2;display:flex;align-items:center;justify-items:center;transform-origin:center}#nodeList .panes .pane .list-container .paneContainer .paneContainer-content .header .collapse.closed{transform:rotate(180deg)}#nodeList .panes .pane .list-container .paneContainer .paneContainer-content .paneList>div:not(:last-child){border-bottom:1px solid rgba(255,255,255,0.3)}\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(139);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(26)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(25)(!1)).push([e.i,'#propertyTab{color:white;background:#333333}#propertyTab #header{height:30px;font-size:16px;color:white;background:#222222;grid-row:1;text-align:center;display:grid;grid-template-columns:30px 1fr;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#propertyTab #header #logo{position:relative;grid-column:1;width:24px;height:24px;left:0;display:flex;align-self:center;justify-self:center}#propertyTab #header #title{grid-column:2;display:grid;align-items:center;text-align:center}#propertyTab .range{-webkit-appearance:none;width:120px;height:6px;background:#d3d3d3;border-radius:5px;outline:none;opacity:0.7;-webkit-transition:.2s;transition:opacity .2s}#propertyTab .range:hover{opacity:1}#propertyTab .range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;background:#337ab7;cursor:pointer}#propertyTab .range::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#337ab7;cursor:pointer}#propertyTab input[type="color"]{-webkit-appearance:none;border:1px solid rgba(255,255,255,0.5);padding:0;width:30px;height:20px}#propertyTab input[type="color"]::-webkit-color-swatch-wrapper{padding:0}#propertyTab input[type="color"]::-webkit-color-swatch{border:none}#propertyTab .sliderLine{padding-left:5px;height:30px;display:grid;grid-template-columns:1fr auto}#propertyTab .sliderLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .sliderLine .slider{grid-column:2;margin-right:5px;display:flex;align-items:center}#propertyTab .textInputLine{padding-left:5px;height:30px;display:grid;grid-template-columns:1fr 120px}#propertyTab .textInputLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .textInputLine .value{display:flex;align-items:center;grid-column:2}#propertyTab .textInputLine .value input{width:calc(100% - 5px)}#propertyTab .paneContainer{margin-top:3px;display:grid;grid-template-rows:100%;grid-template-columns:100%}#propertyTab .paneContainer .paneList{border-left:3px solid transparent}#propertyTab .paneContainer:hover .paneList{border-left:3px solid rgba(51,122,183,0.8)}#propertyTab .paneContainer:hover .paneContainer-content .header .title{border-left:3px solid #337ab7}#propertyTab .paneContainer .paneContainer-highlight-border{grid-row:1;grid-column:1;opacity:1;border:3px solid red;transition:opacity 250ms;pointer-events:none}#propertyTab .paneContainer .paneContainer-highlight-border.transparent{opacity:0}#propertyTab .paneContainer .paneContainer-content{grid-row:1;grid-column:1}#propertyTab .paneContainer .paneContainer-content .header{display:grid;grid-template-columns:1fr auto;background:#555555;height:30px;padding-right:5px;cursor:pointer}#propertyTab .paneContainer .paneContainer-content .header .title{border-left:3px solid transparent;padding-left:5px;grid-column:1;display:flex;align-items:center}#propertyTab .paneContainer .paneContainer-content .header .collapse{grid-column:2;display:flex;align-items:center;justify-items:center;transform-origin:center}#propertyTab .paneContainer .paneContainer-content .header .collapse.closed{transform:rotate(180deg)}#propertyTab .paneContainer .paneContainer-content .paneList>div:not(:last-child){border-bottom:0.5px solid rgba(255,255,255,0.1)}#propertyTab .paneContainer .paneContainer-content .fragment>div:not(:last-child){border-bottom:0.5px solid rgba(255,255,255,0.1)}#propertyTab .gradient-step{display:grid;grid-template-rows:100%;grid-template-columns:30px 30px 40px auto 20px 5px;padding-top:5px;padding-left:5px;padding-bottom:5px}#propertyTab .gradient-step .step{grid-row:1;grid-column:1}#propertyTab .gradient-step .color{grid-row:1;grid-column:2;cursor:pointer}#propertyTab .gradient-step .step-value{margin-left:5px;grid-row:1;grid-column:3;text-align:right;margin-right:5px}#propertyTab .gradient-step .step-slider{grid-row:1;grid-column:4;display:grid;justify-content:stretch;align-content:center;margin-right:5px}#propertyTab .gradient-step .step-slider input{width:unset}#propertyTab .gradient-step .gradient-delete{grid-row:1;grid-column:5;display:grid;align-content:center;justify-content:center}#propertyTab .floatLine{padding-left:5px;height:30px;display:grid;grid-template-columns:1fr 120px}#propertyTab .floatLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .floatLine .value{grid-column:2;display:flex;align-items:center}#propertyTab .floatLine .value input{width:110px}#propertyTab .vector3Line{padding-left:5px;display:grid}#propertyTab .vector3Line .firstLine{display:grid;grid-template-columns:1fr auto 20px;height:30px}#propertyTab .vector3Line .firstLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .vector3Line .firstLine .vector{grid-column:2;display:flex;align-items:center;text-align:right;opacity:0.8}#propertyTab .vector3Line .firstLine .expand{grid-column:3;display:grid;align-items:center;justify-items:center;cursor:pointer}#propertyTab .vector3Line .secondLine{display:grid;padding-right:5px;border-left:1px solid #337ab7}#propertyTab .vector3Line .secondLine .no-right-margin{margin-right:0}#propertyTab .vector3Line .secondLine .numeric{display:grid;grid-template-columns:1fr auto}#propertyTab .vector3Line .secondLine .numeric-label{text-align:right;grid-column:1;display:flex;align-items:center;justify-self:right;margin-right:10px}#propertyTab .vector3Line .secondLine .numeric-value{width:120px;grid-column:2;display:flex;align-items:center;border:1px solid #337ab7}#propertyTab .buttonLine{height:30px;display:grid;align-items:center;justify-items:stretch;padding-bottom:5px}#propertyTab .buttonLine input[type="file"]{display:none}#propertyTab .buttonLine .file-upload{background:#222222;border:1px solid #337ab7;margin:5px 10px;color:white;padding:4px 5px;padding-top:0px;opacity:0.9;cursor:pointer;text-align:center}#propertyTab .buttonLine .file-upload:hover{opacity:1.0}#propertyTab .buttonLine .file-upload:active{transform:scale(0.98);transform-origin:0.5 0.5}#propertyTab .buttonLine button{background:#222222;border:1px solid #337ab7;margin:5px 10px 5px 10px;color:white;padding:4px 5px;opacity:0.9}#propertyTab .buttonLine button:hover{opacity:1.0}#propertyTab .buttonLine button:active{background:#282828}#propertyTab .buttonLine button:focus{border:1px solid #337ab7;outline:0px}#propertyTab .checkBoxLine{padding-left:5px;height:30px;display:grid;grid-template-columns:1fr auto}#propertyTab .checkBoxLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .checkBoxLine .checkBox{grid-column:2;display:flex;align-items:center}#propertyTab .checkBoxLine .checkBox .lbl{position:relative;display:block;height:14px;width:34px;margin-right:5px;background:#898989;border-radius:100px;cursor:pointer;transition:all 0.3s ease}#propertyTab .checkBoxLine .checkBox .lbl:after{position:absolute;left:3px;top:2px;display:block;width:10px;height:10px;border-radius:100px;background:#fff;box-shadow:0px 3px 3px rgba(0,0,0,0.05);content:\'\';transition:all 0.15s ease}#propertyTab .checkBoxLine .checkBox .lbl:active:after{transform:scale(1.15, 0.85)}#propertyTab .checkBoxLine .checkBox .cbx:checked ~ label{background:#337ab7}#propertyTab .checkBoxLine .checkBox .cbx:checked ~ label:after{left:20px;background:#164975}#propertyTab .checkBoxLine .checkBox .hidden{display:none}#propertyTab .listLine{padding-left:5px;height:30px;display:grid;grid-template-columns:1fr auto}#propertyTab .listLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .listLine .options{grid-column:2;display:flex;align-items:center;margin-right:5px}#propertyTab .listLine .options select{width:115px}#propertyTab .color3Line{padding-left:5px;display:grid}#propertyTab .color3Line .firstLine{height:30px;display:grid;grid-template-columns:1fr auto 20px 20px}#propertyTab .color3Line .firstLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .color3Line .firstLine .color3{grid-column:2;display:flex;align-items:center}#propertyTab .color3Line .firstLine .color3 input{margin-right:5px}#propertyTab .color3Line .firstLine .copy{grid-column:3;display:grid;align-items:center;justify-items:center;cursor:pointer}#propertyTab .color3Line .firstLine .expand{grid-column:4;display:grid;align-items:center;justify-items:center;cursor:pointer}#propertyTab .color3Line .secondLine{display:grid;padding-right:5px;border-left:1px solid #337ab7}#propertyTab .color3Line .secondLine .numeric{display:grid;grid-template-columns:1fr auto}#propertyTab .color3Line .secondLine .numeric-label{text-align:right;grid-column:1;display:flex;align-items:center;justify-self:right;margin-right:10px}#propertyTab .color3Line .secondLine .numeric-value{width:120px;grid-column:2;display:flex;align-items:center;border:1px solid #337ab7}#propertyTab .textLine{padding-left:5px;height:30px;display:grid;grid-template-columns:1fr auto}#propertyTab .textLine .label{grid-column:1;display:flex;align-items:center}#propertyTab .textLine .link-value{grid-column:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:end;opacity:0.8;margin:5px;margin-top:6px;max-width:140px;text-decoration:underline;cursor:pointer}#propertyTab .textLine .value{grid-column:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;text-align:end;opacity:0.8;margin:5px;margin-top:6px;max-width:200px;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}#propertyTab .textLine .value.check{color:green}#propertyTab .textLine .value.uncheck{color:red}\n',""])},function(e,t,n){var r=n(141);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(26)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(25)(!1)).push([e.i,"#log-console{background:#333333;height:120px;box-sizing:border-box;margin:0;padding:10px;width:100%;overflow:hidden;overflow-y:auto}#log-console .log{color:white;font-size:14px;font-family:'Courier New', Courier, monospace}#log-console .log.error{color:red}\n",""])},function(e,t,n){var r=n(143);e.exports={Graph:r.Graph,json:n(245),alg:n(246),version:r.version}},function(e,t,n){e.exports={Graph:n(50),version:n(244)}},function(e,t,n){var r=n(72),o=4;e.exports=function(e){return r(e,o)}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(34),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(34);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(34);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(34);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(33);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(33),o=n(51),i=n(52),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var l=n.__data__;if(!o||l.length<a-1)return l.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(l)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(27),o=n(158),i=n(7),a=n(74),l=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,u=s.toString,p=c.hasOwnProperty,d=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:l).test(a(e))}},function(e,t,n){var r=n(19),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,o=n(159),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(9)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(162),o=n(33),i=n(51);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(163),o=n(164),i=n(165),a=n(166),l=n(167);function s(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])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=l,e.exports=s},function(e,t,n){var r=n(35);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(35),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(35),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(35),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t,n){var r=n(36);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(36);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(36);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(36);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(28),o=n(14);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(16),o=n(10),i="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(16),o=n(55),i=n(10),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(77)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(28),o=n(21);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(7),o=n(41),i=n(181),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var l in e)("constructor"!=l||!t&&a.call(e,l))&&n.push(l);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(28),o=n(58);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(28),o=n(82);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(84),o=n(82),i=n(21);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(15)(n(9),"DataView");e.exports=r},function(e,t,n){var r=n(15)(n(9),"Promise");e.exports=r},function(e,t,n){var r=n(15)(n(9),"WeakMap");e.exports=r},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(60),o=n(190),i=n(191),a=n(192),l=n(87),s="[object Boolean]",c="[object Date]",u="[object Map]",p="[object Number]",d="[object RegExp]",f="[object Set]",h="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",v="[object DataView]",b="[object Float32Array]",y="[object Float64Array]",w="[object Int8Array]",x="[object Int16Array]",k="[object Int32Array]",_="[object Uint8Array]",C="[object Uint8ClampedArray]",E="[object Uint16Array]",S="[object Uint32Array]";e.exports=function(e,t,n){var T=e.constructor;switch(t){case g:return r(e);case s:case c:return new T(+e);case v:return o(e,n);case b:case y:case w:case x:case k:case _:case C:case E:case S:return l(e,n);case u:return new T;case p:case h:return new T(e);case d:return i(e);case f:return new T;case m:return a(e)}}},function(e,t,n){var r=n(60);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(19),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){var r=n(194),o=n(40),i=n(56),a=i&&i.isMap,l=a?o(a):r;e.exports=l},function(e,t,n){var r=n(22),o=n(10),i="[object Map]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t,n){var r=n(196),o=n(40),i=n(56),a=i&&i.isSet,l=a?o(a):r;e.exports=l},function(e,t,n){var r=n(22),o=n(10),i="[object Set]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),l=a.length;l--;){var s=a[e?l:++o];if(!1===n(i[s],s,i))break}return t}}},function(e,t,n){var r=n(11);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,l=Object(n);(t?a--:++a<i)&&!1!==o(l[a],a,l););return n}}},function(e,t,n){var r=n(43);e.exports=function(e,t){var n=[];return r(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}},function(e,t,n){var r=n(201),o=n(209),i=n(99);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(32),o=n(94),i=1,a=2;e.exports=function(e,t,n,l){var s=n.length,c=s,u=!l;if(null==e)return!c;for(e=Object(e);s--;){var p=n[s];if(u&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++s<c;){var d=(p=n[s])[0],f=e[d],h=p[1];if(u&&p[2]){if(void 0===f&&!(d in e))return!1}else{var m=new r;if(l)var g=l(f,h,d,e,t,m);if(!(void 0===g?o(h,f,i|a,l,m):g))return!1}}return!0}},function(e,t,n){var r=n(32),o=n(95),i=n(206),a=n(208),l=n(22),s=n(4),c=n(20),u=n(30),p=1,d="[object Arguments]",f="[object Array]",h="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,v,b){var y=s(e),w=s(t),x=y?f:l(e),k=w?f:l(t),_=(x=x==d?h:x)==h,C=(k=k==d?h:k)==h,E=x==k;if(E&&c(e)){if(!c(t))return!1;y=!0,_=!1}if(E&&!_)return b||(b=new r),y||u(e)?o(e,t,n,g,v,b):i(e,t,x,n,g,v,b);if(!(n&p)){var S=_&&m.call(e,"__wrapped__"),T=C&&m.call(t,"__wrapped__");if(S||T){var P=S?e.value():e,N=T?t.value():t;return b||(b=new r),v(P,N,n,g,b)}}return!!E&&(b||(b=new r),a(e,t,n,g,v,b))}},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(19),o=n(86),i=n(18),a=n(95),l=n(207),s=n(64),c=1,u=2,p="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Map]",m="[object Number]",g="[object RegExp]",v="[object Set]",b="[object String]",y="[object Symbol]",w="[object ArrayBuffer]",x="[object DataView]",k=r?r.prototype:void 0,_=k?k.valueOf:void 0;e.exports=function(e,t,n,r,k,C,E){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!C(new o(e),new o(t)));case p:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case g:case b:return e==t+"";case h:var S=l;case v:var T=r&c;if(S||(S=s),e.size!=t.size&&!T)return!1;var P=E.get(e);if(P)return P==t;r|=u,E.set(e,t);var N=a(S(e),S(t),r,k,C,E);return E.delete(e),N;case y:if(_)return _.call(e)==_.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t,n){var r=n(83),o=1,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,l,s){var c=n&o,u=r(e),p=u.length;if(p!=r(t).length&&!c)return!1;for(var d=p;d--;){var f=u[d];if(!(c?f in t:i.call(t,f)))return!1}var h=s.get(e);if(h&&s.get(t))return h==t;var m=!0;s.set(e,t),s.set(t,e);for(var g=c;++d<p;){var v=e[f=u[d]],b=t[f];if(a)var y=c?a(b,v,f,t,e,s):a(v,b,f,e,t,s);if(!(void 0===y?v===b||l(v,b,n,a,s):y)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x)&&(m=!1)}return s.delete(e),s.delete(t),m}},function(e,t,n){var r=n(98),o=n(14);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){var r=n(94),o=n(211),i=n(101),a=n(66),l=n(98),s=n(99),c=n(31),u=1,p=2;e.exports=function(e,t){return a(e)&&l(t)?s(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,u|p)}}},function(e,t,n){var r=n(65);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(213),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(214),o=500;e.exports=function(e){var t=r(e,(function(e){return n.size===o&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(52),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(19),o=n(45),i=n(4),a=n(23),l=1/0,s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-l?"-0":n}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(103),o=n(218),i=n(66),a=n(31);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t,n){var r=n(65);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t,n){var r=n(57),o=n(22),i=n(29),a=n(4),l=n(11),s=n(20),c=n(41),u=n(30),p="[object Map]",d="[object Set]",f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(l(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||s(e)||u(e)||i(e)))return!e.length;var t=o(e);if(t==p||t==d)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}},function(e,t){e.exports=function(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(e,t){e.exports=function(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}},function(e,t,n){var r=n(57),o=n(22),i=n(11),a=n(224),l=n(225),s="[object Map]",c="[object Set]";e.exports=function(e){if(null==e)return 0;if(i(e))return a(e)?l(e):e.length;var t=o(e);return t==s||t==c?e.size:r(e).length}},function(e,t,n){var r=n(16),o=n(4),i=n(10),a="[object String]";e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&r(e)==a}},function(e,t,n){var r=n(226),o=n(227),i=n(228);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t,n){var r=n(103)("length");e.exports=r},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+r+"|"+o+")"+"?",c="[\\ufe0e\\ufe0f]?"+s+("(?:\\u200d(?:"+[i,a,l].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*"),u="(?:"+[i+r+"?",r,a,l,n].join("|")+")",p=RegExp(o+"(?="+o+")|"+u+c,"g");e.exports=function(e){for(var t=p.lastIndex=0;p.test(e);)++t;return t}},function(e,t,n){var r=n(53),o=n(89),i=n(62),a=n(12),l=n(42),s=n(4),c=n(20),u=n(27),p=n(7),d=n(30);e.exports=function(e,t,n){var f=s(e),h=f||c(e)||d(e);if(t=a(t,4),null==n){var m=e&&e.constructor;n=h?f?new m:[]:p(e)&&u(m)?o(l(e)):{}}return(h?r:i)(e,(function(e,r,o){return t(n,e,r,o)})),n}},function(e,t,n){var r=n(67),o=n(46),i=n(235),a=n(112),l=o((function(e){return i(r(e,1,a,!0))}));e.exports=l},function(e,t,n){var r=n(19),o=n(29),i=n(4),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t){e.exports=function(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(e,t,n){var r=n(61),o=n(75),i=n(17),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){var n=800,r=16,o=Date.now;e.exports=function(e){var t=0,i=0;return function(){var a=o(),l=r-(a-i);if(i=a,l>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(96),o=n(236),i=n(240),a=n(97),l=n(241),s=n(64),c=200;e.exports=function(e,t,n){var u=-1,p=o,d=e.length,f=!0,h=[],m=h;if(n)f=!1,p=i;else if(d>=c){var g=t?null:l(e);if(g)return s(g);f=!1,p=a,m=new r}else m=t?[]:h;e:for(;++u<d;){var v=e[u],b=t?t(v):v;if(v=n||0!==v?v:0,f&&b==b){for(var y=m.length;y--;)if(m[y]===b)continue e;t&&m.push(b),h.push(v)}else p(m,b,n)||(m!==h&&m.push(b),h.push(v))}return h}},function(e,t,n){var r=n(237);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(111),o=n(238),i=n(239);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t){e.exports=function(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(e,t,n){var r=n(85),o=n(242),i=n(64),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(45);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},function(e,t){e.exports="2.1.7"},function(e,t,n){var r=n(6),o=n(50);function i(e){return r.map(e.nodes(),(function(t){var n=e.node(t),o=e.parent(t),i={v:t};return r.isUndefined(n)||(i.value=n),r.isUndefined(o)||(i.parent=o),i}))}function a(e){return r.map(e.edges(),(function(t){var n=e.edge(t),o={v:t.v,w:t.w};return r.isUndefined(t.name)||(o.name=t.name),r.isUndefined(n)||(o.value=n),o}))}e.exports={write:function(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:i(e),edges:a(e)};r.isUndefined(e.graph())||(t.value=r.clone(e.graph()));return t},read:function(e){var t=new o(e.options).setGraph(e.value);return r.each(e.nodes,(function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)})),r.each(e.edges,(function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)})),t}}},function(e,t,n){e.exports={components:n(247),dijkstra:n(114),dijkstraAll:n(248),findCycles:n(249),floydWarshall:n(250),isAcyclic:n(251),postorder:n(252),preorder:n(253),prim:n(254),tarjan:n(116),topsort:n(117)}},function(e,t,n){var r=n(6);e.exports=function(e){var t,n={},o=[];function i(o){r.has(n,o)||(n[o]=!0,t.push(o),r.each(e.successors(o),i),r.each(e.predecessors(o),i))}return r.each(e.nodes(),(function(e){t=[],i(e),t.length&&o.push(t)})),o}},function(e,t,n){var r=n(114),o=n(6);e.exports=function(e,t,n){return o.transform(e.nodes(),(function(o,i){o[i]=r(e,i,t,n)}),{})}},function(e,t,n){var r=n(6),o=n(116);e.exports=function(e){return r.filter(o(e),(function(t){return t.length>1||1===t.length&&e.hasEdge(t[0],t[0])}))}},function(e,t,n){var r=n(6);e.exports=function(e,t,n){return function(e,t,n){var r={},o=e.nodes();return o.forEach((function(e){r[e]={},r[e][e]={distance:0},o.forEach((function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})})),n(e).forEach((function(n){var o=n.v===e?n.w:n.v,i=t(n);r[e][o]={distance:i,predecessor:e}}))})),o.forEach((function(e){var t=r[e];o.forEach((function(n){var i=r[n];o.forEach((function(n){var r=i[e],o=t[n],a=i[n],l=r.distance+o.distance;l<a.distance&&(a.distance=l,a.predecessor=o.predecessor)}))}))})),r}(e,t||o,n||function(t){return e.outEdges(t)})};var o=r.constant(1)},function(e,t,n){var r=n(117);e.exports=function(e){try{r(e)}catch(e){if(e instanceof r.CycleException)return!1;throw e}return!0}},function(e,t,n){var r=n(118);e.exports=function(e,t){return r(e,t,"post")}},function(e,t,n){var r=n(118);e.exports=function(e,t){return r(e,t,"pre")}},function(e,t,n){var r=n(6),o=n(50),i=n(115);e.exports=function(e,t){var n,a=new o,l={},s=new i;function c(e){var r=e.v===n?e.w:e.v,o=s.priority(r);if(void 0!==o){var i=t(e);i<o&&(l[r]=n,s.decrease(r,i))}}if(0===e.nodeCount())return a;r.each(e.nodes(),(function(e){s.add(e,Number.POSITIVE_INFINITY),a.setNode(e)})),s.decrease(e.nodes()[0],0);var u=!1;for(;s.size()>0;){if(n=s.removeMin(),r.has(l,n))a.setEdge(n,l[n]);else{if(u)throw new Error("Input graph is not connected: "+e);u=!0}e.nodeEdges(n).forEach(c)}return a}},function(e,t,n){"use strict";var r=n(3),o=n(293),i=n(296),a=n(297),l=n(5).normalizeRanks,s=n(299),c=n(5).removeEmptyRanks,u=n(300),p=n(301),d=n(302),f=n(303),h=n(312),m=n(5),g=n(8).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?m.time:m.notime;n("layout",(function(){var t=n(" buildLayoutGraph",(function(){return function(e){var t=new g({multigraph:!0,compound:!0}),n=S(e.graph());return t.setGraph(r.merge({},b,E(n,v),r.pick(n,y))),r.forEach(e.nodes(),(function(n){var o=S(e.node(n));t.setNode(n,r.defaults(E(o,w),x)),t.setParent(n,e.parent(n))})),r.forEach(e.edges(),(function(n){var o=S(e.edge(n));t.setEdge(n,r.merge({},_,E(o,k),r.pick(o,C)))})),t}(e)}));n(" runLayout",(function(){!function(e,t){t(" makeSpaceForEdgeLabels",(function(){!function(e){var t=e.graph();t.ranksep/=2,r.forEach(e.edges(),(function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(e)})),t(" removeSelfEdges",(function(){!function(e){r.forEach(e.edges(),(function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}(e)})),t(" acyclic",(function(){o.run(e)})),t(" nestingGraph.run",(function(){u.run(e)})),t(" rank",(function(){a(m.asNonCompoundGraph(e))})),t(" injectEdgeLabelProxies",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),o={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};m.addDummyNode(e,"edge-proxy",o,"_ep")}}))}(e)})),t(" removeEmptyRanks",(function(){c(e)})),t(" nestingGraph.cleanup",(function(){u.cleanup(e)})),t(" normalizeRanks",(function(){l(e)})),t(" assignRankMinMax",(function(){!function(e){var t=0;r.forEach(e.nodes(),(function(n){var o=e.node(n);o.borderTop&&(o.minRank=e.node(o.borderTop).rank,o.maxRank=e.node(o.borderBottom).rank,t=r.max(t,o.maxRank))})),e.graph().maxRank=t}(e)})),t(" removeEdgeLabelProxies",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}(e)})),t(" normalize.run",(function(){i.run(e)})),t(" parentDummyChains",(function(){s(e)})),t(" addBorderSegments",(function(){p(e)})),t(" order",(function(){f(e)})),t(" insertSelfEdges",(function(){!function(e){var t=m.buildLayerMatrix(e);r.forEach(t,(function(t){var n=0;r.forEach(t,(function(t,o){var i=e.node(t);i.order=o+n,r.forEach(i.selfEdges,(function(t){m.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:i.rank,order:o+ ++n,e:t.e,label:t.label},"_se")})),delete i.selfEdges}))}))}(e)})),t(" adjustCoordinateSystem",(function(){d.adjust(e)})),t(" position",(function(){h(e)})),t(" positionSelfEdges",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),o=r.x+r.width/2,i=r.y,a=n.x-o,l=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:o+2*a/3,y:i-l},{x:o+5*a/6,y:i-l},{x:o+a,y:i},{x:o+5*a/6,y:i+l},{x:o+2*a/3,y:i+l}],n.label.x=n.x,n.label.y=n.y}}))}(e)})),t(" removeBorderNodes",(function(){!function(e){r.forEach(e.nodes(),(function(t){if(e.children(t).length){var n=e.node(t),o=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(r.last(n.borderLeft)),l=e.node(r.last(n.borderRight));n.width=Math.abs(l.x-a.x),n.height=Math.abs(i.y-o.y),n.x=a.x+n.width/2,n.y=o.y+n.height/2}})),r.forEach(e.nodes(),(function(t){"border"===e.node(t).dummy&&e.removeNode(t)}))}(e)})),t(" normalize.undo",(function(){i.undo(e)})),t(" fixupEdgeLabelCoords",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(e)})),t(" undoCoordinateSystem",(function(){d.undo(e)})),t(" translateGraph",(function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,i=0,a=e.graph(),l=a.marginx||0,s=a.marginy||0;function c(e){var r=e.x,a=e.y,l=e.width,s=e.height;t=Math.min(t,r-l/2),n=Math.max(n,r+l/2),o=Math.min(o,a-s/2),i=Math.max(i,a+s/2)}r.forEach(e.nodes(),(function(t){c(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.has(n,"x")&&c(n)})),t-=l,o-=s,r.forEach(e.nodes(),(function(n){var r=e.node(n);r.x-=t,r.y-=o})),r.forEach(e.edges(),(function(n){var i=e.edge(n);r.forEach(i.points,(function(e){e.x-=t,e.y-=o})),r.has(i,"x")&&(i.x-=t),r.has(i,"y")&&(i.y-=o)})),a.width=n-t+l,a.height=i-o+s}(e)})),t(" assignNodeIntersects",(function(){!function(e){r.forEach(e.edges(),(function(t){var n,r,o=e.edge(t),i=e.node(t.v),a=e.node(t.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=a,r=i),o.points.unshift(m.intersectRect(i,n)),o.points.push(m.intersectRect(a,r))}))}(e)})),t(" reversePoints",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);n.reversed&&n.points.reverse()}))}(e)})),t(" acyclic.undo",(function(){o.undo(e)}))}(t,n)})),n(" updateInputGraph",(function(){!function(e,t){r.forEach(e.nodes(),(function(n){var r=e.node(n),o=t.node(n);r&&(r.x=o.x,r.y=o.y,t.children(n).length&&(r.width=o.width,r.height=o.height))})),r.forEach(e.edges(),(function(n){var o=e.edge(n),i=t.edge(n);o.points=i.points,r.has(i,"x")&&(o.x=i.x,o.y=i.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)}))}))};var v=["nodesep","edgesep","ranksep","marginx","marginy"],b={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},y=["acyclicer","ranker","rankdir","align"],w=["width","height"],x={width:0,height:0},k=["minlen","weight","width","height","labeloffset"],_={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},C=["labelpos"];function E(e,t){return r.mapValues(r.pick(e,t),Number)}function S(e){var t={};return r.forEach(e,(function(e,n){t[n.toLowerCase()]=e})),t}},function(e,t,n){var r=n(72),o=1,i=4;e.exports=function(e){return r(e,o|i)}},function(e,t,n){var r=n(46),o=n(18),i=n(47),a=n(21),l=Object.prototype,s=l.hasOwnProperty,c=r((function(e,t){e=Object(e);var n=-1,r=t.length,c=r>2?t[2]:void 0;for(c&&i(t[0],t[1],c)&&(r=1);++n<r;)for(var u=t[n],p=a(u),d=-1,f=p.length;++d<f;){var h=p[d],m=e[h];(void 0===m||o(m,l[h])&&!s.call(e,h))&&(e[h]=u[h])}return e}));e.exports=c},function(e,t,n){var r=n(259)(n(260));e.exports=r},function(e,t,n){var r=n(12),o=n(11),i=n(14);e.exports=function(e){return function(t,n,a){var l=Object(t);if(!o(t)){var s=r(n,3);t=i(t),n=function(e){return s(l[e],e,l)}}var c=e(t,n,a);return c>-1?l[s?t[c]:c]:void 0}}},function(e,t,n){var r=n(111),o=n(12),i=n(261),a=Math.max;e.exports=function(e,t,n){var l=null==e?0:e.length;if(!l)return-1;var s=null==n?0:i(n);return s<0&&(s=a(l+s,0)),r(e,o(t,3),s)}},function(e,t,n){var r=n(119);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(7),o=n(23),i=NaN,a=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):l.test(e)?i:+e}},function(e,t,n){var r=n(63),o=n(92),i=n(21);e.exports=function(e,t){return null==e?e:r(e,o(t),i)}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(38),o=n(62),i=n(12);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,o,t(e,o,i))})),n}},function(e,t,n){var r=n(68),o=n(267),i=n(17);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t){e.exports=function(e,t){return e>t}},function(e,t,n){var r=n(269),o=n(273)((function(e,t,n){r(e,t,n)}));e.exports=o},function(e,t,n){var r=n(32),o=n(121),i=n(63),a=n(270),l=n(7),s=n(21),c=n(122);e.exports=function e(t,n,u,p,d){t!==n&&i(n,(function(i,s){if(d||(d=new r),l(i))a(t,n,s,u,e,p,d);else{var f=p?p(c(t,s),i,s+"",t,n,d):void 0;void 0===f&&(f=i),o(t,s,f)}}),s)}},function(e,t,n){var r=n(121),o=n(78),i=n(87),a=n(79),l=n(88),s=n(29),c=n(4),u=n(112),p=n(20),d=n(27),f=n(7),h=n(271),m=n(30),g=n(122),v=n(272);e.exports=function(e,t,n,b,y,w,x){var k=g(e,n),_=g(t,n),C=x.get(_);if(C)r(e,n,C);else{var E=w?w(k,_,n+"",e,t,x):void 0,S=void 0===E;if(S){var T=c(_),P=!T&&p(_),N=!T&&!P&&m(_);E=_,T||P||N?c(k)?E=k:u(k)?E=a(k):P?(S=!1,E=o(_,!0)):N?(S=!1,E=i(_,!0)):E=[]:h(_)||s(_)?(E=k,s(k)?E=v(k):f(k)&&!d(k)||(E=l(_))):S=!1}S&&(x.set(_,E),y(E,_,b,w,x),x.delete(_)),r(e,n,E)}}},function(e,t,n){var r=n(16),o=n(42),i=n(10),a="[object Object]",l=Function.prototype,s=Object.prototype,c=l.toString,u=s.hasOwnProperty,p=c.call(Object);e.exports=function(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==p}},function(e,t,n){var r=n(28),o=n(21);e.exports=function(e){return r(e,o(e))}},function(e,t,n){var r=n(46),o=n(47);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,l=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,l&&o(n[0],n[1],l)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t}))}},function(e,t,n){var r=n(68),o=n(123),i=n(17);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t,n){var r=n(68),o=n(12),i=n(123);e.exports=function(e,t){return e&&e.length?r(e,o(t,2),i):void 0}},function(e,t,n){var r=n(9);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(278),o=n(281)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},function(e,t,n){var r=n(279),o=n(101);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},function(e,t,n){var r=n(65),o=n(280),i=n(44);e.exports=function(e,t,n){for(var a=-1,l=t.length,s={};++a<l;){var c=t[a],u=r(e,c);n(u,c)&&o(s,i(c,e),u)}return s}},function(e,t,n){var r=n(37),o=n(44),i=n(39),a=n(7),l=n(31);e.exports=function(e,t,n,s){if(!a(e))return e;for(var c=-1,u=(t=o(t,e)).length,p=u-1,d=e;null!=d&&++c<u;){var f=l(t[c]),h=n;if(c!=p){var m=d[f];void 0===(h=s?s(m,f,d):void 0)&&(h=a(m)?m:i(t[c+1])?[]:{})}r(d,f,h),d=d[f]}return e}},function(e,t,n){var r=n(120),o=n(109),i=n(110);e.exports=function(e){return i(o(e,void 0,r),e+"")}},function(e,t,n){var r=n(283)();e.exports=r},function(e,t,n){var r=n(284),o=n(47),i=n(119);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},function(e,t){var n=Math.ceil,r=Math.max;e.exports=function(e,t,o,i){for(var a=-1,l=r(n((t-e)/(o||1)),0),s=Array(l);l--;)s[i?l:++a]=e,e+=o;return s}},function(e,t,n){var r=n(67),o=n(286),i=n(46),a=n(47),l=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=l},function(e,t,n){var r=n(45),o=n(12),i=n(107),a=n(287),l=n(40),s=n(288),c=n(17);e.exports=function(e,t,n){var u=-1;t=r(t.length?t:[c],l(o));var p=i(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++u,value:e}}));return a(p,(function(e,t){return s(e,t,n)}))}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(289);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,l=i.length,s=n.length;++o<l;){var c=r(i[o],a[o]);if(c)return o>=s?c:c*("desc"==n[o]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(23);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),l=void 0!==t,s=null===t,c=t==t,u=r(t);if(!s&&!u&&!a&&e>t||a&&l&&c&&!s&&!u||o&&l&&c||!n&&c||!i)return 1;if(!o&&!a&&!u&&e<t||u&&n&&i&&!o&&!a||s&&n&&i||!l&&i||!c)return-1}return 0}},function(e,t,n){var r=n(100),o=0;e.exports=function(e){var t=++o;return r(e)+t}},function(e,t,n){var r=n(37),o=n(292);e.exports=function(e,t){return o(e||[],t||[],r)}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;){var l=r<i?t[r]:void 0;n(a,e[r],l)}return a}},function(e,t,n){"use strict";var r=n(3),o=n(294);e.exports={run:function(e){var t="greedy"===e.graph().acyclicer?o(e,function(e){return function(t){return e.edge(t).weight}}(e)):function(e){var t=[],n={},o={};return r.forEach(e.nodes(),(function i(a){if(r.has(o,a))return;o[a]=!0;n[a]=!0;r.forEach(e.outEdges(a),(function(e){r.has(n,e.w)?t.push(e):i(e.w)}));delete n[a]})),t}(e);r.forEach(t,(function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,r.uniqueId("rev"))}))},undo:function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}}))}}},function(e,t,n){var r=n(3),o=n(8).Graph,i=n(295);e.exports=function(e,t){if(e.nodeCount()<=1)return[];var n=function(e,t){var n=new o,a=0,l=0;r.forEach(e.nodes(),(function(e){n.setNode(e,{v:e,in:0,out:0})})),r.forEach(e.edges(),(function(e){var r=n.edge(e.v,e.w)||0,o=t(e),i=r+o;n.setEdge(e.v,e.w,i),l=Math.max(l,n.node(e.v).out+=o),a=Math.max(a,n.node(e.w).in+=o)}));var c=r.range(l+a+3).map((function(){return new i})),u=a+1;return r.forEach(n.nodes(),(function(e){s(c,u,n.node(e))})),{graph:n,buckets:c,zeroIdx:u}}(e,t||a),c=function(e,t,n){var r,o=[],i=t[t.length-1],a=t[0];for(;e.nodeCount();){for(;r=a.dequeue();)l(e,t,n,r);for(;r=i.dequeue();)l(e,t,n,r);if(e.nodeCount())for(var s=t.length-2;s>0;--s)if(r=t[s].dequeue()){o=o.concat(l(e,t,n,r,!0));break}}return o}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(c,(function(t){return e.outEdges(t.v,t.w)})),!0)};var a=r.constant(1);function l(e,t,n,o,i){var a=i?[]:void 0;return r.forEach(e.inEdges(o.v),(function(r){var o=e.edge(r),l=e.node(r.v);i&&a.push({v:r.v,w:r.w}),l.out-=o,s(t,n,l)})),r.forEach(e.outEdges(o.v),(function(r){var o=e.edge(r),i=r.w,a=e.node(i);a.in-=o,s(t,n,a)})),e.removeNode(o.v),a}function s(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},function(e,t){function n(){var e={};e._next=e._prev=e,this._sentinel=e}function r(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function o(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=n,n.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return r(t),t},n.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&r(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},n.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,o)),n=n._prev;return"["+e.join(", ")+"]"}},function(e,t,n){"use strict";var r=n(3),o=n(5);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),(function(t){!function(e,t){var n,r,i,a=t.v,l=e.node(a).rank,s=t.w,c=e.node(s).rank,u=t.name,p=e.edge(t),d=p.labelRank;if(c===l+1)return;for(e.removeEdge(t),i=0,++l;l<c;++i,++l)p.points=[],r={width:0,height:0,edgeLabel:p,edgeObj:t,rank:l},n=o.addDummyNode(e,"edge",r,"_d"),l===d&&(r.width=p.width,r.height=p.height,r.dummy="edge-label",r.labelpos=p.labelpos),e.setEdge(a,n,{weight:p.weight},u),0===i&&e.graph().dummyChains.push(n),a=n;e.setEdge(a,s,{weight:p.weight},u)}(e,t)}))},undo:function(e){r.forEach(e.graph().dummyChains,(function(t){var n,r=e.node(t),o=r.edgeLabel;for(e.setEdge(r.edgeObj,o);r.dummy;)n=e.successors(t)[0],e.removeNode(t),o.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(o.x=r.x,o.y=r.y,o.width=r.width,o.height=r.height),t=n,r=e.node(t)}))}}},function(e,t,n){"use strict";var r=n(48).longestPath,o=n(124),i=n(298);e.exports=function(e){switch(e.graph().ranker){case"network-simplex":l(e);break;case"tight-tree":!function(e){r(e),o(e)}(e);break;case"longest-path":a(e);break;default:l(e)}};var a=r;function l(e){i(e)}},function(e,t,n){"use strict";var r=n(3),o=n(124),i=n(48).slack,a=n(48).longestPath,l=n(8).alg.preorder,s=n(8).alg.postorder,c=n(5).simplify;function u(e){e=c(e),a(e);var t,n=o(e);for(f(n),p(n,e);t=h(n);)g(n,e,t,m(n,e,t))}function p(e,t){var n=s(e,e.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=d(e,t,n)}(e,t,n)}))}function d(e,t,n){var o=e.node(n).parent,i=!0,a=t.edge(n,o),l=0;return a||(i=!1,a=t.edge(o,n)),l=a.weight,r.forEach(t.nodeEdges(n),(function(r){var a,s,c=r.v===n,u=c?r.w:r.v;if(u!==o){var p=c===i,d=t.edge(r).weight;if(l+=p?d:-d,a=n,s=u,e.hasEdge(a,s)){var f=e.edge(n,u).cutvalue;l+=p?-f:f}}})),l}function f(e,t){arguments.length<2&&(t=e.nodes()[0]),function e(t,n,o,i,a){var l=o,s=t.node(i);n[i]=!0;r.forEach(t.neighbors(i),(function(a){r.has(n,a)||(o=e(t,n,o,a,i))}));s.low=l;s.lim=o++;a?s.parent=a:delete s.parent;return o}(e,{},1,t)}function h(e){return r.find(e.edges(),(function(t){return e.edge(t).cutvalue<0}))}function m(e,t,n){var o=n.v,a=n.w;t.hasEdge(o,a)||(o=n.w,a=n.v);var l=e.node(o),s=e.node(a),c=l,u=!1;l.lim>s.lim&&(c=s,u=!0);var p=r.filter(t.edges(),(function(t){return u===v(e,e.node(t.v),c)&&u!==v(e,e.node(t.w),c)}));return r.minBy(p,(function(e){return i(t,e)}))}function g(e,t,n,o){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(o.v,o.w,{}),f(e),p(e,t),function(e,t){var n=r.find(e.nodes(),(function(e){return!t.node(e).parent})),o=l(e,n);o=o.slice(1),r.forEach(o,(function(n){var r=e.node(n).parent,o=t.edge(n,r),i=!1;o||(o=t.edge(r,n),i=!0),t.node(n).rank=t.node(r).rank+(i?o.minlen:-o.minlen)}))}(e,t)}function v(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=u,u.initLowLimValues=f,u.initCutValues=p,u.calcCutValue=d,u.leaveEdge=h,u.enterEdge=m,u.exchangeEdges=g},function(e,t,n){var r=n(3);e.exports=function(e){var t=function(e){var t={},n=0;return r.forEach(e.children(),(function o(i){var a=n;r.forEach(e.children(i),o);t[i]={low:a,lim:n++}})),t}(e);r.forEach(e.graph().dummyChains,(function(n){for(var r=e.node(n),o=r.edgeObj,i=function(e,t,n,r){var o,i,a=[],l=[],s=Math.min(t[n].low,t[r].low),c=Math.max(t[n].lim,t[r].lim);o=n;do{o=e.parent(o),a.push(o)}while(o&&(t[o].low>s||c>t[o].lim));i=o,o=r;for(;(o=e.parent(o))!==i;)l.push(o);return{path:a.concat(l.reverse()),lca:i}}(e,t,o.v,o.w),a=i.path,l=i.lca,s=0,c=a[s],u=!0;n!==o.w;){if(r=e.node(n),u){for(;(c=a[s])!==l&&e.node(c).maxRank<r.rank;)s++;c===l&&(u=!1)}if(!u){for(;s<a.length-1&&e.node(c=a[s+1]).minRank<=r.rank;)s++;c=a[s]}e.setParent(n,c),n=e.successors(n)[0]}}))}},function(e,t,n){var r=n(3),o=n(5);e.exports={run:function(e){var t=o.addDummyNode(e,"root",{},"_root"),n=function(e){var t={};return r.forEach(e.children(),(function(n){!function n(o,i){var a=e.children(o);a&&a.length&&r.forEach(a,(function(e){n(e,i+1)}));t[o]=i}(n,1)})),t}(e),i=r.max(r.values(n))-1,a=2*i+1;e.graph().nestingRoot=t,r.forEach(e.edges(),(function(t){e.edge(t).minlen*=a}));var l=function(e){return r.reduce(e.edges(),(function(t,n){return t+e.edge(n).weight}),0)}(e)+1;r.forEach(e.children(),(function(s){!function e(t,n,i,a,l,s,c){var u=t.children(c);if(!u.length)return void(c!==n&&t.setEdge(n,c,{weight:0,minlen:i}));var p=o.addBorderNode(t,"_bt"),d=o.addBorderNode(t,"_bb"),f=t.node(c);t.setParent(p,c);f.borderTop=p;t.setParent(d,c);f.borderBottom=d;r.forEach(u,(function(r){e(t,n,i,a,l,s,r);var o=t.node(r),u=o.borderTop?o.borderTop:r,f=o.borderBottom?o.borderBottom:r,h=o.borderTop?a:2*a,m=u!==f?1:l-s[c]+1;t.setEdge(p,u,{weight:h,minlen:m,nestingEdge:!0}),t.setEdge(f,d,{weight:h,minlen:m,nestingEdge:!0})}));t.parent(c)||t.setEdge(n,p,{weight:0,minlen:l+s[c]})}(e,t,a,l,i,n,s)})),e.graph().nodeRankFactor=a},cleanup:function(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,r.forEach(e.edges(),(function(t){e.edge(t).nestingEdge&&e.removeEdge(t)}))}}},function(e,t,n){var r=n(3),o=n(5);function i(e,t,n,r,i,a){var l={width:0,height:0,rank:a,borderType:t},s=i[t][a-1],c=o.addDummyNode(e,"border",l,n);i[t][a]=c,e.setParent(c,r),s&&e.setEdge(s,c,{weight:1})}e.exports=function(e){r.forEach(e.children(),(function t(n){var o=e.children(n),a=e.node(n);if(o.length&&r.forEach(o,t),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var l=a.minRank,s=a.maxRank+1;l<s;++l)i(e,"borderLeft","_bl",n,a,l),i(e,"borderRight","_br",n,a,l)}}))}},function(e,t,n){"use strict";var r=n(3);function o(e){r.forEach(e.nodes(),(function(t){i(e.node(t))})),r.forEach(e.edges(),(function(t){i(e.edge(t))}))}function i(e){var t=e.width;e.width=e.height,e.height=t}function a(e){e.y=-e.y}function l(e){var t=e.x;e.x=e.y,e.y=t}e.exports={adjust:function(e){var t=e.graph().rankdir.toLowerCase();"lr"!==t&&"rl"!==t||o(e)},undo:function(e){var t=e.graph().rankdir.toLowerCase();"bt"!==t&&"rl"!==t||function(e){r.forEach(e.nodes(),(function(t){a(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,a),r.has(n,"y")&&a(n)}))}(e);"lr"!==t&&"rl"!==t||(!function(e){r.forEach(e.nodes(),(function(t){l(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,l),r.has(n,"x")&&l(n)}))}(e),o(e))}}},function(e,t,n){"use strict";var r=n(3),o=n(304),i=n(305),a=n(306),l=n(310),s=n(311),c=n(8).Graph,u=n(5);function p(e,t,n){return r.map(t,(function(t){return l(e,t,n)}))}function d(e,t){var n=new c;r.forEach(e,(function(e){var o=e.graph().root,i=a(e,o,n,t);r.forEach(i.vs,(function(t,n){e.node(t).order=n})),s(e,n,i.vs)}))}function f(e,t){r.forEach(t,(function(t){r.forEach(t,(function(t,n){e.node(t).order=n}))}))}e.exports=function(e){var t=u.maxRank(e),n=p(e,r.range(1,t+1),"inEdges"),a=p(e,r.range(t-1,-1,-1),"outEdges"),l=o(e);f(e,l);for(var s,c=Number.POSITIVE_INFINITY,h=0,m=0;m<4;++h,++m){d(h%2?n:a,h%4>=2),l=u.buildLayerMatrix(e);var g=i(e,l);g<c&&(m=0,s=r.cloneDeep(l),c=g)}f(e,s)}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e){var t={},n=r.filter(e.nodes(),(function(t){return!e.children(t).length})),o=r.max(r.map(n,(function(t){return e.node(t).rank}))),i=r.map(r.range(o+1),(function(){return[]}));var a=r.sortBy(n,(function(t){return e.node(t).rank}));return r.forEach(a,(function n(o){if(r.has(t,o))return;t[o]=!0;var a=e.node(o);i[a.rank].push(o);r.forEach(e.successors(o),n)})),i}},function(e,t,n){"use strict";var r=n(3);function o(e,t,n){for(var o=r.zipObject(n,r.map(n,(function(e,t){return t}))),i=r.flatten(r.map(t,(function(t){return r.sortBy(r.map(e.outEdges(t),(function(t){return{pos:o[t.w],weight:e.edge(t).weight}})),"pos")})),!0),a=1;a<n.length;)a<<=1;var l=2*a-1;a-=1;var s=r.map(new Array(l),(function(){return 0})),c=0;return r.forEach(i.forEach((function(e){var t=e.pos+a;s[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=s[t+1]),s[t=t-1>>1]+=e.weight;c+=e.weight*n}))),c}e.exports=function(e,t){for(var n=0,r=1;r<t.length;++r)n+=o(e,t[r-1],t[r]);return n}},function(e,t,n){var r=n(3),o=n(307),i=n(308),a=n(309);e.exports=function e(t,n,l,s){var c=t.children(n),u=t.node(n),p=u?u.borderLeft:void 0,d=u?u.borderRight:void 0,f={};p&&(c=r.filter(c,(function(e){return e!==p&&e!==d})));var h=o(t,c);r.forEach(h,(function(n){if(t.children(n.v).length){var o=e(t,n.v,l,s);f[n.v]=o,r.has(o,"barycenter")&&(i=n,a=o,r.isUndefined(i.barycenter)?(i.barycenter=a.barycenter,i.weight=a.weight):(i.barycenter=(i.barycenter*i.weight+a.barycenter*a.weight)/(i.weight+a.weight),i.weight+=a.weight))}var i,a}));var m=i(h,l);!function(e,t){r.forEach(e,(function(e){e.vs=r.flatten(e.vs.map((function(e){return t[e]?t[e].vs:e})),!0)}))}(m,f);var g=a(m,s);if(p&&(g.vs=r.flatten([p,g.vs,d],!0),t.predecessors(p).length)){var v=t.node(t.predecessors(p)[0]),b=t.node(t.predecessors(d)[0]);r.has(g,"barycenter")||(g.barycenter=0,g.weight=0),g.barycenter=(g.barycenter*g.weight+v.order+b.order)/(g.weight+2),g.weight+=2}return g}},function(e,t,n){var r=n(3);e.exports=function(e,t){return r.map(t,(function(t){var n=e.inEdges(t);if(n.length){var o=r.reduce(n,(function(t,n){var r=e.edge(n),o=e.node(n.v);return{sum:t.sum+r.weight*o.order,weight:t.weight+r.weight}}),{sum:0,weight:0});return{v:t,barycenter:o.sum/o.weight,weight:o.weight}}return{v:t}}))}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){var n={};return r.forEach(e,(function(e,t){var o=n[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};r.isUndefined(e.barycenter)||(o.barycenter=e.barycenter,o.weight=e.weight)})),r.forEach(t.edges(),(function(e){var t=n[e.v],o=n[e.w];r.isUndefined(t)||r.isUndefined(o)||(o.indegree++,t.out.push(n[e.w]))})),function(e){var t=[];function n(e){return function(t){t.merged||(r.isUndefined(t.barycenter)||r.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&function(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function o(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}for(;e.length;){var i=e.pop();t.push(i),r.forEach(i.in.reverse(),n(i)),r.forEach(i.out,o(i))}return r.map(r.filter(t,(function(e){return!e.merged})),(function(e){return r.pick(e,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(e){return!e.indegree})))}},function(e,t,n){var r=n(3),o=n(5);function i(e,t,n){for(var o;t.length&&(o=r.last(t)).i<=n;)t.pop(),e.push(o.vs),n++;return n}e.exports=function(e,t){var n=o.partition(e,(function(e){return r.has(e,"barycenter")})),a=n.lhs,l=r.sortBy(n.rhs,(function(e){return-e.i})),s=[],c=0,u=0,p=0;a.sort((d=!!t,function(e,t){return e.barycenter<t.barycenter?-1:e.barycenter>t.barycenter?1:d?t.i-e.i:e.i-t.i})),p=i(s,l,p),r.forEach(a,(function(e){p+=e.vs.length,s.push(e.vs),c+=e.barycenter*e.weight,u+=e.weight,p=i(s,l,p)}));var d;var f={vs:r.flatten(s,!0)};u&&(f.barycenter=c/u,f.weight=u);return f}},function(e,t,n){var r=n(3),o=n(8).Graph;e.exports=function(e,t,n){var i=function(e){var t;for(;e.hasNode(t=r.uniqueId("_root")););return t}(e),a=new o({compound:!0}).setGraph({root:i}).setDefaultNodeLabel((function(t){return e.node(t)}));return r.forEach(e.nodes(),(function(o){var l=e.node(o),s=e.parent(o);(l.rank===t||l.minRank<=t&&t<=l.maxRank)&&(a.setNode(o),a.setParent(o,s||i),r.forEach(e[n](o),(function(t){var n=t.v===o?t.w:t.v,i=a.edge(n,o),l=r.isUndefined(i)?0:i.weight;a.setEdge(n,o,{weight:e.edge(t).weight+l})})),r.has(l,"minRank")&&a.setNode(o,{borderLeft:l.borderLeft[t],borderRight:l.borderRight[t]}))})),a}},function(e,t,n){var r=n(3);e.exports=function(e,t,n){var o,i={};r.forEach(n,(function(n){for(var r,a,l=e.parent(n);l;){if((r=e.parent(l))?(a=i[r],i[r]=l):(a=o,o=l),a&&a!==l)return void t.setEdge(a,l);l=r}}))}},function(e,t,n){"use strict";var r=n(3),o=n(5),i=n(313).positionX;e.exports=function(e){(function(e){var t=o.buildLayerMatrix(e),n=e.graph().ranksep,i=0;r.forEach(t,(function(t){var o=r.max(r.map(t,(function(t){return e.node(t).height})));r.forEach(t,(function(t){e.node(t).y=i+o/2})),i+=o+n}))})(e=o.asNonCompoundGraph(e)),r.forEach(i(e),(function(t,n){e.node(n).x=t}))}},function(e,t,n){"use strict";var r=n(3),o=n(8).Graph,i=n(5);function a(e,t){var n={};return r.reduce(t,(function(t,o){var i=0,a=0,l=t.length,c=r.last(o);return r.forEach(o,(function(t,u){var p=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),(function(t){return e.node(t).dummy}))}(e,t),d=p?e.node(p).order:l;(p||t===c)&&(r.forEach(o.slice(a,u+1),(function(t){r.forEach(e.predecessors(t),(function(r){var o=e.node(r),a=o.order;!(a<i||d<a)||o.dummy&&e.node(t).dummy||s(n,r,t)}))})),a=u+1,i=d)})),o})),n}function l(e,t){var n={};function o(t,o,i,a,l){var c;r.forEach(r.range(o,i),(function(o){c=t[o],e.node(c).dummy&&r.forEach(e.predecessors(c),(function(t){var r=e.node(t);r.dummy&&(r.order<a||r.order>l)&&s(n,t,c)}))}))}return r.reduce(t,(function(t,n){var i,a=-1,l=0;return r.forEach(n,(function(r,s){if("border"===e.node(r).dummy){var c=e.predecessors(r);c.length&&(i=e.node(c[0]).order,o(n,l,s,a,i),l=s,a=i)}o(n,l,n.length,i,t.length)})),n})),n}function s(e,t,n){if(t>n){var r=t;t=n,n=r}var o=e[t];o||(e[t]=o={}),o[n]=!0}function c(e,t,n){if(t>n){var o=t;t=n,n=o}return r.has(e[t],n)}function u(e,t,n,o){var i={},a={},l={};return r.forEach(t,(function(e){r.forEach(e,(function(e,t){i[e]=e,a[e]=e,l[e]=t}))})),r.forEach(t,(function(e){var t=-1;r.forEach(e,(function(e){var s=o(e);if(s.length)for(var u=((s=r.sortBy(s,(function(e){return l[e]}))).length-1)/2,p=Math.floor(u),d=Math.ceil(u);p<=d;++p){var f=s[p];a[e]===e&&t<l[f]&&!c(n,e,f)&&(a[f]=e,a[e]=i[e]=i[f],t=l[f])}}))})),{root:i,align:a}}function p(e,t,n,i,a){var l={},s=function(e,t,n,i){var a=new o,l=e.graph(),s=function(e,t,n){return function(o,i,a){var l,s=o.node(i),c=o.node(a),u=0;if(u+=s.width/2,r.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":l=-s.width/2;break;case"r":l=s.width/2}if(l&&(u+=n?l:-l),l=0,u+=(s.dummy?t:e)/2,u+=(c.dummy?t:e)/2,u+=c.width/2,r.has(c,"labelpos"))switch(c.labelpos.toLowerCase()){case"l":l=c.width/2;break;case"r":l=-c.width/2}return l&&(u+=n?l:-l),l=0,u}}(l.nodesep,l.edgesep,i);return r.forEach(t,(function(t){var o;r.forEach(t,(function(t){var r=n[t];if(a.setNode(r),o){var i=n[o],l=a.edge(i,r);a.setEdge(i,r,Math.max(s(e,t,o),l||0))}o=t}))})),a}(e,t,n,a),c=a?"borderLeft":"borderRight";function u(e,t){for(var n=s.nodes(),r=n.pop(),o={};r;)o[r]?e(r):(o[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}return u((function(e){l[e]=s.inEdges(e).reduce((function(e,t){return Math.max(e,l[t.v]+s.edge(t))}),0)}),s.predecessors.bind(s)),u((function(t){var n=s.outEdges(t).reduce((function(e,t){return Math.min(e,l[t.w]-s.edge(t))}),Number.POSITIVE_INFINITY),r=e.node(t);n!==Number.POSITIVE_INFINITY&&r.borderType!==c&&(l[t]=Math.max(l[t],n))}),s.successors.bind(s)),r.forEach(i,(function(e){l[e]=l[n[e]]})),l}function d(e,t){return r.minBy(r.values(t),(function(t){var n=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return r.forIn(t,(function(t,r){var i=function(e,t){return e.node(t).width}(e,r)/2;n=Math.max(t+i,n),o=Math.min(t-i,o)})),n-o}))}function f(e,t){var n=r.values(t),o=r.min(n),i=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(a){var l,s=n+a,c=e[s];if(c!==t){var u=r.values(c);(l="l"===a?o-r.min(u):i-r.max(u))&&(e[s]=r.mapValues(c,(function(e){return e+l})))}}))}))}function h(e,t){return r.mapValues(e.ul,(function(n,o){if(t)return e[t.toLowerCase()][o];var i=r.sortBy(r.map(e,o));return(i[1]+i[2])/2}))}e.exports={positionX:function(e){var t,n=i.buildLayerMatrix(e),o=r.merge(a(e,n),l(e,n)),s={};r.forEach(["u","d"],(function(i){t="u"===i?n:r.values(n).reverse(),r.forEach(["l","r"],(function(n){"r"===n&&(t=r.map(t,(function(e){return r.values(e).reverse()})));var a=("u"===i?e.predecessors:e.successors).bind(e),l=u(e,t,o,a),c=p(e,t,l.root,l.align,"r"===n);"r"===n&&(c=r.mapValues(c,(function(e){return-e}))),s[i+n]=c}))}));var c=d(e,s);return f(s,c),h(s,e.graph().align)},findType1Conflicts:a,findType2Conflicts:l,addConflict:s,hasConflict:c,verticalAlignment:u,horizontalCompaction:p,alignCoordinates:f,findSmallestWidthAlignment:d,balance:h}},function(e,t,n){var r=n(3),o=n(5),i=n(8).Graph;e.exports={debugOrdering:function(e){var t=o.buildLayerMatrix(e),n=new i({compound:!0,multigraph:!0}).setGraph({});return r.forEach(e.nodes(),(function(t){n.setNode(t,{label:t}),n.setParent(t,"layer"+e.node(t).rank)})),r.forEach(e.edges(),(function(e){n.setEdge(e.v,e.w,{},e.name)})),r.forEach(t,(function(e,t){var o="layer"+t;n.setNode(o,{rank:"same"}),r.reduce(e,(function(e,t){return n.setEdge(e,t,{style:"invis"}),t}))})),n}}},function(e,t){e.exports="0.8.4"},function(e,t,n){var r=n(317);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(26)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(25)(!1)).push([e.i,'#graph-canvas{width:100%;height:100%;margin:0;padding:0;font:14px "acumin-pro";user-select:none;overflow:hidden;cursor:move;background-image:linear-gradient(to right, #4F4E4F 1px, transparent 1px),linear-gradient(to bottom, #4F4E4F 1px, transparent 1px)}#graph-canvas #selection-container{pointer-events:none}#graph-canvas #selection-container .selection-box{z-index:10;position:absolute;background:rgba(72,72,196,0.5);border:blue solid 2px}#graph-canvas .port{border-radius:20px;width:20px;height:20px;align-self:center}#graph-canvas .port .img{width:100%}#graph-canvas .port:hover,#graph-canvas .port.selected{filter:brightness(2)}#graph-canvas .portLine{height:24px;display:grid;grid-template-rows:100%}#graph-canvas .port-label{align-items:center}#graph-canvas .inputsContainer{grid-row:1;grid-column:1}#graph-canvas .inputsContainer .portLine{grid-template-columns:12px calc(100% - 15px)}#graph-canvas .inputsContainer .portLine .port-label{grid-row:1;grid-column:2}#graph-canvas .inputsContainer .portLine .port{grid-row:1;grid-column:1;transform:translateX(-12px)}#graph-canvas .outputsContainer{grid-row:1;grid-column:2}#graph-canvas .outputsContainer .portLine{grid-template-columns:calc(100% - 10px) 12px}#graph-canvas .outputsContainer .portLine .port-label{grid-row:1;grid-column:1;text-align:right}#graph-canvas .outputsContainer .portLine .port{grid-row:1;grid-column:2;transform:translateX(2px)}#graph-canvas #graph-container{width:100%;height:100%;left:0;top:0;transform-origin:left top;display:grid;grid-template-rows:100%;grid-template-columns:100%}#graph-canvas #graph-container #frame-container{overflow:visible;grid-row:1;grid-column:1;position:relative;width:100%;height:100%}#graph-canvas #graph-container .frame-box{position:absolute;background:rgba(72,72,72,0.7);display:grid;grid-template-rows:40px calc(100% - 40px);grid-template-columns:100%;box-sizing:border-box}#graph-canvas #graph-container .frame-box.collapsed{height:auto !important;width:200px !important}#graph-canvas #graph-container .frame-box.collapsed .frame-box-header{font-size:16px;grid-template-columns:calc(100% - 37px) 30px 7px}#graph-canvas #graph-container .frame-box.collapsed .frame-box-header .frame-box-header-collapse{margin-top:-2px}#graph-canvas #graph-container .frame-box.collapsed .frame-box-header .frame-box-header-close{display:none}#graph-canvas #graph-container .frame-box .frame-box-border{grid-row:1 / span 2;grid-column:1;width:100%;height:100%;border:transparent solid 4px;pointer-events:none;box-sizing:border-box}#graph-canvas #graph-container .frame-box .frame-box-header{grid-row:1;grid-column:1;background:#484848;color:white;font-size:24px;text-align:center;display:grid;grid-template-rows:100%;grid-template-columns:calc(100% - 74px) 30px 7px 30px 7px;align-content:center;overflow:hidden}#graph-canvas #graph-container .frame-box .frame-box-header .frame-box-header-button{cursor:pointer;align-self:center;transform-origin:50% 50%;transform:scale(1);stroke:transparent;fill:white;display:grid}#graph-canvas #graph-container .frame-box .frame-box-header .frame-box-header-button.down{transform:scale(0.9)}#graph-canvas #graph-container .frame-box .frame-box-header .frame-box-header-collapse{grid-column:2;grid-row:1}#graph-canvas #graph-container .frame-box .frame-box-header .frame-box-header-close{grid-column:4;grid-row:1}#graph-canvas #graph-container .frame-box .frame-box-header .frame-box-header-title{grid-column:1;grid-row:1;display:grid;height:100%;width:100%;align-self:stretch;align-items:center;margin-top:-2px}#graph-canvas #graph-container .frame-box .port-container{margin-top:6px;margin-bottom:6px;margin-left:4px;margin-right:4px;color:white;grid-row:2;grid-column:1;display:grid;grid-template-rows:100%;grid-template-columns:50% 50%;z-index:2}#graph-canvas #graph-container .frame-box.selected .frame-box-border{border-color:white}#graph-canvas #graph-container #graph-svg-container{grid-row:1;grid-column:1;position:relative;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:2}#graph-canvas #graph-container #graph-svg-container .link{stroke-width:4px}#graph-canvas #graph-container #graph-svg-container .link.selected{stroke:white !important;stroke-dasharray:10, 2}#graph-canvas #graph-container #graph-svg-container .link.hidden{display:none}#graph-canvas #graph-container #graph-svg-container .selection-link{pointer-events:all;stroke-width:16px;opacity:0;transition:opacity 75ms;stroke:transparent;cursor:pointer}#graph-canvas #graph-container #graph-svg-container .selection-link.hidden{display:none}#graph-canvas #graph-container #graph-svg-container .selection-link:hover,#graph-canvas #graph-container #graph-svg-container .selection-link.selected{stroke:white !important;opacity:0.4}#graph-canvas #graph-container #graph-canvas-container{grid-row:1;grid-column:1;position:relative;width:100%;height:100%}#graph-canvas #graph-container #graph-canvas-container .visual{z-index:3;width:200px;position:absolute;left:0;top:0;background:gray;border:4px solid black;border-radius:12px;display:grid;grid-template-rows:30px auto;grid-template-columns:100%;color:white}#graph-canvas #graph-container #graph-canvas-container .visual.hidden{display:none}#graph-canvas #graph-container #graph-canvas-container .visual .comments{position:absolute;top:-50px;width:200px;height:45px;overflow:hidden;font-style:italic;opacity:0.8;display:grid;align-items:flex-end;pointer-events:none}#graph-canvas #graph-container #graph-canvas-container .visual .selection-border{grid-row:1 / span 3;grid-column:1;margin:-4px;transition:border-color 100ms;border:4px solid black;border-radius:12px}#graph-canvas #graph-container #graph-canvas-container .visual.selected .selection-border{border-color:white}#graph-canvas #graph-container #graph-canvas-container .visual .header{grid-row:1;grid-column:1;border:4px solid black;border-top-right-radius:7px;border-top-left-radius:7px;font-size:16px;text-align:center;margin-top:-1px;margin-left:-1px;margin-right:-1px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;background:black;color:white}#graph-canvas #graph-container #graph-canvas-container .visual .header.constant{border-color:#4E5C74;background:#4E5C74}#graph-canvas #graph-container #graph-canvas-container .visual .header.inspector{border-color:#396437;background:#396437}#graph-canvas #graph-container #graph-canvas-container .visual .connections{grid-row:2;grid-column:1;display:grid;grid-template-columns:50% 50%}#graph-canvas #graph-container #graph-canvas-container .visual .content{min-height:20px;grid-row:3;grid-column:1}#graph-canvas #graph-container #graph-canvas-container .visual .content.input-block{grid-row:2;min-height:34px;text-align:center;font-size:18px;font-weight:bold;margin:0 10px 5px;display:grid;align-content:center}#graph-canvas #graph-container #graph-canvas-container .visual .content.input-block.small-font{font-size:17px}#graph-canvas #graph-container #graph-canvas-container .visual .content.output-block{min-height:0px;height:5px}#graph-canvas #graph-container #graph-canvas-container .visual .content.clamp-block{grid-row:2;height:34px;text-align:center;font-size:18px;font-weight:bold;margin:0 10px}#graph-canvas #graph-container #graph-canvas-container .visual .content.gradient-block{grid-row:2;height:34px}#graph-canvas #graph-container #graph-canvas-container .visual .content.texture-block{grid-row:3;height:140px;width:140px;overflow:hidden;border-bottom-left-radius:7px;border:black 4px solid;border-left:0px;border-bottom:0px}#graph-canvas #graph-container #graph-canvas-container .visual .content.texture-block img{width:100%;height:100%;pointer-events:none}#graph-canvas #graph-container #graph-canvas-container .visual .content.texture-block img.empty{display:none}#graph-canvas #graph-container #graph-canvas-container .visual .content.regular-texture-block{margin-top:-115px}#graph-canvas #graph-container #graph-canvas-container .visual .content.remap-block{height:34px;text-align:center;font-size:18px;font-weight:bold;margin:0 10px}#graph-canvas #graph-container #graph-canvas-container .visual .content.trigonometry-block{grid-row:2;height:34px;text-align:center;font-size:18px;font-weight:bold;margin:0 10px}\n',""])},function(e,t,n){var r=n(319);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(26)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(25)(!1)).push([e.i,'#node-editor-graph-root{display:grid;grid-template-rows:calc(100% - 120px) 120px;height:100%;width:100%;background:#464646;font:14px "acumin-pro"}#nodeList{grid-row:1 / span 2;grid-column:1}#leftGrab{grid-row:1 / span 2;grid-column:2;cursor:ew-resize}#rightGrab{grid-row:1 / span 2;grid-column:4;cursor:ew-resize}.diagram-container{grid-row:1;grid-column:3;background:#5f5b60;width:100%;height:100%}.diagram-container .diagram{display:none;width:100%;height:100%}.right-panel{grid-row:1 / span 2;grid-column:5;display:grid;grid-template-rows:1fr 30px auto 30px;grid-template-columns:100%;height:100%;overflow-y:auto}.right-panel #propertyTab{grid-row:1;grid-column:1}.right-panel .button{display:grid;justify-content:center;align-content:center;height:30px;width:calc(100% / 7);cursor:pointer}.right-panel .button:hover{background:#337ab7;color:white;opacity:0.8}.right-panel .button.selected{background:#337ab7;color:white}.right-panel .button.align{justify-content:stretch;text-align:center}.right-panel #preview-mesh-bar{grid-row:2;grid-column:1;display:flex;color:white;align-items:center;font-size:18px}.right-panel #preview-mesh-bar #file-picker{display:none}.right-panel #preview-mesh-bar #file-picker-label{width:100%;background:transparent;cursor:pointer}.right-panel #preview-config-bar{grid-row:4;grid-column:1;display:flex;flex-direction:row-reverse;color:white;align-items:center;font-size:18px}.right-panel #preview-config-bar .button{width:60px}.right-panel #preview-config-bar #color-picker{display:none}.right-panel #preview-config-bar #color-picker-label{width:100%;background:transparent;cursor:pointer}.right-panel #preview{border-top:1px solid #555;grid-row:3;grid-column:1;width:100%;display:grid;outline:0 !important;user-select:none}.right-panel #preview #preview-canvas{width:100%;height:100%;outline:0 !important;grid-row:1;grid-column:1}.right-panel #preview .waitPanel{width:100%;height:100%;grid-row:1;grid-column:1;color:white;font-size:18px;align-content:center;justify-content:center;background:rgba(20,20,20,0.95);z-index:10;display:grid;transition:opacity 250ms}.right-panel #preview .waitPanel.hidden{opacity:0;pointer-events:none}.blocker{visibility:hidden;position:absolute;width:calc(100% - 40px);height:100%;top:0;left:0;background:rgba(20,20,20,0.95);font-family:"acumin-pro";color:white;font-size:24px;display:grid;align-content:center;justify-content:center;user-select:none;padding:20px;text-align:center}#log-console{grid-row:2;grid-column:3}.dialog-container{position:absolute;width:100%;height:100%;background:rgba(0,0,0,0.6);display:grid;font-family:"acumin-pro";top:0}.dialog-container .dialog{align-self:center;justify-self:center;min-height:140px;max-width:400px;border-radius:10px;background:white;display:grid;grid-template-columns:100%;grid-template-rows:calc(100% - 50px) 50px}.dialog-container .dialog .dialog-message{grid-row:1;grid-column:1;margin-top:20px;padding:10px;font-size:18px;color:black}.dialog-container .dialog .dialog-buttons{grid-row:2;grid-column:1;display:grid;grid-template-rows:100%;grid-template-columns:100%;color:white}.dialog-container .dialog .dialog-buttons .dialog-button-ok{cursor:pointer;justify-self:center;background:green;min-width:80px;justify-content:center;display:grid;align-content:center;align-self:center;height:35px;border-radius:10px}.dialog-container .dialog .dialog-buttons .dialog-button-ok:hover{opacity:0.8}.dialog-container .dialog .dialog-buttons .dialog-button-ok.error{background:red}\n',""])}])}));
|