text: !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=141)}([function(t,n){t.exports=e},function(e,t,n){"use strict";e.exports=n(142)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=c(n(155)),o=c(n(213)),a=c(n(230)),i=c(n(231)),l=c(n(232)),s=c(n(233));function c(e){return e&&e.__esModule?e:{default:e}}t.hover=i.default,t.handleHover=i.default,t.handleActive=l.default,t.loop=s.default;var u=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var l=(0,r.default)(n),s=(0,o.default)(e,l);return(0,a.default)(s)};t.default=u},function(e,t,n){e.exports=n(149)()},function(e,t,n){var r;try{r={cloneDeep:n(104),constant:n(73),defaults:n(327),each:n(74),filter:n(125),find:n(328),flatten:n(137),forEach:n(122),forIn:n(332),has:n(126),isUndefined:n(127),last:n(333),map:n(15),mapValues:n(334),max:n(335),merge:n(8),min:n(337),minBy:n(338),now:n(119),pick:n(339),range:n(344),reduce:n(128),sortBy:n(347),uniqueId:n(352),values:n(130),zipObject:n(353)}}catch(e){}r||(r=window._),e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(234);Object.defineProperty(t,"Alpha",{enumerable:!0,get:function(){return p(r).default}});var o=n(72);Object.defineProperty(t,"Checkboard",{enumerable:!0,get:function(){return p(o).default}});var a=n(237);Object.defineProperty(t,"EditableInput",{enumerable:!0,get:function(){return p(a).default}});var i=n(238);Object.defineProperty(t,"Hue",{enumerable:!0,get:function(){return p(i).default}});var l=n(240);Object.defineProperty(t,"Raised",{enumerable:!0,get:function(){return p(l).default}});var s=n(248);Object.defineProperty(t,"Saturation",{enumerable:!0,get:function(){return p(s).default}});var c=n(121);Object.defineProperty(t,"ColorWrap",{enumerable:!0,get:function(){return p(c).default}});var u=n(252);function p(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Swatch",{enumerable:!0,get:function(){return p(u).default}})},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(241),o=n(244)((function(e,t,n){r(e,t,n)}));e.exports=o},function(e,t,n){"use strict";var r=n(4),o=n(13).Graph;function a(e,t,n,o){var a;do{a=r.uniqueId(o)}while(e.hasNode(a));return n.dummy=t,e.setNode(a,n),a}function i(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:a,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,a=e.y,i=t.x-o,l=t.y-a,s=e.width/2,c=e.height/2;if(!i&&!l)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(l)*s>Math.abs(i)*c?(l<0&&(c=-c),n=c*i/l,r=c):(i<0&&(s=-s),n=s,r=s*l/i);return{x:o+n,y:a+r}},buildLayerMatrix:function(e){var t=r.map(r.range(i(e)+1),(function(){return[]}));return r.forEach(e.nodes(),(function(n){var o=e.node(n),a=o.rank;r.isUndefined(a)||(t[a][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,a=e.graph().nodeRankFactor;r.forEach(n,(function(t,n){r.isUndefined(t)&&n%a!=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 a(e,"border",o,t)},maxRank:i,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(292),constant:n(73),each:n(74),filter:n(125),has:n(126),isArray:n(6),isEmpty:n(295),isFunction:n(34),isUndefined:n(127),keys:n(19),map:n(15),reduce:n(128),size:n(298),transform:n(303),union:n(304),values:n(130)}}catch(e){}r||(r=window._),e.exports=r},function(e,t,n){var r=n(82),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.red=t.getContrastingColor=t.isValidHex=t.toState=t.simpleCheckForValidColor=void 0;var r=a(n(74)),o=a(n(251));function a(e){return e&&e.__esModule?e:{default:e}}t.simpleCheckForValidColor=function(e){var t=0,n=0;return(0,r.default)(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e};var i=t.toState=function(e,t){var n=e.hex?(0,o.default)(e.hex):(0,o.default)(e),r=n.toHsl(),a=n.toHsv(),i=n.toRgb(),l=n.toHex();return 0===r.s&&(r.h=t||0,a.h=t||0),{hsl:r,hex:"000000"===l&&0===i.a?"transparent":"#"+l,rgb:i,hsv:a,oldHue:e.h||t||r.h,source:e.source}};t.isValidHex=function(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&(0,o.default)(e).isValid()},t.getContrastingColor=function(e){if(!e)return"#fff";var t=i(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},t.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}};t.default=t},function(e,t,n){var r;try{r=n(290)}catch(e){}r||(r=window.graphlib),e.exports=r},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(42),o=n(17),a=n(103),i=n(6);e.exports=function(e,t){return(i(e)?r:a)(e,o(t,3))}},function(e,t,n){var r=n(34),o=n(59);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(164),o=n(203),a=n(21),i=n(6),l=n(210);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(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(143)},function(e,t,n){var r=n(83),o=n(61),a=n(16);e.exports=function(e){return a(e)?r(e):o(e)}},function(e,t,n){var r=n(23),o=n(156),a=n(157),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(176),o=n(179);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(11).Symbol;e.exports=r},function(e,t,n){(function(e){var r=n(11),o=n(161),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,l=i&&i.exports===a?r.Buffer:void 0,s=(l?l.isBuffer:void 0)||o;e.exports=s}).call(this,n(58)(e))},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(199),o=n(63),a=n(200),i=n(96),l=n(201),s=n(20),c=n(86),u=c(r),p=c(o),d=c(a),f=c(i),h=c(l),g=s;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=g(new o)||a&&"[object Promise]"!=g(a.resolve())||i&&"[object Set]"!=g(new i)||l&&"[object WeakMap]"!=g(new l))&&(g=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=g},function(e,t,n){var r=n(20),o=n(14);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(83),o=n(216),a=n(16);e.exports=function(e){return a(e)?r(e,!0):o(e)}},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=(i=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),a=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(a).concat([o]).join("\n")}var i;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 a=this[o][0];"number"==typeof a&&(r[a]=!0)}for(o=0;o<e.length;o++){var i=e[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),t.push(i))}},t}},function(e,t,n){var r,o,a={},i=(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(153);function f(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=a[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(y(r.parts[i],t))}else{var l=[];for(i=0;i<r.parts.length;i++)l.push(y(r.parts[i],t));a[r.id]={id:r.id,refs:1,parts:l}}}}function h(e,t){for(var n=[],r={},o=0;o<e.length;o++){var a=e[o],i=t.base?a[0]+t.base:a[0],l={css:a[1],media:a[2],sourceMap:a[3]};r[i]?r[i].parts.push(l):n.push(r[i]={id:i,parts:[l]})}return n}function g(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 m(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),g(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,a;if(t.transform&&e.css){if(!(a=t.transform(e.css)))return function(){};e.css=a}if(t.singleton){var i=u++;n=c||(c=v(t)),r=_.bind(null,n,i,!1),o=_.bind(null,n,i,!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),g(e,t),t}(t),r=k.bind(null,n,t),o=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=C.bind(null,n),o=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=i()),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 i=n[o];(l=a[i.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 a[l.id]}}}};var x,w=(x=[],function(e,t){return x[e]=t,x.filter(Boolean).join("\n")});function _(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=w(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function C(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 k(e,t,n){var r=n.css,o=n.sourceMap,a=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||a)&&(r=d(r)),o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var i=new Blob([r],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(i),l&&URL.revokeObjectURL(l)}},function(e,t,n){var r=n(160),o=n(14),a=Object.prototype,i=a.hasOwnProperty,l=a.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},function(e,t,n){var r=n(162),o=n(39),a=n(60),i=a&&a.isTypedArray,l=i?o(i):r;e.exports=l},function(e,t,n){var r=n(20),o=n(7);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(27);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(50),o=n(51);e.exports=function(e,t,n,a){var i=!n;n||(n={});for(var l=-1,s=t.length;++l<s;){var c=t[l],u=a?a(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),i?o(n,c,u):r(n,c,u)}return n}},function(e,t,n){var r=n(57),o=n(19);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.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(84)(Object.getPrototypeOf,Object);e.exports=r},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(44),o=n(171),a=n(172),i=n(173),l=n(174),s=n(175);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=l,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(166),o=n(167),a=n(168),i=n(169),l=n(170);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=a,s.prototype.has=i,s.prototype.set=l,e.exports=s},function(e,t,n){var r=n(25);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(22)(Object,"create");e.exports=r},function(e,t,n){var r=n(188);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(6),o=n(69),a=n(205),i=n(99);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:a(i(e))}},function(e,t,n){var r=n(37),o=n(212)(r);e.exports=o},function(e,t,n){var r=n(51),o=n(25),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var i=e[t];a.call(e,t)&&o(i,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(106);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,n){var r=n(21),o=n(116),a=n(117);e.exports=function(e,t){return a(o(e,t,r),e+"")}},function(e,t,n){var r=n(25),o=n(16),a=n(38),i=n(7);e.exports=function(e,t,n){if(!i(n))return!1;var l=typeof t;return!!("number"==l?o(n)&&a(t,n.length):"string"==l&&t in n)&&r(n[t],e)}},function(e,t,n){"use strict";var r=n(4);e.exports={longestPath:function(e){var t={};r.forEach(e.sources(),(function n(o){var a=e.node(o);if(r.has(t,o))return a.rank;t[o]=!0;var i=r.min(r.map(e.outEdges(o),(function(t){return n(t.w)-e.edge(t).minlen})));return i!==Number.POSITIVE_INFINITY&&null!=i||(i=0),a.rank=i}))},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";n.d(t,"a",(function(){return pt}));var r,o=n(1),a=n.n(o),i=n(18),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.DefaultParticleSystem=6]="DefaultParticleSystem",e[e.Bubbles=7]="Bubbles",e[e.Smoke=8]="Smoke",e[e.Rain=9]="Rain",e[e.Explosion=10]="Explosion",e[e.Fire=11]="Fire",e[e.Custom=12]="Custom"}(r||(r={}));var s=function(){function e(){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.onFrameCreatedObservable=new l.Observable,this.onCandidatePortSelectedObservable=new l.Observable,this.onGraphNodeRemovalObservable=new l.Observable,this.onGridSizeChanged=new l.Observable,this.onExposePortOnFrameObservable=new l.Observable,this.listOfCustomPreviewFiles=[],this.blockKeyboardEvents=!1,this.previewType=l.DataStorage.ReadNumber("PreviewType",r.Box),this.backFaceCulling=l.DataStorage.ReadBoolean("BackFaceCulling",!0),this.depthPrePass=l.DataStorage.ReadBoolean("DepthPrePass",!1),this.hemisphericLight=l.DataStorage.ReadBoolean("HemisphericLight",!0),this.directionalLight0=l.DataStorage.ReadBoolean("DirectionalLight0",!1),this.directionalLight1=l.DataStorage.ReadBoolean("DirectionalLight1",!1),this.controlCamera=l.DataStorage.ReadBoolean("ControlCamera",!0),this._mode=l.DataStorage.ReadNumber("Mode",l.NodeMaterialModes.Material);var e=l.DataStorage.ReadNumber("BackgroundColorR",.12549019607843137),t=l.DataStorage.ReadNumber("BackgroundColorG",.09803921568627451),n=l.DataStorage.ReadNumber("BackgroundColorB",.25098039215686274);this.backgroundColor=new l.Color4(e,t,n,1)}return Object.defineProperty(e.prototype,"mode",{get:function(){return this._mode},set:function(e){l.DataStorage.WriteNumber("Mode",e),this._mode=e,this.onPreviewCommandActivated.notifyObservers(!0)},enumerable:!0,configurable:!0}),e}(),c=function(e,t){return(c=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)};
  /*! *****************************************************************************
  Copyright (c) Microsoft Corporation. All rights reserved.
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  this file except in compliance with the License. You may obtain a copy of the
  License at http://www.apache.org/licenses/LICENSE-2.0
  
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  MERCHANTABLITY OR NON-INFRINGEMENT.
  
  See the Apache Version 2.0 License for specific language governing permissions
  and limitations under the License.
  ***************************************************************************** */function u(e,t){function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var p=function(){return(p=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 d=n(78),f=n(3),h=n.n(f);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 m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(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){m(e,t,n[t])}))}return e}function b(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function y(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}function w(e){return e.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)),a=t.slice(r+1).trim();return o.startsWith("webkit")?e[(n=o,n.charAt(0).toUpperCase()+n.slice(1))]=a:e[o]=a,e}),{})}var _=!1;try{_=!0}catch(e){}function C(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 k(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?m({},e,t):{}}function E(e){var t=e.icon,n=e.mask,r=e.symbol,o=e.className,a=e.title,i=C(t),l=k("classes",[].concat(y(function(e){var t,n=e.spin,r=e.pulse,o=e.fixedWidth,a=e.inverse,i=e.border,l=e.listItem,s=e.flip,c=e.size,u=e.rotation,p=e.pull,d=(m(t={"fa-spin":n,"fa-pulse":r,"fa-fw":o,"fa-inverse":a,"fa-border":i,"fa-li":l,"fa-flip-horizontal":"horizontal"===s||"both"===s,"fa-flip-vertical":"vertical"===s||"both"===s},"fa-".concat(c),void 0!==c),m(t,"fa-rotate-".concat(u),void 0!==u),m(t,"fa-pull-".concat(p),void 0!==p),m(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)),y(o.split(" ")))),s=k("transform","string"==typeof e.transform?d.b.transform(e.transform):e.transform),c=k("mask",C(n)),u=Object(d.a)(i,v({},l,s,c,{symbol:r,title:a}));if(!u)return function(){var e;!_&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",i),null;var p=u.abstract,f={};return Object.keys(e).forEach((function(t){E.defaultProps.hasOwnProperty(t)||(f[t]=e[t])})),S(p[0],f)}E.displayName="FontAwesomeIcon",E.propTypes={border:h.a.bool,className:h.a.string,mask:h.a.oneOfType([h.a.object,h.a.array,h.a.string]),fixedWidth:h.a.bool,inverse:h.a.bool,flip:h.a.oneOf(["horizontal","vertical","both"]),icon:h.a.oneOfType([h.a.object,h.a.array,h.a.string]),listItem:h.a.bool,pull:h.a.oneOf(["right","left"]),pulse:h.a.bool,rotation:h.a.oneOf([90,180,270]),size:h.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:h.a.bool,symbol:h.a.oneOfType([h.a.bool,h.a.string]),title:h.a.string,transform:h.a.oneOfType([h.a.string,h.a.object]),swapOpacity:h.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)})),a=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=w(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[x(t)]=r}return e}),{attrs:{}}),i=r.style,l=void 0===i?{}:i,s=b(r,["style"]);return a.attrs.style=v({},a.attrs.style,l),t.apply(void 0,[n.tag,v({},a.attrs,s)].concat(y(o)))}.bind(null,a.a.createElement),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"]},O={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"]},T={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"]},B={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"]},M=function(e){function t(t){var n=e.call(this,t)||this,r=l.DataStorage.ReadBoolean(n.props.title,!n.props.closed);return n.state={isExpanded:r},n}return u(t,e),t.prototype.switchExpandedState=function(){var e=!this.state.isExpanded;l.DataStorage.WriteBoolean(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),N=function(e){function t(t){return e.call(this,t)||this}return u(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(151);var R=function(e){function t(t){var n=e.call(this,t)||this;return n.state={filter:""},n._onResetRequiredObserver=n.props.globalState.onResetRequiredObservable.add((function(){n.forceUpdate()})),n}return u(t,e),t.prototype.componentWillUnmount=function(){this.props.globalState.onResetRequiredObservable.remove(this._onResetRequiredObserver)},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","ModBlock","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"],Particle:["ParticleBlendMultiplyBlock","ParticleColorBlock","ParticleRampGradientBlock","ParticleTextureBlock","ParticleTextureMaskBlock","ParticleUVBlock"],PBR:["PBRMetallicRoughnessBlock","AmbientOcclusionBlock","AnisotropyBlock","ClearCoatBlock","ReflectionBlock","ReflectivityBlock","RefractionBlock","SheenBlock","SubSurfaceBlock"],PostProcess:["Position2DBlock","CurrentScreenBlock"],Range:["ClampBlock","RemapBlock","NormalizeBlock"],Round:["RoundBlock","CeilingBlock","FloorBlock"],Scene:["FogBlock","CameraPositionBlock","FogColorBlock","ImageProcessingBlock","LightBlock","LightInformationBlock","ViewDirectionBlock"]};switch(this.props.globalState.mode){case l.NodeMaterialModes.Material:delete n.PostProcess,delete n.Particle;break;case l.NodeMaterialModes.PostProcess:delete n.Animation,delete n.Mesh,delete n.Particle;break;case l.NodeMaterialModes.Particle:delete n.Animation,delete n.Mesh,delete n.PostProcess,n.Output_Nodes.splice(n.Output_Nodes.indexOf("VertexOutputBlock"),1)}var r=[];for(var a in n){var i=n[a].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(N,{key:e,data:e,tooltip:r})}));i.length&&r.push(o.createElement(M,{key:a+" blocks",title:a.replace("__",": ").replace("_"," "),closed:!1},i))}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",onFocus:function(){return e.props.globalState.blockKeyboardEvents=!0},onBlur:function(t){e.props.globalState.blockKeyboardEvents=!1},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",ModBlock:"Outputs the value of one parameter modulo another",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.",PBRMetallicRoughnessBlock:"PBR metallic/roughness material",SheenBlock:"PBR Sheen block",AmbientOcclusionBlock:"PBR Ambient occlusion block",ReflectivityBlock:"PBR Reflectivity block",AnisotropyBlock:"PBR Anisotropy block",ReflectionBlock:"PBR Reflection block",ClearCoatBlock:"PBR ClearCoat block",RefractionBlock:"PBR Refraction block",SubSurfaceBlock:"PBR SubSurface block",Position2DBlock:"A Vector2 representing the position of each vertex of the screen quad",CurrentScreenBlock:"The screen buffer used as input for the post process",ParticleUVBlock:"The particle uv texture coordinate",ParticleTextureBlock:"The particle texture",ParticleColorBlock:"The particle color",ParticleTextureMaskBlock:"The particle texture mask",ParticleRampGradientBlock:"The particle ramp gradient block",ParticleBlendMultiplyBlock:"The particle blend multiply block"},t}(o.Component),L=function(e){function t(t){return e.call(this,t)||this}return u(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),j=function(){function e(){}return e._SaveAs=function(e,t,n){var r=this;if("download"in HTMLAnchorElement.prototype){var o=window.URL||window.webkitURL,a=n.createElement("a");return a.download=t,a.rel="noopener",a.href=o.createObjectURL(e),setTimeout((function(){o.revokeObjectURL(a.href)}),4e4),void setTimeout((function(){r._Click(a,n)}),0)}var i=open("","_blank");i&&(i.document.title=i.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;"),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var p=(o=window.URL||window.webkitURL).createObjectURL(e);i?i.location.href=p:location.href=p,i=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}(),A=function(e){function t(t){var n=e.call(this,t)||this;return n.uploadRef=o.createRef(),n}return u(t,e),t.prototype.onChange=function(e){var t=e.target.files;t&&t.length&&this.props.onClick(t[0]),e.target.value=""},t.prototype.render=function(){var e=this;return o.createElement("div",{className:"buttonLine"},o.createElement("label",{htmlFor:"file-upload",className:"file-upload"},this.props.label),o.createElement("input",{ref:this.uploadRef,id:"file-upload",type:"file",accept:this.props.accept,onChange:function(t){return e.onChange(t)}}))},t}(o.Component),I=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],a=t.onGetNodeFromBlock(o);e.editorData.locations.push({blockId:o.uniqueId,x:a?a.x:0,y:a?a.y:0})}t.storeEditorData(e.editorData)},e.Serialize=function(e,t,n){var r=l.Texture.SerializeBuffers;l.Texture.SerializeBuffers=l.DataStorage.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,"")},e}(),D=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.props.disabled&&(r.state=p(p({},r.state),{isDisabled:r.props.disabled})),r}return u(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.disabled!==!!t.isDisabled||(e.label!==this.props.label||e.target!==this.props.target)},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()},disabled:!!this.props.disabled}),o.createElement("label",{htmlFor:"checkbox"+this._uniqueId,className:"lbl"+(this.props.disabled?" disabled":"")})))},t._UniqueIdSeed=0,t}(o.Component),F=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 u(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",onBlur:function(t){e.props.globalState.blockKeyboardEvents=!1},onFocus:function(){return e.props.globalState.blockKeyboardEvents=!0},value:this.state.value,onChange:function(t){return e.updateValue(t.target.value)}}))))},t}(o.Component),z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement(F,{globalState:this.props.globalState,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),U=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 u(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=Math.min(Math.max(n,e.minimum),e.maximum),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),V=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={value:n.props.value.toFixed(3)},n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this._localChange?(this._localChange=!1,!0):e.value.toString()!==t.value&&(t.value=e.value.toFixed(3),!0)},t.prototype.updateValue=function(e){var t=e.target.value;if(!/[^0-9\.\-]/g.test(t)){var n=parseFloat(t);this._localChange=!0,this.setState({value:t}),isNaN(n)||this.props.onChange(n)}},t.prototype.render=function(){var e=this;return 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),H=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={isExpanded:!1,value:n.props.target[n.props.propertyName].clone()},n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e.target[e.propertyName];return!(n.equals(t.value)&&!this._localChange)&&(t.value=n.clone(),this._localChange=!1,!0)},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e){this.props.onChange&&this.props.onChange(this.state.value),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.value,initialValue:e})},t.prototype.updateStateX=function(e){this._localChange=!0;var t=this.state.value.clone();this.props.target[this.props.propertyName].x=e,this.state.value.x=e,this.setState({value:this.state.value}),this.raiseOnPropertyChanged(t)},t.prototype.updateStateY=function(e){this._localChange=!0;var t=this.state.value.clone();this.props.target[this.props.propertyName].y=e,this.state.value.y=e,this.setState({value:this.state.value}),this.raiseOnPropertyChanged(t)},t.prototype.render=function(){var e=this,t=this.state.isExpanded?o.createElement(E,{icon:O}):o.createElement(E,{icon:T});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(V,{globalState:this.props.globalState,label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),o.createElement(V,{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),W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement(H,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),X=n(140),Y=function(e){function t(t){var n=e.call(this,t)||this;return n.state={pickerEnabled:!1,color:{r:255*n.props.value.r,g:255*n.props.value.g,b:255*n.props.value.b,a:n.props.value instanceof l.Color4?100*n.props.value.a:100},hex:n.props.value.toHexString()},n._floatRef=o.createRef(),n._floatHostRef=o.createRef(),n}return u(t,e),t.prototype.syncPositions=function(){var e=this._floatRef.current,t=this._floatHostRef.current;if(e&&t){var n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().height;n+r+10>window.innerHeight&&(n=window.innerHeight-r-10),e.style.top=n+"px",e.style.left=t.getBoundingClientRect().left-e.getBoundingClientRect().width+"px"}},t.prototype.shouldComponentUpdate=function(e,t){return e.value.toHexString()!==this.props.value.toHexString()||e.disableAlpha!==this.props.disableAlpha||t.hex!==this.state.hex||t.pickerEnabled!==this.state.pickerEnabled},t.prototype.componentDidUpdate=function(){this.syncPositions()},t.prototype.componentDidMount=function(){this.syncPositions()},t.prototype.setPickerState=function(e){this.setState({pickerEnabled:e}),this.props.globalState.blockKeyboardEvents=e},t.prototype.render=function(){var e=this,t=this.state.color;return o.createElement("div",{className:"color-picker"},o.createElement("div",{className:"color-rect",ref:this._floatHostRef,style:{background:this.state.hex},onClick:function(){return e.setPickerState(!0)}}),this.state.pickerEnabled&&o.createElement(o.Fragment,null,o.createElement("div",{className:"color-picker-cover",onClick:function(){return e.setPickerState(!1)}}),o.createElement("div",{className:"color-picker-float",ref:this._floatRef},o.createElement(X.SketchPicker,{color:t,disableAlpha:this.props.disableAlpha,onChange:function(t){var n;e.props.disableAlpha?n=l.Color3.FromInts(t.rgb.r,t.rgb.g,t.rgb.b).toHexString():n=l.Color4.FromInts(t.rgb.r,t.rgb.g,t.rgb.b,255*(t.rgb.a||0)).toHexString();e.setState({hex:n,color:t.rgb}),e.props.onColorChanged(n)}}))))},t}(o.Component),G=n(124),q=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 u(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:O}):o.createElement(E,{icon:T});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(Y,{value:this.state.color,disableAlpha:!0,globalState:this.props.globalState,onColorChanged:function(t){e.onChange(t)}})),o.createElement("div",{className:"copy hoverIcon",onClick:function(){return e.copyToClipboard()},title:"Copy to clipboard"},o.createElement("img",{src:G,alt:""})),o.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&o.createElement("div",{className:"secondLine"},o.createElement(V,{globalState:this.props.globalState,label:"r",value:this.state.color.r,onChange:function(t){return e.updateStateR(t)}}),o.createElement(V,{globalState:this.props.globalState,label:"g",value:this.state.color.g,onChange:function(t){return e.updateStateG(t)}}),o.createElement(V,{globalState:this.props.globalState,label:"b",value:this.state.color.b,onChange:function(t){return e.updateStateB(t)}})))},t}(o.Component),Z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement(q,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),Q=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={isExpanded:!1,value:n.props.target[n.props.propertyName].clone()},n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e.target[e.propertyName];return!(n.equals(t.value)&&!this._localChange)&&(t.value=n.clone(),this._localChange=!1,!0)},t.prototype.switchExpandState=function(){this._localChange=!0,this.setState({isExpanded:!this.state.isExpanded})},t.prototype.raiseOnPropertyChanged=function(e){this.props.onChange&&this.props.onChange(this.state.value),this.props.onPropertyChangedObservable&&this.props.onPropertyChangedObservable.notifyObservers({object:this.props.target,property:this.props.propertyName,value:this.state.value,initialValue:e})},t.prototype.updateVector3=function(){var e=this.props.target[this.props.propertyName].clone();this.props.target[this.props.propertyName]=this.state.value,this.setState({value:e}),this.raiseOnPropertyChanged(e)},t.prototype.updateStateX=function(e){this._localChange=!0,this.state.value.x=e,this.updateVector3()},t.prototype.updateStateY=function(e){this._localChange=!0,this.state.value.y=e,this.updateVector3()},t.prototype.updateStateZ=function(e){this._localChange=!0,this.state.value.z=e,this.updateVector3()},t.prototype.render=function(){var e=this,t=this.state.isExpanded?o.createElement(E,{icon:O}):o.createElement(E,{icon:T});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(V,{globalState:this.props.globalState,label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),o.createElement(V,{globalState:this.props.globalState,label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}}),o.createElement(V,{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),K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement(Q,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),$=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 u(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:O}):o.createElement(E,{icon:T});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(V,{globalState:this.props.globalState,label:"x",step:this.props.step,value:this.state.value.x,onChange:function(t){return e.updateStateX(t)}}),o.createElement(V,{globalState:this.props.globalState,label:"y",step:this.props.step,value:this.state.value.y,onChange:function(t){return e.updateStateY(t)}}),o.createElement(V,{globalState:this.props.globalState,label:"z",step:this.props.step,value:this.state.value.z,onChange:function(t){return e.updateStateZ(t)}}),o.createElement(V,{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),J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement($,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),ee=function(e){function t(t){var n=e.call(this,t)||this;return n._localChange=!1,n.state={value:n._getValue(t)},n}return u(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.setValue=function(e){this.setState({value:e})},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:null!==(e=this.state.value)&&void 0!==e?e:""},this.props.options.map((function(e){return o.createElement("option",{key:e.label,value:e.value},e.label)})))))},t}(o.Component),te=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 a=new l.Quaternion;r.decompose(void 0,a);var i=a.toEulerAngles();switch(n.props.mode){case 1:o=i.x;break;case 2:o=i.y;break;case 3:o=i.z}}return n.state={value:r,mode:n.props.mode||0,angle:o},n}return u(t,e),t.prototype.shouldComponentUpdate=function(e,t){var n=e.target[e.propertyName];return!n.equals(t.value)||this._localChange?(t.value=n.clone(),this._localChange=!1,!0):t.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(ee,{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($,{globalState:this.props.globalState,label:"Row #0",value:this.state.value.getRow(0),onChange:function(t){return e.updateRow(t,0)}}),o.createElement($,{globalState:this.props.globalState,label:"Row #1",value:this.state.value.getRow(1),onChange:function(t){return e.updateRow(t,1)}}),o.createElement($,{globalState:this.props.globalState,label:"Row #2",value:this.state.value.getRow(2),onChange:function(t){return e.updateRow(t,2)}}),o.createElement($,{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(U,{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),ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement(te,{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),re=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 u(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),oe=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.onLink=function(){this.props.onLink&&this.props.onLink()},t.prototype.renderContent=function(){var e=this;return this.props.onLink?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),ae=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.render=function(){return o.createElement(o.Fragment,null,o.createElement(ie,{globalState:this.props.globalState,block:this.props.block}),o.createElement(le,{globalState:this.props.globalState,block:this.props.block}))},t}(o.Component),ie=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement(o.Fragment,null,o.createElement(M,{title:"GENERAL"},(!this.props.block.isInput||!this.props.block.isAttribute)&&o.createElement(re,{globalState:this.props.globalState,label:"Name",propertyName:"name",target:this.props.block,onChange:function(){return e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),o.createElement(oe,{label:"Type",value:this.props.block.getClassName()}),o.createElement(re,{globalState:this.props.globalState,label:"Comments",propertyName:"comments",target:this.props.block,onChange:function(){return e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})))},t}(o.Component),le=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.forceRebuild=function(e){e&&!e.update||this.props.globalState.onUpdateRequiredObservable.notifyObservers(),e&&!e.rebuild||this.props.globalState.onRebuildRequiredObservable.notifyObservers()},t.prototype.render=function(){var e=this,t=this.props.block._propStore;if(!t)return o.createElement(o.Fragment,null);for(var n={},r=[],a=function(t,a,s,c,u){var p=n[c];switch(p||(p=[],n[c]=p,r.push(c)),s){case l.PropertyTypeForEdition.Boolean:p.push(o.createElement(D,{label:a,target:i.props.block,propertyName:t,onValueChanged:function(){return e.forceRebuild(u.notifiers)}}));break;case l.PropertyTypeForEdition.Float:isNaN(u.min)||isNaN(u.max)||u.min===u.max?p.push(o.createElement(F,{globalState:i.props.globalState,label:a,propertyName:t,target:i.props.block,onChange:function(){return e.forceRebuild(u.notifiers)}})):p.push(o.createElement(U,{label:a,target:i.props.block,propertyName:t,step:Math.abs(u.max-u.min)/100,minimum:Math.min(u.min,u.max),maximum:u.max,onChange:function(){return e.forceRebuild(u.notifiers)}}));break;case l.PropertyTypeForEdition.Vector2:p.push(o.createElement(H,{globalState:i.props.globalState,label:a,propertyName:t,target:i.props.block,onChange:function(){return e.forceRebuild(u.notifiers)}}));break;case l.PropertyTypeForEdition.List:p.push(o.createElement(ee,{label:a,options:u.options,target:i.props.block,propertyName:t,onSelect:function(){return e.forceRebuild(u.notifiers)}}))}},i=this,s=0,c=t;s<c.length;s++){var u=c[s];a(u.propertyName,u.displayName,u.type,u.groupName,u.options)}return o.createElement(o.Fragment,null,r.map((function(e){return o.createElement(M,{title:e},n[e])})))},t}(o.Component),se=n(124),ce=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 u(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.Color4.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]=t,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:O}):o.createElement(E,{icon:T});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(Y,{globalState:this.props.globalState,value:this.state.color,onColorChanged:function(t){e.onChange(t)}})),o.createElement("div",{className:"copy hoverIcon",onClick:function(){return e.copyToClipboard()},title:"Copy to clipboard"},o.createElement("img",{src:se,alt:""})),o.createElement("div",{className:"expand hoverIcon",onClick:function(){return e.switchExpandState()},title:"Expand"},t)),this.state.isExpanded&&o.createElement("div",{className:"secondLine"},o.createElement(V,{globalState:this.props.globalState,label:"r",value:this.state.color.r,onChange:function(t){return e.updateStateR(t)}}),o.createElement(V,{globalState:this.props.globalState,label:"g",value:this.state.color.g,onChange:function(t){return e.updateStateG(t)}}),o.createElement(V,{globalState:this.props.globalState,label:"b",value:this.state.color.b,onChange:function(t){return e.updateStateB(t)}}),o.createElement(V,{globalState:this.props.globalState,label:"a",value:this.state.color.a,onChange:function(t){return e.updateStateA(t)}})))},t}(o.Component),ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement(ce,{globalState:this.props.globalState,label:"Value",target:this.props.inputBlock,propertyName:"value",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}})},t}(o.Component),pe=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.block;this.onValueChangedObserver=t.onValueChangedObservable.add((function(){e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers()}))},t.prototype.componentWillUnmount=function(){var e=this.props.block;this.onValueChangedObserver&&(e.onValueChangedObservable.remove(this.onValueChangedObserver),this.onValueChangedObserver=null)},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(D,{label:"Is boolean",target:n,propertyName:"isBoolean"}),n.isBoolean&&o.createElement(D,{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()}}),!n.isBoolean&&o.createElement(F,{globalState:this.props.globalState,label:"Min",target:n,propertyName:"min",onChange:function(){return t.forceUpdate()}}),!n.isBoolean&&o.createElement(F,{globalState:this.props.globalState,label:"Max",target:n,propertyName:"max",onChange:function(){return t.forceUpdate()}}),!n.isBoolean&&r&&o.createElement(z,{globalState:e,inputBlock:n}),!n.isBoolean&&!r&&o.createElement(U,{label:"Value",target:n,propertyName:"value",step:Math.abs(n.max-n.min)/100,minimum:Math.min(n.min,n.max),maximum:n.max,onChange:function(){n.isConstant&&t.props.globalState.onRebuildRequiredObservable.notifyObservers()}}));case l.NodeMaterialBlockConnectionPointTypes.Vector2:return o.createElement(W,{globalState:e,inputBlock:n});case l.NodeMaterialBlockConnectionPointTypes.Color3:return o.createElement(Z,{globalState:e,inputBlock:n});case l.NodeMaterialBlockConnectionPointTypes.Color4:return o.createElement(ue,{globalState:e,inputBlock:n});case l.NodeMaterialBlockConnectionPointTypes.Vector3:return o.createElement(K,{globalState:e,inputBlock:n});case l.NodeMaterialBlockConnectionPointTypes.Vector4:return o.createElement(J,{globalState:e,inputBlock:n});case l.NodeMaterialBlockConnectionPointTypes.Matrix:return o.createElement(ne,{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=[],a=[];switch(t.type){case l.NodeMaterialBlockConnectionPointTypes.Float:a=[{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 i=[{label:"User-defined",value:0}];r.length>0&&i.push({label:"Mesh attribute",value:1}),n.length>0&&i.push({label:"System value",value:2});return o.createElement("div",null,o.createElement(ie,{globalState:this.props.globalState,block:this.props.block}),o.createElement(M,{title:"PROPERTIES"},t.isUniform&&!t.isSystemValue&&t.animationType===l.AnimatedInputBlockTypes.None&&o.createElement(ee,{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(re,{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(ee,{label:"Mode",options:i,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(ee,{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&&a.length>0&&o.createElement(ee,{label:"Animation type",options:a,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(ee,{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),de=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.render=function(){var e=this;return o.createElement(o.Fragment,null,o.createElement(ie,{globalState:this.props.globalState,block:this.props.block}),o.createElement(M,{title:"PROPERTIES"},o.createElement(D,{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),fe=function(e){function t(t){var n=e.call(this,t)||this;return n.state={gradient:t.step.step},n}return u(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:B})))},t}(o.Component),he=function(e){function t(t){return e.call(this,t)||this}return u(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(ie,{globalState:this.props.globalState,block:this.props.block}),o.createElement(M,{title:"STEPS"},o.createElement(L,{label:"Add new step",onClick:function(){return e.addNewStep()}}),t.colorSteps.map((function(t,n){return o.createElement(fe,{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),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(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(ie,{globalState:this.props.globalState,block:this.props.block}),o.createElement(M,{title:"PROPERTIES"},o.createElement(ee,{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),me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(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(ie,{globalState:this.props.globalState,block:this.props.block}),o.createElement(M,{title:"PROPERTIES"},o.createElement(ee,{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),ve=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 u(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||this.textureBlock instanceof l.ReflectionBlock||this.textureBlock instanceof l.RefractionBlock||this.props.globalState.mode===l.NodeMaterialModes.PostProcess),(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"}),a=new FileReader;a.readAsDataURL(o),a.onloadend=function(){var r=a.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||this.textureBlock instanceof l.ReflectionBlock||this.textureBlock instanceof l.RefractionBlock){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||this.textureBlock instanceof l.ReflectionBlock||this.textureBlock instanceof l.RefractionBlock,a=this.textureBlock instanceof l.CurrentScreenBlock||this.textureBlock instanceof l.ParticleTextureBlock,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(ie,{globalState:this.props.globalState,block:this.props.block}),o.createElement(M,{title:"PROPERTIES"},o.createElement(D,{label:"Auto select UV",propertyName:"autoSelectUV",target:this.props.block,onValueChanged:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(D,{label:"Convert to gamma space",propertyName:"convertToGammaSpace",target:this.props.block,onValueChanged:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&o.createElement(D,{label:"Convert to linear space",propertyName:"convertToLinearSpace",target:this.props.block,onValueChanged:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&r&&o.createElement(ee,{label:"Reflection mode",options:i,target:n,propertyName:"coordinatesMode",onSelect:function(t){n.coordinatesMode=t,e.forceUpdate(),e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&!a&&o.createElement(D,{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&&!a&&o.createElement(D,{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&&!a&&o.createElement(F,{globalState:this.props.globalState,label:"Offset U",target:n,propertyName:"uOffset",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&!a&&o.createElement(F,{globalState:this.props.globalState,label:"Offset V",target:n,propertyName:"vOffset",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&!a&&o.createElement(F,{globalState:this.props.globalState,label:"Scale U",target:n,propertyName:"uScale",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&!a&&o.createElement(F,{globalState:this.props.globalState,label:"Scale V",target:n,propertyName:"vScale",onChange:function(){e.props.globalState.onUpdateRequiredObservable.notifyObservers()}}),n&&!r&&!a&&o.createElement(U,{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&&!a&&o.createElement(U,{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&&!a&&o.createElement(U,{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(M,{title:"SOURCE"},o.createElement(D,{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(D,{label:"Load as cube texture",isSelected:function(){return e.state.loadAsCubeTexture},onSelect:function(t){return e.setState({loadAsCubeTexture:t})}}),this.state.isEmbedded&&o.createElement(A,{label:"Upload",onClick:function(t){return e.replaceTexture(t)},accept:".jpg, .png, .tga, .dds, .env"}),!this.state.isEmbedded&&o.createElement(re,{label:"Link",globalState:this.props.globalState,value:t,onChange:function(t){return e.replaceTextureWithUrl(t)}}),!this.state.isEmbedded&&t&&o.createElement(L,{label:"Refresh",onClick:function(){return e.replaceTextureWithUrl(t+"?nocache="+e._generateRandomForCache())}}),n&&o.createElement(L,{label:"Remove",onClick:function(){return e.removeTexture()}})),o.createElement(le,{globalState:this.props.globalState,block:this.props.block}))},t}(o.Component),be=function(e){function t(t){return e.call(this,t)||this}return u(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(ie,{globalState:this.props.globalState,block:this.props.block}),o.createElement(M,{title:"PROPERTIES"},o.createElement(ee,{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),ye=function(){function e(){}return e.RegisteredControls={},e}();ye.RegisteredControls.TransformBlock=de,ye.RegisteredControls.InputBlock=pe,ye.RegisteredControls.GradientBlock=he,ye.RegisteredControls.LightBlock=ge,ye.RegisteredControls.LightInformationBlock=me,ye.RegisteredControls.TextureBlock=ve,ye.RegisteredControls.ReflectionTextureBlock=ve,ye.RegisteredControls.ReflectionBlock=ve,ye.RegisteredControls.RefractionBlock=ve,ye.RegisteredControls.CurrentScreenBlock=ve,ye.RegisteredControls.ParticleTextureBlock=ve,ye.RegisteredControls.TrigonometryBlock=be;var xe=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",n.mode===l.NodeMaterialModes.Particle);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"ModBlock":return new l.ModBlock("Mod");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 a=new l.TrigonometryBlock("Sin");return a.operation=l.TrigonometryBlockOperations.Sin,a;case"AbsBlock":var i=new l.TrigonometryBlock("Abs");return i.operation=l.TrigonometryBlockOperations.Abs,i;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 g=new l.TrigonometryBlock("Log");return g.operation=l.TrigonometryBlockOperations.Log,g;case"ExpBlock":var m=new l.TrigonometryBlock("Exp");return m.operation=l.TrigonometryBlockOperations.Exp,m;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 x=new l.TrigonometryBlock("Round");return x.operation=l.TrigonometryBlockOperations.Round,x;case"CeilingBlock":var w=new l.TrigonometryBlock("Ceiling");return w.operation=l.TrigonometryBlockOperations.Ceiling,w;case"FloorBlock":var _=new l.TrigonometryBlock("Floor");return _.operation=l.TrigonometryBlockOperations.Floor,_;case"SawToothWaveBlock":var C=new l.WaveBlock("SawTooth wave");return C.kind=l.WaveBlockKind.SawTooth,C;case"SquareWaveBlock":var k=new l.WaveBlock("Square wave");return k.kind=l.WaveBlockKind.Square,k;case"TriangleWaveBlock":var E=new l.WaveBlock("Triangle wave");return E.kind=l.WaveBlockKind.Triangle,E;case"WorldMatrixBlock":return(X=new l.InputBlock("World")).setAsSystemValue(l.NodeMaterialSystemValues.World),X;case"WorldViewMatrixBlock":var S=new l.InputBlock("World x View");return S.setAsSystemValue(l.NodeMaterialSystemValues.WorldView),S;case"WorldViewProjectionMatrixBlock":var P=new l.InputBlock("World x View x Projection");return P.setAsSystemValue(l.NodeMaterialSystemValues.WorldViewProjection),P;case"ViewMatrixBlock":var O=new l.InputBlock("View");return O.setAsSystemValue(l.NodeMaterialSystemValues.View),O;case"ViewProjectionMatrixBlock":var T=new l.InputBlock("View x Projection");return T.setAsSystemValue(l.NodeMaterialSystemValues.ViewProjection),T;case"ProjectionMatrixBlock":var B=new l.InputBlock("Projection");return B.setAsSystemValue(l.NodeMaterialSystemValues.Projection),B;case"CameraPositionBlock":var M=new l.InputBlock("Camera position");return M.setAsSystemValue(l.NodeMaterialSystemValues.CameraPosition),M;case"FogColorBlock":var N=new l.InputBlock("Fog color");return N.setAsSystemValue(l.NodeMaterialSystemValues.FogColor),N;case"PositionBlock":return(R=new l.InputBlock("position")).setAsAttribute("position"),R;case"Position2DBlock":var R;return(R=new l.InputBlock("position")).setAsAttribute("position2d"),R;case"UVBlock":var L=new l.InputBlock("uv");return L.setAsAttribute("uv"),L;case"ColorBlock":var j=new l.InputBlock("color");return j.setAsAttribute("color"),j;case"NormalBlock":var A=new l.InputBlock("normal");return A.setAsAttribute("normal"),A;case"TangentBlock":var I=new l.InputBlock("tangent");return I.setAsAttribute("tangent"),I;case"MatrixIndicesBlock":var D=new l.InputBlock("matricesIndices");return D.setAsAttribute("matricesIndices"),D;case"MatrixWeightsBlock":var F=new l.InputBlock("matricesWeights");return F.setAsAttribute("matricesWeights"),F;case"TimeBlock":var z=new l.InputBlock("Time",void 0,l.NodeMaterialBlockConnectionPointTypes.Float);return z.animationType=l.AnimatedInputBlockTypes.Time,z;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"),(X=n.getInputBlockByPredicate((function(e){return e.isSystemValue&&e.systemValue===l.NodeMaterialSystemValues.World})))||(X=new l.InputBlock("World")).setAsSystemValue(l.NodeMaterialSystemValues.World);var H=new l.TransformBlock("World position");return V.connectTo(H),X.connectTo(H),H;case"WorldNormalBlock":var W=n.getInputBlockByPredicate((function(e){return e.isAttribute&&"normal"===e.name}));W||(W=new l.InputBlock("normal")).setAsAttribute("normal"),(X=n.getInputBlockByPredicate((function(e){return e.isSystemValue&&e.systemValue===l.NodeMaterialSystemValues.World})))||(X=new l.InputBlock("World")).setAsSystemValue(l.NodeMaterialSystemValues.World);H=new l.TransformBlock("World normal");return W.connectTo(H),X.connectTo(H),H;case"WorldTangentBlock":var X,Y=n.getInputBlockByPredicate((function(e){return e.isAttribute&&"tangent"===e.name}));Y||(Y=new l.InputBlock("tangent")).setAsAttribute("tangent"),(X=n.getInputBlockByPredicate((function(e){return e.isSystemValue&&e.systemValue===l.NodeMaterialSystemValues.World})))||(X=new l.InputBlock("World")).setAsSystemValue(l.NodeMaterialSystemValues.World);H=new l.TransformBlock("World tangent");return Y.connectTo(H),X.connectTo(H),H;case"PBRMetallicRoughnessBlock":return new l.PBRMetallicRoughnessBlock("PBRMetallicRoughness");case"SheenBlock":return new l.SheenBlock("Sheen");case"AmbientOcclusionBlock":return new l.AmbientOcclusionBlock("AmbientOcclusion");case"ReflectivityBlock":return new l.ReflectivityBlock("Reflectivity");case"AnisotropyBlock":return new l.AnisotropyBlock("Anisotropy");case"ReflectionBlock":return new l.ReflectionBlock("Reflection");case"ClearCoatBlock":return new l.ClearCoatBlock("ClearCoat");case"RefractionBlock":return new l.RefractionBlock("Refraction");case"SubSurfaceBlock":return new l.SubSurfaceBlock("SubSurface");case"CurrentScreenBlock":return new l.CurrentScreenBlock("CurrentScreen");case"ParticleUVBlock":var G=new l.InputBlock("uv");return G.setAsAttribute("particle_uv"),G;case"ParticleTextureBlock":return new l.ParticleTextureBlock("ParticleTexture");case"ParticleColorBlock":var q=new l.InputBlock("Color");return q.setAsAttribute("particle_color"),q;case"ParticleTextureMaskBlock":var Z=new l.InputBlock("TextureMask");return Z.setAsAttribute("particle_texturemask"),Z;case"ParticleRampGradientBlock":return new l.ParticleRampGradientBlock("ParticleRampGradient");case"ParticleBlendMultiplyBlock":return new l.ParticleBlendMultiplyBlock("ParticleBlendMultiply")}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}(),we={position2d:"position",particle_uv:"uv",particle_color:"color",particle_texturemask:"textureMask"},_e={position2d:"postprocess",particle_uv:"particle",particle_color:"particle",particle_texturemask:"particle"},Ce=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+" ("+j.GetBaseType(t.output.type)+")";return t.isAttribute&&(n=j.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=xe.GetColorFromConnectionNodeType(n.type)}return t},e.prototype.updatePreviewContent=function(e,t){var n,r,o="",a=e;if(a.isAttribute){var i=null!==(n=we[a.name])&&void 0!==n?n:a.name;o=(null!==(r=_e[a.name])&&void 0!==r?r:"mesh")+"."+i}else if(a.isSystemValue)switch(a.systemValue){case l.NodeMaterialSystemValues.World:o="World";break;case l.NodeMaterialSystemValues.WorldView:o="World x View";break;case l.NodeMaterialSystemValues.WorldViewProjection:o="World x View x Projection";break;case l.NodeMaterialSystemValues.View:o="View";break;case l.NodeMaterialSystemValues.ViewProjection:o="View x Projection";break;case l.NodeMaterialSystemValues.Projection:o="Projection";break;case l.NodeMaterialSystemValues.CameraPosition:o="Camera position";break;case l.NodeMaterialSystemValues.FogColor:o="Fog color";break;case l.NodeMaterialSystemValues.DeltaTime:o="Delta time"}else switch(a.type){case l.NodeMaterialBlockConnectionPointTypes.Float:o=a.animationType!==l.AnimatedInputBlockTypes.None?l.AnimatedInputBlockTypes[a.animationType]:a.value.toFixed(2);break;case l.NodeMaterialBlockConnectionPointTypes.Vector2:var s=a.value;o="("+s.x.toFixed(2)+", "+s.y.toFixed(2)+")";break;case l.NodeMaterialBlockConnectionPointTypes.Vector3:var c=a.value;o="("+c.x.toFixed(2)+", "+c.y.toFixed(2)+", "+c.z.toFixed(2)+")";break;case l.NodeMaterialBlockConnectionPointTypes.Vector4:var u=a.value;o="("+u.x.toFixed(2)+", "+u.y.toFixed(2)+", "+u.z.toFixed(2)+", "+u.w.toFixed(2)+")"}t.innerHTML=o,t.classList.add("input-block")},e}(),ke=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}(),Ee=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}(),Se=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}(),Pe=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,a=n.targetMin.isConnected?this._extractInputValue(n.targetMin):n.targetRange.x,i=n.targetMax.isConnected?this._extractInputValue(n.targetMax):n.targetRange.y;t.classList.add("remap-block"),t.innerHTML="["+r+", "+o+"] -> ["+a+", "+i+"]"},e}(),Oe=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}(),Te=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.canvasRef=o.createRef(),n}return u(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.canvasRef.current,this.props.texture,this.props.width,this.state,void 0,this.props.globalState)},t.UpdatePreview=function(e,n,r,o,a,i){!n.isReady()&&n._texture&&n._texture.onLoadedObservable.addOnce((function(){t.UpdatePreview(e,n,r,o,a,i)}));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,a,i)}),250);i&&(i.blockMutationUpdates=!0);var g=new l.RenderTargetTexture("temp",{width:r,height:f},c,!1);s.onApply=function(e){e.setTexture("textureSampler",n)};var m=g.getInternalTexture();if(m){c.postProcessManager.directRender([s],m);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 x=0;x<r*f*4;x+=4)if(o.displayRed||(y[x]=0),o.displayGreen||(y[x+1]=0),o.displayBlue||(y[x+2]=0),o.displayAlpha){var w=y[x+2];y[x]=w,y[x+1]=w,y[x+2]=w,y[x+2]=0}if(n.invertY||n.isCube)for(x=0;x<b;x++)for(var _=0;_<v;_++){var C=_+x*v,k=_+(f-x-1)*v,E=y[C];y[C]=y[k],y[k]=E}e.width=r,e.height=f;var S=e.getContext("2d");if(S){var P=S.createImageData(r,f);P.data.set(y),S.putImageData(P,0,0),a&&a()}u.unBindFramebuffer(m)}g.dispose(),s.dispose(),e.style.height=f+"px",i&&(i.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:this.canvasRef,className:"preview"}))},t}(o.Component),Be=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||e instanceof l.CurrentScreenBlock||e instanceof l.ParticleTextureBlock)&&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?Te.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}(),Me=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}(),Ne=function(){function e(){}return e.RegisteredControls={},e}();Ne.RegisteredControls.InputBlock=Ce,Ne.RegisteredControls.VertexOutputBlock=ke,Ne.RegisteredControls.FragmentOutputBlock=ke,Ne.RegisteredControls.ClampBlock=Ee,Ne.RegisteredControls.GradientBlock=Se,Ne.RegisteredControls.RemapBlock=Pe,Ne.RegisteredControls.TrigonometryBlock=Oe,Ne.RegisteredControls.TextureBlock=Be,Ne.RegisteredControls.ReflectionTextureBlock=Be,Ne.RegisteredControls.ReflectionBlock=Be,Ne.RegisteredControls.RefractionBlock=Be,Ne.RegisteredControls.CurrentScreenBlock=Be,Ne.RegisteredControls.ParticleTextureBlock=Be,Ne.RegisteredControls.DiscardBlock=Me;var Re=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),"port-label"===e.children[0].className&&(this._portLabelElement=e.children[0]),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.onCandidatePortSelectedObservable.notifyObservers(o))})),this._onSelectionChangedObserver=this._globalState.onSelectionChangedObservable.add((function(e){e===o?o._img.classList.add("selected"):o._img.classList.remove("selected")})),this.refresh()}return Object.defineProperty(e.prototype,"element",{get:function(){return this.delegatedPort?this.delegatedPort.element:this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"portName",{get:function(){var e=this.connectionPoint.displayName||this.connectionPoint.name;return this.connectionPoint.ownerBlock.isInput&&(e=this.node.name),e},set:function(e){this._portLabelElement&&(this.connectionPoint.displayName=e,this._portLabelElement.innerHTML=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){if(!this.connectionPoint.isConnected)return!1;if(this._isConnectedToNodeOutsideOfFrame())return!0;var e=this.node.getLinksForConnectionPoint(this.connectionPoint);return!(!e.length||e[0].nodeB!==this.node)},enumerable:!0,configurable:!0}),e.prototype.hasLabel=function(){return!!this._portLabelElement},Object.defineProperty(e.prototype,"exposedOnFrame",{get:function(){return!(!this._exposedOnFrame&&!this._isConnectedToNodeOutsideOfFrame())},set:function(e){this.disabled||(this._exposedOnFrame=e)},enumerable:!0,configurable:!0}),e.prototype._isConnectedToNodeOutsideOfFrame=function(){var e=this.node.getLinksForConnectionPoint(this.connectionPoint);if(e.length)for(var t=0;t<e.length;t++)if(e[t].nodeA.enclosingFrameId!==e[t].nodeB.enclosingFrameId)return!0;return!1},e.prototype.refresh=function(){switch(this._element.style.background=xe.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==";break;case l.NodeMaterialBlockConnectionPointTypes.Object:this._img.src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMSAyMSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5WZWN0b3IxPC90aXRsZT48ZyBpZD0iTGF5ZXJfNSIgZGF0YS1uYW1lPSJMYXllciA1Ij48Y2lyY2xlIGNsYXNzPSJjbHMtMSIgY3g9IjEwLjUiIGN5PSIxMC41IiByPSI3LjUiLz48L2c+PC9zdmc+"}},e.prototype.dispose=function(){this._globalState.onCandidateLinkMoved.remove(this._onCandidateLinkMovedObserver),this._onSelectionChangedObserver&&this._globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver)},e.CreatePortElement=function(t,n,r,o,a){var i=r.ownerDocument.createElement("div"),l=t.ownerBlock;if(i.classList.add("portLine"),r.appendChild(i),!o||o.shouldDisplayPortLabels(l)){var s=r.ownerDocument.createElement("div");s.classList.add("port-label"),s.innerHTML=t.displayName||t.name,i.appendChild(s)}return new e(i,t,n,a)},e}(),Le=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.onFrameCreatedObservable.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._upateNodePortNames()):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}),e.prototype._upateNodePortNames=function(){for(var e=0,t=this._inputPorts.concat(this._outputPorts);e<t.length;e++){var n=t[e];n.hasLabel()&&(n.portName=n.connectionPoint.displayName||n.connectionPoint.name)}},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}),Object.defineProperty(e.prototype,"enclosingFrameId",{get:function(){return this._enclosingFrameId},set:function(e){this._enclosingFrameId=e},enumerable:!0,configurable:!0}),e.prototype.isOverlappingFrame=function(e){var t=this._visual.getBoundingClientRect(),n=e.element.getBoundingClientRect();n.width-=5,n.height-=5;var r=!(n.right<t.left||n.left>t.right||n.bottom<t.top||n.top>t.bottom);return r&&(this.enclosingFrameId=e.id),r},e.prototype.getPortForConnectionPoint=function(e){for(var t=0,n=this._inputPorts;t<n.length;t++){if((a=n[t]).connectionPoint===e)return a}for(var r=0,o=this._outputPorts;r<o.length;r++){var a;if((a=o[r]).connectionPoint===e)return a}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&&!this._ownerCanvas._isLoading)for(var e=0,t=this._ownerCanvas.frames;e<t.length;e++){t[e].syncNode(this)}},e.prototype._refreshLinks=function(){if(!this._ownerCanvas._isLoading)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 a=o[r];a.x+=t,a.y+=n}this._mouseStartPointX=e.clientX,this._mouseStartPointY=e.clientY,e.stopPropagation()}},e.prototype.renderProperties=function(){var e=ye.RegisteredControls[this.block.getClassName()];return e||(e=ae),o.createElement(e,{globalState:this._globalState,block:this.block})},e.prototype.appendVisual=function(e,t){var n=this;this._ownerCanvas=t;var r=Ne.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 a=0,i=this.block.inputs;a<i.length;a++){var l=i[a];this._inputPorts.push(Re.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(Re.CreatePortElement(u,this,this._outputsContainer,this._displayManager,this._globalState))}this.refresh()},e.prototype.dispose=function(){this._globalState.onGraphNodeRemovalObservable.notifyObservers(this),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.onFrameCreatedObservable.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,a=this._links.slice(0);o<a.length;o++){a[o].dispose()}this.block.dispose()},e}(),je=n(79),Ae=function(){function e(e,t,n,r,o){var a=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 i=t.element.ownerDocument,s=e.svgCanvas;this._path=i.createElementNS("http://www.w3.org/2000/svg","path"),this._path.setAttribute("fill","none"),this._path.classList.add("link"),s.appendChild(this._path),this._selectionPath=i.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 a.onClick()},this._portB&&this.update(),this._onSelectionChangedObserver=this._graphCanvas.globalState.onSelectionChangedObservable.add((function(e){e===a?(a._path.classList.add("selected"),a._selectionPath.classList.add("selected")):(a._path.classList.remove("selected"),a._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(),a=this._graphCanvas.zoom,i=o.left,l=o.top,s=(r.left-i+.5*r.width)/a,c=(r.top-l+.5*r.height)/a;if(this._portB){var u=this._portB.element.getBoundingClientRect();e=(u.left-i+.5*u.width)/a,t=(u.top-l+.5*u.height)/a}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),this.onDisposedObservable.clear()},e}();n(378);var Ie,De,Fe=function(e){return!!e&&void 0!==e.port},ze=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._candidateLinkedHasMoved=!1,n._x=0,n._y=0,n._zoom=1,n._selectedNodes=[],n._selectedLink=null,n._selectedPort=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,n._isLoading=!1,t.globalState.onSelectionChangedObservable.add((function(e){e?e instanceof Ae?(n._selectedNodes=[],n._selectedFrame=null,n._selectedLink=e,n._selectedPort=null):e instanceof Ve?(n._selectedNodes=[],n._selectedFrame=e,n._selectedLink=null,n._selectedPort=null):e instanceof Le?n._ctrlKeyIsPressed?-1===n._selectedNodes.indexOf(e)&&n._selectedNodes.push(e):n._selectedNodes=[e]:e instanceof Re&&!e.hasLabel()?t.globalState.onSelectionChangedObservable.notifyObservers(e.node):e instanceof Re?(n._selectedNodes=[],n._selectedFrame=null,n._selectedLink=null,n._selectedPort=e):(n._selectedNodes=[],n._selectedFrame=null,n._selectedLink=null,n._selectedPort=e.port):(n._selectedNodes=[],n._selectedLink=null,n._selectedFrame=null,n._selectedPort=null)})),t.globalState.onCandidatePortSelectedObservable.add((function(e){n._candidatePort=e})),t.globalState.onGridSizeChanged.add((function(){n.gridSize=l.DataStorage.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 u(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,"selectedPort",{get:function(){return this._selectedPort},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canvasContainer",{get:function(){return this._graphCanvas},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostCanvas",{get:function(){return this._hostCanvas},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+")",l.DataStorage.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),a=this.findNodeFromBlock(r);if(o&&a){var i=o.getPortForConnectionPoint(e),l=a.getPortForConnectionPoint(t);if(i&&l){for(var s=0,c=this._links;s<c.length;s++){var u=c[s];if(u.portA===i&&u.portB===l)return;if(u.portA===l&&u.portB===i)return}var p=new Ae(this,i,o,l,a);this._links.push(p),o.links.push(p),a.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 Le(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 je.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)})),a=e._frames.filter((function(e){return e.nodes.some((function(e){return e.block===r.ownerBlock}))})),i=o.length>0?o[0].id:n.id,l=a.length>0?a[0].id:r.ownerBlock.uniqueId;t.setEdge(i.toString(),l.toString())}))}))})),je.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 a=0,i=e._nodes;a<i.length;a++){var l=i[a];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=l.DataStorage.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,this._candidateLink.update(this._dropPointX,this._dropPointY,!0),void(this._candidateLinkedHasMoved=!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 a=this.zoom;this.zoom=Math.max(Math.min(this.MaxZoom,this.zoom+o/100),this.MinZoom);var i=e.currentTarget.getBoundingClientRect(),s=i.width,c=s*this.zoom-s*a,u=(e.clientX-i.left-this.x)/a/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 Ae(this,n,n.node),this._candidateLinkedHasMoved=!1}}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){if(this._candidateLinkedHasMoved)this.processCandidatePort(),this.props.globalState.onCandidateLinkMoved.notifyObservers(null);else if(this._candidateLink.portA instanceof Ue){var t=this._candidateLink.portA,n=this.frames.find((function(e){return e.id===t.parentFrameId}));if(n){var r={frame:n,port:t};this.props.globalState.onSelectionChangedObservable.notifyObservers(r)}}else this._candidateLink.portA instanceof Re&&this.props.globalState.onSelectionChangedObservable.notifyObservers(this._candidateLink.portA);this._candidateLink.dispose(),this._candidateLink=null,this._candidatePort=null}if(this._selectionBox&&(this._selectionBox.parentElement.removeChild(this._selectionBox),this._selectionBox=null),this._frameCandidate){var o=new Ve(this._frameCandidate,this);this._frames.push(o),this._frameCandidate.parentElement.removeChild(this._frameCandidate),this._frameCandidate=null,this.props.globalState.onSelectionChangedObservable.notifyObservers(o)}},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,a=r.height,i=o*this.zoom-o*n,l=a*this.zoom-a*n,s=e.clientX-r.left,c=e.clientY-r.top,u=(s-this.x)/n/o,p=(c-this.y)/n/a;this.x=this.x-i*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,a=r<o?r:o;this.zoom=a,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="output",a=void 0,i=this._candidateLink.portA.connectionPoint.createCustomInputBlock();i?(a=i[0],o=i[1]):a=new l.InputBlock(l.NodeMaterialBlockConnectionPointTypes[this._candidateLink.portA.connectionPoint.type],void 0,this._candidateLink.portA.connectionPoint.type),this.props.globalState.nodeMaterial.attachedBlocks.push(a),e=a[o],(t=this.appendBlock(a)).x=this._dropPointX-200,t.y=this._dropPointY-50}if(e.direction===l.NodeMaterialConnectionPointDirection.Input){var s=n;n=e,e=s;var c=t;t=r,r=c}if(n.connectedPoint!==e&&n!==e&&n.direction!==e.direction&&n.ownerBlock!==e.ownerBlock){var u="FragmentOutputBlock"===n.ownerBlock.getClassName(),p=e.checkCompatibilityState(n);if(!e.needDualDirectionValidation&&!n.needDualDirectionValidation||p!==l.NodeMaterialConnectionPointCompatibilityStates.Compatible||e instanceof l.InputBlock||(p=n.checkCompatibilityState(e)),p===l.NodeMaterialConnectionPointCompatibilityStates.Compatible){if(u){var d=n.ownerBlock;"rgb"===n.name&&d.rgba.isConnected?r.getLinksForConnectionPoint(d.rgba)[0].dispose():"rgba"===n.name&&d.rgb.isConnected&&r.getLinksForConnectionPoint(d.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 f="";switch(p){case l.NodeMaterialConnectionPointCompatibilityStates.TypeIncompatible:f="Cannot connect two different connection types";break;case l.NodeMaterialConnectionPointCompatibilityStates.TargetIncompatible:f="Source block can only work in fragment shader whereas destination block is currently aimed for the vertex shader"}this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers(f)}}},t.prototype.processEditorData=function(e){for(var t=0,n=this._frames.splice(0);t<n.length;t++){(i=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 a=o[r],i=Ve.Parse(a,this,e.map);this._frames.push(i)}},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),Ue=function(e){function t(t,n,r,o,a,i,s){var c=e.call(this,t,n,r,o)||this;return c.connectionPoint=n,c.node=r,c._onFramePortPositionChangedObservable=new l.Observable,c._parentFrameId=s,c._isInput=a,c._framePortId=i,c._onSelectionChangedObserver=c._globalState.onSelectionChangedObservable.add((function(e){Fe(e)&&e.port===c?c._img.classList.add("selected"):c._img.classList.remove("selected")})),c.refresh(),c}return u(t,e),Object.defineProperty(t.prototype,"parentFrameId",{get:function(){return this._parentFrameId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onFramePortPositionChangedObservable",{get:function(){return this._onFramePortPositionChangedObservable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isInput",{get:function(){return this._isInput},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"framePortId",{get:function(){return this._framePortId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"framePortPosition",{get:function(){return this._framePortPosition},set:function(e){this._framePortPosition=e,this.onFramePortPositionChangedObservable.notifyObservers(this)},enumerable:!0,configurable:!0}),t.CreateFrameNodePortElement=function(e,n,r,o,a,i,l,s){var c=r.ownerDocument.createElement("div"),u=e.ownerBlock;if(c.classList.add("portLine"),null!==l&&(c.dataset.framePortId=""+l),r.appendChild(c),!o||o.shouldDisplayPortLabels(u)){var p=r.ownerDocument.createElement("div");p.classList.add("port-label");var d=e.displayName||e.name;e.ownerBlock.isInput&&(d=n.name),p.innerHTML=d,c.appendChild(p)}return new t(c,e,n,a,i,l,s)},t}(Re);!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left",e[e.Top=2]="Top",e[e.Bottom=3]="Bottom",e[e.TopRight=4]="TopRight",e[e.TopLeft=5]="TopLeft",e[e.BottomRight=6]="BottomRight",e[e.BottomLeft=7]="BottomLeft"}(Ie||(Ie={})),function(e){e[e.Top=0]="Top",e[e.Middle=1]="Middle",e[e.Bottom=2]="Bottom"}(De||(De={}));var Ve=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._onNodeLinkDisposedObservers=[],this._isCollapsed=!1,this._frameInPorts=[],this._frameOutPorts=[],this._controlledPorts=[],this._minFrameHeight=40,this._minFrameWidth=220,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.initResizing=function(e){e.stopPropagation(),o._mouseStartPointX=e.clientX,o._mouseStartPointY=e.clientY,o._frameIsResizing=!0},this.cleanUpResizing=function(e){e.stopPropagation(),o._frameIsResizing=!1,o._resizingDirection=null,o._mouseStartPointX=null,o._mouseStartPointY=null,o.mouseXLimit=null,o.refresh()},this.updateMinHeightWithComments=function(){if(o.comments&&o.comments.length>0){var e=o._commentsElement.offsetHeight+40;o._minFrameHeight=e}},this._onRightHandlePointerDown=function(e){var t=o;t.isCollapsed||(o.initResizing(e),t._resizingDirection=Ie.Right,t.mouseXLimit=e.clientX-(t.width-t._minFrameWidth),t._ownerCanvas.hostCanvas.addEventListener("pointerup",t._onRightHandlePointerUp),t._ownerCanvas.hostCanvas.addEventListener("pointermove",t._onRightHandlePointerMove))},this._onRightHandlePointerMove=function(e){var t=(o.element.offsetWidth-o._minFrameWidth)*o._ownerCanvas.zoom,n=o._mouseStartPointX-t;o._moveRightHandle(e,n)},this._moveRightHandle=function(e,t){var n=o;if(n.mouseXLimit){if(!n._isResizingRight()||null===n._mouseStartPointX||null===n._mouseStartPointY||e.clientX<t)return;if(n._isResizingRight()){e.stopPropagation();var r=(e.clientX-n._mouseStartPointX)/n._ownerCanvas.zoom;n._expandRight(r,e.clientX),n._mouseStartPointX=e.clientX}}},this._onRightHandlePointerUp=function(e){var t=o;t._isResizingRight()&&(t.width=parseFloat(t.element.style.width.replace("px","")),t._ownerCanvas.hostCanvas.removeEventListener("pointerup",t._onRightHandlePointerUp),t._ownerCanvas.hostCanvas.removeEventListener("pointermove",t._onRightHandlePointerMove),t.cleanUpResizing(e))},this._onBottomHandlePointerDown=function(e){var t=o;t.isCollapsed||(t.initResizing(e),t._resizingDirection=Ie.Bottom,t._ownerCanvas.hostCanvas.addEventListener("pointermove",t._onBottomHandlePointerMove),t._ownerCanvas.hostCanvas.addEventListener("pointerup",t._onBottomHandlePointerUp))},this._onBottomHandlePointerMove=function(e){var t=(o.element.offsetHeight-o._minFrameHeight)*o._ownerCanvas.zoom,n=o._mouseStartPointY-t;o._moveBottomHandle(e,n)},this._moveBottomHandle=function(e,t){var n=o;if(!(n._resizingDirection!==Ie.Bottom||null===n._mouseStartPointX||null===n._mouseStartPointY||e.clientY<t)&&n._resizingDirection===Ie.Bottom){e.stopPropagation();var r=(e.clientY-n._mouseStartPointY)/n._ownerCanvas.zoom;n._expandBottom(r),n._mouseStartPointY=e.clientY}},this._onBottomHandlePointerUp=function(e){var t=o;t._resizingDirection===Ie.Bottom&&(t.height=parseFloat(t.element.style.height.replace("px","")),t._ownerCanvas.hostCanvas.removeEventListener("pointermove",t._onBottomHandlePointerMove),t._ownerCanvas.hostCanvas.removeEventListener("pointerup",t._onBottomHandlePointerUp),t.cleanUpResizing(e))},this._onLeftHandlePointerDown=function(e){var t=o;t.isCollapsed||(t.initResizing(e),t._resizingDirection=Ie.Left,t.mouseXLimit=e.clientX+t.width-t._minFrameWidth,t._ownerCanvas.hostCanvas.addEventListener("pointerup",t._onLeftHandlePointerUp),t._ownerCanvas.hostCanvas.addEventListener("pointermove",t._onLeftHandlePointerMove))},this._onLeftHandlePointerMove=function(e){var t=(o.element.offsetWidth-o._minFrameWidth)*o._ownerCanvas.zoom,n=o._mouseStartPointX+t;o._moveLeftHandle(e,n)},this._moveLeftHandle=function(e,t){var n=o;if(n.mouseXLimit){if(n._resizingDirection!==Ie.Left||null===n._mouseStartPointX||null===n._mouseStartPointY||e.clientX>t)return;if(n._resizingDirection===Ie.Left){e.stopPropagation();var r=(e.clientX-n._mouseStartPointX)/n._ownerCanvas.zoom;n._expandLeft(r),n._mouseStartPointX=e.clientX}}},this._onLeftHandlePointerUp=function(e){var t=o;t._resizingDirection===Ie.Left&&(t.x=parseFloat(t.element.style.left.replace("px","")),t.width=parseFloat(t.element.style.width.replace("px","")),t._ownerCanvas.hostCanvas.removeEventListener("pointerup",t._onLeftHandlePointerUp),t._ownerCanvas.hostCanvas.removeEventListener("pointermove",t._onLeftHandlePointerMove),t.cleanUpResizing(e))},this._onTopHandlePointerDown=function(e){var t=o;t.isCollapsed||(t.initResizing(e),t._resizingDirection=Ie.Top,t._ownerCanvas.hostCanvas.addEventListener("pointerup",t._onTopHandlePointerUp),t._ownerCanvas.hostCanvas.addEventListener("pointermove",t._onTopHandlePointerMove))},this._onTopHandlePointerMove=function(e){var t=(o.element.offsetHeight-o._minFrameHeight)*o._ownerCanvas.zoom,n=o._mouseStartPointY+t;o._moveTopHandle(e,n)},this._moveTopHandle=function(e,t){var n=o;if(n._isResizingTop()&&null!==n._mouseStartPointX&&null!==n._mouseStartPointY&&!(e.clientY>t)&&n._isResizingTop()){e.stopPropagation();var r=(e.clientY-n._mouseStartPointY)/n._ownerCanvas.zoom;n._expandTop(r),n._mouseStartPointY=e.clientY}},this._onTopHandlePointerUp=function(e){var t=o;t._isResizingTop()&&(t.y=parseFloat(t.element.style.top.replace("px","")),t.height=parseFloat(t.element.style.height.replace("px","")),t._ownerCanvas.hostCanvas.removeEventListener("pointerup",t._onTopHandlePointerUp),t._ownerCanvas.hostCanvas.removeEventListener("pointermove",t._onTopHandlePointerMove),t.cleanUpResizing(e))},this._onTopRightHandlePointerDown=function(e){var t=o;t.isCollapsed||(t.initResizing(e),t._resizingDirection=Ie.TopRight,t._ownerCanvas.hostCanvas.addEventListener("pointerup",t._onTopRightHandlePointerUp),t._ownerCanvas.hostCanvas.addEventListener("pointermove",t._onTopRightHandlePointerMove))},this._onTopRightHandlePointerMove=function(e){var t=(o.element.offsetHeight-o._minFrameHeight)*o._ownerCanvas.zoom,n=o._mouseStartPointY+t,r=(o.element.offsetWidth-o._minFrameWidth)*o._ownerCanvas.zoom,a=o._mouseStartPointX-r;o._moveTopRightHandle(e,a,n)},this._moveTopRightHandle=function(e,t,n){var r=o;if(r._isResizingTop()&&r._isResizingRight()&&null!==r._mouseStartPointX&&null!==r._mouseStartPointY&&r._isResizingRight()&&r._isResizingTop())if(e.stopPropagation(),e.clientY<n&&e.clientX>t){var a=(e.clientX-r._mouseStartPointX)/r._ownerCanvas.zoom;r._expandRight(a,e.clientX),r._mouseStartPointX=e.clientX;var i=(e.clientY-r._mouseStartPointY)/r._ownerCanvas.zoom;r._expandTop(i),r._mouseStartPointY=e.clientY}else if(e.clientY>n&&e.clientX>t){a=(e.clientX-r._mouseStartPointX)/r._ownerCanvas.zoom;r._expandRight(a,e.clientX),r._mouseStartPointX=e.clientX}else if(e.clientY<n&&e.clientX<t){i=(e.clientY-r._mouseStartPointY)/r._ownerCanvas.zoom;r._expandTop(i),r._mouseStartPointY=e.clientY}},this._onTopRightHandlePointerUp=function(e){e.stopPropagation();var t=o;t._resizingDirection===Ie.TopRight&&(t.y=parseFloat(t.element.style.top.replace("px","")),t.height=parseFloat(t.element.style.height.replace("px","")),t.width=parseFloat(t.element.style.width.replace("px","")),t._ownerCanvas.hostCanvas.removeEventListener("pointerup",t._onTopRightHandlePointerUp),t._ownerCanvas.hostCanvas.removeEventListener("pointermove",t._onTopRightHandlePointerMove),t.cleanUpResizing(e))},this._onBottomRightHandlePointerDown=function(e){var t=o;t.isCollapsed||(t.initResizing(e),t._resizingDirection=Ie.BottomRight,t._ownerCanvas.hostCanvas.addEventListener("pointerup",t._onBottomRightHandlePointerUp),t._ownerCanvas.hostCanvas.addEventListener("pointermove",t._onBottomRightHandlePointerMove))},this._onBottomRightHandlePointerMove=function(e){var t=(o.element.offsetHeight-o._minFrameHeight)*o._ownerCanvas.zoom,n=o._mouseStartPointY-t,r=(o.element.offsetWidth-o._minFrameWidth)*o._ownerCanvas.zoom,a=o._mouseStartPointX-r;o._moveBottomRightHandle(e,a,n)},this._moveBottomRightHandle=function(e,t,n){var r=o;if(r._isResizingBottom()&&r._isResizingRight()&&null!==r._mouseStartPointX&&null!==r._mouseStartPointY&&r._isResizingRight()&&r._isResizingBottom())if(e.stopPropagation(),e.clientY>n&&e.clientX>t){var a=(e.clientX-r._mouseStartPointX)/r._ownerCanvas.zoom;r._expandRight(a,e.clientX),r._mouseStartPointX=e.clientX;var i=(e.clientY-r._mouseStartPointY)/r._ownerCanvas.zoom;r._expandBottom(i),r._mouseStartPointY=e.clientY}else if(e.clientY<n&&e.clientX>t){a=(e.clientX-r._mouseStartPointX)/r._ownerCanvas.zoom;r._expandRight(a,e.clientX),r._mouseStartPointX=e.clientX}else if(e.clientY>n&&e.clientX<t){i=(e.clientY-r._mouseStartPointY)/r._ownerCanvas.zoom;r._expandBottom(i),r._mouseStartPointY=e.clientY}},this._onBottomRightHandlePointerUp=function(e){e.stopPropagation();var t=o;t._resizingDirection===Ie.BottomRight&&(t.height=parseFloat(t.element.style.height.replace("px","")),t.width=parseFloat(t.element.style.width.replace("px","")),t._ownerCanvas.hostCanvas.removeEventListener("pointerup",t._onBottomRightHandlePointerUp),t._ownerCanvas.hostCanvas.removeEventListener("pointermove",t._onBottomRightHandlePointerMove),t.cleanUpResizing(e))},this._onBottomLeftHandlePointerDown=function(e){var t=o;t.isCollapsed||(t.initResizing(e),t._resizingDirection=Ie.BottomLeft,t.mouseXLimit=e.clientX+t.width-t._minFrameWidth,t._ownerCanvas.hostCanvas.addEventListener("pointerup",t._onBottomLeftHandlePointerUp),t._ownerCanvas.hostCanvas.addEventListener("pointermove",t._onBottomLeftHandlePointerMove))},this._onBottomLeftHandlePointerMove=function(e){var t=(o.element.offsetHeight-o._minFrameHeight)*o._ownerCanvas.zoom,n=o._mouseStartPointY-t,r=(o.element.offsetWidth-o._minFrameWidth)*o._ownerCanvas.zoom,a=o._mouseStartPointX+r;o._moveBottomLeftHandle(e,a,n)},this._moveBottomLeftHandle=function(e,t,n){var r=o;if(r._isResizingBottom()&&r._isResizingLeft()&&null!==r._mouseStartPointX&&null!==r._mouseStartPointY&&r._isResizingLeft()&&r._isResizingBottom())if(e.stopPropagation(),e.clientY>n&&e.clientX<t){var a=(e.clientX-r._mouseStartPointX)/r._ownerCanvas.zoom;r._expandLeft(a),r._mouseStartPointX=e.clientX;var i=(e.clientY-r._mouseStartPointY)/r._ownerCanvas.zoom;r._expandBottom(i),r._mouseStartPointY=e.clientY}else if(e.clientY<n&&e.clientX<t){a=(e.clientX-r._mouseStartPointX)/r._ownerCanvas.zoom;r._expandLeft(a),r._mouseStartPointX=e.clientX}else if(e.clientY>n&&e.clientX>t){i=(e.clientY-r._mouseStartPointY)/r._ownerCanvas.zoom;r._expandBottom(i),r._mouseStartPointY=e.clientY}},this._onBottomLeftHandlePointerUp=function(e){e.stopPropagation();var t=o;t._resizingDirection===Ie.BottomLeft&&(t.height=parseFloat(t.element.style.height.replace("px","")),t.x=parseFloat(t.element.style.left.replace("px","")),t.width=parseFloat(t.element.style.width.replace("px","")),t._ownerCanvas.hostCanvas.removeEventListener("pointerup",t._onBottomLeftHandlePointerUp),t._ownerCanvas.hostCanvas.removeEventListener("pointermove",t._onBottomLeftHandlePointerMove),t.cleanUpResizing(e))},this._onTopLeftHandlePointerDown=function(e){var t=o;t.isCollapsed||(t.initResizing(e),t._resizingDirection=Ie.TopLeft,t.mouseXLimit=e.clientX+t.width-t._minFrameWidth,t._ownerCanvas.hostCanvas.addEventListener("pointerup",t._onTopLeftHandlePointerUp),t._ownerCanvas.hostCanvas.addEventListener("pointermove",t._onTopLeftHandlePointerMove))},this._onTopLeftHandlePointerMove=function(e){var t=(o.element.offsetHeight-o._minFrameHeight)*o._ownerCanvas.zoom,n=o._mouseStartPointY+t,r=(o.element.offsetWidth-o._minFrameWidth)*o._ownerCanvas.zoom,a=o._mouseStartPointX+r;o._moveTopLeftHandle(e,a,n)},this._moveTopLeftHandle=function(e,t,n){var r=o;if(r._isResizingTop()&&r._isResizingLeft()&&null!==r._mouseStartPointX&&null!==r._mouseStartPointY&&r._isResizingLeft()&&r._isResizingTop())if(e.stopPropagation(),e.clientY<n&&e.clientX<t){var a=(e.clientX-r._mouseStartPointX)/r._ownerCanvas.zoom;r._expandLeft(a),r._mouseStartPointX=e.clientX;var i=(e.clientY-r._mouseStartPointY)/r._ownerCanvas.zoom;r._expandTop(i),r._mouseStartPointY=e.clientY}else if(e.clientY>n&&e.clientX<t){a=(e.clientX-r._mouseStartPointX)/r._ownerCanvas.zoom;r._expandLeft(a),r._mouseStartPointX=e.clientX}else if(e.clientY<n&&e.clientX>t){i=(e.clientY-r._mouseStartPointY)/r._ownerCanvas.zoom;r._expandTop(i),r._mouseStartPointY=e.clientY}},this._onTopLeftHandlePointerUp=function(e){e.stopPropagation();var t=o;t._resizingDirection===Ie.TopLeft&&(t.y=parseFloat(t.element.style.top.replace("px","")),t.height=parseFloat(t.element.style.height.replace("px","")),t.x=parseFloat(t.element.style.left.replace("px","")),t.width=parseFloat(t.element.style.width.replace("px","")),t._ownerCanvas.hostCanvas.removeEventListener("pointerup",t._onTopLeftHandlePointerUp),t._ownerCanvas.hostCanvas.removeEventListener("pointermove",t._onTopLeftHandlePointerMove),t.cleanUpResizing(e))},this._id=e._FrameCounter++,this._ownerCanvas=n;var a=n.frameContainer;this.element=a.ownerDocument.createElement("div"),this.element.classList.add("frame-box"),a.appendChild(this.element),this._headerElement=a.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=a.ownerDocument.createElement("div"),this._borderElement.classList.add("frame-box-border"),this.element.appendChild(this._borderElement);var i=a.ownerDocument.createElement("div");i.className="handle right-handle",this.element.appendChild(i),i.addEventListener("pointerdown",this._onRightHandlePointerDown);var s=a.ownerDocument.createElement("div");s.className="handle left-handle",this.element.appendChild(s),s.addEventListener("pointerdown",this._onLeftHandlePointerDown);var c=a.ownerDocument.createElement("div");c.className="handle bottom-handle",this.element.appendChild(c),c.addEventListener("pointerdown",this._onBottomHandlePointerDown);var u=a.ownerDocument.createElement("div");u.className="handle top-handle",this.element.appendChild(u),u.addEventListener("pointerdown",this._onTopHandlePointerDown);var p=a.ownerDocument.createElement("div");p.className="handle right-handle top-right-corner-handle",this.element.appendChild(p),p.addEventListener("pointerdown",this._onTopRightHandlePointerDown);var d=a.ownerDocument.createElement("div");d.className="handle right-handle bottom-right-corner-handle",this.element.appendChild(d),d.addEventListener("pointerdown",this._onBottomRightHandlePointerDown);var f=a.ownerDocument.createElement("div");f.className="handle left-handle top-left-corner-handle",this.element.appendChild(f),f.addEventListener("pointerdown",this._onTopLeftHandlePointerDown);var h=a.ownerDocument.createElement("div");h.className="handle left-handle bottom-left-corner-handle",this.element.appendChild(h),h.addEventListener("pointerdown",this._onBottomLeftHandlePointerDown),this._headerTextElement=a.ownerDocument.createElement("div"),this._headerTextElement.classList.add("frame-box-header-title"),this._headerElement.appendChild(this._headerTextElement),this._headerCollapseElement=a.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=a.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=a.ownerDocument.createElement("div"),this._portContainer.classList.add("port-container"),this.element.appendChild(this._portContainer),this._outputPortContainer=a.ownerDocument.createElement("div"),this._outputPortContainer.classList.add("outputsContainer"),this._portContainer.appendChild(this._outputPortContainer),this._inputPortContainer=a.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._onGraphNodeRemovalObserver=n.globalState.onGraphNodeRemovalObservable.add((function(e){var t=o._nodes.indexOf(e);-1!==t&&o._nodes.splice(t,1)})),this._onExposePortOnFrameObserver=n.globalState.onExposePortOnFrameObservable.add((function(e){-1!==o.nodes.indexOf(e)&&o._redrawFramePorts()})),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),this._createFramePorts(),this._markFramePortPositions();else{this.element.classList.remove("collapsed"),this._outputPortContainer.innerHTML="",this._inputPortContainer.innerHTML="",this._frameInPorts.forEach((function(e){e.dispose()})),this._frameOutPorts.forEach((function(e){e.dispose()})),this._controlledPorts.forEach((function(e){e.delegatedPort=null,e.refresh()})),this._frameInPorts=[],this._frameOutPorts=[],this._controlledPorts=[],this._onNodeLinkDisposedObservers=[];for(var t=0,n=this._nodes;t<n.length;t++){n[t].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(t,n){var r=Ue.CreateFrameNodePortElement(t.connectionPoint,n,this._inputPortContainer,null,this._ownerCanvas.globalState,!0,e._FramePortCounter++,this.id);this._frameInPorts.push(r),t.delegatedPort=r,this._controlledPorts.push(t)},e.prototype._markFramePortPositions=function(){if(2==this._frameInPorts.length)this._frameInPorts[0].framePortPosition=De.Top,this._frameInPorts[1].framePortPosition=De.Bottom;else for(var e=0;e<this._frameInPorts.length;e++){var t=this._frameInPorts[e];0===e?t.framePortPosition=De.Top:e===this._frameInPorts.length-1?t.framePortPosition=De.Bottom:t.framePortPosition=De.Middle}if(2==this._frameOutPorts.length)this._frameOutPorts[0].framePortPosition=De.Top,this._frameOutPorts[1].framePortPosition=De.Bottom;else for(e=0;e<this._frameOutPorts.length;e++){t=this._frameOutPorts[e];0===e?t.framePortPosition=De.Top:e===this._frameInPorts.length-1?t.framePortPosition=De.Bottom:t.framePortPosition=De.Middle}},e.prototype._createFramePorts=function(){for(var t=this,n=0,r=this._nodes;n<r.length;n++){var o=r[n];o.isVisible=!1;for(var a=0,i=o.outputPorts;a<i.length;a++){if((h=i[a]).connectionPoint.hasEndpoints)for(var l=!1,s=0,c=o.links;s<c.length;s++){if((v=c[s]).portA===h&&-1===this.nodes.indexOf(v.nodeB)||v.portA===h&&h.exposedOnFrame){var u=void 0;if(l)-1===this.nodes.indexOf(v.nodeB)?(v.isVisible=!0,u=this.ports.filter((function(e){return e.connectionPoint===h.connectionPoint}))[0]):u=this.ports.filter((function(e){return e.connectionPoint===h.connectionPoint}))[0];else{l=!0,u=Ue.CreateFrameNodePortElement(h.connectionPoint,v.nodeA,this._outputPortContainer,null,this._ownerCanvas.globalState,!1,e._FramePortCounter++,this.id),this._frameOutPorts.push(u),v.isVisible=!0;var p=v.onDisposedObservable.add((function(e){t._redrawFramePorts()}));this._onNodeLinkDisposedObservers.push(p)}h.delegatedPort=u,this._controlledPorts.push(h)}}else if(h.exposedOnFrame){u=Ue.CreateFrameNodePortElement(h.connectionPoint,o,this._outputPortContainer,null,this._ownerCanvas.globalState,!1,e._FramePortCounter++,this.id);this._frameOutPorts.push(u),h.delegatedPort=u,this._controlledPorts.push(h)}}for(var d=0,f=o.inputPorts;d<f.length;d++){var h;if((h=f[d]).connectionPoint.isConnected)for(var g=0,m=o.links;g<m.length;g++){var v;if((v=m[g]).portB===h&&-1===this.nodes.indexOf(v.nodeA)){this._createInputPort(h,o),v.isVisible=!0;p=v.onDisposedObservable.add((function(e){t._redrawFramePorts()}));this._onNodeLinkDisposedObservers.push(p)}}else h.exposedOnFrame&&this._createInputPort(h,o)}}},e.prototype._redrawFramePorts=function(){this.isCollapsed&&(this._outputPortContainer.innerHTML="",this._inputPortContainer.innerHTML="",this.ports.forEach((function(e){e.dispose()})),this._controlledPorts.forEach((function(e){e.delegatedPort=null,e.refresh()})),this._frameInPorts=[],this._frameOutPorts=[],this._controlledPorts=[],this._createFramePorts(),this.ports.forEach((function(e){return e.node._refreshLinks()})))},Object.defineProperty(e.prototype,"nodes",{get:function(){return this._nodes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ports",{get:function(){return this._frameInPorts.concat(this._frameOutPorts)},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){var t=e>this._minFrameWidth?e:this._minFrameWidth;this._width=t;var n=this._ownerCanvas.getGridPositionCeil(t+this._gridAlignedX);this.element.style.width=n-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&&!this._comments&&e.length>0?(this.element.style.gridTemplateRows="40px min-content 1fr",this._borderElement.style.gridRow="1 / span 3",this._portContainer.style.gridRow="3",this._commentsElement.classList.add("has-comments")):e||(this.element.style.gridTemplateRows="40px calc(100% - 40px)",this._borderElement.style.gridRow="1 / span 2",this._portContainer.style.gridRow="2",this._commentsElement.classList.remove("has-comments")),(""===e||e&&e.length>=0)&&(this._commentsElement.innerText=e),this.height=this._borderElement.offsetHeight,this._comments=e,this.updateMinHeightWithComments()},enumerable:!0,configurable:!0}),e.prototype.refresh=function(){this._nodes=[],this._ownerCanvas.globalState.onFrameCreatedObservable.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 a=0,i=this._nodes;a<i.length;a++){var l=i[a];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&&!this._frameIsResizing){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.moveFramePortUp=function(e){var t;if(e.isInput){if(this._inputPortContainer.children.length<2)return;t=Array.from(this._inputPortContainer.childNodes),this._movePortUp(t,e,this._frameInPorts)}else{if(this._outputPortContainer.children.length<2)return;t=Array.from(this._outputPortContainer.childNodes),this._movePortUp(t,e,this._frameOutPorts)}this.ports.forEach((function(e){return e.node._refreshLinks()}))},e.prototype._movePortUp=function(e,t,n){var r,o,a=e.findIndex((function(e){return e.dataset.framePortId===""+t.framePortId}));if(0!==a){var i=e[a],l=e[a-1];null===(o=l.parentElement)||void 0===o||o.insertBefore(i,l);var s=n.findIndex((function(e){return e===t}));r=[n[s],n[s-1]],n[s-1]=r[0],n[s]=r[1],2==n.length?(n[1].framePortPosition=De.Bottom,n[0].framePortPosition=De.Top):1===a?(n[1].framePortPosition=De.Middle,n[0].framePortPosition=De.Top):s===e.length-1?(n[n.length-1].framePortPosition=De.Bottom,n[n.length-2].framePortPosition=De.Middle):t.framePortPosition=De.Middle}},e.prototype.moveFramePortDown=function(e){var t;if(e.isInput){if(this._inputPortContainer.children.length<2)return;t=Array.from(this._inputPortContainer.childNodes),this._movePortDown(t,e,this._frameInPorts)}else{if(this._outputPortContainer.children.length<2)return;t=Array.from(this._outputPortContainer.childNodes),this._movePortDown(t,e,this._frameOutPorts)}this.ports.forEach((function(e){return e.node._refreshLinks()}))},e.prototype._movePortDown=function(e,t,n){var r,o,a=e.findIndex((function(e){return e.dataset.framePortId===""+t.framePortId}));if(a!==e.length-1){var i=e[a],l=e[a+1];null===(o=i.parentElement)||void 0===o||o.insertBefore(l,i);var s=n.findIndex((function(e){return e===t}));r=[n[s+1],n[s]],n[s]=r[0],n[s+1]=r[1],2==n.length?(n[0].framePortPosition=De.Top,n[1].framePortPosition=De.Bottom):s===e.length-2?(n[e.length-2].framePortPosition=De.Middle,n[e.length-1].framePortPosition=De.Bottom):0===s?(n[0].framePortPosition=De.Top,n[1].framePortPosition=De.Middle):t.framePortPosition=De.Middle}},e.prototype._isResizingTop=function(){return this._resizingDirection===Ie.Top||this._resizingDirection===Ie.TopRight||this._resizingDirection===Ie.TopLeft},e.prototype._isResizingRight=function(){return this._resizingDirection===Ie.Right||this._resizingDirection===Ie.TopRight||this._resizingDirection===Ie.BottomRight},e.prototype._isResizingBottom=function(){return this._resizingDirection===Ie.Bottom||this._resizingDirection===Ie.BottomLeft||this._resizingDirection===Ie.BottomRight},e.prototype._isResizingLeft=function(){return this._resizingDirection===Ie.Left||this._resizingDirection===Ie.TopLeft||this._resizingDirection===Ie.BottomLeft},e.prototype._expandLeft=function(e){var t=parseFloat(this.element.style.width.replace("px","")),n=parseFloat(this.element.style.left.replace("px",""));this.element.style.width=t-e+"px",this.element.style.left=n+e+"px",this.updateMinHeightWithComments()},e.prototype._expandTop=function(e){var t=parseFloat(this.element.style.height.replace("px","")),n=parseFloat(this.element.style.top.replace("px",""));this.element.style.height=t-e+"px",this.element.style.top=n+e+"px"},e.prototype._expandRight=function(e,t){var n=parseFloat(this.element.style.width.replace("px",""));n+e>20&&(this._mouseStartPointX=t,this.element.style.width=n+e+"px"),this.updateMinHeightWithComments()},e.prototype._expandBottom=function(e){var t=parseFloat(this.element.style.height.replace("px",""));this.element.style.height=t+e+"px"},e.prototype.dispose=function(){this.isCollapsed=!1,this._onSelectionChangedObserver&&this._ownerCanvas.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver),this._onGraphNodeRemovalObserver&&this._ownerCanvas.globalState.onGraphNodeRemovalObservable.remove(this._onGraphNodeRemovalObserver),this._onExposePortOnFrameObserver&&this._ownerCanvas.globalState.onExposePortOnFrameObservable.remove(this._onExposePortOnFrameObserver),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=I.Serialize(e.nodeMaterial,e,this.nodes.map((function(e){return e.block})));j.DownloadAsFile(e.hostDocument,t,this._name+".json")},e.Parse=function(t,n,r){var o=new e(null,n,!0),a=!!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 i=function(){var e=r[u],t=n.nodes.filter((function(t){return t.block.uniqueId===e}));t.length&&(o.nodes.push(t[0]),t[0].enclosingFrameId=o.id)},s=0,c=t.blocks;s<c.length;s++){var u=c[s];i()}else o.refresh();if(o.isCollapsed=a,a){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._FramePortCounter=0,e}(),He=function(e){function t(t){return e.call(this,t)||this}return u(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(M,{title:"GENERAL"},o.createElement(re,{globalState:this.props.globalState,label:"Name",propertyName:"name",target:this.props.frame}),o.createElement(q,{globalState:this.props.globalState,label:"Color",target:this.props.frame,propertyName:"color"}),o.createElement(re,{globalState:this.props.globalState,label:"Comments",propertyName:"comments",target:this.props.frame}),!this.props.frame.isCollapsed&&o.createElement(L,{label:"Collapse",onClick:function(){e.props.frame.isCollapsed=!0}}),this.props.frame.isCollapsed&&o.createElement(L,{label:"Expand",onClick:function(){e.props.frame.isCollapsed=!1}}))))},t}(o.Component),We=function(e){function t(t){var n=e.call(this,t)||this;n.state={port:n.props.frameNodePort};var r=n;return n._onSelectionChangedObserver=n.props.globalState.onSelectionChangedObservable.add((function(e){Fe(e)&&(e.port.onFramePortPositionChangedObservable.clear(),r._onFramePortPositionChangedObserver=e.port.onFramePortPositionChangedObservable.add((function(e){r.setState({port:e})})),r.setState({port:e.port}))})),n._onFramePortPositionChangedObserver=n.props.frameNodePort.onFramePortPositionChangedObservable.add((function(e){r.setState({port:e})})),n}return u(t,e),t.prototype.componentWillUnmount=function(){this.props.frameNodePort.onFramePortPositionChangedObservable.remove(this._onFramePortPositionChangedObserver),this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver)},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(M,{title:"GENERAL"},o.createElement(re,{globalState:this.props.globalState,label:"Port Name",propertyName:"portName",target:this.props.frameNodePort}),this.props.frameNodePort.framePortPosition!==De.Top&&o.createElement(L,{label:"Move Port Up",onClick:function(){e.props.frame.moveFramePortUp(e.props.frameNodePort)}}),this.props.frameNodePort.framePortPosition!==De.Bottom&&o.createElement(L,{label:"Move Port Down",onClick:function(){e.props.frame.moveFramePortDown(e.props.frameNodePort)}}))))},t}(o.Component),Xe=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.componentWillUnmount=function(){this.props.globalState.onSelectionChangedObservable.remove(this._onSelectionChangedObserver)},t.prototype.toggleExposeOnFrame=function(e){this.props.nodePort.exposedOnFrame=e,this.props.globalState.onExposePortOnFrameObservable.notifyObservers(this.props.nodePort.node)},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(M,{title:"GENERAL"},this.props.nodePort.hasLabel()&&o.createElement(re,{globalState:this.props.globalState,label:"Port Label",propertyName:"portName",target:this.props.nodePort}),void 0!==this.props.nodePort.node.enclosingFrameId&&o.createElement(D,{label:"Expose Port on Frame",target:this.props.nodePort,isSelected:function(){return e.props.nodePort.exposedOnFrame},onSelect:function(t){return e.toggleExposeOnFrame(t)},propertyName:"exposedOnFrame",disabled:this.props.nodePort.disabled}))))},t}(o.Component);n(380);var Ye=function(e){function t(t){var n=e.call(this,t)||this;return n.state={currentNode:null,currentFrame:null,currentFrameNodePort:null,currentNodePort:null},n._modeSelect=o.createRef(),n}return u(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.globalState.onSelectionChangedObservable.add((function(t){t instanceof Le?e.setState({currentNode:t,currentFrame:null,currentFrameNodePort:null,currentNodePort:null}):t instanceof Ve?e.setState({currentNode:null,currentFrame:t,currentFrameNodePort:null,currentNodePort:null}):Fe(t)?e.setState({currentNode:null,currentFrame:t.frame,currentFrameNodePort:t.port,currentNodePort:null}):t instanceof Re&&t.hasLabel()?e.setState({currentNode:null,currentFrame:null,currentFrameNodePort:null,currentNodePort:t}):e.setState({currentNode:null,currentFrame:null,currentFrameNodePort:null,currentNodePort:null})})),this._onBuiltObserver=this.props.globalState.onBuiltObservable.add((function(){e.forceUpdate()}))},t.prototype.componentWillUnmount=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(D,{key:e.uniqueId,label:e.name,target:e,propertyName:"value",onValueChanged:function(){t.processInputBlockUpdate(e)}}),!e.isBoolean&&n&&o.createElement(F,{globalState:this.props.globalState,key:e.uniqueId,label:e.name,target:e,propertyName:"value",onChange:function(){return t.processInputBlockUpdate(e)}}),!e.isBoolean&&!n&&o.createElement(U,{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(q,{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(ce,{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(H,{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(Q,{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($,{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");I.Deserialize(JSON.parse(n.decode(e)),t.props.globalState),t.changeMode(t.props.globalState.nodeMaterial.mode,!0,!1)||t.props.globalState.onResetRequiredObservable.notifyObservers(),t.props.globalState.onSelectionChangedObservable.notifyObservers(null)}),void 0,!0)},t.prototype.save=function(){var e=I.Serialize(this.props.globalState.nodeMaterial,this.props.globalState);j.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(I.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.saveToSnippetServer=function(){var e=this,t=this.props.globalState.nodeMaterial,n=new XMLHttpRequest,r=I.Serialize(t,this.props.globalState);n.onreadystatechange=function(){if(4==n.readyState)if(200==n.status){var r=JSON.parse(n.responseText),a=t.snippetId;t.snippetId=r.id,r.version&&"0"!=r.version&&(t.snippetId+="#"+r.version),e.forceUpdate(),navigator.clipboard&&navigator.clipboard.writeText(t.snippetId);var i=window;i.Playground&&a&&i.Playground.onRequestCodeChangeObservable.notifyObservers({regex:new RegExp(a,"g"),replace:t.snippetId}),alert("NodeMaterial saved with ID: "+t.snippetId+" (please note that the id was also saved to your clipboard)")}else alert("Unable to save your node material. It may be too large ("+(o.payload.length/1024).toFixed(2)+" KB) because of embedded textures. Please reduce texture sizes or point to a specific url instead of embedding them and try again.")},n.open("POST",l.NodeMaterial.SnippetUrl+(t.snippetId?"/"+t.snippetId:""),!0),n.setRequestHeader("Content-Type","application/json");var o={payload:JSON.stringify({nodeMaterial:r}),name:"",description:"",tags:""};n.send(JSON.stringify(o))},t.prototype.loadFromSnippet=function(){var e=this,t=this.props.globalState.nodeMaterial,n=t.getScene(),r=window.prompt("Please enter the snippet ID to use");r&&(this.props.globalState.onSelectionChangedObservable.notifyObservers(null),l.NodeMaterial.ParseFromSnippetAsync(r,n,"",t).then((function(){t.build(),e.changeMode(e.props.globalState.nodeMaterial.mode,!0,!1)||e.props.globalState.onResetRequiredObservable.notifyObservers()})).catch((function(e){alert("Unable to load your node material: "+e)})))},t.prototype.changeMode=function(e,t,n){var o,a;if(void 0===t&&(t=!1),void 0===n&&(n=!0),this.props.globalState.mode===e)return!1;if(!t&&!confirm("Are your sure? You will lose your current changes (if any) if they are not saved!"))return null===(o=this._modeSelect.current)||void 0===o||o.setValue(this.props.globalState.mode),!1;if(t&&(null===(a=this._modeSelect.current)||void 0===a||a.setValue(e)),n)switch(e){case l.NodeMaterialModes.Material:this.props.globalState.nodeMaterial.setToDefault();break;case l.NodeMaterialModes.PostProcess:this.props.globalState.nodeMaterial.setToDefaultPostProcess();break;case l.NodeMaterialModes.Particle:this.props.globalState.nodeMaterial.setToDefaultParticle()}switch(e){case l.NodeMaterialModes.Material:this.props.globalState.previewType=r.Sphere;break;case l.NodeMaterialModes.Particle:this.props.globalState.previewType=r.Bubbles}return this.props.globalState.listOfCustomPreviewFiles=[],this.props.globalState.previewFile=void 0,l.DataStorage.WriteNumber("PreviewType",this.props.globalState.previewType),this.props.globalState.mode=e,this.props.globalState.onResetRequiredObservable.notifyObservers(),!0},t.prototype.render=function(){var e,t,n=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")),(null===(e=this.state.currentNode)||void 0===e?void 0:e.renderProperties())||(null===(t=this.state.currentNodePort)||void 0===t?void 0:t.node.renderProperties()));if(this.state.currentFrameNodePort&&this.state.currentFrame)return o.createElement(We,{globalState:this.props.globalState,frame:this.state.currentFrame,frameNodePort:this.state.currentFrameNodePort});if(this.state.currentNodePort)return o.createElement(Xe,{globalState:this.props.globalState,nodePort:this.state.currentNodePort});if(this.state.currentFrame)return o.createElement(He,{globalState:this.props.globalState,frame:this.state.currentFrame});var r=l.DataStorage.ReadNumber("GridSize",20),a=[{label:"Material",value:l.NodeMaterialModes.Material},{label:"Post Process",value:l.NodeMaterialModes.PostProcess},{label:"Particle",value:l.NodeMaterialModes.Particle}];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(M,{title:"GENERAL"},o.createElement(ee,{ref:this._modeSelect,label:"Mode",target:this,getSelection:function(e){return n.props.globalState.mode},options:a,onSelect:function(e){return n.changeMode(e)}}),o.createElement(oe,{label:"Version",value:l.Engine.Version}),o.createElement(oe,{label:"Help",value:"doc.babylonjs.com",underline:!0,onLink:function(){return window.open("https://doc.babylonjs.com/how_to/node_material","_blank")}}),o.createElement(L,{label:"Reset to default",onClick:function(){n.props.globalState.nodeMaterial.setToDefault(),n.props.globalState.onResetRequiredObservable.notifyObservers()}})),o.createElement(M,{title:"UI"},o.createElement(L,{label:"Zoom to fit",onClick:function(){n.props.globalState.onZoomToFitRequiredObservable.notifyObservers()}}),o.createElement(L,{label:"Reorganize",onClick:function(){n.props.globalState.onReOrganizedRequiredObservable.notifyObservers()}})),o.createElement(M,{title:"OPTIONS"},o.createElement(D,{label:"Embed textures when saving",isSelected:function(){return l.DataStorage.ReadBoolean("EmbedTextures",!0)},onSelect:function(e){l.DataStorage.WriteBoolean("EmbedTextures",e)}}),o.createElement(U,{label:"Grid size",minimum:0,maximum:100,step:5,decimalCount:0,directValue:r,onChange:function(e){l.DataStorage.WriteNumber("GridSize",e),n.props.globalState.onGridSizeChanged.notifyObservers(),n.forceUpdate()}}),o.createElement(D,{label:"Show grid",isSelected:function(){return l.DataStorage.ReadBoolean("ShowGrid",!0)},onSelect:function(e){l.DataStorage.WriteBoolean("ShowGrid",e),n.props.globalState.onGridSizeChanged.notifyObservers()}})),o.createElement(M,{title:"FILE"},o.createElement(A,{label:"Load",onClick:function(e){return n.load(e)},accept:".json"}),o.createElement(L,{label:"Save",onClick:function(){n.save()}}),o.createElement(L,{label:"Generate code",onClick:function(){j.DownloadAsFile(n.props.globalState.hostDocument,n.props.globalState.nodeMaterial.generateCode(),"code.txt")}}),o.createElement(L,{label:"Export shaders",onClick:function(){j.DownloadAsFile(n.props.globalState.hostDocument,n.props.globalState.nodeMaterial.compiledShaders,"shaders.txt")}}),this.props.globalState.customSave&&o.createElement(L,{label:this.props.globalState.customSave.label,onClick:function(){n.customSave()}})),!this.props.globalState.customSave&&o.createElement(M,{title:"SNIPPET"},this.props.globalState.nodeMaterial.snippetId&&o.createElement(oe,{label:"Snippet ID",value:this.props.globalState.nodeMaterial.snippetId}),o.createElement(L,{label:"Load from snippet server",onClick:function(){return n.loadFromSnippet()}}),o.createElement(L,{label:"Save to snippet server",onClick:function(){n.saveToSnippetServer()}})),o.createElement(M,{title:"INPUTS"},this.props.globalState.nodeMaterial.getInputBlocks().map((function(e){return e.isUniform&&!e.isSystemValue&&e.name?n.renderInputBlock(e):null})))))},t}(o.Component),Ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.render=function(){return i.createPortal(this.props.children,this.props.globalState.hostElement)},t}(o.Component);n(382);var qe=function(e,t){this.message=e,this.isError=t},Ze=function(e){function t(t){var n=e.call(this,t)||this;return n.state={logs:[]},n}return u(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=i.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,a){return o.createElement("div",{key:a,className:"log"+(e.isError?" error":"")},t+":"+n+":"+r+": "+e.message)})))},t}(o.Component),Qe=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 u(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),Ke=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(e){e&&(n._currentType=-1),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._scene.clearColor=this._globalState.backgroundColor,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._prepareScene=function(){var e=this;switch(this._camera.useFramingBehavior=this._globalState.mode===l.NodeMaterialModes.Material,this._globalState.mode){case l.NodeMaterialModes.Material:this._prepareLights();var t=this._camera.getBehaviorByName("Framing");setTimeout((function(){if(t.framingTime=0,t.elevationReturnTime=-1,e._scene.meshes.length){var n=e._scene.getWorldExtends();e._camera.lowerRadiusLimit=null,e._camera.upperRadiusLimit=null,t.zoomOnBoundingInfo(n.min,n.max)}e._camera.pinchPrecision=200/e._camera.radius,e._camera.upperRadiusLimit=5*e._camera.radius})),this._camera.wheelDeltaPercentage=.01,this._camera.pinchDeltaPercentage=.01,this._handleAnimations();break;case l.NodeMaterialModes.PostProcess:this._camera.radius=4,this._camera.upperRadiusLimit=10;break;case l.NodeMaterialModes.Particle:this._camera.radius=this._globalState.previewType===r.Explosion?50:this._globalState.previewType===r.DefaultParticleSystem?6:20,this._camera.upperRadiusLimit=5e3}var n=this._nodeMaterial.serialize();this._updatePreview(n)},e.prototype._refreshPreviewMesh=function(){var e=this;if(this._currentType!==this._globalState.previewType||this._currentType===r.Custom){if(this._currentType=this._globalState.previewType,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,a=this._scene.lights.slice(0);o<a.length;o++){a[o].dispose()}if(this._engine.releaseEffects(),this._particleSystem&&(this._particleSystem.onBeforeDrawParticlesObservable.clear(),this._particleSystem.onDisposeObservable.clear(),this._particleSystem.stop(),this._particleSystem.dispose(),this._particleSystem=null),l.SceneLoader.ShowLoadingScreen=!1,this._globalState.onIsLoadingChanged.notifyObservers(!0),this._globalState.mode===l.NodeMaterialModes.Material)switch(this._globalState.previewType){case r.Box:return void 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._prepareScene()}));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._prepareScene()}));case r.Plane:var i=l.Mesh.CreateGround("dummy-plane",2,2,128,this._scene);i.scaling.y=-1,i.rotation.x=Math.PI,this._meshes.push(i);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._prepareScene()}));case r.Custom:return void l.SceneLoader.AppendAsync("file:",this._globalState.previewFile,this._scene).then((function(){var t;(t=e._meshes).push.apply(t,e._scene.meshes),e._prepareScene()}))}else if(this._globalState.mode===l.NodeMaterialModes.Particle)switch(this._globalState.previewType){case r.DefaultParticleSystem:this._particleSystem=l.ParticleHelper.CreateDefault(new l.Vector3(0,0,0),500,this._scene),this._particleSystem.start();break;case r.Bubbles:this._particleSystem=new l.ParticleSystem("particles",4e3,this._scene),this._particleSystem.particleTexture=new l.Texture("https://assets.babylonjs.com/particles/textures/explosion/Flare.png",this._scene),this._particleSystem.minSize=.1,this._particleSystem.maxSize=1,this._particleSystem.minLifeTime=.5,this._particleSystem.maxLifeTime=5,this._particleSystem.minEmitPower=.5,this._particleSystem.maxEmitPower=3,this._particleSystem.createBoxEmitter(new l.Vector3(-1,1,-1),new l.Vector3(1,1,1),new l.Vector3(-.1,-.1,-.1),new l.Vector3(.1,.1,.1)),this._particleSystem.emitRate=100,this._particleSystem.blendMode=l.ParticleSystem.BLENDMODE_ONEONE,this._particleSystem.color1=new l.Color4(1,1,0,1),this._particleSystem.color2=new l.Color4(1,.5,0,1),this._particleSystem.gravity=new l.Vector3(0,-1,0),this._particleSystem.start();break;case r.Explosion:return void this._loadParticleSystem(this._globalState.previewType,1);case r.Fire:case r.Rain:case r.Smoke:return void this._loadParticleSystem(this._globalState.previewType);case r.Custom:return void l.FileTools.ReadFile(this._globalState.previewFile,(function(t){e._particleSystem=l.ParticleSystem.Parse(JSON.parse(t),e._scene,""),e._particleSystem.start(),e._prepareScene()}),void 0,!1,(function(e){console.log(e)}))}this._prepareScene()}},e.prototype._loadParticleSystem=function(e,t,n){var o=this;void 0===t&&(t=0),void 0===n&&(n=!0);var a="";switch(e){case r.Explosion:a="explosion";break;case r.Fire:a="fire";break;case r.Rain:a="rain";break;case r.Smoke:a="smoke"}l.ParticleHelper.CreateAsync(a,this._scene).then((function(r){for(var a=0;a<r.systems.length;++a)a==t?(o._particleSystem=r.systems[a],o._particleSystem.disposeOnStop=!0,o._particleSystem.onDisposeObservable.add((function(){o._loadParticleSystem(e,t,!1)})),o._particleSystem.start()):r.systems[a].dispose();if(n)o._prepareScene();else{var i=o._nodeMaterial.serialize();o._updatePreview(i)}}))},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);switch(n.backFaceCulling=this._globalState.backFaceCulling,n.needDepthPrePass=this._globalState.depthPrePass,this._postprocess&&(this._postprocess.dispose(this._camera),this._postprocess=null),this._globalState.mode){case l.NodeMaterialModes.PostProcess:this._globalState.onIsLoadingChanged.notifyObservers(!1),this._postprocess=n.createPostProcess(this._camera,1,l.Constants.TEXTURE_NEAREST_SAMPLINGMODE,this._engine);var r=n.getBlockByPredicate((function(e){return e instanceof l.CurrentScreenBlock}));r&&this._postprocess.onApplyObservable.add((function(e){e.setTexture("textureSampler",r.texture)})),this._material&&this._material.dispose(),this._material=n;break;case l.NodeMaterialModes.Particle:this._globalState.onIsLoadingChanged.notifyObservers(!1),this._particleSystem.onBeforeDrawParticlesObservable.clear(),this._particleSystem.onBeforeDrawParticlesObservable.add((function(e){var t=n.getBlockByPredicate((function(e){return e instanceof l.ParticleTextureBlock}));t&&t.texture&&e&&e.setTexture("diffuseSampler",t.texture)})),n.createEffectForParticles(this._particleSystem),this._material&&this._material.dispose(),this._material=n;break;default:if(this._meshes.length){var o=this._meshes.map((function(e){return t._forceCompilationAsync(n,e)}));Promise.all(o).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){this._globalState.onIsLoadingChanged.notifyObservers(!1)}},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}(),$e=n(384),Je=n(385),et=n(386),tt=n(387),nt=function(e){function t(t){var n=e.call(this,t)||this;return n.colorInputRef=o.createRef(),n.filePickerRef=o.createRef(),n._onResetRequiredObserver=n.props.globalState.onResetRequiredObservable.add((function(){n.forceUpdate()})),n}return u(t,e),t.prototype.componentWillUnmount=function(){this.props.globalState.onResetRequiredObservable.remove(this._onResetRequiredObserver)},t.prototype.changeMeshType=function(e){this.props.globalState.previewType!==e&&(this.props.globalState.previewType=e,this.props.globalState.onPreviewCommandActivated.notifyObservers(!1),l.DataStorage.WriteNumber("PreviewType",e),this.forceUpdate())},t.prototype.useCustomMesh=function(e){var t=e.target.files;if(t&&t.length){var n=t[0];this.props.globalState.previewFile=n,this.props.globalState.previewType=r.Custom,this.props.globalState.onPreviewCommandActivated.notifyObservers(!1),this.props.globalState.listOfCustomPreviewFiles=[n],this.forceUpdate()}this.filePickerRef.current&&(this.filePickerRef.current.value="")},t.prototype.onPopUp=function(){this.props.togglePreviewAreaComponent()},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);l.DataStorage.WriteNumber("BackgroundColorR",t.r),l.DataStorage.WriteNumber("BackgroundColorG",t.g),l.DataStorage.WriteNumber("BackgroundColorB",t.b);var n=l.Color4.FromColor3(t,1);this.props.globalState.backgroundColor=n,this.props.globalState.onPreviewBackgroundChanged.notifyObservers()},t.prototype.changeBackgroundClick=function(){var e;null===(e=this.colorInputRef.current)||void 0===e||e.click()},t.prototype.render=function(){var e=this,t=[{label:"Cube",value:r.Box},{label:"Cylinder",value:r.Cylinder},{label:"Plane",value:r.Plane},{label:"Shader ball",value:r.ShaderBall},{label:"Sphere",value:r.Sphere},{label:"Load...",value:r.Custom+1}],n=[{label:"Default",value:r.DefaultParticleSystem},{label:"Bubbles",value:r.Bubbles},{label:"Explosion",value:r.Explosion},{label:"Fire",value:r.Fire},{label:"Rain",value:r.Rain},{label:"Smoke",value:r.Smoke},{label:"Load...",value:r.Custom+1}];this.props.globalState.listOfCustomPreviewFiles.length>0&&(t.splice(0,0,{label:"Custom",value:r.Custom}),n.splice(0,0,{label:"Custom",value:r.Custom}));var a=this.props.globalState.mode===l.NodeMaterialModes.Particle?n:t,i=this.props.globalState.mode===l.NodeMaterialModes.Particle?".json":".gltf, .glb, .babylon, .obj";return o.createElement("div",{id:"preview-mesh-bar"},(this.props.globalState.mode===l.NodeMaterialModes.Material||this.props.globalState.mode===l.NodeMaterialModes.Particle)&&o.createElement(o.Fragment,null,o.createElement(ee,{label:"",options:a,target:this.props.globalState,propertyName:"previewType",noDirectUpdate:!0,onSelect:function(t){var n;t!==r.Custom+1?e.changeMeshType(t):null===(n=e.filePickerRef.current)||void 0===n||n.click()}}),o.createElement("div",{style:{display:"none"},title:"Preview with a custom mesh"},o.createElement("input",{ref:this.filePickerRef,id:"file-picker",type:"file",onChange:function(t){return e.useCustomMesh(t)},accept:i}))),this.props.globalState.mode===l.NodeMaterialModes.Material&&o.createElement(o.Fragment,null,o.createElement("div",{title:"Turn-table animation",onClick:function(){return e.changeAnimation()},className:"button",id:"play-button"},this.props.globalState.rotatePreview?o.createElement("img",{src:et,alt:""}):o.createElement("img",{src:tt,alt:""})),o.createElement("div",{id:"color-picker-button",title:"Background color",className:"button align",onClick:function(t){return e.changeBackgroundClick()}},o.createElement("img",{src:Je,alt:""}),o.createElement("label",{htmlFor:"color-picker",id:"color-picker-label"}),o.createElement("input",{ref:this.colorInputRef,id:"color-picker",type:"color",onChange:function(t){return e.changeBackground(t.target.value)}}))),o.createElement("div",{title:"Open preview in new window",id:"preview-new-window",onClick:function(){return e.onPopUp()},className:"button"},o.createElement("img",{src:$e,alt:""})))},t}(o.Component),rt=n(388),ot=n(389),at=n(390),it=n(391),lt=n(392),st=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isLoading:!0},n._onIsLoadingChangedObserver=n.props.globalState.onIsLoadingChanged.add((function(e){return n.setState({isLoading:e})})),n._onResetRequiredObserver=n.props.globalState.onResetRequiredObservable.add((function(){n.forceUpdate()})),n}return u(t,e),t.prototype.componentWillUnmount=function(){this.props.globalState.onIsLoadingChanged.remove(this._onIsLoadingChangedObserver),this.props.globalState.onResetRequiredObservable.remove(this._onResetRequiredObserver)},t.prototype.changeBackFaceCulling=function(e){this.props.globalState.backFaceCulling=e,l.DataStorage.WriteBoolean("BackFaceCulling",e),this.props.globalState.onBackFaceCullingChanged.notifyObservers(),this.forceUpdate()},t.prototype.changeDepthPrePass=function(e){this.props.globalState.depthPrePass=e,l.DataStorage.WriteBoolean("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...")),this.props.globalState.mode===l.NodeMaterialModes.Material&&o.createElement(o.Fragment,null,o.createElement("div",{id:"preview-config-bar"},o.createElement("div",{title:"Render without back face culling",onClick:function(){return e.changeBackFaceCulling(!e.props.globalState.backFaceCulling)},className:"button back-face"+(this.props.globalState.backFaceCulling?"":" selected")},o.createElement("img",{src:rt,alt:""})),o.createElement("div",{title:"Render with depth pre-pass",onClick:function(){return e.changeDepthPrePass(!e.props.globalState.depthPrePass)},className:"button depth-pass"+(this.props.globalState.depthPrePass?" selected":"")},o.createElement("img",{src:ot,alt:""})),o.createElement("div",{title:"Turn on/off hemispheric light",onClick:function(){e.props.globalState.hemisphericLight=!e.props.globalState.hemisphericLight,l.DataStorage.WriteBoolean("HemisphericLight",e.props.globalState.hemisphericLight),e.props.globalState.onLightUpdated.notifyObservers(),e.forceUpdate()},className:"button hemispheric-light"+(this.props.globalState.hemisphericLight?" selected":"")},o.createElement("img",{src:at,alt:""})),o.createElement("div",{title:"Turn on/off direction light #1",onClick:function(){e.props.globalState.directionalLight1=!e.props.globalState.directionalLight1,l.DataStorage.WriteBoolean("DirectionalLight1",e.props.globalState.directionalLight1),e.props.globalState.onLightUpdated.notifyObservers(),e.forceUpdate()},className:"button direction-light-1"+(this.props.globalState.directionalLight1?" selected":"")},o.createElement("img",{src:it,alt:""})),o.createElement("div",{title:"Turn on/off direction light #0",onClick:function(){e.props.globalState.directionalLight0=!e.props.globalState.directionalLight0,l.DataStorage.WriteBoolean("DirectionalLight0",e.props.globalState.directionalLight0),e.props.globalState.onLightUpdated.notifyObservers(),e.forceUpdate()},className:"button direction-light-0"+(this.props.globalState.directionalLight0?" selected":"")},o.createElement("img",{src:lt,alt:""})))))},t}(o.Component);n(393);var ct=function(e){function t(t){var n=e.call(this,t)||this;return n.NodeWidth=100,n._leftWidth=l.DataStorage.ReadNumber("LeftWidth",200),n._rightWidth=l.DataStorage.ReadNumber("RightWidth",300),n._blocks=new Array,n._copiedNodes=[],n._copiedFrame=null,n._mouseLocationX=0,n._mouseLocationY=0,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 Ke(e,n.props.globalState)},n.createPopUp=function(){var e=p({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 a={width:r,height:o,top:(n.props.globalState.hostWindow.innerHeight-r)/2+window.screenY,left:(n.props.globalState.hostWindow.innerWidth-o)/2+window.screenX},i=Object.keys(a).map((function(e){return e+"="+a[e]})).join(","),l=n.props.globalState.hostWindow.open("",e,i);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="grid",c.style.gridTemplateRows="40px auto",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 a=e.createElement("link");a.rel="stylesheet",a.href=o.href,t.head.appendChild(a),n.push(a)}else if(o.cssRules){for(var i=e.createElement("style"),l=0,s=o.cssRules;l<s.length;l++){var c=s[l];i.appendChild(e.createTextNode(c.cssText))}t.head.appendChild(i),n.push(i)}}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",t.appendChild(r);var a=o.createElement(nt,{globalState:n.props.globalState,togglePreviewAreaComponent:n.handlePopUp});i.render(a,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="grid",r.style.gridRow="2",r.style.gridTemplateRows="auto 40px",t.appendChild(r),n._previewHost=r,e.overlay||(n._previewHost.style.position="relative")}if(n._previewHost){var a=o.createElement(st,{globalState:n.props.globalState,width:200});i.render(a,n._previewHost)}},n.fixPopUpStyles=function(e){var t=e.getElementById("preview");t&&(t.style.height="auto",t.style.gridRow="1");var n=e.getElementById("preview-config-bar");n&&(n.style.gridRow="2");var r=e.getElementById("preview-new-window");r&&(r.style.display="none");var o=e.getElementById("preview-mesh-bar");o&&(o.style.gridTemplateColumns="auto 1fr 40px 40px")},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 a=o.block;n.props.globalState.nodeMaterial.removeBlock(a);var i=n._blocks.indexOf(a);i>-1&&n._blocks.splice(i,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 Ve(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 u(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 a=0,i=e.inputs;a<i.length;a++){var l;(l=i[a]).isConnected&&this._graphCanvas.connectPorts(l.connectedPoint,l)}return o},t.prototype.addValueNode=function(e){var t=xe.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 Ke(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],a=o.block,i=n[e],l=function(){var e=i.block.inputs[c],o=a.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<i.block.inputs.length;c++)l();o.refresh(),r[e]=!0}},t.prototype.pasteSelection=function(e,t,n){for(var r=null,o=[],a=0,i=e;a<i.length;a++){var l=i[a],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))}I.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(this._graphCanvas._isLoading=!0,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.showWaitScreen=function(){var e;null===(e=this.props.globalState.hostDocument.querySelector(".wait-screen"))||void 0===e||e.classList.remove("hidden")},t.prototype.hideWaitScreen=function(){var e;null===(e=this.props.globalState.hostDocument.querySelector(".wait-screen"))||void 0===e||e.classList.add("hidden")},t.prototype.reOrganize=function(e){var t=this;void 0===e&&(e=null),this.showWaitScreen(),this._graphCanvas._isLoading=!0,setTimeout((function(){if(e&&e.locations){for(var n=0,r=e.locations;n<r.length;n++)for(var o=r[n],a=0,i=t._graphCanvas.nodes;a<i.length;a++){if((c=i[a]).block&&c.block.uniqueId===o.blockId){c.x=o.x,c.y=o.y,c.cleanAccumulation();break}}t._graphCanvas.processEditorData(e)}else t._graphCanvas.distributeGraph();t._graphCanvas._isLoading=!1;for(var l=0,s=t._graphCanvas.nodes;l<s.length;l++){var c;(c=s[l])._refreshLinks()}t.hideWaitScreen()}))},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)),l.DataStorage.WriteNumber("LeftWidth",this._leftWidth)):(this._rightWidth-=n,this._rightWidth=Math.max(250,Math.min(500,this._rightWidth)),l.DataStorage.WriteNumber("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=xe.GetBlockFromString(r,this.props.globalState.nodeMaterial.getScene(),this.props.globalState.nodeMaterial);if(o.isUnique)for(var a=o.getClassName(),i=0,l=this._blocks;i<l.length;i++){var s=l[i];if(s!==o&&s.getClassName()===a)return void this.props.globalState.onErrorMessageDialogRequiredObservable.notifyObservers("You can only have one "+a+" 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(Ge,{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(R,{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(ze,{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(Ye,{globalState:this.props.globalState}),this.state.showPreviewPopUp?null:o.createElement(nt,{globalState:this.props.globalState,togglePreviewAreaComponent:this.handlePopUp}),this.state.showPreviewPopUp?null:o.createElement(st,{globalState:this.props.globalState,width:this._rightWidth})),o.createElement(Ze,{globalState:this.props.globalState})),o.createElement(Qe,{globalState:this.props.globalState}),o.createElement("div",{className:"blocker"},"Node Material Editor runs only on desktop"),o.createElement("div",{className:"wait-screen hidden"},"Processing...please wait"))},t}(o.Component),ut=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 a={width:n,height:r,top:(window.innerHeight-n)/2+window.screenY,left:(window.innerWidth-r)/2+window.screenX},i=Object.keys(a).map((function(e){return e+"="+a[e]})).join(","),l=window.open("",e,i);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"),a=0,i=r.cssRules;a<i.length;a++){var l=i[a];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}(),pt=function(){function e(){}return e.Show=function(e){this._CurrentState&&((c=ut["node-editor"])&&c.close());var t=e.hostElement;t||(t=ut.CreatePopup("BABYLON.JS NODE EDITOR","node-editor",1e3,800));var n=new s;n.nodeMaterial=e.nodeMaterial,n.mode=e.nodeMaterial.mode,n.hostElement=t,n.hostDocument=t.ownerDocument,n.customSave=e.customSave,n.hostWindow=t.ownerDocument.defaultView;var a=o.createElement(ct,{globalState:n});i.render(a,t),e.customLoadObservable&&e.customLoadObservable.add((function(e){I.Deserialize(e,n),n.onResetRequiredObservable.notifyObservers(),n.onBuiltObservable.notifyObservers()})),this._CurrentState=n;var c=ut["node-editor"];n.nodeMaterial&&c&&(n.nodeMaterial.getScene().onDisposeObservable.addOnce((function(){c&&c.close()})),window.onbeforeunload=function(){var e=ut["node-editor"];e&&e.close()}),window.addEventListener("beforeunload",(function(){l.DataStorage.ReadNumber("PreviewType",r.Box)===r.Custom&&l.DataStorage.WriteNumber("PreviewType",n.mode===l.NodeMaterialModes.Material?r.Box:r.Bubbles)}))},e}()},function(e,t,n){var r=n(37),o=n(62);e.exports=function(e,t){return e&&r(e,o(t))}},function(e,t,n){var r=n(158)();e.exports=r},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){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){(function(e){var r=n(82),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=l}).call(this,n(58)(e))},function(e,t,n){var r=n(40),o=n(163),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(21);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(22)(n(11),"Map");e.exports=r},function(e,t,n){var r=n(180),o=n(187),a=n(189),i=n(190),l=n(191);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=a,s.prototype.has=i,s.prototype.set=l,e.exports=s},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){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(94),o=n(95),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(e){return null==e?[]:(e=Object(e),r(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=l},function(e,t,n){var r=n(48),o=n(35);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[o(t[n++])];return n&&n==a?e:void 0}},function(e,t,n){var r=n(6),o=n(27),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\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))||(i.test(e)||!a.test(e)||null!=t&&e in Object(t))}},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,n){var r=n(91);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Checkboard=void 0;var r=i(n(1)),o=i(n(2)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(236));function i(e){return e&&e.__esModule?e:{default:e}}var l=t.Checkboard=function(e){var t=e.white,n=e.grey,i=e.size,l=e.renderers,s=e.borderRadius,c=e.boxShadow,u=(0,o.default)({default:{grid:{borderRadius:s,boxShadow:c,absolute:"0px 0px 0px 0px",background:"url("+a.get(t,n,i,l.canvas)+") center left"}}});return r.default.createElement("div",{style:u.grid})};l.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},t.default=l},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){e.exports=n(122)},function(e,t,n){"use strict";var r=n(10);e.exports=o;function o(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["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function a(e,t){e[t]?e[t]++:e[t]=1}function i(e,t){--e[t]||delete e[t]}function l(e,t,n,o){var a=""+t,i=""+n;if(!e&&a>i){var l=a;a=i,i=l}return a+""+i+""+(r.isUndefined(o)?"\0":o)}function s(e,t,n,r){var o=""+t,a=""+n;if(!e&&o>a){var i=o;o=a,a=i}var l={v:o,w:a};return r&&(l.name=r),l}function c(e,t){return l(e,t.v,t.w,t.name)}o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(e){return this._label=e,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return r.keys(this._nodes)},o.prototype.sources=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._in[t])}))},o.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._out[t])}))},o.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},o.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]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},o.prototype.node=function(e){return this._nodes[e]},o.prototype.hasNode=function(e){return r.has(this._nodes,e)},o.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},o.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t="\0";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},o.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},o.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if("\0"!==t)return t}},o.prototype.children=function(e){if(r.isUndefined(e)&&(e="\0"),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if("\0"===e)return this.nodes();if(this.hasNode(e))return[]}},o.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},o.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},o.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},o.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},o.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 a=n.parent(r);return void 0===a||t.hasNode(a)?(o[r]=a,a):a in o?o[a]:e(a)}(e))})),t},o.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return r.values(this._edgeObjs)},o.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},o.prototype.setEdge=function(){var e,t,n,o,i=!1,c=arguments[0];"object"==typeof c&&null!==c&&"v"in c?(e=c.v,t=c.w,n=c.name,2===arguments.length&&(o=arguments[1],i=!0)):(e=c,t=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var u=l(this._isDirected,e,t,n);if(r.has(this._edgeLabels,u))return i&&(this._edgeLabels[u]=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[u]=i?o:this._defaultEdgeLabelFn(e,t,n);var p=s(this._isDirected,e,t,n);return e=p.v,t=p.w,Object.freeze(p),this._edgeObjs[u]=p,a(this._preds[t],e),a(this._sucs[e],t),this._in[t][u]=p,this._out[e][u]=p,this._edgeCount++,this},o.prototype.edge=function(e,t,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return this._edgeLabels[r]},o.prototype.hasEdge=function(e,t,n){var o=1===arguments.length?c(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return r.has(this._edgeLabels,o)},o.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?c(this._isDirected,arguments[0]):l(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],i(this._preds[t],e),i(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},o.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}},o.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}},o.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(66),o=n(305);e.exports=function e(t,n,a,i,l){var s=-1,c=t.length;for(a||(a=o),l||(l=[]);++s<c;){var u=t[s];n>0&&a(u)?n>1?e(u,n-1,a,i,l):r(l,u):i||(l[l.length]=u)}return l}},function(e,t,n){var r=n(27);e.exports=function(e,t,n){for(var o=-1,a=e.length;++o<a;){var i=e[o],l=t(i);if(null!=l&&(void 0===s?l==l&&!r(l):n(l,s)))var s=l,c=i}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 a(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 i(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){i(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,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}n.d(t,"a",(function(){return ke})),n.d(t,"b",(function(){return Ce}));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,g=u,m=p,v=d,b=(g.document,!!m.documentElement&&!!m.head&&"function"==typeof m.addEventListener&&"function"==typeof m.createElement),y=(~h.indexOf("MSIE")||h.indexOf("Trident/"),function(){try{}catch(e){return!1}}(),[1,2,3,4,5,6,7,8,9,10]),x=y.concat([11,12,13,14,15,16,17,18,19,20]),w={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},_=(["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",w.GROUP,w.SWAP_OPACITY,w.PRIMARY,w.SECONDARY].concat(y.map((function(e){return"".concat(e,"x")}))).concat(x.map((function(e){return"w-".concat(e)}))),g.FontAwesomeConfig||{});if(m&&"function"==typeof m.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=m.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=o&&(_[r]=o)}))}var C=l({},{familyPrefix:"fa",replacementClass:"svg-inline--fa",autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},_);C.autoReplaceSvg||(C.observeMutations=!1);var k=l({},C);g.FontAwesomeConfig=k;var E=g||{};E.___FONT_AWESOME___||(E.___FONT_AWESOME___={}),E.___FONT_AWESOME___.styles||(E.___FONT_AWESOME___.styles={}),E.___FONT_AWESOME___.hooks||(E.___FONT_AWESOME___.hooks={}),E.___FONT_AWESOME___.shims||(E.___FONT_AWESOME___.shims=[]);var S=E.___FONT_AWESOME___,P=[];b&&((m.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(m.readyState)||m.addEventListener("DOMContentLoaded",(function e(){m.removeEventListener("DOMContentLoaded",e),1,P.map((function(e){return e()}))})));var O,T=function(){},B=void 0!==e&&void 0!==e.process&&"function"==typeof e.process.emit,M=void 0===r?setTimeout:r,N=[];function R(){for(var e=0;e<N.length;e++)N[e][0](N[e][1]);N=[],O=!1}function L(e,t){N.push([e,t]),O||(O=!0,M(R,0))}function j(e){var t=e.owner,n=t._state,r=t._data,o=e[n],a=e.then;if("function"==typeof o){n="fulfilled";try{r=o(r)}catch(e){F(a,e)}}A(a,r)||("fulfilled"===n&&I(a,r),"rejected"===n&&F(a,r))}function A(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?D(e,r):I(e,r))}),(function(t){n||(n=!0,F(e,t))})),!0}}catch(t){return n||F(e,t),!0}return!1}function I(e,t){e!==t&&A(e,t)||D(e,t)}function D(e,t){"pending"===e._state&&(e._state="settled",e._data=t,L(U,e))}function F(e,t){"pending"===e._state&&(e._state="settled",e._data=t,L(V,e))}function z(e){e._then=e._then.forEach(j)}function U(e){e._state="fulfilled",z(e)}function V(t){t._state="rejected",z(t),!t._handled&&B&&e.process.emit("unhandledRejection",t._data,t)}function H(t){e.process.emit("rejectionHandled",t)}function W(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof W==!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){F(t,e)}try{e((function(e){I(t,e)}),n)}catch(e){n(e)}}(e,this)}W.prototype={constructor:W,_state:"pending",_then:null,_data:void 0,_handled:!1,then:function(e,t){var n={owner:this,then:new this.constructor(T),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,"rejected"===this._state&&B&&L(H,this)),"fulfilled"===this._state||"rejected"===this._state?L(j,n):this._then.push(n),n.then},catch:function(e){return this.then(null,e)}},W.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new W((function(t,n){var r=[],o=0;function a(e){return o++,function(n){r[e]=n,--o||t(r)}}for(var i,l=0;l<e.length;l++)(i=e[l])&&"function"==typeof i.then?i.then(a(l),n):r[l]=i;o||t(r)}))},W.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new W((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)}))},W.resolve=function(e){return e&&"object"===o(e)&&e.constructor===W?e:new W((function(t){t(e)}))},W.reject=function(e){return new W((function(t,n){n(e)}))};var X={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Y(e){if(e&&b){var t=m.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=m.head.childNodes,r=null,o=n.length-1;o>-1;o--){var a=n[o],i=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(r=a)}return m.head.insertBefore(t,r),e}}function G(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function q(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Z(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function Q(e){return e.size!==X.size||e.x!==X.x||e.y!==X.y||e.rotate!==X.rotate||e.flipX||e.flipY}function K(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(32*t.x,", ").concat(32*t.y,") "),i="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(a," ").concat(i," ").concat(l)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var $={x:0,y:0,width:"100%",height:"100%"};function J(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 ee(e){var t=e.icons,n=t.main,r=t.mask,o=e.prefix,a=e.iconName,i=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,g=f.height,m="fa-w-".concat(Math.ceil(h/g*16)),v=[k.replacementClass,a?"".concat(k.familyPrefix,"-").concat(a):"",m].filter((function(e){return-1===u.classes.indexOf(e)})).concat(u.classes).join(" "),b={children:[],attributes:l({},u.attributes,{"data-prefix":o,"data-icon":a,class:v,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(h," ").concat(g)})};d&&(b.attributes["data-fa-i2svg"]=""),c&&b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(G())},children:[c]});var y=l({},b,{prefix:o,iconName:a,main:n,mask:r,transform:i,symbol:s,styles:u.styles}),x=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,o=e.main,a=e.mask,i=e.transform,s=o.width,c=o.icon,u=a.width,p=a.icon,d=K({transform:i,containerWidth:u,iconWidth:s}),f={tag:"rect",attributes:l({},$,{fill:"white"})},h=c.children?{children:c.children.map(J)}:{},g={tag:"g",attributes:l({},d.inner),children:[J(l({tag:c.tag,attributes:l({},c.attributes,d.path)},h))]},m={tag:"g",attributes:l({},d.outer),children:[g]},v="mask-".concat(G()),b="clip-".concat(G()),y={tag:"mask",attributes:l({},$,{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,m]},x={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(t=p,"g"===t.tag?t.children:[t])},y]};return n.push(x,{tag:"rect",attributes:l({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(v,")")},$)}),{children:n,attributes:r}}(y):function(e){var t=e.children,n=e.attributes,r=e.main,o=e.transform,a=Z(e.styles);if(a.length>0&&(n.style=a),Q(o)){var i=K({transform:o,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:l({},i.outer),children:[{tag:"g",attributes:l({},i.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:l({},r.icon.attributes,i.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(y),w=x.children,_=x.attributes;return y.children=w,y.attributes=_,s?function(e){var t=e.prefix,n=e.iconName,r=e.children,o=e.attributes,a=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:l({},o,{id:!0===a?"".concat(t,"-").concat(k.familyPrefix,"-").concat(n):a}),children:r}]}]}(y):function(e){var t=e.children,n=e.main,r=e.mask,o=e.attributes,a=e.styles,i=e.transform;if(Q(i)&&n.found&&!r.found){var s={x:n.width/n.height/2,y:.5};o.style=Z(l({},a,{"transform-origin":"".concat(s.x+i.x/16,"em ").concat(s.y+i.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(y)}var te=function(){},ne=(k.measurePerformance&&v&&v.mark&&v.measure,function(e,t,n,r){var o,a,i,l=Object.keys(e),s=l.length,c=void 0!==r?function(e,t){return function(n,r,o,a){return e.call(t,n,r,o,a)}}(t,r):t;for(void 0===n?(o=1,i=e[l[0]]):(o=0,i=n);o<s;o++)i=c(i,e[a=l[o]],a,e);return i});function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,o=void 0!==r&&r,a=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 S.hooks.addPack||o?S.styles[e]=l({},S.styles[e]||{},a):S.hooks.addPack(e,a),"fas"===e&&re("fa",t)}var oe=S.styles,ae=S.shims,ie=function(){var e=function(e){return ne(oe,(function(t,n,r){return t[r]=ne(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 oe;ne(ae,(function(e,n){var r=n[0],o=n[1],a=n[2];return"far"!==o||t||(o="fas"),e[r]={prefix:o,iconName:a},e}),{})};ie();S.styles;function le(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function se(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,o=e.children,a=void 0===o?[]:o;return"string"==typeof e?q(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(q(e[n]),'" ')}),"").trim()}(r),">").concat(a.map(se).join(""),"</").concat(t,">")}var ce=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 ue(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}ue.prototype=Object.create(Error.prototype),ue.prototype.constructor=ue;var pe={fill:"currentColor"},de={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},fe={tag:"path",attributes:l({},pe,{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"})},he=l({},de,{attributeName:"opacity"});l({},pe,{cx:"256",cy:"364",r:"28"}),l({},de,{attributeName:"r",values:"28;14;28;28;14;28;"}),l({},he,{values:"1;0;1;1;0;1;"}),l({},pe,{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({},he,{values:"1;0;0;0;0;1;"}),l({},pe,{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({},he,{values:"0;0;1;1;0;0;"}),S.styles;function ge(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(k.familyPrefix,"-").concat(w.GROUP)},children:[{tag:"path",attributes:{class:"".concat(k.familyPrefix,"-").concat(w.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(k.familyPrefix,"-").concat(w.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}S.styles;function me(){var e="svg-inline--fa",t=k.familyPrefix,n=k.replacementClass,r='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}';if("fa"!==t||n!==e){var o=new RegExp("\\.".concat("fa","\\-"),"g"),a=new RegExp("\\--".concat("fa","\\-"),"g"),i=new RegExp("\\.".concat(e),"g");r=r.replace(o,".".concat(t,"-")).replace(a,"--".concat(t,"-")).replace(i,".".concat(n))}return r}function ve(){k.autoAddCss&&!_e&&(Y(me()),_e=!0)}function be(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return se(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(b){var t=m.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function ye(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return le(we.definitions,n,r)||le(S.styles,n,r)}var xe,we=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]),re(t,o[t]),ie()}))}},{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,a=r.iconName,i=r.icon;e[o]||(e[o]={}),e[o][a]=i})),e}}])&&a(t.prototype,n),r&&a(t,r),e}()),_e=!1,Ce={transform:function(e){return ce(e)}},ke=(xe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?X:n,o=t.symbol,a=void 0!==o&&o,i=t.mask,s=void 0===i?null:i,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,g=t.styles,m=void 0===g?{}:g;if(e){var v=e.prefix,b=e.iconName,y=e.icon;return be(l({type:"icon"},e),(function(){return ve(),k.autoA11y&&(u?h["aria-labelledby"]="".concat(k.replacementClass,"-title-").concat(G()):(h["aria-hidden"]="true",h.focusable="false")),ee({icons:{main:ge(y),mask:s?ge(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:v,iconName:b,transform:l({},X,r),symbol:a,title:u,extra:{attributes:h,styles:m,classes:d}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:ye(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:ye(r||{})),xe(n,l({},t,{mask:r}))})}).call(this,n(29),n(146).setImmediate)},function(e,t,n){e.exports={graphlib:n(13),layout:n(326),debug:n(376),util:{time:n(9).time,notime:n(9).notime},version:n(377)}},function(e,t,n){"use strict";
  /*
  object-assign
  (c) Sindre Sorhus
  @license MIT
  */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(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=i(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++)a.call(n,l[p])&&(s[l[p]]=n[l[p]])}}return s}},function(e,t,n){var r=n(20),o=n(6),a=n(14);e.exports=function(e){return"string"==typeof e||!o(e)&&a(e)&&"[object String]"==r(e)}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(29))},function(e,t,n){var r=n(159),o=n(32),a=n(6),i=n(24),l=n(38),s=n(33),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),u=!n&&o(e),p=!n&&!u&&i(e),d=!n&&!u&&!p&&s(e),f=n||u||p||d,h=f?r(e.length,String):[],g=h.length;for(var m in e)!t&&!c.call(e,m)||f&&("length"==m||p&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||l(m,g))||h.push(m);return h}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(20),o=n(41),a=n(14),i=Function.prototype,l=Object.prototype,s=i.toString,c=l.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},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(192),o=n(14);e.exports=function e(t,n,a,i,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,a,i,e,l))}},function(e,t,n){var r=n(89),o=n(195),a=n(90);e.exports=function(e,t,n,i,l,s){var c=1&n,u=e.length,p=t.length;if(u!=p&&!(c&&p>u))return!1;var d=s.get(e);if(d&&s.get(t))return d==t;var f=-1,h=!0,g=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++f<u;){var m=e[f],v=t[f];if(i)var b=c?i(v,m,f,t,e,s):i(m,v,f,e,t,s);if(void 0!==b){if(b)continue;h=!1;break}if(g){if(!o(t,(function(e,t){if(!a(g,t)&&(m===e||l(m,e,n,i,s)))return g.push(t)}))){h=!1;break}}else if(m!==v&&!l(m,v,n,i,s)){h=!1;break}}return s.delete(e),s.delete(t),h}},function(e,t,n){var r=n(64),o=n(193),a=n(194);function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(11).Uint8Array;e.exports=r},function(e,t,n){var r=n(93),o=n(67),a=n(19);e.exports=function(e){return r(e,a,o)}},function(e,t,n){var r=n(66),o=n(6);e.exports=function(e,t,n){var a=t(e);return o(e)?a:r(a,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(22)(n(11),"Set");e.exports=r},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(208);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(209),o=n(101);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){var r=n(48),o=n(32),a=n(6),i=n(38),l=n(59),s=n(35);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)&&i(d,u)&&(a(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(49),o=n(16);e.exports=function(e,t){var n=-1,a=o(e)?Array(e.length):[];return r(e,(function(e,r,o){a[++n]=t(e,r,o)})),a}},function(e,t,n){var r=n(105);e.exports=function(e){return r(e,5)}},function(e,t,n){var r=n(43),o=n(70),a=n(50),i=n(214),l=n(215),s=n(107),c=n(108),u=n(218),p=n(219),d=n(92),f=n(220),h=n(26),g=n(221),m=n(222),v=n(111),b=n(6),y=n(24),x=n(226),w=n(7),_=n(228),C=n(19),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function e(t,n,E,S,P,O){var T,B=1&n,M=2&n,N=4&n;if(E&&(T=P?E(t,S,P,O):E(t)),void 0!==T)return T;if(!w(t))return t;var R=b(t);if(R){if(T=g(t),!B)return c(t,T)}else{var L=h(t),j="[object Function]"==L||"[object GeneratorFunction]"==L;if(y(t))return s(t,B);if("[object Object]"==L||"[object Arguments]"==L||j&&!P){if(T=M||j?{}:v(t),!B)return M?p(t,l(T,t)):u(t,i(T,t))}else{if(!k[L])return P?t:{};T=m(t,L,B)}}O||(O=new r);var A=O.get(t);if(A)return A;O.set(t,T),_(t)?t.forEach((function(r){T.add(e(r,n,E,r,t,O))})):x(t)&&t.forEach((function(r,o){T.set(o,e(r,n,E,o,t,O))}));var I=N?M?f:d:M?keysIn:C,D=R?void 0:I(t);return o(D||t,(function(r,o){D&&(r=t[o=r]),a(T,o,e(r,n,E,o,t,O))})),T}},function(e,t,n){var r=n(22),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){(function(e){var r=n(11),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,i=a&&a.exports===o?r.Buffer:void 0,l=i?i.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(58)(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,n){var r=n(66),o=n(41),a=n(67),i=n(95),l=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,a(e)),e=o(e);return t}:i;e.exports=l},function(e,t,n){var r=n(71);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(112),o=n(41),a=n(40);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(o(e))}},function(e,t,n){var r=n(7),o=Object.create,a=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=a},function(e,t,n){var r=n(51),o=n(25);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,n){var r=n(16),o=n(14);e.exports=function(e){return o(e)&&r(e)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var r=n(245),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,l=o(a.length-t,0),s=Array(l);++i<l;)s[i]=a[t+i];i=-1;for(var c=Array(t+1);++i<t;)c[i]=a[i];return c[t]=n(s),r(e,this,c)}}},function(e,t,n){var r=n(246),o=n(247)(r);e.exports=o},function(e,t,n){var r=n(7),o=n(119),a=n(120),i=Math.max,l=Math.min;e.exports=function(e,t,n){var s,c,u,p,d,f,h=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=s,r=c;return s=c=void 0,h=t,p=e.apply(r,n)}function y(e){return h=e,d=setTimeout(w,t),g?b(e):p}function x(e){var n=e-f;return void 0===f||n>=t||n<0||m&&e-h>=u}function w(){var e=o();if(x(e))return _(e);d=setTimeout(w,function(e){var n=t-(e-f);return m?l(n,u-(e-h)):n}(e))}function _(e){return d=void 0,v&&s?b(e):(s=c=void 0,p)}function C(){var e=o(),n=x(e);if(s=arguments,c=this,f=e,n){if(void 0===d)return y(f);if(m)return clearTimeout(d),d=setTimeout(w,t),b(f)}return void 0===d&&(d=setTimeout(w,t)),p}return t=a(t)||0,r(n)&&(g=!!n.leading,u=(m="maxWait"in n)?i(a(n.maxWait)||0,t):u,v="trailing"in n?!!n.trailing:v),C.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=f=c=d=void 0},C.flush=function(){return void 0===d?p:_(o())},C}},function(e,t,n){var r=n(11);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(7),o=n(27),a=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;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=l.test(e);return n||s.test(e)?c(e.slice(2),n?2:8):i.test(e)?NaN:+e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorWrap=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(1),i=c(a),l=c(n(118)),s=c(n(12));function c(e){return e&&e.__esModule?e:{default:e}}var u=t.ColorWrap=function(e){var t=function(t){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){if(s.default.simpleCheckForValidColor(e)){var r=s.default.toState(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(s.default.simpleCheckForValidColor(e)){var r=s.default.toState(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=r({},s.default.toState(e.color,0)),t.debounce=(0,l.default)((function(e,t,n){e(t,n)}),100),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),o(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),i.default.createElement(e,r({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return r({},s.default.toState(e.color,t.oldHue))}}]),n}(a.PureComponent||a.Component);return t.propTypes=r({},e.propTypes),t.defaultProps=r({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};t.default=u},function(e,t,n){var r=n(70),o=n(49),a=n(62),i=n(6);e.exports=function(e,t){return(i(e)?r:o)(e,a(t))}},function(e,t,n){"use strict";n.r(t),n.d(t,"red",(function(){return r})),n.d(t,"pink",(function(){return o})),n.d(t,"purple",(function(){return a})),n.d(t,"deepPurple",(function(){return i})),n.d(t,"indigo",(function(){return l})),n.d(t,"blue",(function(){return s})),n.d(t,"lightBlue",(function(){return c})),n.d(t,"cyan",(function(){return u})),n.d(t,"teal",(function(){return p})),n.d(t,"green",(function(){return d})),n.d(t,"lightGreen",(function(){return f})),n.d(t,"lime",(function(){return h})),n.d(t,"yellow",(function(){return g})),n.d(t,"amber",(function(){return m})),n.d(t,"orange",(function(){return v})),n.d(t,"deepOrange",(function(){return b})),n.d(t,"brown",(function(){return y})),n.d(t,"grey",(function(){return x})),n.d(t,"blueGrey",(function(){return w})),n.d(t,"darkText",(function(){return _})),n.d(t,"lightText",(function(){return C})),n.d(t,"darkIcons",(function(){return k})),n.d(t,"lightIcons",(function(){return E})),n.d(t,"white",(function(){return S})),n.d(t,"black",(function(){return P}));var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},o={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},a={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},i={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},l={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},s={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},c={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},u={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},p={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},d={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},f={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},h={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},g={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},m={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},b={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},y={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},x={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},w={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},_={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},C={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},k={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},E={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},S="#ffffff",P="#000000";t.default={red:r,pink:o,purple:a,deepPurple:i,indigo:l,blue:s,lightBlue:c,cyan:u,teal:p,green:d,lightGreen:f,lime:h,yellow:g,amber:m,orange:v,deepOrange:b,brown:y,grey:x,blueGrey:w,darkText:_,lightText:C,darkIcons:k,lightIcons:E,white:S,black:P}},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3Ecopy%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpath class='cls-1' d='M24,14.89H22.76l-3-3H12.43V26.59h4.26v3h11.5V19Zm.3,1.71,2.14,2.13H24.34Zm-10.91,9V12.93h5.93l2,2H16.69v10.7Zm4.26,3V15.89h5.65v3.84h3.85v8.83Z'/%3E%3C/g%3E%3C/svg%3E"},function(e,t,n){var r=n(94),o=n(293),a=n(17),i=n(6);e.exports=function(e,t){return(i(e)?r:o)(e,a(t,3))}},function(e,t,n){var r=n(294),o=n(101);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(296),o=n(49),a=n(17),i=n(297),l=n(6);e.exports=function(e,t,n){var s=l(e)?r:i,c=arguments.length<3;return s(e,a(t,4),n,c,o)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}},function(e,t,n){var r=n(314),o=n(19);e.exports=function(e){return null==e?[]:r(e,o(e))}},function(e,t,n){var r=n(10),o=n(132);e.exports=function(e,t,n,r){return function(e,t,n,r){var a,i,l={},s=new o,c=function(e){var t=e.v!==a?e.v:e.w,r=l[t],o=n(e),c=i.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=a,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&&(a=s.removeMin(),(i=l[a]).distance!==Number.POSITIVE_INFINITY);)r(a).forEach(c);return l}(e,String(t),n||a,r||function(t){return e.outEdges(t)})};var a=r.constant(1)},function(e,t,n){var r=n(10);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,a=o.length;return n[e]=a,o.push({key:e,priority:t}),this._decrease(a),!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],a=n[t];n[e]=a,n[t]=o,r[a.key]=e,r[o.key]=t}},function(e,t,n){var r=n(10);e.exports=function(e){var t=0,n=[],o={},a=[];return e.nodes().forEach((function(i){r.has(o,i)||function i(l){var s=o[l]={onStack:!0,lowlink:t,index:t++};if(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)):(i(e),s.lowlink=Math.min(s.lowlink,o[e].lowlink))})),s.lowlink===s.index){var c,u=[];do{c=n.pop(),o[c].onStack=!1,u.push(c)}while(l!==c);a.push(u)}}(i)})),a}},function(e,t,n){var r=n(10);function o(e){var t={},n={},o=[];if(r.each(e.sinks(),(function i(l){if(r.has(n,l))throw new a;r.has(t,l)||(n[l]=!0,t[l]=!0,r.each(e.predecessors(l),i),delete n[l],o.push(l))})),r.size(t)!==e.nodeCount())throw new a;return o}function a(){}e.exports=o,o.CycleException=a,a.prototype=new Error},function(e,t,n){var r=n(10);e.exports=function(e,t,n){r.isArray(t)||(t=[t]);var o=(e.isDirected()?e.successors:e.neighbors).bind(e),a=[],i={};return r.each(t,(function(t){if(!e.hasNode(t))throw new Error("Graph does not have node: "+t);!function e(t,n,o,a,i,l){r.has(a,n)||(a[n]=!0,o||l.push(n),r.each(i(n),(function(n){e(t,n,o,a,i,l)})),o&&l.push(n))}(e,t,"post"===n,i,o,a)})),a}},function(e,t,n){var r=n(120);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(76);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t){e.exports=function(e,t){return e<t}},function(e,t,n){"use strict";var r=n(4),o=n(13).Graph,a=n(54).slack;function i(e,t){return r.forEach(e.nodes(),(function n(o){r.forEach(t.nodeEdges(o),(function(r){var i=r.v,l=o===i?r.w:i;e.hasNode(l)||a(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 a(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(;i(r,e)<u;)t=l(r,e),n=r.hasNode(t.v)?a(e,t):-a(e,t),s(r,e,n);return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPicker=t.TwitterPicker=t.SwatchesPicker=t.SliderPicker=t.SketchPicker=t.PhotoshopPicker=t.MaterialPicker=t.HuePicker=t.GithubPicker=t.CompactPicker=t.ChromePicker=t.default=t.CirclePicker=t.BlockPicker=t.AlphaPicker=void 0;var r=n(154);Object.defineProperty(t,"AlphaPicker",{enumerable:!0,get:function(){return b(r).default}});var o=n(255);Object.defineProperty(t,"BlockPicker",{enumerable:!0,get:function(){return b(o).default}});var a=n(257);Object.defineProperty(t,"CirclePicker",{enumerable:!0,get:function(){return b(a).default}});var i=n(259);Object.defineProperty(t,"ChromePicker",{enumerable:!0,get:function(){return b(i).default}});var l=n(264);Object.defineProperty(t,"CompactPicker",{enumerable:!0,get:function(){return b(l).default}});var s=n(267);Object.defineProperty(t,"GithubPicker",{enumerable:!0,get:function(){return b(s).default}});var c=n(269);Object.defineProperty(t,"HuePicker",{enumerable:!0,get:function(){return b(c).default}});var u=n(271);Object.defineProperty(t,"MaterialPicker",{enumerable:!0,get:function(){return b(u).default}});var p=n(272);Object.defineProperty(t,"PhotoshopPicker",{enumerable:!0,get:function(){return b(p).default}});var d=n(278);Object.defineProperty(t,"SketchPicker",{enumerable:!0,get:function(){return b(d).default}});var f=n(281);Object.defineProperty(t,"SliderPicker",{enumerable:!0,get:function(){return b(f).default}});var h=n(285);Object.defineProperty(t,"SwatchesPicker",{enumerable:!0,get:function(){return b(h).default}});var g=n(289);Object.defineProperty(t,"TwitterPicker",{enumerable:!0,get:function(){return b(g).default}});var m=n(121);Object.defineProperty(t,"CustomPicker",{enumerable:!0,get:function(){return b(m).default}});var v=b(i);function b(e){return e&&e.__esModule?e:{default:e}}t.default=v.default},function(e,t,n){"use strict";n.r(t),function(e){var r=n(55);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(29))},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(80),o="function"==typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103,i=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,g=o?Symbol.for("react.memo"):60115,m=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(){}},x={};function w(e,t,n){this.props=e,this.context=t,this.refs=x,this.updater=n||y}function _(){}function C(e,t,n){this.props=e,this.context=t,this.refs=x,this.updater=n||y}w.prototype.isReactComponent={},w.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")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=w.prototype;var k=C.prototype=new _;k.constructor=C,r(k,w.prototype),k.isPureReactComponent=!0;var E={current:null},S={suspense:null},P={current:null},O=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function B(e,t,n){var r=void 0,o={},i=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)O.call(t,r)&&!T.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:a,type:e,key:i,ref:l,props:o,_owner:P.current}}function M(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var N=/\/+/g,R=[];function L(e,t,n,r){if(R.length){var o=R.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 j(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>R.length&&R.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 a:case i:s=!0}}if(s)return r(o,t,""===n?"."+I(t,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var u=n+I(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+I(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 I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function D(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?z(e,r,n,(function(e){return e})):null!=e&&(M(e)&&(e=function(e,t){return{$$typeof:a,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(N,"$&/")+"/")+n)),r.push(e))}function z(e,t,n,r,o){var a="";null!=n&&(a=(""+n).replace(N,"$&/")+"/"),A(e,F,t=L(t,a,r,o)),j(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 z(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;A(e,D,t=L(null,null,t,n)),j(t)},count:function(e){return A(e,(function(){return null}),null)},toArray:function(e){var t=[];return z(e,t,null,(function(e){return e})),t},only:function(e){if(!M(e))throw b(Error(143));return e}},createRef:function(){return{current:null}},Component:w,PureComponent:C,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:m,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:g,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:B,cloneElement:function(e,t,n){if(null==e)throw b(Error(267),e);var o=void 0,i=r({},e.props),l=e.key,s=e.ref,c=e._owner;if(null!=t){void 0!==t.ref&&(s=t.ref,c=P.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)O.call(t,o)&&!T.hasOwnProperty(o)&&(i[o]=void 0===t[o]&&void 0!==u?u[o]:t[o])}if(1===(o=arguments.length-2))i.children=n;else if(1<o){u=Array(o);for(var p=0;p<o;p++)u[p]=arguments[p+2];i.children=u}return{$$typeof:a,type:e.type,key:l,ref:s,props:i,_owner:c}},createFactory:function(e){var t=B.bind(null,e);return t.type=e,t},isValidElement:M,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:P,IsSomeRendererActing:{current:!1},assign:r}},H={default:V},W=H&&V||H;e.exports=W.default||W},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(80),a=n(144);function i(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 i(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 i(Error(96),e);if(!p[n]){if(!t.extractEvents)throw i(Error(97),e);for(var r in p[n]=t,n=t.eventTypes){var o=void 0,a=n[r],c=t,f=r;if(d.hasOwnProperty(f))throw i(Error(99),f);d[f]=a;var h=a.phasedRegistrationNames;if(h){for(o in h)h.hasOwnProperty(o)&&u(h[o],c,f);o=!0}else a.registrationName?(u(a.registrationName,c,f),o=!0):o=!1;if(!o)throw i(Error(98),r,e)}}}}function u(e,t,n){if(f[e])throw i(Error(100),e);f[e]=t,h[e]=t.eventTypes[n].dependencies}var p=[],d={},f={},h={};function g(e,t,n,r,o,a,i,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var m=!1,v=null,b=!1,y=null,x={onError:function(e){m=!0,v=e}};function w(e,t,n,r,o,a,i,l,s){m=!1,v=null,g.apply(x,arguments)}var _=null,C=null,k=null;function E(e,t,n){var r=e.type||"unknown-event";e.currentTarget=k(n),function(e,t,n,r,o,a,l,s,c){if(w.apply(this,arguments),m){if(!m)throw i(Error(198));var u=v;m=!1,v=null,b||(b=!0,y=u)}}(r,t,void 0,e),e.currentTarget=null}function S(e,t){if(null==t)throw i(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 P(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var O=null;function T(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 B(e){if(null!==e&&(O=S(O,e)),e=O,O=null,e){if(P(e,T),O)throw i(Error(95));if(b)throw e=y,b=!1,y=null,e}}var M={injectEventPluginOrder:function(e){if(l)throw i(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 i(Error(102),t);s[t]=r,n=!0}}n&&c()}};function N(e,t){var n=e.stateNode;if(!n)return null;var r=_(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 i(Error(231),t,typeof n);return n}var R=Math.random().toString(36).slice(2),L="__reactInternalInstance$"+R,j="__reactEventHandlers$"+R;function A(e){if(e[L])return e[L];for(;!e[L];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[L]).tag||6===e.tag?e:null}function I(e){return!(e=e[L])||5!==e.tag&&6!==e.tag?null:e}function D(e){if(5===e.tag||6===e.tag)return e.stateNode;throw i(Error(33))}function F(e){return e[j]||null}function z(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function U(e,t,n){(t=N(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=z(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 H(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=N(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=S(n._dispatchListeners,t),n._dispatchInstances=S(n._dispatchInstances,e))}function W(e){e&&e.dispatchConfig.registrationName&&H(e._targetInst,null,e)}function X(e){P(e,V)}var Y=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement);function G(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var q={animationend:G("Animation","AnimationEnd"),animationiteration:G("Animation","AnimationIteration"),animationstart:G("Animation","AnimationStart"),transitionend:G("Transition","TransitionEnd")},Z={},Q={};function K(e){if(Z[e])return Z[e];if(!q[e])return e;var t,n=q[e];for(t in n)if(n.hasOwnProperty(t)&&t in Q)return Z[e]=n[t];return e}Y&&(Q=document.createElement("div").style,"AnimationEvent"in window||(delete q.animationend.animation,delete q.animationiteration.animation,delete q.animationstart.animation),"TransitionEvent"in window||delete q.transitionend.transition);var $=K("animationend"),J=K("animationiteration"),ee=K("animationstart"),te=K("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,ae=null;function ie(){if(ae)return ae;var e,t,n=oe,r=n.length,o="value"in re?re.value:re.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return ae=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 i(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 a=new t;return o(a,n.prototype),n.prototype=a,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}),ge=[9,13,27,32],me=Y&&"CompositionEvent"in window,ve=null;Y&&"documentMode"in document&&(ve=document.documentMode);var be=Y&&"TextEvent"in window&&!ve,ye=Y&&(!me||ve&&8<ve&&11>=ve),xe=String.fromCharCode(32),we={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(" ")}},_e=!1;function Ce(e,t){switch(e){case"keyup":return-1!==ge.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ke(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ee=!1;var Se={eventTypes:we,extractEvents:function(e,t,n,r){var o=void 0,a=void 0;if(me)e:{switch(e){case"compositionstart":o=we.compositionStart;break e;case"compositionend":o=we.compositionEnd;break e;case"compositionupdate":o=we.compositionUpdate;break e}o=void 0}else Ee?Ce(e,n)&&(o=we.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=we.compositionStart);return o?(ye&&"ko"!==n.locale&&(Ee||o!==we.compositionStart?o===we.compositionEnd&&Ee&&(a=ie()):(oe="value"in(re=r)?re.value:re.textContent,Ee=!0)),o=fe.getPooled(o,t,n,r),a?o.data=a:null!==(a=ke(n))&&(o.data=a),X(o),a=o):a=null,(e=be?function(e,t){switch(e){case"compositionend":return ke(t);case"keypress":return 32!==t.which?null:(_e=!0,xe);case"textInput":return(e=t.data)===xe&&_e?null:e;default:return null}}(e,n):function(e,t){if(Ee)return"compositionend"===e||!me&&Ce(e,t)?(e=ie(),ae=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(we.beforeInput,t,n,r)).data=e,X(t)):t=null,null===a?t:null===t?a:[a,t]}},Pe=null,Oe=null,Te=null;function Be(e){if(e=C(e)){if("function"!=typeof Pe)throw i(Error(280));var t=_(e.stateNode);Pe(e.stateNode,e.type,t)}}function Me(e){Oe?Te?Te.push(e):Te=[e]:Oe=e}function Ne(){if(Oe){var e=Oe,t=Te;if(Te=Oe=null,Be(e),t)for(e=0;e<t.length;e++)Be(t[e])}}function Re(e,t){return e(t)}function Le(e,t,n,r){return e(t,n,r)}function je(){}var Ae=Re,Ie=!1;function De(){null===Oe&&null===Te||(je(),Ne())}var Fe={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ze(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fe[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(!Y)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 He(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function We(e){e._valueTracker||(e._valueTracker=function(e){var t=He(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,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.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 Xe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=He(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var Ye=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ye.hasOwnProperty("ReactCurrentDispatcher")||(Ye.ReactCurrentDispatcher={current:null}),Ye.hasOwnProperty("ReactCurrentBatchConfig")||(Ye.ReactCurrentBatchConfig={suspense:null});var Ge=/^(.*)[\\\/]/,qe="function"==typeof Symbol&&Symbol.for,Ze=qe?Symbol.for("react.element"):60103,Qe=qe?Symbol.for("react.portal"):60106,Ke=qe?Symbol.for("react.fragment"):60107,$e=qe?Symbol.for("react.strict_mode"):60108,Je=qe?Symbol.for("react.profiler"):60114,et=qe?Symbol.for("react.provider"):60109,tt=qe?Symbol.for("react.context"):60110,nt=qe?Symbol.for("react.concurrent_mode"):60111,rt=qe?Symbol.for("react.forward_ref"):60112,ot=qe?Symbol.for("react.suspense"):60113,at=qe?Symbol.for("react.suspense_list"):60120,it=qe?Symbol.for("react.memo"):60115,lt=qe?Symbol.for("react.lazy"):60116;qe&&Symbol.for("react.fundamental"),qe&&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 Ke:return"Fragment";case Qe:return"Portal";case Je:return"Profiler";case $e:return"StrictMode";case ot:return"Suspense";case at: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 it: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,a=ut(e.type);n=null,r&&(n=ut(r.type)),r=a,a="",o?a=" (at "+o.fileName.replace(Ge,"")+":"+o.lineNumber+")":n&&(a=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+a}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={},gt={};function mt(e,t,n,r,o,a){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=a}var vt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){vt[e]=new mt(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 mt(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){vt[e]=new mt(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){vt[e]=new mt(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 mt(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){vt[e]=new mt(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){vt[e]=new mt(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){vt[e]=new mt(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){vt[e]=new mt(e,5,!1,e.toLowerCase(),null,!1)}));var bt=/[\-:]([a-z])/g;function yt(e){return e[1].toUpperCase()}function xt(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(gt,e)||!ft.call(ht,e)&&(dt.test(e)?gt[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 wt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function _t(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 Ct(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=wt(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 kt(e,t){null!=(t=t.checked)&&xt(e,"checked",t,!1)}function Et(e,t){kt(e,t);var n=wt(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Pt(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pt(e,t.type,wt(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 Pt(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(bt,yt);vt[t]=new mt(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 mt(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 mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){vt[e]=new mt(e,1,!1,e.toLowerCase(),null,!1)})),vt.xlinkHref=new mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){vt[e]=new mt(e,1,!1,e.toLowerCase(),null,!0)}));var Ot={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Tt(e,t,n){return(e=ce.getPooled(Ot.change,e,t,n)).type="change",Me(n),X(e),e}var Bt=null,Mt=null;function Nt(e){B(e)}function Rt(e){if(Xe(D(e)))return e}function Lt(e,t){if("change"===e)return t}var jt=!1;function At(){Bt&&(Bt.detachEvent("onpropertychange",It),Mt=Bt=null)}function It(e){if("value"===e.propertyName&&Rt(Mt))if(e=Tt(Mt,e,Ue(e)),Ie)B(e);else{Ie=!0;try{Re(Nt,e)}finally{Ie=!1,De()}}}function Dt(e,t,n){"focus"===e?(At(),Mt=n,(Bt=t).attachEvent("onpropertychange",It)):"blur"===e&&At()}function Ft(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Rt(Mt)}function zt(e,t){if("click"===e)return Rt(t)}function Ut(e,t){if("input"===e||"change"===e)return Rt(t)}Y&&(jt=Ve("input")&&(!document.documentMode||9<document.documentMode));var Vt={eventTypes:Ot,_isInputEventSupported:jt,extractEvents:function(e,t,n,r){var o=t?D(t):window,a=void 0,i=void 0,l=o.nodeName&&o.nodeName.toLowerCase();if("select"===l||"input"===l&&"file"===o.type?a=Lt:ze(o)?jt?a=Ut:(a=Ft,i=Dt):(l=o.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=zt),a&&(a=a(e,t)))return Tt(a,n,r);i&&i(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Pt(o,"number",o.value)}},Ht=ce.extend({view:null,detail:null}),Wt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Wt[e])&&!!t[e]}function Yt(){return Xt}var Gt=0,qt=0,Zt=!1,Qt=!1,Kt=Ht.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Yt,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=Gt;return Gt=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=qt;return qt=e.screenY,Qt?"mousemove"===e.type?e.screenY-t:0:(Qt=!0,0)}}),$t=Kt.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,a="mouseout"===e||"pointerout"===e;if(o&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a?(a=t,t=(t=n.relatedTarget||n.toElement)?A(t):null):a=null,a===t)return null;var i=void 0,l=void 0,s=void 0,c=void 0;"mouseout"===e||"mouseover"===e?(i=Kt,l=Jt.mouseLeave,s=Jt.mouseEnter,c="mouse"):"pointerout"!==e&&"pointerover"!==e||(i=$t,l=Jt.pointerLeave,s=Jt.pointerEnter,c="pointer");var u=null==a?o:D(a);if(o=null==t?o:D(t),(e=i.getPooled(l,a,n,r)).type=c+"leave",e.target=u,e.relatedTarget=o,(n=i.getPooled(s,t,n,r)).type=c+"enter",n.target=o,n.relatedTarget=u,r=t,a&&r)e:{for(o=r,c=0,i=t=a;i;i=z(i))c++;for(i=0,s=o;s;s=z(s))i++;for(;0<c-i;)t=z(t),c--;for(;0<i-c;)o=z(o),i--;for(;c--;){if(t===o||t===o.alternate)break e;t=z(t),o=z(o)}t=null}else t=null;for(o=t,t=[];a&&a!==o&&(null===(c=a.alternate)||c!==o);)t.push(a),a=z(a);for(a=[];r&&r!==o&&(null===(c=r.alternate)||c!==o);)a.push(r),r=z(r);for(r=0;r<t.length;r++)H(t[r],"bubbled",e);for(r=a.length;0<r--;)H(a[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 i(Error(188))}function sn(e){if(!(e=function(e){var t=e.alternate;if(!t){if(3===(t=an(e)))throw i(Error(188));return 1===t?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return ln(o),e;if(a===r)return ln(o),t;a=a.sibling}throw i(Error(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=a;break}if(s===r){l=!0,r=o,n=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===n){l=!0,n=a,r=o;break}if(s===r){l=!0,r=a,n=o;break}s=s.sibling}if(!l)throw i(Error(189))}}if(n.alternate!==r)throw i(Error(190))}if(3!==n.tag)throw i(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=Ht.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"},gn=Ht.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:Yt,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}}),mn=Kt.extend({dataTransfer:null}),vn=Ht.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Yt}),bn=ce.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),yn=Kt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),xn=[["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],[$,"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]],wn={},_n={},Cn=0;Cn<xn.length;Cn++){var kn=xn[Cn],En=kn[0],Sn=kn[1],Pn=kn[2],On="on"+(Sn[0].toUpperCase()+Sn.slice(1)),Tn={phasedRegistrationNames:{bubbled:On,captured:On+"Capture"},dependencies:[En],eventPriority:Pn};wn[Sn]=Tn,_n[En]=Tn}var Bn={eventTypes:wn,getEventPriority:function(e){return void 0!==(e=_n[e])?e.eventPriority:2},extractEvents:function(e,t,n,r){var o=_n[e];if(!o)return null;switch(e){case"keypress":if(0===dn(n))return null;case"keydown":case"keyup":e=gn;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=Kt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=vn;break;case $:case J:case ee:e=cn;break;case te:e=bn;break;case"scroll":e=Ht;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=$t;break;default:e=ce}return X(t=e.getPooled(o,t,n,r)),t}},Mn=Bn.getEventPriority,Nn=[];function Rn(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 a=e.nativeEvent,i=null,l=0;l<p.length;l++){var s=p[l];s&&(s=s.extractEvents(r,t,a,o))&&(i=S(i,s))}B(i)}}var Ln=!0;function jn(e,t){An(t,e,!1)}function An(e,t,n){switch(Mn(t)){case 0:var r=In.bind(null,t,1);break;case 1:r=Dn.bind(null,t,1);break;default:r=Fn.bind(null,t,1)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function In(e,t,n){Ie||je();var r=Fn,o=Ie;Ie=!0;try{Le(r,e,t,n)}finally{(Ie=o)||De()}}function Dn(e,t,n){Fn(e,t,n)}function Fn(e,t,n){if(Ln){if(null===(t=A(t=Ue(n)))||"number"!=typeof t.tag||2===an(t)||(t=null),Nn.length){var r=Nn.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,Ie)Rn(n);else{Ie=!0;try{Ae(Rn,n,void 0)}finally{Ie=!1,De()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Nn.length&&Nn.push(e)}}}var zn=new("function"==typeof WeakMap?WeakMap:Map);function Un(e){var t=zn.get(e);return void 0===t&&(t=new Set,zn.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 Hn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wn(e,t){var n,r=Hn(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=Hn(r)}}function Xn(){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 Yn(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 Gn=Y&&"documentMode"in document&&11>=document.documentMode,qn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Zn=null,Qn=null,Kn=null,$n=!1;function Jn(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return $n||null==Zn||Zn!==Vn(n)?null:("selectionStart"in(n=Zn)&&Yn(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},Kn&&rn(Kn,n)?null:(Kn=n,(e=ce.getPooled(qn.select,Qn,e,t)).type="select",e.target=Zn,X(e),e))}var er={eventTypes:qn,extractEvents:function(e,t,n,r){var o,a=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!a)){e:{a=Un(a),o=h.onSelect;for(var i=0;i<o.length;i++)if(!a.has(o[i])){a=!1;break e}a=!0}o=!a}if(o)return null;switch(a=t?D(t):window,e){case"focus":(ze(a)||"true"===a.contentEditable)&&(Zn=a,Qn=t,Kn=null);break;case"blur":Kn=Qn=Zn=null;break;case"mousedown":$n=!0;break;case"contextmenu":case"mouseup":case"dragend":return $n=!1,Jn(n,r);case"selectionchange":if(Gn)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=""+wt(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 i(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 i(Error(92));if(Array.isArray(t)){if(!(1>=t.length))throw i(Error(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:wt(n)}}function ar(e,t){var n=wt(t.value),r=wt(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 ir(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}M.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),_=F,C=I,k=D,M.injectEventPluginsByName({SimpleEventPlugin:Bn,EnterLeaveEventPlugin:en,ChangeEventPlugin:Vt,SelectEventPlugin:er,BeforeInputEventPlugin:Se});var lr="http://www.w3.org/1999/xhtml",sr="http://www.w3.org/2000/svg";function cr(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 ur(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?cr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var pr=void 0,dr=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!==sr||"innerHTML"in e)e.innerHTML=t;else{for((pr=pr||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=pr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function fr(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 hr={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},gr=["Webkit","ms","Moz","O"];function mr(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||hr.hasOwnProperty(e)&&hr[e]?(""+t).trim():t+"px"}function vr(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(hr).forEach((function(e){gr.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),hr[t]=hr[e]}))}));var br=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 yr(e,t){if(t){if(br[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw i(Error(137),e,"");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw i(Error(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw i(Error(61))}if(null!=t.style&&"object"!=typeof t.style)throw i(Error(62),"")}}function xr(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)&&jn(o,e)}n.add(o)}}}function _r(){}var Cr=null,kr=null;function Er(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Sr(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 Pr="function"==typeof setTimeout?setTimeout:void 0,Or="function"==typeof clearTimeout?clearTimeout:void 0;function Tr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}new Set;var Br=[],Mr=-1;function Nr(e){0>Mr||(e.current=Br[Mr],Br[Mr]=null,Mr--)}function Rr(e,t){Mr++,Br[Mr]=e.current,e.current=t}var Lr={},jr={current:Lr},Ar={current:!1},Ir=Lr;function Dr(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,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Fr(e){return null!=(e=e.childContextTypes)}function zr(e){Nr(Ar),Nr(jr)}function Ur(e){Nr(Ar),Nr(jr)}function Vr(e,t,n){if(jr.current!==Lr)throw i(Error(168));Rr(jr,t),Rr(Ar,n)}function Hr(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw i(Error(108),ut(t)||"Unknown",a);return o({},n,r)}function Wr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Lr,Ir=jr.current,Rr(jr,t),Rr(Ar,Ar.current),!0}function Xr(e,t,n){var r=e.stateNode;if(!r)throw i(Error(169));n?(t=Hr(e,t,Ir),r.__reactInternalMemoizedMergedChildContext=t,Nr(Ar),Nr(jr),Rr(jr,t)):Nr(Ar),Rr(Ar,n)}var Yr=a.unstable_runWithPriority,Gr=a.unstable_scheduleCallback,qr=a.unstable_cancelCallback,Zr=a.unstable_shouldYield,Qr=a.unstable_requestPaint,Kr=a.unstable_now,$r=a.unstable_getCurrentPriorityLevel,Jr=a.unstable_ImmediatePriority,eo=a.unstable_UserBlockingPriority,to=a.unstable_NormalPriority,no=a.unstable_LowPriority,ro=a.unstable_IdlePriority,oo={},ao=void 0!==Qr?Qr:function(){},io=null,lo=null,so=!1,co=Kr(),uo=1e4>co?Kr:function(){return Kr()-co};function po(){switch($r()){case Jr:return 99;case eo:return 98;case to:return 97;case no:return 96;case ro:return 95;default:throw i(Error(332))}}function fo(e){switch(e){case 99:return Jr;case 98:return eo;case 97:return to;case 96:return no;case 95:return ro;default:throw i(Error(332))}}function ho(e,t){return e=fo(e),Yr(e,t)}function go(e,t,n){return e=fo(e),Gr(e,t,n)}function mo(e){return null===io?(io=[e],lo=Gr(Jr,bo)):io.push(e),oo}function vo(){null!==lo&&qr(lo),bo()}function bo(){if(!so&&null!==io){so=!0;var e=0;try{var t=io;ho(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(Jr,vo),t}finally{so=!1}}}function yo(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 xo(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},_o=null,Co=null,ko=null;function Eo(){ko=Co=_o=null}function So(e,t){var n=e.type._context;Rr(wo,n._currentValue),n._currentValue=t}function Po(e){var t=wo.current;Nr(wo),e.type._context._currentValue=t}function Oo(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 To(e,t){_o=e,ko=Co=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(ti=!0),e.firstContext=null)}function Bo(e,t){if(ko!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ko=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Co){if(null===_o)throw i(Error(308));Co=t,_o.dependencies={expirationTime:0,firstContext:t,responders:null}}else Co=Co.next=t;return e._currentValue}var Mo=!1;function No(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ro(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 jo(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Ao(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=No(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=No(e.memoizedState),o=n.updateQueue=No(n.memoizedState)):r=e.updateQueue=Ro(o):null===o&&(o=n.updateQueue=Ro(r));null===o||r===o?jo(r,t):null===r.lastUpdate||null===o.lastUpdate?(jo(r,t),jo(o,t)):(jo(r,t),o.lastUpdate=t)}function Io(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=No(e.memoizedState):Do(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function Do(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Ro(t)),t}function Fo(e,t,n,r,a,i){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(i,r,a):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(a="function"==typeof(e=n.payload)?e.call(i,r,a):e))break;return o({},r,a);case 2:Mo=!0}return r}function zo(e,t,n,r,o){Mo=!1;for(var a=(t=Do(e,t)).baseState,i=null,l=0,s=t.firstUpdate,c=a;null!==s;){var u=s.expirationTime;u<o?(null===i&&(i=s,a=c),l<u&&(l=u)):(wl(u,s.suspenseConfig),c=Fo(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===i&&(a=c)),l<p&&(l=p)):(c=Fo(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===i&&(t.lastUpdate=null),null===u?t.lastCapturedUpdate=null:e.effectTag|=32,null===i&&null===u&&(a=c),t.baseState=a,t.firstUpdate=i,t.firstCapturedUpdate=u,e.expirationTime=l,e.memoizedState=c}function Uo(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),Vo(t.firstEffect,n),t.firstEffect=t.lastEffect=null,Vo(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function Vo(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;if("function"!=typeof n)throw i(Error(191),n);n.call(r)}e=e.nextEffect}}var Ho=Ye.ReactCurrentBatchConfig,Wo=(new r.Component).refs;function Xo(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 Yo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===an(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=sl(),o=Ho.suspense;(o=Lo(r=cl(r,e,o),o)).payload=t,null!=n&&(o.callback=n),Ao(e,o),pl(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=sl(),o=Ho.suspense;(o=Lo(r=cl(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),Ao(e,o),pl(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=sl(),r=Ho.suspense;(r=Lo(n=cl(n,e,r),r)).tag=2,null!=t&&(r.callback=t),Ao(e,r),pl(e,n)}};function Go(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!rn(n,r)||!rn(o,a))}function qo(e,t,n){var r=!1,o=Lr,a=t.contextType;return"object"==typeof a&&null!==a?a=Bo(a):(o=Fr(t)?Ir:jr.current,a=(r=null!=(r=t.contextTypes))?Dr(e,o):Lr),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Yo,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Zo(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&&Yo.enqueueReplaceState(t,t.state,null)}function Qo(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Wo;var a=t.contextType;"object"==typeof a&&null!==a?o.context=Bo(a):(a=Fr(t)?Ir:jr.current,o.context=Dr(e,a)),null!==(a=e.updateQueue)&&(zo(e,a,n,o,r),o.state=e.memoizedState),"function"==typeof(a=t.getDerivedStateFromProps)&&(Xo(e,t,a,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&&Yo.enqueueReplaceState(o,o.state,null),null!==(a=e.updateQueue)&&(zo(e,a,n,o,r),o.state=e.memoizedState)),"function"==typeof o.componentDidMount&&(e.effectTag|=4)}var Ko=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 i(Error(309));r=n.stateNode}if(!r)throw i(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 i(Error(284));if(!n._owner)throw i(Error(290),e)}return e}function Jo(e,t){if("textarea"!==e.type)throw i(Error(31),"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function ea(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=Dl(e,t)).index=0,e.sibling=null,e}function a(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=Ul(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=Fl(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=Vl(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function p(e,t,n,r,a){return null===t||7!==t.tag?((t=zl(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ul(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Ze:return(n=Fl(t.type,t.key,t.props,null,e.mode,n)).ref=$o(e,null,t),n.return=e,n;case Qe:return(t=Vl(t,e.mode,n)).return=e,t}if(Ko(t)||ct(t))return(t=zl(t,e.mode,n,null)).return=e,t;Jo(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===Ke?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(Ko(n)||ct(n))return null!==o?null:p(e,t,n,r,null);Jo(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===Ke?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(Ko(r)||ct(r))return p(t,e=e.get(n)||null,r,o,null);Jo(t,r)}return null}function g(o,i,l,s){for(var c=null,u=null,p=i,g=i=0,m=null;null!==p&&g<l.length;g++){p.index>g?(m=p,p=null):m=p.sibling;var v=f(o,p,l[g],s);if(null===v){null===p&&(p=m);break}e&&p&&null===v.alternate&&t(o,p),i=a(v,i,g),null===u?c=v:u.sibling=v,u=v,p=m}if(g===l.length)return n(o,p),c;if(null===p){for(;g<l.length;g++)null!==(p=d(o,l[g],s))&&(i=a(p,i,g),null===u?c=p:u.sibling=p,u=p);return c}for(p=r(o,p);g<l.length;g++)null!==(m=h(p,o,g,l[g],s))&&(e&&null!==m.alternate&&p.delete(null===m.key?g:m.key),i=a(m,i,g),null===u?c=m:u.sibling=m,u=m);return e&&p.forEach((function(e){return t(o,e)})),c}function m(o,l,s,c){var u=ct(s);if("function"!=typeof u)throw i(Error(150));if(null==(s=u.call(s)))throw i(Error(151));for(var p=u=null,g=l,m=l=0,v=null,b=s.next();null!==g&&!b.done;m++,b=s.next()){g.index>m?(v=g,g=null):v=g.sibling;var y=f(o,g,b.value,c);if(null===y){null===g&&(g=v);break}e&&g&&null===y.alternate&&t(o,g),l=a(y,l,m),null===p?u=y:p.sibling=y,p=y,g=v}if(b.done)return n(o,g),u;if(null===g){for(;!b.done;m++,b=s.next())null!==(b=d(o,b.value,c))&&(l=a(b,l,m),null===p?u=b:p.sibling=b,p=b);return u}for(g=r(o,g);!b.done;m++,b=s.next())null!==(b=h(g,o,m,b.value,c))&&(e&&null!==b.alternate&&g.delete(null===b.key?m:b.key),l=a(b,l,m),null===p?u=b:p.sibling=b,p=b);return e&&g.forEach((function(e){return t(o,e)})),u}return function(e,r,a,s){var c="object"==typeof a&&null!==a&&a.type===Ke&&null===a.key;c&&(a=a.props.children);var u="object"==typeof a&&null!==a;if(u)switch(a.$$typeof){case Ze:e:{for(u=a.key,c=r;null!==c;){if(c.key===u){if(7===c.tag?a.type===Ke:c.elementType===a.type){n(e,c.sibling),(r=o(c,a.type===Ke?a.props.children:a.props)).ref=$o(e,c,a),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===Ke?((r=zl(a.props.children,e.mode,s,a.key)).return=e,e=r):((s=Fl(a.type,a.key,a.props,null,e.mode,s)).ref=$o(e,r,a),s.return=e,e=s)}return l(e);case Qe:e:{for(c=a.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=o(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Vl(a,e.mode,s)).return=e,e=r}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,a)).return=e,e=r):(n(e,r),(r=Ul(a,e.mode,s)).return=e,e=r),l(e);if(Ko(a))return g(e,r,a,s);if(ct(a))return m(e,r,a,s);if(u&&Jo(e,a),void 0===a&&!c)switch(e.tag){case 1:case 0:throw e=e.type,i(Error(152),e.displayName||e.name||"Component")}return n(e,r)}}var ta=ea(!0),na=ea(!1),ra={},oa={current:ra},aa={current:ra},ia={current:ra};function la(e){if(e===ra)throw i(Error(174));return e}function sa(e,t){Rr(ia,t),Rr(aa,e),Rr(oa,ra);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ur(null,"");break;default:t=ur(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Nr(oa),Rr(oa,t)}function ca(e){Nr(oa),Nr(aa),Nr(ia)}function ua(e){la(ia.current);var t=la(oa.current),n=ur(t,e.type);t!==n&&(Rr(aa,e),Rr(oa,n))}function pa(e){aa.current===e&&(Nr(oa),Nr(aa))}var da={current:0};function fa(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 ha=Ye.ReactCurrentDispatcher,ga=0,ma=null,va=null,ba=null,ya=null,xa=null,wa=null,_a=0,Ca=null,ka=0,Ea=!1,Sa=null,Pa=0;function Oa(){throw i(Error(321))}function Ta(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 Ba(e,t,n,r,o,a){if(ga=a,ma=t,ba=null!==e?e.memoizedState:null,ha.current=null===ba?Ha:Wa,t=n(r,o),Ea){do{Ea=!1,Pa+=1,ba=null!==e?e.memoizedState:null,wa=ya,Ca=xa=va=null,ha.current=Wa,t=n(r,o)}while(Ea);Sa=null,Pa=0}if(ha.current=Va,(e=ma).memoizedState=ya,e.expirationTime=_a,e.updateQueue=Ca,e.effectTag|=ka,e=null!==va&&null!==va.next,ga=0,wa=xa=ya=ba=va=ma=null,_a=0,Ca=null,ka=0,e)throw i(Error(300));return t}function Ma(){ha.current=Va,ga=0,wa=xa=ya=ba=va=ma=null,_a=0,Ca=null,ka=0,Ea=!1,Sa=null,Pa=0}function Na(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===xa?ya=xa=e:xa=xa.next=e,xa}function Ra(){if(null!==wa)wa=(xa=wa).next,ba=null!==(va=ba)?va.next:null;else{if(null===ba)throw i(Error(310));var e={memoizedState:(va=ba).memoizedState,baseState:va.baseState,queue:va.queue,baseUpdate:va.baseUpdate,next:null};xa=null===xa?ya=e:xa.next=e,ba=va.next}return xa}function La(e,t){return"function"==typeof t?t(e):t}function ja(e){var t=Ra(),n=t.queue;if(null===n)throw i(Error(311));if(n.lastRenderedReducer=e,0<Pa){var r=n.dispatch;if(null!==Sa){var o=Sa.get(n);if(void 0!==o){Sa.delete(n);var a=t.memoizedState;do{a=e(a,o.action),o=o.next}while(null!==o);return tn(a,t.memoizedState)||(ti=!0),t.memoizedState=a,t.baseUpdate===n.last&&(t.baseState=a),n.lastRenderedState=a,[a,r]}}return[t.memoizedState,r]}r=n.last;var l=t.baseUpdate;if(a=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<ga?(u||(u=!0,s=l,o=a),p>_a&&(_a=p)):(wl(p,c.suspenseConfig),a=c.eagerReducer===e?c.eagerState:e(a,c.action)),l=c,c=c.next}while(null!==c&&c!==r);u||(s=l,o=a),tn(a,t.memoizedState)||(ti=!0),t.memoizedState=a,t.baseUpdate=s,t.baseState=o,n.lastRenderedState=a}return[t.memoizedState,n.dispatch]}function Aa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===Ca?(Ca={lastEffect:null}).lastEffect=e.next=e:null===(t=Ca.lastEffect)?Ca.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Ca.lastEffect=e),e}function Ia(e,t,n,r){var o=Na();ka|=e,o.memoizedState=Aa(t,n,void 0,void 0===r?null:r)}function Da(e,t,n,r){var o=Ra();r=void 0===r?null:r;var a=void 0;if(null!==va){var i=va.memoizedState;if(a=i.destroy,null!==r&&Ta(r,i.deps))return void Aa(0,n,a,r)}ka|=e,o.memoizedState=Aa(t,n,a,r)}function Fa(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 za(){}function Ua(e,t,n){if(!(25>Pa))throw i(Error(301));var r=e.alternate;if(e===ma||null!==r&&r===ma)if(Ea=!0,e={expirationTime:ga,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===Sa&&(Sa=new Map),void 0===(n=Sa.get(t)))Sa.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var o=sl(),a=Ho.suspense;a={expirationTime:o=cl(o,e,a),suspenseConfig:a,action:n,eagerReducer:null,eagerState:null,next:null};var l=t.last;if(null===l)a.next=a;else{var s=l.next;null!==s&&(a.next=s),l.next=a}if(t.last=a,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var c=t.lastRenderedState,u=r(c,n);if(a.eagerReducer=r,a.eagerState=u,tn(u,c))return}catch(e){}pl(e,o)}}var Va={readContext:Bo,useCallback:Oa,useContext:Oa,useEffect:Oa,useImperativeHandle:Oa,useLayoutEffect:Oa,useMemo:Oa,useReducer:Oa,useRef:Oa,useState:Oa,useDebugValue:Oa,useResponder:Oa},Ha={readContext:Bo,useCallback:function(e,t){return Na().memoizedState=[e,void 0===t?null:t],e},useContext:Bo,useEffect:function(e,t){return Ia(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ia(4,36,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ia(4,36,e,t)},useMemo:function(e,t){var n=Na();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Na();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=Ua.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Na().memoizedState=e},useState:function(e){var t=Na();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:La,lastRenderedState:e}).dispatch=Ua.bind(null,ma,e),[t.memoizedState,e]},useDebugValue:za,useResponder:on},Wa={readContext:Bo,useCallback:function(e,t){var n=Ra();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ta(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:Bo,useEffect:function(e,t){return Da(516,192,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Da(4,36,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Da(4,36,e,t)},useMemo:function(e,t){var n=Ra();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ta(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:ja,useRef:function(){return Ra().memoizedState},useState:function(e){return ja(La)},useDebugValue:za,useResponder:on},Xa=null,Ya=null,Ga=!1;function qa(e,t){var n=Al(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 Za(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 Qa(e){if(Ga){var t=Ya;if(t){var n=t;if(!Za(e,t)){if(!(t=Tr(n.nextSibling))||!Za(e,t))return e.effectTag|=2,Ga=!1,void(Xa=e);qa(Xa,n)}Xa=e,Ya=Tr(t.firstChild)}else e.effectTag|=2,Ga=!1,Xa=e}}function Ka(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;Xa=e}function $a(e){if(e!==Xa)return!1;if(!Ga)return Ka(e),Ga=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Sr(t,e.memoizedProps))for(t=Ya;t;)qa(e,t),t=Tr(t.nextSibling);return Ka(e),Ya=Xa?Tr(e.stateNode.nextSibling):null,!0}function Ja(){Ya=Xa=null,Ga=!1}var ei=Ye.ReactCurrentOwner,ti=!1;function ni(e,t,n,r){t.child=null===e?na(t,null,n,r):ta(t,e.child,n,r)}function ri(e,t,n,r,o){n=n.render;var a=t.ref;return To(t,o),r=Ba(e,t,n,r,a,o),null===e||ti?(t.effectTag|=1,ni(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),gi(e,t,o))}function oi(e,t,n,r,o,a){if(null===e){var i=n.type;return"function"!=typeof i||Il(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Fl(n.type,null,r,null,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ai(e,t,i,r,o,a))}return i=e.child,o<a&&(o=i.memoizedProps,(n=null!==(n=n.compare)?n:rn)(o,r)&&e.ref===t.ref)?gi(e,t,a):(t.effectTag|=1,(e=Dl(i,r)).ref=t.ref,e.return=t,t.child=e)}function ai(e,t,n,r,o,a){return null!==e&&rn(e.memoizedProps,r)&&e.ref===t.ref&&(ti=!1,o<a)?gi(e,t,a):li(e,t,n,r,a)}function ii(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function li(e,t,n,r,o){var a=Fr(n)?Ir:jr.current;return a=Dr(t,a),To(t,o),n=Ba(e,t,n,r,a,o),null===e||ti?(t.effectTag|=1,ni(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),gi(e,t,o))}function si(e,t,n,r,o){if(Fr(n)){var a=!0;Wr(t)}else a=!1;if(To(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),qo(t,n,r),Qo(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=Bo(c):c=Dr(t,c=Fr(n)?Ir:jr.current);var u=n.getDerivedStateFromProps,p="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;p||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==c)&&Zo(t,i,r,c),Mo=!1;var d=t.memoizedState;s=i.state=d;var f=t.updateQueue;null!==f&&(zo(t,f,r,i,o),s=t.memoizedState),l!==r||d!==s||Ar.current||Mo?("function"==typeof u&&(Xo(t,n,u,r),s=t.memoizedState),(l=Mo||Go(t,n,l,r,d,s,c))?(p||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.effectTag|=4)):("function"==typeof i.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=c,r=l):("function"==typeof i.componentDidMount&&(t.effectTag|=4),r=!1)}else i=t.stateNode,l=t.memoizedProps,i.props=t.type===t.elementType?l:xo(t.type,l),s=i.context,"object"==typeof(c=n.contextType)&&null!==c?c=Bo(c):c=Dr(t,c=Fr(n)?Ir:jr.current),(p="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==c)&&Zo(t,i,r,c),Mo=!1,s=t.memoizedState,d=i.state=s,null!==(f=t.updateQueue)&&(zo(t,f,r,i,o),d=t.memoizedState),l!==r||s!==d||Ar.current||Mo?("function"==typeof u&&(Xo(t,n,u,r),d=t.memoizedState),(u=Mo||Go(t,n,l,r,s,d,c))?(p||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,d,c),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,d,c)),"function"==typeof i.componentDidUpdate&&(t.effectTag|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),i.props=r,i.state=d,i.context=c,r=u):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),r=!1);return ci(e,t,n,r,a,o)}function ci(e,t,n,r,o,a){ii(e,t);var i=0!=(64&t.effectTag);if(!r&&!i)return o&&Xr(t,n,!1),gi(e,t,a);r=t.stateNode,ei.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&i?(t.child=ta(t,e.child,null,a),t.child=ta(t,null,l,a)):ni(e,t,l,a),t.memoizedState=r.state,o&&Xr(t,n,!0),t.child}function ui(e){var t=e.stateNode;t.pendingContext?Vr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Vr(0,t.context,!1),sa(e,t.containerInfo)}var pi={};function di(e,t,n){var r,o=t.mode,a=t.pendingProps,i=da.current,l=null,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&i)&&(null===e||null!==e.memoizedState)),r?(l=pi,s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(i|=1),Rr(da,i&=1),null===e)if(s){if(a=a.fallback,(e=zl(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=zl(a,o,n,null)).return=t,e.sibling=n,o=e}else o=n=na(t,null,a.children,n);else{if(null!==e.memoizedState)if(o=(i=e.child).sibling,s){if(a=a.fallback,(n=Dl(i,i.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==i.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;(a=Dl(o,a,o.expirationTime)).return=t,n.sibling=a,o=n,n.childExpirationTime=0,n=a}else o=n=ta(t,i.child,a.children,n);else if(i=e.child,s){if(s=a.fallback,(a=zl(null,o,0,null)).return=t,a.child=i,null!==i&&(i.return=a),0==(2&t.mode))for(i=null!==t.memoizedState?t.child.child:t.child,a.child=i;null!==i;)i.return=a,i=i.sibling;(n=zl(s,o,n,null)).return=t,a.sibling=n,n.effectTag|=2,o=a,a.childExpirationTime=0}else n=o=ta(t,i,a.children,n);t.stateNode=e.stateNode}return t.memoizedState=l,t.child=o,n}function fi(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,last:r,tail:n,tailExpiration:0,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o)}function hi(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(ni(e,t,r.children,n),0!=(2&(r=da.current)))r=1&r|2,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 i=e.alternate;null!==i&&i.expirationTime<n&&(i.expirationTime=n),Oo(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&=1}if(Rr(da,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===fa(r)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),fi(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(r=o.alternate)&&null===fa(r)){t.child=o;break}r=o.sibling,o.sibling=n,n=o,o=r}fi(t,!0,n,null,a);break;case"together":fi(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function gi(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw i(Error(153));if(null!==t.child){for(n=Dl(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dl(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function mi(e){e.effectTag|=4}var vi,bi,yi;function xi(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 wi(e){switch(e.tag){case 1:Fr(e.type)&&zr();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:if(ca(),Ur(),0!=(64&(t=e.effectTag)))throw i(Error(285));return e.effectTag=-2049&t|64,e;case 5:return pa(e),null;case 13:return Nr(da),2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 19:return Nr(da),null;case 4:return ca(),null;case 10:return Po(e),null;default:return null}}function _i(e,t){return{value:e,source:t,stack:pt(t)}}vi=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}},bi=function(e,t,n,r,a){var i=e.memoizedProps;if(i!==r){var l=t.stateNode;switch(la(oa.current),e=null,n){case"input":i=_t(l,i),r=_t(l,r),e=[];break;case"option":i=tr(l,i),r=tr(l,r),e=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":i=rr(l,i),r=rr(l,r),e=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(l.onclick=_r)}yr(n,r),l=n=void 0;var s=null;for(n in i)if(!r.hasOwnProperty(n)&&i.hasOwnProperty(n)&&null!=i[n])if("style"===n){var c=i[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!=i?i[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(a,n),e||c===u||(e=[])):(e=e||[]).push(n,u))}s&&(e=e||[]).push("style",s),a=e,(t.updateQueue=a)&&mi(t)}},yi=function(e,t,n,r){n!==r&&mi(t)};var Ci="function"==typeof WeakSet?WeakSet:Set;function ki(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 Ei(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Tl(e,t)}else t.current=null}function Si(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if(0!=(r.tag&e)){var o=r.destroy;r.destroy=void 0,void 0!==o&&o()}0!=(r.tag&t)&&(o=r.create,r.destroy=o()),r=r.next}while(r!==n)}}function Pi(e,t){switch("function"==typeof Ll&&Ll(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;ho(97<t?97:t,(function(){var t=r;do{var n=t.destroy;if(void 0!==n){var o=e;try{n()}catch(e){Tl(o,e)}}t=t.next}while(t!==r)}))}break;case 1:Ei(e),"function"==typeof(t=e.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Tl(e,t)}}(e,t);break;case 5:Ei(e);break;case 4:Mi(e,t)}}function Oi(e,t){for(var n=e;;)if(Pi(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 Ti(e){return 5===e.tag||3===e.tag||4===e.tag}function Bi(e){e:{for(var t=e.return;null!==t;){if(Ti(t)){var n=t;break e}t=t.return}throw i(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 i(Error(161))}16&n.effectTag&&(fr(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Ti(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 a=5===o.tag||6===o.tag;if(a||20===o.tag){var l=a?o.stateNode:o.stateNode.instance;if(n)if(r){var s=l;l=n,8===(a=t).nodeType?a.parentNode.insertBefore(s,l):a.insertBefore(s,l)}else t.insertBefore(l,n);else r?(8===(s=t).nodeType?(a=s.parentNode).insertBefore(l,s):(a=s).appendChild(l),null!=(s=s._reactRootContainer)||null!==a.onclick||(a.onclick=_r)):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 Mi(e,t){for(var n=e,r=!1,o=void 0,a=void 0;;){if(!r){r=n.return;e:for(;;){if(null===r)throw i(Error(160));switch(o=r.stateNode,r.tag){case 5:a=!1;break e;case 3:case 4:o=o.containerInfo,a=!0;break e}r=r.return}r=!0}if(5===n.tag||6===n.tag)if(Oi(n,t),a){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,Oi(n,t),a?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,a=!0,n.child.return=n,n=n.child;continue}}else if(Pi(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 Ni(e,t){switch(t.tag){case 0:case 11:case 14:case 15:Si(4,8,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 a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[j]=r,"input"===e&&"radio"===r.type&&null!=r.name&&kt(n,r),xr(e,o),t=xr(e,r),o=0;o<a.length;o+=2){var l=a[o],s=a[o+1];"style"===l?vr(n,s):"dangerouslySetInnerHTML"===l?dr(n,s):"children"===l?fr(n,s):xt(n,l,s,t)}switch(e){case"input":Et(n,r);break;case"textarea":ar(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 i(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,Zi=uo()),null!==n)e:for(e=n;;){if(5===e.tag)a=e.stateNode,r?"function"==typeof(a=a.style).setProperty?a.setProperty("display","none","important"):a.display="none":(a=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,a.style.display=mr("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState){(a=e.child.sibling).return=e,e=a;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}Ri(t);break;case 19:Ri(t);break;case 17:case 20:break;default:throw i(Error(163))}}function Ri(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ci),t.forEach((function(t){var r=Ml.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var Li="function"==typeof WeakMap?WeakMap:Map;function ji(e,t,n){(n=Lo(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ki||(Ki=!0,$i=r),ki(e,t)},n}function Ai(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 ki(e,t),r(o)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ji?Ji=new Set([this]):Ji.add(this),ki(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Ii=Math.ceil,Di=Ye.ReactCurrentDispatcher,Fi=Ye.ReactCurrentOwner,zi=0,Ui=null,Vi=null,Hi=0,Wi=0,Xi=1073741823,Yi=1073741823,Gi=null,qi=!1,Zi=0,Qi=null,Ki=!1,$i=null,Ji=null,el=!1,tl=null,nl=90,rl=0,ol=null,al=0,il=null,ll=0;function sl(){return 0!=(48&zi)?1073741821-(uo()/10|0):0!==ll?ll:ll=1073741821-(uo()/10|0)}function cl(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=po();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&zi))return Hi;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 i(Error(326))}return null!==Ui&&e===Hi&&--e,e}var ul=0;function pl(e,t){if(50<al)throw al=0,il=null,i(Error(185));if(null!==(e=dl(e,t))){e.pingTime=0;var n=po();if(1073741823===t)if(0!=(8&zi)&&0==(48&zi))for(var r=xl(e,1073741823,!0);null!==r;)r=r(!0);else fl(e,99,1073741823),0===zi&&vo();else fl(e,n,t);0==(4&zi)||98!==n&&99!==n||(null===ol?ol=new Map([[e,t]]):(void 0===(n=ol.get(e))||n>t)&&ol.set(e,t))}}function dl(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 fl(e,t,n){if(e.callbackExpirationTime<n){var r=e.callbackNode;null!==r&&r!==oo&&qr(r),e.callbackExpirationTime=n,1073741823===n?e.callbackNode=mo(hl.bind(null,e,xl.bind(null,e,n))):(r=null,1!==n&&(r={timeout:10*(1073741821-n)-uo()}),e.callbackNode=go(t,hl.bind(null,e,xl.bind(null,e,n)),r))}}function hl(e,t,n){var r=e.callbackNode,o=null;try{return null!==(o=t(n))?hl.bind(null,e,o):null}finally{null===o&&r===e.callbackNode&&(e.callbackNode=null,e.callbackExpirationTime=0)}}function gl(){0==(49&zi)&&(function(){if(null!==ol){var e=ol;ol=null,e.forEach((function(e,t){mo(xl.bind(null,t,e))})),vo()}}(),Sl())}function ml(e,t){var n=zi;zi|=1;try{return e(t)}finally{0===(zi=n)&&vo()}}function vl(e,t,n,r){var o=zi;zi|=4;try{return ho(98,e.bind(null,t,n,r))}finally{0===(zi=o)&&vo()}}function bl(e,t){var n=zi;zi&=-2,zi|=8;try{return e(t)}finally{0===(zi=n)&&vo()}}function yl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Or(n)),null!==Vi)for(n=Vi.return;null!==n;){var r=n;switch(r.tag){case 1:var o=r.type.childContextTypes;null!=o&&zr();break;case 3:ca(),Ur();break;case 5:pa(r);break;case 4:ca();break;case 13:case 19:Nr(da);break;case 10:Po(r)}n=n.return}Ui=e,Vi=Dl(e.current,null),Hi=t,Wi=0,Yi=Xi=1073741823,Gi=null,qi=!1}function xl(e,t,n){if(0!=(48&zi))throw i(Error(327));if(e.firstPendingTime<t)return null;if(n&&e.finishedExpirationTime===t)return kl.bind(null,e);if(Sl(),e!==Ui||t!==Hi)yl(e,t);else if(3===Wi)if(qi)yl(e,t);else{var r=e.lastPendingTime;if(r<t)return xl.bind(null,e,r)}if(null!==Vi){r=zi,zi|=16;var o=Di.current;if(null===o&&(o=Va),Di.current=Va,n){if(1073741823!==t){var a=sl();if(a<t)return zi=r,Eo(),Di.current=o,xl.bind(null,e,a)}}else ll=0;for(;;)try{if(n)for(;null!==Vi;)Vi=_l(Vi);else for(;null!==Vi&&!Zr();)Vi=_l(Vi);break}catch(n){if(Eo(),Ma(),null===(a=Vi)||null===a.return)throw yl(e,t),zi=r,n;e:{var l=e,s=a.return,c=a,u=n,p=Hi;if(c.effectTag|=1024,c.firstEffect=c.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var d=u,f=0!=(1&da.current);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,Ao(c,p))),c.expirationTime=1073741823;break e}c=l,l=p,null===(f=c.pingCache)?(f=c.pingCache=new Li,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=Bl.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))}4!==Wi&&(Wi=1),u=_i(u,c),c=s;do{switch(c.tag){case 3:c.effectTag|=2048,c.expirationTime=p,Io(c,p=ji(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===Ji||!Ji.has(s)))){c.effectTag|=2048,c.expirationTime=p,Io(c,p=Ai(c,d,p));break e}}c=c.return}while(null!==c)}Vi=Cl(a)}if(zi=r,Eo(),Di.current=o,null!==Vi)return xl.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)&&(go(97,(function(){return n._onComplete(),null})),!0)}(e,t))return null;switch(Ui=null,Wi){case 0:throw i(Error(328));case 1:return(r=e.lastPendingTime)<t?xl.bind(null,e,r):n?kl.bind(null,e):(yl(e,t),mo(xl.bind(null,e,t)),null);case 2:return 1073741823===Xi&&!n&&10<(n=Zi+500-uo())?qi?(yl(e,t),xl.bind(null,e,t)):(r=e.lastPendingTime)<t?xl.bind(null,e,r):(e.timeoutHandle=Pr(kl.bind(null,e),n),null):kl.bind(null,e);case 3:if(!n){if(qi)return yl(e,t),xl.bind(null,e,t);if((n=e.lastPendingTime)<t)return xl.bind(null,e,n);if(1073741823!==Yi?n=10*(1073741821-Yi)-uo():1073741823===Xi?n=0:(n=10*(1073741821-Xi)-5e3,0>(n=(r=uo())-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*Ii(n/1960))-n)&&(n=t)),10<n)return e.timeoutHandle=Pr(kl.bind(null,e),n),null}return kl.bind(null,e);case 4:return!n&&1073741823!==Xi&&null!==Gi&&(r=Xi,0>=(t=0|(o=Gi).busyMinDurationMs)?t=0:(n=0|o.busyDelayMs,t=(r=uo()-(10*(1073741821-r)-(0|o.timeoutMs||5e3)))<=n?0:n+t-r),10<t)?(e.timeoutHandle=Pr(kl.bind(null,e),t),null):kl.bind(null,e);default:throw i(Error(329))}}function wl(e,t){e<Xi&&1<e&&(Xi=e),null!==t&&e<Yi&&1<e&&(Yi=e,Gi=t)}function _l(e){var t=Nl(e.alternate,e,Hi);return e.memoizedProps=e.pendingProps,null===t&&(t=Cl(e)),Fi.current=null,t}function Cl(e){Vi=e;do{var t=Vi.alternate;if(e=Vi.return,0==(1024&Vi.effectTag)){e:{var n=t,r=Hi,a=(t=Vi).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Fr(t.type)&&zr();break;case 3:ca(),Ur(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==n&&null!==n.child||($a(t),t.effectTag&=-3);break;case 5:pa(t),r=la(ia.current);var l=t.type;if(null!==n&&null!=t.stateNode)bi(n,t,l,a,r),n.ref!==t.ref&&(t.effectTag|=128);else if(a){var s=la(oa.current);if($a(t)){a=void 0,l=(n=t).stateNode;var c=n.type,u=n.memoizedProps;switch(l[L]=n,l[j]=u,c){case"iframe":case"object":case"embed":jn("load",l);break;case"video":case"audio":for(var p=0;p<ne.length;p++)jn(ne[p],l);break;case"source":jn("error",l);break;case"img":case"image":case"link":jn("error",l),jn("load",l);break;case"form":jn("reset",l),jn("submit",l);break;case"details":jn("toggle",l);break;case"input":Ct(l,u),jn("invalid",l),wr(r,"onChange");break;case"select":l._wrapperState={wasMultiple:!!u.multiple},jn("invalid",l),wr(r,"onChange");break;case"textarea":or(l,u),jn("invalid",l),wr(r,"onChange")}for(a in yr(c,u),p=null,u)u.hasOwnProperty(a)&&(s=u[a],"children"===a?"string"==typeof s?l.textContent!==s&&(p=["children",s]):"number"==typeof s&&l.textContent!==""+s&&(p=["children",""+s]):f.hasOwnProperty(a)&&null!=s&&wr(r,a));switch(c){case"input":We(l),St(l,u,!0);break;case"textarea":We(l),ir(l);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(l.onclick=_r)}r=p,n.updateQueue=r,null!==r&&mi(t)}else{u=l,n=a,c=t,p=9===r.nodeType?r:r.ownerDocument,s===lr&&(s=cr(u)),s===lr?"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)[L]=c,u[j]=n,vi(n=u,t),c=n;var d=r,h=xr(l,a);switch(l){case"iframe":case"object":case"embed":jn("load",c),r=a;break;case"video":case"audio":for(r=0;r<ne.length;r++)jn(ne[r],c);r=a;break;case"source":jn("error",c),r=a;break;case"img":case"image":case"link":jn("error",c),jn("load",c),r=a;break;case"form":jn("reset",c),jn("submit",c),r=a;break;case"details":jn("toggle",c),r=a;break;case"input":Ct(c,a),r=_t(c,a),jn("invalid",c),wr(d,"onChange");break;case"option":r=tr(c,a);break;case"select":c._wrapperState={wasMultiple:!!a.multiple},r=o({},a,{value:void 0}),jn("invalid",c),wr(d,"onChange");break;case"textarea":or(c,a),r=rr(c,a),jn("invalid",c),wr(d,"onChange");break;default:r=a}yr(l,r),u=void 0,p=l,s=c;var g=r;for(u in g)if(g.hasOwnProperty(u)){var m=g[u];"style"===u?vr(s,m):"dangerouslySetInnerHTML"===u?null!=(m=m?m.__html:void 0)&&dr(s,m):"children"===u?"string"==typeof m?("textarea"!==p||""!==m)&&fr(s,m):"number"==typeof m&&fr(s,""+m):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(f.hasOwnProperty(u)?null!=m&&wr(d,u):null!=m&&xt(s,u,m,h))}switch(l){case"input":We(c),St(c,a,!1);break;case"textarea":We(c),ir(c);break;case"option":null!=a.value&&c.setAttribute("value",""+wt(a.value));break;case"select":r=c,c=a,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=_r)}Er(l,a)&&mi(t),t.stateNode=n}null!==t.ref&&(t.effectTag|=128)}else if(null===t.stateNode)throw i(Error(166));break;case 6:if(n&&null!=t.stateNode)yi(0,t,n.memoizedProps,a);else{if("string"!=typeof a&&null===t.stateNode)throw i(Error(166));n=la(ia.current),la(oa.current),$a(t)?(r=t.stateNode,n=t.memoizedProps,r[L]=t,r.nodeValue!==n&&mi(t)):(r=t,(n=(9===n.nodeType?n:n.ownerDocument).createTextNode(a))[L]=t,r.stateNode=n)}break;case 11:break;case 13:if(Nr(da),a=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=r;break e}r=null!==a,a=!1,null===n?$a(t):(a=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&&!a&&0!=(2&t.mode)&&(null===n&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&da.current)?0===Wi&&(Wi=2):0!==Wi&&2!==Wi||(Wi=3)),(r||a)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:ca();break;case 10:Po(t);break;case 9:case 14:break;case 17:Fr(t.type)&&zr();break;case 18:break;case 19:if(Nr(da),null===(a=t.memoizedState))break;if(l=0!=(64&t.effectTag),null===(c=a.rendering)){if(l)xi(a,!1);else if(0!==Wi||null!==n&&0!=(64&n.effectTag))for(n=t.child;null!==n;){if(null!==(c=fa(n))){for(t.effectTag|=64,xi(a,!1),null!==(n=c.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),t.firstEffect=t.lastEffect=null,n=t.child;null!==n;)l=r,(a=n).effectTag&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(c=a.alternate)?(a.childExpirationTime=0,a.expirationTime=l,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null):(a.childExpirationTime=c.childExpirationTime,a.expirationTime=c.expirationTime,a.child=c.child,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,l=c.dependencies,a.dependencies=null===l?null:{expirationTime:l.expirationTime,firstContext:l.firstContext,responders:l.responders}),n=n.sibling;Rr(da,1&da.current|2),t=t.child;break e}n=n.sibling}}else{if(!l)if(null!==(n=fa(c))){if(t.effectTag|=64,l=!0,xi(a,!0),null===a.tail&&"hidden"===a.tailMode){null!==(r=n.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),null!==(t=t.lastEffect=a.lastEffect)&&(t.nextEffect=null);break}}else uo()>a.tailExpiration&&1<r&&(t.effectTag|=64,l=!0,xi(a,!1),t.expirationTime=t.childExpirationTime=r-1);a.isBackwards?(c.sibling=t.child,t.child=c):(null!==(r=a.last)?r.sibling=c:t.child=c,a.last=c)}if(null!==a.tail){0===a.tailExpiration&&(a.tailExpiration=uo()+500),r=a.tail,a.rendering=r,a.tail=r.sibling,a.lastEffect=t.lastEffect,r.sibling=null,n=da.current,Rr(da,n=l?1&n|2:1&n),t=r;break e}break;case 20:break;default:throw i(Error(156))}t=null}if(r=Vi,1===Hi||1!==r.childExpirationTime){for(n=0,a=r.child;null!==a;)(l=a.expirationTime)>n&&(n=l),(c=a.childExpirationTime)>n&&(n=c),a=a.sibling;r.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(1024&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Vi.firstEffect),null!==Vi.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Vi.firstEffect),e.lastEffect=Vi.lastEffect),1<Vi.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Vi:e.firstEffect=Vi,e.lastEffect=Vi))}else{if(null!==(t=wi(Vi)))return t.effectTag&=1023,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=1024)}if(null!==(t=Vi.sibling))return t;Vi=e}while(null!==Vi);return 0===Wi&&(Wi=4),null}function kl(e){var t=po();return ho(99,El.bind(null,e,t)),null!==tl&&go(97,(function(){return Sl(),null})),null}function El(e,t){if(Sl(),0!=(48&zi))throw i(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 i(Error(177));e.callbackNode=null,e.callbackExpirationTime=0;var o=n.expirationTime,a=n.childExpirationTime;if(o=a>o?a:o,e.firstPendingTime=o,o<e.lastPendingTime&&(e.lastPendingTime=o),e===Ui&&(Vi=Ui=null,Hi=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){a=zi,zi|=32,Fi.current=null,Cr=Ln;var l=Xn();if(Yn(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,g=0,m=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&&++g===u&&(f=d),b===p&&++m===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;kr={focusedElem:l,selectionRange:s},Ln=!1,Qi=o;do{try{for(;null!==Qi;){if(0!=(256&Qi.effectTag)){var x=Qi.alternate;switch((l=Qi).tag){case 0:case 11:case 15:Si(2,0,l);break;case 1:if(256&l.effectTag&&null!==x){var w=x.memoizedProps,_=x.memoizedState,C=l.stateNode,k=C.getSnapshotBeforeUpdate(l.elementType===l.type?w:xo(l.type,w),_);C.__reactInternalSnapshotBeforeUpdate=k}break;case 3:case 5:case 6:case 4:case 17:break;default:throw i(Error(163))}}Qi=Qi.nextEffect}}catch(e){if(null===Qi)throw i(Error(330));Tl(Qi,e),Qi=Qi.nextEffect}}while(null!==Qi);Qi=o;do{try{for(x=t;null!==Qi;){var E=Qi.effectTag;if(16&E&&fr(Qi.stateNode,""),128&E){var S=Qi.alternate;if(null!==S){var P=S.ref;null!==P&&("function"==typeof P?P(null):P.current=null)}}switch(14&E){case 2:Bi(Qi),Qi.effectTag&=-3;break;case 6:Bi(Qi),Qi.effectTag&=-3,Ni(Qi.alternate,Qi);break;case 4:Ni(Qi.alternate,Qi);break;case 8:Mi(w=Qi,x),w.return=null,w.child=null,w.memoizedState=null,w.updateQueue=null,w.dependencies=null;var O=w.alternate;null!==O&&(O.return=null,O.child=null,O.memoizedState=null,O.updateQueue=null,O.dependencies=null)}Qi=Qi.nextEffect}}catch(e){if(null===Qi)throw i(Error(330));Tl(Qi,e),Qi=Qi.nextEffect}}while(null!==Qi);if(P=kr,S=Xn(),E=P.focusedElem,x=P.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!==x&&Yn(E)&&(S=x.start,void 0===(P=x.end)&&(P=S),"selectionStart"in E?(E.selectionStart=S,E.selectionEnd=Math.min(P,E.value.length)):(P=(S=E.ownerDocument||document)&&S.defaultView||window).getSelection&&(P=P.getSelection(),w=E.textContent.length,O=Math.min(x.start,w),x=void 0===x.end?O:Math.min(x.end,w),!P.extend&&O>x&&(w=x,x=O,O=w),w=Wn(E,O),_=Wn(E,x),w&&_&&(1!==P.rangeCount||P.anchorNode!==w.node||P.anchorOffset!==w.offset||P.focusNode!==_.node||P.focusOffset!==_.offset)&&((S=S.createRange()).setStart(w.node,w.offset),P.removeAllRanges(),O>x?(P.addRange(S),P.extend(_.node,_.offset)):(S.setEnd(_.node,_.offset),P.addRange(S))))),S=[];for(P=E;P=P.parentNode;)1===P.nodeType&&S.push({element:P,left:P.scrollLeft,top:P.scrollTop});for("function"==typeof E.focus&&E.focus(),E=0;E<S.length;E++)(P=S[E]).element.scrollLeft=P.left,P.element.scrollTop=P.top}kr=null,Ln=!!Cr,Cr=null,e.current=n,Qi=o;do{try{for(E=r;null!==Qi;){var T=Qi.effectTag;if(36&T){var B=Qi.alternate;switch(P=E,(S=Qi).tag){case 0:case 11:case 15:Si(16,32,S);break;case 1:var M=S.stateNode;if(4&S.effectTag)if(null===B)M.componentDidMount();else{var N=S.elementType===S.type?B.memoizedProps:xo(S.type,B.memoizedProps);M.componentDidUpdate(N,B.memoizedState,M.__reactInternalSnapshotBeforeUpdate)}var R=S.updateQueue;null!==R&&Uo(0,R,M);break;case 3:var L=S.updateQueue;if(null!==L){if(O=null,null!==S.child)switch(S.child.tag){case 5:O=S.child.stateNode;break;case 1:O=S.child.stateNode}Uo(0,L,O)}break;case 5:var j=S.stateNode;null===B&&4&S.effectTag&&(P=j,Er(S.type,S.memoizedProps)&&P.focus());break;case 6:case 4:case 12:break;case 13:case 19:case 17:case 20:break;default:throw i(Error(163))}}if(128&T){var A=Qi.ref;if(null!==A){var I=Qi.stateNode;switch(Qi.tag){case 5:var D=I;break;default:D=I}"function"==typeof A?A(D):A.current=D}}512&T&&(el=!0),Qi=Qi.nextEffect}}catch(e){if(null===Qi)throw i(Error(330));Tl(Qi,e),Qi=Qi.nextEffect}}while(null!==Qi);Qi=null,ao(),zi=a}else e.current=n;if(el)el=!1,tl=e,rl=r,nl=t;else for(Qi=o;null!==Qi;)t=Qi.nextEffect,Qi.nextEffect=null,Qi=t;if(0!==(t=e.firstPendingTime)?fl(e,T=yo(T=sl(),t),t):Ji=null,"function"==typeof Rl&&Rl(n.stateNode,r),1073741823===t?e===il?al++:(al=0,il=e):al=0,Ki)throw Ki=!1,e=$i,$i=null,e;return 0!=(8&zi)||vo(),null}function Sl(){if(null===tl)return!1;var e=tl,t=rl,n=nl;return tl=null,rl=0,nl=90,ho(97<n?97:n,Pl.bind(null,e,t))}function Pl(e){if(0!=(48&zi))throw i(Error(331));var t=zi;for(zi|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:Si(128,0,n),Si(0,64,n)}}catch(t){if(null===e)throw i(Error(330));Tl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return zi=t,vo(),!0}function Ol(e,t,n){Ao(e,t=ji(e,t=_i(n,t),1073741823)),null!==(e=dl(e,1073741823))&&fl(e,99,1073741823)}function Tl(e,t){if(3===e.tag)Ol(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ol(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ji||!Ji.has(r))){Ao(n,e=Ai(n,e=_i(t,e),1073741823)),null!==(n=dl(n,1073741823))&&fl(n,99,1073741823);break}}n=n.return}}function Bl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Ui===e&&Hi===n?3===Wi||2===Wi&&1073741823===Xi&&uo()-Zi<500?yl(e,Hi):qi=!0:e.lastPendingTime<n||(0!==(t=e.pingTime)&&t<n||(e.pingTime=n,e.finishedExpirationTime===n&&(e.finishedExpirationTime=0,e.finishedWork=null),fl(e,t=yo(t=sl(),n),n)))}function Ml(e,t){var n=e.stateNode;null!==n&&n.delete(t),n=yo(n=sl(),t=cl(n,e,null)),null!==(e=dl(e,t))&&fl(e,n,t)}var Nl=void 0;Nl=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||Ar.current)ti=!0;else if(r<n){switch(ti=!1,t.tag){case 3:ui(t),Ja();break;case 5:if(ua(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:Fr(t.type)&&Wr(t);break;case 4:sa(t,t.stateNode.containerInfo);break;case 10:So(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?di(e,t,n):(Rr(da,1&da.current),null!==(t=gi(e,t,n))?t.sibling:null);Rr(da,1&da.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return hi(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),Rr(da,da.current),!r)return null}return gi(e,t,n)}}else ti=!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=Dr(t,jr.current),To(t,n),o=Ba(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,Ma(),Fr(r)){var a=!0;Wr(t)}else a=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null;var l=r.getDerivedStateFromProps;"function"==typeof l&&Xo(t,r,l,e),o.updater=Yo,t.stateNode=o,o._reactInternalFiber=t,Qo(t,r,e,n),t=ci(null,t,r,!0,a,n)}else t.tag=0,ni(null,t,o,n),t=t.child;return t;case 16:switch(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),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,a=t.tag=function(e){if("function"==typeof e)return Il(e)?1:0;if(null!=e){if((e=e.$$typeof)===rt)return 11;if(e===it)return 14}return 2}(o),e=xo(o,e),a){case 0:t=li(null,t,o,e,n);break;case 1:t=si(null,t,o,e,n);break;case 11:t=ri(null,t,o,e,n);break;case 14:t=oi(null,t,o,xo(o.type,e),r,n);break;default:throw i(Error(306),o,"")}return t;case 0:return r=t.type,o=t.pendingProps,li(e,t,r,o=t.elementType===r?o:xo(r,o),n);case 1:return r=t.type,o=t.pendingProps,si(e,t,r,o=t.elementType===r?o:xo(r,o),n);case 3:if(ui(t),null===(r=t.updateQueue))throw i(Error(282));return o=null!==(o=t.memoizedState)?o.element:null,zo(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===o?(Ja(),t=gi(e,t,n)):(o=t.stateNode,(o=(null===e||null===e.child)&&o.hydrate)&&(Ya=Tr(t.stateNode.containerInfo.firstChild),Xa=t,o=Ga=!0),o?(t.effectTag|=2,t.child=na(t,null,r,n)):(ni(e,t,r,n),Ja()),t=t.child),t;case 5:return ua(t),null===e&&Qa(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,Sr(r,o)?l=null:null!==a&&Sr(r,a)&&(t.effectTag|=16),ii(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ni(e,t,l,n),t=t.child),t;case 6:return null===e&&Qa(t),null;case 13:return di(e,t,n);case 4:return sa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ta(t,null,r,n):ni(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,ri(e,t,r,o=t.elementType===r?o:xo(r,o),n);case 7:return ni(e,t,t.pendingProps,n),t.child;case 8:case 12:return ni(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,l=t.memoizedProps,So(t,a=o.value),null!==l){var s=l.value;if(0===(a=tn(s,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,a):1073741823))){if(l.children===o.children&&!Ar.current){t=gi(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&a)){1===s.tag&&((u=Lo(n,null)).tag=2,Ao(s,u)),s.expirationTime<n&&(s.expirationTime=n),null!==(u=s.alternate)&&u.expirationTime<n&&(u.expirationTime=n),Oo(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}}ni(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(a=t.pendingProps).children,To(t,n),r=r(o=Bo(o,a.unstable_observedBits)),t.effectTag|=1,ni(e,t,r,n),t.child;case 14:return a=xo(o=t.type,t.pendingProps),oi(e,t,o,a=xo(o.type,a),r,n);case 15:return ai(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:xo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Fr(r)?(e=!0,Wr(t)):e=!1,To(t,n),qo(t,r,o),Qo(t,r,o,n),ci(null,t,r,!0,e,n);case 19:return hi(e,t,n)}throw i(Error(156))};var Rl=null,Ll=null;function jl(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 Al(e,t,n,r){return new jl(e,t,n,r)}function Il(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dl(e,t){var n=e.alternate;return null===n?((n=Al(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 Fl(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)Il(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case Ke:return zl(n.children,o,a,t);case nt:l=8,o|=7;break;case $e:l=8,o|=1;break;case Je:return(e=Al(12,n,t,8|o)).elementType=Je,e.type=Je,e.expirationTime=a,e;case ot:return(e=Al(13,n,t,o)).type=ot,e.elementType=ot,e.expirationTime=a,e;case at:return(e=Al(19,n,t,o)).elementType=at,e.expirationTime=a,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 it:l=14;break e;case lt:l=16,r=null;break e}throw i(Error(130),null==e?e:typeof e,"")}return(t=Al(l,n,t,o)).elementType=e,t.type=r,t.expirationTime=a,t}function zl(e,t,n,r){return(e=Al(7,e,r,t)).expirationTime=n,e}function Ul(e,t,n){return(e=Al(6,e,null,t)).expirationTime=n,e}function Vl(e,t,n){return(t=Al(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hl(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 Wl(e,t,n){return e=new Hl(e,t,n),t=Al(3,null,null,2===t?7:1===t?3:0),e.current=t,t.stateNode=e}function Xl(e,t,n,r,o,a){var l=t.current;e:if(n){t:{if(2!==an(n=n._reactInternalFiber)||1!==n.tag)throw i(Error(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Fr(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw i(Error(171))}if(1===n.tag){var c=n.type;if(Fr(c)){n=Hr(n,c,s);break e}}n=s}else n=Lr;return null===t.context?t.context=n:t.pendingContext=n,t=a,(o=Lo(r,o)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),Ao(l,o),pl(l,r),r}function Yl(e,t,n,r){var o=t.current,a=sl(),i=Ho.suspense;return Xl(e,t,n,o=cl(a,o,i),i,r)}function Gl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function ql(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}}function Zl(e){var t=1073741821-25*(1+((1073741821-sl()+500)/25|0));t<=ul&&--t,this._expirationTime=ul=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Ql(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Kl(e,t,n){this._internalRoot=Wl(e,t,n)}function $l(e,t){this._internalRoot=Wl(e,2,t)}function Jl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function es(e,t,n,r,o){var a=n._reactRootContainer,i=void 0;if(a){if(i=a._internalRoot,"function"==typeof o){var l=o;o=function(){var e=Gl(i);l.call(e)}}Yl(t,i,e,o)}else{if(a=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 Kl(e,0,t)}(n,r),i=a._internalRoot,"function"==typeof o){var s=o;o=function(){var e=Gl(i);s.call(e)}}bl((function(){Yl(t,i,e,o)}))}return Gl(i)}function ts(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Jl(t))throw i(Error(200));return ql(e,t,null,n)}Pe=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=F(r);if(!o)throw i(Error(90));Xe(r),Et(r,o)}}}break;case"textarea":ar(e,n);break;case"select":null!=(t=n.value)&&nr(e,!!n.multiple,t,!1)}},Zl.prototype.render=function(e){if(!this._defer)throw i(Error(250));this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new Ql;return Xl(e,t,null,n,null,r._onCommit),r},Zl.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Zl.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(!this._defer||null===t)throw i(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 i(Error(251));r._next=o._next,this._next=t,e.firstBatch=this}if(this._defer=!1,t=n,0!=(48&zi))throw i(Error(253));mo(xl.bind(null,e,t)),vo(),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Zl.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])()}},Ql.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Ql.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 i(Error(191),n);n()}}},$l.prototype.render=Kl.prototype.render=function(e,t){var n=this._internalRoot,r=new Ql;return null!==(t=void 0===t?null:t)&&r.then(t),Yl(e,n,null,r._onCommit),r},$l.prototype.unmount=Kl.prototype.unmount=function(e){var t=this._internalRoot,n=new Ql;return null!==(e=void 0===e?null:e)&&n.then(e),Yl(null,t,null,n._onCommit),n},$l.prototype.createBatch=function(){var e=new Zl(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},Re=ml,Le=vl,je=gl,Ae=function(e,t){var n=zi;zi|=2;try{return e(t)}finally{0===(zi=n)&&vo()}};var ns,rs,os={createPortal:ts,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 i(Error(188));throw i(Error(268),Object.keys(e))}e=null===(e=sn(t))?null:e.stateNode}return e},hydrate:function(e,t,n){if(!Jl(t))throw i(Error(200));return es(null,e,t,!0,n)},render:function(e,t,n){if(!Jl(t))throw i(Error(200));return es(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){if(!Jl(n))throw i(Error(200));if(null==e||void 0===e._reactInternalFiber)throw i(Error(38));return es(e,t,n,!1,r)},unmountComponentAtNode:function(e){if(!Jl(e))throw i(Error(40));return!!e._reactRootContainer&&(bl((function(){es(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return ts.apply(void 0,arguments)},unstable_batchedUpdates:ml,unstable_interactiveUpdates:function(e,t,n,r){return gl(),vl(e,t,n,r)},unstable_discreteUpdates:vl,unstable_flushDiscreteUpdates:gl,flushSync:function(e,t){if(0!=(48&zi))throw i(Error(187));var n=zi;zi|=1;try{return ho(99,e.bind(null,t))}finally{zi=n,vo()}},unstable_createRoot:function(e,t){if(!Jl(e))throw i(Error(299),"unstable_createRoot");return new $l(e,null!=t&&!0===t.hydrate)},unstable_createSyncRoot:function(e,t){if(!Jl(e))throw i(Error(299),"unstable_createRoot");return new Kl(e,1,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=zi;zi|=1;try{ho(99,e)}finally{0===(zi=t)&&vo()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[I,D,F,M.injectEventPluginsByName,d,X,function(e){P(e,W)},Me,Ne,Fn,B,Sl,{current:!1}]}};rs=(ns={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);Rl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Ll=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(o({},ns,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ye.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=sn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return rs?rs(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}));var as={default:os},is=as&&os||as;e.exports=is.default||is},function(e,t,n){"use strict";e.exports=n(145)},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,a=void 0,i=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)},a=function(){clearTimeout(c)},i=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,f=window.setTimeout,h=window.clearTimeout,g=window.requestAnimationFrame,m=window.cancelAnimationFrame;"undefined"!=typeof console&&("function"!=typeof g&&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 m&&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,x=-1,w=33.33,_=-1,C=-1,k=0,E=!1;i=function(){return t.unstable_now()>=k},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?(w=Math.floor(1e3/e),E=!0):(w=33.33,E=!1)};var S=function(){if(null!==b){var e=t.unstable_now(),n=0<k-e;try{b(n,e)||(b=null)}catch(e){throw O.postMessage(null),e}}},P=new MessageChannel,O=P.port2;P.port1.onmessage=S;var T=function(e){if(null===b)C=_=-1,v=!1;else{v=!0,g((function(e){h(y),T(e)}));var n=function(){k=t.unstable_now()+w/2,S(),y=f(n,3*w)};if(y=f(n,3*w),-1!==_&&.1<e-_){var r=e-_;!E&&-1!==C&&r<w&&C<w&&(8.33>(w=r<C?C:r)&&(w=8.33)),C=r}_=e,k=e+w,O.postMessage(null)}};r=function(e){b=e,v||(v=!0,g((function(e){T(e)})))},o=function(e,n){x=f((function(){e(t.unstable_now())}),n)},a=function(){h(x),x=-1}}var B=null,M=null,N=null,R=3,L=!1,j=!1,A=!1;function I(e,t){var n=e.next;if(n===e)B=null;else{e===B&&(B=n);var r=e.previous;r.next=n,n.previous=r}e.next=e.previous=null,n=e.callback,r=R;var o=N;R=e.priorityLevel,N=e;try{var a=e.expirationTime<=t;switch(R){case 1:var i=n(a);break;case 2:case 3:case 4:i=n(a);break;case 5:i=n(a)}}catch(e){throw e}finally{R=r,N=o}if("function"==typeof i)if(t=e.expirationTime,e.callback=i,null===B)B=e.next=e.previous=e;else{i=null,a=B;do{if(t<=a.expirationTime){i=a;break}a=a.next}while(a!==B);null===i?i=B:i===B&&(B=e),(t=i.previous).next=i.previous=e,e.next=i,e.previous=t}}function D(e){if(null!==M&&M.startTime<=e)do{var t=M,n=t.next;if(t===n)M=null;else{M=n;var r=t.previous;r.next=n,n.previous=r}t.next=t.previous=null,V(t,t.expirationTime)}while(null!==M&&M.startTime<=e)}function F(e){A=!1,D(e),j||(null!==B?(j=!0,r(z)):null!==M&&o(F,M.startTime-e))}function z(e,n){j=!1,A&&(A=!1,a()),D(n),L=!0;try{if(e){if(null!==B)do{I(B,n),D(n=t.unstable_now())}while(null!==B&&!i())}else for(;null!==B&&B.expirationTime<=n;)I(B,n),D(n=t.unstable_now());return null!==B||(null!==M&&o(F,M.startTime-n),!1)}finally{L=!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===B)B=e.next=e.previous=e;else{var n=null,r=B;do{if(t<r.expirationTime){n=r;break}r=r.next}while(r!==B);null===n?n=B:n===B&&(B=e),(t=n.previous).next=n.previous=e,e.next=n,e.previous=t}}var H=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=R;R=e;try{return t()}finally{R=n}},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_scheduleCallback=function(e,n,i){var l=t.unstable_now();if("object"==typeof i&&null!==i){var s=i.delay;s="number"==typeof s&&0<s?l+s:l,i="number"==typeof i.timeout?i.timeout:U(e)}else i=U(e),s=l;if(e={callback:n,priorityLevel:e,startTime:s,expirationTime:i=s+i,next:null,previous:null},s>l){if(i=s,null===M)M=e.next=e.previous=e;else{n=null;var c=M;do{if(i<c.startTime){n=c;break}c=c.next}while(c!==M);null===n?n=M:n===M&&(M=e),(i=n.previous).next=n.previous=e,e.next=n,e.previous=i}null===B&&M===e&&(A?a():A=!0,o(F,s-l))}else V(e,i),j||L||(j=!0,r(z));return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(e===t)e===B?B=null:e===M&&(M=null);else{e===B?B=t:e===M&&(M=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_shouldYield=function(){var e=t.unstable_now();return D(e),null!==N&&null!==B&&B.startTime<=e&&B.expirationTime<N.expirationTime||i()},t.unstable_requestPaint=H,t.unstable_continueExecution=function(){j||L||(j=!0,r(z))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return B}},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.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(147),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(29))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,a,i,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?((a=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){a.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)}:(i="setImmediate$"+Math.random()+"$",l=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&h(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),r=function(t){e.postMessage(i+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,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{f(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(29),n(148))},function(e,t){var n,r,o=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!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:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();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===i||!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 g(){}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=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,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(150);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==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:a,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(152);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(31)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(30)(!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,a=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(a)?e:(o=0===a.indexOf("//")?a:0===a.indexOf("/")?n+a:r+a.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPicker=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=s(n(1)),a=s(n(2)),i=n(5),l=s(n(254));function s(e){return e&&e.__esModule?e:{default:e}}var c=t.AlphaPicker=function(e){var t=e.rgb,n=e.hsl,l=e.width,s=e.height,c=e.onChange,u=e.direction,p=e.style,d=e.renderers,f=e.pointer,h=e.className,g=void 0===h?"":h,m=(0,a.default)({default:{picker:{position:"relative",width:l,height:s},alpha:{radius:"2px",style:p}}});return o.default.createElement("div",{style:m.picker,className:"alpha-picker "+g},o.default.createElement(i.Alpha,r({},m.alpha,{rgb:t,hsl:n,pointer:f,renderers:d,onChange:c,direction:u})))};c.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:l.default},t.default=(0,i.ColorWrap)(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=l(n(81)),o=l(n(56)),a=l(n(85)),i=l(n(15));function l(e){return e&&e.__esModule?e:{default:e}}var s=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,i.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,a.default)(t)?(0,o.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=s},function(e,t,n){var r=n(23),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=i.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){e.exports=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),l=i.length;l--;){var s=i[e?l:++o];if(!1===n(a[s],s,a))break}return t}}},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(20),o=n(14);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(20),o=n(59),a=n(14),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},function(e,t,n){var r=n(84)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(165),o=n(202),a=n(98);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(43),o=n(87);e.exports=function(e,t,n,a){var i=n.length,l=i,s=!a;if(null==e)return!l;for(e=Object(e);i--;){var c=n[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<l;){var u=(c=n[i])[0],p=e[u],d=c[1];if(s&&c[2]){if(void 0===p&&!(u in e))return!1}else{var f=new r;if(a)var h=a(p,d,u,e,t,f);if(!(void 0===h?o(d,p,3,a,f):h))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(45),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(45);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(45);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(45);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(44);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(44),o=n(63),a=n(64);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var i=n.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(i)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(34),o=n(177),a=n(7),i=n(86),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!(!a(e)||o(e))&&(r(e)?d:l).test(i(e))}},function(e,t,n){var r,o=n(178),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},function(e,t,n){var r=n(11)["__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(181),o=n(44),a=n(63);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||o),string:new r}}},function(e,t,n){var r=n(182),o=n(183),a=n(184),i=n(185),l=n(186);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=a,s.prototype.has=i,s.prototype.set=l,e.exports=s},function(e,t,n){var r=n(46);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(46),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(46),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(46);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(47);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(47);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(47);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(47);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(43),o=n(88),a=n(196),i=n(198),l=n(26),s=n(6),c=n(24),u=n(33),p="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,f,h,g){var m=s(e),v=s(t),b=m?"[object Array]":l(e),y=v?"[object Array]":l(t),x=(b="[object Arguments]"==b?p:b)==p,w=(y="[object Arguments]"==y?p:y)==p,_=b==y;if(_&&c(e)){if(!c(t))return!1;m=!0,x=!1}if(_&&!x)return g||(g=new r),m||u(e)?o(e,t,n,f,h,g):a(e,t,b,n,f,h,g);if(!(1&n)){var C=x&&d.call(e,"__wrapped__"),k=w&&d.call(t,"__wrapped__");if(C||k){var E=C?e.value():e,S=k?t.value():t;return g||(g=new r),h(E,S,n,f,g)}}return!!_&&(g||(g=new r),i(e,t,n,f,h,g))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),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(23),o=n(91),a=n(25),i=n(88),l=n(197),s=n(65),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,p,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=l;case"[object Set]":var h=1&r;if(f||(f=s),e.size!=t.size&&!h)return!1;var g=d.get(e);if(g)return g==t;r|=2,d.set(e,t);var m=i(f(e),f(t),r,c,p,d);return d.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.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(92),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,i,l){var s=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!s)return!1;for(var p=u;p--;){var d=c[p];if(!(s?d in t:o.call(t,d)))return!1}var f=l.get(e);if(f&&l.get(t))return f==t;var h=!0;l.set(e,t),l.set(t,e);for(var g=s;++p<u;){var m=e[d=c[p]],v=t[d];if(a)var b=s?a(v,m,d,t,e,l):a(m,v,d,e,t,l);if(!(void 0===b?m===v||i(m,v,n,a,l):b)){h=!1;break}g||(g="constructor"==d)}if(h&&!g){var y=e.constructor,x=t.constructor;y==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof x&&x instanceof x||(h=!1)}return l.delete(e),l.delete(t),h}},function(e,t,n){var r=n(22)(n(11),"DataView");e.exports=r},function(e,t,n){var r=n(22)(n(11),"Promise");e.exports=r},function(e,t,n){var r=n(22)(n(11),"WeakMap");e.exports=r},function(e,t,n){var r=n(97),o=n(19);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var a=t[n],i=e[a];t[n]=[a,i,r(i)]}return t}},function(e,t,n){var r=n(87),o=n(204),a=n(100),i=n(69),l=n(97),s=n(98),c=n(35);e.exports=function(e,t){return i(e)&&l(t)?s(c(e),t):function(n){var i=o(n,e);return void 0===i&&i===t?a(n,e):r(t,i,3)}}},function(e,t,n){var r=n(68);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(206),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=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(a,"$1"):n||e)})),t}));e.exports=i},function(e,t,n){var r=n(207);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(64);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=n(23),o=n(42),a=n(6),i=n(27),l=r?r.prototype:void 0,s=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return o(t,e)+"";if(i(t))return s?s.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(102),o=n(211),a=n(69),i=n(35);e.exports=function(e){return a(e)?r(i(e)):o(e)}},function(e,t,n){var r=n(68);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(16);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,l=Object(n);(t?i--:++i<a)&&!1!==o(l[i],i,l););return n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=i(n(56)),o=i(n(104)),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function i(e){return e&&e.__esModule?e:{default:e}}var l=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,o.default)(e.default)||{};return t.map((function(t){var o=e[t];return o&&(0,r.default)(o,(function(e,t){n[t]||(n[t]={}),n[t]=a({},n[t],o[t])})),t})),n};t.default=l},function(e,t,n){var r=n(36),o=n(19);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(36),o=n(28);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(7),o=n(40),a=n(217),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=o(e),n=[];for(var l in e)("constructor"!=l||!t&&i.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(36),o=n(67);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(36),o=n(109);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(93),o=n(109),a=n(28);e.exports=function(e){return r(e,a,o)}},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(71),o=n(223),a=n(224),i=n(225),l=n(110);e.exports=function(e,t,n){var s=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new s(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return l(e,n);case"[object Map]":return new s;case"[object Number]":case"[object String]":return new s(e);case"[object RegExp]":return a(e);case"[object Set]":return new s;case"[object Symbol]":return i(e)}}},function(e,t,n){var r=n(71);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(23),o=r?r.prototype:void 0,a=o?o.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},function(e,t,n){var r=n(227),o=n(39),a=n(60),i=a&&a.isMap,l=i?o(i):r;e.exports=l},function(e,t,n){var r=n(26),o=n(14);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(229),o=n(39),a=n(60),i=a&&a.isSet,l=i?o(i):r;e.exports=l},function(e,t,n){var r=n(26),o=n(14);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,o=n(56),a=(r=o)&&r.__esModule?r:{default:r},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var l={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},s=t.autoprefix=function(e){var t={};return(0,a.default)(e,(function(e,n){var r={};(0,a.default)(e,(function(e,t){var n=l[t];n?r=i({},r,n(e)):r[t]=e})),t[n]=r})),t};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),i=(r=a)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,a,c;l(this,r);for(var u=arguments.length,p=Array(u),d=0;d<u;d++)p[d]=arguments[d];return a=c=s(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(p))),c.state={hover:!1},c.handleMouseOver=function(){return c.setState({hover:!0})},c.handleMouseOut=function(){return c.setState({hover:!1})},c.render=function(){return i.default.createElement(t,{onMouseOver:c.handleMouseOver,onMouseOut:c.handleMouseOut},i.default.createElement(e,o({},c.props,c.state)))},s(c,a)}return c(r,n),r}(i.default.Component)};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),i=(r=a)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,a,c;l(this,r);for(var u=arguments.length,p=Array(u),d=0;d<u;d++)p[d]=arguments[d];return a=c=s(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(p))),c.state={active:!1},c.handleMouseDown=function(){return c.setState({active:!0})},c.handleMouseUp=function(){return c.setState({active:!1})},c.render=function(){return i.default.createElement(t,{onMouseDown:c.handleMouseDown,onMouseUp:c.handleMouseUp},i.default.createElement(e,o({},c.props,c.state)))},s(c,a)}return c(r,n),r}(i.default.Component)};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Alpha=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(1),i=u(a),l=u(n(2)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(235)),c=u(n(72));function u(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=t.Alpha=function(e){function t(){var e,n,r;p(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e){var t=s.calculateChange(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},d(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,l.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n           rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:r({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return i.default.createElement("div",{style:n.alpha},i.default.createElement("div",{style:n.checkboard},i.default.createElement(c.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:n.gradient}),i.default.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("div",{style:n.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:n.slider}))))}}]),t}(a.PureComponent||a.Component);t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r,o){var a=o.clientWidth,i=o.clientHeight,l="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,c=l-(o.getBoundingClientRect().left+window.pageXOffset),u=s-(o.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var p=void 0;if(p=u<0?0:u>i?1:Math.round(100*u/i)/100,t.a!==p)return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}else{var d=void 0;if(r!==(d=c<0?0:c>a?1:Math.round(100*c/a)/100))return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={},o=t.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var o=r?new r:document.createElement("canvas");o.width=2*n,o.height=2*n;var a=o.getContext("2d");return a?(a.fillStyle=e,a.fillRect(0,0,o.width,o.height),a.fillStyle=t,a.fillRect(0,0,n,n),a.translate(n,n),a.fillRect(0,0,n,n),o.toDataURL()):null};t.get=function(e,t,n,a){var i=e+"-"+t+"-"+n+(a?"-server":"");if(r[i])return r[i];var l=o(e,t,n,a);return r[i]=l,l}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditableInput=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1),a=l(o),i=l(n(2));function l(e){return e&&e.__esModule?e:{default:e}}var s=[38,40],c=t.EditableInput=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t,r=function(e){return Number(String(e).replace(/%/g,""))}(e.target.value);if(!isNaN(r)&&(t=e.keyCode,s.indexOf(t)>-1)){var o=n.getArrowOffset(),a=38===e.keyCode?r+o:r-o;n.setUpdatedValue(a,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t);var r,o=function(e){return String(e).indexOf("%")>-1}(t.target.value);this.setState({value:o?(r=e,r+"%"):e})}},{key:"render",value:function(){var e=this,t=(0,i.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return a.default.createElement("div",{style:t.wrap},a.default.createElement("input",{style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?a.default.createElement("span",{style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(o.PureComponent||o.Component);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hue=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1),a=s(o),i=s(n(2)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(239));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var p=t.Hue=function(e){function t(){var e,n,r;c(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.handleChange=function(e){var t=l.calculateChange(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},u(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,i.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return a.default.createElement("div",{style:r.hue},a.default.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},a.default.createElement("style",null,"\n            .hue-horizontal {\n              background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n                33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n                17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n\n            .hue-vertical {\n              background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n                #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n              background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n                #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n            }\n          "),a.default.createElement("div",{style:r.pointer},this.props.pointer?a.default.createElement(this.props.pointer,this.props):a.default.createElement("div",{style:r.slider}))))}}]),t}(o.PureComponent||o.Component);t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r){var o=r.clientWidth,a=r.clientHeight,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=i-(r.getBoundingClientRect().left+window.pageXOffset),c=l-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var u=void 0;if(c<0)u=359;else if(c>a)u=0;else{u=360*(-100*c/a+100)/100}if(n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"rgb"}}else{var p=void 0;if(s<0)p=0;else if(s>o)p=359;else{p=360*(100*s/o)/100}if(n.h!==p)return{h:p,s:n.s,l:n.l,a:n.a,source:"rgb"}}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Raised=void 0;var r=l(n(1)),o=l(n(3)),a=l(n(2)),i=l(n(8));function l(e){return e&&e.__esModule?e:{default:e}}var s=t.Raised=function(e){var t=e.zDepth,n=e.radius,o=e.background,l=e.children,s=e.styles,c=void 0===s?{}:s,u=(0,a.default)((0,i.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:o}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},c),{"zDepth-1":1===t});return r.default.createElement("div",{style:u.wrap},r.default.createElement("div",{style:u.bg}),r.default.createElement("div",{style:u.content},l))};s.propTypes={background:o.default.string,zDepth:o.default.oneOf([0,1,2,3,4,5]),radius:o.default.number,styles:o.default.object},s.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},t.default=s},function(e,t,n){var r=n(43),o=n(113),a=n(57),i=n(242),l=n(7),s=n(28),c=n(115);e.exports=function e(t,n,u,p,d){t!==n&&a(n,(function(a,s){if(d||(d=new r),l(a))i(t,n,s,u,e,p,d);else{var f=p?p(c(t,s),a,s+"",t,n,d):void 0;void 0===f&&(f=a),o(t,s,f)}}),s)}},function(e,t,n){var r=n(113),o=n(107),a=n(110),i=n(108),l=n(111),s=n(32),c=n(6),u=n(114),p=n(24),d=n(34),f=n(7),h=n(85),g=n(33),m=n(115),v=n(243);e.exports=function(e,t,n,b,y,x,w){var _=m(e,n),C=m(t,n),k=w.get(C);if(k)r(e,n,k);else{var E=x?x(_,C,n+"",e,t,w):void 0,S=void 0===E;if(S){var P=c(C),O=!P&&p(C),T=!P&&!O&&g(C);E=C,P||O||T?c(_)?E=_:u(_)?E=i(_):O?(S=!1,E=o(C,!0)):T?(S=!1,E=a(C,!0)):E=[]:h(C)||s(C)?(E=_,s(_)?E=v(_):f(_)&&!d(_)||(E=l(C))):S=!1}S&&(w.set(C,E),y(E,C,b,x,w),w.delete(C)),r(e,n,E)}}},function(e,t,n){var r=n(36),o=n(28);e.exports=function(e){return r(e,o(e))}},function(e,t,n){var r=n(52),o=n(53);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,l=a>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(a--,i):void 0,l&&o(n[0],n[1],l)&&(i=a<3?void 0:i,a=1),t=Object(t);++r<a;){var s=n[r];s&&e(t,s,r,i)}return t}))}},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(73),o=n(106),a=n(21),i=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=i},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var o=n(),a=16-(o-r);if(r=o,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Saturation=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(1),a=c(o),i=c(n(2)),l=c(n(249)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(250));function c(e){return e&&e.__esModule?e:{default:e}}var u=t.Saturation=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,s.calculateChange(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=(0,l.default)((function(e,t,n){e(t,n)}),50),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,o=t.black,l=t.pointer,s=t.circle,c=(0,i.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n            0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:o,pointer:l,circle:s}},{custom:!!this.props.style});return a.default.createElement("div",{style:c.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},a.default.createElement("style",null,"\n          .saturation-white {\n            background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n            background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n          }\n          .saturation-black {\n            background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n            background: linear-gradient(to top, #000, rgba(0,0,0,0));\n          }\n        "),a.default.createElement("div",{style:c.white,className:"saturation-white"},a.default.createElement("div",{style:c.black,className:"saturation-black"}),a.default.createElement("div",{style:c.pointer},this.props.pointer?a.default.createElement(this.props.pointer,this.props):a.default.createElement("div",{style:c.circle}))))}}]),t}(o.PureComponent||o.Component);t.default=u},function(e,t,n){var r=n(118),o=n(7);e.exports=function(e,t,n){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(a="leading"in n?!!n.leading:a,i="trailing"in n?!!n.trailing:i),r(e,t,{leading:a,maxWait:t,trailing:i})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n){var r=n.getBoundingClientRect(),o=r.width,a=r.height,i="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,s=i-(n.getBoundingClientRect().left+window.pageXOffset),c=l-(n.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>o&&(s=o),c<0?c=0:c>a&&(c=a);var u=s/o,p=1-c/a;return{h:t.h,s:u,v:p,a:t.a,source:"rgb"}}},function(e,t,n){var r;!function(o){var a=/^\s+/,i=/\s+$/,l=0,s=o.round,c=o.min,u=o.max,p=o.random;function d(e,t){if(t=t||{},(e=e||"")instanceof d)return e;if(!(this instanceof d))return new d(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,l=null,s=null,p=!1,d=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(i,"").toLowerCase();var t,n=!1;if(B[e])e=B[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=H.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=H.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=H.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=H.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=H.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=H.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=H.hex8.exec(e))return{r:j(t[1]),g:j(t[2]),b:j(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=H.hex6.exec(e))return{r:j(t[1]),g:j(t[2]),b:j(t[3]),format:n?"name":"hex"};if(t=H.hex4.exec(e))return{r:j(t[1]+""+t[1]),g:j(t[2]+""+t[2]),b:j(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=H.hex3.exec(e))return{r:j(t[1]+""+t[1]),g:j(t[2]+""+t[2]),b:j(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(f=e.r,h=e.g,g=e.b,t={r:255*R(f,255),g:255*R(h,255),b:255*R(g,255)},p=!0,d="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(r=I(e.s),l=I(e.v),t=function(e,t,n){e=6*R(e,360),t=R(t,100),n=R(n,100);var r=o.floor(e),a=e-r,i=n*(1-t),l=n*(1-a*t),s=n*(1-(1-a)*t),c=r%6;return{r:255*[n,l,i,i,s,n][c],g:255*[s,n,n,l,i,i][c],b:255*[i,i,s,n,n,l][c]}}(e.h,r,l),p=!0,d="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(r=I(e.s),s=I(e.l),t=function(e,t,n){var r,o,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=R(e,360),t=R(t,100),n=R(n,100),0===t)r=o=a=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=i(s,l,e+1/3),o=i(s,l,e),a=i(s,l,e-1/3)}return{r:255*r,g:255*o,b:255*a}}(e.h,r,s),p=!0,d="hsl"),e.hasOwnProperty("a")&&(n=e.a));var f,h,g;return n=N(n),{ok:p,format:e.format||d,r:c(255,u(t.r,0)),g:c(255,u(t.g,0)),b:c(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=l++}function f(e,t,n){e=R(e,255),t=R(t,255),n=R(n,255);var r,o,a=u(e,t,n),i=c(e,t,n),l=(a+i)/2;if(a==i)r=o=0;else{var s=a-i;switch(o=l>.5?s/(2-a-i):s/(a+i),a){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,l:l}}function h(e,t,n){e=R(e,255),t=R(t,255),n=R(n,255);var r,o,a=u(e,t,n),i=c(e,t,n),l=a,s=a-i;if(o=0===a?0:s/a,a==i)r=0;else{switch(a){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:o,v:l}}function g(e,t,n,r){var o=[A(s(e).toString(16)),A(s(t).toString(16)),A(s(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function m(e,t,n,r){return[A(D(r)),A(s(e).toString(16)),A(s(t).toString(16)),A(s(n).toString(16))].join("")}function v(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.s-=t/100,n.s=L(n.s),d(n)}function b(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.s+=t/100,n.s=L(n.s),d(n)}function y(e){return d(e).desaturate(100)}function x(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.l+=t/100,n.l=L(n.l),d(n)}function w(e,t){t=0===t?0:t||10;var n=d(e).toRgb();return n.r=u(0,c(255,n.r-s(-t/100*255))),n.g=u(0,c(255,n.g-s(-t/100*255))),n.b=u(0,c(255,n.b-s(-t/100*255))),d(n)}function _(e,t){t=0===t?0:t||10;var n=d(e).toHsl();return n.l-=t/100,n.l=L(n.l),d(n)}function C(e,t){var n=d(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,d(n)}function k(e){var t=d(e).toHsl();return t.h=(t.h+180)%360,d(t)}function E(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+120)%360,s:t.s,l:t.l}),d({h:(n+240)%360,s:t.s,l:t.l})]}function S(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+90)%360,s:t.s,l:t.l}),d({h:(n+180)%360,s:t.s,l:t.l}),d({h:(n+270)%360,s:t.s,l:t.l})]}function P(e){var t=d(e).toHsl(),n=t.h;return[d(e),d({h:(n+72)%360,s:t.s,l:t.l}),d({h:(n+216)%360,s:t.s,l:t.l})]}function O(e,t,n){t=t||6,n=n||30;var r=d(e).toHsl(),o=360/n,a=[d(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,a.push(d(r));return a}function T(e,t){t=t||6;for(var n=d(e).toHsv(),r=n.h,o=n.s,a=n.v,i=[],l=1/t;t--;)i.push(d({h:r,s:o,v:a})),a=(a+l)%1;return i}d.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=N(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=f(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var a=[A(s(e).toString(16)),A(s(t).toString(16)),A(s(n).toString(16)),A(D(r))];if(o&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1))return a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0);return a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*R(this._r,255))+"%",g:s(100*R(this._g,255))+"%",b:s(100*R(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*R(this._r,255))+"%, "+s(100*R(this._g,255))+"%, "+s(100*R(this._b,255))+"%)":"rgba("+s(100*R(this._r,255))+"%, "+s(100*R(this._g,255))+"%, "+s(100*R(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=d(e);n="#"+m(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return d(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(T,arguments)},splitcomplement:function(){return this._applyCombination(P,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},d.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:I(e[r]));e=n}return d(e,t)},d.equals=function(e,t){return!(!e||!t)&&d(e).toRgbString()==d(t).toRgbString()},d.random=function(){return d.fromRatio({r:p(),g:p(),b:p()})},d.mix=function(e,t,n){n=0===n?0:n||50;var r=d(e).toRgb(),o=d(t).toRgb(),a=n/100;return d({r:(o.r-r.r)*a+r.r,g:(o.g-r.g)*a+r.g,b:(o.b-r.b)*a+r.b,a:(o.a-r.a)*a+r.a})},d.readability=function(e,t){var n=d(e),r=d(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},d.isReadable=function(e,t,n){var r,o,a=d.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},d.mostReadable=function(e,t,n){var r,o,a,i,l=null,s=0;o=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var c=0;c<t.length;c++)(r=d.readability(e,t[c]))>s&&(s=r,l=d(t[c]));return d.isReadable(e,l,{level:a,size:i})||!o?l:(n.includeFallbackColors=!1,d.mostReadable(e,["#fff","#000"],n))};var B=d.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=d.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(B);function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function R(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L(e){return c(1,u(0,e))}function j(e){return parseInt(e,16)}function A(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function D(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return j(e)/255}var z,U,V,H=(U="[\\s|\\(]+("+(z="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",V="[\\s|\\(]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",{CSS_UNIT:new RegExp(z),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+V),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+V),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+V),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!H.CSS_UNIT.exec(e)}e.exports?e.exports=d:void 0===(r=function(){return d}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatch=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=s(n(1)),a=s(n(2)),i=n(253),l=s(n(72));function s(e){return e&&e.__esModule?e:{default:e}}var c=t.Swatch=function(e){var t=e.color,n=e.style,i=e.onClick,s=void 0===i?function(){}:i,c=e.onHover,u=e.title,p=void 0===u?t:u,d=e.children,f=e.focus,h=e.focusStyle,g=void 0===h?{}:h,m="transparent"===t,v=(0,a.default)({default:{swatch:r({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,f?g:{})}}),b={};return c&&(b.onMouseOver=function(e){return c(t,e)}),o.default.createElement("div",r({style:v.swatch,onClick:function(e){return s(t,e)},title:p,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&s(t,e)}},b),d,m&&o.default.createElement(l.default,{borderRadius:v.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};t.default=(0,i.handleFocus)(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleFocus=void 0;var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),l=(r=i)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.handleFocus=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;s(this,r);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return t=n=c(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(a))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},c(n,t)}return u(r,n),a(r,[{key:"render",value:function(){return l.default.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},l.default.createElement(e,o({},this.props,this.state)))}}]),r}(l.default.Component)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPointer=void 0;var r=a(n(1)),o=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.AlphaPointer=function(e){var t=e.direction,n=(0,o.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.default.createElement("div",{style:n.picker})};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Block=void 0;var r=u(n(1)),o=u(n(3)),a=u(n(2)),i=u(n(8)),l=u(n(12)),s=n(5),c=u(n(256));function u(e){return e&&e.__esModule?e:{default:e}}var p=t.Block=function(e){var t=e.onChange,n=e.onSwatchHover,o=e.hex,u=e.colors,p=e.width,d=e.triangle,f=e.styles,h=void 0===f?{}:f,g=e.className,m=void 0===g?"":g,v="transparent"===o,b=function(e,n){l.default.isValidHex(e)&&t({hex:e,source:"hex"},n)},y=(0,a.default)((0,i.default)({default:{card:{width:p,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:o,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:l.default.getContrastingColor(o),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+o+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},h),{"hide-triangle":"hide"===d});return r.default.createElement("div",{style:y.card,className:"block-picker "+m},r.default.createElement("div",{style:y.triangle}),r.default.createElement("div",{style:y.head},v&&r.default.createElement(s.Checkboard,{borderRadius:"6px 6px 0 0"}),r.default.createElement("div",{style:y.label},o)),r.default.createElement("div",{style:y.body},r.default.createElement(c.default,{colors:u,onClick:b,onSwatchHover:n}),r.default.createElement(s.EditableInput,{style:{input:y.input},value:o,onChange:b})))};p.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),colors:o.default.arrayOf(o.default.string),triangle:o.default.oneOf(["top","hide"]),styles:o.default.object},p.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},t.default=(0,s.ColorWrap)(p)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockSwatches=void 0;var r=l(n(1)),o=l(n(2)),a=l(n(15)),i=n(5);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.BlockSwatches=function(e){var t=e.colors,n=e.onClick,l=e.onSwatchHover,s=(0,o.default)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return r.default.createElement("div",{style:s.swatches},(0,a.default)(t,(function(e){return r.default.createElement(i.Swatch,{key:e,color:e,style:s.swatch,onClick:n,onHover:l,focusStyle:{boxShadow:"0 0 4px "+e}})})),r.default.createElement("div",{style:s.clear}))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Circle=void 0;var r=p(n(1)),o=p(n(3)),a=p(n(2)),i=p(n(15)),l=p(n(8)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(123)),c=n(5),u=p(n(258));function p(e){return e&&e.__esModule?e:{default:e}}var d=t.Circle=function(e){var t=e.width,n=e.onChange,o=e.onSwatchHover,s=e.colors,c=e.hex,p=e.circleSize,d=e.styles,f=void 0===d?{}:d,h=e.circleSpacing,g=e.className,m=void 0===g?"":g,v=(0,a.default)((0,l.default)({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-h,marginBottom:-h}}},f)),b=function(e,t){return n({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:v.card,className:"circle-picker "+m},(0,i.default)(s,(function(e){return r.default.createElement(u.default,{key:e,color:e,onClick:b,onSwatchHover:o,active:c===e.toLowerCase(),circleSize:p,circleSpacing:h})})))};d.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),circleSize:o.default.number,circleSpacing:o.default.number,styles:o.default.object},d.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[s.red[500],s.pink[500],s.purple[500],s.deepPurple[500],s.indigo[500],s.blue[500],s.lightBlue[500],s.cyan[500],s.teal[500],s.green[500],s.lightGreen[500],s.lime[500],s.yellow[500],s.amber[500],s.orange[500],s.deepOrange[500],s.brown[500],s.blueGrey[500]],styles:{}},t.default=(0,c.ColorWrap)(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircleSwatch=void 0;var r=l(n(1)),o=n(2),a=l(o),i=n(5);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.CircleSwatch=function(e){var t=e.color,n=e.onClick,o=e.onSwatchHover,l=e.hover,s=e.active,c=e.circleSize,u=e.circleSpacing,p=(0,a.default)({default:{swatch:{width:c,height:c,marginRight:u,marginBottom:u,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+c/2+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:l,active:s});return r.default.createElement("div",{style:p.swatch},r.default.createElement(i.Swatch,{style:p.Swatch,color:t,onClick:n,onHover:o,focusStyle:{boxShadow:p.Swatch.boxShadow+", 0 0 5px "+t}}))};s.defaultProps={circleSize:28,circleSpacing:14},t.default=(0,o.handleHover)(s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Chrome=void 0;var r=p(n(1)),o=p(n(3)),a=p(n(2)),i=p(n(8)),l=n(5),s=p(n(260)),c=p(n(262)),u=p(n(263));function p(e){return e&&e.__esModule?e:{default:e}}var d=t.Chrome=function(e){var t=e.width,n=e.onChange,o=e.disableAlpha,p=e.rgb,d=e.hsl,f=e.hsv,h=e.hex,g=e.renderers,m=e.styles,v=void 0===m?{}:m,b=e.className,y=void 0===b?"":b,x=e.defaultView,w=(0,a.default)((0,i.default)({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+p.r+", "+p.g+", "+p.b+", "+p.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},v),{disableAlpha:o});return r.default.createElement("div",{style:w.picker,className:"chrome-picker "+y},r.default.createElement("div",{style:w.saturation},r.default.createElement(l.Saturation,{style:w.Saturation,hsl:d,hsv:f,pointer:u.default,onChange:n})),r.default.createElement("div",{style:w.body},r.default.createElement("div",{style:w.controls,className:"flexbox-fix"},r.default.createElement("div",{style:w.color},r.default.createElement("div",{style:w.swatch},r.default.createElement("div",{style:w.active}),r.default.createElement(l.Checkboard,{renderers:g}))),r.default.createElement("div",{style:w.toggles},r.default.createElement("div",{style:w.hue},r.default.createElement(l.Hue,{style:w.Hue,hsl:d,pointer:c.default,onChange:n})),r.default.createElement("div",{style:w.alpha},r.default.createElement(l.Alpha,{style:w.Alpha,rgb:p,hsl:d,pointer:c.default,renderers:g,onChange:n})))),r.default.createElement(s.default,{rgb:p,hsl:d,hex:h,view:x,onChange:n,disableAlpha:o})))};d.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),disableAlpha:o.default.bool,styles:o.default.object,defaultView:o.default.oneOf(["hex","rgb","hsl"])},d.defaultProps={width:225,disableAlpha:!1,styles:{}},t.default=(0,l.ColorWrap)(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromeFields=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=c(n(1)),a=c(n(2)),i=c(n(12)),l=n(5),s=c(n(261));function c(e){return e&&e.__esModule?e:{default:e}}var u=t.ChromeFields=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?i.default.isValidHex(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(e.s&&e.s||n.props.hsl.s),l:Number(e.l&&e.l||n.props.hsl.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this,t=(0,a.default)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=o.default.createElement("div",{style:t.fields,className:"flexbox-fix"},o.default.createElement("div",{style:t.field},o.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=o.default.createElement("div",{style:t.fields,className:"flexbox-fix"},o.default.createElement("div",{style:t.field},o.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),o.default.createElement("div",{style:t.field},o.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),o.default.createElement("div",{style:t.field},o.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),o.default.createElement("div",{style:t.alpha},o.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=o.default.createElement("div",{style:t.fields,className:"flexbox-fix"},o.default.createElement("div",{style:t.field},o.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),o.default.createElement("div",{style:t.field},o.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),o.default.createElement("div",{style:t.field},o.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),o.default.createElement("div",{style:t.alpha},o.default.createElement(l.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),o.default.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,o.default.createElement("div",{style:t.toggle},o.default.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},o.default.createElement(s.default,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(o.default.Component);u.defaultProps={view:"hex"},t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),i=(r=a)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,a=void 0===r?24:r,l=e.height,s=void 0===l?24:l,c=e.style,u=void 0===c?{}:c,p=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return i.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:a,height:s},u)},p),i.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromePointer=void 0;var r=a(n(1)),o=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.ChromePointer=function(){var e=(0,o.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.default.createElement("div",{style:e.picker})};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromePointerCircle=void 0;var r=a(n(1)),o=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.ChromePointerCircle=function(){var e=(0,o.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return r.default.createElement("div",{style:e.picker})};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Compact=void 0;var r=d(n(1)),o=d(n(3)),a=d(n(2)),i=d(n(15)),l=d(n(8)),s=d(n(12)),c=n(5),u=d(n(265)),p=d(n(266));function d(e){return e&&e.__esModule?e:{default:e}}var f=t.Compact=function(e){var t=e.onChange,n=e.onSwatchHover,o=e.colors,d=e.hex,f=e.rgb,h=e.styles,g=void 0===h?{}:h,m=e.className,v=void 0===m?"":m,b=(0,a.default)((0,l.default)({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},g)),y=function(e,n){e.hex?s.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return r.default.createElement(c.Raised,{style:b.Compact,styles:g},r.default.createElement("div",{style:b.compact,className:"compact-picker "+v},r.default.createElement("div",null,(0,i.default)(o,(function(e){return r.default.createElement(u.default,{key:e,color:e,active:e.toLowerCase()===d,onClick:y,onSwatchHover:n})})),r.default.createElement("div",{style:b.clear})),r.default.createElement(p.default,{hex:d,rgb:f,onChange:y})))};f.propTypes={colors:o.default.arrayOf(o.default.string),styles:o.default.object},f.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},t.default=(0,c.ColorWrap)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactColor=void 0;var r=l(n(1)),o=l(n(2)),a=l(n(12)),i=n(5);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.CompactColor=function(e){var t=e.color,n=e.onClick,l=void 0===n?function(){}:n,s=e.onSwatchHover,c=e.active,u=(0,o.default)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:a.default.getContrastingColor(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:c,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.default.createElement(i.Swatch,{style:u.color,color:t,onClick:l,onHover:s,focusStyle:{boxShadow:"0 0 4px "+t}},r.default.createElement("div",{style:u.dot}))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactFields=void 0;var r=i(n(1)),o=i(n(2)),a=n(5);function i(e){return e&&e.__esModule?e:{default:e}}var l=t.CompactFields=function(e){var t=e.hex,n=e.rgb,i=e.onChange,l=(0,o.default)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),s=function(e,t){e.r||e.g||e.b?i({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):i({hex:e.hex,source:"hex"},t)};return r.default.createElement("div",{style:l.fields,className:"flexbox-fix"},r.default.createElement("div",{style:l.active}),r.default.createElement(a.EditableInput,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"hex",value:t,onChange:s}),r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:n.r,onChange:s}),r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:n.g,onChange:s}),r.default.createElement(a.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:n.b,onChange:s}))};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Github=void 0;var r=u(n(1)),o=u(n(3)),a=u(n(2)),i=u(n(15)),l=u(n(8)),s=n(5),c=u(n(268));function u(e){return e&&e.__esModule?e:{default:e}}var p=t.Github=function(e){var t=e.width,n=e.colors,o=e.onChange,s=e.onSwatchHover,u=e.triangle,p=e.styles,d=void 0===p?{}:p,f=e.className,h=void 0===f?"":f,g=(0,a.default)((0,l.default)({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},d),{"hide-triangle":"hide"===u,"top-left-triangle":"top-left"===u,"top-right-triangle":"top-right"===u,"bottom-left-triangle":"bottom-left"===u,"bottom-right-triangle":"bottom-right"===u}),m=function(e,t){return o({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:g.card,className:"github-picker "+h},r.default.createElement("div",{style:g.triangleShadow}),r.default.createElement("div",{style:g.triangle}),(0,i.default)(n,(function(e){return r.default.createElement(c.default,{color:e,key:e,onClick:m,onSwatchHover:s})})))};p.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),colors:o.default.arrayOf(o.default.string),triangle:o.default.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:o.default.object},p.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},t.default=(0,s.ColorWrap)(p)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GithubSwatch=void 0;var r=l(n(1)),o=n(2),a=l(o),i=n(5);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.GithubSwatch=function(e){var t=e.hover,n=e.color,o=e.onClick,l=e.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},c=(0,a.default)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:t});return r.default.createElement("div",{style:c.swatch},r.default.createElement(i.Swatch,{color:n,onClick:o,onHover:l,focusStyle:s}))};t.default=(0,o.handleHover)(s)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HuePicker=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=u(n(1)),a=u(n(3)),i=u(n(2)),l=u(n(8)),s=n(5),c=u(n(270));function u(e){return e&&e.__esModule?e:{default:e}}var p=t.HuePicker=function(e){var t=e.width,n=e.height,a=e.onChange,c=e.hsl,u=e.direction,p=e.pointer,d=e.styles,f=void 0===d?{}:d,h=e.className,g=void 0===h?"":h,m=(0,i.default)((0,l.default)({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},f));return o.default.createElement("div",{style:m.picker,className:"hue-picker "+g},o.default.createElement(s.Hue,r({},m.hue,{hsl:c,pointer:p,onChange:function(e){return a({a:1,h:e.h,l:.5,s:1})},direction:u})))};p.propTypes={styles:a.default.object},p.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:c.default,styles:{}},t.default=(0,s.ColorWrap)(p)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderPointer=void 0;var r=a(n(1)),o=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.SliderPointer=function(e){var t=e.direction,n=(0,o.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.default.createElement("div",{style:n.picker})};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Material=void 0;var r=s(n(1)),o=s(n(2)),a=s(n(8)),i=s(n(12)),l=n(5);function s(e){return e&&e.__esModule?e:{default:e}}var c=t.Material=function(e){var t=e.onChange,n=e.hex,s=e.rgb,c=e.styles,u=void 0===c?{}:c,p=e.className,d=void 0===p?"":p,f=(0,o.default)((0,a.default)({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},u)),h=function(e,n){e.hex?i.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||s.r,g:e.g||s.g,b:e.b||s.b,source:"rgb"},n)};return r.default.createElement(l.Raised,{styles:u},r.default.createElement("div",{style:f.material,className:"material-picker "+d},r.default.createElement(l.EditableInput,{style:{wrap:f.HEXwrap,input:f.HEXinput,label:f.HEXlabel},label:"hex",value:n,onChange:h}),r.default.createElement("div",{style:f.split,className:"flexbox-fix"},r.default.createElement("div",{style:f.third},r.default.createElement(l.EditableInput,{style:{wrap:f.RGBwrap,input:f.RGBinput,label:f.RGBlabel},label:"r",value:s.r,onChange:h})),r.default.createElement("div",{style:f.third},r.default.createElement(l.EditableInput,{style:{wrap:f.RGBwrap,input:f.RGBinput,label:f.RGBlabel},label:"g",value:s.g,onChange:h})),r.default.createElement("div",{style:f.third},r.default.createElement(l.EditableInput,{style:{wrap:f.RGBwrap,input:f.RGBinput,label:f.RGBlabel},label:"b",value:s.b,onChange:h})))))};t.default=(0,l.ColorWrap)(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Photoshop=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=h(n(1)),a=h(n(3)),i=h(n(2)),l=h(n(8)),s=n(5),c=h(n(273)),u=h(n(274)),p=h(n(275)),d=h(n(276)),f=h(n(277));function h(e){return e&&e.__esModule?e:{default:e}}var g=t.Photoshop=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,r=e.className,a=void 0===r?"":r,h=(0,i.default)((0,l.default)({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return o.default.createElement("div",{style:h.picker,className:"photoshop-picker "+a},o.default.createElement("div",{style:h.head},this.props.header),o.default.createElement("div",{style:h.body,className:"flexbox-fix"},o.default.createElement("div",{style:h.saturation},o.default.createElement(s.Saturation,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:u.default,onChange:this.props.onChange})),o.default.createElement("div",{style:h.hue},o.default.createElement(s.Hue,{direction:"vertical",hsl:this.props.hsl,pointer:p.default,onChange:this.props.onChange})),o.default.createElement("div",{style:h.controls},o.default.createElement("div",{style:h.top,className:"flexbox-fix"},o.default.createElement("div",{style:h.previews},o.default.createElement(f.default,{rgb:this.props.rgb,currentColor:this.state.currentColor})),o.default.createElement("div",{style:h.actions},o.default.createElement(d.default,{label:"OK",onClick:this.props.onAccept,active:!0}),o.default.createElement(d.default,{label:"Cancel",onClick:this.props.onCancel}),o.default.createElement(c.default,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(o.default.Component);g.propTypes={header:a.default.string,styles:a.default.object},g.defaultProps={header:"Color Picker",styles:{}},t.default=(0,s.ColorWrap)(g)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPicker=void 0;var r=l(n(1)),o=l(n(2)),a=l(n(12)),i=n(5);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.PhotoshopPicker=function(e){var t=e.onChange,n=e.rgb,l=e.hsv,s=e.hex,c=(0,o.default)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),u=function(e,r){e["#"]?a.default.isValidHex(e["#"])&&t({hex:e["#"],source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},r):(e.h||e.s||e.v)&&t({h:e.h||l.h,s:e.s||l.s,v:e.v||l.v,source:"hsv"},r)};return r.default.createElement("div",{style:c.fields},r.default.createElement(i.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"h",value:Math.round(l.h),onChange:u}),r.default.createElement(i.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"s",value:Math.round(100*l.s),onChange:u}),r.default.createElement(i.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"v",value:Math.round(100*l.v),onChange:u}),r.default.createElement("div",{style:c.divider}),r.default.createElement(i.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"r",value:n.r,onChange:u}),r.default.createElement(i.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"g",value:n.g,onChange:u}),r.default.createElement(i.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"b",value:n.b,onChange:u}),r.default.createElement("div",{style:c.divider}),r.default.createElement(i.EditableInput,{style:{wrap:c.HEXwrap,input:c.HEXinput,label:c.HEXlabel},label:"#",value:s.replace("#",""),onChange:u}),r.default.createElement("div",{style:c.fieldSymbols},r.default.createElement("div",{style:c.symbol},"°"),r.default.createElement("div",{style:c.symbol},"%"),r.default.createElement("div",{style:c.symbol},"%")))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var r=a(n(1)),o=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.PhotoshopPointerCircle=function(e){var t=e.hsl,n=(0,o.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return r.default.createElement("div",{style:n.picker})};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var r=a(n(1)),o=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.PhotoshopPointerCircle=function(){var e=(0,o.default)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return r.default.createElement("div",{style:e.pointer},r.default.createElement("div",{style:e.left},r.default.createElement("div",{style:e.leftInside})),r.default.createElement("div",{style:e.right},r.default.createElement("div",{style:e.rightInside})))};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopButton=void 0;var r=a(n(1)),o=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.PhotoshopButton=function(e){var t=e.onClick,n=e.label,a=e.children,i=e.active,l=(0,o.default)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:i});return r.default.createElement("div",{style:l.button,onClick:t},n||a)};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPreviews=void 0;var r=a(n(1)),o=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.PhotoshopPreviews=function(e){var t=e.rgb,n=e.currentColor,a=(0,o.default)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return r.default.createElement("div",null,r.default.createElement("div",{style:a.label},"new"),r.default.createElement("div",{style:a.swatches},r.default.createElement("div",{style:a.new}),r.default.createElement("div",{style:a.current})),r.default.createElement("div",{style:a.label},"current"))};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sketch=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=p(n(1)),a=p(n(3)),i=p(n(2)),l=p(n(8)),s=n(5),c=p(n(279)),u=p(n(280));function p(e){return e&&e.__esModule?e:{default:e}}var d=t.Sketch=function(e){var t=e.width,n=e.rgb,a=e.hex,p=e.hsv,d=e.hsl,f=e.onChange,h=e.onSwatchHover,g=e.disableAlpha,m=e.presetColors,v=e.renderers,b=e.styles,y=void 0===b?{}:b,x=e.className,w=void 0===x?"":x,_=(0,i.default)((0,l.default)({default:r({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},y),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},y),{disableAlpha:g});return o.default.createElement("div",{style:_.picker,className:"sketch-picker "+w},o.default.createElement("div",{style:_.saturation},o.default.createElement(s.Saturation,{style:_.Saturation,hsl:d,hsv:p,onChange:f})),o.default.createElement("div",{style:_.controls,className:"flexbox-fix"},o.default.createElement("div",{style:_.sliders},o.default.createElement("div",{style:_.hue},o.default.createElement(s.Hue,{style:_.Hue,hsl:d,onChange:f})),o.default.createElement("div",{style:_.alpha},o.default.createElement(s.Alpha,{style:_.Alpha,rgb:n,hsl:d,renderers:v,onChange:f}))),o.default.createElement("div",{style:_.color},o.default.createElement(s.Checkboard,null),o.default.createElement("div",{style:_.activeColor}))),o.default.createElement(c.default,{rgb:n,hsl:d,hex:a,onChange:f,disableAlpha:g}),o.default.createElement(u.default,{colors:m,onClick:f,onSwatchHover:h}))};d.propTypes={disableAlpha:a.default.bool,width:a.default.oneOfType([a.default.string,a.default.number]),styles:a.default.object},d.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},t.default=(0,s.ColorWrap)(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchFields=void 0;var r=l(n(1)),o=l(n(2)),a=l(n(12)),i=n(5);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.SketchFields=function(e){var t=e.onChange,n=e.rgb,l=e.hsl,s=e.hex,c=e.disableAlpha,u=(0,o.default)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:c}),p=function(e,r){e.hex?a.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},r):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:l.h,s:l.s,l:l.l,a:e.a,source:"rgb"},r))};return r.default.createElement("div",{style:u.fields,className:"flexbox-fix"},r.default.createElement("div",{style:u.double},r.default.createElement(i.EditableInput,{style:{input:u.input,label:u.label},label:"hex",value:s.replace("#",""),onChange:p})),r.default.createElement("div",{style:u.single},r.default.createElement(i.EditableInput,{style:{input:u.input,label:u.label},label:"r",value:n.r,onChange:p,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:u.single},r.default.createElement(i.EditableInput,{style:{input:u.input,label:u.label},label:"g",value:n.g,onChange:p,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:u.single},r.default.createElement(i.EditableInput,{style:{input:u.input,label:u.label},label:"b",value:n.b,onChange:p,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:u.alpha},r.default.createElement(i.EditableInput,{style:{input:u.input,label:u.label},label:"a",value:Math.round(100*n.a),onChange:p,dragLabel:"true",dragMax:"100"})))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchPresetColors=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=s(n(1)),a=s(n(3)),i=s(n(2)),l=n(5);function s(e){return e&&e.__esModule?e:{default:e}}var c=t.SketchPresetColors=function(e){var t=e.colors,n=e.onClick,a=void 0===n?function(){}:n,s=e.onSwatchHover,c=(0,i.default)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),u=function(e,t){a({hex:e,source:"hex"},t)};return o.default.createElement("div",{style:c.colors,className:"flexbox-fix"},t.map((function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return o.default.createElement("div",{key:n,style:c.swatchWrap},o.default.createElement(l.Swatch,r({},t,{style:c.swatch,onClick:u,onHover:s,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))})))};c.propTypes={colors:a.default.arrayOf(a.default.oneOfType([a.default.string,a.default.shape({color:a.default.string,title:a.default.string})])).isRequired},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Slider=void 0;var r=u(n(1)),o=u(n(3)),a=u(n(2)),i=u(n(8)),l=n(5),s=u(n(282)),c=u(n(284));function u(e){return e&&e.__esModule?e:{default:e}}var p=t.Slider=function(e){var t=e.hsl,n=e.onChange,o=e.pointer,c=e.styles,u=void 0===c?{}:c,p=e.className,d=void 0===p?"":p,f=(0,a.default)((0,i.default)({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},u));return r.default.createElement("div",{style:f.wrap||{},className:"slider-picker "+d},r.default.createElement("div",{style:f.hue},r.default.createElement(l.Hue,{style:f.Hue,hsl:t,pointer:o,onChange:n})),r.default.createElement("div",{style:f.swatches},r.default.createElement(s.default,{hsl:t,onClick:n})))};p.propTypes={styles:o.default.object},p.defaultProps={pointer:c.default,styles:{}},t.default=(0,l.ColorWrap)(p)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatches=void 0;var r=i(n(1)),o=i(n(2)),a=i(n(283));function i(e){return e&&e.__esModule?e:{default:e}}var l=t.SliderSwatches=function(e){var t=e.onClick,n=e.hsl,i=(0,o.default)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}});return r.default.createElement("div",{style:i.swatches},r.default.createElement("div",{style:i.swatch},r.default.createElement(a.default,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<.1&&Math.abs(n.s-.5)<.1,onClick:t,first:!0})),r.default.createElement("div",{style:i.swatch},r.default.createElement(a.default,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),r.default.createElement("div",{style:i.swatch},r.default.createElement(a.default,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),r.default.createElement("div",{style:i.swatch},r.default.createElement(a.default,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),r.default.createElement("div",{style:i.swatch},r.default.createElement(a.default,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<.1&&Math.abs(n.s-.5)<.1,onClick:t,last:!0})),r.default.createElement("div",{style:i.clear}))};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatch=void 0;var r=a(n(1)),o=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.SliderSwatch=function(e){var t=e.hsl,n=e.offset,a=e.onClick,i=void 0===a?function(){}:a,l=e.active,s=e.first,c=e.last,u=(0,o.default)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:l,first:s,last:c});return r.default.createElement("div",{style:u.swatch,onClick:function(e){return i({h:t.h,s:.5,l:n,source:"hsl"},e)}})};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderPointer=void 0;var r=a(n(1)),o=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}var i=t.SliderPointer=function(){var e=(0,o.default)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.default.createElement("div",{style:e.picker})};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatches=void 0;var r=d(n(1)),o=d(n(3)),a=d(n(2)),i=d(n(15)),l=d(n(8)),s=d(n(12)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(123)),u=n(5),p=d(n(286));function d(e){return e&&e.__esModule?e:{default:e}}var f=t.Swatches=function(e){var t=e.width,n=e.height,o=e.onChange,c=e.onSwatchHover,d=e.colors,f=e.hex,h=e.styles,g=void 0===h?{}:h,m=e.className,v=void 0===m?"":m,b=(0,a.default)((0,l.default)({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},g)),y=function(e,t){s.default.isValidHex(e)&&o({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:b.picker,className:"swatches-picker "+v},r.default.createElement(u.Raised,null,r.default.createElement("div",{style:b.overflow},r.default.createElement("div",{style:b.body},(0,i.default)(d,(function(e){return r.default.createElement(p.default,{key:e.toString(),group:e,active:f,onClick:y,onSwatchHover:c})})),r.default.createElement("div",{style:b.clear})))))};f.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),height:o.default.oneOfType([o.default.string,o.default.number]),colors:o.default.arrayOf(o.default.arrayOf(o.default.string)),styles:o.default.object},f.defaultProps={width:320,height:240,colors:[[c.red[900],c.red[700],c.red[500],c.red[300],c.red[100]],[c.pink[900],c.pink[700],c.pink[500],c.pink[300],c.pink[100]],[c.purple[900],c.purple[700],c.purple[500],c.purple[300],c.purple[100]],[c.deepPurple[900],c.deepPurple[700],c.deepPurple[500],c.deepPurple[300],c.deepPurple[100]],[c.indigo[900],c.indigo[700],c.indigo[500],c.indigo[300],c.indigo[100]],[c.blue[900],c.blue[700],c.blue[500],c.blue[300],c.blue[100]],[c.lightBlue[900],c.lightBlue[700],c.lightBlue[500],c.lightBlue[300],c.lightBlue[100]],[c.cyan[900],c.cyan[700],c.cyan[500],c.cyan[300],c.cyan[100]],[c.teal[900],c.teal[700],c.teal[500],c.teal[300],c.teal[100]],["#194D33",c.green[700],c.green[500],c.green[300],c.green[100]],[c.lightGreen[900],c.lightGreen[700],c.lightGreen[500],c.lightGreen[300],c.lightGreen[100]],[c.lime[900],c.lime[700],c.lime[500],c.lime[300],c.lime[100]],[c.yellow[900],c.yellow[700],c.yellow[500],c.yellow[300],c.yellow[100]],[c.amber[900],c.amber[700],c.amber[500],c.amber[300],c.amber[100]],[c.orange[900],c.orange[700],c.orange[500],c.orange[300],c.orange[100]],[c.deepOrange[900],c.deepOrange[700],c.deepOrange[500],c.deepOrange[300],c.deepOrange[100]],[c.brown[900],c.brown[700],c.brown[500],c.brown[300],c.brown[100]],[c.blueGrey[900],c.blueGrey[700],c.blueGrey[500],c.blueGrey[300],c.blueGrey[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},t.default=(0,u.ColorWrap)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SwatchesGroup=void 0;var r=l(n(1)),o=l(n(2)),a=l(n(15)),i=l(n(287));function l(e){return e&&e.__esModule?e:{default:e}}var s=t.SwatchesGroup=function(e){var t=e.onClick,n=e.onSwatchHover,l=e.group,s=e.active,c=(0,o.default)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return r.default.createElement("div",{style:c.group},(0,a.default)(l,(function(e,o){return r.default.createElement(i.default,{key:e,color:e,active:e.toLowerCase()===s,first:0===o,last:o===l.length-1,onClick:t,onSwatchHover:n})})))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SwatchesColor=void 0;var r=s(n(1)),o=s(n(2)),a=s(n(12)),i=n(5),l=s(n(288));function s(e){return e&&e.__esModule?e:{default:e}}var c=t.SwatchesColor=function(e){var t=e.color,n=e.onClick,s=void 0===n?function(){}:n,c=e.onSwatchHover,u=e.first,p=e.last,d=e.active,f=(0,o.default)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:a.default.getContrastingColor(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:u,last:p,active:d,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.default.createElement(i.Swatch,{color:t,style:f.color,onClick:s,onHover:c,focusStyle:{boxShadow:"0 0 4px "+t}},r.default.createElement("div",{style:f.check},r.default.createElement(l.default,null)))};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(1),i=(r=a)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,a=void 0===r?24:r,l=e.height,s=void 0===l?24:l,c=e.style,u=void 0===c?{}:c,p=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["fill","width","height","style"]);return i.default.createElement("svg",o({viewBox:"0 0 24 24",style:o({fill:n,width:a,height:s},u)},p),i.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Twitter=void 0;var r=u(n(1)),o=u(n(3)),a=u(n(2)),i=u(n(15)),l=u(n(8)),s=u(n(12)),c=n(5);function u(e){return e&&e.__esModule?e:{default:e}}var p=t.Twitter=function(e){var t=e.onChange,n=e.onSwatchHover,o=e.hex,u=e.colors,p=e.width,d=e.triangle,f=e.styles,h=void 0===f?{}:f,g=e.className,m=void 0===g?"":g,v=(0,a.default)((0,l.default)({default:{card:{width:p,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},h),{"hide-triangle":"hide"===d,"top-left-triangle":"top-left"===d,"top-right-triangle":"top-right"===d}),b=function(e,n){s.default.isValidHex(e)&&t({hex:e,source:"hex"},n)};return r.default.createElement("div",{style:v.card,className:"twitter-picker "+m},r.default.createElement("div",{style:v.triangleShadow}),r.default.createElement("div",{style:v.triangle}),r.default.createElement("div",{style:v.body},(0,i.default)(u,(function(e,t){return r.default.createElement(c.Swatch,{key:t,color:e,hex:e,style:v.swatch,onClick:b,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})})),r.default.createElement("div",{style:v.hash},"#"),r.default.createElement(c.EditableInput,{label:null,style:{input:v.input},value:o.replace("#",""),onChange:b}),r.default.createElement("div",{style:v.clear})))};p.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),triangle:o.default.oneOf(["hide","top-left","top-right"]),colors:o.default.arrayOf(o.default.string),styles:o.default.object},p.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},t.default=(0,c.ColorWrap)(p)},function(e,t,n){var r=n(291);e.exports={Graph:r.Graph,json:n(316),alg:n(317),version:r.version}},function(e,t,n){e.exports={Graph:n(75),version:n(315)}},function(e,t,n){var r=n(105);e.exports=function(e){return r(e,4)}},function(e,t,n){var r=n(49);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){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t,n){var r=n(61),o=n(26),a=n(32),i=n(6),l=n(16),s=n(24),c=n(40),u=n(33),p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(l(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||s(e)||u(e)||a(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}},function(e,t){e.exports=function(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)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,a){n=r?(r=!1,e):t(n,e,o,a)})),n}},function(e,t,n){var r=n(61),o=n(26),a=n(16),i=n(81),l=n(299);e.exports=function(e){if(null==e)return 0;if(a(e))return i(e)?l(e):e.length;var t=o(e);return"[object Map]"==t||"[object Set]"==t?e.size:r(e).length}},function(e,t,n){var r=n(300),o=n(301),a=n(302);e.exports=function(e){return o(e)?a(e):r(e)}},function(e,t,n){var r=n(102)("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]",a="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+r+"|"+o+")"+"?",c="[\\ufe0e\\ufe0f]?"+s+("(?:\\u200d(?:"+[a,i,l].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*"),u="(?:"+[a+r+"?",r,i,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(70),o=n(112),a=n(37),i=n(17),l=n(41),s=n(6),c=n(24),u=n(34),p=n(7),d=n(33);e.exports=function(e,t,n){var f=s(e),h=f||c(e)||d(e);if(t=i(t,4),null==n){var g=e&&e.constructor;n=h?f?new g:[]:p(e)&&u(g)?o(l(e)):{}}return(h?r:a)(e,(function(e,r,o){return t(n,e,r,o)})),n}},function(e,t,n){var r=n(76),o=n(52),a=n(306),i=n(114),l=o((function(e){return a(r(e,1,i,!0))}));e.exports=l},function(e,t,n){var r=n(23),o=n(32),a=n(6),i=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||o(e)||!!(i&&e&&e[i])}},function(e,t,n){var r=n(89),o=n(307),a=n(311),i=n(90),l=n(312),s=n(65);e.exports=function(e,t,n){var c=-1,u=o,p=e.length,d=!0,f=[],h=f;if(n)d=!1,u=a;else if(p>=200){var g=t?null:l(e);if(g)return s(g);d=!1,u=i,h=new r}else h=t?[]:f;e:for(;++c<p;){var m=e[c],v=t?t(m):m;if(m=n||0!==m?m:0,d&&v==v){for(var b=h.length;b--;)if(h[b]===v)continue e;t&&h.push(v),f.push(m)}else u(h,v,n)||(h!==f&&h.push(v),f.push(m))}return f}},function(e,t,n){var r=n(308);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(129),o=n(309),a=n(310);e.exports=function(e,t,n){return t==t?a(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(96),o=n(313),a=n(65),i=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=i},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(42);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(10),o=n(75);function a(e){return r.map(e.nodes(),(function(t){var n=e.node(t),o=e.parent(t),a={v:t};return r.isUndefined(n)||(a.value=n),r.isUndefined(o)||(a.parent=o),a}))}function i(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:a(e),edges:i(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(318),dijkstra:n(131),dijkstraAll:n(319),findCycles:n(320),floydWarshall:n(321),isAcyclic:n(322),postorder:n(323),preorder:n(324),prim:n(325),tarjan:n(133),topsort:n(134)}},function(e,t,n){var r=n(10);e.exports=function(e){var t,n={},o=[];function a(o){r.has(n,o)||(n[o]=!0,t.push(o),r.each(e.successors(o),a),r.each(e.predecessors(o),a))}return r.each(e.nodes(),(function(e){t=[],a(e),t.length&&o.push(t)})),o}},function(e,t,n){var r=n(131),o=n(10);e.exports=function(e,t,n){return o.transform(e.nodes(),(function(o,a){o[a]=r(e,a,t,n)}),{})}},function(e,t,n){var r=n(10),o=n(133);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(10);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,a=t(n);r[e][o]={distance:a,predecessor:e}}))})),o.forEach((function(e){var t=r[e];o.forEach((function(n){var a=r[n];o.forEach((function(n){var r=a[e],o=t[n],i=a[n],l=r.distance+o.distance;l<i.distance&&(i.distance=l,i.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(134);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(135);e.exports=function(e,t){return r(e,t,"post")}},function(e,t,n){var r=n(135);e.exports=function(e,t){return r(e,t,"pre")}},function(e,t,n){var r=n(10),o=n(75),a=n(132);e.exports=function(e,t){var n,i=new o,l={},s=new a;function c(e){var r=e.v===n?e.w:e.v,o=s.priority(r);if(void 0!==o){var a=t(e);a<o&&(l[r]=n,s.decrease(r,a))}}if(0===e.nodeCount())return i;r.each(e.nodes(),(function(e){s.add(e,Number.POSITIVE_INFINITY),i.setNode(e)})),s.decrease(e.nodes()[0],0);var u=!1;for(;s.size()>0;){if(n=s.removeMin(),r.has(l,n))i.setEdge(n,l[n]);else{if(u)throw new Error("Input graph is not connected: "+e);u=!0}e.nodeEdges(n).forEach(c)}return i}},function(e,t,n){"use strict";var r=n(4),o=n(355),a=n(358),i=n(359),l=n(9).normalizeRanks,s=n(361),c=n(9).removeEmptyRanks,u=n(362),p=n(363),d=n(364),f=n(365),h=n(374),g=n(9),m=n(13).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?g.time:g.notime;n("layout",(function(){var t=n("  buildLayoutGraph",(function(){return function(e){var t=new m({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,x),w)),t.setParent(n,e.parent(n))})),r.forEach(e.edges(),(function(n){var o=S(e.edge(n));t.setEdge(n,r.merge({},C,E(o,_),r.pick(o,k)))})),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(){i(g.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};g.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(){a.run(e)})),t("    parentDummyChains",(function(){s(e)})),t("    addBorderSegments",(function(){p(e)})),t("    order",(function(){f(e)})),t("    insertSelfEdges",(function(){!function(e){var t=g.buildLayerMatrix(e);r.forEach(t,(function(t){var n=0;r.forEach(t,(function(t,o){var a=e.node(t);a.order=o+n,r.forEach(a.selfEdges,(function(t){g.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:a.rank,order:o+ ++n,e:t.e,label:t.label},"_se")})),delete a.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,a=r.y,i=n.x-o,l=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:o+2*i/3,y:a-l},{x:o+5*i/6,y:a-l},{x:o+i,y:a},{x:o+5*i/6,y:a+l},{x:o+2*i/3,y:a+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),a=e.node(n.borderBottom),i=e.node(r.last(n.borderLeft)),l=e.node(r.last(n.borderRight));n.width=Math.abs(l.x-i.x),n.height=Math.abs(a.y-o.y),n.x=i.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(){a.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,a=0,i=e.graph(),l=i.marginx||0,s=i.marginy||0;function c(e){var r=e.x,i=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,i-s/2),a=Math.max(a,i+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 a=e.edge(n);r.forEach(a.points,(function(e){e.x-=t,e.y-=o})),r.has(a,"x")&&(a.x-=t),r.has(a,"y")&&(a.y-=o)})),i.width=n-t+l,i.height=a-o+s}(e)})),t("    assignNodeIntersects",(function(){!function(e){r.forEach(e.edges(),(function(t){var n,r,o=e.edge(t),a=e.node(t.v),i=e.node(t.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=i,r=a),o.points.unshift(g.intersectRect(a,n)),o.points.push(g.intersectRect(i,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),a=t.edge(n);o.points=a.points,r.has(a,"x")&&(o.x=a.x,o.y=a.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"],x=["width","height"],w={width:0,height:0},_=["minlen","weight","width","height","labeloffset"],C={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["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(52),o=n(25),a=n(53),i=n(28),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&&a(t[0],t[1],c)&&(r=1);++n<r;)for(var u=t[n],p=i(u),d=-1,f=p.length;++d<f;){var h=p[d],g=e[h];(void 0===g||o(g,l[h])&&!s.call(e,h))&&(e[h]=u[h])}return e}));e.exports=c},function(e,t,n){var r=n(329)(n(330));e.exports=r},function(e,t,n){var r=n(17),o=n(16),a=n(19);e.exports=function(e){return function(t,n,i){var l=Object(t);if(!o(t)){var s=r(n,3);t=a(t),n=function(e){return s(l[e],e,l)}}var c=e(t,n,i);return c>-1?l[s?t[c]:c]:void 0}}},function(e,t,n){var r=n(129),o=n(17),a=n(331),i=Math.max;e.exports=function(e,t,n){var l=null==e?0:e.length;if(!l)return-1;var s=null==n?0:a(n);return s<0&&(s=i(l+s,0)),r(e,o(t,3),s)}},function(e,t,n){var r=n(136);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(57),o=n(62),a=n(28);e.exports=function(e,t){return null==e?e:r(e,o(t),a)}},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(51),o=n(37),a=n(17);e.exports=function(e,t){var n={};return t=a(t,3),o(e,(function(e,o,a){r(n,o,t(e,o,a))})),n}},function(e,t,n){var r=n(77),o=n(336),a=n(21);e.exports=function(e){return e&&e.length?r(e,a,o):void 0}},function(e,t){e.exports=function(e,t){return e>t}},function(e,t,n){var r=n(77),o=n(138),a=n(21);e.exports=function(e){return e&&e.length?r(e,a,o):void 0}},function(e,t,n){var r=n(77),o=n(17),a=n(138);e.exports=function(e,t){return e&&e.length?r(e,o(t,2),a):void 0}},function(e,t,n){var r=n(340),o=n(343)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},function(e,t,n){var r=n(341),o=n(100);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},function(e,t,n){var r=n(68),o=n(342),a=n(48);e.exports=function(e,t,n){for(var i=-1,l=t.length,s={};++i<l;){var c=t[i],u=r(e,c);n(u,c)&&o(s,a(c,e),u)}return s}},function(e,t,n){var r=n(50),o=n(48),a=n(38),i=n(7),l=n(35);e.exports=function(e,t,n,s){if(!i(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 g=d[f];void 0===(h=s?s(g,f,d):void 0)&&(h=i(g)?g:a(t[c+1])?[]:{})}r(d,f,h),d=d[f]}return e}},function(e,t,n){var r=n(137),o=n(116),a=n(117);e.exports=function(e){return a(o(e,void 0,r),e+"")}},function(e,t,n){var r=n(345)();e.exports=r},function(e,t,n){var r=n(346),o=n(53),a=n(136);e.exports=function(e){return function(t,n,i){return i&&"number"!=typeof i&&o(t,n,i)&&(n=i=void 0),t=a(t),void 0===n?(n=t,t=0):n=a(n),i=void 0===i?t<n?1:-1:a(i),r(t,n,i,e)}}},function(e,t){var n=Math.ceil,r=Math.max;e.exports=function(e,t,o,a){for(var i=-1,l=r(n((t-e)/(o||1)),0),s=Array(l);l--;)s[a?l:++i]=e,e+=o;return s}},function(e,t,n){var r=n(76),o=n(348),a=n(52),i=n(53),l=a((function(e,t){if(null==e)return[];var n=t.length;return n>1&&i(e,t[0],t[1])?t=[]:n>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=l},function(e,t,n){var r=n(42),o=n(17),a=n(103),i=n(349),l=n(39),s=n(350),c=n(21);e.exports=function(e,t,n){var u=-1;t=r(t.length?t:[c],l(o));var p=a(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++u,value:e}}));return i(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(351);e.exports=function(e,t,n){for(var o=-1,a=e.criteria,i=t.criteria,l=a.length,s=n.length;++o<l;){var c=r(a[o],i[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(27);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,a=e==e,i=r(e),l=void 0!==t,s=null===t,c=t==t,u=r(t);if(!s&&!u&&!i&&e>t||i&&l&&c&&!s&&!u||o&&l&&c||!n&&c||!a)return 1;if(!o&&!i&&!u&&e<t||u&&n&&a&&!o&&!i||s&&n&&a||!l&&a||!c)return-1}return 0}},function(e,t,n){var r=n(99),o=0;e.exports=function(e){var t=++o;return r(e)+t}},function(e,t,n){var r=n(50),o=n(354);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,a=t.length,i={};++r<o;){var l=r<a?t[r]:void 0;n(i,e[r],l)}return i}},function(e,t,n){"use strict";var r=n(4),o=n(356);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={};function a(i){r.has(o,i)||(o[i]=!0,n[i]=!0,r.forEach(e.outEdges(i),(function(e){r.has(n,e.w)?t.push(e):a(e.w)})),delete n[i])}return r.forEach(e.nodes(),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(4),o=n(13).Graph,a=n(357);e.exports=function(e,t){if(e.nodeCount()<=1)return[];var n=function(e,t){var n=new o,i=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),a=r+o;n.setEdge(e.v,e.w,a),l=Math.max(l,n.node(e.v).out+=o),i=Math.max(i,n.node(e.w).in+=o)}));var c=r.range(l+i+3).map((function(){return new a})),u=i+1;return r.forEach(n.nodes(),(function(e){s(c,u,n.node(e))})),{graph:n,buckets:c,zeroIdx:u}}(e,t||i),c=function(e,t,n){var r,o=[],a=t[t.length-1],i=t[0];for(;e.nodeCount();){for(;r=i.dequeue();)l(e,t,n,r);for(;r=a.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 i=r.constant(1);function l(e,t,n,o,a){var i=a?[]:void 0;return r.forEach(e.inEdges(o.v),(function(r){var o=e.edge(r),l=e.node(r.v);a&&i.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),a=r.w,i=e.node(a);i.in-=o,s(t,n,i)})),e.removeNode(o.v),i}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(4),o=n(9);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),(function(t){!function(e,t){var n,r,a,i=t.v,l=e.node(i).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),a=0,++l;l<c;++a,++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(i,n,{weight:p.weight},u),0===a&&e.graph().dummyChains.push(n),i=n;e.setEdge(i,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(54).longestPath,o=n(139),a=n(360);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":i(e);break;default:l(e)}};var i=r;function l(e){a(e)}},function(e,t,n){"use strict";var r=n(4),o=n(139),a=n(54).slack,i=n(54).longestPath,l=n(13).alg.preorder,s=n(13).alg.postorder,c=n(9).simplify;function u(e){e=c(e),i(e);var t,n=o(e);for(f(n),p(n,e);t=g(n);)v(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,a=!0,i=t.edge(n,o),l=0;return i||(a=!1,i=t.edge(o,n)),l=i.weight,r.forEach(t.nodeEdges(n),(function(r){var i,s,c=r.v===n,u=c?r.w:r.v;if(u!==o){var p=c===a,d=t.edge(r).weight;if(l+=p?d:-d,i=n,s=u,e.hasEdge(i,s)){var f=e.edge(n,u).cutvalue;l+=p?-f:f}}})),l}function f(e,t){arguments.length<2&&(t=e.nodes()[0]),h(e,{},1,t)}function h(e,t,n,o,a){var i=n,l=e.node(o);return t[o]=!0,r.forEach(e.neighbors(o),(function(a){r.has(t,a)||(n=h(e,t,n,a,o))})),l.low=i,l.lim=n++,a?l.parent=a:delete l.parent,n}function g(e){return r.find(e.edges(),(function(t){return e.edge(t).cutvalue<0}))}function m(e,t,n){var o=n.v,i=n.w;t.hasEdge(o,i)||(o=n.w,i=n.v);var l=e.node(o),s=e.node(i),c=l,u=!1;l.lim>s.lim&&(c=s,u=!0);var p=r.filter(t.edges(),(function(t){return u===b(e,e.node(t.v),c)&&u!==b(e,e.node(t.w),c)}));return r.minBy(p,(function(e){return a(t,e)}))}function v(e,t,n,o){var a=n.v,i=n.w;e.removeEdge(a,i),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),a=!1;o||(o=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?o.minlen:-o.minlen)}))}(e,t)}function b(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=g,u.enterEdge=m,u.exchangeEdges=v},function(e,t,n){var r=n(4);e.exports=function(e){var t=function(e){var t={},n=0;function o(a){var i=n;r.forEach(e.children(a),o),t[a]={low:i,lim:n++}}return r.forEach(e.children(),o),t}(e);r.forEach(e.graph().dummyChains,(function(n){for(var r=e.node(n),o=r.edgeObj,a=function(e,t,n,r){var o,a,i=[],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),i.push(o)}while(o&&(t[o].low>s||c>t[o].lim));a=o,o=r;for(;(o=e.parent(o))!==a;)l.push(o);return{path:i.concat(l.reverse()),lca:a}}(e,t,o.v,o.w),i=a.path,l=a.lca,s=0,c=i[s],u=!0;n!==o.w;){if(r=e.node(n),u){for(;(c=i[s])!==l&&e.node(c).maxRank<r.rank;)s++;c===l&&(u=!1)}if(!u){for(;s<i.length-1&&e.node(c=i[s+1]).minRank<=r.rank;)s++;c=i[s]}e.setParent(n,c),n=e.successors(n)[0]}}))}},function(e,t,n){var r=n(4),o=n(9);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,a){var i=e.children(o);i&&i.length&&r.forEach(i,(function(e){n(e,a+1)}));t[o]=a}(n,1)})),t}(e),a=r.max(r.values(n))-1,i=2*a+1;e.graph().nestingRoot=t,r.forEach(e.edges(),(function(t){e.edge(t).minlen*=i}));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,a,i,l,s,c){var u=t.children(c);if(!u.length)return void(c!==n&&t.setEdge(n,c,{weight:0,minlen:a}));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,a,i,l,s,r);var o=t.node(r),u=o.borderTop?o.borderTop:r,f=o.borderBottom?o.borderBottom:r,h=o.borderTop?i:2*i,g=u!==f?1:l-s[c]+1;t.setEdge(p,u,{weight:h,minlen:g,nestingEdge:!0}),t.setEdge(f,d,{weight:h,minlen:g,nestingEdge:!0})})),t.parent(c)||t.setEdge(n,p,{weight:0,minlen:l+s[c]})}(e,t,i,l,a,n,s)})),e.graph().nodeRankFactor=i},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(4),o=n(9);function a(e,t,n,r,a,i){var l={width:0,height:0,rank:i,borderType:t},s=a[t][i-1],c=o.addDummyNode(e,"border",l,n);a[t][i]=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),i=e.node(n);if(o.length&&r.forEach(o,t),r.has(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var l=i.minRank,s=i.maxRank+1;l<s;++l)a(e,"borderLeft","_bl",n,i,l),a(e,"borderRight","_br",n,i,l)}}))}},function(e,t,n){"use strict";var r=n(4);function o(e){r.forEach(e.nodes(),(function(t){a(e.node(t))})),r.forEach(e.edges(),(function(t){a(e.edge(t))}))}function a(e){var t=e.width;e.width=e.height,e.height=t}function i(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){i(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.forEach(n.points,i),r.has(n,"y")&&i(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(4),o=n(366),a=n(367),i=n(368),l=n(372),s=n(373),c=n(13).Graph,u=n(9);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,a=i(e,o,n,t);r.forEach(a.vs,(function(t,n){e.node(t).order=n})),s(e,n,a.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"),i=p(e,r.range(t-1,-1,-1),"outEdges"),l=o(e);f(e,l);for(var s,c=Number.POSITIVE_INFINITY,h=0,g=0;g<4;++h,++g){d(h%2?n:i,h%4>=2),l=u.buildLayerMatrix(e);var m=a(e,l);m<c&&(g=0,s=r.cloneDeep(l),c=m)}f(e,s)}},function(e,t,n){"use strict";var r=n(4);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}))),a=r.map(r.range(o+1),(function(){return[]}));var i=r.sortBy(n,(function(t){return e.node(t).rank}));return r.forEach(i,(function n(o){if(r.has(t,o))return;t[o]=!0;var i=e.node(o);a[i.rank].push(o),r.forEach(e.successors(o),n)})),a}},function(e,t,n){"use strict";var r=n(4);function o(e,t,n){for(var o=r.zipObject(n,r.map(n,(function(e,t){return t}))),a=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),i=1;i<n.length;)i<<=1;var l=2*i-1;i-=1;var s=r.map(new Array(l),(function(){return 0})),c=0;return r.forEach(a.forEach((function(e){var t=e.pos+i;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(4),o=n(369),a=n(370),i=n(371);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")&&(a=n,i=o,r.isUndefined(a.barycenter)?(a.barycenter=i.barycenter,a.weight=i.weight):(a.barycenter=(a.barycenter*a.weight+i.barycenter*i.weight)/(a.weight+i.weight),a.weight+=i.weight))}var a,i}));var g=a(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)}))}(g,f);var m=i(g,s);if(p&&(m.vs=r.flatten([p,m.vs,d],!0),t.predecessors(p).length)){var v=t.node(t.predecessors(p)[0]),b=t.node(t.predecessors(d)[0]);r.has(m,"barycenter")||(m.barycenter=0,m.weight=0),m.barycenter=(m.barycenter*m.weight+v.order+b.order)/(m.weight+2),m.weight+=2}return m}},function(e,t,n){var r=n(4);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(4);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 a=e.pop();t.push(a),r.forEach(a.in.reverse(),n(a)),r.forEach(a.out,o(a))}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(4),o=n(9);function a(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")})),i=n.lhs,l=r.sortBy(n.rhs,(function(e){return-e.i})),s=[],c=0,u=0,p=0;i.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=a(s,l,p),r.forEach(i,(function(e){p+=e.vs.length,s.push(e.vs),c+=e.barycenter*e.weight,u+=e.weight,p=a(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(4),o=n(13).Graph;e.exports=function(e,t,n){var a=function(e){var t;for(;e.hasNode(t=r.uniqueId("_root")););return t}(e),i=new o({compound:!0}).setGraph({root:a}).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)&&(i.setNode(o),i.setParent(o,s||a),r.forEach(e[n](o),(function(t){var n=t.v===o?t.w:t.v,a=i.edge(n,o),l=r.isUndefined(a)?0:a.weight;i.setEdge(n,o,{weight:e.edge(t).weight+l})})),r.has(l,"minRank")&&i.setNode(o,{borderLeft:l.borderLeft[t],borderRight:l.borderRight[t]}))})),i}},function(e,t,n){var r=n(4);e.exports=function(e,t,n){var o,a={};r.forEach(n,(function(n){for(var r,i,l=e.parent(n);l;){if((r=e.parent(l))?(i=a[r],a[r]=l):(i=o,o=l),i&&i!==l)return void t.setEdge(i,l);l=r}}))}},function(e,t,n){"use strict";var r=n(4),o=n(9),a=n(375).positionX;e.exports=function(e){(function(e){var t=o.buildLayerMatrix(e),n=e.graph().ranksep,a=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=a+o/2})),a+=o+n}))})(e=o.asNonCompoundGraph(e)),r.forEach(a(e),(function(t,n){e.node(n).x=t}))}},function(e,t,n){"use strict";var r=n(4),o=n(13).Graph,a=n(9);function i(e,t){var n={};return r.reduce(t,(function(t,o){var a=0,i=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(i,u+1),(function(t){r.forEach(e.predecessors(t),(function(r){var o=e.node(r),i=o.order;!(i<a||d<i)||o.dummy&&e.node(t).dummy||s(n,r,t)}))})),i=u+1,a=d)})),o})),n}function l(e,t){var n={};function o(t,o,a,i,l){var c;r.forEach(r.range(o,a),(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<i||r.order>l)&&s(n,t,c)}))}))}return r.reduce(t,(function(t,n){var a,i=-1,l=0;return r.forEach(n,(function(r,s){if("border"===e.node(r).dummy){var c=e.predecessors(r);c.length&&(a=e.node(c[0]).order,o(n,l,s,i,a),l=s,i=a)}o(n,l,n.length,a,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 a={},i={},l={};return r.forEach(t,(function(e){r.forEach(e,(function(e,t){a[e]=e,i[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];i[e]===e&&t<l[f]&&!c(n,e,f)&&(i[f]=e,i[e]=a[e]=a[f],t=l[f])}}))})),{root:a,align:i}}function p(e,t,n,a,i){var l={},s=function(e,t,n,a){var i=new o,l=e.graph(),s=function(e,t,n){return function(o,a,i){var l,s=o.node(a),c=o.node(i),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,a);return r.forEach(t,(function(t){var o;r.forEach(t,(function(t){var r=n[t];if(i.setNode(r),o){var a=n[o],l=i.edge(a,r);i.setEdge(a,r,Math.max(s(e,t,o),l||0))}o=t}))})),i}(e,t,n,i),c=i?"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(a,(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 a=function(e,t){return e.node(t).width}(e,r)/2;n=Math.max(t+a,n),o=Math.min(t-a,o)})),n-o}))}function f(e,t){var n=r.values(t),o=r.min(n),a=r.max(n);r.forEach(["u","d"],(function(n){r.forEach(["l","r"],(function(i){var l,s=n+i,c=e[s];if(c!==t){var u=r.values(c);(l="l"===i?o-r.min(u):a-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 a=r.sortBy(r.map(e,o));return(a[1]+a[2])/2}))}e.exports={positionX:function(e){var t,n=a.buildLayerMatrix(e),o=r.merge(i(e,n),l(e,n)),s={};r.forEach(["u","d"],(function(a){t="u"===a?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 i=("u"===a?e.predecessors:e.successors).bind(e),l=u(e,t,o,i),c=p(e,t,l.root,l.align,"r"===n);"r"===n&&(c=r.mapValues(c,(function(e){return-e}))),s[a+n]=c}))}));var c=d(e,s);return f(s,c),h(s,e.graph().align)},findType1Conflicts:i,findType2Conflicts:l,addConflict:s,hasConflict:c,verticalAlignment:u,horizontalCompaction:p,alignCoordinates:f,findSmallestWidthAlignment:d,balance:h}},function(e,t,n){var r=n(4),o=n(9),a=n(13).Graph;e.exports={debugOrdering:function(e){var t=o.buildLayerMatrix(e),n=new a({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(379);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(31)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(30)(!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 img.selected{box-shadow:0 0 0 2px;border-radius:50%}#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;z-index:3}#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 .frame-comments.has-comments{display:grid;grid-row:2;grid-column:1;padding:0 10px;font-style:italic;word-wrap:break-word}#graph-canvas #graph-container .frame-box.selected .frame-box-border{border-color:white}#graph-canvas #graph-container .frame-box .right-handle{grid-area:1 / 2 / 3 / 2;width:4px;background-color:transparent;cursor:ew-resize}#graph-canvas #graph-container .frame-box .right-handle::after{content:"";width:8px;position:absolute;top:0;bottom:0;margin-left:-4px;cursor:ew-resize}#graph-canvas #graph-container .frame-box .right-handle.collapsed{cursor:pointer}#graph-canvas #graph-container .frame-box .top-right-corner-handle{background-color:transparent;height:4px;z-index:21;cursor:ne-resize;width:4px;margin-left:-6px}#graph-canvas #graph-container .frame-box .top-right-corner-handle::after{background-color:transparent;cursor:ne-resize;margin-left:unset;top:-4px;height:10px;width:10px}#graph-canvas #graph-container .frame-box .bottom-right-corner-handle{background-color:transparent;height:0px;z-index:21;cursor:nw-resize;grid-area:4 / 2 / 4 / 2;margin-left:-2px}#graph-canvas #graph-container .frame-box .bottom-right-corner-handle::after{background-color:transparent;height:10px;cursor:nw-resize;top:unset;bottom:-4px;width:10px}#graph-canvas #graph-container .frame-box .left-handle{grid-area:1 / 1 / 3 / 1;width:4px;background-color:transparent;cursor:ew-resize}#graph-canvas #graph-container .frame-box .left-handle::before{content:"";width:8px;position:absolute;top:0;bottom:0;margin-left:-4px}#graph-canvas #graph-container .frame-box .top-left-corner-handle{background-color:transparent;height:4px;z-index:21;cursor:nw-resize;width:4px;margin-left:-4px}#graph-canvas #graph-container .frame-box .top-left-corner-handle::before{background-color:transparent;cursor:nw-resize;margin-left:unset;top:-4px;height:10px;width:10px}#graph-canvas #graph-container .frame-box .bottom-left-corner-handle{background-color:transparent;height:0px;z-index:21;cursor:sw-resize;grid-area:4 / 1 / 4 / 1}#graph-canvas #graph-container .frame-box .bottom-left-corner-handle::before{background-color:transparent;height:10px;cursor:sw-resize;top:unset;bottom:-4px;width:10px}#graph-canvas #graph-container .frame-box .top-handle{grid-area:1 / 1 / 1 / 1;background-color:transparent;height:4px;cursor:ns-resize}#graph-canvas #graph-container .frame-box .top-handle::before{content:"";width:100%;position:absolute;top:-4px;bottom:100%;right:0;left:0;margin-bottom:-8px;cursor:ns-resize;height:8px}#graph-canvas #graph-container .frame-box .bottom-handle{grid-area:3 / 1 / 3 / 1;background-color:transparent;height:4px;cursor:ns-resize}#graph-canvas #graph-container .frame-box .bottom-handle::after{content:"";width:100%;position:absolute;top:100%;bottom:0;right:0;left:0;margin-top:-8px;cursor:ns-resize;height:12px}#graph-canvas #graph-container .frame-box.collapsed .top-handle,#graph-canvas #graph-container .frame-box.collapsed .top-right-corner-handle,#graph-canvas #graph-container .frame-box.collapsed .right-handle,#graph-canvas #graph-container .frame-box.collapsed .bottom-right-corner-handle,#graph-canvas #graph-container .frame-box.collapsed .bottom-handle,#graph-canvas #graph-container .frame-box.collapsed .bottom-left-corner-handle,#graph-canvas #graph-container .frame-box.collapsed .left-handle,#graph-canvas #graph-container .frame-box.collapsed .top-left-corner-handle{cursor:default}#graph-canvas #graph-container .frame-box.collapsed .right-handle::after,#graph-canvas #graph-container .frame-box.collapsed .bottom-handle::after,#graph-canvas #graph-container .frame-box.collapsed .top-right-corner-handle::after,#graph-canvas #graph-container .frame-box.collapsed .bottom-right-corner-handle::after{cursor:default}#graph-canvas #graph-container .frame-box.collapsed .left-handle::before,#graph-canvas #graph-container .frame-box.collapsed .top-handle::before,#graph-canvas #graph-container .frame-box.collapsed .top-left-corner-handle::before,#graph-canvas #graph-container .frame-box.collapsed .bottom-left-corner-handle::before{cursor:default}#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:4;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:#464348;background:#464348}#graph-canvas #graph-container #graph-canvas-container .visual .header.inspector{border-color:#66491b;background:#66491b}#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(381);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(31)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(30)(!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 .color-picker{height:calc(100% - 8px);margin:4px;width:calc(100% - 8px)}#propertyTab .color-picker .color-rect{height:calc(100% - 4px);border:2px white solid;cursor:pointer;min-height:18px}#propertyTab .color-picker .color-picker-cover{position:fixed;top:0px;right:0px;bottom:0px;left:0px}#propertyTab .color-picker .color-picker-float{z-index:2;position:absolute}#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 .cbx:checked ~ label.disabled{background:#164975;cursor:pointer}#propertyTab .checkBoxLine .checkBox .cbx:checked ~ label.disabled:after{left:20px;background:#555;cursor:pointer}#propertyTab .checkBoxLine .checkBox .cbx ~ label.disabled{background:#555;cursor:pointer}#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;width:50px;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 .copy img{height:100%}#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(383);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(31)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(30)(!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){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3EpopOut%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpath class='cls-1' d='M10.5,10.5v19h19v-19Zm18,18H20V20H11.5V11.5h17Z'/%3E%3C/g%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3EcolorPicker%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpath class='cls-1' d='M22.76,11c-1.75,1.25,2.18,3.18.18,4.33-1.61.92-3.23-1.69-6.14-2.34A7.34,7.34,0,0,0,8.58,23c1.82,4.11,6.31,6.22,11.46,6.22C26.91,29.22,32,25.6,32,20,32,14.16,24.89,9.5,22.76,11ZM13.1,24.85a3,3,0,1,1,3-3A3,3,0,0,1,13.1,24.85Zm5.78-2.43a2.67,2.67,0,1,1-2.66,2.66A2.66,2.66,0,0,1,18.88,22.42ZM24.77,22a2.34,2.34,0,1,1-2.34,2.34A2.34,2.34,0,0,1,24.77,22Zm3.81-3.08a2,2,0,1,1-2,2A2,2,0,0,1,28.58,18.92Zm-.95-4.22a1.7,1.7,0,1,1-1.69,1.69A1.69,1.69,0,0,1,27.63,14.7Z'/%3E%3C/g%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3EpauseIcon%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpath class='cls-1' d='M17,28H13V12h4Zm9-16H22V28h4Z'/%3E%3C/g%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3EplayIcon%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpolygon class='cls-1' points='12.99 9.98 12.99 28.04 29 19 12.99 9.98'/%3E%3C/g%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3EdoubeSided%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpolygon class='cls-1' points='27.3 14.7 26.52 15.48 30.48 19.44 21.33 19.44 21.33 11.15 18.65 11.15 18.65 19.44 9.52 19.44 13.48 15.48 12.7 14.7 7.39 20 12.7 25.3 13.48 24.52 9.52 20.56 18.65 20.56 18.65 28.85 21.33 28.85 21.33 20.56 30.48 20.56 26.52 24.52 27.3 25.3 32.61 20 27.3 14.7'/%3E%3C/g%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3EdepthPass%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpolygon class='cls-1' points='22.03 16.16 19.89 12.45 11.74 26.56 16.03 26.56 22.03 16.16'/%3E%3Cpolygon class='cls-1' points='17.53 13.54 15.38 9.82 7.24 23.93 11.52 23.93 17.53 13.54'/%3E%3Cpolygon class='cls-1' points='24.39 15.07 16.24 29.18 32.54 29.18 24.39 15.07'/%3E%3C/g%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3Eomni%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpath class='cls-1' d='M26.22,20A6.22,6.22,0,1,1,20,13.78,6.23,6.23,0,0,1,26.22,20ZM11.51,17.6,9.11,20l2.4,2.4Zm.79,6.71V27.7h3.39Zm5.3,4.18,2.4,2.4,2.4-2.4Zm6.71-.79H27.7V24.31Zm4.18-5.3,2.4-2.4-2.4-2.4Zm-.79-6.71V12.3H24.31Zm-5.3-4.18L20,9.11l-2.4,2.4Zm-6.71.79H12.3v3.39Z'/%3E%3C/g%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3EdirectionalRight%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpolygon class='cls-1' points='23.14 26.41 29.99 12.07 28.73 10.81 14.39 17.66 18.48 21.75 12.11 28.12 12.11 22.51 11 22.51 11 30.01 18.5 30.01 18.5 28.9 12.89 28.9 19.26 22.53 23.14 26.41'/%3E%3C/g%3E%3C/svg%3E"},function(e,t){e.exports="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3EdirectionalLeft%3C/title%3E%3Cg id='UI_Elements' data-name='UI Elements'%3E%3Cpolygon class='cls-1' points='27.89 22.51 27.89 28.12 21.52 21.75 25.61 17.66 11.27 10.81 10.01 12.07 16.86 26.41 20.74 22.53 27.11 28.9 21.5 28.9 21.5 30.01 29 30.01 29 22.51 27.89 22.51'/%3E%3C/g%3E%3C/svg%3E"},function(e,t,n){var r=n(394);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(31)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(30)(!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"}.wait-screen{display:grid;justify-content:center;align-content:center;height:100%;width:100%;background:#464646;opacity:0.95;color:white;font:24px "acumin-pro";position:absolute;top:0;left:0}.wait-screen.hidden{visibility:hidden}#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 40px auto 40px;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:auto;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:grid;grid-template-columns:auto 1fr 40px 40px 40px;align-items:center;font-size:18px;background-color:#555555}.right-panel #preview-mesh-bar #file-picker{display:none}.right-panel #preview-mesh-bar .listLine{grid-column:1;height:40px;display:grid;grid-template-columns:0px 1fr}.right-panel #preview-mesh-bar .listLine .label{grid-column:1;display:flex;align-items:center;font-size:14px}.right-panel #preview-mesh-bar .listLine .options{grid-column:2;display:flex;align-items:center;margin-left:5px}.right-panel #preview-mesh-bar .listLine .options select{width:115px}.right-panel #preview-mesh-bar .button{color:#ffffff;width:40px;height:40px;transform-origin:50% 50%}.right-panel #preview-mesh-bar .button:active{transform:scale(0.9)}.right-panel #preview-mesh-bar .button:hover{background:#3f3461}.right-panel #preview-mesh-bar .button.selected{background:#9379e6}.right-panel #preview-mesh-bar .button img{height:40px;width:100%}.right-panel #preview-mesh-bar #play-button{grid-column:3}.right-panel #preview-mesh-bar #color-picker-button{grid-column:4}.right-panel #preview-mesh-bar #color-picker-button #color-picker{display:none}.right-panel #preview-mesh-bar #color-picker-button #color-picker-label{width:100%;background:transparent;cursor:pointer}.right-panel #preview-mesh-bar #preview-new-window{grid-column:5}.right-panel #preview-mesh-bar select{background-color:#a3a3a3;color:#333333}.right-panel #preview-config-bar{grid-row:4;grid-column:1;display:grid;grid-template-columns:40px 40px 40px 1fr 40px 40px;color:white;align-items:center;font-size:18px}.right-panel #preview-config-bar .button{width:40px;grid-row:1;height:40px;transform-origin:50% 50%}.right-panel #preview-config-bar .button:hover{background:#3f3461}.right-panel #preview-config-bar .button.selected{background:#9379e6}.right-panel #preview-config-bar .button:active{transform:scale(0.9)}.right-panel #preview-config-bar .button img{height:auto;width:100%}.right-panel #preview-config-bar .button.back-face{grid-column:6}.right-panel #preview-config-bar .button.depth-pass{grid-column:5 / 6}.right-panel #preview-config-bar .button.hemispheric-light{grid-column:3 / 4}.right-panel #preview-config-bar .button.direction-light-1{grid-column:2 / 3}.right-panel #preview-config-bar .button.direction-light-0{grid-column:1 / 2}.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',""])}])}));